RL r
Rotate Left Through Carry
Rabbit 2000/3000/4000 Instruction
|
| ---- |
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}
|
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.