<< Previous | Next >>

> RR b,BCDE
> RR b,JKHL Rotate Right Through Carry Rabbit 4000 Instruction

> Opcode | Instruction | Clocks | Operation
> -- | RR b,BCDE | 4 (2,2) | {BCDE,CF} = {CF,BCDE} b = b - 1 repeat while b != 0
> DD 78 | RR 1,BCDE | 4 (2,2) | repeat the operation 1 time
> DD 79 | RR 2,BCDE | 4 (2,2) | repeat the operation 2 times
> DD 7B | RR 4,BCDE | 4 (2,2) | repeat the operation 4 times
> -- | RR b,JKHL | 4 (2,2) | {JKHL,CF} = {CF,JKHL} b = b - 1 repeat while b != 0
> FD 78 | RR 1,JKHL | 4 (2,2) | repeat the operation 1 time
> FD 79 | RR 2,JKHL | 4 (2,2) | repeat the operation 2 times
> FD 7B | RR 4,JKHL | 4 (2,2) | repeat the operation 4 times

> 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 BCDE or JKHL.

> Figure 10: The bit logic of the RR instruction.

> This operation happens b times.

<< Previous | Next >>