8XC196NP, 80C196NU USER’S MANUAL
A-22
JC JUMP IF CARRY FLAG IS SET. Tests the
carry flag. If the carry flag is clear, control
passes to the next sequential instruction. If
the carry flag is set, this instruction adds to
the program counter the offset between the
end of this instruction and the target label,
effecting the jump. The offset must be in the
range of –128 to +127.
if C = 1 then
PC
← PC + 8-bit disp
JC cadd
(11011011) (disp)
NOTE: The displacement (disp) is sign-
extended to 24 bits.
PSW Flag Settings
ZNCVVTST
——————
JE JUMP IF EQUAL. Tests the zero flag. If the
flag is clear, control passes to the next
sequential instruction. If the zero flag is set,
this instruction adds to the program counter
the offset between the end of this instruction
and the target label, effecting the jump. The
offset must be in the range of –128 to +127.
if Z = 1 then
PC
← PC + 8-bit disp
JE cadd
(11011111) (disp)
NOTE: The displacement (disp) is sign-
extended to 24 bits.
PSW Flag Settings
ZNCVVTST
——————
JGE JUMP IF SIGNED GREATER THAN OR
EQUAL. Tests the negative flag. If the
negative flag is set, control passes to the next
sequential instruction. If the negative flag is
clear, this instruction adds to the program
counter the offset between the end of this
instruction and the target label, effecting the
jump. The offset must be in the range of –128
to +127.
if N = 0 then
PC
← PC + 8-bit disp
JGE cadd
(11010110) (disp)
NOTE: The displacement (disp) is sign-
extended to 24 bits.
PSW Flag Settings
ZNCVVTST
——————
Table A-6. Instruction Set (Continued)
Mnemonic Operation Instruction Format