<< Previous | Next >>

RRC r     Rotate Right Affect Carry     Rabbit 2000/3000/4000 Instruction
Opcode
Instruction
Clocks
Operation
---- RRC r 4 (2,2) r = {r[0],r[7,1]}; CF = r[0]

CB 0F

RRC A

4 (2,2)

A = {A[0],A[7,1]}; CF = A[0]

CB 08

RRC B

4 (2,2)

B = {B[0],B[7,1]}; CF = B[0]

CB 09

RRC C

4 (2,2)

C = {C[0],C[7,1]}; CF = C[0]

CB 0A

RRC D

4 (2,2)

D = {D[0],D[7,1]}; CF = D[0]

CB 0B

RRC E

4 (2,2)

E = {E[0],E[7,1]}; CF = E[0]

CB 0C

RRC H

4 (2,2)

H = {H[0],H[7,1]}; CF = H[0]

CB 0D

RRC L

4 (2,2)

L = {L[0],L[7,1]}; CF = L[0]


Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
·
·
L
·
·
·

Description

Rotates to the right the data in r (any of the registers A, B, C, D, E, H, or L).

Each bit 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 C flag.

Figure 16: The bit logic of the RRC instruction.

<< Previous | Next >>