JP2017060855A - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP2017060855A
JP2017060855A JP2016237218A JP2016237218A JP2017060855A JP 2017060855 A JP2017060855 A JP 2017060855A JP 2016237218 A JP2016237218 A JP 2016237218A JP 2016237218 A JP2016237218 A JP 2016237218A JP 2017060855 A JP2017060855 A JP 2017060855A
Authority
JP
Japan
Prior art keywords
access
ram
state
prohibited
area
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
JP2016237218A
Other languages
Japanese (ja)
Inventor
矢次 譲
Yuzuru Yatsugi
譲 矢次
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.)
Fuji Shoji Co Ltd
Original Assignee
Fuji Shoji 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 Fuji Shoji Co Ltd filed Critical Fuji Shoji Co Ltd
Priority to JP2016237218A priority Critical patent/JP2017060855A/en
Publication of JP2017060855A publication Critical patent/JP2017060855A/en
Pending legal-status Critical Current

Links

Landscapes

  • Pinball Game Machines (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a game machine capable of changing security operation in response to an operation state and uniformizing hardware design of a memory circuit.SOLUTION: A main control section includes: forbiddance setup means that sets a start address and an ending address at discretionary timing to set an access forbiddance area of RAM; access control means CTL capable of controlling an access to the RAM access forbiddance area into a permission state or a forbiddance state; first abnormality reset means 51 that, in a state where the access is controlled into the forbiddance state by the access control means, detects the access to the RAM forbiddance area to forcibly reset CPU; second abnormality reset means 50 for detecting that an area other than an RAM use area is accessed to forcibly reset the CPU; and write control means capable of uniformly controlling data write operation to the RAM into the forbiddance state or the permission state.SELECTED DRAWING: Figure 5

Description

本発明は、遊技動作に起因する抽選処理によって大当り状態を発生させる遊技機に関し、特に、本来の演出制御動作に支障を与えないで所望のセキュリティ動作を実現できる遊技機に関する。   The present invention relates to a gaming machine that generates a big hit state by a lottery process caused by a gaming operation, and more particularly to a gaming machine that can realize a desired security operation without hindering an original performance control operation.

パチンコ機などの弾球遊技機は、遊技盤に設けた図柄始動口と、複数の表示図柄による一連の図柄変動態様を表示する図柄表示部と、開閉板が開閉される大入賞口などを備えて構成されている。そして、図柄始動口に設けられた検出スイッチが遊技球の通過を検出すると入賞状態となり、遊技球が賞球として払出された後、図柄表示部では表示時間変動される。その後、7−7−7などの所定の態様で図柄が停止すると大当り状態となり、大入賞口が繰返し開放されて、遊技者に有利な遊技状態を発生させている。   A ball game machine such as a pachinko machine has a symbol start opening provided on the game board, a symbol display section for displaying a series of symbol variation patterns by a plurality of display symbols, and a big winning opening for opening and closing the opening and closing plate. Configured. When the detection switch provided at the symbol start port detects the passing of the game ball, the winning state is entered, and after the game ball is paid out as a prize ball, the display time is changed in the symbol display section. Thereafter, when the symbol is stopped in a predetermined manner such as 7-7-7, a big hit state is established, and the big winning opening is repeatedly opened to generate a gaming state advantageous to the player.

このような遊技状態を発生させるか否かは、図柄始動口に遊技球が入賞したことを条件に実行される大当り抽選で決定されており、上記の図柄変動動作は、この抽選結果を踏まえたものとなっている。   Whether or not to generate such a game state is determined by a jackpot lottery executed on the condition that a game ball has won at the symbol start opening, and the above symbol variation operation is based on this lottery result. It has become a thing.

特開2005−304632号公報JP 2005-304632 A

ところで、大当り抽選の当選値は、遊技機の制御プログラムを解析すれば判明するので、例えば、任意に当選状態を発生可能な違法プログラムを実行させようとする違法行為も懸念されるところである。   By the way, since the winning value of the big win lottery can be determined by analyzing the control program of the gaming machine, for example, there is a concern about an illegal act of trying to execute an illegal program that can arbitrarily generate a winning state.

そこで、従来から各種の対策が提案されているが(例えば、特許文献1)、遊技機の動作状態に対応して、セキュリティ動作を適宜に変更できる構成は知られていない。また、複数機種の遊技機についてメモリ回路のハードウェア設計を画一化できる有効な方法も知られていない。   Thus, various countermeasures have been conventionally proposed (for example, Patent Document 1), but a configuration that can appropriately change the security operation in accordance with the operation state of the gaming machine is not known. Also, there is no known effective method that can unify the hardware design of the memory circuit for a plurality of types of gaming machines.

本発明は、上記の問題点に鑑みてなされたものであって、遊技機の動作状態に対応してセキュリティ動作を変更することができ、複数機種の遊技機についてメモリ回路のハードウェア設計を画一化することもできる遊技機を提供することを目的とする。   The present invention has been made in view of the above-described problems, and can change the security operation in accordance with the operating state of the gaming machine, so that the hardware design of the memory circuit can be defined for a plurality of types of gaming machines. An object is to provide a gaming machine that can be unified.

上記の目的を達成するため、本発明は、所定の遊技動作の発生を示す検出信号に起因して抽選処理を実行し、遊技者に有利な遊技状態を発生させるか否かを決定する主制御部を有する遊技機であって、前記主制御部は、制御プログラムやデータを不揮発的に記憶するROMと、作業データを揮発的に記憶するRAMと、ROMの制御プログラムに基づいて動作するCPUと、を内蔵するワンチップマイコンを有して構成されると共に、任意のタイミングで開始アドレスと終了アドレスを設定して、RAMのアクセス禁止領域を設定可能な禁止設定手段と、アクセス禁止領域へのアクセスを許可状態又は禁止状態に制御可能なアクセス制御手段と、アクセス制御手段によってアクセスが禁止状態に制御されている状態においてRAMの禁止領域にアクセスされたことを検出してCPUを強制リセットする第1の異常リセット手段と、ROMの使用領域以外がアクセスされことを検出して、CPUを強制リセットする第2の異常リセット手段と、RAMへのデータ書込み動作を画一的に禁止状態又は許可状態に制御可能な書込み制御手段と、を有して構成されている。   In order to achieve the above-described object, the present invention executes main lottery processing based on a detection signal indicating the occurrence of a predetermined game action, and determines whether or not to generate a game state advantageous to the player. The main control unit includes a ROM that stores a control program and data in a nonvolatile manner, a RAM that stores work data in a volatile manner, and a CPU that operates based on the control program in the ROM. And a one-chip microcomputer having a built-in configuration, setting a start address and an end address at an arbitrary timing to set a RAM access prohibited area, and access to the access prohibited area Access control means capable of controlling the access state to a permitted state or a prohibited state, and a prohibited area of the RAM in a state where access is controlled to the prohibited state by the access control means First abnormal reset means for forcibly resetting the CPU upon detection of access, second abnormal reset means for forcibly resetting the CPU upon detection of access outside the ROM use area, and RAM And a write control means capable of uniformly controlling the data write operation in a prohibited state or a permitted state.

本発明の禁止設定手段は、任意のタイミングでRAMのアクセス禁止領域を設定することができ、本発明のアクセス制御手段は、アクセス禁止領域へのアクセスを許可状態又は禁止状態に制御できるので、機器設計や制御動作の自由度が高く、その結果として遊技制御を最適化することができる。   The prohibition setting means of the present invention can set the RAM access prohibition area at an arbitrary timing, and the access control means of the present invention can control access to the access prohibition area to a permitted state or a prohibited state. The degree of freedom in design and control operations is high, and as a result, game control can be optimized.

具体的には、複数機種の遊技機について、不使用又は使用禁止となるRAM領域を機種毎に設定できるので、RAMの記憶容量を画一化してメモリ回路のハードウェア設計を単純化することができる。また、遊技機の機種の相違に拘らず、遊技動作中にアクセス禁止領域を変更したり、或いは、アクセス禁止領域へのアクセスを禁止/許可状態に変更できるので制御動作を単純化することができる。   Specifically, for multiple types of gaming machines, a RAM area that is not used or prohibited can be set for each model, so the RAM memory capacity can be standardized and the hardware design of the memory circuit can be simplified. it can. In addition, regardless of the type of gaming machine, the access prohibited area can be changed during the game operation, or the access to the access prohibited area can be changed to the prohibited / permitted state, so that the control operation can be simplified. .

例えば、一連のRAMエリアに同一データを書込むような場合には、一時的にアクセス禁止領域へのアクセスを許可状態に変更するだけで、途中に多数のアクセス禁止領域が離散的に存在しても、遊技機の機種の相違に拘らず、単純なプログラムで一気に処理することができる。この種の遊技機では、ROMの記憶容量が制限されているので、このような単純な処理はROMの記憶領域の節約に極めて有効である。   For example, when the same data is written in a series of RAM areas, there are a large number of access-prohibited areas discretely existing on the way only by temporarily changing the access to the access-prohibited area to a permitted state. However, regardless of the type of gaming machine, it can be processed at once with a simple program. In this type of gaming machine, since the storage capacity of the ROM is limited, such simple processing is extremely effective in saving the storage area of the ROM.

アクセス制御手段は、好ましくは、第2の異常リセット手段が機能する状態で、RAMのアクセス禁止領域へのアクセスを、許可状態又は禁止状態に制御するべきである。このような構成を採ると、アクセス禁止領域へのアクセス許可に拘らず、ROMの不使用領域へのアクセスが監視されるので、セキュリティレベルが特に低下することがない。   The access control means should preferably control access to the access prohibited area of the RAM to a permitted state or a prohibited state in a state where the second abnormality reset means functions. When such a configuration is adopted, access to the non-use area of the ROM is monitored regardless of the access permission to the access prohibition area, so that the security level is not particularly lowered.

書込み制御手段は、好ましくは、RAMからのデータ読出し動作を許可した状態で、データ書込み動作を画一的に禁止状態に制御するべきである。このような構成を採ると、RAMの破壊を防止しつつ、制限された一定の制御動作を継続することができる。   The write control means should preferably control the data write operation uniformly in a prohibited state while permitting the data read operation from the RAM. By adopting such a configuration, it is possible to continue a limited control operation while preventing destruction of the RAM.

主制御部は、電源遮断後もRAMの記憶内容を維持するバックアップ手段を有して構成され、電源遮断時には、RAMに所定データを記憶した後、書込み制御手段によってデータ書込み動作が画一的に禁止状態とされ、アクセス制御手段によってアクセス禁止領域へのアクセスが許可状態にされるのが好適である。このような構成を採ると、電源電圧の降下によってCPUが暴走状態となっても、CPUがリセットされることがなく、且つ、RAMの記憶内容が書き換えられることがないのでRAMの記憶内容が破壊されることがない。   The main control unit is configured to include backup means for maintaining the stored contents of the RAM even after the power is shut off. When the power is shut off, after the predetermined data is stored in the RAM, the data write operation is uniformly performed by the write control means. It is preferable that access is prohibited and access to the access prohibited area is permitted by the access control means. If such a configuration is adopted, even if the CPU is in a runaway state due to a drop in the power supply voltage, the CPU is not reset and the stored contents of the RAM are not rewritten, so the stored contents of the RAM are destroyed. It will not be done.

また、主制御部は、電源遮断後もRAMの記憶内容を維持するバックアップ手段を有して構成され、電源投入時には、ワンチップマイコン各部の初期設定処理を終えた後、書込み制御手段によってデータ書込み動作が画一的に許可状態とされ、アクセス制御手段によってアクセス禁止領域へのアクセスが許可状態にされるのが好適である。このような構成を採ると、RAMに飛び飛びのアクセス禁止領域や不使用領域を設けた場合にも、例えば、全領域を一気にクリアすることができる。   In addition, the main control unit has a backup unit that maintains the stored contents of the RAM even after the power is turned off. When the power is turned on, after the initial setting process of each part of the one-chip microcomputer is completed, the write control unit writes the data. It is preferable that the operation is uniformly permitted, and access to the access prohibited area is permitted by the access control means. By adopting such a configuration, for example, even when a jump-on access prohibited area or a non-use area is provided in the RAM, for example, the entire area can be cleared at once.

好ましくは、ワンチップマイコンには、禁止設定されるRAM領域の開始アドレスを記憶可能な最小値レジスタと、禁止設定されるRAM領域の終了アドレスを記憶可能な最大値レジスタとが設けられ、CPUは、最小値レジスタと最大値レジスタに適宜なアドレス値を設定するよう構成されている。   Preferably, the one-chip microcomputer is provided with a minimum value register capable of storing the start address of the prohibited RAM area and a maximum value register capable of storing the end address of the prohibited RAM area. An appropriate address value is set in the minimum value register and the maximum value register.

書込み制御手段は、CPUからRAMに出力されるアドレスバス、及びコントロールバスのうち、コントロールバスで伝送される所定信号を制御する論理回路を有して構成されているのが好適である。なお、本発明の遊技機は、典型的には弾球遊技機又は回胴式遊技機である。   The write control means preferably includes a logic circuit that controls a predetermined signal transmitted through the control bus among the address bus output from the CPU to the RAM and the control bus. Note that the gaming machine of the present invention is typically a bullet ball game machine or a revolving game machine.

上記した通り、本発明によれば、遊技機の動作状態に対応してノイズ対策や違法対策を変更でき、複数機種の遊技機についてメモリ回路のハードウェア設計を画一化することもできる。   As described above, according to the present invention, noise countermeasures and illegal countermeasures can be changed according to the operating state of the gaming machine, and the hardware design of the memory circuit can be standardized for a plurality of types of gaming machines.

実施例に示すパチンコ機の斜視図である。It is a perspective view of the pachinko machine shown in an example. 図1のパチンコ機の遊技盤を図示した正面図である。It is the front view which illustrated the game board of the pachinko machine of FIG. 図1のパチンコ機の全体構成を示すブロック図である。It is a block diagram which shows the whole structure of the pachinko machine of FIG. ワンチップマイコンの内部回路を示す回路図である。It is a circuit diagram which shows the internal circuit of a one-chip microcomputer. 異常リセット回路の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of an abnormal reset circuit. CPUのメモリアクセス動作を示すタイムチャートである。It is a time chart which shows memory access operation of CPU. 主制御部のメイン処理を説明するフローチャートである。It is a flowchart explaining the main process of a main control part. 主制御部のタイマ割込み処理などを説明するフローチャートである。It is a flowchart explaining the timer interruption process of a main control part.

以下、本発明の実施例について詳細に説明する。図1は、本実施例のパチンコ機GMを示す斜視図である。このパチンコ機GMは、島構造体に着脱可能に装着される矩形枠状の木製外枠1と、外枠1に固着されたヒンジ2を介して開閉可能に枢着される前枠3とで構成されている。この前枠3には、遊技盤5が、裏側からではなく表側から着脱自在に装着され、その前側には、ガラス扉6と前面板7とが夫々開閉自在に枢着されている。   Examples of the present invention will be described in detail below. FIG. 1 is a perspective view showing a pachinko machine GM of the present embodiment. This pachinko machine GM includes a rectangular frame-shaped wooden outer frame 1 that is detachably mounted on an island structure, and a front frame 3 that is pivotably mounted via a hinge 2 fixed to the outer frame 1. It is configured. A game board 5 is detachably attached to the front frame 3 from the front side rather than from the back side, and a glass door 6 and a front plate 7 are pivotally attached to the front side so as to be openable and closable.

ガラス扉6の外周には、LEDランプなどによる電飾ランプが、略C字状に配置されている。前面板7には発射用の遊技球を貯留する上皿8が装着され、前枠3の下部には、上皿8から溢れ出し又は抜き取った遊技球を貯留する下皿9と、発射ハンドル10とが設けられている。発射ハンドル10は発射モータと連動しており、発射ハンドル10の回動角度に応じて動作する打撃槌によって遊技球が発射される。   On the outer periphery of the glass door 6, an electric lamp such as an LED lamp is arranged in a substantially C shape. An upper plate 8 for storing game balls for launch is mounted on the front plate 7, and a lower plate 9 for storing game balls overflowing from or extracted from the upper plate 8 and a launch handle 10 are mounted at the bottom of the front frame 3. And are provided. The launch handle 10 is interlocked with the launch motor, and a game ball is launched by a striking rod that operates according to the rotation angle of the launch handle 10.

上皿8の外周面には、チャンスボタン11が設けられている。このチャンスボタン11は、遊技者の左手で操作できる位置に設けられており、遊技者は、発射ハンドル10から右手を離すことなくチャンスボタン11を操作できる。このチャンスボタン11は、通常時には機能していないが、ゲーム状態がボタンチャンス状態となると内蔵ランプが点灯されて操作可能となる。なお、ボタンチャンス状態は、必要に応じて設けられるゲーム状態である。   A chance button 11 is provided on the outer peripheral surface of the upper plate 8. The chance button 11 is provided at a position where it can be operated with the left hand of the player, and the player can operate the chance button 11 without releasing the right hand from the firing handle 10. The chance button 11 does not function normally, but when the game state becomes the button chance state, the built-in lamp is turned on and can be operated. The button chance state is a game state provided as necessary.

上皿8の右部には、カード式球貸し機に対する球貸し操作用の操作パネル12が設けられ、カード残額を3桁の数字で表示する度数表示部と、所定金額分の遊技球の球貸しを指示する球貸しスイッチと、ゲーム終了時にカードの返却を指令する返却スイッチとが設けられている。   On the right side of the upper plate 8, an operation panel 12 for ball lending operation with respect to the card-type ball lending machine is provided, a frequency display unit for displaying the remaining amount of the card with a three-digit number, and a ball of game balls for a predetermined amount A ball lending switch for instructing lending and a return switch for instructing to return the card at the end of the game are provided.

図2に示すように、遊技盤5には、金属製の外レールと内レールとからなるガイドレール13が環状に設けられ、その内側の遊技領域5aの略中央には、液晶カラーディスプレイDISPが配置されている。また、遊技領域5aの適所には、図柄始動口15、大入賞口16、複数個の普通入賞口17(大入賞口16の左右に4つ)、通過口であるゲート18が配設されている。これらの入賞口15〜18は、それぞれ内部に検出スイッチを有しており、遊技球の通過を検出できるようになっている。   As shown in FIG. 2, the game board 5 is provided with a guide rail 13 formed of a metal outer rail and an inner rail in an annular shape, and a liquid crystal color display DISP is provided at the approximate center of the game area 5a inside. Is arranged. In addition, at a suitable place in the game area 5a, a symbol start opening 15, a big winning opening 16, a plurality of normal winning openings 17 (four on the right and left of the large winning opening 16), and a gate 18 serving as a passing opening are arranged. Yes. Each of these winning openings 15 to 18 has a detection switch inside, and can detect the passage of a game ball.

液晶ディスプレイDISPは、大当り状態に係わる特定図柄を変動表示すると共に背景画像や各種のキャラクタなどをアニメーション的に表示する装置である。この液晶ディスプレイDISPは、中央部に特別図柄表示部Da〜Dcと右上部に普通図柄表示部19を有している。そして、特別図柄表示部Da〜Dcでは、大当り状態の招来を期待させるリーチ演出が実行されたり、特別図柄表示部Da〜Dc及びその周りでは、当否結果を不確定に報知する予告演出などが実行される。   The liquid crystal display DISP is a device that variably displays a specific symbol related to a big hit state and displays a background image and various characters in an animated manner. This liquid crystal display DISP has special symbol display portions Da to Dc in the center portion and a normal symbol display portion 19 in the upper right portion. And, in the special symbol display parts Da to Dc, a reach effect is executed that expects a big hit state to be invited, or in the special symbol display parts Da to Dc and the surroundings, a notice effect that informs the result of the success / failure is executed. Is done.

普通図柄表示部19は普通図柄を表示するものであり、ゲート18を通過した遊技球が検出されると、普通図柄が所定時間だけ変動し、遊技球のゲート18の通過時点において抽出された抽選用乱数値により決定される停止図柄を表示して停止するようになっている。   The normal symbol display unit 19 displays a normal symbol. When a game ball that has passed through the gate 18 is detected, the normal symbol fluctuates for a predetermined time, and the lottery extracted at the time when the game ball passes through the gate 18 is extracted. The stop symbol determined by the random number for use is displayed and stopped.

図柄始動口15は、左右1対の開閉爪15aを備えた電動式チューリップで開閉されるよう例えば構成され、普通図柄表示部19の変動後の停止図柄が当り図柄を表示した場合には、開閉爪15aが所定時間だけ、若しくは、所定個数の遊技球を検出するまで開放されるようになっている。   For example, the symbol start opening 15 is configured to be opened and closed by an electric tulip having a pair of left and right opening and closing claws 15a. When the stop symbol after the fluctuation of the normal symbol display unit 19 displays a winning symbol, the symbol start port 15 is opened and closed. The claw 15a is opened only for a predetermined time or until a predetermined number of game balls are detected.

図柄始動口15に遊技球が入賞すると、特別図柄表示部Da〜Dcの表示図柄が所定時間だけ変動し、図柄始動口15への遊技球の入賞タイミングに応じた抽選結果に基づいて決定される停止図柄で停止する。なお、特別図柄表示部Da〜Dc及びその周りでは、一連の図柄演出の間に、予告演出が実行される場合がある。   When a game ball wins the symbol start port 15, the display symbols of the special symbol display portions Da to Dc change for a predetermined time and are determined based on the lottery result corresponding to the winning timing of the game ball to the symbol start port 15. Stop at the stop symbol. In addition, in special symbol display parts Da-Dc and its circumference, a notice effect may be performed between a series of symbol effects.

大入賞口16は、例えば前方に開放可能な開閉板16aで開閉制御されるが、特別図柄表示部Da〜Dcの図柄変動後の停止図柄が「777」などの大当り図柄のとき、「大当りゲーム」と称する特別遊技が開始され、開閉板16aが開放されるようになっている。   The big winning opening 16 is controlled to open and close by, for example, an opening / closing plate 16a that can be opened forward, but when the stop symbol after the symbol change of the special symbol display portions Da to Dc is a big hit symbol such as “777”, the “big hit game” Is started, and the opening / closing plate 16a is opened.

大入賞口16の開閉板16aが開放された後、所定時間が経過し、又は所定数(例えば10個)の遊技球が入賞すると開閉板16aが閉じる。このような動作は、最大で例えば15回まで特別遊技が継続され、遊技者に有利な状態に制御される。なお、特別図柄表示部Da〜Dcの変動後の停止図柄が特別図柄のうちの特定図柄であった場合には、特別遊技の終了後のゲームが高確率状態となるという特典が付与される。   After the opening / closing plate 16a of the big prize opening 16 is opened, the opening / closing plate 16a is closed when a predetermined time elapses or when a predetermined number (for example, 10) of game balls wins. In such an operation, the special game is continued up to 15 times, for example, and is controlled in a state advantageous to the player. In addition, when the stop symbol after the change of the special symbol display parts Da to Dc is a specific symbol of the special symbols, a privilege that the game after the end of the special game is in a high probability state is given.

図3は、上記した各動作を実現するパチンコ機GMの全体回路構成を示すブロック図である。図中の一点破線は、主に、直流電圧ラインを示している。   FIG. 3 is a block diagram showing an overall circuit configuration of the pachinko machine GM that realizes the above-described operations. A dashed line in the figure mainly indicates a DC voltage line.

図示の通り、このパチンコ機GMは、AC24Vを受けて各種の直流電圧やシステムリセット信号(電源リセット信号)SYSなどを出力する電源基板20と、遊技制御動作を中心統括的に担う主制御基板21と、主制御基板21から受けた制御コマンドCMDに基づいてランプ演出及び音声演出を実行する演出制御基板22と、演出制御基板22から受けた制御コマンドCMD’に基づいて液晶ディスプレイDISPを駆動する液晶制御基板23と、主制御基板21から受けた制御コマンドCMD”に基づいて払出モータMを制御して遊技球を払い出す払出制御基板24と、遊技者の操作に応答して遊技球を発射させる発射制御基板25と、を中心に構成されている。   As shown in the figure, this pachinko machine GM is provided with a power supply board 20 that receives AC 24V and outputs various DC voltages, system reset signals (power reset signals) SYS, and the like, and a main control board 21 that plays a central role in game control operations. And an effect control board 22 that executes a lamp effect and a sound effect based on the control command CMD received from the main control board 21, and a liquid crystal that drives the liquid crystal display DISP based on the control command CMD ′ received from the effect control board 22. The control board 23, the payout control board 24 for controlling the payout motor M based on the control command CMD "received from the main control board 21 and paying out the game ball, and the game ball is fired in response to the player's operation. The launch control board 25 is mainly configured.

但し、この実施例では、主制御基板21が出力する制御コマンドCMDは、コマンド中継基板26と演出インターフェイス基板27を経由して、演出制御基板22に伝送される。また、演出制御基板22が出力する制御コマンドCMD’は、演出インターフェイス基板27を経由して、液晶制御基板23に伝送され、主制御基板21が出力する制御コマンドCMD”は、主基板中継基板28を経由して、払出制御基板24に伝送される。   However, in this embodiment, the control command CMD output from the main control board 21 is transmitted to the effect control board 22 via the command relay board 26 and the effect interface board 27. Further, the control command CMD ′ output from the effect control board 22 is transmitted to the liquid crystal control board 23 via the effect interface board 27, and the control command CMD ″ output from the main control board 21 is set to the main board relay board 28. Is transmitted to the payout control board 24 via.

これら主制御基板21、演出制御基板22、液晶制御基板23、及び払出制御基板24には、ワンチップマイコンを備えるコンピュータ回路がそれぞれ搭載されている。そこで、これらの制御基板21〜24に搭載された回路、及びその回路によって実現される動作を機能的に総称して、本明細書では、主制御部21、演出制御部22、液晶制御部23、及び払出制御部24と言うことがある。なお、演出制御部22、液晶制御部23、及び払出制御部24の全部又は一部がサブ制御部である。   The main control board 21, the effect control board 22, the liquid crystal control board 23, and the payout control board 24 are each equipped with a computer circuit including a one-chip microcomputer. Accordingly, the circuits mounted on the control boards 21 to 24 and the operations realized by the circuits are collectively referred to as a function. In this specification, the main control unit 21, the effect control unit 22, and the liquid crystal control unit 23 are used. , And the payout control unit 24. All or part of the effect control unit 22, the liquid crystal control unit 23, and the payout control unit 24 is a sub-control unit.

ところで、このパチンコ機GMは、図3の破線で囲む枠側部材GM1と、遊技盤5の背面に固定された盤側部材GM2とに大別されている。枠側部材GM1には、ガラス扉6や前面板7が枢着された前枠3と、その外側の木製外枠1とが含まれており、機種の変更に拘わらず、長期間にわたって遊技ホールに固定的に設置される。一方、盤側部材GM2は、機種変更に対応して交換され、新た盤側部材GM2が、元の盤側部材の代わりに枠側部材GM1に取り付けられる。なお、枠側部材1を除く全てが、盤側部材GM2である。   By the way, the pachinko machine GM is roughly divided into a frame side member GM1 surrounded by a broken line in FIG. 3 and a board side member GM2 fixed to the back of the game board 5. The frame side member GM1 includes a front frame 3 on which a glass door 6 and a front plate 7 are pivotally attached, and a wooden outer frame 1 on the outside thereof. Is fixedly installed. On the other hand, the board side member GM2 is replaced in response to the model change, and the new board side member GM2 is attached to the frame side member GM1 instead of the original board side member. All except the frame side member 1 is the panel side member GM2.

図3の破線枠に示す通り、枠側部材GM1には、電源基板20と、払出制御基板24と、発射制御基板25と、枠中継基板32とが含まれており、これらの回路基板が、前枠3の適所に各々固定されている。一方、遊技盤5の背面には、主制御基板21、演出制御基板22、液晶制御基板23が、液晶ディスプレイDISPやその他の回路基板と共に固定されている。そして、枠側部材GM1と盤側部材GM2とは、一箇所に集中配置された接続コネクタC1〜C4によって電気的に接続されている。   As shown in the broken line frame in FIG. 3, the frame-side member GM1 includes a power supply board 20, a payout control board 24, a launch control board 25, and a frame relay board 32, and these circuit boards are Each is fixed in place on the front frame 3. On the other hand, on the back of the game board 5, a main control board 21, an effect control board 22, and a liquid crystal control board 23 are fixed together with a liquid crystal display DISP and other circuit boards. And the frame side member GM1 and the board | substrate side member GM2 are electrically connected by the connection connectors C1-C4 concentratedly arranged in one place.

電源基板20は、接続コネクタC2を通して、主基板中継基板28に接続され、接続コネクタC3を通して、電源中継基板30に接続されている。そして、主基板中継基板28は、電源基板20から受けたシステムリセット信号SYS、RAMクリア信号DEL、電圧降下信号、バックアップ電源BAK、DC12V、DC32Vを、そのまま主制御部21に出力している。同様に、電源中継基板30も、電源基板20から受けたシステムリセット信号SYSや、交流及び直流の電源電圧を、そのまま演出インターフェイス基板27に出力している。なお、演出インターフェイス基板27は、受けたシステムリセット信号SYSを、そのまま演出制御部22と液晶制御部23に出力している。   The power supply board 20 is connected to the main board relay board 28 through the connection connector C2, and is connected to the power supply relay board 30 through the connection connector C3. The main board relay board 28 outputs the system reset signal SYS, the RAM clear signal DEL, the voltage drop signal, the backup power supplies BAK, DC12V, and DC32V received from the power board 20 to the main controller 21 as they are. Similarly, the power supply relay board 30 also outputs the system reset signal SYS received from the power supply board 20 and the AC and DC power supply voltages to the effect interface board 27 as they are. The production interface board 27 outputs the received system reset signal SYS to the production control unit 22 and the liquid crystal control unit 23 as they are.

一方、払出制御基板24は、中継基板を介することなく、電源基板20に直結されており、主制御部21が受けると同様の、システムリセット信号SYS、RAMクリア信号DEL、電圧降下信号、バックアップ電源BAKを、その他の電源電圧と共に直接的に受けている。   On the other hand, the payout control board 24 is directly connected to the power supply board 20 without going through the relay board, and the system reset signal SYS, the RAM clear signal DEL, the voltage drop signal, the backup power supply, which are received by the main control unit 21. BAK is received directly along with other power supply voltages.

ここで、電源基板20が出力するシステムリセット信号SYSは、電源基板20に交流電源24Vが投入されたことを示す電源リセット信号であり、この電源リセット信号によって各制御部21〜24のワンチップマイコンその他のIC素子が電源リセットされるようになっている。   Here, the system reset signal SYS output from the power supply board 20 is a power supply reset signal indicating that the AC power supply 24V is turned on to the power supply board 20, and the one-chip microcomputers of the respective control units 21 to 24 by this power supply reset signal. The other IC elements are reset in power supply.

主制御部21及び払出制御部24が、電源基板20から受けるRAMクリア信号DELは、各制御部21,24のワンチップマイコンの内蔵RAMの全領域を初期設定するか否かを決定する信号であって、係員が操作する初期化スイッチSWのON/OFF状態に対応した値を有している。   The RAM clear signal DEL received from the power supply board 20 by the main control unit 21 and the payout control unit 24 is a signal that determines whether or not to initialize all areas of the built-in RAM of the one-chip microcomputer of each control unit 21 and 24. Therefore, it has a value corresponding to the ON / OFF state of the initialization switch SW operated by the attendant.

主制御部21及び払出制御部24が、電源基板20から受ける電圧降下信号は、交流電源24Vが降下し始めたことを示す信号であり、この電圧降下信号を受けることによって、各制御部21、24では、停電や営業終了に先立って、必要な終了処理を開始するようになっている。また、バックアップ電源BAKは、営業終了や停電により交流電源24Vが遮断された後も、主制御部21と払出制御部24のワンチップマイコンの内蔵RAMのデータを保持するDC5Vの直流電源である。したがって、主制御部21と払出制御部25は、電源遮断前の遊技動作を電源投入後に再開できることになる(電源バックアップ機能)。このパチンコ機では少なくとも数日は、各ワンチップマイコンのRAMの記憶内容が保持されるよう設計されている。   The voltage drop signal received from the power supply board 20 by the main control unit 21 and the payout control unit 24 is a signal indicating that the AC power supply 24V has started to drop. By receiving this voltage drop signal, each control unit 21, In 24, a necessary termination process is started prior to a power failure or business termination. The backup power supply BAK is a DC5V DC power source that retains data in the RAM of the one-chip microcomputer of the main control unit 21 and the payout control unit 24 even after the AC power supply 24V is shut off due to business termination or power failure. Therefore, the main control unit 21 and the payout control unit 25 can resume the game operation before power-off after power-on (power backup function). This pachinko machine is designed to retain the stored contents of the RAM of each one-chip microcomputer for at least several days.

一方、演出制御部22と液晶制御部23には、上記した電源バックアップ機能が設けられていない。しかし、先に説明した通り、演出制御部22と液晶制御部23には、電源中継基板30と演出インターフェイス基板27を経由して、システムリセット信号SYSが共通して供給されており、他の制御部21,24と、ほぼ同期したタイミングで電源リセット動作が実現される。   On the other hand, the effect control unit 22 and the liquid crystal control unit 23 are not provided with the power supply backup function described above. However, as described above, the system reset signal SYS is commonly supplied to the effect control unit 22 and the liquid crystal control unit 23 via the power relay board 30 and the effect interface board 27, and other controls are performed. The power supply reset operation is realized at a timing substantially synchronized with the units 21 and 24.

図示の通り、主制御部21は、主基板中継基板28を経由して、払出制御部25に制御コマンドCMD”を送信する一方、払出制御部25からは、遊技球の払出動作を示す賞球計数信号や、払出動作の異常に係わるステイタス信号CONを受信している。ステイタス信号CONには、例えば、補給切れ信号、払出不足エラー信号、下皿満杯信号が含まれる。   As illustrated, the main control unit 21 transmits a control command CMD "to the payout control unit 25 via the main board relay board 28, while the payout control unit 25 receives a prize ball indicating a payout operation of the game ball. A count signal and a status signal CON relating to an abnormality in the payout operation are received, and the status signal CON includes, for example, a replenishment out signal, a payout shortage error signal, and a lower plate full signal.

また、主制御部21は、遊技盤中継基板29を経由して、遊技盤5の各遊技部品に接続されている。そして、遊技盤上の各入賞口16〜18に内蔵された検出スイッチのスイッチ信号を受ける一方、電動チューリップなどのソレノイド類を駆動している。なお、スイッチ信号には、図柄始動口15から主制御部21に伝送される入賞スイッチ信号SGが含まれる。   The main control unit 21 is connected to each game component of the game board 5 via the game board relay board 29. And while receiving the switch signal of the detection switch built in each winning opening 16-18 on a game board, solenoids, such as an electric tulip, are driven. The switch signal includes a winning switch signal SG transmitted from the symbol start port 15 to the main control unit 21.

図4は、主制御部21のワンチップマイコン21Aの内部構成の一部を図示したものである。ここでは、遊技盤中継基板29を経由して、図柄始動口15の検出スイッチから入賞スイッチ信号SGを受ける部分も含めて図示している。   FIG. 4 illustrates a part of the internal configuration of the one-chip microcomputer 21 </ b> A of the main control unit 21. Here, a portion including a winning switch signal SG received from the detection switch of the symbol start port 15 via the game board relay board 29 is shown.

図示の通り、ワンチップマイコン21Aは、Z80CPU(Zilog社)相当のCPUと、Z80CTC(counter timer circuit)相当のカウンタタイマ回路CTCと、ROM及びRAMのメモリ回路と、ウォッチドッグタイマWDTと、乱数生成回路GNRと、メモリやIOポートの不正アクセス(illegal memory access)を検出してCPUを強制リセットする異常リセット回路ABNと、入力ポートINPとを内蔵している。   As illustrated, the one-chip microcomputer 21A includes a CPU equivalent to Z80CPU (Zilog), a counter timer circuit CTC equivalent to Z80CTC (counter timer circuit), a ROM and RAM memory circuit, a watchdog timer WDT, and a random number generator. A circuit GNR, an abnormal reset circuit ABN that detects illegal access (illegal memory access) of a memory or an IO port and forcibly resets the CPU, and an input port INP are incorporated.

図柄始動口15からの入賞スイッチ信号SGは、遊技盤中継基板29に配置されたバッファ回路BUFを経由して、ワンチップマイコン21Aの乱数生成回路GNRと、入力ポートINPに重複して供給されている。なお、入力ポートINPには、図柄始動口15に限らず、大入賞口16やゲート18の検出スイッチからのスイッチ信号も、合わせて供給されている。   The winning switch signal SG from the symbol start port 15 is supplied to the random number generation circuit GNR of the one-chip microcomputer 21A and the input port INP via the buffer circuit BUF arranged on the game board relay board 29. Yes. The input port INP is supplied not only with the symbol start port 15 but also with a switch signal from the big winning port 16 and the detection switch of the gate 18.

バッファ回路BUFは、オープンコレクタ型の出力部を有し、入力側が12Vにプルアップされ、出力側が5Vにプルアップされている。そして、遊技球が図柄始動口15を通過して入賞状態となると、バッファ回路BUFは、正論理のON信号として、入賞スイッチ信号SGを出力する。   The buffer circuit BUF has an open collector type output section, and the input side is pulled up to 12V and the output side is pulled up to 5V. When the game ball passes through the symbol start port 15 and enters a winning state, the buffer circuit BUF outputs a winning switch signal SG as a positive logic ON signal.

乱数生成回路GNRは、入賞スイッチ信号SGがON状態になったことを検出して検出内容を保持するラッチレジスタと、計数クロックΦを受けて高速度で更新されるカウンタと、入賞スイッチ信号がON状態となった瞬間のカウンタ値を乱数値として保持する乱数値レジスタとを有している。   The random number generation circuit GNR detects that the winning switch signal SG is in an ON state and holds a detection content, a counter that is updated at high speed in response to the counting clock Φ, and the winning switch signal is ON. And a random value register that holds a counter value at the moment when the state is reached as a random value.

そして、CPUは、入力ポートINPからの入力データに基づき、入賞スイッチ信号SGがON状態となったことを把握すると、乱数生成回路GNRの乱数値レジスタから乱数値を取得し、これを当選値とを比較する抽選処理(図8の特別図柄処理ST27)を実行するよう構成されている。   When the CPU grasps that the winning switch signal SG is in the ON state based on the input data from the input port INP, the CPU obtains a random value from the random value register of the random number generation circuit GNR, and uses this as the winning value. The lottery process (special symbol process ST27 in FIG. 8) is executed.

異常リセット回路ABNには、最大値レジスタMAXや最小値レジスタMINが各々複数個内蔵されており、各レジスタには、遊技制御動作の開始に先立ってCPUによって必要なアドレス値やポート番号が書込まれるよう構成されている。なお、特に限定されないが、この実施例では、最小値レジスタMINに、2の補数(負数)形式でアドレス値やポート番号を書き込んでいる。   The abnormal reset circuit ABN includes a plurality of maximum value registers MAX and minimum value registers MIN, and each register is written with an address value and port number required by the CPU prior to the start of the game control operation. It is configured to be. Although not particularly limited, in this embodiment, the address value and the port number are written in the two's complement (negative number) format in the minimum value register MIN.

また、異常リセット回路ABNには、CPUのアドレスバスやコントロールバスやデータバスが接続されており、アドレスバスに出力されるアドレス値が異常状態である場合(illegal memory access)には、CPUのリセット端子RESETに、リセット信号が出力されるよう構成されている。なお、CPUのリセット端子RESETには、異常を検出したウォッチドッグタイマWDTからもリセット信号が供給される。   The abnormal reset circuit ABN is connected to the CPU address bus, control bus, and data bus. If the address value output to the address bus is in an abnormal state (illegal memory access), the CPU reset is performed. A reset signal is output to the terminal RESET. Note that a reset signal is also supplied to the reset terminal RESET of the CPU from the watchdog timer WDT that has detected an abnormality.

図5は、異常リセット回路ABNの回路構成を示す回路ブロック図である。図示の通り、異常リセット回路ABNは、ROMの不正アクセスを検出するROM不正アクセス検出部50と、RAMの不正アクセスを検出するRAM不正アクセス検出部51と、IOポートの不正アクセスを検出するIO不正アクセス検出部52と、を有して構成されている。3つの検出部50〜52は、その回路構成が類似しており、いずれの検出部も、不正アクセスを検出するとLレベルの異常信号ERを出力するよう構成されている。   FIG. 5 is a circuit block diagram showing a circuit configuration of the abnormal reset circuit ABN. As shown in the figure, the abnormal reset circuit ABN includes a ROM unauthorized access detection unit 50 that detects unauthorized access to the ROM, a RAM unauthorized access detection unit 51 that detects unauthorized access to the RAM, and an IO unauthorized detection that detects unauthorized access to the IO port. And an access detection unit 52. The three detection units 50 to 52 have similar circuit configurations, and all the detection units are configured to output an L level abnormality signal ER when an unauthorized access is detected.

各検出部50〜52から出力される異常信号ERは、NANDゲートG4に供給され、その出力はNANDゲートG5に供給されている。そして、NANDゲートG5には、CPUが出力するリセット制御信号CTLが供給されている。したがって、リセット制御信号CTLがHレベルの状態で、何れかの異常信号ERがLレベルになると、CPUのリセット端子RESETにLレベルのリセット信号が供給されて、CPUが強制リセットされることになる。   The abnormal signal ER output from each of the detection units 50 to 52 is supplied to the NAND gate G4, and the output thereof is supplied to the NAND gate G5. A reset control signal CTL output from the CPU is supplied to the NAND gate G5. Therefore, if any abnormal signal ER becomes L level while the reset control signal CTL is at H level, an L level reset signal is supplied to the reset terminal RESET of the CPU, and the CPU is forcibly reset. .

不正アクセス検出部50,51は、最小アドレス値STARTを、2の補数形式で記憶保持する16ビット長の最小値レジスタMINと、最大アドレス値ENDを記憶保持する16ビット長の最大値レジスタMAXと、アドレスバスのアドレスデータDATAを取得する16ビット長のラッチ回路LTと、16ビット長の加算演算を実行する2つの加算部ADD1と、2の補数演算を実行する補数演算部CMPと、2つの加算部ADD1から出力される桁溢れ信号CYを受ける出力ゲートGTとを有して構成されている。   The unauthorized access detection units 50 and 51 include a 16-bit minimum value register MIN that stores and holds the minimum address value START in 2's complement format, and a 16-bit maximum value register MAX that stores and holds the maximum address value END. A 16-bit latch circuit LT for obtaining address data DATA of the address bus, two adders ADD1 for performing a 16-bit addition operation, a complement operation unit CMP for performing a two's complement operation, And an output gate GT for receiving an overflow signal CY output from the adder ADD1.

ここで、最小値レジスタMIN、最大値レジスタMAX、及びラッチ回路LTは電源投入時に電源リセット信号によって電源リセットされるよう構成されている。そのため、各レジスタMIN,MAXにCPUが数値を設定しない限り、各レジスタの内容は0000Hである。同様に、ラッチ回路LTは、アドレスバスのアドレス値を取得しない限り、電源投入直後の記憶値(0000H)が維持される。   Here, the minimum value register MIN, the maximum value register MAX, and the latch circuit LT are configured to be reset by a power reset signal when the power is turned on. Therefore, the contents of each register are 0000H unless the CPU sets a numerical value in each register MIN, MAX. Similarly, the latch circuit LT maintains the stored value (0000H) immediately after the power is turned on unless the address value of the address bus is acquired.

補数演算部CMPは、入力データを2の補数形式に変換して、数値の正負を反転させる回路である。具体的には、ラッチ回路LTの出力データDATAを論理反転(NOT演算)した後、これに1を加算する演算を実行している。その結果、アドレスバスからの取得データDATAに対して、FFFFH−DATA+1の出力が16ビット長で得られる。なお、16進数のFFFFHは、10進数では65535である。   The complement calculation unit CMP is a circuit that converts input data into a two's complement format and inverts the sign of the numerical value. More specifically, after logically inverting (NOT operation) the output data DATA of the latch circuit LT, an operation of adding 1 to this is executed. As a result, the output of FFFFH-DATA + 1 is obtained with a 16-bit length for the acquired data DATA from the address bus. The hexadecimal number FFFFH is 65535 in decimal number.

加算部ADDは、1個の半加算器(Half adder)と15個の全加算器(Full adder)とを組み合わせて構成され、16ビット長の加算結果と、最上位桁からの桁溢れ1ビット信号CYと、を出力する回路である。   The adder ADD is configured by combining one half adder (Half adder) and 15 full adders (Full adder), the addition result of 16 bits length, and 1 bit overflow from the most significant digit A circuit that outputs a signal CY.

図示の通り、ROM不正アクセス検出部50の出力ゲートGTは、ANDゲート(負論理ORゲート)で構成され、RAM不正アクセス検出部51の出力ゲートGTは、NANDゲートで構成されている。   As illustrated, the output gate GT of the ROM unauthorized access detection unit 50 is configured by an AND gate (negative logic OR gate), and the output gate GT of the RAM unauthorized access detection unit 51 is configured by a NAND gate.

ROM不正アクセス検出部50には、CPUが出力するMREQバー信号及びM1バー信号を受けるORゲートG1が配置され、ORゲートG1の出力が、ラッチ信号としてラッチ回路LTに供給されている。そのため、ROM不正アクセス検出部50では、M1バー信号とMREQ信号バーが、共にLレベルとなるタイミングで、アドレスバスのアドレスデータDATAがラッチ回路LTに取得される。   The ROM unauthorized access detection unit 50 is provided with an OR gate G1 that receives the MREQ bar signal and the M1 bar signal output from the CPU, and the output of the OR gate G1 is supplied to the latch circuit LT as a latch signal. Therefore, in the ROM unauthorized access detection unit 50, the address data DATA of the address bus is acquired by the latch circuit LT at the timing when both the M1 bar signal and the MREQ signal bar become L level.

このようにROM不正アクセス検出部50では、M1バー信号とMREQ信号バーが共にLレベルとなるタイミングでアドレスデータDATAをラッチするので、ROMに格納された各命令について、オペコード(operation code)部に続くオペランド(operand)部を格納しているアドレスの正当性を判定できない。例えば、LD A, (NN)のような3バイト命令の場合に、オペランド部(アドレスNN)を格納するメモリのアドレス値の正当性を判定しない。しかし、複数バイト長の命令において、オペコード部だけを正当領域に格納し、これに連続するオペランド部を不正領域に格納するようなことは事実上できないので、何の問題も生じない。   As described above, since the ROM unauthorized access detection unit 50 latches the address data DATA at the timing when both the M1 bar signal and the MREQ signal bar become L level, each instruction stored in the ROM is stored in the operation code unit. The validity of the address storing the following operand part cannot be determined. For example, in the case of a 3-byte instruction such as LDA, (NN), the validity of the address value of the memory storing the operand part (address NN) is not determined. However, in an instruction having a length of a plurality of bytes, it is virtually impossible to store only the opcode part in the valid area and to store the continuous operand part in the illegal area.

続いて、RAM不正アクセス検出部51について説明する。図示の通り、RAM不正アクセス検出部51には、CPUが出力するMREQバー信号を論理否定するNOTゲートG2と、RFSHバー信号及びNOTゲートG2の出力信号を受けるNANDゲートG3が配置され、NANDゲートG3の出力が、ラッチパルスとしてラッチ回路LTに供給されている。そのため、RAM不正アクセス検出部51では、RFSHバー信号がHレベルであることを条件に、MREQ信号バーの立下りエッジに同期して、アドレスバスのアドレスデータDATAがラッチ回路LTに取得される。   Subsequently, the RAM unauthorized access detection unit 51 will be described. As shown in the figure, the RAM unauthorized access detection unit 51 includes a NOT gate G2 that logically negates the MREQ bar signal output from the CPU, and a NAND gate G3 that receives the RFSH bar signal and the output signal of the NOT gate G2. The output of G3 is supplied to the latch circuit LT as a latch pulse. Therefore, the RAM unauthorized access detection unit 51 acquires the address data DATA of the address bus in the latch circuit LT in synchronization with the falling edge of the MREQ signal bar on condition that the RFSH bar signal is at the H level.

IO不正アクセス検出部52は、RAM不正アクセス検出部51と類似の構成を有しており、最小ポート番号STARTを2の補数形式で記憶保持する8ビット長の最小値レジスタMINと、最大ポート番号ENDを記憶保持する8ビット長の最大値レジスタMAXと、アドレスバスの下位8ビットデータを取得する8ビット長のラッチ回路LTと、8ビット長の加算演算を実行する2つの加算部ADDと、2の補数演算を実行する補数演算部CMPと、2つの加算部ADDから出力される桁溢れ信号CYを受けるNANDゲートGTとを有して構成されている。   The IO unauthorized access detection unit 52 has a configuration similar to that of the RAM unauthorized access detection unit 51, and includes an 8-bit minimum value register MIN that stores and holds the minimum port number START in two's complement format, and the maximum port number. An 8-bit length maximum value register MAX for storing and holding END, an 8-bit length latch circuit LT for acquiring lower 8-bit data of the address bus, and two addition units ADD that perform an 8-bit length addition operation; A complement calculation unit CMP that performs a two's complement calculation and a NAND gate GT that receives an overflow signal CY output from two addition units ADD are configured.

上記した各回路構成において、最小値レジスタMINや最大値レジスタMAXには、ROMの使用領域やRAMやIOポートの使用禁止領域を特定するアドレス値やポート番号が格納されるようになっている。   In each circuit configuration described above, the minimum value register MIN and the maximum value register MAX store address values and port numbers that specify ROM use areas and RAM or IO port use prohibition areas.

例えば、ROM不正アクセス検出部50の最小値レジスタMINには、ROMデータ(制御プログラムや制御データ)が記憶されている開始アドレスSTARTが格納され、最大値レジスタMAXには、ROMデータが記憶されている終了アドレスENDが格納されるようになっている。したがって、オペコードフェッチサイクルにおいて、正当な記憶領域(STAR〜END)以外のROMアドレスがアクセスされた場合は、不正アクセスであると判定される。   For example, the minimum value register MIN of the ROM unauthorized access detection unit 50 stores a start address START in which ROM data (control program and control data) is stored, and the maximum value register MAX stores ROM data. The end address END is stored. Therefore, if a ROM address other than the valid storage area (STAR to END) is accessed in the operation code fetch cycle, it is determined that the access is illegal.

一方、RAM不正アクセス検出部51の最小値レジスタMINには、使用が禁止されるRAMの開始アドレスSTARTが格納され、最大値レジスタMAXには、使用が禁止されるRAM終了アドレスENDが格納されるようになっている。同様に、IOポート不正アクセス検出部52の最小値レジスタMINには、使用が禁止されるIOポートの開始ポート番号STARTが格納され、最大値レジスタには、使用が禁止されるIOポートの終了ポート番号ENDが格納されるようになっている。そのため、RAM不正アクセス検出部51やIOポート不正アクセス検出部52では、禁止範囲(STAR〜END)のアドレスやポート番号がアクセスされた場合には、これが不正アクセスとなる。なお、最小値レジスタMINには、開始アドレスや開始ポート番号が、2の補数形式で記憶されることは前述の通りである。   On the other hand, the RAM start address START for which use is prohibited is stored in the minimum value register MIN of the RAM unauthorized access detection unit 51, and the RAM end address END for which use is prohibited is stored in the maximum value register MAX. It is like that. Similarly, the start port number START of the IO port prohibited to be used is stored in the minimum value register MIN of the IO port unauthorized access detection unit 52, and the end port of the IO port prohibited to be used is stored in the maximum value register. The number END is stored. Therefore, in the RAM unauthorized access detection unit 51 and the IO port unauthorized access detection unit 52, when an address or port number in the prohibited range (STAR to END) is accessed, this is unauthorized access. As described above, the minimum value register MIN stores the start address and the start port number in a two's complement format.

図6は、Z80CPUの動作内容を示すタイムチャートであり、オペコードフェッチサイクル(a)と、メモリリード/ライトサイクル(b)と、IOリード/ライトサイクル(c)とを示している。   FIG. 6 is a time chart showing the operation contents of the Z80 CPU, and shows an operation code fetch cycle (a), a memory read / write cycle (b), and an IO read / write cycle (c).

オペコードフェッチサイクル(図6(a))では、制御プログラムのオペコードが格納されているROMアドレスが、M1バー信号に同期して、CPUのプログラムカウンタから出力され、その後、MREQバー信号が立下る。   In the operation code fetch cycle (FIG. 6A), the ROM address storing the operation code of the control program is output from the CPU program counter in synchronization with the M1 bar signal, and then the MREQ bar signal falls.

図5に示す通り、ROM不正アクセス検出部50には、M1バー信号とMREQバー信号を受けるORゲートG1が配置されている。そのため、MREQバー信号の立下りエッジで、アドレスバスのアドレス値DATAがラッチ回路LTに取得される(図6(a)参照)。なお、その後、リフレッシュアドレスが出力されるタイミングでもMREQバー信号が立下るが、このタイミングではM1バー信号がHレベルであるので、ROM不正アクセス検出部50のラッチ回路LTに影響を与えない。   As shown in FIG. 5, the ROM unauthorized access detection unit 50 is provided with an OR gate G1 that receives the M1 bar signal and the MREQ bar signal. Therefore, the address value DATA of the address bus is acquired by the latch circuit LT at the falling edge of the MREQ bar signal (see FIG. 6A). After that, the MREQ bar signal also falls at the timing when the refresh address is output. At this timing, the M1 bar signal is at the H level, so that the latch circuit LT of the ROM unauthorized access detection unit 50 is not affected.

メモリリード/ライトサイクル(図6(b))では、制御プログラムの実行に基づくメモリリード/ライト動作が、MREQバー信号に同期して実行される。図5に示す通り、RAM不正アクセス検出部51には、NOTゲートG2やNANDゲートG3が配置されているので、メモリリード/ライトサイクルにおいてプログラムカウンタから出力されるアクセス先のメモリアドレス値は、MREQバー信号の立下りエッジで、ラッチ回路LTに取得される。なお、リフレッシュアドレスが出力されるタイミングでもMREQバー信号が立下るが、このタイミングでは、RFSHバー信号がLレベルであることから、RAM不正アクセス検出部51のラッチ回路LTに影響を与えない。また、RAM不正アクセス検出部51は、オペコードフェッチサイクルにおけるアドレス値も判定するが、使用禁止範囲(START〜END)か否かの判定しかしないので何ら問題が生じない。   In the memory read / write cycle (FIG. 6B), a memory read / write operation based on the execution of the control program is executed in synchronization with the MREQ bar signal. As shown in FIG. 5, since the NOT gate G2 and the NAND gate G3 are arranged in the RAM unauthorized access detector 51, the memory address value of the access destination output from the program counter in the memory read / write cycle is MREQ. Acquired by the latch circuit LT at the falling edge of the bar signal. Note that the MREQ bar signal also falls at the timing when the refresh address is output, but at this timing, the RFSH bar signal is at the L level, so that the latch circuit LT of the RAM unauthorized access detection unit 51 is not affected. The RAM unauthorized access detection unit 51 also determines an address value in the operation code fetch cycle, but does not cause any problem because it only determines whether or not it is in a use-prohibited range (START to END).

IOリード/ライトサイクル(図6(c))では、制御プログラムのIN命令やOUT命令の実行に基づいて、IOポートのアクセス動作がIORQバー信号に同期して実行される。この動作に対応してIO不正アクセス検出部52には、NOTゲートG2やNANDゲートG3が配置されているので、アクセス先の8ビット長ポート番号が、IOREQバー信号の立下りエッジで、ラッチ回路LTに取得される。   In the IO read / write cycle (FIG. 6C), the IO port access operation is executed in synchronization with the IORQ bar signal based on the execution of the IN instruction and OUT instruction of the control program. Corresponding to this operation, the IO unauthorized access detector 52 is provided with a NOT gate G2 and a NAND gate G3, so that the 8-bit long port number of the access destination is a latch circuit at the falling edge of the IOREQ bar signal. Acquired by LT.

以上の通り、本実施例では、オペコードフェッチサイクルに出力される16ビット長のアドレス値は、ROM不正アクセス検出部50のラッチ回路LTに取得され、メモリリード/ライトサイクルに出力される16ビット長のアドレス値は、RAM不正アクセス検出部51のラッチ回路LTに取得される。また、IOリード/ライトサイクルに出力される下位8ビット長のアドレス値は、IO不正アクセス検出部52のラッチ回路LTに取得される。   As described above, in this embodiment, the 16-bit address value output in the opcode fetch cycle is acquired by the latch circuit LT of the ROM unauthorized access detection unit 50 and output in the memory read / write cycle. Is acquired by the latch circuit LT of the RAM unauthorized access detection unit 51. Further, the lower 8-bit address value output in the IO read / write cycle is acquired by the latch circuit LT of the IO unauthorized access detection unit 52.

ラッチ回路LTに取得されたアドレス値DATAは、不正アクセス検出部50〜52の加算部において演算される。そこで、先ず、ROM不正アクセス検出部50の動作について、最小値レジスタMINに格納されている開始アドレス値の加算演算から説明する。   The address value DATA acquired by the latch circuit LT is calculated in the addition unit of the unauthorized access detection units 50 to 52. First, the operation of the ROM unauthorized access detection unit 50 will be described from the addition operation of the start address value stored in the minimum value register MIN.

左側の加算部ADD1において、最小値レジスタMINに格納されている2の補数形式の開始アドレス(FFFFH−START+1)と、アドレスバスから取得されたROMのアドレス値DATAとが16ビット加算されると、DATA>=STARTの場合には、最上位ビットから桁溢れが生じ(CY=1)、DATA<STARTの場合には桁溢れが生じない(CY=0)。   When the addition unit ADD1 on the left side adds 16 bits to the two's complement start address (FFFFH-START + 1) stored in the minimum value register MIN and the ROM address value DATA acquired from the address bus, When DATA> = START, overflow occurs from the most significant bit (CY = 1), and when DATA <START, overflow does not occur (CY = 0).

ここで、開始アドレスSTARTは、制御プログラムが格納されている開始番地であるので、桁溢れが生じないDATA<STARTの場合(CY=0)には、本来存在しないアドレスに対する不正アクセスであることになる。   Here, since the start address START is the start address where the control program is stored, if DATA <START (CY = 0) in which overflow does not occur (CY = 0), it means that the address is an illegal access to an originally nonexistent address. Become.

次に、右側の加算部ADD1の動作について説明する。最大値レジスタMAXに格納されている終了アドレスENDについては、アドレスバスから取得されたROMのアドレス値DATAが2の補数演算された後、他方の加算部ADD1において、終了アドレスENDと加算される。そのため、FFFFH−DATA+1+ENDの関係から、END>=DATAの場合には、最上位ビットから桁溢れが生じ(CY=1)、END<DATAの場合には桁溢れが生じない(CY=0)。   Next, the operation of the right addition unit ADD1 will be described. For the end address END stored in the maximum value register MAX, the ROM address value DATA obtained from the address bus is subjected to a 2's complement operation and then added to the end address END in the other adder ADD1. Therefore, from the relationship of FFFFH−DATA + 1 + END, when END> = DATA, overflow occurs from the most significant bit (CY = 1), and when END <DATA, overflow does not occur (CY = 0).

ここで、終了アドレスENDは、制御プログラムが格納されている最終番地であるので、桁溢れが生じないEND<DATAの場合(CY=0)には、本来存在しないアドレスに対する不正アクセスであることになる。   Here, since the end address END is the last address where the control program is stored, if END <DATA (CY = 0) where no overflow occurs (CY = 0), it means that it is an illegal access to an address that does not exist originally. Become.

このようにして2つの加算部ADD1から出力される桁溢れ信号CYは、ANDゲート(負論理ORゲート)GTに供給されるので、何れか一方の桁溢れ信号CYがCY=0となる異常時(illegal memory access)には異常信号ERがLレベルとなる。   Since the overflow signal CY output from the two adders ADD1 is supplied to the AND gate (negative logic OR gate) GT in this way, when one of the overflow signals CY becomes CY = 0 In (illegal memory access), the abnormal signal ER becomes L level.

続いて、RAM不正アクセス検出部51の動作について確認する。左側の加算部ADD1において、最小値レジスタMINに格納されている2の補数形式の開始アドレス(FFFFH−START+1)と、アドレスバスから取得されたアドレス値DATAとが16ビット加算されると、DATA>=STARTの場合には、最上位ビットから桁溢れが生じ(CY=1)、DATA<STARTの場合には桁溢れが生じない(CY=0)。   Subsequently, the operation of the RAM unauthorized access detection unit 51 is confirmed. When the addition unit ADD1 on the left side adds 16 bits of the start address (FFFFH-START + 1) in 2's complement format stored in the minimum value register MIN and the address value DATA acquired from the address bus, DATA> When = START, an overflow occurs from the most significant bit (CY = 1), and when DATA <START, no overflow occurs (CY = 0).

RAM不正アクセス検出部51では、開始アドレスSTARTは、使用禁止設定されたRAMの開始番地であるので、桁溢れが生じるDATA>=STARTの場合(CY=1)には、禁止アドレス領域に対する不正アクセスである可能性がある。   In the RAM unauthorized access detection unit 51, since the start address START is the start address of the RAM that is prohibited from being used, if DATA> = START (CY = 1) in which overflow occurs, unauthorized access to the prohibited address area is performed. There is a possibility.

右側の加算部ADD1についても、RAM不正アクセス検出部51の動作は、ROM不正アクセス検出部50の場合と同様であり、アドレスバスから取得されたアドレス値DATAが2の補数演算された後、終了アドレスENDと加算される。そのため、FFFFH−DATA+1+ENDの関係から、END>=DATAの場合には、最上位ビットから桁溢れが生じ(CY=1)、END<DATAの場合には桁溢れが生じない(CY=0)。   For the right adder ADD1, the operation of the RAM unauthorized access detector 51 is the same as that of the ROM unauthorized access detector 50. After the address value DATA obtained from the address bus is complemented by 2, the operation is terminated. It is added to the address END. Therefore, from the relationship of FFFFH−DATA + 1 + END, when END> = DATA, overflow occurs from the most significant bit (CY = 1), and when END <DATA, overflow does not occur (CY = 0).

ここで、終了アドレスENDは、使用禁止されたRAMの最終番地であるので、桁溢れが生じるEND>=DATAの場合(CY=1)には、本来存在しないアドレスに対する不正アクセスである可能性がある。   Here, since the end address END is the final address of the RAM whose use is prohibited, if END> = DATA (CY = 1) in which overflow occurs, there is a possibility that it is an illegal access to an address that does not originally exist. is there.

このようにして2つの加算部ADD1から出力される桁溢れ信号CYは、NANDゲートGTに供給されるので、2つの桁溢れ信号CYが共にCY=1となる場合、つまり、DATA>=STARTであって、且つ、END>=DATAとなる場合には、使用が禁止された範囲(START〜END)のRAM領域が不正にアクセスされたことになり、NANDゲートGTの出力である異常信号ERがLレベルとなる。   Since the overflow signal CY output from the two adders ADD1 is supplied to the NAND gate GT in this way, when both of the two overflow signals CY are CY = 1, that is, when DATA> = START. If END> = DATA, the RAM area in the prohibited range (START to END) is illegally accessed, and the abnormal signal ER, which is the output of the NAND gate GT, is output. L level.

IO不正アクセス検出部52の動作は、各演算が8ビット長であることを除けば、上記したRAM不正アクセス検出部51の動作と同じである。すなわち、使用が禁止されたポート番号の開始番号STARTと終了番号ENDに対して、DATA>=STARTであって、且つ、END>=DATAとなる場合には、不正アクセスであるとして異常信号ERがLレベルとなる。   The operation of the IO unauthorized access detection unit 52 is the same as that of the RAM unauthorized access detection unit 51 described above except that each operation is 8 bits long. In other words, if DATA> = START and END> = DATA with respect to the start number START and end number END of the port number prohibited to be used, the abnormal signal ER is assumed to be unauthorized access. L level.

続いて、図4に示すCPUによって実行される主制御部21の遊技動作を説明する。図7〜図8は、主制御部21の制御プログラムを示すフローチャートであり、電源電圧の復旧や投入に基づいて起動されるシステムリセット処理(図7)と、所定時間毎(2mS)に起動されるマスク可能なタイマ割込み処理(図8(a))とで構成されている。   Next, the gaming operation of the main control unit 21 executed by the CPU shown in FIG. 4 will be described. FIGS. 7 to 8 are flowcharts showing a control program of the main control unit 21, which is started at a system reset process (FIG. 7) that is started based on the restoration or turn-on of the power supply voltage and every predetermined time (2 mS). And maskable timer interrupt processing (FIG. 8A).

以下、図7を参照しつつ、システムリセット処理プログラム(メイン処理)について説明する。メイン処理が開始されるのは、停電状態からの復旧時のように初期化スイッチSWがOFF状態で電源がON状態になる場合と、遊技ホールの開店時のように、初期化スイッチSWがON操作されて電源がON状態になる場合とがある。なお、異常リセット回路ABNやウォッチドッグタイマWDTが起動してCPUが強制的にリセットされる場合もある。   Hereinafter, the system reset processing program (main processing) will be described with reference to FIG. The main process is started when the initialization switch SW is turned off and the power is turned on, such as when recovering from a power failure, and when the game hall is opened, the initialization switch SW is turned on. There is a case where the power source is turned on by being operated. The abnormal reset circuit ABN and the watchdog timer WDT may be activated to forcibly reset the CPU.

何れの場合でも、Z80CPUは、最初に、CPU内部のスタックポインタSPの値を、スタック領域の最終アドレスに対応して初期設定する(ST1)。   In any case, the Z80 CPU first initializes the value of the stack pointer SP in the CPU corresponding to the final address of the stack area (ST1).

次に、ワンチップマイコンの異常リセット回路ABNのレジスタを含んだ各種レジスタの値を初期設定する(ST2)。具体的には、主制御部のROMの使用開始アドレスSTARTと、使用終了アドレスENDが、ROM不正アクセス検出部50の最小値レジスタMINと最大値レジスタMAXに格納される。なお、各アドレス値は16ビット長であるので、チップセレクト信号CS1〜CS4に同期して8ビット毎に記憶される。   Next, the values of various registers including the register of the abnormal reset circuit ABN of the one-chip microcomputer are initialized (ST2). Specifically, the ROM use start address START and the use end address END of the main control unit are stored in the minimum value register MIN and the maximum value register MAX of the ROM unauthorized access detection unit 50. Since each address value is 16 bits long, it is stored every 8 bits in synchronization with the chip select signals CS1 to CS4.

また、主制御部のRAMのうち、使用が禁止されるRAM領域の開始アドレスSTARTと終了アドレスENDが、RAM不正アクセス検出部51の最小値レジスタMINと最大値レジスタMAXに格納される。同様に、使用が禁止されるIOポートの開始ポート番号STARTと終了ポート番号ENDが、IO不正アクセス検出部52の最小値レジスタMINと最大値レジスタMAXに格納される。   In addition, the start address START and the end address END of the RAM area that is prohibited from being used in the RAM of the main control unit are stored in the minimum value register MIN and the maximum value register MAX of the RAM unauthorized access detection unit 51. Similarly, the start port number START and the end port number END of the IO port whose use is prohibited are stored in the minimum value register MIN and the maximum value register MAX of the IO unauthorized access detection unit 52.

なお、上記した最小値レジスタMINや最大値レジスタMAXについて、RAMやIOポートに使用禁止領域を設けない場合には、初期設定処理を省略しても良い。それは、最小値レジスタMINや最大値レジスタMAXは、電源投入時に電源リセットされるので、アドレスバスからの取得データDATAに対して、DATA+0の加算演算において、桁溢れ信号CYが必ずCY=0となり、異常信号ERが常にHレベルに維持されるからである。   Note that the initial setting process may be omitted for the above-described minimum value register MIN and maximum value register MAX when the RAM or IO port is not provided with a prohibited area. The minimum value register MIN and the maximum value register MAX are reset when the power is turned on. Therefore, the overflow signal CY is always CY = 0 in the addition operation of DATA + 0 with respect to the acquired data DATA from the address bus. This is because the abnormal signal ER is always maintained at the H level.

そこで、このような動作を活用して、遊技制御動作中に、最小値レジスタMIN及び最大値レジスタMAXに一時的にゼロデータを格納することで、使用禁止領域を一時的に使用可能状態に変更することもできる。逆に、最小値レジスタMIN及び最大値レジスタMAXを電源投入状態にして遊技制御動作を開始し、適当なタイミングで必要なアドレス値を各レジスタに格納することで、一時的な使用禁止領域を生成することもできる。なお、一時的な使用禁止領域を使用許可状態に戻したい場合には、各レジスタにゼロデータを格納すれば良い。   Therefore, by utilizing such an operation, the use prohibition area is temporarily changed to a usable state by temporarily storing zero data in the minimum value register MIN and the maximum value register MAX during the game control operation. You can also Conversely, the minimum value register MIN and the maximum value register MAX are turned on to start the game control operation, and necessary address values are stored in the respective registers at appropriate timings to generate temporary use prohibition areas. You can also If it is desired to return the temporary use-prohibited area to the use-permitted state, zero data may be stored in each register.

何れにしても、ステップST2の初期設定処理が終われば、リセット制御信号CTLをLレベルに設定することで、RAM不正アクセス検出部51やIOポートの不正アクセス検出部52からの異常信号ERを出力禁止状態に設定する(ST3)。   In any case, when the initial setting process in step ST2 is completed, the abnormal signal ER is output from the RAM unauthorized access detector 51 or the unauthorized access detector 52 of the IO port by setting the reset control signal CTL to the L level. The prohibited state is set (ST3).

図5に示す通り、RAM不正アクセス検出部51やIOポート不正アクセス検出部52からの異常信号ERは、NANDゲートG4を経由してNANDゲートG5に供給されている。そして、NANDゲートG5の入力端子にはリセット制御信号CTLが供給されている。   As shown in FIG. 5, the abnormal signal ER from the RAM unauthorized access detector 51 and the IO port unauthorized access detector 52 is supplied to the NAND gate G5 via the NAND gate G4. The reset control signal CTL is supplied to the input terminal of the NAND gate G5.

そのため、ステップST3の処理によって、リセット制御信号CTLがLレベルに設定された後は、NANDゲートG5の出力は必ずHレベルとなるので、RAM不正アクセス検出部51やIOポート不正アクセス検出部52からの異常信号ERは、NANDゲートG5で遮断されて、CPUのリセット端子に供給されることはない。もっとも、ROM不正アクセス検出部50からの異常信号ERは、NANDゲートG5を経由しないので、不正アクセス時には、CPUが強制的にリセットされる。   Therefore, after the reset control signal CTL is set to the L level by the process of step ST3, the output of the NAND gate G5 is always at the H level, so that the RAM unauthorized access detecting unit 51 and the IO port unauthorized access detecting unit 52 The abnormal signal ER is blocked by the NAND gate G5 and is not supplied to the reset terminal of the CPU. However, since the abnormal signal ER from the ROM unauthorized access detection unit 50 does not pass through the NAND gate G5, the CPU is forcibly reset at the time of unauthorized access.

本実施例において、ステップST3の処理を設けるのは、RAMに使用禁止領域(START〜END)を設けるものの、RAMクリア処理(ST10)では、全てのRAM領域を一気にクリアするためである。また、使用禁止領域も含めクリア処理をすることで、RAMの使用禁止領域を一時的に使用する場合にも支障が生じないようにしている。   In the present embodiment, the process of step ST3 is provided in order to clear all the RAM areas at once in the RAM clear process (ST10), although the use prohibited areas (START to END) are provided in the RAM. In addition, by performing the clear process including the use-prohibited area, no trouble is caused even when the use-prohibited area of the RAM is temporarily used.

上記のようなステップST3の処理が終われば、次に、書込み禁止信号INHをLレベルからHレベルに変更して、RAMを書込み可能状態に設定する(ST4)。図4に示す通り、本実施例では、CPUのコントロールバスから出力されるWRバー信号(図6参照)は、NANDゲートGT0を経由してRAMに供給されている。そして、NANDゲートGT0には、書込み禁止信号INHが供給されているので、ステップST4の処理によって、書込み禁止信号INHがHレベルに設定することで、RAMへの書込み動作(Write)が許可される。なお、この実施例では、RAMからの読み込み動作(Read)は、書込み禁止信号INHのレベルに拘らず、常に許可されている。   When the processing in step ST3 as described above is completed, the write inhibit signal INH is changed from the L level to the H level, and the RAM is set in a writable state (ST4). As shown in FIG. 4, in this embodiment, the WR bar signal (see FIG. 6) output from the control bus of the CPU is supplied to the RAM via the NAND gate GT0. Since the write inhibit signal INH is supplied to the NAND gate GT0, the write operation (Write) to the RAM is permitted by setting the write inhibit signal INH to the H level by the process of step ST4. . In this embodiment, the read operation (Read) from the RAM is always permitted regardless of the level of the write inhibit signal INH.

以上のようなステップST4の処理が終われば、入力ポートからRAMクリア信号DELを取得する(ST5)。RAMクリア信号DELとは、ワンチップマイコン21Aの内蔵RAMの全領域を初期設定するか否かを決定する信号であって、係員が操作する初期化スイッチSWのON/OFF状態に対応した値を有している。   When the processing in step ST4 as described above is completed, a RAM clear signal DEL is acquired from the input port (ST5). The RAM clear signal DEL is a signal for determining whether or not to initialize all areas of the built-in RAM of the one-chip microcomputer 21A, and has a value corresponding to the ON / OFF state of the initialization switch SW operated by the staff. Have.

次にRAMクリア信号のレベルが判定されるが(ST6)、RAMクリア信号がON状態であったと仮定すると、内蔵RAMの全領域がゼロクリアされる(ST10)。したがって、図8(b)のステップST37の処理でセットされたバックアップフラグBFLの値は、他のチェックサム値などと共にゼロとなる。なお、このRAMクリア処理(ST10)は、リセット制御信号CTLをLレベルに設定した状態で実行されるので、使用禁止領域をアクセスしても、CPUが強制リセットされるおそれはない。   Next, the level of the RAM clear signal is determined (ST6). If it is assumed that the RAM clear signal is in the ON state, the entire area of the built-in RAM is cleared to zero (ST10). Therefore, the value of the backup flag BFL set in the process of step ST37 in FIG. 8B becomes zero together with other checksum values. Since the RAM clear process (ST10) is executed in a state where the reset control signal CTL is set to the L level, there is no possibility that the CPU is forcibly reset even if the use prohibited area is accessed.

次に、RAM領域がゼロクリアされたことを報知するための電源投入コマンドを出力した後(ST11)、Lレベルに初期設定されたリセット制御信号CTLを、Hレベルに戻すことで、RAM不正アクセス検出部51やIOポートの不正アクセス検出部52からの異常信号ERを出力可能状態に設定する(ST12)。この結果、その後は、使用が禁止されているRAM領域や、IOポートがアクセスされると、Lレベルに遷移した異常信号ERに基づいてCPUが強制的にリセットされることになる。   Next, after outputting a power-on command for notifying that the RAM area is cleared to zero (ST11), the reset control signal CTL initialized to the L level is returned to the H level, thereby detecting the unauthorized access to the RAM. The abnormal signal ER from the unit 51 or the unauthorized access detection unit 52 of the IO port is set to an output enabled state (ST12). As a result, thereafter, when the RAM area or the IO port that is prohibited from being used is accessed, the CPU is forcibly reset based on the abnormal signal ER that has transitioned to the L level.

続いて、タイマ割込み動作(図8(a))を起動する割込み信号INTを出力するCTCを初期設定する(ST13)。そして、CPUを割込み禁止状態にセットした状態で(ST14)、各種のカウンタついて更新処理を実行し(ST15)、その後、CPUを割込み許可状態に戻してステップST14に戻る。なお、ステップST14で更新されるカウンタには、外れ図柄用カウンタが含まれているが、この外れ図柄用カウンタは、図8(a)の特別図柄処理(ST27)における大当り抽選処理の結果が外れ状態となった場合に、どのような態様の外れゲームを演出するかを決定するためのカウンタである。   Subsequently, the CTC that outputs the interrupt signal INT for starting the timer interrupt operation (FIG. 8A) is initialized (ST13). Then, with the CPU set to the interrupt disabled state (ST14), update processing is executed for various counters (ST15), and then the CPU is returned to the interrupt enabled state and the process returns to step ST14. Note that the counter updated in step ST14 includes an out symbol counter, but this out symbol counter is out of the result of the big hit lottery process in the special symbol processing (ST27) of FIG. 8A. It is a counter for deciding what kind of out-of-game to produce when it becomes a state.

さて、ステップST6の判定処理に戻って説明すると、CPUがウォッチドッグタイマWDTなどによって強制的にリセットされた場合や、停電状態からの復旧時には、RAMクリア信号はOFF状態である。そして、このような場合には、ステップST6の判定に続いて、バックアップフラグBFLの内容が判定される(ST7)。バックアップフラグBFLとは、図8(b)の電源監視処理の動作が実行されたことを示すデータであり、この実施例では、電源遮断時のステップST37の処理でバックアップフラグBFLが5AHとされ、電源復帰後のステップST33の処理でゼロクリアされる。   Returning to the determination process in step ST6, the RAM clear signal is in the OFF state when the CPU is forcibly reset by the watchdog timer WDT or the like or when the CPU recovers from the power failure state. In such a case, the content of the backup flag BFL is determined following the determination in step ST6 (ST7). The backup flag BFL is data indicating that the operation of the power supply monitoring process of FIG. 8B has been executed. In this embodiment, the backup flag BFL is set to 5AH in the process of step ST37 when the power is turned off. It is cleared to zero in the process of step ST33 after the power is restored.

電源投入時や、停電状態からの復旧時である場合には、バックアップフラグBFLの内容が5AHの筈である。但し、何らかの理由でプログラムが暴走状態となり、ウォッチドッグタイマによるCPUリセット動作が生じたような場合には、バックアップフラグBFL=00Hである。したがって、BFL≠5AH(通常はBFL=00H)となる場合には、ステップST7からステップST10の処理に移行させて遊技機の動作を初期状態に戻す。   When the power is turned on or when recovering from a power failure, the content of the backup flag BFL is 5AH. However, if the program goes into a runaway state for some reason and a CPU reset operation is caused by the watchdog timer, the backup flag BFL = 00H. Therefore, when BFL ≠ 5AH (normally BFL = 00H), the process proceeds from step ST7 to step ST10 to return the operation of the gaming machine to the initial state.

一方、バックアップフラグBFL=5AHであれば、チェックサム値を算出するためのチェックサム演算を実行する(ST8)。ここで、チェックサム演算とは、内蔵RAMのワーク領域を対象とする8ビット加算演算である。そして、チェックサム値が算出されたら、この演算結果を、RAMのSUM番地の記憶値と比較をする(ST9)。   On the other hand, if the backup flag BFL = 5AH, a checksum operation for calculating a checksum value is executed (ST8). Here, the checksum operation is an 8-bit addition operation for the work area of the built-in RAM. When the checksum value is calculated, the calculation result is compared with the stored value at the SUM address in the RAM (ST9).

SUM番地には、電圧降下時に実行される電源監視処理(図8(b))において、同じチェックサム演算によるチェックサム値が記憶されている(ST38)。そして、記憶された演算結果は、内蔵RAMの他のデータと共に、バックアップ電源によって維持されている。したがって、本来は、ステップST9の判定によって両者が一致する筈である。   In the SUM address, the checksum value by the same checksum calculation is stored in the power supply monitoring process (FIG. 8B) executed when the voltage drops (ST38). The stored calculation results are maintained by a backup power source together with other data in the built-in RAM. Therefore, the two should be matched by the determination in step ST9.

しかし、電源降下時にチェックサム演算(ST38)の実行できなかった場合や、実行できても、その後、メイン処理のチェックサム演算(ST8)の実行時までの間に、ワーク領域のデータが破損している場合もあり、このような場合にはステップST9の判定結果は不一致となる。判定結果の不一致によりデータ破損が検出された場合には、ステップST10の処理に移行させてRAMクリア処理を実行し、遊技機の動作を初期状態に戻す。一方、ステップST9の判定において、チェックサム演算(ST8)によるチェックサム値と、SUM番地の記憶値とが一致する場合には、ステップST12の処理に移行する。   However, if the checksum calculation (ST38) cannot be executed when the power is turned off, or if it can be executed, the data in the work area will be damaged until the checksum calculation (ST8) of the main process is executed. In such a case, the determination result in step ST9 is inconsistent. If data corruption is detected due to a discrepancy between the determination results, the process proceeds to step ST10, RAM clear processing is executed, and the operation of the gaming machine is returned to the initial state. On the other hand, if it is determined in step ST9 that the checksum value obtained by the checksum calculation (ST8) matches the stored value at the SUM address, the process proceeds to step ST12.

続いて、上記したメイン処理を中断させて、2mS毎に開始されるタイマ割込み処理プログラム(図8(a))を説明する。タイマ割込みが生じると、CPUのレジスタを保存することなく、直ちに電源監視処理が実行される(ST20)。これは、タイマ割込み処理が起動されるタイミングが、ステップST16の直後に固定されているためである。   Next, a timer interrupt processing program (FIG. 8A) that is started every 2 mS while interrupting the main processing described above will be described. When the timer interrupt occurs, the power supply monitoring process is immediately executed without saving the CPU register (ST20). This is because the timing at which the timer interrupt process is started is fixed immediately after step ST16.

電源監視処理(ST20)では、電源基板20から供給されている電圧降下信号のレベルを判定するが、具体的な処理内容については後述する。電源監視処理(ST20)が終わると、普通図柄処理(ST26)における抽選動作で使用される当り用カウンタRGの値が更新される(ST21)。なお、特別図柄処理(ST27)における抽選動作で使用される大当り判定用の乱数値RNDについては、図5の乱数生成回路GNRで生成されるので、ステップST21の処理で更新されることはない。   In the power supply monitoring process (ST20), the level of the voltage drop signal supplied from the power supply board 20 is determined. The specific processing content will be described later. When the power monitoring process (ST20) ends, the value of the winning counter RG used in the lottery operation in the normal symbol process (ST26) is updated (ST21). Note that the random value RND for jackpot determination used in the lottery operation in the special symbol process (ST27) is generated by the random number generation circuit GNR in FIG. 5, and is not updated in the process of step ST21.

当り乱数更新処理(ST21)が終わると、各遊技動作の時間を管理しているタイマについて、タイマ減算処理が行なわれる(ST22)。ここで減算されるタイマは、主として、電動チューリップや大入賞口の開放時間やその他の遊技演出時間を管理するために使用される。   When the winning random number update process (ST21) ends, a timer subtraction process is performed for the timer that manages the time of each gaming operation (ST22). The timer to be subtracted here is mainly used for managing the opening time of the electric tulip and the special winning opening and other game effect times.

続いて、図柄始動口15や大入賞口16の入賞検出スイッチを含む各種スイッチ類のON/OFF信号が入力され、ワーク領域にON/OFF信号レベルや、その立上り状態が記憶される(ST23)。続いて、エラー管理処理が行われる(ST24)。エラー管理処理は、遊技球の補給が停止したり、遊技球が詰まっていないかなど、機器内部に異常が生じていないかの判定を含んでいる。   Subsequently, ON / OFF signals of various switches including the winning detection switch of the symbol start opening 15 and the big winning opening 16 are inputted, and the ON / OFF signal level and its rising state are stored in the work area (ST23). . Subsequently, an error management process is performed (ST24). The error management process includes a determination as to whether an abnormality has occurred inside the device, such as whether or not the supply of game balls has stopped or the game balls are clogged.

次に、払出制御部24から受けた賞球計数信号に基づく管理処理を実行した後(ST25)、普通図柄処理を行う(ST26)。普通図柄処理とは、電動チューリップなど、普通電動役物を作動させるか否かの判定を意味する。具体的には、ステップST23のスイッチ入力結果によって遊技球がゲートを通過していると判定された場合に、乱数更新処理(ST21)で更新された当り用カウンタRGを、当り当選値と対比して行われる。そして、対比結果が当選状態であれば当り中の動作モードに変更する。また、当り中となれば、電動チューリップなど、普通電動役物の作動に向けた処理を行う。   Next, after executing the management process based on the prize ball counting signal received from the payout control unit 24 (ST25), the normal symbol process is performed (ST26). The normal symbol processing means determination as to whether or not to operate an ordinary electric accessory such as an electric tulip. Specifically, when it is determined that the game ball has passed through the gate based on the switch input result in step ST23, the winning counter RG updated in the random number updating process (ST21) is compared with the winning winning value. Done. If the comparison result is a winning state, the operation mode is changed to the winning operation mode. In addition, if it is a hit, processing for the operation of a normal electric accessory such as an electric tulip is performed.

続いて、特別図柄処理を行う(ST27)。特別図柄処理とは、大入賞口16など特別電動役物を作動させるか否かの判定である。具体的には、入賞スイッチ信号SGが立上ったと判定される場合には、乱数生成回路GNRの乱数レジスタに格納されている乱数値RNDに使用して大当り抽選処理を実行する。そして、図示省略しているが、抽選結果が当選状態であれば大当り中の動作モードに変更する。また、大当り中となれば、大入賞口など種特別電動役物の作動に向けた処理を行う。   Subsequently, special symbol processing is performed (ST27). The special symbol process is a determination as to whether or not to operate a special electric accessory such as the special winning opening 16. Specifically, when it is determined that the winning switch signal SG has risen, the big hit lottery process is executed using the random number value RND stored in the random number register of the random number generation circuit GNR. Although not shown in the drawing, if the lottery result is a winning state, the operation mode is changed to a big hit operation mode. In addition, if it is a big hit, processing for the operation of special electric accessories such as a big prize opening is performed.

このような特別図柄処理(ST27)の後、主制御部21で管理するLEDについて点灯動作を進行させると共に(ST28)、電動チューリップや大入賞口などの開閉動作を実現するソレノイド駆動処理を実行した後(ST29)、CPUを割込み許可状態EIに戻してタイマ割込みを終える(ST30)。その結果、割込み処理ルーチンからメイン処理の無限ループ処理(図7)に戻り、ステップST15の処理が実行される。   After such special symbol processing (ST27), the lighting operation of the LEDs managed by the main control unit 21 is advanced (ST28), and the solenoid drive processing for realizing the opening / closing operation of the electric tulip, the big prize opening, etc. is executed. Later (ST29), the CPU is returned to the interrupt permission state EI and the timer interrupt is finished (ST30). As a result, the process returns from the interrupt process routine to the infinite loop process (FIG. 7) of the main process, and the process of step ST15 is executed.

続いて、図8(b)に示す電源監視処理(ST20)について説明する。電源監視処理(ST20)では、先ず、電源基板20から供給される電圧降下信号を、入力ポート(不図示)を通して取得し(ST31)、それが異常レベルでないか判定する(ST32)。そして、異常レベルでない場合には、異常回数カウンタとバックアップフラグBFLをゼロクリアして処理を終える(ST33)。   Next, the power supply monitoring process (ST20) shown in FIG. 8B will be described. In the power supply monitoring process (ST20), first, a voltage drop signal supplied from the power supply board 20 is acquired through an input port (not shown) (ST31), and it is determined whether it is an abnormal level (ST32). If it is not an abnormal level, the abnormal number counter and the backup flag BFL are cleared to zero and the process is terminated (ST33).

一方、電圧降下信号が異常レベルである場合には、異常回数カウンタをインクリメント(+1)して(ST34)、計数結果が上限値MAXを超えていないかを判定する(ST35)。これは、入力ポートからの取得データが、ノイズなどの影響でビット化けしている可能性があることを考慮したものであり、所定回数(例えば、上限値MAX=2)連続して異常レベルを維持する場合には、交流電源が現に遮断されたと判定する。   On the other hand, if the voltage drop signal is at an abnormal level, the abnormal number counter is incremented (+1) (ST34), and it is determined whether the counting result exceeds the upper limit value MAX (ST35). This is because the data acquired from the input port may be garbled due to the influence of noise or the like, and the abnormal level is continuously set for a predetermined number of times (for example, upper limit MAX = 2). In the case of maintaining, it is determined that the AC power source is actually shut off.

このように、本実施例では、電源遮断時にも、直ぐには以降のバックアップ処理を開始せず、動作開始のタイミングが、MAX×2mSだけ遅れる。しかし、(1)電源降下信号は、直流電源電圧の降下ではなく、交流直流電圧の降下を検出すること、(2)直流電源電圧は、大容量のコンデンサによって交流電源の遮断後もしばらくは維持されること、(3)電源監視処理が高速度(2mS毎)で繰り返されること、(4)バックアップ処理が極めてシンプルであり、迅速に終わることから、実質的には何の弊害もない。   As described above, in this embodiment, the subsequent backup processing is not started immediately even when the power is turned off, and the operation start timing is delayed by MAX × 2 mS. However, (1) The power supply drop signal is not a drop in the DC power supply voltage, but a drop in the AC DC voltage is detected. (2) The DC power supply voltage is maintained for a while after the AC power supply is shut off by a large-capacitance capacitor. (3) The power supply monitoring process is repeated at a high speed (every 2 ms), and (4) the backup process is extremely simple and finishes quickly, so there is virtually no adverse effect.

ところで、ステップST35の判定の結果、異常回数カウンタの計数値が上限値MAXに一致した場合には、異常回数カウンタをゼロクリアした後(ST36)、バックアップフラグBFLに5AHを設定する(ST37)。次に、メインルーチンのステップST7の場合と、全く同じ演算を、全く同じ作業領域(ワークエリア)に対して実行し、その演算結果を記憶する(ST38)。なお、実行される演算は、典型的には8ビット加算演算である。   By the way, as a result of the determination in step ST35, if the count value of the abnormal number counter coincides with the upper limit value MAX, the abnormal number counter is cleared to zero (ST36), and then 5AH is set to the backup flag BFL (ST37). Next, the same calculation as in step ST7 of the main routine is executed for the same work area (work area), and the calculation result is stored (ST38). The operation to be executed is typically an 8-bit addition operation.

そして、その後は、書込み禁止信号INHをLレベルに設定してRAMへの書込みを禁止状態に設定すると共に、リセット制御信号CTLをLレベルに設定する(ST39)。そして、全ての出力ポートの出力データをクリアする(ST40)。その結果、同種の電源監視処理を主制御部21より遅れて開始する払出制御部24に対して、不合理なデータが送信させることが防止される。   After that, the write inhibit signal INH is set to the L level to set the write to the RAM in a prohibited state, and the reset control signal CTL is set to the L level (ST39). Then, the output data of all output ports is cleared (ST40). As a result, unreasonable data is prevented from being transmitted to the payout control unit 24 that starts the same type of power supply monitoring process later than the main control unit 21.

ここで、リセット制御信号CTLをLレベルに設定して、RAMの不正アクセスやIOポートの不正アクセスによるCPUリセットを防止するのは、電源電圧の降下に伴い、異常動作が生じる可能性があり、これを未然防止するためである。すなわち、書込み禁止信号INHをLレベルに設定しても、メモリへの書込み(Write)が禁止されるだけで、メモリからの読出(Read)は可能であるので、もし、リセット制御信号CTLをHレベルに維持すると、電源電圧の降下に伴い、RAMの不正アドレスの読出し動作によってCPUリセットが生じる可能性があり、その場合には、ステップST4以降の処理によって、RAMが異常に書き換えられてしまうことになるからである。   Here, the reset control signal CTL is set to the L level to prevent the CPU reset due to the unauthorized access of the RAM or the unauthorized access of the IO port, which may cause an abnormal operation as the power supply voltage decreases. This is to prevent this. That is, even if the write inhibit signal INH is set to the L level, only the write to the memory (Write) is prohibited and the read from the memory is possible. Therefore, if the reset control signal CTL is set to H If the level is maintained, a CPU reset may occur due to a read operation of an illegal address in the RAM as the power supply voltage drops. In this case, the RAM may be abnormally rewritten by the processing after step ST4. Because it becomes.

以上のバックアップ処理が終われば、CTCに対する設定処理によって割込み信号INTの生成を禁止すると共に、無限ループ処理を繰り返しつつ直流電源電圧が降下するのを待つ(ST41)。なお、このタイミングでは、CPUは、もともと割込み禁止状態であるが(ST30参照)、電源電圧の降下による誤動作の可能性を、可能な限り排除する趣旨から、本実施例では、CTCからの割込み信号INTの出力も禁止している。   When the above backup process is completed, the generation of the interrupt signal INT is prohibited by the setting process for the CTC, and the DC power supply voltage is lowered while repeating the infinite loop process (ST41). At this timing, the CPU is originally in an interrupt disabled state (see ST30). However, in this embodiment, an interrupt signal from the CTC is used to eliminate as much as possible the possibility of malfunction due to a drop in power supply voltage. INT output is also prohibited.

以上、本発明の実施例を具体的に説明したが、具体的な記載内容は何ら本発明を限定するものではなく、各種の改変が可能である。例えば、この実施例では、ハードウェア構成の簡略化のために、最小値レジスタMINに2の補数形式に変換された開始アドレスが格納されるが、CPUの処理を軽減する意味では、最小値レジスタの前段に補数演算部CMPを配置しても良いのは勿論である。   Although the embodiments of the present invention have been specifically described above, the specific description content is not intended to limit the present invention, and various modifications can be made. For example, in this embodiment, in order to simplify the hardware configuration, the start address converted into the two's complement format is stored in the minimum value register MIN. However, in order to reduce the processing of the CPU, the minimum value register Of course, the complement calculation unit CMP may be arranged in the preceding stage.

また、実施例の異常リセット回路ABNには、IOポート不正アクセス部52が設けられているが、これを省略しても良い。特に、ポートマップドIO方式ではなく、メモリマップドIO方式でポート設計をする場合には、RAMポート不正アクセス部51だけで足りることになる。   Further, the abnormal reset circuit ABN of the embodiment is provided with the IO port unauthorized access unit 52, but this may be omitted. In particular, when the port design is performed using the memory mapped IO method instead of the port mapped IO method, the RAM port unauthorized access unit 51 is sufficient.

また、実施例では、各不正アクセス部50〜52に、最小値レジスタMINと最大値レジスタMAXを各一個配置する構成を説明したが、各レジスタMIN,MAXは必要に応じて適宜に増加される。   In the embodiment, the configuration in which one each of the minimum value register MIN and the maximum value register MAX is arranged in each of the unauthorized access units 50 to 52 has been described. However, the registers MIN and MAX are appropriately increased as necessary. .

ST2 禁止設定手段
CTL アクセス制御手段
51 第1の異常リセット手段
50 第2の異常リセット手段
INH 書込み制御手段
GM 遊技機
21 主制御部
ST2 Prohibition setting means CTL access control means 51 First abnormality reset means 50 Second abnormality reset means INH Write control means GM gaming machine 21 Main control unit

上記の目的を達成するため、本発明は、所定の遊技動作の発生を示す検出信号に起因して抽選処理を実行し、遊技者に有利な遊技状態を発生させるか否かを決定する主制御部を有する遊技機であって、前記主制御部は、制御プログラムやデータを不揮発的に記憶するROMと、作業データを揮発的に記憶するRAMと、ROMの制御プログラムに基づいて動作するCPUと、を内蔵するワンチップマイコンを有して構成されると共に、開始アドレスと終了アドレスを設定して、RAMのアクセス禁止領域を設定可能な禁止設定手段と、RAMのアクセス禁止領域へのアクセスを許可状態又は禁止状態に制御可能なアクセス制御手段と、前記アクセス制御手段によってアクセスが禁止状態に制御されている状態においてRAMの禁止領域にアクセスされたことを検出してCPUを強制リセットする異常リセット手段と、RAMへのデータ書込み動作を画一的に禁止状態又は許可状態に制御可能な書込み制御手段と、を有して構成され、前記書込み制御手段は、RAMからのデータ読出し動作を許可した状態で、データ書込み動作を画一的に禁止状態に制御しているIn order to achieve the above-described object, the present invention executes main lottery processing based on a detection signal indicating the occurrence of a predetermined game action, and determines whether or not to generate a game state advantageous to the player. The main control unit includes a ROM that stores a control program and data in a nonvolatile manner, a RAM that stores work data in a volatile manner, and a CPU that operates based on the control program in the ROM. And a one-chip microcomputer with built-in, and a prohibition setting means for setting a RAM access prohibition area by setting a start address and an end address, and permitting access to the RAM access prohibition area state or an access control means capable of controlling the disabled state, Accession the forbidden region of the RAM in a state in which the access by the access control means is controlled to prohibit state An abnormal reset means for forcibly resetting the CPU by detecting that it has been accessed, and a write control means capable of uniformly controlling the data write operation to the RAM to a prohibited state or a permitted state, The write control means uniformly controls the data write operation to the prohibited state while permitting the data read operation from the RAM .

禁止設定手段は、RAMのアクセス禁止領域を設定することができ、また、アクセス制御手段は、アクセス禁止領域へのアクセスを許可状態又は禁止状態に制御できるので、機器設計や制御動作の自由度が高く、その結果として遊技制御を最適化することができる。 The prohibition setting means can set the access prohibition area of the RAM , and the access control means can control the access to the access prohibition area to the permission state or the prohibition state. As a result, game control can be optimized.

また、書込み制御手段は、RAMからのデータ読出し動作を許可した状態で、データ書込み動作を画一的に禁止状態に制御するので、RAMの破壊を防止しつつ、制限された一定の制御動作を継続することができる。In addition, the write control means uniformly controls the data write operation in a state in which the data read operation from the RAM is permitted. Therefore, the write control unit performs the limited constant control operation while preventing the RAM from being destroyed. Can continue.

上記した通り、本発明によれば、遊技機の動作状態に対応して違法対策を変更することができ、複数機種の遊技機についてメモリ回路のハードウェア設計を画一化することもできる。 As described above, according to the present invention, in correspondence with the operation state of the gaming machine can change the illegal measures, it is also possible to standardize the hardware design of the memory circuit for a plurality of models of the gaming machine.

Claims (8)

所定の遊技動作の発生を示す検出信号に起因して抽選処理を実行し、遊技者に有利な遊技状態を発生させるか否かを決定する主制御部を有する遊技機であって、
前記主制御部は、制御プログラムやデータを不揮発的に記憶するROMと、作業データを揮発的に記憶するRAMと、ROMの制御プログラムに基づいて動作するCPUと、を内蔵するワンチップマイコンを有して構成されると共に、
任意のタイミングで開始アドレスと終了アドレスを設定して、RAMのアクセス禁止領域を設定可能な禁止設定手段と、
アクセス禁止領域へのアクセスを許可状態又は禁止状態に制御可能なアクセス制御手段と、
アクセス制御手段によってアクセスが禁止状態に制御されている状態においてRAMの禁止領域にアクセスされたことを検出してCPUを強制リセットする第1の異常リセット手段と、
ROMの使用領域以外がアクセスされことを検出して、CPUを強制リセットする第2の異常リセット手段と、
RAMへのデータ書込み動作を画一的に禁止状態又は許可状態に制御可能な書込み制御手段と、
を有して構成されていることを特徴とする遊技機。
A gaming machine having a main control unit that executes a lottery process due to a detection signal indicating the occurrence of a predetermined gaming operation and determines whether or not to generate a gaming state advantageous to the player,
The main control unit has a one-chip microcomputer including a ROM that stores a control program and data in a nonvolatile manner, a RAM that stores work data in a volatile manner, and a CPU that operates based on the control program in the ROM. And configured as
A prohibition setting means for setting a start address and an end address at an arbitrary timing and setting a RAM access prohibition area;
Access control means capable of controlling access to the access prohibited area to a permitted state or a prohibited state;
First anomaly reset means for forcibly resetting the CPU upon detecting access to the prohibited area of the RAM in a state where the access is controlled to be prohibited by the access control means;
A second abnormal reset means for forcibly resetting the CPU by detecting that an area other than the ROM use area is accessed;
Write control means capable of uniformly controlling the data writing operation to the RAM to a prohibited state or a permitted state;
A gaming machine characterized by having a structure.
アクセス制御手段は、第2の異常リセット手段が機能する状態で、RAMのアクセス禁止領域へのアクセスを、許可状態又は禁止状態に制御する請求項1に記載の遊技機。   The gaming machine according to claim 1, wherein the access control means controls the access to the access prohibited area of the RAM to a permitted state or a prohibited state in a state where the second abnormality reset means functions. 書込み制御手段は、RAMからのデータ読出し動作を許可した状態で、データ書込み動作を画一的に禁止状態に制御する請求項1又は2に記載の遊技機。   The gaming machine according to claim 1 or 2, wherein the write control means controls the data write operation uniformly to a prohibited state while permitting the data read operation from the RAM. 主制御部は、電源遮断後もRAMの記憶内容を維持するバックアップ手段を有して構成され、
電源遮断時には、RAMに所定データを記憶した後、書込み制御手段によってデータ書込み動作が画一的に禁止状態とされ、アクセス制御手段によってアクセス禁止領域へのアクセスが許可状態にされる請求項1〜3の何れかに記載の遊技機。
The main control unit is configured to have backup means for maintaining the stored contents of the RAM even after the power is shut off,
The data write operation is uniformly prohibited by the write control means after predetermined data is stored in the RAM when the power is shut off, and access to the access prohibited area is permitted by the access control means. 4. The gaming machine according to any one of 3.
主制御部は、電源遮断後もRAMの記憶内容を維持するバックアップ手段を有して構成され、
電源投入時には、ワンチップマイコン各部の初期設定処理を終えた後、書込み制御手段によってデータ書込み動作が画一的に許可状態とされ、アクセス制御手段によってアクセス禁止領域へのアクセスが許可状態にされる請求項1〜4の何れかに記載の遊技機。
The main control unit is configured to have backup means for maintaining the stored contents of the RAM even after the power is shut off,
When the power is turned on, after the initial setting process of each part of the one-chip microcomputer is completed, the data write operation is uniformly permitted by the write control means, and the access to the access prohibited area is permitted by the access control means. The gaming machine according to any one of claims 1 to 4.
データ書込み動作が画一的に許可状態とされ、アクセス禁止領域へのアクセスが許可状態とされた状態で、RAMの記憶内容が消去される請求項5に記載の遊技機。   6. The gaming machine according to claim 5, wherein the data stored in the RAM is erased in a state where the data write operation is uniformly permitted and access to the access prohibited area is permitted. ワンチップマイコンには、禁止設定されるRAM領域の開始アドレスを記憶可能な最小値レジスタと、禁止設定されるRAM領域の終了アドレスを記憶可能な最大値レジスタとが設けられ、
CPUは、最小値レジスタと最大値レジスタに適宜なアドレス値を設定するよう構成されている請求項1〜6の何れかに記載の遊技機。
The one-chip microcomputer is provided with a minimum value register capable of storing the start address of the prohibited RAM area and a maximum value register capable of storing the end address of the prohibited RAM area,
The gaming machine according to claim 1, wherein the CPU is configured to set appropriate address values in the minimum value register and the maximum value register.
書込み制御手段は、CPUからRAMに出力されるアドレスバス、及びコントロールバスのうち、コントロールバスで伝送される所定信号を制御する論理回路を有して構成されている請求項1〜7の何れかに記載の遊技機。   The write control means comprises a logic circuit for controlling a predetermined signal transmitted by the control bus among the address bus output from the CPU to the RAM and the control bus. The gaming machine described in 1.
JP2016237218A 2016-12-07 2016-12-07 Game machine Pending JP2017060855A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016237218A JP2017060855A (en) 2016-12-07 2016-12-07 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016237218A JP2017060855A (en) 2016-12-07 2016-12-07 Game machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015235767A Division JP6058776B2 (en) 2015-12-02 2015-12-02 Game machine

Publications (1)

Publication Number Publication Date
JP2017060855A true JP2017060855A (en) 2017-03-30

Family

ID=58430365

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016237218A Pending JP2017060855A (en) 2016-12-07 2016-12-07 Game machine

Country Status (1)

Country Link
JP (1) JP2017060855A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000126425A (en) * 1998-10-26 2000-05-09 Sophia Co Ltd Device and method of calculation for game
JP2002000885A (en) * 1993-05-20 2002-01-08 Le Tekku:Kk Microcomputer chip for game machine control
JP2008220703A (en) * 2007-03-14 2008-09-25 Daito Giken:Kk Game machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002000885A (en) * 1993-05-20 2002-01-08 Le Tekku:Kk Microcomputer chip for game machine control
JP2000126425A (en) * 1998-10-26 2000-05-09 Sophia Co Ltd Device and method of calculation for game
JP2008220703A (en) * 2007-03-14 2008-09-25 Daito Giken:Kk Game machine

Similar Documents

Publication Publication Date Title
JP4907608B2 (en) Game machine
JP5009247B2 (en) Game machine
JP4789862B2 (en) Game machine
JP5851125B2 (en) Game machine
JP5231603B2 (en) Game machine
JP4587997B2 (en) Game machine
JP5805741B2 (en) Game machine
JP5450766B1 (en) Game machine
JP6058776B2 (en) Game machine
JP5875998B2 (en) Game machine
JP2016026594A (en) Game machine
JP2017060855A (en) Game machine
JP5009425B2 (en) Game machine
JP5497843B2 (en) Game machine
JP5475024B2 (en) Game machine
JP5390680B1 (en) Game machine
JP6010091B2 (en) Game machine
JP6192392B2 (en) Game machine
JP5876090B2 (en) Game machine
JP5805740B2 (en) Game machine
JP5450767B1 (en) Game machine
JP2014087406A (en) Game machine
JP2014087405A (en) Game machine
JP6173388B2 (en) Game machine
JP2014087404A (en) Game machine

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171107

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20180501