On 1/5/2012 7:42 PM, Manu wrote:
Perhaps I misunderstand, I can't see the problem?
In the function preamble, you just align it... something like:
   mov reg, esp ; take a backup of the stack pointer
   and esp, -16 ; align it

... function

   mov esp, reg ; restore the stack pointer
   ret 0

And now you cannot access the function's parameters anymore, because the stack offset for them is now variable rather than fixed.

Reply via email to