JPH07295802A - Program card and computer using the card - Google Patents

Program card and computer using the card

Info

Publication number
JPH07295802A
JPH07295802A JP6087063A JP8706394A JPH07295802A JP H07295802 A JPH07295802 A JP H07295802A JP 6087063 A JP6087063 A JP 6087063A JP 8706394 A JP8706394 A JP 8706394A JP H07295802 A JPH07295802 A JP H07295802A
Authority
JP
Japan
Prior art keywords
program
program information
card
address
address value
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
JP6087063A
Other languages
Japanese (ja)
Other versions
JP3642533B2 (en
Inventor
Naoshi Uchihira
直志 内平
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP08706394A priority Critical patent/JP3642533B2/en
Publication of JPH07295802A publication Critical patent/JPH07295802A/en
Application granted granted Critical
Publication of JP3642533B2 publication Critical patent/JP3642533B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To make it difficult to illicitly copy and transform the program information by preparing a program storage and a machine word instruction reader device in a program card and sending a machine word instruction to a computer main body in each step. CONSTITUTION:A program card 1 storing the program information is put into a program card reader 2 so that a computer main body 3 can have an access to the card 1. Then a program is carried out based on the program information. The card 1 uses a so-called IC card that can record the program information by its contained integrated circuit such as a ROM, a RAM, an EEPROM, etc., and also in a cartridge type in addition to a card type. Thus the program information is stored in the card 1 and then sent to the main body 3 every time a reading request is given from the main body 3.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、プログラムカード及
びこれを用いた計算機に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program card and a computer using the program card.

【0002】[0002]

【従来の技術】近年、集積回路(LSI,VLSI等を
含む。以下「IC等」という)に対する集積化技術の発
達はめざましく、カートリッジ又は薄型のカード(以下
「カード等」という)内にROM型又はRAM型のIC
等を設け、これに計算の手順を示すプログラムと計算デ
ータとを(以下「プログラム情報」という)記憶させる
ことにより、容易に着脱可能な計算機の主記憶装置や補
助記憶装置(以下「記憶装置」という)として利用する
ことが一般的となっている。
2. Description of the Related Art In recent years, the development of integration technology for integrated circuits (including LSI, VLSI, etc .; hereinafter referred to as "IC, etc.") has been remarkable, and a ROM type is incorporated in a cartridge or a thin card (hereinafter called "card, etc.") Or RAM type IC
And the like, and a program indicating calculation procedures and calculation data (hereinafter referred to as “program information”) are stored in the main storage device and auxiliary storage device (hereinafter referred to as “storage device”) of a computer that can be easily attached and detached. It is generally used as.

【0003】ところで、このIC等に記憶されるプログ
ラム情報等は、2進数で表現されており、このプログラ
ム情報は、一括して計算機内のメインメモリに読み込ま
れる。そして、このメインメモリから計算機の中央処理
装置(以下「CPU」という)が逐次読み出しながら、
その内容を解釈して命令を実行する。このように、プロ
グラム情報を計算機の記憶装置の中に読み込んで、それ
を逐次読み出しながら、解釈実行していく計算機をノイ
マン(Neumann )型計算機と呼ばれている。
By the way, the program information and the like stored in this IC and the like are expressed in binary numbers, and this program information is collectively read into the main memory in the computer. Then, while the central processing unit (hereinafter referred to as “CPU”) of the computer sequentially reads from the main memory,
Interpret the contents and execute the instruction. A computer that reads program information into a storage device of a computer and sequentially reads and reads the program information is called a Neumann computer.

【0004】しかしながら、上記ノイマン型計算機にお
ける従来の着脱可能な記憶装置では、計算機本体のCP
Uとの間で所定の信号線を介してプログラム情報の通信
を行う必要がある。従って、この信号線を介してあたか
もCPUがプログラム情報を読み出すのと同じように、
ユーザはプログラム解読装置によりプログラム情報を読
み出してプログラム情報の解読を行うことが可能であ
る。このことは、たとえIC化されていても、プログラ
ム情報を信号線を介して通信する限り、プログラム情報
の解読が可能であることを意味し、莫大な開発費をかけ
て生産したプログラム情報を、第三者による不正な複製
又は改造から保護することが困難であった。
However, in the conventional removable storage device in the Neumann computer, the CP of the computer main body is used.
It is necessary to communicate program information with U via a predetermined signal line. Therefore, as if the CPU reads the program information through this signal line,
The user can read the program information by the program decoding device and decode the program information. This means that even if integrated into an IC, as long as the program information is communicated via a signal line, the program information can be decoded, and the program information produced at a huge development cost can be It was difficult to protect from unauthorized copying or modification by a third party.

【0005】[0005]

【発明が解決しようとする課題】上記ノイマン型計算機
における従来の着脱可能な記憶装置では、計算機本体の
CPUとの間で所定の信号線を介してプログラム情報の
通信を行う必要がある。従って、この信号線を介してあ
たかもCPUがプログラム情報を読み出すのと同じよう
に、ユーザはプログラム解読装置によりプログラム情報
を読み出してプログラム情報の解読を行うことが可能で
ある。このことは、たとえIC化されていても、プログ
ラム情報を信号線を介して通信する限り、プログラム情
報の解読が可能であることを意味し、莫大な開発費をか
けて生産したプログラム情報を、第三者による不正な複
製又は改造等から保護することが困難であった。そこ
で、本発明は、プログラム情報の不正な複製又は改造等
を困難とする記憶装置及びこれを用いた計算機を提供す
るものである。
In the conventional removable storage device of the Neumann computer, it is necessary to communicate the program information with the CPU of the computer main body through a predetermined signal line. Therefore, the user can read the program information by the program decoding device and decode the program information as if the CPU reads the program information through the signal line. This means that even if integrated into an IC, as long as the program information is communicated via a signal line, the program information can be decoded, and the program information produced at a huge development cost can be It was difficult to protect from unauthorized copying or modification by a third party. Therefore, the present invention provides a storage device that makes it difficult to illegally copy or modify program information, and a computer using the storage device.

【0006】[0006]

【課題を解決するための手段】第1発明のうち請求項1
に係る発明は、アドレスの付された単位記憶セル群にプ
ログラム情報が記憶され、計算機本体からの指令により
所定のインターフェースを介して前記プログラム情報が
読出されるプログラムカードにおいて、前記計算機本体
から送出される前記アドレスを示すアドレス値に従って
前記単位記憶セルからプログラム情報を読出すプログラ
ム情報読出し手段と、この手段により読出されたプログ
ラム情報を前記計算機本体に送出する手段とを備えたプ
ログラムカードである。
[Means for Solving the Problems] Claim 1 of the first invention
According to another aspect of the present invention, in a program card in which program information is stored in a unit storage cell group having an address and the program information is read out through a predetermined interface in response to a command from the computer body, the program information is transmitted from the computer body. A program card having program information reading means for reading program information from the unit memory cell according to an address value indicating the address, and means for sending the program information read by this means to the computer body.

【0007】ここで、プログラムカード内の単位記憶セ
ル群は、以下の実施例中、プログラム記憶装置に対応す
る。そして、外部からのアドレス指定信号(アドレス
値)及び読み出し/書き込み信号により、アドレス指定
信号の示すアドレスの割り当てられた単位記憶セルから
プログラム情報を読み出し、また、単位記憶セルに書き
込むことができる また、第1発明のうち請求項2に係る発明は、アドレス
の付された単位記憶セル群にプログラム情報を記憶した
プログラムカードと、このプログラムカードに記憶され
たプログラム情報を所定のインターフェースを介して読
み出して、解釈・実行する計算機本体とを備えたプログ
ラムカード及びこれを用いた計算機であって、前記プロ
グラムカードは、前記アドレスを示すアドレス値に従っ
て前記単位記憶セルからプログラム情報を読出すプログ
ラム情報読出し手段と、この手段により読出されたプロ
グラム情報を前記計算機本体に送出する手段とを備え、
前記計算機本体は、前記アドレス値を保持するアドレス
値保持手段と、この手段に保持されたアドレス値を前記
プログラムカードのプログラム情報読出し手段に送出す
るアドレス値送出手段と、前記プログラム情報送出手段
から送出されたプログラム情報に基づいて命令制御を実
行する命令制御実行手段とを備えたプログラムカード及
びこれを用いた計算機である。
The unit memory cell group in the program card corresponds to the program memory device in the following embodiments. Then, program information can be read from the unit memory cell to which the address indicated by the address designating signal is assigned and written to the unit memory cell by an addressing signal (address value) and a read / write signal from the outside. In the invention according to claim 2 of the first invention, a program card in which program information is stored in a unit memory cell group with an address, and the program information stored in the program card is read out through a predetermined interface. A program card having a computer main body for interpreting and executing, and a computer using the program card, wherein the program card reads program information from the unit memory cell in accordance with an address value indicating the address; , The program read by this means And means for sending information to the computer body,
The computer body has address value holding means for holding the address value, address value sending means for sending the address value held by the means to the program information reading means of the program card, and sending from the program information sending means. A program card provided with an instruction control execution means for executing instruction control based on the generated program information, and a computer using the program card.

【0008】第2発明のうち請求項3に係る発明は、ア
ドレスの付された単位記憶セル群にプログラム情報が記
憶され、計算機本体からの指令により所定のインターフ
ェースを介して前記プログラム情報が読出されるプログ
ラムカードにおいて、前記計算機本体から送出された前
記アドレスを示すアドレス値を、所定の暗号キーに基づ
いて復号化する復号化手段と、この手段により復号化さ
れたアドレス値に従って前記単位記憶セルからプログラ
ム情報を読出すプログラム情報読出し手段と、この手段
により読出されたプログラム情報のうち、命令コード部
とアドレスオペランド部とを識別する手段と、この手段
により識別されたアドレスオペランド部を、所定の暗号
キーに基づいて暗号化する暗号化手段と、前記命令コー
ド部及び前記暗号化手段により暗号化されたアドレスオ
ペランド部を前記計算機本体に送出するプログラム情報
送出手段とを備えたプログラムカードである。
In the invention according to claim 3 of the second invention, the program information is stored in a unit memory cell group to which an address is assigned, and the program information is read out through a predetermined interface in response to a command from the computer main body. In the program card, the address value indicating the address transmitted from the computer main body is decrypted based on a predetermined encryption key, and the unit storage cell is decrypted according to the address value decrypted by this means. The program information reading means for reading the program information, the means for identifying the instruction code part and the address operand part in the program information read by this means, and the address operand part identified by this means are subjected to predetermined encryption. Encryption means for performing encryption based on a key, the instruction code section, and the encryption A program card with program information sending means for sending the address operand portion encrypted on the computer main body by means.

【0009】また、第2発明のうち請求項4に係る発明
は、アドレスの付された単位記憶セル群にプログラム情
報を記憶したプログラムカードと、このプログラムカー
ドに記憶されたプログラム情報を所定のインターフェー
スを介して読み出して、解釈・実行する計算機本体とを
備えたプログラムカード及びこれを用いた計算機であっ
て、前記プログラムカードは、前記アドレスを示すアド
レス値を所定の暗号キーに基づいて復号化する復号化手
段と、この手段により復号化されたアドレス値に従って
前記単位記憶セルからプログラム情報を読出すプログラ
ム情報読出手段と、この手段により読出されたプログラ
ム情報のうち、命令コード部とアドレスオペランド部と
を識別する手段と、この手段により識別されたアドレス
オペランド部を、所定の暗号キーに基づいて暗号化する
暗号化手段と、前記命令コード部及び前記暗号化手段に
より暗号化されたアドレスオペランド部を前記計算機本
体に送出するプログラム情報送出手段とを備え、前記計
算機本体は、前記アドレス値を保持するアドレス値保持
手段と、この手段に保持されたアドレス値を前記プログ
ラムカードのプログラム情報読出し手段に送出するアド
レス値送出手段と、前記プログラム情報送出手段により
送出された命令コード部及び暗号化されたアドレスオペ
ランド部に基づいて命令制御を実行する命令制御実行手
段とを備えたプログラムカード及びこれを用いた計算機
である。
The invention according to claim 4 of the second invention is a program card in which program information is stored in a unit memory cell group to which an address is attached, and the program information stored in the program card is interfaced with a predetermined interface. A program card having a computer main body for reading, interpreting and executing via a computer and a computer using the program card, wherein the program card decrypts an address value indicating the address based on a predetermined encryption key. Decoding means, program information reading means for reading program information from the unit memory cell according to the address value decoded by this means, and instruction code part and address operand part of the program information read by this means. And the address operand part identified by this means, The computer main body comprises an encryption means for performing encryption based on a fixed encryption key, and a program information transmission means for transmitting the instruction code part and the address operand part encrypted by the encryption means to the computer main body. Is an address value holding means for holding the address value, an address value sending means for sending the address value held by this means to the program information reading means of the program card, and an instruction sent by the program information sending means. A program card provided with an instruction control execution means for executing instruction control based on a code part and an encrypted address operand part, and a computer using the program card.

【0010】第3発明のうち請求項5に係る発明は、ア
ドレスの付された単位記憶セル群にプログラム情報が記
憶され、計算機本体からの指令により所定のインターフ
ェースを介して前記プログラム情報が読出されるプログ
ラムカードにおいて、前記アドレスを示すアドレス値を
保持するアドレス値保持手段と、この手段に保持された
アドレス値に従って前記単位記憶セルからプログラム情
報を読出すプログラム情報読出手段と、この手段により
読出されたプログラム情報が所定の条件を満たす場合
に、前記アドレス値保持手段に保持されているアドレス
値を変更するアドレス値変更手段と、前記プログラム情
報読出手段により読出されたプログラム情報を前記計算
機本体に送出するプログラム情報送出手段とを備えたプ
ログラムカードである。
In the invention according to claim 5 of the third invention, the program information is stored in a unit memory cell group to which an address is assigned, and the program information is read out through a predetermined interface in response to a command from the computer main body. In the program card, the address value holding means for holding the address value indicating the address, the program information reading means for reading the program information from the unit memory cell according to the address value held by the means, and the reading means Address value changing means for changing the address value held in the address value holding means and the program information read by the program information reading means when the program information satisfies a predetermined condition. And a program card for transmitting program information .

【0011】また、第3発明のうち請求項6に係る発明
は、アドレスの付された単位記憶セル群にプログラム情
報を記憶したプログラムカードと、このプログラムカー
ドに記憶されたプログラム情報を所定のインターフェー
スを介して読み出して、解釈・実行する計算機本体とを
備えたプログラムカード及びこれを用いた計算機であっ
て、前記プログラムカードは、前記アドレスを示すアド
レス値を保持するアドレス値保持手段と、この手段に保
持されたアドレス値に従って前記単位記憶セルからプロ
グラム情報を読出すプログラム情報読出手段と、この手
段により読出されたプログラム情報が所定の条件を満た
す場合に、前記アドレス値保持手段に保持されているア
ドレス値を変更するアドレス値変更手段と、前記プログ
ラム情報読出手段により読出されたプログラム情報を前
記計算機本体に送出するプログラム情報送出手段とを備
え、前記計算機本体は、前記プログラム情報送出手段に
より送出されたプログラム情報に基づいて命令制御を実
行する命令制御実行手段とを備えたプログラムカード及
びこれを用いた計算機である。
The invention according to claim 6 of the third invention is a program card in which program information is stored in a unit memory cell group having an address, and the program information stored in the program card is interfaced with a predetermined interface. A program card having a computer main body for reading, interpreting and executing via the computer, and a computer using the program card, wherein the program card has an address value holding means for holding an address value indicating the address, and this means. Program information reading means for reading program information from the unit memory cell according to the address value held in the unit memory cell, and the program information read by the means is held in the address value holding means when a predetermined condition is satisfied. Address value changing means for changing the address value, and the program information reading means Program information sending means for sending the read program information to the computer body, the computer body executing instruction control based on the program information sent by the program information sending means, and And a computer using the program card.

【0012】[0012]

【作用】第1発明によれば、プログラム情報を格納した
プログラム記憶装置と機械語命令読み出し装置とをプロ
グラムカード内に設けて、1ステップずつ計算機本体に
機械語命令を送出する。これによって、全プログラム情
報を計算機の主記憶装置にロードする必要がなくなる。
According to the first aspect of the present invention, the program memory device storing the program information and the machine language instruction reading device are provided in the program card, and the machine language instruction is sent to the computer body step by step. This eliminates the need to load all program information into the main memory of the computer.

【0013】第2発明によれば、プログラムカード内に
暗号化装置、暗号キー発生装置及び復号化装置を設け、
プログラムカウンタの内容を暗号化装置により暗号化す
る。ここで、生成される暗号キーは毎回変化するので、
もとのアドレス値が同じであっても毎回異なる暗号化さ
れたアドレス値になる。従って、外部からはプログラム
上のどの場所に戻ったのかがわからなくなり、プログラ
ムの実行制御を外部から隠ぺいすることができる。
According to the second invention, an encryption device, an encryption key generation device and a decryption device are provided in the program card,
The contents of the program counter are encrypted by the encryption device. Here, the generated encryption key changes every time, so
Even if the original address value is the same, it becomes a different encrypted address value every time. Therefore, it is not possible to know where on the program the program has returned from the outside, and the execution control of the program can be hidden from the outside.

【0014】第3発明によれば、プログラムカウンタ及
びこのプログラムカウンタの内容を制御するプログラム
カウンタ計算装置をプログラムカード内に設けているの
で、プログラムの実行制御が計算機本体と完全に分離さ
れることになる。これにより、通常のプログラムカウン
タの更新及び実行制御命令に基づくプログラムカウンタ
の更新をプログラムカード内で行うので、JUMP命令
等によりプログラムを実行する場合にも実行制御を完全
に隠ぺいすることができるようになる。
According to the third aspect of the invention, since the program counter and the program counter calculating device for controlling the contents of the program counter are provided in the program card, the execution control of the program is completely separated from the computer main body. Become. As a result, the normal program counter and the program counter based on the execution control instruction are updated in the program card, so that the execution control can be completely hidden even when the program is executed by the JUMP instruction or the like. Become.

【0015】[0015]

【実施例】以下、図面を参照しながら本発明の一実施例
について説明する。図1は、本発明に係るプログラムカ
ード及びこれを用いた計算機の適用対象を示す図であ
る。同図に示すように、本発明は、プログラム情報が記
憶されたプログラムカード1をプログラムカードリーダ
2に装着することにより計算機本体3からアクセス可能
とし、該プログラム情報に従ってプログラムを実行する
ものに関するものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing an application target of a program card according to the present invention and a computer using the program card. As shown in the figure, the present invention relates to a program card 1 in which program information is stored, which is made accessible by a computer body 3 by mounting the program card 1 in a program card reader 2, and which executes a program according to the program information. is there.

【0016】ここで、プログラムカード1は、内部に設
けられたROMやRAM、EEPROM等の集積回路に
よりプログラム情報を記憶することが可能ないわゆるI
Cカードであり、カード型のみならずカートリッジ型の
ものも含まれるものとする。また、このプログラムカー
ド1は、外部ケースにより内部の集積回路が保護されて
いるが、外部ケースを開封するとICカードの内容が消
失するような構造になっている方が好ましい。
Here, the program card 1 is a so-called I capable of storing program information by an integrated circuit such as ROM, RAM, and EEPROM provided inside.
The C card includes not only a card type but also a cartridge type. Further, in this program card 1, the internal integrated circuit is protected by the outer case, but it is preferable that the contents of the IC card are lost when the outer case is opened.

【0017】また、プログラムカードリーダ2は、プロ
グラムカード1を着脱することができ、装着されたプロ
グラムカード1内に記憶されたプログラム情報を読出
し、また、計算機本体3からのプログラム情報を書込む
場合の入出力装置の役目を果たしている。
Further, the program card reader 2 can attach and detach the program card 1, reads the program information stored in the attached program card 1, and writes the program information from the computer main body 3. Plays the role of an input / output device.

【0018】計算機本体3は、キーボートやディスプレ
イ、補助記憶装置、主記憶装置、中央処理装置等から構
成され、通常の計算機の機能を備えているものとし、本
発明ではそれに加え、プログラムカードリーダ2を介し
て後述するプログラムカード1とアクセスするための機
能を備えている。 [第1発明]図2は、第1発明に係るプログラムカード
及びこれを用いた計算機の構成を示す概念図である。
The computer main body 3 is composed of a keyboard, a display, an auxiliary storage device, a main storage device, a central processing unit, etc., and has the functions of an ordinary computer. In the present invention, the program card reader 2 is additionally provided. It has a function to access the program card 1 described later via the. [First Invention] FIG. 2 is a conceptual diagram showing a configuration of a program card according to the first invention and a computer using the program card.

【0019】本発明は、プログラムカード内にプログラ
ム情報を記憶し、計算機本体からの読み出し要求によ
り、プログラムカード内に格納されたプログラム情報を
その都度計算機本体に送出する 即ち、同図において、命令制御装置201は、プログラ
ムカウンタ(PC)202の内容(アドレス値)をプロ
グラムリーダ2を介してプログラムカード1内の機械語
命令読み出し装置203に送出する。機械語命令読み出
し装置203は、アドレス値に従ってプログラム記憶装
置204から機械語命令を読み出し、これをプログラム
リーダ2を介して計算機本体3の命令解釈実行装置20
5に送出する。命令解釈実行装置は、この機械語命令を
解釈し、その結果に基づいて命令の実行を行い、必要で
あれば主記憶装置206をアクセスする。
According to the present invention, the program information is stored in the program card, and the program information stored in the program card is sent to the computer body each time in response to a read request from the computer body. That is, in FIG. The device 201 sends the content (address value) of the program counter (PC) 202 to the machine language instruction reading device 203 in the program card 1 via the program reader 2. The machine language instruction reading device 203 reads a machine language instruction from the program storage device 204 according to the address value, and reads the machine language instruction via the program reader 2 to the instruction interpretation execution device 20 of the computer main body 3.
Send to 5. The instruction interpretation execution device interprets the machine language instruction, executes the instruction based on the result, and accesses the main storage device 206 if necessary.

【0020】以上のような本発明に係るプログラムカー
ド及びこれを用いた計算機の構成をさらに詳述する。図
3は、第1発明に係るプログラムカード及びこれを用い
た計算機の構成を示す詳細図である。
The configuration of the program card according to the present invention and the computer using the program card will be described in more detail. FIG. 3 is a detailed diagram showing the configuration of a program card according to the first invention and a computer using the program card.

【0021】同図において、計算機本体に設けられてい
る演算装置(ALU)301は、Lバス及びRバスで与
えられたデータに対し演算指定により指定された演算を
行って、演算結果をOバスに出力する。
In the figure, an arithmetic unit (ALU) 301 provided in the computer main body performs an arithmetic operation designated by an arithmetic designation on the data given by the L bus and the R bus, and outputs an arithmetic result as an O bus. Output to.

【0022】条件コードレジスタ(CCR)302は、
演算装置301で行われた演算結果の状態(例えば、
N,Z,V,C)を後述する命令制御装置201からの
指定によりセットすることができる。
The condition code register (CCR) 302 is
The state of the calculation result performed by the calculation device 301 (for example,
(N, Z, V, C) can be set by designation from the instruction control device 201 described later.

【0023】アキュムレータレジスタ(ACC)303
は、いわゆる作業用レジスタであり、Oバスから取り込
んだデータをLバスに出力することができる。上述した
プログラムカウンタ202は、命令制御装置201から
の指令により、そのアドレス値を1増加することができ
るようになっている。プログラムカウンタ202の内容
は、Lバス及びA1 バスに出力することができるように
なっている。
Accumulator register (ACC) 303
Is a so-called work register and can output the data taken in from the O bus to the L bus. The program counter 202 described above can increase its address value by 1 in response to a command from the instruction control device 201. The contents of the program counter 202 can be output to the L bus and A1 bus.

【0024】主記憶番地レジスタ(MAR)304、読
み出し用データレジスタ(RDR)305、書き込み用
データレジスタ(WDR)306は、それぞれ主記憶装
置の読み書きに使われる。
The main memory address register (MAR) 304, the read data register (RDR) 305, and the write data register (WDR) 306 are respectively used for reading and writing of the main memory device.

【0025】命令レジスタ(IR)307は、命令コー
ド部とオペランド部とから構成される機械語命令をセッ
トすることができ、命令コード部は命令制御装置201
に、オペランド部はLバスに送出される。
The instruction register (IR) 307 can set a machine language instruction composed of an instruction code section and an operand section, and the instruction code section is set in the instruction control unit 201.
In addition, the operand part is sent to the L bus.

【0026】命令制御装置201は、命令コード部や条
件コードレジスタ302の内容により、上記各レジスタ
から各バスへの出力、各バスから各レジスタへの入力、
演算の指定、主記憶装置206の読み書き制御等を行う
ことができる。このための制御信号線は、命令制御装置
201から各レジスタに配線されているが、ここでは省
略する。
The instruction control device 201 outputs from each of the above registers to each bus, inputs from each bus to each register, depending on the contents of the instruction code section and the condition code register 302.
It is possible to specify a calculation, read / write control of the main storage device 206, and the like. A control signal line for this purpose is wired from the instruction control device 201 to each register, but is omitted here.

【0027】一方、プログラムカード内に設けられてい
る機械語命令読み出し装置203は、計算機本体に設け
られたプログラムカウンタ202からアドレス値を取り
込み、これをプログラム記憶装置204に送出する。同
時に、機械語命令読み出し装置203は、そのアドレス
値を受けることによって、読み出し信号線308aを読
み出し状態(例えば、「H」)に、選択信号線309a
をアクティブ(例えば、「L」)にして、プログラム記
憶装置204からデータを読み出し、これを計算機本体
の命令レジスタ307に送出する。
On the other hand, the machine language instruction reading device 203 provided in the program card fetches the address value from the program counter 202 provided in the computer main body and sends it to the program storage device 204. At the same time, the machine language instruction reading device 203 receives the address value and puts the read signal line 308a into the read state (for example, “H”), and the selection signal line 309a.
Is made active (for example, “L”), data is read from the program storage device 204, and this is sent to the instruction register 307 of the computer main body.

【0028】以上のように構成された本発明に係るプロ
グラムカーと及びこれを用いた計算機は、以下のように
動作する。即ち、命令制御装置201は、まずプログラ
ムカウンタ202の内容をA1 バスに出力する。A1 バ
スに出力されたアドレス値は、プログラムカードリーダ
(図示せず)を介して命令読み出し装置203に送出さ
れる。命令読み出し装置203は、プログラムカウンタ
202からのアドレス値をプログラム記憶装置204に
送出するとともに、読み出し信号線308aを「H」
に、選択信号線309bをアクティブにする。そして、
プログラム記憶装置読み出し時間だけ待った後、つま
り、読み出されたデータが命令読み出し装置203に取
り込まれるであろう時間後に、これを取り込む。さらに
命令読み出し装置203は、読み出されたデータをプロ
グラムカードリーダを介して命令レジスタ307に送出
し、命令レジスタ307はこれを取り込む。この動作
は、通常の計算機でいう命令フェッチに相当する。命令
フェッチの後、次の命令の実行へ移る準備としてプログ
ラムカウンタ202の内容を1増加させる。
The program car according to the present invention configured as described above and the computer using the program car operate as follows. That is, the instruction control device 201 first outputs the contents of the program counter 202 to the A1 bus. The address value output to the A1 bus is sent to the instruction reading device 203 via a program card reader (not shown). The instruction reading device 203 sends the address value from the program counter 202 to the program storage device 204, and sets the read signal line 308a to “H”.
Then, the selection signal line 309b is activated. And
After waiting for the program storage device read time, that is, after the time when the read data will be fetched by the instruction reading device 203, it is fetched. Further, the command reading device 203 sends the read data to the command register 307 via the program card reader, and the command register 307 fetches the data. This operation corresponds to an instruction fetch in a normal computer. After the instruction fetch, the content of the program counter 202 is incremented by 1 in preparation for execution of the next instruction.

【0029】命令レジスタ307は、取り込まれたデー
タのうち命令コード部を命令制御装置201に送出する
ことにより、命令制御装置201ではその命令コードを
解釈し、その結果に従って動作を行う。
The instruction register 307 sends the instruction code part of the fetched data to the instruction control device 201, so that the instruction control device 201 interprets the instruction code and operates according to the result.

【0030】例えば、命令レジスタに取り込まれたデー
タがLOAD命令であるとする。すると命令制御装置2
01は、命令レジスタ307のオペランド部をRバスに
出力し、Lバスには何も出力せずに、演算指定を加算に
する。これによってLバスのデータはそのままOバスに
出力されるので、このデータを主記憶番地レジスタ30
4に取り込む。
For example, assume that the data taken into the instruction register is a LOAD instruction. Then, the command control device 2
01 outputs the operand portion of the instruction register 307 to the R bus, outputs nothing to the L bus, and adds the operation designation. As a result, the data of the L bus is output to the O bus as it is, so this data is transferred to the main memory address register 30.
Take in 4.

【0031】次に、主記憶番地レジスタ5の内容をA2
バスに出力し、読み出し信号線308bを「H」に選択
信号線309bをアクティブにして主記憶装置206を
読む。これによって主記憶番地レジスタ304の内容、
つまりLOAD命令のオペランド部で示された値に従っ
て主記憶装置から読み出される。この動作は、通常の計
算機でいうオペランドフェッチに相当する。そして、記
憶装置の読み出し時間だけ待った後、Dバス上に読み出
されたデータを読み出し用データレジスタ305に取り
込む。
Next, the contents of the main memory address register 5 are changed to A2.
The signal is output to the bus, the read signal line 308b is set to "H", the selection signal line 309b is activated, and the main memory 206 is read. By this, the contents of the main memory address register 304,
That is, it is read from the main memory according to the value indicated by the operand part of the LOAD instruction. This operation corresponds to an operand fetch in an ordinary computer. Then, after waiting for the reading time of the storage device, the data read on the D bus is loaded into the read data register 305.

【0032】次に、読み出し用データレジスタ305の
内容をRバスに出力し、Lバスには何も出力せずに、演
算指定を加算にする。この結果、Rバス上のデータはそ
のままOバスに出力されるので、Oバス上のデータをア
キュムレータレジスタ303に取り込む。また、演算装
置の演算結果の状態のうちの「N」と「Z」に対応する
部分を条件コードレジスタ302に取り込む。この動作
は、命令実行に相当する。
Next, the contents of the read data register 305 are output to the R bus, nothing is output to the L bus, and the operation designation is added. As a result, the data on the R bus is output to the O bus as it is, so that the data on the O bus is taken into the accumulator register 303. Further, the part corresponding to “N” and “Z” in the state of the calculation result of the calculation device is fetched in the condition code register 302. This operation corresponds to instruction execution.

【0033】このようにしてLOAD命令の実行が完了
するので、命令制御装置201は、命令フェッチ、オペ
ランドフェッチ、命令実行を繰り返す。なお、本実施例
においては、LOAD命令のみ示したが、主記憶装置2
06に書込む命令であるSTORE命令や実行順序を制
御するJUMP命令においても同様に動作する。
Since the execution of the LOAD instruction is completed in this way, the instruction control unit 201 repeats the instruction fetch, the operand fetch, and the instruction execution. Although only the LOAD instruction is shown in this embodiment, the main memory 2
The STORE instruction which is an instruction to be written in 06 and the JUMP instruction which controls the execution order operate similarly.

【0034】以上のように、第1の発明によれば、プロ
グラム情報を格納したプログラム記憶装置311と機械
語命令読み出し装置とをプログラムカード内に設けて、
1ステップずつ計算機本体に機械語命令を送出している
ので、全プログラム情報を計算機の主記憶装置にロード
する必要がなくなる。従って、ユーザは、プログラム情
報の特定の実行系列については把握することができる
が、たかだか1回の実行では全ての命令が実行されず、
プログラム全体がどのようになっているかを容易に解読
することができない。 [第2発明]図4は、第2発明に係るプログラムカード
及びこれを用いた計算機の構成を示す概念図である。
As described above, according to the first aspect of the invention, the program storage device 311 storing the program information and the machine language instruction reading device are provided in the program card,
Since the machine language instruction is sent to the computer main body step by step, it is not necessary to load all the program information into the main memory of the computer. Therefore, the user can understand the specific execution sequence of the program information, but at most one command is not executed,
I can't easily decipher what the whole program looks like. [Second Invention] FIG. 4 is a conceptual diagram showing the configuration of a program card according to the second invention and a computer using the program card.

【0035】本発明は、プログラムカード内に格納され
たプログラム情報を特定の実行系列に対しても解読を困
難とすべく、第1発明に対しさらに暗号化・復号化に関
する構成を加えている。なお、第1発明と同じものに対
しては、同じ符号を付している。
In the present invention, in order to make it difficult to decipher the program information stored in the program card even for a specific execution sequence, a configuration relating to encryption / decryption is added to the first invention. The same components as those in the first invention are designated by the same reference numerals.

【0036】即ち、同図において、プログラムカウンタ
202からの内容をプログラムリーダ2を介してプログ
ラムカード1内の復号化装置401に送出する。ここ
で、プログラムカウンタ202の内容は、後述する暗号
化装置402により暗号化されたアドレス値X(Xは任
意のビット数)とインデックス値C(Cは任意のビット
数)とから構成されており、これを「(X,C)」と表
すこととする。
That is, in the figure, the contents from the program counter 202 are sent to the decoding device 401 in the program card 1 via the program reader 2. Here, the contents of the program counter 202 are composed of an address value X (X is an arbitrary number of bits) and an index value C (C is an arbitrary number of bits) encrypted by an encryption device 402 described later. , Which will be represented as “(X, C)”.

【0037】復号化装置401では、暗号化されたアド
レス値Xを復号化し、この復号化された値xにインデッ
クス値Cを加えた値を本来のアドレス値として、機械語
命令読み出し装置203に送出する。機械語命令読み出
し装置203は、このアドレス値に従ってプログラム記
憶装置204から機械語命令を読み出し、これを暗号化
装置402に送出する。
The decrypting device 401 decrypts the encrypted address value X, and sends the decrypted value x plus the index value C as the original address value to the machine language instruction reading device 203. To do. The machine language instruction reading device 203 reads a machine language instruction from the program storage device 204 according to this address value and sends it to the encryption device 402.

【0038】暗号化装置402では、機械語命令のうち
オペランド部の値を暗号キー発生装置403により生成
された暗号キーに従って暗号化した後、この暗号化され
たアドレス値X’をプログラムリーダ2を介して計算機
本体3の命令解釈実行装置205に送出する。
In the encryption device 402, the value of the operand part of the machine language instruction is encrypted in accordance with the encryption key generated by the encryption key generation device 403, and then this encrypted address value X ′ is read by the program reader 2. It is sent to the instruction interpretation execution unit 205 of the computer main body 3 via

【0039】命令解釈実行装置205は、この機械語命
令を解釈し、その結果に基づいて命令の実行を行い、必
要であれば主記憶装置206をアクセスする。また、本
発明では、命令解釈実行装置205によって実行制御命
令(例えば、JUMP命令等)であると解釈された場合
には、オペランド部に記述されている暗号化されたアド
レス値X’をプログラムカウンタ202に新たにセット
する。これに対して、実行制御命令以外の命令(例え
ば、LOAD命令等)の場合には、プログラムカウンタ
202の内容のインデックス値を1つ増やす。
The instruction interpretation and execution unit 205 interprets the machine language instruction, executes the instruction based on the result, and accesses the main storage unit 206 if necessary. Further, according to the present invention, when the instruction interpretation and execution unit 205 interprets the instruction as an execution control instruction (for example, a JUMP instruction or the like), the encrypted address value X ′ described in the operand part is used as a program counter. It is newly set in 202. On the other hand, in the case of an instruction other than the execution control instruction (for example, a LOAD instruction), the index value of the content of the program counter 202 is incremented by one.

【0040】例えば、プログラムの実行アドレスを図5
(a)に示すプログラムに従って説明する。即ち、同図
(a)に示すプログラムは、メモリM2の内容にメモリ
M3の内容を乗じた値をメモリM1の内容とするプログ
ラムである。今、メモリM3の内容が「2」の場合、プ
ログラムカウンタ202の内容は同図(b)のようにな
る。つまり、S5やS9のJUMP命令(BLE、JM
P)を解釈実行する際に、オペランド部に記述されたア
ドレス値「S10」や「S2」が暗号化されるので、外
部からはプログラム上のどの場所に戻ったのかがわから
なくなる。これによって、S2乃至S9のループ構造が
隠ぺいすることができ、プログラムの解読画より一層困
難なものとなる。 [第3発明]図6は、第3発明に係るプログラムカード
及びこれを用いた計算機の構成を示す概念図である。
For example, the execution address of the program is shown in FIG.
Description will be given according to the program shown in FIG. That is, the program shown in FIG. 10A is a program in which the value obtained by multiplying the content of the memory M2 by the content of the memory M3 is the content of the memory M1. Now, when the content of the memory M3 is "2", the content of the program counter 202 is as shown in FIG. In other words, S5 and S9 JUMP commands (BLE, JM
When interpreting and executing P), the address values "S10" and "S2" described in the operand part are encrypted, so it is not possible from the outside to know where on the program the program has returned. As a result, the loop structure of S2 to S9 can be hidden, which is more difficult than the decoding of the program. [Third Invention] FIG. 6 is a conceptual diagram showing the configuration of a program card according to the third invention and a computer using the program card.

【0041】本発明は、機械語命令全ての実行順序を外
部から隠ぺいすべく、プログラムカウンタをプログラム
カード内に設けている。なお、第1,2発明と同じもの
に対しては、同じ符号を付している。
In the present invention, a program counter is provided in the program card in order to hide the execution order of all machine language instructions from the outside. The same parts as those in the first and second inventions are designated by the same reference numerals.

【0042】即ち、同図において、計算機本体3内の命
令制御装置201からの命令により、プログラムカード
1内のプログラムカウンタ202は、その内容(アドレ
ス値)を機械語命令読み出し装置203に送出する。機
械語命令読み出し装置203は、送出されたアドレス値
に従ってプログラム記憶装置204から機械語命令を読
み出す。
That is, in the figure, the program counter 202 in the program card 1 sends the contents (address value) to the machine language instruction reading device 203 in response to an instruction from the instruction control device 201 in the computer main body 3. The machine language instruction reading device 203 reads a machine language instruction from the program storage device 204 according to the sent address value.

【0043】ここで、読み出された機械語命令が実行制
御命令(JUMP命令等)である場合には、プログラム
カウンタ計算装置601を起動する。プログラムカウン
タ計算装置601は、計算機本体3内の条件コードレジ
スタ302の内容を読み込み、該内容が命令コードに対
応する条件を満たしたとき、アドレス値を計算してこれ
を新たなプログラムカウンタ202の内容すべくプログ
ラムカウンタ202を更新する一方、機械語命令が実行
制御命令以外の命令であった場合には、プログラムカウ
ンタ202の内容を1つ増やするとともに、機械語命令
を計算機本体3内の命令解釈実行装置205に送出す
る。命令解釈実行装置205は、この機械語命令を解釈
し、その結果に基づいて命令の実行を行い、必要であれ
ば主記憶装置206をアクセスする。
If the read machine language instruction is an execution control instruction (JUMP instruction or the like), the program counter calculation device 601 is started. The program counter calculation device 601 reads the contents of the condition code register 302 in the computer main body 3, and when the contents satisfy the condition corresponding to the instruction code, calculates the address value and uses this as the contents of the new program counter 202. While the program counter 202 is updated in order to do so, if the machine language instruction is an instruction other than the execution control instruction, the content of the program counter 202 is incremented by one and the machine language instruction is interpreted in the computer main body 3. It is sent to the execution device 205. The instruction interpretation execution unit 205 interprets this machine language instruction, executes the instruction based on the result, and accesses the main memory 206 if necessary.

【0044】以上のような本発明に係るプログラムカー
ド及びこれを用いた計算機の構成をさらに詳述する。図
7は、第3発明に係るプログラムカード及びこれを用い
た計算機の構成を示す詳細図である。
The configuration of the program card according to the present invention and the computer using the program card will be described in more detail. FIG. 7 is a detailed diagram showing the configuration of a program card according to the third invention and a computer using the program card.

【0045】同図において、図6における機械語命令読
みだし装置203及びプログラムカウンタ計算装置60
1は、演算装置701、プログラムカウンタ202、命
令レジスタ702、サブ命令制御装置703により構成
されている。
In the figure, the machine language instruction reading device 203 and the program counter calculating device 60 in FIG.
1 comprises an arithmetic unit 701, a program counter 202, an instruction register 702, and a sub instruction control unit 703.

【0046】以上のように構成された本発明に係るプロ
グラムカード及びこれを用いた計算機は、以下のように
動作する。即ち、計算機本体3内の命令制御装置201
は、プログラムカード1内のサブ命令制御装置703を
起動させる。サブ命令制御装置703は、まずプログラ
ムカウンタ202の内容をA1 バスに出力する。サブ命
令制御装置703は、読み出し信号線308aを「H」
に、選択信号線309bをアクティブにする。そして、
プログラム記憶装置読み出し時間だけ待った後、つま
り、読み出されたデータが命令レジスタ702に取り込
まれるであろう時間後に、これを取り込む。この動作
は、通常の計算機でいう命令フェッチに相当する。命令
フェッチの後、次の命令の実行へ移る準備としてプログ
ラムカウンタ202の内容を1増加させる。
The program card according to the present invention configured as described above and the computer using the program card operate as follows. That is, the instruction control device 201 in the computer main body 3
Activates the sub-instruction control device 703 in the program card 1. The sub-instruction controller 703 first outputs the contents of the program counter 202 to the A1 bus. The sub-command control device 703 sets the read signal line 308a to "H".
Then, the selection signal line 309b is activated. And
After waiting the program storage device read time, that is, after the time when the read data will be fetched into the instruction register 702, it is fetched. This operation corresponds to an instruction fetch in a normal computer. After the instruction fetch, the content of the program counter 202 is incremented by 1 in preparation for execution of the next instruction.

【0047】命令レジスタ702は、取り込まれたデー
タのうち命令コード部を主命令制御装置201に送出す
ることにより、命令制御装置201ではその命令コード
を解釈する。
The instruction register 702 sends the instruction code portion of the fetched data to the main instruction controller 201, so that the instruction controller 201 interprets the instruction code.

【0048】即ち、命令レジスタ702に取り込まれた
データが実行制御命令、例えば、JNZ命令であるとす
る。ここで、JNZ命令は、条件コードレジスタの内容
がゼロか否かの真偽を判定し、真(つまりゼロでない)
であればオペランド部に示されるアドレスに実行制御を
移す命令であるとする。サブ命令制御装置702は、計
算機本体3内にある条件コードレジスタ302の内容を
読み込み、条件判定を行う。これにより、真であればサ
ブ命令制御装置703は、命令レジスタ702の内容を
R1 バスに出力し、Lバスには何も出力せずに、演算指
定を加算にする。これによってR1 バスのデータはその
ままO1 バスに出力されるので、このデータをプログラ
ムカウンタ202に取り込む。
That is, it is assumed that the data taken into the instruction register 702 is an execution control instruction, for example, a JNZ instruction. Here, the JNZ instruction judges whether the content of the condition code register is zero or not, and it is true (that is, not zero).
If so, the instruction is to transfer the execution control to the address indicated in the operand part. The sub-instruction control device 702 reads the contents of the condition code register 302 in the computer main body 3 and determines the condition. As a result, if true, the sub-instruction control device 703 outputs the contents of the instruction register 702 to the R1 bus, outputs nothing to the L bus, and adds the operation designation. As a result, the data on the R1 bus is output to the O1 bus as it is, and this data is taken into the program counter 202.

【0049】これで、実行制御先であるアドレスがプロ
グラムカウンタ202にセットされるので、JNZ命令
が終了する。一方、命令レジスタ702に取り込まれた
データが実行制御命令以外の命令であったとする。この
場合、サブ命令制御装置は、機械語命令送出バスMを介
して計算機本体3内の命令レジスタ307に送出する。
機械語命令が送出された後は、主命令制御装置201の
制御に従って、第1発明に示したと同様に動作する。
Since the execution control destination address is set in the program counter 202, the JNZ instruction is completed. On the other hand, it is assumed that the data taken into the instruction register 702 is an instruction other than the execution control instruction. In this case, the sub-instruction control device transmits the instruction to the instruction register 307 in the computer main body 3 via the machine language instruction transmission bus M.
After the machine language command is sent, it operates in the same manner as in the first invention under the control of the main command controller 201.

【0050】以上のように、本発明によれば、通常のプ
ログラムカウンタの更新及び実行制御命令に基づくプロ
グラムカウンタの更新をプログラムカード内で行うの
で、JUMP命令等によりプログラムを実行する場合に
も実行制御を完全に隠ぺいすることができるようにな
る。
As described above, according to the present invention, the normal program counter is updated and the program counter is updated based on the execution control instruction in the program card. Therefore, the program is executed even when the program is executed by the JUMP instruction or the like. You will be able to completely hide the control.

【0051】[0051]

【発明の効果】以上のように、第1発明によれば、プロ
グラム情報を格納したプログラム記憶装置と機械語命令
読み出し装置とをプログラムカード内に設けて、1ステ
ップずつ計算機本体に機械語命令を送出しているので、
全プログラム情報を計算機の主記憶装置にロードする必
要がなくなる。従って、ユーザは、プログラム情報の特
定の実行系列については把握することができるが、たか
だか1回の実行では全ての命令が実行されず、プログラ
ム全体がどのようになっているかを容易に解読すること
ができなくなる。
As described above, according to the first aspect of the present invention, the program memory device storing the program information and the machine language instruction reading device are provided in the program card, and the machine language instruction is given to the computer body step by step. Since it is sending out,
It is not necessary to load all program information into the main memory of the computer. Therefore, the user can understand the specific execution sequence of the program information, but it is possible to easily decipher how the entire program is, because at most one execution does not execute all the instructions. Can not be.

【0052】第2発明によれば、実行制御命令であるJ
UMP命令等を解釈実行する際に、オペランド部に記述
されたアドレス値が暗号化されるので、外部からはプロ
グラム上のどの場所に戻ったのかがわからなくなる。こ
れによって、プログラムのループ構造が隠ぺいすること
ができ、プログラムの解読画より一層困難なものとな
る。
According to the second aspect of the invention, the execution control instruction J
When interpreting and executing the UMP instruction or the like, the address value described in the operand part is encrypted, so that it is not possible from the outside to know where on the program the program has returned. This makes it possible to hide the loop structure of the program, making it more difficult than the decipherment of the program.

【0053】第3発明によれば、通常のプログラムカウ
ンタの更新及び実行制御命令に基づくプログラムカウン
タの更新をプログラムカード内で行うので、実行制御命
令であるJUMP命令等によりプログラムを実行する場
合にも実行制御を完全に隠ぺいすることができるように
なる。
According to the third aspect of the invention, since the normal program counter is updated and the program counter is updated based on the execution control instruction in the program card, even when the program is executed by the JUMP instruction or the like which is the execution control instruction. Execution control can be completely hidden.

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

【図1】 本発明に係るプログラムカード及びこれを用
いた計算機の適用対象を示す図。
FIG. 1 is a diagram showing an application target of a program card according to the present invention and a computer using the program card.

【図2】 第1発明に係るプログラムカード及びこれを
用いた計算機の構成を示す概念図。
FIG. 2 is a conceptual diagram showing the configuration of a program card according to the first invention and a computer using the program card.

【図3】 第1発明に係るプログラムカード及びこれを
用いた計算機の構成を示す詳細図。
FIG. 3 is a detailed diagram showing the configuration of a program card according to the first invention and a computer using the program card.

【図4】 第2発明に係るプログラムカード及びこれを
用いた計算機の構成を示す概念図。
FIG. 4 is a conceptual diagram showing a configuration of a program card and a computer using the program card according to a second invention.

【図5】 実行制御を説明するためのプログラムを示す
図。
FIG. 5 is a diagram showing a program for explaining execution control.

【図6】 第3発明に係るプログラムカード及びこれを
用いた計算機の構成を示す概念図。
FIG. 6 is a conceptual diagram showing a configuration of a program card according to a third invention and a computer using the program card.

【図7】 第3発明に係るプログラムカード及びこれを
用いた計算機の構成を示す詳細図。
FIG. 7 is a detailed diagram showing a configuration of a program card according to a third invention and a computer using the program card.

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

1…プログラムカード 2…プログラムカードリーダ 3…計算機本体 201…命令制御装置 202…プログラムカウンタ 203…機械語命令読みだし装置 204…プログラム記憶装置 205…命令解釈実行装置 206…主記憶装置 DESCRIPTION OF SYMBOLS 1 ... Program card 2 ... Program card reader 3 ... Computer main body 201 ... Instruction control device 202 ... Program counter 203 ... Machine language instruction reading device 204 ... Program storage device 205 ... Instruction interpretation execution device 206 ... Main storage device

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 アドレスの付された単位記憶セル群にプ
ログラム情報が記憶され、計算機本体からの指令により
所定のインターフェースを介して前記プログラム情報が
読出されるプログラムカードにおいて、 前記計算機本体から送出される前記アドレスを示すアド
レス値に従って前記単位記憶セルからプログラム情報を
読出すプログラム情報読出し手段と、 この手段により読出されたプログラム情報を前記計算機
本体に送出する手段とを備えたことを特徴とするプログ
ラムカード。
1. A program card in which program information is stored in an addressed unit storage cell group, and the program information is read out through a predetermined interface in response to a command from the computer main body, is sent from the computer main body. A program information reading means for reading program information from the unit memory cell according to an address value indicating the address, and a means for sending the program information read by the means to the computer body. card.
【請求項2】 アドレスの付された単位記憶セル群にプ
ログラム情報を記憶したプログラムカードと、このプロ
グラムカードに記憶されたプログラム情報を所定のイン
ターフェースを介して読み出して、解釈・実行する計算
機本体とを備えたプログラムカード及びこれを用いた計
算機であって、 前記プログラムカードは、 前記アドレスを示すアドレス値に従って前記単位記憶セ
ルからプログラム情報を読出すプログラム情報読出し手
段と、 この手段により読出されたプログラム情報を前記計算機
本体に送出する手段とを備え、 前記計算機本体は、 前記アドレス値を保持するアドレス値保持手段と、 この手段に保持されたアドレス値を前記プログラムカー
ドのプログラム情報読出し手段に送出するアドレス値送
出手段と、 前記プログラム情報送出手段から送出されたプログラム
情報に基づいて命令制御を実行する命令制御実行手段と
を備えたことを特徴とするプログラムカード及びこれを
用いた計算機。
2. A program card in which program information is stored in a unit memory cell group to which an address is assigned, and a computer main body which reads out the program information stored in this program card through a predetermined interface and interprets / executes it. A program card including: and a computer using the program card, wherein the program card reads program information from the unit memory cell according to an address value indicating the address, and a program read by the means. Means for sending information to the computer main body, the computer main body sending address value holding means for holding the address value, and the address value held by this means to the program information reading means of the program card. Address value sending means, the program information Program card and computer using the same characterized by comprising an instruction control execution means for executing the instruction control based on the program information sent from the sending means.
【請求項3】 アドレスの付された単位記憶セル群にプ
ログラム情報が記憶され、計算機本体からの指令により
所定のインターフェースを介して前記プログラム情報が
読出されるプログラムカードにおいて、 前記計算機本体から送出された前記アドレスを示すアド
レス値を、所定の暗号キーに基づいて復号化する復号化
手段と、 この手段により復号化されたアドレス値に従って前記単
位記憶セルからプログラム情報を読出すプログラム情報
読出し手段と、 この手段により読出されたプログラム情報のうち、命令
コード部とアドレスオペランド部とを識別する手段と、 この手段により識別されたアドレスオペランド部を、所
定の暗号キーに基づいて暗号化する暗号化手段と、 前記命令コード部及び前記暗号化手段により暗号化され
たアドレスオペランド部を前記計算機本体に送出するプ
ログラム情報送出手段とを備えたことを特徴とするプロ
グラムカード。
3. A program card in which program information is stored in a unit storage cell group to which an address is assigned, and the program information is read out through a predetermined interface in response to a command from the computer main body, is transmitted from the computer main body. Decoding means for decoding the address value indicating the address based on a predetermined encryption key, and program information reading means for reading the program information from the unit memory cell according to the address value decoded by this means, Of the program information read by this means, means for identifying the instruction code part and address operand part, and encryption means for encrypting the address operand part identified by this means based on a predetermined encryption key. , The address coded by the instruction code section and the encryption means Program card, characterized in that a program information transmitting means for transmitting the operand portion to said computer main body.
【請求項4】 アドレスの付された単位記憶セル群にプ
ログラム情報を記憶したプログラムカードと、このプロ
グラムカードに記憶されたプログラム情報を所定のイン
ターフェースを介して読み出して、解釈・実行する計算
機本体とを備えたプログラムカード及びこれを用いた計
算機であって、 前記プログラムカードは、 前記アドレスを示すアドレス値を所定の暗号キーに基づ
いて復号化する復号化手段と、 この手段により復号化されたアドレス値に従って前記単
位記憶セルからプログラム情報を読出すプログラム情報
読出手段と、 この手段により読出されたプログラム情のうち、命令コ
ード部とアドレスオペランド部とを識別する手段と、 この手段により識別されたアドレスオペランド部を、所
定の暗号キーに基づいて暗号化する暗号化手段と、 前記命令コード部及び前記暗号化手段により暗号化され
たアドレスオペランド部を前記計算機本体に送出するプ
ログラム情報送出手段とを備え、 前記計算機本体は、 前記アドレス値を保持するアドレス値保持手段と、 この手段に保持されたアドレス値を前記プログラムカー
ドのプログラム情報読出し手段に送出するアドレス値送
出手段と、 前記プログラム情報送出手段により送出された命令コー
ド部及び暗号化されたアドレスオペランド部に基づいて
命令制御を実行する命令制御実行手段とを備えたことを
特徴とするプログラムカード及びこれを用いた計算機。
4. A program card in which program information is stored in a unit memory cell group to which an address is assigned, and a computer main body for reading, interpreting and executing the program information stored in the program card via a predetermined interface. A program card provided with and a computer using the program card, wherein the program card includes a decryption unit that decrypts an address value indicating the address based on a predetermined encryption key, and an address decrypted by this unit. Program information reading means for reading program information from the unit memory cell according to a value, means for identifying an instruction code portion and an address operand portion in the program information read by this means, and an address identified by this means. Encryption that encrypts the operand part based on a predetermined encryption key And a program information sending unit for sending the instruction code unit and the address operand unit encrypted by the encrypting unit to the computer body, the computer body being an address value holding unit for holding the address value. And an address value sending means for sending the address value held in this means to the program information reading means of the program card, and an instruction code part and an encrypted address operand part sent by the program information sending means. And a computer using the program card.
【請求項5】 アドレスの付された単位記憶セル群にプ
ログラム情報が記憶され、計算機本体からの指令により
所定のインターフェースを介して前記プログラム情報が
読出されるプログラムカードにおいて、 前記アドレスを示すアドレス値を保持するアドレス値保
持手段と、 この手段に保持されたアドレス値に従って前記単位記憶
セルからプログラム情報を読出すプログラム情報読出手
段と、 この手段により読出されたプログラム情報が所定の条件
を満たす場合に、前記アドレス値保持手段に保持されて
いるアドレス値を変更するアドレス値変更手段と、 前記プログラム情報読出手段により読出されたプログラ
ム情報を前記計算機本体に送出するプログラム情報送出
手段とを備えたことを特徴とするプログラムカード。
5. A program card in which program information is stored in a unit memory cell group to which an address is assigned, and the program information is read out through a predetermined interface in response to a command from a computer main body, and an address value indicating the address. And an address value holding means for holding the program value, a program information reading means for reading the program information from the unit memory cell in accordance with the address value held by the means, and a case where the program information read by this means satisfies a predetermined condition. An address value changing means for changing the address value held in the address value holding means, and a program information sending means for sending the program information read by the program information reading means to the computer body. A characteristic program card.
【請求項6】 アドレスの付された単位記憶セル群にプ
ログラム情報を記憶したプログラムカードと、このプロ
グラムカードに記憶されたプログラム情報を所定のイン
ターフェースを介して読み出して、解釈・実行する計算
機本体とを備えたプログラムカード及びこれを用いた計
算機であって、 前記プログラムカードは、 前記アドレスを示すアドレス値を保持するアドレス値保
持手段と、 この手段に保持されたアドレス値に従って前記単位記憶
セルからプログラム情報を読出すプログラム情報読出手
段と、 この手段により読出されたプログラム情報が所定の条件
を満たす場合に、前記アドレス値保持手段に保持されて
いるアドレス値を変更するアドレス値変更手段と、 前記プログラム情報読出手段により読出されたプログラ
ム情報を前記計算機本体に送出するプログラム情報送出
手段とを備え、 前記計算機本体は、 前記プログラム情報送出手段により送出されたプログラ
ム情報に基づいて命令制御を実行する命令制御実行手段
とを備えたことを特徴とするプログラムカード及びこれ
を用いた計算機。
6. A program card in which program information is stored in a unit memory cell group to which an address is assigned, and a computer main body which reads out, interprets and executes the program information stored in the program card through a predetermined interface. A program card including: a computer using the program card, wherein the program card stores an address value holding unit for holding an address value indicating the address, and a program from the unit memory cell according to the address value held by the unit. Program information reading means for reading information, address value changing means for changing the address value held in the address value holding means when the program information read by this means satisfies a predetermined condition, and the program The program information read by the information reading means is stored in the total Program information sending means for sending to the computer body, the computer body is provided with command control executing means for executing command control based on the program information sent by the program information sending means. Program card and calculator using it.
JP08706394A 1994-04-26 1994-04-26 Program card and computer using the same Expired - Fee Related JP3642533B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08706394A JP3642533B2 (en) 1994-04-26 1994-04-26 Program card and computer using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08706394A JP3642533B2 (en) 1994-04-26 1994-04-26 Program card and computer using the same

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2004279924A Division JP2005122723A (en) 2004-09-27 2004-09-27 Program card and computer using the same

Publications (2)

Publication Number Publication Date
JPH07295802A true JPH07295802A (en) 1995-11-10
JP3642533B2 JP3642533B2 (en) 2005-04-27

Family

ID=13904488

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08706394A Expired - Fee Related JP3642533B2 (en) 1994-04-26 1994-04-26 Program card and computer using the same

Country Status (1)

Country Link
JP (1) JP3642533B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001117660A (en) * 1999-03-30 2001-04-27 Sony Corp Device, method and system for information processing and program storage medium
JP2007515709A (en) * 2003-11-26 2007-06-14 インテル コーポレイション Access to private data about the state of the data processing machine from publicly accessible storage
JP2008033457A (en) * 2006-07-26 2008-02-14 Internatl Business Mach Corp <Ibm> Method and central processing unit for processing encrypted software
US8286001B2 (en) 2005-07-27 2012-10-09 International Business Machines Corporation Method and central processing unit for processing encrypted software

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001117660A (en) * 1999-03-30 2001-04-27 Sony Corp Device, method and system for information processing and program storage medium
JP4556277B2 (en) * 1999-03-30 2010-10-06 ソニー株式会社 Information processing apparatus and method, information processing system, and program storage medium
JP2007515709A (en) * 2003-11-26 2007-06-14 インテル コーポレイション Access to private data about the state of the data processing machine from publicly accessible storage
US8286001B2 (en) 2005-07-27 2012-10-09 International Business Machines Corporation Method and central processing unit for processing encrypted software
JP2008033457A (en) * 2006-07-26 2008-02-14 Internatl Business Mach Corp <Ibm> Method and central processing unit for processing encrypted software

Also Published As

Publication number Publication date
JP3642533B2 (en) 2005-04-27

Similar Documents

Publication Publication Date Title
US9424055B2 (en) Multi-function instruction that determines whether functions are installed on a system
US10691482B2 (en) Systems, methods, and apparatus for securing virtual machine control structures
US7673152B2 (en) Microprocessor with program and data protection function under multi-task environment
US8191155B2 (en) Microprocessor
US4679140A (en) Data processor with control of the significant bit lengths of general purpose registers
KR100760371B1 (en) Simple algorithmic cryptography engine
US9298894B2 (en) Cache structure for a computer system providing support for secure objects
US7770024B2 (en) Security message authentication instruction
US20130173873A1 (en) Method and Apparatus for Performing Mapping Within a Data Processing System Having Virtual Machines
CN112639778A (en) Pointer authentication and dynamic switching between pointer authentication schemes
TWI808869B (en) Hardware processor and processor
JP2008257734A (en) Security control in data processing system based on memory domain
US7523279B2 (en) Information processing apparatus for accessing memory spaces including a user memory space and a secure memory space
US7409251B2 (en) Method and system for writing NV memories in a controller architecture, corresponding computer program product and computer-readable storage medium
JP4591163B2 (en) Bus access control device
US11783055B2 (en) Secure application execution in a data processing system
JPH07295802A (en) Program card and computer using the card
JPH03171231A (en) Micro computer system
CN115859315A (en) System, apparatus and method for direct peripheral access to secure storage
JP2007109053A (en) Bus access controller
JP2005122723A (en) Program card and computer using the same
US20090106540A1 (en) Apparatus and method for remanipulating instructions
JPH09160831A (en) Information processor
JPS626351A (en) Storage protecting deice
US6243802B1 (en) Apparatus and method for encrypted instructions

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040727

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040927

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041019

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041220

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050121

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050124

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

Free format text: PAYMENT UNTIL: 20080204

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090204

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100204

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees