JPS6364128A - 8085 microcomputer - Google Patents

8085 microcomputer

Info

Publication number
JPS6364128A
JPS6364128A JP20898786A JP20898786A JPS6364128A JP S6364128 A JPS6364128 A JP S6364128A JP 20898786 A JP20898786 A JP 20898786A JP 20898786 A JP20898786 A JP 20898786A JP S6364128 A JPS6364128 A JP S6364128A
Authority
JP
Japan
Prior art keywords
address
circuit
register
cpu
value
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
JP20898786A
Other languages
Japanese (ja)
Inventor
Noriyuki Takagi
高木 規之
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP20898786A priority Critical patent/JPS6364128A/en
Publication of JPS6364128A publication Critical patent/JPS6364128A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To artificially execute the modification to an address designated with a register pair by adding and subtracting the value of an external register to the address outputted by a CPU and making it into a new address when a writing instruction is executed. CONSTITUTION:First, a displacement value is written into a register circuit 3. The circuit 3 outputs a signal 13 to show that writing is executed and activates a memory writing cycle detecting circuit 4. The circuit 4 detects a writing cycle when a CPU 1 executes a next instruction, activates an address adding circuit 6 and outputs a signal 14 to prohibit an address buffer 9. The circuit 6 adds an HL register pair value outputted by the CPU 1 and the displacement value of the circuit 3 and outputs them to an address bus 12. At this time, since the buffer 9 is prohibited, the value before adding outputted by the CPU 1 is not outputted onto the bus 12. On the other hand, an accumulator value is outputted onto the data bus 11, and written into the address modified by a memory writing signal from a control signal generating circuit 2.

Description

【発明の詳細な説明】 (産業上の利用分野〕 本発明は8085マイクロコンピュータに関する。[Detailed description of the invention] (Industrial application field) The present invention relates to an 8085 microcomputer.

(従来の技術) 従来、8085マイクロコンピュータは、レジスタ間接
アドレシングとよばわるアドレシング方式を有し、レジ
スタベアIIL、 BC,DEを用いてアドレスを指定
することができるか、280マイクロコンピュータのイ
ンテックスアドレシングのように、アドレス指定のレジ
スタベアの値にディスプレイスメントと呼ばれる任意の
値を加減算してアドレスを指定することができなかった
(Prior art) Conventionally, 8085 microcomputers have an addressing method called register indirect addressing, and addresses can be specified using register bear IIL, BC, DE, or Intex addressing of 280 microcomputers. As in , it was not possible to specify an address by adding or subtracting an arbitrary value called displacement to the value of the register bear for address specification.

8085マイクロコンピュータのレジスタ間接アドレシ
ングによるメモリライトでは最初のマシンサイクルで命
令コードのフェッチが行われ(命令コードフェッチサイ
クル)、次のマシンサイクルでアキュムレータまたはレ
ジスタ値をレジスタベアの示すアドレスに書込む(メモ
リライトサイクル)。−例としてマイクロコンピュータ
8085のニーモニックで命令rMOVM、^j、すな
わちアキュムレータの内容をHLレジスタベアの示すア
ドレスに古込む場合を述へると次のようになる。
In memory write using register indirect addressing in the 8085 microcomputer, the instruction code is fetched in the first machine cycle (instruction code fetch cycle), and the accumulator or register value is written to the address indicated by the register bear in the next machine cycle (memory light cycle). - As an example, the mnemonic for the microcomputer 8085 is the instruction rMOVM, ^j, that is, the case where the contents of the accumulator are stored in the address indicated by the HL register bear is as follows.

命令コードフェッチサイクルでCPUはROMから命令
ryov M、 AJの命令コードである77Hを読込
み、次のメモリライトサイクルにおいてCPUはアドレ
スバス上にHLレジスタベアの示すアドレスを出力し、
アドレスデコード回路で選択されたRAM上の上記アド
レスが指定される。このときデータバスにはアキュムレ
ータの内容が出力され、cpu1の制御出力を人力して
107MのR/W (3号を発生するコントロール信号
回路から出力されるメモリライト信号により、RAM上
の指定されたアドレスにデータバス上の値が書込まれる
In the instruction code fetch cycle, the CPU reads the instruction code 77H of the instructions ryov M, AJ from the ROM, and in the next memory write cycle, the CPU outputs the address indicated by the HL register bear on the address bus,
The address on the RAM selected by the address decoding circuit is specified. At this time, the contents of the accumulator are output to the data bus, and by manually controlling the control output of CPU 1, the memory write signal output from the control signal circuit that generates 107M R/W (no. The value on the data bus is written to the address.

(発明が解決しようとする問題点〕 上述した従来の8085マイクロコンピユ一タ回路は、
レジスタベアの値にディスプレイスメントを加減算して
アドレスを指定することができないため、280マイク
ロコンピュータにくらべて命令が貧弱であり、ソフトウ
ェアがa雑になる場合がある等の欠点がある。
(Problems to be Solved by the Invention) The conventional 8085 microcomputer circuit described above has the following problems:
Since it is not possible to specify an address by adding or subtracting a displacement to the value of a register bare, the instructions are poorer than that of a 280 microcomputer, and the software may be sloppy.

本発明の目的は、外部レジスタに任意の値のディスプレ
イスメントを書込みレジスタベアで指定されたアドレス
に擬似的にディスプレイスメントの修飾をすることがで
きる8085マイクロコンピユ一タ回路を提供すること
である。
SUMMARY OF THE INVENTION An object of the present invention is to provide an 8085 microcomputer circuit that can write a displacement of an arbitrary value to an external register and modify an address designated by a register bear in a pseudo manner.

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

本発明の8085マイクロコンピュータは、CPuの一
定のI/Oまたはメモリアドレスに割りあてられ、最大
16ビットの任意の値のディスプレイスメントをCPU
の操作によりストアし、ディスプレイスメントの書込み
が行われたことを示す信号を出力するレジスタ回路と、
レジスタ回路にCPUがディスプレイスメントを書込ん
だ直後の命令実行時のメモリライトサイクルを検出する
メモリライトサイクル検出回路と、メモリライトサイク
ル検出回路の検出信号により起動され、レジスタ回路に
ストアされたディスプレイスメントをCPUがアクセス
したアドレスに加算するアドレス加算回路を有すること
を特徴とする。
The 8085 microcomputer of the present invention is capable of displacing any value of up to 16 bits by assigning it to a fixed I/O or memory address of the CPU.
a register circuit that outputs a signal indicating that displacement writing has been performed;
A memory write cycle detection circuit detects a memory write cycle when an instruction is executed immediately after the CPU writes displacement to the register circuit, and the displacement is activated by the detection signal of the memory write cycle detection circuit and stored in the register circuit. It is characterized by having an address addition circuit that adds the address accessed by the CPU to the address accessed by the CPU.

このように、外部のレジスタ回路に任意の値のディスプ
レイスレントを書込み、CPUが書込み直後のレジスタ
間接アドレシングによるライト命令を実行する際に、C
PUが出力するアドレスに上記外部レジスタの値を加減
算して新たなアドレスとすることにより、レジスタベア
で指定されたアドレスに擬似的にディスプレイスメント
の修飾をすることができる。
In this way, when a display current of an arbitrary value is written to an external register circuit and the CPU executes a write instruction using register indirect addressing immediately after writing, the
By adding or subtracting the value of the external register to the address output by the PU to obtain a new address, the address specified by the register bear can be modified with a pseudo displacement.

(実施例) 次に、本発明の実施例について図面を参照して説明する
(Example) Next, an example of the present invention will be described with reference to the drawings.

第1図は本発明の8085マイクロコンピユ一タ回路の
一実施例のブロック図である。
FIG. 1 is a block diagram of one embodiment of the 8085 microcomputer circuit of the present invention.

コントロール信号発生回路2は8085 CPt1lの
10/墓、罰、■、 So、 SHの制御出力を入力し
、論理回路で組合わせ、メモリライト、メモリリード、
■0リード、IOライト等のコントロール信号を発生す
る。アドレスラッチlOは、 cpu tが出力するA
LE信号により、 CPU 1がデータバス11上に出
力する8ビットデータADo〜八り、をラッチする。
The control signal generation circuit 2 inputs the control outputs of 8085 CPt1l's 10/Grave, Punishment, ■, So, and SH, and combines them in the logic circuit to perform memory write, memory read,
■Generates control signals such as 0 read and IO write. The address latch lO is the A that the cpu t outputs.
In response to the LE signal, the CPU 1 latches the 8-bit data ADo~8 which is output onto the data bus 11.

アドレスバスバッファ9は、 cputの8ビットのア
ドレス出力へ8〜AISおよびアドレスラッチ10の出
力を人力して、イネーブル入力によりアドレスバス22
上に出力する。アドレスデコード回路5はアドレスバス
12上のアドレス信号を入力して選択信号を出力する。
The address bus buffer 9 inputs the outputs of 8 to AIS and the address latch 10 to the 8-bit address output of cput, and uses the enable input to input the address bus 22.
Output on top. Address decode circuit 5 inputs the address signal on address bus 12 and outputs a selection signal.

ROM7 、ROM8はそれぞれアドレスデコード回路
5の出力を肩入力、コントロール信号発生回路2の出力
をR/W制淘入力とし、アドレス人力、データ入力はそ
れぞれアドレスバス12、データバス+1に接続されて
いる。レジスタ回路3はアドレスデコード回路5の出力
をGE大入力し、コントロール信号発生回路2の出力を
R/W制御入力としている。レジスタ回路3はCPUI
の所定のI/Oまたはメモリアドレスに割当てられてお
り、CPUがアクセスするレジスタベアの内容を擬似的
インデックスとして前記I10またはメモリアドレスが
指定されるディスプレイスメントが、メモリライトサイ
クルにおいてデータバス21から書込まわ、書込みが行
われたことを示す信号23を出力する。アドレス加算回
路6は、レジスタ回路3の出力を第1の入力、CPuが
アクセスしたレジスタベアの内容を第2の人力として、
イネーブル人力14が能動のとき、第1.第2の入力の
和をアドレスバス12上に出力する。メモリライトサイ
クル検出回路4はcpu tO制(卸出力So、  S
、 、 RD。
ROM7 and ROM8 each use the output of the address decoding circuit 5 as a shoulder input, the output of the control signal generation circuit 2 as an R/W control input, and the address input and data input are connected to the address bus 12 and data bus +1, respectively. . The register circuit 3 receives the output of the address decode circuit 5 as a GE input, and uses the output of the control signal generation circuit 2 as an R/W control input. Register circuit 3 is CPU
The displacement specified by I10 or the memory address is written from the data bus 21 in the memory write cycle by using the content of the register bear accessed by the CPU as a pseudo index. A signal 23 indicating that writing has been performed is output. The address addition circuit 6 uses the output of the register circuit 3 as a first input, and uses the contents of the register bare accessed by the CPU as a second input.
When the enable force 14 is active, the first. The sum of the second inputs is output onto the address bus 12. The memory write cycle detection circuit 4 is CPU tO system (wholesale output So, S
, , R.D.

WR,10/Mを入力し、また、レジスタ回路3に書込
みが行ね九たことを示す信号13をストローブ入力とし
てレジスタ回路3にディスプレイスメント値が書込まれ
た次の命令のメモリライトサイクルを検出し、信号14
を出力する。信号14は、アドレス加算回路6、アドレ
スバスバッファ9のイネーブル端子(アドレスバスバッ
ファ9のイネーブル端子は非能動端rである)にそれぞ
れ入力されている。また、信号14はレジスタ回路3の
リセット端子に入力されていて、信号14か能動から非
能動へ変化するエツジで、信号13はリセットされる。
WR, 10/M is input, and the memory write cycle of the next instruction in which the displacement value is written to the register circuit 3 is executed by inputting the signal 13 indicating that writing to the register circuit 3 has not been performed as a strobe input. Detect and signal 14
Output. The signal 14 is input to the address adder circuit 6 and the enable terminal of the address bus buffer 9 (the enable terminal of the address bus buffer 9 is the inactive terminal r), respectively. Further, the signal 14 is input to the reset terminal of the register circuit 3, and the signal 13 is reset at the edge of the signal 14 changing from active to inactive.

次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.

本実施例においてはレジスタ間接アドレシングを使用す
る命令の直前にレジスタ回路3にディスプレイスメント
値を書込むことにより、 CPUIは次のレジスタ間接
アドレシングによるライト命令実行時にレジスタベアの
示すアドレスにレジスタ回路3に書込んでおいた値を加
算(あるいは減算)したアドレスにアクセスすることが
でき、インデックスアドレシングと同様のアドレス指定
が可能になる。
In this embodiment, by writing a displacement value to the register circuit 3 immediately before an instruction that uses register indirect addressing, the CPU writes the displacement value to the register circuit 3 at the address indicated by the register bear when executing the next write instruction using register indirect addressing. The address obtained by adding (or subtracting) the written value can be accessed, allowing address specification similar to index addressing.

ここで、命令rMOV M、 AJの場合を例にとって
説明する。まず、レジスタ回路3にディスプレイスメン
ト値を書込む。この書込みは通常のIOライトあるいは
メモリライトの方法で行われる。レジスタ回路3にディ
スプレイスメント値が書込まれると、書込みが行われた
ことを示す信号13がメモリライトサイクル検出回路4
に対して出力される。メモリライトサイクル検出回路4
はレジスタ回路の出力13によって起動され、 CPI
IIが次の命令rMOV M、AJを実行する際のメモ
リライトサイクルを検出し、アドレス加算回路6を起動
し、同時にアドレスバスバッファ9を禁止するための信
号14を出力する。さて、 CPLI tが命令rMO
V M。
Here, the case of the instructions rMOVM, AJ will be explained as an example. First, a displacement value is written into the register circuit 3. This writing is performed using a normal IO write or memory write method. When the displacement value is written to the register circuit 3, a signal 13 indicating that writing has been performed is sent to the memory write cycle detection circuit 4.
is output for. Memory write cycle detection circuit 4
is activated by the output 13 of the register circuit and CPI
II detects a memory write cycle when executing the next instruction rMOVM, AJ, activates the address adder circuit 6, and simultaneously outputs a signal 14 for disabling the address bus buffer 9. Now, CPLI t is the instruction rMO
V.M.

^」実行時のメモリーライトサイクルにおいては、アド
レスバス!2にはレジスタベアHLの示すアドレスが出
力され、メモリライトサイクル検出回路4からは上述の
信号14が出力される。アドレス加算回路6は信号14
によって起動され、 CPU 1が出力したHLレジス
タベア値とレジスタ回路3に書込まれていたディスプレ
イスメント値が加算され、アドレスバス12上に出力さ
れる。すなわち、CPt11はHしレジスタベアの示す
アドレスに、レジスタ回路3に書込まれた値の修飾をほ
どこしたアドレスにアクセスすることになる。このとき
アドレスバスバッファ9は信号14により禁止されてお
り、 CPU1が出力する値(加算回路で修飾されてい
ない値)はアドレスバス12上には出力されず、したが
ってデータの衝突はおこらない。一方、データバスll
上にはアキュムレータ値が出力され、コントロール信号
発生回路2によって生成されたメモリライト信号により
、上述の修飾をほどこされたアドレスに書込まれる。書
込みが終了するとメモリライトサイクル検出回路4の出
力14は非アクティブにもどるが、その変化点において
レジスタ回路3の出力13がリセットされる。
^” In the memory write cycle during execution, the address bus! The address indicated by the register bear HL is output to the memory write cycle detection circuit 4, and the above-mentioned signal 14 is output from the memory write cycle detection circuit 4. The address adder circuit 6 uses the signal 14
The HL register bare value outputted by the CPU 1 and the displacement value written in the register circuit 3 are added together and output onto the address bus 12. That is, CPt11 goes high and the address indicated by the register bear is accessed by modifying the value written in the register circuit 3. At this time, the address bus buffer 9 is inhibited by the signal 14, and the value output by the CPU 1 (value not modified by the adder circuit) is not output onto the address bus 12, so that no data collision occurs. On the other hand, the data bus
The accumulator value is outputted to the top, and is written to the modified address described above by the memory write signal generated by the control signal generation circuit 2. When writing is completed, the output 14 of the memory write cycle detection circuit 4 returns to inactive state, but at the point of change, the output 13 of the register circuit 3 is reset.

(発明の効果〕 以上説明したように本発明は外部レジスタに任意の値(
ディスプレイスメント)を書込み、CPUが書込み直後
のレジスタ間接アドレシングによるライト命令を実行す
る際にCPUが出力するアドレスに上記外部レジスタの
値を加算して新アドレスとすることにより、疑似的にレ
ジスタベアで指定したアドレスにディスプレイスメント
の修飾をほどこすことができ、8085マイクロコンピ
ュータにはないインデックスアドレシングの機能を付加
できる効果がある。
(Effect of the invention) As explained above, the present invention allows arbitrary values (
When the CPU executes a write instruction using register indirect addressing immediately after writing, the value of the above external register is added to the address output by the CPU to create a new address, thereby creating a pseudo register bear. It is possible to apply displacement modification to a specified address, and it has the effect of adding an index addressing function that is not available in the 8085 microcomputer.

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

第1図は本発明の8085マイクロコンピユ一タ回路の
一実施例のブロック図である。 1・・・8085CPLl 。 2・・・コントロール信号発生回路、 3・・・レジスタ回路、 4・・・メモリライトサイクル検出回路、5・・・アド
レスデコード回路、 6・・・アドレス加算回路、 7 ・・・ROM  、              
 8 ・・・RAM 、9・・・アドレスバスバッファ
、 lO・・・アドレスラッチ、 11・・・データバス、    12・・・アドレスバ
ス、13・・・ディスプレイスメントの書込みが行われ
たことを示す信号、 14・・・メモリライトサイクル検出回路の検出信号。
FIG. 1 is a block diagram of one embodiment of the 8085 microcomputer circuit of the present invention. 1...8085CPLl. 2... Control signal generation circuit, 3... Register circuit, 4... Memory write cycle detection circuit, 5... Address decoding circuit, 6... Address addition circuit, 7... ROM,
8...RAM, 9...Address bus buffer, lO...Address latch, 11...Data bus, 12...Address bus, 13...Displacement writing has been performed. Signal, 14... Detection signal of the memory write cycle detection circuit.

Claims (1)

【特許請求の範囲】 8085マイクロコンピュータにおいて、 CPUの一定のI/Oまたはメモリアドレスに割りあて
られ、最大16ビットの任意の値のディスプレイスメン
トをCPUの操作によりストアし、ディスプレイスメン
トの書込みが行われたことを示す信号を出力するレジス
タ回路と、 レジスタ回路にCPUがディスプレイスメントを書込ん
だ直後の命令実行時のメモリライトサイクルを検出する
メモリライトサイクル検出回路と、メモリライトサイク
ル検出回路の起動信号により起動され、レジスタ回路に
ストアされたディスプレイスメントをCPUがアクセス
したアドレスに加算するアドレス加算回路を有すること
を特徴とする8085マイクロコンピュータ。
[Scope of Claims] In the 8085 microcomputer, a displacement of an arbitrary value of up to 16 bits is stored by the CPU operation, which is assigned to a fixed I/O or memory address of the CPU, and the displacement is written. A register circuit that outputs a signal indicating that a displacement has been written to the register circuit, a memory write cycle detection circuit that detects a memory write cycle when an instruction is executed immediately after the CPU writes displacement to the register circuit, and activation of the memory write cycle detection circuit. An 8085 microcomputer characterized by having an address addition circuit that is activated by a signal and adds a displacement stored in a register circuit to an address accessed by a CPU.
JP20898786A 1986-09-04 1986-09-04 8085 microcomputer Pending JPS6364128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20898786A JPS6364128A (en) 1986-09-04 1986-09-04 8085 microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20898786A JPS6364128A (en) 1986-09-04 1986-09-04 8085 microcomputer

Publications (1)

Publication Number Publication Date
JPS6364128A true JPS6364128A (en) 1988-03-22

Family

ID=16565451

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20898786A Pending JPS6364128A (en) 1986-09-04 1986-09-04 8085 microcomputer

Country Status (1)

Country Link
JP (1) JPS6364128A (en)

Similar Documents

Publication Publication Date Title
JPS593642A (en) Control register processing system
JP2551167B2 (en) Microcomputer
JPS6364128A (en) 8085 microcomputer
JPS6364129A (en) 8085 microcomputer
JPH01255035A (en) Processor
JPH0528431B2 (en)
JP2903601B2 (en) Microcomputer with built-in ROM
JPH0233173B2 (en)
JP2000029508A (en) Programmable controller
JPS6175438A (en) Microcomputer
JPH0535499A (en) Data processing device and method
JPH0269844A (en) System for switching page of memory
JPH0334185A (en) Address modifiable memory array
JPH01261761A (en) Computer system
JPH0478942A (en) Memory access circuit
JPS6155731A (en) Processor provided with condition code discriminating function
JPH0259829A (en) Microcomputer
JPS60126731A (en) Program control method
JPH05250156A (en) Risc processor
JPS61133449A (en) Access method to external memory in computer
JPH1185565A (en) Debugging method and system for cpu
JPH0287254A (en) External memory access system
JPS62150434A (en) Loop control type data processor
JPH03269626A (en) Microprocessor
JPH04142637A (en) Memory control circuit