JPS61279935A - Program processing system - Google Patents

Program processing system

Info

Publication number
JPS61279935A
JPS61279935A JP60120649A JP12064985A JPS61279935A JP S61279935 A JPS61279935 A JP S61279935A JP 60120649 A JP60120649 A JP 60120649A JP 12064985 A JP12064985 A JP 12064985A JP S61279935 A JPS61279935 A JP S61279935A
Authority
JP
Japan
Prior art keywords
operand
information
program
section
program code
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
JP60120649A
Other languages
Japanese (ja)
Inventor
Toyohiro Nakanouchi
中野内 豊広
Hiroshi Kikuchi
洋 菊地
Yoshinobu Machida
町田 善信
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP60120649A priority Critical patent/JPS61279935A/en
Publication of JPS61279935A publication Critical patent/JPS61279935A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To improve the using efficiency of a program memory as well as the processing speed by adding the arithmetic condition information to each instruction word of a program. CONSTITUTION:A CPU 1 reads an operating part OP1 out of a program memory 2 and fetches it to an arithmetic part 11 to check the arithmetic condition information 5A. If the information 5A is equal to 1, the CPU 1 reads again an operand 61 out of the memory 2 to write it to an operand information storage part 12 and executes the processing of the part OP1 read previously. Then an operating part OP2 is read out and the operand information is extracted out of the part 12 of the part 11 when the information 5A is equal to 0. Then the operand information is executed together with the contents of the OP2 fetched previously.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、プログラム制御装置の如き情報処理装置に
おけるプログラム処理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program processing method in an information processing device such as a program control device.

〔従来の技術〕[Conventional technology]

一般に、かかる情報処理装置においては、プログラムメ
モリに記憶されているグログ2ムコードを中央処理部に
よって実行することにより、所定の処理が行なわれる。
Generally, in such an information processing device, a predetermined process is performed by executing a log code stored in a program memory by a central processing unit.

なお、プログラムコード(命令語)は処理命令部(オペ
レーションコード部または操作部ともいう。)と処理演
算情報部(オペランド部ともいう。)とからなり、これ
らによってその処理内容が決定される。
Note that the program code (instruction word) consists of a processing instruction section (also referred to as an operation code section or operation section) and a processing operation information section (also referred to as an operand section), which determine the processing content.

第4図には、プログラムメモリに記憶されたプログラム
の例が示されており、51〜53によって操作部を、ま
た61〜63によってオペランド部をそれぞれ示してい
る。
FIG. 4 shows an example of a program stored in the program memory, with 51 to 53 representing operating sections and 61 to 63 representing operand sections.

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

しかしながら、このような方式では第4図の如く、オペ
ランド部61.62.63が互いに同じであっても操作
部51,52.53が互いに異なるときは、各命令語毎
にオペランド部を定義して処理内容を指定しなげればな
らず、このためプログラムメモリ容量が増加し、さらに
は処理速度の低下を招くという問題がある。
However, in such a system, as shown in FIG. 4, even if the operand parts 61, 62, and 63 are the same, when the operation parts 51, 52, and 53 are different from each other, an operand part is defined for each instruction word. Therefore, the program memory capacity increases, and furthermore, the processing speed decreases.

したがって、この発明は着目する命令語のオペランド部
が1つ前の命令語のオペランド部と同じである場合はそ
の指定を省略し得るようにして、プログラムメモリの使
用効率を高める(メモリ容量の低減を抑制する)ととも
に、処理速度の向上を図ることを目的とする。
Therefore, in the present invention, when the operand part of the instruction word of interest is the same as the operand part of the previous instruction word, its specification can be omitted, thereby increasing the efficiency of program memory use (reducing memory capacity). The purpose is to improve processing speed.

〔問題点を解決するための手段〕[Means for solving problems]

各プログラムコードに演算条件情報を付加するとともに
、前回に実行されたプログラムコードのオペランド情報
を記憶するオペランド情報記憶部を設ける。
An operand information storage section is provided which adds calculation condition information to each program code and stores operand information of the program code executed last time.

〔作用〕[Effect]

プログラムメモリからプログラムコードを読み出す度に
、上記演算条件情報を参照してそのオペランド部が1つ
前のプログラムコードのオペランド部と同じか否かを調
べ、少なくとも同じである場合は上記オペランド情報記
憶部に記憶された内容にもとづいて所定のプログラムを
実行することにより、プログラムメモリの使用効率を高
め、処理速度の向上を図るようにする。
Every time a program code is read from the program memory, it is checked whether the operand part is the same as the operand part of the previous program code by referring to the operation condition information, and if it is at least the same, the operand information storage section By executing a predetermined program based on the contents stored in the memory, the usage efficiency of the program memory is increased and the processing speed is improved.

〔実施例〕〔Example〕

第1図はこの発明の実施例を示す概要図、第2図はこの
発明による命令語のフォーマットを示す構成図、第3図
はこの発明によりプログラムメモリに記憶されるプログ
ラム例を示す参照図である。
FIG. 1 is a schematic diagram showing an embodiment of the invention, FIG. 2 is a configuration diagram showing the format of an instruction word according to the invention, and FIG. 3 is a reference diagram showing an example of a program stored in a program memory according to the invention. be.

第1図からも明らかなように、バス3を介してプログラ
ムメモリ2と接続される中央処理部(CPU)IK、演
算部11の他に前オペランド情報記憶部12を設けた点
が特徴であり、これにより演算部11にて前回実行した
命令語のオペランド情報を記憶するようにする。
As is clear from FIG. 1, the feature is that in addition to the central processing unit (CPU) IK and the arithmetic unit 11 connected to the program memory 2 via the bus 3, a previous operand information storage unit 12 is provided. , so that the operand information of the instruction word executed last time in the arithmetic unit 11 is stored.

一方、各命令語の操作部には第2図の如く、演算条件情
報部5人が付加される。これは該当命令語のオペランド
部がその1つ前の命令語のオペランド部と同じでちるか
どうかを示す部分であり、同じ場合は例えばat o”
、異なる場合は″1”がそれぞれ記憶される。
On the other hand, as shown in FIG. 2, five calculation condition information sections are added to the operation section for each command word. This is a part that indicates whether the operand part of the relevant instruction word is the same as the operand part of the previous instruction word. If they are the same, for example, at o"
, if they are different, "1" is stored respectively.

こ−で、とのような命令語によって構成され、プログラ
ムメモリに記憶されるプログラムが第3図の如く示され
る場合の第1図の動作について説明する。なお、第3図
において、!M、52.53は操作部、5Aは演算条件
情報部、61はオペランド部である。
The operation of FIG. 1 will now be described in the case where a program consisting of command words such as and stored in the program memory is shown as shown in FIG. 3. In addition, in Figure 3, ! M, 52 and 53 are operation sections, 5A is an operation condition information section, and 61 is an operand section.

まf、CPU1はバス3を介してプログラムメモリ2か
ら操作部OP1を読み出し、これを演算部11に取り込
んで演算条件情報5Aをチェックする。第3図の例では
この情報5Aが1”であるので、CPU1は再びバス3
を介してプログラムメモリ2からオペランド61を読み
出してこれを演算部11に堆り込むとともに、前オペラ
ンド情報記憶部12に書き込み、先に読み込んだ操作部
OP1の処理を実行し、終了する。次いで、CPU1は
同様にプログラムメモリ2から操作部OP2を読み出し
、これを演算部11に取り込んでその演算条件情報5A
をチェックする。この場合、演算条件情報は“0”、つ
まり前回のオペランドと同じであるので、演算部11は
前オペランド情報記憶部12からオペランド情報を取り
出し、先に取り込んでいる操作部OP2の内容と合わせ
て処理を実行し、終了する。
Furthermore, the CPU 1 reads out the operation section OP1 from the program memory 2 via the bus 3, imports it into the calculation section 11, and checks the calculation condition information 5A. In the example of FIG. 3, this information 5A is 1", so the CPU 1 again
The operand 61 is read out from the program memory 2 via the program memory 2 and stored in the arithmetic unit 11, and is also written into the previous operand information storage unit 12 to execute the process of the previously read operation unit OP1, and ends. Next, the CPU 1 similarly reads out the operation section OP2 from the program memory 2, imports it into the calculation section 11, and stores the operation condition information 5A.
Check. In this case, the operation condition information is "0", that is, the same as the previous operand, so the operation section 11 retrieves the operand information from the previous operand information storage section 12 and combines it with the contents of the operation section OP2 that was previously taken in. Execute the process and exit.

↓ 以下、同様にしてプログラムメモリ2から取り    
   1出した演算条件情報5Aが′1”のときは、そ
のオペランド情報は前回のそれと異なっているので、C
PU1ではプログラムメモリ2からオペランドを取り込
み、これを前オペランド情報記憶部12       
(へ書き込んでから処理を実行する一方、演算条件fl
fIi5A””°″001・”< 9 y )”“11
    。
↓ The following steps are taken from program memory 2 in the same way.
When the operation condition information 5A that issued 1 is '1', the operand information is different from the previous one, so C
The PU 1 fetches the operand from the program memory 2 and stores it in the previous operand information storage section 12.
(While executing the process after writing to (), the calculation condition fl
fIi5A""°"001・"<9 y)""11
.

のそれと同じなので、CPU1では前オペランド情報記
憶部12からのオペランドにもとづいて処理を実行する
The CPU 1 executes processing based on the operand from the previous operand information storage section 12.

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

この発明によれば、プログラムの各命令語に演算条件情
報を付加することにより、同じオペランド情報が続く場
合にはオペランド情報の記述を省略し得るので、プログ
ラムメモリの使用効率を高めることかできるだけでなく
、プログラムの作成が容易となり、さらにはプログラム
メモリに対するアクセス回数の減少により、処理速度の
向上を図り得る利点がもたらされる。また、成る条件が
成立したときに実行するような命令群をプログラムする
場合等に、この成る条件を演算条件情報とすることによ
り、この命令群をその先頭1ケ所だけの定義で済ませる
ことができ、プログラムメモリの使用効率を大幅に高め
ることができる。さらに、この演算条件情報はプログラ
ムメモリの命令部に1ビツト追加するだけでよいので、
命令部に大きな負担を掛けずに実現することが可能であ
る。
According to this invention, by adding operation condition information to each instruction word of a program, it is possible to omit the description of operand information when the same operand information continues, so that it is possible to improve the efficiency of program memory usage. This makes it easier to create a program, and furthermore, the reduction in the number of accesses to the program memory brings about the advantage of improving processing speed. In addition, when programming a group of instructions that are executed when a condition is met, by using this condition as operation condition information, you can define only one position at the beginning of the instruction group. , the efficiency of program memory usage can be greatly increased. Furthermore, since this calculation condition information only needs to be added to the instruction section of the program memory,
This can be achieved without placing a large burden on the instruction section.

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

第1図はこの発明の実施例を示す概要図、第2図はこの
発明による命令語のフォーマットを示す構成図、第3図
はこの発明によってプログラムメモリに記憶されるプロ
グラム例を示す膠照図、第4図はプログラムメモリに記
憶される従来のプログラム例を示す参照図である。 符号説明 1011.・・中央処理部、2・・・・・・プログラム
メモリ、3・・・・・・バス、5,51,52.53・
・・・・・処理命令部(操作部)、61〜63・・・・
・・処理演算情報部(オペランド部)、5A・・・・・
・演算条件情報部、11・・・・・・演算部、12・・
・・・・前オペランド情報記憶部。 代理人 弁理士 並 木 昭 夫 代理人 弁理士 松 崎    清 第1図 第 3511 、qA 冨4 図
FIG. 1 is a schematic diagram showing an embodiment of the invention, FIG. 2 is a configuration diagram showing the format of an instruction word according to the invention, and FIG. 3 is a diagram showing an example of a program stored in a program memory according to the invention. , FIG. 4 is a reference diagram showing an example of a conventional program stored in a program memory. Code explanation 1011. ... Central processing unit, 2 ... Program memory, 3 ... Bus, 5, 51, 52.53.
...Processing instruction section (operation section), 61 to 63...
...Processing calculation information section (operand section), 5A...
・Calculation condition information section, 11...Calculation section, 12...
...Previous operand information storage section. Agent Patent Attorney Akio Namiki Agent Patent Attorney Kiyoshi Matsuzaki Figure 1 Figure 3511, qA Tomi 4 Figure

Claims (1)

【特許請求の範囲】[Claims] 中央処理部と、該中央処理部にて実行すべきプログラム
コードを記憶するプログラムメモリとを備えてなる情報
処理システムにおいて、前記各プログラムコードにはそ
のオペランド部が1つ前のプログラムコードのオペラン
ド部と同じであるか否かを示す演算条件情報を付加する
とともに、前記中央処理部には前回に実行されたプログ
ラムコードのオペランド情報を記憶するオペランド情報
記憶部を設け、中央処理部は前記プログラムメモリから
プログラムコードを読み出す度に前記演算条件情報を参
照してそのオペランド部が1つ前のプログラムコードの
オペランド部と同じか否かを調べ、少なくとも同じであ
る場合は前記オペランド情報記憶部に記憶された内容に
もとづいて所定のプログラムを実行することを特徴とす
るプログラム処理方式。
In an information processing system comprising a central processing unit and a program memory storing a program code to be executed by the central processing unit, each program code has an operand part that is the same as the operand part of the previous program code. The central processing section is provided with an operand information storage section that stores operand information of the program code executed last time, and the central processing section stores the operand information of the program code executed last time. Each time a program code is read out, it is checked whether the operand part is the same as the operand part of the previous program code by referring to the operation condition information, and if it is at least the same, it is stored in the operand information storage part. A program processing method characterized in that a predetermined program is executed based on the contents of the program.
JP60120649A 1985-06-05 1985-06-05 Program processing system Pending JPS61279935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60120649A JPS61279935A (en) 1985-06-05 1985-06-05 Program processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60120649A JPS61279935A (en) 1985-06-05 1985-06-05 Program processing system

Publications (1)

Publication Number Publication Date
JPS61279935A true JPS61279935A (en) 1986-12-10

Family

ID=14791452

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60120649A Pending JPS61279935A (en) 1985-06-05 1985-06-05 Program processing system

Country Status (1)

Country Link
JP (1) JPS61279935A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS50143433A (en) * 1974-05-01 1975-11-18
JPS585846A (en) * 1981-07-03 1983-01-13 Fuji Electric Co Ltd Instruction processing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS50143433A (en) * 1974-05-01 1975-11-18
JPS585846A (en) * 1981-07-03 1983-01-13 Fuji Electric Co Ltd Instruction processing system

Similar Documents

Publication Publication Date Title
JPS6212529B2 (en)
JPH0298707A (en) Programmable controller
JP2514963B2 (en) Data processing device
JPS61279935A (en) Program processing system
JPS623338A (en) Direct value processing system
JPS63163929A (en) Microprocessor
JPH0218729B2 (en)
JP2883488B2 (en) Instruction processing unit
JP3140028B2 (en) Subroutine argument passing method
JP2883489B2 (en) Instruction processing unit
JPH04167146A (en) Address tracing system for information processor
JPH0667896A (en) Single chip microcomputer
JP2743947B2 (en) Micro program control method
JPS63153637A (en) Data processor
JPS61147333A (en) Register select circuit
JPS6028014B2 (en) microprocessor
JPH0795288B2 (en) Microcomputer
JPS6232540A (en) Information processor
JPS60250476A (en) Processing device
JPH024009B2 (en)
JPH0553804A (en) Parallel processor
JPS6227826A (en) Microprocessor
JPH0752402B2 (en) Data processing device
JPS58225440A (en) Memory controller
JPH077346B2 (en) Data flow computer debugging method