U 1234
U 65480
H 3834
8 4
5 6
0
2 1
4 3
30
H 20
H 3536
H 3433
H 3231
H FFC8
H 04D2
DT0
DT101
DT1
DT2
DT3
(characters)
[S2]…DT0
[D]…DT100
[S2]
DT4
[i]…US
[S1]… "%5d"
[N]…H
DT100
DT102
DT5
Converts decimal ASCII data (5-digits) to 16-bit data (unsigned)
① ASCII data (reverse direction)
:
:
00020101
② Conversion starting position (1) → [S2]+1 byte
[D]
② Conversion starting position = +1 byte
③ Amount of data to be converted = 2
DT0 to DT2: " 1234" → DT100: U 1234 (H 04D2)
DT3 to DT5: "65480" → DT101: U 65480 (H FFC8)
DT6
**
**
H ** **
③ Amount of conversion data (2) → two 5-digit data
Example 10) Converting two decimal ASCII data (5 digits) to two 16-bit signed binary
data (decimal)
The conversion starts from the high byte of DT0. It is converted in reverse direction (the low
word side of [S2] is considered as high-order numerical data).
36
H 20
K 1234
K -56
H 352D
5 -
6
2 1
4 3
**
H 2020
H 3433
H 3231
H FFC8
H 04D2
DT0
DT101
DT1
DT2
DT3
(characters)
[S2]…DT0
[D]…DT100
[S2]
DT4
[i]…SS
[S1]…"%5d"
[N]…H
DT100
DT102
DT5
Converts decimal ASCII data (5-digit) to 16-bit data
① ASCII data (reverse direction)
:
:
00020101
② Conversion starting position (1) → [S2]+1 byte
[D]
② Conversion starting position = +1 byte
③ Amount of data to be converted = 2
DT0 to DT2: " 1234" → DT100: K 1234 (H 04D2)
DT3 to DT5: " -56" → DT101: K -56 (H FFC8)
DT6
**
H **
**
③ Amount of conversion data (2) → two 5-digit data
Example 11) Converting two decimal ASCII data (10 digits) to two 32-bit unsigned
binary data (decimal)
The conversion starts from the low byte of DT0. It is converted in reverse direction (the low
word side of [S2] is considered as high-order numerical data).
14.11 ATOB (Conversion: ASCII → BIN)
14-54 WUME-FP7CPUPGR-12