HD6417660 RENESAS [Renesas Technology Corp], HD6417660 Datasheet - Page 124

no-image

HD6417660

Manufacturer Part Number
HD6417660
Description
Renesas 32-Bit RISC Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Table 3.5
Using the repeat macros shown in table 3.5, examples 1 to 4 shown above can be simplified to
examples 5 to 8 as shown below.
• Example 5: Repeat loop consisting of 4 or more instructions (extended to the instruction
• Example 6: Repeat loop consisting of three instructions (extended to the instruction stream
Rev. 1.00, 02/04, page 86 of 804
Instruction
REPEAT RptStart, RptEnd,
#imm
REPEAT RptStart, RptEnd,
Rm
RptStart: instr1
RptEnd:
RptStart: instr1
RptEnd:
stream shown in example 1, above)
shown in example 2, above)
Repeat Control Macros
REPEAT RptStart, RptEnd, #4
Instr0
... ...
... ...
instr (N-3)
instr (N-2)
instr (N-1)
instrN
REPEAT RptStart, RptEnd, #4
instr0
Instr2
instr3
Operation
Specifies RptStart as repeat start instruction,
RptEnd as repeat end instruction, and 8-bit
immediate data #imm as number of repetitions.
This macro is extended to three instructions:
LDRS, LDRE, and SETRC which are
converted correctly.
Specifies RptStart as repeat start instruction,
RptEnd as repeat end instruction, and the
[11:0] bits of Rm as number of repetitions.
This macro is extended to three instructions:
LDRS, LDRE, and SETRC which are
converted correctly.
;
; [Repeat start instruction]
;
;
; [Repeat detection instruction]
;
;
; [Repeat end instruction]
; [Repeat detection instruction]
; [Repeat start instruction]
;
; [Repeat end instruction]
Number of
Execution States
3
3

Related parts for HD6417660