rla
Rotate A left through carry
Rotates A left one bit, moving C into bit 0 and bit 7 into C.
1 byte · 4 cycles
Used in
- Multiply and divide, with the remainderZ80 assembly
- Print a number in any base without helpZ80 assembly
SZHP/VNC ––0–0●
- ● set from the result
- 0 always 0
- – not changed
Forms
rlaThe contents of A are rotated left one bit position. The contents of bit 7 are copied to the carry flag and the previous contents of the carry flag are copied to bit 0.
.org 0x8000
ld a, 5
rla
halt