JPH03204031A - System for suppressing execution of program - Google Patents

System for suppressing execution of program

Info

Publication number
JPH03204031A
JPH03204031A JP1342913A JP34291389A JPH03204031A JP H03204031 A JPH03204031 A JP H03204031A JP 1342913 A JP1342913 A JP 1342913A JP 34291389 A JP34291389 A JP 34291389A JP H03204031 A JPH03204031 A JP H03204031A
Authority
JP
Japan
Prior art keywords
address
subroutine
program
selector
instruction
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
JP1342913A
Other languages
Japanese (ja)
Inventor
Kiyoshi Shimura
清 志村
Minoru Fujiwara
稔 藤原
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.)
NEC Corp
NEC Software Shikoku Ltd
Original Assignee
NEC Corp
NEC Software Shikoku 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 NEC Corp, NEC Software Shikoku Ltd filed Critical NEC Corp
Priority to JP1342913A priority Critical patent/JPH03204031A/en
Publication of JPH03204031A publication Critical patent/JPH03204031A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To shorten the processing time in the suppressing system by applying a return address of a subroutine to a fetch address of the next instruction of a CPU with the detection output when the address of a subroutine jumping instruction is detected. CONSTITUTION:A CPU 1 executes a subroutine jumping instruction to a program address where the selection output is obtained via an address selection circuit 7. Under such conditions, no signal is applied to a selector 3 as long as a switch 6 is turned off and an AND gate 2 is closed. Then the processing is carried out with a jump given to the subroutine. When the switch 6 is turned on and the gate 2 is opened, a control signal is applied to the selector 3 and the fixed data is given to the CPU 1 from a fixed data circuit 5. Since this fixed data is set to a return address of the subroutine, the due subroutine is not processed and the processing of only a main program is carried on.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム実行抑止方式、特に指示により、メ
インのプログラムに設けられた特定のサブルーチンプロ
グラムの実行を行なわないプログラム実行抑止方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program execution inhibiting method, and particularly to a program execution inhibiting method in which a specific subroutine program provided in a main program is not executed according to an instruction.

〔従来の技術〕[Conventional technology]

情報処理装置における保守機能として、メインのプログ
ラムの実行履歴を採取したい場合等に、メインのプログ
ラムの一部にサブルーチンとして設けられた実行履歴採
取プログラムを実行するものがある。しかしこの実行履
歴採取プログラムは、通常の処理時には処理時間を短縮
するために実行を抑止させることが多い。従来、この抑
止のためにメインのプログラムに、上位装置その他操作
板等からの指示で値を変えることのできるビジプルスイ
ッチを設け、中央処理装置がこのスイッチの値を読込ん
で、抑止するか実行するかの判定を行なう実行抑止方式
を採っている。
2. Description of the Related Art As a maintenance function in an information processing apparatus, when it is desired to collect the execution history of a main program, there is a function that executes an execution history collection program provided as a subroutine in a part of the main program. However, this execution history collection program often inhibits execution during normal processing in order to shorten processing time. Conventionally, to prevent this, the main program has a visible switch whose value can be changed by instructions from a host device or other operation panel, and the central processing unit reads the value of this switch and either suppresses or executes the action. The system uses an execution suppression method that determines whether or not to proceed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のプログラム実行抑止方式は、ビジプルス
イッチの値を読込む、判定する、あるいは復帰するとい
う少なくとも3命令以上の動作が必要であり、頻繁に抑
止するかどうかの判定が行なわれる場合には、抑止の判
定処理が大きなオーバヘッドになるという欠点がある。
The conventional program execution suppression method described above requires at least three instructions, such as reading, determining, or returning the value of a visible switch, and is difficult to use when it is frequently determined whether to suppress program execution. The disadvantage of this method is that the processing for determining whether to suppress it requires a large amount of overhead.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のプログラム実行抑止方式は、外部からの指示に
よりメインのプログラムに設けられた特定のサブルーチ
ンプログラムの実行を抑止する情報処理装置において、
前記外部からの指示を保持する切換手段と、前記特定の
サブルーチンプログラムへのサブルーチンジャンプ命令
のアドレスを検出するアドレス選択回路と、前記特定の
サブルーチンプログラムのリターンアドレスを保持する
固定記憶回路と、プログラムを格納するメモリ回路と前
記固定記憶回路との何れかのデータをセレクトして中央
処理装置に与えるセレクタと、前記アドレス選択回路か
らの検出信号を前記切換手段の出力によって制御してセ
レクタの制御入力に与えるゲート手段とを有することに
より構成される。
The program execution suppression method of the present invention suppresses execution of a specific subroutine program provided in a main program in response to an external instruction in an information processing apparatus.
a switching means for holding the instruction from the outside; an address selection circuit for detecting the address of a subroutine jump instruction to the specific subroutine program; a fixed storage circuit for holding the return address of the specific subroutine program; a selector that selects data from either the memory circuit to be stored or the fixed storage circuit and supplies the selected data to the central processing unit; and a detection signal from the address selection circuit that is controlled by the output of the switching means and input to the control input of the selector. and gate means for providing.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例のブロック図で、中央処理装
置(以下CPUという)1にデータバス8が接続され、
データバス8にセレクタ3が接続され、セレクタ3には
別に2つのデータバスが接続され、一方のデータバス9
にはプログラムを格納するメモリ回路4が、他方のデー
タバスには予め設定した固定データを出力する固定記憶
回路5が接続されている。一方、CPUIからのアドレ
スバスに接続されたアドレス選択回路7の出力線と電源
Vccに接続されたスイッチ6の出力線とがアンドゲー
ト2に入力され、アンドゲート2の出力線がセレクタ3
の制御線となっている。
FIG. 1 is a block diagram of an embodiment of the present invention, in which a data bus 8 is connected to a central processing unit (hereinafter referred to as CPU) 1,
A selector 3 is connected to the data bus 8, and two other data buses are connected to the selector 3, one of which is the data bus 9.
A memory circuit 4 for storing a program is connected to one bus, and a fixed storage circuit 5 for outputting fixed data set in advance is connected to the other data bus. On the other hand, the output line of the address selection circuit 7 connected to the address bus from the CPU and the output line of the switch 6 connected to the power supply Vcc are input to the AND gate 2, and the output line of the AND gate 2 is input to the selector 3.
This is the control line.

以上の構成において、CPUIがアドレス選択回路7で
選択出力が得られるプログラムアドレスへのサブルーチ
ンジャンプ命令を実行したとする。
Assume that in the above configuration, the CPUI executes a subroutine jump instruction to a program address from which a selected output is obtained by the address selection circuit 7.

このときスイッチ6がオフになっていてアンドゲート2
が閉成されていると、セレクタ3には制御信号が与えら
れず、CPUIは上記の選択出力に関係なくサブルーチ
ンにジャンプして処理が行なわれる。次に、スイッチ6
がオンになっていてアンドゲート2が開放されていると
、セレクタ3には制御信号が与えられて、CPUIには
固定データ回路5からの固定データが与えられる。この
固定データはサブルーチンのリターンアドレスに設定し
であるので、実行しようとされたサブルーチンの処理を
行なわず、メインのプログラムのみの処理を進めること
になる。即ちスイッチ6のオンによってサブルーチンの
実行が抑止されることになる。
At this time, switch 6 is off and AND gate 2
If the selector 3 is closed, no control signal is given to the selector 3, and the CPU jumps to a subroutine to perform processing regardless of the above selection output. Next, switch 6
is on and the AND gate 2 is open, a control signal is given to the selector 3, and fixed data from the fixed data circuit 5 is given to the CPUI. Since this fixed data is set at the return address of the subroutine, the subroutine that is about to be executed will not be processed, and only the main program will be processed. That is, by turning on switch 6, execution of the subroutine is inhibited.

以上の実施例ではスイッチ6は直接人手によるものとし
たが、上位装置からの指令で動作させても一向に掬わな
い。またアドレス選択回路7はサブルーチンジャンプ命
令のアドレスを選択するものとしたが、サブルーチンジ
ャンプ命令のアドレスが特定のアドレス線の論理値で決
まる場合には、このアドレス線を直接アンドゲート2に
入力しても一向に掬わない。
In the above embodiment, the switch 6 was operated directly by hand, but even if it is operated by a command from a host device, it will not be turned off at all. Further, the address selection circuit 7 is designed to select the address of the subroutine jump instruction, but if the address of the subroutine jump instruction is determined by the logical value of a specific address line, this address line may be input directly to the AND gate 2. It doesn't scoop at all.

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

