Floating Point Instructions
5-64 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA
FLOGN Log
e
FLOGN
(MC6888X, M68040FPSP)
Operation: Log
e
of Source → FPn
Assembler FLOGN. < fmt > < ea > ,FPn
Syntax: FLOGN.X FPm,FPn
FLOGN.X FPn
Attributes: Format = (Byte, Word, Long, Single, Double, Extended, Packed)
Description: Converts the source operand to extended precision (if necessary) and
calculates the natural logarithm of that number. Stores the result in the destination
floating-point data register. This function is not defined for input values less than zero.
Operation Table:
NOTES:
1. If the source operand is a NAN, refer to 1.6.5 Not-A-Numbers for more information.
2. Sets the OPERR bit in the floating-point status register exception byte.
3. Sets the DZ bit in the floating-point status register exception byte.
Floating-Point Status Register:
Condition Codes: Affected as described in 3.6.2 Conditional Testing.
Quotient Byte: Not affected.
Exception Byte: BSUN Cleared
SNAN Refer to 1.6.5 Not-A-Numbers.
OPERR Set if the source operand is < 0; cleared
otherwise.
OVFL Cleared
UNFL Cleared
DZ Set if the source is ± 0; cleared otherwise
INEX2 Refer to inexact result in the appropriate
user’s manual.
INEX1 If < fmt > is packed, refer to inexact result on
decimal input in the appropriate user’s
manual; cleared otherwise.
Accrued Exception Byte: Affected as described in IEEE exception and trap compati-
bility in the appropriate user’s manual.
DESTINATION
SOURCE
1
+ In Range – + Zero – + Infinity –
Result
In(x) NAN
2
– inf
3
+ inf NAN
2
Comments to this Manuals