| |
Jump if Greater
86/88 |
Y |
186 |
Y |
286 |
Y |
386 |
Y |
486 |
Y |
JG short_label |
Ovfl |
N |
Dir |
N |
Int |
N |
Trap |
N |
Sign |
N |
Zero |
N |
Aux |
N |
Prty |
N |
Carry |
N |
Used after a CMP or SUB instruction, JG transfers control to short-
label if the first operand is greater than the second. (Both operands
are treated as signed numbers.) The target of the jump must be within
-128 to +127 bytes of the next instruction.
Notes: JNLE, Jump if Not Less or Equal, is the same
instruction as JG.
JA, Jump if Above, should be used when comparing
unsigned numbers.
JG, Jump if Greater, should be used when comparing
signed numbers.
------------------------------------ Timing ----------------------------------
OpCode Instruction 386 286 86
7F cb JG rel8 7+m,3 7,3 16,4
0F 8F cw/cd JG rel16/32 7+m,3
------------------------------------ Logic -----------------------------------
Jump if (SF = OF) and (ZF = 0)
See Also JNLE JA JLE JNBE |