Mail Archives: djgpp/1997/01/09/11:43:03
Dan Mintz wrote:
>
> Well does anyone know of a
> program that can convert Intel ASM to AT&T asm? Because I am NOT up for
> learning another language.
ftp://x2ftp.oulu.fi/pub/msdos/programming/convert has a tasm to ATT converter
called ta2as.
Be warned that IMO by far the most difficult part of writing assembler
modules for DJGPP is not so much the relatively trivial syntax differences,
but the neccessity of writing code that complies with the requirements
imposed by protected mode,the dpmi interface, and gcc's own expectations.
ta2as will happily convert any rubbish fed to it, which will bomb under gas.
If you have never seen or understood a standalone ATT-syntax asm module, chances
are you will not be able to write an Intel variant that doesn't bomb. If you
do understand the technicalities of programming asm for djgpp then IMO
you won't have serious difficulty understanding the ATT-syntax.I don't
speak condescendingly, but from painful experience. My advice would be
to bite the bullet and learn it, because all the examples you'll find are in ATT.
- Raw text -