JPH051477B2 - - Google Patents
Info
- Publication number
- JPH051477B2 JPH051477B2 JP59082736A JP8273684A JPH051477B2 JP H051477 B2 JPH051477 B2 JP H051477B2 JP 59082736 A JP59082736 A JP 59082736A JP 8273684 A JP8273684 A JP 8273684A JP H051477 B2 JPH051477 B2 JP H051477B2
- Authority
- JP
- Japan
- Prior art keywords
- video
- display
- moving image
- pattern
- color
- 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
Links
- 239000003086 colorant Substances 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 9
- 239000008186 active pharmaceutical agent Substances 0.000 description 8
- 238000010894 electron beam technology Methods 0.000 description 8
- 239000000872 buffer Substances 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 101000684181 Homo sapiens Selenoprotein P Proteins 0.000 description 1
- 102100023843 Selenoprotein P Human genes 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 229940119265 sepp Drugs 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Digital Computer Display Output (AREA)
- Controls And Circuits For Display Device (AREA)
Description
【発明の詳細な説明】
[技術分野]
この発明は表示面上に静止画と動画とを併せて
描画することができるデイスプレイコントローラ
に関する。DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to a display controller that can draw both still images and moving images on a display screen.
[従来技術]
近年のビデオゲームマシンやその他のグラフイ
ツク表示装置においては、動画と静止画とを併せ
て表示することができるデイスプレイコントロー
ラが用いられている。そして、この種のデイスプ
レイコントローラにおける動画処理は、一般に8
×8画素程度の動画パターンを表示単位とし、こ
の動画パターンを単独に、もしくは組合せて動か
すようにしている。[Prior Art] In recent years, video game machines and other graphic display devices have used display controllers that can display both moving images and still images. Video processing in this type of display controller is generally 8
A moving image pattern of approximately 8 pixels is used as a display unit, and these moving image patterns are moved singly or in combination.
ところで、従来のデイスプレイコントローラに
おいては、その移動パターンの色が各々のパター
ン毎に単色であり、このため、表示画面がどうし
ても単調になつてしまうという欠点があつた。 By the way, in the conventional display controller, the color of the movement pattern is a single color for each pattern, and therefore the display screen inevitably becomes monotonous.
[発明の目的]
この発明は上述した事情に鑑みてなされたもの
で、その目的とするところは、複雑な配色の動画
パターンを描画することができ、これにより、表
示画面上の表現能力を著しく向上させることがで
きるデイスプレイコントローラを提供するところ
にある。[Object of the Invention] This invention was made in view of the above-mentioned circumstances, and its purpose is to be able to draw a moving image pattern with a complex color scheme, thereby significantly improving the expressive ability on the display screen. The purpose of the present invention is to provide a display controller that can be improved.
[発明の特徴]
動画パターンのいずれかを指定する情報と指定
した動画パターンの表示位置を決定する情報とが
記憶される複数の動画制御テーブルと、これらの
動画制御テーブルに対応して設けられるととも
に、前記動画パターンを構成するデータの水平ラ
イン毎の色を指定するカラーコードが記憶される
複数の記憶ブロツクと、前記動画制御テーブルお
よび前記記憶ブロツクの内容に基づいて動画パタ
ーンのカラー表示を制御する動画カラー制御手段
とを具備することを特徴としている。[Features of the invention] A plurality of video control tables storing information specifying one of the video patterns and information determining the display position of the specified video pattern, and a plurality of video control tables provided corresponding to these video control tables. , a plurality of storage blocks in which color codes specifying colors for each horizontal line of data constituting the video pattern are stored, and color display of the video pattern is controlled based on the video control table and the contents of the storage block. The present invention is characterized by comprising a moving image color control means.
[実施例]
以下、図面を参照してこの発明の実施例につい
て説明する。[Example] Hereinafter, an example of the present invention will be described with reference to the drawings.
第1図イはこの発明の一実施例の構成を示すブ
ロツク図であり、図において、1はこの実施例に
よるデイスプレイコントローラである。2は
CPU、3はCPU2で用いられるプログラムが記
憶されたROMおよびデータ記憶用のRAMから
成るメモリ、4はVRAM(ビデオRAM)、5は
CRT表示装置である。この場合、VRAM4には
第2図に示すように、静止画パターン(ドツトパ
ターン)が記憶される静止画パターンテーブル4
a、静止画パターンを表示すべき位置が記憶され
る静止画位置テーブル4b、各静止画パターンの
カラーがカラーコード(4ビツト)によつて記憶
される静止画カラーテーブル4c、複数の動画パ
ターンが記憶される動画パターンテーブル4d、
動画パターンを表示すべき座標等が記憶される動
画制御テーブル群4eおよび動画パターンのカラ
ーコードが記憶される動画カラーテーブル4fが
各々設けられている。動画パターンテーブル4d
は、第3図に示すように、8バイト毎に1つの動
画パターンを記憶するようになつており、各動画
パターンには各々異なる名称(図では“0”〜
“255”で示す8ビツトの名称)が設定されてい
る。一例としてパターン名称“n”に記憶されい
ている動画パターンを同図に拡大して示すが、図
中データ“1”の部分がパターン部分、データ
“0”の部分が背景部分(透明部分)である。ま
た、動画制御テーブル群4eは第4図イに示すよ
うに、4バイト長の動画制御テーブル32個から成
り、各動画制御テーブルにはアドレスの低い方か
ら順に0〜31の番号が設定されている。ここで、
No.kの動画制御テーブルの内容(他の番号の動画
表示テーブルと同様)を同図に拡大して示す。図
に示す第0、第1バイトには、動画パターンを表
示すべき位置のY,X座標(動画パターンの左上
端位置が動画の基準位置になる)が記憶される。
したがつて、この第0、第1バイト内のデータを
書換えると、動画が画面上を移動する。そして、
第2バイトには表示すべき動画パターンの名称が
記憶され、第3バイト目は未使用になつている。
次に、動画カラーテーブル4fは、第4図ロに示
すように8バイト長の記憶ブロツク32個からなつ
ており、また、これらの記憶ブロツクBC0〜BC
31は各々動画表示テーブルNo.0〜No.31に対応し
て設けられている。ここで、同図に記憶ブロツク
BCk(kは0〜31)の記憶内容を示す。図示のよ
うに記憶ブロツクBCkの第0〜第7バイトの下
位4ビツトには、No.kの動画表示テーブルが指定
する動画パターンの第0〜第7のバイトの色を指
定するカラーコードが各々記憶されている。すな
わち、動画パターンの第0バイトのデータ“1”
の部分が記憶ブロツクBCkの第0バイト内のカ
ラーコードによつて色指定され、同様に動画パタ
ーンの第1〜第7バイトのデータ“1”の部分が
記憶ブロツクBCkの第1〜第7バイト内のカラ
ーコードによつて各々色指定される。 FIG. 1A is a block diagram showing the configuration of an embodiment of the present invention, and in the figure, numeral 1 indicates a display controller according to this embodiment. 2 is
CPU, 3 is memory consisting of ROM in which programs used by CPU 2 are stored and RAM for data storage, 4 is VRAM (video RAM), 5 is
It is a CRT display device. In this case, the VRAM 4 has a still image pattern table 4 in which still image patterns (dot patterns) are stored, as shown in FIG.
a, a still image position table 4b in which the position at which a still image pattern should be displayed is stored, a still image color table 4c in which the color of each still image pattern is stored as a color code (4 bits), and a still image color table 4c in which a plurality of moving image patterns are stored. A video pattern table 4d to be stored,
A moving image control table group 4e in which coordinates for displaying moving image patterns and the like are stored, and a moving image color table 4f in which color codes of moving image patterns are stored are provided. Video pattern table 4d
As shown in Figure 3, one video pattern is stored every 8 bytes, and each video pattern has a different name (in the figure, "0" to
An 8-bit name (indicated by “255”) is set. As an example, the video pattern stored in the pattern name "n" is shown enlarged in the figure. In the figure, the part with data "1" is the pattern part, and the part with data "0" is the background part (transparent part). be. Further, as shown in FIG. 4A, the video control table group 4e consists of 32 video control tables each having a length of 4 bytes, and each video control table is numbered from 0 to 31 in order from the lowest address. There is. here,
The contents of the moving image control table No. k (same as the moving image display tables of other numbers) are shown enlarged in the figure. The 0th and 1st bytes shown in the figure store the Y and X coordinates of the position where the moving image pattern should be displayed (the upper left end position of the moving image pattern is the reference position of the moving image).
Therefore, when the data in the 0th and 1st bytes are rewritten, the moving image moves on the screen. and,
The second byte stores the name of the moving image pattern to be displayed, and the third byte is unused.
Next, the moving image color table 4f consists of 32 8-byte long memory blocks as shown in FIG. 4B, and these memory blocks BC0 to BC
31 are provided corresponding to moving image display tables No. 0 to No. 31, respectively. Here, the memory block is shown in the same figure.
Indicates the memory contents of BCk (k is 0 to 31). As shown in the figure, the lower 4 bits of the 0th to 7th bytes of the memory block BCk contain color codes that specify the colors of the 0th to 7th bytes of the moving image pattern specified by the No. k moving image display table. remembered. In other words, the data “1” in the 0th byte of the video pattern
The color is specified by the color code in the 0th byte of the memory block BCk, and similarly, the data "1" part of the 1st to 7th bytes of the video pattern are the 1st to 7th bytes of the memory block BCk. Each color is designated by the color code within.
次にデイスプレイコントローラ1の各構成要素
について説明する。第1図イにおいて、タイミン
グ信号発生回路8は、内部に設けられた水晶振動
子によつて基本クロツクパルスを発生し、また、
この基本クロツクパルスに基づいてドツトクロツ
クパルスDCPおよび同期信号SYNCを発生する。
そして、ドツトクロツクパルスDCPを水平カウ
ンタ9のクロツク端子CKへ、また、同期信号
SYNCをCRT表示装置5へ各々出力する。ここ
で、ドツトクロツクパルスDCPは、CRT表示画
面に表示される各ドツトに対応するクロツクパル
スであり、言い換えれば、画面の水平走査によつ
て順次表示される各ドツトの表示タイミングに同
期して出力されるクロツクパルスである。また、
このタイミング信号発生回路8は、画像データの
処理に必要な各種のタイミング信号を発生し、画
像データ処理回路10へ出力する。 Next, each component of the display controller 1 will be explained. In FIG. 1A, the timing signal generation circuit 8 generates basic clock pulses using an internally provided crystal oscillator, and also
A dot clock pulse DCP and a synchronization signal SYNC are generated based on this basic clock pulse.
Then, the dot clock pulse DCP is sent to the clock terminal CK of the horizontal counter 9, and the synchronization signal
SYNC is output to each CRT display device 5. Here, the dot clock pulse DCP is a clock pulse corresponding to each dot displayed on the CRT display screen. In other words, it is output in synchronization with the display timing of each dot that is sequentially displayed by horizontal scanning of the screen. This is the clock pulse. Also,
This timing signal generation circuit 8 generates various timing signals necessary for processing image data, and outputs them to the image data processing circuit 10.
水平カウンタ9は341進のアツプカウンタであ
り、画面表示の開始時点において初前リセツトさ
れ、また、ドツトクロツクパルスDCPを341パル
スカウントする毎に信号HPを垂直カウンタ11
のクロツク端子CKへ出力する。この水平カウン
タ9のカウント出力は、CRT表示装置5の電子
ビームの画面の左から何番目のドツトを走査して
いるかを示している。すなわち、例えばカウント
出力が「0」の時は電子ビームの走査が画面の最
左端にあり、また[100]の時は電子ビームが画
面左から101番目のドツト位置を走査している。
なお、この実施例においては画面の横1ラインに
256ドツト表示するようになつている。したがつ
て、水平カウンタ9のカウント出力が「256」〜
「340」の間は非表示期間となる。 The horizontal counter 9 is a 341-base up counter and is reset at the beginning of the screen display, and the signal HP is sent to the vertical counter 11 every time the dot clock pulse DCP is counted by 341 pulses.
output to clock terminal CK of The count output of the horizontal counter 9 indicates which dot from the left of the electron beam screen of the CRT display device 5 is being scanned. That is, for example, when the count output is "0", the electron beam is scanning at the leftmost end of the screen, and when it is [100], the electron beam is scanning the 101st dot position from the left of the screen.
In addition, in this example, one line horizontally on the screen
It is set to display 256 dots. Therefore, the count output of the horizontal counter 9 is "256" ~
The period "340" is a non-display period.
垂直カウンタ11は262進のアツプカウンタで
あり、画面表示の開始時点において初期リセツト
される。 The vertical counter 11 is a 262-decimal up counter, and is initially reset at the start of screen display.
この垂直カウンタ11のカウント出力は、
CRT表示装置5の電子ビームの画面の上から何
番目のラインを走査しているかを示している。ま
た、この実施例における垂直方向の画面のドツト
数は192に設定されており、したがつて垂直カウ
ンタ11のカウント出力が「192」〜「261」の間
は非表示期間となる。 The count output of this vertical counter 11 is
It shows which line from the top of the screen of the CRT display device 5 is being scanned by the electron beam. Further, in this embodiment, the number of dots on the screen in the vertical direction is set to 192, so the period when the count output of the vertical counter 11 is between "192" and "261" is a non-display period.
画像データ処理回路10は、CPU2からイン
ターフエイス回路12を介して供給される画像デ
ータを順次VRAM4内の各テーブル内に書込む。
そして、VRAM4の書込みが終了した後に、
CPU2から表示指令が出力されると、画像デー
タ処理回路10は静止画パターンテーブル4a、
静止画位置テーブル4bおよび静止画カラーテー
ブル4c内の各データを読出し、読出したデータ
に基づいてCRT画面の各ドツト位置にいかなる
色の静止画ドツト表示を行なえばよいかを検知
し、水平カウンタ9および垂直カウンタ11の各
カウント出力が示す電子ビームの走査位置に合わ
せて端子TGから順次カラーコード(4ビツト)
を出力して、カラーパレツト13へ供給する。ま
た、画像データ処理回路10は、上述した静止画
表示動作と平行して、動画パターンテーブル4d
および動画制御テーブル群4e内のデータに基づ
いて、動画表示に必要なデータを演算、抽出し、
動画処理回路15に供給する。 The image data processing circuit 10 sequentially writes image data supplied from the CPU 2 via the interface circuit 12 into each table in the VRAM 4.
Then, after writing to VRAM4 is completed,
When a display command is output from the CPU 2, the image data processing circuit 10 outputs a still image pattern table 4a,
Each data in the still image position table 4b and the still image color table 4c is read out, and based on the read data, it is detected which color of still image dots should be displayed at each dot position on the CRT screen, and the horizontal counter 9 And the color code (4 bits) is sequentially applied from terminal TG according to the scanning position of the electron beam indicated by each count output of the vertical counter 11.
is output and supplied to the color palette 13. In addition, the image data processing circuit 10 also operates the moving image pattern table 4d in parallel with the above-described still image display operation.
and based on the data in the video control table group 4e, calculate and extract data necessary for video display,
The signal is supplied to the moving image processing circuit 15.
ここで、静止画データ処理回路10の構成につ
いて詳細に説明する。 Here, the configuration of the still image data processing circuit 10 will be explained in detail.
第1図ロは画像データ処理回路10の構成を示
すブロツク図である。図において、バスCW(8
ビツト)はCPU2からのデータ書込用のバス、
バスCW(8ビツト)はCPU2のデータ読込用の
バス、バスAH(10ビツト)およびAL(8ビツト)
はVRAM4のアドレス指定用バスで、バスAH
が上位10ビツト、バスALが下位8ビツトを指定
する。バスVWはVRAM4へのデータ書込用の
バス、バスVRLはVRAM4からのデータ読出用
のバス、バスClrはカラーコードの乗せられるバ
スであり、第1図に示すカラーパレツト13に接
続されている。 FIG. 1B is a block diagram showing the configuration of the image data processing circuit 10. As shown in FIG. In the figure, bus CW (8
bit) is the bus for writing data from CPU2,
Bus CW (8 bits) is a bus for reading data from CPU2, bus AH (10 bits) and AL (8 bits).
is the address specification bus for VRAM4, and bus AH
specifies the upper 10 bits, and bus AL specifies the lower 8 bits. The bus VW is a bus for writing data to the VRAM 4, the bus VRL is a bus for reading data from the VRAM 4, and the bus Clr is a bus on which a color code is carried, and is connected to the color palette 13 shown in FIG.
次にレジスタ群B1は、各テーブル類の先頭ア
ドレスを格納するレジスタB1a〜B1eからな
る。そして、これらのレジスタB1a〜B1eに
は、静止画位置テーブル4b、静止画カラーテー
ブル4c、静止画パターンテーブル4a、動画制
御テーブル4eおよび動画パターンテーブル4d
の各先頭アドレスが格納され、バスCWを介して
CPU2から書き替えられるようになつている。
色情報レジスタB2はVRAM内の静止画カラー
テーブルから読出された2種類の静止画用カラー
コードを記憶し、パターンシフタB3から出力さ
れる“1”/“0”信号によつてそのいずれか一
方が選択出力され、カラーバスClrに乗せられる。
前記パターンシフタB3は、バスVRLを介して
VRAM4から読み出された静止画像データを並
直列変換するシフトレジスタであり、その出力
“1”/“0”を色情報しレジスタB2へ供給し
て静止画表示色を決定する。 Next, the register group B1 consists of registers B1a to B1e that store the start addresses of each table type. These registers B1a to B1e contain a still image position table 4b, a still image color table 4c, a still image pattern table 4a, a moving image control table 4e, and a moving image pattern table 4d.
Each start address of is stored and sent via bus CW.
It is now possible to rewrite from CPU2.
The color information register B2 stores two types of still image color codes read from the still image color table in the VRAM, and selects one of them according to the "1"/"0" signal output from the pattern shifter B3. is selectively output and placed on the color bus Clr.
The pattern shifter B3 is connected via the bus VRL.
This is a shift register that converts the still image data read from the VRAM 4 from parallel to serial, and its output "1"/"0" is used as color information and is supplied to the register B2 to determine the still image display color.
次に、動画番号カウンタB4は、各動画制御テ
ーブルの番号(動画番号)Kと、このテーブル内
のY座標の格納アドレス(本実施例で第0バイト
目;第4図参照)とを記憶する7ビツトのカウン
タで上位5ビツトが動画番号Kを表わし、下位2
ビツトがX,Yパターン名称、色情報のいずれか
であるかを表わしており、動画制御テーブル群4
eをサーチして次の水平走査線で表示すべき動画
を検出するときに、動画番号Kが順次インクリメ
ントされるようになつている。このとき下位2ビ
ツトは常に“0”で動画制御テーブルのY座標の
みを示している。このサーチは、表示期間中に、
各動画制御テーブルのY座標を調査し、これと垂
直カウンタ11のカウント値NVとを比較して行
い、表示すべき動画が検出されたときには、その
ときの動画番号カウンタB4の内容を動画番号
FIFO.B5に登録する。この場合、動画番号k(0
〜31)の若い順に登録していき、8つまで登録す
るとそれ以後は受けつけない。こうして、水平表
示期間中に、次の水平走査線で表示すべき動画番
号kが動画番号FIFO.B5に8つまで登録された
後、水平非表示期間中にこれらが順次読み出され
各動画制御テーブルから動画のY座標、X座標、
動画パターンの名称、カラーコード、CC、ICビ
ツトなどを読み出す際のアドレスとなる。そし
て、各動画制御テーブルから読み出されたデータ
が、バスVRLを介して動画処理回路15へ転送
される。 Next, the video number counter B4 stores the number K of each video control table (video number) and the storage address of the Y coordinate in this table (0th byte in this embodiment; see FIG. 4). In a 7-bit counter, the top 5 bits represent the video number K, and the bottom 2
Indicates whether the bit is an X or Y pattern name or color information, and the video control table group 4
When searching e to detect a moving image to be displayed on the next horizontal scanning line, the moving image number K is sequentially incremented. At this time, the lower two bits are always "0" and indicate only the Y coordinate of the video control table. During the display period, this search
The Y coordinate of each video control table is investigated and this is compared with the count value NV of the vertical counter 11. When a video to be displayed is detected, the content of the video number counter B4 at that time is set to the video number.
Register to FIFO.B5. In this case, video number k(0
- 31) in descending order of age, and once eight are registered, no further entries will be accepted. In this way, during the horizontal display period, up to eight video numbers k to be displayed on the next horizontal scanning line are registered in the video number FIFO.B5, and then these are sequentially read out during the horizontal non-display period to control each video. From the table to the video's Y and X coordinates,
This is the address used to read out the video pattern name, color code, CC, IC bit, etc. The data read from each video control table is then transferred to the video processing circuit 15 via the bus VRL.
なお、動画FIFO.B5に入れなかつた9番目の
動画番号は、レジスタB6へ登録される。 Note that the ninth video number that was not entered into the video FIFO.B5 is registered in the register B6.
次にALU(演算ユニツト)B7は、上述した垂
直カウンタ11のカウント値NVとY座標との比
較、動画の画像データのアドレス計算等を行い、
その演算結果がステータスB8を介してデコーダ
B9へ供給される。デコーダB9は、モードレジ
スタB10の規制のもとに、マイクロプログラム
ROM(以下、μプログラムROMという)B11
から供給される命令を解読し、各バスに載せるデ
ータのシーケンス制御を行なうものである。この
μプログラムROMB11には、水平カウンタ9、
垂直カウンタ11が接続され、命令の読み出しア
ドレスを指定している。 Next, the ALU (arithmetic unit) B7 compares the count value NV of the vertical counter 11 with the Y coordinate, calculates the address of the video image data, etc.
The calculation result is supplied to decoder B9 via status B8. The decoder B9 operates under the control of the mode register B10.
ROM (hereinafter referred to as μ program ROM) B11
It decodes the commands supplied from the bus and controls the sequence of data to be loaded on each bus. This μ program ROMB11 includes a horizontal counter 9,
A vertical counter 11 is connected to specify the read address of the instruction.
次に動画処理回路15は、供給されたデータに
基づいて、動画の表示を制御する回路であり、動
画の表示タイミングを検出するとともに、このタ
イミングに基づいて該当する動画のカラーコード
をカラーパレツト13に供給し、さらに、動画処
理回路15は、表示すべき動画データがないこと
を検出すると、静止画表示信号S2(“1”信号)
を画像データ処理回路10へ供給する。画像デー
タ処理回路15は、静止画表示指令信号S2が供
給された時のみ静止画のカラーコードを出力する
ようになつており、この結果、表示面上のあるド
ツト位置に、静止画と動画が競合する場合は、動
画が優先表示される。なお、動画処理回路15の
詳細については後述する。 Next, the video processing circuit 15 is a circuit that controls the display of the video based on the supplied data, and detects the display timing of the video and adds the color code of the corresponding video to the color palette 13 based on this timing. Furthermore, when the video processing circuit 15 detects that there is no video data to be displayed, it outputs a still image display signal S2 (“1” signal).
is supplied to the image data processing circuit 10. The image data processing circuit 15 is configured to output a still image color code only when a still image display command signal S2 is supplied, and as a result, a still image and a moving image are displayed at a certain dot position on the display screen. If there is a conflict, the video will be displayed with priority. Note that details of the moving image processing circuit 15 will be described later.
次にカラーパレツト13は一種のコード変換回
路であり、4ビツトのカラーコードを、レツドカ
ラーデータRD、グリーンカラーデータGD、ブ
ルーカラーデータBD(これらのカラーデータは
各々3ビツト)に変換してDAC(デイジタル/ア
ナログ変換器)14へ出力する。DAC14はカ
ラーデータRD,GD,BDを各々アナログ信号に
変換してRGB信号を作成し、このRGB信号を
CRT表示装置5へ出力する。ここで、第5図に
カラーコード、カラーデータ、表示色の各々の対
応関係の一例を示す。 Next, the color palette 13 is a kind of code conversion circuit, which converts the 4-bit color code into red color data RD, green color data GD, and blue color data BD (each of these color data is 3 bits) and sends them to the DAC. (Digital/analog converter) Output to 14. DAC14 converts the color data RD, GD, BD into analog signals to create RGB signals, and converts this RGB signal into analog signals.
Output to CRT display device 5. Here, FIG. 5 shows an example of the correspondence among color codes, color data, and display colors.
次に、動画処理回路15のより具体的な構成に
ついて説明する。 Next, a more specific configuration of the moving image processing circuit 15 will be explained.
第6図は動画処理回路15の構成を示すブロツ
ク図である。図において、20〜27は各々動画
プロセツサであり、共に同様に構成されるととも
に画像データ処理回路10を介してVRAM4内
の動画データが供給されるようになつている。こ
の動画プロセツサ20(あるいは21〜27)の
構成を第7図に示す。図において30は、第4図
イに示すNo.k(kは0〜31)の動画制御テーブル
の第1バイト目のデータ、すなわち、X座標デー
タが転送されるXカウンタであり画面の水平走査
によつて順次表示される各ドツトの表示タイミン
グに同期したクロツクパルスCKに基づき、転送
されたX座標データをダウンカウントする。31
はXカウンタのカウント出力が「0」になつた時
に“1”信号を出力するO検出回路である。32
は動画パターンテーブル4d内の動画パターンの
うち、後述する処理により指定されるアドレス内
のデータ(1バイト)が転送されるパターンシフ
タであり、アンドゲート33を介して供給される
クロツク信号CKに基づいて、転送されたパター
ンデータを最上位ビツトから順次シフトして出力
する。このパターンシフタ32の出力信号はパタ
ーン信号SPPTとして出力される。35は記憶ブ
ロツクBCk(第4図ロ)内のカラーコードのいず
れか1個が供給されるカラーコードレジスタであ
り、第0〜第3ビツトにカラーコードC0〜C3
が供給される。このカラーコードレジスタ35内
のカラーコードC0〜C3は各々3ステートバツ
フア36〜39を介して、カラーパレツト13に
供給される。この場合、バツフア36〜39には
パターン信号SPPTが開閉信号として優先回路4
0を介して供給されており、信号SEPPが“1”
になると開状態、“0”になると閉状態になる。
優先回路40は動画プロセツサ20〜27に対
し、動画プロセツサ20,21,……27なる順
で優先順位を設定する回路であり、優先度の高い
動画プロセツサが信号SPPTを出力している時は
優先度の低い動画プロセツサの信号SPPTをイン
ヒビツトする回路である。 FIG. 6 is a block diagram showing the configuration of the moving image processing circuit 15. In the figure, reference numerals 20 to 27 each designate a video processor, which are constructed in the same way and are supplied with video data in the VRAM 4 via the image data processing circuit 10. The configuration of this moving picture processor 20 (or 21 to 27) is shown in FIG. In the figure, 30 is an X counter to which the first byte data of the video control table of No. k (k is 0 to 31) shown in FIG. The transferred X coordinate data is counted down based on the clock pulse CK synchronized with the display timing of each dot that is sequentially displayed. 31
is an O detection circuit which outputs a "1" signal when the count output of the X counter reaches "0". 32
is a pattern shifter to which data (1 byte) within the address specified by the processing described later among the moving image patterns in the moving image pattern table 4d is transferred, and is based on the clock signal CK supplied via the AND gate 33. Then, the transferred pattern data is sequentially shifted from the most significant bit and output. The output signal of this pattern shifter 32 is output as a pattern signal SPPT. 35 is a color code register to which any one of the color codes in the memory block BCk (FIG. 4 B) is supplied, and the 0th to 3rd bits contain color codes C0 to C3.
is supplied. The color codes C0-C3 in the color code register 35 are supplied to the color palette 13 via three-state buffers 36-39, respectively. In this case, the pattern signal SPPT is applied to the buffers 36 to 39 as the opening/closing signal to the priority circuit 4.
0, and the signal SEPP is “1”
When it becomes "0", it is in the open state, and when it becomes "0", it is in the closed state.
The priority circuit 40 is a circuit that sets priorities for the video processors 20 to 27 in the order of video processors 20, 21, . This is a circuit that inhibits the signal SPPT of a low-speed video processor.
次に、この実施例の動作を説明する。 Next, the operation of this embodiment will be explained.
第8図はこの実施例における表示画面と、この
画面を操作する電子ビームのラインとの関係を示
す図であり、図示のように水平方向にDS#0〜
DS#31の表示区画に仕切られている。そして、
1つの表示区画には水平方向に8ドツトが描画さ
れるようになつており、また、この8ドツトを描
画する間に、第1図に示す画像データ処理回路1
0はVRAM4を5回アクセスするようになつて
いる。そして、この5回のアクセスのうち4回は
静止画表示および他の表示処理に用いられ、5回
のうち1回が動画表示のためのアクセスとなつて
いる。この場合、静止画表示のための画像データ
は、1つ手前の表示区画において準備される。 FIG. 8 is a diagram showing the relationship between the display screen in this embodiment and the line of the electron beam that operates this screen.
It is divided into DS #31 display sections. and,
Eight dots are drawn horizontally in one display section, and while these eight dots are being drawn, the image data processing circuit 1 shown in FIG.
0 accesses VRAM4 five times. Four of these five accesses are used for still image display and other display processing, and one of the five accesses is for video display. In this case, image data for still image display is prepared in the display section immediately before.
次に、動画処理のためのアクセス動作について
説明する。今、電子ビームが第8図に示すライン
l0の表示区間DS#0を走査しているとすると、
画像データ処理回路10は1段下のラインl1上
に、No.0の動画制御テーブル(第4図イ参照)が
指定する動画パターンが存在するか否かを調べ
る。すなわち、No.0の動画表示テーブルの第0バ
イト目をアクセスしてY座標データを読み込み、
このY座標データに対し次式に示す演算を行う。 Next, the access operation for video processing will be explained. Now, the electron beam is on the line shown in Figure 8.
Assuming that the display section DS#0 of l 0 is being scanned,
The image data processing circuit 10 checks whether the moving image pattern specified by the moving image control table No. 0 (see FIG. 4A) exists on the line l1 one level below. That is, access the 0th byte of the No. 0 video display table and read the Y coordinate data,
The calculation shown in the following equation is performed on this Y coordinate data.
(V(D)+1)−Y(D)=S …(1)
ただし、Y(D):Y座標データ
V(D):垂直カウンタ11のカウント出
力(すなわち、操作ライン番号で
あり最上段が0)
この(1)式における値Sが「0」の場合は、第9
図に示すように次の操作ラインにおいて、動画パ
ターンの第0バイト目が表示される場合であり、
また、値Sが「7」の場合は同図に示すように動
画パターンの第7バイト目が表示される場合であ
る。したがつて、値Sが0以上8未満であれば、
動画パターンが存在すると判定することができ
る。 (V(D)+1)-Y(D)=S...(1) However, Y(D): Y coordinate data V(D): Count output of the vertical counter 11 (i.e., operation line number, the top row is 0) If the value S in this formula (1) is “0”, the 9th
As shown in the figure, in the next operation line, the 0th byte of the video pattern is displayed,
Further, when the value S is "7", the seventh byte of the moving image pattern is displayed as shown in the figure. Therefore, if the value S is 0 or more and less than 8,
It can be determined that a video pattern exists.
次に、画像データ処理回路10は、上述の場合
と同様にして、表示区間DS#1を走査している
時に、1段下のライン上にNo.1の動画制御テーブ
ルが指定する動画パターンが存在するか否かを判
定し、以後同様にして、表示区間DS#2〜DS
#31を走査する間に、各々No.2〜No.31の動画制
御テーブルが指定する動画パターンの存在を調べ
る。このようにして、ラインl0の表示区間DS
#0〜DS#31を走査する間に、画像データ処
理回路10は、No.0〜No.31の動画制御テーブルの
第0バイト目を順次アクセスし、1段下のライン
上の動画パターンの有無を調べる。ただし、この
場合において、存在する動画パターンが8個検出
されると、それ以後においては存在の有無の判定
を行わず、たとえ存在する動画パターンがあつた
としても無視するようにしている。したがつて、
1ラインの走査が終了した時点においては、最大
8個の動画パターンの存在が検出される。そし
て、画像データ処理回路10は存在が検出された
動画パターンに対し、水平非表示期間において以
下に述べる処理を行う。今、仮りにNo.0〜No.7の
動画制御テーブルが指定する動画パターンの存在
が、各々1段下のラインにおいて検出されたとす
ると(この場合はNo.8以後の動画制御テーブルが
指定する動画パターンの存在は無視される)、画
像データ処理回路10は、まずNo.0の動画制御テ
ーブルの第1バイト目のX座標データを動画プロ
セツサ20のXカウンタに転送する。次に、画像
データ処理回路10はNo.0の動画制御テーブルの
第2バイト目をアクセスして、パターン名称を読
み込み、このパターン名称と、前述したSの値と
から、次の走査に必要なデータが、指定された動
画パターン(第3図参照)の第何バイト目なのか
を算出し、算出結果に対応する1バイトデータ
を、動画プロセツサ20のパターンシフタ32に
転送する。また、画像データ処理回路10は、上
述した処理を行つた動画制御テーブルに対応する
記憶ブロツクBC0〜BC31(第5図参照)内の
カラーコードのうち、前述したSの値に対応する
バイトのカラーコードを読み込んで、動画プロセ
ツサ内のカラーコードレジスタ35に転送する。
例えばNo.0の動画制御テーブルについて、前述し
た動画パターンの読み出し処理を行い、この際の
Sの値が1であつたとすれば、記憶ブロツクBC
0の第1byte内のカラーコードを転送する。 Next, the image data processing circuit 10 scans the display section DS#1 in the same way as in the case described above, and the moving image pattern specified by the No. 1 moving image control table is displayed on the line one level below. Determine whether it exists or not, and then do the same to display the display section DS#2 to DS
While scanning #31, the existence of the moving image patterns specified by the moving image control tables No. 2 to No. 31 is checked. In this way, the display interval DS of line l 0
While scanning #0 to DS #31, the image data processing circuit 10 sequentially accesses the 0th byte of the video control tables No. 0 to No. 31, and scans the video pattern on the line one level below. Check for presence. However, in this case, when eight existing moving image patterns are detected, the presence or absence of the existing moving image patterns is not determined thereafter, and even if there are existing moving image patterns, they are ignored. Therefore,
At the time when one line of scanning is completed, the presence of a maximum of eight moving image patterns is detected. Then, the image data processing circuit 10 performs the following processing on the moving image pattern whose existence has been detected during the horizontal non-display period. Now, suppose that the presence of the video patterns specified by the video control tables No. 0 to No. 7 is detected in the lines one level below each (in this case, the video patterns specified by the video control tables No. 8 and later are detected). The image data processing circuit 10 first transfers the X coordinate data of the first byte of the moving image control table No. 0 to the X counter of the moving image processor 20 (the existence of the moving image pattern is ignored). Next, the image data processing circuit 10 accesses the second byte of the moving image control table No. 0, reads the pattern name, and uses the pattern name and the value of S described above to determine the necessary data for the next scan. It calculates what byte of the designated moving image pattern (see FIG. 3) the data is, and transfers 1-byte data corresponding to the calculation result to the pattern shifter 32 of the moving image processor 20. The image data processing circuit 10 also processes the color of the byte corresponding to the value of S described above among the color codes in the memory blocks BC0 to BC31 (see FIG. 5) corresponding to the moving image control table that has undergone the processing described above. The code is read and transferred to the color code register 35 in the video processor.
For example, if the above-mentioned video pattern reading process is performed for the No. 0 video control table and the value of S at this time is 1, then the memory block BC
Transfer the color code in the first byte of 0.
以後、画像データ処理回路10および動画処理
回路15は、上述と同様の処理をNo.1〜No.7の動
画制御テーブルについて行う。 Thereafter, the image data processing circuit 10 and the moving image processing circuit 15 perform the same processing as described above for the moving image control tables No. 1 to No. 7.
次に、水平非表示期間が終了して、1段下のラ
インl1を走査する動作について説明する。 Next, the operation of scanning the line l1 one step below after the horizontal non-display period ends will be described.
今説明のために、動画プロセツサ20に注目
し、また、この動画プロセツサ20内のXカウン
タ30に転送されているデータが「5」であつた
とする。まず、ラインl1を走査する電子ビーム
が、表示区間DS#0に入ると、表示面上のドツ
トが左から1つずつ表示されるタイミングに同期
して、Xカウンタ30がクロツク信号CKをダウ
ンカウントしてゆく。この結果、5カウント目に
おいてXカウンタ30のカウント出力が「0」に
なり、O検出回路31が“1”信号を出力し、ア
ンドゲート33が開となつてクロツク信号CKが
パターンシフタ32へ供給される。これにより、
パターンシフタ32は、クロツク信号CKに同期
してその最上位ビツトから順位データをシフトし
て出力する。したがつて、パターン信号SPPTは
表示面上の左から6ドツト目(X座標の5に対
応)の表示タイミングに同期して出力される。こ
のように、パターン信号SPPTの出力開始タイミ
ングはXカウンタ30に転送されているX座標デ
ータに一致する。なお、パターン信号SPPTは動
画パターンデータをパラレル−シリアル変換した
信号となる。 For the sake of explanation, let us now focus on the video processor 20 and assume that the data transferred to the X counter 30 in the video processor 20 is "5". First, when the electron beam scanning line l1 enters the display section DS#0, the X counter 30 lowers the clock signal CK in synchronization with the timing when the dots on the display screen are displayed one by one from the left. Keep counting. As a result, at the fifth count, the count output of the X counter 30 becomes "0", the O detection circuit 31 outputs a "1" signal, the AND gate 33 is opened, and the clock signal CK is supplied to the pattern shifter 32. be done. This results in
The pattern shifter 32 shifts and outputs the ranking data starting from the most significant bit in synchronization with the clock signal CK. Therefore, the pattern signal SPPT is output in synchronization with the display timing of the 6th dot from the left on the display screen (corresponding to 5 on the X coordinate). In this way, the output start timing of the pattern signal SPPT coincides with the X coordinate data transferred to the X counter 30. Note that the pattern signal SPPT is a signal obtained by parallel-to-serial conversion of video pattern data.
そして、信号SPPTが出力されると、この信号
の“1”,“0”に対応してバツフア36〜39が
開閉し、この結果、信号SPPTが“1”になつた
時のみカラーコードレジスタ35内のカラーコー
ドがカラーパレツト13へ供給される。 When the signal SPPT is output, the buffers 36 to 39 open and close in response to "1" and "0" of this signal, and as a result, only when the signal SPPT becomes "1" does the color code register 35 The color code within is supplied to the color palette 13.
以後は、上述した動作を順次くり返し行つてゆ
く。この結果、表示画面には選択された動画制御
テーブルの第0、第1バイト内のY,X座標に対
応する位置に、その動画制御テーブルによつて指
定された動画パターンが表示され、しかも、この
動画パターンの第0〜第7バイトには各々別個の
色を指定することが可能となる。例えば、No.kの
動画制御テーブルによつて指定された動画パター
ンが表示されている場合は、この動画パターンの
第0〜第7ラインの色は、各々記憶ブロツク
BCkの第0〜第7バイト内のカラーコードによ
つて決定される。 Thereafter, the above-described operations are repeated in sequence. As a result, the video pattern specified by the selected video control table is displayed on the display screen at the position corresponding to the Y and X coordinates in the 0th and 1st bytes of the selected video control table, and It is possible to specify separate colors for each of the 0th to 7th bytes of this moving image pattern. For example, when a video pattern specified by the video control table No.
It is determined by the color code in the 0th to 7th bytes of BCk.
以上説明したように、この発明によれば、動画
パターンのいずれかを指定する情報と指定した動
画パターンの表示位置を決定する情報とが記憶さ
れる複数の動画制御テーブルと、これらの動画制
御テーブルに対応して設けられるとともに、前記
動画パターンを構成するデータの水平ライン毎の
色を指定するカラーコードが記憶される複数の記
憶ブロツクと、前記動画制御テーブルおよび前記
記憶ブロツクの内容に基づいて動画パターンのカ
ラー表示を制御する動画カラー制御手段とを具備
したので、動画パターンの表示色をその水平ライ
ン毎に指定することができ、これにより、複数な
配色の動画パターンを描画することができる。し
たがつて、表示面上の表現能力を著しく向上させ
ることができる。
As described above, according to the present invention, there are a plurality of video control tables storing information specifying one of the video patterns and information determining the display position of the specified video pattern, and these video control tables. A plurality of memory blocks are provided corresponding to the video pattern and store color codes specifying colors for each horizontal line of data constituting the video pattern; Since the present invention includes a moving image color control means for controlling the color display of the pattern, the display color of the moving image pattern can be specified for each horizontal line, thereby making it possible to draw moving image patterns with a plurality of color schemes. Therefore, the expressive ability on the display screen can be significantly improved.
第1図イ,ロはこの発明の一実施例の構成を示
すブロツク図、第2図は第1図イに示すVRAM
4の内容を示すメモリマツプ、第3図、第4図
イ,ロは各々第2図に示す動画パターンテーブル
4d、動画表示テーブル群4e、動画カラーテー
ブル4fの記憶内容のを示す概念図、第5図はカ
ラーコード、カラーデータ、表示色の各々の対応
関係の一例を示す図、第6図は動画処理回路15
の構成を示すブロツク図、第7図は動画プロセツ
サの構成を示すブロツク図、第8図は同実施例に
おける表示面と走査線との関係を示す図、第9図
は同実施例における動画パターンの描画動作を示
す説明図である。
4e……動画制御テーブル群、BC0〜BC31
……記憶ブロツク、10……画像データ処理回
路、15……動画処理回路(以上10,15は動
画カラー制御手段)。
Figures 1A and 1B are block diagrams showing the configuration of an embodiment of the present invention, and Figure 2 is a VRAM shown in Figure 1A.
3 and 4. A and B are conceptual diagrams showing the stored contents of the moving image pattern table 4d, moving image display table group 4e, and moving image color table 4f shown in FIG. 2, respectively. The figure shows an example of the correspondence between color code, color data, and display color, and FIG. 6 shows the video processing circuit 15.
7 is a block diagram showing the configuration of the video processor, FIG. 8 is a diagram showing the relationship between the display surface and the scanning line in the same embodiment, and FIG. 9 is a video pattern in the same embodiment. FIG. 3 is an explanatory diagram showing the drawing operation of FIG. 4e...Video control table group, BC0 to BC31
. . . storage block, 10 . . . image data processing circuit, 15 . . . moving image processing circuit (10 and 15 are moving image color control means).
Claims (1)
て表示面上の動画表示を制御するデイスプレイコ
ントローラにおいて、前記動画パターンのいずれ
かを指定する情報と指定した動画パターンの表示
位置を決定する情報とが記憶される複数の動画制
御テーブルと、これらの動画制御テーブルに対応
して設けられるとともに、前記動画パターンを構
成するデータの水平ライン毎の色を指定するカラ
ーコードが記憶される複数の記憶ブロツクと、前
記動画制御テーブルおよび前記記憶ブロツクの内
容に基づいて動画パターンのカラー表示を制御す
る動画カラー制御手段とを具備することを特徴と
するデイスプレイコントローラ。1. In a display controller that controls video display on a display screen based on a plurality of pre-stored video patterns, information specifying one of the video patterns and information determining the display position of the specified video pattern are stored. a plurality of moving image control tables, which are provided corresponding to these moving image control tables, and a plurality of storage blocks in which color codes specifying colors for each horizontal line of data constituting the moving image pattern are stored; A display controller comprising: a video color control means for controlling color display of a video pattern based on the video control table and the contents of the storage block.
Priority Applications (6)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59082736A JPS60225893A (en) | 1984-04-24 | 1984-04-24 | Display controller |
| EP85104434A EP0163863B1 (en) | 1984-04-13 | 1985-04-11 | Video display control system for animation pattern image |
| DE198585104434T DE163863T1 (en) | 1984-04-13 | 1985-04-11 | VIDEO DISPLAY CONTROL UNIT TO DISPLAY MOVABLE PATTERNS. |
| DE8585104434T DE3585558D1 (en) | 1984-04-13 | 1985-04-11 | VIDEO DISPLAY CONTROL UNIT TO DISPLAY MOVABLE PATTERNS. |
| US07/009,095 US4864289A (en) | 1984-04-13 | 1987-01-23 | Video display control system for animation pattern image |
| US07/943,706 US5416497A (en) | 1984-04-13 | 1992-09-11 | Video display control system for animation pattern image |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59082736A JPS60225893A (en) | 1984-04-24 | 1984-04-24 | Display controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60225893A JPS60225893A (en) | 1985-11-11 |
| JPH051477B2 true JPH051477B2 (en) | 1993-01-08 |
Family
ID=13782700
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59082736A Granted JPS60225893A (en) | 1984-04-13 | 1984-04-24 | Display controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60225893A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5103499A (en) * | 1986-07-18 | 1992-04-07 | Commodore-Amiga, Inc. | Beam synchronized coprocessor |
| JPH02135393A (en) * | 1988-11-16 | 1990-05-24 | Fujitsu Ltd | Display device |
-
1984
- 1984-04-24 JP JP59082736A patent/JPS60225893A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60225893A (en) | 1985-11-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100222314B1 (en) | Still picture display apparatus | |
| US4628467A (en) | Video display control system | |
| JPS6334471B2 (en) | ||
| CA1220293A (en) | Raster scan digital display system | |
| US4622547A (en) | Memory access control apparatus | |
| JPH0569224B2 (en) | ||
| JPS6323575B2 (en) | ||
| JPH04185081A (en) | Mosaic image display device | |
| JPS642955B2 (en) | ||
| JPH051477B2 (en) | ||
| GB2210239A (en) | An apparatus for controlling the access of a video memory | |
| US20010015727A1 (en) | Image data display control method and an image display device thereof | |
| JPH0670742B2 (en) | Standard display device | |
| JPH08502836A (en) | Method and apparatus for updating a CLUT (color lookup table) during horizontal blanking | |
| JPS632116B2 (en) | ||
| JP2644503B2 (en) | Sprite display control device | |
| JP3252359B2 (en) | Image processing device | |
| JPS62192865A (en) | Graphic display device | |
| JP2792598B2 (en) | Sprite display control device for scanning display device | |
| JPH0562349B2 (en) | ||
| JP2623541B2 (en) | Image processing device | |
| US5566313A (en) | Apparatus for controlling the transfer of data | |
| JPS6235393A (en) | General-purpose graphic display unit | |
| JPH0558199B2 (en) | ||
| JPS59119387A (en) | Display indication control system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |