The MASM Forum Archive 2004 to 2012

Project Support Forums => GoAsm Assembler and Tools => Topic started by: Magnum on September 30, 2009, 01:14:40 AM

Title: Goasm code translation
Post by: Magnum on September 30, 2009, 01:14:40 AM
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
Title: Re: Goasm code translation
Post by: 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.
Title: Re: Goasm code translation
Post by: Magnum on September 30, 2009, 12:13:35 PM
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.