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

JP2616419B2 - Information processing device - Google Patents

Information processing device

Info

Publication number
JP2616419B2
JP2616419B2 JP32968993A JP32968993A JP2616419B2 JP 2616419 B2 JP2616419 B2 JP 2616419B2 JP 32968993 A JP32968993 A JP 32968993A JP 32968993 A JP32968993 A JP 32968993A JP 2616419 B2 JP2616419 B2 JP 2616419B2
Authority
JP
Japan
Prior art keywords
memory
memory bank
switching
area
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP32968993A
Other languages
Japanese (ja)
Other versions
JPH07160576A (en
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.)
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 JP32968993A priority Critical patent/JP2616419B2/en
Publication of JPH07160576A publication Critical patent/JPH07160576A/en
Application granted granted Critical
Publication of JP2616419B2 publication Critical patent/JP2616419B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は情報処理装置に関し、特
にメモリバンク領域の参照を伴う処理を行うプログラム
の実行中における参照領域の切替えに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus, and more particularly to switching of a reference area during execution of a program for performing a process involving reference to a memory bank area.

【0002】[0002]

【従来の技術】近年のソフトウェアの増大化に伴い、プ
ログラムのサイズがCPUが通常にアクセスできるメモ
リ空間を越えてしまうような場合が多くなってきた。こ
のような場合、拡張メモリと呼ばれる非常駐部のメモリ
にプログラムコードを格納し、メモリ空間を切替えなが
らプログラムを実行することが通常行われる。その場
合、拡張メモリ内のメモリバンク領域の参照の切替えを
いかに行うかが重要である。 従来の情報処理装置にお
けるメモリバンク領域の参照の切替えについて図面を用
いて説明する。
2. Description of the Related Art With an increase in software in recent years, the size of a program often exceeds a memory space normally accessible to a CPU. In such a case, the program code is usually stored in a non-resident memory called an extended memory, and the program is executed while switching the memory space. In that case, it is important how to switch the reference of the memory bank area in the extended memory. Switching of reference of a memory bank area in a conventional information processing apparatus will be described with reference to the drawings.

【0003】図2(a)は従来の情報処理装置に含まれ
るメモリの構成例を示すメモリマップである。図におい
て、従来の情報処理装置に含まれるメモリは、常駐部
(通常部)20と拡張部(非常駐部)10とから構成さ
れている。そして、常駐部20内にプログラム1及び2
並びにデータ1が格納され、拡張部10内にプログラム
3及び4並びにデータ2が格納されている。なお、常駐
部20には図示せぬ空き領域が存在するものとする。
FIG. 2A is a memory map showing a configuration example of a memory included in a conventional information processing apparatus. In FIG. 1, a memory included in a conventional information processing apparatus includes a resident unit (normal unit) 20 and an extension unit (non-resident unit) 10. Then, programs 1 and 2 are stored in the resident unit 20.
In addition, programs 3 and 4 and data 2 are stored in the extension unit 10. It is assumed that a vacant area (not shown) exists in the resident unit 20.

【0004】この情報処理装置のCPUのメモリアクセ
ス方式に、通常モードと拡張モードとがあるものとす
る。そして、通常モードでは、プログラム1及び2並び
にデータ1が常駐部20に存在することがCPUに見
え、拡張モードでは、プログラム1〜4並びにデータ1
及び2のうちのいずれか3つが常駐部20に存在するこ
とがCPUに見えるものとする。
[0004] It is assumed that there are a normal mode and an extended mode in the memory access method of the CPU of the information processing apparatus. Then, in the normal mode, the CPU can see that the programs 1 and 2 and the data 1 exist in the resident unit 20, and in the extended mode, the programs 1 to 4 and the data 1
It is assumed that the CPU sees that any three of the two exist in the resident unit 20.

【0005】ただし、プログラムの設定変更は、通常モ
ード時しか行うことができないものとする。したがっ
て、拡張モードにおいて参照するメモリバンク領域の切
替えを行うときは一旦通常モードに戻す必要があり、か
かる場合にはメモリが一時的に参照できなくなる。
However, it is assumed that the program setting can be changed only in the normal mode. Therefore, when switching the memory bank area to be referred to in the extended mode, it is necessary to temporarily return to the normal mode, and in such a case, the memory cannot be temporarily referred to.

【0006】かかる構成のメモリを含む情報処理装置の
CPUがプログラム3を実行し、そのプログラム3がデ
ータ1の参照状態からデータ2の参照状態に遷移する場
合の動作を説明する。
An operation in the case where the CPU of the information processing apparatus including the memory having such a configuration executes the program 3 and the program 3 transitions from the data 1 reference state to the data 2 reference state will be described.

【0007】プログラム3を実行する場合には、プログ
ラム3を拡張部10から常駐部20に移動させなければ
ならない。さらに、参照すべきデータ1も拡張部10か
ら常駐部20に移動させなければならない。この移動後
の状態が、同図(b)の状態Aとして示されている。そ
して、データ1の参照状態(状態A)からデータ2の参
照状態に遷移した後のの状態が、同図(b)の状態Bと
して示されている。
When the program 3 is executed, the program 3 must be moved from the extension unit 10 to the resident unit 20. Further, the data 1 to be referred must also be moved from the extension unit 10 to the resident unit 20. The state after this movement is shown as state A in FIG. The state after the transition from the reference state of data 1 (state A) to the reference state of data 2 is shown as state B in FIG.

【0008】ここで、同図(b)の状態Aから状態Bへ
の遷移は、プログラム3においてメモリのプログラム設
定を変更すれば行えるが、上述のようにプログラムの設
定変更は通常モード時しか行うことができない。そこ
で、一旦通常モードに戻すと、同図(c)に示されてい
るように、プログラムの実行点Yはそのままにして状態
Aから通常モードに変化するため、プログラム2が突然
動作し暴走が起きる。
Here, the transition from the state A to the state B in FIG. 1B can be performed by changing the program setting of the memory in the program 3, but the setting change of the program is performed only in the normal mode as described above. Can not do. Therefore, once the mode is returned to the normal mode, the program 2 changes from the state A to the normal mode while the execution point Y of the program remains unchanged, as shown in FIG. .

【0009】この暴走を防止するために、従来の情報処
理装置では、プログラム設定変更部(メモリバンク切替
え処理部)を必ずプログラム1(常駐部)においてい
た。この場合は、以下の手順で状態Aから状態Bへの遷
移が行われる。
In order to prevent this runaway, in the conventional information processing apparatus, the program setting change section (memory bank switching processing section) is always provided in the program 1 (resident section). In this case, the transition from the state A to the state B is performed in the following procedure.

【0010】すなわち、図3に示されているように、ま
ず拡張部10から常駐部20に移動させた後プログラム
3を実行する。このとき、常駐部20にはデータ1並び
にプログラム1及び2が格納された状態であり、プログ
ラムの実行点はYである(ステップ21)。
That is, as shown in FIG. 3, the program 3 is first moved from the extension unit 10 to the resident unit 20, and then the program 3 is executed. At this time, data 1 and programs 1 and 2 are stored in the resident unit 20, and the execution point of the program is Y (step 21).

【0011】プログラム3の実行中にメモリバンクの参
照領域の切替えを行う場合には、プログラム1におかれ
ているメモリバンク切替え処理部(サブルーチン)の呼
出し31が行われ、実行点Yが移動する(ステップ2
2)。
When the reference area of the memory bank is switched during the execution of the program 3, a call 31 of the memory bank switching processing section (subroutine) included in the program 1 is performed, and the execution point Y moves. (Step 2
2).

【0012】ここで、メモリバンクの参照領域の切替え
32が行われると、一旦通常モードとなり(ステップ2
3)、メモリバンク切替え処理部の動作によってデータ
1がデータ2に切り替えられる(ステップ24)。
Here, when the switching 32 of the reference area of the memory bank is performed, the normal mode is set once (step 2).
3) Data 1 is switched to data 2 by the operation of the memory bank switching processing unit (step 24).

【0013】メモリバンク切替え処理部の動作からリタ
ーン33がなされると、プログラムの実行点Yがもとに
戻る(ステップ25)。
When a return 33 is made from the operation of the memory bank switching processing section, the program execution point Y returns to the original point (step 25).

【0014】以上の動作によって、メモリバンクの参照
領域の切替えが行われるが、上記のメモリバンク切替え
処理部の呼出し31の方法が問題となる。すなわち、一
般的にプログラム1とプログラム3とはリンクできない
ため、プログラム3はプログラム1中のどこにプログラ
ム1がおかれているのかがわからない。したがって、こ
れを解決するため、以下の2つの方法による特別な呼出
し手順のいずれかによってメモリバンク切替え処理部の
呼出し31が行われていた。
By the above operation, the reference area of the memory bank is switched, but the method of calling 31 of the memory bank switching processing unit becomes a problem. That is, since the program 1 and the program 3 cannot be generally linked, it is not known where the program 1 is located in the program 1. Therefore, in order to solve this, the calling 31 of the memory bank switching processing unit has been performed by one of the special calling procedures by the following two methods.

【0015】第1の方法は、ソフトウェア割込みによる
方法である。すなわち、プログラム1が割込み先アドレ
スにメモリバンク切替え処理部のアドレスを記述してお
き、これをプログラム3が参照する方法である。
The first method is a method using a software interrupt. That is, this is a method in which the program 1 describes the address of the memory bank switching processing unit in the interrupt destination address, and the program 3 refers to this.

【0016】第2の方法は、メモリバンク切替え処理部
のアドレスを固定にし、プログラム1は必ずそのアドレ
スにメモリバンク切替え関数の先頭番地に配置し、その
番地をプログラム3が呼出す方法である。
The second method is a method in which the address of the memory bank switching processing section is fixed, the program 1 is always arranged at that address at the start address of the memory bank switching function, and the address is called by the program 3.

【0017】[0017]

【発明が解決しようとする課題】上述した2つの方法に
よれば、メモリバンク切替え処理部を呼出すことができ
る。しかし、第1の方法によるとソフトウェア割込みベ
クタ資源を消費するという欠点があり、第2の方法によ
ると常駐部のマッピングの変更の際にその影響が拡張部
に波及するという欠点があった。
According to the above two methods, the memory bank switching processing unit can be called. However, according to the first method, there is a disadvantage that software interrupt vector resources are consumed, and according to the second method, when the mapping of the resident unit is changed, the influence is extended to the extension unit.

【0018】本発明は上述した従来の欠点を解決するた
めになされたものであり、その目的は特別な呼出し手順
を行わずにメモリバンクの参照領域の切替えを行うこと
のできる情報処理装置を提供することである。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned conventional disadvantages, and an object of the present invention is to provide an information processing apparatus capable of switching a reference area of a memory bank without performing a special calling procedure. It is to be.

【0019】[0019]

【課題を解決するための手段】本発明による情報処理装
置は、常駐メモリと、第1及び第2のメモリバンク領域
を含む拡張メモリと、前記常駐メモリ内において実行さ
れ前記第1及び第2のメモリバンク領域の参照を伴う処
理を行うプログラムとを有する情報処理装置であって、
前記拡張メモリに保持され前記第1及び第2のメモリバ
ンク領域のうち前記プログラムによって参照される参照
領域の切替えを行う切替え手段と、前記拡張メモリに保
持され前記参照領域の切替えの際に前記常駐メモリの所
定領域を獲得する獲得手段と、前記拡張メモリに保持さ
れ前記獲得手段が獲得した獲得領域に前記切替え手段を
コピーするコピー手段とを有し、この領域にコピーされ
た切替え手段により前記参照領域の切替えを行うことを
特徴とする。
An information processing apparatus according to the present invention includes a resident memory, an extended memory including first and second memory bank areas, and the first and second resident memories executed in the resident memory. An information processing apparatus having a program for performing processing involving reference to a memory bank area,
Switching means for switching a reference area, which is held in the extended memory and referred to by the program, of the first and second memory bank areas, and which is retained in the extended memory and is resident when the reference area is switched Acquiring means for acquiring a predetermined area of the memory; and copying means for copying the switching means to the acquired area held by the extended memory and acquired by the acquiring means, wherein the switching means copied to this area makes the reference. It is characterized in that the area is switched.

【0020】[0020]

【実施例】次に、本発明について図面を参照して説明す
る。
Next, the present invention will be described with reference to the drawings.

【0021】図1は本発明による情報処理装置の一実施
例の構成を示すブロック図であり、図2と同等部分は同
一符号により示されている。図において、本発明の一実
施例による情報処理装置は、データ部とプログラム部と
が格納された拡張部10を含んで構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of an information processing apparatus according to the present invention, and portions equivalent to those in FIG. 2 are denoted by the same reference numerals. Referring to FIG. 1, an information processing apparatus according to an embodiment of the present invention includes an extension unit 10 in which a data unit and a program unit are stored.

【0022】拡張部10のデータ部は、メモリバンク領
域7及び8を含んで構成されている。また、拡張部10
のプログラム部は、参照するメモリバンク領域の切替え
を伴う処理を行うアプリケーションプログラム3と、メ
モリバンクの切替え処理を行うメモリバンク切替え受付
処理部100と、この処理部100内に含まれるメモリ
バンク切替え用コード本体200と、常駐メモリ20の
所定領域40を獲得する常駐メモリ獲得部300と、こ
のメモリ獲得部300が獲得した領域40にメモリバン
ク切替え用コード本体200をコピーするメモリコピー
実行部400とを含んで構成されている。なお、メモリ
バンク切替え受付処理部100、常駐メモリ獲得部30
0及びメモリコピー実行部400は、サブルーチンの形
態であるものとする。
The data section of the extension section 10 includes memory bank areas 7 and 8. Also, the extension unit 10
The program section includes an application program 3 for performing processing involving switching of a memory bank area to be referred to, a memory bank switching reception processing section 100 for performing processing for switching memory banks, and a memory bank switching processing section included in the processing section 100. A code body 200, a resident memory acquisition unit 300 for acquiring a predetermined area 40 of the resident memory 20, and a memory copy execution unit 400 for copying the memory bank switching code body 200 to the area 40 acquired by the memory acquisition unit 300. It is comprised including. Note that the memory bank switching reception processing unit 100 and the resident memory acquisition unit 30
0 and the memory copy execution unit 400 are in the form of a subroutine.

【0023】かかる構成からなる情報処理装置の拡張モ
ード動作時においてアプリケーションプログラム3が常
駐部内で実行中に、参照しているメモリバンク領域7を
別のメモリバンク領域8に切替える場合を考える。
Consider a case in which the memory bank area 7 being referred to is switched to another memory bank area 8 while the application program 3 is executing in the resident unit in the extended mode operation of the information processing apparatus having such a configuration.

【0024】この場合、プログラム3は参照するメモリ
バンク領域の切替えを行うために、拡張部内のメモリバ
ンク切替え受付処理部100を呼出す()。メモリバ
ンク切替え受付処理部100はこの要求の受付後、最初
に常駐メモリ獲得部300を呼出し()、常駐メモリ
20内の必要な領域40を獲得する()。
In this case, the program 3 calls the memory bank switching reception processing unit 100 in the extension unit to switch the memory bank area to be referred to (). After receiving this request, the memory bank switching reception processing unit 100 first calls the resident memory acquisition unit 300 (), and acquires the necessary area 40 in the resident memory 20 ().

【0025】常駐メモリ20内の領域40の獲得後のリ
ターン()を受けたメモリバンク切替え受付処理部1
00は、メモリコピー実行部400を呼出し()、自
分自身が持っているメモリバンク切替え用コード本体2
00をその領域4にコピーする()。このコピー後の
リターン()を受けたメモリバンク切替え受付処理部
100は、そのコピーされたメモリバンク切替え用コー
ド本体200を呼出す()。
Memory bank switching reception processing unit 1 receiving return () after acquisition of area 40 in resident memory 20
00 calls the memory copy execution unit 400 (), and owns the memory bank switching code body 2
00 is copied to the area 4 (). Upon receiving the return () after the copy, the memory bank switching reception processing unit 100 calls the copied memory bank switching code body 200 ().

【0026】呼出されたメモリバンク切替え用コード本
体200は、常駐メモリ20上で実行され、メモリバン
ク領域7をメモリバンク領域8に切替える。この切替え
実行後、メモリバンク切替え用コード本体200は、メ
モリバンク切替え受付処理部100にリターン()を
行う。
The called memory bank switching code body 200 is executed on the resident memory 20 and switches the memory bank area 7 to the memory bank area 8. After the execution of the switching, the memory bank switching code body 200 returns () to the memory bank switching reception processing unit 100.

【0027】最後に、メモリバンク切替え受付処理部1
00は獲得した領域40を解放し、プログラム3にリタ
ーン([10])を行う。これにより、メモリバンク領
域の切替え処理が終了となる。
Finally, the memory bank switching reception processing unit 1
00 releases the acquired area 40, and returns ([10]) to the program 3. Thus, the switching process of the memory bank area is completed.

【0028】要するに、本発明では拡張部から常駐部内
の領域を獲得し、その獲得した領域にメモリバンク切替
え用のコードをコピーして実行しているのであり、なん
ら特別な呼出し手順を用いることなく、メモリバンクの
切替えを行うことができるのである。これにより、ソフ
トウェア割込みベクタ資源を消費せず、また常駐部のマ
ッピング変更の影響が拡張部に波及することがなくなる
のである。
In short, in the present invention, the area in the resident section is acquired from the extension section, and the code for switching the memory bank is copied and executed in the acquired area, without using any special calling procedure. Thus, the memory bank can be switched. As a result, the software interrupt vector resources are not consumed, and the effect of the change in the mapping of the resident part does not spread to the extension part.

【0029】[0029]

【発明の効果】以上説明したように本発明は、拡張部か
ら常駐部内の領域を獲得し、その獲得した領域にメモリ
バンク切替え用のコードをコピーして実行することによ
り、なんら特別な呼出し手順を用いることなく、メモリ
バンクの切替えを行うことができるという効果がある。
As described above, the present invention obtains an area in the resident section from the extension section, copies the code for switching the memory bank to the obtained area, and executes the code. There is an effect that the memory bank can be switched without using the memory bank.

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

【図1】本発明の実施例による情報処理装置の主要部の
構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a main part of an information processing apparatus according to an embodiment of the present invention.

【図2】(a)は従来の情報処理装置に含まれるメモリ
の構成例を示すメモリマップ、(b)はデータ1の参照
状態からデータ2の参照状態に遷移する様子を示すメモ
リマップ、(c)はメモリのプログラム設定を変更する
場合の状態遷移の様子を示すメモリマップである。
FIG. 2A is a memory map showing a configuration example of a memory included in a conventional information processing apparatus, FIG. 2B is a memory map showing a transition from a reference state of data 1 to a reference state of data 2, c) is a memory map showing the state transition when changing the program setting of the memory.

【図3】従来の情報処理装置におけるメモリバンク領域
の切替えを行う場合におけるメモリの状態遷移を示す概
念図である。
FIG. 3 is a conceptual diagram showing a state transition of a memory when a memory bank area is switched in a conventional information processing apparatus.

【符号の説明】[Explanation of symbols]

