Intel 8XC196NP, 80C196NU, Microcontroller manual Jnvt Jump if OVERFLOW-TRAP Flag is

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 331
Image 331

8XC196NP, 80C196NU USER’S MANUAL

Table A-6. Instruction Set (Continued)

Mnemonic

 

 

 

 

Operation

 

 

 

 

Instruction Format

 

 

 

 

 

JNVT

JUMP IF OVERFLOW-TRAP FLAG IS

 

 

 

CLEAR. Tests the overflow-trap flag. If the

JNVT

cadd

 

flag is set, this instruction clears the flag and

 

(11010100) (disp)

 

passes control to the next sequential

 

 

 

 

instruction. If the overflow-trap flag is clear,

 

 

 

this instruction adds to the program counter

NOTE: The displacement (disp) is sign-

 

the offset between the end of this instruction

 

 

extended to 24 bits.

 

and the target label, effecting the jump. The

 

 

 

 

 

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

 

 

 

if VT = 0 then

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

 

C

V

VT

ST

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

JST

JUMP IF STICKY BIT FLAG IS SET. Tests

 

 

 

the sticky bit flag. If the flag is clear, control

JST

cadd

 

passes to the next sequential instruction. If

 

(11011000) (disp)

 

the sticky bit 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

 

 

extended to 24 bits.

 

range of –128 to +127.

 

 

 

 

 

 

 

 

 

 

 

 

 

if ST = 1 then

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

 

C

V

VT

ST

 

 

 

 

— —

 

 

 

 

 

 

 

 

JV

JUMP IF OVERFLOW FLAG IS SET. Tests

 

 

 

the overflow flag. If the flag is clear, control

JV

cadd

 

passes to the next sequential instruction. If

 

(11011101) (disp)

 

the overflow 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

 

 

extended to 24 bits.

 

range of –128 to +127.

 

 

 

 

 

 

 

 

 

 

 

 

 

if V = 1 then

 

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

 

C

V

VT

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-26

Page 331
Image 331
Intel 8XC196NP, 80C196NU, Microcontroller manual Jnvt Jump if OVERFLOW-TRAP Flag is