<< Previous | Next >>

SLA (HL)     Shift Left Arithmetic     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
CB 26 SLA (HL) (HL) = {(HL)[6,0],0}
CF = (HL)[7]

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
10
n/a
n/a
Rabbit 5000
10
10
8

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
·
·
L
·
·
·
·

Description

Arithmetically shifts to the left the bits of the data whose address is HL.

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 C flag. Bit 0 is reset. See Figure 19 for an illustration.


Rabbit Instructions << Previous | Next >> rabbit.com