From owner-freebsd-hackers Sun Oct 28 18: 1:32 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id CFBB837B401; Sun, 28 Oct 2001 18:01:28 -0800 (PST) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.6/8.11.1) id f9T21SG59812; Sun, 28 Oct 2001 18:01:28 -0800 (PST) (envelope-from obrien) Date: Sun, 28 Oct 2001 18:01:28 -0800 From: "David O'Brien" To: John Baldwin Cc: Matthew Emmerton , hackers@FreeBSD.org Subject: Re: Simple x86 assembler question Message-ID: <20011028180128.A59388@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org References: <003901c15f3c$5bdef760$1200a8c0@gsicomp.on.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jhb@FreeBSD.org on Sun, Oct 28, 2001 at 09:21:33AM -0700 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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