Mail Archives: djgpp/1998/10/08/19:49:26
On Thu, 1 Oct 1998, Neil Walker wrote:
> Can anyone help with the following problems as I'm new to DJGPP and
> cannot seem to find the required help in INFO:
Please also consider looking in the FAQ (v2/faq211b.zip).
> 1. How to set the compiler to allow 286 specific commands, e.g. shl di,6
> (in borland C it was done with the -1 option, e.g. gcc -1 file.c)
Use inline assembly.
> 2. Syntax to allow inline assembly - I assumed it would be 'asm', e.g.
> asm mov dx,3DAh
> but this does not work (the disallow inline assembly flag is not set)
GCC's inline assembly syntax is *very* different. Please see section
18.13 in the FAQ.
- Raw text -