<< Previous | Next >>

> RLC b,BCDE Rotate Left Affect Carry Rabbit 4000 Instruction

> Opcode | Instruction | Clocks | Operation
> -- | RLC b,BCDE | 4 (2,2) | BCDE = {BCDE[30,0],B[7]} CF = B[7] b = b-1 repeat while b != 0
> DD 68 | RLC 1,BCDE | 4 (2,2) | BCDE = {BCDE[30,0],B[7]} CF = B[7] b = b-1 repeat while b != 0
> DD 69 | RLC 2,BCDE | 4 (2,2) | BCDE = {BCDE[30,0],B[7]} CF = B[7] b = b-1 repeat while b != 0
> DD 6B | RLC 4,BCDE | 4 (2,2) | BCDE = {BCDE[30,0],B[7]} CF = B[7] b = b-1 repeat while b != 0

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

> #### Description

> Rotates BCDE to the left (bit 0 moves to bit 1, bit 1 moves to bit 2 etc.). Bit 31 moves to the C flag and bit 0. See the figure below.

> Figure 6: The bit logic of the RLC operation.

> This operation happens b number of times.

<< Previous | Next >>