INSTRUCTION SET REFERENCE

Table A-6. Instruction Set (Continued)

Mnemonic

Operation

Instruction Format

JVT

JUMP IF OVERFLOW-TRAP FLAG IS SET.

 

Tests the overflow-trap flag. If the flag is clear,

 

control passes to the next sequential

 

instruction. If the overflow-trap flag is set, this

 

instruction clears the flag and adds to the

 

program counter the offset between the end

 

of this instruction and the target label,

 

effecting the jump. The offset must be in

 

range of –128 to +127.

 

if VT = 1 then

 

PC PC + 8-bit disp

JVT cadd (11011100) (disp)

NOTE: The displacement (disp) is sign- extended to 16 bits.

PSW Flag Settings

Z

 

N

 

C

V

VT

ST

 

0

 

LCALL

LONG CALL. Pushes the contents of the

 

program counter (the return address) onto

 

the stack, then adds to the program counter

 

the offset between the end of this instruction

 

and the target label, effecting the call. The

 

offset must be in the range of –32,768 to

 

+32,767.

 

SP SP – 2

 

(SP) PC

 

PC PC + 16-bit disp

LCALL cadd

(11101111) (disp-low) (disp-high)

PSW Flag Settings

Z

 

N

 

C

V

VT

ST

 

 

LD

LOAD WORD. Loads the value of the source

 

word operand into the destination operand.

 

(DEST) (SRC)

DEST, SRC

LD wreg, waop (101000aa) (waop) (wreg)

PSW Flag Settings

Z

 

N

 

C

V

VT

ST

 

 

LDB

LOAD BYTE. Loads the value of the source

 

byte operand into the destination operand.

 

(DEST) (SRC)

DEST, SRC

LDB breg, baop (101100aa) (baop) (breg)

PSW Flag Settings

Z N C V VT ST

— — — — — —

A-23

Page 412
Image 412
Intel 8XC196MH, 8XC196MD, 8XC196MC manual Mnemonic Operation, JVT Jump if OVERFLOW-TRAP Flag is SET