Mail Archives: djgpp/1998/05/10/20:47:40
"Dark Angel" <mop45440 AT mail DOT telepac DOT pt> writes:
> asm { instructions...
> };
>why doesn't this work? Is inline assembley in DJGPP diferent from Turbo C?
A couple of URLs about DJGPP inline ASM got posted within the last couple of
days ... if you missed them, someone is bound to post 'em again anyway ...
In summary, though, you say something like
asm("
cli;
nop;
sti;
");
Keep in mind that the ASM will be AT&T syntax ... NOT Intel syntax ...
If you want to use extended inline ASM (i.e. if you clobber any registers and
need to tell gcc or if you need to access non-global variables), look at the
guides (whose URLs I mentioned above).
- Raw text -