rr
Rotate right through carry
Rotates a register or memory byte right one bit, moving C into bit 7 and bit 0 into C.
Used in
- Flappy ASMZ80 assembly
SZHP/VNC ●●0●0●
- ● depends on the result
- 0 always 0
Forms
-
Rotates
rright one bit position. Copies bit 0 to the carry flag and the previous carry flag to bit 7. rr2 bytes15 cyclesRotates (HL) right one bit position. Copies bit 0 to the carry flag and the previous carry flag to bit 7.
-
Rotates the memory location pointed to by IX plus
ddright one bit position. Copies bit 0 to the carry flag and the previous carry flag to bit 7.
Undocumented 1 row
Zilog’s manual does not list these forms, but the Z80 runs them.
-
Rotates the memory location pointed to by IX plus
ddright one bit position. Copies bit 0 to the carry flag and the previous carry flag to bit 7. Also stores the result inr.
Operands
.org 0x8000
ld b, 3
rr b
halt