Instruction Reference Manual 91
Description
Rotates to the right the data in the register r (any of the registers A, B, C, D, E, H, or L). Each bit in the regis-
ter moves to the next lowest-order bit position (bit 7 moves to bit 6, etc.) while bit 0 moves to both bit 7 and
the CF. See Figure 4 on page 90.
Description
Rotates to the right the data in the Accumulator. Each bit in the register moves to the next lowest-order bit
position (bit 7 moves to bit 6, etc.) while bit 0 moves to both bit 7 and the CF. See Figure 4 on page 90.
RRC r
Opcode Instruction Clocks Operation
——
CB 0F
CB 08
CB 09
CB 0A
CB 0B
CB 0C
CB 0D
RRC r
RRC A
RRC B
RRC C
RRC D
RRC E
RRC H
RRC L
4 (2,2)
4 (2,2)
4 (2,2)
4 (2,2)
4 (2,2)
4 (2,2)
4 (2,2)
4 (2,2)
r ={r[0],r[7,1]}; CF = r[0]
A = {A[0],A[7,1]}; CF = A[0]
B = {B[0],B[7,1]}; CF = B[0]
C = {C[0],C[7,1]}; CF = C[0]
D = {D[0],D[7,1]}; CF = D[0]
E = {E[0],E[7,1]}; CF = E[0]
H = {H[0],H[7,1]}; CF = H[0]
L = {L[0],L[7,1]}; CF = L[0]
Flags ALTD I/O
S Z L/V C F R SP S D
• • L • • •
RRCA
Opcode Instruction Clocks Operation
0F RRCA 2 A = {A[0],A[7,1]}; CF = A[0]
Flags ALTD I/O
S Z L/V C F R SP S D
- - - • • •