8XC196MC, MD, MH USER’S MANUAL

Table A-6. Instruction Set (Continued)

Mnemonic

Operation

Instruction Format

EXTB

SIGN-EXTEND SHORT-INTEGER INTO

 

INTEGER. Sign-extends the low-order byte

 

of the operand throughout the high-order byte

 

of the operand.

 

if DEST.7 = 1 then

 

(high byte DEST) 0FFH

 

else

 

(high byte DEST) 0

 

end_if

EXTB wreg (00010110) (wreg)

PSW Flag Settings

Z

N

C

V

VT

ST

0

0

IDLPD

IDLE/POWERDOWN. Depending on the 8-bit

 

value of the KEY operand, this instruction

 

causes the device to:

 

enter idle mode, if KEY=1,

 

enter powerdown mode, if KEY=2,

 

execute a reset sequence,

if KEY = any value other than 1 or 2.

The bus controller completes any prefetch cycle in progress before the CPU stops or resets.

if KEY = 1 then enter idle

else if KEY = 2 then enter powerdown

else

execute reset

PSW Flag Settings

Z N C V VT ST

IDLPD #key (11110110) (key)

KEY = 1 or 2

— — — — —

KEY = any value other than

1 or 2

0

0

0

0

0

0

INC

INCREMENT WORD. Increments the value

 

of the word operand by 1.

 

 

 

 

(DEST) (DEST) + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

Z

N

C

V

VT

ST

 

 

 

0

 

INC wreg (00000111) (wreg)

A-16

Page 405
Image 405
Intel 8XC196MD, 8XC196MH, 8XC196MC manual Mnemonic Operation, Extb SIGN-EXTEND SHORT-INTEGER Into