<< Previous | Next >>

RR r     Rotate Right Through Carry     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
---- RR r {r,CF} = {CF,r}
CB 1F RR A {A,CF} = {CF,A}
CB 18 RR B {B,CF} = {CF,B}
CB 19 RR C {C,CF} = {CF,C}
CB 1A RR D {D,CF} = {CF,D}
CB 1B RR E {E,CF} = {CF,E}
CB 1C RR H {H,CF} = {CF,H}
CB 1D RR L {L,CF} = {CF,L}

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
4
n/a
n/a
Rabbit 5000
4
4
2

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.


Rabbit Instructions << Previous | Next >> rabbit.com