www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/13/03:53:07

Message-Id: <199808130752.IAA31273@sable.ox.ac.uk>
Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: "George Foot" <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: rylan AT inbtekom DOT co DOT za
Date: Thu, 13 Aug 1998 08:51:29 +0000
MIME-Version: 1.0
Subject: Re: AT&T Syntax
Reply-to: george DOT foot AT merton DOT oxford DOT ac DOT uk
CC: djgpp AT delorie DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019