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

no-image

HD6417641

Manufacturer Part Number
HD6417641
Description
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Section 9 Exception Handling
• Example 3: Repeat loop consisting of two instructions
• Example 4: Repeat loop consisting of one instruction
SPC Saved by an Exception in Repeat Control Period: If an exception is accepted in the repeat
control period while the repeat counter (RC11 to RC0) in the SR register is two or greater, the
program counter to be saved may not indicate the value to be returned correctly. To execute the
repeat control after returning from an exception processing, the return address must indicate an
instruction prior to a repeat detection instruction. Accordingly, if an exception is accepted in
repeat control period, an exception other than re-execution type exception by a repeat detection
instruction cannot return to the repeat control correctly.
Rev. 4.00 Sep. 14, 2005 Page 212 of 982
REJ09B0023-0400
LDRS
LDRS
RptDtct: RptDtct
RptStart:
RptEnd:
LDRS
LDRS
RptDtct: RptDtct
RptStart:
RptEnd:
RptDtct + 6
RptDtct + 4
SETRCT #4
RptDtct3
InstrNext
RptDtct + 8
RptDtct + 4
SETRCT #4
RptDtct1
RptDtct1
InstrNext ; [A]
; [A]
; [A]
; [A]
; [B] A repeat detection instruction is an
; [C1][Repeat start instruction]
; [C2][Repeat end instruction]
; [A]
; [A]
; [A]
; [A]
; [B] A repeat detection instruction is an
; [C1][Repeat start instruction]== [Repeat end
instruction prior to a repeat start
instruction
instruction prior to a repeat start
instruction
instruction]

Related parts for HD6417641