<< Previous | Next >>

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

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

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
4
n/a
n/a
Rabbit 5000
4
4
2

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.


Rabbit Instructions << Previous | Next >> rabbit.com