Floating-point Math Instructions
Description
Note
Flags
Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
+F(454) adds the 32-bit floating-point number in Ad+1 and Ad to the 32-bit
floating-point number in Au+1 and Au and places the result in R+1 and R.
(The floating point data must be in IEEE754 format.)
Au+1
+
Ad+1
R+1
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.
The various combinations of augend and addend data will produce the results
shown in the following table.
Addend
0
0
0
Numeral
Numeral
+
+
–
–
NaN
(1) The results could be zero (including underflows), a numeral, + , or – .
(2) The Error Flag will be turned ON and the instruction will not be executed.
Name
Label
Error Flag
ER
Equals Flag
=
Au
@ D0 to @ D32767
*D0 to *D32767
#00000000 to #FFFFFFFF (binary)
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Augend (floating-point data, 32 bits)
Au
Addend (floating-point data, 32 bits)
Ad
Result (floating-point data, 32 bits)
R
.
Augend
Numeral
+
Numeral
+
See note 1.
+
+
+
–
See note 2.
Operation
ON if the augend or addend data is not recognized as
floating-point data.
ON if the augend or addend data is not a number (NaN).
ON if + and – are added.
OFF in all other cases.
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
Section 3-14
Ad
R
---
–
NaN
–
–
See note 2.
–
See note 2.
485
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers