4
FGETEXP Get Exponent FGETEXP
Operation:
Exponent of Source ~ FPn
Assembler
FGETEXP.<fmt> <ea>,FPn
Syntax:
FGETEXP.X FPm,FPn
FGETEXP.X FPn
Attributes: Format= (Byte, Word, Long, Single, Double, Extended, Packed)
Description:
Converts the source operand to extended precision (if necessary) and ex-
tracts the binary exponent. Removes the exponent bias, converts the exponent to an
extended precision floating-point number, and stores the result in the destination
floating-point data register.
Operation Table:
In
Range
Result Exponent
Zero
_ I + Infinity
+0.0
-0.0 { NAN 1
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.
Status Register:
Condition Codes:
Quotient Byte:
Exception Byte:
Accrued Exception Byte:
Affected as described in 4.5.5.1 SETI'ING FLOATING-POINT
CONDITION
CODES
Not affected
BSUN
SNAN
OPERR
Cleared
Refer to 4.5.4
NANs.
Set if the source is (+ or -)infinity; cleared
otherwise
OVFL Cleared
UNFL Cleared
DZ Cleared
INEX2 Cleared
INEX1 If <fmt> 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-46
MC68881/MC68882 USER'S MANUAL