Re: Calling Conventions
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Feb 10, 2007
- 456 views
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