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