Add "leave" to end of assembly functions called from C
Closed this issue · 2 comments
PatchMixolydic commented
I'm not sure if this is required, but it'd be good practice. It resets ebp and esp before exiting a function.
PatchMixolydic commented
...or maybe it causes everything to break? Weird... if anyone has better luck with this let me know
PatchMixolydic commented
leave
would require ebp to be handled properly by each assembly function. Might be worth looking into, but note that some functions (getEBP, getESP) rely on EBP and ESP being untouched.