JPS6283786A - Screen memory data writing system - Google Patents

Screen memory data writing system

Info

Publication number
JPS6283786A
JPS6283786A JP60224098A JP22409885A JPS6283786A JP S6283786 A JPS6283786 A JP S6283786A JP 60224098 A JP60224098 A JP 60224098A JP 22409885 A JP22409885 A JP 22409885A JP S6283786 A JPS6283786 A JP S6283786A
Authority
JP
Japan
Prior art keywords
data
screen memory
bit position
bit
write
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
JP60224098A
Other languages
Japanese (ja)
Inventor
孝雄 三浦
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP60224098A priority Critical patent/JPS6283786A/en
Publication of JPS6283786A publication Critical patent/JPS6283786A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔概 要〕 本発明は処理装置(CPU)の制御下にバイトまたはワ
ード単位のデータを格納する画面メモリの所望のビット
位置よりデータを誓込みたい場合、所望のビット位置情
報を入力しその該当するアドレスのバイトまたはワード
におけるビットシフト数をリングシフトカウンタで回転
させ、該回転されたデータを画面メモリのビット位置に
該当するバイトまたはワードに送るように制御するもの
である。これにより、従来の1ビツト苑シフトして所望
ビット位置を設定するのに対し、高速膏込みが可能とな
る。
[Detailed Description of the Invention] [Summary] The present invention provides a method for inserting data from a desired bit position in a screen memory that stores data in bytes or words under the control of a processing unit (CPU). Controls input position information, rotates the bit shift number in the byte or word of the corresponding address with a ring shift counter, and sends the rotated data to the byte or word corresponding to the bit position of the screen memory. be. This enables high-speed filling, compared to the conventional method where a desired bit position is set by shifting one bit.

〔産業上の利用分野〕[Industrial application field]

本発明はバイトまたはワード単位の画面メモリの所望の
ビット位置よυデータを書込む画面メモリデータ書込方
式に関するものである。
The present invention relates to a screen memory data writing method for writing υ data to a desired bit position of a screen memory in units of bytes or words.

〔従来の技術〕[Conventional technology]

従来、第6図の従来例の画面メモリ1に示すように、バ
イト(8ビツト)またはワード(16ビツト)2を一括
して1表示時間にアクセスする方式が多用されている。
Conventionally, as shown in the conventional screen memory 1 shown in FIG. 6, a system has been frequently used in which bytes (8 bits) or words (16 bits) 2 are accessed at once for one display time.

この場合アドレスはバイトマたはワード単位で付されて
いるから、この単位毎に書込まれ、読出し表示される場
合には同等支障はない。
In this case, since addresses are assigned in units of bytes or words, there is no problem when writing, reading and displaying in units of this unit.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

これに対し、曹込みデータを所望のビット位置から誓込
みたい場合、たとえば同図(α)のワード2′のビット
シフト位置■に薔込みたい時には、同図(b)の動作の
流れ図に示す手I@にとらなければならない。すなわち
、CPUがバイトまたはワードのデータ金リードした後
、書込部を“O″すなわちマスクを行ない所望ビット位
置に合致するようにライトデータをシフトする。そして
前に残っているリードデータとシフトされたライトデー
タの論理和(0几)をとシ画面メモリの書込領域に査込
む。
On the other hand, if you want to insert the filling data from a desired bit position, for example, if you want to insert it into the bit shift position ■ of word 2' in (α) of the same figure, the operation flowchart shown in (b) of the same figure shows I have to take it in hand. That is, after the CPU reads a byte or word of data, the write section is set to "O", that is, masked, and the write data is shifted so that it matches a desired bit position. Then, the logical sum (0) of the previously remaining read data and the shifted write data is read into the write area of the screen memory.

以上の手順はソフトウェアを用いて実現できるが、同図
(C)は要部tハードウェアを用いて時間短縮を図った
ものでるる。
Although the above procedure can be realized using software, the main part of the procedure shown in FIG.

同N (C)において、処理装置(CPU)2の制御下
に、主バス3を介して外部からバイトまたはワードの書
込データをシフトレジスタ5に一旦格納し、CPU2か
らのコマンドによシシ7トクロック発生回路6よυクロ
ックをシフトレジスタ5に与え、この内容をビットマス
ク/ビットセット回路8に送シ、蓄込みビット位置制御
を行なう。すなわち、該回路8において、シフトクロッ
クに応じてゲート制御7からの制御により書込部を0′
にして所定ビット数だけマスク(ライトしない)し、所
定ビット位置からセット(ライト)する。この手順は1
ビツト宛シフトして順次行なわれる。このようにして、
セットされた書込データがレジスタ9に移され、画面メ
モリ1に書込む。
In the same N (C), under the control of the processing unit (CPU) 2, byte or word write data is temporarily stored in the shift register 5 from the outside via the main bus 3, and then transferred to the shift register 5 according to a command from the CPU 2. The clock generation circuit 6 applies the υ clock to the shift register 5, and sends the contents to the bit mask/bit set circuit 8 to control the storage bit position. That is, in the circuit 8, the write section is set to 0' under control from the gate control 7 in accordance with the shift clock.
mask (do not write) a predetermined number of bits, and set (write) from a predetermined bit position. This step is 1
The bits are shifted sequentially. In this way,
The set write data is transferred to the register 9 and written to the screen memory 1.

この方式であると、マスクして所定ビット数だけシフト
f!:I&返した後、所定ビット位置から1ピツト宛ラ
イトするという煩雑な手順をとっていた。
With this method, f! is masked and shifted by a predetermined number of bits! : After returning I&, the complicated procedure was to write to one pit from a predetermined bit position.

本発明の目的は画面メモリの所望のビット位置よシデー
タを蕾込みたい場合、所望のビット位置情報の入力によ
シ自動的にそのビット位置から連続書込みできる画面メ
モリデータ書込方式を提供することにある。
An object of the present invention is to provide a screen memory data writing method that allows data to be written to a desired bit position of a screen memory automatically and continuously from that bit position by inputting the desired bit position information. It is in.

〔問題点を解決するための手段〕[Means for solving problems]

前記目的を達成するため、本発明においては、バイトま
たはワード単位のデータを格納する画面メモリの所望の
ビット位置よりデータ全書込みたい場合、所望のビット
位置情報を入力し該当するバイトまたはワードのビット
位置までのビットシフト数を発生する手段と、書込デー
タを入力し前記ビットシフト数に応じてデータを回転さ
せるリングシフトカウンタとを具え、該回転されたデー
タ’に画面メモリの該当するバイトまたはワードに送シ
★込可能ビットのみ書込む。
In order to achieve the above object, in the present invention, when it is desired to write all data from a desired bit position of a screen memory that stores data in units of bytes or words, the desired bit position information is input and the bits of the corresponding byte or word are written. a ring shift counter that receives write data and rotates the data according to the bit shift number; Only writeable bits are written to the word.

〔作  用〕[For production]

上記構成により、所望のビット位置情報を入力し、その
該当するアドレスで指定されたバスまたはワード内での
ビットシフト数をリングシフトカウンタで回転して画面
メモリをアクセスし、自動的に所望のビット位置からデ
ータの連続書込みを行なうことができるものである。こ
れにより従来の1ビツト宛シフトする従来方式に比し高
速釜込みが可能となる。
With the above configuration, the desired bit position information is input, the number of bit shifts within the bus or word specified by the corresponding address is rotated by the ring shift counter, the screen memory is accessed, and the desired bit is automatically It is possible to continuously write data from a certain position. As a result, it is possible to perform high-speed recombination compared to the conventional method of shifting one bit at a time.

〔実 施 例〕〔Example〕

第1図は本発明の実施例の構成説明図である。 FIG. 1 is an explanatory diagram of the configuration of an embodiment of the present invention.

