Example:
The accumulator contains 0C5H (11000101B) and the CY flag is clear. After executing the
instruction
RLC A
the accumulator contains 8AH (10001010B) and the CY flag is set.
Binary Mode
Bytes:
States:
[Encoding]
0 0 1 1
Hex Code in:
Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation:
RLC
(A).a+1 ← (A).a
(A).0 ← (CY)
(CY) ← (A) .7
RR A
Function:
Rotate accumulator right
Description:
Rotates the 8 or 16 bits in the accumulator one bit to the right. Bit 0 is moved into the bit 7 or
15 position.
Flags:
CY
—
Example:
The accumulator contains 0C5H (11000101B). After executing the instruction
RR A
the accumulator contains 0E2H (11100010B) and the CY flag is unaffected.
Binary Mode
Bytes:
States:
[Encoding]
0 0 0 0
Hex Code in:
Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation:
RR
(A).a ← (A).a+1
(A).7 ← (A) .0
Source Mode
1
1
1
1
0 0 1 1
AC
—
Source Mode
1
1
1
1
0 0 1 1
INSTRUCTION SET REFERENCE
OV
N
—
Z
A-117