INSTRUCTION SET REFERENCE

 

 

 

 

Table A-6. Instruction Set (Continued)

 

 

 

 

 

 

 

 

 

 

 

 

Mnemonic

 

 

 

 

Operation

 

 

 

 

Instruction Format

 

 

 

 

JNH

JUMP IF NOT HIGHER (UNSIGNED). Tests

 

 

 

both the zero flag and the carry flag. If the

JNH

cadd

 

carry flag is set and the zero flag is clear,

 

(11010001) (disp)

 

control passes to the next sequential

 

 

 

 

instruction. If either the carry flag is clear or

 

 

 

the zero flag is set, this instruction adds to the

NOTE: The displacement (disp) is sign-

 

program counter the offset between the end

 

 

extended to 16 bits.

 

of this instruction and the target label,

 

 

 

 

 

effecting the jump. The offset must be in

 

 

 

range of –128 to +127.

 

 

 

 

 

 

 

if C = 0 OR Z = 1 then

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

C

V

VT

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

JNST

JUMP IF STICKY BIT FLAG IS CLEAR. Tests

 

 

 

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

JNST

cadd

 

passes to the next sequential instruction. If

 

(11010000) (disp)

 

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

 

 

extended to 16 bits.

 

range of –128 to +127.

 

 

 

 

 

 

 

 

 

 

 

 

 

if ST = 0 then

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

C

V

VT

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

JNV

JUMP IF OVERFLOW FLAG IS CLEAR.

 

 

 

Tests the overflow flag. If the flag is set,

JNV

cadd

 

control passes to the next sequential

 

(11010101) (disp)

 

instruction. If the overflow flag is clear, this

 

 

 

 

instruction adds to the program counter the

 

 

 

offset between the end of this instruction and

NOTE: The displacement (disp) is sign-

 

the target label, effecting the jump. The offset

 

 

extended to 16 bits.

 

must be in range of –128 to +127.

 

 

 

 

 

 

 

 

 

if V = 0 then

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

C

V

VT

ST

 

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-21

Page 410
Image 410
Intel 8XC196MC, 8XC196MD, 8XC196MH manual Jnh, JNV Jump if Overflow Flag is Clear