beautypg.com

Renesas SH7641 User Manual

Page 179

background image

Section 3 DSP Operation

Rev. 4.00 Sep. 14, 2005 Page 129 of 982

REJ09B0023-0400

Based on this table, the actual repeat programming for various cases should be described as in the
following examples:

CASE 1: 1 Repeated Instruction

LDRS

RptStart0+8;

LDRE

RptStart0+4;

SETRC

RptCount;

- - - -

RptStart0: instr0;

RptStart: instr1;

Repeated

instruction

instr2;

CASE 2: 2 Repeated Instructions

LDRS

RptStart0+6;

LDRE

RptStart0+4;

SETRC

RptCount;

- - - -

RptStart0: instr0;

RptStart: instr1;

Repeated instruction 1

RptEnd:

instr2;

Repeated instruction 2

instr3;

CASE 3: 3 Repeated Instructions

LDRS

RptStart0+4;

LDRE

RptStart0+4;

SETRC

RptCount;

- - - -

RptStart0: instr0;

RptStart: instr1;

Repeated instruction 1

instr2;

Repeated

instruction

2

RptEnd:

instr3;

Repeated instruction 3

instr4;

This manual is related to the following products: