JPH0855058A - Expanding method for memory area - Google Patents
Expanding method for memory areaInfo
- Publication number
- JPH0855058A JPH0855058A JP18749594A JP18749594A JPH0855058A JP H0855058 A JPH0855058 A JP H0855058A JP 18749594 A JP18749594 A JP 18749594A JP 18749594 A JP18749594 A JP 18749594A JP H0855058 A JPH0855058 A JP H0855058A
- Authority
- JP
- Japan
- Prior art keywords
- lock
- memory area
- cpu
- instruction
- signal
- 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.)
- Granted
Links
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、8086系のCPUを
用いたメモリシステムに関し、特にそのメモリエリア拡
張方法に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory system using an 8086 CPU, and more particularly to a memory area expansion method thereof.
【0002】[0002]
【従来の技術】汎用メモリ及び汎用CPUを用いてビッ
ト情報の書き込みを行う場合、複数の命令を組み合わせ
て書き込みを行っていたため、シーケンスプログラムの
ようにビット情報を多く処理する場合には、命令数が多
くなり、処理時間が増加してしまうという問題があっ
た。この問題を解決するため、特開昭59ー77557
号公報に記載されているように、図2のごとくメモリエ
リアの一部をビット単位で読み書きが可能なメモリシス
テムを供していた。これはアドレス端子のA15でデー
タの反転、A14,13,12で1バイトの中のビット
位置指定A11−A0がバイトのアドレスとなってい
た。図3はビットメモリの回路ブロックで前記公報に詳
しいので説明は略すが、80000h台をアクセスする
とリードで任意のビットがD7に読み出され、ライトで
D7のビットを任意のビットアドレスに書き込むことが
可能である。2. Description of the Related Art When writing bit information using a general-purpose memory and a general-purpose CPU, a plurality of instructions are combined for writing. Therefore, when a large amount of bit information is processed as in a sequence program, the number of instructions is increased. However, there is a problem in that the processing time increases due to the increase in the number of processes. In order to solve this problem, JP-A-59-77557
As described in the publication, a memory system is provided in which a part of the memory area can be read and written in bit units as shown in FIG. This means that data is inverted at A15 of the address terminal, and bit positions A11-A0 in one byte at A14, 13, and 12 are byte addresses. Although FIG. 3 is a circuit block of a bit memory and is not described in detail because it is detailed in the above-mentioned publication, when accessing the 80,000h unit, an arbitrary bit is read to D7 by a read, and a bit of D7 can be written to an arbitrary bit address by a write. It is possible.
【0003】[0003]
【発明が解決しようとする課題】ところが、A11−A
0の12ビットで指定されるアドレスエリアは4Kバイ
トであるが、RAMには4Kバイトのものはなく、8K
バイトのものを使用しているため、メモリエリアの半分
は使用されておらず、かつビットメモリの不足が問題に
なっている。本発明が解決すべき課題は、ビットメモリ
エリアを実質的に倍にできるメモリエリア拡張方法を提
供することにある。[Problems to be Solved by the Invention] However, A11-A
The address area specified by 12 bits of 0 is 4K bytes, but there is no 4K bytes in RAM.
Since it uses bytes, half of the memory area is unused, and the lack of bit memory is a problem. The problem to be solved by the present invention is to provide a memory area expansion method capable of substantially doubling the bit memory area.
【0004】[0004]
【課題を解決するための手段】前記課題を解決するた
め、本発明のメモリエリア拡張方法は、CPUの発する
/LOCK信号(「/」は反転を表す)をアドレスライ
ンとすることによりメモリエリアを拡張し、この拡張さ
れたメモリエリアをアクセスする時はCPU制御命令L
OCKを命令の先頭に付けるようにしたものである。In order to solve the above-mentioned problems, the memory area expansion method of the present invention uses the / LOCK signal ("/" represents inversion) generated by the CPU as an address line to expand the memory area. CPU control instruction L is used when expanding and accessing this expanded memory area.
OCK is added to the beginning of the instruction.
【0005】[0005]
【作用】RAMのアドレス端子のA12にCPUの出力
信号であるLOCKを入力することでビットメモリエリ
アが倍になる。LOCKを付けた命令を実行したときに
A12が反転するので、使用していないメモリエリアが
アクセスされる。The bit memory area is doubled by inputting LOCK, which is the output signal of the CPU, to the address terminal A12 of the RAM. Since A12 is inverted when the instruction with LOCK is executed, an unused memory area is accessed.
【0006】[0006]
【実施例】以下、本発明を実施例を参照しながら具体的
に説明する。図1は本発明の実施例を示すブロック図で
ある。図において、1は8086系のCPUを用いた6
4KバイトのRAM、2は/LOCK信号を反転する反
転器である。LOCKは8086系のCPUが有するプ
リフィックス命令で、MOV命令等の先頭に付けると、
MOV命令実行時CPUの出力信号LOCKがLにな
る。本来この命令はマルチCPUシステムでバスの専有
を行うためのものであるが、この信号をアドレスライン
と同じ扱いにすることで、使用していないメモリエリア
をビットメモリとして使用することが可能となる。EXAMPLES The present invention will be specifically described below with reference to examples. FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is a 6 using an 8086 CPU
RAM of 4 Kbytes, 2 is an inverter that inverts the / LOCK signal. LOCK is a prefix instruction that an 8086 CPU has, and if it is attached to the beginning of a MOV instruction,
When the MOV instruction is executed, the CPU output signal LOCK becomes L. Originally this instruction is for monopolizing the bus in a multi-CPU system, but by treating this signal the same as an address line, it is possible to use an unused memory area as a bit memory. .
【0007】以下はアセンブラ言語を用いたプログラム
の例である。 1 MOV AX,8000 2 MOV DS,AX データセグ
メントセット 3 MOV BYT AL,[3020] ビットデー
タ読み出し20−D3 4 LOCK 5 MOV BYT [4120],AL 書き込み1
20 D4 このプログラムについて説明すると、ステップ1,2で
データセグメントDSを8000にセットすることによ
り80000番地台のアクセスが可能になる。ステップ
3は通常の読み込みで80020番地のD3が読み出さ
れる。ステップ4はプリフィックス命令であり、ステッ
プ5の命令を実行するときLOCK信号をLにする。ス
テップ5の命令実行で81120にアキュムレータのD
7を書き込むことになる。すなわち80FFFhまでの
メモリが81FFFhまで拡張されたことになる。The following is an example of a program using the assembler language. 1 MOV AX, 8000 2 MOV DS, AX Data segment set 3 MOV BYT AL, [3020] Bit data read 20-D3 4 LOCK 5 MOV BYT [4120], AL write 1
20 D4 Explaining this program, by setting the data segment DS to 8000 in steps 1 and 2, access to the 80,000 address block becomes possible. Step 3 is a normal read, and D3 at the address 80020 is read. Step 4 is a prefix instruction, and sets the LOCK signal to L when executing the instruction of step 5. When the instruction is executed in step 5, 81120 of the accumulator is displayed.
7 will be written. That is, the memory up to 80FFFh is expanded to 81FFFh.
【0008】[0008]
【発明の効果】上述したように、本発明によれば、反転
器を設けたり、メモリアドレスにLOCK信号を加える
という、若干のハードとソフトの工夫で、特定メモリエ
リアを実質的に倍に増設することが可能となった。As described above, according to the present invention, the specific memory area can be substantially doubled by providing a reversing device and adding a LOCK signal to the memory address with some hardware and software measures. It became possible to do.
【図1】 本発明実施例の構成を示すブロック図であ
る。FIG. 1 is a block diagram showing a configuration of an exemplary embodiment of the present invention.
【図2】 従来のメモリシステムにおけるメモリエリア
の説明図である。FIG. 2 is an explanatory diagram of a memory area in a conventional memory system.
【図3】 従来のメモリシステムの構成を示すブロック
図である。FIG. 3 is a block diagram showing a configuration of a conventional memory system.
1 RAM、2 反転器 1 RAM, 2 inverter
Claims (1)
スラインとすることによりメモリエリアを拡張し、この
拡張されたメモリエリアをアクセスする時はCPU制御
命令LOCKを命令の先頭に付けることを特徴とする、
メモリエリア拡張方法。1. A memory area is expanded by using a / LOCK signal generated by a CPU as an address line, and a CPU control command LOCK is added to the head of the command when accessing the expanded memory area. ,
Memory area expansion method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18749594A JP3276034B2 (en) | 1994-08-09 | 1994-08-09 | Memory area expansion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18749594A JP3276034B2 (en) | 1994-08-09 | 1994-08-09 | Memory area expansion method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0855058A true JPH0855058A (en) | 1996-02-27 |
JP3276034B2 JP3276034B2 (en) | 2002-04-22 |
Family
ID=16207069
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP18749594A Expired - Fee Related JP3276034B2 (en) | 1994-08-09 | 1994-08-09 | Memory area expansion method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3276034B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100455158B1 (en) * | 2002-09-24 | 2004-11-06 | 엘지전자 주식회사 | Memory interface apparatus |
-
1994
- 1994-08-09 JP JP18749594A patent/JP3276034B2/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100455158B1 (en) * | 2002-09-24 | 2004-11-06 | 엘지전자 주식회사 | Memory interface apparatus |
Also Published As
Publication number | Publication date |
---|---|
JP3276034B2 (en) | 2002-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0855058A (en) | Expanding method for memory area | |
JPH0192851A (en) | Switching device for address space | |
JPH0447349A (en) | Data storage device | |
JPH11259417A (en) | Bus access system and bus access controller | |
JPS59197946A (en) | Memory device | |
JP2002318779A (en) | Device, and access method for its register | |
JPH04245346A (en) | Microcomputer system | |
JPH04112251A (en) | Microcomputer | |
JPS59119456A (en) | Access system of segmented memory | |
JP3217815B2 (en) | Address translation method | |
JPS6331087A (en) | Memory access circuit | |
JPH09269890A (en) | Endian conversion system | |
JPH0277934A (en) | Line buffer memory | |
JPH0944460A (en) | Barrier synchronization processing method | |
JPH03130844A (en) | Bit address control circuit for bit map memory | |
JPH03276357A (en) | I/o address conversion system | |
JPH03182956A (en) | Buffer memory sharing system | |
JPH01140354A (en) | Bank memory control system | |
JPH0224748A (en) | Address switching circuit | |
JPH05197612A (en) | Data access circuit | |
JPH1049427A (en) | Storage having arithmetic reading function | |
JPH09231126A (en) | Memory map switching device | |
JPH0816509A (en) | Information processor | |
JPH0540685A (en) | Address decoder | |
JPS62209639A (en) | Memory modification writing circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |