<< Previous | Next >>

RRC BC
RRC DE
    Rotate Right Affect Carry
    Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
61 RRC BC BC = {B[0],BC[15,1]}
CF = C[0]
51 RRC DE DE = {D[0],DE[15,1]}
CF = E[0]

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

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
·
·
L
·
·
·

Description

Rotates to the right the C flag with the data in BC or DE. Each bit in the register moves to the next lowest- order bit position (bit 15 moves to bit 14, etc.) while bit 0 moves to both bit 15 and the C flag. See the figure below.

Figure 14: The bit logic of RRC.


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