Motorola DSP56000 Manual page 517

24-bit digital signal processor
Hide thumbs Also See for DSP56000:
Table of Contents

Advertisement

REP
Operation:
LC
TEMP; X:ea
Repeat next instruction until LC=1
TEMP
LC
LC
TEMP; X:aa
Repeat next instruction until LC=1
TEMP
LC
LC
TEMP; Y:ea
Repeat next instruction until LC=1
TEMP
LC
LC
TEMP; Y:aa
Repeat next instruction until LC=1
TEMP
LC
LC
TEMP; S
Repeat next instruction until LC=1
TEMP
LC
LC
TEMP; #xxx
Repeat next instruction until LC=1
TEMP
LC
Description: Repeat the single-word instruction immediately following the REP
instruction the specified number of times. The value specifying the number of times the
given instruction is to be repeated is loaded into the 16-bit loop counter (LC) register.
The single-word instruction is then executed the specified number of times, decrement-
ing the loop counter (LC) after each execution until LC=1. When the REP instruction is in
effect, the repeated instruction is fetched only one time, and it remains in the instruction
register for the duration of the loop count. Thus, the REP instruction is not interrupt-
ible (sequential repeats are also not interruptible). The current loop counter (LC) value is
stored in an internal temporary register. If LC is set equal to zero, the instruction is
repeated 65,536 times. The instruction's effective address specifies the address of the
value which is to be loaded into the loop counter (LC). All address register indirect
addressing modes may be used. The absolute short and the immediate short addressing
modes may also be used. The four MS bits of the 12-bit immediate value are zeroed to
form the 16-bit value that is to be loaded into the loop counter (LC).
A - 248
INSTRUCTION DESCRIPTIONS
Repeat Next Instruction
LC
LC
LC
LC
LC
LC
INSTRUCTION SET DETAILS
Assembler Syntax:
REP
X:ea
REP
X:aa
REP
Y:ea
REP
Y:aa
REP
S
REP
#xxx
REP
MOTOROLA

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dsp56k

Table of Contents