beautypg.com

Motorola DSP96002 User Manual

Page 79

background image

MOTOROLA

DSP96002 USER’S MANUAL

6 - 3

6.2.2 Fixed-Point Arithmetic Instructions

The fixed-point arithmetic instructions perform all operations within the Data ALU. Arithmetic instructions

are register-based (register direct addressing modes used for operands) so that the Data ALU operation

indicated by the instruction does not use the X Data Bus, the Y Data Bus, or the Global Data Bus. This

allows for parallel data movement over these buses during most Data ALU operations. This allows new

data to be pre-fetched for use in following instructions and results calculated by previous instructions to be

stored. Fixed-point arithmetic instructions execute in one instruction cycle. See Figure 6-2 for a list of the

thirty fixed-point arithmetic instructions.

Figure 6-2. Fixed-Point Arithmetic Instructions

ABS

Absolute Value

ADD

Add

ADDC

Add with Carry

ASL

Arithmetic Shift Left

ASR

Arithmetic Shift Right

CLR

Clear an Operand

CMP

Compare

CMPG

Graphics Compare with Trivial Accept/Reject Flags

DEC

Decrement by one

EXT

Sign Extend 16-Bit To 32-Bit

EXTB

Sign Extend 8-Bit To 32-Bit

GETEXP

Get Exponent

INC

Increment by One

INT

Floating-Point to Integer Conversion

INTRZ

Floating-Point to Integer Conversion Round to Zero

INTU

Floating-Point to Unsigned Integer Conversion

INTURZ

Floating-Point to Un. Integer Conversion Round to Zero

JOIN

Join Two 16-Bit Integers

JOINB

Join Two 8-Bit Integers

MPYS

Signed Multiply

MPYU

Unsigned Multiply

NEG

Negate

NEGC

Negate with Carry

SETW

Set an Operand

SPLIT

Extract a 16-Bit Integer

SPLITB

Extract an 8-Bit Integer

SUB

Subtract

SUBC

Subtract with Carry

TFR

Transfer Data ALU Register

TST

Test an Operand