<< Previous | Next >>

> RL r Rotate Left Through Carry Rabbit 2000/3000/4000 Instruction

> Opcode | Instruction | Clocks | Operation
> ---- | RL r | 4 (2,2) | {CF,r} = {r,CF}
> CB 17 | RL A | 4 (2,2) | {CF,A} = {A,CF}
> CB 10 | RL B | 4 (2,2) | {CF,B} = {B,CF}
> CB 11 | RL C | 4 (2,2) | {CF,C} = {C,CF}
> CB 12 | RL D | 4 (2,2) | {CF,D} = {D,CF}
> CB 13 | RL E | 4 (2,2) | {CF,E} = {E,CF}
> CB 14 | RL H | 4 (2,2) | {CF,H} = {H,CF}
> CB 15 | RL L | 4 (2,2) | {CF,L} = {L,CF}

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

> #### Description

> Rotates r (any of the register A, B, C, D, E, H, or L) to the left with the C flag. Each bit in the register moves to the next highest-order bit position (bit 0 moves to bit 1, etc.) while the C flag moves to bit 0 and bit 7 moves to the C flag. See figure below.

> Figure 3: The bit logic of the RL instruction.

<< Previous | Next >>