JPH01260537A - Equipment control processor circuit - Google Patents

Equipment control processor circuit

Info

Publication number
JPH01260537A
JPH01260537A JP9052888A JP9052888A JPH01260537A JP H01260537 A JPH01260537 A JP H01260537A JP 9052888 A JP9052888 A JP 9052888A JP 9052888 A JP9052888 A JP 9052888A JP H01260537 A JPH01260537 A JP H01260537A
Authority
JP
Japan
Prior art keywords
microprocessor
bank
program
control processor
address
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
JP9052888A
Other languages
Japanese (ja)
Inventor
Takaaki Yokoi
孝明 横井
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 JP9052888A priority Critical patent/JPH01260537A/en
Publication of JPH01260537A publication Critical patent/JPH01260537A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To generate a subroutine whose bank switching is required without being conscious of the description of a program by generating an interruption signal at the time of detecting a specific first instruction code decided in advance, and storing the number of addresses exceeding the address space of a microprocessor. CONSTITUTION:The title circuit is constituted of the microprocessor 1, a bank register 2, a program memory 3, a control memory 4, an instruction detection circuit 5, and an interruption control circuit 6. And the instruction detection circuit 5 generates the interruption signal (c) at the time of detecting a prescribed first instruction code decided in advance, and the bank register 2 stores the address exceeding the address space of the microprocessor. In such a way, it is possible to perform the bank switching automatically without being conscious of the bank switching in the description of the program.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、マイクロプロセッサを使用した機器制御プロ
セッサ回路、特に制御プログラムかプロセッサのアドレ
ス空間よりも大きな機器制御プロセッサ回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an equipment control processor circuit using a microprocessor, and particularly to an equipment control processor circuit that is larger than the address space of the control program or processor.

〔従来の技術〕[Conventional technology]

従来、制御プログラムがプロセッサアドレス空間よりも
大きい場合、制御プロクラムの個々のモジュール自身で
プロクラムのバンク切り替えを行なう必要かあった。
Conventionally, when a control program is larger than the processor address space, it has been necessary for each module of the control program to switch banks of the program itself.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このため、プログラム作成上常にバンク切り替えを意識
しなけれはならず、プロクラム作成の効率か低下するか
、あるいはプロクラムの汎用性が低下する欠点があった
For this reason, when creating a program, one must always be aware of bank switching, which has the disadvantage of reducing the efficiency of program creation or reducing the versatility of the program.

本発明の目的は、プログラム記述上においてバンク切り
替えを意識することなく、バンク切り替えを自動的に行
なう制御プロセッサを提供することである。
An object of the present invention is to provide a control processor that automatically performs bank switching without being aware of bank switching in program description.

〔課題を解決するための手段〕[Means to solve the problem]

本発明によれば、マイクロプロセッサを中心として構成
される機器制御プロセッサにおいて、予め定められた特
定の第一命令コートを検出しなとき割り込み信号を発生
する命令検出回路と、マイクロプロセッサのアドレス空
間以上のアドレスを記憶するバンクレジスタとを有する
機器制御プロセッザ回路が得られる。
According to the present invention, in a device control processor mainly composed of a microprocessor, an instruction detection circuit that generates an interrupt signal when a predetermined specific first instruction code is not detected; An equipment control processor circuit is obtained having a bank register for storing addresses of .

〔実施例〕〔Example〕

次に、本発明の一実施例を示した図面を参照して、本発
明をより詳細に説明する。
Next, the present invention will be described in more detail with reference to the drawings showing one embodiment of the present invention.

第1図を参照すると、本発明の一実施例は、マイクロプ
ロセッサ1と、バンクレジスタ2と、プロクラムメモリ
3と、制御メモリ4と、命令検出回路5と、割り込み制
御回路6とから楕成されている。本実施例ては、マイク
ロプロセッサ1として、インデル社’J8080を使用
している。
Referring to FIG. 1, one embodiment of the present invention consists of a microprocessor 1, a bank register 2, a program memory 3, a control memory 4, an instruction detection circuit 5, and an interrupt control circuit 6. ing. In this embodiment, Indel's J8080 is used as the microprocessor 1.

第2図は、バンク切り替えか必要てないサフルーヂンア
l’レスO]00番地をコールしたプロクラムの機械語
を表し/と図であり、第3図はバンク切り替えか必要な
ザフルーチンアl’レス012345をコールしたブロ
ク゛ラムの機械語を表した図である。バンク切り替えの
要不要はリンカ−か処理し、バンク切り替えか必要な場
合、すなわちアドレスの最上位ハイト力変化する場合、
命令コー1〜を予め定められたコートに(=J替えて機
械語を発生ずる。ここては、特定コー1−はE l’、
) ]、 6進“Cある。
Figure 2 shows the machine language of the program that calls address O]00, which requires bank switching, and Figure 3 shows the machine language that calls address 012345, which requires bank switching. FIG. The linker will process whether bank switching is necessary, and if bank switching is necessary, that is, if the top height of the address changes,
A machine code is generated by replacing the instruction code 1~ with a predetermined code (=J. Here, the specific code 1- is E l',
) ], hex “C”.

第4図はバンク切り替えか必要な場合のプロクラ11の
動作を表したフローチャー)〜である。
FIG. 4 is a flowchart showing the operation of the programmer 11 when bank switching is required.

バンク切り替えか必要な場合、第一命令ヨー1〜がED
16進となっているため、マイクロプロセッサ1か命令
を読み出し/、二とき、命令検出回路5から割り込み信
号Cか発生し、割り込み制御回路6からコール命令か発
生し、予め定められた割り込み処理か動作する。この際
、割り込みか発生しなア1へし・スの次のアドレスかス
タックに退避される。
If bank switching is required, the first command yaw 1~ is ED
Since it is in hexadecimal format, when the microprocessor 1 or 2 reads an instruction, an interrupt signal C is generated from the instruction detection circuit 5, a call instruction is generated from the interrupt control circuit 6, and predetermined interrupt processing is performed. Operate. At this time, if no interrupt occurs, the address next to the address is saved to the stack.

