Decode (DECO)
The Decode instruction decodes a 5 bit binary value of 0 to 31
230
(0 to 1F HEX) in the accumulator by setting the appropriate
240
bit position to a 1. If the accumulator contains the value F
250-1
(HEX), bit 15 will be set in the accumulator. If the value to be
decoded is greater than 31, the number is divided by 32 until
260
the value is less than 32 and then the value is decoded.
DS
Used
In the following example when X1 is on, the value formed by discrete locations X10–X14 is
HPP Used
loaded into the accumulator using the Load Formatted instruction. The five bit binary
pattern in the accumulator is decoded by setting the corresponding bit position to a "1" using
the Decode instruction.
DirectSOFT
X1
LDF
X10
K5
Load the value in
represented by discrete
locations X10–X14 into the
accumulator
DECO
Decode the five bit binary
pattern in the accumulator
and set the corresponding
bit position to a "1"
Chapter 5: Standard RLL Instructions - Bit Operation
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
Acc.
0
0 0
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
Acc.
0
0 0
0 0 0
0 0
Handheld Programmer Keystrokes
$
B
ENT
STR
1
L
D
F
SHFT
ANDST
3
5
D
E
C
O
SHFT
3
4
2
INST#
DL205 User Manual, 4th Edition, Rev. B
15 14 13 12 11 10 9
0 0
0 0 0
0 0
0
0 0 0
0 0
15 14 13 12 11 10 9
0 0
0 0 0
0 0
0
0 0 0
0 1
B
A
F
ENT
1
0
5
ENT
DECO
X14 X13 X12 X11 X10
OFF
ON
OFF
ON
ON
8 7 6 5
4 3 2
1 0
0 0
0 0 0
0 0
1 0
1 1
The binary vlaue
is converted to
bit position 11.
8 7 6 5
4 3 2
1 0
0 0
0 0 0
0 0
0 0
0 0
5–129
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?