JPS6118042A - Reference system of instruction address register - Google Patents

Reference system of instruction address register

Info

Publication number
JPS6118042A
JPS6118042A JP59138560A JP13856084A JPS6118042A JP S6118042 A JPS6118042 A JP S6118042A JP 59138560 A JP59138560 A JP 59138560A JP 13856084 A JP13856084 A JP 13856084A JP S6118042 A JPS6118042 A JP S6118042A
Authority
JP
Japan
Prior art keywords
address
instruction
bus
program
cpu1
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
JP59138560A
Other languages
Japanese (ja)
Inventor
Seiji Kitatsu
木龍 清治
Tsuneji Yano
矢野 恒二
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 JP59138560A priority Critical patent/JPS6118042A/en
Publication of JPS6118042A publication Critical patent/JPS6118042A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To give an allocated absolute address to a program which is under execution by reading an instruction address through an address latch circuit and an address latch circuit. CONSTITUTION:A CPU1 delivers an address to a memory 8 via an address bus 6, and the memory 8 delivers an instruction code via a data bus 7. The CPU1 executes sequentially the instruction code. While an address latch circuit 2 receives an instruction fetch signal from the CPU1 and then latches an instruction adress on the bus 6. At the same time, an address decoder 3 sends a latch address output signal 5 to the circuit 2 while an I/O port input instruction is executed. The circuit 2 receives the signal 5 and delivers the latched instruction address to the bus 7. The CPU1 can give an absolute address allocated to a program during program execution by fetching the instruction address put on the bus 7.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は命令コードのフェッチタイミングを外部出力信
号として具備する中央処理装置(以下aUと略↑)を塔
載した処理装置C;おいて、プログラムが割付けられた
アドレスをプログラム自身が参照可能にするために、C
PU内においてプログラム実行アドレスを保持する命令
アドレスレジスタを参照する方式に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a processing device C equipped with a central processing unit (hereinafter abbreviated as aU) that has instruction code fetch timing as an external output signal; In order for the program itself to be able to refer to the address allocated by the program, C
This relates to a method of referencing an instruction address register that holds a program execution address within a PU.

〔従来の技術〕[Conventional technology]

