Re: Calling Conventions

new topic     » goto parent     » topic index » view thread      » older message » newer message

Chris Bensler wrote:
> 
> Matt's fptr.e asm code doesn't do any explicit stack cleanup either.

Actually, it does.  For stdcall, I use 
#C2,#00,#00,#00,#00}    --   1F: ret [argnum] (#20)

...and in a cdecl call:
#83, #C4, 00,           --   1F: add esp 0

Then I fill in the appropriate value at runtime to clean up the stack.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu