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