3. Instructions
/F
• If the absolute value of the result is greater than the maximum value that can be expressed as
floating-point data, the Overflow Flag will turn ON and the result will be output as
• If the absolute value of the result is less than the minimum value that can be expressed as floating-
point data, the Underflow Flag will turn ON and the result will be output as 0.
Operation rules
The result of an operation is output as shown below depending on the combination of floating-point
data.
FLOATING-POINT ADD (+F)
Addend
0
Numeral
+
–
NaN
Note 1 The results could be zero (including underflows), a numeral, + , or – .
2 With CJ1H-CPU@@H-R CPU Units, an undetermined value will be output.
ER
The Error Flag will be turned ON and the instruction will not be executed.
FLOATING-POINT SUBTRACT (–F)
Subtrahend
0
Numeral
+
–
NaN
Note 1 The results could be zero (including underflows), a numeral, + , or – .
2 With CJ1H-CPU@@H-R CPU Units, an undetermined value will be output.
ER
The Error Flag will be turned ON and the instruction will not be executed.
470
Dd+1
Dd
Dr+1
Dr
R+1
R
0
Numeral
0
Numeral
Numeral
See note 1.
+
+
(See note 2.)
–
–
(See note 2.)
0
Numeral
0
Numeral
Numeral
See note 1.
–
–
(See note 2.)
(See note 2.)
+
+
Dividend (floating-point data, 32 bits)
Divisor (floating-point data, 32 bits)
Result (floating-point data, 32 bits)
Augend
+
+
+
(See note 2.)
(See note 2.)
+
ER
Minuend
+
+
+
(See note 2.)
(See note 2.)
ER
+
CS/CJ/NSJ Series Instructions Reference Manual (W474)
.
–
NaN
–
–
ER
–
ER
–
NaN
–
–
–
ER
ER
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers