H 1004
Example 4) Operation unit: 32 bits (UL)
DT10
[S1]…DT0
H 5678
H 1234
[S2]…DT2
DT1
DT11
DT12
DT13
H 3231
H 3433
21
43
(characters)
[S1]…DT0 [S2]…DT2
[D]…DT10
DT3
[D]
H 3635
H 3837
65
87
Reverse direction, four bytes
[i]…UL
■
Precautions for programming
● The two characters that comprise 1 byte are stored in the opposite order following
conversion.
● Converts two bytes as one section.
②
①
④
③
⑥
⑤
⑧
⑦
⑤⑥
⑦⑧
③④
①②
[S1+1]
[S1]
ASCII Code
[D+3] [D+2] [D+1] [D]
[Forward direction]
⑧
⑦ ⑥
⑤
④ ③
②
①
⑤⑥
⑦⑧
③④
①②
[S1+1]
[S1]
ASCII Code
[D+3] [D+2] [D+1] [D]
[Reverse direction]
BCD
BCD
■
Flag operations
Name Description
SR7
SR8
(ER)
To be set in the case of out-of-range in indirect access (index modification).
To be set when the data specified by [S1] contain non-BCD data.
To be set when the number of bytes specified by [S2] exceeds the [S1] area.
To be set when the conversion result exceeds the area.
To be set when [S2] is specified as '0'.
To be set when the conversion direction of [S2] is out of the range.
To be set when the conversion data size of [S2] is out of the range.
14.5 BCDA (Conversion: BCD → Decimal ASCII)
14-18 WUME-FP7CPUPGR-12