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