2.2.47 (2) ROTL (W)
ROTL (ROTate Left)
Rotate
Operation
Rd (left rotation)
→
Rd
Assembly-Language Format
ROTL.W
Rd
Operand Size
Word
Condition Code
H: Previous value remains unchanged.
N: Set to 1 if the result is negative; otherwise
cleared to 0.
Z:
Set to 1 if the result is zero; otherwise
cleared to 0.
V: Always cleared to 0.
C: Receives the previous value in bit 15.
I
UI
H
U
N
Z
V
C
—
—
—
—
↕
↕
0
↕
Description
This instruction rotates the bits in a 16-bit register Rd (destination register) one bit to the left. The
most significant bit is rotated to the least significant bit (bit 0), and also copied to the carry flag.
Available Registers
Rd: R0 to R7, E0 to E7
Operand Format and Number of States Required for Execution
Notes
MSB
LSB
C
b
15
b
0
. . . . . .
Instruction Format
1st byte
2nd byte
3rd byte
4th byte
Register direct
ROTL.W
Rd
1
2
9
rd
2
No. of
States
Addressing
Mode
Mnemonic
Operands
148