JPH0548496B2 - - Google Patents

Info

Publication number
JPH0548496B2
JPH0548496B2 JP59154875A JP15487584A JPH0548496B2 JP H0548496 B2 JPH0548496 B2 JP H0548496B2 JP 59154875 A JP59154875 A JP 59154875A JP 15487584 A JP15487584 A JP 15487584A JP H0548496 B2 JPH0548496 B2 JP H0548496B2
Authority
JP
Japan
Prior art keywords
program
memory
start address
loaded
floppy 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.)
Expired - Lifetime
Application number
JP59154875A
Other languages
Japanese (ja)
Other versions
JPS6132149A (en
Inventor
Makoto Hayashi
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP15487584A priority Critical patent/JPS6132149A/en
Publication of JPS6132149A publication Critical patent/JPS6132149A/en
Publication of JPH0548496B2 publication Critical patent/JPH0548496B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 (a) 技術分野 この発明は外部記憶装置が接続されたデータ処
理装置に関し、特に、障害発生時にはメモリ内容
を自動的に外部記憶装置内のプログラム保存部分
にダンプする、ATM等のデータ処理装置に関す
る。
[Detailed Description of the Invention] (a) Technical Field The present invention relates to a data processing device connected to an external storage device, and in particular, to a data processing device that automatically dumps memory contents to a program storage section in the external storage device when a failure occurs. Related to data processing devices such as ATMs.

(b) 従来技術とその欠点 ATMにおいては、起動時にまずフロツピイデ
イスク等の外部記憶媒体から所定のプログラムを
システムのROMに記憶されているiPLプログラ
ムを使用してロードし、ロード完了後制御をロー
ドしたプログラムの先頭アドレスに移す。またプ
ログラムのバグ、機器の異常等によつて装置が誤
動作或いはシステムダウンしたときには原因が直
ちに判明しない限りそのときのメモリ内容を全て
プログラムロードに供した外部記憶媒体にダンプ
する。そして、原因の究明は外部記憶媒体にダン
プされた内容を解析することによつて行われる。
しかし、この際問題となるのは、メモリダンプす
る外部記憶媒体はプログラムをロードした外部記
憶媒体と同じものであるため、メモリダンプされ
た後の外部記憶媒体を操作者が誤つてシステム起
動時にセツトしてしまう可能性があることであ
る。この場合、システムは確実に誤動作し、金銭
の不当な処理を行つたり場合によつては人体に危
害を与えたりする可能性がある。
(b) Prior art and its disadvantages When an ATM starts up, it first loads a predetermined program from an external storage medium such as a floppy disk using the iPL program stored in the system's ROM, and then controls the program after the loading is complete. Move to the start address of the loaded program. Furthermore, when the device malfunctions or the system goes down due to a program bug, equipment abnormality, etc., the entire memory contents at that time are dumped to the external storage medium used for program loading unless the cause is immediately determined. The cause is investigated by analyzing the contents dumped on the external storage medium.
However, the problem in this case is that the external storage medium to which the memory is dumped is the same as the external storage medium on which the program was loaded, so the operator may mistakenly set the external storage medium after the memory dump has been performed at system startup. This is something that could happen. In this case, the system will definitely malfunction, leading to improper handling of money or even harm to humans.

(c) 発明の目的 この発明の目的はメモリダンプされた外部記憶
媒体をシステム起動時に誤つてセツトしても、メ
モリ内にロードされたプログラムが走ることのな
い、メモリダンプ機能を備えたデータ処理装置を
提供することにある。
(c) Purpose of the Invention The purpose of the present invention is to provide data processing with a memory dump function that prevents the program loaded into memory from running even if an external storage medium on which memory has been dumped is accidentally set at system startup. The goal is to provide equipment.

(d) 発明の構成および効果 この発明は要約すれば、メモリダンプ時に、ダ
ンプされるプログラムの実行開始アドレスの内容
を、プログラムが先に進むことのない命令、例え
ば実行開始アドレス自身へのブランチ命令や
HALT命令等に置き換える手段を設けたことを
特徴とする。
(d) Structure and Effects of the Invention In summary, the present invention can be summarized as follows: When dumping memory, the content of the execution start address of the dumped program is replaced by an instruction that does not allow the program to proceed forward, such as a branch instruction to the execution start address itself. or
It is characterized by providing a means to replace it with a HALT command or the like.

上記のように構成することによつて、この発明
によれば誤つてメモリダンプされた内容を再びロ
ードして実行する段階になつてもロード完了後に
制御が移るプログラムの開始アドレスでは、その
実行開始アドレス自身へのブランチ命令や
HALT命令等のプログラムが先に進むことのな
い命令に置き換わつているため、プログラムがそ
れ以上実行されることはなく、システム全体の誤
動作を防止することができる。これによつて、例
えばATM等に適用した場合には金銭の不当な処
理を行つたり人体に危害を与えたりすることを防
止することができる。
By configuring as described above, according to the present invention, even when the content that was mistakenly dumped in memory is loaded and executed again, the start address of the program to which control is transferred after loading is completed, the execution starts. A branch instruction to the address itself
Since the program such as the HALT instruction is replaced with an instruction that does not proceed any further, the program will not be executed any further, and malfunctions of the entire system can be prevented. As a result, when applied to an ATM or the like, for example, it is possible to prevent improper processing of money or harm to the human body.

(e) 実施例 第3図はこの発明の実施例であるATMのブロ
ツク図である。CPU1には現金自動取引装置2、
プログラムやデータを記憶するRAM3、iPLプ
ログラムが記憶されているROM4およびフロツ
ピイデイスクを駆動するFD駆動装置5が接続さ
れている。FD駆動装置5にプログラムの記憶さ
れているフロツピイデイスクがセツトされて電源
がオンされると、ROM4に記憶されているiPL
プログラムが動作し、セツトされているフロツピ
イデイスクからRAM3に対してプログラムをロ
ードする。ロードが完了するとCPU1は直ちに
RAM3にロードされたプログラムの先頭アドレ
ス(実行開始アドレス)STに制御を移す。即ち
プログラムカウンタを先頭アドレスSTに設定し、
ロードしたプログラムを自動的に起動する。以後
プログラムの実行により現金自動取引装置2にお
いて取引が行われる。
(e) Embodiment FIG. 3 is a block diagram of an ATM that is an embodiment of the present invention. CPU1 has automatic teller machine 2,
A RAM 3 for storing programs and data, a ROM 4 for storing iPL programs, and an FD drive device 5 for driving a floppy disk are connected. When the floppy disk storing the program is set in the FD drive unit 5 and the power is turned on, the iPL stored in the ROM 4 is
The program runs and loads the program from the set floppy disk to RAM3. As soon as the loading is complete, CPU1
Control is transferred to the start address (execution start address) ST of the program loaded into RAM3. That is, set the program counter to the start address ST,
Automatically start loaded programs. Thereafter, transactions are performed in the automatic teller machine 2 by executing the program.

第4図はフロツピイデイスクの記憶内容とメモ
リのアドレス空間との対応を示している。電源オ
ン時にはCPU1の制御はROMエリアに記憶され
ているiPLプログラムで行われ、そのiPLの実行
によつてフロツピイデイスクに記憶されているプ
ログラムをRAMエリアにロードする。ロードが
完了するとCPU1の制御はRAMエリアの先頭ア
ドレスSTに移される。先頭アドレスはロードさ
れたプログラムの実行開始アドレスであるから以
後システムはこのロードされたプログラムによつ
て動作することになる。
FIG. 4 shows the correspondence between the storage contents of the floppy disk and the address space of the memory. When the power is turned on, the CPU 1 is controlled by the iPL program stored in the ROM area, and by executing the iPL, the program stored in the floppy disk is loaded into the RAM area. When the loading is completed, control of the CPU 1 is transferred to the start address ST of the RAM area. Since the start address is the execution start address of the loaded program, the system will thereafter operate based on this loaded program.

現金自動取引装置2が誤動作したとき、または
何等かの原因によつてシステムダウンしたときに
は、その原因が直ちに究明できないとき実行開始
アドレスSTの命令を直接または間接的にその実
行開始アドレス自身へのブランチ命令に置き換え
て、ROMエリアを除く全メモリ空間のデータを
そのままフロツピイデイスクへダンプする。尚、
ダンププログラムはiPLロード時にフロツピイデ
イスクからロードされ、システムプログラムや現
金自動取引のためのユーテイリイテイプログラム
等とともにRAMエリア内に記憶されている。し
たがつて、このダンププログラムはメモリダンプ
時にプログラム実行開始アドレスSTの命令を直
接または間接的にその実行開始アドレス自身への
ブランチ命令に置き換え、その後RAMエリア内
のデータを全てフロツピイデイスクのiPLロード
時と同じ位置にメモリダンプする機能を持つてい
る。第5図はフロツピイデイスクとメモリ間の
iPLロード時およびダンプ時のデータの動きを示
している。
When the automated teller machine 2 malfunctions or the system goes down for some reason, and the cause cannot be immediately determined, the command at the execution start address ST is directly or indirectly branched to the execution start address itself. Replace it with the instruction and dump the data in all memory spaces except the ROM area to the floppy disk as is. still,
The dump program is loaded from the floppy disk when loading the iPL, and is stored in the RAM area along with the system program, utility program for automatic cash transactions, etc. Therefore, when dumping memory, this dump program directly or indirectly replaces the instruction at the program execution start address ST with a branch instruction to the execution start address itself, and then transfers all data in the RAM area to the iPL of the floppy disk. It has a function to dump memory to the same location as when loading. Figure 5 shows the connection between the floppy disk and memory.
Shows data movement during iPL loading and dumping.

第1図はメモリダンプ時の動作を示すフローチ
ヤート、第2図はダンプされたフロツピイデイス
クをiPLしたときの動作を示すフローチヤートで
ある。
FIG. 1 is a flowchart showing the operation when dumping memory, and FIG. 2 is a flowchart showing the operation when iPLing the dumped floppy disk.

メモリダンプ時にはステツプn1においてプロ
グラムの先頭アドレス、即ち実行開始アドレス
STの内容をその実行開始アドレス自身へのブラ
ンチ命令(分岐命令)に置き換える。次にステツ
プn2においてiPLプログラムを除く(ROMエ
リアを除く)メモリ空間全ての内容(RAMエリ
ア全て)をフロツピイデイスクにダンプして終了
する。
At the time of memory dump, in step n1, the start address of the program, that is, the execution start address
Replace the contents of ST with a branch instruction to the execution start address itself. Next, in step n2, the entire contents of the memory space (all RAM areas) except for the iPL program (excluding the ROM area) are dumped to the floppy disk, and the process ends.

ダンプされたフロツピイデイスクをiPLすると
きには、まずステツプn10においてフロツピイ
デイスク内の内容(プログラムおよびデータを含
む。)をRAMエリアにロードする。続いてステ
ツプn11において制御をRAMエリアの実行開
始アドレスに移し、CPU1でそのアドレスの命
令を実行する。この場合、プログラム先頭アドレ
ス即ち実行開始アドレスSTに記憶されている命
令がその実行開始アドレス自身へ分岐するブラン
チ命令であるため、n12においてブランチ命令
を連続的に実行する。即ち、プログラムがそれ以
上走ることがない。
When performing iPL on the dumped floppy disk, first, in step n10, the contents of the floppy disk (including programs and data) are loaded into the RAM area. Subsequently, in step n11, control is transferred to the execution start address in the RAM area, and the CPU 1 executes the instruction at that address. In this case, since the instruction stored at the program start address, that is, the execution start address ST, is a branch instruction that branches to the execution start address itself, the branch instruction is executed continuously at n12. That is, the program will not run any further.

以上の動作によつてメモリダンプしたフロツピ
イデイスクを誤つてゼツトしてiPLロードしても
システムが誤動作するのを防ぐことができる。
尚、上記実施例ではプログラムが先に進むことの
ない命令として実行開始アドレス自身へ分岐する
ブランチ命令を例示したが、これに換えて
HALT命令、その他類似の命令であつてもよい。
By performing the above operations, it is possible to prevent the system from malfunctioning even if the floppy disk on which the memory was dumped is accidentally inserted and iPL is loaded.
Note that in the above embodiment, a branch instruction that branches to the execution start address itself is used as an instruction that does not allow the program to proceed forward; however, instead of this,
It may also be a HALT command or other similar commands.

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

第1図はこの発明の実施例であるATMにおい
て、メモリダンプするときの動作を示すフローチ
ヤート、第2図はメモリダンプされた内容をiPL
ロードして実行するときの動作を示すフローチヤ
ート、第3図は同ATMのブロツク図、第4図は
iPLロードするときのフロツピイデイスクの内容
とメモリ空間との対比を示す図、第5図はフロツ
ピイデイスクとメモリ間でのデータの動きを示す
図である。
Figure 1 is a flowchart showing the operation of memory dumping in an ATM which is an embodiment of this invention, and Figure 2 is a flowchart showing the operation of memory dumping in an ATM that is an embodiment of this invention.
A flowchart showing the operation when loading and executing, Figure 3 is a block diagram of the ATM, Figure 4 is
FIG. 5 is a diagram showing the comparison between the contents of the floppy disk and the memory space when loading iPL, and FIG. 5 is a diagram showing the movement of data between the floppy disk and the memory.

Claims (1)

【特許請求の範囲】 1 外部記憶装置が接続されたデータ処理装置に
おいて、 外部記憶装置に記憶されたプログラムを前記デ
ータ処理装置内部のメモリにロードするプログラ
ムロード手段と、 前記プログラムロード手段によつてロードされ
たプログラムを実行するプログラム実行手段と、 障害発生時に、前記データ処理装置内部のメモ
リにロードされたプログラムの実行開始部分の命
令を、プログラムの実行が先に進むことのない命
令に置き換えたプログラムを、前記外部記憶装置
内のプログラム保存部分にオーバライトしてメモ
リダンプする手段と、 を備えたデータ処理装置。
[Scope of Claims] 1. A data processing device connected to an external storage device, comprising: program loading means for loading a program stored in the external storage device into a memory inside the data processing device; A program execution means for executing a loaded program; and a program execution means for replacing an instruction in an execution start part of the program loaded into the memory inside the data processing device with an instruction that does not allow the execution of the program to proceed when a failure occurs. A data processing device comprising: means for overwriting and memory dumping a program into a program storage portion in the external storage device.
JP15487584A 1984-07-24 1984-07-24 Data processing system provided with memory dump function Granted JPS6132149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15487584A JPS6132149A (en) 1984-07-24 1984-07-24 Data processing system provided with memory dump function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15487584A JPS6132149A (en) 1984-07-24 1984-07-24 Data processing system provided with memory dump function

Publications (2)

Publication Number Publication Date
JPS6132149A JPS6132149A (en) 1986-02-14
JPH0548496B2 true JPH0548496B2 (en) 1993-07-21

Family

ID=15593841

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15487584A Granted JPS6132149A (en) 1984-07-24 1984-07-24 Data processing system provided with memory dump function

Country Status (1)

Country Link
JP (1) JPS6132149A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0521829U (en) * 1991-09-02 1993-03-23 ヒゴグリラー株式会社 Overflow plug for saucer of pottery

Also Published As

Publication number Publication date
JPS6132149A (en) 1986-02-14

Similar Documents

Publication Publication Date Title
EP0060893B1 (en) Loading system for a numerical control unit
JPH08263282A (en) Branching control system for rom program processor
JP3886539B2 (en) How to load the operating system
JPH0548496B2 (en)
JPS6029984B2 (en) Main memory dump method
US5835706A (en) Method of controlling data writing into on-board microcomputer
JP3750494B2 (en) Semiconductor device
JPS6213704B2 (en)
JPH0664569B2 (en) Micro program loading method
JPS62137627A (en) Memory dump system
JPH08249206A (en) Computer with stack area destruction detection function
KR100506316B1 (en) Interrupt handling of micro firmware loader on IC bus
JPS61177551A (en) Start-up control system of processor
JPH01183748A (en) Collection system for fault information
JPS5842486B2 (en) Initial program load control method
JPH0367349A (en) Program loading system
JPS62137628A (en) Memory dump system
JPS599756A (en) Microprogram control device
JPS6083150A (en) Collecting method of main memory information
JPS6368928A (en) Program storing system
KR19990012940A (en) Circuit for loading microcomputer firmware using IC bus
JPS6379139A (en) Method for preventing runaway of computer
JPH0820979B2 (en) Data processing device
JPH05151021A (en) Debugging system using debugger with built-in resident area
JPH03216742A (en) Memory dump system