Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2925720B2 - Instruction execution method - Google Patents
[go: Go Back, main page]

JP2925720B2 - Instruction execution method - Google Patents

Instruction execution method

Info

Publication number
JP2925720B2
JP2925720B2 JP32483590A JP32483590A JP2925720B2 JP 2925720 B2 JP2925720 B2 JP 2925720B2 JP 32483590 A JP32483590 A JP 32483590A JP 32483590 A JP32483590 A JP 32483590A JP 2925720 B2 JP2925720 B2 JP 2925720B2
Authority
JP
Japan
Prior art keywords
instruction
parameter
command
instruction execution
execution method
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 - Fee Related
Application number
JP32483590A
Other languages
Japanese (ja)
Other versions
JPH04191930A (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.)
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 JP32483590A priority Critical patent/JP2925720B2/en
Publication of JPH04191930A publication Critical patent/JPH04191930A/en
Application granted granted Critical
Publication of JP2925720B2 publication Critical patent/JP2925720B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Description

【発明の詳細な説明】 〔概要〕 命令実行方法に関し、 コマンド発行手順中の不要な手間を省き、命令の実行
処理時間を短縮することを目的とし、 命令コード部、および該命令コード部に付加するパラ
メータ部からなるコマンドを発行することにより、所定
の同一命令を実行する命令実行方法であって、前記パラ
メータ部に、該パラメータ部に続くパラメータ部が存在
するか否かの判定フラグを設け、前記所定の命令を複数
回繰り返して実行する場合、前記命令コード部を1回発
行した後、該判定フラグに基づいてパラメータ部を所定
の回数発行するように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] Regarding an instruction execution method, an object of the present invention is to provide an instruction code part and an instruction code part and an instruction code execution method for the purpose of reducing unnecessary processing during a command issuing procedure and shortening an instruction execution processing time. An instruction execution method for executing a predetermined same instruction by issuing a command including a parameter portion to perform, wherein the parameter portion is provided with a determination flag as to whether or not a parameter portion following the parameter portion exists, When the predetermined instruction is repeatedly executed a plurality of times, the command code section is issued once, and then the parameter section is issued a predetermined number of times based on the determination flag.

〔産業上の利用分野〕[Industrial applications]

本発明は、命令実行方法に係り、詳しくは、例えば、
コンピュータ等の演算処理の分野に用いて好適な、コマ
ンドを発行することにより所定の命令を実行する命令実
行方法に関する。
The present invention relates to an instruction execution method.
The present invention relates to an instruction execution method for executing a predetermined instruction by issuing a command, which is suitable for use in the field of arithmetic processing such as a computer.

近年、例えば、コンピュータ等の演算処理装置におい
ては、所定の命令を実行するための命令実行方法が数多
く開発されている。
In recent years, for example, in an arithmetic processing device such as a computer, many instruction execution methods for executing a predetermined instruction have been developed.

そして、演算処理装置が高速化されるのに伴い、命令
実行の方法が演算処理装置全体の処理時間に与える影響
は大きなものとなる。
As the speed of the arithmetic processing unit increases, the influence of the instruction execution method on the processing time of the entire arithmetic processing unit increases.

そこで、より高速化に適した命令実行方法が要求され
る。
Therefore, an instruction execution method suitable for higher speed is required.

〔従来の技術〕[Conventional technology]

従来のこの種の命令実行方法としては、例えば、第3
図、および第4図に示すような命令実行方法がある。
As a conventional instruction execution method of this kind, for example,
There is an instruction execution method as shown in FIG. 4 and FIG.

すなわち、所定の同一命令を複数回繰り返して実行す
る場合、第3図に示すように、一回の命令実行に対し
て、1つの命令コード部1と、命令コード部1に続く1
つのパラメータ部2との組み合せによるコマンド3を複
数回発行する方法や、第4図に示すように、1つの命令
コード1と、予め設定された数(この場合、3つ)のパ
ラメータ部2a,2b,2cの組み合せからなるコマンド3を複
数回発行する方法があり、いずれにしても同一命令を複
数回繰り返して実行する場合には、命令実行回数分だけ
コマンド3を繰り返して発行するものである。
That is, when a predetermined same instruction is repeatedly executed a plurality of times, as shown in FIG. 3, one instruction code part 1 and one instruction code part
A method of issuing a command 3 multiple times in combination with one parameter unit 2 or, as shown in FIG. 4, one instruction code 1 and a predetermined number (in this case, three) of parameter units 2a, There is a method of issuing the command 3 composed of a combination of 2b and 2c a plurality of times. In any case, when the same instruction is repeatedly executed a plurality of times, the command 3 is repeatedly issued by the number of times of instruction execution. .

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

