JP2014230998A - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP2014230998A
JP2014230998A JP2014169737A JP2014169737A JP2014230998A JP 2014230998 A JP2014230998 A JP 2014230998A JP 2014169737 A JP2014169737 A JP 2014169737A JP 2014169737 A JP2014169737 A JP 2014169737A JP 2014230998 A JP2014230998 A JP 2014230998A
Authority
JP
Japan
Prior art keywords
random number
value
state
setting
game
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2014169737A
Other languages
Japanese (ja)
Other versions
JP5940610B2 (en
Inventor
小倉 敏男
Toshio Ogura
敏男 小倉
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.)
Sankyo Co Ltd
Original Assignee
Sankyo 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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=52124738&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JP2014230998(A) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Sankyo Co Ltd filed Critical Sankyo Co Ltd
Priority to JP2014169737A priority Critical patent/JP5940610B2/en
Publication of JP2014230998A publication Critical patent/JP2014230998A/en
Application granted granted Critical
Publication of JP5940610B2 publication Critical patent/JP5940610B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Slot Machines And Peripheral Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a game machine preventing control to a setting change state by a fraudulent act.SOLUTION: In an operation state where setting change operation is performed by a power switch and a setting key switch that can be operated when a front door is in an open state, the opening/closing state of the front door is determined (Sa27b). When it is determined that the front door is in an open state (YES for Sa27b), control is performed to a setting change state. Conversely, when it is determined that the front door is in a closed state, no control is performed to the setting change state (NO for Sa27b) and processing (Sa27c) for disabling progress of a game is performed.

Description

本発明は、たとえば、パチンコ機およびスロットマシンなどの遊技機に関する。詳しくは、遊技者に対する有利度を変更可能な遊技機に関する。   The present invention relates to gaming machines such as pachinko machines and slot machines. Specifically, the present invention relates to a gaming machine that can change the degree of advantage for a player.

従来から、このような遊技機の一例として、可変表示装置を含む各種装置やこれらの装置を制御するための制御回路が本体内部に組み込まれ、該本体の前面が前面扉により開閉自在とされており、当該前面扉を開放させて本体内部に組み込まれた特定の操作手段を操作することにより、設定変更状態に制御させ、当該設定変更状態において複数種類の設定値のうちからいずれかの設定値を選択して設定することができるものがあった。設定値は、入賞(大当り、中当り、小当り、ボーナス、小役、再遊技役など)の発生を許容する確率(当選確率)を定めるものである。このため、前面扉を開放させるための鍵は、遊技場の特定の店員しか保持所有しておらず、設定変更は、実質的に、遊技場の特定の店員(遊技場管理者)しか行なうことができないように構成されている。   Conventionally, as an example of such a gaming machine, various devices including a variable display device and a control circuit for controlling these devices are incorporated in the main body, and the front surface of the main body can be opened and closed by a front door. And, by opening the front door and operating a specific operation means built in the main body, it is controlled to the setting change state, and in the setting change state, one of the setting values from a plurality of types of setting values is set. There was something that could be selected and set. The set value determines the probability (winning probability) of allowing the occurrence of a winning (big hit, medium win, small win, bonus, small combination, re-playing combination, etc.). For this reason, the key for opening the front door is held and owned only by a specific store clerk of the game hall, and the setting change can be performed only by a specific store clerk (game room manager) of the game hall. It is configured not to be able to.

一方、遊技者の有利度は、設定されている設定値によって左右される。その結果、遊技者により設定変更状態に制御させて設定変更するといった不正行為が行なわれていた。たとえば、前面扉に穴を開けたり前面扉と本体との隙間から工具を挿入して、特定の操作手段を操作したり本体内部に組み込まれた回路を短絡させるなどして、特定の操作手段が操作されたときと同じ操作状態にすることにより、不正に設定変更する行為が発生していた。   On the other hand, the player's advantage depends on the set value. As a result, the player has performed an illegal act of changing the setting by controlling the setting change state. For example, by opening a hole in the front door or inserting a tool through the gap between the front door and the main unit, operating a specific operating unit or shorting a circuit built in the main unit, There was an act of changing the setting illegally by setting the same operation state as when it was operated.

このような不正行為を防止する遊技機として、閉状態にある前面扉を検出可能な扉検出センサを設けて、設定変更状態において前面扉が閉状態であるときに、設定変更するための設定変更信号を無効にするもの(たとえば、特許文献1参照)や、異常を報知する(たとえば、特許文献2参照)があった。   As a gaming machine for preventing such illegal acts, a door detection sensor capable of detecting the front door in the closed state is provided, and setting change for changing the setting when the front door is in the closed state in the setting change state There are those that invalidate the signal (for example, see Patent Document 1) and those that report an abnormality (for example, see Patent Document 2).

特開2004−135844号公報JP 2004-135844 A 特開2006−61510号公報JP 2006-61510 A

しかしながら、特許文献1および2に記載の遊技機にあっては、前面扉が閉状態であっても、設定変更状態に制御され得る。このため、前面扉が閉状態であっても、不正に設定変更が行なわれる虞があった。たとえば、特許文献1に記載の遊技機においては設定変更信号を無効にさせないような行為により、また、特許文献2に記載の遊技機においては異常報知されるものの設定変更を継続させるような行為により、いずれにしても、前面扉が閉状態であるにも関わらず、不正に設定変更が行なわれてしまう虞があった。さらに、不正行為を行なった後において遊技を進行できてしまう虞があった。   However, in the gaming machines described in Patent Documents 1 and 2, even if the front door is in the closed state, it can be controlled to the setting change state. For this reason, even if the front door is in the closed state, there is a possibility that the setting is changed illegally. For example, in the gaming machine described in Patent Document 1, by an action that does not invalidate the setting change signal, and in the gaming machine described in Patent Document 2, by an action that continues the setting change of what is reported to be abnormal In any case, there is a possibility that the setting is changed illegally even though the front door is closed. Furthermore, there is a possibility that the game can proceed after the cheating.

この発明は、かかる実情に鑑み考え出されたものであり、その目的は、不正行為によって設定変更状態に制御されることを防止する遊技機を提供することである。   The present invention has been conceived in view of such circumstances, and an object thereof is to provide a gaming machine that prevents the setting change state from being controlled by an unauthorized act.

(1) 遊技者に対する有利度(たとえば設定値)を変更可能な遊技機(スロットマシン、パチンコ機など)であって、
開閉可能に設けられた開閉体(前面扉1b、本体枠914)と、
前記開閉体が開放状態であるときに操作可能となる操作手段(電源スイッチ39、設定キースイッチ37)と、
前記開閉体の開閉状態を検出する開閉状態検出手段(ドア開放検出スイッチ25、本体枠開放検出スイッチ925)と、
前記操作手段の操作状態が特定操作状態(電源スイッチ39がOFFからONとなったとき(電源投入時)に設定キースイッチ37がONを特定するための検出信号が出力されている操作状態)となったときの前記開閉体の開閉状態を、前記開閉状態検出手段の検出結果に基づいて判定する特定時判定手段(Sa27b)と、
前記特定時判定手段により前記開閉体が開放状態であると判定されたときに、複数種類の設定値のうちからいずれかの設定値を選択することで前記有利度を変更可能な設定変更状態に制御し(Sa28に移行)、前記開閉体が開放状態でないと判定されたときには、前記設定変更状態に制御しない(Sa27cに移行)状態制御手段(Sa27b、Sa27c、Sa28、Sa29、図28など)と、
前記特定時判定手段により前記開閉体が開放状態でないと判定されたときに、遊技の進行を不能動化する不能動化手段(Sa27c、Sa27c’、Se22a〜Se22c、Se35b)とを備える。
(1) A gaming machine (slot machine, pachinko machine, etc.) capable of changing an advantage (for example, a set value) for a player,
An opening / closing body (front door 1b, body frame 914) provided to be openable and closable;
Operating means (power switch 39, setting key switch 37) that can be operated when the opening and closing body is in an open state;
Open / closed state detecting means for detecting the open / closed state of the open / close body (door open detection switch 25, body frame open detection switch 925);
The operation state of the operation means is a specific operation state (an operation state in which a detection signal for specifying that the setting key switch 37 is ON when the power switch 39 is switched from OFF to ON (when the power is turned on)). A specific time determination means (Sa27b) for determining the open / closed state of the open / close body based on the detection result of the open / close state detecting means;
When the open / close body is determined to be in the open state by the specific time determination means, a setting change state in which the advantage can be changed by selecting any one of a plurality of setting values. Control (shift to Sa28), and when it is determined that the opening / closing body is not in the open state, control is not performed to the setting change state (shift to Sa27c); state control means (Sa27b, Sa27c, Sa28, Sa29, FIG. ,
Disabling means (Sa27c, Sa27c ′, Se22a to Se22c, Se35b) that disables the progress of the game when the opening / closing body is determined not to be in the open state by the specific time determining means.

このような構成によれば、操作手段の操作状態が特定操作状態となったときの開閉体の開閉状態を判定し、開閉体が開放状態でないと判定されたときには、設定変更状態に制御されることがない。すなわち、本来であれば開閉体が開放状態でなければ、操作手段を操作できず特定操作状態にも成り得ないところ、特定操作状態となったときに開閉体が開放状態となっておらず不正行為が行なわれた可能性があるときには、設定変更状態に制御されることがない。これにより、不正行為によって設定変更状態に制御されて、設定変更が行なわれることをより確実に防止することができる。   According to such a configuration, the open / close state of the opening / closing body is determined when the operation state of the operating means becomes the specific operation state, and when it is determined that the opening / closing body is not in the open state, the setting change state is controlled. There is nothing. In other words, if the opening / closing body is not in the open state, the operating means cannot be operated and the specific operation state cannot be obtained. When there is a possibility that an action has been performed, the setting change state is not controlled. Thereby, it can control more reliably to a setting change state by an unauthorized act, and a setting change can be prevented more reliably.

また、不正行為を行なった場合、その後の遊技の進行が不能動化される。このため、不正行為が行なわれたことを、遊技場管理者や他の遊技者などによって容易に特定されてしまう。その結果、不正行為を行なうことのリスクを高めることにより、不正行為を抑止することができる。   Further, when an illegal act is performed, the progress of the subsequent game is disabled. For this reason, it is easily specified by the game hall manager or other players that the illegal act has been performed. As a result, fraud can be suppressed by increasing the risk of performing fraud.

なお、遊技機は、遊技者に対する有利度を変更可能な遊技機であればよく、1ゲームに対して賭数を設定することにより可変表示装置における表示状態を変化させ得る遊技が開始可能となるスロットマシン(実施の形態参照)、所定の遊技領域(遊技盤)に打ち込まれた遊技媒体(たとえばパチンコ球)が所定の始動領域(始動口)を通過することにより可変表示装置における表示状態を変化させ得るパチンコ機(変形例(5)(6)参照)などであってもよい。   Note that the gaming machine may be any gaming machine that can change the advantage to the player, and a game that can change the display state of the variable display device can be started by setting the number of bets for one game. The display state of the variable display device is changed when a slot machine (see the embodiment), a game medium (for example, a pachinko ball) driven into a predetermined game area (game board) passes through a predetermined start area (start port) It may be a pachinko machine that can be used (see modified examples (5) and (6)).

また、設定値とは、遊技者に対する有利度を定めた値であればよく、特定表示結果(ボーナス、小役、再遊技役、大当り、中当り、小当りなど)の導出を許容するか否かを決定する事前決定手段により特定表示結果の導出を許容する旨が決定される確率を定めた値であってもよいし、遊技者にとって有利な情報が報知される確率、遊技者にとって有利な情報が報知される報知状態に移行する確率などを定めた値であってもよい。また、遊技者にとって有利な有利状態(ボーナス、アシストタイム(AT)、リプレイタイム(RT)、大当り、確率変動状態など)に制御され得る確率が定められているものであってもよい(変形例(10)参照)。   Further, the set value may be a value that defines an advantage for the player, and whether or not to permit the derivation of a specific display result (bonus, small combination, re-game combination, big hit, medium hit, small hit, etc.) is permitted. It may be a value that determines the probability that it is determined that the derivation of the specific display result is permitted by the predetermining means for determining whether or not the information advantageous to the player is notified, which is advantageous to the player It may be a value that defines the probability of shifting to a notification state in which information is notified. In addition, a probability that can be controlled in an advantageous state (bonus, assist time (AT), replay time (RT), jackpot, probability fluctuation state, etc.) advantageous to the player may be defined (modified example) (See (10)).

また、特定時判定手段は、操作手段の操作状態が特定操作状態となったときに開閉体の開放状態を判定するものであってもよく、開閉体が閉状態となっているときに操作手段の操作状態が特定操作状態となったか否かを判定するものであってもよい。   The specific time determination means may determine the open state of the opening / closing body when the operation state of the operation means becomes the specific operation state, and the operation means when the opening / closing body is in the closed state. It may be determined whether or not the operation state is a specific operation state.

操作手段は、一の操作を検出する一の操作手段であってもよく、第1の操作を検出する操作手段と当該第1の操作とは別の第2の操作を検出する操作手段とを含む複数種類の操作手段であってもよい。また、操作手段の操作状態とは、操作手段の操作部の状態(設定キースイッチがONである状態など)であってもよく、また操作手段から出力される信号の状態(設定キースイッチがONであるときに出力される信号の状態など)であってもよい。   The operation means may be one operation means for detecting one operation, and includes an operation means for detecting the first operation and an operation means for detecting a second operation different from the first operation. A plurality of types of operation means may be included. The operation state of the operation means may be the state of the operation unit of the operation means (such as a state where the setting key switch is ON), or the state of a signal output from the operation means (the setting key switch is ON). Or the state of a signal output when it is.

開閉可能に設けられた前面扉(前面扉1b)を備えており、当該前面扉を開放状態とすることにより操作手段が操作可能となる場合は、当該前面扉が前記開閉体であるといえる(スロットマシン参照)。これに対し、外枠に対して回動自在に設けられた遊技機本体を備えており、当該遊技機本体を回動させて開放状態とすることにより操作手段が操作可能となる場合は、当該遊技機本体が前記開閉体であるといえる(パチンコ機参照)。すなわち、開閉体は、開放状態とすることにより操作手段を操作可能とならしめる部材であればよい。   When the front door (front door 1b) provided so that opening and closing is possible and the operation means can be operated by opening the front door, it can be said that the front door is the opening and closing body ( Slot machine). On the other hand, when the gaming machine main body is provided so as to be rotatable with respect to the outer frame, and the gaming machine main body is rotated to be in an open state, the operation means can be operated. It can be said that the gaming machine body is the opening / closing body (see pachinko machine). In other words, the opening / closing body may be a member that makes the operation means operable by opening it.

(2) 前記不能動化手段により遊技の進行が不能動化されているときに、前記操作手段の操作状態が前記特定操作状態と異なる操作状態となることにより、当該不能動化を解除する不能動化解除手段を備える(図69のSa27c’)。   (2) When the progress of the game is disabled by the disabling device, the operation state of the operating device becomes an operation state different from the specific operation state, so that the disabling operation cannot be canceled. A deactivation means is provided (Sa27c ′ in FIG. 69).

このような構成によれば、不正行為を行なった者にとっては容易に不能動化を解除することができないのに対し、開閉体を開放状態にして操作手段の操作状態を特定操作状態と異なる操作状態にすることができる者(たとえば遊技場管理者)であれば、容易かつ速やかに不能動化を解除することができる。   According to such a configuration, the immobilization cannot be easily released for a person who has performed an illegal act, but the operation state of the operation means is different from the specific operation state by opening the opening / closing body. If it is a person who can be in a state (for example, a game hall manager), the immobilization can be canceled easily and quickly.

(3) 前記不能動化手段により遊技の進行が不能動化されているときに、前記設定変更状態に制御されることにより、当該不能動化を解除する不能動化解除手段を備える(図28のSc14、Sc15)。   (3) When the progress of the game is disabled by the disable function, the disabled change canceling means for canceling the disable function is provided by being controlled to the setting change state (FIG. 28). Sc14, Sc15).

このような構成によれば、不正行為を行なった者にとっては容易に不能動化を解除することができないのに対し、開閉体を開放状態にして操作手段の操作状態を特定操作状態と異なる操作状態にすることができる者(たとえば遊技場管理者)であれば、容易かつ速やかに不能動化を解除することができる。   According to such a configuration, the immobilization cannot be easily released for a person who has performed an illegal act, but the operation state of the operation means is different from the specific operation state by opening the opening / closing body. If it is a person who can be in a state (for example, a game hall manager), the immobilization can be canceled easily and quickly.

(4) 前記不能動化手段は、遊技を進行させるための操作を検出するための遊技操作手段のうち特定の遊技操作手段を無効にすることにより、遊技の進行を不能動化する(図31のSe35b参照)。   (4) The disabling means disables the progress of the game by invalidating a specific game operating means among the game operating means for detecting an operation for advancing the game (FIG. 31). Se35b).

このような構成によれば、不能動化される前の遊技の進行状況に関わらず、特定の遊技操作手段が無効にされるため、不能動化するための処理を容易化することができる。   According to such a configuration, since the specific game operation means is invalidated regardless of the progress state of the game before being disabled, the processing for disabling it can be facilitated.

(5) 前記不能動化手段により遊技の進行が不能動化されるときであっても、前記特定の遊技操作手段が操作されることにより遊技が進行するタイミングまでは、前記不能動化されないときと同じ遊技の進行制御を行なう(図31のSe35b参照)。   (5) Even when the progress of the game is disabled by the disabling device, the disabling is not performed until the timing at which the game proceeds by operating the specific game operation device The same game progress control is performed (see Se35b in FIG. 31).

このような構成によれば、不能動化のために特殊な制御を行なう必要性がなく、処理負担が増大することを防止できる。   According to such a configuration, it is not necessary to perform special control for disabling, and an increase in processing load can be prevented.

(6) 前記操作手段と異なり、遊技者により操作可能な遊技操作手段(1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8R、精算スイッチ10)と、
前記状態制御手段を含む手段であって、前記遊技操作手段の操作に応じて遊技の進行制御を行なうとともに、該遊技の進行制御に基づく制御情報(コマンド)を送信する遊技制御手段(メイン制御部41)と、
前記遊技制御手段から受信した制御情報に基づいて演出の制御を行なう演出制御手段(サブ制御部91)と、を備え、
前記遊技制御手段は、
前記設定変更状態が開始したときに設定変更開始制御情報(設定開始コマンド)を前記演出制御手段に対して送信する設定変更開始制御情報送信手段と、
前記遊技操作手段のうちの特定の遊技操作手段(ストップスイッチ8L、8C、8R)が遊技の進行制御に関与する関与制御状態(リール回転処理)に制御する関与制御手段と、
前記関与制御状態以外の制御状態において、前記特定の遊技操作手段の操作状態を示す操作制御情報(操作検出コマンド)を前記演出制御手段に対して送信する操作制御情報送信手段と、
前記特定の遊技操作手段の操作に関与することなく、前記状態制御手段により制御される前記設定変更状態において有利度を変更するための変更制御を行なう有利度変更制御手段(設定変更処理など)と、を含み、
前記操作制御情報送信手段は、前記設定変更状態においても前記操作制御情報を前記演出制御手段に対して送信し、
前記演出制御手段は、
前記遊技制御手段から受信した前記操作制御情報(設定開始コマンド)に基づいて操作演出を実行する操作演出実行手段と、
前記設定変更開始制御情報を受信したことに基づいて、前記演出制御手段が管理する管理情報にアクセス可能な管理者用状態(管理者モード)に制御する管理者用状態制御手段と、
前記管理者用状態において前記遊技制御手段から受信した前記操作制御情報に基づいて管理者用制御(管理情報の閲覧、管理情報の変更)を行う管理者用制御手段と、を含む。
(6) Unlike the above-described operation means, game operation means that can be operated by the player (one-sheet BET switch 5, MAXBET switch 6, start switch 7, stop switches 8L, 8C, 8R, checkout switch 10),
Game control means (main control unit) for controlling the progress of a game in response to an operation of the game operation means and transmitting control information (command) based on the progress control of the game. 41),
Effect control means (sub control unit 91) for controlling the effect based on the control information received from the game control means,
The game control means includes
Setting change start control information transmitting means for transmitting setting change start control information (setting start command) to the effect control means when the setting change state starts;
Participation control means for controlling a particular game operation means (stop switches 8L, 8C, 8R) of the game operation means to a participation control state (reel rotation processing) related to the progress control of the game;
Operation control information transmitting means for transmitting operation control information (operation detection command) indicating an operation state of the specific game operation means to the effect control means in a control state other than the participation control state;
Advantage change control means (such as a setting change process) for performing change control for changing the advantage in the setting change state controlled by the state control means without being involved in the operation of the specific game operation means. Including,
The operation control information transmitting means transmits the operation control information to the effect control means even in the setting change state,
The production control means includes
An operation effect executing means for executing an operation effect based on the operation control information (setting start command) received from the game control means;
On the basis of receiving the setting change start control information, an administrator state control means for controlling to an administrator state (administrator mode) accessible to management information managed by the effect control means;
Control means for managers that performs control for managers (browsing management information, changing management information) based on the operation control information received from the game control means in the manager state.

このような構成によれば、特定の遊技操作手段が遊技の進行制御に関与する関与制御状態以外の制御状態において、特定の遊技操作手段の操作状態を示す操作制御情報が演出制御手段に対して送信されるため、演出制御手段が遊技の進行制御に関与しない特定の遊技操作手段が操作されたことに基づいて演出を実行できる。また、演出制御手段は、遊技制御手段から設定変更状態が開始した旨を示す設定変更開始制御情報を受信したときに管理者用状態に制御するとともに、設定変更状態においても遊技制御手段から操作制御情報が送信されるようになっており、設定変更状態と同期する管理者用状態において受信した操作制御情報に基づいて演出制御手段が管理する管理情報にアクセス可能となる。このため、演出制御手段側に管理情報にアクセスするための遊技操作手段を備えることなく、本来であれば遊技制御手段による遊技の進行制御に用いられる特定の遊技操作手段を活用して管理情報のアクセス操作を行なうことができる。   According to such a configuration, in the control state other than the participation control state in which the specific game operation unit is involved in the game progress control, the operation control information indicating the operation state of the specific game operation unit is transmitted to the effect control unit. Since the transmission is transmitted, it is possible to execute the effect based on the operation of the specific game operation means that is not involved in the progress control of the game. The effect control means controls to the manager state when receiving the setting change start control information indicating that the setting change state has started from the game control means, and also controls the operation from the game control means in the setting change state. Information is transmitted, and the management information managed by the effect control means can be accessed based on the operation control information received in the manager state synchronized with the setting change state. For this reason, without providing game operation means for accessing management information on the side of the production control means, the management information of the management information is utilized by utilizing a specific game operation means that is originally used for controlling the progress of the game by the game control means. Access operation can be performed.

なお、特定の遊技操作手段の操作状態を示す操作制御情報とは、特定の遊技操作手段が操作されている状態であること、特定の遊技操作手段が操作されていない状態であること、特定の遊技操作手段が操作されていない状態から操作されている状態に変化したこと、特定の遊技操作手段が操作されている状態から操作されていない状態に変化したこと、の少なくともいずれか1つが判定できる情報であればよい。   Note that the operation control information indicating the operation state of the specific game operation means is a state in which the specific game operation means is operated, a state in which the specific game operation means is not operated, It is possible to determine at least one of the fact that the game operation means has changed from an unoperated state to an operated state, and that a specific game operation means has changed from an operated state to an unoperated state. Any information may be used.

また、管理情報とは、遊技機が設置される遊技場の係員など遊技機の管理者のみがアクセス可能な情報であり、たとえば、管理者のみが閲覧可能なドア開放履歴などのセキュリティー情報や、履歴情報や遊技説明などの情報などを遊技者が閲覧可能とするか否かの設定情報などが該当する。   In addition, the management information is information that can be accessed only by an administrator of the gaming machine such as an attendant of a game hall where the gaming machine is installed, for example, security information such as a door opening history that can be viewed only by the administrator, This corresponds to setting information as to whether or not the player can view information such as history information and game description.

また、管理者用状態制御手段は、設定変更開始制御情報を受信したことに基づいて即座に管理者用状態に制御するようにしてもよいし、設定変更開始制御情報を受信した後にさらに予め定められた遊技操作手段が操作されたことなどの追加的な条件を満たした場合に管理者用状態に制御するようにしてもよい。   Further, the manager state control means may immediately control to the manager state based on the reception of the setting change start control information, or may further determine in advance after receiving the setting change start control information. When an additional condition such as operation of a given game operation means is satisfied, the administrator state may be controlled.

(7) 表示状態を変化させることが可能な可変表示装置(リール2L、2C、2R)と、
前記可変表示装置の表示結果として特定表示結果(ボーナス)が導出されたことに基づいて、遊技者にとって有利な状態(ボーナス)に制御する有利制御手段と、
数値データを更新する数値更新手段(乱数列変更回路555)と、
前記可変表示装置において表示状態を変化させた後に表示結果を導出させる可変表示を行なうための可変表示条件が成立したとき(スタートスイッチ7が操作されてとき、有効な始動入賞が発生したとき)に、前記数値更新手段によって更新された数値データを乱数値として抽出し、第1の数値データ格納領域(乱数値レジスタR1D)に格納する乱数抽出手段(乱数ラッチセレクタ558A)と、
前記第1の数値データ格納領域に前記乱数抽出手段により数値データが格納された後、該格納されている数値データが読み出されるまでは、前記乱数抽出手段により新たな数値データが格納されることがなく、該第1の数値データ格納領域に格納されている数値データを保持する数値データ保持手段(新たな数値データのラッチの禁止)と、
一定時間(約2.24ms)毎に、前記第1の数値データ格納領域に数値データが格納されているか否か(乱数ラッチフラグが設定されているか否か)を判定する数値データ格納判定手段と、
前記数値データ格納判定手段が前記第1の数値データ格納領域に数値データが格納されている(乱数ラッチフラグが設定されている)と判定したときに、前記第1の数値データ格納領域に格納されている数値データを読み出すことにより、前記数値データ保持手段による数値データの保持を解除するとともに、該読み出した数値データを前記第1の数値データ格納領域とは異なる第2の数値データ格納領域(乱数値格納ワーク)に格納する数値データ読出手段と、
前記可変表示装置において表示状態の変化を開始させるときに、選択されている設定値から特定される確率にしたがって、前記第2の数値データ格納領域に格納された数値データを用いて前記特定表示結果の導出を許容するか否かを決定する事前決定手段(内部抽選)と、を備える。
(7) a variable display device (reels 2L, 2C, 2R) capable of changing a display state;
Advantageous control means for controlling to a state (bonus) advantageous to the player based on the specific display result (bonus) derived as the display result of the variable display device;
Numerical value updating means (random number sequence changing circuit 555) for updating numerical data;
When a variable display condition for performing variable display for deriving a display result after changing the display state in the variable display device is satisfied (when the start switch 7 is operated and a valid start prize is generated). Random number extraction means (random number latch selector 558A) for extracting the numerical data updated by the numerical value updating means as a random number value and storing it in a first numerical data storage area (random number value register R1D);
After the numerical data is stored in the first numerical data storage area by the random number extraction unit, new numerical data is stored by the random number extraction unit until the stored numerical data is read. And numerical data holding means for holding numerical data stored in the first numerical data storage area (prohibition of latching of new numerical data),
Numerical data storage determining means for determining whether or not numerical data is stored in the first numerical data storage area (whether or not a random number latch flag is set) at regular time intervals (approximately 2.24 ms);
When the numerical data storage determination means determines that numerical data is stored in the first numerical data storage area (a random number latch flag is set), the numerical data storage determination means stores the numerical data in the first numerical data storage area. The numeric data holding means cancels the holding of the numeric data by the numeric data holding means, and the read numeric data is stored in a second numeric data storage area (random number value) different from the first numeric data storage area. Numerical data reading means stored in the storage work),
The specified display result using the numerical data stored in the second numerical data storage area according to the probability specified from the selected setting value when starting the change of the display state in the variable display device Predetermining means (internal lottery) for determining whether or not to permit the derivation of.

このような構成によれば、可変表示条件の成立により抽出された数値データが第1の数値データ格納領域に格納された後、該格納された数値データが読み出されて第2の数値データ格納領域に格納されるまでは、第1の数値データ格納領域に格納されている数値データが保持され、新たな数値データによって上書きされてしまうことがないので、静電気などにより信号線にノイズがのっても数値データが変わってしまうことがない。   According to such a configuration, after the numerical data extracted when the variable display condition is satisfied is stored in the first numerical data storage area, the stored numerical data is read and stored in the second numerical data storage. Until the data is stored in the area, the numerical data stored in the first numerical data storage area is retained and will not be overwritten by new numerical data. However, the numerical data will not change.

また、一定時間毎に、第1の数値データ格納領域に数値データが格納されているか否か判定され、第1の数値データ格納領域に数値データが格納されている場合には、第1の数値データ格納領域に格納されている数値データが読み出され、数値データ保持手段による数値データの保持が解除されるようになっており、数値データが保持されても、その状態が一定時間を超えて継続することがなく、新たな数値データを格納可能な状態となる。このため、可変表示条件が成立したタイミングで抽出した数値データを取得することが可能となる。   Further, it is determined whether or not numerical data is stored in the first numerical data storage area at regular time intervals. If numerical data is stored in the first numerical data storage area, the first numerical value is stored. The numerical data stored in the data storage area is read out, and the numerical data retention by the numerical data retaining means is released. Even if the numerical data is retained, the state exceeds a certain time. It is possible to store new numerical data without continuing. For this reason, it is possible to acquire numerical data extracted at the timing when the variable display condition is satisfied.

また、数値データ格納判定手段が第1の数値データ格納領域に新たな数値データが格納されていると判定し、第1の数値データ格納領域から数値データが読み出される毎に、第2の数値データ格納領域の数値データが第1の数値データ格納領域から読み出された数値データ、すなわち新たに抽出された数値データに更新されるとともに、事前決定手段は、第1の数値データ格納領域に格納されている数値データではなく、第2の数値データ格納領域に格納された数値データを用いるので、第1の数値データ格納領域から数値データが読み出された後に、信号線にノイズがのって数値データが変わってしまっても事前決定手段が用いる第2の数値データ格納領域の数値データに影響することがなく、このような場合であっても、可変表示条件が成立したタイミングで抽出した数値データを用いて特定表示結果の導出を許容するか否かの決定を行なうことができる。   The numerical data storage determining means determines that new numerical data is stored in the first numerical data storage area, and whenever the numerical data is read from the first numerical data storage area, the second numerical data is stored. The numerical data in the storage area is updated to the numerical data read from the first numerical data storage area, that is, the newly extracted numerical data, and the predetermination means is stored in the first numerical data storage area. Since the numerical data stored in the second numerical data storage area is used instead of the numerical data stored in the first numerical data storage area after the numerical data is read out from the first numerical data storage area, Even if the data changes, the numerical data in the second numerical data storage area used by the predetermining means is not affected. Even in such a case, the variable display condition is not changed. A determination can be made whether to permit the derivation of specific display result using the numerical data extracted in standing timing.

なお、前記事前決定手段による前記特定表示結果の導出を許容するか否かの決定に用いる数値データは、前記第2の数値データ格納領域に格納された数値データであればよく、当該決定を行なう際に前記第2の数値データ格納領域に格納されている数値データであってもよく(スロットマシン)、あるいは、当該決定を行なうまでに前記第2の数値データ格納領域に格納された数値データを読み出して当該第2の数値データ格納領域とは異なる第3の数値データ格納領域(たとえば、始動入賞に対応して抽出した乱数を保留記憶するためのいわゆる保留記憶領域)に格納する決定前数値データ読出手段を備える場合には、当該決定を行なう際に当該第3の数値データ格納領域に格納されている数値データであってもよい(パチンコ機)。   The numerical data used for determining whether to permit the derivation of the specific display result by the prior determination means may be numerical data stored in the second numerical data storage area. It may be numerical data stored in the second numerical data storage area when performing (slot machine), or numerical data stored in the second numerical data storage area until the determination is made. Is read and stored in a third numerical data storage area different from the second numerical data storage area (for example, a so-called reserved storage area for storing a random number extracted corresponding to the start winning prize) When data reading means is provided, it may be numerical data stored in the third numerical data storage area when making the determination (pachinko machine).

(8) 表示状態を変化させることが可能な可変表示装置(リール2L、2C、2R)と、
前記可変表示装置の表示結果として特定表示結果(ボーナス)が導出されたことに基づいて、遊技者にとって有利な状態(ボーナス)に制御する有利制御手段と、
数値データを更新する数値更新手段(乱数列変更回路555)と、
前記可変表示装置において表示状態を変化させた後に表示結果を導出させる可変表示を行なうための可変表示条件が成立したとき(スタートスイッチ7が操作されてとき、有効な始動入賞が発生したとき)に、前記数値更新手段によって更新された数値データを乱数値として抽出し、第1の数値データ格納領域(乱数値レジスタR1D)に格納する乱数抽出手段(乱数ラッチセレクタ558A)と、
前記第1の数値データ格納領域に前記乱数抽出手段により数値データが格納された後、該格納されている数値データが読み出されるまでは、前記乱数抽出手段により新たな数値データが格納されることがなく、該第1の数値データ格納領域に格納されている数値データを保持する数値データ保持手段(新たな数値データのラッチの禁止)と、
前記第1の数値データ格納領域に数値データが格納されたときに割込(乱数ラッチ割込)を発生させる割込発生手段と、
前記割込発生手段が前記割込を発生させたことに応じて、前記第1の数値データ格納領域に格納されている数値データを読み出すことにより、前記数値データ保持手段による数値データの保持を解除するとともに、該読み出した数値データを前記第1の数値データ格納領域とは異なる第2の数値データ格納領域(乱数値格納ワーク)に格納する数値データ読出手段と、
前記可変表示装置において表示状態の変化を開始させるときに、選択されている設定値から特定される確率にしたがって、前記第2の数値データ格納領域に格納された数値データを用いて前記特定表示結果の導出を許容するか否かを決定する事前決定手段(内部抽選)と、を備える。
(8) a variable display device (reels 2L, 2C, 2R) capable of changing the display state;
Advantageous control means for controlling to a state (bonus) advantageous to the player based on the specific display result (bonus) derived as the display result of the variable display device;
Numerical value updating means (random number sequence changing circuit 555) for updating numerical data;
When a variable display condition for performing variable display for deriving a display result after changing the display state in the variable display device is satisfied (when the start switch 7 is operated and a valid start prize is generated). Random number extraction means (random number latch selector 558A) for extracting the numerical data updated by the numerical value updating means as a random number value and storing it in a first numerical data storage area (random number value register R1D);
After the numerical data is stored in the first numerical data storage area by the random number extraction unit, new numerical data is stored by the random number extraction unit until the stored numerical data is read. And numerical data holding means for holding numerical data stored in the first numerical data storage area (prohibition of latching of new numerical data),
Interrupt generating means for generating an interrupt (random number latch interrupt) when numerical data is stored in the first numerical data storage area;
In response to the occurrence of the interrupt by the interrupt generation means, reading of the numerical data stored in the first numerical data storage area releases the numerical data holding by the numerical data holding means. And numerical data reading means for storing the read numerical data in a second numerical data storage area (random value storage work) different from the first numerical data storage area;
The specified display result using the numerical data stored in the second numerical data storage area according to the probability specified from the selected setting value when starting the change of the display state in the variable display device Predetermining means (internal lottery) for determining whether or not to permit the derivation of.

このような構成によれば、可変表示条件の成立により抽出された数値データが第1の数値データ格納領域に格納された後、該格納された数値データが読み出されて第2の数値データ格納領域に格納されるまでは、第1の数値データ格納領域に格納されている数値データが保持され、新たな数値データによって上書きされてしまうことがないので、静電気などにより信号線にノイズがのっても数値データが変わってしまうことがない。   According to such a configuration, after the numerical data extracted when the variable display condition is satisfied is stored in the first numerical data storage area, the stored numerical data is read and stored in the second numerical data storage. Until the data is stored in the area, the numerical data stored in the first numerical data storage area is retained and will not be overwritten by new numerical data. However, the numerical data will not change.

また、数値データ格納領域に数値データが格納されると割込が発生し、割込に応じて数値データ格納領域に格納されている数値データが読み出され、数値データ保持手段による数値データの保持が解除されるようになっており、割込の発生に応じて直ちに数値データが読み出され、新たな数値データを格納可能な状態となる。このため、可変表示条件が成立したタイミングで抽出した数値データを取得することが可能となる。   In addition, when numerical data is stored in the numerical data storage area, an interrupt occurs, and the numerical data stored in the numerical data storage area is read according to the interrupt, and the numerical data holding means holds the numerical data Is released, and the numerical data is immediately read in response to the occurrence of an interrupt, and a new numerical data can be stored. For this reason, it is possible to acquire numerical data extracted at the timing when the variable display condition is satisfied.

また、第1の数値データ格納領域に新たな数値データが格納されて割込が発生し、第1の数値データ格納領域から数値データが読み出される毎に、第2の数値データ格納領域の数値データが第1の数値データ格納領域から読み出された数値データ、すなわち新たに抽出された数値データに更新されるとともに、事前決定手段は、第1の数値データ格納領域に格納されている数値データではなく、第2の数値データ格納領域に格納された数値データを用いるので、第1の数値データ格納領域から数値データが読み出された後に、信号線にノイズがのって数値データが変わってしまっても事前決定手段が用いる第2の数値データ格納領域の数値データに影響することがなく、このような場合であっても、可変表示条件が成立したタイミングで抽出した数値データを用いて特定表示結果の導出を許容するか否かの決定を行なうことができる。   Further, every time numerical data is read from the first numerical data storage area when new numerical data is stored in the first numerical data storage area and an interruption occurs, the numerical data in the second numerical data storage area Is updated to the numerical data read from the first numerical data storage area, that is, the newly extracted numerical data, and the pre-determining means is the numerical data stored in the first numerical data storage area. Since the numerical data stored in the second numerical data storage area is used, the numerical data is changed due to noise on the signal line after the numerical data is read from the first numerical data storage area. However, the numerical data in the second numerical data storage area used by the predetermining means is not affected, and even in such a case, extraction is performed at the timing when the variable display condition is satisfied. Numerical data using a determination can be made whether to permit the derivation of specific display results.

また、数値データ保持手段は、前記第1の数値データ格納領域に前記乱数抽出手段により数値データが格納された後、該格納されている数値データが読み出されるまで、前記乱数抽出手段による数値データの新たな抽出を禁止することにより、第1の数値データ格納領域に格納されている数値データを保持するようにしてもよいし、前記第1の数値データ格納領域に前記乱数抽出手段により数値データが格納された後、該格納されている数値データが読み出されるまで、前記乱数抽出手段により数値データの抽出が行なわれても第1の数値データ格納領域への格納を禁止することにより、第1の数値データ格納領域に格納されている数値データを保持するようにしてもよい。   The numerical data holding means stores the numerical data stored in the first numerical data storage area by the random number extracting means until the stored numerical data is read after the numerical data is stored by the random number extracting means. By prohibiting new extraction, the numerical data stored in the first numerical data storage area may be retained, or numerical data may be stored in the first numerical data storage area by the random number extraction means. After the storage, until the stored numerical data is read, even if the random number extracting means extracts the numerical data, the first numerical data storage area is prohibited to store the first numerical data. The numerical data stored in the numerical data storage area may be held.

なお、前記事前決定手段による前記特定表示結果の導出を許容するか否かの決定に用いる数値データは、前記第2の数値データ格納領域に格納された数値データであればよく、当該決定を行なう際に前記第2の数値データ格納領域に格納されている数値データであってもよく(スロットマシン)、あるいは、当該決定を行なうまでに前記第2の数値データ格納領域に格納された数値データを読み出して当該第2の数値データ格納領域とは異なる第3の数値データ格納領域(たとえば、始動入賞に対応して抽出した乱数を保留記憶するためのいわゆる保留記憶領域)に格納する決定前数値データ読出手段を備える場合には、当該決定を行なう際に当該第3の数値データ格納領域に格納されている数値データであってもよい(パチンコ機)。   The numerical data used for determining whether to permit the derivation of the specific display result by the prior determination means may be numerical data stored in the second numerical data storage area. It may be numerical data stored in the second numerical data storage area when performing (slot machine), or numerical data stored in the second numerical data storage area until the determination is made. Is read and stored in a third numerical data storage area different from the second numerical data storage area (for example, a so-called reserved storage area for storing a random number extracted corresponding to the start winning prize) When data reading means is provided, it may be numerical data stored in the third numerical data storage area when making the determination (pachinko machine).

(9) 遊技の進行制御が開始されるとき(電源投入時、電圧低下時など)に、前記数値データ保持手段による数値データの保持を解除する保持解除手段(Sa206、Sm9〜Sm12)を備える。   (9) A holding release unit (Sa206, Sm9 to Sm12) for releasing the holding of the numerical data by the numerical data holding unit when the game progress control is started (when the power is turned on, when the voltage is lowered, etc.).

このような構成によれば、遊技の進行制御が開始されるときには、数値データ保持手段による数値データの保持が解除されるようになっており、数値データが読み出され、新たな数値データを格納可能な状態となる。このため、遊技の進行制御が開始されるときなどの電源電圧が不安定な状態で誤って格納された数値データを乱数値として取得してしまうことを防止できる。   According to such a configuration, when the progress control of the game is started, the numerical data holding means is released, and the numerical data is read and new numerical data is stored. It becomes possible. For this reason, it is possible to prevent the numerical data stored erroneously in a state where the power supply voltage is unstable, such as when the progress control of the game is started, from being acquired as a random value.

なお、保持解除手段は、電源が投入されたときに、前記数値データ保持手段による数値データの保持を解除するものであってもよい。これにより、たとえば電源投入時などの電源電圧が不安定な状態で誤って格納された数値データを乱数値として取得してしまうことを防止できる。   The holding release unit may release the holding of numerical data by the numerical data holding unit when the power is turned on. Thereby, for example, it is possible to prevent the numerical data stored erroneously in a state where the power supply voltage is unstable at the time of power-on or the like from being acquired as a random value.

また、遊技機への電力供給に基づいて生成された所定電源電圧を監視し、該所定電源電圧が低下したことに基づいて検出信号を出力する電源監視手段と、
前記電源監視手段から前記検出信号が出力された後において、前記検出信号の入力状態を繰り返し判定する検出判定手段と、
前記検出判定手段によって前記検出信号が入力されていない旨の判定がなされたときに、遊技の進行制御を再開させるための電断復旧時制御手段とを備え、
保持解除手段は、前記検出判定手段によって前記検出信号が入力されていない旨の判定がなされた後、前記電断復旧時制御手段により前記遊技の進行制御が再開されるより前に、前記数値データ保持手段による数値データの保持を解除するものであってもよい。これにより、たとえば所定電源電圧の低下時などの電源電圧が不安定な状態で誤って乱数値格納手段に格納された数値データを乱数値として取得してしまうことを防止できる。
Power monitoring means for monitoring a predetermined power supply voltage generated based on power supply to the gaming machine and outputting a detection signal based on the decrease in the predetermined power supply voltage;
After the detection signal is output from the power monitoring means, detection determination means for repeatedly determining the input state of the detection signal;
When the determination that the detection signal is not input by the detection determination means, comprising a power failure recovery control means for resuming the progress control of the game,
After the determination that the detection signal is not input by the detection determination unit, the holding release unit is configured to perform the numerical data before the progress control of the game is resumed by the power interruption recovery control unit. The numerical data held by the holding means may be released. Thereby, it is possible to prevent the numerical data stored in the random number storage means from being erroneously acquired as a random value when the power supply voltage is unstable, for example, when the predetermined power supply voltage is lowered.

(10) 遊技機への電力供給に基づいて生成された所定電源電圧を監視し、該所定電源電圧が低下したことに基づいて検出信号を出力する電源監視手段と、
前記電源監視手段から前記検出信号が出力されてから一定時間経過したときに起動命令(ユーザリセット)を行なう起動命令手段とを備え、
前記保持解除手段は、前記電源監視手段から前記検出信号が出力された後、電力供給が停止するのを待機している期間において、前記数値データ保持手段による数値データの保持を解除する(図72、変形例(7)参照)。
(10) power supply monitoring means for monitoring a predetermined power supply voltage generated based on power supply to the gaming machine and outputting a detection signal based on a decrease in the predetermined power supply voltage;
A start command means for performing a start command (user reset) when a predetermined time has elapsed since the detection signal was output from the power monitoring means;
The holding release unit releases holding of numerical data by the numerical data holding unit in a period of waiting for power supply to stop after the detection signal is output from the power supply monitoring unit (FIG. 72). (Refer to Modification (7)).

このような構成によれば、一時的に電圧が低下した場合には、電力供給が停止するのを待機している期間において数値データ格納領域に格納された場合にはその数値データが読み出され、数値データ保持手段による数値データの保持が解除されるようになっている。このため、一時的に電圧が不安定となり、信号線にノイズがのって数値データが数値データ格納領域に格納され、その状態が保持されたままの状態となっても、すぐに読み出されて数値データ格納領域に新たな数値データを格納可能な状態となる。その結果、復帰後、その間にノイズなどによって保持されていた数値データを用いて遊技に関連する決定が行なわれてしまうことを防止することができる。   According to such a configuration, when the voltage is temporarily reduced, the numerical data is read when the voltage is stored in the numerical data storage area in the period of waiting for the power supply to stop. The holding of numerical data by the numerical data holding means is released. For this reason, even if the voltage temporarily becomes unstable, noise is applied to the signal line, the numerical data is stored in the numerical data storage area, and that state is maintained, it is immediately read out. Thus, new numerical data can be stored in the numerical data storage area. As a result, it is possible to prevent a decision related to the game from being performed using the numerical data held due to noise or the like after the return.

本発明が適用された実施の形態のスロットマシンの正面図である。It is a front view of the slot machine of the embodiment to which the present invention is applied. スロットマシンの内部構造図である。It is an internal structure figure of a slot machine. リールの図柄配列を示す図である。It is a figure which shows the symbol arrangement | sequence of a reel. スロットマシンの構成を示すブロック図である。It is a block diagram which shows the structure of a slot machine. メイン制御部の構成を示すブロック図である。It is a block diagram which shows the structure of a main control part. メイン制御部におけるアドレスマップの一例を示す図である。It is a figure which shows an example of the address map in a main control part. プログラム管理エリアおよび内蔵レジスタの主要部分を例示する図である。It is a figure which illustrates the main part of a program management area and a built-in register. ヘッダおよび機能設定における設定内容の一例を示す図である。It is a figure which shows an example of the setting content in a header and function setting. 第1乱数初期設定、第2乱数初期設定および割込み初期設定における設定内容の一例を示す図である。It is a figure which shows an example of the setting content in 1st random number initial setting, 2nd random number initial setting, and interruption initial setting. セキュリティ時間設定における設定内容の一例を示す図である。It is a figure which shows an example of the setting content in security time setting. 内部情報レジスタの構成例等を示す図である。It is a figure which shows the structural example etc. of an internal information register. 乱数回路の構成例を示すブロック図である。It is a block diagram which shows the structural example of a random number circuit. 乱数列変更レジスタの構成例等を示す図である。It is a figure which shows the structural example etc. of a random number sequence change register. 乱数列変更回路による乱数更新規則の変更動作を示す説明図である。It is explanatory drawing which shows the change operation | movement of the random number update rule by a random number sequence change circuit. 乱数列変更回路による乱数更新規則の変更動作を示す説明図である。It is explanatory drawing which shows the change operation | movement of the random number update rule by a random number sequence change circuit. 乱数値取込レジスタの構成例等を示す図である。It is a figure which shows the structural example etc. of a random value acquisition register. 乱数ラッチ選択レジスタの構成例等を示す図である。It is a figure which shows the structural example etc. of a random number latch selection register. 乱数値レジスタの構成例を示す図である。It is a figure which shows the structural example of a random value register. 乱数ラッチフラグレジスタの構成例等を示す図である。It is a figure which shows the structural example etc. of a random number latch flag register. 乱数割込み制御レジスタの構成例等を示す図である。It is a figure which shows the structural example etc. of a random number interrupt control register. 入力ポートレジスタの構成例等を示す図である。It is a figure which shows the structural example etc. of an input port register. 入賞として定められた役の構成および遊技状態別の内部抽選の対象役を示す図である。It is a figure which shows the object combination of the internal lottery classified according to the structure of the combination determined as a prize, and a game state. メイン制御部が起動時に実行する起動処理(メイン)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the starting process (main) which a main control part performs at the time of starting. メイン制御部が実行するセキュリティチェック処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the security check process which a main control part performs. メイン制御部が実行するセキュリティチェック処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the security check process which a main control part performs. メイン制御部が実行する乱数回路異常検査処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the random circuit abnormality inspection process which a main control part performs. メイン制御部がエラー発生時に実行するエラー処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the error process which a main control part performs when an error generate | occur | produces. メイン制御部が実行する設定変更処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the setting change process which a main control part performs. メイン制御部が設定変更処理後に実行するゲーム処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the game process which a main control part performs after a setting change process. メイン制御部が実行するBET処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the BET process which a main control part performs. メイン制御部が実行するBET処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the BET process which a main control part performs. メイン制御部が実行するBET処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the BET process which a main control part performs. メイン制御部が一定間隔毎に実行するタイマ割込処理(メイン)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the timer interruption process (main) which a main control part performs for every fixed interval. メイン制御部が一定間隔毎に実行するタイマ割込処理(メイン)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the timer interruption process (main) which a main control part performs for every fixed interval. メイン制御部がタイマ割込処理(メイン)において実行する乱数値読出処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the random value reading process which a main control part performs in a timer interruption process (main). メイン制御部がタイマ割込処理(メイン)において実行するスイッチ入力判定処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the switch input determination process which a main control part performs in a timer interruption process (main). メイン制御部がタイマ割込処理(メイン)のタイマ割込2内において実行するコマンド送信処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the command transmission process which a main control part performs in the timer interruption 2 of a timer interruption process (main). メイン制御部が、電断検出回路から電圧低下信号の入力されることによって実行する電断割込処理(メイン)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the interruption interruption process (main) performed when a main control part inputs a voltage drop signal from an interruption detection circuit. 乱数回路における動作を説明するためのタイミングチャートである。It is a timing chart for demonstrating operation | movement in a random number circuit. スタートスイッチの操作と乱数値レジスタの関連を示すタイミングチャートである。It is a timing chart which shows the relationship between operation of a start switch, and a random value register. スタートスイッチの操作と乱数値レジスタの関連を示すタイミングチャートである。It is a timing chart which shows the relationship between operation of a start switch, and a random value register. スタートスイッチの操作と乱数値レジスタの関連を示すタイミングチャートである。It is a timing chart which shows the relationship between operation of a start switch, and a random value register. スタートスイッチの操作と乱数値レジスタの関連を示すタイミングチャートである。It is a timing chart which shows the relationship between operation of a start switch, and a random value register. スタートスイッチの操作と乱数値レジスタの関連を示すタイミングチャートである。It is a timing chart which shows the relationship between operation of a start switch, and a random value register. スタートスイッチの検出状況を示すタイミングチャートである。It is a timing chart which shows the detection condition of a start switch. サブCPUが起動時に実行する起動処理(サブ)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the starting process (sub) which a sub CPU performs at the time of starting. サブCPUが一定間隔毎に実行するタイマ割込処理(サブ)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the timer interruption process (sub) which a sub CPU performs for every fixed interval. サブCPUが一定間隔毎に実行するタイマ割込処理(サブ)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the timer interruption process (sub) which a sub CPU performs for every fixed interval. サブCPUが一定間隔毎に実行するタイマ割込処理(サブ)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the timer interruption process (sub) which a sub CPU performs for every fixed interval. サブCPUがタイマ割込処理(サブ)において実行する操作検出処理1の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the operation detection process 1 which a sub CPU performs in a timer interruption process (sub). サブCPUがタイマ割込処理(サブ)において実行する操作検出処理2の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the operation detection process 2 which sub CPU performs in a timer interruption process (sub). サブCPUが、電断検出回路から電圧低下信号の入力されることによって実行する電断割込処理(サブ)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the interruption interruption process (sub) performed when a sub CPU inputs a voltage drop signal from an interruption detection circuit. 制御状態に応じてゲームの進行制御に関与する操作スイッチおよびゲームの進行制御に関与しない操作スイッチを示す図である。It is a figure which shows the operation switch which is related to the progress control of a game according to a control state, and the operation switch which is not related to the progress control of a game. 起動時におけるメインCPUの制御状況を示すタイミングチャートである。It is a timing chart which shows the control situation of the main CPU at the time of starting. サブCPUの制御状態を示すタイミングチャートである。It is a timing chart which shows the control state of a sub CPU. サブCPUの起動時における制御状態を示すタイミングチャートである。It is a timing chart which shows the control state at the time of starting of a sub CPU. サブCPUの起動時における制御状態を示すタイミングチャートである。It is a timing chart which shows the control state at the time of starting of a sub CPU. サブCPUの起動時における制御状態を示すタイミングチャートである。It is a timing chart which shows the control state at the time of starting of a sub CPU. サブCPUの起動時における制御状態を示すタイミングチャートである。It is a timing chart which shows the control state at the time of starting of a sub CPU. サブCPUの起動時における制御状態を示すタイミングチャートである。It is a timing chart which shows the control state at the time of starting of a sub CPU. 操作演出の一例を示す図である。It is a figure which shows an example of an operation effect. 連続操作演出の実行状況を示す図である。It is a figure which shows the execution condition of a continuous operation effect. 台情報の閲覧状況を示す図である。It is a figure which shows the browsing condition of stand information. 設定変更時におけるメインCPUおよびサブCPUの制御状況を示すタイミングチャートである。It is a timing chart which shows the control situation of the main CPU and sub CPU at the time of a setting change. 設定確認時におけるメインCPUおよびサブCPUの制御状況を示すタイミングチャートである。It is a timing chart which shows the control condition of the main CPU and sub CPU at the time of setting confirmation. 管理者モード画面を示す図である。It is a figure which shows an administrator mode screen. 履歴データクリア画面を示す図である。It is a figure which shows a history data clear screen. オプション画面を示す図である。It is a figure which shows an option screen. 変形例における、メイン制御部が起動時に実行する起動処理(メイン)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the starting process (main) which a main control part performs at the time of starting in a modification. 変形例における、メイン制御部が、乱数をラッチする毎に実行する乱数値ラッチ割込処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the random value latch interruption process performed every time the main control part latches a random number in a modification. 変形例における、スタートスイッチの操作と乱数値レジスタの関連を示すタイミングチャートである。It is a timing chart which shows the relation between operation of a start switch and a random number value register in a modification. 変形例における、メイン制御部が、電圧低下信号が入力されることによって実行する電断処理(メイン)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the power interruption process (main) which a main control part in a modification performs by receiving a voltage drop signal. パチンコ機の斜視図である。It is a perspective view of a pachinko machine. 本体枠を開放した状態を示すパチンコ機の斜視図である。It is a perspective view of the pachinko machine which shows the state where the main part frame was opened. ガラス扉を開放した状態を示すパチンコ機の斜視図である。It is a perspective view of the pachinko machine which shows the state where the glass door was opened. 本体枠を開放した状態であって本体枠の背面側の構成を示す図である。It is a figure which shows the structure of the back side of a main body frame in the state which open | released the main body frame.

以下、添付図面を参照して、実施の形態について説明する。本実施の形態においては、遊技機としてスロットマシンを一例として説明する。図1は、この実施の形態にかかるスロットマシンの全体構造を示す正面図であり、図2は、スロットマシンの内部構造を示す図である。スロットマシン1は、前面が開口する筐体1aと、この筐体1aの側端に回動自在に枢支された前面扉1bと、から構成されている。   Embodiments will be described below with reference to the accompanying drawings. In this embodiment, a slot machine is described as an example of a gaming machine. FIG. 1 is a front view showing the overall structure of the slot machine according to this embodiment, and FIG. 2 is a view showing the internal structure of the slot machine. The slot machine 1 includes a housing 1a having an open front surface and a front door 1b pivotally supported on a side end of the housing 1a.

本実施の形態のスロットマシン1の筐体1aの内部には、図2に示すように、外周に複数種の図柄が配列されたリール2L、2C、2R(以下、左リール、中リール、右リールともいう)が水平方向に並設されており、図1に示すように、これらリール2L、2C、2Rに配列された図柄のうち連続する3つの図柄が前面扉1bに設けられた透視窓3から見えるように配置されている。   As shown in FIG. 2, inside the casing 1a of the slot machine 1 according to the present embodiment, reels 2L, 2C, and 2R (hereinafter, left reel, middle reel, right As shown in FIG. 1, a see-through window in which three consecutive symbols out of the symbols arranged on the reels 2L, 2C, and 2R are provided on the front door 1b. It is arranged so that it can be seen from 3.

リール2L、2C、2Rの外周部には、図3に示すように、それぞれ「黒7」、「網7(図中網掛け7)」、「白7」、「BAR」、「リプレイ」、「スイカ」、「黒チェリー」、「白チェリー」、「ベル」、「オレンジ」といった互いに識別可能な複数種類の図柄が所定の順序で、それぞれ21個ずつ描かれている。リール2L、2C、2Rの外周部に描かれた図柄は、透視窓3において各々上中下三段に表示される。   As shown in FIG. 3, on the outer periphery of the reels 2L, 2C, and 2R, “black 7”, “net 7 (shaded 7 in the figure)”, “white 7”, “BAR”, “replay”, A plurality of identifiable symbols such as “watermelon”, “black cherry”, “white cherry”, “bell”, and “orange” are drawn in a predetermined order, 21 pieces each. The symbols drawn on the outer peripheries of the reels 2L, 2C, and 2R are displayed in the upper, middle, and lower three stages in the see-through window 3, respectively.

各リール2L、2C、2Rは、各々対応して設けられリールモータ32L、32C、32R(図4参照)によって回転させることで、各リール2L、2C、2Rの図柄が透視窓3に連続的に変化しつつ表示されるとともに、各リール2L、2C、2Rの回転を停止させることで、透視窓3に3つの連続する図柄が表示結果として導出表示されるようになっている。   The reels 2L, 2C, and 2R are provided in correspondence with each other and rotated by reel motors 32L, 32C, and 32R (see FIG. 4), so that the symbols of the reels 2L, 2C, and 2R are continuously provided in the see-through window 3. In addition to being displayed while changing, by stopping the rotation of the reels 2L, 2C, and 2R, three consecutive symbols are derived and displayed on the fluoroscopic window 3 as display results.

リール2L、2C、2Rの内側には、リール2L、2C、2Rそれぞれに対して、基準位置を検出するリールセンサ33L、33C、33Rと、リール2L、2C、2Rを背面から照射するリールLED55と、が設けられている。また、リールLED55は、リール2L、2C、2Rの連続する3つの図柄に対応する12のLEDからなり、各図柄をそれぞれ独立して照射可能とされている。   Inside the reels 2L, 2C, and 2R are reel sensors 33L, 33C, and 33R that detect a reference position for each of the reels 2L, 2C, and 2R, and a reel LED 55 that irradiates the reels 2L, 2C, and 2R from the back side. , Is provided. The reel LED 55 includes 12 LEDs corresponding to three consecutive symbols of the reels 2L, 2C, and 2R, and can irradiate each symbol independently.

前面扉1bの各リール2L、2C、2Rの手前側(遊技者側)の位置には、液晶表示器51(図1参照)の表示領域51aが配置されている。液晶表示器51は、液晶素子に対して電圧が印加されていない状態で、透過性を有するノーマリーホワイトタイプの液晶パネルを有しており、表示領域51aの透視窓3に対応する透過領域51bおよび透視窓3を介して遊技者側から各リール2L、2C、2Rが視認できるようになっている。また、表示領域51aの透過領域51bを除く領域の裏面には、背後から表示領域51aを照射するバックライト(図示略)が設けられているとともに、さらにその裏面には、内部を隠蔽する隠蔽部材(図示略)が設けられている。   A display area 51a of a liquid crystal display 51 (see FIG. 1) is disposed at a position on the front side (player side) of each reel 2L, 2C, 2R of the front door 1b. The liquid crystal display 51 has a normally white liquid crystal panel having transparency in a state where no voltage is applied to the liquid crystal element, and a transmissive region 51b corresponding to the see-through window 3 of the display region 51a. The reels 2L, 2C, and 2R can be visually recognized from the player side through the see-through window 3. In addition, a backlight (not shown) that irradiates the display area 51a from behind is provided on the back surface of the display area 51a excluding the transmissive area 51b. (Not shown) is provided.

前面扉1bには、メダルを投入可能なメダル投入部4、メダルが払い出されるメダル払出口9、クレジット(遊技者所有の遊技用価値として記憶されているメダル数)を用いてメダル1枚分の賭数を設定する際に操作される1枚BETスイッチ5、クレジットを用いて、その範囲内において遊技状態に応じて定められた規定数の賭数のうち最大の賭数(本実施の形態では遊技状態がRB(BB)の場合には2、通常遊技状態では3)を設定する際に操作されるMAXBETスイッチ6、クレジットとして記憶されているメダルおよび賭数の設定に用いたメダルを精算する(クレジットおよび賭数の設定に用いた分のメダルを返却させる)際に操作される精算スイッチ10、ゲームを開始する際に操作されるスタートスイッチ7、リール2L、2C、2Rの回転を各々停止する際に操作されるストップスイッチ8L、8C、8R、が遊技者により操作可能にそれぞれ設けられている。   On the front door 1b, a medal insertion unit 4 into which medals can be inserted, a medal payout exit 9 from which medals are paid out, and credits (the number of medals stored as a game value owned by the player) are used for one medal. One bet switch 5 operated when setting the bet number, and using the credit, the maximum bet number (in the present embodiment, of the prescribed number of bets determined in accordance with the gaming state within the range) When the gaming state is RB (BB), 2 is set when the normal gaming state is 3), the MAXBET switch 6 operated when setting, the medal stored as credits, and the medals used for setting the number of bets are settled. Settlement switch 10 operated at the time of (returning medals used for setting credits and bets), start switch 7 operated at the start of the game, reel 2L, C, stop switch 8L is operated to stop each rotation of the 2R, 8C, 8R, but are provided operable by the player.

また、前面扉1bには、クレジットとして記憶されているメダル枚数が表示されるクレジット表示器11、後述するBB中のメダルの獲得枚数やエラー発生時にその内容を示すエラーコード等が表示される遊技補助表示器12、入賞の発生により払い出されたメダル枚数が表示されるペイアウト表示器13が設けられている。   The front door 1b also displays a credit indicator 11 that displays the number of medals stored as credits, the number of medals acquired in BB, which will be described later, and an error code that indicates the contents when an error occurs. An auxiliary indicator 12 and a payout indicator 13 for displaying the number of medals paid out due to the occurrence of a prize are provided.

また、前面扉1bには、賭数が1設定されている旨を点灯により報知する1BETLED14、賭数が2設定されている旨を点灯により報知する2BETLED15、賭数が3設定されている旨を点灯により報知する3BETLED16、メダルの投入が可能な状態を点灯により報知する投入要求LED17、スタートスイッチ7の操作によるゲームのスタート操作が有効である旨を点灯により報知するスタート有効LED18、ウェイト(前回のゲーム開始から一定期間経過していないためにリールの回転開始を待機している状態)中である旨を点灯により報知するウェイト中LED19、後述するリプレイゲーム中である旨を点灯により報知するリプレイ中LED20が設けられている。   Further, on the front door 1b, 1BETLED 14 that notifies that the bet number is set to 1 by lighting, 2BETLED 15 that notifies that the bet number is set to 2, and 3 bets are set. 3BET LED 16 to notify when lit, insertion request LED 17 to notify that a medal can be inserted is lit, start valid LED 18 to notify that the game start operation by the operation of the start switch 7 is effective, wait (previous Waiting state LED 19 for informing that it is in the state of waiting for the start of reel rotation since a certain period of time has not elapsed since the start of the game, during replay informing that it is in the replay game described later An LED 20 is provided.

MAXBETスイッチ6の内部には、1枚BETスイッチ5およびMAXBETスイッチ6の操作による賭数の設定操作が有効である旨を点灯により報知するBETスイッチ有効LED21(図4参照)が設けられており、ストップスイッチ8L、8C、8Rの内部には、該当するストップスイッチ8L、8C、8Rによるリールの停止操作が有効である旨を点灯により報知する左、中、右停止有効LED22L、22C、22R(図4参照)がそれぞれ設けられている。   Inside the MAXBET switch 6, there is provided a BET switch valid LED 21 (see FIG. 4) for notifying by lighting that the betting number setting operation by the operation of the single BET switch 5 and the MAXBET switch 6 is effective. Inside the stop switches 8L, 8C, and 8R, left, middle, and right stop effective LEDs 22L, 22C, and 22R for informing that the reel stop operation by the corresponding stop switches 8L, 8C, and 8R is effective by lighting (FIG. 4).

前面扉1bの内側には、所定のキー操作により後述するエラー状態および後述する打止状態を解除するためのリセット操作を検出するリセットスイッチ23、後述する設定値の変更中や設定値の確認中にその時点の設定値が表示される設定値表示器24、メダル投入部4から投入されたメダルの流路を、筐体1a内部に設けられた後述のホッパータンク34a(図2参照)側またはメダル払出口9側のいずれか一方に選択的に切り替えるための流路切替ソレノイド30、メダル投入部4から投入され、ホッパータンク34a側に流下したメダルを検出する投入メダルセンサ31を有するメダルセレクタ(図示略)が設けられている。   Inside the front door 1b, there is a reset switch 23 for detecting a reset operation for releasing an error state described later and a stop state described later by a predetermined key operation, while changing a set value and confirming a set value described later. A set value display 24 for displaying the set value at that time, and a flow path of medals inserted from the medal insertion unit 4 on the side of a hopper tank 34a (see FIG. 2) described later provided in the housing 1a or A medal selector having a insertion medal sensor 31 for detecting a medal that is inserted from the flow path switching solenoid 30 and the medal insertion unit 4 and selectively flows to the hopper tank 34a side to selectively switch to one of the medal payout exits 9 side. (Not shown) is provided.

筐体1a内部には、図2に示すように、前述したリール2L、2C、2R、リールモータ32L、32C、32R、各リール2L、2C、2Rのリール基準位置をそれぞれ検出可能なリールセンサ33L、33C、33R(図4参照)からなるリールユニット2、外部出力信号を出力するための外部出力基板1000、メダル投入部4から投入されたメダルを貯留するホッパータンク34a、ホッパータンク34aに貯留されたメダルをメダル払出口9より払い出すためのホッパーモータ34b、ホッパーモータ34bの駆動により払い出されたメダルを検出する払出センサ34cからなるホッパーユニット34、電源ボックス100、前面扉1bの開放状態を検出するためのドア開放検出スイッチ25が設けられている。   As shown in FIG. 2, a reel sensor 33L that can detect the reel reference positions of the reels 2L, 2C, and 2R, the reel motors 32L, 32C, and 32R, and the reels 2L, 2C, and 2R, as shown in FIG. , 33C, 33R (see FIG. 4), an external output board 1000 for outputting an external output signal, a hopper tank 34a for storing medals inserted from the medal insertion section 4, and a hopper tank 34a. The hopper unit 34 including the hopper motor 34b for paying out medals from the medal payout opening 9, and the payout sensor 34c for detecting medals paid out by driving the hopper motor 34b, the power box 100, and the front door 1b being opened. A door opening detection switch 25 for detection is provided.

ホッパーユニット34の側部には、ホッパータンク34aから溢れたメダルが貯留されるオーバーフロータンク35が設けられている。オーバーフロータンク35の内部には、貯留された所定量のメダルを検出可能な高さに設けられた左右に離間する一対の導電部材からなる満タンセンサ35aが設けられており、導電部材がオーバーフロータンク35内に貯留されたメダルを介して接触することにより導電したときに内部に貯留されたメダル貯留量が所定量以上となったこと、すなわちオーバーフロータンクが満タン状態となったことを検出できるようになっている。   On the side of the hopper unit 34, an overflow tank 35 is provided for storing medals overflowing from the hopper tank 34a. Inside the overflow tank 35, a full sensor 35 a made up of a pair of electrically conductive members spaced apart from each other and provided at a height capable of detecting a predetermined amount of stored medals is provided. It is possible to detect that the medal storage amount stored in the inside when it is conductive by contacting through the medal stored in the inside exceeds a predetermined amount, that is, that the overflow tank is full. It has become.

電源ボックス100の前面には、後述のBB終了時に打止状態(リセット操作がなされるまでゲームの進行が規制される状態)に制御する打止機能の有効/無効を選択するための打止スイッチ36a、後述のBB終了時に自動精算処理(クレジットとして記憶されているメダルを遊技者の操作によらず精算(返却)する処理)に制御する自動精算機能の有効/無効を選択するための自動精算スイッチ36b、電源投入時(起動時)に設定変更状態または設定確認状態に切り替えるための設定キースイッチ37、通常時においてはエラー状態や打止状態を解除するためのリセットスイッチとして機能し、設定変更状態においては後述する内部抽選の当選確率(出玉率)の設定値を変更するための設定スイッチとして機能するリセット/設定スイッチ38、電源をON/OFFする際に操作される電源スイッチ39が設けられている。   On the front surface of the power supply box 100 is a stop switch for selecting whether to enable / disable a stop function for controlling the stop state at the end of BB, which will be described later (a state in which the progress of the game is restricted until a reset operation is performed). 36a, automatic checkout for selecting whether the automatic checkout function is effective / invalid for controlling automatic checkout processing (processing for adjusting (returning) medals stored as credits regardless of the player's operation) at the end of BB described later The switch 36b functions as a setting key switch 37 for switching to a setting change state or a setting confirmation state when the power is turned on (starting up), and functions as a reset switch for canceling an error state or a stop state in a normal state. In the state, a reset / setting switch functioning as a setting switch for changing the setting value of the winning probability (outtake rate) of internal lottery described later. Chi 38, the power switch 39 is provided which is operated to ON / OFF the power.

また、ドア開放検出スイッチ25は、後述するように設定値を変更する際に操作される設定キースイッチ37、リセット/設定スイッチ38、電源スイッチ39が搭載された電源ボックス100が設けられた側面と対向する側面に設けられている。また、電源ボックス100は、筐体1a内部の下方位置に設けられているのに対し、ドア開放検出スイッチ25は、筐体1a内部の上方位置に設けられている。すなわち、ドア開放検出スイッチ25は、筐体1a内部において、電源ボックス100が設けられている位置に対し、対角する位置に設けられている。   Further, the door opening detection switch 25 has a side surface provided with a power box 100 on which a setting key switch 37, a reset / setting switch 38, and a power switch 39, which are operated when changing setting values, as will be described later, are provided. It is provided on the opposite side. The power supply box 100 is provided at a lower position inside the housing 1a, whereas the door opening detection switch 25 is provided at an upper position inside the housing 1a. That is, the door opening detection switch 25 is provided at a position diagonal to the position where the power supply box 100 is provided inside the housing 1a.

なお、ドア開放検出スイッチ25は、電源ボックス100が設けられた側面と対向する側面あるいは電源ボックス100と対角する位置において、前面扉1bの開放状態を検出するものであれば、筐体1aに設けられているものに限らず、前面扉1bの内側に設けられているものであってもよい。   Note that the door opening detection switch 25 is provided on the housing 1a as long as it detects the open state of the front door 1b at the side facing the side where the power supply box 100 is provided or at a position opposite to the power supply box 100. It is not limited to that provided, and may be provided inside the front door 1b.

本実施の形態におけるドア開放検出スイッチ25としては、反射型の光センサを採用している。たとえば、光センサは、光(可視光線、赤外線など)を発射する投光部と、該光を検出する受光部とを含み、投光部は所定方向に光を発射し、受光部は投光部から発射された光のうち前面扉1bが閉鎖状態であるときにのみ当該前面扉1bに設けられている反射部材によって反射された光を検出することにより、前面扉1bが閉鎖状態であることを特定可能に構成されている。なお、ドア開放検出スイッチ25は、前面扉1bの開閉状態を検出できるものであればよく、反射型の光センサに限るものではなく、透過型のものであってもよく、また前面扉1bの開閉状態に応じてON/OFFするスイッチであってもよい。   As the door opening detection switch 25 in the present embodiment, a reflection type optical sensor is employed. For example, the optical sensor includes a light projecting unit that emits light (visible light, infrared light, and the like) and a light receiving unit that detects the light. The light projecting unit emits light in a predetermined direction, and the light receiving unit projects light. The front door 1b is in the closed state by detecting the light reflected by the reflecting member provided on the front door 1b only when the front door 1b is in the closed state among the light emitted from the section. It is configured to be identifiable. The door opening detection switch 25 may be any switch that can detect the open / closed state of the front door 1b. The door open detection switch 25 is not limited to a reflective optical sensor, and may be a transmissive type. It may be a switch that turns ON / OFF according to the open / closed state.

本実施の形態のスロットマシン1においてゲームを行なう場合には、まず、メダルをメダル投入部4から投入するか、或いはクレジットを使用して賭数を設定する。クレジットを使用するには1枚BETスイッチ5またはMAXBETスイッチ6を操作すればよい。遊技状態に応じて定められた規定数の賭数が設定されると、入賞ラインL1〜L5(図1参照)が有効となり、スタートスイッチ7の操作が有効な状態、すなわち、ゲームが開始可能な状態となる。本実施の形態では、規定数の賭数として遊技状態がRB(BB)では2枚、通常遊技状態では3枚が定められている。なお、遊技状態に対応する規定数のうち最大数を超えてメダルが投入された場合には、その分はクレジットに加算される。   When a game is played in the slot machine 1 of the present embodiment, first, medals are inserted from the medal insertion unit 4 or the bet number is set using credits. In order to use the credit, the single BET switch 5 or the MAXBET switch 6 may be operated. When a predetermined number of bets determined according to the gaming state are set, the pay lines L1 to L5 (see FIG. 1) become effective, and the operation of the start switch 7 is effective, that is, the game can be started. It becomes a state. In the present embodiment, as the specified number of bets, two gaming states are determined in RB (BB) and three in the normal gaming state. In addition, when a medal is inserted exceeding the maximum number out of the prescribed number corresponding to the gaming state, the amount is added to the credit.

入賞ラインとは、各リール2L、2C、2Rの透視窓3に表示された図柄の組合せが入賞図柄の組合せであるかを判定するために設定されるラインである。本実施の形態では、図1に示すように、各リール2L、2C、2Rの中段に並んだ図柄に跨って設定された入賞ラインL1、各リール2L、2C、2Rの上段に並んだ図柄に跨って設定された入賞ラインL2、各リール2L、2C、2Rの下段に並んだ図柄に跨って設定された入賞ラインL3、リール2Lの上段、リール2Cの中段、リール2Rの下段、すなわち右下がりに並んだ図柄に跨って設定された入賞ラインL4、リール2Lの下段、リール2Cの中段、リール2Rの上段、すなわち右上がりに並んだ図柄に跨って設定された入賞ラインL5の5種類が入賞ラインとして定められている。   The winning line is a line that is set to determine whether a combination of symbols displayed on the perspective windows 3 of the reels 2L, 2C, and 2R is a winning symbol combination. In the present embodiment, as shown in FIG. 1, a winning line L1 set across the symbols arranged in the middle stage of each reel 2L, 2C, 2R and the symbols arranged in the upper stage of each reel 2L, 2C, 2R are displayed. The winning line L2 set across the reels 2L, 2C and 2R, the winning line L3 set over the lower symbols, the upper stage of the reel 2L, the middle stage of the reel 2C, the lower stage of the reel 2R, that is, lower right There are 5 types of winning lines L4 set across straddling symbols, the lower line of reel 2L, the middle part of reel 2C, the upper part of reel 2R, that is, the winning line L5 set straddling the symbols lined up to the right It is defined as a line.

ゲームが開始可能な状態でスタートスイッチ7を操作すると、各リール2L、2C、2Rが回転し、各リール2L、2C、2Rの図柄が連続的に変動する。この状態でいずれかのストップスイッチ8L、8C、8Rを操作すると、対応するリール2L、2C、2Rの回転が停止し、透視窓3に表示結果が導出表示される。   When the start switch 7 is operated in a state where the game can be started, the reels 2L, 2C, and 2R rotate, and the symbols of the reels 2L, 2C, and 2R continuously vary. When any one of the stop switches 8L, 8C, 8R is operated in this state, the rotation of the corresponding reels 2L, 2C, 2R is stopped, and the display result is derived and displayed on the fluoroscopic window 3.

そして全てのリール2L、2C、2Rが停止されることで1ゲームが終了し、有効化されたいずれかの入賞ラインL1〜L5上に予め定められた図柄の組合せ(以下、役とも呼ぶ)が各リール2L、2C、2Rの表示結果として停止した場合には入賞が発生し、その入賞に応じて定められた枚数のメダルが遊技者に対して付与され、クレジットに加算される。   When one of the reels 2L, 2C, 2R is stopped, one game is completed, and a predetermined symbol combination (hereinafter also referred to as a role) is set on any of the activated pay lines L1 to L5. When the reels 2L, 2C, and 2R are stopped as a display result, a winning occurs, and a predetermined number of medals are given to the player and added to the credit.

また、クレジットが上限数(本実施の形態では50)に達した場合には、メダルが直接メダル払出口9(図1参照)から払い出されるようになっている。なお、有効化された複数の入賞ライン上にメダルの払出を伴う図柄の組合せが揃った場合には、有効化された入賞ラインに揃った図柄の組合せそれぞれに対して定められた払出枚数を合計し、合計した枚数のメダルが遊技者に対して付与されることとなる。   Further, when the credit reaches the upper limit number (50 in the present embodiment), medals are paid out directly from the medal payout opening 9 (see FIG. 1). If a combination of symbols with payout of medals is arranged on a plurality of activated pay lines, the total number of payouts determined for each combination of symbols arranged on the activated pay line is totaled. The total number of medals is awarded to the player.

ただし、1ゲームで付与されるメダルの払出枚数には、上限(本実施の形態では15枚)が定められており、合計した払出枚数が上限を超える場合には、上限枚数のメダルが付与されることとなる。また、有効化されたいずれかの入賞ラインL1〜L5上に、遊技状態の移行を伴う図柄の組合せが各リール2L、2C、2Rの表示結果として停止した場合には図柄の組合せに応じた遊技状態に移行するようになっている。   However, an upper limit (15 in this embodiment) is set for the number of medals to be awarded in one game. When the total number of medals exceeds the upper limit, the upper limit number of medals is awarded. The Rukoto. In addition, when a combination of symbols accompanying the transition of the gaming state is stopped as a display result of each reel 2L, 2C, 2R on any of the activated pay lines L1 to L5, a game corresponding to the combination of symbols Transition to the state.

図4は、スロットマシン1の構成を示すブロック図である。スロットマシン1には、図4に示すように、遊技制御基板40、演出制御基板90、電源基板101が設けられており、遊技制御基板40によって遊技状態が制御され、演出制御基板90によって遊技状態に応じた演出が制御され、電源基板101によってスロットマシン1を構成する電気部品の駆動電源が生成され、各部に供給される。   FIG. 4 is a block diagram showing a configuration of the slot machine 1. As shown in FIG. 4, the slot machine 1 is provided with a game control board 40, an effect control board 90, and a power supply board 101. The game state is controlled by the game control board 40, and the game state is controlled by the effect control board 90. The production according to the control is controlled, and the power supply board 101 generates the drive power for the electrical components constituting the slot machine 1 and supplies them to each part.

電源基板101には、外部からAC100Vの電源が供給されるとともに、このAC100Vの電源からスロットマシン1を構成する電気部品の駆動に必要な直流電圧が生成され、遊技制御基板40および遊技制御基板40を介して接続された演出制御基板90に供給されるようになっている。   The power supply board 101 is supplied with AC100V power from the outside, and a DC voltage necessary for driving the electrical components constituting the slot machine 1 is generated from the AC100V power supply. The game control board 40 and the game control board 40 It is supplied to the production control board 90 connected through the.

また、電源基板101には、前述したホッパーモータ34b、払出センサ34c、満タンセンサ35a、打止スイッチ36a、自動精算スイッチ36b、設定キースイッチ37、リセット/設定スイッチ38、電源スイッチ39が接続されている。   Further, the above-described hopper motor 34b, payout sensor 34c, full sensor 35a, stop switch 36a, automatic checkout switch 36b, setting key switch 37, reset / setting switch 38, and power switch 39 are connected to the power supply board 101. Yes.

遊技制御基板40には、前述した1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8R、精算スイッチ10、リセットスイッチ23、投入メダルセンサ31、ドア開放検出スイッチ25、リールセンサ33L、33C、33Rが接続されているとともに、電源基板101を介して前述した払出センサ34c、満タンセンサ35a、打止スイッチ36a、自動精算スイッチ36b、設定キースイッチ37、リセット/設定スイッチ38が接続されており、これら接続されたスイッチ類の検出信号が入力されるようになっている。   On the game control board 40, the one-sheet BET switch 5, the MAXBET switch 6, the start switch 7, the stop switches 8L, 8C, 8R, the settlement switch 10, the reset switch 23, the insertion medal sensor 31, the door opening detection switch 25, The reel sensors 33L, 33C, and 33R are connected, and the above-described payout sensor 34c, full sensor 35a, stop switch 36a, automatic settlement switch 36b, setting key switch 37, reset / setting switch 38 are connected via the power supply board 101. Are connected, and the detection signals of these connected switches are inputted.

また、遊技制御基板40には、前述したクレジット表示器11、遊技補助表示器12、ペイアウト表示器13、1〜3BETLED14〜16、投入要求LED17、スタート有効LED18、ウェイト中LED19、リプレイ中LED20、BETスイッチ有効LED21、左、中、右停止有効LED22L、22C、22R、設定値表示器24、流路切替ソレノイド30、リールモータ32L、32C、32Rが接続されているとともに、電源基板101を介してホッパーモータ34bが接続されており、これら電気部品は、遊技制御基板40に搭載されたメイン制御部41の制御に基づいて駆動される。   Further, the game control board 40 includes the credit display 11, the game auxiliary display 12, the payout display 13, 1 to 3 BET LEDs 14 to 16, the insertion request LED 17, the start valid LED 18, the waiting LED 19, the replaying LED 20, and the BET. A switch valid LED 21, left, middle, and right stop valid LEDs 22L, 22C, 22R, a set value display 24, a flow path switching solenoid 30, reel motors 32L, 32C, 32R are connected, and a hopper is connected via the power supply board 101. A motor 34 b is connected, and these electric components are driven based on the control of the main control unit 41 mounted on the game control board 40.

遊技制御基板40には、メイン制御部41、制御用クロック発生回路42、乱数用クロック生成回路43、スイッチ検出回路44、モータ駆動回路45、ソレノイド駆動回路46、LED駆動回路47、電断検出回路48、リセット回路49が搭載されている。   The game control board 40 includes a main control unit 41, a control clock generation circuit 42, a random number clock generation circuit 43, a switch detection circuit 44, a motor drive circuit 45, a solenoid drive circuit 46, an LED drive circuit 47, and a power interruption detection circuit. 48 and a reset circuit 49 are mounted.

メイン制御部41は、1チップマイクロコンピュータにて構成され、後述するROM506に記憶された制御プログラムを実行して、遊技の進行に関する処理を行なうととともに、遊技制御基板40に搭載された制御回路の各部を直接的または間接的に制御する。   The main control unit 41 is constituted by a one-chip microcomputer, executes a control program stored in a ROM 506, which will be described later, and performs processing related to the progress of the game, and also includes a control circuit mounted on the game control board 40. Control each part directly or indirectly.

制御用クロック生成回路42は、メイン制御部41の外部にて、所定周波数の発振信号となる制御用クロックCCLKを生成する。制御用クロック生成回路42により生成された制御用クロックCCLKは、たとえば図5に示すようなメイン制御部41の制御用外部クロック端子EXCを介してクロック回路502に供給される。乱数用クロック生成回路43は、メイン制御部41の外部にて、制御用クロックCCLKの発振周波数とは異なる所定周波数の発振信号となる乱数用クロックRCLKを生成する。   The control clock generation circuit 42 generates a control clock CCLK serving as an oscillation signal having a predetermined frequency outside the main control unit 41. The control clock CCLK generated by the control clock generation circuit 42 is supplied to the clock circuit 502 via the control external clock terminal EXC of the main control unit 41 as shown in FIG. 5, for example. The random number clock generation circuit 43 generates a random number clock RCLK that is an oscillation signal having a predetermined frequency different from the oscillation frequency of the control clock CCLK, outside the main control unit 41.

乱数用クロック生成回路43により生成された乱数用クロックRCLKは、たとえば図5に示すようなメイン制御部41の乱数用外部クロック端子ERCを介して乱数回路509に供給される。一例として、乱数用クロック生成回路43により生成される乱数用クロックRCLKの発振周波数は、制御用クロック生成回路42により生成される制御用クロックCCLKの発振周波数以下となるようにすればよい。   The random number clock RCLK generated by the random number clock generation circuit 43 is supplied to the random number circuit 509 via the random number external clock terminal ERC of the main control unit 41 as shown in FIG. As an example, the oscillation frequency of the random number clock RCLK generated by the random number clock generation circuit 43 may be set to be equal to or lower than the oscillation frequency of the control clock CCLK generated by the control clock generation circuit 42.

スイッチ検出回路44は、遊技制御基板40に直接または電源基板101を介して接続されたスイッチ類から入力された検出信号を取り込んでメイン制御部41に伝送する。モータ駆動回路45は、メイン制御部41から出力されたモータ駆動信号をリールモータ32L、32C、32Rに伝送する。ソレノイド駆動回路46は、メイン制御部41から出力されたソレノイド駆動信号を流路切替ソレノイド30に伝送する。LED駆動回路は、メイン制御部41から出力されたLED駆動信号を遊技制御基板40に接続された各種表示器やLEDに伝送する。   The switch detection circuit 44 takes in detection signals input from switches connected directly to the game control board 40 or via the power supply board 101 and transmits them to the main control unit 41. The motor drive circuit 45 transmits the motor drive signal output from the main control unit 41 to the reel motors 32L, 32C, and 32R. The solenoid drive circuit 46 transmits the solenoid drive signal output from the main control unit 41 to the flow path switching solenoid 30. The LED drive circuit transmits the LED drive signal output from the main control unit 41 to various displays and LEDs connected to the game control board 40.

電断検出回路48は、スロットマシン1に供給される電源電圧を監視し、電圧低下を検出したときに、その旨を示す電圧低下信号をメイン制御部41に対して出力する。リセット回路49は、電源投入時または電源遮断時などの電源が不安定な状態においてメイン制御部41にリセット信号を与える。   The power interruption detection circuit 48 monitors the power supply voltage supplied to the slot machine 1 and outputs a voltage drop signal indicating that to the main control unit 41 when a voltage drop is detected. The reset circuit 49 gives a reset signal to the main control unit 41 in a state where the power supply is unstable, such as when the power is turned on or when the power is turned off.

図5は、遊技制御基板40に搭載されたメイン制御部41の構成例を示している。図5に示すメイン制御部41は、1チップマイクロコンピュータであり、外部バスインタフェース501と、クロック回路502と、固有情報記憶回路503と、リセット/割込コントローラ504と、CPU505と、ROM506と、RAM507と、CTC(カウンタ/タイマサーキット)508と、乱数回路509と、PIP(パラレルインプットポート)510と、シリアル通信回路511と、アドレスデコード回路512とを備えて構成される。   FIG. 5 shows a configuration example of the main control unit 41 mounted on the game control board 40. The main control unit 41 shown in FIG. 5 is a one-chip microcomputer, and includes an external bus interface 501, a clock circuit 502, a specific information storage circuit 503, a reset / interrupt controller 504, a CPU 505, a ROM 506, and a RAM 507. A CTC (counter / timer circuit) 508, a random number circuit 509, a PIP (parallel input port) 510, a serial communication circuit 511, and an address decoding circuit 512.

図6は、メイン制御部41におけるアドレスマップの一例を示している。図6に示すように、アドレス0000H〜アドレス1FFFHの領域は、ROM506に割り当てられ、ユーザプログラムエリアとプログラム管理エリアとを含んでいる。図7(A)は、ROM506におけるプログラム管理エリアの主要部分について、用途や内容の一例を示している。   FIG. 6 shows an example of an address map in the main control unit 41. As shown in FIG. 6, the area from address 0000H to address 1FFFH is allocated to the ROM 506 and includes a user program area and a program management area. FIG. 7A shows an example of the usage and contents of the main part of the program management area in the ROM 506.

アドレス2000H〜アドレス20FFHの領域は、メイン制御部41の内蔵レジスタに割り当てられる内蔵レジスタエリアである。図7(B)は、内蔵レジスタエリアの主要部分について、用途や内容の一例を示している。アドレス7E00H〜アドレス7FFFHの領域は、RAM507に割り当てられたワークエリアであり、I/Oマップやメモリマップに割り付けることができる。アドレスFDD0H〜アドレスFDFBHの領域は、アドレスデコード回路512に割り当てられるXCSデコードエリアである。   The area from address 2000H to address 20FFH is a built-in register area assigned to the built-in register of the main control unit 41. FIG. 7B shows an example of the usage and contents of the main part of the built-in register area. An area from address 7E00H to address 7FFFH is a work area assigned to the RAM 507, and can be assigned to an I / O map or a memory map. An area from address FDD0H to address FDFBH is an XCS decode area allocated to the address decode circuit 512.

プログラム管理エリアは、CPU505がユーザプログラムを実行するために必要な情報を格納する記憶領域である。図7(A)に示すように、プログラム管理エリアには、ヘッダKHDR、機能設定KFCS、第1乱数初期設定KRS1、第2乱数初期設定KRS2、割込初期設定KIIS、セキュリティ時間設定KSESなどが、含まれている。   The program management area is a storage area for storing information necessary for the CPU 505 to execute the user program. As shown in FIG. 7A, the program management area includes a header KHDR, a function setting KFCS, a first random number initial setting KRS1, a second random number initial setting KRS2, an interrupt initial setting KIIS, a security time setting KSES, include.

プログラム管理エリアに記憶されるヘッダKHDRは、メイン制御部41における内部データの読出設定を示す。図8(A)は、ヘッダKHDRにおける設定データと動作との対応関係を例示している。ここで、メイン制御部41では、ROM読出防止機能と、バス出力マスク機能とを設定可能である。ROM読出防止機能は、メイン制御部41が備えるROM506の記憶データについて、読出動作を許可又は禁止する機能であり、読出禁止に設定された状態では、ROM506の記憶データを読み出すことができない。バス出力マスク機能は、外部バスインタフェース501に接続された外部装置からメイン制御部41の内部データに対する読出要求があった場合に、外部バスインタフェース501におけるアドレスバス出力、データバス出力および制御信号出力にマスクをかけることにより、外部装置から内部データの読み出しを不能にする機能である。   A header KHDR stored in the program management area indicates reading setting of internal data in the main control unit 41. FIG. 8A illustrates the correspondence between setting data and operation in the header KHDR. Here, the main control unit 41 can set a ROM read prevention function and a bus output mask function. The ROM read prevention function is a function for permitting or prohibiting the read operation for the data stored in the ROM 506 provided in the main control unit 41. When the read prohibition is set, the data stored in the ROM 506 cannot be read. The bus output mask function is used for address bus output, data bus output, and control signal output in the external bus interface 501 when an external device connected to the external bus interface 501 makes a read request for internal data of the main control unit 41. This function disables reading of internal data from an external device by applying a mask.

図8(A)に示すように、ヘッダKHDRの設定データに対応して、ROM読出防止機能やバス出力マスク機能の動作組合せが異なるように設定される。図8(A)に示す設定データのうち、ROM読出が許可されるとともに、バス出力マスクが有効となる設定データは、バス出力マスク有効データともいう。また、ROM読出が禁止されるとともに、バス出力マスクが有効となる設定データ(全て「00H」)は、ROM読出禁止データともいう。ROM読出が許可されるとともに、バス出力マスクが無効となる設定データは、バス出力マスク無効データともいう。   As shown in FIG. 8A, the operation combination of the ROM read prevention function and the bus output mask function is set differently in accordance with the setting data of the header KHDR. Of the setting data shown in FIG. 8A, the setting data for which ROM reading is permitted and the bus output mask is valid is also referred to as bus output mask valid data. Further, the setting data (all “00H”) in which ROM reading is prohibited and the bus output mask is valid is also referred to as ROM reading prohibiting data. The setting data for which ROM reading is permitted and the bus output mask becomes invalid is also referred to as bus output mask invalid data.

プログラム管理エリアに記憶される機能設定KFCSは、メイン制御部41におけるウォッチドッグタイマの動作設定や、各種機能兼用端子の使用設定を示す。図8(B)は、機能設定KFCSにおける設定内容の一例を示している。   The function setting KFCS stored in the program management area indicates the operation setting of the watchdog timer in the main control unit 41 and the use setting of various function shared terminals. FIG. 8B shows an example of setting contents in the function setting KFCS.

機能設定KFCSのビット番号[7−5]は、たとえばリセット/割込コントローラ504における割込要因として設定可能なウォッチドッグタイマの動作許可/禁止や、許可した場合の周期を示している。機能設定KFCSのビット番号[4]は、メイン制御部41における所定の機能兼用端子(第1兼用端子)を、シリアル通信回路511が使用する第2チャネル送信端子TXBとするか、アドレスデコード回路512が使用するチップセレクト出力端子XCS13とするかを指定するTXB端子設定である。   The bit number [7-5] of the function setting KFCS indicates, for example, permission / prohibition of operation of the watchdog timer that can be set as an interrupt factor in the reset / interrupt controller 504, and a cycle when it is permitted. The bit number [4] of the function setting KFCS indicates that the predetermined function shared terminal (first shared terminal) in the main control unit 41 is the second channel transmission terminal TXB used by the serial communication circuit 511 or the address decoding circuit 512. Is a TXB terminal setting that designates whether to use the chip select output terminal XCS13.

図8(B)に示す例において、機能設定KFCSのビット番号[4]におけるビット値が“0”であれば、第1兼用端子がシリアル通信回路511での第2チャネル送信に使用される第2チャネル送信端子TXBの設定となる。これに対して、そのビット値が“1”であれば、第1兼用端子がアドレスデコード回路512で使用されるチップセレクト出力端子XCS13の設定となる。本実施の形態では、機能設定KFCSのビット番号[4]を“0”として、第1兼用端子を第2チャネル送信端子TXBに設定することにより、演出制御基板90との間でのシリアル通信を可能にする。   In the example shown in FIG. 8B, if the bit value in the bit number [4] of the function setting KFCS is “0”, the first shared terminal is used for the second channel transmission in the serial communication circuit 511. This is the setting for the 2-channel transmission terminal TXB. On the other hand, if the bit value is “1”, the first dual-purpose terminal is set to the chip select output terminal XCS13 used in the address decode circuit 512. In the present embodiment, the bit number [4] of the function setting KFCS is set to “0”, and the first shared terminal is set to the second channel transmission terminal TXB, so that serial communication with the effect control board 90 is performed. to enable.

機能設定KFCSのビット番号[3]は、メイン制御部41における所定の機能兼用端子(第2兼用端子)を、シリアル通信回路511が使用する第1チャネル送信端子TXAとするか、アドレスデコード回路512が使用するチップセレクト出力端子XCS12とするかを示すTXA端子設定である。図8(B)に示す例において、機能設定KFCSのビット番号[3]におけるビット値が“0”であれば、第2兼用端子がシリアル通信回路511での第1チャネル送信に使用される第1チャネル送信端子TXAの設定となる。これに対して、そのビット値が“1”であれば、第2兼用端子がアドレスデコード回路512で使用されるチップセレクト出力端子XCS12の設定となる。本実施の形態では、機能設定KFCSのビット番号[3]を“0”として、第2兼用端子を第1チャネル送信端子TXAに設定しているが、第1チャンネル受信は未使用とされている。   The bit number [3] of the function setting KFCS indicates that the predetermined function shared terminal (second shared terminal) in the main control unit 41 is the first channel transmission terminal TXA used by the serial communication circuit 511 or the address decoding circuit 512. Is a TXA terminal setting indicating whether the chip select output terminal XCS12 is used. In the example shown in FIG. 8B, if the bit value in the bit number [3] of the function setting KFCS is “0”, the second shared terminal is used for the first channel transmission in the serial communication circuit 511. 1 channel transmission terminal TXA is set. On the other hand, if the bit value is “1”, the second dual-purpose terminal is set to the chip select output terminal XCS12 used in the address decode circuit 512. In the present embodiment, the bit number [3] of the function setting KFCS is set to “0” and the second shared terminal is set to the first channel transmission terminal TXA, but the first channel reception is unused. .

機能設定KFCSのビット番号[2]は、メイン制御部41における所定の機能兼用端子(第3兼用端子)を、シリアル通信回路511が使用する第1チャネル受信端子RXAとするか、PIP510が使用する入力ポートP5とするかを示すRXA端子設定である。図8(B)に示す例において、機能設定KFCSのビット番号[2]におけるビット値が“0”であれば、第3兼用端子がシリアル通信回路511での第1チャネル受信に使用される第1チャネル受信端子RXAの設定となる。これに対して、そのビット値が“1”であれば、第3兼用端子がPIP510で使用される入力ポートP5の設定となる。本実施の形態では、機能設定KFCSのビット番号[2]を“0”として、第3兼用端子を第1チャネル受信端子RXAに設定しているが、第1チャンネル受信は未使用とされている。   For the bit number [2] of the function setting KFCS, a predetermined function shared terminal (third shared terminal) in the main control unit 41 is used as the first channel reception terminal RXA used by the serial communication circuit 511, or is used by the PIP 510. This is an RXA terminal setting indicating whether the input port is P5. In the example shown in FIG. 8B, if the bit value in the bit number [2] of the function setting KFCS is “0”, the third shared terminal is used for the first channel reception in the serial communication circuit 511. 1 channel receiving terminal RXA is set. On the other hand, if the bit value is “1”, the third shared terminal is set to the input port P5 used in the PIP 510. In the present embodiment, the bit number [2] of the function setting KFCS is set to “0” and the third shared terminal is set to the first channel reception terminal RXA, but the first channel reception is unused. .

機能設定KFCSのビット番号[1]は、メイン制御部41における所定の機能兼用端子(第4兼用端子)を、CPU505等に接続される外部ノンマスカブル割込端子XNMIとするか、PIP510が使用する入力ポートP4とするかを示すNMI接続設定である。図8(B)に示す例において、機能設定KFCSのビット番号[1]におけるビット値が“0”であれば、第4兼用端子がCPU505等に接続される外部ノンマスカブル割込端子XNMIの設定となる(CPU接続)。これに対して、そのビット値が“1”であれば、第4兼用端子がPIP510で使用される入力ポートP4の設定となる(CPU非接続)。本実施の形態では、機能設定KFCSのビット番号[1]を“1”として、第4兼用端子をPIP510で使用される入力ポートP4に設定しているが、入力ポートP4は未使用とされている。   The bit number [1] of the function setting KFCS is an input used by the PIP 510, or a predetermined function shared terminal (fourth shared terminal) in the main control unit 41 is an external non-maskable interrupt terminal XNMI connected to the CPU 505 or the like. This is an NMI connection setting indicating whether to set the port P4. In the example shown in FIG. 8B, if the bit value [1] in the bit number [1] of the function setting KFCS is “0”, the setting of the external non-maskable interrupt terminal XNMI whose fourth shared terminal is connected to the CPU 505 and the like (CPU connection). On the other hand, if the bit value is “1”, the fourth shared terminal is set for the input port P4 used in the PIP 510 (CPU disconnected). In this embodiment, the bit number [1] of the function setting KFCS is set to “1” and the fourth shared terminal is set to the input port P4 used in the PIP 510, but the input port P4 is unused. Yes.

機能設定KFCSのビット番号[0]は、メイン制御部41における所定の機能兼用端子(第5兼用端子)を、CPU505等に接続される外部マスカブル割込端子XINTとするか、PIP510が使用する入力ポートP3とするかを示すXINT接続設定である。図8(B)に示す例において、機能設定KFCSのビット番号[0]におけるビット値が“0”であれば、第5兼用端子がCPU505等に接続される外部マスカブル割込端子XINTの設定となる(CPU接続)。これに対して、そのビット値が“1”であれば、第5兼用端子がPIP510で使用される入力ポートP3の設定となる(CPU非接続)。本実施の形態では、機能設定KFCSのビット番号[0]を“0”として、第4兼用端子をCPU505等に接続される外部マスカブル割込端子XINTに設定することにより、電断検出回路48からの電圧低下信号が入力される。   The bit number [0] of the function setting KFCS is an input used by the PIP 510, or the predetermined function shared terminal (fifth shared terminal) in the main control unit 41 is set to the external maskable interrupt terminal XINT connected to the CPU 505 or the like. This is an XINT connection setting indicating whether the port is P3. In the example shown in FIG. 8B, if the bit value in the bit number [0] of the function setting KFCS is “0”, the setting of the external maskable interrupt terminal XINT in which the fifth shared terminal is connected to the CPU 505 and the like (CPU connection). On the other hand, if the bit value is “1”, the fifth shared terminal is set for the input port P3 used in the PIP 510 (CPU disconnected). In the present embodiment, the bit number [0] of the function setting KFCS is set to “0”, and the fourth shared terminal is set to the external maskable interrupt terminal XINT connected to the CPU 505 or the like. The voltage drop signal is input.

プログラム管理エリアに記憶される第1乱数初期設定KRS1および第2乱数初期設定KRS2は、乱数回路509の初期設定を示す。図9(A)は、第1乱数初期設定KRS1における設定内容の一例を示している。図9(B)は、第2乱数初期設定KRS2における設定内容の一例を示している。   The first random number initial setting KRS1 and the second random number initial setting KRS2 stored in the program management area indicate the initial setting of the random number circuit 509. FIG. 9A shows an example of the setting contents in the first random number initial setting KRS1. FIG. 9B shows an example of setting contents in the second random number initial setting KRS2.

第1乱数初期設定KRS1のビット番号[3]は、乱数回路509を使用するか否かを示す乱数回路使用設定である。図9(A)に示す例において、第1乱数初期設定KRS1のビット番号[3]におけるビット値が“0”であれば、乱数回路509を使用しない設定となる一方(未使用)、“1”であれば、乱数回路509を使用する設定となる(使用)。本実施の形態では、第1乱数初期設定KRS1のビット番号[3]を“1”として、乱数回路509を使用可能に設定する。   The bit number [3] of the first random number initial setting KRS1 is a random number circuit use setting indicating whether to use the random number circuit 509 or not. In the example shown in FIG. 9A, if the bit value in the bit number [3] of the first random number initial setting KRS1 is “0”, the random number circuit 509 is not used (unused), but “1”. "Is set to use the random number circuit 509 (use). In this embodiment, the random number circuit 509 is set to be usable by setting the bit number [3] of the first random number initial setting KRS1 to “1”.

第1乱数初期設定KRS1のビット番号[2]は、乱数回路509における乱数値となる数値データの更新に用いられる乱数更新クロックRGK(図12参照)を、内部システムクロックSCLKとするか、乱数用クロックRCLKの2分周とするかを示す乱数更新クロック設定である。図9(A)に示す例において、第1乱数初期設定KRS1のビット番号[2]におけるビット値が“0”であれば、内部システムクロックSCLKを乱数更新クロックRGKに用いる設定となる一方、“1”であれば、乱数用クロックRCLKを2分周して乱数更新クロックRGKに用いる設定となる。本実施の形態では、第1乱数初期設定KRS1のビット番号[2]を“1”として、乱数用クロックRCLKを2分周して乱数更新クロックRGKに用いる設定とする。   The bit number [2] of the first random number initial setting KRS1 uses the random number update clock RGK (see FIG. 12) used for updating the numerical data as the random number value in the random number circuit 509 as the internal system clock SCLK or for the random number This is a random number update clock setting indicating whether the clock RCLK is divided by two. In the example shown in FIG. 9A, if the bit value in the bit number [2] of the first random number initial setting KRS1 is “0”, the internal system clock SCLK is set to be used as the random number update clock RGK. If it is 1 ″, the random number clock RCLK is divided by two and used as the random number update clock RGK. In the present embodiment, the bit number [2] of the first random number initial setting KRS1 is set to “1”, and the random number clock RCLK is divided by two to be used as the random number update clock RGK.

第1乱数初期設定KRS1のビット番号[1−0]は、乱数回路509における乱数更新規則を変更するか否かや、変更する場合における変更方式を示す乱数更新規則設定である。図9(A)に示す例において、第1乱数初期設定KRS1のビット番号[1−0]におけるビット値が“00”であれば、乱数更新規則を変更しない設定となり、“01”であれば、2周目以降にて乱数更新規則をソフトウェアにより変更する設定となり、“10”であれば、2周目以降にて乱数更新規則を自動で変更する設定となる。   The bit number [1-0] of the first random number initial setting KRS1 is a random number update rule setting indicating whether or not to change the random number update rule in the random number circuit 509 and the change method in the case of the change. In the example shown in FIG. 9A, if the bit value in the bit number [1-0] of the first random number initial setting KRS1 is “00”, the random number update rule is not changed, and if it is “01”. The setting for changing the random number update rule by software is made after the second round, and if it is “10”, the random number update rule is automatically changed after the second round.

第2乱数初期設定KRS2のビット番号[3−2]は、固定のビット値“00”が設定される。なお、図9(B)における「00B」の“B”は2進数表示であることを示す。第2乱数初期設定KRS2のビット番号[1−0]は、乱数回路509における乱数値となる数値データでのスタート値に関する設定を示す。図9(B)に示す例において、第2乱数初期設定KRS2のビット番号[1]におけるビット値が“0”であれば、スタート値が所定のデフォルト値0001Hに設定される一方、“1”であるときには、メイン制御部41毎に付与された固有の識別情報であるIDナンバーに基づく値がスタート値に設定される。   The bit number [3-2] of the second random number initial setting KRS2 is set to a fixed bit value “00”. Note that “B” of “00B” in FIG. 9B indicates binary display. The bit number [1-0] of the second random number initial setting KRS2 indicates the setting relating to the start value in the numerical data that becomes the random value in the random number circuit 509. In the example shown in FIG. 9B, if the bit value in the bit number [1] of the second random number initial setting KRS2 is “0”, the start value is set to a predetermined default value 0001H, while “1”. Is set to a value based on an ID number, which is unique identification information given to each main control unit 41.

また、図9(B)に示す例では、第2乱数初期設定KRS2のビット番号[0]におけるビット値が“0”であれば、システムリセット毎にスタート値を変更しない設定となる一方、“1”であるときには、システムリセット毎にスタート値を変更する設定となる。なお、スタート値をIDナンバーに基づく値に設定する場合には、IDナンバーに所定のスクランブル処理を施す演算や、IDナンバーを用いた加算・減算・乗算・除算などの演算の一部又は全部を実行して、算出された値をスタート値に用いるようにすればよい。   In the example shown in FIG. 9B, if the bit value in the bit number [0] of the second random number initial setting KRS2 is “0”, the start value is not changed every time the system is reset. When it is 1 ″, the start value is changed every time the system is reset. In addition, when setting the start value to a value based on the ID number, a part or all of the calculation for performing a predetermined scramble process on the ID number and the calculation such as addition / subtraction / multiplication / division using the ID number are performed. It is only necessary to execute and use the calculated value as the start value.

また、スタート値をシステムリセット毎に変更する場合には、たとえばメイン制御部41に内蔵されたフリーランカウンタのカウント値を、システムリセットの発生時にメイン制御部41が備える所定の内蔵レジスタ(乱数スタート値用レジスタ)に格納する。そして、初期設定時に乱数スタート値用レジスタの格納値をそのまま用いること、或いは、その格納値を所定の演算関数(たとえばハッシュ関数)に代入して得られた値を用いることなどにより、スタート値がランダムに決定されればよい。   When the start value is changed at each system reset, for example, the count value of the free run counter built in the main control unit 41 is set to a predetermined internal register (random number start) provided in the main control unit 41 when the system reset occurs. Value register). Then, by using the stored value of the random number start value register as it is at the time of initial setting, or by using a value obtained by substituting the stored value into a predetermined arithmetic function (for example, a hash function), the start value is It may be determined at random.

フリーランカウンタは、遊技制御基板40におけるバックアップ箇所と共通のバックアップ電源を用いてバックアップされるものであればよい。或いは、フリーランカウンタは、RAM507におけるバックアップ領域などに用いられるバックアップ電源とは別個に設けられた電源によりバックアップされてもよい。こうして、フリーランカウンタがパックアップ電源によってバックアップされることで、電力供給が停止した場合でも、所定期間はフリーランカウンタにおけるカウント値が保存されることになる。   The free-run counter only needs to be backed up using a backup power source common to the backup location on the game control board 40. Alternatively, the free-run counter may be backed up by a power source provided separately from a backup power source used for a backup area in the RAM 507 or the like. In this way, the free-run counter is backed up by the backup power supply, so that the count value in the free-run counter is stored for a predetermined period even when the power supply is stopped.

なお、乱数回路509にて乱数値となる数値データを生成するための回路が2系統(第1および第2チャネル対応)設けられる場合には、図9(A)および(B)に示す第1乱数初期設定KRS1のビット番号[3−0]と第2乱数初期設定KRS2のビット番号[3−0]とを、第1チャネルにおける初期設定を示すものとして使用する。その一方で、第1乱数初期設定KRS1のビット番号[7−4]や第2乱数初期設定KRS2のビット番号[7−4]を(図9(A)および(B)では省略)、第2チャネルにおける初期設定を示すものとして使用すればよい。   Note that when two systems (corresponding to the first and second channels) for generating numerical data to be random numbers in the random number circuit 509 are provided, the first shown in FIGS. 9A and 9B. The bit number [3-0] of the random number initial setting KRS1 and the bit number [3-0] of the second random number initial setting KRS2 are used to indicate the initial setting in the first channel. On the other hand, the bit number [7-4] of the first random number initial setting KRS1 and the bit number [7-4] of the second random number initial setting KRS2 (omitted in FIGS. 9A and 9B), the second It may be used as an indication of the initial setting in the channel.

プログラム管理エリアに記憶される割込初期設定KIISは、メイン制御部41にて発生するマスカブル割込の取扱いに関する初期設定を示す。図9(C)は、割込初期設定KIISにおける設定内容の一例を示している。   The interrupt initial setting KIIS stored in the program management area indicates an initial setting related to handling of maskable interrupts generated in the main control unit 41. FIG. 9C shows an example of setting contents in the interrupt initial setting KIIS.

割込初期設定KIISのビット番号[7−4]では、割込ベクタの上位4ビットを設定する。割込初期設定KIISのビット番号[3−0]では、マスカブル割込要因の優先度の組合せを設定する。図9(C)に示す例において、割込初期設定KIISのビット番号[3−0]により「00H」〜「02H」および「06H」のいずれかが指定されれば、CTC508からのマスカブル割込要因を最優先とする優先度の組合せが設定される。これに対して、「03H」および「07H」のいずれかが指定されれば、乱数回路509からのマスカブル割込要因を最優先とする優先度の組合せが設定される。また、「04H」および「05H」のいずれかが指定されれば、シリアル通信回路511からのマスカブル割込要因を最優先とする優先度の組合せが設定される。なお、同一回路からのマスカブル割込要因を最優先とする優先度の組合せでも、指定値が異なる場合には、最優先となるマスカブル割込要因の種類や第2順位以下における優先度の組合せなどが異なっている。   In the bit number [7-4] of the interrupt initial setting KIIS, the upper 4 bits of the interrupt vector are set. In the bit number [3-0] of the interrupt initial setting KIIS, a combination of priority levels of maskable interrupt factors is set. In the example shown in FIG. 9C, if any of “00H” to “02H” and “06H” is specified by the bit number [3-0] of the interrupt initial setting KIIS, the maskable interrupt from the CTC 508 A combination of priorities with the factor as the highest priority is set. On the other hand, if any one of “03H” and “07H” is specified, a combination of priorities with the highest priority given to the maskable interrupt factor from the random number circuit 509 is set. If either “04H” or “05H” is designated, a combination of priorities that gives the highest priority to the maskable interrupt factor from the serial communication circuit 511 is set. In addition, even if the priority combination has the highest priority for maskable interrupt factors from the same circuit, if the specified value is different, the type of maskable interrupt factor that has the highest priority, the priority combination in the second or lower order, etc. Is different.

プログラム管理エリアに記憶されるセキュリティ時間設定KSESは、乱数用クロックRCLKの周波数を監視する場合に異常を検知する周波数や、メイン制御部41の動作開始時などに移行するセキュリティモードの時間(セキュリティ時間)に関する設定を示す。ここで、メイン制御部41の動作モードがセキュリティモードであるときには、所定のセキュリティチェック処理が実行されて、ROM506の記憶内容が変更されたか否かが検査される。図10(A)は、セキュリティ時間設定KSESにおける設定内容の一例を示している。   The security time setting KSES stored in the program management area is the frequency at which an abnormality is detected when monitoring the frequency of the random number clock RCLK, the time of the security mode in which the main control unit 41 starts operation (security time). ). Here, when the operation mode of the main control unit 41 is the security mode, a predetermined security check process is executed to check whether or not the contents stored in the ROM 506 have been changed. FIG. 10A shows an example of setting contents in the security time setting KSES.

セキュリティ時間設定KSESのビット番号[7−6]は、乱数用クロックRCLKの周波数を監視する場合に異常が検出される周波数を示す乱数用クロック異常検出設定である。図10(B)は、セキュリティ時間設定KSESのビット番号[7−6]における設定内容の一例を示している。セキュリティ時間設定KSESのビット番号[7−6]は、内部システムクロックSCLKの周波数に基づき、乱数用クロックRCLKの周波数が異常と検知される基準値(判定値)を指定する。セキュリティ時間設定KSESのビット番号「5」は、固定のビット値“0”が設定される。   Bit number [7-6] of security time setting KSES is a random number clock abnormality detection setting indicating a frequency at which an abnormality is detected when the frequency of random number clock RCLK is monitored. FIG. 10B shows an example of setting contents in the bit number [7-6] of the security time setting KSES. The bit number [7-6] of the security time setting KSES specifies a reference value (determination value) at which the frequency of the random number clock RCLK is detected as abnormal based on the frequency of the internal system clock SCLK. The bit number “5” of the security time setting KSES is set to a fixed bit value “0”.

セキュリティ時間設定KSESのビット番号[4−3]は、セキュリティ時間をシステムリセット毎にランダムな時間分延長する場合の時間設定を示す。図10(C)は、セキュリティ時間設定KSESのビット番号[4−3]における設定内容の一例を示している。図10(C)に示す例において、セキュリティ時間設定KSESのビット番号[4−3]におけるビット値が“00”であれば、ランダムな時間延長を行なわない設定となる。これに対して、そのビット値が“01”であればショートモードの設定となり、“10”であればロングモードの設定となる。   The bit number [4-3] of the security time setting KSES indicates a time setting when the security time is extended by a random time every system reset. FIG. 10C shows an example of setting contents in the bit number [4-3] of the security time setting KSES. In the example shown in FIG. 10C, if the bit value in the bit number [4-3] of the security time setting KSES is “00”, the random time extension is not performed. On the other hand, if the bit value is “01”, the short mode is set, and if the bit value is “10”, the long mode is set.

ここで、ショートモードやロングモードが指定された場合には、たとえばメイン制御部41に内蔵されたフリーランカウンタのカウント値を、システムリセットの発生時にメイン制御部41が備える所定の内蔵レジスタ(可変セキュリティ時間用レジスタ)に格納する。そして、初期設定時に可変セキュリティ時間用レジスタの格納値をそのまま用いること、或いは、その格納値を所定の演算関数(たとえばハッシュ関数)に代入して得られた値を用いることなどにより、セキュリティ時間を延長する際の延長時間がランダムに決定されればよい。   Here, when the short mode or the long mode is designated, for example, the count value of the free run counter built in the main control unit 41 is set to a predetermined built-in register (variable) included in the main control unit 41 when a system reset occurs. Store in the security time register. Then, the security time can be reduced by using the stored value of the variable security time register as it is at the time of initial setting or by using the value obtained by substituting the stored value into a predetermined arithmetic function (for example, a hash function). What is necessary is just to determine the extension time at the time of extending at random.

一例として、内部システムクロックSCLKの周波数が6.0MHzである場合には、ショートモードにおいて0〜680μs(マイクロ秒)の範囲で延長時間がランダムに決定され、ロングモードにおいて0〜348,160μsの範囲で延長時間がランダムに決定される。また、他の一例として、内部システムクロックSCLKの周波数が10.0MHzである場合には、ショートモードにおいて0〜408μsの範囲で延長時間がランダムに決定され、ロングモードにおいて0〜208,896μsの範囲で延長時間がランダムに決定される。なお、セキュリティ時間を延長する際の延長時間をシステムリセット毎にランダムに決定するために用いられるフリーランカウンタは、乱数回路509にて生成される乱数のスタート値をシステムリセット毎にランダムに決定するために用いられるフリーランカウンタと、同一のカウンタであってもよいし、別個に設けられたカウンタであってもよい。   As an example, when the frequency of the internal system clock SCLK is 6.0 MHz, the extension time is randomly determined in the range of 0 to 680 μs (microseconds) in the short mode, and in the range of 0 to 348, 160 μs in the long mode. The extension time is determined at random. As another example, when the frequency of the internal system clock SCLK is 10.0 MHz, the extension time is randomly determined in the range of 0 to 408 μs in the short mode, and in the range of 0 to 208,896 μs in the long mode. The extension time is determined at random. The free-run counter used for randomly determining the extension time for extending the security time for each system reset randomly determines the start value of the random number generated by the random number circuit 509 for each system reset. Therefore, the counter may be the same as the free-run counter used for the purpose, or may be a counter provided separately.

セキュリティ時間設定KSESのビット番号[2−0]は、セキュリティ時間を固定時間に加えて予め選択可能な複数の延長時間のいずれかとする場合の時間設定を示す。図10(D)は、セキュリティ時間設定KSESのビット番号[2−0]における設定内容の一例を示している。図10(D)に示す例において、セキュリティ時間設定KSESのビット番号[2−0]におけるビット値が“000”であれば、固定時間に加える延長時間がなく延長しない設定となる。これに対して、そのビット値が“000”以外の値であれば、内部システムクロックSCLKの周期TSCLKを用いて定められる複数の延長時間のいずれかに設定される。この場合には、指定されたビット値に応じて、異なる延長時間の設定となる。 Bit number [2-0] of security time setting KSES indicates time setting when the security time is set to one of a plurality of pre-selectable extended times in addition to the fixed time. FIG. 10D shows an example of setting contents in the bit number [2-0] of the security time setting KSES. In the example shown in FIG. 10D, if the bit value in the bit number [2-0] of the security time setting KSES is “000”, there is no extension time added to the fixed time, and no setting is made. On the other hand, if the bit value is a value other than “000”, it is set to one of a plurality of extension times determined using the cycle T SCLK of the internal system clock SCLK. In this case, a different extension time is set according to the designated bit value.

一例として、内部システムクロックSCLKの周波数が6.0MHzである場合に、セキュリティ時間設定KSESのビット番号[2−0]におけるビット値が“001”であれば、固定時間に加えて約699.1ms(ミリ秒)の延長時間が設定される。また、他の一例として、内部システムクロックSCLKの周波数が10.0MHzである場合に、セキュリティ時間設定KSESのビット番号[2−0]におけるビット値が“001”であれば、固定時間に加えて約419.4msの延長時間が設定される。   As an example, if the bit value [2-0] of the security time setting KSES is “001” when the frequency of the internal system clock SCLK is 6.0 MHz, about 699.1 ms in addition to the fixed time. An extension time of (milliseconds) is set. As another example, when the frequency of the internal system clock SCLK is 10.0 MHz and the bit value in the bit number [2-0] of the security time setting KSES is “001”, in addition to the fixed time An extension time of about 419.4 ms is set.

また、セキュリティ時間設定KSESのビット番号[4−3]におけるビット値によりショートモード又はロングモードを設定するとともに、セキュリティ時間設定KSESのビット番号[2−0]におけるビット値を“000”以外とすることにより固定時間に加える延長時間を設定することもできる。この場合には、ビット番号[2−0]におけるビット値に対応した延長時間と、ビット番号[4−3]におけるビット値に基づいてランダムに決定された延長時間との双方が、固定時間に加算されて、メイン制御部41がセキュリティモードとなるセキュリティ時間が決定されることになる。   Further, the short mode or the long mode is set by the bit value [4-3] of the security time setting KSES, and the bit value in the bit number [2-0] of the security time setting KSES is set to other than “000”. Thus, it is possible to set an extension time to be added to the fixed time. In this case, both the extension time corresponding to the bit value in the bit number [2-0] and the extension time randomly determined based on the bit value in the bit number [4-3] are fixed times. By adding, the security time for the main control unit 41 to be in the security mode is determined.

図5に示すメイン制御部41が備える外部バスインタフェース501は、メイン制御部41を構成するチップの外部バスと内部バスとのインタフェース機能や、アドレスバス、データバスおよび各制御信号の方向制御機能などを有するバスインタフェースである。たとえば、外部バスインタフェース501は、メイン制御部41に外付けされた外部メモリや外部入出力装置などに接続され、これらの外部装置との間でアドレス信号やデータ信号、各種の制御信号などを送受信するものであればよい。この実施の形態において、外部バスインタフェース501には、内部リソースアクセス制御回路501Aが含まれている。   The external bus interface 501 provided in the main control unit 41 shown in FIG. 5 is an interface function between the external bus and the internal bus of the chip constituting the main control unit 41, an address bus, a data bus, and a direction control function of each control signal. Is a bus interface. For example, the external bus interface 501 is connected to an external memory or an external input / output device externally attached to the main control unit 41, and transmits / receives address signals, data signals, various control signals, and the like to / from these external devices. Anything to do. In this embodiment, the external bus interface 501 includes an internal resource access control circuit 501A.

内部リソースアクセス制御回路501Aは、外部バスインタフェース501を介した外部装置からメイン制御部41の内部データに対するアクセスを制御して、たとえばROM506に記憶されたゲーム制御用プログラムや固定データといった、内部データの不適切な外部読出を制限するための回路である。ここで、外部バスインタフェース501には、たとえばインサーキットエミュレータ(ICE)といった回路解析装置が、外部装置として接続されることがある。   The internal resource access control circuit 501A controls access to internal data of the main control unit 41 from an external device via the external bus interface 501, and stores internal data such as a game control program and fixed data stored in the ROM 506, for example. This is a circuit for limiting inappropriate external reading. Here, a circuit analysis device such as an in-circuit emulator (ICE) may be connected to the external bus interface 501 as an external device.

一例として、ROM506のプログラム管理エリアに記憶されたヘッダKHDRの内容に応じて、ROM506における記憶データの読み出しを禁止するか許可するかを切り替えられるようにする。たとえば、ヘッダKHDRがバス出力マスク無効データとなっている場合には、外部装置によるROM506の読み出しを可能にして、内部データの外部読出を許可する。これに対して、ヘッダKHDRがバス出力マスク有効データとなっている場合には、たとえば外部バスインタフェース501におけるアドレスバス出力、データバス出力および制御信号出力にマスクをかけることなどにより、外部装置からROM506の読み出しを不能にして、内部データの外部読出を禁止する。この場合、外部バスインタフェース501に接続された外部装置から内部データの読み出しが要求されたときには、予め定められた固定値を出力することで、外部装置からは内部データを読み出すことができないようにする。   As an example, according to the contents of the header KHDR stored in the program management area of the ROM 506, it is possible to switch between prohibiting or permitting reading of stored data in the ROM 506. For example, if the header KHDR is bus output mask invalid data, the ROM 506 can be read by an external device, and external reading of internal data is permitted. On the other hand, if the header KHDR is bus output mask valid data, the ROM 506 can be read from the external device by masking the address bus output, data bus output and control signal output in the external bus interface 501, for example. Is disabled, and external reading of internal data is prohibited. In this case, when reading of internal data is requested from an external device connected to the external bus interface 501, a predetermined fixed value is output so that internal data cannot be read from the external device. .

また、ヘッダKHDRがROM読出禁止データとなっている場合には、ROM506自体を読出不能として、ROM506における記憶データの読み出しを防止してもよい。そして、たとえば製造段階のROMでは、ヘッダKHDRをROM読出禁止データとすることで、ROM自体を読出不能としておき、開発用ROMとするのであればバス出力マスク無効データをヘッダKHDRに書き込むことで、外部装置による内部データの検証を可能にする。これに対して、量産用ROMとするのであればバス出力マスク有効データをヘッダKHDRに書き込むことで、CPU505などによるメイン制御部41の内部におけるROM506の読み出しは可能とする一方で、外部装置によるROM506の読み出しはできないようにすればよい。   Further, when the header KHDR is ROM read prohibition data, the ROM 506 itself may not be read, and reading of stored data in the ROM 506 may be prevented. For example, in a ROM at the manufacturing stage, by making the header KHDR ROM read prohibition data, the ROM itself is made unreadable, and if it is a development ROM, bus output mask invalid data is written in the header KHDR, Allows verification of internal data by an external device. On the other hand, in the case of a mass production ROM, the bus output mask valid data is written in the header KHDR so that the CPU 505 and the like can read out the ROM 506 inside the main control unit 41 while the ROM 506 by an external device. It suffices to prevent reading of.

他の一例として、内部リソースアクセス制御回路501Aは、ROM506における記憶データの全部又は一部といった、メイン制御部41の内部データの読み出しが、外部バスインタフェース501に接続された外部装置から要求されたことを検出する。この読出要求を検出したときに、内部リソースアクセス制御回路501Aは、メイン制御部41の内部データの読み出しを許可するか否かの判定を行なう。たとえば、ROM506における記憶データの全部又は一部に暗号化処理が施されているものとする。この場合、内部リソースアクセス制御回路501Aは、外部装置からの読出要求がROM506に記憶された暗号化処理プログラムや鍵データ等に対する読出要求であれば、この読出要求を拒否して、メイン制御部41の内部データの読み出しを禁止する。外部バスインタフェース501では、ROM506の記憶データが出力される出力ポートと、内部バスとの間にスイッチ素子を設け、内部リソースアクセス制御回路501Aが内部データの読み出しを禁止した場合には、このスイッチ素子をオフ状態とするように制御すればよい。このように、内部リソースアクセス制御回路501Aは、外部装置からの読出要求が所定の内部データ(たとえばROM506の所定領域)の読み出しを要求するものであるか否かに応じて、内部データの読み出しを禁止するか許可するかを決定するようにしてもよい。   As another example, the internal resource access control circuit 501A has requested that the internal data of the main control unit 41, such as all or part of the stored data in the ROM 506, be read from an external device connected to the external bus interface 501. Is detected. When detecting this read request, the internal resource access control circuit 501A determines whether or not to permit the main control unit 41 to read internal data. For example, it is assumed that all or part of the stored data in the ROM 506 has been encrypted. In this case, if the read request from the external device is a read request for an encryption processing program or key data stored in the ROM 506, the internal resource access control circuit 501A rejects the read request and sets the main control unit 41. Reading of internal data is prohibited. In the external bus interface 501, a switch element is provided between the output port from which data stored in the ROM 506 is output and the internal bus. When the internal resource access control circuit 501 A prohibits reading of the internal data, the switch element May be controlled to be turned off. As described above, the internal resource access control circuit 501A reads the internal data depending on whether or not the read request from the external device requests reading of predetermined internal data (for example, a predetermined area of the ROM 506). You may make it determine whether it prohibits or permits.

或いは、内部リソースアクセス制御回路501Aは、内部データの読出要求を検出したときに、所定の認証コードが外部装置から入力されたか否かを判定してもよい。この場合には、たとえば内部リソースアクセス制御回路501Aの内部或いはROM506の所定領域に、認証コードとなる所定のコードパターンが予め記憶されていればよい。そして、外部装置から認証コードが入力されたときには、この認証コードを内部記憶された認証コードと比較して、一致すれば読出要求を受容して、メイン制御部41の内部データの読み出しを許可する。これに対して、外部装置から入力された認証コードが内部記憶された認証コードと一致しない場合には、読出要求を拒否して、メイン制御部41の内部データの読み出しを禁止する。このように、内部リソースアクセス制御回路501Aは、外部装置から入力された認証コードが内部記憶された認証コードと一致するか否かに応じて、内部データの読み出しを禁止するか許可するかを決定するようにしてもよい。これにより、検査機関などが予め知得した正しい認証コードを用いて、メイン制御部41の内部データを損なうことなく読み出すことができ、内部データの正当性を適切に検査することなどが可能になる。   Alternatively, the internal resource access control circuit 501A may determine whether or not a predetermined authentication code has been input from the external device when detecting a read request for internal data. In this case, for example, a predetermined code pattern serving as an authentication code may be stored in advance in the internal resource access control circuit 501A or in a predetermined area of the ROM 506. When an authentication code is input from the external device, this authentication code is compared with the internally stored authentication code. If they match, a read request is accepted and the main control unit 41 is allowed to read internal data. . On the other hand, if the authentication code input from the external device does not match the authentication code stored internally, the read request is rejected and the internal control unit 41 is prohibited from reading the internal data. As described above, the internal resource access control circuit 501A determines whether to prohibit or permit reading of the internal data depending on whether or not the authentication code input from the external device matches the authentication code stored internally. You may make it do. As a result, it is possible to read out the internal data of the main control unit 41 using a correct authentication code obtained in advance by an inspection organization or the like, and to check the validity of the internal data appropriately. .

さらに他の一例として、内部リソースアクセス制御回路501Aに読出禁止フラグを設け、読出禁止フラグがオン状態であれば外部装置によるROM506の読み出しを禁止する。その一方で、読出禁止フラグがオフ状態であるときには、外部装置によるROM506の読み出しが許可される。ここで、読出禁止フラグは、初期状態ではオフ状態であるが、読出禁止フラグを一旦オン状態とした後には、読出禁止フラグをクリアしてオフ状態に復帰させることができないように構成されていればよい。   As yet another example, a read prohibition flag is provided in the internal resource access control circuit 501A, and reading of the ROM 506 by an external device is prohibited if the read prohibition flag is on. On the other hand, when the reading prohibition flag is in the off state, reading of the ROM 506 by the external device is permitted. Here, the read prohibition flag is off in the initial state, but once the read prohibition flag is turned on, the read prohibition flag cannot be cleared and returned to the off state. That's fine.

すなわち、読出禁止フラグはオフ状態からオン状態に不可逆的に変更することが可能とされている。たとえば、内部リソースアクセス制御回路501Aには、読出禁止フラグをクリアしてオフ状態とする機能が設けられておらず、どのような命令によっても読出禁止フラグをクリアすることができないように設定されていればよい。そして、内部リソースアクセス制御回路501Aは、外部装置からROM506における記憶データといったメイン制御部41の内部データの読み出しが要求されたときに、読出禁止フラグがオンであるか否かを判定する。このとき、読出禁止フラグがオンであれば、外部装置からの読出要求を拒否して、メイン制御部41の内部データの読み出しを禁止する。   That is, the read prohibition flag can be irreversibly changed from the off state to the on state. For example, the internal resource access control circuit 501A is not provided with a function of clearing the read prohibition flag to turn it off, and is set so that the read prohibition flag cannot be cleared by any instruction. Just do it. Then, the internal resource access control circuit 501A determines whether or not the read prohibition flag is on when the external device requests to read the internal data of the main control unit 41 such as the data stored in the ROM 506. At this time, if the read prohibition flag is on, the read request from the external device is rejected and the main controller 41 is prohibited from reading the internal data.

他方、読出禁止フラグがオフであれば、外部装置からの読出要求を受容して、メイン制御部41の内部データの読み出しを許可にする。このような構成であれば、ゲーム制御用のプログラムを作成してROM506に格納する提供者においては、読出禁止フラグがオフとなっている状態でデバッグの終了したプログラムをROM506から外部装置に読み込むことができる。   On the other hand, if the read prohibition flag is off, the read request from the external device is accepted and the main controller 41 is allowed to read the internal data. With such a configuration, a provider who creates a game control program and stores it in the ROM 506 reads the program that has been debugged from the ROM 506 into an external device while the read prohibition flag is off. Can do.

そして、デバッグの作業が終了した後に出荷する際には、読出禁止フラグをオン状態にセットすることにより、それ以後はROM506の外部読出を制限することができ、スロットマシン1の使用者などによるROM506の読出を防止することができる。このように、内部リソースアクセス制御回路501Aは、読出禁止フラグといった内部フラグがオフであるかオンであるかに応じて、内部データの読み出しを禁止するか許可するかを決定するようにしてもよい。   Then, when shipping after the debugging work is completed, by setting the read prohibition flag to the on state, external reading of the ROM 506 can be restricted thereafter, and the ROM 506 by the user of the slot machine 1 or the like can be restricted. Can be prevented from being read. As described above, the internal resource access control circuit 501A may determine whether to prohibit or permit reading of internal data depending on whether an internal flag such as a read prohibition flag is off or on. .

なお、読出禁止フラグを不可逆に設定するのではなく、オン状態からオフ状態に変更することも可能とする一方で、読出禁止フラグをオン状態からオフ状態に変更して内部データの読み出しが許可されるときには、ROM506の記憶データを消去(たとえばフラッシュ消去など)することにより、ROM506の外部読出を制限するようにしてもよい。   Note that the read prohibition flag is not set irreversibly but can be changed from the on state to the off state, while the read prohibition flag is changed from the on state to the off state to permit reading of internal data. In this case, the external reading of the ROM 506 may be restricted by erasing the data stored in the ROM 506 (for example, flash erasure).

メイン制御部41が備えるクロック回路502は、たとえば制御用外部クロック端子EXCに入力される発振信号を2分周することなどにより、内部システムクロックSCLKを生成する回路である。本実施の形態では、制御用外部クロック端子EXCに制御用クロック生成回路42が生成した制御用クロックCCLKが入力される。クロック回路502により生成された内部システムクロックSCLKは、たとえばCPU505といった、メイン制御部41において遊技の進行を制御する各種回路に供給される。   The clock circuit 502 provided in the main control unit 41 is a circuit that generates the internal system clock SCLK by, for example, dividing the oscillation signal input to the control external clock terminal EXC by two. In the present embodiment, the control clock CCLK generated by the control clock generation circuit 42 is input to the control external clock terminal EXC. The internal system clock SCLK generated by the clock circuit 502 is supplied to various circuits such as the CPU 505 that control the progress of the game in the main control unit 41.

また、内部システムクロックSCLKは、乱数回路509にも供給され、乱数用クロック生成回路43から供給される乱数用クロックRCLKの周波数を監視するために用いられる。さらに、内部システムクロックSCLKは、クロック回路502に接続されたシステムクロック出力端子CLKOから、メイン制御部41の外部へと出力されてもよい。なお、内部システムクロックSCLKは、メイン制御部41の外部へは出力されないことが望ましい。このように、内部システムクロックSCLKの外部出力を制限することにより、メイン制御部41の内部回路(CPU505など)の動作周期を外部から特定することが困難になり、乱数値となる数値データをソフトウェアにより更新する場合に、乱数値の更新周期が外部から特定されてしまうことを防止できる。   The internal system clock SCLK is also supplied to the random number circuit 509 and used to monitor the frequency of the random number clock RCLK supplied from the random number clock generation circuit 43. Further, the internal system clock SCLK may be output from the system clock output terminal CLKO connected to the clock circuit 502 to the outside of the main control unit 41. It is desirable that the internal system clock SCLK is not output to the outside of the main control unit 41. As described above, by limiting the external output of the internal system clock SCLK, it becomes difficult to specify the operation cycle of the internal circuit (such as the CPU 505) of the main control unit 41 from the outside. In the case of updating by this, it is possible to prevent the random number update cycle from being specified externally.

メイン制御部41が備える固有情報記憶回路503は、たとえばメイン制御部41の内部情報となる複数種類の固有情報を記憶する回路である。一例として、固有情報記憶回路503は、ROMコード、チップ個別ナンバー、IDナンバーといった3種類の固有情報を記憶する。ROM506コードは、ROM506の所定領域における記憶データから生成される4バイトの数値であり、生成方法の異なる4つの数値が準備されればよい。チップ個別ナンバーは、メイン制御部41の製造時に付与される4バイトの番号であり、メイン制御部41を構成するチップ毎に異なる数値を示している。IDナンバーは、メイン制御部41の製造時に付与される8バイトの番号であり、メイン制御部41を構成するチップ毎に異なる数値を示している。   The unique information storage circuit 503 included in the main control unit 41 is a circuit that stores a plurality of types of unique information serving as internal information of the main control unit 41, for example. As an example, the unique information storage circuit 503 stores three types of unique information such as a ROM code, a chip individual number, and an ID number. The ROM 506 code is a 4-byte numerical value generated from stored data in a predetermined area of the ROM 506, and four numerical values with different generation methods may be prepared. The chip individual number is a 4-byte number assigned when the main control unit 41 is manufactured, and indicates a different numerical value for each chip constituting the main control unit 41. The ID number is an 8-byte number assigned when the main control unit 41 is manufactured, and indicates a different numerical value for each chip constituting the main control unit 41.

ここで、チップ個別ナンバーはユーザプログラムから読み取ることができる一方、IDナンバーはユーザプログラムから読み取ることができないように設定されていればよい。なお、固有情報記憶回路503は、たとえばROM506の所定領域を用いることなどにより、ROM506に含まれるようにしてもよい。或いは、固有情報記憶回路503は、たとえばCPU505の内蔵レジスタを用いることなどにより、CPU505に含まれるようにしてもよい。   Here, the chip individual number may be read from the user program, while the ID number may be set so as not to be read from the user program. Note that the unique information storage circuit 503 may be included in the ROM 506 by using a predetermined area of the ROM 506, for example. Alternatively, the unique information storage circuit 503 may be included in the CPU 505 by using a built-in register of the CPU 505, for example.

メイン制御部41が備えるリセット/割込コントローラ504は、メイン制御部41の内部や外部にて発生する各種リセット、割込要求を制御するためのものである。リセット/割込コントローラ504が制御するリセットには、システムリセットとユーザリセットが含まれている。システムリセットは、外部システムリセット端子XSRSTに一定の期間にわたりローレベル信号が入力されたときに発生するリセットである。ユーザリセットは、ウォッチドッグタイマ(WDT)がタイムアップしてタイムアウト信号が発生した場合(すなわちメイン制御部41のCPU505の動作が一定時間停止した場合)や、指定エリア外走行禁止(IAT)が発生したことなど、所定の要因により発生するリセットである。   The reset / interrupt controller 504 provided in the main control unit 41 is for controlling various resets and interrupt requests generated inside or outside the main control unit 41. The reset controlled by the reset / interrupt controller 504 includes a system reset and a user reset. The system reset is a reset that occurs when a low level signal is input to the external system reset terminal XSRST for a certain period. User reset occurs when the watchdog timer (WDT) times out and a time-out signal is generated (that is, when the operation of the CPU 505 of the main control unit 41 is stopped for a certain period of time) or when travel outside the designated area is prohibited (IAT). This is a reset caused by a predetermined factor.

リセット/割込コントローラ504が制御する割込には、ノンマスカブル割込NMIとマスカブル割込INTが含まれている。ノンマスカブル割込NMIは、CPU505の割込禁止状態でも無条件に受け付けられる割込であり、外部ノンマスカブル割込端子XNMI(入力ポートP4と兼用)に一定の期間にわたりローレベル信号が入力されたときに発生する割込である。マスカブル割込INTは、CPU505の設定命令により、割込要求の受け付けを許可/禁止できる割込であり、優先順位設定による多重割込の実行が可能である。マスカブル割込INTの要因としては、外部マスカブル割込端子XINT(入力ポートP3と兼用)に一定の期間にわたりローレベル信号が入力されたこと、CTC508に含まれるタイマ回路にてタイムアウトが発生したこと、シリアル通信回路511にてデータ送信による割込要因が発生したこと、乱数回路509にて乱数値となる数値データの取込による割込要因が発生したことなど、複数種類の割込要因が予め定められていればよい。   Interrupts controlled by the reset / interrupt controller 504 include a non-maskable interrupt NMI and a maskable interrupt INT. The non-maskable interrupt NMI is an interrupt that is unconditionally accepted even when the CPU 505 is in an interrupt-disabled state. When a low level signal is input to the external non-maskable interrupt terminal XNMI (also used as the input port P4) for a certain period of time. An interrupt that occurs. The maskable interrupt INT is an interrupt that can permit / prohibit acceptance of an interrupt request by a setting instruction of the CPU 505, and multiple interrupts can be executed by setting priority. The maskable interrupt INT is caused by the fact that a low level signal has been input to the external maskable interrupt terminal XINT (also used as the input port P3) for a certain period of time, a time-out has occurred in the timer circuit included in the CTC 508, A plurality of types of interrupt factors are determined in advance, such as the occurrence of an interrupt factor due to data transmission in the serial communication circuit 511 and the occurrence of an interrupt factor due to the acquisition of numerical data as a random value in the random number circuit 509. It only has to be done.

リセット/割込コントローラ504は、図7(B)に示すようなメイン制御部41が備える内蔵レジスタのうち、割込マスクレジスタIMR(アドレス2028H)、割込待ちモニタレジスタIRR(アドレス2029H)、割込中モニタレジスタISR(アドレス202AH)、内部情報レジスタCIF(アドレス208CH)などを用いて、割込の制御やリセットの管理を行なう。割込マスクレジスタIMRは、互いに異なる複数の要因によるマスカブル割込INTのうち、使用するものと使用しないものとを設定するレジスタである。割込待ちモニタレジスタIRRは、割込初期設定KIISにより設定されたマスカブル割込要因のそれぞれについて、マスカブル割込要求信号の発生状態を確認するレジスタである。割込中モニタレジスタISRは、割込初期設定KIISにより設定されたマスカブル割込要因のそれぞれについて、マスカブル割込要求信号の処理状態を確認するレジスタである。内部情報レジスタCIFは、直前に発生したリセット要因を管理したり、乱数用クロックRCLKの周波数異常を記録したりするためのレジスタである。   The reset / interrupt controller 504 includes an interrupt mask register IMR (address 2028H), an interrupt wait monitor register IRR (address 2029H), among the built-in registers included in the main control unit 41 as shown in FIG. Interrupt control and reset management are performed using the monitor monitor register ISR (address 202AH) and the internal information register CIF (address 208CH). The interrupt mask register IMR is a register that sets what is used and what is not used among maskable interrupts INT caused by a plurality of different factors. The interrupt wait monitor register IRR is a register for confirming the generation state of a maskable interrupt request signal for each maskable interrupt factor set by the interrupt initial setting KIIS. The interrupt monitor register ISR is a register for confirming the processing state of the maskable interrupt request signal for each maskable interrupt factor set by the interrupt initial setting KIIS. The internal information register CIF is a register for managing the reset factor generated immediately before and recording the frequency abnormality of the random number clock RCLK.

図11(A)は、内部情報レジスタCIFの構成例を示している。図11(B)は、内部情報レジスタCIFに格納される内部情報データの各ビットにおける設定内容の一例を示している。内部情報レジスタCIFのビット番号[4]に格納される内部情報データCIF4は、乱数用クロックRCLKにおける周波数異常の有無を示す乱数用クロック異常指示である。図11(B)に示す例では、乱数用クロックRCLKの周波数異常が検知されないときに、内部情報データCIF4のビット値が“0”となる一方、周波数異常が検知されたときには、そのビット値が“1”となる。内部情報レジスタCIFのビット番号[2]に格納される内部情報データCIF2は、直前に発生したリセット要因がシステムリセットであるか否かを示すシステムリセット指示である。図11(B)に示す例では、直前のリセット要因がシステムリセットではないときに(システムリセット未発生)、内部情報データCIF2のビット値が“0”となる一方、システムリセットであるときには(システムリセット発生)、そのビット値が“1”となる。   FIG. 11A shows a configuration example of the internal information register CIF. FIG. 11B shows an example of setting contents in each bit of the internal information data stored in the internal information register CIF. The internal information data CIF4 stored in the bit number [4] of the internal information register CIF is a random number clock abnormality instruction indicating the presence or absence of a frequency abnormality in the random number clock RCLK. In the example shown in FIG. 11B, when the frequency abnormality of the random number clock RCLK is not detected, the bit value of the internal information data CIF4 is “0”, whereas when the frequency abnormality is detected, the bit value is “1”. The internal information data CIF2 stored in the bit number [2] of the internal information register CIF is a system reset instruction indicating whether or not the reset factor generated immediately before is a system reset. In the example shown in FIG. 11B, when the immediately preceding reset factor is not a system reset (system reset has not occurred), the bit value of the internal information data CIF2 is “0”, whereas when the system reset is a system reset (system reset) When the reset occurs), the bit value becomes “1”.

内部情報レジスタCIFのビット番号[1]に格納される内部情報データCIF1は、直前に発生したリセット要因がウォッチドッグタイマ(WDT)のタイムアウトによるユーザリセットであるか否かを示すWDTタイムアウト指示である。図11(B)に示す例では、直前のリセット要因がウォッチドッグタイマのタイムアウトによるユーザリセットではないときに(タイムアウト未発生)、内部情報データCIF1のビット値が“0”となる一方、ウォッチドッグタイマのタイムアウトによるユーザリセットであるときに(タイムアウト発生)、そのビット値が“1”となる。内部情報レジスタCIFのビット番号[0]に格納される内部情報データCIF0は、直前に発生したリセット要因が指定エリア外走行禁止(IAT)によるユーザリセットであるか否かを示すIAT発生指示である。図11(B)に示す例では、直前のリセット要因が指定エリア外走行の発生によるユーザリセットではないときに(IAT発生なし)、内部情報データCIF0のビット値が“0”となる一方、指定エリア外走行の発生によるユーザリセットであるときに(IAT発生あり)、そのビット値が“1”となる。   The internal information data CIF1 stored in the bit number [1] of the internal information register CIF is a WDT timeout instruction indicating whether or not the reset factor generated immediately before is a user reset due to a watchdog timer (WDT) timeout. . In the example shown in FIG. 11B, when the immediately preceding reset factor is not a user reset due to a watchdog timer timeout (timeout has not occurred), the bit value of the internal information data CIF1 becomes “0”, while the watchdog When a user reset is caused by a timer timeout (timeout occurs), the bit value becomes “1”. The internal information data CIF0 stored in the bit number [0] of the internal information register CIF is an IAT generation instruction indicating whether or not the reset factor generated immediately before is a user reset due to prohibition of travel outside the designated area (IAT). . In the example shown in FIG. 11B, when the reset factor immediately before is not a user reset due to the occurrence of traveling outside the designated area (no IAT occurrence), the bit value of the internal information data CIF0 becomes “0”, while When the user reset is caused by the occurrence of out-of-area travel (the occurrence of IAT), the bit value becomes “1”.

メイン制御部41が備えるCPU505は、ROM506から読み出したプログラムを実行することにより、スロットマシン1におけるゲームの進行を制御するための処理などを実行する。このときには、CPU505がROM506から固定データを読み出す固定データ読出動作や、CPU505がRAM507に各種の変動データを書き込んで一時記憶させる変動データ書込動作、CPU505がRAM507に一時記憶されている各種の変動データを読み出す変動データ読出動作、CPU505が外部バスインタフェース501やPIP510などを介してメイン制御部41の外部から各種信号の入力を受け付ける受信動作、CPU505が外部バスインタフェース501やシリアル通信回路511などを介してメイン制御部41の外部へと各種信号を出力する送信動作等も行なわれる。   The CPU 505 provided in the main control unit 41 executes processing for controlling the progress of the game in the slot machine 1 by executing the program read from the ROM 506. At this time, the CPU 505 reads out fixed data from the ROM 506, the CPU 505 writes various data to the RAM 507 and temporarily stores the data, and the CPU 505 stores various data temporarily stored in the RAM 507. The CPU 505 receives the input of various signals from the outside of the main control unit 41 via the external bus interface 501 or the PIP 510, and the CPU 505 receives the input of various signals via the external bus interface 501 or the serial communication circuit 511. A transmission operation for outputting various signals to the outside of the main control unit 41 is also performed.

このように、メイン制御部41では、CPU505がROM506に格納されているプログラムに従って制御を実行するので、以下、メイン制御部41(又はCPU505)が実行する(又は処理を行なう)ということは、具体的には、CPU505がプログラムに従って制御を実行することである。このことは、遊技制御基板40以外の他の基板に搭載されているマイクロコンピュータについても同様である。   As described above, in the main control unit 41, the CPU 505 executes control in accordance with the program stored in the ROM 506. Therefore, hereinafter, the main control unit 41 (or CPU 505) executes (or performs processing) is specifically described. Specifically, the CPU 505 executes control according to a program. The same applies to microcomputers mounted on boards other than the game control board 40.

メイン制御部41が備えるROM506には、ゲーム制御用のユーザプログラムや固定データ等が記憶されている。また、ROM506には、セキュリティチェックプログラム506Aが記憶されている。CPU505は、スロットマシン1の電源投入やシステムリセットの発生に応じてメイン制御部41がセキュリティモードに移行したときに、ROM506に記憶されたセキュリティチェックプログラム506Aを読み出し、ROM506の記憶内容が変更されたか否かを検査するセキュリティチェック処理を実行する。なお、セキュリティチェックプログラム506Aは、ROM506とは異なる内蔵メモリに記憶されてもよい。また、セキュリティチェックプログラム506Aは、たとえば外部バスインタフェース501を介してメイン制御部41に外付けされた外部メモリの記憶内容を検査するセキュリティチェック処理に対応したものであってもよい。   A ROM 506 provided in the main control unit 41 stores a user program for game control, fixed data, and the like. The ROM 506 stores a security check program 506A. The CPU 505 reads the security check program 506A stored in the ROM 506 when the main control unit 41 shifts to the security mode in response to the power-on of the slot machine 1 or the occurrence of a system reset, and whether the storage content of the ROM 506 has been changed. Execute security check processing to check whether or not. Note that the security check program 506A may be stored in a built-in memory different from the ROM 506. Further, the security check program 506A may correspond to a security check process for inspecting the storage contents of the external memory externally attached to the main control unit 41 via the external bus interface 501, for example.

メイン制御部41が備えるRAM507は、ゲーム制御用のワークエリアを提供する。ここで、RAM507の少なくとも一部は、バックアップ電源によってバックアップされているバックアップRAMであればよい。すなわち、スロットマシンへの電力供給が停止しても、所定期間はRAM507の少なくとも一部の内容が保存される。なお、本実施の形態では、RAM507の全ての領域がバックアップRAMとされており、スロットマシンへの電力供給が停止しても、所定期間はRAM507の全ての内容が保存される。   A RAM 507 provided in the main control unit 41 provides a work area for game control. Here, at least a part of the RAM 507 may be a backup RAM backed up by a backup power source. That is, even if the power supply to the slot machine is stopped, at least part of the contents of the RAM 507 is stored for a predetermined period. In this embodiment, all the areas of the RAM 507 are backup RAMs, and all the contents of the RAM 507 are saved for a predetermined period even when the power supply to the slot machine is stopped.

メイン制御部41が備えるCTC508は、たとえば8ビットのプログラマブルタイマを3チャネル(PTC0−PTC2)内蔵して構成され、リアルタイム割込の発生や時間計測を可能とするタイマ回路を含んでいる。各プログラマブルタイマPTC0−PTC2は、内部システムクロックSCLKに基づいて生成されたカウントクロックの信号変化(たとえばハイレベルからローレベルへと変化する立ち下がりタイミング)などに応じて、タイマ値が更新されるものであればよい。また、CTC508は、たとえば8ビットのプログラマブルカウンタを4チャネル(PCC0−PCC3)内蔵してもよい。各プログラマブルカウンタPCC0−PCC3は、内部システムクロックSCLKの信号変化、或いは、プログラマブルカウンタPCC0−PCC3のいずれかにおけるタイムアウトの発生などに応じて、カウント値が更新されるものであればよい。CTC508は、セキュリティ時間を延長する際の延長時間(可変設定時間)をシステムリセット毎にランダムに決定するために用いられるフリーランカウンタや、乱数回路509にて生成される乱数のスタート値をシステムリセット毎にランダムに決定するために用いられるフリーランカウンタなどを、含んでもよい。或いは、これらのフリーランカウンタは、たとえばRAM507のバックアップ領域といった、CTC508とは異なるメイン制御部41の内部回路に含まれてもよい。   The CTC 508 provided in the main control unit 41 includes, for example, a built-in 3-channel (PTC0-PTC2) 8-bit programmable timer, and includes a timer circuit that enables real-time interrupt generation and time measurement. Each programmable timer PTC0-PTC2 has a timer value that is updated in response to a change in the count clock signal generated based on the internal system clock SCLK (for example, a falling timing that changes from a high level to a low level). If it is. The CTC 508 may include, for example, an 8-bit programmable counter having 4 channels (PCC0 to PCC3). Each of the programmable counters PCC0 to PCC3 only needs to have its count value updated in response to a signal change of the internal system clock SCLK or occurrence of a timeout in any of the programmable counters PCC0 to PCC3. The CTC 508 resets the start time of the random number generated by the free run counter used for randomly determining the extension time (variable setting time) for extending the security time for each system reset or the random number circuit 509. A free-run counter or the like used for determining each item at random may be included. Alternatively, these free-run counters may be included in an internal circuit of the main control unit 41 different from the CTC 508 such as a backup area of the RAM 507, for example.

メイン制御部41が備える乱数回路509は、たとえば16ビット乱数といった、所定の更新範囲を有する乱数値となる数値データを生成する回路である。本実施の形態では、遊技制御基板40の側において、後述する内部抽選用の乱数値を示す数値データがカウント可能に制御される。なお、遊技効果を高めるために、これら以外の乱数値が用いられてもよい。CPU505は、乱数回路509から抽出した数値データに基づき、乱数回路509とは異なるランダムカウンタを用いて、ソフトウェアによって各種の数値データを加工或いは更新することで、内部抽選用の乱数値を示す数値データをカウントするようにしてもよい。以下では、内部抽選用の乱数値を示す数値データが、ハードウェアとなる乱数回路509からCPU505により抽出された数値データをソフトウェアにより加工しないものとする。なお、乱数回路509は、メイン制御部41に内蔵されるものであってもよいし、メイン制御部41とは異なる乱数回路チップとして、メイン制御部41に外付けされるものであってもよい。   A random number circuit 509 included in the main control unit 41 is a circuit that generates numerical data that is a random value having a predetermined update range, such as a 16-bit random number. In the present embodiment, on the game control board 40 side, numerical data indicating a random number value for internal lottery described later is controlled so as to be countable. In addition, in order to improve a game effect, random numbers other than these may be used. The CPU 505 uses a random counter different from the random number circuit 509 based on the numerical data extracted from the random number circuit 509 to process or update various numerical data by software, thereby indicating numerical data indicating a random value for internal lottery. May be counted. In the following, it is assumed that numerical data indicating random numbers for internal lottery is not processed by software from numerical data extracted by the CPU 505 from the random number circuit 509 serving as hardware. The random number circuit 509 may be built in the main control unit 41 or may be externally attached to the main control unit 41 as a random number circuit chip different from the main control unit 41. .

内部抽選用の乱数値は、複数種類の入賞について発生を許容するか否かを判定するために用いられる値であり、本実施の形態では、「0」〜「65535」の範囲の値をとる。   The random number for internal lottery is a value used to determine whether or not to allow the generation of a plurality of types of winnings, and takes a value in the range of “0” to “65535” in the present embodiment. .

図12は、乱数回路509の一構成例を示すブロック図である。乱数回路509は、図12に示すように、周波数監視回路551、クロック用フリップフロップ552、乱数生成回路553、スタート値設定回路554、乱数列変更回路555、乱数列変更設定回路556、ラッチ用フリップフロップ557A、557B、乱数ラッチセレクタ558A、558B、乱数値レジスタ559A、559Bを備えて構成される。なお、乱数値レジスタ559Aと乱数値レジスタ559Bはそれぞれ、図7(B)に示すようなメイン制御部41の内蔵レジスタに含まれる乱数値レジスタR1D(アドレス2038H−2039H)と乱数値レジスタR2D(アドレス203AH−203BH)に対応している。なお、本実施の形態では、取得する乱数が内部抽選用の乱数値のみであり、ラッチ用フリップフロップ557A、557B、乱数ラッチセレクタ558A、558B、乱数値レジスタ559A、559Bのうちラッチ用フリップフロップ557B、乱数ラッチセレクタ558B、乱数値レジスタ559Bは未使用とされている。   FIG. 12 is a block diagram illustrating a configuration example of the random number circuit 509. As shown in FIG. 12, the random number circuit 509 includes a frequency monitoring circuit 551, a clock flip-flop 552, a random number generation circuit 553, a start value setting circuit 554, a random number sequence change circuit 555, a random number sequence change setting circuit 556, and a latch flip-flop. 557A, 557B, random number latch selectors 558A, 558B, and random number value registers 559A, 559B. The random value register 559A and the random value register 559B are respectively a random value register R1D (address 2038H-2039H) and a random value register R2D (address) included in the built-in register of the main control unit 41 as shown in FIG. 203AH-203BH). In the present embodiment, the random number to be acquired is only a random value for internal lottery, and among the latch flip-flops 557A, 557B, the random number latch selectors 558A, 558B, and the random value register 559A, 559B, the latch flip-flop 557B. The random number latch selector 558B and the random number value register 559B are unused.

周波数監視回路551は、乱数用クロック生成回路43により生成された乱数用クロックRCLKの周波数を監視して、その異常発生を検知するための回路である。周波数監視回路551は、たとえば乱数用外部クロック端子ERCに入力される発振信号を監視して、内部システムクロックSCLKに基づきセキュリティ時間設定KSESのビット番号[7−6]における設定内容(図10(B)参照)に応じた周波数異常を検知したときに、内部情報レジスタCIFのビット番号[4]を“1”にセットする。本実施の形態では、乱数用外部クロック端子ERCに乱数用クロック生成回路43が生成した乱数用クロックRCLKが入力される。   The frequency monitoring circuit 551 is a circuit for monitoring the frequency of the random number clock RCLK generated by the random number clock generating circuit 43 and detecting the occurrence of an abnormality. For example, the frequency monitoring circuit 551 monitors an oscillation signal input to the random number external clock terminal ERC, and sets the contents of the bit number [7-6] of the security time setting KSES based on the internal system clock SCLK (FIG. 10B When the frequency abnormality according to the reference) is detected, the bit number [4] of the internal information register CIF is set to “1”. In the present embodiment, the random number clock RCLK generated by the random number clock generation circuit 43 is input to the random number external clock terminal ERC.

クロック用フリップフロップ552は、たとえばD型フリップフロップなどを用いて構成され、乱数用外部クロック端子ERCからの乱数用クロックRCLKがクロック端子CKに入力される。また、クロック用フリップフロップ552では、逆相出力端子(反転出力端子)QバーがD入力端子に接続されている。そして、正相出力端子(非反転出力端子)Qから乱数更新クロックRGKを出力する一方で、逆相出力端子(反転出力端子)Qバーからラッチ用クロックRC0を出力する。この場合、クロック用フリップフロップ552は、クロック端子CKに入力される乱数用クロックRCLKにおける信号状態が所定の変化をしたときに、正相出力端子(非反転出力端子)Qおよび逆相出力端子(反転出力端子)Qバーからの出力信号における信号状態を変化させる。   The clock flip-flop 552 is configured using, for example, a D-type flip-flop, and the random number clock RCLK from the random number external clock terminal ERC is input to the clock terminal CK. Further, in the clock flip-flop 552, the negative phase output terminal (inverted output terminal) Q bar is connected to the D input terminal. The random number update clock RGK is output from the positive phase output terminal (non-inverted output terminal) Q, while the latch clock RC0 is output from the negative phase output terminal (inverted output terminal) Q bar. In this case, when the signal state of the random number clock RCLK input to the clock terminal CK changes a predetermined state, the clock flip-flop 552 has a positive phase output terminal (non-inverted output terminal) Q and a negative phase output terminal ( Inverted output terminal) Changes the signal state in the output signal from the Q bar.

たとえば、クロック用フリップフロップ552は、乱数用クロックRCLKの信号状態がローレベルからハイレベルへと変化する立上りのタイミング、或いは、乱数用クロックRCLKの信号状態がハイレベルからローレベルへと変化する立ち下がりのタイミングのうち、いずれか一方のタイミングにて、D入力端子における入力信号を取り込む。このとき、正相出力端子(非反転出力端子)Qからは、D入力端子にて取り込まれた入力信号が反転されることなく出力される一方で、逆相出力端子(反転出力端子)Qバーからは、D入力端子にて取り込まれた入力信号が反転されて出力される。こうして、クロック用フリップフロップ552の正相出力端子(非反転出力端子)Qからは乱数用クロックRCLKにおける発振周波数(たとえば20MHz)の1/2となる発振周波数(たとえば10MHz)を有する乱数更新クロックRGKが出力される一方、逆相出力端子(反転出力端子)Qバーからは乱数更新クロックRGKの逆相信号(反転信号)、すなわち乱数更新クロックRGKと同一周波数で乱数更新クロックRGKとは位相がπ(=180°)だけ異なるラッチ用クロックRC0が出力される。   For example, the clock flip-flop 552 has a rising timing at which the signal state of the random number clock RCLK changes from a low level to a high level, or a rising edge at which the signal state of the random number clock RCLK changes from a high level to a low level. The input signal at the D input terminal is captured at any one of the falling timings. At this time, from the positive phase output terminal (non-inverted output terminal) Q, the input signal captured at the D input terminal is output without being inverted, while the negative phase output terminal (inverted output terminal) Q bar is output. From the input signal captured by the D input terminal is inverted and output. Thus, the random number update clock RGK having an oscillation frequency (for example, 10 MHz) that is ½ of the oscillation frequency (for example, 20 MHz) of the random number clock RCLK from the positive phase output terminal (non-inverted output terminal) Q of the clock flip-flop 552. Is output from the negative phase output terminal (inverted output terminal) Q bar, that is, the reverse phase signal (inverted signal) of the random number update clock RGK, that is, the same frequency as the random number update clock RGK and the phase of the random number update clock RGK is π. A different latch clock RC0 is output by (= 180 °).

クロック用フリップフロップ552から出力された乱数更新クロックRGKは、乱数生成回路553のクロック端子に入力されて、乱数生成回路553におけるカウント値の歩進に用いられる。また、クロック用フリップフロップ552から出力されたラッチ用クロックRC0は、分岐点BR1にてラッチ用クロックRC1とラッチ用クロックRC2とに分岐される。したがって、ラッチ用クロックRC1とラッチ用クロックRC2とは、互いに同一の発振周波数を有し、互いに共通の周期で信号状態が変化することになる。ここで、ラッチ用クロックRC1やラッチ用クロックRC2における信号状態の変化としては、たとえばローレベルからハイレベルへと変化する立上りや、ハイレベルからローレベルへと変化する立ち下がりなどがある。ラッチ用クロックRC1は、ラッチ用フリップフロップ557Aのクロック端子CKに入力されて、ゲーム開始時ラッチ信号SL1の生成に用いられる乱数取得用クロックとなる。   The random number update clock RGK output from the clock flip-flop 552 is input to the clock terminal of the random number generation circuit 553 and used for incrementing the count value in the random number generation circuit 553. The latch clock RC0 output from the clock flip-flop 552 is branched into the latch clock RC1 and the latch clock RC2 at the branch point BR1. Therefore, the latch clock RC1 and the latch clock RC2 have the same oscillation frequency, and the signal state changes with a common cycle. Here, examples of changes in the signal state in the latch clock RC1 and the latch clock RC2 include a rising edge that changes from a low level to a high level and a falling edge that changes from a high level to a low level. The latch clock RC1 is input to the clock terminal CK of the latch flip-flop 557A and becomes a random number acquisition clock used to generate the latch signal SL1 at the start of the game.

乱数用クロックRCLKの発振周波数と、制御用クロック生成回路42によって生成される制御用クロックCCLKの発振周波数とは、互いに異なる周波数となっており、また、いずれか一方の発振周波数が他方の発振周波数の整数倍になることがない。一例として、制御用クロックCCLKの発振周波数が11.0MHzである一方で、乱数用クロックRCLKの発振周波数は9.7MHzであればよい。そのため、乱数更新クロックRGKやラッチ用クロックRC1、RC2はいずれも、CPU505に供給される制御用クロックCCLKとは異なる周期で信号状態が変化する発振信号となる。すなわち、クロック用フリップフロップ552は、乱数用クロック生成回路43によって生成された乱数用クロックRCLKに基づき、カウント値を更新するための乱数更新クロックRGKや、複数の乱数取得用クロックとなるラッチ用クロックRC1、RC2として、制御用クロックCCLKや内部システムクロックSCLK(制御用クロックCCLKを2分周したもの)とは異なる周期で信号状態が変化する発振信号を生成する。   The oscillation frequency of the random number clock RCLK and the oscillation frequency of the control clock CCLK generated by the control clock generation circuit 42 are different from each other, and one of the oscillation frequencies is the other oscillation frequency. It is never an integer multiple of. As an example, while the oscillation frequency of the control clock CCLK is 11.0 MHz, the oscillation frequency of the random number clock RCLK may be 9.7 MHz. Therefore, both the random number update clock RGK and the latch clocks RC1 and RC2 are oscillation signals whose signal states change at a different period from the control clock CCLK supplied to the CPU 505. That is, the clock flip-flop 552 is based on the random number clock RCLK generated by the random number clock generation circuit 43, and the random number update clock RGK for updating the count value, or the latch clock that is used as a plurality of random number acquisition clocks. As RC1 and RC2, oscillation signals whose signal states change with a period different from the control clock CCLK and the internal system clock SCLK (the control clock CCLK divided by two) are generated.

乱数生成回路553は、たとえば16ビットのカウンタなどから構成され、クロック用フリップフロップ552から出力される乱数更新クロックRGKなどの入力に基づき、数値データを更新可能な所定の範囲において所定の初期値から所定の最終値まで循環的に更新する回路である。たとえば乱数生成回路553は、所定のクロック端子への入力信号である乱数更新クロックRGKにおける立上りエッジに応答して、「0」から「65535」までの範囲内で設定された初期値から「65535」まで1ずつ加算するように数値データをカウントアップして行く。そして、「65535」までカウントアップした後には、「0」から初期値よりも1小さい最終値となる数値まで1ずつ加算するようにカウントアップすることで、数値データを循環的に更新する。   The random number generation circuit 553 is composed of, for example, a 16-bit counter and the like, based on an input such as a random number update clock RGK output from the clock flip-flop 552, from a predetermined initial value within a predetermined range in which numerical data can be updated. It is a circuit that cyclically updates to a predetermined final value. For example, the random number generation circuit 553 responds to the rising edge of the random number update clock RGK, which is an input signal to a predetermined clock terminal, from the initial value set within the range from “0” to “65535” to “65535”. The numerical data is counted up so that one is added at a time. Then, after counting up to “65535”, the numerical data is updated cyclically by counting up from “0” to a numerical value that becomes a final value that is 1 smaller than the initial value.

スタート値設定回路554は、第2乱数初期設定KRS2のビット番号[1−0]におけるビット値(図9(B)参照)に応じて、乱数生成回路553により生成されるカウント値におけるスタート値を設定する。たとえば、スタート値設定回路554は、第2乱数初期設定KRS2のビット番号[1−0]が“00”であればスタート値をデフォルト値である「0000H」に設定し、“10”であればIDナンバーに基づく値に設定し、“01”であればシステムリセット毎に変更される値に設定する。本実施の形態では、第2乱数初期設定KRS2のビット番号[1−0]が“10”に設定されており、乱数生成回路553により生成されるカウント値におけるスタート値としてIDナンバーに基づく値が設定される。   The start value setting circuit 554 sets the start value in the count value generated by the random number generation circuit 553 in accordance with the bit value (see FIG. 9B) in the bit number [1-0] of the second random number initial setting KRS2. Set. For example, if the bit number [1-0] of the second random number initial setting KRS2 is “00”, the start value setting circuit 554 sets the start value to the default value “0000H”, and if it is “10”. The value is set based on the ID number. If “01”, the value is changed every time the system is reset. In the present embodiment, the bit number [1-0] of the second random number initial setting KRS2 is set to “10”, and the value based on the ID number is used as the start value in the count value generated by the random number generation circuit 553. Is set.

乱数列変更回路555は、乱数生成回路553により生成された数値データが一巡したときに、数値データの更新順である順列を所定の乱数更新規則に従った順列に変更可能とする回路である。たとえば、乱数列変更回路555は、乱数生成回路553から出力される数値データにおけるビットの入れ替えや転置などのビットスクランブル処理を実行する。また、乱数列変更回路555は、たとえばビットスクランブル処理に用いるビットスクランブル用キーやビットスクランブルテーブルを変更することなどにより、数値データの更新順である順列の変更を行なうことができる。   The random number sequence change circuit 555 is a circuit that allows the permutation, which is the update order of the numerical data, to be changed to a permutation that conforms to a predetermined random number update rule when the numerical data generated by the random number generation circuit 553 makes a round. For example, the random number sequence change circuit 555 executes bit scramble processing such as bit replacement or transposition in numerical data output from the random number generation circuit 553. The random number sequence changing circuit 555 can change the permutation, which is the update order of the numerical data, by changing the bit scramble key or the bit scramble table used for the bit scramble process, for example.

乱数列変更設定回路556は、第1乱数初期設定KRS1のビット番号[1−0]におけるビット値(図9(A)参照)などに応じて、乱数列変更回路555における数値データの更新順を変更する設定を行なうための回路である。たとえば、乱数列変更設定回路556は、第1乱数初期設定KRS1のビット番号[1−0]が“00”であれば2周目以降も乱数更新規則を変更しない設定とする一方、“01”であれば2周目以降はソフトウェアでの変更要求に応じて乱数更新規則を変更し、“10”であれば自動で乱数更新規則を変更する。本実施の形態では、第1乱数初期設定KRS1のビット番号[1−0]が“10”に設定されており、自動で乱数更新規則が変更される。   The random number sequence change setting circuit 556 determines the update order of the numerical data in the random number sequence change circuit 555 according to the bit value (see FIG. 9A) in the bit number [1-0] of the first random number initial setting KRS1. This is a circuit for performing the setting to be changed. For example, if the bit number [1-0] of the first random number initial setting KRS1 is “00”, the random number sequence change setting circuit 556 sets the random number update rule not to change after the second round, while “01” If so, the random number update rule is changed in response to a change request by software after the second round, and if it is “10”, the random number update rule is automatically changed. In the present embodiment, the bit number [1-0] of the first random number initial setting KRS1 is set to “10”, and the random number update rule is automatically changed.

乱数列変更回路556は、第1乱数初期設定KRS1のビット番号[1−0]が“01”であることに対応してソフトウェアによる乱数更新規則の変更を行なう場合に、図7(B)に示すようなメイン制御部41が備える内蔵レジスタのうち、乱数列変更レジスタRDSC(アドレス2034H)を用いて、乱数更新規則の変更を制御する。図13(A)は、乱数列変更レジスタRDSCの構成例を示している。図13(B)は、乱数列変更レジスタRDSCに格納される乱数列変更要求データの各ビットにおける設定内容の一例を示している。乱数列変更レジスタRDSCのビット番号[0]に格納される乱数列変更要求データRDSC0は、乱数更新規則をソフトウェアにより変更する場合に、乱数列の変更要求の有無を示している。図13(B)に示す例では、ソフトウェアにより乱数列の変更要求がないときに、乱数列変更要求データRDSC0のビット値が“0”となる一方、乱数列の変更要求があったときには、そのビット値が“1”となる。   When the random number update circuit 556 changes the random number update rule by software in response to the bit number [1-0] of the first random number initial setting KRS1 being “01”, FIG. Of the built-in registers included in the main control unit 41 as shown, the random number update rule RDSC (address 2034H) is used to control the change of the random number update rule. FIG. 13A shows a configuration example of the random number sequence change register RDSC. FIG. 13B shows an example of setting contents in each bit of random number sequence change request data stored in the random number sequence change register RDSC. The random number sequence change request data RDSC0 stored in the bit number [0] of the random number sequence change register RDSC indicates whether or not there is a random number sequence change request when the random number update rule is changed by software. In the example shown in FIG. 13B, when the random number sequence change request is not made by software, the bit value of the random number sequence change request data RDSC0 is “0”. The bit value is “1”.

図14は、乱数更新規則をソフトウェアにより変更する場合の動作例を示している。この場合、乱数生成回路553から出力されるカウント値順列RCNが所定の初期値から所定の最終値まで循環的に更新されたときに、乱数列変更要求データRDSC0が“1”であることに応答して、乱数更新規則を変更する。図14に示す動作例では、始めに乱数列変更回路555から出力される乱数列RSNが、「0→1→…→65535」となっている。この後、CPU505がROM506に格納されたユーザプログラムを実行することによって、所定のタイミングで乱数列変更レジスタRDSCのビット番号[0]に“1”が書き込まれたものとする。   FIG. 14 shows an operation example when the random number update rule is changed by software. In this case, when the count value permutation RCN output from the random number generation circuit 553 is cyclically updated from a predetermined initial value to a predetermined final value, the response is that the random number sequence change request data RDSC0 is “1”. Then, change the random number update rule. In the operation example shown in FIG. 14, the random number sequence RSN output from the random number sequence change circuit 555 is “0 → 1 →... → 65535”. Thereafter, it is assumed that “1” is written to the bit number [0] of the random number sequence change register RDSC at a predetermined timing by the CPU 505 executing the user program stored in the ROM 506.

そして、第1乱数初期設定KRS1のビット番号[1−0]が“01”であることに対応して、乱数列変更設定回路556が乱数列変更要求データRDSC0を読み出し、そのビット値が“1”であることに応答して、乱数更新規則を変更するための設定を行なう。このとき、乱数列変更設定回路556は、乱数生成回路553から出力されたカウント値順列RCNが所定の最終値に達したことに応じて、たとえば予め用意された複数種類の乱数更新規則のいずれかを選択することなどにより、乱数更新規則を変更する。図14に示す動作例では、乱数列変更回路555が乱数生成回路553から出力されたカウント値順列RCNにおける最終値に対応する数値データ「65535」を出力した後、乱数列変更要求データRDSC0に応じて乱数更新規則を変更する。その後、乱数列変更回路555は、変更後の乱数更新規則に従った乱数列RSNとして、「65535→65534→…→0」を出力する。乱数列変更レジスタRDSCは、乱数列変更設定回路556により乱数列変更要求データRDSC0が読み出されたときに初期化される。そのため、再び乱数列変更レジスタRDSCのビット番号[0]にビット値“1”が書き込まれるまでは、乱数列変更回路555から出力される乱数列RSNが、「65535→65534→…→0」となる。   In response to the bit number [1-0] of the first random number initial setting KRS1 being “01”, the random number sequence change setting circuit 556 reads the random number sequence change request data RDSC0 and the bit value is “1”. In response to “”, a setting for changing the random number update rule is made. At this time, the random number sequence change setting circuit 556 is one of a plurality of types of random number update rules prepared in advance, for example, in response to the count value permutation RCN output from the random number generation circuit 553 reaching a predetermined final value. The random number update rule is changed, for example, by selecting. In the operation example shown in FIG. 14, the random number sequence change circuit 555 outputs numerical data “65535” corresponding to the final value in the count value permutation RCN output from the random number generation circuit 553, and then responds to the random number sequence change request data RDSC0. Change the random number update rule. Thereafter, the random number sequence change circuit 555 outputs “65535 → 65534 →... → 0” as the random number sequence RSN according to the changed random number update rule. The random number sequence change register RDSC is initialized when the random number sequence change setting circuit 556 reads the random number sequence change request data RDSC0. Therefore, until the bit value “1” is written to the bit number [0] of the random number sequence change register RDSC again, the random number sequence RSN output from the random number sequence change circuit 555 is “65535 → 65534 →... → 0”. Become.

CPU505がROM506に格納されたユーザプログラムを実行することによって、乱数列変更レジスタRDSCのビット番号[0]に再びビット値“1”が書き込まれると、乱数更新規則が再度変更される。図14に示す動作例では、乱数列変更回路555が乱数列RSNにおける最終値に対応する数値データ「0」を出力したときに、乱数列変更要求データRDSC0としてビット値“1”が書き込まれたことに応じて乱数更新規則を変更する。その後、乱数列変更回路555は、変更後の乱数更新規則に従った乱数列RSNとして、「0→2→…→65534→1→…→65535」を出力する。   When the CPU 505 executes the user program stored in the ROM 506 and the bit value “1” is written again to the bit number [0] of the random number sequence change register RDSC, the random number update rule is changed again. In the operation example shown in FIG. 14, when the random number sequence change circuit 555 outputs the numerical data “0” corresponding to the final value in the random number sequence RSN, the bit value “1” is written as the random number sequence change request data RDSC0. Change the random number update rule accordingly. Thereafter, the random number sequence changing circuit 555 outputs “0 → 2 →... → 65534 → 1 →... → 65535” as the random number sequence RSN according to the changed random number update rule.

図15は、乱数更新規則を自動で変更する場合の動作例を示している。この場合、乱数生成回路553から出力されるカウント値順列RCNが所定の初期値から所定の最終値まで循環的に更新されたことに応じて、乱数列変更設定回路556が自動的に乱数更新規則を変更する。図15に示す動作例では、始めに乱数列変更回路555から出力される乱数列RSNが、「0→1→…→65535」となっている。   FIG. 15 shows an operation example when the random number update rule is automatically changed. In this case, in response to the count value permutation RCN output from the random number generation circuit 553 being cyclically updated from a predetermined initial value to a predetermined final value, the random number sequence change setting circuit 556 automatically changes the random number update rule. To change. In the operation example shown in FIG. 15, the random number sequence RSN output from the random number sequence change circuit 555 first is “0 → 1 →... → 65535”.

そして、乱数変更回路555から出力された乱数列RSNが所定の最終値に達したときに、乱数列変更設定回路556は、予め用意された複数種類の更新規則のうちから予め定められた順序に従って更新規則を選択することにより、更新規則を変更するようにしてもよい。或いは、乱数列変更設定回路556は、複数種類の更新規則のうちから任意の更新規則を選択することにより、更新規則を変更するようにしてもよい。図15に示す動作例では、1回目の乱数更新規則の変更により、乱数列変更回路555から出力される乱数列RSNが、「65535→65534→…→0」となる。その後、2回目の乱数更新規則の変更により、乱数列変更回路555から出力される乱数列RSNは、「0→2→…→65534→1→…→65535」となる。図15に示す動作例では、3回目の乱数更新規則の変更により、乱数列変更回路555から出力される乱数列RSNは、「65534→0→…→32768」となる。4回目の乱数更新規則の変更が行なわれたときには、乱数列変更回路555から出力される乱数列RSNが、「16383→49151→…→49150」となる。5回目の乱数更新規則の変更が行なわれたときには、乱数列変更回路555から出力される乱数列RSNが、「4→3→…→465531」となる。   When the random number sequence RSN output from the random number change circuit 555 reaches a predetermined final value, the random number sequence change setting circuit 556 follows a predetermined order from among a plurality of types of update rules prepared in advance. The update rule may be changed by selecting the update rule. Alternatively, the random number sequence change setting circuit 556 may change the update rule by selecting an arbitrary update rule from among a plurality of types of update rules. In the operation example shown in FIG. 15, the random number sequence RSN output from the random number sequence change circuit 555 becomes “65535 → 65534 →. Thereafter, due to the second change in the random number update rule, the random number sequence RSN output from the random number sequence change circuit 555 becomes “0 → 2 →... → 65534 → 1 →. In the operation example illustrated in FIG. 15, the random number sequence RSN output from the random number sequence change circuit 555 is “65534 → 0 →... → 32768” due to the third change in the random number update rule. When the fourth random number update rule change is performed, the random number sequence RSN output from the random number sequence change circuit 555 becomes “16383 → 49151 →... → 49150”. When the fifth random number update rule change is performed, the random number sequence RSN output from the random number sequence change circuit 555 becomes “4 → 3 →... → 465553”.

ラッチ用フリップフロップ557Aは、たとえばD型フリップフロップなどを用いて構成される。ラッチ用フリップフロップ557Aでは、D入力端子にPIP510が備える入力ポートP0からの配線が接続され、クロック端子CKにラッチ用クロックRC1を伝送する配線が接続されている。本実施の形態では、入力ポートP0にスタートスイッチ7からのゲーム開始信号SS1が入力される。ラッチ用フリップフロップ557Aは、ラッチ用クロックRC1の立上りエッジなどに応答して、ゲーム開始信号SS1を取り込み、ゲーム開始時ラッチ信号SL1として出力する。これにより、ラッチ用フリップフロップ557Aでは、ラッチ用クロックRC1の立上りエッジに同期して、ゲーム開始信号SS1がゲーム開始時ラッチ信号SL1として出力される。   The latch flip-flop 557A is configured using, for example, a D-type flip-flop. In the latch flip-flop 557A, a wiring from the input port P0 included in the PIP 510 is connected to the D input terminal, and a wiring for transmitting the latch clock RC1 is connected to the clock terminal CK. In the present embodiment, the game start signal SS1 from the start switch 7 is input to the input port P0. The latch flip-flop 557A takes in the game start signal SS1 in response to the rising edge of the latch clock RC1, and outputs it as the game start latch signal SL1. Thus, in the latch flip-flop 557A, the game start signal SS1 is output as the game start latch signal SL1 in synchronization with the rising edge of the latch clock RC1.

なお、ゲーム開始信号SS1は、スタートスイッチ7から直接伝送されるものに限定されない。一例として、スタートスイッチ7からの出力信号からの出力信号がオン状態となっている時間を計測し、計測した時間が所定の時間(たとえば3ms)になったときに、ゲーム開始信号SS1を出力するタイマ回路を設けてもよい。   Note that the game start signal SS1 is not limited to that transmitted directly from the start switch 7. As an example, the time when the output signal from the output signal from the start switch 7 is on is measured, and when the measured time reaches a predetermined time (for example, 3 ms), the game start signal SS1 is output. A timer circuit may be provided.

乱数ラッチセレクタ558Aは、ラッチ用フリップフロップ557Aから伝送されるゲーム開始時ラッチ信号SL1と、ソフトウェアによる乱数ラッチ要求信号とを取り込み、いずれかを乱数ラッチ信号LL1として選択的に出力する回路である。乱数ラッチセレクタ558Aは、図7(B)に示すようなメイン制御部41が備える内蔵レジスタのうち、乱数値取込レジスタRDLT(アドレス2032H)を用いて、乱数ラッチ信号LL1の出力を制御する。乱数値取込レジスタRDLTは、乱数列変更回路555から出力された乱数列RSNにおける数値データを、ソフトウェアにより乱数値レジスタ559Aに取り込むために用いられるレジスタである。乱数ラッチ選択レジスタRDLSは、乱数列変更回路555から出力された乱数列RSNにおける数値データを、乱数値レジスタ559Aに、ソフトウェアにより取り込むか、入力ポートP0への信号入力により取り込むかの取込方法を示すレジスタである。   The random number latch selector 558A is a circuit that takes in the game start latch signal SL1 transmitted from the latch flip-flop 557A and the software random number latch request signal, and selectively outputs either one as the random number latch signal LL1. The random number latch selector 558A controls the output of the random number latch signal LL1 by using a random value fetch register RDLT (address 2032H) among the built-in registers provided in the main control unit 41 as shown in FIG. 7B. The random value acquisition register RDLT is a register used to acquire numerical data in the random number sequence RSN output from the random number sequence change circuit 555 into the random value register 559A by software. The random number latch selection register RDLS has a method of taking in the numerical data in the random number sequence RSN output from the random number sequence changing circuit 555 into the random value register 559A by software or by inputting a signal to the input port P0. It is a register to show.

図16(A)は、乱数値取込レジスタRDLTの構成例を示している。図16(B)は、乱数値取込レジスタRDLTに格納される乱数値取込指定データの各ビットにおける設定内容の一例を示している。乱数値取込レジスタRDLTのビット番号[0]に格納される乱数値取込指定データRDLT0は、乱数値レジスタR1Dとなる乱数値レジスタ559Aに対する乱数値取込指定の有無を示している。図16(B)に示す例では、ソフトウェアにより乱数値レジスタR1Dに対する乱数値の取込指定がないときに、乱数値取込指定データRDLT0のビット値が“0”となる一方、乱数値の取込指定があったときには、そのビット値が“1”となる。   FIG. 16A shows a configuration example of the random value fetch register RDLT. FIG. 16B shows an example of the setting contents in each bit of the random number acquisition specification data stored in the random value acquisition register RDLT. The random value acquisition specification data RDLT0 stored in the bit number [0] of the random value acquisition register RDLT indicates whether or not a random value acquisition specification is given to the random value register 559A serving as the random value register R1D. In the example shown in FIG. 16B, when there is no specification of random number acquisition to the random number register R1D by software, the bit value of the random value acquisition specification data RDLT0 is “0”, while the random value acquisition is not performed. The bit value is “1” when an instruction is included.

図17(A)は、乱数ラッチ選択レジスタRDLSの構成例を示している。図17(B)は、乱数ラッチ選択レジスタRDLSに格納される乱数ラッチ選択データの各ビットにおける設定内容の一例を示している。乱数ラッチ選択レジスタRDLSのビット番号[0]に格納される乱数ラッチ選択データRDLS0は、乱数値レジスタR1Dとなる乱数値レジスタ559Aへの取込方法を示している。図17(B)に示す例では、ソフトウェアによる乱数値取込指定データRDLT0の書き込みに応じて乱数値となる数値データを乱数値レジスタR1Dに取り込む場合に、乱数ラッチ選択データRDLS0のビット値を“0”とする。これに対して、入力ポートP0への信号入力に応じて乱数値となる数値データを乱数値レジスタR1Dに取り込む場合には、乱数ラッチ選択データRDLS0のビット値を“1”とする。本実施の形態では、乱数ラッチ選択データRDLS0のビット値が“1”とされており、入力ポートP0への信号入力に応じて乱数値となる数値データが乱数値レジスタR1Dに取り込まれる。   FIG. 17A shows a configuration example of the random number latch selection register RDLS. FIG. 17B shows an example of setting contents in each bit of random number latch selection data stored in the random number latch selection register RDLS. The random number latch selection data RDLS0 stored in the bit number [0] of the random number latch selection register RDLS indicates a method of taking in the random number value register 559A serving as the random number value register R1D. In the example shown in FIG. 17B, the bit value of the random number latch selection data RDLS0 is “ 0 ”. On the other hand, when the numerical value data to be a random number value is taken into the random value register R1D in response to the signal input to the input port P0, the bit value of the random number latch selection data RDLS0 is set to “1”. In this embodiment, the bit value of the random number latch selection data RDLS0 is set to “1”, and numerical data that becomes a random value in accordance with the signal input to the input port P0 is taken into the random value register R1D.

乱数値レジスタ559Aは、乱数列変更回路555から出力された乱数列RSNにおける数値データを乱数値として格納するレジスタである。図18(A)および(B)は、乱数値レジスタR1Dとなる乱数値レジスタ559Aの構成例を示している。なお、図18(A)は、乱数値レジスタR1Dの下位バイトR1D(L)を示し、図18(B)は、乱数値レジスタR1Dの上位バイトR1D(H)を示している。乱数値レジスタ559Aは16ビット(2バイト)のレジスタであり、16ビットの乱数値を格納することができる。   The random value register 559A is a register that stores numerical data in the random number sequence RSN output from the random number sequence change circuit 555 as a random value. FIGS. 18A and 18B show a configuration example of a random value register 559A serving as the random value register R1D. 18A shows the lower byte R1D (L) of the random value register R1D, and FIG. 18B shows the upper byte R1D (H) of the random value register R1D. The random value register 559A is a 16-bit (2-byte) register, and can store a 16-bit random value.

乱数値レジスタ559Aは、乱数ラッチセレクタ558Aから供給される乱数ラッチ信号LL1がオン状態となったことに応答して、乱数列変更回路555から出力された乱数列RSNにおける数値データを乱数値として取り込んで格納する。乱数値レジスタ559Aは、CPU505から供給されるレジスタリード信号RRS1がオン状態となったときに、読出可能(イネーブル)状態となり、格納されている数値データを内部バス等に出力する。これに対して、レジスタリード信号RRS1がオフ状態であるときには、常に同じ値(たとえば「65535H」など)を出力して、読出不能(ディセーブル)状態となればよい。また、乱数値レジスタ559Aは、乱数ラッチ信号LL1がオン状態である場合に、レジスタリード信号RRS1を受信不可能な状態となるようにしてもよい。さらに、乱数値レジスタ559Aは、乱数ラッチ信号LL1がオン状態となるより前にレジスタリード信号RRS1がオン状態となっている場合に、乱数ラッチ信号LL1を受信不可能な状態となるようにしてもよい。   The random value register 559A takes in the numerical data in the random number sequence RSN output from the random number sequence change circuit 555 as a random value in response to the random number latch signal LL1 supplied from the random number latch selector 558A being turned on. Store with. When the register read signal RRS1 supplied from the CPU 505 is turned on, the random value register 559A is in a readable (enable) state and outputs stored numerical data to an internal bus or the like. On the other hand, when the register read signal RRS1 is in the OFF state, the same value (for example, “65535H” or the like) is always output, and the reading is disabled (disabled). Further, the random value register 559A may be in a state in which the register read signal RRS1 cannot be received when the random number latch signal LL1 is in the ON state. Further, the random value register 559A may be in a state in which the random number latch signal LL1 cannot be received when the register read signal RRS1 is in the on state before the random number latch signal LL1 is in the on state. Good.

乱数値レジスタ559Aは、図7(B)に示すようなメイン制御部41が備える内蔵レジスタのうち、乱数ラッチフラグレジスタRDFM(アドレス2033H)と、乱数割込制御レジスタRDIC(アドレス2031H)とを用いて、乱数ラッチ時の動作管理や割込制御を可能にする。乱数ラッチフラグレジスタRDFMは、乱数値レジスタ559Aに対応して、乱数値となる数値データがラッチされたか否かを示す乱数ラッチフラグを格納するレジスタである。乱数割込制御レジスタRDICは、乱数値レジスタ559Aに乱数値となる数値データがラッチされたときに発生する割込の許可/禁止を設定するレジスタである。   The random value register 559A uses a random number latch flag register RDFM (address 2033H) and a random number interrupt control register RDIC (address 2031H) among the built-in registers provided in the main control unit 41 as shown in FIG. 7B. This enables operation management and interrupt control when latching random numbers. The random number latch flag register RDFM is a register that stores a random number latch flag indicating whether or not numerical data serving as a random number value has been latched corresponding to the random value register 559A. The random number interrupt control register RDIC is a register that sets permission / prohibition of an interrupt that occurs when numerical data that becomes a random number value is latched in the random number value register 559A.

図19(A)は、乱数ラッチフラグレジスタRDFMの構成例を示している。図19(B)は、乱数ラッチフラグレジスタRDFMに格納される乱数ラッチフラグデータの各ビットにおける設定内容の一例を示している。乱数ラッチフラグレジスタRDFMのビット番号[0]に格納される乱数ラッチフラグデータRDFM0は、乱数値レジスタR1Dとなる乱数値レジスタ559Aに数値データが取り込まれたか否かを示す乱数ラッチフラグとなる。図19(B)に示す例では、乱数値レジスタR1Dに数値データが取り込まれていないときに(乱数値取込なし)、乱数ラッチフラグデータRDFM0のビット値が“0”となる一方、数値データが取り込まれたときには(乱数値取込あり)、そのビット値が“1”となる。乱数ラッチフラグデータRDFM0が“1”の状態、すなわち乱数値レジスタR1Dに数値データが取り込まれている状態では、新たな乱数値の取込要求が発生した場合でも、新たな数値データを乱数値レジスタR1Dに取り込まないようになっており、このような状態では、乱数値レジスタR1Dの数値データが読み出されて、乱数ラッチフラグデータRDFM0がクリアされるまで新たな数値データを乱数値レジスタR1Dに取り込むことが不可能となる。   FIG. 19A shows a configuration example of the random number latch flag register RDFM. FIG. 19B shows an example of setting contents in each bit of the random number latch flag data stored in the random number latch flag register RDFM. The random number latch flag data RDFM0 stored in the bit number [0] of the random number latch flag register RDFM is a random number latch flag indicating whether or not numerical data has been taken into the random number value register 559A serving as the random number value register R1D. In the example shown in FIG. 19B, when the numerical value data is not taken into the random value register R1D (no random value is taken), the bit value of the random number latch flag data RDFM0 becomes “0”, while the numerical data Is taken (with random number fetching), the bit value becomes “1”. In the state where the random number latch flag data RDFM0 is “1”, that is, in the state where the numerical data is captured in the random value register R1D, the new numerical data is stored in the random value register even when a new random number capturing request is generated. In such a state, the numerical data in the random value register R1D is read and new numerical data is captured in the random value register R1D until the random number latch flag data RDFM0 is cleared. It becomes impossible.

図20(A)は、乱数割込制御レジスタRDICの構成例を示している。図20(B)は、乱数割込制御レジスタRDICに格納される乱数割込制御データの各ビットにおける設定内容の一例を示している。乱数割込制御レジスタRDICのビット番号[0]に格納される乱数割込制御データRDIC0は、乱数値レジスタR1Dとなる乱数値レジスタ559Aに数値データが取り込まれたときに発生する割込を、許可するか禁止するかの割込制御設定を示している。図20(B)に示す例では、乱数値レジスタR1Dへの取込時における割込を禁止する場合に(割込禁止)、乱数割込制御データRDIC0のビット値を“0”とする一方、この割込を許可する場合には(割込許可)、そのビット値を“1”とする。本実施の形態では、乱数割込制御データRDIC0のビット値が“0”に設定されており、乱数値レジスタR1Dとなる乱数値レジスタ559Aに数値データが取り込まれても割込は発生しない。   FIG. 20A shows a configuration example of the random number interrupt control register RDIC. FIG. 20B shows an example of setting contents in each bit of random number interrupt control data stored in the random number interrupt control register RDIC. The random number interrupt control data RDIC0 stored in the bit number [0] of the random number interrupt control register RDIC permits an interrupt that occurs when numerical data is fetched into the random number value register 559A serving as the random number value register R1D. This shows the interrupt control setting to enable or disable. In the example shown in FIG. 20B, when interrupting at the time of fetching into the random value register R1D is prohibited (interrupt prohibited), the bit value of the random number interrupt control data RDIC0 is set to “0”, When this interrupt is permitted (interrupt permitted), the bit value is set to “1”. In the present embodiment, the bit value of the random number interrupt control data RDIC0 is set to “0”, and no interrupt is generated even if numerical data is captured in the random value register 559A serving as the random value register R1D.

メイン制御部41が備えるPIP510は、たとえば6ビット幅の入力専用ポートであり、専用端子となる入力ポートP0〜入力ポートP2と、機能兼用端子となる入力ポートP3〜入力ポートP5とを含んでいる。入力ポートP3は、CPU505等に接続される外部マスカブル割込端子XINTと兼用される。入力ポートP4は、CPU505等に接続される外部ノンマスカブル割込端子XNMIと兼用される。入力ポートP5は、シリアル通信回路511が使用する第1チャネル受信端子RXAと兼用される。入力ポートP3〜入力ポートP5の使用設定は、プログラム管理エリアに記憶される機能設定KFCSにより指示される。   The PIP 510 included in the main control unit 41 is, for example, a 6-bit input dedicated port, and includes an input port P0 to an input port P2 serving as a dedicated terminal, and an input port P3 to an input port P5 serving as a function shared terminal. . The input port P3 is also used as an external maskable interrupt terminal XINT connected to the CPU 505 or the like. The input port P4 is also used as an external non-maskable interrupt terminal XNMI connected to the CPU 505 or the like. The input port P5 is also used as the first channel reception terminal RXA used by the serial communication circuit 511. The use setting of the input port P3 to the input port P5 is instructed by the function setting KFCS stored in the program management area.

PIP510は、図7(B)に示すようなメイン制御部41が備える内蔵レジスタのうち、入力ポートレジスタPI(アドレス2090H)などを用いて、入力ポートP0〜入力ポートP5の状態管理等を行なう。入力ポートレジスタPIは、入力ポートP0〜入力ポートP5のそれぞれに対応して、外部信号の入力状態を示すビット値が格納されるレジスタである。   The PIP 510 performs state management of the input port P0 to the input port P5 using the input port register PI (address 2090H) among the built-in registers included in the main control unit 41 as shown in FIG. The input port register PI is a register that stores a bit value indicating the input state of the external signal corresponding to each of the input ports P0 to P5.

図21(A)は、入力ポートレジスタPIの構成例を示している。図21(B)は、入力ポートレジスタPIに格納される入力ポートデータの各ビットにおける設定内容の一例を示している。入力ポートレジスタPIのビット番号[5]に格納される入力ポートデータPI5は、第1チャネル受信端子RXAと兼用される入力ポートP5における端子状態(オン/オフ)を示している。入力ポートレジスタPIのビット番号[4]に格納される入力ポートデータPI4は、外部ノンマスカブル割込端子XNMIと兼用される入力ポートP4における端子状態(オン/オフ)を示している。入力ポートレジスタPIのビット番号[3]に格納される入力ポートデータPI3は、外部マスカブル割込端子XINTと兼用される入力ポートP3における端子状態(オン/オフ)を示している。入力ポートレジスタPIのビット番号[2]に格納される入力ポートデータPI2は、入力ポートP2における端子状態(オン/オフ)を示している。入力ポートレジスタPIのビット番号[1]に格納される入力ポートデータPI1は、入力ポートP1における端子状態(オン/オフ)を示している。入力ポートレジスタPIのビット番号[0]に格納される入力ポートデータPI0は、入力ポートP0における端子状態(オン/オフ)を示している。   FIG. 21A shows a configuration example of the input port register PI. FIG. 21B shows an example of setting contents in each bit of the input port data stored in the input port register PI. The input port data PI5 stored in the bit number [5] of the input port register PI indicates the terminal state (ON / OFF) at the input port P5 that is also used as the first channel receiving terminal RXA. The input port data PI4 stored in the bit number [4] of the input port register PI indicates the terminal state (ON / OFF) at the input port P4 that is also used as the external non-maskable interrupt terminal XNMI. The input port data PI3 stored in the bit number [3] of the input port register PI indicates the terminal state (ON / OFF) at the input port P3 that is also used as the external maskable interrupt terminal XINT. The input port data PI2 stored in the bit number [2] of the input port register PI indicates the terminal state (ON / OFF) at the input port P2. The input port data PI1 stored in the bit number [1] of the input port register PI indicates the terminal state (ON / OFF) at the input port P1. The input port data PI0 stored in the bit number [0] of the input port register PI indicates the terminal state (ON / OFF) at the input port P0.

図5に示すメイン制御部41が備えるアドレスデコード回路512は、メイン制御部41の内部における各機能ブロックのデコードや、外部装置用のデコード信号であるチップセレクト信号のデコードを行なうための回路である。チップセレクト信号により、メイン制御部41の内部回路、或いは、周辺デバイスとなる外部装置を、選択的に有効動作させて、CPU505からのアクセスが可能となる。   An address decoding circuit 512 provided in the main control unit 41 shown in FIG. 5 is a circuit for decoding each functional block in the main control unit 41 and a chip select signal that is a decoding signal for an external device. . By the chip select signal, an internal circuit of the main control unit 41 or an external device as a peripheral device is selectively operated effectively and can be accessed from the CPU 505.

メイン制御部41が備えるROM506には、ゲーム制御用のユーザプログラムやセキュリティチェックプログラム506Aの他に、ゲームの進行を制御するために用いられる各種の選択用データ、テーブルデータなどが格納される。たとえば、ROM506には、CPU505が各種の判定や決定、設定を行なうために用意された複数の判定テーブルや決定テーブル、設定テーブルなどを構成するデータが記憶されている。また、ROM506には、CPU505が遊技制御基板40から各種の制御コマンドとなる制御信号を送信するために用いられる複数のコマンドテーブルを構成するテーブルデータなどが記憶されている。   The ROM 506 provided in the main control unit 41 stores various selection data and table data used for controlling the progress of the game, in addition to the game control user program and the security check program 506A. For example, the ROM 506 stores data constituting a plurality of determination tables, determination tables, setting tables and the like prepared for the CPU 505 to perform various determinations, determinations, and settings. The ROM 506 stores table data constituting a plurality of command tables used for the CPU 505 to transmit control signals serving as various control commands from the game control board 40.

メイン制御部41が備えるRAM507には、スロットマシン1におけるゲームの進行などを制御するために用いられる各種のデータを保持する領域として、遊技制御用データ保持エリア590が設けられている。RAM507としては、たとえばDRAMが使用されており、記憶しているデータ内容を維持するためのリフレッシュ動作が必要になる。CPU505には、このリフレッシュ動作を行なうためのリフレッシュレジスタが内蔵されている。たとえば、リフレッシュレジスタは8ビットからなり、そのうち下位7ビットはCPU505がROM506から命令フェッチするごとに自動的にインクリメントされる。したがって、リフレッシュレジスタにおける格納値の更新は、CPU505における1命令の実行時間ごとに行なわれることになる。   The RAM 507 provided in the main control unit 41 is provided with a game control data holding area 590 as an area for holding various data used for controlling the progress of the game in the slot machine 1. For example, a DRAM is used as the RAM 507, and a refresh operation is required to maintain the stored data contents. The CPU 505 has a built-in refresh register for performing this refresh operation. For example, the refresh register is composed of 8 bits, and the lower 7 bits are automatically incremented every time the CPU 505 fetches an instruction from the ROM 506. Therefore, the stored value in the refresh register is updated every execution time of one instruction in the CPU 505.

メイン制御部41は、遊技制御基板40に接続された各種スイッチ類の検出状態が入力ポートから入力される。そしてメイン制御部41は、これら入力ポートから入力される各種スイッチ類の検出状態に応じて段階的に移行する基本処理を実行する。   The main control unit 41 receives the detection state of various switches connected to the game control board 40 from the input port. Then, the main control unit 41 executes basic processing that shifts in stages according to the detection states of various switches input from these input ports.

また、メイン制御部41は、割込の発生により基本処理に割り込んで割込処理を実行できるようになっている。本実施の形態では、外部マスカブル割込端子XINTが、前述した電断検出回路48と接続されており、メイン制御部41は電断検出回路48から出力された電圧低下信号の入力に応じて後述する電断割込処理(メイン)を実行する。また、メイン制御部41は、CTC508に含まれるタイマ回路にてタイムアウトが発生したこと、すなわち一定時間間隔(本実施の形態では、約0.56ms)毎に後述するタイマ割込処理(メイン)を実行する。   Further, the main control unit 41 can execute an interrupt process by interrupting the basic process when an interrupt occurs. In the present embodiment, the external maskable interrupt terminal XINT is connected to the power interruption detection circuit 48 described above, and the main control unit 41 will be described later according to the input of the voltage drop signal output from the power interruption detection circuit 48. Execute the power interruption interrupt processing (main). Further, the main control unit 41 performs a timer interrupt process (main), which will be described later, every time a certain time interval (in this embodiment, about 0.56 ms) occurs in the timer circuit included in the CTC 508. Run.

また、メイン制御部41は、割込処理の実行中に他の割込を禁止するように設定されているとともに、複数の割込が同時に発生した場合には、予め定められた順位によって優先して実行する割込が設定されている。本実施の形態では、タイマ割込処理(メイン)よりも電断割込処理(メイン)の方が優先順位が高く、これらの割込が同時に発生した場合には電断割込処理(メイン)が優先して実行される。   The main control unit 41 is set to prohibit other interrupts during the execution of the interrupt process, and when a plurality of interrupts occur at the same time, the main control unit 41 prioritizes according to a predetermined order. An interrupt to be executed is set. In this embodiment, the interruption interrupt process (main) has a higher priority than the timer interruption process (main), and when these interruptions occur simultaneously, the interruption interruption process (main) Is executed with priority.

なお、割込処理の実行中に他の割込要因が発生し、割込処理が終了してもその割込要因が継続している状態であれば、その時点で新たな割込が発生することとなる。たとえば、タイマ割込処理(メイン)の実行中に電圧低下信号が入力された場合に、その時点で電断割込処理(メイン)が実行されることはないが、実行中のタイマ割込処理(メイン)が終了した時点で、電圧低下信号の入力が継続している場合には、その時点で電断割込処理(メイン)が実行されることとなる。   If another interrupt factor occurs during the execution of the interrupt process and the interrupt factor continues even after the interrupt process ends, a new interrupt occurs at that point. It will be. For example, if a voltage drop signal is input during execution of the timer interrupt process (main), the power interruption interrupt process (main) is not executed at that time, but the timer interrupt process being executed When the input of the voltage drop signal is continued when (main) is completed, the power interruption interrupt process (main) is executed at that time.

メイン制御部41は、基本処理として遊技制御基板40に接続された各種スイッチ類の検出状態が変化するまでは制御状態に応じた処理を繰り返しループし、各種スイッチ類の検出状態の変化に応じて段階的に移行する処理を実行する。また、メイン制御部41は、電断検出回路48から出力された電圧低下信号の入力に応じて電断割込処理(メイン)を実行し、一定時間間隔(本実施の形態では、約0.56ms)毎にタイマ割込処理(メイン)を実行する。   The main control unit 41 repeatedly loops the process according to the control state until the detection state of the various switches connected to the game control board 40 changes as a basic process, and changes the detection state of the various switches. Execute a process that moves in stages. In addition, the main control unit 41 executes a power interruption interrupt process (main) in response to the input of the voltage drop signal output from the power interruption detection circuit 48, and at a constant time interval (in the present embodiment, about 0. 0). Timer interrupt processing (main) is executed every 56 ms).

なお、タイマ割込処理(メイン)の実行間隔は、基本処理において制御状態に応じて繰り返す処理が一巡する時間とタイマ割込処理(メイン)の実行時間とを合わせた時間よりも長い時間に設定されており、今回と次回のタイマ割込処理(メイン)との間で必ず制御状態に応じて繰り返す処理が最低でも一巡することとなる。   Note that the execution interval of the timer interrupt process (main) is set to a time longer than the sum of the time required to complete the repetition of the process depending on the control state in the basic process and the execution time of the timer interrupt process (main) Therefore, the process that is repeated according to the control state between the current and next timer interrupt processes (main) is completed at least once.

メイン制御部41は、演出制御基板90に各種のコマンドを送信する。遊技制御基板40から演出制御基板90へ送信されるコマンドは一方向のみで送られ、演出制御基板90から遊技制御基板40へ向けてコマンドが送られることはない。   The main control unit 41 transmits various commands to the effect control board 90. A command transmitted from the game control board 40 to the effect control board 90 is sent in only one direction, and no command is sent from the effect control board 90 to the game control board 40.

演出制御基板90には、スロットマシン1の前面扉1bに配置された液晶表示器51(図1参照)、演出効果LED52、スピーカ53、54、前述したリールLED55等の演出装置が接続されており、これら演出装置は、演出制御基板90に搭載された後述のサブ制御部91による制御に基づいて駆動されるようになっている。   The effect control board 90 is connected to effect devices such as a liquid crystal display 51 (see FIG. 1), an effect LED 52, speakers 53 and 54, and the reel LED 55 described above, which are arranged on the front door 1b of the slot machine 1. These effect devices are driven based on control by a later-described sub-control unit 91 mounted on the effect control board 90.

なお、本実施の形態では、演出制御基板90に搭載されたサブ制御部91により、液晶表示器51、演出効果LED52、スピーカ53、54、リールLED55等の演出装置の出力制御が行なわれる構成であるが、サブ制御部91とは別に演出装置の出力制御を直接的に行なう出力制御部を演出制御基板90または他の基板に搭載し、サブ制御部91がメイン制御部41からのコマンドに基づいて演出装置の出力パターンを決定し、サブ制御部91が決定した出力パターンに基づいて出力制御部が演出装置の出力制御を行なう構成としてもよく、このような構成では、サブ制御部91および出力制御部の双方によって演出装置の出力制御が行なわれることとなる。   In the present embodiment, the sub-control unit 91 mounted on the effect control board 90 performs output control of effect devices such as the liquid crystal display 51, effect effect LEDs 52, speakers 53 and 54, and reel LEDs 55. However, an output control unit that directly controls the output of the effect device is mounted on the effect control board 90 or another board separately from the sub control part 91, and the sub control part 91 is based on a command from the main control part 41. The output pattern of the effect device may be determined, and the output control unit may control the output of the effect device based on the output pattern determined by the sub control unit 91. In such a configuration, the sub control unit 91 and the output The output control of the effect device is performed by both of the control units.

また、本実施の形態では、演出装置として液晶表示器51、演出効果LED52、スピーカ53、54、リールLED55を例示しているが、演出装置は、これらに限られず、たとえば、機械的に駆動する表示装置や機械的に駆動する役モノなどを演出装置として適用してもよい。   Moreover, in this Embodiment, although the liquid crystal display 51, the production effect LED52, the speakers 53 and 54, and the reel LED55 are illustrated as a production device, a production device is not restricted to these, For example, it drives mechanically. A display device or a mechanically driven item may be applied as the rendering device.

演出制御基板90には、サブCPU91a、ROM91b、RAM91c、I/Oポート91dなどを備えたマイクロコンピュータにて構成され、演出の制御を行なうサブ制御部91、演出制御基板90に接続された液晶表示器51の表示制御を行なう表示制御回路92、演出効果LED52、リールLED55の駆動制御を行なうLED駆動回路93、スピーカ53、54からの音声出力制御を行なう音声出力回路94、電源投入時または電源遮断時にサブCPU91aにリセット信号を与えるリセット回路95、日付情報および時刻情報を含む時間情報を出力する時計装置97、スロットマシン1に供給される電源電圧を監視し、電圧低下を検出したときに、その旨を示す電圧低下信号をサブ制御部91に対して出力する電断検出回路98が搭載されており、サブ制御部91は、メイン制御部から送信されるコマンドを受けて、演出を行なうための各種の制御を行なうとともに、演出制御基板90に搭載された制御回路の各部を直接的または間接的に制御する。   The effect control board 90 is composed of a microcomputer having a sub CPU 91a, ROM 91b, RAM 91c, I / O port 91d, etc., and a liquid crystal display connected to the sub control unit 91 for effect control and the effect control board 90. Display control circuit 92 for performing display control of device 51, LED drive circuit 93 for controlling drive of effect LED 52 and reel LED 55, sound output circuit 94 for controlling sound output from speakers 53, 54, when power is turned on or when power is turned off A reset circuit 95 that sometimes gives a reset signal to the sub CPU 91a, a clock device 97 that outputs time information including date information and time information, and a power supply voltage supplied to the slot machine 1 are monitored, and when a voltage drop is detected, A power interruption detection circuit 9 for outputting a voltage drop signal indicating that to the sub-control unit 91 The sub-control unit 91 receives commands transmitted from the main control unit and performs various controls for performing effects, and directly controls each part of the control circuit mounted on the effect control board 90. To control automatically or indirectly.

サブ制御部91は、メイン制御部41と同様に、割込機能を備えており、メイン制御部41からのコマンド受信時に割込を発生させて、メイン制御部41から送信されたコマンドを取得し、バッファに格納するコマンド受信割込処理を実行する。また、サブ制御部91は、システムクロックの入力数が一定数に到達する毎、すなわち一定間隔毎に割込を発生させて後述するタイマ割込処理(サブ)を実行する。また、サブ制御部91の割込端子の1つは、電断検出回路98と接続されており、サブ制御部91は、電断検出回路98から出力された電圧低下信号の入力に応じて電断割込処理(サブ)を実行する。   Similar to the main control unit 41, the sub control unit 91 has an interrupt function, generates an interrupt when receiving a command from the main control unit 41, and acquires a command transmitted from the main control unit 41. Execute command reception interrupt processing to be stored in the buffer. Further, the sub control unit 91 executes an interrupt process (sub), which will be described later, by generating an interrupt every time the number of input system clocks reaches a certain number, that is, every certain interval. Also, one of the interrupt terminals of the sub control unit 91 is connected to the power interruption detection circuit 98, and the sub control unit 91 is turned on in response to the input of the voltage drop signal output from the power interruption detection circuit 98. Execute interrupt processing (sub).

また、サブ制御部91は、メイン制御部41とは異なり、コマンドの受信に基づいて割込が発生した場合には、タイマ割込処理(サブ)の実行中であっても、当該処理に割り込んでコマンド受信割込処理を実行し、タイマ割込処理(サブ)の契機となる割込が同時に発生してもコマンド受信割込処理を最優先で実行するようになっている。なお、電断割込処理(サブ)の実行中には、コマンド受信割込処理も禁止されるが、電断割込処理(サブ)の契機となる割込が同時に発生した場合にはコマンド受信割込処理を優先して実行する。   Also, unlike the main control unit 41, the sub control unit 91 interrupts the process even when the timer interrupt process (sub) is being executed when an interrupt is generated based on the reception of the command. The command reception interrupt process is executed at the same time, and the command reception interrupt process is executed with the highest priority even if interrupts that trigger the timer interrupt process (sub) occur at the same time. Command reception interrupt processing is also prohibited during the execution of power interruption interrupt processing (sub), but if an interrupt that triggers power interruption interrupt processing (sub) occurs at the same time, command reception Prioritize interrupt processing.

また、サブ制御部91にも、停電時においてバックアップ電源が供給されており、バックアップ電源が供給されている間は、RAM91cに記憶されているデータが保持されるようになっている。   The sub-control unit 91 is also supplied with backup power at the time of a power failure, and the data stored in the RAM 91c is held while the backup power is supplied.

本実施の形態のスロットマシン1は、設定値に応じてメダルの払出率が変わるものである。詳しくは、後述する内部抽選において設定値に応じた当選確率を用いることにより、メダルの払出率が変わるようになっている。設定値は1〜6の6段階からなり、6が最も払出率が高く、5、4、3、2、1の順に値が小さくなるほど払出率が低くなる。すなわち設定値として6が設定されている場合には、遊技者にとって最も有利度が高く、5、4、3、2、1の順に値が小さくなるほど有利度が段階的に低くなる。   In the slot machine 1 of the present embodiment, the medal payout rate changes according to the set value. Specifically, the medal payout rate is changed by using a winning probability corresponding to a set value in an internal lottery described later. The set value is composed of 6 levels of 1 to 6, with 6 being the highest payout rate and the payout rate being lower as the value is decreased in the order of 5, 4, 3, 2, 1. That is, when 6 is set as the set value, the advantage is highest for the player, and as the value decreases in order of 5, 4, 3, 2, 1, the advantage decreases stepwise.

設定値を変更するためには、前面扉1bを開放させ、筐体1a内に設けられている電源ボックス100の電源スイッチ39および設定キースイッチ37を操作して、スロットマシン1の電源がON状態である場合には一旦OFF状態にし、設定キースイッチ37をON状態としてからスロットマシン1の電源をONする必要がある。設定キースイッチ37をON状態として電源をONすると、設定値表示器24にRAM507から読み出された設定値が表示値として表示され、リセット/設定スイッチ38の操作による設定値の変更操作が可能な設定変更状態に移行する。設定変更状態において、リセット/設定スイッチ38が操作されると、設定値表示器24に表示された表示値が1ずつ更新されていく(設定6からさらに操作されたときは、設定1に戻る)。そして、スタートスイッチ7が操作されると表示値を設定値として確定する。そして、設定キースイッチ37がOFFされると、確定した表示値(設定値)がメイン制御部41のRAM507に格納され、遊技の進行が可能な状態に移行する。なお、電源スイッチ39を一旦OFF状態にし、設定キースイッチ37をON状態として電源スイッチ39をONさせる操作を行なうことにより、設定変更状態に移行されるため、当該操作をまとめて設定変更操作ともいう。   In order to change the set value, the front door 1b is opened, and the power switch 39 and the setting key switch 37 of the power box 100 provided in the housing 1a are operated to turn on the power of the slot machine 1. In such a case, the slot machine 1 needs to be turned on after the setting key switch 37 is turned on. When the setting key switch 37 is turned on and the power is turned on, the setting value read from the RAM 507 is displayed on the setting value display 24 as a display value, and the setting value can be changed by operating the reset / setting switch 38. Transition to the setting change state. When the reset / setting switch 38 is operated in the setting change state, the display value displayed on the setting value display 24 is updated one by one (when further operation is performed from the setting 6, the display returns to the setting 1). . When the start switch 7 is operated, the display value is determined as the set value. Then, when the setting key switch 37 is turned off, the determined display value (setting value) is stored in the RAM 507 of the main control unit 41, and the state shifts to a state in which the game can proceed. Since the power switch 39 is temporarily turned off, and the setting key switch 37 is turned on to perform the operation of turning on the power switch 39, the operation is shifted to the setting change state. .

本実施の形態においては、前面扉1bを開放状態とすることにより設定変更操作を行なうことが可能となるため、当該前面扉1bが開閉体であるといえる。また、前面扉1bの開放状態を検出するためのドア開放検出スイッチ25が開閉状態検出手段であるといえる。   In the present embodiment, since the setting change operation can be performed by opening the front door 1b, it can be said that the front door 1b is an opening / closing body. Moreover, it can be said that the door open detection switch 25 for detecting the open state of the front door 1b is an open / closed state detecting means.

また、設定値を確認するためには、ゲーム終了後、賭数が設定されていない状態で設定キースイッチ37をON状態とすればよい。このような状況で設定キースイッチ37をON状態とすると、設定値表示器24にRAM507から読み出された設定値が表示されることで設定値を確認可能な設定確認状態に移行する。設定確認状態においては、ゲームの進行が不能であり、設定キースイッチ37をOFF状態とすることで、設定確認状態が終了し、ゲームの進行が可能な状態に復帰することとなる。   In order to check the set value, after the game is over, the setting key switch 37 may be turned on with no bet amount set. When the setting key switch 37 is turned on in such a situation, the setting value read out from the RAM 507 is displayed on the setting value display 24, thereby shifting to a setting confirmation state in which the setting value can be confirmed. In the setting confirmation state, the game cannot be progressed, and by turning the setting key switch 37 to the OFF state, the setting confirmation state is ended and the state in which the game can proceed is returned.

本実施の形態のスロットマシン1においては、メイン制御部41が電断検出回路48からの電圧低下信号を検出した際に、電断割込処理(メイン)を実行する。電断割込処理(メイン)では、レジスタを後述するRAM507のスタックに退避し、RAM507にいずれかのビットが1となる破壊診断用データ(本実施の形態では、5AH)、すなわち0以外の特定のデータを格納するとともに、RAM507の全ての領域に格納されたデータに基づくRAMパリティが0となるようにRAMパリティ調整用データを計算し、RAM507に格納する処理を行なうようになっている。なお、RAMパリティとはRAM507の該当する領域(本実施の形態では、全ての領域)の各ビットに格納されている値の排他的論理和として算出される値である。このため、RAM507の全ての領域に格納されたデータに基づくRAMパリティが0であれば、RAMパリティ調整用データは0となり、RAM507の全ての領域に格納されたデータに基づくRAMパリティが1であれば、RAMパリティ調整用データは1となる。   In the slot machine 1 of the present embodiment, when the main control unit 41 detects a voltage drop signal from the power interruption detection circuit 48, a power interruption interrupt process (main) is executed. In the power interruption interrupt processing (main), a register is saved in a stack of a RAM 507, which will be described later, and data for destructive diagnosis in which any bit becomes 1 (5AH in this embodiment), that is, a specification other than 0 The RAM parity adjustment data is calculated so that the RAM parity based on the data stored in all the areas of the RAM 507 becomes 0, and stored in the RAM 507. Note that the RAM parity is a value calculated as an exclusive OR of the values stored in each bit of the corresponding area of the RAM 507 (all areas in this embodiment). For this reason, if the RAM parity based on the data stored in all areas of the RAM 507 is 0, the RAM parity adjustment data is 0, and the RAM parity based on the data stored in all areas of the RAM 507 is 1. In this case, the RAM parity adjustment data is 1.

そして、メイン制御部41は、その起動時においてRAM507の全ての領域に格納されたデータに基づいてRAMパリティを計算するとともに、破壊診断用データの値を確認し、RAMパリティが0であり、かつ破壊診断用データの値も正しいことを条件に、RAM507に記憶されているデータに基づいてメイン制御部41の処理状態を電断前の状態に復帰させるが、RAMパリティが0でない場合(1の場合)や破壊診断用データの値が正しくない場合には、RAM異常と判定し、RAM異常エラーコードをレジスタにセットしてRAM異常エラー状態に制御し、遊技の進行を不能化させるようになっている。なお、RAM異常エラー状態は、通常のエラー状態と異なり、リセットスイッチ23やリセット/設定スイッチ38を操作しても解除されないようになっており、前述した設定変更状態において新たな設定値が設定されるまで解除されることがない。   The main control unit 41 calculates the RAM parity based on the data stored in all areas of the RAM 507 at the time of activation, confirms the value of the destructive diagnosis data, the RAM parity is 0, and On the condition that the value of the destructive diagnosis data is also correct, the processing state of the main control unit 41 is restored to the state before the power interruption based on the data stored in the RAM 507, but when the RAM parity is not 0 (1 If the value of the data for destructive diagnosis is not correct, it is determined that the RAM is abnormal, the RAM abnormal error code is set in the register, and the RAM abnormal error state is controlled to disable the progress of the game. ing. Unlike the normal error state, the RAM abnormal error state is not canceled even if the reset switch 23 or the reset / setting switch 38 is operated, and a new set value is set in the setting change state described above. It will not be released until

なお、本実施の形態では、RAM507に格納されている全てのデータが停電時においてもバックアップ電源により保持されるとともに、メイン制御部41は、電源投入時においてRAM507のデータが正常であると判定した場合に、RAM507の格納データに基づいて電断前の制御状態に復帰する構成であるが、RAM507に格納されているデータのうち停電時において制御状態の復帰に必要なデータのみをバックアップし、電源投入時においてバックアップされているデータに基づいて電断前の制御状態に復帰する構成としてもよい。   In the present embodiment, all data stored in the RAM 507 is retained by the backup power source even during a power failure, and the main control unit 41 determines that the data in the RAM 507 is normal when the power is turned on. In this case, the control state is restored to the control state before the power interruption based on the data stored in the RAM 507, but only the data necessary for the return of the control state in the event of a power failure is backed up among the data stored in the RAM 507, It is good also as a structure which returns to the control state before power interruption based on the data backed up at the time of injection | throwing-in.

また、電源投入時において電断前の制御状態に復帰させる際に、全ての制御状態を電断前の制御状態に復帰させる必要はなく、遊技者に対して不利益とならない最低限の制御状態を復帰させる構成であればよく、たとえば、入力ポートの状態などを全て電断前の状態に復帰させる必要はない。   In addition, when returning to the control state before the power interruption when the power is turned on, it is not necessary to return all the control states to the control state before the power interruption, and the minimum control state that does not disadvantage the player For example, it is not necessary to restore all the states of the input ports to the state before power interruption.

また、サブ制御部91も電断検出回路98からの電圧低下信号を検出した際に、電断割込処理(サブ)を実行する。電断割込処理(サブ)では、レジスタを後述するRAM91cのスタックに退避し、RAM91cにいずれかのビットが1となる破壊診断用データを格納するとともに、RAM91cの全ての領域に格納されたデータに基づくRAMパリティが0となるようにRAMパリティ調整用データを計算し、RAM91cに格納する処理を行なうようになっている。   Further, when the sub control unit 91 detects the voltage drop signal from the power interruption detection circuit 98, the sub control unit 91 executes a power interruption interrupt process (sub). In the power interruption interrupt processing (sub), the register is saved in a stack of a RAM 91c described later, and destructive diagnosis data in which any bit is 1 is stored in the RAM 91c, and data stored in all areas of the RAM 91c. The RAM parity adjustment data is calculated so that the RAM parity based on 0 becomes 0, and stored in the RAM 91c.

そして、サブ制御部91は、その起動時においてRAM91cの全ての領域に格納されたデータに基づいてRAMパリティを計算し、RAMパリティが0であることを条件に、RAM91cに記憶されているデータに基づいてサブ制御部91の処理状態を電断前の状態に復帰させるが、RAMパリティが0でない場合(1の場合)には、RAM異常と判定し、RAM91cを初期化するようになっている。この場合、メイン制御部41と異なり、RAM91cが初期化されるのみで演出の実行が不能化されることはない。   Then, the sub-control unit 91 calculates the RAM parity based on the data stored in all the areas of the RAM 91c at the time of activation, and sets the data stored in the RAM 91c on the condition that the RAM parity is 0. Based on this, the processing state of the sub-control unit 91 is restored to the state before the power interruption, but when the RAM parity is not 0 (in the case of 1), it is determined that the RAM is abnormal and the RAM 91c is initialized. . In this case, unlike the main control unit 41, only the RAM 91c is initialized, and the performance is not disabled.

なお、本実施の形態では、RAM91cに格納されている全てのデータが停電時においてもバックアップ電源により保持されるとともに、サブ制御部91は、電源投入時においてRAM91cのデータが正常であると判定した場合に、RAM91cの格納データに基づいて電断前の制御状態に復帰する構成であるが、RAM91cに格納されているデータのうち停電時において制御状態の復帰に必要なデータのみをバックアップし、電源投入時においてバックアップされているデータに基づいて電断前の制御状態に復帰する構成としてもよい。   In the present embodiment, all data stored in the RAM 91c is held by the backup power source even during a power failure, and the sub-control unit 91 determines that the data in the RAM 91c is normal when the power is turned on. In this case, the control state is restored to the control state before the power interruption based on the data stored in the RAM 91c, but only the data necessary for the return of the control state in the event of a power failure is backed up among the data stored in the RAM 91c. It is good also as a structure which returns to the control state before power interruption based on the data backed up at the time of injection | throwing-in.

また、電源投入時において電断前の制御状態に復帰させる際に、全ての制御状態を電断前の制御状態に復帰させる必要はなく、遊技者に対して不利益とならない最低限の制御状態を復帰させる構成であればよく、入力ポートの状態や、演出が途中で中断された場合の途中経過などを全て電断前の状態に復帰させる必要はない。   In addition, when returning to the control state before the power interruption when the power is turned on, it is not necessary to return all the control states to the control state before the power interruption, and the minimum control state that does not disadvantage the player It is only necessary to restore the state of the input port, and it is not necessary to restore the state of the input port or the progress in the case where the production is interrupted in the middle to the state before the power interruption.

次に、メイン制御部41のRAM507の初期化について説明する。メイン制御部41のRAM507の格納領域は、重要ワーク、一般ワーク、特別ワーク、設定値ワーク、非保存ワーク、未使用領域、スタック領域に区分されている。   Next, initialization of the RAM 507 of the main control unit 41 will be described. The storage area of the RAM 507 of the main control unit 41 is divided into an important work, a general work, a special work, a set value work, a non-saved work, an unused area, and a stack area.

重要ワークは、各種表示器やLEDの表示用データ、I/Oの入出力データ、遊技時間の計時カウンタ等、BB終了時に初期化すると不都合があるデータが格納されるワークである。一般ワークは、停止制御テーブル、停止図柄、メダルの払出枚数、BB中のメダル払出総数等、BB終了時に初期化可能なデータが格納されるワークである。   The important work is a work in which data which is inconvenient if it is initialized at the end of the BB, such as various display devices, LED display data, I / O input / output data, and game time counter. The general work is a work that stores data that can be initialized at the end of the BB, such as a stop control table, a stop symbol, the number of medals paid out, and the total number of medals paid out in the BB.

特別ワークは、演出制御基板90へコマンドを送信するためのデータ、各種ソフトウェア乱数等、設定開始前にのみ初期化されるデータが格納されるワークである。設定値ワークは、内部抽選処理で抽選を行なう際に用いる設定値が格納されるワークである。非保存ワークは、各種スイッチ類の状態を保持するワークであり、起動時にRAM507のデータが破壊されているか否かに関わらず必ず値が設定されることとなる。   The special work is a work that stores data to be initialized only before the start of setting, such as data for transmitting a command to the effect control board 90 and various software random numbers. The set value work is a work that stores a set value used when a lottery is performed in the internal lottery process. The unsaved work is a work that holds the state of various switches, and a value is always set regardless of whether or not the data in the RAM 507 is destroyed at the time of activation.

未使用領域は、RAM507の格納領域のうち使用していない領域であり、後述する複数の初期化条件のいずれか1つでも成立すれば初期化されることとなる。スタック領域は、メイン制御部41のレジスタから退避したデータが格納される領域であり、このうちの未使用スタック領域は、未使用領域と同様に、後述する複数の初期化条件のいずれか1つでも成立すれば初期化されることとなるが、使用中スタック領域は、プログラムの続行のため、初期化されることはない。   The unused area is an unused area in the storage area of the RAM 507, and is initialized if any one of a plurality of initialization conditions described later is satisfied. The stack area is an area in which data saved from the register of the main control unit 41 is stored, and the unused stack area is one of a plurality of initialization conditions to be described later, like the unused area. However, if it is established, it will be initialized, but the in-use stack area is not initialized because the program continues.

本実施の形態においてメイン制御部41は、設定キースイッチ37がONの状態での起動時、RAM異常エラー発生時、BB終了時、設定キースイッチ37がOFFの状態での起動時においてRAM507のデータが破壊されていないとき、1ゲーム終了時の5つからなる初期化条件が成立した際に、各初期化条件に応じて初期化される領域の異なる4種類の初期化を行なう。   In the present embodiment, the main control unit 41 stores data in the RAM 507 at the time of start-up with the setting key switch 37 being ON, when a RAM error occurs, at the end of the BB, and at the time of start-up with the setting key switch 37 being OFF. When is not destroyed, when the five initialization conditions at the end of one game are satisfied, four types of initializations that are initialized in accordance with each initialization condition are performed.

初期化1は、起動時において設定キースイッチ37がONの状態であり、設定変更状態へ移行する場合において、その前に行なう初期化、またはRAM異常エラー発生時に行なう初期化であり、初期化1では、RAM507の格納領域のうち、使用中スタック領域を除く全ての領域(未使用領域および未使用スタック領域を含む)が初期化される。   Initialization 1 is a state in which the setting key switch 37 is in an ON state at the time of start-up, and is an initialization performed before the transition to the setting change state or an initialization performed when a RAM abnormality error occurs. In the storage area of the RAM 507, all areas (including the unused area and the unused stack area) other than the used stack area are initialized.

初期化1において初期化される情報には、たとえば、電断時にバックアップされていた情報(設定されていた賭数を特定するための情報、BB当選を特定するための情報など)が含まれる。これにより、初期化1が行なわれたときには、電断前に賭数が設定されていたとしても当該賭数が設定された状態に復帰されることがなく、また、電断前にBB当選していたとしてもBB当選状況に復帰されることがない。これにより、設定変更状態となる前の遊技状態を設定変更状態となった後に引き継がれることを防止することができ、遊技の公平性を担保することができる。   The information initialized in the initialization 1 includes, for example, information backed up at the time of power interruption (information for specifying the set number of bets, information for specifying BB winning). As a result, when initialization 1 is performed, even if the bet number is set before the power interruption, the bet number is not returned to the set state, and the BB is won before the power interruption. Even if it does, it will not return to the BB winning situation. Thereby, it is possible to prevent the game state before the setting change state from being taken over after entering the setting change state, and to ensure the fairness of the game.

初期化2は、BB終了時に行なう初期化であり、初期化2では、RAM507の格納領域のうち、一般ワーク、未使用領域および未使用スタック領域が初期化される。初期化3は、起動時において設定キースイッチ37がOFFの状態であり、かつRAM507のデータが破壊されていない場合において行なう初期化であり、初期化3では、非保存ワーク、未使用領域および未使用スタック領域が初期化される。初期化4は、1ゲーム終了時に行なう初期化であり、初期化4では、RAM507の格納領域のうち、未使用領域および未使用スタック領域が初期化される。   Initialization 2 is initialization performed at the end of the BB. In initialization 2, a general work, an unused area, and an unused stack area in the storage area of the RAM 507 are initialized. Initialization 3 is an initialization performed when the setting key switch 37 is in an OFF state at the time of startup and the data in the RAM 507 is not destroyed. In the initialization 3, the unsaved work, the unused area, and the The used stack area is initialized. Initialization 4 is initialization performed at the end of one game. In initialization 4, an unused area and an unused stack area in the storage area of the RAM 507 are initialized.

なお、本実施の形態では、初期化1を設定変更状態の移行前に行なっているが、設定変更状態の終了時に行なったり、設定変更状態移行前、設定変更状態終了時の双方で行なうようにしてもよい。この場合、設定値ワークを初期化してしまうと確定した設定値が失われてしまうこととなるので、設定変更状態終了時の初期化では、設定値ワークの初期化は行なわれない。   In this embodiment, the initialization 1 is performed before the setting change state is transferred. However, the initialization 1 is performed at the end of the setting change state, or both before the setting change state and at the end of the setting change state. May be. In this case, if the set value work is initialized, the determined set value is lost. Therefore, the initialization of the set value work is not performed in the initialization at the end of the setting change state.

本実施の形態のスロットマシン1は、前述のように遊技状態に応じて設定可能な賭数の規定数が定められており、遊技状態に応じて定められた規定数の賭数が設定されたことを条件にゲームを開始させることが可能となる。本実施の形態では、後に説明するが、遊技状態として、レギュラーボーナス(以下ではRBと称す)、ビッグボーナス(以下ではBBと称す)、通常遊技状態があり、このうちRBやBBでは賭数の規定数として2が定められており、通常遊技状態では賭数の規定数として3が定められている。このため、遊技状態がRBやBBであれば、賭数として2が設定されるとゲームを開始させることが可能となり、通常遊技状態であれば、賭数として3が設定されるとゲームを開始させることが可能となる。なお、本実施の形態では、遊技状態に応じた規定数の賭数が設定された時点で、全ての入賞ラインL1〜L5が有効化されるようになっており、RBやBBでは賭数として2が定められた時点で全ての入賞ラインL1〜L5が有効化されることなり、通常遊技状態では賭数として3が設定された時点で全ての入賞ラインL1〜L5が有効化されることとなる。   In the slot machine 1 according to the present embodiment, the prescribed number of bets that can be set according to the gaming state is determined as described above, and the prescribed number of bets that are determined according to the gaming state is set. It becomes possible to start the game on the condition. In this embodiment, as will be described later, there are a regular bonus (hereinafter referred to as RB), a big bonus (hereinafter referred to as BB), and a normal gaming state as gaming states. 2 is defined as the prescribed number, and 3 is defined as the prescribed number of bets in the normal gaming state. For this reason, if the gaming state is RB or BB, the game can be started if 2 is set as the bet number, and if the bet number is set to 3 in the normal gaming state, the game is started. It becomes possible to make it. In this embodiment, all the pay lines L1 to L5 are activated when a specified number of bets according to the gaming state are set, and as RBs and BBs, All winning lines L1 to L5 are activated when 2 is determined, and all winning lines L1 to L5 are activated when 3 is set as the number of bets in the normal gaming state. Become.

本実施の形態のスロットマシン1は、全てのリール2L、2C、2Rが停止した際に、有効化された入賞ライン(本実施の形態の場合、常に全ての入賞ラインが有効化されるため、以下では、有効化された入賞ラインを単に入賞ラインと呼ぶ)上に役と呼ばれる図柄の組合せが揃うと入賞となる。役は、同一図柄の組合せであってもよいし、異なる図柄を含む組合せであってもよい。   In the slot machine 1 of the present embodiment, when all the reels 2L, 2C, and 2R are stopped, the winning line that is activated (in this embodiment, all the winning lines are always activated, In the following description, an activated winning line is simply referred to as a winning line). The combination may be a combination of the same symbols or a combination including different symbols.

入賞となる役の種類は、遊技状態に応じて定められているが、大別すると、メダルの払い出しを伴う小役と、賭数の設定を必要とせずに次のゲームを開始可能となる再遊技役と、遊技状態の移行を伴う特別役と、がある。以下では、小役と再遊技役をまとめて一般役とも呼ぶ。遊技状態に応じて定められた各役の入賞が発生するためには、後述する内部抽選に当選して、当該役の当選フラグがRAM507に設定されている必要がある。   The types of winning combinations are determined according to the gaming state, but can be broadly divided into small roles with payout of medals and re-starts that allow the next game to be started without the need to set bets. There are a game combination and a special combination with a transition of the game state. Below, a small role and a re-playing role are collectively called a general role. In order to win each winning combination determined according to the game state, it is necessary to win an internal lottery described later and set a winning flag for the winning combination in the RAM 507.

なお、これら各役の当選フラグのうち、小役および再遊技役の当選フラグは、当該フラグが設定されたゲームにおいてのみ有効とされ、次のゲームでは無効となるが、特別役の当選フラグは、当該フラグにより許容された役の組合せが揃うまで有効とされ、許容された役の組合せが揃ったゲームにおいて無効となる。すなわち特別役の当選フラグが一度当選すると、例え、当該フラグにより許容された役の組合せを揃えることができなかった場合にも、その当選フラグは無効とされずに、次のゲームへ持ち越されることとなる。   Of the winning flags for each of these roles, the winning flags for the small role and the replaying role are valid only in the game in which the flag is set, and are invalid in the next game. It is valid until a combination of combinations permitted by the flag is completed, and is invalid in a game having a combination of combinations permitted. In other words, once the special combination winning flag is won, even if the combination of the combinations permitted by the flag cannot be made, the winning flag is not invalidated and is carried over to the next game. It becomes.

このスロットマシン1における役としては、図22に示すように、特別役としてビッグボーナス(以下ではビッグボーナスをBBとする)、レギュラーボーナス(以下ではレギュラーボーナスをRBとする)が、小役としてスイカ、チェリー、ベルが、再遊技役としてリプレイが定められている。   As the role in this slot machine 1, as shown in FIG. 22, a special bonus such as a big bonus (hereinafter referred to as a big bonus BB), a regular bonus (hereinafter referred to as a regular bonus RB), Cherry, Bell are replayed as a re-playing role.

チェリーは、いずれの遊技状態においても右リールについて入賞ラインのいずれかに「白チェリー」の図柄が導出されたときに入賞となり、いずれの遊技状態においても1枚のメダルが払い出される。なお、「白チェリー」の図柄が右リールの上段または下段に停止した場合には、入賞ラインL2、L5または入賞ラインL3、L4の2本の入賞ラインにチェリーの組合せが揃うこととなり、2本の入賞ライン上でチェリーに入賞したこととなるので、2枚のメダルが払い出されることとなる。   Cherry is awarded when the symbol “white cherry” is derived on any of the winning lines for the right reel in any gaming state, and one medal is paid out in any gaming state. If the symbol “white cherry” stops at the upper or lower stage of the right reel, the combination of cherries will be aligned on the two winning lines of the winning lines L2, L5 or the winning lines L3, L4. Since winning a cherry on the winning line, two medals will be paid out.

スイカは、いずれの遊技状態においても入賞ラインのいずれかに「スイカ−スイカ−スイカ」の組合せまたは「スイカ−スイカ−BAR」の組合せが揃ったときに入賞となり、RBやBBでは15枚のメダルが払い出され、通常遊技状態では12枚のメダルが払い出される。ベルは、いずれの遊技状態においても入賞ラインのいずれかに「ベル−ベル−ベル」の組合せが揃ったときに入賞となり、RBやBBでは15枚のメダルが払い出され、通常遊技状態では10枚のメダルが払い出される。   A watermelon is awarded when a combination of "Watermelon-Watermelon-Watermelon" or "Watermelon-Watermelon-BAR" is available on any of the winning lines in any game state, and 15 medals at RB and BB Are paid out, and in the normal gaming state, 12 medals are paid out. A bell is awarded when a combination of “bell-bell-bell” is aligned on any of the winning lines in any gaming state, 15 medals are paid out in RB and BB, and 10 in the normal gaming state. A medal is paid out.

リプレイは、通常遊技状態において入賞ラインのいずれかに「リプレイ−リプレイ−リプレイ」の組合せ、「BAR−リプレイ−リプレイ」の組合せ、または「黒7−リプレイ−リプレイ」の組合せのうちいずれかの組合せが揃ったときに入賞となる。リプレイが入賞したときには、メダルの払い出しはないが次のゲームを改めて賭数を設定することなく開始できるので、次のゲームで設定不要となった賭数に対応した3枚のメダルが払い出されるのと実質的には同じこととなる。   Replay is a combination of “Replay-Replay-Replay”, “BAR-Replay-Replay”, or “Black 7-Replay-Replay” in any of the winning lines in the normal gaming state. Wins when you have the right. When the replay wins, no medals are paid out, but the next game can be started without setting the number of wagers again, so that three medals corresponding to the number of wagers that are not required to be set in the next game are paid out. Is essentially the same.

RBは、通常遊技状態において入賞ラインのいずれかに「網7−網7−黒7」の組合せが揃ったときに入賞となり、遊技状態がRBに移行する。RBは、小役、特にベルの当選確率が高まることによって他の遊技状態よりも遊技者にとって有利となる遊技状態であり、RBが開始した後、12ゲームを消化したとき、または8ゲーム入賞(役の種類は、いずれでも可)したとき、のいずれか早いほうで終了する。   RB is won when the combination of “net 7-net 7-black 7” is aligned on any of the winning lines in the normal gaming state, and the gaming state shifts to RB. The RB is a gaming state that is advantageous to the player over other gaming states by increasing the winning probability of the small role, particularly the bell, and when the 12 games are digested after the RB starts, or an 8-game winning ( When the type of a combination is allowed), it ends either whichever comes first.

BBは、通常遊技状態において入賞ラインのいずれかに「黒7−黒7−黒7」の組合せ、「網7−網7−網7」の組合せまたは「白7−白7−白7」の組合せが揃ったときに入賞となる。   BB is a combination of “black 7-black 7-black 7”, “net 7-net 7-net 7” or “white 7-white 7-white 7” in any of the winning lines in the normal gaming state. When the combination is complete, a prize is awarded.

BBが入賞すると、遊技状態がBBに移行するとともに同時にRBに移行し、RBが終了した際に、BBが終了していなければ、再度RBに移行し、BBが終了するまで繰り返しRBに制御される。すなわちBB中は、常にRBに制御されることとなる。そして、BBは、当該BB中において遊技者に払い出したメダルの総数が465枚を超えたときに終了する。BBの終了時には、RBの終了条件が成立しているか否かに関わらずRBも終了する。   When BB wins, the gaming state shifts to BB and shifts to RB at the same time. When RB ends, if BB has not ended, it shifts to RB again and is controlled repeatedly until BB ends. The That is, during BB, it is always controlled to RB. The BB ends when the total number of medals paid out to the player in the BB exceeds 465. At the end of the BB, the RB is also ended regardless of whether the RB end condition is satisfied.

以下、本実施の形態の内部抽選について説明する。内部抽選は、上記した各役への入賞を許容するか否かを、全てのリール2L、2C、2Rの表示結果が導出表示される以前に(実際には、スタートスイッチ7の検出時)決定するものである。内部抽選では、まず、スタートスイッチ7の検出時に内部抽選用の乱数値(0〜65535の整数)を取得する。詳しくは、RAM507に割り当てられた乱数値格納ワークの値を同じくRAM507に割り当てられた抽選用ワークに設定する。そして、遊技状態および特別役の持ち越しの有無に応じて定められた各役について、抽選用ワークに格納された数値データと、遊技状態、賭数および設定値に応じて定められた各役の判定値数に応じて行なわれる。   Hereinafter, the internal lottery of the present embodiment will be described. In the internal lottery, it is determined whether or not the above winning combination is permitted before the display results of all the reels 2L, 2C, and 2R are derived and displayed (actually, when the start switch 7 is detected). To do. In the internal lottery, first, a random value for internal lottery (an integer from 0 to 65535) is acquired when the start switch 7 is detected. Specifically, the value of the random number storage work assigned to the RAM 507 is set to the lottery work assigned to the RAM 507. Then, for each combination determined according to the gaming state and whether or not the special combination is carried over, numerical data stored in the lottery work, and determination of each combination determined according to the gaming state, the number of bets and the set value This is done according to the number of values.

乱数値格納ワークは、スタートスイッチ7の操作と同時に乱数値レジスタR1Dにラッチされた数値データが格納される記憶領域であり、乱数値レジスタR1Dに新たな数値データがラッチされる毎に、ラッチされた数値データがその後のタイマ割込処理(メイン)において読み出され、乱数値格納ワークに格納された数値データが新たにラッチされた最新の数値データに更新されるようになっている。   The random value storage work is a storage area for storing numerical data latched in the random value register R1D simultaneously with the operation of the start switch 7, and is latched every time new numerical data is latched in the random value register R1D. The numerical data is read in the subsequent timer interrupt process (main), and the numerical data stored in the random value storage work is updated to the latest latched numerical data.

本実施の形態では、図22に示すように、遊技状態が、通常遊技状態であるか、RBやBBであるか、によって内部抽選の対象となる役が異なる。さらに遊技状態が通常遊技状態においては、特別役の持越中であるか否かによっても内部抽選の対象となる役が異なる。   In the present embodiment, as shown in FIG. 22, the role that is the subject of the internal lottery differs depending on whether the gaming state is the normal gaming state, RB, or BB. Further, when the gaming state is the normal gaming state, the role to be subject to the internal lottery varies depending on whether or not the special role is being carried over.

遊技状態が通常遊技状態であり、いずれの特別役も持ち越されていない状態では、BB、RB、リプレイ、スイカ、チェリー、ベルが内部抽選の対象役として順に読み出される。   When the gaming state is the normal gaming state and any special combination is not carried over, BB, RB, replay, watermelon, cherry, and bell are sequentially read out as the target combination of the internal lottery.

遊技状態が通常遊技状態であり、いずれかの特別役が持ち越されている状態では、リプレイ、スイカ、チェリー、ベルが内部抽選の対象役として順に読み出される。   When the gaming state is the normal gaming state and any special combination is carried over, replay, watermelon, cherry, and bell are sequentially read out as the target combinations for the internal lottery.

遊技状態がRB(BB中を含む)では、スイカ、チェリー、ベルが内部抽選の対象役として順に読み出される。   When the gaming state is RB (including the inside of the BB), watermelon, cherry, and bell are sequentially read out as the subject combination of the internal lottery.

なお、本実施の形態においては、BBに対応する図柄組合せが3種類、リプレイに対応する図柄組合せが3種類、スイカに対応する図柄組合せが2種類定められている例について説明したが、内部抽選では、図柄組合せ毎に対象役として読み出される。たとえば、BBについては、「黒7−黒7−黒7」の組合せ、「網7−網7−網7」の組合せ、「白7−白7−白7」の組合せが内部抽選の対象役として順に読み出される。リプレイやスイカについても、図柄組合せ毎に、対象役として順に読み出される。また、内部抽選で用いられる判定値数は、設定値1〜6に対応して、図柄組合せ毎に定められている。すなわち、当選率は、設定値1〜6に対応して、図柄組合せ毎に定められている。このため、内部抽選においては、設定値に対応して図柄組合せ毎に定められた当選率にしたがって、図柄組合せの導出(発生)が許容されることになる。   In the present embodiment, an example is described in which three types of symbol combinations corresponding to BB, three types of symbol combinations corresponding to replay, and two types of symbol combinations corresponding to watermelon are defined. Then, each symbol combination is read out as a target combination. For example, for BB, a combination of “black 7-black 7-black 7”, a combination of “net 7-net 7-net 7”, and a combination of “white 7-white 7-white 7” are subject to internal lottery. Are read in order. Replays and watermelons are also sequentially read out as target combinations for each symbol combination. The number of determination values used in the internal lottery is determined for each symbol combination corresponding to the set values 1 to 6. That is, the winning rate is determined for each symbol combination corresponding to the set values 1 to 6. For this reason, in the internal lottery, the derivation (generation) of the symbol combination is permitted according to the winning rate determined for each symbol combination corresponding to the set value.

内部抽選では、内部抽選の対象となる役、現在の遊技状態および設定値に対応して定められた判定値数を、内部抽選用の乱数値(抽選用ワークの値)に順次加算し、加算の結果がオーバーフローしたときに、当該役に当選したものと判定される。このため、判定値数の大小に応じた確率(判定値数/65536)で役が当選することとなる。   In the internal lottery, the number of judgment values determined according to the internal lottery target, the current game state, and the set value are sequentially added to the internal lottery random value (the value of the lottery work) and added. When the result of overflows, it is determined that the winning combination is won. For this reason, a winning combination will be won with a probability (number of determination values / 65536) according to the number of determination values.

そして、いずれかの役の当選が判定された場合には、当選が判定された役に対応する当選フラグをRAM507に割り当てられた内部当選フラグ格納ワークに設定する。内部当選フラグ格納ワークは、2バイトの格納領域にて構成されており、そのうちの上位バイトが、特別役の当選フラグが設定される特別役格納ワークとして割り当てられ、下位バイトが、一般役の当選フラグが設定される一般役格納ワークとして割り当てられている。詳しくは、特別役が当選した場合には、当該特別役が当選した旨を示す特別役の当選フラグを特別役格納ワークに設定し、一般役格納ワークに設定されている当選フラグをクリアする。また、一般役が当選した場合には、当該一般役が当選した旨を示す一般役の当選フラグを一般役格納ワークに設定する。なお、いずれの役および役の組合せにも当選しなかった場合には、一般役格納ワークのみクリアする。   If a winning combination of any combination is determined, a winning flag corresponding to the winning combination is set in the internal winning flag storage work assigned to the RAM 507. The internal winning flag storage work consists of a 2-byte storage area, of which the upper byte is assigned as the special role storing work in which the winning flag for the special role is set, and the lower byte is the winning of the general role It is assigned as a general role storage work for which a flag is set. Specifically, when a special combination is won, a special combination winning flag indicating that the special combination is won is set in the special combination storing work, and the winning flag set in the general combination storing work is cleared. When a general combination is won, a winning flag for the general combination indicating that the general combination is won is set in the general combination storing work. If no winning combination or winning combination is won, only the general winning combination work is cleared.

次に、リール2L、2C、2Rの停止制御について説明する。
メイン制御部41は、リールの回転が開始したとき、およびリールが停止し、かつ未だ回転中のリールが残っているときに、ROM506Aに格納されているテーブルインデックスおよびテーブル作成用データを参照して、回転中のリール別に停止制御テーブルを作成する。そして、ストップスイッチ8L、8C、8Rのうち、回転中のリールに対応するいずれかの操作が有効に検出されたときに、該当するリールの停止制御テーブルを参照し、参照した停止制御テーブルの滑りコマ数に基づいて、操作されたストップスイッチ8L、8C、8Rに対応するリール2L、2C、2Rの回転を停止させる制御を行なう。
Next, stop control of the reels 2L, 2C, 2R will be described.
The main control unit 41 refers to the table index and the table creation data stored in the ROM 506A when the rotation of the reel starts and when the reel stops and the reel that is still rotating still remains. A stop control table is created for each reel that is rotating. When any of the stop switches 8L, 8C, and 8R corresponding to the rotating reel is effectively detected, the stop control table of the corresponding reel is referred to and the slip of the referred stop control table is referred to. Based on the number of frames, control is performed to stop the rotation of the reels 2L, 2C, 2R corresponding to the operated stop switches 8L, 8C, 8R.

テーブルインデックスには、内部抽選による当選フラグの設定状態(以下、内部当選状態と呼ぶ)別に、テーブルインデックスを参照する際の基準アドレスから、テーブル作成用データが格納された領域の先頭アドレスを示すインデックスデータが格納されているアドレスまでの差分が登録されている。これにより内部当選状態に応じた差分を取得し、基準アドレスに対してその差分を加算することで該当するインデックスデータを取得することが可能となる。なお、役の当選状況が異なる場合でも、同一の制御が適用される場合においては、インデックスデータとして同一のアドレスが格納されており、このような場合には、同一のテーブル作成用データを参照して、停止制御テーブルが作成されることとなる。   In the table index, an index that indicates the start address of the area in which the data for table creation is stored, from the reference address when referring to the table index, according to the setting state of the winning flag by internal lottery (hereinafter referred to as the internal winning state) Differences up to the address where the data is stored are registered. As a result, a difference corresponding to the internal winning state is acquired, and the corresponding index data can be acquired by adding the difference to the reference address. Even if the winning status of the combination is different, when the same control is applied, the same address is stored as the index data. In such a case, the same table creation data is referred to. Thus, a stop control table is created.

テーブル作成用データは、停止操作位置に応じた滑りコマ数を示す停止制御テーブルと、リールの停止状況に応じて参照すべき停止制御テーブルのアドレスと、からなる。   The table creation data includes a stop control table indicating the number of sliding frames according to the stop operation position, and an address of the stop control table to be referred to according to the reel stop status.

リールの停止状況に応じて参照される停止制御テーブルは、全てのリールが回転しているか、左リールのみ停止しているか、中リールのみ停止しているか、右リールのみ停止しているか、左、中リールが停止しているか、左、右リールが停止しているか、中、右リールが停止しているか、によって異なる場合があり、更に、いずれかのリールが停止している状況においては、停止済みのリールの停止位置によっても異なる場合があるので、それぞれの状況について、参照すべき停止制御テーブルのアドレスが回転中のリール別に登録されており、テーブル作成用データの先頭アドレスに基づいて、それぞれの状況に応じて参照すべき停止制御テーブルのアドレスが特定可能とされ、この特定されたアドレスから、それぞれの状況に応じて必要な停止制御テーブルを特定できるようになっている。なお、リールの停止状況や停止済みのリールの停止位置が異なる場合でも、同一の停止制御テーブルが適用される場合においては、停止制御テーブルのアドレスとして同一のアドレスが登録されているものもあり、このような場合には、同一の停止制御テーブルが参照されることとなる。   The stop control table referred to according to the reel stop status is whether all reels are rotating, only the left reel is stopped, only the middle reel is stopped, only the right reel is stopped, It may vary depending on whether the middle reel is stopped, the left and right reels are stopped, the middle and right reels are stopped, and if any reel is stopped, stop Since there may be differences depending on the stop position of the reels already completed, the address of the stop control table to be referenced for each situation is registered for each rotating reel, and based on the top address of the table creation data, It is possible to specify the address of the stop control table that should be referred to according to the status of each, and it is necessary according to each status from this specified address. And to be able to identify the stop control table. Even when the stop status of the reels and the stop position of the stopped reels are different, when the same stop control table is applied, the same address may be registered as the address of the stop control table. In such a case, the same stop control table is referred to.

停止制御テーブルは、停止操作が行なわれたタイミング別の滑りコマ数を特定可能なデータである。本実施の形態では、リールモータ32L、32C、32Rに、168ステップ(0〜167)の周期で1周するステッピングモータを用いている。すなわちリールモータ32L、32C、32Rを168ステップ駆動させることでリール2L、2C、2Rが1周することとなる。そして、リール1周に対して16ステップ(1図柄が移動するステップ数)毎に分割した21の領域(コマ)が定められており、これらの領域には、リール基準位置から0〜20の領域番号が割り当てられている。   The stop control table is data that can specify the number of sliding frames by timing at which the stop operation is performed. In the present embodiment, stepping motors that make one turn at a cycle of 168 steps (0 to 167) are used for the reel motors 32L, 32C, and 32R. That is, when the reel motors 32L, 32C, and 32R are driven for 168 steps, the reels 2L, 2C, and 2R make one round. Then, 21 areas (frames) divided every 16 steps (the number of steps that one symbol moves) are defined for one reel, and these areas are areas 0 to 20 from the reel reference position. A number is assigned.

一方、1リールに配列された図柄数も21であり、各リールの図柄に対して、リール基準位置から0〜20の図柄番号が割り当てられているので、0番図柄から20番図柄に対して、それぞれ0〜20の領域番号が順に割り当てられていることとなる。そして、停止制御テーブルには、領域番号別の滑りコマ数が所定のルールで圧縮して格納されており、停止制御テーブルを展開することによって領域番号別の滑りコマ数を取得できるようになっている。   On the other hand, the number of symbols arranged on one reel is 21, and symbol numbers 0 to 20 from the reel reference position are assigned to symbols on each reel, so symbols 0 to 20 are assigned to each reel. , Area numbers 0 to 20 are assigned in order. In the stop control table, the number of sliding symbols for each area number is compressed and stored according to a predetermined rule, and the number of sliding symbols for each area number can be acquired by expanding the stop control table. Yes.

前述のようにテーブルインデックスおよびテーブル作成用データを参照して作成される停止制御テーブルは、領域番号に対応して、各領域番号に対応する領域が停止基準位置(本実施の形態では、透視窓3の下段図柄の領域)に位置するタイミング(リール基準位置からのステップ数が各領域番号のステップ数の範囲に含まれるタイミング)でストップスイッチ8L、8C、8Rの操作が検出された場合の滑りコマ数がそれぞれ設定されたテーブルである。   As described above, the stop control table created by referring to the table index and the table creation data corresponds to the area number, and the area corresponding to each area number has a stop reference position (in this embodiment, a perspective window). 3 when the operation of the stop switches 8L, 8C, 8R is detected at the timing (the timing in which the number of steps from the reel reference position is included in the range of the number of steps). This is a table in which the number of frames is set.

次に、停止制御テーブルの作成手順について説明すると、まず、リール回転開始時においては、そのゲームの内部当選状態に応じたテーブル作成用データの先頭アドレスを取得する。具体的には、まずテーブルインデックスを参照し、内部当選状態に対応するインデックスデータを取得し、そして取得したインデックスデータに基づいてテーブル作成用データを特定し、特定したテーブル作成用データから全てのリールが回転中の状態に対応する各リールの停止制御テーブルのアドレスを取得し、取得したアドレスに格納されている各リールの停止制御テーブルを展開して全てのリールについて停止制御テーブルを作成する。   Next, the procedure for creating the stop control table will be described. First, at the start of reel rotation, the top address of the table creation data corresponding to the internal winning state of the game is acquired. Specifically, the table index is first referred to, index data corresponding to the internal winning state is obtained, table creation data is identified based on the obtained index data, and all reels are identified from the identified table creation data. The address of the stop control table for each reel corresponding to the state of rotation is acquired, and the stop control table for each reel stored at the acquired address is expanded to generate a stop control table for all reels.

また、いずれか1つのリールが停止したとき、またはいずれか2つのリールが停止したときには、リール回転開始時に取得したインデックスデータ、すなわちそのゲームの内部当選状態に応じたテーブル作成用データの先頭アドレスに基づいてテーブル作成用データを特定し、特定したテーブル作成用データから停止済みのリールおよび当該リールの停止位置の領域番号に対応する未停止リールの停止制御テーブルのアドレスを取得し、取得したアドレスに格納されている各リールの停止制御テーブルを展開して未停止のリールについて停止制御テーブルを作成する。   Further, when any one reel stops or any two reels stop, the index data acquired at the start of reel rotation, that is, the top address of the table creation data corresponding to the internal winning state of the game The table creation data is identified based on the obtained table creation data, and the address of the stop control table for the unreacted reel corresponding to the stop reel and the area number of the stop position of the reel is obtained from the identified table creation data. The stop control table for each stored reel is expanded to create a stop control table for the unstopped reels.

次に、メイン制御部41がストップスイッチ8L、8C、8Rのうち、回転中のリールに対応するいずれかの操作を有効に検出したときに、該当するリールに表示結果を導出させる際の制御について説明すると、ストップスイッチ8L、8C、8Rのうち、回転中のリールに対応するいずれかの操作を有効に検出すると、停止操作を検出した時点のリール基準位置からのステップ数に基づいて停止操作位置の領域番号を特定し、停止操作が検出されたリールの停止制御テーブルを参照し、特定した停止操作位置の領域番号に対応する滑りコマ数を取得する。そして、取得した滑りコマ数分リールを回転させて停止させる制御を行なう。   Next, when the main control unit 41 effectively detects any one of the stop switches 8L, 8C, and 8R corresponding to the rotating reel, the control when the display result is derived to the corresponding reel is described. To explain, when any operation corresponding to the rotating reel is detected effectively among the stop switches 8L, 8C, 8R, the stop operation position is based on the number of steps from the reel reference position when the stop operation is detected. The number of sliding symbols corresponding to the area number of the specified stop operation position is acquired by referring to the stop control table of the reel where the stop operation is detected. Then, control is performed to rotate and stop the reel by the number of acquired sliding frames.

具体的には、停止操作を検出した時点のリール基準位置からのステップ数から、取得した滑りコマ数引き込んで停止させるまでのステップ数を算出し、算出したステップ数分リールを回転させて停止させる制御を行なう。これにより、停止操作が検出された停止操作位置の領域番号に対応する領域から滑りコマ数分先の停止位置となる領域番号に対応する領域が停止基準位置(本実施の形態では、透視窓3の下段図柄の領域)に停止することとなる。   Specifically, from the number of steps from the reel reference position at the time when the stop operation is detected, the number of steps from the acquired number of sliding frames to the stop is calculated, and the reel is rotated and stopped by the calculated number of steps. Take control. Thus, the region corresponding to the region number that is the stop position ahead of the number of sliding frames from the region corresponding to the region number of the stop operation position where the stop operation is detected is the stop reference position (in this embodiment, the fluoroscopic window 3 The lower symbol area).

本実施の形態のテーブルインデックスには、一の遊技状態における一の内部当選状態に対応するインデックスデータとして1つのアドレスのみが格納されており、更に、一のテーブル作成用データには、一のリールの停止状況(および停止済みのリールの停止位置)に対応する停止制御テーブルの格納領域のアドレスとして1つのアドレスのみが格納されている。すなわち一の遊技状態における一の内部当選状態に対応するテーブル作成用データ、およびリールの停止状況(および停止済みのリールの停止位置)に対応する停止制御テーブルが一意的に定められており、これらを参照して作成される停止制御テーブルも、一の遊技状態における一の内部当選状態、およびリールの停止状況(および停止済みのリールの停止位置)に対して一意となる。このため、遊技状態、内部当選状態、リールの停止状況(および停止済みのリールの停止位置)の全てが同一条件となった際に、同一の停止制御テーブル、すなわち同一の制御パターンに基づいてリールの停止制御が行なわれることとなる。   In the table index of the present embodiment, only one address is stored as index data corresponding to one internal winning state in one gaming state, and one table creation data includes one reel. Only one address is stored as the address of the storage area of the stop control table corresponding to the stop status (and the stop position of the stopped reel). That is, the table creation data corresponding to one internal winning state in one gaming state and the stop control table corresponding to the reel stop status (and the stop position of the stopped reel) are uniquely determined. The stop control table created with reference to is unique for one internal winning state in one gaming state and the reel stop status (and the stop position of the stopped reel). Therefore, when all of the gaming state, the internal winning state, and the reel stop status (and the stop position of the stopped reel) are the same, the reel is based on the same stop control table, that is, the same control pattern. The stop control is performed.

また、本実施の形態では、滑りコマ数として0〜4の値が定められており、停止操作を検出してから最大4コマ図柄を引き込んでリールを停止させることが可能である。すなわち停止操作を検出した停止操作位置を含め、最大5コマの範囲から図柄の停止位置を指定できるようになっている。また、1図柄分リールを移動させるのに1コマの移動が必要であるので、停止操作を検出してから最大4図柄を引き込んでリールを停止させることが可能であり、停止操作を検出した停止操作位置を含め、最大5図柄の範囲から図柄の停止位置を指定できることとなる。   Further, in the present embodiment, a value of 0 to 4 is determined as the number of sliding frames, and it is possible to stop the reel by drawing a maximum of 4 frames after detecting a stop operation. In other words, the stop position of the symbol can be designated from a range of a maximum of 5 frames including the stop operation position where the stop operation is detected. In addition, since it is necessary to move one frame to move the reel for one symbol, it is possible to stop the reel by pulling in a maximum of four symbols after detecting the stop operation. The symbol stop position can be designated from a range of up to five symbols including the operation position.

本実施の形態では、いずれかの役に当選している場合には、当選役を入賞ライン上に4コマの範囲で最大限引き込み、当選していない役が入賞ライン上に揃わないように引き込む滑りコマ数が定められた停止制御テーブルを作成し、リールの停止制御を行なう一方、いずれの役にも当選していない場合には、いずれの役も揃わない滑りコマ数が定められた停止制御テーブルを作成し、リールの停止制御を行なう。これにより、停止操作が行なわれた際に、入賞ライン上に最大4コマの引込範囲で当選している役を揃えて停止させることができれば、これを揃えて停止させる制御が行なわれ、当選していない役は、最大4コマの引込範囲でハズシて停止させる制御が行なわれることとなる。   In the present embodiment, when any of the winning combinations is won, the winning combination is drawn to the maximum in the range of 4 frames on the winning line, and the winning combination is drawn not to be aligned on the winning line. Create a stop control table with the number of sliding symbols and perform reel stop control. If none of the roles are won, stop control with the number of sliding symbols that do not match any of the roles A table is created and reel stop control is performed. As a result, when a stop operation is performed, if the winning combination can be stopped on the winning line within the drawing range of a maximum of 4 frames, the control is performed so that the winning combination is stopped. If the winning combination is not drawn, it will be controlled so that it can be stopped in a drawing range of up to 4 frames.

特別役が前ゲーム以前から持ち越されている状態で小役が当選した場合など、特別役と小役が同時に当選している場合には、当選した小役を入賞ラインに4コマの範囲で最大限に引き込むように滑りコマ数が定められているとともに、当選した小役を入賞ラインに最大4コマの範囲で引き込めない停止操作位置については、当選した特別役を入賞ラインに4コマの範囲で最大限に引き込むように滑りコマ数が定められた停止制御テーブルを作成し、リールの停止制御を行なう。   When a special role and a small role are elected at the same time, such as when a special role is elected while the special role has been carried over from before the previous game, the winning small role is the maximum in the range of 4 frames on the winning line. The number of sliding frames is fixed so that it can be drawn to the limit, and for the stop operation position where the selected small role cannot be drawn in the range of up to 4 frames in the winning line, the winning special role is in the range of 4 frames in the winning line A stop control table in which the number of sliding frames is determined so as to be pulled in as much as possible is created, and the reel stop control is performed.

これにより、停止操作が行なわれた際に、入賞ライン上に最大4コマの引込範囲で当選している小役を揃えて停止させることができれば、これを揃えて停止させる制御が行なわれ、入賞ライン上に最大4コマの引込範囲で当選している小役を引き込めない場合には、入賞ライン上に最大4コマの引込範囲で当選している特別役を揃えて停止させることができれば、これを揃えて停止させる制御が行なわれ、当選していない役は、4コマの引込範囲でハズシて停止させる制御が行なわれることとなる。すなわちこのような場合には、特別役よりも小役を入賞ライン上に揃える制御が優先され、小役を引き込めない場合にのみ、特別役を入賞させることが可能となる。なお、特別役と小役を同時に引き込める場合には、小役のみを引き込み、特別役と同時に小役が入賞ライン上に揃わないようになっている。   As a result, when a stop operation is performed, if it is possible to stop all the small roles that have been selected in the drawing range of up to 4 frames on the winning line and stop them, the control is performed so that the winning combination is stopped. If you can't draw a small role that has been won in the drawing range of up to 4 frames on the line, if you can stop with a special role that has been won in the drawing range of up to 4 frames on the winning line, Control is performed to align and stop them, and a winning combination that has not been won will be controlled to be stopped within the 4-frame pull-in range. That is, in such a case, priority is given to the control for aligning the small combination on the winning line over the special combination, and the special combination can be won only when the small combination cannot be drawn. When a special combination and a small combination can be withdrawn at the same time, only the small combination is withdrawn and the small combination is not aligned on the winning line at the same time as the special combination.

なお、本実施の形態では、特別役が前ゲーム以前から持ち越されている状態で小役が当選した場合や新たに特別役と小役が同時に当選した場合など、特別役と小役が同時に当選している場合には、当選した特別役よりも当選した小役が優先され、小役が引き込めない場合のみ、特別役を入賞ライン上に揃える制御を行なっているが、特別役と小役が同時に当選している場合に、小役よりも特別役を入賞ライン上に揃える制御が優先され、特別役を引き込めない場合にのみ、小役を入賞ライン上に揃える制御を行なってもよい。   In this embodiment, when a special role is elected while the special role has been carried over from before the previous game, or when a special role and a small role are won simultaneously, the special role and the small role are won simultaneously. In such cases, the selected special role has priority over the selected special role, and only when the small role cannot be withdrawn, the special role is controlled on the winning line. If both are elected at the same time, priority is given to the control of aligning the special role on the winning line over the small role, and the control of aligning the small role on the winning line may be performed only when the special role cannot be drawn. .

特別役が前ゲーム以前から持ち越されている状態で再遊技役が当選した場合など、特別役と再遊技役が同時に当選している場合には、停止操作が行なわれた際に、入賞ライン上に最大4コマの引込範囲で再遊技役の図柄を揃えて停止させる制御が行なわれる。なお、この場合、再遊技役を構成する図柄または同時当選する再遊技役を構成する図柄は、リール2L、2C、2Rのいずれについても5図柄以内、すなわち4コマ以内の間隔で配置されており、4コマの引込範囲で必ず任意の位置に停止させることができるので、特別役と再遊技役が同時に当選している場合には、遊技者によるストップスイッチ8L、8C、8Rの操作タイミングに関わらずに、必ず再遊技役が揃って入賞することとなる。すなわちこのような場合には、特別役よりも再遊技役を入賞ライン上に揃える制御が優先され、必ず再遊技役が入賞することとなる。なお、特別役と再遊技役を同時に引き込める場合には、再遊技役のみを引き込み、再遊技役と同時に特別役が入賞ライン上に揃わないようになっている。   If a special player and a replaying player are elected at the same time, such as when a replaying player is elected while the special role has been carried over from before the previous game, the winning line will be displayed when the stop operation is performed. In addition, the control is performed so that the symbols of the re-gamer are aligned and stopped within a maximum of 4 frames. In this case, the symbols constituting the re-gamer or the symbols constituting the re-gamer elected at the same time are arranged within 5 symbols for each of the reels 2L, 2C and 2R, that is, at intervals of 4 frames or less. Since it can always be stopped at any position within the 4-frame pull-in range, if the special combination and the re-playing combination are elected at the same time, the timing of the operation of the stop switches 8L, 8C, 8R by the player Without fail, the re-playing role will always be won. That is, in such a case, the control for aligning the re-games on the winning line has priority over the special game, and the re-games will always win. In the case where the special role and the replaying role can be withdrawn at the same time, only the replaying role is drawn in, and the special role is not arranged on the winning line at the same time as the replaying role.

本実施の形態においてメイン制御部41は、リール2L、2C、2Rの回転が開始した後、ストップスイッチ8L、8C、8Rの操作が検出されるまで、停止操作が未だ検出されていないリールの回転を継続し、ストップスイッチ8L、8C、8Rの操作が検出されたことを条件に、対応するリールに表示結果を停止させる制御を行なうようになっている。なお、リール回転エラーの発生により、一時的にリールの回転が停止した場合でも、その後リール回転が再開した後、ストップスイッチ8L、8C、8Rの操作が検出されるまで、停止操作が未だ検出されていないリールの回転を継続し、ストップスイッチ8L、8C、8Rの操作が検出されたことを条件に、対応するリールに表示結果を停止させる制御を行なうようになっている。   In the present embodiment, the main control unit 41 rotates the reels for which the stop operation has not yet been detected until the operation of the stop switches 8L, 8C, 8R is detected after the rotation of the reels 2L, 2C, 2R is started. And the control to stop the display result on the corresponding reel is performed on the condition that the operation of the stop switches 8L, 8C, 8R is detected. Even if the reel rotation temporarily stops due to the occurrence of a reel rotation error, the stop operation is still detected until the operation of the stop switches 8L, 8C, and 8R is detected after the reel rotation is restarted. Control is performed to stop the display result of the corresponding reels on the condition that the operation of the stop switches 8L, 8C, and 8R is detected by continuing the rotation of the reels that have not been operated.

なお、本実施の形態では、ストップスイッチ8L、8C、8Rの操作が検出されたことを条件に、対応するリールに表示結果を停止させる制御を行なうようになっているが、リールの回転が開始してから、予め定められた自動停止時間が経過した場合に、リールの停止操作がなされない場合でも、停止操作がなされたものとみなして自動的に各リールを停止させる自動停止制御を行なうようにしてもよい。この場合には、遊技者の操作を介さずにリールが停止することとなるため、例え、いずれかの役が当選している場合でもいずれの役も構成しない表示結果を導出させることが好ましい。   In the present embodiment, the control of stopping the display result on the corresponding reel is performed on the condition that the operation of the stop switches 8L, 8C, and 8R is detected, but the rotation of the reel is started. Then, when a predetermined automatic stop time has elapsed, even if the reel stop operation is not performed, it is assumed that the stop operation has been performed, and automatic stop control is performed to automatically stop each reel. It may be. In this case, since the reels are stopped without the player's operation, it is preferable to derive a display result that does not constitute any combination even if any combination is won.

次に、メイン制御部41が演出制御基板90に対して送信するコマンドについて説明する。   Next, a command that the main control unit 41 transmits to the effect control board 90 will be described.

本実施の形態では、メイン制御部41が演出制御基板90に対して、BETコマンド、クレジットコマンド、内部当選コマンド、リール回転開始コマンド、リール停止コマンド、入賞判定コマンド、払出開始コマンド、払出終了コマンド、遊技状態コマンド、待機コマンド、打止コマンド、エラーコマンド、復帰コマンド、設定開始コマンド、確認開始コマンド、確認終了コマンド、操作検出コマンドを含む複数種類のコマンドを送信する。   In the present embodiment, the main control unit 41 makes a BET command, a credit command, an internal winning command, a reel rotation start command, a reel stop command, a winning determination command, a payout start command, a payout end command, A plurality of types of commands including a game state command, a standby command, a stop command, an error command, a return command, a setting start command, a confirmation start command, a confirmation end command, and an operation detection command are transmitted.

これらコマンドは、コマンドの種類を示す1バイトの種類データとコマンドの内容を示す1バイトの拡張データとからなり、サブ制御部91は、種類データからコマンドの種類を判別できるようになっている。   These commands consist of 1-byte type data indicating the command type and 1-byte extension data indicating the command content, and the sub-control unit 91 can determine the command type from the type data.

BETコマンドは、メダルの投入枚数、すなわち賭数の設定に使用されたメダル枚数を特定可能なコマンドであり、ゲーム終了後(設定変更後)からゲーム開始までの状態であり、規定数の賭数が設定されていない状態において、メダルが投入されるか、1枚BETスイッチ5またはMAXBETスイッチ6が操作されて賭数が設定されたときに送信される。また、BETコマンドは、賭数の設定操作がなされたときに送信されるので、BETコマンドを受信することで賭数の設定操作がなされたことを特定可能である。   The BET command is a command that can specify the number of inserted medals, that is, the number of medals used to set the bet number, and is a state from the end of the game (after setting change) to the start of the game. Sent when a medal is inserted or the bet number is set by operating the single BET switch 5 or the MAXBET switch 6 in a state where is not set. Further, since the BET command is transmitted when the betting number setting operation is performed, it is possible to specify that the betting number setting operation has been performed by receiving the BET command.

クレジットコマンドは、クレジットとして記憶されているメダル枚数を特定可能なコマンドであり、ゲーム終了後(設定変更後)からゲーム開始までの状態であり、規定数の賭数が設定されている状態において、メダルが投入されてクレジットが加算されたときに送信される。   The credit command is a command that can specify the number of medals stored as credits, and is a state from the end of the game (after setting change) to the start of the game, and in a state where a predetermined number of bets is set, Sent when a medal is inserted and credits are added.

内部当選コマンドは、内部当選フラグの当選状況、並びに成立した内部当選フラグの種類を特定可能なコマンドであり、スタートスイッチ7が操作されてゲームが開始したときに送信される。また、内部当選コマンドは、スタートスイッチ7が操作されたときに送信されるので、内部当選コマンドを受信することでスタートスイッチ7が操作されたことを特定可能である。   The internal winning command is a command that can specify the winning status of the internal winning flag and the type of the internal winning flag that has been established, and is transmitted when the start switch 7 is operated to start the game. Further, since the internal winning command is transmitted when the start switch 7 is operated, it is possible to specify that the start switch 7 has been operated by receiving the internal winning command.

リール回転開始コマンドは、リールの回転の開始を通知するコマンドであり、リール2L、2C、2Rの回転が開始されたときに送信される。   The reel rotation start command is a command for notifying the start of reel rotation, and is transmitted when rotation of the reels 2L, 2C, and 2R is started.

リール停止コマンドは、停止するリールが左リール、中リール、右リールのいずれかであるか、該当するリールの停止操作位置の領域番号、該当するリールの停止位置の領域番号、を特定可能なコマンドであり、各リールの停止操作に伴う停止制御が行なわれる毎に送信される。また、リール停止コマンドは、ストップスイッチ8L、8C、8Rが操作されたときに送信されるので、リール停止コマンドを受信することでストップスイッチ8L、8C、8Rが操作されたことを特定可能である。   The reel stop command is a command that can specify whether the reel to be stopped is the left reel, the middle reel, or the right reel, the area number of the corresponding reel stop operation position, and the area number of the corresponding reel stop position. And is transmitted every time stop control is performed in accordance with the stop operation of each reel. Since the reel stop command is transmitted when the stop switches 8L, 8C, and 8R are operated, it is possible to specify that the stop switches 8L, 8C, and 8R are operated by receiving the reel stop command. .

入賞判定コマンドは、入賞の有無、並びに入賞の種類、入賞時のメダルの払出枚数を特定可能なコマンドであり、全リールが停止して入賞判定が行なわれた後に送信される。   The winning determination command is a command that can specify the presence / absence of winning, the type of winning, and the number of medals to be paid out at the time of winning, and is transmitted after all the reels are stopped and the winning determination is performed.

払出開始コマンドは、メダルの払出開始を通知するコマンドであり、入賞やクレジット(賭数の設定に用いられたメダルを含む)の精算によるメダルの払出が開始されたときに送信される。また、払出終了コマンドは、メダルの払出終了を通知するコマンドであり、入賞およびクレジットの精算によるメダルの払出が終了したときに送信される。   The payout start command is a command for notifying the start of payout of medals, and is transmitted when the payout of medals is started by paying out a prize or credit (including medals used for setting the number of bets). The payout end command is a command for notifying the end of payout of medals, and is transmitted when the payout of medals by winning and winning a credit is completed.

遊技状態コマンドは、次ゲームの遊技状態を特定可能なコマンドであり、設定変更状態の終了時およびゲームの終了時に送信される。   The gaming state command is a command that can specify the gaming state of the next game, and is transmitted when the setting change state ends and when the game ends.

待機コマンドは、待機状態へ移行する旨を示すコマンドであり、1ゲーム終了後、賭数が設定されずに一定時間経過して待機状態に移行するとき、クレジット(賭数の設定に用いられたメダルを含む)の精算によるメダルの払出が終了し、払出終了コマンドが送信された後に送信される。   The standby command is a command indicating a transition to the standby state, and after one game is over, a credit (which was used for setting the bet number) is set when the transition to the standby state is made after a predetermined time without setting the bet number. (Including medals) is sent out after the medal payout is completed and the payout end command is sent.

打止コマンドは、打止状態の発生または解除を示すコマンドであり、BB終了後、エンディング演出待ち時間が経過した時点で打止状態の発生を示す打止コマンドが送信され、リセット操作がなされて打止状態が解除された時点で、打止状態の解除を示す打止コマンドが送信される。   The stop command is a command indicating the occurrence or release of the stop state, and after the end of the BB, the stop command indicating the occurrence of the stop state is transmitted when the ending effect waiting time has elapsed, and the reset operation is performed. When the stop state is released, a stop command indicating the release of the stop state is transmitted.

エラーコマンドは、エラー状態の発生または解除、エラー状態の種類を示すコマンドであり、エラーが判定され、エラー状態に制御された時点でエラー状態の発生およびその種類を示すエラーコマンドが送信され、リセット操作がなされてエラー状態が解除された時点で、エラー状態の解除を示すエラーコマンドが送信される。   An error command is a command that indicates the occurrence or cancellation of an error condition and the type of error condition. When an error is determined and controlled to an error condition, an error command indicating the occurrence and type of the error condition is sent and reset. When the error state is canceled after the operation is performed, an error command indicating the cancellation of the error state is transmitted.

復帰コマンドは、メイン制御部41が電断前の制御状態に復帰した旨を示すコマンドであり、メイン制御部41の起動時において電断前の制御状態に復帰した際に送信される。   The return command is a command indicating that the main control unit 41 has returned to the control state before the power interruption, and is transmitted when the main control unit 41 returns to the control state before the power interruption.

設定開始コマンドは、設定変更状態の開始を示すコマンドであり、設定変更状態に移行する際に送信される。また、設定変更状態への移行に伴ってメイン制御部41の制御状態が初期化されるため、設定開始コマンドによりメイン制御部41の制御状態が初期化されたことを特定可能である。   The setting start command is a command indicating the start of the setting change state, and is transmitted when shifting to the setting change state. Further, since the control state of the main control unit 41 is initialized with the transition to the setting change state, it can be specified that the control state of the main control unit 41 has been initialized by the setting start command.

確認開始コマンドは、設定確認状態の開始を示すコマンドであり、設定確認状態に移行する際に送信される。確認終了コマンドは、設定確認状態の終了を示すコマンドであり、設定確認状態の終了時に送信される。   The confirmation start command is a command indicating the start of the setting confirmation state, and is transmitted when shifting to the setting confirmation state. The confirmation end command is a command indicating the end of the setting confirmation state, and is transmitted when the setting confirmation state ends.

操作検出コマンドは、操作スイッチ類(1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8R)の検出状態(ON/OFF)を示すコマンドであり、一定間隔毎に送信される。   The operation detection command is a command indicating the detection state (ON / OFF) of the operation switches (one-sheet BET switch 5, MAXBET switch 6, start switch 7, stop switches 8L, 8C, 8R), and is transmitted at regular intervals. Is done.

これらコマンドのうち設定開始コマンド、RAM異常または乱数回路異常を示すエラーコマンド、復帰コマンドは、起動処理において割込が許可される前の段階で生成され、RAM507の特別ワークに割り当てられた特定コマンド送信用バッファに格納され、直ちに送信される。   Among these commands, a setting start command, an error command indicating a RAM error or a random number circuit error, and a return command are generated at a stage before the interrupt is permitted in the startup process, and the specific command assigned to the special work in the RAM 507 is transmitted. Stored in the trust buffer and sent immediately.

設定開始コマンド、RAM異常または乱数回路異常を示すエラーコマンド、復帰コマンド、操作検出コマンド以外のコマンドは、ゲーム処理においてゲームの進行状況に応じて生成され、RAM507の特別ワークに設けられた通常コマンド送信用バッファに一時格納され、タイマ割込処理(メイン)において実行するコマンド送信処理において送信される。   Commands other than the setting start command, the error command indicating the RAM abnormality or the random number circuit abnormality, the return command, and the operation detection command are generated according to the progress of the game in the game process, and are sent to the normal command provided in the special work in the RAM 507. Temporarily stored in the trust buffer and transmitted in the command transmission process executed in the timer interrupt process (main).

操作検出コマンドは、コマンド送信処理が5回実行される毎に生成され、前述の特定コマンド送信用バッファに格納され、直ちに送信される。また、通常コマンド送信用バッファに未送信のコマンドが格納されている状態で操作検出コマンドの送信時期に到達した場合には、操作検出コマンドの送信を優先し、通常コマンド送信用バッファに格納されている未送信のコマンドは、次回のコマンド送信処理において送信されるようになっており、1度のコマンド送信処理において複数のコマンドが送信されることがないようになっている。   The operation detection command is generated every time the command transmission process is executed five times, stored in the aforementioned specific command transmission buffer, and immediately transmitted. In addition, when the operation detection command transmission time is reached with the unsent command stored in the normal command transmission buffer, priority is given to the transmission of the operation detection command and the normal command transmission buffer stores it. The untransmitted command is transmitted in the next command transmission process, and a plurality of commands are not transmitted in one command transmission process.

次に、メイン制御部41が演出制御基板90に対して送信するコマンドに基づいてサブ制御部91が実行する演出の制御について説明する。   Next, the control of the effect performed by the sub control unit 91 based on the command transmitted from the main control unit 41 to the effect control board 90 will be described.

サブ制御部91は、メイン制御部41からのコマンドを受信した際に、コマンド受信割込処理を実行する。コマンド受信割込処理では、RAM91cに設けられた受信用バッファに、コマンド伝送ラインから取得したコマンドを格納する。   When the sub control unit 91 receives a command from the main control unit 41, the sub control unit 91 executes a command reception interrupt process. In the command reception interrupt process, the command acquired from the command transmission line is stored in the reception buffer provided in the RAM 91c.

サブ制御部91は、タイマ割込処理(サブ)において、受信用バッファに未処理のコマンドが格納されているか否かを判定し、未処理のコマンドが格納されている場合には、そのうち最も早い段階で受信したコマンドに基づいてROM91bに格納された制御パターンテーブルを参照し、制御パターンテーブルに登録された制御内容に基づいて液晶表示器51、演出効果LED52、スピーカ53、54、リールLED55等の各種演出装置の出力制御を行なう。   In the timer interrupt process (sub), the sub-control unit 91 determines whether or not an unprocessed command is stored in the reception buffer. If an unprocessed command is stored, the sub-control unit 91 is the earliest. The control pattern table stored in the ROM 91b is referred to based on the command received in the stage, and the liquid crystal display 51, effect effect LED 52, speakers 53, 54, reel LED 55, etc. are controlled based on the control contents registered in the control pattern table. Output control of various production devices is performed.

制御パターンテーブルには、複数種類の演出パターン毎に、コマンドの種類に対応する液晶表示器51の表示パターン、演出効果LED52の点灯態様、スピーカ53、54の出力態様、リールLEDの点灯態様等、これら演出装置の制御パターンが登録されており、サブ制御部91は、コマンドを受信した際に、制御パターンテーブルの当該ゲームにおいてRAM91cに設定されている演出パターンに対応して登録された制御パターンのうち、受信したコマンドの種類に対応する制御パターンを参照し、当該制御パターンに基づいて演出装置の出力制御を行なう。これにより演出パターンおよび遊技の進行状況に応じた演出が実行されることとなる。   In the control pattern table, the display pattern of the liquid crystal display 51 corresponding to the type of command, the lighting mode of the lighting effect LED 52, the output mode of the speakers 53 and 54, the lighting mode of the reel LED, etc. Control patterns of these effect devices are registered, and when the sub-control unit 91 receives a command, the sub-control unit 91 stores the control patterns registered corresponding to the effect patterns set in the RAM 91c in the game of the control pattern table. Among these, the control pattern corresponding to the type of the received command is referred to, and the output control of the rendering device is performed based on the control pattern. Thereby, the production according to the production pattern and the progress of the game is executed.

なお、サブ制御部91は、あるコマンドの受信を契機とする演出の実行中に、新たにコマンドを受信した場合には、実行中の制御パターンに基づく演出を中止し、新たに受信したコマンドに対応する制御パターンに基づく演出を実行するようになっている。すなわち演出が最後まで終了していない状態でも、新たにコマンドを受信すると、受信した新たなコマンドが新たな演出の契機となるコマンドではない場合を除いて実行していた演出はキャンセルされて新たなコマンドに基づく演出が実行されることとなる。   If the sub-control unit 91 receives a new command during the execution of an effect triggered by the reception of a certain command, the sub-control unit 91 stops the effect based on the control pattern being executed and sets the newly received command. An effect based on the corresponding control pattern is executed. In other words, even if the production is not finished to the end, when a new command is received, the production that was being executed is canceled and a new command is received unless the received new command is not a command that triggers a new production. An effect based on the command is executed.

特に、本実施の形態では、演出の実行中に賭数の設定操作がなされたとき、すなわちサブ制御部91が、賭数が設定された旨を示すBETコマンドを受信したときに、実行中の演出を中止するようになっている。このため、遊技者が、演出を最後まで見るよりも次のゲームを進めたい場合には、演出がキャンセルされ、次のゲームを開始できるので、このような遊技者に対して煩わしい思いをさせることがない。また、演出の実行中にクレジットまたは賭数の精算操作がなされたとき、すなわちサブ制御部91が、ゲームの終了を示す遊技状態コマンドを受信した後、ゲームの開始を示す内部当選コマンドを受信する前に、払出開始コマンドを受信した場合には、実行中の演出を中止するようになっている。クレジットや賭数の精算を行なうのは、遊技を終了する場合であり、このような場合に実行中の演出を終了させることで、遊技を終了する意志があるのに、不要に演出が継続してしまわないようになっている。   In particular, in the present embodiment, when the betting number setting operation is performed during the execution of the effect, that is, when the sub-control unit 91 receives a BET command indicating that the betting number has been set, The production is to be canceled. For this reason, if the player wants to proceed to the next game rather than seeing the production to the end, the production is canceled and the next game can be started. There is no. Further, when a credit or betting amount adjustment operation is performed during the performance, that is, after the sub-control unit 91 receives a game state command indicating the end of the game, it receives an internal winning command indicating the start of the game. When the payout start command is received before, the effect being executed is stopped. Credits and bets are settled when the game is finished. In such a case, the production is continued unnecessarily even though there is an intention to finish the game by ending the performance being executed. It is designed not to be overwhelmed.

演出パターンは、内部当選コマンドを受信した際に、内部当選コマンドが示す内部抽選の結果に応じた選択率にて選択され、RAM91cに設定される。演出パターンの選択率は、ROM91bに格納された演出テーブルに登録されており、サブ制御部91は、内部当選コマンドを受信した際に、内部当選コマンドが示す内部抽選の結果に応じて演出テーブルに登録されている選択率を参照し、その選択率に応じて複数種類の演出パターンからいずれかの演出パターンを選択し、選択した演出パターンを当該ゲームの演出パターンとしてRAM91cに設定するようになっており、同じコマンドを受信しても内部当選コマンドの受信時に選択された演出パターンによって異なる制御パターンが選択されるため、結果として演出パターンによって異なる演出が行なわれることがある。   When the internal winning command is received, the effect pattern is selected at a selection rate corresponding to the result of the internal lottery indicated by the internal winning command, and is set in the RAM 91c. The selection rate of the effect pattern is registered in the effect table stored in the ROM 91b, and when the sub control unit 91 receives the internal winning command, the sub control unit 91 stores the effect pattern in the effect table according to the result of the internal lottery indicated by the internal winning command. With reference to the registered selection rate, one of the effect patterns is selected from a plurality of types of effect patterns according to the selection rate, and the selected effect pattern is set in the RAM 91c as the effect pattern of the game. Even if the same command is received, a different control pattern is selected depending on the effect pattern selected when the internal winning command is received. As a result, different effects may be performed depending on the effect pattern.

次に、本実施の形態におけるメイン制御部41が実行する各種制御内容を、図23〜図38に基づいて以下に説明する。   Next, various control contents executed by the main control unit 41 in the present embodiment will be described below with reference to FIGS.

メイン制御部41は、リセット要因が発生すると、図23のフローチャートに示す起動処理(メイン)を行なう。なお、リセット要因としては、電源投入時において外部システムリセット端子XSRSTに一定の期間にわたりローレベル信号が入力されたときに発生するシステムリセットや、ウォッチドッグタイマ(WDT)のタイムアウト信号が発生したことや、指定エリア外走行禁止(IAT)が発生したことなどのユーザリセットがある。このため、起動処理(メイン)は、電源投入に伴うメイン制御部41の起動時およびメイン制御部41の不具合に伴う再起動時に行なわれる処理である。   When a reset factor occurs, the main control unit 41 performs a startup process (main) shown in the flowchart of FIG. As a reset factor, a system reset that occurs when a low level signal is input to the external system reset terminal XSRST for a certain period at power-on, a time-out signal of a watchdog timer (WDT), etc. There is a user reset such as the occurrence of prohibition of travel outside designated area (IAT). For this reason, the activation process (main) is a process that is performed when the main control unit 41 is activated when the power is turned on and when the main control unit 41 is activated due to a malfunction.

起動処理(メイン)では、まず、CPU505がROM506から読み出したセキュリティチェックプログラム506Aに基づき、図24に示すセキュリティチェック処理を実行する(Sa1)。このとき、メイン制御部41は、セキュリティモードとなり、ROM506に記憶されているゲーム制御用のユーザプログラムは未だ実行されない状態となる。   In the startup process (main), first, the CPU 505 executes the security check process shown in FIG. 24 based on the security check program 506A read from the ROM 506 (Sa1). At this time, the main control unit 41 enters the security mode, and the game control user program stored in the ROM 506 is not yet executed.

セキュリティチェック処理では、図24に示すように、まず、セキュリティモードに制御する時間(セキュリティ時間)を決定するための処理を実行する。このとき、CPU505は、ROM506のプログラム管理エリアに記憶されるセキュリティ時間設定KSESのビット番号[2−0]におけるビット値を読み出す(Sa101)。そして、この読出値が“000”であるか否かを判定する(Sa102)。   In the security check process, as shown in FIG. 24, first, a process for determining a time (security time) for controlling to the security mode is executed. At this time, the CPU 505 reads the bit value in the bit number [2-0] of the security time setting KSES stored in the program management area of the ROM 506 (Sa101). Then, it is determined whether or not the read value is “000” (Sa102).

Sa102にて読出値が“000”と判定された場合には、定常設定時間を既定の固定時間に設定する(Sa103)。ここで、定常設定時間は、セキュリティ時間のうち、システムリセットの発生等に基づくセキュリティチェック処理の実行回数(メイン制御部41がセキュリティモードとなる回数)に関わりなく、一定となる時間成分である。また、固定時間は、セキュリティ時間のうち、メイン制御部41の仕様などに基づいて予め定められた不変時間成分であり、たとえばセキュリティ時間として設定可能な最小値となるものであればよい。   If the read value is determined to be “000” in Sa102, the steady set time is set to a predetermined fixed time (Sa103). Here, the steady setting time is a constant time component of the security time regardless of the number of executions of the security check process based on the occurrence of a system reset or the like (the number of times the main control unit 41 enters the security mode). The fixed time is an invariant time component determined in advance based on the specification of the main control unit 41 in the security time, and may be any minimum value that can be set as the security time, for example.

Sa102にて読出値が“000”以外と判定された場合には、その読出値に対応して、固定時間に加えて図10(D)に示す設定内容により選択される延長時間を、定常設定時間に設定する(Sa104)。こうして、セキュリティ時間設定KSESのビット番号[2−0]におけるビット値が“000”以外の値である場合には、セキュリティチェック処理の実行時間であるセキュリティ時間を、固定時間に加えて予め選択可能な複数の延長時間のいずれかに設定することができる。   If it is determined in Sa102 that the read value is other than “000”, the extension time selected according to the setting contents shown in FIG. The time is set (Sa104). In this way, when the bit value in the bit number [2-0] of the security time setting KSES is a value other than “000”, the security time as the execution time of the security check process can be selected in advance in addition to the fixed time. It can be set to any one of a plurality of extension times.

Sa103、Sa104の処理のいずれかを実行した後には、セキュリティ時間設定KSESのビット番号[4−3]におけるビット値を読み出す(Sa105)。そして、この読出値が“00”であるか否かを判定する(Sa106)。   After executing one of the processes of Sa103 and Sa104, the bit value in the bit number [4-3] of the security time setting KSES is read (Sa105). Then, it is determined whether or not the read value is “00” (Sa106).

Sa106にて読出値が“00”と判定された場合には、定常設定時間をセキュリティ時間に設定する(Sa107)。これに対して、読出値が“00”以外と判定された場合には、その読出値に対応して決定される可変設定時間を、定常設定時間に加算してセキュリティ時間に設定する(Sa108)。ここで、可変設定時間は、セキュリティ時間のうち、セキュリティチェック処理が実行されるごとに変化する時間成分であり、セキュリティ時間設定KSESのビット番号[4−3]におけるビット値が“01”(ショートモード)であるか“10”(ロングモード)であるかに応じて異なる所定の時間範囲で変化する。   If the read value is determined to be “00” in Sa106, the steady setting time is set as the security time (Sa107). On the other hand, if it is determined that the read value is other than “00”, the variable set time determined corresponding to the read value is added to the steady set time and set as the security time (Sa108). . Here, the variable setting time is a time component that changes every time the security check process is executed, and the bit value in the bit number [4-3] of the security time setting KSES is “01” (short). Mode) or “10” (long mode), and changes in different predetermined time ranges.

たとえば、システムリセットの発生時に、所定のフリーランカウンタにおけるカウント値がメイン制御部41に内蔵された可変セキュリティ時間用レジスタに格納される場合には、Sa108の処理において、可変セキュリティ時間用レジスタの格納値をそのまま用いること、あるいは、その格納値を所定の演算関数(たとえばハッシュ関数)に代入して得られた値を用いることなどにより、可変設定時間がシステムリセット毎に所定の時間範囲でランダムに変化するように決定されればよい。こうして、セキュリティ時間設定KSESのビット番号[4−3]におけるビット値が“00”以外の値である場合には、セキュリティチェック処理の実行時間であるセキュリティ時間を、システムリセットの発生等に基づくセキュリティチェック処理が実行されるごとに所定の時間範囲で変化させることができる。   For example, when a count value in a predetermined free-run counter is stored in a variable security time register built in the main control unit 41 when a system reset occurs, the variable security time register is stored in the processing of Sa108. By using the value as it is, or by using the value obtained by substituting the stored value for a predetermined arithmetic function (for example, a hash function), the variable set time is random within a predetermined time range at each system reset. What is necessary is just to be determined so that it may change. Thus, when the bit value in the bit number [4-3] of the security time setting KSES is a value other than “00”, the security time that is the execution time of the security check process is set as the security based on the occurrence of the system reset or the like. Each time the check process is executed, it can be changed within a predetermined time range.

ここで、セキュリティ時間設定KSESのビット番号[2−0]におけるビット値が“000”以外の値であり、かつ、セキュリティ時間設定KSESのビット番号[4−3]におけるビット値が“00”以外の値である場合には、ステップS4にて設定される延長時間と、ステップS8にて設定される可変設定時間との双方が、固定時間に加算されて、セキュリティ時間が決定されることになる。   Here, the bit value in the bit number [2-0] of the security time setting KSES is a value other than “000”, and the bit value in the bit number [4-3] of the security time setting KSES is other than “00”. In this case, both the extension time set in step S4 and the variable setting time set in step S8 are added to the fixed time, and the security time is determined. .

Sa107、Sa108の処理のいずれかを実行した後には、ROM506の所定領域に記憶されたセキュリティコードを読み出す(Sa109)。ここで、ROM506の所定領域には、記憶内容のデータを所定の演算式によって演算した演算結果のセキュリティコードが予め記憶されている。セキュリティコードの生成方法としては、たとえばハッシュ関数を用いてハッシュ値を生成するもの、エラー検出コード(CRCコード)を用いるもの、エラー訂正コード(ECCコード)を用いるもののいずれかといった、予め定められた生成方法を使用すればよい。また、ROM506のセキュリティコード記憶領域とは異なる所定領域には、セキュリティコードを演算により特定するための演算式が、暗号化して予め記憶されている。   After executing one of the processes of Sa107 and Sa108, the security code stored in the predetermined area of the ROM 506 is read (Sa109). Here, in a predetermined area of the ROM 506, a security code of a calculation result obtained by calculating the data of the stored content by a predetermined calculation formula is stored in advance. As a security code generation method, for example, a hash value is generated using a hash function, an error detection code (CRC code) is used, or an error correction code (ECC code) is used. A generation method may be used. In a predetermined area different from the security code storage area of the ROM 506, an arithmetic expression for specifying the security code by calculation is encrypted and stored in advance.

ステップSa109の処理に続いて、暗号化された演算式を復号化して元に戻す(Sa110)。その後、Sa110で復号化した演算式により、ROM506の所定領域における記憶データを演算してセキュリティコードを特定する(Sa111)。このときセキュリティコードを特定するための演算に用いる記憶データは、たとえばROM506の記憶データのうち、セキュリティチェックプログラム506Aとは異なるユーザプログラムの全部又は一部に相当するプログラムデータ、あるいは、所定のテーブルデータを構成する固定データの全部又は一部であればよい。そして、Sa109にて読み出したセキュリティコードと、Sa111にて特定されたセキュリティコードとを比較する(Sa112)。このときには、比較結果においてセキュリティコードが一致したか否かを判定する(Sa113)。   Following the processing of step Sa109, the encrypted arithmetic expression is decrypted and restored (Sa110). Thereafter, the storage code in the predetermined area of the ROM 506 is calculated by the arithmetic expression decrypted in Sa110 to specify the security code (Sa111). At this time, the storage data used for the calculation for specifying the security code is, for example, program data corresponding to all or part of the user program different from the security check program 506A among the storage data of the ROM 506, or predetermined table data May be all or a part of the fixed data constituting the. Then, the security code read in Sa109 is compared with the security code specified in Sa111 (Sa112). At this time, it is determined whether or not the security codes match in the comparison result (Sa113).

Sa113にてセキュリティコードが一致しない場合には、ROM506に不正な変更が加えられたと判断して、CPU505の動作を停止状態(HALT)へ移行させる。これに対して、Sa113にてセキュリティコードが一致した場合には、Sa107やSa108の処理で設定されたセキュリティ時間が経過したか否かを判定する(Sa114)。このとき、セキュリティ時間が経過していなければ、Sa114の処理を繰り返し実行して、セキュリティ時間が経過するまで待機する。そして、Sa114にてセキュリティ時間が経過したと判定された場合には、セキュリティチェック処理を終了し、CPU505に内蔵されたプログラムカウンタの値をROM506におけるユーザプログラムの先頭アドレス(アドレス0000H)に設定することなどにより、メイン制御部41の動作状態がセキュリティモードからユーザモードへと移行し、ROM506に記憶されたユーザプログラムの実行が開始されることになる。   If the security codes do not match at Sa113, it is determined that an unauthorized change has been made to the ROM 506, and the operation of the CPU 505 is shifted to the halt state (HALT). On the other hand, if the security codes match in Sa113, it is determined whether or not the security time set in the processing of Sa107 or Sa108 has passed (Sa114). At this time, if the security time has not elapsed, the process of Sa114 is repeatedly executed and waits until the security time elapses. If it is determined in Sa114 that the security time has elapsed, the security check process is terminated, and the value of the program counter built in the CPU 505 is set to the start address (address 0000H) of the user program in the ROM 506. As a result, the operation state of the main control unit 41 shifts from the security mode to the user mode, and execution of the user program stored in the ROM 506 is started.

メイン制御部41は、Sa1のセキュリティチェック処理の終了後、内蔵デバイスや周辺IC、割込モード、スタックポインタ等を初期化した後(Sa2)、IレジスタおよびIYレジスタの値を初期化する(Sa3)。IレジスタおよびIYレジスタの初期化により、Iレジスタには、割込発生時に参照する割込テーブルのアドレスが設定され、IYレジスタには、RAM507の格納領域を参照する際の基準アドレスが設定される。これらの値は、固定値であり、起動時には常に初期化されることとなる。   After completing the security check process of Sa1, the main control unit 41 initializes the built-in device, peripheral IC, interrupt mode, stack pointer, and the like (Sa2), and then initializes the values of the I register and IY register (Sa3). ). By initialization of the I register and the IY register, an interrupt table address to be referred to when an interrupt occurs is set in the I register, and a reference address for referring to the storage area of the RAM 507 is set in the IY register. . These values are fixed values and are always initialized at startup.

次いで、RAM507へのアクセスを許可し(Sa4)、RAM507の全ての格納領域(未使用領域および未使用スタック領域を含む)のRAMパリティを計算し(Sa5)、打止スイッチ36、自動精算スイッチ29の状態を取得し、メイン制御部41の特定のレジスタに打止機能、自動精算機能の有効/無効を設定する(Sa6)。   Next, access to the RAM 507 is permitted (Sa4), the RAM parity of all storage areas (including the unused area and the unused stack area) of the RAM 507 is calculated (Sa5), the abort switch 36, the automatic settlement switch 29 And the validity / invalidity of the stop function and automatic settlement function are set in a specific register of the main control unit 41 (Sa6).

次いで、Sa5のステップにおいて計算したRAMパリティが0か否かを判定する(Sa7)。正常に電断割込処理(メイン)が行なわれていれば、RAMパリティが0になるはずであり、Sa7のステップにおいてRAMパリティが0でなければ、RAM507に格納されているデータが正常ではなく、この場合には、RAM507の格納領域のうち、使用中スタック領域を除く全ての格納領域を初期化する初期化1を実行した後(Sa30)、設定キースイッチ37がONか否かを判定し(Sa31)、設定キースイッチ37がONであれば、プログラム管理エリアに記憶されている第1乱数初期設定KRS1や第2乱数初期設定KRS2を読み出して、図25に示す乱数回路設定処理を実行した後(Sa25)、乱数回路509における動作異常の有無を検査するために図26に示す乱数回路異常検査処理を実行する(Sa26)。   Next, it is determined whether or not the RAM parity calculated in step Sa5 is 0 (Sa7). If the power interruption interrupt process (main) is normally performed, the RAM parity should be 0. If the RAM parity is not 0 in the step of Sa7, the data stored in the RAM 507 is not normal. In this case, after executing the initialization 1 for initializing all the storage areas except the used stack area in the storage area of the RAM 507 (Sa30), it is determined whether or not the setting key switch 37 is ON. (Sa31) If the setting key switch 37 is ON, the first random number initial setting KRS1 and the second random number initial setting KRS2 stored in the program management area are read, and the random number circuit setting process shown in FIG. 25 is executed. Thereafter (Sa25), the random number circuit abnormality inspection process shown in FIG. 26 is executed in order to inspect the presence or absence of operation abnormality in the random number circuit 509 (Sa26).

図25に示す乱数回路設定処理では、まず、第1乱数初期設定KRS1のビット番号[3]におけるビット値に基づき、乱数回路509を使用するための設定を行なう(Sa201)。本実施の形態では、第1乱数初期設定KRS1のビット番号[3]におけるビット値が予め“1”とされており、このビット値に対応して乱数回路509を使用する設定が行なわれる。続いて、第1乱数初期設定KRS1のビット番号[2]におけるビット値に基づき、乱数回路509における乱数更新クロックRGKの設定を行なう(Sa202)。本実施の形態では、第1乱数初期設定KRS1のビット番号[2]におけるビット値が予め“1”とされていることに対応して、乱数用クロック生成回路43で生成された乱数用クロックRCLKを2分周して乱数更新クロックRGKとする設定が行なわれる。   In the random number circuit setting process shown in FIG. 25, first, setting for using the random number circuit 509 is performed based on the bit value in the bit number [3] of the first random number initial setting KRS1 (Sa201). In the present embodiment, the bit value in the bit number [3] of the first random number initial setting KRS1 is set to “1” in advance, and the setting for using the random number circuit 509 is performed corresponding to this bit value. Subsequently, the random number update clock RGK in the random number circuit 509 is set based on the bit value in the bit number [2] of the first random number initial setting KRS1 (Sa202). In the present embodiment, the random number clock RCLK generated by the random number clock generation circuit 43 in response to the bit value [2] of the first random number initial setting KRS1 being “1” in advance. Is set to be a random number update clock RGK.

Sa202での設定を行なった後には、第1乱数初期設定KRS1のビット番号[1−0]におけるビット値に基づき、乱数回路509における乱数更新規則の設定を行なう(Sa203)。本実施の形態では、第1乱数初期設定KRS1のビット番号[1−0]におけるビット値として予め“10”が設定されており、乱数列RSNにおける乱数更新規則を2周目以降は自動で変更する設定がなされる。   After setting in Sa202, a random number update rule is set in the random number circuit 509 based on the bit value in the bit number [1-0] of the first random number initial setting KRS1 (Sa203). In the present embodiment, “10” is set in advance as the bit value in the bit number [1-0] of the first random number initial setting KRS1, and the random number update rule in the random number sequence RSN is automatically changed after the second round. Setting to be made.

続いて、第2乱数初期設定KRS2のビット番号[1]におけるビット値に基づき、乱数値となる数値データにおける起動時スタート値を決定する(Sa204)。本実施の形態では、第2乱数初期設定KRS2のビット番号[1]におけるビット値として予め“1”が設定されており、乱数のスタート値をIDナンバーに基づく値とする設定がなされる。   Subsequently, based on the bit value in the bit number [1] of the second random number initial setting KRS2, a start value at start-up in numerical data to be a random value is determined (Sa204). In this embodiment, “1” is set in advance as the bit value in the bit number [1] of the second random number initial setting KRS2, and the start value of the random number is set to a value based on the ID number.

さらに、第2乱数初期設定KRS2のビット番号[0]におけるビット値に基づき、乱数値となる数値データのスタート値をシステムリセット毎に変更するか否かの設定を行なう(Sa205)。本実施の形態では、第2乱数初期設定KRS2のビット番号[0]におけるビット値が予め“0”とされており、Sa204にて設定した起動時スタート値をそのまま用いて、乱数回路509におけるスタート値としている。Sa205の処理による設定が完了すると、乱数回路509では乱数値の生成動作が開始されることとなる。なお、第2乱数初期設定KRS2のビット番号[0]におけるビット値が予め“1”とされている場合には、乱数のスタート値をシステムリセット毎に変更する設定がなされる。この場合には、たとえば、システムリセットの発生時に、所定のフリーランカウンタにおけるカウント値がメイン制御部41に内蔵された乱数スタート値用レジスタに格納される場合には、Sa205の処理において、乱数スタート値用レジスタの格納値をそのまま用いること、あるいは、その格納値を所定の演算関数(たとえばハッシュ関数)に代入して得られた値を用いることなどにより、乱数のスタート値がシステムリセット毎に所定の数値範囲(たとえば乱数生成回路553にて生成されるカウント値順列RCNに含まれる数値データの全部又は一部を含む範囲)でランダムに変化するように決定されればよい。   Further, based on the bit value in the bit number [0] of the second random number initial setting KRS2, it is set whether or not to change the start value of the numerical data to be a random value at every system reset (Sa205). In the present embodiment, the bit value at the bit number [0] of the second random number initial setting KRS2 is set to “0” in advance, and the start value at start-up set in Sa204 is used as it is, and the start in the random number circuit 509 is started. Value. When the setting by the processing of Sa205 is completed, the random number circuit 509 starts a random value generation operation. When the bit value [0] of the second random number initial setting KRS2 is set to “1” in advance, the random number start value is changed every time the system is reset. In this case, for example, when the count value in a predetermined free-run counter is stored in the random number start value register built in the main control unit 41 when a system reset occurs, the random number start is performed in the processing of Sa205. By using the stored value of the value register as it is or by using the value obtained by substituting the stored value for a predetermined arithmetic function (for example, a hash function), the start value of the random number is predetermined at each system reset. (For example, a range including all or part of the numerical data included in the count value permutation RCN generated by the random number generation circuit 553) may be determined at random.

Sa205の処理を実行した後には、たとえば乱数値レジスタR1Dや乱数値レジスタR2Dに格納されている数値データを読み出すことなどにより、乱数ラッチフラグレジスタRDFMのビット番号[1]やビット番号[0]に格納される乱数ラッチフラグデータRDFM1や乱数ラッチフラグデータRDFM0のビット値を“0”として、各乱数ラッチフラグをオフ状態にクリアする(ステップSa206)。一例として、乱数ラッチフラグデータRDFM1と乱数ラッチフラグデータRDFM0について、それぞれの値が“1”であるか“0”であるかを判定し、その値が“1”であれば、対応する乱数値レジスタの読み出しを行なうことにより、乱数ラッチフラグをオフ状態とすればよい。あるいは、乱数ラッチフラグデータRDFM1や乱数ラッチフラグデータRDFM0の値にかかわらず、乱数値レジスタR1Dと乱数値レジスタR2Dの読み出しを行なうことにより、各乱数ラッチフラグをオフ状態としてもよい。なお、ステップSa206の処理により乱数値レジスタR1Dや乱数値レジスタR2Dから読み出された数値データは、内部抽選には使用せず、そのまま破棄(消去)すればよい。こうしたステップSa206の処理による設定が完了すると、乱数回路509では乱数値の生成動作が開始されればよい。   After executing the processing of Sa205, for example, by reading numerical data stored in the random value register R1D or the random value register R2D, the bit number [1] or the bit number [0] of the random number latch flag register RDFM is read. The bit values of the stored random number latch flag data RDFM1 and random number latch flag data RDFM0 are set to “0”, and each random number latch flag is cleared to an off state (step Sa206). As an example, for the random number latch flag data RDFM1 and the random number latch flag data RDFM0, it is determined whether each value is “1” or “0”, and if the value is “1”, the corresponding random value The random number latch flag may be turned off by reading the register. Alternatively, each random number latch flag may be turned off by reading the random number value register R1D and the random number value register R2D regardless of the values of the random number latch flag data RDFM1 and the random number latch flag data RDFM0. Note that the numerical data read from the random value register R1D or the random value register R2D by the process of step Sa206 may be discarded (erased) as it is without being used for the internal lottery. When the setting by the processing of step Sa206 is completed, the random number circuit 509 may start the random value generation operation.

このように、遊技制御の実行が開始されるときには、ステップSa206の処理において、乱数値レジスタから数値データを読出可能であり、各乱数ラッチフラグをオフ状態に設定することができる。これにより、電源投入時の電源電圧が不安定な状態で誤って乱数値レジスタに格納された数値データが、乱数値として取得されてしまうことを防止できる。   Thus, when the execution of game control is started, numerical data can be read from the random value register in the process of step Sa206, and each random number latch flag can be set to the OFF state. As a result, it is possible to prevent numerical data stored in the random value register by mistake when the power supply voltage at the time of power-on is unstable is acquired as a random value.

なお、乱数回路設定処理による設定は、CPU505の処理が介在することなく、乱数回路509がプログラム管理エリアの記憶データに基づき自律的に行なうようにしてもよい。この場合、乱数回路509は、メイン制御部41がセキュリティモードとなっているときには初期設定を行なわず、乱数値の生成動作が行なわれないようにしてもよい。そして、メイン制御部41にてCPU505がROM506に記憶されたユーザプログラムを読み出してユーザモードが開始されたときに、たとえばCPU505から乱数回路509に対して初期設定を指示する制御信号が伝送されたことなどに応答して、乱数回路509が初期設定を行なってから乱数値の生成動作を開始するようにしてもよい。また、特に乱数回路509がメイン制御部41に外付けされる場合などには、メイン制御部41がセキュリティモードとなっているときでも、乱数回路509がCPU505における処理とは独立して、プログラム管理エリアの記憶データに基づく初期設定を行なってから、乱数値の生成動作を開始するようにしてもよい。   Note that the setting by the random number circuit setting process may be performed autonomously by the random number circuit 509 based on the data stored in the program management area without the intervention of the CPU 505. In this case, the random number circuit 509 may be configured not to perform initialization and not to generate a random value when the main control unit 41 is in the security mode. Then, when the CPU 505 reads the user program stored in the ROM 506 in the main control unit 41 and the user mode is started, for example, a control signal for instructing the initial setting to the random number circuit 509 is transmitted from the CPU 505. In response to the above, the random number generation operation may be started after the random number circuit 509 performs initial setting. In particular, when the random number circuit 509 is externally attached to the main control unit 41, even when the main control unit 41 is in the security mode, the random number circuit 509 performs program management independently of the processing in the CPU 505. The random number generation operation may be started after initial setting based on the storage data of the area.

図26に示す乱数回路異常検査処理では、まず乱数用クロック異常判定カウンタをクリアして、そのカウント値である乱数用クロック異常判定カウント値を「0」に初期化する(Sa301)。続いて、内部情報レジスタCIFのビット番号[4]に格納されている内部情報データCIF4を読み出す(Sa302)。そして、Sa302での読出値が“1”であるか否かを判定する。このとき、乱数回路509が備える周波数監視回路551によって、乱数用外部クロック端子ERCからの乱数用クロックRCLKに周波数異常が検知された場合には、内部情報データCIF4としてビット値“1”が書き込まれる。   In the random number circuit abnormality inspection process shown in FIG. 26, first, the random number clock abnormality determination counter is cleared, and the random number clock abnormality determination count value, which is the count value, is initialized to “0” (Sa301). Subsequently, the internal information data CIF4 stored in the bit number [4] of the internal information register CIF is read (Sa302). Then, it is determined whether or not the read value at Sa302 is “1”. At this time, if the frequency monitoring circuit 551 provided in the random number circuit 509 detects a frequency abnormality in the random number clock RCLK from the random number external clock terminal ERC, the bit value “1” is written as the internal information data CIF4. .

そこで、Sa303にて読出値が“1”と判定された場合には、乱数用クロック異常判定カウント値を1加算するように更新する(Sa304)。このときには、Sa304での更新後におけるカウント値が所定のクロック異常判定値に達したか否かを判定する(Sa305)。ここで、クロック異常判定値は、周波数監視回路551により乱数用クロックRCLKの周波数異常が連続して検知された場合にクロック異常と判定するために予め定められた数値であればよい。Sa305にてクロック異常判定値に達していなければ、Sa302の処理に戻り、再び内部情報データCIF4のビット値に基づく判定を行なう。   Therefore, when the read value is determined to be “1” in Sa303, the random number clock abnormality determination count value is updated to be incremented by 1 (Sa304). At this time, it is determined whether or not the count value after the update in Sa304 has reached a predetermined clock abnormality determination value (Sa305). Here, the clock abnormality determination value may be a numerical value determined in advance in order to determine that the clock abnormality is detected when the frequency monitoring circuit 551 continuously detects the frequency abnormality of the random number clock RCLK. If the clock abnormality determination value has not been reached in Sa305, the processing returns to Sa302, and determination based on the bit value of the internal information data CIF4 is performed again.

Sa305にてクロック異常判定値に達した場合には、乱数回路異常を示すエラーコードをレジスタに設定し(Sa306)、乱数回路異常検査処理を終了する。   When the clock abnormality determination value is reached in Sa305, an error code indicating a random circuit abnormality is set in the register (Sa306), and the random circuit abnormality inspection process is terminated.

Sa303にて読出値が“0”と判定された場合には、乱数値異常判定カウンタをクリアして、そのカウント値である乱数値異常判定カウント値を「0」に初期化する(Sa307)。なお、Sa303の処理では、Sa302にて読み出した内部情報データCIF4のビット値が複数回(たとえば2回など)連続して“0”となったときに、読出値が“0”であると判定してもよい。   If the read value is determined to be “0” in Sa303, the random value abnormality determination counter is cleared, and the random value abnormality determination count value that is the count value is initialized to “0” (Sa307). In the process of Sa303, it is determined that the read value is “0” when the bit value of the internal information data CIF4 read in Sa302 becomes “0” continuously for a plurality of times (for example, twice). May be.

Sa307の処理に続いて、乱数値における異常の有無をチェックするために用いるチェック値を、初期値「0000H」に設定する(Sa308)。そして、乱数回路509が備える乱数値レジスタR1Dとなる乱数値レジスタ559Aから、格納されている乱数値となる数値データを読み出す(Sa309)。たとえば、Sa309の処理では、乱数ラッチ選択レジスタRDLSのビット番号[0]に格納される乱数ラッチ選択データRDLS0のビット値を“0”として、ソフトウェアによる乱数値の取り込みを指定する。続いて、乱数値取込指定レジスタRDLTのビット番号[0]に格納される乱数値取込指定データRDLT0のビット値を“1”として、乱数値レジスタR1Dへの取り込みを指定する。なお、乱数値取込指定レジスタRDLTのビット番号[0]におけるビット値を“1”とすることは、CPU505から乱数回路509に対して数値データの取り込み(ラッチ)を指示するラッチ信号を出力することに相当する。その後、乱数値レジスタR1Dに供給するレジスタリード信号RRS1をオン状態とすることにより、格納されている乱数値となる数値データを読み出すようにすればよい。   Subsequent to the processing of Sa307, a check value used for checking whether there is an abnormality in the random number value is set to an initial value “0000H” (Sa308). Then, the stored numerical data as the random value is read from the random value register 559A as the random value register R1D included in the random number circuit 509 (Sa309). For example, in the processing of Sa309, the bit value of the random number latch selection data RDLS0 stored in the bit number [0] of the random number latch selection register RDLS is set to “0”, and fetching of the random number value by software is designated. Subsequently, the bit value of the random value fetch specification data RDLT0 stored in the bit number [0] of the random value fetch specification register RDLT is set to “1”, and fetching to the random value register R1D is designated. Note that setting the bit value in the bit number [0] of the random value fetch specification register RDLT to “1” outputs a latch signal instructing the random number circuit 509 to fetch (latch) numerical data from the CPU 505. It corresponds to that. Thereafter, the numerical value data to be stored as the random number value may be read by turning on the register read signal RRS1 supplied to the random number value register R1D.

Sa309にて数値データを読み出した後には、その読出値を乱数検査基準値に設定する(Sa310)。続けて、さらに乱数値レジスタ559Aから乱数値となる数値データを読み出す(Sa311)。なお、Sa311での読出動作は、Sa309での読出動作と同様の手順で行なわれればよい。また、Sa309での読出動作と、Sa311での読出動作との間には、乱数回路509で生成される乱数列RSNにおける数値データが変化するために十分な遅延時間を設けるとよい。Sa311にて数値データを読み出した後には、乱数検査基準値と、Sa311での読出値との排他的論理和演算を実行する(Sa312)。また、Sa312での演算結果と、チェック値との論理和演算を実行し、演算結果を新たなチェック値とするように更新させる(Sa313)。たとえば、チェック値はRAM507の所定領域に記憶しておき、Sa313の処理が実行される毎に、その処理で得られた演算結果を新たなチェック値として保存すればよい。これにより、乱数値レジスタ559Aから読み出した数値データにおける全ビットの変化が記録され、複数回の読出中に少なくとも1回は値が変化したビットであれば、チェック値において対応するビット値が“1”となる。   After reading the numerical data in Sa309, the read value is set as the random number inspection reference value (Sa310). Subsequently, the numerical value data to be a random number value is further read from the random value register 559A (Sa311). Note that the reading operation at Sa311 may be performed in the same procedure as the reading operation at Sa309. Further, a sufficient delay time may be provided between the reading operation at Sa309 and the reading operation at Sa311 so that the numerical data in the random number sequence RSN generated by the random number circuit 509 changes. After the numerical data is read in Sa311, an exclusive OR operation between the random number inspection reference value and the read value in Sa311 is executed (Sa312). Further, a logical sum operation between the calculation result at Sa312 and the check value is executed, and the calculation result is updated to be a new check value (Sa313). For example, the check value may be stored in a predetermined area of the RAM 507, and each time the processing of Sa313 is executed, the calculation result obtained by the processing may be saved as a new check value. As a result, changes in all the bits in the numerical data read from the random value register 559A are recorded. If the bit has changed at least once during a plurality of readings, the corresponding bit value in the check value is “1”. "

そこで、チェック値が「FFFFH」となったか否かを判定し(Sa314)、なっていれば、全ビットについてビット値の変化が認められることから、乱数値が正常に更新されていると判断して、乱数回路異常検査処理を終了する。なお、乱数値が正常に更新されていることを確認できた場合には、乱数ラッチ選択レジスタRDLSのビット番号[0]に格納される乱数ラッチ選択データRDLS0のビット値を“1”として、入力ポートP0への信号入力に応じた乱数値レジスタR1Dへの乱数値取込を、指示するよう設定される。本実施の形態では、入力ポートP0にスタートスイッチ7からのゲーム開始信号SS1を伝送する配線が接続される。これにより、ゲーム開始信号SS1がオン状態となったときに乱数値レジスタR1Dへの乱数値取込を行なうことができる。   Therefore, it is determined whether or not the check value is “FFFFH” (Sa 314), and if it is, since a change in the bit value is recognized for all bits, it is determined that the random value has been updated normally. Then, the random number circuit abnormality inspection process ends. When it is confirmed that the random number value has been updated normally, the bit value of the random number latch selection data RDLS0 stored in the bit number [0] of the random number latch selection register RDLS is set to “1”. It is set to instruct the random value fetching to the random value register R1D according to the signal input to the port P0. In the present embodiment, a wiring for transmitting the game start signal SS1 from the start switch 7 is connected to the input port P0. Thereby, when the game start signal SS1 is turned on, the random number value can be taken into the random value register R1D.

Sa314にてチェック値が「FFFFH」以外と判定された場合には、乱数値異常判定カウント値を1加算するように更新する(Sa315)。このときには、Sa315での更新後におけるカウント値が所定の乱数値異常判定値に達したか否かを判定する(Sa316)。ここで、乱数値異常判定値は、乱数回路509が正常動作していれば、乱数値レジスタ559Aから読み出される数値データの全ビットが少なくとも1回は変化するのに十分な判定回数となるように、予め定められた数値であればよい。Sa316にて乱数値異常判定値に達していなければ、Sa311の処理に戻り、再び乱数回路509から乱数値となる数値データを読み出して異常の有無をチェックするための判定などを行なう。   If the check value is determined to be other than “FFFFH” in Sa314, the random number abnormality determination count value is updated to be incremented by 1 (Sa315). At this time, it is determined whether or not the count value after the update in Sa315 has reached a predetermined random value abnormality determination value (Sa316). Here, if the random number circuit 509 is operating normally, the random value abnormality determination value is determined so that all the bits of the numerical data read from the random value register 559A are changed at least once. Any numerical value determined in advance may be used. If the random value abnormality determination value has not been reached in Sa316, the process returns to Sa311 to perform determination for reading numerical data as a random value from the random number circuit 509 and checking for abnormality.

Sa316にて乱数値異常判定値に達した場合には、乱数回路異常を示すエラーコードをレジスタに設定し(Sa317)、乱数回路異常検査処理を終了する。   If the random value abnormality determination value is reached in Sa316, an error code indicating a random circuit abnormality is set in the register (Sa317), and the random circuit abnormality inspection process is terminated.

なお、乱数回路異常検査処理は、CPU505が実行するものに限定されず、CPU505以外のメイン制御部41における内蔵回路により乱数回路異常検査処理が実行されてもよい。一例として、乱数回路509が乱数回路異常検査処理を実行する機能を有し、乱数用クロックRCLKの周波数異常が検知されたときや、乱数値の異常が検知されたときに、エラーの発生をCPU505に通知するようにしてもよい。また、乱数回路異常検査処理は、たとえばメイン制御部41にてタイマ割込みが発生する毎に、乱数回路異常検査処理の一部又は全部が実行されるようにしてもよい。   The random number circuit abnormality inspection process is not limited to that executed by the CPU 505, and the random number circuit abnormality inspection process may be executed by a built-in circuit in the main control unit 41 other than the CPU 505. As an example, the random number circuit 509 has a function of executing a random number circuit abnormality inspection process. When a frequency abnormality of the random number clock RCLK is detected or when an abnormality of the random number value is detected, the CPU 505 May be notified. The random number circuit abnormality inspection process may be executed partially or entirely every time a timer interrupt occurs in the main control unit 41, for example.

Sa26のステップにおける乱数回路異常検査処理の後、乱数回路異常か否かを判定する(Sa27a)。乱数回路異常か否かは、乱数回路異常を示すエラーコードが設定されているか否かによって判定する。Sa27aのステップにおいて乱数異常と判定された場合には、乱数回路異常を示すエラーコマンドを特定コマンド送信用バッファに設定し、サブ制御部91に対して送信し(Sa22)、割込を許可して(Sa23)、エラー処理、すなわちRAM異常エラー状態に移行する。   After the random number circuit abnormality inspection process in the step of Sa26, it is determined whether or not the random number circuit is abnormal (Sa27a). Whether or not the random number circuit is abnormal is determined by whether or not an error code indicating a random number circuit abnormality is set. If it is determined in step Sa27a that the random number is abnormal, an error command indicating a random circuit error is set in the specific command transmission buffer and transmitted to the sub-control unit 91 (Sa22). (Sa23), the process proceeds to error processing, that is, a RAM abnormal error state.

Sa27aのステップにおいて乱数異常ではないと判定された場合には、ドア開放検出スイッチからの検出信号に基づき、前面扉1bが開放状態であるか否か判定する(Sa27b)。   If it is determined in step Sa27a that the random number is not abnormal, it is determined whether or not the front door 1b is open based on the detection signal from the door open detection switch (Sa27b).

Sa27bのステップにおいて前面扉1bが開放状態でないと判定されたとき、すなわち閉じた状態(閉鎖状態)であると判定されたときには、設定キースイッチがON状態であるが前面扉1bが開放状態でない旨を示す、設定時扉閉状態フラグを設定し(Sa27c)、Sa16の処理へ移行する。設定時扉閉状態フラグが設定されているときには、後述するように、所定のタイミングで遊技制御の進行が停止されて不能動化される。   If it is determined in step Sa27b that the front door 1b is not open, that is, if it is determined that the front door 1b is closed (closed), the setting key switch is ON but the front door 1b is not open. Is set, a door closing state flag is set (Sa27c), and the process proceeds to Sa16. When the door closing state flag at the time of setting is set, as will be described later, the progress of the game control is stopped and disabled at a predetermined timing.

このように、Sa27bでは、電源スイッチ39がOFFからONとなったとき(電源投入時)に、設定キースイッチ37がONを特定するための検出信号が出力されている特定操作状態となったときの前面扉1bの開閉状態が判定され、前面扉1bが開放状態でないと判定されたときには、不正行為とみなし、設定変更状態に制御されることがない。すなわち、本来であれば前面扉1bが開放状態でなければ、電源スイッチ39や設定キースイッチ37を操作できず特定操作状態にも成り得ないところ、特定操作状態となったときに前面扉1bが開放状態となっておらず不正行為が行なわれた可能性があるときには、設定変更状態に制御されることがない。これにより、不正行為によって設定変更状態に制御されて、設定変更が行なわれることを確実に防止することができる。   Thus, in Sa27b, when the power switch 39 is switched from OFF to ON (when the power is turned on), the setting key switch 37 is in a specific operation state in which a detection signal for specifying ON is output. When the open / close state of the front door 1b is determined and it is determined that the front door 1b is not in the open state, it is regarded as an illegal act and is not controlled to the setting change state. That is, if the front door 1b is not in an open state, the power switch 39 and the setting key switch 37 cannot be operated and cannot enter a specific operation state. When there is a possibility that an illegal act has been performed without being in the open state, the setting change state is not controlled. Accordingly, it is possible to reliably prevent the setting change by being controlled to the setting change state by an illegal act.

また、図2で説明したように、ドア開放検出スイッチ25と、設定変更操作を行なうための設定キースイッチ37、リセット/設定スイッチ38、および電源スイッチ39が搭載された電源ボックス100とが、各々、筐体1a内の異なる側面に設けられているため、ドア開放検出スイッチ25と電源ボックス100との双方に対して不正行為を行なうことの困難性が高められている。   Further, as described in FIG. 2, the door opening detection switch 25 and the power supply box 100 on which the setting key switch 37, the reset / setting switch 38, and the power switch 39 for performing the setting change operation are respectively provided. Since it is provided on different side surfaces in the housing 1a, the difficulty of performing an illegal act on both the door opening detection switch 25 and the power supply box 100 is increased.

さらに、前面扉1bが筐体1aに対して閉鎖状態でありながら、ドア開放検出スイッチ25により開放状態と同じ検出信号が出力されるようにする不正行為が考えられる。しかし、前述したように、ドア開放検出スイッチ25として反射型の光センサを採用している。このため、上記不正行為を行なうためには、たとえば反射部材を取り除くなどといった困難性を伴う。また、反射部材が取り除かれているか否かについては、視覚により認識することができるため、不正行為が行なわれたことを容易に把握することができる。よって、前面扉1bが筐体1aに対して閉鎖状態でありながら、ドア開放検出スイッチ25により開放状態と同じ検出信号が出力されるようにするような不正行為を防止することができる。   Furthermore, an illegal act may be considered in which the same detection signal as that in the open state is output by the door open detection switch 25 while the front door 1b is closed with respect to the housing 1a. However, as described above, a reflective optical sensor is used as the door opening detection switch 25. For this reason, in order to perform the above fraudulent act, for example, it is difficult to remove the reflecting member. Further, since it can be visually recognized whether or not the reflecting member has been removed, it is possible to easily grasp that an illegal act has been performed. Therefore, it is possible to prevent an illegal act such that the door open detection switch 25 outputs the same detection signal as in the open state while the front door 1b is closed with respect to the housing 1a.

一方、Sa27bのステップにおいて前面扉1bが開放状態であると判定されたときには、設定開始コマンドを特定コマンド送信用バッファに設定し、サブ制御部91に対して送信する(Sa28)。次いで、割込を許可して(Sa29)、設定変更処理、すなわち設定変更状態に移行する。設定変更処理では、前面扉1bの開閉状態に関わらず、設定キースイッチ37がOFFされるまで継続される。すなわち、一旦設定変更処理に移行されてから、設定キースイッチ37がOFFされて設定終了条件が成立するまで、前面扉1bの開閉状態に関わらず、当該設定変更処理が維持される。このため、不正行為ではなく正規に電源スイッチ39や設定キースイッチ37の操作が行なわれて設定変更状態に制御された後においては、設定変更途中において、たとえばドア開放検出スイッチに誤って手が触れるなどして前面扉1bが閉鎖状態であると誤検出されたとしても、当該設定変更状態を維持させて、確実に設定変更を行なうことができる。このため、誤操作によって再度、電源を落として最初から設定変更状態としなければならないといった煩わしさを遊技場管理者に抱かせてしまうことがない。   On the other hand, when it is determined in step Sa27b that the front door 1b is open, a setting start command is set in the specific command transmission buffer and transmitted to the sub-control unit 91 (Sa28). Next, the interruption is permitted (Sa29), and the setting change processing, that is, the setting change state is entered. The setting change process continues until the setting key switch 37 is turned off regardless of the open / closed state of the front door 1b. That is, once the process is shifted to the setting change process, the setting change process is maintained regardless of the open / closed state of the front door 1b until the setting key switch 37 is turned OFF and the setting end condition is satisfied. For this reason, after the power switch 39 and the setting key switch 37 are properly operated and not set in an unauthorized manner and controlled to the setting change state, the door opening detection switch is touched by mistake during the setting change. For example, even if it is erroneously detected that the front door 1b is in the closed state, the setting change state can be maintained and the setting can be changed reliably. For this reason, there is no need for the game hall manager to be bothered by having to turn off the power again to change the setting from the beginning due to an erroneous operation.

Sa31のステップにおいて設定キースイッチ37がOFFであれば、RAM異常を示すエラーコードをレジスタに設定し(Sa32)、RAM異常を示すエラーコマンドを特定コマンド送信用バッファに設定し、サブ制御部91に対して送信し(Sa33)、割込を許可して(Sa34)、エラー処理、すなわちRAM異常エラー状態に移行する。   If the setting key switch 37 is OFF in the step of Sa31, an error code indicating RAM abnormality is set in the register (Sa32), an error command indicating RAM abnormality is set in the specific command transmission buffer, and the sub-control unit 91 is set. In response to the transmission (Sa33), the interrupt is permitted (Sa34), and the process proceeds to an error process, that is, a RAM abnormal error state.

Sa7のステップにおいて、RAMパリティが0であれば、更に破壊診断用データが正常か否かを判定する(Sa8)。正常に電断割込処理(メイン)が行なわれていれば、破壊診断用データが設定されているはずであり、Sa8のステップにおいて破壊診断用データが正常でない場合(破壊診断用データが電断時に格納される5A(H)以外の場合)にも、RAM507のデータが正常ではないので、Sa30のステップに移行して初期化1を実行し、その後、Sa31のステップにおいて設定キースイッチ37がONであれば、乱数回路設定処理(Sa25)、乱数回路異常検査処理(Sa26)を順次行ない、乱数回路異常であれば、乱数回路異常を示すエラーコマンドの送信(Sa22)の後、割込を許可して(Sa23)、エラー処理に移行する。一方、乱数回路異常でなければ、設定開始コマンドの送信(Sa28)の後、割込を許可して(Sa29)、設定変更処理に移行する。また、Sa31のステップにおいて設定キースイッチ37がOFFであれば、RAM異常を示すエラーコードの設定(Sa32)、RAM異常を示すエラーコマンドの送信(S33)の後、割込を許可して(Sa34)、エラー処理に移行する。   If the RAM parity is 0 in step Sa7, it is further determined whether or not the destructive diagnosis data is normal (Sa8). If power interruption interrupt processing (main) is performed normally, the data for destruction diagnosis should have been set. If the data for destruction diagnosis is not normal in step Sa8 (data for destruction diagnosis is power interruption) Since the data in the RAM 507 is not normal also in cases other than 5A (H) stored at the time, the process proceeds to step Sa30 to execute initialization 1, and then the setting key switch 37 is turned on in step Sa31. If so, the random number circuit setting process (Sa25) and the random number circuit abnormality inspection process (Sa26) are sequentially performed. If the random number circuit is abnormal, the interrupt is permitted after the transmission of the error command indicating the random number circuit abnormality (Sa22). (Sa23), and the process proceeds to error processing. On the other hand, if the random circuit is not abnormal, after transmission of the setting start command (Sa28), the interrupt is permitted (Sa29), and the process proceeds to the setting change process. If the setting key switch 37 is OFF in step Sa31, an error code indicating a RAM abnormality is set (Sa32), an error command indicating a RAM abnormality is transmitted (S33), and then an interrupt is permitted (Sa34). ), Go to error handling.

Sa8のステップにおいて破壊診断用データが正常であると判定した場合には、RAM507のデータは正常であるので、破壊診断用データをクリアし(Sa9)、RAM507の非保存ワーク、未使用領域および未使用スタック領域を初期化する初期化3を行なった後(Sa10)、設定キースイッチ37がONか否かを判定し(Sa11)、設定キースイッチ37がONであれば、Sa24のステップに移行して初期化1を実行し、乱数回路設定処理(Sa25)、乱数回路異常検査処理(Sa26)を順次行ない、乱数回路異常であれば、乱数回路異常を示すエラーコマンドの送信(Sa22)の後、割込を許可して(Sa23)、エラー処理に移行する。一方、乱数回路異常でなければ、設定開始コマンドの送信(Sa28)の後、割込を許可して(Sa29)、設定変更処理に移行する。   If it is determined in step Sa8 that the destructive diagnosis data is normal, the data in the RAM 507 is normal, so the destructive diagnosis data is cleared (Sa9). After initialization 3 for initializing the used stack area (Sa10), it is determined whether the setting key switch 37 is ON (Sa11). If the setting key switch 37 is ON, the process proceeds to step Sa24. Initialization 1 is executed, the random number circuit setting process (Sa25) and the random number circuit abnormality inspection process (Sa26) are sequentially performed. If the random number circuit is abnormal, after transmission of an error command indicating the random number circuit abnormality (Sa22), The interrupt is permitted (Sa23), and the process proceeds to error processing. On the other hand, if the random circuit is not abnormal, after transmission of the setting start command (Sa28), the interrupt is permitted (Sa29), and the process proceeds to the setting change process.

Sa11のステップにおいて設定キースイッチ37がOFFであれば、Sa25のステップと同じ乱数回路設定処理(Sa13)、Sa26のステップと同じ乱数回路異常検査処理(Sa14)を実行し、乱数回路異常か否かを判定する(Sa15)。   If the setting key switch 37 is OFF in the step of Sa11, the same random number circuit setting process (Sa13) as the step of Sa25 and the same random number circuit abnormality inspection process (Sa14) as the step of Sa26 are executed, and whether or not the random number circuit is abnormal. Is determined (Sa15).

Sa15のステップにおいて乱数回路異常であると判定された場合には、乱数回路異常を示すエラーコマンドを特定コマンド送信用バッファに設定し、サブ制御部91に対して送信し(Sa22)、割込を許可して(Sa23)、エラー処理、すなわちRAM異常エラー状態に移行する。   If it is determined in step Sa15 that the random number circuit is abnormal, an error command indicating the random number circuit abnormality is set in the specific command transmission buffer, and transmitted to the sub-control unit 91 (Sa22). Permitted (Sa23), the process proceeds to error processing, that is, a RAM abnormal error state.

Sa15のステップにおいて乱数回路異常ではないと判定された場合には、各レジスタを電断前の状態、すなわちスタックに保存されている状態に復帰し(Sa16)、復帰コマンドを特定コマンド送信用バッファに設定し、サブ制御部91に対して送信する(Sa17)。そして、乱数ラッチフラグレジスタの値に基づいて乱数値がラッチされているか否か、すなわち乱数値レジスタ559Aに数値データが取り込まれているか否かを判定し(Sa18)、乱数値がラッチされていなければSa20のステップに進み、乱数値がラッチされていれば、乱数値レジスタ559Aから格納されている数値データを読み出し(Sa19)、Sa20のステップに進む。なお、Sa19のステップにおいて乱数値レジスタ559から数値データが読み出されると乱数ラッチフラグレジスタがクリアされ、新たな数値データの取込が許可されることとなる。また、Sa19のステップにおいては、数値データを読み出すものの、読み出した数値データを用いる訳ではなく、スタートスイッチ7の操作に応じて新たな数値データの取込を可能とするためにダミーとして読み出すものである。   If it is determined in step Sa15 that there is no abnormality in the random number circuit, each register is restored to the state before power interruption, that is, the state stored in the stack (Sa16), and the return command is stored in the specific command transmission buffer. It is set and transmitted to the sub-control unit 91 (Sa17). Then, it is determined whether or not the random number value is latched based on the value of the random number latch flag register, that is, whether or not the numerical value data is taken into the random number value register 559A (Sa18), and the random number value must be latched. If the random value is latched, the numerical data stored in the random value register 559A is read (Sa19), and the process proceeds to Sa20. Note that when numerical data is read from the random value register 559 in the step of Sa19, the random number latch flag register is cleared, and the acquisition of new numerical data is permitted. In the step of Sa19, although the numerical data is read, the read numerical data is not used, but is read as a dummy so that new numerical data can be taken in according to the operation of the start switch 7. is there.

Sa20のステップでは、復帰コマンドを特定コマンド送信用バッファに設定し、サブ制御部91に対して送信し、その後、割込を許可して(Sa21)、電断前の最後に実行していた処理に戻る。   In step Sa20, the return command is set in the specific command transmission buffer, transmitted to the sub-control unit 91, and then interrupts are permitted (Sa21). Return to.

図27は、メイン制御部41が実行するエラー処理の制御内容を示すフローチャートである。   FIG. 27 is a flowchart showing the control content of error processing executed by the main control unit 41.

エラー処理では、まず、現在の遊技補助表示器12の表示状態をスタックに退避し(Sb1)、レジスタに格納されているエラーコードを遊技補助表示器12に表示し(Sb2)、エラーコードがRAM異常エラーまたは乱数回路異常を示すエラーコードであるか否かを判定し(Sb3)、RAM異常エラーまたは乱数回路異常を示すエラーコードである場合には、いずれの処理も行なわないループ処理に移行する。   In the error processing, first, the current display state of the game auxiliary display 12 is saved in the stack (Sb1), the error code stored in the register is displayed on the game auxiliary display 12 (Sb2), and the error code is stored in the RAM. It is determined whether or not the error code indicates an abnormal error or a random circuit error (Sb3). If the error code indicates a RAM abnormal error or a random circuit error, the process shifts to a loop process that does not perform any process. .

Sb3のステップにおいてRAM異常エラーを示すエラーコードでも乱数回路異常を示すエラーコードでもないと判定された場合には、エラー状態の発生およびその種類を示すエラーコマンドを通常コマンド送信用バッファに設定する(Sb4)。Sb4のステップで設定されたエラーコマンドは、その後のタイマ割込処理(メイン)にてサブ制御部91に対して送信される。   If it is determined in step Sb3 that neither the error code indicating a RAM abnormal error nor the error code indicating a random circuit error is detected, an error command indicating the occurrence of the error state and its type is set in the normal command transmission buffer ( Sb4). The error command set in step Sb4 is transmitted to the sub-control unit 91 in the subsequent timer interrupt process (main).

次いで、リセット/設定スイッチ38の操作が検出されているか否かを判定し(Sb5)、リセット/設定スイッチ38の操作が検出されていなければ、更にリセットスイッチ23の操作が検出されているか否かを判定し(Sb6)、リセットスイッチ23の操作も検出されていなければ、Sb5のステップに戻る。すなわちリセット/設定スイッチ38またはリセットスイッチ23の操作が検出されるまで、遊技の進行が不能な状態で待機する。   Next, it is determined whether or not the operation of the reset / setting switch 38 is detected (Sb5). If the operation of the reset / setting switch 38 is not detected, whether or not the operation of the reset switch 23 is further detected. (Sb6), and if the operation of the reset switch 23 is not detected, the process returns to the step Sb5. That is, the game waits in a state where the progress of the game is impossible until the operation of the reset / setting switch 38 or the reset switch 23 is detected.

そして、Sb5のステップにおいてリセット/設定スイッチ38の操作が検出された場合、またはSb6のステップにおいてリセットスイッチ23の操作が検出された場合には、レジスタに格納されているエラーコードをクリアし(Sb7)、遊技補助表示器12の表示状態をSb1のステップにおいてスタックに退避した表示状態に復帰させ(Sb8)、エラー状態が解除された旨を示すエラーコマンドを通常コマンド用送信バッファに設定して(Sb9)、もとの処理に戻る。Sb9で設定されたエラーコマンドは、その後のタイマ割込処理(メイン)にてサブ制御部91に対して送信される。   When the operation of the reset / setting switch 38 is detected in the step Sb5 or when the operation of the reset switch 23 is detected in the step Sb6, the error code stored in the register is cleared (Sb7 ), The display state of the game auxiliary display 12 is restored to the display state saved in the stack in the step Sb1 (Sb8), and an error command indicating that the error state is released is set in the normal command transmission buffer ( Sb9), the process returns to the original process. The error command set in Sb9 is transmitted to the sub-control unit 91 in the subsequent timer interrupt process (main).

このようにエラー処理においては、RAM異常、乱数回路異常以外によるエラー処理であれば、リセット/設定スイッチ38またはリセットスイッチ23が操作されることで、エラー状態を解除してもとの処理に復帰するが、RAM異常や乱数回路異常によるエラー処理であれば、リセット/設定スイッチ38またはリセットスイッチ23が操作されてもエラー状態が解除され、元の状態に復帰することはない。   As described above, in the error processing, if the error processing is not due to the RAM abnormality or the random number circuit abnormality, the reset / setting switch 38 or the reset switch 23 is operated to return to the original processing even when the error state is canceled. However, in the case of error processing due to RAM abnormality or random number circuit abnormality, even if the reset / setting switch 38 or the reset switch 23 is operated, the error state is canceled and the original state is not restored.

図28は、メイン制御部41が実行する設定変更処理の制御内容を示すフローチャートである。   FIG. 28 is a flowchart showing the control content of the setting change process executed by the main control unit 41.

設定変更処理では、まず、RAM507の設定値ワークに格納されている設定値を読み出して、読み出した値を表示値とし(Sc1)、表示値が設定可能な範囲(1〜6)外か否かを判定し(Sc2)、表示値が設定可能な範囲内であればSc4のステップに進み、表示値が設定可能な範囲外であれば、表示値を1に補正し、Sc4のステップに進む。   In the setting change process, first, the setting value stored in the setting value work of the RAM 507 is read out, and the read value is set as a display value (Sc1), and whether or not the display value is out of a settable range (1 to 6). (Sc2), if the display value is within the settable range, the process proceeds to step Sc4. If the display value is outside the settable range, the display value is corrected to 1, and the process proceeds to step Sc4.

Sc4のステップでは、設定値表示器24に表示値を表示させた後、リセット/設定スイッチ38とスタートスイッチ7の操作の検出待ちの状態となり(Sc5、Sc6)、Sc5のステップにおいてリセット/設定スイッチ38のonが検出されると、操作スイッチの立上りを示す立上りエッジをクリアし(Sc7)、表示値を1加算し(Sc8)、Sc2のステップに戻る。   In the step of Sc4, after the display value is displayed on the setting value display 24, the operation waits for detection of the operation of the reset / setting switch 38 and the start switch 7 (Sc5, Sc6). In the step of Sc5, the reset / setting switch When 38 on is detected, the rising edge indicating the rising of the operation switch is cleared (Sc7), the display value is incremented by 1 (Sc8), and the process returns to the step Sc2.

また、Sc6のステップにおいてスタートスイッチ7のonが検出された場合には、立上りエッジをクリアし(Sc9)、設定値表示器24に表示されている値を0に更新し(Sc10)、設定キースイッチ37がOFFの状態となるまで待機する(Sc11)。   When the start switch 7 is detected to be on in the step of Sc6, the rising edge is cleared (Sc9), the value displayed on the set value display 24 is updated to 0 (Sc10), and the setting key Wait until the switch 37 is turned off (Sc11).

Sc11のステップにおいて設定キースイッチ37のOFFが判定されると、表示値を設定値ワークに格納して(Sc12)、遊技状態コマンドを生成し、コマンド送信用バッファに設定する(Sc13)。Sc13のステップにおいて設定された遊技状態コマンドは、その後のタイマ割込処理(メイン)にてサブ制御部91に対して送信される。   If it is determined in step Sc11 that the setting key switch 37 is OFF, the display value is stored in the set value work (Sc12), a game state command is generated, and set in the command transmission buffer (Sc13). The gaming state command set in the step of Sc13 is transmitted to the sub-control unit 91 in the subsequent timer interrupt process (main).

Sc14のステップにおいては、遊技を不能動化させるための設定時扉閉状態フラグや不能化フラグが設定されているか否か判定する。Sc14のステップにおいて当該フラグが設定されていないと判定されたときには、そのままゲーム処理に移行する。一方、Sc14のステップにおいて当該フラグが設定されていると判定されたときには、設定されている当該フラグをクリアし(Sc15)、ゲーム処理に移行する。これにより、設定時扉閉状態フラグや不能化フラグが一旦設定されると設定変更状態に移行されるまで、当該フラグがクリアされないため、遊技を不能動化することができる。   In the step of Sc14, it is determined whether or not a setting door closed state flag or a disabling flag for disabling the game is set. When it is determined in the step of Sc14 that the flag is not set, the process directly proceeds to game processing. On the other hand, when it is determined in the step of Sc14 that the flag is set, the set flag is cleared (Sc15), and the process proceeds to the game process. As a result, once the set door closing state flag or the disablement flag is set, the flag is not cleared until the setting change state is entered, so that the game can be disabled.

図29は、メイン制御部41が実行するゲーム処理の制御内容を示すフローチャートである。   FIG. 29 is a flowchart showing the control contents of the game process executed by the main control unit 41.

ゲーム処理では、BET処理(Sd1)、内部抽選処理(Sd2)、リール回転処理(Sd3)、入賞判定処理(Sd4)、払出処理(Sd5)、ゲーム終了時処理(Sd6)を順に実行し、ゲーム終了時処理が終了すると、再びBET処理に戻る。   In the game process, a BET process (Sd1), an internal lottery process (Sd2), a reel rotation process (Sd3), a winning determination process (Sd4), a payout process (Sd5), and a game end process (Sd6) are sequentially executed. When the end-time process ends, the process returns to the BET process again.

Sd1のステップにおけるBET処理では、賭数を設定可能な状態で待機し、遊技状態に応じた規定数の賭数が設定され、スタートスイッチ7が操作された時点でゲームを開始させる処理を実行する。   In the BET process in the step of Sd1, the process waits in a state where a bet number can be set, and a process for starting a game when a specified number of bets is set according to the gaming state and the start switch 7 is operated is executed. .

Sd2のステップにおける内部抽選処理では、Sd1のステップにおけるスタートスイッチ7の検出によるゲーム開始と同時にラッチされた数値データに基づいて上記した各役への入賞を許容するかどうかを決定する処理を行なう。この内部抽選処理では、それぞれの抽選結果に基づいて、RAM507に当選フラグが設定される。   In the internal lottery process in the step Sd2, a process is performed for determining whether or not the above winning combination is permitted based on the numerical data latched simultaneously with the start of the game by the detection of the start switch 7 in the step Sd1. In this internal lottery process, a winning flag is set in the RAM 507 based on each lottery result.

Sd3のステップにおけるリール回転処理では、各リール2L、2C、2Rを回転させる処理、遊技者によるストップスイッチ8L、8C、8Rの操作が検出されたことに応じて対応するリール2L、2C、2Rの回転を停止させる処理を実行する。   In the reel rotation process in the step of Sd3, the process of rotating each reel 2L, 2C, 2R and the operation of the corresponding reel 2L, 2C, 2R in response to the operation of the stop switch 8L, 8C, 8R detected by the player are detected. A process for stopping the rotation is executed.

Sd4のステップにおける入賞判定処理では、Sd3のステップにおいて全てのリール2L、2C、2Rの回転が停止したと判定した時点で、各リール2L、2C、2Rに導出された表示結果に応じて入賞が発生したか否かを判定する処理を実行する。   In the winning determination process in the step Sd4, when it is determined in the step Sd3 that the rotation of all the reels 2L, 2C, and 2R is stopped, the winning is determined according to the display result derived for each reel 2L, 2C, and 2R. A process of determining whether or not it has occurred is executed.

Sd5のステップにおける払出処理では、Sd4のステップにおいて入賞の発生が判定された場合に、その入賞に応じた払出枚数に基づきクレジットの加算並びにメダルの払出等の処理を行なう。   In the payout process in step Sd5, when it is determined in step Sd4 that a winning has occurred, processing such as addition of credits and payout of medals is performed based on the number of payouts according to the win.

Sd6のステップにおけるゲーム終了時処理では、次のゲームに備えて遊技状態を設定する処理を実行する。   In the game end process in the step of Sd6, a process of setting a gaming state in preparation for the next game is executed.

また、ゲーム処理では、ゲームの進行制御に応じてコマンドを生成し、通常コマンド送信用バッファに設定することで、その後のタイマ割込処理(メイン)においてサブ制御部91に対して設定されたコマンドが送信されるようになっている。   In the game process, a command is generated according to the progress control of the game and set in the normal command transmission buffer, so that the command set for the sub-control unit 91 in the subsequent timer interrupt process (main) Is to be sent.

図30〜図32は、メイン制御部41がSd1のステップにおいて実行するBET処理の制御内容を示すフローチャートである。   30 to 32 are flowcharts showing the control contents of the BET process executed by the main control unit 41 in step Sd1.

BET処理では、まず、RAM507において賭数の値が格納されるBETカウンタの値をクリアし(Se1)、遊技状態に応じた規定数(本実施の形態では遊技状態に関わらず3)をRAM507に設定し(Se2)、RAM507にリプレイゲームである旨を示すリプレイゲームフラグが設定されているか否かに基づいて当該ゲームがリプレイゲームであるか否かを判定する(Se3)。   In the BET process, first, the value of the BET counter in which the value of the betting number is stored in the RAM 507 is cleared (Se1), and a prescribed number (3 regardless of the gaming state in this embodiment) is stored in the RAM 507. It is set (Se2), and it is determined whether or not the game is a replay game based on whether or not the replay game flag indicating that it is a replay game is set in the RAM 507 (Se3).

Se3のステップにおいて当該ゲームがリプレイゲームであると判定された場合には、賭数が3加算された旨を示すBETコマンドを通常コマンド用送信バッファに設定し(Se4)、BETカウンタの値を1加算し(Se5)、RAM507に設定された賭数の規定数を参照し、BETカウンタの値が規定数であるか否か、すなわちゲームの開始条件となる賭数が設定されているか否かを判定し(Se6)、BETカウンタの値が規定数でなければSe5のステップに戻り、BETカウンタの値が規定数であれば、メダルの投入不可を示す投入不可フラグをRAM507に設定し(Se7)、Se12のステップに進む。Se4のステップで設定されたBETコマンドは、その後のタイマ割込処理(メイン)でサブ制御部91に対して送信される。   If it is determined in step Se3 that the game is a replay game, a BET command indicating that 3 bets have been added is set in the normal command transmission buffer (Se4), and the value of the BET counter is set to 1. Add (Se5) and refer to the prescribed number of bets set in the RAM 507 to determine whether or not the value of the BET counter is the prescribed number, that is, whether or not the bet number as a game start condition is set. If the value of the BET counter is not the specified number, the process returns to the step of Se5. If the value of the BET counter is the specified number, the insertion prohibition flag indicating that the medal cannot be inserted is set in the RAM 507 (Se7). , Go to the step of Se12. The BET command set in step Se4 is transmitted to the sub-control unit 91 in the subsequent timer interrupt process (main).

Se3のステップにおいて当該ゲームがリプレイゲームでないと判定されれば、投入待ち前の設定を行ない(Se8)、Se9のステップに進む。投入待ち前の設定では、RAM507に設定されている投入不可フラグをクリアし、メダルの投入が可能な状態とする。   If it is determined in the step Se3 that the game is not a replay game, the setting before waiting for input is performed (Se8), and the process proceeds to the step Se9. In the setting before waiting for insertion, the insertion disable flag set in the RAM 507 is cleared, and a medal can be inserted.

Se9のステップでは、BETカウンタの値が規定数であるか否か、すなわちゲームの開始条件となる賭数が設定されているか否かを判定し、BETカウンタの値が規定数でなければSe14のステップに進み、BETカウンタの値が規定数であれば、さらにいずれかのスイッチがOFFに変化したか否かを判定する(Se10)。Se10のステップでは、いずれかのスイッチの立下りを示す立下りエッジが設定されているか否かに基づいていずれかのスイッチがOFFに変化したか否かが判定される。さらに立下りエッジは、いずれかのスイッチがOFFに変化し、かつ全てのスイッチがOFFである場合にのみ設定されるので、Se10のステップでは、いずれかのスイッチがOFFに変化したか否かに加えて他のスイッチがOFFであるかどうかについても判定されることとなる。   In the step of Se9, it is determined whether or not the value of the BET counter is a specified number, that is, whether or not the number of bets serving as a game start condition is set. Proceeding to the step, if the value of the BET counter is a specified number, it is further determined whether or not any of the switches has been turned OFF (Se10). In the step of Se10, it is determined whether or not any of the switches has been turned off based on whether or not a falling edge indicating the falling of any of the switches is set. Further, since the falling edge is set only when any switch is turned off and all the switches are turned off, in the step of Se10, it is determined whether any switch is turned off or not. In addition, it is also determined whether or not other switches are OFF.

Se10のステップにおいていずれのスイッチもOFFに変化していないと判定された場合、またはいずれかのスイッチがOFFに変化したものの未だONが継続しているスイッチがある場合には、Se14のステップに進み、いずれかのスイッチがOFFに変化し、かつ全てのスイッチがOFFであると判定された場合には、立下りエッジをクリアし(Se11)、Se12のステップに進む。   If it is determined in step Se10 that none of the switches have changed to OFF, or if any switch has changed to OFF but is still ON, the process proceeds to step Se14. If any of the switches changes to OFF and it is determined that all the switches are OFF, the falling edge is cleared (Se11) and the process proceeds to Se12.

Se12のステップでは、乱数ラッチフラグレジスタの値に基づいて数値データがラッチされているか否か、すなわち乱数値レジスタ559Aに数値データが取り込まれているか否かを判定し、数値データがラッチされていなければSe14のステップに進み、数値データがラッチされていれば乱数値レジスタ559Aから数値データを読み出し(Se13)、Se14のステップに進む。なお、Se13のステップにおいて乱数値レジスタ559から数値データが読み出されると乱数ラッチフラグレジスタがクリアされ、新たな数値データの取込が許可されることとなる。また、Se13のステップにおいては、数値データを読み出すものの、読み出した数値データを用いる訳ではなく、スタートスイッチ7の操作に応じて新たな数値データの取込を可能とするためにダミーとして読み出すものである。このため、ゲームの開始条件となる賭数が設定されている状態であるが、スタートスイッチ7以外のスイッチが操作されており、スタートスイッチ7の操作が無効化されている状態でスタートスイッチ7が操作されたために数値データがラッチされ、新たな数値データの取込が禁止されている状態であっても、全てのスイッチがOFFの状態となり、スタートスイッチ7の操作が有効化された時点でラッチされている数値データがダミーとして読み出され、その後のスタートスイッチ7が操作されたタイミングで新たに数値データをラッチすることが可能となる。   In step Se12, it is determined whether or not numerical data is latched based on the value of the random number latch flag register, that is, whether or not numerical data is captured in the random value register 559A, and the numerical data must be latched. If the numerical data is latched, the numerical data is read from the random value register 559A (Se13), and the process proceeds to Se14. Note that when the numerical data is read from the random value register 559 in the step of Se13, the random number latch flag register is cleared, and the acquisition of new numerical data is permitted. In the step of Se13, although the numerical data is read, the read numerical data is not used, but is read as a dummy so that new numerical data can be taken in according to the operation of the start switch 7. is there. For this reason, although the number of bets serving as a game start condition is set, the switches other than the start switch 7 are operated, and the start switch 7 is in the state where the operation of the start switch 7 is invalidated. Even if numerical data is latched because it has been operated and new numerical data is not imported, all switches are turned off and latched when the start switch 7 is activated. The numerical data that has been read is read as a dummy, and the numerical data can be newly latched at the timing when the start switch 7 is operated thereafter.

Se14のステップでは、レジスタにエラーコードが設定されているか否か、すなわちエラーが検知されたか否かを判定し、エラーコードが設定されていれば、図27に示すエラー処理に移行する。   In step Se14, it is determined whether or not an error code is set in the register, that is, whether or not an error is detected. If an error code is set, the process proceeds to error processing shown in FIG.

Se14のステップにおいてエラーコードが設定されていなければ、RAM507に投入不可フラグが設定されているか否かに基づいてメダルの投入が可能な状態か否かを判定する(Se15)。Se15のステップにおいてメダルの投入が可能な状態であると判定された場合には、流路切替ソレノイド30をonの状態とし、メダルの流路をホッパータンク側の経路としてメダルの投入が可能な状態とし(Se16)、Se18のステップに進み、メダルの投入が可能な状態でないと判定された場合には、流路切替ソレノイド30をoffの状態とし、メダルの流路をメダル払出口9側の経路として新たなメダルの投入を禁止し(Se17)、Se18のステップに進む。   If an error code is not set in the step of Se14, it is determined whether or not a medal can be inserted based on whether or not the insertion disable flag is set in the RAM 507 (Se15). When it is determined in step Se15 that the medal can be inserted, the flow path switching solenoid 30 is turned on, and the medal can be inserted using the medal flow path as a path on the hopper tank side. (Se16), the process proceeds to step Se18, and if it is determined that the medal cannot be inserted, the flow path switching solenoid 30 is set to the off state, and the medal flow path is the path on the medal payout exit 9 side. As a result, the insertion of a new medal is prohibited (Se17), and the process proceeds to Step Se18.

Se18のステップにおいては、設定キースイッチ37がonの状態か否かを判定し、設定キースイッチ37がonであれば、BETカウンタの値が0か否かを判定する(Se19)。そして、Se19のステップにおいてBETカウンタの値が0であれば、確認開始コマンドを通常コマンド送信用バッファに設定し(Se20)、設定確認処理(Se21)、すなわち設定確認状態に移行する。Se20のステップで設定された確認開始コマンドは、その後のタイマ割込処理(メイン)でサブ制御部91に対して送信される。また、Se21のステップにおける設定確認処理が終了した後は、Se9のステップに戻る。   In step Se18, it is determined whether or not the setting key switch 37 is on. If the setting key switch 37 is on, it is determined whether or not the value of the BET counter is 0 (Se19). If the value of the BET counter is 0 in the step Se19, the confirmation start command is set in the normal command transmission buffer (Se20), and the setting confirmation process (Se21), that is, the setting confirmation state is entered. The confirmation start command set in step Se20 is transmitted to the sub-control unit 91 in the subsequent timer interrupt process (main). Moreover, after the setting confirmation process in the step of Se21 is completed, the process returns to the step of Se9.

設定確認処理では、まず、ペイアウト表示器13の表示値を待避し、RAM41cの設定値ワークから現在設定されている設定値を取得し、取得した設定値をペイアウト表示器13に表示する。その後、設定キースイッチ37がoffになるまで待機し、設定キースイッチ37がoffになると先に待避させていたペイアウト表示器13の表示値を復帰させた後、確認終了コマンドを通常コマンド送信用バッファに設定し、設定確認処理を終了する。設定された確認終了コマンドは、その後のタイマ割込処理(メイン)でサブCPU91aに対して送信される。   In the setting confirmation process, first, the display value of the payout display 13 is saved, the setting value currently set is acquired from the setting value work of the RAM 41c, and the acquired setting value is displayed on the payout display 13. Thereafter, the control waits until the setting key switch 37 is turned off. When the setting key switch 37 is turned off, the display value of the payout display 13 previously saved is restored, and then a confirmation end command is sent to the normal command transmission buffer. To complete the setting confirmation process. The set confirmation end command is transmitted to the sub CPU 91a in the subsequent timer interrupt process (main).

Se18のステップにおいて設定キースイッチ37がonではない場合またはSe19のステップにおいてBETカウンタの値が0ではない場合には、Se22aのステップに進み、設定時扉閉状態フラグが設定されているか否かを判定する。設定時扉閉状態フラグが設定されていると判定されたときには、Se22bのステップに進み、現在有効な特定操作が検出されたか否か判定する。現在有効な特定操作の検出とは、投入メダルセンサ31の検出、1枚BETスイッチ5の検出、MAXBETスイッチ6の検出、精算スイッチ10の検出などをいう。   If the setting key switch 37 is not on in step Se18, or if the value of the BET counter is not 0 in step Se19, the process proceeds to step Se22a to determine whether the door closing state flag is set. judge. When it is determined that the door closing state flag at the time of setting is set, the process proceeds to step Se22b, and it is determined whether or not a currently valid specific operation has been detected. The detection of the specific operation currently effective means detection of the inserted medal sensor 31, detection of the single BET switch 5, detection of the MAXBET switch 6, detection of the settlement switch 10, and the like.

なお、特定操作については、設定時扉閉状態フラグが設定されているときであっても、後述するスタートスイッチ7への操作が検出されるまでの間においては、有効に検出され、対応する処理(たとえば、Se22d、Se39、Se47、Se56各々においてYESと判定されたときの処理など)が実行される。   It should be noted that the specific operation is effectively detected until the operation to the start switch 7 described later is detected even when the set door closed state flag is set, and the corresponding processing is performed. (For example, processing when it is determined YES in each of Se22d, Se39, Se47, and Se56).

Se22bにおいて、現在有効な特定操作が検出されたと判定されたときには、Se22cのステップに進み、スタートスイッチ7の操作を不能化することにより遊技の進行を停止させて不能動化させるための不能化フラグを設定する。一方、Se22aで設定時扉閉状態フラグが設定されていないと判定されたとき、Se22bで現在有効な特定操作が検出されていないと判定されたとき、およびSe22cにおいて不能化フラグが設定されたときには、Se22dのステップに進む。   When it is determined in Se22b that a currently valid specific operation has been detected, the process proceeds to step Se22c, and the disabling flag for disabling operation by stopping the progress of the game by disabling the operation of the start switch 7 Set. On the other hand, when it is determined at Se22a that the set door closing state flag is not set, when it is determined at Se22b that a currently valid specific operation is not detected, and when the disabling flag is set at Se22c , Go to the step of Se22d.

Se22dでは、投入メダルセンサ31により投入メダルの通過が検出されたか否か、すなわち投入メダルの通過が検出された旨を示す投入メダルフラグの有無を判定する。Se22dのステップにおいて投入メダルの通過が検出されていなければ、Se33のステップに進み、投入メダルの通過が検出されていれば、投入メダルフラグをクリアし(Se23)、RAM507に投入不可フラグが設定されているか否かに基づいてメダルの投入が可能な状態か否かを判定し(Se24)、メダルの投入が可能な状態でなければSe33のステップに進む。   In Se22d, it is determined whether or not the inserted medal sensor 31 has detected the passage of the inserted medal, that is, the presence or absence of the inserted medal flag indicating that the passage of the inserted medal has been detected. If the passage of the inserted medal is not detected in the step of Se22d, the process proceeds to the step of Se33. If the passage of the inserted medal is detected, the inserted medal flag is cleared (Se23), and the non-insertable flag is set in the RAM 507. Whether or not a medal can be inserted is determined based on whether or not a medal can be inserted (Se24). If the medal cannot be inserted, the process proceeds to Step Se33.

Se24のステップにおいてメダルの投入が可能な状態であれば、RAM507に設定された賭数の規定数を参照し、BETカウンタの値が規定数であるか否を判定し(Se20)、BETカウンタの値が規定数でなければ、賭数が1加算された旨を示すBETコマンドを通常コマンド送信用バッファに設定し(Se26)、BETカウンタの値を1加算し(Se27)、BETカウンタの値が規定数であるか否か、すなわちゲームの開始条件となる賭数が設定されたか否かを判定し(Se28)、BETカウンタの値が規定数でなければSe9のステップに戻る。Se26のステップで設定されたBETコマンドは、その後のタイマ割込処理(メイン)でサブ制御部91に対して送信される。   If the medal can be inserted in the step of Se24, the prescribed number of bets set in the RAM 507 is referred to and it is determined whether or not the value of the BET counter is the prescribed number (Se20). If the value is not the prescribed number, a BET command indicating that the bet number is incremented by 1 is set in the normal command transmission buffer (Se26), the BET counter value is incremented by 1 (Se27), and the BET counter value is It is determined whether or not the number is a specified number, that is, whether or not the number of bets serving as a game start condition has been set (Se28). If the value of the BET counter is not the specified number, the process returns to Step Se9. The BET command set in step Se <b> 26 is transmitted to the sub-control unit 91 in the subsequent timer interrupt process (main).

また、Se28のステップにおいてBETカウンタの値が規定数であれば、すなわちゲームの開始条件となる賭数が設定された場合には、Se12のステップに戻り、ゲームの開始条件となる賭数が設定される前に数値データがラッチされていれば、Sa13のステップにて数値データが読み出され、新たな数値データの取込が可能となる。このため、ゲームの開始条件となる賭数が設定されておらず、スタートスイッチ7の操作が無効化されている状態でスタートスイッチ7が操作されたために数値データがラッチされ、新たな数値データの取込が禁止されている状態であっても、ゲームの開始条件となる既定数の賭数が設定され、スタートスイッチ7の操作が有効化された時点でラッチされている数値データがダミーとして読み出され、その後のスタートスイッチ7が操作されたタイミングで新たに数値データをラッチすることが可能となる。   Further, if the value of the BET counter is the specified number in the step of Se28, that is, if the betting number as the game start condition is set, the process returns to the step of Se12 and the betting number as the game start condition is set. If the numerical data is latched before being performed, the numerical data is read in step Sa13, and new numerical data can be taken in. For this reason, since the number of bets serving as a game start condition is not set and the start switch 7 is operated in a state where the operation of the start switch 7 is invalidated, the numerical data is latched, and the new numerical data Even when the take-in is prohibited, a predetermined number of bets are set as a game start condition, and the numerical data latched when the operation of the start switch 7 is validated is read as a dummy. The numerical data can be newly latched at the timing when the start switch 7 is operated thereafter.

Se25のステップにおいてBETカウンタの値が規定数であれば、現在のクレジットカウンタの値を示すクレジットコマンドを通常コマンド送信用バッファに設定し(Se29)、RAM507においてクレジットの値が格納されるクレジットカウンタの値を1加算し(Se30)、クレジットカウンタの値が上限値である50であるか否かを判定し(Se31)、クレジットカウンタの値が50でなければ、Se9のステップに戻り、クレジットカウンタの値が50であれば投入不可フラグをRAM507に設定し(Se32)、Se9のステップに戻る。Se29のステップで設定されたクレジットコマンドは、その後のタイマ割込処理(メイン)でサブ制御部91に対して送信される。   If the value of the BET counter is a prescribed number in the step of Se25, a credit command indicating the current credit counter value is set in the normal command transmission buffer (Se29), and the credit counter in which the credit value is stored in the RAM 507 is stored. The value is incremented by 1 (Se30), and it is determined whether the value of the credit counter is 50 which is the upper limit value (Se31). If the value of the credit counter is not 50, the process returns to the step of Se9, If the value is 50, the input impossible flag is set in the RAM 507 (Se32), and the process returns to the Se9 step. The credit command set in the step of Se29 is transmitted to the sub-control unit 91 in the subsequent timer interrupt process (main).

Se33のステップでは、スタートスイッチ7の操作が検出されているか否か、すなわちスタートスイッチ7の立上りを示す立上りエッジが設定されているか否かを判定する。さらに立上りエッジは、いずれかのスイッチがONに変化し、かつ全てのスイッチがOFFである場合にのみ設定されるので、Se33のステップでは、いずれかのスイッチがONに変化したか否かに加えて他のスイッチがOFFであるかどうかについても判定されることとなる。   In step Se33, it is determined whether or not an operation of the start switch 7 is detected, that is, whether or not a rising edge indicating a rising edge of the start switch 7 is set. Further, the rising edge is set only when any switch is turned on and all the switches are turned off. Therefore, in the step of Se33, in addition to whether any switch is turned on. Whether or not the other switch is OFF is also determined.

Se33のステップにおいてスタートスイッチ7の操作が検出されていないと判定された場合、またはスタートスイッチ7が操作されたものの他のスイッチも操作されている場合には、Se39のステップに進み、スタートスイッチ7の操作が有効に検出されていれば、立上りエッジをクリアし(Se34)、RAM507に設定された賭数の規定数を参照し、BETカウンタの値が規定数であるか、すなわちゲームの開始条件となる賭数が設定されているか否かを判定する(Se35a)。   If it is determined that the operation of the start switch 7 is not detected in the step of Se33, or if another switch for which the start switch 7 is operated is also operated, the process proceeds to the step of Se39, where the start switch 7 If the operation is effectively detected, the rising edge is cleared (Se34), the specified number of bets set in the RAM 507 is referred to, and whether the value of the BET counter is the specified number, that is, the game start condition It is determined whether or not the number of bets to be set is set (Se35a).

Se35aのステップにおいてBETカウンタの値が規定数でなければ、Se9のステップに戻り、BETカウンタの値が規定数であれば、Se35bのステップに進む。Se35bでは、不能化フラグが設定されているか否かを判定する。通常であれば前面扉1bを開放させなければ設定変更操作を行なうことができないところ、Se35bにおいて不能化フラグが設定されていると判定されたときには、設定変更操作が行なわれた際に前面扉1bが閉鎖状態であったような異常時であるため、いずれの処理も行なわないループ処理に移行する。これにより、設定変更状態に移行されるまで、遊技が不能動化される。このため、不正行為が行なわれたことを、遊技場管理者や他の遊技者などによって容易に特定されてしまう。その結果、不正行為を行なうことのリスクを高めることにより、不正行為を抑止することができる。   If the value of the BET counter is not the specified number in the step of Se35a, the process returns to the step of Se9, and if the value of the BET counter is the specified number, the process proceeds to the step of Se35b. In Se35b, it is determined whether or not the disabling flag is set. Normally, the setting change operation cannot be performed unless the front door 1b is opened. When it is determined in Se35b that the disabling flag is set, the front door 1b is displayed when the setting change operation is performed. Is in an abnormal state as if it was in a closed state, and therefore the process proceeds to a loop process in which no process is performed. Thereby, the game is disabled until the setting change state is entered. For this reason, it is easily specified by the game hall manager or other players that the illegal act has been performed. As a result, fraud can be suppressed by increasing the risk of performing fraud.

また、不能動化される直前の遊技の進行状況に関わらず、不能化フラグが設定されているときのスタートスイッチ7の操作が無効にされるため、スタートスイッチ7が操作されたときに不能化フラグが設定されているか否かを判断する処理を行ない、不能動化フラグが設定されているときにループ処理に移行することにより、それ以後の遊技の進行を不能動化できる。このため、不能動化するための処理を容易化でき、かつ不能動化するために特殊な制御を行なう必要性がなく処理負担が増大することを防止することができる。   Further, regardless of the progress status of the game immediately before being disabled, the operation of the start switch 7 when the disable flag is set is invalidated, and therefore disabled when the start switch 7 is operated. The process of determining whether or not the flag is set is performed, and the process proceeds to the loop process when the disablement flag is set, so that the progress of the game thereafter can be disabled. For this reason, it is possible to facilitate the processing for disabling and prevent the processing burden from increasing because there is no need to perform special control for disabling.

遊技が不能動化されているときに、たとえば、設定キースイッチをON状態にせずに電源を再投入した場合には、図23のSa21以降で説明したように、当該ループ処理に移行される。このため、不能動化を解除することができない。一方、遊技が不能動化されているときに、たとえば、前面扉1bを開放させて設定キースイッチをON状態にして電源を再投入した場合には、図23のSa29以降で説明したように、図28の設定変更処理に移行されて、Sc15において不能動化フラグが消去されることにより、不能動化を解除することができる。このように、遊技の不能動化は、正規に設定変更状態に移行されることにより解除される。よって、不正行為を行なった者にとっては容易に遊技の不能動化を解除することができないのに対し、前面扉1bを開放状態にして設定キースイッチを操作することができる者(たとえば遊技場管理者)であれば、容易かつ速やかに不能動化を解除することができる。   When the game is disabled, for example, when the power is turned on again without turning the setting key switch to the ON state, the process proceeds to the loop process as described in Sa21 and thereafter in FIG. For this reason, the immobilization cannot be canceled. On the other hand, when the game is disabled, for example, when the front door 1b is opened and the setting key switch is turned on and the power is turned on again, as described in and after Sa29 in FIG. The process is shifted to the setting change process of FIG. 28, and the disabled immobilization flag is deleted in Sc15, so that the disabled disabling can be canceled. As described above, the immobilization of the game is canceled by properly shifting to the setting change state. Therefore, a person who has performed a fraudulent act cannot easily release the disabled state of the game, but a person who can operate the setting key switch with the front door 1b opened (for example, a game management) If it is a person), the immobilization can be canceled easily and quickly.

一方、Se35bにおいて不能化フラグが設定されていないと判定されたときには、Se36のステップに進み、乱数値格納ワークの値を内部抽選用の乱数値として抽選用ワークに設定し(Se36)、投入不可フラグをRAM507に設定するとともに、流路切替ソレノイド30をoffの状態とし、メダルの流路をメダル払出口9側の経路として新たなメダルの投入を禁止し(Se37)、ゲーム開始時の設定を行なう(Se38)。そして、Se38のステップの後、BET処理を終了して図29のフローチャートに復帰する。   On the other hand, when it is determined in Se35b that the disabling flag is not set, the process proceeds to step Se36, and the value of the random number storage work is set as a random value for internal lottery in the lottery work (Se36) and cannot be inserted. The flag is set in the RAM 507, the flow path switching solenoid 30 is turned off, the medal flow path is set as a path on the medal payout exit 9 side, and a new medal is prohibited (Se37). Perform (Se38). Then, after the step of Se38, the BET process is terminated and the process returns to the flowchart of FIG.

Se39のステップにおいては、1枚BETスイッチ5の操作が検出されているか否か、すなわち1枚BETスイッチ5の立上りを示す立上りエッジが設定されているか否かを判定する。Se39のステップにおいて1枚BETスイッチ5の操作が検出されていなければ、Se47のステップに進み、1枚BETスイッチ5の操作が検出されていれば立上りエッジをクリアし(Se40)、RAM507に設定された賭数の規定数を参照し、BETカウンタの値が規定数であるか否かを判定する(Se41)。Se41のステップにおいてBETカウンタの値が規定数であればSe9のステップに戻り、BETカウンタの値が規定数でなければ、クレジットカウンタの値が0であるか否かを判定し(Se42)、クレジットカウンタの値が0であればSe9のステップに戻る。Se42のステップにおいてクレジットカウンタの値が0でなければ、賭数が1加算された旨を示すBETコマンドを通常コマンド送信用バッファに設定し(Se43)、クレジットカウンタの値を1減算し(Se44)、BETカウンタの値を1加算して(Se45)、BETカウンタの値が規定数であるか否か、すなわちゲームの開始条件となる賭数が設定されたか否かを判定し(Se46)、BETカウンタの値が規定数でなければSe9のステップに戻る。Se43のステップで設定されたBETコマンドは、その後のタイマ割込処理(メイン)でサブ制御部91に対して送信される。   In the step of Se39, it is determined whether or not the operation of the single BET switch 5 is detected, that is, whether or not the rising edge indicating the rising of the single BET switch 5 is set. If the operation of the single BET switch 5 is not detected in the step of Se39, the process proceeds to the step of Se47, and if the operation of the single BET switch 5 is detected, the rising edge is cleared (Se40) and set in the RAM 507. With reference to the prescribed number of bets, it is determined whether or not the value of the BET counter is the prescribed number (Se41). If the value of the BET counter is a specified number in the step of Se41, the process returns to the step of Se9. If the value of the BET counter is not the specified number, it is determined whether or not the value of the credit counter is 0 (Se42). If the counter value is 0, the process returns to step Se9. If the value of the credit counter is not 0 in the step of Se42, a BET command indicating that 1 is added to the bet number is set in the normal command transmission buffer (Se43), and 1 is subtracted from the value of the credit counter (Se44). Then, the value of the BET counter is incremented by 1 (Se45), and it is determined whether or not the value of the BET counter is a specified number, that is, whether or not the number of bets serving as a game start condition is set (Se46). If the value of the counter is not a specified number, the process returns to step Se9. The BET command set in the step of Se43 is transmitted to the sub-control unit 91 in the subsequent timer interrupt process (main).

また、Se46のステップにおいてBETカウンタの値が規定数であれば、すなわちゲームの開始条件となる賭数が設定された場合には、Se12のステップに戻り、ゲームの開始条件となる賭数が設定される前に数値データがラッチされていれば、Sa13のステップにて数値データが読み出され、新たな数値データの取込が可能となる。このため、ゲームの開始条件となる賭数が設定されておらず、スタートスイッチ7の操作が無効化されている状態でスタートスイッチ7が操作されたために数値データがラッチされ、新たな数値データの取込が禁止されている状態であっても、ゲームの開始条件となる既定数の賭数が設定され、スタートスイッチ7の操作が有効化された時点でラッチされている数値データがダミーとして読み出され、その後のスタートスイッチ7が操作されたタイミングで新たに数値データをラッチすることが可能となる。   Further, if the value of the BET counter is the prescribed number in the step of Se46, that is, if the betting number that is the game start condition is set, the process returns to the step of Se12 and the betting number that is the game start condition is set. If the numerical data is latched before being performed, the numerical data is read in step Sa13, and new numerical data can be taken in. For this reason, since the number of bets serving as a game start condition is not set and the start switch 7 is operated in a state where the operation of the start switch 7 is invalidated, the numerical data is latched, and the new numerical data Even when the take-in is prohibited, a predetermined number of bets are set as a game start condition, and the numerical data latched when the operation of the start switch 7 is validated is read as a dummy. The numerical data can be newly latched at the timing when the start switch 7 is operated thereafter.

Se47のステップにおいては、MAXBETスイッチ6の操作が検出されているか否か、すなわちMAXBETスイッチ6の立上り示す立上りエッジが設定されているか否かを判定する。Se47のステップにおいてMAXBETスイッチ6の操作が検出されていなければ、Se61のステップに進み、MAXBETスイッチ6の操作が検出されていれば、立上りエッジをクリアし(Se48)、RAM507に設定された賭数の規定数を参照し、BETカウンタの値が規定数であるか否かを判定する(Se49)。Se49のステップにおいてBETカウンタの値が規定数であれば、Se53のステップに進み、BETカウンタの値が規定数でなければ、クレジットカウンタの値が0であるか否かを判定し(Se50)、クレジットカウンタの値が0であれば、Se53のステップに進む。Se50のステップにおいてクレジットカウンタの値が0でなければ、クレジットカウンタの値を1減算し(Se51)、BETカウンタの値を1加算して(Se52)、Se49のステップに戻る。Se53のステップでは、BETカウンタが加算されたか否かを判定し、BETカウンタが加算されていなければ、Se9のステップに戻り、BETカウンタが加算されていれば、加算された数分賭数が加算された旨を示すBETコマンドを通常コマンド送信用バッファに設定し(Se54)、Se55のステップに進む。Se54のステップで設定されたBETコマンドは、その後のタイマ割込処理(メイン)でサブ制御部91に対して送信される。   In the step of Se47, it is determined whether or not the operation of the MAXBET switch 6 is detected, that is, whether or not the rising edge indicating the rising of the MAXBET switch 6 is set. If the operation of the MAXBET switch 6 is not detected in the step of Se47, the process proceeds to the step of Se61. If the operation of the MAXBET switch 6 is detected, the rising edge is cleared (Se48), and the number of bets set in the RAM 507 , It is determined whether or not the value of the BET counter is the specified number (Se49). If the value of the BET counter is the specified number in the step of Se49, the process proceeds to the step of Se53, and if the value of the BET counter is not the specified number, it is determined whether or not the value of the credit counter is 0 (Se50), If the value of the credit counter is 0, the process proceeds to step Se53. If the value of the credit counter is not 0 in the step of Se50, 1 is subtracted from the value of the credit counter (Se51), 1 is added to the value of the BET counter (Se52), and the process returns to the step of Se49. In the step of Se53, it is determined whether or not the BET counter has been added. If the BET counter has not been added, the process returns to the step of Se9, and if the BET counter has been added, the bet number is added by the added number. The BET command indicating that it has been set is set in the normal command transmission buffer (Se54), and the process proceeds to Se55. The BET command set in step Se54 is transmitted to the sub-control unit 91 in the subsequent timer interrupt process (main).

Se55のステップでは、BETカウンタの値が規定数であるか否か、すなわちゲームの開始条件となる賭数が設定されたか否かを判定し、BETカウンタの値が規定数でなければSe9のステップに戻る。また、Se55のステップにおいてBETカウンタの値が規定数であれば、すなわちゲームの開始条件となる賭数が設定された場合には、Se12のステップに戻り、ゲームの開始条件となる賭数が設定される前に数値データがラッチされていれば、Sa13のステップにて数値データが読み出され、新たな数値データの取込が可能となる。このため、ゲームの開始条件となる賭数が設定されておらず、スタートスイッチ7の操作が無効化されている状態でスタートスイッチ7が操作されたために数値データがラッチされ、新たな数値データの取込が禁止されている状態であっても、ゲームの開始条件となる既定数の賭数が設定され、スタートスイッチ7の操作が有効化された時点でラッチされている数値データがダミーとして読み出され、その後のスタートスイッチ7が操作されたタイミングで新たに数値データをラッチすることが可能となる。   In the step of Se55, it is determined whether or not the value of the BET counter is a specified number, that is, whether or not the bet number as a game start condition is set. If the value of the BET counter is not the specified number, the step of Se9 Return to. Further, if the value of the BET counter is the prescribed number in the step of Se55, that is, if the betting number as the game start condition is set, the process returns to the step of Se12 and the betting number as the game start condition is set. If the numerical data is latched before being performed, the numerical data is read in step Sa13, and new numerical data can be taken in. For this reason, since the number of bets serving as a game start condition is not set and the start switch 7 is operated in a state where the operation of the start switch 7 is invalidated, the numerical data is latched, and the new numerical data Even when the take-in is prohibited, a predetermined number of bets are set as a game start condition, and the numerical data latched when the operation of the start switch 7 is validated is read as a dummy. The numerical data can be newly latched at the timing when the start switch 7 is operated thereafter.

Se56のステップにおいては、精算スイッチ10の操作が検出されているか否か、すなわち精算スイッチ10の立上りを示す立上りエッジが設定されているか否かを判定する。Se56のステップにおいて精算スイッチ10の操作が検出されていなければ、Se9のステップに戻り、精算スイッチ10の操作が検出されていれば、立上りエッジをクリアし(Se57)、RAM507にリプレイゲームフラグが設定されているか否かに基づいて当該ゲームがリプレイゲームであるか否かを判定し(Se58)、当該ゲームがリプレイゲームであればSe9のステップに戻る。Se58のステップにおいて当該ゲームがリプレイゲームでなければ、BETカウンタの値が0か否かを判定し(Se59)、BETカウンタの値が0であればSe61のステップに進み、BETカウンタの値が0でなければ、既に設定済み賭数の精算を行なう旨を示す賭数精算フラグをRAM507に設定し(Se60)、Se61のステップに進む。Se61のステップにおいては、ホッパーモータ34を駆動してクレジットカウンタまたはBETカウンタに格納された値分のメダルを払い出す制御、すなわちクレジットとして記憶されているメダルまたは賭数の設定に用いられたメダルを返却する制御が行なわれる精算処理を行なう。そして、Se61のステップにおける精算処理の後、RAM507に設定されている投入不可フラグをクリアして(Se62)、Se9のステップに戻る。   In the step of Se56, it is determined whether or not the operation of the settlement switch 10 has been detected, that is, whether or not a rising edge indicating the rising of the settlement switch 10 has been set. If the operation of the settlement switch 10 is not detected in the step of Se56, the process returns to the step of Se9. If the operation of the settlement switch 10 is detected, the rising edge is cleared (Se57), and the replay game flag is set in the RAM 507. Whether or not the game is a replay game is determined based on whether or not it is played (Se58), and if the game is a replay game, the process returns to step Se9. If the game is not a replay game in the step of Se58, it is determined whether or not the value of the BET counter is 0 (Se59). If the value of the BET counter is 0, the process proceeds to the step of Se61 and the value of the BET counter is 0. Otherwise, a bet amount settlement flag indicating that the already set bet amount is to be settled is set in the RAM 507 (Se60), and the process proceeds to the step of Se61. In step Se61, the hopper motor 34 is driven to pay out medals corresponding to the value stored in the credit counter or BET counter, that is, medals stored as credits or medals used for setting the number of bets. Checkout processing is performed in which the return control is performed. Then, after the settlement process in the step of Se61, the input impossible flag set in the RAM 507 is cleared (Se62), and the process returns to the step of Se9.

図33および図34は、メイン制御部41が一定間隔(0.56msの間隔)で起動処理やゲーム処理に割り込んで実行するタイマ割込処理(メイン)の制御内容を示すフローチャートである。なお、タイマ割込処理(メイン)の実行期間中は自動的に他の割込が禁止される。   FIG. 33 and FIG. 34 are flowcharts showing the control contents of the timer interrupt process (main) executed by the main control unit 41 by interrupting and executing the activation process and the game process at regular intervals (0.56 ms interval). Note that other interrupts are automatically prohibited during the execution period of the timer interrupt process (main).

タイマ割込処理(メイン)においては、まず、使用中のレジスタをスタック領域に退避した後(Sk1)、入力ポートから各種スイッチ類の検出データを入力するポート入力処理を行なう(Sk2)。   In the timer interrupt process (main), first, a register in use is saved in the stack area (Sk1), and then a port input process for inputting detection data of various switches from the input port is performed (Sk2).

次いで、4種類のタイマ割込1〜4から当該タイマ割込処理(メイン)において実行すべきタイマ割込を識別するための分岐用カウンタを1進める(Sk3)。Sk3のステップでは、分岐用カウンタ値が0〜2の場合に1が加算され、カウンタ値が3の場合に0に更新される。すなわち分岐用カウンタ値は、タイマ割込処理(メイン)が実行される毎に、0→1→2→3→0・・・の順番でループする。   Next, the branch counter for identifying the timer interrupt to be executed in the timer interrupt process (main) is advanced by 1 from the four types of timer interrupts 1 to 4 (Sk3). In the step of Sk3, 1 is added when the branch counter value is 0 to 2, and is updated to 0 when the counter value is 3. That is, the branch counter value loops in the order of 0 → 1 → 2 → 3 → 0... Each time the timer interrupt process (main) is executed.

次いで、分岐用カウンタ値を参照して2または3か、すなわちタイマ割込3またはタイマ割込4かを判定し(Sk4)、タイマ割込3またはタイマ割込4ではない場合、すなわちタイマ割込1またはタイマ割込2の場合には、リールモータ32L、32C、32Rの始動時または定速回転中か否かを確認し、リールモータ32L、32C、32Rの始動時または定速回転中であれば、後述するSk8のモータステップ処理において変更した位相信号データや後述するSk21の最終停止処理において変更した位相信号データを出力するモータ位相信号出力処理を実行する(Sk5)。   Next, referring to the counter value for branching, it is determined whether it is 2 or 3, that is, timer interrupt 3 or timer interrupt 4 (Sk4), and if it is not timer interrupt 3 or timer interrupt 4, that is, timer interrupt In the case of 1 or timer interrupt 2, it is checked whether the reel motors 32L, 32C, 32R are started or whether they are rotating at a constant speed, and whether the reel motors 32L, 32C, 32R are started or are rotating at a constant speed. For example, the motor phase signal output process for outputting the phase signal data changed in the motor step process of Sk8 described later and the phase signal data changed in the final stop process of Sk21 described later is executed (Sk5).

次いで、分岐用カウンタ値を参照して1か否か、すなわちタイマ割込2か否かを判定し(Sk7)、タイマ割込2ではない場合、すなわちタイマ割込1の場合には、リールモータ32L、32C、32Rの始動時のステップ時間間隔の制御を行なうリール始動処理(Sk8)、リールモータ32L、32C、32Rの位相信号データの変更を行なうモータステップ処理(Sk8)、リールモータ32L、32C、32Rの停止後、一定時間経過後に位相信号を1相励磁に変更するモータ位相信号スタンバイ処理(Sk9)を順次実行した後、Sk1においてスタック領域に退避したレジスタを復帰し(Sk19)、割込前の処理に戻る。   Next, referring to the branch counter value, it is determined whether or not it is 1, that is, timer interrupt 2 (Sk7). If it is not timer interrupt 2, that is, timer interrupt 1, reel motor Reel start processing (Sk8) for controlling the step time interval when starting 32L, 32C, 32R, motor step processing (Sk8) for changing phase signal data of the reel motors 32L, 32C, 32R, reel motors 32L, 32C After the stop of 32R, the motor phase signal standby process (Sk9) for changing the phase signal to one-phase excitation after a certain time has been sequentially executed, and then the register saved in the stack area at Sk1 is restored (Sk19), Return to the previous process.

また、Sk6のステップにおいてタイマ割込2の場合には、各種表示器をダイナミック点灯させるLEDダイナミック表示処理(Sk10)、各種LED等の点灯信号等のデータを出力ポートへ出力する制御信号等出力処理(Sk11)、各種時間カウンタを更新する時間カウンタ更新処理(Sk12)、通常コマンド送信用バッファに格納されているコマンドまたは操作検出コマンドをサブ制御部91に対して送信するコマンド送信処理(Sk13)、外部出力信号を更新する外部出力信号更新処理(Sk14)を順次実行した後、Sk1においてスタック領域に退避したレジスタを復帰し(Sk19)、割込前の処理に戻る。   In the case of timer interrupt 2 in the step of Sk6, LED dynamic display processing for dynamically lighting various indicators (Sk10), control signal output processing for outputting data such as lighting signals of various LEDs to the output port, etc. (Sk11), a time counter update process (Sk12) for updating various time counters, a command transmission process (Sk13) for transmitting a command or an operation detection command stored in the normal command transmission buffer to the sub-control unit 91, After sequentially executing the external output signal update process (Sk14) for updating the external output signal, the register saved in the stack area at Sk1 is restored (Sk19), and the process returns to the process before the interrupt.

また、Sk4のステップにおいてタイマ割込3またはタイマ割込4であれば、更に、分岐用カウンタ値を参照して3か否か、すなわちタイマ割込4か否かを判定し(Sk15)、タイマ割込4でなければ、すなわちタイマ割込3であれば、回転中のリール2L、2C、2Rの原点通過(リール基準位置の通過)をチェックし、リール回転エラーの発生を検知するとともに、停止準備が完了しているか(停止準備完了コードが設定されているか)を確認し、停止準備が完了しており、かつ定速回転中であれば、回転中のリールに対応するストップスイッチの操作を有効化する原点通過時処理(Sk16)、スイッチ類の検出状態に変化があったか否かを判定するスイッチ入力判定処理(Sk17)、乱数値レジスタR1Dから数値データを読み出して乱数値格納ワークに格納する乱数値読出処理(Sk18)を順次実行した後、Sk1においてスタック領域に退避したレジスタを復帰し(Sk19)、割込前の処理に戻る。   If it is timer interrupt 3 or timer interrupt 4 in the step of Sk4, it is further determined by referring to the branch counter value whether it is 3 or not, that is, timer interrupt 4 (Sk15). If it is not interrupt 4, that is, if it is timer interrupt 3, the passing of the origin of the rotating reels 2L, 2C, 2R (pass of the reel reference position) is checked, and the occurrence of a reel rotation error is detected and stopped. Check if the preparation is complete (whether the stop preparation completion code is set). If the stop preparation is complete and the motor is rotating at a constant speed, operate the stop switch corresponding to the rotating reel. The origin passing process to be validated (Sk16), the switch input judgment process (Sk17) to judge whether or not the detection state of the switches has changed, and the numerical data is read from the random value register R1D After executing random number reading process to be stored in the random number storing work the (SK18) sequentially, and restores the registers saved in the stack area in Sk1 (Sk19), return to the process before the interrupt process.

また、Sk15のステップにおいてタイマ割込4であれば、ストップスイッチ8L、8C、8Rの検出に伴って停止リールのワークに停止操作位置が格納されたときに、停止リールのワークに格納された停止操作位置から停止位置を決定し、何ステップ後に停止すればよいかを算出する停止スイッチ処理(Sk20)、停止スイッチ処理で算出された停止までのステップ数をカウントして、停止する時期になったら2相励磁によるブレーキを開始する停止処理(Sk21)、停止処理においてブレーキを開始してから一定時間後に3相励磁とする最終停止処理(Sk22)を順次実行した後、Sk1においてスタック領域に退避したレジスタを復帰し(Sk19)、割込前の処理に戻る。   If the timer interrupt is 4 in the step of Sk15, the stop stored in the work on the stop reel is stored when the stop operation position is stored in the work on the stop reel with the detection of the stop switches 8L, 8C, 8R. A stop switch process (Sk20) for calculating the stop position after determining the stop position from the operation position and counting the number of steps until the stop calculated in the stop switch process, and when it is time to stop A stop process (Sk21) for starting braking by two-phase excitation and a final stop process (Sk22) for three-phase excitation after a certain time from the start of braking in the stop process are sequentially executed, and then saved in the stack area at Sk1. The register is restored (Sk19), and the process before the interruption is returned.

図35は、メイン制御部41が前述したタイマ割込処理(メイン)のタイマ割込3内において実行する乱数値読出処理の制御内容を示すフローチャートである。   FIG. 35 is a flowchart showing the control content of the random number read process executed by the main control unit 41 in the timer interrupt 3 of the timer interrupt process (main) described above.

乱数値読出処理では、乱数ラッチフラグレジスタの値に基づいて数値データがラッチされているか否か、すなわち乱数値レジスタ559Aに数値データが取り込まれているか否かを判定し(Sk101)、数値データがラッチされていなければ、乱数値読出処理を終了して図34に示すフローチャートに復帰する。   In the random value reading process, it is determined whether or not the numerical data is latched based on the value of the random number latch flag register, that is, whether or not the numerical data is taken into the random value register 559A (Sk101). If not latched, the random number reading process is terminated and the process returns to the flowchart shown in FIG.

Sk101のステップにおいて数値データがラッチされていれば乱数値レジスタ559Aから数値データを読み出し(Sk102)、乱数値格納ワークに格納されている値を、Sk102において読み出した数値データに更新し(Sk103)、乱数値読出処理を終了して図34に示すフローチャートに復帰する。   If the numerical data is latched in the step of Sk101, the numerical data is read from the random value register 559A (Sk102), and the value stored in the random value storage work is updated to the numerical data read in Sk102 (Sk103). The random number reading process is terminated and the process returns to the flowchart shown in FIG.

なお、Sk102のステップにおいて乱数値レジスタ559から数値データが読み出されると乱数ラッチフラグレジスタがクリアされ、乱数値レジスタ559への新たな数値データの取込が許可されることとなる。   When numerical data is read from the random value register 559 in the step of Sk102, the random number latch flag register is cleared and new numerical data is accepted into the random value register 559.

図36は、メイン制御部41が前述したタイマ割込処理(メイン)のタイマ割込3内において実行するスイッチ入力判定処理の制御内容を示すフローチャートである。   FIG. 36 is a flowchart showing the control contents of the switch input determination process executed by the main control unit 41 in the timer interrupt 3 of the timer interrupt process (main) described above.

スイッチ入力判定処理では、ポート入力処理において取得した各スイッチの入力データを更新し(Sk201)、前回の入力データが示す検出状態と今回の入力データが示す検出状態とが同じであるか否かを判定し(Sk202)、前回の入力データが示す検出状態と今回の入力データが示す検出状態とが同じでなければ、図34のフローチャートに復帰する。   In the switch input determination process, the input data of each switch acquired in the port input process is updated (Sk201), and it is determined whether or not the detection state indicated by the previous input data is the same as the detection state indicated by the current input data. If the determination is made (Sk202) and the detection state indicated by the previous input data is not the same as the detection state indicated by the current input data, the flow returns to the flowchart of FIG.

Sk202のステップにおいて、前回の入力データが示す検出状態と今回の入力データが示す検出状態とが同じ場合、すなわち2.24msの間同じ検出状態を示している場合には、該当するスイッチの確定データを更新し(Sk203)、Sk204のステップに進む。Sk203のステップでは、今回の確定データを前回の確定データに移動し、前回と今回が同じと判定された入力データが示す検出状態を今回の確定データとして設定する。   In the step of Sk202, when the detection state indicated by the previous input data is the same as the detection state indicated by the current input data, that is, when the same detection state is indicated for 2.24 ms, the determined data of the corresponding switch. Is updated (Sk203), and the process proceeds to Step S204. In step S203, the current confirmed data is moved to the previous confirmed data, and the detection state indicated by the input data determined to be the same as the previous time is set as the current confirmed data.

Sk204のステップでは、更新後の前回の確定データと今回の確定データとが同じか否かを判定し、前回の確定データと今回の確定データとが同じであれば、図34のフローチャートに復帰する。   In the step of Step 204, it is determined whether or not the previous confirmed data after updating and the current confirmed data are the same. If the previous confirmed data and the current confirmed data are the same, the process returns to the flowchart of FIG. .

Sk204のステップにおいて前回の確定データと今回の確定データとが同じでなければ、前回の確定データと今回の確定データとが異なるスイッチがOFFからONに変化したかを判定し(Sk205)、OFFからONに変化した場合には、さらに他のスイッチがONか否かを判定し(Sk206)、他のスイッチがONであればSk208のステップに進み、他のスイッチがONでなければ、該当するスイッチがOFFからONに変化した旨を示す立上りエッジを設定し(Sk207)、Sk208のステップに進む。   If the previous confirmed data and the current confirmed data are not the same in the step of Sk204, it is determined whether a switch in which the previous confirmed data and the current confirmed data are different has changed from OFF to ON (Sk205). If it has changed to ON, it is further determined whether or not another switch is ON (Sk206). If the other switch is ON, the process proceeds to step Sk208. If the other switch is not ON, the corresponding switch is determined. Is set to the rising edge indicating that the value has changed from OFF to ON (Sk207), and the process proceeds to Step S208.

Sk208のステップでは、前回の確定データと今回の確定データとが異なるスイッチがONからOFFに変化したかを判定し、ONからOFFに変化した場合には、他のスイッチがONか否かを判定し(Sk209)、他のスイッチがONであれば図34のフローチャートに復帰し、他のスイッチがONでなければ、該当するスイッチがONからOFFに変化した旨を示す立下りエッジを設定し(Sk210)、図34のフローチャートに復帰する。   In step Sk208, it is determined whether a switch in which the final determined data is different from the final determined data has changed from ON to OFF. If the switch has changed from ON to OFF, it is determined whether other switches are ON. If the other switch is ON, the process returns to the flowchart of FIG. 34. If the other switch is not ON, a falling edge indicating that the corresponding switch has changed from ON to OFF is set ( Sk210), the process returns to the flowchart of FIG.

図37は、メイン制御部41が前述したタイマ割込処理(メイン)のタイマ割込2内において実行するコマンド送信処理の制御内容を示すフローチャートである。   FIG. 37 is a flowchart showing the control contents of the command transmission process executed by the main control unit 41 in the timer interrupt 2 of the timer interrupt process (main) described above.

コマンド送信処理では、まず、操作検出コマンドの送信時期か否かを判定するためにRAM41cに割り当てられた送信カウンタの値を1減算し(Sk131)、送信カウンタの値が0か否かを判定する(Sk132)。   In the command transmission process, first, 1 is subtracted from the value of the transmission counter assigned to the RAM 41c in order to determine whether it is the transmission timing of the operation detection command (Sk131), and it is determined whether the value of the transmission counter is 0 or not. (Sk132).

Sk132のステップにおいて送信カウンタの値が0ではない場合には、Sk137のステップに進み、送信カウンタの値が0の場合、すなわち操作検出コマンドの送信時期であれば、送信カウンタに5を設定し(Sk133)、各スイッチの確定データを取得し、各スイッチの検出状態(on/off)をそれぞれ特定可能な操作検出コマンドを作成し(Sk134)、作成した操作検出コマンドを特定コマンド送信用バッファに設定する(Sk135)。そして、特定コマンド送信用バッファのアドレスを設定し(Sk136)、Sk139のステップに進む。   When the value of the transmission counter is not 0 in the step of Sk132, the process proceeds to the step of Sk137, and when the value of the transmission counter is 0, that is, when the operation detection command is transmitted, 5 is set in the transmission counter ( Sk133) Acquires definite data of each switch, creates an operation detection command that can specify the detection state (on / off) of each switch (Sk134), and sets the created operation detection command in the specific command transmission buffer (Sk135). Then, the address of the specific command transmission buffer is set (Sk136), and the process proceeds to Step S139.

Sk137のステップでは、通常コマンド送信用バッファに未送信のコマンドがあるか否かを判定し、未送信のコマンドがなければ、コマンド送信処理を終了し、図33に示すフローチャートに復帰する。   In step Sk137, it is determined whether or not there is an untransmitted command in the normal command transmission buffer. If there is no untransmitted command, the command transmission process is terminated and the process returns to the flowchart shown in FIG.

Sk137のステップにおいて通常コマンド送信用バッファに未送信のコマンドがあれば、通常コマンド送信用バッファの送信ポインタが示すアドレスを設定し(Sk138)、Sk139のステップに進む。   If there is an untransmitted command in the normal command transmission buffer in step Sk137, the address indicated by the transmission pointer of the normal command transmission buffer is set (Sk138), and the process proceeds to step Sk139.

Sk139のステップでは、Sk136またはSk138ステップにおいて設定されたアドレスに格納されているコマンドを読み出し、サブCPU91aに対して送信し、コマンド送信処理を終了して、図33に示すフローチャートに復帰する。   In step Sk139, the command stored in the address set in step Sk136 or Sk138 is read, transmitted to the sub CPU 91a, the command transmission process is terminated, and the process returns to the flowchart shown in FIG.

図38は、電断検出回路48からの電圧低下信号が入力されたときにメイン制御部41が起動処理やゲーム処理に割り込んで実行する電断割込処理(メイン)の制御内容を示すフローチャートである。なお、電断割込処理(メイン)の開始後、自動的に他の割込が禁止され、元の処理に復帰する場合以外は割込が許可されることはない。   FIG. 38 is a flowchart showing the control content of the power interruption interrupt process (main) executed by the main control unit 41 interrupting the activation process and the game process when the voltage drop signal from the power interruption detection circuit 48 is input. is there. It should be noted that after the interruption interrupt process (main) is started, other interrupts are automatically prohibited, and interrupts are not permitted except when returning to the original process.

電断割込処理(メイン)においては、まず、使用している可能性がある全てのレジスタをスタック領域に退避する(Sm1)。なお、前述したIレジスタおよびIYレジスタの値は使用されているが、起動時の初期化に伴って常に同一の固定値が設定されるため、ここでは保存されない。   In the power interruption interrupt process (main), first, all registers that may be in use are saved in the stack area (Sm1). Although the values of the I register and IY register described above are used, they are not stored here because the same fixed value is always set with the initialization at the time of startup.

次いで、入力ポートから電圧低下信号の検出データを取得し、電圧低下信号が入力されているか否かを判定する(Sm2)。この際、電圧低下信号が入力されていなければ、Sm1においてスタック領域に退避したレジスタを復帰し(Sm3)、割込前の処理に戻る。この際、自動的に割込が許可される。   Next, the detection data of the voltage drop signal is acquired from the input port, and it is determined whether or not the voltage drop signal is input (Sm2). At this time, if the voltage drop signal is not inputted, the register saved in the stack area in Sm1 is restored (Sm3), and the process before the interruption is returned. At this time, interruption is automatically permitted.

また、Sm2のステップにおいて電圧低下信号が入力されていれば、破壊診断用データ(本実施の形態では、5A(H))をセットして(Sm4)、全ての出力ポートを初期化する(Sm5)。次いでRAM507の全ての格納領域(未使用領域および未使用スタック領域を含む)の排他的論理和が0になるようにRAMパリティ調整用データを計算してセットし(Sm6)、RAM507へのアクセスを禁止する(Sm7)。   If a voltage drop signal is input in step Sm2, destruction diagnosis data (in this embodiment, 5A (H)) is set (Sm4), and all output ports are initialized (Sm5). ). Next, RAM parity adjustment data is calculated and set so that the exclusive OR of all storage areas (including unused areas and unused stack areas) in RAM 507 becomes 0 (Sm6), and access to RAM 507 is performed. Prohibited (Sm7).

そして、電圧低下信号が入力されているか否かの判定(Sm8、なお、Sm8は、Sm2と同様の処理である)を除いて、何らの処理も行なわないループ処理に入る。すなわち、そのまま電圧が低下すると内部的に動作停止状態になる。よって、電断時に確実にメイン制御部41は動作停止する。また、このループ処理において、電圧が回復し、ステップSm8のステップにおいて、電圧低下信号が入力されていないと判定されたときには、乱数ラッチフラグをクリアするための処理を実行する。   Then, except for the determination of whether or not the voltage drop signal is input (Sm8, Sm8 is the same process as Sm2), a loop process in which no process is performed is entered. That is, when the voltage decreases as it is, the operation is stopped internally. Therefore, the main control unit 41 reliably stops operation when power is interrupted. In this loop process, when the voltage is recovered and it is determined in step Sm8 that the voltage drop signal is not input, a process for clearing the random number latch flag is executed.

すなわち、乱数ラッチフラグレジスタRDFMのビット番号[0]に格納される乱数ラッチフラグデータRDFM0のビット値が“1”であるか否かに応じて、乱数値レジスタR1Dに対応する乱数ラッチフラグがオンであるか否かを判定する(ステップSm9)。そして、この乱数ラッチフラグがオンであれば、乱数値レジスタR1Dの読み出しを行なうことにより、乱数ラッチフラグデータRDFM0のビット値を“0”にクリアして、対応する乱数ラッチフラグをオフ状態とする(ステップSm10)。   That is, the random number latch flag corresponding to the random value register R1D is turned on according to whether or not the bit value of the random number latch flag data RDFM0 stored in the bit number [0] of the random number latch flag register RDFM is “1”. It is determined whether or not there is (step Sm9). If the random number latch flag is on, reading the random number value register R1D clears the bit value of the random number latch flag data RDFM0 to “0” and sets the corresponding random number latch flag to the off state (step) Sm10).

また、ステップSm9にて乱数ラッチフラグデータRDFM0で指定される乱数ラッチフラグがオフである場合や、ステップSm10の処理を実行した後には、乱数ラッチフラグレジスタRDFMのビット番号[1]に格納される乱数ラッチフラグデータRDFM1のビット値が“1”であるか否かに応じて、乱数値レジスタR2Dに対応する乱数ラッチフラグがオンであるか否かを判定する(ステップSm11)。このとき、乱数ラッチフラグがオンであれば、乱数値レジスタR2Dの読み出しを行なうことにより、乱数ラッチフラグデータRDFM1のビット値を“0”にクリアして、対応する乱数ラッチフラグをオフ状態とする(ステップSm12)。   Further, when the random number latch flag specified by the random number latch flag data RDFM0 is OFF in step Sm9, or after executing the process of step Sm10, the random number stored in the bit number [1] of the random number latch flag register RDFM. It is determined whether or not the random number latch flag corresponding to the random value register R2D is ON according to whether or not the bit value of the latch flag data RDFM1 is “1” (step Sm11). At this time, if the random number latch flag is on, the random number value register R2D is read to clear the bit value of the random number latch flag data RDFM1 to “0”, and the corresponding random number latch flag is turned off (step) Sm12).

こうしたステップSm10やステップSm12の処理により、乱数ラッチフラグがオフ状態とされて、乱数値レジスタR1Dや乱数値レジスタR2Dに新たな数値データの格納が許可された状態に設定できる。なお、ステップSm10やステップSm12の処理により乱数値レジスタR1Dや乱数値レジスタR2Dから読み出された数値データは、内部抽選には使用せず、そのまま破棄(消去)すればよい。   By the processing of step Sm10 and step Sm12, the random number latch flag is turned off, and the random number value register R1D and the random number value register R2D can be set to a state where storage of new numerical data is permitted. Note that the numerical data read from the random value register R1D or the random value register R2D by the processing of step Sm10 or step Sm12 may be discarded (erased) as it is without being used for the internal lottery.

また、ステップSm9〜ステップSm12の処理に代えて、乱数ラッチフラグデータRDFM0や乱数ラッチフラグデータRDFM1の値にかかわらず、乱数値レジスタR1Dと乱数値レジスタR2Dの読み出しを行なうことにより、各乱数ラッチフラグをオフ状態とする処理が実行されてもよい。   Further, instead of the processing of step Sm9 to step Sm12, regardless of the values of the random number latch flag data RDFM0 and the random number latch flag data RDFM1, the random number value register R1D and the random number value register R2D are read to thereby set the random number latch flags. Processing to turn off may be performed.

ステップSm11にて乱数ラッチフラグデータRDFM1で指定される乱数ラッチフラグがオフであるときや、ステップSm12の処理を実行した後には、前述した起動処理(メイン)が実行され、RAMパリティが0となり、かつ破壊診断用データが正常であれば、元の処理に復帰することとなる。   When the random number latch flag specified by the random number latch flag data RDFM1 is OFF in step Sm11, or after executing the process of step Sm12, the above-described activation process (main) is executed, the RAM parity becomes 0, and If the destructive diagnosis data is normal, the process returns to the original process.

このように、電源供給が再開されて、遊技制御の実行が開始されるときには、すでにステップSm10やSm12の処理において、乱数値レジスタから数値データを読出可能であり、各乱数ラッチフラグをオフ状態に設定することができる。これにより、電源遮断が発生したときの電源電圧が不安定な状態で誤って乱数値レジスタに格納された数値データが、乱数値として取得されてしまうことを防止できる。   As described above, when the power supply is resumed and the execution of the game control is started, the numerical data can already be read from the random value register in the processing of steps Sm10 and Sm12, and each random number latch flag is set to the off state. can do. Thereby, it is possible to prevent the numerical data stored in the random value register by mistake in a state where the power supply voltage is unstable when the power interruption occurs, from being acquired as a random value.

なお、本実施の形態では、RAM507へのアクセスを禁止した後、電圧低下信号の出力状況を監視して、電圧低下信号が入力されなくなった場合に電圧の回復を判定し、起動処理(メイン)へ移行するようになっているが、ループ処理において何らの処理も行なわず、ループ処理が行なわれている間に、電圧が回復してリセット回路49からリセット信号が入力されたことや、電圧が低下しないままウォッチドッグタイマ(WDT)のタイムアウト信号が発生したことに基づいて、起動処理(メイン)へ移行するようにしてもよい。この場合においても、起動処理(メイン)へ移行するまでに、Sm9〜Sm12と同様の処理を行なうように構成してもよい(図72参照)。   In this embodiment, after prohibiting access to the RAM 507, the output state of the voltage drop signal is monitored, and when the voltage drop signal is not input, it is determined whether the voltage is restored, and the startup process (main) However, no processing is performed in the loop processing. While the loop processing is being performed, the voltage is recovered and the reset signal is input from the reset circuit 49, or the voltage is Based on the occurrence of the watchdog timer (WDT) time-out signal without decreasing, the process may be shifted to the activation process (main). Even in this case, the same processing as Sm9 to Sm12 may be performed before the start processing (main) is started (see FIG. 72).

なお、前述したように、電源投入時において、設定キースイッチ37がON状態であるときに、前面扉1bが閉状態となっており不正行為が行なわれていると判定されたとき(図23のSa27bでNO)には、正規に設定変更状態に移行されるまで(図28のSc15)、遊技が不能動化される。   As described above, when the setting key switch 37 is in the ON state when the power is turned on, when it is determined that the front door 1b is in the closed state and fraud is being performed (FIG. 23). In NO at Sa27b, the game is disabled until it is properly shifted to the setting change state (Sc15 in FIG. 28).

本実施の形態のスロットマシン1におけるメイン制御部41は、電源投入時や、システムリセットの発生後における再起動時などに、CPU505がROM506などに記憶されているセキュリティチェックプログラム506Aを読み出して実行することにより、セキュリティモードとなる。   In the slot machine 1 of the present embodiment, the main control unit 41 reads and executes the security check program 506A stored in the ROM 506 or the like when the power is turned on or when the system is restarted after occurrence of a system reset. Thus, the security mode is set.

このときには、セキュリティチェックプログラム506Aに対応した処理としてセキュリティチェック処理が実行される。ここで、メイン制御部41がセキュリティモードとなるセキュリティ時間は、ROM506のプログラム管理エリアに記憶されているセキュリティ時間設定KSESのビット番号[2−0]やビット番号[4−3]に予め格納されたビット値に応じて、一定の固定時間とは異なる時間成分を含むことができる。   At this time, a security check process is executed as a process corresponding to the security check program 506A. Here, the security time when the main control unit 41 enters the security mode is stored in advance in the bit number [2-0] or the bit number [4-3] of the security time setting KSES stored in the program management area of the ROM 506. Depending on the bit value, a time component different from the fixed time can be included.

たとえば、セキュリティ時間設定KSESのビット番号[2−0]におけるビット値が“000”以外の値であれば、図10(D)に示す設定内容に対応して、固定時間に加えて予め選択可能な複数の延長時間のいずれかを、セキュリティ時間に含まれる時間成分として設定することができる。また、セキュリティ時間設定KSESのビット番号[4−3]におけるビット値が“00”以外の値であれば、図10(C)に示すショートモード又はロングモードに対応して、システムリセットや電源投入がなされるごとに所定の時間範囲で変化する可変設定時間を、セキュリティ時間に含まれる時間成分として設定することができる。   For example, if the bit value in the bit number [2-0] of the security time setting KSES is a value other than “000”, it can be selected in advance in addition to the fixed time corresponding to the setting content shown in FIG. Any one of a plurality of extended times can be set as a time component included in the security time. If the bit value in the bit number [4-3] of the security time setting KSES is a value other than “00”, the system reset or power-on is performed corresponding to the short mode or the long mode shown in FIG. A variable setting time that changes in a predetermined time range each time is performed can be set as a time component included in the security time.

こうして設定されたセキュリティ時間が経過するまでは、ROM506に記憶されているユーザプログラムの実行が開始されない。そして、乱数回路509による乱数値となる数値データの生成動作も、メイン制御部41がセキュリティモード中である期間では、開始されないようにすればよい。これにより、電源投入やシステムリセット等による動作開始タイミングから、乱数回路509の動作開始タイミングや更新される数値データなどを特定することが困難になり、プログラムの解析結果に基づく狙い撃ちや、いわゆる「ぶら下げ基板」を接続して所定タイミングで不正信号を入力することで、不正に特別役を当選させるなどの行為を、確実に防止することができる。   Until the security time set in this way elapses, the execution of the user program stored in the ROM 506 is not started. Then, the operation of generating numerical data to be a random number value by the random number circuit 509 may not be started during the period in which the main control unit 41 is in the security mode. This makes it difficult to specify the operation start timing of the random number circuit 509 and the numerical data to be updated from the operation start timing due to power-on, system reset, and so on. By connecting the “board” and inputting an illegal signal at a predetermined timing, it is possible to reliably prevent acts such as illegally winning a special role.

一例として、スロットマシン1の機種毎に、セキュリティ時間設定KSESのビット番号[2−0]におけるビット値を異なる値に設定する。この場合には、セキュリティモードの延長時間を、スロットマシン1の機種毎に異ならせることができ、スロットマシン1の動作開始タイミングから乱数回路509の動作開始タイミングを特定することが困難になる。また、セキュリティ時間設定KSESのビット番号[4−3]におけるビット値を“01”又は“10”に設定することにより、可変設定時間を、システムリセット毎に異ならせることができる。これにより、スロットマシン1の動作開始タイミングから乱数回路509の動作開始タイミングを特定することは著しく困難になる。   As an example, the bit value in the bit number [2-0] of the security time setting KSES is set to a different value for each model of the slot machine 1. In this case, the extension time of the security mode can be made different for each model of the slot machine 1, and it becomes difficult to specify the operation start timing of the random number circuit 509 from the operation start timing of the slot machine 1. Further, by setting the bit value in the bit number [4-3] of the security time setting KSES to “01” or “10”, the variable setting time can be varied for each system reset. This makes it extremely difficult to specify the operation start timing of the random number circuit 509 from the operation start timing of the slot machine 1.

図39は、メイン制御部41に内蔵された乱数回路509の動作を説明するためのタイミングチャートである。また、図39(A)では、遊技制御基板40に搭載された制御用クロック生成回路42により生成される制御用クロックCCLKを示している。図39(B)では、乱数用クロック生成回路43により生成される乱数用クロックRCLKを示している。図39(A)および(B)に示すように、制御用クロックCCLKの発振周波数と、乱数用クロックRCLKの発振周波数とは、互いに異なる周波数となっており、また、いずれか一方の発振周波数が他方の発振周波数の整数倍になることがない。   FIG. 39 is a timing chart for explaining the operation of the random number circuit 509 built in the main control unit 41. FIG. 39A shows the control clock CCLK generated by the control clock generation circuit 42 mounted on the game control board 40. FIG. 39B shows the random number clock RCLK generated by the random number clock generation circuit 43. As shown in FIGS. 39A and 39B, the oscillation frequency of the control clock CCLK and the oscillation frequency of the random number clock RCLK are different from each other, and any one of the oscillation frequencies is It does not become an integral multiple of the other oscillation frequency.

図39(B)に示すように、乱数用クロックRCLKは、タイミングT10,T11,T12,…においてローレベルからハイレベルに立ち上がる。そして、乱数用クロックRCLKは、メイン制御部41の乱数用外部クロック端子ERCに供給され、図12に示す乱数回路509が備えるクロック用フリップフロップ552におけるクロック端子CKに入力される。クロック用フリップフロップ552は、逆相出力端子(反転出力端子)QバーからD入力端子へとフィードバックされるラッチ用クロックRC0を、クロック端子CKに入力される乱数用クロックRCLKの立上りエッジに応答して取り込み(ラッチして)、正相出力端子(非反転出力端子)Qから乱数更新クロックRGKとして出力する。これにより、乱数更新クロックRGKは、図39(C)に示すように、タイミングT10,T12,T14,…において、ローレベルからハイレベルへと立上り、乱数用クロックRCLKの発振周波数の1/2の発振周波数を有する信号となる。たとえば、乱数用クロックRCLKの発振周波数が20MHzであれば、乱数更新クロックRGKの発振周波数は10MHzとなる。そして、乱数用クロックRCLKの発信周波数は制御用クロックCCLKの発振周波数の整数倍にも整数分の1にもならないことから、乱数更新クロックRGKの発振周波数は、制御用クロックCCLKの発振周波数とは異なる周波数となる。乱数生成回路553は、たとえば乱数更新クロックRGKの立上りエッジに応答して、カウント値順列RCNにおける数値データを更新する。乱数列変更回路555は、乱数列変更設定回路556による乱数更新規則の設定に基づき、乱数生成回路553から出力されたカウント値順列RCNにおける数値データの更新順を変更したものを、乱数列RSNとして出力する。こうして、乱数列RSNにおける数値データは、たとえば図39(D)に示すように、乱数更新クロックRGKの立上りエッジなどに応答して更新される。   As shown in FIG. 39B, the random number clock RCLK rises from a low level to a high level at timings T10, T11, T12,. The random number clock RCLK is supplied to the random number external clock terminal ERC of the main control unit 41 and is input to the clock terminal CK in the clock flip-flop 552 provided in the random number circuit 509 shown in FIG. The clock flip-flop 552 responds to the rising edge of the random number clock RCLK input to the clock terminal CK with the latch clock RC0 fed back from the negative phase output terminal (inverted output terminal) Q bar to the D input terminal. Are taken in (latched) and output as a random number update clock RGK from the positive phase output terminal (non-inverted output terminal) Q. Thus, as shown in FIG. 39C, the random number update clock RGK rises from the low level to the high level at the timings T10, T12, T14,..., And is half the oscillation frequency of the random number clock RCLK. The signal has an oscillation frequency. For example, when the oscillation frequency of the random number clock RCLK is 20 MHz, the oscillation frequency of the random number update clock RGK is 10 MHz. Since the oscillation frequency of the random number clock RCLK is neither an integer multiple nor a fraction of the oscillation frequency of the control clock CCLK, the oscillation frequency of the random number update clock RGK is the oscillation frequency of the control clock CCLK. Different frequency. The random number generation circuit 553 updates the numerical data in the count value permutation RCN in response to, for example, the rising edge of the random number update clock RGK. The random number sequence change circuit 555 changes the numerical data update order in the count value permutation RCN output from the random number generation circuit 553 based on the setting of the random number update rule by the random number sequence change setting circuit 556 as a random number sequence RSN. Output. Thus, the numerical data in the random number sequence RSN is updated in response to the rising edge of the random number update clock RGK, for example, as shown in FIG.

クロック用フリップフロップ552から出力されるラッチ用クロックRC0は、乱数更新クロックRGKの反転信号となり、その発振周波数は乱数更新クロックRGKの発振周波数と同一で、その位相は乱数更新クロックRGKの位相とπ(=180°)だけ異なる。ラッチ用クロックRC0は、分岐点BR1にてラッチ用クロックRC1とラッチ用クロックRC2とに分岐される。したがって、たとえば図39(E)に示すように、各ラッチ用クロックRC0、RC1、RC2はいずれも、共通の周期で信号状態が変化する発振信号となる。ラッチ用クロックRC1は、ラッチ用フリップフロップ557Aのクロック端子CKに入力される。ラッチ用クロックRC2は、ラッチ用フリップフロップ557Bのクロック端子CKに入力される。   The latch clock RC0 output from the clock flip-flop 552 is an inverted signal of the random number update clock RGK, the oscillation frequency is the same as the oscillation frequency of the random number update clock RGK, and its phase is the same as the phase of the random number update clock RGK and π It differs by (= 180 °). The latch clock RC0 is branched into a latch clock RC1 and a latch clock RC2 at a branch point BR1. Therefore, for example, as shown in FIG. 39E, each of the latch clocks RC0, RC1, and RC2 becomes an oscillation signal whose signal state changes in a common cycle. The latch clock RC1 is input to the clock terminal CK of the latch flip-flop 557A. The latch clock RC2 is input to the clock terminal CK of the latch flip-flop 557B.

ラッチ用フリップフロップ557Aは、ラッチ用クロックRC1の立上りエッジに応答して、スタートスイッチ7から伝送されて入力ポートP0に供給されたゲーム開始信号SS1を取り込み(ラッチして)、ゲーム開始時ラッチ信号SL1として出力端子Qから出力する。そして、乱数ラッチセレクタ558Aにおける取込方法が入力ポートP0への信号入力に指定されていれば、ゲーム開始時ラッチ信号SL1が乱数ラッチ信号LL1として出力される。これにより、たとえば図39(F)に示すようなタイミングでオフ状態(ローレベル)とオン状態(ハイレベル)とで信号状態が変化するゲーム開始信号SS1は、ラッチ用クロックRC1が立ち上がるタイミングT11、T13、T15、…にてラッチ用フリップフロップ557Aに取り込まれた後、図39(G)に示すようなタイミングT11、T13で信号状態がオフ状態とオン状態とで変化する乱数ラッチ信号LL1となって、乱数ラッチセレクタ558Aから出力される。   The latch flip-flop 557A takes in (latches) the game start signal SS1 transmitted from the start switch 7 and supplied to the input port P0 in response to the rising edge of the latch clock RC1, and latches the game start signal. Output from the output terminal Q as SL1. If the fetching method in random number latch selector 558A is designated as signal input to input port P0, game start latch signal SL1 is output as random number latch signal LL1. Thereby, for example, a game start signal SS1 whose signal state changes between an off state (low level) and an on state (high level) at the timing shown in FIG. 39F is a timing T11 at which the latch clock RC1 rises. After being fetched into the latching flip-flop 557A at T13, T15,..., The random number latch signal LL1 whose signal state changes between the off state and the on state at timings T11 and T13 as shown in FIG. And output from the random number latch selector 558A.

乱数値レジスタR1Dとなる乱数値レジスタ559Aは、乱数列変更回路555から出力される乱数列RSNにおける数値データを、乱数ラッチセレクタ558Aからクロック端子へと入力される乱数ラッチ信号LL1の立上りエッジに応答して取り込み(ラッチして)、記憶データとなる数値データを更新する。   The random value register 559A serving as the random value register R1D responds to the rising edge of the random number latch signal LL1 input from the random number latch selector 558A to the clock terminal with the numerical data in the random number sequence RSN output from the random number sequence change circuit 555. Then, the numerical data serving as stored data is updated (latched).

たとえば図39(G)に示すように、タイミングT11にて乱数ラッチ信号LL1がオフ状態からオン状態に変化する立上りエッジが生じた場合には、このタイミングT11にて乱数列変更回路555から出力されている乱数列RSNにおける数値データが、図39(H)に示すように、乱数値レジスタR1Dに取り込まれ、乱数値となる数値データとして取得される。これにより、乱数値レジスタR1Dとなる乱数値レジスタ559Aでは、スタートスイッチ7の操作が検出されたことに基づき、乱数値として用いられる数値データを取得して記憶することができる。   For example, as shown in FIG. 39 (G), when a rising edge occurs in which the random number latch signal LL1 changes from the off state to the on state at timing T11, the random number sequence change circuit 555 outputs it at this timing T11. As shown in FIG. 39 (H), the numerical data in the random number sequence RSN is taken into the random value register R1D and acquired as numerical data that becomes a random value. Accordingly, the random value register 559A serving as the random value register R1D can acquire and store numerical data used as a random number value based on the detection of the operation of the start switch 7.

また、図9(B)に示すような第2乱数初期設定KRS2のビット番号[0]におけるビット値を“1”とすれば、たとえば乱数回路509にて生成される乱数値となる数値データのスタート値を、システムリセット毎に変更することができる。これにより、たとえ乱数回路509の動作開始タイミングを特定することができたとしても、乱数回路509が備える乱数値レジスタ559Aから読み出される数値データを特定することは困難になり、プログラムの解析結果に基づく狙い撃ちや、いわゆる「ぶら下げ基板」を接続して所定タイミングで不正信号を入力することで、不正に特別役を当選させるなどの行為を、確実に防止することができる。   Further, if the bit value in the bit number [0] of the second random number initial setting KRS2 as shown in FIG. 9B is set to “1”, for example, numerical data that becomes a random value generated by the random number circuit 509 The start value can be changed at every system reset. Thereby, even if the operation start timing of the random number circuit 509 can be specified, it becomes difficult to specify the numerical data read from the random value register 559A included in the random number circuit 509, which is based on the analysis result of the program. By connecting a so-called “hanging board” and inputting a fraud signal at a predetermined timing, it is possible to reliably prevent an act such as illegally winning a special role.

このように本実施の形態では、セキュリティ時間設定KSESのビット番号[4−3]におけるビット値を“00”以外の値とすることにより、システムリセットや電源投入ごとに所定の時間範囲で変化する可変設定時間を、セキュリティ時間に含まれる時間成分として設定することができる。これにより、電源投入やシステムリセット等による動作開始タイミングから、乱数回路509の動作開始タイミングや更新される数値データなどを特定することが困難になり、プログラムの解析結果に基づく狙い撃ちや、いわゆる「ぶら下げ基板」を接続して所定タイミングで不正信号を入力することで、不正に特別役を当選させるなどの行為を、確実に防止することができる。   As described above, in the present embodiment, by setting the bit value in the bit number [4-3] of the security time setting KSES to a value other than “00”, it changes within a predetermined time range every time the system is reset or the power is turned on. The variable setting time can be set as a time component included in the security time. This makes it difficult to specify the operation start timing of the random number circuit 509 and the numerical data to be updated from the operation start timing due to power-on, system reset, and so on. By connecting the “board” and inputting an illegal signal at a predetermined timing, it is possible to reliably prevent acts such as illegally winning a special role.

また、セキュリティ時間設定KSESのビット番号[2−0]におけるビット値を“000”以外の値とすることにより、固定時間に加えて予め選択可能な複数の延長時間のいずれかを、セキュリティ時間に含まれる時間成分として設定することができる。これにより、電源投入やシステムリセット等による動作開始タイミングから、乱数回路509の動作開始タイミングや更新される数値データなどを特定することが困難になり、プログラムの解析結果に基づく狙い撃ちや、いわゆる「ぶら下げ基板」を接続して所定タイミングで不正信号を入力することで、不正に特別役を当選させるなどの行為を、確実に防止することができる。   Also, by setting the bit value in the bit number [2-0] of the security time setting KSES to a value other than “000”, any one of a plurality of extension times that can be selected in advance in addition to the fixed time is set as the security time. It can be set as an included time component. This makes it difficult to specify the operation start timing of the random number circuit 509 and the numerical data to be updated from the operation start timing due to power-on, system reset, and so on. By connecting the “board” and inputting an illegal signal at a predetermined timing, it is possible to reliably prevent acts such as illegally winning a special role.

また、乱数用クロック生成回路43により生成される乱数用クロックRCLKの発振周波数と、制御用クロック生成回路42により生成される制御用クロックCCLKの発振周波数とは、互いに異なっており、また、一方の発振周波数が他方の発振周波数の整数倍となることもない。そのため、乱数回路509のクロック用フリップフロップ552により生成される乱数更新クロックRGKやラッチ用クロックRC0の発振周波数は、乱数用クロックRCLKの発振周波数の1/2となるが、制御用クロックCCLKの発振周波数や、制御用クロックCCLKの発振周波数の1/2となる内部システムクロックSCLKの発振周波数とは、異なるものとなる。こうして、制御用クロックCCLKや内部システムクロックSCLKと、乱数更新クロックRGKとに同期が生じることを防ぎ、CPU505の動作タイミングからは、乱数回路509にて乱数生成回路553や乱数列変更回路555により生成される乱数列RSNにおける数値データの更新タイミングを特定することが困難になる。これにより、CPU505の動作タイミングから乱数回路509における乱数値となる数値データの更新動作を解析した結果に基づく狙い撃ちなどを、確実に防止することができる。また、ラッチ用クロックRC0を分岐することにより生成されるラッチ用クロックRC1、RC2の発振周波数も、制御用クロックCCLKや内部システムクロックSCLKの発振周波数とは、異なるものとなる。こうして、制御用クロックCCLKや内部システムクロックSCLKと、ラッチ用クロックRC1、RC2とに同期が生じることを防ぎ、CPU505の動作タイミングからは、乱数回路509にて乱数値となる数値データが取り込まれる動作タイミングを特定することが困難になる。これにより、CPU505の動作タイミングから乱数回路509における乱数値となる数値データの取込動作を解析した結果に基づく狙い撃ちなどを、確実に防止することができる。   Further, the oscillation frequency of the random number clock RCLK generated by the random number clock generation circuit 43 and the oscillation frequency of the control clock CCLK generated by the control clock generation circuit 42 are different from each other. The oscillation frequency does not become an integral multiple of the other oscillation frequency. Therefore, the oscillation frequency of the random number update clock RGK and the latch clock RC0 generated by the clock flip-flop 552 of the random number circuit 509 is ½ of the oscillation frequency of the random number clock RCLK, but the oscillation of the control clock CCLK. The frequency and the oscillation frequency of the internal system clock SCLK that is ½ of the oscillation frequency of the control clock CCLK are different. In this way, the control clock CCLK, the internal system clock SCLK, and the random number update clock RGK are prevented from being synchronized. From the operation timing of the CPU 505, the random number circuit 509 generates the random number generation circuit 553 and the random number sequence change circuit 555. It becomes difficult to specify the update timing of the numerical data in the random number sequence RSN to be performed. As a result, it is possible to reliably prevent aiming and the like based on the result of analyzing the update operation of the numerical data serving as the random number value in the random number circuit 509 from the operation timing of the CPU 505. Also, the oscillation frequencies of the latch clocks RC1 and RC2 generated by branching the latch clock RC0 are different from the oscillation frequencies of the control clock CCLK and the internal system clock SCLK. In this way, synchronization between the control clock CCLK and the internal system clock SCLK and the latch clocks RC1 and RC2 is prevented, and the random number circuit 509 takes in numeric data as a random value from the operation timing of the CPU 505. It becomes difficult to specify the timing. As a result, it is possible to reliably prevent aiming and the like based on the result of analyzing the operation of fetching numerical data as a random value in the random number circuit 509 from the operation timing of the CPU 505.

メイン制御部41に内蔵又は外付けされた乱数回路509では、第2乱数初期設定KRS2のビット番号[0]におけるビット値が“1”とされたことに対応して、乱数生成回路553から出力されるカウント値順列RCNや乱数列変更回路555から出力される乱数列RSNにおける数値データのスタート値を、システムリセット毎に変更することができる。これにより、たとえ乱数回路509の動作開始タイミングを特定することができたとしても、乱数回路509が備える乱数値レジスタ559Aから読み出される数値データを特定することは困難になり、プログラムの解析結果に基づく狙い撃ちや、いわゆる「ぶら下げ基板」の接続による不正信号の入力などを、確実に防止することができる。   The random number circuit 509 built in or externally attached to the main control unit 41 outputs from the random number generation circuit 553 in response to the bit value [0] of the second random number initial setting KRS2 being “1”. The start value of the numerical data in the count value permutation RCN and the random number sequence RSN output from the random number sequence change circuit 555 can be changed every time the system is reset. Thereby, even if the operation start timing of the random number circuit 509 can be specified, it becomes difficult to specify the numerical data read from the random value register 559A included in the random number circuit 509, which is based on the analysis result of the program. It is possible to surely prevent an aiming signal or an illegal signal from being input by connecting a so-called “hanging board”.

メイン制御部41が備える外部バスインタフェース501では、内部リソースアクセス制御回路501Aにより、たとえばROM506の記憶データといった、メイン制御部41の内部データにつき、CPU505等の内部回路以外による外部読出が制限される。これにより、たとえばROM506に記憶されているユーザプログラムといった、ゲームを制御するプログラムがメイン制御部41の外部から読み出されて解析などに提供されることを防止できる。そして、遊技制御処理プログラムの解析結果に基づく狙い撃ちや、いわゆる「ぶら下げ基板」の接続による不正信号の入力などを、確実に防止することができる。   In the external bus interface 501 included in the main control unit 41, the internal resource access control circuit 501A restricts external reading by the devices other than the internal circuit such as the CPU 505 for the internal data of the main control unit 41 such as data stored in the ROM 506. Thereby, for example, a program for controlling a game such as a user program stored in the ROM 506 can be prevented from being read from the outside of the main control unit 41 and provided for analysis or the like. Further, it is possible to reliably prevent aiming based on the analysis result of the game control processing program and input of an illegal signal due to connection of a so-called “hanging board”.

メイン制御部41に内蔵又は外付けされた乱数回路509では、周波数監視回路551により乱数用クロックRCLKにおける周波数異常が検知されたときに、内部情報レジスタCIFのビット番号[4]に格納される内部情報データCIF4のビット値が“1”に設定される。そして、CPU505では、内部情報データCIF4の読出値が“1”であると連続して判定された回数が、ステップS65にてクロック異常判定値に達したと判定されたときに、乱数回路509の動作状態に異常が発生したと判定する。そして乱数回路509の動作状態に異常が発生したと判定された場合には、エラー状態に制御され、ゲームの進行が不能化されることとなる。これにより、乱数用クロックRCLKとして不正信号を入力することによる不正行為を確実に防止することができる。   In the random number circuit 509 built in or externally attached to the main control unit 41, when the frequency monitoring circuit 551 detects a frequency abnormality in the random number clock RCLK, the random number circuit 509 is stored in the bit number [4] of the internal information register CIF. The bit value of the information data CIF4 is set to “1”. When the CPU 505 determines that the number of times that the read value of the internal information data CIF4 is continuously determined to be “1” has reached the clock abnormality determination value in step S65, the random number circuit 509 It is determined that an abnormality has occurred in the operating state. If it is determined that an abnormality has occurred in the operation state of the random number circuit 509, the game is controlled to be in an error state and the progress of the game is disabled. Thereby, it is possible to reliably prevent an illegal act by inputting an illegal signal as the random number clock RCLK.

メイン制御部41に内蔵されたCPU505は、乱数回路509に対するラッチ信号の出力に相当する乱数値取込指定レジスタRDLTへのビット値“1”の書き込みを行ない、乱数値レジスタ559Aを複数回読み出す。そして、読み出した数値データの全ビットを監視して、変化しないビットデータの有無に基づき、乱数回路509の動作状態に異常が発生したと判定する。そして乱数回路509の動作状態に異常が発生したと判定された場合には、エラー状態に制御され、ゲームの進行が不能化されることとなる。これにより、乱数回路509の動作状態に異常が発生していることを確実かつ容易に検知して、不正行為を防止することができる。特に、乱数回路509により数値データが正常に更新されないまま、すなわち数値データが固定されたままの状態で内部抽選を行なわせることで、常に特別役を当選させるなどの不正を防止できる。   The CPU 505 built in the main control unit 41 writes the bit value “1” into the random value fetch specification register RDLT corresponding to the output of the latch signal to the random number circuit 509, and reads the random value register 559A a plurality of times. Then, all the bits of the read numerical data are monitored, and it is determined that an abnormality has occurred in the operation state of the random number circuit 509 based on the presence / absence of bit data that does not change. If it is determined that an abnormality has occurred in the operation state of the random number circuit 509, the game is controlled to be in an error state and the progress of the game is disabled. As a result, it is possible to reliably and easily detect that an abnormality has occurred in the operating state of the random number circuit 509 and prevent fraud. In particular, by performing the internal lottery while the numerical data is not normally updated by the random number circuit 509, that is, while the numerical data is fixed, fraud such as always winning a special combination can be prevented.

メイン制御部41に内蔵又は外付けされた乱数回路509は、第2乱数初期設定KRS2のビット番号[0]におけるビット値が“1”である場合に、システムリセット毎に乱数値となる数値データのスタート値を変更する。このときには、たとえばメイン制御部41に内蔵されたフリーランカウンタのカウント値などを用いて、システムリセット毎に変更されるスタート値を決定すればよい。これにより、システムリセット等のタイミングにより異なる初期値決定用データを用いて初期値を決定することができ、狙い撃ちなどによる不正行為を防止することができる。   The random number circuit 509 built in or externally attached to the main control unit 41 is a numerical data that becomes a random value every time the system is reset when the bit value [0] of the second random number initial setting KRS2 is “1”. Change the start value of. At this time, for example, a start value that is changed at each system reset may be determined using a count value of a free-run counter incorporated in the main control unit 41, for example. As a result, the initial value can be determined by using different initial value determination data depending on the timing of system reset or the like, and illegal acts due to shooting or the like can be prevented.

なお、本実施の形態では、セキュリティモードの延長時間が、セキュリティ時間設定KSESのビット番号[2−0]におけるビット値に対応して、予め選択可能な複数の延長時間のいずれかとなり、この延長時間はシステムリセット毎に変更されないものであったが、たとえばROM506に記憶されたユーザプログラムにおける設定などにより、固定時間に加算される延長時間を、システムリセット毎に複数の延長時間のいずれかに決定するようにしてもよい。この場合には、延長時間がいずれも、最長の可変設定時間に比べて、長くなるように定義しておく。そして、大まかな延長時間を決定した後、詳細な延長時間を決定すればよい。これにより、電源投入時やシステムリセット時にセキュリティモードとなるセキュリティ時間を、システムリセット毎に大きく変化させることが可能になり、スロットマシン1の動作開始タイミングから乱数回路509の動作開始タイミングや更新される数値データなどを特定することが、より困難になる。   In this embodiment, the extension time of the security mode is one of a plurality of extension times that can be selected in advance corresponding to the bit value in the bit number [2-0] of the security time setting KSES. Although the time is not changed at each system reset, the extension time added to the fixed time is determined as one of a plurality of extension times at each system reset, for example, by setting in the user program stored in the ROM 506 You may make it do. In this case, the extension time is defined to be longer than the longest variable setting time. Then, after determining a rough extension time, a detailed extension time may be determined. As a result, the security time for entering the security mode at the time of power-on or system reset can be greatly changed for each system reset, and the operation start timing of the random number circuit 509 is updated or updated from the operation start timing of the slot machine 1. It becomes more difficult to specify numerical data.

また、セキュリティモードの延長時間などは、メイン制御部41を構成するチップ毎に付与されるIDナンバーを用いて決定されるようにしてもよい。一例として、IDナンバーに所定のスクランブル処理を施す演算や、IDナンバーを用いた加算・減算・乗算・除算などの演算の一部又は全部を実行して、算出された値に対応して延長時間を設定してもよい。この場合には、たとえばシステムリセット毎に延長時間を決定するために用いる演算式を変更することなどにより、システムリセット毎に延長時間がランダムに決定されるようにしてもよい。さらに、たとえばIDナンバーを用いて延長時間を決定するための演算式をシステムリセット時に格納したフリーランカウンタのカウント値に対応して決定するといったように、フリーランカウンタのカウント値と、IDナンバーとを組み合わせて使用することなどにより、システムリセット毎に延長時間がランダムに決定されるようにしてもよい。また、乱数回路509にて生成される乱数のスタート値をシステムリセット毎に変更する場合にも、フリーランカウンタのカウント値と、IDナンバーとを組み合わせて使用することなどにより、乱数のスタート値を決定してもよい。   Further, the extension time of the security mode and the like may be determined using an ID number assigned to each chip constituting the main control unit 41. As an example, an extension time corresponding to the calculated value is executed by executing a part or all of an operation for performing a predetermined scramble process on the ID number and an operation such as addition / subtraction / multiplication / division using the ID number. May be set. In this case, the extension time may be randomly determined for each system reset, for example, by changing an arithmetic expression used for determining the extension time for each system reset. Furthermore, the count value of the free-run counter, the ID number, and the like are determined such that, for example, an arithmetic expression for determining the extension time using the ID number is determined corresponding to the count value of the free-run counter stored at the time of system reset. The extended time may be determined randomly at each system reset by using a combination of the above. In addition, when changing the start value of the random number generated by the random number circuit 509 at each system reset, the start value of the random number can be changed by using a combination of the count value of the free-run counter and the ID number. You may decide.

本実施の形態では、メイン制御部41の外部に設けられた乱数用クロック生成回路43により、制御用クロック生成回路42で生成される制御用クロックCCLKの発振周波数とは異なる発振周波数を有する乱数用クロックRCLKを生成して、乱数回路509に供給するものであったが、メイン制御部41のCPU505に供給されるクロック信号と、乱数回路509に供給されるクロック信号とが、共通のクロック生成回路に含まれる1つの発振器により生成された発振信号を用いて、生成されるようにしてもよい。この場合には、たとえば乱数用クロックRCLKと制御用クロックCCLKをそれぞれ生成するための分周器などを設け、ラッチ用クロックRC0、RC1、RC2と制御用クロックCCLKあるいは内部システムクロックSCLKとの同期が生じにくくなるように、各分周器における分周比などを設定すればよい。制御用クロック生成回路42と乱数用クロック生成回路43とは、その全部又は一部が、メイン制御部41の内部に設けられてもよいし、メイン制御部41の外部に設けられてもよい。   In the present embodiment, the random number clock generation circuit 43 provided outside the main control unit 41 is used for random numbers having an oscillation frequency different from the oscillation frequency of the control clock CCLK generated by the control clock generation circuit 42. Although the clock RCLK is generated and supplied to the random number circuit 509, the clock signal supplied to the CPU 505 of the main control unit 41 and the clock signal supplied to the random number circuit 509 are common clock generation circuits. May be generated using an oscillation signal generated by one oscillator included in the. In this case, for example, a frequency divider for generating the random number clock RCLK and the control clock CCLK is provided, and the latch clocks RC0, RC1, RC2 and the control clock CCLK or the internal system clock SCLK are synchronized. What is necessary is just to set the frequency division ratio etc. in each frequency divider so that it may become difficult to produce. The control clock generation circuit 42 and the random number clock generation circuit 43 may be provided in whole or in part inside the main control unit 41 or outside the main control unit 41.

本実施の形態では、乱数回路509が乱数用クロック生成回路43により生成された乱数用クロックRCLKの供給を受け、クロック用フリップフロップ552により、乱数更新クロックRGKとラッチ用クロックRC0とを生成するものであったが、たとえば乱数用クロック生成回路43といった、乱数回路509の外部において、乱数更新クロックRGKやラッチ用クロックRC0となる発振信号が生成されるようにしてもよい。あるいは、乱数回路509の内部にて、乱数更新クロックRGKを生成するための回路と、ラッチ用クロックRC0を生成するための回路とを、別個に設けるようにしてもよい。一例として、クロック用フリップフロップ552と同様のフリップフロップにより乱数更新クロックRGKを生成する一方で、乱数更新クロックRGKの信号状態を反転させる反転回路を設け、その反転回路から出力される信号を、ラッチ用クロックRC0として用いるようにしてもよい。   In this embodiment, the random number circuit 509 receives the supply of the random number clock RCLK generated by the random number clock generation circuit 43, and generates the random number update clock RGK and the latch clock RC0 by the clock flip-flop 552. However, an oscillation signal serving as the random number update clock RGK or the latch clock RC0 may be generated outside the random number circuit 509, such as the random number clock generation circuit 43, for example. Alternatively, a circuit for generating the random number update clock RGK and a circuit for generating the latch clock RC0 may be separately provided in the random number circuit 509. As an example, while generating a random number update clock RGK by a flip-flop similar to the clock flip-flop 552, an inversion circuit for inverting the signal state of the random number update clock RGK is provided, and a signal output from the inversion circuit is latched. It may be used as the clock RC0.

本実施の形態に適用した乱数回路509では、乱数ラッチフラグデータRDFM0が“1”の状態、すなわち乱数値レジスタR1Dに数値データが取り込まれている状態では、新たな数値データの取込要求が発生した場合でも、新たな数値データを乱数値レジスタR1Dに取り込まないようになっており、このような状態では、乱数値レジスタR1Dの数値データが読み出されて、乱数ラッチフラグデータRDFM0がクリアされるまで新たな数値データを乱数値レジスタR1Dに取り込むことが不可能となる。   In the random number circuit 509 applied to the present embodiment, when the random number latch flag data RDFM0 is “1”, that is, when the numerical data is captured in the random value register R1D, a new numerical data capturing request is generated. Even in this case, new numerical data is not taken into the random value register R1D. In such a state, the numerical data in the random value register R1D is read and the random number latch flag data RDFM0 is cleared. It is impossible to load new numerical data into the random value register R1D.

このため、図40に示すように、スタートスイッチ7の操作によりゲーム開始信号SS1が入力されて数値データがラッチされ、乱数値レジスタR1Dに格納された後、この格納された数値データが読み出されて乱数値格納ワークの数値データが更新されるまでは、乱数ラッチフラグデータRDFM0が“1”の状態となることで、格納されている数値データが保持され、その間にゲーム開始信号SS1が入力されても新たな数値データに上書きされてしまうことがないので、静電気などによりゲーム開始信号SS1の信号線にノイズがのっても数値データが変わってしまうことがない。   Therefore, as shown in FIG. 40, the game start signal SS1 is input by operating the start switch 7, the numerical data is latched and stored in the random value register R1D, and then the stored numerical data is read out. Until the numerical data of the random value storage work is updated, the random number latch flag data RDFM0 is in a state of “1”, so that the stored numerical data is held, and the game start signal SS1 is input during that time. However, since the new numerical data is not overwritten, the numerical data does not change even if noise is applied to the signal line of the game start signal SS1 due to static electricity or the like.

なお、乱数値レジスタR1Dに数値データが取り込まれている状態において新たな数値データを乱数値レジスタR1Dに取り込まないようにする構成としては、新たな数値データのラッチを禁止する構成であってもよいし、新たな数値データをラッチするものの、乱数値レジスタR1Dへの書込を禁止する構成であってもよい。   Note that the configuration in which new numerical data is not captured in the random value register R1D while the numerical data is captured in the random value register R1D may be a configuration in which latching of the new numerical data is prohibited. In addition, although new numerical data is latched, writing to the random value register R1D may be prohibited.

上記のように、本実施の形態では、乱数値レジスタR1Dに数値データが取り込まれている状態では、この格納された数値データが読み出されるまで、格納されている数値データを保持する構成を採用しているが、この場合には、スタートスイッチ7の操作がゲームの進行上有効でない期間においてなされた場合でも、ラッチされて乱数値レジスタR1Dに数値データが保持されたままとなり、その後、スタートスイッチ7の操作が有効となってスタートスイッチ7が操作された場合、本来、ゲームを開始させるためにスタートスイッチ7が操作されたタイミングとは異なるタイミングでラッチされた数値データによって内部抽選が行なわれてしまうという新たな問題が生じることとなる。   As described above, in the present embodiment, in a state in which numerical data is captured in the random value register R1D, a configuration is employed in which the stored numerical data is held until the stored numerical data is read. However, in this case, even when the operation of the start switch 7 is performed during a period in which the game is not effective, the latch is held and the numerical value data is held in the random number value register R1D. When the start switch 7 is operated with the above operation enabled, the internal lottery is performed based on numerical data latched at a timing different from the timing at which the start switch 7 was originally operated to start the game. A new problem will arise.

これに対して本実施の形態では、約0.56ms毎に基本処理に割り込んで実行するタイマ割込処理4回に1回(約2.24ms)毎に実行される乱数値読出処理において乱数値レジスタR1Dに数値データがラッチされているか否か、すなわち乱数ラッチフラグが設定されているか否かを確認し、乱数値レジスタR1Dに数値データがラッチされている場合には、乱数値レジスタR1Dの数値データを読み出すようになっている。これにより、乱数ラッチフラグがクリアされ、新たな数値データの取込が可能な状態となる。すなわち一定時間間隔(約2.24ms)毎に、乱数値レジスタR1Dに数値データがラッチされているか否かを確認し、ラッチされていれば乱数値レジスタR1Dの数値データを読み出すことで、乱数値レジスタR1Dに数値データが保持されている状態を解除し、乱数値レジスタR1Dに新たな数値データの取込が可能な状態となる。   On the other hand, in the present embodiment, the random number value is read out every four times (about 2.24 ms) in the timer interrupt process that is executed by interrupting the basic process every about 0.56 ms. It is checked whether or not numerical data is latched in the register R1D, that is, whether or not the random number latch flag is set. If the numerical data is latched in the random value register R1D, the numerical data in the random value register R1D Is read out. As a result, the random number latch flag is cleared, and new numerical data can be taken in. That is, at predetermined time intervals (about 2.24 ms), it is confirmed whether or not numerical data is latched in the random value register R1D, and if it is latched, the numerical data in the random value register R1D is read out, The state where the numerical data is held in the register R1D is released, and a new numerical data can be taken into the random value register R1D.

このため、図41に示すように、ゲームの開始が許可されていない状態でスタートスイッチ7が操作されて乱数値レジスタR1Dに数値データが格納され、その状態が保持されていても、一定時間(乱数値読出処理の実行間隔である約2.24ms)以内に乱数値レジスタR1Dに新たにラッチされた数値データを格納可能な状態となるので、ゲームの開始が許可される前のスタートスイッチ7の操作によりラッチされた数値データが乱数値レジスタR1Dに保持されても、ゲームの開始が許可された後にスタートスイッチ7が操作されたタイミングで新たにラッチした数値データを取得することが可能となる。   For this reason, as shown in FIG. 41, the start switch 7 is operated in a state where the start of the game is not permitted, and numerical data is stored in the random value register R1D. Since the numerical data newly latched in the random value register R1D can be stored within about 2.24 ms, which is the execution interval of the random value reading process, the start switch 7 before the start of the game is permitted. Even if the numerical data latched by the operation is held in the random value register R1D, the numerical data newly latched can be obtained at the timing when the start switch 7 is operated after the start of the game is permitted.

また、乱数値読出処理では、乱数値レジスタR1Dに数値データがラッチされている場合に、数値データを読み出すだけではなく、RAM507の乱数値格納ワークの値を読み出した数値データに更新することにより、乱数値レジスタR1Dに新たな数値データがラッチされる毎に、ラッチされた数値データがその後の乱数値読出処理において読み出され、乱数値格納ワークに格納された数値データが新たにラッチされた最新の数値データに更新されるようになっている。   Further, in the random value reading process, when numerical data is latched in the random value register R1D, not only the numerical data is read, but also the value of the random value storage work in the RAM 507 is updated to the read numerical data. Each time new numerical data is latched in the random value register R1D, the latched numerical data is read in the subsequent random value reading process, and the numerical data stored in the random value storage work is newly latched. It is designed to be updated to numerical data.

そして、ゲームの開始時に、乱数値レジスタR1Dに格納されている数値データではなく、RAM507の乱数値格納ワークに格納されている数値データを取得して内部抽選を行なうので、乱数値レジスタR1Dから数値データが読み出された後に、スタートスイッチの信号線にノイズがのって数値データが変わってしまっても内部抽選に用いる乱数値格納ワークの数値データに影響することがなく、このような場合であってもスタートスイッチ7が操作されたタイミングでラッチした数値データを用いて内部抽選を行なうことができる。   At the start of the game, instead of the numerical data stored in the random value register R1D, the numerical data stored in the random value storage work of the RAM 507 is acquired and the internal lottery is performed, so the numerical value is stored from the random value register R1D. After the data is read, even if the numerical data changes due to noise on the signal line of the start switch, it will not affect the numerical data of the random number storage work used for internal lottery. Even in such a case, the internal lottery can be performed using the numerical data latched at the timing when the start switch 7 is operated.

また、本実施の形態では、電断した際に乱数値レジスタR1Dの値は保持されないが、乱数値格納ワークが割り当てられたRAM507は、電断しても格納データが保持されるようになっているため、スタートスイッチ7の操作が検出された後、内部抽選を開始する前の段階で瞬停などにより乱数値レジスタR1Dの値が消失しても乱数値格納ワークの数値データは維持されるため、スタートスイッチ7が操作されたタイミングでラッチされた数値データを内部抽選に用いることができる。   In the present embodiment, the value of the random value register R1D is not retained when the power is interrupted, but the RAM 507 to which the random value storage work is assigned retains the stored data even when the power is interrupted. Therefore, even if the operation of the start switch 7 is detected and before the internal lottery starts, even if the value of the random value register R1D disappears due to a momentary power interruption or the like, the numerical data of the random number value storage work is maintained. Numerical data latched at the timing when the start switch 7 is operated can be used for the internal lottery.

また、本実施の形態では、スタートスイッチ7の操作が検出された時点で、RAM507の乱数値格納ワークに格納されている数値データを同じくRAM507に割り当てられた抽選用ワークに設定し、その後の内部抽選において抽選用ワークに設定された数値データに対して演算を行なうことにより役に当選したか否かの判定を行なうようになっており、スタートスイッチ7の操作が検出された時点から内部抽選が終了するまでに乱数値格納ワークに格納されている数値データが更新されても、スタートスイッチ7の操作が検出された時点で取得した数値データが内部抽選が終了するまでに変更されてしまうことがないが、スタートスイッチ7の操作が検出された時点でRAM507の乱数値格納ワークに格納されている数値データをCPU505のワークレジスタに設定し、その後の内部抽選においてワークレジスタに設定された数値データに対して演算を行なうことにより役に当選したか否かの判定を行なうようにしてもよい。   In the present embodiment, when the operation of the start switch 7 is detected, the numerical data stored in the random value storage work in the RAM 507 is set as the lottery work assigned to the RAM 507, and then the internal In the lottery, it is determined whether or not the winning combination has been won by performing an operation on the numerical data set in the lottery work, and the internal lottery is started from the time when the operation of the start switch 7 is detected. Even if the numerical data stored in the random number storage work is updated before the end, the numerical data acquired when the operation of the start switch 7 is detected may be changed before the internal lottery ends. However, when the operation of the start switch 7 is detected, the numerical data stored in the random value storage work of the RAM 507 is CP. Set 505 work register of, it may be a determination of whether the player wins a winning combination by performing subsequent operations on numerical data set in the work register in internal lottery.

また、乱数値格納ワークに格納されている数値データに対して演算を行なうことにより役に当選したか否かの判定を行なうようにしてもよいが、この場合には、スタートスイッチ7の操作が検出された時点から内部抽選が終了するまでの期間において、タイマ割込処理(メイン)を禁止することなどにより、乱数値格納ワークに格納されている数値データが新たにラッチされた数値データによって更新されてしまうことがないようにすることで、スタートスイッチ7の操作が検出された時点で取得した数値データが内部抽選が終了するまでに変更されてしまうことを防止できる。   Further, it may be determined whether or not the winning combination has been won by performing an operation on the numerical data stored in the random value storage work. In this case, the operation of the start switch 7 is performed. The numerical data stored in the random number storage work is updated with the newly latched numerical data, for example, by prohibiting timer interrupt processing (main) during the period from the time of detection until the end of the internal lottery By preventing this from happening, it is possible to prevent the numerical data acquired when the operation of the start switch 7 is detected from being changed before the internal lottery is completed.

また、本実施の形態では、タイマ割込処理(メイン)4回に1回の割合でスイッチ類の検出信号を入力し、2回連続して検出信号の状態が一致した場合、すなわち約2.24msの期間検出信号の状態が同じ場合に、該当するスイッチ類の検出状態を確定させる。このため、スタートスイッチ7の操作(OFFからONへの変化)を検知するのに約2.24msかかることとなるが、乱数値読出処理がこの時間よりも短いと、スタートスイッチがOFFからONに変化した時点から検知されるまでの間に乱数値格納ワークの数値データが、ノイズなどによって新たにラッチされた数値データに更新されてしまう可能性がある。一方、乱数値読出処理がこの時間よりも長いとスタートスイッチ7の操作のタイミングでラッチした数値データが乱数値格納ワークの数値データに反映されない可能性がある。   Further, in this embodiment, when the detection signals of the switches are inputted at a rate of once every four times of the timer interrupt processing (main) and the states of the detection signals coincide with each other twice, that is, about 2. When the state of the 24 ms period detection signal is the same, the detection state of the corresponding switch is determined. For this reason, it takes about 2.24 ms to detect the operation of the start switch 7 (change from OFF to ON). However, if the random number reading process is shorter than this time, the start switch changes from OFF to ON. There is a possibility that the numerical data of the random number storage work is updated to the newly latched numerical data due to noise or the like between the time of the change and the detection. On the other hand, if the random number reading process is longer than this time, the numerical data latched at the timing of operating the start switch 7 may not be reflected in the numerical data of the random number storage work.

これに対して乱数値読出処理もタイマ割込処理(メイン)4回に1回の割合で実行され、乱数値格納ワークの数値データが更新されるのに要する最小時間も同じ約2.24msであり、スタートスイッチ7がOFFからONに変化した時点から検知されるまでに乱数値格納ワークの数値データが新たにラッチされた数値データに更新されてしまうことがなく、かつ、スタートスイッチ7の操作のタイミングでラッチした数値データを乱数値格納ワークの数値データに反映させることができる。   On the other hand, the random number value reading process is also executed at a rate of once every four times of the timer interrupt process (main), and the minimum time required for updating the numerical data of the random number value storing work is about 2.24 ms. Yes, the numerical data of the random number storage work is not updated to the newly latched numerical data from when the start switch 7 is changed from OFF to ON, and the start switch 7 is operated. The numerical data latched at this timing can be reflected in the numerical data of the random value storage work.

また、本実施の形態では、図42に示すように、規定数の賭数が設定されていない状態において規定数の賭数が設定され、ゲームの開始条件を満たした時点で、乱数値レジスタR1Dに数値データがラッチされているか否か、すなわち乱数ラッチフラグが設定されているか否かを確認し、乱数値レジスタR1Dに数値データがラッチされている場合には、ダミーで乱数値レジスタR1Dの数値データを読み出すようになっている。これにより、乱数ラッチフラグがクリアされ、新たな数値データの取込が可能な状態となる。   Further, in the present embodiment, as shown in FIG. 42, when the prescribed number of bets is set in a state where the prescribed number of bets is not set and the game start condition is satisfied, the random number value register R1D Whether or not the numerical data is latched, that is, whether or not the random number latch flag is set. If the numerical data is latched in the random value register R1D, the numerical data in the random value register R1D is dummy. Is read out. As a result, the random number latch flag is cleared, and new numerical data can be taken in.

このため、規定数の賭数が設定される前にスタートスイッチ7が操作されて乱数値レジスタR1Dに数値データが格納されており、その状態が保持されていても、規定数の賭数が設定され、ゲームの開始条件を満たすと同時に、乱数値レジスタR1Dに新たにラッチされた数値データを格納可能な状態となる。   For this reason, the start switch 7 is operated before the specified number of bets is set, and the numerical data is stored in the random value register R1D. Even if this state is maintained, the specified number of bets is set. As soon as the game start condition is satisfied, the newly latched numerical data can be stored in the random value register R1D.

なお、本実施の形態では、規定数の賭数が設定され、ゲームの開始条件を満たした時点で乱数ラッチフラグが設定されているか否か、すなわち規定数の賭数が設定される前にラッチされた数値データが乱数値レジスタR1Dに格納されているか否かを確認し、乱数ラッチフラグが設定されている場合にのみ、乱数値レジスタR1Dに格納されている数値データを読み出すようになっているが、規定数の賭数が設定され、ゲームの開始条件を満たした時点で一律に乱数値レジスタR1Dに格納されている数値データを読み出すようにしてもよい。   In the present embodiment, a specified number of bets are set, and whether or not the random number latch flag is set when the game start condition is satisfied, that is, before the specified number of bets are set, it is latched. The numerical data stored in the random number register R1D is read out only when the random number latch flag is set. The numerical data stored in the random value register R1D may be read out uniformly when a predetermined number of bets are set and the game start condition is satisfied.

また、本実施の形態では、図43に示すように、ゲームの開始条件を満たす規定数の賭数が設定されている状態においてスタートスイッチ7が操作されても、スタートスイッチ7以外のスイッチが操作されている状態では、ゲームの開始が禁止されるようになっているが、規定数の賭数が設定されている状態であるもののスタートスイッチ7以外のスイッチが操作されており、ゲームの開始が禁止されている状態では、全てのスイッチがOFFとなり、ゲームの開始が許可された時点で、乱数値レジスタR1Dに数値データがラッチされているか否か、すなわち乱数ラッチフラグが設定されているか否かを確認し、乱数値レジスタR1Dに数値データがラッチされている場合には、ダミーで乱数値レジスタR1Dの数値データを読み出すようになっている。これにより、乱数ラッチフラグがクリアされ、新たな数値データの取込が可能な状態となる。   In the present embodiment, as shown in FIG. 43, even if the start switch 7 is operated in a state where a prescribed number of bets satisfying the game start condition are set, the switches other than the start switch 7 are operated. In this state, the start of the game is prohibited. However, although a prescribed number of bets are set, a switch other than the start switch 7 is operated and the start of the game is stopped. In the prohibited state, when all the switches are turned off and the start of the game is permitted, whether or not numerical data is latched in the random value register R1D, that is, whether or not the random number latch flag is set. If the numerical data is latched in the random value register R1D, the numerical data in the random value register R1D is read as a dummy. Going on. As a result, the random number latch flag is cleared, and new numerical data can be taken in.

このため、ゲームの開始条件を満たす規定数の賭数が設定されている状態であるもののスタートスイッチ7以外のスイッチが操作されており、ゲームの開始が禁止されている状態においてスタートスイッチ7が操作されて乱数値レジスタR1Dに数値データが格納され、その状態が保持されていても、全てのスイッチがOFFとなりゲームの開始が許可されると同時に、乱数値レジスタR1Dに新たにラッチされた数値データを格納可能な状態となる。   For this reason, although a prescribed number of bets satisfying the game start condition are set, switches other than the start switch 7 are operated, and the start switch 7 is operated in a state where the game start is prohibited. Even if the numerical data is stored in the random value register R1D and the state is maintained, all the switches are turned off and the start of the game is permitted, and at the same time, the numerical data newly latched in the random value register R1D Can be stored.

なお、本実施の形態では、ゲームの開始条件を満たす規定数の賭数が設定されている状態であるもののスタートスイッチ7以外のスイッチが操作されており、ゲームの開始が禁止されている状態においては、全てのスイッチがOFFとなりゲームの開始が許可された時点で乱数ラッチフラグが設定されているか否か、すなわちゲームの開始が許可される前にラッチされた数値データが乱数値レジスタR1Dに格納されているか否かを確認し、乱数ラッチフラグが設定されている場合にのみ、乱数値レジスタR1Dに格納されている数値データを読み出すようになっているが、ゲームの開始が許可された時点で一律に乱数値レジスタR1Dに格納されている数値データを読み出すようにしてもよい。   In the present embodiment, a prescribed number of bets satisfying the game start condition are set, but a switch other than the start switch 7 is operated and the game start is prohibited. Is whether the random number latch flag is set when all the switches are turned off and the start of the game is permitted, that is, the numerical data latched before the start of the game is permitted is stored in the random value register R1D. Only when the random number latch flag is set, the numerical data stored in the random number register R1D is read, but when the start of the game is permitted, it is uniform. Numerical data stored in the random value register R1D may be read.

また、本実施の形態では、電源投入時においてメイン制御部41の制御状態を電断前の制御状態に復帰させることが可能とされており、ゲームの開始条件を満たす規定数の賭数が設定されている状態に復帰することもあるが、本実施の形態では、図44に示すように、電源投入時に電断前の制御状態に復帰する場合には、復帰した時点、すなわちゲームの開始が許可された時点で、乱数値レジスタR1Dに数値データがラッチされているか否か、すなわち乱数ラッチフラグが設定されているか否かを確認し、乱数値レジスタR1Dに数値データがラッチされている場合には、ダミーで乱数値レジスタR1Dの数値データを読み出すようになっている。これにより、乱数ラッチフラグがクリアされ、新たな数値データの取込が可能な状態となる。   In the present embodiment, when the power is turned on, the control state of the main control unit 41 can be returned to the control state before the power interruption, and a predetermined number of bets satisfying the game start condition are set. In this embodiment, as shown in FIG. 44, in the present embodiment, when returning to the control state before the power interruption when the power is turned on, the time of return, that is, the start of the game is started. When it is permitted, it is confirmed whether or not the numerical data is latched in the random value register R1D, that is, whether or not the random number latch flag is set. If the numerical data is latched in the random value register R1D, The numerical data of the random number value register R1D is read out as a dummy. As a result, the random number latch flag is cleared, and new numerical data can be taken in.

このため、図44に示すように、電源投入後、リセット信号がOFFとなってメイン制御部41が動作を開始した後、電断前の制御状態に復帰する前の段階でスタートスイッチ7が操作されて乱数値レジスタR1Dに数値データが格納され、その状態が保持されていても、制御状態が復帰してゲームの開始が許可されるのと同時に、乱数値レジスタR1Dに新たにラッチされた数値データを格納可能な状態となる。   Therefore, as shown in FIG. 44, after the power is turned on, the reset signal is turned OFF and the main control unit 41 starts its operation, and then the start switch 7 is operated before returning to the control state before the power interruption. Even if the numerical data is stored in the random value register R1D and the state is maintained, the numerical value newly latched in the random value register R1D at the same time that the control state is restored and the start of the game is permitted. Data can be stored.

また、電源投入時だけではなく、メイン制御部41がリセット要因の発生によりリセットされ、再起動した場合にも、起動処理の先頭から処理が開始することとなるが、この場合も同様で、メイン制御部41が再起動した際に、リセット前の制御状態に復帰する場合には、復帰した時点、すなわちゲームの開始が許可された時点で、乱数値レジスタR1Dに数値データがラッチされているか否か、すなわち乱数ラッチフラグが設定されているか否かを確認し、乱数値レジスタR1Dに数値データがラッチされている場合には、ダミーで乱数値レジスタR1Dの数値データを読み出すことで、乱数ラッチフラグがクリアされ、新たな数値データの取込が可能な状態となる。   Further, not only when the power is turned on, but also when the main control unit 41 is reset due to the occurrence of a reset factor and restarts, the process starts from the beginning of the startup process. When returning to the control state before resetting when the control unit 41 is restarted, whether or not numerical data is latched in the random value register R1D at the time of return, that is, when the start of the game is permitted. That is, whether or not the random number latch flag is set, and if the numerical data is latched in the random value register R1D, the random number latch flag is cleared by reading the numerical data in the random value register R1D as a dummy. Thus, new numerical data can be taken in.

このため、リセット要因の発生によりメイン制御部41が再起動した後、リセット前の制御状態に復帰する前の段階でスタートスイッチ7が操作されて乱数値レジスタR1Dに数値データが格納され、その状態が保持されていても、制御状態が復帰してゲームの開始が許可されるのと同時に、乱数値レジスタR1Dに新たにラッチされた数値データを格納可能な状態となる。   Therefore, after the main control unit 41 is restarted due to the occurrence of a reset factor, the start switch 7 is operated at a stage before returning to the control state before the reset, and the numerical data is stored in the random value register R1D. Even if is held, the control state is restored and the start of the game is permitted, and at the same time, the newly latched numerical data can be stored in the random value register R1D.

特に、スタートスイッチ7からの検出信号の入力を負論理で行なっている場合には、瞬停時など電圧供給が不安定な状態では、復帰前にスタートスイッチ7のON(電圧LOW)の信号が入力されて乱数値レジスタR1Dに数値データが格納されてしまう可能性が高くなるが、このような場合でも制御状態が復帰してゲームの開始が許可されるのと同時に、乱数値レジスタR1Dに新たにラッチされた数値データを格納可能な状態となり、復帰前に格納された乱数値レジスタR1Dの数値データが保持されたままとなってしまうことを確実に防止できる。   In particular, when the detection signal from the start switch 7 is input with negative logic, when the voltage supply is unstable, such as during a momentary power failure, an ON (voltage LOW) signal of the start switch 7 is returned before recovery. Although it is highly likely that numerical data will be stored in the random number value register R1D, even in such a case, the control state is restored and the start of the game is permitted, and at the same time, a new value is stored in the random number value register R1D. Thus, it is possible to reliably prevent the numerical data stored in the random number register R1D stored before the return from being held.

なお、本実施の形態では、電源投入後またはリセット後、電断前またはリセット前の制御状態に復帰する場合には、復帰する制御状態がゲームを開始可能な状態か否かに関わらず一律に乱数値レジスタR1Dに格納されている数値データを読み出すようになっているが、復帰する制御状態がゲームを開始可能な状態であるか否かを確認し、復帰する制御状態がゲームを開始可能な状態である場合にのみ乱数値レジスタR1Dに格納されている数値データを読み出すようにしてもよい。   In this embodiment, when returning to the control state before power interruption or after resetting after power-on or reset, it is uniform regardless of whether the control state to be returned is a state where the game can be started or not. The numerical data stored in the random value register R1D is read out, but it is confirmed whether or not the return control state is a state where the game can be started, and the return control state can start the game. The numerical data stored in the random value register R1D may be read only when it is in the state.

また、電源投入後またはリセット後、電断前またはリセット前の制御状態に復帰した時点で乱数ラッチフラグが設定されているか否か、すなわちゲームの開始が許可される前にラッチされた数値データが乱数値レジスタR1Dに格納されているか否かを確認し、乱数ラッチフラグが設定されている場合にのみ、乱数値レジスタR1Dに格納されている数値データを読み出すようになっているが、電源投入後またはリセット後、電断前またはリセット前の制御状態に復帰した時点で一律に乱数値レジスタR1Dに格納されている数値データを読み出すようにしてもよい。さらには、電源投入後またはリセット後、電断前またはリセット前の制御状態に復帰するか否かに関わらず、一律に乱数値レジスタR1Dに格納されている数値データを読み出すようにしてもよい。   Also, whether or not the random number latch flag is set when the power is turned on or reset, and the control state before power interruption or reset is restored, that is, the numerical data latched before the start of the game is permitted is disturbed. Whether or not the data is stored in the numerical value register R1D is checked, and the numerical value data stored in the random number value register R1D is read only when the random number latch flag is set. Thereafter, the numerical data stored in the random number register R1D may be read out uniformly when the control state before power interruption or before resetting is restored. Furthermore, the numerical data stored in the random value register R1D may be read out uniformly regardless of whether the control state before power interruption or before reset is restored after power-on or reset.

メイン制御部41は、ゲームを開始可能な状態でスタートスイッチ7が操作されたか否かをスタートスイッチ7の立上りを示す立上りエッジが設定されているか否かに基づいて判定する。   The main control unit 41 determines whether or not the start switch 7 is operated in a state where the game can be started, based on whether or not a rising edge indicating the rising of the start switch 7 is set.

スタートスイッチ7の立上りエッジは、一定間隔毎に割り込んで実行するタイマ割込処理(メイン)4回に1回毎(約2.24ms毎)に実行するスイッチ入力判定処理において、スタートスイッチ7の検出状態に基づく確定データがOFFからONに変化したことを条件に設定される。確定データは、スイッチ入力判定処理毎に前回の検出状態と今回の状態が一致する場合にのみ更新されるデータであることから、スタートスイッチ7の立上りエッジは、スタートスイッチ7の検出状態がOFFの状態である場合に、スイッチ入力判定処理において2回連続してスタートスイッチ7のONが検知されることで設定されることとなる。   The rising edge of the start switch 7 is detected by the start switch 7 in the switch input determination process that is executed once every four times (about 2.24 ms). It is set on condition that the confirmed data based on the state has changed from OFF to ON. Since the deterministic data is data that is updated only when the previous detection state and the current state match each time the switch input determination process is performed, the rising edge of the start switch 7 indicates that the detection state of the start switch 7 is OFF. When the switch is in the state, it is set by detecting the ON of the start switch 7 twice in succession in the switch input determination process.

一方、スイッチ入力判定処理の実行間隔は約2.24msであることから、スタートスイッチ7がONとなってから最低でも約2.24ms以上ONが継続して検知されることを条件にスタートスイッチ7の立上りエッジが設定され、スタートスイッチ7の操作が検出されることとなる。   On the other hand, since the execution interval of the switch input determination process is about 2.24 ms, the start switch 7 is provided on condition that the ON is continuously detected for at least about 2.24 ms after the start switch 7 is turned on. Rising edge is set, and the operation of the start switch 7 is detected.

このように本実施の形態では、図45に示すように、ゲームを開始可能な状態においてスタートスイッチ7のONが一定期間(最低でも約2.24ms)以上継続して検知されたことを条件に、スタートスイッチ7の操作が検出され、ゲームが開始されるようになっており、静電気などのノイズによってスタートスイッチ7のONが誤って検出されたにも関わらず、ゲームが開始してしまうことを防止できる。   As described above, in the present embodiment, as shown in FIG. 45, on condition that the start switch 7 is continuously detected for a certain period (at least about 2.24 ms) in a state where the game can be started. The operation of the start switch 7 is detected and the game is started, and the game starts even though the start switch 7 is erroneously detected due to noise such as static electricity. Can be prevented.

なお、本実施の形態では、ゲームを開始可能な状態においてスタートスイッチ7のONが一定期間(最低でも約2.24ms)以上継続して検知されたことを条件に、スタートスイッチ7の操作が検出され、ゲームが開始されるようになっているが、たとえば、1回のスイッチ入力判定処理においてスタートスイッチ7の検出状態を複数回確認し、全てにおいてONが判定されたことを条件に、スタートスイッチの操作が検出され、ゲームが開始されるようにしてもよく、このような構成であっても静電気などのノイズによってスタートスイッチ7のONが誤って検出されたにも関わらず、ゲームが開始してしまうことを防止できる。   In the present embodiment, the operation of the start switch 7 is detected on the condition that the start switch 7 is continuously turned on for a certain period (at least about 2.24 ms) in a state where the game can be started. The game is started. For example, the start switch is confirmed on the condition that the detection state of the start switch 7 is confirmed a plurality of times in one switch input determination process and all of them are determined to be ON. The operation may be detected and the game may be started. Even in such a configuration, the game starts even though the start switch 7 is erroneously detected due to noise such as static electricity. Can be prevented.

次に、サブ制御部91のサブCPU91aが実行する各種制御内容を、図46〜図52のフローチャートに基づいて以下に説明する。   Next, various control contents executed by the sub CPU 91a of the sub control unit 91 will be described below based on the flowcharts of FIGS.

サブCPU91aは、サブ制御部91にリセット回路95からリセット信号が入力されると、図46に示す起動処理(サブ)を行なう。   When a reset signal is input from the reset circuit 95 to the sub control unit 91, the sub CPU 91a performs a startup process (sub) shown in FIG.

起動処理(サブ)では、内蔵デバイスや周辺IC、割込モード、スタックポインタ等を初期化した後(Sr1)、RAM91cへのアクセスを許可する(Sr2)。そして、RAM91cの全ての格納領域のRAMパリティを計算し(Sr3)、RAMパリティが0か否かを判定する(Sr4)。   In the startup process (sub), the built-in device, peripheral IC, interrupt mode, stack pointer, etc. are initialized (Sr1), and then access to the RAM 91c is permitted (Sr2). Then, the RAM parity of all the storage areas of the RAM 91c is calculated (Sr3), and it is determined whether or not the RAM parity is 0 (Sr4).

RAM91cのデータが正常であれば、RAMパリティが0になるはずであり、Sr4のステップにおいてRAMパリティが0であれば、RAM91cに格納されているデータが正常であるので、Sr5のステップに進み、電断前の制御状態を復帰させる。Sr5のステップでは、制御パターン格納領域に設定されている制御パターンではなく、復旧中パターンAに応じて演出装置の出力制御を行なった後、Sr9のステップに進む。   If the data in the RAM 91c is normal, the RAM parity should be 0. If the RAM parity is 0 in the step Sr4, the data stored in the RAM 91c is normal, and the process proceeds to the step Sr5. Restore the control state before power interruption. In step Sr5, output control of the effect device is performed according to the restoring pattern A, not the control pattern set in the control pattern storage area, and then the process proceeds to step Sr9.

Sr4のステップにおいてRAMパリティが0でなければ、RAM91cに格納されているデータが正常ではないので、RAM91cを初期化した後(Sr6)、制御パターン格納領域にパターン0を設定し(Sr7)、制御パターン格納領域に設定されているパターン0ではなく、復旧中パターンBに応じて演出装置の出力制御を行なった後、Sr9のステップに進む。   If the RAM parity is not 0 in the step of Sr4, the data stored in the RAM 91c is not normal. Therefore, after initialization of the RAM 91c (Sr6), the pattern 0 is set in the control pattern storage area (Sr7), and the control is performed. After the output control of the effect device is performed according to the pattern B being restored, not the pattern 0 set in the pattern storage area, the process proceeds to step Sr9.

Sr9のステップでは、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれかの受信待ちである旨を示す復旧待ちフラグをRAM91cに設定し、割込を許可する(Sr10)。   In step Sr9, a recovery waiting flag indicating that a return command, an error command indicating RAM abnormality or random number circuit abnormality or a setting start command is waiting to be received is set in the RAM 91c, and interruption is permitted (Sr10). .

その後、タイマ割込処理(サブ)において復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれかの受信が判定され、復旧待ちフラグがクリアされるか、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれも受信せずに復旧待ち時間が経過するまで待機し(Sr11、Sr12)、Sr11のステップにおいて復旧待ちフラグが設定されていないと判定された場合、すなわち復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれかを受信した場合には、ループ処理に移行する。   After that, in the timer interrupt process (sub), it is determined whether a return command, an error command indicating a RAM error or a random number circuit error, or a setting start command is received, and a recovery waiting flag is cleared, a return command, a RAM error Alternatively, it waits until the recovery waiting time elapses without receiving any error command or setting start command indicating a random circuit error (Sr11, Sr12), and it is determined that the recovery waiting flag is not set in the step of Sr11. In other words, if any of a return command, an error command indicating a RAM error or a random number circuit error, or a setting start command is received, the process proceeds to a loop process.

また、Sr12のステップにおいて復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれも受信せずに復旧待ち時間が経過したと判定した場合には、遊技制御基板40と正常に接続されていない旨を報知する接続エラー報知状態に移行する。   If it is determined in step Sr12 that the recovery waiting time has passed without receiving any of the return command, the error command indicating the RAM abnormality or the random number circuit abnormality, or the setting start command, the game control board 40 is operated normally. It shifts to a connection error notification state for notifying that it is not connected.

次に、サブCPU91aが1.12msの間隔で定期的に実行するタイマ割込処理(サブ)を、図47のフローチャートに基づいて以下に説明する。   Next, timer interrupt processing (sub) that is periodically executed by the sub CPU 91a at intervals of 1.12 ms will be described based on the flowchart of FIG.

図47に示すように、タイマ割込処理(サブ)においては、まず、電断割込を禁止し(Ss1)、受信用バッファにコマンドが格納されているか否か、すなわちメインCPU41aからコマンドを受信しているか否かを判定する(Ss2)。Ss2のステップにおいて受信用バッファにコマンドが格納されていなければ、復旧待ちフラグが設定されているか否かを判定し(Ss3)、復旧待ちフラグが設定されていなければ、Ss43のステップに進み、復旧待ちフラグが設定されていれば、Ss47のステップに進む。   As shown in FIG. 47, in the timer interrupt process (sub), first, a power interruption interrupt is prohibited (Ss1), and whether a command is stored in the reception buffer, that is, a command is received from the main CPU 41a. It is determined whether or not (Ss2). If no command is stored in the reception buffer in step Ss2, it is determined whether or not a recovery waiting flag is set (Ss3). If a recovery waiting flag is not set, the process proceeds to step Ss43 to recover. If the wait flag is set, the process proceeds to step Ss47.

Ss2のステップにおいて受信用バッファにコマンドが格納されていれば、受信用バッファからコマンドを取得し(Ss4)、復旧待ちフラグが設定されているか否かを判定し(Ss5)、復旧待ちフラグが設定されていなければ、Ss19のステップに進む。   If a command is stored in the reception buffer in the step of Ss2, the command is acquired from the reception buffer (Ss4), it is determined whether or not the recovery waiting flag is set (Ss5), and the recovery waiting flag is set. If not, the process proceeds to step Ss19.

Ss5のステップにおいて復旧待ちフラグが設定されていれば、取得したコマンドが復帰コマンドか否かを判定し(Ss6)、復帰コマンドでなければSs9のステップに進み、復帰コマンドであれば、復旧待ちフラグをクリアして(Ss7)、後述する検出状態格納領域と後述する操作検出フラグ、時間経過フラグ、連続操作カウンタ、操作時間カウンタからなる検出履歴とを初期化し(Ss8)、Ss40のステップに進む。   If the recovery wait flag is set in step Ss5, it is determined whether or not the acquired command is a return command (Ss6). If it is not a return command, the process proceeds to step Ss9. Is cleared (Ss7), and a detection state storage area to be described later and an operation history flag, a time lapse flag, a continuous operation counter, and a detection history made up of an operation time counter to be described later are initialized (Ss8), and the process proceeds to step Ss40.

Ss9のステップでは、取得したコマンドが設定開始コマンドか否かを判定し、設定開始コマンドでなければSs14のステップに進み、設定開始コマンドであれば、復旧待ちフラグをクリアして(Ss10)、RAM91cを初期化し(Ss11)、管理者モードに制御されている旨を示す管理者モードをRAM91cに設定し(Ss12)、制御パターン格納領域に後述する管理者モード画面の表示などが行なわれる管理者用パターンを設定し(Ss13)、Ss40のステップに進む。   In step Ss9, it is determined whether or not the acquired command is a setting start command. If it is not a setting start command, the process proceeds to step Ss14. If the command is a setting start command, the recovery waiting flag is cleared (Ss10), and the RAM 91c. (Ss11), an administrator mode indicating that the administrator mode is controlled is set in the RAM 91c (Ss12), and an administrator mode screen (to be described later) is displayed in the control pattern storage area. A pattern is set (Ss13), and the process proceeds to step Ss40.

Ss14のステップでは、取得したコマンドがRAM異常あるいは乱数回路異常エラーを示すエラーコマンドか否かを判定し、RAM異常あるいは乱数回路異常エラーを示すエラーコマンドでなければ、受信用バッファに格納されているコマンドのうち今回取得したコマンドをクリアし(Ss18)、Ss47のステップに進む。   In step Ss14, it is determined whether or not the acquired command is an error command indicating a RAM abnormality or a random circuit abnormality error. If it is not an error command indicating a RAM abnormality or a random circuit abnormality error, it is stored in the reception buffer. Of the commands, the command acquired this time is cleared (Ss18), and the process proceeds to step Ss47.

Ss14のステップにおいて取得したコマンドがRAM異常あるいは乱数回路異常エラーを示すエラーコマンドであれば、復旧待ちフラグをクリアして(Ss15)、RAM91cを初期化し(Ss16)、制御パターン格納領域にエラーパターンを設定し(Ss17)、Ss40のステップに進む。   If the command acquired in step Ss14 is an error command indicating a RAM error or random circuit error, the recovery waiting flag is cleared (Ss15), the RAM 91c is initialized (Ss16), and an error pattern is stored in the control pattern storage area. Set (Ss17), and proceed to step Ss40.

Ss19のステップでは、取得したコマンドが遊技状態コマンドか否かを判定し、遊技状態コマンドでなければSs24のステップに進み、遊技状態コマンドであれば、遊技状態コマンドから特定される次ゲームの遊技状態をRAM91cに設定し(Ss20)、管理者モードが設定されているか否かを判定する(Ss21)。   In step Ss19, it is determined whether the acquired command is a gaming state command. If it is not a gaming state command, the process proceeds to step Ss24. If it is a gaming state command, the gaming state of the next game specified from the gaming state command is determined. Is set in the RAM 91c (Ss20), and it is determined whether or not the administrator mode is set (Ss21).

Ss21のステップにおいて管理者モードが設定されていなければSs40のステップに進み、管理者モードが設定されていれば、制御パターン格納領域にパターン0を設定し(Ss22)、管理者モードをクリアして(Ss23)、Ss40のステップに進む。   If the administrator mode is not set in step Ss21, the process proceeds to step Ss40. If the administrator mode is set, pattern 0 is set in the control pattern storage area (Ss22), and the administrator mode is cleared. (Ss23), go to step Ss40.

Ss24のステップでは、取得したコマンドが確認開始コマンドか否かを判定し、確認開始コマンドでなければSs28のステップに進み、確認開始コマンドであれば、制御パターン格納領域に設定されている制御パターンを待避し(Ss25)、RAM91cに管理者モードを設定し(Ss26)、制御パターン格納領域に管理者用パターンを設定し(Ss27)、Ss40のステップに進む。   In step Ss24, it is determined whether or not the acquired command is a confirmation start command. If it is not a confirmation start command, the process proceeds to step Ss28. If it is a confirmation start command, the control pattern set in the control pattern storage area is determined. Save (Ss25), set the manager mode in the RAM 91c (Ss26), set the manager pattern in the control pattern storage area (Ss27), and proceed to step Ss40.

Ss28のステップでは、取得したコマンドがエラーの発生を示すエラーコマンドか否かを判定し、エラーの発生を示すエラーコマンドでなければSs31のステップに進み、エラーの発生を示すエラーコマンドであれば、制御パターン格納領域に設定されている制御パターンを待避し(Ss29)、制御パターン格納領域にエラーパターンを設定し(Ss30)、Ss40のステップに進む。   In step Ss28, it is determined whether or not the acquired command is an error command indicating the occurrence of an error. If it is not an error command indicating the occurrence of an error, the process proceeds to step Ss31, and if it is an error command indicating the occurrence of an error, The control pattern set in the control pattern storage area is saved (Ss29), an error pattern is set in the control pattern storage area (Ss30), and the process proceeds to step Ss40.

Ss31のステップでは、取得したコマンドがエラーの解除を示すエラーコマンドか否かを判定し、エラーの解除を示すエラーコマンドであればSs34のステップに進み、エラーの解除を示すエラーコマンドでなければ、取得したコマンドが確認終了コマンドか否かを判定する(Ss32)。Ss32のステップにおいて取得したコマンドが確認終了コマンドでなければSs35のステップに進み、確認終了コマンドであれば、管理者モードをクリアし(Ss33)、Ss34のステップに進む。Ss34のステップでは、待避していた制御パターンを制御パターン格納領域に復帰させ、Ss40のステップに進む。   In step Ss31, it is determined whether or not the acquired command is an error command indicating error cancellation. If the command is an error command indicating error cancellation, the process proceeds to step Ss34, and if it is not an error command indicating error cancellation, It is determined whether the acquired command is a confirmation end command (Ss32). If the command acquired in step Ss32 is not a confirmation end command, the process proceeds to step Ss35, and if it is a confirmation end command, the administrator mode is cleared (Ss33), and the process proceeds to step Ss34. In step Ss34, the saved control pattern is returned to the control pattern storage area, and the process proceeds to step Ss40.

Ss35のステップでは、取得したコマンドが内部当選コマンドか否かを判定し、内部当選コマンドでなければSs37のステップに進み、内部当選コマンドであれば、ROM91bに格納されている演出テーブルを参照し、内部当選コマンドが示す内部抽選の結果に応じた選択率にて演出パターンを選択し、選択した演出パターンを当該ゲームの演出パターンあるいは当該ゲームから複数ゲーム(たとえば5ゲーム)に亘る演出パターン(連続演出パターン)としてRAM91cに設定する演出パターン選択処理を実行し(Ss36)、Ss39のステップに進む。   In the step of Ss35, it is determined whether or not the acquired command is an internal winning command, and if it is not an internal winning command, the process proceeds to the step of Ss37, and if it is an internal winning command, the effect table stored in the ROM 91b is referred to. An effect pattern is selected at a selection rate according to the result of the internal lottery indicated by the internal winning command, and the selected effect pattern is an effect pattern of the game or an effect pattern (for example, 5 games) from the game (continuous effect) The effect pattern selection process set in the RAM 91c as the pattern) is executed (Ss36), and the process proceeds to the step Ss39.

Ss37のステップでは、取得したコマンドが操作検出コマンドか否かを判定し、操作検出コマンドでなければSs39のステップに進み、操作検出コマンドであれば、操作スイッチの検出状態を更新する操作検出処理1を実行し(Ss38)、Ss42のステップに進む。   In step Ss37, it is determined whether or not the acquired command is an operation detection command. If it is not an operation detection command, the process proceeds to step Ss39. If it is an operation detection command, operation detection processing 1 for updating the detection state of the operation switch is performed. Is executed (Ss38), and the process proceeds to step Ss42.

Ss39のステップでは、ROM91bに格納されている制御パターンテーブルを参照し、RAM91cに設定されている演出パターンおよび取得したコマンドに対応して登録されている制御パターンを読み出して制御パターン格納領域の制御パターンを更新する制御パターン更新処理を実行し、Ss40のステップに進む。   In step Ss39, the control pattern table stored in the ROM 91b is referred to, the effect pattern set in the RAM 91c and the control pattern registered corresponding to the acquired command are read out, and the control pattern in the control pattern storage area is read out. Is executed, and the process proceeds to step Ss40.

Ss40のステップでは、制御パターン格納領域に設定されている制御パターンと演出装置の出力状態とが一致するか否かを判定し、制御パターン格納領域に設定されている制御パターンと演出装置の出力状態が一致する場合には、Ss42のステップに進み、一致しない場合には、制御パターン格納領域に設定されている制御パターンに応じて演出装置の出力制御を行ない(Ss41)、Ss42のステップに進む。   In step Ss40, it is determined whether or not the control pattern set in the control pattern storage area matches the output state of the rendering device, and the control pattern set in the control pattern storage region and the output state of the rendering device are determined. If they match, the process proceeds to step Ss42. If they do not match, output control of the effect device is performed according to the control pattern set in the control pattern storage area (Ss41), and the process proceeds to step Ss42.

Ss42のステップでは、受信用バッファに格納されているコマンドのうち今回取得したコマンドをクリアし、Ss43のステップに進む。Ss43のステップでは、操作スイッチが一定時間継続して操作されたか否かを監視する操作検出処理2を実行し、Ss44のステップに進む。   In the step of Ss42, the command acquired this time among the commands stored in the reception buffer is cleared, and the process proceeds to the step of Ss43. In step Ss43, the operation detection process 2 for monitoring whether or not the operation switch has been operated for a predetermined time is executed, and the process proceeds to step Ss44.

Ss44のステップでは、管理者モードが設定されているか否かを判定し、管理者モードが設定されていなければ、操作スイッチの検出状態などに応じて操作演出を行なう操作演出処理を実行し(Ss45)、Ss47のステップに進む。Ss44のステップにおいて管理者モードが設定されていれば、操作スイッチの検出状態などに応じて管理情報へのアクセス制御を行なう管理者モード処理を実行し(Ss46)、Ss47のステップに進む。   In step Ss44, it is determined whether or not the administrator mode is set. If the administrator mode is not set, an operation effect process for performing an operation effect according to the detection state of the operation switch is executed (Ss45). ), And proceeds to step Ss47. If the administrator mode is set in the step of Ss44, an administrator mode process for controlling access to the management information according to the detection state of the operation switch is executed (Ss46), and the process proceeds to the step of Ss47.

Ss47のステップでは、各種カウンタの値を更新する処理を行なった後、Ss1のステップにおいて禁止した電断割込を許可して(Ss48)、タイマ割込処理(サブ)を終了する。   In step Ss47, after updating the values of various counters, the interruption interrupt prohibited in step Ss1 is permitted (Ss48), and the timer interruption process (sub) is terminated.

図50は、サブCPU91aが前述したタイマ割込処理(サブ)において実行する操作検出処理1の制御内容を示すフローチャートである。   FIG. 50 is a flowchart showing the control contents of the operation detection process 1 executed in the timer interrupt process (sub) described above by the sub CPU 91a.

操作検出処理1では、操作スイッチの検出状態の変化状況(前回の検出状態と今回の検出状態)が操作スイッチ毎に格納される検出状態格納領域における各操作スイッチの検出状態を操作検出コマンドが示す検出状態に合わせて更新する(Ss201)。   In the operation detection processing 1, the operation detection command indicates the detection state of each operation switch in the detection state storage area in which the change state (previous detection state and current detection state) of the operation switch is stored for each operation switch. Update according to the detection state (Ss201).

次いで、更新された検出状態格納領域を参照し、いずれかの操作スイッチの検出状態がOFFからONに変化したか否かを判定し(Ss202)、OFFからONに変化した操作スイッチがなければSs206のステップに進み、OFFからONに変化した操作スイッチがあれば、操作スイッチの操作状態が変化した旨を示す操作検出フラグ(立上りまたは立下り)が操作スイッチ毎に格納される操作検出フラグ格納領域に、OFFからONに変化した操作スイッチに対応して立上りフラグを設定し(Ss203)、連続して操作された回数を各操作スイッチ毎に計数する連続操作カウンタを更新する(Ss204)。詳しくは、今回OFFからONに変化した操作スイッチ以外に対応するカウンタの値をクリアし、今回OFFからONに変化した操作スイッチに対応するカウンタの値を1回加算する。   Next, with reference to the updated detection state storage area, it is determined whether or not the detection state of any of the operation switches has changed from OFF to ON (Ss202). If there is no operation switch that has changed from OFF to ON, Ss206 If there is an operation switch that has changed from OFF to ON, the operation detection flag storage area (rising or falling) indicating that the operation state of the operation switch has changed is stored for each operation switch. Further, a rising flag is set corresponding to the operation switch changed from OFF to ON (Ss203), and a continuous operation counter that counts the number of continuous operations for each operation switch is updated (Ss204). Specifically, the counter values corresponding to those other than the operation switch that has changed from OFF to ON are cleared, and the counter value that corresponds to the operation switch that has changed from OFF to ON is added once.

次いで、各操作スイッチが継続して操作されている時間を計時するための操作時間カウンタのうちOFFからONに変化した操作スイッチに対応するカウンタの値を初期化(0とする)し(Ss205)、Ss206のステップに進む。   Next, the value of the counter corresponding to the operation switch that has changed from OFF to ON among the operation time counters for measuring the time during which each operation switch is continuously operated is initialized (set to 0) (Ss205). , The process proceeds to step Ss206.

Ss206のステップでは、更新された検出状態格納領域を参照し、いずれかの操作スイッチの検出状態がONからOFFに変化したか否かを判定し、ONからOFFに変化した操作スイッチがなければ、図48のフローチャートに復帰し、ONからOFFに変化した操作スイッチがあれば、操作検出フラグ格納領域に、ONからOFFに変化した操作スイッチに対応して立下りフラグを設定し(Ss207)、図48のフローチャートに復帰する。   In step Ss206, the updated detection state storage area is referenced to determine whether the detection state of any operation switch has changed from ON to OFF. If there is no operation switch that has changed from ON to OFF, Returning to the flowchart of FIG. 48, if there is an operation switch changed from ON to OFF, a falling flag is set in the operation detection flag storage area corresponding to the operation switch changed from ON to OFF (Ss207). Returning to the flowchart of FIG.

図51は、サブCPU91aが前述したタイマ割込処理(サブ)において実行する操作検出処理2の制御内容を示すフローチャートである。   FIG. 51 is a flowchart showing the control content of the operation detection process 2 executed by the sub CPU 91a in the timer interrupt process (sub) described above.

操作検出処理2では、検出状態格納領域を参照し、今回の状態がONの操作スイッチがあるか否かを判定し(Ss301)、今回の状態がONの操作スイッチがなければ、図49に示すフローチャートに復帰する。   In the operation detection process 2, it is determined whether or not there is an operation switch whose current state is ON by referring to the detection state storage area (Ss301). If there is no operation switch whose current state is ON, FIG. Return to the flowchart.

Ss301のステップにおいて今回の状態がONの操作スイッチがあれば、今回の状態がONの操作スイッチの操作時間カウンタの値を参照し、当該操作スイッチがONとなってから10秒経過したか否かを判定し(Ss302)、10秒経過していなければ、Ss304のステップに進み、10秒経過していれば10秒経過フラグを設定し(Ss303)、Ss304のステップに進む。   If there is an operation switch whose current state is ON in step Ss301, the value of the operation time counter of the operation switch whose current state is ON is referred to, and whether or not 10 seconds have passed since the operation switch was turned on. (Ss302), if 10 seconds have not elapsed, the process proceeds to step Ss304, and if 10 seconds have elapsed, a 10-second elapsed flag is set (Ss303), and the process proceeds to step Ss304.

Ss304のステップでは、今回の状態がONの操作スイッチの操作時間カウンタの値を参照し、当該操作スイッチがONとなってから5秒経過したか否かを判定し、5秒経過していなければ、Ss306のステップに進み、5秒経過していれば5秒経過フラグを設定し(Ss305)、Ss306のステップに進む。   In step Ss304, the value of the operation time counter of the operation switch whose current state is ON is referred to, and it is determined whether or not 5 seconds have elapsed since the operation switch was turned ON. The process proceeds to step Ss306, and if 5 seconds have elapsed, a 5-second elapsed flag is set (Ss305), and the process proceeds to step Ss306.

Ss306のステップでは、今回の状態がONの操作スイッチの操作時間カウンタの値を参照し、当該操作スイッチがONとなってから3秒経過したか否かを判定し、3秒経過していなければ、図48に示すフローチャートに復帰し、3秒経過していれば3秒経過フラグを設定し(Ss307)、図48に示すフローチャートに復帰する。   In step Ss306, the value of the operation time counter of the operation switch whose current state is ON is referred to, and it is determined whether or not 3 seconds have elapsed since the operation switch was turned ON. 48, if 3 seconds have passed, a 3 second elapsed flag is set (Ss307), and the flow returns to the flowchart shown in FIG.

図52は、サブCPU91aが電断検出回路98からの電圧低下信号が入力されたときに実行する電断割込処理(サブ)の制御内容を示すフローチャートである。   FIG. 52 is a flowchart showing the control contents of the power interruption interrupt process (sub) executed when the sub CPU 91a receives a voltage drop signal from the power interruption detection circuit 98.

電断割込処理(サブ)においては、まず、割込を禁止する(St1)。すなわち電断割込処理(サブ)の開始にともなってその他の割込処理が実行されることを禁止する。次いで、使用している可能性がある全てのレジスタをスタック領域に退避する(St2)。   In the power interruption interruption process (sub), first, interruption is prohibited (St1). That is, other interrupt processes are prohibited from being executed at the start of the power interruption interrupt process (sub). Next, all registers that may be in use are saved in the stack area (St2).

次いで、入力ポートから電圧低下信号の検出データを取得し、電圧低下信号が入力されているか否かを判定する(St3)。この際、電圧低下信号が入力されていなければ、St2においてスタック領域に退避したレジスタを復帰し(St4)、St1のステップにおいて禁止した割込を許可して(St5)、割込前の処理に戻る。   Next, the detection data of the voltage drop signal is acquired from the input port, and it is determined whether or not the voltage drop signal is input (St3). At this time, if the voltage drop signal is not input, the register saved in the stack area at St2 is restored (St4), the interrupt prohibited in the step of St1 is permitted (St5), and the process before the interrupt is performed. Return.

また、St3のステップにおいて電圧低下信号が入力されていれば、全ての出力ポートを初期化する(St6)。次いでRAM91cの全ての格納領域の排他的論理和が0になるようにRAMパリティ調整用データを計算してセットし(St7)、RAM91cへのアクセスを禁止する(St8)。   If a voltage drop signal is input in step St3, all output ports are initialized (St6). Next, the RAM parity adjustment data is calculated and set so that the exclusive OR of all the storage areas of the RAM 91c becomes 0 (St7), and access to the RAM 91c is prohibited (St8).

そして、電圧低下信号が入力されているか否かの判定(St9、なお、St9は、St3と同様の処理である)を除いて、何らの処理も行なわないループ処理に入る。すなわち、そのまま電圧が低下すると内部的に動作停止状態になる。よって、電断時に確実にサブCPU91aは動作停止する。また、このループ処理において、電圧が回復し、電圧低下信号が入力されない状態となると、前述した起動処理(サブ)が実行され、RAMパリティが0となれば、元の処理に復帰することとなる。   Then, except for the determination of whether or not the voltage drop signal is input (St9, where St9 is the same processing as St3), the processing enters a loop process in which no processing is performed. That is, when the voltage decreases as it is, the operation is stopped internally. Therefore, the sub CPU 91a reliably stops operation when power is interrupted. Further, in this loop processing, when the voltage recovers and the voltage drop signal is not input, the above-described activation processing (sub) is executed, and when the RAM parity becomes 0, the original processing is restored. .

なお、本実施の形態では、RAM41cへのアクセスを禁止した後、電圧低下信号の出力状況を監視して、電圧低下信号が入力されなくなった場合に電圧の回復を判定し、起動処理(サブ)へ移行するようになっているが、ループ処理において何らの処理も行なわず、ループ処理が行なわれている間に、電圧が回復し、リセット回路95からリセット信号が入力されたことに基づいて、起動処理(サブ)へ移行するようにしてもよい。   In the present embodiment, after prohibiting access to the RAM 41c, the output state of the voltage drop signal is monitored, and when the voltage drop signal is not input, it is determined whether the voltage is restored, and the startup process (sub) However, no processing is performed in the loop processing, and the voltage is recovered while the loop processing is being performed. Based on the fact that the reset signal is input from the reset circuit 95, You may make it transfer to a starting process (sub).

本実施の形態のスロットマシン1は、メインCPU41aがゲームの進行制御を行なう操作スイッチとして1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8Rを備える。また、これら操作スイッチのうちスタートスイッチ7は、設定変更状態において設定値の確定操作にも用いられる。   The slot machine 1 of the present embodiment includes a single BET switch 5, a MAXBET switch 6, a start switch 7, and stop switches 8L, 8C, and 8R as operation switches for the main CPU 41a to control the progress of the game. Of these operation switches, the start switch 7 is also used for a setting value confirming operation in the setting change state.

これらスイッチ類の操作は、ゲームの終了時から次回のゲーム終了時までを構成する全ての制御状態において常にゲームの進行制御に関与するものではなく、制御状態に応じてゲームの進行制御に関与することもあれば関与しないことがある。   The operation of these switches is not always related to the progress control of the game in all control states constituting from the end of the game to the end of the next game, but is related to the progress control of the game according to the control state. Sometimes it may not be involved.

図53に示すように、ゲーム終了後(設定変更後)からゲーム開始までの制御状態においては、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7の操作がゲームの進行制御に関与し、ストップスイッチ8L、8C、8Rの操作はゲームの進行制御に関与しない。さらにゲーム終了後(設定変更後)からゲーム開始までの制御状態であっても、賭数が規定数に到達していない状態、すなわち賭数をさらに加算できる状態であり、かつゲームの開始条件が成立していない状態では、1枚BETスイッチ5、MAXBETスイッチ6の操作がゲームの進行制御に関与するが、スタートスイッチ7の操作はゲームの進行制御に関与せず、一方で、賭数が規定数に到達している状態、すなわち賭数を加算できない状態であり、かつゲームの開始条件が成立している状態では、スタートスイッチ7の操作がゲームの進行制御に関与するが、1枚BETスイッチ5、MAXBETスイッチ6の操作はゲームの進行制御に関与しない。   As shown in FIG. 53, in the control state from the end of the game (after changing the setting) to the start of the game, the operation of the single BET switch 5, the MAXBET switch 6, and the start switch 7 is involved in the progress control of the game and is stopped. The operation of the switches 8L, 8C, 8R is not involved in the game progress control. Furthermore, even in the control state from the end of the game (after setting change) to the start of the game, the bet number has not reached the specified number, that is, the bet number can be further added, and the game start condition is In a state where it is not established, the operation of the single BET switch 5 and the MAXBET switch 6 is involved in the game progress control, but the operation of the start switch 7 is not involved in the game progress control, while the bet number is defined. In the state where the number has been reached, that is, in the state where the bet number cannot be added and the game start condition is satisfied, the operation of the start switch 7 is involved in the game progress control. 5. The operation of the MAXBET switch 6 is not related to the progress control of the game.

また、ゲーム開始後からゲーム終了までの制御状態では、ストップスイッチ8L、8C、8Rの操作がゲームの進行制御に関与し、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7の操作はゲームの進行制御に関与しない。さらにゲーム開始後からゲーム終了までの制御状態であっても、全リールが回転中であれば、ストップスイッチ8L、8C、8Rの全ての操作がゲームの進行制御に関与するが、いずれかのリールが停止している状態であれば、ストップスイッチ8L、8C、8Rのうち回転中のリールに対応するストップスイッチのみがゲームの進行制御に関与し、停止済みのリールに対応するストップスイッチはゲームの進行制御に関与しない。   In the control state from the start of the game to the end of the game, the operation of the stop switches 8L, 8C, 8R is involved in the game progress control, and the operation of the single BET switch 5, the MAXBET switch 6, and the start switch 7 Not involved in progress control. Furthermore, even in the control state from the start of the game to the end of the game, if all the reels are rotating, all the operations of the stop switches 8L, 8C, 8R are involved in the progress control of the game. In the stop state, only the stop switch corresponding to the rotating reel among the stop switches 8L, 8C, and 8R is involved in the progress control of the game, and the stop switch corresponding to the stopped reel is the game switch. Not involved in progress control.

なお、制御状態とは、ゲーム終了後(設定変更後)からゲーム開始までの制御状態、ゲーム開始後からゲーム終了までの制御状態に限らず、ゲーム終了後(設定変更後)からゲーム開始までの制御状態のうち賭数が規定数に到達していない状態、すなわち賭数をさらに加算できる状態であり、かつゲームの開始条件が成立していない制御状態、賭数が規定数に到達している状態、すなわち賭数を加算できない状態であり、かつゲームの開始条件が成立している制御状態、ゲーム開始後からゲーム終了までの制御状態のうち全リールが回転中の制御状態、左リールのみが停止している制御状態、中リールのみが停止している制御状態、右リールのみが停止している制御状態、左、中リールが停止している制御状態、左、右リールが停止している制御状態、右、中リールが停止している制御状態、ウェイト期間の状態、メダルの払出期間の状態のそれぞれについても該当する。さらに、ゲーム終了後(設定変更後)からゲーム開始までの制御状態において1枚BETスイッチ5やMAXBETスイッチ6の操作がゲームの進行制御に関与しない状態であっても、規定数の賭数が既に設定されているために1枚BETスイッチ5やMAXBETスイッチ6の操作がゲームの進行制御に関与しない制御状態と、規定数の賭数が未だ設定されてはいないが、クレジットが残存していないために1枚BETスイッチ5やMAXBETスイッチ6の操作がゲームの進行制御に関与しない制御状態とは、異なる制御状態といえる。   The control state is not limited to the control state from the end of the game (after changing the setting) to the start of the game, the control state from the start of the game to the end of the game, and from the end of the game (after changing the setting) to the start of the game. Among the control states, the number of bets has not reached the specified number, that is, a state in which the number of bets can be further added, and the control condition in which the game start condition is not satisfied, the number of bets has reached the specified number. State, that is, a state in which the number of bets cannot be added and a game start condition is satisfied, a control state in which all reels are rotating among control states from the start of the game to the end of the game, only the left reel Stopped control state, control state where only the middle reel is stopped, control state where only the right reel is stopped, control state where the left and middle reels are stopped, left and right reels are stopped Control status, right, control state middle reel is stopped, the wait period state, applicable also for each of the states of the payout period medal. Furthermore, even if the operation of the single BET switch 5 or the MAX BET switch 6 is not involved in the progress control of the game in the control state from the end of the game (after the setting change) to the start of the game, the specified number of bets has already been obtained. The control state in which the operation of the single BET switch 5 or the MAXBET switch 6 is not involved in the progress control of the game and the specified number of bets has not been set yet, but no credit remains. In other words, it can be said that the control state is different from the control state in which the operation of the single BET switch 5 or the MAXBET switch 6 is not related to the progress control of the game.

また、設定変更状態では、スタートスイッチ7の操作が設定値の変更制御に関与し、1枚BETスイッチ5、MAXBETスイッチ6、ストップスイッチ8L、8C、8Rの操作はゲームの進行制御に関与しない。さらに設定変更状態であっても、設定値が確定する前であればスタートスイッチ7の操作が設定値の変更制御に関与するが、設定値が確定した後は、いずれの操作スイッチも設定値の変更制御に関与しない。また、設定確認状態では、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8Rのいずれの操作もゲームの進行制御に関与しない。   In the setting change state, the operation of the start switch 7 is involved in the setting value change control, and the operation of the single BET switch 5, the MAXBET switch 6, and the stop switches 8L, 8C, 8R is not involved in the game progress control. Even in the setting change state, the operation of the start switch 7 is involved in the change control of the set value before the set value is determined. However, after the set value is determined, all the operation switches Not involved in change control. Further, in the setting confirmation state, any operation of the single BET switch 5, the MAXBET switch 6, the start switch 7, the stop switches 8L, 8C, and 8R is not involved in the game progress control.

メインCPU41aは、これら操作スイッチを、一定時間間隔毎に割り込んで実行されるタイマ割込処理(メイン)中に実行するスイッチ入力判定処理(図36参照)において検出する。スイッチ入力判定処理では、操作スイッチの検出状態を監視し、いずれかの操作スイッチがOFFからONに変化した場合に、該当する操作スイッチがOFFからONに変化した旨を示すエッジデータ(立上りエッジ)を設定し、ONからOFFに変化した場合に、該当する操作スイッチがONからOFFに変化した旨を示すエッジデータ(立下りエッジ)を設定する。   The main CPU 41a detects these operation switches in a switch input determination process (see FIG. 36) executed during a timer interrupt process (main) executed by interrupting at regular time intervals. In the switch input determination processing, the detection state of the operation switch is monitored, and when any operation switch changes from OFF to ON, edge data (rising edge) indicating that the corresponding operation switch has changed from OFF to ON Is set, and edge data (falling edge) indicating that the corresponding operation switch has changed from ON to OFF is set.

そして、メインCPU41aは、ゲーム処理において現段階の制御状態に応じてゲームの進行制御に関与する操作スイッチの立上りエッジが設定されているか否かに基づいて当該操作スイッチの操作がなされたか否かを判定し、当該操作スイッチの操作がなされていると判定した場合には、エッジデータを全てクリアし、当該操作スイッチの操作に応じたゲームの進行制御を実行するとともに、ゲームの進行制御に伴うコマンド(BETコマンド、内部当選コマンド、リール停止コマンドなど)を通常コマンド送信用バッファに設定する。   Then, the main CPU 41a determines whether or not the operation switch has been operated based on whether or not the rising edge of the operation switch related to the progress control of the game is set in accordance with the current control state in the game process. If it is determined and the operation switch is determined to be operated, all edge data is cleared, the game progress control according to the operation switch operation is executed, and a command associated with the game progress control is executed. (BET command, internal winning command, reel stop command, etc.) are set in the normal command transmission buffer.

メインCPU41a、リール回転処理において回転中のリールに対応するストップスイッチの立上りエッジが設定されていると判定した場合に、他の操作スイッチの検出状態がONであるか否かを判定し、他の操作スイッチの検出状態がONであると判定した場合、すなわち他の操作スイッチが操作されている状態で回転中のリールに対応するストップスイッチの操作が検出された場合には、有効な停止操作とせず、対応するリールの停止制御を行なわないようになっている。   When the main CPU 41a determines that the rising edge of the stop switch corresponding to the reel being rotated is set in the reel rotation processing, the main CPU 41a determines whether the detection state of the other operation switches is ON, If it is determined that the detection state of the operation switch is ON, that is, if an operation of a stop switch corresponding to a rotating reel is detected while another operation switch is being operated, the stop operation is valid. Therefore, the corresponding reel stop control is not performed.

これは、ストップスイッチ8L、8C、8Rのうち2つ以上の操作が検出された場合に、いずれかの操作に基づく停止制御を優先すると、他方の停止制御が遅れてしまい、リールの停止態様が不自然になる等の問題が生じ得る虞があるためであり、上記のように他の操作スイッチが操作されている状態で回転中のリールに対応するストップスイッチの操作が検出されても、対応するリールの停止制御を行なわないことで、一方のリールの停止制御によって他方のリールの停止制御が遅れることがないようになっている。   This is because, when two or more operations are detected among the stop switches 8L, 8C, and 8R, if priority is given to the stop control based on one of the operations, the other stop control is delayed, and the stop mode of the reel This is because there is a possibility that a problem such as unnaturalness may occur, and even if the operation of the stop switch corresponding to the rotating reel is detected while the other operation switches are operated as described above, Since the stop control of the reel to be performed is not performed, the stop control of the other reel is not delayed by the stop control of the one reel.

また、メインCPU41aは、リール回転処理において回転中のリールに対応するストップスイッチの立上りエッジが設定されていると判定した場合に、他のストップスイッチに限らず、他の操作スイッチの検出状態がONであるか否かを判定し、他の操作スイッチのいずれかの検出状態がONであると判定した場合には、有効な停止操作とせず、対応するリールの停止制御を行なわないようになっており、操作スイッチの検出状態のうちストップスイッチの検出状態のみを抽出することなく、たとえば、ONを1とし、OFFを0とした場合に、操作スイッチ全ての検出状態の総和を算出し、2以上であれば、他の操作スイッチが検出状態と判定するなど、操作スイッチ全ての検出状態を一括して判定することが可能となる。   Further, when the main CPU 41a determines that the rising edge of the stop switch corresponding to the reel being rotated is set in the reel rotation process, the detection state of the other operation switches is not limited to the other stop switches. If it is determined whether or not the detection state of any of the other operation switches is ON, the effective stop operation is not performed and the corresponding reel stop control is not performed. Without extracting only the detection state of the stop switch from the detection state of the operation switch, for example, when ON is set to 1 and OFF is set to 0, the sum of the detection states of all the operation switches is calculated and 2 or more If so, it is possible to collectively determine the detection states of all the operation switches, such as determining that the other operation switches are in the detection state.

また、メインCPU41aは、設定変更状態において、未だ設定値が確定していない段階で、設定値を確定させるためのスタートスイッチ7の立上りエッジが設定されていると判定した場合に、他の操作スイッチの検出状態がONであるか否かを判定し、他の操作スイッチのいずれかの検出状態がONであると判定した場合には、設定値を確定させる制御を行なわないようになっている。   When the main CPU 41a determines that the rising edge of the start switch 7 for determining the set value is set at a stage where the set value has not yet been determined in the setting change state, the other operation switch It is determined whether or not the detection state is ON, and if it is determined that the detection state of any of the other operation switches is ON, control for confirming the set value is not performed.

これは、後述のように設定変更状態においてサブCPU91a側で制御される管理者モードの操作手段として本来であればメインCPU41aがゲームの進行制御に用いる操作スイッチを流用しているためであり、上記のように未だ設定値が確定していない段階で、他の操作スイッチが操作されている状態で設定値を確定させるためのスタートスイッチ7が操作されても設定値の確定制御を行なわないことで、管理者モードの操作に伴い、誤ってスタートスイッチ7も同時に操作してしまった場合でも、設定値は確定せず、設定値が未設定の段階が維持されるので、管理者が予期せずに設定値を確定させてしまうことがなく、誤操作によって再度、電源を落として最初から設定変更状態としなければならないといった煩わしさを軽減できるようになっている。   This is because, as will be described later, the operation switch used by the main CPU 41a for controlling the progress of the game is diverted as the operation means in the manager mode controlled on the sub CPU 91a side in the setting change state. When the set value is not yet finalized as in the case where the start switch 7 for finalizing the set value is operated while the other operation switches are being operated, the final control of the set value is not performed. Even if the start switch 7 is mistakenly operated simultaneously with the operation of the administrator mode, the setting value is not fixed and the setting value is not set, so that the administrator does not expect it. The setting value is not finalized, and the troublesomeness of having to turn off the power again and change to the setting state from the beginning can be reduced. It has become.

メインCPU41aは、タイマ割込処理(メイン)中にサブCPU91aに対してコマンドを送信するコマンド送信処理(図37参照)を実行する。コマンド送信処理では、通常コマンド送信用バッファにコマンドが格納されているか否か、すなわちゲームの進行制御に伴うコマンドが格納されているか否かを判定し、通常コマンド送信用バッファにコマンドが格納されていると判定した場合には、通常コマンド送信用バッファに格納されているゲームの進行制御に伴うコマンドをサブCPU91aに対して送信する。   The main CPU 41a executes a command transmission process (see FIG. 37) for transmitting a command to the sub CPU 91a during the timer interrupt process (main). In the command transmission process, it is determined whether or not a command is stored in the normal command transmission buffer, that is, whether or not a command associated with game progress control is stored, and the command is stored in the normal command transmission buffer. If it is determined that the game is in progress, the command associated with the progress control of the game stored in the normal command transmission buffer is transmitted to the sub CPU 91a.

また、コマンド送信処理では、操作検出コマンドの送信時期か否かを判定し、操作検出コマンドの送信時期であれば、操作スイッチの検出状態が変化したか否かに関わらず、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8Rの検出状態を示す確定データを取得し、取得した確定データに基づいて、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8RそれぞれのON/OFFの状態を特定可能な操作検出コマンドを作成して特定コマンド送信用バッファに設定し、直ちにサブCPU91aに対して送信する。操作検出コマンドの送信時期か否かは、RAM41cに割り当てられた送信カウンタの値を参照して判断する。送信カウンタは、コマンド送信処理が実行される毎に1ずつ減算され、その値が0となった際に操作検出コマンドの送信時期であることが特定され、送信カウンタには新たに初期値(本実施の形態では5)が設定される。このため、本実施の形態では、コマンド送信処理が5回実行される毎に1回、その時点の確定データに基づいて操作検出コマンドがサブCPU91aに対して送信されるようになっている。   In the command transmission process, it is determined whether or not the operation detection command is transmitted. If the operation detection command is transmitted, the single BET switch 5 is used regardless of whether or not the detection state of the operation switch is changed. , MAXBET switch 6, start switch 7, stop switch 8L, 8C, 8R acquisition data indicating the detection state, and based on the acquired determination data, single BET switch 5, MAXBET switch 6, start switch 7, stop An operation detection command capable of specifying the ON / OFF state of each of the switches 8L, 8C, and 8R is created, set in the specific command transmission buffer, and immediately transmitted to the sub CPU 91a. Whether or not it is time to transmit the operation detection command is determined by referring to the value of the transmission counter assigned to the RAM 41c. The transmission counter is decremented by 1 each time the command transmission process is executed, and when the value becomes 0, it is specified that the operation detection command is transmitted. In the embodiment, 5) is set. For this reason, in the present embodiment, the operation detection command is transmitted to the sub CPU 91a once every time the command transmission process is executed five times based on the determined data at that time.

前述のように、コマンド送信処理は、タイマ割込処理(メイン)が4回実行される毎に1回実行されるので、操作検出コマンドはタイマ割込処理(メイン)が20回実行される毎に1回送信され、タイマ割込処理(メイン)の実行間隔は、約0.56msであるので、メインCPU41aは、約11.2ms毎に1回、サブCPU91aに対して送信することとなる。   As described above, the command transmission process is executed once every time the timer interrupt process (main) is executed four times. Therefore, the operation detection command is executed every time the timer interrupt process (main) is executed 20 times. Since the execution interval of the timer interrupt process (main) is about 0.56 ms, the main CPU 41a transmits to the sub CPU 91a once every about 11.2 ms.

なお、本実施の形態では、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8Rの確定データを取得して操作検出コマンドを作成しているが、ポート入力処理において検知された1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8Rの入力データを取得して操作検出コマンドを作成してもよい。   In the present embodiment, the operation detection command is generated by acquiring the fixed data of the single BET switch 5, the MAXBET switch 6, the start switch 7, the stop switches 8L, 8C, and 8R. The detected input data of the single BET switch 5, the MAXBET switch 6, the start switch 7, and the stop switches 8L, 8C, and 8R may be acquired to create an operation detection command.

このように本実施の形態では、メインCPU41aが、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8Rが操作されたことを特定可能な操作検出コマンドをサブCPU91aに対して送信することで、サブCPU91aが、それぞれの制御状態においてゲームの進行制御に関与する操作スイッチであるか否かに関わらず、メインCPU41aにより検出される操作スイッチが操作されたことが特定できるようになっており、ゲームの進行制御に関与しない操作スイッチの操作に応じて演出を実行可能である。   Thus, in this embodiment, the main CPU 41a sends an operation detection command that can specify that the single BET switch 5, the MAXBET switch 6, the start switch 7, and the stop switches 8L, 8C, and 8R to the sub CPU 91a. By transmitting to the sub CPU 91a, it is possible to specify that the operation switch detected by the main CPU 41a is operated regardless of whether or not the sub CPU 91a is an operation switch related to game progress control in each control state. Thus, it is possible to produce an effect in response to an operation of an operation switch not involved in the progress control of the game.

また、メインCPU41aは、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8Rのいずれかが操作されたか否かに関わらず、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8RそれぞれのON/OFFの状態を特定可能な操作検出コマンドを定期的に送信することで、サブCPU91aは、これら操作スイッチのON/OFFの状態を定期的に特定できるようになっており、サブCPU91aが操作検出コマンドを取りこぼした場合であっても、次回送信される操作検出コマンドに基づいて全ての操作スイッチについて最新の検出状態を特定することが可能となり、ゲームの進行制御に関与しない操作スイッチの操作に応じた演出を確実に実行することができる。   In addition, the main CPU 41a performs the single-sheet BET switch 5, the MAXBET switch 6, the MAXBET switch 6, the start switch 7, the stop switches 8L, 8C, and 8R, regardless of whether any one of them is operated. By periodically transmitting operation detection commands that can specify the ON / OFF states of the start switch 7 and stop switches 8L, 8C, and 8R, the sub CPU 91a periodically determines the ON / OFF states of these operation switches. Even when the sub CPU 91a misses the operation detection command, it is possible to specify the latest detection state for all the operation switches based on the operation detection command transmitted next time. , According to the operation of the operation switch not involved in the game progress control It is possible to reliably execute the production.

また、操作検出コマンドから、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8R全ての検出状態を特定することが可能であるため、サブCPU91a側で、複数のスイッチの同時操作や特定のスイッチのみの操作といった複数の操作スイッチの操作状況を反映した演出を行なうことが可能となり、操作スイッチの操作を用いた演出を多様なものにできる。   Further, since it is possible to specify the detection state of all the single BET switch 5, MAXBET switch 6, start switch 7, stop switches 8L, 8C, and 8R from the operation detection command, a plurality of switches are provided on the sub CPU 91a side. It is possible to produce effects that reflect the operation status of a plurality of operation switches, such as simultaneous operation of a single switch or operation of only a specific switch, and various effects using operation of the operation switches can be made.

また、操作検出コマンドは、メインCPU41aが一定間隔毎に実行するタイマ割込処理(メイン)が実行される毎に送信されるのではなく、タイマ割込処理(メイン)が予め定められた回数(本実施の形態では20回)実行される毎に送信されるので、操作検出コマンドの送信によってメインCPU41aの負荷が極端に増大してしまうことを防止できる。   In addition, the operation detection command is not transmitted every time a timer interrupt process (main) executed by the main CPU 41a at regular intervals is executed, but the timer interrupt process (main) is performed a predetermined number of times ( In this embodiment, since it is transmitted every time it is executed, it is possible to prevent the load on the main CPU 41a from being extremely increased by the transmission of the operation detection command.

なお、本実施の形態では、メインCPU41aが、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8Rのいずれかが操作されたか否かに関わらず、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8RそれぞれのON/OFFの状態を特定可能な操作検出コマンドを一定間隔毎に送信する構成であるが、いずれかの操作スイッチの検出状態(ON/OFF)が変化したときのみ、その旨を示す操作検出コマンドを送信するようにしてもよく、このような構成とすることで、操作検出コマンドの送信を極力減らすことが可能となり、操作検出コマンドの送信に係る制御の負荷を軽減できるうえに、サブCPU91a側でも必要以上に操作検出コマンドを受信せずに済む。   In the present embodiment, the main CPU 41a operates as a single BET switch regardless of whether one of the single BET switch 5, the MAX BET switch 6, the start switch 7, and the stop switches 8L, 8C, and 8R is operated. 5. The configuration is such that an operation detection command that can specify the ON / OFF state of each of the MAXBET switch 6, the start switch 7, the stop switch 8L, 8C, and 8R is transmitted at regular intervals. Only when the state (ON / OFF) changes, an operation detection command indicating that may be transmitted. With such a configuration, transmission of the operation detection command can be reduced as much as possible. In addition to reducing the control load related to the transmission of the operation detection command, the sub CPU 91a side is more than necessary. It requires the operation detection command without receiving.

また、いずれかの操作スイッチの検出状態(ON/OFF)が変化したときに、当該操作スイッチの検出状態に加えて他の操作スイッチの検出状態も特定可能な操作検出コマンドをサブCPU91aに対して送信する構成としてもよく、このような構成とすることで、操作検出コマンドの送信を極力減らすことが可能となるうえに、サブCPU91aは、操作検出コマンドから検出状態の変化した操作スイッチの検出状態だけでなく、他の操作手段の検出状態も特定できるようになり、サブCPU91a側で複数の操作手段の操作状況を反映した演出を行なうことが可能となり、操作スイッチの操作を用いた演出を多様なものにできる。   Further, when the detection state (ON / OFF) of any operation switch changes, an operation detection command that can specify the detection state of another operation switch in addition to the detection state of the operation switch is sent to the sub CPU 91a. The configuration may be such that the transmission of the operation detection command can be reduced as much as possible, and the sub CPU 91a detects the detection state of the operation switch whose detection state has changed from the operation detection command. In addition, the detection state of other operation means can be specified, and the sub CPU 91a can produce effects reflecting the operation status of the plurality of operation means, and various effects using operation of the operation switches can be performed. Can be anything.

また、メインCPU41aは、コマンド送信処理において操作検出コマンドを送信する場合、通常コマンド送信用バッファに未送信のコマンドが残っていても通常コマンド送信用バッファのコマンドを送信せず、通常コマンド送信用バッファに設定されている未送信のコマンドは、次回のコマンド送信処理において送信するようになっている。すなわち通常コマンド送信用バッファに未送信のコマンドが設定されている状態で操作検出コマンドの送信時期となった場合には、操作検出コマンドの送信を優先する。   When the operation detection command is transmitted in the command transmission process, the main CPU 41a does not transmit the command in the normal command transmission buffer even if an untransmitted command remains in the normal command transmission buffer, and the normal command transmission buffer. An untransmitted command set to is transmitted in the next command transmission process. That is, when the operation detection command transmission time comes when the untransmitted command is set in the normal command transmission buffer, priority is given to the transmission of the operation detection command.

通常コマンド送信用バッファのコマンドは、あるコマンド送信処理において送信されなかった場合でも、次回のコマンド送信処理で送信されるため、演出のタイミングが大幅に遅れてしまうことがないが、操作検出コマンドはコマンド送信処理が5回実行される毎に送信されるため、操作検出コマンドの送信時期となったコマンド送信処理で操作検出コマンドが送信されなかった場合には、前回の操作スイッチの検出状態との違いが特定されるまでの間隔が本来の操作検出コマンドの送信間隔よりも長くなることで、演出のタイミングが大幅に遅れてしまう可能性があるが、本実施の形態では、前述のように通常コマンド送信用バッファの未送信コマンドよりも操作検出コマンドの送信が優先されるので、ゲームの進行制御に関与しない操作スイッチの操作に伴う演出の遅れを極力抑えることができるとともに、メインCPU41aからサブCPU91aに対してコマンドが連続して送信される場合でも、必ずコマンド送信処理が実行された後、次回コマンド送信処理が実行されるまでの間隔を空けてコマンドが1つずつ送信されるので、サブCPU91aが確実にコマンドを受信することが可能となる。   Even if the command in the normal command transmission buffer is not transmitted in a certain command transmission process, it will be transmitted in the next command transmission process, so the timing of the production will not be greatly delayed. Since it is transmitted every time the command transmission process is executed five times, if the operation detection command is not transmitted in the command transmission process when the operation detection command has been transmitted, the state of the previous operation switch detection state Although the interval until the difference is specified becomes longer than the transmission interval of the original operation detection command, there is a possibility that the timing of the production will be greatly delayed, but in this embodiment, as described above, Operations that do not participate in game progress control because sending operation detection commands has priority over unsent commands in the command send buffer It is possible to suppress delays in production due to the operation of the switch as much as possible, and even when commands are continuously transmitted from the main CPU 41a to the sub CPU 91a, the command transmission processing is always executed after the command transmission processing is executed. Since commands are transmitted one by one with an interval until execution, the sub CPU 91a can reliably receive the commands.

また、ゲームの進行制御に伴うコマンドはゲーム処理において一時的に通常コマンド送信用バッファに設定され、その後のコマンド送信処理において送信されるのに対して、操作検出コマンドは、通常コマンド送信用バッファには設定されず、それとは異なる特定コマンド送信用バッファに設定されて送信されるようになっており、ゲームの進行制御に基づいて不定期に送信されるコマンドの送信タイミングと、一定間隔毎に送信される操作検出コマンドの送信タイミングと、が重複してもこれらコマンドの送信制御が複雑とならない。特に、本実施の形態のように、ゲームの進行制御に基づいて不定期に送信されるコマンドの送信タイミングと、一定間隔毎に送信される操作検出コマンドの送信タイミングと、が重複した場合において、いずれか一方のコマンドを優先させるにあたり、いずれか一方のコマンド送信用バッファのアドレスを指定する制御を行なうのみで、一方のコマンドの送信を優先させることが可能となる。さらに、通常コマンド送信用バッファのように、複数のコマンドを格納可能であり、さらに最も最初に格納されたコマンドを送信する構成(いわゆるキュー)を採っているにも関わらず、後から格納された格納された操作検出コマンドを優先させようとすると、送信順位の入替などを行なう必要があり、送信制御が著しく複雑となってしまうこととなるが、操作検出コマンドを通常コマンド送信用バッファに格納せずに送信する構成とすることでこのような問題は生じることがない。   In addition, the command accompanying the game progress control is temporarily set in the normal command transmission buffer in the game processing and transmitted in the subsequent command transmission processing, whereas the operation detection command is stored in the normal command transmission buffer. Is not set, and it is set and transmitted in a specific command transmission buffer different from that, and it is transmitted at regular intervals based on the transmission timing of commands that are irregularly transmitted based on game progress control Even if the transmission timing of the operation detection command to be performed overlaps, the transmission control of these commands is not complicated. In particular, as in the present embodiment, when the transmission timing of the command transmitted irregularly based on the progress control of the game and the transmission timing of the operation detection command transmitted at regular intervals overlap, In giving priority to one of the commands, it is possible to give priority to transmission of one command only by performing control for designating the address of one of the command transmission buffers. Furthermore, like a normal command transmission buffer, a plurality of commands can be stored, and even though a configuration (so-called queue) for transmitting the first stored command is adopted, it is stored later. If you try to prioritize the stored operation detection command, it is necessary to change the transmission order, which makes transmission control extremely complicated. However, store the operation detection command in the normal command transmission buffer. Such a problem does not occur by adopting a configuration for transmitting without transmitting.

なお、本実施の形態では、コマンド送信処理において通常コマンド送信用バッファの未送信コマンドよりも操作検出コマンドの送信を優先する構成であるが、コマンド送信処理において操作検出コマンドの送信時期か否かを判定する前に通常コマンド送信用バッファに未送信のコマンドが設定されているか否かを判定し、通常コマンド送信用バッファに未送信のコマンドが残っている場合には、通常コマンドの送信用バッファに設定されているコマンドを送信し、同じコマンド送信処理において操作検出コマンドを送信しない構成、すなわち操作検出コマンドよりも通常コマンド送信用バッファの未送信のコマンドの送信を優先する構成としてもよく、このようにすることで、ゲームの進行制御に応じた演出が、操作スイッチの検出状態が変化したか否かに関わらず送信される操作検出コマンド、すなわち演出が実行されるか否かが不確定な状態を示すコマンドの送信によって遅れてしまうことを防止できる。   In this embodiment, the command transmission process is configured to give priority to the transmission of the operation detection command over the untransmitted command in the normal command transmission buffer. It is determined whether or not an untransmitted command is set in the normal command transmission buffer before the determination, and if an untransmitted command remains in the normal command transmission buffer, it is stored in the normal command transmission buffer. A configuration in which a set command is transmitted and an operation detection command is not transmitted in the same command transmission processing, that is, a configuration in which transmission of an untransmitted command in the normal command transmission buffer is given priority over an operation detection command may be used. By doing so, the effect according to the progress control of the game changes the detection state of the operation switch. Operation detecting commands sent regardless of whether the absence, i.e., that whether effect is performed is delayed by the transmission of commands indicating an indeterminate state can be prevented.

また、操作検出コマンドの送信時期において、通常コマンド送信用バッファに未送信のコマンドが設定されている場合に、同じコマンド送信処理において双方のコマンドを送信する構成としてもよく、このような構成とした場合には、ゲームの進行制御に応じた演出およびゲームの進行制御に関与しない操作スイッチの操作に伴う演出の双方について演出のタイミングが遅れてしまうことを防止できる。   In addition, when an untransmitted command is set in the normal command transmission buffer at the transmission timing of the operation detection command, a configuration may be adopted in which both commands are transmitted in the same command transmission process. In this case, it is possible to prevent the timing of the effects from being delayed for both the effects according to the game progress control and the effects associated with the operation of the operation switch not involved in the game progress control.

また、メインCPU41aは、図54に示すように、リセット信号がOFFとなって起動した際に、起動処理を実行し、起動処理の終了時に割込が許可され、その後、タイマ割込処理(メイン)を一定間隔毎に実行する。そして、メインCPU41aが電断前の状態に復帰可能な場合には、図54(a)に示すように、起動処理において割込が許可される前に復帰コマンドをサブCPU91aに対して送信する。また、RAM41cの格納データの異常によりメインCPU41aが電断前の状態に復帰不可能な場合には、起動処理において割込が許可される前にRAM異常あるいは乱数回路異常を示すエラーコマンドをサブCPU91aに対して送信する。   Further, as shown in FIG. 54, the main CPU 41a executes a start-up process when the reset signal is turned OFF and starts up, and an interrupt is permitted at the end of the start-up process. Thereafter, a timer interrupt process (main ) At regular intervals. If the main CPU 41a can return to the state before the power interruption, as shown in FIG. 54A, a return command is transmitted to the sub CPU 91a before the interruption is permitted in the startup process. Also, if the main CPU 41a cannot return to the state before the power interruption due to an abnormality in the data stored in the RAM 41c, an error command indicating an abnormality in the RAM or random number circuit is given to the sub CPU 91a before interruption is permitted in the startup process. Send to.

また、設定キースイッチ37がONの状態であり、RAM41cが初期化され、電断前の状態に復帰しない場合には、図54(b)に示すように、起動処理において割込が許可される前に設定開始コマンドをサブCPU91aに対して送信する。これら起動処理において送信されるコマンドのうち復帰コマンドからは、メインCPU41aが電断前の状態に復帰する旨が特定され、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドからは、メインCPU41aが電断前の状態には復帰しない旨が特定されることとなる。   Further, when the setting key switch 37 is in the ON state and the RAM 41c is initialized and does not return to the state before the power interruption, as shown in FIG. A setting start command is transmitted to the sub CPU 91a before. Of the commands transmitted in the activation process, the return command specifies that the main CPU 41a returns to the state before the power interruption. The error command indicating the RAM abnormality or the random number circuit abnormality and the setting start command indicate the main CPU 41a. Will not be restored to the state before power interruption.

そして、前述のように操作検出コマンドは、タイマ割込処理(メイン)において送信されるとともに、起動処理の終了までは割込処理が許可されないので、メインCPU41aの起動後、メインCPU41aが電断前の状態に復帰する旨が特定される復帰コマンドを送信したか、メインCPU41aが電断前の状態に復帰しない旨が特定されるRAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドを送信した後に、操作検出コマンドの送信が許可されることとなる。   As described above, the operation detection command is transmitted in the timer interruption process (main), and the interruption process is not permitted until the end of the activation process. Therefore, after the main CPU 41a is activated, the main CPU 41a is not disconnected. An error command indicating that the main CPU 41a is not restored to the state before power interruption or an error command indicating a random circuit error or a setting start command is transmitted. Later, transmission of the operation detection command is permitted.

このようにメインCPU41aは、電源投入後、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンド、あるいは設定開始コマンドをサブCPU91aに対して送信するまでは操作検出コマンドをサブCPU91aに対して送信しないので、たとえばメインCPU41aを復帰させるか否かが確定していない状態にも関わらず、サブCPU91aが操作検出コマンドから特定される操作に応じて演出を実行してしまうことがなく、電源投入時においてメインCPU41aの状態と食い違った演出が実行されてしまうことを防止できる。   As described above, the main CPU 41a does not transmit the operation detection command to the sub CPU 91a until the return command, the error command indicating the RAM abnormality or the random number circuit abnormality, or the setting start command is transmitted to the sub CPU 91a after the power is turned on. Therefore, for example, the sub CPU 91a does not perform an effect in response to an operation specified from the operation detection command in spite of a state where it is not determined whether or not the main CPU 41a is to be restored. It is possible to prevent an effect that is inconsistent with the state of the main CPU 41a from being executed.

また、メインCPU41aは、起動処理において復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドをサブCPU91aに対して送信し、その後、割込を許可することでタイマ割込処理(メイン)を実行してその中のコマンド送信処理にて操作検出コマンドを送信するようになっており、コマンド送信処理において復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドが既に送信されているか否かを判断することなく、操作検出コマンドよりも先にコマンド送信処理において復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドを送信することができる。   In addition, the main CPU 41a transmits a return command, an error command indicating a RAM abnormality or a random number circuit abnormality, and a setting start command to the sub CPU 91a in the startup process, and then permits an interrupt to perform a timer interrupt process (main ) And the operation detection command is transmitted in the command transmission process, and the return command, the error command indicating the RAM abnormality or the random circuit error, and the setting start command are already transmitted in the command transmission process. In the command transmission process, the return command, the error command indicating the RAM abnormality or the random number circuit abnormality, and the setting start command can be transmitted before the operation detection command.

なお、本実施の形態では、起動処理において復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドをサブCPU91aに対して送信し、コマンド送信処理において操作検出コマンドを送信する構成であるが、起動処理では、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドのいずれかを特定コマンド送信用バッファに設定し、割込が許可された後、コマンド送信処理において、まず復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドのいずれかが特定コマンド送信用バッファに設定されているか否かを判定し、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドのいずれかが設定されている場合には、最優先でサブCPU91aに対して送信し、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドのいずれも設定されていないことを条件に、操作検出コマンドを送信する構成としてもよく、このような構成であっても操作検出コマンドよりも先に復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドを送信することができる。   In the present embodiment, a return command, an error command indicating a RAM abnormality or a random circuit error, and a setting start command are transmitted to the sub CPU 91a in the startup process, and an operation detection command is transmitted in the command transmission process. However, in the startup process, any one of a return command, an error command indicating a RAM error or random circuit error, or a setting start command is set in the specific command transmission buffer, and after the interrupt is permitted, It is determined whether any of a return command, an error command indicating a RAM error or a random number circuit error, or a setting start command is set in the specific command transmission buffer, and an error command indicating a RAM error or a random number circuit error or a setting start If any of the commands are set The operation detection command may be transmitted on the condition that neither the error command indicating the RAM abnormality or the random number circuit abnormality nor the setting start command is set, which is transmitted to the sub CPU 91a with the highest priority. Even in such a configuration, the return command, the error command indicating the RAM abnormality or the random circuit abnormality, and the setting start command can be transmitted prior to the operation detection command.

また、起動処理において復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドのいずれかを通常コマンド送信用バッファに設定し、コマンド送信処理において、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドのいずれかが送信されるまでは、操作検出コマンドの送信を禁止し、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドのいずれかが送信されたことを条件に操作検出コマンドの送信を許可し、その後のコマンド送信処理から操作検出コマンドを送信する構成としてもよく、このような構成であっても操作検出コマンドよりも先に復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンド、設定開始コマンドを送信することができる。   In addition, any one of a return command, an error command indicating a RAM error or a random number circuit error, or a setting start command is set in the normal command transmission buffer in the startup process, and a return command, a RAM error or a random circuit error is set in the command transmission process. Until the error command or setting start command is sent, the operation detection command is prohibited from being sent, and the return command, RAM error or random circuit error command, or setting start command is sent. The operation detection command may be permitted to be transmitted on the condition that the operation detection command is transmitted from the subsequent command transmission process. Even in such a configuration, the return command or the RAM error is detected before the operation detection command. Or error command indicating random circuit error, start setting It is possible to send a command.

また、メインCPU41aは、タイマ割込処理(メイン)中は、割込が禁止され、その間に電圧低下信号が入力されても、タイマ割込処理(メイン)が終了するまでは、電断割込処理(メイン)を実行することはなく、タイマ割込処理(メイン)の終了を待って電断割込処理(メイン)を実行する。   Further, the main CPU 41a is prohibited from interrupting during the timer interrupt process (main), and even if a voltage drop signal is input during that time, the main CPU 41a is interrupted until the timer interrupt process (main) ends. The process (main) is not executed, and the power interruption interrupt process (main) is executed after the timer interrupt process (main) is completed.

また、通常コマンド送信用バッファには、複数のコマンドが格納可能であり、通常コマンド送信用バッファに未送信のコマンドが格納されている状態でも電断割込処理(メイン)が実行され、停電状態となり、その後の起動時において電断前の状態に復帰する場合には、通常コマンド送信用バッファに未送信のコマンドが残っている状態で復帰することとなる。   Multiple commands can be stored in the normal command transmission buffer, and the power interruption interrupt processing (main) is executed even when untransmitted commands are stored in the normal command transmission buffer. In the case of returning to the state before the power interruption at the time of subsequent activation, the normal command transmission buffer is restored with an untransmitted command remaining.

一方、操作検出コマンドは、コマンド送信処理において操作検出コマンドの送信時期である場合に、操作検出コマンドが作成され、そのコマンド送信処理内で送信されてしまう。そして、コマンド送信処理は、タイマ割込処理(メイン)において実行されるので、電断時に未送信の操作検出コマンドが残ることはなく、起動時において電断前の状態に復帰する場合でも、未送信の操作検出コマンドが残った状態で復帰することはない。   On the other hand, when the operation detection command is the operation detection command transmission time in the command transmission process, the operation detection command is created and transmitted in the command transmission process. And since the command transmission process is executed in the timer interrupt process (main), there is no operation detection command that has not been transmitted at the time of power interruption. It does not return with the transmission operation detection command remaining.

このように本実施の形態では、メインCPU41aの起動時において電断前の状態に復帰する場合に、電断前に未送信のコマンドが通常コマンド送信用バッファに格納されている場合には、これら通常コマンド送信用バッファに格納されている未送信のコマンドも復帰することとなるが、電断前の状態で操作検出コマンドが未送信となることはなく、電断前の状態で未送信となった操作検出コマンドが復帰して、復帰後の操作スイッチの検出状態が反映されていない操作検出コマンドが送信されてしまうことはない。このため、電源投入後、操作スイッチがなんら操作されていないにも関わらず、ゲームの進行制御に関与しない操作に応じた演出が実行されてしまうことを防止できる。   As described above, in the present embodiment, when the main CPU 41a is restored to the state before the power interruption when the main CPU 41a is started up, if the untransmitted command is stored in the normal command transmission buffer before the power interruption, these Unsent commands stored in the normal command transmission buffer will also be restored, but the operation detection command will not be sent before power interruption, and will not be sent before power interruption. The detected operation detection command is not returned, and an operation detection command that does not reflect the detection state of the operation switch after the return is not transmitted. For this reason, after the power is turned on, it is possible to prevent an effect corresponding to an operation not related to the progress control of the game from being executed even though the operation switch is not operated at all.

また、本実施の形態では、前述のように操作検出コマンドは、ゲームの進行制御に応じたコマンドが設定される通常コマンド送信用バッファには格納されずに送信されるので、電断前にゲームの進行制御に応じたコマンドのみ復帰させ、操作検出コマンドは復帰させない構成とするにあたり、制御が複雑化してしまうことを防止できる。   In the present embodiment, as described above, the operation detection command is transmitted without being stored in the normal command transmission buffer in which a command corresponding to the progress control of the game is set. It is possible to prevent the control from becoming complicated when only the command corresponding to the progress control is restored and the operation detection command is not restored.

なお、本実施の形態では、操作検出コマンドは、コマンド送信処理において操作検出コマンドの送信時期である場合に、操作検出コマンドが作成され、そのコマンド送信処理内で送信されるとともに、タイマ割込処理(メイン)の実行中は、電断割込処理が禁止されることにより、電断前の状態で操作検出コマンドが未送信となることはなく、電断前の状態で未送信となった操作検出コマンドが復帰しない構成であるが、起動時において未送信の操作検出コマンドが残っている場合に、未送信の操作検出コマンドをクリアすることで、電断前の状態で未送信となった操作検出コマンドが復帰しない構成としてもよい。この場合には、ゲームの進行制御に応じたコマンドと、操作検出コマンドと、が異なるコマンド送信用バッファに格納される構成とすることで、操作検出コマンドが格納されているコマンド送信用バッファのデータのみをクリアすることで、操作検出コマンドをクリアすることが可能となり、通常コマンド送信用バッファに格納されているコマンドの送信順などを変更する必要もない。   In the present embodiment, when the operation detection command is the operation detection command transmission time in the command transmission process, the operation detection command is created and transmitted within the command transmission process, and the timer interrupt process During the execution of (Main), the power interruption interrupt processing is prohibited, so that the operation detection command is not sent before the power interruption. The detection command does not return, but if an unsent operation detection command remains at the time of startup, clearing the unsent operation detection command will result in an operation that has not been sent before the power interruption. The detection command may not be returned. In this case, the command transmission buffer data in which the operation detection command is stored is configured such that the command corresponding to the progress control of the game and the operation detection command are stored in different command transmission buffers. By clearing only the operation detection command, it becomes possible to clear the operation detection command, and there is no need to change the transmission order of the commands stored in the normal command transmission buffer.

本実施の形態では、タイマ割込処理(メイン)においてコマンド送信処理が5回実行される毎、すなわちコマンド送信処理は、タイマ割込処理(メイン)4回毎に実行するタイマ割込2において実行されるので、タイマ割込処理(メイン)20回毎に操作検出コマンドが送信されるようになっている。このため、操作検出コマンドの送信回数と操作検出コマンドの送信間隔とから、メインCPU41aが起動したタイミング(リセット信号がOFFとなったタイミング)や割込許可がなされたタイミングを特定することが可能となり、メインCPU41aが備える乱数カウンタを、起動時に初期化し、その後のタイマ割込処理(メイン)毎に更新する場合や、起動時に初期化した後、一定間隔(クロック信号の入力など)で更新する場合に、メインCPU41aが起動したタイミングや割込許可がなされたタイミングが特定されてしまうと、現在の乱数カウンタの値を特定し、特定した乱数カウンタの値を用いて不正がなされる可能性があり、乱数カウンタの値がゲームに関わる場合には、著しく不公正な結果を導く虞がある。   In this embodiment, every time the command transmission process is executed five times in the timer interrupt process (main), that is, the command transmission process is executed in the timer interrupt 2 executed every four times of the timer interrupt process (main). Therefore, an operation detection command is transmitted every 20 timer interruption processes (main). For this reason, it is possible to specify the timing at which the main CPU 41a is activated (the timing at which the reset signal is turned off) and the timing at which the interrupt is permitted from the number of times the operation detection command is transmitted and the operation detection command transmission interval. When the random number counter included in the main CPU 41a is initialized at startup and updated every subsequent timer interrupt process (main), or after initialization at startup and updated at regular intervals (clock signal input, etc.) In addition, if the timing at which the main CPU 41a is activated or the timing at which the interrupt is permitted is specified, the current random number counter value may be specified, and the specified random number counter value may be used for fraud. If the value of the random number counter is related to the game, there is a risk that a significantly unfair result will be obtained.

これに対して本実施の形態では、メインCPU41aは、起動時において電断前の状態に復帰する場合には、電断前の送信カウンタの値も復帰させて、電断前の送信カウンタの値からコマンド送信処理の回数を計数し、送信カウンタの値が0となったとき、すなわち電断前にコマンド送信処理を実行してから実行したコマンド送信処理が5回に到達したときに起動後、最初の操作検出コマンドを送信し、その後は、コマンド送信処理5回毎に操作検出コマンドを送信することとなり、図54(a)に示すように、メインCPU41aの起動後、割込が許可された後に、最初に操作検出コマンドが送信されるまでに実行されるコマンド送信処理の回数が一定とならず、メインCPU41aの起動時から最初の操作検出コマンドが送信されるまでに要する時間(t1)が一定とならないので、操作検出コマンドの送信回数と操作検出コマンドの送信間隔とから、メインCPU41aが起動したタイミング(リセット信号がOFFとなったタイミング)や割込許可がなされたタイミングを特定することが困難となり、これらメインCPU41aが起動したタイミングや割込許可がなされたタイミングが特定されることに伴う不正を防止できる。   On the other hand, in this embodiment, when the main CPU 41a returns to the state before power interruption at the time of startup, the value of the transmission counter before power interruption is also restored, and the value of the transmission counter before power interruption is restored. From the start, when the command transmission process is counted, and when the value of the transmission counter becomes 0, that is, when the command transmission process executed after executing the command transmission process before power interruption reaches 5 times, The first operation detection command is transmitted, and thereafter, the operation detection command is transmitted every five command transmission processes. As shown in FIG. 54A, interrupts are permitted after the main CPU 41a is activated. Later, the number of command transmission processes executed until the first operation detection command is transmitted is not constant, and from the time when the main CPU 41a is started until the first operation detection command is transmitted. Since the required time (t1) is not constant, the timing at which the main CPU 41a is activated (the timing at which the reset signal is turned off) and the interrupt are permitted based on the number of transmissions of the operation detection command and the transmission interval of the operation detection command. It becomes difficult to specify the timing, and it is possible to prevent fraud associated with specifying the timing when the main CPU 41a is activated and the timing when the interrupt is permitted.

また、メインCPU41aは、起動時においてRAM41cを初期化する場合に、電断前の送信カウンタの値も初期化されてしまうこととなるが、この場合には、0〜3の範囲からいずれかの値をランダムに選択し、選択した値に1を加算した値を送信カウンタに設定し、その値からコマンド送信処理の回数を計数し、送信カウンタの値が0となったとき、すなわち起動時に1〜4からランダムに選択された回数のコマンド送信処理を実行したときに、起動後、最初の操作検出コマンドを送信し、その後は、コマンド送信処理5回毎に操作検出コマンドを送信することとなり、この場合であっても、図54(b)に示すように、メインCPU41aの起動後、割込が許可された後に、最初に操作検出コマンドが送信されるまでに実行されるコマンド送信処理の回数が一定とならず、メインCPU41aの起動時から最初の操作検出コマンドが送信されるまでに要する時間(t1’)が一定とならないので、操作検出コマンドの送信回数と操作検出コマンドの送信間隔とから、メインCPU41aが起動したタイミング(リセット信号がOFFとなったタイミング)や割込許可がなされたタイミングを特定することが困難となり、これらメインCPU41aが起動したタイミングや割込許可がなされたタイミングが特定されることに伴う不正を防止できる。   In addition, when the main CPU 41a initializes the RAM 41c at the time of activation, the value of the transmission counter before power interruption is also initialized. In this case, any value from the range of 0 to 3 is set. A value is selected at random, a value obtained by adding 1 to the selected value is set in the transmission counter, and the number of times of command transmission processing is counted from the value, and when the value of the transmission counter becomes 0, that is, 1 at startup When the command transmission process of the number of times randomly selected from ~ 4 is executed, the first operation detection command is transmitted after startup, and thereafter, the operation detection command is transmitted every five command transmission processes. Even in this case, as shown in FIG. 54 (b), after the activation of the main CPU 41a, after the interrupt is permitted, it is executed until the first operation detection command is transmitted. The number of command transmission processes is not constant, and the time (t1 ′) required from when the main CPU 41a is started until the first operation detection command is transmitted is not constant. From the transmission interval, it becomes difficult to specify the timing at which the main CPU 41a is activated (the timing when the reset signal is turned off) and the timing at which the interrupt is permitted. It is possible to prevent fraud that accompanies identification of the timing made.

なお、本実施の形態では、メインCPU41aの起動時に、電断前の状態に復帰する場合には、電断前の送信カウンタの値から操作検出コマンドの送信時期を計数し、RAM41cを初期化する場合には、送信カウンタの値をランダムに選択し、操作検出コマンドの送信時期を計数することで、メインCPU41aの起動時から最初の操作検出コマンドが送信されるまでに要する時間が一定とならない構成としているが、いずれの場合においても、送信カウンタの値をランダムに選択し、操作検出コマンドの送信時期を計数することで、メインCPU41aの起動時から最初の操作検出コマンドが送信されるまでに要する時間が一定とならない構成としてもよい。   In this embodiment, when the main CPU 41a is activated, when returning to the state before power interruption, the transmission timing of the operation detection command is counted from the value of the transmission counter before power interruption, and the RAM 41c is initialized. In this case, the time required from when the main CPU 41a is activated until the first operation detection command is transmitted does not become constant by randomly selecting the value of the transmission counter and counting the transmission timing of the operation detection command. However, in any case, it is necessary until the first operation detection command is transmitted from the activation of the main CPU 41a by randomly selecting the value of the transmission counter and counting the transmission timing of the operation detection command. It is good also as a structure where time does not become fixed.

また、メインCPU41aの起動毎に、送信カウンタの初期値として異なる値を設定すること、たとえば、起動毎に2と4を交互に設定したり、起動毎に送信カウンタの初期値を1、2、3、4、5の順番で設定するなど、予め定められたルールに従って送信カウンタの初期値を設定することにより、メインCPU41aの起動時から最初の操作検出コマンドが送信されるまでに要する時間が一定とならない構成としてもよい。   Further, each time the main CPU 41a is activated, a different value is set as the initial value of the transmission counter. For example, 2 and 4 are alternately set at each activation, or the initial value of the transmission counter is set to 1, 2, By setting the initial value of the transmission counter according to a predetermined rule, such as setting in the order of 3, 4, 5, etc., the time required from when the main CPU 41a is activated until the first operation detection command is transmitted is constant. It is good also as composition which does not become.

サブ制御部91のRAM91cには、操作スイッチの検出状態の変化状況が操作スイッチ毎に格納される検出状態格納領域と、操作スイッチの操作状態が変化した旨を示す操作検出フラグが操作スイッチ毎に格納される操作検出フラグ格納領域と、が割り当てられている。さらに検出状態格納領域には、操作検出コマンドを受信する前(前回)の検出状態と、操作検出コマンドを受信した後(今回)の検出状態と、が割り当てられており、それぞれに操作検出コマンドの受信前後の各操作スイッチの検出状態が格納されるようになっている。   In the RAM 91c of the sub-control unit 91, a detection state storage area in which the change state of the detection state of the operation switch is stored for each operation switch, and an operation detection flag indicating that the operation state of the operation switch has changed are provided for each operation switch. An operation detection flag storage area to be stored is allocated. Furthermore, the detection state storage area is assigned with a detection state before receiving the operation detection command (previous) and a detection state after receiving the operation detection command (this time). The detection state of each operation switch before and after reception is stored.

サブCPU91aは、タイマ割込処理(サブ)において受信用バッファに未処理のコマンドが格納されていると判定した場合に、操作検出処理1を行なう。操作検出処理1では、未処理のコマンドが操作検出コマンドか否かを判定し、操作検出コマンドであると判定した場合に、検出状態格納領域に格納されている今回の検出状態を前回の検出状態に移動し、操作検出コマンドが示す各操作スイッチの検出状態を今回の検出状態として格納するとともに、前回の検出状態と今回の検出状態とが異なる操作スイッチがある場合に、OFFからONに変化した場合には、その操作スイッチに対応する操作検出フラグとして立上りフラグを設定し、ONからOFFに変化した場合には、その操作スイッチに対応する操作検出フラグとして立下りフラグを設定する。   The sub CPU 91a performs the operation detection process 1 when it is determined in the timer interrupt process (sub) that an unprocessed command is stored in the reception buffer. In the operation detection process 1, it is determined whether or not an unprocessed command is an operation detection command. If it is determined that the command is an operation detection command, the current detection state stored in the detection state storage area is changed to the previous detection state. , The detection state of each operation switch indicated by the operation detection command is stored as the current detection state, and when there is an operation switch in which the previous detection state and the current detection state are different, the state has changed from OFF to ON. In this case, a rising flag is set as an operation detection flag corresponding to the operation switch, and when it is changed from ON to OFF, a falling flag is set as an operation detection flag corresponding to the operation switch.

このように本実施の形態では、メインCPU41aが、操作スイッチの検出状態が変化したか否かに関わらず、定期的に全ての操作スイッチの検出状態を特定可能な操作検出コマンドを送信するとともに、サブCPU91aは、操作検出コマンドを受信した際に、検出状態格納領域に格納されている操作検出コマンドの受信前後の各操作スイッチの検出状態を更新し、検出状態が異なる操作スイッチがある場合に、その操作スイッチに対応する操作検出フラグを設定するようになっており、サブCPU91aは、操作検出フラグの有無を確認することで、操作スイッチの検出状態が変化した旨に加え、操作検出コマンドの受信前後で各操作スイッチの検出状態がどのように変化したか、すなわちOFFからONに変化したのか、ONからOFFに変化したのか、を判別できるようになっている。   As described above, in the present embodiment, the main CPU 41a periodically transmits an operation detection command that can specify the detection states of all the operation switches regardless of whether or not the detection state of the operation switches has changed. When the sub CPU 91a receives the operation detection command, the sub CPU 91a updates the detection state of each operation switch before and after receiving the operation detection command stored in the detection state storage area. An operation detection flag corresponding to the operation switch is set, and the sub CPU 91a confirms the presence or absence of the operation detection flag, thereby receiving the operation detection command in addition to the fact that the detection state of the operation switch has changed. How the detection state of each operation switch has changed before and after, that is, whether it has changed from OFF to ON, from ON to OF It has become the one, to be able to determine the changes to.

このため、サブCPU91aは、操作スイッチの操作が開始したタイミングだけでなく、その操作が解除されたタイミングに応じて演出を行なったり、演出を変化させることが可能となり、ゲームの進行制御に関与しない操作スイッチの操作態様に応じて多彩な演出を行なうことができる。   For this reason, the sub CPU 91a can perform an effect or change the effect according to not only the timing when the operation of the operation switch is started but also the timing when the operation is released, and is not involved in the progress control of the game. Various effects can be performed according to the operation mode of the operation switch.

なお、本実施の形態では、サブCPU91aが、操作スイッチの検出状態の変化に加えて操作検出コマンドの受信前後の各操作スイッチの検出状態がどのように変化したか否かを判別できるようになっているが、サブCPU91aが、操作スイッチが操作されたこと、すなわちOFFからONに変化したことのみを判別できる構成としてもよく、このような構成とすることで、ゲームの進行制御に影響しない操作スイッチの操作に伴うサブCPU91aの制御負荷を軽減することができる。   In the present embodiment, the sub CPU 91a can determine how the detection state of each operation switch before and after receiving the operation detection command has changed in addition to the change in the detection state of the operation switch. However, the sub CPU 91a may be configured to be able to determine only that the operation switch has been operated, that is, changed from OFF to ON. With such a configuration, an operation that does not affect the progress control of the game. It is possible to reduce the control load on the sub CPU 91a due to the operation of the switch.

また、検出状態格納領域には、各操作スイッチの検出状態が格納されており、サブCPU91aは、いずれかの操作検出フラグが設定され、当該操作検出フラグに対応する操作スイッチの検出状態の変化が特定された場合に、検出状態格納領域の他の操作スイッチの検出状態を確認することで、検出状態が変化した操作スイッチだけでなく、他の操作スイッチの検出状態も特定できるようになっている。   The detection state storage area stores the detection state of each operation switch, and the sub CPU 91a is set with any operation detection flag, and the change in the detection state of the operation switch corresponding to the operation detection flag is changed. When it is identified, it is possible to identify not only the operation switch whose detection state has changed but also the detection state of other operation switches by checking the detection state of other operation switches in the detection state storage area. .

このため、複数の操作スイッチが同時に操作されている状態を特定可能となり、たとえば、パターン1やパターン3の操作演出のように、複数の操作スイッチが同時に操作されることで演出を行なうことが可能となり、複数の操作スイッチの操作の仕方によって多様な演出を行なうことができる。   For this reason, it is possible to specify a state in which a plurality of operation switches are operated at the same time, and for example, it is possible to produce an effect by operating a plurality of operation switches at the same time, such as an operation effect of pattern 1 or pattern 3 Thus, various effects can be performed depending on how the plurality of operation switches are operated.

また、サブCPU91aは、パターン1(後述する図61参照)の操作演出のように、左ストップスイッチ、中ストップスイッチの操作スイッチが同時に操作されることで演出を行なう場合に、左ストップスイッチが検出されており、かつ右ストップスイッチが検出されていない状態で、中ストップスイッチの操作を検出した場合にはステージ変更演出を行なうが、左ストップスイッチおよび右ストップスイッチの双方が検出されている状態で、中ストップスイッチの操作を検出した場合には、上記と同様に左ストップスイッチと中ストップスイッチの操作が同時に検出されていることとなるが、この場合には、ステージ変更演出を行なわないようになっている。   Further, the sub CPU 91a detects the left stop switch when performing the effect by simultaneously operating the operation switches of the left stop switch and the middle stop switch as in the operation effect of the pattern 1 (see FIG. 61 described later). If the middle stop switch operation is detected when the right stop switch is not detected, the stage change effect is performed, but both the left stop switch and the right stop switch are detected. When the operation of the middle stop switch is detected, the operation of the left stop switch and the middle stop switch is detected at the same time as above, but in this case, the stage change effect is not performed. It has become.

すなわち特定の操作スイッチの操作に応じて特定の操作演出を行なう際に、特定の操作スイッチとともに特定の操作スイッチ以外の操作スイッチが操作された場合には、特定の操作演出を行なわないようになっている。   That is, when performing a specific operation effect according to the operation of a specific operation switch, if an operation switch other than the specific operation switch is operated together with the specific operation switch, the specific operation effect is not performed. ing.

このため、特定の操作スイッチの操作に基づく特定の操作演出は、特定の操作スイッチが他の操作スイッチと同時に操作された場合や他の操作スイッチが操作されている状態で操作された場合には実行されることがなく、誤った操作によって特定の操作演出が実行されることがないため、特定の操作演出を希望する遊技者に対してのみ特定の操作演出を実行することができる。   For this reason, a specific operation effect based on an operation of a specific operation switch is performed when the specific operation switch is operated simultaneously with another operation switch or when the other operation switch is operated. Since it is not executed and a specific operation effect is not executed by an erroneous operation, the specific operation effect can be executed only for a player who desires the specific operation effect.

また、上記のように特定の操作スイッチとともに特定の操作スイッチ以外の操作スイッチが操作された場合には、特定の操作演出を行なわないことにより、たとえば、パターン1とパターン3(後述する図61参照)の操作演出のように、各々の演出を実行させるための操作スイッチの一部が重複する場合でも、異なる演出を実行させることが可能となる。すなわちパターン1の操作演出は、左ストップスイッチと中ストップスイッチが同時に操作されることで実行され、パターン2の操作演出は、中ストップスイッチと右ストップスイッチが同時に操作されることで実行されるが、左ストップスイッチと右ストップスイッチが同時に操作されている状態で、中ストップスイッチが操作された際に、左ストップスイッチと中ストップスイッチの同時操作なのか、中ストップスイッチと右ストップスイッチの同時操作なのか、を判別することができなくなってしまい、いずれか一方の同時操作に対してしか演出を割り当てることができなくなってしまうが、特定の操作スイッチとともに特定の操作スイッチ以外の操作スイッチが操作された場合には、特定の操作演出を行なわないことにより、パターン1とパターン2の操作演出のようなケースであっても、それぞれの同時操作に対して演出を割り当てることが可能となり、複数の操作スイッチの操作の仕方によってさらに多様な演出を行なうことができる。   In addition, when an operation switch other than the specific operation switch is operated together with the specific operation switch as described above, for example, pattern 1 and pattern 3 (see FIG. 61 described later) are not performed by performing a specific operation effect. Even when a part of the operation switches for executing each effect overlaps like the operation effect of (), different effects can be executed. That is, the operation effect of pattern 1 is executed by operating the left stop switch and the middle stop switch simultaneously, and the operation effect of pattern 2 is executed by operating the middle stop switch and the right stop switch simultaneously. When the middle stop switch is operated while the left stop switch and right stop switch are operated at the same time, the left stop switch and middle stop switch are operated simultaneously, or the middle stop switch and right stop switch are operated simultaneously. However, it is not possible to determine whether or not it is possible to assign an effect only to one of the simultaneous operations, but an operation switch other than the specific operation switch is operated together with the specific operation switch. If a specific operation effect is not performed, Even 1 and the case, such as the operation effect of the pattern 2, can be assigned an effect for each of the simultaneous operation as it can be performed more diverse effect by way of the operation of a plurality of operation switches.

サブCPU91aは、操作検出処理1においていずれかの操作スイッチの検出状態がOFFからONに変化した場合、すなわち操作スイッチの操作が開始した場合に、RAM91cに割り当てられた操作時間カウンタのうち該当する操作スイッチの操作時間カウンタの値を初期化する。操作時間カウンタの値は、タイマ割込処理(サブ)が実行される毎に加算されるようになっており、操作時間カウンタの値を参照することで操作スイッチの操作が開始してからの経過時間を判別できる。   When the detection state of any one of the operation switches is changed from OFF to ON in the operation detection process 1, that is, when the operation of the operation switch is started, the sub CPU 91a corresponds to the corresponding operation among the operation time counters assigned to the RAM 91c. Initializes the switch operation time counter value. The value of the operation time counter is incremented every time the timer interrupt process (sub) is executed, and the elapsed time since the operation switch operation started by referring to the value of the operation time counter Time can be determined.

また、サブCPU91aは、タイマ割込処理(サブ)が実行される毎に、操作検出処理2を実行する。操作検出処理2では、検出状態格納領域に格納された今回の検出状態がONであるか否かを操作スイッチ毎に判定し、ONである場合、すなわち操作スイッチの操作が継続している場合には、該当する操作スイッチの操作時間カウンタの値を参照し、予め定められた時間経過していれば、その旨を示す時間経過フラグを操作スイッチに対応付けて設定する。本実施の形態では、3秒経過時、5秒経過時、10秒経過時に、それぞれ時間経過フラグとして3秒経過フラグ、5秒経過フラグ、10秒経過フラグを設定する。   The sub CPU 91a executes the operation detection process 2 every time the timer interrupt process (sub) is executed. In the operation detection process 2, it is determined for each operation switch whether or not the current detection state stored in the detection state storage area is ON. If it is ON, that is, if the operation of the operation switch is continued. Refers to the value of the operation time counter of the corresponding operation switch, and if a predetermined time has elapsed, sets a time elapse flag indicating that to the operation switch. In this embodiment, a 3 second elapsed flag, a 5 second elapsed flag, and a 10 second elapsed flag are set as a time elapsed flag when 3 seconds have elapsed, 5 seconds have elapsed, and 10 seconds have elapsed.

このため、サブCPU91aは、時間経過フラグが設定されているか否かを確認することにより操作スイッチが継続して操作された時間が一定時間経過したことを契機に演出を行なうことが可能となる。   For this reason, the sub CPU 91a can perform an effect upon confirming whether the time lapse flag is set or not when a certain time elapses when the operation switch is continuously operated.

なお、本実施の形態では、サブCPU91aが、操作スイッチの検出状態がOFFからONに変化した後、当該操作スイッチの検出状態がONからOFFに変化せずに経過した時間を計時することで、サブCPU91a側で操作スイッチの連続操作時間を把握することが可能となり、メインCPU41a側で個々のスイッチ毎に連続操作時間を計時するタイマを有することなく、サブCPU91aのプログラムを変更するのみで操作スイッチの連続操作時間を検出することが可能となるが、メインCPU41a側で操作スイッチの操作がOFFからONに変化した後、ONからOFFに変化せずに経過した時間を計時し、この時間が規定時間に到達したときに操作スイッチが規定時間連続して操作された旨を示すコマンドを送信することで、サブCPU91a側で、操作スイッチの操作が継続して操作された旨を特定できるようにしてもよい。   In the present embodiment, the sub CPU 91a counts the time that has elapsed since the detection state of the operation switch has not changed from ON to OFF after the detection state of the operation switch has changed from OFF to ON. It becomes possible to grasp the continuous operation time of the operation switch on the sub CPU 91a side, and without having a timer for measuring the continuous operation time for each individual switch on the main CPU 41a side, the operation switch can be changed only by changing the program of the sub CPU 91a. It is possible to detect the continuous operation time, but after the operation switch operation has changed from OFF to ON on the main CPU 41a side, the time elapsed without changing from ON to OFF is counted, and this time is specified. By sending a command indicating that the operation switch has been operated continuously for a specified time when the time is reached, In Bed CPU91a side may be able to identify that the operation of the operation switch is operated continuously.

また、サブCPU91aは、操作検出処理1においていずれかの操作スイッチの検出状態がOFFからONに変化した場合、すなわち操作スイッチの操作が開始した場合に、RAM91cに割り当てられた連続操作カウンタのうち該当する操作スイッチの連続操作カウンタの値を1加算する。連続操作カウンタの値は、他の操作スイッチの検出状態がOFFからONに変化した場合または演出開始時などのサブCPU91aからの命令によりクリアされるようになっており、連続操作カウンタの値を参照することである起点から特定の操作スイッチが連続して操作された回数を判別できる。そして、サブCPU91aは、連続操作カウンタの値を確認することにより、ある起点からの操作スイッチの連続操作回数が規定回数に到達したことを契機に演出を行なうことが可能となる。   In addition, when the detection state of any of the operation switches is changed from OFF to ON in the operation detection process 1, that is, when the operation of the operation switch is started, the sub CPU 91a corresponds to the continuous operation counter assigned to the RAM 91c. 1 is added to the value of the continuous operation counter of the operation switch to be operated. The value of the continuous operation counter is cleared by a command from the sub CPU 91a when the detection state of another operation switch changes from OFF to ON or at the start of production, etc. Refer to the value of the continuous operation counter It is possible to determine the number of times that a specific operation switch has been operated continuously from the starting point. Then, the sub CPU 91a can confirm the value of the continuous operation counter, and can produce an effect when the number of continuous operations of the operation switch from a certain starting point has reached the specified number.

なお、本実施の形態では、サブCPU91aが、操作スイッチの検出状態がOFFからONに変化した回数を計数することで、サブCPU91a側で操作スイッチ連続操作回数を把握することが可能となり、メインCPU41a側で個々のスイッチ毎に連続操作回数を計数するカウンタを有することなく、サブCPU91aのプログラムを変更するのみで操作スイッチの操作回数を検出することが可能となるが、メインCPU41a側で操作スイッチの操作がOFFからONに変化した回数を計数し、この回数が規定回数に到達したときに操作スイッチが規定回数操作された旨を示すコマンドを送信することで、サブCPU91a側で、操作スイッチの操作が規定回数操作された旨を特定できるようにしてもよい。   In the present embodiment, the sub CPU 91a counts the number of times that the detection state of the operation switch has changed from OFF to ON, whereby the sub CPU 91a can grasp the number of operation switch continuous operations, and the main CPU 41a. It is possible to detect the number of operation switches by simply changing the program of the sub CPU 91a without having a counter for counting the number of continuous operations for each individual switch on the side. By counting the number of times the operation has changed from OFF to ON, and transmitting the command indicating that the operation switch has been operated the specified number of times when this number reaches the specified number of times, the operation of the operation switch is performed on the sub CPU 91a side. May be specified to have been operated a specified number of times.

サブ制御部91のRAM91cには、制御パターンが設定される制御パターン格納領域が割り当てられており、サブCPU91aは、メイン制御部41からコマンドを受信した際に、当該コマンドに応じた制御パターンを制御パターン格納領域に設定するとともに、制御パターン格納領域に設定されている制御パターンを参照して演出装置の出力状態を制御する。   A control pattern storage area in which a control pattern is set is assigned to the RAM 91c of the sub control unit 91, and when the sub CPU 91a receives a command from the main control unit 41, the sub CPU 91a controls the control pattern according to the command. While setting in the pattern storage area, the output state of the rendering device is controlled with reference to the control pattern set in the control pattern storage area.

たとえば、図55(a)に示すように、サブCPU91aがゲームの進行制御に応じたコマンドaを受信すると、コマンドaに対応するパターンaを制御パターン格納領域に設定し、これとほぼ同時に演出装置をパターンaに基づく出力状態に制御する。これにより液晶表示器51にはパターンaに基づく画像が表示され、スピーカ53、54からパターンaに基づく効果音が出力され、演出効果LED52、リールLED55がパターンaに基づく点灯態様となる。その後、ゲームの進行制御に応じたコマンドbを受信すると、制御パターン格納領域の制御パターンをコマンドbに対応するパターンbに更新し、制御パターン格納領域の制御パターンが変更されると、これとほぼ同時に演出装置を変更後のパターンbに基づく出力状態に制御する。これにより液晶表示器51に表示されているパターンaに基づく画像がパターンbに基づく画像に更新され、スピーカ53、54からパターンbに基づく効果音が出力され、演出効果LED52、リールLED55がパターンbに基づく点灯態様となる。また、図55(b)に示すように、対応する制御パターンがコマンドaと同じコマンドcを受信すると、制御パターン格納領域の制御パターンをコマンドcに対応するパターンaに更新するが、制御パターン格納領域の制御パターン自体は変化せず、この場合には、演出装置の出力状態を切り替えることなく、そのままの状態を維持するようになっている。   For example, as shown in FIG. 55A, when the sub CPU 91a receives a command a corresponding to the progress control of the game, the pattern a corresponding to the command a is set in the control pattern storage area, and at the same time, the effect device To an output state based on the pattern a. As a result, an image based on the pattern a is displayed on the liquid crystal display 51, sound effects based on the pattern a are output from the speakers 53 and 54, and the effect effect LED 52 and the reel LED 55 are turned on based on the pattern a. Thereafter, when a command b corresponding to the progress control of the game is received, the control pattern in the control pattern storage area is updated to the pattern b corresponding to the command b, and when the control pattern in the control pattern storage area is changed, At the same time, the rendering device is controlled to the output state based on the changed pattern b. As a result, the image based on the pattern a displayed on the liquid crystal display 51 is updated to the image based on the pattern b, sound effects based on the pattern b are output from the speakers 53 and 54, and the effect effect LED 52 and the reel LED 55 are displayed on the pattern b. It becomes a lighting mode based on. Further, as shown in FIG. 55B, when the corresponding control pattern receives the same command c as the command a, the control pattern in the control pattern storage area is updated to the pattern a corresponding to the command c. The control pattern of the area itself does not change. In this case, the state is maintained without switching the output state of the effect device.

また、サブCPU91aは、電源投入時においてメインCPU41aよりも先に起動するとともに、その起動時に、RAM91cのデータが正常であれば、図56に示すように、メインCPU41aの起動時に必ず送信される復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれかを受信せずとも、サブCPU91aの制御状態を電断前の制御状態に復帰させるが、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれかを受信するまでは、制御パターン格納領域に設定されている制御パターンに応じた出力制御は行なわず、復旧処理中である旨を報知する復旧中パターンAに応じた出力制御を行なう。これにより液晶表示器51には復旧処理中を示す復旧中画像が表示され、演出効果LED52は消灯状態となる。なお、スピーカ53、54からの効果音の出力はなく、リールLED55も消灯状態となる。   Further, the sub CPU 91a is activated before the main CPU 41a when the power is turned on, and if the data in the RAM 91c is normal at the time of activation, the sub CPU 91a is always transmitted when the main CPU 41a is activated as shown in FIG. The control state of the sub CPU 91a is returned to the control state before the power interruption without receiving any of the command, the error command indicating the RAM abnormality or the random circuit error, or the setting start command. Until receiving either an error command indicating an error or a setting start command, output control according to the control pattern set in the control pattern storage area is not performed, and a recovery pattern informing that recovery processing is in progress Output control according to A is performed. As a result, a restoring image indicating that the restoration process is in progress is displayed on the liquid crystal display 51, and the effect effect LED 52 is turned off. Note that there is no output of sound effects from the speakers 53 and 54, and the reel LED 55 is also turned off.

その後、復帰コマンドを受信した場合には、制御パターン格納領域に設定されている制御パターンに応じた出力制御を行ない、この時点で演出装置の出力状態が復旧中パターンAから制御パターン格納領域に設定されている制御パターンに応じた出力状態に切り替わる。これにより液晶表示器51に表示されている復旧中画像が制御パターン格納領域に設定されている制御パターンに基づく画像に更新され、スピーカ53、54から制御パターン格納領域に設定されている制御パターンに基づく効果音が出力され、演出効果LED52、リールLED55が制御パターン格納領域に設定されている制御パターンに基づく点灯態様となる。   After that, when a return command is received, output control is performed according to the control pattern set in the control pattern storage area, and at this time, the output state of the rendering device is set from the recovering pattern A to the control pattern storage area The output state is switched according to the control pattern being set. As a result, the restoring image displayed on the liquid crystal display 51 is updated to an image based on the control pattern set in the control pattern storage area, and the control pattern set in the control pattern storage area is changed from the speakers 53 and 54. Based on the sound effect, the effect LED 52 and the reel LED 55 are turned on based on the control pattern set in the control pattern storage area.

また、復帰コマンドを受信した場合には、検出状態格納領域に設定されている操作スイッチの検出状態と、操作検出フラグ、操作時間カウンタの値、時間経過フラグ、連続操作カウンタの値からなる操作履歴を初期化するようになっており、これら電断前に受信した操作検出フラグに基づく操作スイッチの検出状態や操作履歴は、復帰コマンドを受信しても復帰させない。   When a return command is received, an operation history consisting of the detection state of the operation switch set in the detection state storage area, the operation detection flag, the operation time counter value, the time elapsed flag, and the continuous operation counter value The detection state and operation history of the operation switch based on the operation detection flag received before the power interruption are not restored even when a return command is received.

また、サブCPU91aは、その起動時に、RAM91cのデータが正常でなければ、図57に示すように、メインCPU41aの起動時に必ず送信される復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれかを受信せずとも、RAM91cを初期化し、制御パターン格納領域に初期化後に対応するパターン0(通常画面の表示など)を設定するが、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれかを受信するまでは、制御パターン格納領域に設定されているパターン0に応じた出力制御は行なわず、復旧処理中である旨を報知する復旧中パターンBに応じた出力制御を行なう。これにより液晶表示器51には復旧中パターンAと同じ復旧中画像が表示されるが、演出効果LED52は復旧中パターンAと異なり点滅状態となる。なお、復旧中パターンAと同様にスピーカ53、54からの効果音の出力はなく、リールLED55も消灯状態となる。   Further, if the data in the RAM 91c is not normal at the time of activation, the sub CPU 91a, as shown in FIG. 57, always returns a return command when the main CPU 41a is activated, an error command or setting indicating a RAM abnormality or a random number circuit abnormality. Even if any of the start commands is not received, the RAM 91c is initialized and the corresponding pattern 0 (normal screen display etc.) is set in the control pattern storage area after initialization, but the return command, RAM error or random circuit error Until receiving either the error command shown or the setting start command, output control according to the pattern 0 set in the control pattern storage area is not performed, and the recovery pattern B for informing that recovery processing is in progress is performed. Output control is performed accordingly. As a result, the restoration-in-progress image same as the restoration-in-progress pattern A is displayed on the liquid crystal display 51. Note that, as in the recovery pattern A, no sound effect is output from the speakers 53 and 54, and the reel LED 55 is also turned off.

その後、復帰コマンドを受信した場合には、制御パターン格納領域に設定されているパターン0に応じた出力制御を行ない、この時点で演出装置の出力状態が復旧中パターンBから制御パターン格納領域に設定されているパターン0に応じた出力状態に切り替わる。これにより液晶表示器51に表示されている復旧中画像が制御パターン0に基づく通常画面に更新され、スピーカ53、54からの効果音の出力はなく、演出効果LED52、リールLED55が消灯した状態となる。   After that, when a return command is received, output control is performed according to the pattern 0 set in the control pattern storage area, and at this time, the output state of the rendering device is set from the recovering pattern B to the control pattern storage area The output state is switched according to the pattern 0. As a result, the restoring image displayed on the liquid crystal display 51 is updated to the normal screen based on the control pattern 0, no sound effect is output from the speakers 53 and 54, and the effect effect LED 52 and the reel LED 55 are turned off. Become.

また、RAM91cのデータが正常でない場合には、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれかを受信するまでの出力状態として、RAM91cのデータが正常の場合の復旧中パターンAとは、その出力態様の異なる復旧中パターンBに応じた出力制御を行なうようになっている。本実施の形態では、復旧中パターンA、Bともに液晶表示器51に復旧中画像が表示され、スピーカ53、54からの効果音の出力はなく、リールLED55が消灯された状態となるが、復旧中パターンAでは、演出効果LEDが消灯状態となるのに対して、復旧中パターンBでは、演出効果LEDが点滅状態となる。   Further, when the data in the RAM 91c is not normal, the recovery state when the data in the RAM 91c is normal as an output state until receiving any one of a return command, an error command indicating a RAM error or a random number circuit error, or a setting start command is received. With the middle pattern A, output control is performed according to the restoring pattern B having a different output mode. In the present embodiment, the restoring image is displayed on the liquid crystal display 51 for both the restoring patterns A and B, no sound effect is output from the speakers 53 and 54, and the reel LED 55 is turned off. In the middle pattern A, the effect LED is turned off, while in the pattern B being restored, the effect LED is blinked.

また、RAM91cの初期化に伴って検出状態格納領域に設定されている操作スイッチの検出状態と、操作検出フラグ、操作時間カウンタの値、時間経過フラグ、連続操作カウンタの値からなる操作履歴も初期化される。   In addition, an operation history including an operation switch detection state set in the detection state storage area with the initialization of the RAM 91c, an operation detection flag, an operation time counter value, a time elapsed flag, and a continuous operation counter value is also initialized. It becomes.

また、サブCPU91aは、その起動時に、RAM91cのデータが正常であり、制御状態を電断前の制御状態に復帰させた後、設定開始コマンドを受信した場合には、図58に示すように、RAM91cを初期化し、制御パターン格納領域に後述する管理情報へアクセス可能とする管理者用パターンを設定し、制御パターン格納領域の制御パターンが管理者用パターンに変更されると、これとほぼ同時に演出装置を管理者用パターンに応じた出力状態に制御し、演出装置の出力状態を復旧中パターンAから設管理者用パターンに基づく出力状態に切り替える。これにより液晶表示器51に表示されている復旧中画像が管理者モード画面に更新され、スピーカ53、54から警告音が出力され、演出効果LED52、リールLED55が点滅状態となる。   Further, when the sub CPU 91a receives the setting start command after the data in the RAM 91c is normal at the time of activation and the control state is returned to the control state before the power interruption, as shown in FIG. When the RAM 91c is initialized, an administrator pattern for enabling access to management information described later is set in the control pattern storage area, and the control pattern in the control pattern storage area is changed to the administrator pattern, the production is almost simultaneously performed. The device is controlled to an output state corresponding to the manager pattern, and the output state of the rendering device is switched from the restoration pattern A to the output state based on the manager pattern. As a result, the restoration-in-progress image displayed on the liquid crystal display 51 is updated to the manager mode screen, a warning sound is output from the speakers 53 and 54, and the effect effect LED 52 and the reel LED 55 are in a blinking state.

また、RAM91cの初期化に伴って検出状態格納領域に設定されている操作スイッチの検出状態と、操作検出フラグ、操作時間カウンタの値、時間経過フラグ、連続操作カウンタの値からなる操作履歴も初期化される。   In addition, an operation history including an operation switch detection state set in the detection state storage area with the initialization of the RAM 91c, an operation detection flag, an operation time counter value, a time elapsed flag, and a continuous operation counter value is also initialized. It becomes.

また、RAM91cのデータ正常ではなく、RAM91cを初期化した後、設定開始コマンドを受信した場合には、制御パターン格納領域に設定されているパターン0を管理者用パターンに更新し、制御パターン格納領域のパターン0が管理者用パターンに変更されると、これとほぼ同時に演出装置を管理者用パターンに応じた出力状態に制御し、演出装置の出力状態を復旧中パターンBから管理者用パターンに基づく出力状態に切り替える。   In addition, when the data in the RAM 91c is not normal and the RAM 91c is initialized and a setting start command is received, the pattern 0 set in the control pattern storage area is updated to the administrator pattern, and the control pattern storage area When the pattern 0 is changed to the manager pattern, the rendering device is controlled to the output state corresponding to the manager pattern almost simultaneously with this, and the output state of the rendering device is changed from the recovering pattern B to the manager pattern. Switch to based output state.

また、RAM91cの初期化に伴って検出状態格納領域に設定されている操作スイッチの検出状態と、操作検出フラグ、操作時間カウンタの値、時間経過フラグ、連続操作カウンタの値からなる操作履歴も初期化される。   In addition, an operation history including an operation switch detection state set in the detection state storage area with the initialization of the RAM 91c, an operation detection flag, an operation time counter value, a time elapsed flag, and a continuous operation counter value is also initialized. It becomes.

また、サブCPU91aは、その起動時に、RAM91cのデータが正常であり、制御状態を電断前の制御状態に復帰させた後、RAM異常あるいは乱数回路異常を示すエラーコマンドを受信した場合には、図59に示すように、RAM91cを初期化し、制御パターン格納領域にエラーパターンを設定し、制御パターン格納領域がエラーパターンに変更されると、これとほぼ同時に演出装置をエラーパターンに応じた出力状態に制御し、演出装置の出力状態を復旧中パターンAからエラーパターンに基づく出力状態に切り替える。これにより液晶表示器51に表示されている復旧中画像がエラー報知画像に更新され、スピーカ53、54から警告音が出力され、演出効果LED52、リールLED55が点滅状態となる。   In addition, when the sub CPU 91a receives the error command indicating the RAM abnormality or the random number circuit abnormality after the data of the RAM 91c is normal at the time of activation and the control state is returned to the control state before the power interruption, As shown in FIG. 59, when the RAM 91c is initialized, an error pattern is set in the control pattern storage area, and the control pattern storage area is changed to the error pattern, the rendering device is output in accordance with the error pattern almost simultaneously with this. And the output state of the rendering device is switched from the recovering pattern A to the output state based on the error pattern. As a result, the in-restoration image displayed on the liquid crystal display 51 is updated to an error notification image, a warning sound is output from the speakers 53 and 54, and the effect effect LED 52 and the reel LED 55 are in a blinking state.

また、RAM91cの初期化に伴って検出状態格納領域に設定されている操作スイッチの検出状態と、操作検出フラグ、操作時間カウンタの値、時間経過フラグ、連続操作カウンタの値からなる操作履歴も初期化される。   In addition, an operation history including an operation switch detection state set in the detection state storage area with the initialization of the RAM 91c, an operation detection flag, an operation time counter value, a time elapsed flag, and a continuous operation counter value is also initialized. It becomes.

また、RAM91cのデータ正常ではなく、RAM91cを初期化した後、RAM異常あるいは乱数回路異常を示すエラーコマンドを受信した場合には、制御パターン格納領域に設定されているパターン0をエラーパターンに更新し、制御パターン格納領域のパターン0がエラーパターンに変更されると、これとほぼ同時に演出装置をエラーパターンに応じた出力状態に制御し、演出装置の出力状態を復旧中パターンBからエラーパターンに基づく出力状態に切り替える。   In addition, when the RAM 91c data is not normal but the RAM 91c is initialized and an error command indicating RAM abnormality or random number circuit abnormality is received, the pattern 0 set in the control pattern storage area is updated to an error pattern. When pattern 0 in the control pattern storage area is changed to an error pattern, the rendering device is controlled to an output state corresponding to the error pattern almost simultaneously with this, and the output state of the rendering device is based on the error pattern from the recovering pattern B Switch to output state.

また、RAM91cの初期化に伴って検出状態格納領域に設定されている操作スイッチの検出状態と、操作検出フラグ、操作時間カウンタの値、時間経過フラグ、連続操作カウンタの値からなる操作履歴も初期化される。   In addition, an operation history including an operation switch detection state set in the detection state storage area with the initialization of the RAM 91c, an operation detection flag, an operation time counter value, a time elapsed flag, and a continuous operation counter value is also initialized. It becomes.

また、サブCPU91aは、その起動時に、RAM91cのデータが正常であり、制御状態を電断前の制御状態に復帰させた後、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれも受信せずに、復帰待ち時間が経過した場合には、図60に示すように、制御パターン格納領域に設定されている電断前の制御パターンを待避し、遊技制御基板40との接続エラーを報知する接続エラーパターンに更新し、制御パターン格納領域の電断前の制御パターンが接続エラーパターンに変更されると、これとほぼ同時に演出装置を接続エラー報知の出力状態に制御し、演出装置の出力状態を復旧中パターンAから接続エラー報知の出力状態に切り替える。これにより液晶表示器51に表示されている復旧中画像が接続エラー報知画面に更新され、スピーカ53、54から警告音が出力され、演出効果LED52、リールLED55が点滅状態となる。   Further, the sub CPU 91a, when activated, restores the control state to the control state before power interruption after the data in the RAM 91c is normal, and then returns a command, an error command indicating a RAM abnormality or a random number circuit abnormality, or a setting start command. If the return waiting time elapses without receiving any of the above, the control pattern before power interruption set in the control pattern storage area is saved as shown in FIG. Update the connection error pattern to notify the connection error, and when the control pattern before power interruption in the control pattern storage area is changed to the connection error pattern, the production device is controlled to the output state of the connection error notification almost simultaneously with this, The output state of the effect device is switched from the recovering pattern A to the connection error notification output state. As a result, the restoration-in-progress image displayed on the liquid crystal display 51 is updated to the connection error notification screen, a warning sound is output from the speakers 53 and 54, and the effect effect LED 52 and the reel LED 55 are blinked.

また、復帰待ち時間が経過した場合には、検出状態格納領域に設定されている操作スイッチの検出状態と、操作検出フラグ、操作時間カウンタの値、時間経過フラグ、連続操作カウンタの値からなる操作履歴を初期化する。   When the return waiting time has elapsed, an operation consisting of the detection state of the operation switch set in the detection state storage area, the operation detection flag, the operation time counter value, the time elapse flag, and the continuous operation counter value Initialize history.

なお、本実施の形態では、接続エラー状態へ移行してもRAM91cはクリアされず、さらに制御パターン格納領域に設定されている電断前の制御パターンも待避されるようになっており、接続エラー状態へ移行後、一度電源を落として再投入し、サブCPU91aを再起動させた際にRAM91cのデータが正常であれば、その後メインCPU41aから復帰コマンドを受信した際に、RAM91cに保持されているデータに基づいてサブCPU91aの制御状態および演出装置の出力状態が復帰するようになっている。なお、復帰待ち時間が経過した場合には、検出状態格納領域に設定されている操作スイッチの検出状態と、操作検出フラグ、操作時間カウンタの値、時間経過フラグ、連続操作カウンタの値からなる操作履歴は、初期化されているため、復帰することはない。   In this embodiment, even if the connection error state is entered, the RAM 91c is not cleared, and the control pattern before power interruption set in the control pattern storage area is also saved. If the data in the RAM 91c is normal when the power is turned off and then turned on again after the transition to the state and the sub CPU 91a is restarted, the data is held in the RAM 91c when a return command is received from the main CPU 41a. Based on the data, the control state of the sub CPU 91a and the output state of the rendering device are restored. When the return waiting time has elapsed, an operation consisting of the detection state of the operation switch set in the detection state storage area, the operation detection flag, the operation time counter value, the time elapse flag, and the continuous operation counter value. Since the history is initialized, it does not return.

また、RAM91cのデータ正常ではなく、RAM91cを初期化した後、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれも受信せずに、復帰待ち時間が経過した場合には、制御パターン格納領域に設定されているパターン0を接続エラーパターンに更新し、制御パターン格納領域のパターン0が接続エラーパターンに変更されると、これとほぼ同時に演出装置を接続エラー報知の出力状態に制御し、演出装置の出力状態を復旧中パターンBから接続エラー報知の出力状態に切り替える。   In addition, when the data in the RAM 91c is not normal, and after the RAM 91c is initialized, neither a return command, an error command indicating a RAM error or a random number circuit error, or a setting start command has been received, and the return waiting time has elapsed. When the pattern 0 set in the control pattern storage area is updated to the connection error pattern, and the pattern 0 in the control pattern storage area is changed to the connection error pattern, the directing device outputs the connection error notification almost simultaneously with this. And the output state of the rendering device is switched from the recovering pattern B to the connection error notification output state.

このようにサブCPU91aは、その起動時にRAM91cのデータが正常である場合に、制御状態を電断前の制御状態に復帰させるが、メインCPU41aから復帰コマンドを受信するまでは、演出装置による出力状態は復帰させず、復帰コマンドを受信した時点で出力状態も復帰させるようになっており、メインCPU41aが電断前の状態に復帰しない状態で、演出装置による出力状態のみが復帰してしまうことがなく、電源投入時におけるメインCPU41a側の制御状態と演出装置による出力状態とを整合させることができる。   As described above, when the data in the RAM 91c is normal at the time of activation, the sub CPU 91a returns the control state to the control state before the power interruption, but the output state by the effect device until the return command is received from the main CPU 41a. Is not restored, and the output state is also restored when the return command is received, and only the output state by the rendering device may be restored without the main CPU 41a returning to the state before the power interruption. In addition, the control state on the main CPU 41a side when the power is turned on and the output state by the effect device can be matched.

また、サブCPU91aは、その起動時にRAM91cのデータが正常である場合に、制御状態を電断前の制御状態に復帰させるが、メインCPU41aからRAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドを受信した場合、すなわちメインCPU41a側が電断前の状態に復帰しない場合には、RAM91cを初期化するようになっており、電源投入時において、サブCPU91a側のみが復帰可能な場合でも、メインCPU41aとサブCPU91aとの制御状態とを整合させることができる。   Further, the sub CPU 91a returns the control state to the control state before the power interruption when the data in the RAM 91c is normal at the time of activation, but the main CPU 41a receives an error command or setting start command indicating a RAM abnormality or a random number circuit abnormality. In other words, when the main CPU 41a side does not return to the state before the power interruption, the RAM 91c is initialized. Even when only the sub CPU 91a side can be restored when the power is turned on, the main CPU 41a And the control state of the sub CPU 91a can be matched.

また、サブCPU91aは、起動時にRAM91cのデータが正常か否かを判定し、正常でない場合には、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドの受信を待たずに、RAM91cを初期化し、制御パターン格納領域にパターン0を設定し、その後、復帰コマンドを受信した際に、パターン0に応じた出力状態にて演出装置の出力制御を行なうようになっており、サブCPU91aがRAM91cのデータに基づいて電断前の制御状態に復帰できない場合でも、メインCPU41aから復帰コマンドを受信した際に、演出装置の出力が停止してしまうことがなく、初期化された制御パターンに応じて演出装置の出力制御を開始することができる。   Further, the sub CPU 91a determines whether or not the data in the RAM 91c is normal at the time of activation. If not normal, the sub CPU 91a does not wait for reception of a return command, an error command indicating a RAM error or a random number circuit error, or a setting start command. The RAM 91c is initialized, the pattern 0 is set in the control pattern storage area, and then when the return command is received, the output control of the effect device is performed in the output state corresponding to the pattern 0, and the sub CPU 91a Even when the control state before power interruption cannot be restored based on the data in the RAM 91c, when the return command is received from the main CPU 41a, the output of the effect device does not stop and the control pattern is initialized. Accordingly, the output control of the rendering device can be started.

また、サブCPU91aは、その起動後、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれかを受信するまでの状態において、復旧処理中を示す復旧中パターンに応じて演出装置の出力制御を行なうようになっており、電源投入後、制御パターン格納領域に設定されている制御パターンに応じた演出装置の出力が開始する前の状態でも、サブCPU91aが現在どのような状態にあるか、を外部から容易に確認することができる。   In addition, the sub CPU 91a produces an effect according to the recovery pattern indicating that the recovery process is in progress until it receives any of the return command, the error command indicating the RAM abnormality or the random circuit error, or the setting start command after the activation. The output of the device is controlled, and even after the power is turned on, even in a state before the output of the rendering device according to the control pattern set in the control pattern storage area starts, what state the sub CPU 91a is currently in Can be easily confirmed from the outside.

特に、本実施の形態では、サブCPU91aが電断前の制御状態に復帰した状態で、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれかの受信を待機している場合には、復旧中パターンAに応じて演出装置の出力制御が行なわれるのに対して、サブCPU91aがRAM91cを初期化した状態で、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれかの受信を待機している場合には、復旧中パターンAとは出力態様の異なる復旧中パターンBに応じて演出装置の出力制御が行なわれるようになっており、復旧中パターンの出力状態にある演出装置の出力態様から、サブCPU91aが電断前の制御状態に復帰したのか、RAM91cが初期化されたのか、を外部から確認することができる。   In particular, in the present embodiment, the sub CPU 91a waits for reception of any one of a return command, an error command indicating a RAM abnormality or a random number circuit abnormality, or a setting start command in a state where the sub CPU 91a has returned to the control state before the power interruption. In this case, the output control of the rendering device is performed according to the pattern A being restored, while the sub CPU 91a initializes the RAM 91c, and the error command or setting indicating a return command, a RAM error, or a random circuit error. When waiting for reception of any of the start commands, the output control of the rendering device is performed according to the recovering pattern B having a different output mode from the recovering pattern A. Whether the sub CPU 91a has returned to the control state before the power interruption from the output mode of the rendering device in the output state of the RAM 91 There whether been initialized, it can be confirmed from the outside.

また、サブCPU91aは、その起動後、復帰コマンド、RAM異常あるいは乱数回路異常を示すエラーコマンドまたは設定開始コマンドのいずれも受信せずに、復帰待ち時間が経過した場合には、接続エラー報知が実行されるようになっており、遊技制御基板40との接続不良である旨を特定できるようになっている。   Further, after the activation, the sub CPU 91a does not receive any of the return command, the error command indicating the RAM abnormality or the random number circuit abnormality, or the setting start command, and if the return waiting time has elapsed, the connection error notification is executed. Thus, it is possible to specify that the connection with the game control board 40 is poor.

また、接続エラー報知が実行されてもRAM91cは初期化されず、再度、電源投入した際に、メインCPU41aから復帰コマンドを受信することで、元の制御状態に復帰させることができるようになっている。   Further, even if the connection error notification is executed, the RAM 91c is not initialized, and when the power is turned on again, it is possible to return to the original control state by receiving a return command from the main CPU 41a. Yes.

また、サブCPU91aは、その起動時にRAM91cのデータが正常である場合に、制御状態を電断前の制御状態に復帰させるが、メインCPU41aから復帰情報を受信して演出装置の出力状態も復帰させる際に、検出状態格納領域に設定されている操作スイッチの検出状態と、操作検出フラグ、操作時間カウンタの値、時間経過フラグ、連続操作カウンタの値からなる操作履歴を初期化し、これら電断前に受信した操作検出フラグに基づく操作スイッチの検出状態や操作履歴を復帰させないようになっており、電源投入後、操作スイッチが操作されていないにも関わらず、ゲームの進行制御に関与しない操作スイッチの操作に応じた演出が実行されてしまうことを防止できる。このため、後述の連続操作演出のように演出条件を満たす介入操作によって演出結果が報知されない演出は、電源投入後であっても、演出条件を満たす介入操作が行なわれた場合にしか演出結果が報知されることはないので、遊技者の介入操作に伴う演出の価値を高めることができるとともに、演出条件が電断を跨って判定されることがないため、演出条件を満たす操作が分かりやすいものとなる。   Further, the sub CPU 91a returns the control state to the control state before the power interruption when the data in the RAM 91c is normal at the time of activation, but receives the return information from the main CPU 41a and also returns the output state of the effect device. The operation history consisting of the operation switch detection status set in the detection status storage area, operation detection flag, operation time counter value, time elapsed flag, and continuous operation counter value is initialized. The operation switch detection state and operation history based on the received operation detection flag are not restored, and the operation switch does not participate in the game progress control even though the operation switch is not operated after the power is turned on. It is possible to prevent the performance according to the operation from being executed. For this reason, an effect in which an effect result is not notified by an intervention operation that satisfies the effect condition, such as a continuous operation effect that will be described later, will be produced only when an intervention operation that satisfies the effect condition is performed even after the power is turned on. Because it will not be notified, the value of the production accompanying the player's intervention operation can be increased, and the production conditions are not determined across power interruptions, so operations that satisfy the production conditions are easy to understand It becomes.

また、サブCPU91aは、その起動時にRAM91cのデータが正常であり、制御状態を電断前の制御状態に復帰させる場合において、メインCPU41aから復帰コマンドを受信したとき、すなわちメインCPU41aの制御状態も復帰し、演出装置の出力状態も含めサブCPU91a側の状態を電断前に復帰することが確定した段階で操作スイッチの検出状態や操作履歴を初期化するようになっており、メインCPU41a側が電断前の状態に復帰せず、RAM91cのデータが全て初期化されるにも関わらず、無駄に操作スイッチの検出状態や操作履歴のみの初期化が行なわれてしまうことがないうえに、演出装置の出力状態を含め全ての状態が復帰する前に操作スイッチの検出状態や操作履歴が初期化されるので、これら操作スイッチの検出状態や操作履歴が初期化されないまま演出が開始してしまうことを確実に防止できる。   In addition, when the sub CPU 91a receives the return command from the main CPU 41a when the data in the RAM 91c is normal at the time of activation and the control state is returned to the control state before the power interruption, that is, the control state of the main CPU 41a is also returned. The operation switch detection state and operation history are initialized when it is determined that the state on the sub CPU 91a side including the output state of the effect device is restored before the power interruption, and the main CPU 41a side is disconnected. Although all of the data in the RAM 91c is initialized without returning to the previous state, only the operation switch detection state and the operation history are not initialized unnecessarily. The operation switch detection state and operation history are initialized before all the states including the output state are restored. That the detection state and operation history switch will initiate Produce without being initialized can be reliably prevented.

また、サブCPU91aは、起動時において操作スイッチの検出状態や操作履歴を初期化するようになっており、電断時においては、操作スイッチの検出状態や操作履歴を含め、RAM91cに格納されている全てデータを保持しておく構成であるため、電断時の処理においてバックアップするデータを選別する必要がなく、電断時の処理を速やかに終了させることができる。   Further, the sub CPU 91a is configured to initialize the operation switch detection state and operation history at the time of activation, and is stored in the RAM 91c including the operation switch detection state and operation history at the time of power interruption. Since all the data is stored, it is not necessary to select data to be backed up in the process at the time of power interruption, and the process at the time of power interruption can be quickly terminated.

なお、本実施の形態では、サブCPU91aは、その起動時にRAM91cのデータが正常であり、制御状態を電断前の制御状態に復帰させる場合において、メインCPU41aから復帰コマンドを受信したときに操作スイッチの検出状態や操作履歴を初期化する構成であるが、起動時においてRAM91cのデータが正常である場合に、復帰コマンドの受信を待たず、一律に操作スイッチの検出状態や操作履歴を初期化する構成としてもよく、このような構成とした場合には、演出装置の出力状態が復帰するか否かに関わらず、その前の段階で確実に操作スイッチの検出状態や操作履歴が初期化されるので、これら操作スイッチの検出状態や操作履歴が初期化されないまま演出が開始してしまうことを確実に防止できる。また、復帰コマンドの受信を待たず、一律に操作スイッチの検出状態や操作履歴を初期化する構成を採る場合には、メインCPU41aが電断前の制御状態に復帰する際に、復帰コマンドを送信しない構成としてもよい。   In the present embodiment, the sub CPU 91a operates when the data in the RAM 91c is normal at the time of activation, and when the control state is returned to the control state before power interruption, when the return command is received from the main CPU 41a. However, when the data in the RAM 91c is normal at the time of startup, the detection state of the operation switch and the operation history are uniformly initialized without waiting for a return command to be received. In such a configuration, the detection state of the operation switch and the operation history are surely initialized at the previous stage regardless of whether or not the output state of the rendering device is restored. Therefore, it is possible to reliably prevent the production from starting without initializing the detection state or operation history of these operation switches. Further, when a configuration is adopted in which the operation switch detection state and the operation history are uniformly initialized without waiting for the reception of the return command, the return command is transmitted when the main CPU 41a returns to the control state before the power interruption. It is good also as a structure which does not.

また、本実施の形態では、電断時にRAM91cに格納されている全てのデータをバックアップし、メインCPU91aが起動時に操作スイッチの検出状態や操作履歴を初期化することで、電断前の操作スイッチの検出状態や操作履歴が復帰しないようにしているが、電断時に、操作スイッチの検出状態や操作履歴をバックアップしないことにより、電断前の操作スイッチの検出状態や操作履歴を復帰させない構成としてもよい。   In the present embodiment, all data stored in the RAM 91c is backed up when the power is cut off, and the main CPU 91a initializes the detection state of the operation switches and the operation history when the main CPU 91a is activated. The detection status and operation history of the operation switch are not restored, but the detection status and operation history of the operation switch before power failure are not restored by not backing up the detection status and operation history of the operation switch at the time of power interruption. Also good.

本実施の形態においてサブCPU91aは、メインCPU41aの制御状態に応じてゲームの進行制御に関与しない操作スイッチの操作、すなわち操作検出コマンドから特定される操作スイッチの検出状態に応じて操作演出を実行する。   In the present embodiment, the sub CPU 91a executes an operation effect according to the operation switch operation not related to the progress control of the game according to the control state of the main CPU 41a, that is, according to the detection state of the operation switch specified from the operation detection command. .

図61は、操作演出の一例を示すものである。図61に示すパターン1は、液晶表示器51の背景や出現するキャラクタなどの種類が異なる複数種類の演出ステージからいずれかのステージを変更するためのステージ変更演出を実行するためのパターンであり、ゲーム終了後(設定変更後)からゲーム開始までの制御状態において、ストップスイッチ8L、8C、8Rのうち左、中のストップスイッチ8L、8Cが同時に操作されたとき、すなわち操作検出コマンドが示す操作スイッチの検出状態が、ストップスイッチ8L、8Cの検出状態のいずれかがOFFの状態で、ストップスイッチ8L、8Cの検出状態がともにON、ストップスイッチ8Rの検出状態がOFFに変化した場合に実行される。   FIG. 61 shows an example of the operation effect. The pattern 1 shown in FIG. 61 is a pattern for executing a stage change effect for changing any stage from a plurality of types of effect stages with different types such as the background of the liquid crystal display 51 and the appearing character. In the control state from the end of the game (after setting change) to the start of the game, when the left and middle stop switches 8L, 8C among the stop switches 8L, 8C, 8R are operated simultaneously, that is, the operation switch indicated by the operation detection command Is detected when either of the detection states of the stop switches 8L and 8C is OFF, the detection states of the stop switches 8L and 8C are both ON, and the detection state of the stop switch 8R is changed to OFF. .

パターン2は、ステージ変更演出において、各ストップスイッチに対応して提示された演出パターンを選択して決定するパターンであり、ゲーム終了後(設定変更後)からゲーム開始までの制御状態であり、かつステージ変更演出が実行されている状態においていずれかのストップスイッチが操作されたとき、すなわち操作検出コマンドが示す操作スイッチの検出状態が、いずれかのストップスイッチの検出状態がOFFの状態で、当該ストップスイッチの検出状態がON、他のストップスイッチの検出状態がOFFに変化した場合に実行される。   Pattern 2 is a pattern for selecting and determining an effect pattern presented corresponding to each stop switch in the stage change effect, and is a control state from the end of the game (after setting change) to the start of the game, and When any stop switch is operated while the stage change effect is being executed, that is, when the detection state of the operation switch indicated by the operation detection command is the detection state of any stop switch is OFF This is executed when the detection state of the switch changes to ON and the detection state of other stop switches changes to OFF.

パターン3は、ゲームの履歴や演出情報などの台情報閲覧演出を実行するパターンであり、ゲーム終了後(設定変更後)からゲーム開始までの制御状態において、ストップスイッチ8L、8C、8Rのうち中、右のストップスイッチ8C、8Rが同時に操作されたとき、すなわち操作検出コマンドが示す操作スイッチの検出状態が、ストップスイッチ8C、8Rの検出状態のいずれかがOFFの状態で、ストップスイッチ8C、8Rの検出状態がともにON、ストップスイッチ8Lの検出状態がOFFに変化した場合に実行される。   Pattern 3 is a pattern for executing stage information browsing effects such as game history and effect information. Among the stop switches 8L, 8C, and 8R in the control state from the end of the game (after setting change) to the start of the game. When the right stop switches 8C and 8R are operated at the same time, that is, when the detection state of the operation switch indicated by the operation detection command is one of the detection states of the stop switches 8C and 8R is OFF, the stop switches 8C and 8R This is executed when both of the detection states of are changed to ON and the detection state of the stop switch 8L is changed to OFF.

パターン4は、効果音を出力するパターンであり、ゲーム終了後(設定変更後)からゲーム開始までの制御状態であり、かつステージ変更演出が実行されていない状態においていずれかのストップスイッチが操作されたとき、すなわち操作検出コマンドが示す操作スイッチの検出状態が、いずれかのストップスイッチの検出状態がOFFの状態で、当該ストップスイッチの検出状態がON、他のストップスイッチに変化した場合に1/100の確率で実行される。   Pattern 4 is a pattern for outputting sound effects, which is a control state from the end of the game (after setting change) to the start of the game, and any stop switch is operated in a state where the stage change effect is not executed. In other words, when the detection state of the operation switch indicated by the operation detection command is one in which the detection state of one of the stop switches is OFF, the detection state of the stop switch is ON, and the stop switch changes to another stop switch. It is executed with a probability of 100.

パターン5は、特別役に当選した可能性を示唆するとともに、最終的に特別役に当選しているか否かを報知する特別役当選示唆演出を実行するパターンであり、ゲーム開始後からゲーム終了までの制御状態においてMAXBETスイッチ6の連続操作を指示する演出を行なった後、MAXBETスイッチ6が10回連続操作されたとき、すなわち操作検出コマンドが示す操作スイッチの検出状態が、MAXBETスイッチ6の検出状態がON、OFFを交互に10回繰り返して変化したときに実行される。   Pattern 5 is a pattern that suggests the possibility of winning a special role, and finally executes a special role selection suggesting effect that informs whether or not a special role has been won, from the start of the game to the end of the game When the MAXBET switch 6 is continuously operated 10 times after performing the effect of instructing the continuous operation of the MAXBET switch 6 in the control state, that is, the detection state of the operation switch indicated by the operation detection command is the detection state of the MAXBET switch 6. Is executed when the value of ON changes alternately ON and OFF 10 times.

パターン6は、パターン5と同様に特別役当選示唆演出を実行するパターンであり、ゲーム開始後からゲーム終了までの制御状態においてMAXBETスイッチ6の長押しを指示する演出を行なった後、MAXBETスイッチ6が3秒間継続して操作されたとき、すなわち操作検出コマンドが示す操作スイッチの検出状態が、MAXBETスイッチ6の検出状態がOFFの状態で、MAXBETスイッチ6の検出状態がONに変化した後、OFFに変化せずに3秒間経過したときに実行される。   The pattern 6 is a pattern for executing the special role winning suggestion effect as in the case of the pattern 5. After performing the effect instructing the long press of the MAXBET switch 6 in the control state from the start of the game to the end of the game, the MAXBET switch 6 Is continuously operated for 3 seconds, that is, the operation switch detection state indicated by the operation detection command is OFF after the MAXBET switch 6 detection state is OFF and the MAXBET switch 6 detection state is changed to ON. It is executed when 3 seconds elapse without changing.

なお、図61に示す操作演出は、ゲームの進行制御に関与しない操作がなされた際に実行される演出の一例であり、他の演出を適用してもよい。   The operation effect shown in FIG. 61 is an example of an effect that is executed when an operation not involved in the progress control of the game is performed, and other effects may be applied.

次に、前述した操作演出のうちパターン5の特別役当選示唆演出(以下連続操作演出とする)について説明する。   Next, the special role winning suggestion effect (hereinafter referred to as a continuous operation effect) of the pattern 5 among the operation effects described above will be described.

連続操作演出は、ゲーム開始に伴う内部当選コマンドの受信時に実行する演出パターン選択処理において該当する演出パターンが選択されたときに実行される。   The continuous operation effect is executed when a corresponding effect pattern is selected in an effect pattern selection process executed when an internal winning command associated with the start of the game is received.

演出パターン選択処理では、内部当選コマンドから特別役が当選している旨が特定される場合に、特別役が当選していない旨が特定される場合よりも高い比率にて連続操作演出の演出パターンを選択するようになっており、連続操作演出が実行されるだけでも特別役の当選に対する期待感を高めることができる。   In the effect pattern selection process, when the fact that the special role is won is specified from the internal winning command, the effect pattern of the continuous operation effect is higher than when the fact that the special role is not won is specified. Therefore, the expectation for winning the special role can be enhanced only by executing the continuous operation effect.

連続操作演出では、まず、ゲームの開始と同時にMAXBETスイッチ6を5秒以内に10回操作する旨を指示する指示演出を開始する。そして、指示演出が開始した後、ゲームが終了するまで(全てのリールが停止するまで)の間にMAXBETスイッチ6が操作されなければ、ゲームの終了時点で指示演出は終了する。この場合には、特別役に当選しているか否かが指示演出に続けて告知されることはない。   In the continuous operation effect, first, an instruction effect instructing that the MAXBET switch 6 is operated 10 times within 5 seconds simultaneously with the start of the game is started. If the MAXBET switch 6 is not operated until the game ends (until all reels stop) after the instruction effect starts, the instruction effect ends at the end of the game. In this case, whether or not the special role is won is not notified following the instruction production.

その後、新たなゲームが開始された(内部当選コマンドを受信した)時点で、前回のゲームまでに特別役に当選していたのであれば、特別役の当選が告知される。特別役の当選の告知は、これらの特別役に入賞するまで継続される(以下に示すような他の条件で行なわれた告知も同じ)。   Thereafter, when a new game is started (when an internal winning command is received), if the special game has been won by the previous game, the special game will be announced. The notice of winning the special role will continue until these special roles are won (the same applies to notices made under other conditions as shown below).

前回のゲームまでに特別役に当選していなければ、新たなゲームが開始された時点では前回のゲームでの指示演出に関連した告知は行なわれない。但し、新たに開始されたゲームで特別役に当選していれば、改めて新たな連続操作演出の指示演出は開始され得る。   If the special role is not won by the previous game, the notification related to the instruction production in the previous game is not performed when a new game is started. However, if the special role is won in the newly started game, the instruction effect for the new continuous operation effect can be started again.

一方、ゲームが終了するまでに遊技者により最初にMAXBETスイッチ6が操作されると、RAM91cに割り当てられた制限時間計時用タイマの計時が開始される。この制限時間計時用タイマの計時する時間が5秒になるまでに、MAXBETスイッチ6が10回(計時を開始させたときの操作を回数に含む)まで操作されず、且つ全てのリールが停止した場合には、MAXBETスイッチ6が全く操作されなかった場合と同様にゲームの終了時点で指示演出が終了する。   On the other hand, when the MAXBET switch 6 is first operated by the player before the game is over, the timer for the time limit timer assigned to the RAM 91c is started. The MAXBET switch 6 is not operated up to 10 times (including the operation when the time measurement is started) and all reels are stopped until the time measured by the timer for time limit reaches 5 seconds. In this case, the instruction effect ends at the end of the game, as in the case where the MAXBET switch 6 is not operated at all.

この場合も、特別役の当選の有無が指示演出に続けて告知されることはなく、新たなゲームが開始された時点で、前回のゲームまでに特別役に当選していたのであれば、特別役の当選が告知される。前回のゲームまでに特別役に当選していなければ、新たなゲームが開始された時点では前回のゲームでの指示演出に関連した告知は行なわれない。   In this case as well, the presence / absence of the special role will not be announced following the instruction production, and if the special role has been won by the previous game when the new game is started, The winning of the role is announced. If the special role is not won by the previous game, the notification related to the instruction production in the previous game is not performed when a new game is started.

また、MAXBETスイッチ6の最初の操作により計時開始されたタイマの計時する時間が5秒になるまでに全てのリールが停止しなかったが、制限時間計時用タイマの計時する時間が5秒になるまでにMAXBETスイッチ6が10回まで操作されることもなかった場合には、制限時間計時用タイマの計時する時間が5秒になった時点で指示演出が終了する。この場合には、特別役に当選しているか否かに関わらず、指示演出に続けて、特別役の何れにも当選していないこと(ハズレ)が告知される。このハズレの告知は、全てのリールが停止したことによりゲームが終了すると、終了する。   Further, although all the reels did not stop before the time measured by the timer started by the first operation of the MAXBET switch 6 became 5 seconds, the time measured by the time limit timer becomes 5 seconds. If the MAXBET switch 6 has not been operated up to 10 times before, the instruction effect ends when the time counted by the time limit timer reaches 5 seconds. In this case, regardless of whether or not the special role is won, following the instruction production, it is notified that none of the special roles has been won (losing). This notice of losing ends when the game ends because all reels have stopped.

その後、新たなゲームが開始された時点で、前回のゲームまでに特別役に当選していたのであれば、特別役の当選が告知される。前回のゲームまでに特別役に当選していなければ、新たなゲームが開始された時点では前回のゲームでの指示演出に関連した告知は行なわれない。   Thereafter, if a special role is won by the previous game when a new game is started, the special role is announced. If the special role is not won by the previous game, the notification related to the instruction production in the previous game is not performed when a new game is started.

また、MAXBETスイッチ6の最初の操作により計時開始されたタイマの計時する時間が5秒になるまでに全てのリールが停止することなくMAXBETスイッチ6が10回操作された場合には、MAXBETスイッチ6の操作回数が10回になった時点で指示演出が終了する。この場合には、特別役に当選していれば、指示演出に続けて特別役の当選が告知され、何れにも当選していなければ、指示演出に続けてハズレが告知される。   If the MAXBET switch 6 is operated 10 times without stopping all the reels until the time measured by the timer started by the first operation of the MAXBET switch 6 reaches 5 seconds, the MAXBET switch 6 When the number of operations reaches 10 times, the instruction effect ends. In this case, if the special role is won, the special effect will be announced following the instruction effect, and if neither is selected, the loss will be notified following the instruction effect.

以下、連続操作演出を具体例に基づいて説明する。図62(a)〜(d)は、遊技の進行と連続操作演出の実行態様との関係を示すタイミングチャートである。   Hereinafter, the continuous operation effect will be described based on a specific example. 62A to 62D are timing charts showing the relationship between the progress of the game and the execution mode of the continuous operation effect.

図62(a)の例では、遊技者によるスタートスイッチ7の操作によりゲーム1が開始されたときに、特別役に当選したものとする。このような状況で連続操作演出を実行する場合には、当該ゲームが開始されたタイミングから指示演出が開始される。   In the example of FIG. 62A, it is assumed that the special combination is won when the game 1 is started by the player operating the start switch 7. When the continuous operation effect is executed in such a situation, the instruction effect is started from the timing at which the game is started.

次に、ゲーム1が終了するまで(すなわち、全てのリールが停止するまで)の任意のタイミングで遊技者がMAXBETスイッチ6を最初に操作すると、制限時間計時用タイマによる計時が開始される。遊技者がMAXBETスイッチ6の操作を繰り返して行ない、全てのリールが停止する前に、また、制限時間計時用タイマにより計時している時間が5秒に到達するよりも前に、MAXBETスイッチ6の操作回数が最初の操作を含めて10回に達したものとする。   Next, when the player first operates the MAXBET switch 6 at an arbitrary timing until the game 1 is finished (that is, until all reels are stopped), time measurement by the time limit timer is started. The player repeats the operation of the MAXBET switch 6, and before all reels stop, and before the time counted by the time limit timer reaches 5 seconds, the MAXBET switch 6 It is assumed that the number of operations reaches 10 times including the first operation.

すると、この時点で指示演出が終了し、終了した指示演出に続けてゲーム1のうちに特別役に当選していることが告知されるものとなる。なお、このボーナス当選の告知は、ゲーム2が開始しても、当選した特別役に入賞するまで継続される。   Then, at this time, the instruction effect ends, and it is notified that the special role is won in the game 1 following the instruction effect that has ended. Note that even when the game 2 is started, the bonus winning announcement is continued until the winning special role is won.

図62(b)の例では、遊技者によるスタートレバー11の操作によりゲーム1が開始されたときに、いずれの特別役にも当選していないものとする。このような状況で連続操作演出を実行する場合にも、当該ゲームが開始されたタイミングから指示演出が開始される。   In the example of FIG. 62 (b), it is assumed that no special combination is won when the game 1 is started by the player operating the start lever 11. Even when the continuous operation effect is executed in such a situation, the instruction effect is started from the timing at which the game is started.

次に、ゲーム1が終了するまで(すなわち、全てのリールが停止するまで)の任意のタイミングで遊技者がMAXBETスイッチ6を最初に操作すると、制限時間計時用タイマによる計時が開始される。遊技者がMAXBETスイッチ6の操作を繰り返して行ない、全てのリールが停止する前に、また、制限時間計時用タイマにより計時している時間が5秒に到達するよりも前に、MAXBETスイッチ6の操作回数が最初の操作を含めて10回に達したものとする。   Next, when the player first operates the MAXBET switch 6 at an arbitrary timing until the game 1 is finished (that is, until all reels are stopped), time measurement by the time limit timer is started. The player repeats the operation of the MAXBET switch 6, and before all reels stop, and before the time counted by the time limit timer reaches 5 seconds, the MAXBET switch 6 It is assumed that the number of operations reaches 10 times including the first operation.

すると、この時点で指示演出が終了し、終了した指示演出に続けてゲーム1のうちに特別役に当選していないことが告知されるものとなる。このハズレ告知は、ゲーム1が終了した時点で終了させられるが、ゲーム1においていずれの特別役にも当選していないので、次のゲーム2が開始されたときに何らの報知も行なわれない。   Then, at this time, the instruction effect ends, and it is notified that the special role is not won in the game 1 following the instruction effect that has ended. This loss notification is terminated when the game 1 is completed, but since no special role is won in the game 1, no notification is given when the next game 2 is started.

図62(c)の例では、図62(a)の例と同様に、特別役に当選した場合に連続操作演出を実行するものであるが、制限時間掲示用タイマにより計時している時間が5秒に到達するまでに全てのリールが停止することもなかったが、制限時間掲示用タイマにより計時している時間が5秒に到達した時点でMAXBETスイッチ6の操作回数が最初の操作を含めて10回未満しか行なわれなかったものとする。   In the example of FIG. 62 (c), as in the example of FIG. 62 (a), the continuous operation effect is executed when the special role is won, but the time counted by the time limit posting timer is used. All reels did not stop before reaching 5 seconds, but when the time counted by the time limit posting timer reached 5 seconds, the number of operations of the MAXBET switch 6 included the first operation. And less than 10 times.

この場合、制限時間掲示用タイマにより計時している時間が5秒に到達した時点で指示演出が終了し、終了した指示演出に続けてゲーム1のうちに特別役に当選していないことが告知される。このハズレ告知は、ゲーム1が終了した時点で終了させられるが、ゲーム1において特別役に当選しているので、次のゲーム2が開始された時点で特別役に当選していることが告知されるものとなる。なお、この特別役の当選の告知は、ゲーム2が開始しても、当選した特別役に入賞するまで継続される。   In this case, when the time counted by the time limit posting timer reaches 5 seconds, the instruction effect ends, and it is announced that the special role is not won in game 1 following the ended instruction effect. Is done. This loss notification is terminated when the game 1 is finished, but since the special role is won in the game 1, it is announced that the special role is won when the next game 2 is started. Will be. Note that even when the game 2 starts, the notice of winning the special role continues until the winning special role is won.

図62(d)の例では、図62(b)の例と同様に、特別役に当選していない場合に連続操作演出を実行するものであるが、制限時間計時用タイマにより計時している時間が5秒に到達するまでに全てのリールが停止することもなかったが、制限時間計時用タイマにより計時している時間が5秒に到達した時点でMAXBETスイッチ6の操作回数が最初の操作を含めて10回未満しか行なわれなかったものとする。   In the example of FIG. 62 (d), as in the example of FIG. 62 (b), the continuous operation effect is executed when the special role is not won, but the time is measured by the time limit timer. Although all the reels did not stop before the time reached 5 seconds, when the time counted by the time limit timer reaches 5 seconds, the number of operations of the MAXBET switch 6 is the first operation. And less than 10 times.

この場合、制限時間計時用タイマにより計時している時間が5秒に到達した時点で指示演出が終了し、終了した指示演出に続けてゲーム1のうちに特別役に当選していないことが告知される。このハズレ告知は、ゲーム1が終了した時点で終了させられるが、ゲーム1において特別役の何れにも当選していないので、次のゲーム2が開始されたときに何らの報知も行なわれない。   In this case, the instruction effect ends when the time counted by the time limit timer reaches 5 seconds, and it is announced that the special role is not won in game 1 following the ended instruction effect. Is done. This loss notification is ended when the game 1 is ended, but since no special role is won in the game 1, no notification is given when the next game 2 is started.

このように本実施の形態では、特別役の当選している可能性を示唆する連続操作演出がゲーム開始同時に開始されるものとなっている。この連続操作演出は、指示演出の後に、特別役に当選しているか否かを告知するものである。   Thus, in this embodiment, a continuous operation effect that suggests the possibility of winning a special role is started at the same time as the game starts. This continuous operation effect is to notify whether or not a special role is won after the instruction effect.

連続操作演出において特別役に当選しているか否かを告知することに対して、遊技者は、指示演出が行なわれている間にMAXBETスイッチ6を操作することによって介入することが可能となっている。この連続操作演出(指示演出)に対して遊技者がMAXBETスイッチ6を操作して介入し、その最初の操作から5秒以内に合わせて10回のMAXBETスイッチ6の操作を行なうと、指示演出の終了と同時に特別役の当選の有無が遊技者に告知されるものとなっている。   The player can intervene by operating the MAXBET switch 6 while the instruction effect is being performed while notifying whether or not the special role is won in the continuous operation effect. Yes. When the player intervenes by operating the MAXBET switch 6 for this continuous operation effect (instruction effect) and operates the MAXBET switch 6 10 times within 5 seconds from the first operation, the instruction effect is displayed. At the same time, the player will be notified of the special role.

ここで、指示演出に続けて特別役の当選の有無が遊技者に告知されることとなる10回のMAXBETスイッチ6が操作されたかどうかを判断する計時の起算点は、最初にMAXBETスイッチ6が操作されたときからとなっている。連続操作演出(指示演出)が開始された後の自由なタイミングで、すなわち自由度の高い介入操作で連続操作演出に遊技者が介入することができるので、連続操作演出に遊技者が介入しやすくなり、結果として遊技の興趣を向上させることができる。   Here, the starting point for counting whether or not the MAXBET switch 6 has been operated 10 times that the player will be notified of whether or not the special role is won following the instruction effect is first determined by the MAXBET switch 6. It is from when it was operated. Since the player can intervene in the continuous operation effect at a free timing after the start of the continuous operation effect (instruction effect), that is, a highly flexible intervention operation, it is easy for the player to intervene in the continuous operation effect As a result, the interest of the game can be improved.

また、遊技者がMAXBETスイッチ6を最初に操作して連続操作演出の介入への意思表示を行なっても、指示演出に続けてそのまま特別役の当選の有無が遊技者に告知されるようにするには、さらに5秒以内で10回(最初の操作を除くと9回)もMAXBETスイッチ6を繰り返して操作しなければならない。このように遊技者が連続操作演出の介入を開始してからも、その介入操作を続けることが必要になるので、演出への介入感が高まり、さらに遊技の興趣を向上させることができる。   In addition, even if the player operates the MAXBET switch 6 for the first time to indicate his intention to intervene in the continuous operation effect, the player is notified as to whether or not the special role is won as it is following the instruction effect. In this case, the MAXBET switch 6 must be repeatedly operated 10 times within 5 seconds (9 times excluding the first operation). Thus, even after the player starts the intervention of the continuous operation effect, it is necessary to continue the intervention operation. Therefore, the sense of intervention in the effect is enhanced, and the interest of the game can be further improved.

また、連続操作演出が行なわれたときにおいて当該ゲーム中で指示演出に続けて特別役の当選の有無が告知されるのは、最初のMAXBETスイッチ6の操作から5秒以内で合計10回のMAXBETスイッチ6の操作があったことが条件となっている。もっとも、10回目のMAXBETスイッチ6の操作があれば、その時点で、最初のMAXBETスイッチ6の操作から5秒の経過を待たずに特別役の当選の有無が告知されるものとなる。   In addition, when a continuous operation effect is performed, the presence / absence of a special role is announced following the instruction effect in the game, and a total of 10 MAXBETs within 5 seconds from the first MAXBET switch 6 operation. The condition is that the switch 6 has been operated. However, if the MAXBET switch 6 is operated for the 10th time, the presence / absence of a special role is announced without waiting for the elapse of 5 seconds from the first operation of the MAXBET switch 6.

これにより、特別役の当選が指示演出に続けて実行される条件の成立タイミングと、特別役の当選の有無の告知タイミングとがリンクするものとなるので、特別役の当選の有無が告知されたときに、これが遊技者にとって分かり易いものとなる。しかも、遊技者の操作(10回目のMAXBETスイッチ6の操作)とリンクしたタイミングで特別役の当選の有無が告知されることとなるので、連続操作演出に対する遊技者の介入感をさらに高めさせることができ、さらに遊技の興趣を向上させることができる。   As a result, the establishment timing of the condition for the special role winning to be executed following the instruction production is linked to the notification timing of whether or not the special role has been won, so the presence or absence of the special role has been announced. Sometimes this is easy for the player to understand. Moreover, since the presence or absence of the special role is announced at the timing linked with the player's operation (the 10th operation of the MAXBET switch 6), the player's sense of intervention for the continuous operation effect is further enhanced. Can further enhance the interest of the game.

また、連続操作演出が行なわれたときであっても、遊技者がMAXBETスイッチ6を操作しない限り、何れにしても当該ゲーム中で指示演出に続けて特別役の当選の有無が告知されることはない。一般的な遊技者であれば、特別役に当選しているかどうかをなるべく早く知りたいものであるので、これによってMAXBETスイッチ6の操作により連続操作演出に介入させることを遊技者に促すことができるものとなる。   Even if a continuous operation effect is performed, unless the player operates the MAXBET switch 6, in any case, the presence or absence of the special role will be announced following the instruction effect in the game. There is no. Since a general player wants to know as soon as possible whether or not a special role has been won, it can prompt the player to intervene in the continuous operation effect by operating the MAXBET switch 6. It will be a thing.

一方、特別役に当選していて連続操作演出が行なわれたときに遊技者がMAXBETスイッチ6を全く操作しなかったり、MAXBETスイッチ6を10回操作する前にゲームが終了したり、最初の操作から5秒以内でMAXBETスイッチ6を10回操作することができなかったりした場合でも、次のゲームが開始されたときに特別役の当選が遊技者に告知されるものとなる。   On the other hand, when the special role is won and the continuous operation effect is performed, the player does not operate the MAXBET switch 6 at all, or the game ends before the MAXBET switch 6 is operated 10 times, or the first operation Even if the MAXBET switch 6 cannot be operated 10 times within 5 seconds from the start of the game, the player will be notified of the special role when the next game is started.

このため、連続操作演出の指示演出が行なわれている間にMAXBETスイッチ6を操作しなかったばかりに、あるいは操作しても適切な操作ができなかったばかりに、遊技者が知りたいはずの情報(つまり、特別役に当選しているか否かという情報)を遊技者が何時までも知り得ず、遊技者の不利益が大きくなりすぎてしまうことがない。   For this reason, the information that the player would like to know (that is, the user did not operate the MAXBET switch 6 while the instruction effect of the continuous operation effect was performed, or the user could not perform an appropriate operation even if operated). The information on whether or not the special role has been won) cannot be known by the player at any time, and the disadvantage of the player is not increased too much.

ところで、本実施の形態では、リール2L、2C、2Lの回転は、遊技者が停止操作することによって停止されるものとなっているが、遊技者が停止操作をしなければいつまでも回転し続けることとなるが、ゲームの開始と同時に指示演出が開始されても、遊技者がMAXBETスイッチ6を操作しない限り特別役の当選を告知すべきかどうかの判断を行なう必要がない。このため、リール2L、2C、2Lが回転している状態で放置されているときの制御負荷を増大させずに済むものとなる。   By the way, in the present embodiment, the rotation of the reels 2L, 2C, and 2L is stopped when the player performs a stop operation. However, if the player does not perform the stop operation, the reels 2L, 2C, and 2L continue to rotate indefinitely. However, even if the instruction effect is started simultaneously with the start of the game, it is not necessary to determine whether or not to win the special role unless the player operates the MAXBET switch 6. For this reason, it is not necessary to increase the control load when the reels 2L, 2C, and 2L are left in a rotating state.

さらに、指示演出が実行されている場合において、MAXBETスイッチ6が操作された後にリール2L、2C、2Rの全部または一部が回転を継続しているまま放置されてしまうという場合も考えられる。もっとも、当該ゲーム中で指示演出に続けて特別役の当選またはハズレの告知を行なうかどうかの判断は、最初のMAXBETスイッチ6の操作から5秒間の間だけ行なえばよい。このため、制御負荷が大きくなりすぎることはない。   Further, when the instruction effect is being executed, it may be considered that all or a part of the reels 2L, 2C, and 2R is left rotating while the MAXBET switch 6 is operated. However, it is only necessary to determine whether or not to win a special role or notify of a loss after the instruction effect in the game for only 5 seconds after the first operation of the MAXBET switch 6. For this reason, the control load does not become too large.

また、本実施の形態では、サブCPU91aが、メインCPU41aから送信される操作検出コマンドにより特定される操作スイッチのON/OFFの状態に基づいてMAXBETスイッチ6の検出状態を特定し、上述の連続操作演出を実行するようになっている。   In the present embodiment, the sub CPU 91a specifies the detection state of the MAXBET switch 6 based on the ON / OFF state of the operation switch specified by the operation detection command transmitted from the main CPU 41a, and performs the above-described continuous operation. Production is to be executed.

一方、連続操作演出では、MAXBETスイッチ6の最初の操作から5秒以内にMAXBETスイッチ6を最初の操作を含めて10回操作しなければ特別役の当選が告知されないため、サブCPU91aが操作検出コマンドを取りこぼした場合、それが反映されないと、遊技者がMAXBETスイッチ6を5秒以内に連続して10回操作したにも関わらず、特別役の当選が告知されなくなってしまう可能性があるが、本実施の形態では、前述のようにメインCPU41aが1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8Rのいずれかが操作されたか否かに関わらず、1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8RそれぞれのON/OFFの状態を特定可能な操作検出コマンドを定期的に送信することで、サブCPU91aは、これら操作スイッチのON/OFFの状態を定期的に特定できるようになっており、操作検出コマンドを取りこぼしても次回送信された操作制御情報から最新の検出状態を取得して告知の条件を満たすか否かが判定されるので、遊技者が告知の条件を満たす操作を行なったにも関わらず、操作検出コマンドの取りこぼしによって特別役の当選が告知されなくなってしまうことを防止できる。   On the other hand, in the continuous operation effect, since the winning of the special role is not notified unless the MAXBET switch 6 is operated 10 times including the first operation within 5 seconds from the first operation of the MAXBET switch 6, the sub CPU 91a performs the operation detection command. If the player misses out, it may not be announced that the special role will be won even though the player has operated the MAXBET switch 6 10 times within 5 seconds. In the present embodiment, as described above, the main CPU 41a operates as a single BET regardless of whether the single BET switch 5, the MAX BET switch 6, the start switch 7, or the stop switches 8L, 8C, 8R is operated. Switch 5, MAXBET switch 6, start switch 7, stop switch 8L, 8C, 8R respectively The sub CPU 91a can periodically specify the ON / OFF state of these operation switches by periodically transmitting an operation detection command that can specify the ON / OFF state of the operation detection command. If the player performs an operation that satisfies the notification condition, the latest detection state is acquired from the operation control information transmitted next time and it is determined whether or not the notification condition is satisfied. , It is possible to prevent the winning of the special role from being notified by missing the operation detection command.

なお、本実施の形態では、連続操作演出が行なわれた場合において、最初のMAXBETスイッチ6の操作から5秒以内にMAXBETスイッチ6が合計で10回操作されていないと、指示演出の終了とともにハズレ告知がされるものとなっていたが、このような場合には何も告知せずに指示演出だけを終了させるものとしてもよい。そして、特別役に当選していた場合には、次のゲームでBET操作がなされた場合やスタート操作がなされたときに特別役の当選を告知してもよい。   In the present embodiment, when a continuous operation effect is performed, if the MAXBET switch 6 is not operated ten times in total within 5 seconds from the first operation of the MAXBET switch 6, the indication effect ends and the loss occurs. In such a case, it is possible to end only the instruction effect without notifying anything. If the special combination is won, the special combination may be announced when a BET operation is performed in the next game or when a start operation is performed.

また、連続操作演出が行なわれた場合において、最初のMAXBETスイッチ6の操作から5秒以内に合計で10回MAXBETスイッチ6が操作されたことを条件として、当該ゲーム中に指示演出に続けて特別役の当選の有無が遊技者に告知されるものとなっていたが、この5秒という時間の条件、あるいは10回という操作の条件の何れか一方または両方は、たとえば、連続操作演出が実行される度に行なわれる抽選などにより可変されるものとしてもよい。   In addition, when a continuous operation effect is performed, a special operation is continued following the instruction effect during the game on the condition that the MAXBET switch 6 is operated 10 times in total within 5 seconds from the first operation of the MAXBET switch 6. Whether or not the winning combination has been announced to the player, either one or both of the time condition of 5 seconds and the operation condition of 10 times, for example, a continuous operation effect is executed. It may be variable by lottery performed every time.

たとえば、2秒4回、3秒6回という条件から何れかを選ぶものや3秒3回、3秒6回という条件から何れかを選ぶものであってもよい。これらの場合、指示演出に続けて特別役の当選の有無が告知されることとなるタイミングに変化が生じたり、そのために必要な操作の難易度に変化が生じたりするので、連続操作演出への介入に対する面白みをさらに増すことができるものとなる。   For example, one selected from the conditions of 2 seconds 4 times and 3 seconds 6 times or one selected from the conditions of 3 seconds 3 times and 3 seconds 6 times may be used. In these cases, there will be a change in the timing at which the presence or absence of the special role will be announced following the instruction production, or there will be a change in the difficulty level of the operation required for that, so there will be a change to the continuous operation production. This will further increase the interest of the intervention.

また、連続操作演出は、ゲームの開始時から開始されるものとなっていたが、これ以外の条件およびタイミングで開始されるものとしてもよい。たとえば、全てのリールが停止したタイミングから連続操作演出を開始させるものとしてもよい。   Further, the continuous operation effect is started from the start of the game, but may be started under other conditions and timing. For example, the continuous operation effect may be started from the timing when all the reels are stopped.

このようにゲームが終了してから開始される連続操作演出では、指示演出が実行されているときにおいて、ストップスイッチ8L、8C、8Rがゲームの進行制御に関与しないこととなるので、ストップスイッチ8L、8C、8RをMAXBETスイッチ6の代わりに適用することができる。   As described above, in the continuous operation effect that is started after the game is finished, the stop switches 8L, 8C, and 8R are not involved in the progress control of the game when the instruction effect is being executed. , 8C, 8R can be applied instead of the MAXBET switch 6.

また、本実施の形態では、指示演出が実行されている場合においてゲームの進行制御に関与しないMAXBETスイッチ6が最初に操作されたことを連続操作演出への介入を開始する意思表示となる操作として制限時間掲示用タイマによる計時を開始するものとし、また、そのMAXBETスイッチ6の操作を介入の意思表示の後に連続操作演出に介入する操作としていた。   Further, in the present embodiment, when the instruction effect is being executed, the first operation of the MAXBET switch 6 that is not involved in the progress control of the game is an operation that becomes an intention display to start intervention in the continuous operation effect. Time counting by the time limit posting timer is started, and the operation of the MAXBET switch 6 is an operation for intervening in the continuous operation effect after the intention of intervention is displayed.

これに対して、制限時間掲示用タイマによる計時を開始させる介入の意思表示となる操作の方は、遊技の進行制御に関与する操作であってもよい。たとえば、全リール回転中におけるストップスイッチの操作(第1停止操作)はゲームの進行制御に関与するが、制限時間掲示用タイマによる計時を開始させる介入の意思表示となる操作として適用することもできる。   On the other hand, the operation which becomes the intention display of the intervention for starting the time counting by the time limit posting timer may be an operation related to the progress control of the game. For example, the operation of the stop switch (first stop operation) during rotation of all reels is related to the progress control of the game, but it can also be applied as an operation for indicating the intention of intervention to start timing by the timer for posting the time limit. .

また、本実施の形態では、最初の操作を含めて5秒以内にMAXBETスイッチ6が10回操作されることを、指示演出に続けて連続操作演出が行なわれたゲームのうちに特別役の当選の有無を告知するかどうかの条件としていたが、指示演出に続けて特別役の当選の有無を告知するかどうかの操作の条件は、これに限るものではなく、たとえば、MAXBETスイッチ6が所定時間(3秒以下)継続して(断続して)操作されたこととしてもよい。また、最初のMAXBETスイッチ6の操作から3秒を経過するまでの間になされた2回目以降のMAXBETスイッチ6の操作が所定時間継続したこととしてもよい。   Further, in the present embodiment, when the MAXBET switch 6 is operated 10 times within 5 seconds including the first operation, the special role is elected in the game in which the continuous operation effect is performed following the instruction effect. However, the operation condition for notifying whether the special role is won or not is not limited to this. For example, the MAXBET switch 6 is set for a predetermined time. It may be operated continuously (intermittently) (3 seconds or less). Alternatively, the second and subsequent operations of the MAXBET switch 6 performed after 3 seconds have elapsed since the first operation of the MAXBET switch 6 may be continued for a predetermined time.

あるいは、連続操作演出への介入を開始する意思表示(最初のMAXBETスイッチ6の操作)の後に連続操作演出に介入する操作を複数の操作手段の操作とする場合には、該複数の操作手段が所定のパターンで操作されたこととしてもよい。たとえば、連続操作演出への介入を開始する意思表示の後に連続操作演出に介入するための操作手段として1枚BETボタン14とMAXBETスイッチ6の2つを適用し、これらが交互に20回(各々のボタンの操作が10回)だけ最初のMAXBETスイッチ6の操作から5秒以内に行なわれたときに、指示演出に続けて特別役の当選の有無を告知するものとしてもよい。   Alternatively, in the case where an operation intervening in the continuous operation effect after the intention display for starting the intervention in the continuous operation effect (the first operation of the MAXBET switch 6) is an operation of a plurality of operation means, the plurality of operation means are It may be operated in a predetermined pattern. For example, after the intention display for starting the intervention to the continuous operation effect, two operation buttons, the single BET button 14 and the MAXBET switch 6 are applied as operation means for intervening in the continuous operation effect, and these are alternately performed 20 times (each It is also possible to notify the presence / absence of the special role following the instruction effect when the button is operated within 5 seconds from the first operation of the MAXBET switch 6 only 10 times.

また、本実施の形態では、連続操作演出への介入を開始する意思表示となる操作と、その意思表示の後に連続操作演出に介入する操作とは、何れもMAXBETスイッチ6の操作としていたが、両者の操作は、異なる操作手段の操作であってもよい。たとえば、1枚BETボタン14の操作を連続操作演出への介入を開始する意思表示となる操作として計時を開始するが、MAXBETスイッチ6の操作をその意思表示の後に連続操作演出に介入する操作として、計時開始から所定時間以内にMAXBETスイッチ6が所定回数操作されたかどうかを判定するものとしてもよい。   Further, in the present embodiment, both the operation that becomes the intention display for starting the intervention to the continuous operation effect and the operation that intervenes in the continuous operation effect after the intention display are the operations of the MAXBET switch 6. Both operations may be operations of different operation means. For example, the operation of the single BET button 14 is started as an operation to be an intention display for starting intervention in the continuous operation effect, but the operation of the MAXBET switch 6 is an operation to intervene in the continuous operation effect after the intention display. Alternatively, it may be determined whether the MAXBET switch 6 has been operated a predetermined number of times within a predetermined time from the start of timing.

また、本実施の形態では、特別役に当選して連続操作演出が行なわれた場合において、MAXBETスイッチ6を操作したものの5秒以内に10回の操作ができなくて指示演出に続けてハズレが告知された場合、若しくは、MAXBETスイッチ6が操作されないまま、あるいはMAXBETスイッチ6の操作から5秒経過または10回の操作がある前にゲームが終了して指示演出だけが終了させられた場合、次のゲームの開始時点(すなわち、スタート操作時点)において、特別役の当選が告知されるものとなっていたが、このような場合における特別役の当選の告知のタイミングは、これに限るものではなく、たとえば、次のゲームの終了時(第3停止ボタンが操作されたとき)、第1停止時、第2停止時としてもよい。さらには、次のゲームを開始するための賭数の設定操作が行なわれたときとしてもよい。   Further, in this embodiment, when a special action is won and a continuous operation effect is performed, the MAXBET switch 6 is operated, but the operation cannot be performed 10 times within 5 seconds, and there is a loss following the instruction effect. When notified, or when the MAXBET switch 6 is not operated, or when the game is ended and only the directed effect is ended before the operation of the MAXBET switch 6 has elapsed for 5 seconds or 10 times, At the start of the game (that is, at the start operation time), the winning of the special role was announced, but the timing of the special role winning notification in such a case is not limited to this. For example, when the next game ends (when the third stop button is operated), it may be the first stop or the second stop. Furthermore, it may be when a betting number setting operation for starting the next game is performed.

また、本実施の形態では、連続操作演出によって特別役に当選したか否かが告知されるようになっているが、遊技者の介入操作によって遊技者にとって有利な情報を報知する演出であればよく、たとえば、遊技者の介入操作によって遊技者にとって有利な操作手順を報知する報知状態に当選したか否かを報知するものや、遊技者の介入操作によって設定値を推測させる情報を報知するものとしてもよい。   Further, in the present embodiment, whether or not the special role is won is notified by the continuous operation effect, but if it is an effect to notify information advantageous to the player by the player's intervention operation Well, for example, notifying whether or not a notification state in which an operation procedure advantageous to the player is notified by the player's intervention operation is won, or notifying information for inferring the set value by the player's intervention operation It is good.

次に、前述した操作演出のうち台情報閲覧演出について説明する。
サブ制御部91のRAM91cには、既に行なわれた遊技に関する遊技履歴データを記憶可能な遊技履歴データ記憶領域が割り当てられているとともに、これら遊技履歴データは、メインCPU41aから送信されたコマンドに基づいて逐次最新のデータに更新されるようになっている。一方、サブ制御部91のROM91bには、当該スロットマシン1にて実施される演出を紹介する演出紹介データが記憶されている。
Next, the table information browsing effect among the operation effects described above will be described.
The RAM 91c of the sub-control unit 91 is allocated with a game history data storage area capable of storing game history data relating to already played games, and these game history data are based on commands sent from the main CPU 41a. Sequentially updated to the latest data. On the other hand, in the ROM 91 b of the sub-control unit 91, effect introduction data that introduces effects performed in the slot machine 1 is stored.

そして、遊技者は、前述のようにゲーム終了後(設定変更後)からゲーム開始までの制御状態において、ストップスイッチ8L、8C、8Rのうち中、右のストップスイッチ8C、8Rを同時に操作することにより、閲覧メニュー画面を表示させて、さらにストップスイッチ8L、8C、8Rを操作してメニューを選択することにより、RAM91cの遊技履歴データ記憶領域に記憶されている遊技履歴データ(後述する設定変更の履歴を除く)に基づく遊技履歴情報やROM91bに記憶されている演出紹介データを閲覧することが可能とされている。   The player simultaneously operates the right stop switches 8C, 8R among the stop switches 8L, 8C, 8R in the control state from the end of the game (after setting change) to the start of the game as described above. By displaying the browsing menu screen and further operating the stop switches 8L, 8C, 8R to select the menu, game history data stored in the game history data storage area of the RAM 91c (setting change to be described later) It is possible to browse game history information based on (excluding history) and effect introduction data stored in the ROM 91b.

遊技履歴データ記憶領域は、ボーナス間ゲーム数カウンタ、ボーナス間ゲーム数テーブル、総ゲーム数カウンタ、RBカウンタ、BBカウンタ、投入枚数カウンタ、払出枚数カウンタ、時間別差枚数テーブル、日付別履歴テーブル、設定値変更テーブルから構成される。   The game history data storage area includes an inter-bonus game number counter, an inter-bonus game number table, a total game number counter, an RB counter, a BB counter, an insertion number counter, a payout number counter, an hourly difference number table, a date-specific history table, and a setting. Consists of a value change table.

ボーナス間ゲーム数カウンタは、前回のボーナス終了時からのゲーム数を計数するカウンタであり、ボーナス中以外の状態で遊技状態コマンドを受信する毎に1加算され、BBやRBから通常遊技状態への移行を示す遊技状態コマンドを受信した際にクリアされる。   The inter-bonus game number counter is a counter for counting the number of games since the end of the previous bonus, and is incremented by 1 every time a gaming state command is received in a state other than the bonus state, and from BB or RB to the normal gaming state. Cleared when a gaming state command indicating transition is received.

ボーナス間ゲーム数テーブルは、ボーナス間ゲーム数を各ボーナス毎に当該ボーナスの種類(BB、RB)とともに格納するテーブルであり、通常遊技状態からBBまたはRBへの移行を示す遊技状態コマンドを受信した際に、ボーナスの種類を格納するとともに、ボーナス間ゲーム数カウンタの値を取得してボーナス間ゲーム数として格納する。   The inter-bonus game number table stores the number of inter-bonus games together with the type of bonus (BB, RB) for each bonus, and has received a gaming state command indicating a transition from the normal gaming state to BB or RB. At this time, the type of bonus is stored, and the value of the inter-bonus game number counter is acquired and stored as the number of games between bonuses.

総ゲーム数カウンタは、本日の総ゲーム数を計数するカウンタであり、ボーナス中以外の状態で遊技状態コマンドを受信する毎に1加算される。   The total game number counter is a counter that counts the total number of games of today, and is incremented by 1 every time a game state command is received in a state other than the bonus state.

RBカウンタは、本日のRB回数を計数するカウンタであり、通常遊技状態からRBへの移行を示す遊技状態コマンドを受信した際に1加算される。   The RB counter is a counter that counts the number of RBs for today, and is incremented by 1 when a gaming state command indicating a transition from the normal gaming state to the RB is received.

BBカウンタは、本日のBB回数を計数するカウンタであり、通常遊技状態からBBへの移行を示す遊技状態コマンドを受信した際に1加算される。   The BB counter is a counter that counts the number of BBs for today, and is incremented by 1 when a gaming state command indicating a transition from the normal gaming state to the BB is received.

投入枚数カウンタは、ゲームに使用されたパチンコ球数、すなわち賭数の設定に用いるために取り込まれた球数を計数するカウンタであり、内部当選コマンドを受信した際に、現在の遊技状態に応じてゲームの開始に必要なメダル数が加算される。   The inserted number counter is a counter that counts the number of pachinko balls used in the game, that is, the number of balls taken in for use in setting the number of bets, and when the internal winning command is received, it depends on the current gaming state. The number of medals required to start the game is added.

払出枚数カウンタは、小役入賞時に払い出されたメダル数を計数するカウンタであり、小役の入賞を示す入賞判定コマンドを受信した際に、当該コマンドにより特定される払出枚数が加算される。   The payout number counter is a counter that counts the number of medals paid out at the time of winning a small role, and when receiving a winning determination command indicating the win of a small role, the payout number specified by the command is added.

時間別差枚数テーブルは、所定間隔毎の差枚数(払出枚数カウンタの値−投入枚数カウンタの値)を格納するテーブルであり、所定間隔毎(たとえば5分毎)に、払出枚数カウンタの値と投入枚数カウンタの値を取得し、差枚数を算出して格納する。   The hourly difference sheet table is a table for storing a difference sheet (a value of the dispensed sheet counter−a value of the inserted sheet counter) at a predetermined interval, and the value of the dispensed sheet counter at every predetermined interval (for example, every 5 minutes). The value of the insertion number counter is acquired, and the difference number is calculated and stored.

日付別履歴テーブルは、過去3日分のボーナス間ゲーム数テーブル、総ゲーム数カウンタ、RBカウンタ、BBカウンタ、投入枚数カウンタ、払出枚数カウンタ、時間別差枚数テーブルの各データを格納するテーブルである。サブCPU91aは、起動処理(サブ)において、時計装置97から日付情報を取得し、取得した日付情報をRAM91cの日付記憶領域に記憶する。そして、起動処理において新たに取得した日付情報がRAM91cの日付記憶領域記憶されていた日付情報と一致するか否かを判定し、一致していない、すなわち日付が更新されたと判定したときには、その時点で2日前の領域に格納されているデータを3日前の領域に格納し、1日前の領域に格納されているデータを2日前の領域に格納し、本日の領域に格納されているデータを1日前の領域に格納するとともに、本日のデータが格納される領域に格納されているデータをクリア(初期化)する。つまり、ボーナス間ゲーム数テーブル、総ゲーム数カウンタ、RBカウンタ、BBカウンタ、投入枚数カウンタ、払出枚数カウンタ、時間別差枚数テーブルの各データを1日前のデータとして格納する処理が行なわれる。   The date-by-date history table is a table for storing data of a bonus game number table for the past three days, a total game number counter, an RB counter, a BB counter, an insertion number counter, a payout number counter, and a time difference number table. . In the startup process (sub), the sub CPU 91a acquires date information from the clock device 97, and stores the acquired date information in the date storage area of the RAM 91c. Then, it is determined whether or not the date information newly acquired in the activation process matches the date information stored in the date storage area of the RAM 91c, and when it is determined that they do not match, that is, the date has been updated, The data stored in the area two days ago is stored in the area three days ago, the data stored in the area one day ago is stored in the area two days ago, and the data stored in the area today is 1 The data stored in the area of the previous day and the data stored in the area where the data of today is stored are cleared (initialized). That is, a process of storing each data of the inter-bonus game number table, the total game number counter, the RB counter, the BB counter, the insertion number counter, the payout number counter, and the hourly difference number table as data one day before is performed.

また、ボーナス間ゲーム数テーブル、総ゲーム数カウンタ、RBカウンタ、BBカウンタ、投入枚数カウンタ、払出枚数カウンタ、時間別差枚数テーブルの各データを日付別履歴テーブルに格納することに伴って、ボーナス間ゲーム数テーブル、総ゲーム数カウンタ、RBカウンタ、BBカウンタ、投入枚数カウンタ、払出枚数カウンタ、時間別差枚数テーブルはクリアされる。   In addition, as each data of the bonus game number table, total game number counter, RB counter, BB counter, insertion number counter, payout number counter, and hourly difference number table is stored in the date-specific history table, The game number table, total game number counter, RB counter, BB counter, insertion number counter, payout number counter, and hourly difference number table are cleared.

設定値変更テーブルは、過去5回分の設定値の変更履歴を格納するテーブルであり、管理者モードが設定されている状態で遊技状態コマンドを受信した際に、時計装置97から取得した時間情報(日付および時間)に対応付けて遊技状態コマンドが示す設定値を格納する。なお、この際、最も古い変更履歴はクリアされる。   The setting value change table is a table for storing setting value change histories for the past five times. When the game mode command is received in the state where the administrator mode is set, the time information ( The setting value indicated by the gaming state command is stored in association with the date and time. At this time, the oldest change history is cleared.

ここで、遊技履歴情報や演出紹介データの閲覧状況およびその際のサブCPU91aの制御状況を図63に基づいて説明する。   Here, the browsing situation of game history information and effect introduction data and the control situation of the sub CPU 91a at that time will be described with reference to FIG.

本実施の形態では、ゲーム終了後(設定変更後)からゲーム開始までの制御状態において、ストップスイッチ8L、8C、8Rのうち中、右のストップスイッチ8C、8Rが同時に操作されると、液晶表示器51に図63(a)に示す閲覧メニュー画面を表示させる。   In the present embodiment, when the right stop switch 8C, 8R among the stop switches 8L, 8C, 8R is simultaneously operated in the control state from the end of the game (after the setting change) to the start of the game, the liquid crystal display The browsing menu screen shown in FIG. 63A is displayed on the device 51.

閲覧メニュー画面には、現在選択されているメニューの説明領域と、「ボーナス間情報」「演出紹介」「ボーナス履歴」「スランプグラフ」「戻る」からなるメニュー領域と、が設けられており、ストップスイッチ8L、8Cの操作に応じてメニュー領域の選択枠を移動させるとともに、この移動に伴って説明領域の表示内容も現在選択されているメニュー領域の説明に更新される。なお、閲覧メニュー画面には、RAM91cに設定されている閲覧有効フラグの設定状況に応じたメニュー領域のみが表示されるようになっており、「ボーナス間情報」「演出紹介」「ボーナス履歴」「スランプグラフ」のうち、閲覧有効フラグが設定されていない項目のメニュー領域は表示されないようになっている。閲覧有効フラグは、後述するオプション画面にて閲覧を有効とする設定がなされた項目についてのみ設定されるようになっており、後述するオプション画面にて閲覧を有効とする設定がなされていない項目については、遊技者の操作によって閲覧ができないようになっている。   The browsing menu screen has an explanation area for the currently selected menu, and a menu area consisting of “bonus information”, “introduction”, “bonus history”, “slump graph”, and “return”. The selection frame of the menu area is moved in accordance with the operation of the switches 8L and 8C, and the display content of the explanation area is also updated to the explanation of the currently selected menu area with this movement. Note that only the menu area corresponding to the setting state of the browsing valid flag set in the RAM 91c is displayed on the browsing menu screen, and “inter-bonus information” “direction introduction” “bonus history” “ In the “slump graph”, the menu area of the item for which the browsing valid flag is not set is not displayed. The browsing valid flag is set only for items that are set to enable browsing on the option screen described later, and for items that are not set to enable browsing on the option screen described later Cannot be browsed by the player's operation.

閲覧メニュー画面で「ボーナス間情報」のメニュー領域が選択された状態で、ストップスイッチ8Rを操作すると、図63(b)に示すボーナス間情報画面を表示させる。ボーナス間情報画面には、「本日」「1日前」「2日前」「3日前」「戻る」からなるメニュー領域と、ボーナス毎にボーナスの種類およびボーナス間ゲーム数が表示されるボーナス間情報表示領域と、が設けられている。そして、閲覧メニュー画面からボーナス間情報画面を表示させる際には、本日のボーナス間ゲーム数テーブルに登録されているデータに基づいてボーナス間情報表示領域に、本日のボーナスの種類およびボーナス間ゲーム数がボーナス毎に表示される。また、ボーナス間情報画面において「1日前」「2日前」「3日前」のいずれかが選択された状態で、ストップスイッチ8Rを操作すると、日付別履歴データテーブルに格納されているデータに基づいて、選択された日のボーナスの種類およびボーナス間ゲーム数がボーナス毎にボーナス間情報表示領域に表示される。また、ボーナス間情報画面において「戻る」が選択された状態で、ストップスイッチ8Rを操作すると、閲覧メニュー画面に戻る。   If the stop switch 8R is operated in the state where the “inter-bonus information” menu area is selected on the browsing menu screen, the inter-bonus information screen shown in FIG. 63B is displayed. On the bonus information screen, a menu area consisting of “Today”, “1 day ago”, “2 days ago”, “3 days ago”, and “Return”, and a bonus information and a bonus bonus information display for each bonus are displayed. And an area. When displaying the information screen between bonuses from the browsing menu screen, the type of bonus and the number of games between bonuses are displayed in the information display area between bonuses based on data registered in the table of bonus games between today. Is displayed for each bonus. Further, when one of “1 day ago”, “2 days ago”, and “3 days ago” is selected on the inter-bonus information screen, if the stop switch 8R is operated, it is based on the data stored in the history data table by date. The type of bonus on the selected day and the number of games between bonuses are displayed in the bonus information display area for each bonus. Further, when the “return” is selected on the information screen between bonuses and the stop switch 8R is operated, the screen returns to the browsing menu screen.

閲覧メニュー画面で「演出紹介」のメニュー領域が選択された状態で、ストップスイッチ8Rを操作すると、図63(c)に示す演出紹介画面を表示させる。ボーナス間情報画面には、各演出に対応するメニュー領域と、「戻る」に対応するメニュー領域と、が設けられている。そして、演出紹介画面において各演出に対応するメニュー領域のいずれかが選択された状態で、ストップスイッチ8Rを操作すると、ROM91bに格納されている演出紹介データから該当するデータが抽出されて表示される。また、演出紹介画面において「戻る」が選択された状態で、ストップスイッチ8Rを操作すると、閲覧メニュー画面に戻る。   When the stop switch 8R is operated in a state where the menu area of “production introduction” is selected on the browsing menu screen, the production introduction screen shown in FIG. 63C is displayed. On the bonus information screen, a menu area corresponding to each effect and a menu area corresponding to “return” are provided. When the stop switch 8R is operated in a state where any of the menu areas corresponding to each effect is selected on the effect introduction screen, the corresponding data is extracted from the effect introduction data stored in the ROM 91b and displayed. . In addition, when the “return” is selected on the effect introduction screen and the stop switch 8R is operated, the viewing menu screen is displayed again.

閲覧メニュー画面で「ボーナス確率」のメニュー領域が選択された状態で、ストップスイッチ8Rを操作すると、図63(d)に示すボーナス確率画面を表示させる。ボーナス確率画面には、「本日」「1日前」「2日前」「3日前」「戻る」からなるメニュー領域と、ボーナスの種類別に確率が表示されるボーナス確率表示領域と、が設けられている。そして、閲覧メニュー画面からボーナス確率画面を表示させる際には、本日の総ゲーム数カウンタ、RBカウンタおよびBBカウンタの値に基づき本日のBBの確率およびRBの確率が算出されてボーナス確率表示領域に表示される。また、ボーナス確率画面において「1日前」「2日前」「3日前」のいずれかが選択された状態で、決定スイッチ57を検出すると、日付別履歴データテーブルに格納されているデータに基づき、選択された日のBBの確率およびRBの確率が算出されてボーナス確率表示領域に表示される。また、ボーナス確率画面において「戻る」が選択された状態で、ストップスイッチ8Rを操作すると、閲覧メニュー画面に戻る。   When the “bonus probability” menu area is selected on the browsing menu screen and the stop switch 8R is operated, the bonus probability screen shown in FIG. 63D is displayed. The bonus probability screen is provided with a menu area consisting of “Today”, “1 day ago”, “2 days ago”, “3 days ago”, and “Return”, and a bonus probability display area in which the probability is displayed for each bonus type. . Then, when displaying the bonus probability screen from the browsing menu screen, today's BB probability and RB probability are calculated based on the values of the total game number counter, RB counter, and BB counter of today, and are displayed in the bonus probability display area. Is displayed. Further, when the decision switch 57 is detected in a state where any one of “1 day ago”, “2 days ago”, and “3 days ago” is selected on the bonus probability screen, the selection is made based on the data stored in the history data table by date. The probability of BB and the probability of RB for the selected day are calculated and displayed in the bonus probability display area. Further, when the “return” is selected on the bonus probability screen and the stop switch 8R is operated, the browsing menu screen is displayed.

閲覧メニュー画面で「スランプグラフ」のメニュー領域が選択された状態で、ストップスイッチ8Rを操作すると、図63(e)に示すスランプグラフ画面を表示させる。スランプグラフ画面には、「本日」「1日前」「2日前」「3日前」「戻る」からなるメニュー領域と、時系列的に差球の状況を示すスランプグラフが表示されるグラフ表示領域と、が設けられている。そして、閲覧メニュー画面からスランプグラフ画面を表示させる際には、本日の時間別差枚数テーブルに基づき本日のスランプグラフが生成されてグラフ表示領域に表示される。また、スランプグラフ画面において「1日前」「2日前」「3日前」のいずれかが選択された状態で、ストップスイッチ8Rを操作すると、日付別履歴データテーブルに格納されているデータに基づき、選択された日のスランプグラフが生成されてグラフ表示領域に表示される。また、スランプグラフ画面において「戻る」が選択された状態で、ストップスイッチ8Rを操作すると、閲覧メニュー画面に戻る。   When the stop switch 8R is operated in the state where the menu area of “slump graph” is selected on the browsing menu screen, the slump graph screen shown in FIG. 63 (e) is displayed. The slump graph screen includes a menu area including “today”, “1 day ago”, “2 days ago”, “3 days ago”, and “return”, and a graph display area in which a slump graph indicating the status of the difference ball in time series is displayed. , Is provided. When displaying the slump graph screen from the browsing menu screen, today's slump graph is generated based on today's hourly difference number table and displayed in the graph display area. In addition, if one of “1 day ago”, “2 days ago”, or “3 days ago” is selected on the slump graph screen and the stop switch 8R is operated, the selection is made based on the data stored in the history data table by date. A slump graph for the selected day is generated and displayed in the graph display area. Further, when the “return” is selected on the slump graph screen and the stop switch 8R is operated, the browsing menu screen is displayed.

以上のように、遊技者はゲーム終了後(設定変更後)からゲーム開始までの制御状態において、ストップスイッチ8L、8C、8Rのうち中、右のストップスイッチ8C、8Rが同時に操作することにより、閲覧メニュー画面を表示させ、さらにストップスイッチ8L、8C、8Rの操作を行なうことにより、RAM91cの遊技履歴データ記憶領域に記憶されている遊技履歴データ(後述する設定変更の履歴を除く)に基づく遊技履歴情報やROM91bに記憶されている演出紹介データを閲覧することが可能となる。   As described above, in the control state from the end of the game (after setting change) to the start of the game, the player operates the right stop switch 8C, 8R among the stop switches 8L, 8C, 8R simultaneously. A game based on game history data (excluding setting change history described later) stored in the game history data storage area of the RAM 91c by displaying the browsing menu screen and further operating the stop switches 8L, 8C, 8R. It is possible to browse history information and performance introduction data stored in the ROM 91b.

本実施の形態においてメインCPU41aは、図64に示すように、設定キースイッチ37がONの状態で起動すると、設定開始コマンドをサブCPU91aに送信し、設定変更状態の開始を通知するとともに、設定値を変更可能な設定変更状態に移行することとなる。設定変更状態では、スタートスイッチ7が操作されるまでは、任意に設定値を選択することが可能となるが、スタートスイッチ7が操作されると、その時点で選択されている設定値が確定し、以後設定値を変更できない設定確定状態となり、この状態で設定キースイッチ37がOFFの状態とすることで設定変更状態は終了し、サブCPU91aに対して遊技状態コマンドを送信して設定変更状態の終了を通知する。   In the present embodiment, as shown in FIG. 64, when the setting key switch 37 is activated, the main CPU 41a transmits a setting start command to the sub CPU 91a to notify the start of the setting change state and to set the setting value. Will shift to a setting change state in which can be changed. In the setting change state, the set value can be arbitrarily selected until the start switch 7 is operated. However, when the start switch 7 is operated, the set value selected at that time is fixed. Thereafter, a setting final state in which the setting value cannot be changed is entered. In this state, the setting key switch 37 is turned off to end the setting changing state, and a gaming state command is transmitted to the sub CPU 91a to change the setting changing state. Notify the end.

一方、サブCPU91aは、設定開始コマンドにより設定変更状態の開始が通知されることで、前述した遊技履歴データをクリアしたり、遊技者により閲覧可能な遊技履歴データの設定、設定変更履歴の閲覧を行なうこと、すなわち遊技店が管理するサブCPU91a側の管理情報にアクセス可能な管理者モードに制御する。そしてこの管理者モードは、遊技状態コマンドにより設定変更状態の終了が通知されることで終了することとなる。   On the other hand, the sub CPU 91a is notified of the start of the setting change state by the setting start command, thereby clearing the above-described game history data, setting the game history data that can be browsed by the player, and viewing the setting change history. In other words, the management mode is controlled so that the management information on the sub CPU 91a side managed by the game store can be accessed. Then, the manager mode is ended when the end of the setting change state is notified by the game state command.

なお、設定変更状態において設定値が確定してもメインCPU41aからサブCPU91aに対して何らの通知もされず、サブCPU91aは、メインCPU41a側で設定値が確定した後も、遊技状態コマンドによって設定変更状態の終了が通知されるまでは、継続して管理者モードに制御されるようになっており、設定変更状態において設定値が確定した後も、電源を再投入して設定値の確定前の状態にわざわざ戻すことなく、管理情報へのアクセスが可能となる。   Even if the setting value is confirmed in the setting change state, no notification is sent from the main CPU 41a to the sub CPU 91a, and the sub CPU 91a changes the setting by the game state command even after the setting value is confirmed on the main CPU 41a side. Until the end of the status is notified, the administrator mode is continuously controlled. After the setting value is confirmed in the setting change state, the power is turned on again before the setting value is confirmed. The management information can be accessed without returning to the state.

また、メインCPU41aは、図65に示すように、ゲーム終了後、賭数が設定されていない状態で設定キースイッチ37がONの状態となると、確認開始コマンドをサブCPU91aに送信し、設定確認状態の開始を通知するとともに、設定値を確認可能な設定確認状態に移行することとなる。設定確認状態は、設定キースイッチ37がOFFの状態とすることで設定確認状態は終了し、サブCPU91aに対して確認終了コマンドを送信して設定確認状態の終了を通知する。   Also, as shown in FIG. 65, when the setting key switch 37 is turned on after the game is over and the setting key switch 37 is turned on as shown in FIG. 65, the main CPU 41a transmits a confirmation start command to the sub CPU 91a. And a transition to a setting confirmation state in which the setting value can be confirmed. The setting confirmation state ends when the setting key switch 37 is turned off, and the confirmation confirmation command is transmitted to the sub CPU 91a to notify the end of the setting confirmation state.

そして、サブCPU91aは、確認開始コマンドにより設定確認状態の開始が通知された場合にも、設定開始コマンドを受信した場合と同様に、遊技店が管理するサブCPU91a側の管理情報にアクセス可能な管理者モードに制御する。そしてこの管理者モードは、確認終了コマンドにより設定確認状態の終了が通知されることで終了することとなる。   When the start of the setting confirmation state is notified by the confirmation start command, the sub CPU 91a can manage the management information on the side of the sub CPU 91a managed by the amusement store as in the case of receiving the setting start command. Control to user mode. The administrator mode ends when the end of the setting confirmation state is notified by the confirmation end command.

設定キースイッチ37は、キーを挿入し、回転させることでON/OFFを変更することが可能なスイッチであるが、通常キーは、店員が所持するものであり、遊技者が任意に設定キースイッチ37を操作することはできない。すなわち遊技者が任意に操作することのできない設定キースイッチ37を操作した場合のみ遊技店が管理するサブCPU91a側の管理情報にアクセス可能な管理者モードに制御されることとなる。   The setting key switch 37 is a switch that can be turned ON / OFF by inserting and rotating the key, but the normal key is possessed by the store clerk and can be arbitrarily set by the player. 37 cannot be operated. That is, only when the setting key switch 37 that cannot be arbitrarily operated by the player is operated, the manager mode is controlled so that the management information on the sub CPU 91a side managed by the game store can be accessed.

このように本実施の形態では、メインCPU41aが設定変更状態に制御された場合だけでなく、設定確認状態に制御された場合にも管理者モードに制御されるようになっており、設定変更状態に移行させることなく、管理情報へのアクセスが可能となっている。特に、本実施の形態のように電源を再投入しないと設定変更状態に移行しない場合でも、管理情報へアクセスするだけのために電源を落とす必要がなくなる。さらに、本実施の形態のように、設定変更状態への移行に伴ってRAM41cが初期化されてしまう場合でも、RAM41cの格納データを維持したままで管理情報へのアクセスが可能となる。   As described above, in the present embodiment, not only when the main CPU 41a is controlled to the setting change state but also when the main CPU 41a is controlled to the setting confirmation state, the administrator mode is controlled. Management information can be accessed without shifting to. In particular, even if the setting change state is not entered unless the power is turned on again as in this embodiment, it is not necessary to turn off the power just to access the management information. Furthermore, even when the RAM 41c is initialized with the transition to the setting change state as in the present embodiment, it is possible to access the management information while maintaining the stored data in the RAM 41c.

なお、本実施の形態では、メインCPU91aから設定開始コマンドまたは確認開始コマンドを受信した場合に、そのまま管理者モードに制御されるようになっているが、設定開始コマンドまたは確認開始コマンドを受信した後、たとえば、MAXBETスイッチ6を一定時間以上操作するなど、一定の操作がなされた場合にのみ管理者モードに制御する構成としてもよく、このようにすることで設定変更または設定確認が目的で管理情報にアクセスする必要がないにも関わらず、管理者モードに制御されてしまうことを防止できる。   In this embodiment, when a setting start command or a confirmation start command is received from the main CPU 91a, control is performed in the administrator mode as it is. However, after the setting start command or the confirmation start command is received, For example, the configuration may be such that the administrator mode is controlled only when a certain operation is performed, for example, the MAXBET switch 6 is operated for a certain period of time or more. It is possible to prevent the administrator mode from being controlled even though there is no need to access the.

また、メインCPU41aは、設定変更状態に移行する前に割込を許可するようになっており、設定変更状態に制御されている間も定期的に操作検出コマンドを送信するため、サブCPU91aは、設定変更状態に制御されている間も、設定値の変更制御に関与しない操作スイッチの検出状態を逐次特定できるようになっている。   Further, the main CPU 41a is configured to permit an interrupt before shifting to the setting change state, and periodically transmits an operation detection command while being controlled to the setting change state. While being controlled to the setting change state, the detection state of the operation switch that is not involved in the setting value change control can be sequentially specified.

また、設定確認状態においても割込は許可されており、設定変更状態と同様に設定確認状態に制御されている間も定期的に操作検出コマンドを送信するため、サブCPU91aは、設定確認状態に制御されている間も、設定値の確認制御に関与しない操作スイッチの検出状態を逐次特定できるようになっている。   Further, interrupts are permitted even in the setting confirmation state, and since the operation detection command is periodically transmitted while being controlled to the setting confirmation state as in the setting change state, the sub CPU 91a enters the setting confirmation state. Even during the control, the detection state of the operation switch not involved in the setting value confirmation control can be sequentially specified.

また、前述のようにサブCPU91aは、メインCPU41aが設定変更状態または設定確認状態に制御されている期間において管理情報にアクセス可能な管理者モードに制御することとなるので、その間に送信された操作検出コマンドから特定される操作スイッチの操作を利用して管理者モード期間中の操作を行なうことが可能とされており、演出制御基板90側に管理情報にアクセスするための操作手段を別途備えることなく、本来であれば、遊技制御基板40側でゲームの進行制御に用いられる操作スイッチを活用して管理情報へのアクセス操作を行なうことができる。   Further, as described above, the sub CPU 91a controls to the administrator mode in which the management information can be accessed during the period in which the main CPU 41a is controlled to the setting change state or the setting confirmation state. It is possible to perform an operation during the administrator mode period using the operation switch specified from the detection command, and an operation means for accessing the management information is separately provided on the production control board 90 side. However, originally, an operation for accessing the management information can be performed on the game control board 40 side using an operation switch used for controlling the progress of the game.

次に、サブCPU91a側の管理情報にアクセスする際の操作状況およびその際のサブCPU91aの制御状況を図66に基づいて説明する。   Next, an operation situation when accessing the management information on the sub CPU 91a side and a control situation of the sub CPU 91a at that time will be described with reference to FIG.

まず、サブCPU91aは、設定開始コマンドまたは確認開始コマンドを受信したときに管理者モードに制御する。これに伴い、図66に示す管理者モード画面が液晶表示器51に表示されるようになっており、この管理者モード画面において、遊技履歴データのクリアや遊技者により閲覧可能な遊技履歴データの設定、設定変更履歴の閲覧を行なうことが可能とされている。   First, the sub CPU 91a controls to the administrator mode when receiving a setting start command or a confirmation start command. Accordingly, the administrator mode screen shown in FIG. 66 is displayed on the liquid crystal display 51. In this administrator mode screen, the game history data is cleared and the game history data that can be viewed by the player is displayed. The setting and setting change history can be browsed.

また、管理者モードでは、遊技状態コマンドまたは確認終了コマンドを受信したときに、終了するとともに、管理者モード画面に表示された所定のメニュー領域(後述する「戻る」のメニュー領域)をストップスイッチ8L、8Cにより選択した状態でストップスイッチ8Rを操作した場合にも終了するようになっている。なお、この場合には、設定変更中または設定確認中である旨が引き続き報知されることとなる。   Further, in the administrator mode, when a game state command or a confirmation end command is received, the stop mode is terminated and a predetermined menu area (a “return” menu area described later) displayed on the administrator mode screen is displayed on the stop switch 8L. , 8C is also ended when the stop switch 8R is operated in the state selected by 8C. In this case, it is continuously notified that the setting is being changed or the setting is being confirmed.

管理者モード画面には、現在選択されているメニューの説明領域と、「履歴データクリア」「オプション」「設定変更履歴」「戻る」からなるメニュー領域と、が設けられており、ストップスイッチ8L、8Cの操作に応じて、メニュー領域の選択枠を移動させるとともに、この移動に伴って説明領域の表示内容も現在選択されているメニュー領域の説明に更新される。   The administrator mode screen is provided with an explanation area for the currently selected menu and a menu area consisting of “history data clear”, “option”, “setting change history”, and “return”, and the stop switch 8L, In response to the operation of 8C, the selection frame of the menu area is moved, and the display content of the explanation area is also updated to the explanation of the currently selected menu area with this movement.

図66(a)に示すように、管理者モード画面で「履歴データクリア」のメニュー領域が選択された状態で、ストップスイッチ8Rを操作すると、図67(a)に示す履歴データクリア画面を表示させる。履歴データクリア画面には、現在選択されているメニューの説明領域と、「はい」「いいえ」からなるメニュー領域と、が設けられている。そして、履歴データクリア画面において「はい」が選択された状態で、ストップスイッチ8Rを操作すると、RAM91cの遊技履歴データ記憶領域に記憶されている遊技履歴データのうち、設定変更履歴を除く全てのデータがクリアされた後、図67(b)に示すように履歴データのクリアが完了した旨を示すメッセージが表示され、管理者モード画面に戻る。なお、履歴データクリア画面において「いいえ」が選択された状態で、決ストップスイッチ8Rを操作すると、遊技履歴データはクリアされずに管理者モード画面に戻る。   As shown in FIG. 66 (a), when the “history data clear” menu area is selected on the administrator mode screen and the stop switch 8R is operated, the history data clear screen shown in FIG. 67 (a) is displayed. Let The history data clear screen is provided with an explanation area for the currently selected menu and a menu area consisting of “Yes” and “No”. Then, when the stop switch 8R is operated in a state where “Yes” is selected on the history data clear screen, all of the game history data stored in the game history data storage area of the RAM 91c except for the setting change history. Is cleared, a message indicating that the history data has been cleared is displayed as shown in FIG. 67B, and the screen returns to the administrator mode screen. Note that if the decision stop switch 8R is operated in a state where “NO” is selected on the history data clear screen, the game history data is not cleared and the screen returns to the manager mode screen.

図66(b)に示すように、管理者モード画面で「オプション」のメニュー領域が選択された状態で、ストップスイッチ8Rを操作すると、図68(a)に示すオプション画面を表示させる。オプション画面には、「ボーナス間情報」「演出紹介」「ボーナス履歴」「スランプグラフ」「戻る」からなるメニュー領域が設けられている。そして、オプション画面において「ボーナス間情報」「演出紹介」「ボーナス履歴」「スランプグラフ」のいずれかが選択された状態で、ストップスイッチ8Rを操作すると、対応する閲覧可能設定欄の表示が切り替わる。具体的には、閲覧を有効とする旨を示す「ON」が表示されている状態では閲覧を有効としない旨を示す「OFF」に切り替わり、「OFF」が表示されている状態では「ON」に切り替わる。そして、オプション画面において「戻る」が選択された状態で、ストップスイッチ8Rを操作すると、閲覧可能設定欄に「ON」が表示されている項目の閲覧有効フラグを設定する一方、「OFF」が表示されている項目の閲覧有効フラグをクリアした後、管理者モード画面に戻る。   As shown in FIG. 66 (b), when the “option” menu area is selected on the administrator mode screen and the stop switch 8R is operated, the option screen shown in FIG. 68 (a) is displayed. The option screen is provided with a menu area including “information between bonuses”, “production introduction”, “bonus history”, “slump graph”, and “return”. Then, when the stop switch 8R is operated in a state where any one of “information between bonuses”, “introduction of presentation”, “bonus history”, and “slump graph” is selected on the option screen, the display of the corresponding viewable setting column is switched. Specifically, when “ON” indicating that browsing is enabled is displayed, it is switched to “OFF” indicating that browsing is not enabled, and “ON” is displayed when “OFF” is displayed. Switch to When the “return” is selected on the option screen and the stop switch 8R is operated, the browsing valid flag is set for the item for which “ON” is displayed in the browsing setting column, while “OFF” is displayed. After clearing the viewing valid flag of the item that has been set, the screen returns to the administrator mode screen.

図66(c)に示すように、管理者モード画面で「設定変更履歴」のメニュー領域が選択された状態で、ストップスイッチ8Rを操作すると、図68(b)に示す設定変更履歴画面を表示させる。設定変更履歴画面には、過去5回分の設定変更履歴、すなわちRAM91cに格納されている設定変更履歴が表示される設定変更履歴表示領域と、「戻る」に対応するメニュー領域と、が設けられている。そして、設定変更履歴画面において「戻る」が選択された状態で、ストップスイッチ8Rを操作すると、管理者モード画面に戻る。   As shown in FIG. 66 (c), when the stop switch 8R is operated in a state where the “setting change history” menu area is selected on the administrator mode screen, the setting change history screen shown in FIG. 68 (b) is displayed. Let The setting change history screen includes a setting change history display area for displaying the setting change history for the past five times, that is, a setting change history stored in the RAM 91c, and a menu area corresponding to “return”. Yes. When the “return” is selected on the setting change history screen and the stop switch 8R is operated, the screen returns to the administrator mode screen.

図66(d)に示すように、管理者モード画面で「戻る」のメニュー領域が選択された状態でストップスイッチ8Rを操作すると、管理者用モードを終了して、設定変更中または設定確認中の報知画面が表示される。   As shown in FIG. 66 (d), when the stop switch 8R is operated in a state where the “return” menu area is selected on the administrator mode screen, the administrator mode is terminated and the setting is being changed or the setting is being confirmed. The notification screen is displayed.

以上のように、メインCPU41aが設定変更状態または設定確認状態に制御される場合に、管理者モード画面が表示され、当該画面においてストップスイッチ8L、8C、8Rを操作することにより、遊技履歴データのクリア、遊技者により閲覧可能な遊技履歴データの設定、設定変更履歴の閲覧を行なうことが可能となる。   As described above, when the main CPU 41a is controlled to the setting change state or the setting confirmation state, the administrator mode screen is displayed. By operating the stop switches 8L, 8C, and 8R on the screen, the game history data is displayed. Clear, setting of game history data that can be browsed by the player, and browsing of setting change history can be performed.

なお、本実施の形態では、遊技履歴データをクリアしても設定変更履歴のデータはクリアされないようになっているので、たとえば、不正に設定変更がなされた場合でも、その証拠を確実に残しておくことができるが、遊技履歴データのクリアとともに設定変更履歴データについてもクリアされるようにしてもよいし、遊技履歴データと、設定変更履歴データと、を別個の操作によりクリアできるようにしてもよい。   In the present embodiment, even if the game history data is cleared, the setting change history data is not cleared. For example, even if the setting change is made illegally, the evidence is surely left. The setting change history data may be cleared together with the clearing of the game history data, or the game history data and the setting change history data may be cleared by separate operations. Good.

また、本実施の形態では、管理情報の一例としての設定変更履歴が記憶され、遊技店設定用モードにおいて該設定変更履歴を確認できるようになっているが、たとえばスロットマシン1の前面扉の開放履歴(前面扉の開放に基づく開放時刻や開放回数情報)やエラーの発生履歴(エラーの発生時刻や発生したエラーの種類、エラーの発生回数)等を記憶し、管理者モードにおいてこれら前面扉の開放履歴やエラーの発生履歴を確認できるようにしてもよい。   In the present embodiment, a setting change history as an example of management information is stored, and the setting change history can be confirmed in the game shop setting mode. For example, the front door of the slot machine 1 is opened. History (opening time and opening frequency information based on opening of front door) and error occurrence history (error occurrence time, type of error, number of errors), etc. are stored, and in the administrator mode these front doors You may be able to check the release history and error occurrence history.

本発明は、上記の実施の形態に限られず、種々の変形、応用が可能である。以下、本発明に適用可能な上記の実施の形態の変形例などについて説明する。   The present invention is not limited to the above-described embodiment, and various modifications and applications are possible. Hereinafter, modifications of the above-described embodiment applicable to the present invention will be described.

(1) 前述した実施の形態においては、設定変更操作が行なわれた際に前面扉1bが閉鎖状態であったために不能動化された場合、正規の操作(前面扉1bを開放、電源断して設定キースイッチ37をON状態にして電源投入する操作)を行なって設定変更状態に移行させることを契機として、当該不能動化が解除される例について説明した。しかし、不能動化を解除する契機は、これに限るものではなく、所定の操作を行なうことであってもよい。   (1) In the above-described embodiment, when the setting change operation is performed and the front door 1b is in a closed state and is disabled, the normal operation (opening the front door 1b, turning off the power) The example in which the immobilization is canceled when the setting key switch 37 is turned on and the power is turned on to shift to the setting change state has been described. However, the opportunity to cancel the immobilization is not limited to this, and may be a predetermined operation.

図69は、第1の変形例における、起動処理(メイン)の制御内容を示すフローチャートである。以下では、図23と異なる部分のみについて説明する。図69を参照し、Sa27bで前面扉1bが開放状態でない、すなわち閉鎖状態であると判定されたときに、設定キースイッチ37がOFF状態であるか否かを判定する処理(Sa27c’)を行ない、当該Sa27c’においてOFF状態であると判定されるまで当該Sa27c’の処理が繰返し行なわれ、OFF状態であると判定されたときにSa16に移行される。すなわち、Sa27bで前面扉1bが閉鎖状態であると判定された後においては、設定キースイッチ37がON状態である限り遊技を不能動化させ、設定キースイッチ37がOFF状態とされることにより当該不能動化が解除される。これにより、不正行為を行なった者にとっては容易に遊技の不能動化を解除することができないのに対し、前面扉1bを開放状態にして設定キースイッチを操作することができる者(たとえば遊技場管理者)であれば、容易かつ速やかに不能動化を解除することができる。   FIG. 69 is a flowchart showing the control content of the startup process (main) in the first modification. Below, only a different part from FIG. 23 is demonstrated. Referring to FIG. 69, when it is determined in Sa27b that front door 1b is not in the open state, that is, in the closed state, processing for determining whether setting key switch 37 is in the OFF state (Sa27c ′) is performed. The process of Sa27c ′ is repeated until it is determined that the Sa27c ′ is in the OFF state, and when it is determined that the Sa27c ′ is in the OFF state, the process proceeds to Sa16. That is, after it is determined in Sa27b that the front door 1b is in the closed state, the game is disabled as long as the setting key switch 37 is in the ON state, and the setting key switch 37 is in the OFF state. Deactivation is released. This makes it impossible for a person who has committed fraud to easily release the disabled game, whereas a person who can operate the setting key switch with the front door 1b open (for example, a game hall If it is an administrator), the immobilization can be canceled easily and quickly.

(2) 前述した実施の形態においては、図23のSa27bの処理においてNOと判定されたときに、Sa27bの処理が行なわれ、当該Sa27bの判定結果に応じて遊技が不能動化される例について説明した。しかし、Sa27bの処理は、電源投入されてから設定変更操作が行なわれているならば設定変更状態に移行されるまでの間に行なうものであればよい。   (2) In the embodiment described above, when it is determined NO in the process of Sa27b in FIG. 23, the process of Sa27b is performed, and the game is disabled according to the determination result of Sa27b. explained. However, the processing of Sa27b may be performed as long as the setting change operation is performed after the power is turned on until the setting change state is entered.

たとえば、Sa11において設定キースイッチ37がON状態であると判定されたときにSa27bと同様の処理(以下では、Sa27b’という)を行ない、当該Sa27b’において前面扉1bが開放状態であると判定されたときには、Sa24へ移行する。一方、前面扉1bが開放状態でないと判定されたときには、図23に示すSa27cと同様の処理、あるいは図69に示すSa27c’と同様の処理を行なって遊技を不能動化するための処理を行なった後、Sa13に移行するように構成してもよい。   For example, when it is determined in Sa11 that the setting key switch 37 is in the ON state, the same processing as Sa27b (hereinafter referred to as Sa27b ') is performed, and it is determined in Sa27b' that the front door 1b is in the open state. If it happens, the process proceeds to Sa24. On the other hand, when it is determined that the front door 1b is not in the open state, a process similar to Sa27c shown in FIG. 23 or a process similar to Sa27c ′ shown in FIG. 69 is performed to disable the game. After that, you may comprise so that it may transfer to Sa13.

このように構成した場合、電源投入時において設定キースイッチ37がON状態であっても、Sa27b’において前面扉1bが開放状態でないと判定されたときには、遊技を不能動化するための処理が行なわれた後、初期化1が行なわれることなくSa13へ移行され、その後Sa16において電断前の状態に復帰される。このため、不能動化が解除された後において電断前の状態から遊技を再開することができる。たとえば、電断前に賭数として3枚設定されている状態で電源が遮断された後に、不正に設定変更操作が行なわれた可能性がある場合には設定変更状態に移行させないものの、電断前の賭数として3枚設定されている状態に復帰させることができ、不能動化が解除された後において賭数として3枚設定されている状態から遊技を再開することができる。すなわち、設定変更操作が不正行為であるか否かに関わらず、電力供給が再開される前の遊技の進行状態から遊技を再開することができる。   In such a configuration, even if the setting key switch 37 is in the ON state when the power is turned on, if it is determined in Sa27b ′ that the front door 1b is not in the open state, processing for disabling the game is performed. After that, the process proceeds to Sa13 without performing initialization 1, and then returns to the state before power interruption in Sa16. For this reason, the game can be resumed from the state before the power interruption after the disabling is released. For example, if there is a possibility that a setting change operation has been performed illegally after the power is turned off while three bets have been set before the power interruption, It is possible to return to the state in which three bets are set as the previous bet number, and the game can be resumed from the state in which three bets are set as the bet number is released after the disabling is released. That is, regardless of whether or not the setting change operation is an illegal act, the game can be resumed from the progress state of the game before the power supply is resumed.

(3) 前述した実施の形態におけるメイン制御部41は、電源投入時において、設定キースイッチ37がON状態であるときには原則として設定開始コマンドあるいはエラーコマンドを送信し、サブ制御部91側においてRAM91cを初期化させるのに対し、設定キースイッチ37がON状態であってもSa27bで前面扉1bが閉状態であると判定されたときには復帰コマンドを送信し、サブ側において復帰させるための処理を行なわせる例について説明した。しかし、メイン制御部41は、電源投入時において、設定キースイッチ37がON状態であるときには、前面扉1bが閉状態であるか否かに関わらず、サブ制御部91側においてRAM91cを初期化させるためのコマンドを送信するようにしてもよい。たとえば、Sa27bで前面扉1bが閉状態であると判定されたときには、設定変更異常を示すエラーコマンドを送信し、サブ制御部91側においてRAM91cを初期化させるように構成してもよい。これにより、たとえば、複数ゲームに亘り実行される連続演出実行中において電断されるときには当該連続演出を実行中である情報がバックアップされるため、電源投入された後、通常であれば連続演出が再開されるところ、連続演出が再開されないことにより設定キースイッチ37がON状態にされて設定変更状態に制御された可能性があることを特定することができる。   (3) The main control unit 41 in the above-described embodiment transmits a setting start command or an error command in principle when the setting key switch 37 is in an ON state when the power is turned on, and the sub-control unit 91 side stores the RAM 91c. In contrast to the initialization, even when the setting key switch 37 is in the ON state, when it is determined in Sa27b that the front door 1b is in the closed state, a return command is transmitted, and a process for returning on the sub side is performed. An example was described. However, when the setting key switch 37 is in the ON state when the power is turned on, the main control unit 41 initializes the RAM 91c on the sub control unit 91 side regardless of whether or not the front door 1b is in the closed state. A command for this may be transmitted. For example, when it is determined in Sa27b that the front door 1b is in the closed state, an error command indicating a setting change abnormality may be transmitted, and the RAM 91c may be initialized on the sub-control unit 91 side. As a result, for example, when power is interrupted during execution of a continuous effect that is executed over a plurality of games, information indicating that the continuous effect is being executed is backed up. When resuming, it is possible to specify that there is a possibility that the setting key switch 37 is turned on and controlled to the setting changing state because the continuous performance is not resumed.

上記のように構成した場合、さらに、サブ制御部91側においては、当該設定変更異常を示すエラーコマンドを受信したときには、RAM91cを初期化させるとともに、設定変更異常である旨を報知してもよい。たとえば、液晶表示器51に「設定変更異常!!」といったメッセージを表示するようにしてもよい。   In the case of the configuration as described above, when the sub control unit 91 receives an error command indicating the setting change abnormality, the RAM 91c may be initialized and the setting change abnormality may be notified. . For example, a message such as “setting change error!” May be displayed on the liquid crystal display 51.

(4) 前述した実施の形態では、乱数割込制御データRDIC0のビット値が“0”に設定されており、乱数値レジスタR1Dとなる乱数値レジスタ559Aに数値データが取り込まれても割込は発生しない構成であったが、乱数割込制御データRDIC0のビット値が“1”に設定されており、乱数値レジスタR1Dとなる乱数値レジスタ559Aに数値データが取り込まれることで、乱数割込が発生するように構成してもよい。   (4) In the above-described embodiment, the bit value of the random number interrupt control data RDIC0 is set to “0”, and even if numerical data is captured in the random value register 559A serving as the random value register R1D, the interrupt is not generated. Although the configuration does not occur, the bit value of the random number interrupt control data RDIC0 is set to “1”, and the numerical value data is taken into the random value register 559A serving as the random number value register R1D. You may comprise so that it may generate | occur | produce.

そして、メイン制御部41は、乱数割込が発生した際に、基本処理に割り込んで乱数値ラッチ割込処理を実行するように構成してもよい。なお、乱数割込が発生した際に、他の割込処理の実行中であれば、実行中の割込処理の終了を待って乱数値ラッチ割込処理を実行する。   The main control unit 41 may be configured to interrupt the basic process and execute the random value latch interrupt process when a random number interrupt occurs. If another interrupt process is being executed when a random interrupt occurs, the random value latch interrupt process is executed after the end of the interrupt process being executed.

図70は、変形例における、メイン制御部41が乱数割込の発生に伴い実行する乱数値ラッチ割込処理の制御内容を示すフローチャートである。なお、乱数値ラッチ割込処理の実行期間中は自動的に他の割込が禁止される。   FIG. 70 is a flowchart showing the control contents of a random value latch interrupt process executed by the main control unit 41 when a random number interrupt is generated, in a modification. Note that other interrupts are automatically prohibited during the execution period of the random value latch interrupt process.

乱数値ラッチ割込処理では、まず、使用中のレジスタをスタック領域に退避した後(Sk1001)、乱数値レジスタ559Aから数値データを読み出し(Sk1002)、乱数値格納ワークに格納されている値を、Sk1002において読み出した数値データに更新し(Sk1003)、Sk1001においてスタック領域に退避したレジスタを復帰し(Sk1004)、割込前の処理に戻る。   In the random value latch interrupt process, first, after saving the register in use to the stack area (Sk1001), the numerical data is read from the random value register 559A (Sk1002), and the value stored in the random number value storage work is The numerical data read in Sk1002 is updated (Sk1003), the register saved in the stack area is restored in Sk1001 (Sk1004), and the process before the interrupt is returned.

この例では、乱数値レジスタR1Dに数値データが取り込まれることで、乱数割込が発生し、これに伴いメイン制御部41は、基本処理に割り込んで乱数値ラッチ割込処理を実行し、乱数値レジスタR1Dの数値データを読み出すようになっている。これにより、乱数ラッチフラグがクリアされ、新たな数値データの取込が可能な状態となる。すなわち乱数値レジスタR1Dに数値データが取り込まれる毎に、乱数値ラッチ割込処理を実行して乱数値レジスタR1Dの数値データを読み出すことで、乱数値レジスタR1Dに数値データが保持されている状態を解除し、乱数値レジスタR1Dに新たな数値データの取込が可能な状態となる。   In this example, a random number interrupt is generated when numerical data is taken into the random value register R1D, and the main control unit 41 interrupts the basic process and executes a random value latch interrupt process. Numerical data of the register R1D is read out. As a result, the random number latch flag is cleared, and new numerical data can be taken in. That is, every time numerical data is fetched into the random value register R1D, the random value latch interrupt processing is executed to read the numerical data in the random value register R1D, so that the numerical data is held in the random value register R1D. The state is released, and new numerical data can be taken into the random value register R1D.

このため、図71に示すように、ゲームの開始が許可されていない状態でスタートスイッチ7が操作されて乱数値レジスタR1Dに数値データが格納され、その状態が保持されても、数値データがラッチされたことに伴う割込の発生により乱数値レジスタR1Dの数値データが読み出され、新たにラッチされた数値データを格納可能な状態となるので、ゲームの開始が許可される前のスタートスイッチ7の操作によりラッチされた数値データが乱数値レジスタR1Dに保持されても、ゲームの開始が許可された後にスタートスイッチ7が操作されたタイミングで新たにラッチした数値データを取得することが可能となる。   For this reason, as shown in FIG. 71, the start switch 7 is operated in a state where the start of the game is not permitted, and the numerical data is stored in the random value register R1D. Even if this state is maintained, the numerical data is latched. Since the numerical data of the random number register R1D is read out by the occurrence of an interrupt due to the occurrence of the interruption, it becomes possible to store the newly latched numerical data, so the start switch 7 before the start of the game is permitted Even if the numerical data latched by the above operation is held in the random value register R1D, it is possible to acquire the newly latched numerical data at the timing when the start switch 7 is operated after the start of the game is permitted. .

また、乱数値ラッチ割込処理では、乱数値レジスタR1Dにラッチされた数値データを読み出すだけではなく、RAM507の乱数値格納ワークの値を読み出した数値データに更新することにより、乱数値レジスタR1Dに新たな数値データがラッチされる毎に、乱数値格納ワークに格納された数値データが新たにラッチされた最新の数値データに更新されるようになっている。   Further, in the random value latch interrupt processing, not only the numerical data latched in the random value register R1D but also the random value storage work value in the RAM 507 is updated to the read numerical data, so that the random value register R1D Each time new numerical data is latched, the numerical data stored in the random value storage work is updated to the latest latched numerical data.

そして、ゲームの開始時に、乱数値レジスタR1Dに格納されている数値データではなく、RAM507の乱数値格納ワークに格納されている数値データを取得して内部抽選を行なうので、乱数値レジスタR1Dから数値データが読み出された後に、スタートスイッチの信号線にノイズがのって数値データが変わってしまっても内部抽選に用いる乱数値格納ワークの数値データに影響することがなく、このような場合であってもスタートスイッチ7が操作されたタイミングでラッチした数値データを用いて内部抽選を行なうことができる。   At the start of the game, instead of the numerical data stored in the random value register R1D, the numerical data stored in the random value storage work of the RAM 507 is acquired and the internal lottery is performed, so the numerical value is stored from the random value register R1D. After the data is read, even if the numerical data changes due to noise on the signal line of the start switch, it will not affect the numerical data of the random number storage work used for internal lottery. Even in such a case, the internal lottery can be performed using the numerical data latched at the timing when the start switch 7 is operated.

また、この例では、スタートスイッチ7の操作が検出された時点で、RAM507の乱数値格納ワークに格納されている数値データを同じくRAM507に割り当てられた抽選用ワークに設定し、その後の内部抽選において抽選用ワークに設定された数値データに対して演算を行なうことにより役に当選したか否かの判定を行なうようになっており、スタートスイッチ7の操作が検出された時点から内部抽選が終了するまでに乱数値格納ワークに格納されている数値データが更新されても、スタートスイッチ7の操作が検出された時点で取得した数値データが内部抽選が終了するまでに変更されてしまうことがないが、スタートスイッチ7の操作が検出された時点でRAM507の乱数値格納ワークに格納されている数値データをCPU505のワークレジスタに設定し、その後の内部抽選においてワークレジスタに設定された数値データに対して演算を行なうことにより役に当選したか否かの判定を行なうようにしてもよい。   In this example, when the operation of the start switch 7 is detected, the numerical data stored in the random value storage work of the RAM 507 is set as the lottery work assigned to the RAM 507, and in the subsequent internal lottery. It is determined whether or not the winning combination has been won by performing an operation on the numerical data set in the lottery work, and the internal lottery ends when the operation of the start switch 7 is detected. Even if the numerical data stored in the random number value storage work is updated up to now, the numerical data acquired when the operation of the start switch 7 is detected will not be changed before the internal lottery ends. When the operation of the start switch 7 is detected, the numerical data stored in the random value storage work of the RAM 507 is transferred to the CPU 50. The set in the work register, may be a determination of whether the player wins a winning combination by performing an operation on numerical values set in the work register data in the subsequent internal lottery.

また、乱数値格納ワークに格納されている数値データに対して演算を行なうことにより役に当選したか否かの判定を行なうようにしてもよいが、この場合には、スタートスイッチ7の操作が検出された時点から内部抽選が終了するまでの期間において、乱数割込の発生に伴う乱数値割込処理を禁止することなどにより、乱数値格納ワークに格納されている数値データが新たにラッチされた数値データによって更新されてしまうことがないようにすることで、スタートスイッチ7の操作が検出された時点で取得した数値データが内部抽選が終了するまでに変更されてしまうことを防止できる。   Further, it may be determined whether or not the winning combination has been won by performing an operation on the numerical data stored in the random value storage work. In this case, the operation of the start switch 7 is performed. The numerical data stored in the random value storage work is newly latched, for example, by prohibiting random value interrupt processing that accompanies the generation of random number interrupts during the period from the time of detection until the end of the internal lottery. By preventing the numerical data from being updated, it is possible to prevent the numerical data acquired when the operation of the start switch 7 is detected from being changed before the internal lottery is completed.

なお、この例では、乱数値ラッチ割込処理において、乱数値レジスタR1Dの数値データを読み出すようになっているが、乱数値ラッチ割込処理では、乱数値レジスタR1Dに数値データがラッチされた旨を示すラッチフラグをRAM507に設定し、BET処理などの基本処理やタイマ割込処理(メイン)などにおいてラッチフラグがRAM507に設定されているか否かを判定し、RAM507にラッチフラグが設定されていると判定した場合に、乱数値レジスタR1Dの数値データを読み出す構成としてもよく、このような構成とした場合でも、ゲームの開始が許可されていない状態でスタートスイッチ7が操作されて乱数値レジスタR1Dに数値データが格納され、その状態が保持されたままとなってしまうことがなく、ゲームの開始が許可された後にスタートスイッチ7が操作されたタイミングで新たにラッチした数値データを取得することが可能となる。   In this example, the numerical value data in the random value register R1D is read in the random value latch interrupt process. However, in the random value latch interrupt process, the numerical data is latched in the random value register R1D. Is set in the RAM 507, and it is determined whether the latch flag is set in the RAM 507 in basic processing such as BET processing or timer interrupt processing (main), and it is determined that the latch flag is set in the RAM 507. In such a case, the numerical data in the random value register R1D may be read. Even in such a structure, the start switch 7 is operated in a state where the start of the game is not permitted, and the numerical data is stored in the random value register R1D. Will be stored and the state will not be retained. There it is possible to obtain a new numerical data latched at the timing of the start switch 7 has been operated after being allowed.

(5) 上記の実施の形態では、遊技機の一例として、1ゲームに対してメダルやクレジットを用いて賭数を設定することによりゲームが開始可能となるとともに、表示状態を変化させることが可能な可変表示装置に表示結果が導出されることにより1ゲームが終了し、該可変表示装置の表示結果に応じて入賞が発生可能とされたスロットマシンを説明した。   (5) In the above embodiment, as an example of a gaming machine, the game can be started and the display state can be changed by setting the number of bets using a medal or credit for one game. A slot machine has been described in which one game is completed when a display result is derived to a variable display device, and a winning can be generated according to the display result of the variable display device.

しかしながら、本発明を具現化する遊技機は、このようなスロットマシンに限定されるものではなく、遊技者に対する有利度を変更可能な遊技機であればよい。遊技機としては、たとえば、所定の遊技領域に遊技媒体(たとえばパチンコ球)を打ち込み、該打ち込まれた遊技媒体が遊技領域に設けられた始動領域(たとえば始動口)を通過(入賞)することにより、可変表示装置における表示状態を変化させることが可能となり、当該可変表示装置の表示結果が特定表示結果(たとえば大当り図柄の組合せ)となったときに、遊技者にとって有利な特定遊技状態(大当り状態)に制御するパチンコ機であってもよい。この場合、有利度を変更するとは、特定遊技状態(いわゆる大当り)に制御される確率が異なるように定められた複数種類の設定値のうちいずれかを設定することをいう。また、可変表示条件は、始動領域を通過したときに成立して乱数が読み出され、当該始動領域への通過を契機として可変表示を開始できるタイミングに到達したときに、設定されている設定値から特定される確率にしたがって、当該乱数を用いて特定表示結果を導出させるか否かを決定する。   However, the gaming machine that embodies the present invention is not limited to such a slot machine, and may be any gaming machine that can change the advantage to the player. As a gaming machine, for example, a game medium (for example, a pachinko ball) is driven into a predetermined game area, and the game medium that has been driven passes (wins) through a start area (for example, a start port) provided in the game area. The display state of the variable display device can be changed, and when the display result of the variable display device becomes a specific display result (for example, a combination of jackpot symbols), a specific game state (big hit state) that is advantageous to the player It may be a pachinko machine that is controlled. In this case, changing the degree of advantage means setting any one of a plurality of types of setting values determined so that the probability of being controlled to a specific gaming state (so-called jackpot) is different. In addition, the variable display condition is established when the variable passes through the start area and a random number is read out. In accordance with the probability specified from the above, it is determined whether or not the specific display result is derived using the random number.

ここで、図73〜図76を用いて、本発明をパチンコ機に適用した場合の“開閉体”および“開閉状態検出手段”に相当する構成について説明する。図73〜図76に示すように、パチンコ機は、外枠912と、本体枠914とを備えている、外枠912は略矩形に形成され、遊技場におけるいわゆる島などに固定される。本体枠914は、一方側が外枠912に軸支されて、図73に示すように、他方側を外枠912に近接させた閉じ位置(閉鎖状態)と、図74や図76に示すように、他方側を外枠912から離間させた開き位置(開放状態)との間で回動自在となっている。   Here, a configuration corresponding to “opening / closing body” and “opening / closing state detecting means” when the present invention is applied to a pachinko machine will be described with reference to FIGS. 73 to 76. 73 to 76, the pachinko machine includes an outer frame 912 and a main body frame 914. The outer frame 912 is formed in a substantially rectangular shape, and is fixed to a so-called island or the like in a game arcade. As shown in FIG. 74 and FIG. 76, the main body frame 914 has a closed position in which one side is pivotally supported by the outer frame 912 and the other side is close to the outer frame 912 as shown in FIG. The other side is rotatable between an open position (open state) separated from the outer frame 912.

本体枠914の前面側には、ガラス扉916、遊技球の受け皿918、遊技球を発射させる操作ハンドル920が設けられている。ガラス扉916は、一方側が本体枠914に軸支されて、図73に示すように、他方側を本体枠914に近接させた閉じ位置(閉鎖状態)と、図75に示すように、他方側を本体枠914から離間させた開き位置(開放状態)との間で回動自在となっている。   On the front side of the main body frame 914, a glass door 916, a game ball tray 918, and an operation handle 920 for firing the game ball are provided. One side of the glass door 916 is pivotally supported by the main body frame 914, and as shown in FIG. 73, the other side is close to the main body frame 914 (closed state), and as shown in FIG. Is freely rotatable between an open position (open state) separated from the main body frame 914.

ガラス扉916の背後には、パチンコ球を打ち込むための遊技領域924を形成するための遊技盤922が配置されており、ガラス扉916を介して遊技盤922を視認できる。遊技盤922には、いわゆる役物、始動口、入賞口、アタッカ、アウト口、遊技釘、風車、始動口への入賞に伴い複数の図柄を変動表示させて表示結果を導出させるための可変表示装置などが設けられている。   Behind the glass door 916, a game board 922 for forming a game area 924 for driving a pachinko ball is arranged, and the game board 922 can be visually recognized through the glass door 916. On the game board 922, a variable display for deriving a display result by variably displaying a plurality of symbols in accordance with winning at a so-called accessory, start port, winning port, attacker, out port, game nail, windmill, starting port. A device is provided.

また、本体枠914の背面側には、遊技球を受けるための遊技球タンク、遊技球タンクに貯留された遊技球を受け皿に払い出す払出装置、遊技や演出の制御を行なう各種制御基板、保護カバー、電源基盤を収容する電源基盤ケース901、本体枠914の開放状態を検出するための本体枠開放検出スイッチ925が設けられている。   Also, on the back side of the main body frame 914, a game ball tank for receiving game balls, a payout device for paying out game balls stored in the game ball tank to a tray, various control boards for controlling games and effects, protection A cover, a power supply base case 901 that houses the power supply base, and a main body frame open detection switch 925 for detecting the open state of the main body frame 914 are provided.

電源基盤ケース901の前面には、電源をON/OFFする際に操作される電源スイッチ939、設定スイッチ938が設けられている。設定変更を行なう際には、たとえば、本体枠914を開放状態にし、設定スイッチ938を押圧操作したままの状態で電源スイッチ939をONすることにより、前述した実施の形態における設定変更状態と同様の状態に制御される。当該設定変更状態においては、設定スイッチ938を押圧操作する毎に設定値が1ずつ更新され(設定6からさらに操作されたときは、設定1に戻る)、所定の設定終了操作(たとえば、設定スイッチ938を5秒以上押圧操作するなど)により現在の設定値が設定されて当該設定変更状態が終了する。電源スイッチ939を一旦OFF状態にし、設定スイッチ938を押圧操作したまま電源スイッチ939をONさせる操作を行なうことにより、設定変更状態に移行されるため、当該操作をまとめて設定変更操作ともいう。   On the front surface of the power supply base case 901, a power switch 939 and a setting switch 938 that are operated when the power is turned ON / OFF are provided. When changing the setting, for example, the main body frame 914 is opened, and the power switch 939 is turned on while the setting switch 938 is being pressed, so that the setting change state in the above-described embodiment is the same. Controlled by the state. In the setting change state, each time the setting switch 938 is pressed, the setting value is updated by one (when the setting switch 938 is further operated, the setting value is returned to setting 1), and a predetermined setting end operation (for example, setting switch 938) The current setting value is set by, for example, pressing 938 for 5 seconds or more, and the setting change state ends. Since the power switch 939 is temporarily turned off and the power switch 939 is turned on while pressing the setting switch 938, the operation is shifted to the setting change state. Therefore, the operations are collectively referred to as a setting change operation.

以上のように、遊技機本体である本体枠914が外枠912に対して回動自在に取付けられており、当該本体枠914を開放状態とすることにより設定変更操作を行なうことが可能となる。このような場合には、当該本体枠914が開閉体であるといえる。また、本体枠914の開放状態を検出するための本体枠開放検出スイッチ925が開閉状態検出手段であるといえる。   As described above, the main body frame 914 which is a gaming machine main body is rotatably attached to the outer frame 912, and the setting change operation can be performed by opening the main body frame 914. . In such a case, it can be said that the main body frame 914 is an opening / closing body. Further, it can be said that the main body frame open detection switch 925 for detecting the open state of the main body frame 914 is an open / closed state detecting means.

なお、図73〜図76に示すパチンコ機において、たとえば、図75のようにガラス扉916を開放状態とすることにより設定変更操作を行なうことが可能となるように、電源スイッチ、設定スイッチが設けられており、ガラス扉916の開放状態を検出するためのガラス扉開放検出スイッチが設けられている場合には、当該ガラス扉916が開閉体であるといえる。また、ガラス扉916の開放状態を検出するためのガラス扉開放検出スイッチが開閉状態検出手段であるといえる。   In the pachinko machine shown in FIGS. 73 to 76, for example, a power switch and a setting switch are provided so that the setting change operation can be performed by opening the glass door 916 as shown in FIG. If a glass door open detection switch for detecting the open state of the glass door 916 is provided, it can be said that the glass door 916 is an opening / closing body. Moreover, it can be said that the glass door open detection switch for detecting the open state of the glass door 916 is an open / closed state detection means.

(6) 上記の実施の形態では、メダル並びにクレジットを用いて賭数を設定するスロットマシンを用いているが、本発明はこれに限定されるものではなく、パチンコ遊技機で用いられている遊技球(パチンコ球)を用いて賭数を設定するいわゆるパロットや、クレジットのみを使用して賭数を設定する完全クレジット式のスロットマシンであってもよい。   (6) In the above embodiment, a slot machine for setting bets using medals and credits is used. However, the present invention is not limited to this, and a game used in a pachinko gaming machine. It may be a so-called parrot that uses a ball (pachinko ball) to set a bet number, or a fully credit type slot machine that sets a bet number using only credits.

さらに、流路切替ソレノイド30や投入メダルセンサ31など、メダルの投入機構に加えて、遊技球の取込を行なう球取込装置、球取込装置により取り込まれた遊技球を検出する取込球検出スイッチを設けるとともに、ホッパーモータ34bや払出センサ34cなど、メダルの払出機構に加えて、遊技球の払出を行なう球払出装置、球払出装置により払い出された遊技球を検出する払出球検出スイッチを設け、メダルおよび遊技球の双方を用いて賭数を設定してゲームを行なうことが可能であり、かつ入賞の発生によってメダルおよび遊技球が払い出されるスロットマシンに適用してもよい。   Further, in addition to the medal insertion mechanism such as the flow path switching solenoid 30 and the insertion medal sensor 31, a ball take-in device that takes in game balls, and a take-in ball that detects game balls taken in by the ball take-in device In addition to a medal payout mechanism, such as a hopper motor 34b and a payout sensor 34c, a ball payout device for paying out game balls, a payout ball detection switch for detecting game balls payed out by the ball payout device It is possible to set the number of bets using both medals and game balls and play a game, and the present invention may be applied to a slot machine in which medals and game balls are paid out when a winning occurs.

(7) 前述した実施の形態においては、電断処理の一例として、電圧低下信号が入力されると割り込んで実行され、電圧低下信号が入力されなくなると復帰する例について説明した(図38、図52)。以下に、電断処理の変形例について説明する。なお、この変形例における起動処理(メイン)では、ユーザリセット信号が入力された場合には、Sa2のステップから処理を開始する。すなわち、電源投入に伴う起動の場合のみセキュリティチェック処理を行なうセキュリティモードから開始する一方、ウォッチドッグタイマのタイムアップによる起動の場合には、セキュリティチェック処理を省略してROM506に記憶されたユーザプログラムを実行するユーザモードから開始されることになる。   (7) In the above-described embodiment, as an example of the power interruption process, an example has been described in which an interrupt is executed when a voltage drop signal is input, and a return is made when the voltage drop signal is not input (FIGS. 38 and 38). 52). Below, the modification of an electrical disconnection process is demonstrated. In the startup process (main) in this modification, when a user reset signal is input, the process is started from step Sa2. That is, while starting from the security mode in which the security check process is performed only in the case of activation upon power-on, the user program stored in the ROM 506 is executed by omitting the security check process in the case of activation due to time-up of the watchdog timer It starts from the user mode to execute.

メイン制御部41による電断処理として、たとえば、図72のように構成してもよい。図72は、電圧低下信号が入力されたときにメイン制御部41が実行する電断処理の制御内容を示すフローチャートである。   For example, the power interruption process by the main control unit 41 may be configured as shown in FIG. FIG. 72 is a flowchart showing the control contents of the power interruption process executed by the main control unit 41 when a voltage drop signal is input.

メイン制御部41による電断処理として、たとえば、図72のように構成してもよい。図72は、電圧低下信号が入力されたときにメイン制御部41が実行する電断処理の制御内容を示すフローチャートである。   For example, the power interruption process by the main control unit 41 may be configured as shown in FIG. FIG. 72 is a flowchart showing the control contents of the power interruption process executed by the main control unit 41 when a voltage drop signal is input.

電断処理(メイン)においては、まず、使用している可能性がある全てのレジスタをスタック領域に退避する(Sm1)。なお、前述したIレジスタ及びIYレジスタの値は使用されているが、起動時の初期化に伴って常に同一の固定値が設定されるため、ここでは保存されない。   In the power interruption process (main), first, all registers that may be in use are saved in the stack area (Sm1). Although the values of the I register and IY register described above are used, they are not saved here because the same fixed value is always set with the initialization at the time of startup.

次いで、破壊診断用データ(本実施例では、5A(H))をセットして(Sm4’)、全ての出力ポートを初期化する(Sm5’)。次いでRAM507の全ての格納領域(未使用領域及び未使用スタック領域を含む)の排他的論理和が0になるようにRAMパリティ調整用データを計算してセットし(Sm6’)、RAM507へのアクセスを禁止する(Sm7’)。   Next, destruction diagnosis data (5A (H) in this embodiment) is set (Sm4 '), and all output ports are initialized (Sm5'). Next, the RAM parity adjustment data is calculated and set so that the exclusive OR of all storage areas (including unused areas and unused stack areas) of the RAM 507 becomes 0 (Sm6 ′), and the RAM 507 is accessed. Is prohibited (Sm7 ′).

その後、電圧が低下してCPU505が停止するか、ユーザリセット信号が入力されて再起動するか、の待機状態に移行する。この待機状態では、乱数ラッチフラグレジスタの値に基づいて乱数値がラッチされているか否か、すなわち乱数値レジスタ559Aに数値データが取り込まれているか否かを判定し(Sm13)、乱数値がラッチされていれば、乱数値レジスタ559Aから内部抽選用の乱数値を読み出す(Sm14)ようになっており、これら以外の処理は行われない。Sm14のステップにおいて乱数値レジスタ559から内部抽選用の乱数値が読み出されると乱数ラッチフラグレジスタがクリアされ、新たな数値データの取込が許可されることとなる。また、Sm14のステップにおいては、内部抽選用の乱数値を読み出すものの、読み出した乱数値を用いる訳ではなく、スタートスイッチ7の操作に応じて新たな乱数値の取込を可能とするためにダミーとして読み出すものである。   Thereafter, the CPU 505 is stopped due to a decrease in voltage, or a user reset signal is input to restart the system. In this standby state, it is determined whether or not the random number value is latched based on the value of the random number latch flag register, that is, whether or not numerical data is taken into the random number value register 559A (Sm13), and the random number value is latched. If it is, the random number value for internal lottery is read from the random value register 559A (Sm14), and other processing is not performed. When the random number value for internal lottery is read from the random number value register 559 in the step of Sm14, the random number latch flag register is cleared, and the acquisition of new numerical data is permitted. In the step of Sm14, although the random number value for internal lottery is read, the read random number value is not used, but a dummy number is set in order to enable taking in a new random value in accordance with the operation of the start switch 7. Is read out.

そしてこの待機状態のまま電圧が低下すると内部的に動作停止状態になる。よって、電断時に確実にメイン制御部41は動作停止する。また、この待機状態において、電圧が低下せずにユーザリセット信号が入力されると前述した起動処理(メイン)がユーザモードから実行され、RAM507の格納データが正常であれば、元の処理に復帰することとなる。   When the voltage drops in this standby state, the operation is stopped internally. Therefore, the main control unit 41 reliably stops operation when power is interrupted. Further, in this standby state, when the user reset signal is input without the voltage being lowered, the above-described activation process (main) is executed from the user mode, and if the stored data in the RAM 507 is normal, the process returns to the original process. Will be.

このように本実施例のメイン制御部41は、システムリセットであるかユーザリセットであるかに関わらず、RAM507へのアクセスが許可された後、他の処理を行なうことなく、まず、RAM507の全ての格納領域(未使用領域及び未使用スタック領域を含む)のRAMパリティを計算し、その後、計算したRAMパリティから格納データが正常か否かの判定を行なう前に、RAM507の格納データが正常か否かに関わらず共通して行なう必要のある処理を行い、その後、RAMパリティに基づいてRAM507の格納データが正常か否かの判定を行なうようになっている。   As described above, the main control unit 41 according to the present embodiment does not perform any other processing after the access to the RAM 507 is permitted regardless of whether the reset is a system reset or a user reset. RAM parity of the storage area (including the unused area and the unused stack area) is calculated, and then the storage data in the RAM 507 is normal before determining whether the stored data is normal from the calculated RAM parity. Whether the data stored in the RAM 507 is normal or not is determined based on the RAM parity.

このため、これらRAM507の格納データが正常か否かに関わらず共通して行なう必要のある処理を、RAM507の格納データが正常と判定された場合と異常と判定された場合とで個別に実行する必要がないため、起動時の処理に用いるプログラム容量を削減することができる。   For this reason, processing that needs to be performed in common regardless of whether the stored data in the RAM 507 is normal or not is executed separately when the stored data in the RAM 507 is determined to be normal and when it is determined to be abnormal. Since it is not necessary, the capacity of the program used for processing at the time of activation can be reduced.

また、メイン制御部41の起動後、RAM507へのアクセスが許可された後、他の処理を行なう前にRAMパリティの計算が行われるので、RAM507に対して何らのアクセスも行われる前の状態で算出されたRAMパリティに基づいて格納データが正常か否かの判断が行われるため、データが正常か否かの判定の信頼性を高めることができる。   In addition, after the main control unit 41 is activated, after the access to the RAM 507 is permitted, the RAM parity is calculated before other processing is performed. Therefore, the state before any access to the RAM 507 is performed. Since it is determined whether the stored data is normal based on the calculated RAM parity, it is possible to improve the reliability of the determination of whether the data is normal.

また、電断処理において、RAM507の未使用領域及び未使用スタック領域を含む全てのデータに基づくRAMパリティが0となるようにRAMパリティ調整用データを計算し、格納するとともに、復旧時においてRAM507における未使用領域及び未使用スタック領域を含む全ての領域に格納されているデータに基づいて計算したRAMパリティが0か否かを判定することで、RAM507のデータが正常か否かを判定しているので、当該判定を正確にかつ簡便に行なうことができるうえに、未使用領域や未使用スタック領域に不正なプログラムやデータが格納された場合でも、これら不正なプログラムやデータが格納されたまま復帰してしまうことを防止できる。   In the power interruption process, the RAM parity adjustment data is calculated and stored so that the RAM parity based on all the data including the unused area and the unused stack area of the RAM 507 becomes 0, and the RAM 507 is restored at the time of restoration. It is determined whether or not the data in the RAM 507 is normal by determining whether or not the RAM parity calculated based on the data stored in all areas including the unused area and the unused stack area is 0. Therefore, the determination can be performed accurately and simply, and even if an illegal program or data is stored in an unused area or an unused stack area, the illegal program or data is restored while being stored. Can be prevented.

また、RAMパリティを計算した後、計算したRAMパリティから格納データが正常か否かの判定を行なう前に、RAM507の格納データが正常か否かに関わらず共通して行なう処理として、RAM507に格納されている各スイッチ入力データ、確定データ、エッジデータ、すなわち各スイッチの検出状況を示すデータをクリアするようになっており、メイン制御部41の起動時においてRAM507のデータが正常であり、以前の制御状態に復帰させる場合でも以前の制御状態には復帰させない場合でも、割込が許可された後、速やかにスイッチの検出状態のチェックを開始することが可能となる。   In addition, after calculating the RAM parity and before determining whether or not the stored data is normal from the calculated RAM parity, it is stored in the RAM 507 as a common process regardless of whether or not the stored data in the RAM 507 is normal. Each switch input data, confirmation data, edge data, that is, data indicating the detection status of each switch is cleared, and the data in the RAM 507 is normal when the main control unit 41 is started. Whether returning to the control state or not returning to the previous control state, it is possible to immediately start checking the detection state of the switch after the interruption is permitted.

この変形例のスロットマシン1におけるメイン制御部41は、システムリセット時、すなわち電源投入などに伴いシステムリセット信号が入力されたときに、CPU505がROM506などに記憶されているセキュリティチェックプログラム506Aを読み出して実行することにより、セキュリティモードとなる。   In the slot machine 1 of this modification, the main control unit 41 reads the security check program 506A stored in the ROM 506 or the like when the system reset is performed, that is, when a system reset signal is input when the power is turned on. By executing, it becomes a security mode.

このときには、セキュリティチェックプログラム506Aに対応した処理としてセキュリティチェック処理が実行される。ここで、メイン制御部41がセキュリティモードとなるセキュリティ時間は、ROM506のプログラム管理エリアに記憶されているセキュリティ時間設定KSESのビット番号[2−0]やビット番号[4−3]に予め格納されたビット値に応じて、一定の固定時間とは異なる時間成分を含むことができる。   At this time, a security check process is executed as a process corresponding to the security check program 506A. Here, the security time when the main control unit 41 enters the security mode is stored in advance in the bit number [2-0] or the bit number [4-3] of the security time setting KSES stored in the program management area of the ROM 506. Depending on the bit value, a time component different from the fixed time can be included.

たとえば、セキュリティ時間設定KSESのビット番号[2−0]におけるビット値が“000”以外の値であれば、図10(D)に示す設定内容に対応して、固定時間に加えて予め選択可能な複数の延長時間のいずれかを、セキュリティ時間に含まれる時間成分として設定することができる。また、セキュリティ時間設定KSESのビット番号[4−3]におけるビット値が“00”以外の値であれば、図10(C)に示すショートモード又はロングモードに対応して、システムリセットや電源投入がなされるごとに所定の時間範囲で変化する可変設定時間を、セキュリティ時間に含まれる時間成分として設定することができる。   For example, if the bit value in the bit number [2-0] of the security time setting KSES is a value other than “000”, it can be selected in advance in addition to the fixed time corresponding to the setting content shown in FIG. Any one of a plurality of extended times can be set as a time component included in the security time. If the bit value in the bit number [4-3] of the security time setting KSES is a value other than “00”, the system reset or power-on is performed corresponding to the short mode or the long mode shown in FIG. A variable setting time that changes in a predetermined time range each time is performed can be set as a time component included in the security time.

こうして設定されたセキュリティ時間が経過するまでは、ROM506に記憶されているユーザプログラムの実行が開始されない。そして、乱数回路509による乱数値となる数値データの生成動作も、メイン制御部41がセキュリティモード中である期間では、開始されないようにすれば良い。これにより、電源投入等のシステムリセットによる動作開始タイミングから、乱数回路509の動作開始タイミングや更新される数値データなどを特定することが困難になり、プログラムの解析結果に基づく狙い撃ちや、いわゆる「ぶら下げ基板」を接続して所定タイミングで不正信号を入力することで、不正に特別役を当選させるなどの行為を、確実に防止することができる。   Until the security time set in this way elapses, the execution of the user program stored in the ROM 506 is not started. Then, the operation of generating numerical data to be a random number value by the random number circuit 509 should not be started during the period in which the main control unit 41 is in the security mode. As a result, it becomes difficult to specify the operation start timing of the random number circuit 509 or the numerical data to be updated from the operation start timing due to system reset such as power-on, and so on. By connecting the “board” and inputting an illegal signal at a predetermined timing, it is possible to reliably prevent acts such as illegally winning a special role.

一例として、スロットマシン1の機種毎に、セキュリティ時間設定KSESのビット番号[2−0]におけるビット値を異なる値に設定する。この場合には、セキュリティモードの延長時間を、スロットマシン1の機種毎に異ならせることができ、スロットマシン1の動作開始タイミングから乱数回路509の動作開始タイミングを特定することが困難になる。また、セキュリティ時間設定KSESのビット番号[4−3]におけるビット値を“01”又は“10”に設定することにより、可変設定時間を、システムリセット毎に異ならせることができる。これにより、スロットマシン1の動作開始タイミングから乱数回路509の動作開始タイミングを特定することは著しく困難になる。   As an example, the bit value in the bit number [2-0] of the security time setting KSES is set to a different value for each model of the slot machine 1. In this case, the extension time of the security mode can be made different for each model of the slot machine 1, and it becomes difficult to specify the operation start timing of the random number circuit 509 from the operation start timing of the slot machine 1. Further, by setting the bit value in the bit number [4-3] of the security time setting KSES to “01” or “10”, the variable setting time can be varied for each system reset. This makes it extremely difficult to specify the operation start timing of the random number circuit 509 from the operation start timing of the slot machine 1.

なお、図72では、Sm7’以降において、電圧が低下してCPU505が停止するか、ユーザリセット信号が入力されて再起動するか、の待機状態に移行する例について説明したが、たとえば、Sm7’以降において、図38と同様に電圧低下信号が入力されなくなったときに起動時処理に移行(すなわち瞬停復帰)するようにしてもよい。この場合においても、Sm7’以降において瞬停復帰するまでの間においてSm13およびSm14が実行される。これによっても、瞬停復帰して遊技制御の実行が開始されるときには、すでにステップSm14の処理において、乱数値レジスタから数値データが読出されて、各乱数ラッチフラグをオフ状態に設定することができる。これにより、電源遮断が発生したときの電源電圧が不安定な状態で誤って乱数値レジスタに格納された数値データが、乱数値として取得されてしまうことを防止できる。   In FIG. 72, an example has been described in which after Sm7 ′, the CPU 505 is stopped due to a voltage drop, or a user reset signal is input to restart the system. Thereafter, similarly to FIG. 38, when the voltage drop signal is not input, the process may be shifted to the startup process (that is, the instantaneous power failure recovery). Even in this case, Sm13 and Sm14 are executed after Sm7 'and before the instantaneous power failure recovery. In this way, when the instantaneous power failure is restored and the execution of the game control is started, numerical data is already read from the random value register in the process of step Sm14, and each random number latch flag can be set to the OFF state. Thereby, it is possible to prevent the numerical data stored in the random value register by mistake in a state where the power supply voltage is unstable when the power interruption occurs, from being acquired as a random value.

(8) 前述した実施の形態における図38のSm9〜Sm11の処理は、瞬停時に実行されるものであれば、Sm8においてNOと判定されたときに実行されるものに限らず、Sm2においてNOと判定されたときに実行するものであってもよい。   (8) If the process of Sm9-Sm11 of FIG. 38 in embodiment mentioned above is performed at the time of a momentary stop, it will not be performed when it determines with NO in Sm8, NO in Sm2. It may be executed when it is determined.

(9) 前述した実施の形態においては、図25においてSa206の処理を実行するとともに、図38においてSm9〜Sm12の処理を実行する例について説明した。しかし、これに限らず、図25においてSa206の処理を実行し、図38においてSm9〜Sm12の処理を実行しないように構成してもよく、図25においてSa206の処理を実行せずに、図38においてSm9〜Sm12の処理を実行するように構成してもよい。これによっても、前述したように電源電圧が不安定な状態で誤って乱数値レジスタに格納された数値データが、乱数値として取得されてしまうことを防止できる。   (9) In the above-described embodiment, the example in which the process of Sa206 is executed in FIG. 25 and the processes of Sm9 to Sm12 are executed in FIG. However, the present invention is not limited to this, and the processing of Sa206 in FIG. 25 may be executed and the processing of Sm9 to Sm12 in FIG. 38 may not be executed. In FIG. 25, the processing of Sa206 is not executed. In step S9, the processes of Sm9 to Sm12 may be executed. This also prevents the numerical data stored in the random value register by mistake with the power supply voltage being unstable as described above from being acquired as a random value.

(10) 前述した実施の形態においては、有利度を設定するための設定値が、入賞の発生を許容する旨が決定される確率(当選率)を特定する値である例について説明した。しかし、設定値は、遊技者にとっての有利度を異ならせるものであればよく、たとえば、当選状況に応じた情報が報知されるナビ演出を実行、あるいは当該ナビ演出を実行するアシストタイム(AT)に制御するスロットマシンにおいては、当該ナビ演出を実行する確率、あるいはATに制御する確率を特定する値であってもよい。また、特定の図柄組合せにより、再遊技役の当選確率が向上するリプレイタイム(RT)に制御するスロットマシンにおいては、当該RTに制御する確率を特定する値であってもよい。このように、設定値に応じて遊技者にとっての有利度が異なるものであれば、当選率が同じであってもよい。   (10) In the above-described embodiment, the example in which the setting value for setting the advantage is a value for specifying the probability (winning rate) that it is determined that the occurrence of a winning is permitted has been described. However, the set value may be any value that varies the degree of advantage for the player. For example, an assist time (AT) for executing a navigation effect in which information corresponding to the winning situation is notified or executing the navigation effect is provided. In the slot machine that is controlled to the above, a value that specifies the probability of executing the navigation effect or the probability of controlling to the AT may be used. Further, in a slot machine that is controlled to a replay time (RT) in which the winning probability of a re-gamer is improved by a specific symbol combination, a value that specifies the probability of controlling to the RT may be used. As described above, the winning rates may be the same as long as the player's advantage differs depending on the set value.

また、パチンコ機に適用した場合、有利度を設定するための設定値は、大当りに当選する確率を特定する値であってもよい。また、遊技者にとって有利度が異なる当りの種類が複数種類(大当り、中当り、小当り)設けられているパチンコ機においては、設定値が、当りの種類毎に当選する確率を特定する値であってもよく、いずれかの当りに当選する合計確率を特定する値であってもよい。また、大当りとなる確率が向上する確率変動状態に制御するパチンコ機においては、設定値が、確率変動状態に制御する確率を特定する値であってもよい。   Further, when applied to a pachinko machine, the setting value for setting the advantage may be a value that specifies the probability of winning a big hit. In addition, in pachinko machines with multiple types of hits with different degrees of advantage for players (big hits, medium hits, and small hits), the set value is a value that specifies the probability of winning for each hit type. It may be a value that specifies the total probability of winning for any one. In a pachinko machine that controls to a probability variation state in which the probability of winning a big hit is improved, the set value may be a value that specifies the probability of controlling to the probability variation state.

(11) 前述した実施の形態においては、電源投入時において、設定キースイッチ37がON状態であるか否かを判定し、ON状態であるときにドア開放検出スイッチ25に基づき、前面扉1bが開放状態であるか否かを判定し、閉鎖状態であれば設定変更状態に移行させることなく不能動化させる例について説明した。しかし、前面扉1bが開放状態であるか否かを判定するタイミングは、これにかぎらず、たとえば、電源投入された後、設定キースイッチ37がON状態であるか否かを判定するまでのタイミングであってもよい。具体的には、図23におけるSa11やSa31の処理が行なわれるまでに、前面扉1bが開放状態であるか否かを判定し、前面扉1bが開放状態であるときにはSa11やSa31の処理に移行可能とし、前面扉1bが閉鎖状態であるときにはSa11やSa31の処理に移行させないことにより設定変更状態に制御されないように構成してもよい。これによっても、不正行為によって設定変更操作が行なわれたときには設定変更状態に制御させないようにすることができる。   (11) In the above-described embodiment, when the power is turned on, it is determined whether or not the setting key switch 37 is in the ON state. When the setting key switch 37 is in the ON state, the front door 1b is based on the door opening detection switch 25. An example has been described in which it is determined whether or not it is in the open state, and if it is in the closed state, it is disabled without shifting to the setting change state. However, the timing for determining whether or not the front door 1b is in the open state is not limited to this. For example, the timing until it is determined whether or not the setting key switch 37 is in the ON state after the power is turned on. It may be. Specifically, it is determined whether or not the front door 1b is in an open state before the processing of Sa11 and Sa31 in FIG. 23 is performed, and when the front door 1b is in an open state, the process proceeds to Sa11 and Sa31. It may be possible to configure such that when the front door 1b is in the closed state, it is not controlled to the setting change state by not shifting to the processing of Sa11 or Sa31. This also prevents the setting change state from being controlled when a setting change operation is performed due to fraud.

(12) 前述した実施の形態においては、図30のBET処理において、設定キースイッチ37がON状態であることを条件として、設定確認処理が行なわれる例について説明した。これに関連して、図30のBET処理において、設定キースイッチ37がON状態であるときに、前面扉1bが開放状態であるか否かを判定して、前面扉1bが開放状態であるときには設定確認処理に移行可能とし、前面扉1bが閉鎖状態であるときには設定確認処理に移行させない(たとえば図30のSe19でNOと判定されたときと同じ)ように構成してもよい。さらに、前面扉1bが閉鎖状態であるときには、設定確認処理に移行させないことに加えて、不能動化するための処理(図23のSa27c、図69のSa27c’参照)を実行するようにしてもよい。これにより、不正行為によって設定キースイッチ37がON状態となり設定確認操作が行なわれたときには、設定確認処理に制御させず、設定確認できないようにすることができる。   (12) In the above-described embodiment, the example in which the setting confirmation process is performed on the condition that the setting key switch 37 is in the ON state in the BET process of FIG. 30 has been described. In relation to this, in the BET process of FIG. 30, when the setting key switch 37 is in the ON state, it is determined whether or not the front door 1b is in the open state, and when the front door 1b is in the open state. It may be configured to be able to shift to the setting check process and not to shift to the setting check process when the front door 1b is in a closed state (for example, the same as when NO is determined in Se19 in FIG. 30). Further, when the front door 1b is in the closed state, in addition to not shifting to the setting confirmation process, a process for disabling (see Sa27c in FIG. 23 and Sa27c ′ in FIG. 69) may be executed. Good. As a result, when the setting key switch 37 is turned on due to an unauthorized action and a setting confirmation operation is performed, the setting confirmation process is not controlled and the setting confirmation cannot be performed.

(13) なお、今回開示された実施の形態は全ての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなく特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内での全ての変更が含まれることが意図される。   (13) The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

1 スロットマシン、2L、2C、2R リール、6 MAXBETスイッチ、7 スタートスイッチ、8L、8C、8R ストップスイッチ、41 メイン制御部、91 サブ制御部、505 CPU、506 ROM、507 RAM、509 乱数回路、559A 乱数値レジスタ。   1 slot machine, 2L, 2C, 2R reel, 6 MAXBET switch, 7 start switch, 8L, 8C, 8R stop switch, 41 main control unit, 91 sub control unit, 505 CPU, 506 ROM, 507 RAM, 509 random number circuit, 559A Random value register.

(1) 遊技者に対する有利度(たとえば設定値)を変更可能な遊技機(スロットマシン、パチンコ機など)であって、
遊技機の前面に設けられた開閉可能な開閉体(前面扉1b、本体枠914)と、
前記開閉体が開放状態であるときに操作可能となる操作手段(電源スイッチ39、設定キースイッチ37)と、
前記開閉体の開閉状態を検出する開閉状態検出手段(ドア開放検出スイッチ25、本体枠開放検出スイッチ925)と、
複数種類の設定値のうちからいずれかの設定値を選択することで前記有利度を変更可能な設定変更状態に制御するために前記操作手段が特定操作されたことを検出する特定操作検出手段と、
前記設定値を確認する設定確認状態に制御するために操作手段が所定操作されたことを検出する所定操作検出手段と、
前記開閉状態検出手段により前記開閉体が開放状態であることが検出され、かつ前記特定操作検出手段により前記特定操作されたことが検出されたときには、前記設定変更状態に制御し(Sa28に移行)、前記開閉体が開放状態でないことが検出されたときには、前記設定変更状態に制御しない(Sa27cに移行)変更状態制御手段(Sa27b、Sa27c、Sa28、Sa29、図28など)と、
前記開閉状態検出手段により前記開閉体が開放状態であることが検出され、かつ前記所定操作検出手段により前記所定操作されたことが検出されたときには、前記設定確認状態に制御し、前記開閉体が開放状態でないことが検出されたときには、前記設定確認状態に制御しない確認状態制御手段と、
前記設定値を表示する設定値表示部とを備え、
前記設定値表示部は、前記開閉体が開放状態であるときに前記設定値が視認可能となる位置に設けられており、
前記変更状態制御手段は、前記設定変更状態に制御した後においては、当該設定変更状態における前記開閉状態検出手段の検出結果に関わらず、前記設定変更状態を終了させる設定終了条件が成立するまで当該設定変更状態を維持する。
(2) 前記開閉状態検出手段により前記開閉体が開放状態でないことが検出されたときに、遊技の進行を不能動化する不能動化手段とを備える。
(1) A gaming machine (slot machine, pachinko machine, etc.) capable of changing an advantage (for example, a set value) for a player,
An openable / closable body (front door 1b, body frame 914) provided on the front surface of the gaming machine ;
Operating means (power switch 39, setting key switch 37) that can be operated when the opening and closing body is in an open state;
Open / closed state detecting means for detecting the open / closed state of the open / close body (door open detection switch 25, body frame open detection switch 925);
A specific operation detecting means for detecting that the operating means has been specifically operated to control to a setting change state in which the advantage can be changed by selecting any one of a plurality of setting values; ,
A predetermined operation detecting means for detecting that the operating means has been operated in a predetermined manner to control the setting confirmation state for checking the set value;
When the open / close state detection means detects that the open / close body is in the open state and the specific operation detection means detects that the specific operation has been performed, the setting change state is controlled (in Sa28). Transition), when it is detected that the opening / closing body is not in an open state, the control is not changed to the setting change state (transition to Sa27c), and change state control means (Sa27b, Sa27c, Sa28, Sa29, FIG.
When the opening / closing state detecting means detects that the opening / closing body is in the open state and the predetermined operation detecting means detects that the opening / closing body has been operated, the setting confirmation state is controlled, and the opening / closing body is When it is detected that it is not in an open state, confirmation state control means that does not control to the setting confirmation state;
A set value display unit for displaying the set value,
The set value display section is provided at a position where the set value is visible when the opening / closing body is in an open state,
After the change state control means controls to the setting change state, the change state control means until the setting end condition for ending the setting change state is satisfied regardless of the detection result of the open / close state detection means in the setting change state. Maintain the setting change state.
(2) Disabling means for disabling the progress of the game when the opening / closing state detecting means detects that the opening / closing body is not in the open state.

このような構成によれば、開閉体の開閉状態を検出し、開閉体が開放状態でないことが検出されたときには、設定変更状態に制御されることがない。すなわち、本来であれば開閉体が開放状態でなければ、操作手段を操作できず特定操作が行われないところ、特定操作が検出されたときに開閉体が開放状態となっておらず不正行為が行なわれた可能性があるときには、設定変更状態に制御されることがない。これにより、不正行為によって設定変更状態に制御されて、設定変更が行なわれることを確実に防止することができる。 According to such a configuration, it detects the closed state of the open closed field, when the opening-and-closing member is detected to not be open, it is not to be controlled to the setting change condition. That is, if the closing member is opened would otherwise, when a particular operation can not operate the operation unit is not performed, fraud not a closing member is opened when a specific operation is detected When there is a possibility that it has been performed, the setting change state is not controlled. Accordingly, it is possible to reliably prevent the setting change by being controlled to the setting change state by an illegal act.

また、操作手段が特定操作されたときに開閉体の開放状態を検出するものであってもよく、開閉体が閉状態となっているときに操作手段が特定操作されたか否かを検出するものであってもよい。 Further , the open state of the opening / closing body may be detected when the operating means is specifically operated, and it is detected whether or not the operating means is specifically operated when the opening / closing body is in the closed state. It may be a thing.

) 前記不能動化手段により遊技の進行が不能動化されているときに、前記操作手段が解除操作されることにより、当該不能動化を解除する不能動化解除手段を備える(図69のSa27c’)。 ( 3 ) When the progress of the game is disabled by the disabling device, the disabling device cancels the disabling operation by releasing the operating device when the operating device is released (FIG. 69). Sa27c ′).

このような構成によれば、不正行為を行なった者にとっては容易に不能動化を解除することができないのに対し、開閉体を開放状態にして操作手段を解除操作することができる者(たとえば遊技場管理者)であれば、容易かつ速やかに不能動化を解除することができる。 According to such a configuration, the immobilization cannot be easily released for a person who has performed an illegal act, whereas the person who can release the operating means with the opening / closing body opened (for example, If it is a game hall manager), the immobilization can be canceled easily and quickly.

) 前記不能動化手段により遊技の進行が不能動化されているときに、前記設定変更状態に制御されることにより、当該不能動化を解除する不能動化解除手段を備える(図28のSc14、Sc15)。 ( 4 ) When the progress of the game is disabled by the disabling device, the disabling device is provided with a disabling device for canceling the disabling device by controlling the setting change state (FIG. 28). Sc14, Sc15).

このような構成によれば、不正行為を行なった者にとっては容易に不能動化を解除することができないのに対し、開閉体を開放状態にして操作手段を解除操作することができる者(たとえば遊技場管理者)であれば、容易かつ速やかに不能動化を解除することができる。 According to such a configuration, the immobilization cannot be easily released for a person who has performed an illegal act, whereas the person who can release the operating means with the opening / closing body opened (for example, If it is a game hall manager), the immobilization can be canceled easily and quickly.

) 前記不能動化手段は、遊技を進行させるための操作を検出するための遊技操作手段のうち特定の遊技操作手段を無効にすることにより、遊技の進行を不能動化する(図31のSe35b参照)。 ( 5 ) The disabling means disables the progress of the game by disabling a specific game operating means among the game operating means for detecting an operation for advancing the game (FIG. 31). Se35b).

) 前記不能動化手段により遊技の進行が不能動化されるときであっても、前記特定の遊技操作手段が操作されることにより遊技が進行するタイミングまでは、前記不能動化されないときと同じ遊技の進行制御を行なう(図31のSe35b参照)。 ( 6 ) Even when the progress of the game is disabled by the disabling means, the disabling is not performed until the timing at which the game progresses by operating the specific game operating means. The same game progress control is performed (see Se35b in FIG. 31).

) 前記操作手段と異なり、遊技者により操作可能な遊技操作手段(1枚BETスイッチ5、MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8R、精算スイッチ10)と、
前記変更状態制御手段を含む手段であって、前記遊技操作手段の操作に応じて遊技の進行制御を行なうとともに、該遊技の進行制御に基づく制御情報(コマンド)を送信する遊技制御手段(メイン制御部41)と、
前記遊技制御手段から受信した制御情報に基づいて演出の制御を行なう演出制御手段(サブ制御部91)と、を備え、
前記遊技制御手段は、
前記設定変更状態が開始したときに設定変更開始制御情報(設定開始コマンド)を前記演出制御手段に対して送信する設定変更開始制御情報送信手段と、
前記遊技操作手段のうちの特定の遊技操作手段(ストップスイッチ8L、8C、8R)が遊技の進行制御に関与する関与制御状態(リール回転処理)に制御する関与制御手段と、
前記関与制御状態以外の制御状態において、前記特定の遊技操作手段の操作状態を示す操作制御情報(操作検出コマンド)を前記演出制御手段に対して送信する操作制御情報送信手段と、
前記特定の遊技操作手段の操作に関与することなく、前記変更状態制御手段により制御される前記設定変更状態において有利度を変更するための変更制御を行なう有利度変更制御手段(設定変更処理など)と、を含み、
前記操作制御情報送信手段は、前記設定変更状態においても前記操作制御情報を前記演出制御手段に対して送信し、
前記演出制御手段は、
前記遊技制御手段から受信した前記操作制御情報(設定開始コマンド)に基づいて操作演出を実行する操作演出実行手段と、
前記設定変更開始制御情報を受信したことに基づいて、前記演出制御手段が管理する管理情報にアクセス可能な管理者用状態(管理者モード)に制御する管理者用状態制御手段と、
前記管理者用状態において前記遊技制御手段から受信した前記操作制御情報に基づいて管理者用制御(管理情報の閲覧、管理情報の変更)を行う管理者用制御手段と、を含む。
( 7 ) Unlike the operation means, game operation means that can be operated by the player (one-sheet BET switch 5, MAXBET switch 6, start switch 7, stop switches 8L, 8C, 8R, checkout switch 10),
And means including the modified state control means performs a progress control of the game according to the operation of the game operation unit, the game control unit (main control for transmitting control information based on the progress control of the recreation (command) Part 41),
Effect control means (sub control unit 91) for controlling the effect based on the control information received from the game control means,
The game control means includes
Setting change start control information transmitting means for transmitting setting change start control information (setting start command) to the effect control means when the setting change state starts;
Participation control means for controlling a particular game operation means (stop switches 8L, 8C, 8R) of the game operation means to a participation control state (reel rotation processing) related to the progress control of the game;
Operation control information transmitting means for transmitting operation control information (operation detection command) indicating an operation state of the specific game operation means to the effect control means in a control state other than the participation control state;
Advantage change control means (such as setting change processing) for performing change control for changing the advantage in the setting change state controlled by the change state control means without being involved in the operation of the specific game operation means. And including
The operation control information transmitting means transmits the operation control information to the effect control means even in the setting change state,
The production control means includes
An operation effect executing means for executing an operation effect based on the operation control information (setting start command) received from the game control means;
On the basis of receiving the setting change start control information, an administrator state control means for controlling to an administrator state (administrator mode) accessible to management information managed by the effect control means;
Control means for managers that performs control for managers (browsing management information, changing management information) based on the operation control information received from the game control means in the manager state.

また、管理情報とは、遊技機が設置される遊技場の係員など遊技機の管理者のみがアクセス可能な情報であり、たとえば、管理者のみが閲覧可能なドア開放履歴などのセキュリティ情報や、履歴情報や遊技説明などの情報などを遊技者が閲覧可能とするか否かの設定情報などが該当する。 In addition, the management information, only an administrator, such as a game machine attendant of the game arcade that the gaming machine is installed is accessible information, for example, security information, such as possible door opening history viewing only by an administrator In addition, setting information indicating whether or not the player can view information such as history information and game description is applicable.

) 表示状態を変化させることが可能な可変表示装置(リール2L、2C、2R)と、
前記可変表示装置の表示結果として特定表示結果(ボーナス)が導出されたことに基づいて、遊技者にとって有利な状態(ボーナス)に制御する有利制御手段と、
数値データを更新する数値更新手段(乱数列変更回路555)と、
前記可変表示装置において表示状態を変化させた後に表示結果を導出させる可変表示を行なうための可変表示条件が成立したとき(スタートスイッチ7が操作されてとき、有効な始動入賞が発生したとき)に、前記数値更新手段によって更新された数値データを乱数値として抽出し、第1の数値データ格納領域(乱数値レジスタR1D)に格納する乱数抽出手段(乱数ラッチセレクタ558A)と、
前記第1の数値データ格納領域に前記乱数抽出手段により数値データが格納された後、該格納されている数値データが読み出されるまでは、前記乱数抽出手段により新たな数値データが格納されることがなく、該第1の数値データ格納領域に格納されている数値データを保持する数値データ保持手段(新たな数値データのラッチの禁止)と、
一定時間(約2.24ms)毎に、前記第1の数値データ格納領域に数値データが格納されているか否か(乱数ラッチフラグが設定されているか否か)を判定する数値データ格納判定手段と、
前記数値データ格納判定手段が前記第1の数値データ格納領域に数値データが格納されている(乱数ラッチフラグが設定されている)と判定したときに、前記第1の数値データ格納領域に格納されている数値データを読み出すことにより、前記数値データ保持手段による数値データの保持を解除するとともに、該読み出した数値データを前記第1の数値データ格納領域とは異なる第2の数値データ格納領域(乱数値格納ワーク)に格納する数値データ読出手段と、
前記可変表示装置において表示状態の変化を開始させるときに、選択されている設定値から特定される確率にしたがって、前記第2の数値データ格納領域に格納された数値データを用いて前記特定表示結果の導出を許容するか否かを決定する事前決定手段(内部抽選)と、を備える。
( 8 ) a variable display device (reels 2L, 2C, 2R) capable of changing the display state;
Advantageous control means for controlling to a state (bonus) advantageous to the player based on the specific display result (bonus) derived as the display result of the variable display device;
Numerical value updating means (random number sequence changing circuit 555) for updating numerical data;
When a variable display condition for performing variable display for deriving a display result after changing the display state in the variable display device is satisfied (when the start switch 7 is operated and a valid start prize is generated). Random number extraction means (random number latch selector 558A) for extracting the numerical data updated by the numerical value updating means as a random number value and storing it in a first numerical data storage area (random number value register R1D);
After the numerical data is stored in the first numerical data storage area by the random number extraction unit, new numerical data is stored by the random number extraction unit until the stored numerical data is read. And numerical data holding means for holding numerical data stored in the first numerical data storage area (prohibition of latching of new numerical data),
Numerical data storage determining means for determining whether or not numerical data is stored in the first numerical data storage area (whether or not a random number latch flag is set) at regular time intervals (approximately 2.24 ms);
When the numerical data storage determination means determines that numerical data is stored in the first numerical data storage area (a random number latch flag is set), the numerical data storage determination means stores the numerical data in the first numerical data storage area. The numeric data holding means cancels the holding of the numeric data by the numeric data holding means, and the read numeric data is stored in a second numeric data storage area (random number value) different from the first numeric data storage area. Numerical data reading means stored in the storage work),
The specified display result using the numerical data stored in the second numerical data storage area according to the probability specified from the selected setting value when starting the change of the display state in the variable display device Predetermining means (internal lottery) for determining whether or not to permit the derivation of.

) 表示状態を変化させることが可能な可変表示装置(リール2L、2C、2R)と、
前記可変表示装置の表示結果として特定表示結果(ボーナス)が導出されたことに基づいて、遊技者にとって有利な状態(ボーナス)に制御する有利制御手段と、
数値データを更新する数値更新手段(乱数列変更回路555)と、
前記可変表示装置において表示状態を変化させた後に表示結果を導出させる可変表示を行なうための可変表示条件が成立したとき(スタートスイッチ7が操作されてとき、有効な始動入賞が発生したとき)に、前記数値更新手段によって更新された数値データを乱数値として抽出し、第1の数値データ格納領域(乱数値レジスタR1D)に格納する乱数抽出手段(乱数ラッチセレクタ558A)と、
前記第1の数値データ格納領域に前記乱数抽出手段により数値データが格納された後、該格納されている数値データが読み出されるまでは、前記乱数抽出手段により新たな数値データが格納されることがなく、該第1の数値データ格納領域に格納されている数値データを保持する数値データ保持手段(新たな数値データのラッチの禁止)と、
前記第1の数値データ格納領域に数値データが格納されたときに割込(乱数ラッチ割込)を発生させる割込発生手段と、
前記割込発生手段が前記割込を発生させたことに応じて、前記第1の数値データ格納領域に格納されている数値データを読み出すことにより、前記数値データ保持手段による数値データの保持を解除するとともに、該読み出した数値データを前記第1の数値データ格納領域とは異なる第2の数値データ格納領域(乱数値格納ワーク)に格納する数値データ読出手段と、
前記可変表示装置において表示状態の変化を開始させるときに、選択されている設定値から特定される確率にしたがって、前記第2の数値データ格納領域に格納された数値データを用いて前記特定表示結果の導出を許容するか否かを決定する事前決定手段(内部抽選)と、を備える。
( 9 ) a variable display device (reels 2L, 2C, 2R) capable of changing a display state;
Advantageous control means for controlling to a state (bonus) advantageous to the player based on the specific display result (bonus) derived as the display result of the variable display device;
Numerical value updating means (random number sequence changing circuit 555) for updating numerical data;
When a variable display condition for performing variable display for deriving a display result after changing the display state in the variable display device is satisfied (when the start switch 7 is operated and a valid start prize is generated). Random number extraction means (random number latch selector 558A) for extracting the numerical data updated by the numerical value updating means as a random number value and storing it in a first numerical data storage area (random number value register R1D);
After the numerical data is stored in the first numerical data storage area by the random number extraction unit, new numerical data is stored by the random number extraction unit until the stored numerical data is read. And numerical data holding means for holding numerical data stored in the first numerical data storage area (prohibition of latching of new numerical data),
Interrupt generating means for generating an interrupt (random number latch interrupt) when numerical data is stored in the first numerical data storage area;
In response to the occurrence of the interrupt by the interrupt generation means, reading of the numerical data stored in the first numerical data storage area releases the numerical data holding by the numerical data holding means. And numerical data reading means for storing the read numerical data in a second numerical data storage area (random value storage work) different from the first numerical data storage area;
The specified display result using the numerical data stored in the second numerical data storage area according to the probability specified from the selected setting value when starting the change of the display state in the variable display device Predetermining means (internal lottery) for determining whether or not to permit the derivation of.

10) 遊技の進行制御が開始されるとき(電源投入時、電圧低下時など)に、前記数値データ保持手段による数値データの保持を解除する保持解除手段(Sa206、Sm9〜Sm12)を備える。 ( 10 ) It is provided with holding release means (Sa206, Sm9 to Sm12) for releasing the holding of numerical data by the numerical data holding means when the progress control of the game is started (when the power is turned on, when the voltage drops, etc.).

11) 遊技機への電力供給に基づいて生成された所定電源電圧を監視し、該所定電源電圧が低下したことに基づいて検出信号を出力する電源監視手段と、
前記電源監視手段から前記検出信号が出力されてから一定時間経過したときに起動命令(ユーザリセット)を行なう起動命令手段とを備え、
前記保持解除手段は、前記電源監視手段から前記検出信号が出力された後、電力供給が停止するのを待機している期間において、前記数値データ保持手段による数値データの保持を解除する(図72、変形例(7)参照)。
( 11 ) Power supply monitoring means for monitoring a predetermined power supply voltage generated based on power supply to the gaming machine and outputting a detection signal based on the decrease of the predetermined power supply voltage;
A start command means for performing a start command (user reset) when a predetermined time has elapsed since the detection signal was output from the power monitoring means;
The holding release unit releases holding of numerical data by the numerical data holding unit in a period of waiting for power supply to stop after the detection signal is output from the power supply monitoring unit (FIG. 72). (Refer to Modification (7)).

Claims (1)

遊技者に対する有利度を変更可能な遊技機であって、
開閉可能に設けられた開閉体と、
前記開閉体が開放状態であるときに操作可能となる操作手段と、
前記開閉体の開閉状態を検出する開閉状態検出手段と、
前記操作手段の操作状態が特定操作状態となったときの前記開閉体の開閉状態を、前記開閉状態検出手段の検出結果に基づいて判定する特定時判定手段と、
前記特定時判定手段により前記開閉体が開放状態であると判定されたときに、複数種類の設定値のうちからいずれかの設定値を選択することで前記有利度を変更可能な設定変更状態に制御し、前記開閉体が開放状態でないと判定されたときには、前記設定変更状態に制御しない状態制御手段と、
前記特定時判定手段により前記開閉体が開放状態でないと判定されたときに、遊技の進行を不能動化する不能動化手段とを備えることを特徴とする、遊技機。
A gaming machine capable of changing the advantage to a player,
An opening and closing body provided to be openable and closable;
Operation means that can be operated when the opening and closing body is in an open state;
An open / close state detecting means for detecting an open / close state of the open / close body;
A specific time determination unit that determines an open / closed state of the opening / closing body when the operation state of the operation unit becomes a specific operation state based on a detection result of the open / closed state detection unit;
When the open / close body is determined to be in the open state by the specific time determination means, a setting change state in which the advantage can be changed by selecting any one of a plurality of setting values. And when it is determined that the opening / closing body is not in an open state, state control means for not controlling the setting change state;
A gaming machine, comprising: a disabling device that disables the progress of a game when the open / closed body is determined not to be in an open state by the specific time determining device.
JP2014169737A 2014-08-22 2014-08-22 Game machine Expired - Fee Related JP5940610B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014169737A JP5940610B2 (en) 2014-08-22 2014-08-22 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014169737A JP5940610B2 (en) 2014-08-22 2014-08-22 Game machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2010048430A Division JP5618051B2 (en) 2010-03-04 2010-03-04 Game machine

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2016048596A Division JP6026030B2 (en) 2016-03-11 2016-03-11 Game machine

Publications (2)

Publication Number Publication Date
JP2014230998A true JP2014230998A (en) 2014-12-11
JP5940610B2 JP5940610B2 (en) 2016-06-29

Family

ID=52124738

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014169737A Expired - Fee Related JP5940610B2 (en) 2014-08-22 2014-08-22 Game machine

Country Status (1)

Country Link
JP (1) JP5940610B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013042870A (en) * 2011-08-23 2013-03-04 Sankyo Co Ltd Game machine
JP2015024201A (en) * 2014-10-23 2015-02-05 株式会社三共 Game machine
JP2016105859A (en) * 2016-03-11 2016-06-16 株式会社三共 Game machine

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005118417A (en) * 2003-10-20 2005-05-12 Daiman:Kk Game machine
JP2005137817A (en) * 2003-11-10 2005-06-02 Olympia:Kk Game machine
JP2006247129A (en) * 2005-03-10 2006-09-21 Olympia:Kk Game machine
JP2008132246A (en) * 2006-11-29 2008-06-12 Yamasa Kk Slot machine
JP2008154636A (en) * 2006-12-20 2008-07-10 Daito Hanbai Kk Game parlor management device
JP2008253796A (en) * 2008-06-12 2008-10-23 Daito Giken:Kk Game stand
JP2009061137A (en) * 2007-09-07 2009-03-26 Sanyo Product Co Ltd Game machine
JP5618051B2 (en) * 2010-03-04 2014-11-05 株式会社三共 Game machine

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005118417A (en) * 2003-10-20 2005-05-12 Daiman:Kk Game machine
JP2005137817A (en) * 2003-11-10 2005-06-02 Olympia:Kk Game machine
JP2006247129A (en) * 2005-03-10 2006-09-21 Olympia:Kk Game machine
JP2008132246A (en) * 2006-11-29 2008-06-12 Yamasa Kk Slot machine
JP2008154636A (en) * 2006-12-20 2008-07-10 Daito Hanbai Kk Game parlor management device
JP2009061137A (en) * 2007-09-07 2009-03-26 Sanyo Product Co Ltd Game machine
JP2008253796A (en) * 2008-06-12 2008-10-23 Daito Giken:Kk Game stand
JP5618051B2 (en) * 2010-03-04 2014-11-05 株式会社三共 Game machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013042870A (en) * 2011-08-23 2013-03-04 Sankyo Co Ltd Game machine
JP2015024201A (en) * 2014-10-23 2015-02-05 株式会社三共 Game machine
JP2016105859A (en) * 2016-03-11 2016-06-16 株式会社三共 Game machine

Also Published As

Publication number Publication date
JP5940610B2 (en) 2016-06-29

Similar Documents

Publication Publication Date Title
JP5618050B2 (en) Game machine
JP5618051B2 (en) Game machine
JP5706624B2 (en) Game machine
JP6129112B2 (en) Game machine
JP2011188944A (en) Game machine
JP6023747B2 (en) Game machine
JP6023746B2 (en) Game machine
JP2016137351A (en) Game machine
JP5937640B2 (en) Game machine
JP6129113B2 (en) Game machine
JP6023748B2 (en) Game machine
JP5940610B2 (en) Game machine
JP5940609B2 (en) Game machine
JP5543248B2 (en) Slot machine
JP5706627B2 (en) Slot machine
JP6026030B2 (en) Game machine
JP6026029B2 (en) Game machine
JP5543243B2 (en) Game machine
JP5543244B2 (en) Game machine
JP5543249B2 (en) Game machine
JP5706628B2 (en) Game machine
JP5947945B2 (en) Game machine
JP6170872B2 (en) Game machine
JP5543246B2 (en) Slot machine
JP5543245B2 (en) Game machine

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141023

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A132

Effective date: 20150901

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150929

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20151215

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160311

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20160318

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160510

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160518

R150 Certificate of patent or registration of utility model

Ref document number: 5940610

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R157 Certificate of patent or utility model (correction)

Free format text: JAPANESE INTERMEDIATE CODE: R157

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees