<< Previous | Next >>

> RLC BC
> RLC DE Rotate Left Affect Carry Rabbit 4000 Instruction

> Opcode | Instruction | Clocks | Operation
> 60 | RLC,BC | 2 | BC = {BC[14,0],B[7]} CF = B[7]
> 50 | RLC,DE | 2 | DE = {DE[14,0],D[7]} CF = D[7]

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

> #### Description

> Rotates BC or DE to the left (bit 0 moves to bit 1, etc.). The highest-order bit is rotated to the C flag and bit 0. See the figure below.

> Figure 5: The bit logic of the RLC instruction

<< Previous | Next >>