JPH0727364B2 - Memory writing control circuit for character / graphics display - Google Patents

Memory writing control circuit for character / graphics display

Info

Publication number
JPH0727364B2
JPH0727364B2 JP60153995A JP15399585A JPH0727364B2 JP H0727364 B2 JPH0727364 B2 JP H0727364B2 JP 60153995 A JP60153995 A JP 60153995A JP 15399585 A JP15399585 A JP 15399585A JP H0727364 B2 JPH0727364 B2 JP H0727364B2
Authority
JP
Japan
Prior art keywords
image information
bit
storage device
character
word
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.)
Expired - Lifetime
Application number
JP60153995A
Other languages
Japanese (ja)
Other versions
JPS6215595A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP60153995A priority Critical patent/JPH0727364B2/en
Publication of JPS6215595A publication Critical patent/JPS6215595A/en
Publication of JPH0727364B2 publication Critical patent/JPH0727364B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はビツトマツプ方式を用いた文字・図形表示装置
に係り、特に所定複数ビツトからなる1ワードを単位と
してアドレス付けしたビツトマツプメモリに文字などの
パタン図形を高速に書き込むことができる文字・図形表
示装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character / graphics display device using a bit map method, and more particularly to a bit map memory in which a predetermined word consisting of a plurality of bits is addressed as a unit. The present invention relates to a character / graphics display device capable of writing a pattern graphic at high speed.

〔発明の背景〕[Background of the Invention]

ビツトマツプ方式を用いた文字・図形表示装置では、文
字・図形ともに画素を単位として表示するため、任意の
文字・図形を画面上の任意の位置に表示できるという特
徴がある。このような文字・図形表示装置において文字
表示を行なうため、一般に文字を構成する画素の点灯・
消灯をビツトのオン・オフに対応させて作成したキヤラ
クタジエネレータ(以下CGと略記する)を備え、CGから
読み出したビツト情報をフレームメモリに転送すること
が行なわれる。
The character / graphics display device using the bit map method has a feature that any character or graphic can be displayed at any position on the screen because both characters and graphics are displayed in units of pixels. In order to display characters on such a character / graphics display device, in general, the lighting of the pixels forming the character
A character generator (hereinafter abbreviated as CG) created by turning on / off the light is provided, and bit information read from the CG is transferred to the frame memory.

第3図(a)は文字“A"を縦横8画素で構成した時の画
素パタンの一例、第3図(b)はCGに記憶された第3図
(a)と同一の文字を表わすビツト情報である。(これ
を文字フオントと呼んでいる。) 第3図に示すように、通常CGに記憶されているビツト情
報は、文字を表わす画素パタンを水平方向に分割したも
のに対応している。従つて第3図(a)に示す文字“A"
をフレームメモリに書き込むためには、先ずCGから0001
1000(B)(ここでBは基数が二進数であることを表わ
す)なる文字フオントを読み出してこれをフレームメモ
リに書き込み、次に00100100(B)なる文字フオントを
読み出してこれをフレームメモリに書き込む、という一
連の処理を行なう。このとき、処理の単位となる一群の
ビツト情報を1ワードと呼んでいる。以下では1ワード
が8ビツトから成る場合を採り上げて説明するが、他の
値であつても同様の議論が成り立つことは明らかであ
る。
FIG. 3 (a) is an example of a pixel pattern when the character "A" is composed of vertical and horizontal 8 pixels, and FIG. 3 (b) is a bit representing the same character stored in the CG as shown in FIG. 3 (a). Information. (This is called a character font.) As shown in FIG. 3, the bit information normally stored in the CG corresponds to a horizontally divided pixel pattern representing a character. Therefore, the letter "A" shown in Fig. 3 (a).
To write to the frame memory, first enter 0001 from CG.
Read a character font of 1000 (B) (where B indicates that the radix is a binary number) and write it to the frame memory, then read a character font of 00100100 (B) and write it to the frame memory. , A series of processing is performed. At this time, a group of bit information as a unit of processing is called one word. Although the case where one word consists of 8 bits will be described below, it is clear that the same argument holds for other values.

フレームメモリは表示画面上のすべての画素の点灯・消
灯を表わすビツト情報を蓄えるに十分な記憶素子で構成
され、これらのビツト情報の読み書きもワード単位で行
なわれる。このため、第4図に示すように、文字を表示
しようとする位置がフレームメモリを構成するワードの
境界と整合している場合には、単純にCGから読み取つた
ビツト情報をフレームメモリに書き込むだけで文字表示
が行なえるが、不整合の場合、すなわち表示しようとす
る文字のパタンが水平方向に隣り合う複数ワードにまた
がる場合には、左側となる1ワードと右側となる1ワー
ドに対して個別に書き込みを行なわなければならない。
The frame memory is composed of storage elements sufficient to store bit information indicating turning on / off of all pixels on the display screen, and reading / writing of these bit information is also performed in word units. For this reason, as shown in FIG. 4, when the position where the character is to be displayed is aligned with the boundary of the words forming the frame memory, the bit information read from the CG is simply written to the frame memory. Although it is possible to display characters with, if there is a mismatch, that is, if the pattern of the characters to be displayed spans multiple words that are horizontally adjacent to each other, one word to the left and one word to the right are individually Must be written to.

第5図,第6図は表示しようとする文字がワード境界に
またがる場合における文字の左側部分と右側部分のフレ
ームメモリへの書き込み手順をそれぞれ示したものであ
る。
FIG. 5 and FIG. 6 show a writing procedure to the frame memory of the left side portion and the right side portion of the character when the character to be displayed straddles a word boundary, respectively.

