rr
Rotate right through carry
Rotates a register or memory byte right one bit, moving C into bit 7 and bit 0 into C.
- Flappy birdZ80 assembly
- ● set from the result
- 0 always 0
Forms
-
The contents of
rare rotated right one bit position. The contents of bit 0 are copied to the carry flag and the previous contents of the carry flag are copied to bit 7. rr2 bytes · 15 cyclesThe contents of (HL) are rotated right one bit position. The contents of bit 0 are copied to the carry flag and the previous contents of the carry flag are copied to bit 7.
-
The contents of the memory location pointed to by IX plus
ddare rotated right one bit position. The contents of bit 0 are copied to the carry flag and the previous contents of the carry flag are copied to bit 7.
Undocumented 1 row
Left out of Zilog's manual, but the Z80 runs them, and so does this emulator.
-
The contents of the memory location pointed to by IX plus
ddare rotated right one bit position. The contents of bit 0 are copied to the carry flag and the previous contents of the carry flag are copied to bit 7. The result is then stored inr.
Operands
.org 0x8000
ld b, 3
rr b
halt