JPS63288340A - Controller for memory access - Google Patents

Controller for memory access

Info

Publication number
JPS63288340A
JPS63288340A JP12305187A JP12305187A JPS63288340A JP S63288340 A JPS63288340 A JP S63288340A JP 12305187 A JP12305187 A JP 12305187A JP 12305187 A JP12305187 A JP 12305187A JP S63288340 A JPS63288340 A JP S63288340A
Authority
JP
Japan
Prior art keywords
address
data
increment
vram
register
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
JP12305187A
Other languages
Japanese (ja)
Inventor
Kimio Yamamura
山村 喜美夫
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.)
HADOSON KK
Hudson Soft Co Ltd
Original Assignee
HADOSON KK
Hudson Soft 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 HADOSON KK, Hudson Soft Co Ltd filed Critical HADOSON KK
Priority to JP12305187A priority Critical patent/JPS63288340A/en
Publication of JPS63288340A publication Critical patent/JPS63288340A/en
Priority to US07/563,745 priority patent/US5319786A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To freely set the increment width of an address, and to simply execute processing of a horizontal/vertical conversion of a pattern, etc., by providing a bit for setting the increment width to a control register. CONSTITUTION:When an IW bit of a control register 1 is '00', the increment width is +1, as shown in the figure. When a start address of a memory address write register (MAWR) 2 is '0', a CPU 8 writes a transfer data in a V-RAM data write register (VWR) 4 and writes its upper byte. As a result, an address corresponding to a '0' address of a V-RAM 7 is computed by an address counter 6 and written in its address. When this write is ended, an address of said MAWR 2 is brought to an increment. Subsequently, it is computed by the address counter 6 of the VRAM 7 based on an address value '1' of the MAWR 2, and the next data of the VWR 4 is written in its address.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はメモリアクセスの制御装置に関し、特に、アド
レスのインクリメントの幅を自由に設定できるようにし
たメモリアクセスの制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory access control device, and more particularly to a memory access control device in which the increment width of an address can be freely set.

〔従来の技術〕[Conventional technology]

従来のメモリアクセスの制御装置はアドレスカウンタの
計数値によってアドレスを指定し、指定されたアドレス
へデータを書き込んだり、そのアドレスのデータを読み
出して他へ転送するものである。アドレスはアドレスカ
ウンタのアップカウントによって+1ずつインクリメン
トされ、1番ずつ増加するアドレスがアクセスされるこ
とになる。
A conventional memory access control device specifies an address based on the count value of an address counter, writes data to the specified address, or reads data at that address and transfers it to another. The address is incremented by +1 as the address counter counts up, and the address that increases by 1 is accessed.

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

しかし、従来のメモリアクセスの制御装置によれば、ア
ドレスのインクリメント幅が固定されているため、キャ
ラクタイメージの処理が単一化してしまい、面白味に欠
けることになる。特に、最近のテレビゲーム等において
は、キャラクタイメージに特殊な加工を施すことが要求
されることがあるが、アクセス方法によってそれに対応
することがでないため、他の方法によって対応している
のが実情である。
However, according to the conventional memory access control device, since the increment width of the address is fixed, the processing of the character image is unified, which results in a lack of interest. In particular, in recent video games, character images are sometimes required to undergo special processing, but since access methods cannot handle this, the reality is that other methods are used to handle this. It is.

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

本発明は上記に鑑みてなされたものであり、アドレスの
インクリメント幅を自由に設定して、例えば、画面の横
書きおよび縦書きを自由に選択できるようにするため、
コントロールレジスタにインクリメント幅を設定するビ
ットを設けるようにしたメモリアクセスの制御装置を提
供する。
The present invention has been made in view of the above, and in order to freely set the address increment width, for example, to freely select horizontal writing or vertical writing on the screen,
A memory access control device is provided in which a control register is provided with a bit for setting an increment width.

即ち、本発明のメモリアクセスの制御装置は次の手段を
有する。
That is, the memory access control device of the present invention has the following means.

(1)  インクリメント幅設定手段 例えば、コントロールレジスタの特定のビットによって
インクリメント幅を決定する。このビットの内容に応じ
てインクリメント幅を決定するため、ビットの内容を変
えるだけでインクリメント幅を変えることができる。
(1) Increment width setting means For example, the increment width is determined by a specific bit of a control register. Since the increment width is determined according to the contents of this bit, the increment width can be changed simply by changing the contents of the bit.

(2)アドレス設定手段 メモリアドレスライトレジスタ(書き込み用)、あるい
はメモリアドレスリードレジスタ(読み出し用)が使用
され、VRAMをアクセスするアドレスを設定する。初
期値として開始アドレスを有する。
(2) Address setting means A memory address write register (for writing) or a memory address read register (for reading) is used to set an address for accessing the VRAM. It has a start address as an initial value.

(31制御手段 設定されたインクリメント幅を開始アドレスに加算して
次にアクセスするアドレスとし、これをアドレス設定手
段に再設定する。以降、再設定されたアドレスにインク
リメント幅を加算して次にアクセスするアドレスとして
設定する。これらのアドレスに基づいてVRAMをアク
セスしてデータの書き込み、あるいは読みだしを行わせ
る。
(31 Control means adds the set increment width to the start address to set the next address to be accessed, and resets this to the address setting means. From then on, the increment width is added to the reset address and the next access is made. Based on these addresses, the VRAM is accessed to write or read data.

〔作用〕[Effect]

以上の構成により、例えば、インクリメント幅を水平方
向のアドレス数に設定すると横書きの画面を縦書きにし
てVRAMに格納することができる。一方、同じように
読みだすと、VRAMに横書きされているデータに基づ
いてそれを画面上に縦書きで表示することができる。
With the above configuration, for example, if the increment width is set to the number of addresses in the horizontal direction, a horizontal writing screen can be changed to vertical writing and stored in the VRAM. On the other hand, if the data is read out in the same way, it is possible to display the data written vertically on the screen based on the data written horizontally in the VRAM.

〔実施例〕〔Example〕

以下、本発明のメモリアクセスの制御装置を詳細に説明
する。
The memory access control device of the present invention will be described in detail below.

第1図は本発明の一実施例を示し、コントロールレジス
タ1、メモリアドレスライトレジスタ(MAWR)2、
メモリアドレスリードレジスタ(MARR)3、VRA
Mデータライトレジスタ(VWR)4、およびVRAM
データリードレジスタ(VRR)5が設けられており、
MAWR2およびMARR3はアドレスカウンタ6に接
続され、アドレスカウンタ6のアドレス値によってVR
AM7がアクセスされる。VRAM7はCPU8によっ
てデータの書き込みおよび読み出しが行われる。コント
ロールレジスタ1は割り込み要求許可、その他のコント
ロールビットを有するが、特に、11および12のビッ
トにインクリメント幅を、設定する!Wビットを有する
FIG. 1 shows an embodiment of the present invention, in which a control register 1, a memory address write register (MAWR) 2,
Memory address read register (MARR) 3, VRA
M data write register (VWR) 4, and VRAM
A data read register (VRR) 5 is provided,
MAWR2 and MARR3 are connected to the address counter 6, and VR is determined by the address value of the address counter 6.
AM7 is accessed. Data is written to and read from the VRAM 7 by the CPU 8. Control register 1 has interrupt request permission and other control bits, but in particular, the increment width is set in bits 11 and 12! It has W bit.

第2図はIWビットの内容とインクリメント幅の関係を
示し、「00」は+1.rollは+20 (16進数
、以下同じ)、rlOJは+40、「11」は+80の
インクリメント幅となる。MAWR2はCPU8がVR
AM7ヘデータを書き込む開始アドレスを設定するもの
であり、MARR3はCPU8がVRAM7からデータ
を読み出す開始アドレスを設定するものである。MAR
R3はその上位バイト(8〜15のビット)を書き込ま
れると、VRAM7からデータの読み込みを開始し、デ
ータをVRR5に入れ、■Wビットに応じてインク」ノ
メントする。また、VWR4はCPU8からVRAM7
に転送するデータを書き込むものであり、その上位バイ
トが書き込まれると、VRAM7への書き込みを開始し
、その終了によってMAWR2がIWビットに応じてイ
ンクリメントする。更に、VRR5はMARR3にセッ
トされたアドレスによりVRAM7から読み出されたデ
ータを記憶し、CPU8へ転送する。この上位バイトが
読まれると、次のアドレスの読み出しが開始される。
FIG. 2 shows the relationship between the contents of the IW bit and the increment width, where "00" is +1. roll is +20 (hexadecimal number, same below), rlOJ is +40, and "11" is +80 increment width. In MAWR2, CPU8 is VR
MARR3 is used to set the start address for writing data to AM7, and MARR3 is used to set the start address for CPU 8 to read data from VRAM7. M.A.R.
When the upper byte (bits 8 to 15) is written to R3, it starts reading data from VRAM 7, puts the data into VRR 5, and writes ink according to the W bit. Also, VWR4 has CPU8 to VRAM7
When the upper byte is written, writing to the VRAM 7 is started, and upon completion of the writing, MAWR2 is incremented according to the IW bit. Furthermore, VRR5 stores the data read from VRAM7 according to the address set in MARR3, and transfers it to CPU8. Once this upper byte is read, reading of the next address begins.

以下、本発明の詳細な説明する。The present invention will be explained in detail below.

(1)  コントロールレジスタ1のIWビットが「0
0」のとき 第2図よりインクリメント幅が+1である。MAWR2
の開始アドレスが「0」であるとすると、CPU8が転
送データをVWR4に書き込み、その上位バイトを書く
ことによってVRAM7の0番地に相当するアドレスを
アドレスカウンタ6が演算し、そのアドレスへ書き込む
。この書き込みの終了によってMAWR2のアドレスが
+1されて「1」となる。VRAM7のこの書き込みは
第3図の仮想スクリーンの0番地に対応するものとする
。次に、MAWR2のアドレス値「1」に基づいたVR
AM7のアドレスがアドレスカウンタ6によって演算さ
れ、そのアドレスへVWR4の次のデータが書き込まれ
る。これは仮想スクリーンの1番地に対応するデータと
なる。このようにして、仮想スクリーンの水平方向のθ
〜IF、20〜3F、40〜5F、−・・・・・−のア
ドレスに対応するデータが順々にVRAM7に書き込ま
れて行く。
(1) IW bit of control register 1 is “0”
0'', the increment width is +1 from FIG. MAWR2
Assuming that the start address of is "0", the CPU 8 writes the transfer data to the VWR 4, and by writing its upper byte, the address counter 6 calculates the address corresponding to address 0 of the VRAM 7, and writes to that address. Upon completion of this write, the address of MAWR2 is incremented by 1 and becomes "1". It is assumed that this writing in the VRAM 7 corresponds to address 0 of the virtual screen in FIG. Next, VR based on the address value “1” of MAWR2
The address of AM7 is calculated by the address counter 6, and the next data of VWR4 is written to that address. This becomes data corresponding to address 1 on the virtual screen. In this way, the horizontal θ of the virtual screen
Data corresponding to the addresses ~IF, 20~3F, 40~5F, . . . - are sequentially written into the VRAM 7.

(2)  コントロールレジスタ1の■Wビットが「0
1」のとき 第2図よりインクリメント幅は+20 (16進数)で
ある。MAWR2の開始アドレスが「0」であるとする
と、VWR4のデータがアドレスカウンタ6によって演
算されたVRAM7のアドレスへ書き込まれる。
(2) ■W bit of control register 1 is “0”
1, the increment width is +20 (hexadecimal) from FIG. Assuming that the starting address of MAWR2 is "0", the data of VWR4 is written to the address of VRAM7 calculated by address counter 6.

これは仮想スクリーンのO番地のデータに対応する。書
き込み終了によってMAWR2のアドレス値は+20だ
けインクリメントされる。アドレスカウンタ6はこのア
ドレス値に対応したVRAM7のアドレスを演算し、そ
のアドレスへVWR4のデータを書き込む、このデータ
は仮想スクリーンの20番地のデータとなる。これによ
ってMAWR2のアドレス値は+20インクリメントさ
れ、+40となる。このようにして、仮想スクリーンの
0.20.40.60−・−・・−のアドレスに対応す
るアドレスによってVRAM7   jへ書き込まれる
。従って、画面を横書きから縦書きへ書き換えたことに
なる。
This corresponds to the data at address O on the virtual screen. Upon completion of writing, the address value of MAWR2 is incremented by +20. The address counter 6 calculates the address of the VRAM 7 corresponding to this address value, and writes the data of the VWR 4 to that address. This data becomes the data of address 20 of the virtual screen. As a result, the address value of MAWR2 is incremented by +20, and becomes +40. In this way, the data is written to the VRAM 7j by the address corresponding to the address 0.20.40.60-...- of the virtual screen. Therefore, the screen has been rewritten from horizontal writing to vertical writing.

一方、インクリメント幅を+40、+80に選択すると
縦書きで、かつ、垂直方向に2倍、4倍に拡大した画面
になる。その他、インクリメント幅を適当に設定するこ
とにより各種の画面加工、例えば、傾斜、回転等を行う
ことができる。以上の実施例は、CPU8からVRAM
7への書き込みに関するものであるが、VRAM7から
の読み出しについても同様に行うことができる。
On the other hand, if the increment width is selected as +40 or +80, the screen will be written vertically and enlarged twice or four times in the vertical direction. In addition, various screen modifications such as tilting and rotation can be performed by appropriately setting the increment width. In the above embodiment, from CPU8 to VRAM
This relates to writing to VRAM 7, but reading from VRAM 7 can be performed in the same way.

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

以上説明した通り、本発明のメモリアクセスの制御装置
によれば、コントロールレジスタにインクリメント幅を
設定するビットを設けるようにしたため、アドレスのイ
ンクリメント幅の設定が自由になり、画面の横、縦の変
換、その他の画面の加工を簡単に行うことができる。
As explained above, according to the memory access control device of the present invention, since the control register is provided with a bit for setting the increment width, the increment width of the address can be freely set, and the horizontal and vertical conversion of the screen is possible. , and other screen processing can be done easily.

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

第1図は本発明の一実施例を示す説明図。 第2図はコントロールレジスタのインクリメントビット
を示す説明図。第3図は仮想スクリーンを示す説明図。 符号の説明 1・・・・・・・コントロールレジスタ2・・・−・−
メモリアドレスライトレジスフ(M A W R)3・
・・・・−メモリアドレスリードレジスタ(MARR)
・ 4−・−・・・−VRAMデータライトレジスタ5
−・・−VRAMデータリードレジスタ6・・−・−・
アドレスカウンタ 7−・・−・−・VRAM 8・・・−・−CP U
FIG. 1 is an explanatory diagram showing one embodiment of the present invention. FIG. 2 is an explanatory diagram showing increment bits of a control register. FIG. 3 is an explanatory diagram showing a virtual screen. Explanation of symbols 1...Control register 2...--
Memory address write register (M A W R) 3.
...-Memory address read register (MARR)
・ 4--...-VRAM data write register 5
−・・−VRAM data read register 6・・−・−・
Address counter 7--VRAM 8--CPU

Claims (1)

【特許請求の範囲】 アドレスレジスタのアドレスに基づいてメ モリをアクセスするメモリアクセスの制御装置において
、 アドレスをインクリメントするインクリメ ントビットを有するインクリメント幅設定手段と、 前記メモリをアクセスするアドレスを有す るアドレス設定手段と、 前記アドレス設定手段の開始アドレスによ ってアクセスを開始し、アクセス終了毎に前記インクリ
メントビットの内容に応じて前記アドレス設定手段のア
ドレスを更新し、この更新されたアドレスによってアク
セスを継続させる制御手段を有することを特徴とするメ
モリアクセスの制御装置。
[Scope of Claims] A memory access control device that accesses a memory based on an address in an address register, comprising: increment width setting means having an increment bit for incrementing an address; and address setting means having an address for accessing the memory. , comprising control means for starting an access based on the start address of the address setting means, updating the address of the address setting means according to the contents of the increment bit every time the access ends, and continuing the access using the updated address. A memory access control device characterized by:
JP12305187A 1987-05-20 1987-05-20 Controller for memory access Pending JPS63288340A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP12305187A JPS63288340A (en) 1987-05-20 1987-05-20 Controller for memory access
US07/563,745 US5319786A (en) 1987-05-20 1990-08-03 Apparatus for controlling a scanning type video display to be divided into plural display regions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12305187A JPS63288340A (en) 1987-05-20 1987-05-20 Controller for memory access

Publications (1)

Publication Number Publication Date
JPS63288340A true JPS63288340A (en) 1988-11-25

Family

ID=14850986

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12305187A Pending JPS63288340A (en) 1987-05-20 1987-05-20 Controller for memory access

Country Status (1)

Country Link
JP (1) JPS63288340A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59220855A (en) * 1983-05-31 1984-12-12 Toshiba Corp Memory access control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59220855A (en) * 1983-05-31 1984-12-12 Toshiba Corp Memory access control system

Similar Documents

Publication Publication Date Title
JP3350043B2 (en) Graphic processing apparatus and graphic processing method
JPH0355832B2 (en)
US5854641A (en) Method and apparatus for display image rotation
JPS63288340A (en) Controller for memory access
USRE38471E1 (en) Method and apparatus for display image rotation
JPS6267632A (en) Method and apparatus for transferring data to display unit from memory
JPS6332390B2 (en)
JPS6330633B2 (en)
JP2761335B2 (en) Screen display device
JPS6095588A (en) Display unit
JPS58136093A (en) Display controller
JPS6134156B2 (en)
JPH02238490A (en) Image processor
JP2829051B2 (en) Character display method
JPS59180584A (en) Screen display controller
JPS63304293A (en) Display memory control circuit
JP2901631B2 (en) Image processing device
JPS6242189A (en) Pattern writing apparatus
JPH0540685A (en) Address decoder
JPS61296386A (en) Memory interface
JPH031675B2 (en)
JPH0216665A (en) Data transfer equipment
JPH04130931A (en) Changing system for memory contents
JPS58146982A (en) Device for editing document
JPS59152487A (en) Display unit