Renesas HD6417641 Hardware Manual page 261

32-bit risc microcomputer superh risc engine family / sh7641 series
Table of Contents

Advertisement

• 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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7641

Table of Contents