<< Previous | Next >>

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

> Opcode | Instruction | Clocks | Operation
> -- | RLC b,JKHL | 4 (2,2) | JKHL = {JKHL[30,0],J[7]} CF = J[7] b = b-1 repeat while b != 0
> FD 68 | RLC 1,JKHL | 4 (2,2) | JKHL = {JKHL[30,0],J[7]} CF = J[7] b = b-1 repeat while b != 0
> FD 69 | RLC 2,JKHL | 4 (2,2) | JKHL = {JKHL[30,0],J[7]} CF = J[7] b = b-1 repeat while b != 0
> FD 6B | RLC 4,JKHL | 4 (2,2) | JKHL = {JKHL[30,0],J[7]} CF = J[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 JKHL to the left (bit 0 moves to bit 1, etc.) while bit 7 of the highest-order byte moves to bit 0 of the lowest-order byte and the C flag. This operation happens b number of times. See Figure 6 for an illustration.

<< Previous | Next >>