sla
Shift left arithmetic
Shifts a register or memory byte left one bit, copying bit 7 to C and putting zero into bit 0.
- 8-bit and 16-bit arithmetic, logic and bitsZ80 assembly
- Multiply and divide, with the remainderZ80 assembly
- ● set from the result
- 0 always 0
Forms
-
The contents of
rare shifted left one bit position. The contents of bit 7 are copied to the carry flag and a zero is put into bit 0. sla2 bytes · 15 cyclesThe 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.
-
The contents of the memory location pointed to by IX plus
ddare shifted left one bit position. The contents of bit 7 are copied to the carry flag and a zero is put into bit 0.
Undocumented 1 row
Left out of Zilog's manual, but the Z80 runs them, and so does this emulator.
-
The contents of the memory location pointed to by IX plus
ddare shifted left one bit position. The contents of bit 7 are copied to the carry flag and a zero is put into bit 0. The result is then stored inr.
Operands
.org 0x8000
ld b, 3
sla b
halt