DL205 User Manual, 4th Edition, Rev. B
5–139
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 constant (K2) is loaded into the accumulator
using the Load instruction. The starting location for the HEX table (V1500) is loaded into
the accumulator using the Load Address instruction. The starting location for the ASCII table
(V1400) is specified in the HEX to ASCII instruction.
The table below lists valid ASCII values for HTA conversion.
Direct
SOFT
LD
K2
X1
Load the constant value into
the lower 16 bits of the
accumulator. This value
defines the number of V
locations in the HEX table.
LDA
O 1500
Convert octal 1500 to HEX
340 and load the value into
the accumulator
HTA
V1400
V1400 is the starting
location for the ASCII table.
The conversion is executed
by this instruction.
ASCII TABLE
Hexadecimal
Equivalents
1234
33 34
V1400
5678
31 32
V1401
37 38
V1402
35 36
V1403
V1500
V1501
STR
$
SHFT
ANDST
L
3
D
7
H
SHFT
MLR
T
SHFT
1
B
ENT
ENT
2
C
0
A
0
A
ENT
1
B
4
E
0
A
0
A
Handheld Programmer Keystrokes
PREV
ANDST
L
3
D
ENT
1
B
5
F
0
A
0
A
ASCII Values Valid for HTA Conversion
Hex Value
ASCII Value
Hex Value
ASCII Value
0
30
8
38
1
31
9
39
2
32
A
41
3
33
B
42
4
34
C
43
5
35
D
44
6
36
E
45
7
37
F
46