News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Goasm code translation

Started by Magnum, September 30, 2009, 01:14:40 AM

Previous topic - Next topic

Magnum

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
Have a great day,
                         Andy

MichaelW

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.
eschew obfuscation

Magnum

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.

Have a great day,
                         Andy