SAB 80C166W/83C166W
Semiconductor Group 28
Shift and Rotate Instructions (cont’d)
SHR Rw, #data4 Shift right direct word GPR;
number of shift cycles specified by immediate data
2
ROL Rw, Rw Rotate left direct word GPR;
number of shift cycles specified by direct GPR
2
ROL Rw, #data4 Rotate left direct word GPR;
number of shift cycles specified by immediate data
2
ROR Rw, Rw Rotate right direct word GPR;
number of shift cycles specified by direct GPR
2
ROR Rw, #data4 Rotate right direct word GPR;
number of shift cycles specified by immediate data
2
ASHR Rw, Rw Arithmetic (sign bit) shift right direct word GPR;
number of shift cycles specified by direct GPR
2
ASHR Rw, #data4 Arithmetic (sign bit) shift right direct word GPR;
number of shift cycles specified by immediate data
2
Data Movement
MOV Rw, Rw Move direct word GPR to direct GPR 2
MOV Rw, #data4 Move immediate word data to direct GPR 2
MOV reg, #data16 Move immediate word data to direct register 4
MOV Rw, [Rw] Move indirect word memory to direct GPR 2
MOV Rw, [Rw+] Move indirect word memory to direct GPR and
post-increment source pointer by 2
2
MOV [Rw], Rw Move direct word GPR to indirect memory 2
MOV [-Rw], Rw Pre-decrement destination pointer by 2 and move direct
word GPR to indirect memory
2
MOV [Rw], [Rw] Move indirect word memory to indirect memory 2
MOV [Rw+], [Rw] Move indirect word memory to indirect memory and
post-increment destination pointer by 2
2
MOV [Rw], [Rw+] Move indirect word memory to indirect memory and
post-increment source pointer by 2
2
MOV Rw,
[Rw + #data16]
Move indirect word memory by base plus constant to
direct GPR
4
MOV [Rw + #data16],RwMove direct word GPR to indirect memory by base plus
constant
4
Instruction Set Summary (cont’d)
Mnemonic Description Bytes