EasyManua.ls Logo

Freescale Semiconductor MC68881 - Page 110

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
FINTRZ
,,,~,e, Part. Round-to-Zero
FINTRZ
Operation:
Integer Part of Source ~ FPn
Assembler
FINTRZ.<fmt> <ea>,FPn
Syntax:
FINTRZ.X FPm,FPn
FINTRZ.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 round-
to-zero mode, regardless of the rounding mode selected in the FPCR mode control
byte (making it useful for FORTRAN assignments). Thus, the integer part returned is
the number that is to the left of the radix point when the exponent is zero. For example,
the integer part of 137.57 is 137.0; the integer part of 0.1245x 102 is 12.0. Note that
the result of this operation is a floating-point number.
Operation Table:
Source In
Range
Destination
~ + -
Result Integer, Forced
Round-To-Zero
Zero
+0.0 -0.0
+
+inf -inf
NOTE: 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-rlNG 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-52
MC68881/MC68882 USER'S MANUAL

Table of Contents