<< Previous | Next >>

RRC BC
RRC DE
    Rotate Right Affect Carry
    Rabbit 4000 Instruction
Opcode
Instruction
Clocks
Operation

61

RRC BC

2

BC = {B[0],BC[15,1]}
CF = C[0]

51

RRC DE

2

DE = {D[0],DE[15,1]}
CF = E[0]


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.

<< Previous | Next >>