Floating-Point - Motorola DSP96002 User Manual

32-bit digital signal processor
Table of Contents

Advertisement

FMPY//FADD.S
Operation:
S1 * S2
ROUND(MP)
(parallel data bus move)
S3 + D2
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, add the two operands S3 and D2, round to
single precision and store the result in the destination operand D2. Typically, if the result of the multiplica-
tion will be used immediately following a data ALU instruction such as FADD (i.e., equivalent to an FMAC),
the maximum precision (MP=1) will be programmed. However, if the product is to be stored, then single
precision (MP=0) rounding will be used.
Input Operand(s) Precision: SEP Floating-Point.
Addition 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
OPERR- Set if one of the multiply operands is infinity and the other is zero. Set if the addition
A - 138

Floating-Point

Multiply and Add
D1
D2
- Not affected.
- Not affected.
- Set if result of the addition is zero. Cleared otherwise.
- Set if result of the addition is negative. Cleared otherwise.
- Set if result of the addition is infinity. Cleared otherwise.
- Not affected.
- Not affected.
- Not affected.
- Set if the result of the addition or the multiplication is inexact. Cleared otherwise.
- Always cleared.
- Set if the result of the addition or the multiplication underflows. Cleared otherwise.
- Set if the result of the addition or the multiplication overflows. Cleared otherwise.
operands are opposite-signed infinities. Cleared otherwise.
DSP96002 USER'S MANUAL
FMPY//FADD.S
Assembler Syntax:
FMPY S1,S2,D1 FADD.S S3,D2
(move syntax - see the MOVE instruction de-
scription.)
FMPY S2,S1,D1 FADD.S S3,D2
(move syntax - see the MOVE instruction de-
scription.)
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents