-
Based on comparisons of unsigned operands.
-
Based on comparisons of signed operands.
Jumps Based on Flag Values
The table on the right shows a list of jumps based on specific CPU flag values: Zero , Carry , Overflow , Parity , and Sign .
|
Mnemonic |
Description |
Flags |
JZ |
Jump if zero |
ZF = 1 |
JNZ |
Jump if not zero |
ZF = 0 |
JC |
Jump if carry |
CF = 1 |
JNC |
Jump if not carry |
CF = 0 |
JO |
Jump if overflow |
OF = 1 |
JNO |
Jump if not overflow |
OF = 0 |
JS |
Jump if signed |
SF = 1 |
JNS |
Jump if not signed |
SF = 0 |
JP |
Jump if parity (even) |
PF = 1 |
JNP |
Jump if not parity (odd) |
PF = 0 |
|