<< Previous | Next >>

RR r     Rotate Right Through Carry     Rabbit 2000/3000/4000 Instruction
Opcode
Instruction
Clocks
Operation

----

RR r

4 (2,2)

{r,CF} = {CF,r}

CB 1F

RR A

4 (2,2)

{A,CF} = {CF,A}

CB 18

RR B

4 (2,2)

{B,CF} = {CF,B}

CB 19

RR C

4 (2,2)

{C,CF} = {CF,C}

CB 1A

RR D

4 (2,2)

{D,CF} = {CF,D}

CB 1B

RR E

4 (2,2)

{E,CF} = {CF,E}

CB 1C

RR H

4 (2,2)

{H,CF} = {CF,H}

CB 1D

RR L

4 (2,2)

{L,CF} = {CF,L}


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

Description

Rotates to the right with the C flag the data in register r (any of the registers A, B, C, D, E, H, or L). Bit 0 moves to the C flag, bits 1 through 7 move to the next lowest-order bit position, and the C flag moves to bit 7. See the figure below.

Figure 12: The bit logic for the RR instruction.

<< Previous | Next >>