8XC196MC, MD, MH USER’S MANUAL
A-20
JLT JUMP IF SIGNED LESS THAN. Tests the
negative flag. I f the flag is cle ar, control
passes to the next sequ ential instruction. If
the negative flag is set, this instru ction adds
to the program coun ter th e of fset betw een t he
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 N = 1 then
PC PC + 8-bit disp
JLT cadd
(11011110) (disp)
NOTE: The displacement (disp) is sign-
extended to 16 bits.
PSW Flag Settings
ZNCVVTST
——————
JNC JUMP IF CARRY FLAG IS CLEAR. Tests the
carry flag. If the flag is set, control passes to
the next sequential instruction. If the carry
flag is clear, this instruction adds to the
program counter the offset betwee n the end
of this instruction and th e target label,
effecting the jump. The off set must be in the
range of –128 to +127 .
if C = 0 then
PC PC + 8-bit disp
JNC cadd
(11010011) (disp)
NOTE: The displacement (disp) is sign-
extended to 16 bits.
PSW Flag Settings
ZNCVVTST
——————
JNE JUMP IF NOT EQUAL. Tests the zero flag. If
the flag is set, control passes to the next
sequential instruction. I f the zero flag is clear,
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 = 0 then
PC PC + 8-bit disp
JNE cadd
(11010111) (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