JPS62293338A - How to control virtual image memory - Google Patents
How to control virtual image memoryInfo
- Publication number
- JPS62293338A JPS62293338A JP61135644A JP13564486A JPS62293338A JP S62293338 A JPS62293338 A JP S62293338A JP 61135644 A JP61135644 A JP 61135644A JP 13564486 A JP13564486 A JP 13564486A JP S62293338 A JPS62293338 A JP S62293338A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- cell
- data
- caq
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000015654 memory Effects 0.000 title claims abstract description 104
- 238000010586 diagram Methods 0.000 description 7
- 238000000034 method Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Dot-Matrix Printers And Others (AREA)
- Record Information Processing For Printing (AREA)
Abstract
Description
【発明の詳細な説明】
3、発明の詳細な説明
〔概 要〕
1頁目の展開終了後、1頁目の印刷と同時に2頁目の展
開を行なう。このとき印刷によって開放されたメモリを
即展開に使用するため、1.;〕頁分のメモリによって
2頁の制御を行なう。Detailed Description of the Invention] 3. Detailed Description of the Invention [Summary] After the first page has been developed, the second page is developed at the same time as the first page is printed. At this time, in order to use the memory freed by printing for immediate expansion, 1. ;] Two pages are controlled by the page's worth of memory.
本発明は仮想イメージメモリの制御方法に係り、印刷デ
ータ格納用メモリの小容量化を図ろうとするものである
。The present invention relates to a virtual image memory control method, and is intended to reduce the capacity of print data storage memory.
用紙に画像を印刷するには、該画像を表わすドツトパタ
ーンデータを格納するメモリを用い、該メモリ (Ml
とする)に1頁分のデータを書込み、次にそれを読出し
てプリンタにより印刷しながら次の頁分のデータを第2
のメモリ (M2とする)に書込み、次はメモリM2を
読出して印刷し、この間にメモリM1に次の次の頁のデ
ータを書込み、以下これを繰り返して行くという方法が
とられる。To print an image on paper, a memory that stores dot pattern data representing the image is used, and the memory (Ml
1 page of data is written to the 2nd page), and then read out and printed by the printer while writing the next page of data to the 2nd page.
The following method is used: write data into a memory (designated M2), then read and print from memory M2, write data for the next page into memory M1 during this time, and repeat this process.
必要なメモリ容量は最低2頁分てあり、メモリ(Mlま
たはM2)を同時に書込みと読取りに使用することはで
きないので、印刷(読取り)が終るまで次頁の展開(書
込み)はできない。The required memory capacity is at least two pages, and the memory (M1 or M2) cannot be used for writing and reading at the same time, so the next page cannot be developed (written) until printing (reading) is finished.
画像が文字であってもまた図形であっても繊細な印刷を
行なおうとすればドツト数は多くなり、メモリ容量は大
になる。その大容量メモリが2頁分以上必要というのは
コストの点でも不具合である。Whether the image is text or graphics, if delicate printing is to be performed, the number of dots will increase and the memory capacity will increase. The fact that the large-capacity memory is required for two or more pages is also a problem in terms of cost.
それ数本発明はメモリ容量を低減できるメモリ制御方式
を提供しようとするものである。However, the present invention seeks to provide a memory control method that can reduce memory capacity.
第1図に示すように本発明では読出し用及び書込み用メ
モリ (セルメモ1月の他に仮想メモリM1およびM2
を管理するためのセルアドレステープCATおよび空き
メモリセルのキューCAQを設ける。用紙1頁は最大N
xMドツトで印刷するとし、この用紙をnxmの区分に
分割しく従って1区分のドツト数はNM/nm)、各区
分のドットパターンデータをセルメモリに記憶させ、書
込み読出しはこのセルメモリを単位として行なう。As shown in FIG.
A cell address tape CAT and a queue CAQ of empty memory cells are provided for managing the memory cells. Maximum N for 1 page of paper
Assuming that xM dots are to be printed, this paper is divided into nxm sections (the number of dots in one section is NM/nm), the dot pattern data for each section is stored in a cell memory, and writing and reading are performed using this cell memory as a unit. Let's do it.
ドットパターンデータが書込まれていないセルメモリは
CAQを作らせ、書込みはCAQより空きメモリセルの
アドレスを知ってそれに対して行ない、データ書込みを
したセルメモリはそのアドレスをCATの該当アドレス
(該データは用紙上の第1番区分に対するものとすれば
iアドレス)に書込む。読出しはCATを参照して行な
い、読出しデータはプリンタへ送る。読出され、印刷さ
れて不要となったデータを持つセルメモリ (空きセル
メモリ)は、CAQに並ばせる。A cell memory to which no dot pattern data has been written has a CAQ created, the address of an empty memory cell is known from the CAQ, and writing is performed to that memory cell, and the cell memory to which data has been written uses that address as the corresponding address in CAT (the corresponding address). If the data is for the first section on the paper, it is written to the i address). Reading is performed with reference to CAT, and the read data is sent to the printer. Cell memories (empty cell memories) containing data that are no longer needed after being read and printed are arranged in the CAQ.
このようにすると印刷されて用済みとなったセルメモリ
は直ちに再使用されるので、必要なメモリ容量を低減す
ることができる。印刷は1頁分データを書込んでからと
し、読出しく印刷)に対して書込みは相当に速いとして
も、メモリM1とM2の総容量は1.5頁分もあれば充
分である。In this way, the cell memory that has been printed and is no longer used can be immediately reused, so that the required memory capacity can be reduced. Even though printing is performed after writing data for one page, and writing is considerably faster than reading (printing), the total capacity of memories M1 and M2 is sufficient for 1.5 pages.
第3図は用紙上のある区分(x、 y)のドツトパタ
ーンデータをセルメモリへ書込む要領を示す。FIG. 3 shows the procedure for writing dot pattern data of a certain section (x, y) on a sheet of paper into a cell memory.
先ずCATの番号(CATの各領域のアドレス)を求め
るが、これは前記区分の番号に対応するからy−n+x
で表わされる。この番号がN M / nmを越えてお
れば該当区分はないから印字不可能である。印字可能で
あればセルメモリ割付は済み?即ちCATにあるか?を
調べ、なければCAQより空きセルメモリを1つ(ポイ
ンタが指すもの)取出し、そのアドレスをCATに設定
しかつ該セルメモリにパターンデータ書込みを行なう。First, find the CAT number (address of each area of CAT), which corresponds to the number of the above section, so y-n+x
It is expressed as If this number exceeds NM/nm, there is no corresponding classification and printing is not possible. If printing is possible, has the cell memory been allocated? In other words, is it in CAT? If not, one free cell memory (the one pointed to by the pointer) is taken out from CAQ, its address is set in CAT, and pattern data is written into the cell memory.
印刷に当っては第4図に示すようにセルメモリ割付は済
み?をチェックし、YESなら該セルメモリを読出して
読出しデータをプリンタに渡し、該セルメモリはCAQ
に戻し、CATから解放する。このような動作を1頁の
区分数(本例では4096)繰り返せば、1頁分のデー
タ書込み完了になる。For printing, have you already allocated the cell memory as shown in Figure 4? If YES, read the cell memory and pass the read data to the printer.
and release it from CAT. If such an operation is repeated for the number of sections for one page (4096 in this example), data writing for one page is completed.
ドツトの密度は一定なので印字可能/不可能は用紙サイ
ズにより定まる。従って第2図に示すように印字可能な
領域か(MXNドツト以内か)否かをチェックし、No
であればCATにセルメモリの割付は禁止を指示すると
、無駄のないメモリ利用が図れる。次に実施例を示す。Since the density of dots is constant, whether printing is possible or not is determined by the paper size. Therefore, as shown in Fig. 2, check whether the area is printable (within MXN dots) or not.
If so, by instructing CAT to prohibit cell memory allocation, efficient memory usage can be achieved. Next, examples will be shown.
用紙上の各位置はX、 Y座標で表わすが、これは第5
図ta>に示すように左肩を原点としその右方向をX軸
の正方向、下方向をY軸の正方向とし、そして本例では
X方向の辺を4096ドツトで表わし、Y方向にはこの
辺が4096本あるとする。そして更に(blに示すよ
うにX、Y方向の辺を64分割し、1頁を64ドツト×
64の方形区分(セル)の4096個とする。用紙に印
刷される画像のデータは上記方形区分(セル)単位で扱
われ、該セルのデータを格納するメモリ(セルメモ1月
のアドレスが同図(C1のテーブルCATに格納される
。このテーブルCATを見ると、セルデータが実メモリ
(−1!ルメモリ)に格納されているか否か、いるな
らそのアドレスは何か、を知ることができる。セルデー
タを格納するセルメモリはセルアドレスキューCAQに
より管理され、空き状態のセルメモリのアドレスがCA
Qにキューを作る。Each position on the paper is represented by X and Y coordinates, which are the fifth
As shown in Figure ta, the left shoulder is the origin, the right direction is the positive direction of the X axis, and the downward direction is the positive direction of the Y axis.In this example, the side in the X direction is represented by 4096 dots, and the side in the Y direction is Assume that there are 4096 pieces. Then, (as shown in bl, the sides in the X and Y directions are divided into 64 parts, and one page is divided into 64 dots x
There are 4096 cells in 64 rectangular sections (cells). The image data to be printed on paper is handled in units of rectangular divisions (cells) as described above, and the memory that stores the data of the cells (cell memo January address is stored in the table CAT in C1 in the same figure (C1). By looking at the cell data, you can know whether the cell data is stored in the real memory (-1! memory) or not, and if so, what is its address.The cell memory that stores the cell data is stored in the cell address queue CAQ. The managed and free cell memory address is CA
Create a queue on Q.
セルメモリの集まりが画面メモリを構成し、該メモリへ
の書込み動作でセルメモリに上記用紙上の方形区分の画
像データ(ドツトパターン)が展開される。書込みが行
なわれない方形区分には、セルメモリは割付けられない
。印刷によりセルメモリの内容が不要になってクリアさ
れると、セルメモリはCAQに登録される。書込みは、
CAQから空きセルメモリを知ってそれに対して行なう
。A collection of cell memories constitutes a screen memory, and image data (dot patterns) of rectangular sections on the paper are developed in the cell memory by a write operation to the memory. No cell memory is allocated to rectangular sections that are not written to. When the contents of the cell memory become unnecessary and are cleared by printing, the cell memory is registered in the CAQ. The writing is
It learns free cell memory from CAQ and performs operations on it.
印刷が始まると空きセルメモリが発生し、その空きセル
メモリに書込みを行なうことができ、この印刷のための
読出しと空きセルメモリに対する書込みは並行して行な
うことができる。但し同じメモリに同時に書込みと読出
しを行なうことはできず、書込み用メモリと読出し用メ
モリは第1図のMlとM2の如く別にする。但しこのメ
モリMl。When printing starts, an empty cell memory is generated, and writing can be performed to the empty cell memory, and reading for printing and writing to the empty cell memory can be performed in parallel. However, it is not possible to write and read data into the same memory at the same time, and the memory for writing and the memory for reading are separated as shown in M1 and M2 in FIG. However, this memory Ml.
M2はそれぞれ1頁分の実メモリを持つ必要はない。最
初は1頁分のデータをメモリに書込んでから印刷を開始
するとしても、印刷開始後に書込み開始するメモリは、
印刷完了で解放されるメモリセルを利用できるので1頁
分は必要ない。また用紙上の画像データのない区分には
セルメモリは割当てられないから、最初は1頁分を書込
むとしても、メモリ容量は1頁分より少なくてよい。更
に、メモリにある程度(1頁に満たない)データが溜っ
た状態で印刷を開始すれば、メモリ容量は更に低減でき
る。M2 does not need to have real memory for one page each. Even if you start printing after writing one page's worth of data to memory, the memory to which you start writing after printing starts is
Since the memory cells released upon completion of printing can be used, one page is not necessary. Further, since no cell memory is allocated to a section of paper without image data, even if one page is initially written, the memory capacity may be less than one page. Furthermore, if printing is started with a certain amount of data (less than one page) stored in the memory, the memory capacity can be further reduced.
第6図は書込み、第7図は印刷を説明する図である。書
込み時にはCAQのポインタが指す空きセルメモリを書
込み対象とし、該セルアドレスをCA、 Tの書込み位
置(上記方形)に相当するアドレス位置に上記アドレス
を書込み、割付は状態にする。この処理を行なったらC
AQのポインタは1つ進められる(ポツプダウン)。第
2図の斜線を付した空きセルメモリはCA、 Qより外
される。FIG. 6 is a diagram for explaining writing, and FIG. 7 is a diagram for explaining printing. At the time of writing, the empty cell memory pointed to by the CAQ pointer is targeted for writing, and the cell address is written in the address position corresponding to the writing position of CA and T (the above rectangle), and the allocation is set to the state. After this process, C
The AQ pointer is advanced by one (pop-down). Empty cell memories marked with diagonal lines in FIG. 2 are removed from CA and Q.
次に、印刷によりセルメモリが解放されるとCAQにそ
のアドレスが格納され(第3図に斜線を付して示す)、
書込みが行なえる状態にされる。CAQのポインタはポ
ツプアップする。Next, when the cell memory is released by printing, the address is stored in CAQ (shown with diagonal lines in Figure 3).
It is made ready for writing. The CAQ pointer pops up.
テーブルCATは、64X64分割された用紙の1区分
のデータを格納するセルメモリのアドレスを格納するが
、そのlセル分の内容は第9図(d)に示す如(である
。即ち16ビツト(1ワード)からなり、そのO〜11
ビットに画面メモリ上のセルメモリのアドレス(但しメ
モリの]・ツブからのオフセットの9ピントを省略)を
示し、残りの4ビツトは制御データ用で、その1つを割
付フラグ用、他の1つを割付禁止用である。セルメモリ
の容量は64X64ビツト、即ち512バイトである。The table CAT stores the address of the cell memory that stores the data of one section of the paper divided into 64×64 sheets, and the contents of one cell are as shown in FIG. 9(d). That is, the 16-bit ( 1 word) and its O to 11
The bit indicates the address of the cell memory on the screen memory (however, the 9 pins of the offset from the memory block are omitted), and the remaining 4 bits are for control data, one of which is for the allocation flag, and the other one is for the allocation flag. One is for prohibition of allocation. The capacity of the cell memory is 64x64 bits, or 512 bytes.
この座標空間を第8図に示す。ワードは横方向にとり、
■ワードは2バイi・であるから4ワードが横に並び、
縦方向には64ワードが並ぶ。This coordinate space is shown in FIG. Take the word horizontally,
■Since the word is 2-by-i, 4 words are lined up horizontally,
64 words are arranged vertically.
以上説明したように本発明では仮想メモリ方式をとって
、印刷されて使用ずみとなったセルメモすは直ちに再使
用に廻すようにしたのでメモリ容量を低減でき、コスト
低減などに有効である。As explained above, the present invention employs a virtual memory system so that printed and used cell memory cards are immediately reused, so that memory capacity can be reduced, which is effective in reducing costs.
第1図は本発明のメモリ制御方法の説明図、第2図およ
び第3図は書込みを説明する流れ図、第4図は読取りを
説明する流れ図、
第5図は本発明の詳細な説明図、
第6図および第7図はCAQの説明図、第8図はセルメ
モリの説明図、
第9図はCATの説明図である。
第1図でCMはセルメモリ、CATはセルアドレステー
ブル、CAQはセルアドレスキューである。FIG. 1 is an explanatory diagram of the memory control method of the present invention, FIGS. 2 and 3 are flowcharts explaining writing, FIG. 4 is a flowchart explaining reading, and FIG. 5 is a detailed explanatory diagram of the present invention. 6 and 7 are explanatory diagrams of CAQ, FIG. 8 is an explanatory diagram of cell memory, and FIG. 9 is an explanatory diagram of CAT. In FIG. 1, CM is a cell memory, CAT is a cell address table, and CAQ is a cell address queue.
Claims (1)
ータをセルメモリ(実メモリ)に格納し、該データを格
納したセルメモリのアドレスを前記区分のアドレス対応
で記憶するテーブル(CAT)と、空きセルメモリを管
理するセルアドレスキュー(CAQ)を用い、 該データを格納したセルメモリを読出して印刷し、空き
となった該セルメモリはセルアドレスキューに並ばせ、 前記各区分のドットパターンデータの書込みは、セルア
ドレスキューより空きセルメモリを求めて該セルに対し
て行ない、 こうして印刷により解放されたセルメモリを直ちにドッ
トパターンデータ書込みに使用することを特徴とする仮
想イメージメモリの制御方法。[Claims] A sheet of paper is divided vertically and horizontally, dot pattern data for each division is stored in a cell memory (actual memory), and the addresses of the cell memory in which the data is stored are stored in correspondence with the addresses of the divisions. Using a table (CAT) to manage empty cell memories and a cell address queue (CAQ) to manage empty cell memories, the cell memories storing the data are read out and printed, and the empty cell memories are arranged in the cell address queue. The writing of the dot pattern data of each section is characterized in that an empty cell memory is found from the cell address queue and the cell memory is written to the corresponding cell, and the cell memory freed by printing is immediately used for writing the dot pattern data. How to control virtual image memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61135644A JPS62293338A (en) | 1986-06-11 | 1986-06-11 | How to control virtual image memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61135644A JPS62293338A (en) | 1986-06-11 | 1986-06-11 | How to control virtual image memory |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62293338A true JPS62293338A (en) | 1987-12-19 |
Family
ID=15156621
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61135644A Pending JPS62293338A (en) | 1986-06-11 | 1986-06-11 | How to control virtual image memory |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62293338A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0393562A (en) * | 1989-09-07 | 1991-04-18 | Tokyo Electric Co Ltd | Printer |
JPH04301473A (en) * | 1991-03-29 | 1992-10-26 | Fuji Xerox Co Ltd | Printer controller |
JPH05138955A (en) * | 1991-11-19 | 1993-06-08 | Oki Farm Wear Syst:Kk | Printer |
JPH08310062A (en) * | 1995-05-23 | 1996-11-26 | Nec Niigata Ltd | Control method for registration character to be stored in printer |
-
1986
- 1986-06-11 JP JP61135644A patent/JPS62293338A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0393562A (en) * | 1989-09-07 | 1991-04-18 | Tokyo Electric Co Ltd | Printer |
JPH04301473A (en) * | 1991-03-29 | 1992-10-26 | Fuji Xerox Co Ltd | Printer controller |
JPH05138955A (en) * | 1991-11-19 | 1993-06-08 | Oki Farm Wear Syst:Kk | Printer |
JPH08310062A (en) * | 1995-05-23 | 1996-11-26 | Nec Niigata Ltd | Control method for registration character to be stored in printer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS6022234A (en) | Form overlay type printer | |
JPH03197065A (en) | Page printer memory layout | |
JPH0378651B2 (en) | ||
JPS6329791A (en) | Font conversion system of character/image generator | |
JP2000335022A (en) | Printer control device | |
JPS6180339A (en) | Memory access control method | |
JPS62293338A (en) | How to control virtual image memory | |
JPS6364765A (en) | Output device | |
JPS631598A (en) | Data output controller to xy plotter | |
JPH03114856A (en) | Printer data management system | |
JPH0765591A (en) | Information processing device | |
JP3480036B2 (en) | Printing device | |
JPH022170B2 (en) | ||
JPH0253812B2 (en) | ||
JP3369419B2 (en) | Character output expansion method and apparatus | |
JPH02295778A (en) | Print control method | |
JPS6335343A (en) | Data reception control method | |
JPH0713710A (en) | Print system | |
JP3004656B2 (en) | Output control device | |
JPH0761063A (en) | Printer | |
JPH0596811A (en) | Printing method | |
JP2001154860A (en) | Memory managing method for operating system | |
JPS59217387A (en) | Method of generating printed pattern | |
JP2003167700A (en) | Printing system | |
JPS627561A (en) | Printer |