Comment by tlb
5 years ago
Why does the pop at the end of:
push sp
mov sp, myPrivateSP
...
pop sp
work? Isn't it popping from the private stack, while it was pushed on the regular stack?
5 years ago
Why does the pop at the end of:
push sp
mov sp, myPrivateSP
...
pop sp
work? Isn't it popping from the private stack, while it was pushed on the regular stack?
Oh, good catch! I was doing this from memory, and definitely have a bug there.
Updated now, hopefully this will be a more plausible example. Let me know if you spot something else! :-)