Mail Archives: djgpp/1998/09/15/12:43:01
> Hi there!
>
> I just wanted to start programming in C/C++ and downloaded DJGPP for
> this purpose. Everything is working fine, but I haven't figured out how
> to use inline assembler. That's what I wanted to convert from Turbo
> Pascal to DJGPP:
>
> asm
> mov ax,0003h;
> int 10h;
> end;
>
> I need just one sample to start. I can't figure out how to do it from
> the docs (maybe you can point me to the right one?)
DJGPP uses AT&T syntax for inline ASM. Some people like it, others (like me)
believe that it further compounds what is an already too complex language.
If you don't like AT&T format, you should try NASM or another assembler. If,
however, you definately need inlise ASM, there's a AT&T ASM primer at
http://www.delorie.com/djgpp/
HTH
James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819
- Raw text -