摘要 |
PURPOSE:To facilitate debugging, by providing a normal mode and a debugging mode for program execution, and tracing the program in the execution of the normal mode and tracing the debugging in the execution of the debugging mode, and solving the running state of the program on a basis of trace information. CONSTITUTION:An area MPA where a program or the like should be stored, stack area SA, and a trace area TA are set in a main storage device M. A processor PU is provided with an instruction register IR, a comparing circuit COMP, a specific instruction register SR, a mode register MR, an AND gate AG, a trace register TR, etc. The instruction by which contents of an accumulator ACC stored in the area MPA are written in the area SA is stored in the register SR. The normal mode and the debugging mode are provided in the processor PU for the program execution, and the executing program is traced in the normal mode, and the debugged program is traced in the debugging mode to solve debugging. |