Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6356548B2 - - Google Patents
[go: Go Back, main page]

JPS6356548B2 - - Google Patents

Info

Publication number
JPS6356548B2
JPS6356548B2 JP57229371A JP22937182A JPS6356548B2 JP S6356548 B2 JPS6356548 B2 JP S6356548B2 JP 57229371 A JP57229371 A JP 57229371A JP 22937182 A JP22937182 A JP 22937182A JP S6356548 B2 JPS6356548 B2 JP S6356548B2
Authority
JP
Japan
Prior art keywords
data
address
write
read
window
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
Application number
JP57229371A
Other languages
Japanese (ja)
Other versions
JPS59119385A (en
Inventor
Takao Isogawa
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP57229371A priority Critical patent/JPS59119385A/en
Publication of JPS59119385A publication Critical patent/JPS59119385A/en
Publication of JPS6356548B2 publication Critical patent/JPS6356548B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、表示画面の輝点集合に対応したビツ
ト・マツプ・メモリにおいて、2点の座標で指定
されるウインドウ(矩形)の移動を、走査線方向
の一定のビツト長Nを単位として行うウインドウ
移動制御方式に関し、特に、ウインドウの走査線
方向の始端、終端に生じる定長Nに対する余りの
処理はシフト回路を用いて整合させ、書込み番地
における定長Nに対する余りの書込み時はリー
ド・モデイフアイ・ライトを実行することにより
元のデータの保証を行うようにしたビツト・マツ
プ・メモリ上のウインドウ移動制御方式に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a scanning method for moving a window (rectangle) specified by the coordinates of two points in a bit map memory corresponding to a set of bright spots on a display screen. Regarding the window movement control method in which a fixed bit length N in the line direction is used as a unit, in particular, processing of the remainder of the fixed length N that occurs at the start and end ends of the window in the scanning line direction is adjusted using a shift circuit, and This invention relates to a window movement control system on a bit map memory in which the original data is guaranteed by executing read-modify-write when writing a remainder to a fixed length N.

〔従来技術と問題点〕[Conventional technology and problems]

表示画面の輝点集合に対応したビツト・マツ
プ・メモリは、通常、走査線方向の一定のビツト
長N(例えば8ビツト、16ビツトなど)をアクセ
ス単位として読み書きされるのが普通である。こ
のようなビツト・マツプ・メモリ上におけるウイ
ンドウの移動は、従来、プログラム又はビツト・
マツプ・メモリのアクセス単位に限定したハード
ウエアで行われていた。
A bit map memory corresponding to a set of bright spots on a display screen is normally read and written using a fixed bit length N (for example, 8 bits, 16 bits, etc.) in the scanning line direction as an access unit. Conventionally, moving windows on bit map memory has been done using a program or a bit map memory.
This was done using hardware that was limited to map memory access units.

しかしながらプログラムによりビツト・マツ
プ・メモリ上におけるウインドウの移動を行う場
合には、ウインドウのデータをアクセス単位で全
て読出し、始端、終端における定長Nに対する余
り部分のデータはシフトして詰め直し、更に書込
み先の始端、終端で保証すべき元のデータを差し
込んでから書込むように処理される。したがつて
処理量が多くなり、処理速度が遅くなるという欠
点がある。
However, when moving a window on the bit map memory by a program, all the data in the window is read in each access unit, the remaining data for the fixed length N at the start and end is shifted and repacked, and then written again. Processing is performed by inserting the original data that should be guaranteed at the beginning and end, and then writing. Therefore, there are disadvantages in that the amount of processing increases and the processing speed becomes slow.

又、後者のビツト・マツプ・メモリのアクセス
単位に限定したハードウエアによりビツト・マツ
プ・メモリのウインドウの移動を行う場合には、
ウインドウはアクセス単位に整合した範囲でしか
移動できないので、ビツト・マツプ・メモリのア
クセス単位のバウンダリがついてしまい、ウイン
ドウの移動に制約がつくという欠点がある。
In addition, when moving the bit map memory window using hardware limited to the latter bit map memory access unit,
Since the window can only be moved within a range consistent with the access unit, there is a boundary of the bit map memory access unit, which has the disadvantage that window movement is restricted.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の欠点を除去するものであつ
て、ビツト・マツプ・メモリのアクセス単位に制
約されることがなく、自由なビツト長で構成され
たウインドウを任意の位置に高速で移動させるこ
とができるビツト・マツプ・メモリ上のウインド
ウ移動制御方式を提供することを目的とするもの
である。
The present invention eliminates the above-mentioned drawbacks, and allows a window composed of a free bit length to be moved to an arbitrary position at high speed without being restricted by the access unit of the bit map memory. The object of the present invention is to provide a window movement control method on a bit map memory that can perform the following steps.

〔発明の構成〕[Structure of the invention]

そのために本発明のビツト・マツプ・メモリ上
のウインドウ移動制御方式は、ビツト・マツプ・
メモリ上の2点の座標で指定されるウインドウ
を、走査線方向の一定のビツト長Nを単位として
アクセスして2点の座標で指定されるビツト・マ
ツプ・メモリ上の他の矩形部に移動するビツト・
マツプ・メモリ上のウインドウ移動制御方式であ
つて、上記ウインドウの読出し先頭番地から順に
上記単位に従つてデータを読出して記憶する一時
記憶手段、該一時記憶手段に記憶されたデータを
所定のビツト数シフトして上記単位のビツト長ず
つ出力するシフト手段、該シフト手段の出力する
データと上記矩形部の書込み番地から上記単位に
従つて読出したデータとのいずれかを選択して上
記書込み番地の書込みデータとして上記ビツト・
マツプ・メモリに送出するデータ選択手段、およ
び全体の制御を行う制御手段を少なくとも備え、
上記制御手段は、読出し先頭番地の上記ビツト長
Nに対する余りと書込み先頭番地の上記ビツト長
Nに対する余りとの差に基づいて上記シフト手段
におけるシフトビツト数を決め、始端の書込みの
際には書込み先頭番地の上記ビツト長Nに対する
余りに基づいて当該書込み番地の前側の元のデー
タが保証されるように上記データ選択手段におい
て選択するデータを決定し、終端の書込みの際に
は書込み終了番地の上記ビツト長Nに対する余り
に基づいて当該書込み番地の後側の元のデータが
保証されるように上記選択手段において選択する
データを決定するように上記シフト手段とデータ
選択手段とを制御するように構成されたことを特
徴とするものである。
For this purpose, the window movement control method on the bit map memory of the present invention
Move the window specified by the coordinates of two points on the memory to another rectangular area on the bit map memory specified by the coordinates of the two points by accessing it in units of fixed bit length N in the scanning line direction. Bits to do
A window movement control method on a map memory, comprising a temporary storage means for reading and storing data in the above unit sequentially from the read-out head address of the window, and a predetermined number of bits of the data stored in the temporary storage means. Shifting means for shifting and outputting each bit length of the above unit; selecting either the data output by the shifting means or the data read from the write address of the rectangular portion in accordance with the above unit; and writing at the write address. The above bits as data
comprising at least data selection means for sending to the map memory and control means for overall control;
The control means determines the number of shift bits in the shift means based on the difference between the remainder of the read start address with respect to the bit length N and the remainder of the write start address with respect to the bit length N, and when writing the start end, Based on the remainder of the bit length N of the address, the data to be selected by the data selection means is determined so that the original data at the front side of the write address is guaranteed, and when writing the end, the bits at the write end address are selected. The shift means and the data selection means are controlled to determine the data to be selected by the selection means so that the original data at the rear of the write address is guaranteed based on the remainder with respect to the length N. It is characterized by this.

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

以下、本発明の実施例を図面を参照しつつ説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の1実施例を示す図、第2図は
2点の座標によつて指定されたウインドウと移動
先の1例を示す図、第3図はデータ・シフトおよ
びリード・モデイフアイ・ライトの概要を示す図
である。
FIG. 1 is a diagram showing one embodiment of the present invention, FIG. 2 is a diagram showing an example of a window and movement destination specified by the coordinates of two points, and FIG. 3 is a diagram showing data shift and read modification. - It is a diagram showing an outline of the light.

第1図において、1はビツト・マツプ・メモ
リ、2は読出し番地レジスタ、3は書込み番地レ
ジスタ、4は書込み終了番地レジスタ5は比較
器、6は減算器、7は一時記憶レジスタ、8はシ
フタ、9は始端ゲート、10は終端ゲート、11
は制御用ROM、12は制御回路、13と14は
マルチプレクサ、aは読出し先頭番地の定長Nに
対する余り、cは書込み先頭番地の定長Nに対す
る余り、dは書込み終了番地の定長Nに対する余
り、XCは書込み先頭番地、XDは書込み終了番地、
は一致信号、は記憶信号、はシフト信号、
始終端ゲート信号、は差分信号、は始終端
通知信号を示す。又、第2図において、15はビ
ツト・マツプ・デイスプレイ、A(xA,yA)は読
出し先頭番地、B(xB,yB)は読出し終了番地、
C(xC,yC)は書込み先頭番地、D(xD,yD)は書
込み終了番地、XA,XB,XC,XDはアクセス番地
を示す。
In FIG. 1, 1 is a bit map memory, 2 is a read address register, 3 is a write address register, 4 is a write end address register, 5 is a comparator, 6 is a subtracter, 7 is a temporary storage register, and 8 is a shifter. , 9 is the start gate, 10 is the end gate, 11
is a control ROM, 12 is a control circuit, 13 and 14 are multiplexers, a is a remainder for the fixed length N of the read start address, c is a remainder for the fixed length N of the write start address, d is a remainder for the fixed length N of the write end address The remainder, X C is the write start address, X D is the write end address,
is a match signal, is a memory signal, is a shift signal,
Indicates the start/end gate signal, the difference signal, and the start/end notification signal. Further, in FIG. 2, 15 is a bit map display, A (x A , y A ) is a reading start address, B (x B , y B ) is a reading end address,
C (x C , y C ) is the write start address, D (x D , y D ) is the write end address, and X A , X B , X C , and X D are the access addresses.

本発明は、第2図に示すように、例えばビツ
ト・マツプ・デイスプレイ15上で読出し先頭番
地A(xA,yA)と読出し終了番地B(xB,yB)とに
よつてウインドウが指定され、これを書込み先頭
番地C(xC,yC)と書込み終了番地D(xD,yD)と
によつて指定される矩形の他の領域に移動させる
場合、定長Nをアクセス単位としてウインドウの
ビツト長や先頭番地、終了番地などが自由に設定
し得るようにしたもので、その1実施例を示した
のが第1図である。第1図において、読出し番地
レジスタ2にはウインドウの読出し番地が、書込
み番地レジスタ3には移動先領域の書込み番地
が、又、書込み終了番地レジスタ4には移動先領
域の書込み終了番地がセツトされる。比較器5で
は、書込み先頭番地XCと書込み終了番地XDとの
比較が行われ、両者が一致する場合(第9図およ
び第10図により後述)には一致信号が制御回
路12に送出される。他方減算器6では、書込み
先頭番地の定長Nに対する余りCと読出し先頭番
地の定長Nに対する余りaとの減算が行われ、そ
の差分信号が制御回路12に送出される。制御
回路12では、後に詳述するように、比較器5の
一致信号、減算器6の差分信号を受信し、一時
記憶レジスタ7に記憶信号を送出し、シフタ8
にシフト信号を送出し、制御用ROM11に始
終端通知信号を送出する。その他制御回路12
は全体を制御するものである。一時記憶レジスタ
7では、ビツト・マツプ・メモリ1のウインドウ
からアクセス単位に従つて定長Nずつのデータが
読出され、2Nのデータが記憶される。シフタ8
は、読出し先頭番地の定長Nに対する余りaと書
込み先頭番地の定長Nに対する余りCとの差分に
基づいて書込み先頭番地に整合するようにシフト
数を決定し、一時記憶レジスタ7から書込みデー
タとして定長Nの出力データを得るものである。
シフタ8の定長Nの出力データは、マルチプレク
サ14を通してビツト・マツプ・メモリ1の書込
み番地に書込まれるが、始終端では、制御用
ROM11から読出された始終端ゲート信号に
よつてマルチプレクサ14の始端ゲート9、終端
ゲート10が制御され、ビツト・マツプ・メモリ
1の書込み番地のデータがリード・モデイフア
イ・ライトされる。制御用ROM11は、制御回
路12の始終端通知信号に基づいて書込み先頭
番地の定長Nに対する余りC、書込み終了番地の
定長Nに対する余りdをアドレスとして、元のデ
ータを保証するようなリード・モデイフアイ・ラ
イト用のゲート操作のための始終端ゲート信号
が読出されるものである。
As shown in FIG. 2, the present invention allows a window to be opened, for example, on the bit map display 15 by a reading start address A (x A , y A ) and a reading end address B (x B , y B ). specified, and if you want to move it to another rectangular area specified by the write start address C (x C , y C ) and the write end address D (x D , y D ), access the constant length N. The bit length of the window, the start address, the end address, etc. can be freely set as a unit, and FIG. 1 shows an example of this. In FIG. 1, the read address of the window is set in the read address register 2, the write address of the destination area is set in the write address register 3, and the write end address of the destination area is set in the write end address register 4. Ru. The comparator 5 compares the write start address XC and the write end address XD , and if they match (described later with reference to FIGS. 9 and 10), a match signal is sent to the control circuit 12. Ru. On the other hand, the subtracter 6 subtracts the remainder C for the constant length N of the write start address and the remainder a for the constant length N of the read start address, and sends the difference signal to the control circuit 12. As will be detailed later, the control circuit 12 receives the match signal from the comparator 5 and the difference signal from the subtracter 6, sends a storage signal to the temporary storage register 7, and sends the storage signal to the shifter 8.
A shift signal is sent to the control ROM 11, and a start/end notification signal is sent to the control ROM 11. Other control circuit 12
is the one that controls the whole. In the temporary storage register 7, data of fixed length N is read out from the window of the bit map memory 1 in accordance with the access unit, and 2N data is stored. shifter 8
determines the shift number to match the write start address based on the difference between the remainder a for the constant length N of the read start address and the remainder C for the constant length N of the write start address, and stores the write data from the temporary storage register 7. As a result, output data of a constant length N is obtained.
The output data of the constant length N of the shifter 8 is written to the write address of the bit map memory 1 through the multiplexer 14.
The start and end gate signals read from the ROM 11 control the start and end gates 9 and 10 of the multiplexer 14, and the data at the write address in the bit map memory 1 is read, modified, and written. The control ROM 11 uses the remainder C for the fixed length N of the write start address and the remainder d for the fixed length N of the write end address as addresses based on the start/end notification signal of the control circuit 12, and performs a read that guarantees the original data. - Start and end gate signals for gate operation for modify write are read out.

データ・シフトおよびリード・モデイフアイ・
ライトの概要を示したのが第3図である。第3図
において、8′はシフタ機構、7−1と7−2は
一時記憶用レジスタ、8はシフタ、R/M/Wは
リード・モデイフアイ・ライトのゲートを示し、
点線はシフト範囲(幅2N−1)を示す。第3図
Aは、読出し先頭番地xAから読出し終了番地xB
までの斜線部が読出され、シフタ機構8′を通し
て書込み先頭番地xCから書込み終了番地xDまでの
斜線部に書込まれることを示しており、縦線の幅
がアクセス単位で定長Nである。第3図Bは、a
>cの場合の始端処理の概要を示したもので、順
次一時記憶レジスタ7−1から7−2へ定長Nず
つ読出しデータがセツトされ、一時記憶レジスタ
7−2の先頭から差分(a−c)だけシフトした
定長Nのデータがシフタ8から出力される。その
うち、先頭のc部分は、元のデータを保証するた
めにリード・モデイフアイ・ライトのゲートR/
M/Wが制御される。又、a≦cの場合の始端処
理には、図示しないが、読出し先頭番地xAのデ
ータがアクセス単位に従つて一時記憶レジスタ7
−1にセツトされる。そして一時記憶レジスタ7
−2の先頭から差分(N+a−c)だけシフトし
た定長のデータがシフタ8から出力される。この
ようなシフト数により読出しと書込みとの間で整
合させている。以後アクセス単位に従つて一時記
憶レジスタ7−1にデータがセツトされ、同時に
一時記憶レジスタ7−1のデータは一時記憶レジ
スタ7−2にシフトされ、その度にシフタ8から
先に述べたシフト数に従つて書込み番地に書込む
べきデータが送出される。この間においては元の
データを保証する必要がないので、リード・モデ
イフアイ・ライトは行われない。そして終端の処
理概要を示したものが第3図Cである。始端にお
いて第3図Bに示すようにシフタ8のシフト数が
固定された結果、読出し終了番地xBのデータは書
込み終了番地xDに書込まれるようにセツトされて
いるが、書込み終了番地xDの定長Nに対する余り
dの部分は元のデータを保証するためにリード・
モデイフアイ・ライトのゲートR/M/Wが制御
される。
Data Shift and Read Modification
Figure 3 shows an overview of the light. In FIG. 3, 8' is a shifter mechanism, 7-1 and 7-2 are temporary storage registers, 8 is a shifter, R/M/W is a read/modify/write gate,
The dotted line indicates the shift range (width 2N-1). Figure 3A is from the reading start address x A to the reading end address x B
This indicates that the shaded area up to is read out and written to the shaded area from the write start address xC to the write end address xD through the shifter mechanism 8', and the width of the vertical line is a constant length N in access units. be. Figure 3B is a
>c, the read data is sequentially set from temporary storage register 7-1 to 7-2 by fixed length N, and the difference (a- Data of constant length N shifted by c) is output from the shifter 8. The first part c is the read/modify/write gate R/ to guarantee the original data.
M/W is controlled. Also, in the start end processing when a≦c, although not shown, the data at the read start address x A is stored in the temporary storage register 7 according to the access unit.
-1. and temporary memory register 7
The shifter 8 outputs constant length data shifted by the difference (N+ac) from the beginning of -2. By using such a shift number, read and write operations are matched. Thereafter, data is set in the temporary storage register 7-1 according to the access unit, and at the same time, the data in the temporary storage register 7-1 is shifted to the temporary storage register 7-2, and each time the data is shifted from the shifter 8 to the above-mentioned shift number. The data to be written to the write address is sent out according to the following. During this time, there is no need to guarantee the original data, so no read/modify/write is performed. FIG. 3C shows an outline of the termination process. As a result of the shift number of the shifter 8 being fixed at the start end as shown in FIG. 3B, the data at the read end address x B is set to be written to the write end address The remainder d with respect to the constant length N of D must be read to ensure the original data.
Modify write gates R/M/W are controlled.

第4図はCRTデイスプレイを備えた本発明の
具体的な1実施例を示す図である。第4図におい
て、1ないし3、6ないし8,11と13ないし
15は第1図および第2図に対応するものを示
し、16はマルチプレクサ、17はメモリ・アド
レス・レジスタ、18は表示カウンタ、19はシ
フト・レジスタを示す。第4図において、ビツ
ト・マツプ・メモリ1に対しては、外部装置(例
えば中央処理装置)からメモリ・アドレスで指示
され、入力データ、出力データを読み書きするこ
とができるようになつている。又、ビツト・マツ
プ・メモリ1は、CRTデイスプレイ15に表示
するために表示カウンタ18をアドレスにして、
読出しデータをシフト・レジスタ19によつて並
−直変換してビデオ入力としてCRTデイスプレ
イ15に送られるようになつている。しかし、本
発明のウインドウ移動の場合には、読出し番地と
書込み番地が指示され、読出し番地レジスタ2と
書込み番地レジスタ3にセツトされる。読出しデ
ータは、一時記憶レジスタ7−1と7−2に一時
記憶され、先に第3図を参照しつつ述べたように
してシフタ8のシフト数が決定されそのシフト数
に従つてシフタ8から出力される。始端では、始
端書込み番地のデータが読出され、Cをアドレス
とする制御用ROM11の出力によりマルチプレ
クサ14においてシフタ8の出力データと始端書
込み番地のデータとのビツト毎の切換えが行わ
れ、シフタ8の出力データに書込み番地の元のデ
ータの必要なビツト・データが組合わされる。こ
のマルチプレクサ14の出力データが書込まれる
ことにより始端の処理が終了する。以後、終端の
処理が行われるまではシフタ8の出力データがそ
のまま書込まれ、終端で始端時と同様にリード・
モデイフアイ・ライトを実行することは先に述べ
たとおりである。
FIG. 4 is a diagram showing a specific embodiment of the present invention including a CRT display. In FIG. 4, 1 to 3, 6 to 8, 11 and 13 to 15 indicate those corresponding to FIGS. 1 and 2, 16 is a multiplexer, 17 is a memory address register, 18 is a display counter, 19 indicates a shift register. In FIG. 4, input data and output data can be read and written to the bit map memory 1 by instructions using a memory address from an external device (for example, a central processing unit). In addition, the bit map memory 1 uses the display counter 18 as an address to display on the CRT display 15.
The read data is parallel-to-serial converted by a shift register 19 and sent to a CRT display 15 as a video input. However, in the case of window movement according to the present invention, a read address and a write address are designated and set in the read address register 2 and the write address register 3. The read data is temporarily stored in the temporary storage registers 7-1 and 7-2, and the number of shifts of the shifter 8 is determined as described above with reference to FIG. Output. At the start end, the data at the start end write address is read out, and the multiplexer 14 performs bit-by-bit switching between the output data of the shifter 8 and the data at the start end write address by the output of the control ROM 11 with C as the address. Necessary bit data of the original data at the write address is combined with the output data. By writing the output data of the multiplexer 14, the processing at the start end is completed. From then on, the output data of the shifter 8 is written as is until the end processing is performed, and the read/write is performed at the end in the same way as at the beginning.
Executing the modify write is as described above.

第5図および第6図は一時記憶レジスタとシフ
タ部の具体的な構成例を示す図である。図におい
て、6ないし8は第1図および第4図に対応する
ものを示し、8−00ないし8−OF,8−E0
ないし8−EFと8−F0ないし8−FFはアン
ド・ゲート、8−0ないし8−Fはオア・ゲート
を示す。第5図は定長Nが16である場合を示し
ており、ビツト・マツプ・メモリ1のウインドウ
から読出されたデータがまず一時記憶レジスタ7
−1にセツトされ、次に一時記憶レジスタ7−2
に記憶される。減算器6は、読出し先頭番地の定
長16(N)に対する余りaと書込み先頭番地の
定長16(N)に対する余りcとの演算を行い、
16(N)個の答を出力するALUである。そし
てこの減算器6から4ビツト(デコードした場合
は16本)の出力がシフタ8に送られる。シフタ8
では、例えばが選択されると一時記憶レジスタ
7−1のビツト0からビツト15のデータが出力
され、が選択されると一時記憶レジスタ7−2
のビツト8からビツト15までのデータと一時記
憶レジスタ7−1のビツト0からビツト7までの
データが出力される。シフタ8をアンド・ゲート
とオア・ゲートで構成した例が第6図である。減
算器6は、1ないし0の出力端子を備え、演算結
果に応じていずれか1個の出力端子のみが論理
「1」になるように構成されたものである。シフ
タ8は、アンド・ゲート8−F0ないし8−FF
のグループが一時記憶レジスタ7−1のビツト0
ないしビツト15のデータを一方の入力とし、減
算器6の出力1ないし0を夫々他方の入力とす
る。更にアンド・ゲート8−E0ないし8−EF
のグループが一時記憶レジスタ7−1と7−2の
各ビツトのデータを前段のアンド・ゲート8−F
0ないし8−FFのグループとは1ビツトずつず
らして一方の入力とし、減算器の出力1ないし1
6を夫々他方の入力とする。同様にしてアンド・
ゲート8−00ないし8−0Fのグループまで1
6のアンド・ゲートのグループが設けられ、夫々
のグループのアンド・ゲートの出力がオア・ゲー
ト8−0ないし8−Fに供給される。したがつ
て、例えば減算器6の出力端子1が論理「1」の
場合には、アンド・ゲート8−F0,8−E0…
…8−00に入力されているデータ、即ち一時記
憶レジスタ7−2のビツト1からビツト15まで
のデータと一時記憶レジスタ7−1のビツト0の
データがオア・ゲート8−0ないし8−Fを通し
て出力される。
FIGS. 5 and 6 are diagrams showing specific configuration examples of the temporary storage register and the shifter section. In the figures, 6 to 8 indicate those corresponding to FIGS. 1 and 4, 8-00 to 8-OF, 8-E0
8-EF and 8-F0 to 8-FF represent AND gates, and 8-0 to 8-F represent OR gates. FIG. 5 shows a case where the constant length N is 16, and the data read from the window of bit map memory 1 is first read out from the temporary storage register 7.
-1, then temporary storage register 7-2
is memorized. The subtracter 6 calculates the remainder a for the constant length 16(N) of the read start address and the remainder c for the constant length 16(N) of the write start address,
This is an ALU that outputs 16 (N) answers. Then, the output of 4 bits (16 bits when decoded) is sent from the subtracter 6 to the shifter 8. shifter 8
For example, when is selected, data from bit 0 to bit 15 of temporary storage register 7-1 is output, and when is selected, data from temporary storage register 7-2 is output.
The data from bits 8 to 15 of the temporary storage register 7-1 and the data from bits 0 to bit 7 of the temporary storage register 7-1 are output. FIG. 6 shows an example in which the shifter 8 is composed of an AND gate and an OR gate. The subtracter 6 has output terminals ranging from 1 to 0, and is configured such that only one output terminal becomes logic "1" depending on the result of the operation. Shifter 8 is an AND gate 8-F0 to 8-FF
The group is bit 0 of temporary storage register 7-1.
The data of bits 1 to 15 are used as one input, and the outputs 1 to 0 of the subtracter 6 are respectively used as the other input. Furthermore, AND gate 8-E0 to 8-EF
A group of
The group of 0 to 8-FF is shifted by 1 bit and used as one input, and the output of the subtracter is 1 to 1.
6 as the other input. Similarly, and
1 for groups from gate 8-00 to 8-0F
Six groups of AND gates are provided, and the output of each group of AND gates is provided to OR gates 8-0 through 8-F. Therefore, for example, when the output terminal 1 of the subtracter 6 is logic "1", the AND gates 8-F0, 8-E0...
...The data input to 8-00, that is, the data from bit 1 to bit 15 of temporary storage register 7-2 and the data from bit 0 of temporary storage register 7-1 are OR gates 8-0 to 8-F. is output through.

第7図はマルチプレクサ14の構成例を示す
図、第8図は制御用ROM11の構成例を示す図
である。第7図において、14−10ないし14
−1Fと14−20ないし14−2Fはアンド・
ゲート、14−30ないし14−3Fはオア・ゲ
ートを示し、マルチプレクサ14を構成してい
る。アンド・ゲート14−10ないし14−1F
の一方の入力端子には、シフタ8からのシフタ・
アウト・データが供給され、アンド・ゲート14
−20ないし14−2Fの一方の入力端子には、
ビツト・マツプ・メモリ1からリード・アウト・
データが供給される。そしてアンド・ゲート14
−10ないし14−1Fの他方の入力端子とアン
ド・ゲート10−20ないし14−2Fの他方の
入力端子(反転入力端子)には、制御用ROM1
1からの始終端子ゲート信号が供給される。ア
ンド・ゲート14−10と14−20の出力端子
がオア・ゲート14−30の入力端子に接続さ
れ、同様にアンド・ゲート14−1Fと14−2
Fの出力端子がオア・ゲート14−3Fの入力端
子に接続されて、オア・ゲート14−30ないし
14−3Fの出力データがビツト・マツプ・メモ
リ1に書込まれるデータになる。先に説明した第
3図から明らかなように、始終端でない場合に
は、シフタ・アウト・データが全て書込まれるの
で、制御用ROM11からの始終端ゲート信号
は全て論理「1」にされ、アンド・ゲート14−
10ないし14−1Fを通してシフタ・アウト・
データがオア・ゲート14−30ないし14−3
Fから出力されるが、例えば始端の場合には、第
3図Bに示すR/M/Wに相当するビツト0から
Cの前までについては制御用ROM11の始終端
ゲート信号が論理「0」にされ、リード・アウ
ト・データがオア・ゲート14−30ないし14
−3Fに出力される。同様に終端の場合には、第
3図Cに示すR/M/Wに相当するdの後ビツト
15までについては制御用ROM11の始終端ゲ
ート信号が論理「0」にされる。制御用ROM
11は、例えば第8図に示すように256×4の
ROMの場合には4個用い、第1図に示すように
始終端通知信号によつて、書込み先頭番地の定
長Nに対する余りc、書込み終了番地の定長Nに
対する余りdが選択され、これらをアドレスとし
て読出された0ないし15の信号が第7図に示す
始終端ゲート信号とされる。
FIG. 7 is a diagram showing an example of the configuration of the multiplexer 14, and FIG. 8 is a diagram showing an example of the configuration of the control ROM 11. In Figure 7, 14-10 to 14
-1F and 14-20 or 14-2F are and.
Gates 14-30 to 14-3F indicate OR gates and constitute the multiplexer 14. AND GATE 14-10 to 14-1F
The shifter from shifter 8 is connected to one input terminal of
Out data is supplied and AND gate 14
-20 to 14-2F one input terminal,
Read out from bit map memory 1
Data is supplied. And Gate 14
-10 to 14-1F and the other input terminal (inverting input terminal) of AND gates 10-20 to 14-2F are connected to the control ROM1.
Starting and ending terminal gate signals from 1 are supplied. The output terminals of AND gates 14-10 and 14-20 are connected to the input terminal of OR gate 14-30, and similarly AND gates 14-1F and 14-2 are connected to the input terminal of OR gate 14-30.
The output terminal of F is connected to the input terminal of OR gate 14-3F, and the output data of OR gates 14-30 to 14-3F becomes the data written to bit map memory 1. As is clear from FIG. 3 described above, if it is not the start/end, all shifter out data is written, so all the start/end gate signals from the control ROM 11 are set to logic "1". and gate 14-
Shifter out through 10 to 14-1F.
Data is or gate 14-30 or 14-3
For example, in the case of the start end, the start and end gate signals of the control ROM 11 from bit 0 corresponding to R/M/W shown in FIG. 3B to before C are logic "0". and the lead out data is at OR gate 14-30 or 14.
-Output to 3F. Similarly, in the case of termination, the start and end gate signals of the control ROM 11 are set to logic "0" for up to bit 15 after d, which corresponds to R/M/W shown in FIG. 3C. Control ROM
11 is, for example, 256×4 as shown in Figure 8.
In the case of ROM, four are used, and as shown in Fig. 1, the remainder c of the write start address with respect to the constant length N and the remainder d of the write end address with respect to the constant length N are selected by the start and end end notification signals. The signals 0 to 15 read out using the address as the starting and ending gate signals shown in FIG.

第9図は書込み先の始終端の発生パターンを示
す図、第10図は書込み先の始終端が同一のアク
セス単位内である場合の発生パターンを示す図で
ある。第9図Aはアクセス単位の書込み先頭番地
XCと書込み終了番地XDとが異なり、アクセス単
位が16ビツトの例を示したものであり、斜線部が
シフタ・アウト・データの書込まれる部分を示し
ている。第9図Bはアクセス単位の書込み先頭番
地XCと書込み終了番地XDが同じ場合を示したも
のであり、cとdが共に0から15まであるが、
c<dになることは実際にあり得ないので、第9
図bの斜めの点線の下側にのみパターンが存在し
得ることになる。このパターンを具体的に示した
のが第10図である。第10図に示すパターンを
第7図および第8図に示す制御用ROM11の始
終端ゲート信号と対応させると、始終端ゲート
信号は第10図に示す斜線部に対応するビツト
のみを論理「1」にするようにROMを構成すれ
ばよい。その結果、斜線部に対応するビツトのみ
が、第8図に示すアンド・ゲート14−10ない
し14−1Fを通してシフト・アウト・データを
送出し、他のビツトがアンド・ゲート14−20
ないし14−2Fを通してリード・アウト・デー
タを送出するので、リード・アウト・データによ
るリード・モデイフアイ・ライトが実行されるこ
とになる。
FIG. 9 is a diagram showing the occurrence pattern of the beginning and end of the write destination, and FIG. 10 is a diagram showing the occurrence pattern when the beginning and end of the write destination are within the same access unit. Figure 9A is the write start address of the access unit
The figure shows an example in which the write end address XD is different from XC and the access unit is 16 bits, and the shaded area shows the part where shifter out data is written. FIG. 9B shows a case where the write start address X C and the write end address X D of the access unit are the same, and both c and d are from 0 to 15.
Since it is actually impossible for c<d, the ninth
A pattern can only exist below the diagonal dotted line in figure b. FIG. 10 specifically shows this pattern. When the pattern shown in FIG. 10 is made to correspond to the start and end gate signals of the control ROM 11 shown in FIGS. You can configure the ROM to do this. As a result, only the bits corresponding to the shaded areas send shift out data through the AND gates 14-10 to 14-1F shown in FIG.
Since the read-out data is sent through 14-2F, read-modify write using the lead-out data is executed.

第11図は制御回路による処理の流れを示すフ
ロー・チヤートである。以下、第11図を参照し
つつその処理の流れを説明する。
FIG. 11 is a flow chart showing the flow of processing by the control circuit. The flow of the process will be explained below with reference to FIG.

始端か終端かを調べる。 Check whether it is the start or end.

始端である場合にはの処理を行い、始端で
も終端でもない場合にはの処理を行い、終端
である場合にはの処理を行う。
If it is the start end, process is performed; if it is neither the start nor the end, process is performed; if it is the end, process is performed.

始端ゲートをセツトする。次にの処理を行
う。
Set the starting gate. Perform the following processing.

読出し先の始端aと書込み先の始端cとの比
較を行う。
A comparison is made between the start end a of the read destination and the start end c of the write destination.

a>cの場合にはの処理を行い、a≦cの
場合にはの処理を行う。
When a>c, the process is performed, and when a≦c, the process is performed.

ビツト・マツプ・メモリのXA番地をリード
する。次にの処理を行う。
Read address XA of bit map memory. Perform the following processing.

XA番地+1を新たにXA番地とする。次に
の処理を行う。
Set X A address + 1 as the new X A address. Perform the following processing.

始終端ゲートをオフする。次にの処理を行
う。
Turn off the start and end gates. Perform the following processing.

終端ゲートをセツトする。次にの処理を行
う。
Set the termination gate. Perform the following processing.

ビツト・マツプ・メモリのXA番地をリード
する。次にの処理を行う。
Read address XA of bit map memory. Perform the following processing.

ビツト・マツプ・メモリのXC番地にリー
ド・モデイフアイ・ライトする。始終端でない
場合には、第7図および第8図を参照しつつ説
明したようにc,dがオフされ、マルチプレク
サ14のアンド・ゲート14−20ないし2F
がオフされるので、シフト・アウト・データが
ライトされる。次にの処理を行う。
Read/modify/write to bit map memory address XC . If it is not the beginning or end, c and d are turned off as explained with reference to FIGS. 7 and 8, and the AND gates 14-20 to 2F of the multiplexer 14
is turned off, so shift-out data is written. Perform the following processing.

XC=XDであるか否かを調べる。 Check whether X C = X D.

XC=XDである場合にはの処理を行い、XC
=XDでない場合にはの処理を行う。
If X C = X D , process X C
If not =X D , perform processing.

XA番地+1を新たにXA番地とする。次に
の処理を行う。
Set X A address + 1 as the new X A address. Perform the following processing.

XC番地+1を新たにXC番地とする。次に
の処理に戻る。
Set X C address + 1 as the new X C address. Return to next process.

yC=yDであるか否かを調べる。 Check whether y C = y D.

yC=yDである場合には終了とし、yC=yDでな
い場合にはの処理を行う。
If y C = y D , the process is terminated, and if y C = y D , then the following process is performed.

XA番地を読出し先頭番地に復帰する。次に
の処理を行う。
X Read address A and return to the first address. Perform the following processing.

yC番地+1を新たなyC番地とする。次にの
処理に戻る。
Set yC address +1 as the new yC address. Return to next process.

走査線方向の処理は、までの処理により1ア
クセス単位の処理が終り、これを繰り返しまで
の処理が行われると走査線方向の1行分の処理が
終る。そしての処理から次の1行の処理が始ま
る。
In the processing in the scanning line direction, the processing for one access unit is completed by the processing up to this point, and when the processing up to this point is repeated, the processing for one line in the scanning line direction is completed. Then, processing for the next line begins.

第12図は本発明の応用例を示す図である。同
一のビツト・マツプ・デイスプレイ画面上で重な
りが発生するような位置へウインドウを移動する
場合に、第12図に示すように、ビツト・マツ
プ・デイスプレイ画面上に表示される表示領域と
は別の表示されない予備領域にウインドウを一度
退避()してから、再度表示領域の指定された
場所へ移動()したり、予備領域に定型パター
ン(イ、ロ、ハ、ニ)を用意し、この定型パター
ンを高速で表示領域へ転送すること()も可能
である。
FIG. 12 is a diagram showing an example of application of the present invention. When moving windows to a position where they overlap on the same bit map display screen, as shown in Figure 12, a You can save the window to a spare area that is not displayed () and then move it to a specified location in the display area () again, or prepare a standard pattern (A, B, C, D) in the preliminary area and use this standard pattern. It is also possible to transfer the pattern to the display area at high speed ().

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

以上の説明から明らかなように、本発明によれ
ば、ウインドウの始端、終端および移動先の始
端、終端を、シフト回路とマルチプレクサを用
い、リード・モデイフアイ・ライトを実行するこ
とにより整合させるので、ビツト・マツプ・メモ
リのアクセス単位に制約されることなく、自由な
ビツト長で構成されるウインドウを高速に移動さ
せることができ、データ処理の速度や効率を大幅
に向上させることができる。
As is clear from the above description, according to the present invention, the start and end of the window and the start and end of the movement destination are aligned by executing read, modify, and write using a shift circuit and a multiplexer. A window consisting of a free bit length can be moved at high speed without being restricted by the access unit of the bit map memory, and the speed and efficiency of data processing can be greatly improved.

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

第1図は本発明は本発明の1実施例を示す図、
第2図は2点の座標によつて指定されたウインド
ウと移動先の1例を示す図、第3図はデータ・シ
フトおよびリード・モデイフアイ・ライトの概要
を示す図、第4図はCRTデイスプレイを備えた
本発明の具体的な1実施例を示す図、第5図と第
6図は一時記憶レジスタとシフタ部の具体的な構
成例を示す図、第7図はマルチプレクサ14の構
成例を示す図、第8図は制御用ROMの構成例を
示す図、第9図は書込み先の始終端の発生パター
ンを示す図、第10図は書込み先の始終端が同一
アクセス単位内である場合の発生パターンを示す
図、第11図は制御回路による処理の流れを示す
フロー・チヤート、第12図は本発明の応用例を
示す図である。 1……ビツト・マツプ・メモリ、2……読出し
番地レジスタ、3……書込み番地レジスタ、4…
…書込み終了番地レジスタ、5……比較器、6…
…減算器、7,7−1と7−2……一時記憶レジ
スタ、8……シフタ、9……始端ゲート、10…
…終端ゲート、11……制御用ROM、12……
制御回路、13,14と16……マルチプレク
サ、15……ビツト・マツプ・デイスプレイ、1
7……メモリ・アドレス・レジスタ、18……表
示カウンタ、19……シフト・レジスタ、a……
読出し先頭番地の定長Nに対する余り、c……書
込み先頭番地の定長Nに対する余り、d……書込
み終了番地の定長Nに対する余り、……一致信
号、……記憶信号、……シフト信号、……
始終端ゲート信号、……差分信号、……始終
端通知信号、8−00ないし8−0F、8−E0
ないし8−EF、8−F0ないし8−FF、14−
10ないし14−1Fと14−20ないし14−
2F……アンド・ゲート、8−0ないし8−Fと
14−30ないし14−3F……オア・ゲート。
FIG. 1 is a diagram showing one embodiment of the present invention;
Figure 2 shows an example of a window and destination specified by the coordinates of two points, Figure 3 shows an overview of data shift and read/modify/write, and Figure 4 shows a CRT display. FIG. 5 and FIG. 6 are diagrams showing a concrete configuration example of the temporary storage register and shifter section, and FIG. 7 is a diagram showing a configuration example of the multiplexer 14. Figure 8 is a diagram showing an example of the configuration of the control ROM, Figure 9 is a diagram showing the occurrence pattern of the beginning and end of the write destination, and Figure 10 is the case where the beginning and end of the write destination are within the same access unit. FIG. 11 is a flow chart showing the flow of processing by the control circuit, and FIG. 12 is a diagram showing an application example of the present invention. 1...Bit map memory, 2...Read address register, 3...Write address register, 4...
...Write end address register, 5...Comparator, 6...
...Subtractor, 7, 7-1 and 7-2...Temporary storage register, 8...Shifter, 9...Start gate, 10...
... Termination gate, 11 ... Control ROM, 12 ...
Control circuits, 13, 14 and 16...Multiplexer, 15...Bit map display, 1
7...Memory address register, 18...Display counter, 19...Shift register, a...
Remainder of read start address with respect to fixed length N, c...Remainder of write start address with respect to fixed length N, d...Remainder with respect to fixed length N of write end address, ...match signal, ...memory signal, ...shift signal ,...
Start/end gate signal, difference signal, start/end notification signal, 8-00 to 8-0F, 8-E0
to 8-EF, 8-F0 to 8-FF, 14-
10 to 14-1F and 14-20 to 14-
2F...and gate, 8-0 to 8-F and 14-30 to 14-3F...or gate.

Claims (1)

【特許請求の範囲】[Claims] 1 ビツト・マツプ・メモリ上の2点の座標で指
定されるウインドウを、走査線方向の一定のビツ
ト長Nを単位としてアクセスして2点の座標で指
定されるビツト・マツプ・メモリ上の他の矩形部
に移動するビツト・マツプ・メモリ上のウインド
ウ移動制御方式であつて、上記ウインドウの読出
し先頭番地から順に上記単位に従つてデータを読
出して記憶する一時記憶手段、該一時記憶手段に
記憶されたデータを所定のビツト数シフトして上
記単位のビツト長ずつ出力するシフト手段、該シ
フト手段の出力するデータと上記矩形部の書込み
番地から上記単位に従つて読出したデータとのい
ずれかを選択して上記書込み番地の書込みデータ
として上記ビツト・マツプ・メモリに送出するデ
ータ選択手段、および全体の制御を行う制御手段
を少なくとも備え、上記制御手段は、読出し先頭
番地の上記ビツト長Nに対する余りと書込み先頭
番地の上記ビツト長Nに対する余りとの差に基づ
いて上記シフト手段におけるシフトビツト数を決
め、始端の書込みの際には書込み先頭番地の上記
ビツト長Nに対する余りに基づいて当該書込み番
地の前側の元のデータが保証されるように上記デ
ータ選択手段において選択するデータを決定し、
終端の書込みの際には書込み終了番地の上記ビツ
ト長Nに対する余りに基づいて当該書込み番地の
後側の元のデータが保証されるように上記選択手
段において選択するデータを決定するように上記
シフト手段とデータ選択手段とを制御するように
構成されたことを特徴とするビツト・マツプ・メ
モリ上のウインドウ移動制御方式。
1 The window specified by the coordinates of two points on the bit map memory is accessed in units of a fixed bit length N in the scanning line direction, and the window specified by the coordinates of the two points is accessed. A method for controlling the movement of a window on a bit map memory in which data is moved to a rectangular portion of the window, a temporary storage means for reading out and storing data sequentially in accordance with the above unit from the read-out head address of the window, and storing the data in the temporary storage means. a shift means for shifting the data by a predetermined number of bits and outputting the data in units of bit length of the above unit, and either the data output by the shift means or the data read from the write address of the rectangular part according to the above unit. At least data selection means selects and sends it to the bit map memory as write data at the write address, and control means performs overall control, and the control means determines the remainder of the bit length N of the read start address. The number of bits to be shifted by the shifting means is determined based on the difference between the bit length N and the remainder of the bit length N of the first write address. determining the data to be selected by the data selection means so that the original data of is guaranteed;
When writing at the end, the shifting means determines the data to be selected by the selecting means based on the remainder of the write end address with respect to the bit length N so that the original data at the rear of the write address is guaranteed. 1. A window movement control method on a bit map memory, characterized in that the method is configured to control data selection means and data selection means.
JP57229371A 1982-12-27 1982-12-27 Movement control system for window on bit map memory Granted JPS59119385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57229371A JPS59119385A (en) 1982-12-27 1982-12-27 Movement control system for window on bit map memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57229371A JPS59119385A (en) 1982-12-27 1982-12-27 Movement control system for window on bit map memory

Publications (2)

Publication Number Publication Date
JPS59119385A JPS59119385A (en) 1984-07-10
JPS6356548B2 true JPS6356548B2 (en) 1988-11-08

Family

ID=16891118

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57229371A Granted JPS59119385A (en) 1982-12-27 1982-12-27 Movement control system for window on bit map memory

Country Status (1)

Country Link
JP (1) JPS59119385A (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6175386A (en) * 1984-09-20 1986-04-17 ダイキン工業株式会社 Data shift circuit of bitmap display device
JPH0690606B2 (en) * 1985-03-29 1994-11-14 株式会社東芝 Memory control method
JPH0774946B2 (en) * 1985-05-20 1995-08-09 株式会社日立製作所 Memory circuit
JPS627087A (en) * 1985-07-03 1987-01-14 株式会社日立製作所 Display controller
JPS6214194A (en) * 1985-07-11 1987-01-22 日本電気株式会社 Bit map mover
JPS6234281A (en) * 1985-08-08 1987-02-14 Fanuc Ltd Picture processor
JP3164832B2 (en) * 1991-03-22 2001-05-14 株式会社日立製作所 Drawing control device

Also Published As

Publication number Publication date
JPS59119385A (en) 1984-07-10

Similar Documents

Publication Publication Date Title
US4399435A (en) Memory control unit in a display apparatus having a buffer memory
US4661812A (en) Data transfer system for display
JPH0355832B2 (en)
JPS6356548B2 (en)
JPH0441831B2 (en)
JP2861053B2 (en) Image processing device
JPS5835592A (en) display screen splitting device
JPH0443594B2 (en)
JP3052998B2 (en) Video display circuit
JP3139691B2 (en) Digital image processing circuit
JP2535841B2 (en) Display controller
JPS6252591A (en) Access control system for screen memory
JPH04315269A (en) Semiconductor memory device
JPH0535247A (en) Mask screen generation method
JPH0330074A (en) Display screen synthesizing device
JPS623289A (en) Output control system for refresh memory
JPH0383122A (en) Multi-window display device
JPH05328247A (en) Sub screen display circuit
JPS61264381A (en) Memory circuit
JPS585434B2 (en) display device
JPH04151195A (en) Image display device
JPH0481177A (en) Pattern synthesis circuit
JPS61262789A (en) Image memory access system
JPS6364085A (en) Display controller
JPH0196693A (en) Display controller