RR bb,BCDE
RR bb,JKHL
Rotate Right Through Carry
Rabbit 4000/5000 Instruction
|
| -- |
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 |
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.