DSP Core Instruction Set

Table A-7. DALU Arithmetic Instructions (MAC)

Instruction

Description

 

 

 

 

ABS

Absolute value

 

 

ADC

Add long with carry

 

 

ADD

Add

 

 

ADD2

Add two words

 

 

ADDNC.W

Add without changing the carry bit in the SR

 

 

ADR

Add and round

 

 

ASL

Arithmetic shift left by one bit

 

 

ASR

Arithmetic shift right by one bit

 

 

CLR

Clear

 

 

CMPEQ

Compare for equal

 

 

CMPGT

Compare for greater than

 

 

CMPHI

Compare for higher (unsigned)

 

 

DECEQ

Decrement a data register and set T if zero

 

 

DECGE

Decrement a data register and set T if greater than or equal to zero

 

 

DIV

Divide iteration

 

 

DMACSS

Multiply signed by signed and accumulate with data register right shifted by word size

 

 

DMACSU

Multiply signed by unsigned and accumulate with data register right shifted by word size

 

 

IADDNC.W

Add integers, 40-bit, non-saturating, immediate, no-carry update

 

 

IMAC

Multiply-accumulate integers

 

 

IMACLHUU

Multiply-accumulate unsigned integers;

 

first source from low portion, second from high portion

IMACUS

Multiply-accumulate unsigned integer and signed integer

 

 

IMPY

Multiply signed integers in data registers

 

 

IMPY.W

Multiply signed immediate and signed integer in data register

 

 

IMPYHLUU

Multiply unsigned integer and unsigned integer;

 

first source from high portion, second from low portion

 

 

IMPYSU

Multiply signed integer and unsigned integer

 

 

IMPYUU

Multiply unsigned integer and unsigned integer

 

 

INC

Increment a data register (as integer data)

 

 

INC.F

Increment a data register (as fractional data)

 

 

MAC

Multiply-accumulate signed fractions

 

 

MACR

Multiply-accumulate signed fractions and round

 

 

MACSU

Multiply-accumulate signed fraction and unsigned fraction

 

 

MACUS

Multiply-accumulate unsigned fraction and signed fraction

 

 

MACUU

Multiply-accumulate unsigned fraction and unsigned fraction

 

 

MAX

Transfer maximum signed value

 

 

MAX2

Transfer two 16-bit maximum signed values

 

 

MAX2VIT

Special MAX2 version for Viterbi kernel

 

 

MAXM

Transfer maximum magnitude value

 

 

MIN

Transfer minimum signed value

 

 

MPY

Multiply signed fractions

 

 

SC140 DSP Core Reference Manual

A-13

Page 327
Image 327
Freescale Semiconductor SC140 specifications Table A-7. Dalu Arithmetic Instructions MAC, Instruction Description