how does the test work, for example:
test eax, eax
je 1500d7e3
is this comparing eax to eax and then jumping if they are equal. and if so, wont they always be equal so the jump will alway happen ???
Printable View
how does the test work, for example:
test eax, eax
je 1500d7e3
is this comparing eax to eax and then jumping if they are equal. and if so, wont they always be equal so the jump will alway happen ???
i thought
-------------------------------
CMP eax,eax
JE MyLabel
MyLabel:
Mov loo,poo
--------------------------------
would compare then jump
what??
CMP eax,eax
i thought that compares them
then this jumps if equal
JE 'whatever label'
test eax, eax
is usually used with jz, to see if a register is 0 or not. You can't use it to "compare a number to itself", it doesn't make sense.