Motorola DSP96002 User Manual page 306

32-bit digital signal processor
Table of Contents

Advertisement

FGETMAN
Operation:
Normalized mantissa of S
(parallel data bus move)
Description:
Extract the mantissa and sign of the floating-point operand S, normalizes the mantissa, forces the expo-
nent to "ebias" so the result is in the range 1-2, and stores the result as a floating-point value in the spec-
ified destination D regardless of whether the mantissa is denormalized or not.
As an example of the use of FGETMAN, GETEXP, and FSCALE; consider decomposing a floating-point
number into its mantissa and unbiased exponent and then recreating the original floating-point number.
FGETMAN
GETEXP
MOVE
FSCALE.X
Input (SEP)
-infinity
negative, non-zero
-0.0
+0.0
positive, non-zero
+infinity
NaN
Input Operand(s) Precision: SEP Floating-Point.
Output Operand Precision: SEP Floating-Point.
A - 118
Extract the Mantissa
Assembler Syntax:
D
FGETMAN S,D
D0, D1
;extract normalized mantissa
D0,D2
;extract unbiased exponent
D2.L, D2.H
;move unbiased exponent
D2.H, D1
;scale original mantissa
Output (SEP)
NaN, signals OPERR
signed mantissa
-0.0
+0.0
signed mantissa
NaN, signals OPERR
NaN
DSP96002 USER'S MANUAL
FGETMAN
(move syntax - see the MOVE in-
struction description.)
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents