JPS621568A - Apparatus for generating rule line - Google Patents

Apparatus for generating rule line

Info

Publication number
JPS621568A
JPS621568A JP60142215A JP14221585A JPS621568A JP S621568 A JPS621568 A JP S621568A JP 60142215 A JP60142215 A JP 60142215A JP 14221585 A JP14221585 A JP 14221585A JP S621568 A JPS621568 A JP S621568A
Authority
JP
Japan
Prior art keywords
memory
address
straight line
ruled
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP60142215A
Other languages
Japanese (ja)
Inventor
Masatomo Matsuyama
松山 譲友
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP60142215A priority Critical patent/JPS621568A/en
Publication of JPS621568A publication Critical patent/JPS621568A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the erasion of a rule line at the time of the correction and erasion of a character without accompanying the increase in cost, by mounting a table for storing the position of a rule line in the order corresponding to the scanning order of a memory and a comparator for performing the control of the display or printing output of the rule line on the basis of the coincidence and non-coincidence of the output data from the table and the address on the memory. CONSTITUTION:At the time of the start of printing, the lead data of tables 11, 21 are loaded to registers 12, 22. When YS coincides with a Y-address accessing a memory to generate an enable signal ENABLE 1, a dot plot indication signal DOT PLOT is generated from a flip-flop 19 until an X-address coincides with X1 after the coincidence with X and a straight line in the X- direction is drawn. When the Y-address accessing the memory coincides with YO and the X-address coincides with XS, a dot plot signal is generated from an AND gate 27 and one dot of the straight line in the Y-direction is printed.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は罫線付きのイメージを表示または印字する際の
罫線発生装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a ruled line generation device for displaying or printing an image with ruled lines.

〔発明の技術的背景〕[Technical background of the invention]

従来、コンピュータに接続された帳票の表示またはプリ
ントシステムでは、同一メモリ上に文字と罫線を一旦記
憶させた後イメージを出力していた。この方法では文字
の訂正、消去をするときに罫線も同時に消えてしまう場
合がある。この対策として文字用のメモリと罫線用のメ
モリを2種持っていて、その出力の論理和を取ってイメ
ージ出力する方法が考えられたが、メモリが2個必要な
ので、コストアップになるという欠点があった。
Conventionally, in a form display or printing system connected to a computer, characters and ruled lines are temporarily stored in the same memory and then the image is output. With this method, when correcting or erasing characters, the ruled lines may also disappear at the same time. As a countermeasure to this problem, a method was considered to have two types of memory, one for characters and one for lines, and output the image by taking the logical OR of the outputs, but the disadvantage is that it would increase costs because two memories were required. was there.

C発明の目的) 本発明の目的は、コストアップを伴うことなく、しかも
文字の訂正、消去の際の罫線消去を防止できる罫線発生
装置を提供することにある。
C) An object of the present invention is to provide a ruled line generation device that can prevent ruled line erasure when correcting or erasing characters without increasing costs.

〔発明の概要〕[Summary of the invention]

本発明の罫線発生装置は、文字を記憶するメモリと、罫
線に関するデータを発生する罫線発生器と、上記メモリ
および上記罫線発生器の出力の論理和を取るオア回路と
を漏えい上記罫線発生器は罫線の位向を、メモリのスキ
ャンの順に応じた順に記憶するテーブルと、上記テーブ
ルからの出力データとメモリ上のアドレスとの一致不一
致に基いて罫線の表示または印字出力の制御を行なう比
較器とを備えたものである。
The ruled line generator of the present invention includes a memory for storing characters, a ruled line generator for generating data related to ruled lines, and an OR circuit for ORing the outputs of the memory and the ruled line generator. A table that stores the positions of ruled lines in an order according to the order of scanning of the memory, and a comparator that controls the display of ruled lines or printout based on the match or mismatch between the output data from the table and the address on the memory. It is equipped with the following.

〔発明の実施例〕[Embodiments of the invention]

第2図は本発明にかかる罫線発生装置を示すものである
。図示のようにこのVt置は、文字、図形などのイメー
ジを記憶しているメモリ1と、罫線発生器2と、メモリ
1および罫線発生器2の出力の論理和を取るOR回路3
とを有し、OR回路3の出力はプリンタ4に接続されて
いる。尚プリンタ4は表示装置でも構わない。
FIG. 2 shows a ruled line generation device according to the present invention. As shown in the figure, this Vt position includes a memory 1 that stores images such as characters and figures, a ruled line generator 2, and an OR circuit 3 that takes the logical sum of the outputs of the memory 1 and the ruled line generator 2.
The output of the OR circuit 3 is connected to a printer 4. Note that the printer 4 may be a display device.

第1図は罫線発生器2の一員体例を示すものである。同
図で、X方向直線テーブル11はX方向の直線に関する
データ、即ち直線のX方向の開始座標値XO1該直線の
X方向の終了座標×1および該直線のY座標値YSを記
憶している。直線がせ複数本ある場合には、これらのデ
ータはスキャンの順に、即ちYSの小さい順に記憶され
ている。
FIG. 1 shows an example of one piece of the ruled line generator 2. As shown in FIG. In the figure, the X-direction straight line table 11 stores data regarding the straight line in the X direction, that is, the starting coordinate value in the X direction of the straight line XO1, the ending coordinate in the X direction of the straight line×1, and the Y coordinate value YS of the straight line. . If there are multiple straight lines, these data are stored in the order of scanning, that is, in order of decreasing YS.

まずX方向直線レジスタ12には、テーブル11のうち
先頭のデータが格納される。
First, the first data in the table 11 is stored in the X-direction straight line register 12.

比較器15は、スキャンされているメモリ1上のYアド
レス(アドレスのY座標値)と、レジスタ12内のYS
とを比較し、一致していれば、X方向直線の座標発生開
始を可能にするイネーブル信号ENABLE1を発生す
る。
The comparator 15 compares the Y address (Y coordinate value of the address) on the memory 1 being scanned and the YS in the register 12.
If they match, an enable signal ENABLE1 is generated that enables the start of coordinate generation of a straight line in the X direction.

比較器13はメモリ1上のXアドレスとレジスタ12内
のXOを比較し、ENABLE1信号が出力されている
状態で一致すればアンドゲート16の条件成立によりド
ツトプロット開始を指令する。この指令により、フリッ
プフロップ19がセットされ、ドツトプロット指示信号
DOTPLOTが出力される。
The comparator 13 compares the X address on the memory 1 with the XO in the register 12, and if they match while the ENABLE1 signal is being output, the condition of the AND gate 16 is satisfied and a command is given to start dot plotting. This command sets the flip-flop 19 and outputs the dot plot instruction signal DOTPLOT.

比較器14はメモリ1上のXアドレスとレジスタ12内
の×1とを比較し、一致すれば座!!A発生の終了を指
令する、この指令は、イネーブル信号ENABLE1に
よってアンドゲート17が開いていると、外部に出力さ
れる。この出力はドツトプロット終了指示となる。この
終了指示信号によりフリップフロップ19がリセットさ
れてドツトプロット指示信号が消える。ドツトプロット
終了の時点でアンドゲート18から次のX方向直線デー
タのロード指示信号が出力され、次の直線データがレジ
スタ12に記憶される。
The comparator 14 compares the X address on the memory 1 and the x1 in the register 12, and if they match, the address is ! ! This command to end the A generation is output to the outside when the AND gate 17 is opened by the enable signal ENABLE1. This output indicates the end of the dot plot. This termination instruction signal resets the flip-flop 19 and the dot plot instruction signal disappears. At the end of the dot plot, the AND gate 18 outputs a load instruction signal for the next X-direction straight line data, and the next straight line data is stored in the register 12.

Y方向直線テーブル21はY方向直線に関するデータ、
即ち直線のY方向の開始座標値YO1該直線のY方向の
終了座標値Y1および該直線のX座標値XSを記憶して
いる。各Y方向直線データはXS座標値が小さい方から
テーブル21内に記憶され、同一のXS座標値をもつY
方向直線データはYOの値の小さい方から順にテーブル
21内に記憶される。
The Y-direction straight line table 21 includes data regarding Y-direction straight lines,
That is, the starting coordinate value YO of the straight line in the Y direction, the ending coordinate value Y1 of the straight line in the Y direction, and the X coordinate value XS of the straight line are stored. Each Y direction straight line data is stored in the table 21 starting from the one with the smallest XS coordinate value.
The direction straight line data are stored in the table 21 in order from the smallest value of YO.

まず、テーブル21内のデータのうち、最も上位に記憶
されているY方向直線データがY方向直線レジスタ22
に格納される。特定のYアドレスについてXアドレスが
変化する。比較器23でYOとYアドレスとの一致がと
れてENABLE2信丹が出力され、かつ、比較器24
でXSとXアドレスとの値が一致したときアンドゲート
27からドツトプロット指示信号が出力される。同時に
、このY方向直線の印字が終了したか否かを判定するた
め比較器26でYlの値とYOの値との比較をとり、ア
ンドゲート29で条件がとれたとき、即ち、インバータ
28の作用により比較器26で一致がとれず、比較器2
4で一致がとれたとぎ、加算器25により加算された(
YO+1>の値がYOのかわりに、テーブル21の当該
番地にロードされる。次に、ドツトプロット信号が出る
出ないにかかわらず比較器24で一致がとれたとき次の
Y方向直線データがY方向直線レジスタ22にロードさ
れる。尚、このとき、次のY方向直線データのXSが同
じであるときは、そのデータがスキップされ異なるxS
の値をもつデータがレジスタ22にロードされる。この
処理は、XSの値を管理する、又は、フラグを立てスキ
ップを指示する等の処理により実行される。
First, among the data in the table 21, the Y-direction straight line data stored in the highest position is stored in the Y-direction straight line register 22.
is stored in The X address changes for a specific Y address. Comparator 23 matches YO and Y address and outputs ENABLE2 Shintan, and comparator 24
When the values of XS and X address match, the AND gate 27 outputs a dot plot instruction signal. At the same time, the comparator 26 compares the value of Yl and the value of YO to determine whether printing of the straight line in the Y direction has been completed. Due to this action, the comparator 26 cannot find a match, and the comparator 2
When a match was found at 4, the adder 25 added (
The value of YO+1> is loaded into the corresponding address of the table 21 instead of YO. Next, when a match is found in the comparator 24, the next Y-direction straight line data is loaded into the Y-direction straight line register 22, regardless of whether the dot plot signal is output or not. At this time, if the XS of the next Y-direction straight line data is the same, that data is skipped and a different xS
Data having a value of is loaded into register 22. This process is executed by managing the value of XS or setting a flag to instruct skipping.

以下この動作が順次繰り返されるがYアドレスが変化す
ると、再びデープル21の先頭から、レジスタ22のロ
ードが開始される。尚、テーブル11はFIFOのメモ
リを、テーブル21はサイフリック出力のメモリを使用
すればよい。
Thereafter, this operation is repeated one after another, but when the Y address changes, loading of the register 22 is started again from the beginning of the daple 21. Note that the table 11 may use FIFO memory, and the table 21 may use Cyflick output memory.

以下、上記の装置の動作を説明する。The operation of the above device will be explained below.

プリント開始時にテーブル11.21の先頭のデータが
レジスタ12.22にロードされる。イメージのプリン
トアウトに伴・ンて、メモリ1をアクセスするためのア
ドレス値が変化していく。メモリ1をアクセスするYア
ドレスにYSが一致してイネーブル信号ENABLE1
が発生している時は、XアドレスがXOに一致してから
×1に一致するまでフリップ70ツブ19からドットブ
Oット指示信号D6TPLO王が発生され、X方向の直
線が引かれる。引き終わると、レジスタ12のデータが
、テーブル11の次のX方向直線データに書き換えられ
る。
At the start of printing, the data at the head of table 11.21 is loaded into register 12.22. As the image is printed out, the address value for accessing the memory 1 changes. When YS matches the Y address that accesses memory 1, the enable signal ENABLE1 is activated.
is occurring, the dot-out instruction signal D6TPLO is generated from the flip 70 block 19 until the X address matches XO and x1, and a straight line in the X direction is drawn. When the drawing is completed, the data in the register 12 is rewritten to the next X-direction straight line data in the table 11.

メモリ1をアクセスするためのYアドレスがYOに一致
して、かつ、XアドレスがXSに一致すると、アンドゲ
ート27からドツトプロット指示信号が発生され、Y方
向直線の1ドツト分がプリントされる。そして、上記Y
アドレスと、Ylの値とが一致していなければ、即ち、
当該Y方向直線の印字が終了していなければ、当該Y方
向直線のYOが+1されて、テーブル21中のデータが
この(YO+1>の値に書き換えられる。尚、前述した
ように、比較器24で一致がとれたとき、異なるXSの
値を持、つ次のY方向直線データがテーブル21からレ
ジスタ22にロードされる。
When the Y address for accessing the memory 1 matches YO and the X address matches XS, a dot plot instruction signal is generated from the AND gate 27, and one dot of a straight line in the Y direction is printed. And the above Y
If the address and the value of Yl do not match, that is,
If printing of the Y-direction straight line has not been completed, YO of the Y-direction straight line is incremented by +1, and the data in the table 21 is rewritten to the value of (YO+1>. As described above, the comparator 24 When a match is found, the next Y-direction straight line data having a different XS value is loaded from the table 21 into the register 22.

以下同様にして、動作を続け、全Yアドレスのスキャン
を終了すると、文字と罫線のプリントが終わる。
The operation continues in the same manner, and when all Y addresses are scanned, printing of characters and ruled lines is completed.

〔発明の効果〕〔Effect of the invention〕

以上のように本発明によれば、罫線発生器を用いたので
、コストアップを生ずることなく、しかも文字の訂正、
消去の際の罫線の消去を防止することができる。
As described above, according to the present invention, since the ruled line generator is used, there is no increase in cost, and in addition, character correction and
It is possible to prevent the ruled lines from being erased when erasing.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例に用いられる罫線発  ゛生
器を示すブロック線図、第2図は本発明の罫線発生装置
の概略を示すブロック図である。 1・・・メモリ、2・・・罫線発生図、3・・・オア回
路、4・・・プリンタ、11・・・X方向直線テーブル
、12・・・X方向直線レジスタ、13.14,15.
23゜24.26・・・比較器、16.17.27.2
8・・・アンドゲート、21・・・Y方向直線テーブル
、22・・・Y方向直線レジスタ、25・・・加算器。
FIG. 1 is a block diagram showing a ruled line generator used in an embodiment of the present invention, and FIG. 2 is a block diagram schematically showing the ruled line generating device of the present invention. 1... Memory, 2... Ruled line generation diagram, 3... OR circuit, 4... Printer, 11... X-direction straight line table, 12... X-direction straight line register, 13.14, 15 ..
23゜24.26... Comparator, 16.17.27.2
8...AND gate, 21...Y direction straight line table, 22...Y direction straight line register, 25...adder.

Claims (1)

【特許請求の範囲】[Claims] 文字に関するデータを記憶し、発生するメモリと、罫線
に関するデータを発生する罫線発生器と、上記メモリお
よび上記罫線発生器から発生される出力の論理和を取る
オア回路とを備え、上記オア回路の出力を表示または印
字装置に供給する罫線発生装置であって、上記罫線発生
器は、罫線の位置を、メモリのスキャンの順序に応じた
順に記憶するテーブルと、上記テーブルからの出力デー
タとメモリ上のアドレスとを比較して、その一致、不一
致に基いて、罫線の表示または印字の制御を行なう比較
器とを備えた罫線発生装置。
A memory for storing and generating data related to characters, a ruled line generator for generating data related to ruled lines, and an OR circuit for calculating the logical sum of outputs generated from the memory and the ruled line generator, A ruled line generator supplies output to a display or printing device, and the ruled line generator includes a table that stores the positions of ruled lines in an order according to the order of scanning of the memory, and output data from the table and the output data stored in the memory. and a comparator that controls the display or printing of ruled lines based on the match or mismatch.
JP60142215A 1985-06-28 1985-06-28 Apparatus for generating rule line Pending JPS621568A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60142215A JPS621568A (en) 1985-06-28 1985-06-28 Apparatus for generating rule line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60142215A JPS621568A (en) 1985-06-28 1985-06-28 Apparatus for generating rule line

Publications (1)

Publication Number Publication Date
JPS621568A true JPS621568A (en) 1987-01-07

Family

ID=15310078

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60142215A Pending JPS621568A (en) 1985-06-28 1985-06-28 Apparatus for generating rule line

Country Status (1)

Country Link
JP (1) JPS621568A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10964556B2 (en) 2015-02-12 2021-03-30 SCREEN Holdings Co., Ltd. Substrate processing apparatus, substrate processing system, and substrate processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10964556B2 (en) 2015-02-12 2021-03-30 SCREEN Holdings Co., Ltd. Substrate processing apparatus, substrate processing system, and substrate processing method

Similar Documents

Publication Publication Date Title
JPS5995669A (en) Graphic processor
EP0278526A2 (en) Graphics diplay controller having clipping function
US4885699A (en) Data processing apparatus for editing, filing, and printing image data by means of visual observation of the data on a display screen
JPS621568A (en) Apparatus for generating rule line
US6628289B1 (en) Rendering apparatus and method, and storage medium
JP2508280B2 (en) Branch history control method
JPS604977A (en) System of managing non-resident pattern
JP3242435B2 (en) Image drawing device
JP2928537B2 (en) RAM scan method
KR940001051B1 (en) Control method of contacting points of lines having width
JPH0536794B2 (en)
US6757080B1 (en) Image processing system
JPS63225882A (en) Clipping system for vector drawing having line width
JPS6248561A (en) Printing image memory
JPH0721395A (en) Address generation device
JPH064396A (en) Image plotter
JPH03142578A (en) Pattern painting-out system
JPH02201691A (en) Character painting-out device
JPS59112761A (en) Facsimile reading and editing system
JPS60132271A (en) Paint-out processing system
JPS59111190A (en) Line generation processing system
JPH05342343A (en) Picture processing circuit
JPH08263048A (en) Graphics control circuit
JPH01175087A (en) Image display device
JPS6470881A (en) Image correcting device