8XC196MC, MD, MH USER’S MANUAL

Table A-6. Instruction Set (Continued)

Mnemonic

 

 

 

Operation

 

 

 

 

Instruction Format

 

 

 

 

LDBSE

LOAD BYTE SIGN-EXTENDED. Sign-

 

DEST, SRC

 

extends the value of the source short-

LDBSE

wreg, baop

 

integer operand and loads it into the

 

(101111aa) (baop) (wreg)

 

destination integer operand.

 

 

 

 

 

 

 

 

 

 

(low byte DEST) (SRC)

 

 

 

 

 

 

if DEST.15 = 1 then

 

 

 

 

 

 

 

 

(high word DEST) 0FFH

 

 

 

 

 

else

 

 

 

 

 

 

 

 

 

 

(high word DEST) 0

 

 

 

 

 

 

end_if

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

 

V

VT

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

LDBZE

LOAD BYTE ZERO-EXTENDED. Zero-

 

DEST, SRC

 

extends the value of the source byte operand

LDBZE

wreg, baop

 

and loads it into the destination word

 

(101011aa) (baop) (wreg)

 

operand.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(low byte DEST) (SRC)

 

 

 

 

 

 

(high byte DEST)

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

 

V

VT

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

LJMP

LONG JUMP. Adds to the program counter

 

 

 

the offset between the end of this instruction

LJMP

cadd

 

and the target label, effecting the jump. The

 

(11100111) (disp-low) (disp-high)

 

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

 

 

 

 

+32,767.

 

 

 

 

 

 

 

 

 

 

PC PC + 16-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

 

V

VT

ST

 

 

 

 

 

— —

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-24

Page 413
Image 413
Intel 8XC196MC, 8XC196MD, 8XC196MH manual Load Byte SIGN-EXTENDED. Sign