<< Previous | Next >>

RR DE
RR HL
    Rotate Right Through Carry
    Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
FB RR DE {DE,CF} = {CF,DE}
FC RR HL {HL,CF} = {CF,HL}

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/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 with the C flag the data in DE or HL. Bit 0 moves to the C flag, bits 1 through 15 move to the next lowest-order bit position, and the C flag moves to bit 15. See Figure 11 below for an illustration.

Figure 11: The bit logic for RR instruction.


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