From owner-freebsd-hackers Mon Oct 29 1:29: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by hub.freebsd.org (Postfix) with ESMTP id D9FBD37B406 for ; Mon, 29 Oct 2001 01:28:56 -0800 (PST) Received: (qmail 70855 invoked from network); 29 Oct 2001 09:28:55 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 29 Oct 2001 09:28:55 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20011028180128.A59388@dragon.nuxi.com> Date: Mon, 29 Oct 2001 01:28:55 -0800 (PST) From: John Baldwin To: "David O'Brien" Subject: Re: Simple x86 assembler question Cc: hackers@FreeBSD.org, Matthew Emmerton 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 29-Oct-01 David O'Brien wrote: > 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. But does objdump -d? :) -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message