B
Bartc
I'm mixing C and ASM, and for calling ASM from C, I just happened to use the
__stdcall convention (using C convention is not practical for other
reasons).
But, __stdcall seems to assume that machine registers are saved by the
called routine (as far as I can gather after a few hours messing with some
strange behaviours especially with optimised C code).
Is there any other call convention I can use likely to be commonly
available?
Or is there a way of specifying that an external function does not save
registers or is badly behaved?
__stdcall convention (using C convention is not practical for other
reasons).
But, __stdcall seems to assume that machine registers are saved by the
called routine (as far as I can gather after a few hours messing with some
strange behaviours especially with optimised C code).
Is there any other call convention I can use likely to be commonly
available?
Or is there a way of specifying that an external function does not save
registers or is badly behaved?