3 アプリケーションプログラム 7、8 メモリバンク領域 10 拡張部 20 常駐部 40 領域 100 メモリバンク切替え受付処理部 200 メモリバンク切替え用コード本体 300 常駐メモリ獲得部 400 メモリコピー実行部 Reference Signs List 3 application program 7, 8 memory bank area 10 extension section 20 resident section 40 area 100 memory bank switching reception processing section 200 memory bank switching code body 300 resident memory acquisition section 400 memory copy execution section

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 常駐メモリと、第1及び第2のメモリバ
ンク領域を含む拡張メモリと、前記常駐メモリ内におい
て実行され前記第1及び第2のメモリバンク領域の参照
を伴う処理を行うプログラムとを有する情報処理装置で
あって、前記拡張メモリに保持され前記第1及び第2の
メモリバンク領域のうち前記プログラムによって参照さ
れる参照領域の切替えを行う切替え手段と、前記拡張メ
モリに保持され前記参照領域の切替えの際に前記常駐メ
モリの所定領域を獲得する獲得手段と、前記拡張メモリ
に保持され前記獲得手段が獲得した獲得領域に前記切替
え手段をコピーするコピー手段とを有し、この領域にコ
ピーされた切替え手段により前記参照領域の切替えを行
うことを特徴とする情報処理装置。
1. A resident memory, an extended memory including first and second memory bank areas, and a program executed in the resident memory and performing processing involving reference to the first and second memory bank areas. A switching means for switching a reference area of the first and second memory bank areas that is referred to by the program and held in the extended memory; and An acquisition means for acquiring a predetermined area of the resident memory when the reference area is switched; and a copy means for copying the switching means to an acquisition area held in the extended memory and acquired by the acquisition means. An information processing apparatus for performing switching of the reference area by switching means copied in the information processing apparatus.
【請求項2】 前記コピーされた切替え手段による参照
領域の切替え後に前記獲得領域の解放を行う手段を更に
有することを特徴とする請求項1記載の情報処理装置。
2. The information processing apparatus according to claim 1, further comprising: means for releasing the acquired area after switching the reference area by the copied switching means.
JP32968993A 1993-12-01 1993-12-01 Information processing device Expired - Lifetime JP2616419B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32968993A JP2616419B2 (en) 1993-12-01 1993-12-01 Information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32968993A JP2616419B2 (en) 1993-12-01 1993-12-01 Information processing device

Publications (2)

Publication Number Publication Date
JPH07160576A JPH07160576A (en) 1995-06-23
JP2616419B2 true JP2616419B2 (en) 1997-06-04

Family

ID=18224176

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32968993A Expired - Lifetime JP2616419B2 (en) 1993-12-01 1993-12-01 Information processing device

Country Status (1)

Country Link
JP (1) JP2616419B2 (en)

Also Published As

Publication number Publication date
JPH07160576A (en) 1995-06-23

Similar Documents

Publication Publication Date Title
JPH02272652A (en) Method for expanding memory
JP3699806B2 (en) Interrupt controller and control system
JPH05216614A (en) Method and apparatus for providing shared off-screen pixel storage
JPH02267634A (en) Interrupt system
CN112596845A (en) Page switching method, device, server and storage medium
CN100419688C (en) Interrupt control device and control method
JPH02153434A (en) Data processing system
CN114756503B (en) Data processing method, system on chip and electronic device
JP2616419B2 (en) Information processing device
JP3202351B2 (en) Task switching processing method
JPH05113887A (en) Computer system
JP3616649B2 (en) Method and apparatus for enabling address lines to access upper memory areas
KR100650574B1 (en) Symbol Table Restoration Method for Redundant Devices Using PC-I
JPH10312296A (en) Process switch control system
JP2591818B2 (en) Auxiliary function selection control method
JPH10143376A (en) Information processing device
JPH05265846A (en) Memory management method
JPH07262004A (en) Processor
JPH02294858A (en) Cache memory
JPH0580993A (en) Job execution order control method
JPH0486919A (en) Microprogram controller
JPH01128133A (en) Microprogram controller
JPH0640312B2 (en) Program interface method
JPH11296263A (en) Processor initialization controller
JPH0566950A (en) Interruption mask system for operating system