JPS63282526A - System for controlling electronic computer - Google Patents

System for controlling electronic computer

Info

Publication number
JPS63282526A
JPS63282526A JP11781787A JP11781787A JPS63282526A JP S63282526 A JPS63282526 A JP S63282526A JP 11781787 A JP11781787 A JP 11781787A JP 11781787 A JP11781787 A JP 11781787A JP S63282526 A JPS63282526 A JP S63282526A
Authority
JP
Japan
Prior art keywords
contents
address register
jump destination
execution
destination 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.)
Pending
Application number
JP11781787A
Other languages
Japanese (ja)
Inventor
Tomoko Tsuchida
智子 土田
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
Original Assignee
NEC Corp
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 filed Critical NEC Corp
Priority to JP11781787A priority Critical patent/JPS63282526A/en
Publication of JPS63282526A publication Critical patent/JPS63282526A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To speed up processing by comparing the contents of a jump destination address register with the contents of the execution address of an electronic computer every time an instruction is executed, and rewriting the contents of the execution address of the electronic computer into the contents of the jump destination address register when they match with each other and quitting the comparison thereafter. CONSTITUTION:A comparator 3 compares the contents of the jump destination address register 11 with the contents of an execution address register (PC) 2 every time an instruction is reset and a selecting circuit 7 selects the jump destination address register 12 to rewrite the contents of the execution address register (PC) 2. Further, while the flip-flop 5 is set, a PC update control part 6 updates the execution address in the execution address register (PC) 2 unless the coincidence between the addresses is obtained. When the flip-flop 5 is reset, the comparison processing is not performed. Consequently, the execution speed of the electronic computer is increased.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、電子計算機制御方式に関し、特に1条件分岐
命令の機能に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an electronic computer control system, and particularly to the function of a one-conditional branch instruction.

〔従来の技術〕[Conventional technology]

従来の条件分岐命令に関する電子計算機制御方式は、条
件が成立した場合に分岐するのみであり、第2図のよう
な分岐の流れの場合、判断21で条件が成立したときは
処理22をとばすように分岐するが、第3図のような場
合には直列なプログラムとして記述すると第4図の如く
なる。すなわち、判断31により条件が成立したときは
処理32をとげして処理33を行い、条件不成立のとき
は処理32が終ったあとで、処理33をとばすためにも
う1回分岐命令を実行しなければならないため、プログ
ラムが繁雑になって電子計算機の性能を下げる要因とな
っていた。
Conventional electronic computer control systems for conditional branch instructions only branch when a condition is met, and in the case of a branch flow as shown in Figure 2, if the condition is met in judgment 21, processing 22 is skipped. However, in the case shown in FIG. 3, if it is written as a serial program, the result will be as shown in FIG. 4. That is, if the condition is satisfied in judgment 31, processing 32 is skipped and processing 33 is executed, and if the condition is not satisfied, another branch instruction must be executed after processing 32 is completed to skip processing 33. As a result, the program became complicated and became a factor that reduced the performance of electronic computers.

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

上述した従来の電子計算機制御方式では、条件分岐命令
を実行するとき、条件が成立した場合に分岐するだけと
なっているので、条件成立の場合には1の処理を行い、
条件不成立のときは2の処理を行いたいような場合には
、条件不成立で2の処理を行ったあとで1の処理をとば
すために1さらに分岐命令を使わなければならないとい
う欠点があった。
In the above-mentioned conventional computer control system, when executing a conditional branch instruction, the branch is only executed when the condition is met, so if the condition is met, the process 1 is performed.
If you want to perform process 2 when the condition is not met, there is a drawback that after performing process 2 when the condition is not met, you must use a further branch instruction to skip process 1.

また、このため上記の様な流れのプログラムを作成する
際、プログラマに負担がかかるという欠点があった。
Furthermore, this has the disadvantage of placing a burden on the programmer when creating a program with the flow described above.

本発明の目的は、上記欠点を除去し電子計算機の実行速
度を早め、又、プログラム作成効率を高めることのでき
る電子計算機制御方式を提供することKある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an electronic computer control method that can eliminate the above-mentioned drawbacks, increase the execution speed of an electronic computer, and improve program creation efficiency.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

本発明の電子計算機制御方式は、分岐先アドレスを保持
する2つの飛び先アドレスレジスタ1および2と、この
飛び先アドレスレジスタ2の内容と電子計算機の実行ア
ドレスの内容とを比較する比較器と、条件分岐命令で条
件不成立のときは、1命令実行ごとに前記比較器による
比較を行って一致を検出した時に前記電子計算機の実行
アドレスを前記飛び先アドレスレジスタ2の内容に書キ
換え、その後は前記比較器による比較をやめる制御手段
とを含んで構成される。
The computer control method of the present invention includes two jump destination address registers 1 and 2 that hold branch destination addresses, a comparator that compares the contents of the jump destination address register 2 and the contents of the execution address of the computer, When the condition is not satisfied in a conditional branch instruction, the comparator performs a comparison every time one instruction is executed, and when a match is detected, the execution address of the computer is rewritten to the contents of the jump destination address register 2, and thereafter. and control means for stopping the comparison by the comparator.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明を適用した電子計算機の一実施例を部分
的に示すブロック図である。
FIG. 1 is a block diagram partially showing an embodiment of an electronic computer to which the present invention is applied.

第1図で、1は命令レジスタ、2は実行アドレスレジス
タ(PC)、3は比較器、4はデコーダ、5はフリップ
フロップ、6はPC更新制御部、7は選択回路、11お
よび12は飛び先アドレスレジスタである。
In Figure 1, 1 is an instruction register, 2 is an execution address register (PC), 3 is a comparator, 4 is a decoder, 5 is a flip-flop, 6 is a PC update control section, 7 is a selection circuit, 11 and 12 are jumpers. This is the destination address register.

本例では、デコーダ4によって条件分岐命令が検出され
ると、命令レジスタ1のアドレスAを飛び先アドレスレ
ジスタIIK、アドレスBを飛び先アドレスレジスタ1
2に格納する。
In this example, when a conditional branch instruction is detected by the decoder 4, address A of instruction register 1 is set to jump destination address register IIK, and address B is set to jump destination address register 1.
Store in 2.

条件が成立したときは、命令レジスタlのアドレスAの
内容が選択回路7によって選択されて、実行アドレスレ
ジスタ2が書き換えられる。
When the condition is satisfied, the contents of address A of instruction register 1 are selected by selection circuit 7, and execution address register 2 is rewritten.

条件が不成立のときは、フリップフロップ5をセットす
る。また、飛び先アドレスレジスタ11の内容と実行ア
ドレスレジスタ(PC)2の内容とを比較器3により比
較し、一致した場合はフリップ70ツブ5をリセットし
、選択回路7により飛び先アドレスレジスタ12を選択
し、実行アドレスレジスタ(PC)2の内容を書き換え
る。
When the condition is not satisfied, the flip-flop 5 is set. Also, the comparator 3 compares the contents of the jump destination address register 11 and the contents of the execution address register (PC) 2, and if they match, the flip 70 knob 5 is reset, and the selection circuit 7 selects the jump destination address register 12. Select and rewrite the contents of execution address register (PC) 2.

また、スリップフロップ5がセットされている間は、比
較が一致しない場合には、実行アドレスレジスタ(PC
)2は、PCJ!新制御部6によシ実行アドレスを更新
する。7リツプ70ツブ5がリセットされたら、これら
の比較の処理は行なわない。
Also, while the slip-flop 5 is set, if the comparison does not match, the execution address register (PC
)2 is PCJ! The new control unit 6 updates the execution address. If the 7rip 70rub 5 is reset, these comparisons will not be processed.

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

以上説明したように本発明は、条件分岐命令を実行する
とき、条件不成立の場合には、2つの分岐先アドレスを
2つの飛び先アドレスレジスタに保持し、その後、1命
令実行毎に飛び先アドレスレジスタ1の内容と電子計算
機の実行アドレスの内容とを比較し、一致したら、電子
計算機の実行アドレスの内容を飛び先アドレスレジスタ
52の内容に書き換えて、その後は比較をやめることに
より条件によって処理がちがう場合、プログラムが容易
になり実行も高速になるという効果がある。
As explained above, in the present invention, when executing a conditional branch instruction, if the condition is not satisfied, two branch destination addresses are held in two jump destination address registers, and thereafter, the jump destination address is stored every time one instruction is executed. The contents of register 1 and the contents of the execution address of the computer are compared, and if they match, the contents of the execution address of the computer are rewritten to the contents of the jump destination address register 52, and after that, the comparison is stopped and the processing is executed according to the conditions. If it is different, the effect is that the program becomes easier and the execution speed becomes faster.

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

第1図は本発明を適用した電子計算機の一実施例を部分
的に示すブロック図、第2図および第3図は従来の分岐
命令の流れを示す流れ図、第4図は第3図の流れを直列
なプログラムの流れで示した流れ図である。 1・・・・・・命令レジスタ、2・−・・・・実行アド
レスレジスタ、3・・・・・・比較器、4・・・・・・
デコーダ、5・旧・・フリップ70ツブ、6・・・・・
・PC更新制御部、7・・・・・・選択回路、11.1
2・・・・・・飛び先アドレスレジメ第3圀
Fig. 1 is a block diagram partially showing an embodiment of an electronic computer to which the present invention is applied, Figs. 2 and 3 are flow charts showing the flow of conventional branch instructions, and Fig. 4 is the flow of Fig. 3. This is a flowchart showing the flow of a serial program. 1...Instruction register, 2...Execution address register, 3...Comparator, 4...
Decoder, 5, old...Flip 70 knob, 6...
・PC update control unit, 7...Selection circuit, 11.1
2... Destination address regime 3rd area

Claims (1)

【特許請求の範囲】[Claims] 分岐先アドレスを保持する飛び先アドレスレジスタ1お
よび飛び先アドレスレジスタ2と、前記飛び先アドレス
レジスタ1の内容と電子計算機の実行アドレスの内容と
を比較する比較器を有し、条件分岐命令で条件が成立し
た場合には、前記電子計算機の実行アドレスを命令レジ
スタの中のアドレス1に書き換え、また、条件不成立の
場合には、命令レジスタ中の2つのアドレスを前記飛び
先アドレスレジスタ1および飛び先アドレスレジスタ2
に格納し、その後1命令実行毎に前記比較器によって比
較を行い、一致を検出した時に前記電子計算機の実行ア
ドレスを前記飛び先アドレスレジスタ2の内容にする手
段1と、このときより後は前記比較器による比較をやめ
る制御手段とを含んで構成されることを特徴とする電子
計算機制御方式。
It has a jump destination address register 1 and a jump destination address register 2 that hold the branch destination address, and a comparator that compares the contents of the jump destination address register 1 and the contents of the execution address of the computer, If the condition is met, the execution address of the computer is rewritten to address 1 in the instruction register, and if the condition is not met, the two addresses in the instruction register are rewritten to the jump destination address register 1 and the jump destination. address register 2
Thereafter, the comparator performs a comparison every time one instruction is executed, and when a match is detected, the execution address of the computer is set to the content of the jump destination address register 2; An electronic computer control system comprising: control means for stopping comparison by a comparator.
JP11781787A 1987-05-13 1987-05-13 System for controlling electronic computer Pending JPS63282526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11781787A JPS63282526A (en) 1987-05-13 1987-05-13 System for controlling electronic computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11781787A JPS63282526A (en) 1987-05-13 1987-05-13 System for controlling electronic computer

Publications (1)

Publication Number Publication Date
JPS63282526A true JPS63282526A (en) 1988-11-18

Family

ID=14720991

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11781787A Pending JPS63282526A (en) 1987-05-13 1987-05-13 System for controlling electronic computer

Country Status (1)

Country Link
JP (1) JPS63282526A (en)

Similar Documents

Publication Publication Date Title
JPH0314025A (en) Instruction execution control system
JPS63282526A (en) System for controlling electronic computer
JP3305841B2 (en) Program control unit
JPH04167146A (en) Address tracing system for information processor
JPS5842891B2 (en) Meirei Seigiyohoushiki
JPS61213928A (en) Alteration system for program
JPS6116334A (en) Data processor
JPH1021067A (en) Dynamic correction method for program
JPH0353321A (en) Information processor
JPS62282331A (en) Arithmetic processing unit
JPH0883188A (en) Multitask processing computer
JPS6288036A (en) Microprogram controller
JPS6249502A (en) Programmable controller
JPS61241836A (en) Storage device
JPS61156339A (en) Trace processing system
JPH03139703A (en) Timer instruction processing system of programmable controller
JPS61210440A (en) Level tracing device
JPH0259829A (en) Microcomputer
JPH0281227A (en) Program execution control system
JPS61272856A (en) Processor control system
JP2000259209A (en) Ladder program execution system
JPH012103A (en) programmable controller
JPH0683614A (en) Microcomputer
JPS63282525A (en) Correction system for execution type program file
JPH08297583A (en) Processor and method for interruption processing