Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2001 18:01:28 -0800
From:      "David O'Brien" <obrien@FreeBSD.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Matthew Emmerton <matt@gsicomp.on.ca>, hackers@FreeBSD.org
Subject:   Re: Simple x86 assembler question
Message-ID:  <20011028180128.A59388@dragon.nuxi.com>
In-Reply-To: <XFMail.011028092133.jhb@FreeBSD.org>; from jhb@FreeBSD.org on Sun, Oct 28, 2001 at 09:21:33AM -0700
References:  <003901c15f3c$5bdef760$1200a8c0@gsicomp.on.ca> <XFMail.011028092133.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 28, 2001 at 09:21:33AM -0700, John Baldwin wrote:
> Almost.  The '2' there is a multiplier on (I think) %eax, so it uses
> 'ebx + 2 * eax + 0xe90' for the memory address.  Either that or 'eax +
> 2 * ebx + 0xe90'.  Check the gas info page for the AT&T syntax to
> figure out exactly which.  (Or use nasm's diassembler which turns out
> Intel format asm.)  (ports/devel/nasm, ndisasm)

BTW, Gas now supports Intel syntax.
 
	* doc/c-i386.texi (i386-Arch): New section.
	(i386-Syntax): Mention .intel_syntax and .att_syntax.

-- 
-- David  (obrien@FreeBSD.org)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011028180128.A59388>