第5図は文字の左側部分の書き込み手順を示す。ワード
境界に対してnビツト右にずれた位置に文字を描くもの
とすると、まず最初にCGから読み取つた文字フオントの
左側部分のみを取り出す必要がある。このため文字フオ
ントを1ワードずつ右にnビツトシフトする。この際シ
フト操作によつて文字フオントとして無意味な空きビツ
トが生ずる。こうして得られた文字フオント左側部分を
フレームメモリに書き込むと文字の左側部分が表示され
るが、この時シフトしたフオント全体を書き込んでしま
うと、シフト操作の結果生じた文字左側部分の無意味な
空きビツトも同時に書き込まれてしまい、以前に書き込
まれた文字、或いは図形を損なう。この問題を解決する
ため特開昭58-125284号公報に示されるように、1ワー
ドを構成するメモリ手段の内、任意のビツトの書き換え
を禁止或いは許可する回路を設け、これによりシフトし
たフオントの必要な部分のみをフレームメモリに書き込
み、不要な部分の書き込みを行なわない方法が知られて
いる。以下では1ワードの中の必要なビツトのみを書き
換え、他のビツトを書き換えない操作をビツトマスク処
理と呼ぶ。
FIG. 5 shows a writing procedure of the left side portion of the character. If a character is to be drawn n bits to the right of a word boundary, it is necessary to first take out only the left part of the character font read from the CG. For this reason, the character font is shifted right by n bits. At this time, a shift operation causes a meaningless empty bit as a character font. When the left part of the character font obtained in this way is written to the frame memory, the left part of the character is displayed, but if the entire shifted font is written at this time, a meaningless space in the left part of the character resulting from the shift operation is written. Bits are also written at the same time, which damages the previously written characters or figures. In order to solve this problem, as disclosed in Japanese Patent Laid-Open No. 58-125284, a circuit for prohibiting or permitting the rewriting of any bit among the memory means forming one word is provided, and the shifted font is A method is known in which only a necessary portion is written in the frame memory and an unnecessary portion is not written. In the following, the operation of rewriting only the necessary bits in one word and not rewriting the other bits is called bit mask processing.

フオントをシフトする際に補なわれたnビツトの不要部
分に対してビツトマスク処理を施し、フレームメモリへ
の書き込みを行なうとCGから読み出した文字フオントの
左側部分のみを表示することができる。ビツトマスク処
理を施したことにより、文字フオントを書き込んだワー
ドの左半部に以前描かれていた文字、或いは図形は保存
される。以上で文字“A"の左側部分の表示が完了する。
When the bit mask processing is performed on the unnecessary portion of the n bits supplemented at the time of shifting the font and writing to the frame memory, only the left portion of the character font read from the CG can be displayed. By performing the bit mask processing, the character or graphic previously drawn in the left half of the word in which the character font is written is saved. This completes the display of the left part of the letter "A".

第6図は文字の左側部分に続く右側部分の書き込み手順
を示す。先に書き込んだ左側部分とワード境界で接続す
るため、CGから読み出した文字フオントを(8−n)ビ
ツト左シフトする。(1ワードがmビツトから成る場合
には(m−n)ビツトであるが、ここではm=8とす
る。) 左シフトの結果、フオントの右側には文字を表わすパタ
ンとしては無効なビツトが生ずる。この無効部分に対し
てビツトマスク処理を施し、フレームメモリに書き込む
と1文字の表示が完了する。
FIG. 6 shows a writing procedure of the right side portion following the left side portion of the character. The character font read from the CG is shifted to the left by (8-n) bits because it is connected to the previously written left part at the word boundary. (If one word consists of m bits, it is (mn) bits, but here m = 8.) As a result of the left shift, there are invalid bits on the right side of the font as patterns for representing characters. Occurs. Bit mask processing is applied to this invalid portion and writing to the frame memory completes the display of one character.

第7図は以上に説明した操作を行なう従来回路例を示す
ブロツク図である。
FIG. 7 is a block diagram showing a conventional circuit example for performing the above-described operation.

第7図において、1は描画処理全般を制御する中央処理
装置(以下、CPUと略記する),2はCPU1が周辺機器やメ
モリを特定するために発生するアドレス信号を伝達する
アドレスバス,3はCPU1が周辺機器やメモリとの間で送受
するデータ信号を伝達するデータバス,4はCG,5−1〜5
−8はフレームメモリを構成するメモリ素子(例えば日
立製HM4864など),6はCPU1がメモリ素子5−1〜5−8
に与えるデータ信号をシフトするシフト回路,7はシフト
回路6の左シフト,右シフト及びシフトするビツト数を
制御するシフト制御回路,8はCPU1が発生する書き込みタ
イミングパルス,9−1〜9−8は書き込みタイミングパ
ルス8のメモリ素子5−1〜5−8への伝達を個別に制
御するゲート回路,10はビツトマスク処理に際して書き
込みを許可するビツトと禁止するビツトのパタンを記憶
するビツトマスクレジスタである。
In FIG. 7, 1 is a central processing unit (hereinafter abbreviated as CPU) which controls the overall drawing process, 2 is an address bus for transmitting an address signal generated by the CPU 1 for specifying peripheral devices and memories, and 3 is CPU1 is a data bus for transmitting and receiving data signals to and from peripheral devices and memory, 4 is CG, 5-1 to 5
-8 is a memory element (for example, Hitachi HM4864 etc.) that constitutes a frame memory, and 6 is the CPU 1 having memory elements 5-1 to 5-8.
A shift circuit for shifting the data signal to be given to the shift circuit, 7 is a shift control circuit for controlling the left shift, right shift and the number of bits to be shifted of the shift circuit 6, 8 is a write timing pulse generated by the CPU 1, 9-1 to 9-8 Reference numeral 10 is a gate circuit for individually controlling the transmission of the write timing pulse 8 to the memory elements 5-1 to 5-8, and reference numeral 10 is a bit mask register for storing a bit for permitting writing and a bit pattern for inhibiting writing during the bit mask processing. .

以下、第7図従来回路例の動作を第5図,第6図を参照
しつつ、詳細に説明する。
Hereinafter, the operation of the conventional circuit example of FIG. 7 will be described in detail with reference to FIGS. 5 and 6.

まず、第5図に示した文字パタンの左側部分の書き込み
を行なう。CG4から読み出した文字フオントをnビツト
右シフトするため、シフト制御回路7にシフト回路6の
制御情報をCPU1によつて記憶させる。以後、CPU1がメモ
リ素子5−1〜5−8に与えるデータはシフト回路6に
よつて右にnビツトシフトされてから各々の素子に達す
る。次に、シフトされたフオントに含まれる不要ビツト
の書き込みを禁止するため、ビツトマスクレジスタ10の
設定を行なう。第5図の例ではシフトされたフオントの
左nビツトの書き込みを禁止し、残りの(m−n)ビツ
トの書き込みを許可する。例えばm=8,n=5とすれ
ば、ビツトマスクレジスタ10に00000111(B)という値
を記憶させればよい。ビツトマスクレジスタ10に記憶さ
れたデータはゲート回路9−1〜9−8に与えられ、書
き込みタイミングパルス8が活性となつた時、これをメ
モリ素子5−1〜5−8に伝達するか否かを決定する。
書き込みタイミングパルス8の活性が伝達されないメモ
リ素子は書き込み動作とならないため、データの書き込
みが禁止される。
First, the left side portion of the character pattern shown in FIG. 5 is written. To shift the character font read from CG4 to the right by n bits, the control information of the shift circuit 6 is stored in the shift control circuit 7 by the CPU 1. After that, the data given to the memory elements 5-1 to 5-8 by the CPU 1 reach the respective elements after being shifted by n bits to the right by the shift circuit 6. Next, the bit mask register 10 is set to prohibit writing of unnecessary bits included in the shifted fonts. In the example of FIG. 5, the writing of the left n bits of the shifted font is prohibited, and the writing of the remaining (mn) bits is permitted. For example, if m = 8 and n = 5, the value of 00000111 (B) may be stored in the bit mask register 10. The data stored in the bit mask register 10 is given to the gate circuits 9-1 to 9-8, and when the write timing pulse 8 is activated, it is transmitted to the memory elements 5-1 to 5-8. Decide
Since the memory element to which the activation of the write timing pulse 8 is not transmitted does not perform the write operation, the data write is prohibited.

シフト制御回路7とビツトマスクレジスタ10の設定によ
り、メモリ素子5−1〜5−8の書き込みの準備が終
り、CG4から読み出した文字フオントをメモリ素子5−
1〜5−8に書き込むことが可能となる。CPU1がCG4か
ら読み出した文字フオントをメモリ素子5−1〜5−8
に書き込もうとすると、シフト回路6の働きにより、メ
モリ素子5−1〜5−8にはこの文字フオントをnビツ
ト右シフトしたデータが与えられる。CPU1の書き込み動
作により書き込みタイミングパルス8が活性化するが、
ゲート回路9−1〜9−8及びビツトマスクレジスタ10
の働きにより、メモリ素子5−1〜5−8の内、ビツト
マスクレジスタ10により選択されている特定の素子のみ
が書き込み動作となり、シフトされた文字フオントの必
要部分のみが書き込まれる。以上で文字の左側部分の書
き込みが終了する。
By setting the shift control circuit 7 and the bit mask register 10, the memory elements 5-1 to 5-8 are ready for writing, and the character font read from CG4 is stored in the memory element 5-.
It becomes possible to write in 1 to 5-8. Character fonts read from CG4 by CPU1 are stored in memory elements 5-1 to 5-8.
When writing is attempted, the shift circuit 6 provides the memory elements 5-1 to 5-8 with data obtained by shifting the character fonts by n bits to the right. The write timing pulse 8 is activated by the write operation of the CPU1,
Gate circuits 9-1 to 9-8 and bit mask register 10
By this function, only the specific element selected by the bit mask register 10 among the memory elements 5-1 to 5-8 becomes the writing operation, and only the necessary portion of the shifted character font is written. This completes the writing of the left part of the character.

文字パタン右側部分の書き込みも全く同様にして行なう
ことができる。
Writing on the right side of the character pattern can be performed in exactly the same manner.

まずシフト制御回路7にシフト制御情報を記憶させ、シ
フト回路6が左(m−n)ビツトのシフト動作を行なう
ように設定し、併せてビツトマスクレジスタに左(m−
n)ビツトを書き込み許可,右nビツトを書き込み禁止
とするデータを記憶させる。この後CG4から読み出した
文字フオントをメモリ素子5−1〜5−8に書き込めば
よい。
First, the shift control information is stored in the shift control circuit 7, and the shift circuit 6 is set to perform a left (mn) bit shift operation.
n) Store data for which writing is permitted for the right bit and writing is prohibited for the right n bit. Thereafter, the character font read from CG4 may be written in the memory elements 5-1 to 5-8.

ところで文字だけの表示ではなく、他の図形例えば設計
図面や地図のような図形と文字とを混在させて表示させ
る応用では、第3図(a)に示すような文字パタンの中
で点灯させるべき画素すなわち黒丸の部分のみを描き、
他の部分は既に描かれている図形を保存することが望ま
しい。第7図の従来回路例でこれを実現するためにはビ
ツトマスクレジスタ10に第1図(a)の黒丸部分のみの
書き込みを許可するデータを記憶させねばならず、この
ためにはCPU1内部でCG4から読み出した文字フオントを
ソフトウエアでシフト処理した後ビツトマスクレジスタ
10に文字フオント書き込みに先立つて書き込まなければ
ならない。このため処理処要時間の大幅な増大を招いて
いた。また、この場合シフト回路6が全く利用できない
という問題を持つていた。
By the way, in an application in which not only the characters are displayed but also other figures such as design drawings and maps are displayed in a mixed manner, the letters should be lit in the character pattern as shown in FIG. 3 (a). Draw only the pixels, that is, the black circles,
It is desirable to save the already drawn figures for the other parts. In order to realize this in the conventional circuit example of FIG. 7, the bit mask register 10 must store the data for permitting the writing of only the black circles in FIG. 1 (a). After the character font read from CG4 is shifted by software, the bit mask register
Must be written in 10 prior to writing the font font. As a result, the processing time has been greatly increased. Further, in this case, the shift circuit 6 cannot be used at all.

又、第3図(a)に示す文字パタン全体を描く場合で
も、文字を構成している画素、すなわち第3図(a)の
黒丸で示す部分のみを描く場合でも、フレームメモリに
書き込み文字フオントがワード境界を横切る際にワード
境界の左右でビツトマスクレジスタ10の設定を変更しな
ければならない。第7図の従来回路では、ビツトマスク
レジスタ10の入力はCPU1から直接与えられており、ビツ
トマスク情報の生成は全てソフトウエアによりCPU1内部
で行なわなければならなず、ビツトマスク処理に要する
ソフトウエアの繁雑化,処理所要時間の増加を招いてい
た。
Further, even when the entire character pattern shown in FIG. 3 (a) is drawn or only the pixels forming the character, that is, the part indicated by the black circles in FIG. 3 (a) is drawn, the character font written in the frame memory is written. When crossing a word boundary, the settings of the bit mask register 10 must be changed on the left and right of the word boundary. In the conventional circuit shown in FIG. 7, the input of the bit mask register 10 is directly given from the CPU 1, and all the bit mask information must be generated by the software inside the CPU 1, and the software required for the bit mask processing is complicated. And increased processing time.

〔発明の目的〕[Object of the Invention]

本発明の目的は以上に述べた問題をなくし、ビツトマス
ク処理をより簡単に行なうことによりビツトマツプ式フ
レームメモリに対して文字を高速に書き込むことのでき
るメモリ書き込み制御回路を提供することにある。
An object of the present invention is to eliminate the above-mentioned problems and to provide a memory write control circuit capable of writing a character at high speed to a bit map type frame memory by performing bit mask processing more easily.

〔発明の概要〕[Outline of Invention]

上記目的を達するため、本発明ではフレームメモリに書
き込む文字フオントそのものにより個々のメモリ素子に
対する書き込み動作を禁止或いは許可する構成として、
ビツトマスク情報の算出及び設定処理を不要とし、文字
表示処理内容の簡略化と処理所要時間の短縮を果たし
た。
In order to achieve the above object, the present invention has a configuration for prohibiting or permitting a writing operation for each memory element by the character font itself written in a frame memory.
The calculation and setting process of bit mask information is not required, and the contents of character display processing are simplified and the processing time is shortened.

〔発明の実施例〕Example of Invention

以下、本発明の一実施例を第1図により説明する。 An embodiment of the present invention will be described below with reference to FIG.

第1図は本発明の一実施例を示すブロツク図である。第
1図において、第7図と同一の回路部分には同一番号を
付してある。
FIG. 1 is a block diagram showing an embodiment of the present invention. In FIG. 1, the same circuit parts as those in FIG. 7 are designated by the same reference numerals.

第1図実施例においてはゲート回路9−1〜9−8の一
方の入力にはシフト回路6の出力、すなわちメモリ素子
5−1〜5−8に対する入力と同一の信号を与える。
In the embodiment of FIG. 1, one of the inputs of the gate circuits 9-1 to 9-8 is supplied with the same signal as the output of the shift circuit 6, that is, the input to the memory elements 5-1 to 5-8.

以下第1図実施例の動作を説明する。The operation of the embodiment shown in FIG. 1 will be described below.

CPU1はメモリ素子5−1〜5−8への書き込みに先立
ち、シフト制御回路7を設定し、まず文字フオントの左
側部分を描くため、第5図と同様、シフト回路6が右n
ビツトのシフト動作を行なうようにする。次にメモリ素
子5−1〜5−8に対してCG4から読み出した文字フオ
ント1ワードを書き込む。この文字フオントはシフト回
路6の働きにより右nビツトシフトされた後、メモリ素
子5−1〜5−8に与えられると同時に、ゲート回路9
−1〜9−8に与えられる。ゲート回路9−1〜9−8
の内、シフトされた文字フオントを構成する1ワードの
ビツト情報の中の論理値“1"を与えられたものは書き込
みタイミングパルス8の活性化をメモリ素子5−1〜5
−8の内の接続されている素子に伝達し、論理値“0"を
与えられたものは書き込みタイミングパルス8の伝達を
抑制する。この結果、メモリ素子5−1〜5−8の内書
き込みタイミングパルス8を伝達されたものは書き込み
状態となり、論理値“1"が書き込まれ、書き込みタイミ
ングパルス8を伝達されなかつたものは書き込みが行な
われず、以前から記憶している内容を保持し続ける。例
えばメモリ素子5−1とゲート回路9−1にはシフト回
路6の出力の内の同一の1ビツトの信号が入力されてお
り、この信号が論理値“1"をとつた場合にはゲート回路
9−1を通じて書き込みタイミングパルス8がメモリ素
子5−1に伝達され、メモリ素子5−1には論理値“1"
が書き込まれる。シフト回路6からゲート回路9−1に
与えられる信号が論理値“0"をとつた場合には書き込み
タイミングパルス8はメモリ素子5−1に伝達されず、
メモリ素子5−1の内容は書き換えられない。
Prior to writing to the memory elements 5-1 to 5-8, the CPU 1 sets the shift control circuit 7, and first draws the left side portion of the character font. Therefore, as in FIG.
Perform bit shift operation. Next, one character font word read from CG4 is written into the memory elements 5-1 to 5-8. This character font is shifted right n bits by the operation of the shift circuit 6 and then given to the memory elements 5-1 to 5-8, and at the same time, the gate circuit 9 is provided.
-1 to 9-8. Gate circuits 9-1 to 9-8
Among them, the one given the logical value "1" in the bit information of one word constituting the shifted character font, activates the write timing pulse 8 in the memory elements 5-1 to -5.
Those which transmit to the connected element of -8 and are given the logical value "0" suppress the transmission of the write timing pulse 8. As a result, among the memory elements 5-1 to 5-8, the one to which the write timing pulse 8 is transmitted is in the write state, the logical value “1” is written, and the one to which the write timing pulse 8 is not transmitted is not written. It is not performed and keeps the contents that it remembers from before. For example, the same 1-bit signal out of the output of the shift circuit 6 is input to the memory element 5-1 and the gate circuit 9-1, and when this signal takes a logical value "1", the gate circuit The write timing pulse 8 is transmitted to the memory element 5-1 through 9-1, and the logical value "1" is applied to the memory element 5-1.
Is written. When the signal given from the shift circuit 6 to the gate circuit 9-1 has the logical value “0”, the write timing pulse 8 is not transmitted to the memory element 5-1.
The contents of the memory element 5-1 cannot be rewritten.

上述した動作の結果、メモリ素子5−1〜5−8には右
にnビツトシフトされた文字フオントに含まれている論
理値“1"のビツトのみが書き込まれる。
As a result of the above-described operation, only the bits having the logical value "1" contained in the character font shifted right by n bits are written in the memory elements 5-1 to 5-8.

以上で文字フオントの左側部分の書き込みが終了する
と、CPU1は文字フオント右側部分の書き込みを行なうた
め、シフト制御回路7を再設定し、第6図で説明したよ
うにシフト回路6が左(m−n)ビツトのシフト動作を
行なうようにする。次にメモリ素子5−1〜5−8に対
してCG4から読み出した文字フオント1ワードを書き込
むと、左側部分と同様にして、左に(m−n)ビツトシ
フトされた文字フオントに含まれている論理値“1"のビ
ツトのみが書き込まれる。
When the writing of the left side portion of the character font is completed, the CPU 1 resets the shift control circuit 7 in order to write the right side portion of the character font, and the shift circuit 6 shifts to the left (m- n) Perform bit shift operation. Next, when one character font word read from CG4 is written to the memory elements 5-1 to 5-8, it is included in the character font bit-shifted to the left by (mn) in the same manner as the left part. Only bits with logical "1" are written.

文字フオントの左側部分と右側部分の書き込みが終了す
ると1文字の書き込みが終了する。
When the writing of the left side portion and the right side portion of the character font is completed, the writing of one character is completed.

第1図実施例によれば、ビツトマスクレジスタの設定処
理が不要となるため、文字の書き込みを制御するプログ
ラムが簡単になると同時に処理所要時間を短縮すること
ができ、またビツトマスクレジスタそのものも不要とな
るため、従来よりも安価に本発明を実施できるという効
果を持つ。
According to the embodiment shown in FIG. 1, since the setting process of the bit mask register is unnecessary, the program for controlling the writing of characters can be simplified and the processing time can be shortened, and the bit mask register itself is not necessary. Therefore, there is an effect that the present invention can be implemented at a lower cost than before.

第2図は本発明の他の実施例を示すブロツク図である。
尚、第2図中で第7図,第1図と同一の回路部分には同
一番号を付してある。
FIG. 2 is a block diagram showing another embodiment of the present invention.
In FIG. 2, the same circuit parts as those in FIGS. 7 and 1 are designated by the same reference numerals.

第2図において、11はシフト回路6の出力とビツトマス
クレジスタ10の出力を切り換えてゲート回路9−1〜9
−8の入力に与えるセレクタ,12はセレクタ11の動作を
切り換えるセレクト信号である。本実施例ではビツトマ
スクレジスタ10の入力はデータバス3から直接与えるの
ではなく、シフト回路6の出力から与える点に特徴があ
る。
In FIG. 2, reference numeral 11 switches the output of the shift circuit 6 and the output of the bit mask register 10 to switch the gate circuits 9-1 to 9-9.
The selector 12 provided to the input of -8 is a select signal for switching the operation of the selector 11. The present embodiment is characterized in that the input of the bit mask register 10 is not given directly from the data bus 3 but is given from the output of the shift circuit 6.

以下、第2図実施例の動作を説明する。The operation of the embodiment shown in FIG. 2 will be described below.

本実施例ではセレクタ11の状態により2つの動作モード
が存在する。第1の動作モードは第1図実施例と同一の
動作を行なうモード,第2の動作モードは第7図従来例
と類似の動作を行なうモードである。
In this embodiment, there are two operation modes depending on the state of the selector 11. The first operation mode is a mode in which the same operation as that of the embodiment of FIG. 1 is performed, and the second operation mode is a mode in which an operation similar to that of the conventional example of FIG. 7 is performed.

第1の動作モードでは、セレクタ11はセレクト信号12の
制御によつてシフト回路6の出力を選択し、ゲート回路
9−1〜9−8の入力として与える。このときメモリ素
子5−1〜5−8とゲート回路9−1〜9−8にはシフ
ト回路6から同一の入力が与えられ、第1図実施例と全
く同一の動作が可能となる。
In the first operation mode, the selector 11 selects the output of the shift circuit 6 under the control of the select signal 12 and supplies it as the input of the gate circuits 9-1 to 9-8. At this time, the same input is applied from the shift circuit 6 to the memory elements 5-1 to 5-8 and the gate circuits 9-1 to 9-8, and the same operation as that of the embodiment of FIG. 1 is possible.

第2の動作モードでは、セレクタ11はセレクト信号12の
制御によつてビツトマスクレジスタ10の出力を選択し、
ゲート回路9−1〜9−8の入力として与える。第2の
動作モードでは第7図従来例と同様の動作を行なうが、
ビツトマスクレジスタ10の入力がシフト回路6の出力か
ら得られるため、ビツトマスクレジスタ10に記憶させる
メモリ素子5−1〜5−8の書き込みの許可,禁止を指
定するビツトマスク情報をCPU1内部でソフトウエアによ
りシフトして作成する必要がない。すなわち、mビツト
から成るフレームメモリ上の1ワードに対して、第5図
に示すようにnビツト(n<m)右にずれた位置に文字
を表示する場合、ビツトマスクレジスタ10に設定するビ
ツトマスク情報は、左nビツトに対して書き込みを禁止
するものでなければならない。このようなビツトマスク
情報は、例えば1ワードを成すmビツトすべてが論理値
“1"を持つデータを右にnビツトシフトすることで得ら
れ、通常はCPU1の内部でこの処理をソフトウエアにより
行なつている。第2図実施例においては、メモリ素子5
−1〜5−8の書き込みに先立ち、シフト制御回路7及
びビツトマスクレジスタ10を設定する必要があるが、例
えばシフト制御回路7を設定してシフト回路6がnビツ
トの右シフトを行なうようにした後は、CPU1がビツトマ
スクレジスタ10に書き込もうとするデータもシフト回路
6によつてnビツト右シフトされてからビツトマスクレ
ジスタ10に与えられる。従つてCPU1がシフト制御回路7
の設定後、1ワードを成す全ビツトが論理値“1"を持つ
データをビツトマスクレジスタ10に対して書き込むこと
により、ビツトマスクレジスタ10に適正なビツトマスク
情報を記憶せしめることができる。
In the second operation mode, the selector 11 selects the output of the bit mask register 10 under the control of the select signal 12,
It is given as an input to the gate circuits 9-1 to 9-8. In the second operation mode, the same operation as in the conventional example of FIG. 7 is performed,
Since the input of the bit mask register 10 is obtained from the output of the shift circuit 6, the bit mask information for designating permission or prohibition of writing of the memory elements 5-1 to 5-8 stored in the bit mask register 10 is stored in the CPU 1 by software. There is no need to shift and create. That is, when a character is displayed at a position shifted to the right by n bits (n <m) as shown in FIG. 5 for one word on the frame memory consisting of m bits, the bit mask set in the bit mask register 10 is set. The information must be write protected to the left n bits. Such bit mask information is obtained, for example, by right-shifting n bits of data in which all m bits forming one word have a logical value "1". Normally, this processing is performed by software inside the CPU1. There is. In the embodiment shown in FIG. 2, the memory device 5
Prior to writing -1 to 5-8, it is necessary to set the shift control circuit 7 and the bit mask register 10. For example, the shift control circuit 7 is set so that the shift circuit 6 shifts right by n bits. After that, the data to be written in the bit mask register 10 by the CPU 1 is also shifted to the right by n bits by the shift circuit 6 and then supplied to the bit mask register 10. Accordingly, the CPU 1 has the shift control circuit 7
After setting, all bits that form one word are written in the bit mask register 10 with data having a logical value "1", so that proper bit mask information can be stored in the bit mask register 10.

第2図実施例では、上述したように2つの動作モードが
存在し、文字を構成している画素、すなわち第3図
(a)の黒丸に示される部分のみを描き、周囲の文字や
図形を保存する場合には第1の動作モードで、表示しよ
うとする文字の下に重なる四角形の部分を全て消去して
文字を表示する場合には第2の動作モードで文字フオン
トの書き込みを行なうことで、いずれの場合も従来より
容易かつ短時間に文字の表示処理を行なうことができる
という利点を持つ。また、第2図ではビツトマスクレジ
スタ10とセレクタ11を組み合せた構成を示したが、ある
動作状態では入力された信号をそのまま出力し(筒抜け
状態)、他の動作状態では入力された信号を一旦記憶
し、記憶した内容を入力信号の変化に関らず出力し続け
る(ラツチ状態)スルーラツチ、例えばTI社製SN74373
をビツトマスクレジスタ10に用いると、セレクタ11を不
要とすることができる。すなわち、ビツトマスクレジス
タ10をスルーラツチで構成し、セレクタ11にシフト回路
6の出力を選択させる替りに、スルーラツチを筒抜け状
態とし、セレクタ11にビツトマスクレジスタ10の出力を
選択させる替りにスルーラツチをラツチ状態とすれば、
第2図実施例と全く同じ動作を行なうことができる。従
つて、第2図実施例のセレクタ11は必ずしも必要ではな
く、本発明を少ない部品数で安価に実施することが可能
である。
In the embodiment shown in FIG. 2, there are two operation modes as described above, and only the pixels forming the character, that is, the portion indicated by the black circle in FIG. If you want to save the text in the first operation mode and erase all the squares that overlap under the character you want to display and display the character, you can write the character font in the second operation mode. In any case, there is an advantage that character display processing can be performed more easily and in a shorter time than ever before. Further, FIG. 2 shows a configuration in which the bit mask register 10 and the selector 11 are combined, but in one operating state, the input signal is output as it is (cylinder disconnection state), and in the other operating state, the input signal is temporarily output. Stores the stored contents and continues to output the stored contents regardless of changes in the input signal (latching state) through latch, for example, SN74373 manufactured by TI
Is used for the bit mask register 10, the selector 11 can be eliminated. That is, the bit mask register 10 is formed by a through latch, and instead of causing the selector 11 to select the output of the shift circuit 6, the through latch is in the cylinder missing state, and instead of causing the selector 11 to select the output of the bit mask register 10, the through latch is in the latch state. given that,
The same operation as in the embodiment of FIG. 2 can be performed. Therefore, the selector 11 of the embodiment of FIG. 2 is not always necessary, and the present invention can be implemented at a low cost with a small number of parts.

〔発明の効果〕〔The invention's effect〕

本発明によれば、フレームメモリのワード境界にまたが
る位置に文字を表示する際のビツトマスク処理を簡単に
行なうことができるので、文字表示のためのソフトウエ
アを簡単にすることができ、同時に文字表示に要する処
理時間を短縮することができるという効果がある。また
従来に較べて必要なハードウエアの増加は殆んどなく、
本発明を安価に実施することができる。
According to the present invention, it is possible to easily perform the bit mask process when displaying a character at a position extending over the word boundary of the frame memory, so that the software for displaying the character can be simplified, and at the same time, the character display can be performed. There is an effect that the processing time required for can be shortened. In addition, there is almost no increase in required hardware compared to the past,
The present invention can be implemented at low cost.

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

第1図,第2図はそれぞれ本発明の一実施例を示すブロ
ツク図、第3図は文字を表わすパタンとCGの内容の対応
を示す説明図、第4図はフレームメモリ上の文字表示位
置の整合・不整合を示す説明図、第5図は不整合時の文
字左側部分の処理を示す説明図、第6図は不整合時の文
字右側部分の処理を示す説明図、第7図は従来装置のブ
ロツク図である。 1……CPU、4……CG 5−1〜5−8……メモリ素子 6……シフト回路、7……シフト制御回路 8……書き込みタイミング信号 9−1〜9−8……ゲート回路 10……ビツトマスクレジスタ 11……セレクタ
1 and 2 are block diagrams showing an embodiment of the present invention, FIG. 3 is an explanatory diagram showing correspondences between patterns representing characters and CG contents, and FIG. 4 is a character display position on the frame memory. FIG. 5 is an explanatory view showing the processing of the left side part of the character at the time of mismatching, FIG. 6 is an explanatory view showing the processing of the right side part of the character at the time of mismatching, and FIG. It is a block diagram of a conventional device. 1 ... CPU, 4 ... CG 5-1-5-8 ... Memory element 6 ... Shift circuit, 7 ... Shift control circuit 8 ... Write timing signal 9-1-9-8 ... Gate circuit 10 ...... Bit mask register 11 …… Selector

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】少なくとも所定の複数ビットからなる1ワ
ードを単位としてアドレス付けされた画像情報記憶装置
と、 該画像情報記憶装置を1ワード単位で読み書きし画素情
報の更新を行う中央処理装置と、 該中央処理装置によって読み取り可能な、文字の形を表
すビット情報を記憶したキャラクタジェネレータと、 該中央処理装置が発生する画素情報を所定方向に所定ビ
ット数シフトして該画像情報記憶装置の入力として与え
るシフト装置と、 該画像情報記憶装置の1ワードを書き込むのに際して当
該1ワード中の指定された任意の複数ビットの書き込み
を禁止することにより1ワード中の任意のビットの記憶
内容が書き込みによって変更されないように保護し、指
定されないビットについては書き込みの操作により当て
られる画素情報を表現するデータビットが書き込まれる
ように制御して該画像情報記憶装置の1ワードを構成す
るビット群の任意部分のみの変更を可能にするビットマ
スク手段とを備え、 該中央処理装置が該キャラクタジェネレータより読み取
ったビット情報を該シフト装置を介して所定のシフト処
理を施した結果を該ビットマスク手段の制御の下に該画
像情報記憶装置に書き込んで文字・図形の表示を行う文
字・図形表示装置において、 該中央処理装置が該シフト装置を経由して該画像情報記
憶装置に書き込む画素情報を表すデータを該画像情報記
憶装置に対して入力データとして与えると共に該ビット
マップ手段に対して該画像情報記憶装置の1ワードを構
成するビット群に含まれる記憶内容を書き替えるべきビ
ット群を指定するための入力データを与え、 該ビットマスク手段は該画像情報記憶装置の1ワードを
構成するビット群の中の指定された記憶内容を書き替え
るべきビット群に対してのみ書き込み操作を可能ならし
めて、該シフト装置を経由して該画像情報記憶装置に与
える画素情報を表すデータそれ自身によって1ワードを
構成するビット群を構成するビット群の中の書替えを行
うべきビット群と書替えを行わずに以前からの記憶内容
を保護すべきビット群を分別することにより、該画像情
報記憶装置に記憶する画像情報の必要部分のみを更新す
るようにしたことを特徴とする文字・図形表示装置のメ
モリ書き込み制御回路。
1. An image information storage device which is addressed in units of at least one word consisting of a predetermined plurality of bits, and a central processing unit which reads and writes the image information storage device in units of one word to update pixel information. A character generator that stores bit information representing a character shape that can be read by the central processing unit, and pixel information generated by the central processing unit that is shifted by a predetermined number of bits in a predetermined direction and is used as an input of the image information storage device. The shift device to be provided and, when writing one word of the image information storage device, prohibits writing of a plurality of designated bits in the one word, thereby changing the storage content of any bit in the one word by writing. Protects the pixel information that is not specified and the pixel information that is assigned by the write operation for the unspecified bits. A bit mask means for controlling the writing of data bits to be expressed so that only an arbitrary part of a bit group forming one word of the image information storage device can be changed, and the central processing unit has the character generator. A character / graphic display device for displaying characters / graphics by writing the read bit information to the image information storage device under the control of the bit mask means, which is the result of performing a predetermined shift process through the shift device. In the above, the central processing unit gives data representing pixel information to be written in the image information storage device via the shift device to the image information storage device as input data, and also to the bitmap means. Input data for designating a bit group for rewriting the stored content included in the bit group forming one word of the storage device The bit mask means enables a write operation only to a bit group to be rewritten for a specified storage content in a bit group forming one word of the image information storage device, and passes through the shift device. The data itself representing the pixel information given to the image information storage device itself protects the previously stored contents without rewriting and the bit group forming the bit group forming one word. A memory write control circuit for a character / graphic display device, characterized in that only a necessary portion of the image information stored in the image information storage device is updated by separating the bit groups to be processed.
【請求項2】特許請求の範囲第1項に記載した文字・図
形表示装置のメモリ書き込み制御回路において、ビット
マスク手段には記憶内容を書き替えるべきビット群を指
定するための情報を一時的に記憶するためのレジスタ手
段と、 該画像情報記憶装置に記憶する画像情報を更新するため
に該画像情報記憶装置に対して書き込みを行う際に、該
レジスタ手段に記憶しておいた書き込みから保護すべき
ビットを指定する情報と、該シフト装置を経由して該画
像情報記憶装置に与える画像情報を表すデータそれ自身
によって1ワードを構成するビット群の中の書替えを行
うべきビット群と書替えを行わずに以前からの記憶内容
を保護すべきビット群を指定する情報とを切り替えるた
めの選択手段を有し、 該シフト装置を経由して該画像情報記憶装置に与える画
素情報を表すデータそれ自身によって1ワードを構成す
るビット群の中の書替えを行うべきビット群と書替えを
行わずに以前からの記憶内容を保護すべきビット群を分
別することにより、該画像情報記憶装置に記憶する画素
情報の必要部分のみを更新するか、あるいは該レジスタ
手段に記憶しておいた書き込みから保護すべきビットを
指定する情報に基づいて該画像情報記憶装置に与える画
素情報を表すデータとは独立に以前からの記憶内容を保
護すべきビット群を分別するかを選択可能としたことを
特徴とする文字・図形表示装置のメモリ書き込み制御回
路。
2. A memory write control circuit for a character / graphic display device according to claim 1, wherein the bit mask means temporarily stores information for designating a bit group whose stored content is to be rewritten. Register means for storing and, when writing to the image information storage device to update the image information stored in the image information storage device, protect from the writing stored in the register means Rewriting is performed with the bit group to be rewritten in the bit group forming one word by the information designating the power bit and the data itself representing the image information given to the image information storage device via the shift device. The image information storage device via the shift device, and has selection means for switching the storage contents from before to the information designating the bit group to be protected. By dividing the bit group to be rewritten from the bit group forming one word by the data itself representing the pixel information given to the above and the bit group to be protected from the previous stored contents without rewriting, Pixel information given to the image information storage device based on the information for updating only the necessary portion of the pixel information stored in the image information storage device or for specifying the bit to be protected from writing stored in the register means. A memory writing control circuit for a character / graphics display device, characterized in that it is possible to select whether to separate a group of bits that should protect the stored contents independently of the data representing the.
JP60153995A 1985-07-15 1985-07-15 Memory writing control circuit for character / graphics display Expired - Lifetime JPH0727364B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60153995A JPH0727364B2 (en) 1985-07-15 1985-07-15 Memory writing control circuit for character / graphics display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60153995A JPH0727364B2 (en) 1985-07-15 1985-07-15 Memory writing control circuit for character / graphics display

Publications (2)

Publication Number Publication Date
JPS6215595A JPS6215595A (en) 1987-01-23
JPH0727364B2 true JPH0727364B2 (en) 1995-03-29

Family

ID=15574612

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60153995A Expired - Lifetime JPH0727364B2 (en) 1985-07-15 1985-07-15 Memory writing control circuit for character / graphics display

Country Status (1)

Country Link
JP (1) JPH0727364B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2610858B2 (en) * 1987-02-16 1997-05-14 株式会社日立製作所 Color pixel information processing device
JPH02202567A (en) * 1989-02-01 1990-08-10 Toagosei Chem Ind Co Ltd Colored adhesive composition

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS592079A (en) * 1982-06-28 1984-01-07 株式会社東芝 Image recorder

Also Published As

Publication number Publication date
JPS6215595A (en) 1987-01-23

Similar Documents

Publication Publication Date Title
EP0166620B1 (en) Graphics display apparatus
JPH0327119B2 (en)
JPS5830590B2 (en) Character graphic color display system
US5185859A (en) Graphics processor, a graphics computer system, and a process of masking selected bits
US6396464B2 (en) Liquid-crystal display control apparatus
US4837564A (en) Display control apparatus employing bit map method
JPH0727364B2 (en) Memory writing control circuit for character / graphics display
EP0258825B1 (en) Display control apparatus with improved attribute function
JPH06118942A (en) Liquid crystal display controller and liquid crystal display system
CA1286419C (en) Horizontal line processor of data to be printed out sequentially
US5157766A (en) Boundary drawing and area filling logic for a display system
JPH028314B2 (en)
EP0466935B1 (en) Still picture display device and external memory cartridge used therefor
KR100237906B1 (en) Liquid crystal display system
JPH0636142B2 (en) Display controller
JPS62102288A (en) Bit map display unit
JP2846357B2 (en) Font memory device
EP0269174A2 (en) Logic circuit for expansion of monochrome display patterns to color form and video controller comprising such logic circuit
EP0242139A2 (en) Display controller
JPH10111680A (en) Data order determining device
JPH05189581A (en) Graphic data write device
JPS60205584A (en) Color graphic display unit
JPS62255996A (en) Color graphic display
JPH0437796A (en) Text screen display device
JPH03191394A (en) Processing system for displaying background color