■
Precautions for programming
● Two characters of ASCII code are converted into two 1-byte numerical digits. At this time, the
upper and lower characters are interchanged.
● Four characters are converted as one segment of data.
14
3
4 2
[S1+3]
4
4
4
ABCD
[D]
Conversion result
(hexadecimal)
ASCII string
[S1+2] [S1+1] [S1]
■
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 number of characters specified by [S2] exceeds the area of the
conversion range.
To be set when the conversion result exceeds the area.
To be set when [S2] is specified as '0' or a negative value.
To be set when the ASCII codes specified by [S1] contains character codes other than 0 to
F.
14.4 AHEX (Conversion: Hexadecimal ASCII → HEX)
WUME-FP7CPUPGR-12 14-15