Chapter 5: Standard RLL Instructions - Bit Operation
Rotate Left (ROTL)
1
Rotate Left is a 32-bit instruction that rotates the bits in the
230
accumulator a specified number (Aaaa) of places to the left.
240
2
250-1
Operand Data Type
260
3
V-memory
Constant
4
In the following example, when X1 is on, the value in V1400 and V1401 will be loaded into
the accumulator using the Load Double instruction. The bit pattern in the accumulator is
5
rotated 2 bit positions to the left using the Rotate Left instruction. The value in the
DS
Used
accumulator is copied to V1500 and V1501 using the Out Double instruction.
HPP Used
6
DirectSOFT
X1
7
LDD
Load the value in V1400 and
8
V1401 into the accumulator
ROTL
9
The bit pattern in the
accumulator is rotated 2
bit positions to the left
10
OUTD
11
Copy the value in the
accumulator to V1500
and V1501
12
13
Handheld Programmer Keystrokes
14
$
B
STR
1
L
D
SHFT
ANDST
3
A
R
O
SHFT
ORN
INST#
GX
D
SHFT
B
OUT
3
C
D
5–126
DL205 User Manual, 4th Edition, Rev. B
DL250-1 Range
A
aaa
V
All (See page 3 - 55)
K
1-32
V1400
31
30
K2
Acc.
0
1
V1500
31
30
1
0
Acc.
ENT
D
B
E
A
3
1
4
0
T
L
C
ENT
MLR
ANDST
2
B
F
A
A
1
5
0
0
DL260 Range
aaa
All (See page 3 - 56)
1-32
V1401
6 7
29
28
27
26
25
24
23
22
21
20
19
18
1
0
0
1
1
1
0
0
0
0
0
1
29
28
27
26
25
24
23
22
21
20
19
18
0
1
1
1
0
0
0
0
0
1
0
1
9 C 1 4
V1501
A
ENT
0
ENT
ROTL
A aaa
V1400
0 5
3 1
0 1
17 16
15
14
13
12
11
10
9
8
7
6
0
1
0
0
1
1
0
0
0
1
0
0
17
16
15
14
13
12
11
10
9
8
7
6
0
0
1
1
0
0
0
1
0
0
0
0
C 4
0 5
V1500
5
4
3
2
1 0
0
0
0
0
0
1
5
4
3
2
1
0
0
0
0
1
0
1
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?