srl

Operands

srl r | srl (rr) | srl (ii+dd),r | srl (ii+dd)

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.

Loading...

Variants

Every form of srl the assembler accepts. The cycles column counts clock cycles, written as taken/not taken for the conditional forms.

InstructionDescriptionFlagsBytesCycles
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=0ZS28
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=0ZS28
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=0ZS28
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=0ZS28
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=0ZS28
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=0ZS28
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=0ZS215
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=0ZS28
srl (ix+dd),b undocumented

The contents of the memory location pointed to by IX plus dd 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. The result is then stored in B.

CN=0P/V=PH=0ZS423
srl (ix+dd),c undocumented

The contents of the memory location pointed to by IX plus dd 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. The result is then stored in C.

CN=0P/V=PH=0ZS423
srl (ix+dd),d undocumented

The contents of the memory location pointed to by IX plus dd 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. The result is then stored in D.

CN=0P/V=PH=0ZS423
srl (ix+dd),e undocumented

The contents of the memory location pointed to by IX plus dd 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. The result is then stored in E.

CN=0P/V=PH=0ZS423
srl (ix+dd),h undocumented

The contents of the memory location pointed to by IX plus dd 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. The result is then stored in H.

CN=0P/V=PH=0ZS423
srl (ix+dd),l undocumented

The contents of the memory location pointed to by IX plus dd 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. The result is then stored in L.

CN=0P/V=PH=0ZS423
srl (ix+dd)

The contents of the memory location pointed to by IX plus dd 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=0ZS423
srl (ix+dd),a undocumented

The contents of the memory location pointed to by IX plus dd 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. The result is then stored in A.

CN=0P/V=PH=0ZS423
srl (iy+dd),b undocumented

The contents of the memory location pointed to by IY plus dd 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. The result is then stored in B.

CN=0P/V=PH=0ZS423
srl (iy+dd),c undocumented

The contents of the memory location pointed to by IY plus dd 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. The result is then stored in C.

CN=0P/V=PH=0ZS423
srl (iy+dd),d undocumented

The contents of the memory location pointed to by IY plus dd 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. The result is then stored in D.

CN=0P/V=PH=0ZS423
srl (iy+dd),e undocumented

The contents of the memory location pointed to by IY plus dd 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. The result is then stored in E.

CN=0P/V=PH=0ZS423
srl (iy+dd),h undocumented

The contents of the memory location pointed to by IY plus dd 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. The result is then stored in H.

CN=0P/V=PH=0ZS423
srl (iy+dd),l undocumented

The contents of the memory location pointed to by IY plus dd 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. The result is then stored in L.

CN=0P/V=PH=0ZS423
srl (iy+dd)

The contents of the memory location pointed to by IY plus dd 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=0ZS423
srl (iy+dd),a undocumented

The contents of the memory location pointed to by IY plus dd 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. The result is then stored in A.

CN=0P/V=PH=0ZS423