JG
Operand:
label
Short Jump if first operand is Greater then second operand (as set by CMP
instruction). Signed.
Algorithm:
if (ZF = 0) and (SF = OF) then jump
Example:
include 'emu8086.inc'
#make_COM#
ORG 100h
MOV AL, 5
CMP AL, -5
JG label1
PRINT 'AL is not greater -5.'
JMP exit
label1:
PRINT 'AL is greater -5.'
exit:
RET
Flags:
C Z S O P A
unchanged