JPS63201737A - Method and device for supporting development of computer program - Google Patents

Method and device for supporting development of computer program

Info

Publication number
JPS63201737A
JPS63201737A JP62035303A JP3530387A JPS63201737A JP S63201737 A JPS63201737 A JP S63201737A JP 62035303 A JP62035303 A JP 62035303A JP 3530387 A JP3530387 A JP 3530387A JP S63201737 A JPS63201737 A JP S63201737A
Authority
JP
Japan
Prior art keywords
address
instruction
write
memory
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62035303A
Other languages
Japanese (ja)
Inventor
Takayoshi Aoki
孝義 青木
Toru Koide
通 小出
Yoichi Watanabe
陽一 渡辺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kanebo Ltd
Original Assignee
Kanebo Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kanebo Ltd filed Critical Kanebo Ltd
Priority to JP62035303A priority Critical patent/JPS63201737A/en
Publication of JPS63201737A publication Critical patent/JPS63201737A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To easily detect execution of an abnormal instruction whose reproducibility is low, by detecting an execution of a write instruction to a specific address of a memory from various signals outputted from a computer, displaying and holding its instruction executing address, detecting an execution of a mask instruction immediately before executing a write instruction and inhibiting the displaying and holding. CONSTITUTION:Setting of a flip-flop 17 by a memory write address comparing and deciding circuit 9 is inhibited by cutting off a mask circuit 23 by an output of the mask instruction detecting circuit 14. Also, only when there is no output of the mask detecting circuit 14, the flip-flop 17 is set by the output of the memory write address comparing and detecting circuit 9, an instruction executing address which an instruction executing address display circuit 5 is executing at present is displayed and held, and the display is updated successively. In such a way, by only changing a set address of an address setting switch 15, an execution of an abnormal write instruction to an arbitrary address of a memory is detected and can be informed to an operator.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、コンピュータのソフトウェア開発(コンピ
ュータプログラム開発)を支援するために、コンピュー
タプログラム(ユーザプログラム)を実行中のコンピュ
ータ(マイクロコンピュータ等)から出力される各種信
号からメモリの特定アドレスへの異常な書込命令を検出
するコンピュータプログラム開発支援方法およびその装
置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is intended to support software development (computer program development) for computers. The present invention relates to a computer program development support method and apparatus for detecting an abnormal write instruction to a specific address of a memory from various output signals.

〔従来の技術〕[Conventional technology]

従来のコンピュータプログラム開発支援装置は、コンピ
ュータプログラムを実行中のコンピュータから出力され
る各種信号を監視し、ブレーク条件の発生回数が所定数
(1回または複数回)に達したときに、コンピュータを
停止させてデバッグ作業を行うようになっていた。
Conventional computer program development support devices monitor various signals output from a computer running a computer program, and stop the computer when the number of occurrences of a break condition reaches a predetermined number (one or more times). I was supposed to do debugging work.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記のような従来のコンピュータプログラム開発支援装
置では、実操業に使用する制御システムなどのようにブ
レーク条件発生時にコンピュータを停止させてデバッグ
作業を行うことが困難な環境下や、長期にわたる使用の
中で確実なトラブル再現が期待しにくい要因対策には使
用できない。
Conventional computer program development support devices such as those described above can be used in environments where it is difficult to stop the computer for debugging when a break condition occurs, such as in control systems used in actual operations, or during long-term use. It cannot be used as a countermeasure for factors for which it is difficult to reliably reproduce the problem.

また、正常命令の実行によってもブレーク条件と同じ条
件が発生する場合もあり、異常命令の実行時のブレーク
条件発生との区別がつかず、回数指定による方法ではバ
グ発生個所を見つけることが困難である。
In addition, the same break condition may occur even when a normal instruction is executed, making it difficult to distinguish it from a break condition occurring when an abnormal instruction is executed, making it difficult to find the location of the bug using the method of specifying the number of times. be.

この発明の目的は、コンピュータの運転を停止すること
なくコンピュータプログラム中に存在する異常命令を正
常命令と確実に区別して検出し、それをオペレータに知
らせることができるコンピュータプログラム開発支援方
法およびその装置を提供することである。
An object of the present invention is to provide a computer program development support method and apparatus capable of reliably distinguishing and detecting abnormal instructions present in a computer program from normal instructions without stopping computer operation, and informing the operator of the detected abnormal instructions. It is to provide.

〔問題点を解決するための手段〕[Means for solving problems]

第1の発明のコンピュータプログラム開発支援方法は、
コンピュータプログラム中のメモリの特定アドレスへの
正常な書込命令の直前にマスク命令を挿入し、前記コン
ピュータプログラムをコンピュータで実行させている途
中において、前記コンピュータから出力される各種信号
から前記メモリの特定アドレスへの書込命令の実行を検
出してその書込命令の命令実行アドレスを保持し、前記
メモリの特定アドレスへの書込命令の実行直前のマスク
命令の実行を前記コンピュータから出力される各種信号
から検出して前記書込命令の命令実行アドレスの保持を
禁止する方法である。
The computer program development support method of the first invention includes:
A mask command is inserted immediately before a normal write command to a specific memory address in a computer program, and the memory is identified from various signals output from the computer while the computer program is being executed by the computer. Detects the execution of a write command to an address, holds the command execution address of the write command, and detects the execution of a mask command immediately before the execution of the write command to a specific address of the memory, and detects the execution of the write command to a specific address of the memory. This is a method of detecting from a signal and prohibiting holding of the instruction execution address of the write instruction.

第2の発明のコンピュータプログラム開発支援装置は、
メモリの特定アドレスへの正常な書込命令の直前にマス
ク命令を挿入したコンピュータプログラム中の前記メモ
リの特定アドレスへの異常な書込命令を検知するコンピ
ュータプログラム開発支援装置であって、 前記メモリのアドレスを設定するアドレス設定スイッチ
と、 前記コンピュータプログラムを実行するコンピュータか
ら出力される各種信号および前記アドレス設定スイッチ
により設定した設定アドレスから前記メモリの設定アド
レスへの書込命令の実行を検出するメモリライトアドレ
ス比較判定回路と、このメモリライトアドレス比較判定
回路の出力に応答してセットされるフリップフロップと
、このフリップフロップのリセット時出力に応答して前
記コンピュータから出力される各種信号から前記コンピ
ュータが現在実行している命令実行アドレスを更新しな
がら表示し、前記フリップフロップのセット時出力に応
答して命令実行アドレスの表示を保持する命令実行アド
レス表示回路と、前記コンピュータから出力される各種
信号から前記マスク命令の実行を検出するマスク命令検
出回路と、前記メモリライトアドレス比較判定回路と前
記フリップフロップとの間に介在して前記マスク命令検
出回路の出力に応答して前記マスク命令検出回路の出力
発生直後の前記メモリライトアドレス比較判定回路の出
力を遮断するマスク回路とを備えている。
The computer program development support device of the second invention includes:
A computer program development support device for detecting an abnormal write instruction to a specific address of a memory in a computer program in which a mask instruction is inserted immediately before a normal write instruction to a specific address of the memory, the computer program development support device comprising: an address setting switch for setting an address; and a memory write for detecting various signals output from a computer executing the computer program and execution of a write command from the setting address set by the address setting switch to the setting address of the memory. An address comparison/judgment circuit, a flip-flop that is set in response to the output of the memory write address comparison/judgment circuit, and various signals outputted from the computer in response to the reset output of this flip-flop determine the current state of the computer. an instruction execution address display circuit that updates and displays the execution address of the instruction being executed and maintains the display of the instruction execution address in response to the set output of the flip-flop; A mask instruction detection circuit for detecting execution of a mask instruction, interposed between the memory write address comparison and determination circuit and the flip-flop, and generating an output of the mask instruction detection circuit in response to an output of the mask instruction detection circuit. and a mask circuit that cuts off the output of the memory write address comparison/judgment circuit immediately after.

〔作用〕[Effect]

第1の発明の構成によれば、コンピュータプログラム中
のメモリの特定アドレスへの正常な書込命令の直前にマ
スク命令を挿入し、コンピュータで前記コンピュータプ
ログラムを実行させている途中において、前記メモリの
特定アドレスへの書込命令の実行をコンピュータから出
力される各種信号から検出してその書込命令の命令実行
アドレスを表示保持し、上記書込命令の実行直前のマス
ク命令の実行を検出して上記表示保持を禁止するため、
コンピュータプログラム中にメモリの特定アドレスへの
正常な書込命令が存在したときには、その直前にマスク
命令も存在し、マスク命令の実行により正常な書込命令
が実行されたときの命令実行アドレスの表示保持が禁止
される。一方、コンピュータプログラム中にメモリの特
定アドレスへの異常な書込命令が存在したときには、そ
の直前にはマスク命令が挿入されていないことから、異
常な書込命令が実行されたときに、その命令実行アドレ
スの表示保持が行われる。したがって、コンピュータの
運転を停止することなくコンピュータプログラム中に存
在するメモリの特定アドレスへの異常な書込命令を正常
な書込命令と区別して検出し、それをオペレータに知ら
せることができる。しかも、異常な書込命令の命令実行
アドレスが表示保持されるため、オペレータが常時監視
しなくても異常な書込命令を知ることができ、再現性の
低い異常命令実行の検出もオペレータに負担をかけずに
行える。
According to the configuration of the first invention, a mask instruction is inserted immediately before a normal write instruction to a specific address of memory in a computer program, and while the computer program is being executed, the mask instruction is inserted into the computer program. The execution of a write command to a specific address is detected from various signals output from the computer, the command execution address of the write command is displayed and held, and the execution of a mask command immediately before the execution of the write command is detected. In order to prohibit the above display,
When a normal write instruction to a specific memory address exists in a computer program, a mask instruction also exists immediately before it, and the instruction execution address is displayed when the normal write instruction is executed by executing the mask instruction. Retention is prohibited. On the other hand, when there is an abnormal write instruction to a specific memory address in a computer program, no mask instruction is inserted immediately before it, so when the abnormal write instruction is executed, the instruction The display of the execution address is maintained. Therefore, it is possible to detect an abnormal write command to a specific memory address existing in a computer program without stopping the operation of the computer, distinguishing it from a normal write command, and to notify the operator of the abnormal write command. Furthermore, since the command execution address of the abnormal write command is displayed and retained, the operator can know the abnormal write command without constantly monitoring it, and the burden is placed on the operator to detect abnormal command execution with low reproducibility. You can do it without spending money.

第2の発明の構成によれば、アドレス設定スイッチを設
け、このアドレス設定スイッチにより設定した設定アド
レスをメモリライトアドレス比較判定回路へ送るように
しているため、アドレス設定スイッチの設定アドレスを
変更するだけでメモリの任意のアドレスへの異常な書込
命令の実行を検出してオペレータに知らせることができ
る。
According to the configuration of the second invention, an address setting switch is provided, and the setting address set by the address setting switch is sent to the memory write address comparison/judgment circuit, so that all that is required is to change the setting address of the address setting switch. It is possible to detect the execution of an abnormal write command to any address in memory and notify the operator.

〔実施例〕〔Example〕

この発明の実施例を第1図ないし第3図に基づいて説明
する。このコンピュータプログラム開発支援方法は、コ
ンピュータプログラム中のメモリの特定アドレスへの正
常な書込命令の直前にマスク命令を挿入し、前記コンピ
ュータプログラムをコンピュータ1で実行させている途
中において、前記コンピュータ1から出力される各種信
号(アドレス信号、制御信号)から前記メモリの特定ア
ドレスへの書込命令の実行を検出してその書込命令の命
令実行アドレスを保持し、前記メモリの特定アドレスへ
の書込命令の実行直前のマスク命令の実行を前記コンピ
ュータ1から出力される各種信号(アドレス信号、制御
信号)から検出して前記書込命令の命令実行アドレスの
保持を禁止する方法である。
An embodiment of the invention will be described based on FIGS. 1 to 3. This computer program development support method inserts a mask command immediately before a normal write command to a specific memory address in a computer program, and when the computer program is being executed by the computer 1, a mask command is inserted into the computer program. Detects the execution of a write command to a specific address of the memory from various output signals (address signals, control signals), holds the command execution address of the write command, and writes to the specific address of the memory. This method detects execution of a mask instruction immediately before execution of the instruction from various signals (address signal, control signal) output from the computer 1 and prohibits holding of the instruction execution address of the write instruction.

このコンピュータプログラム開発支援方法によれば、コ
ンピュータプログラム中のメモリの特定アドレスへの正
常な書込命令の直前にマスク命令を挿入し、コンピュー
タ1で前記コンピュータプログラムを実行させている途
中において、前記メモリの特定アドレスへの書込命令の
実行をコンピュータ1から出力される各種信号(アドレ
ス信号。
According to this computer program development support method, a mask command is inserted immediately before a normal write command to a specific memory address in a computer program, and while the computer program is being executed by the computer 1, the mask command is inserted into the memory. Various signals (address signals) output from the computer 1 indicate the execution of a write command to a specific address.

制御信号)から検出してその書込命令の命令実行アドレ
スを表示保持し、上記書込命令の実行直前のマスク命令
の実行を検出して上記表示保持を禁止するため、コンピ
ュータプログラム中にメモリの特定アドレスへの正常な
書込命令が存在したときには、その直前にマスク命令も
存在し、マスク命令の実行により、正常な書込命令が実
行されたときの命令実行アドレスの表示保持が禁止され
る。
In order to display and hold the command execution address of the write command by detecting it from the control signal), and to detect the execution of the mask command immediately before the execution of the write command and prohibit the display holding, the memory is stored in the computer program. When a normal write command to a specific address exists, a mask command also exists immediately before it, and execution of the mask command prohibits display and retention of the instruction execution address when a normal write command is executed. .

一方、コンピュータプログラム中にメモリの特定アドレ
スへの異常な書込命令が存在したときには、その直前に
はマスク命令が挿入されていないから、異常な書込命令
が実行されたときに、その命令実行アドレスが表示保持
が行われる。したがって、コンピュータ1の運転を停止
することなくコンピュータプログラム中に存在するメモ
リの特定アドレスへの異常な書込命令を正常な書込命令
と区別して検出し、それをオペレータに知らせることが
できる。しかも、異常な書込命令の命令実行アドレスが
表示保持されるため、オペレータが常時監視しなくても
異常な書込命令を知ることができ、再現性の低い異常命
令の実行の検出もオペレータに負担をかけずに行うこと
ができる。
On the other hand, when there is an abnormal write instruction to a specific address in memory in a computer program, no mask instruction is inserted immediately before it, so when the abnormal write instruction is executed, the instruction cannot be executed. The address is kept displayed. Therefore, without stopping the operation of the computer 1, an abnormal write command to a specific memory address existing in a computer program can be detected as distinguished from a normal write command, and the operator can be notified of the abnormal write command. Furthermore, since the command execution address of the abnormal write command is displayed and retained, the operator can know the abnormal write command without constantly monitoring it, and the operator can also detect the execution of abnormal commands with low reproducibility. It can be done without any burden.

つぎに、このコンピュータプログラム開発支援方法を実
施するのに使用するコンピュータプログラム開発支援装
置を第1図に基づいて説明する。
Next, a computer program development support device used to implement this computer program development support method will be explained based on FIG.

このコンピュータプログラム開発支援装置は、メモリの
特定アドレスへの正常な書込命令の直前にマスク命令を
挿入したコンピュータプログラム中の前記メモリの特定
アドレスへの異常な書込命令を検知するコンピュータプ
ログラム開発支援装置であって、 前記メモリのアドレスを設定するアドレス設定スイッチ
15と、 前記コンピュータプログラムを実行するコンピュータ(
CPU)1から出力される各種信号(アドレス信号、デ
ータ信号、制御信号)および前記アドレス設定スイッチ
15により設定した設定アドレスから前記メモリの設定
アドレスへの書込命令の実行を検出するメモリライトア
ドレス比較側足回路9と、このメモリライトアドレス比
較判定回路9の出力に応答してセットされるフリップフ
ロップ17と、このフリッププロップ17のリセット時
出力に応答して前記コンピュータ1から出力される各種
信号から前記コンピュータ1が現在実行している命令実
行アドレスを更新しながら表示し、前記フリップフロッ
プ17のセット時出力に応答して命令実行アドレスの表
示を保持する命令実行アドレス表示回路5と、前記コン
ピュータ1から出力される各種信号から前記マスク命令
の実行を検出するマスク命令検出回路14と、前記メモ
リライトアドレス比較判定回路9と前記フリップフロッ
プ17との間に介在して前記マスク命令検出回路14の
出力に応答して前記マスク命令検出回路14の出力発生
直後の前記メモリライトアドレス比較判定回路9の出力
を遮断するマスク回路23とを備えている。
This computer program development support device detects an abnormal write instruction to a specific memory address in a computer program in which a mask instruction is inserted immediately before a normal write instruction to a specific memory address. The apparatus comprises: an address setting switch 15 for setting the address of the memory; and a computer (for executing the computer program).
Memory write address comparison for detecting execution of a write command from the set address set by the address setting switch 15 to the set address of the memory with various signals (address signal, data signal, control signal) output from the CPU) 1 From the side leg circuit 9, the flip-flop 17 that is set in response to the output of the memory write address comparison/determination circuit 9, and the various signals output from the computer 1 in response to the reset output of the flip-flop 17. an instruction execution address display circuit 5 that updates and displays an instruction execution address currently being executed by the computer 1 and maintains a display of the instruction execution address in response to a set output of the flip-flop 17; a mask instruction detection circuit 14 that detects the execution of the mask instruction from various signals output from the mask instruction detection circuit 14, which is interposed between the memory write address comparison judgment circuit 9 and the flip-flop 17, and and a mask circuit 23 that cuts off the output of the memory write address comparison/judgment circuit 9 immediately after the output of the mask command detection circuit 14 is generated in response to the output.

このコンピュータプログラム開発支援装置は、上記した
メモリへの異常な書込命令の検出機能の他に、メモリへ
の異常な続出命令、入出力装置への異常な入出力命令等
を検出する機能も備えている。
In addition to the above-mentioned function for detecting abnormal write commands to memory, this computer program development support device also has a function for detecting abnormal successive commands to memory, abnormal input/output commands to input/output devices, etc. ing.

すなワチ、このコンピュータプログラム開発支援装置は
、コンピュータ1から引き出されたアドレスバス2.デ
ータバス3.コントロールバス4に、命令実行アドレス
表示回路5.実行命令函容表示回路6.命令実行アドレ
ス比較判定回路7゜メモリリードアドレス比較判定回路
8.メモリライトアドレス比較判定回路9.メモリリー
ド・ライトアドレス比較判定回路10.I10リードア
ドレス比較判定回路1).1)0ライトアドレス比較判
定回路12.l10U−ド・ライトアドレス比較判定回
路13.マスク命令検出回路14が接続されている。
In other words, this computer program development support device uses an address bus 2. drawn from the computer 1. Data bus 3. An instruction execution address display circuit 5. Execution command box display circuit 6. Instruction execution address comparison and determination circuit 7゜Memory read address comparison and determination circuit 8. Memory write address comparison judgment circuit 9. Memory read/write address comparison/judgment circuit 10. I10 Read address comparison judgment circuit 1). 1) 0 write address comparison judgment circuit 12. l10U-D write address comparison judgment circuit 13. A mask command detection circuit 14 is connected.

また、アドレス設定スイッチ15から引き出されたアド
レス線および異常検出機能選択スイッチ16の各選択端
子が命令実行アドレス比較判定回路7.メモリリードア
ドレス比較判定回路8.メモリライトアドレス比較判定
回路9.メモリリード・ライトアドレス比較判定回路1
0.1)0IJ−ドアドレス比較判定回路1).I10
ライトアドレス比較判定回路12.I10リード・ライ
トアドレス比較判定回路13にそれぞれ接続されている
Further, the address line drawn out from the address setting switch 15 and each selection terminal of the abnormality detection function selection switch 16 are connected to the instruction execution address comparison and determination circuit 7. Memory read address comparison judgment circuit 8. Memory write address comparison judgment circuit 9. Memory read/write address comparison judgment circuit 1
0.1) 0IJ-Address Comparison Judgment Circuit 1). I10
Write address comparison/judgment circuit 12. The I10 read/write address comparison/judgment circuit 13 is connected to the I10 read/write address comparison/judgment circuit 13, respectively.

また、異常検出機能選択スイッチ16の共通端子および
マスク命令検出回路23の出力端がマスク回路23に接
続され、マスク回路23の出力端がフリップフロップ1
7のセット入力端Sに接続され、リセットスイッチ19
の状態を反転するノット回路18の出力がフリップフロ
ップ17のリセット入力端Rに接続され、フリップフロ
ップ17の出力端Qが命令実行アドレス表示回路5およ
び実行命令内容表示回路6の制御入力端に接続されてい
る。
Further, the common terminal of the abnormality detection function selection switch 16 and the output terminal of the mask command detection circuit 23 are connected to the mask circuit 23, and the output terminal of the mask circuit 23 is connected to the flip-flop 1.
7 is connected to the set input terminal S of the reset switch 19.
The output of the NOT circuit 18 that inverts the state of is connected to the reset input terminal R of the flip-flop 17, and the output terminal Q of the flip-flop 17 is connected to the control input terminals of the instruction execution address display circuit 5 and the execution instruction content display circuit 6. has been done.

命令実行アドレス表示回路5は、フリップフロップ17
のリセット時にコンピュータ1が現在実行している命令
の命令実行アドレスを順次更新しながら表示し、フリッ
プフロップ17のセット時にコンピュータ1が現在実行
している命令の命令実行アドレスの表示を保持する。
The instruction execution address display circuit 5 includes a flip-flop 17
The instruction execution address of the instruction currently being executed by the computer 1 is displayed while being updated sequentially when the computer 1 is reset, and the display of the instruction execution address of the instruction currently being executed by the computer 1 is held when the flip-flop 17 is set.

実行命令内容表示回路6は、フリップフロップ17のリ
セット時にコンピュータ1が現在実行している命令の内
容を順次更新しながら表示し、フリップフロップ17の
セット時に現在実行している命令の内容の表示を保持す
る。
The executed instruction content display circuit 6 sequentially updates and displays the content of the instruction currently being executed by the computer 1 when the flip-flop 17 is reset, and displays the content of the currently executed instruction when the flip-flop 17 is set. Hold.

命令実行アドレス比較判定回路7は、コンピュータlが
実行する命令の命令実行アドレスがアドレス設定スイッ
チ15による設定アドレスと一致したときに出力を発生
する。
The instruction execution address comparison and determination circuit 7 generates an output when the instruction execution address of the instruction executed by the computer l matches the address set by the address setting switch 15.

メモリリードアドレス比較判定回路8は、コンピュータ
1が実行する続出命令中のメモリリードアドレスがアド
レス設定スイッチ15による設定アドレスと一致したと
きに出力を発生する。
The memory read address comparison/determination circuit 8 generates an output when the memory read address in the successive command executed by the computer 1 matches the address set by the address setting switch 15.

メモリライトアドレス比較判定回路9は、コンピュータ
1が実行する書込命令中のメモリライトアドレスが設定
アドレスと一致したときに出力を発生する。
The memory write address comparison/determination circuit 9 generates an output when the memory write address in the write command executed by the computer 1 matches the set address.

メモリリード・ライトアドレス比較判定回路10は、コ
ンピュータ1が実行する続出命令中のメモリリードアド
レスおよび書込命令中のメモリライドアドレスのいずれ
かが設定アドレスと一致したときに出力を発生する。
The memory read/write address comparison/determination circuit 10 generates an output when either the memory read address in the successive command or the memory ride address in the write command executed by the computer 1 matches a set address.

I10リードアドレス比較判定回路1)は、コンピュー
タ1が実行する入力命令中のl10IJ−ドアドレスが
設定アドレスと一致したときに出力を発生する。
The I10 read address comparison/judgment circuit 1) generates an output when the I10IJ- address in the input command executed by the computer 1 matches the set address.

I10ライトアドレス比較判定回路12は、コンピュー
タ1が実行する出力命令中のI10ライトアドレスが設
定アドレスと一致したときに出力を発生する。
The I10 write address comparison and determination circuit 12 generates an output when the I10 write address in the output instruction executed by the computer 1 matches the set address.

I10リード・ライトアドレス比較判定回路13は、コ
ンピュータ1が実行する入力命令中のI10リードアド
レスおよび出力命令中のI10ライトアドレスのいずれ
かが設定アドレスと一致したときに出力を発生する。
The I10 read/write address comparison/judgment circuit 13 generates an output when either the I10 read address in the input command or the I10 write address in the output command executed by the computer 1 matches a set address.

マスク命令検出回路14は、コンピュータlがマスク命
令を実行したことをコンピュータ1から出力されるアド
レス信号、データ信号、制御信号から検出する。なお、
コンピュータ1によるマスク命令の実行とは、マスク命
令検出回路14専用の特定のアドレスの出力ポートに対
し、あるデータを出力することである。マスク命令検出
回路14は、出力されるデータは特定の内容でなくても
よく、上記特定のアドレスの出力ポートが選択されたこ
とのみによって、これを検出することで、コンピュータ
1のマスク命令の実行を検出しているが、上記の特定の
アドレスの出力ポートにマスク専用の特定のデータが出
力されたことを検出することでコンピュータ1のマスク
命令の実行を検出するようにしてもよい。
The mask command detection circuit 14 detects from the address signal, data signal, and control signal output from the computer 1 that the computer 1 has executed a mask command. In addition,
Execution of a mask instruction by the computer 1 means outputting certain data to an output port at a specific address dedicated to the mask instruction detection circuit 14. The mask instruction detection circuit 14 detects only when the output port of the specific address is selected, and the data to be output does not have to have a specific content, thereby allowing the computer 1 to execute the mask instruction. However, the execution of the mask command by the computer 1 may be detected by detecting that specific data dedicated to masking is output to the output port at the above-mentioned specific address.

マスク回路23は、マスク命令検出回路14の出力がセ
ット入力端Sに入力されるとともに例えばメモリライト
アドレス比較判定回路9の出力がリセット入力端Rに入
力されるフリップフロップ20と、フリップフロップ2
0の反転出力端この出力を遅延するオンディレー型(立
上がり遅延型)の遅延回路21と、例えばメモリライト
アドレス比較判定回路9の出力と遅延回路21の出力の
論理積をとるアンド回路22とから構成され、アンド回
路22の出力端がフリップフロップ17のセット入力端
Sに接続される。
The mask circuit 23 includes a flip-flop 20 to which the output of the mask command detection circuit 14 is input to the set input terminal S and, for example, the output of the memory write address comparison/judgment circuit 9 to the reset input terminal R;
0 inverted output terminal From an on-delay type (rise delay type) delay circuit 21 that delays this output, and an AND circuit 22 that takes the logical product of the output of the memory write address comparison/judgment circuit 9 and the output of the delay circuit 21, for example. The output terminal of the AND circuit 22 is connected to the set input terminal S of the flip-flop 17.

このコンピュータプログラム開発支援装置は、異常検出
機能選択スイッチ16を例えばメモリライトアドレス比
較判定回路9に切換えた状態において、予めメモリへの
書込命令の直前にマスク命令を挿入したコンピュータプ
ログラムをコンピュータ1で実行させた場合に、メモリ
ライトアドレス比較判定回路9.マスク命令検出回路1
4.マスク回路23.フリップフロップ17はつぎのよ
うに動作する。すなわち、メモリライトアドレス比較判
定回路9は、コンピュータ1から出力されるアドレス信
号および制御信号とアドレス設定スイッチ15による設
定アドレスとからメモリの設定アドレスへの書込命令が
実行されたかどうかを常時判定し、また、マスク命令検
出回路14は、コンピュータ1から出力されるアドレス
信号および制御信号からマスク命令が実行されたかどう
かを常時判定している。まず、コンピュータ1がマスク
命令を実行すると、マスク命令検出回路14がコンピュ
ータ1から出力されるアドレス信号および制御信号から
コンピュータ1がマスク命令を実行したことを検出して
出力を発生する。マスク命令検出回路14から出力が発
生すると、マスク回路23が遮断状態となる。
This computer program development support device runs a computer program in which a mask command is inserted in advance immediately before a write command to the memory in a state in which the abnormality detection function selection switch 16 is switched to, for example, the memory write address comparison judgment circuit 9. When executed, the memory write address comparison judgment circuit 9. Mask command detection circuit 1
4. Mask circuit 23. Flip-flop 17 operates as follows. That is, the memory write address comparison and determination circuit 9 constantly determines whether a write command to the set address of the memory has been executed based on the address signal and control signal output from the computer 1 and the address set by the address setting switch 15. Furthermore, the mask command detection circuit 14 constantly determines whether a mask command has been executed based on the address signal and control signal output from the computer 1. First, when the computer 1 executes a mask instruction, the mask instruction detection circuit 14 detects from the address signal and control signal output from the computer 1 that the computer 1 has executed the mask instruction, and generates an output. When an output is generated from the mask command detection circuit 14, the mask circuit 23 enters a cut-off state.

この後、コンピュータ1が書込命令を実行すると、メモ
リライトアドレス比較判定回路9が出力を発生する。と
ころが、マスク回路23が遮断状態となっており、フリ
ップフロップ17がセットされない。したがって、命令
実行アドレス表示回路5は、コンピュータ1が実行して
いる命令の命令実行アドレスを順次更新しながら表示し
、実行命令内容表示回路6は同じく命令の内容を更新し
ながら表示する。すなわち、メモリの設定アドレスに対
する書込命令の前にマスク命令があることにより、上記
書込命令が実行されても命令実行アドレス表示回路5お
よび実行命令内容表示回路6の表示保持は行われない。
Thereafter, when the computer 1 executes a write command, the memory write address comparison/determination circuit 9 generates an output. However, the mask circuit 23 is in a cut-off state, and the flip-flop 17 is not set. Therefore, the instruction execution address display circuit 5 sequentially updates and displays the instruction execution addresses of the instructions being executed by the computer 1, and the execution instruction content display circuit 6 similarly updates and displays the contents of the instructions. That is, since the mask command is placed before the write command for the set address of the memory, even if the write command is executed, the display of the command execution address display circuit 5 and the execution command content display circuit 6 is not maintained.

一方、メモリへの書込命令の直前にマスク命令を挿入し
ていないコンピュータプログラムをコンピュータ1で実
行させた場合にメモリ゛ライトアトレス比較判定回路9
.マスク命令検出回路14゜マスク回路23.フリップ
フロップ17はつぎのように動作する。すなわち、メモ
リライトアドレス比較判定回路9は、コンピュータ1か
ら出力されるアドレス信号および制御信号とアドレス設
定スイッチ15による設定アドレスとからメモリの設定
アドレスへの書込命令が実行されたかどうかを常時判定
し、また、マスク命令検出回路14は、コンピュータ1
から出力されるアドレス信号および制御信号からマスク
命令が実行されたかどうかを判定している。この場合に
は、コンピュータ1がマスク命令を実行しないので、マ
スク命令検出回路14が出力を発生せず、マスク回路2
3は遮断状態とはならない。
On the other hand, when the computer 1 executes a computer program in which a mask instruction is not inserted immediately before a write instruction to the memory, the memory write address comparison judgment circuit 9
.. Mask command detection circuit 14° mask circuit 23. Flip-flop 17 operates as follows. That is, the memory write address comparison and determination circuit 9 constantly determines whether a write command to the set address of the memory has been executed based on the address signal and control signal output from the computer 1 and the address set by the address setting switch 15. , and the mask command detection circuit 14 is connected to the computer 1.
It is determined whether the mask command has been executed based on the address signal and control signal output from the . In this case, since the computer 1 does not execute the mask command, the mask command detection circuit 14 does not generate an output, and the mask circuit 2
3 is not in the cutoff state.

したがって、コンピュータ1が書込命令を実行すると、
メモリライトアドレス比較判定口B9が出力を発生する
。このとき、マスク回路23が遮断状態とはなっていな
いので、フリップフロップ17がセットされる。したが
って、命令実行アドレス表示回路5は、コンピュータ1
が実行している命令の命令実行アドレスの順次更新を停
止し、書込命令の命令実行アドレスを表示した状態を保
持し、実行命令内容表示回路6は同じく命令の内容の更
新を停止し、そのときの命令内容の表示を保持する。す
なわち、メギリの設定アドレスに対するマスク命令がな
いことにより、上記書込命令が実行されたときに命令実
行アドレス表示回路5および実行命令内容表示回路6の
表示保持が行われる。
Therefore, when computer 1 executes a write command,
Memory write address comparison/determination port B9 generates an output. At this time, since the mask circuit 23 is not in the cut-off state, the flip-flop 17 is set. Therefore, the instruction execution address display circuit 5
stops sequentially updating the instruction execution address of the instruction being executed and maintains the displayed state of the instruction execution address of the write instruction, and the executed instruction content display circuit 6 similarly stops updating the instruction content and displays the Retains the display of the command contents at the time. That is, since there is no mask command for the set address of the scale, the display of the command execution address display circuit 5 and the execution command content display circuit 6 is maintained when the write command is executed.

上記した書込命令が正常な命令であると、その直前にマ
スク命令が挿入されているので、コンピュータ1がマス
ク命令を実行し、マスク命令検出回路14がコンピュー
タ1によるマスク命令の実行(特定の出力ポートへの信
号出力)を検出して書込命令実行時のフリップフロップ
17のセットを禁止し、命令実行アドレス表示回路5お
よび実行命令内容表示回路6の表示保持を禁止し、更薪
動作を継続させる。
If the write command described above is a normal command, a mask command is inserted immediately before it, so the computer 1 executes the mask command, and the mask command detection circuit 14 detects the execution of the mask command by the computer 1 (specific signal output to the output port), and prohibits the setting of the flip-flop 17 when executing a write command, prohibits the instruction execution address display circuit 5 and the execution instruction content display circuit 6 from holding the display, and restarts the resetting operation. Let it continue.

一方、上記の書込命令が異常な命令(バグ)であると、
コンピュータ1によるマスク命令の実行はなく、フリッ
プフロップ17のセットは禁止されず、書込命令の実行
によってフリップフロップ17がセットされ、命令実行
アドレス表示回路5および実行命令内容表示回路6の表
示保持が行われ、リセットスイッチ19によってフリッ
プフロップ17をリセットするまで残ることになる。
On the other hand, if the above write command is an abnormal command (bug),
The computer 1 does not execute the mask instruction, the setting of the flip-flop 17 is not prohibited, and the flip-flop 17 is set by executing the write instruction, and the display of the instruction execution address display circuit 5 and the execution instruction content display circuit 6 is maintained. and will remain until the flip-flop 17 is reset by the reset switch 19.

つぎに、マスク回路23の動作を第2図および第3図を
参照して説明する。第2図は書込命令の前にマスク命令
があるときの各部のタイムチャートで、第3図は書込命
令の前にマスク命令がないときの各部のタイムチャート
である。第2図および第3図において、(A)はマスク
命令検出回路14の出力を、(B)はフリップフロップ
20のQ出力を、(C)は遅延回路21の出力を、(D
)はアンド回路22の出力を、(E)はメモリライトア
ドレス比較判定回路9の出力を、(F)はフリップフロ
ップ17の出力をそれぞれ示している。
Next, the operation of the mask circuit 23 will be explained with reference to FIGS. 2 and 3. FIG. 2 is a time chart of each part when there is a mask command before a write command, and FIG. 3 is a time chart of each part when there is no mask command before a write command. 2 and 3, (A) shows the output of the mask instruction detection circuit 14, (B) shows the Q output of the flip-flop 20, (C) shows the output of the delay circuit 21, and (D
) shows the output of the AND circuit 22, (E) shows the output of the memory write address comparison/judgment circuit 9, and (F) shows the output of the flip-flop 17, respectively.

まず、マスク命令がある場合の動作を第2図により説明
する。初期状態においては、マスク命令検出回路14の
出力が第2図(A)のようにLしベル、フリップフロッ
プ20のn出力が第2図(B)のようにHレベル、遅延
回路21の出力が第2図(C)のようにHレベル、アン
ド回路22の出力が第2図(D)のようにLレベル、メ
モリライトアドレス比較判定回路9の出力が第2図(E
)のようにLレベル、フリップフロップ17のQ出力が
第2図(F)のようにLレベルである。
First, the operation when there is a mask command will be explained with reference to FIG. In the initial state, the output of the mask command detection circuit 14 is at the L level as shown in FIG. 2(A), the n output of the flip-flop 20 is at the H level as shown in FIG. 2(B), and the output of the delay circuit 21 is is at the H level as shown in FIG. 2(C), the output of the AND circuit 22 is at the L level as shown in FIG. 2(D), and the output of the memory write address comparison/judgment circuit 9 is at the H level as shown in FIG.
), the Q output of the flip-flop 17 is at the L level, as shown in FIG. 2(F).

この状態では、命令実行アドレス表示回路5および実行
命令内容表示回路6は表示更新を行っている。
In this state, the instruction execution address display circuit 5 and the execution instruction content display circuit 6 are updating their displays.

この後、マスク命令が実行されてマスク命令検出回路1
4の出力が第2図(A)のようにHレベルになると、フ
リップフロップ20のd出力が第2図(B)のようにた
だちにLレベルになり、さらに遅延回路21の出力も第
2図(C)のようにただちにLレベルとなる。このとき
、メモリライトアドレス比較判定回路9の出力が第2図
(E)のように、Lレベルであるので、アンド回路22
の出力は第2図(D)のようにLレベルを維持し、した
がってフリップフロップ17の出力Qも第2図(F)の
ようにLレベルで、命令実行アドレス表示回路5および
実行命令内容表示回路6は表示更新状態を持続する。
After this, the mask command is executed and the mask command detection circuit 1
When the output of 4 becomes H level as shown in FIG. 2(A), the d output of flip-flop 20 immediately becomes L level as shown in FIG. 2(B), and furthermore, the output of delay circuit 21 also becomes H level as shown in FIG. It immediately goes to L level as shown in (C). At this time, since the output of the memory write address comparison/determination circuit 9 is at L level as shown in FIG. 2(E), the AND circuit 22
The output of the flip-flop 17 is maintained at the L level as shown in FIG. 2(D), and therefore the output Q of the flip-flop 17 is also at the L level as shown in FIG. 2(F). The circuit 6 maintains the display update state.

この後、メモリの所定の設定アドレスに対する書込命令
が実行されると、メモリライトアドレス比較判定回路9
の出力が第2図(E)のようにHレベルとなる。この結
果、フリップフロップ20がリセットされ、Q出力が第
2図(B)のようにHレベルに復帰し、これより時間T
D後れて遅延回路21の出力が第2図(C)のようにH
レベルに復帰する。このとき、メモリライトアドレス比
較判定回路9の出力がHレベルになってもその時間TI
中遅延回路21の出力がLレベルを持続しているので、
アンド回路22の出力は第2図(D)のようにLレベル
のままであり、したがってフリップフロップ17がセッ
トされず、そのQ出力も第2図(F)のようにLレベル
のままであり、命令実行アドレス表示回路5および実行
命令内容表示回路6は表示更新状態を持続する。
Thereafter, when a write command to a predetermined set address of the memory is executed, the memory write address comparison and determination circuit 9
The output becomes H level as shown in FIG. 2(E). As a result, the flip-flop 20 is reset and the Q output returns to the H level as shown in FIG.
After D, the output of the delay circuit 21 becomes H as shown in Fig. 2(C).
Return to level. At this time, even if the output of the memory write address comparison/judgment circuit 9 becomes H level, the time TI
Since the output of the medium delay circuit 21 maintains the L level,
The output of the AND circuit 22 remains at the L level as shown in FIG. 2(D), so the flip-flop 17 is not set and its Q output also remains at the L level as shown in FIG. 2(F). , the instruction execution address display circuit 5 and the execution instruction content display circuit 6 maintain the display update state.

遅延回路21の出力がHレベルに復帰すると、初期状態
にもどることになる。
When the output of the delay circuit 21 returns to H level, the initial state is returned.

以上述べたように、書込命令の前にマスク命令が挿入さ
れていると、書込命令が実行されても、フリップフロッ
プ17がセットされず、命令実行アドレス表示回路5お
よび実行命令内容表示回路6は表示更新状態を持続する
ことになる。なお、上記動作を行わせるためには、遅延
回路21の遅延時間TDをメモリライトアドレス比較判
定回路9の出力がHレベルとなっている時間T1よりも
長く設定する必要がある。
As described above, if a mask instruction is inserted before a write instruction, even if the write instruction is executed, the flip-flop 17 is not set, and the instruction execution address display circuit 5 and execution instruction content display circuit 6 will maintain the display update state. In order to perform the above operation, it is necessary to set the delay time TD of the delay circuit 21 to be longer than the time T1 during which the output of the memory write address comparison and determination circuit 9 is at the H level.

つぎに、マスク命令がない場合の動作を第3図により説
明する。初期状態においては、マスク命令検出回路14
の出力が第3図(A>のようにLレベル、フリップフロ
ップ20の6出力が第3図(B)のようにHレベル、遅
延回路21の出力が第3図(C)のようにHレベル、ア
ンド回路22の出力が第3図(D)のようにLレベル、
メモリライトアドレス比較判定回路9の出力が第3図(
E)のようにLレベル、フリップフロップ17のQ出力
が第3図(F)のようにLレベルである。
Next, the operation when there is no mask command will be explained with reference to FIG. In the initial state, the mask command detection circuit 14
The output of the flip-flop 20 is at the L level as shown in FIG. 3 (A>), the six outputs of the flip-flop 20 are at the H level as shown in FIG. 3(B), and the output of the delay circuit 21 is at the H level as shown in FIG. 3(C). level, the output of the AND circuit 22 is at L level as shown in FIG. 3(D),
The output of the memory write address comparison/judgment circuit 9 is shown in FIG.
The Q output of the flip-flop 17 is at the L level as shown in FIG. 3(F).

この状態では、命令実行アドレス表示回路5および実行
命令内容表示回路6は表示更新を行っている。
In this state, the instruction execution address display circuit 5 and the execution instruction content display circuit 6 are updating their displays.

マスク命令が挿入されていないと、マスク命令検出回路
14の出力が第3図(A)のようにLレベルの状態を維
持し、フリップフロップ20のσ出力が第3図(B)の
ようにHレベルの状態を維持し、さらに遅延回路21の
出力も第3図(C)のようにHレベルの状態を維持する
If no mask command is inserted, the output of the mask command detection circuit 14 remains at the L level as shown in FIG. 3(A), and the σ output of the flip-flop 20 remains at the L level as shown in FIG. 3(B). It maintains the H level state, and the output of the delay circuit 21 also maintains the H level state as shown in FIG. 3(C).

メモリの所定の設定アドレスに対する書込命令が実行さ
れると、メモリライトアドレス比較判定回路9の出力が
第3図(E)のように、Hレベルとなる。この結果、ア
ンド回路22の出力は第3図(D)のようにHレベルと
なり、したがってフリップフロップ17がセットされ、
そのQ出力が第3図(F)のようにHレベルとなり、命
令実行アドレス表示回路5および実行命令内容表示回路
6は表示保持状態に変化する。この状態は、リセットス
イッチ19によってフリップフロップ17をリセットす
るまで続く。
When a write command to a predetermined set address of the memory is executed, the output of the memory write address comparison/determination circuit 9 becomes H level as shown in FIG. 3(E). As a result, the output of the AND circuit 22 becomes H level as shown in FIG. 3(D), and therefore the flip-flop 17 is set.
The Q output becomes H level as shown in FIG. 3(F), and the instruction execution address display circuit 5 and execution instruction content display circuit 6 change to the display holding state. This state continues until the flip-flop 17 is reset by the reset switch 19.

なお、異常検出機能選択スイッチ16を他の位置に切換
えたときも、異常検出の対象が異なるのみで上記と同様
の動作を行うことになる。
Note that even when the abnormality detection function selection switch 16 is switched to another position, the same operation as described above will be performed, except that the object of abnormality detection is different.

ここで、異常な書込命令と正常な書込命令についてもう
少し説明する。コンピュータプログラム中につぎのよう
な一連の異常命令が存在する場合について考える。
Here, abnormal write commands and normal write commands will be explained a little more. Consider a case where a computer program contains the following series of abnormal instructions.

100HLD   A、    0FFH102□  
LD   HL、   1000H105TI  LD
  (HL)、  A上記の命令群の意味するところは
、AレジスタにデータOFF□を書き込み、HLレジス
タにデータ1000Hを書き込み、HLレジスタの内容
で示されるメモリのアドレス(1000H番地)にAレ
ジスタの内容(OFFH)を書き込むということ、すな
わち、メモリの1000H番地にデータ0FFHを書き
込むということである。このような一連の命令群がコン
ピュータプログラム中に存在すると、アドレス設定スイ
ッチ15を1000Hに設定したときにコンピュータ1
が105H番地の命令を実行すると、命令実行アドレス
表示回路5が「105H」を表示保持することになる。
100HLD A, 0FFH102□
LD HL, 1000H105TI LD
(HL), A The meaning of the above command group is to write data OFF□ to the A register, write data 1000H to the HL register, and write the A register to the memory address (address 1000H) indicated by the contents of the HL register. Writing the contents (OFFH) means writing data 0FFH to address 1000H of the memory. If such a series of instructions exists in a computer program, when the address setting switch 15 is set to 1000H, the computer 1
When the instruction execution address 105H is executed, the instruction execution address display circuit 5 displays and holds "105H".

つぎに、コンピュータプログラム中につぎのような一連
の正常命令が存在する場合について考える。
Next, let us consider the case where the following sequence of normal instructions exists in a computer program.

200HOUT  (01,)、A 202HLD    A、     OFF□204、
T   LD   HL、    2000□20?H
LD   (HL)、   A上記の命令群の意味する
ところは、01H番の出力ポートにAレジスタの内容を
出力(マスク命令)し、Aレジスタにデータ0FFHを
書き込み、HLレジスタにデータ2000Hを書き込み
、Hしレジスタの内容で示されるメモリのアドレス(2
000H番地)にAレジスタの内容(OFFH)を書き
込むということ、すなわち、01H番の出力ポートにデ
ータ0FFHを出力し、その後メモリの2000□番地
にデータ0FFHを書き込むということである。このよ
うな一連の命令群がコンピュータプログラム中に存在す
ると、アドレス設定スイッチ15を2000Hに設定し
たときに、コンピュータ1が207H番地の命令を実行
しても、命令実行アドレス表示回路5が表示保持を行わ
ない。
200HOUT (01,), A 202HLD A, OFF□204,
T LD HL, 2000□20? H
LD (HL), A The meaning of the above command group is to output the contents of the A register to the 01H output port (mask command), write data 0FFH to the A register, write data 2000H to the HL register, Memory address (2) indicated by the contents of the H register.
This means writing the contents of the A register (OFFH) to address 000H), that is, outputting data 0FFH to the output port numbered 01H, and then writing data 0FFH to address 2000□ of the memory. If such a series of instructions exists in a computer program, even if the computer 1 executes the instruction at address 207H when the address setting switch 15 is set to 2000H, the instruction execution address display circuit 5 will not hold the display. Not performed.

この実施例のコンピュータプログラム開発支援装置は、
コンピュータ1から出力される各種信号およびアドレス
設定スイッチ15の設定アドレスとからメモリライトア
ドレス比較判定回路9がメモリの設定アドレスへの書込
命令の実行を検出するとともに、マスク命令検出回路1
4がコンピュータ1から出力される各種信号からマスク
命令の実行を検出し、マスク命令検出回路14の出力で
もってマスク回路23を遮断することでメモリライトア
ドレス比較判定回路9によるフリップフロップ17のセ
ットを禁止し、マスク検出回路14の出力がないときに
のみメモリライトアドレス比較判定回路9の出力でフリ
ップフロップ17をセットし、フリップフロップ17の
セット時出力に応答して命令実行アドレス表示回路5が
現在実行している命令実行アドレスを表示保持し、フリ
ップフロップ17のリセット時出力に応答して命令実行
アドレス表示保持回路5が順次表示を更新するため、ア
ドレス設定スイッチ15の設定アドレスを変更するだけ
でメモリの任意のアドレスへの異常な書込命令の実行を
検出してオペレータに知らせることができる。
The computer program development support device of this embodiment is
The memory write address comparison/judgment circuit 9 detects the execution of a write command to the set address of the memory based on various signals output from the computer 1 and the set address of the address setting switch 15, and the mask command detection circuit 1
4 detects the execution of a mask instruction from various signals output from the computer 1, and blocks the mask circuit 23 with the output of the mask instruction detection circuit 14, thereby causing the memory write address comparison and determination circuit 9 to set the flip-flop 17. The flip-flop 17 is set by the output of the memory write address comparison/judgment circuit 9 only when there is no output from the mask detection circuit 14, and the current instruction execution address display circuit 5 is set in response to the set output of the flip-flop 17. Since the execution address of the instruction being executed is displayed and held, and the instruction execution address display holding circuit 5 sequentially updates the display in response to the reset output of the flip-flop 17, simply changing the setting address of the address setting switch 15 is enough. Execution of an abnormal write command to an arbitrary address in memory can be detected and notified to the operator.

〔発明の効果〕〔Effect of the invention〕

第1の発明のコンピュータプログラムの開発支援方法に
よれば、コンピュータプログラム中のメモリの特定アド
レスへの正常な書込命令の直前にマスク命令を挿入し、
コンピュータで前記コンピュータプログラムを実行させ
ている途中において、前記メモリの特定アドレスへの書
込命令の実行をコンピュータから出力される各種信号か
ら検出してその書込命令の命令実行アドレスを表示保持
し、上記書込命令の実行直前のマスク命令の実行を検出
して上記表示保持を禁止するため、コンピュータプログ
ラム中にメモリの特定アドレスへの正常な書込命令が存
在したときには、その直前にマスク命令も存在し、マス
ク命令の実行により正常な書込命令が実行されたときの
命令実行アドレスの表示保持が禁止される。一方、コン
ピュータプログラム中にメモリの特定アドレスへの異常
な書込命令が存在したときには、その直前にはマスク命
令が挿入されていないことから、異常な書込命令が実行
されたときに、その命令実行アドレスの表示保持が行わ
れる。したがって、コンピュータの運転を停止すること
なくコンピュータプログラム中に存在するメモリの特定
アドレスへの異常な書込命令を正常な書込命令と区別し
て検出し、それをオペレータに知らせることができる。
According to the computer program development support method of the first invention, a mask instruction is inserted immediately before a normal write instruction to a specific address of memory in the computer program,
While the computer program is being executed by the computer, the execution of a write command to a specific address of the memory is detected from various signals output from the computer, and the command execution address of the write command is displayed and held; In order to detect the execution of a mask command immediately before the execution of the above write command and prohibit the above display retention, if there is a normal write command to a specific memory address in the computer program, the mask command is also executed immediately before it. Execution of a mask instruction prohibits display and retention of the instruction execution address when a normal write instruction is executed. On the other hand, when there is an abnormal write instruction to a specific memory address in a computer program, no mask instruction is inserted immediately before it, so when the abnormal write instruction is executed, the instruction The display of the execution address is maintained. Therefore, it is possible to detect an abnormal write command to a specific memory address existing in a computer program without stopping the operation of the computer, distinguishing it from a normal write command, and to notify the operator of the abnormal write command.

しかも、異常な書込命令の命令実行アドレスが表示保持
されるため、オペレータが常時監視しなくても異常な書
込命令を知ることができ、再現性の低い異常命令実行の
検出もオペレータに負担をかけずに行える。
Furthermore, since the command execution address of the abnormal write command is displayed and retained, the operator can know the abnormal write command without constantly monitoring it, and the burden is placed on the operator to detect abnormal command execution with low reproducibility. You can do it without spending money.

