8XC196MC, MD, MH USER’S MANUAL
A-18
JC JUMP IF CARRY FLAG IS SET. Tests the
carry flag. If the carry flag is clear, control
passes to the next sequ ential instruction. If
the carry flag is set, this instructio n adds to
the program counter t he offset between the
end of this instruction a nd the target label,
effecting the jump. The off set 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 16 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 t he zero flag is set,
this instruction adds to the program counter
the offset between the end of this instruction
and the target label, effecting t he 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 16 bits.
PSW Flag Settings
ZNCVVTST
——————
JGE JUMP IF SIGNED GREATER THAN OR
EQUAL. Tests the negative flag. If the
negative flag is se t, control passe s to the next
sequential instruction. If t he negative flag is
clear, this instruction adds to the program
counter the offset between the end of this
instruction and the targ et 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 16 bits.
PSW Flag Settings
ZNCVVTST
——————
Table A-6. Instruction Set (Continued)
Mnemonic Operation Instruction Format