CPUを具えた処理装置において、プログラムが割付け
られたアドレスをプログラム自身が知る必要がある場合
がある。例えば主記憶装置を構成するランダムアクセス
メモリ(以下RAMと略す)の内容を初期化する処理を
行う場合、処理装置が実行するプログラムは初期化しな
いようにしなければならない。従ってプログラムが割付
けられたアドレスを知る必要があり、このため(二はC
PU内においてプログラム実行アドレスを保持する命令
アドレスレジスタを参照して、そのアドレスを続出子こ
とができるようにすることが必要になる。
In a processing device equipped with a CPU, the program itself may need to know the address to which the program is assigned. For example, when performing processing to initialize the contents of a random access memory (hereinafter abbreviated as RAM) that constitutes the main storage device, the program executed by the processing device must not be initialized. Therefore, it is necessary to know the address allocated to the program, and for this reason (the second is C
It is necessary to refer to the instruction address register that holds the program execution address in the PU so that the address can be successively retrieved.

従来、このような命令アドレスレジスタ参照方式として
は、スタック領域に退避した復帰アドレスから間接的(
=命令アドレスレジスタの内容を得る方式がある。この
方式ではサブルーテンをコールした後、スタックポイン
タで示されたメモリの内容@CPUに読込む。スタック
ポインタで示されたメモリの内容は、サブルーチンから
復帰したときの命令アドレスレジスタの内容と一致して
いるので、これ@CPUに読込むことによってCPUは
命令アドレスレジスタの内容を知ることができる。この
ように従来の命令アドレスレジスタ参照方式は、スタッ
ク領域に退避した復帰アドレスから間接的に命令アドレ
スレジスタ内容を知るものであり、そのため命令アドレ
スレジスタ内容を得るまでに、数ステップの命令コード
の実行を必要とすることC:なる。
Conventionally, this type of instruction address register reference method has been to indirectly (
= There is a method to obtain the contents of the instruction address register. In this method, after calling a subroutine, the contents of the memory indicated by the stack pointer are read into @CPU. The contents of the memory indicated by the stack pointer match the contents of the instruction address register when returning from the subroutine, so by reading this into @CPU, the CPU can know the contents of the instruction address register. In this way, in the conventional instruction address register referencing method, the contents of the instruction address register are indirectly known from the return address saved in the stack area. Therefore, it takes several steps of execution of the instruction code to obtain the contents of the instruction address register. Requiring C: To become.

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

本発明の命令アドレスレジスタ参照方式は、このような
従来技術の問題点を解決しようとするものであって、プ
ログラムの実行中においてプログラム自体に割付けられ
た絶対アドレスをプログラムに対して与えることができ
るようにしようとするものである。
The instruction address register reference method of the present invention is intended to solve the problems of the prior art, and is capable of giving an absolute address assigned to the program itself to the program while the program is being executed. This is what we are trying to do.

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

本発明の命令アドレスレジスタ参照方式は、命令コード
のフェッチタイミングを外部出力信号として具備するC
PUを塔載した処理装置において、この外部出力信号に
よってアドレスバスの信号をラッチする手段で、このラ
ッチ手段によってラッチされたアドレスをCPUに対し
て読出す手段とを設けたものである。
The instruction address register reference method of the present invention is a C
A processing device equipped with a PU is provided with means for latching a signal on an address bus using this external output signal, and means for reading out the address latched by this latch means to the CPU.

〔作用〕[Effect]

本発明の命令アドレスレジスタ参照方式によれば、CP
Uのフェッチタイミング信号によってアドレスバスの信
号をラッチして読出すことによって、CPUは命令アド
レスを読込むことができ、従ってプログラム実行中にそ
のプログラムに割付けられた絶対アドレスをプログラム
に対して与えることができる。
According to the instruction address register reference method of the present invention, CP
By latching and reading the signal on the address bus using the fetch timing signal of U, the CPU can read the instruction address, thus giving the program the absolute address assigned to the program during program execution. I can do it.

〔実施例〕〔Example〕

第1図は本発明の命令アドレスレジスタ参照方式の一実
施例を示すブロック図である。同図において、1はCP
U、2はアドレスラッチ回路、6はアドレスデコーダ、
4は命令フェッチ信号、5はラッチアドレス出力信号、
6はアドレスバス、7はデータバス、8はメモリである
FIG. 1 is a block diagram showing an embodiment of the instruction address register referencing method of the present invention. In the same figure, 1 is CP
U, 2 is an address latch circuit, 6 is an address decoder,
4 is an instruction fetch signal, 5 is a latch address output signal,
6 is an address bus, 7 is a data bus, and 8 is a memory.

また第2図は第1図に示された実施例における命令フェ
ッチサイクルの各部信号のタイミングを示す図である。
Further, FIG. 2 is a diagram showing the timing of various signals in the instruction fetch cycle in the embodiment shown in FIG. 1.

CPU1はアドレスバス6を介してメモリ8に対してア
ドレスを出力し、メモリ8はこれに応じてデータバス7
を介して命令コードを出力し、CPU1はこの命令コー
ドを順次実行する。アドレスラッチ回路2はcpvlか
ら出力される命令フェッチ信号4を受けたとき、アドレ
スバス6上の命令アドレスをラッチする。次にアドレス
デコーダ3はI10ポート入力入力命令時に、ラッチア
ドレス出力信号5を出力する。アドレスラッチ回路2は
ラッチアドレス出力信号を人力されたとき、ラッチして
いる命令アドレスをデータバス7に出力する。CPU1
はデータバス7上における命令アドレスを取込むことに
よって、プログラム実行中に、そのプログラムに割付け
られた絶対アドレスをプログラムに対して与えることが
できる。
The CPU 1 outputs an address to the memory 8 via the address bus 6, and the memory 8 outputs an address to the data bus 7 in response.
The CPU 1 outputs instruction codes through the CPU 1 and sequentially executes the instruction codes. Address latch circuit 2 latches the instruction address on address bus 6 when receiving instruction fetch signal 4 output from cpvl. Next, address decoder 3 outputs latch address output signal 5 at the time of I10 port input input command. Address latch circuit 2 outputs the latched instruction address to data bus 7 when a latch address output signal is input manually. CPU1
By taking in the instruction address on the data bus 7, the absolute address assigned to the program can be given to the program while the program is being executed.

本発明によれば、上記の手順(二よってプログラム自体
に割付けられた絶対アドレスをそのプログラム実行中に
獲得できるので、作業領域を含めた完全な再配置可能な
プログラムを構築することができる。
According to the present invention, since the absolute address assigned to the program itself can be acquired during the execution of the program by the above procedure (2), it is possible to construct a completely relocatable program including the work area.

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

以上説明したように本発明の命令アドレスレジスタ参照
方式によれば、CPUはアドレスラッチ回路を介して命
令アドレスを読込むことができるので、プログラム実行
中C二そのプログラムに割付けられた絶対アドレスをプ
ログラムに与えることができる。
As explained above, according to the instruction address register reference method of the present invention, the CPU can read the instruction address via the address latch circuit, so that the CPU can read the absolute address assigned to the program during program execution. can be given to

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

第1図は本発明の命令アドレスレジスタ参照方式の一実
施例を示す図、第2図は命令フヱツテサイクルのタイミ
ングを示す図である。 1・・・CPU、2・・・アドレスラッチ回路、3・・
・アドレスデコーダ、4・・・命令フェッチ信号、5・
・・ラッチアドレス出力信号、6・・・アドレスバス、
7・・・データバス、8・・・メモリ
FIG. 1 is a diagram showing an embodiment of the instruction address register referencing method of the present invention, and FIG. 2 is a diagram showing the timing of an instruction write cycle. 1...CPU, 2...Address latch circuit, 3...
・Address decoder, 4...Instruction fetch signal, 5.
...Latch address output signal, 6...Address bus,
7...Data bus, 8...Memory

Claims (1)

【特許請求の範囲】[Claims] 命令コードのフェッチタイミングを外部出力信号として
具備しアドレスバスおよびデータバスを介してメモリ上
の命令コードを取出して実行する中央処理装置を塔載し
た処理装置において、該外部信号によってアドレスバス
上のアドレスをラッチする手段と、該ラッチされたアド
レスを読出してデータバスを介して中央処理装置に与え
る手段とを設けたことを特徴とする命令アドレスレジス
タ参照方式。
In a processing device equipped with a central processing unit that is provided with the instruction code fetch timing as an external output signal and retrieves and executes the instruction code on the memory via an address bus and a data bus, the address on the address bus is determined by the external signal. 1. An instruction address register reference system comprising: means for latching the latched address; and means for reading the latched address and providing it to a central processing unit via a data bus.
JP59138560A 1984-07-04 1984-07-04 Reference system of instruction address register Pending JPS6118042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59138560A JPS6118042A (en) 1984-07-04 1984-07-04 Reference system of instruction address register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59138560A JPS6118042A (en) 1984-07-04 1984-07-04 Reference system of instruction address register

Publications (1)

Publication Number Publication Date
JPS6118042A true JPS6118042A (en) 1986-01-25

Family

ID=15224994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59138560A Pending JPS6118042A (en) 1984-07-04 1984-07-04 Reference system of instruction address register

Country Status (1)

Country Link
JP (1) JPS6118042A (en)

Similar Documents

Publication Publication Date Title
US4672534A (en) Integrated circuit device incorporating a data processing unit and a ROM storing applications program therein
US4835733A (en) Programmable access memory
EP0238090A2 (en) Microcomputer capable of accessing internal memory at a desired variable access time
US4780819A (en) Emulator system utilizing a program counter and a latch coupled to an emulator memory for reducing fletch line of instructions stored in the emulator memory
US4747045A (en) Information processing apparatus having an instruction prefetch circuit
US4460972A (en) Single chip microcomputer selectively operable in response to instructions stored on the computer chip or in response to instructions stored external to the chip
US4093983A (en) Fast and normal rate instruction fetching
US4524417A (en) Timing signal controlled information processing system
US4764866A (en) Data processing system with pre-decoding of op codes
US5978897A (en) Sequence operation processor employing multi-port RAMs for simultaneously reading and writing
JPS6118042A (en) Reference system of instruction address register
US5121351A (en) Floating point arithmetic system
JP2619425B2 (en) Sequence controller
JPH01261758A (en) Computer system
JP2534314B2 (en) Semiconductor integrated circuit
JPS6330658B2 (en)
JPS6227423B2 (en)
JPS5913060B2 (en) Main storage storage capacity detection method
JPS60114937A (en) Microprogram processing unit
JP2604203B2 (en) Debug device for one-chip digital signal processor
JPH0370055A (en) Semiconductor integrated circuit device
JPH02183332A (en) Programmed control system
JPS63307543A (en) Debug device
JPH05257698A (en) Electronic computer
JPH0646387B2 (en) Micro computer