649
Floating-point Math Instructions
Section 3-15
Flags
Examples
Converting ASCII Text in Decimal Notation to Floating-point Data
When CIO 000000 is ON in the following example, FVAL(449) converts the
specified decimal-notation ASCII text number in the source words starting at
D00000 to floating-point data and writes the result to destination words
D00100 and D00101.
Converting ASCII Text in Scientific Notation
When CIO 000000 is ON in the following example, FVAL(449) converts the
specified scientific-notation ASCII text number in the source words starting at
D00000 to floating-point data and writes the result to destination words
D00100 and D00101.
Name
Label
Operation
Error Flag
ER
ON if the digits (integer and fractional parts) in the source
data starting at S are not 30 to 39 hex (0 to 9).
ON if the first two digits of the exponential part do not con-
tain 45 and 2B hex (E+) or 45 and 2D hex (E-). (integer
and fractional parts) in the source data starting at S are
not 30 to 39 hex (0 to 9).
ON if there are two or more exponential parts in the
source data.
ON if the data is +
∞
or
–
∞
after conversion.
ON is the are 0 characters in the text data.
ON if a byte containing 00 hex is not found within the first
25 characters.
OFF in all other cases.
Equals Flag
=
ON if the conversion result is 0.
OFF in all other cases.
0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0
1 0 1 1 1 1 1 1 1 0 0 1 1 1 1 0
000000
15
0
D00100
D00101
20 (Space)
31 (1)
32 (2)
34 (4)
32 (2)
00
2D (
−
)
30 (0)
2E (.)
33 (3)
35 (5)
31 (1)
D00000
D00001
D00002
D00003
D00004
D00005
−
0 1 .
2 3 4 5 2 1
0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0
1 0 1 1 1 1 1 1 1 0 0 1 1 1 1 0
15
0
FVAL
D00000
D00100
Conversion
Storage
Ignored
The 7th and higher digits are ignored.
(The sign, decimal point, and leading
zeroes/spaces are not counted.)
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...