Computer Hardware User's Guide

Rotate Left Through Carry
ROLC
13-205
Assembly Language Instructions
Syntax ROLC
dst
Operation
dst
left-rotated one bit through carry bit
dst
Operands
dst
register (R
n
, 0
n
27)
Opcode
31 24 23 16 8 7 015
000 10 0
1 00
dst
11 0000000000000001
Description The contents of the
dst
operand are left rotated one bit through the carry (C)
bit and loaded into the
dst
register. The MSB is rotated to the carry bit at the
same time the carry bit is transferred to the LSB.
Rotate left through carry bit:
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
N MSB of the output
Z 1 if a 0 output is generated; 0 otherwise
V 0
C Set to the value of the bit rotated out of the high-order bit; if
dst
is not
R7–R0, then C is shifted into the
dst
but not changed
OVM Operation is not affected by OVM bit value.
Example 1 ROLC R3
Before Instruction After Instruction
R3 00 0000 0420 R3 00 0000 0841
LUF 0 LUF 0
LV 0 LV 0
UF 0 UF 0
N 0 N 0
Z 0 Z 0
V 0 V 0
C 1 C 0
Mode Bit