I am pushing some int value in inline-assembly:
_asm
{
mov eax,i3
push eax
mov eax,ii
}
Later I retrieve this value doing pops:
_asm
{
pop eax
mov ii,eax
pop eax
mov i3,eax
}
What I'd like to inpect my stack without doing a pop. I need to rearrange or rewiew a few values. I can then restore the stack when I'm done.
I am very rusty in asm. Is there something like:
mov ii,esp+4
that would move the next (not current) stack element? I'm just guessing. I need this code to run in both 32 bit win and 64 win environment.