Short Addressing Mode; Short Immediate Mode; Short Immediate Operands - Motorola DSP56600 Manual

Application optimization for digital signal processors
Table of Contents

Advertisement

Compact Opcode Use
Addressing Modes
7-6
Optimizing DSP56300/DSP56600 Applications
7.2.2

Short Addressing Mode

The lower portion (first 64 locations 0–63) of data memory can be
accessed by special short addressing modes that can specify the
location as part of the opcode, contrary to other locations where a
second instruction word is required. Example:
move
This instruction executes in 1 clock cycle. This makes it possible to
use the lower portion of the data memory as general purpose
registers without a significant increase in code length.
7.2.3

Short Immediate Mode

There are some MOVE instructions that permit the specification of
immediate data numbers in a small range so that a second word is
not required. Example:
move
This instruction executes in one clock cycle. This makes it possible
to initialize registers without executing 2-word, 2-cycle instructions.
7.2.4

Short Immediate Operands

There are also some arithmetic instructions that defines a short
immediate operand. Example:
move
move
xor
This example can be optimized by replacing all the instructions by
their short immediate operand versions:
move
move
xor
X:5,x0
#5,r0
#>$8000,a
;the ">" is the 'force long'
#>$0075,r0
;assembler directive
#>$0003,a
#<$80,a
#<$75,r0
#<$03,a
MOTOROLA

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dsp56300

Table of Contents