JPH04165440A - Device for operation mode changing by bank switching - Google Patents

Device for operation mode changing by bank switching

Info

Publication number
JPH04165440A
JPH04165440A JP29231790A JP29231790A JPH04165440A JP H04165440 A JPH04165440 A JP H04165440A JP 29231790 A JP29231790 A JP 29231790A JP 29231790 A JP29231790 A JP 29231790A JP H04165440 A JPH04165440 A JP H04165440A
Authority
JP
Japan
Prior art keywords
program
switching
mode
area
operation mode
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
JP29231790A
Other languages
Japanese (ja)
Inventor
Katsutoshi Miyoshi
三好 勝利
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP29231790A priority Critical patent/JPH04165440A/en
Publication of JPH04165440A publication Critical patent/JPH04165440A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make a change between different mode speedily while storing the current state by storing the environment of the current operation mode in a storage area and switching banks to target operation modes. CONSTITUTION:This device has a central processor which has a bank switching function, program data areas 1 and 2 for plural banks corresponding to plural modes respectively, the common data area 3 wherein current operation environment of each register of the central processor is stored prior to the switching between the operation modes, and a common program area 4 where a program for switching the operation modes is assigned. Namely, data required to store environment before the operation mode change is assigned to the common data area 3 and the program which changes the operation modes is assigned to the common program area 4. Consequently, the operation modes are changed and a speedy return from each operation mode to the previous operation mode is made.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、複数の動作モードを持つワードプロセッサ、
パーソナルコンピュータなどの情報処理装置に関し、さ
らに詳しくは、その動作モードの変更をバンク切り替え
によって行うものに関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a word processor with multiple operating modes;
The present invention relates to an information processing apparatus such as a personal computer, and more particularly, to an information processing apparatus whose operating mode is changed by switching banks.

従来の技術 従来の情報処理装置の動作モードの変更には以下のよう
なものがある。
BACKGROUND OF THE INVENTION Examples of changes in the operation mode of conventional information processing apparatuses include the following.

(1)現在の動作モードを終了し、新たに別のモードの
動作を開始して動作モードの変更をするもの。
(1) Change the operating mode by ending the current operating mode and starting a new operating mode.

(2)  メインとなる動作モード上に別の動作モード
の環境を設定して、動作モードを変更するもの。
(2) Change the operating mode by setting the environment for another operating mode on top of the main operating mode.

この方法ではメインと力る動作モードに戻る時は、もう
一方の動作モードを終了し、メインとなる動作モードの
最初の状態に戻る。
In this method, when returning to the main operating mode, the other operating mode is terminated and the main operating mode is returned to its initial state.

発明が解決しようとする課題 しかしながら従来の動作モード変更においては、前項の
(1)では現在の動作モードの終了処理、および新しい
動作モードの開始処理に時間がかかり、また現在の動作
モード金いったん終了させるため、どちらの動作モード
を再開するにも、一つ前の状態への復帰ができない。
Problems to be Solved by the Invention However, in the conventional operation mode change, in (1) of the previous section, it takes time to end the current operation mode and start a new operation mode, Therefore, no matter which operating mode is restarted, it is not possible to return to the previous state.

まだ、前項の(2)では現在の動作モード上に別の動作
モードの環境の設定をするのに時間がかかり、またメイ
ンとなる動作モードに戻るときの終了処理に時間がかか
り、またいったんメインの動作モードに戻ると、メイン
でない方の動作モードの以前の状態への復帰ができない
、という問題があった。
However, in (2) of the previous section, it takes time to set up the environment for another operation mode on top of the current operation mode, and it takes time to complete the termination process when returning to the main operation mode. There is a problem in that when returning to the operating mode of the main operating mode, it is not possible to return to the previous state of the operating mode other than the main operating mode.

本発明は従来のこれらの課題を解決し、異なるモード間
の変更を速やかに、かつ現在の状態を保存しながら行え
るバンク切り替えによる動作モード変更装置を提供する
のを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to solve these conventional problems and provide an operation mode changing device by bank switching that can quickly change between different modes while preserving the current state.

課題を解決するだめの手段 上記の目的を達成するために、本発明のバンク切り換え
による動作モード変更装置は、バンク切り換え機能をも
つ中央処理装置と、複数のモードのそれぞれに対応する
複数のバンクのプログラム・データエリアと、複数の動
作モード間の切り換えに先立って中央処理装置の各レジ
スタにある現在の動作環境を保存する共通デルタエリア
と、複数の動作モードを切り換えるためのプログラムを
割り当てる共通プログラムエリアとを有する構成となっ
てしる。
Means for Solving the Problems In order to achieve the above object, an operating mode changing device by bank switching according to the present invention includes a central processing unit having a bank switching function, and a plurality of banks corresponding to each of a plurality of modes. A program data area, a common delta area that stores the current operating environment in each register of the central processing unit prior to switching between multiple operating modes, and a common program area that allocates programs for switching between multiple operating modes. The configuration has the following.

作  用 本発明は上記構成により、動作モードを切り換えるとき
に、現在の動作モードの環境を保存工9アに保存し、バ
ンクを目的の動作モードに切り換えた後、その動作モー
ドの前の状態の環境を保存エリアから復帰させることで
実現が可能となる。
According to the above configuration, the present invention stores the environment of the current operation mode in the conservator 9A when switching the operation mode, and after switching the bank to the desired operation mode, saves the environment of the current operation mode in the conservator 9a. This can be achieved by restoring the environment from the storage area.

実施例 以下図面に基づいて本発明の一実施例のバンク切り換え
による動作モード変更装置において、第1のモードとし
てWP(ワードプロセッサのオペレーティング・システ
ム、以下、WPと記す。)を、第2のモードとしてDO
3(ディスク・オペレーティング・システム、以下DO
8と記す。)の2つの動作モードを持ち、「画面切換」
というキーによりWPとDO8の動作モードを変更する
装置について説明する。
Embodiment Below, based on the drawings, an operating mode changing device by bank switching according to an embodiment of the present invention has WP (word processor operating system, hereinafter referred to as WP) as a first mode and a second mode. D.O.
3 (Disk Operating System, hereinafter DO)
It is written as 8. ), it has two operating modes, ``screen switching''
A device that changes the operating mode of WP and DO8 using the key will be explained.

第1図は、本発明の一実施例のバンク切り換えによる動
作モード変更装置のメモリーマツプである。WP用プロ
グラム・データエリア1に1dWP用プログラムとWP
用データが割り付けられている。DO5用プログラム・
データエリア2にはDO8用プログラムとDO8用デー
タが割り付けられている。WP用プログラム・データエ
リア1とDO8用プログラム・データエリア2とはバン
ク切り換え(I10ボートへの出力によるメモリ割当の
切り換え)が可能である。wp 、posの共通データ
・エリア3には、動作モード変更のため、変更以前の環
境を保存するために必要なデータもこのエリアに割り当
てられている。WP。
FIG. 1 is a memory map of an operation mode changing device by bank switching according to an embodiment of the present invention. 1dWP program and WP in WP program/data area 1
data has been allocated. Program for DO5
A DO8 program and DO8 data are allocated to data area 2. Bank switching is possible between the WP program/data area 1 and the DO8 program/data area 2 (switching of memory allocation by outputting to the I10 boat). In the common data area 3 for wp and pos, data necessary for preserving the environment before the change is also allocated in order to change the operation mode. W.P.

DO3の共通プログラム・エリア4には動作モードを変
更するプログラムが割り当てられている。
A program for changing the operating mode is assigned to the common program area 4 of DO3.

このようなメモリーマツプを持ち、バンク切り換え機能
をもつ中央処理装置(以下CPUと略称、図示せず)に
より制御されている。
It has such a memory map and is controlled by a central processing unit (hereinafter abbreviated as CPU, not shown) having a bank switching function.

以上のように構成されたバンク切り換えによる動作モー
ド変更装置について、以下、その動作を第2図のフロー
チャートを併用して説明する。このルーチンは、WP 
、DO3の共通プログラム・エリア4に割り当てられて
いて、WPまたはDosのキー人力ルーチンが、キーの
取シ込み要求をした場合、エリア4上で動作する。
The operation of the operation mode changing device by bank switching configured as described above will be described below with reference to the flowchart of FIG. 2. This routine
, DO3 is assigned to the common program area 4, and when a key manual routine of WP or Dos makes a key capture request, it operates on area 4.

ステップ5はキー人力があるかどうかを判断するステッ
プであり、キーバッファにキーコードが入っているかど
うかを調べ、入っていればキーがあると判断し、入って
いなければキーなしと判断する。キーなしの場合はステ
ップ6でキーなしであることをキーの取り込み要求を行
ったWPまたはDO8のキー人力ルーチンに知らせて処
理を終わる。キーありの場合ステップ7にいく。ステッ
プ7では、キーパソファからキーコードを取り出し、そ
れが1画面切換」キーであるかどうかを判断する。「画
面切換」キーでない場合はステップ8でキーコードをキ
ーの取り込み要求を行ったWPまたはDOSのキー人力
ルーチンにリターンする。「画面切換」キーの場合はス
テップ9,10゜11で、動作モード変更の処理を行う
Step 5 is a step for determining whether the key code is present or not, and it is checked whether the key code is contained in the key buffer. If it is, it is determined that there is a key, and if not, it is determined that there is no key. If there is no key, in step 6, the key manual routine of the WP or DO8 that made the key capture request is notified of the absence of the key, and the process ends. If there is a key, go to step 7. In step 7, the key code is taken out from the keypad sofa and it is determined whether it is the "1 screen change" key. If it is not the "screen change" key, in step 8 the key code is returned to the WP or DOS key manual routine that requested the key capture. In the case of the "screen change" key, processing for changing the operation mode is performed in steps 9, 10 and 11.

ステップ9では現在の動作モードの環境、すなわち、W
Pからキーの取υ込み要求があったときはwpの環境、
DOSからキーの取シ込み要求があったときはDOSの
環境を共通データエリア3に保存する。このとき、保存
する環境とは、CPUの各レジスタを指す。その他の環
境については、WPエリア1またはDOSエリア2に保
存されているため、特に保存する必要はない。
In step 9, the current operating mode environment, i.e., W
When there is a request to retrieve the key from P, the wp environment,
When a key import request is received from DOS, the DOS environment is saved in the common data area 3. At this time, the environment to be saved refers to each register of the CPU. Other environments are stored in WP area 1 or DOS area 2, so there is no need to save them.

ステップ10ではバンク切り換えを行う。現在の動作モ
ードがWPの場合はバンクIwp用プログラム・データ
エリア1からDO8用プログラム・データエリア2に、
現在の動作モードがDOSの場合はDO8用プログラム
・データエリア2がらWP用プログラム・データエリア
1に切り換える。ステップ11では以前の環境への復帰
処理を行う。DOSに切り換える場合には以前のDOS
の環境への復帰を、WPに切り換える場合には以前のW
Pへの環境の復帰を共通データエリア3がらのレジスタ
の復帰により行なう。
In step 10, bank switching is performed. If the current operation mode is WP, from bank Iwp program/data area 1 to DO8 program/data area 2,
If the current operating mode is DOS, the DO8 program/data area 2 is switched to the WP program/data area 1. In step 11, a return process to the previous environment is performed. When switching to DOS, the previous DOS
When switching to WP, the previous W
The environment is restored to P by restoring the registers from the common data area 3.

なお、以上は2つのモード間の切り換えで説明したが、
3つ以上の七−ドの場合でも、追加されたモード用のプ
ログラム・データエリアを用意すればよいものである。
The above explanation was based on switching between two modes, but
Even in the case of three or more modes, it is sufficient to prepare a program/data area for the added mode.

発明の効果 以上述べたように、本発明はプログラム・データエリア
のバンク切り換えによって動作モードを切り換えるため
、その他の処理としてはレジスタの保存と復帰を行うだ
けでよく、迅速に動作モードの変更が行え、かつ、各動
作モードから以前に動作したモードに速やかに戻れる優
れたバンク切り換えによる動作モード変更装置を提供す
るものである。
Effects of the Invention As described above, since the present invention switches the operating mode by switching the bank of the program/data area, the only other processing required is saving and restoring registers, and the operating mode can be changed quickly. In addition, it is an object of the present invention to provide an operation mode changing device using excellent bank switching, which can quickly return from each operation mode to the previously operated mode.

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

第1図は本発明の一実施例のバンク切り換えによる動作
モード変更装置のメモリーマツプを示す模式図、第2図
は同じく動作モードを変更するプログラムのフローチャ
ートである。 1・・・・・WP(ワードプロセッサのオペレーティン
グ・システム)用プログラム・データエリア、2・・・
・・・DOS(ディスク・オペレーティング・システム
)用プログラム・データエリア、3・・・・・・WP、
DOSの共通データ・エリア、4・−・・・・WP。 DoSの共通プログラム・エリア。 代理人の氏名 弁理士 小鍜治  明 ほか2名第1図 /               Z
FIG. 1 is a schematic diagram showing a memory map of an operation mode changing device by bank switching according to an embodiment of the present invention, and FIG. 2 is a flowchart of a program for changing the operation mode. 1...Program data area for WP (word processor operating system), 2...
...Program data area for DOS (disk operating system), 3...WP,
DOS common data area, 4...WP. DoS common program area. Name of agent: Patent attorney Akira Okaji and two others Figure 1/Z

