JPH0981117A - Image control device - Google Patents

Image control device

Info

Publication number
JPH0981117A
JPH0981117A JP7259228A JP25922895A JPH0981117A JP H0981117 A JPH0981117 A JP H0981117A JP 7259228 A JP7259228 A JP 7259228A JP 25922895 A JP25922895 A JP 25922895A JP H0981117 A JPH0981117 A JP H0981117A
Authority
JP
Japan
Prior art keywords
background
display
bgb
bga
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7259228A
Other languages
Japanese (ja)
Inventor
Hitotsugu Kato
仁嗣 加藤
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP7259228A priority Critical patent/JPH0981117A/en
Publication of JPH0981117A publication Critical patent/JPH0981117A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent the whole of an image control device from decreasing in a processing speed even if multiple backgrounds exist, not by displaying both backgrounds overlapped but by displaying them split with the boundaries of the display positions. SOLUTION: On a background plane BGB, for example, an area of 42 cells ×28 cells toward the center in one block consisting of 64 cells × 32 cells is defined as a displayable cell. Therefore, by rewriting display position coordinates (X, Y) of the register which shows an original point in the display area, relative scroll of the display screen on the background plane BGB becomes possible. And, when the display plane scrolls the area where background side BGA and background side BGB overlap, only the background plane BGB is displayed by split display. Further, the area which comes off both of the background planes BGA and BGB is included in the display screen, the area becomes a backdrop plane and is displayed transparently (monochrome).

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、例えば、テレビゲ
ーム装置などに用いて好適な画像制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image control device suitable for use in, for example, a video game device.

【0002】[0002]

【従来の技術】従来より、テレビジョン受像機と接続し
て、そのディスプレイ(ブラウン管)上に背景画像を表
示しながら、ゲーム操作に応じて移動する複数のキャラ
クタを動画像として表示制御するテレビゲーム装置が知
られている。この種の装置では、CPU,ROM,RA
MおよびVRAM(ビデオRAM)等から構成される画
像制御装置を具備し、ROMに記憶されているバックグ
ラウンド画像およびオブジェクト画像の各画像データ
を、CPUの指示の下にVRAMに転送する一方、この
VRAMに転送された各画像データを読み出してビデオ
信号に変換し、ディスプレイ表示するように構成されて
いる。このような画像制御装置にあっては、画面表示効
果を付与する為、複数の背景画面を形成する場合が多
く、例えば、バックグラウンド画像データで形成される
背景画像を複数面用意しておき、スクロール処理に応じ
てあたかも”ページを繰る”ごとく背景を表示切替えす
る効果等を具現している。なお、ここで言うスクロール
処理とは、背景面上で表示面を移動させて画面表示する
操作を指している。
2. Description of the Related Art Conventionally, a video game is connected to a television receiver to display a background image on its display (cathode ray tube) and display-control a plurality of characters moving in response to a game operation. The device is known. In this type of device, CPU, ROM, RA
An image control device including M and VRAM (video RAM) is provided, and each image data of the background image and the object image stored in the ROM is transferred to the VRAM under the instruction of the CPU. Each of the image data transferred to the VRAM is read out, converted into a video signal, and displayed on a display. In such an image control device, in order to provide a screen display effect, a plurality of background screens are often formed. For example, a plurality of background images formed by background image data are prepared, It realizes the effect of switching the background display as if "page turning" according to the scroll processing. Note that the scroll processing here means an operation of moving the display surface on the background surface and displaying the screen.

【0003】[0003]

【発明が解決しようとする課題】さて、こうした従来の
画像制御装置では、オブジェクト画像データを水平走査
ライン毎に表示制御して動画表示しながら背景像を形成
している。したがって、上述のスクロール処理による表
示効果を付与する際には、背景画面の生成に必要なバッ
クグラウンド画像データをVRAMから読み出すため、
背景画面の種類が増える程、このVRAMへのアクセス
回数が増加する。メモリへのアクセス回数が増加する
程、その帰結として、装置全体の処理速度が低下するの
で、それを回避するには、その分、水平走査ライン上に
表示し得るオブジェクトの数を削減しなければならな
い、という問題が生じている。
In such a conventional image control apparatus, the background image is formed while displaying the moving image by controlling the display of the object image data for each horizontal scanning line. Therefore, when the display effect by the scroll processing described above is added, the background image data necessary for generating the background screen is read from the VRAM.
The number of accesses to this VRAM increases as the type of background screen increases. As the number of accesses to the memory increases, the processing speed of the entire device decreases as a result, so to avoid it, the number of objects that can be displayed on the horizontal scan line must be reduced accordingly. The problem is that it will not happen.

【0004】そこで、本発明は、1水平走査ライン当り
に動画表示し得るオブジェクト数を削減せずとも複数の
背景画面を切替表示し得る画像制御装置を提供すること
を目的としている。
Therefore, an object of the present invention is to provide an image control device capable of switching and displaying a plurality of background screens without reducing the number of objects capable of displaying a moving image per horizontal scanning line.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、請求項1に記載の発明では、表示面のスクロールに
応じて背景面を異ならせる装置であって、複数の背景面
毎の表示位置を設定する位置設定手段と、表示面下に位
置する背景面の種類を前記表示位置に基づいて判別する
背景判別手段と、表示面のスクロール位置に応じて前記
背景判別手段が判別した種類の背景面のみ発生し、前記
表示位置を境に種類の異なる背景面を分割表示するよう
指示する背景制御手段とを具備することを特徴としてい
る。
In order to achieve the above object, according to the invention as set forth in claim 1, there is provided a device for changing a background surface in accordance with scrolling of the display surface, wherein a display position for each of a plurality of background surfaces is provided. Position setting means, a background determination means for determining the type of the background surface located below the display surface based on the display position, and a background of the type determined by the background determination means according to the scroll position of the display surface. And a background control unit for instructing to divide and display different types of background surfaces with the display position as a boundary.

【0006】請求項2に記載の発明では、複数の背景面
毎の表示属性と、これら表示属性に各々対応付けられた
背景面を形成する画像データとを記憶する背景記憶手段
と、前記複数の背景面毎の表示位置を設定する位置設定
手段と、表示面下に位置する背景面の表示属性を前記表
示位置に基づいて判別する背景判別手段と、表示面のス
クロール位置に応じて前記背景判別手段が判別した表示
属性に対応する画像データを前記背景記憶手段から読み
出す背景読み出し手段と、この背景読み出し手段によっ
て読み出された画像データに基づいて背景面を発生し、
前記表示位置を境に表示属性の異なる背景面を分割表示
するよう指示する背景制御手段とを具備することを特徴
としている。
According to the second aspect of the present invention, the background storage means for storing the display attributes for each of the plurality of background planes and the image data forming the background planes respectively associated with these display attributes, and the plurality of background storage means are provided. Position setting means for setting a display position for each background surface, background determination means for determining the display attribute of the background surface located below the display surface based on the display position, and the background determination according to the scroll position of the display surface. Background reading means for reading the image data corresponding to the display attribute determined by the means from the background storing means, and a background surface is generated based on the image data read by the background reading means,
And a background control unit for instructing to divide and display the background surface having different display attributes at the display position.

【0007】請求項3に記載の発明では、複数の背景面
毎の表示属性と、この表示属性に対応付けられた背景面
を形成する画像データとを記憶する背景記憶手段と、前
記複数の背景面毎の表示位置を設定する位置設定手段
と、表示面上の走査ライン位置に対応して前記背景記憶
手段から各背景面毎の表示属性を読み出す属性読み出し
アドレスを発生するアドレス発生手段と、前記複数の背
景面の内、前記走査ライン位置を包含する背景面を、前
記位置設定手段が設定した表示位置に基づいて選択する
背景選択手段と、前記アドレス発生手段が発生する属性
読み出しアドレスの内、前記背景選択手段により選択さ
れた背景面の表示属性を読み出す属性読み出しアドレス
を指定するアドレス指定手段と、このアドレス指定手段
が指定した属性読み出しアドレスに応じて前記背景記憶
手段から対応する表示属性および画像データを読み出し
て背景面を発生する背景発生手段と、前記走査ライン位
置が表示属性の異なる背景面に入った場合には、前記背
景発生手段に背景面の切替えを指示する表示制御手段と
を具備することを特徴とする。上記請求項3に従属する
請求項4に記載の発明によれば、前記表示制御手段は、
前記走査ライン位置が背景面を外れた場合には透明表示
を指示することを特徴とする。
According to the third aspect of the invention, the background storage means for storing the display attributes for each of the plurality of background surfaces and the image data forming the background surface associated with the display attributes, and the plurality of backgrounds. Position setting means for setting a display position for each surface; address generating means for generating an attribute read address for reading out display attributes for each background surface from the background storage means in correspondence with a scanning line position on the display surface; Of a plurality of background planes, a background plane including the scanning line position is selected based on a display position set by the position setting unit, and an attribute read address generated by the address generating unit, Address designation means for designating an attribute read address for reading out the display attribute of the background surface selected by the background selection means, and attribute reading means designated by the address designation means. The background generation means for generating a background surface by reading the corresponding display attribute and image data from the background storage means according to the address, and the background when the scanning line position enters a background surface having a different display attribute. And a display control means for instructing the generation means to switch the background surface. According to the invention of claim 4 which depends on claim 3, the display control means includes:
When the scanning line position is out of the background surface, the transparent display is instructed.

【0008】本発明では、表示面のスクロールに応じて
背景面を異ならせる場合、位置設定手段が複数の背景面
毎の表示位置を設定しておき、背景判別手段が表示面下
に位置する背景面の種類を前記表示位置に基づいて判別
すると、背景制御手段は表示面のスクロール位置に応じ
て前記背景判別手段が判別した種類の背景面のみ発生
し、前記表示位置を境に種類の異なる背景面を分割表示
するよう指示する。したがって、表示面内に複数の背景
面が存在しても、これら両背景面を重ねて画面表示する
のではなく、表示位置を境に分割表示するから、背景面
の種類が増えても画像メモリへのアクセス回数は増加せ
ず、装置全体の処理速度を低下させる虞がない。この結
果、水平走査ライン上に表示し得るオブジェクトの数を
削減する必要がなくなる訳である。
In the present invention, when the background surface is changed according to the scrolling of the display surface, the position setting means sets the display position for each of the plurality of background surfaces, and the background determining means sets the background position below the display surface. When the type of surface is determined based on the display position, the background control means generates only the background surface of the type determined by the background determination means according to the scroll position of the display surface, and the background of different types is bordered by the display position. Instruct to display the plane separately. Therefore, even if there are multiple background planes in the display plane, the two background planes are not displayed on top of each other, but are divided and displayed at the display position. The number of accesses to the device does not increase, and there is no fear of reducing the processing speed of the entire device. As a result, it is not necessary to reduce the number of objects that can be displayed on the horizontal scanning line.

【0009】[0009]

【発明の実施の形態】本発明による画像制御装置は、例
えば、演奏操作に応じて発生する演奏情報を音符として
ディスプレイ上に楽譜表示しながら、その楽音を発生す
る楽音発生装置などに適用され得る。以下では、この楽
音発生装置を実施例として、図面を参照して説明する。 A.実施例の構成 (1)全体構成 図1は、本発明による画像制御装置が適用された一実施
例である楽音発生装置の全体構成を示すブロック図であ
る。この図に示す実施例は、鍵盤操作に応じて生成され
る演奏情報、若しくは自動演奏情報を、楽曲の進行に伴
って楽譜上の音符としてテレビジョン受像機TVのブラ
ウン管に表示しながら、その演奏情報に対応した楽音を
発生するものである。
BEST MODE FOR CARRYING OUT THE INVENTION The image control apparatus according to the present invention can be applied to, for example, a musical tone generating apparatus which generates musical tones while displaying musical score as musical notes on musical performance information generated in response to musical performance operations. . In the following, the musical tone generating apparatus will be described as an embodiment with reference to the drawings. A. Configuration of Embodiments (1) Overall Configuration FIG. 1 is a block diagram showing the overall configuration of a musical sound generating apparatus which is an embodiment to which an image control apparatus according to the present invention is applied. In the embodiment shown in this figure, the performance information or the automatic performance information generated according to the keyboard operation is displayed on the CRT of the television receiver TV as musical notes on the musical score as the music progresses, and the performance is performed. The musical tone corresponding to the information is generated.

【0010】こうした実施例において、1はCPUであ
り、スイッチ走査に基づきパネルスイッチ操作や押離鍵
操作に対応するイベントを検出し、検出したイベント内
容に応じて後述する構成要素5〜7からなる表示制御部
と、構成要素8〜10からなる楽音制御部とを制御す
る。2はこのCPU1において実行される各種制御プロ
グラムの他、楽譜や音符、文字あるいは背景を画像表示
するためのキャラクタ(オブジェクト画像データ、バッ
クグラウンド画像データ)が記憶されているROMであ
る。
In such an embodiment, 1 is a CPU, which detects an event corresponding to a panel switch operation or a key release operation based on a switch scan, and comprises constituent elements 5 to 7 described later according to the detected event content. The display control unit and the musical sound control unit including the constituent elements 8 to 10 are controlled. Reference numeral 2 denotes a ROM that stores various control programs executed by the CPU 1 as well as characters (object image data, background image data) for displaying musical scores, notes, characters, or a background image.

【0011】3はRAMであり、上記CPU1のワーク
エリアとして各種レジスタエリアが設けられ、演算結果
やフラグ値が一時記憶される。4は鍵盤およびスイッチ
インタフェース回路である。このインタフェース回路4
は、図示されていないパネル面に配設される各種操作ス
イッチのオンオフ操作や、あるいは鍵盤(図示略)の各
鍵毎に設けられている鍵スイッチが押離鍵操作によりオ
ンオフ操作される際のスイッチイベントを発生してCP
U1に供給する。
Reference numeral 3 denotes a RAM, which is provided with various register areas as a work area for the CPU 1 to temporarily store the calculation results and flag values. Reference numeral 4 is a keyboard and switch interface circuit. This interface circuit 4
Is an on / off operation of various operation switches arranged on a panel surface (not shown), or when a key switch provided for each key of a keyboard (not shown) is on / off operated by pressing and releasing keys. Switch event occurs and CP
Supply to U1.

