JPS62151982A - Information processor - Google Patents

Information processor

Info

Publication number
JPS62151982A
JPS62151982A JP29427285A JP29427285A JPS62151982A JP S62151982 A JPS62151982 A JP S62151982A JP 29427285 A JP29427285 A JP 29427285A JP 29427285 A JP29427285 A JP 29427285A JP S62151982 A JPS62151982 A JP S62151982A
Authority
JP
Japan
Prior art keywords
display
collision
central processing
unit
processing unit
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
JP29427285A
Other languages
Japanese (ja)
Inventor
Koichi Tsukizoe
築添 弘一
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP29427285A priority Critical patent/JPS62151982A/en
Publication of JPS62151982A publication Critical patent/JPS62151982A/en
Pending legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)

Abstract

PURPOSE:To realize the detection of a collision between specific graphics at high speed by slightly adding a hardware and hardly using a program step by automatically detecting the colision by a display control unit and requiring no operation of a central processing unit. CONSTITUTION:Signals 400, 410, 420 and 430, 440, 340 for selecting the output of 8 bits of a collision designating register 60 by 8 way selection circuits 71, 72 are display signals to a display. Accordingly, since the respective bits of the collision designating register 60 correspond to the respective colors of eight colors in 1:1, all '1' may be stored in the bit of the collision designating register 60 by considering the color displaying graphics in orde to monitor the collision of the specific graphics between three picture. Thereby, when the graphics monitoring the collision are registered on the same pixel position, a collision detecting signal 700 goes to '1' at the time when the pixel is displayed, the interruption is generated in the central processing unit according to an interruption request signal 802 and an interruption processing by the collision is performed.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、情報処理装置に付属するディスフレに対する
表示制御に関し、特にカラーの画面を複数個、同時に表
示することが可能な場合の表示制御法に関するものであ
る。
Detailed Description of the Invention (Industrial Application Field) The present invention relates to display control for a diffuser attached to an information processing device, and in particular to a display control method when it is possible to display multiple color screens at the same time. It is related to.

(従来技術) 従来のこの種の装置は第1図のように構成されていた。(Conventional technology) A conventional device of this type was constructed as shown in FIG.

第1図の従来例はmピクセルの表示が可能なディスプレ
イに対し、8色の表現が可能な画面を2個持つ場合の例
である。第1図において本従来例は、命令およびデータ
を格納する主記憶ユニット1と、主記憶ユニット1内の
命令に従いデータの処理を実行する中央処理ユニット2
と、主記憶ユニット1、中央処理ユニット2お工び各種
周辺制御ユニットとの間での情報の授受を行なわしめる
システムバス0と、システムバスOICデータカ接続さ
れることにエリ中央処理ユニット2↓り書込みおよび読
出しアクセスを可能としディスプレイへの表示のための
データをmXfiビット格納する表示記憶ユニット3と
、表示記憶ユニット3内のデータを順次読出してこの読
出しデータからディスプレイ表示信号を生成する表示制
御ユニット4とから構成される。表示記憶ユニット3は
それぞれmビットの記憶容量を持つ表示記憶30.32
゜33.34.35の6fIi1の表示記憶から構成さ
れ、各表示記憶内のmビットがディプレイの表示範囲で
あるmピクセルと1対1に対応し、表示記憶30.31
,32で第1の画面を、表示記憶33゜34.35で第
2の画面を構成し、1ピクセル毎に各画面において3W
Aの表示記憶内の1ビットずつ計3ビットで23即ち8
色の表現を可能としている。表示制御ユニット4は、表
示制御のための基本クロックであるクロック信号500
を発生するクロック発生回路50と、表示記憶30,3
1゜32.33,34.35それぞれに対応して設けら
れ各表示記憶の読出しデータ300,310゜・・・、
350(各8ビット)を入力データとしクロック信号5
00を動作クロックとするシフトレジスタ40,41,
42,43,44,45と、クロック信号500の8サ
イクル毎に表示記憶ユニット3への読出しタイミング信
号460を発生し読出されたデータをシフトレジスタ4
0〜45ヘセツトするロードタイミング信号461を発
生しさらに中央処理ユニット2から表示記憶ユニット3
への書込みまたは読出しアクセス要求200を受けて表
示記憶ユニット3に対し書込みまたは読出しタイミング
信号460を発生する表示記憶制御回路46と、前記シ
フトレジスタ40と43の各出力である400と430
とをあらかじめ定められた方法で合成しディスプレイに
対する表示信号470を出力する表示信号合成回路47
と、同様にして410と440とを合成し表示信号48
0を、420と450とを合成し表示信号490をそれ
ぞれ出力する表示信号合成回路48と49とから構成さ
れる。
The conventional example shown in FIG. 1 is an example in which a display capable of displaying m pixels has two screens capable of expressing eight colors. In FIG. 1, this conventional example includes a main memory unit 1 that stores instructions and data, and a central processing unit 2 that executes data processing according to instructions in the main memory unit 1.
The central processing unit 2 is connected to the system bus 0, which exchanges information between the main memory unit 1, the central processing unit 2, and various peripheral control units, and the system bus OIC data port. A display storage unit 3 that allows write and read access and stores mXfi bits of data for display on a display, and a display control unit that sequentially reads data in the display storage unit 3 and generates display display signals from the read data. It consists of 4. The display memory units 3 each have a display memory 30.32 having a storage capacity of m bits.
It consists of 6fIi1 display memories of ゜33.34.35, m bits in each display memory correspond one-to-one with m pixels that are the display range of the display, and display memories 30.31
, 32 constitutes the first screen, display memory 33°34.35 constitutes the second screen, and 3W is applied to each screen for each pixel.
Each bit in display memory of A is 3 bits in total, 23 or 8
It allows for the expression of colors. The display control unit 4 receives a clock signal 500 which is a basic clock for display control.
a clock generation circuit 50 that generates
1° 32.33, 34.35, respectively, and read data 300, 310° . . .
350 (8 bits each) as input data and clock signal 5
Shift registers 40, 41, whose operating clock is 00
42, 43, 44, 45, a read timing signal 460 to the display storage unit 3 is generated every 8 cycles of the clock signal 500, and the read data is transferred to the shift register 4.
Generates a load timing signal 461 for setting 0 to 45, and further outputs a load timing signal 461 from the central processing unit 2 to the display storage unit 3.
a display storage control circuit 46 that generates a write or read timing signal 460 to the display storage unit 3 in response to a write or read access request 200; and outputs 400 and 430 of the shift registers 40 and 43;
and a display signal synthesis circuit 47 that synthesizes the signals using a predetermined method and outputs a display signal 470 for the display.
Similarly, 410 and 440 are combined to produce a display signal 48.
0, 420 and 450, and outputs a display signal 490, respectively.

以上の構成を持つ従来例の場合、特定の図形即ち特定の
色をもつ表示が2個の画面内でいずれも同一のピクセル
位置にあることを検出するためには、第2図の概略フロ
ーで示した動作を中央処理装置2が実行する必要があり
、多大な実行時間とプログラムステップ数が必要となっ
てしまう欠点があった。
In the case of the conventional example with the above configuration, in order to detect that a specific figure, that is, a display with a specific color is located at the same pixel position in two screens, the schematic flow shown in Figure 2 is used. It is necessary for the central processing unit 2 to execute the indicated operation, which has the drawback of requiring a large amount of execution time and a large number of program steps.

(発明の目的) 5一 本発明はこれらの欠点を除去するため、ノ・−ドウエア
で自動的に特定の図形間の衝突を検出できるようにした
ものである。
(Objective of the Invention) 5. In order to eliminate these drawbacks, the present invention enables software to automatically detect collisions between specific figures.

(発明の構成) 上記の目的を達成するため、本発明は、第1図の構成の
上にさらに、mピクセルから成るディスプレイ上に24
色(第1図では7=3即ち8色)の表示を11固(第1
図ではn = 2即ち2 (m )の画面外同時に表示
できるようにした情報処理装置において、2lビットの
衝突指定レジスタと、表示記憶ユニット内のJXn個の
データと前記衝突指定レジスタの内容とからn側中いず
れか2個の画面間で特定の図形同士が重なっているか否
かを検出する衝突検出回路と、前記衝突検出回路での衝
突の検出により中央処理ユニブトに対して割込要求信号
を発生する衝突割込発生回路とから構成される。
(Structure of the Invention) In order to achieve the above object, the present invention further provides 24 pixels on a display consisting of m pixels in addition to the structure shown in FIG.
The display of colors (7 = 3 or 8 colors in Figure 1) is changed to 11 (first
In the figure, in an information processing device that is capable of simultaneously displaying n = 2, that is, 2 (m) off-screen images, a 2l-bit collision designation register, JXn pieces of data in the display storage unit, and the content of the collision designation register are used. A collision detection circuit detects whether specific figures overlap between any two screens on the n side, and an interrupt request signal is sent to the central processing unit upon detection of a collision in the collision detection circuit. It consists of a collision interrupt generation circuit that generates a collision interrupt.

次に本発明を、実施例をあげて詳細に説明する。Next, the present invention will be explained in detail by giving examples.

第3図は本発明の1実施例であり、第1図に示した従来
例の上にさらに1表示制御ユニット4内6一 に、システムバスOから8ビットのデータを入力するこ
とにより中央処理ユニット2からの書込みアクセスが可
能な8ビットの衝突指定レジスタ60と、前記衝突指定
レジスタ60の8ビットの出力信号600〜607とシ
フトレジスタ40〜45の各出力信号400,410,
420,430,440゜450とから2個の画面いず
れでも衝突指定レジスタ60で指定された色が表示され
るか否かを検出し衝突検出信号700を前者の場合″1
”、後者の場合″0”として出力する衝突検出回路70
と、前記衝突検出信号700、システムOからの1ビッ
トのデータ信号800と中央処理ユニット2からの割込
みマスク設定信号801お工び割込受付信号803を入
力信号とし割込要求信号802を中央処理ユニット2へ
出力する衝突割込発生回路80とから構成される。第4
図は衝突検出回路70の詳細図であり、衝突指定レジス
タ60の8ビットの出力信号600〜607のうちの1
ビットを信号400,410,420により第5図に従
って選択する8ウ工イ選択回路71と、同じく8ビット
の信号600〜607のうちの1ビットを信号430 
、440 、450にエリ第5図に従って選択する8ウ
工イ選択回路72と、両選択回路71と72の各出カフ
10と720との論理積をと9その結果を衝突検出信号
700とするアンドゲート73とから構成される。第6
図は衝突割込発生回路80の詳細図であり、システムバ
スOの8ビットのデータのうちあらかじめ定められたビ
ット位置の1ビットのデータ800をデータ入力(図中
のD入力)とし中央処理ユニット2よシ発生される割込
みマスク設定信号801をイネーブル入力(図中のE入
力・・・”1”レベルの間ラッチ81がデータスルー状
態、″θ′″レベルの間データホールド状態)とするラ
ッチ81と、ラッチ81の負出力804と衝突検出信号
700との論理積をとるアンドゲート82と、アンドゲ
ート82の出力信号805をクロック人力(図中のCL
K入力・・・D入力が常に1”のためCLK入力の立上
りエツジで7リツプフロツプ83がセットされる)とし
中央処理ユニット2よりの割込受付信号803をクリア
入力(図中のCLR入力)とし中央処理ユニット2への
割込要求信号802を出力するフリップフロップ83と
から構成される。ラッチ81がセット状態で衝突割込み
をマスクする状態でありリセット状態の時のみ信号80
4が′1”となり衝突検出信号700が1”となった時
割込要求信号802が出力され、該信号802が中央処
理ユニット2で受付けられると、割込受付信号803が
1”となって7リツプフロツプ83がクリアされ、割込
要求信号802が′θ″となり、以後衝突による割込処
理が中央処理ユニットで行なわれる。ここで衝突指定レ
ジスタ60の8ビy)の出力を8ウ工イ選択回路71゜
72で選択する信号400,410,420および43
0゜440.450  はディスプレイへの表示信号と
もなシ、その表示色が第1表のように決定される。従っ
て、衝突指定レジスタ60の各ビットは8色中の各色と
第1表のように1対1で対応しているため、2個の画面
間で特定の図形同士の衝突を監視するためにはそれらの
図形がいずれの色で表示されるかと考えてそれらの色に
対応した衝突指定レジスタ60のビットにすべて11″
を格納しておけばよい。これにより衝突監視を行なう図
形同士が同一ピクセル位置に重なった場合、そのピクセ
ルを表示する時刻に衝突検出信号700が1”となシ、
割込要求信号802により中央処理ユニット2に割込み
が発生し衝突による割込処理が行なわれる。
FIG. 3 shows one embodiment of the present invention, in which, in addition to the conventional example shown in FIG. An 8-bit collision designation register 60 that can be accessed for writing from the unit 2, 8-bit output signals 600 to 607 of the collision designation register 60, and output signals 400, 410 of the shift registers 40 to 45,
420, 430, 440°450, it is detected whether the color specified by the collision designation register 60 is displayed on any of the two screens, and the collision detection signal 700 is set to ``1'' in the former case.
", in the latter case, the collision detection circuit 70 outputs "0".
Then, the collision detection signal 700, the 1-bit data signal 800 from the system O, the interrupt mask setting signal 801 from the central processing unit 2, and the interrupt acceptance signal 803 are input signals, and the interrupt request signal 802 is processed by the central processing unit. The collision interrupt generation circuit 80 outputs to the unit 2. Fourth
The figure is a detailed diagram of the collision detection circuit 70, in which one of the 8-bit output signals 600 to 607 of the collision designation register 60 is
An 8-bit selection circuit 71 selects bits according to FIG.
, 440 and 450, the 8-way selection circuit 72 that selects according to FIG. It is composed of an AND gate 73. 6th
The figure is a detailed diagram of the collision interrupt generation circuit 80, in which 1-bit data 800 at a predetermined bit position among the 8-bit data on the system bus O is input as data (D input in the figure) to the central processing unit. A latch that uses the interrupt mask setting signal 801 generated from 2 to enable input (E input in the figure...the latch 81 is in the data through state during the "1" level, and the data hold state during the "θ'' level). 81, an AND gate 82 which takes the AND of the negative output 804 of the latch 81, and the collision detection signal 700, and an output signal 805 of the AND gate 82, which is clocked manually (CL in the figure).
K input...Since the D input is always 1'', the 7 lip-flop 83 is set at the rising edge of the CLK input), and the interrupt acceptance signal 803 from the central processing unit 2 is used as the clear input (CLR input in the figure). A flip-flop 83 outputs an interrupt request signal 802 to the central processing unit 2.The latch 81 is in a set state to mask collision interrupts, and the signal 80 is output only when in a reset state.
4 becomes ``1'' and the collision detection signal 700 becomes 1'', an interrupt request signal 802 is output, and when the signal 802 is accepted by the central processing unit 2, the interrupt acceptance signal 803 becomes 1''. The 7-lip flop 83 is cleared, the interrupt request signal 802 becomes 'θ'', and from then on, interrupt processing due to collision is performed by the central processing unit. Here, signals 400, 410, 420 and 43 select the output of the 8th bit (y) of the collision designation register 60 by the 8th bit selection circuit 71, 72.
0°440.450 is also a display signal to the display, and its display color is determined as shown in Table 1. Therefore, each bit of the collision designation register 60 has a one-to-one correspondence with each of the eight colors as shown in Table 1, so in order to monitor collisions between specific figures between two screens, Thinking about which color those figures will be displayed in, the bits of the collision designation register 60 corresponding to those colors are all set to 11''.
All you have to do is store it. As a result, when the figures to be subjected to collision monitoring overlap at the same pixel position, the collision detection signal 700 becomes 1'' at the time when that pixel is displayed.
An interrupt is generated in the central processing unit 2 by the interrupt request signal 802, and an interrupt process due to a collision is performed.

以上画面数2 (n=2 )、表示可能色数8CI=3
)の場合を例としたが、この” + lの値がそれぞれ
3以上、4以上である場合も本実施例での衝突検出レジ
スタを2lビットして1個持ち、8ウ工イ選択回路(7
1,72)を2lウエイとしてn個持ち、アンドゲート
73の代わシとして前記nlの8ウ工イ選択回路の出力
nビットのうち2ビット以上が1であることを検出する
回路を持つことによす、実現可能である。
Number of screens: 2 (n=2), number of displayable colors: 8 CI=3
), but if the value of ``+l'' is 3 or more and 4 or more, respectively, the collision detection register in this embodiment is 2l bits and has one, and the 8-way selection circuit ( 7
1, 72) as 2l ways, and in place of the AND gate 73, there is a circuit that detects that two or more bits out of the n bits output from the nl 8 way selection circuit are 1. Yes, it is possible.

