Dec 31, 2012 at 10:05 PM
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Pronouns: he/him
I prefer using JE (JZ) with TEST EAX, EAX
Make sure you do:
PUSH EAX
PUSH ECX
PUSH EDX
before your code, and then
POP EDX
POP ECX
POP EAX
after your code.
Believe it or not, the call stack is designed so that this will still work even if you call functions in between the PUSH and POP blocks.
Make sure you do:
PUSH EAX
PUSH ECX
PUSH EDX
before your code, and then
POP EDX
POP ECX
POP EAX
after your code.
Believe it or not, the call stack is designed so that this will still work even if you call functions in between the PUSH and POP blocks.