JPH0744361A - Starting method for program - Google Patents

Starting method for program

Info

Publication number
JPH0744361A
JPH0744361A JP5188318A JP18831893A JPH0744361A JP H0744361 A JPH0744361 A JP H0744361A JP 5188318 A JP5188318 A JP 5188318A JP 18831893 A JP18831893 A JP 18831893A JP H0744361 A JPH0744361 A JP H0744361A
Authority
JP
Japan
Prior art keywords
program
address
stored
rom
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5188318A
Other languages
Japanese (ja)
Inventor
Tetsuo Otsuka
哲夫 大塚
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP5188318A priority Critical patent/JPH0744361A/en
Publication of JPH0744361A publication Critical patent/JPH0744361A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To inhibit the illegal use of a program and to enable only the legal execution of the program by executing a program corresponding to a start address, which is stored in a memory different from a memory storing the program, based on this address. CONSTITUTION:When an application program stored in an application ROM is started according to an operating system(OS) program in an OS ROM, a jump address 2 is previously stored in the OS ROM as the start address so as to execute a program 2 first. When the application ROM is started, the address 2 is read and the correspondent program 2 is executed. Next, a jump address 1 is read by jumping to the OS ROM by a jump instruction 2, and a correspondent program 1 is executed. Next, a jump address 3 is read by jumping to the OS ROM by a jump instruction 1, and a correspondent program 3 is executed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はプログラムの起動方法に
関し、例えばコンピュータゲーム等のアプリケーション
プログラムの起動方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for starting a program, for example, a method for starting an application program such as a computer game.

【0002】[0002]

【従来の技術】通常のアプリケーションプログラムを実
行させる場合は、そのプログラムが実行できればよく、
アプリケーションプログラムそのものの正当性が問題と
なる場合はほとんどない。
2. Description of the Related Art When executing a normal application program, it is sufficient that the program can be executed.
In most cases, the legitimacy of the application program itself does not matter.

【0003】ところが、例えばコンピュータゲーム等の
アプリケーションプログラムのように、国の法律、法令
等で規定されている審査基準を満たす必要がある特殊な
アプリケーションプログラムをマシンに装着して起動さ
せる場合は、そのマシンに装着されているアプリケーシ
ョンプログラムの正当性が問題となる。
However, when a special application program, such as an application program for a computer game, which needs to meet the examination standards stipulated by national laws and regulations, is mounted on a machine and started, The legitimacy of the application program installed in the machine becomes a problem.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来に
おいては、例えば、第三者がプログラムを不正なものと
交換した場合など、マシンに装着されているプログラム
の正当性を確実にチェックする方法がなかった。本発明
の課題は、マシンに装着されているプログラムの正当性
を確実にチェックして、不正プログラムの使用を禁止す
ることである。
However, there is no conventional method for surely checking the legitimacy of a program installed in a machine, for example, when a third party replaces the program with an unauthorized one. It was An object of the present invention is to reliably check the legitimacy of a program installed in a machine and prohibit the use of an unauthorized program.

【0005】[0005]

【課題を解決するための手段】本発明の手段は次の通り
である。まず、プログラムを起動すべき本来のスタート
アドレスとは異なるアドレスを、このプログラムを記憶
した第1のメモリ、例えばアプリケーションROMとは
異なる第2のメモリ、例えばOSROMにあらかじめ記
憶する。次に、上記第1のメモリに記憶されたプログラ
ムの起動時、上記第2のメモリに記憶されたアドレスを
読み出す。そして、この読み出したアドレスをスタート
アドレスとして、上記第1のメモリに記憶されたプログ
ラムをアクセスしてこのプログラムを起動する。
The means of the present invention are as follows. First, an address different from the original start address for starting the program is stored in advance in a first memory storing this program, for example, a second memory different from the application ROM, for example, an OSROM. Next, when the program stored in the first memory is activated, the address stored in the second memory is read. Then, using the read address as a start address, the program stored in the first memory is accessed to start the program.

【0006】[0006]

【作用】本発明の手段の作用は次の通りである。まず、
プログラムを起動すべき本来のスタートアドレスとは異
なるアドレスを、このプログラムを記憶した第1のメモ
リとは異なる第2のメモリにあらかじめ記憶し、次に、
上記第1のメモリに記憶されたプログラムの起動時、上
記第2のメモリに記憶されたアドレスを読み出し、そし
て、この読み出したアドレスをスタートアドレスとし
て、上記第1のメモリに記憶されたプログラムをアクセ
スしてこのプログラムを起動する。
The operation of the means of the present invention is as follows. First,
An address different from the original start address for starting the program is previously stored in a second memory different from the first memory storing the program, and then,
When the program stored in the first memory is activated, the address stored in the second memory is read, and the program stored in the first memory is accessed using the read address as a start address. Then start this program.

【0007】[0007]

【実施例】以下、本発明の実施例を、図1乃至図3を参
照して詳細に説明する。図3は本発明の第一実施例に係
るプログラムの起動方法が適用されるプログラム処理装
置の概略構成図である。同図において、使用者が入力部
14を介して所定の操作、例えば電源ON操作を行なっ
たとき、CPU10はOS(オペレーティングシステ
ム)ROM11に記憶されたOSプログラムに従って、
アプリケーションROM12に記憶されたコンピュータ
ゲーム等のアプリケーションプログラムを起動する。そ
して、このアプリケーションプログラムに従って入力部
14に構成された各種キーやマウス操作に応じて表示コ
ントローラ16を介して表示部15に適宜表示を行う。
Embodiments of the present invention will be described in detail below with reference to FIGS. FIG. 3 is a schematic configuration diagram of a program processing device to which the program starting method according to the first embodiment of the present invention is applied. In the figure, when the user performs a predetermined operation, for example, a power-on operation via the input unit 14, the CPU 10 follows the OS program stored in the OS (operating system) ROM 11 according to the OS program.
An application program such as a computer game stored in the application ROM 12 is activated. Then, in accordance with this application program, various display keys are appropriately displayed on the display unit 15 via the display controller 16 in response to various keys configured on the input unit 14 and mouse operations.

【0008】RAM13はワークエリアとして使用され
ると共に、A、B、C、Dのエリアが設けられ、これら
のエリアには後述するように、アプリケーションプログ
ラムの正当性をチェックする場合に使用する最終アドレ
スデータが記憶される。また、警告ランプ17は、アプ
リケーションプログラムが正当なものでないことが判明
した場合にこれを使用者に警告するためのものである。
The RAM 13 is used as a work area and is provided with areas A, B, C and D, and these areas are the final addresses used when the validity of the application program is checked, as will be described later. The data is stored. Further, the warning lamp 17 is for warning the user of the fact that the application program is found to be invalid.

【0009】次にこのような構成を有するプログラム処
理装置の動作を図1及び図2を参照して説明する。図1
は本実施例に係るプログラム起動方法を説明するための
フローチャートである。図2(a)は本実施例に係るO
SROM11の構成を示し、図2(b)はアプリケーシ
ョンROM12の構成を示す図である。
Next, the operation of the program processing device having such a configuration will be described with reference to FIGS. 1 and 2. Figure 1
2 is a flow chart for explaining a program starting method according to the present embodiment. FIG. 2A shows O according to this embodiment.
FIG. 2B is a diagram showing the configuration of the SROM 11, and FIG. 2B is a diagram showing the configuration of the application ROM 12.

【0010】OSROM11には図2(a)に示すよう
に、スタートアドレスとジャンプアドレス1とジャンプ
アドレス2とが順に記憶されている。また、アプリケー
ションROM12にはダミープログラム1、プログラム
1、ジャンプ命令1、ダミープログラム2、プログラム
2、ジャンプ命令2、ダミープログラム3、プログラム
3が順に記憶されている。
As shown in FIG. 2A, the OSROM 11 stores a start address, a jump address 1 and a jump address 2 in order. Further, the application ROM 12 stores a dummy program 1, a program 1, a jump instruction 1, a dummy program 2, a program 2, a jump instruction 2, a dummy program 3, and a program 3 in order.

【0011】OSROM11のOSプログラムに従って
アプリケーションROM12に記憶されたアプリケーシ
ョンプログラムが起動されたとき、本来はダミープログ
ラム1を実行するが、本実施例においてはプログラム2
を最初に実行すべくジャンプアドレス2をスタートアド
レスとしてOSROM11にあらかじめ記憶しておく。
そして、アプリケーションROM12が起動されたと
きはOSROM11にあらかじめ記憶されたスタートア
ドレスすなわちジャンプアドレス2を読み込んで、この
アドレスに対応するプログラム2を実行する。次に、ジ
ャンプ命令2によりOSROM11にジャンプしてジャ
ンプアドレス1を読み込み、このアドレスに対応するプ
ログラム1を実行する。次にジャンプ命令1によりOS
ROM11にジャンプしてジャンプアドレス3を読み込
み、このアドレスに対応するプログラム3を実行する。
When the application program stored in the application ROM 12 is activated according to the OS program of the OSROM 11, the dummy program 1 is originally executed, but in the present embodiment, the program 2 is used.
In order to execute the first step, the jump address 2 is stored as a start address in the OSROM 11 in advance.
When the application ROM 12 is activated, the start address, that is, the jump address 2 stored in advance in the OSROM 11 is read, and the program 2 corresponding to this address is executed. Then, the jump instruction 2 is used to jump to the OSROM 11 to read the jump address 1, and the program 1 corresponding to this address is executed. Next, jump command 1 is used to run the OS
The program jumps to the ROM 11 to read the jump address 3 and executes the program 3 corresponding to this address.

