Mail Archives: djgpp/1997/03/03/15:57:38
Leath Muller wrote:
> you could type
> asm volatile ("
> movl $10, %eax;
> movw %ax, %dx;
> etc etc etc...
> ");
Actully, in that example you don't need the semi-colons. The code
between the quotes is copied verbatim (not including register
substitutions in extended asm) into the asm file, INCLUDING the
linefeeds on each line.
>
> At least the semi-colon is more Cish in my opinion... :) Also, if you
True, but asm is not C (your choice though, see my sig).
> have a look at the DJGPP faq it will give you pointers to relevant pieces
> of information and articles to read, which show you varying methods of
> manipulating registers etc, and how to let gcc which registers to use.
> Personally, I push/pop and use lots of globals, but most people don't
> like my method... ;)
Nah, I prefer extended asm (more control and it usually optimises
better).
Bill
--
Leave others their otherness.
- Raw text -