JPS61165148A - Table access instructing system - Google Patents

Table access instructing system

Info

Publication number
JPS61165148A
JPS61165148A JP59263971A JP26397184A JPS61165148A JP S61165148 A JPS61165148 A JP S61165148A JP 59263971 A JP59263971 A JP 59263971A JP 26397184 A JP26397184 A JP 26397184A JP S61165148 A JPS61165148 A JP S61165148A
Authority
JP
Japan
Prior art keywords
element data
register
instruction
address
access
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
JP59263971A
Other languages
Japanese (ja)
Inventor
Hiroyuki Egawa
江川 博之
Koji Mori
毛利 康治
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 JP59263971A priority Critical patent/JPS61165148A/en
Publication of JPS61165148A publication Critical patent/JPS61165148A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/3004Arrangements for executing specific machine instructions to perform operations on memory

Abstract

PURPOSE:To decrease the number of steps of table access processing by a computer, by providing a computer instruction having a part for designating a head address of a table, the magnitude of element data, and element data numbers. CONSTITUTION:When an instruction 10 which has been read out by an instruction register for the purpose of its execution is recognized that it is a table access instruction as a result of decoding of an instruction code part 11, one of general registers 17-0-17-n is selected by a gate 16 by the first register designating part 12 of an operand designating part, and inputted as a table head address to an address adding circuit 18. The second register designating part 13 designates a register for holding element data numbers by a gate 19 in the same way, its contents are shifted by a shifting circuit 20 in accordance with a shift designating part 14 for showing the magnitude of element data, and thereafter, inputted to an adding circuit 18 together with a displacement designating part for showing displacement in the element, and an address to be brought to access is determined.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は計算機システムの記憶装置に格納されているテ
ーブルにアクセスするために、処理装置等に設ける計算
機命令の方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a computer instruction system provided in a processing device or the like to access a table stored in a storage device of a computer system.

計算機システムの処理においては、表形式のデータ、い
わゆるテーブル、が多数使用される。
In computer system processing, a large amount of tabular data, so-called tables, is used.

通常、各テーブルは一定の同じ大きさの複数個の要素デ
ータからなり、用途によりローカル記憶。
Normally, each table consists of multiple element data of the same fixed size, and is stored locally depending on the purpose.

装置、主記憶装置等に格納される。要素データの大きさ
は、一般に各テーブルによって異なる。
The information is stored in the device, main memory, etc. The size of element data generally differs depending on each table.

情報処理においてテーブルにアクセスする場合には、一
般に特定のテーブルの特定の要素データ内のある部分と
して処理対象を特定し、例えばそのテーブル内の要素デ
ータ番号のみを進めて、各要素データの同一部分のデー
タを順次処理するというよ・うな使われ方が多い。
When accessing a table in information processing, the processing target is generally specified as a part of specific element data of a specific table, and, for example, only the element data number in that table is advanced, and the same part of each element data is accessed. It is often used to process data in sequence.

従って、記t9装置に格納されているテーブルに対する
各アクセスにおいては、例えばテーブルを特定するテー
ブル領域先頭の記憶アドレス、要素データを指定する要
素データ番号、及びその要素データ内のアクセスする部
分を示す要素データ内変位を用いて、アクセスする部分
の記憶アドレスを計算する必要がある。
Therefore, in each access to a table stored in the t9 device, for example, the storage address of the beginning of the table area that specifies the table, the element data number that specifies element data, and the element that indicates the part of the element data to be accessed. It is necessary to use the displacement within the data to calculate the storage address of the part to be accessed.

〔従来の技術と発明が解決しようとする問題点〕第2図
にテーブルの構成の一例を示す。
[Prior art and problems to be solved by the invention] FIG. 2 shows an example of the structure of a table.

テーブルは特定の先頭記憶アドレスに始まり、例えば2
bバイトの大きさの要素データn+1個が連続する記憶
領域に配列された構成を有する。
The table starts at a specific first storage address, for example 2
It has a configuration in which n+1 pieces of element data each having a size of b bytes are arranged in a continuous storage area.

各要素データには、例えばO−nの連続番号が要素デー
タ番号として付され、テーブル内のデータは、要素デー
タ番号と要素内変位(要素データの先頭からの、例えば
バイト位置)によって特定される。
Each element data is assigned a sequential number, for example O-n, as the element data number, and data in the table is specified by the element data number and intra-element displacement (for example, byte position from the beginning of the element data). .

従って、テーブル内のあるデータにアクセスする場合に
は、第3図の処理の流れ図に示すようにして、記憶アド
レスを計算する。
Therefore, when accessing certain data in the table, a storage address is calculated as shown in the processing flow chart of FIG.

即ち、処理のステップ1で、テーブル先頭の記憶アドレ
スを処理装置のレジスタRIにロードし、ステップ2で
レジスタR2に要素データ番号をロードする。
That is, in step 1 of the process, the storage address at the head of the table is loaded into register RI of the processing device, and in step 2, the element data number is loaded into register R2.

ステップ3で、アクセスしようとするテーブルに固有の
、要素データの大きさ2bに従って、レジスタR2の内
容を、bビット左(上位桁方向)にシフトする。
In step 3, the contents of register R2 are shifted b bits to the left (in the direction of the upper digits) according to the element data size 2b specific to the table to be accessed.

ステップ4で、R1、Rz及び要素内変位値を加算した
値を記憶アドレスとして指定して、主記憶装置等にアク
セスする。
In step 4, the value obtained by adding R1, Rz, and the intra-element displacement value is specified as a storage address, and the main storage device or the like is accessed.

以上のように、テーブルアクセスにおいては、各アクセ
スに少なくとも4ステツプを要するので、処理に比較的
長い時間を要し、又プログラムを繁雑にする等の問題が
あった。
As described above, in table access, since each access requires at least four steps, there are problems in that the processing takes a relatively long time and the program becomes complicated.

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

前記の問題点は、計算機システムの配性装置に格納され
た複数の要素データからなるテーブルに、アクセスする
処理装置において、該テーブルの先頭記憶アドレスと、
該要素データの大きさに関する値と、アクセスする該要
素データの番号とを指定する部分を有する計算機命令を
設け、該計算機命令は該指定によって該アクセスする要
素の先頭記憶アドレスを計算し、該計算した記憶アドレ
スによって、該テーブルの要素データに対するアクセス
を実行する本発明のテーブルアクセス命令方式によって
解決される。
The problem described above is that in a processing device that accesses a table consisting of a plurality of element data stored in a distribution device of a computer system, the first storage address of the table,
A computer instruction is provided that has a part that specifies a value regarding the size of the element data and a number of the element data to be accessed, and the computer instruction calculates the start storage address of the element to be accessed based on the specification, and performs the calculation. This problem is solved by the table access instruction method of the present invention, which executes access to element data of the table using the stored storage address.

〔作用〕[Effect]

即ち、例えばテーブル先頭の記憶アドレスを保持するレ
ジスタと、要素データの大きさに関する値として、大き
さを表す値の2の墓数値と、要素データ番号を保持する
レジスタとをオペランドとして指定する部分を持ち、要
すれば要素内変位指定部も有するテーブルアクセス命令
を設ける。
That is, for example, a part that specifies as operands a register that holds the storage address of the head of the table, a grave value of 2 representing the size as a value related to the size of the element data, and a register that holds the element data number. A table access command is provided which also has an intra-element displacement designation section if necessary.

この命令を実行すると、指定のレジスタを選択して、要
素データ番号を要素データの大きさにしたがって左シフ
トした値と先頭記憶アドレスと、要素内変位とを加算し
て記憶アドレスを構成し、所定のアクセスを行う。
When this instruction is executed, the specified register is selected, the value obtained by shifting the element data number to the left according to the size of the element data, the start storage address, and the intra-element displacement are added to form the storage address, and the specified register is added. access.

従って処理ステップは減少し、且つプログラミングを簡
潔にすることができる。
Processing steps are therefore reduced and programming can be simplified.

テーブルアクセス命令は、要すれば一般の主記憶アクセ
スの命令と同様にロード命令とストア命令とを設ける。
Table access instructions include load instructions and store instructions, if necessary, like general main memory access instructions.

〔実施例〕〔Example〕

第1図(alは本発明の一実施例構成を示すプロ・ツク
図である。
FIG. 1 (Al is a block diagram showing the configuration of an embodiment of the present invention.

実行のために、命令レジスタに読み出された命令10は
命令コード部11をデコードすることによりテーブルア
クセス命令であることが識別されると、以下に説明する
ように動作する。
When the instruction 10 read into the instruction register for execution is identified as a table access instruction by decoding the instruction code portion 11, it operates as described below.

命令10のオペランド指定部分における、第ルジスタ指
定部12はテーブル先頭の記憶アドレスを保持するレジ
スタを指定する。
In the operand specification portion of the instruction 10, the first register specification section 12 specifies the register that holds the storage address at the head of the table.

第2レジスタ指定部13は要素データ番号を保持するレ
ジスタを指定する。
The second register designation unit 13 designates a register that holds an element data number.

シフト指定部14は要素データの大きさを表す値の2の
幕数値(例えば要素データの大きさを2bとした場合の
b)を、変位指定部15は要素内変位の値を指定する。
The shift specifying unit 14 specifies the curtain value of 2 (for example, b when the size of the element data is 2b) representing the size of the element data, and the displacement specifying unit 15 specifies the value of intra-element displacement.

命令10の実行において、第ルジスタ指定部12はゲー
ト16によって、処理装置の汎用レジスタ17−0〜1
7−nから指定のルジスクを選択して、その内容を、ア
ドレス加算回路18に入力する。
In executing the instruction 10, the first register specifying unit 12 uses the gate 16 to select the general-purpose registers 17-0 to 1 of the processing device.
A designated Luzisk is selected from 7-n and its contents are input to the address addition circuit 18.

又、第2レジスタ指定部13はゲート19によって、汎
用レジスタ17−0〜17−nから指定のルジスタを選
択して、その内容をシフト回路20に入力し、シフト回
路20によるシフト結果を、アドレス加算回路18に入
力する。
Further, the second register specifying unit 13 selects a specified register from the general-purpose registers 17-0 to 17-n by the gate 19, inputs the contents to the shift circuit 20, and transfers the shift result by the shift circuit 20 to the address. It is input to the adder circuit 18.

シフト回路20のシフトビット数は、シフト指定部14
の値により制御され、入力をシフト指定部14に指定す
る値に等しいビット数だけ左にシフトシて出力する。
The number of shift bits of the shift circuit 20 is determined by the shift specifying section 14.
The input is shifted to the left by the number of bits equal to the value specified in the shift specifying section 14 and output.

変位指定部15の要素力変位指定値は、そのま\アドレ
ス加算回路18に入力される。
The element force displacement designation value of the displacement designation section 15 is input to the address addition circuit 18 as is.

アドレス加算回路18は、以上の3人力を加算して出力
する。この出力はアクセスする記憶アドレスの指定とし
て使用し、通常のように主記憶装置、ローカル記憶装置
等のアクセスが行われる。
The address adding circuit 18 adds up the above three human forces and outputs the result. This output is used to designate the storage address to be accessed, and the main storage, local storage, etc. are accessed as usual.

この命令を使用することにより、テーブルアクセス時の
記憶アドレス計算部分は、第1図(b)のようにステッ
プ21〜23の3ステツプになる。
By using this instruction, the storage address calculation part during table access becomes three steps, steps 21 to 23, as shown in FIG. 1(b).

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

以上の説明から明らかなように本発明によれば、計算機
処理におけるテーブルアクセスの処理ステップを減少し
、且つプログラミングを簡潔にするので、計算機システ
ムの利用度を改善するという著しい工業的効果がある。
As is clear from the above description, the present invention reduces the number of table access processing steps in computer processing and simplifies programming, so it has a significant industrial effect of improving the utilization of the computer system.

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

第1図Fa)ば本発明一実施例構成のブロック図、第1
図(blは本発明一実施例の処理の流れ図、第2図はテ
ーブルの一構成例を示す図、第3図は従来の処理の流れ
図である。 図において、 1〜4.21〜23は処理のステップ、10は命令、 
     11は命令コード部、12は第2レジスタ指
定部、 13は第2レジスタ指定部、 14はシフト指定部、  15は変位指定部、16.1
9はゲート、 17−0〜17−nは汎用レジスタ、 18はアドレス加算回路、20はシフト回路を示す。 峯 1  図 (σ) (b) 芽 2 図
Fig. 1Fa) is a block diagram of the configuration of an embodiment of the present invention;
Figure (bl is a flowchart of processing according to an embodiment of the present invention, Figure 2 is a diagram showing an example of table configuration, and Figure 3 is a flowchart of conventional processing. In the figure, 1 to 4, 21 to 23 are Processing steps, 10 is an instruction,
11 is an instruction code section, 12 is a second register specification section, 13 is a second register specification section, 14 is a shift specification section, 15 is a displacement specification section, 16.1
9 is a gate, 17-0 to 17-n are general-purpose registers, 18 is an address adder circuit, and 20 is a shift circuit. Mine 1 figure (σ) (b) Bud 2 figure

Claims (1)

【特許請求の範囲】[Claims] 計算機システムの記憶装置に格納された複数の要素デー
タからなるテーブルに、アクセスする処理装置において
、該テーブルの先頭記憶アドレスと、該要素データの大
きさに関する値と、アクセスする該要素データの番号と
を指定する部分を有する計算機命令を設け、該計算機命
令は該指定によって該アクセスする要素の先頭記憶アド
レスを計算し、該計算した記憶アドレスによって、該テ
ーブルの要素データに対するアクセスを実行することを
特徴とするテーブルアクセス命令方式。
In a processing device that accesses a table consisting of a plurality of element data stored in a storage device of a computer system, the first storage address of the table, the value related to the size of the element data, and the number of the element data to be accessed. A computer instruction having a part specifying is provided, the computer instruction calculates the first storage address of the element to be accessed according to the specification, and executes access to the element data of the table using the calculated storage address. Table access command method.
JP59263971A 1984-12-14 1984-12-14 Table access instructing system Pending JPS61165148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59263971A JPS61165148A (en) 1984-12-14 1984-12-14 Table access instructing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59263971A JPS61165148A (en) 1984-12-14 1984-12-14 Table access instructing system

Publications (1)

Publication Number Publication Date
JPS61165148A true JPS61165148A (en) 1986-07-25

Family

ID=17396760

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59263971A Pending JPS61165148A (en) 1984-12-14 1984-12-14 Table access instructing system

Country Status (1)

Country Link
JP (1) JPS61165148A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011503758A (en) * 2007-11-20 2011-01-27 クゥアルコム・インコーポレイテッド System and method for determining the address of an element in a table

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56164447A (en) * 1980-05-20 1981-12-17 Canon Inc Data processing device
JPS58142446A (en) * 1982-02-18 1983-08-24 Toshiba Corp Data processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56164447A (en) * 1980-05-20 1981-12-17 Canon Inc Data processing device
JPS58142446A (en) * 1982-02-18 1983-08-24 Toshiba Corp Data processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011503758A (en) * 2007-11-20 2011-01-27 クゥアルコム・インコーポレイテッド System and method for determining the address of an element in a table
EP2223204B1 (en) * 2007-11-20 2019-02-13 QUALCOMM Incorporated System and method of determining an address of an element within a table

Similar Documents

Publication Publication Date Title
JPH0248931B2 (en)
US4734877A (en) Vector processing system
US5390306A (en) Pipeline processing system and microprocessor using the system
JPS5911921B2 (en) numerical control device
JPS61165148A (en) Table access instructing system
JP2553200B2 (en) Information processing device
JP3392413B2 (en) Two-level micro control system and method
JPS6346855B2 (en)
JPH02214938A (en) Data processor
JPS63293638A (en) Data processing system
JPS603656B2 (en) Computer memory expansion method
JP2583614B2 (en) Vector arithmetic unit
JPS63111534A (en) Semiconductor integrated circuit
JP2743947B2 (en) Micro program control method
JP3088956B2 (en) Arithmetic unit
JPS61182135A (en) Process selecting system
JPS6327975A (en) Vector arithmetic control system
JPS5896346A (en) Hierarchical arithmetic system
JPH06332701A (en) Information processor
JPH0338613B2 (en)
JPH0830466A (en) Multitask switching control method
JPS59105110A (en) Programmable controller
JPS608943A (en) Multi-branch controlling system
JPS62295138A (en) Address forming system
JPS6136657B2 (en)