Rotate Right
ROR
13-207
Assembly Language Instructions
Syntax ROR
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 0
1 10
dst
11 11 11 11 1 11 1111 11 1
Description The contents of the
dst
operand are right rotated one bit and loaded into the
dst
register. The LSB is rotated into the carry (C) bit and also transferred into
the MSB.
Rotate right:
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 ROR R7
Before Instruction After Instruction
R7 00 0000 0421 R7 00 8000 0210
LUF 0LUF 0
LV 0LV 0
UF 0UF 0
N0N1
Z0Z0
V0V0
C0C1
Mode Bit