JPS5829053A - Program correction controlling method with interruption - Google Patents

Program correction controlling method with interruption

Info

Publication number
JPS5829053A
JPS5829053A JP56128036A JP12803681A JPS5829053A JP S5829053 A JPS5829053 A JP S5829053A JP 56128036 A JP56128036 A JP 56128036A JP 12803681 A JP12803681 A JP 12803681A JP S5829053 A JPS5829053 A JP S5829053A
Authority
JP
Japan
Prior art keywords
routine
address
program
correction
interruption
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
JP56128036A
Other languages
Japanese (ja)
Inventor
Katsumi Katagiri
片桐 克己
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.)
Nippon Signal Co Ltd
Original Assignee
Nippon Signal 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 Nippon Signal Co Ltd filed Critical Nippon Signal Co Ltd
Priority to JP56128036A priority Critical patent/JPS5829053A/en
Publication of JPS5829053A publication Critical patent/JPS5829053A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Abstract

PURPOSE:To decrease the interruption time of debug and check, by preparing a correction routine control table and making a program to jump to this routine when a correction routine corresponding to this table exists. CONSTITUTION:If a program reaches a routine in error after the execution of a routine, the address is detected at an interruption control circuit 3 and a processor 1 and the circuit 3 stores an interruption generating address to an interruption generating register 4. In the interruption processing routine, the register 4 is read at first. In a correction routine, a correction routine control table MTBL is prepared in advance and after the read in the register 4, this MTBL is referenced. When the correction routine corresponding to the interruption generating address to be read exists, the program jumps to the correction routine address and after the execution of the correction routine, the program jumps to the next processing routine in skipping the routine in error.

Description

【発明の詳細な説明】 本発明はプログラム修正の8昌化と一括管理化を図った
割込みによるプログラム修正制御方法に関する〇 従来、プログラムの修正は、プログラム実行誤りがある
とプログラムを再度コンパイルまたはアセンブルするか
、あるいはパッチによりプログラム内に修正ルーチンを
格納していたため、次のような欠点があった◎すなわち
、プログラムの8菫が増加するプログラムの修正は再ア
センブルや再コンパイルが必要となる・また、再アセン
ブルや再コンパイルが必要となるために、他プログラム
のメモリ配置を変更しなければならない口また、コンパ
イルやアセンブルの手続をパックランド処理で対処でき
る情報処理システムにおいては、プログラムの修正を比
較的短時間で行うことが司能であるが、小規模なシステ
ムにおいては、上位システムの助けを借りたり、自シス
テム内C:ランゲージ処理系をローダイングしなければ
ならない場合が多く、プログラムのデバッグや検査が中
断してしまう。また、プログラムの容量が増加しないプ
ログラム軽圧の場合は、その修正ルータ/lパップによ
りプログラム内に格納していた為、プログラムの修正状
態の把握がしにくい◎さらに、ROMC格納されたプロ
グラムの修正が簡!I#(−行うことができない。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a program modification control method using interrupts that aims to make program modification eight-fold and batch management. Conventionally, program modification involves recompiling or assembling the program when a program execution error occurs. Since the modification routines were stored in the program by patching or patching, there were the following drawbacks: ◎In other words, modification of a program that increases the number of 8 violets in the program requires reassembly and recompilation. In addition, in information processing systems where compiling and assembling procedures can be handled by Pac-Land processing, it is necessary to compare program modifications. However, in small-scale systems, it is often necessary to ask for help from a higher-level system or to load the C language processing system within the own system, making it difficult to debug programs and The inspection will be interrupted. In addition, in the case of a program that does not increase the program capacity, it is difficult to grasp the program modification status because it is stored in the program by the modification router/lpap.In addition, it is difficult to grasp the modification status of the program. It's easy! I#(- cannot be done.

本発明の目的は、従来技術C二おける上記欠点を解決す
ること、すなわち、デバッグや検査の中断時間が少なく
%修正状況も把握でき、ROMに記憶されたプログラム
も修正することのできるプログラム修正制御方法を提供
することシーある0以上本発明を図面1:示す笑施例区
;より説明する@第1図は本発明のプログラム修正側測
方法を適用する情報処理装置であり、1はメモ月:記憶
されたプログラムE:従ってデータ処理をするプロセッ
サ、2はデータ、プログラム、割込み処理ルーチンおよ
び修正ルーチンを記憶するメモリ、5は予め定められた
アドレスへのアクセスを検出して割込みを発生させる割
込み制御回路、4は破割込み制御回路によって割込み7
発化させたアドレスな紀憶する割込み発生アドレス保持
レジスタ、5はこれらの構成要素を接続するパスライン
、6はこれらの構成要素を制御するコントロールライン
である0 このような構成監−おいて、@2崗%第5図6二示すフ
ローによりプログラムの修正側(財)を行うOプログラ
ム7内i;ルーテン7a%7b、7c・・・があり、7
bが誤ったルーテンである場合、誤ったルーテン7bの
アドレスへのアクセスは割込み制御回路5で検出される
ようgニなっており、かつ誤りだルーテンI:対する修
正ルーチン8i(1=1〜N)が予め定1つだアドレス
に紀憶されている0従って、プログラムがルーチン7a
を実行後、誤ったルーテン7bに達すると、そのアドレ
スが割込み制御回路5により検出され、プロセッサ1お
よび割込み制御回路3はパスライン6を介してN込み発
生レジスタ4に割込み発生アドレスな紀憶し、割込み処
理ルーチン9ヘジヤンプする0割込み処理ルーチン9に
おいては、第5図に示すよう(二、まず割込み発生アド
レス保持レジスタ4を読込む(9a)oここで、@記修
正ルーチン81については、予め、第4図に示すような
修正ルーチンコントロールテーブル(MTBL)が用意
されており、このMTBLには、プログラム番号と、1
1込み発生アドレスと、これ(=対応する修正ルーチン
アドレスと、修正ルーテンがM効か無効かを示すフラグ
Fが修正ルーテンの数だけ配憶されており1割込み発生
アドレス保持レジスタ読込みr9a)の後、該MTBL
’に参照する(9’b)0そして、読込まれた割込み発
生アドレスC:対応した修正ルーテンがあるか否か(す
なわちFが“11であるか否か)を判別しく9c)、i
正ルーチンがあれば対応する修正ルーテンアドレスにジ
ャンプし、修正ルーテンC8〜81.のウチノ1つ)を
実行した後、誤ったルーテン7bを飛び越えて次の処理
ルーチン7Cにジャンプする・一方、対応する修正ルー
テンが無い(F=’0”)の場合C:は、割込み発生ア
ドレスC;復帰する0以上述べたようI:、本発明g二
おいては、誤ったルーチン(二対応する修正ルーチンを
定まったエリアに一括して記憶しておき、かつ誤ったル
ーテンのアドレス(:対応する修正ルーチンのアドレス
を記録した修正ルーテンコントロールテーブルt′用意
しておき、割込み制御回路によって誤ったルーチンのア
ドレスへのアクセスが検出されたときζ−は該アドレス
をデータとして1記修正ルーテンコントロールテーブル
を参照し、対応する修正ルーチンがある場合ζ:は該ル
ーチンヘジャンプするようにしたものであるから、8董
の増mするプログラムの修正を行う場合、一括して確保
している修正ルーチン格納エリアに修正ルーラーンを格
納すればよいため、従来のよう檻−再アセンプルや再コ
ンパイルが不必要になり、かつプログラムのメモリ配置
の変史を行う必要がなく、デバッグや恢食の中断時間が
短かくてすむ◎また、普正ルーテンコントa−ルテーブ
ルー二日時等の情報も記憶することにより修正状況を逸
′81=把握でさ、かつ1じ正ルーチンを一括一理でき
る◎また。修正ルーテンコントロールテーブルや修正ル
ーテンをRAM1m1+保するようC二すれは、ROλ
N二5己憶されたプaグラムも修正することができる◎
The purpose of the present invention is to solve the above-mentioned drawbacks of the prior art C2, that is, to provide a program modification control that can reduce the interruption time of debugging and inspection, can grasp the percentage modification status, and can also modify programs stored in ROM. To provide a method, the present invention will be explained in more detail in Figure 1. Figure 1 shows an information processing device to which the program correction side measurement method of the present invention is applied, and 1 is a memo month. : Stored program E: Therefore, a processor that processes data; 2 is a memory that stores data, programs, interrupt handling routines, and modification routines; 5 is an interrupt that detects access to a predetermined address and generates an interrupt. control circuit, 4 is interrupt 7 by the interrupt control circuit
An interrupt generation address holding register stores the generated address, 5 is a path line connecting these components, and 6 is a control line that controls these components. @2g% Figure 5 62 There are programs 7 i; routine 7a% 7b, 7c, etc. that perform the modification side of the program according to the flow shown in 62.
If routine b is an incorrect routine, the access to the address of the incorrect routine 7b is detected by the interrupt control circuit 5, and the correction routine 8i (1=1 to N ) is predetermined and is stored at the address 0. Therefore, the program starts with routine 7a.
When the incorrect routine 7b is reached after execution, the interrupt control circuit 5 detects the address, and the processor 1 and the interrupt control circuit 3 store the interrupt generation address in the N interrupt generation register 4 via the path line 6. , jump to the interrupt processing routine 9 0 In the interrupt processing routine 9, as shown in FIG. , a modified routine control table (MTBL) as shown in Figure 4 is prepared, and this MTBL contains the program number and 1
After reading the 1-interrupt generation address and this (=corresponding modification routine address and flag F indicating whether the modification routine is valid or invalid for the number of modification routines, and reading the 1-interrupt generation address holding register r9a), The MTBL
9c), i
If there is a regular routine, it jumps to the corresponding modified routine address and modifies the modified routines C8 to C81. After executing the routine 7b, jump to the next processing routine 7C. On the other hand, if there is no corresponding correction routine (F='0"), C: is the interrupt generation address. C: Return 0 As mentioned above, I: In the present invention g2, the correction routines corresponding to the incorrect routine (2) are collectively stored in a predetermined area, and the address of the incorrect routine (: A modified routine control table t' in which addresses of corresponding modified routines are recorded is prepared, and when an access to an incorrect routine address is detected by the interrupt control circuit, ζ- uses the address as data and executes the modified routine control table 1. When the table is referenced and there is a corresponding modification routine, ζ: jumps to that routine. Therefore, when modifying a program that increases by 8, the modification routine that is reserved all at once is used. Since the modified rules can be stored in the storage area, there is no need for conventional cage reassembly or recompilation, and there is no need to change the program's memory layout, reducing the time required for debugging and reprocessing. It is short. Also, by memorizing information such as date and time, you can keep track of the modification status and manage all the correct routines at once. In order to keep the control table and correction routine in RAM 1m1+, C2 is ROλ.
N25 You can also modify your own memorized programs◎

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

W41図は本発明を適用する情報処理装備の構成図、W
、2図は本発明C二よるプログラム修正制御方法の一実
施例を示すフロー図、第3図はその割込み処理ルーテン
のフロー図、sR4図は修正ルーテンコントロールテー
ブルの一例図である。 5 ・・・ パスライン 6・・・ コントロールライン 7 ・・・ プログラム 特許出動式  日本信号株式会社 第1図 第2図
Figure W41 is a configuration diagram of information processing equipment to which the present invention is applied;
, 2 is a flowchart showing an embodiment of the program modification control method according to the present invention C2, FIG. 3 is a flowchart of its interrupt processing routine, and FIG. sR4 is an example of a modification routine control table. 5... Pass line 6... Control line 7... Program patent dispatch ceremony Nippon Signal Co., Ltd. Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] (11プログラム実行≦:おいて予め定められたアドレ
スへのアクセスを検出したときに割込みを発生させる割
込み制御回路と1割込み発生アドレスを保持するレジス
タとを備えた情報処理装置C:おいて、誤ったルーテン
区二対応するC正ルーチンを定まったエリアに記憶して
おき、かつ誤ったルーチンのアドレスに対応する修正ル
ーテンのアドレスなC録した修正ループ/コントロール
テーブルを用意しておき、前記割込み制飢回路C:より
て誤りたルーチンのアドレスが検出されたときには該ア
ドレスをデータとして前記修正ルーチンコントa−ルテ
ーブルを参照し、対応する修正ルーチンがある場合には
該ルーデンI:ジャンプするよう6二したことを特徴と
する割込みC二よるプログラム修正制御方法。
(Information processing device C equipped with an interrupt control circuit that generates an interrupt when an access to a predetermined address is detected in 11 program execution ≦: and a register that holds 1 interrupt generation address) A correction loop/control table is prepared in which the correct routine corresponding to the incorrect routine is stored in a predetermined area, and the address of the correction routine corresponding to the address of the incorrect routine is recorded in C. Starvation circuit C: When the address of an erroneous routine is detected, the address is used as data to refer to the correction routine control table, and if there is a corresponding correction routine, the routine is executed to jump. 2. A program modification control method using interrupt C2.
JP56128036A 1981-08-14 1981-08-14 Program correction controlling method with interruption Pending JPS5829053A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56128036A JPS5829053A (en) 1981-08-14 1981-08-14 Program correction controlling method with interruption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56128036A JPS5829053A (en) 1981-08-14 1981-08-14 Program correction controlling method with interruption

Publications (1)

Publication Number Publication Date
JPS5829053A true JPS5829053A (en) 1983-02-21

Family

ID=14974923

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56128036A Pending JPS5829053A (en) 1981-08-14 1981-08-14 Program correction controlling method with interruption

Country Status (1)

Country Link
JP (1) JPS5829053A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6033631A (en) * 1983-08-04 1985-02-21 Panafacom Ltd Microprogram controlling system
JPS6318441A (en) * 1986-07-09 1988-01-26 Natl Space Dev Agency Japan<Nasda> On-board computer for space-flying body
JPS6318440A (en) * 1986-07-09 1988-01-26 Natl Space Dev Agency Japan<Nasda> On-board computer for space-flying body
JPH0889119A (en) * 1994-09-28 1996-04-09 Mutsuo Tanaka Feeder and monitoring system using the same

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6033631A (en) * 1983-08-04 1985-02-21 Panafacom Ltd Microprogram controlling system
JPS6318441A (en) * 1986-07-09 1988-01-26 Natl Space Dev Agency Japan<Nasda> On-board computer for space-flying body
JPS6318440A (en) * 1986-07-09 1988-01-26 Natl Space Dev Agency Japan<Nasda> On-board computer for space-flying body
JPH0889119A (en) * 1994-09-28 1996-04-09 Mutsuo Tanaka Feeder and monitoring system using the same

Similar Documents

Publication Publication Date Title
US7353500B2 (en) Suppressing execution of monitoring measurement program pointed to by inserted branch after threshold number of coverage to reduce instruction testing overhead
JPS5829053A (en) Program correction controlling method with interruption
JPS58154043A (en) Information processor
JP3130798B2 (en) Bus transfer device
JP3140028B2 (en) Subroutine argument passing method
JP3263999B2 (en) Program content analyzer
JP3171615B2 (en) Data transfer retry control method
JP3309792B2 (en) Stack pointer trace device, stack pointer trace method, and recording medium
JP2677043B2 (en) Program development support device
JPS61279949A (en) Program debug system
JPH0275032A (en) Debugging processing system
JP2506591B2 (en) Auxiliary processor
KR890016477A (en) Operation program and data loading method of electronic exchange
JPS6314381B2 (en)
JPS5945565A (en) System for controlling microprogram
JPS61157948A (en) Interrupt source analyzing device
JPH01283645A (en) Electronic calculator
JPH01106237A (en) Program debugging system
JPS6214240A (en) Program inspecting system
JPS63103330A (en) Detecting system for misuse of address stack
JPS60214046A (en) Control system for abnormal end processing
JPH02263243A (en) Runaway processor for computer
JPH06231201A (en) Logical verification environment setting device
JPH0480860A (en) Program loading system
JPH04140865A (en) Trace control system