【0012】5は本発明による画像制御装置に対応する
ビデオ・ディスプレイ・プロセッサ(以下、VDPと記
す)であり、所謂、CRTコントローラとして機能す
る。すなわち、VDP5は、CPU1の指示の下に、R
OM2に格納されるオブジェクト画像データおよびバッ
クグラウンド画像データを自身内部のキャラジェネメモ
リ(後述する)あるいは後述のVRAM6へDMA転送
する一方、これら各メモリに格納された画像データの内
から表示すべき画像データを抽出してその表示形態や表
示位置を定める表示制御処理を行い、この処理が施され
た画像データを表示色を表わすRGBデータに変換して
出力する。なお、本発明の要旨に関わるVDP5の構成
/動作については追って述べる。
A video display processor (hereinafter referred to as VDP) 5 corresponding to the image control apparatus according to the present invention functions as a so-called CRT controller. That is, the VDP 5 is
While the object image data and the background image data stored in the OM2 are DMA-transferred to a character generation memory (described later) inside itself or a VRAM6 described later, an image to be displayed from the image data stored in each of these memories. The data is extracted and a display control process for determining the display form and display position is performed, and the image data subjected to this process is converted into RGB data representing a display color and output. The configuration / operation of the VDP 5 relating to the gist of the present invention will be described later.

【0013】7はエンコーダであり、VDP5より出力
されるRGBデータに垂直/水平同期信号を重畳してコ
ンポジットビデオ信号を発生する。このコンポジットビ
デオ信号は、テレビジョン受像機TVの映像入力端子に
供給されることによって、VDP5により表示制御され
た画像がブラウン管上に表示される。8は周知の波形メ
モリ読み出し方式で構成される音源であり、押離鍵操作
に応じてCPU1が発生するキーオン/キーオフ、ある
いはベロシティ等の演奏情報に基づき、波形ROM9か
ら対応する波形データを読み出して楽音データを発生す
る。10は音源8から出力される楽音データをアナログ
形式のオーディオ出力信号に変換するD/A変換器であ
る。このD/A変換器10から出力されるオーディオ出
力信号はスピーカSPにて楽音として放音される。
An encoder 7 superimposes a vertical / horizontal synchronizing signal on the RGB data output from the VDP 5 to generate a composite video signal. This composite video signal is supplied to the video input terminal of the television receiver TV, so that an image display-controlled by the VDP 5 is displayed on the cathode ray tube. Reference numeral 8 is a sound source configured by a well-known waveform memory reading method, which reads corresponding waveform data from the waveform ROM 9 based on performance information such as key-on / key-off or velocity generated by the CPU 1 in response to a key release operation. Generates musical tone data. Reference numeral 10 is a D / A converter for converting the musical sound data output from the sound source 8 into an audio output signal in an analog format. The audio output signal output from the D / A converter 10 is emitted as a musical sound by the speaker SP.

【0014】(2)VDP5の構成 次に、図2を参照してVDP5を構成するインタフェー
ス部、オブジェクト制御部、バックグラウンド制御部お
よび色変換部/同期信号発生部の各部について説明して
行く。 インタフェース部 インタフェース部は構成要素50,51から形成され
る。50はCPUバスに接続されてCPU1とデータを
授受するCPUインタフェース回路である。51はVR
AM6とのデータ授受を管理するVRAMインタフェー
スである。VRAM6には、CPU1の指示の下に、こ
れらインタフェース回路50,51をそれぞれ介してバ
ックグラウンド画像データDBGおよびキャラクタデータ
OBJAが書込まれる。なお、上述したバックグラウンド
画像データDBGとは、背景面を形成するデータであり、
一方、キャラクタデータDOBJAとは、その背景面上に動
画表示されるオブジェクトOBJAの画像を形成するデ
ータである。また、VRAM6からこれら画像データを
読み出す場合には、書込み時と同様、上記インタフェー
ス回路50,51を介してCPU1側から読み出しアド
レスが与えられ、これに応じて読み出される画像データ
BG,DOBJAは、後述のコントローラ59,63に供給
される。
(2) Configuration of VDP5 Next, the interface section, the object control section, the background control section, and the color conversion section / synchronization signal generation section that configure the VDP5 will be described with reference to FIG. Interface part The interface part is formed from the components 50 and 51. Reference numeral 50 is a CPU interface circuit that is connected to the CPU bus and sends and receives data to and from the CPU 1. 51 is VR
It is a VRAM interface that manages data exchange with the AM6. Under the instruction of the CPU 1, background image data D BG and character data D OBJA are written in the VRAM 6 via the interface circuits 50 and 51, respectively. The background image data D BG described above is data that forms a background surface,
On the other hand, the character data D OBJA is data that forms an image of the object OBJA displayed on the background surface as a moving image. Further, when these image data are read from the VRAM 6, the read address is given from the CPU 1 side through the interface circuits 50 and 51 and the image data D BG and D OBJA read in response to the read addresses are given as in the case of writing. Are supplied to the controllers 59 and 63 described later.

【0015】オブジェクト制御部 オブジェクト制御部は構成要素52〜62からなる。5
2は、画面上に表示されるオブジェクト数分のOBJA
コード、OBJBコードが格納されるオブジェクトメモ
リである。OBJAコード、OBJBコードとは、オブ
ジェクトOBJAを形成するキャラクタデータD
OBJAと、オブジェクトOBJBを形成するキャラクタデ
ータDOBJBとの各属性を表わすデータである。OBJA
/OBJBコードとは、1ワードが16ビット長のワー
ドW0〜W2の3ワードで1つのオブジェクト属性を形
成するものである。ここで言うオブジェクト属性とは、
対応するキャラクタデータの大きさ(領域)、表示位置
座標、キャラクタネームおよび使用するカラーブロック
等を表わす。
Object Control Unit The object control unit comprises components 52-62. 5
2 is OBJA for the number of objects displayed on the screen
It is an object memory in which codes and OBJB codes are stored. The OBJA code and the OBJB code are the character data D forming the object OBJA.
And OBJA, is data representing the attributes of the character data D OBJb forming the object OBJb. OBJA
The / OBJB code forms one object attribute with three words W0 to W2 each having a 16-bit length. The object attribute here is
The size (area) of the corresponding character data, the display position coordinates, the character name, the color block used, and the like are shown.

【0016】53はVDP5の動作モードを決めるコン
トロールレジスタであり、オブジェクト制御部の処理形
態を指定するオブジェクトコントロールレジスタと、後
述するバックグラウンド制御部の処理形態を指定するバ
ックグラウンドコントロールレジスタ群(後述する)と
を含む。その内、オブジェクトコントロールレジスタ
は、全16ビット長のレジスタであり、CPU1により
各ビット位置にセットされるレジスタ値に応じて表示制
御形態が設定される。
Reference numeral 53 is a control register for determining the operation mode of the VDP 5, which includes an object control register for designating the processing form of the object control unit and a group of background control registers for designating the processing form of the background control unit (to be described later). ) And. Among them, the object control register is a register having a total length of 16 bits, and the display control mode is set according to the register value set in each bit position by the CPU 1.

【0017】このオブジェクトコントロールレジスタの
ビット0〜ビット4までの下位5ビットには、オブジェ
クト種類の割り当て形態を指定するレジスタ値S0〜S
4がストアされる。また、ビット5〜ビット7には、オ
ブジェクトA面(OBJA面)、オブジェクトB面(O
BJB面)およびバックグラウンド面(BG面)の表示
上の重なり順序となる画面優先順位を規定するレジスタ
値L0〜L2がストアされる。さらに、ビット8〜ビッ
ト10には、それぞれBG面、OBJB面およびOBJ
A面の表示・非表示をセットするオンオフフラグがスト
アされる。オンオフフラグは、「1」の時に表示を表わ
し、「0」の時に非表示を表わす。
In the lower 5 bits from bit 0 to bit 4 of this object control register, register values S0 to S for designating the allocation form of the object type are designated.
4 is stored. Bit 5 to bit 7 include object A surface (OBJA surface) and object B surface (O
Register values L0 to L2 that define the screen priority order, which is the order in which the BJB surface) and the background surface (BG surface) are overlapped on display, are stored. Further, bits 8 to 10 have BG plane, OBJB plane and OBJ plane, respectively.
An on / off flag for setting display / non-display of the A side is stored. The on / off flag represents display when "1" and non-display when "0".

【0018】54はキャラジェネメモリであり、オブジ
ェクトOBJBを形成するキャラクタデータDOBJBが記
憶される。このメモリ54に格納されるキャラクタデー
タD OBJBは、縦方向8ドット、横方向8ドットからなる
セル単位で形成される。1セルを構成する各ドットに
は、1ビットのカラーコードが割り当てられ、それが
「0」の場合には透明コードとなる。55はCPU1の
指示に応じてDMA転送制御するDMAコントローラで
ある。DMAコントローラ55は、CPU1からのDM
A転送指示に応じて前述したROM2から転送対象デー
タ、つまり、バックグラウンド画像データDBG、キャラ
クタデータDOBJA、キャラクタデータDOBJBおよびOB
JA/OBJBコードのいずれかを、転送指定先となる
VRAM6,オブジェクトメモリ52あるいはキャラジ
ェネメモリ54のいずれかにブロック転送する。
Reference numeral 54 is a character generation memory,
Character data D forming the object OBJBOBJBIs written
Remembered. Character data stored in this memory 54
TA D OBJBConsists of 8 dots in the vertical direction and 8 dots in the horizontal direction
It is formed in cell units. For each dot that makes up one cell
Is assigned a 1-bit color code, which is
In the case of "0", the code is transparent. 55 of CPU1
With a DMA controller that controls DMA transfer according to instructions
is there. The DMA controller 55 is the DM from the CPU 1.
In response to the transfer instruction
That is, the background image data DBG,Character
Kuta data DOBJA, Character data DOBJBAnd OB
One of the JA / OBJB codes becomes the transfer destination
VRAM6, object memory 52 or character
Block transfer to one of the energy memories 54.

【0019】56はオブジェクトリードコントローラで
あり、ディスプレイ側の水平走査ライン位置に対応する
オブジェクト属性を前述したオブジェクトメモリ52か
ら読み出し、読み出したオブジェクト属性を、上述した
オブジェクトコントロールレジスタのレジスタ値S0〜
S4が指定するオブジェクト種類の割り当て形態に応じ
た順序にソートし、その結果を後述するスタックBメモ
リ58、スタックAメモリ57にストアする。したがっ
て、スタックAメモリ57およびスタックBメモリ58
では、それぞれ1水平走査期間において表示され得るオ
ブジェクト属性、つまり、OBJA/OBJBコードが
記憶されることになり、これらメモリ57,58に記憶
されるOBJAコード、OBJBコードは、後述するコ
ントローラ59,60によって表示順に読み出される。
An object read controller 56 reads the object attribute corresponding to the horizontal scanning line position on the display side from the above-mentioned object memory 52, and reads the read object attribute from the register values S0 to S0 of the above-mentioned object control register.
The objects are sorted in the order according to the allocation form of the object type designated by S4, and the result is stored in the stack B memory 58 and the stack A memory 57 described later. Therefore, stack A memory 57 and stack B memory 58
Then, each object attribute that can be displayed in one horizontal scanning period, that is, the OBJA / OBJB code is stored, and the OBJA code and the OBJB code stored in these memories 57 and 58 are the controllers 59 and 60 described later. Are read out in the order of display.

【0020】ラインバッファAコントローラ59は、上
記スタックAメモリ57において表示順に記憶されてい
るOBJAコードを順番に読み出し、当該OBJAコー
ド中に含まれるキャラクタネームに対応するキャラクタ
データDOBJAをVRAM6から読み出す。また、このコ
ントローラ59は、OBJAコード中に含まれるX座標
値を書込みアドレスとして、VRAM6から読み出した
キャラクタデータDOBJAをラインバッファA61に書込
む。ラインバッファA61に書込まれるキャラクタデー
タDOBJAには、OBJAコードから抽出したカラーブロ
ックが付与される。
The line buffer A controller 59 sequentially reads the OBJA codes stored in the stack A memory 57 in the display order, and reads the character data D OBJA corresponding to the character name included in the OBJA code from the VRAM 6. The controller 59 also writes the character data D OB J A read from the VRAM 6 in the line buffer A 61, using the X coordinate value included in the OBJA code as a write address. The color block extracted from the OBJA code is added to the character data D OBJA written in the line buffer A61.

【0021】ラインバッファBコントローラ60は、ス
タックBメモリ58において表示順に記憶されているO
BJBコードを順番に読み出し、当該OBJBコード中
に含まれるキャラクタネームに対応するキャラクタデー
タDOBJBをキャラジェネメモリ54から読み出してライ
ンバッファB62に書込む。この書込みの際には、OB
JBコード中のX座標値が書込みアドレスとして用いら
れる。また、ラインバッファB62に書込まれるキャラ
クタデータDOBJBには、OBJBコードから抽出したカ
ラーブロックが付与される。
The line buffer B controller 60 stores the O stored in the stack B memory 58 in display order.
The BJB code is read in order, the character data D OBJB corresponding to the character name included in the OBJB code is read from the character generation memory 54, and written in the line buffer B62. When writing this, OB
The X coordinate value in the JB code is used as the write address. Further, the color block extracted from the OBJB code is added to the character data D OBJB written in the line buffer B62.

【0022】ラインバッファA61、ラインバッファB
62には、それぞれ1水平走査ライン分のキャラクタデ
ータ(画像データ)を一時記憶するラインバッファメモ
リが複数ライン分設けられており、少なくとも、現在の
水平走査に同期して表示される走査ライン分のキャラク
タデータの他、次の水平走査に同期して表示される走査
ライン分のキャラクタデータをも一時記憶するように構
成されている。また、ラインバッファA61、ラインバ
ッファB62では、水平走査に同期してバッファメモリ
を交互に切換えてライン読み出し、あるいはライン書込
みするように上述したコントローラ59,60により制
御される。つまり、一方のバッファメモリからキャラク
タデータを読み出しながら、他方のバッファメモリにキ
ャラクタデータを書込む形式としている。
Line buffer A61, line buffer B
A plurality of line buffer memories for temporarily storing character data (image data) for one horizontal scanning line are provided in each of 62, and at least for the scanning lines displayed in synchronization with the current horizontal scanning. In addition to the character data, the character data for the scanning lines displayed in synchronization with the next horizontal scanning is also temporarily stored. Further, in the line buffer A61 and the line buffer B62, the above-described controllers 59 and 60 are controlled so as to alternately switch the buffer memories in synchronization with horizontal scanning to perform line reading or line writing. That is, the character data is read from one buffer memory while the character data is written in the other buffer memory.

【0023】バックグラウンド制御部 バックグラウンド制御部は、本発明の要旨に関わる構成
要件であり、前述したコントロールレジスタ53に含ま
れるバックグラウンドコントロールレジスタ群(後述す
る)と、BGデータリードコントローラ63と、BG用
ラインバッファ64とから構成される。BGデータリー
ドコントローラ63は、後述のバックグラウンドコント
ロールレジスタ群にセットされる各種表示制御データに
基づき、VRAM6に格納されているキャラクタデータ
BGA,DBGBをスクロール処理に応じて選択的に読み出
し、上記キャラクタデータDBGA,DBGBにて形成される
背景面BGAと背景面BGBとを分割表示させる。BG
データレジスタ64には、この分割表示に応じた背景面
BGA、あるいは背景面BGBを形成するキャラクタデ
ータDBGA,DBGBのいずれかが、少なくとも1水平走査
ライン分ストアされ、所定の水平同期タイミング下で読
み出されて後述の色変換部へ供給される。
Background Control Unit The background control unit is a constituent element relating to the gist of the present invention, and includes a background control register group (described later) included in the control register 53, a BG data read controller 63, and It is composed of a BG line buffer 64. The BG data read controller 63 selectively reads the character data D BGA and D BGB stored in the VRAM 6 in accordance with the scroll processing based on various display control data set in the background control register group described later, and The background surface BGA and the background surface BGB formed by the character data D BGA and D BGB are displayed separately. BG
The data register 64 stores at least one horizontal scanning line of either the background surface BGA corresponding to the divided display or the character data D BGA , D BGB forming the background surface BGB, and stored under a predetermined horizontal synchronization timing. Read out and supplied to the color conversion unit described later.

【0024】本発明では、複数の背景面を備えていて
も、このバックグラウンド制御部がこれら背景面を分割
して表示させ、常に唯一の背景面のみ画面表示する態様
としたから、1水平走査ライン当りに動画表示し得るオ
ブジェクト数を削減せずに処理速度の低下を回避してい
る。なお、背景面を分割表示するバックグラウンド制御
部の詳細な構成、データ内容および処理形態については
追って述べる。
According to the present invention, even if a plurality of background planes are provided, this background control unit divides and displays these background planes, and only one background plane is always displayed on the screen. A reduction in processing speed is avoided without reducing the number of objects that can be displayed as moving images per line. The detailed configuration, data content, and processing form of the background control unit that divides and displays the background surface will be described later.

【0025】色変換部/同期信号発生部 65は画面優先順位を付与する一方、優先順位が付与さ
れた各画面の画像データを色データ(RGBデータ)に
変換して出力するカラールックアップテーブル部であ
る。このテーブル部65では、先ず、上述したラインバ
ッファA61、ラインバッファB62およびBG用ライ
ンバッファ64から水平走査に同期して出力されて来る
各画像データ(キャラクタデータDOBJA、キャラクタデ
ータDOBJBおよびバックグラウンド画像データDBG)に
優先順位を付与する。画面の重なり順序を表わす優先順
位は、前述したオブジェクトコントロールレジスタ中の
レジスタ値L0〜L1に応じて定まる。
The color conversion section / synchronization signal generation section 65 gives a screen priority, and a color look-up table section for converting the image data of each screen to which the priority is given to color data (RGB data) and outputting it. Is. In the table section 65, first, the image data (character data D OBJA , character data D OBJB, and background) output from the above-described line buffer A61, line buffer B62, and BG line buffer 64 in synchronization with horizontal scanning. Priorities are given to the image data D BG ). The priority order indicating the order of overlapping the screens is determined according to the register values L0 to L1 in the object control register described above.

【0026】さらに、テーブル部65では、以上のよう
にして画面優先順位が付与された各画像データ(キャラ
クタデータDOBJA、キャラクタデータDOBJBおよびバッ
クグラウンド画像データDBG)に付加されているカラー
ブロックに従って対応するカラーバンクのルックアップ
テーブルLUTを選択し、選択したルックアップテーブ
ルLUTに基づきキャラクタデータDOBJA、キャラクタ
データDOBJBおよびバックグラウンド画像データDBG
色データ(RGBデータ)に変換して出力する。
Further, in the table section 65, the color blocks added to the respective image data (character data D OBJA , character data D OBJB and background image data D BG ) to which the screen priority has been assigned as described above. According to the above, the lookup table LUT of the corresponding color bank is selected, and based on the selected lookup table LUT, the character data D OBJA , the character data D OBJB, and the background image data D BG are converted into color data (RGB data) and output. To do.

【0027】次に、66はD/A変換器であり、上記カ
ラールックアップテーブル部65から出力される色デー
タ(RGBデータ)を各色RGB毎の色信号に変換して
出力する。なお、この各色信号は前述したエンコーダ7
において水平/垂直同期信号が重畳されてコンポジット
ビデオ信号となる。67は水晶発振子X’talの原振
クロックを逓倍発振して水平同期/垂直同期クロックを
発生し、これをVDP5内のオブジェクト制御部やバッ
クグラウンド制御部などの各部に供給する同期信号発生
部である。
Next, 66 is a D / A converter, which converts the color data (RGB data) output from the color look-up table unit 65 into color signals for each color RGB and outputs the color signals. It should be noted that these color signals are sent to the encoder 7 described above.
In, the horizontal / vertical sync signals are superimposed to form a composite video signal. Reference numeral 67 is a synchronization signal generation unit for multiplying and oscillating the original oscillation clock of the crystal oscillator X'tal to generate a horizontal synchronization / vertical synchronization clock, and supplying this to each unit such as an object control unit and a background control unit in the VDP 5. Is.

【0028】(3)バックグラウンド制御部の構成 ここでは、始めに前述したコントロールレジスタ53内
に設けられる各バックグラウンドコントロールレジスタ
の内容を説明した後、これらレジスタ群に格納される表
示制御データに基づき、スクロール処理に応じて複数の
背景面を分割表示するバックグラウンド制御部の構成に
ついて述べる。前述したコントロールレジスタ53に
は、バックグラウンド制御部の動作態様を定める各種の
表示制御データが格納されるバックグラウンドコントロ
ールレジスタ群が設けられている。このレジスタ群は、
レジスタCESBGA,レジスタSCRBGA,レジスタCG
ESBGA,レジスタCESBGB,レジスタDCRBGB,レ
ジスタCGESBGBおよびレジスタCESZBGAから構成
されており、以下、各レジスタ構成について順次説明し
て行く。
(3) Structure of Background Control Unit Here, the contents of the background control registers provided in the control register 53 will be described first, and then, based on the display control data stored in these register groups. The configuration of the background control unit that divides and displays a plurality of background planes according to scroll processing will be described. The control register 53 described above is provided with a background control register group that stores various display control data that determines the operation mode of the background control unit. This register group
Register CES BGA , Register SCR BGA , Register CG
It is composed of an ES BGA , a register CES BGB , a register DCR BGB , a register CGES BGB and a register CESZ BGA , and each register configuration will be sequentially described below.

【0029】まず、レジスタCESBGAは、VRAM6
に格納されるBGAコードの先頭アドレスを記憶するレ
ジスタである。BGAコードとは、背景面BGAを形成
するキャラクタデータDBGAの表示属性を表わす。ここ
で言う表示属性とは、カラーブロックおよびキャラクタ
ネーム(画像種類)を指定するデータである。このレジ
スタCESBGAは、図4に示すように、16ビット長の
レジスタエリアの上位8ビット(9SB〜MSB)にB
GAコード先頭アドレスA10〜A17が格納される。レジス
タSCRBGAは、背景面BGA上においてスクロールを
開始する位置の座標(X,Y)を記憶するレジスタであ
り、図5に図示するように、ワードW0〜W1の2ワー
ドで上記座標(X,Y)を表わす。すなわち、スクロー
ル開始X座標値はワードW0の下位11ビット(11S
B〜LSB)で表現され、一方、スクロール開始Y座標
値はワードW1の下位10ビット(10SB〜LSB)
で表現される。
First, the register CES BGA is the VRAM 6
It is a register for storing the start address of the BGA code stored in. The BGA code represents the display attribute of the character data D BGA forming the background surface BGA. The display attribute here is data that specifies a color block and a character name (image type). As shown in FIG. 4, this register CES BGA has B in the upper 8 bits (9SB to MSB) of the 16-bit length register area.
GA code start addresses A10 to A17 are stored. The register SCR BGA is a register for storing the coordinates (X, Y) of the position where scrolling is started on the background surface BGA, and as shown in FIG. 5, the coordinates (X, Y) are two words W0 to W1. Y). That is, the scroll start X coordinate value is the lower 11 bits (11S
B to LSB) while the scroll start Y coordinate value is the lower 10 bits (10SB to LSB) of the word W1.
It is expressed by.

【0030】レジスタCGESBGAは、VRAM6に格
納されるキャラクタデータDBGAの先頭アドレスを記憶
するレジスタであり、図6に示すように、16ビット長
のレジスタエリアの上位8ビット(9SB〜MSB)に
先頭アドレスA10〜A17が格納される。レジスタCES
BGBは、上記レジスタCESBGAと同様、VRAM6に格
納されるBGBコードの先頭アドレスを記憶するレジス
タである。BGBコードとは、背景面BGBを形成する
キャラクタデータDBGBの表示属性を表わすものであ
る。このレジスタCESBGAは、図7に示すように、1
6ビット長のレジスタエリアの上位8ビット(9SB〜
MSB)にBGBコード先頭アドレスA10〜A17が格納さ
れる。
The register CGES BGA is a register for storing the start address of the character data D BGA stored in the VRAM 6, and as shown in FIG. 6, in the upper 8 bits (9SB to MSB) of the 16-bit length register area. The start addresses A10 to A17 are stored. Register CES
The BGB is a register for storing the start address of the BGB code stored in the VRAM 6 as with the register CES BGA . The BGB code represents the display attribute of the character data D BGB forming the background surface BGB. This register CES BGA is set to 1 as shown in FIG.
Upper 8 bits of register area of 6-bit length (9SB ~
BGB code start addresses A10 to A17 are stored in MSB).

【0031】レジスタDCRBGBは、背景面BGAと背
景面BGBとを分割する位置の座標(X,Y)を記憶す
るレジスタである。このレジスタDCRBGBは、図8に
図示するように、X座標値をワードW0の下位11ビッ
ト(11SB〜LSB)で表わし、Y座標値をワードW
1の下位10ビット(10SB〜LSB)で表わす。レ
ジスタCGESBGBは、上述したレジスタCGESBGA
同様、VRAM6に格納されるキャラクタデータDBGB
の先頭アドレスを記憶するレジスタであり、図9に示す
ように、16ビット長のレジスタエリアの上位8ビット
(9SB〜MSB)に先頭アドレスA10〜A17が格納され
る。レジスタCESZBGAは、背景面BGAのサイズを
規定する表示制御データを一時記憶するものであり、図
10に図示するように、16ビット長のレジスタエリア
の下位2ビット(2SB、LSB)の値に応じてサイズ
設定する。
The register DCR BGB is a register that stores the coordinates (X, Y) of the position where the background surface BGA and the background surface BGB are divided. As shown in FIG. 8, this register DCR BGB represents the X coordinate value by the lower 11 bits (11SB to LSB) of the word W0 and the Y coordinate value by the word W.
It is represented by the lower 10 bits of 1 (10SB to LSB). The register CGES BGB , like the register CGES BGA described above, stores the character data D BGB stored in the VRAM 6.
9, which is a register for storing the start address of, the start addresses A10 to A17 are stored in the upper 8 bits (9SB to MSB) of the 16-bit length register area. The register CESZ BGA temporarily stores display control data that defines the size of the background surface BGA, and as shown in FIG. 10, stores the lower 2 bits (2SB, LSB) of the 16-bit length register area. Size accordingly.

【0032】次に、上述したレジスタCESBGA,SC
BGA,CGESBGA,CESBGB,DCRBGB,CGES
BGBおよびCESZBGAに格納される表示制御データと、
これに関連する用語について説明しておく。先ず、背景
面BGAとは、8ドット×8ドットの画素範囲を1セル
とした時、図11に示すように、横方向64セル×縦方
向32セルからなる1ブロックを基本単位とし、最大4
ブロック(ブロック0〜ブロック3)分の表示領域を持
ち得る。このような表示領域において、レジスタSCR
BGAに格納されるスクロール開始座標(X,Y)によっ
て、表示面DSPのスクロール位置、すなわち、当該表
示面DSPの左上隅が置かれるセルが指定される。表示
面DSPは、そのスクロール開始座標(X,Y)が指定
するセルの中央ドットから横(X)方向に最大336ド
ット、縦(Y)方向へ224ライン分の表示範囲を持
つ。この表示範囲が画面上に表示される。
Next, the above-mentioned registers CES BGA , SC
R BGA , CGES BGA , CES BGB , DCR BGB , CGES
Display control data stored in BGB and CESZ BGA ,
The terms related to this will be explained. First, when the pixel area of 8 dots × 8 dots is defined as one cell, the background surface BGA is, as shown in FIG. 11, one block consisting of 64 cells in the horizontal direction × 32 cells in the vertical direction as a basic unit, and a maximum of 4 blocks.
It may have a display area for blocks (block 0 to block 3). In such a display area, the register SCR
The scroll start coordinates (X, Y) stored in the BGA specify the scroll position of the display surface DSP, that is, the cell in which the upper left corner of the display surface DSP is placed. The display surface DSP has a display range of up to 336 dots in the horizontal (X) direction and 224 lines in the vertical (Y) direction from the center dot of the cell designated by the scroll start coordinates (X, Y). This display range is displayed on the screen.

【0033】背景面BGAを定義するBGAコードのフ
ォーマットを図12に示す。BGAコードは、各ドット
毎の表示色と画像種類とを表わす表示属性であり、全1
6ビット長の上位4ビットに表示色を表わすカラーブロ
ックが割り当てられ、その下位12ビットで画像の種類
を示すキャラクタネームが割り当てられる。そして、各
ドット毎のBGAコードは、ブロック順にアドレッシン
グされる。なお、図12に示すアドレスは、背景面BG
Aの原点(左上隅)からの相対アドレスを表わしてい
る。
FIG. 12 shows the format of the BGA code that defines the background surface BGA. The BGA code is a display attribute indicating the display color and image type for each dot, and all 1
A color block representing the display color is assigned to the upper 4 bits of the 6-bit length, and a character name indicating the type of image is assigned to the lower 12 bits. Then, the BGA code for each dot is addressed in block order. The address shown in FIG. 12 is the background surface BG.
It represents a relative address from the origin of A (upper left corner).

【0034】背景面BGAの大きさは、上述したレジス
タCESZBGAの下位2ビットに格納される表示制御デ
ータにより指定される。この表示制御データが「00」
の時には、図13(イ)に示す通り、横方向64セル、
縦方向32セルからなる1ブロックを上下左右2ブロッ
クづつ組合せ、ブロック0〜ブロック3からなる横
(X)方向128セル×縦(Y)方向64セルの表示領
域を形成する。また、表示制御データが「01」、「1
0」および「11」の場合、図13(ロ)〜(ニ)に図
示する表示領域になる。なお、本実施例の場合、以後の
説明では、背景面BGAはブロック0〜ブロック3から
なる横(X)方向128セル×縦(Y)方向64セルの
表示領域を持つものとする。
The size of the background surface BGA is specified by the display control data stored in the lower 2 bits of the above-mentioned register CESZ BGA . This display control data is "00"
At the time of, as shown in FIG.
One block consisting of 32 cells in the vertical direction is combined with two blocks in the vertical and horizontal directions to form a display area of 128 cells in the horizontal (X) direction × 64 cells in the vertical (Y) direction, which is composed of blocks 0 to 3. Further, the display control data is "01", "1".
In the case of "0" and "11", the display area is shown in FIGS. In the case of the present embodiment, in the following description, the background surface BGA has a display area of blocks 0 to 3 of 128 cells in the horizontal (X) direction × 64 cells in the vertical (Y) direction.

【0035】一方、背景面BGBは、8ドット×8ドッ
トの画素範囲を1セルとした時、図14に示すように、
横方向64セル、縦方向32セルからなる1ブロックを
最大表示領域とする。この表示領域の原点は、上述した
レジスタDCRBGBに格納される表示位置座標(X,
Y)により指定される。背景面BGBを定義するBGB
コードは、図15に図示する通り、1セル当り1ワード
16ビット長で表わされ、その上位4ビットにはカラー
ブロックが、下位12ビットにキャラクタネームがそれ
ぞれ割り当てられる。
On the other hand, when the background surface BGB has a pixel range of 8 dots × 8 dots as one cell, as shown in FIG.
One block consisting of 64 cells in the horizontal direction and 32 cells in the vertical direction is the maximum display area. The origin of the display area, the display position coordinates are stored in the aforementioned register DCR BGB (X,
Y). BGB that defines the background surface BGB
As shown in FIG. 15, the code is represented by one word 16 bits long per cell. A color block is assigned to the upper 4 bits and a character name is assigned to the lower 12 bits.

【0036】BGAコードにて定義される背景面BGA
と表示面DSPとは、図16に示す関係となる。すなわ
ち、表示面DSPの原点(左上隅)位置は、前述のレジ
スタSCRBGA(図5参照)に格納されるスクロール開
始位置座標(X,Y)にて規定され、その位置から上下
左右方向のスクロールに応じて表示面DSPが背景面B
GA上を移動する。背景面BGA上に表示面DSPが収
っていれば、表示面DSPに対応する部分の背景面BG
Aが画面表示される。表示面DSPが背景面BGAを外
れた場合、その外れた領域はバックドロップ面となり単
色表示される。
Background surface BGA defined by BGA code
And the display surface DSP have the relationship shown in FIG. That is, the origin (upper left corner) position of the display surface DSP is defined by the scroll start position coordinates (X, Y) stored in the above-mentioned register SCR BGA (see FIG. 5), and scrolls in the vertical and horizontal directions from that position. Depending on the display surface DSP is background surface B
Move on GA. If the display surface DSP fits on the background surface BGA, the background surface BG of the portion corresponding to the display surface DSP
A is displayed on the screen. When the display surface DSP deviates from the background surface BGA, the deviated area becomes a back drop surface and is displayed in a single color.

【0037】一方、背景面BGBでは、64セル×32
セルからなる1ブロック中で原点寄りの42セル×28
セルの領域が表示可能セルとして定義されている。した
がって、表示領域の原点を示すレジスタDCRBGBの表
示位置座標(X,Y)を書き換えることで、相対的に表
示面DSPを背景面BGB上でスクロールさせることが
可能になる。但し、その場合、表示位置座標(X,Y)
がX≧336,Y≧224になると、表示面外となり表
示不可となる。背景面BGAと背景面BGBとが重なり
合う領域に表示面DSPがスクロールした時には、図1
8に示すように、分割表示により背景面BGBのみが画
面表示される。また、表示面DSP内に背景面BGA,
BGBの両者から外れた領域が入った時、その領域はバ
ックドロップ面となり透明(単色)表示される。
On the other hand, on the background surface BGB, 64 cells × 32
42 cells near the origin in one block of cells x 28
The area of the cell is defined as a viewable cell. Therefore, by rewriting the display position coordinates (X, Y) of the register DCR BGB indicating the origin of the display area, the display surface DSP can be relatively scrolled on the background surface BGB. However, in that case, the display position coordinates (X, Y)
When X ≧ 336 and Y ≧ 224, the display is out of the display surface and the display cannot be performed. When the display surface DSP is scrolled to an area where the background surface BGA and the background surface BGB overlap each other, FIG.
As shown in FIG. 8, only the background surface BGB is displayed on the screen by the split display. In addition, the background surface BGA,
When an area outside both of BGB is entered, the area becomes a back drop surface and is displayed transparently (single color).

【0038】次に、再び図3に戻り、上述したレジスタ
CESBGA,SCRBGA,CGESBGA,CESBGB,DC
BGB,CGESBGBおよびCESZBGAの内容に応じて
背景面BGAと背景面BGBを分割表示するバックグラ
ウンド制御部の構成について説明する。BGコードリー
ドコントローラ63は、構成要素63a〜63dから形
成される。63aはBG用制御回路であり、上記各レジ
スタ群の内容に応じて各要素63b〜63d間のデータ
授受を制御する。63bはコードアドレス算出部であ
り、BGAコードアドレス発生回路63b−1、BGB
コードアドレス発生回路63b−2および選択回路63
b−3から構成される。BGAコードアドレス発生回路
63b−1およびBGBコードアドレス発生回路63b
−2は、BG用制御回路63aの指示に応じてVRAM
6側からBGAコード、あるいはBGBコードを読み出
す為の読み出しアドレスADCBGA,ADCBGBを算出す
る。
Next, back to FIG. 3 again, the above-mentioned register CES BGA, SCR BGA, CGES BG A, CES BGB, DC
The configuration of the background control unit that separately displays the background surface BGA and the background surface BGB according to the contents of R BGB , CGES BGB, and CESZ BGA will be described. The BG code read controller 63 is formed of the components 63a to 63d. Reference numeral 63a is a BG control circuit, which controls data exchange between the elements 63b to 63d according to the contents of the respective register groups. Reference numeral 63b is a code address calculation unit, which includes BGA code address generation circuits 63b-1 and BGB.
Code address generation circuit 63b-2 and selection circuit 63
b-3. BGA code address generation circuit 63b-1 and BGB code address generation circuit 63b
-2 is a VRAM in response to an instruction from the BG control circuit 63a.
Read addresses ADC BGA and ADC BGB for reading the BGA code or the BGB code from the 6 side are calculated.

【0039】すなわち、発生回路63b−1,63b−
2では、上記レジスタCESBGA、レジスタCESBGB
それぞれ格納されるBGAコードの先頭アドレス、BG
Bコードの先頭アドレスに、スクロール処理に対応した
セル位置を加味して読み出しアドレスADCBGA,AD
BGBを発生する。選択回路63b−3は、レジスタD
CRBGBに格納される背景面BGAと背景面BGBとの
分割表示位置に応じて上記アドレスADCBGA,ADC
BGBのいずれかを選択してVRAMインタフェース回路
51へ供給する。つまり、背景面BGA内でスクロール
中であれば、発生回路63b−1から出力されるアドレ
スADCBGAを選択し、一方、背景面BGB内であれ
ば、発生回路63b−2から出力されるADCBGBを選
択する。
That is, the generating circuits 63b-1, 63b-
2, the start address of the BGA code stored in the register CES BGA and the register CES BGB respectively, BG
Read address ADC BGA , AD in consideration of the cell position corresponding to the scroll processing to the start address of the B code
Generate C BGB . The selection circuit 63b-3 has a register D
The address ADC BGA , ADC depending on the division display position of the background surface BGA and the background surface BGB stored in CR BGB.
Either BGB is selected and supplied to the VRAM interface circuit 51. That is, if scrolling in the background surface BGA, the address ADC BGA output from the generating circuit 63b-1 is selected, while if in the background surface BGB, ADC BGB output from the generating circuit 63b-2. Select.

【0040】63cはキャラクタリードアドレス変換回
路であり、コードアドレス算出部63bが発生するコー
ド読み出しアドレスADCBGA,ADCBGBに応じてVR
AM6側から読み出されたBGAコード(あるいはBG
Bコード)に基づいて対応するキャラクタデータ
BGA,DBGBを読み出す為のキャラクタアドレスCA
BGA,CABGBを発生する。なお、VRAM6に設けられ
るバックグラウンド記憶エリアEBGは、図19に図示す
るように、背景面BGA,BGBを形成するキャラクタ
データDBGA,DBGBが共用されるように格納されるエリ
アE1と、BGAコードデータが記憶されるエリアE2
と、BGBコードデータが記憶されるエリアE3とに分
割されている。
Reference numeral 63c is a character read address conversion circuit, which is VR according to the code read addresses ADC BGA and ADC BGB generated by the code address calculation unit 63b.
BGA code (or BG) read from the AM6 side
A character address CA for reading the corresponding character data D BGA , D BGB based on the (B code)
BGA and CA BGB are generated. Incidentally, the background storage area E BG provided VRAM6, as shown in FIG. 19, the area background surface BGA, character data D BGA forming the BGB, is D B G B is stored as shared E1 And area E2 where BGA code data is stored
And an area E3 in which BGB code data is stored.

【0041】背景面BGA,BGBを形成するキャラク
タデータDBGA,DBGBは、図20に図示するように、縦
方向8ドット×横方向8ドットを1セル単位として形成
され、各ドットには4ビットのカラーコードが割り当て
られ、透明色を含む16色表示となる。1セル分のカラ
ーコードは、図21に示す通り、1ワードが16ビット
長のワードD0〜D15の都合16ワードで表現され
る。すなわち、1セル内のドットd00〜d03のカラ
ーコードがワードD0に格納され、次のドットd04〜
d07がワードD1に格納される。以後、各ドットd1
0〜d13,d14〜d17,…,d74〜d77が同
様にしてワードD1〜D15へ逐次格納される。したが
って、背景面BGA,BGBを形成するキャラクタデー
タDBGA,DBGBが共用されるように格納されるエリアE
1には、16ワード×4096セル分として65536
ワード分のキャラクタデータが格納されている。
As shown in FIG. 20, the character data D BGA and D BGB forming the background surfaces BGA and BGB are formed in a unit of 8 dots in the vertical direction × 8 dots in the horizontal direction, and each dot has 4 dots. A 16-color display including transparent colors is assigned by assigning a bit color code. As shown in FIG. 21, the color code for one cell is represented by 16 words, each word having a 16-bit length, that is, D0 to D15. That is, the color code of the dots d00 to d03 in one cell is stored in the word D0, and the next dot d04 to
d07 is stored in word D1. After that, each dot d1
0 to d13, d14 to d17, ..., d74 to d77 are sequentially stored in the words D1 to D15 in the same manner. Therefore, the area E in which the character data D BGA and D BGB forming the background surfaces BGA and BGB are stored so as to be shared
65536 as 16 words x 4096 cells in 1
Character data for words is stored.

【0042】次に、再び図3に戻り、バックグラウンド
制御部の構成について説明を進める。図3において、6
3dはラインバッファ書込み用制御回路である。この回
路63dは、上述したキャラクタリードアドレス変換回
路63cが発生するキャラクタアドレスCABGA,CA
BGBに応じてVRAM6のエリアE1(図19参照)か
ら読み出したキャラクタデータDBGA,DBGBを、水平同
期クロックに従って後段のBG用ラインバッファ64へ
書込む。63eはラインバッファ読み出し用制御回路で
あり、BG用ラインバッファ64に読み出し指示する。
Next, returning to FIG. 3 again, the structure of the background control section will be described. In FIG.
Reference numeral 3d is a line buffer write control circuit. This circuit 63d has a character address CA BGA , CA generated by the character read address conversion circuit 63c described above.
The character data D BGA , D BGB read from the area E1 (see FIG. 19) of the VRAM 6 in accordance with the BGB is written to the BG line buffer 64 in the subsequent stage according to the horizontal synchronization clock. Reference numeral 63e is a line buffer read control circuit, which instructs the BG line buffer 64 to read.

【0043】BG用ラインバッファ64は、少なくと
も、現在の水平走査に同期して上記制御回路63eの読
み出し指示に応じて1走査ライン分のキャラクタデータ
およびカラーブロックを出力するバッファメモリと、制
御回路63dの書込み指示に基づき次の水平走査に対応
するキャラクタデータおよびカラーブロックを一時記憶
するバッファメモリとを備え、一方のバッファメモリか
らキャラクタデータおよびカラーブロックを読み出しな
がら、他方のバッファメモリにキャラクタデータおよび
カラーブロックを書込むようになっている。このBG用
ラインバッファ64から出力されるキャラクタデータ
は、前述したカラールックアップテーブル部65に供給
されて色データ(RGBデータ)に変換される。
The BG line buffer 64 has at least a buffer memory which outputs character data and a color block for one scanning line in response to a read instruction from the control circuit 63e in synchronization with the current horizontal scanning, and a control circuit 63d. And a buffer memory for temporarily storing character data and color blocks corresponding to the next horizontal scanning based on the writing instruction of the above. While reading character data and color blocks from one buffer memory, character data and color blocks are read to the other buffer memory. It is designed to write blocks. The character data output from the BG line buffer 64 is supplied to the above-described color lookup table unit 65 and converted into color data (RGB data).

【0044】ここで、カラールックアップテーブル部6
5に設けられるルックアップテーブルLUTの一例を図
22に示す。この図に示すように、カラーブロック毎に
16色の色データ(出力カラーコード)がアサインされ
ており、色データはRGB各色4ビットの12ビット長
で構成されている。なお、このルックアップテーブルL
UTは、CPU1よりアクセス可能としており、CPU
アドレスとテーブル変換時の読み出しアドレスとを共用
しているため、所要のカラーブロックのルックアップテ
ーブルLUTを書き換えることも可能となっている。
Here, the color look-up table section 6
22 shows an example of the lookup table LUT provided in FIG. As shown in this figure, color data of 16 colors (output color code) is assigned to each color block, and the color data is composed of 12 bits of 4 bits for each color of RGB. Note that this lookup table L
UT is accessible from CPU1
Since the address and the read address at the time of table conversion are shared, it is possible to rewrite the look-up table LUT of a required color block.

【0045】B.実施例の動作 次に、本実施例の動作としてバックグラウンド制御部が
行う背景面の分割表示処理について説明する。なお、以
下に述べる動作は、背景面BGA,BGB上で表示面D
SPを移動させるスクロール処理に際してCPU1がレ
ジスタSCRBGAにスクロール開始位置座標(X,Y)
をセットするものとし、他のレジスタCESBGA,CG
ESBGA,CESBGB,DCRBGB,CGESBGBおよびC
ESZBGAについても、所定の表示制御データがCPU
1により書込まれるものとする。
B. Operation of Embodiment Next, as the operation of the present embodiment, the background display division display processing performed by the background control unit will be described. The operation described below is performed on the display surface D on the background surfaces BGA and BGB.
At the time of the scroll processing for moving the SP, the CPU 1 sets the scroll start position coordinate (X, Y) in the register SCR BGA.
Shall be set to other registers CES BGA , CG
ES BGA , CES BGB , DCR BGB , CGES BGB and C
Also for ESZ BGA , the predetermined display control data is CPU
It shall be written by 1.

【0046】このような状態において、スクロール処理
が指示されると、バックグラウンド制御部は、表示面D
SPの位置に対応した背景面を形成すべく、図23に示
す処理フローを実行する。以下、各ステップ毎のデータ
操作内容について述べる。 BGAコード読み出しアドレスの算出 ステップS1に進むと、バックグラウンド制御部は、処
理しようとする水平走査ライン上のセルに対応するBG
Aコードを読み出す為、BGAコード読み出しアドレス
ADCBGAを算出する。この読み出しアドレスADCBGA
は、前述したBGAコードアドレス発生回路63b−1
(図3参照)において算出される。BGAコード読み出
しアドレスADCBGAは、表示面DSP上において表示
処理しようとする水平走査ライン上のセル位置を、背景
面BGAのセル座標(CX BGA,CYBGA)として表わし
たものに他ならない。
In such a state, scroll processing
Is instructed, the background control unit causes the display surface D
In order to form the background surface corresponding to the position of SP, it is shown in FIG.
Execute the processing flow. Below, data for each step
The details of the operation will be described. Calculation of BGA code read address When the process proceeds to step S1, the background control unit performs processing.
BG corresponding to the cell on the horizontal scan line to be processed
BGA code read address for reading A code
ADCBGATo calculate. This read address ADCBGA
Is the BGA code address generation circuit 63b-1 described above.
(See FIG. 3). Read BGA code
Address ADCBGAIs displayed on the display surface DSP
The cell position on the horizontal scan line to be processed
Surface BGA cell coordinates (CX BGA, CYBGA)
It is nothing but a thing.

【0047】つまり、座標位置CYBGAは、表示面DS
P上で現在処理する水平走査ライン位置と、レジスタS
CRBGAのワードW1(図5参照)に格納されるスクロ
ール開始Y座標値とを加算し、その下位3ビットを除い
た後の下位6ビットで表わされる。下位3ビット分のビ
ットシフトを行うのは、1セルが8ドットで形成されて
いるから、その分をビットシフトしてセル単位の位置と
して表現する為である。こうしてビットシフトされた後
の下位6ビットのアドレスデータDYは、BGAコード
読み出しアドレスADCBGAの上位6ビットにアサイン
される。
That is, the coordinate position CY BGA is displayed on the display surface DS.
The horizontal scan line position currently processed on P and the register S
It is represented by the lower 6 bits after adding the scroll start Y coordinate value stored in the word W1 (see FIG. 5) of the CR BGA and removing the lower 3 bits. The reason why the lower 3 bits are bit-shifted is that one cell is formed by 8 dots, so that the bit shift is expressed as a cell unit position. The lower 6 bits of the address data DY thus bit-shifted are assigned to the upper 6 bits of the BGA code read address ADC BGA .

【0048】一方、座標位置CXBGAは、表示面DSP
上で現在処理するセルの横方向位置と、レジスタSCR
BGAのワードW0(図5参照)に格納されるスクロール
開始X座標値とを加算し、その下位3ビットを除いた後
の下位6ビットで表わされる。このビットシフトされた
後の下位6ビットのアドレスデータDXは、BGAコー
ド読み出しアドレスADCBGAの下位6ビットにアサイ
ンされる。したがって、BGAコード読み出しアドレス
ADCBGAは、上位6ビットにアサインされるアドレス
データDYと下位6ビットにアサインされるアドレスデ
ータDXから形成される。
On the other hand, the coordinate position CX BGA is the display surface DSP.
The horizontal position of the cell currently processed above and the register SCR
It is represented by the lower 6 bits after adding the scroll start X coordinate value stored in the word W0 (see FIG. 5) of the BGA and removing the lower 3 bits. The lower 6 bits of the address data DX after the bit shift is assigned to the lower 6 bits of the BGA code read address ADC BGA . Therefore, the BGA code read address ADC BGA is composed of the address data DY assigned to the upper 6 bits and the address data DX assigned to the lower 6 bits.

【0049】なお、本実施例では、背景面BGAを縦横
2×2ブロックのサイズとしている為、表示面DSP上
で現在処理する水平走査ライン位置とレジスタSCR
BGAのスクロール開始Y座標値との加算値の上位2ビッ
ト(MSB,9SB)が「00」以外の場合、スクロー
ルにより背景面BGAを外れたと見做して透明フラグ
「1」をセットする。同様に、表示面DSP上で現在処
理するセルの横方向位置とレジスタSCRBGAのスクロ
ール開始X座標値との加算値の上位2ビット(MSB,
10SB)が「00」以外の場合、スクロールにより背
景面BGAを外れたと見做し、アドレスデータDXのM
SBに透明フラグ「1」をセットする。
In this embodiment, since the background surface BGA has a size of 2 × 2 blocks in the vertical and horizontal directions, the horizontal scanning line position currently processed on the display surface DSP and the register SCR.
When the upper 2 bits (MSB, 9SB) of the added value of the BGA scroll start Y coordinate value is other than "00", the transparent flag "1" is set on the assumption that the background surface BGA has been removed by scrolling. Similarly, the upper two bits of the sum of the scroll starting X-coordinate values of the lateral position and register SCR BG A cell currently processed on the display screen DSP (MSB,
10SB) is other than "00", it is considered that the background surface BGA is off by scrolling, and M of the address data DX
The transparent flag "1" is set in SB.

【0050】BGBコード読み出しアドレスの算出 こうしてBGAコード読み出しアドレスADCBGAが生
成されると、バックグラウンド制御部はステップS2
(図23参照)に進み、BGBコード読み出しアドレス
ADCBGBを算出する。この読み出しアドレスADCBGB
は、前述したBGBコードアドレス発生回路63b−2
(図3参照)において算出される。BGBコード読み出
しアドレスADCBGBは、表示面DSP上において表示
処理しようとする水平走査ライン上のセル位置を、背景
面BGBのセル座標(CX BGB,CYBGB)で表現するも
のである。なお、背景面BGBは1ブロックサイズであ
る。
Calculation of BGB code read address ADC BGA code read address ADCBGARaw
If it is done, the background control unit performs step S2.
(See FIG. 23), and read BGB code read address
ADCBGBTo calculate. This read address ADCBGB
Is the BGB code address generation circuit 63b-2 described above.
(See FIG. 3). Read BGB code
Address ADCBGBIs displayed on the display surface DSP
The cell position on the horizontal scan line to be processed
Cell coordinates of surface BGB (CX BGB, CYBGB)
Of. The background surface BGB has a size of 1 block.
You.

【0051】座標位置CYBGBは、表示面DSP上で現
在処理する水平走査ライン位置からレジスタDCRBGB
のワードW1(図8参照)に格納されるY座標値を減算
し、その下位3ビットを除いた後の下位5ビットで表わ
される。3ビットシフトされた後の下位5ビットのアド
レスデータDYは、BGBコード読み出しアドレスAD
BGBの上位5ビットにアサインされる。これに対し、
座標位置CXBGBでは、横方向の表示サイズが最大33
6ドットであり、これを8ドット幅のセル単位として扱
う為、「0〜43」をセル番号としており、これに対応
して表示面DSP上で現在処理する横方向位置からレジ
スタDCRBGBのワードW0(図8参照)に格納される
X座標値+9を減算する。この全9ビット長の減算結果
から下位3ビットを除いた後の下位6ビットがアドレス
データDXとなり、BGBコード読み出しアドレスAD
BGBの下位6ビットにアサインされる。したがって、
BGBコード読み出しアドレスADCBGBは、上位6ビ
ットにアサインされるアドレスデータDYと下位6ビッ
トにアサインされるアドレスデータDXから形成され
る。
The coordinate position CY BGB is set from the horizontal scan line position currently processed on the display surface DSP to the register DCR BGB.
It is represented by the lower 5 bits after subtracting the Y coordinate value stored in the word W1 (see FIG. 8) and removing the lower 3 bits. The lower 5 bits of the address data DY after being shifted by 3 bits are the BGB code read address AD.
Assigned to the upper 5 bits of C BGB . In contrast,
At the coordinate position CX BGB , the maximum display size in the horizontal direction is 33.
Since it is 6 dots and it is handled as a cell unit of 8 dot width, "0-43" is used as the cell number. Corresponding to this, the word in the register DCR BGB from the horizontal position currently processed on the display surface DSP. The X coordinate value +9 stored in W0 (see FIG. 8) is subtracted. The lower 6 bits after subtracting the lower 3 bits from the subtraction result of the total 9-bit length become the address data DX, and the BGB code read address AD
Assigned to the lower 6 bits of C BGB . Therefore,
The BGB code read address ADC BGB is composed of address data DY assigned to the upper 6 bits and address data DX assigned to the lower 6 bits.

【0052】BGAコード/BGBコードの選択 BGAコード読み出しアドレスADCBGAと、BGBコ
ード読み出しアドレスADCBGBとが生成されると、バ
ックグラウンド制御部はステップS3に処理を進め、背
景面BGA,BGBのいずか一方のみを画面表示するた
め、上記アドレスADCBGA,ADCBGBのいずれかを選
択する。このアドレス選択処理は、前述した選択回路6
3b−3により実行されるものであって、表示面DSP
上で現在処理する水平走査ライン上のセル位置(CSX,
CSY)が背景面BGA上であれば、BGAコードを読
み出す為のアドレスADCBGA側を選択し、背景面BG
B上であれば、BGBコードを読み出す為のアドレスA
DCBGB側を選択する。
Selection of BGA code / BGB code When the BGA code read address ADC BGA and the BGB code read address ADC BGB are generated, the background control unit advances the processing to step S3 to determine whether the background surfaces BGA and BGB are present. Since only one of them is displayed on the screen, one of the above addresses ADC BGA and ADC BGB is selected. This address selection process is performed by the selection circuit 6 described above.
3b-3 executed by the display surface DSP
The cell position (CS X ,
If CS Y) is an on background surface BGA, select the address ADC BGA side for reading the BGA code, background plane BG
If it is on B, the address A for reading the BGB code
Select the DC BGB side.

【0053】すなわち、ステップS3にあっては、ま
ず、レジスタDCRBGBのワードW1(図8参照)に格
納されるY座標値からセルY座標値CSYを減算した値
をC、レジスタDCRBGBのワードW0に格納されるX
座標値に8ドット分加算した値からセルY座標値CSX
を減算した値をDとした時、C≦0かつD<0であるか
否か、つまり、現在処理中のセル番号−1のセル領域に
背景面BGBが入っているかどうかを判断する。ここ
で、C≦0かつD<0であれば、現在処理中のセル番号
−1のセル領域が背景面BGBであるから、BGBコー
ド読み出しアドレスADCBGB側を選択し、一方、そう
でない時にはBGAコードを読み出す為のアドレスAD
BGA側を選択する。
That is, in step S3, first, the value obtained by subtracting the cell Y coordinate value CS Y from the Y coordinate value stored in the word W1 (see FIG. 8) of the register DCR BGB is stored in the register DCR BGB . X stored in word W0
From the value obtained by adding 8 dots to the coordinate value, the cell Y coordinate value CS X
When the value obtained by subtracting is D, it is determined whether or not C ≦ 0 and D <0, that is, whether or not the background area BGB is included in the cell area of the cell number −1 currently being processed. Here, if C ≦ 0 and D <0, the cell area of the cell number −1 currently being processed is the background surface BGB, so the BGB code read address ADC BGB side is selected. Address AD to read the code
C Select the BGA side.

【0054】そして、アドレスADCBGA側が選択され
た時には、このBGAコード読み出しアドレスADC
BGAに、レジスタCESBGA(図4参照)に格納されるB
GAコードエリアスタートアドレス値を加算したオフセ
ットアドレスに応じてVRAM6の記憶エリアE2(図
19参照)からBGAコードデータを読み出す。一方、
アドレスADCBGB側が選択された時には、BGBコー
ド読み出しアドレスADCBGBに、レジスタCES
BGB(図7参照)に格納されるBGBコードエリアスタ
ートアドレス値を加算したオフセットアドレスに応じて
VRAM6の記憶エリアE3(図19参照)からBGB
コードデータを読み出す。
When the address ADC BGA side is selected, this BGA code read address ADC
The BGA, B stored in the register CES BGA (see FIG. 4)
BGA code data is read from the storage area E2 (see FIG. 19) of the VRAM 6 according to the offset address obtained by adding the GA code area start address value. on the other hand,
When the address ADC BGB side is selected, the register CES is set to the BGB code read address ADC BGB.
From the storage area E3 (see FIG. 19) of the VRAM 6 to the BGB according to the offset address obtained by adding the BGB code area start address value stored in the BGB (see FIG. 7).
Read the code data.

【0055】キャラクタアドレスの算出 次に、ステップS4に進むと、バックグラウンド制御部
は、スクロール位置に対応した背景面BGA,BGBの
コードデータをVRAM6から読み出し、読み出したコ
ードデータに基づいて背景面を形成するキャラクタデー
タDBGA,DBGBをVRAM6から読み出すためのキャラ
クタアドレスCABGAを算出する。BGAコードをキャ
ラクタアドレスCABGAに変換するには、図12に図示
したBGAコードの下位12ビットに含まれるキャラク
タネームを、キャラクタアドレスCABGAの上位12ビ
ットに置換すると共に、レジスタSCRBGAのワードW
1(図5参照)に格納される10ビット長のスクロール
開始Y座標値の内、その下位3ビットをキャラクタアド
レスCABGAの2SB〜4SBに割り付ける。さらに、
そのアドレスCABGAのLSBに「0」を付与した16
ビット1ワードのアドレスCABGA0と、LSBに
「1」を付与した16ビット1ワードのアドレスCA
BGA1とを生成する。
Calculation of Character Address Next, in step S4, the background control unit reads the code data of the background surfaces BGA and BGB corresponding to the scroll position from the VRAM 6, and the background surface is read based on the read code data. A character address CA BGA for reading the character data D BGA and D BGB to be formed from the VRAM 6 is calculated. To convert the BGA code into the character address CA BGA , the character name included in the lower 12 bits of the BGA code shown in FIG. 12 is replaced with the upper 12 bits of the character address CA BGA , and the word W of the register SCR BGA is converted.
Of the 10-bit length scroll start Y coordinate value stored in 1 (see FIG. 5), the lower 3 bits are allocated to 2SB to 4SB of the character address CA BGA . further,
"0" is added to the LSB of the address CA BGA 16
1-bit bit address CA BGA 0 and 16-bit 1-word address CA with "1" added to LSB
BGA 1 and are generated.

【0056】そして、上記2ワードのアドレスCABGA
0,CABGA1を時分割にVRAM6に与えることで同
メモリ上のロウ/コラム位置が指定され、これによりV
RAM6から対応するキャラクタデータDBGAが読み出
される。なお、本実施例の場合には、図19に示す通
り、VRAM6においてキャラクタデータが「0000
H」からアドレッシングされている為、アドレスオフセ
ットする必要はないが、オフセットされたアドレス位置
にキャラクタデータがマッピングされている時には、ア
ドレスCABGA0,アドレスCABGA1に対して前述した
レジスタCGESBGA(図6参照)に格納されるキャラ
ジェネエリアスタートアドレスを加算する必要がある。
Then, the two-word address CA BGA
By giving 0, CA BGA 1 to VRAM 6 in a time-sharing manner, the row / column position on the same memory is specified, whereby V
The corresponding character data D BGA is read from the RAM 6. In the case of the present embodiment, as shown in FIG. 19, the character data is "0000" in the VRAM6.
Since it is addressed from "H", it is not necessary to perform the address offset, but when the character data is mapped to the offset address position, the register CGES BGA (for the address CA BGA 0 and the address CA BGA 1 is described above). It is necessary to add the character generation area start address stored in (see FIG. 6).

【0057】一方、BGBコードをキャラクタアドレス
CABGBに変換するには、図15に図示したBGBコー
ドの下位12ビットに格納されるキャラクタネームを、
キャラクタアドレスCABGBの上位12ビットに置換す
る。表示面DSP上で現在処理する水平走査ライン位置
からレジスタDCRBGBのワードW1(図8参照)に格
納されるY座標値を減算し、その減算結果の下位3ビッ
トをキャラクタアドレスCABGBの2SB〜4SBに割
り付ける。さらに、そのアドレスCABGBのLSBに
「0」を付与した16ビット1ワードのアドレスCA
BGB0と、LSBに「1」を付与した16ビット1ワー
ドのアドレスCABGB1とを生成する。
On the other hand, in order to convert the BGB code into the character address CA BGB , the character name stored in the lower 12 bits of the BGB code shown in FIG.
The upper 12 bits of the character address CA BGB are replaced. The Y coordinate value stored in the word W1 (see FIG. 8) of the register DCR BGB is subtracted from the horizontal scanning line position currently processed on the display surface DSP, and the lower 3 bits of the subtraction result are 2SB to the character address CA BGB . Allocate to 4SB. Further, a 16-bit 1-word address CA in which "0" is added to the LSB of the address CA BGB
BGB 0 and 16-bit 1-word address CA BGB 1 in which “1” is added to LSB are generated.

【0058】そして、これら2ワードのアドレスCA
BGB0,CABGB1を順次時分割にVRAM6に与えて対
応するキャラクタデータDBGBを読み出す。なお、VR
AM6におけるマッピングの都合上、キャラクタデータ
がオフセットアドレッシングされている時には、アドレ
スCABGB0,アドレスCABGB1に対して前述したレジ
スタCGESBGB(図9参照)に格納されるキャラジェ
ネエリアスタートアドレスを加算する。
The address CA of these two words
BGB 0 and CA BGB 1 are sequentially applied to the VRAM 6 in a time division manner to read the corresponding character data D BGB . Note that VR
For the convenience of mapping in AM6, when character data is offset-addressed, the character generation area start address stored in the above-mentioned register CGES BGB (see FIG. 9) is added to address CA BGB 0 and address CA BGB 1. To do.

【0059】BG用ラインバッファへの書込み 以上のようにして得られたキャラクタアドレスC
BGA,CABGBに応じてVRAM6よりキャラクタデー
タが読み出されると、バックグラウンド制御部はステッ
プS5に進み、BG用ラインバッファ64にカラーブロ
ックとキャラクタデータとをセットする。BG用ライン
バッファ64は、少なくとも1水平走査ライン分のキャ
ラクタデータが書込まれるキャラクタバッファ領域を備
えている。本実施例の場合、キャラクタバッファ領域を
4ビット長×352ドットとしている。この領域に背景
面BGAを形成するキャラクタデータDBGAを書込む場
合、表示面DSP上で現在処理する水平走査ライン上の
セル位置(0〜43)を上位6ビットで表わし、該当セ
ル内でのドット位置を下位3ビットで表わしてなる書込
みアドレスに従いライン書込みがなされる。
Writing to BG line buffer Character address C obtained as described above
When the character data is read from the VRAM 6 according to A BGA and CA BGB , the background control unit proceeds to step S5 and sets the color block and the character data in the BG line buffer 64. The BG line buffer 64 has a character buffer area in which character data for at least one horizontal scanning line is written. In the case of this embodiment, the character buffer area has a length of 4 bits × 352 dots. When the character data D BGA forming the background surface BGA is written in this area, the cell position (0 to 43) on the horizontal scanning line currently processed on the display surface DSP is represented by the upper 6 bits, and within the corresponding cell. Line writing is performed according to a write address in which the dot position is represented by the lower 3 bits.

【0060】また、カラーブロックは、BG用ラインバ
ッファ64中のカラーブロックバッファ領域に書込まれ
る。本実施例ではカラーブロックバッファ領域を4ビッ
ト長×44ラインとしている。この領域への書込みアド
レスは水平走査ライン上のセル位置(0〜43)を上位
6ビットで表わしたものとなる。なお、表示面DSP上
で現在処理する水平走査ライン上のセル位置が背景面B
GAを外れた時には、読み出したキャラクタデータD
BGA、カラーブロックに拘わらず、透明表示の為のデー
タがバッファセットされる。
The color block is written in the color block buffer area in the BG line buffer 64. In this embodiment, the color block buffer area has a 4-bit length × 44 lines. The write address to this area is the cell position (0 to 43) on the horizontal scanning line represented by the upper 6 bits. The cell position on the horizontal scanning line currently processed on the display surface DSP is the background surface B.
The character data D that was read when the value was out of GA
Data for transparent display is buffer-set regardless of BGA and color block.

【0061】一方、キャラクタデータDBGBをキャラク
タバッファ領域に書込む場合には、全12ビット長の書
込みアドレスを用いる。この書込みアドレスの上位6ビ
ット(MSB〜7SB)が表示面DSP上で現在処理す
る水平走査ライン上のセル位置(0〜43)を表わす。
続く6SB〜4SBは、レジスタDCRBGBのワードW
1(図8参照)に格納されるY座標値の下位3ビットに
相当する。3SB〜LSBは、該当セル内でのドット位
置を表わす。カラーブロックは、水平走査ライン上のセ
ル位置(0〜43)を上位6ビットで表わした書込みア
ドレスに従ってBG用ラインバッファ64中のカラーブ
ロックバッファ領域に書込まれる。
On the other hand, when writing the character data D BGB in the character buffer area, a write address having a total length of 12 bits is used. The upper 6 bits (MSB to 7SB) of this write address represent the cell position (0 to 43) on the horizontal scanning line currently processed on the display surface DSP.
The following 6SB to 4SB are word W of register DCR BGB .
1 (see FIG. 8) corresponds to the lower 3 bits of the Y coordinate value. 3SB to LSB represent dot positions in the corresponding cell. The color block is written in the color block buffer area in the BG line buffer 64 according to the write address in which the cell position (0 to 43) on the horizontal scanning line is represented by the upper 6 bits.

【0062】BG用ラインバッファ64からの読み出
し 次に、ステップS6に進むと、バックグラウンド制御部
はラインバッファ読み出し用制御回路63eの指示に応
じてBG用ラインバッファ64に書込まれたキャラクタ
データおよびカラーブロックを読み出す。さて、ライン
バッファ読み出し用制御回路63eでは、画面表示タイ
ミングに同期してラインバッファ64を読み出す為のカ
ウンタ出力を発生するベースカウンタBCN1を備えて
いる。
Readout from BG line buffer 64 Next, in step S6, the background control section receives the character data and the character data written in the BG line buffer 64 in response to an instruction from the line buffer read control circuit 63e. Read a color block. The line buffer read control circuit 63e includes a base counter BCN1 that generates a counter output for reading the line buffer 64 in synchronization with the screen display timing.

【0063】このベースカウンタBCN1から出力され
る9ビット長のカウンタ値に、レジスタSCRBGA(図
5参照)のワードW0の下位3ビット値を加算してなる
読み出しアドレスを発生し、これに応じてラインバッフ
ァ64から背景面BGAのキャラクタデータDBGAを読
み出す。カラーブロックは、水平走査ライン上のセル位
置(0〜43)を上位6ビットで表わしてなる読み出し
アドレスに従って読み出される。
A read address is generated by adding the lower 3-bit value of the word W0 of the register SCR BGA (see FIG. 5) to the counter value of 9-bit length output from the base counter BCN1, and in response thereto. The character data D BGA of the background surface BGA is read from the line buffer 64. The color block is read out according to a read address in which cell positions (0 to 43) on the horizontal scanning line are represented by upper 6 bits.

【0064】一方、背景面BGBのキャラクタデータD
BGBを読み出す場合には、ベースカウンタBCN1から
出力される9ビット長のカウンタ値の内の下位3ビット
を無効とした値に対して、レジスタDCRBGBのワード
W0(図8参照)下位3ビットと「16」とを加算した
値と、水平同期カウンタ値をカウントするカウンタの出
力の下位3ビットの値とをそれぞれ加算した全9ビット
長の読み出しアドレスを生成して用いる。これに対応す
るカラーブロックは、水平走査ライン上のセル位置(0
〜43)を上位6ビットで表わしてなる読み出しアドレ
スに従って読み出される。
On the other hand, the character data D of the background surface BGB
When reading BGB , the lower 3 bits of the 9-bit length counter value output from the base counter BCN1 are invalidated, and the lower 3 bits of the word W0 (see FIG. 8) of the register DCR BGB are read. A total 9-bit read address is generated and used by adding the value obtained by adding "16" and the value of the lower 3 bits of the output of the counter that counts the horizontal synchronization counter value. The color block corresponding to this corresponds to the cell position (0
To 43) are read according to the read address represented by the upper 6 bits.

【0065】以上のようにして背景面毎のキャラクタデ
ータおよびカラーブロックがBG用ラインバッファ64
から読み出される訳であるが、スクロール位置に応じて
背景面を切替えて背景を分割表示させるには、上述した
読み出しアドレスの算出アルゴリズムも切替える必要が
ある。以下では、その切替えを判定する動作について言
及する。最初に、水平走査ライン位置に応じて切替えを
判定する。すなわち、レジスタDCRBGBのワードW1
(図8参照)に格納されるY座標値から現在処理する水
平走査ライン位置を減算し、その結果が0以下であるか
否か、つまり、現在処理している水平走査ラインが背景
面BGB上に存在しているか否かを判断する。次に、水
平走査ライン上のセル位置に応じて切替えを判定する。
前述したカウンタBCN1のカウンタ値からレジスタD
CRBGBのワードW0(図8参照)に格納されるX座標
値を減算し、その結果が0以上であるか否か、つまり、
現在処理している水平走査ライン上のセルが背景面BG
B上に存在しているか否かを判断する。
As described above, the character data and the color block for each background are stored in the BG line buffer 64.
However, in order to switch the background surface in accordance with the scroll position and display the background in a divided manner, it is necessary to switch the read address calculation algorithm described above. The operation of determining the switching will be described below. First, switching is determined according to the horizontal scanning line position. That is, word W1 of register DCR BGB
The horizontal scanning line position currently processed is subtracted from the Y coordinate value stored in (see FIG. 8), and whether the result is 0 or less, that is, the horizontal scanning line currently processed is on the background surface BGB. To determine if it exists. Next, switching is determined according to the cell position on the horizontal scanning line.
From the counter value of the counter BCN1 described above to the register D
The X coordinate value stored in the word W0 of CR BGB (see FIG. 8) is subtracted, and whether or not the result is 0 or more, that is,
The cell on the horizontal scanning line currently being processed is the background surface BG.
It is determined whether or not it exists on B.

