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