Imaclhuu, Integer multiply-accumulate, Operation assembler syntax – Freescale Semiconductor StarCore SC140 User Manual
Page 497

IMACLHUU
SC140 DSP Core Reference Manual
A-183
IMACLHUU
Integer Multiply-Accumulate
IMACLHUU
Lower Unsigned By Upper Unsigned (DALU)
Description
Status and Conditions that Affect Instruction
None.
Status and Conditions Changed by Instruction
Example
imaclhuu d3,d4,d0
–65,472$FFC0
x 2
$0002
–130,944$FF80
+1
$0001
-130,943$FF81
Operation
Assembler Syntax
Dn + (Da.L * Db.H)
→ Dn
IMACLHUU Da,Db,Dn
IMACLHUU Da,Db,Dn
Performs an unsigned integer multiplication of the 16-bit LP of one source data register (Da) with the
16-bit HP of another source data register (Db). It then adds the zero-extended 32-bit product to a
destination data register (Dn). This instruction is optimized for multi-precision-multiplication support.
Register Address
Bit Name
Description
Ln
L
Clears the Ln bit in the destination register.
EMR[2]
DOVF
Set if the result cannot be represented in 40 bits.
Register/Memory Address
Before
After
D3
$00 0000 0002
D4
$FF FFC0 0000
L0:D0
$0:$00 0000 0001
$0:$00 0001 FF81
EMR
$0000 0000