【0066】そして、上記2つの判定条件をいずれも満
足する時にのみ、背景面BGBに対応する読み出しアド
レスを発生し、それ以外の場合には、背景面BGAに対
応する読み出しアドレスを発生する。この結果、スクロ
ール処理に応じて背景面を切替えて背景を分割表示させ
ることが可能となり、常に唯一の背景面のみ表示面DS
P上に画面表示する態様となるから、1水平走査ライン
当りに動画表示し得るオブジェクト数を削減する必要が
なくなる訳である。
Then, the read address corresponding to the background surface BGB is generated only when both of the above two determination conditions are satisfied, and in the other cases, the read address corresponding to the background surface BGA is generated. As a result, it becomes possible to switch the background surface in accordance with the scroll processing and display the background in a divided manner, and always display only the background surface on the display surface DS.
Since the screen is displayed on P, it is not necessary to reduce the number of objects that can be displayed as a moving image per horizontal scanning line.

【0067】色信号の作成 次いで、ステップS7(図23)に進むと、バックグラ
ウンド制御部は、以上のようにしてBG用ラインバッフ
ァ64から読み出したキャラクタデータDBGA,DBGB
カラーブロックとをカラールックアップテーブル部65
に供給する。テーブル部65では、キャラクタデータD
BGA,DBGBに対応するカラーブロックのカラールックア
ップテーブル(図22参照)を選択し、そのテーブルに
基づき出力カラーコード(RGBデータ:色信号)に変
換される。なお、キャラクタデータDBGA,DBGBおよび
カラーブロックが透明データとされていた場合には、単
色面(バックドロップ面)の色が表示される。
Generation of Color Signal Next, in step S7 (FIG. 23), the background control unit stores the character data D BGA , D BGB and the color block read from the BG line buffer 64 as described above. Color lookup table section 65
To supply. In the table portion 65, the character data D
A color look-up table (see FIG. 22) of color blocks corresponding to BGA and D BGB is selected, and an output color code (RGB data: color signal) is converted based on the table. If the character data D BGA , D BGB and the color block are transparent data, the color of the monochromatic surface (backdrop surface) is displayed.

【0068】次に、バックグラウンド制御部において処
理される上記〜項の処理タイミングについて図24
を参照して説明する。まず、VDP5が時刻t0におい
て水平走査ラインn−1のRGB出力を発生している
時、バックグラウンド制御部では、BGAコードアドレ
ス発生回路63b−1とBGBコードアドレス発生回路
63b−2とがそれぞれ水平走査ラインn+2に対応す
るBGAコード/BGBコード読み出しアドレスADC
BGA,ADCBGBを算出する一方、選択回路63b−3が
スクロール位置に応じてBGA/BGBコード読み出し
アドレスADCBGA,ADCBGBのいずれかを選択して出
力する。
Next, with respect to the processing timings of the above items to be processed in the background control section, FIG.
This will be described with reference to FIG. First, when the VDP 5 is generating the RGB output of the horizontal scanning line n-1 at time t 0 , the BGA code address generating circuit 63b-1 and the BGB code address generating circuit 63b-2 are respectively in the background control section. BGA code / BGB code read address ADC corresponding to horizontal scanning line n + 2
While calculating BGA and ADC BGB , the selection circuit 63b-3 selects and outputs either BGA / BGB code read address ADC BGA or ADC BGB according to the scroll position.

【0069】次に、アドレス算出が完了すると、キャラ
クタリードアドレス変換回路63cは、上記アドレスA
DCBGA,ADCBGBに応じてVRAM6側から読み出し
出力されるBGAコードあるいはBGBコードを取り込
み、水平走査ラインn+2を形成するキャラクタデータ
BGA,DBGBを読み出す為のキャラクタアドレスCA B
GA,CBGBを生成する。そして、この後、ラインバッフ
ァ書込用制御回路63dでは、キャラクタアドレスCA
BGA,CBGBに応じてVRAM6から読み出した水平走査
ラインn+2を形成するキャラクタデータDBGA,DBGB
およびこれに対応するカラーブロックをBG用ラインバ
ッファ64へ書込む。
Next, when the address calculation is completed, the character
The cue read address conversion circuit 63c uses the address A
DCBGA, ADCBGBRead from VRAM6 side according to
Import the output BGA code or BGB code
Character data forming the horizontal scan line n + 2
DBGA, DBGBCharacter address CA for reading B
GA, CBGBGenerate And after this, the line buff
In the write control circuit 63d, the character address CA
BGA, CBGBHorizontal scanning read from the VRAM 6 according to
Character data D forming line n + 2BGA, DBGB
And the corresponding color block to the BG line bar.
Write to the buffer 64.

【0070】ラインバッファ書込用制御回路63dがキ
ャラクタデータDBGA,DBGBに対応するカラーブロック
をBG用ラインバッファ64へ書込んでいる最中では、
ラインバッファ読み出し用制御回路63eによってBG
用ラインバッファ64から現在の走査ラインnのキャラ
クタデータDBGA,DBGBおよびこれに対応するカラーブ
ロックが順次読み出され、これが水平同期クロックに同
期してRGBデータに変換され画面表示される。
While the line buffer write control circuit 63d is writing the color block corresponding to the character data D BGA and D BGB to the BG line buffer 64,
BG is controlled by the line buffer read control circuit 63e.
The character data D BGA , D BGB of the current scanning line n and the color block corresponding to the character data are sequentially read from the line buffer 64, and are converted into RGB data in synchronization with the horizontal synchronizing clock and displayed on the screen.

【0071】このような処理において、背景面BGA内
でスクロール処理を行うと、例えば、図25に示すよう
に、表示面DSPに収る背景面BGAはそのまま背景像
として表示され、背景面BGAを外れた領域が透明(単
色)のバックドロップ面として表示される。さらに、図
26に図示するように、背景面BGAに一部重なるよう
に背景面BGBを配置した時には、背景面BGAと背景
面BGBとを分割して表示する形態となる。つまり、表
示面DSP上で背景面BGAと背景面BGBとが存在し
ても、これら両背景面を重ねて画面表示するのではな
く、設定された領域で分割表示されるようになってい
る。
In such processing, if scroll processing is performed within the background surface BGA, for example, as shown in FIG. 25, the background surface BGA that fits on the display surface DSP is displayed as it is as a background image, and the background surface BGA is displayed. The deviated area is displayed as a transparent (monochromatic) background surface. Further, as shown in FIG. 26, when the background surface BGB is arranged so as to partially overlap the background surface BGA, the background surface BGA and the background surface BGB are divided and displayed. That is, even if the background surface BGA and the background surface BGB exist on the display surface DSP, the background surfaces BGA and BGB are not overlapped and displayed on the screen, but are divided and displayed in a set area.

【0072】C.変形例 上述した実施例では、キャラクタバッファ領域が4ビッ
ト長×352ドット、カラーブロック領域が4ビット長
×44ラインとなる時の書込みアドレス生成について開
示したが、この変形例では、キャラクタバッファ領域を
4ビット長×64ビット、カラーブロック領域を4ビッ
ト長×8ラインとした時においても、実施例と同様に
「BG用ラインバッファ64への書込み」および「BG
用ラインバッファ64からの読み出し」が可能なことを
説明する。
C. Modified Example In the above-described embodiment, the write address generation when the character buffer area has a 4-bit length × 352 dots and the color block area has a 4-bit length × 44 lines has been disclosed. Even when the color block area is 4 bits long × 64 bits and the color block area is 4 bits long × 8 lines, similar to the embodiment, “writing to the BG line buffer 64” and “BG” are performed.
"Reading from the read line buffer 64" will be described.

【0073】BG用ラインバッファ64への書込み 4ビット長×64ビットのキャラクタバッファ領域に、
背景面BGAを形成するキャラクタデータDBGAを書込
む場合には、現在処理する水平走査ライン上のセル位置
(0〜43)を6ビットで表わし、その下位3ビットで
該当セル内でのドット位置を表わしてなる書込みアドレ
スを用いる。そして、4ビット長×8ラインのカラーブ
ロックバッファ領域に上記データD BGAに対応するカラ
ーブロックを書込むには、水平走査ライン上のセル位置
(0〜43)を表わす6ビット値の下位3ビットを書込
みアドレスとする。
Writing to BG line buffer 64 In a character buffer area of 4 bits long × 64 bits,
Character data D forming the background surface BGABGAWrite
Cell position on the horizontal scan line currently processed
(0 to 43) is represented by 6 bits, and the lower 3 bits
Write address that represents the dot position in the corresponding cell
Using And 4-bit length x 8-line color blur
The data D in the lock buffer area BGACorresponding to
-To write a block, the cell position on the horizontal scan line
Write the lower 3 bits of the 6-bit value representing (0 to 43)
Only address.

【0074】一方、背景面BGBを形成するキャラクタ
データDBGBを同様の領域に書込む際には、現在処理す
る水平走査ライン上のセル位置(0〜43)を上位6ビ
ットとし、レジスタDCRBGBのワードW0(図8参
照)に格納されるX座標値の下位3ビットを、下位3ビ
ットとした全9ビット長のデータに、該当セル内のドッ
ト位置を表わす3ビットを加算したものの、下位6ビッ
トを書込みアドレスに用いる。カラーブロックを書込む
アドレスは、キャラクタデータDBGBの書込みアドレス
の上位3ビットを用いる。
On the other hand, when writing the character data D BGB forming the background surface BGB in the same area, the cell position (0 to 43) on the horizontal scanning line currently processed is set to the upper 6 bits and the register DCR BGB is set. The lower 3 bits of the X coordinate value stored in the word W0 of FIG. 8 (see FIG. 8) are set to the lower 3 bits, and 3 bits representing the dot position in the corresponding cell are added to the data of the total 9 bits. 6 bits are used for the write address. As the address for writing the color block, the upper 3 bits of the write address of the character data D BGB is used.

【0075】BG用ラインバッファ64からの読み出
し 上記項の書込みに対して背景面BGAのキャラクタデ
ータDBGAをキャラクタバッファ領域から読み出すに
は、前述のベースカウンタBCN1から出力される9ビ
ット長のカウンタ値に、レジスタSCRBGAのワードW
0(図5参照)下位3ビットを加算した値の下位6ビッ
トを読み出しアドレスとして用いる。そして、カラーブ
ロックバッファ領域から上記データDBGAに対応するカ
ラーブロックを読み出すには、キャラクタデータDBGA
の読み出しアドレスの上位3ビットを用いる。
Reading from BG line buffer 64 In order to read the character data D BGA of the background surface BGA from the character buffer area in response to the above-mentioned writing, the counter value of 9-bit length output from the above-mentioned base counter BCN1. To the word W of the register SCR BGA
0 (see FIG. 5) The lower 6 bits of the value obtained by adding the lower 3 bits are used as the read address. Then, to read the color block corresponding to the data D BGA from the color block buffer area, the character data D BGA
The upper 3 bits of the read address are used.

【0076】これに対し、背景面BGAのキャラクタデ
ータDBGBの読み出しアドレスは、ベースカウンタBC
N1から出力される9ビット長のカウンタ値の内の下位
3ビットを無効とした値に対して、レジスタDCRBGB
のワードW0(図8参照)下位3ビットと「16」とを
加算した値と、水平同期カウンタ値をカウントするカウ
ンタの出力の下位3ビットの値とをそれぞれ加算した全
9ビット長の下位6ビットを用いる。これに対応するカ
ラーブロックは、キャラクタデータDBGBの読み出しア
ドレスの上位3ビットを用いる。
On the other hand, the read address of the character data D BGB of the background surface BGA is the base counter BC.
The register DCR BGB is used for the invalid value of the lower 3 bits of the 9-bit length counter value output from N1.
Of the word W0 of FIG. 8 (see FIG. 8) and the value of the lower 3 bits of the output of the counter that counts the horizontal synchronization counter value and the lower 6 Use bits. The color block corresponding to this uses the upper 3 bits of the read address of the character data D BGB .

【0077】変形例においても、前述した実施例と同
様、スクロール位置に応じて上記読み出しアドレスの算
出アルゴリズムを切替える。すなわち、現在処理してい
る水平走査ラインが背景面BGB上に存在しているか否
かを判断する一方、現在処理している水平走査ライン上
のセルが背景面BGB上に存在しているか否かを判断
し、これら判定条件をいずれも満足する時にのみ、背景
面BGBに対応する読み出しアドレスを発生し、それ以
外の場合には、背景面BGAに対応する読み出しアドレ
スを発生する。このように、BG用ラインバッファ64
のキャラクタバッファ領域およびカラーブロック領域の
サイズを変化させても、それに応じて書込みアドレス/
読み出しアドレスの生成態様を異ならせることによっ
て、前述の実施例と同様に、背景面BGA、BGBをス
クロール処理に応じて分割表示し得ることが判る。
Also in the modification, the algorithm for calculating the read address is switched according to the scroll position, as in the above-described embodiment. That is, it is determined whether or not the horizontal scanning line currently being processed is present on the background surface BGB, while it is determined whether or not the cell on the horizontal scanning line currently being processed is present on the background surface BGB. And the read address corresponding to the background surface BGB is generated only when all of these determination conditions are satisfied, and in other cases, the read address corresponding to the background surface BGA is generated. In this way, the BG line buffer 64
Even if the size of the character buffer area and the color block area of is changed, the write address /
It is understood that the background planes BGA and BGB can be divided and displayed according to the scrolling process by changing the generation mode of the read address, as in the above-described embodiment.

