The contents of B 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.
rr
Operands
rr r | rr (rr) | rr (ii+dd),r | rr (ii+dd)Variants
Every form of rr the assembler accepts. The cycles column counts clock
cycles, written as taken/not taken for the conditional forms.
| Instruction | Description | Flags | Bytes | Cycles |
|---|---|---|---|---|
| rr b | The contents of B 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. | CN=0P/V=PH=0ZS | 2 | 8 |
| rr c | The contents of C 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. | CN=0P/V=PH=0ZS | 2 | 8 |
| rr d | The contents of D 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. | CN=0P/V=PH=0ZS | 2 | 8 |
| rr e | The contents of E 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. | CN=0P/V=PH=0ZS | 2 | 8 |
| rr h | The contents of H 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. | CN=0P/V=PH=0ZS | 2 | 8 |
| rr l | The contents of L 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. | CN=0P/V=PH=0ZS | 2 | 8 |
| rr (hl) | The 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. | CN=0P/V=PH=0ZS | 2 | 15 |
| rr a | The contents of A 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. | CN=0P/V=PH=0ZS | 2 | 8 |
| rr (ix+dd),b undocumented | The contents of the memory location pointed to by IX plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (ix+dd),c undocumented | The contents of the memory location pointed to by IX plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (ix+dd),d undocumented | The contents of the memory location pointed to by IX plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (ix+dd),e undocumented | The contents of the memory location pointed to by IX plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (ix+dd),h undocumented | The contents of the memory location pointed to by IX plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (ix+dd),l undocumented | The contents of the memory location pointed to by IX plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (ix+dd) | The contents of the memory location pointed to by IX plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (ix+dd),a undocumented | The contents of the memory location pointed to by IX plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (iy+dd),b undocumented | The contents of the memory location pointed to by IY plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (iy+dd),c undocumented | The contents of the memory location pointed to by IY plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (iy+dd),d undocumented | The contents of the memory location pointed to by IY plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (iy+dd),e undocumented | The contents of the memory location pointed to by IY plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (iy+dd),h undocumented | The contents of the memory location pointed to by IY plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (iy+dd),l undocumented | The contents of the memory location pointed to by IY plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (iy+dd) | The contents of the memory location pointed to by IY plus | CN=0P/V=PH=0ZS | 4 | 23 |
| rr (iy+dd),a undocumented | The contents of the memory location pointed to by IY plus | CN=0P/V=PH=0ZS | 4 | 23 |