FSQRT Square Root FSQRT
Operation: Square Root of Source I) FPn
Assembler
FSQRT.<fmt> <ea>,FPn
Syntax:
FSQRT.X FPm,FPn
FSQRT.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 square root of that number. Stores the result in the destination floating-
point data register. This function is not defined for negative operands.
Operation
Table:
~_
Source I In Range
Zero
Destination ~ + - + -
7
• Result I
,'x
NAN 1 +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
+
+inf 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 operand is not zero and is
negative; cleared otherwise
OVFL Cleared
UNFL Cleared
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:
MC68881/MC68882 USER'S MANUAL
FREESCALE
4-109