摘要 |
PURPOSE:To eliminate an ineffective interruption of trap, by applying an interruption only in case the contents of a storage device or a register are changed due to a defect of a program. CONSTITUTION:When a memory changing trap is carried out, the address of a storage device MEM with which a program defect is expected is previously set to a trap address register 11. At the same time, the normal data corresponding to the address shown by the register 11 is set to a trap data register 12. The bit position 2 of a trap control register 10 is set at 1. Then the address in a memory address register 13 which is replaced by a coincidence circuit 20 with each writing to the MEM is collated with the address in the register 11. In case the coincidence is detected between both addresses and at the same time the discordance is detected between the writing data in a memory data register 14 corresponding to the relevant address and the normal data in the register 12, a defect of the program is decided. Thus an interruption is applied to an interrupting circuit via an AND circuit 40 and an OR circuit 50. |