98
Rabbit 2000/3000 Microprocessor
Description
Arithmetically shifts to the left the bits of the data whose address is
•
the data in word register HL, or
•
the sum of the data in index register IX and a displacement d, or
•
the sum of the data in index register IY and a displacement d.
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 below.
SLA (HL)
SLA (IX+d)
SLA (IY+d)
Opcode
Instruction
Clocks
Operation
CB 26
SLA (HL)
10*
(HL) = {(HL)[6,0],0}; CF = (HL)[7]
DD CB d 26
SLA (IX+d)
13**
(IX + d) = {(IX + d)[6,0],0};
CF = (IX + d)[7]
FD CB d 26
SLA (IY+d)
13**
(IY + d) = {(IY + d)[6,0],0};
CF = (IY + d)[7]
Clocking: *10 (2,2,1,2,3) **13 (2,2,2,2,2,3)
Flags
ALTD
I/O
S
Z
L/V
C
F
R
SP
S
D
•
•
L
•
•
•
•
Figure 5: The bit logic of the SLA instruction.
CF
7
0
0
Summary of Contents for 2000
Page 2: ...ii Rabbit 2000 3000 Microprocessor...
Page 4: ...iv Rabbit 2000 Microprocessor...
Page 16: ...12 Rabbit 2000 3000 Microprocessor...
Page 112: ...108 Rabbit 2000 3000 Microprocessor...
Page 120: ...ii Rabbit 2000 3000 Microprocessor...