(発明の効果) 以上説明したように、本発明によれば、衝突の検出は表
示制御ユニット4で自動的に行なわれ、第2図のような
中央処理ユニット2での動作が一切不要となるため、わ
ずかな・・−ドウエアの追加で特定の図形間の衝突の検
出が高速にかつプログラムステップをほとんど使わずに
実現できるという利点がある。
(Effects of the Invention) As explained above, according to the present invention, collision detection is automatically performed by the display control unit 4, and there is no need for any operation in the central processing unit 2 as shown in FIG. Therefore, there is an advantage that by adding a small amount of software, collisions between specific figures can be detected at high speed and with almost no program steps.

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

第1図は従来例のブロック図、第2図は従来例での中央
処理ユニット2の動作を示したフローチャート、第3図
は本発明の一実施例のブロック図、第4図は第3図の衝
突検出回路70の詳細図、第5図は第4図の8ウ工イ選
択回路71,72の動作説明図、第6図は第3図の衝突
割込発生回路80の詳細図である。 1・・・・・・記憶ユニット、2・−・・・・中央処理
ユニット、3・・・・・・表示記憶ユニット、4・・−
・・・表示制御ユニット、40〜45・・・・・・シフ
トレジスタ、46・・・・・・表示記憶制御回路、47
〜49・・・・・・表示信号合成回路、50・・・・・
・クロック発生回路、60・・・・・・衝突検出レジス
タ、70・・・・・・衝突検出回路、71 、72・−
・・・・8ウ工イ選択回路、73・・・・−・アンドゲ
ート、80・・・・・・衝突割込発生回路、81・・・
・・・ラッチ、82・・・・・・アンドゲート、83・
・・・・・フリップフロップ。 牛−S 凹 (勘イ/i t: 8ウエイ2王に′回沼)7/の 入出グイ3号 j;8シエイ鷹(−tK8跨72つ 人出n信号
FIG. 1 is a block diagram of a conventional example, FIG. 2 is a flowchart showing the operation of the central processing unit 2 in the conventional example, FIG. 3 is a block diagram of an embodiment of the present invention, and FIG. 5 is a detailed diagram of the collision detection circuit 70 of FIG. 4, FIG. 5 is a diagram explaining the operation of the 8-way selection circuits 71 and 72 of FIG. . 1...Storage unit, 2...Central processing unit, 3...Display storage unit, 4...-
... Display control unit, 40-45 ... Shift register, 46 ... Display storage control circuit, 47
~49...Display signal synthesis circuit, 50...
・Clock generation circuit, 60...Collision detection register, 70...Collision detection circuit, 71, 72...-
80... 8-way selection circuit, 73...--AND gate, 80... Collision interrupt generation circuit, 81...
...Latch, 82...And gate, 83.
·····flip flop. Cow-S concave (kanii/it: 8 way 2 king ni' times swamp) 7/ no entry/exit Gui 3 j; 8 siei hawk (-tK8 straddle 72 people n signal

Claims (1)

【特許請求の範囲】 命令およびデータを格納する主記憶ユニットと、前記主
記憶ユニット内の命令に従いデータの処理を実行する中
央処理ユニットと、前記中央処理ユニットより書込みお
よび読出しアクセスが可能でありディスプレイへの表示
のためのデータを格納する表示記憶ユニットと、前記表
示記憶ユニット内のデータを順次読出してこの読出しデ
ータからディスプレイ表示信号を生成する表示制御ユニ
ットとを含み、ディスプレイの表示単位である1ピクセ
ルに前記表示記憶ユニット内のlビットが1組となって
1対1に対応しこの対応をm組持つエリアがn個から成
る記憶容量を前記表示記憶ユニットが持つことにより、
全体でmピクセルから成るディスプレイ上に2^l色の
表示をn個の画面分同時に表示できるようにした情報処
理装置において、 前記表示制御ユニット内に、前記中央処理ユニットより
書込みアクセスが可能な2^lビットの衝突指定レジス
タと、ピクセル毎にn個の各画面それぞれ前記表示記憶
ユニット内の1ピクセルを構成するlビットのデータに
より前記衝突指定レジスタの2^lビット中の1ビット
を読出しいずれか2個の画面同士で読出しデータが2ビ
ット共あらかじめ定められた値になっていることを検出
する衝突検出回路と、前記衝突検出回路での前記の検出
により前記中央処理ユニットに対して割込要求信号を発
生する衝突割込発生回路とを、含むことを特徴とする情
報処理装置。
[Scope of Claims] A main memory unit that stores instructions and data, a central processing unit that processes data according to the instructions in the main memory unit, and a display that can be accessed for writing and reading from the central processing unit. 1, which is a display unit of the display, includes a display storage unit that stores data for display on the display, and a display control unit that sequentially reads data in the display storage unit and generates a display display signal from the read data. The display storage unit has a storage capacity consisting of n areas each having m sets of m sets of l bits in the display storage unit corresponding to each pixel on a one-to-one basis;
In an information processing device capable of simultaneously displaying a 2^l color display for n screens on a display consisting of a total of m pixels, the display control unit includes 2 memory cells that can be accessed for writing by the central processing unit. Read out 1 bit out of 2^l bits of the collision designation register using the ^l-bit collision designation register and the 1-bit data constituting one pixel in the display storage unit for each n screen for each pixel. a collision detection circuit that detects that two bits of read data between two screens are both predetermined values; and an interrupt is sent to the central processing unit upon the detection by the collision detection circuit. An information processing device comprising: a collision interrupt generation circuit that generates a request signal.
JP29427285A 1985-12-25 1985-12-25 Information processor Pending JPS62151982A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29427285A JPS62151982A (en) 1985-12-25 1985-12-25 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29427285A JPS62151982A (en) 1985-12-25 1985-12-25 Information processor

Publications (1)

Publication Number Publication Date
JPS62151982A true JPS62151982A (en) 1987-07-06

Family

ID=17805562

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29427285A Pending JPS62151982A (en) 1985-12-25 1985-12-25 Information processor

Country Status (1)

Country Link
JP (1) JPS62151982A (en)

Similar Documents

Publication Publication Date Title
US5140687A (en) Data processing apparatus with self-emulation capability
JPH031699B2 (en)
US5283863A (en) Process for effecting an array move instruction, a graphics computer system, a display system, a graphics processor and graphics display system
JPS62151982A (en) Information processor
JPS5935451B2 (en) General purpose register access method
JPS62151983A (en) Information processor
EP0660266A1 (en) Image processing method and device therefor
JPS62151984A (en) Information processor
JP2587415B2 (en) Data processing system with variable memory bank selection
JPH0346833B2 (en)
JPS62113193A (en) Memory circuit
JPH06215560A (en) Memory integrated circuit for video display
JPS62196746A (en) Memory integrated circuit
JPH0381880A (en) Method for generating pixel mask and graphic processor
JPS6217250B2 (en)
JPS62125475A (en) System line coloring system in color monitor
JPH0568795B2 (en)
JPH01287696A (en) Displaying data control circuit
JPH05189581A (en) Graphic data write device
JPH02226334A (en) Picture operation circuit
JPH01145777A (en) Picture data transfer system
JPH0453319B2 (en)
JPH03283189A (en) Semiconductor memory device
JPH1091144A (en) Color bit map memory
JPS61193190A (en) Display controller