This the multi-page printable view of this section.Click here to print.

Return to the regular view of this page.

SLA Shift bits left with Carry

Shift bits left with carry

Table of Contents

Visualisation of the SLA instruction
76543210
 
SLA r
11001011CB
00100r
 
SLA (HL)
11001011CB
0010011026
 
SLA (IX+d)
11011101DD
11001011CB
d
0010011026
 
SLA (IY+d)
11111101FD
11001011CB
d
0010011026
Registers
Registerr
B000
C001
D010
E011
H100
L101
A111
Flags Affected
Flags
sz-h-p/v-c
sset if result negative
zset if result is 0
hreset
p/vset if parity even, reset if parity odd
cdata from bit 7 of source register
Opcode Matrix
ABCDEHL(HL)(IX+d)(IY+d)
SLA
SLA A
CB2728
SLA B
CB2028
SLA C
CB2128
SLA D
CB2228
SLA E
CB2328
SLA H
CB2428
SLA L
CB2528
SLA (HL)
CB26215
SLA (IX+d)
DDCBnn26423
SLA (IY+d)
FDCBnn26423
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Register Memory