Mail Archives: djgpp/1999/02/12/21:08:39
At 11:29 PM 2/12/99 +0100, you wrote:
>Hi there,
>
>I've written some assembler routines (in an external .asm file) which
>are ment to be called using registers to pass the arguments. Currently,
>I use Watcom C and the "#pragma aux <sym> parm [...] modify [...] value
>[...]" directive in my header file to tell the compiler where to put the
>arguments. How can I tell DJGPP where to put the arguments and how
>should my function prototype in the header file look for DJGPP?
Change it to inline asm in the source file. Then read about the GCC inline
asm extensions, which include the exact same things: parameters, modify,
and value! It just uses a different syntax.
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." -------------------------------------------------
-- B. Mandelbrot |http://surf.to/pgd.net
_____________________ ____|________ Paul Derbyshire pderbysh AT usa DOT net
Programmer & Humanist|ICQ: 10423848|
- Raw text -