Intel Microcontroller, 80C196NU, 8XC196NP manual Negative flag is set, this instruction adds

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 329
Image 329

8XC196NP, 80C196NU 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 24 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 24 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 24 bits.

 

 

 

 

 

 

 

 

 

 

 

 

if Z = 0 then

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

C

V

VT

ST

 

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-24

Page 329
Image 329
Intel Microcontroller, 80C196NU, 8XC196NP manual Negative flag is set, this instruction adds