rlca
Rotate A left circular
Rotates A left one bit, copying bit 7 to C and to bit 0.
1 byte4 cycles
Used in
- The snake gameZ80 assembly
SZHP/VNC ––0–0●
- ● depends on the result
- 0 always 0
- – not changed
Forms
rlcaRotates A left one bit position. Copies bit 7 to the carry flag and to bit 0.
.org 0x8000
ld a, 5
rlca
halt