JPH04361328A - Processing mode switching system - Google Patents

Processing mode switching system

Info

Publication number
JPH04361328A
JPH04361328A JP3137315A JP13731591A JPH04361328A JP H04361328 A JPH04361328 A JP H04361328A JP 3137315 A JP3137315 A JP 3137315A JP 13731591 A JP13731591 A JP 13731591A JP H04361328 A JPH04361328 A JP H04361328A
Authority
JP
Japan
Prior art keywords
processing
program
mode
bypass
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
JP3137315A
Other languages
Japanese (ja)
Inventor
Nobuhiko Nakamura
中村 伸彦
Kunihiro Ohata
大畑 邦弘
Atsushi Iida
淳 飯田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3137315A priority Critical patent/JPH04361328A/en
Publication of JPH04361328A publication Critical patent/JPH04361328A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To constantly prevent the processing speed of a normal processing from being lowered by constituting a program so that the switching judgement step of a processing mode can not exist in the program. CONSTITUTION:The program equipped with the plural processing modes builds in a program mechanism to simultaneously or selectively exclude (1) or to restore (2) plural bypass steps 200 by bypassing entries to the respective processing modes according to a branching instruction 200. Namely, in the normal mode, it is programmed to bypass the routine of the specified processing mode according to the branching instruction 200 so that the processing of the added specified mode, for example, can not be passed. When an instruction is applied to execute a mode switching or adding function, the excluding program (1) is executed to exclude the branching instruction for bypass, to replace it with a no operation (NOP) instruction 100 and to start a requested processing mode 101.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】最近の情報処理装置の情報処理の
多様化等に伴い、例えば、制御プログラム等において、
通常の処理モード以外に、他の処理モード,又は、処理
プログラムを追加して動作させることが多くなってきて
おり、このような場合、従来方式においては、該当する
処理モード,又は、特定の処理プログラムへのエントリ
ステップにおいて、判断ステップを必要とし、定常的に
通常処理の処理速度が低下する問題があり、通常処理で
の処理速度の低下の少ない処理モード切り替え方式が必
要とされる。
[Field of industrial application] With the recent diversification of information processing in information processing devices, for example, in control programs, etc.
In addition to the normal processing mode, other processing modes or processing programs are often added and operated, and in such cases, in the conventional method, the corresponding processing mode or specific processing A determination step is required at the entry step to the program, and there is a problem that the processing speed of normal processing constantly decreases.Therefore, there is a need for a processing mode switching method that does not reduce the processing speed of normal processing.

【0002】0002

【従来の技術】図5は、従来の処理モード切り替え方式
を説明する図である。従来方式においては、本図に示さ
れているように、判断ステップ 90 において、特定
の処理モードが要求されているか否かを判断し、要求さ
れていた場合には、要求されたモード処理 101に移
り、要求されていない場合には、例えば、分岐命令で「
LABEL 」で示すラベルが付加されている処理に分
岐するといった構成をとっていた。しかも、このような
判断ステップ 90が、該制御プログラム中の各所に存
在しているのが通常のプログラム構成であった。
2. Description of the Related Art FIG. 5 is a diagram illustrating a conventional processing mode switching method. In the conventional method, as shown in the figure, in a judgment step 90 it is determined whether a specific processing mode is requested, and if so, the requested mode processing 101 is performed. If the branch instruction is not requested, e.g.
The configuration was such that the process branches to the process to which the label indicated by ``LABEL'' is attached. Moreover, in the normal program configuration, such judgment step 90 exists at various places in the control program.

【0003】0003

【発明が解決しようとする課題】従って、特定の処理モ
ードが要求されない定常処理でも、各所に存在する上記
判断ステップ 90 を実行する必要があり、定常的に
、通常処理の速度が低下するという問題があった。
[Problem to be Solved by the Invention] Therefore, even in regular processing that does not require a specific processing mode, it is necessary to execute the above judgment step 90 that exists in various places, and the speed of normal processing is constantly reduced. was there.

【0004】本発明は上記従来の欠点に鑑み、複数の処
理モードを備えたプログラムにおいて、プログラム中に
処理モードの切り替え判断ステップが存在しないように
プログラムを構成し、通常処理時のプログラムと,特定
の処理モードのプログラム間を切り替えるプログラム機
構を内蔵する処理モード切り替え方式を提供することを
目的とするものである。
In view of the above-mentioned conventional drawbacks, the present invention configures a program having a plurality of processing modes so that there is no processing mode switching judgment step in the program, and distinguishes between a program during normal processing and a specific processing mode. An object of the present invention is to provide a processing mode switching method that includes a built-in program mechanism for switching between programs of processing modes.

【0005】[0005]

【課題を解決するための手段】図1は、本発明の原理構
成図であり、(a) は復元プログラム■が実行された
場合を示し、(b) は削除プログラム■が実行された
場合を示している。上記の問題点は下記の如くに構成し
た処理モード切り替え方式によって解決される。
[Means for Solving the Problems] Figure 1 is a diagram showing the principle of the present invention, in which (a) shows the case where the restoration program ■ is executed, and (b) shows the case where the deletion program ■ is executed. It shows. The above problem is solved by a processing mode switching method configured as follows.

【0006】複数の処理モードを備えたプログラムにお
いて、各処理モードへのエントリを、分岐命令 200
でバイパスすることにより実現し、該バイパスステップ
 200を同時に複数, 又は、選択的に、削除{具体
的には、分岐命令を無実行(NOP) 命令へ置き替え
る処理}■, 又は、復元{具体的には、上記置き替え
られている無実行(NOP) 命令を元の分岐命令に戻
す処理}■するプログラム機構を内蔵しておき、例えば
、操作者によって、該削除, 復元指示を入力すること
により、自動的に、該削除/復元処理を実行して、プロ
グラム中に、余計な判断ステップの無いようにする。
In a program with multiple processing modes, entry to each processing mode is performed using a branch instruction 200.
This is achieved by bypassing the bypass step 200 at the same time, or selectively, by deleting the bypass step 200 {specifically, replacing a branch instruction with a no-execute (NOP) instruction}, or by restoring {specifically In particular, it has a built-in program mechanism that returns the replaced no-execute (NOP) instruction to its original branch instruction, and for example, the operator inputs instructions for deletion and restoration. This automatically executes the deletion/restore process, thereby eliminating unnecessary judgment steps in the program.

【0007】[0007]

【作用】即ち、本発明の処理モード切り替え方式におい
ては、通常モード時には、例えば、追加されている特定
モードの処理を通らないように、分岐命令 200で、
該特定の処理モードのルーチンをバイパスするようにプ
ログラムされている。{図1(a)のプログラム構造参
照}然しながら、モード切り替え,或いは、追加機能を
実行する指示が与えられた場合には、削除プログラム■
が実行されることにより、上記バイパスの為の分岐命令
を削除して、無実行(NOP) 命令に置き換えられ、
要求された処理モードに入るようになる。
[Operation] That is, in the processing mode switching method of the present invention, in the normal mode, for example, the branch instruction 200 is used to avoid passing through the added specific mode processing.
Programmed to bypass routines for that particular processing mode. {Refer to the program structure in Figure 1(a)} However, if an instruction to switch modes or execute additional functions is given, the deletion program ■
is executed, the branch instruction for the above-mentioned bypass is deleted and replaced with a no-execute (NOP) instruction,
The requested processing mode will be entered.

【0008】同様に、処理モードの復元, 或いは、追
加機能の削除が指示された場合には、復元プログラム■
が実行されることにより、上記削除されていた分岐命令
を、元のプログラム位置に設定し、該特定の処理モード
のルーチンを、上記分岐命令 200でバイパスするよ
うに機能する。
Similarly, when an instruction is given to restore the processing mode or delete additional functions, the restoration program
is executed to set the deleted branch instruction at its original program location and to bypass the routine of the particular processing mode with the branch instruction 200.

【0009】従って、本発明によれば、例えば、ユーザ
の指示に従い、内蔵されている、削除プログラム■, 
或いは、復元プログラム■を実行することにより、特定
の処理モードへの切り替え, 機能の追加、或いは、バ
イパスができ、通常処理の処理速度を低下させることな
く、モード切り替え, 機能追加ができるという効果が
ある。
Therefore, according to the present invention, for example, the built-in deletion program ■,
Alternatively, by running the restoration program ■, you can switch to a specific processing mode, add functions, or bypass it, and you can switch modes and add functions without reducing the processing speed of normal processing. be.

【0010】0010

【実施例】以下本発明の実施例を図面によって詳述する
。前述の図1は、本発明の原理構成図であり、図2, 
図3は本発明の一実施例を示した図であって、図2は削
除プログラム■の例(a1)と、削除後のプログラム状
態(a2)を示し、図3はバイパス復元プログラムの例
(b1)と復元後のプログラム状態(b2)を示してお
り、図4は本発明の他の実施例を示した図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Examples of the present invention will be described below in detail with reference to the drawings. The above-mentioned FIG. 1 is a diagram showing the principle configuration of the present invention, and FIG.
FIG. 3 is a diagram showing an embodiment of the present invention. FIG. 2 shows an example (a1) of the deleted program (a1) and the program state after deletion (a2), and FIG. 3 shows an example of the bypass restoration program (a2). b1) and the program state after restoration (b2), and FIG. 4 is a diagram showing another embodiment of the present invention.

【0011】本発明においては、複数の処理モードを備
えたプログラムにおいて、各処理モードへのエントリを
、分岐命令 200でバイパスすることにより実現し、
該バイパスステップ 200を同時に複数, 又は、選
択的に、削除{具体的には、分岐命令を無実行(NOP
) 命令へ置き替える処理}■, 又は、復元{具体的
には、上記置き替えられている無実行(NOP) 命令
を元の分岐命令に戻す処理}■するプログラム機構を内
蔵しておき、例えば、操作者によって、該削除, 復元
指示を入力することにより、自動的に、該削除/復元処
理(プログラム)を実行して、プログラム中に、余計な
判断ステップ 90 の無いようする手段が、必要な手
段である。尚、全図を通して同じ符号は同じ対象物を示
している。
In the present invention, in a program having a plurality of processing modes, entry to each processing mode is achieved by bypassing the branch instruction 200,
Delete a plurality of the bypass steps 200 at the same time or selectively {specifically, delete a branch instruction without execution (NOP)
) A built-in program mechanism for replacing the replaced instruction with an instruction}■, or restoration {specifically, a process of returning the replaced no-execute (NOP) instruction to the original branch instruction}■, for example. There is a need for a means to automatically execute the deletion/restore process (program) by inputting the deletion/restore instructions by the operator, thereby eliminating unnecessary judgment steps in the program. It is a method. Note that the same reference numerals indicate the same objects throughout the figures.

【0012】以下、図1を参照しながら、図2〜図4に
よって、本発明の処理モード切り替え方式を説明する。 前述の図1に示したように、本発明によるプログラムに
おいては、特定の処理モードが要求されていない場合に
は、分岐命令 200によって、直接的に、該特定の処
理モードの処理ルーチン 101がバイパスされている
プログラム構造となっている。
The processing mode switching method of the present invention will be explained below with reference to FIGS. 2 to 4 while referring to FIG. As shown in FIG. 1 described above, in the program according to the present invention, if a specific processing mode is not requested, the processing routine 101 of the specific processing mode is directly bypassed by the branch instruction 200. The program structure is as follows.

【0013】従って、該特定のモードの処理 101を
行いたい場合には、ユーザが、バイパスの削除の指示を
行う。具体的には、例えば、処理したいモードの名称 
(或いは、アドレス) を指定して、特定のコマンドを
投入する。そうすると、図2(a1)に示した削除プロ
グラム■が実行される。
[0013] Therefore, if the user desires to perform the process 101 in the particular mode, the user issues an instruction to delete the bypass. Specifically, for example, the name of the mode you want to process
(or address) and input a specific command. Then, the deletion program (2) shown in FIG. 2(a1) is executed.

【0014】処理ステップ 300:バイパス用の分岐
命令のアドレスを取り出す。 処理ステップ 301:分岐命令のアドレスに、無実行
(NOP) 命令を書き込む。 処理ステップ 302:分岐命令が格納されていたアド
レスを、特定の領域に退避する。
Process step 300: Retrieve the address of the branch instruction for bypass. Processing step 301: Write a no-execute (NOP) instruction to the address of the branch instruction. Processing step 302: The address where the branch instruction was stored is saved to a specific area.

【0015】この削除プログラム■を実行すると、所望
のプログラムは、(a2)に示した状態となり、該無実
行(NOP) 命令を実行した後、要求したモードの処
理 101に入ることができるようになる。
When this deletion program (■) is executed, the desired program will be in the state shown in (a2), and after executing the no-execute (NOP) instruction, it will be possible to enter the requested mode of processing 101. Become.

【0016】又、上記特定のモードの処理 101を実
行した後、通常処理に戻りたい場合には、ユーザが、復
元の指示を行う。具体的には、例えば、バイパスしたい
モードの名称 (或いは、アドレス) を指定して、特
定のコマンドを投入する。そうすると、図2(b1)に
示した復元プログラムが実行される。
[0016] Furthermore, if the user wishes to return to normal processing after executing the above-mentioned specific mode processing 101, the user issues a restoration instruction. Specifically, for example, specify the name (or address) of the mode you want to bypass and input a specific command. Then, the restoration program shown in FIG. 2(b1) is executed.

【0017】処理ステップ 400:特定の領域に退避
されている分岐命令のアドレスを読み出す。 処理ステップ 401:該読み出したアドレスの位置に
、元の分岐命令 200を書き込む。
Processing step 400: Read the address of the branch instruction saved in a specific area. Processing step 401: Write the original branch instruction 200 at the read address position.

【0018】処理ステップ 402:元の分岐命令 2
00の分岐先アドレスを書き込む。但し、この処理ステ
ップは、所望のプログラムが走行するプロセッサの内部
構造によっては必ずしも必要なものではない。即ち、上
記ステップ 401の処理で、分岐先のアドレスも指定
されている分岐命令が書き込まれていればよい。
Processing step 402: Original branch instruction 2
Write the branch destination address of 00. However, this processing step is not necessarily necessary depending on the internal structure of the processor on which the desired program runs. That is, it is only necessary that a branch instruction that also specifies a branch destination address has been written in the process of step 401 above.

【0019】この復元プログラム■を実行すると、実行
プログラムは、(b2)に示した状態となり、分岐命令
 200により、特定のモードの処理ルーチン 101
はバイパスされる。  従って、上記削除プログラム■
/復元プログラム■を選択的に指示して実行することに
より、通常処理において、前述の判断ステップ 90 
の存在しないプログラムを得ることができ、該通常処理
の処理速度を向上させることができる。
When this restoration program (2) is executed, the execution program enters the state shown in (b2), and a specific mode processing routine 101 is executed by a branch instruction 200.
is bypassed. Therefore, the above deletion program■
By selectively instructing and executing the restoration program ■, the above-mentioned judgment step 90 can be carried out in normal processing.
It is possible to obtain a program that does not exist, and the processing speed of the normal processing can be improved.

【0020】次に、図4において、プログラム中の、複
数の箇所に、モード切り替えが存在する場合の処理モー
ド切り替え方式を説明する。ユーザからのコマンド投入
において、複数回のバイパス削除,又は、復元処理の指
示がなされると、該指示された複数回のバイパス削除,
又は、復元処理が繰り返される。即ち、処理ステップ 
500:バイパスアドレス(又は、復元アドレス)テー
ブルを取り出す。
Next, referring to FIG. 4, a processing mode switching method will be described when mode switching exists at a plurality of locations in a program. When a user inputs a command and instructs multiple bypass deletions or restoration processing, the specified multiple bypass deletions or
Alternatively, the restoration process is repeated. That is, the processing step
500: Retrieve bypass address (or restoration address) table.

【0021】処理ステップ 501:上記の取り出した
バイパスアドレス(又は、復元アドレス)テーブルに基
づいて、複数箇所のバイパス削除処理,又は、復元処理
を実行する。
Processing step 501: Based on the extracted bypass address (or restoration address) table, bypass deletion processing or restoration processing is executed at a plurality of locations.

【0022】処理ステップ 502:該バイパスアドレ
ス(又は、復元アドレス)テーブルで指示されているバ
イパス(復元)アドレスを全てについて、バイパス削除
処理/復元処理をしたかどうかを見て、未だ、残ってい
る場合には処理ステップ 500に戻る。
[0022] Processing step 502: It is checked whether all the bypass (restored) addresses specified in the bypass address (or restored address) table have been subjected to bypass deletion processing/restoration processing, and if any still remain. If so, the process returns to step 500.

【0023】このようにして、プログラム中に存在する
複数箇所のバイパス削除処理/復元処理を一つのコマン
ド指示で実行することができる。上記の実施例において
は、ユーザが特定のコマンドを投入することで、上記バ
イパス削除処理/復元処理の実行を指示する例で説明し
たが、記憶領域中に、複数個のモード切り替え指示ビッ
トを備えている場合等においては、ユーザが、予め、ラ
イトコマンドで、該モード切り替え指示ビットの内容を
書き替えておき、且つ、バイパス削除/復元を指示する
ことにより、当該情報処理装置に対する電源投入等を契
機に、上記バイパス削除/復元プログラムが起動され、
該モード切り替え指示ビットを参照して、指示されてい
る箇所のモードのバイパス削除/復元を行うようにする
こともできる。
[0023] In this way, bypass deletion processing/restoration processing at a plurality of locations in a program can be executed with a single command instruction. In the above embodiment, an example was explained in which the user inputs a specific command to instruct execution of the bypass deletion process/restore process. In such cases, the user can rewrite the contents of the mode switching instruction bit using a write command in advance, and then instruct bypass deletion/restore to turn on the power to the information processing device, etc. Taking this opportunity, the above bypass deletion/restore program is started.
It is also possible to refer to the mode switching instruction bit and delete/restore the bypass of the specified mode.

【0024】従って、該バイパス削除/復元処理プログ
ラムを起動する手段は、特に、限定するものではない。
[0024] Therefore, the means for activating the bypass deletion/restoration processing program is not particularly limited.

【0025】[0025]

【発明の効果】以上、詳細に説明したように、本発明の
処理モードの切り替え方式は、複数の処理モードを備え
たプログラムにおいて、各処理モードへのエントリを、
分岐命令でバイパスすることにより実現し、該バイパス
ステップを同時に複数, 又は、選択的に、削除, 又
は、復元するプログラム機構を内蔵するようにしたもの
であるので、通常処理における処理速度が向上し、複数
の処理モードを選択的にバイパス削除/復元することに
より、様々な処理モードの切り替えを容易に実現するこ
とができる効果がある。
Effects of the Invention As described above in detail, the processing mode switching method of the present invention allows entry into each processing mode to be performed in a program having a plurality of processing modes.
This is achieved by bypassing with a branch instruction, and has a built-in program mechanism that simultaneously or selectively deletes or restores multiple bypass steps, improving processing speed in normal processing. By selectively bypassing and deleting/restoring a plurality of processing modes, it is possible to easily switch between various processing modes.

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

【図1】本発明の原理構成図[Figure 1] Principle configuration diagram of the present invention

【図2】本発明の一実施例を示した図(その1)[Fig. 2] Diagram showing one embodiment of the present invention (Part 1)

【図3
】本発明の一実施例を示した図(その2)
[Figure 3
] Diagram showing an embodiment of the present invention (Part 2)

【図4】本発
明の他の実施例を示した図
FIG. 4 is a diagram showing another embodiment of the present invention.

【図5】従来の処理モード切
り替え方式を説明する図
[Figure 5] Diagram explaining a conventional processing mode switching method

【符号の説明】[Explanation of symbols]

90      判断ステップ 90 Judgment step

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数の処理モードを備えたプログラムにお
いて、各処理モードへのエントリを、分岐命令(200
) でバイパスすることにより実現し、該バイパスステ
ップ(200) を同時に複数, 又は、選択的に、削
除(■),又は、復元 (■) するプログラム機構を
内蔵することを特徴とする処理モード切り替え方式。
Claim 1: In a program with multiple processing modes, entry to each processing mode is performed using a branch instruction (200
), and is characterized by having a built-in program mechanism for simultaneously or selectively deleting (■) or restoring (■) the bypass step (200). method.
JP3137315A 1991-06-10 1991-06-10 Processing mode switching system Pending JPH04361328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3137315A JPH04361328A (en) 1991-06-10 1991-06-10 Processing mode switching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3137315A JPH04361328A (en) 1991-06-10 1991-06-10 Processing mode switching system

Publications (1)

Publication Number Publication Date
JPH04361328A true JPH04361328A (en) 1992-12-14

Family

ID=15195814

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3137315A Pending JPH04361328A (en) 1991-06-10 1991-06-10 Processing mode switching system

Country Status (1)

Country Link
JP (1) JPH04361328A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000322251A (en) * 1999-04-23 2000-11-24 Internatl Business Mach Corp <Ibm> Application managing method
JP2005044347A (en) * 2003-07-23 2005-02-17 Microsoft Corp Description language for extensible compiler and tools infrastructure
JP2019159852A (en) * 2018-03-13 2019-09-19 富士電機株式会社 Information processing apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000322251A (en) * 1999-04-23 2000-11-24 Internatl Business Mach Corp <Ibm> Application managing method
JP2005044347A (en) * 2003-07-23 2005-02-17 Microsoft Corp Description language for extensible compiler and tools infrastructure
JP2019159852A (en) * 2018-03-13 2019-09-19 富士電機株式会社 Information processing apparatus

Similar Documents

Publication Publication Date Title
JPH04361328A (en) Processing mode switching system
JPH0651989A (en) Fast loading system of operating system in computer system
JP2555920B2 (en) Online real-time processor
JPS58151663A (en) Switching system of system file
JPH06110884A (en) Editing device
JPH03237529A (en) Memory maintenance system dependent upon online of information processor
JPH05224707A (en) Program changing method for programmable controller
KR960012658B1 (en) Information processing system
JPH02189631A (en) Patch data storage system
JP2887488B2 (en) Multi-process processing equipment
JP2643839B2 (en) Completion method at the time of command input
JPH0322152A (en) File restoring system
JPH064477A (en) Subload-module replacing system
JPH0235548A (en) Electronic computer
JPS61272828A (en) Data processor
JPH04338852A (en) File transfer program with interruption restart mechanism
JPH03242704A (en) Nc data generating method
JPH04260943A (en) Trace output system
JPS6019250A (en) Control system for processed document name record of document processing system
JPH05173766A (en) Program managing system
JPH03233634A (en) Job reprocessing system
JPH01185729A (en) Overlay structure program execution system
JPH04160439A (en) Group processor for file
JPH0651990A (en) System initial loading system of operating system in computer system
JPH04148427A (en) Program patch system