Mail Archives: djgpp/1999/01/30/22:04:32
Florian Janoschek wrote:
>
> Hello everyone!
>
> Could someone please tell me, which registers an assembly language function,
> that is called by djgpp, should push and which needn't to be pushed. (Of
> course, I know that I have to push only the registers, which I'm going to
> use...) Does this differ, if the function takes any arguments or has a
> return value?
(Should this be an FAQ?)
You have to save ebx, esi, edi, ebp, ds and es. Args are passed on the
stack and so this has no effect on the registers used. The return value
goes in eax, if there is one; otherwise you can clobber it.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -