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