JP2002073005A - Graphic processor and graphic processing method - Google Patents

Graphic processor and graphic processing method

Info

Publication number
JP2002073005A
JP2002073005A JP2000257654A JP2000257654A JP2002073005A JP 2002073005 A JP2002073005 A JP 2002073005A JP 2000257654 A JP2000257654 A JP 2000257654A JP 2000257654 A JP2000257654 A JP 2000257654A JP 2002073005 A JP2002073005 A JP 2002073005A
Authority
JP
Japan
Prior art keywords
character
sprite
address
graphic
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2000257654A
Other languages
Japanese (ja)
Other versions
JP3595497B2 (en
Inventor
Kenichi Mizutani
憲一 水谷
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.)
Renesas Micro Systems Co Ltd
Original Assignee
Renesas Micro Systems 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 Renesas Micro Systems Co Ltd filed Critical Renesas Micro Systems Co Ltd
Priority to JP2000257654A priority Critical patent/JP3595497B2/en
Publication of JP2002073005A publication Critical patent/JP2002073005A/en
Application granted granted Critical
Publication of JP3595497B2 publication Critical patent/JP3595497B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a graphic processor and graphic processing method by which the memory utilizing efficiency of a parameter RAM part can be improved and a variety of graphic displays can be displayed, by adding character array information which is information about character arrays to a conventional parameter RAM part, and setting the optimum character array in a parameter RAM part. SOLUTION: An image memory address operation part 6 receives control information, a parameter RAM address correspondent to the sprite number outputted from the parameter RAM part 2, X origin coordinate value, Y origin coordinate value, sprite X size Nsx, sprite Y size Nsy, graphic data ROM address Ad (ROM), and character array information Arr or the like, generates an upper address of graphic data ROM and a lower address of graphic data ROM, and then reads character data stored in a graphic data ROM 9.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は図形処理装置及び図
形処理方法に関し、特に表示図形を登録する際のメモリ
容量を効率良く用いることにより、より多くの図形デー
タを登録することが可能な図形処理装置及び図形処理方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic processing apparatus and a graphic processing method, and more particularly to a graphic processing capable of registering more graphic data by efficiently using a memory capacity for registering a display graphic. The present invention relates to an apparatus and a graphic processing method.

【0002】[0002]

【従来の技術】最近図形処理装置は、画面上の図形表示
の複雑化・高度化に対応すると共に、図形の処理速度の
向上が一層求められてきている。従来の図形処理装置
を、図19〜図25を参照して説明する。
2. Description of the Related Art In recent years, a graphic processing apparatus has been required to cope with complicated and sophisticated graphic display on a screen and to further improve the processing speed of the graphic. A conventional graphic processing apparatus will be described with reference to FIGS.

【0003】図19は従来の図形処理装置を示すブロッ
ク図であり、図20は図19の画像メモリアドレス演算
部196の詳細ブロック図である。
FIG. 19 is a block diagram showing a conventional graphic processing apparatus, and FIG. 20 is a detailed block diagram of the image memory address calculating section 196 of FIG.

【0004】図19の図形処理装置は、図形処理装置全
体の制御を行うCPU198と、CPU198から発行
される命令により図形の描画処理を行う図形処理部19
00と、図形処理部1900を構成する画像メモリアド
レス演算部196から出力される図形データROMアド
レスに対応してキャラクタデータを出力する図形データ
ROM199と、液晶表示装置またはCRT等の表示装
置1910とを有している。
The graphic processing apparatus shown in FIG. 19 includes a CPU 198 for controlling the entire graphic processing apparatus and a graphic processing section 19 for performing a graphic drawing process in accordance with a command issued from the CPU 198.
00, a graphic data ROM 199 that outputs character data corresponding to a graphic data ROM address output from an image memory address calculation unit 196 included in the graphic processing unit 1900, and a display device 1910 such as a liquid crystal display device or a CRT. Have.

【0005】また図形処理部1900は、CPU198
の命令をデコードし図形処理部1900を構成する各回
路ブロックを制御する図形制御部191と、画面表示領
域内の図形の位置を定めるX,Y座標値、図形の大き
さ、参照する図形データROM199のアドレス情報で
ある図形データROMアドレスなどのパラメータが格納
されているパラメータRAM部192と、図形が画面表
示領域にあるか否かを判定し当たり情報とパラメータR
AM部192に格納された図形データROMアドレスを
出力する当たり判定部193とを有している。
The graphic processing unit 1900 includes a CPU 198
A graphic control unit 191 for decoding each instruction and controlling each circuit block constituting the graphic processing unit 1900, X and Y coordinate values for determining the position of the graphic in the screen display area, the size of the graphic, and the graphic data ROM 199 to be referred to A parameter RAM unit 192 in which parameters such as a graphic data ROM address as address information are stored, and whether or not a graphic is in a screen display area is determined.
And a hit judging section 193 for outputting the graphic data ROM address stored in the AM section 192.

【0006】さらに図形処理部1900は、当たり情報
を参照して、画面表示領域にある図形の図形情報を出力
するカウンタ制御部194と、この図形情報を格納する
表示図形バッファメモリ195と、図20に示すように
図形制御部191からの制御情報とパラメータRAM部
192から出力されるスプライト番号、(スプライトX
サイズNsx−1)、走査線値、Y原点座標値とを入力
し、描画終了信号と図形データROM上位アドレス、図
形データROM下位アドレスを生成する画像メモリアド
レス演算部196と、図形データROM199から取り
出されたキャラクタデータに対してテクスチャなどの修
飾処理を行う画像データ修飾演算部197とを有する。
Further, the graphic processing unit 1900 refers to the hit information, outputs a graphic information of a graphic in a screen display area, a counter control unit 194, a display graphic buffer memory 195 for storing the graphic information, and FIG. As shown in the figure, the control information from the graphic control unit 191 and the sprite number output from the parameter RAM unit 192, (sprite X
The size Nsx-1), the scanning line value, and the Y origin coordinate value are input, and a drawing end signal, an image memory address operation unit 196 for generating a graphic data ROM upper address and a graphic data ROM lower address, and the graphic data ROM 199 are taken out. And an image data modification operation unit 197 that performs modification processing such as texture on the obtained character data.

【0007】次に図19に示す従来の図形処理装置の動
作について説明する。
Next, the operation of the conventional graphic processing apparatus shown in FIG. 19 will be described.

【0008】図形制御部191は、CPU198からの
命令をデコードしパラメータRAM部192に対して図
形のパラメータ設定を行う。パラメータRAM192の
構成は図21に示すように、パラメータRAM192の
各アドレスに対して、X原点座標値、Y原点座標値、ス
プライトXサイズNsx、スプライトYサイズNsy、
図形データROMアドレスの各情報を含んで構成され
る。
The graphic control unit 191 decodes an instruction from the CPU 198 and sets graphic parameters in the parameter RAM unit 192. As shown in FIG. 21, the configuration of the parameter RAM 192 is such that, for each address of the parameter RAM 192, an X origin coordinate value, a Y origin coordinate value, a sprite X size Nsx, a sprite Y size Nsy,
It is configured to include each information of the graphic data ROM address.

【0009】図22に一例を示すように、画面表示領域
221に2つの表示図形222,223が存在した場
合、画面表示領域221の左上隅を画面表示領域221
の原点(0,0)とし、表示図形222,223の左上
隅のX座標値、Y座標値(Xm,Ym)および(Xn,
Yn)がそれぞれ表示図形222,223のX原点座標
値、Y原点座標値として定義される。
As shown in FIG. 22, when two display figures 222 and 223 exist in the screen display area 221, the upper left corner of the screen display area 221 is set to the screen display area 221.
, The X-coordinate value, the Y-coordinate value (Xm, Ym), and (Xn,
Yn) is defined as the X origin coordinate value and the Y origin coordinate value of the display graphics 222 and 223, respectively.

【0010】また表示図形222,223のX方向、Y
方向の長さが、ピクセル単位で、表示図形222,22
3の各スプライトXサイズNsxおよびスプライトYサ
イズNsyとして定義される。
In the X direction and Y direction of the display figures 222 and 223,
The length in the direction is expressed in units of pixels in the display figures 222 and 22.
3 as sprite X size Nsx and sprite Y size Nsy.

【0011】次に当たり判定部193は、図形制御部1
91から出力される制御情報によりパラメータRAM部
192に格納された図形パラメータを参照し、パラメー
タRAM部192に格納された図形が図22に示す画面
表示領域221に存在するか否か、すなわちこの図形を
表示するか否かを判定し、画面表示領域に表示される図
形に対し活性化される当たり情報をカウンタ制御部19
4に出力する。
Next, the hit judging section 193 includes the graphic control section 1
Reference is made to the graphic parameters stored in the parameter RAM unit 192 based on the control information output from the controller 91, and whether or not the graphic stored in the parameter RAM unit 192 exists in the screen display area 221 shown in FIG. Is determined, and the hit information activated for the graphic displayed on the screen display area is determined by the counter control unit 19.
4 is output.

【0012】カウンタ制御部194は当たり判定部19
3から出力される当たり情報を参照し、当たり情報が活
性化されると、この当たり情報に対応するスプライト番
号を表示図形バッファメモリ195に格納する。
The counter control section 194 is provided with a hit judging section 19.
When the hit information is activated with reference to the hit information output from No. 3, the sprite number corresponding to the hit information is stored in the display graphic buffer memory 195.

【0013】次に画像メモリアドレス演算部196は、
制御情報を受けて、表示図形バッファメモリ195に格
納されたスプライト番号に対応する図形パラメータをパ
ラメータRAM部192から読み出し、表示図形を構成
するキャラクタデータが格納されている図形データRO
M199からキャラクタデータを読み出すための図形デ
ータROMアドレスを算出し、図形データROM199
にこの図形データROMアドレスを出力する。
Next, the image memory address operation unit 196
In response to the control information, the graphic parameter corresponding to the sprite number stored in the display graphic buffer memory 195 is read from the parameter RAM unit 192, and the graphic data RO storing the character data constituting the display graphic is stored.
A figure data ROM address for reading character data from M199 is calculated, and the figure data ROM 199 is read.
Output the graphic data ROM address.

【0014】次に画像データ修飾演算部197は、制御
情報を受けて図形データROM199から表示するキャ
ラクタデータを入力し、テクスチャ、拡大/縮小、アル
ファブレンディングなどの半透明処理などの画像データ
修飾処理を行い、画像信号を画面に表示するための表示
装置1910に出力する。
Next, the image data modification operation unit 197 receives the control information, inputs the character data to be displayed from the graphic data ROM 199, and performs image data modification processing such as translucent processing such as texture, enlargement / reduction, and alpha blending. Then, the image signal is output to the display device 1910 for displaying the image signal on the screen.

【0015】最近図形処理装置に対して様々な機能が要
求されてきており、そのような機能の一つとしてアニメ
ーション表示機能がある。
Recently, various functions have been demanded of the graphic processing apparatus. One of such functions is an animation display function.

【0016】次に上記に説明した従来の図形処理装置を
用いて、複数のスプライトと呼ばれる図形を合成して生
成したアニメーション図形を連続的に表示しアニメーシ
ョン表示を行う場合について説明する。
Next, an explanation will be given of a case where an animation figure generated by synthesizing a plurality of figures called sprites by using the above-described conventional figure processing apparatus is continuously displayed for animation display.

【0017】スプライトの一例を図24を参照して説明
すると、図24(a)が三角形の不透明データを有する
スプライトSP1であり、図24(b)がスプライトS
P1の一部を抽出して生成したスプライトSP2を、図
24(c)が矩形状の塗りつぶしデータを有するスプラ
イトSP3を表す。
An example of a sprite will be described with reference to FIG. 24. FIG. 24A shows a sprite SP1 having triangular opaque data, and FIG.
FIG. 24C shows a sprite SP2 having rectangular fill data generated by extracting a part of P1.

【0018】また、図24(d)がスプライトSP2を
手前側に、スプライトSP3を奥側にして、スプライト
SP2を不透明として、スプライトSP2とスプライト
SP3とを合成した場合のスプライトSP4を表す。
FIG. 24D shows a sprite SP4 in a case where the sprite SP2 and the sprite SP3 are combined and the sprite SP2 and the sprite SP3 are made opaque, with the sprite SP2 facing the front and the sprite SP3 facing the back.

【0019】スプライトSP1〜SP4は、キャラクタ
と称する8ピクセル×8ピクセルまたは16ピクセル×
16ピクセルの図形データROM199に格納されてい
る単位図形から構成される。
The sprites SP1 to SP4 are 8 pixels × 8 pixels or 16 pixels ×
It is composed of unit graphics stored in a graphics data ROM 199 of 16 pixels.

【0020】またキャラクタは、図23(a)に示すよ
うに連続したアドレス順に、図形データROM199に
格納されており、これらのキャラクタからスプライトを
構成する際は、図23(b)に示すように、キャラクタ
を連続して水平(X)方向に順に配列する方法と、図2
3(c)に示すように、キャラクタを連続して垂直
(Y)方向に順に配列する方法とがある。
Characters are stored in the graphic data ROM 199 in the order of consecutive addresses as shown in FIG. 23A. When a sprite is formed from these characters, as shown in FIG. And a method of sequentially arranging characters in the horizontal (X) direction, and FIG.
As shown in FIG. 3C, there is a method of sequentially arranging characters in the vertical (Y) direction.

【0021】ここでCH1〜CH16は、キャラクタ番
号を表す。図23(b)と図23(c)とでは、キャラ
クタCH1〜CH16の画像データは共通であり、キャ
ラクタCH1〜CH16の配列が異なることにより、図
23(b)と図23(c)とでは表示される画像データ
は異なってくる。
Here, CH1 to CH16 represent character numbers. 23 (b) and FIG. 23 (c) have the same image data of the characters CH1 to CH16, and the arrangement of the characters CH1 to CH16 is different, so that FIG. 23 (b) and FIG. The displayed image data differs.

【0022】また図23(b),(c)でキャラクタX
サイズXc、キャラクタYサイズYcは、ピクセル単位
でキャラクタのX方向およびY方向の大きさを表し、X
CH,YCHはキャラクタの水平方向および垂直方向の
位置を表すパラメータである。例えば、図23(b)で
XCH=1,YCH=2はキャラクタCH10を表す。
In FIGS. 23 (b) and 23 (c), the character X
The size Xc and the character Y size Yc represent the size of the character in the X and Y directions in pixel units.
CH and YCH are parameters representing the horizontal and vertical positions of the character. For example, in FIG. 23B, XCH = 1 and YCH = 2 represent the character CH10.

【0023】さらにXCH,YCHの最大値にそれぞれ
1を加えたスプライトXサイズNsxおよびスプライト
YサイズNsyは、スプライトを構成する水平方向およ
び垂直方向のキャラクタ数、すなわちスプライトサイズ
を表す。
Further, the sprite X size Nsx and the sprite Y size Nsy, which are obtained by adding 1 to the maximum values of XCH and YCH, respectively, represent the number of horizontal and vertical characters constituting the sprite, that is, the sprite size.

【0024】上記に説明したようにスプライトは、図形
データROM199に格納されたキャラクタを水平方向
および垂直方向に配列することにより構成されており、
図21に示す図形データROMアドレスAd(ROM)
を参照して、図形データROM199からキャラクタデ
ータを読み出すことで表示される。
As described above, the sprite is configured by arranging characters stored in the graphic data ROM 199 in the horizontal and vertical directions.
Graphic data ROM address Ad (ROM) shown in FIG.
Is displayed by reading character data from the graphic data ROM 199 with reference to FIG.

【0025】次に図24に示すスプライトSP1,SP
3,SP4を用いてアニメーションを生成した一例につ
いて、図25を参照して説明する。
Next, sprites SP1 and SP shown in FIG.
An example of generating an animation using SP3 and SP4 will be described with reference to FIG.

【0026】図25(a),(b),(c)に示すよう
に251〜253はアニメーション図形であり、SP
1,SP4,SP3はアニメーション図形251〜25
3を構成するスプライトである。このアニメーション図
形251〜253が画面表示領域に連続的に表示されて
アニメーションが生成される。
As shown in FIGS. 25 (a), 25 (b) and 25 (c), reference numerals 251 to 253 denote animation figures.
1, SP4 and SP3 are animation figures 251 to 25
3 is a sprite. The animation figures 251 to 253 are continuously displayed on the screen display area to generate an animation.

【0027】またスプライトSP1のキャラクタの配列
を図25(a)’、スプライトSP3のキャラクタの配
列を図25(c)’とすると、スプライトSP4のキャ
ラクタの配列は図25(b)’のようになる。
Assuming that the character arrangement of the sprite SP1 is FIG. 25 (a) 'and the character arrangement of the sprite SP3 is FIG. 25 (c)', the character arrangement of the sprite SP4 is as shown in FIG. 25 (b) '. Become.

【0028】次に従来の画像処理装置を構成する画像メ
モリアドレス演算部196について、図20を参照して
説明する。
Next, the image memory address calculation section 196 constituting the conventional image processing apparatus will be described with reference to FIG.

【0029】従来の画像メモリアドレス演算部196
は、キャラクタカウント部201、減算回路202、ア
ドレス分離部203,加算回路204,206、乗算回
路205とから構成される。
A conventional image memory address calculation unit 196
Is composed of a character count section 201, a subtraction circuit 202, an address separation section 203, addition circuits 204 and 206, and a multiplication circuit 205.

