Section 9 Exception Handling
Rev. 4.00 Sep. 14, 2005 Page 211 of 982
REJ09B0023-0400
• Example 1: Repeat loop consisting of four instructions
LDRS RptStart ; [A]
LDRS RptDtct + 4 ; [A]
SETRCT #4 ; [A]
instr0 ; [A]
RptStart: instr1 ; [A]
……… ; [A]
……… ; [A]
RptDtct: RptDtct ; [B] A repeat detection instruction is an
instruction three instructions before
a repeat end instruction
RptDtct1 ; [C1]
RptDtct2 ; [C2]
RptEnd: RptDtct3 ; [C2][Repeat end instruction]
InstrNext ; [A]
• Example 2: Repeat loop consisting of three instructions
LDRS RptDtct + 4 ; [A]
LDRS RptDtct + 4 ; [A]
SETRCT #4 ; [A]
RptDtct: RptDtct ; [B] A repeat detection instruction is an
instruction prior to a repeat start
instruction
RptStart: RptDtct1 ; [C1][Repeat start instruction]
RptDtct2 ; [C2]
RptEnd: RptDtct3 ; [C2][Repeat end instruction]
InstrNext ; [A]