Texas Instruments TMS320C2XX User Manual
Page 300
Repeat Next Instruction
RPT
7-147
Assembly Language Instructions
Cycles for a Single RPT Instruction (Using Direct and Indirect Addressing)
Program
Operand
ROM
DARAM
SARAM
External
DARAM
1
1
1
1+p
SARAM
1
1
1, 2
†
1+p
External
1+d
1+d
1+d
2+d+p
† If the operand and the code are in the same SARAM block
Cycles for a Single RPT Instruction (Using Short Immediate
Addressing)
ROM
DARAM
SARAM
External
1
1
1
1+p
Example 1
RPT
DAT127
;(DP = 31: addresses 0F80h–0FFFh)
;Repeat next instruction 13 times.
Before Instruction
After Instruction
Data Memory
Data Memory
0FFFh
0Ch
0FFFh
0Ch
RPTC
0h
RPTC
0Ch
Example 2
RPT
*,AR1
;Repeat next instruction 4096 times.
Before Instruction
After Instruction
ARP
0
ARP
1
AR0
300h
AR0
300h
Data Memory
Data Memory
300h
0FFFh
300h
0FFFh
RPTC
0h
RPTC
0FFFh
Example 3
RPT
#1
;Repeat next instruction two times.
Before Instruction
After Instruction
RPTC
0h
RPTC
1h
Cycles