Motorola DSP56000 Manual page 518

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

Advertisement

REP
Restrictions: The REP instruction can repeat any single-word instruction except the
REP instruction itself and any instruction that changes program flow. The following
instructions are not allowed to follow an REP instruction:
Immediately after REP
Also, a REP instruction cannot be the last instruction in a DO loop (at LA). The assem-
bler will generate an error if any of the previous instructions are found immediately fol-
lowing an REP instruction.
Example:
:
REP X0
MAC X1,Y1,A
:
Before Execution
X0
LC
MOTOROLA
INSTRUCTION SET DESCRIPTIONS
Repeat Next Instruction
DO
JSSET
Jcc
REP
JCLR
RTI
JMP
RTS
JSET
STOP
JScc
SWI
JSCLR
WAIT
JSR
ENDDO
X:(R1)+,X1
Y:(R4)+,Y1
$000100
$0000
INSTRUCTION SET DETAILS
;repeat (X0) times
;X1 ∗ Y1+A
After Execution
X0
$000100
LC
$0000
REP
A, update X1,Y1
A - 249

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dsp56k

Table of Contents