Mail Archives: djgpp/1992/02/17/09:30:36
>What are the exact syntactical differences between 8086 aseembly output
>and the stuff that "gcc -S" generates? I have heard it referred to
>as "BSD" assembly, but it looks mostly like 8086 with some odd
>conventions. Any ideas?
Well, there are *lots* of syntactical differences, plus the fact that it
is a native 32-bit assembler.
Examples:
* MOV AX,45h becomes movw $0x45,%ax
* MOV FOO,AL becomes movb %al,foo
* MOV EAX,ES:[AX+4*CX] becomes seg es; movl (ax,cx,4),%eax
Plus don't forget that MASM expects segments (TEXT SEGMENT BYTE PUBLIC
'CODE') whereas gas uses sections (.text).
DJ
dj AT ctron DOT com
Life is a banana.
- Raw text -