JPS61151745A - Interruption processing system - Google Patents

Interruption processing system

Info

Publication number
JPS61151745A
JPS61151745A JP27313484A JP27313484A JPS61151745A JP S61151745 A JPS61151745 A JP S61151745A JP 27313484 A JP27313484 A JP 27313484A JP 27313484 A JP27313484 A JP 27313484A JP S61151745 A JPS61151745 A JP S61151745A
Authority
JP
Japan
Prior art keywords
processor
interruption
interrupt
internal state
processing routine
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
JP27313484A
Other languages
Japanese (ja)
Inventor
Masao Akata
赤田 正雄
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 JP27313484A priority Critical patent/JPS61151745A/en
Publication of JPS61151745A publication Critical patent/JPS61151745A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To modify an external interruption request depending on the internal state of a processor by outputting an interruption vector designating an entry point of an interruption processing routine and an interruption request to a processor from an interruption request controller. CONSTITUTION:When any of external interruption requests 1 is active, the interruption controller 3 generates an interruption vector and transmits it to a sequencer 7 of a processor 6 via a signal line 4. The sequencer 7 loads an interruption vector on a program counter 8. When the interruption vector is an entry point of a corresponding processing routine in an instruction memory 9, the processing is started by the next instruction cycle. Further, the processing is started after two instruction cycles even for a pointer to a jump table to the processing routine. In rewriting the content of a status register 10 in the processing routine, even when the same external interruption request 1 is active, the other processing routine is started while the processor 6 does not sense the internal state.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、外部からの割込要求(以下「外部割込要求」
という)に対する処理がその時のプロセッサの内部状態
によって変化するプロセッサの割込処理方式に関するも
のである。
[Detailed Description of the Invention] [Industrial Field of Application] The present invention is directed to an external interrupt request (hereinafter referred to as an "external interrupt request").
This relates to a processor interrupt processing method in which the processing for (2) changes depending on the internal state of the processor at that time.

〔従来の技術〕[Conventional technology]

従来、この種の割込処理は、まず外部割込要求を受は付
けて割込処理ルーチンにはいり、プロセッサの内部状態
によって処理が分かれるところでは、テスト・ビット命
令等の内部状態をセンスする命令を使った条件分枝を用
いたり、内部状態をインデックスとした割込処理ルーチ
ンへのジャンプテーブルを設けることにより対応する処
理ルーチンに分枝する方式となっていた。
Conventionally, this type of interrupt processing first accepts an external interrupt request and enters the interrupt processing routine, and where the processing is divided depending on the internal state of the processor, an instruction that senses the internal state such as a test bit instruction is used. The method used was to branch to the corresponding processing routine by using conditional branching using , or by providing a jump table to the interrupt processing routine using the internal state as an index.

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

テスト・ビット命令等を用いてプロセッサの内部状態を
センスして分枝していく方式では、外部割込要求があっ
てから所望の処理が開始されるまでに何回かのジャンプ
命令が実行されることになり、内部状態数が多い場合に
は処理の開始までの時間遅れが無視できなくなる可能性
がある。また、第2図に示すように、ステータス・レジ
スタ11内の状態をインデックスとしてジャンプテーブ
ル12を参照する方式も、状態がジャンプテーブル12
のアドレスあるいはジャンプテーブルの先頭アドレスか
らのディスプレースメントを表わすような表現になって
いることが必要であり、そうでない時には状態からアド
レスあるいはディスプレースメントへの変換作業がさら
に必要となり、やはり、オーバーヘッドが生じる。すな
わち、従来の方式では、外部割込要求とその時のプロセ
ッサの内部状態とで決定される割込処理ルーチンへのエ
ントリを求める場合、いったん外部割込処理ルーチンに
はいって、さらに内部状態によって求めるという2段構
成をとっているためにオーバーヘッドが生じるという問
題があった。
In the method of branching by sensing the internal state of the processor using test bit instructions, etc., several jump instructions are executed from the time an external interrupt request is received until the desired processing starts. Therefore, if the number of internal states is large, there is a possibility that the time delay until the start of processing cannot be ignored. Furthermore, as shown in FIG. 2, there is also a method of referring to the jump table 12 using the state in the status register 11 as an index.
It is necessary that the expression represents the address of the address or the displacement from the start address of the jump table. Otherwise, further conversion work from the state to the address or displacement is required, which also causes overhead. . In other words, in the conventional method, when seeking entry to an interrupt handling routine that is determined by an external interrupt request and the internal state of the processor at that time, entry is first made to the external interrupt handling routine, and then entry is determined based on the internal state. There is a problem in that the two-stage configuration generates overhead.

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

このような問題点を解決するために本発明は、ステータ
ス・レジスタに保持されているプロセッサの内部状態と
外部割込要求とを割込コントローラに入力し、プロセッ
サの内部状態と外部割込要求とで決定される割込処理ル
ーチンのエントリ・ポイントを指定する割込ベクタとプ
ロセッサへの割込要求とを割込要求コントローラから出
力することにより、プロセッサの内部状態により外部割
込要求を修飾可能とするようにしたものである。
In order to solve these problems, the present invention inputs the internal state of the processor and the external interrupt request held in the status register to the interrupt controller, and then inputs the internal state of the processor and the external interrupt request held in the status register. By outputting from the interrupt request controller an interrupt vector specifying the entry point of the interrupt handling routine determined by the interrupt request controller, an external interrupt request can be qualified by the internal state of the processor. It was designed to do so.

〔作用〕[Effect]

本発明においては、割込コントローラから出力される割
込要求とプロセッサの内部状態により決定される割込処
理ルーチンのエントリ・ポイントを示す割込ベクタとが
プロセッサへ入力され、オーバーヘッドが無くなる。
In the present invention, the interrupt request output from the interrupt controller and the interrupt vector indicating the entry point of the interrupt processing routine determined by the internal state of the processor are input to the processor, thereby eliminating overhead.

〔実施例〕〔Example〕

本発明に係わる割込処理方式の一実施例を説明するため
のブロック系統を第1図に示す。第1図において、1は
外部割込要求を伝送する信号線、2はプロセッサの内部
状態を伝送する信号線、3は外部割込要求が入力される
割込コントローラ、4は割込コントローラ3から出力さ
れる割込要求を伝送する信号線、5は割込コントローラ
3から出力される割込ベクタを伝送する信号線、6はプ
ロセッサ、7はシーケンサ、8はプログラムカウンタ、
9はインストラクションメモリ、10はプログラムの内
部状態を保持するステータス・レジスタである。
FIG. 1 shows a block system for explaining one embodiment of the interrupt processing method according to the present invention. In FIG. 1, 1 is a signal line that transmits external interrupt requests, 2 is a signal line that transmits the internal state of the processor, 3 is an interrupt controller to which external interrupt requests are input, and 4 is from interrupt controller 3. A signal line for transmitting an output interrupt request, 5 a signal line for transmitting an interrupt vector output from the interrupt controller 3, 6 a processor, 7 a sequencer, 8 a program counter,
9 is an instruction memory, and 10 is a status register that holds the internal state of the program.

次に本実施例における動作について説明する。Next, the operation in this embodiment will be explained.

割込コントローラ3には、外部割込要求が信号線1によ
り、プロセッサ6のステータス・レジスタ10に保持さ
れているプロセッサ6の内部状態が信号線2により入力
される。割込コントローラ3は、外部割込要求のいずれ
かがアクティブになると、その時のプロセッサ6の内部
状態とそのアクティブとなった外部割込要求とで決定さ
れる割込ベクタを発生し、割込要求を信号線4によりプ
ロセッサ6のシーケンサ7に送る。シーケンサ7は、割
込可能状態であれば、その割込ベクタをプログラムカウ
ンタ8にロードする。この割込ベクタがインストラクシ
ョンメモリ9内にある対応する処理ルーチンのエントリ
・ポイントであれば、次の命令サイクルで処理が開始さ
れ、また、割込ベクタが処理ルーチンへのジャンプテー
ブルへのポインタであっても、2命令サイクル後には処
理が開始される。この処理ルーチン内でステータス・レ
ジスタIOの内容を書き替えれば、すなわち、プロセッ
サ6の内部状態を遷移させれば、次に同じ外部割込要求
がアクティブになった時でもプロセッサ6が内部状態を
センスすることなしに別の処理ルーチンを起動すること
が可能である。
An external interrupt request is input to the interrupt controller 3 via a signal line 1, and an internal state of the processor 6 held in a status register 10 of the processor 6 is input via a signal line 2. When one of the external interrupt requests becomes active, the interrupt controller 3 generates an interrupt vector determined by the internal state of the processor 6 at that time and the external interrupt request that became active, and sends the interrupt request. is sent to the sequencer 7 of the processor 6 via the signal line 4. If the sequencer 7 is in an interrupt enabled state, it loads the interrupt vector into the program counter 8. If this interrupt vector is the entry point of the corresponding processing routine in instruction memory 9, processing will start in the next instruction cycle, and if the interrupt vector is a pointer to a jump table to the processing routine. However, processing starts after two instruction cycles. If the contents of the status register IO are rewritten within this processing routine, that is, if the internal state of the processor 6 is made to transition, the processor 6 will sense the internal state even when the same external interrupt request becomes active next time. It is possible to start another processing routine without doing so.

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

