Mail Archives: djgpp/1997/11/17/12:03:46
>Anyway, I wanted to know the syntax for inline assembly in DJGPP. I am
>trying
> to port some of my code from Borland C++ which uses a for as follows:
>
>asm {
> mov ax, bx
> int 10h
>}
>
>or whatever. Could someone please help me? Thanks.
>
... well with the assembly... you have to reverse the source & destination...
and also add a size suffix (I think) to the command (i.e. mov, add, whatever),
and precede the registers with %...
movw %BX, %AX - same as Intels syntax: mov ax,bx
I'm trying to think of places for tuts... but I'll tell you what.... just goto
The Game Programming Megasite.. and find the DJGPP Game Programming
Tutorials....
... there's a smallish DJGPP assembly tutorial.... I'm just starting
myself...
the URL of the Game Programming MegaSite:
http://members.aol.com/mreiferson
Good luck!
Jim the loiterer
http://members.aol.com/qball1723/index.htm
(I make games)
- Raw text -