【0012】以下に、図1を参照して本実施例に係るプ
ログラム起動方法を説明する。まず、上記したプログラ
ム処理装置が工場から出荷されるとき、電源をONした
後、MACスイッチ(SW)と呼ばれる特殊なスイッチ
をONし、装着されているアプリケーションROM12
に記憶されたプログラムの最終アドレスをサーチしてこ
のアドレスをRAM13のAエリアに記憶する(ステッ
プS1、S2)。その後、MACSWをOFFしてお
く。
The program starting method according to this embodiment will be described below with reference to FIG. First, when the above-described program processing device is shipped from the factory, after turning on the power, a special switch called a MAC switch (SW) is turned on, and the installed application ROM 12
The last address of the program stored in is searched, and this address is stored in the area A of the RAM 13 (steps S1 and S2). After that, the MACSW is turned off.

【0013】次に、工場出荷後、所定の場所にプログラ
ム処理装置が設置され、電源をONした後、MACSW
がONかどうかを判断する(ステップS1)。この時点
ではMACSWはOFFされているので、ステップS3
に飛んで、このとき装着されているアプリケーションR
OM12に記憶されたプログラムの最終アドレスをサー
チしてこのアドレスをRAM13のBエリアに記憶す
る。次に、RAM13のAエリアとBエリアに記憶され
たアドレスが一致するか否かを判断する(ステップS
4)。これらのアドレスが一致しない場合は、装着され
ているアプリケーションプログラムを起動しないように
すべく永久ループへ飛んで、警告ランプ17によってこ
のプログラムが正当なものでないことを表示する。
Next, after the factory shipment, a program processing device is installed at a predetermined place, and the power is turned on.
It is determined whether or not is ON (step S1). Since the MACSW is turned off at this point, step S3
To the application R installed at this time
The final address of the program stored in the OM 12 is searched and this address is stored in the B area of the RAM 13. Next, it is determined whether the addresses stored in the area A and the area B of the RAM 13 match (step S).
4). If these addresses do not match, a jump to an endless loop is made to prevent the installed application program from starting and a warning lamp 17 indicates that this program is not valid.

【0014】また、両アドレスが一致した場合はOSR
OM11に記憶されたスタートアドレスを読み出す(ス
テップS5)。次に、読み出したスタートアドレスに従
ったアプリケーションROM12のアプリケーションプ
ログラム、ここではプログラム2を起動する。ここで、
第三者がこのアプリケーションプログラムを不正に解析
かつ改造した場合は、スタートアドレスがプログラム2
の開始位置からずれてしまうので、アプリケーションプ
ログラムが正常に実行されなくなってしまう。これよ
り、このアプリケーションプログラムが不正に改造され
たことがわかる。
If both addresses match, OSR
The start address stored in the OM 11 is read (step S5). Next, the application program of the application ROM 12 according to the read start address, here, the program 2 is started. here,
If a third party illegally analyzes and modifies this application program, the start address will be Program 2
The application program cannot be executed normally because it deviates from the start position. From this, it can be seen that this application program has been tampered with.

【0015】以上、上記した実施例により説明したよう
に、本実施例のプログラムの起動方法は、プログラム起
動時に、このプログラムが記憶されたメモリとは別のメ
モリに記憶されたスタートアドレスに基づいて、このア
ドレスに対応するプログラムを実行する。したがって、
第三者が別のメモリに記憶されたスタートアドレスを知
らない限り、プログラムを解読して不正プログラムに改
造したとしても、プログラムスタート位置がずれてしま
うことより正常なプログラム動作とはならないので、不
正プログラムであることがわかる。なお、本実施例にお
いては、スタートアドレスをOSROM11に記憶した
がこれに限定されず他のメモリでもよい。
As described above with reference to the above-described embodiment, the method for starting a program according to the present embodiment is based on a start address stored in a memory different from the memory in which the program is stored when the program is started. , Execute the program corresponding to this address. Therefore,
Unless a third party knows the start address stored in another memory, even if the program is decrypted and modified into an illegal program, the program start position will be misaligned and normal program operation will not be performed. It turns out to be a program. Although the start address is stored in the OSROM 11 in the present embodiment, the present invention is not limited to this and may be another memory.

【0016】[0016]

【発明の効果】本発明によれば、マシンに装着されてい
るプログラムの正当性を確実にチェックできるので、不
正プログラムの使用を禁止して正当なプログラムのみに
よる実行が可能になる。
According to the present invention, since the legitimacy of a program installed in a machine can be surely checked, it is possible to prohibit the use of an unauthorized program and execute only the legitimate program.

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

【図1】本発明の一実施例に係るプログラム起動方法を
説明するためのフローチャートである。
FIG. 1 is a flowchart for explaining a program starting method according to an embodiment of the present invention.

【図2】本実施例に係るOSROM及びアプリケーショ
ンROMの構成を示す図である。
FIG. 2 is a diagram showing a configuration of an OS ROM and an application ROM according to the present embodiment.

【図3】本発明の実施例に係るプログラム起動方法が適
用されるプログラム処理装置の概略構成図である。
FIG. 3 is a schematic configuration diagram of a program processing device to which a program starting method according to an embodiment of the present invention is applied.

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

10…CPU、11…OS(オペレ−ティングシステ
ム)ROM、12…アプリケーションROM、13…R
AM、14…入力部、15…表示部、16…表示コント
ローラ、17…警告ランプ。
10 ... CPU, 11 ... OS (Operating System) ROM, 12 ... Application ROM, 13 ... R
AM, 14 ... Input unit, 15 ... Display unit, 16 ... Display controller, 17 ... Warning lamp.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 プログラムを起動すべき本来のスタート
アドレスとは異なるアドレスを、このプログラムを記憶
した第1のメモリとは異なる第2のメモリにあらかじめ
記憶し、 上記第1のメモリに記憶されたプログラムの起動時、上
記第2のメモリに記憶されたアドレスを読み出し、 この読み出したアドレスをスタートアドレスとして、上
記第1のメモリに記憶されたプログラムをアクセスして
このプログラムを起動することを特徴とするプログラム
の起動方法。
1. An address different from the original start address for starting the program is previously stored in a second memory different from the first memory storing the program, and is stored in the first memory. When the program is started, an address stored in the second memory is read, and the read address is used as a start address to access the program stored in the first memory to start the program. How to start the program.
JP5188318A 1993-07-29 1993-07-29 Starting method for program Pending JPH0744361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5188318A JPH0744361A (en) 1993-07-29 1993-07-29 Starting method for program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5188318A JPH0744361A (en) 1993-07-29 1993-07-29 Starting method for program

Publications (1)

Publication Number Publication Date
JPH0744361A true JPH0744361A (en) 1995-02-14

Family

ID=16221511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5188318A Pending JPH0744361A (en) 1993-07-29 1993-07-29 Starting method for program

Country Status (1)

Country Link
JP (1) JPH0744361A (en)

Similar Documents

Publication Publication Date Title
US20130133025A1 (en) Security Deployment System
JP2003022218A (en) Method for activating or inactivating at least a part of data stored in memory device of microcomputer system and microcomputer system
JPH08272625A (en) Device and method for multiprogram execution control
US9262631B2 (en) Embedded device and control method thereof
US8176278B2 (en) Information processing apparatus, information processing method and record medium
KR20070056940A (en) Information processing apparatus that executes program, computer readable medium in witch program is stored, and program control method for executing program
CN111400723A (en) TEE extension-based operating system kernel mandatory access control method and system
JP2005316599A (en) Interrupt controller
US8732843B2 (en) Software validity period changing apparatus, method, and installation package
JP2001256118A (en) Method for protecting microcomputer system, memory device and microcomputer system
JPH0744361A (en) Starting method for program
JPH09198258A (en) Task stack overflow detecting circuit
JPH0744378A (en) Starting method for program
JPH09106690A (en) Rom with copy preventing function
KR100239438B1 (en) Cpu having function for preventing malfuction
JP2002229855A (en) Semiconductor memory preventing unauthorised use
JP2776370B2 (en) Illegal command input prevention method
JP4543505B2 (en) Microcomputer control method and abnormality monitoring device
JP3005649B2 (en) Processor with software protection function
KR950000551B1 (en) Control unit and method of protecting computer virus
JPH06309236A (en) Illegal write detecting circuit for memory
JP2015115052A (en) Microprocessor, computer, method of coping with abnormality, and abnormality countermeasure program
JPS63310043A (en) Incorrect address access detection system for program
JP2000099302A (en) Image forming device support system
JP3598350B2 (en) Memory access control device