JPS62120541A - Instruction control system - Google Patents

Instruction control system

Info

Publication number
JPS62120541A
JPS62120541A JP26061985A JP26061985A JPS62120541A JP S62120541 A JPS62120541 A JP S62120541A JP 26061985 A JP26061985 A JP 26061985A JP 26061985 A JP26061985 A JP 26061985A JP S62120541 A JPS62120541 A JP S62120541A
Authority
JP
Japan
Prior art keywords
function
field
execution
instruction
designation
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
JP26061985A
Other languages
Japanese (ja)
Inventor
Kyosuke Sugishita
杉下 恭輔
Hideo Tanaka
秀夫 田中
Takao Nishitani
隆夫 西谷
Ichiro Kuroda
黒田 一朗
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 JP26061985A priority Critical patent/JPS62120541A/en
Publication of JPS62120541A publication Critical patent/JPS62120541A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To reduce a program scale and also to simplify an instruction control by designating the execution and the function in different fields and therefore reducing greatly the program size. CONSTITUTION:An instruction 10 to be controlled consists of the 1st and 2nd fields 11 and 13 which are independent of each other. Then the designation of execution carried out in the field 11 is decoded by the 1st decoding means 21. While the designation of function is carried out in the field 13 against the execution designation of the field 11. This function designation is decoded by the 2nd decoding means 23. Furthermore a memory means 30 holds the output of the means 23 until the function is designated again in the field 13. Thus the program size is greatly reduced. This attains the reduction of the program scale as well as the simplified control of the instruction.

Description

【発明の詳細な説明】 11孟坐遥月盟マ 本発明は、命令制御方式に関し、特に、複数の独立なフ
ィールドから成る命令に基づいて制御を成すようにした
命令制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a command control system, and particularly to a command control system in which control is performed based on commands consisting of a plurality of independent fields.

従来の技術 一般に、演算処理装置はその規模が増大するにしたがっ
て多様な機能を有するようになる。その結果、ひとつの
機能に対してひとつの命令を割当てる命令制御方式では
、命令の種類があまりにも増大するのでより簡潔な命令
制御方式の実現が要望される。これに応えるものとして
従来は、1つの第1命令に対して実行される機能の詳細
な指定を別の第2命令で行なう命令実行方式があった。
2. Description of the Related Art In general, as the scale of an arithmetic processing device increases, it comes to have a variety of functions. As a result, in an instruction control method in which one instruction is assigned to one function, the number of types of instructions increases too much, so it is desired to realize a simpler instruction control method. In response to this, there has conventionally been an instruction execution method in which a detailed specification of a function to be executed in response to one first instruction is performed in a separate second instruction.

この従来方式では、所望の機能の実行指定を第1命令で
行なうのに先立って、第2命令により機能の指定を行な
うことになる。一方、第2命令により行なわれた機能指
定は、次に第2命令により新たに機能指定が行なわれる
まで有効である。
In this conventional method, the function is designated by the second command before the execution of the desired function is designated by the first command. On the other hand, the function designation made by the second command remains valid until a new function designation is made by the next second command.

そうすることによって、より少ない種類の命令でより多
くの機能を実現するようにして、簡潔な命令制御方式と
している。
By doing so, more functions are realized with fewer types of instructions, resulting in a simpler instruction control system.

発明が解決しようとする問題点 しかしながら、このような従来の命令制御方式にあって
は、第2命令によって第1命令の機能指定を、当該第1
命令の実行前に行うことに因り、例えば第1命令に対応
する異なった機能を連続して実行させる場合には第1命
令を実行する度に第2命令によって機能指定を行わなけ
ればならない。
Problems to be Solved by the Invention However, in such conventional command control systems, the function specification of the first command is not specified by the second command.
Because this is done before executing an instruction, for example, if different functions corresponding to the first instruction are to be executed consecutively, the function must be specified using the second instruction each time the first instruction is executed.

そのため、プログラムが長くなると共に処理効率が低下
するといった問題点があった。
Therefore, there were problems in that the program became long and the processing efficiency decreased.

本発明は、このような点に鑑みて為されたものであり、
プログラム規模を縮小すると共に処理効率の向上を図っ
た簡潔な命令制御方式を提供することを目的としている
The present invention has been made in view of these points,
The purpose is to provide a simple instruction control method that reduces program size and improves processing efficiency.

問題点を 決するための手段 本発明の命令制御方式にあっては、命令を構成する第1
フィールドによって行われる実行指定手段と、該実行指
定手段に対応する第1解読手段と、命令を構成する第2
フィールドによって行われる機能指定手段と、該機能指
定手段に対応する第2解読手段と、該第2解読手段の出
力を記憶する記憶手段とが含まれている。
Means for resolving problems In the command control system of the present invention, the first
An execution specifying means performed by a field, a first decoding means corresponding to the execution specifying means, and a second decoding means constituting an instruction.
It includes a function specifying means performed by a field, a second decoding means corresponding to the function specifying means, and a storage means for storing the output of the second decoding means.

許J 本発明において、第2フィールドによって第1フィール
ドの実行指定に対する詳細な機能指定を機能指定手段で
行い、この機能指定を第2解読手段によって解読する。
In the present invention, detailed function specification for the execution specification in the first field is performed by the function specification means using the second field, and this function specification is decoded by the second decoding means.

その解読によって得られた出力を記憶手段によって記憶
させ、第2フィールドによって再び機能指定がなされる
まで保持するようにしている。
The output obtained by the decoding is stored by the storage means and held until the function is designated again by the second field.

11男 以下図面を参照して本発明を実施例により詳細に説明す
る。
The present invention will be described in detail by way of examples with reference to the drawings.

第1図は本発明の1実施例を示す。ここで、制御対象と
なる命令10は相異なる2つのフィールド、すなわち第
1フィールド11およびこれと独°立した第2フィール
ド13とで成っている。この第1フィールド11におい
て行われる実行指定は第1解読手段21によって解読さ
れる。また、第2フィールド13は、第1フィールドに
よる実行指定に対する詳細な機能指定を行うものであり
、第2解読手段23によって解読される。記憶手段30
は、第2解読手段23の出力を、第2フィールド13に
おいて機能指定が再び為されるまで保持するものである
FIG. 1 shows one embodiment of the invention. Here, the command 10 to be controlled consists of two different fields, namely a first field 11 and a second field 13 independent of this. The execution designation made in the first field 11 is decoded by the first decoding means 21. Further, the second field 13 specifies a detailed function in response to the execution specification specified by the first field, and is decoded by the second decoding means 23. Storage means 30
is for holding the output of the second decoding means 23 until the function designation is made again in the second field 13.

第2図(a)は本発明実施例において実行されるプログ
ラム例である。また同図(6)は同一動作内容を行う場
合の従来のプログラム例であり、比較して説明するため
に挙げである。
FIG. 2(a) is an example of a program executed in the embodiment of the present invention. Further, FIG. 6 (6) is an example of a conventional program that performs the same operation content, and is included for comparison and explanation.

ここで、プログラム実行よって指定される機能をAふよ
びBとして単に示す。従って、それぞれのプログラムの
実行命令の意味内容は次の如くである。
Here, the functions specified by program execution are simply indicated as A and B. Therefore, the meaning of each program execution command is as follows.

第2図(a)において、各命令の左側は第1フィールド
11に、また、右側は第2フィールド13に対応してい
る。
In FIG. 2(a), the left side of each instruction corresponds to the first field 11, and the right side corresponds to the second field 13.

OP  ・・第1解読手段21の実行指定NOP  ・
・いかなる実行指定も行わない5ETA・・第1解読手
段21の動作内容を機能Aに指定 5ETB・・第1解読手段21の動作内容を機能Bに指
定 また、第2図(b)の従来例にあっても命令の意味内容
は同様である。
OP: Execution designation of the first decoding means 21 NOP:
・5ETA does not specify any execution. 5ETB specifies the operation content of the first deciphering means 21 as function A. Also, the conventional example shown in FIG. 2(b) The meaning and contents of the commands are the same even if they are both.

本実施例のプログラム順に動作を与る。The operations are performed in the order of the programs in this embodiment.

(i)先ず、命令lOの第2フィールド13において「
機能A」を指定する。このようにして指定された第2フ
ィールド13は第2解読手段23によって解読される。
(i) First, in the second field 13 of the instruction IO, "
Specify "Function A". The second field 13 designated in this manner is decoded by the second decoding means 23.

その解読によって得られた機能A出力は記憶手段30に
記憶されて保持される。
The function A output obtained by the decoding is stored and held in the storage means 30.

(ii )次に、命令の第1フィールド11において“
実行”指定を行う。この第1フィールド11は指定内容
は第1解読手段21によって解読される。
(ii) Next, in the first field 11 of the instruction, “
The specified contents of the first field 11 are decoded by the first decoding means 21.

(i)で上述したように、既に指定された機能Aの内容
は記憶手段30に保持されているので、第1解読手段2
1の解読結果“実行”に従って「機能A」が実行される
ことになる。
As mentioned above in (i), since the contents of the function A that has already been specified are held in the storage means 30, the first decoding means 2
“Function A” will be executed according to the decoding result “Execution” of No. 1.

(iii )更に「機能A」の実行を続行させたい場合
には、命令10の第1フィールドにおいて“実行”指定
を行う。先の「機能A」はいまだ記憶手段30に保持さ
れているので、改めて機能指定を行う必要がない。第、
2フィールド13に指定がないので記憶手段30の記憶
内容は変らない。その状態にあるとき、新たに第1フィ
ールド11にて指定された“実行”の第1解読手段21
の解読出力に応じて「機能A」が再び実行される。
(iii) If it is desired to continue the execution of "function A", "execution" is specified in the first field of instruction 10. Since the previous "function A" is still held in the storage means 30, there is no need to designate the function anew. No. 1,
Since there is no designation in the 2 field 13, the storage contents of the storage means 30 do not change. When in that state, the first decoding means 21 of “execution” is newly specified in the first field 11.
``Function A'' is executed again in response to the decoded output.

(iv)ところで、「機能B」を実行させたい場合には
、命令10の第2フィールド13において「機能B」を
指定する。しかる後、第1フィールド11において“実
行”指定を行−う。
(iv) By the way, if you want to execute "Function B", specify "Function B" in the second field 13 of the instruction 10. Thereafter, the "execution" designation is made in the first field 11.

上述した(i)および(ii)と同様に、第2フィール
ド13の「機能B」は第2解読手段23で解読されて記
憶手段30に新たに記憶される。また、第1フィールド
11の“実行”が第1解読手段21で解読されて、「機
能B」が実行される。
Similar to (i) and (ii) above, "Function B" in the second field 13 is decoded by the second decoding means 23 and newly stored in the storage means 30. Further, "execute" in the first field 11 is decoded by the first decoding means 21, and "function B" is executed.

次に、第2図(a)に示すプログラムを得る方法につい
て述べる。なおここで、一般のハードウェアにおいて自
然に仮定されるように、各命令における機能指定はそれ
以降の実行指定に対して有効であるものとする。そのよ
うな仮定の下に、機能Aと機能Bとを交互に連続して実
行させる場合を考える。
Next, a method for obtaining the program shown in FIG. 2(a) will be described. Here, it is assumed that the function designation in each instruction is valid for subsequent execution designations, as is naturally assumed in general hardware. Under such an assumption, consider a case where function A and function B are executed alternately and consecutively.

その場合、先ず第2フィールド13で機能をAに指定す
る。次の命令10において、その第1フィールド11で
“実行”指定を行う。それと共に、当該命令lOの第2
フィールド13において機能をBに指定する。このよう
な指定動作を繰り返すことにより、第2図(a)に示す
ような所望プログラムを確保することができる。
In that case, first specify the function as A in the second field 13. In the next instruction 10, "execution" is designated in its first field 11. At the same time, the second instruction lO
In field 13, the function is designated as B. By repeating such a designation operation, a desired program as shown in FIG. 2(a) can be secured.

これを、第2図(b)の従来プログラムと比較する。This will be compared with the conventional program shown in FIG. 2(b).

そこでは、先ず機能をAに指定し、次の命令で“実行”
指定を行う。更に、次の命令で機能を已に指定し、続く
次の命令で再び“実行”指定を行っている。これを繰り
返すことによって所望プログラムを得ている。
First, specify the function as A, and then "execute" it with the next command.
Specify. Furthermore, the next command immediately specifies the function, and the next command specifies "execution" again. By repeating this process, the desired program is obtained.

このように本発明の実施例にあっては、従来例と比して
プログラムを大幅に短縮できることが判る。
As described above, it can be seen that in the embodiment of the present invention, the program can be significantly shortened compared to the conventional example.

1Vp恣】 以上詳述した如く本発明によれば、実行指定と機能指定
とをそれぞれ異なるフィールドで行うことにより、プロ
グラムサイズを大幅に短縮することができる。特に、例
えば2つの機能を交互に連続して実行するように指定す
る場合に、プログラムサイズの短縮は顕著である。この
ようにプログラム規模の縮小と共に命令制御の簡潔化が
図られ実用に供して極めて効果大である。
1Vp Arbitrary] As described in detail above, according to the present invention, the program size can be significantly reduced by specifying execution and specifying functions in different fields. In particular, the reduction in program size is remarkable when, for example, two functions are specified to be executed alternately and consecutively. In this way, the program scale is reduced and instruction control is simplified, which is extremely effective in practical use.

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

第1図は本発明の一実施例による命令制御方式の説明ブ
ロック図である。 第2図(a)および(ハ)は本発明実施例および従来例
においての制御プログラム例を示す説明図である。 (主な参照番号)
FIG. 1 is an explanatory block diagram of an instruction control system according to an embodiment of the present invention. FIGS. 2(a) and 2(c) are explanatory diagrams showing examples of control programs in the embodiment of the present invention and the conventional example. (main reference number)

Claims (1)

【特許請求の範囲】[Claims] 少なくとも相異なる第1および第2のフィールドを有す
る命令を用い、該第1のフィールドで実行の指定が行わ
れ、この実行の指定に対する詳細な機能の指定を前記第
2のフィールドで行うようにし、前記第2のフィールド
において指定された機能が新たに機能の指定が当該第2
フィールドにて行われるまで維持されるようにし、前記
機能が前記指定された実行に応じて実行動作が為される
ように構成されたことを特徴とする命令制御方式。
Using an instruction having at least different first and second fields, the first field specifies execution, and the second field specifies detailed functions for the execution specification; The function specified in the second field will be changed to the new function specified in the second field.
An instruction control system characterized in that the command control method is configured to be maintained until it is performed in the field, and the function is configured to perform an execution operation in accordance with the specified execution.
JP26061985A 1985-11-20 1985-11-20 Instruction control system Pending JPS62120541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26061985A JPS62120541A (en) 1985-11-20 1985-11-20 Instruction control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26061985A JPS62120541A (en) 1985-11-20 1985-11-20 Instruction control system

Publications (1)

Publication Number Publication Date
JPS62120541A true JPS62120541A (en) 1987-06-01

Family

ID=17350439

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26061985A Pending JPS62120541A (en) 1985-11-20 1985-11-20 Instruction control system

Country Status (1)

Country Link
JP (1) JPS62120541A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5812053A (en) * 1981-07-15 1983-01-24 Nec Corp Information processor
JPS5945553A (en) * 1982-09-09 1984-03-14 Toshiba Corp Memory addressing system
JPS6065342A (en) * 1983-09-20 1985-04-15 Fujitsu Ltd Microcomputer
JPS6079431A (en) * 1983-10-06 1985-05-07 Hitachi Ltd Programmable controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5812053A (en) * 1981-07-15 1983-01-24 Nec Corp Information processor
JPS5945553A (en) * 1982-09-09 1984-03-14 Toshiba Corp Memory addressing system
JPS6065342A (en) * 1983-09-20 1985-04-15 Fujitsu Ltd Microcomputer
JPS6079431A (en) * 1983-10-06 1985-05-07 Hitachi Ltd Programmable controller

Similar Documents

Publication Publication Date Title
JPS6049332B2 (en) Microprogram control method
JPS62120541A (en) Instruction control system
JPS63142431A (en) Pipeline control system
JPS60108973A (en) Method for finding the minimum value of array elements and element number of the minimum element
JPS63141131A (en) Pipeline control system
JPS58163045A (en) Controller of program counter
JPS58155406A (en) Flow chart system programmable controller
JPS6330938A (en) Microprogram control device
JPH06131173A (en) Microprogram control system
JPS63244233A (en) Processor
JPS61208129A (en) Control system for preread of instruction
JPS6043746A (en) Interpreter of program language
JPH03127171A (en) Vector processor
JPS6383866A (en) Vector arithmetic processing system
JPH04181324A (en) Access system for repetitive data structure
JPS6217840A (en) Microprogram control system based upon attribution flag
JPH0683624A (en) Processor and its control method
JPS62115541A (en) Microinstruction branch address generating system
JPS6217838A (en) Control system for map of control storage device
JPS60215247A (en) Arithmetic processor
JPS608943A (en) Multi-branch controlling system
JPH02100142A (en) Saving and restoring system for arbitrary register
JPS61157942A (en) Microprogram control computer
JPS61165148A (en) Table access instructing system
JPH01159728A (en) Information retrieval processing system