JPS63109558A - Program load system - Google Patents

Program load system

Info

Publication number
JPS63109558A
JPS63109558A JP25732686A JP25732686A JPS63109558A JP S63109558 A JPS63109558 A JP S63109558A JP 25732686 A JP25732686 A JP 25732686A JP 25732686 A JP25732686 A JP 25732686A JP S63109558 A JPS63109558 A JP S63109558A
Authority
JP
Japan
Prior art keywords
program
ram
rom
stored
disk
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
JP25732686A
Other languages
Japanese (ja)
Inventor
Takeshi Hara
武司 原
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 JP25732686A priority Critical patent/JPS63109558A/en
Publication of JPS63109558A publication Critical patent/JPS63109558A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To correct a program stored in a ROM simply and to raise the system early by correcting a program while referencing a corrected information file on a disk in loading a program stored in the ROM to a RAM thereby having only to generate a correction information file on the disk at once. CONSTITUTION:After a program from a ROM 4 is loaded to a RAM 7, part 11 of a program is corrected based on the correction information file 12 inputted from a keyboard 5 in advance and stored in a disk 6. Thus, even if the correction program in the RAM 3 is lost by power interruption, the corrected information is inputted from the disk other than a conventional system and re-input of correction information from the keyboard 5 is not required and the system rising is quickened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置におけるプログラムのロード方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program loading method in an information processing device.

〔従来の技術〕[Conventional technology]

従来、ROMに格納されているプログラムを修正する方
法として、キーボード等から修正データを入力し、入力
された修正データをバッテリーでバックアップされてい
るメモリに格納しておいて、それを参照しながら前記R
OMからRAMにロードされた前記プログラムを修正す
る方法がある。
Conventionally, as a method for modifying a program stored in a ROM, modification data is inputted from a keyboard or the like, the inputted modification data is stored in a memory backed up by a battery, and the above-mentioned modifications are performed while referring to it. R
There is a way to modify the program loaded from OM to RAM.

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

に連した従来の方法は、修正データをバッテリーでバッ
クアップされたメモリに格納しているため、バッテリが
きれると修正データか無効になり、修正データを再度キ
ーボード等から入力しなければならず、システムの立上
げが遅くなるという欠点がある。
In conventional methods, the modified data is stored in battery-backed memory, so when the battery dies, the modified data becomes invalid, and the modified data must be entered again from the keyboard, etc., causing system problems. The disadvantage is that startup is slow.

〔問題点を解決するための手段] プログラムが格納されているROMと前記プログラムが
ロードされるRAMを有する情報処理装置において、プ
ログラム修正情報を有するファイルが格納されているデ
ィスクと持ち、nU記ROMに格納されているプログラ
ムを前記RAMにロードする時、前記ディスク上のプロ
グラム修正情報に従って前記RAM上にロードされたプ
ログラムを修正する機能を有している。
[Means for solving the problem] In an information processing device having a ROM in which a program is stored and a RAM in which the program is loaded, an When loading a program stored on the RAM into the RAM, the computer has a function of modifying the program loaded onto the RAM according to program modification information on the disk.

1′実施例〕 次に本発明について図面を参照して説明する。1' Example] Next, the present invention will be explained with reference to the drawings.

第1図は、本発明の一実施例を行うための情報処理装置
を示す構成図で、プログラムが格納されているROM4
とプログラムがロードされるRAM3を含む本体2に、
ディスプレイ1とキーボード5とディスク装置6が接続
されている。
FIG. 1 is a configuration diagram showing an information processing apparatus for carrying out an embodiment of the present invention, and shows a ROM 4 in which a program is stored.
and the main body 2 including RAM 3 where the program is loaded,
A display 1, a keyboard 5, and a disk device 6 are connected.

