8XC196MC, MD, MH USER’S MANUAL

Table A-6. Instruction Set (Continued)

Mnemonic

 

 

 

 

Operation

 

 

 

 

Instruction Format

 

 

 

 

JLT

JUMP IF SIGNED LESS THAN. Tests the

 

 

 

negative flag. If the flag is clear, control

JLT

cadd

 

passes to the next sequential instruction. If

 

(11011110) (disp)

 

the negative flag is set, this instruction adds

 

 

 

 

to the program counter the offset between the

 

 

 

end of this instruction and the target label,

NOTE: The displacement (disp) is sign-

 

effecting the jump. The offset must be in the

 

 

extended to 16 bits.

 

range of –128 to +127.

 

 

 

 

 

 

 

 

 

 

 

 

 

if N = 1 then

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

C

V

VT

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

JNC

JUMP IF CARRY FLAG IS CLEAR. Tests the

 

 

 

carry flag. If the flag is set, control passes to

JNC

cadd

 

the next sequential instruction. If the carry

 

(11010011) (disp)

 

flag is clear, this instruction adds to the

 

 

 

 

program counter the offset between the end

 

 

 

of this instruction and the target label,

NOTE: The displacement (disp) is sign-

 

effecting the jump. The offset must be in the

 

 

extended to 16 bits.

 

range of –128 to +127.

 

 

 

 

 

 

 

 

 

 

 

 

 

if C = 0 then

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

C

V

VT

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

JNE

JUMP IF NOT EQUAL. Tests the zero flag. If

 

 

 

the flag is set, control passes to the next

JNE

cadd

 

sequential instruction. If the zero flag is clear,

 

(11010111) (disp)

 

this instruction adds to the program counter

 

 

 

 

the offset between the end of this instruction

 

 

 

and the target label, effecting the jump. The

NOTE: The displacement (disp) is sign-

 

offset must be in the range of –128 to +127.

 

 

extended to 16 bits.

 

 

 

 

 

 

 

 

 

 

 

 

if Z = 0 then

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

C

V

VT

ST

 

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-20

Page 409
Image 409
Intel 8XC196MH, 8XC196MD, 8XC196MC manual Negative flag is set, this instruction adds