JPH01297732A - Interrupt control method - Google Patents

Interrupt control method

Info

Publication number
JPH01297732A
JPH01297732A JP63129052A JP12905288A JPH01297732A JP H01297732 A JPH01297732 A JP H01297732A JP 63129052 A JP63129052 A JP 63129052A JP 12905288 A JP12905288 A JP 12905288A JP H01297732 A JPH01297732 A JP H01297732A
Authority
JP
Japan
Prior art keywords
bank
program
memory
interrupt
processing 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.)
Pending
Application number
JP63129052A
Other languages
Japanese (ja)
Inventor
Yutaka Kaneko
豊 金子
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP63129052A priority Critical patent/JPH01297732A/en
Priority to US07/313,677 priority patent/US5146581A/en
Priority to DE68924719T priority patent/DE68924719T2/en
Priority to EP89103296A priority patent/EP0330226B1/en
Priority to KR1019890002294A priority patent/KR920006614B1/en
Priority to CN 89101867 priority patent/CN1015495B/en
Publication of JPH01297732A publication Critical patent/JPH01297732A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To permit an interruption processing program stored in a prescribed bank to execute immediately without using none of common memory areas other than a memory bank when interruption is generated while executing a processing program in an arbitrary bank by storing a bank switching control program in the prescribed area of the memory bank. CONSTITUTION:The interruption processing program 13 for specified interruption is stored in the addresses (X-W) of the memory bank 3. When the specific interruption is generated while executing the processing program of the memory bank 1, an interruption control program starting from an address X in the same bank is executed first, and a jump destination bank number BANK No.3 and a jump destination address Y are saved at an AL register and a BX register, respectively. A bank switching manager, when its own bank number No.1 being saved at the AL register after being saved, for example, at an AH register as a return bank number, jumps to a second program by deciding the jump destination bank No. saved at the AL register.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 本発明は、複数のメモリバンクより成るプログラムメモ
リを備えたシステムにおいて、割込みが発生したときの
割込制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (A) Field of Industrial Application The present invention relates to an interrupt control method when an interrupt occurs in a system equipped with a program memory consisting of a plurality of memory banks.

(ロ)従来の技術 特開昭57−30050号公報に開示きれているように
、複数のメモリバンク内に処理プログラムを記憶するシ
ステムにおいては、従来、メモリバンク外の共通メモリ
エリアに、割込処理プログラム、もしくは、割込処理プ
ログラムが格納されているメモリバンクを指定するため
の割込用バンク制御プログラムを記憶し、該プログラム
に基づき、割込みが発生したときの制御を行っていた。
(b) Conventional technology As disclosed in Japanese Patent Application Laid-open No. 57-30050, in a system in which processing programs are stored in multiple memory banks, interrupts are conventionally stored in a common memory area outside the memory banks. A processing program or an interrupt bank control program for specifying a memory bank in which an interrupt processing program is stored is stored, and control when an interrupt occurs is performed based on the program.

(ハ)発明が解決しようとする課題 システム上の都合によって、メモリバンク外に割込処理
関連のプログラムを記憶するための共通メモリエリアを
とれない場合は、上記公報に開示された割込制御方式を
用いることができず、このため、各メモリバンクに、同
一の割込処理プログラムを記憶せざるを得なかった。従
って、処理プログラムを記憶するためのエリアが狭くな
ってしまうという課題があった。
(c) Problems to be Solved by the Invention If a common memory area for storing programs related to interrupt processing cannot be provided outside the memory bank due to system circumstances, the interrupt control method disclosed in the above publication may be used. Therefore, the same interrupt processing program had to be stored in each memory bank. Therefore, there is a problem that the area for storing the processing program becomes narrow.

(ニ)課題を解決するための手段 本発明の第1の方式は、処理プログラムを記憶する複数
のメモリバンクを備え、該複数のメモリバンクの特定の
同一アドレスエリアにバンク切替制御プログラムを記憶
すると共に、前記複数のメモリバンクの所定のメモリ/
ベックに割込処理プログラムを記憶し、且つ、前記所定
以外のメモリバンクに、前記所定のメモリバンクを示す
飛先バンク情報及び/又は前記割込処理プログラムのア
ドレスを記憶手段に格納する割込制御プログラムを記憶
し、前記所定以外のメモリバンク内の処理プログラムを
実行している際、割込みが発生したときは、前記割込制
御プログラム実行後前記バンク切替制御プログラムに移
り該プログラムで、自己のメモリバンクを示す情報をリ
ターンバンク情報としてセーブし、前記所定のメモリバ
ンクへの切替を行い、切替後前記記憶手段の内容に基づ
き前記割込処理プログラムを呼出して実行し、実行後前
記リターンバンク情報のメモリバンクへの切替を行い、
切替後前記処理プログラムへ復帰するという割込制御方
式により、上記問題点を解決するものである。
(d) Means for Solving the Problems The first method of the present invention includes a plurality of memory banks for storing processing programs, and stores a bank switching control program in a specific same address area of the plurality of memory banks. and predetermined memory/data of the plurality of memory banks.
Interrupt control that stores an interrupt processing program in a storage device, and stores destination bank information indicating the predetermined memory bank and/or the address of the interrupt processing program in a memory bank other than the predetermined memory bank. When a program is stored and a processing program in a memory bank other than the predetermined memory bank is being executed, if an interrupt occurs, the program moves to the bank switching control program after executing the interrupt control program, and the process program in the memory bank other than the predetermined one is executed. Information indicating the bank is saved as return bank information, switching to the predetermined memory bank is performed, and after switching, the interrupt processing program is called and executed based on the contents of the storage means, and after execution, the return bank information is saved. Switch to memory bank,
The above problem is solved by an interrupt control method that returns to the processing program after switching.

又、本発明の第2の方式は、処理プログラムを記憶する
複数のメモリバンクを備え、該複数のメモリバンクの特
定の同一アドレスエリアにバンク切替制御プログラムを
記憶すると共に、前記複数のメモリバンクの所定のメモ
リバンクに割込処理プログラムを記憶し、前記所定以外
のメモリバンク内の処理プログラムを実行している際、
割込みが発生したときは、前記バンク切替制御プログラ
ムに移り該プログラムで、自己のメモリバンクを示す情
報をリターンバンク情報としてセーブし、前記所定のメ
モリバンクへの切替を行い、切替後、前記割込処理プロ
グラムを呼出して実行し、実行後前記リターンバンク情
報のメモリバンクへの切替を行い、切替後前記処理プロ
グラムへ復帰するという割込制御方式により、上記課題
を解決するものである。
Further, a second method of the present invention includes a plurality of memory banks for storing processing programs, stores a bank switching control program in the same specific address area of the plurality of memory banks, and stores the bank switching control program in the same specific address area of the plurality of memory banks. When an interrupt processing program is stored in a predetermined memory bank and a processing program in a memory bank other than the predetermined one is executed,
When an interrupt occurs, the program moves to the bank switching control program, which saves information indicating its own memory bank as return bank information, switches to the predetermined memory bank, and after switching, executes the bank switching control program. The above problem is solved by an interrupt control method that calls and executes a processing program, switches the return bank information to a memory bank after execution, and returns to the processing program after switching.

(*)作用 本発明では、メモリバンク以外の共通メモリエリアを全
く使用することなく、所定のバンク内に記憶された割込
処理プログラムを、任意のバンク内の処理プログラムを
実行中に割込みが発生したときにも利用できるようにな
る。そして、第1の方式では、異なる複数の割込みや異
なるバンクの割込処理プログラムについても、バンク切
替制御プログラムを共通に使用でき、又、第2の方式で
は処理ステップが短かくて済む。
(*) Effect In the present invention, an interrupt occurs while an interrupt processing program stored in a predetermined bank is being executed while a processing program in an arbitrary bank is being executed, without using any common memory area other than the memory bank. It will be available when you do so. In the first method, the bank switching control program can be used in common for a plurality of different interrupts or interrupt processing programs of different banks, and in the second method, the processing steps can be shortened.

(へ)実施例 第3図は、本発明の実施例を実現するためのハードウェ
ア構成を示すブロック図であり、(1〉はインテル社製
8086のCPU、(2)はアドレスバス、(3〉はデ
ータバス、(4〉は第1処理プログラムを記憶するメモ
リバンク1としてのROM。
(F) Embodiment FIG. 3 is a block diagram showing a hardware configuration for realizing an embodiment of the present invention, in which (1) is an Intel 8086 CPU, (2) is an address bus, and (3) is a hardware configuration for realizing an embodiment of the present invention. 〉 is a data bus, and (4〉 is a ROM serving as a memory bank 1 for storing the first processing program.

(5)は第2処理プログラムを記憶するメモリバンク2
としてのROM< (6)は第3処理プログラムを記憶
するメモリバンク3としてのROM、(7)は種々のデ
ータ及び外部装置からロードされるテーブル、ユーザー
プログラム等を記憶するだめのメインメモリとしてのR
AM、(8)はcpU(t)が後述のバンク切替命令を
実行することにより、バンクを指定するバンク指定デー
タがセットされるバンクレジスタ、り9〉はバンクレジ
スタ(8)の内容に応じて、いずれか一方のメモリバン
クを選択するデコーダ、(10〉は複数の外部割込信号
を入力し、割込みの種類に応したベクタアドレスを出力
すると共に、CPU(1)に割込信号INTを発生ずる
割込みコントローラであって、RAM(7)には、各ベ
クタアドレスに対して各々実行すべきプログラムアドレ
スを記憶した割込みベクタテーブルが用意されており、
割込み発生時には、該テーブルが示すアドレスにCPU
(1)の処理が移る。
(5) is a memory bank 2 that stores the second processing program.
(6) is a ROM as a memory bank 3 that stores the third processing program, and (7) is a main memory that stores various data, tables loaded from external devices, user programs, etc. R
AM, (8) is a bank register in which bank specification data specifying a bank is set when cpU(t) executes a bank switching instruction described later; , a decoder for selecting one of the memory banks (10>) inputs multiple external interrupt signals, outputs a vector address corresponding to the type of interrupt, and also issues an interrupt signal INT to the CPU (1). In the interrupt controller that is generated, an interrupt vector table is prepared in the RAM (7) in which program addresses to be executed are stored for each vector address,
When an interrupt occurs, the CPU is sent to the address indicated by the table.
The process of (1) moves on.

このように、本発明ではハードウェア構成は一般的であ
って、同−ROMチップを用いて2以上のメモリバンク
を構成する場合には、特願昭61−252195号公報
に開示されている構成を用いても良く、これらの構成は
本願の要旨とは関係しないものである。
As described above, the hardware configuration of the present invention is common, and when configuring two or more memory banks using the same ROM chip, the configuration disclosed in Japanese Patent Application No. 61-252195 is used. may also be used, and these configurations are not related to the gist of the present application.

第1図は、本発明の第1方式の実施例を説明するための
説明図であり、メモリバンク(4)〜(6)のプログラ
ム内容を示している。
FIG. 1 is an explanatory diagram for explaining an embodiment of the first method of the present invention, and shows program contents of memory banks (4) to (6).

ここでは、複数の割込みのうち指定の1つの割込みにつ
いて説明し、該割込み時には、RAM(7〉上の割込み
ベクタテーブルにより、アドレスXが指定されるものと
する。
Here, one specified interrupt among a plurality of interrupts will be explained, and it is assumed that at the time of this interrupt, address X is specified by the interrupt vector table on RAM (7>).

本実施例では、第1図に示すように、メモリバンク(4
)(5)(6)の同一アドレスエリア(11)、即ち、
アドレス0−3−1に、バンク切替制御プログラム(以
下、バンク切替マネジャーと呼ぶ)を記憶し、該エリア
(11)以降の処理プログラムエリア(12)に、各々
、異なる処理プログラムを記憶している。
In this embodiment, as shown in FIG.
) (5) The same address area (11) of (6), i.e.
A bank switching control program (hereinafter referred to as bank switching manager) is stored at address 0-3-1, and different processing programs are stored in each processing program area (12) after this area (11). .

バンク切替マネジャーは、大別して第1〜第4の4つの
プログラムより成り、各々、アドレスO〜P−1、P−
Q−1、Q−R−1、R−8−1に記憶されている。第
2プログラムは、飛先バンクへ実際にバンクを切替える
ための実行用で、NOP命令とJMPQ命令の組合せと
、自己の7くン7一 りから他のいずれか一方のバンクへ切替えるための2つ
のバンク切替命令とより構成され、各メモリバンク1,
2.3においては、自己のバンクへの切替命令と同一ア
ドレスにNOP命令が記憶きれている。又、第4プログ
ラムは、リターンバンクへ実際にバンクを切替えるため
のリターン用で、第2プログラムとほぼ同一構成で、J
MPQ命令の代わりにRET命令が記憶されている。
The bank switching manager is roughly divided into four programs, 1st to 4th, and each program has addresses O to P-1, P-
It is stored in Q-1, QR-1, and R-8-1. The second program is for execution to actually switch banks to the destination bank, and includes a combination of NOP commands and JMPQ commands, and two programs for switching from one's own 7-kun 7-i to any other bank. Each memory bank 1,
In 2.3, the NOP instruction is completely stored at the same address as the switching instruction to the own bank. Also, the fourth program is for returning to actually switch banks to the return bank, and has almost the same configuration as the second program.
A RET command is stored instead of an MPQ command.

第1プログラムは、各バンク共に、自己のバンク番号を
リターンバンク番号として所定のレジスタ、例えばAH
レジスタにセーブする命令と、所定のALXレジスタセ
ーブされた飛先バンク番号を判定して第2プログラムの
対応するアドレスヘジャンブする命令より成る。更に、
第4プログラムは各バンク共通で、BXレジスタにセー
ブされた飛先アドレスから始まるサブルーチンを呼出す
命令と、AHレジスタにセーブされたリターンバンク番
号を判定して第4プログラムの対応するアドレスヘジャ
ンプする命令より成る。
The first program sets each bank to a predetermined register, for example AH, with its own bank number as the return bank number.
It consists of an instruction to save to a register, and an instruction to judge the destination bank number saved in a predetermined ALX register and jump to the corresponding address of the second program. Furthermore,
The fourth program is common to all banks, and includes an instruction to call a subroutine starting from the destination address saved in the BX register, and an instruction to judge the return bank number saved in the AH register and jump to the corresponding address in the fourth program. Consists of.

以下、上記した特定の割込みに関する割込処理q− プログラム(13)を、メモリバンク3のアドレスX〜
Wまでに記憶し、メモリバンク1又は2の処理プログラ
ム実行中に割込みが発生した際、上記割込処理プログラ
ム(13)を利用する例について、第1図を参照しなが
ら説明する。尚、詳しくは、メモリバンク3のアドレス
Y−Wに実際の割込処理内容を表わす割込処理サブルー
チンが、そして、アドレスX及びX+1に該サブルーチ
ンを呼出すCALL命令及びIRET命令が記憶されて
いる。
Hereinafter, the interrupt processing q-program (13) regarding the above-mentioned specific interrupt will be executed at address X~ of memory bank 3.
An example in which the interrupt processing program (13) is stored up to W and is used when an interrupt occurs during execution of the processing program in memory bank 1 or 2 will be described with reference to FIG. Specifically, an interrupt processing subroutine representing the actual interrupt processing contents is stored at addresses Y-W of the memory bank 3, and a CALL instruction and an IRET instruction for calling the subroutine are stored at addresses X and X+1.

この場合、メモリバンク1及び2のアドレスX〜Zまで
には、割込処理プログラムが記憶きれた飛先バンク番号
B A N K No、 3をALXレジスタセーブす
るMOV命令命令2処込処理プログラム憶きれた飛先ア
ドレスYをBXレジスタにセーブするMOV命令、バン
ク切替マネジャーを呼出ずCALL命令;IRET命令
より成る割込制御プログラム(14)が記憶されている
。
In this case, addresses X to Z of memory banks 1 and 2 contain the MOV instruction, which saves the destination bank number BANK No. 3 in which the interrupt processing program has been stored, in the ALX register. An interrupt control program (14) is stored which includes a MOV instruction for saving the completed destination address Y in the BX register, a CALL instruction without calling the bank switching manager, and an IRET instruction.

従って、メモリバンク1の処理プログラムを実行中に、
上記特定の割込みが発生すると、先ず、−1〇− 同−バンク内のアトレイXから始まる割込制御プログラ
ムが実行されて、ALXレジスタびB X l。
Therefore, while executing the processing program for memory bank 1,
When the above-mentioned specific interrupt occurs, first, the interrupt control program starting from the atray X in the same bank is executed, and the ALX register and B

ジスタに各々飛先バンク番号B A N K No、 
3及び飛先アドレスYがセーブされ、セーブ後同−バン
ク内ノバンク切替マネジャーに移る。バンク切替マネジ
ャーでは、自己のバンク番号No、 1がリターンバン
ク番号として、例えば、AHレジスタにセーブされた後
、ALXレジスタセーブされた飛先バンクNoが判定さ
れて第2プログラムの対応するアドレスヘジャンプする
。ここでは、飛先バンクN。
Each destination bank number B A N K No,
3 and the destination address Y are saved, and after saving, the process moves to the bank switching manager within the same bank. In the bank switching manager, after saving its own bank number 1 as the return bank number, for example, in the AH register, the destination bank number saved in the ALX register is determined and jumps to the corresponding address of the second program. do. Here, the destination bank is N.

がB A N K No、 3なので、バンク3実行用
ヘジャンブし、メモリバンク3へのバンク切替が実行き
れる。メモリバンク3では、NOP命令の後にJMPQ
命令が記憶されているので、メモリバンク3への切替後
、BXレジスタに記憶されたアドレスYで始まる割込処
理サブルーチンが呼出きれて実行されることとなる。実
行後、RET命令によってAHレジスタにセーブされた
リターンバンクN。
Since BANK No. is 3, it jumps to bank 3 execution and bank switching to memory bank 3 can be executed. In memory bank 3, JMPQ is executed after the NOP instruction.
Since the instruction is stored, after switching to memory bank 3, the interrupt processing subroutine starting at address Y stored in the BX register will be called and executed. After execution, return bank N is saved in the AH register by the RET instruction.

の判定に移り、この場合、リターンバンク番号がBAN
KNo、1なので、バンク1リターン用へジャンプし、
メモリバンク1へのバンク切替が実行される。そして、
バンク切替後、メモリバンク1のRET命令により、メ
モリバンク1の割込制御プログラムに復帰し、該プログ
ラムを介して割込み前の処理プログラムに復帰する。
In this case, the return bank number is BAN.
KNo. 1, so jump to bank 1 return,
Bank switching to memory bank 1 is executed. and,
After bank switching, the RET command of memory bank 1 returns to the interrupt control program of memory bank 1, and via this program, returns to the processing program before the interrupt.

尚、メモリバンク2の処理プログラム実行中に上記特定
の割込みが発生したときも全く同様に処理され、又、メ
モリバンク3の処理プログラム実行中に上記特定の割込
みが発生したときは、アドレスXのCALL命令により
割込処理サブルーチンが実行され、実行後アドレスX+
1のIRET命令により元の処理プログラムに復帰する
。
Note that when the above-mentioned specific interrupt occurs during the execution of the processing program of memory bank 2, it is processed in exactly the same way. Also, when the above-mentioned specific interrupt occurs during the execution of the processing program of memory bank 3, the interrupt at address The interrupt processing subroutine is executed by the CALL instruction, and after execution the address
1 IRET command returns to the original processing program.

ところで、第1図の実施例においては、バンク切替マネ
ジ〜−が任意のバンクから任意のバンクへ切替可能な構
成なので、他の種類の割込みや、他のメモリバンクの割
込み処理プログラムについても、同様に、その割込みに
よって指定される特定アドレスに、実行すべき割込処理
プログラムの飛先バンク番号及び/又は飛先アドレスを
、各々、ALXレジスタび/又はBXレジスタにセーブ
する割込制御プログラムを記憶させておけば、エリア(
10)のバンク切替マネジャーを共通に用いて、割込み
の制御が実現できる。
By the way, in the embodiment shown in FIG. 1, the bank switching manager ~- is configured to be able to switch from any bank to any bank, so the same applies to other types of interrupts and interrupt processing programs for other memory banks. , stores an interrupt control program that saves the destination bank number and/or destination address of the interrupt processing program to be executed in the ALX register and/or BX register, respectively, at a specific address specified by the interrupt. If you let it, the area (
Interrupt control can be realized by commonly using the bank switching manager 10).

次に、第2図を参照して、本発明の第2方式について説
明する。この方式と第1方式の大きな違いは、バンク切
替マネジャーが上記した特定の割込み専用に設けられて
いることであり、具体的には、バンク切替の飛先バンク
No1及び飛先アドレスを、バンク切替マネジャー内で
予めBANKN。
Next, the second method of the present invention will be explained with reference to FIG. The major difference between this method and the first method is that the bank switching manager is provided exclusively for the specific interrupt mentioned above. Specifically, the bank switching destination bank No. 1 and destination address are BANKN in advance within the manager.

3及びYと固定的に定めている点にある。このため、他
の割込みに関してはこの同一のバンク切替マネジャーを
共通して用いることができないが、そのステップ数は極
端に減少し、割込制御に要する時間を短かくできる。
3 and Y. Therefore, although the same bank switching manager cannot be used in common for other interrupts, the number of steps is extremely reduced, and the time required for interrupt control can be shortened.

即ち、この方式では、メモリバンク1の処理プログラム
を実行中に割込みが発生すると、アドレスXのJMPO
命令により、即座にバンク切替マネジャーに移り、リタ
ーンバンクNo、 1のセーブ後、一義的にバンク3へ
の切替が為される。切替後は、CALLY命令により直
接アドレスYが指定されて割込み処理ザブルーチンが呼
出され、このルーチンの実行後、リターンバンクへの切
替が行われる。そして、リターンバンクへの切替後、メ
モリバンク1のバンク切替マネジャー中のIRET命令
によって処理プログラムへ復帰する。
That is, in this method, if an interrupt occurs while the processing program in memory bank 1 is being executed, the JMPO at address
The command immediately moves to the bank switching manager, and after saving return bank No. 1, switching to bank 3 is performed uniquely. After switching, the CALLY instruction directly specifies address Y to call the interrupt processing subroutine, and after this routine is executed, switching to the return bank is performed. After switching to the return bank, the IRET command in the bank switching manager of memory bank 1 returns to the processing program.

尚、同一メモリバンク内に限って、複数の割込みに対し
てバンク切替マネジャーを共通に利用でさるようにする
には、第2図において、JMPOの代わりに、MOVB
X、Y、CALLO,IRETというように、バンク切
替マネジャーに移る前に、割込処理プログラムのアドレ
スをBXレジスタにセーブする割込制御プログラムをア
ドレスXから記憶し、バンク切替マネジャーのIRET
命令及びCALLY命令の代わりに、各々、RET命令
及びCALLBX命令を記憶するようにすれば良い。
In addition, in order to commonly use the bank switching manager for multiple interrupts within the same memory bank, use MOVB instead of JMPO in Figure 2.
X, Y, CALLO, IRET, before moving to the bank switching manager, store the interrupt control program that saves the address of the interrupt processing program in the BX register starting from address
Instead of the command and the CALLY command, the RET command and the CALLBX command may be stored, respectively.

(ト〉発明の効果 本発明に依れば、複数のメモリバンクを備え、これらメ
モリバンク以外の共通メモリエリアをとれない制約のあ
るシステムにおいて、任意のメモリパンク内の処理プロ
グラム実行中に割込みが発生したとき、所定のメモリバ
ンク内のみに記憶されている割込処理プログラムを利用
して割込みの処理が実行できるようになる。このため、
本来の処理プログラムを記憶するためのプログラムエリ
アを広くとることができ、所望の処理プログラムをメモ
リバンク内に格納できる。
(G) Effects of the Invention According to the present invention, in a system that is equipped with a plurality of memory banks and is restricted from taking a common memory area other than these memory banks, an interrupt occurs during the execution of a processing program in an arbitrary memory puncture. When an interrupt occurs, it becomes possible to process the interrupt using an interrupt processing program stored only in a predetermined memory bank.
The program area for storing the original processing program can be widened, and the desired processing program can be stored in the memory bank.

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

第1図は本発明の第1実施例を説明するための説明図、
第2図は本発明の第2実施例を説明するための説明図、
第3図は本発明を実現するためのハードウェア構成を示
すブロック図である。 (1)・・・CPU、  (2)・・・アドレスバス、
(3)・・・データバス、(4〉・・・メモリバンクL
  (5)・・・メモIJ バンク2、(6)・・・メ
モリバンク3、(8)・・・バンクレジスタ、(10)
・・・割込みコントローラ、(13)・・・割込処理プ
ログラム、 (14)・・・割込制御プログラム。
FIG. 1 is an explanatory diagram for explaining the first embodiment of the present invention,
FIG. 2 is an explanatory diagram for explaining a second embodiment of the present invention,
FIG. 3 is a block diagram showing the hardware configuration for realizing the present invention. (1)...CPU, (2)...Address bus,
(3)...Data bus, (4>...Memory bank L
(5)...Memo IJ bank 2, (6)...Memory bank 3, (8)...Bank register, (10)
... Interrupt controller, (13) ... Interrupt processing program, (14) ... Interrupt control program.

Claims (2)

【特許請求の範囲】[Claims] (1)処理プログラムを記憶する複数のメモリバンクを
備え、該複数のメモリバンクの特定の同一アドレスエリ
アにバンク切替制御プログラムを記憶すると共に、前記
複数のメモリバンクの所定のメモリバンクに割込処理プ
ログラムを記憶し、且つ、前記所定以外のメモリバンク
に、前記所定のメモリバンクを示す飛先バンク情報及び
/又は前記割込処理プログラムのアドレスを記憶手段に
格納する割込制御プログラムを記憶し、前記所定以外の
メモリバンク内の処理プログラムを実行している際、割
込みが発生したときは、前記割込制御プログラム実行後
前記バンク切替制御プログラムに移り該プログラムで、
自己のメモリバンクを示す情報をリターンバンク情報と
してセーブし、前記所定のメモリバンクへの切替を行い
、切替後前記記憶手段の内容に基づき前記割込処理プロ
グラムを呼出して実行し、実行後前記リターンバンク情
報のメモリバンクへの切替を行い、切替後前記処理プロ
グラムへ復帰することを特徴とした割込制御方式。
(1) A plurality of memory banks for storing processing programs are provided, a bank switching control program is stored in the same specific address area of the plurality of memory banks, and an interrupt process is performed in a predetermined memory bank of the plurality of memory banks. storing an interrupt control program for storing a program in a memory bank other than the predetermined one, and storing destination bank information indicating the predetermined memory bank and/or the address of the interrupt processing program in a storage means; When an interrupt occurs while executing a processing program in a memory bank other than the predetermined one, the program moves to the bank switching control program after executing the interrupt control program, and in that program,
Saves information indicating its own memory bank as return bank information, switches to the predetermined memory bank, calls and executes the interrupt processing program based on the contents of the storage means, and returns after execution. An interrupt control method characterized by switching bank information to a memory bank and returning to the processing program after switching.
(2)処理プログラムを記憶する複数のメモリバンクを
備え、該複数のメモリバンクの特定の同一アドレスエリ
アにバンク切替制御プログラムを記憶すると共に、前記
複数のメモリバンクの所定のメモリバンクに割込処理プ
ログラムを記憶し、前記所定以外のメモリバンク内の処
理プログラムを実行している際、割込みが発生したとき
は、前記バンク切替制御プログラムに移り該プログラム
で、自己のメモリバンクを示す情報をリターンバンク情
報としてセーブし、前記所定のメモリバンクへの切替を
行い、切替後、前記割込処理プログラムを呼出して実行
し、実行後前記リターンバンク情報のメモリバンクへの
切替を行い、切替後前記処理プログラムへ復帰すること
を特徴とした割込制御方式。
(2) A plurality of memory banks for storing processing programs are provided, a bank switching control program is stored in the same specific address area of the plurality of memory banks, and an interrupt process is performed in a predetermined memory bank of the plurality of memory banks. When a program is stored and an interrupt occurs while executing a processing program in a memory bank other than the predetermined one, the program moves to the bank switching control program, and the program transfers information indicating its own memory bank to the return bank. Save the information as information, switch to the predetermined memory bank, call and execute the interrupt processing program after switching, and after execution switch the return bank information to the memory bank, and after switching, the processing program An interrupt control method characterized by a return to .
JP63129052A 1988-02-24 1988-05-26 Interrupt control method Pending JPH01297732A (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP63129052A JPH01297732A (en) 1988-05-26 1988-05-26 Interrupt control method
US07/313,677 US5146581A (en) 1988-02-24 1989-02-22 Subprogram executing data processing system having bank switching control storing in the same address area in each of memory banks
DE68924719T DE68924719T2 (en) 1988-02-24 1989-02-24 Device and method for executing a subroutine in a data processing system with block switching.
EP89103296A EP0330226B1 (en) 1988-02-24 1989-02-24 Apparatus of and method for executing subprogram in bank switching data processing system
KR1019890002294A KR920006614B1 (en) 1988-02-24 1989-02-24 Bank switching scheme and data processing system thereof
CN 89101867 CN1015495B (en) 1988-02-24 1989-02-24 Data processing system of using storage location conversion mode and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63129052A JPH01297732A (en) 1988-05-26 1988-05-26 Interrupt control method

Publications (1)

Publication Number Publication Date
JPH01297732A true JPH01297732A (en) 1989-11-30

Family

ID=14999895

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63129052A Pending JPH01297732A (en) 1988-02-24 1988-05-26 Interrupt control method

Country Status (1)

Country Link
JP (1) JPH01297732A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100561013B1 (en) * 1999-10-12 2006-03-16 콤비 가부시키가이샤 Baby carriage folding mechanism for a folding baby carriage

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6314241A (en) * 1986-07-04 1988-01-21 Hitachi Ltd Memory expansion system
JPS6341536A (en) * 1986-08-08 1988-02-22 Nippon Oil & Fats Co Ltd Polysiloxane compound having aromatic peroxyester group

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6314241A (en) * 1986-07-04 1988-01-21 Hitachi Ltd Memory expansion system
JPS6341536A (en) * 1986-08-08 1988-02-22 Nippon Oil & Fats Co Ltd Polysiloxane compound having aromatic peroxyester group

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100561013B1 (en) * 1999-10-12 2006-03-16 콤비 가부시키가이샤 Baby carriage folding mechanism for a folding baby carriage

Similar Documents

Publication Publication Date Title
JP2677458B2 (en) System call execution device
JPS62182822A (en) Automatic operation system
JPH01216433A (en) Interruption control system
JPS62217326A (en) Computer capable of storing and switching plural os
JPS59218569A (en) micro computer
JPH04286046A (en) Interruption controller
JP2506591B2 (en) Auxiliary processor
JPH02214938A (en) Data processor
JPS6240737B2 (en)
JPH0442328A (en) Interruption control system for information processor
JPS6337439B2 (en)
JPH0417530B2 (en)
JPH0683640A (en) Interrupt response processing method
JPS6222149A (en) Process changeover system
JPS61184644A (en) Virtual computer system control method
JPH0363866A (en) Master/slave processor
JPS6395543A (en) Microprogram controller
JPS62271137A (en) Calling system for plural types of load module
JPS6284334A (en) Information processing system
JPS5935239A (en) Microprogram control system
JPH0895895A (en) Controller for serial port I / O equipment in information processing apparatus
JPH07141222A (en) Data processing device for tracing subroutine history
JPH01267751A (en) System for program transition
JPS63307529A (en) Inter-arithmetic processing unit communication control system
JPS63158635A (en) Plural os execution system