JPH0127469B2 - - Google Patents
Info
- Publication number
- JPH0127469B2 JPH0127469B2 JP8206483A JP8206483A JPH0127469B2 JP H0127469 B2 JPH0127469 B2 JP H0127469B2 JP 8206483 A JP8206483 A JP 8206483A JP 8206483 A JP8206483 A JP 8206483A JP H0127469 B2 JPH0127469 B2 JP H0127469B2
- Authority
- JP
- Japan
- Prior art keywords
- register
- address
- contents
- dot
- block
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
- 238000004364 calculation method Methods 0.000 claims description 21
- 230000003247 decreasing effect Effects 0.000 claims description 8
- 238000000034 method Methods 0.000 description 28
- 238000010586 diagram Methods 0.000 description 13
- 238000012546 transfer Methods 0.000 description 5
- 238000009125 cardiac resynchronization therapy Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000007704 transition Effects 0.000 description 4
- 238000007796 conventional method Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Landscapes
- Image Generation (AREA)
Description
【発明の詳細な説明】
本発明はラスタ−走査型CRTを用いた文字、
図形(パターン)表示装置のパターン情報を記憶
する映像記憶器の内容の1ビツトもしくは複数の
ビツトで表示パターンの1ドツトを構成している
グラフイツク装置において、描画すべき位置のア
ドレスを演算して求める描画アドレス演算方式に
関する。DETAILED DESCRIPTION OF THE INVENTION The present invention provides characters using a raster scanning type CRT.
In a graphics device where one dot of a display pattern is made up of one or more bits of the contents of a video memory that stores pattern information of a figure (pattern) display device, the address of the position to be drawn is calculated and determined. Concerning drawing address calculation method.
コンピユータ端末装置としてラスタ走査型
CRTを用いたグラフイツク表示/描画装置は、
必要とする大容量映像情報記憶器が高度に集積回
路化されるに伴なつて、その価格が低下し、急激
に普及しつつある。グラフイツク表示/描画装置
に内蔵されている映像情報記憶器に映像情報を入
力するには、大別して次の2種の技術がある。 Raster scanning type as a computer terminal device
A graphic display/drawing device using CRT is
As the required large-capacity video information storage devices become highly integrated circuits, their prices are decreasing and they are rapidly becoming popular. There are roughly two types of techniques for inputting video information into a video information storage device built into a graphic display/drawing device.
第1は、データ・ベースに基づいて、直線、円
グラフイツク文字等を描画する機能を持つた描画
装置によつて映像情報を創造するものであり、第
2は、テレビ・カメラ等の画像をスキヤナーによ
つて得られるアナログ信号をデイジタル化して情
報を蓄わえるものである。 The first method is to create video information using a drawing device that has the function of drawing straight lines, circular graphs, etc. based on a database. It stores information by digitizing analog signals obtained by
文字描画を行う装置としては、二点間を直線で
結ぶことによつて文字を形成するようにした一般
にストローク法と呼ばれる方法を採用したもの
と、文字のドツト構成情報を参照しつつ、ドツト
単位の描画を行う方法を採用したものとの2種が
あり、従来より実施されている。 Devices that draw characters include those that use a method generally called the stroke method, which forms characters by connecting two points with straight lines, and devices that draw characters in units of dots while referring to the dot composition information of the character. There are two types of methods that have been used in the past: one that uses a drawing method.
ストローク法は、従来よりダイレクト走査型
CRTを使用したグラフイツク装置において既に
用いられていた方法であり、ラスタ走査型CRT
を使用したグラフイツク装置においても使用され
る場合がある。この場合には、二点間を結ぶ実線
による直線描画の繰返しによつて文字を構成する
ものである。第1図は、ストローク法による文字
描画例であり、図示されている文字“A”を描画
する為に合計6回の実線による直線描画を実行し
なければならない。このストローク法では描画を
線単位で行うため、文字を形成するドツト構成に
細かいアクセントをつけようとすると線描画の回
数が増大し処理が大変である。しかも漢字のよう
に文字外形が大きい場合であつても線の幅を変更
することが困難であるため、良好な文字表示品質
を得ることができない。さらに、文字を座標変化
テーブルという特殊な形態で表現せねばならない
ため設計が煩雑であるなどの欠点を有している。 The stroke method has traditionally been a direct scanning type.
This method was already used in graphics devices using CRTs, and is a raster scanning type CRT.
It may also be used in graphic devices using In this case, characters are constructed by repeatedly drawing straight lines using solid lines connecting two points. FIG. 1 shows an example of character drawing using the stroke method, and in order to draw the character "A" shown in the figure, straight line drawing using solid lines must be executed a total of six times. In this stroke method, drawing is performed line by line, so when attempting to add fine accents to the dot structure forming a character, the number of line drawings increases, making the process difficult. Furthermore, even when the outer shape of a character is large, such as a kanji character, it is difficult to change the line width, making it impossible to obtain good character display quality. Furthermore, it has the disadvantage that the design is complicated because characters must be expressed in a special format called a coordinate change table.
このようなストローク方式における欠点を除去
する為、線単位描画ではなくドツト単位描画を行
い文字を形成する装置も既に考えられている。ス
トローク方式と異なる点は、1ブロツクの描画を
実行する毎に、文字ドツト構成パターンを参照し
つつ、その内容に従がつて描画を行うことにあ
る。この装置ではストローク方式のような2点間
の実線補間は不要である。 In order to eliminate these drawbacks of the stroke method, devices have already been considered that form characters by drawing dots instead of lines. The difference from the stroke method is that each time one block is drawn, the character dot configuration pattern is referred to and drawing is performed according to its contents. This device does not require solid line interpolation between two points as in the stroke method.
第2図は8×8ドツトで構成される文字“A”
をドツト単位描画法を用いた従来例によつて描画
したときの描画結果、および描画順序の軌跡を矢
印で表記した図である。(I、J)=(1、1)の
描画開始点から点(1、8)までの1ブロツクの
描画は、文字ドツト構成パターンのデータ(この
場合は“00000000”)を逐一参照しながらドツト
単位に8回描画することによつて得られる。この
1ブロツクの描画が終了した後、次に描画すべき
文字ドツト構成パターンをレジスタに再設定
(“10000010”)し、点(2、1)から点(2、8)
までの次のブロツクの描画を行う。この過程を繰
返し、点(8、8)に描画が成された後、8ブロ
ツクの全描画が終了し、文字パターン“A”が表
示される。 Figure 2 shows the letter “A” made up of 8 x 8 dots.
FIG. 4 is a diagram showing the drawing results obtained by drawing according to a conventional example using the dot-by-dot drawing method and the locus of the drawing order with arrows. To draw one block from the drawing start point of (I, J) = (1, 1) to point (1, 8), dots are drawn while referring to the data of the character dot configuration pattern (in this case "00000000") one by one. Obtained by drawing 8 times per unit. After drawing this one block, the character dot configuration pattern to be drawn next is reset in the register (“10000010”), and the character dot configuration pattern to be drawn next is reset to the register (“10000010”), and the character dot configuration pattern to be drawn next is set in the register (“10000010”), and
Draws the next block up to. After repeating this process and drawing at point (8, 8), all eight blocks have been drawn and the character pattern "A" is displayed.
第5図は描画される映像メモリのワード・アド
レスと描画実施例における描画データとの関係を
示した図である。通常の文字表示装置ではワード
アドレス単位で映像メモリ・データの変更が行わ
れるが、ドツト単位での描画を実行できる描画装
置では、第5図に示すように描画開始点がワード
アドレス内の任意のビツト位置で良い。そのため
複数のアドレスにまたがる描画も可能である。第
6図は、第5図に示した描画を行うときのドツト
単位描画の順序を示す図であつて、第1ブロツク
の描画はから始まりで終了し、第2ブロツク
の描画は第1ブロツク描画の開始点の直上の点
から描画を開始し、で終了することを表現し
ている。即ち、描画方向は常に同じ方向(左から
右)であつた。 FIG. 5 is a diagram showing the relationship between the word address of the video memory to be drawn and the drawing data in the drawing embodiment. In a normal character display device, video memory data is changed in word address units, but in a drawing device that can execute dot-based drawing, the drawing start point can be set at any arbitrary point within the word address, as shown in Figure 5. The bit position is fine. Therefore, it is also possible to draw across multiple addresses. FIG. 6 is a diagram showing the order of dot unit drawing when performing the drawing shown in FIG. It expresses that drawing starts from the point directly above the starting point of and ends at. That is, the drawing direction was always the same (from left to right).
このため、第3図に従来例における特に描画座
標演算、すなわち描画アドレス演算の流れ図を示
すように、描画開始点の横(X)座標データxを
レジスタX,X′に、縦(Y)座標データyをレ
ジスタY,Y′にそれぞれ格納し、レジスタXの
内容を1つずつ増加させながら1ブロツク分の各
描画位置のXアドレスを演算し、文字データを参
照して描画を行ない、そして1ブロツク分の描画
が終了するとレジスタY,Y′を1つインクリメ
ントすると共にレジスタX′の内容をレジスタX
に転送して次のブロツクの描画アドレスを演算し
ている。 For this reason, as shown in FIG. 3, which is a flowchart of the drawing coordinate calculation, that is, the drawing address calculation, in the conventional example, the horizontal (X) coordinate data x of the drawing start point is stored in registers X, X', and the vertical (Y) coordinate Data y is stored in registers Y and Y' respectively, and the X address of each drawing position for one block is calculated while increasing the contents of register X by one. When drawing for a block is completed, registers Y and Y' are incremented by one, and the contents of register X' are transferred to register X.
The drawing address of the next block is calculated.
かくして、従来技術によるXおよびY座標アド
レス演算部のハードウエアは第10図に示すとお
りとなり、X,X′,YおよびY′レジスタ1,2,
3および4を必要とする。CPU5は描画開始点
のアドレスデータx,yをレジスタ1乃至4にそ
れぞれ転送する。1ブロツク分の描画アドレスは
Xレジスタ1の内容を1つずつ増加するインクリ
メンタ6によつて求められ、1ブロツク分の描画
アドレスが求まれば、Yレジスタ3の内容がイン
クリメンタ7によつて1つ増加されると共に、
X′レジスタ2の内容がXレジスタ1に転送され
る。 Thus, the hardware of the X and Y coordinate address calculation unit according to the prior art is as shown in FIG.
Requires 3 and 4. The CPU 5 transfers address data x and y of the drawing start point to registers 1 to 4, respectively. The drawing address for one block is determined by the incrementer 6, which increments the contents of the X register 1 by one, and when the drawing address for one block is determined, the contents of the Y register 3 are incremented by the incrementer 7. As well as being increased by one,
The contents of X' register 2 are transferred to X register 1.
以上のようにして、描画すべき領域の各描画位
置のXおよびYアドレスが算出される。そして、
算出されたX,Yアドレスに基づき文字データが
第8図に示す手順に従つて描画される。第8図に
おいて、aは描画すべき文字データの1ブロツク
分の情報を格納するパターンレジスタの内容と描
画が実行される映像メモリの描画アドレスとの関
係を第5図に示した例に適用して示しており、同
図bは描画手順に従つて変化する各レジスタの内
容を示している。まず、CPU5(第10図)は
描画開始点の座標x,yをX,X′,Y,Y′レジ
スタ1乃至4にそれぞれ転送する。説明の便宜
上、第8図aでは描画開始点をワードアドレスと
ドツトアドレスとして示しており、ドツトアドレ
スはX(X′)レジスタ1(2)の内容の一部で示
され、ワードアドレスはX(X′)レジスタ1
(2)の内容の残りの部分とY(Y′)レジスタ3
(4)の内容とで示される。次に、CPU5は文字
データの1ブロツク分の情報をパターンレジスタ
(第10図には示していない)に転送する。第5
図の例では、パターンレジスタの内容は第8図a
に示すように“10111110”である。ここで、パタ
ーンレジスタの内容の最下位ビツトはドツトアド
レスの情報と一致していない。そこで、第8図b
に、“第1ドツト”として示すように、パターン
レジスタの内容はドツトアドレスの情報に従つて
レジスタ内で回転され、描画すべきパターンデー
タの最下位ビツトの位置合わせが行なわれる。そ
して、ワードアドレスとドツト・アドレスとによ
つてアドレス付けされた映像メモリに対して、ド
ツト・アドレスが指し示したパターン・レジスタ
内のデータがドツトデータとして選択され書込ま
れる。第1ドツトの描画の後、ドツト・アドレス
はインクリメンタ6でインクリメントされ、映像
メモリのアドレス位置が変更される。これによつ
て、パターン・レジスタの指示位置が変化され新
しい描画データが選択される。8ドツト(1ブロ
ツク)の描画が終了するとYレジスタ3に格納さ
れていた第1ブロツクの描画開始時のY座標値が
インクリメントされ、次の第2ブロツクの最初の
Y座標値を示すデータがY′レジスタ4に転送さ
れる。X′レジスタ2に格納されていた第1ブロ
ツクの描画開始時のX座標値はレジスタXにその
まま転送される。その後、第2ブロツクに対応す
る新しい文字構成ドツト・パターンがパターン・
レジスタに転送され、前述と同様に位置合わせが
行なわれる。以下、上記した動作を繰返す。 As described above, the X and Y addresses of each drawing position in the area to be drawn are calculated. and,
Based on the calculated X and Y addresses, character data is drawn according to the procedure shown in FIG. In FIG. 8, a represents the relationship between the contents of a pattern register that stores information for one block of character data to be drawn and the drawing address of the video memory where drawing is executed, applied to the example shown in FIG. Figure b shows the contents of each register that change according to the drawing procedure. First, the CPU 5 (FIG. 10) transfers the coordinates x and y of the drawing start point to the X, X', Y, and Y' registers 1 to 4, respectively. For convenience of explanation, the drawing start point is shown as a word address and a dot address in FIG. X′) register 1
The rest of the contents of (2) and Y (Y') register 3
The contents of (4) are shown below. Next, the CPU 5 transfers information for one block of character data to a pattern register (not shown in FIG. 10). Fifth
In the example shown, the contents of the pattern register are shown in Figure 8a.
As shown in the figure, it is “10111110”. Here, the least significant bit of the contents of the pattern register does not match the information of the dot address. Therefore, Fig. 8b
The contents of the pattern register are rotated within the register according to the information of the dot address, as shown as "first dot", to align the least significant bit of the pattern data to be drawn. Then, the data in the pattern register pointed to by the dot address is selected and written as dot data to the video memory addressed by the word address and dot address. After drawing the first dot, the dot address is incremented by an incrementer 6, and the address location in the video memory is changed. As a result, the designated position of the pattern register is changed and new drawing data is selected. When the drawing of 8 dots (1 block) is completed, the Y coordinate value at the start of drawing of the first block stored in the Y register 3 is incremented, and the data indicating the first Y coordinate value of the next second block becomes Y. 'Transferred to register 4. The X coordinate value at the start of drawing of the first block, which was stored in the X' register 2, is transferred to the register X as is. After that, the new character composition dot pattern corresponding to the second block is added to the pattern.
The data is transferred to a register and aligned in the same manner as described above. Thereafter, the above operations are repeated.
以上のとおり、従来ドツト単位描画装置は描画
アドレス演算を実行しているわけであるが、ブロ
ツクの切換でアドレスが変化するという描画アド
レスに不連続部を含んでおり、このため、映像メ
モリのアドレス・レジスタを2系統(すなわちX
とX′、YとY′)を持つ必要があり、ハードウエ
アサイズが大きくなる。しかも、各レジスタアク
セスのための処理も必要であり処理速度が比較的
遅い。 As mentioned above, the conventional dot unit drawing device executes drawing address calculation, but the drawing address includes a discontinuous part where the address changes when the block is switched.・Two register systems (i.e.
and X′, Y and Y′), which increases the hardware size. Moreover, processing is required for each register access, and the processing speed is relatively slow.
本発明の目的は、ハードウエアサイズを小さく
しかつ処理速度を高めた描画アドレス演算方式を
提供することにある。 An object of the present invention is to provide a drawing address calculation method that reduces hardware size and increases processing speed.
本発明による方式は、描画位置のXアドレスを
示すデータを格納する第1レジスタと、描画位置
のYアドレスを示すデータを格納する第2レジス
タと、第1レジスタの内容を1つずつ増加させる
第1手段と、第1レジスタの内容を1つずつ減少
させる第2手段と、第2レジスタの内容を1つず
つ増加もしくは減少させる第3手段と、第1およ
び第2レジスタに描画開始点のXおよびYアドレ
スを示すデータをそれぞれ転送する手段を備え、
第1手段によるXアドレスの増加と第2手段によ
るXアドレスの減少との切換えを第3手段による
Yアドレスの変化毎に行なうことを特徴とする。 The method according to the present invention includes a first register that stores data indicating the X address of the drawing position, a second register that stores data indicating the Y address of the drawing position, and a second register that increments the contents of the first register by one. a second means for decreasing the contents of the first register by one; a third means for increasing or decreasing the contents of the second register by one; and a means for transferring data indicating the Y address, respectively,
The present invention is characterized in that switching between increasing the X address by the first means and decreasing the X address by the second means is performed every time the Y address changes by the third means.
以下、本発明の一実施例について図面を参照し
て説明する。 An embodiment of the present invention will be described below with reference to the drawings.
第4図aは本発明の一実施例の方式による描画
アドレス演算の流れ図である。まず、描画開始点
の横方向アドレスデータxおよび縦方向アドレス
データyがXおよびYアドレスにそれぞれ転送さ
れる。文字データ参照により1ブロツク分の文字
データ情報がパターンレジスタに転送され、本実
施例はまずXアドレスの内容を1つずつ増加しな
がら描画位置アドレスを算出し各描画位置に描画
を行なう。1ブロツク分の描画が終了すると、Y
レジスタの内容が1つ増加され、次のブロツクの
文字データ情報の1ドツトデータがXレジスタの
内容を変化することなく、そのときの内容とYレ
ジスタの内容とを描画位置アドレスとして描画を
実行する。そして、Xアドレスの内容を今度は1
つずつ減少して描画位置アドレスを算出する。以
後、Yレジスタの内容が変化するたびに、Xアド
レスの内容の変化方向を切換えて各描画アドレス
を算出する。したがつて、従来例では必要であつ
たX′レジスタおよびY′レジスタが不要となり、
かつブロツクが切換るごとのアドレス転送が不要
となる。 FIG. 4a is a flowchart of drawing address calculation according to an embodiment of the present invention. First, horizontal address data x and vertical address data y of the drawing start point are transferred to X and Y addresses, respectively. By character data reference, character data information for one block is transferred to the pattern register, and in this embodiment, first, the contents of the X address are incremented one by one to calculate the drawing position address, and drawing is performed at each drawing position. When drawing for one block is completed, Y
The contents of the register are incremented by 1, and the 1-dot data of the character data information of the next block executes drawing using the contents at that time and the contents of the Y register as the drawing position address without changing the contents of the X register. . Then, change the contents of the X address to 1
The drawing position address is calculated by decrementing the drawing position address. Thereafter, each time the contents of the Y register change, the direction of change of the contents of the X address is switched to calculate each drawing address. Therefore, the X′ register and Y′ register that were necessary in the conventional example are no longer necessary.
In addition, address transfer every time blocks are switched becomes unnecessary.
かくして、本方式によるハードウエアは、第4
図bに示すように、座標アドレス指定用としてX
レジスタ8とYレジスタ9の2個のレジスタでよ
い。ただし、Xレジスタ8の内容に対して+1演
算を行なうインクリメンタ11と−1演算を行な
うデクリメンタ12が設けられ、ブロツク切換、
すなわちインクリメンタ13によつてYレジスタ
9の内容が1つ変化する毎に上記二つの演算が切
り換わる。X、Yレジスタ8,9への描画開始点
アドレスデータはCPU10からセツトされる。
さらに詳細に説明すると、第1ブロツクの描画開
始位置座標を示すアドレスデータx,yはCPU
10からXレジスタ8およびYレジスタ9に夫々
転送される。次に、文字ドツト構成情報を参照
し、ドツト描画を行う。ドツト描画終了後、Xレ
ジスタ8の内容を例えばインクリメントする。1
ブロツク描画終了後、次のブロツクの描画を行う
ときには、Yレジスタ9の内容をインクリメント
し、Xレジスタ8の内容を今度はデクリメントす
る。したがつて、ブロツク切換時のレジスタの操
作としてはYレジスタ9の内容を変更するだけで
よい。 Thus, the hardware according to this method is
As shown in Figure b,
Two registers, register 8 and Y register 9, are sufficient. However, an incrementer 11 that performs a +1 operation and a decrementer 12 that performs a -1 operation are provided for the contents of the X register 8, and block switching,
That is, each time the contents of the Y register 9 change by one by the incrementer 13, the above two operations are switched. Drawing start point address data to the X and Y registers 8 and 9 is set by the CPU 10.
To explain in more detail, the address data x, y indicating the coordinates of the drawing start position of the first block is
10 to X register 8 and Y register 9, respectively. Next, dot drawing is performed with reference to the character dot configuration information. After dot drawing is completed, the contents of the X register 8 are incremented, for example. 1
After drawing a block, when drawing the next block, the contents of the Y register 9 are incremented, and the contents of the X register 8 are decremented. Therefore, as a register operation at the time of block switching, it is only necessary to change the contents of the Y register 9.
第7図は、第5図に示した描画例において、そ
のドツト描画の順序を示す図である。第1ブロツ
クの先頭ドツトからインクリメンタ11による
演算で順々にXアドレスが算出され、最終ドツト
のアドレス演算終了後、Y+1→Yの演算のみ
がインクリメンタ13で行なわれる。このとき、
Xアドレスは変更されない。したがつて、ドツト
位置の直上のドツトのアドレスが求まり第2
ブロツクの描画アドレス演算が開始する。ドツト
のx座標は変化しないはずであり、これを上手
に利用したのが本方式である。以後、最終ドツト
位置までは、各ドツトの描画アドレス演算終了
毎にデクリメンタ12でX−1→Xが実行され
る。第3ブロツクの描画が定義されている場合に
は、位置に対する描画アドレス演算が実行され
た後、Y+1→Yの演算が実行され、以後、1ド
ツト描画アドレス演算毎にX+1→Xがインクリ
メンタ11によつて実行される。即ち、1ブロツ
クの描画を周期としてX+1→XとX−1→Xの
演算の選択が成される。このように、本実施例方
式では、一筆書きによる連続的なアドレス演算と
なる。 FIG. 7 is a diagram showing the order of dot drawing in the drawing example shown in FIG. From the first dot of the first block, the incrementer 11 sequentially calculates the X address, and after completing the address calculation for the last dot, the incrementer 13 performs only the calculation from Y+1→Y. At this time,
The X address remains unchanged. Therefore, the address of the dot directly above the dot position is found and the second
Block drawing address calculation starts. The x-coordinate of the dot should not change, and this method makes good use of this fact. Thereafter, up to the final dot position, the decrementer 12 executes X-1→X every time the drawing address calculation for each dot is completed. When drawing of the third block is defined, after the drawing address calculation for the position is executed, the calculation of Y+1→Y is executed, and thereafter, X+1→X is incremented by the incrementer 11 for each 1-dot drawing address calculation. executed by. That is, the selection of the calculations X+1→X and X-1→X is made every drawing of one block. In this way, in the method of this embodiment, address calculation is performed continuously by writing with one stroke.
次に、本方式によつて算出された描画アドレス
を用いて映像メモリに実際に描画するための動作
例を第9図を用いて説明する。まず、CPU10
は描画開始点のx,yアドレスをXおよびYレジ
スタ8,9にそれぞれ転送する。第8図aに関連
して述べたように、Xレジスタ8の内容の一部お
よびYレジスタ9の内容によつてワードレジスタ
Bが示され、Xレジスタ8の内容の残りの部分で
ドツトアドレスが示される。次に、CPU10は
描画すべき文字データの1ブロツク分の情報をパ
ターンレジスタ(第10図には示していない)に
設定する。ここで、第8図に示した方式では、パ
ターンレジスタの内容を回転させてその最下位ビ
ツトの位置をドツトアドレスの指示に対応させて
いたが、第9図の描画方式では、ポインタレジス
タ(第10図には示していない)を設け、第9図
aに示すように、同レジスタに描画開始ビツト
(本例では最下位ビツト)を指示するポインタデ
ータを設定する。そして、第9図bに“第1ドツ
ト”とに示すように、ポインタデータで指し示さ
れるドツトデータを読み出し、同ドツトデータを
ドツトアドレスで示される映像メモリのアドレス
に描画する。Xレジスタ8の内容はしかる後にイ
ンクリメンタ11で1つ増加される。また、ポイ
ンタデータも撞様に1つ増加される。増加された
ポインタデータによつて指し示されるドツトデー
タが読み出され、同データがドツトアドレスで示
される映像メモリのアドレスに描画される。以
後、第1ブロツクの描画が終了するまで同じ処理
が繰り返される。第1ブロツクの描画が終了する
と、第9図bに“第9ドツト”として示されるよ
うに、Yレジスタ9の内容のみが1つ増加され、
Xレジスタ8およびポインタレジスタの内容は変
更されない。そして、パターンレジスタに文字デ
ータの第2ブロツクの情報が設定され、描画が開
始される。第9ドツトの描画終了後、Xレジスタ
8およびポインタレジスタの内容は共に1つ減少
させられ、以降の描画が実行される。 Next, an example of the operation for actually drawing on the video memory using the drawing address calculated by this method will be explained with reference to FIG. First, CPU10
transfers the x and y addresses of the drawing start point to the X and Y registers 8 and 9, respectively. As described in connection with FIG. 8a, a portion of the contents of X register 8 and the contents of Y register 9 indicate word register B, and the remainder of the contents of X register 8 indicates the dot address. shown. Next, the CPU 10 sets information for one block of character data to be drawn in a pattern register (not shown in FIG. 10). In the method shown in FIG. 8, the contents of the pattern register are rotated so that the position of the least significant bit corresponds to the instruction of the dot address, but in the drawing method shown in FIG. (not shown in FIG. 10), and pointer data indicating the drawing start bit (in this example, the least significant bit) is set in the same register as shown in FIG. 9a. Then, as shown by "first dot" in FIG. 9b, the dot data pointed to by the pointer data is read out and the same dot data is drawn at the address of the video memory indicated by the dot address. The contents of the X register 8 are then incremented by one by the incrementer 11. Further, the pointer data is also incremented by one in a similar manner. The dot data pointed to by the increased pointer data is read out, and the same data is drawn at the address in the video memory indicated by the dot address. Thereafter, the same process is repeated until the drawing of the first block is completed. When the drawing of the first block is completed, only the contents of the Y register 9 are incremented by one, as shown as the "ninth dot" in FIG.
The contents of X register 8 and pointer register are unchanged. Then, information on the second block of character data is set in the pattern register, and drawing is started. After the drawing of the ninth dot is completed, the contents of the X register 8 and the pointer register are both decreased by one, and subsequent drawing is executed.
以上のとおり、本発明はYアドレスの内容が変
化する毎にXアドレスの内容の増加演算および減
少演算を初換えているので、必要とされるハード
ウエアが少なくなり、かつアドレス演算処理スピ
ードが向上される。 As described above, in the present invention, the increase and decrease operations for the contents of the X address are first changed every time the contents of the Y address change, so the required hardware is reduced and the address calculation processing speed is improved. be done.
さらに、同一ブロツク内のパターンを縦方向ま
たは横方向に拡大して描画を行う場合、1描画方
向に対する描画終了毎に、前記従来例では、同一
のパターンを再設定し、パターンの位置合わせ操
作をせねばならない。従来例では、パターン・レ
ジスタ内データの抽出の為にパターン・レジスタ
のシフト操作を繰返し、描画開始時の原型パター
ンが保存されていないためである。しかし本発明
においては拡大描画時には、同一ブロツク内の描
画であれば、新パターンを再設定する必要も無い
し、パターン内容の位置合わせ操作も全く不要で
ある。同一ブロツク内の描画が終了し、新ブロツ
クの描画に移行するときに新パターンの設定をす
れば良い。 Furthermore, when drawing a pattern in the same block by enlarging it vertically or horizontally, in the conventional example, the same pattern is reset every time drawing in one drawing direction is completed, and the pattern positioning operation is performed. I have to. This is because in the conventional example, the shift operation of the pattern register is repeated in order to extract data in the pattern register, and the original pattern at the start of drawing is not saved. However, in the present invention, when enlarging drawing, there is no need to reset a new pattern as long as the drawing is within the same block, and there is no need to perform positioning operations for pattern contents. A new pattern can be set when drawing in the same block is finished and moving to drawing a new block.
なお、前記した本発明の実施例では、描画アド
レス演算がメモリ・プレーン上の左から右、下か
ら上へ実行される場合を取り上げたが、他の場
合、例えば、右から左、上から下へ描画実行され
る場合などについても同様であることは言うまで
もない。 In the above-described embodiments of the present invention, the case where the drawing address calculation is executed from left to right and from bottom to top on the memory plane was taken up, but in other cases, for example, from right to left and from top to bottom. Needless to say, the same applies when drawing is executed to.
第1図、第2図は従来の描画方式の模式図、第
3図は従来の方式の流れ図、第4図aは本発明の
一実施例による描画アドレス演算方式の流れ図、
同図bはそのアドレスレジスタ部のハードウエア
ブロツク図、第5図はワード・アドレスレジスタ
内の構成を示すデータ図、第6図は従来のアドレ
ス遷移図、第7図は本発明の一実施例によるアド
レス遷移図、第8図aおよびbは夫々従来の方式
によるレジスタ内のデータ図と描画ドツト指定の
ためのデータ遷移図、第9図a,bは夫々本発明
の一実施例による方式で算出された描画アドレス
に対するレジスタ内のデータ図と描画ドツト指定
のためのデータ遷移図、第10図は従来のアドレ
スレジスタ部のハードウエアブロツク図である。
1,8…Xレジスタ、3,9…Yレジスタ、2
…X′レジスタ、4…Y′レジスタ、6,7,11,
13…インクリメンタ、12…デクリメンタ、
5,10…CPU。
1 and 2 are schematic diagrams of a conventional drawing method, FIG. 3 is a flowchart of the conventional method, and FIG. 4a is a flowchart of a drawing address calculation method according to an embodiment of the present invention.
Figure b is a hardware block diagram of the address register section, Figure 5 is a data diagram showing the configuration inside the word address register, Figure 6 is a conventional address transition diagram, and Figure 7 is an embodiment of the present invention. FIGS. 8a and 8b are address transition diagrams according to the conventional method and data transition diagrams for designating dots to be drawn, respectively. FIGS. 9a and 9b are respectively according to the method according to an embodiment of the present invention FIG. 10 is a hardware block diagram of a conventional address register section, showing a diagram of data in the register corresponding to the calculated drawing address and a data transition diagram for designating a drawing dot. 1, 8...X register, 3, 9...Y register, 2
...X' register, 4...Y' register, 6, 7, 11,
13...Incrementer, 12...Decrementer,
5,10...CPU.
Claims (1)
る第1レジスタと、描画位置のYアドレスを示す
データを格納する第2レジスタと、前記第1レジ
スタの内容を1つずつ増加させる第1の手段と、
前記第1レジスタの内容を1つずつ減少させる第
2の手段と、前記第2レジスタの内容を1つずつ
増加又は減少させる第3の手段と、前記第1およ
び第2レジスタに描画開始点のXおよびYアドレ
スを示すデータをそれぞれ転送する手段とを備
え、前記第1の手段による前記第1レジスタの内
容の増加と前記第2の手段による前記第1レジス
タの内容の減少との切換えを前記第3の手段によ
る前記第2レジスタの内容の変化毎に行なうこと
を特徴とする描画アドレス演算方式。1. A first register for storing data indicating the X address of the drawing position, a second register for storing data indicating the Y address of the drawing position, and a first means for incrementing the contents of the first register by one. ,
a second means for decreasing the contents of the first register one by one; a third means for increasing or decreasing the contents of the second register one by one; means for respectively transferring data indicating the X and Y addresses, and switching between increasing the contents of the first register by the first means and decreasing the contents of the first register by the second means. A drawing address calculation method characterized in that the calculation is performed every time the contents of the second register change by the third means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8206483A JPS59206982A (en) | 1983-05-11 | 1983-05-11 | Pattern plotting system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8206483A JPS59206982A (en) | 1983-05-11 | 1983-05-11 | Pattern plotting system |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS59206982A JPS59206982A (en) | 1984-11-22 |
JPH0127469B2 true JPH0127469B2 (en) | 1989-05-29 |
Family
ID=13764066
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8206483A Granted JPS59206982A (en) | 1983-05-11 | 1983-05-11 | Pattern plotting system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS59206982A (en) |
-
1983
- 1983-05-11 JP JP8206483A patent/JPS59206982A/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS59206982A (en) | 1984-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0355832B2 (en) | ||
KR970008546B1 (en) | Character or graphic processing method | |
JPS59218493A (en) | Graphic display information memory system | |
JPH087569B2 (en) | Display controller | |
US5068803A (en) | Method and apparatus for filling contours in digital typefaces | |
US5519412A (en) | Pattern processing method | |
JPH0640259B2 (en) | Data processing device | |
JP2770582B2 (en) | Figure filling device | |
JPH04291684A (en) | Thick line plotter | |
JPH0127469B2 (en) | ||
US5309560A (en) | Data selection device | |
US6677950B1 (en) | Graphics computer | |
US7667714B2 (en) | Patterned polygon rendering apparatus | |
JP2700124B2 (en) | Graphic display method and apparatus for implementing the same | |
JP2605609B2 (en) | Dot display processing device | |
JP2835056B2 (en) | High quality character pattern generation method | |
JPH02271424A (en) | Full graphic picture display system | |
JPH0350686A (en) | Graphic processing system | |
JPS6355097B2 (en) | ||
JP2613653B2 (en) | Image processing device | |
JP2737845B2 (en) | Character processing method and apparatus | |
JPS61267096A (en) | Smear drawing display unit for polygonal graphic | |
JPH02208694A (en) | Thick line plotting system | |
JPH0239362A (en) | Document processor | |
JPH03278190A (en) | Polygon painting-out system |