JPS60126731A - Program control method - Google Patents
Program control methodInfo
- Publication number
- JPS60126731A JPS60126731A JP58234253A JP23425383A JPS60126731A JP S60126731 A JPS60126731 A JP S60126731A JP 58234253 A JP58234253 A JP 58234253A JP 23425383 A JP23425383 A JP 23425383A JP S60126731 A JPS60126731 A JP S60126731A
- Authority
- JP
- Japan
- Prior art keywords
- program
- address
- altered
- written
- rom
- 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
Links
Abstract
Description
【発明の詳細な説明】
〔発明の利用分野〕
本発明は、パーソナルコンピュータのROMに存在する
プログラムの一部を変更したい場合に、ROMの書換え
を行うことなく、変更を行ったプログラムを簡単に実行
できるようにしたプログラム制御方法に関する。[Detailed Description of the Invention] [Field of Application of the Invention] The present invention provides a method for easily changing a part of a program existing in the ROM of a personal computer without rewriting the ROM. This invention relates to a method for controlling programs that can be executed.
従来は、パーソナルコンピュータのROMに存在するプ
ログラムを変更する場合には、ROMの内容を書換え、
この書換えた新規のROMを装着する必要があり、この
ため、プログラムの変更、変更後のデバッグに、手間、
時間を費やすことになるという問題があった。Conventionally, when changing a program existing in the ROM of a personal computer, it was necessary to rewrite the contents of the ROM and
It is necessary to install this new rewritten ROM, which requires time and effort to change programs and debug after changes.
The problem was that it was time consuming.
本発明の目的は、上記のような問題がない、ROMに存
在するプログラムに対する変更位置と変更を加えたプロ
グラムとをRAMに書込むだけで、変更したプログラム
を簡単に実行できるようにしたプログラム制御方法を提
供することにある。An object of the present invention is to provide program control that does not have the above-mentioned problems and allows a modified program to be easily executed by simply writing the modified program and the modified program in the ROM to the RAM. The purpose is to provide a method.
上記目的を達成するために本発明においては、変更を要
するプログラムが存在するROMの他に、前記変更を行
ったプログラムを書込んだRAMと、このRAMから変
更が必要なアドレス情報を入力して保持するレジスタと
、このレジスタの出力である変更アドレスとアドレスバ
スとを入力としCPUへ割込み信号を出力するマルチプ
レクサとを設け、前記レジスタからの人力とアドレスバ
ス入力とが一致し、アドレスが変更位置に来たことが検
出されて前記マルチプレクサがCPUへ割込みを発生す
ると、実行中のROMプログラムを中止して前記RAM
中の変更を行ったプログラムの実行に移行する。ように
した。In order to achieve the above object, in the present invention, in addition to the ROM in which the program that needs to be changed exists, there is also a RAM in which the program that has been changed is written, and address information that needs to be changed is input from this RAM. A register is provided to hold the address, and a multiplexer is provided which receives the changed address output from this register and the address bus as input and outputs an interrupt signal to the CPU. When the multiplexer generates an interrupt to the CPU upon detecting that the
Shift to execution of the program with the changes made. I did it like that.
第1図は本発明一実施例のブロック図で、1はCPU、
2は変更を要するプログラムの存在するROM、3は変
更を行ったプログラムを書込んであるRAMa、4は変
更位置を検出するとCPUへ割込み信号を送出するマル
チプレクサ、5は変更アドレス位置を保持するデータラ
ッチ(レジスタ)、6は変更アドレスを格納するRAM
b、7はアドレスバス、8は割込み信号である。ただし
、RAMa3と、RAMb5とは物理的に別個に存在し
なければならない理由はなく、両者が同−RAM内に存
在して差支えない。FIG. 1 is a block diagram of one embodiment of the present invention, in which 1 is a CPU;
2 is a ROM in which the program to be changed exists, 3 is a RAM in which the changed program is written, 4 is a multiplexer that sends an interrupt signal to the CPU when the changed position is detected, and 5 is data that holds the changed address position. Latch (register), 6 is RAM that stores the changed address
b, 7 is an address bus, and 8 is an interrupt signal. However, there is no reason why RAMa3 and RAMb5 must exist physically separately, and both may exist in the same RAM.
ROM2に書込まれた変更を要するプログラムを実行中
に、RAMa 3に書込んである所望の変更を加えたプ
ログラムを実行する方法について以下述べる。まず、R
AMa3に書込んである変更を加えたプログラムによっ
て、変更プログラムアドレスをRAMb6に書込む。こ
のとき、変更アドレスが複数の場合もあるが、かかる場
合には、RAMb6には変更するアドレスを順番に格納
す為。次ぎに、変更アドレス発生時にCPUIへ割込み
をかけるには下記のようにして行う。変更アドレスをR
AMb6からデータラッチ5へ書込む。マルチプレクサ
4は、データラッチ5から、前記変更アドレスをセレク
ト入力し、アドレスバス7からの入力と一致して、アド
レスが所定の変更位置に来たことを検知すると、CPU
Iへ割込み信号8を発生させる。CPUIは、この割込
み信号8を受けると、それに従って、それまで実行して
いたR OM ’2中のプログラムの実行を中止して、
RAMa3に書込んであった所望の変更を加えたプログ
ラムヘジャンプする。これを第2図のメモリマツプで示
す。A領域のROM2中のプログラムを実行中に、C領
域のRAMa 3中の変更したプログラムを実行するた
めに、B領域のRAMb6に変更アドレスを書込むもの
とする。次ぎに、第3図により変更手順を述べる。RA
MbG中の変更アドレスをCPUIが読出し、データラ
、2チ5へ出力して保持させる。マルチプレクサ4は、
データラッチ5から入力されている変更アドレスと、ア
ドレスバス7から刻々変化して入力されるアドレスとを
比較して、一致すると割込み信号8を発生してCPUI
へ送出する。CPU1&よ、割込み信号8を受けると、
それまで実行してむまたROM2のプログラムの実行を
中止して、変更アドレスで示されるRAMaa中に格納
された変更を加えたプログラムヘジャンプする。ただし
、ジャンプする前に、CPUIは次の変更アドレス力(
RAMb6中に格納されていれば、その変更アドレスを
読出して、データラッチ5に入力して保持させ、アドレ
スバス7内に次の変更アドレスが来るまで待つ。次の変
更アドレスが来てからの処理は上記と同様である。A method for executing a program written in RAMa 3 with desired changes added thereto while executing a program written in ROM 2 requiring changes will be described below. First, R
The modified program address is written to RAMb6 by the modified program written in AMa3. At this time, there may be a plurality of addresses to be changed; in such a case, the addresses to be changed are stored in RAM b6 in order. Next, an interrupt is issued to the CPUI when a changed address occurs in the following manner. Change address R
Write from AMb6 to data latch 5. The multiplexer 4 selects and inputs the changed address from the data latch 5, and when it detects that the address has arrived at a predetermined changed position in coincidence with the input from the address bus 7, the CPU
Generates an interrupt signal 8 to I. When the CPUI receives this interrupt signal 8, it stops executing the program in ROM '2 that was being executed up to that point.
Jump to the program written in RAMa3 with the desired changes added. This is shown in the memory map of FIG. While the program in ROM2 in area A is being executed, a changed address is written to RAMb6 in area B in order to execute the changed program in RAMa3 in area C. Next, the modification procedure will be described with reference to FIG. R.A.
The CPUI reads the changed address in the MbG and outputs it to the data controller and 2chi 5 to be held there. Multiplexer 4 is
The changed address input from the data latch 5 is compared with the constantly changing address input from the address bus 7, and if they match, an interrupt signal 8 is generated and the CPU
Send to. When CPU1 & yo receives interrupt signal 8,
Execution of the program in ROM2 that has been executed up to that point is stopped, and the program jumps to the modified program stored in RAMaa indicated by the modified address. However, before jumping, the CPUI changes address power (
If it is stored in the RAM b6, the changed address is read out, inputted into the data latch 5 and held, and waits until the next changed address arrives in the address bus 7. The processing after the next changed address arrives is the same as above.
以上説明したように本発明によれば、ROMに書込まれ
たプログラムを一部変更する場合に、ROMを新規に書
換えずに、RAMに変更ブロク゛ラムを書込むことによ
って変更プログラムを実行することが出来、プログラム
の変更、デノ<・νり′を容易に行えると云う効果が得
られる。As explained above, according to the present invention, when a part of the program written in the ROM is changed, the changed program can be executed by writing the changed block to the RAM without rewriting the ROM. This has the effect of making it easier to change programs and perform denominations.
第1図は本発明一実施例のプロ・ツク図、第2図は変更
プログラムのメモリマ・ノブ上の位置を示す図、第3図
は変更手順の一例を示す図である。
1−c p u、 2−ROM 、3−−RA M a
。FIG. 1 is a program diagram of an embodiment of the present invention, FIG. 2 is a diagram showing the position of the modification program on the memory master knob, and FIG. 3 is a diagram showing an example of the modification procedure. 1-cpu, 2-ROM, 3--RAM a
.
Claims (1)
と、前記変更を行ったプログラムが存在するRAMと、
このRAMから変更が必要なアドレス情報を入力して保
持するレジスタと、このレジスタの出力である変更アド
レスとアドレスバスとを入力としCPUへ割込み信号を
出力するマルチプレクサとを備え、前記レジスタからの
入力とアドレスバスからの人力とが一致し、アドレスが
変更位置に来たことが検出されて前記マルチプレクサが
CPUへ割込みを発生すると、実行中のROMプログラ
ムを中止して前記RAM中の変更を行ったプログラムの
実行に分岐移行するようにしたことを特徴とするプログ
ラム制御方法。ROM that requires changes to some of the programmed programs
and a RAM in which the modified program exists,
It is equipped with a register that inputs and holds address information that needs to be changed from this RAM, and a multiplexer that receives the changed address output from this register and the address bus as input and outputs an interrupt signal to the CPU. When the multiplexer generates an interrupt to the CPU by detecting that the address has reached the change position and the input from the address bus matches, the ROM program being executed is stopped and the change in the RAM is performed. A program control method characterized by branching and transitioning during program execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58234253A JPS60126731A (en) | 1983-12-14 | 1983-12-14 | Program control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58234253A JPS60126731A (en) | 1983-12-14 | 1983-12-14 | Program control method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS60126731A true JPS60126731A (en) | 1985-07-06 |
Family
ID=16968071
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP58234253A Pending JPS60126731A (en) | 1983-12-14 | 1983-12-14 | Program control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS60126731A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02133851A (en) * | 1988-11-15 | 1990-05-23 | Nec Corp | Communication controller |
US5060839A (en) * | 1989-02-03 | 1991-10-29 | Yoshida Kogyo K. K. | Stroke adjustment apparatus for light projector of button setting machine |
-
1983
- 1983-12-14 JP JP58234253A patent/JPS60126731A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02133851A (en) * | 1988-11-15 | 1990-05-23 | Nec Corp | Communication controller |
US5060839A (en) * | 1989-02-03 | 1991-10-29 | Yoshida Kogyo K. K. | Stroke adjustment apparatus for light projector of button setting machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR920010431A (en) | Information processing device and information processing method using the same | |
US5600807A (en) | Programmable controller capable of updating a user program during operation by switching between user program memories | |
JPS60126731A (en) | Program control method | |
JPH059815B2 (en) | ||
JPS5842891B2 (en) | Meirei Seigiyohoushiki | |
JPS62130427A (en) | Memory read/write system | |
JPS61213928A (en) | Alteration system for program | |
JPS6152747A (en) | Microprocessor | |
JPH09106347A (en) | Information processor and stack storing method for information processor | |
JPH059814B2 (en) | ||
JPH0259829A (en) | Microcomputer | |
JPS6353644A (en) | Instruction control device | |
JPH04107630A (en) | Central processing unit | |
JPS61131125A (en) | Information processing unit | |
JPH02110636A (en) | Debugging device for tag architecture machine and its compiler | |
JPH08249024A (en) | Programmable controller | |
JPH04167146A (en) | Address tracing system for information processor | |
JPS595931B2 (en) | Address stop method for arithmetic processing system | |
JPH03168845A (en) | Instruction execution control system | |
JPH03273349A (en) | Access control system | |
JP2000148511A (en) | Interruption processor for microcomputer and its interruption processing method | |
JPH05233026A (en) | Microcomputer circuit | |
JPH0330029A (en) | Input/output simulation device of computer | |
JPS63136154A (en) | Microcomputer device | |
JPH0527967A (en) | Computer system |