RORC
Rotate Right Through Carry
13-208
Syntax RORC
dst
Operation
dst
right-rotated one bit through carry bit
dst
Operands
dst
register (R
n
, 0
n
27)
Opcode
31 2423 16 8 7 015
00010 1
1 00
dst
11 1111 111111111111
Description The contents of the
dst
operand are right rotated one bit through the status reg-
ister’s carry (C) bit. This could be viewed as a 33-bit shift. The carry bit value
is rotated into the MSB of the
dst
, while at the same time the
dst
LSB is rotated
into the carry bit.
Rotate right through carry bit:
dst
C
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; if
dst
is not
R7 R0, then C is shifted in but not changed
OVM Operation is not affected by OVM bit value.
Example RORC R4
Before Instruction After Instruction
R4 00 8000 0081 R4 00 4000 0040
LUF 0LUF 0
LV 0LV 0
UF 0UF 0
N1N0
Z0Z0
V0V0
C0C1
Mode Bit