Omron CP1E-N@@D@-@ Computer Hardware User Manual


 
2-237
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Floating-point Math
Instructions
2
+F, –F, *F, /F
+F, –F, *F, /F
Applicable Program Areas
Operands
Operand Specifications
Instruction Mnemonic Variations
Function
code
Function
FLOATING-POINT ADD +F @+F 454
Adds two 32-bit floating-point numbers and places
the result in the specified result words.
FLOATING-POINT SUBTRACT F@F455
Subtracts one 32-bit floating-point number from
another and places the result in the specified
result words.
FLOATING-POINT MULTIPLY *F @*F 456
Multiplies two 32-bit floating-point numbers and
places the result in the specified result words.
FLOATING-POINT DIVIDE /F @/F 457
Divides one 32-bit floating-point number by
another and places the result in the specified
result words.
Symbol
+F –F
*F /F
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
+F
Au First augend word
REAL 2
AD First addend word
-F
Mi First Minuend word
REAL 2
Su First Subtrahend word
*F
Md First Multiplicand word
REAL 2
Mr First Multiplier word
/F
Dd First Dividend word
REAL 2
Dr First Divisor word
R First result word REAL 2
Area
Word addresses Indirect DM addresses
Constants CF
Pulse
bits TR bits
CIO WR HR AR T C DM @DM *DM
Au, AD, Mi, Su,
Md, Mr, Dd, Dr
OK OK OK OK OK OK OK OK OK
OK
--- --- ---
R ---
Au: First augend word
AD: First addend word
R: First result word
+F(454)
Au
AD
R
Mi: First Minuend word
Su: First Subtrahend word
R: First result word
–F(455)
Mi
Su
R
Md: First Multiplicand word
Mr: First Multiplier word
R: First result word
*F(456)
Md
Mr
R
Dd: First Dividend word
Dr: First Divisor word
R: First result word
/F(457)
Dd
Dr
R