以上説明したように本発明は、プロセッサの内部状態と
外部割込要求とで決定される割込処理ルーチンのエント
リ・ポイントを指定する割込ベクタとプロセッサへの割
込要求とを割込要求コントローラから出力することによ
゛す、プロセッサの内部状態により外部割込要求を修飾
可能とするようにしたので、割込処理ルーチンの中でス
テータス・センスするというオーバーヘッドを無くし、
プロセッサの内部状態が多くて従来の方式では割込処理
が多分枝に分かれるような場合でも効率よく処理を実行
できるという効果がある。
As described above, the present invention provides an interrupt request controller that transmits an interrupt vector that specifies the entry point of an interrupt processing routine determined by the internal state of the processor and an external interrupt request, and an interrupt request to the processor. Since the external interrupt request can be qualified by the internal state of the processor by outputting it from
This method has the advantage that even when the processor has many internal states and the interrupt processing is divided into multiple branches in the conventional method, processing can be executed efficiently.

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

第1図は本発明に係わる割込処理方式の一実施例を説明
するためのブロック系統図、第2図は従来の割込処理方
式における動作を説明するためのジャンプテーブル図で
ある。 1〜5・・・・信号線、6・・・・プロセッサ、7・・
・・シーケンサ、8・・・・プログラムカウンタ、9・
・・・インストラクションメモリ、10・・・・ステー
タス・レジスタ。
FIG. 1 is a block system diagram for explaining an embodiment of the interrupt processing method according to the present invention, and FIG. 2 is a jump table diagram for explaining the operation of the conventional interrupt processing method. 1-5...Signal line, 6...Processor, 7...
...Sequencer, 8...Program counter, 9.
...Instruction memory, 10...Status register.

Claims (1)

【特許請求の範囲】[Claims] ステータス・レジスタに保持されているプロセッサの内
部状態と外部からの割込要求とを割込コントローラに入
力し、前記プロセッサの内部状態と前記外部からの割込
要求とで決定される割込処理ルーチンのエントリ・ポイ
ントを指定する割込ベクタと前記プロセッサへの割込要
求とを前記割込要求コントローラから出力し、前記プロ
セッサの内部状態により前記外部からの割込要求を修飾
可能とすることを特徴とする割込処理方式。
An interrupt processing routine that inputs the internal state of the processor held in a status register and an external interrupt request to an interrupt controller, and is determined based on the internal state of the processor and the external interrupt request. An interrupt vector specifying an entry point of the processor and an interrupt request to the processor are output from the interrupt request controller, and the interrupt request from the outside can be modified by the internal state of the processor. Interrupt handling method.
JP27313484A 1984-12-26 1984-12-26 Interruption processing system Pending JPS61151745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27313484A JPS61151745A (en) 1984-12-26 1984-12-26 Interruption processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27313484A JPS61151745A (en) 1984-12-26 1984-12-26 Interruption processing system

Publications (1)

Publication Number Publication Date
JPS61151745A true JPS61151745A (en) 1986-07-10

Family

ID=17523591

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27313484A Pending JPS61151745A (en) 1984-12-26 1984-12-26 Interruption processing system

Country Status (1)

Country Link
JP (1) JPS61151745A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0622305U (en) * 1992-07-07 1994-03-22 紀雄 中西 Lower body underwear with diaper storage
CN102135912A (en) * 2011-04-02 2011-07-27 大唐移动通信设备有限公司 Interruption jitter processing method and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0622305U (en) * 1992-07-07 1994-03-22 紀雄 中西 Lower body underwear with diaper storage
CN102135912A (en) * 2011-04-02 2011-07-27 大唐移动通信设备有限公司 Interruption jitter processing method and equipment

Similar Documents

Publication Publication Date Title
JPS61151745A (en) Interruption processing system
JPS6243734A (en) Microprocessor
JPH01273132A (en) Microprocessor
JPH082727Y2 (en) Programmable sequencer
JPS62156738A (en) Program controller
JPH0283749A (en) Internal interruption control system for microprocessor
JPS61166631A (en) Microprogram control processor
JPH02263256A (en) Microcomputer and controller
KR0157456B1 (en) User determined function of robot controller
JPS61202231A (en) Data processor containing microprocessor
JPS61182163A (en) Program expanding system
JPH0340075A (en) Microcomputer
JPS628243A (en) Cache memory
JPH01276241A (en) Multiple interrupting device
JPH0812609B2 (en) Microprocessor
JPS58109908A (en) Monitor for sequence controller
JPH05233026A (en) Microcomputer circuit
JPH02205987A (en) Arithmetic processing system
JPH02253487A (en) Control module for data flow type computer
JPH05281290A (en) Data transfer circuit of ic tester sharing storage circuit
JPH04245333A (en) Information processor
JPH03130832A (en) Interruption controller
JPS63196903A (en) Programmable controller
JPS61187044A (en) Information processor
JPS6120139A (en) Interruption control system