<< Previous | Next >>

RR bb,BCDE
RR bb,JKHL
    Rotate Right Through Carry
    Rabbit 4000/5000 Instruction

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

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 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 BCDE or JKHL.

Figure 10: The bit logic of the RR instruction.

This operation happens bb times.


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