同図において、処理装置(CPU)2の制御下に、主バ
ス3を介して外部からワード(16ビツト)の書込デー
タをデータレジスタ11に、書込座標(ビット位置)を
書込座標レジスタ12に一旦格納する。
In the figure, under the control of a processing unit (CPU) 2, word (16 bits) write data is input from the outside via a main bus 3 to a data register 11, and write coordinates (bit positions) are input to a write coordinate register. 12 is temporarily stored.

そして最初のアドレスの書込データをリングシフトカウ
ンタ13に送る。これに対応し、書込座標をビット位置
情報発生回路14に送シ、その属するワードアドレスと
指定ビット位置までのビットシフト数を発生し、このシ
フトクロックをリングシフトカウンタ16に送り、対応
する書込データを指定ビット位P!iまで回転させる。
Then, the write data of the first address is sent to the ring shift counter 13. Correspondingly, the write coordinates are sent to the bit position information generation circuit 14, which generates the word address to which the write coordinates belong and the number of bit shifts to the designated bit position.This shift clock is sent to the ring shift counter 16, and the corresponding write Include data to specified bit position P! Rotate to i.

−万、ビット位置情報発生回路14からの指定ビット位
置が書込制御回路15に送られる。リングシフトカウン
タ16で回転されたデータは画面メモリ1に送られ、書
込制御回路15によυ膏込部に対し書込制御され、書込
可能ビットのみが書込まれる。その後連続書込みが可能
なように、上記書込部に書込まれなかったデータは、リ
ングシフトカウンタによシ次アドレスの位置にシフトす
る。そして上述と同じ手順を繰り返す。
-10,000, the designated bit position from the bit position information generation circuit 14 is sent to the write control circuit 15. The data rotated by the ring shift counter 16 is sent to the screen memory 1, and the write control circuit 15 controls writing to the υ paste part, so that only writable bits are written. Thereafter, data that has not been written to the writing section is shifted to the next address position by a ring shift counter so that continuous writing can be performed. Then repeat the same procedure as above.

第2図は第1図の実施例の要部であるビットシフトカウ
ンタの動作説明図である。
FIG. 2 is an explanatory diagram of the operation of the bit shift counter, which is a main part of the embodiment shown in FIG.

簡単のため、バイト(8ビツト)単位のデータに適用す
る場合は2倍の16ビツトのシフトカウンタを用意し循
環できるように構成される。初期データ設定時はΔ印で
示すように&9〜AI6にセットされる。そしてビット
位置情報発生回路14よシのシフトクロックによシ、こ
の先頭から4ビツトクフトされ、書込可能ビット0印で
示すように墓15〜黒16にセットされる。これ以後は
循環してム1〜高牛に格納され、X印で示す次の書込デ
ータの4ビツトと共に次のアドレスのバイトの書込分に
充当される。
For simplicity, when applying to data in units of bytes (8 bits), a double 16-bit shift counter is provided to enable circulation. When initial data is set, it is set to &9 to AI6 as indicated by the Δ mark. Then, using the shift clock of the bit position information generating circuit 14, 4 bits are shifted from the beginning and set in the grave 15 to black 16 as shown by the writable bit 0 mark. Thereafter, the data is stored cyclically in M1 to M1, and is used together with the next 4 bits of write data indicated by the X mark to write the byte of the next address.

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

以上説明したように、本発明によれば、バイトまたはワ
ード単位のデータを格納する画面メモリの所望のビット
位置よシデータを誉込みたい場合、所望のビット位置情
報を入力しその該当するアドレスのバイトまたはワード
におけるビットシフト数tVングカウンタで回転させ、
該回転されたデータを画面メモリのビット位置に該当す
るバイトまたはワードに送るように制御するものである
As explained above, according to the present invention, when you want to write data to a desired bit position of a screen memory that stores data in units of bytes or words, you can input the desired bit position information and write the byte at the corresponding address. Or rotate by a bit shift number tV counting counter in a word,
The rotated data is controlled to be sent to the byte or word corresponding to the bit position of the screen memory.

これによυバイトまたはワード内のビットシフト数がハ
ードウェアにより自動的に設定されるから、従来のよう
に1ビット宛繰返しシフトする手順が省かれるから高速
化を容易に実現することが可能となるものである。
This allows the number of bit shifts within a υ byte or word to be automatically set by hardware, which eliminates the conventional procedure of repeatedly shifting one bit, making it easier to achieve higher speeds. It is what it is.

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

第1図は本発明の実施例の構成説明図、第2図はリング
シフトカウンタの説明図、第3図(a)〜(c)は従来
例の説明図であり、図中、1は画面メモリ、10はCP
U、  11はデータレジスタ、12は書込座標レジス
タ、16はリングシフトカウンタ、14はビット位置情
報発生回路、15は書込制御回路を示す。
Fig. 1 is an explanatory diagram of the configuration of an embodiment of the present invention, Fig. 2 is an explanatory diagram of a ring shift counter, and Figs. 3 (a) to (c) are explanatory diagrams of a conventional example. Memory, 10 is CP
11 is a data register, 12 is a write coordinate register, 16 is a ring shift counter, 14 is a bit position information generation circuit, and 15 is a write control circuit.

Claims (1)

【特許請求の範囲】[Claims] バイトまたはワード単位のデータを格納する画面メモリ
の所望のビット位置よりデータを書込む画面メモリデー
タ書込方式において、所望のビット位置情報を入力し該
当するバイトまたはワードのビット位置までのビットシ
フト数を発生する手段と、書込データを入力し前記ビッ
トシフト数発生手段からのビットシフト数に応じてデー
タを回転させるリングシフトカウンタとを具え、該回転
されたデータを画面メモリのビット位置に該当するバイ
トまたはワードに送り書込可能ビットのみ書込み、以下
連続書込みを行なうように制御することを特徴とする画
面メモリデータ書込方式。
In the screen memory data writing method that writes data from a desired bit position in a screen memory that stores data in bytes or words, input the desired bit position information and shift the number of bits to the bit position of the corresponding byte or word. and a ring shift counter that receives write data and rotates the data according to the number of bit shifts from the bit shift number generating means, and the rotated data corresponds to the bit position of the screen memory. A screen memory data writing method characterized by writing only the writeable bits sent to the byte or word to be sent, and controlling so that subsequent writing is performed continuously.
JP60224098A 1985-10-08 1985-10-08 Screen memory data writing system Pending JPS6283786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60224098A JPS6283786A (en) 1985-10-08 1985-10-08 Screen memory data writing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60224098A JPS6283786A (en) 1985-10-08 1985-10-08 Screen memory data writing system

Publications (1)

Publication Number Publication Date
JPS6283786A true JPS6283786A (en) 1987-04-17

Family

ID=16808510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60224098A Pending JPS6283786A (en) 1985-10-08 1985-10-08 Screen memory data writing system

Country Status (1)

Country Link
JP (1) JPS6283786A (en)

Similar Documents

Publication Publication Date Title
US4882687A (en) Pixel processor
JPS6021092A (en) Color index conversion system
US4706213A (en) Graphic memory system for interarea transfer of X-Y coordinate data
JPS6283786A (en) Screen memory data writing system
JPS5831591B2 (en) Pattern display method at arbitrary position
US4988985A (en) Method and apparatus for a self-clearing copy mode in a frame-buffer memory
JPS5952291A (en) Video ram writing controller
JPS5835592A (en) display screen splitting device
JPS6141186A (en) Simultaneous color data writing apparatus
JPH0474746B2 (en)
JPH011075A (en) Image processing device
JPS6051748B2 (en) Memory writing method
JPH0120514B2 (en)
JPS63251864A (en) Display device
JPS60260988A (en) graphic display device
JPS5840755B2 (en) Display control method
JPS6032091A (en) Hidden surface processing system
JPH0354646A (en) Write system for memory device
JPH04225424A (en) display control circuit
JPH04225453A (en) data processing equipment
JPS6134156B2 (en)
JPS6150193A (en) Display control system
JPS63223970A (en) information processing equipment
JPH039395A (en) Multiwindow circuit
JPS5891491A (en) Picture information input circuit for picture memory