View Single Post
Old Aug 11th, 2007, 6:34 AM   #1
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 291
Rep Power: 4 Klarre is on a distinguished road
[x86]Instruction test setting the zero flag

Was currently stepping through an application and found a piece of code that I could not understand.

My question is:
How can a TEST instruction set the ZERO flag when testing a byte with the same byte?

...
TEST, CL, CL
JE SHORT Application.004013B4 ; When will this row be executed?
...

Thanks for your help!

/Klarre
__________________
http://www.klarre.se
Klarre is offline   Reply With Quote