摘要 |
PURPOSE:To smoothly couple respective module and to generate each module with an independent image by dividing a program in accordance with the processing function or the like and saving and restoring stack data corresponding to modules. CONSTITUTION:A processor system is provided with a stack data preserving storage part 7, a stack data preservation area designating register 8, and a stack pointer preserving register 9, and a processor 2 is provided with the coupling processing a step including the restore processing and the save processing. Stack data is pushed to a stack 5 from the stack data preserving storage part 7 at the time of starting execution of each module 1, and stack data is loaded from the stack 5 to the stack data preserving storage part 7 at the time of terminating execution of each module 1. Thus, respective modules are coupled without a flag or the like, and each module is generated as a program of an independent image.
|