Redundant instruction
This is a redundant instruction. It is replaced by: FP_ASCII_TO_DEC
Converts the ASCII codes that express the decimal digits, starting from the 16-bit area specified by s1 to 16-bit data as specified by s2. The converted result is stored in the area specified by d. s2 specifies the number of source data bytes to be converted using decimal number. (This specification cannot be made with BCD data.)
Input
16-bit area for ASCII code (source)
specifies number of source data bytes to be converted
Output
16-bit area for storing converted data (destination)
Instead of using this F instruction, we recommend using the corresponding FP7 instruction:
The ASCII codes being converted should be stored in the direction of the last address in the specified area.
If the area specified by s1 and s2 is more than that required for the data you want to convert, place "0" (ASCII HEX code: 16#30) or "SPACE" (ASCII HEX code: 16#20) into the extra bytes.
ASCII codes with signs (such as +: 16#2B and -: 16#2D) are also converted. The + codes can be omitted.
Example of converting an ASCII code indicating a negative number
Example of converting an ASCII code indicating a positive number
ASCII HEX code to express decimal characters:
ASCII HEX code |
Decimal characters |
---|---|
16#20 16#2B 16#2D 16#30 16#31 16#32 16#33 16#34 16#35 16#36 16#37 16#38 16#39 |
SPACE + - 0 1 2 3 4 5 6 7 8 9 |
if the number of bytes specified by s2 exceeds the area specified by s1.
if the data specified by s2 is recognized as "0".
if the converted result exceeds the 16-bit area specified by d.
if ASCII code not corresponding to decimal numbers (0 to 9) or ASCII characters (+, -, and SPACE) is specified.
if the number of bytes specified by s2 exceeds the area specified by s1.
if the data specified by s2 is recognized as "0".
if the converted result exceeds the 16-bit area specified by d.
if ASCII code not corresponding to decimal numbers (0 to 9) or ASCII characters (+, -, and SPACE) is specified.