しかしながら、このような従来の命令実行方法にあっ
ては、所定の同一命令を複数回繰り返して実行する場
合、命令実行回数分だけコマンド3を繰り返して発行す
るという構成となっていたため、複数回続けて同一命令
を実行するためには、演算処理装置内で複数回コマンド
3与えなくてはならず、コマンド3発行に手間がかかる
とともに、コマンド3内に同一の命令コード部1が含ま
れるため、命令実行時間に無駄な時間を費やすといった
問題点があった。
However, in such a conventional instruction execution method, when a predetermined same instruction is repeatedly executed a plurality of times, the command 3 is repeatedly issued by the number of instruction executions. In order to execute the same instruction, the command 3 must be given a plurality of times in the arithmetic processing unit, and it takes time and effort to issue the command 3, and the same instruction code section 1 is included in the command 3. There was a problem that wasted time was spent on instruction execution time.

また、第4図に示す従来例にあっては、パラメータ部
の数を予め設定するという構成となっていたため、第3
図に示す従来例と比較して、コマンド処理はシンプルに
なるものの、コマンド3によって本来必要なパラメータ
部が2つであった場合でも、パラメータ部の数が3に設
定されている場合、ダミーのパラメータ部を発行しなけ
ればならず、不要な手間が追加されるといった問題点が
あった。
Further, in the conventional example shown in FIG. 4, since the number of parameter parts is set in advance,
Although the command processing is simpler than the conventional example shown in the figure, even if the command 3 originally requires two parameter parts, if the number of parameter parts is set to three, a dummy There is a problem that the parameter section has to be issued and unnecessary labor is added.

そこで本発明は、コマンド発行手順中の不要な手間を
省き、命令の実行処理時間を短縮することを目的として
いる。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to eliminate unnecessary work during a command issuing procedure, and to reduce the execution time of an instruction.

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

本発明による命令実行方法は上記目的達成のため、そ
の原理説明図を第1図に示すように、命令コード部1、
および該命令コード部1に付加するパラメータ部2から
なるコマンド3を発行することにより、所定の同一命令
を実行する命令実行方法であって、前記パラメータ部2
に、該パラメータ部2に続くパラメータ部2が存在する
か否かの判定フラグ4を設け、前記所定の命令を複数回
繰り返して実行する場合、前記命令コード部1を1回発
行した後、該判定フラグ4に基づいてパラメータ部2を
所定の回数発行するように構成している。
In order to achieve the above object, the instruction execution method according to the present invention, as shown in FIG.
And issuing a command 3 comprising a parameter unit 2 to be added to the instruction code unit 1 to execute a predetermined same instruction.
Is provided with a determination flag 4 for determining whether or not the parameter unit 2 following the parameter unit 2 exists. When the predetermined instruction is repeatedly executed plural times, the instruction code unit 1 is issued once, The parameter section 2 is configured to be issued a predetermined number of times based on the determination flag 4.

〔作用〕[Action]

本発明では、パラメータ部に、このパラメータ部に続
くパラメータ部が存在するか否かの判定フラグが設ら
れ、所定の命令を複数回繰り返して実行する場合、命令
コード部が1回発行された後、判定フラグに基づいて、
パラメータ部が続くと判断された場合、次のパラメータ
部が発行され、また、続くパラメータ部がないと判断さ
れた場合、命令の実行が終了される。
According to the present invention, a determination flag is set in the parameter section to determine whether or not a parameter section following this parameter section exists. When a predetermined instruction is repeatedly executed a plurality of times, the instruction code section is issued once. , Based on the determination flag,
If it is determined that the parameter portion continues, the next parameter portion is issued, and if it is determined that there is no subsequent parameter portion, the execution of the instruction is terminated.

すなわち、複数回の同一コマンド発行が一つの命令コ
ード部と任意の数のパラメータ部とからなる、一回のコ
マンド発行手順によりなされることによって不要な手間
が省かれ、命令の実行処理時間が短縮される。
That is, the same command is issued a plurality of times by one command issuing procedure including one instruction code part and an arbitrary number of parameter parts, thereby eliminating unnecessary labor and shortening the execution time of the instruction. Is done.

〔実施例〕〔Example〕

以下、本発明を図面に基づいて説明する。 Hereinafter, the present invention will be described with reference to the drawings.

第2図は本発明に係る命令実行方法の一実施例を示す
図であり、第2図において、第1図に示した原理説明図
に付された番号と同一番号は同一部分を示す。
FIG. 2 is a diagram showing an embodiment of an instruction execution method according to the present invention. In FIG. 2, the same reference numerals as those given in the principle explanatory diagram shown in FIG. 1 indicate the same parts.

一般に、命令実行処理の中で繰り返し処理が行なわれ
る頻度は極めて高く、この繰り返し処理に関する部分の
命令実行方法を改善することは有効である。
Generally, the frequency of repetition processing in the instruction execution processing is extremely high, and it is effective to improve the instruction execution method related to the repetition processing.

そこで、本実施例の命令実行方法は、コマンド3は命
令コード部1、パラメータ部2からなり、パラメータ部
2は判定フラグとなる1ビットの判定ビット4が設けら
れている。
Therefore, in the instruction execution method of the present embodiment, the command 3 includes an instruction code section 1 and a parameter section 2, and the parameter section 2 is provided with a 1-bit determination bit 4 serving as a determination flag.

判定ビット4は、パラメータ部2を繰り返し処理によ
り複数回発行する場合、発行するパラメータ部2の後に
続いて発行するパラメータ部2があるかどうかを知るた
めのものであり、繰り返し処理の回数に応じて“1"、ま
たは“0"の情報を書き込むものである。具体的には、判
定ビット4が“1"の場合、次に続くパラメータ部2が存
在し、“0"の場合、次に続くパラメータ部2が存在しな
いものする。
The determination bit 4 is for knowing whether there is a parameter section 2 to be issued subsequent to the parameter section 2 to be issued when the parameter section 2 is issued a plurality of times by the repetition processing. In this case, information of "1" or "0" is written. Specifically, when the determination bit 4 is “1”, the following parameter part 2 exists, and when it is “0”, the following parameter part 2 does not exist.

次に、以上の構成において、所定の命令を3回繰り返
して実行する場合を例に採り、その作用を説明する。
Next, the operation of the above configuration will be described by taking as an example a case where a predetermined instruction is repeatedly executed three times.

まず、第2図に示すように、命令に対する命令コード
1が発行された後、パラメータ部2Aが発行される。この
とき、パラメータ部2Aに設けられた判定ビット4は“1"
が書き込まれてるため、次のパラメータ部2Bが発行され
る。そして、パラメータ部2Aと同様に、パラメータ部2B
の判定ビット4にも“1"が書き込まれてるため、さらに
次のパラメータ部2Cが発行される。パラメータ部2Cの判
定ビット4には“0"が書き込まれているため、ここでコ
マンド3の発行が終了される。
First, as shown in FIG. 2, after an instruction code 1 for an instruction is issued, a parameter section 2A is issued. At this time, the determination bit 4 provided in the parameter section 2A is "1".
Is written, the next parameter section 2B is issued. Then, like the parameter section 2A, the parameter section 2B
Since "1" is also written in the determination bit 4 of the above, the next parameter section 2C is issued. Since “0” is written in the determination bit 4 of the parameter section 2C, the issuing of the command 3 ends here.

したがって、同一命令を複数回実行する場合、命令コ
ード部1を1回発行した後、パラメータ部2を複数回発
行することにより、命令実行処理を簡単に、かつ短時間
に行なうことができ、パラメータ部2の数を自由に設定
できる。
Therefore, when the same instruction is executed a plurality of times, the instruction code is issued once and then the parameter 2 is issued a plurality of times, whereby the instruction execution process can be performed easily and in a short time. The number of parts 2 can be set freely.

このように本実施例では、複数回のコマンド発行手順
を一回のコマンド発行手順で行ない、かつ命令コード部
一回だけ発行しパラメータ部だけを複数回発行すること
で、不要な手間を省き命令の実行処理時間を短縮でき、
繰り返し処理が高速化できる。
As described above, in the present embodiment, the command issuance procedure is performed a plurality of times in a single command issuance procedure, and the command code section is issued only once and the parameter section alone is issued a plurality of times. Execution time can be reduced,
Iterative processing can be sped up.

なお、上記実施例は判定ビットを“1"と、“0"との情
報を有する1ビットのフラグとしているが、これに限ら
ず、パラメータ部のデータ長が長くなっても構わないな
らば、判定ビットのビット数を増やすことにより、繰り
返し回数等の情報を記録することもできる。
In the above embodiment, the determination bit is a 1-bit flag having information of “1” and “0”. However, the present invention is not limited to this, and if the data length of the parameter section may be long, By increasing the number of decision bits, information such as the number of repetitions can be recorded.

〔発明の効果〕〔The invention's effect〕

本発明では、複数回のコマンド発行手順を一回のコマ
ンド発行手順で行ない、かつ命令コード部を一回だけ発
行しパラメータ部だけを複数回発行することで、不要な
手間を省くことができ、命令の実行処理時間を短縮でき
る。したがって、例えば、演算処理装置での繰り返し処
理が高速化できる。
In the present invention, by performing the command issuing procedure a plurality of times in a single command issuing procedure, and issuing the instruction code portion only once and issuing only the parameter portion a plurality of times, unnecessary labor can be saved, Instruction execution time can be reduced. Therefore, for example, iterative processing in the arithmetic processing device can be speeded up.

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