第2の発明のコンピュータプログラム開発支援装置によ
れば、アドレス設定スイッチを設け、このアドレス設定
スイッチにより設定した設定アドレスをメモリライトア
ドレス比較判定回路へ送るようにしているため、アドレ
ス設定スイッチの設定アドレスを変更するだけでメモリ
の任意のアドレスへの異常な書込命令の実行を検出して
オペレータに知らせることができる。
According to the computer program development support device of the second invention, since the address setting switch is provided and the setting address set by the address setting switch is sent to the memory write address comparison judgment circuit, the setting address of the address setting switch is By simply changing , it is possible to detect abnormal execution of a write command to any address in memory and notify the operator.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の実施例を示すブロック図、第2図お
よび第3図は第1図の各部のタイムチャートである。 1・・・コンピュータ、5・・・命令実行アドレス表示
回路、9・・・メモリライトアドレス比較判定回路、1
4・・・マスク命令検出回路、15・・・アドレス設定
スイッチ、17・・・フリップフロップ、23・・・マ
スク回路 第2因 第3因
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIGS. 2 and 3 are time charts of each part of FIG. 1. DESCRIPTION OF SYMBOLS 1... Computer, 5... Instruction execution address display circuit, 9... Memory write address comparison judgment circuit, 1
4...Mask command detection circuit, 15...Address setting switch, 17...Flip-flop, 23...Mask circuit second factor and third factor

Claims (2)

【特許請求の範囲】[Claims] (1)コンピュータプログラム中のメモリの特定アドレ
スへの正常な書込命令の直前にマスク命令を挿入し、前
記コンピュータプログラムをコンピュータで実行させて
いる途中において、前記コンピュータから出力される各
種信号から前記メモリの特定アドレスへの書込命令の実
行を検出してその書込命令の命令実行アドレスを保持し
、前記メモリの特定アドレスへの書込命令の実行直前の
マスク命令の実行を前記コンピュータから出力される各
種信号から検出して前記書込命令の命令実行アドレスの
保持を禁止するコンピュータプログラム開発支援方法。
(1) A mask command is inserted immediately before a normal write command to a specific memory address in a computer program, and while the computer program is being executed by the computer, various signals output from the computer Detecting the execution of a write instruction to a specific address in memory, holding the instruction execution address of the write instruction, and outputting from the computer the execution of the mask instruction immediately before the execution of the write instruction to the specific address in the memory. A computer program development support method that detects from various signals sent to the write command and prohibits holding of an instruction execution address of the write command.
(2)メモリの特定アドレスへの正常な書込命令の直前
にマスク命令を挿入したコンピュータプログラム中の前
記メモリの特定アドレスへの異常な書込命令を検知する
コンピュータプログラム開発支援装置であって、 前記メモリのアドレスを設定するアドレス設定スイッチ
と、 前記コンピュータプログラムを実行するコンピュータか
ら出力される各種信号および前記アドレス設定スイッチ
により設定した設定アドレスから前記メモリの設定アド
レスへの書込命令の実行を検出するメモリライトアドレ
ス比較判定回路と、このメモリライトアドレス比較判定
回路の出力に応答してセットされるフリップフロップと
、このフリップフロップのリセット時出力に応答して前
記コンピュータから出力される各種信号から前記コンピ
ュータが現在実行している命令実行アドレスを更新しな
がら表示し、前記フリップフロップのセット時出力に応
答して命令実行アドレスの表示を保持する命令実行アド
レス表示回路と、前記コンピュータから出力される各種
信号から前記マスク命令の実行を検出するマスク命令検
出回路と、前記メモリライトアドレス比較判定回路と前
記フリップフロップとの間に介在して前記マスク命令検
出回路の出力に応答して前記マスク命令検出回路の出力
発生直後の前記メモリライトアドレス比較判定回路の出
力を遮断するマスク回路とを備えたコンピュータプログ
ラム開発支援装置。
(2) A computer program development support device that detects an abnormal write instruction to a specific memory address in a computer program in which a mask instruction is inserted immediately before a normal write instruction to a specific memory address, an address setting switch for setting the address of the memory; various signals output from a computer executing the computer program; and detection of execution of a write command from the setting address set by the address setting switch to the setting address of the memory; A memory write address comparison/judgment circuit that performs the memory write address comparison/judgment circuit, a flip-flop that is set in response to the output of the memory write address comparison/judgment circuit, and various signals output from the computer in response to the reset output of this flip-flop. an instruction execution address display circuit that updates and displays an instruction execution address currently being executed by the computer and maintains a display of the instruction execution address in response to the set output of the flip-flop; and various outputs from the computer. a mask instruction detection circuit that detects execution of the mask instruction from a signal; and a mask instruction detection circuit that is interposed between the memory write address comparison and determination circuit and the flip-flop and responds to the output of the mask instruction detection circuit. and a mask circuit that cuts off the output of the memory write address comparison/determination circuit immediately after the output of the memory write address comparison/judgment circuit is generated.
JP62035303A 1987-02-17 1987-02-17 Method and device for supporting development of computer program Pending JPS63201737A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62035303A JPS63201737A (en) 1987-02-17 1987-02-17 Method and device for supporting development of computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62035303A JPS63201737A (en) 1987-02-17 1987-02-17 Method and device for supporting development of computer program

Publications (1)

Publication Number Publication Date
JPS63201737A true JPS63201737A (en) 1988-08-19

Family

ID=12438013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62035303A Pending JPS63201737A (en) 1987-02-17 1987-02-17 Method and device for supporting development of computer program

Country Status (1)

Country Link
JP (1) JPS63201737A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04229340A (en) * 1990-05-07 1992-08-18 Internatl Business Mach Corp <Ibm> Debug system of common-memory multiprocessor computer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04229340A (en) * 1990-05-07 1992-08-18 Internatl Business Mach Corp <Ibm> Debug system of common-memory multiprocessor computer

Similar Documents

Publication Publication Date Title
US5359608A (en) Apparatus for activation and deactivation of instruction tracing through use of conditional trace field in branch instructions
US5280626A (en) Multi-process emulator suitable for testing software under multi-process environments
US6279104B1 (en) Debugging system for parallel processed program and debugging method thereof
JPS63201737A (en) Method and device for supporting development of computer program
KR890002764A (en) Device and method for controlling asynchronous program interrupt event in data processing system
JPS63143637A (en) Method and device for supporting development of computer program
EP0510679A2 (en) Fault information gathering system for peripheral controllers in a computer system
JPH03105503A (en) Programmable controller
JP2698252B2 (en) Printer
JP2635777B2 (en) Programmable controller
JPH05233479A (en) Panel monitor system
JP2015109535A (en) Communication apparatus and error response level switching method
JPH0395653A (en) Address error detecting method for data storage device
KR890002758A (en) Data processing system
KR20000039688A (en) Method for providing error cause information in switching system
JPH02210515A (en) System resetting system
JPH0192803A (en) Monitor display system for programmable controller
JPH04182839A (en) Debugging system for microprogram
JPS61109152A (en) Malfunction detector
JPH07210420A (en) Debugging method in thread environment
JPH05183966A (en) Centralized monitor system
JPH0362233A (en) Address match timing tracing mechanism
JPH05100913A (en) Error factor searching system
JPH06236289A (en) Information processor
JPH04338842A (en) Information processor with error detecting function