【0030】次に上記の回路動作について説明するが、
キャラクタの配列としては図23(b)に示した水平
(X)方向とし、左方向から右方向に向かって、すなわ
ちX方向の正の向きに描画処理が進むとして説明する。
Next, the operation of the above circuit will be described.
The description will be made assuming that the character arrangement is the horizontal (X) direction shown in FIG. 23B, and that the drawing process proceeds from the left to the right, that is, in the positive direction in the X direction.

【0031】減算回路202は、表示画面領域の走査線
番号に対応する査線値からスプライトの左上隅のY座標
であるY原点座標値を減算した値をアドレス分離部20
3に出力する。
The subtraction circuit 202 subtracts the Y origin coordinate value, which is the Y coordinate of the upper left corner of the sprite, from the scanning line value corresponding to the scanning line number in the display screen area, and obtains a value obtained by subtracting the value.
Output to 3.

【0032】アドレス分離部203は、スプライトを構
成するキャラクタが最も上(Y軸に最も近い)にあるキ
ャラクタから数えて、何番目のキャラクタであるかを示
すY方向キャラクタ番地YCHと、走査線がこのキャラ
クタを構成する最上位の走査線からY方向の正の向きに
何番目かを示す図形データROM下位アドレスを算出す
る。
The address separating unit 203 counts the characters constituting the sprite from the character at the top (closest to the Y axis), and indicates the Y-direction character address YCH indicating the character and the scanning line. A figure data ROM lower address indicating the number in the positive direction in the Y direction from the uppermost scanning line constituting the character is calculated.

【0033】一方キャラクタカウント部201は、制御
情報に同期してカウント動作を行い、キャラクタのX方
向の配列番号であるキャラクタカウント値を出力する。
On the other hand, the character counting section 201 performs a counting operation in synchronization with the control information, and outputs a character count value which is an array number of the character in the X direction.

【0034】加算回路206は、スプライトXサイズN
sxとY方向キャラクタ番地YCHの積と、スプライト
固有の番号であるスプライト番号と、キャラクタカウン
ト値とを加算し、図形データROM199に対する上位
のアドレスを示す図形データROM上位アドレスを生成
する。ここで、図形データROM上位アドレスと、先に
説明した図形データROM下位アドレスにより、図形デ
ータROM199に対する全アドレスを構成する。
The adder 206 has a sprite X size N
The product of sx and the Y-direction character address YCH, the sprite number which is a sprite-specific number, and the character count value are added to generate a graphic data ROM upper address indicating a higher address for the graphic data ROM 199. Here, all addresses for the graphic data ROM 199 are constituted by the graphic data ROM upper address and the graphic data ROM lower address described above.

【0035】キャラクタカウント部201は、図20
(b)に示すように、キャラクタカウント値を0からス
プライトを構成するX方向の最後のキャラクタまで順に
インクリメントし、最後にスプライトを構成する全ての
キャラクタの描画が終了したことを示す描画終了信号を
出力する。
The character counting section 201 is provided in FIG.
As shown in (b), the character count value is incremented in order from 0 to the last character in the X direction constituting the sprite, and a drawing end signal indicating that drawing of all the characters constituting the sprite has been completed lastly. Output.

【0036】一つのスプライトについての上記の動作が
終了すると、次のスプライトについても同様な処理を行
い、画面表示領域内の全てのスプライトについて同様な
処理を繰り返すことで、スプライトから構成された全画
像データの表示を実行する。
When the above operation for one sprite is completed, the same processing is performed for the next sprite, and the same processing is repeated for all sprites in the screen display area, so that all images composed of sprites are processed. Perform data display.

【0037】[0037]

【発明が解決しようとする課題】上述した従来の図形処
理装置は、図25(b)に示すスプライトSP3に着目
すると、キャラクタ配列が水平(X)方向に限定されて
いるため、2列目と3列目のキャラクタ番号が不連続と
なってしまう。
When the conventional graphic processing apparatus described above is focused on the sprite SP3 shown in FIG. 25 (b), the character arrangement is limited to the horizontal (X) direction. The character numbers in the third column are discontinuous.

【0038】このためパラメータRAM部192には、
4つの図形すなわち、キャラクタCH2,CH3と、キ
ャラクタCH6,CH7と、キャラクタCH10,CH
11と、キャラクタCH14,CH15とをそれぞれ独
立して格納しなければならない。
Therefore, the parameter RAM section 192 has
Four figures, that is, characters CH2 and CH3, characters CH6 and CH7, and characters CH10 and CH
11 and the characters CH14 and CH15 must be stored independently.

【0039】このため、パラメータRAM部192のメ
モリ使用効率が低下し、パラメータRAM部192に格
納可能な図形が減少し、より多くの図形を用いた多彩な
表示を行うことが困難となる。
For this reason, the memory use efficiency of the parameter RAM unit 192 decreases, the number of figures that can be stored in the parameter RAM unit 192 decreases, and it becomes difficult to perform various displays using more figures.

【0040】逆にパラメータRAM部192のメモリ容
量を増やして必要とする全ての図形を格納しようとすれ
ば、図形処理装置のコストが高くなるという問題があ
る。
Conversely, if the memory capacity of the parameter RAM unit 192 is increased to store all the required graphics, there is a problem that the cost of the graphics processing apparatus increases.

【0041】さらにパラメータRAM部192に格納す
る図形が増加すると、図19のCPU198から図形制
御部191を介して制御する図形が増えるので、処理時
間が増加し、図形処理装置全体の処理速度が低下すると
いう欠点がある。
Further, when the figures stored in the parameter RAM section 192 increase, the figures to be controlled from the CPU 198 in FIG. 19 via the figure control section 191 increase, so that the processing time increases and the processing speed of the entire figure processing apparatus decreases. There is a disadvantage of doing so.

【0042】このため本発明の目的は、従来のパラメー
タRAM部に対し、キャラクタ配列に関する情報である
キャラクタ配列情報を追加し、パラメータRAM部にお
いてキャラクタ配列情報により最適なキャラクタ配列を
設定することで、パラメータRAM部のメモリ使用効率
が向上した図形処理装置及び図形処理方法を提供するこ
とである。
Therefore, an object of the present invention is to add character arrangement information, which is information relating to character arrangement, to a conventional parameter RAM section, and to set an optimum character arrangement based on the character arrangement information in the parameter RAM section. An object of the present invention is to provide a graphic processing device and a graphic processing method in which the memory use efficiency of the parameter RAM unit is improved.

【0043】また本発明の目的は、パラメータRAM部
における水平(X)方向のキャラクタ配列と、垂直
(Y)方向のキャラクタ配列とが混在していても、共通
の画像メモリアドレス演算部により、図形データROM
からキャラクタデータを読み出すためのアドレスを生成
することが可能な図形処理装置及び図形処理方法を提供
することである。
Further, the object of the present invention is to provide a common image memory address calculation unit, which allows a character image arrangement in the horizontal (X) direction and a character arrangement in the vertical (Y) direction to coexist in the parameter RAM unit. Data ROM
It is an object of the present invention to provide a graphic processing device and a graphic processing method capable of generating an address for reading character data from a graphic.

【0044】さらに本発明の目的は、パラメータRAM
部のキャラクタ配列を水平方向、垂直方向および水平方
向と垂直方向を混在させる方法だけでなく、斜め方向あ
るいは配列方向を関数により定義し、パラメータRAM
部のメモリ容量を大幅に増やすことなく、多様なアニメ
ーションを表示することが可能な図形処理装置及び図形
処理方法を提供することである。
Another object of the present invention is to provide a parameter RAM.
In addition to the horizontal and vertical directions and the method of mixing the horizontal and vertical directions, the diagonal direction or the array direction is defined by a function, and the parameter RAM
It is an object of the present invention to provide a graphic processing device and a graphic processing method capable of displaying various animations without significantly increasing the memory capacity of a section.

【0045】[0045]

【課題を解決するための手段】そのため本発明による図
形処理装置は、画面表示領域に、複数のピクセルデータ
からなるキャラクタがX方向およびY方向にマトリクス
状に配列されたスプライトを表示する図形処理装置であ
って、前記キャラクタの配列に関する情報であるキャラ
クタ配列情報を含み、前記スプライトの図形情報である
スプライト図形情報を格納するパラメータRAM部と、
前記キャラクタの画像データであるキャラクタデータを
格納する図形データROMと、前記図形情報および前記
キャラクタ配列情報を参照して、前記キャラクタデータ
を読み出すための前記図形データROMに対するアドレ
ス情報である図形データROMアドレスを生成する画像
メモリアドレス演算部と、前記キャラクタデータを入力
し、表示装置に表示させるための画像信号を生成する画
像データ修飾演算部と、を備えている。
Therefore, a graphic processing apparatus according to the present invention displays a sprite in which characters composed of a plurality of pixel data are arranged in a matrix in an X direction and a Y direction in a screen display area. A parameter RAM unit that includes character arrangement information that is information relating to the arrangement of the characters, and stores sprite graphic information that is graphic information of the sprite;
A graphic data ROM for storing character data which is image data of the character; and a graphic data ROM address which is address information for the graphic data ROM for reading out the character data by referring to the graphic information and the character arrangement information. And an image data modification operation unit that receives the character data and generates an image signal for display on a display device.

【0046】また本発明による図形処理方法は、画面表
示領域に、複数のピクセルデータからなるキャラクタが
X方向およびY方向にマトリクス状に配列されたスプラ
イトを表示する図形処理方法であって、前記スプライト
を構成する前記キャラクタの走査線方向であるX方向の
順番を表すキャラクタカウント値を順次インクリメント
する第1のステップと、前記画面表示領域のX方向に走
査する走査線のY方向の番号を示す走査線値から前記Y
原点座標値を減算し、前記キャラクタ内における走査線
値であるキャラクタ内走査線値を算出する第2のステッ
プと、前記キャラクタ内走査線値を、前記キャラクタを
構成する前記ピクセルデータのY方向の配列数で除算
し、商であるY方向への前記キャラクタのキャラクタ順
番を表すY方向キャラクタ番地と、前記キャラクタの画
像データであるキャラクタデータを格納する図形データ
ROMのアドレス情報のうちの下位アドレスである図形
データROMアドレス下位アドレスとを出力する第3の
ステップと、前記キャラクタ配列がX方向のときは、前
記スプライトのX方向のサイズであるスプライトXサイ
ズと前記Y方向キャラクタ番地とを乗算し、かつ前記キ
ャラクタカウント値を保持する第4のステップと、前記
キャラクタ配列がY方向のときは、前記Y方向キャラク
タ番地を保持し、かつ前記スプライトのY方向のサイズ
であるスプライトYサイズと前記キャラクタカウント値
とを乗算する第5のステップと、前記第4のステップお
よび前記第5のステップで算出された各乗算結果を参照
して、前記図形データROMアドレスの上位アドレスで
ある図形データROMアドレス上位アドレスを算出する
第6のステップと、を備えている。
The graphic processing method according to the present invention is a graphic processing method for displaying, in a screen display area, a sprite in which characters composed of a plurality of pixel data are arranged in a matrix in the X and Y directions. A first step of sequentially incrementing a character count value representing an order in the X direction, which is a scanning line direction of the character, and a scan indicating a Y direction number of a scanning line scanning in the X direction of the screen display area. From the linear value, the Y
A second step of subtracting the origin coordinate value and calculating an in-character scanning line value that is a scanning line value in the character; and calculating the in-character scanning line value in the Y direction of the pixel data constituting the character. Divided by the number of arrays, the Y direction character address indicating the character order of the character in the Y direction, which is the quotient, and the lower address of the address information of the graphic data ROM for storing the character data as the image data of the character. A third step of outputting a certain figure data ROM address lower address, and, when the character arrangement is in the X direction, multiplying the sprite X size, which is the size of the sprite in the X direction, by the Y direction character address; And a fourth step of holding the character count value, and the character array is Y A fifth step of holding the Y-direction character address and multiplying the sprite Y size, which is the size of the sprite in the Y direction, by the character count value; A sixth step of calculating a graphic data ROM address upper address, which is an upper address of the graphic data ROM address, by referring to each multiplication result calculated in step 5.

【0047】[0047]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0048】図1は本発明の図形処理装置を示すブロッ
ク図であり、図2は図1の画像メモリアドレス演算部6
の詳細ブロック図である。
FIG. 1 is a block diagram showing a graphic processing apparatus according to the present invention, and FIG. 2 is a block diagram showing an image memory address calculator 6 shown in FIG.
It is a detailed block diagram of.

【0049】図1の図形処理装置は、図形処理装置全体
の制御を行うCPU8と、CPU8から発行される命令
により図形の描画処理を行う図形処理部100と、図形
処理部100を構成する画像メモリアドレス演算部6か
ら出力される図形データROMアドレスに対応してキャ
ラクタデータを出力する図形データROM9と、液晶表
示装置またはCRT等の表示装置10とを有している。
The graphic processing apparatus shown in FIG. 1 includes a CPU 8 for controlling the entire graphic processing apparatus, a graphic processing section 100 for performing a graphic drawing process in accordance with a command issued from the CPU 8, and an image memory constituting the graphic processing section 100. A graphic data ROM 9 for outputting character data corresponding to a graphic data ROM address output from the address calculation unit 6 and a display device 10 such as a liquid crystal display device or a CRT are provided.

【0050】また図形処理部100は、CPU8の命令
をデコードし図形処理部100を構成する各回路ブロッ
クを制御する図形制御部1と、画面表示領域内の図形の
位置を定めるX,Y座標値、図形の大きさ、参照する図
形データROM9のアドレス情報である図形データRO
Mアドレス、スプライトを構成するキャラクタの配列情
報であるキャラクタ配列情報などのパラメータが格納さ
れているパラメータRAM部2と、図形が画面表示領域
にあるか否かを判定し当たり情報とパラメータRAM部
2に格納された図形データROMアドレスを出力する当
たり判定部3とを有している。
The graphic processing unit 100 decodes an instruction from the CPU 8 and controls each circuit block constituting the graphic processing unit 100, and X and Y coordinate values for determining the position of the graphic in the screen display area. , The size of the figure, and the figure data RO which is the address information of the figure data ROM 9 to be referred to.
A parameter RAM unit 2 in which parameters such as an M address and character arrangement information as character arrangement information of a sprite are stored, and whether or not a figure is present in a screen display area is determined. And a hit judging section 3 for outputting a graphic data ROM address stored in the ROM.

【0051】さらに図形処理部100は、一つの画面表
示領域に表示する全スプライトの数を格納する表示スプ
ライト数格納部11と、活性化された当たり情報を参照
して表示するスプライトの数をカウントアップするスプ
ライト個数算出部12と、当たり情報を参照して、画面
表示領域にあるスプライトの図形情報を出力するカウン
タ制御部4と、この図形情報を格納する表示図形バッフ
ァメモリ5と、図2に示すように図形制御部1からのキ
ャラクタカウント部制御信号とパラメータRAM部2か
ら出力されるスプライト番号、Y原点座標値、(スプラ
イトXサイズNsx−1)、(スプライトYサイズNs
y−1)、キャラクタ配列情報Arrなどを入力し、描
画終了信号と図形データROM上位アドレスおよび図形
データROM下位アドレスを生成する画像メモリアドレ
ス演算部6と、図形データROM9から取り出されたキ
ャラクタデータに対してテクスチャなどの修飾処理を行
う画像データ修飾演算部7とを有する。
The graphic processing unit 100 further stores a display sprite number storage unit 11 for storing the number of all sprites to be displayed in one screen display area, and counts the number of sprites to be displayed by referring to activated hit information. FIG. 2 shows a sprite number calculation unit 12 to be increased, a counter control unit 4 that outputs graphic information of a sprite in a screen display area with reference to hit information, a display graphic buffer memory 5 that stores this graphic information, As shown, the character count control signal from the graphic control unit 1 and the sprite number, Y origin coordinate value output from the parameter RAM unit 2, (sprite X size Nsx-1), (sprite Y size Ns)
y-1), the character array information Arr and the like are input, and an image memory address calculation unit 6 for generating a drawing end signal, a graphic data ROM upper address and a graphic data ROM lower address, and character data extracted from the graphic data ROM 9 And an image data modification operation unit 7 for performing modification processing such as texture.

【0052】次に図1に示す本発明の図形処理装置の動
作について説明する。
Next, the operation of the graphic processing apparatus of the present invention shown in FIG. 1 will be described.

【0053】図形制御部1は、CPU8からの命令をデ
コードしパラメータRAM2に対して図形のパラメータ
設定を行う。
The graphic controller 1 decodes an instruction from the CPU 8 and sets graphic parameters in the parameter RAM 2.

【0054】パラメータRAM2の構成は図3に示すよ
うに、画面表示領域の各スプライトに対応した各アドレ
スに対して、図22に示すように、スプライトの基準原
点(左上隅とする)のX座標値であるX原点座標値P
x、スプライトの基準原点のY座標値であるY原点座標
値Py、キャラクタ単位で算出したスプライトのX方向
の大きさであるスプライトXサイズNsx、キャラクタ
単位で算出したスプライトのY方向の大きさであるスプ
ライトYサイズNsy、図形データROM9からキャラ
クタを読み出すときに用いる図形データROMアドレス
Ad(ROM)、キャラクタの配列方向を定めるキャラ
クタ配列情報Arrなどを含んで構成される。
As shown in FIG. 3, the configuration of the parameter RAM 2 is such that, for each address corresponding to each sprite in the screen display area, as shown in FIG. 22, the X coordinate of the reference origin (upper left corner) of the sprite X origin coordinate value P which is the value
x, Y origin coordinate value Py which is the Y coordinate value of the reference origin of the sprite, sprite X size Nsx which is the sprite X size calculated in character units, and sprite Y direction size calculated in character units It is configured to include a certain sprite Y size Nsy, a graphic data ROM address Ad (ROM) used for reading a character from the graphic data ROM 9, character arrangement information Arr for determining the character arrangement direction, and the like.

【0055】図形制御部1は、パラメータRAM部2か
ら処理する順番にスプライトの図形情報を取り出し、こ
の情報を当たり判定部に対して出力する。
The graphic control unit 1 extracts sprite graphic information from the parameter RAM unit 2 in the order of processing, and outputs this information to the hit determination unit.

【0056】次に当たり判定部3は、図形制御部1から
出力される制御情報によりパラメータRAM2に格納さ
れた図形情報を参照し、パラメータRAM部2に格納さ
れた図形が図22に示す画面表示領域221に存在する
か否か、すなわちこの図形を表示するか否かを判定し、
画面表示領域に表示される図形に対して活性化される当
たり情報と、パラメータRAM部2のアドレスとをカウ
ンタ制御部4に出力する。
Next, the hit judging section 3 refers to the graphic information stored in the parameter RAM 2 based on the control information output from the graphic control section 1 and displays the graphic stored in the parameter RAM section 2 on the screen display area shown in FIG. 221, that is, whether or not to display this graphic,
The hit information activated for the graphic displayed on the screen display area and the address of the parameter RAM unit 2 are output to the counter control unit 4.

【0057】カウンタ制御部4は当たり判定部3から出
力される当たり情報を参照し、当たり情報が活性化され
ると、この当たり情報に対応するスプライトのスプライ
ト番号を表示図形バッファメモリ5に格納する。このと
きカウンタ制御部4は、表示スプライト数格納部11に
格納された一つの画面表示領域に表示する全スプライト
の数と、スプライト個数算出部12で算出されたスプラ
イトの数とを参照しながら、活性化された当たり情報に
対応するスプライト番号を表示図形バッファメモリ5に
出力するように動作する。
The counter control unit 4 refers to the hit information output from the hit judging unit 3, and when the hit information is activated, stores the sprite number of the sprite corresponding to the hit information in the display graphic buffer memory 5. . At this time, the counter control unit 4 refers to the number of all sprites displayed in one screen display area stored in the display sprite number storage unit 11 and the number of sprites calculated by the sprite number calculation unit 12, It operates to output the sprite number corresponding to the activated hit information to the display graphic buffer memory 5.

【0058】当たり判定部3における全てのスプライト
に対しての当たり判定が終了すると、図形制御部1は表
示図形バッファメモリ5から格納していたスプライト番
号を読み出す。そして読み出したスプライト番号を参照
してパラメータRAM部2から表示するスプライトに関
する図形情報を読み出す。こうして読み出されたスプラ
イト図形の図形情報は、画像メモリアドレス演算部6と
画像データ修飾演算部7に対して出力される。
When the hit judging section 3 completes the hit judgment for all sprites, the graphic control section 1 reads out the stored sprite number from the display graphic buffer memory 5. Then, the graphic information relating to the sprite to be displayed is read from the parameter RAM unit 2 with reference to the read sprite number. The graphic information of the sprite graphic thus read is output to the image memory address operation unit 6 and the image data modification operation unit 7.

【0059】次に画像メモリアドレス演算部6は、制御
情報を受けて、表示図形バッファメモリ5に格納された
スプライト番号に対応する図形情報を参照し、スプライ
トを構成するキャラクタデータが格納されている図形デ
ータROM9から、キャラクタデータを読み出すための
図形データROMアドレスを算出し、図形データROM
9にこの図形データROMアドレスを出力する。
Next, the image memory address operation unit 6 receives the control information, refers to the graphic information corresponding to the sprite number stored in the display graphic buffer memory 5, and stores the character data constituting the sprite. A figure data ROM address for reading character data is calculated from the figure data ROM 9, and the figure data ROM
9 to output the graphic data ROM address.

【0060】そして画像データ修飾演算部7は、制御情
報を受けて図形データROM9から表示するキャラクタ
データを入力し、テクスチャ、拡大/縮小、アルファブ
レンディングなどの半透明処理などの画像データ修飾処
理を行い、画像信号を画面に表示するための表示装置1
0に出力する。
The image data modification operation unit 7 receives the control information, inputs the character data to be displayed from the graphic data ROM 9, and performs image data modification processing such as texture, enlargement / reduction, and translucent processing such as alpha blending. Display device 1 for displaying an image signal on a screen
Output to 0.

【0061】次に上記に説明した本発明の図形処理装置
を用いて、図4に示す複数のスプライトを用いたアニメ
ーション図形を、連続的に表示してアニメーション表示
を行う場合について説明する。
Next, a case will be described in which an animation graphic using a plurality of sprites shown in FIG. 4 is continuously displayed and an animation is displayed using the graphic processing apparatus of the present invention described above.

【0062】最初にスプライトSP1〜SP4について
説明すると、SP1は図4(a)に示すように三角形の
不透明データを有するスプライトであり、SP2は図4
(b)に示すようにスプライトSP1の一部を抽出して
生成したスプライトであり、SP3は図4(c)に示す
ように矩形状の塗りつぶしデータを有するスプライトで
あり、SP4は図4(b)に示すようにスプライトSP
2を手前側に、スプライトSP3を奥側にして、スプラ
イトSP2を不透明として、スプライトSP2とスプラ
イトSP3とを合成した場合のスプライトある。ここで
特徴的な点は、スプライトSP1は、図25(a)’の
キャラクタ配列と異なり、キャラクタは垂直方向に配列
されている点である。
First, the sprites SP1 to SP4 will be described. SP1 is a sprite having opaque triangular data as shown in FIG.
As shown in FIG. 4B, the sprite is generated by extracting a part of the sprite SP1, SP3 is a sprite having rectangular fill data as shown in FIG. 4C, and SP4 is a sprite having rectangular fill data as shown in FIG. Sprite SP as shown in)
2 is a sprite in which the sprite SP2 and the sprite SP3 are combined and the sprite SP2 is opaque and the sprite SP2 and the sprite SP3 are combined. Here, the characteristic point is that, unlike the character arrangement of FIG. 25A ′, the sprite SP1 has characters arranged in the vertical direction.

【0063】図3に示すキャラクタ配列情報Arrが0
(b)(bはバイナリデータであることを表す)のと
き、キャラクタ配列が水平(X)方向であることを表
し、キャラクタ配列情報Arrが1(b)のとき、キャ
ラクタ配列が垂直(Y)方向であることを表す。
The character array information Arr shown in FIG.
(B) (b indicates binary data) indicates that the character array is in the horizontal (X) direction, and when the character array information Arr is 1 (b), the character array is vertical (Y) Indicates a direction.

【0064】このように本発明による図形処理装置は、
パラメータRAM部2にキャラクタ配列情報Arrを設
け、このキャラクタ配列情報Arrを参照して、画像メ
モリアドレス演算部6が図形データROMアドレスを生
成することにより、図4(a)’,(b)’,(c)’
に示すように、水平方向と垂直方向の任意の組み合わせ
で、スプライトを構成するキャラクタを配列することが
出来る。これによりパラメータRAM部2のメモリ容量
を増やすことなく、多様な図形をパラメータRAM部2
に格納することが可能となり、複雑なアニメーション表
示を行うことができる。
As described above, the graphic processing apparatus according to the present invention
The character array information Arr is provided in the parameter RAM unit 2, and the image memory address calculation unit 6 generates the graphic data ROM address with reference to the character array information Arr, so that FIG. 4 (a) 'and (b)' , (C) '
As shown in (1), characters constituting the sprite can be arranged in any combination of the horizontal direction and the vertical direction. Thus, various figures can be stored in the parameter RAM unit 2 without increasing the memory capacity of the parameter RAM unit 2.
, And a complicated animation display can be performed.

【0065】ここで従来のパラメータRAM部192に
おける図25(b),(b)’に示すアニメーション図
形のメモリ構造と、本発明のパラメータRAM部2にお
ける図4(b),(b)’に示すアニメーション図形の
メモリ構造とを比較しながら説明する。
Here, the memory structure of the animation figure shown in FIGS. 25 (b) and (b) 'in the conventional parameter RAM section 192 and FIGS. 4 (b) and (b)' in the parameter RAM section 2 of the present invention. A description will be given while comparing with the memory structure of the animation figure shown.

【0066】図5(a)は、従来のパラメータRAM1
92における図25(b),(b)’のアニメーション
図形に対応するメモリ構成を表し、スプライトSP2の
1行目は、キャラクタCH2,CH3が配列されてお
り、これらのキャラクタCH2,CH3から構成される
図形のX原点座標値、Y原点座標値はそれぞれX0,Y
0である。またスプライトXサイズNsx、スプライト
YサイズNsyはそれぞれ2,1となる。
FIG. 5A shows a conventional parameter RAM 1.
25 shows a memory configuration corresponding to the animation figure of FIGS. 25 (b) and (b) ′, and the first line of the sprite SP2 has characters CH2 and CH3 arranged therein and is composed of these characters CH2 and CH3. X origin coordinate value and Y origin coordinate value of the figure
0. The sprite X size Nsx and the sprite Y size Nsy are 2 and 1, respectively.

【0067】またスプライトSP2の2行目は、キャラ
クタCH6,CH7が配列されており、これらのキャラ
クタCH6,CH7から構成される図形のX原点座標値
は上記のX原点座標値X0と変わらず、キャラクタが1
6ピクセル×16ピクセルの構成とすると、Y原点座標
値がYの正の方向に16ピクセル移動するので、Y0+
16となる。またスプライトXサイズNsx、スプライ
トYサイズNsyは1行目と同様にそれぞれ2,1とな
る。
In the second line of the sprite SP2, characters CH6 and CH7 are arranged. The X origin coordinate value of the figure composed of these characters CH6 and CH7 is not changed from the X origin coordinate value X0. 1 character
With a configuration of 6 pixels × 16 pixels, since the Y origin coordinate value moves 16 pixels in the positive Y direction, Y0 +
It becomes 16. The sprite X size Nsx and the sprite Y size Nsy are 2 and 1, respectively, as in the first row.

【0068】同様に、スプライトSP2の3行目および
4行目は、図5(a)に示すようになる。
Similarly, the third and fourth rows of the sprite SP2 are as shown in FIG.

【0069】またスプライトSP2と合成を行うスプラ
イトSP3については、X原点座標値がスプライトSP
2のX原点座標値よりも16ピクセル小さいので、X0
−16となり、Y原点座標値は上記のスプライトSP2
のY原点座標値Y0と同じくY0となる。
As for the sprite SP3 which is synthesized with the sprite SP2, the X origin coordinate value is
16 pixels smaller than the X origin coordinate value of X2, X0
−16, and the Y origin coordinate value is the above-mentioned sprite SP2.
Is the same as the Y origin coordinate value Y0.

【0070】またスプライトSP3のスプライトXサイ
ズNsx、スプライトYサイズNsyは、共に4とな
る。
The sprite X size Nsx and the sprite Y size Nsy of the sprite SP3 are both 4.

【0071】一方図5(b)は、本発明のパラメータR
AM2における図4(b),(b)’のアニメーション
図形に対応するメモリ構成を表し、スプライトSP2は
図5(b)からわかるように、キャラクタ配列情報が1
(b)であり、キャラクタ配列が垂直方向であることを
示している。またスプライトXサイズNsx、スプライ
トYサイズNsyはそれぞれ2,4となる。また、スプ
ライトSP3については、図5(a)と同様である。
On the other hand, FIG. 5B shows a parameter R of the present invention.
FIG. 5B shows a memory configuration corresponding to the animation figure of FIGS. 4B and 4B ′ in AM2. As can be seen from FIG.
(B), which indicates that the character array is in the vertical direction. The sprite X size Nsx and the sprite Y size Nsy are 2 and 4, respectively. The sprite SP3 is the same as that in FIG.

【0072】上記に説明したように、従来のパラメータ
RAM部192では、図25(b)のアニメーション図
形を表すのに5行のメモリ容量が必要であるのに対し、
本発明の図形処理装置を構成するパラメータRAM部2
では、図4(b)のアニメーション図形を表すのに2行
のメモリ容量で済むので、大幅にメモリ容量を低減する
ことが出来る。
As described above, in the conventional parameter RAM unit 192, a memory capacity of five rows is required to represent the animation graphic shown in FIG.
Parameter RAM unit 2 constituting the graphic processing apparatus of the present invention
In this case, only two rows of memory capacity are required to represent the animation graphic of FIG. 4B, so that the memory capacity can be significantly reduced.

【0073】次に本発明の図形処理装置を構成する画像
メモリアドレス演算部6について、図2(a),(b)
を用いて概略の説明をする。
Next, the image memory address calculating section 6 constituting the graphic processing apparatus of the present invention will be described with reference to FIGS. 2 (a) and 2 (b).
A brief description will be given using.

【0074】本実施の形態による画像メモリアドレス演
算部6は、図2(a)に示すように図形制御部1から出
力される制御情報の一部であるキャラクタカウント部制
御信号と、スプライトXサイズNsxから1を減算した
値とを入力し、キャラクタカウント部制御信号に同期し
てキャラクタカウント値をインクリメントするキャラク
タカウント部21と、1番上の(最もY原点に近い)走
査線から何番目の走査線であるかを示す走査線値からY
原点座標値を減算する減算回路22と、減算回路22の
出力データをキャラクタを構成する垂直方向のピクセル
数で除算し、この除算結果から商であるY方向のキャラ
クタ番地を表すYCHと余りである図形データROM下
位アドレスを算出するアドレス分離部23と、キャラク
タ配列情報とスプライトYサイズNsyから1を減算し
た値とを入力するANDゲート27と、キャラクタ配列
情報とスプライトXサイズNsxから1を減算した値と
を入力するANDゲート28とを備えている。
As shown in FIG. 2A, the image memory address calculation unit 6 according to the present embodiment includes a character count control signal, which is a part of control information output from the graphic control unit 1, and a sprite X size. A value obtained by subtracting 1 from Nsx is input, and the character count unit 21 that increments the character count value in synchronization with the character count unit control signal, and the number of the scanning line from the top scanning line (closest to the Y origin) From the scanning line value indicating whether the scanning line
A subtraction circuit 22 for subtracting the origin coordinate value, and the output data of the subtraction circuit 22 are divided by the number of pixels in the vertical direction constituting the character, and the result of the division is YCH representing the character address in the Y direction, which is a quotient, and the remainder. The address separation unit 23 for calculating the lower address of the graphic data ROM, the AND gate 27 for inputting the character arrangement information and the value obtained by subtracting 1 from the sprite Y size Nsy, and subtracting 1 from the character arrangement information and the sprite X size Nsx And an AND gate 28 for inputting a value.

【0075】さらに本実施の形態による画像メモリアド
レス演算部6は、ANDゲート27からの出力データに
1を加算する加算回路29と、ANDゲート28からの
出力データに1を加算する加算回路24と、キャラクタ
カウント値と加算回路29の出力データとを乗算する乗
算回路25Aと、アドレス分離部23から出力されるY
方向のキャラクタ番地を表すYCHと加算回路24の出
力データとを乗算する乗算回路25Bと、スプライト番
号と乗算回路25A,25Bの各出力データとを加算
し、図形データROM9に格納されているキャラクタデ
ータを読み出すための図形データROMアドレスの上位
アドレスである図形データROM上位アドレスを生成す
る加算回路26とを備えている。
Further, the image memory address calculator 6 according to the present embodiment includes an adder circuit 29 for adding 1 to the output data from the AND gate 27 and an adder circuit 24 for adding 1 to the output data from the AND gate 28. , A multiplication circuit 25A that multiplies the character count value by the output data of the addition circuit 29, and Y output from the address separation unit 23.
A multiplication circuit 25B for multiplying the output data of the addition circuit 24 by the YCH representing the character address in the direction, a sprite number and the output data of the multiplication circuits 25A and 25B are added, and the character data stored in the graphic data ROM 9 is added. And an adder circuit 26 for generating a graphic data ROM upper address which is an upper address of the graphic data ROM address for reading the data.

【0076】ここでキャラクタの配列が水平方向の配列
であるときは、キャラクタ配列情報は0(b)となり、
キャラクタの配列が垂直方向の配列であるときは、キャ
ラクタ配列情報は1(b)となる。
If the character arrangement is a horizontal arrangement, the character arrangement information is 0 (b),
When the character arrangement is a vertical arrangement, the character arrangement information is 1 (b).

【0077】キャラクタ配列情報が0(b)のとき、A
NDゲート27により(スプライトYサイズNsy−
1)はマスクされ、ANDゲート27から0が出力され
る。そして加算回路29により1が加算され、乗算回路
25Aからはキャラクタカウント値がそのままの値で加
算回路26に出力される。
When the character arrangement information is 0 (b), A
By the ND gate 27 (sprite Y size Nsy-
1) is masked, and 0 is output from the AND gate 27. Then, 1 is added by the addition circuit 29, and the multiplication circuit 25A outputs the character count value to the addition circuit 26 as it is.

【0078】一方ANDゲート28は、(スプライトX
サイズNsx−1)を出力し、加算回路24はスプライ
トXサイズNsxを出力する。乗算回路25Bは、スプ
ライトXサイズNsxとY方向のキャラクタ番地とを乗
算し、この乗算結果を加算回路26に出力する。
On the other hand, the AND gate 28 is connected to the (sprite X
The size Nsx-1) is output, and the adding circuit 24 outputs a sprite X size Nsx. The multiplication circuit 25B multiplies the sprite X size Nsx by the character address in the Y direction, and outputs the multiplication result to the addition circuit 26.

【0079】一方キャラクタ配列情報が1(b)のと
き、ANDゲート28により(スプライトXサイズNs
x−1)はマスクされ、ANDゲート28から0が出力
される。そして加算回路24により1が加算され、乗算
回路25BからはY方向のキャラクタ番地YCHがその
ままの値で加算回路26に出力される。
On the other hand, when the character arrangement information is 1 (b), the AND gate 28 (sprite X size Ns
x-1) is masked, and 0 is output from the AND gate 28. Then, 1 is added by the addition circuit 24, and the multiplication circuit 25B outputs the character address YCH in the Y direction as it is to the addition circuit 26.

【0080】一方ANDゲート27は、(スプライトY
サイズNsy−1)を出力し、加算回路29はスプライ
トYサイズNsyを出力する。乗算回路25Aは、スプ
ライトYサイズNsyとキャラクタカウント値とを乗算
し、この乗算結果を加算回路26に出力する。
On the other hand, the AND gate 27 is connected to the (sprite Y
Then, the adder circuit 29 outputs a sprite Y size Nsy. The multiplication circuit 25A multiplies the sprite Y size Nsy by the character count value, and outputs the multiplication result to the addition circuit 26.

【0081】このようにして本実施の形態による画像メ
モリアドレス演算部6は、スプライト番号と、キャラク
タカウント部制御信号と、(スプライトXサイズNsx
−1)と、(スプライトYサイズNsy−1)と、キャ
ラクタ配列情報と、走査線値と、Y原点座標値とを入力
し、図形データROM上位アドレスと図形データROM
下位アドレスとを生成する。
As described above, the image memory address calculation unit 6 according to the present embodiment transmits the sprite number, the character count unit control signal, and the (sprite X size Nsx
-1), (sprite Y size Nsy-1), character array information, scanning line value, and Y origin coordinate value, and the graphic data ROM upper address and the graphic data ROM are input.
Generate the lower address.

【0082】図2(b)に、図2(a)に示す画像メモ
リアドレス演算部6のタイミングチャートを示す。
FIG. 2B shows a timing chart of the image memory address calculating section 6 shown in FIG.

【0083】キャラクタカウント部制御信号は、キャラ
クタデータCH1〜CHnの描画処理に先だってパルス
信号を発生し、キャラクタカウント部は、このパルス信
号に同期して0からスプライトを構成する(キャラクタ
数−1)までをカウントアップするとともに、スプライ
トを構成する全てのキャラクタの描画が終了したとき
に、描画終了信号を出力する。
The character count section control signal generates a pulse signal prior to the drawing processing of the character data CH1 to CHn, and the character count section forms a sprite from 0 in synchronization with the pulse signal (number of characters -1). When the drawing of all the characters constituting the sprite is completed, a drawing end signal is output.

【0084】次に図6,7を参照して、キャラクタの配
列が図23(b)に示す水平方向の配列である場合の本
実施の形態による画像メモリアドレス演算部6の動作に
ついて、具体的に説明する。
Referring to FIGS. 6 and 7, the operation of image memory address calculating section 6 according to the present embodiment when the character arrangement is the horizontal arrangement shown in FIG. Will be described.

【0085】図6(a)において、スプライトSP6を
構成するキャラクタCH1〜CH16は、水平方向およ
び垂直方向に4キャラクタずつ配列され、各キャラクタ
の垂直方向のピクセル数すなわち走査線数を16とす
る。ここで各キャラクタ毎の走査線をYの正の方向にl
1〜l16とし、画面表示領域の原点に最も近い走査線
(第1走査線)をL1とし、Yの正の方向に順にL2,
L3・・・L16,L17,L18・・・とする。すな
わち、L1,L2・・・は走査線の絶対番号を表し、l
0〜l15は各キャラクタ毎の相対的な走査線番号を表
す。
In FIG. 6A, the characters CH1 to CH16 constituting the sprite SP6 are arranged four by four in the horizontal direction and the vertical direction, and the number of pixels in each character in the vertical direction, that is, the number of scanning lines is 16. Here, the scanning line for each character is set to l in the positive direction of Y.
1 to 116, the scanning line (first scanning line) closest to the origin of the screen display area is defined as L1, and L2 is sequentially set in the positive Y direction.
L3... L16, L17, L18. That is, L1, L2... Represent the absolute number of the scanning line, and l
0 to 115 represent relative scanning line numbers for each character.

【0086】また説明を簡略化するために、スプライト
SP6のY原点座標値を0,すなわちスプライトSP6
の左上隅は画面表示領域の原点に一致するものとして説
明する。
To simplify the description, the coordinate value of the Y origin of the sprite SP6 is set to 0, that is, the sprite SP6
The description will be made assuming that the upper left corner of the mark coincides with the origin of the screen display area.

【0087】いま走査線がキャラクタCH5,6,7,
8の4番目の走査線、すなわちl4(L20)である場
合のメモリアドレスについて考察する。
Now, the scanning lines are characters CH5, 6, 7,
Consider the fourth scanning line of No. 8, ie, the memory address in the case of 14 (L20).

【0088】図6(b)は、スプライトSP6を構成す
るキャラクタCH1〜CH16の図形データROM9の
キャラクタ配列を表し、キャラクタCH1〜CH16の
図形データROM9における上位アドレスである図形デ
ータROM上位アドレスが0〜15であることを示して
いる。図6(b)からわかるように、キャラクタCH5
〜CH8の図形データROM上位アドレスは4〜7とな
る。
FIG. 6B shows the character arrangement of the graphic data ROM 9 of the characters CH1 to CH16 constituting the sprite SP6, and the graphic data ROM upper address which is the upper address in the graphic data ROM 9 of the characters CH1 to CH16 is 0 to 0. 15 is shown. As can be seen from FIG. 6B, the character CH5
The graphic data ROM upper addresses of .about.CH8 are 4-7.

【0089】また走査線L20は、キャラクタCH5〜
CH8の走査線l4に対応すると共に、図形データRO
M下位アドレスが4であることを表している。従って図
形データROM上位アドレスにより、図形データROM
9を構成するキャラクタ番号が一意的に定まり、図形デ
ータROM下位アドレスによりキャラクタ内の走査線位
置が定まる。
The scanning line L20 includes the characters CH5 to CH5.
Corresponding to the scanning line 14 of CH8 and the graphic data RO
This indicates that the M lower address is 4. Therefore, the graphic data ROM
The character number of the character 9 is uniquely determined, and the scanning line position in the character is determined by the graphic data ROM lower address.

【0090】すなわち、図形データROM上位アドレス
と図形データROM下位アドレスを指定することによ
り、図形データROM9から描画対象となるキャラクタ
データを走査線毎に読み出すことが可能である。
That is, by specifying the graphic data ROM upper address and the graphic data ROM lower address, character data to be drawn can be read from the graphic data ROM 9 for each scanning line.

【0091】図6(c)に上記に説明したキャラクタ番
号と図形データROM上位アドレスおよび図形データR
OM下位アドレスの関係を示す。
FIG. 6C shows the character number, graphic data ROM upper address and graphic data R described above.
The relationship between the OM lower addresses is shown.

【0092】次に図7を参照して、図6に示す場合の画
像メモリアドレス演算部6の動作について説明する。
Next, the operation of the image memory address calculation unit 6 in the case shown in FIG. 6 will be described with reference to FIG.

【0093】いま図6(a)からわかるように、Y原点
座標値、走査線値はそれぞれ0,20であり、スプライ
トXサイズNsx、スプライトYサイズNsyがそれぞ
れ4であるので、(スプライトXサイズNsx−1)、
(スプライトYサイズNsy−1)はそれぞれ3とな
り、キャラクタ配列情報は0である。
As can be seen from FIG. 6A, since the Y origin coordinate value and the scanning line value are 0 and 20, respectively, and the sprite X size Nsx and the sprite Y size Nsy are respectively 4, (sprite X size Nsx-1),
(Sprite Y size Nsy-1) is 3, and the character arrangement information is 0.

【0094】減算回路22は、走査線値(=20)から
Y原点座標値(=0)を減算し、アドレス分離部23に
20を出力する。アドレス分離部23は、入力データの
20をキャラクタを構成する垂直方向のピクセル数16
で除算し、この除算結果から商であるY方向のキャラク
タ番地を表すYCHを1とし、図6(c)に示した図形
データROM下位アドレスと同じ値を余り4としてそれ
ぞれ出力する。
The subtraction circuit 22 subtracts the Y origin coordinate value (= 0) from the scanning line value (= 20) and outputs 20 to the address separation section 23. The address separating unit 23 converts the input data 20 into the number of vertical pixels 16 constituting a character.
Then, YCH representing the character address in the Y direction, which is the quotient, is set to 1 from the result of the division, and the same value as the graphic data ROM lower address shown in FIG.

【0095】ANDゲート27の出力は、キャラクタ配
列情報が0であるので0となり、加算回路29はこの0
と定数である1を加算して生成した1を乗算回路25A
に出力する。またANDゲート28の出力は3となり、
加算回路24はこの3と定数である1を加算して生成し
た4を乗算回路25Bに出力する。
The output of the AND gate 27 becomes 0 because the character arrangement information is 0, and the addition circuit 29 outputs the 0
Multiplication circuit 25A generated by adding 1 and a constant 1
Output to Also, the output of the AND gate 28 becomes 3, and
The addition circuit 24 outputs 4 generated by adding 3 to the constant 1 to the multiplication circuit 25B.

【0096】乗算回路25Bは、Y方向のキャラクタ番
地YCH(=1)と加算回路24から出力した4とを乗
算して生成した4を加算回路26に出力する。
The multiplication circuit 25B multiplies the character address YCH (= 1) in the Y direction by 4 output from the addition circuit 24, and outputs 4 generated to the addition circuit 26.

【0097】またキャラクタカウント部21は、キャラ
クタカウント部制御信号に同期して0から(スプライト
XサイズNsx−1)=3までの出力データ、すなわち
0→1→2→3の出力データを乗算回路25Aに出力す
る。従って乗算回路25Aは、0→1→2→3のデータ
を加算回路26に出力する。
The character counting section 21 multiplies output data from 0 to (sprite X size Nsx-1) = 3, that is, 0 → 1 → 2 → 3 output data in synchronization with the character counting section control signal. Output to 25A. Therefore, the multiplication circuit 25A outputs 0 → 1 → 2 → 3 data to the addition circuit 26.

【0098】いまスプライト番号が0であるとすると、
加算回路26は、図6(c)に示した図形データROM
上位アドレスと同じ4〜7を生成する。
Assuming that the sprite number is 0,
The adder circuit 26 stores the graphic data ROM shown in FIG.
4 to 7 that are the same as the upper address are generated.

【0099】次に図8,9を参照して、キャラクタの配
列が図23(c)に示す垂直方向の配列である場合の本
実施の形態による画像メモリアドレス演算部6の動作に
ついて、具体的に説明する。
Next, with reference to FIGS. 8 and 9, the operation of the image memory address calculating section 6 according to the present embodiment when the character arrangement is the vertical arrangement shown in FIG. Will be described.

【0100】図8(a)において、スプライトSP8を
構成するキャラクタCH1〜CH16は、水平方向およ
び垂直方向に4キャラクタずつ配列され、各キャラクタ
の垂直方向のピクセル数すなわち走査線数を16とす
る。ここで各キャラクタ毎の走査線をYの正の方向にl
1〜l16とし、画面表示領域の原点に最も近い走査線
(第1走査線)をL1とし、Yの正の方向に順にL2,
L3・・・L16,L17,L18・・・とする。すな
わち、L1,L2・・・は走査線の絶対番号を表し、l
0〜l15は各キャラクタ毎の相対的な走査線番号を表
す。
In FIG. 8 (a), the characters CH1 to CH16 constituting the sprite SP8 are arranged four by four in the horizontal and vertical directions, and the number of pixels of each character in the vertical direction, that is, the number of scanning lines is 16. Here, the scanning line for each character is set to l in the positive direction of Y.
1 to 116, the scanning line (first scanning line) closest to the origin of the screen display area is defined as L1, and L2 is sequentially set in the positive Y direction.
L3... L16, L17, L18. That is, L1, L2... Represent the absolute number of the scanning line, and l
0 to 115 represent relative scanning line numbers for each character.

【0101】また説明を簡略化するために、スプライト
SP8のY原点座標値を0,すなわちスプライトSP8
の左上隅は画面表示領域の原点に一致するものとして説
明する。
To simplify the description, the coordinate value of the Y origin of the sprite SP8 is set to 0, that is, the sprite SP8
The description will be made assuming that the upper left corner of the mark coincides with the origin of the screen display area.

【0102】いま走査線がキャラクタCH2,6,1
0,14の4番目の走査線、すなわちl4(L20)で
ある場合のメモリアドレスについて考察する。
Now, the scanning lines are characters CH2, 6, 1
Consider the fourth scanning line of 0,14, that is, the memory address in the case of l4 (L20).

【0103】図8(b)は、スプライトSP8を構成す
るキャラクタCH1〜CH16の図形データROM9の
キャラクタ配列を表し、キャラクタCH1〜CH16の
図形データROM9における上位アドレスである図形デ
ータROM上位アドレスが0〜15であることを示して
いる。図8(b)からわかるように、キャラクタCH
2,6,10,14の図形データROM上位アドレスは
それぞれ1,5,9,13となる。
FIG. 8B shows the character arrangement of the graphic data ROM 9 of the characters CH1 to CH16 constituting the sprite SP8, and the graphic data ROM upper address which is the upper address in the graphic data ROM 9 of the characters CH1 to CH16 is 0 to 0. 15 is shown. As can be seen from FIG. 8B, the character CH
The figure data ROM upper addresses of 2, 6, 10, and 14 are 1, 5, 9, and 13, respectively.

【0104】また走査線L20は、キャラクタCH2,
6,10,14の走査線l4に対応すると共に、図形デ
ータROM下位アドレスが4であることを表している。
従って図形データROM上位アドレスにより、図形デー
タROM9を構成するキャラクタ番号が一意的に定ま
り、図形データROM下位アドレスによりキャラクタ内
の走査線位置が定まる。
The scanning line L20 is composed of the characters CH2 and CH2.
It corresponds to 6, 10, and 14 scanning lines 14 and indicates that the lower address of the graphic data ROM is 4.
Therefore, the character number constituting the graphic data ROM 9 is uniquely determined by the graphic data ROM upper address, and the scanning line position in the character is determined by the graphic data ROM lower address.

【0105】すなわち、図形データROM上位アドレス
と図形データROM下位アドレスを指定することによ
り、図形データROM9から描画対象となるキャラクタ
データを走査線毎に読み出すことが可能である。
That is, by specifying the graphic data ROM upper address and the graphic data ROM lower address, character data to be drawn can be read from the graphic data ROM 9 for each scanning line.

【0106】図8(c)に上記に説明したキャラクタ番
号と図形データROM上位アドレスおよび図形データR
OM下位アドレスの関係を示す。
FIG. 8C shows the character number, graphic data ROM upper address and graphic data R described above.
The relationship between the OM lower addresses is shown.

【0107】次に図9を参照して、図8に示す場合の画
像メモリアドレス演算部6の動作について説明する。
Next, the operation of the image memory address calculation unit 6 in the case shown in FIG. 8 will be described with reference to FIG.

【0108】いま図8(a)からわかるように、Y原点
座標値、走査線値はそれぞれ0,20であり、スプライ
トXサイズNsx、スプライトYサイズNsyがそれぞ
れ4であるので、(スプライトXサイズNsx−1)、
(スプライトYサイズNsy−1)はそれぞれ3とな
り、キャラクタ配列情報は1である。
As can be seen from FIG. 8A, the Y origin coordinate value and the scanning line value are 0 and 20, respectively, and the sprite X size Nsx and the sprite Y size Nsy are 4 respectively. Nsx-1),
(Sprite Y size Nsy-1) is 3, and the character arrangement information is 1.

【0109】減算回路22は、走査線値(=20)から
Y原点座標値(=0)を減算し、アドレス分離部23に
20を出力する。アドレス分離部23は、入力データの
20をキャラクタを構成する垂直方向のピクセル数16
で除算し、この除算結果から商であるY方向のキャラク
タ番地YCHを1とし、図8(c)に示した図形データ
ROM下位アドレスと同じ値を余り4としてそれぞれ出
力する。
The subtraction circuit 22 subtracts the Y origin coordinate value (= 0) from the scanning line value (= 20) and outputs 20 to the address separation section 23. The address separating unit 23 converts the input data 20 into the number of vertical pixels 16 constituting a character.
The character address YCH in the Y direction, which is the quotient, is set to 1 from the result of the division, and the same value as the graphic data ROM lower address shown in FIG.

【0110】ANDゲート28の出力は、キャラクタ配
列情報が1であるので0となり、加算回路24はこの0
と定数である1を加算して生成した1を乗算回路25B
に出力する。またANDゲート27の出力は3となり、
加算回路29はこの3と定数である1を加算して生成し
た4を乗算回路25Aに出力する。
The output of the AND gate 28 becomes 0 because the character arrangement information is 1, and the addition circuit 24 outputs the 0
Multiplication circuit 25B generated by adding 1 and a constant 1
Output to Also, the output of the AND gate 27 becomes 3, and
The addition circuit 29 outputs 4 generated by adding 3 to a constant 1 to the multiplication circuit 25A.

【0111】乗算回路25Bは、Y方向のキャラクタ番
地YCH(=1)と加算回路24から出力した1とを乗
算して生成した1を加算回路26に出力する。
The multiplying circuit 25B multiplies the character address YCH (= 1) in the Y direction by 1 output from the adding circuit 24 and outputs 1 to the adding circuit 26.

【0112】またキャラクタカウント部21は前に説明
したように、キャラクタカウント部制御信号に同期して
0→1→2→3のデータを加算回路26に出力する。
The character counting section 21 outputs 0 → 1 → 2 → 3 data to the adding circuit 26 in synchronization with the character counting section control signal, as described above.

【0113】いまスプライト番号が0であるとすると、
加算回路26は、図8(c)に示した図形データROM
上位アドレスと同じ1,5,9,13を生成する。
Assuming that the sprite number is 0,
The adder circuit 26 stores the graphic data ROM shown in FIG.
The same 1, 5, 9, 13 as the upper address is generated.

【0114】以上説明したように、本発明の画像処理装
置を構成する画像メモリアドレス演算部6は、キャラク
タ配列が水平方向と垂直方向の場合に対応したキャラク
タ配列情報により、キャラクタ配列が水平方向および垂
直方向のいずれであっても図6(c)または図8(c)
に示す図形データROM上位アドレスおよび図形データ
ROM下位アドレスを生成することが出来る。
As described above, the image memory address calculation section 6 constituting the image processing apparatus of the present invention uses the character array information corresponding to the case where the character array is in the horizontal direction and the vertical direction to determine whether the character array is in the horizontal direction or in the horizontal direction. 6 (c) or 8 (c) regardless of the vertical direction.
The graphic data ROM upper address and the graphic data ROM lower address shown in FIG.

【0115】次に図面を参照して本発明の図形処理装置
を用いた図形処理方法について説明する。
Next, a graphic processing method using the graphic processing apparatus of the present invention will be described with reference to the drawings.

【0116】図10は図2に示す本発明の画像メモリア
ドレス演算部6の処理方法を示すフローチャートであ
り、ステップST1で図形制御部1は画像処理が終了し
たか否かの判定を行い、画像処理が終了したと判定した
場合、図2に示すキャラクタカウント部21は、ステッ
プST11でキャラクタカウント部制御信号によりリセ
ットされ、ステップST12の処理を行う。ステップS
T12において当たり判定部3は、次に描画すべきスプ
ライトが画面表示領域に存在するか否かを判定し、次に
描画すべきスプライトが画面表示領域に存在しないと判
定した場合は、ステップST13で画面表示領域全体の
描画処理を終了し、次のフレームの画面表示領域の描画
処理を行う。
FIG. 10 is a flowchart showing the processing method of the image memory address calculating section 6 of the present invention shown in FIG. 2. In step ST1, the graphic control section 1 determines whether or not the image processing has been completed. When it is determined that the process has been completed, the character counting unit 21 shown in FIG. 2 is reset by the character counting unit control signal in step ST11, and performs the process of step ST12. Step S
At T12, the hit determination unit 3 determines whether a sprite to be drawn next exists in the screen display area. If it is determined that a sprite to be drawn next does not exist in the screen display area, the hit determination unit 3 determines in step ST13. The drawing process for the entire screen display area is completed, and the drawing processing for the screen display area of the next frame is performed.

【0117】またステップST12において、次に描画
すべきスプライトが存在すると判定された場合は、ステ
ップST1の処理を行う。
If it is determined in step ST12 that there is a sprite to be drawn next, the process of step ST1 is performed.

【0118】ステップST1で画像処理が終了していな
いと判定された場合、ステップST2において、キャラ
クタカウント部21はキャラクタカウント値をインクリ
メントする。
When it is determined in step ST1 that the image processing has not been completed, in step ST2, the character counting section 21 increments the character count value.

【0119】続いてステップST3において、走査線値
からY原点座標値を減算することにより、キャラクタの
Y原点座標値を基準とした相対的な走査線番号を算出す
る。
Subsequently, in step ST3, the relative scanning line number based on the Y origin coordinate value of the character is calculated by subtracting the Y origin coordinate value from the scanning line value.

【0120】次にステップST4において、アドレス分
離部23はY方向のキャラクタ番地を表すYCHと図形
データROM下位アドレスをそれぞれ生成し、画像メモ
リアドレス演算部6はステップST5において、キャラ
クタ配列情報が水平方向であるとの情報を受け取るとス
テップST6の処理を行い、キャラクタ配列情報が垂直
方向であるとの情報を受け取るとステップST9の処理
を行う。
Next, in step ST4, the address separating section 23 generates the YCH representing the character address in the Y direction and the lower address of the graphic data ROM, and the image memory address calculating section 6 determines in step ST5 that the character arrangement information is in the horizontal direction. When the information that the character arrangement information is vertical is received, the process of step ST9 is performed.

【0121】ステップST5において、キャラクタ配列
情報が水平方向であると判定された場合は、ステップS
T6で乗算回路25Bは加算回路24から出力されるス
プライトXサイズNsxと、アドレス分離部23から出
力されるY方向のキャラクタ番地YCHとを乗算して乗
算結果を加算回路26に出力する。そして引き続きステ
ップST7において、キャラクタカウント部21はキャ
ラクタカウント値をインクリメントせず保持し続ける。
If it is determined in step ST5 that the character arrangement information is in the horizontal direction, the process proceeds to step S5.
At T6, the multiplication circuit 25B multiplies the sprite X size Nsx output from the addition circuit 24 by the character address YCH in the Y direction output from the address separation unit 23, and outputs the multiplication result to the addition circuit 26. Then, in step ST7, the character counting section 21 keeps holding the character count value without incrementing it.

【0122】一方ステップST5において、キャラクタ
配列情報が垂直方向であると判定された場合は、ステッ
プST9でY方向のキャラクタ番地YCHを保持したま
ま、次のステップST10の処理が行われる。ステップ
ST10において、乗算回路25Aは加算回路29から
出力されるスプライトYサイズNsyと、キャラクタカ
ウント部21から出力されるキャラクタカウント値とを
乗算し、加算回路26に乗算結果を出力する。
On the other hand, if it is determined in step ST5 that the character arrangement information is in the vertical direction, the process in the next step ST10 is performed while holding the character address YCH in the Y direction in step ST9. In step ST10, the multiplication circuit 25A multiplies the sprite Y size Nsy output from the addition circuit 29 by the character count value output from the character counting section 21, and outputs the multiplication result to the addition circuit 26.

【0123】最後に加算回路26は、乗算回路25A,
25Bからの乗算結果とスプライト番号とをそれぞれ加
算し、図形データROM上位アドレスを生成する。
Finally, the addition circuit 26 is provided with a multiplication circuit 25A,
The multiplication result from 25B and the sprite number are respectively added to generate a graphic data ROM upper address.

【0124】次に本発明の画像メモリアドレス演算部6
の第2の実施の形態について図11,図12を参照して
説明する。なお、図2と共通の構成要素には共通の参照
文字/数字を付してある。
Next, the image memory address calculator 6 of the present invention
The second embodiment will be described with reference to FIGS. Note that components common to FIG. 2 are denoted by common reference characters / numbers.

【0125】図11は本発明の画像メモリアドレス演算
部6の第2の実施の形態を示すブロック図であり、図1
2は図11に示す画像メモリアドレス演算部6により生
成されたキャラクタ配列を示す。
FIG. 11 is a block diagram showing a second embodiment of the image memory address calculating section 6 of the present invention.
Reference numeral 2 denotes a character array generated by the image memory address calculator 6 shown in FIG.

【0126】図12に示されるように、本実施の形態に
よる画像メモリアドレス演算部62により生成されたキ
ャラクタ配列は、右上(Xが正でYが負の方向)から左
下(Xが負でYが正の方向)に向かって順にキャラクタ
が配列されていることが特徴である。このような配列
は、図形を変形する際に有効である。
As shown in FIG. 12, the character array generated by the image memory address calculation unit 62 according to the present embodiment is arranged from the upper right (X is positive and Y is negative) to the lower left (X is negative and Y (Characters are in the positive direction). Such an arrangement is effective when deforming a figure.

【0127】本実施の形態による画像メモリアドレス演
算部6は、図11に示すように図形制御部1から出力さ
れる制御情報の一部であるキャラクタカウント部制御信
号に同期してキャラクタカウント値をインクリメントす
るキャラクタカウント部21と、走査線値からY原点座
標値を減算する減算回路22とを備えている。
The image memory address calculator 6 according to the present embodiment calculates the character count value in synchronization with the character count control signal which is a part of the control information output from the graphic controller 1 as shown in FIG. It comprises a character counting section 21 for incrementing, and a subtraction circuit 22 for subtracting the Y origin coordinate value from the scanning line value.

【0128】また本実施の形態による画像メモリアドレ
ス演算部6は、減算回路22の出力データをキャラクタ
を構成する垂直方向のピクセル数で除算し、この除算結
果から商であるY方向のキャラクタ番地を表すYCHと
余りである図形データROM下位アドレスを算出するア
ドレス分離部23と、Y方向のキャラクタ番地YCHを
データ入力しキャラクタ配列情報により制御され、出力
データを乗算回路25Bに出力する1(h)固定回路部
117と、Y方向のキャラクタ番地YCHを累積加算す
る累積加算回路114とを備えている。
The image memory address calculator 6 according to the present embodiment divides the output data of the subtraction circuit 22 by the number of pixels in the vertical direction constituting the character, and calculates the quotient of the character address in the Y direction from the result of the division. An address separating unit 23 for calculating the YCH to be represented and the remainder of the figure data ROM lower address, and a character address YCH in the Y direction are input and controlled by character arrangement information, and output data is output to the multiplication circuit 25B 1 (h). A fixed circuit unit 117 and a cumulative addition circuit 114 for cumulatively adding the character address YCH in the Y direction are provided.

【0129】さらに本実施の形態による画像メモリアド
レス演算部6は、累積加算回路114の出力データと
(スプライトXサイズNsx−1)とを入力し、キャラ
クタ配列情報が0、すなわちキャラクタ配列が水平方向
であるときは、(スプライトXサイズNsx−1)を出
力し、キャラクタ配列情報が1、すなわちキャラクタ配
列が斜め方向であるときは、累積加算回路114の出力
データを出力する選択手段115と、選択手段115か
らの出力データに1を加算する加算回路116と、この
加算回路116からの出力データと1(h)固定回路部
117からの出力データとを乗算する乗算回路25Bと
を備えている。
Further, the image memory address calculator 6 according to the present embodiment receives the output data of the accumulator 114 and (sprite X size Nsx-1), and sets the character array information to 0, that is, the character array in the horizontal direction. If the character arrangement information is 1, that is, if the character arrangement is in an oblique direction, the selection means 115 outputs the output data of the accumulative addition circuit 114; An adder circuit 116 for adding 1 to the output data from the means 115 and a multiplying circuit 25B for multiplying the output data from the adder circuit 116 and the output data from the 1 (h) fixed circuit section 117 are provided.

【0130】また本実施の形態による画像メモリアドレ
ス演算部6は、キャラクタカウント値と累積加算回路1
14の出力データとレジスタ112からの出力データと
を加算し、加算結果をレジスタ112に出力する加算回
路111と、加算回路111からの加算結果とスプライ
ト番号とを入力するレジスタ112と、レジスタ112
の出力データとキャラクタカウント値とを入力し、キャ
ラクタ配列情報が0、すなわち水平方向であるときはキ
ャラクタカウント値を出力し、キャラクタ配列情報が
0、すなわち斜め方向であるときは、レジスタ112の
出力データを出力する選択手段113とを備えている。
The image memory address calculating section 6 according to the present embodiment comprises a character count value and a cumulative addition circuit 1.
14, an addition circuit 111 for adding the output data from the register 112 to the output data from the register 112, and outputting the addition result to the register 112; a register 112 for inputting the addition result from the addition circuit 111 and the sprite number;
The character count value is output when the character array information is 0, that is, in the horizontal direction, and the output of the register 112 is output when the character array information is 0, that is, in the oblique direction. Selection means 113 for outputting data.

【0131】ここで1(h)固定回路部117は、キャ
ラクタ配列情報が0である場合は、Y方向のキャラクタ
番地YCHをそのまま出力し、キャラクタ配列情報が1
である場合は、キャラクタ番地YCHを1(h)に固定
する。また加算回路111とレジスタ112により、キ
ャラクタカウント値が順次累積加算される。
Here, if the character arrangement information is 0, the 1 (h) fixed circuit section 117 outputs the character address YCH in the Y direction as it is, and if the character arrangement information is 1,
, The character address YCH is fixed at 1 (h). The character count value is sequentially cumulatively added by the addition circuit 111 and the register 112.

【0132】上記のような動作をすることにより、キャ
ラクタ配列情報が0である場合は、キャラクタが図6
(a)に示すような配列になるように図形データROM
アドレスが生成され、一方キャラクタ配列情報が1であ
る場合は、キャラクタが図12に示すような配列になる
ように図形データROMアドレスが生成される。
By performing the above operation, if the character arrangement information is 0, the character
The graphic data ROM is arranged in an array as shown in FIG.
When an address is generated and the character array information is 1, the graphic data ROM address is generated so that the characters are arranged as shown in FIG.

【0133】次に本発明の画像メモリアドレス演算部6
の第2の実施の形態を用いた図形処理方法の第2の実施
の形態について説明する。
Next, the image memory address calculator 6 of the present invention
A second embodiment of the graphic processing method using the second embodiment will be described.

【0134】図13は図11に示す本発明の画像メモリ
アドレス演算部62の処理方法を示すフローチャートで
あり、図10の処理フロートチャートのステップST
9,10が、図13においてそれぞれステップST1
4,15になっている点が異なっている。ステップST
14において、累積加算回路114に入力したキャラク
タ番地YCHが順次累積加算され、さらに累積加算回路
114から出力された累積加算値は選択手段115を介
して加算回路において1が加算される。
FIG. 13 is a flowchart showing a processing method of the image memory address calculating section 62 of the present invention shown in FIG. 11, and corresponds to step ST in the processing flowchart of FIG.
9 and 10 correspond to steps ST1 in FIG.
4 and 15 are different. Step ST
At 14, the character address YCH input to the cumulative addition circuit 114 is sequentially cumulatively added. Further, the cumulative addition value output from the cumulative addition circuit 114 is added by 1 through the selection means 115 in the addition circuit.

【0135】続いてステップST15において、加算回
路111とレジスタ112により、キャラクタカウント
値が累積加算される。
Subsequently, in step ST15, the character count value is cumulatively added by the addition circuit 111 and the register 112.

【0136】このような処理フローにより、キャラクタ
配列情報が0である場合は、キャラクタが図6(a)に
示すような配列になるように図形データROMアドレス
が生成され、一方キャラクタ配列情報が1である場合
は、キャラクタが図12に示すような配列になるように
図形データROMアドレスが生成される。
According to such a processing flow, when the character arrangement information is 0, the graphic data ROM address is generated so that the characters are arranged as shown in FIG. 6A, while the character arrangement information is 1 In the case of, the graphic data ROM address is generated such that the characters are arranged as shown in FIG.

【0137】次に本発明の画像メモリアドレス演算部6
の第3の実施の形態について図14,図15を参照して
説明する。なお、図11と共通の構成要素には共通の参
照文字/数字を付してある。
Next, the image memory address calculation unit 6 of the present invention
The third embodiment will be described with reference to FIGS. Note that components common to those in FIG. 11 are denoted by common reference characters / numbers.

【0138】図14は本発明の画像メモリアドレス演算
部63の第3の実施の形態を示すブロック図であり、図
15はこの画像メモリアドレス演算部63により生成さ
れたキャラクタ配列を示す。
FIG. 14 is a block diagram showing a third embodiment of the image memory address calculating section 63 of the present invention. FIG. 15 shows a character array generated by the image memory address calculating section 63.

【0139】図15に示されるように、本実施の形態に
よる画像メモリアドレス演算部63により生成されたキ
ャラクタ配列は、左下(Xが負でYが正の方向)から右
上(Xが正でYが負の方向)に向かって順にキャラクタ
が配列されていることが特徴であり、図12に示すキャ
ラクタ配列の方向と逆向きとなる。このような配列は、
図12の配列と同様に、図形を変形する際に有効であ
る。
As shown in FIG. 15, the character array generated by the image memory address calculation unit 63 according to the present embodiment is arranged from the lower left (X is negative and Y is positive) to the upper right (X is positive and Y is Y). Characters are sequentially arranged in the direction of () is a negative direction), which is opposite to the direction of the character arrangement shown in FIG. Such an array is
Similar to the arrangement in FIG. 12, this is effective when deforming a figure.

【0140】図14に示す本発明の画像メモリアドレス
演算部63は、図11に示す画像メモリアドレス演算部
62を構成する加算回路111に代えて加算回路111
にさらに1を加算する加算回路141を設けたことと、
NANDゲート142を新しく設けたことが図11に示
す画像メモリアドレス演算部62と異なっている。
The image memory address operation unit 63 of the present invention shown in FIG. 14 is different from the adder circuit 111 constituting the image memory address operation unit 62 shown in FIG.
Provided with an addition circuit 141 for adding 1 to
The difference from the image memory address calculation unit 62 shown in FIG. 11 is that a NAND gate 142 is newly provided.

【0141】ここでNANDゲート142は、キャラク
タ配列情報が1であるとき、累積加算回路114から出
力される累積加算値に対してさらに1を加算しないよう
にマスクするように動作する。
Here, when the character arrangement information is 1, the NAND gate 142 operates so as to mask the cumulative addition value output from the cumulative addition circuit 114 so as not to add 1 further.

【0142】上記のような動作をすることにより、キャ
ラクタ配列情報が0である場合は、キャラクタが図6
(a)に示すような配列になるように図形データROM
アドレスが生成され、一方キャラクタ配列情報が1であ
る場合は、キャラクタが図15に示すような配列になる
ように図形データROMアドレスが生成される。
By performing the above operation, if the character arrangement information is 0, the character
The graphic data ROM is arranged in an array as shown in FIG.
When an address is generated and the character array information is 1, the graphic data ROM address is generated so that the characters are arranged as shown in FIG.

【0143】次に本発明の画像メモリアドレス演算部6
の第23実施の形態を用いた図形処理方法の第3の実施
の形態について説明する。
Next, the image memory address calculator 6 of the present invention
A third embodiment of the graphic processing method using the twenty-third embodiment will be described.

【0144】図16は図14に示す本発明の画像メモリ
アドレス演算部63の処理方法を示すフローチャートで
あり、図13の処理フロートチャートのステップST1
4,15が、図16においてそれぞれステップST1
6,17になっている点が異なっている。ステップST
16において、累積加算回路114に入力したキャラク
タ番地YCHが順次累積加算される。
FIG. 16 is a flow chart showing the processing method of the image memory address calculating section 63 of the present invention shown in FIG. 14, and corresponds to step ST1 in the processing flow chart of FIG.
4 and 15 correspond to steps ST1 in FIG.
6 and 17 are different. Step ST
At 16, the character address YCH input to the accumulation circuit 114 is sequentially accumulated.

【0145】一方ステップST17において、加算回路
141とレジスタ112によりキャラクタカウント値が
累積加算され、さらに1が加算された加算値が選択手段
113に出力される。
On the other hand, in step ST 17, the character count value is cumulatively added by the adding circuit 141 and the register 112, and the added value obtained by adding 1 is output to the selecting means 113.

【0146】このような処理フローにより、キャラクタ
配列情報が0である場合は、キャラクタが図6(a)に
示すような配列になるように図形データROMアドレス
が生成され、一方キャラクタ配列情報が1である場合
は、キャラクタが図15に示すような配列になるように
図形データROMアドレスが生成される。
According to such a processing flow, when the character arrangement information is 0, the graphic data ROM address is generated so that the characters are arranged as shown in FIG. 6A, while the character arrangement information is 1 In the case of, the graphic data ROM address is generated such that the characters are arranged as shown in FIG.

【0147】次に本発明の画像メモリアドレス演算部6
の第4の実施の形態について図17を参照して説明す
る。なお、図14と共通の構成要素には共通の参照文字
/数字を付してある。
Next, the image memory address calculator 6 of the present invention
The fourth embodiment will be described with reference to FIG. Components common to those in FIG. 14 are denoted by common reference characters / numbers.

【0148】図17は本発明の画像メモリアドレス演算
部64の第4の実施の形態を示すブロック図である。
FIG. 17 is a block diagram showing a fourth embodiment of the image memory address operation unit 64 of the present invention.

【0149】図17に示す本発明の画像メモリアドレス
演算部64は、図14に示す画像メモリアドレス演算部
63を構成する加算回路141とレジスタ112から構
成される累積加算回路に代えて水平方向キャラクタ演算
関数部171を設けたことと、累積加算回路114に代
えて垂直方向キャラクタ演算関数部172を設けたこと
が図14に示す画像メモリアドレス演算部63と異なっ
ている。
The image memory address operation unit 64 of the present invention shown in FIG. 17 is different from the image memory address operation unit 63 shown in FIG. 14 is different from the image memory address calculation unit 63 shown in FIG. 14 in that the calculation function unit 171 is provided and a vertical character calculation function unit 172 is provided in place of the accumulation circuit 114.

【0150】ここで水平方向キャラクタ演算関数部17
1において、キャラクタカウント値毎に垂直方向キャラ
クタ演算関数部からの演算結果に対して予め定義された
関数を実行し、この実行結果を選択手段113に出力
し、垂直方向キャラクタ演算関数部172において、Y
方向のキャラクタ番地YCHに対して予め定義された関
数を実行し、この実行結果を選択手段115と水平方向
キャラクタ演算関数部171とに出力する。
Here, the horizontal character operation function unit 17
In step 1, for each character count value, a predefined function is executed on the calculation result from the vertical character calculation function unit, and this execution result is output to the selection unit 113. Y
A predetermined function is executed for the character address YCH in the direction, and the execution result is output to the selection unit 115 and the horizontal direction character operation function unit 171.

【0151】こうして、画像メモリアドレス演算部64
は、キャラクタを図6(a)に示すような水平方向、図
8(a)に示すような垂直方向、図12または図15に
示すような斜め方向、あるいは図示しない任意の配列に
対応する図形データROMアドレスを生成することが可
能である。
Thus, the image memory address operation unit 64
Is a graphic corresponding to the horizontal direction as shown in FIG. 6A, the vertical direction as shown in FIG. 8A, the diagonal direction as shown in FIG. 12 or FIG. It is possible to generate a data ROM address.

【0152】次に本発明の画像メモリアドレス演算部6
の第4の実施の形態を用いた図形処理方法の第4の実施
の形態について説明する。
Next, the image memory address calculator 6 of the present invention
A fourth embodiment of the graphic processing method using the fourth embodiment will be described.

【0153】図18は図17に示す本発明の画像メモリ
アドレス演算部64の処理方法を示すフローチャートで
あり、図13の処理フロートチャートのステップST1
4,15が、図18においてそれぞれステップST1
8,19になっている点が異なっている。
FIG. 18 is a flow chart showing the processing method of the image memory address calculating section 64 of the present invention shown in FIG. 17, and corresponds to step ST1 in the processing flow chart of FIG.
4 and 15 correspond to steps ST1 in FIG.
8 and 19 are different.

【0154】ステップST18において、垂直方向キャ
ラクタ演算関数部172は入力したY方向のキャラクタ
番地YCHに対して、単純な累積加算を行う場合の他
に、垂直方向キャラクタ演算関数部172に設定された
より複雑な演算処理を行って、水平方向キャラクタ演算
関数部171と選択手段115に対して出力する。
In step ST18, the vertical direction character operation function unit 172 performs a simple cumulative addition on the input Y-direction character address YCH, and also executes a more complicated operation set in the vertical direction character operation function unit 172. And outputs the result to the horizontal character calculation function unit 171 and the selection unit 115.

【0155】またステップST19において、水平方向
キャラクタ演算関数部171は入力したキャラクタカウ
ント値に対して、単純な累積加算を行う場合の他に、水
平方向キャラクタ演算関数部171に設定されたより複
雑な演算処理を行って、選択手段113に対して出力す
る。
In step ST19, the horizontal character calculation function unit 171 performs a simple cumulative addition to the input character count value, and performs a more complicated calculation set in the horizontal character calculation function unit 171. The processing is performed and output to the selection unit 113.

【0156】このような処理フローにより、キャラクタ
配列情報が水平方向である場合は、キャラクタが図6
(a)に示すような配列になるように図形データROM
アドレスが生成され、一方キャラクタ配列情報が垂直方
向である場合は、キャラクタが図15に示すような配列
になるように図形データROMアドレスが生成される。
According to such a processing flow, when the character arrangement information is in the horizontal direction, the character
The graphic data ROM is arranged in an array as shown in FIG.
If an address is generated and the character arrangement information is in the vertical direction, the graphic data ROM address is generated so that the characters are arranged as shown in FIG.

【0157】さらにキャラクタを、図12または図15
に示すような斜め方向、あるいは図示しない任意の配列
に対応するより複雑な図形データROMアドレスを生成
することが可能である。
[0157] Further, the character is changed to that shown in FIG.
It is possible to generate a more complicated graphic data ROM address corresponding to an oblique direction as shown in FIG.

【0158】なお、図4で画面表示領域41にスプライ
トSP1,SP4,SP3がそれぞれ1つずつあるとし
て説明したが、1つの場面表示領域に複数のスプライト
があっても良い。
In FIG. 4, the screen display area 41 has been described as having one sprite SP1, SP4, and SP3, but a single scene display area may have a plurality of sprites.

【0159】またスプライトSP1,SP4,SP3の
大きさが、画面表示領域の大きさと一致しても良い。こ
の場合X原点座標値およびY原点座標値は、両方とも0
となる。
The size of the sprites SP1, SP4, SP3 may match the size of the screen display area. In this case, both the X origin coordinate value and the Y origin coordinate value are 0.
Becomes

【0160】さらに図3において、パラメータRAM2
の構成は、画面表示領域の各スプライトに対応した各ア
ドレスに対して、図22に示すように、スプライトの基
準原点(左上隅とする)のX座標値であるX原点座標値
Px、スプライトの基準原点のY座標値であるY原点座
標値Py、キャラクタ単位で算出したスプライトのX方
向の大きさであるスプライトXサイズNsx、キャラク
タ単位で算出したスプライトのY方向の大きさであるス
プライトYサイズNsy、図形データROM9からキャ
ラクタを読み出すときに用いる図形データROMアドレ
スAd(ROM)、キャラクタの配列方向を定めるキャ
ラクタ配列情報Arrなどを含んで構成されるとして説
明したが、スプライトがX方向に配列されたキャラクタ
からなるXスプライトと、Y方向に配列されたキャラク
タからなるYスプライトとを含んで構成される場合は、
上記に定義した各パラメータは、XスプライトおよびY
スプライトに対してそれぞれ定義されるものとする。
Further, in FIG.
As shown in FIG. 22, the X origin coordinate value Px, which is the X coordinate value of the reference origin (upper left corner) of the sprite, and the sprite of the sprite are assigned to each address corresponding to each sprite in the screen display area. The Y origin coordinate value Py which is the Y coordinate value of the reference origin, the sprite X size Nsx which is the sprite X size calculated in character units, and the sprite Y size which is the sprite Y direction size calculated in character units Although the description has been made as including Nsy, graphic data ROM address Ad (ROM) used when reading characters from the graphic data ROM 9, character arrangement information Arr that determines the arrangement direction of characters, etc., sprites are arranged in the X direction. X sprite composed of characters that have been set, and Y sprite composed of characters arranged in the Y direction If configured not contain a site,
The parameters defined above are the X sprite and Y
It is defined for each sprite.

【0161】[0161]

【発明の効果】以上説明したように本発明による図形処
理装置及び図形処理方法は、従来のパラメータRAM部
に対し、キャラクタ配列に関する情報であるキャラクタ
配列情報を追加し、パラメータRAM部においてキャラ
クタ配列情報により最適なキャラクタ配列を設定するこ
とで、パラメータRAM部のメモリ使用効率を向上する
ことができる。これにより、パラメータRAMのメモリ
容量が一定であれば、パラメータRAMにより多くの図
形を登録することができる。
As described above, the graphic processing apparatus and the graphic processing method according to the present invention add character arrangement information, which is information relating to character arrangement, to the conventional parameter RAM section, and store the character arrangement information in the parameter RAM section. By setting a more optimal character arrangement, the memory use efficiency of the parameter RAM unit can be improved. Thus, if the memory capacity of the parameter RAM is constant, more graphics can be registered in the parameter RAM.

【0162】また、複数のキャラクタ配列を表示させる
場合、パラメータRAMにおけるCPUからコントロー
ルする図形が減少するので、処理速度を向上することが
できる。
When displaying a plurality of character arrays, the number of graphics controlled by the CPU in the parameter RAM is reduced, so that the processing speed can be improved.

【0163】さらに、パラメータRAM部における水平
(X)方向のキャラクタ配列と、垂直(Y)方向のキャ
ラクタ配列とが混在していても、共通の画像メモリアド
レス演算部により、図形データROM部からキャラクタ
データを読み出すためのアドレスを生成することが可能
であり、回路素子数をより小さくすることができる。
Further, even if the character arrangement in the horizontal (X) direction and the character arrangement in the vertical (Y) direction in the parameter RAM section are mixed, the character data is transferred from the graphic data ROM section by the common image memory address operation section. An address for reading data can be generated, and the number of circuit elements can be further reduced.

【0164】また、パラメータRAM部のキャラクタ配
列を水平方向、垂直方向および水平方向と垂直方向を混
在させる方法だけでなく、斜め方向あるいは配列方向を
関数により定義し、パラメータRAM部のメモリ容量を
大幅に増やすことなく、多様なアニメーションを表示す
ることが可能である。
In addition to the method of mixing the character arrangement of the parameter RAM section in the horizontal direction, the vertical direction, and the horizontal and vertical directions, the oblique direction or the arrangement direction is defined by a function, and the memory capacity of the parameter RAM section is greatly increased. Various animations can be displayed without increasing the number of animations.

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

【図1】本発明の図形処理装置の第1の実施の形態を示
すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a graphic processing apparatus according to the present invention.

【図2】本発明の図形処理装置を構成する画像メモリア
ドレス演算部6の第1の実施の形態を示すブロック図
と、タイミングチャートである。
FIGS. 2A and 2B are a block diagram and a timing chart showing a first embodiment of an image memory address calculator 6 constituting the graphic processing device of the present invention.

【図3】本発明の図形処理装置を構成するパラメータR
AM部2のメモリ構成を示す図である。
FIG. 3 shows a parameter R constituting the graphic processing apparatus of the present invention.
FIG. 3 is a diagram illustrating a memory configuration of an AM unit 2.

【図4】本発明の図形処理装置を用いて生成したアニメ
ーション図形と、このアニメーション図形を構成するキ
ャラクタの配列を説明するための図である。
FIG. 4 is a diagram for explaining an animation graphic generated by using the graphic processing device of the present invention and an arrangement of characters constituting the animation graphic.

【図5】従来のパラメータRAMA2において図25
(b),(b)’のアニメーション図形に対応するメモ
リ構成と、本発明のパラメータRAM2における図4
(b),(b)’のアニメーション図形に対応するメモ
リ構成とを表す図である。
FIG. 5 shows a conventional parameter RAMA2 in FIG.
(B), the memory configuration corresponding to the animation figure of (b) ′ and FIG. 4 in the parameter RAM 2 of the present invention.
It is a figure showing the memory structure corresponding to the animation figure of (b) and (b) '.

【図6】キャラクタの配列が水平方向の配列である場合
の走査線を説明するための図、およびスプライトSP6
を構成するキャラクタCH1〜CH16の図形データR
OM9のキャラクタ配列を表す図、並びにキャラクタ番
号と図形データROM上位アドレスおよび図形データR
OM下位アドレスの関係を示す図である。
FIG. 6 is a diagram for explaining scanning lines when the character arrangement is a horizontal arrangement, and a sprite SP6.
Data R of characters CH1 to CH16 constituting
A diagram showing a character array of the OM9, a character number, a graphic data ROM upper address, and graphic data R.
FIG. 9 is a diagram illustrating a relationship between OM lower addresses.

【図7】キャラクタ配列が水平方向の場合に、本発明の
図形処理装置を構成する画像メモリアドレス演算部61
の具体的な動作を説明するための図である。
FIG. 7 is a diagram showing an image memory address calculating unit 61 constituting the graphic processing device of the present invention when the character array is in the horizontal direction.
It is a figure for explaining the concrete operation of.

【図8】キャラクタの配列が垂直方向の配列である場合
の走査線を説明するための図、およびスプライトSP8
を構成するキャラクタCH1〜CH16の図形データR
OM9のキャラクタ配列を表す図、並びにキャラクタ番
号と図形データROM上位アドレスおよび図形データR
OM下位アドレスの関係を示す図である。
FIG. 8 is a diagram for explaining scanning lines when the character arrangement is a vertical arrangement, and a sprite SP8.
Data R of characters CH1 to CH16 constituting
A diagram showing a character array of the OM9, a character number, a graphic data ROM upper address, and graphic data R.
FIG. 9 is a diagram illustrating a relationship between OM lower addresses.

【図9】キャラクタ配列が垂直方向の場合に、本発明の
図形処理装置を構成する画像メモリアドレス演算部61
の具体的な動作を説明するための図である。
FIG. 9 is a diagram showing an image memory address calculating unit 61 constituting the graphic processing device of the present invention when the character array is in the vertical direction.
It is a figure for explaining the concrete operation of.

【図10】図2に示す本発明の画像メモリアドレス演算
部61の処理方法を示すフローチャートである。
FIG. 10 is a flowchart showing a processing method of the image memory address calculation unit 61 of the present invention shown in FIG.

【図11】本発明の図形処理装置を構成する画像メモリ
アドレス演算部6の第2の実施の形態を示すブロック図
である。
FIG. 11 is a block diagram showing a second embodiment of the image memory address calculation unit 6 constituting the graphic processing device of the present invention.

【図12】図11に示す画像メモリアドレス演算部62
により生成された図形データROMアドレスにより、キ
ャラクタが斜め方向に配列されたスプライトの図であ
る。
12 is an image memory address calculation unit 62 shown in FIG.
FIG. 4 is a diagram of a sprite in which characters are arranged in an oblique direction according to a graphic data ROM address generated by (1).

【図13】図11に示す本発明の画像メモリアドレス演
算部62の処理方法を示すフローチャートである。
FIG. 13 is a flowchart showing a processing method of the image memory address calculation unit 62 of the present invention shown in FIG.

【図14】本発明の図形処理装置を構成する画像メモリ
アドレス演算部6の第3の実施の形態を示すブロック図
である。
FIG. 14 is a block diagram showing a third embodiment of the image memory address calculation unit 6 constituting the graphic processing device of the present invention.

【図15】図14に示す画像メモリアドレス演算部63
により生成された図形データROMアドレスにより、キ
ャラクタが斜め方向に配列されたスプライトの図であ
る。
15 is an image memory address calculation unit 63 shown in FIG.
FIG. 4 is a diagram of a sprite in which characters are arranged in an oblique direction according to a graphic data ROM address generated by (1).

【図16】図14に示す本発明の画像メモリアドレス演
算部63の処理方法を示すフローチャートである。
FIG. 16 is a flowchart showing a processing method of the image memory address calculation unit 63 of the present invention shown in FIG.

【図17】本発明の図形処理装置を構成する画像メモリ
アドレス演算部6の第4の実施の形態を示すブロック図
である。
FIG. 17 is a block diagram showing a fourth embodiment of the image memory address calculating section 6 constituting the graphic processing device of the present invention.

【図18】図17に示す本発明の画像メモリアドレス演
算部64の処理方法を示すフローチャートである。
18 is a flowchart showing a processing method of the image memory address calculation unit 64 of the present invention shown in FIG.

【図19】従来の図形処理装置を示すブロック図であ
る。
FIG. 19 is a block diagram showing a conventional graphic processing device.

【図20】従来の図形処理装置を構成する画像メモリア
ドレス演算部196を示すブロック図と、タイミングチ
ャートである。
FIG. 20 is a block diagram and a timing chart showing an image memory address calculation unit 196 included in a conventional graphic processing apparatus.

【図21】従来の図形処理装置を構成するパラメータR
AM部192のメモリ構成を示す図である。
FIG. 21 shows a parameter R constituting a conventional graphic processing apparatus.
FIG. 3 is a diagram illustrating a memory configuration of an AM unit 192.

【図22】画面表示領域とこの中に含まれるスプライト
を説明するための説明図である。
FIG. 22 is an explanatory diagram for describing a screen display area and sprites included therein.

【図23】X(水平)方向およびY(垂直)方向にキャ
ラクタが配列された各スプライトと、図形データROM
におけるキャラクタ配列とを説明するための図である。
FIG. 23 shows sprites in which characters are arranged in the X (horizontal) direction and the Y (vertical) direction, and a graphic data ROM.
FIG. 3 is a diagram for explaining a character arrangement in FIG.

【図24】スプライトSP1〜SP4を説明するための
図である。
FIG. 24 is a diagram for explaining sprites SP1 to SP4.

【図25】アニメーション図形251〜253の構成
と、アニメーション図形251〜253をそれぞれ構成
するスプライトSP1〜SP3のキャラクタ構成とを示
す図である。
FIG. 25 is a diagram showing a configuration of animation figures 251 to 253 and a character configuration of sprites SP1 to SP3 constituting the animation figures 251 to 253, respectively.

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

1,191 図形制御部 2,192 パラメータRAM部 3,193 当たり判定部 4,194 カウンタ制御部 5,195 表示図形バッファメモリ 6,61,62,63,64,196 画像メモリア
ドレス演算部 7,197 画像データ修飾演算部 8,198 CPU 9,199 図形データROM 10,1910 表示装置 11 表示スプライト数格納部 12 スプライト個数算出部 21,201 キャラクタカウント部 22,202 減算回路 23,203 アドレス分離部 24,26,29,111,116,141,204,
206 加算回路 25A,25B,205 乗算回路 27,28 ANDゲート 100,1900 図形処理部 112 レジスタ 113,115 選択手段 114 累積加算回路 117 1(h)固定回路部 142 NANDゲート 171 水平方向キャラクタ演算関数部 172 垂直方向キャラクタ演算関数部
1,191 graphic control unit 2,192 parameter RAM unit 3,193 hit determination unit 4,194 counter control unit 5,195 display graphic buffer memory 6,61,62,63,64,196 image memory address calculation unit 7,197 Image data modification operation unit 8,198 CPU 9,199 Graphic data ROM 10,1910 Display device 11 Display sprite number storage unit 12 Sprite number calculation unit 21,201 Character count unit 22,202 Subtraction circuit 23,203 Address separation unit 24, 26, 29, 111, 116, 141, 204,
206 Addition circuit 25A, 25B, 205 Multiplication circuit 27, 28 AND gate 100, 1900 Graphic processing unit 112 Register 113, 115 Selection means 114 Cumulative addition circuit 117 1 1 (h) fixed circuit unit 142 NAND gate 171 Horizontal character operation function unit 172 Vertical character operation function part

フロントページの続き Fターム(参考) 2C001 BA06 BC08 CB01 CB02 CB04 CC02 CC03 5B050 BA07 BA08 BA11 EA24 FA02 5C082 AA06 BA43 BB32 CB01 DA22 DA35 MM02 Continued on the front page F term (reference) 2C001 BA06 BC08 CB01 CB02 CB04 CC02 CC03 5B050 BA07 BA08 BA11 EA24 FA02 5C082 AA06 BA43 BB32 CB01 DA22 DA35 MM02

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 画面表示領域に、複数のピクセルデータ
からなるキャラクタがX方向およびY方向にマトリクス
状に配列されたスプライトを表示する図形処理装置であ
って、 前記キャラクタの配列に関する情報であるキャラクタ配
列情報を含み、前記スプライトの図形情報であるスプラ
イト図形情報を格納するパラメータRAM部と、 前記キャラクタの画像データであるキャラクタデータを
格納する図形データROMと、 前記図形情報および前記キャラクタ配列情報を参照し
て、前記キャラクタデータを読み出すための前記図形デ
ータROMに対するアドレス情報である図形データRO
Mアドレスを生成する画像メモリアドレス演算部と、 前記キャラクタデータを入力し、表示装置に表示させる
ための画像信号を生成する画像データ修飾演算部と、を
備えることを特徴とする図形処理装置。
1. A graphic processing apparatus for displaying, on a screen display area, a sprite in which characters composed of a plurality of pixel data are arranged in a matrix in an X direction and a Y direction, the character being information relating to the arrangement of the characters. A parameter RAM unit that stores arrangement information and stores sprite graphic information that is graphic information of the sprite, a graphic data ROM that stores character data that is image data of the character, and refers to the graphic information and the character arrangement information. The graphic data RO, which is address information for the graphic data ROM for reading out the character data,
A graphic processing apparatus, comprising: an image memory address operation unit that generates an M address; and an image data modification operation unit that receives the character data and generates an image signal to be displayed on a display device.
【請求項2】 前記スプライトはX方向に配列された前
記キャラクタからなるXスプライトと、Y方向に配列さ
れた前記キャラクタからなるYスプライトとを含み、前
記キャラクタ配列情報は、前記Xスプライトに対応する
Xキャラクタ配列情報と前記Yスプライトに対応するY
キャラクタ配列情報とを含み、前記画像メモリアドレス
演算部は、前記Xキャラクタ配列情報に対応する前記図
形データROMアドレスと、前記Yキャラクタ配列情報
に対応する前記図形データROMアドレスとをそれぞれ
生成することを特徴とする請求項1記載の図形処理装
置。
2. The sprite includes an X sprite composed of the characters arranged in the X direction and a Y sprite composed of the characters arranged in the Y direction, and the character arrangement information corresponds to the X sprite. X character array information and Y corresponding to the Y sprite
Character array information, and wherein the image memory address calculation unit generates the graphic data ROM address corresponding to the X character array information and the graphic data ROM address corresponding to the Y character array information, respectively. 2. The graphic processing device according to claim 1, wherein:
【請求項3】 前記スプライトは斜め方向に配列された
前記キャラクタを含み、前記キャラクタ配列情報は前記
斜め方向に配列された前記キャラクタに対応する斜めキ
ャラクタ配列情報を含み、前記画像メモリアドレス演算
部は前記斜めキャラクタ配列情報に対応する前記図形デ
ータROMアドレスを生成することを特徴とする請求項
1記載の図形処理装置。
3. The sprite includes the characters arranged diagonally, the character arrangement information includes diagonal character arrangement information corresponding to the characters arranged diagonally, and the image memory address calculation unit 2. The graphic processing apparatus according to claim 1, wherein said graphic data ROM address corresponding to said oblique character array information is generated.
【請求項4】 前記スプライト図形情報を入力し、前記
スプライトを前記画面表示領域に表示するか否かを判定
し、前記面表示領域に表示すると判定した場合活性化す
る当たり情報を出力する当たり判定部と、 活性化された前記当たり情報に対応する前記スプライト
の番号であるスプライト番号を格納する表示図形バッフ
ァメモリとを備え、 前記画像メモリアドレス演算部は、前記表示図形バッフ
ァメモリに格納された前記スプライト番号を参照して、
前記図形データROMアドレスを生成することを特徴と
する請求項1記載の図形処理装置。
4. A hit determination for inputting the sprite graphic information, determining whether to display the sprite in the screen display area, and outputting hit information to be activated when determining to display the sprite in the screen display area. And a display graphic buffer memory for storing a sprite number that is the number of the sprite corresponding to the activated hit information. The image memory address calculation unit is configured to store the sprite number in the display graphic buffer memory. Referring to the sprite number,
2. The graphic processing apparatus according to claim 1, wherein said graphic data ROM address is generated.
【請求項5】 前記スプライト図形情報は、前記Xスプ
ライトおよび前記Yスプライトの各基準原点のX方向お
よびY方向の各座標値であるX原点座標値およびY原点
座標値と、前記Xスプライトおよび前記Yスプライトの
X方向のサイズであるスプライトXサイズと、前記Xス
プライトおよび前記YスプライトのY方向のサイズであ
るスプライトYサイズとを含むことを特徴とする請求項
2記載の図形処理装置。
5. The X-sprite graphic information includes an X-origin coordinate value and a Y-origin coordinate value, which are coordinate values in the X and Y directions of respective reference origins of the X sprite and the Y sprite. 3. The graphic processing apparatus according to claim 2, further comprising a sprite X size that is a size of the Y sprite in the X direction, and a sprite Y size that is a size of the X sprite and the Y sprite in the Y direction.
【請求項6】 前記画像メモリアドレス演算部は、前記
画面表示領域のX方向に走査する走査線のY方向の番号
を示す走査線値から前記Y原点座標値を減算する減算回
路と、 前記減算回路から出力された減算結果を、前記キャラク
タを構成する前記ピクセルデータのY方向の配列数で除
算し、商であるY方向への前記キャラクタのキャラクタ
順番を表すY方向キャラクタ番地と前記図形データRO
Mアドレスの下位アドレスである図形データROMアド
レス下位アドレスとを出力するアドレス分離部と、 (前記スプライトXサイズ−1)と(前記スプライトY
サイズ−1)と前記キャラクタ配列情報とを入力し、前
記キャラクタ配列がX方向のときの前記キャラクタ配列
情報が入力したときは(前記スプライトXサイズ−1)
を出力し、前記キャラクタ配列がY方向のときの前記キ
ャラクタ配列情報が入力したときは(前記スプライトY
サイズ−1)を出力する選択手段と、 前記選択手段から出力される(前記スプライトXサイズ
−1)と(前記スプライトYサイズ−1)にそれぞれ1
を加算する第1および第2の加算回路と、 前記第1の加算回路からの加算結果と前記Y方向キャラ
クタ番地とを乗算する第1の乗算回路と、 前記スプライトを構成する前記キャラクタのX方向の順
番を表すキャラクタカウント値と前記第2の加算回路か
らの加算結果とを乗算する第2の乗算回路と、 前記第1および第2の乗算回路からの各出力データと、
前記画面表示領域内のスプライトの番号であるスプライ
ト番号とを加算し、加算結果を前記図形データROMア
ドレスの上位アドレスである図形データROMアドレス
上位アドレスとして出力する第3の加算回路と、を備え
ることを特徴とする請求項5記載の図形処理装置。
6. A subtraction circuit for subtracting the Y origin coordinate value from a scanning line value indicating a number of a scanning line scanned in the X direction of the screen display area in the Y direction, the image memory address computing unit; The subtraction result output from the circuit is divided by the number of arrangements of the pixel data constituting the character in the Y direction, and a Y direction character address indicating the character order of the character in the Y direction, which is a quotient, and the graphic data RO
An address separating unit for outputting a figure data ROM address lower address which is a lower address of the M address; (the sprite X size -1) and (the sprite Y
When the size-1) and the character arrangement information are input, and when the character arrangement information is input when the character arrangement is in the X direction (the sprite X size-1)
Is output, and when the character arrangement information is input when the character arrangement is in the Y direction (the sprite Y
Selecting means for outputting (size-1); (sprite X size-1) and (sprite Y size-1) output from the selecting means are each 1
First and second addition circuits, a first multiplication circuit for multiplying the addition result from the first addition circuit by the Y-direction character address, and an X-direction of the character constituting the sprite. A second multiplication circuit for multiplying a character count value representing the order of the above by the addition result from the second addition circuit; and output data from the first and second multiplication circuits,
A third adder circuit for adding a sprite number which is a sprite number in the screen display area and outputting a result of the addition as a graphic data ROM address upper address which is an upper address of the graphic data ROM address. The graphic processing device according to claim 5, wherein:
【請求項7】 前記画像メモリアドレス演算部は、前記
画面表示領域のX方向に走査する走査線のY方向の番号
を示す走査線値から前記Y原点座標値を減算する減算回
路と、 前記減算回路から出力された減算結果を、前記キャラク
タを構成する前記ピクセルデータのY方向の配列数で除
算し、商であるY方向への前記キャラクタのキャラクタ
順番を表すY方向キャラクタ番地と前記図形データRO
Mアドレスの下位アドレスである図形データROMアド
レス下位アドレスとを出力するアドレス分離部と、 前記Y方向キャラクタ番地を順に累積加算する第1の累
積加算回路と、 (前記スプライトXサイズ−1)と前記第1の累積加算
回路から出力される第1の累積加算結果と前記キャラク
タ配列情報とを入力し、前記キャラクタ配列がX方向の
ときの前記キャラクタ配列情報が入力したときは(前記
スプライトXサイズ−1)を出力し、前記キャラクタ配
列が斜め方向のときの前記キャラクタ配列情報が入力し
たときは前記第1の累積加算結果を出力する第1の選択
手段と、 前記第1の選択手段から出力される(前記スプライトX
サイズ−1)と前記第1の累積加算結果に1を加算する
第1の加算回路と、 前記キャラクタ配列がX方向のときの前記キャラクタ配
列情報が入力したときは、前記Y方向キャラクタ番地を
出力し、前記キャラクタ配列が斜め方向のときの前記キ
ャラクタ配列情報が入力したときは1を出力する1
(h)固定回路部と、 前記第1の加算回路の加算結果と前記1(h)固定回路
部からの出力データとを乗算する乗算回路と、 前記スプライトを構成する前記キャラクタのX方向の順
番を表すキャラクタカウント値と前記第1の累積加算結
果とを入力し、前記キャラクタカウント値に関して累積
加算を行い第2の累積加算結果を出力する第2の累積加
算回路と、 前記キャラクタカウント値と前記第2の累積加算結果と
前記キャラクタ配列情報とを入力し、前記キャラクタ配
列がX方向のときの前記キャラクタ配列情報が入力した
ときは前記キャラクタカウント値を出力し、前記キャラ
クタ配列が斜め方向のときの前記キャラクタ配列情報が
入力したときは前記第2の累積加算結果を出力する第2
の選択手段と、 前記乗算回路の出力データと前記第2の選択手段からの
出力データと前記画面表示領域内のスプライトの番号で
あるスプライト番号とを加算し、加算結果を前記図形デ
ータROMアドレスの上位アドレスである図形データR
OMアドレス上位アドレスとして出力する第3の加算回
路と、を備えることを特徴とする請求項5記載の図形処
理装置。
7. A subtraction circuit for subtracting the Y origin coordinate value from a scanning line value indicating a number of a scanning line scanning in the X direction of the screen display area in the Y direction, the image memory address computing unit; The subtraction result output from the circuit is divided by the number of arrangements of the pixel data constituting the character in the Y direction, and a Y direction character address indicating the character order of the character in the Y direction, which is a quotient, and the graphic data RO
An address separating unit for outputting a figure data ROM address lower address which is a lower address of the M address, a first accumulator circuit for accumulatively adding the Y-direction character addresses in order, (the sprite X size -1) When the first cumulative addition result output from the first cumulative addition circuit and the character arrangement information are input, and when the character arrangement information is input when the character arrangement is in the X direction, (the sprite X size- 1) outputting the first cumulative addition result when the character arrangement information is input when the character arrangement is in an oblique direction; and the first selection means for outputting the first cumulative addition result. (The above Sprite X
A first addition circuit for adding 1 to the size-1) and the first cumulative addition result; and outputting the Y-direction character address when the character arrangement information when the character arrangement is in the X direction is input. When the character arrangement information is input when the character arrangement is in an oblique direction, 1 is output.
(H) a fixed circuit unit; a multiplication circuit that multiplies the addition result of the first adder circuit with the output data from the 1 (h) fixed circuit unit; and an order of the characters forming the sprite in the X direction. A second cumulative addition circuit that inputs a character count value representing the following and the first cumulative addition result, performs cumulative addition on the character count value, and outputs a second cumulative addition result; When the second cumulative addition result and the character arrangement information are input, the character count value is output when the character arrangement information is input when the character arrangement is in the X direction, and when the character arrangement is in an oblique direction. Output the second cumulative addition result when the character arrangement information is input.
Selecting means for adding the output data of the multiplying circuit, the output data from the second selecting means, and the sprite number which is the number of the sprite in the screen display area. Graphic data R as upper address
6. The graphic processing apparatus according to claim 5, further comprising: a third adder circuit for outputting as an OM address upper address.
【請求項8】 前記画像メモリアドレス演算部は、前記
画面表示領域のX方向に走査する走査線のY方向の番号
を示す走査線値から前記Y原点座標値を減算する減算回
路と、 前記減算回路から出力された減算結果を、前記キャラク
タを構成する前記ピクセルデータのY方向の配列数で除
算し、商であるY方向への前記キャラクタのキャラクタ
順番を表すY方向キャラクタ番地と前記図形データRO
Mアドレスの下位アドレスである図形データROMアド
レス下位アドレスとを出力するアドレス分離部と、 前記Y方向キャラクタ番地を順に累積加算する第1の累
積加算回路と、 (前記スプライトXサイズ−1)と前記第1の累積加算
回路から出力される第1の累積加算結果と前記キャラク
タ配列情報とを入力し、前記キャラクタ配列がX方向の
ときの前記キャラクタ配列情報が入力したときは(前記
スプライトXサイズ−1)を出力し、前記キャラクタ配
列が斜め方向のときの前記キャラクタ配列情報が入力し
たときは前記第1の累積加算結果を出力する第1の選択
手段と、 前記第1の選択手段から出力される(前記スプライトX
サイズ−1)と前記第1の累積加算結果に、前記キャラ
クタ配列がX方向のときの前記キャラクタ配列情報が入
力したときは1を加算し、記キャラクタ配列が斜め方向
のときの前記キャラクタ配列情報が入力したときは0を
加算する第1の加算回路と、 前記キャラクタ配列がX方向のときの前記キャラクタ配
列情報が入力したときは、前記Y方向キャラクタ番地を
出力し、前記キャラクタ配列が斜め方向のときの前記キ
ャラクタ配列情報が入力したときは1を出力する1
(h)固定回路部と、 前記第1の加算回路の加算結果と前記1(h)固定回路
部からの出力データとを乗算する乗算回路と、 前記スプライトを構成する前記キャラクタのX方向の順
番を表すキャラクタカウント値と前記第1の累積加算結
果とを入力し、前記キャラクタカウント値に関して累積
加算を行いさらに1を加算する第2の累積加算結果を出
力する第2の累積加算回路と、 前記キャラクタカウント値と前記第2の累積加算結果と
前記キャラクタ配列情報とを入力し、前記キャラクタ配
列がX方向のときの前記キャラクタ配列情報が入力した
ときは前記キャラクタカウント値を出力し、前記キャラ
クタ配列が斜め方向のときの前記キャラクタ配列情報が
入力したときは前記第2の累積加算結果を出力する第2
の選択手段と、 前記乗算回路の出力データと前記第2の選択手段からの
出力データと前記画面表示領域内のスプライトの番号で
あるスプライト番号とを加算し、加算結果を前記図形デ
ータROMアドレスの上位アドレスである図形データR
OMアドレス上位アドレスとして出力する第3の加算回
路と、を備えることを特徴とする請求項5記載の図形処
理装置。
8. A subtraction circuit for subtracting the Y origin coordinate value from a scan line value indicating a number in the Y direction of a scan line scanned in the X direction of the screen display area, the image memory address operation unit; The subtraction result output from the circuit is divided by the number of arrangements of the pixel data constituting the character in the Y direction, and a Y direction character address indicating the character order of the character in the Y direction, which is a quotient, and the graphic data RO
An address separating unit for outputting a figure data ROM address lower address which is a lower address of the M address, a first accumulator circuit for accumulatively adding the Y-direction character addresses in order, (the sprite X size -1) When the first cumulative addition result output from the first cumulative addition circuit and the character arrangement information are input, and when the character arrangement information is input when the character arrangement is in the X direction, (the sprite X size- 1) outputting the first cumulative addition result when the character arrangement information is input when the character arrangement is in an oblique direction; and the first selection means for outputting the first cumulative addition result. (The above Sprite X
When the character arrangement information is input when the character arrangement is in the X direction, 1 is added to the size-1) and the first cumulative addition result, and the character arrangement information when the character arrangement is in the oblique direction is added. A first addition circuit that adds 0 when the character array is input, and outputs the Y-direction character address when the character array information is input when the character array is in the X direction, and the character array is in an oblique direction. When the character arrangement information at the time of is input, 1 is output.
(H) a fixed circuit unit; a multiplication circuit that multiplies the addition result of the first adder circuit with the output data from the 1 (h) fixed circuit unit; and an order of the characters forming the sprite in the X direction. A second cumulative addition circuit that inputs a character count value representing the following and the first cumulative addition result, performs a cumulative addition on the character count value, and outputs a second cumulative addition result of adding 1. Inputting a character count value, the second cumulative addition result, and the character array information, and outputting the character count value when the character array information is input when the character array is in the X direction; Output the second cumulative addition result when the character arrangement information is input when is in the oblique direction.
Selecting means for adding the output data of the multiplying circuit, the output data from the second selecting means, and the sprite number which is the number of the sprite in the screen display area. Graphic data R as upper address
6. The graphic processing apparatus according to claim 5, further comprising: a third adder circuit for outputting as an OM address upper address.
【請求項9】 前記画像メモリアドレス演算部は、前記
画面表示領域のX方向に走査する走査線のY方向の番号
を示す走査線値から前記Y原点座標値を減算する減算回
路と、 前記減算回路から出力された減算結果を、前記キャラク
タを構成する前記ピクセルデータのY方向の配列数で除
算し、商であるY方向への前記キャラクタのキャラクタ
順番を表すY方向キャラクタ番地と前記図形データRO
Mアドレスの下位アドレスである図形データROMアド
レス下位アドレスとを出力するアドレス分離部と、 前記Y方向キャラクタ番地を入力してこのY方向キャラ
クタ番地に対して所定の演算を行い第1の演算結果を出
力する第1の演算関数部と、 (前記スプライトXサイズ−1)と前記第1の演算結果
と前記キャラクタ配列情報とを入力し、前記キャラクタ
配列がX方向のときの前記キャラクタ配列情報が入力し
たときは(前記スプライトXサイズ−1)を出力し、前
記キャラクタ配列がX方向でないときの前記キャラクタ
配列情報が入力したときは前記第1の演算結果を出力す
る第1の選択手段と、 前記第1の選択手段から出力される(前記スプライトX
サイズ−1)と前記第1の演算結果に、前記キャラクタ
配列がX方向のときの前記キャラクタ配列情報が入力し
たときは1を加算し、記キャラクタ配列がX方向でない
ときの前記キャラクタ配列情報が入力したときは0を加
算する第1の加算回路と、 前記キャラクタ配列がX方向のときの前記キャラクタ配
列情報が入力したときは、前記Y方向キャラクタ番地を
出力し、前記キャラクタ配列がX方向でないときの前記
キャラクタ配列情報が入力したときは1を出力する1
(h)固定回路部と、 前記第1の加算回路の加算結果と前記1(h)固定回路
部からの出力データとを乗算する乗算回路と、 前記スプライトを構成する前記キャラクタのX方向の順
番を表すキャラクタカウント値と前記第1の演算結果と
を入力し、前記キャラクタカウント値毎に前記第1の演
算結果に対して所定の演算を行い第2の演算結果を出力
する第2の演算関数部と、 前記キャラクタカウント値と前記第2の演算結果と前記
キャラクタ配列情報とを入力し、前記キャラクタ配列が
X方向のときの前記キャラクタ配列情報が入力したとき
は前記キャラクタカウント値を出力し、前記キャラクタ
配列がX方向でないときの前記キャラクタ配列情報が入
力したときは前記第2の演算結果を出力する第2の選択
手段と、 前記乗算回路の出力データと前記第2の選択手段からの
出力データと前記画面表示領域内のスプライトの番号で
あるスプライト番号とを加算し、加算結果を前記図形デ
ータROMアドレスの上位アドレスである図形データR
OMアドレス上位アドレスとして出力する第2の加算回
路と、を備えることを特徴とする請求項5記載の図形処
理装置。
9. A subtraction circuit for subtracting the Y origin coordinate value from a scan line value indicating a number in the Y direction of a scan line scanned in the X direction of the screen display area, the image memory address operation unit; The result of the subtraction output from the circuit is divided by the number of arrangements of the pixel data constituting the character in the Y direction, and a Y direction character address indicating the character order of the character in the Y direction, which is a quotient, and the graphic data RO
An address separating section for outputting a figure data ROM address lower address which is a lower address of the M address; inputting the Y-direction character address to perform a predetermined operation on the Y-direction character address to obtain a first operation result; A first operation function section to be output, (the sprite X size −1), the first operation result, and the character array information are input, and the character array information when the character array is in the X direction is input. First selecting means for outputting (the sprite X size -1) when the input is performed, and outputting the first calculation result when the character array information is input when the character array is not in the X direction; Output from the first selecting means (the sprite X
When the character array information when the character array is in the X direction is input, 1 is added to the size-1) and the first calculation result, and the character array information when the character array is not in the X direction is added. A first adding circuit that adds 0 when input, and outputs the Y direction character address when the character array information is input when the character array is in the X direction, and the character array is not in the X direction. When the character arrangement information is input, 1 is output.
(H) a fixed circuit unit; a multiplication circuit that multiplies the addition result of the first adder circuit with the output data from the 1 (h) fixed circuit unit; and an order of the characters forming the sprite in the X direction. A second calculation function for inputting a character count value representing the following and the first calculation result, performing a predetermined calculation on the first calculation result for each of the character count values, and outputting a second calculation result Part, input the character count value, the second calculation result and the character array information, and output the character count value when the character array information is input when the character array is in the X direction; A second selecting means for outputting the second operation result when the character arrangement information is input when the character arrangement is not in the X direction; and an output data of the multiplication circuit. Data and the output data from the second selecting means and a sprite number which is a sprite number in the screen display area, and the addition result is represented by graphic data R which is an upper address of the graphic data ROM address.
The graphic processing apparatus according to claim 5, further comprising a second adder circuit that outputs the OM address as an upper address.
【請求項10】 画面表示領域に、複数のピクセルデー
タからなるキャラクタがX方向およびY方向にマトリク
ス状に配列されたスプライトを表示する図形処理方法で
あって、 前記スプライトを構成する前記キャラクタの走査線方向
であるX方向の順番を表すキャラクタカウント値を順次
インクリメントする第1のステップと、 前記画面表示領域のX方向に走査する走査線のY方向の
番号を示す走査線値から前記Y原点座標値を減算し、前
記キャラクタ内における走査線値であるキャラクタ内走
査線値を算出する第2のステップと、 前記キャラクタ内走査線値を、前記キャラクタを構成す
る前記ピクセルデータのY方向の配列数で除算し、商で
あるY方向への前記キャラクタのキャラクタ順番を表す
Y方向キャラクタ番地と、前記キャラクタの画像データ
であるキャラクタデータを格納する図形データROMの
アドレス情報のうちの下位アドレスである図形データR
OMアドレス下位アドレスとを出力する第3のステップ
と、 前記キャラクタ配列がX方向のときは、前記スプライト
のX方向のサイズであるスプライトXサイズと前記Y方
向キャラクタ番地とを乗算し、かつ前記キャラクタカウ
ント値を保持する第4のステップと、 前記キャラクタ配列がY方向のときは、前記Y方向キャ
ラクタ番地を保持し、かつ前記スプライトのY方向のサ
イズであるスプライトYサイズと前記キャラクタカウン
ト値とを乗算する第5のステップと、 前記第4のステップおよび前記第5のステップで算出さ
れた各乗算結果を参照して、前記図形データROMアド
レスの上位アドレスである図形データROMアドレス上
位アドレスを算出する第6のステップと、を備えること
を特徴とする図形処理方法。
10. A graphic processing method for displaying a sprite in which a character composed of a plurality of pixel data is arranged in a matrix in an X direction and a Y direction in a screen display area, wherein the scanning of the character constituting the sprite is performed. A first step of sequentially incrementing a character count value representing an order in the X direction, which is a line direction; and a Y origin coordinate based on a scanning line value indicating a number of a scanning line scanned in the X direction of the screen display area. A second step of subtracting a value to calculate a scanning line value within the character which is a scanning line value within the character; and calculating the scanning line value within the character by the number of arrays of pixel data constituting the character in the Y direction. And a character address in the Y direction representing the character order of the character in the Y direction, which is a quotient, Graphic data R, which is the lower address of the address information of the graphic data ROM for storing the character data which is the image data of
A third step of outputting an OM address lower address, and when the character array is in the X direction, multiplying a sprite X size, which is a size of the sprite in the X direction, by the Y direction character address; A fourth step of holding a count value; and when the character arrangement is in the Y direction, holding the Y direction character address, and determining the sprite Y size, which is the size of the sprite in the Y direction, and the character count value. A fifth step of multiplying, and a figure data ROM address upper address which is an upper address of the figure data ROM address is calculated with reference to each multiplication result calculated in the fourth step and the fifth step. And a sixth step.
JP2000257654A 2000-08-28 2000-08-28 Graphic processing apparatus and graphic processing method Expired - Fee Related JP3595497B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000257654A JP3595497B2 (en) 2000-08-28 2000-08-28 Graphic processing apparatus and graphic processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000257654A JP3595497B2 (en) 2000-08-28 2000-08-28 Graphic processing apparatus and graphic processing method

Publications (2)

Publication Number Publication Date
JP2002073005A true JP2002073005A (en) 2002-03-12
JP3595497B2 JP3595497B2 (en) 2004-12-02

Family

ID=18746082

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000257654A Expired - Fee Related JP3595497B2 (en) 2000-08-28 2000-08-28 Graphic processing apparatus and graphic processing method

Country Status (1)

Country Link
JP (1) JP3595497B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937666A (en) * 2009-06-29 2011-01-05 雅马哈株式会社 Image display

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937666A (en) * 2009-06-29 2011-01-05 雅马哈株式会社 Image display

Also Published As

Publication number Publication date
JP3595497B2 (en) 2004-12-02

Similar Documents

Publication Publication Date Title
EP1847965A1 (en) Plotting device and plotting method
US5754161A (en) Graphic display scrolling apparatus
US20050104893A1 (en) Three dimensional image rendering apparatus and three dimensional image rendering method
JP2002073005A (en) Graphic processor and graphic processing method
JP2008097450A (en) Graphics drawing device and program
JPH0934411A (en) Image display device and liquid crystal display controller
JP2899838B2 (en) Storage device
JP3481913B2 (en) Image processing device
JP3548648B2 (en) Drawing apparatus and drawing method
JP3447670B2 (en) Image processing apparatus and image processing method
JP2768370B2 (en) Drawing method
JP2013015952A (en) Information processor
JP3971448B2 (en) Drawing apparatus and drawing method
JP2003187260A (en) Image rendering program, recording medium in which image rendering program is recorded, image rendering apparatus and method
JPH0588838A (en) Multi window display device
US20060268014A1 (en) System and method for efficiently supporting image deformation procedures in an electronic device
JP3165094B2 (en) Image processing apparatus and image processing method
JP3264941B2 (en) Image display control method and apparatus
US7417639B2 (en) Drawing device and information processing apparatus
JP3517982B2 (en) Drawing device
JP2842270B2 (en) Image processing apparatus and method, and object prewriting flag setting method
JPH08235380A (en) Method and device for displaying polyhedron
JP2015197718A (en) Interpolation device and interpolation method
CN114422847A (en) Video split-screen display method and computer readable storage medium
JPS63104191A (en) Drawn picture processor

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040127

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040324

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040810

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040903

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees