<< Previous | Next >>

> RLC r Rotate Left Affect Carry Rabbit 2000/3000/4000 Instruction

> Opcode | Instruction | Clocks | Operation
> ---- | RLC r | 4 (2,2) | r = {r[6,0],r[7]}; CF = r[7]
> CB 07 | RLC A | 4 (2,2) | A = {A[6,0],A[7]}; CF = A[7]
> CB 00 | RLC B | 4 (2,2) | B = {B[6,0],B[7]}; CF = B[7]
> CB 01 | RLC C | 4 (2,2) | C = {C[6,0],C[7]}; CF = C[7]
> CB 02 | RLC D | 4 (2,2) | D = {D[6,0],D[7]}; CF = D[7]
> CB 03 | RLC E | 4 (2,2) | E = {E[6,0],E[7]}; CF = E[7]
> CB 04 | RLC H | 4 (2,2) | H = {H[6,0],H[7]}; CF = H[7]
> CB 05 | RLC L | 4 (2,2) | L = {L[6,0],L[7]}; CF = L[7]

> 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. Each bit in the register moves to the next highest-order bit position (bit 0 moves to bit 1, etc.). Bit 7 moves to both bit 0 and the C flag.

> Figure 7: The bit logic of the RLC instruction.

<< Previous | Next >>