Instruction Reference Manual 99
Description
Arithmetically shifts to the left the bits of the data in register r (any of A, B, C, D, E, H, or L). Bits 0 through
6 are each shifted to the next highest-order bit position (bit 0 moves to bit 1, etc.). Bit 7 is shifted to the Carry
Flag, CF. Bit 0 is reset. See Figure 5 on page 98.
SLA r
Opcode Instruction Clocks Operation
——
CB 27
CB 20
CB 21
CB 22
CB 23
CB 24
CB 25
SLA r
SLA A
SLA B
SLA C
SLA D
SLA E
SLA H
SLA L
4 (2,2)
4 (2,2)
4 (2,2)
4 (2,2)
4 (2,2)
4 (2,2)
4 (2,2)
4 (2,2)
r ={r[6,0],0}; CF = r[7]
A = {A[6,0],0}; CF = A[7]
B = {B[6,0],0}; CF = B[7]
C = {C[6,0],0}; CF = C[7]
D = {D[6,0],0}; CF = D[7]
E = {E[6,0],0}; CF = E[7]
H = {H[6,0],0}; CF = H[7]
L = {L[6,0],0}; CF = L[7]
Flags ALTD I/O
S Z L/V C F R SP S D
• • L • • •