Floating Point Instructions
5-4
M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL
MOTOROLA
FABS
Floating-Point Absolute Value
FABS
(MC6888X, MC68040)
Operation:
Absolute Value of Source
→
FPn
Assembler
Syntax:
FABS. < fmt > < ea > ,FPn
FABS.X FPm,FPn
FABS.X FPn
*FrABS. < fmt > < ea > ,FPn
*FrABS.X FPm,FPn
*FrABS.X Pn
where r is rounding precision, S or D
*Supported by MC68040 only.
Attributes:
Format = (Byte, Word, Long, Single, Quad, Extended, Packed)
Description:
Converts the source operand to extended precision (if necessary) and stores
the absolute value of that number in the destination floating-point data register.
FABS will round the result to the precision selected in the floating-point control register.
FSABS and FDABS will round the result to single or double precision, respectively,
regardless of the rounding precision selected in the floating-point control register.
Operation Table:
NOTE: If the source operand is a NAN, refer to
1.6.5 Not-A-Numbers
for more information
DESTINATION
SOURCE
+ In Range – + Zero – + Infinity –
Result
Absolute Value Absolute Value Absolute Value
Comments to this Manuals