摘要 |
PURPOSE: To make a microprocessor re-execute a program without leaving the execution of the program at a stop when detecting an abnormal instruction. CONSTITUTION: The microprocessor 1 transfers the system program, stored in a ROM 11, to a RAM 12 in an initializing processing. If the microprocessor 1 judges that an instruction fetched at the RAM 12 is abnormal during subsequent execution and performs an interrupting processing for it, the address of the ROM 11 where the instruction judged to be abnormal is stored is calculated from the address put in a stack, and the instruction is read out of the ROM 11 and writes in the address of the RAM 12 where the abnormal instruction is detected. Then the execution of the program is restarted at the address of the RAM 12 where the abnormal instruction is detected. |