HD6417641 RENESAS [Renesas Technology Corp], HD6417641 Datasheet - Page 180

no-image

HD6417641

Manufacturer Part Number
HD6417641
Description
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Section 3 DSP Operation
CASE 4: 4 or More Repeated Instructions
The examples above can be used as a template to program this repeat loop sequences. However,
for easy programming, an extended instruction REPEAT is provided to handle these complex
labeling and offset issues. Details will be described in the following note 2.
Note 2: Extended Instruction REPEAT
This REPEAT extended instruction will handle all the delicate labeling and offset processing
described in table 3.17 and note 1. The labels used here are:
Rptart:
RptEnd:
RptCount: Repeat count immediate number
This instruction can be used in the following way:
Here the repeat count can be specified as an immediate value #Imm or a register indirect value Rn.
Rev. 4.00 Sep. 14, 2005 Page 130 of 982
REJ09B0023-0400
RptStart0: instr0;
RptStart:
----------------------------------------------------------
RptEnd3:
RptEnd:
An address of the instruction at the top of the repeat loop
An address of the instruction at the bottom of the repeat loop
LDRS
LDRE
SETRC
instr1;
instr2;
instr3;
instrN-3;
instrN-2;
instrN-1;
instrN;
instrN+1;
- - - -
RptStart;
RptEnd3+4;
RptCount;
Repeated instruction 1
Repeated instruction 2
Repeated instruction 3
Repeated instruction N-3
Repeated instruction N-2
Repeated instruction N-1
Repeated instruction N

Related parts for HD6417641