割り込み処理J1では、第4[YHこ示ずように、第一
に割り込みか発生したアドレスの次のアl’レスからコ
ールずJ\きザブルーチンのアドレスおよびハンクデー
タ3バイトを取り出し、退避後次のアlヘレスをスタッ
クに退避する。
In the interrupt processing J1, as shown in the 4th [YH], the address and 3 bytes of hunk data of the uncalled subroutine are extracted from the address next to the address where the first interrupt occurred, and after saving, the next Save Aljeres to the stack.

次に、現在のバンクをスタックに退避し7、次にコール
したザブルーチンからリタターンした際に動作させる終
了処理ルーチンの開始ア1ヘレスをスタックに退避後、
以所fに退避したコール−すべきザブル−チンの最」ニ
イ立ア1ヘレスをバンクレジスタにセラ1−シ、下位2
ハイドをアlヘレスとしてザブルーチンをコールする。
Next, save the current bank to the stack 7, and save the start address of the termination processing routine to be executed when returning from the subroutine called next to the stack.
Place the call saved in f to the top of the routine that should be placed in the bank register, and set the bottom 2 in the bank register.
Call Zabroutine with Hyde as Aljeres.

ザブルーチンは所定の動作を実行した後、リターンする
人:め、制御は以前にスタックにj片避した終了処理ル
ーチンに戻る。
After the subroutine performs its predetermined operations, the user returns and control returns to the termination routine that was previously saved to the stack.

終了処理ルーチンは、ザブルーチンコール前に退避した
バンクをスタックから取り出し7バンクレジスタにセラ
1〜した後リターンする。これにより、プロフラノ\切
り替えの必要なザブルーチンコールの次に戻される。
The termination processing routine takes out the bank saved before the subroutine call from the stack, stores it in the 7 bank register, and then returns. This returns the program to the next routine call that requires profurano\ switching.

以上の実施例では、一般的なマイクロプロセッサで実現
可能とするため、命令検出回路5を設(・〕たか、ママ
イクロプロセラによっては、本発明の目的に一致する命
令を有し、ている場合もある。この場合には、命令検出
[n路か不要となることはいうまてもない。
In the embodiments described above, the instruction detection circuit 5 is provided so that it can be realized with a general microprocessor. In this case, it goes without saying that the instruction detection [n path is unnecessary.

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

辺上説明しノコように、本発明によれは、バンク切り替
えか必要なザブルーチンをプロクラム記述−」二意識す
ることなく作成することかてきる。
As explained above, according to the present invention, it is possible to create subroutines that are necessary for bank switching without having to be aware of the program description.

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

第1図は本発明の一実施例のフロック図、第2図(Jバ
ンク切り替えを必要としない場合の機械語を示す図、第
3図はバンク切り替えを必要とする場合の機械語を示す
図、第4図はバンク切り替えを必要とする場合の動作フ
ローチュー1〜である。 1゛マイクロプロセツザ、2:バンクレジスタ、3.プ
ロクラムメモリ、4・制御メモリ、5命令検出回路、6
・割り込み制御回路。 と1 ア1−レス信号、ト)・データ、C割り込み信号
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing machine language when J bank switching is not required, and FIG. 3 is a diagram showing machine language when bank switching is required. , Fig. 4 shows the operation flowchart 1 to 1 when bank switching is required. 1. Microprocessor, 2. Bank register, 3. Program memory, 4. Control memory, 5. Instruction detection circuit, 6.
・Interrupt control circuit. and 1 address signal, g) data, and C interrupt signal.

Claims (1)

【特許請求の範囲】[Claims] マイクロプロセッサを中心として構成される機器制御プ
ロセッサにおいて、予め定められた特定の第一命令コー
ドを検出したとき割り込み信号を発生する命令検出回路
と、マイクロプロセッサのアドレス空間以上のアドレス
を記憶するバンクレジスタとを有することを特徴とする
機器制御プロセッサ回路。
In an equipment control processor mainly composed of a microprocessor, there is an instruction detection circuit that generates an interrupt signal when a predetermined specific first instruction code is detected, and a bank register that stores addresses larger than the address space of the microprocessor. An equipment control processor circuit comprising:
JP9052888A 1988-04-12 1988-04-12 Equipment control processor circuit Pending JPH01260537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9052888A JPH01260537A (en) 1988-04-12 1988-04-12 Equipment control processor circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9052888A JPH01260537A (en) 1988-04-12 1988-04-12 Equipment control processor circuit

Publications (1)

Publication Number Publication Date
JPH01260537A true JPH01260537A (en) 1989-10-17

Family

ID=14000923

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9052888A Pending JPH01260537A (en) 1988-04-12 1988-04-12 Equipment control processor circuit

Country Status (1)

Country Link
JP (1) JPH01260537A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7094861B2 (en) * 2003-12-30 2006-08-22 General Electric Company Thermoplastic composition containing polymeric anti-static salt, method of making, and use thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7094861B2 (en) * 2003-12-30 2006-08-22 General Electric Company Thermoplastic composition containing polymeric anti-static salt, method of making, and use thereof

Similar Documents

Publication Publication Date Title
RU2003123118A (en) NEW PROCESSOR MODE TO REDUCE THE FUNCTIONING OF THE GUEST SOFTWARE RUNNING ON THE VIRTUAL MACHINE SUPPORTED BY THE MONITOR OF THE VIRTUAL MACHINE
KR890007157A (en) Data processor
JPH02202642A (en) Device for supervising program action
JPH01260537A (en) Equipment control processor circuit
JPS5541540A (en) Interrupt control system in stored program control unit
JPS60160443A (en) Data processor
JPS55131853A (en) Control method for multiple-system electronic computer
JPS6428730A (en) Fault detection system
JPS6152747A (en) Microprocessor
JPH03208132A (en) Single chip microcomputer
JPH0280807U (en)
JPS5510659A (en) Data processor
JPS63116240A (en) Expanded supervisor call interruption processing system
JPH02181811A (en) information processing equipment
JPH03201133A (en) Information processor
JPH0795288B2 (en) Microcomputer
JPH09160800A (en) emulator
JPH04239924A (en) Trouble processing system
JPH02190936A (en) Program execution system for bank switching type computer
JPH02242443A (en) Debugging mechanism for information processor
JPS62166541U (en)
JPS551631A (en) Interrupt processing system
JPS63180171A (en) Information processor
JPH04102959A (en) Exception processing system for information processor
JPH0214335A (en) Interrupting system for debugger