<< Previous | Next >>

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

Opcode
Instruction
Operation
---- RL r {CF,r} = {r,CF}
CB 17 RL A {CF,A} = {A,CF}
CB 10 RL B {CF,B} = {B,CF}
CB 11 RL C {CF,C} = {C,CF}
CB 12 RL D {CF,D} = {D,CF}
CB 13 RL E {CF,E} = {E,CF}
CB 14 RL H {CF,H} = {H,CF}
CB 15 RL L {CF,L} = {L,CF}

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

Figure 3: The bit logic of the RL instruction.


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