Download 68kPM

Transcript
Floating Point Instructions
FCOS
FCOS
Cosine
(MC6888X, M68040FPSP)
Operation:
Cosine of Source → FPn
Assembler
Syntax:
FCOS. < fmt > < ea > ,FPn
FCOS.X FPm,FPn FCOS.X FPn
Attributes:
Format = (Byte, Word, Long, Single, Double, Extended, Packed)
Description: Converts the source operand to extended precision (if necessary) and
calculates the cosine of that number. Stores the result in the destination floating-point
data register. This function is not defined for source operands of ± infinity. If the source
operand is not in the range of [ – 2π... + 2π], then the argument is reduced to within that
range before the cosine is calculated. However, large arguments may lose accuracy
during reduction, and very large arguments (greater than approximately 1020) lose all
accuracy. The result is in the range of [ – 1... + 1].
Operation Table:
DESTINATION
Result
+
In Range
Cosine
– +
SOURCE1
Zero
– +
+ 1.0
Infinity
–
NAN2
NOTES:
1. If the source operand is a NAN, refer to 1.6.5 Not-A-Numbers for more information.
2. Sets the OPERR bit in the floating-point status register exception byte.
5-28
M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL
MOTOROLA