DL205 User Manual, 4th Edition, Rev. B
5–143
Chapter 5: Standard RLL Instructions - Number Conversion
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
In the following example when X1 is on, The value in the first level of the accumulator stack
will be reorganized in the order specified by the value in the accumulator.
Example A shows how the shuffle digits works when 0 or 9 –F is not used when specifying
the order the digits are to be shuffled. Also, there are no duplicate numbers in the specified
order.
Example B shows how the shuffle digits works when a 0 or 9–F is used when specifying the
order the digits are to be shuffled. Notice when the Shuffle Digits instruction is executed, the
bit positions in the first stack location that had a corresponding 0 or 9–F in the accumulator
(order specified) are set to “0”.
Example C shows how the shuffle digits works when duplicate numbers are used specifying
the order the digits are to be shuffled. Notice when the Shuffle Digits instruction is executed,
the most significant duplicate number in the order specified is used in the result.
D E F 0
9 A B C
Handheld Programmer Keystrokes
Direct
SO
F
T
L
DD
V2
000
X1
L
oad the
v
al
u
e
i
n
V2
000 and
V2
00
1
i
nto the a
ccu
m
u
lator
L
DD
V2
00
6
L
oad the
v
al
u
e
i
n
V2
00
6
and
V2
00
7
i
nto the a
ccu
m
u
lator
OUT
D
V2
0
1
0
Co
p
y the
v
al
u
e
i
n the
a
ccu
m
u
lator to
V2
0
1
0 and
V2
0
11
S
F
L
D
GT
S
h
uff
le the d
i
g
i
ts
i
n the
fi
rst
le
v
el o
f
the a
ccu
m
u
lator
sta
c
k
b
ased on the
p
attern
i
n the a
ccu
m
u
lator
.
T
he
res
u
lt
i
s
i
n the a
ccu
m
u
lator
.
V2
0
1
0
A
cc.
0 D A 9
9 A B C
D E F 0
V2
0
11
B C E F
A
cc.
3 6 5 4
1 2 8 7
3 6 5 4
1 2 8 7
A
cc.
B C E F
0 D A 9
V2
000
V2
00
1
V2
00
6
V2
00
7
C B A 9
0 F E D
V2
0
1
0
A
cc.
E D A 9
0 F E D
C B A 9
V2
0
11
0 0 0 0
A
cc.
0 0
2 1
0 0
4 3
0 0
2 1
0 0
4 3
A
cc.
0 0 0 0
E D A 9
V2
000
V2
00
1
V2
00
6
V2
00
7
D E F 0
9 A B C
V2
0
1
0
A
cc.
9 A B C
9 A B C
D E F 0
V2
0
11
0 0 0 0
A
cc.
4 3 2 1
4 3 2 1
4 3 2 1
4 3 2 1
A
cc.
0 0 0 0
9 A B C
V2
000
V2
00
1
V2
00
6
V2
00
7
A
B
C
O
r
i
g
i
nal
bi
t
Pos
i
t
i
ons
4 3 2 1
8 7 6 5
4 3 2 1
8 7 6 5
4 3 2 1
8 7 6 5
Sp
e
cifi
ed
order
4 3 2 1
8 7 6 5
4 3 2 1
8 7 6 5
4 3 2 1
8 7 6 5
N
e
w
bi
t
Pos
i
t
i
ons
4 3 2 1
8 7 6 5
4 3 2 1
8 7 6 5
4 3 2 1
8 7 6 5
STR
$
S
HF
T
A
N
D
ST
L
3
D
3
D
S
HF
T
A
N
D
ST
L
3
D
3
D
S
HF
T
RST
S
5
F
A
N
D
ST
L
3
D
6
G
MLR
T
E
NT
OUT
GX
S
HF
T
3
D
1
B
E
NT
2
C
0
A
0
A
0
A
E
NT
2
C
0
A
0
A
E
NT
6
G
2
C
0
A
1
B
0
A
E
NT
S
HF
T