JPS59153245A - Debugging device - Google Patents

Debugging device

Info

Publication number
JPS59153245A
JPS59153245A JP58025896A JP2589683A JPS59153245A JP S59153245 A JPS59153245 A JP S59153245A JP 58025896 A JP58025896 A JP 58025896A JP 2589683 A JP2589683 A JP 2589683A JP S59153245 A JPS59153245 A JP S59153245A
Authority
JP
Japan
Prior art keywords
address
program counter
input
cpu
program
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
JP58025896A
Other languages
Japanese (ja)
Inventor
Haruo Takagi
高木 治夫
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.)
Omron Corp
Original Assignee
Tateisi Electronics Co
Omron Tateisi Electronics Co
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 Tateisi Electronics Co, Omron Tateisi Electronics Co filed Critical Tateisi Electronics Co
Priority to JP58025896A priority Critical patent/JPS59153245A/en
Publication of JPS59153245A publication Critical patent/JPS59153245A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To simplify the setting operation of a debugging start address by inputting an address in a program counter through a memory storing an optional address to be set in the program counter of a CPU on the master machine side. CONSTITUTION:When an address to be set up in the program counter PC is registered by operating a keyboard 6 and a setting PC key is depressed, the address is set up in the PC, and simultaneously stored in a buffer register RBF in a memory 5. If the setting PC key is depressed without registering the address, the address already stored in the RBF is set up in the PC. When the same address is repeatedly debugged without changing the debugging start address of the PC, only the setting PC key is depressed without specdifying an address every time, so that key operation can be simplified.

Description

【発明の詳細な説明】 (発明の分野) この発明はコンピュータ・システムのデバッグ装置に関
し、特に、特定のアドレスからプログラムを繰り返しス
タートさせる処理技術に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of the Invention) The present invention relates to a debugging device for a computer system, and more particularly to a processing technique for repeatedly starting a program from a specific address.

(発明の背晴) 周知のように、プログラムデバッグを行なう際には、プ
ログラムを先頭から実行させるだ【ノでなく、実mcp
uのプログラムにあるアドレスをセットし、そのアドレ
スからプログラム実行をスターi〜させることが良く行
なわれる。また、ある部分を重点的にデバッグする場合
など、プログラムを特定アドレスからスタートさせる操
作を繰り返し行なうことも良くある。
(Back of the invention) As is well known, when debugging a program, it is necessary to run the program from the beginning [not the actual mcp].
It is often done to set a certain address in the program of u and start program execution from that address. Furthermore, when debugging a certain part of the program, it is common to repeatedly start a program from a specific address.

従来のデバッグ装置では、勿論、キーボードを操作して
実機CPUのプログラムカウンタに任意のアドレスをレ
ットし、そのアドレスからプログラム実行をスタートさ
せることができる。しかし、特定アドレスからプログラ
ム実行をスタートさせることを、何回も反復して行なう
場合に、その都度キーボードを操作して、上記の特定ア
ドレスを実11CPUのプログラムカウンタにセットす
る操作を行なわなければならなかった。この操作は実用
上非常に面倒【あり、プログラムデバッグを効率良く進
める上でのひとつの障害となっていた。
In conventional debugging devices, it is of course possible to enter an arbitrary address into the program counter of the actual CPU by operating the keyboard, and to start program execution from that address. However, if you repeatedly start program execution from a specific address, you must operate the keyboard each time to set the specific address in the program counter of the real 11 CPU. There wasn't. This operation is extremely troublesome in practice, and has become an obstacle to efficient program debugging.

(発明の目的) この発明の目的は、反復して特定アドレスからプログラ
ム実行をスタートさせる拐合に、上記特定アドレスを実
機c p uのプログラムカウンタにセットする操作を
毎回行なわなくても済むようにした、操作性の良いデバ
ッグ装置を提供することにある。
(Objective of the Invention) The object of the invention is to eliminate the need to set the specific address in the program counter of the actual CPU each time when program execution is repeatedly started from a specific address. The purpose of the present invention is to provide a debugging device with good operability.

(発明の構成と効果) 上記の目的を達成するために、この発明は、実m c 
p uのプログラムカウンタにセットすべき任意のアド
レスを入力づ′るための入力手段と、この入力手段で入
力されたアドレスを記憶する記憶手段と、−に記入力手
段によるアドレス入力の直後に所定の指令入力があった
とき、そのアドレスを実1cpuのプログラムカウンタ
にセットする手段と、上記入力手段によるアドレ・ス入
力のない状態で上記指令入力があったとき、上記記憶手
段に記憶されているアドレスを実1cpuのプログラム
カウンタにセットする手段とを備えることを特徴とする
(Structure and Effects of the Invention) In order to achieve the above object, the present invention provides real mc
an input means for inputting an arbitrary address to be set in the program counter of the p u; a storage means for storing the address input by the input means; means for setting the address in the program counter of the real 1 CPU when a command is input; and a means for setting the address in the program counter of the real CPU when the command is input without an address input by the input means; The present invention is characterized by comprising means for setting an address in the program counter of one real CPU.

このデバッグ装置によれば、プログラム実行のスタート
アドレスを一度入力すれば、そのアドレスからスタート
させることを簡単な操作で繰り返し行なうことができる
According to this debugging device, once a start address for program execution is input, it is possible to repeatedly start from that address with a simple operation.

(実施例の説明) 第1図はこの発明の一実施例を示′rJaこの図は。(Explanation of Examples) FIG. 1 shows an embodiment of the invention.

デバッグ対象である実機Aとこの発明によるデバッグ装
置Bを結合した状態で示している。ただし、実機CPU
1のリード端子あるいはシステムバス(アドレスバスA
B1.データバス[)B1.コントロールバス0B1)
からアドレス信号、データバス信号、コントロール信号
を取出してプログラムデバッグを行なうデバッグ装置と
しての基本構成については、これが良く知られているこ
とがら、詳細な図示を省略している。図では、この発明
のデバッグ装置の特徴とする部分のみを抽出して示して
いる。
A real device A to be debugged and a debugging device B according to the present invention are shown in a combined state. However, the actual CPU
1 lead terminal or system bus (address bus A)
B1. Data bus [)B1. control bus 0B1)
The basic configuration of a debugging device for debugging a program by extracting address signals, data bus signals, and control signals from the computer is well known, and detailed illustration thereof is omitted. In the figure, only the features of the debugging device of the present invention are extracted and shown.

実MU CP tJ 1は、プログラムカウンタPCの
内容で実機メモリ2を順番にアドレッシングし、プログ
ラムを実行する。従って、実1cpuiを停止さUた状
態で、デバッグ装@BによりプログラムカウンタPCに
イ壬意のアドレスをセットし、その後実機CP U 1
を起動り−ることで、プログラム実行を任意のアドレス
からスタートさせることができる。
The real MU CP tJ 1 sequentially addresses the real device memory 2 according to the contents of the program counter PC and executes the program. Therefore, with the real CPU 1 stopped, set the desired address in the program counter PC using the debugging device @B, and then restart the real CPU 1.
By starting , you can start program execution from any address.

デバッグ装置13は、実機CPU1のシステムバスと本
装置を結ぶインターフェイス回路3と、本装置の全体的
な制御およびデータ処理の中枢であるCPU4と、CP
U4によって実行されるプログラムや各種のデータが格
納されるメモリ5と、CPU4に対して各種の入力を与
えるためのオペレータによって操作されるキーボード6
と、キーボード6とCPU4を結ぶキー人力コントロー
ル回路7と、デバッグ処理に伴なう各種のデータが表示
される表示器8と、表示器8とCPIJ4を結ぶ表示コ
ントロール回路9を備える。メモリ5にはキーボード6
による置数人力データがストアされる入力レジスタRI
Nと、実機CPU1のプログラムカウンタPCにセット
すべきアドレスがストアされるバッフルレジスタR8F
とが設定されている。
The debug device 13 includes an interface circuit 3 that connects the system bus of the actual CPU 1 and this device, a CPU 4 that is the center of overall control and data processing of this device, and a
A memory 5 in which programs executed by the U4 and various data are stored; and a keyboard 6 operated by an operator to provide various inputs to the CPU 4.
, a key manual control circuit 7 that connects the keyboard 6 and the CPU 4 , a display 8 on which various data associated with debugging are displayed, and a display control circuit 9 that connects the display 8 and the CPIJ 4 . Keyboard 6 in memory 5
Input register RI where human input data is stored
N and a baffle register R8F in which the address to be set in the program counter PC of the actual CPU 1 is stored.
is set.

この発明のデバッグ装置Bでは、オペレータがキーボー
ド6を操作して、まず、プログラムカウンタPCにセッ
トしたいアドレスを置数し、続いてキーボード6の5E
T−PCキー(プログラムカウンタのセットキー)を押
下すると、先に入力したアドレスがCPU1のプログラ
ムカウンタPCにセットされると同時に、そのアドレス
がメモリ5のバッフルレジスタRBFにも格納される。
In the debugging device B of the present invention, the operator operates the keyboard 6 to first enter the address to be set in the program counter PC, and then
When the T-PC key (program counter set key) is pressed, the previously input address is set in the program counter PC of the CPU 1, and at the same time, the address is also stored in the baffle register RBF of the memory 5.

また、アドレスの置数人力を行なわずにキーボード6の
5ET−PCキーを押下すると、上記バッファレジスタ
RBFに記憶されているアドレスが実機cpuiのプロ
グラムカウンタPCにセットされる。
If the 5ET-PC key on the keyboard 6 is pressed without inputting the address, the address stored in the buffer register RBF is set in the program counter PC of the actual CPU.

第2図はCPU4によって行なわれる上述した制御の手
順を示すフローチャートである。キーボード6による置
数人力があると、CPLI4はその入力を受(ブイ−1
けて、入力レジスタRINに格納する(ステップ101
.1Q2)。ステップ101または102の実行後ステ
ップ103に進み、プログラムカウンタPCにアドレス
をセットする処理の指令入力(SET−PCキー)があ
るか否かを判断する。この指令入力がある場合、次のス
テップ104で」−記入力レジスタRINがクリアされ
ているか、なんらかのデータが格納されているかを判断
する。入力レジスタRINにデータがあるJ場合、ステ
・ンブ105でそのデータをバラフン・レジスタRBF
にセラ1−するとともに、入力レジスタRINをクリア
し、ステップ106に進む。
FIG. 2 is a flowchart showing the above-described control procedure performed by the CPU 4. When there is input from the keyboard 6, the CPLI 4 receives the input (buoy 1).
and stores it in the input register RIN (step 101
.. 1Q2). After executing step 101 or 102, the process proceeds to step 103, where it is determined whether or not there is a command input (SET-PC key) for setting an address in the program counter PC. If there is this command input, then in the next step 104 it is determined whether the input register RIN is cleared or any data is stored therein. If there is data in the input register RIN, the data is transferred to the barafun register RBF in the step 105.
At the same time, the input register RIN is cleared, and the process proceeds to step 106.

入力レジスタRINにデータがない場合は、ステップ1
05をスキップしてステップ106に進む。
If there is no data in the input register RIN, step 1
Skip step 05 and proceed to step 106.

ステップ106では、バッファレジスタRBFの内容(
アドレス)を表示器8に表示する。次のステップ107
ではバッファレジスタRBFに格納されているアドレス
を実mcpuiのプログラムカウンタPCにセットする
In step 106, the contents of buffer register RBF (
address) is displayed on the display 8. Next step 107
Then, the address stored in the buffer register RBF is set in the program counter PC of the real mcpui.

つまり、アドレスが置数されてからSET・ρCキーが
押されれば、そのアドレスがプログラムカウンタPCに
セットされるとともに、バッファレジスタRBFにもセ
ットされる。また、アドレスが置数されずにSET −
PCキーが押−卜されると、バッファレジスタRBFに
格納されているアドレスがプログラムカウンタPCにけ
ットされる。
That is, if the SET/ρC key is pressed after an address has been entered, that address is set in the program counter PC and also in the buffer register RBF. Also, if the address is not set and SET -
When the PC key is pressed, the address stored in the buffer register RBF is kicked into the program counter PC.

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

第1図はこの発明の一実施例を示すブロック図、第2図
はデバッグ装置BのCPU4によるこの発明に係る制御
の手順を示すフローチャートである。 1・・・・・・・・・実機CPU 2・・・・・・・・・実機メモリ PC・・・・・・プログラムカウンタ 3・・・・・・・・・インターフェイス回路4・・・・
・・・・・CPU 5・・・・・・・・・メモリ RIN・・・入力レジスタ RBF・・・バッファレジスタ 6・・・・・・・・・キーボード 8・・・・・・・・・表示器 第2図 1℃n、刈理
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a flowchart showing a control procedure according to the present invention by the CPU 4 of the debugging device B. As shown in FIG. 1... Actual CPU 2... Actual memory PC... Program counter 3... Interface circuit 4...
...CPU 5...Memory RIN...Input register RBF...Buffer register 6...Keyboard 8... Display 2nd figure 1℃n, Kariri

Claims (1)

【特許請求の範囲】[Claims] (1)実1cpuのリード端子あるいはシステムバスか
らアドレス信号、データバス信号、コントロール信号を
取出してプログラムデバッグを行なう装置で、実奢幾C
PIJのプログラムカウンタにセラ1〜すべき任意のア
ドレスを入力するための入力手段と、この入力手段で入
力されたアドレスを記憶する記憶手段と、上記入力手段
によるアドレス入力の直後に所定の指令入力があったと
ぎ、そのアドレスを実+i c p uのプログラムカ
ウンタにセットする手段と、上記入力手段によるアドレ
ス入力のない状態で上記指令入力があったどぎ、上記記
憶手段に記憶されているアドレスを実機CP LJのプ
ログラムカウンタにレットする手段とを備えることを特
徴とするデバッグ装置。
(1) A device that performs program debugging by extracting address signals, data bus signals, and control signals from the lead terminals of an actual CPU or the system bus.
An input means for inputting an arbitrary address from Sera 1 to the program counter of the PIJ, a storage means for storing the address input by the input means, and a predetermined command input immediately after the address input by the input means. means for setting the address in the program counter of the real CPU when the address is inputted by the inputting means; 1. A debugging device comprising: a means for letting a program counter of an actual machine CP LJ.
JP58025896A 1983-02-18 1983-02-18 Debugging device Pending JPS59153245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58025896A JPS59153245A (en) 1983-02-18 1983-02-18 Debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58025896A JPS59153245A (en) 1983-02-18 1983-02-18 Debugging device

Publications (1)

Publication Number Publication Date
JPS59153245A true JPS59153245A (en) 1984-09-01

Family

ID=12178549

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58025896A Pending JPS59153245A (en) 1983-02-18 1983-02-18 Debugging device

Country Status (1)

Country Link
JP (1) JPS59153245A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6279539A (en) * 1985-10-03 1987-04-11 Mitsubishi Electric Corp Program debugging device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6279539A (en) * 1985-10-03 1987-04-11 Mitsubishi Electric Corp Program debugging device

Similar Documents

Publication Publication Date Title
JPS59153245A (en) Debugging device
JPS61210415A (en) Crt key input operating device
JP3134878B2 (en) Programmable controller
JPS59202547A (en) Debugging device
JPS59128652A (en) Program testing method using display device
JPS61180344A (en) Step execution system for high level language
JPH05127944A (en) Terminal control debug system
JPS59202546A (en) Debugging device
JPS6214240A (en) Program inspecting system
JP2899009B2 (en) Information processing device
JPS6113343A (en) Console device
JPS5848154A (en) One-step control system for program
JPH11161514A (en) Debugger device, debugging method and storage medium recording debugging program
JPS63180141A (en) Debugging system by conversational debugger
JPH0664541B2 (en) Command processor
JPH06103115A (en) Debugging system
JPS63228341A (en) Program syntax checking system
JPS6230457B2 (en)
JPH06214828A (en) Interactive debug controller
JPS63191243A (en) Collection system for jump history data
JPH0362238A (en) Back-up system for decision of file capacity
JPS6242254A (en) Channel initializing system
JPH0772874B2 (en) Interrupt receiving device
JPS6177940A (en) Rise control method for processor
JPH01142834A (en) Test result output control system for test program