JPS5852248B2 - Read data length extraction method - Google Patents
Read data length extraction methodInfo
- Publication number
- JPS5852248B2 JPS5852248B2 JP16165378A JP16165378A JPS5852248B2 JP S5852248 B2 JPS5852248 B2 JP S5852248B2 JP 16165378 A JP16165378 A JP 16165378A JP 16165378 A JP16165378 A JP 16165378A JP S5852248 B2 JPS5852248 B2 JP S5852248B2
- Authority
- JP
- Japan
- Prior art keywords
- data length
- read
- data
- command
- length
- 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
Description
【発明の詳細な説明】
この発明は中央処理装置、主記憶装置、入出力装置から
なる電子計算機に係り、その入出力装置から主記憶装置
に読出したデータの長さを取り出す方式に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an electronic computer comprising a central processing unit, a main memory, and an input/output device, and relates to a method for extracting the length of data read from the input/output device to the main memory.
中央処理装置は種々の入出力装置から主記憶装置へデー
タを読込んでくるが、読込んで来るデータの長さが判明
しない場合がある。The central processing unit reads data from various input/output devices into the main memory, but the length of the data being read may not be known in some cases.
この時読込むデータの最大量を予測または規定してデー
タを読込むのであるが、実際に読込まれたデ・−夕の長
さはデータ読込終了時に必要である。At this time, data is read by predicting or specifying the maximum amount of data to be read, but the length of the data actually read is required at the end of data reading.
読込んだデータ量を知りたい場合、1回の読込台◆終了
の毎に読込まれたデータ量は主記憶の特定番地に割付け
られたチャネル状態語の中に記録されているので、1回
読込が終了する毎にこのチャネル状態語を見れば充分で
ある。If you want to know the amount of data read, you can check the amount of data read once.◆The amount of data read each time the reading is completed is recorded in the channel status word assigned to a specific address in the main memory. It is sufficient to look at this channel state word every time the channel is completed.
一方入出力命令は単一の命令を出すことも複数の命令を
連続して出すこともできる。On the other hand, input/output commands can issue either a single command or multiple commands in succession.
例えば大記憶装置の同一周上にあるデータ群を一度に読
出し。For example, a group of data on the same circuit of a large storage device can be read at once.
たい時、シーク命◆(アームの移動命令)、サーチ命/
+(回転円周上の位置決め命令)、読出命令、サーチ命
令、読出台◆、・・・・・・と命◆を連鎖させることが
できる。When you want, seek command◆ (arm movement command), search command/
It is possible to chain commands ◆ with + (positioning command on the rotational circumference), read command, search command, reading table ◆, . . . .
読出台◆は読出すべきデータの長さを指定しなければな
らず、読込命令で指定した長さと、実際に読出されたデ
ータの長さが異ると命令を連鎖させて出した場合、命令
の連鎖が切られ、入出力装置が一般には割出しを発生さ
せ、その読出命令に続いて連鎖させた命令は実行されな
い。The reading table ◆ must specify the length of the data to be read, and if the length specified in the read command and the length of the data actually read are different, if a chain of commands is issued, the command The chain is broken and the I/O device typically issues an index, and the chained instructions following that read instruction are not executed.
従って読出語長不一致の中断が発生すると、それ以降の
命令を再編成して読出台◆を出し直さなければならない
欠点があった。Therefore, when an interruption occurs due to a read word length mismatch, there is a drawback that subsequent instructions must be reorganized and the reading table ♦ must be reloaded.
別の手法として読出語長不一致による割出しを抑止させ
、あくまでも連鎖した命令を実行させる表示を読出台◆
に付加することも可能である。Another method is to suppress indexing due to read word length mismatch and display a display that executes chained instructions on the readout stand◆
It is also possible to add .
しかしこの時は連鎖された読出命令中、例えば第3番目
の読出台◆の終了時点では、第1ないし第2の読出台全
終了時に書込まれたチャネル状態語は消滅してしまって
おり、実行の終った第3番目の読出台◆に関する情報に
置換っている。However, at this time, during the chained read command, for example, at the end of the third readout board ◆, the channel status word written when all the first and second readout boards are completed has disappeared. It has been replaced with information regarding the third reading stand ♦, which has completed execution.
従ってこの手法を用いれば最後に読込んだ読出台◆のデ
ータ長しか判明しない欠点があ−った。Therefore, if this method is used, there is a drawback that only the data length of the last read platform ◆ can be determined.
この発明は以上の欠点を克服することを目的とし、この
目的は、中央処理装置、主記憶装置、入出力装置からな
る電子計算機において、入力装置から主記憶装置へ読出
したデータの長さを格納するデータ長格納手段と、デー
タ長書出手段とデータ長読出命令を設け、このデータ長
読出命令で指定したデータ長格納手段の中に読出したデ
ータ長を上記データ長書出手段により書込むことにより
達成される。The purpose of this invention is to overcome the above-mentioned drawbacks, and the purpose is to store the length of data read from the input device to the main memory in an electronic computer consisting of a central processing unit, a main memory, and an input/output device. a data length storage means, a data length write means, and a data length read command, and the data length read out is written by the data length write means into the data length storage means specified by the data length read command. This is achieved by
図はこの発明に基く大記憶制御装置の一実施例構成図で
ある。The figure is a configuration diagram of an embodiment of a large storage control device based on the present invention.
図において1は図示されむいチャネル装置とのインター
フェイス制御部、2は連鎖命令の記憶部、3は命令の読
出しレジスタ、4はデコーダ、5はデータ長書出回路、
6は読出データ長カウンタ、7は図示されない大記憶装
置とのインターフェイス・制御部である。In the figure, 1 is an interface control unit with a channel device (not shown), 2 is a chain instruction storage unit, 3 is an instruction read register, 4 is a decoder, 5 is a data length write circuit,
6 is a read data length counter, and 7 is an interface/control unit with a large storage device (not shown).
また連鎖命令記憶部2に記憶された命令の一例であり、
21はシーク命◆、22はサーチ命令、23はサーチ繰
返し命令、24はデータ読出台◆、25はこの発明に基
くデータ長読出命◆、26はサーチ命令、27はサーチ
繰返し命令、28は読出台◆、29はデータ長読出命◆
である。This is also an example of an instruction stored in the chained instruction storage unit 2,
21 is a seek instruction ◆, 22 is a search instruction, 23 is a search repeat instruction, 24 is a data reading board ◆, 25 is a data length read instruction ◆ based on this invention, 26 is a search instruction, 27 is a search repeat instruction, and 28 is a read instruction. ◆, 29 is the data length read order ◆
It is.
ここでデータ読出台◆は、そのオペランドとして主記憶
装置中のアドレスを持っており、このアドレス領域に読
出したデータ長を格納させる命令である。Here, the data reading board ♦ has an address in the main memory as its operand, and is an instruction to store the read data length in this address area.
中灸処理装置からチャネル装置を経由して出された連鎖
命令はインターフェイス制御部1を経て連鎖命令記憶部
2に格納される。The chain command issued from the moxibustion processing device via the channel device is stored in the chain command storage unit 2 via the interface control unit 1.
この連鎖命令記憶部2の内容は一つ一つ命令レジスタ3
に読出され、実行される。The contents of this chained instruction storage unit 2 are stored in the instruction register 3 one by one.
is read and executed.
まずシーク命/+21が取り出され磁気ヘッドのアーム
位置が決定されると、次にサーチ命4>22が摩り出さ
れ、回転円周上のレコードがサーチ命令で探してい゛る
レコードと一致するかを照合する。First, the seek command /+21 is retrieved and the arm position of the magnetic head is determined, and then the search command 4>22 is retrieved to determine whether the record on the rotational circumference matches the record sought by the search command. Verify.
不一致であれば次に実行するサーチ繰返し命令23の指
定により再び次のレコードが探しているレコードと一致
するかの照合を行う。If they do not match, the search repeat command 23 to be executed next is specified to check whether the next record matches the record being searched for.
探しているレコードと一致したレコードが見つかるとデ
ータ読出台Aj?24により読出しを実行する。When a record that matches the one you are looking for is found, the data reader Aj? 24 executes reading.
読出終了後読出したデータの長さが大記憶装置からイン
ターフェイス制御部7を経由し読出データ長カウンタ6
に書込まれる。After the reading is completed, the length of the read data is sent from the large storage device via the interface control unit 7 to the read data length counter 6.
written to.
次にこの発明に基くデータ長読出命令25が命令レジス
タ3に増り出される。Next, a data length read instruction 25 based on the present invention is added to the instruction register 3.
このデータ長読出命◆25がデコーダ4で解読されると
、データ長書込回路5が、読込んだデータ長を示す読出
データ長カウンタ6の値を読出し、データ長読出命4>
25のオペランド部で指定された主記憶装置のアドレス
へ、データ書込回路5で書込む。When this data length read command ◆25 is decoded by the decoder 4, the data length write circuit 5 reads the value of the read data length counter 6 indicating the read data length, and reads the data length read command ◆25.
The data write circuit 5 writes to the address of the main memory specified by the operand section 25.
以下の連鎖命令は同様にサーチ命令26、読出台+27
、サーチ繰返し命4>28、データ長読出命4>29が
実行される。Similarly, the following chain commands are search command 26, reading table +27
, search repeat command 4>28, and data length read command 4>29 are executed.
以上の説明ではデータ長読出命◆のオペランドでデータ
長格納手段として主記憶中のアドレスを示したが、デー
タ長を格納する場所は主記憶に限らず特別なレジスタで
あってもよくレジスタ名を指定しその中に格納すること
も可能である。In the above explanation, the address in the main memory is shown as the means of storing the data length in the operand of the data length read command ◆, but the location where the data length is stored is not limited to the main memory, but may also be a special register. It is also possible to specify and store it there.
以上の説明では大記憶装置について述べたがデータを読
込む入力装置はこれに限るものではなく磁気装置、紙テ
ープ読取装置、等いずれであってもよい。In the above description, a large storage device has been described, but the input device for reading data is not limited to this, and may be a magnetic device, a paper tape reader, or any other device.
以上説明したようにこの発明は入出力装置から読出した
データ長を特定の格納手段と書出すデータ長書出手段と
、データ長読出命◆を設け、このデータ長読出命令で指
定したデータ長格納手段の中に読出したデータ長を上記
データ長書出手段によって書出すことにより、読込デー
タ長の判明しないデータをコマンド連鎖を切断すること
なく読込ませることが可能となった。As explained above, the present invention provides data length writing means for writing the data length read from the input/output device to a specific storage means, and a data length read command ◆, and stores the data length specified by this data length read command. By writing the read data length into the data length writing means, it has become possible to read data whose read data length is unknown without breaking the command chain.
図はこの発明に基く大記憶制御装置の一実施例構成図で
あり、1,7はインターフェイス制御部、2は連鎖記憶
部、3は命令読出レジスタ、4はデコーダ、5はデータ
長書出回路、6はデータ長カウンタ、また25,29は
データ長読出命◆である。The figure is a configuration diagram of an embodiment of a large storage control device based on the present invention, in which 1 and 7 are interface control units, 2 is a chain storage unit, 3 is an instruction read register, 4 is a decoder, and 5 is a data length write circuit. , 6 are data length counters, and 25 and 29 are data length read commands ◆.
Claims (1)
子計算機において、人力装置から主記憶装置へ読出した
データの長さを格納するデータ長格納手段とデータ長書
出手段と、データ長読出命◆を設け、このデータ長読出
命令で指定したデータ長格納手段の中に読出したデータ
長を上記データ長書出手段により書込むことを特徴とr
る読出データ長取出方式、。1. In an electronic computer consisting of a central processing unit, a main memory device, and an input/output device, a data length storage means, a data length write means, and a data length read command for storing the length of data read from the human-powered device to the main memory device. ◆ is provided, and the read data length is written into the data length storage means designated by this data length read command by the data length writing means.
Read data length retrieval method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16165378A JPS5852248B2 (en) | 1978-12-23 | 1978-12-23 | Read data length extraction method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16165378A JPS5852248B2 (en) | 1978-12-23 | 1978-12-23 | Read data length extraction method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5585932A JPS5585932A (en) | 1980-06-28 |
| JPS5852248B2 true JPS5852248B2 (en) | 1983-11-21 |
Family
ID=15739266
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16165378A Expired JPS5852248B2 (en) | 1978-12-23 | 1978-12-23 | Read data length extraction method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5852248B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6111870A (en) * | 1984-08-06 | 1986-01-20 | Hitachi Ltd | channel device |
-
1978
- 1978-12-23 JP JP16165378A patent/JPS5852248B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5585932A (en) | 1980-06-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| GB886889A (en) | Improvements in memory systems for data processing devices | |
| JPS5852248B2 (en) | Read data length extraction method | |
| JPS5931742B2 (en) | Magnetic tape recording and reproducing method | |
| US3696343A (en) | Method of merging data on a two tape drive system | |
| JPS6359618A (en) | How to copy | |
| US4125879A (en) | Double ended stack computer store | |
| JPS63306567A (en) | Rotary type storage device | |
| JP2533484B2 (en) | Magnetic tape control system | |
| JPH0383147A (en) | Semiconductor recorder | |
| KR970000266B1 (en) | Method for writing and reading a data in a memory | |
| JPS58182774A (en) | Control device | |
| JPH036634A (en) | File storing system for floppy disk | |
| JPH0644248B2 (en) | Cache memory positioning system | |
| JPS62177642A (en) | File management system for postscript filing device | |
| JPH05225406A (en) | Ic card extension device | |
| JPS6211746B2 (en) | ||
| JPH05197596A (en) | Tracer | |
| JPS6327795B2 (en) | ||
| JPS6051129B2 (en) | Record information reading processing method | |
| JPH0648506B2 (en) | Information recording device | |
| JPS5858703B2 (en) | Information processing method | |
| JPS62213947A (en) | Manufacturing process control method using portable storage media | |
| JPH04373058A (en) | Buffer control method | |
| JPS6385889A (en) | Memory card | |
| JPS5846160U (en) | Magnetic disk inspection device |