Section 2 CPU
2.5.4
Shift Operations
Table 2.7 describes the eight shift instructions.
Table 2.7
Shift Instructions
Size *
Instruction
B
SHAL
SHAR
B
SHLL
SHLR
ROTL
B
ROTR
ROTXL
B
ROTXR
Notes: *
Size: Operand size
B:
Byte
Rev. 7.00 Mar 10, 2005 page 44 of 652
REJ09B0042-0700
Function
Rd shift → Rd
Performs an arithmetic shift operation on general register contents
Rd shift → Rd
Performs a logical shift operation on general register contents
Rd rotate → Rd
Rotates general register contents
Rd rotate through carry → Rd
Rotates general register contents through the C (carry) bit