PatchMixolydic/spinel

Add "leave" to end of assembly functions called from C

Closed this issue · 2 comments

I'm not sure if this is required, but it'd be good practice. It resets ebp and esp before exiting a function.

...or maybe it causes everything to break? Weird... if anyone has better luck with this let me know

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.