4
FSIN Sine FSIN
Operation:
Assembler
Syntax:
Sine of Source l) FPn
FSIN.<fmt> <ea>,FPn
FSIN.X FPm,FPn
FSIN.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 sine 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 [-2w... +2w], the argument is reduced to within that
range before the sine is calculated. However, large arguments may lose accuracy
during reduction, and very large arguments (greater than approximately 102°) lose all
accuracy. The result is in the range of [- 1... + 11.
Operation
Table:
_~~ Source i In Range Zero
Destination
~ + - + -
Result Sine + 0.0 - 0.0
NOTES:
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.
Infinity
+
NAN 1
Status Register:
Condition Codes:
Affected as described in 4.5.5.1 SETTING FLOATING-POINT
CONDITION CODES
Quotient Byte: Not affected
Exception Byte: BSUN
SNAN
OPERR
Cleared
Refer to 4.5.4
NANs.
Set if the source is (+ or -)infinity; cleared
otherwise.
OVFL Cleared
UNFL Refer to 6.1.5 Underflow.
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
Compatibility
Accrued Exception Byte:
FREESCALE
4-102
MC68881/MC68882 USER'S MANUAL