Mail Archives: djgpp/1998/08/13/03:53:07
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 -