I am converting some goasm code to masm.
The next code shows as JNE short .nodeal when the program is loaded up in Ollydbg.
JNZ >.nodeal ;yes, so not allowed by system to touch it
So, which is it?
Thanks
The are the same. Roughly half of the conditional-jump instructions have two mnemonics that can be used interchangeably, JE/JZ, JNE/JNZ, JB/JNAE, JAE/JNB, etc.
Quote from: MichaelW on September 30, 2009, 01:38:07 AM
The are the same. Roughly half of the conditional-jump instructions have two mnemonics that can be used interchangeably, JE/JZ, JNE/JNZ, JB/JNAE, JAE/JNB, etc.
Thanks.
I think I figured it out.
Both JNE and JNZ are checking the state of the Zero Flag.
Preceding statements check whether conditions are "not equal" or "not zero"
which then set the Zero Flag accordingly.