【0078】以上説明したように、本実施例によれば、
表示面DSP上で背景面BGAと背景面BGBとが存在
しても、これら両背景面を重ねて画面表示するのではな
く、設定された領域で分割表示するから、背景面の種類
が増えてもVRAMへのアクセス回数は増加せず、装置
全体の処理速度を低下させる虞がない。このため、水平
走査ライン上に表示し得るオブジェクトの数を削減する
必要がない。これ故、従来では、背景面を多種類表示さ
せた時には動画面の種類を減らす対策を講じていたた
め、単調な表示形態になるという弊害が生じていたのに
対し、本発明ではこうした弊害を解消して変化に富んだ
複雑な表示形態を実現することが可能になる。
As described above, according to this embodiment,
Even if the background surface BGA and the background surface BGB exist on the display surface DSP, the background surface BGA and the background surface BGB are not overlapped and displayed on the screen, but are divided and displayed in a set area, so that the number of background surfaces increases. However, the number of accesses to the VRAM does not increase, and there is no fear of reducing the processing speed of the entire device. Therefore, it is not necessary to reduce the number of objects that can be displayed on the horizontal scanning line. Therefore, in the past, since a measure was taken to reduce the number of moving screens when a large number of types of background surfaces were displayed, the adverse effect of a monotonous display form occurred, whereas the present invention eliminates such adverse effects. As a result, it is possible to realize a variety of complicated display forms.

【0079】なお、本実施例では、背景面BGA,BG
Bの2種類としたが、本発明は、この2背景面に限定さ
れることなく、それ以上の背景面を持つ場合でも適用可
能である。要は、背景面を切替える座標位置を決めてお
き、その座標位置を超えた際に背景を切替えるようにア
ドレス生成すれば良い。また、前述したバックグラウン
ド制御部を複数系統備えておき、これら系統を時分割動
作させればより変化に富んだ複雑な表示形態を、処理速
度を落とさずに実現することも可能である。
In the present embodiment, the background surfaces BGA, BG
Although there are two types of B, the present invention is not limited to these two backgrounds and can be applied to the case of having more than two backgrounds. The point is that the coordinate position for switching the background plane is determined in advance, and the address is generated so that the background is switched when the coordinate position is exceeded. Further, by providing a plurality of systems of the background control unit described above and operating these systems in a time-division manner, it is possible to realize a more varied and complicated display form without reducing the processing speed.

【0080】[0080]

【発明の効果】本発明によれば、表示面のスクロールに
応じて背景面を異ならせる場合、位置設定手段が複数の
背景面毎の表示位置を設定しておき、背景判別手段が表
示面下に位置する背景面の種類を前記表示位置に基づい
て判別すると、背景制御手段は表示面のスクロール位置
に応じて前記背景判別手段が判別した種類の背景面のみ
発生し、前記表示位置を境に種類の異なる背景面を分割
表示するよう指示する。したがって、表示面内に複数の
背景面が存在しても、これら両背景面を重ねて画面表示
するのではなく、表示位置を境に分割表示するから、背
景面の種類が増えても画像メモリへのアクセス回数は増
加せず、装置全体の処理速度を低下させる虞がない。こ
の結果、1水平走査ライン当りに動画表示し得るオブジ
ェクト数を削減せずとも複数の背景画面を切替表示する
ことができる。
According to the present invention, when the background surface is changed in accordance with the scrolling of the display surface, the position setting means sets the display position for each of the plurality of background surfaces, and the background discriminating means moves below the display surface. When the type of the background surface located on the display position is determined based on the display position, the background control means generates only the background surface of the type determined by the background determination means according to the scroll position of the display surface, and the display position is a boundary. Instruct to display different types of background planes separately. Therefore, even if there are multiple background planes in the display plane, the two background planes are not displayed on top of each other, but are divided and displayed at the display position. The number of accesses to the device does not increase, and there is no fear of reducing the processing speed of the entire device. As a result, it is possible to switch and display a plurality of background screens without reducing the number of objects that can display a moving image per horizontal scanning line.

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

【図1】本発明による一実施例の全体構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing an overall configuration of an embodiment according to the present invention.

【図2】同実施例におけるVDP5の構成を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a configuration of a VDP 5 in the embodiment.

【図3】同実施例におけるバックグラウンド制御部の構
成を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of a background control unit in the embodiment.

【図4】同実施例におけるBGAコードエリアスタート
アドレスレジスタCESBGAの構成を示す図である。
FIG. 4 is a diagram showing a configuration of a BGA code area start address register CES BGA in the embodiment.

【図5】同実施例におけるBGAスタート位置レジスタ
SCRBGAの構成を示す図である。
FIG. 5 is a diagram showing a configuration of a BGA start position register SCR BGA in the embodiment.

【図6】同実施例におけるBGAキャラジェネエリアス
タートアドレスレジスタCGESBGAの構成を示す図で
ある。
FIG. 6 is a diagram showing a configuration of a BGA character generation area start address register CGES BGA in the same embodiment.

【図7】同実施例におけるBGBコードエリアスタート
アドレスレジスタCESBGBの構成を示す図である。
FIG. 7 is a diagram showing a configuration of a BGB code area start address register CES BGB in the embodiment.

【図8】同実施例におけるBGB表示座標レジスタDC
BGBの構成を示す図である。
FIG. 8 is a BGB display coordinate register DC in the embodiment.
It is a figure which shows the structure of R BGB .

【図9】同実施例におけるBGBキャラジェネエリアス
タートアドレスレジスタCGESBGBの構成を示す図で
ある。
FIG. 9 is a diagram showing a configuration of a BGB character generation area start address register CGES BGB in the embodiment.

【図10】同実施例におけるBGAコードエリアサイズ
レジスタCESZBGAの構成を示す図である。
FIG. 10 is a diagram showing a configuration of a BGA code area size register CESZ BGA in the embodiment.

【図11】背景面BGAと表示面DSPとの関係を説明
するための図である。
FIG. 11 is a diagram for explaining the relationship between the background surface BGA and the display surface DSP.

【図12】BGAコードのデータ形式を説明するための
図である。
FIG. 12 is a diagram for explaining the data format of a BGA code.

【図13】背景面BGAのブロック組合せを説明するた
めの図である。
FIG. 13 is a diagram for explaining a block combination of the background surface BGA.

【図14】背景面BGBと表示面DSPとの関係を説明
するための図である。
FIG. 14 is a diagram for explaining the relationship between the background surface BGB and the display surface DSP.

【図15】BGBコードのデータ形式を説明するための
図である。
FIG. 15 is a diagram illustrating a data format of a BGB code.

【図16】背景面BGAと表示面DSPとの関係を示す
図である。
FIG. 16 is a diagram showing a relationship between a background surface BGA and a display surface DSP.

【図17】背景面BGBと表示面DSPとの関係を示す
図である。
FIG. 17 is a diagram showing a relationship between a background surface BGB and a display surface DSP.

【図18】背景面BGAと背景面BGBとの関係を示す
図である。
FIG. 18 is a diagram showing a relationship between a background surface BGA and a background surface BGB.

【図19】同実施例におけるVRAM6の構成を示すメ
モリマップである。
FIG. 19 is a memory map showing the structure of the VRAM 6 in the embodiment.

【図20】キャラクタデータDBGA,DBGBのセル構成を
説明するための図である。
FIG. 20 is a diagram for explaining a cell configuration of character data D BGA and D BGB .

【図21】キャラクタデータDBGA,DBGBのデータ構成
を示す図である。
FIG. 21 is a diagram showing a data structure of character data D BGA and D BGB .

【図22】カラールックアップテーブルの一例を示す図
である
FIG. 22 is a diagram showing an example of a color lookup table.

【図23】同実施例における動作を説明するためのフロ
ーチャートである。
FIG. 23 is a flow chart for explaining the operation in the embodiment.

【図24】同実施例の動作を説明するためのタイムチャ
ートである。
FIG. 24 is a time chart for explaining the operation of the embodiment.

【図25】同実施例における動作例を示す図である。FIG. 25 is a diagram showing an operation example in the embodiment.

【図26】同実施例における動作例を示す図である。FIG. 26 is a diagram showing an operation example in the embodiment.

【符号の説明】[Explanation of symbols]

1 CPU(位置設定手段) 2 ROM 3 RAM 5 VDP 6 VRAM 53 コントロールレジスタ(位置設定手段) 63 BGデータリードコントローラ(背景判別手段、
背景制御手段) 64 BG用ラインバッファ
1 CPU (position setting means) 2 ROM 3 RAM 5 VDP 6 VRAM 53 control register (position setting means) 63 BG data read controller (background determination means,
Background control means) 64 BG line buffer

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 表示面のスクロールに応じて背景面を異
ならせる装置であって、 複数の背景面毎の表示位置を設定する位置設定手段と、 表示面下に位置する背景面の種類を前記表示位置に基づ
いて判別する背景判別手段と、 表示面のスクロール位置に応じて前記背景判別手段が判
別した種類の背景面のみ発生し、前記表示位置を境に種
類の異なる背景面を分割表示するよう指示する背景制御
手段とを具備することを特徴とする画像制御装置。
1. A device for changing a background surface according to scrolling of the display surface, wherein the position setting means sets a display position for each of a plurality of background surfaces, and the type of the background surface located below the display surface is set. Background discrimination means for discriminating based on the display position, and only background types of the type discriminated by the background discrimination means according to the scroll position of the display surface are generated, and different types of background planes are divided and displayed at the display position. An image control device, comprising:
【請求項2】 複数の背景面毎の表示属性と、これら表
示属性に各々対応付けられた背景面を形成する画像デー
タとを記憶する背景記憶手段と、 前記複数の背景面毎の表示位置を設定する位置設定手段
と、 表示面下に位置する背景面の表示属性を前記表示位置に
基づいて判別する背景判別手段と、 表示面のスクロール位置に応じて前記背景判別手段が判
別した表示属性に対応する画像データを前記背景記憶手
段から読み出す背景読み出し手段と、 この背景読み出し手段によって読み出された画像データ
に基づいて背景面を発生し、前記表示位置を境に表示属
性の異なる背景面を分割表示するよう指示する背景制御
手段とを具備することを特徴とする画像制御装置。
2. A background storage unit for storing display attributes for each of a plurality of background surfaces and image data forming a background surface associated with each of the display attributes, and a display position for each of the plurality of background surfaces. The position setting means for setting, the background discriminating means for discriminating the display attribute of the background surface located below the display surface based on the display position, and the display attribute discriminated by the background discriminating means according to the scroll position of the display surface. Background reading means for reading corresponding image data from the background storage means, a background surface is generated based on the image data read by the background reading means, and the background surface having different display attributes is divided at the display position. An image control apparatus comprising: a background control unit for instructing display.
【請求項3】 複数の背景面毎の表示属性と、この表示
属性に対応付けられた背景面を形成する画像データとを
記憶する背景記憶手段と、 前記複数の背景面毎の表示位置を設定する位置設定手段
と、 表示面上の走査ライン位置に対応して前記背景記憶手段
から各背景面毎の表示属性を読み出す属性読み出しアド
レスを発生するアドレス発生手段と、 前記複数の背景面の内、前記走査ライン位置を包含する
背景面を、前記位置設定手段が設定した表示位置に基づ
いて選択する背景選択手段と、 前記アドレス発生手段が発生する属性読み出しアドレス
の内、前記背景選択手段により選択された背景面の表示
属性を読み出す属性読み出しアドレスを指定するアドレ
ス指定手段と、 このアドレス指定手段が指定した属性読み出しアドレス
に応じて前記背景記憶手段から対応する表示属性および
画像データを読み出して背景面を発生する背景発生手段
と、 前記走査ライン位置が表示属性の異なる背景面に入った
場合には、前記背景発生手段に背景面の切替えを指示す
る表示制御手段とを具備することを特徴とする画像制御
装置。
3. A background storage unit for storing display attributes for each of a plurality of background surfaces and image data forming a background surface associated with the display attributes, and setting display positions for each of the plurality of background surfaces. Position setting means, address generating means for generating an attribute read address for reading out display attributes for each background surface from the background storage means in correspondence with a scanning line position on the display surface, and among the plurality of background surfaces, A background selecting means for selecting a background surface including the scanning line position based on the display position set by the position setting means, and an attribute read address generated by the address generating means, selected by the background selecting means. The address specifying means for specifying the attribute read address for reading the display attribute of the background surface and the attribute read address specified by the address specifying means Background generation means for generating a background surface by reading corresponding display attributes and image data from the background storage means, and when the scanning line position enters a background surface having a different display attribute, the background generation means An image control apparatus comprising: a display control unit for instructing switching.
【請求項4】 前記表示制御手段は、前記走査ライン
位置が背景面を外れた場合には透明表示を指示すること
を特徴とする請求項3記載の画像制御装置。
4. The image control apparatus according to claim 3, wherein the display control means instructs a transparent display when the scanning line position is out of the background plane.
JP7259228A 1995-09-12 1995-09-12 Image control device Pending JPH0981117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7259228A JPH0981117A (en) 1995-09-12 1995-09-12 Image control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7259228A JPH0981117A (en) 1995-09-12 1995-09-12 Image control device

Publications (1)

Publication Number Publication Date
JPH0981117A true JPH0981117A (en) 1997-03-28

Family

ID=17331192

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7259228A Pending JPH0981117A (en) 1995-09-12 1995-09-12 Image control device

Country Status (1)

Country Link
JP (1) JPH0981117A (en)

Similar Documents

Publication Publication Date Title
US6373462B1 (en) Method and apparatus for displaying higher color resolution on a hand-held LCD device
US6369827B1 (en) Method and apparatus for displaying higher color resolution on a hand-held LCD device
JPH04106593A (en) Still image display device
JPS61148488A (en) Display controller
EP0278526A2 (en) Graphics diplay controller having clipping function
JP3285860B2 (en) Mosaic image display device
JP2968729B2 (en) Graphic image display device and graphic image display method
US5319786A (en) Apparatus for controlling a scanning type video display to be divided into plural display regions
JP4122705B2 (en) Image display device installed in gaming machine
WO1995001629A1 (en) Image processing device and method therefor, and game machine having image processing part
JPH0981117A (en) Image control device
US7050064B2 (en) Method and apparatus for displaying higher color resolution on a hand-held LCD device
JPH09138683A (en) Image display controller
JPH06180569A (en) Image processor
JP3598575B2 (en) Image control device
JP3598576B2 (en) Image control device
WO1995008168A1 (en) Scroll screen display circuit
US20010015727A1 (en) Image data display control method and an image display device thereof
JP3252359B2 (en) Image processing device
JPH08272999A (en) Image controller
JP2582743B2 (en) Image processing device
JP3514763B6 (en) Scroll screen display circuit
JP2905485B2 (en) Image processing device
GB2210541A (en) Apparatus for displaying a sprite on a screen
JPH0670742B2 (en) Standard display device