beautypg.com

Impysu, Integer multiply, Operation assembler syntax – Freescale Semiconductor StarCore SC140 User Manual

Page 507

background image

IMPYSU

SC140 DSP Core Reference Manual

A-193

IMPYSU

Integer Multiply

IMPYSU

Signed By Unsigned (DALU)

Description

Status and Conditions that Affect Instruction

None.

Status and Conditions Changed by Instruction

Example

impysu d3,d5,d1

Operation

Assembler Syntax

Da.H * Db.L

→ Dn

IMPYSU Da,Db,Dn

IMPYSU Da,Db,Dn

Performs a signed integer multiplication on the signed 16-bit HP of one source data register (Da) and the
unsigned 16-bit LP of a second source data register (Db). It then stores the sign-extended 32-bit result in a
destination data register (Dn).

Register
Address

Bit Name

Description

Ln

L

Clears the Ln bit in the destination register.

Register/Memory Address

Before

After

D5

$00 0000 0122

D3

$FF FFFF FFFF

L1:D1

$0:$FF FFFF FEDE