Rotate Accumulator Right
ROR
7-145
Assembly Language Instructions
Syntax ROR
Operands None
Opcode
0123456789101112131415
1011000001111101
Execution Increment PC, then ...
C → ACC(31)
(ACC(0)) → C
(ACC(31:1)) → ACC(30:0)
Status Bits
Affects
C
This instruction is not affected by SXM.
Description The ROR instruction rotates the accumulator right one bit. The value of the
carry bit is shifted into the MSB of the accumulator, then the LSB of the accu-
mulator is shifted into the carry bit.
Words 1
Cycles for a Single ROR Instruction
ROM
DARAM SARAM External
1 1 1 1+p
Cycles for a Repeat (RPT) Execution of an ROR Instruction
ROM
DARAM SARAM External
n n n n+p
Example ROR
Before Instruction After Instruction
ACC 0 B0001235h ACC 1 5800091Ah
CC
Cycles