Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

     #pragma aux __pascal "" \
                parm reverse routine [] \
                value struct float struct caller [] \
                modify [eax ebx ecx edx]

Notes:

 1. All symbols are mapped to upper case.

 2. Arguments are pushed on the stack in reverse order.  That is, the first
    argument is pushed first, the second argument is pushed next, and so on.
     The routine being called will remove the arguments from the stack.

 3. Floating-point values are returned in the same way as structures.  When
    a structure is returned, the caller allocates space on the stack.  The
    address of the allocated space will be pushed on the stack immediately
    before the call instruction.  Upon returning from the call, register EAX
    will contain address of the space allocated for the return value.

 4. Registers EAX, EBX, ECX and EDX are not saved and restored when a call
    is made.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson