JPS6053327B2 - Item search method - Google Patents

Item search method

Info

Publication number
JPS6053327B2
JPS6053327B2 JP53148833A JP14883378A JPS6053327B2 JP S6053327 B2 JPS6053327 B2 JP S6053327B2 JP 53148833 A JP53148833 A JP 53148833A JP 14883378 A JP14883378 A JP 14883378A JP S6053327 B2 JPS6053327 B2 JP S6053327B2
Authority
JP
Japan
Prior art keywords
item
address
pointer
register
items
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
Application number
JP53148833A
Other languages
Japanese (ja)
Other versions
JPS5576460A (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 JP53148833A priority Critical patent/JPS6053327B2/en
Publication of JPS5576460A publication Critical patent/JPS5576460A/en
Publication of JPS6053327B2 publication Critical patent/JPS6053327B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Memory System (AREA)

Description

【発明の詳細な説明】 この発明は電子計算機のオペレーティング・システムに
係り、各種制御テーブル中の項目の先頭アトレスを取り
出す項目検索方法に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an operating system for an electronic computer, and relates to an item search method for extracting the start address of an item in various control tables.

オペレーティング・システムは主記憶装置の中に各種の
制御テーブルを持つている。例えば多数の端末から電子
計算機を利用する多数の利用者をか)え、各利用者の処
理要求を時分割的に遂行するオペレーティング・システ
ムにおいては、利用者毎に決められた大きさの項目が記
憶装置中に用意される。各項目の中には利用者番号、利
用者名、照合暗号、利用許可条件、課金料金、等が記録
される。オペレーティング・システムは利用者が増えた
時、例えば5項目分単位に1テーブルとして記憶領域を
貸出して使用する。各テーブルの中には定められた位置
に定められた長さのポインタ領域を確保し、新らしく追
加されるテーブルの先頭アドレスは最終テーブルのポイ
ンタ領域に記憶させることにより、各テーブルを順に継
いでゆく。
The operating system has various control tables in main memory. For example, in an operating system that has many users who use a computer from many terminals and processes the processing requests of each user in a time-sharing manner, items of a size determined for each user are Prepared in storage device. In each item, a user number, user name, verification code, usage permission conditions, billing fee, etc. are recorded. When the number of users increases, the operating system rents out storage area as one table for each five items, for example. A pointer area of a specified length is secured at a specified position in each table, and the start address of a newly added table is stored in the pointer area of the last table, so that each table can be inherited in turn. go.

以上の様に構成されたテーブルの中から目的とする利用
者番号を持つ項目の先頭アドレスを求めるには従来次の
様な方法が取られていた。
Conventionally, the following method has been used to find the starting address of the item having the target user number from the table configured as described above.

例えは利用者番号(以下項目に着目し利用者番号を項目
番号と呼ふ)゛゛13’’番の項目の課金料金を修正し
たい時1先頭テーブル(第1テーブル)の先頭アドレス
から第1番目のテーブルを探し出す。
For example, when you want to modify the billing fee for the item No. 13'' of the user number (the following items are focused on and the user number is called the item number), the first address from the first address of the first table (first table) is Find the table.

21〜5番の項目が登録されているのでポインタを読出
し、次のテーブルの先頭アドレスを得る。
Since items No. 21 to No. 5 are registered, the pointer is read and the start address of the next table is obtained.

3この第2テーブルには6〜10の項目が登録されてい
るので、再びポインタを読出し、次のテーブルの先頭ア
ドレスを得る。
3 Since 6 to 10 items are registered in this second table, read the pointer again to obtain the start address of the next table.

4この第3のテーブルには11〜1旙の項目が登録され
ているので、このテーブルの先頭アドレスに2項目分の
領域を値を加え第11目のテーブルの先頭アドレスを得
る。
4. Since the items 11th to 1st are registered in this third table, the area for two items is added to the starting address of this table to obtain the starting address of the 11th table.

以下はその第11目の項目の定められた位置に、書かれ
た課金料金を修正する。
Below, the billing fee written in the specified position of the 11th item is corrected.

オペレーティング・システム中には数■種を越える各種
の登録テーブルがあり、各々のテーブルを構成する属性
すなわち、1テーブル中の項目数,項目の大きさ,ポイ
ンタの位置,ポインタの長さが異なつている。
There are more than a few types of registration tables in an operating system, and the attributes that make up each table, namely the number of items in one table, the size of the items, the position of the pointer, and the length of the pointer, are different. There is.

従つて各テーブル中の項目を利用する要求元は個々に登
録テーブルを構成する属性を記憶し、指定された項目番
号からその項目の存在する先頭アドレスを取り出さなけ
ればならない欠点があつた。
Therefore, a request source using the items in each table must individually store the attributes constituting the registration table and extract the starting address where the item exists from the specified item number.

この発明は以上の欠点を克服することを目的とし、この
目的は順次ポインタで連結され、かつ一定の項目を収め
た登録テーブル群をもつオペレーティング・システムを
有する電子計算機において、最初の登録テーブルの先頭
アドレスと、各テーブル中の項目数と、各項目の長さと
、各テーブル中の各テーブルを継ぐポインタの位置と、
ポインタの長さとを記憶するテーブル属性記憶手段、及
び項目番号からその項目の先頭アドレスを算出するアド
レス計算手段とを設け、項目番号が指定されると、上記
アドレス計算手段が、上記テーブル属性記憶手段を参照
して、その項目番号をもつ項目の先頭アドレスを算出す
ることにより達成された。
The object of the present invention is to overcome the above-mentioned drawbacks, and the purpose is to provide a computer with an operating system that has a group of registration tables sequentially connected by pointers and containing certain items. The address, the number of items in each table, the length of each item, the position of the pointer that connects each table in each table,
A table attribute storage means for storing the length of a pointer and an address calculation means for calculating the start address of the item from the item number are provided, and when an item number is specified, the address calculation means This was achieved by referring to the item number and calculating the start address of the item with that item number.

以下この発明を図によつて詳しく説明する。This invention will be explained in detail below with reference to the drawings.

第1図は記憶装置中に存在する登録テーブルの例てあり
、第2図は、この発明に基く項目検索装置の一実施例構
成図である。第1図において、11〜1nは登録テーブ
ルであり各々は連続した記憶領域からなり、11a〜1
1e,12a〜12e,13a〜13e,1m〜1ne
は登録テーブルに登録された11バイト長の長さをもつ
各項目、11p,12p,13p,.は次の登録テーブ
ルの先頭アドレスが格納されている12バイト長のポイ
ンタである。
FIG. 1 shows an example of a registration table existing in a storage device, and FIG. 2 is a configuration diagram of an embodiment of an item search device based on the present invention. In FIG. 1, 11 to 1n are registration tables, each consisting of a continuous storage area, and 11a to 1n.
1e, 12a~12e, 13a~13e, 1m~1ne
are each item with a length of 11 bytes registered in the registration table, 11p, 12p, 13p, . is a 12-byte pointer in which the start address of the next registration table is stored.

第2図において2はテーブル属性記憶手段であり21は
先頭の登録テーブルのアドレス、22は1つの登録テー
ブルに含まれる項目数、23は各!項目の長さ、24は
登録テーブル中のポインタ位置、25はポインタの長さ
である。図中3は項目検索装置であり、4は要求元であ
る。
In FIG. 2, 2 is a table attribute storage means, 21 is the address of the first registration table, 22 is the number of items included in one registration table, and 23 is each! The length of the item, 24 is the pointer position in the registration table, and 25 is the length of the pointer. In the figure, 3 is an item search device, and 4 is a request source.

31はテーブルアドレスレジスタ、32は項目数レジス
タ、33は項目長レジスタ、34はポ・インタ位置レジ
スタ、35はポインタ長レジスタ、41は属性アドレス
レジスタ、42は項目番号レジスタ、43は項目アドレ
スレジスタ、51は商レジスタ、52は余りレジスタ、
61はポインタ読出回路、62は減数回路、71〜74
は演算論理回路、81〜82はアンドゲートである。
31 is a table address register, 32 is an item number register, 33 is an item length register, 34 is a pointer position register, 35 is a pointer length register, 41 is an attribute address register, 42 is an item number register, 43 is an item address register, 51 is a quotient register, 52 is a remainder register,
61 is a pointer reading circuit, 62 is a subtraction circuit, 71 to 74
is an arithmetic logic circuit, and 81 to 82 are AND gates.

第1図において、各登録テーブル11〜1nが主記憶中
に存在し、各登録テーブル中の項目11a〜11e,1
2a〜12e,13a〜13e,1na〜1neは1つ
の処理単位であり記憶領域11バイトからなる。またこ
の例では1つの登録テーブル当り5ケの項目が登録され
ており、各登録テーブルの先頭アドレスから(11X5
)バイトの位置■こポインタ位置が存在する。登録テー
ブル11のポインタ11pは登録テーブル12の先頭ア
ドレスが入つており、登録テーブル12のポインタ12
pは登録テーブル13の先頭アドレスが入つており、以
下順に最終の登録テーブル1nまでが直前の登録テーブ
ルのポインタで継ながれている。
In FIG. 1, each registration table 11-1n exists in the main memory, and items 11a-11e, 1
2a to 12e, 13a to 13e, and 1na to 1ne are one processing unit and consist of a storage area of 11 bytes. In addition, in this example, 5 items are registered per registration table, and from the top address of each registration table (11X5
) Byte position ■ This pointer position exists. The pointer 11p of the registration table 11 contains the start address of the registration table 12;
p contains the start address of the registration table 13, and the subsequent registration tables up to the last registration table 1n are successively connected by the pointer of the immediately previous registration table.

このポインタの長さは12バイトである。第2図におい
てオペレーティング・システム中の各種プログラムが自
己の処理対象となつた項目の番号から、その項目が存在
する登録テーブル中のアドレスが必要となつた時、それ
等のプログラムが要求元4として、項目検索装置3に項
目アドレス算出を要求する。
The length of this pointer is 12 bytes. In Figure 2, when various programs in the operating system need the address in the registration table where the item exists based on the number of the item that has become their processing target, those programs act as request source 4. , requests the item search device 3 to calculate the item address.

この時要求元4は主記憶中に確保されたテーブル属性記
憶手段2を属性アドレスレジスタ41に送出すると共に
その中のアドレスを算出してほしい項目の番号を項目番
号レジスタ42に送出する。項目検索装置3は属性アド
レスレジスタ41の値から、テーブル属性記憶手段の場
所を知り、順にその内容を自己の各レジスタ中に読出す
At this time, the request source 4 sends the table attribute storage means 2 secured in the main memory to the attribute address register 41, and also sends the number of the item whose address therein is desired to be calculated to the item number register 42. The item search device 3 learns the location of the table attribute storage means from the value of the attribute address register 41, and sequentially reads the contents into its own registers.

先頭の登録テーブルのアドレス21をテーブルアドレス
レジスタ31に読出し、項目数22を項目数レジスタ3
2に読出し、項目長23を項目長レジスタ33に読出し
、ポインタ位置24をポインタ位置レジスタ34に読出
し、ポインタの長さ25をポインタ長レジスタ35に読
出す。まず項目番号レジスタ42の値を項目数レジスタ
32の値で演算論理回路71で割つて、割算による商が
商レジスタ51に余りが余りレジスタ52に求まる。
Read the address 21 of the first registration table into the table address register 31, and read the number of items 22 into the number of items register 3.
2, the item length 23 is read to the item length register 33, the pointer position 24 is read to the pointer position register 34, and the pointer length 25 is read to the pointer length register 35. First, the value of the item number register 42 is divided by the value of the item number register 32 by the arithmetic logic circuit 71, and the quotient resulting from the division is stored in the quotient register 51 and the remainder in the register 52.

演算論理回路72は余りレジスタ52で求まつた値から
1を減じた値と項目長レジスタ33の値の積を求め、登
録テーブル中の目的とする項目がその登録テーブルの先
頭から位置する値を算出し演算論理回路73に送出する
。一方商レジスタの値が゜゜零゛であればアンドゲート
81が開いて先頭アドレスレジスタ31の値が演算論理
回路73に送出される。
The arithmetic logic circuit 72 calculates the product of the value obtained by subtracting 1 from the value found in the remainder register 52 and the value in the item length register 33, and determines the value at which the target item in the registration table is located from the top of the registration table. It is calculated and sent to the arithmetic logic circuit 73. On the other hand, if the value of the quotient register is ゜゜zero, the AND gate 81 is opened and the value of the head address register 31 is sent to the arithmetic logic circuit 73.

そこで演算論理回路73は登録テーブルの先頭アドレス
とそのテーブルの先頭からの距離を加え求める項目のア
ドレスを項目アドレスレジスタ43に出力する。演算論
理回路71の割算結果で商レジスタ51の値が零でない
とアンドゲート82が開き、テーブルアドレスレジスタ
31が摘しているとポインタ位置レジスタ34にある登
録テーブル内のポインタ位置を示す値が、演算論理回路
74で加えられ、ポインタの格納されているアドレスが
求まる。このポインタの格納されているアンドレスとポ
インタ長レジスタ35が示しているポインタの長さにも
とずいて、ポインタ読出回路61が次に継ながれた登録
テーブルの先頭アドレスをテーブルアドレスレジスタ3
1に読出すと共に、減数回路62に信号を送り、商レジ
スタ51の値から“1゛を減する。
Therefore, the arithmetic logic circuit 73 adds the top address of the registration table and the distance from the top of the table and outputs the address of the desired item to the item address register 43. If the value of the quotient register 51 is not zero in the division result of the arithmetic logic circuit 71, the AND gate 82 opens, and if the table address register 31 is selected, the value indicating the pointer position in the registration table in the pointer position register 34 is opened. , are added by the arithmetic logic circuit 74, and the address where the pointer is stored is determined. Based on the address where this pointer is stored and the length of the pointer indicated by the pointer length register 35, the pointer reading circuit 61 reads the start address of the next successive registration table into the table address register 35.
At the same time, a signal is sent to the subtraction circuit 62 to subtract "1" from the value of the quotient register 51.

商レジスタ51の値が゜゜零゛でなければ、再びアンド
ゲート82が開き、商レジスタ51の値が零となるまで
、演算論理回路74の演算とポインタ読出回路61の処
理を繰返し次々と登録テーブルの先頭アドレスをテーブ
ルアドレスレジスタ31に求めてゆく。商レジスタ51
の値が“゜零゛2になるとその時求めたテーブルアドレ
スレジスタ31の値が求める項目を含む登録テーブルの
先頭アドレスである。演算論理回路73は商レジスタ5
1の値が零になるとアンドゲート81を経由し、求める
登録テーブルの先頭アドレスをテーブルアドレスレジス
タ31から受け取ると共に、先に述べた手順で得られた
求める項目のテーブルの先頭からのアドレスを演算論理
回路72から受取り、両者の値を加えて、求める項目の
アドレスを項目アドレスレジスタ43に格納し、要求元
4に出力する。
If the value of the quotient register 51 is not ゜゜zero, the AND gate 82 is opened again, and the operation of the arithmetic logic circuit 74 and the processing of the pointer reading circuit 61 are repeated until the value of the quotient register 51 becomes zero, and the registration table is read one after another. The start address of is obtained from the table address register 31. Quotient register 51
When the value of becomes "゜0゛2," the value of the table address register 31 obtained at that time is the start address of the registration table containing the desired item.The arithmetic logic circuit 73 reads the quotient register 5.
When the value of 1 becomes zero, the head address of the desired registration table is received from the table address register 31 via the AND gate 81, and the address from the head of the table of the desired item obtained in the above procedure is sent to the arithmetic logic. It receives it from the circuit 72, adds both values, stores the address of the desired item in the item address register 43, and outputs it to the request source 4.

以上の説明では演算論理回路を各演算毎に表記し理解し
やすく図示したが、実際には1つの演算論理回路を持た
せれば充分であり、また項目検索装置自身はソフト的に
実現することも可能である。
In the above explanation, the arithmetic logic circuit is shown for each operation to make it easier to understand, but in reality, it is sufficient to have one arithmetic logic circuit, and the item search device itself can also be realized by software. It is possible.

以上の説明ではテーブル属性記憶手段中にポインタの登
録テーブル中での位置とポインタの長さを記憶させたが
、すべての登録テーブルに対しポインタの登録テーブル
中での位置を固定する、例えば各登録テーブルの先頭に
ポインタを置くとテーブル属性記憶手段中にはポインタ
の位置を省略することが可能となり、また、各ポインタ
の長さはすべての登録テーブルに対し一定とする。
In the above explanation, the position of the pointer in the registration table and the length of the pointer are stored in the table attribute storage means, but it is possible to fix the position of the pointer in the registration table for all registration tables. Placing a pointer at the beginning of the table allows the position of the pointer to be omitted in the table attribute storage means, and the length of each pointer is constant for all registered tables.

例えば各ポインタの長さは1語にすれば、テーブル属性
記憶手段中にはポインタの長さを省略することが可能と
なる。以上の説明では要求元は特定の項目番号を指定し
、そのアドレスを計算させることができるので、すべて
の項目に対し順番に処理を施してゆく場合は項目番号の
追番を記憶しておき追番項回数を順に増しつつ、項目検
索装置へ項目アドレス変換要求を出せば、登録テーブル
中の各項目を順に処理することが可能である。
For example, if the length of each pointer is one word, the length of the pointer can be omitted in the table attribute storage means. In the above explanation, the requester can specify a specific item number and have the address calculated, so if you want to process all items in order, remember the serial number of the item number and add it. By issuing an item address conversion request to the item search device while increasing the number of items in order, each item in the registration table can be processed in order.

この発明は以上説明したように、順次ポインタで連結さ
れ、かつ一定数の項目を収めた登録テーブル群をもつオ
ペレーティング●システムにおいて、登録テーブルの属
性を記憶させる手段と、項目番号からその項目の先頭ア
ドレスを算出するアドレス計算手段すなわち項目検索装
置を設け、項目番号からその項目の先頭アドレスが容易
に求められるため、オペレーティング・システム中の各
プログラムが各々テーブル属性を記憶しておく必要がな
くなり、また項目番号から項目の先頭アドレスを求める
プログラムを各々が持たなくてもよくなつた。
As explained above, in an operating system having a group of registration tables sequentially connected by pointers and containing a certain number of items, the present invention provides means for storing the attributes of the registration table, Since an address calculation means for calculating the address, that is, an item search device is provided, and the start address of the item can be easily found from the item number, there is no need for each program in the operating system to memorize table attributes. It is no longer necessary for each user to have a program that calculates the start address of an item from the item number.

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

第1図は登録テーブルの例であり、第2図は項目検索装
置の一実施例構成図である。 第1図において11〜1nは登録テーブル、11a〜1
1e,12a〜12e,13a〜13e,1r1a〜1
neは項目、11p,12p,13pはポインタである
。 第2図において2はテープ・ル属性記憶手段、3は項目
検索装置、4は要求元である。21は先頭の登録テーブ
ルのアドレス、22は項目数、23は項目の長さ、24
はポインタ位置、25はポインタの長さである。 31〜35はテーブル属性記憶手段中の各項を記憶する
レノジスタ、41〜43は要求元とのインターフェイス
レジスタ、51〜52は作業用レジスタ、61はポイン
タ読出回路、62は減数回路、71〜74は演算論理回
路、81〜82はアンドゲートである。
FIG. 1 is an example of a registration table, and FIG. 2 is a configuration diagram of an embodiment of the item search device. In FIG. 1, 11-1n are registration tables, 11a-1
1e, 12a-12e, 13a-13e, 1r1a-1
ne is an item, and 11p, 12p, and 13p are pointers. In FIG. 2, 2 is a tape attribute storage means, 3 is an item search device, and 4 is a request source. 21 is the address of the first registration table, 22 is the number of items, 23 is the length of the item, 24
is the pointer position, and 25 is the length of the pointer. 31 to 35 are registers for storing each term in the table attribute storage means, 41 to 43 are interface registers with the request source, 51 to 52 are working registers, 61 is a pointer reading circuit, 62 is a subtraction circuit, 71 to 74 is an arithmetic logic circuit, and 81 to 82 are AND gates.

Claims (1)

【特許請求の範囲】[Claims] 1 順次ポインタで連結され、かつ一定数の項目を収め
た登録テーブル群をもつ電子計算機の項目検索方法にお
いて、連結された最初の登録テーブルの先頭アドレスと
、各テーブル中の項目数と、各項目の長さと、各テーブ
ル中の各テーブルを継ぐポインタの位置と、ポインタの
長さとを記憶するテーブル属性記憶手段と、項目番号か
らその項目の先頭アドレスを算出するアドレス計算手段
と、項目番号を記憶させる項目記憶手段を設け項目取出
要求が指定されると、該項目記憶手段を更新すると共に
上記アドレス計算手段が、上記テーブル属性記憶手段を
参照して、その項目番号をもつ項目の先頭アドレスを算
出することを特徴とする項目検索方法。
1. In an item search method for a computer that has a group of registration tables that are sequentially linked by pointers and contain a certain number of items, the first address of the first linked registration table, the number of items in each table, and each item are table attribute storage means for storing the length of the table, the position of the pointer that inherits each table in each table, and the length of the pointer; address calculation means for calculating the start address of the item from the item number; and storage for storing the item number. When an item retrieval request is specified, the item storage means is updated, and the address calculation means refers to the table attribute storage means to calculate the starting address of the item having the item number. An item search method characterized by:
JP53148833A 1978-12-01 1978-12-01 Item search method Expired JPS6053327B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP53148833A JPS6053327B2 (en) 1978-12-01 1978-12-01 Item search method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP53148833A JPS6053327B2 (en) 1978-12-01 1978-12-01 Item search method

Publications (2)

Publication Number Publication Date
JPS5576460A JPS5576460A (en) 1980-06-09
JPS6053327B2 true JPS6053327B2 (en) 1985-11-25

Family

ID=15461744

Family Applications (1)

Application Number Title Priority Date Filing Date
JP53148833A Expired JPS6053327B2 (en) 1978-12-01 1978-12-01 Item search method

Country Status (1)

Country Link
JP (1) JPS6053327B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109409833B (en) * 2018-10-22 2021-12-28 广州力挚网络科技有限公司 Defect processing method and device

Also Published As

Publication number Publication date
JPS5576460A (en) 1980-06-09

Similar Documents

Publication Publication Date Title
JPS6053327B2 (en) Item search method
EP0361107A3 (en) Micro programme-controlled micro processor including a pointer register and an accessing method therefor
JPH0317753A (en) File access system
JP2605401B2 (en) Attribute Borrowing Method in Dictionary System
JPS5617450A (en) Data collection system
JPH0782451B2 (en) Database management system
JP2895892B2 (en) Data processing device
JP2605402B2 (en) Data derivation method in dictionary system
JPS63148349A (en) Cache memory positioning system
JPS57101945A (en) Control system of information processor
JP2586172B2 (en) Table search device with learning function
JPS58191055A (en) Automatic editing system of output type using virtual record
JPH04205173A (en) Information retrieval system
JPH069038B2 (en) Direct memory access controller
JPS5917649A (en) Device for retrieving data base
JPH06236309A (en) Delay type data update system utilizing store identifier for loosely coupled multiprocessor system
Molnau A Guide to the Use of HISARS-- A Hydrologic Information Storage and Retrieval System
JPS58178453A (en) Calculation system of data size of group item
JPS5958680A (en) Storage device
JPS5977694A (en) Information processor
JPH1069407A (en) Data conversion processing device and method
JPH02126327A (en) Segment access system
JPS59191649A (en) Program production system
JPH03278143A (en) Temporary key file generating system
JPS54109736A (en) Microprogram control unit