4
FINT FINT
Operation: Integer Part of Source ~ FPn
Assembler FINT.<fmt> <ea>,FPn
Syntax: FINT.X FPm,FPn
FINT.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 integer part and converts it to an extended precision floating-point number.
Stores the result in the destination floating-point data register. The integer part is
extracted by rounding the extended precision number to an integer using the current
rounding mode selected in the FPCR mode control byte. Thus, the integer part returned
is the number that is to the left of the radix point when the exponent is zero, after
rounding. For example, the integer part of 137.57 is 137.0 for the round-to-zero and
round-to-minus infinity modes, and 138.0 for the round-to-nearest and round-to-plus
infinity modes. Note that the result of this operation is a floating-point number.
Operation Table:
Source
In
Range Zero
I Infinity
Destination
~ + - + - +
Result Integer +0.0 -0.0 ! +inf
J
NOTE: If the source operand is a NAN, refer to 4.5.4 NANs for more information.
-inf
Status Register:
Condition Codes:
Quotient Byte:
Exception Byte:
Accrued Exception Byte:
Affected as described in 4.5.5.1 SETTING FLOATING-POINT
CONDITION CODES
Not affected
BSUN
SNAN
OPERR
OVFL
UNFL
DZ
INEX2
INEX1
Cleared
Refer to 4.5.4 NANs.
Cleared
Cleared
Cleared
Cleared
Refer to 6.1.7 Inexact Result.
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-50
MC68881/MC68882 USER'S MANUAL