摘要 |
PROBLEM TO BE SOLVED: To impart to a programmer further flexibility required for the design of an exception routine. SOLUTION: This device and this method for an exception handling flow of software control in a processor are switched between each mode of a user mode, a front exception mode, and an exception mode. Execution of a main routine is continued until exception generation. When the exception is generated, the processor executes initial setup of the exception before execution of the exception routine, and initializes the routine. In an initial setup routine, a present mode and a return address are preserved in a buffer before an initialization process. In the initialization process, data can be utilized, since the mode is not switched to the exception mode. The initialization process enables the programmer to debug optionally the preservation/value of information before switching of a resister bank. The programmer can have the maximum degree of freedom when executing debugging of the software and formation of the execution routine. After finish of the initialization process, the mode is switched to execute the exception mode.
|