High−level Instructions
3 − 175
Conversion Example
The following shows conversion from 16−bit decimal data to ASCII codes.
When a negative number is converted
Converted
result
2D
D+2 D+1 D
31
1 −
ASCII code
3030
00
2020
Extra bytes
Range specified by S2 (6 bytes)
S1
K−100
9CFF
16−bit data
(Space) (Space)
F75 (BINA) instruction execution
When a positive number is converted
Converted
result
D+2 D+1 D
ASCII code Extra bytes
Range specified by S2 (6 bytes)
S1
16−bit data
(Space) (Space)
2132
21
3334
43
2020
K1234
D204
F75 (BINA) instruction execution
Decimal characters to express ASCII HEX code
Decimal
characters
ASCII HEX
code
SPACE
−
0
1
2
3
4
5
6
7
8
9
H20
H2D
H30
H31
H32
H33
H34
H35
H36
H37
H38
H39