[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
JG Jump If Greater Flags: not altered
JG short-label
Jump Condition: Jump if ZF = 0 and SF = OF
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.
--------------------------------------------------------------------------
Operands Clocks Transfers Bytes Example
short-label 16 or 4 - 2 JG GREATER
--------------------------------------------------------------------------
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.
See Also:
JNLE
JA
JLE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson