摘要 |
PURPOSE:To find the errors of software and hardware in an early stage by storing the value of a stack pointer to another stack to check the validity of the value of the stack pointer. CONSTITUTION:When interruption occurs, information required for restoration is stored in the area of a stack 1 designated by a stack pointer 2 and the value of the pointer 2 is stored in the area of a stack 3 designated by a stack pointer 4 and the values of pointers 2 and 4 are updated when the interrupt processing is started. In formation required for restoration and the value of the pointer 2 are stored successively in the stack 1 and the stack 3 respectively. The value of the pointer 2 indicating the address of the stack to be restored and the value read out from the area designated by the pointer 4 are compared with each other by a comparator 5 at every restoration time, and the error is decided at the time of detecting that they are in dissidence. |