JP2001353336A - Microcomputer tip for game machine control which is used for development - Google Patents

Microcomputer tip for game machine control which is used for development

Info

Publication number
JP2001353336A
JP2001353336A JP2001144103A JP2001144103A JP2001353336A JP 2001353336 A JP2001353336 A JP 2001353336A JP 2001144103 A JP2001144103 A JP 2001144103A JP 2001144103 A JP2001144103 A JP 2001144103A JP 2001353336 A JP2001353336 A JP 2001353336A
Authority
JP
Japan
Prior art keywords
rom
program
code
built
rewritable
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
JP2001144103A
Other languages
Japanese (ja)
Inventor
Takashi Kawase
隆 川瀬
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.)
LE TEKKU KK
LETech Co Ltd
Original Assignee
LE TEKKU KK
LETech 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 LE TEKKU KK, LETech Co Ltd filed Critical LE TEKKU KK
Priority to JP2001144103A priority Critical patent/JP2001353336A/en
Publication of JP2001353336A publication Critical patent/JP2001353336A/en
Pending legal-status Critical Current

Links

Landscapes

  • Pinball Game Machines (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a microcomputer tip for a development, of which the constitution is the same as a built-in ROM being packaged, and which can be repeatedly rewritten, for a tip wherein a program after passing a model examination can be prevented from being modified. SOLUTION: This microcomputer tip for controlling a game machine for the development is equipped with the rewritable built-in ROM, a built-in RAM, an identification means, and a central processing device. In this case, the built-in ROM stores identification codes for respective models of the game machine, and check codes which are calculated based on coded identification codes. The built-in RAM prohibits rewriting of data from the outside. The identification means compares the calculation of a check code and a check code stored in the rewritable built-in ROM by scanning the rewritable built-in ROM regarding whether a program in the rewritable built-in ROM, which is written, is authorized one or not when a right/wrong check agrees with a recognition code, based on the recognition code transmitted from the outside. The central processing device performs a game program based on an application program written in the rewritable built-in ROM and user data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、遊技機械のパチンコ遊
技機、回胴式遊技機、アレンジボール、ジャン球遊技機
等に搭載されその遊技機制御に使用されるアプリケーシ
ョンプログラム(機器制御プログラムやデータ)を起動
するための半導体チップに関するもので、特に遊技機開
発メーカーがアプリケーションプログラムに開発に際し
て、法律にプログラムが適合していない場合には再書き
込みできるように構成された半導体チップが認定後に書
き換え不可能な内蔵ROMに書き込まれた状態で法定基
準外で作動するようなプログラムに改変されるのを防ぐ
ことが可能なチップを開発するためのものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an application program (equipment control program, Data) related to the semiconductor chip to start, especially when the game machine development maker develops an application program, if the program does not conform to the law, the semiconductor chip is configured to be re-writable and rewritten after certification The purpose of the present invention is to develop a chip that can be prevented from being modified into a program that operates outside legal standards while being written in an impossible internal ROM.

【0002】パチンコ機械等の遊技機は、風俗営業法の
規則に基づく国家公安委員会の規則に従い遊技機の認定
及び型式の検定を受け合格しなければ販売することがで
きない製品であり、マイクロプロセッサーを使用したも
のも第三者検査機関が行う型式試験に合格しなければな
らず、この型式合格を受けたものについて第三者監督機
関に対して検定申請をし、検定合格した遊技機を市場に
流通させることができ、またパチンコホール等で営業に
供することができる仕組みとなっている。
A game machine such as a pachinko machine is a product that cannot be sold unless it has passed the certification and type approval of the game machine in accordance with the rules of the National Public Safety Commission based on the rules of the Customs Business Act. Must also pass the type test conducted by a third-party inspection organization, apply for certification to a third-party regulatory agency for those that have passed this type, and sell the gaming machines that have passed the certification to the market. It can be distributed to pachinko parlors and used for business.

【0003】そのため型式合格を受けた後に第三者が遊
技機の基板を取り替えたり、チップを取り替えたり、マ
イクロプロセッサーを改造したり、マイクロプロセッサ
ーのROMを書き換えたりする等の改造を行い、不正遊
技機として使用されるケースが考えられ、型式合格後の
改造を防止することが今日の課題となっている。
[0003] For this reason, after receiving a model pass, a third party modifies the board of the gaming machine, replaces the chip, modifies the microprocessor, rewrites the ROM of the microprocessor, etc. It is conceivable to use it as a machine, and it is an issue today to prevent remodeling after passing the model.

【0004】[0004]

【従来技術】従来のこの種の遊技機は、マイクロプロセ
ッサーと一体となった回路を組み、電動役物を連続して
作動させる装置や、電動役物等を電気的にコントロール
するものや、回胴式遊技機において回転する回胴の回転
制御するものなどが知られており、これらの回路では第
三者検査機関の型式試験に合格したものは所定の確率
で、利用者に勝利球を放出するように構成されている。
また遊技機の場合アプリケーションプログラム及びデー
タは所定のアドレス領域内に格納することが義務付けら
れている。
2. Description of the Related Art A conventional game machine of this type has a circuit integrated with a microprocessor, and a device for continuously operating an electric accessory, a device for electrically controlling an electric accessory, etc. It is known to control the rotation of a rotating torso in a barrel-type game machine, and those circuits that pass the type test of a third-party inspection organization release a winning ball to the user with a predetermined probability. It is configured to be.
In the case of a gaming machine, application programs and data are required to be stored in a predetermined address area.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、かかる
従来のマイクロプロセッサーの場合は、型式試験に合格
した後に第三者が回路内の制御プログラムやデータを改
変しても型式試験合格製品と外見だけでは区別がつきに
くく型式試験合格製品として取り扱われる可能性が高
い。そのためかかる第三者による遊技機への不正行為を
充分に阻止出来ないといった不都合がある。かかる不正
を野放しにすれば、遊技者が不利益を被ると共に、型式
合格製品を検査している公的第三者検査機関の信用も毀
損されることになり、ひいては型式試験を行う意義が薄
れてくるおそれがある。そこで本発明はかかる従来技術
の欠点に鑑みなされたもので、遊技機に内蔵されるマイ
クロプロセッサーの不正改造を不可能にするための構成
を設けると共に、遊技機内のマイクロプロセッサー内の
内蔵ROMや制御回路にプログラムやデータの改竄等を
防止するための機能を持たせることを目的とする。さら
に本発明は量産用チップと同様の構成でありながらプロ
グラムを書き込む内蔵ROMが開発の段階において何度
となく再利用できるようにする。
However, in the case of such a conventional microprocessor, even if a third party modifies a control program or data in a circuit after passing the type test, it is not possible to obtain a product that has passed the type test and only looks. It is hard to distinguish and it is likely to be treated as a product that has passed the type test. For this reason, there is an inconvenience that it is not possible to sufficiently prevent such a third party from misbehaving the gaming machine. Leaving such fraudulent unfairness would result in disadvantages for the player and damage the credibility of the public third-party inspection organization that inspects the type-accepted products, which in turn reduces the significance of conducting type tests. May come. Therefore, the present invention has been made in view of the drawbacks of the related art, and provides a configuration for preventing unauthorized modification of a microprocessor built in a gaming machine, and also provides a built-in ROM and a control in a microprocessor in the gaming machine. It is an object of the present invention to provide a circuit with a function for preventing alteration of a program or data. Further, the present invention enables a built-in ROM for writing a program, which has the same configuration as a chip for mass production, to be reused many times in the development stage.

【0006】従来のプログラムのチェックは、型式試験
申請された時点で第三者検査機関が様々な角度からその
内容の検討が慎重に行われるが、試験合格後は検査機関
による管理を離れ、型式試験合格を受けたプログラムを
搭載された遊技機は遊技機メーカーが第三者監督機関に
対して検定申請し、この検定に合格した製品が遊技場へ
出荷されている。従って、遊技機制御プログラムチェッ
クは定期的に行われていないために、いつどの段階にて
誰がチップの取り替え、プログラム改変等の不正が行っ
ているかわからなかった。
[0006] In the conventional program check, a third-party inspection organization carefully examines the contents from various angles at the time of applying for a type test, but after passing the test, leaves the control by the inspection organization and Gaming machines equipped with a program that has passed the test have been applied for certification by a gaming machine manufacturer to a third-party supervisory authority, and products that have passed this certification are shipped to the amusement arcade. Therefore, since the gaming machine control program check is not regularly performed, it was not possible to know who and when the chip was replaced, the program was modified, or the like at any time.

【0007】[0007]

【課題を解決するための手段】すなわち、遊技機開発メ
ーカーにしてみれば正規のプログラムが書き込まれたチ
ップを組み込んで出荷しても、途中第三者が介在してプ
ログラムを書き換えたり、ROMを改変されたりするた
め責任を負いかねる等の問題もある。これは一重に、R
OMの改変が簡単に行われるからであり、第一に合格プ
ログラムのROMの改変を防止することが不正を防止す
る上で重要と考えた。
That is, according to a game machine development manufacturer, even if a chip in which a legitimate program is written is incorporated and shipped, a third party intervenes to rewrite the program or to read the ROM. There are also problems such as being unable to take responsibility for being altered. This is a single, R
This is because the modification of the OM is easily performed, and firstly, it was considered important to prevent the modification of the ROM of the passing program in preventing the illegality.

【0008】第二に合格後のチップへのプログラムの書
き込みに際してその作業を各開発メーカー側が別々に行
うよりまとめて一つの公正な機関において行わせると共
にその後のチップへの書き込みを禁止するような処理を
施せばコスト面において安くなると共にチップの信頼性
も高くなる。尚、公正な機関で書き込ませるのではな
く、開発メーカーサイドで書き込むように構成しても良
い。第三にROMを組み込んだ遊技機の不正に関しては
これを取り締まる警察等の第三者監督機関によりプログ
ラムの内容が試験合格を受けたものか否か簡単に照合で
きるようにすれば、不正をする者も何時チェックされる
かという不安が生じ、容易に不正をする危険を犯さない
ことになる。但し、チップに装着したROMに組み込ま
れたプログラムが型式申請合格品か否かを照合する装置
の仕組みが簡単なものであったり、内部ソフトのセキュ
リティーが貧弱なものであると、照合装置では発見でき
ないようにプログラムの改変又は回路の改変を行う恐れ
がある。そこで、マイクロコンピュータチップ内に書き
込まれたROM上のプログラムにさらに機器毎の識別コ
ードを付与し、さらに特定の暗号化アルゴリズムにて暗
号化した識別コードを付与し、またアドレス上のプログ
ラム、識別コード及び暗号化識別コードを順次走査しな
がら所定のアルゴリズムにて算出したチェックコードを
書き込んでおき、照合装置等でプログラム内容を検査す
る時にチップ内蔵ROMに書き込まれたチェックコード
が合致しているか否かをチップ内に設けた照合回路にて
チェックできるようにする。
Secondly, when a program is written into a chip after passing, the work is performed by a single fair organization collectively, rather than being performed separately by each developer, and the subsequent writing to the chip is prohibited. In this case, the cost is reduced and the reliability of the chip is increased. It should be noted that the writing may be performed by the development maker side instead of being written by a fair organization. Thirdly, if a game machine with a built-in ROM can be verified by a police or other third party supervisory organization that can easily check whether or not the content of the program has passed the test, it will be fraudulent. Anxiety arises when a person is checked, and he / she does not run the risk of cheating easily. However, the verification device found that the mechanism of the device that verifies whether or not the program installed in the ROM mounted on the chip passed the model application was a simple one, or that the security of the internal software was poor. There is a possibility that the program or the circuit may be modified so that it cannot be performed. Therefore, an identification code for each device is further added to the program on the ROM written in the microcomputer chip, and an identification code encrypted by a specific encryption algorithm is added. Write the check code calculated by a predetermined algorithm while scanning the encrypted identification code sequentially, and check whether the check code written in the ROM in the chip matches when checking the program contents with a collation device or the like. Can be checked by a matching circuit provided in the chip.

【0009】すなわち請求項1の発明は所定の領域にア
プリケーションプログラム、遊技機の機種毎の識別コー
ド及び暗号化識別コード並びにアプリケーションプログ
ラム、識別コード、暗号化識別コードに基づき算出され
たチェックコードが記憶された書き換え可能な内蔵RO
Mと、ユーザープログラム用のデータが書き込まれた外
部からのデータ書き換えを禁止させた内蔵RAMと、外
部から送信された認識コードに基づきそれが正しいか否
をチェックすると共に認識コードが一致した場合に書き
換え可能な内蔵ROMに書かれたプログラムが認定を受
けたものか否かについて書き換え可能な内蔵ROMを走
査してチェックコードの算出と書き換え可能な内蔵RO
Mに記憶されたチェックコードとの比較を行なう識別手
段と、書き換え可能な内蔵ROMに書かれたアプリケー
ションプログラム及びユーザーデータに基づき遊技プロ
グラムを実行するための中央処理装置とを有する開発用
の遊技機制御用マイクロコンピュータチップである。
That is, in the first aspect of the present invention, an application program, an identification code and an encrypted identification code for each type of gaming machine, and a check code calculated based on the application program, the identification code, and the encrypted identification code are stored in a predetermined area. Rewritable built-in RO
M, built-in RAM in which data for the user program is written to prevent external data from being rewritten, and whether or not the code is correct based on an externally transmitted recognition code. Scans the rewritable internal ROM to determine whether the program written in the rewritable internal ROM is authorized or not, calculates a check code, and rewrites the rewritable internal RO.
A gaming machine system for development having identification means for comparing with a check code stored in M, and a central processing unit for executing a gaming program based on an application program and user data written in a rewritable internal ROM. This is your microcomputer chip.

【0010】また請求項2の発明は、前記チップにおい
て開発用のアプリケーションプログラムが、遊技機に実
装した時に誤ってROM以外のアドレスにアクセスする
のを防ぐための不正アドレス実行禁止制御回路を備えこ
とを特徴とするものである。
[0010] The invention according to claim 2 further comprises an illegal address execution prohibition control circuit for preventing an application program for development in the chip from accidentally accessing an address other than ROM when mounted on a gaming machine. It is characterized by the following.

【0011】[0011]

【作用】本発明にかかるマイクロコンピュータチップで
は、実際に量産される内蔵ロムは書き換え不可能なもの
で構成されるが、プログラム開発段階では不正な改竄行
為が行われることはあり得ないこと、開発に際して内蔵
ROMは書き換え可能なもので構成したので、開発者は
実際の量産用のROMと同様の環境においてプログラム
の開発を行うことができ、かつ該開発用のチップで作成
された内蔵ROMのプログラムなどを量産ROMに書き
込んだとしても環境的に変わることがないために検定試
験における実装結果と同様の機能を発揮させることがで
きる。
In the microcomputer chip according to the present invention, the built-in ROM that is actually mass-produced is constituted by a non-rewritable ROM. However, it is impossible that unauthorized tampering is performed at the program development stage. In this case, the built-in ROM is configured as a rewritable one, so that the developer can develop a program in the same environment as the actual ROM for mass production, and the program of the built-in ROM created by the chip for the development is used. Even if the data is written in the mass production ROM, the same function as the mounting result in the verification test can be exerted because it does not change environmentally.

【0012】尚、請求項2本発明にかかるチップでは、
プログラムが指定領域から外れてプログラムを動作する
ことを禁止しており、また各制御回路はプログラムがチ
ップ外の記憶手段のデータ等を読み込みにいくことを禁
止しているので、プログラム実行中に外部記憶手段への
アクセスが禁止される。その結果開発メーカーは、開発
段階にてアプリケーションプログラムのアクセス異常を
発見することが可能となる。
In the chip according to the present invention,
The program is prohibited from operating outside the specified area, and each control circuit prohibits the program from reading data in the storage means outside the chip. Access to the storage means is prohibited. As a result, the development maker can discover an abnormal access of the application program at the development stage.

【0013】[0013]

【実施例】以下に本発明を図示された実施例に従って詳
細に説明する。本発明にかかる遊技機制御用マイクロコ
ンピュータチップ及びそのチップ内の不正プログラム検
出のための照合装置が考える運用方式は図1に示すよう
にICメーカーにより生産された書き換え可能なEPR
OM内蔵のチップ(開発用チップ)が遊技機用マイクロ
コンピュータチップメーカーより遊技機開発メーカーに
卸され、開発メーカーは当該書き換え可能なEPROM
内蔵チップを用いて法律に適合した範囲内で遊技機制御
用をプログラムを作成し、これを遊技機の第三者検査機
関に提出して型式試験申請を行わせる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the illustrated embodiments. The operation method considered by the gaming machine control microcomputer chip according to the present invention and the collation device for detecting a malicious program in the chip is a rewritable EPR produced by an IC maker as shown in FIG.
Chips with built-in OM (development chips) are wholesaled by gaming machine microcomputer manufacturers to gaming machine development manufacturers, and the development manufacturers
Using the built-in chip, create a program for gaming machine control within the range that conforms to the law, submit it to the third-party inspection organization of the gaming machine, and submit a type test application.

【0014】検査機関は書き換え可能なチップ内蔵EP
ROMにかかれたプログラムが適正なものか否かを試験
し、試験結果(合格か否か)を開発メーカーに通知す
る。試験に合格したROMデータは検査機関からマイク
ロコンピュータチップメーカーに対して適合ROMデー
タとして流され、そこで各ROMに対して個々の機種に
対応した識別コード(許可日等のデータや暗号化キーコ
ードの選択番号を含む)と所定の暗号化アルゴリズム
(例えばフィールエイト)により暗号化処理が施された
識別コードとROMに記載されるプログラム、識別コー
ド及び暗号化識別コードに基づき算出されるチェックコ
ードが付与される。第三者検査機関は、合格した機種と
それに付与された識別番号の対応表を作成する。そして
適合ROMデータと識別コードは例えば公的なROM書
き込み機関(開発メーカーの書き込み機関でも良い)に
流され、ROM書き込み機関はICメーカー(又はチッ
プメーカー)から量産用の再書き込み禁止ROM(例え
ばヒューズROM)内蔵チップ(量産用チップ)の提供
を受け、所定の書式にて型式試験に合格したROMデー
タならびに識別コード及び暗号化識別コードを書き込む
と共にROMに再書き込み禁止の処理を施す。
The inspection organization uses a rewritable chip EP.
It tests whether the program written in the ROM is appropriate or not, and notifies the development maker of the test result (whether it passed or not). The ROM data that passed the test are sent from the inspection organization to the microcomputer chip manufacturer as conforming ROM data, where identification codes (data such as permission date and encryption key code selection) corresponding to each model are sent to each ROM. Number, an identification code encrypted by a predetermined encryption algorithm (for example, field eight), a program written in a ROM, an identification code, and a check code calculated based on the encryption identification code. You. The third-party inspection organization creates a correspondence table between the passed models and the identification numbers assigned to the models. The conforming ROM data and the identification code are sent to, for example, a public ROM writing organization (which may be a writing organization of a development maker). The ROM writing organization is a mass-production rewrite-protected ROM (for example, a fuse ROM) from an IC maker (or chip maker). (2) Upon receiving the provision of the built-in chip (mass production chip), the ROM data, the identification code, and the encrypted identification code that have passed the type test are written in a predetermined format, and the ROM is subjected to the process of prohibiting rewriting.

【0015】次にROM書き込み機関から型式試験合格
ROMデータ、識別コード及び暗号化識別コード等が書
き込まれた再書き込み禁止のROM内蔵のチップ(量産
用チップ)が納品され、納品されたチップに基づき開発
メーカーは遊技機を生産し、これを第三者監督機関に検
定申請し、検定試験に合格した遊技機がパチンコホール
に納品され営業に用いられる。パチンコホール側は、か
かる検定合格した製品を用いて営業を行う為に監督機関
に認定申請を行い営業が許可される。一方営業状況を検
査する立場にある第三者監督機関には、チップ内のRO
Mの内容を照合することが可能な照合装置が提供され、
第三者監督機関の係官がパチンコホールに出向き遊技機
に組み込まれたチップについて照合装置を用いて簡単に
チップ内蔵ROMの内容の検査(照合)を行うことがで
きる。
Next, a chip (mass-production chip) with a built-in ROM that is not rewritten and on which ROM data, an identification code, an encryption identification code, and the like are written is delivered from a ROM writing organization, and based on the delivered chip. The development maker produces a gaming machine, applies it to a third-party regulatory agency for certification, and the gaming machine that passes the certification test is delivered to a pachinko hall and used for sales. The pachinko hall side will apply for accreditation to the supervisory authority to conduct business using the products that have passed the certification, and the business will be licensed. On the other hand, a third party supervisory body that is in a position to inspect the business situation includes RO in the chip.
A collation device capable of collating the contents of M is provided,
An official of a third party supervisor can go to the pachinko hall and easily inspect (collate) the contents of the chip-incorporated ROM with respect to the chips incorporated in the gaming machine by using the collation device.

【0016】照合するチップのデータ及び照合システム
の概要は図2に示す通りであり、マイクロコンピュータ
チップ内蔵の再書き込み禁止ROMには、遊技プログラ
ム、マイクロコンピュータチップ開発メーカーが付した
識別コード、所定の暗号キーコードに基づき例えばフィ
ールエイト、循環冗長検査等の暗号化手順に従い暗号化
された暗号化識別コードと、遊技プログラム、識別コー
ド、暗号化識別コードに基づき所定のアルゴリズムにて
算出されたチェックコード並びにチェックコードが一致
しなかった時に照合装置に対してエラー表示させるため
のエラーコード(例えば識別番号又は暗号化識別番号と
はフォーマットが異なるデータ)が書き込まれており、
照合装置にはチップ内蔵ROMから読み込んだ識別コー
ド及び暗号化識別コードデータの中の暗号化識別コード
を復調し、前述識別コードと比較することによりROM
データの内容の照合するように構成されている。そして
識別コードが照合の結果一致している時にはOK表示
を、不一致のときはNG表示をする。また内蔵ROMか
ら読み込んだ識別番号は、照合装置のLCDに表示さ
れ、係官が機種の識別番号を目視することができる。さ
らに照合装置は送出されたマイクロコンピュータチップ
内蔵のRAMの内容をRAMデータとして印字する。
The data of the chip to be verified and the outline of the verification system are as shown in FIG. 2. The rewrite-protected ROM built in the microcomputer chip contains a game program, an identification code given by the microcomputer chip manufacturer, a predetermined code, and the like. Based on the encryption key code, for example, a field code, an encrypted identification code encrypted according to an encryption procedure such as a cyclic redundancy check, and a check code calculated by a predetermined algorithm based on the game program, the identification code, and the encrypted identification code. In addition, an error code (for example, data having a format different from that of the identification number or the encryption identification number) for displaying an error in the verification device when the check code does not match is written,
The verification device demodulates the identification code read from the ROM in the chip and the encrypted identification code in the encrypted identification code data, and compares the demodulated identification code with the identification code described above.
It is configured to match the contents of the data. When the identification codes match as a result of the collation, OK is displayed, and when they do not match, NG is displayed. Further, the identification number read from the built-in ROM is displayed on the LCD of the collation device, so that the officer can visually check the identification number of the model. Further, the collating apparatus prints out the contents of the RAM built in the microcomputer chip as RAM data.

【0017】具体的には、遊技機の制御プログラムは遊
技機1の裏面に遊技機制御基板2が装着されており、該
遊技機基板2のチップ端子に照合装置3の接続端子4を
直接接続できるように構成されている(図3)。本実施
例では遊技機基板2に設置される開発用のマイクロコン
ピュータチップは図4のブロック図で示すような構成か
らなる。
More specifically, the control program for the gaming machine has a gaming machine control board 2 mounted on the back of the gaming machine 1, and the connection terminal 4 of the matching device 3 is directly connected to the chip terminal of the gaming machine board 2. (See FIG. 3). In this embodiment, the microcomputer chip for development installed on the game machine board 2 has a configuration as shown in the block diagram of FIG.

【0018】図4において5は、遊技機プログラムの実
行・制御を行う中央処理装置(CPU)であり、CPU
5に動作に必要なクロックを発生するクロックジェネレ
ータ6と接続されている。CPU5は各種バスを介して
外部の各種データを入力または外部へ出力するためのパ
ラレル入出力ポートと、遊技用のアプリケーションプロ
グラム、照合用の識別コード、それを所定の暗号化キー
コードに基づき暗号化した照合用の識別コード、エラー
コードならびにアプリケーションプログラム、識別コー
ド及びエラーコードから所定のアルゴリズム(フィール
エイト、循環冗長検査)により算出されたチェックコー
ドが書かれる書き換え可能な内蔵ROM7’と、遊技制
御用のデータを一時保存するための内蔵RAM8と、外
部装置から入力された認識コードに基づきこれが合致し
ていたときに後述する手順にてROM7’データのチェ
ックコードの算出及び予め内蔵ROM7’に書かれたチ
ェックコードとの比較を行い、その後にROM7’デー
タの内容(識別コード及び暗号化識別コード又はエラー
コード)及びRAM8データの内容を外部装置に出力す
る識別手段としての識別回路9と、時間を設定し各種タ
イミングを制御するカウンタ・タイマ回路10と、CPU
の異常動作を監視するウオッチドグタイマ(WDT)12
と、内蔵ROM7以外からのプログラムの実行を禁止す
る不正アドレス実行禁止制御回路(IATG)14と、リ
セット回路16と接続されており、18は内蔵ROM7’の
メモリー制御回路であり、20はROM7’のROM書き
込みの為のメモリープログラム制御回路である。尚、チ
ェックコードの比較の結果正しい時に識別番号を正しく
ない時にエラーコードを送信するように構成されてい
る。また量産用のマイクロコンピュータチップは、図1
2に示すように開発用のマイクロコンピュータチップの
構成において書き換え可能な内蔵ロム7’が書き込み禁
止内蔵ROM7に置き換わったもので構成される。従っ
て開発用チップと量産用チップとの構造上の差異はな
い。
In FIG. 4, reference numeral 5 denotes a central processing unit (CPU) for executing and controlling a game machine program.
5 is connected to a clock generator 6 for generating a clock required for operation. The CPU 5 has a parallel input / output port for inputting or outputting various external data via various buses, a game application program, an identification code for verification, and encrypts the identification code based on a predetermined encryption key code. A rewritable built-in ROM 7 'in which a check code calculated by a predetermined algorithm (feel-eight, cyclic redundancy check) from the identification code, error code, application program, identification code and error code for the verification is written; And a built-in RAM 8 for temporarily storing data, and a check code of ROM 7 'data calculated and written in the built-in ROM 7' in advance by a procedure to be described later when the codes match based on a recognition code input from an external device. And compare it with the check code An identification circuit 9 as identification means for outputting the contents of data (identification code and encrypted identification code or error code) and the contents of RAM 8 data to an external device; a counter / timer circuit 10 for setting time and controlling various timings; , CPU
Watchdog timer (WDT) 12 for monitoring abnormal operation of
And an illegal address execution prohibition control circuit (IATG) 14 for prohibiting execution of a program from a source other than the internal ROM 7, and a reset circuit 16; 18 is a memory control circuit of the internal ROM 7 '; Is a memory program control circuit for writing to the ROM. An error code is transmitted when the identification number is incorrect when the result of the check code comparison is correct. A microcomputer chip for mass production is shown in FIG.
As shown in FIG. 2, the rewritable built-in ROM 7 ′ is replaced by a write-protected built-in ROM 7 in the configuration of the microcomputer chip for development. Therefore, there is no structural difference between the development chip and the mass production chip.

【0019】次に図5に示すものは識別回路9の具体的
なブロック図を示すものであり、識別回路9のデータの
入出力を行うデータ入出力回路22と、データ入出力回路
22を介して外部装置(照合装置)から入力されたトリガ
タイミングパルスに基づきトリガのタイミングを調整す
ると共に通信速度に関する情報(ボー・レート)を出力
するタイミング発生回路24と、チップのROM,RAM
アクセス時のアドレスの発生及びそのアドレスの順次ア
クセス動作を行うアドレスバスと接続されたアドレスカ
ウンタ26と、チップのデータバスと接続されたパラレル
/シリアル変換回路28と、各ブロックの基準クロックの
発生、シリアルデータ送信時のボー・レートの決定及び
各動作時のタイマー監視を行うデバイダ/タイマ回路30
と、外部装置から入力された認識コードと予め記憶され
た認識コードとの一致を判定する認識コード判定回路32
と、チップ内蔵ROM7’に書き込まれたプログラム、
識別コード、暗号化識別コード及びエラーコードに基づ
き所定の前述したアルゴリズムと同じ手法にてチェック
コードを算出するROMチェック回路34と、前記データ
入出力回路22,タイミング発生回路24,アドレスカウン
タ26,パラレル/シリアル変換回路28,デバイダ/タイ
マ回路30,認識コード判定回路32及びROMチェック回
路34の作動を制御するIDコントロール回路36とからな
る。IDコントロール回路36は、照合装置から送出され
た認識コードを確認した後に中央処理装置5をフローテ
ィング状態にするためにバス開放要求を行い、CPU5
を一時停止させる。また、データ入出力回路22には、図
6に示すように第三者がいたずらか何かでマイクロコン
ピュータチップのSD端子に過度な電流を流すことによ
り回路を破壊することが考えられるので、かかる場合に
遊技機を作動させないように自己診断回路21を組み込ん
である。この自己診断回路21は、CPU5からフェッチ
・サイクルを受け所定のチェックパルスを2回発生する
発生回路21aと、該発生回路21aから発信されたチェッ
クパルスをOR回路21b、出力端子21c、出力回路21d
(バッファー機能を持つ)、入力回路21e(バッファー
機能を持つ)、入力端子21fを介して比較回路21gに接
続されたものからなり、該比較回路21gにはチェックパ
ルス発生回路21aからも直接パルスが入力されるように
構成されており、さらに前記比較回路21gはリセット回
路16へ出力されるようになっている。尚、21hはチップ
のID端子から入力される信号をトリガー・タイミング
・パルス受信端子又は認識コード受信端子へ切り換える
ための切換回路である。またXBPはボーレート・パル
ス出力端子、CHKDはID照合データ出力端子であ
る。
FIG. 5 shows a specific block diagram of the identification circuit 9, which includes a data input / output circuit 22 for inputting / outputting data of the identification circuit 9, and a data input / output circuit 22.
A timing generation circuit 24 that adjusts the trigger timing based on a trigger timing pulse input from an external device (verification device) via 22 and outputs information (baud rate) related to a communication speed;
An address counter 26 connected to an address bus for generating addresses at the time of access and sequentially accessing the addresses, a parallel / serial conversion circuit 28 connected to a data bus of the chip, generation of a reference clock for each block, Divider / timer circuit 30 that determines the baud rate during serial data transmission and monitors the timer during each operation
A recognition code determining circuit 32 for determining whether a recognition code input from an external device matches a previously stored recognition code.
And a program written in the ROM 7 ′ with a built-in chip,
A ROM check circuit 34 for calculating a check code based on the identification code, the encrypted identification code, and the error code in the same manner as the above-described predetermined algorithm, the data input / output circuit 22, the timing generation circuit 24, the address counter 26, A serial control circuit 28, a divider / timer circuit 30, a recognition code determination circuit 32, and an ID control circuit 36 for controlling the operation of the ROM check circuit 34. After confirming the recognition code sent from the collating device, the ID control circuit 36 issues a bus release request to bring the central processing unit 5 into a floating state.
Pause. In addition, as shown in FIG. 6, the data input / output circuit 22 may be destroyed by a third party mischievously or by applying an excessive current to the SD terminal of the microcomputer chip. In such a case, a self-diagnosis circuit 21 is incorporated so as not to operate the gaming machine. The self-diagnosis circuit 21 generates a predetermined check pulse twice upon receiving a fetch cycle from the CPU 5, and outputs a check pulse transmitted from the generation circuit 21a to an OR circuit 21b, an output terminal 21c, and an output circuit 21d.
(Having a buffer function), an input circuit 21e (having a buffer function), and a circuit connected to a comparison circuit 21g via an input terminal 21f. The comparison circuit 21g receives a pulse directly from the check pulse generation circuit 21a. The comparison circuit 21g is configured to be output to the reset circuit 16. Reference numeral 21h denotes a switching circuit for switching a signal input from the ID terminal of the chip to a trigger timing pulse receiving terminal or a recognition code receiving terminal. XBP is a baud rate / pulse output terminal, and CHKD is an ID collation data output terminal.

【0020】チップの内蔵ROM7’には例えば、図7
に示すように0000H番地から3FDFH番地までの
エリアまでをユーザープログラム領域(アプリケーショ
ンプログラム領域)とし、3FE0H番地から32バイ
トに識別コード、暗号化識別コード及び暗号化キーコー
ドの選択番号が書き込まれている。そして4000H番
地から7DFF番地までを未使用領域として7E00H
番地から7FFFH番地までの512バイトをRAM専
用の番地とし、さらに8000HからFFFFHまでを
未使用領域としており、例えばメモリーのアドレス制御
により通常は、3FC0H番地から3FFFH番地へ
は、データ内容を読み込めないように制御している。
尚、本実施例では、RAMの容量は切り替え装置により
256/512バイトに切り替わるように構成されてい
る。
For example, FIG.
As shown in the figure, the area from the address 0000H to the address 3FDFH is a user program area (application program area), and the identification code, the encryption identification code, and the selection number of the encryption key code are written in 32 bytes from the address 3FE0H. . The area from address 4000H to address 7DFF is set as an unused area in 7E00H.
The 512 bytes from the address to the address 7FFFH are dedicated to the RAM, and the unused area from the address 8000H to the FFFFH is used as an unused area. For example, normally, the data content cannot be read from the address 3FC0H to the address 3FFFH by memory address control. Is controlled.
In this embodiment, the capacity of the RAM is configured to be switched to 256/512 bytes by the switching device.

【0021】次に図9は本発明の実施例にかかるマイク
ロコンピュータチップの照合装置のブロック図に関する
ものである。システムバスによりメインCPU40と接続
された内蔵RAM42及び照合装置の各機器の制御プログ
ラムが書き込まれた内蔵ROM44と、前記メインCPU
40とシリアル接続されたセキュリティーCPU46と、該
CPU46と接続されたRAM48及びROM50とからな
り、ROM50はRAM48にプログラムをロードするため
のブートストラップモードでシリアル入出力装置SIO
を介して、ROM50にプログラムを書き込み、内容確認
後に読み出し不能状態にしている。このROM50には、
暗号化識別コードを復調するための所定のアルゴリズム
(プログラム)、複数の暗号化キーコードが書き込まれて
いる。CPU40は、プリンタインタフェース52を介して
プリンタ54及びシリアルインタフェースRS−232C
56と接続されている。尚、58はTTLレベルインタフェ
ースであり、60は識別コードの判定結果を「OK」、
「NO」又は「ERR」というように表示するためのL
ED表示器であり、62は照合装置の「スタート」、「プ
リント」等の各種照合スイッチであり、63は各回路に電
源を供給するためのバッテリーである。65は、マイクロ
コンピュータチップから読み込んだ識別番号や、照合す
るためのガイド表示するためのLCD表示器である。
FIG. 9 is a block diagram of a microcomputer chip collating apparatus according to an embodiment of the present invention. A built-in RAM 42 connected to the main CPU 40 by a system bus, a built-in ROM 44 in which a control program for each device of the verification device is written,
And a security CPU 46 serially connected to the CPU 40, and a RAM 48 and a ROM 50 connected to the CPU 46. The ROM 50 is a serial input / output device SIO in a bootstrap mode for loading a program into the RAM 48.
, The program is written into the ROM 50, and after the contents are confirmed, the program cannot be read. This ROM 50 contains
A predetermined algorithm for demodulating the encrypted identification code
(Program), a plurality of encryption key codes are written. The CPU 40 is connected to the printer 54 and the serial interface RS-232C via the printer interface 52.
Connected to 56. Reference numeral 58 denotes a TTL level interface, and 60 denotes an identification code determination result of “OK”,
L for indicating "NO" or "ERR"
Reference numeral 62 denotes an ED display, various collation switches such as "start" and "print" of the collation device, and 63 a battery for supplying power to each circuit. Reference numeral 65 denotes an LCD display for displaying an identification number read from the microcomputer chip and a guide for collation.

【0022】尚本実施例では、ROM44には遊技機制御
用CPU5に対してトリガタイミングパルスを送出し、
制御用CPU5から出力されたボー・レートに基づき受
信プロトコルの制御を行う機能と、操作キーの入力処理
を行う機能と、各表示器の制御を行う機能と、LCDの
表示器に識別コードの照合結果表示を行う機能と、プリ
ンターに対してメインCPU40から送信されたRAMの
内容の印字を行わせる機能と、セキュリティーCPU46
に対して暗号化識別コードを送信し復調された識別コー
ドを受け取る機能を持たせた制御プログラムが組み込ま
れている。
In this embodiment, a trigger timing pulse is sent to the ROM 44 to the gaming machine control CPU 5,
A function for controlling the reception protocol based on the baud rate output from the control CPU 5, a function for performing input processing of operation keys, a function for controlling each display, and a verification of the identification code on the LCD display. A function of displaying the result, a function of causing the printer to print the contents of the RAM transmitted from the main CPU 40, and a function of
, A control program having a function of transmitting an encrypted identification code and receiving a demodulated identification code.

【0023】RAM42には、プログラム実行させる為の
ワークエリアと、遊技機制御用CPU5の送受信データ
バッファとしてのエリアと、セキュリティーCPU46の
送受信バッファとしてのエリアを設けている。
The RAM 42 has a work area for executing a program, an area as a transmission and reception data buffer for the gaming machine control CPU 5, and an area as a transmission and reception buffer for the security CPU 46.

【0024】以上述べた構成において本発明の実施例に
かかるマイクロコンピュータチップと照合装置は、次の
ように作動する。マイクロコンピュータチップでは、照
合装置と接続されていない時には電源が入れられた時点
で、識別回路9のデータ入出力回路22内の自己診断回路
21内のチェックパルス発生回路21aがフェッチ・サイク
ルを受信し、出力端子21c及び比較回路21gに対して2
回ほどチェックパルスを発信し、出力回路21d、入力回
路21e、入力端子21fを介して入力されたパルスとを比
較する。パルスが一致していれば比較回路21gからリセ
ット回路16に出力されず、一致しないとき(入力端子か
ら入ってくるパルスがない時)は比較回路21gから回路
が異常ということでリセット回路16にリセット信号を出
力し、遊技機制御用CPU5をリセットし、遊技機が作
動しないようにする。異常ない時には、遊技機制御用C
PU5はリセットされてないので内蔵ROM7’に書き
込まれたアプリケーションプログラム及び内蔵RAM8
に書き込まれたデータに従い遊技機の作動を制御するこ
とにより遊技可能状態となる。尚、CPU5では、IA
TG14がプログラムが走行しているアドレスを常時監視
し、規定のアドレス範囲を外れた時には割込みしてリセ
ット回路を作動させている。またWDT12がノイズ等に
よる誤動作(暴走)を検出し、正常な状態に戻すようにし
ている。尚プログラムによる遊技機の制御はパラレルI
/Oポートを介して制御が行われている。従って、本実
施例のチップでは始動当初にプログラムの内容をチェッ
クすることなく遊技機の制御に移行する。
In the configuration described above, the microcomputer chip and the collating device according to the embodiment of the present invention operate as follows. In the microcomputer chip, when the power is turned on when not connected to the verification device, the self-diagnosis circuit in the data input / output circuit 22 of the identification circuit 9 is used.
The check pulse generation circuit 21a in 21 receives the fetch cycle and outputs 2 to the output terminal 21c and the comparison circuit 21g.
Each time a check pulse is transmitted, the pulse is compared with a pulse input through the output circuit 21d, the input circuit 21e, and the input terminal 21f. If the pulses match, the output is not output from the comparison circuit 21g to the reset circuit 16; if not (there is no pulse coming from the input terminal), the comparison circuit 21g resets the reset circuit 16 because the circuit is abnormal. A signal is output to reset the gaming machine control CPU 5 so that the gaming machine does not operate. When there is no abnormality, C for game machine control
Since the PU 5 is not reset, the application program written in the internal ROM 7 'and the internal RAM 8
Is controlled by controlling the operation of the gaming machine in accordance with the data written in. In the CPU 5, IA
The TG 14 constantly monitors the address where the program is running, and interrupts and activates the reset circuit when the address is out of the specified address range. Further, the WDT 12 detects a malfunction (runaway) due to noise or the like and returns to a normal state. The control of the game machine by the program is parallel I
Control is performed via the / O port. Therefore, in the chip of this embodiment, the control is shifted to the control of the gaming machine without checking the contents of the program at the beginning of the start.

【0025】次に図3に示すように本実施例にかかる照
合装置3の接続端子4をマイクロコンピュータチップの
端子に接続した場合にマイクロコンピュータチップと照
合装置3は、図10に示すフローチャートのように作動す
る。すなわち、照合装置3のスイッチをONとして接続
端子4をチップのSD端子に接続して照合スイッチ62を
押す。すると照合装置3内のROM44の制御によりトリ
ガタイミングパルスが送出される。マイクロコンピュー
タチップ側はこれを受信し、識別回路のデータ入出力回
路22でタイミングをはかり、確認できた時にはタイミン
グ発生回路24からボー・レートパルスがデータ入出力回
路22を介して照合装置3に対して送出される。
Next, as shown in FIG. 3, when the connection terminal 4 of the collating device 3 according to the present embodiment is connected to the terminal of the microcomputer chip, the microcomputer chip and the collating device 3 perform processing as shown in the flowchart of FIG. Activate That is, the switch of the verification device 3 is turned on, the connection terminal 4 is connected to the SD terminal of the chip, and the verification switch 62 is pressed. Then, a trigger timing pulse is transmitted under the control of the ROM 44 in the collation device 3. The microcomputer chip receives this, measures the timing in the data input / output circuit 22 of the identification circuit, and when it is confirmed, the baud rate pulse is sent from the timing generation circuit 24 to the verification device 3 through the data input / output circuit 22. Sent out.

【0026】データ入出力回路22がタイミングを確認で
きなかったときには、タイミング発生回路24からボー・
レートパルスが送出されないために、照合装置3は所定
時間内にボー・レートパルスが受信されなかったとして
エラーと判断し、エラー表示する。尚、本実施例では照
合装置3が再度トリガタイミングパルスをマイクロコン
ピュータチップに送出して、マイクロコンピュータチッ
プからのボー・レートパルスを受信するように構成して
いる。
When the data input / output circuit 22 cannot confirm the timing, the timing generator 24
Since the rate pulse is not transmitted, the collation apparatus 3 determines that an error has occurred since the baud rate pulse has not been received within a predetermined time, and displays an error. In this embodiment, the collation device 3 is configured to send a trigger timing pulse to the microcomputer chip again and receive a baud rate pulse from the microcomputer chip.

【0027】ボー・レートパルスを受け取った照合装置
3はボー・レートを決定し、マイクロコンピュータチッ
プに対して、照合装置3の持つ所定の認識コードを送出
する。マイクロコンピュータチップ側では、送出された
認識コードについて識別回路の認識コード判定回路32で
予め入力された認識コードとの比較を行い、認識コード
が正しいか否かが判断される。所定時間内に認識コード
の確認ができないときには、チップ側はトリガタイミン
グパルス待ちの状態となり、照合装置3側は所定時間内
にマイクロコンピュータチップ側からデータの送出がな
いとして表示器にエラー表示(”ERR”)させる。そ
して認識コードが一致した時には、識別回路9のIDコ
ントロール回路36は、チップのCPU5をフローティン
グ状態(リセット状態)とし、次にROMチェック回路
34に対して内蔵ROM7’に書かれたデータのチェック
を指示する。
Upon receiving the baud rate pulse, the verification device 3 determines the baud rate and sends a predetermined recognition code of the verification device 3 to the microcomputer chip. On the microcomputer chip side, the transmitted recognition code is compared with a previously input recognition code in the recognition code determination circuit 32 of the identification circuit, and it is determined whether the recognition code is correct. If the recognition code cannot be confirmed within a predetermined time, the chip side waits for a trigger timing pulse, and the collating apparatus 3 determines that no data has been transmitted from the microcomputer chip within the predetermined time and displays an error on the display (""). ERR "). When the identification codes match, the ID control circuit 36 of the identification circuit 9 sets the CPU 5 of the chip in a floating state (reset state), and then the ROM check circuit.
Instruct 34 to check the data written in the built-in ROM 7 '.

【0028】ROMチェック回路34は、マイクロコンピ
ュータチップ内蔵のROM7’にアクセスし、プログラ
ム、識別コード及び暗号化識別コードを順次走査しなが
ら所定のアルゴリズムに従いチェックコードを算出す
る。本実施例では、チェックコードの算出は、日本電信
電話株式会社が開発したフィールエイトとか、循環冗長
検査により行っている。算出されたチェックコードは、
ROM7’の所定番地に予め記載された算出済みチェッ
クコードとの照合が行われ、一致していない時にはRA
Mデータ(512バイト)及びROM7’の所定番地に
格納されたエラーコード(32バイト)を照合装置3に
送出し、一致していた時にはRAMデータ、ROM7’
の所定番地に格納された識別コード及び暗号化識別コー
ドを照合装置3にシリアルデータとして送出する。送出
するデータのフォーマットは予め特定されており、本実
施例では図8に示すようにSTX、RAMデータ(51
2バイト)、ROMの識別コード及び暗号化識別コード
(32バイト)、チェックサムというように送出され、
その後マイクロコンピュータチップは初期状態に戻る。
The ROM check circuit 34 accesses the ROM 7 'built in the microcomputer chip and calculates a check code according to a predetermined algorithm while sequentially scanning the program, the identification code and the encrypted identification code. In the present embodiment, the calculation of the check code is performed by a field redundancy developed by Nippon Telegraph and Telephone Corporation or a cyclic redundancy check. The calculated check code is
A check is performed with a calculated check code previously written at a predetermined address in the ROM 7 '.
The M data (512 bytes) and the error code (32 bytes) stored at a predetermined address of the ROM 7 'are sent to the collation device 3, and if they match, the RAM data, the ROM 7'
The identification code and the encrypted identification code stored at the predetermined address are transmitted to the collation device 3 as serial data. The format of the data to be transmitted is specified in advance, and in this embodiment, as shown in FIG.
2 bytes), ROM identification code and encryption identification code (32 bytes), checksum, etc.
Thereafter, the microcomputer chip returns to the initial state.

【0029】ROMデータ等の送出を受けた照合装置3
は、データを一時的にRAM42に格納し、データフォー
マット、データバイト数についてチェックを行い、エラ
ーコードが送出された場合は、例えば識別コードとデー
タフォーマットが異なるように設定されている関係か
ら、ROM44に格納された制御プログラムはコードチェ
ックエラーと判断して表示器にエラー表示(”ER
R”)される。データフォーマット、データバイト数の
チェック結果がOKの時に512バイトのRAMデータ
をプリンタ54に印字させると共にROMデータ(識別コ
ード)32バイトをセキュリティーCPU46に転送し、
該CPU46がROM50に書かれた復調化プログラムに従
い暗号化識別コードを復調する。尚、識別コードの暗号
化には所定の暗号キーコードを用いる。そこで、本実施
例では機密保持のために内蔵ROM50に予め複数の暗号
キーコード格納しており、これらを送出された識別コー
ドのデータの中に書き込まれた選択番号等に基づいて選
択し、所定の暗号キーコードに基づき所定のアルゴリズ
ムにて復調している。
Collation device 3 that has received ROM data and the like
Is to temporarily store the data in the RAM 42, check the data format and the number of data bytes, and if an error code is sent out, for example, because the identification code and the data format are set differently, the ROM 44 The control program stored in is judged as a code check error and an error is displayed on the display ("ER
R "). When the result of checking the data format and the number of data bytes is OK, the printer 54 prints 512 bytes of RAM data and transfers 32 bytes of ROM data (identification code) to the security CPU 46.
The CPU demodulates the encrypted identification code according to the demodulation program written in the ROM. A predetermined encryption key code is used for encrypting the identification code. Therefore, in the present embodiment, a plurality of encryption key codes are stored in advance in the built-in ROM 50 for confidentiality, and these are selected based on a selection number or the like written in the data of the transmitted identification code, and are stored in a predetermined manner. Is demodulated by a predetermined algorithm based on the encryption key code.

【0030】セキュリティーCPU46では、復調された
識別コードとROM7’から送出された識別コードとの
照合を行い、それらが一致しているか否か判断する。判
断の結果識別コードが一致していた時には、その旨中央
処理装置40に送出され、ROM44に書かれた制御プログ
ラムが表示器60に対して”OK”表示するように指示す
る。尚、この時合わせてLCDに識別番号が表示され、
機種にあった正しいROMがチップにセットされている
か否かを第三者監督機関の係官が機種と識別番号との対
象表を比較することにより判別することができる。また
照合の結果コードが一致していなかった時には、その旨
中央処理装置40に送出され、制御プログラムが表示器60
に”NO”表示するように指示する。そして検査終了後
にスイッチをOFFにすることにより検査が終了する。
The security CPU 46 compares the demodulated identification code with the identification code sent from the ROM 7 ', and determines whether or not they match. When the identification codes match as a result of the determination, the identification code is transmitted to the central processing unit 40 and the control program written in the ROM 44 instructs the display 60 to display "OK". At this time, the identification number is displayed on the LCD,
An official of a third party supervisory authority can determine whether or not the correct ROM for the model is set on the chip by comparing a target table of the model and the identification number. If the codes do not match as a result of the collation, the result is sent to the central processing unit 40 and the control program is displayed on the display 60.
To display "NO". When the switch is turned off after the inspection, the inspection is completed.

【0031】尚、本実施例では、識別コードの復調化ア
ルゴリズムが一般に知れ渡るとマイクロコンピュータチ
ップ内蔵ROM7’の改竄が容易となるため、第三者が
セキュリティーCPU46に接続されたROM50を読み込
みにいった時に自動的にアルゴリズムに関するデータを
消去するように構成されている。
In the present embodiment, if the demodulation algorithm of the identification code is generally known, it becomes easy to falsify the microcomputer chip built-in ROM 7 '. Therefore, a third party reads the ROM 50 connected to the security CPU 46. It is configured to sometimes automatically delete data related to the algorithm.

【0032】尚、本実施例では遊技機一台一台を照合装
置で検査するシステムのものについて説明したが、図1
1に示すようにホールコンピュータと各遊技機とを結線
しているケーブル間に本照合装置3を介在させて、ホー
ルコンピュータで一台一台遊技機に組み込まれたマイク
ロコンピュータチップ内蔵のROMの内容をチェックす
るようなシステムにすることも可能である。かかる構成
にすれば、ホール全体の遊技機のチェックを短時間で行
うことができる。
In this embodiment, a system in which each game machine is inspected one by one by a verification device has been described.
As shown in FIG. 1, the contents of the ROM with a built-in microcomputer chip incorporated in each gaming machine by the hall computer with this matching device 3 interposed between the cables connecting the hall computer and each gaming machine. It is also possible to make a system that checks With such a configuration, it is possible to check the gaming machines in the entire hall in a short time.

【0033】尚、本実施例では、内蔵ROMを再書き込
み禁止ROMを用いたが、これに限定されるものではな
く、通常のROMを用いても差し支えない。但し、この
場合は遊技機を作動時に識別回路9を作動させてIDコ
ントロール回路36が、チップのCPU5をフローティン
グ状態(リセット状態)とし、次にROMチェック回路
34に対して内蔵ROM7’に書かれたデータのチェック
を指示し、ROMチェック回路34が、マイクロコンピュ
ータチップ内蔵のROM7’にアクセスし、プログラ
ム、識別コード及び暗号化識別コードを順次走査しなが
ら所定のアルゴリズムに従いチェックコードを算出す
る。この場合もチェックコードの算出は、日本電信電話
株式会社が開発したフィールエイトとか、循環冗長検査
により行うが、算出されたチェックコードは、ROM
7’の所定番地に予め記載された算出済みチェックコー
ドとの照合する度に識別番号のチェックを行わせるよう
にすると良い。
In this embodiment, the built-in ROM is a rewrite-protected ROM. However, the present invention is not limited to this, and a normal ROM may be used. However, in this case, when the gaming machine is operated, the identification circuit 9 is operated, the ID control circuit 36 brings the CPU 5 of the chip into a floating state (reset state), and then the ROM check circuit.
The ROM check circuit 34 instructs the ROM 34 'to check the data written in the built-in ROM 7', accesses the ROM 7 'built in the microcomputer chip, and scans the program, the identification code, and the encrypted identification code sequentially while performing predetermined scanning. The check code is calculated according to the algorithm of In this case as well, the check code is calculated by a field eight developed by Nippon Telegraph and Telephone Corporation or by a cyclic redundancy check.
It is preferable that the identification number is checked every time the check code is compared with the calculated check code described in advance at the predetermined address 7 '.

【0034】[0034]

【発明の効果】以上述べたように本発明にかかるマイク
ロコンピュータチップでは、第三者検査機関による型式
試験合格した後は量産用チップとして、内蔵ROM内に
アプリケーションプログラムの他に識別コード及び暗号
化識別コードが書き込まれ、さらにアプリケーションプ
ログラム、識別コード及び暗号化識別コードに基づき所
定のアルゴリズムに従い算出されたチェックコードが書
き込まれており、プログラムを改変すると識別コード及
びチェックコードが変更されるように構成されているこ
とから基板全部を取り替えたり、チップを取り替えた
り、内蔵ROMを取り替えたり、プログラムの内容を変
更しても簡単に検査することができる。さらにホールに
納品された遊技機に組み込まれたマイクロコンピュータ
チップに内蔵されたROMの内容及びチップ自体が型式
試験に合格したものか否かについて照合装置により簡単
にチェックできるように構成されているので、従来の装
置に比較して立入り検査の不正検出が容易である。
As described above, in the microcomputer chip according to the present invention, after passing the type test by the third party inspection organization, it is used as a mass production chip in the built-in ROM, in addition to the application program, the identification code and the encryption code. An identification code is written, and further, a check code calculated according to a predetermined algorithm based on the application program, the identification code, and the encrypted identification code is written, and the identification code and the check code are changed when the program is modified. Therefore, even if the entire board is replaced, the chip is replaced, the internal ROM is replaced, or the contents of the program are changed, the inspection can be easily performed. Furthermore, since the contents of the ROM incorporated in the microcomputer chip incorporated in the gaming machine delivered to the hall and whether the chip itself has passed the type test can be easily checked by the collation device, In addition, the on-site inspection can be easily detected as fraudulent as compared with the conventional apparatus.

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

【図1】 本発明かかる装置の運用方式を示す概略図で
ある。
FIG. 1 is a schematic diagram showing an operation system of the device according to the present invention.

【図2】 マイクロコンピュータチップと照合装置によ
るプログラム検出過程を示す概略図である。
FIG. 2 is a schematic diagram showing a program detection process by a microcomputer chip and a collation device.

【図3】 遊技機に照合装置を接続した状態を示す概略
図である。
FIG. 3 is a schematic diagram showing a state where a matching device is connected to a gaming machine.

【図4】 本発明にかかる開発用マイクロコンピュータ
チップブロック図である。
FIG. 4 is a block diagram of a microcomputer chip for development according to the present invention.

【図5】 マイクロコンピュータチップにおける識別番
号照合回路を示す詳細ブロック図である。
FIG. 5 is a detailed block diagram showing an identification number matching circuit in the microcomputer chip.

【図6】 データ入出力回路に組み込まれた自己診断回
路のブロック図である。
FIG. 6 is a block diagram of a self-diagnosis circuit incorporated in the data input / output circuit.

【図7】 内蔵ROM及びRAMに格納されているプロ
グラム等の番地を示す図である。
FIG. 7 is a diagram showing addresses of programs and the like stored in a built-in ROM and a RAM.

【図8】マイクロコンピュータチップから照合装置に対
して送出されるデータのフォーマットを示す図である。
FIG. 8 is a diagram showing a format of data transmitted from the microcomputer chip to the collation device.

【図9】 本発明にかかる照合装置を示すブロック図で
ある。
FIG. 9 is a block diagram showing a collation device according to the present invention.

【図10】 本発明にかかる照合装置を利用したマイク
ロコンピュータチップ内蔵プログラムの不正を検出する
手順のフローチャートである。
FIG. 10 is a flowchart of a procedure for detecting illegality of a microcomputer chip built-in program using the collation device according to the present invention.

【図11】 本発明にかかるマイクロコンピュータチッ
プと照合装置を応用した例を示すブロック図である。
FIG. 11 is a block diagram showing an example in which a microcomputer chip and a matching device according to the present invention are applied.

【図12】 本発明にかかる開発用マイクロコンピュー
タチップブロック図である。
FIG. 12 is a block diagram of a microcomputer chip for development according to the present invention.

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

1 遊技機 2 基板 3 照合装置 4 接続端子 5 中央処理装置(CPU) 6 クロック発生回路 7 再書き込み禁止内蔵ROM 7’ 書き込み可能な内蔵ROM 8 内蔵RAM 9 識別回路 10 カウンタ・タイマ回路 11 パラレル入出力ポート 12 ウォッチドグタイマ(WDT) 14 不正アドレス実行禁止制御回路(IATG) 16 リセット回路 18 メモリー制御回路 20 メモリープログラム制御回路 21 自己診断回路 21a チェックパルス発生回路 21b OR回路 21c 出力端子 21d 出力回路 21e 入力回路 21f 入力端子 21g 比較回路 21h 切換回路 22 データ入出力回路 24 タイミング発生回路 26 アドレスカウンタ 28 パラレル/シリアル変換回路 30 デバイダ/タイマ回路 32 認識コード判定回路 34 ROMチェック回路 36 IDコントロール回路 40 メインCPU 42 内蔵RAM 44 内蔵ROM 46 セキュリティーCPU 48 RAM 50 ROM 52 プリンタインターフェース 54 プリンタ 56 シリアルインターフェース 58 TTLレベルインターフェース 60 LED表示器 62 各種照合スイッチ 63 バッテリー 65 LCD表示器 DESCRIPTION OF SYMBOLS 1 Gaming machine 2 Substrate 3 Verification device 4 Connection terminal 5 Central processing unit (CPU) 6 Clock generation circuit 7 Rewrite-protected built-in ROM 7 'Writable built-in ROM 8 Built-in RAM 9 Identification circuit 10 Counter / timer circuit 11 Parallel input / output Port 12 Watchdog timer (WDT) 14 Illegal address execution prohibition control circuit (IATG) 16 Reset circuit 18 Memory control circuit 20 Memory program control circuit 21 Self-diagnosis circuit 21a Check pulse generation circuit 21b OR circuit 21c Output terminal 21d Output circuit 21e Input Circuit 21f Input terminal 21g Comparison circuit 21h Switching circuit 22 Data input / output circuit 24 Timing generation circuit 26 Address counter 28 Parallel / serial conversion circuit 30 Divider / timer circuit 32 Recognition code judgment circuit 34 ROM check circuit 36 ID control circuit 40 Main CPU 42Built RAM 44 built ROM 46 Security CPU 48 RAM 50 ROM 52 printer interface 54 printer 56 serial interface 58 TTL-level interface 60 LED indicator 62 various verification switch 63 battery 65 LCD display

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 所定の領域にアプリケーションプログラ
ム、遊技機の機種毎の識別コード及び暗号化識別コード
並びにアプリケーションプログラム、識別コード、暗号
化識別コードに基づき算出されたチェックコードが記憶
された書き換え可能な内蔵ROMと、ユーザープログラ
ム用のデータが書き込まれた外部からのデータ書き換え
を禁止させた内蔵RAMと、外部から送信された認識コ
ードに基づきそれが正しいか否をチェックすると共に認
識コードが一致した場合に書き換え可能な内蔵ROMに
書かれたプログラムが認定を受けたものか否かについて
書き換え可能な内蔵ROMを走査してチェックコードの
算出と書き換え可能な内蔵ROMに記憶されたチェック
コードとの比較を行なう識別手段と、書き換え可能な内
蔵ROMに書かれたアプリケーションプログラム及びユ
ーザーデータに基づき遊技プログラムを実行するための
中央処理装置とを有する開発用の遊技機制御用マイクロ
コンピュータチップ。
1. A rewritable storage device in which a predetermined area stores an application program, an identification code and an encrypted identification code for each type of gaming machine, and a check code calculated based on the application program, the identification code, and the encrypted identification code. When the built-in ROM, the built-in RAM in which the data for the user program is written and external data rewriting is prohibited, and whether the recognition code is correct based on the recognition code transmitted from the outside and the recognition code match. Scan the rewritable internal ROM to determine whether the program written in the rewritable internal ROM has been certified, and compare the check code with the check code stored in the rewritable internal ROM. Identification means to perform and written in rewritable internal ROM A microcomputer chip for development control of a game machine having a central processing unit for executing a game program based on an application program and user data.
【請求項2】 所定の領域にアプリケーションプログラ
ム、遊技機の機種毎の識別コード及び暗号化識別コード
並びにアプリケーションプログラム、識別コード、暗号
化識別コードに基づき算出されたチェックコードが記憶
された書き換え可能な内蔵ROMと、ユーザープログラ
ム用のデータが書き込まれた外部からのデータ書き換え
を禁止させた内蔵RAMと、外部から送信された認識コ
ードに基づきそれが正しいか否をチェックすると共に認
識コードが一致した場合に書き換え可能な内蔵ROMに
書かれたプログラムが認定を受けたものか否かについて
書き換え可能な内蔵ROMを走査してチェックコードの
算出と書き換え可能な内蔵ROMに記憶されたチェック
コードとの比較を行なう識別手段と、書き換え可能な内
蔵ROMに書かれたアプリケーションプログラム及びユ
ーザーデータに基づき遊技プログラムを実行するための
中央処理装置、前記書き換え可能な内蔵ROM以外から
のプログラムの実行を禁止する不正アドレス実行禁止制
御回路とを有することを特徴とする開発用の遊技機制御
用マイクロコンピュータチップ
2. A rewritable storage device in which a predetermined area stores an application program, an identification code and an encrypted identification code for each type of gaming machine, and a check code calculated based on the application program, the identification code, and the encrypted identification code. When the built-in ROM, the built-in RAM in which the data for the user program is written and external data rewriting is prohibited, and whether the recognition code is correct based on the recognition code transmitted from the outside and the recognition code match. Scan the rewritable internal ROM to determine whether the program written in the rewritable internal ROM has been certified, and compare the check code with the check code stored in the rewritable internal ROM. Identification means to perform and written in rewritable internal ROM A central processing unit for executing a game program based on an application program and user data, and an unauthorized address execution prohibition control circuit for prohibiting execution of a program other than the rewritable internal ROM. Microcomputer chip for gaming machine control
JP2001144103A 1993-05-20 2001-05-15 Microcomputer tip for game machine control which is used for development Pending JP2001353336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001144103A JP2001353336A (en) 1993-05-20 2001-05-15 Microcomputer tip for game machine control which is used for development

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP14138593 1993-05-20
JP5-141385 1993-05-20
JP2001144103A JP2001353336A (en) 1993-05-20 2001-05-15 Microcomputer tip for game machine control which is used for development

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP13105694A Division JP3526615B2 (en) 1993-05-20 1994-05-20 Microcomputer chip for controlling a gaming machine and collating device for detecting illegality thereof

Publications (1)

Publication Number Publication Date
JP2001353336A true JP2001353336A (en) 2001-12-25

Family

ID=26473630

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001144103A Pending JP2001353336A (en) 1993-05-20 2001-05-15 Microcomputer tip for game machine control which is used for development

Country Status (1)

Country Link
JP (1) JP2001353336A (en)

Similar Documents

Publication Publication Date Title
JP3526615B2 (en) Microcomputer chip for controlling a gaming machine and collating device for detecting illegality thereof
JP4398678B2 (en) Gaming machine control board with mutual authentication function
US8250372B1 (en) Gaming security system
US20010037438A1 (en) Method and apparatus for computer memory protection and verification
JP5144204B2 (en) Game machine security chip and game machine verification machine
JP2009005771A (en) Microcomputer for controlling game machine, verification device, game machine, and method for finding out fraudulence in game machine
JP2004024449A (en) Game machine
JP2004033639A (en) Game machine
JP4401468B2 (en) Gaming machine control chip monitoring system
JPH08508352A (en) Safe critical processor and processing method for data processing system
JP2010182070A (en) Apparatus, method and program for processing information
JP2004024450A (en) Game machine
JP2002000885A (en) Microcomputer chip for game machine control
JP2002035384A (en) Method for manufacturing microcomputer chip for final game machine control
JP3581331B2 (en) Microcomputer chip for gaming machine control
JP3491065B2 (en) Gaming machine inspection equipment
JP2975522B2 (en) Microprocessor microprocessor
JP2001353336A (en) Microcomputer tip for game machine control which is used for development
JP2620020B2 (en) Microprocessor microprocessor
JPH1024145A (en) Centralized terminal plate for inspecting game mach i ne
JP2005080932A (en) Game control unit, auxiliary game control unit and game machine
JPH0917956A (en) Microcomputer chip for control of game machine
JP2004024588A (en) Game machine
JPH10108963A (en) Collation judgment information of game machine control substrate and enciphering communication system
JPH1024148A (en) Chip collator

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040210