摘要 |
PURPOSE: An instruction block repeat processing method is provided to add a repeat block, which can be overlapped, in a processor so that it prevents an overhead, which lowers a program execution speed, from being generated. CONSTITUTION: The method comprises several steps. If a repeat block instruction is inputted, a stack push operation is performed, a value of the third register is increased by one, and a value of the first register, which stores an address of an execution program, is increased by one(S1-S3). If a repeat block instruction is not input, the value of the third register is compared with one and the steps S1-S3 are proceeded or a value of the fourth register, which stores a final address of a repeat block, is compared with a value of the first register and the steps S1-S3 are proceeded or a value of the fifth register, which stores a repetition number of the repeat block, is decreased by one(S4-S6). It is checked whether a value of the fifth register is zero, a value of the third register is decreased by one and the steps S1-S3 are proceeded or a start address stored at the second register is stored at the first register(S7-S9).
|