Motorola DSP96002 User Manual page 334

32-bit digital signal processor
Table of Contents

Advertisement

FMPY//FSUB.S
Operation:
S1 * S2
ROUND(MP)
(parallel data bus move)
D2 - S3
ROUND(SP)
Description:
Multiply the two operands S1 and S2, round to the precision indicated by the MP mode bit and store the
result in the specified destination register D1. Simultaneously, subtract S3 from D2, round to single pre-
cision and store the result in the destination operand D2. Typically, if the result of the multiplication will be
used immediately following FADD (i.e., equivalent to an FMAC), the maximum precision (MP=1) will be
programmed. For the special case of |s|=|D|, the result can be +0 or -0; the sign of the resulting zero will
be the sign of the input operand in D.
Input Operand(s) Precision: SEP Floating-Point.
Subtraction Output Operand Precision: SP Floating-Point.
Multiplication Output Operand Precision: as indicated by MP.
CCR Condition Codes:
C
V
Z
N
I
LR
R
A
ER Status Bits:
INX
DZ
UNF
OVF
A - 146
Floating-Point
Multiply and Subtract
D1
D2
- Not affected.
- Not affected.
- Set if result of the subtraction is zero. Cleared otherwise.
- Set if result of the subtraction is negative. Cleared otherwise.
- Set if result of the subtraction is infinity. Cleared otherwise.
- Not affected.
- Not affected.
- Not affected.
-Set if the result of the subtraction or multiplication is inexact. Cleared otherwise.
-Always cleared.
-Set if the result of the subtraction or multiplication underflows. Cleared otherwise.
-Set if the result of the subtraction or multiplication overflows. Cleared otherwise.
DSP96002 USER'S MANUAL
FMPY//FSUB.S
Assembler Syntax:
FMPY S1,S2,D1 FSUB.S S3,D2
(move syntax - see the MOVE instruction descrip-
tion.)
FMPY S2,S1,D1 FSUB.S S3,D2
(move syntax - see the MOVE instruction descrip-
tion.)
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents