beautypg.com

Mpys//add integer signed mpys//add, Multiply and add – Motorola DSP96002 User Manual

Page 837

background image

MOTOROLA

55

Operation:

S1.L * S2.L

D1.M:D1.L

(parallel data bus move)

S3.L + D2.L

D2.L

MPYS//ADD

Integer Signed

MPYS//ADD

Multiply and Add

Description:

Multiply the two signed operands S1 and S2 and store the product in the specified destination register D1.

The two source operands S1and S2 are 32-bit integers and are taken from the low portion of S1 and S2.

The result is a 64-bit signed integer stored in the middle and low portions of D1.

Simultaneously, add the low portion of the two operands S3 and D2 and store the result in the low portion

of the destination operand D2.

This instruction is enabled only in Integer Mode.

Input Operand(s) Precision: 32-bit integer.

Addition Output Operand Precision: 32-bit integer.

Multiplication Output Operand Precision: 64-bit integer.

CCR Condition Codes:

C

- Set if carry is generated from the MSB of the addition result. Cleared otherwise.

V

- Set if the addition result overflows. Cleared otherwise.

Z

- Set if result of the addition is zero. Cleared otherwise.

N

- Set if result of the addition is negative. Cleared otherwise.

I

- Not affected.

LR

- Not affected.

R

- Not affected.

A

- Not affected.

ER Status Bits: Not affected

IER Flags: Not affected

Assembler Syntax:

MPYS S1,S2,D1 ADD S3,D2

(move syntax - see the MOVE instruction de-

scription.)

MPYS S2,S1,D1 ADD S3,D2

(move syntax - see the MOVE instruction de-

scription.)