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