RRC bb,BCDE
RRC bb,JKHL
Rotate Right Affect Carry
Rabbit 4000/5000 Instruction
|
| -- |
RRC bb,BCDE |
BCDE = {B[7],BCDE[31,1]} CF = E[0] bb = bb - 1 repeat while bb != 0 |
| DD 58 |
RRC 1,BCDE |
repeat the operation 1 time |
| DD 59 |
RRC 2,BCDE |
repeat the operation 2 times |
| DD 5B |
RRC 4,BCDE |
repeat the operation 4 times |
| -- |
RRC b,JKHL |
JKHL = {J[7],JKHL[31,1]} CF = L[0] bb = bb - 1 repeat while bb !=0 |
| FD 58 |
RRC 1,JKHL |
repeat the operation 1 time |
| FD 59 |
RRC 2,JKHL |
repeat the operation 2 times |
| FD 5B |
RRC 4,JKHL |
repeat the operation 4 times |
Description
Rotates to the right the data in BCDE or JKHL. Each bit in the register moves to the next lowest-order bit
position (bit 31 moves to bit 30, etc.) while bit 0 moves to both bit 31 and the C flag.
Figure 15: The bit logic of RRC.
This operation happens bb number of times.