Chapter 5: Standard RLL Instructions - Bit Operation
Shift Left (SHFL)
1
Shift Left is a 32-bit instruction that shifts the bits in the
230
accumulator a specified number (Aaaa) of places to the left.
240
The vacant positions are filled with zeros and the bits shifted
2
250-1
out of the accumulator are lost.
260
3
Operand Data Type
4
V-memory
Constant
5
In the following example, when X1 is on, the value in V2000 and V2001 will be loaded into
the accumulator using the Load Double instruction. The bit pattern in the accumulator is
6
shifted 10 bits to the left using the Shift Left instruction. The value in the accumulator is
copied to V2010 and V2011 using the Out Double instruction.
7
DS
Used
HPP Used
8
Direct SOFT
X1
9
Load the value in V2000 and
V2001 into the accumulator
10
The bit pattern in the
accumulator is shifted 10 bit
11
positions to the left
12
Copy the value in the
accumulator to V2010 and
V2011
13
14
Handheld Programmer Keystrokes
$
A
STR
L
SHFT
ANDST
S
B
SHFT
RST
GX
SHFT
OUT
C
D
5–124
DL205 User Manual, 4th Edition, Rev. B
DL230 Range
A
aaa
V
All (See page 3 - 53)
K
1-32
LDD
V2000
SHFL
Acc.
K10
Shifted out of the
accumulator
OUTD
V2010
Acc.
B
ENT
1
D
D
C
A
3
3
2
0
H
F
L
SHFT
7
5
ANDST
D
C
A
B
3
2
0
1
DL240 Range
aaa
All (See page 3 - 54)
1-32
6
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 1 1 0
0 1
1 1
0 0 0 0 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
0
0 0 1
0 1
0 0 1 1 0
0 0 1 0 0
1
4
C
4
V2011
A
A
ENT
0
0
A
B
ENT
1
0
A
ENT
0
SHFL
DL250-1 Range
DL260 Range
aaa
All (See page 3 - 55)
All (See page 3 - 56)
1-32
V2001
V2000
7
0
5
3
1
0
1
15 14 13 12 11 10 9 8 7 6 5
1 0 1
0
0 1 1 0 0 0 1 0 0 0 0 0 0 0 1
15 14 13 12 11 10 9 8 7 6 5
0 0 0
0 0 1
0 0
0 0
0
4
0
V2010
A aaa
aaa
1-32
4 3 2 1 0
4 3 2
1 0
0 0 0
0
0
0
0
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?