JPH04302B2 - - Google Patents
Info
- Publication number
- JPH04302B2 JPH04302B2 JP1470685A JP1470685A JPH04302B2 JP H04302 B2 JPH04302 B2 JP H04302B2 JP 1470685 A JP1470685 A JP 1470685A JP 1470685 A JP1470685 A JP 1470685A JP H04302 B2 JPH04302 B2 JP H04302B2
- Authority
- JP
- Japan
- Prior art keywords
- operand
- edit
- editing
- read
- digit
- 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
Links
Landscapes
- Executing Machine-Instructions (AREA)
Description
〔産業上の利用分野〕
本発明は、編集処理(以下、EDITと云う)命
令の実行機構を備えたデータ処理装置における
EDIT命令の実行制御方式に関する。
最近の計算機システムの蓄しい進歩に伴つて、
各種の分野において、データを計算機で処理する
ことが多くなつているが、それぞれの分野でのデ
ータの処理量の増大化に伴つて、該データを処理
する計算機システムの処理能力の向上が期待され
るようになつてきた。
このような状況において、特に事務計算の分野
においては、例えば、コボルミツクス(COBOL
MIX)等によつて、該計算機システムで使用さ
れる命令の使用頻度を見ると、EDIT命令の占め
る比率が、例えば10%程度と大きく、多少ハード
ウエアを追加しても、当該EDIT命令の処理効率
を向上させることにより、計算機システム全体の
スループツトを向上させたいと云う要求が強くな
つてきた。
〔従来の技術〕
計算機システム、特に事務用計算機システムで
使用されるEDIT命令は、例えば、10進数で表現
されるソースデジツトをプリントアウトする際、
特定のフオーマツトに変換する時等に使用される
もので、その命令形式はSS型で示される。即ち、
[Industrial Application Field] The present invention relates to a data processing device equipped with an editing processing (hereinafter referred to as EDIT) instruction execution mechanism.
Concerning the execution control method of the EDIT command. With recent advances in computer systems,
In various fields, data is increasingly being processed by computers, and as the amount of data processed in each field increases, it is expected that the processing power of computer systems that process that data will improve. It's starting to feel like this. In this situation, especially in the field of business calculations, for example, COBOL
Looking at the usage frequency of the instructions used in the computer system, such as MIX), the ratio of EDIT instructions is large, for example, around 10%, and even if some hardware is added, the processing of the EDIT instructions There has been a growing demand to improve the throughput of the entire computer system by improving efficiency. [Prior Art] The EDIT command used in computer systems, especially office computer systems, is used, for example, when printing out source digits expressed in decimal numbers.
It is used when converting to a specific format, and its command format is indicated by the SS type. That is,
この目的は、編集内容を指示する…達成され
る。」を「この目的は、データレングスLと、オ
ペランド1(OP1)と、オペランド2(OP2)とか
ら構成され、上記オペランド1(OP1)で編集パ
ターン文字を指示し、上記オペランド2(OP2)
でソースデジツトを指示し、上記データレングス
Lで、上記編集処理に使用するオペランド1
(OP1)のデータ長nバイトを指示し、上記オペ
ランド1(OP1)が指示するnバイトの編集パタ
ーン文字に基づいて、対応するオペランド2
(OP2)が指示するソースデジツトに対して編集
処理を行う編集処理(EDIT)命令の実行機構を
備えたデータ処理装置において、上記オペランド
1(OP1)とオペランド2(OP2)がページクロス
をしているか否かを検出するアドレスチエツク機
構5と、上記オペランド1(OP1)を1バイト読
み出す毎に、ソースデジツトが必要か否かをチエ
ツクして、該ソースデジツトが必要なとき、上記
ソースデジツトを読み出したことを示すフラグビ
ツト(F−FL)6をセツトする機構とを備え、
上記アドレスチエツク機構5で、該オペランド1
(OP1)とオペランド2(OP2)がページクロスを
していないことが検出されたときは、上記オペラ
ンド1(OP1)の編集内容を指示する編集パター
ン文字を主記憶装置(MSU)1から、上記デー
タレングスLが指示するnバイトを読み出し、上
記オペランド1(OP1)の編集パターン文字が指
示する編集処理をn回行つた後、上記既に処理さ
れたnバイトの編集パターン文字について、該編
集処理対象のソースデジツトを読み出したかどう
かを示す上記フラグビツト(F−FL)6をチエ
ツクし、該ソースデジツトを読み出していないこ
とを検出したときのみ、編集処理結果4を上記主
記憶装置(MSU)1に格納しないで、該オペラ
ンド2(OP2)が指示するソースデジツトの部分
に対するアクセス例外チエツクを、上記アドレス
チエツク機構5で行うように制御する本発明の
EDIT命令実行制御方式によつて達成される。
〔作用〕
即ち、本発明によれば、EDIT命令の実行に際
して、OP1,OP2共にページクロスがなければ、
ソースデジツトに対するアクセス例外チエツクを
行うことなく、編集処理(EDIT)の実行が開始
するようにしたものであるので、該アクセス例外
チエツクの為のオーバヘツドを削減することがで
きる効果がある。
但し、上記、EDIT命令のデータレングスLが
指示するnバイト編集処理(EDIT)を実行した
後に、該ソースデジツトをリードしていないこと
をチエツク{後述のフラグビツト(F−FL)6
による}して、該ソースデジツトをリードしてい
ないとき{即ち、上記フラグビツト(F−FL)
6が“オフ”のとき}に限り、該リードしていな
いソースデジツト{即ち、OP2}部分に対するア
クセス例外チエツクが必要となるが、上記のnを
適当な値に設定することにより、チエツクが必要
となる確率を減少させることができる。
〔実施例〕
以下本発明の実施例を図面によつて詳述する。
第1図は本発明の一実施例をブロツク図で示した
ものであり、第2図は本発明を実施して、EDIT
命令を実行した場合の動作を流れ図で示したもの
で、第3図,第4図と同じ符号は同じ対象物,或
いは処理を示しており、第1図におけるフラグビ
ツト(F−FL)6、アンド回路A70,71,
及び、第2図におけるステツプ14〜18が本発明を
実施するのに必要な機能ブロツク、及び動作ステ
ツプである。
先ず、従来方式と同じように、EDIT命令の実
行が開始されると、前記アドレスチエツク部5に
おいて、OP1,OP2のアクセスアドレスについ
て、ページクロスのチエツクが行われ、OP1,
OP2の何れかにおいて、ページクロスを起こして
いると、アクセス例外チエツクに入る。第2図、
ステツプ10参照)
本発明においては、ここで、OP1,OP2の何れ
にもページクロスを起こしていなければ、直ち
に、OP1,OP2がアクセスされ、EDIT制御回路
3において、前述の編集処理(EDIT)が、1バ
イト宛実行される所に特徴がある。(第2図、ス
テツプ13参照)
そして、各パターンのバイトについて、ソース
デジツトの必要性がチエツクされ、若しソースデ
ジツトが必要であると、当該ソースデジツトを主
記憶装置(MSU)1から読み出し、上記フラグ
ビツト(F−FL)6をセツトし、ソースデジツ
トを必要としないパターン、例えば、前述の有効
桁開始文字(SS),数字選択文字(DS)である
と、該フラグビツト(F−FL)6をオフの侭に
して、次のパターンについての編集処理
(EDIT)に入る。
そして、当該EDIT命令が指定するnバイトの
総ての処理が完了する迄、上記編集処理
(EDIT)と、ソースデジツトの必要性チエツク
を繰り返すように動作する。(第2図,ステツプ
13〜16参照)
上記、EDIT命令が指定するnバイトのパター
ンについて、上記編集処理(EDIT)が完了した
時点において、上記フラグビツト(F−FL)6
がオンであると、当該編集処理(EDIT)で必要
となるソースデジツトは、総て読み出され、アク
セス例外等は、上記読み出し時に、アドレスチエ
ツク部5においてチエツクされているので、アン
ド回路A70において論理積を採つた制御信号
(データストア信号)で、D−REG4に格納され
ているnバイト分の編集処理(EDIT)結果を主
記憶装置(MSU)1に格納するように制御する。
若し、上記のフラグビツト(F−FL)6がオ
フであると、当該編集処理(EDIT)において、
ソースデジツトは一度も読み出されていないこと
を意味するので、アンド回路A71において論理
積を採つた制御信号(プリテスト信号)で、末だ
リードしていないOP2についてのアクセス例外チ
エツクを、アドレスチエツク部5で行うように制
御する。(第2図、17,18参照)
このように、本発明においては、EDIT命令が
指定するnバイトの編集処理(EDIT)を完了し
た時点で、ソースデジツトを読み出したかどうか
を示すフラグビツト(F−FL)6を見て、一度
もソースデジツトの読み出しが行われていない時
に限り、該ソースデジツトに対するアクセス例外
チエツクを行うようにした所に特徴があり、該n
の値を適当に設定することにより、上記ソースデ
ジツトに対するアクセス例外チエツクを必要とす
る確率を減少させることができる。
〔発明の効果〕
以下、詳細に説明したように、本発明のEDIT
命令制御方式は、EDIT命令の実行に際して、ア
ドレスチエツク機構で、OP1,OP2共にページク
ロスをしていないことが検出された場合には、該
ソースデジツトのリード/未リードにかかわら
ず、該ソースデジツトに対するアクセス例外チエ
ツクを行うことなく、編集処理(EDIT)の実行
を開始するようにしたものであるので、該アクセ
ス例外チエツクの為のオーバヘツドを削減するこ
とができる効果がある。
This purpose is achieved by directing the editing content. "This purpose consists of data length L, operand 1 (OP1), and operand 2 (OP2). The above operand 1 (OP1) specifies the editing pattern character, and the above operand 2 (OP2)
Indicates the source digit, and the data length L specifies the operand 1 used for the editing process.
(OP1) specifies the data length n bytes, and based on the n-byte editing pattern character specified by operand 1 (OP1) above, the corresponding operand 2
In a data processing device equipped with an execution mechanism for the editing processing (EDIT) command that performs editing processing on the source digit specified by (OP2), is there a page cross between operand 1 (OP1) and operand 2 (OP2)? An address check mechanism 5 detects whether or not the source digit is required, and each time the operand 1 (OP1) is read by one byte, it is checked whether or not the source digit is necessary, and when the source digit is required, it is indicated that the source digit has been read. Equipped with a mechanism for setting flag bit (F-FL) 6,
In the address check mechanism 5, the operand 1
When it is detected that operand 2 (OP1) and operand 2 (OP2) do not cross pages, the edit pattern characters that instruct the editing content of operand 1 (OP1) are transferred from main storage unit (MSU) 1 to the After reading the n bytes specified by the data length L and performing the editing process specified by the edit pattern character of operand 1 (OP1) n times, the editing process target for the n bytes of the already processed edit pattern character is The editing process result 4 is not stored in the main storage unit (MSU) 1 only when the flag bit (F-FL) 6 indicating whether the source digit has been read is checked and it is detected that the source digit has not been read. , the address check mechanism 5 performs an access exception check on the part of the source digit indicated by the operand 2 (OP2).
This is achieved by the EDIT instruction execution control method. [Operation] That is, according to the present invention, if there is no page cross in both OP1 and OP2 when executing the EDIT instruction,
Since execution of the editing process (EDIT) is started without performing an access exception check on the source digit, the overhead for the access exception check can be reduced. However, after executing the n-byte editing process (EDIT) indicated by the data length L of the EDIT command above, check that the source digit is not being read {Flag bit (F-FL) 6 described later
} and the source digit is not being read {i.e., the flag bit (F-FL)
6 is “off”), it is necessary to check the access exception for the unread source digital part {that is, OP2}, but by setting n above to an appropriate value, checking is not necessary. It is possible to reduce the probability of [Examples] Examples of the present invention will be described in detail below with reference to the drawings.
FIG. 1 shows a block diagram of an embodiment of the present invention, and FIG. 2 shows an EDIT
This is a flowchart showing the operation when an instruction is executed. The same reference numerals as in FIGS. 3 and 4 indicate the same objects or processes, and the flag bit (F-FL) 6, and Circuit A70, 71,
Steps 14 to 18 in FIG. 2 are the functional blocks and operational steps necessary to carry out the present invention. First, as in the conventional method, when the execution of the EDIT instruction is started, the address check section 5 performs a page cross check on the access addresses of OP1 and OP2.
If a page cross occurs in any of OP2, an access exception check will occur. Figure 2,
(See step 10) In the present invention, if there is no page cross in either OP1 or OP2, OP1 and OP2 are accessed immediately, and the EDIT control circuit 3 performs the above-mentioned editing process (EDIT). , is unique in that it is executed for one byte. (See step 13 in FIG. 2.) Then, the necessity of a source digit is checked for each byte of the pattern, and if a source digit is necessary, the source digit is read from the main storage unit (MSU) 1, and the flag bit ( If the flag bit (F-FL) 6 is set and the pattern does not require a source digit, such as the above-mentioned significant digit start character (SS) or digit selection character (DS), the flag bit (F-FL) 6 is turned off. and enters editing processing (EDIT) for the next pattern. Then, the above-mentioned editing process (EDIT) and source digit necessity check are repeated until processing of all n bytes specified by the EDIT command is completed. (Figure 2, Step
13 to 16) When the above editing process (EDIT) is completed for the n-byte pattern specified by the above EDIT command, the above flag bit (F-FL) 6 is set.
is on, all source digits required for the editing process (EDIT) are read out, and access exceptions, etc. are checked in the address check section 5 at the time of reading, so the AND circuit A70 checks the logic. A control signal (data store signal) obtained by taking the product controls the editing processing (EDIT) result of n bytes stored in the D-REG 4 to be stored in the main storage unit (MSU) 1. If the above flag bit (F-FL) 6 is off, in the editing process (EDIT),
This means that the source digit has never been read, so the address check unit 5 performs an access exception check for OP2 that has not yet been read using the control signal (pretest signal) that is ANDed in the AND circuit A71. Control the way you do it. (See Figure 2, 17, 18) In this way, in the present invention, when the editing process (EDIT) of n bytes specified by the EDIT command is completed, the flag bit (F-FL) indicating whether or not the source digit has been read is set. ) 6, the feature is that the access exception check for the source digit is performed only when the source digit has never been read.
By appropriately setting the value of , the probability of requiring an access exception check for the source digit can be reduced. [Effects of the Invention] As explained in detail below, the EDIT of the present invention
In the instruction control method, when an EDIT instruction is executed, if the address check mechanism detects that neither OP1 nor OP2 has a page cross, access to the source digit is disabled regardless of whether the source digit is read or not. Since execution of editing processing (EDIT) is started without performing an exception check, the overhead for the access exception check can be reduced.
第1図は本発明の一実施例をブロツク図で示し
た図、第2図は本発明を実施して、EDIT命令を
実施した場合の動作を流れ図で示した図、第3図
は従来技術によつて、EDIT命令を実行する場合
の関連部分をブロツク図で示した図、第4図は従
来技術によるEDIT命令の動作を流れ図で示した
図、である。
図面において、1は主記憶装置(MSU)、2は
S−REG、3はEDIT制御回路、4はD−REG、
5はアドレスチエツク部、6はフラグビツト(F
−FL)、70,71はアンド回路(A)、10〜
18は編集処理(EDIT)動作の各ステツプ、を
それぞれ示す。
Fig. 1 is a block diagram showing an embodiment of the present invention, Fig. 2 is a flowchart showing the operation when the present invention is implemented and an EDIT command is executed, and Fig. 3 is a conventional technique. FIG. 4 is a block diagram showing the relevant parts when executing the EDIT command, and FIG. 4 is a flowchart showing the operation of the EDIT command according to the prior art. In the drawing, 1 is the main storage unit (MSU), 2 is S-REG, 3 is EDIT control circuit, 4 is D-REG,
5 is an address check section, 6 is a flag bit (F
-FL), 70, 71 are AND circuits (A), 10~
Reference numeral 18 indicates each step of the editing processing (EDIT) operation.
Claims (1)
と、オペランド2(OP2)とから構成され、上記
オペランド1(OP1)で編集パターン文字を指示
し、上記オペランド2(OP2)でソースデジツト
を指示し、上記データレングスLで、上記編集処
理に使用するオペランド1(OP1)のデータ長n
バイトを指示し、上記オペランド1(OP1)が指
示するnバイトの編集パターン文字に基づいて、
対応するオペランド2(OP2)が指示するソース
デジツトに対して編集処理を行う編集処理
(EDIT)命令の実行機構を備えたデータ処理装
置において、 上記オペランド1(OP1)とオペランド2
(OP2)がページクロスをしているか否かを検出
するアドレスチエツク機構5と、上記オペランド
1(OP1)を1バイト読み出す毎に、ソースデジ
ツトが必要か否かをチエツクして、該ソースデジ
ツトが必要なとき、上記ソースデジツトを読み出
したことを示すフラグビツト(F−FL)6をセ
ツトする機構とを備え、 上記アドレスチエツク機構5で、該オペランド
1(OP1)とオペランド2(OP2)がページクロス
をしていないことが検出されたときは、上記オペ
ランド1(OP1)の編集内容を指示する編集パタ
ーン文字を主記憶装置(MSU)1から、上記デ
ータレングスLが指示するnバイトを読み出し、
上記オペランド1(OP1)の編集パターン文字が
指示する編集処理をn回行つた後、上記既に処理
されたnバイトの編集パターン文字について、該
編集処理対象のソースデジツトを読み出したかど
うかを示す上記フラグビツト(F−FL)6をチ
エツクし、該ソースデジツトを読み出していない
ことを検出したときのみ、編集処理結果4を、上
記主記憶装置(MSU)1に格納しないで、該オ
ペランド2(OP2)が指示するソースデジツトの
部分に対するアクセス例外チエツクを、上記アド
レスチエツク機構5で行うように制御することを
特徴とする編集処理命令実行制御方式。[Claims] 1 Data length L and operand 1 (OP1)
and operand 2 (OP2), the above operand 1 (OP1) specifies the editing pattern character, the above operand 2 (OP2) specifies the source digit, and the above data length L is used for the above editing process. Data length n of operand 1 (OP1)
Based on the n-byte edit pattern character specified by operand 1 (OP1) above,
In a data processing device equipped with an execution mechanism for an editing processing (EDIT) instruction that performs editing processing on a source digit indicated by a corresponding operand 2 (OP2), the above operand 1 (OP1) and operand 2 are
The address check mechanism 5 detects whether a page cross occurs in (OP2), and checks whether or not a source digit is necessary every time one byte of operand 1 (OP1) is read. A mechanism for setting a flag bit (F-FL) 6 indicating that the source digit has been read is provided, and the address check mechanism 5 detects that operand 1 (OP1) and operand 2 (OP2) have a page cross. If it is detected that there is no edit pattern character indicating the editing content of the operand 1 (OP1), the n bytes indicated by the data length L are read from the main storage unit (MSU) 1, and
After performing the editing process specified by the edit pattern character of operand 1 (OP1) n times, the flag bit () indicating whether or not the source digit to be edited is read out for the already processed n-byte edit pattern character is set. F-FL) 6 and only when it is detected that the source digit has not been read, the editing processing result 4 is not stored in the main storage unit (MSU) 1, but the operand 2 (OP2) instructs it. An editing processing instruction execution control method characterized in that the address check mechanism 5 performs an access exception check on a source digit part.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1470685A JPS61173344A (en) | 1985-01-29 | 1985-01-29 | Editing processing instruction executing control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1470685A JPS61173344A (en) | 1985-01-29 | 1985-01-29 | Editing processing instruction executing control system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61173344A JPS61173344A (en) | 1986-08-05 |
| JPH04302B2 true JPH04302B2 (en) | 1992-01-07 |
Family
ID=11868612
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1470685A Granted JPS61173344A (en) | 1985-01-29 | 1985-01-29 | Editing processing instruction executing control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61173344A (en) |
-
1985
- 1985-01-29 JP JP1470685A patent/JPS61173344A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61173344A (en) | 1986-08-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| GB1512619A (en) | Data processing apparatus | |
| KR940015806A (en) | Data Processing System Providing Extensible Registers and Method Thereof | |
| US5077659A (en) | Data processor employing the same microprograms for data having different bit lengths | |
| EP0240606A2 (en) | Pipe-line processing system and microprocessor using the system | |
| US5483566A (en) | Method and apparatus for modifying the contents of a register via a command bit | |
| JPH08212075A (en) | Information processing device | |
| JPH04302B2 (en) | ||
| JPS6273347A (en) | address translation device | |
| JPH0831033B2 (en) | Data processing device | |
| JPS6226728B2 (en) | ||
| JP3116444B2 (en) | Semiconductor computing equipment and electronic equipment | |
| EP0336091A2 (en) | Pipeline type microprocessor | |
| JP3511529B2 (en) | Complex arithmetic processing unit | |
| JP2524673B2 (en) | Direct memory access device | |
| JPS59229659A (en) | Data processing method | |
| JP2743685B2 (en) | Fixed-point processor | |
| JP2501393B2 (en) | Direct memory access device | |
| JPS6312298B2 (en) | ||
| JPS59123055A (en) | Instruction processing system | |
| JPH0344748A (en) | Read control system for memory data | |
| JPH05334074A (en) | Microprocessor | |
| JPH0683618A (en) | Flag control circuit | |
| JPS6172340A (en) | Pretest control system for editing instruction | |
| JPS61147333A (en) | Register select circuit | |
| JPS6118041A (en) | Arithmetic processor |