Mail Archives: djgpp/1998/01/19/22:46:30
At 05:35 1/16/1998 GMT, Ian Dunbarr wrote:
>So my question is whether is's just luck that the code works fine with djgpp
>without saving registers it writes to, or does DJGPP assume that certain
>registers are going to be trashed by any function. Does anyone know the rules
>for all the registers when calling NASM code from DJGPP C code?
You must save EBX, ESI, EDI, EBP, DS, and ES. You must also restore the
stack, of course. Other registers are fine to clobber.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -