<< Previous | Next >>

RRC r     Rotate Right Affect Carry     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
---- RRC r r = {r[0],r[7,1]}; CF = r[0]
CB 0F RRC A A = {A[0],A[7,1]}; CF = A[0]
CB 08 RRC B B = {B[0],B[7,1]}; CF = B[0]
CB 09 RRC C C = {C[0],C[7,1]}; CF = C[0]
CB 0A RRC D D = {D[0],D[7,1]}; CF = D[0]
CB 0B RRC E E = {E[0],E[7,1]}; CF = E[0]
CB 0C RRC H H = {H[0],H[7,1]}; CF = H[0]
CB 0D RRC L L = {L[0],L[7,1]}; CF = L[0]

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 the data in r (any of the registers A, B, C, D, E, H, or L).

Each bit moves to the next lowest-order bit position (bit 7 moves to bit 6, etc.) while bit 0 moves to both bit 7 and the C flag.

Figure 16: The bit logic of the RRC instruction.


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