Message-Id: <199808130752.IAA31273@sable.ox.ac.uk> Comments: Authenticated sender is From: "George Foot" To: rylan AT inbtekom DOT co DOT za Date: Thu, 13 Aug 1998 08:51:29 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: AT&T Syntax Reply-to: george DOT foot AT merton DOT oxford DOT ac DOT uk CC: djgpp AT delorie DOT com Precedence: bulk On 12 Aug 98 at 22:40, Rylan wrote: > I've got a small question about Intel to AT&T asm conversion: > > For this piece of Intel code: > > add [fs:bx+di],al > > is this the correct AT&T conversion: > > addb %al,%fs:(%ebx,%edi) Let's see: | C:\prog\test>type test.s | .p2align 2 | .globl _main | _main: | addb %al, %fs:(%ebx, %edi) | | C:\prog\test>gcc test.s -o test.exe | | C:\prog\test>edebug32 test.exe | >> u _main 1 | _main(): | 00001550: 6400043b add fs:[ebx+edi],al | >> q Don't try to run this program BTW! -- george DOT foot AT merton DOT oxford DOT ac DOT uk