JPS61151689A - Memory writing control system - Google Patents

Memory writing control system

Info

Publication number
JPS61151689A
JPS61151689A JP59279405A JP27940584A JPS61151689A JP S61151689 A JPS61151689 A JP S61151689A JP 59279405 A JP59279405 A JP 59279405A JP 27940584 A JP27940584 A JP 27940584A JP S61151689 A JPS61151689 A JP S61151689A
Authority
JP
Japan
Prior art keywords
color
written
memory
write
foreground
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
Application number
JP59279405A
Other languages
Japanese (ja)
Other versions
JPH0352067B2 (en
Inventor
中川 陽一
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.)
Usac Electronic Ind Co Ltd
Original Assignee
Usac Electronic Ind Co 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 Usac Electronic Ind Co Ltd filed Critical Usac Electronic Ind Co Ltd
Priority to JP59279405A priority Critical patent/JPS61151689A/en
Publication of JPS61151689A publication Critical patent/JPS61151689A/en
Publication of JPH0352067B2 publication Critical patent/JPH0352067B2/ja
Granted legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はメモリ書き込み制御方式、特にカラー表示を行
わせるためのRGB情報等をビットマツプメモリに少な
いアクセス回数によって高速に書き込むよう構成したメ
モリ書き込み制御方式に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a memory write control method, and particularly to a memory write control system configured to write RGB information, etc. for color display into a bitmap memory at high speed with a small number of accesses. This concerns the control method.

〔従来の技術と発明が解決しようとする問題点〕従来、
カラーCRTディスプレイ装置に於いてはディスプレイ
上に表示されるドツト位置に対応したビットを備えた画
像データメモリ (以下ビットマツプメモリという)を
複数枚備え、CRT表示のためのラスタースキャンに同
期してこれら複数枚のピントマツプメモリを読み出し並
列直列変換することによりlドツト当たり複数ビットの
信号(最も簡単なものにおいては1ドツト当たりRGB
の3ビツト)を出力し、これをディスプレイ上に三原色
であるR(赤色)、G(緑色)およびB(青色)の強弱
として表示することによって所望のカラー表示を行って
いる。一般に表示されるRGBは夫々1枚以上のビット
マツプメモリに格納されており、当該ビットマツプメモ
リ中の領域に所望の図形、文字等の画像情報を展開する
ことにより、ディスプレイ上にカラー表示を行うことが
できる。該カラー表示を迅速に実行するには、ビットマ
ツプメモリ中に所望のカラー情報を迅速に書き込む必要
がある。
[Problems to be solved by conventional technology and invention] Conventionally,
A color CRT display device is equipped with a plurality of image data memories (hereinafter referred to as bitmap memories) each having bits corresponding to the dot positions displayed on the display, and these are stored in synchronization with the raster scan for CRT display. By reading out multiple focus map memories and converting them into parallel to serial, a signal with multiple bits per dot (in the simplest case, RGB signals per dot)
A desired color display is performed by outputting 3 bits of 3 bits) and displaying the intensity of the three primary colors R (red), G (green) and B (blue) on the display. Generally displayed RGB are each stored in one or more bitmap memories, and color display is performed on the display by developing image information such as desired figures and characters in the area in the bitmap memory. be able to. To quickly perform the color display, it is necessary to quickly write the desired color information into the bitmap memory.

該書き込む方式として、例えば第8図図示構成の如く1
ワードを16ビツトで構成し、RSGおよびBに対応す
る3枚のビットマツプメモリl−1,1−2,1−3を
準備し、当該書き込もうとする色(R,GあるいはB)
に対応するピントマツプメモリ1−1.1−2あるいは
1−3をデコーダ2−1を用いて選択してデータバス(
DB)上に存在する画像データを書き込むものがある。
As the writing method, for example, 1 as shown in the configuration shown in FIG.
A word consists of 16 bits, and three bitmap memories l-1, 1-2, 1-3 corresponding to RSG and B are prepared, and the color to be written (R, G or B) is prepared.
Select the focus map memory 1-1, 1-2 or 1-3 corresponding to the data bus (
There is one that writes image data existing on the DB).

該ビットマツプメモリ1−1.1−2.1−3 +=対
して図示されていないCPUからの書き込みあるいは読
み出しを選択するために第9図図示の如きコントロール
レジスタ3−1t[け、当8亥コントロールレジスタ3
−1の例えば図示■を用いて示すLSBから2ビツトの
領域(PSLOおよびPSL・1)に所定の値、例えば
“10”、“01”および“00”からなる値を格納す
ることによって夫々選択的にR,GおよびBに対応する
ビットマツプメモリ1−1.1−2.1−3の選択を夫
々行っていた。そして、CPUからの書き込み時にビッ
トマツプメモリ1−1.1−2.1−3のすべてに対し
て第11図図中の如くアドレス(Address)、R
AS、CAS、およびメモリに書き込む画像データを供
給するとともに前述した選択されたビットマツプメモリ
のみにWE倍信号供給することによって、所望の色に対
応するピントマツプメモリ1−1.1−2.1−3に対
して画像データを書き込んでいた。このように第8図図
示構成では、RGBに対応する夫々のビットマ・7プメ
モリ1−1.1−2.1−3を夫々別個にアクセスして
夫々所望の画像データを書き込む必要があり、例えば同
じ画像データを夫々のビットマツプメモリ1−1.1−
2.1−3に書き込む場合であっても、夫々について独
立に書き込みを行わなければならず、高速に書き込みを
行い難いという問題点があった。
A control register 3-1t as shown in FIG. Pig control register 3
-1, for example, by storing a predetermined value, such as a value consisting of "10", "01", and "00", in the 2-bit area (PSLO and PSL・1) from the LSB shown using the symbol . Bitmap memories 1-1.1-2.1-3 corresponding to R, G, and B are selected individually. Then, when writing from the CPU, the address (Address), R
The focus map memory 1-1.1-2.1 corresponding to the desired color is supplied by supplying AS, CAS, and image data to be written to the memory, and by supplying the WE multiplied signal only to the aforementioned selected bit map memory. Image data was being written to -3. As described above, in the configuration shown in FIG. 8, it is necessary to separately access each of the bitmap memories 1-1.1-2.1-3 corresponding to RGB and write desired image data, for example. The same image data is stored in each bitmap memory 1-1.1-
Even when writing to 2.1-3, there is a problem that writing must be done independently for each, making it difficult to write at high speed.

また、別な従来例では第11図図示構成の如くRGBに
夫々対応する3枚のビットマツプメモリ1−1.1−2
.1−3を準備し、第12図(イ)図中コントロールレ
ジスタ3−2中の図示■(RE、 GEおよびBE)に
例えば“1”を設定するか否かによって当該書き込もう
とするビットマツプメモリ1−1.1−2.1−3を選
択させ、当該選択されたビットマツプメモリ1−1.1
−2、l−3に対して同一の画像データを同時に書き込
んでいた。具体的に言うと、第12図(イ)図示■に設
定した信号(RE、 GEおよびBE)が第11図図中
左上部に示す位置から切り換え回路4に夫々供給され・
ビットマツプメモリ1−1.1−2.1−3の内の1つ
、2つあるいは3つのいずれかを選択し、かつ第12図
(ロ)図示マスクレジスタ5中に“1”を設定したビッ
トに対応する画像データが第11図図中マスク回路6に
よって指定されて書き込まれていた。第13図はデータ
バス(DB)上に存在する画像データを第11図図中の
ビットマツプメモリ1−1.1−2.1−3中に書き込
む場合の波形図を夫々示す。図中CASは書き込む(ラ
イトする)ビットマツプメモリ1−1.1−2.1−3
に対してのみ切り換え回路4から供給される。また、W
E(書き込み信号)はデータバス上に存在する画像デー
タを書き込むビットに対応するものに対してのみマスク
回路6から夫々供給される。尚、当該ビットマツプメモ
リ1−1.1−2.1−3からデータを読み出す場合に
は、切り換え回路4に対して図示ライトサイクル信号が
通知され、コントロールレジスタ3−2の内容に関係な
くビットマツプメモリ1−1.1−2.1−3中の画像
データが同時に読み出される。該画像データからCPU
への読み出しは、第12図(イ)図示■を用いて示す2
ビツト(PSLOおよびPSLI)に格納された値11
0″、“01”および“00゛に対応してR,Gおよび
Bのいずれか1つを選択して行われる。以上説明した如
く第1図図示構成によれば、書き込みの場合には、マス
クレジスタ5で指定したビットであって、かつコントロ
ールレジスタ3−2で指定したビットマツプメモリ1−
1.1−2.1−3の1つないし3つに対して、データ
バス上に存在する画像データを1回のアクセスで書き込
むことができるようになる。しかし、例えばある背景色
中に別な前景色で表示する様なデータを書き込みたい場
合には、夫々のピントマツプメモリ1−1.1−2、■
−3に書き込まれるべきデータが夫々異なるのでビット
マツプメモリ1−1、l−2,1−3に対して夫々別個
に書き込む必要があり、多数のアクセスを繰り返す必要
があり、高速に書き込みを行い難いという問題点があっ
た。
In another conventional example, three bitmap memories 1-1, 1-2 respectively corresponding to RGB are used as shown in FIG.
.. 1-3, and select the bitmap memory to be written depending on whether or not, for example, "1" is set in the control registers 3-2 (RE, GE, and BE) shown in FIG. 12(a). 1-1.1-2.1-3, and the selected bitmap memory 1-1.1
The same image data was written to -2 and l-3 at the same time. Specifically, the signals (RE, GE, and BE) set as shown in FIG.
Select one, two or three of the bitmap memories 1-1.1-2.1-3, and set "1" in the illustrated mask register 5 in Figure 12 (b). Image data corresponding to the bits was designated and written by the mask circuit 6 in FIG. FIG. 13 shows waveform diagrams when image data existing on the data bus (DB) is written into the bitmap memories 1-1.1-2.1-3 in FIG. 11, respectively. In the figure, CAS indicates bitmap memory 1-1.1-2.1-3 to which data is written.
It is supplied from the switching circuit 4 only to. Also, W
E (write signal) is supplied from the mask circuit 6 only to the bits existing on the data bus corresponding to the bits to which image data is to be written. In addition, when reading data from the bit map memory 1-1.1-2.1-3, the illustrated write cycle signal is notified to the switching circuit 4, and the bit map memory 1-1.1-2.1-3 is read out regardless of the contents of the control register 3-2. The image data in the map memory 1-1.1-2.1-3 are read out at the same time. CPU from the image data
The readout is shown in Figure 12 (a) using the diagram 2.
The value stored in bits (PSLO and PSLI) is 11.
This is done by selecting one of R, G, and B corresponding to 0'', 01, and 00''. As explained above, according to the configuration shown in FIG. 1, in the case of writing, the bit specified by the mask register 5 and the bit map memory 1-
Image data existing on the data bus can be written to one to three of 1.1-2.1-3 in one access. However, if you want to write data that is displayed in a different foreground color within a certain background color, for example, the focus map memories 1-1, 1-2, and
Since the data to be written to bitmap memories 1-1, 1-2, and 1-3 is different, it is necessary to write to each bitmap memory 1-1, l-2, and 1-3 separately, and it is necessary to repeat a large number of accesses. The problem was that it was difficult.

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

本発明は、前記問題点の原因が、データバス上のデータ
を書き込みデータとしている為、種々の色を表現する際
、結局各ビットマツプメモリ毎の書き込みデータが異な
る為に、ビットマツプメモリ毎に書き込みデータを転送
する必要があった為である点に着目し前記問題点を解決
するために、カラー表示を行わせるための画像データを
ビットマツプメモリに書き込む際に、画像データを書き
込むビットマツプメモリを指定するコントロールレジス
タの他に、更に書き込む背景色および前景色を指定する
カラーレジスタを設けることにより、少ないアクセス回
数によって画像データを所望のビットマツプメモリに高
速に書き込むようにしている。そのため、本発明のメモ
リ書き込み制御方式は、カラー画像データをメモリに書
き込み、当該書き込んだデータを読み出してディスプレ
イに表示し得るよう構成したメモリ書き込み制御方式に
おいて、前記カラー画像データを書き込むN組のメモリ
と、該N !fflのメモリ中のいずれのものに背景色
を書き込むか否かを少なくとも設定するコントロールレ
ジスタと、J亥コントロールレジスタによって設定され
たメモリに対して書き込むべき背景色を指定する背景色
指定手段と、前記メモリに書き込む前景色を指定する前
景色指定手段とを備え、前記コントロールレジスタに背
景色を書き込むよう設定した場合に当該設定したメモリ
に対して前記背景色指定手段によって指定された背景色
を書き込んだ後に前記前景色指定手段によって指定され
た前景色を表示データに対応させる形で前記N組のメモ
リに書き込み、前記コントロールレジスタに背景色を書
き込まないよう設定した場合に前記前景色指定手段によ
って指定された前景色を表示データに対応させる形で前
記N組のメモリに書き込むよう構成したことを特徴とし
ている。
In the present invention, the cause of the above problem is that the data on the data bus is used as write data, and when expressing various colors, the write data for each bitmap memory is different, so the write data is different for each bitmap memory. In order to solve the above problem, we focused on the fact that it was necessary to transfer the written data, and in order to solve the above problem, we developed a bitmap memory for writing image data when writing image data to the bitmap memory for color display. In addition to the control register that specifies the image data, a color register that specifies the background color and foreground color to be written is provided, so that image data can be written to a desired bitmap memory at high speed with a small number of accesses. Therefore, in the memory write control method of the present invention, in a memory write control method configured to write color image data into a memory, read out the written data, and display it on a display, N sets of memories into which the color image data is written are provided. And that N! a control register for setting at least whether or not a background color is to be written into any of the memories of the J.ffl; a background color specifying means for specifying a background color to be written to the memory set by the J control register; a foreground color specifying means for specifying a foreground color to be written to the memory, and when the control register is set to write a background color, the background color specified by the background color specifying means is written to the set memory. Later, when the foreground color specified by the foreground color specifying means is written in the N sets of memories in a form that corresponds to the display data, and the background color is set not to be written to the control register, the foreground color specified by the foreground color specifying means is The present invention is characterized in that the foreground color is written in the N sets of memories in a form that corresponds to the display data.

〔実施例〕〔Example〕

以下図面を参照しつつ本発明の実施例を詳細に説明する
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の1実施例構成図、第2図は背景色の上
に前景パターンを書(場合の第1図図示構成の動作を説
明する説明図、第3図は予め書かれた背景の上に表示パ
ターンを書く場合の第1図図示構成の動作を説明する説
明図、第4図は第1図図示本発明の1実施例構成の具体
例、第5図は第1図図示本発明の1実施例構成中のコン
トロールレジスタおよびカラーレジスタの具体例、第6
図および第7図は第4図図示具体例の動作を説明する波
形図を示す。
Fig. 1 is a configuration diagram of one embodiment of the present invention, Fig. 2 is an explanatory diagram explaining the operation of the configuration shown in Fig. 1 in which a foreground pattern is drawn on a background color, and Fig. 3 is an explanatory diagram explaining the operation of the configuration shown in Fig. 1. An explanatory diagram for explaining the operation of the configuration shown in FIG. 1 when a display pattern is written on the background, FIG. 4 is a specific example of the configuration of one embodiment of the present invention shown in FIG. 1, and FIG. Specific examples of control registers and color registers in one embodiment of the present invention, No. 6
7 and 7 show waveform diagrams for explaining the operation of the specific example shown in FIG. 4.

図中、lはビットマツプメモリ、1−1.1−2、■−
3は夫々RGBに対応するビ・ノトマソプメモリ、4は
切り換え回路、6.6−1.6−2はコントロールレジ
スタ、7.7−1.7−2はカラーレジスタ、8−1.
8−2はデータバス上のデータ、9は制御部、10−1
ないしlo−4,11はセレクタを表す。
In the figure, l is bitmap memory, 1-1.1-2, ■-
3 is a bi-notomasop memory corresponding to RGB, 4 is a switching circuit, 6.6-1.6-2 is a control register, 7.7-1.7-2 is a color register, 8-1.
8-2 is data on the data bus, 9 is a control unit, 10-1
to lo-4, 11 represent selectors.

第1図において、図中ビットマツプメモリ1は例えばR
GBに対応する夫々のビットマツプメモリ1−1.1−
2.1−3から構成されており、各1ワードは例えば夫
々16ビツトで構成されており、並列直列変換により1
画素当たりRGBの3ビツトに展開して表示される。該
ビットマツプメモリ1−1.1−2、l−3中の1つ、
2つあるいは3つに対して背景色を書き込むか否かは、
後述する如くコントロールレジスタ6中の図示■を用い
て示す領域に“1”を設定するか否かによって決定され
、いずれのビットマツプメモリ1−1.1−2.1−3
に書き込むかは図示■を用いて示す領域に11”を設定
するか否かによって選択され、かつどのような背景色(
RGB)を書き込むかはカラーレジスタフ中の図示■を
用いて示す領域に設定する値によって決定される。また
、書き込むべき前景色は、カラーレジスタ7中の図示■
を用いて示す領域に設定する値によって決定される。制
御部9はコントロールレジスタ6、カラレジスタフおよ
びデータバス上の信号に基づいて、ビットマツプメモリ
1−1.1−2.1−3に書き込んだり、コントロール
レジスタ6の読み出し選択によるCPUへの読み出し及
び表示の為の読み出し制御を行うためのものである。以
下順次詳細に説明する。
In FIG. 1, the bitmap memory 1 in the figure is, for example, R
Each bitmap memory corresponding to GB 1-1.1-
2.1-3, each word is composed of, for example, 16 bits, and by parallel-serial conversion,
Each pixel is expanded into 3 bits of RGB and displayed. One of the bitmap memories 1-1, 1-2, l-3,
Whether to write the background color for two or three,
As will be described later, it is determined by whether or not "1" is set in the area indicated by the symbol (■) in the control register 6, and which bitmap memory 1-1.1-2.1-3
The choice of whether or not to write to is determined by whether or not 11" is set in the area shown using
Whether or not RGB) is written is determined by the value set in the area indicated by the symbol ``■'' in the color register graph. Also, the foreground color to be written is shown in the color register 7.
It is determined by the value set in the area shown using . The control unit 9 writes to the bitmap memory 1-1.1-2.1-3 based on the control register 6, the color register database, and the signals on the data bus, or reads and displays the data to the CPU based on the readout selection of the control register 6. This is to perform read control for. A detailed explanation will be given below.

まず、第5図を用いて第1図図中コントロールレジスタ
6およびカラーレジスタ7の役割を説明する。
First, the roles of the control register 6 and color register 7 in FIG. 1 will be explained using FIG. 5.

第5図(イ)はコントロールレジスタ6に格納する制御
ビットを示す。図中■RE、 GEおよびBEは書き込
むビットマツプメモリ1−1.1−2、l−3を指定す
るためのものである。そして、図中■BACKEは図中
■によって指定されたビットマ。
FIG. 5(a) shows control bits stored in the control register 6. In the figure, RE, GE and BE are used to designate bitmap memories 1-1, 1-2 and 1-3 to be written. ■ BACKE in the figure is the bitma specified by ■ in the figure.

プメモリに背景色を書き込むか否かを決定するためのピ
ントである。また、図中■PSLO,PSLIはCPU
から画像データを読み出す1つのビットマ。
This is the focus for determining whether or not to write the background color to the screen memory. In addition, ■PSLO and PSLI in the diagram are CPU
One bitma to read image data from.

プメモリ1−1.1−2.1−3を指定するためのビッ
トであって、例えば“10”、“01”および100”
は夫々RSGおよびBに対応するビットマツプメモリ1
−1.1−2.1−3を指定するためのものである。
Bits for specifying memory 1-1.1-2.1-3, such as "10", "01" and "100"
are bitmap memory 1 corresponding to RSG and B, respectively.
-1.1-2.1-3.

第5図(ロ)はカラーレジスタフに格納する制御ビット
を示す。図中■BGR、BGGおよびBGBは書き込む
背景色を指定するビットであり、図中■FGR5FGG
およびFGBは書き込む前景色を指定するビットである
FIG. 5(b) shows the control bits stored in the color register. ■BGR, BGG, and BGB in the figure are bits that specify the background color to write, and ■FGR5FGG in the figure
and FGB are bits that specify the foreground color to be written.

以上説明した第5図(イ)および(ロ)図示制御ビット
を用いると、いわば一度のCPUからのアクセスによっ
て、例えば第2図図示の如く緑色(G)からなる背景色
の上に赤色(R)を用いて前景パターンを書き込むこと
ができる。また、同様にいわば一度のアクセスによって
、第3図図示の如く既に表示された表示パターンの上に
黄色の表示パターンを書き込むこともできる。以下詳述
する。
By using the illustrated control bits in FIGS. 5(a) and 5(b) explained above, a single access from the CPU allows, for example, red (R) on a background color of green (G) as shown in FIG. ) can be used to write the foreground pattern. Similarly, a yellow display pattern can be written on an already displayed display pattern as shown in FIG. 3 by one access. The details will be explained below.

第2図図中コントロールレジスタ6−1中の図示■およ
び■を用いて示す領域に夫々“l”を設定(背景色及び
前景色を全てのビットマツプメモリ1−1.1−2.1
−3に書き込む設定)し、かつカラーレジスタ7−1中
の図示[相]で示す領域に“010” (背景色として
緑色を設定)、図示0で示す領域に“100” (前景
色として赤色)を設定する。これにより、書き込むべき
表示パターンをデータバス8−1に出力しながらビット
マツプメモリの書き込みを行うと、第2・回国中ステッ
プlに示す如く、[相]の内容に従いG(緑色)のビッ
トマツプメモリ1−2中のアドレスで示された1ワード
全てのビットに“I”が書き込まれると共に、R(赤色
)およびB(青色)のビア)マツプメモリ1−1および
1−3中の同一アドレスの1ワード全てのビットに′″
0”が書き込まれる。
Set "l" in the areas indicated by ■ and ■ in the control register 6-1 in FIG.
-3), and the area indicated by [Phase] in the color register 7-1 is set to "010" (green is set as the background color), and the area indicated by 0 is set to "100" (red is the foreground color). ). As a result, when the bitmap memory is written while outputting the display pattern to be written to the data bus 8-1, the G (green) bitmap is written according to the contents of [phase], as shown in the second round country step l. "I" is written to all bits of one word indicated by the address in memory 1-2, and the same address in R (red) and B (blue) vias is written to the bits of the same address in map memories 1-1 and 1-3. ''' for all bits of one word
0” is written.

次に、第2図図中ステップ2に示す如く、カラーレジス
タ7−1中■に格納されている前景色(“100”、赤
色)をデータバス8−1によっていわばマスクした形で
ビットマツプメモリ1−1.1−2.1−3に夫々書き
込む、該書き込みは、例えばデータバス8−1中の図示
@を用いて示す11°のビットに対応して、ステップ2
におけるRに対応するビットマツプメモリ1−1中の図
示@を用いて示す領域に“1”の形で書き込まれると共
に図中■および@を用いて示す他の色(GおよびB)に
対応するビットマツプメモリ1−2.1−3中の領域に
0”の形で書き込まれる。これにより、結果として緑色
の背景色中に赤色の表示パターンが書き込まれることと
なる。以上説明したステップlおよびステップ2は、同
一のアドレスをビットマツプメモリl−1,1−2、l
−3に夫々供給した状態で、緑色の背景色を書き込んだ
後に、続いて赤色の前景色を書き込むよう所定のライト
信号をビットマツプメモリ1−1.1−2、l−3に供
給しているため、少ないアクセスによって背景色と前景
色とを書き込むことができる。特に後述する如くダイナ
ミックRAMを用いてビットマツプメモリ1−1.1−
2.1−3を構成した場合には、いわゆるページモード
を用いることによって、いわばCPUからの1アクセス
で背景色と前景色とを書き込むことが可能となり、極め
て高速かつ効率良好に書き込みが可能となる。
Next, as shown in step 2 in FIG. 2, the foreground color ("100", red) stored in the color register 7-1 (■) is masked by the data bus 8-1, so to speak, and is stored in the bitmap memory. 1-1.1-2.1-3 respectively, the writing is performed in step 2, for example, corresponding to the 11° bit indicated by @ in the data bus 8-1.
It is written in the form of "1" in the area indicated using @ in the bitmap memory 1-1 corresponding to R in the figure, and corresponds to other colors (G and B) indicated using ■ and @ in the figure. The bitmap memory 1-2.1-3 is written in the form of 0". As a result, a red display pattern is written in a green background. Steps l and Step 2 is to map the same addresses to bitmap memories l-1, 1-2, l
After writing the green background color, a predetermined write signal is supplied to the bitmap memories 1-1, 1-2 and l-3 to write the red foreground color. Therefore, the background color and foreground color can be written with fewer accesses. In particular, as described later, bitmap memory 1-1.1-
2. In the case of configuring 1-3, by using the so-called page mode, it becomes possible to write the background color and foreground color with one access from the CPU, and it is possible to write extremely quickly and efficiently. Become.

次に既に表示されているパターンの上に黄色の表示パタ
ーンを上書きする場合について述べると、第3図図中コ
ントロールレジスタ6−2中の図示@を用いて示す領域
に“0”を設定図示[株]に“111”と(背景色を書
き込まないで前景色のみビットマツプメモリ1−1.1
−2.1−3に書き込む)設定し、カラーレジスタ7−
2中の図示■に“110”を設定(前景色として赤色と
緑色を加色した黄色を設定し、データバス8−2に表示
パターンを与えながらライトサイクルを行うことにより
、第3図図中ステップ1では背景色は書き込まれず、前
回書き込んだ表示色がそのまま残っている。次に、カラ
ー−ジス4タフー2中の図示■に従い第3図図中ステッ
プ2に示す如く、データバス8−2中で与えられている
マスク情報に従い前景パターンをR(赤色)およびG(
緑色)に対応するビットマツプメモリ1−1.1−2中
に書き込むと共に当該書き込んだ領域に対応するB(青
色)のビットマツプメモリl−3中に“0”を書き込む
、具体的に言うと、データバス8−2中の図示■を用い
て示す“1”に対応して、カラーレジスタ7−2中の図
示[相]で指定された前景色“11O″ (黄色)とな
るようにRおよびGに対応するビットマツプメモリ1−
1.1−2中の図示@および@を用いて示す領域に“1
”を夫々書き込むと共に、他の色(B)に対応するビッ
トマツプメモリ1−3中の図示[相]を用いて示す領域
に“0”を書き込む。この結果、黄色(RとGとを加色
した色)が書き込まれることとなる。尚、従来の第8図
図示構成によれば、RとGとに対応するビットマツプメ
モリ1−11−2から夫々画像データを読み出し、表示
パターンとのオア演算を行った後、再度夫々書き込む必
要があると共に、Bに対応するビットマツプメモリ1−
3から画像データを読み出したものと、表示パターンを
インバートシたものとのアンド演算を行った後、再度書
き込む必要があるため、計6回のメモリアクセスが必要
であった。本発明ではこのような演算および多数回のア
クセスを必要としない。
Next, to describe the case where a yellow display pattern is to be overwritten on the already displayed pattern, "0" is set in the area indicated by @ in the control register 6-2 in FIG. "111" in the bitmap memory 1-1.1 (without writing the background color and only the foreground color)
-2.Write to 1-3) and color register 7-
By setting "110" in the figure 2 (by setting yellow, which is a combination of red and green, as the foreground color and performing a write cycle while giving a display pattern to the data bus 8-2, In step 1, the background color is not written, and the previously written display color remains as is.Next, as shown in step 2 in Fig. 3, according to the illustration ① in the color register 4 taboo 2, the data bus 8-2 is The foreground pattern is changed to R (red) and G (
To be more specific, "0" is written in the bitmap memory 1-1.1-2 corresponding to the B (blue) bitmap memory 1-1.1-2 corresponding to the B (blue) bitmap memory 1-2 corresponding to the written area , R so that the foreground color specified by the [phase] in the color register 7-2 becomes "11O" (yellow), corresponding to "1" indicated by the symbol ■ in the data bus 8-2. and bitmap memory 1- corresponding to G
1. In the area indicated using @ and @ in 1-2, “1”
” and write “0” in the area shown using [phase] in the bitmap memory 1-3 corresponding to the other color (B). As a result, yellow (R and G are added) According to the conventional configuration shown in FIG. 8, the image data corresponding to R and G are read out from the bitmap memory 1-11-2, respectively, and the display pattern is After performing the OR operation, it is necessary to write each bit again, and the bitmap memory 1-
After performing an AND operation on the image data read from No. 3 and the inverted display pattern, it was necessary to write it again, so a total of six memory accesses were required. The present invention does not require such operations and multiple accesses.

第4図は第1図図示構成の具体例を示す。FIG. 4 shows a specific example of the configuration shown in FIG. 1.

図中ビットマツプメモリlはR%GおよびBに対応する
画像データを格納するビットマツプメモリi−i、1−
2.1−3から構成されている。
In the figure, bitmap memory l stores image data corresponding to R%G and B, i-i, 1-
It consists of 2.1-3.

図中@RE、 GEおよびBHには第5図(イ)図示コ
ントロールレジスタ6中の図示■RE、 G[!および
BEからの信号が夫々供給される。これは、書き込みを
行うビットマツプメモリ1−1.1−2、■−3を選択
する信号(それぞれRGBに対応)である。
In the figure, @RE, GE, and BH are shown in FIG. 5 (a). RE, G [! and BE, respectively. This is a signal for selecting the bitmap memories 1-1, 1-2 and -3 (corresponding to RGB, respectively) for writing.

図中[相]DBOないしDB15は夫々データバスに接
続されており、いずれのビットに前景色等を書き込ませ
るかを決めるためのものである。
In the figure, [phase] DBO to DB15 are each connected to a data bus, and are used to determine which bit is to be written with the foreground color, etc.

図中■BGSELは背景色(バックグランド)と前景色
とを切り換えるための信号である。
In the figure, ■BGSEL is a signal for switching between the background color and the foreground color.

図中@BACKEには第5図(イ)図示コントロールレ
ジスタ6中の図示■BACKEからの信号が供給される
。これは、背景色を書き込むか否かを選択する信号であ
る。
In the figure, @BACKE is supplied with a signal from ①BACKE in the control register 6 shown in FIG. 5(A). This is a signal for selecting whether or not to write the background color.

図中0BGR、FGR、BGG 、 FGG 、 BG
BおよびFGBには第5図(ロ)図示カラーレジスタ7
中の対応するものから夫々信号が夫々供給される。これ
は、ビットマツプメモリ1−1.1−2.1−3に書き
込む背景色および前景色を指定するためのものでありB
GR、BGG 、  BGBは背景色の(RGB) 、
FGR、FGG 5FGB  は前景色の(RG B)
に対応する。
0BGR, FGR, BGG, FGG, BG in the diagram
For B and FGB, the color register 7 shown in FIG.
Signals are respectively supplied from corresponding ones inside. This is for specifying the background color and foreground color to be written to bitmap memory 1-1.1-2.1-3.
GR, BGG, BGB are the background colors (RGB),
FGR, FGG 5FGB is the foreground color (RG B)
corresponds to

以上説明した図中[相]ないし0等の信号をセレクタ1
0−1ないし10−4.11等に供給し、所定の書き込
み信号をビットマツプメモリ1−1.1−2.1−3に
供給することにより、例えば第2図および第3図図示の
如き書き込みが行われる。
Selector 1 selects the signals such as [phase] or 0 in the diagram explained above.
0-1 to 10-4.11, etc., and a predetermined write signal to the bitmap memories 1-1.1-2.1-3, for example, as shown in FIGS. 2 and 3. Writing is performed.

この際、第4図図示@BACKF、が“1”の場合(背
景色と前景色とを書き込む場合)には、第6図図示の如
き波形によって、例えば第2図を用いて説明した如く、
背景色(図中BG)が第5図(イ)図示コントロールレ
ジスタ6中の図示■によって指定されたビットマツプメ
モリ1−1.1−2.1−3中のアドレスで指定されて
いるワードの全てのビットに対してWE倍信号出力され
、第5図(ロ)図示カラーレジスタ7中の図示■によっ
て指定された値<BGR、8GG 、  BGBでそれ
ぞれ“O”あるいは“1”)が対応するピントマツプメ
モリ1−1.1−2.1−3 (即ちRGBメモリ)夫
々に書き込まれる。続いて、データバス上のデータDB
=1のビットに対応するメモリに対してのみ2度目のW
E倍信号出力され前景色(図中FG)は第5図(ロ)図
示カラーレジスタ中の図示■を用いて示すデータがビッ
トマツプメモリ1−1.1−2.1−3の同一ワード中
47)WE倍信号受けたメモリに対してのみ書き込まれ
る。、:れら一連の背景色、前景色の書き込みがページ
モードによるいわばCPUからの1アクセス中に行われ
る。
At this time, when @BACKF shown in FIG. 4 is "1" (when writing the background color and foreground color), the waveform shown in FIG. 6 is used, for example, as explained using FIG.
The background color (BG in the figure) of the word specified by the address in the bitmap memory 1-1.1-2.1-3 specified by the symbol ■ in the graphical control register 6 in FIG. The WE multiplied signal is output for all bits, and the value specified by the symbol (■) in the color register 7 shown in FIG. The data is written to the focus map memories 1-1.1-2.1-3 (ie, RGB memories), respectively. Next, the data DB on the data bus
= 1 bit only for the memory corresponding to the second W
The foreground color (FG in the figure) that is output as an E signal is the data shown using the symbol ■ in the color register shown in Figure 5 (b) in the same word of the bitmap memory 1-1.1-2.1-3. 47) Written only to the memory that received the WE double signal. , : Writing of a series of background colors and foreground colors is performed during one access from the CPU in page mode.

また、第4図図示@BACKEが“0”の場合(前景色
のみを書き込む場合)には、第7図図示の如き波形即ち
背景色書き込みの為の1回目のWE倍信号出力されない
で、データバス上のDB= 1のビットに対応するメモ
リに対して2回目のWE倍信号みが出力されることによ
って、例えば第3図を用いて説明した如く、以前に書き
込まれた背景色(図中BG)上に前景色(図中FC)の
みが書き込まれる。
In addition, when @BACKE shown in FIG. 4 is "0" (when only the foreground color is written), the waveform shown in FIG. By outputting only the second WE multiplication signal to the memory corresponding to the DB=1 bit on the bus, the previously written background color (in the figure) is Only the foreground color (FC in the figure) is written on the BG).

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

以上説明した如く、本発明によれば、カラー表示を行わ
せるための画像データをビットマツプメモリに書き込む
際に、画像データを書き込むビットマツプメモリを選択
するコントロールレジスタの他に、更にビットマツプメ
モリに書き込む前景色および背景色を指定するカラーレ
ジスタ等を設けているため、少ないアクセス回数によっ
て画像データを所望のビットマツプメモリに書き込むこ
とができる。また、前景色の書き込みを許可/禁止する
制御ビット(例えばコントロールレジスタ6中のBAC
KE)を設けたため、以前に書き込んだ表示を背景色と
し、当該前景色の上に任意の表示パターンを高速に上書
きすることができる。
As explained above, according to the present invention, when writing image data for color display to a bitmap memory, in addition to the control register for selecting the bitmap memory to which the image data is written, the bitmap memory Since a color register and the like for specifying the foreground and background colors to be written are provided, image data can be written to a desired bitmap memory with a small number of accesses. Also, a control bit (for example, BAC in control register 6) that enables/disables writing of the foreground color is used.
KE), the previously written display can be used as the background color, and any display pattern can be quickly overwritten on the foreground color.

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

第1図は本発明の1実施例構成図、第2図は背景色の上
に前景パターンを書く場合の第1図図示構成の動作を説
明する説明図、第3図は予め書かれた背景の上に表示パ
ターンを書く場合の第1図図示構成の動作を説明する説
明図、第4図は第1図図示本発明の1実施例構成の具体
例、第5図は第1図図示本発明の1実施例構成中のコン
トロールレジスタおよびカラーレジスタの具体例、第6
図および第7図は第4図図示具体例の動作を説明する波
形図、第8図および第11図は従来のメモリ書き込み制
御方式の構成図、第9図と第10図は第8図図示構成の
動作を説明する説明図、第12図と第13図は第1図図
示構成の動作を説明する説明図を示す。 図中、1はビットマツプメモリ、■−1,1−2,1−
3は夫々RGBに対応するビットマツプメモリ、4は切
り換え回路、6.6−1.6−2はコントロールレジス
タ、7.7−1.7−2はカラーレジスタ、8.8−L
8−2はデータバスの内容、9は制御部、10−1ない
し10−4.11はセレクタを表す。 特許出願人  ユーザツク電子工業株式会社代理人弁理
士 森1)寛(外2名) 1′−1 し
Figure 1 is a configuration diagram of one embodiment of the present invention, Figure 2 is an explanatory diagram illustrating the operation of the configuration shown in Figure 1 when a foreground pattern is drawn on a background color, and Figure 3 is a background drawn in advance. An explanatory diagram for explaining the operation of the configuration shown in FIG. 1 when a display pattern is written on the screen, FIG. 4 is a specific example of the configuration of one embodiment of the present invention shown in FIG. 1, and FIG. Specific examples of control registers and color registers in the configuration of one embodiment of the invention, No. 6
7 and 7 are waveform diagrams explaining the operation of the specific example shown in FIG. 4, FIGS. 8 and 11 are configuration diagrams of a conventional memory write control system, and FIGS. 9 and 10 are waveform diagrams that are shown in FIG. FIGS. 12 and 13 are explanatory diagrams for explaining the operation of the configuration shown in FIG. 1. FIGS. In the figure, 1 is bitmap memory, ■-1, 1-2, 1-
3 is a bitmap memory corresponding to RGB, 4 is a switching circuit, 6.6-1.6-2 is a control register, 7.7-1.7-2 is a color register, 8.8-L
8-2 represents the contents of the data bus, 9 represents a control section, and 10-1 to 10-4.11 represent selectors. Patent applicant: Usatsuk Electronic Industry Co., Ltd. Representative Patent Attorney Hiroshi Mori (2 others) 1'-1 Shi

Claims (1)

【特許請求の範囲】[Claims] カラー画像データをメモリに書き込み、当該書き込んだ
データを読み出してディスプレイに表示し得るよう構成
したメモリ書き込み制御方式において、前記カラー画像
データを書き込むN組のメモリと、該N組のメモリ中の
いずれのものに背景色を書き込むか否かを少なくとも設
定するコントロールレジスタと、該コントロールレジス
タによって設定されたメモリに対して書き込むべき背景
色を指定する背景色指定手段と、前記メモリに書き込む
前景色を指定する前景色指定手段とを備え、前記コント
ロールレジスタに背景色を書き込むよう設定した場合に
当該設定したメモリに対して前記背景色指定手段によっ
て指定された背景色を書き込んだ後に前記前景色指定手
段によって指定された前景色を表示データに対応させる
形で前記N組のメモリに書き込み、前記コントロールレ
ジスタに背景色を書き込まないよう設定した場合に前記
前景色指定手段によって指定された前景色を表示データ
に対応させる形で前記N組のメモリに書き込むよう構成
したことを特徴とするメモリ書き込み制御方式。
In a memory write control method configured to write color image data in a memory, read out the written data, and display it on a display, there are N sets of memories into which the color image data is written, and any one of the N sets of memories. a control register for at least setting whether or not to write a background color to an object, a background color specifying means for specifying a background color to be written to the memory set by the control register, and a foreground color to be written to the memory. foreground color designation means, when the background color is set to be written in the control register, the background color designated by the background color designation means is written to the set memory and then designated by the foreground color designation means. The foreground color specified by the foreground color specifying means is written in the N sets of memories in a form that corresponds to the display data, and when the control register is set not to write the background color, the foreground color specified by the foreground color specifying means corresponds to the display data. A memory write control method characterized in that the memory write control method is configured to write to the N sets of memories in a manner that
JP59279405A 1984-12-26 1984-12-26 Memory writing control system Granted JPS61151689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59279405A JPS61151689A (en) 1984-12-26 1984-12-26 Memory writing control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59279405A JPS61151689A (en) 1984-12-26 1984-12-26 Memory writing control system

Publications (2)

Publication Number Publication Date
JPS61151689A true JPS61151689A (en) 1986-07-10
JPH0352067B2 JPH0352067B2 (en) 1991-08-08

Family

ID=17610646

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59279405A Granted JPS61151689A (en) 1984-12-26 1984-12-26 Memory writing control system

Country Status (1)

Country Link
JP (1) JPS61151689A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63191187A (en) * 1986-10-27 1988-08-08 シリコングラフイクス・インコーポレーテツド Video display device to be raster scanned
JPH02500302A (en) * 1986-10-14 1990-02-01 インテル コーポレーシヨン System for storing and retrieving electrical signals representing color images and method for packing frames of color video data into VRAM
JPH05281939A (en) * 1991-07-22 1993-10-29 Internatl Business Mach Corp <Ibm> Image buffer semiconductor chip
JPH0627917A (en) * 1991-07-22 1994-02-04 Internatl Business Mach Corp <Ibm> Display system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02500302A (en) * 1986-10-14 1990-02-01 インテル コーポレーシヨン System for storing and retrieving electrical signals representing color images and method for packing frames of color video data into VRAM
JPS63191187A (en) * 1986-10-27 1988-08-08 シリコングラフイクス・インコーポレーテツド Video display device to be raster scanned
JPH05281939A (en) * 1991-07-22 1993-10-29 Internatl Business Mach Corp <Ibm> Image buffer semiconductor chip
JPH0627917A (en) * 1991-07-22 1994-02-04 Internatl Business Mach Corp <Ibm> Display system

Also Published As

Publication number Publication date
JPH0352067B2 (en) 1991-08-08

Similar Documents

Publication Publication Date Title
US4217577A (en) Character graphics color display system
KR900000742B1 (en) Graphics display apparatus
US4683466A (en) Multiple color generation on a display
US5185859A (en) Graphics processor, a graphics computer system, and a process of masking selected bits
US4837564A (en) Display control apparatus employing bit map method
JPS6230298A (en) Image processor
US4789963A (en) Display control apparatus for controlling to write image data to a plurality of memory planes
JPS6061790A (en) Display control system
US4748442A (en) Visual displaying
JPS58187996A (en) Display memory circuit
JPS61151689A (en) Memory writing control system
US5818433A (en) Grapics memory apparatus and method
JP2845384B2 (en) Image processing device
US5726680A (en) Process for displaying text in the CGA graphic mode on the screen of a personal computer
US4788536A (en) Method of displaying color picture image and apparatus therefor
JP3002951B2 (en) Image data storage controller
US4291306A (en) Figure displaying device
JPS5974590A (en) Memory control system for display
JPH0160835B2 (en)
SU1413647A1 (en) Image shaping apparatus
JPS63132286A (en) Graphic display device
JPS6126085A (en) Image display system
JPS604988A (en) Image display
JP2598916B2 (en) Drawing equipment
JPS62102288A (en) Bit map display unit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees