JP3347420B2 - Data processing apparatus and method - Google Patents

Data processing apparatus and method

Info

Publication number
JP3347420B2
JP3347420B2 JP23088393A JP23088393A JP3347420B2 JP 3347420 B2 JP3347420 B2 JP 3347420B2 JP 23088393 A JP23088393 A JP 23088393A JP 23088393 A JP23088393 A JP 23088393A JP 3347420 B2 JP3347420 B2 JP 3347420B2
Authority
JP
Japan
Prior art keywords
memory card
application program
data processing
stored
interrupt
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 - Fee Related
Application number
JP23088393A
Other languages
Japanese (ja)
Other versions
JPH0764809A (en
Inventor
英孝 鈴木
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP23088393A priority Critical patent/JP3347420B2/en
Publication of JPH0764809A publication Critical patent/JPH0764809A/en
Application granted granted Critical
Publication of JP3347420B2 publication Critical patent/JP3347420B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、メモリカード上のプロ
グラムに基づいてデータ処理を行うデータ処理装置及び
方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing apparatus and method for performing data processing based on a program on a memory card.

【0002】[0002]

【従来技術】従来、メモリカードを装置本体に着脱自在
に装着し、装着されたメモリカード上のアプリケーショ
ンプログラムに基づいてデータ処理を行うデータ処理装
置が知られており、この種のデータ処理装置では、装置
本体にはメモリカードを装着するためのスロット等が設
けられている。
2. Description of the Related Art Conventionally, there has been known a data processing device in which a memory card is removably mounted on an apparatus main body and performs data processing based on an application program on the mounted memory card. The main body of the apparatus is provided with a slot for mounting a memory card.

【0003】この種のデータ処理装置では、メモリカー
ドの急な引抜きによる誤動作を防止する必要がある。特
に、制御アドレス(プログラムカウンタ)がメモリカー
ド上のアドレスを示した状態、すなわちメモリカード上
のアプリケーションプログラムが実行されている状態で
メモリカードが引抜かれると、オブジェクトコードが一
瞬にして化けて、すなわち値が不定となってプログラム
が暴走し、装置本体内のメモリやメモリカードのデータ
に悪影響を及ぼして取返しのつかない誤動作を招く可能
性がある。
In this type of data processing apparatus, it is necessary to prevent malfunction due to sudden removal of the memory card. In particular, if the memory card is pulled out in a state where the control address (program counter) indicates the address on the memory card, that is, in a state where the application program on the memory card is being executed, the object code is instantaneously garbled, The value is undefined, the program runs away, and the data in the memory or the memory card in the main body of the apparatus may be adversely affected to cause an irreparable malfunction.

【0004】このような誤動作を回避するため、従来、
スロットにカバーを設け、このカバーがオープンされた
ときは、その旨を検知してハードウェア割込等の手段に
より装置本体内のソフトウェア側に告知し、メモリカー
ドへのアクセスを禁止して制御を速やかに装置本体側の
メモリに移すようにしていた。
In order to avoid such a malfunction, conventionally,
A cover is provided in the slot, and when this cover is opened, this is detected and notified to the software inside the main unit by means such as hardware interrupt, and access to the memory card is prohibited and control is performed. The data was immediately transferred to the memory of the main unit.

【0005】また、このようなアクセス禁止を行う場合
は、警告や操作指示のためのメッセージを表示する、オ
ープン中のファイルをクローズする等の保全処理を割込
で処理する必要があるが、この割込保全処理を行う割込
保全処理ルーチンは、従来、次のような方式で登録して
いた。
When such access prohibition is performed, it is necessary to interrupt and perform a maintenance process such as displaying a message for a warning or an operation instruction or closing an open file. Conventionally, an interrupt maintenance routine for performing an interrupt maintenance process has been registered in the following manner.

【0006】すなわち、(1)基本ソフトウェア(オペ
レーティングシステム)上に割込保全処理ルーチンを持
たせる、(2)メモリカード上のアプリケーションプロ
グラムに制御が移る前に装置本体内で実行されていたア
プリケーションプログラムに割込保全処理ルーチンを持
たせる、(3)メモリカード上のアプリケーションプロ
グラムに割込保全処理ルーチンを持たせるが、このメモ
リカード上のアプリケーションプログラムを実行すると
きは、このアプリケーションプログラム全体を装置本体
内のメモリにコピーした上で制御を当該コピーされたア
プリケーションプログラムに制御を渡すようにしてい
た。
That is, (1) an interrupt maintenance routine is provided in the basic software (operating system), and (2) an application program executed in the apparatus main body before control is transferred to an application program on a memory card. (3) The application program on the memory card has an interrupt maintenance routine. When the application program on the memory card is executed, the entire application program is transferred to the main unit of the apparatus. Control is passed to the copied application program after being copied to the internal memory.

【0007】[0007]

【発明が解決しようとする課題】しかし、上記(1)の
ように、オペレーティングシステムが割込保全処理ルー
チンを持つ方式では、警告や操作指示のためのメッセー
ジの表示形態が画一的になり、アプリケーションプログ
ラムの設計者がメッセージの表示形態を自由に設定でき
ず、さらにメッセージ表示やファイルをクローズした後
は安全のために電源オフにする等、処理の流れも融通性
がとれないといった問題があった。
However, as described in the above (1), in the system in which the operating system has the interrupt maintenance routine, the display form of a message for a warning or an operation instruction becomes uniform. There is a problem that the designer of the application program cannot freely set the display format of the message, and the process flow is not flexible, such as turning off the power for safety after displaying the message or closing the file. Was.

【0008】また、上記(2)のように、装置本体内で
実行されていたアプリケーションプログラムが割込処理
ルーチンを持つ方式では、メモリカード上に配置するア
プリケーションプログラムと装置本体内のメモリに配置
するプログラムとが、機能的に区別されてしまうため、
アプリケーションプログラムを設計する上で負担になる
という問題があった。
In the method in which the application program executed in the apparatus main body has an interrupt processing routine as described in (2) above, the application program is arranged on a memory card and arranged in a memory in the apparatus main body. Because it is functionally distinguished from the program,
There is a problem that it becomes a burden in designing an application program.

【0009】また、上記(3)のように、メモリカード
上のアプリケーションプログラム全体を装置本体内のメ
モリにコピーする方式では、コピー処理を行う時間分だ
けアプリケーションプログラムの実行開始が遅れると共
に、装置本体内のメモリは大きなコピーデータ格納エリ
アが必要になり、メモリの使用効率が低下するという問
題があった。
Further, in the method of copying the entire application program on the memory card to the memory in the apparatus main body as in the above (3), the start of application program execution is delayed by the time for performing the copy processing, and the apparatus main body is The internal memory requires a large copy data storage area, and there is a problem in that the memory use efficiency is reduced.

【0010】本発明は、このような事情の下になされた
もので、その目的は、メモリカード引き抜き時に実行す
べき保全処理プログラムを、設計の自由度が高く、設計
の負担も軽く、かつ装置本体内のメモリの使用効率の低
下を招かないような形で設計・装備可能とするデータ処
理装置及び方法を提供することにある。
[0010] The present invention has been made under such circumstances, and an object of the present invention is to provide a maintenance processing program to be executed when a memory card is pulled out with a high degree of freedom in design and a light design load, and to reduce the load on the device. It is an object of the present invention to provide a data processing apparatus and a data processing method which can be designed and installed in such a manner that the use efficiency of the memory in the main body is not reduced.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、着脱自在なメモリカードに記憶されてい
るアプリケーションプログラムに従ってデータ処理を行
うデータ処理装置において、前記メモリカードが装着さ
れるメモリカード装着部と、前記メモリカードに記憶さ
れているアプリケーションプログラム中の保全処理ルー
チンを、前記アプリケーションプログラムを実行中に
み出す読出手段と、前記読出手段で読み出した前記保全
処理ルーチンを記憶する記憶手段と、前記メモリカード
装着部から前記メモリカードが引き抜かれたか否かを、
前記メモリカードに格納されているアプリケーションプ
ログラムを実行中に判断する判断手段と、前記判断手段
により前記メモリカードが引き抜かれたと判断された場
合、前記記憶手段に記憶された前記保全処理ルーチン
実行し、前記メモリカードが引き抜かれたと判断されな
い場合は、前記メモリカードに格納されている前記アプ
リケーションプログラムの実行を継続する実行手段とを
有している。
According to the present invention, there is provided a data processing apparatus for performing data processing in accordance with an application program stored in a removable memory card. A card mounting portion, and a memory card stored in the memory card.
Maintenance process in the application program
Reading means for reading the application program during execution of the application program, storage means for storing the security processing routine read by the reading means, and the memory card.
Whether the memory card has been pulled out of the mounting portion,
Application programs stored in the memory card
A determination unit that determines during execution of the program, and when the determination unit determines that the memory card has been removed, executes the maintenance processing routine stored in the storage unit and determines that the memory card has been removed. Sana
The application stored in the memory card,
Execution means for continuing execution of the application program .

【0012】また、本発明は、着脱自在なメモリカード
に記憶されているアプリケーションプログラムに従って
データ処理を行うデータ処理方法であって、前記メモリ
カードに記憶されているアプリケーションプログラム中
の保全処理ルーチンを、前記アプリケーションプログラ
ムを実行中に読み出して記憶手段に記憶し、前記メモリ
カード装着部から前記メモリカードが引き抜かれたか否
かを、前記メモリカードに格納されているアプリケーシ
ョンプログラムを実行中に判断し、前記メモリカードが
引き抜かれたと判断された場合、前記記憶手段に記憶さ
れた前記保全処理ルーチンを実行し、前記メモリカード
が引き抜かれたと判断されない場合は、前記メモリカー
ドに格納されている前記アプリケーションプログラムの
実行を継続している。
The present invention also relates to a data processing method for performing data processing according to an application program stored in a removable memory card, wherein the data processing method includes the steps of:
The maintenance routine of the application program
The memory card is read out during execution of the memory card and stored in the storage means, and whether or not the memory card is removed from the memory card mounting portion
The application stored in the memory card.
The determination is made during execution of the memory program, and when it is determined that the memory card has been removed, the maintenance processing routine stored in the storage means is executed and the memory card is removed.
If it is not determined that the memory card has been
Of the application program stored in the
Execution is continuing .

【0013】[0013]

【0014】[0014]

【実施例】以下、本発明の第1〜第2実施例を図面に基
づいて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS First and second embodiments of the present invention will be described below with reference to the drawings.

【0015】[第1実施例]図1は、本発明の第1、第
2実施例によるデータ処理装置の概略構成を示すブロッ
ク図である。本データ処理装置は、CPU1を中核とし
て各種のデータ処理を行うものであり、CPU1には、
バスBを介してRAM2、ROM3、キーボード等の入
力装置6、液晶タッチパネル等の表示装置7、インクジ
ェットプリンタ等の印刷装置8、通信ポート9、および
電源回路11a、電池パック11bからなる電源系11
が接続されている。また、本データ処理装置は、メモリ
カード4を使用し得るものであり、CPU1には、バス
Bを介してメモリカードリーダ/ライタ10が接続され
ている。
[First Embodiment] FIG. 1 is a block diagram showing a schematic configuration of a data processing apparatus according to first and second embodiments of the present invention. This data processing device performs various data processing with the CPU 1 as a core.
A power supply system 11 including a RAM 2, a ROM 3, an input device 6 such as a keyboard, a display device 7 such as a liquid crystal touch panel, a printing device 8 such as an inkjet printer, a communication port 9, a power supply circuit 11 a, and a battery pack 11 b via a bus B.
Is connected. Further, the data processing apparatus can use a memory card 4, and a memory card reader / writer 10 is connected to the CPU 1 via a bus B.

【0016】なお、図示省略したが、本データ処理装置
の筐体には、メモリカード4を装置本体に対して着脱可
能にするためのスロットが形成され、このスロットに
は、メモリカード4が装置本体から逸脱したり、誤って
引抜かれるのを防止するためにカバーが設けられてい
る。そして、このカバーのオープンを検知してハードウ
ェア割込信号をCPU1に出力する割込制御部5が、C
PU1に接続されている。
Although not shown, a slot is formed in the housing of the data processing apparatus so that the memory card 4 can be attached to and detached from the apparatus main body. A cover is provided to prevent deviation from the main body or accidental removal. Then, the interrupt control unit 5, which detects the opening of the cover and outputs a hardware interrupt signal to the CPU 1,
It is connected to PU1.

【0017】図2は、メモリに記憶されるデータ内容を
説明するための説明図であり、割込制御部5は、メモリ
カード4を着脱する際のカバーのオープンを検知し、ハ
ードウェア割込信号(カバーオープン割込信号)をCP
U1に出力する。RAM2には、メモリカード4に記録
された後述の割込保全処理ルーチン41aを登録するた
めの登録エリアEが形成されている。ROM3には、基
本ソフトウェア(オペレーティングシステム)31がプ
リセットされており、この基本ソフトウェア31には、
カバーオープン割込処理ルーチン31a、ジャンプ先指
定ルーチン31bが含まれている。
FIG. 2 is an explanatory diagram for explaining the contents of data stored in the memory. The interrupt control unit 5 detects the opening of the cover when the memory card 4 is attached or detached, and executes a hardware interrupt. Signal (cover open interrupt signal)
Output to U1. In the RAM 2, a registration area E for registering an interrupt maintenance processing routine 41a described later recorded on the memory card 4 is formed. The basic software (operating system) 31 is preset in the ROM 3.
The routine includes a cover open interrupt processing routine 31a and a jump destination designation routine 31b.

【0018】メモリカード4には、基本ソフトウェア3
1が実行し得る形式で記述されたユーザプログラム(ア
プリケーションプログラム)41が格納されており、こ
のユーザプログラム41には、カバーオープン時に実行
すべき割込保全処理ルーチン41aと、この割込保全処
理ルーチン41aをRAM2の登録エリアEに登録する
よう基本ソフトウェア31に対して要求する登録要求ル
ーチン41bが含まれている。
The basic software 3 is stored in the memory card 4.
A user program (application program) 41 described in a format that can be executed by the user 1 is stored in the user program 41. A registration request routine 41b for requesting the basic software 31 to register 41a in the registration area E of the RAM 2 is included.

【0019】次に、メモリカード4内のユーザプログラ
ム41に含まれる割込保全処理ルーチン41aをRAM
2に登録する処理を図3のフローチャートに従って説明
する。
Next, an interrupt maintenance processing routine 41a included in the user program 41 in the memory card 4 is stored in a RAM.
2 will be described with reference to the flowchart of FIG.

【0020】電源系11の電源がオンされると(ステッ
プS1)、CPU1は、基本ソフト31を起動して必要
なセルフチェックや各種の初期設定を行う(ステップS
2)。そして、この基本ソフト31に基づいてメモリカ
ード4内のユーザプログラム41を実行する(ステップ
S3)。そして、現在実行中のユーザプログラム41に
登録要求ルーチン41bが含まれているか否かを判別す
る(ステップS4)。
When the power of the power supply system 11 is turned on (step S1), the CPU 1 starts the basic software 31 and performs necessary self-checks and various initial settings (step S1).
2). Then, the user program 41 in the memory card 4 is executed based on the basic software 31 (step S3). Then, it is determined whether or not the currently executing user program 41 includes the registration request routine 41b (step S4).

【0021】その結果、登録要求ルーチン41bが含ま
れておれば、この登録要求ルーチン41bに基づいて、
現在実行中のユーザプログラム41に含まれている割込
保全処理ルーチン41aをRAM2に登録する(ステッ
プS5)。この場合、ユーザプログラム41側、すなわ
ち登録要求ルーチン41bでは、割込保全処理ルーチン
41aのアドレスとサイズをパラメータとして基本ソフ
ト31に渡して、登録要求を行う。すると、基本ソフト
31側は、これらパラメータに従って割込保全処理ルー
チン41aをメモリカード4から読出してRAM2の登
録エリアEに書込むことにより、登録処理を行う。この
登録処理を行った後は、メモリカード4内のユーザプロ
グラム41の実行を再開する(ステップS6)。ステッ
プS4にて、登録要求ルーチン41bが含まれていない
と判別されたときは、ステップS5をスキップしてステ
ップS6に進み、メモリカード4内のユーザプログラム
41の実行を再開する。
As a result, if the registration request routine 41b is included, based on the registration request routine 41b,
An interrupt maintenance processing routine 41a included in the currently executing user program 41 is registered in the RAM 2 (step S5). In this case, the user program 41, that is, the registration request routine 41b makes a registration request by passing the address and size of the interrupt maintenance processing routine 41a to the basic software 31 as parameters. Then, the basic software 31 performs the registration processing by reading the interrupt maintenance processing routine 41a from the memory card 4 and writing it in the registration area E of the RAM 2 according to these parameters. After performing the registration process, the execution of the user program 41 in the memory card 4 is restarted (step S6). If it is determined in step S4 that the registration request routine 41b is not included, the process skips step S5 and proceeds to step S6 to restart the execution of the user program 41 in the memory card 4.

【0022】次に、メモリカード4内のユーザプログラ
ム41を実行している最中にメモリカード4のカバーが
開けられた時の割込保全処理を、図4のフローチャート
に従って説明する。
Next, the interrupt maintenance processing when the cover of the memory card 4 is opened while the user program 41 in the memory card 4 is being executed will be described with reference to the flowchart of FIG.

【0023】メモリカード4のカバーが開けられたこと
により、割込制御部5からハードウェア割込信号が入力
されると(ステップS21)、CPU1は、基本ソフト
ウェア31内のカバーオープン割込処理ルーチン31a
を起動する(ステップS22)。このカバーオープン割
込処理ルーチン31aでは、まず、基本ソフトウェア3
1側のデフォルト処理を行う(ステップS23)。この
デフォルト処理としては、例えば、使用中のファイルを
正常に保存すべく当該ファイルをクローズしたり、メモ
リカード4に投入されている電源をオフしたりする処理
を行う。
When the cover of the memory card 4 is opened and a hardware interrupt signal is input from the interrupt control unit 5 (step S21), the CPU 1 executes a cover open interrupt processing routine in the basic software 31. 31a
Is started (step S22). In the cover open interrupt processing routine 31a, first, the basic software 3
The default process on the first side is performed (step S23). As the default process, for example, a process of closing the file in use so as to normally save the file or turning off the power supply to the memory card 4 is performed.

【0024】次に、メモリカード4内の割込保全処理ル
ーチン41aがRAM2に登録されているか否かを判別
する(ステップS24)。その結果、割込保全処理ルー
チン41aがRAM2に登録されておれば、そのRAM
2内の割込保全処理ルーチン41aを実行することによ
り、メモリカード4に対するアクセスを禁止する(ステ
ップS25)。このアクセス禁止は、カバーオープンさ
れた後もメモリカード4に対するアクセスを継続する
と、カバーオープンに引続いてメモリカード4が引抜か
れた際に、オブジェクトコードが不定となってプログラ
ムの暴走を招く等の弊害が発生する可能性があるため、
この弊害を未然に防止するために行われる。
Next, it is determined whether or not the interrupt maintenance processing routine 41a in the memory card 4 is registered in the RAM 2 (step S24). As a result, if the interrupt maintenance processing routine 41a is registered in the RAM 2,
The access to the memory card 4 is prohibited by executing the interrupt maintenance processing routine 41a in Step 2 (Step S25). This access prohibition is such that if access to the memory card 4 is continued after the cover is opened, the object code becomes undefined and the program runs away when the memory card 4 is removed following the cover open. Because it can cause harm,
This is performed in order to prevent this adverse effect.

【0025】割込保全処理ルーチン41aでは、ステッ
プS23にて基本ソフトウェア31が行ったデフォルト
処理では不十分な保全処理を行う。この処理の仕方とし
ては、例えば、図5に示したように、表示装置7のタッ
チパネル画面70に、表示メッセージ71や入力キー7
2(図ではメニューキー72aと終了キー72b)を表
示させると共に、各入力キー72の機能のガイダンス7
3を表示させることにより行う。
In the interrupt maintenance processing routine 41a, the default processing performed by the basic software 31 in step S23 performs insufficient maintenance processing. As a method of this processing, for example, as shown in FIG. 5, a display message 71 and an input key 7 are displayed on a touch panel screen 70 of the display device 7.
2 (menu key 72a and end key 72b in the figure) are displayed, and the guidance 7 of the function of each input key 72 is displayed.
3 is displayed.

【0026】次に、ジャンプ先の指定の有無、すなわ
ち、図5の例では、メニューキー72aがタッチされた
か否かを判別する(ステップS26)。その結果、メニ
ューキー72aがタッチされてジャンプ先が指定された
ときは、基本ソフトウェア31内のジャンプ先指定ルー
チン31bに基づいて、タッチされたメニューキー72
aに対応するプログラムへシャンプする(ステップS2
7)。
Next, it is determined whether or not a jump destination has been designated, that is, in the example of FIG. 5, whether or not the menu key 72a has been touched (step S26). As a result, when the menu key 72a is touched and the jump destination is designated, the touched menu key 72 is determined based on the jump destination designation routine 31b in the basic software 31.
shampoo to the program corresponding to a (step S2
7).

【0027】このジャンプ先のプログラムとしては、例
えば、処理メニューを表示するようなプログラムが好適
である。なお、ユーザ割込処理ルーチン41aにおける
ジャンプ先の指定方法は、ジャンプ先のプログラムのプ
ログラム名等のパス指定で可能であり、ジャンプ先に情
報を渡したいときは、RAM2上にデータやファイルの
形式で記憶しておけばよい。ただし、ステップS23に
おいて、基本ソフトウェア31によってデフォルト処理
が行われているので、割込保全処理ルーチン41aで
は、このことを考慮しておく必要がある。
As the jump destination program, for example, a program for displaying a processing menu is suitable. The method of specifying a jump destination in the user interrupt processing routine 41a can be specified by specifying a path such as a program name of a jump destination program. When information is to be passed to the jump destination, data or a file format is stored in the RAM 2. Should be memorized. However, since the default processing is performed by the basic software 31 in step S23, it is necessary to consider this in the interrupt maintenance processing routine 41a.

【0028】一方、メニューキー72aではなく、終了
キー72bがタッチされたときは、電源をオフして(ス
テップS29)、終了する。ステップS24にて、割込
保全処理ルーチン41aがRAM2に登録されていない
と判別されたときは、デフォルトメッセージを表示し
て、キー入力を待つ(ステップS28)。そして、電源
をオフして(ステップS29)、終了する。
On the other hand, when the end key 72b is touched instead of the menu key 72a, the power is turned off (step S29) and the process ends. If it is determined in step S24 that the interrupt maintenance processing routine 41a has not been registered in the RAM 2, a default message is displayed and a key input is waited (step S28). Then, the power is turned off (step S29), and the process ends.

【0029】このように、基本ソフトウェア31によ
り、メモリカード4内の割込保全処理ルーチン41aを
RAM2に登録させておくことにより、カードアクセス
禁止時に必要な処理を自由に設計してメモリカード4内
の割込保全処理ルーチン41aに準備しておくことがで
き、カードアクセス禁止時に必要な処理に融通性を持た
せることが可能となる。また、基本ソフトウェア31に
ジャンプ先指定ルーチン31bを持たせることにより、
カードアクセス禁止時のジャンプ先制御をメモリカード
4内の割込保全処理ルーチン41aにより行うことが可
能となる。
As described above, by registering the interrupt maintenance processing routine 41a in the memory card 4 in the RAM 2 by the basic software 31, the necessary processing when the card access is prohibited can be freely designed and stored in the memory card 4. Can be prepared in the interrupt maintenance processing routine 41a, so that the processing required when card access is prohibited can be made flexible. In addition, by providing the jump destination designation routine 31b in the basic software 31,
Jump destination control when card access is prohibited can be performed by the interrupt maintenance processing routine 41a in the memory card 4.

【0030】[第2実施例]次に、第2実施例を説明す
る。この第2実施例では、カードアクセス禁止時に必要
な保全処理を、基本ソフトウェア31が一部負担するこ
となく、メモリカード4に記録された割込保全処理ルー
チン41aが全て負担するようにしている。また、第1
実施例では、割込保全処理ルーチン41aをRAM2に
登録するだけであったが、第2実施例では、これに加え
て、割込み時のジャンプ先のポインタであるベクタも書
換えるようにしている。このベクタ書換え機能は基本ソ
フトウェア31が持ち、メモリカード4内のユーザプロ
グラム側が基本ソフトウェア31に要求することにより
行う。この際、ベクタに書かれるポインタは、コピーし
た割込保全処理ルーチン41aの先頭アドレス、すなわ
ち登録エリアEの先頭アドレスとなる。
[Second Embodiment] Next, a second embodiment will be described. In the second embodiment, the maintenance processing required when the card access is prohibited is not partially borne by the basic software 31, but is entirely borne by the interrupt maintenance processing routine 41a recorded on the memory card 4. Also, the first
In the embodiment, the interrupt maintenance processing routine 41a is only registered in the RAM 2, but in the second embodiment, in addition to this, the vector which is the jump destination pointer at the time of interruption is rewritten. This vector rewriting function is provided in the basic software 31 and is performed by a user program in the memory card 4 requesting the basic software 31. At this time, the pointer written in the vector becomes the start address of the copied interrupt maintenance processing routine 41a, that is, the start address of the registration area E.

【0031】次に、第2実施例におけるカードアクセス
禁止時の割込保全処理を図6のフローチャートに基づい
て説明する。
Next, an interrupt maintenance process when a card access is prohibited in the second embodiment will be described with reference to a flowchart of FIG.

【0032】メモリカード4のカバーが開けられたこと
により、割込制御部5からハードウェア割込信号が入力
されると(ステップS31)、ベクタがユーザ割込処理
を指示しているので、CPU1は、RAM2の登録エリ
アEに登録された割込保全処理ルーチン41aを起動し
て(ステップS32)、割込保全処理ルーチン41aに
従って割込保全処理を実行する(ステップS33)。
When the cover of the memory card 4 is opened and a hardware interrupt signal is input from the interrupt control section 5 (step S31), the CPU 1 issues a user instruction for the user interrupt processing. Starts the interrupt maintenance processing routine 41a registered in the registration area E of the RAM 2 (step S32), and executes the interrupt maintenance processing according to the interrupt maintenance processing routine 41a (step S33).

【0033】この場合、本実施例では、基本ソフトウェ
ア31は、カードアクセス禁止時に必要な処理を一切行
わないので、ステップS33での割込保全処理で行うべ
き処理は、全てメモリカード4内のユーザプログラム
(割込保全処理ルーチン41a)の設計に委ねられてい
る。従って、それまでのユーザプログラムの実行中に作
成、または更新されたデータや、必要なファイルのみを
クローズしたりする処理を、割込保全処理ルーチン41
aの中に盛込むこともできる。また、他のプログラムに
ジャンプしてそのジャンプ先のプログラムに制御を渡す
場合、ジャンプ先のプログラムに対して、必要な情報を
データやファイルの形式でRAM2上に残すことも可能
である。
In this case, in the present embodiment, since the basic software 31 does not perform any processing required when the card access is prohibited, the processing to be performed in the interrupt maintenance processing in step S33 is entirely performed by the user in the memory card 4. It is left to the design of the program (interrupt maintenance processing routine 41a). Therefore, the process of closing only the data created or updated during the execution of the user program up to that time and the necessary files is performed by the interrupt maintenance processing routine 41.
It can also be included in a. When jumping to another program and transferring control to the jump destination program, it is possible to leave necessary information on the jump destination program in the RAM 2 in the form of data or a file.

【0034】次に、例えば、図5に示したガイダンス表
示等に応答して、ジャンプ先が指定されたか否かを判別
する(ステップS34)。その結果、ジャンプ先が指定
されたときは、基本ソフトウェア31内のジャンプ先指
定ルーチン31bに基づいて、指定されたジャンプ先の
プログラムへシャンプする(ステップS35)。一方、
ジャンプ先が指定されなかったときは、電源をオフして
(ステップS36)、終了する。
Next, for example, in response to the guidance display or the like shown in FIG. 5, it is determined whether a jump destination has been designated (step S34). As a result, when the jump destination is designated, the program is shampooed to the designated jump destination program based on the jump destination designation routine 31b in the basic software 31 (step S35). on the other hand,
If no jump destination is specified, the power is turned off (step S36), and the process ends.

【0035】このように、基本ソフトウェア31によ
り、メモリカード4内の割込保全処理ルーチン41aを
RAM2に登録し、カードアクセス禁止時の割込みベク
タ書換えを行うことにより、カードアクセス禁止時に必
要な処理を自由に設計してメモリカード4内の割込保全
処理ルーチン41aに準備しておくことができ、カード
アクセス禁止時に必要な保全処理に融通性を持たせるこ
とが可能となる。また、基本ソフトウェア31はデフォ
ルト処理を一切行わないので、デフォルト処理に要する
間を短縮することも可能となる。例えば、オープンされ
ているファイルが多いため、デフォルト処理におけるフ
ァイルクローズ処理に時間がかかり、ユーザ割込処理ル
ーチン41aにおけるガイダンス表示の実行が遅れるよ
うな事態を回避するための処理をユーザプログラム(割
込保全処理ルーチン41a)側で準備することができ
る。
As described above, the basic software 31 registers the interrupt maintenance processing routine 41a in the memory card 4 in the RAM 2 and rewrites the interrupt vector when the card access is prohibited, so that the processing required when the card access is prohibited is performed. It can be freely designed and prepared for the interrupt maintenance processing routine 41a in the memory card 4, and it is possible to provide flexibility in the maintenance processing required when card access is prohibited. In addition, since the basic software 31 does not perform any default processing, the time required for the default processing can be reduced. For example, since there are many open files, it takes time to close the file in the default process, and the user program (interrupt processing) to avoid a situation in which the execution of the guidance display in the user interrupt processing routine 41a is delayed. It can be prepared on the maintenance processing routine 41a) side.

【0036】また、基本ソフトウェア31にジャンプ先
指定ルーチン31bを持たせることにより、カードアク
セス禁止時のジャンプ先制御をメモリカード4内の割込
保全処理ルーチン41aにより行うことが可能となる。
この際、基本ソフトウェア31側ではデフォルト処理が
行われないので、ジャンプ先への情報の渡し方をユーザ
プログラム側で自由に設計できる。さらに、ユーザプロ
グラム全体をRAM2に登録することなく、割込保全処
理ルーチン41aだけを登録するようにしたので、RA
M2の使用効率の低下を招くこともない。
By providing the jump destination designation routine 31b in the basic software 31, the jump destination control when the card access is prohibited can be performed by the interrupt maintenance processing routine 41a in the memory card 4.
At this time, since the default processing is not performed on the basic software 31 side, the way of passing information to the jump destination can be freely designed on the user program side. Further, only the interrupt maintenance processing routine 41a is registered without registering the entire user program in the RAM2.
There is no decrease in the use efficiency of M2.

【0037】[0037]

【発明の効果】以上説明したように、本発明によれば
全処理プログラムをその設計の自由度が高く、設計の
負担も軽く、かつ装置本体内のメモリの使用効率の低下
を招かないような形で設計・装備することが可能とな
る。
As described above, according to the present invention ,
High degree of freedom in the design of conservation program, lighter burden of design, and it is possible to design and equipped in such a way does not cause a reduction in the use efficiency of the memory in the apparatus main body.

【0038】具体的には、例えば、カード引抜時にオペ
レータに対する警告や操作の説明等のメッセージの表示
を、ユーザプログラム側で自由に設計でき、また、カー
ド引抜時のシステムによる処理の流れを、電源オフによ
るシステム終了だけでなく、他のプログラムへジャンプ
させるなど、融通性のあるものとでき、さらに、ファイ
ルやデータの保存などについては必要な場合にのみ行う
ようにして、システムがデフォルトで行うような無駄な
処理を省力できる等の効果を奏することができる。
More specifically, for example, the display of a message such as a warning to the operator and an explanation of the operation at the time of card removal can be freely designed on the user program side. Not only system shutdown by turning off, but also flexibility, such as jumping to other programs, and saving files and data only when necessary, and system defaults It is possible to obtain effects such as saving unnecessary wasteful processing.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1、第2実施例によるデータ処理装
置の概略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a data processing device according to first and second embodiments of the present invention.

【図2】メモリに記憶されるデータ内容を説明するため
の説明図である。
FIG. 2 is an explanatory diagram for describing data contents stored in a memory.

【図3】割込保全処理ルーチンの登録処理を示すフロー
チャートである。
FIG. 3 is a flowchart showing a registration process of an interrupt maintenance process routine.

【図4】第1実施例における割込保全処理を示すフロー
チャートである。
FIG. 4 is a flowchart illustrating an interrupt maintenance process according to the first embodiment.

【図5】割込保全処理例としての警告や操作の説明等の
メッセージの表示例を示す図である。
FIG. 5 is a diagram showing a display example of a message such as a warning and an explanation of an operation as an example of an interrupt maintenance process.

【図6】第2実施例における割込保全処理を示すフロー
チャートである。
FIG. 6 is a flowchart illustrating an interrupt maintenance process according to the second embodiment.

【符号の説明】[Explanation of symbols]

1…CPU 2…RAM 3…ROM 4…メモリカード 5…割込制御部 7…表示装置 10…メモリカードリーダ/ライタ 31…基本ソフトウェア 31a…カバーオープン割込処理ルーチン 31b…ジャンプ先指定ルーチン 41…ユーザプログラム 41a…割込保全処理ルーチン 41b…登録要求ルーチン DESCRIPTION OF SYMBOLS 1 ... CPU 2 ... RAM 3 ... ROM 4 ... Memory card 5 ... Interrupt control unit 7 ... Display device 10 ... Memory card reader / writer 31 ... Basic software 31a ... Cover open interrupt processing routine 31b ... Jump destination designation routine 41 ... User program 41a: Interruption maintenance processing routine 41b: Registration request routine

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−303692(JP,A) 特開 平3−51921(JP,A) 特開 平4−172582(JP,A) 特開 平3−82297(JP,A) 特開 平2−309437(JP,A) 特開 昭63−180187(JP,A) 特開 昭60−229169(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 11/00,3/08 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-1-303692 (JP, A) JP-A-3-51921 (JP, A) JP-A-4-1722582 (JP, A) 82297 (JP, A) JP-A-2-309437 (JP, A) JP-A-63-180187 (JP, A) JP-A-60-229169 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06F 11/00, 3/08

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 着脱自在なメモリカードに記憶されてい
アプリケーションプログラムに従ってデータ処理を行
うデータ処理装置において、 前記メモリカードが装着されるメモリカード装着部と、 前記メモリカードに記憶されているアプリケーションプ
ログラム中の保全処理ルーチンを、前記アプリケーショ
ンプログラムを実行中に読み出す読出手段と、 前記読出手段で読み出した前記保全処理ルーチンを記憶
する記憶手段と、 前記メモリカード装着部から前記メモリカードが引き抜
かれたか否かを、前記メモリカードに格納されているア
プリケーションプログラムを実行中に判断する判断手段
と、 前記判断手段により前記メモリカードが引き抜かれたと
判断された場合、前記記憶手段に記憶された前記保全処
ルーチンを実行し、前記メモリカードが引き抜かれた
と判断されない場合は、前記メモリカードに格納されて
いる前記アプリケーションプログラムの実行を継続する
実行手段と、 を有することを特徴とするデータ処理装置。
1. A stored in the removable memory card Tei
A data processing device for performing data processing in accordance with an application program, wherein a memory card mounting unit in which the memory card is mounted; and an application program stored in the memory card .
The maintenance routine in the program
Reading means for reading during execution of the security program, storage means for storing the security processing routine read by the reading means, and pulling out the memory card from the memory card mounting portion.
Whether the memory card has been deleted or not.
A determination unit that determines during execution of the application program; and if the determination unit determines that the memory card has been removed, executes the security processing routine stored in the storage unit and removes the memory card. Was
If not, it is stored in the memory card
Execution means for continuing the execution of the application program .
【請求項2】 前記メモリカード装着部は、カバーを有
し、前記判断手段は、当該カバーが開かれたことを検知
したときに、前記メモリカード装着部から前記メモリカ
ードが引き抜かれたものと判断することを特徴とする請
求項1に記載のデータ処理装置。
2. The method according to claim 2, wherein the memory card mounting unit has a cover, and the determining unit detects that the memory card has been pulled out from the memory card mounting unit when detecting that the cover is opened. The data processing device according to claim 1, wherein the determination is performed.
【請求項3】 着脱自在なメモリカードに記憶されてい
アプリケーションプログラムに従ってデータ処理を行
うデータ処理方法であって、前記メモリカードに記憶さ
れているアプリケーションプログラム中の保全処理ルー
チンを、前記アプリケーションプログラムを実行中に
み出して記憶手段に記憶し、 前記メモリカード装着部から前記メモリカードが引き抜
かれたか否かを、前記メモリカードに格納されているア
プリケーションプログラムを実行中に判断し、 前記メモリカードが引き抜かれたと判断された場合、前
記記憶手段に記憶された前記保全処理ルーチンを実行
し、前記メモリカードが引き抜かれたと判断されない場
合は、前記メモリカードに格納されている前記アプリケ
ーションプログラムの実行を継続することを特徴とする
データ処理方法。
3. A stored in the removable memory card Tei
A data processing method for performing data processing in accordance with an application program that the storage of the memory card
Maintenance process in the application program
Read out the memory card during execution of the application program and store it in the storage means, and pull out the memory card from the memory card mounting portion.
Whether the memory card has been deleted or not.
When the application program is determined to be executed, and when it is determined that the memory card is removed, the security processing routine stored in the storage unit is executed.
If it is not determined that the memory card has been
The application stored in the memory card.
A data processing method characterized by continuing execution of an application program .
【請求項4】 前記メモリカード装着部は、カバーを有
し、前記メモリカード装着部から前記メモリカードが引
き抜かれたか否かの判断は、当該カバーが開かれたか否
かにより行うことを特徴とする請求項3に記載のデータ
処理方法。
4. The memory card mounting portion has a cover, and the determination as to whether the memory card is pulled out from the memory card mounting portion is made based on whether the cover is opened. 4. The data processing method according to claim 3, wherein:
JP23088393A 1993-08-24 1993-08-24 Data processing apparatus and method Expired - Fee Related JP3347420B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23088393A JP3347420B2 (en) 1993-08-24 1993-08-24 Data processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23088393A JP3347420B2 (en) 1993-08-24 1993-08-24 Data processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH0764809A JPH0764809A (en) 1995-03-10
JP3347420B2 true JP3347420B2 (en) 2002-11-20

Family

ID=16914804

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23088393A Expired - Fee Related JP3347420B2 (en) 1993-08-24 1993-08-24 Data processing apparatus and method

Country Status (1)

Country Link
JP (1) JP3347420B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BRPI0510463A (en) * 2004-05-28 2007-11-06 Thomson Licensing method for managing the insertion or removal of a memory card into or from a card reader and device for use in the method

Also Published As

Publication number Publication date
JPH0764809A (en) 1995-03-10

Similar Documents

Publication Publication Date Title
EP0316904A2 (en) Arithmetic processor performing mask and trap operations for exceptions
US20020026601A1 (en) Information processing apparatus with central processing unit and main memory having power saving mode, and power saving controlling method
JP3327628B2 (en) Electronic device and control method thereof
JP3347420B2 (en) Data processing apparatus and method
EP1293894A2 (en) Start control method in a computer system
JP2000020157A (en) Host linked processor with hibernation processing function
JP3389816B2 (en) Information processing device
JPH05274157A (en) Image generating device
JPH07281986A (en) Extended board, information processor using the same and control method for peripheral device
JPH0519884A (en) Electronic equipment
JPH0224727A (en) Information processor
JPH0795288B2 (en) Microcomputer
JP3330767B2 (en) Information processing apparatus and trace acquisition method in information processing apparatus
JPS62276634A (en) Virtual computer system
JPH06119256A (en) Memory check system
JPH0793184A (en) Debugging device
JPH0232651B2 (en)
JP2984131B2 (en) Processing system
JP2897748B2 (en) Keyboard device
JP3130421B2 (en) Program analysis method and apparatus
JPH1011320A (en) Rom program monitor device of processor of computer or the like
JPH0415817A (en) Terminal equipment
JPH06202858A (en) Information processor
JPH0417453B2 (en)
JPH03256128A (en) Method for loading program

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080906

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090906

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090906

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100906

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100906

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110906

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110906

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120906

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees