JPS63137332A - Computer - Google Patents

Computer

Info

Publication number
JPS63137332A
JPS63137332A JP28485286A JP28485286A JPS63137332A JP S63137332 A JPS63137332 A JP S63137332A JP 28485286 A JP28485286 A JP 28485286A JP 28485286 A JP28485286 A JP 28485286A JP S63137332 A JPS63137332 A JP S63137332A
Authority
JP
Japan
Prior art keywords
effective address
instruction
adder
address generator
signal line
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
JP28485286A
Other languages
Japanese (ja)
Inventor
Tatsuo Yamada
山田 達雄
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP28485286A priority Critical patent/JPS63137332A/en
Publication of JPS63137332A publication Critical patent/JPS63137332A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To multiplex instructions and addressing modes by providing an effective address forming adder with an adding/subtracting function based upon an increment, a decrement and a constant and allowing the adder to be accessed as an operand of an instruction. CONSTITUTION:The adder 9 is allowed to add/subtract an increment/decrement and a constant and a signal line connected to a multiplexer 2 connected to the adder 9 is formed as a bidirectional signal line. Since the adder 9 is provided with said function, continuous addresses or addresses arranged very fixed address can be rapidly calculated. Since the bidirectional signal line 10 is formed, an instruction for adding the contents of a register to that of an effective address generator can be also formed and the value of the effective address generator is sent to the bidirectional signal line 10 through a latch 7 and a latch output 11.

Description

【発明の詳細な説明】 〔産業上の利用分守〕 この発明は計算機に係り、特にその実効アドレスの計算
方式の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application] The present invention relates to a computer, and particularly to an improvement in the effective address calculation method thereof.

〔従来の技術〕[Conventional technology]

計算機のアドレッシングモードの複雑化やアドレス空間
の増大に対して、実際にアクセスするアドレスを外部か
らその都度指定するのではなくて、ある与えられたアド
レスをもとにして内部で実際に順次アクセスすべきアド
レスを生成する実効アドレス生成器が用いられている。
As the addressing mode of computers becomes more complex and the address space increases, instead of specifying the address to be accessed externally each time, it is possible to actually access the address sequentially internally based on a given address. An effective address generator is used to generate the correct address.

下記A式は計算機の命令を一般的な二瓢−モニックに示
したもので、 MOV(Re+IX−kDIs:) 、Rm     
   (A)[レジスタReの内容とインデックスレジ
スタIXの内容と定数として与えられるディスプレース
メントD!Sとを加算した値をアドレスとするメモリの
内容をレジスタRmに転送せよ」という命令であり、こ
のように1つのアドレスを決定するために複雑なアドレ
ッシングモードを用いている。
The following formula A shows the computer instructions in a general binary form: MOV(Re+IX-kDIs:), Rm
(A) [Contents of register Re, contents of index register IX, and displacement D given as a constant! ``Transfer the contents of the memory whose address is the value obtained by adding the value of ``S'' to the register Rm.'' In this way, a complicated addressing mode is used to determine one address.

下記第1表は式Aに示した命令を失効アドレス生成器を
用いて実行する従来の手順の概要の一例を示したもので
ある。
Table 1 below outlines an example of a conventional procedure for executing the instruction shown in equation A using a revocation address generator.

第  1  表 m 上記第1表(a)においては、ディスブレースメン)D
ISO値が実効アドレス生成器にロードされる。
Table 1 m In Table 1 (a) above, disabled men)D
The ISO value is loaded into the effective address generator.

同表(b)においては、インデックスレジスタtXの内
容が実効アドレス生成器にロードされる。同表(c)に
3いては、失効アドレス生成器において既にロードされ
たディスプレースメントDISと、インデックスレジス
タIXの値との加算が行なわれる。
In Table (b), the contents of index register tX are loaded into the effective address generator. At 3 in Table (c), the displacement DIS already loaded in the revocation address generator is added to the value of the index register IX.

同表(d)においては、史に、レジスタReの内容が実
効アドレス生成器にロードされる。同表(e)において
は、既に加算されているIX +DISの結果とロード
されたレジスタReの内容とが加算される。そして同表
(f)においては、実効アドレス生成器によって計算さ
れた実効アドレスによりアクセスされるデータがレジス
タRmにロードされる。
In table (d), the contents of register Re are first loaded into the effective address generator. In the same table (e), the already added result of IX +DIS and the contents of the loaded register Re are added. In Table (f), data accessed by the effective address calculated by the effective address generator is loaded into register Rm.

第2図は第1表に示した演算を行なう従来の失効アドレ
ス生成器の概要の一例を示すもので、第2図において、
(1)は加算器、(21はマルチプレクサ、(3)はマ
ルチプレクサ(2)のデータ入力、(4)および(6)
はマルチプレクサ(2)のデータ出力で加算器il+に
接ながれている。データ入力(3)上のデータはマルチ
プレクサ(2)によりマルチプレクサされ、出力+41
もしくは(5)より加算器(1)に入力される。(6)
は加算器111の出力、(7)は加算器出力(6)を入
力とするラッチ、(8)はラッチ(7)の出力で加算器
(1)の入力の一方に接がれる。加算器il+やマルチ
プレクサ(2)の回路は一般に周知のものを用いて容易
に実現することが出来る。なお、第2図においては、実
効アドレス生成器を制御する信号は示していないが、計
算機により命令に応じた制御信号が作られることは当然
である。
FIG. 2 shows an example of an outline of a conventional revocation address generator that performs the operations shown in Table 1.
(1) is an adder, (21 is a multiplexer, (3) is the data input of multiplexer (2), (4) and (6)
is connected to the adder il+ at the data output of the multiplexer (2). The data on data input (3) is multiplexed by multiplexer (2) and the output +41
Alternatively, it is input to the adder (1) from (5). (6)
is the output of the adder 111, (7) is a latch whose input is the adder output (6), and (8) is the output of the latch (7), which is connected to one of the inputs of the adder (1). The circuits of the adder il+ and the multiplexer (2) can be easily realized using generally known circuits. Note that although signals for controlling the effective address generator are not shown in FIG. 2, it is a matter of course that a computer generates control signals according to instructions.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

第2図に示した従来のアドレス生成器において実効アド
レスを発生させるには第1表に示したようなステップを
ふむ必要があり、一般的に多くのり6ツク数を特徴とす
る特に連続したアドレスもしくは一定間隔に並んだアド
レスを同じ命令の同じアドレッシングモードでアクセス
するような場合には、その命令の実行毎にアドレッシン
グモードに従って実効アドレスを生成する必要があり、
命令実行に要する時間を多く必要とした。
In order to generate an effective address in the conventional address generator shown in FIG. 2, it is necessary to go through the steps shown in Table 1. Or, if addresses lined up at regular intervals are accessed using the same addressing mode of the same instruction, it is necessary to generate an effective address according to the addressing mode each time the instruction is executed.
It took a lot of time to execute the command.

この発明は以上の問題点を解消するためになされたもの
で、同じ命令で同じアドレッシングモードで、連続した
アドレスまたは一定間隔に並んだアドレスをアクセスす
る場合に実行時間の短縮を計ることのできる計算機を得
ることを目的とする。
This invention was made to solve the above problems, and is a computer that can shorten execution time when accessing consecutive addresses or addresses lined up at regular intervals using the same instruction and the same addressing mode. The purpose is to obtain.

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

この発明に係る計算機は実効アドレス生成器を構成する
加算器にインクレメントもしくはデクリメント機能また
は定数の加算もしくは減算またはレジスタとの演算の機
能を付加させるようにするとともに、実効アドレス生成
器を命令のオペランドとしてアクセスできるようにした
ものである。
In the computer according to the present invention, an adder constituting an effective address generator is provided with an increment or decrement function, a constant addition or subtraction function, or an operation function with a register, and the effective address generator is used as an operand of an instruction. It can be accessed as .

〔作用〕[Effect]

この発明による計算機では、上述の如き実効アドレス生
成器の構成と、実効アドレス生成器をオペランドとする
命令を新設することによって、命令のデコード回路およ
び演算制御回路などは従来のままで、処理時間の短縮が
はかれる。
In the computer according to the present invention, the above-described configuration of the effective address generator and new instructions that use the effective address generator as operands are added, thereby reducing the processing time while leaving the instruction decoding circuit, arithmetic control circuit, etc. as before. It can be shortened.

ス生成器を示す構成図で、(9)は演算結果のインクリ
メントもしくはデクリメントの可能な加算器、(lO)
は双方向の信号ラインでマルチプレクサ(2)へ接がれ
加算器(9)で加算されるデータが入力される。
(9) is an adder that can increment or decrement the operation result, (lO)
is connected to the multiplexer (2) by a bidirectional signal line, and data to be added by the adder (9) is input.

(11)はラッチ(7)の出力で、加算器(9)および
信号ライン(lO)へ接がれ、ラッチ(7)の出力を信
号ライン(lO)へ出力する。信号ライン(lO)の他
端は図示せぬレジスタ等に接続される。第1図において
は実効アドレス生成器を制御する信号は示していない。
(11) is the output of the latch (7), which is connected to the adder (9) and the signal line (lO), and outputs the output of the latch (7) to the signal line (lO). The other end of the signal line (lO) is connected to a register (not shown) or the like. The signals controlling the effective address generator are not shown in FIG.

ここで今新たに実効アドレス生成器の内容をインクリメ
ントする命令をINCRAGと定義し、計算器はこの命
令に即した制御信号を発生するようにする。この制御信
号により加算器(9)は加算器自体の保持している失効
アドレスをインクリメントする。従って実効アドレスを
計算するのに要する時間は極めて短かくなる。
Now, a new instruction for incrementing the contents of the effective address generator is defined as INCRAG, and the calculator is made to generate a control signal in accordance with this instruction. This control signal causes the adder (9) to increment the expired address held by the adder itself. Therefore, the time required to calculate the effective address is extremely short.

また、実効アドレス生成器の内容を単にレジスタ等に転
送する以外の命令を計算機に具備させることにより、よ
り複雑なアドレッシング方法を短かい実行時間で行なう
ことが出来るようになる。
Furthermore, by equipping a computer with instructions other than simply transferring the contents of the effective address generator to a register or the like, more complex addressing methods can be performed in a shorter execution time.

例えば、レジスタの内容と失効アドレス生成器の内容と
を加算する命令をADD R,EAGと定礪し、計算機
はこの命令に即した制#信号を発生するようにする。こ
の制御信号により、例えば実効アドレス生成器の値はラ
ッチ(7)およびラッチ出力(II)を経由して、双方
同データライン(10)へ出力される。
For example, an instruction to add the contents of a register and the contents of an expiration address generator is defined as ADDR, EAG, and the computer generates a control signal in accordance with this instruction. With this control signal, for example, the value of the effective address generator is output via the latch (7) and the latch output (II) to both data lines (10).

そして、図示せぬ例えばアキュームレータ等に送られ演
算される。演算した結果を再び失効アドレス生成器に戻
すことも容易である。この目的のために双方向データラ
イン(lO)より加算器(9)にデータを転送する経路
を設けることもできる。
Then, it is sent to, for example, an accumulator (not shown) and is calculated. It is also easy to return the calculated result to the revocation address generator. For this purpose, a path for transferring data from the bidirectional data line (lO) to the adder (9) can also be provided.

更に、データ転送、yI4算の他に判定、ジャンプ等の
命令に組み合わせても、その動作の高速化が達成できる
Furthermore, in addition to data transfer and yI4 arithmetic, even if it is combined with instructions such as judgment and jump, the speed of the operation can be increased.

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

以上のように、この発明に係る計算機では、実効アドレ
ス生成器を構成する加算器にインクレメントもしくはデ
クレメントまたは定数の加算もしくは減算の機能をもた
せるとともに、実効アドレス生成器を命令のオペランド
としてアクセス可能にしたので、命令の多様化、アドレ
ッシングモードの多様化が可能となり、命令の実行時間
の短縮ができる。
As described above, in the computer according to the present invention, the adder constituting the effective address generator has the function of incrementing or decrementing or adding or subtracting a constant, and the effective address generator can be accessed as an operand of an instruction. This makes it possible to diversify instructions and addressing modes, and shorten instruction execution time.

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

第1図はこの発明の一実施例の実効アドレス生成器の構
成を示すブロック図、第2図は従来の計算機の失効アド
レス生成器の構成を示すブロック図である。 図において、(2)はマルチプレクサ、(71はラッチ
、(9)は加算器である。 なお、図中同一符号は同一または相当部分を示す0
FIG. 1 is a block diagram showing the configuration of an effective address generator according to an embodiment of the present invention, and FIG. 2 is a block diagram showing the configuration of a revocation address generator of a conventional computer. In the figure, (2) is a multiplexer, (71 is a latch, and (9) is an adder. In the figure, the same reference numerals indicate the same or corresponding parts.

Claims (6)

【特許請求の範囲】[Claims] (1)実効アドレスを算出する実効アドレス生成器を有
する計算機において、 上記実効アドレス生成器の中の上記実効アドレスの値を
インクリメントもしくはデクリメントまたは上記値に定
数を加算もしくは減算する機能を備えるとともに、 上記実効アドレス生成器をそのオペランドとする命令を
有することを特徴とする計算機。
(1) A computer having an effective address generator that calculates an effective address, which has a function of incrementing or decrementing the value of the effective address in the effective address generator, or adding or subtracting a constant from the value, and A computer characterized by having an instruction having an effective address generator as its operand.
(2)実効アドレス生成器として命令のアクセスのため
の第1の実効アドレス生成器と、データのアクセスのた
めの第2の実効アドレス生成器とを備えたことを特徴と
する特許請求の範囲第1項記載の計算機。
(2) The first effective address generator includes a first effective address generator for instruction access and a second effective address generator for data access. Calculator described in Section 1.
(3)命令としてデータの転送命令を備えたことを特徴
とする特許請求の範囲第1項記載の計算機。
(3) The computer according to claim 1, further comprising a data transfer instruction as the instruction.
(4)命令として演算命令を備えたことを特徴とする特
許請求の範囲第1項記載の計算機。
(4) The computer according to claim 1, further comprising an arithmetic instruction as the instruction.
(5)命令として判定命令を備えたことを特徴とする特
許請求の範囲第1項記載の計算機。
(5) The computer according to claim 1, further comprising a determination instruction as the instruction.
(6)命令としてジャンプ命令を備えたことを特徴とす
る特許請求の範囲第1項記載の計算機。
(6) The computer according to claim 1, further comprising a jump instruction as the instruction.
JP28485286A 1986-11-29 1986-11-29 Computer Pending JPS63137332A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28485286A JPS63137332A (en) 1986-11-29 1986-11-29 Computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28485286A JPS63137332A (en) 1986-11-29 1986-11-29 Computer

Publications (1)

Publication Number Publication Date
JPS63137332A true JPS63137332A (en) 1988-06-09

Family

ID=17683863

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28485286A Pending JPS63137332A (en) 1986-11-29 1986-11-29 Computer

Country Status (1)

Country Link
JP (1) JPS63137332A (en)

Similar Documents

Publication Publication Date Title
JPS6313215B2 (en)
US5757685A (en) Data processing system capable of processing long word data
US4677582A (en) Operation processing apparatus
JP2993975B2 (en) Central processing unit
JPH10161871A (en) Processor
JP3556252B2 (en) Data processing system and method for calculating offset total
JPH027097B2 (en)
JP2806346B2 (en) Arithmetic processing unit
JPS63137332A (en) Computer
JP2565495B2 (en) Data processing system
JPS63111535A (en) Data processor
JPS6057435A (en) Microprocessor
JPS59184944A (en) Rounding arithmetic system
JPH0340422B2 (en)
JP2741869B2 (en) Inverse coordinate transformation processor
JPH04195629A (en) Arithmetic flag generation device
JPH01266668A (en) Information processor
JP2542120B2 (en) Information processing device
JPS6118219B2 (en)
JPS6057603B2 (en) arithmetic processing unit
JPH037971B2 (en)
JPS63206834A (en) System for detecting and processing error in instruction control
JPS62285137A (en) Digital signal processor
JPH03282928A (en) Address control type information processor
JPS61267135A (en) Data processor