<< Previous | Next >>

> RR (HL)
> RR (IX+d)
> RR (IY+d) Rotate Right Through Carry Rabbit 2000/3000/4000 Instruction

> Opcode | Instruction | Clocks | Operation
> CB 1E | RR (HL) | 10 (2,2,1,2,3) | {(HL),CF} = {CF,(HL)}
> DD CB d 1E | RR (IX+d) | 13 (2,2,2,2,2,3) | {(IX+d),CF} = {CF,(IX+d)}
> FD CB d 1E | RR (IY+d) | 13 (2,2,2,2,2,3) | {(IY+d),CF} = {CF,(IY+d)}

> 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 whose address is:

> - HL, or
> - the sum of IX and the 8-bit signed displacement d, or
> - the sum of IY and the 8-bit signed displacement d.

> Bit 0 moves to the C flag, bits 1 through 7 move to the next lowest-order bit position, and the C flag moves to bit 7. See Figure 12 for an illustration.

<< Previous | Next >>