rla
Rotate A left through carry
Rotates A left one bit, moving C into bit 0 and bit 7 into C.
1 byte4 cycles
Used in
- Multiply and divide, with the remainderZ80 assembly
- Convert a number to a string in any baseZ80 assembly
SZHP/VNC ––0–0●
- ● depends on the result
- 0 always 0
- – not changed
Forms
rlaRotates A left one bit position. Copies bit 7 to the carry flag and the previous carry flag to bit 0.
.org 0x8000
ld a, 5
rla
halt