JPS6239778B2 - - Google Patents

Info

Publication number
JPS6239778B2
JPS6239778B2 JP56097809A JP9780981A JPS6239778B2 JP S6239778 B2 JPS6239778 B2 JP S6239778B2 JP 56097809 A JP56097809 A JP 56097809A JP 9780981 A JP9780981 A JP 9780981A JP S6239778 B2 JPS6239778 B2 JP S6239778B2
Authority
JP
Japan
Prior art keywords
address
software interrupt
processor
sent
interrupt instruction
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
Application number
JP56097809A
Other languages
Japanese (ja)
Other versions
JPS57212550A (en
Inventor
Masahide Kubo
Shigeki Nakauchi
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP9780981A priority Critical patent/JPS57212550A/en
Publication of JPS57212550A publication Critical patent/JPS57212550A/en
Publication of JPS6239778B2 publication Critical patent/JPS6239778B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Description

【発明の詳細な説明】 本発明はソフトウエア割込レベル拡張方式、特
にソフトウエア割込命令を実行するプロセツサに
おけるソフトウエア割込レベル拡張方式に関す。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a software interrupt level expansion method, and more particularly to a software interrupt level expansion method in a processor that executes software interrupt instructions.

この種ソフトウエア割込命令は、プロセツサが
処理プログラムを実行中に、実行管理プログラム
に処理を移行する場合以外に、各種サブルーチン
プログラムを呼出す場合にも使用される。
This type of software interrupt instruction is used not only when a processor is executing a processing program to transfer processing to an execution management program, but also when calling various subroutine programs.

第1図はこの種プロセツサにおける従来あるソ
フトウエア割込命令実行方式の一例を示す図であ
る。第1図において、ソフトウエア割込命令SWI
を実行するに先立ち、プロセツサOPUは内蔵す
るインデクスレジスタXに実行すべき処理種別を
示すレベル値i(iは1乃至N、以下同様)を蓄
積する命令LDXを実行しておく。かゝる状態に
おいて、ソフトウエア割込命令SWIをメモリ
MEMから読出したプロセツサCPUは、公知の如
く内蔵するレジスタ類の内容をメモリMEMへ退
避させた後、アドレスバスAB0乃至AB15に特
定のアドレスAXおよびAX+1を順次送出し、メ
モリMEMのアドレスAXおよびAX+1に予め格
納されている特定のアドレスAYの、下位8ビツ
トAY(L)および上位8ビツトAY(H)をデータバス
DB0乃至DB7を介して順次読出し、プログラム
カウンタPCにアドレスAYとして蓄積する。次に
プロセツサOPUはプログラムカウンタPCに蓄積
されているアドレスAYをアドレスバスAB0乃至
AB15に送出し、ソフトウエア割込み用の管理
プログラムP0の実行を開始する。該管理プログ
ラムP0の実行過程で、プロセツサCPUはイン
デクスレジスタに予め蓄積されているレベル値i
に対応する処理用プログラムPiの先頭アドレスAi
を得て、アドレスバスAB0乃至AB15に送出
し、該処理用プログラムPiの実行を開始する。
FIG. 1 is a diagram showing an example of a conventional software interrupt instruction execution method in this type of processor. In Figure 1, software interrupt instruction SWI
Prior to executing , the processor OPU executes an instruction LDX that stores a level value i (i is 1 to N, hereinafter the same) indicating the type of processing to be executed in the built-in index register X. In such a state, the software interrupt instruction SWI is stored in memory.
The processor CPU that has read from MEM saves the contents of built-in registers to memory MEM as is well known, and then sequentially sends specific addresses AX and AX+1 to address buses AB0 to AB15, The lower 8 bits AY (L) and upper 8 bits AY (H) of a specific address AY stored in advance in the data bus
It is read out sequentially via DB0 to DB7 and stored in the program counter PC as address AY. Next, the processor OPU transfers the address AY stored in the program counter PC from the address bus AB0 to
AB15 and starts execution of the software interrupt management program P0. During the execution process of the management program P0, the processor CPU uses the level value i stored in the index register in advance.
The starting address Ai of the processing program Pi corresponding to
and sends it to address buses AB0 to AB15 to start execution of the processing program Pi.

以上の説明から明らかな如く、従来あるソフト
ウエア割込命令実行方式によれば、プロセツサ
CPUはレベル値iに対応する所望の処理用プロ
グラムPiを実行するに先立ち、先ず管理プログラ
ムP0を実行して、次に実行すべき処理用プログ
ラムPiの選択を行わねば多様の処理を選択実行出
来ず、ソフトウエア割込命令SWIの実行時間を増
大させる。
As is clear from the above explanation, according to the conventional software interrupt instruction execution method, the processor
Before executing the desired processing program Pi corresponding to the level value i, the CPU must first execute the management program P0 and select the processing program Pi to be executed next, in order to select and execute various processes. First, it increases the execution time of the software interrupt instruction SWI.

本発明の目的は、前述の如き従来あるソフトウ
エア割込命令実行方式の欠点を除去し、プロセツ
サが多様の処理を伴うソフトウエア割込命令の実
行に要する時間を短縮させることにある。
SUMMARY OF THE INVENTION An object of the present invention is to eliminate the drawbacks of the conventional software interrupt instruction execution method as described above, and to shorten the time required for a processor to execute a software interrupt instruction that involves various processing.

この目的は、ソフトウエア割込命令を実行する
プロセツサにおいて、該プロセツサがアドレスバ
スに送出する所定アドレスを検出すると、同時に
データバスに送出するデータを蓄積するレジスタ
と、該レジスタの蓄積する前記データに対応する
アドレスを作成する変換手段と、前記プロセツサ
が前記ソフトウエア割込命令を実行時に、前記ア
ドレスバスに送出する所定のアドレスを検出する
と、前記変換手段の作成する前記アドレスを前記
データバスに送出する手段とを配することにより
達成される。
The purpose of this is that in a processor that executes a software interrupt instruction, when the processor detects a predetermined address to be sent to the address bus, it simultaneously creates a register that stores data to be sent to the data bus, and a register that stores the data stored in the register. a conversion means for creating a corresponding address; and when the processor detects a predetermined address to be sent to the address bus when executing the software interrupt instruction, the processor sends the address created by the conversion means to the data bus. This can be achieved by arranging means to do this.

以下、本発明の一実施例を第2図により説明す
る。第2図は本発明の一実施例によるソフトウエ
ア割込命令実行方式を示す図である。なお、全図
を通じて、同一符号は同一対象を示す。第2図に
おいては、プロセツサCPUの外部にレベルレジ
スタLVR、変換回路TRLおよび各種ゲート回路
G1乃至G4が設けられ、アドレスバスAB0乃
至AB15あるいはデータバスDB0乃至DB7を
介してプロセツサCPUに接続されている。プロ
セツサCPUはソフトウエア割込命令SWIを実行
するに先立ち、先ず命令LDAA#LViを実行し、
ソフトウエア割込みにより実行すべき処理種別を
示すレベル値#LViを内蔵するアキユムレータ
AAに蓄積する。次にプロセツサCPUは命令
STAA LVRを実行し、レベルレジスタLVRに付
与されるアドレスALをアドレスバスAB0乃至1
5に送出し、またアキユムレータAAに蓄積され
ているレベル値#LViを送出する。ゲートG3は
アドレスバスAB0乃至AB15に送出されるアド
レスALを検出し、ゲートG1を導通状態とす
る。その結果、データバスDB0乃至DB7に送出
されているレベル値#LViは、レベルレジスタ
LVRに蓄積される。一方変換回路TLRは、レベ
ルレジスタLVRから蓄積中のレベル値#LViを受
領し、該レベル値#LViに対応する処理用プログ
ラムPiが格納されている先頭アドレスAiに変換す
る。かゝる状態において、ソフトウエア割込命令
SWIをメモリMEMから読出したプロセツサCPU
は、第1図におけると同様に、アドレスバスAB
0乃至AB15に特定のアドレスAXを先ず送出す
る。ゲートG4はアドレスバスAB1乃至AB15
に送出される該アドレスAX(但し最下位ビツト
を除く)を検出し、ゲートG2を導通状態とす
る。またアドレスバスAB0に送出されるアドレ
スAXの最下位ビツト0を受領した変換回路TLR
は、前記先頭アドレスAiの下位8ビツトAi(L)を
ゲートG2を介してデータバスDB0乃至DB7に
送出する。プロセツサCPUはデータバスDB0乃
至DB7を介して該先頭アドレスAiの下位8ビツ
トAi(L)を受領し、プログラムカウンタPCの下位
8ビツトに蓄積する。続いてプロセツサCPU
は、アドレスバスAB0乃至AB15に特定アドレ
スAX+1を送出する。ゲートG4は前述と同様に
してゲートG2を導通状態とする。またアドレス
バスAB0に送出されるアドレスAX+1の最下位
ビツト1を受領した変換回路TLRは、前記先頭
アドレスAiの上位8ビツトAi(H)をゲートG2を
介してデータバスDB0乃至DB7に送出する。プ
ロセツサCPUはデータバスDB0乃至DB7を介し
て該先頭アドレスAiの上位8ビツトAi(H)を受領
し、プログラムカウンタPCの上位8ビツトに蓄
積する。以上によりプロセツサCPUのプログラ
ムカウンタPCには処理用プログラムPiの先頭ア
ドレスAiが蓄積される。以後、プロセツサCPU
は第1図と同様に処理用プログラムPiを実行す
る。
An embodiment of the present invention will be described below with reference to FIG. FIG. 2 is a diagram showing a software interrupt instruction execution method according to an embodiment of the present invention. Note that the same reference numerals indicate the same objects throughout the figures. In FIG. 2, a level register LVR, a conversion circuit TRL, and various gate circuits G1 to G4 are provided outside the processor CPU, and are connected to the processor CPU via address buses AB0 to AB15 or data buses DB0 to DB7. . Before executing the software interrupt instruction SWI, the processor CPU first executes the instruction LDAA#LVi,
Accumulator with built-in level value #LVi that indicates the type of processing to be executed by software interrupt
Accumulates in AA. Next, the processor CPU
Executes STAA LVR and transfers the address AL assigned to the level register LVR to address buses AB0 to AB1.
5, and also sends the level value #LVi stored in the accumulator AA. Gate G3 detects the address AL sent to address buses AB0 to AB15 and turns gate G1 into a conductive state. As a result, the level value #LVi sent to the data buses DB0 to DB7 is stored in the level register.
Accumulated in LVR. On the other hand, the conversion circuit TLR receives the level value #LVi being stored from the level register LVR, and converts it to the start address Ai where the processing program Pi corresponding to the level value #LVi is stored. In such a state, a software interrupt instruction
Processor CPU that read SWI from memory MEM
is the same as in Figure 1, the address bus AB
First, a specific address AX is sent from 0 to AB15. Gate G4 is connected to address buses AB1 to AB15
The address AX (excluding the least significant bit) sent to the address AX is detected, and the gate G2 is made conductive. Also, the conversion circuit TLR receives the lowest bit 0 of the address AX sent to the address bus AB0.
sends the lower 8 bits Ai(L) of the start address Ai to the data buses DB0 to DB7 via the gate G2. The processor CPU receives the lower 8 bits Ai(L) of the start address Ai via the data buses DB0 to DB7, and stores it in the lower 8 bits of the program counter PC. Next is the processor CPU
sends a specific address AX+1 to address buses AB0 to AB15. Gate G4 makes gate G2 conductive in the same manner as described above. Further, the conversion circuit TLR that receives the least significant bit 1 of the address AX+1 sent to the address bus AB0 sends the upper 8 bits Ai(H) of the start address Ai to the data buses DB0 to DB7 via the gate G2. The processor CPU receives the upper 8 bits Ai(H) of the start address Ai via the data buses DB0 to DB7, and stores it in the upper 8 bits of the program counter PC. As described above, the start address Ai of the processing program Pi is stored in the program counter PC of the processor CPU. From now on, the processor CPU
executes the processing program Pi in the same way as in FIG.

以上の説明から明らかな如く、本実施例によれ
ば、プロセツサCPUはソフトウエア割込命令
SWIの実行に当つて、特定アドレスAXおよびAX
+1をアドレスバスAB0乃至AB15に送出する
と、直ちに所望の処理用プログラムPiの先頭アド
レスAiをデータバスDB0乃至DB7から受領する
ことが出来、第1図におけるが如く、メモリ
MEMからアドレスAYを読出し、管理プログラム
P0を実行する過程は全く不要となる。
As is clear from the above explanation, according to this embodiment, the processor CPU receives software interrupt instructions.
When executing SWI, specific addresses AX and AX
When +1 is sent to the address buses AB0 to AB15, the start address Ai of the desired processing program Pi can be immediately received from the data buses DB0 to DB7, and as shown in FIG.
The process of reading address AY from MEM and executing management program P0 is completely unnecessary.

なお、第2図はあく迄本発明の一実施例に過ぎ
ず、例えばアドレスバスAB0乃至AB15および
データバスDB0乃至DB7の構成はそれぞれ16
および8に限定されることは無く、他の任意数で
あつても本発明の効果は変らない。またそれに伴
い、変換回路TLRからデータバスDB0乃至DB7
にアドレスAiの送出方法も図示されるものに限
定されることは無く、種々の変形が考慮される
が、何れの場合にも本発明の効果は変らない。
Note that FIG. 2 is only one embodiment of the present invention, and for example, the address buses AB0 to AB15 and the data buses DB0 to DB7 each have a configuration of 16
The number is not limited to 8 and 8, and the effects of the present invention do not change even if the number is set to any other arbitrary number. In addition, along with this, data buses DB0 to DB7 are connected from the conversion circuit TLR to
The method of sending the address Ai is not limited to the one shown in the figure, and various modifications may be considered, but the effects of the present invention remain the same in either case.

以上、本発明によれば、ソフトウエア割込命令
を実行するプロセツサが直ちに所望の処理を実行
するための処理用プログラムの先頭アドレスを得
ることが出来、該ソフトウエア割込命令の実行時
間が短縮される。
As described above, according to the present invention, a processor that executes a software interrupt instruction can immediately obtain the start address of a processing program to execute a desired process, and the execution time of the software interrupt instruction is shortened. be done.

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

第1図は従来あるソフトウエア割込命令実行方
式の一例を示す図、第2図は本発明の一実施例に
よるソフトウエア割込命令実行方式を示す図であ
る。 図において、CPUはプロセツサ、MEMはメモ
リ、AB0乃至AB15はアドレスバス、DB0乃
至DB7はデータバス、Xはインデクスレジス
タ、PCはプログラムカウンタ、AAはアキユムレ
ータ、AX,AX+1,AY(L),AY(H),AY,A1
乃至ANおよびALはアドレス、P0は管理プログ
ラム、P1乃至PNは処理用プログラム、LVRは
レベルレジスタ、TLRは変換回路、G1乃至G
4はゲート、#LVはレベル値、Rはプロセツサ
がデータを読取ることを示す信号、Wは同じく書
込むことを示す信号、を示す。
FIG. 1 is a diagram showing an example of a conventional software interrupt instruction execution method, and FIG. 2 is a diagram showing a software interrupt instruction execution method according to an embodiment of the present invention. In the figure, CPU is a processor, MEM is a memory, AB0 to AB15 are address buses, DB0 to DB7 are data buses, X is an index register, PC is a program counter, AA is an accumulator, AX, AX+1, AY(L), AY( H),AY,A1
AN to AN and AL are addresses, P0 is a management program, P1 to PN are processing programs, LVR is a level register, TLR is a conversion circuit, G1 to G
4 is a gate, #LV is a level value, R is a signal indicating that the processor reads data, and W is a signal indicating that the processor also writes data.

Claims (1)

【特許請求の範囲】[Claims] 1 ソフトウエア割込命令を実行するプロセツサ
において、該プロセツサがアドレスバスに送出す
る所定アドレスを検出すると、同時にデータバス
に送出するデータを蓄積するレジスタと、該レジ
スタの蓄積する前記データに対応するアドレスを
作成する変換手段と、前記プロセツサが前記ソフ
トウエア割込命令を実行時に、前記アドレスバス
に送出する所定のアドレスを検出すると、前記変
換手段の作成する前記アドレスを前記データバス
に送出する手段とを配することを特徴とするソフ
トウエア割込レベル拡張方式。
1 In a processor that executes a software interrupt instruction, when the processor detects a predetermined address to be sent to the address bus, it simultaneously creates a register that stores data to be sent to the data bus, and an address corresponding to the data stored in the register. and means for sending the address created by the converting means to the data bus when the processor detects a predetermined address to be sent to the address bus when executing the software interrupt instruction. A software interrupt level expansion method characterized by arranging.
JP9780981A 1981-06-24 1981-06-24 Extension system for software interruption level Granted JPS57212550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9780981A JPS57212550A (en) 1981-06-24 1981-06-24 Extension system for software interruption level

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9780981A JPS57212550A (en) 1981-06-24 1981-06-24 Extension system for software interruption level

Publications (2)

Publication Number Publication Date
JPS57212550A JPS57212550A (en) 1982-12-27
JPS6239778B2 true JPS6239778B2 (en) 1987-08-25

Family

ID=14202089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9780981A Granted JPS57212550A (en) 1981-06-24 1981-06-24 Extension system for software interruption level

Country Status (1)

Country Link
JP (1) JPS57212550A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5232647A (en) * 1975-09-08 1977-03-12 Mitsui Eng & Shipbuild Co Ltd Interruption system of electronic computer
JPS5239335A (en) * 1975-09-25 1977-03-26 Hitachi Ltd Interrupt control system
JPS5475242A (en) * 1977-11-29 1979-06-15 Toshiba Corp Interrupt processing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5232647A (en) * 1975-09-08 1977-03-12 Mitsui Eng & Shipbuild Co Ltd Interruption system of electronic computer
JPS5239335A (en) * 1975-09-25 1977-03-26 Hitachi Ltd Interrupt control system
JPS5475242A (en) * 1977-11-29 1979-06-15 Toshiba Corp Interrupt processing system

Also Published As

Publication number Publication date
JPS57212550A (en) 1982-12-27

Similar Documents

Publication Publication Date Title
EP0263886B1 (en) Interrupt control method in a multiprocessor system
US4949241A (en) Microcomputer system including a master processor and a slave processor synchronized by three control lines
JP3676882B2 (en) Microprocessor and its peripheral devices
EP0240606A2 (en) Pipe-line processing system and microprocessor using the system
JPS6239778B2 (en)
JPH0376508B2 (en)
JP3130798B2 (en) Bus transfer device
JPS5826043B2 (en) Processor reset method
JP2501393B2 (en) Direct memory access device
JP3091382B2 (en) Keyboard input reading method
JPH02171949A (en) Dma transfer system
JPS6126701B2 (en)
JPS6120139A (en) Interruption control system
JPS59147247U (en) Interrupt vector conversion circuit in computer system
JPS5851333U (en) Program processing device
JPH03225551A (en) Input and output device access control system
JPS6326744A (en) Memory bank switching circuit for microprocessor
JPS63733A (en) Program execution processing system
JPS54157444A (en) Memory control system
JPH0440723B2 (en)
JPH03107748U (en)
JPH0474342U (en)
JPH0436604U (en)
JPH03129536A (en) Brake address detecting device
JPH03255507A (en) Programmable controller