第2図(a>は、従来の方式を説明する図で、RAM7
上のプログラム8はROM4に格納されているプログラ
ム10がロードされたもので、バッテリーでバックアッ
プされているRAM7上のユーザメモリ9に修正データ
をキーボードから入力しておきこれを使用しながら動作
する。第2図(b)は、本発明の詳細な説明する図で、
ROM4からのプログラム10がRAM7にロードされ
た後、予じめキーボードから入力されディスク6に格納
された修正情報ファイル12をもとにプログラムの一部
11を修正する。従って、電源OFFによるRAM上の
修正プログラムが消えても、従来と異なりディスクから
修正情報を入力できることから、キーボードからの修正
情報の再入力が不要となり、システムの立上げを早くで
きる。
FIG. 2 (a) is a diagram explaining the conventional method, in which the RAM 7
The above program 8 is a loaded program 10 stored in the ROM 4, and is operated by inputting correction data from the keyboard into the user memory 9 on the RAM 7 backed up by a battery. FIG. 2(b) is a diagram for explaining the present invention in detail,
After the program 10 from the ROM 4 is loaded into the RAM 7, a part 11 of the program is modified based on a modification information file 12 entered in advance from the keyboard and stored on the disk 6. Therefore, even if the modification program on the RAM disappears when the power is turned off, the modification information can be input from the disk unlike in the past, so there is no need to re-enter the modification information from the keyboard, and the system can be started up more quickly.

第3図は、ディスク6へ格納される修正情報ファイル1
2の一例を示す構造図であり、修正情報データ13a、
13b、13cと0OOOH2byteで表される修正
情報データの終り14から構成される。
FIG. 3 shows the modification information file 1 stored on the disk 6.
2 is a structural diagram showing an example of correction information data 13a,
13b, 13c, and the end 14 of the modification information data represented by 0OOOH2 bytes.

第4図は、修正情報データの形式を示すもので、修正情
報データの長さを格納する修正情報データの長さ15.
修正情報データのセグメントベースとオフセットアドレ
スを格納する修正データのアドレス16.修正前のデー
タを格納する旧データ17aと修正するデータを格納す
る新データ18aの組で構成される。
FIG. 4 shows the format of the modification information data, and the length of the modification information data storing the length of the modification information data is 15.
Modification data address for storing the segment base and offset address of modification information data 16. It is composed of a set of old data 17a that stores data before modification and new data 18a that stores data to be modified.

第5図は、ROMに格納されているプログラムが修正情
報ファイルを参照しながら、RAMにロードされたプロ
グラムを修正する手順である。まず、ROMに格納され
ているプログラムをRAMにロードする処理1つを行う
。次に、ディスク6上に修正情報ファイルがあるかを判
定する処理20を行い、修正情報ファイルがなければ終
了し、修正情報ファイルがあれば処理21に進む。
FIG. 5 shows a procedure for modifying a program loaded into the RAM while the program stored in the ROM refers to the modification information file. First, one process of loading a program stored in the ROM into the RAM is performed. Next, a process 20 is performed to determine whether there is a modification information file on the disk 6. If there is no modification information file, the process ends, and if there is a modification information file, the process proceeds to process 21.

処理21では修正精報ファイルの先頭2byteを読み
込み、その値をnに代入する。このnは、” o ”で
なければ修正情報データの長さ、0″゛であれば修正情
報データの終りという意味を持つ。処理22では、nが
“0°“かどうかを判定し、“0゛であれば終了し、“
0°゛でなければ処理23に進む。処理23では、修正
データのアドレス16を読み込み、そのアドレスからn
byte旧データを新データに置き換える。これで1つ
の修正情報データ13に基づく修正が終るので、次の修
正情報データの処理に進む。そのために、次の修正情報
データの先頭2byteを読み込み、その値をnに代入
する処理24を行い、処理22に戻る。
In process 21, the first 2 bytes of the corrected report file are read and the value is assigned to n. This n means the length of the modification information data if it is not "o", and the end of the modification information data if it is 0". In process 22, it is determined whether n is "0°" and " If it is 0゛, it ends and “
If it is not 0°, proceed to process 23. In process 23, address 16 of the modified data is read and n is read from that address.
Replace byte old data with new data. This completes the modification based on one modification information data 13, and the process proceeds to the next modification information data. For this purpose, a process 24 is performed in which the first 2 bytes of the next correction information data are read and the value is substituted for n, and the process returns to process 22.

r発明の効果〕 以上説明したように本発明は、ROMに格納されている
プログラムをRAMにロードする時に、ディスク上の修
正情報ファイルを参照しながらプログラムが修正される
ことにより、ディスク上に一度修正情報フアイルを作成
すれば、ROMに格納しているプログラムを簡便に修正
でき、又システムの立上げを早くできる効果がある。
[Effects of the Invention] As explained above, in the present invention, when the program stored in the ROM is loaded into the RAM, the program is modified while referring to the modification information file on the disk, so that the program is stored once on the disk. By creating a modification information file, programs stored in the ROM can be easily modified, and the system can be started up more quickly.

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

第1図は本発明の一実施例を行うための情報処理装置を
示す構成図、第2図(a)、(b)はROMに格納され
ているプログラムがRAMにロードされる状態を従来例
、および本発明の場合について示した図、第3図は修正
情報ファイルの構成図、第4図は第3図の修正情報デー
タの模式図、第5図はROMに格納されているプログラ
ムをRAMにロードする時に修正情報データを参照しな
がらプログラムを修正する処理手順を示す流れ図である
。 図において、1・・・ディスプレイ、2・・・本体、3
、・・RAM、4・・・ROM、5・・・キーボード、
6・・・ディスク装置、7・・・RAM、8・・・RA
Mにロードされたプログラム、9・・・ユーザメモリ、
10・・・ROMに格納されているプログラム、11・
・・修正されたデータ、12・・・修正情報ファイル、
131.。 修正情報データ、14・・・修正情報データの終り、1
5・・・修正情報データの長さ、16・・・修正データ
のアドレス、17・・・旧データ、18・・・新データ
、19〜24・・・ROMに格納されているプログラム
の修正処理。 だ (゛・。 代理人 弁理士 内 原  音λ・ $ l 凹 (cl) (ムノ 芽 2 図 $ 3 図 弗 4 図
FIG. 1 is a configuration diagram showing an information processing apparatus for carrying out an embodiment of the present invention, and FIGS. 2(a) and 2(b) show a conventional example in which a program stored in a ROM is loaded into a RAM. , and diagrams showing the case of the present invention, FIG. 3 is a configuration diagram of a modification information file, FIG. 4 is a schematic diagram of modification information data in FIG. 3, and FIG. 12 is a flowchart showing a processing procedure for modifying a program while referring to modification information data when loading the program into a computer. In the figure, 1...Display, 2...Main body, 3
,...RAM, 4...ROM, 5...keyboard,
6...Disk device, 7...RAM, 8...RA
Program loaded into M, 9...user memory,
10...Program stored in ROM, 11.
...corrected data, 12...correction information file,
131. . Correction information data, 14... End of correction information data, 1
5...Length of correction information data, 16...Address of correction data, 17...Old data, 18...New data, 19-24...Program correction processing stored in ROM . It's (゛・. Agent Patent attorney Uchihara sound λ・$l Concave (cl) (Munomome 2 Figure $3 Figure 4 Figure

Claims (1)

【特許請求の範囲】[Claims] プログラムが格納されているROMと前記プログラムが
ロードされるRAMを有する情報処理装置において、プ
ログラム修正情報を有するファイルが格納されているデ
ィスクを持ち、前記ROMに格納されているプログラム
を前記RAMにロードする時、前記ディスク上のプログ
ラム修正情報に従って前記RAM上にロードされたプロ
グラムを修正することを特徴とするプログラムのロード
方式。
An information processing device having a ROM in which a program is stored and a RAM into which the program is loaded, the information processing device having a disk in which a file having program modification information is stored, and loading the program stored in the ROM into the RAM. A method for loading a program, wherein the program loaded onto the RAM is modified according to program modification information on the disk.
JP25732686A 1986-10-28 1986-10-28 Program load system Pending JPS63109558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25732686A JPS63109558A (en) 1986-10-28 1986-10-28 Program load system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25732686A JPS63109558A (en) 1986-10-28 1986-10-28 Program load system

Publications (1)

Publication Number Publication Date
JPS63109558A true JPS63109558A (en) 1988-05-14

Family

ID=17304805

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25732686A Pending JPS63109558A (en) 1986-10-28 1986-10-28 Program load system

Country Status (1)

Country Link
JP (1) JPS63109558A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6076134A (en) * 1993-02-12 2000-06-13 Fujitsu Limited Memory patching device
US6915512B1 (en) 1999-11-29 2005-07-05 Fujitsu Limited Software editing with indication of format and processing state of each process of the software

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6076134A (en) * 1993-02-12 2000-06-13 Fujitsu Limited Memory patching device
US6915512B1 (en) 1999-11-29 2005-07-05 Fujitsu Limited Software editing with indication of format and processing state of each process of the software

Similar Documents

Publication Publication Date Title
JPH06242990A (en) Memory patch device
CN112783558B (en) Method for accelerating self-decompression phase of Linux kernel start
JPS63317824A (en) Program starting system
JP2000242484A (en) How to change the control program
JPS6250934A (en) Interrupting control system of processor
JPH02125330A (en) Data processor
JP3425724B2 (en) System uninterrupted program switching method
JPH03103924A (en) Data processor
JPH0844551A (en) Information processing device
JPH0317760A (en) Data write confirming system
JPS61105642A (en) Microcomputer device
JP2728534B2 (en) Byte position identification code setting processing method
JPH07129396A (en) Method for patching read-only storage device
JPH01131925A (en) Program patch system
JPH05108506A (en) Driver automatic repair device
JPS63217454A (en) Rewrite deciding system for back-up memory
JPH0619711A (en) Stack protection system
JPS6256535B2 (en)
JPS5878203A (en) Programmable controller
JPH0651857A (en) Method for outputting voice and image
JPH02165329A (en) Method for forming system
JPS6041133A (en) Correcting method of control program
JPS6048559A (en) Initial program loading processor
JPS6344241A (en) Interruption processor
JPH0498528A (en) Input system for language processing system program