EasyManua.ls Logo

Freescale Semiconductor MC68881 - Page 92

Default Icon
409 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4
FCOS Cos,.e FCOS
Operation:
Cosine of Source 0 FPn
Assembler
FCOS.<fmt> <ea>,FPn
Syntax:
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 cal-
culates 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:
ce
+
In
Range
Result Cosine
Zero
+
+1.0
Infinity
..p
NAN I
NOTE:
1. Sets the OPERR bit in the FPSR exception byte.
2. if the
source
operand is a NAN, refer to 4.5.4 NANs for more information.
Status Register:
Condition Codes:
Quotient Byte:
Exception Byte:
Accrued Exception Byte:
Affected as described in 4.5.5.1 SE'I-I'ING FLOATING-POINT
CONDITION
CODES
Not affected
BSUN
SNAN
OPERR
Cleared
Refer to 4.5.4
NANs.
Set if the source operand is (+ or -)infinity;
cleared otherwise
OVFL Cleared
UNFL Cleared
DZ Cleared
INEX2 Refer to 6.1.7
Inexact Result.
INEX1 If <fret> is Packed, refer to 6.1.8 Inexact
Result
on
Decimal Input; cleared otherwise.
Affected as described in 6.1.10 IEEE Exception and Trap Com-
patibility.
FREESCALE
4-34
MC68881/MC68882 USER'S MANUAL

Table of Contents

Related product manuals