摘要 |
PROBLEM TO BE SOLVED: To realize loop processing capable of nesting without any overhead with the minimum circuit scale. SOLUTION: This program controller is provided with a loop start address storing part 101 for storing a loop start address, a number of instructions to be looped storing part 102 for storing the number of instructions to be looped, a number of times of loop storing part 103 for storing and counting the number of times of loop, a loop end address storing part 104 for calculating and storing a loop end address from the loop start address and the number of instructions to be looped, and a loop decision part 195 for comparing the instruction address with the loop end address, and for deciding end of the loop branch and the loop processing. In the loop branch, the loop start address is selected, and outputted as the instruction address.
|