Claims (1)

【特許請求の範囲】 バンク切り換え機能をもつ中央処理装置と、複数のモー
ドのそれぞれに対応する複数のバンクのプログラム・デ
ータエリアと、 複数の動作モード間の切り換えに先立って前記中央処理
装置の各レジスタにある現在の動作環境を保存する共通
データエリアと、 複数の動作モードを切り換えるためのプログラムを割り
当てる共通プログラムエリアとを有し、第1のモードか
ら第2のモードへのモード切り換えの際は前記共通プロ
グラムエリアの動作モードを切り換えるためのプログラ
ムに基づき、まず前記中央処理装置が、その各レジスタ
にある現在の第1のモードの動作環境を前記共通データ
エリアに保存した後、前記複数のプログラム・データエ
リアのうちの第1のモードのプログラムとデータを収容
するエリアから第2のモードのプログラムとデータを収
容するエリアへバンク切り換えを行い、かつ前記共通デ
ータエリアから第2のモードの以前の動作環境を取り出
して中央処理装置の各レジスタに復帰させるように構成
したバンク切り換えによる動作モード変更装置。
[Scope of Claims] A central processing unit having a bank switching function, a plurality of program/data areas of a plurality of banks corresponding to each of a plurality of modes, and a central processing unit having a bank switching function, a program/data area of a plurality of banks corresponding to each of a plurality of modes, and a central processing unit having a bank switching function. It has a common data area that stores the current operating environment in the register, and a common program area that allocates programs for switching between multiple operating modes.When switching from the first mode to the second mode, Based on the program for switching the operating mode of the common program area, the central processing unit first stores the current first mode operating environment in each register in the common data area, and then switches the plurality of programs.・Bank switching is performed from the area of the data area that accommodates the program and data of the first mode to the area that accommodates the program and data of the second mode, and An operating mode changing device by bank switching configured to take out an operating environment and restore it to each register of a central processing unit.
JP29231790A 1990-10-29 1990-10-29 Device for operation mode changing by bank switching Pending JPH04165440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29231790A JPH04165440A (en) 1990-10-29 1990-10-29 Device for operation mode changing by bank switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29231790A JPH04165440A (en) 1990-10-29 1990-10-29 Device for operation mode changing by bank switching

Publications (1)

Publication Number Publication Date
JPH04165440A true JPH04165440A (en) 1992-06-11

Family

ID=17780212

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29231790A Pending JPH04165440A (en) 1990-10-29 1990-10-29 Device for operation mode changing by bank switching

Country Status (1)

Country Link
JP (1) JPH04165440A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009269458A (en) * 2008-05-07 2009-11-19 Nsk Ltd Electric power steering device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009269458A (en) * 2008-05-07 2009-11-19 Nsk Ltd Electric power steering device

Similar Documents

Publication Publication Date Title
JP2002073378A (en) Method and device for obtaining dump of computer system
US6393498B1 (en) System for reducing processor workloads with memory remapping techniques
JPH04165440A (en) Device for operation mode changing by bank switching
JP2701739B2 (en) Processor switching method
JPH0554009A (en) Program load system
US5933856A (en) System and method for processing of memory data and communication system comprising such system
JPS6240736B2 (en)
JPH06161781A (en) Method and processor for information processing
JPH05257807A (en) Cache memory controller
JPH10320253A (en) Backup system and recording medium
JPH11119813A (en) Controller
JP2001236241A (en) System for controlling memory duplex
JPS63121950A (en) Management and control system for cache memory
JPH07230358A (en) Multiplexed volume device
JPH02161514A (en) Control processing system for idle storage block
JPH0216652A (en) Missing page processing system
JP2002259209A (en) Arithmetic processing system
JPH0481934A (en) Information processor
JPS6222149A (en) Process changeover system
JPH0259948A (en) Initial program loading system
JPS61131049A (en) System for preserving contents in storage device from being swept out
JPH10177493A (en) Graphic processing system
JPH064472A (en) Input/output priority order control system
JPH09237224A (en) Disk array device
JPH11202906A (en) Process control system and data gathering device, and its control method and storage medium