JPS5850381B2 - Step control method - Google Patents

Step control method

Info

Publication number
JPS5850381B2
JPS5850381B2 JP53071799A JP7179978A JPS5850381B2 JP S5850381 B2 JPS5850381 B2 JP S5850381B2 JP 53071799 A JP53071799 A JP 53071799A JP 7179978 A JP7179978 A JP 7179978A JP S5850381 B2 JPS5850381 B2 JP S5850381B2
Authority
JP
Japan
Prior art keywords
interrupt
step control
instruction
executed
address
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.)
Expired
Application number
JP53071799A
Other languages
Japanese (ja)
Other versions
JPS54162942A (en
Inventor
光広 金安
正二 上田
孝寿 石井
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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric Co 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP53071799A priority Critical patent/JPS5850381B2/en
Publication of JPS54162942A publication Critical patent/JPS54162942A/en
Publication of JPS5850381B2 publication Critical patent/JPS5850381B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 この発明は電子計算機において、モニタプログラムの制
御下で実行されるユーザプログラムのステップコントロ
ール方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a step control system for a user program executed under the control of a monitor program in an electronic computer.

従来のこの種ステップコントロール方式は、ステップコ
ントロール用割込みを制御するための専用のハードウェ
アを設け;ステップコントロール割込みのセット/リセ
ットをプログラムで行なえるようにして、ステップモー
ドとなった際ソフトウェアおよびハードウェア双方のコ
ントロールにより処理を実行していた。
This type of conventional step control method requires dedicated hardware to control step control interrupts; the step control interrupts can be set/reset by a program, and when the step mode is entered, software and hardware Processing was executed under the control of both software.

従って従来ではハードウェアが複雑化し、かつコスト高
になる等の欠点を有していた。
Therefore, conventional methods have had drawbacks such as complicated hardware and high cost.

この発明は上記実情に鑑みなされたもので、モニタ制御
のもとにユーザプログラムのステップ実行およびモニタ
リングを簡単なハードウェア構成により実現することの
できるステップコントロール方式を提供することを目的
とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a step control method that can realize step execution and monitoring of a user program under monitor control with a simple hardware configuration.

以下図面を参照してこの発明の一実施例を説明する。An embodiment of the present invention will be described below with reference to the drawings.

第1図はマイクロプロセッサのこの発明に関係する部分
をブロック化して示すもので、図中、1は複数レベルの
割込要求I RQ 1・・・を受付ける割込受付部、2
は割込マスク部、3は割込制御部、4は命令実行制御部
、5はメモリ制御部である。
FIG. 1 shows the parts of a microprocessor related to the present invention in blocks, and in the figure, 1 is an interrupt reception unit that accepts interrupt requests I RQ 1... of multiple levels;
3 is an interrupt mask section, 3 is an interrupt control section, 4 is an instruction execution control section, and 5 is a memory control section.

また6はプログラム情報が格納された主メモリ、IRは
割込信号、IRPは割込許可信号である。
Further, 6 is a main memory in which program information is stored, IR is an interrupt signal, and IRP is an interrupt permission signal.

而してここでは割込要求の一つ、例えばレベル5(Le
vel 5 )がステップコントロールに割当てられる
ものとし、その要求は常にセットされる。
Here, one of the interrupt requests, for example, level 5 (Le
vel 5 ) is assigned to the step control, and its request is always set.

すなわち上記割込受付部1のレベル5の受付入力端には
ハードウェア的に常時tt 、 ppレベルの信号(割
込要求)が与えられる。
That is, the level 5 reception input terminal of the interrupt reception section 1 is always supplied with tt and pp level signals (interrupt requests) in terms of hardware.

また第2図はこの発明の一実施ψりを説明するためのメ
モリ番地上のフローを示すもので、図中、MON−Pは
モニタ(モニタプログラム)、USE−Pはユーザプロ
グラム、SPCはモニタが管理しているスレーブプログ
ラムカウンタ、EIは割込可能命令、SSRはモニタ内
のステップサービスルーチンである。
FIG. 2 shows a flow of memory addresses to explain one implementation of the present invention. In the figure, MON-P is a monitor (monitor program), USE-P is a user program, and SPC is a monitor. EI is an interruptable instruction, and SSR is a step service routine in the monitor.

ここで作用を述べると、オペレータが図示しないコンソ
ール部の所定スイッチ操作またはタイプインメツセージ
等により、ステップ実行を指定すると、モニタMON−
P内のステップサービスルーチンSSRに制御が移され
、ユーザプログラムUSE−P実行のための内部レジス
タはセイブ(待避)される。
To describe the operation here, when the operator specifies step execution by operating a predetermined switch on the console (not shown) or by typing in a message, the monitor MON-
Control is transferred to the step service routine SSR in P, and the internal registers for executing the user program USE-P are saved.

これによりスレーブプログラムカウンタSPCに指定さ
れる命令を所定のキー例えばリターンキーを操作する度
にシングルステップ実行するモードとなるものである。
This provides a mode in which a command designated by the slave program counter SPC is executed in a single step each time a predetermined key, such as the return key, is operated.

すなわちリターンキーが操作されることにより、5PC
−i番地にある命令をセイブし、その5PC−i番地に
割込可能命令EIを代入する。
In other words, by operating the return key, 5PC
Save the instruction at address -i and assign interruptible instruction EI to address 5PC-i.

次に割込マスク部2のステップコントロールに割当てら
れているレベル5割込マスクをリセットし、モニタ用内
部レジスタをセイブし、更にユーザプログラム用内部レ
ジスタをロードしてからs p c −i番地にジャン
プする。
Next, reset the level 5 interrupt mask assigned to the step control of the interrupt mask section 2, save the internal register for monitoring, load the internal register for the user program, and then transfer to address spc-i. Jump.

而して命令実行制御部4により割込可能命令EI実行後
、スレーブプログラムカウンタSPCの指定番地の命令
(被実行命令)を実行すると、命令実行制御部4から割
込制御部3へ割込許可信号IRPが送られて、割込許可
状態となり、これによりレベル5割込みが発生し、ステ
ップサービスルーチンSSRに戻る。
After the instruction execution control unit 4 executes the interruptable instruction EI, when the instruction (executed instruction) at the specified address of the slave program counter SPC is executed, the instruction execution control unit 4 grants interrupt permission to the interrupt control unit 3. Signal IRP is sent to enable interrupts, which causes a level 5 interrupt and returns to step service routine SSR.

この際オペレータの選択により他の割込みが許可されて
いる場合にはレベル5より高い割込処理が先に実行され
てから戻る。
At this time, if other interrupts are permitted by the operator's selection, the interrupt processing higher than level 5 is executed first, and then the process returns.

またこれら低いレベルの割込みは実行されない。Also, these lower level interrupts are not executed.

而してステップサービスルーチンSSRに戻ると、ユー
ザプログラム用内部レジスタをセイブし、モニタ用内部
レジスタをロードしてから、5PC−i番地の内容をも
とに戻し、種種のレジスタ、特定メモリの内容を表示し
、スレーブプログラムカウンタSPCを更新する。
Then, when returning to the step service routine SSR, the internal register for the user program is saved, the internal register for monitoring is loaded, the contents of address 5PC-i are returned to the original, and the contents of various registers and specific memory are saved. is displayed and the slave program counter SPC is updated.

而して再びリターンキーを操作することにより、上記し
た動作が繰返し実行される。
By operating the return key again, the above-described operations are repeatedly executed.

このステップ実行モードから通常の実行モードに戻す際
はオペレータが所定のスイッチ操作またはタイプインメ
ツセージによりそのモードの切換えを指示することによ
り、ステップ実行モードから通常の実行モードに移され
る。
When returning from the step execution mode to the normal execution mode, the operator instructs switching of the mode by operating a predetermined switch or by typing in a message, and the step execution mode is returned to the normal execution mode.

上記したようなステップコントロール方式を採用するこ
とにより、ハードウェア的には、割込受付部1の一つの
割込要求を例えばプルアンプ抵抗等によりtt 、 n
レベルとし、割込要求を常にセット状態としておけばよ
く、従ってハードウェアは著しく簡素化される。
By adopting the step control method as described above, in terms of hardware, one interrupt request from the interrupt reception unit 1 is processed by a pull amplifier resistor, etc.
level, and the interrupt request is always set, which greatly simplifies the hardware.

一方、ソフトウェア的には、割込マスクの処理および割
込可能命令EIの処理が増えるのみであり、ステップ数
も殆ど増加させることなく実現できる。
On the other hand, in terms of software, only the processing of the interrupt mask and the processing of the interrupt-enabled instruction EI are increased, and the number of steps can be realized with almost no increase.

以上詳記したようにこの発明によれば、モニタ制御のも
とに実行されるユーザプログラムのステップコントロー
ル方式に於いて、ユーザプログラムのステップ実行およ
びモニタリング等を簡単なハードウェア構成により実現
できるステップコントロール方式が提供できる。
As described in detail above, according to the present invention, in a step control method of a user program executed under monitor control, a step control system that can realize step execution and monitoring of a user program with a simple hardware configuration is provided. method can be provided.

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

図はこの発明の一実施例を説明するためのもので、第1
図はマイクロプロセッサのこの発明に関係する部分をブ
ロック化して示す図、第2図は実施例の動作を説明する
ためのメモリ番地上の要部フローを示す図である。 1・・・・・・割込受付部、2・・・・・・割込マスク
部、3・・・・・・割込制御部、4・・・・・命令実行
制御部、5・・・・・・メモリ制御部、MON−P・・
・・・・モニタ、USE−P・・・・・・ユーザプログ
ラム、SSR・・・・・・ステップサービスルーチン、
SPC・・・・・・スレーブプログラムカウンタ、EI
・・・・・割込可能命令。
The figure is for explaining one embodiment of this invention.
The figure is a block diagram showing the portions of the microprocessor related to the present invention, and FIG. 2 is a diagram showing the main part flow at memory addresses for explaining the operation of the embodiment. 1...Interrupt reception unit, 2...Interrupt mask unit, 3...Interrupt control unit, 4...Instruction execution control unit, 5... ...Memory control unit, MON-P...
...Monitor, USE-P...User program, SSR...Step service routine,
SPC...Slave program counter, EI
...Interruptable instruction.

Claims (1)

【特許請求の範囲】[Claims] 1 モニタプログラムの制御下で実行されるユーザプロ
グラムのステップコントロール方式に於いて、複数レベ
ルの割込受付部および各割込レベル毎の割込マスク部と
割込可能命令を実行した後の次の命令実行後、割込許可
状態となる機能とを有する処理装置を用い、この処理装
置の割込受付部にステップコントロール割込に割当てら
れる一つの割込要求を常にセント状態とする手段を設け
、モニタプログラムのステップコントロールルーチンに
於いてステップ処理を実行すべきユーザ命令の1番地手
前の内容を待避して当該番地に割込可能命令を代入し、
ステップコントロール割込ニ該当する割込マスクをリセ
ットした後、上記割込可能命令が代入された番地にジャ
ンプして割込可能命令および次番地のステップ実行すべ
きユーザ命令を実行し、このステップ実行すべきユーザ
命令実行後の割込で再びステップコントロールルーチン
に戻して上記待避した内容をもとの番地に戻すことによ
りステップコントロール処理を実行することを特徴とし
たステップコントロール方式。
1. In the step control method of a user program executed under the control of a monitor program, the interrupt reception section of multiple levels, the interrupt mask section for each interrupt level, and the next A processing device having a function of entering an interrupt enabled state after execution of an instruction is used, and a means is provided in an interrupt reception unit of the processing device to always set one interrupt request assigned to a step control interrupt to a sent state, In the step control routine of the monitor program, the contents of the first address before the user instruction to be executed for step processing are saved and an interruptible instruction is substituted at the address;
Step control interrupt After resetting the corresponding interrupt mask, jump to the address to which the above interruptible instruction is assigned, execute the interruptible instruction and the user instruction to be executed at the next address, and execute this step. A step control method characterized in that step control processing is executed by returning to the step control routine again at an interrupt after execution of a user command to be executed, and returning the saved contents to the original address.
JP53071799A 1978-06-14 1978-06-14 Step control method Expired JPS5850381B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP53071799A JPS5850381B2 (en) 1978-06-14 1978-06-14 Step control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP53071799A JPS5850381B2 (en) 1978-06-14 1978-06-14 Step control method

Publications (2)

Publication Number Publication Date
JPS54162942A JPS54162942A (en) 1979-12-25
JPS5850381B2 true JPS5850381B2 (en) 1983-11-10

Family

ID=13470961

Family Applications (1)

Application Number Title Priority Date Filing Date
JP53071799A Expired JPS5850381B2 (en) 1978-06-14 1978-06-14 Step control method

Country Status (1)

Country Link
JP (1) JPS5850381B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5130962B2 (en) * 2008-03-10 2013-01-30 富士通株式会社 Debugging support device

Also Published As

Publication number Publication date
JPS54162942A (en) 1979-12-25

Similar Documents

Publication Publication Date Title
KR920010978B1 (en) Computer system with interrupt controller
JPH02267634A (en) Interrupt system
JP2001265609A (en) Arithmetic processor
JP2655615B2 (en) Information processing device
US4095268A (en) System for stopping and restarting the operation of a data processor
EP0013740A1 (en) Data processing apparatus having a system reset capability
EP0290942B1 (en) Guest machine execution control system for virtual machine system
US5274825A (en) Microprocessor vectored interrupts
JPS5850381B2 (en) Step control method
JPS5925258B2 (en) processor control system
JPS5935451B2 (en) General purpose register access method
EP0306042B1 (en) Microprocessor vectored interrupts
JPH0264740A (en) Microprocessor
JPS6120900B2 (en)
JP2695773B2 (en) Multi CPU control method
JPS59218569A (en) Microcomputer
JP2580962B2 (en) Collective panel device
JP3085308B2 (en) Processing information management system
JPH04235604A (en) Programmable controller
JPH07182261A (en) Information processor
JPH05224894A (en) Switching system for os
JP2975094B2 (en) Control device for I / O device
JP3270040B2 (en) Bus control method
JPH0431625Y2 (en)
JPH0378067A (en) Peripheral device control system