INSTRUCTION GROUPS

ABS

Absolute Value

ADC

Add Long with Carry

ADD

Addition

ADDL

Shift Left and Add

ADDR

Shift Right and Add

ASL

Arithmetic Shift Left

ASR

Arithmetic Shift Right

CLR

Clear an Operand

CMP

Compare

CMPM

Compare Magnitude

DEC*

Decrement by One

DIV*

Divide Iteration

INC*

Increment by One

MAC

Signed Multiply-Accumulate**

MACR

Signed Multiply-Accumulate and Round**

MPY

Signed Multiply**

MPYR

Signed Multiply and Round**

NEG

Negate Accumulator

NORM*

Normalize

RND

Round

SBC

Subtract Long with Carry

SUB

Subtract

SUBL

Shift Left and Subtract

SUBR

Shift Right and Subtract

Tcc*

Transfer Conditionally

TFR

Transfer Data ALU Register

TST

Test an Operand

6.4.2 Logical Instructions

The logical instructions execute in one instruction cycle and perform all of the logical oper- ations within the data ALU (except ANDI and ORI). They may affect all of the CCR bits and, like the arithmetic instructions, are register based.

Logical instructions are the only instructions that allow apparent duplicate destinations, such as:

AND X0,A

X:(R0):A0

A logical instruction uses only the MSP portion of the A and B registers (A1 and B1).

*These instructions do not allow parallel data moves.

**Certain applications of these instructions do not allow parallel data moves.

MOTOROLA

INSTRUCTION SET INTRODUCTION

6 - 23

Page 120
Image 120
Motorola DSP56000, 24-Bit Digital Signal Processor manual Logical Instructions