以上説明したように本発明は、サブルーチンジャンプ命
令のアドレスを検出したとき、サブルーチンの実行を抑
止する指示がなされていれば、この検出出力によって、
中央処理装置の次の命令のフェッチアドレスにサブルー
チンのリターンアドレスを与える手段を有することによ
り、切換用のデータの読込み、および切換可否の判定処
理なしにプログラムの実行を抑止することができ、処理
時間の短縮が図れるという効果がある。
As explained above, in the present invention, when the address of a subroutine jump instruction is detected, if an instruction to suppress execution of the subroutine has been given, this detection output allows
By having means for giving the return address of the subroutine to the fetch address of the next instruction of the central processing unit, program execution can be inhibited without reading data for switching and determining whether switching is possible, thereby reducing processing time. This has the effect of shortening the time.

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

第1図は本発明の一実施例のブロック図である。 FIG. 1 is a block diagram of one embodiment of the present invention.

Claims (1)

【特許請求の範囲】[Claims]  外部からの指示によりメインのプログラムに設けられ
た特定のサブルーチンプログラムの実行を抑止する情報
処理装置において、前記外部からの指示を保持する切換
手段と、前記特定のサブルーチンプログラムへのサブル
ーチンジャンプ命令のアドレスを検出するアドレス選択
回路と、前記特定のサブルーチンプログラムのリターン
アドレスを保持する固定記憶回路と、プログラムを格納
するメモリ回路と前記固定記憶回路との何れかのデータ
をセレクトして中央処理装置に与えるセレクタと、前記
アドレス選択回路からの検出信号を前記切換手段の出力
によって制御してセレクタの制御入力に与えるゲート手
段とを有することを特徴とするプログラム実行抑止方式
In an information processing device that suppresses execution of a specific subroutine program provided in a main program based on an external instruction, switching means for retaining the external instruction and an address of a subroutine jump instruction to the specific subroutine program are provided. an address selection circuit that detects the return address of the specific subroutine program, a fixed memory circuit that holds the return address of the specific subroutine program, a memory circuit that stores the program, and data from either of the fixed memory circuit and the selected data and provides the selected data to the central processing unit. A program execution inhibiting method comprising: a selector; and gate means for controlling a detection signal from the address selection circuit by the output of the switching means and applying it to a control input of the selector.
JP1342913A 1989-12-29 1989-12-29 System for suppressing execution of program Pending JPH03204031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1342913A JPH03204031A (en) 1989-12-29 1989-12-29 System for suppressing execution of program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1342913A JPH03204031A (en) 1989-12-29 1989-12-29 System for suppressing execution of program

Publications (1)

Publication Number Publication Date
JPH03204031A true JPH03204031A (en) 1991-09-05

Family

ID=18357492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1342913A Pending JPH03204031A (en) 1989-12-29 1989-12-29 System for suppressing execution of program

Country Status (1)

Country Link
JP (1) JPH03204031A (en)

Similar Documents

Publication Publication Date Title
JP3226055B2 (en) Information processing device
JP2677458B2 (en) System call execution device
JPH03204031A (en) System for suppressing execution of program
JP3956305B2 (en) Nonvolatile semiconductor memory device and data processing device
JPH05241827A (en) Command buffer controller
KR100277901B1 (en) One chip micro computer
JP2504191B2 (en) Microprocessor
KR101236393B1 (en) Electric device and control method thereof
KR960038568A (en) Computer power consumption prevention device and control method
JPH0211933B2 (en)
JP2506591B2 (en) Auxiliary processor
JPH1139159A (en) Computer system
JPS5839343A (en) Initial starting device for plural systems
JPS60126731A (en) Program control method
JPH0772908A (en) Programmable controller
JPH0795288B2 (en) Microcomputer
JPH09325935A (en) Bus switching circuit
JPH04311225A (en) System for executing microprocessor instruction
JPH04167146A (en) Address tracing system for information processor
JPS60105048A (en) Microprogram control system
JPS595931B2 (en) Address stop method for arithmetic processing system
JPH0150936B2 (en)
JPS62209641A (en) Converting circuit for bank memory address
JPH06301536A (en) Instruction fetching device of information processor
JPH02220143A (en) Personal computer system