ROL
Rotate Left
13-204
Syntax ROL
dst
Operation
dst
left-rotated 1 bit →
dst
Operands
dst
register (R
n
, 0 ≤
n
≤ 27)
Opcode
31 24 23 16 8 7 015
000 10 1
0 10
dst
11 0000000000000001
Description The contents of the
dst
operand are left rotated one bit and loaded into the
dst
register. This is a circular rotation, with the MSB simultaneously transferred
into the carry (C) bit and the LSB.
Rotate left:
C
dst
Cycles 1
Status Bits These condition flags are modified only if the destination register is R7–R0.
LUF Unaffected
LV Unaffected
UF 0
NMSB of the output
Z1 if a 0 output is generated; 0 otherwise
V0
CSet to the value of the bit rotated out of the high-order bit; unaffected
if
dst
is not R7 – R0
OVM Operation is not affected by OVM bit value.
Example ROL R3
Before Instruction After Instruction
R3 00 8002 5CD4 R3 00 0004 B9A9
LUF 0LUF 0
LV 0LV 0
UF 0UF 0
N0N0
Z0Z0
V0V0
C0C1
Mode Bit