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