DSP Core Instruction Set

Table A-2 describes the operators and operations syntax for each instruction.

Table A-2. Operations Syntax

Operator

Description

 

 

 

 

+

Add

Subtract

 

 

*

Multiply

 

 

/

Divide

 

 

Absolute value

 

 

&

Logical AND

 

 

Logical OR

 

 

Exclusive OR

 

 

~

Bitwise complement

 

 

= =

Test for equality, 1 if equal, 0 if not equal

 

 

Transfer left to right

 

 

Indicates either right or left transfers, but not both at once

 

 

>>

Arithmetic right shift (sign bits shifted right)

 

 

<<

Arithmetic or logical left shift (functionally the same)

 

 

>>>

Logical right shift

 

 

>

Compare for greater than

 

 

Rnd( )

Rounding function

 

 

x:y

Concatenation of x and y

 

 

Table A-3 describes the abbreviations used for the core registers.

Table A-3. Register Abbreviations

Abbreviation

Register Name

 

 

 

 

D0-D15

General purpose data register

R0-R15

General purpose address register

 

 

EMR

Exception and mode register

 

 

VBA

Vector base address register

 

 

SP

Stack pointer registers: normal (NSP) and exception (ESP)

 

 

PC

Program counter

 

 

SR

Status register

 

 

MCTL

Modifier control register

 

 

SA0-SA3

Start address registers

 

 

LC0-LC3

Loop counter registers

 

 

B0-B7

Modulo base registers

 

 

N0-N3

Offset registers

 

 

M0-M3

Modulo registers

 

 

OSP

Other stack pointer

 

 

SC140 DSP Core Reference Manual

A-3

Page 317
Image 317
Freescale Semiconductor SC140 Table A-2. Operations Syntax, Table A-3. Register Abbreviations, Operator Description