第1図は本発明の原理説明図、 第2図は本発明に係る命令実行方法の一実施例を示す
図、 第3図は従来例の命令実行方法を示す図、 第4図は他の従来例の命令実行方法を示す図、 第5図は他の従来例の問題点を示す図である。 1……命令コード部、 2……パラメータ部、 2a,2b,2c……パラメータ部、 2A,2B,2C……パラメータ部、 3……コマンド、 4……判定ビット(判定フラグ)。
FIG. 1 is a diagram for explaining the principle of the present invention, FIG. 2 is a diagram showing an embodiment of an instruction execution method according to the present invention, FIG. 3 is a diagram showing a conventional instruction execution method, and FIG. FIG. 5 is a diagram showing a conventional instruction execution method, and FIG. 5 is a diagram showing a problem of another conventional example. 1 ... instruction code part, 2 ... parameter part, 2a, 2b, 2c ... parameter part, 2A, 2B, 2C ... parameter part, 3 ... command, 4 ... determination bit (determination flag).

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭58−22452(JP,A) 特開 昭63−172339(JP,A) 特開 昭62−221059(JP,A) 特開 平2−245930(JP,A) 特開 平2−242336(JP,A) 特開 平1−284926(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06F 9/32 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-58-22452 (JP, A) JP-A-63-172339 (JP, A) JP-A-62-221059 (JP, A) JP-A-2- 245930 (JP, A) JP-A-2-242336 (JP, A) JP-A-1-284926 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) G06F 9/32

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】命令コード部(1)、および該命令コード
部(1)に付加するパラメータ部(2)からなるコマン
ド(3)を発行することにより、所定の命令を実行する
命令実行方法であって、 前記パラメータ部(2)に、該パラメータ部(2)に続
くパラメータ部(2)が存在するか否かの判定フラグ
(4)を設け、 前記所定の同一命令を複数回繰り返して実行する場合、
前記命令コード部(1)を1回発行した後、該判定フラ
グ(4)に基づいてパラメータ部(2)を所定の回数発
行することを特徴とする命令実行方法。
An instruction execution method for executing a predetermined instruction by issuing a command (3) comprising an instruction code part (1) and a parameter part (2) added to the instruction code part (1). The parameter section (2) is provided with a determination flag (4) for determining whether or not the parameter section (2) following the parameter section (2) exists, and the predetermined same command is repeatedly executed a plurality of times. If you do
An instruction execution method comprising: issuing the instruction code section (1) once; and issuing the parameter section (2) a predetermined number of times based on the determination flag (4).
JP32483590A 1990-11-26 1990-11-26 Instruction execution method Expired - Fee Related JP2925720B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32483590A JP2925720B2 (en) 1990-11-26 1990-11-26 Instruction execution method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32483590A JP2925720B2 (en) 1990-11-26 1990-11-26 Instruction execution method

Publications (2)

Publication Number Publication Date
JPH04191930A JPH04191930A (en) 1992-07-10
JP2925720B2 true JP2925720B2 (en) 1999-07-28

Family

ID=18170216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32483590A Expired - Fee Related JP2925720B2 (en) 1990-11-26 1990-11-26 Instruction execution method

Country Status (1)

Country Link
JP (1) JP2925720B2 (en)

Also Published As

Publication number Publication date
JPH04191930A (en) 1992-07-10

Similar Documents

Publication Publication Date Title
JP2662534B2 (en) Interrupt method
JPS6250934A (en) Interrupting control system of processor
JP2993975B2 (en) Central processing unit
JP2925720B2 (en) Instruction execution method
JP2553200B2 (en) Information processing device
US6311266B1 (en) Instruction look-ahead system and hardware
JPS601655B2 (en) Data prefetch method
JPH02244338A (en) Test system for data processor
JP2846904B2 (en) Additional processing unit control method
US5854919A (en) Processor and its operation processing method for processing operation having bit width exceeding data width of bit storage unit
KR100246465B1 (en) Apparatus and method for reducing cycle of microprocessor stack order
JP2915680B2 (en) RISC processor
JP3511529B2 (en) Complex arithmetic processing unit
JP3111372B2 (en) Programmable controller
JP2793396B2 (en) Computer status holding device
JP3116444B2 (en) Semiconductor computing equipment and electronic equipment
JPH0585925B2 (en)
CN118642759A (en) Instruction execution method, device, computer equipment, readable storage medium and program product
JP2933569B2 (en) Central processing unit
JPS6149695B2 (en)
JP2752818B2 (en) Asynchronous data input/output processing method
JPH05274242A (en) Asynchronous input/output demon processing system
JPH01223565A (en) Information processor
JPH0259961A (en) Information processor
JPS6349942A (en) Arithmetic processing unit

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080507

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090507

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees