Rotate Accumulator Right
ROR
7-145
Assembly Language Instructions
Syntax
ROR
Operands
None
Opcode
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
1
0
1
1
0
0
0
0
0
1
1
1
1
1
0
1
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
C
C
Cycles