JPH0764809A - Data processor - Google Patents

Data processor

Info

Publication number
JPH0764809A
JPH0764809A JP5230883A JP23088393A JPH0764809A JP H0764809 A JPH0764809 A JP H0764809A JP 5230883 A JP5230883 A JP 5230883A JP 23088393 A JP23088393 A JP 23088393A JP H0764809 A JPH0764809 A JP H0764809A
Authority
JP
Japan
Prior art keywords
memory card
program
application program
interrupt
routine
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.)
Granted
Application number
JP5230883A
Other languages
Japanese (ja)
Other versions
JP3347420B2 (en
Inventor
Hidetaka Suzuki
英孝 鈴木
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

Abstract

PURPOSE:To design and provide a maintenance processing program with a large number of degrees of freedom of design and less burden to design without degrading the use efficiency of a memory in a device main body by providing an application program on a memory card with the maintenance processing program to be executed at the time of pulling out the memory card. CONSTITUTION:When the power source of a power system 11 is turned on, a CPU 1 executes the application program in a memory card 4 based on a basic soft. If a register request routine is included in the executing application program, an interrupt maintenance processing routine (maintenance processing program) included in the application program executed at present is registered in a RAM 2 based on this included routine. When the memory card 4 is pulled out of the device main body during execution of the application program, the CPU 1 controls true device to perform the maintenance processing in accordance with the maintenance processing program registered in the RAM 2 in the device main body.

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 device which processes data 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 detachably attached to a main body of the device and data processing is performed based on an application program on the attached memory card. The device body is provided with a slot or the like for mounting a memory card.

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

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

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

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

【0007】[0007]

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

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

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

【0010】本発明は、このような事情の下になされた
もので、その目的は、メモリカード引抜き時に実行すべ
き保全処理プログラムを、設計の自由度が高く、設計の
負担も軽く、かつ装置本体内のメモリの使用効率の低下
を招かないような形で設計・装備可能とするデータ処理
装置を提供することにある。
The present invention has been made under the above circumstances, and an object thereof 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, a light design load, and a device. It is an object of the present invention to provide a data processing device which can be designed and equipped in such a manner that the use efficiency of the memory in the main body is not deteriorated.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、メモリカードに記録されたアプリケーシ
ョンプログラムに従ってデータ処理を行うデータ処理装
置において、前記メモリカードに記録されたアプリケー
ションプログラムは、当該アプリケーションプログラム
の実行中に当該メモリカードが装置本体から引抜かれた
際に実行すべき保全処理プログラムを含み、前記データ
処理装置は、前記メモリカードに記録されたアプリケー
ションプログラムを実行する際、前記保全処理プログラ
ムのみを装置本体内のメモリに予め登録する登録手段
と、前記アプリケーションプログラムの実行中に前記メ
モリカードが装置本体から引抜かれたとき、装置本体内
のメモリに登録された前記保全処理プログラムに従って
保全処理を行うよう制御する制御手段とが設けられてい
る。
In order to achieve the above object, the present invention provides a data processing device for performing data processing according to an application program recorded in a memory card, wherein the application program recorded in the memory card is The data processing device includes a security processing program to be executed when the memory card is pulled out from the apparatus main body during execution of the application program, and the data processing device performs the security processing when executing the application program recorded in the memory card. Registration means for pre-registering only the program in the memory in the main body of the device, and maintenance according to the maintenance processing program registered in the memory in the main body of the device when the memory card is pulled out from the main body of the device during execution of the application program Control processing And control means for are provided.

【0012】[0012]

【作用】データ処理装置の登録手段は、メモリカードに
記録されたアプリケーションプログラムを実行する際、
そのアプリケーションプログラムに含まれている保全処
理プログラムのみを装置本体内のメモリに予め記録して
おく。そして、制御手段は、アプリケーションプログラ
ムの実行中にメモリカードが装置本体から引抜かれたと
き、装置本体内のメモリに登録された保全処理プログラ
ムに従って保全処理を行うよう制御する。
The registering means of the data processing device, when executing the application program recorded in the memory card,
Only the security processing program included in the application program is recorded in advance in the memory in the apparatus body. Then, when the memory card is pulled out from the main body of the apparatus while the application program is being executed, the control means controls to perform the security processing according to the security processing program registered in the memory in the main body of the apparatus.

【0013】このように、保全処理プログラムは、メモ
リカード上のアプリケーションプログラムに持たせるの
で、設計の自由度が高く、設計の負担も軽くなる。ま
た、装置本体内のメモリには、アプリケーションプログ
ラム全体ではなく、保全処理プログラムだけが登録され
るので、装置本体内のメモリの使用効率の低下を招くこ
ともない。
As described above, since the security processing program is included in the application program on the memory card, the degree of freedom in design is high and the load on design is light. Further, since only the security processing program is registered in the memory in the device body, not the entire application program, the use efficiency of the memory in the device body is not deteriorated.

【0014】[0014]

【実施例】以下、本発明の第1〜第2実施例を図面に基
づいて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The 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 the schematic arrangement of a data processing apparatus according to the 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 11a, and a battery pack 11b via a bus B.
Are connected. Further, the data processing device can use the memory card 4, and the memory card reader / writer 10 is connected to the CPU 1 via the bus B.

【0016】なお、図示省略したが、本データ処理装置
の筐体には、メモリカード4を装置本体に対して着脱可
能にするためのスロットが形成され、このスロットに
は、メモリカード4が装置本体から逸脱したり、誤って
引抜かれるのを防止するためにカバーが設けられてい
る。そして、このカバーのオープンを検知してハードウ
ェア割込信号をCPU1に出力する割込制御部5が、C
PU1に接続されている。
Although not shown in the drawings, a slot for allowing the memory card 4 to be attached to and detached from the main body of the data processing apparatus is formed in the housing of the present data processing apparatus. A cover is provided to prevent deviation from the body or accidental withdrawal. Then, the interrupt control unit 5 that 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 controller 5 detects the opening of the cover when the memory card 4 is attached or detached, and the hardware interrupt. CP signal (cover open interrupt signal)
Output to U1. The RAM 2 has a registration area E for registering an interrupt maintenance processing routine 41a, which will be described later, recorded in the memory card 4. Basic software (operating system) 31 is preset in the ROM 3, and the basic software 31 includes
A cover open interrupt processing routine 31a and a jump destination designation routine 31b are included.

【0018】メモリカード4には、基本ソフトウェア3
1が実行し得る形式で記述されたユーザプログラム(ア
プリケーションプログラム)41が格納されており、こ
のユーザプログラム41には、カバーオープン時に実行
すべき割込保全処理ルーチン41aと、この割込保全処
理ルーチン41aをRAM2の登録エリアEに登録する
よう基本ソフトウェア31に対して要求する登録要求ル
ーチン41bが含まれている。
The memory card 4 includes the basic software 3
1 stores a user program (application program) 41 described in a format that can be executed by the I. No. 1, and the user program 41 includes an interrupt maintenance processing routine 41a to be executed when the cover is opened and this interrupt maintenance processing routine. 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, the interrupt maintenance processing routine 41a included in the user program 41 in the memory card 4 is stored in the RAM.
The process of registering in No. 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 activates the basic software 31 to perform necessary self-checks and various initial settings (step S1).
2). Then, the user program 41 in the memory card 4 is executed based on this basic software 31 (step S3). Then, it is determined whether or not the user program 41 currently being executed 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,
The interrupt maintenance processing routine 41a included in the user program 41 currently being executed is registered in the RAM 2 (step S5). In this case, on the user program 41 side, that is, in the registration request routine 41b, the address and size of the interrupt maintenance processing routine 41a are passed to the basic software 31 as parameters to make a registration request. Then, the basic software 31 side performs the registration processing by reading the interrupt maintenance processing routine 41a from the memory card 4 according to these parameters and writing it in the registration area E of the RAM 2. After performing this registration process, execution of the user program 41 in the memory card 4 is restarted (step S6). When it is determined in step S4 that the registration request routine 41b is not included, step S5 is skipped and the process 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 process 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 a hardware interrupt signal is input from the interrupt controller 5 due to the cover of the memory card 4 being opened (step S21), the CPU 1 causes the cover open interrupt processing routine in the basic software 31. 31a
Is activated (step S22). In this cover open interrupt processing routine 31a, first, the basic software 3
Default processing on the first side is performed (step S23). As the default process, for example, a process of closing the file in order to normally save the file in use, or turning off the power supplied 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, that RAM
Access to the memory card 4 is prohibited by executing the interrupt maintenance processing routine 41a in step 2 (step S25). This access prohibition means that if the memory card 4 is continued to be accessed after the cover is opened, the object code becomes undefined when the memory card 4 is pulled out following the cover open, causing a program runaway. Because harmful effects may occur,
This is done 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 is insufficient. 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 the touch panel screen 70 of the display device 7.
2 (menu key 72a and end key 72b in the figure) are displayed, and guidance 7 for the function of each input key 72 is displayed.
This is done by displaying 3.

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

【0027】このジャンプ先のプログラムとしては、例
えば、処理メニューを表示するようなプログラムが好適
である。なお、ユーザ割込処理ルーチン41aにおける
ジャンプ先の指定方法は、ジャンプ先のプログラムのプ
ログラム名等のパス指定で可能であり、ジャンプ先に情
報を渡したいときは、RAM2上にデータやファイルの
形式で記憶しておけばよい。ただし、ステップS23に
おいて、基本ソフトウェア31によってデフォルト処理
が行われているので、割込保全処理ルーチン41aで
は、このことを考慮しておく必要がある。
As this jump destination program, for example, a program for displaying a processing menu is suitable. The method of designating the jump destination in the user interrupt processing routine 41a can be performed by designating the path such as the program name of the program of the jump destination, and when information is to be passed to the jump destination, the format of the data or file on the RAM 2 You can store it in. However, in step S23, the default processing is performed by the basic software 31, so this must be taken into consideration 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 is ended. When it is determined in step S24 that the interrupt maintenance routine 41a is not registered in the RAM 2, a default message is displayed and 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, it is possible to freely design the processing required when the card access is prohibited, and It is possible to prepare for the interrupt maintenance processing routine 41a, and it becomes possible to give flexibility to the processing required when the card access is prohibited. Further, by providing the basic software 31 with a jump destination designation routine 31b,
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.

【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 basic software 31 does not partially bear the security processing required when the card access is prohibited, but the interrupt security processing routine 41a recorded in the memory card 4 bears all the security processing. 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 included in the basic software 31, and the user program in the memory card 4 requests the basic software 31 from the user program side. At this time, the pointer written in the vector becomes the start address of the copied interrupt protection processing routine 41a, that is, the start address of the registration area E.

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

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

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

【0034】次に、例えば、図5に示したガイダンス表
示等に応答して、ジャンプ先が指定されたか否かを判別
する(ステップS34)。その結果、ジャンプ先が指定
されたときは、基本ソフトウェア31内のジャンプ先指
定ルーチン31bに基づいて、指定されたジャンプ先の
プログラムへシャンプする(ステップS35)。一方、
ジャンプ先が指定されなかったときは、電源をオフして
(ステップS36)、終了する。
Next, for example, in response to the guidance display shown in FIG. 5 or the like, it is determined whether or not the jump destination is designated (step S34). As a result, when the jump destination is designated, the jump is designated 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,
When the jump destination is not designated, 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 in the interrupt maintenance processing routine 41a in the memory card 4, and flexibility can be given to the maintenance processing required when the card access is prohibited. Further, since the basic software 31 does not perform any default processing, it is possible to shorten the time required for the default processing. For example, since many files are opened, the file closing process in the default process takes time, and the process for avoiding a situation in which the execution of the guidance display in the user interrupt process routine 41a is delayed is performed by the user program (interrupt). It can be prepared on the side of the maintenance processing routine 41a).

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

【0037】[0037]

【発明の効果】以上説明したように、本発明によれば、
メモリカード引抜時、すなわちメモリカードに対するカ
ードアクセス禁止時に実行すべき保全処理プログラム
を、アプリケーションプログラムの一部としてメモリカ
ードに記録し、この保全処理プログラムだけを装置本体
内のメモリに登録して、メモリカード引抜時には登録し
た保全処理プログラムに従って保全処理を行うようにし
たので、保全処理プログラムをその設計の自由度が高
く、設計の負担も軽く、かつ装置本体内のメモリの使用
効率の低下を招かないような形で設計・装備することが
可能となる。
As described above, according to the present invention,
The security processing program to be executed when the memory card is removed, that is, when the card access to the memory card is prohibited, is recorded in the memory card as a part of the application program, and only this security processing program is registered in the memory in the main body of the device. Since the security processing is performed according to the registered security processing program when the card is removed, the degree of freedom in designing the security processing program is high, the design burden is light, and the efficiency of memory usage in the main unit of the device is not reduced. It becomes possible to design and equip in such a form.

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

【図面の簡単な説明】[Brief description of 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 explaining data contents stored in a memory.

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

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

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

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

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

1…CPU 2…RAM 3…ROM 4…メモリカード 5…割込制御部 7…表示装置 10…メモリカードリーダ/ライタ 31…基本ソフトウェア 31a…カバーオープン割込処理ルーチン 31b…ジャンプ先指定ルーチン 41…ユーザプログラム 41a…割込保全処理ルーチン 41b…登録要求ルーチン 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 ... Interrupt maintenance processing routine 41b ... Registration request routine

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 メモリカードに記録されたアプリケーシ
ョンプログラムに従ってデータ処理を行うデータ処理装
置において、 前記メモリカードに記録されたアプリケーションプログ
ラムは、当該アプリケーションプログラムの実行中に当
該メモリカードが装置本体から引抜かれた際に実行すべ
き保全処理プログラムを含み、 前記データ処理装置は、前記メモリカードに記録された
アプリケーションプログラムを実行する際、前記保全処
理プログラムのみを装置本体内のメモリに予め登録する
登録手段と、 前記アプリケーションプログラムの実行中に前記メモリ
カードが装置本体から引抜かれたとき、装置本体内のメ
モリに登録された前記保全処理プログラムに従って保全
処理を行うよう制御する制御手段と、 を設けたことを特徴とするデータ処理装置。
1. A data processing device for performing data processing according to an application program recorded on a memory card, wherein the application program recorded on the memory card is pulled out from the main body of the device during execution of the application program. A registration processing unit that includes a maintenance processing program to be executed when the data processing apparatus executes the application program recorded in the memory card; A control means for controlling the security processing to be performed in accordance with the security processing program registered in the memory inside the apparatus body when the memory card is pulled out from the apparatus body during execution of the application program. Characterizing day Processing apparatus.
【請求項2】 前記保全処理プログラムは、前記メモリ
カードが装置本体から引抜かれた場合に行うプログラム
を指定し、前記データ処理装置は、指定されたジャンプ
先のプログラムへのジャンプ制御を行うことを特徴とす
る請求項1記載のデータ処理装置。
2. The security processing program specifies a program to be executed when the memory card is pulled out from the main body of the apparatus, and the data processing apparatus executes jump control to the specified jump destination program. The data processing device according to claim 1, wherein the data processing device is a data processing device.
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 true JPH0764809A (en) 1995-03-10
JP3347420B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008500617A (en) * 2004-05-28 2008-01-10 トムソン ライセンシング Method for managing plug-in or removal of a memory card with respect to a card reader and apparatus using the method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008500617A (en) * 2004-05-28 2008-01-10 トムソン ライセンシング Method for managing plug-in or removal of a memory card with respect to a card reader and apparatus using the method

Also Published As

Publication number Publication date
JP3347420B2 (en) 2002-11-20

Similar Documents

Publication Publication Date Title
JP3327628B2 (en) Electronic device and control method thereof
JPH05241622A (en) Programmable controller
JPH0764809A (en) Data processor
JPH0432959A (en) Document processor
JP3507109B2 (en) Portable terminal device
JPH06314202A (en) Image-forming device
JP2000020157A (en) Host linked processor with hibernation processing function
JPH0612208A (en) Personal computer
JPH06160805A (en) Liquid crystal display control system
JPH07319569A (en) Computer system
JPH05274157A (en) Image generating device
JP2701089B2 (en) Information transfer method
JP2923111B2 (en) Data processing method and apparatus
JP2002132395A (en) Data processor and data processing system
JPH0519884A (en) Electronic equipment
JPH0224727A (en) Information processor
TW480401B (en) Device for software control exception control flow of processor and its operating method
JPS62276634A (en) Virtual computer system
CN117918010A (en) Control method and device of display device, display device and readable medium
JPS6011916A (en) Limiting system of use for computer
JPS62100805A (en) Programmable controller
JPH09114513A (en) Numerical control system
JPH0795288B2 (en) Microcomputer
JPS61184644A (en) Control system of virtual computer system
JPH0415817A (en) Terminal equipment

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