JPS6132159A - Dma controller - Google Patents

Dma controller

Info

Publication number
JPS6132159A
JPS6132159A JP15232684A JP15232684A JPS6132159A JP S6132159 A JPS6132159 A JP S6132159A JP 15232684 A JP15232684 A JP 15232684A JP 15232684 A JP15232684 A JP 15232684A JP S6132159 A JPS6132159 A JP S6132159A
Authority
JP
Japan
Prior art keywords
data
address
address information
window
counter
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
JP15232684A
Other languages
Japanese (ja)
Inventor
Noboru Murayama
村山 登
Koji Kuwata
耕司 桑田
Tsutomu Oishi
勉 大石
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP15232684A priority Critical patent/JPS6132159A/en
Publication of JPS6132159A publication Critical patent/JPS6132159A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Input (AREA)

Abstract

PURPOSE:To process automatically picture data without intervention of a central processor and with high general-purpose properties by providing a data processing means for storing data and processing it logically to a DMA controller itself. CONSTITUTION:In setting the operation mode to a data moving mode, the presence of duplication of areas is checked and if any duplication exists, the direction of duplication is discriminated and flags FX, FY are set. When, e.g., the flags FX, FY are both 0, the content of a register RSA is set to counters SS, SI and the content of a register RDA is set to counters DS, DI. When there is a request for DNA transfer, the content of a sender memory is read by the address information generated by the content of the counters SS and SI and it is latched by a logical operation unit ALU. Then the logical processing is applied to the content of the logical operation unit ALU, a destination address DS+DI is outputted to a data line and the content of the memory is rewritten by the result of operation.

Description

【発明の詳細な説明】 ■発明の分野 本発明は、高速処理を行なうためにデータ転送処理を中
央処理装置(CPU)にかわって高速に行なうDMA 
(ダイレクト・メモリ・アクセス)制御装置に関する。
Detailed Description of the Invention ■Field of the Invention The present invention relates to a DMA system that performs data transfer processing at high speed instead of a central processing unit (CPU) in order to perform high-speed processing.
(direct memory access) control device.

■従来の技術 マイクロプロセッサ等の中央処理装置は汎用性が高く様
々な処理を行ないうる。しかし、この種の装置はメモリ
の内容を1バイトあるいは数バイトづつ読んでプログラ
ムを解読しながら処理を実行するので、処理速度が遅い
。特にまとまった大量のデータを処理する場合には、そ
の処理が同じことの繰り返しであるにもかかわらず、処
理速度を速くすることはできない。そこで、データ転送
を高速で行なうためにDMA処理が採用される。
■Conventional technology Central processing units such as microprocessors are highly versatile and can perform a variety of processes. However, this type of device executes processing by reading the contents of memory one byte or several bytes at a time and decoding the program, so its processing speed is slow. Especially when processing a large amount of data, the processing speed cannot be increased even though the processing involves repeating the same process over and over again. Therefore, DMA processing is employed to transfer data at high speed.

DMA処理においては、システムバスから中央処理装置
を切り離し、中央処理装置にかわってDMA制御装置が
、アドレス情報、読み出しストローブ、書き込みストロ
ーブ等の生成を行ない、所定の入/出力装置とメモリの
間、又はアドレスの異なるメモリ同志の間でデータ転送
を行なう。
In DMA processing, the central processing unit is separated from the system bus, and instead of the central processing unit, the DMA control unit generates address information, read strobes, write strobes, etc. Or data is transferred between memories with different addresses.

しかしながら、従来のDMA制御装置では、単純なデー
タ転送しかできないのでデータの加工を伴なう処理は、
その処理内容が単純であっても、DMA処理を採用する
ことができない。
However, conventional DMA control devices can only perform simple data transfers, so processing that involves data processing is difficult.
Even if the processing content is simple, DMA processing cannot be adopted.

例えば画像処理を行なう場合、特定の2次元領域のデー
タを、反転したり、移動したりする処理がしばしば必要
になる。この種の処理は、従来より中央処理装置自身で
行なわざるを得ず、処理に長い時間を要していた。
For example, when performing image processing, it is often necessary to invert or move data in a specific two-dimensional area. Conventionally, this type of processing has had to be performed by the central processing unit itself, and the processing takes a long time.

所定の2次元領域のデータを反転する処理を中央処理装
置で行なう場合、処理開始アドレスと各画素のX座標お
よびY座標で順次各画素のメモリアドレスを計算し、ア
ドレスが得られる毎にそのメモリデータを読んで反転処
理を行ないそれを再び同一のアドレスにストアし、処理
終了位置かどうかの比較を行ないながら、処理終了位置
を検出するまでこれらの処理を繰り返す。またデータを
移動する場合、単にデータを転送するだけでは、転送先
にデータが存在する場合にそれを破壊することになるの
で、転送元のデータを読んでそれと転送先のデータとの
論理和をとってその結果を転送先にストアする等の処理
を行ない、これを全てのデータについて繰り返す。この
種の処理には、従来のDMA制御装置は使用できない。
When a central processing unit performs processing to invert data in a predetermined two-dimensional area, the memory address of each pixel is calculated sequentially using the processing start address and the X and Y coordinates of each pixel, and each time the address is obtained, the memory address is The data is read, inverted, stored at the same address again, and compared to see if it is the end position, repeating these processes until the end position is detected. Also, when moving data, simply transferring the data will destroy the data if it exists at the transfer destination, so read the data at the transfer source and perform a logical OR between it and the data at the transfer destination. Processing such as storing the result at the transfer destination is performed, and this process is repeated for all data. Conventional DMA controllers cannot be used for this type of processing.

■発明の目的 本発明は、汎用性が高く、画像データ等の処理を中央処
理装置を介在することなく自動的に行ないうるDMA制
御装置を提供することを第1の目的とし、2次元情報を
1回の指示で処理しうるDMA制御装置を提供すること
を第2の目的とし、転送元のデータ領域と転送先のデー
タ領域とが重なる場合のデータの破壊を防止することを
第3の目的とする。
■Purpose of the Invention The first object of the present invention is to provide a DMA control device that is highly versatile and can automatically process image data, etc. without the intervention of a central processing unit. The second purpose is to provide a DMA control device that can process with one instruction, and the third purpose is to prevent data destruction when the data area of the transfer source and the data area of the transfer destination overlap. shall be.

■発明の構成 上記目的を達成するため、本発明においては、DMA制
御装置自体に、データを保持してそのデータを論理処理
しうるデータ加工手段を備え、転送途中のデータ処理を
可能にする。論理処理は、反転、論理和、論理積、排他
的論理和、消去等である。
(2) Structure of the Invention In order to achieve the above object, in the present invention, the DMA control device itself is provided with data processing means capable of holding data and logically processing the data, thereby enabling data processing during transfer. Logical processing includes inversion, logical sum, logical product, exclusive logical sum, and erasure.

これによれば、例えば一連の領域のデータを反転じたい
場合、DMA制御装置に反転モードおよびその他必要な
パラメータをセットしてDMA要求を出力するだけでよ
い。
According to this, for example, when it is desired to invert data in a series of areas, it is only necessary to set the inversion mode and other necessary parameters in the DMA control device and output a DMA request.

画像データを処理する場合、処理は一般に特定の2次元
領域に対して行なわれる。表示用メモリのアドレスは連
続的であるが、表示画面に現われる2次元領域は、アド
レスが非連続の一次元領域の集りである。つまり、一般
に表示面のX座標で連続する画素群は互いに隣り合った
アドレスに配置されたメモリに対応するが、表示面のY
座標で連続する画素群は、アドレスが互いに所定量(表
示の1ラインに対応するメモリアドレス量)離れている
。このようにアドレスが非連続であると、Y座標が更新
される度にアドレスの計算を行なう必要があるので従来
のDMA制御装置を用いる場合には1ラインの処理毎に
中央処理装置を介在させなければならず、処理が複雑で
あるとともに時間がかかる。そこで、本発明の好ましい
態様においては、DMA制御装置の内部に、2次元座標
のそれぞれの座標値を計数する少なくとも2つのカウン
タを設け、これらのカウンタの計数値に応じてDMA制
御装置で自動的に2次元領域のアドレスを計算する。こ
れによれば、2次元データに対する中央処理装置の介在
が不要になる。
When processing image data, processing is generally performed on a specific two-dimensional region. Although the addresses of the display memory are continuous, the two-dimensional area appearing on the display screen is a collection of one-dimensional areas with non-continuous addresses. In other words, in general, groups of pixels that are continuous on the X coordinate of the display surface correspond to memories located at addresses adjacent to each other, but
The addresses of groups of pixels that are continuous in terms of coordinates are separated from each other by a predetermined amount (memory address amount corresponding to one line of display). If the addresses are discontinuous in this way, it is necessary to calculate the address every time the Y coordinate is updated, so when using a conventional DMA control device, a central processing unit must be involved for each line of processing. The process is complicated and time-consuming. Therefore, in a preferred embodiment of the present invention, the DMA control device is provided with at least two counters that count the respective coordinate values of the two-dimensional coordinates, and the DMA control device automatically performs the counter operations according to the counted values of these counters. Calculate the address of the two-dimensional area. This eliminates the need for a central processing unit to handle two-dimensional data.

ところで、特定の2次元領域のデータを他の2次元領域
に移動する場合、それらの領域間に重なりがあるとデー
タが破壊されることがある。例えば、メモリアドレスが
表示座標の右側に向かって大きくなる場合に、転送元の
データ領域の右側と転送先のデータ領域の左側とが重な
っていると、メモリアドレスの小さな方から順にデータ
転送を行なえば、最初の方で転送したデータは、転送元
の領域に格納されて、その後で処理メモリアドレスが重
複領域に達すると、最初の方で転送したデータは再び転
送されることになり、希望する転送結果が得られない。
By the way, when data in a specific two-dimensional area is moved to another two-dimensional area, the data may be destroyed if there is overlap between those areas. For example, if the memory address increases toward the right side of the display coordinates, and the right side of the transfer source data area and the left side of the transfer destination data area overlap, data will be transferred in order from the smallest memory address. For example, the data transferred at the beginning is stored in the transfer source area, and later when the processing memory address reaches the overlapping area, the data transferred at the beginning will be transferred again, and the desired No transfer results are obtained.

このような場合、データ転送アドレスの更新順序を逆に
すれば、転送中のデータ破壊は生じない。そこで、本発
明の好ましい態様においては、DMA制御装置で、それ
に設定される領域のパラメータをチェックして転送領域
間の重なりを調べ、重なりがある場合には、その重なり
の方向に応じて、処理アドレスの更新方向を決定する。
In such a case, if the order of updating the data transfer addresses is reversed, data destruction during transfer will not occur. Therefore, in a preferred embodiment of the present invention, the DMA control device checks the parameters of the areas set therein to examine the overlap between the transfer areas, and if there is an overlap, performs processing according to the direction of the overlap. Determine the address update direction.

つまり、横(X)方向で重なりがあって転送元の画素よ
りも転送先の画素が右側に位置する場合には画素の右側
から左側に向かって処理するようにアドレスを更新し、
その逆の場合には画素の左側から右側に向かってアドレ
スを更新し、縦方向で重なりがあって転送元の画素より
も転送先の画素が下側に位置する場合には画素の下側か
ら上側に向かって処理するようにアドレスを更新し、そ
の逆の場合には画素の上側から下側に向かってアドレス
を更新する。
In other words, if there is overlap in the horizontal (X) direction and the transfer destination pixel is located to the right of the transfer source pixel, the address is updated so that processing is performed from the right side of the pixel to the left side,
In the opposite case, the address is updated from the left side of the pixel to the right side, and if there is vertical overlap and the destination pixel is located below the transfer source pixel, the address is updated from the bottom of the pixel. Addresses are updated so as to process toward the top, and vice versa, addresses are updated from the top of the pixel to the bottom.

失振五 以下、図面を参照して本発明の詳細な説明する。Failed five Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図に、後述する表示情報処理装置に用いるDMA制
御装置の構成を示す。概略でいうと、このDMA制御装
置は、2次元の領域のデータ転送を行なうのと、データ
転送の途中でデータに処理を加えることが可能な点が特
に通常のDMA制御装置と異なっている。
FIG. 1 shows the configuration of a DMA control device used in a display information processing device to be described later. Briefly speaking, this DMA control device differs from a normal DMA control device in that it transfers data in a two-dimensional area and can process data during data transfer.

第1図を参照して説明する。このDMA制御装置には、
外部の装置と接続するために、8本のデータライン、2
0本のアドレスライン、数本のDMA要求信号ラインD
REQ(DMAリクエスト)、数本のDMA応答信号ラ
イうD A CK (DMAアクノリッジ)、中央処理
装置に対するホールド要求信号ラインHRQ (ホール
ドリクエスト)、中央処理装置からのホールド確認信号
ラインHLDA、(ホールドアクノリッジ)、リセット
信号ラインRESET 。
This will be explained with reference to FIG. This DMA control device has
8 data lines, 2
0 address lines, several DMA request signal lines D
REQ (DMA request), several DMA response signals DA CK (DMA acknowledge), hold request signal line HRQ (hold request) to the central processing unit, hold confirmation signal line HLDA (hold acknowledge) from the central processing unit. ), reset signal line RESET.

クロック信号ラインCLK、処理終了信号ラインEOP
 (エンドオブプロセス)等の信号ラインが備わってい
る。
Clock signal line CLK, processing end signal line EOP
(end of process) and other signal lines are provided.

このDMA制御装置が実際にシステムに組み込まれる場
合、上記の各信号ラインが、システムのパスラインに接
続される。
When this DMA control device is actually incorporated into a system, each of the above signal lines is connected to a path line of the system.

このDMA制御装置に動作モード、制御パラメータ等を
設定する場合、DMA制御装置は、入出力バッファBF
2を介して、データラインから各種情報を取り入れ委。
When setting the operation mode, control parameters, etc. to this DMA control device, the DMA control device uses the input/output buffer BF.
2, various information is taken in from the data line.

その場合にデータが何を意味するのかは、その時アドレ
スラインに入力される情報によって、コマンドコントロ
ール回路CMCが判別する。
In that case, the command control circuit CMC determines what the data means based on the information input to the address line at that time.

動作モード等を指定するコマンドデータは、コマンドレ
ジスタROMに保持される。この例では、DMA制御装
置の動作モードは、データ移動モード/データ固定モー
ド、演算モード/非演算モード等がある。データ移動モ
ードというのは、第1のアドレス領域から入力したデー
タを第2のアドレス領域に移動(転送)するモードであ
り、データ固定モードというのは、第1のアドレス領域
から入力したデータを第1のアドレス領域に転送(アド
レスは変化なし)するモードである。データ移動モード
においては、第1のアドレスから入力したデータと第2
のアドレスから入力したデータとで演算を行なってその
結果を出力することができる。演算モードは入力したデ
ータに対して予め設定された演算処理を行なってその結
果を転送先に出力するモードである。
Command data specifying the operating mode etc. is held in the command register ROM. In this example, the operation modes of the DMA control device include data movement mode/data fixation mode, calculation mode/non-calculation mode, etc. Data movement mode is a mode in which data input from a first address area is moved (transferred) to a second address area, and data fixation mode is a mode in which data input from a first address area is transferred to a second address area. This is a mode in which data is transferred to address area 1 (address remains unchanged). In data movement mode, the data input from the first address and the
It is possible to perform an operation on the data input from the address of and output the result. The calculation mode is a mode in which preset calculation processing is performed on input data and the result is output to the transfer destination.

演算モードにおいては、どのような演算を行なうのかを
指定する。この例では、演算モードとして、ビット毎の
反転、第1のデータと第2のデータとの論理和、第1の
データと第2のデータとの論理積、第1のデータと第2
のデータとの排他的論理和、消去(零の書込み)2回転
(ビットシフト)等が備わっている。
In the calculation mode, specify what kind of calculation to perform. In this example, the operation modes include bit-by-bit inversion, logical sum of first data and second data, logical product of first data and second data, and logical sum of first data and second data.
Exclusive OR with data, erasure (writing zero), double rotation (bit shift), etc. are provided.

実際にデータ転送を行なう場合、動作モードの他に、各
種パラメータを設定する。この例ではそのパラメータと
して、転送元スタートアドレス、転送先スタートアドレ
ス、X座標の長さくバイト数)、Y座標の長さくライン
数、但し回転の場合は8の整数倍)、及び出力装置(表
示装置)の構成によって定まる1ラインあたりのメモリ
量(バイト数)の5つがある。これらのパラメータは、
それぞれ転送元スタートアドレスレジスタR3A 、転
送先スタートアドレスレジスタRDA 、バイト数設定
値レジスタRXB 、ライン数設定値レジスタRYL、
及びラインバイト設定値レジスタRXHに格納される。
When actually transferring data, various parameters are set in addition to the operation mode. In this example, the parameters include the transfer source start address, the transfer destination start address, the length of the X coordinate (the number of bytes), the length of the Y coordinate (the number of lines) (in the case of rotation, an integral multiple of 8), and the output device (display There are five memory amounts (number of bytes) per line determined by the configuration of the device. These parameters are
Transfer source start address register R3A, transfer destination start address register RDA, byte number setting value register RXB, line number setting value register RYL, respectively.
and is stored in the line byte setting value register RXH.

データ転送を行なう場合のアドレス情報は、4つのカウ
ンタSS、SI、DSおよびDIから出力される。カウ
ンタSIおよびDIは16・ビットカウンタであり、S
SおよびDSは4ビツトカウンタである。1つのアドレ
ス情報(20ビツト)は、1つのインデックスアドレス
カウンタSI又はDIと、1つのセグメントアドレスカ
ウンタSS又はDSによって生成される。インデックス
アドレスカウンタSl及びDIは転送を行なう毎にイン
クリメントもしくはデクリメントされ、それがオーバフ
ロー又はアンダーフローしてキャリーが出力されると、
セグメントアドレスカウンタSS又はDSがインクリメ
ントもしくはデクリメントされる。
Address information for data transfer is output from four counters SS, SI, DS and DI. Counters SI and DI are 16-bit counters,
S and DS are 4-bit counters. One address information (20 bits) is generated by one index address counter SI or DI and one segment address counter SS or DS. The index address counters Sl and DI are incremented or decremented each time a transfer is performed, and when they overflow or underflow and a carry is output,
Segment address counter SS or DS is incremented or decremented.

XカウンタCNXおよびYカウンタCNYは、それぞれ
転送を行なう2次元領域のX座標およびY座標の更新回
数を計数する。
The X counter CNX and the Y counter CNY count the number of times the X and Y coordinates of the two-dimensional area to be transferred are updated, respectively.

このDMA制御装置全体の処理タイミングは、タイミン
グ及コントロール回路TMCが制御する。
The processing timing of the entire DMA control device is controlled by a timing and control circuit TMC.

次に、第1図に示すDMA制御装置の処理動作の概略を
、第2a図、第2b図および第2c図を参照しながら説
明する。
Next, an outline of the processing operation of the DMA control device shown in FIG. 1 will be explained with reference to FIGS. 2a, 2b, and 2c.

まず最初に、動作モード、コマンド、各種パラメータ等
を設定する。ここで、データ移動モード、すなわち互い
に異なるアドレスの間でデータ転送を行なうモードに設
定されると、続いて領域の重複の有無をチェックする。
First, set the operating mode, commands, various parameters, etc. Here, when the data movement mode, that is, the mode in which data is transferred between mutually different addresses, is set, the presence or absence of area overlap is then checked.

つまり、データ転送を行なうアドレス順は、一般に/J
%さいアドレスから大きなアドレスに向かって更新して
もよいしその逆に向かって更新してもよいが、転送元の
メモリ領域と転送先のメモリ領域との間に重複する部分
が存在する場合、その更新方向によっては、転送先に設
定された後で転送元の設定されるメモリ領域が生じ、そ
の場合、一度更新されたデータの内容が再び転送される
ので、そのデータが転送されたメモリの内容は異常にな
る。   ′そこで、転送メモリ領域間に重複がある場
合、重複の方向を判別しその結果に応じてフラグFX及
びFYをセットする。第1次元(X軸方向)において転
送元のアドレスよりも転送先のアドレスが大きい場合、
つまり、表示面において転送元領域よりも転送先領域が
右側に存在する場合、フラグFXをII 111にセッ
トし、そうでなければフラグFXにII OIIをセッ
トする。また第2次元(Y軸方向)において転送元のア
ドレスよりも転送先のアドレスが大きい場合、つまり、
表示面において転送元領域よりも転送先領域が下側に存
在する場合、フラグFYをHI IIにセットし、そう
でなければフラグFYにII O11をセットする。な
お、領域の重複がない場合にはフラグFXおよびFYは
共に11.011にセットされる。
In other words, the address order for data transfer is generally /J
% You may update from a small address to a large address or vice versa, but if there is an overlap between the transfer source memory area and the transfer destination memory area, Depending on the update direction, a memory area may be set as the transfer source after being set as the transfer destination. In that case, the contents of the data that have been updated will be transferred again, so the memory area to which the data was transferred will be The content becomes abnormal. 'Therefore, if there is an overlap between the transfer memory areas, the direction of the overlap is determined and flags FX and FY are set according to the result. If the destination address is larger than the source address in the first dimension (X-axis direction),
That is, if the transfer destination area exists on the right side of the transfer source area on the display screen, the flag FX is set to II 111, and if not, the flag FX is set to II OII. Also, if the destination address is larger than the source address in the second dimension (Y-axis direction), that is,
If the destination area exists below the source area on the display screen, the flag FY is set to HI II; otherwise, the flag FY is set to II O11. Note that if there is no overlap in the areas, flags FX and FY are both set to 11.011.

フラグFX及びFYが共にII O7+の場合、転送元
セグメントアドレスカウンタSSと転送元インデックス
アドレスカウンタSIに、転送元スタートアドレスレジ
スタR8Aの内容をプリセットし、転送先セグメントア
ドレスカウンタDSと転送先インデックスアドレスカウ
ンタDIに、転送先スタートアドレスレジスタRDAの
内容(表示面では領域の左上端座標)をプリセットする
。同様に、フラグFXがII 1 #でFYがrr O
nの場合には、SS十SIに、転送元スタートアドレス
レジスタR5Aの内容にバイト数設定値レジスタRXB
の内容を加算した結果をプリセットし、DS+DIに、
転送先スタートアドレスレジスタRDAの内容にバイト
数設定値レジスタRXBの内容を加算した結果(表示面
では領域の右上端座標)をプリセットする。フラグFX
が”0″でFYがII I 11の場合には、SS+S
Iに、ラインバイト設定値レジスタRXMの内容とライ
ン数設定値レジスタRYLの内容を乗算した結果と転送
元スタートアドレスレジスタR8Aの内容とを加算した
結果(表示面では領域の左下端座標)をプリセットし、
pS+DIに、ラインバイト設定値レジスタRXMの内
容とライン数設定値レジスタRYLの内容を乗算した結
果と転送先スタートアドレスレジスタRDAの内容とを
加算した結果をプリセットする。それ以外、つまりフラ
グFX及びFYが共にII I Hの場合、SS+SI
に、ラインバイト設定値レジスタRXMの内容とライン
数設定値レジスタRYLの内容とを乗算した結果、バイ
ト数設定値レジスタRXBの内容、および転送元スター
トアドレスレジスタR3Aの内容を加算した結果をプリ
セットし、DS十DIに、ラインバイト設定値レジスタ
RXMの内容とライン数設定値レジスタRYLの内容と
を乗算した結果、バイト数設定値レジスタRXBの内容
、および転送先スタートアドレスレジスタRDAの内容
を加算した結果をプリセットする。
If flags FX and FY are both II O7+, the contents of the transfer source start address register R8A are preset to the transfer source segment address counter SS and transfer source index address counter SI, and the contents of the transfer source start address register R8A are preset to the transfer destination segment address counter DS and transfer destination index address counter SI. The contents of the transfer destination start address register RDA (the coordinates of the upper left end of the area on the display screen) are preset in DI. Similarly, flag FX is II 1 # and FY is rr O
In the case of n, the contents of the transfer source start address register R5A are set to the byte number setting value register RXB in SS0SI.
Preset the result of adding the contents of and set it to DS + DI.
The result of adding the contents of the byte number setting value register RXB to the contents of the transfer destination start address register RDA (on the display screen, the upper right coordinates of the area) is preset. Flag FX
is “0” and FY is II I 11, SS+S
Preset the result of multiplying I by the contents of the line byte setting value register RXM and the contents of the line number setting value register RYL and adding the contents of the transfer source start address register R8A (lower left coordinate of the area on the display screen). death,
The result of multiplying the contents of the line byte setting value register RXM by the contents of the line number setting value register RYL and adding the contents of the transfer destination start address register RDA is preset to pS+DI. Otherwise, if flags FX and FY are both II I H, SS+SI
The result of multiplying the contents of line byte setting value register RXM by the contents of line number setting value register RYL, adding the contents of byte number setting value register RXB, and the contents of transfer source start address register R3A is preset. , DS0DI is multiplied by the contents of the line byte setting value register RXM and the contents of the line number setting value register RYL, and the contents of the byte number setting value register RXB and the contents of the transfer destination start address register RDA are added. Preset results.

DMA転送の要求が(例えば中央処理装置CPUから)
あると、次の処理に進む。但し、予めそのチャンネルが
マスクされている場合には、その要求のみを記憶する。
A request for DMA transfer (e.g. from the central processing unit CPU)
If so, proceed to the next process. However, if the channel is masked in advance, only that request is stored.

マスクが解除されていれば、DMAアクノリッジ信号D
ACKを転送を要求した装置に出力し、続いてホールド
リクエスト信号HRQを中央処理装置に出力する。中央
処理装置は、ホールドリクエストHRQを受けると、現
在実行中の処理を終了した後、システムバスを開放し、
ホールドアクノリッジ信号HLDAを、DMA制御装置
に出力する。この後は、DMA制御装置がシステムバス
を制御して所定のデータ転送を行なう。
If the mask is released, the DMA acknowledge signal D
It outputs ACK to the device that requested the transfer, and then outputs a hold request signal HRQ to the central processing unit. When the central processing unit receives the hold request HRQ, the central processing unit releases the system bus after finishing the process currently being executed.
A hold acknowledge signal HLDA is output to the DMA control device. After this, the DMA control device controls the system bus to perform predetermined data transfer.

まず、カウンタCNXにバイト数設定値レジスタRXB
の内容をプリセットし、カウンタCNYにライン数設定
値レジスタRYLの内容をプリセットする。
First, counter CNX is set to byte number setting value register RXB.
The contents of the line number setting value register RYL are preset to the counter CNY.

転送元セグメントアドレスカウンタSSと転送元インデ
ックスアドレスカウンタSIとの内容で生成されるアド
レス情報をマルチプレクサ&出力バッファBFIを介し
て、システムバスのアドレスラインに出力し、同時にメ
モリ読み出しストローブ信号(図示せず)を出力して、
転送元メモリの内容を読み出す。ここでデータライン上
に現われるデータは、入/出力バッファBF2を介して
DMA制御装置内に取り込み、論理演算ユニットALU
でラッチする。
Address information generated from the contents of the transfer source segment address counter SS and transfer source index address counter SI is output to the address line of the system bus via the multiplexer & output buffer BFI, and at the same time a memory read strobe signal (not shown) is output to the address line of the system bus. ) and output
Read the contents of the transfer source memory. Here, the data appearing on the data line is taken into the DMA control unit via the input/output buffer BF2, and is sent to the logic operation unit ALU.
Latch with.

アドレスが1つ、すなわち転送元アドレスと転送先アド
レスとが同一である場合、演算モードにセットされてい
れば、その演算モードの種別に応じて、論理演算ユニッ
トALUにラッチされたデータを、ALUの内部で演算
し、結果もALUで保持する。
When there is one address, that is, the transfer source address and the transfer destination address are the same, and the operation mode is set, the data latched in the logical operation unit ALU is transferred to the ALU according to the type of operation mode. The calculation is performed internally, and the result is also held in the ALU.

そして転送元カウンタSS+SIの内容をアドレスライ
ンに出力し、論理演算ユニットALUに保持されたデー
タをデータラインに出力し、メモリ書込みストローブ信
号(図示せず)を出力して、メモリの内容を書き換える
Then, the contents of the transfer source counter SS+SI are outputted to the address line, the data held in the logical operation unit ALU is outputted to the data line, and a memory write strobe signal (not shown) is outputted to rewrite the contents of the memory.

データ転送元アドレスとデータ転送先アドレスとが異な
る場合の演算モードは、2つのグループに分けられる。
Operation modes when the data transfer source address and data transfer destination address are different are divided into two groups.

1つは、論理演算ユニットALUの内容に対してそれ自
体の反転、消去、および所定値yの論理演算を行なうモ
ードであり、もう1つは、論理演算ユニットALUの内
容と転送先アドレス(DS+I)I)に格納されたデー
タとで論理演算を行なうモードである。いずれのモード
においても、結果は論理演算ユニットALUに格納され
る。そして、転送先アドレス(DS+DI)をアドレス
ラインに出力し、論理演算ユニットALUの内容をデー
タラインに出力し、データ書込みストローブ信号をシス
テムバスに出力して、演算結果でメモリの内容を書き換
える。
One is a mode in which the contents of the logical operation unit ALU are inverted, erased, and logically operated with a predetermined value y.The other is a mode in which the contents of the logical operation unit ALU and the transfer destination address (DS+I ) I) is a mode in which logical operations are performed on the data stored in I). In either mode, the results are stored in the logic unit ALU. Then, it outputs the transfer destination address (DS+DI) to the address line, outputs the contents of the logic operation unit ALU to the data line, outputs a data write strobe signal to the system bus, and rewrites the contents of the memory with the operation result.

1回の転送処理が終了すると、まずカウンタCNXの内
容をデクリメントする。その結果カウンタCNXの内容
が0以上であれば、フラグFXの状態に応じて、カウン
タSS、SI、DSおよびDIの内容を更新する。フラ
グFXがII O+7なら、インデックスアドレスカウ
ンタSI及びDIをインクリメントし、FXがII 1
71ならそれらをデクリメントする。その時にインデッ
クスアドレスカウンタSI及びDIがオーバフロー(又
はアンダーフロー)した場合は、それぞれセグメントア
ドレスカウンタSS及びDSの値を更新(インクリメン
ト又はデクリメント)する。
When one transfer process is completed, the contents of the counter CNX are first decremented. As a result, if the contents of the counter CNX are 0 or more, the contents of the counters SS, SI, DS, and DI are updated according to the state of the flag FX. If the flag FX is II O+7, the index address counters SI and DI are incremented, and the FX is II 1.
If it is 71, decrement them. If index address counters SI and DI overflow (or underflow) at that time, the values of segment address counters SS and DS are updated (incremented or decremented), respectively.

もしカウンタCNXをデクリメントした結果が負なら、
カウンタCNXにバイト数設定値レジスタRXBの内容
を再セットし、カウンタCNYをデクリメントし、フラ
グFX及びFYの状態に応じてアドレスカウンタSS、
SI、DS及びDIの内容を再セットする。フラグFX
及びFYが共に0”なら、カウンタSS+SIに、ライ
ンバイト設定値レジスタRXMの内容を加算し、バイト
数設定値レジスタRXBの内容を減算して、カウンタD
S十DIにもRXMの内容を加算し、RXBの内容を減
算する。同様に、フラグFXが′1″でFYが710 
IIの場合には、カウンタSS+SIにレジスタRXB
の内容とレジスタRXMの内容を加算し、カウンタDS
+DIにもRXBの内容とRXMの内容を加算する。フ
ラグFXが′尽0”でFYが1′″の場合には、カウン
タSS十SIの内容からレジスタRXBの内容とレジス
タRXMの内容を減算し、カウンタDS+DIの内容か
らレジスタRXBの内容とレジスタRXMの内容を減算
する。それ以外、つまりフラグFXとFYが共に”1″
なら、カウンタSS+S IにレジスタRXBの内容を
加算し、レジスタRXMの内容を減算して、カウンタD
S+DIにレジスタRXBの内容を加算しレジスタRX
Mの内容を減算する。
If the result of decrementing counter CNX is negative,
The contents of the byte number setting value register RXB are reset to the counter CNX, the counter CNY is decremented, and the address counter SS and
Reset the contents of SI, DS and DI. Flag FX
and FY are both 0'', the contents of line byte setting value register RXM are added to counter SS+SI, the contents of byte number setting value register RXB are subtracted, and counter D
The contents of RXM are also added to S1DI, and the contents of RXB are subtracted. Similarly, flag FX is '1'' and FY is 710
In case of II, register RXB is added to counter SS+SI.
The contents of the register RXM are added to the contents of the register RXM, and the counter DS
The contents of RXB and RXM are also added to +DI. When flag FX is ``exhausted 0'' and FY is 1'', the contents of register RXB and register RXM are subtracted from the contents of counter SS-SI, and the contents of register RXB and register RXM are subtracted from the contents of counter DS+DI. Subtract the contents of. Other than that, both flags FX and FY are “1”
Then, add the contents of register RXB to counter SS + S I, subtract the contents of register RXM, and set counter D.
Add the contents of register RXB to S+DI and register RX
Subtract the contents of M.

つまりアドレスの更新方向は、メモリアドレスが2次元
表示面上を左から右および上から下に向かう方向でそれ
ぞれ大きくなる通常の表示装置においては、フラグFX
及びFYが共にjl OIIの場合には、表示面上を左
から右および上から下に向かう方向であり、フラグFX
が## I IIでFYがII OIIの場合には表示
面上を右から左および上から下に向かう方向であり、フ
ラグFXが”0″でFYが1”の場合には表示面上を左
から右および下から上に向かう方向であり、フラグFX
及びFYが共にsr 1 uの場合には表示面上を右か
ら左および下から上に向かう方向である。
In other words, in a normal display device where the memory address increases from left to right and from top to bottom on the two-dimensional display surface, the direction in which the address is updated is the flag FX.
and FY are both jl OII, the direction is from left to right and from top to bottom on the display screen, and the flag FX
If ## I II and FY is II OII, the direction is from right to left and top to bottom on the display screen, and when flag FX is "0" and FY is 1, the direction is on the display surface. The direction is from left to right and from bottom to top, and the flag FX
and FY are both sr 1 u, the direction is from right to left and from bottom to top on the display screen.

カウンタCNXをデクリメントした結果が負になった後
でカウンタCNYをデクリメントした結果が負になれば
、全ての領域のデータ転送が終了したことになるので、
ホールドリクエスト信号HRQを解除し、システムバス
を中央処理装置のために開放し、初期状態に戻る。
If the result of decrementing the counter CNX becomes negative and the result of decrementing the counter CNY becomes negative, it means that data transfer for all areas has been completed.
The hold request signal HRQ is released, the system bus is released for the central processing unit, and the initial state is returned.

第3図に、−形式の表示情報処理装置を示す。FIG. 3 shows a - format display information processing device.

第3図を参照して説明する。この表示情報処理装置には
、第1図に示したDMA制御装置がダイレクトメモリア
クセスユニットDMAPとして備わっている。この装置
のシステムバスには、マイクロプロセッサMPU及びダ
イレクトメモリアクセスユニットDMAPの他に、アド
レスデコーダADD、メインメモリRAM 1 、読み
出し専用メモリROM1.I10ポートエoP、ビット
マツプメモリRAM 2 、キャラクタメモリRAM 
3 、外部メモリインタフェースIFI、スキャナイン
タフェースI F2.キーボードユニット、表示信号合
成ユニットDSPU等が接続されているら表示信号合成
ユニットDSPUは、ブラウン管表示ユニットCRTU
に所定の画像を表示するための信号を生成する。この信
号は、ビットマツプメモリRAM2に書き込まれた各画
素対応データと、キャラクタメモリRAM3に書き込ま
れた文字コードに応じた画素データとの論理和によって
生成される。この例では、多数の文字パターンの画素デ
ータがキャラクタジェネレータROM2に予め書き込ん
であり、キャラクタメモリRAM3が所定の文字コード
データを出力すると、それに応じた文字パターンデータ
が表示信号合成ユニットDSPUに出力される。なお、
CRT表示ユニットCRTUはカラー表示器である。
This will be explained with reference to FIG. This display information processing device is equipped with the DMA control device shown in FIG. 1 as a direct memory access unit DMAP. The system bus of this device includes, in addition to the microprocessor MPU and direct memory access unit DMAP, an address decoder ADD, a main memory RAM1, a read-only memory ROM1. I10 port OP, bitmap memory RAM 2, character memory RAM
3. External memory interface IFI, scanner interface IF2. If the keyboard unit, display signal synthesis unit DSPU, etc. are connected, the display signal synthesis unit DSPU is connected to the cathode ray tube display unit CRTU.
A signal for displaying a predetermined image is generated. This signal is generated by the logical sum of the data corresponding to each pixel written in the bitmap memory RAM2 and the pixel data corresponding to the character code written in the character memory RAM3. In this example, pixel data of a large number of character patterns are written in advance in the character generator ROM2, and when the character memory RAM3 outputs predetermined character code data, the corresponding character pattern data is output to the display signal synthesis unit DSPU. . In addition,
The CRT display unit CRTU is a color display.

外部メモリインタフェースIFIにはフロッピーディス
クユニットFDU及びレーザディスクユニットRDUが
接続され、スキャナインターフェースIF2にはイメー
ジスキャナIMSが接続されている。
A floppy disk unit FDU and a laser disk unit RDU are connected to the external memory interface IFI, and an image scanner IMS is connected to the scanner interface IF2.

第4図に、第3図のビットマツプメモリRAM2の構成
を示す。第4図を参照する。このメモリRAM2はそれ
ぞれ512にバイトの読み書きメモリを4バンク備えて
いる。マイクロプロセッサMPUに接続されるシステム
バスには、4バンクのうちの1つが接続できる構成にな
っている。しかし、表示信号合成ユニットDSPUは4
つのバンクを同時にアクセスできる。
FIG. 4 shows the configuration of the bitmap memory RAM2 of FIG. 3. Please refer to FIG. This memory RAM2 has four banks of read/write memory of 512 bytes each. The system bus connected to the microprocessor MPU is configured so that one of four banks can be connected. However, the display signal synthesis unit DSPU has 4
You can access two banks at the same time.

ビットマツプメモリRAM2のメモリアドレスとCRT
表示ユニットCRTUに表示される情報との対応関係を
、第9図及び第10図を参照して説明する。この例では
ビットマツプメモリの各データビットを2048 X 
2048の2次元座標の各画素に割り当ててあり、その
うちの1024 x 768の領域が一度にCRT表示
ユニットCRTUの表示面に表示5 可能になっている
。1バイトのデータの各々のビットは横方向の連続する
8画素に対応しており、横方向の1ラインの画素群は、
アドレスが連続する256バイトのメモリに対応してい
る。
Memory address of bitmap memory RAM2 and CRT
The correspondence relationship with the information displayed on the display unit CRTU will be explained with reference to FIGS. 9 and 10. In this example, each data bit in the bitmap memory is divided into 2048
2048 two-dimensional coordinates are assigned to each pixel, of which an area of 1024 x 768 can be displayed at one time on the display surface of the CRT display unit CRTU. Each bit of 1 byte of data corresponds to 8 consecutive pixels in the horizontal direction, and a group of pixels in one horizontal line is:
It corresponds to 256 bytes of memory with consecutive addresses.

なお、2048 X 2048の2次元座標のうち横方
向の数画素(ΔX)と縦方向の数画素(Δy)の領域は
、後述するスクロールのために、表示しない領域として
割り当てである。
Note that an area of several pixels in the horizontal direction (ΔX) and several pixels in the vertical direction (Δy) among the two-dimensional coordinates of 2048 x 2048 is allocated as a non-display area for scrolling, which will be described later.

各々の座標の画素データは、各々のメモリバンクから得
られる4ビツトのデータで構成されている。
Pixel data at each coordinate is composed of 4-bit data obtained from each memory bank.

この4ビツトデータの構成に応じて、CRT表示ユニッ
トCRTUに表示される画素の色が決定される。この実
施例では、4ビツトデータの補数関係と表示色の補色関
係とが一致している。つまり、所定の4ビツトデータを
表示している時にそのデータを補数化したものに書き換
えると、それまでに表示されていた色の補色が表示され
る。
The color of the pixel displayed on the CRT display unit CRTU is determined according to the configuration of this 4-bit data. In this embodiment, the complementary relationship of 4-bit data and the complementary color relationship of display colors match. In other words, when predetermined 4-bit data is being displayed and the data is rewritten into a complemented version, the complementary color of the previously displayed color will be displayed.

第5図に、第3図のマイクロプロセッサMPUのデータ
編集時の概略動作を示す。処理を開始すると、初期設定
を行ない、キー人力チェックを行なう。キーボードユニ
ットKEYからの入力があると、その種別を判定し、そ
れに応じた処理に進む。この例では具体的には11種の
コマンドがある。各々のコマンドの機能は次の通りであ
る。
FIG. 5 schematically shows the operation of the microprocessor MPU in FIG. 3 during data editing. When processing starts, initial settings are made and a key human power check is performed. When there is an input from the keyboard unit KEY, the type is determined and processing proceeds accordingly. In this example, there are specifically 11 types of commands. The function of each command is as follows.

KO:予めディスク上に記憶しである画像データの呼び
出し に1:メモリ(RAM2.RAM3)上のデータのディ
スクへの退避 に2:カーソルキーの操作時のカーソル等の移動量の設
定、フラグF2を設定する。
KO: To call up image data that has been stored in advance on the disk 1: To save data on the memory (RAM2, RAM3) to the disk 2: Setting the amount of movement of the cursor, etc. when operating the cursor keys, flag F2 Set.

K3:カーソル等の移動指示、上、下、左又は右方向の
移動 に4ニブロツクカーソル(窓)の選択、3つのいずれか
を選択しそれに応じてフラグF4をセットに5ニブロツ
クカーソルの表示/消去 に6:表示データ及び/又はブロックカーソルの状態設
定指示、フラグF7およびF8の状態に応じて処理を選
択 に7:窓サイズ設定モードの指定、フラグF7のセット に8:窓移動モードの指定、フラグF8のセットに9:
表示データの編集指示 上記以外二文字入力処理 次に、第3図に示す装置の特徴、すなわち第5図にサブ
ルーチンとして示しである、「ブロックカーソル表示オ
ンオフ」、「表示処理」、および「表示データ編集」に
ついて詳細に説明する。これらの処理の概略を、第6a
図〜第60図に示す。
K3: Instructions to move the cursor, select a 4-niblock cursor (window) to move up, down, left or right, select one of the three and set flag F4 accordingly to display a 5-niblock cursor /Erase 6: Display data and/or block cursor status setting instruction, select processing according to the status of flags F7 and F8 7: Specify window size setting mode, set flag F7 8: Window movement mode Specify, set flag F8 to 9:
Display data editing instructions Two-character input process other than the above Next, we will discuss the features of the device shown in FIG. 3, which are shown as subroutines in FIG. "Edit" will be explained in detail. An outline of these processes is given in Section 6a.
It is shown in FIGS.

コマンドに5が指示されると、フラグF5をチェックす
る。フラグF5は、ブロックカーソルすなわち窓が表示
されている時にHI Hにセットされ、そうでない場合
にはPI O#lにセットされる。
When 5 is specified in the command, flag F5 is checked. Flag F5 is set to HIH when the block cursor or window is displayed, and is set to PI O#l otherwise.

なおこの明細書中では、第6c図に示すF5(F4)の
ように、括弧でくくった記号の付加された記号(フラグ
、レジスタ等うば、それが複数あって、括弧内のパラメ
ータによって選択されたものを処理の対象とすることを
意味する。つまり、コマンドに5においては、コマンド
に4において予め選択された窓に対して処理を行なう。
In this specification, symbols enclosed in parentheses (such as flags, registers, etc.), such as F5 (F4) shown in Fig. 6c, are used to indicate that there are multiple symbols and are selected by the parameters in parentheses. In other words, in command 5, processing is performed on the window previously selected in command 4.

フラグF5がII O′1なら「窓表示セット」サブル
ーチンを実行し、′1″なら「窓表示クリア」サブルー
チンを実行し、いずれの場合も、処理後にフラグF5の
状態を反転する。
If the flag F5 is IIO'1, the "window display set" subroutine is executed, and if it is '1'', the "window display clear" subroutine is executed, and in either case, the state of the flag F5 is reversed after processing.

「窓表示セット」サブルーチンでは、フラグF5をチェ
ックし、それが0なら、メモリバンクl。
In the "window display set" subroutine, flag F5 is checked, and if it is 0, memory bank l.

2.3及び4の各々に対して、「表示反転処理」サブル
ーチン及び「窓識別マーク表示」サブルーチンを実行す
る。「表示反転処理」においては、ダイレクトメモリア
クセスユニットDMAPに対してデータ固定モード及び
論理反転演算モードをセットし、レジスタR8A、R’
XB、RYL及びRX M 4:それぞれレジスタBC
A、BCX、BCY及び固定値XMの値をセットしてD
MA要求を発生し、DMA転送が終了するのを待つ。
2. Execute the "display reversal processing" subroutine and the "window identification mark display" subroutine for each of steps 3 and 4. In "display inversion processing", data fixing mode and logical inversion operation mode are set for direct memory access unit DMAP, and registers R8A and R'
XB, RYL and RX M 4: each register BC
Set the values of A, BCX, BCY and fixed value XM and press D.
Generates an MA request and waits for the DMA transfer to complete.

レジスタBCA、BCX及びBCYには、それぞれ、そ
の窓の開始アドレス(左上の座標)、窓の横方向長さ、
及び窓の縦方向長さくライン数)の値が格納されている
。従って、「表示反転処理」を実行すると、窓領域に対
応する2次元メモリ領域に対して、各々のメモリに元の
データをビット毎に反転したデータを書き込む。つまり
、最も単純な白/黒の表示の場合でいえば、窓にセット
される2次元領域は、それまでの表示内容を白黒反転し
た表示内容に書き換えられる。
Registers BCA, BCX, and BCY contain the start address of the window (top left coordinates), the horizontal length of the window,
and the vertical length of the window (the number of lines) are stored. Therefore, when the "display inversion process" is executed, data obtained by inverting the original data bit by bit is written into each memory in the two-dimensional memory area corresponding to the window area. In other words, in the case of the simplest black/white display, the two-dimensional area set in the window is rewritten with display content that is the black and white inversion of the previous display content.

窓を表示した状態を一例を第7図に示す。第7図におい
て、BCI、BO2及びBO3が窓であり、PI、P2
及びP3が任意の表示パターンデータである。第7図を
参照すると、窓の部分に線が引かれているわけではない
が、窓の領域とそれ以外の領域とを区別できるのが明ら
かである、しかも、線を引いていないので、窓領域とそ
の以外の領域とを1画素の誤りもなく確実に識別するこ
とができる。
FIG. 7 shows an example of a state in which the window is displayed. In Figure 7, BCI, BO2 and BO3 are windows, and PI, P2
and P3 are arbitrary display pattern data. Referring to Figure 7, although there are no lines drawn in the window area, it is clear that the window area and other areas can be distinguished. The area and other areas can be reliably identified without a single pixel error.

「窓識別マーク表示」は、複数の窓を表示した場合に各
々の窓の区別をその窓内に表示する処理である。具体的
は、第1の窓には1本の横線、第2の窓には2本の横線
、そして第3の窓には3本の横線をそれぞれ表示する。
"Window identification mark display" is a process of displaying the distinction between each window within the window when a plurality of windows are displayed. Specifically, one horizontal line is displayed in the first window, two horizontal lines are displayed in the second window, and three horizontal lines are displayed in the third window.

なお、これらの横線は、窓の場合と同様にそれを表示す
る前のデータを反転することにより表示されるものであ
る。第6e図を参照する。
Note that these horizontal lines are displayed by inverting the data before displaying them, as in the case of windows. See Figure 6e.

フラグF4が2以上(第3の窓を選択)の場合、B C
A 十N x + (N3yX X M)を開始アドレ
スとする5バイトのメモリに対して、それらの内容をビ
ット毎に反転したデータを書き込む。フラグF4が1以
上(第2の窓又は第3の窓を選択)の場合には更にBC
A+Nx+ (N2yXXM)を開始アドレスとする5
バイトのメモリに対してそれらの反転データを書き込み
、フラグF4が0以上(第1の窓、第2の窓又は第3の
窓を選択)の場合には更にBCA+Nx+ (NlyX
XM)を開始アドレスとする5バイトのメモリに対して
それらの反転データを書き込む。
If flag F4 is 2 or more (selects the third window), B C
Write data obtained by inverting the contents bit by bit into a 5-byte memory whose starting address is A 10N x + (N3yX X M). If flag F4 is 1 or more (selecting the second window or third window), further BC
5 with A+Nx+ (N2yXXM) as the starting address
Write those inverted data to the byte memory, and if flag F4 is 0 or more (select the first window, second window, or third window), further write BCA+Nx+ (NlyX
The inverted data is written to a 5-byte memory whose starting address is XM).

つまり、例えば第3の窓BC3を選択している場合には
、第8図に示すように、3本の線(マーク)Ml、N2
及びN3が、窓の左上隅に表示される。
That is, for example, when the third window BC3 is selected, as shown in FIG. 8, three lines (marks) Ml, N2
and N3 are displayed in the upper left corner of the window.

第2の窓であれば線M2及びMlが表示され、第1の窓
であれば線M1のみが表示される。
If it is the second window, lines M2 and Ml are displayed, and if it is the first window, only line M1 is displayed.

「窓表示クリア」サブルーチンでは、フラグF5が′1
″なら、それを7+ 0 IIにセットし、各々のメモ
リバンク1,2,3および4を選択して、それぞれ「窓
識別マーク表示」および「表示反転処理」を実行する。
In the “window display clear” subroutine, flag F5 is set to ’1.
'', set it to 7+0 II, select each memory bank 1, 2, 3, and 4, and execute ``window identification mark display'' and ``display inversion processing'', respectively.

つまり、前記「窓表示セット」サブルーチンの反対の処
理を行なう、従って、「窓表示セット」サブルーチンを
実行すると選択した窓がそのマークとともに表示され、
「窓表示クリア」サブルーチンを実行すると選択中の窓
が消去される。
In other words, the process is the opposite of the above-mentioned "window display set" subroutine. Therefore, when the "window display set" subroutine is executed, the selected window is displayed with its mark,
Executing the "window display clear" subroutine clears the selected window.

コマンドに6が指示されると、「表示処理」を実行する
。これが指示される前にコマンドに7によってフラグF
7に0以外の値がセットされていると、表示窓の拡大又
は縮小を行なう。なお、初めて窓を表示する場合には、
予め定めた初期値の大きさで窓が表示される。フラグF
7が111 N1の場合には窓の下端の座標を現在より
下の方に移動(更新)し、フラグF7が2″′の場合に
は窓の下端の座標を現在より上の方に移動し、フラグF
7が# 3 Itの場合には窓の右端の座標を現在より
右の方に移動し、フラグF7がPl 4 IIの場合に
は窓の左端の座標を現在より左の方に移動する。移動量
Nは、フラグF2が”0”なら1.F2がII 1 P
lなら10にセットする。この処理を行なう場合には、
まず「窓表示クリア」サブルーチンを実行して表示中の
窓を消去し、窓のパラメータBCY又はBCXの値を更
新してから、再び「窓表示セット」サブルーチンを実行
する。
When 6 is specified in the command, "display processing" is executed. Flag F by 7 on the command before this is indicated.
If 7 is set to a value other than 0, the display window is enlarged or reduced. In addition, when displaying the window for the first time,
A window is displayed with a predetermined initial size. Flag F
If 7 is 111 N1, move (update) the coordinates of the bottom edge of the window lower than the current one, and if flag F7 is 2'', move the coordinates of the bottom edge of the window higher than the current one. , flag F
When flag F7 is #3 It, the coordinates of the right end of the window are moved to the right from the current position, and when flag F7 is Pl 4 II, the coordinates of the left end of the window are moved to the left from the current position. The movement amount N is 1 if the flag F2 is "0". F2 is II 1 P
If it is l, set it to 10. When performing this process,
First, the "window display clear" subroutine is executed to erase the displayed window, the value of the window parameter BCY or BCX is updated, and then the "window display set" subroutine is executed again.

コマンドに6が指示される前に、コマンドに8によって
フラグF8に0以外の値がセットされていると、フラグ
F8の内容に応じて次のように動作する。フラグF8が
1なら、「窓移動」サブルーチンを実行し、表示中の窓
(全体)のみを画面上で移動する。フラグF8が2なら
、「窓・データ移動」サブルーチンを実行し、表示中の
窓とその窓領域に位置する表示データを指定された位置
に移動する。また、フラグF8が3なら「データ移動」
サブルーチンを実行し、表示データのみの移動(スクロ
ール)を行なう。
If the flag F8 is set to a value other than 0 by the command 8 before the command 6 is specified, the following operation occurs depending on the contents of the flag F8. If the flag F8 is 1, a "window movement" subroutine is executed, and only the currently displayed window (the entire window) is moved on the screen. If the flag F8 is 2, a "window/data movement" subroutine is executed, and the window being displayed and the display data located in the window area are moved to the designated position. Also, if flag F8 is 3, "data movement"
Execute the subroutine and move (scroll) only the displayed data.

「窓移動」サブルーチンにおいては、まずフラグF5を
チェックしてそれがII I IIである場合に次の移
動処理を行なう。移動処理では、「窓表示クリア」サブ
ルーチンを実行して表示中の窓を消去し、その窓のパラ
メータBCA (先頭アドレス)を更新してから「窓表
示セット」サブルーチンを実行して再度窓を表示する。
In the "window movement" subroutine, first the flag F5 is checked, and if it is IIIII, the next movement process is performed. In the movement process, execute the "window display clear" subroutine to erase the displayed window, update the parameter BCA (start address) of that window, and then execute the "window display set" subroutine to display the window again. do.

つまり、CRT表示ユニットCRTUの画面に表示され
るデータはそのままで、指定される方向に応じて窓の位
置だけが移動する。移動方向が上、下、左および右のい
ずれかであるかに応じて、窓のパラメータBCAは次の
ように更新される。
In other words, the data displayed on the screen of the CRT display unit CRTU remains unchanged, and only the position of the window moves in accordance with the designated direction. Depending on whether the direction of movement is up, down, left or right, the window parameter BCA is updated as follows.

移動方向が上であると、1ラインのバイト数XMに所定
数Nを乗じた結果をレジスタBCAの内容から減算する
。同様に、移動方向が下なら、XMに所定値Nを乗じた
結果をレジスタBCAの内容に加算し、移動方向が左な
ら、レジスタBCAの内容から所定値Nの値を減算し、
移動方向が右なら、レジスタBCAの内容に所定値Nを
加算する。
If the moving direction is upward, the result of multiplying the number of bytes of one line XM by a predetermined number N is subtracted from the contents of register BCA. Similarly, if the moving direction is down, the result of multiplying XM by a predetermined value N is added to the contents of the register BCA, and if the moving direction is left, the value of the predetermined value N is subtracted from the contents of the register BCA,
If the moving direction is right, a predetermined value N is added to the contents of register BCA.

所定値Nは、任意の値もしくはフラグF2に応じた1又
は10の値である。
The predetermined value N is an arbitrary value or a value of 1 or 10 depending on the flag F2.

「窓・データ移動」サブルーチンにおいては、まずフラ
グF5をチェックしてそれがPl I Nであると、次
の処理に進む。移動方向が上なら、1ラインのバイト数
XMに所定値Nを乗算した値を、レジスタBCAの内容
から引いた値をレジスタBCDに格納する。レジスタB
CDは、各々の窓のデータ転送先の先頭アドレスを格納
するためのものである。同様に、移動方向が下なら、X
MにNを乗算した値を、レジスタBCAの内容に加えた
値をレジスタBCDに格納し、移動方向が左なら、レジ
スタBCAの内容からNを引いた値をレジスタBCDに
格納し、移動方向が右なら、レジスタBCAの内容にN
を加えた値をレジスタBCDに格納する。そして、rD
MAデータ移動」サブルーチンを実行する。
In the "window/data movement" subroutine, flag F5 is first checked and if it is Pl I N, the process proceeds to the next step. If the moving direction is upward, a value obtained by multiplying the number of bytes of one line XM by a predetermined value N is subtracted from the contents of register BCA, and the value is stored in register BCD. Register B
The CD is for storing the start address of the data transfer destination of each window. Similarly, if the direction of movement is down, then
The value obtained by multiplying M by N is added to the contents of register BCA and stored in register BCD. If the movement direction is left, the value obtained by subtracting N from the contents of register BCA is stored in register BCD, and the value obtained by subtracting N from the contents of register BCA is stored in register BCD. If it is right, add N to the contents of register BCA.
The added value is stored in register BCD. And rD
Execute the "MA data movement" subroutine.

rDMAデータ移動」サブルーチンにおいては、DMA
制御装置を次のようにセットしてから、DMA要求を発
し、DMA転送を終了を待つ。動作モードは、データ移
動モードおよび論理和演算モードに設定する。そしてレ
ジスタR5A、RDA。
In the ``rDMA data movement'' subroutine, the DMA
After setting the control device as follows, issue a DMA request and wait for the DMA transfer to finish. The operation mode is set to data movement mode and OR operation mode. and registers R5A and RDA.

RXB、RYLおよびRXMに、それぞれレジスタBC
A、BCD、BCX、BCYおよび所定値XMの値をセ
ットする。
Register BC in RXB, RYL and RXM, respectively.
Set the values of A, BCD, BCX, BCY and predetermined value XM.

このような設定にしてDMAが要求を発すると、DMA
制御装置は、まず転送元のデータを読んでそれをラッチ
し、次に転送先のデータを読んでそれとラッチしたデー
タとの論理和とを演算し、次にその結果を、転送先のア
ドレスのメモリに格納する、という処理を、窓の2次元
領域の全てに対して行なう。つまり、窓の移動先の2次
元領域では、その移動を行なう前のデータと移動前に窓
の位置にあったデータとが表示さ、れる。
When the DMA issues a request with these settings, the DMA
The control device first reads the transfer source data and latches it, then reads the transfer destination data, performs a logical OR operation between it and the latched data, and then uses the result as the transfer destination address. The process of storing in memory is performed for the entire two-dimensional area of the window. That is, in the two-dimensional area to which the window is moved, the data before the movement and the data that was at the window position before the movement are displayed.

rDMAデータ移動」が終了したら、レジスタBCDの
内容をレジスタBCAにセットして、「窓表示セット」
サブルーチンを実行する。これによって、移動したデー
タと同一の位置(転送先)に、窓が再び表示される。
When "rDMA data movement" is completed, set the contents of register BCD to register BCA, and then "set window display".
Execute a subroutine. As a result, the window will be displayed again at the same location (transfer destination) as the moved data.

「データ移動」サブルーチンにおいては、フラグF5 
(+、2.3)の内容を所定のメモリに退避してから次
の処理に進む。表示中の窓に対してそれぞれ「窓表示ク
リア」サブルーチンを実行し、窓を消去する。次にデー
タ移動(スクロール)の方向をチェックし、その結果に
応じてレジスタR8A及びRDAの内容を次のようにセ
ットする。
In the "data movement" subroutine, flag F5
The contents of (+, 2.3) are saved in a predetermined memory before proceeding to the next process. Execute the "window display clear" subroutine for each window that is currently displayed to erase the window. Next, the direction of data movement (scrolling) is checked, and the contents of registers R8A and RDA are set as follows according to the result.

上方向のスクロール RS A :   Am1n RD’A:   A+oin+[(YM−N)XXM]
下方向のスクロール R8A :  Am1n+((YM−N)XXM)RD
A :  Am1n+(YMXXM)左方向のスクロー
ル RS A :  Am1n RDA:  Am1n+ (XM+N)右方向のスクロ
ール R8A:  All1in+(XM−N)RD A :
  A+min+ X M但し、All1in S R
A M 2の最小アドレスYM:表示メモリのY座標の
最大値 N:転送距離(第9図のΔX又はΔy)更に、各レジス
タRXB、RYLおよびRXMにそれぞれ所定値XM、
YMおよびXMをセットし、DMA制御装置の動作モー
ドを、データ移動モードおよび非演算モードにセットし
てDMA要求を発する。
Upward scroll RS A: Am1n RD'A: A+oin+[(YM-N)XXM]
Downward scroll R8A: Am1n+((YM-N)XXM)RD
A: Am1n+(YMXXM) Scroll leftward RS A: Am1n RDA: Am1n+ (XM+N) Scroll rightward R8A: All1in+(XM-N) RD A:
A+min+ X MHowever, All1in S R
Minimum address YM of A M 2: Maximum value of Y coordinate of display memory N: Transfer distance (ΔX or Δy in FIG. 9) Furthermore, each register RXB, RYL and RXM has a predetermined value XM,
YM and XM are set, the operation mode of the DMA controller is set to data movement mode and non-operation mode, and a DMA request is issued.

これによってDMA転送が行なわれると、ビットマツプ
メモリRAM2のデータが、第9図に示す2次元座標上
で上、下、左又は右にNだけ移動し、それに応じて実際
にCRT表示ユニットCRTUの画面に表示されるデー
タが更新(スクロール)される。
When DMA transfer is performed as a result, the data in the bitmap memory RAM2 moves up, down, left, or right by N on the two-dimensional coordinates shown in FIG. The data displayed on the screen is updated (scrolled).

次に、フラグF5 (1,2,3)に、退避しておいた
データをロードし、その各々について、窓表示にセット
されていれば、「窓表示セット」サブルーチンを実行し
、窓を再表示する。
Next, load the saved data into flag F5 (1, 2, 3), and if each is set to window display, execute the "window display set" subroutine and restart the window. indicate.

次に、「表示データ編集」について説明する。Next, "display data editing" will be explained.

この処理では、まず編集モードを指定し、その結果に応
じた処理を行なう。この例では、[編集反転処理」、「
編集消去処理」、「編集抜き取り処理」、「編集移動処
理」および「編集交換処理」が実行できる。
In this process, an editing mode is first specified, and processing is performed according to the result. In this example, [Edit Reverse Processing], [
``edit deletion process'', ``edit extraction process'', ``edit move process'', and ``edit exchange process'' can be executed.

「編集反転処理」においては、窓の表示されている2次
元領域について、その部分の表示データをビット毎に反
転する。この例では、「窓表示クリア」サブルーチンを
実行し、メモリバンク1,2゜3および4のそれぞれに
ついて「表示反転処理」サブルーチンを実行し、「窓表
示セット」サブルーチンを実行してこの処理を行なって
いる。
In the "edit reversal process", the display data of that portion of the two-dimensional area where the window is displayed is inverted bit by bit. In this example, the "window display clear" subroutine is executed, the "display inversion process" subroutine is executed for each of memory banks 1, 2, 3, and 4, and the "window display set" subroutine is executed to perform this processing. ing.

「編集消去処理」においては、窓の表示されている2次
元領域について、その部分の表示データを消去する。ま
ず「窓表示クリア」サブルーチンを実行して窓を消去し
、メモリバンク1,2.3および4のそれぞれについて
、r表示消去処理」を実行してメモリの内容をクリアし
、「窓表示セット」サブルーチンを実行して窓を再表示
する。
In the "edit/delete process", the display data of that part of the two-dimensional area where the window is displayed is deleted. First, execute the "window display clear" subroutine to erase the window, then execute "r display erase processing" for each of memory banks 1, 2, 3, and 4 to clear the memory contents, and then select "window display set". Execute the subroutine and redisplay the window.

「表示消去処理」では、DMA制御装置の動作モードと
して、データ固定モード及び消去演算処理モードをセッ
トし、レジスタR8A、RXB、RYL及びRXMにそ
れぞれレジスタBC,A、BOX、BCYおよび所定値
XMの値をセットしてDMA要求を発する。この状態で
DMA転送を行なうと、レジスタBCA、BCX及びB
CYによって指定される2次元領域すなわち窓を表示し
ていた領域のメモリに、全て0が書き込まれる。
In "display erasure processing", data fixing mode and erasure operation processing mode are set as the operation modes of the DMA control device, and registers BC, A, BOX, BCY and a predetermined value XM are set in registers R8A, RXB, RYL and RXM, respectively. Set the value and issue a DMA request. If a DMA transfer is performed in this state, registers BCA, BCX and B
All 0s are written into the memory of the two-dimensional area specified by CY, that is, the area where the window was displayed.

「編集抜き取り処理」においては、窓が表示され゛ て
いる領域に対応する表示データを、レーザディスクユニ
ットRDUに記憶する。まずファイル名の入力を待ち、
それが入力されたら、「窓表示クリア」サブルーチンを
実行して窓をクリアし、メモリバンク1,2.3および
4の、窓領域に対応するアドレスの表示データを、入力
されたファイル名とともにレーザディスクユニットRD
Uに記憶する。データの格納が終了したら、r窓表示セ
ット」サブルーチンを実行して窓を再び表示する。
In the "edit extraction process", display data corresponding to the area where the window is displayed is stored in the laser disk unit RDU. First, wait for the file name to be entered, then
Once it is entered, execute the "window display clear" subroutine to clear the window and laser the display data at the address corresponding to the window area in memory banks 1, 2.3 and 4 along with the entered file name. Disk unit RD
Store in U. When data storage is completed, the window is displayed again by executing the ``r window display set'' subroutine.

「編集移動処理」では、現在選択している窓の位置にあ
るデータを、もう1つの窓の位置に移動する処理を行な
う。まず移動先の窓の指定を待つ。
In the "edit movement process", a process is performed to move the data located in the currently selected window position to the position of another window. First, wait for the destination window to be specified.

移動先の窓は、フラグF4bに記憶される。サブルーチ
ンを利用するため、フラグF4の内容とF4bの内容と
を交換し、「窓表示クリア」サブルーチンを実行して、
移動先の窓を消去する。次に、移動元の窓と移動先の窓
とのサイズを一致させるため、レジスタB OX (F
4b)の内容をレジスタBOX (F4)にストアし、
レジスタB CY (F4b)の内容をレジスタB C
Y (F4)にストアして、「窓表示セット」サブルー
チンを実行する。これを行なうと、データの移動先とし
て指定した窓の大きさが移動元の窓の大きさに揃えられ
る。
The destination window is stored in flag F4b. To use the subroutine, exchange the contents of flag F4 and F4b, execute the "window display clear" subroutine,
Delete the destination window. Next, in order to match the sizes of the source window and destination window, register B OX (F
Store the contents of 4b) in the register box (F4),
Save the contents of register B CY (F4b) to register B C
Y (F4) and executes the "window display set" subroutine. When you do this, the size of the window you specified as the data destination will match the size of the source window.

この時点では、選択中の窓すなわち移動先の窓の位置を
変えることができる。移動開始の指示があると、「窓表
示クリア」サブルーチンを実行した後でフラグF4の内
容とフラグF4bの内容とを交換してそれらを元に戻し
、再び「窓表示クリア」サブルーチンを実行する。これ
によって、2つの窓が共に消去される。続いて、DMA
制御装置に次のようにセットする。動作モードとしては
、データ移動モードおよび論理和演算モードをセットす
る。そして、各レジスタR8A、RDA、RXB、RY
LおよびRXMに、それぞれレジスタBCA(F4)、
BCA(F4b)、BCX(F4)、BCY(F4)、
および所定値XMの値をセットする。
At this point, you can change the position of the selected window, that is, the window to which you want to move. When a movement start instruction is given, a ``window display clear'' subroutine is executed, the contents of the flag F4 and the flag F4b are exchanged and returned to their original values, and the ``window display clear'' subroutine is executed again. This erases both windows. Next, DMA
Set the control device as follows. As the operation mode, a data movement mode and an OR operation mode are set. And each register R8A, RDA, RXB, RY
Register BCA (F4) for L and RXM, respectively.
BCA (F4b), BCX (F4), BCY (F4),
and set the value of the predetermined value XM.

この状態で、メモリバンク1,2.3および4をそれぞ
れ選択し、それぞれについてDMA要求を発する。これ
を行なうと、転送元の窓の位置の表示データが転送先の
窓の位置のデータに重なる(論理和)。データの移動が
終了したら、転送元の窓と転送先の窓のそれぞれについ
て、「窓表示セット」サブルーチンを実行して窓を再び
表示する。
In this state, each of memory banks 1, 2, 3, and 4 is selected and a DMA request is issued for each. When this is done, the display data at the source window position overlaps the data at the destination window position (logical OR). When the data movement is completed, the "window display set" subroutine is executed for each of the transfer source window and the transfer destination window to display the windows again.

[編集交換処理」においては、現在表示(選択)してい
る窓の位置の表示データと、もう1つの窓の位置の表示
データとを入れ換える。まず、第2の窓が指定されるの
を待つ。前記の場合と同様に、フラグF4の内容とF4
bの内容とを交換し、「窓表示クリア」サブルーチンを
実行して第2の窓を消去し、第2の窓のサイズのパラメ
ータ(BOX、BCY)を第1の窓の値に合わせ、「窓
表示セット」サブルーチンを実行して第2の窓を再び表
示する。
In the "edit exchange process", the display data at the currently displayed (selected) window position and the display data at the other window position are exchanged. First, wait for the second window to be specified. As in the previous case, the contents of flag F4 and F4
b, execute the "window display clear" subroutine to erase the second window, adjust the size parameters (BOX, BCY) of the second window to the values of the first window, and execute " The window display set subroutine is executed to display the second window again.

データ交換処理の開始指示を待ち、その指示があると、
2つの窓を消去する。そして第1の窓領域の表示データ
をメインメモリRAM1の所定領域に退避し、ビットマ
ツプメモリRAM2のメモリバンク1,2.3及び4の
それぞれについて、「表示消去処理」を実行し、第1の
窓領域の表示データを消去する。続いて次のようにDM
A制御装置をセットし、rI)MA転送」を実行する。
Waits for an instruction to start the data exchange process, and when that instruction is received,
Erase the two windows. Then, the display data of the first window area is saved to a predetermined area of the main memory RAM1, and "display erasure processing" is executed for each of memory banks 1, 2, 3, and 4 of the bitmap memory RAM2, and the display data of the first window area is saved. Clear the display data in the window area. Then DM as follows
Set the A control device and execute "rI) MA transfer".

動作モードは、データ移動モード及び非演算モードにし
、各レジスタR8A、RDA、RXB、RYLおよびR
XMに、それぞれレジスタB CA (F4b)、BC
A(F4)、BOX(F4)、BCY(F4)および所
定値XMの値をセットする。この状態でDMA転送を行
なうと、第2の窓領域にある表示データと同じデータが
移動先の第1の窓領域に記憶(表示)される。
The operation mode is data movement mode and non-operation mode, and each register R8A, RDA, RXB, RYL and R
Registers B CA (F4b) and BC in XM, respectively.
Set the values of A (F4), BOX (F4), BCY (F4) and predetermined value XM. When DMA transfer is performed in this state, the same data as the display data in the second window area is stored (displayed) in the first window area as the movement destination.

次にフラグF4とF4bとを再び交換し、メモリバンク
1,2,3及び4のそれぞれについて「表示消去処理」
を実行し、第2の窓領域の表示データを消去する。更に
、DMA制御装置を次のようにセットし、rDMA転送
」を行なう。動作モードはデータ移動モード及び非演算
モードとし、レジスタR8A、RDA、RXB、RYL
及びRXMに、それぞれ表示データ退避アドレス(第1
の窓のデータを退避したRAMIのアドレス)、レジス
タBCA(F4)、BCX(F4)、BCY(F4)、
及び所定値XMの値をセットする。この状態でDMA要
求を発すると、メインメモリRAM1に退避しておいた
第1の窓領域の表示データが、第2の窓領域に転送され
る。そして第1の窓及び第2の窓について「窓表示セッ
ト」サブルーチンを実行し、2つの窓を再表示する。
Next, flags F4 and F4b are exchanged again, and "display erasure processing" is performed for each of memory banks 1, 2, 3, and 4.
is executed to erase the display data in the second window area. Furthermore, the DMA control device is set as follows to perform rDMA transfer. The operation mode is data movement mode and non-operation mode, and registers R8A, RDA, RXB, RYL
and RXM, display data save address (first
RAMI address where window data was saved), registers BCA (F4), BCX (F4), BCY (F4),
and set the value of the predetermined value XM. When a DMA request is issued in this state, the display data of the first window area saved in the main memory RAM1 is transferred to the second window area. Then, the "window display set" subroutine is executed for the first window and the second window, and the two windows are redisplayed.

■効果 以上のとおり、本発明によればDMA転送の途中で転送
するデータに処理を加えることができるので、画像処理
等、大量のデータ処理を必要とする用途において、DM
Aを用いて高速でデータを処理しうる。
■Effects As described above, according to the present invention, processing can be added to data transferred during DMA transfer, so DM
A can be used to process data at high speed.

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

第1図は、DMA制御装置の構成を示すブロック図であ
る。 第2a図、第2b図および第2c図は、第1図に示すD
MA制御装置の概略動作を示すフローチャートである。 第3図は、第1図に示すDMA制御装置を用いたー形式
の表示情報処理装置を示すブロック図である。 第4図は、第3図のビットマツプメモリRAM2の概略
を示すブロック図である。 第5図は、第3図に示すマイクロプロセッサMPUの概
略動作を示すフローチャートである。 第6a図、第6b図、第6C図、第6d図、第6e図、
第6f図、第6g図、第6h図、第61図、第6j図、
第6に図、第612図、第6m図。 第6n図および第60図は、第5図に示す処理の詳細を
示すフローチャートである。 第7図は第3図に示すCRT表示ユニットCRTUの表
示面の一例を示す正面図、第8図は第7図の一部を拡大
して示す正面図である。 第9図および第10図は、表示画素データの2次元座標
とメモリアドレスとの対応を示す平面図である。 55、SI、DS、DI :カウンタ(アドレス情報生
成手段)BF2 :入/出力バッファ(データ入出力手
段)ALU:論理演算ユニット(データ加工手段)TM
C:タイミング及コントロール回路(電子制御手段) BC:1.BC2,BC3ニブロックカーソル(窓)M
、P2.P3 :表示パターン  C8R:カーソル第
6c阿         第6dロ 東6e(支) く芯識別マーク表ホ〉 垢6に図 児7阿 垢8ゾ 拓9図 ΔX 弔10団 △n+JXM      An+XM+1手続補正書(
自発) 昭和59年 9月72゜ 1、事件の表示 昭和59年特許願第152326号2
、発明の名称    DMA制御装置3、補正をする者 事件との関係   特許出願人 住所   東京都大田区中馬込1丁目3番6号名称  
  (674)  株式会社 リコー代表者 浜 1)
 広 4、代理人 〒103  Te1.03864−605
2住所     東京都中央区東日本橋2丁目27番6
号6、補正の内容 (a)明細書の発明の詳細な説明の桐生の、以下の頁お
よび行の、(b)図面の第2a図、第2b図、第2C図
及び第3図を別紙の通り訂正する。 7、添付書類の目録
FIG. 1 is a block diagram showing the configuration of a DMA control device. Figures 2a, 2b and 2c represent the D shown in Figure 1.
3 is a flowchart showing a schematic operation of the MA control device. FIG. 3 is a block diagram showing a -type display information processing device using the DMA control device shown in FIG. FIG. 4 is a block diagram schematically showing the bitmap memory RAM2 of FIG. 3. FIG. 5 is a flowchart showing the general operation of the microprocessor MPU shown in FIG. Figure 6a, Figure 6b, Figure 6C, Figure 6d, Figure 6e,
Figure 6f, Figure 6g, Figure 6h, Figure 61, Figure 6j,
6th figure, figure 612, figure 6m. 6n and 60 are flowcharts showing details of the process shown in FIG. 5. FIG. 7 is a front view showing an example of the display surface of the CRT display unit CRTU shown in FIG. 3, and FIG. 8 is a front view showing a part of FIG. 7 in an enlarged manner. 9 and 10 are plan views showing the correspondence between two-dimensional coordinates of display pixel data and memory addresses. 55, SI, DS, DI: Counter (address information generation means) BF2: Input/output buffer (data input/output means) ALU: Logical operation unit (data processing means) TM
C: Timing and control circuit (electronic control means) BC:1. BC2, BC3 block cursor (window) M
, P2. P3: Display pattern C8R: Cursor No. 6c A No. 6d Roto 6e (branch) Kushin identification mark table E〉 Skull 6 and Zuji 7 Aku 8 Zotaku 9 fig.
Spontaneous) September 72゜1, 1981, Indication of the incident 1982 Patent Application No. 1523262
, Title of the invention DMA control device 3, Relationship to the case of the person making the amendment Patent applicant address 1-3-6 Nakamagome, Ota-ku, Tokyo Name
(674) Ricoh Co., Ltd. Representative Hama 1)
Hiro 4, Agent 103 Te1.03864-605
2 Address: 2-27-6 Higashi Nihonbashi, Chuo-ku, Tokyo
No. 6, Contents of amendment (a) The following pages and lines of Kiryu's detailed explanation of the invention in the specification, (b) Figures 2a, 2b, 2C, and 3 of the drawings are attached as separate sheets. Correct as follows. 7. List of attached documents

Claims (8)

【特許請求の範囲】[Claims] (1)少なくとも1つのアドレス情報生成手段;所定の
信号ラインにデータを出力しその信号ラインからデータ
を入力するデータ入出力手段;前記データ入出力手段を
介して入力されるデータを保持するデータ記憶手段、お
よびデータ記憶手段に記憶されたデータに対して所定の
処理を施す論理演算手段、を備えるデータ加工手段;お
よび アドレス情報生成手段に所定のアドレス情報の出力を指
示して前記データ入出力手段から得られるデータを前記
データ加工手段に入力し、前記アドレス情報生成手段に
所定のアドレス情報の出力を指示して前記データ加工手
段に記憶されたデータを前記データ入出力手段を介して
所定の信号ラインに出力し、これらの動作をアドレスを
更新しながら所定の条件が満たされるまで繰り返す、電
子制御手段; を備える、DMA制御装置。
(1) At least one address information generation means; data input/output means for outputting data to a predetermined signal line and inputting data from the signal line; data storage for holding data inputted via the data input/output means; and a logical calculation means for performing predetermined processing on the data stored in the data storage means; and data input/output means for instructing the address information generation means to output predetermined address information. inputting data obtained from the data processing means to the data processing means, instructing the address information generation means to output predetermined address information, and transmitting the data stored in the data processing means to a predetermined signal via the data input/output means. A DMA control device comprising: electronic control means for outputting data to a line and repeating these operations while updating an address until a predetermined condition is satisfied.
(2)電子制御手段は第1のカウンタと第2のカウンタ
を備え、1回の処理を行なう毎に第1のカウンタをカウ
ントアップもしくはカウントダウンし、第1のカウンタ
が所定の計数を行なうと第2のカウンタをカウントアッ
プもしくはカウントダウンし、第1のカウンタの計数値
と第2のカウンタの計数値とに応じて、前記アドレス情
報生成手段が出力するアドレスの値を決定する、前記特
許請求の範囲第(1)項記載のDMA制御装置。
(2) The electronic control means includes a first counter and a second counter, and counts up or down the first counter every time one process is performed, and when the first counter performs a predetermined count, the 2 counters are counted up or down, and the value of the address to be output by the address information generation means is determined according to the count value of the first counter and the count value of the second counter. DMA control device according to paragraph (1).
(3)アドレス情報生成手段は第1のアドレス情報生成
手段と第2のアドレス情報生成手段とを備え、電子制御
手段は、第1の動作モードにおいては、第1のアドレス
情報生成手段の生成アドレスによって得られたデータと
第2のアドレス情報生成手段の生成アドレスによって得
られたデータとを演算した結果を所定のアドレス情報と
ともに出力し、第2の動作モードにおいては、第1のア
ドレス情報生成手段の生成アドレスによって得られたデ
ータを第2のアドレス情報生成手段の生成アドレスとと
もに出力し、第3の動作モードにおいては、第1のアド
レス情報生成手段の生成アドレスによって得られたデー
タを、加工処理してから第1のアドレス情報生成手段の
生成アドレスとともに出力する、前記特許請求の範囲第
(1)項記載のDMA制御装置。
(3) The address information generation means includes a first address information generation means and a second address information generation means, and in the first operation mode, the electronic control means generates an address generated by the first address information generation means. The result of calculating the data obtained by the address generated by the second address information generating means and the data obtained by the generated address of the second address information generating means is output together with predetermined address information, and in the second operation mode, the first address information generating means The data obtained by the address generated by the second address information generation means is output together with the address generated by the second address information generation means, and in the third operation mode, the data obtained by the address generated by the first address information generation means is processed. The DMA control device according to claim 1, wherein the DMA control device outputs the generated address together with the address generated by the first address information generation means.
(4)電子制御手段は、転送元データ領域のアドレスと
転送先データ領域のアドレスに重なりがある場合には、
その重なりの方向を判別しその結果に応じて、アドレス
情報生成手段の生成アドレスの更新方向を選択する、前
記特許請求の範囲第(1)項記載のDMA制御装置。
(4) If the address of the transfer source data area and the address of the transfer destination data area overlap, the electronic control means:
The DMA control device according to claim 1, which determines the direction of the overlap and selects the update direction of the address generated by the address information generating means in accordance with the result.
(5)電子制御手段は、データ転送元のアドレス、デー
タ転送先のアドレス、データ転送領域の第1次元の大き
さ、データ転送領域の第2次元の大きさ、および出力装
置に応じて定まる第1次元の最大値、をパラメータとし
て、アドレス情報生成手段にアドレスの生成を指示する
、前記特許請求の範囲第(1)項記載のDMA制御装置
(5) The electronic control means is configured to control the data transfer source address, the data transfer destination address, the size of the first dimension of the data transfer area, the size of the second dimension of the data transfer area, and the output device. The DMA control device according to claim 1, wherein the address information generating means is instructed to generate an address using a one-dimensional maximum value as a parameter.
(6)論理演算手段は、少なくとも処理対象データの補
数を生成する演算モードを備える、前記特許請求の範囲
第(1)項記載のDMA制御装置。
(6) The DMA control device according to claim (1), wherein the logical operation means has an operation mode for generating at least a complement of the data to be processed.
(7)論理演算手段は複数の演算モードを備え、電子制
御手段に予め設定された動作モードに応じて選択した演
算モードで処理対象データを演算する、前記特許請求の
範囲第(1)項記載のDMA制御装置。
(7) The logical operation means is provided with a plurality of operation modes, and calculates the data to be processed in the operation mode selected according to the operation mode preset in the electronic control means. DMA control device.
(8)アドレス情報生成手段は第1のカウンタおよび第
2のカウンタを備え、電子制御手段はデータ転送を行な
う毎に第1のカウンタをカウントアップもしくはカウン
トダウンし、第1のカウンタがオーバフローもしくはア
ンダーフローする毎に第2のカウンタのカウントアップ
もしくはカウントダウンを行なう、前記特許請求の範囲
第(1)項、第(2)項、第(3)項、第(4)項、第
(5)項、第(6)項又は第(7)項記載のDMA制御
装置。
(8) The address information generation means includes a first counter and a second counter, and the electronic control means counts up or down the first counter every time data is transferred, and the first counter overflows or underflows. Claims (1), (2), (3), (4), and (5), in which the second counter is counted up or down each time DMA control device according to item (6) or item (7).
JP15232684A 1984-07-23 1984-07-23 Dma controller Pending JPS6132159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15232684A JPS6132159A (en) 1984-07-23 1984-07-23 Dma controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15232684A JPS6132159A (en) 1984-07-23 1984-07-23 Dma controller

Publications (1)

Publication Number Publication Date
JPS6132159A true JPS6132159A (en) 1986-02-14

Family

ID=15538080

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15232684A Pending JPS6132159A (en) 1984-07-23 1984-07-23 Dma controller

Country Status (1)

Country Link
JP (1) JPS6132159A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07182157A (en) * 1994-10-24 1995-07-21 Mitsubishi Electric Corp Digital signal processor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59128663A (en) * 1983-01-14 1984-07-24 Hitachi Ltd Address scanner for editing of binary picture
JPS59189470A (en) * 1983-04-12 1984-10-27 Mita Ind Co Ltd Picture processing system
JPS6081659A (en) * 1983-10-12 1985-05-09 Canon Inc Data transfer system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59128663A (en) * 1983-01-14 1984-07-24 Hitachi Ltd Address scanner for editing of binary picture
JPS59189470A (en) * 1983-04-12 1984-10-27 Mita Ind Co Ltd Picture processing system
JPS6081659A (en) * 1983-10-12 1985-05-09 Canon Inc Data transfer system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07182157A (en) * 1994-10-24 1995-07-21 Mitsubishi Electric Corp Digital signal processor

Similar Documents

Publication Publication Date Title
EP0278526B1 (en) Graphics diplay controller having clipping function
JPH0640259B2 (en) Data processing device
JP2866153B2 (en) Character processing apparatus and method
JPS6132159A (en) Dma controller
JPS6129890A (en) Display information processor
US4988985A (en) Method and apparatus for a self-clearing copy mode in a frame-buffer memory
JPS6132133A (en) Display information processor
JPH0567216A (en) Graphic painting-out device
JP2633517B2 (en) Display information processing device
JPS6129888A (en) Display information processor
JP2761220B2 (en) 3D graphic display system
JP2723109B2 (en) Image processing method
JPS623382A (en) Picture processor
JP2773458B2 (en) Vector controller
JP2771350B2 (en) Image processing device
JPS62108285A (en) Layout display system for document generator
JPS63257056A (en) Image processor
JPH064396A (en) Image plotter
JPS62210572A (en) Documentation device
JPH10207688A (en) Graphics processor
JPH0348929A (en) Display control system
JPH05151330A (en) Image processor
EP0375339A2 (en) Image processing apparatus and a system using the same
JPH02288969A (en) Document processor
JP2000255132A (en) Data processing method and apparatus, and memory medium