【発明の詳細な説明】〔概要〕複数のレジスタを用いて所定の演算を行う情報処理シス
テムにおいて、各レジスタに対応するレジスタメモリを
設け、情報処理システムが命令実行に伴い、各レジスタ
に蓄積するデータ、並びにデータに施す演算を表示する
記号を順次対応するレジスタメモリに蓄積することによ
り、演算処理過程を詳細に記録するものである。[Detailed Description of the Invention] [Summary] In an information processing system that performs predetermined operations using a plurality of registers, a register memory corresponding to each register is provided, and the information processing system stores information in each register as instructions are executed. Data and symbols representing operations performed on the data are sequentially stored in corresponding register memories, thereby recording the operation processing process in detail.
本発明は、情報処理システム内で演算処理される変数の
演算処理過程を、詳細且つ理解し易く記録可能とする変
数履歴記録方式に関する。The present invention relates to a variable history recording method that enables detailed and easy-to-understand recording of the process of arithmetic processing of variables in an information processing system.
情報処理システムにおいては、処理プログラムを構成す
る複数の命令を順次実行する過程で、多数の変数に各種
の演算が施される。In an information processing system, various operations are performed on a large number of variables in the process of sequentially executing a plurality of instructions constituting a processing program.
情報処理システムの処理結果の正常性を確認する為には
、変数の最終的な演算結果のみならず、変数の演算処理
過程も詳細に把握可能とすることが要望される。In order to confirm the normality of processing results of an information processing system, it is required to be able to understand not only the final calculation results of variables but also the process of processing variables in detail.
第5図は従来ある情報処理システムの一例を示す図であ
る。FIG. 5 is a diagram showing an example of a conventional information processing system.
第5図において、命令実行部1は、プログラムメモリ2
に格納されている、命令11乃至I6から構成される処
理プログラムを順次実行することにより、データメモリ
3に格納されている変数AおよびBに演算を施す。In FIG. 5, the instruction execution unit 1 includes a program memory 2
The variables A and B stored in the data memory 3 are operated on by sequentially executing a processing program consisting of instructions 11 to I6 stored in the data memory 3.
最初に命令実行部1は、命令+1(=LRO/A)を実
行することにより、データメモリ3から変数Aを抽出し
、レジスタ4 (=RO)に蓄積する。First, the instruction execution unit 1 extracts the variable A from the data memory 3 by executing the instruction +1 (=LRO/A), and stores it in the register 4 (=RO).
次に命令実行部1は、命令+2(=Li R1/10
)を実行することにより、レジスタ5 (−R1)に定
数“10”を蓄積する。Next, the instruction execution unit 1 executes the instruction +2 (=Li R1/10
), a constant "10" is accumulated in register 5 (-R1).
次に命令実行部1は、命令+3 (−3FLLR2/2
)を実行することにより、レジスタ5(=R2)の蓄積
内容を左に2桁シフトさせる。Next, the instruction execution unit 1 executes the instruction +3 (-3FLLR2/2
), the accumulated contents of register 5 (=R2) are shifted to the left by two digits.
次に命令実行部1は、命令+4(=A RO。Next, the instruction execution unit 1 executes the instruction +4 (=A RO.
R1/)を実行することにより、レジスタ4 (=RO
)および5(=R1)の蓄積内容を加算し、加算結果を
レジスタ4 (−RO)に蓄積する。By executing R1/), register 4 (=RO
) and 5 (=R1) are added, and the addition result is stored in register 4 (-RO).
次に命令実行部1は、命令+5(−3T PO/B)
を実行することにより、レジスタ4(=RO)の蓄積内
容をデータメモリ3の変数B対応領域に格納する。Next, the instruction execution unit 1 executes the instruction +5 (-3T PO/B)
By executing , the accumulated content of register 4 (=RO) is stored in the area corresponding to variable B of data memory 3.
次に命令実行部1は、命令16(−Li R1/1)
を実行することにより、レジスタ5(=R1)の蓄積内
容を定数“1″に更新する。Next, the instruction execution unit 1 executes the instruction 16 (-Li R1/1)
By executing , the accumulated content of register 5 (=R1) is updated to constant "1".
以上の演算処理により、最終結果のみがデータメモリ3
の変数B対応領域に格納されている。Through the above calculation processing, only the final result is stored in the data memory 3.
is stored in the variable B corresponding area.
以上の説明から明らかな如く、従来ある情報処理システ
ムにおいては、データメモリ3の変数Bを読出すことに
より、命令11乃至I6による演算処理の最終結果のみ
は得られるが、演算処理過程(即ちA+10X2” =
B)は得られず、処理プログラムの正常性の確認等に充
分な情報が得られぬ欠点があった。As is clear from the above description, in a conventional information processing system, by reading variable B of the data memory 3, only the final results of the arithmetic processing by instructions 11 to I6 can be obtained; ” =
B) could not be obtained, and there was a drawback that sufficient information could not be obtained to confirm the normality of the processing program.
C問題点を解決するための手段〕情報処理システムにおいて実行される命令形式は、下記
の二形式の何れかに含まれる。Means for Solving Problem C] The instruction formats executed in the information processing system are included in either of the following two formats.
rl/a2rl、r2/ds、dl(但しrlおよびr2はレジスタ、a2はデータ等、d
sおよびdlはレジスタr2の一部を指定する情報)本発明は以上の点に着目し、下記の手段を講じて前記問
題点を解決する。rl/a2 rl, r2/ds, dl (rl and r2 are registers, a2 is data etc., d
(s and dl are information specifying a part of register r2) The present invention focuses on the above points and takes the following measures to solve the above problems.
第1図は本発明の原理を示す図である。FIG. 1 is a diagram showing the principle of the present invention.
第1図においては、各レジスタ100に対応するレジス
タメモリ200と、情報処理システムの実行する命令を
解析し、各レジスタ100に蓄積されるデータ、並びに
該データに施す演算を表示する記号を順次対応するレジ
スタメモリ200に格納する命令解析制御手段300と
を設ける。In FIG. 1, the register memory 200 corresponding to each register 100 and symbols representing the data stored in each register 100 and the operation performed on the data are sequentially mapped by analyzing instructions executed by the information processing system. An instruction analysis control means 300 for storing instructions in a register memory 200 is provided.
即ち本発明によれば、各レジスタメモリ200に、各レ
ジスタ100に蓄積されたデータ、並びに該データに施
された演算が順次記録されることとなる。従って各レジ
スタメモリ200の記録内容を適宜読出すことにより、
最終的な演算結果のみならず、演算処理過程が詳細に、
理解し易い記号で得られることとなり、処理プログラム
の正常性の確認等に充分な情報が得られることとなる。That is, according to the present invention, data accumulated in each register 100 and operations performed on the data are sequentially recorded in each register memory 200. Therefore, by reading the recorded contents of each register memory 200 as appropriate,
Not only the final calculation result but also the calculation processing process is detailed.
The information can be obtained using easy-to-understand symbols, and sufficient information can be obtained to confirm the normality of the processing program.
以下、本発明の一実施例を図面により説明する。An embodiment of the present invention will be described below with reference to the drawings.
第2図は本発明の一実施例による変数履歴記録方式を示
す図であり、第3図はレジスタ4の記録過程の一例を示
す図であり、第4図はレジスタ5の記録過程の一例を示
す図である。なお、全図を通じて同一符号は同一対象物
を示す。FIG. 2 is a diagram showing a variable history recording method according to an embodiment of the present invention, FIG. 3 is a diagram showing an example of the recording process of the register 4, and FIG. 4 is a diagram showing an example of the recording process of the register 5. FIG. Note that the same reference numerals indicate the same objects throughout the figures.
第2図においては、複数のレジスタ100に対応してレ
ジスタ4および5が、複数のレジスタメモリ200に対
応してレジスタメモリ7および8が、また命令解析制御
手段400に対応して命令解析制御部9が、それぞれ設
けられている。In FIG. 2, registers 4 and 5 correspond to a plurality of registers 100, register memories 7 and 8 correspond to a plurality of register memories 200, and an instruction analysis control unit corresponds to an instruction analysis control means 400. 9 are provided respectively.
第2図乃至第4図において、命令実行部1はプログラム
メモリ2に格納されている命令11乃至I6を、第5図
におけると同様の過程で順次実行する。2 to 4, the instruction execution section 1 sequentially executes instructions 11 to I6 stored in the program memory 2 in a process similar to that in FIG. 5.
最初に命令実行部1が命令+1 (=L RO/A
)を実行すると、命令解析制御部9は命令実行部1が実
行した命令11をバス6を介して抽出して分析し、レジ
スタ4 (=RO)に変数Aを蓄積したことを認識し
、レジスタ4に対応するレジスタメモリ7のアドレスa
−00に、識別フラグデーデータフラグDと変数Aとを
格納する〔第3図+81参照〕。First, the instruction execution unit 1 executes the instruction +1 (=L RO/A
), the instruction analysis control unit 9 extracts and analyzes the instruction 11 executed by the instruction execution unit 1 via the bus 6, recognizes that variable A has been stored in register 4 (=RO), and Address a of register memory 7 corresponding to 4
The identification flag day data flag D and variable A are stored in -00 (see Figure 3 +81).
次に命令実行部1が命令+2(−Li R1/10)
を実行すると、命令解析制御部9は命令実行部1が実行
した命令I2をバス6を介して抽出して分析し、レジス
タ5(=RI)に定数″10”を蓄積したことを認識し
、レジスタ5に対応するレジスタメモリ8のアドレスa
=10に、識別フラグデーデータフラグDと定数“10
”とを格納する〔第3図+81参照〕。Next, instruction execution unit 1 executes instruction +2 (-Li R1/10)
When executed, the instruction analysis control unit 9 extracts the instruction I2 executed by the instruction execution unit 1 via the bus 6, analyzes it, recognizes that the constant "10" has been stored in the register 5 (=RI), Address a of register memory 8 corresponding to register 5
= 10, the identification flag day data flag D and the constant "10
” [See Figure 3 +81].
次に命令実行部1が命令+3 (−3FLL R2/
2)を実行すると、命令解析制御部9は命令実行部1が
実行した命令I3をバス6を介して抽出して分析し、レ
ジスタ5(=R1)の蓄積内容を左に2桁シフトさせた
ことを認、議し、左に2桁シフトさせることを定数22
を乗することに変換し、レジスタ5に対応するレジスタ
メモリ8のアドレスa−11に、識別フラグデーデータ
フラグDと定数“2! ”とを格納し、続いてレジスタ
メモリ8のアドレスa−12に、識別フラグf−演算フ
ラグOpと演算子“×”とを格納する〔第4図(′b)
参照〕。Next, the instruction execution unit 1 executes the instruction +3 (-3FLL R2/
When 2) is executed, the instruction analysis control unit 9 extracts and analyzes the instruction I3 executed by the instruction execution unit 1 via the bus 6, and shifts the accumulated contents of the register 5 (=R1) by two digits to the left. The constant 22 is used to shift two digits to the left.
The identification flag day data flag D and the constant "2!" are stored in the address a-11 of the register memory 8 corresponding to the register 5, and then the address a-12 of the register memory 8 is stored. The identification flag f-operation flag Op and the operator "x" are stored in [Figure 4 ('b)]
reference〕.
次に命令実行部1が命令+4 (−A RO,R1
/)を実行すると、命令解析制御部9は命令実行部1が
実行した命令■4をバス6を介して抽出して分析し、レ
ジスタ4 (=RO)および5 (−R1)の蓄積内容
を加算し、加算結果をレジスタ4 (−RO)に蓄積し
たことを認識し、レジスタ5に対応するレジスタメモリ
8の総ての蓄積内容(a=10乃至12)を、レジスタ
4に対応するレジスタメモリ7のアドレスミニ01乃至
03転送した後、レジスタメモリ7のアドレスa−04
に、識別フラグf=演算フラグOpと演算子“+”とを
格納する〔第3図(bl参照〕。Next, the instruction execution unit 1 executes the instruction +4 (-A RO, R1
/), the instruction analysis control unit 9 extracts and analyzes the instruction ■4 executed by the instruction execution unit 1 via the bus 6, and stores the accumulated contents of registers 4 (=RO) and 5 (-R1). It is recognized that the addition result is stored in register 4 (-RO), and all stored contents (a=10 to 12) of register memory 8 corresponding to register 5 are stored in the register memory corresponding to register 4. After transferring addresses mini 01 to 03 of register memory 7, address a-04 of register memory 7 is transferred.
The identification flag f=operation flag Op and the operator "+" are stored in FIG. 3 (see bl).
次に命令実行部1が命令15 (=ST PO/B)
を実行すると、命令解析制御部9は命令実行部1が実行
した命令I5をバス6を介して抽出して分析し、レジス
タ4 (=RO)の蓄積内容をデータメモリ3の変数B
対応領域に格納したことを認識し、レジスタメモリ7の
蓄積内容を特に変更しない。Next, instruction execution unit 1 executes instruction 15 (=ST PO/B)
When executed, the instruction analysis control unit 9 extracts and analyzes the instruction I5 executed by the instruction execution unit 1 via the bus 6, and stores the accumulated contents of the register 4 (=RO) in the variable B of the data memory 3.
It is recognized that the data has been stored in the corresponding area, and the contents stored in the register memory 7 are not particularly changed.
次に命令実行部1が命令16(=Li R1/1)を
実行すると、命令解析制御部9は命令実行部1が実行し
た命令I6をバス6を介して抽出して分析し、レジスタ
5(=R1)の蓄積内容を定数″1″に更新したことを
認識し、レジスタ5に対応するレジスタメモリ8の記録
内容を履歴メモリ10に転送した後、新たにアドレスa
=10に、識別フラグf=データフラグDと定数“1”
とを格納する〔第4図(C1参照〕。Next, when the instruction execution unit 1 executes the instruction 16 (=Li R1/1), the instruction analysis control unit 9 extracts the instruction I6 executed by the instruction execution unit 1 via the bus 6, analyzes it, and stores it in the register 5 ( =R1) has been updated to the constant "1", and after transferring the recorded content of the register memory 8 corresponding to the register 5 to the history memory 10, the new address a is
= 10, identification flag f = data flag D and constant “1”
[See Figure 4 (C1)].
以上の説明から明らかな如く、本実施例によれば、レジ
スタメモリ7および8には、命令実行部1が命令11乃
至■6を実行する際に、それぞれ対応するレジスタ4お
よび5に蓄積したデータおよび該データに施した演算過
程が記録されており、またレジスタメモリ7および8の
記録内容が更新される場合には、過去の記録内容が履歴
メモリ10に格納される為、レジスタメモリ7.8或い
は履歴メモリ10の記録内容を読出すことにより、最終
演算結果のみならず、各演算過程が詳細に且つ理解し易
い記号で把握可能となる。As is clear from the above description, according to the present embodiment, when the instruction execution unit 1 executes the instructions 11 to 6, the register memories 7 and 8 store the data accumulated in the corresponding registers 4 and 5, respectively. and the calculation process applied to the data are recorded, and when the recorded contents of register memories 7 and 8 are updated, the past recorded contents are stored in the history memory 10, so register memories 7.8 Alternatively, by reading the recorded contents of the history memory 10, not only the final calculation result but also each calculation process can be grasped in detail and with easy-to-understand symbols.
なお、第2図乃至第4図はあく迄本発明の一実施例に過
ぎず、例えば命令実行部1が実行する処理プログラムの
構成は図示されるものに限定されることは無く、他に幾
多の変形が考慮されるが、何れの場合にも本発明の効果
は変わらない。また情報処理システムの構成は図示され
るものに限定されることは無く、他に幾多の変形が考慮
されるが、何れの場合にも本発明の効果は変わらない。It should be noted that FIGS. 2 to 4 are only one embodiment of the present invention, and for example, the structure of the processing program executed by the instruction execution unit 1 is not limited to that shown in the figures, and there may be many others. Although the following modifications are considered, the effects of the present invention remain unchanged in either case. Further, the configuration of the information processing system is not limited to that shown in the drawings, and many other modifications may be considered, but the effects of the present invention remain the same in any case.
以上、本発明によれば、前記情報処理システムにおいて
、最終的な演算結果のみならず、演算処理過程が詳細に
且つ理解し易い記号で得られることとなり、処理プログ
ラムの正常性の確認等に充分な情報が得られることとな
る。As described above, according to the present invention, in the information processing system, not only the final calculation result but also the calculation processing process can be obtained in detail and in easy-to-understand symbols, which is sufficient for confirming the normality of the processing program. You will be able to obtain the following information.
第1図は本発明の原理を示す図、第2図は本発明の一実
施例による変数履歴記録方式を示す図、第3図はレジス
タ4の記録過程の一例を示す図、第4図はレジスタ5の
記録過程の一例を示す図、第5図は従来ある情報処理シ
ステムの一例を示す図である。図において、1は命令実行部、2はプログラムメモリ、
3はデータメモリ、4.5および100はレジスタ、6
はバス、7.8および200はレジスタメモリ、9は命
令解析制御部、10は履歴メモリ、300は命令解析制
御手段、AおよびBは変数、aはアドレス、Dはデータ
フラグ、Opは演算フラグ、を示す。FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is a diagram showing a variable history recording method according to an embodiment of the present invention, FIG. 3 is a diagram showing an example of the recording process of the register 4, and FIG. FIG. 5 is a diagram showing an example of a recording process in the register 5, and is a diagram showing an example of a conventional information processing system. In the figure, 1 is an instruction execution unit, 2 is a program memory,
3 is data memory, 4.5 and 100 are registers, 6
is a bus, 7.8 and 200 are register memories, 9 is an instruction analysis control unit, 10 is a history memory, 300 is an instruction analysis control means, A and B are variables, a is an address, D is a data flag, and Op is an operation flag , is shown.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60152868AJPS6214242A (en) | 1985-07-11 | 1985-07-11 | Variable history recording method |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60152868AJPS6214242A (en) | 1985-07-11 | 1985-07-11 | Variable history recording method |
| Publication Number | Publication Date |
|---|---|
| JPS6214242Atrue JPS6214242A (en) | 1987-01-22 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60152868APendingJPS6214242A (en) | 1985-07-11 | 1985-07-11 | Variable history recording method |
| Country | Link |
|---|---|
| JP (1) | JPS6214242A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5638508A (en)* | 1987-07-17 | 1997-06-10 | Hitachi, Ltd. | Method and a system for processing a log record |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5638508A (en)* | 1987-07-17 | 1997-06-10 | Hitachi, Ltd. | Method and a system for processing a log record |
| Publication | Publication Date | Title |
|---|---|---|
| JPH0248931B2 (en) | ||
| JPS6214242A (en) | Variable history recording method | |
| JPS62140137A (en) | Data retention method using ALU | |
| JPH11312085A (en) | Processor | |
| JP2731047B2 (en) | Program operand check method | |
| JP2556083B2 (en) | Complex arithmetic pipeline circuit | |
| JP2895892B2 (en) | Data processing device | |
| JP4433492B2 (en) | Data exchange method with programmable controller | |
| JPH0520140U (en) | Information processing equipment | |
| JPH04181454A (en) | Data access controller | |
| JPH02247758A (en) | Control system for terminal information | |
| JPH02110744A (en) | information processing equipment | |
| JPS6123239A (en) | Control method for data processing device and data processing device therefor | |
| JPS63188230A (en) | information processing equipment | |
| JPH0242587A (en) | Image processing device | |
| JPH0319570B2 (en) | ||
| JPH06332508A (en) | Programmable controller | |
| JPS61230190A (en) | Memory for multiwindow display | |
| JPS61249140A (en) | Microprogram controller | |
| JPS6160132A (en) | Data type control method | |
| JPS6014335A (en) | information processing equipment | |
| JPH04242871A (en) | Write module for data flow calculator | |
| JPH0426494B2 (en) | ||
| JPS61168055A (en) | Information processor | |
| JPS6243746A (en) | Tagged data control method |