8XC196MC, MD, MH USER’S MANUAL

Table A-6. Instruction Set (Continued)

Mnemonic

 

 

Operation

 

 

 

 

Instruction Format

 

 

 

 

SHL

SHIFT WORD LEFT. Shifts the destination

 

 

 

word operand to the left as many times as

SHL

wreg, #count

 

specified by the count operand. The count

 

(00001001) (count) (wreg)

 

may be specified either as an immediate

 

 

 

 

value in the range of 0 to 15 (0FH), inclusive,

or

 

 

or as the content of any register (10H –

SHL

wreg, breg

 

0FFH) with a value in the range of 0 to 31

 

(00001001) (breg) (wreg)

 

(1FH), inclusive. The right bits of the result

 

 

 

 

are filled with zeros. The last bit shifted out is

 

 

 

saved in the carry flag.

 

 

 

 

 

 

 

Temp (COUNT)

 

 

 

 

 

 

 

 

do while Temp 0

 

 

 

 

 

 

 

 

C High order bit of (DEST)

 

 

 

 

 

(DEST) (DEST) × 2

 

 

 

 

 

 

Temp Temp – 1

 

 

 

 

 

 

 

end_while

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

 

C

V

VT

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

SHLB

SHIFT BYTE LEFT. Shifts the destination

 

 

 

byte operand to the left as many times as

SHLB

breg, #count

 

specified by the count operand. The count

 

(00011001) (count) (breg)

 

may be specified either as an immediate

 

or

 

 

value in the range of 0 to 15 (0FH), inclusive,

 

 

or as the content of any register (10H –

SHLB

breg, breg

 

0FFH) with a value in the range of 0 to 31

 

(00011001) (breg) (breg)

 

(1FH), inclusive. The right bits of the result

 

 

 

 

are filled with zeros. The last bit shifted out is

 

 

 

saved in the carry flag.

 

 

 

 

 

 

 

Temp (COUNT)

 

 

 

 

 

 

 

 

do while Temp 0

 

 

 

 

 

 

 

 

C High order bit of (DEST)

 

 

 

 

 

(DEST) (DEST) × 2

 

 

 

 

 

 

Temp Temp – 1

 

 

 

 

 

 

 

end_while

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

 

C

V

VT

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-32

Page 421
Image 421
Intel 8XC196MH, 8XC196MD, 8XC196MC manual Wreg, #count