JP6518737B2 - Gaming machine - Google Patents

Gaming machine Download PDF

Info

Publication number
JP6518737B2
JP6518737B2 JP2017168758A JP2017168758A JP6518737B2 JP 6518737 B2 JP6518737 B2 JP 6518737B2 JP 2017168758 A JP2017168758 A JP 2017168758A JP 2017168758 A JP2017168758 A JP 2017168758A JP 6518737 B2 JP6518737 B2 JP 6518737B2
Authority
JP
Japan
Prior art keywords
area
control
main cpu
medal
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017168758A
Other languages
Japanese (ja)
Other versions
JP2017205644A5 (en
JP2017205644A (en
Inventor
直幸 渡辺
直幸 渡辺
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.)
Kyoraku Industrial Co Ltd
Original Assignee
Kyoraku Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyoraku Industrial Co Ltd filed Critical Kyoraku Industrial Co Ltd
Priority to JP2017168758A priority Critical patent/JP6518737B2/en
Publication of JP2017205644A publication Critical patent/JP2017205644A/en
Publication of JP2017205644A5 publication Critical patent/JP2017205644A5/ja
Application granted granted Critical
Publication of JP6518737B2 publication Critical patent/JP6518737B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Slot Machines And Peripheral Devices (AREA)

Description

本発明は、遊技機に関する。   The present invention relates to a gaming machine.

従来、複数の図柄が周面に描かれた複数のリールと、当該複数のリールの周面に描かれた図柄の一部を表示する表示窓とを備え、遊技者によるメダル等の遊技媒体の投入操作とスタートレバーに対する開始操作とに基づいて全リールを回転させ、遊技者による停止ボタンの操作に基づいて各リールを停止させることにより表示窓に図柄を停止表示する遊技機(いわゆる「パチスロ」)が知られている。このような遊技機は、表示窓に表示される図柄のうち、予め定められたライン(以下、「有効ライン」という)上に予め定められた図柄の組み合わせが停止表示された場合に、遊技者に対して特典(例えば、メダル)を付与する。   Conventionally, a plurality of reels with a plurality of symbols drawn on the circumferential surface and a display window for displaying a part of the symbols drawn on the circumferential surfaces of the plurality of reels A gaming machine (so-called "pachislot") which displays symbols on a display window by stopping all reels by rotating all the reels based on the insertion operation and the start operation to the start lever and stopping each reel based on the player's operation of the stop button. )It has been known. In such a gaming machine, the player is stopped when a combination of predetermined symbols is displayed on a predetermined line (hereinafter referred to as an "effective line") among symbols displayed in the display window. Grant a bonus (for example, a medal) to

また、このような遊技機は、遊技者によるスタートレバーの操作を検出し、スタートレバーの操作を検出したことに基づいて所定の乱数値を抽出し、当該抽出した乱数値と、当選役毎に抽選値が規定された当選役決定テーブルとに基づいて当選役を決定し、当該決定された当選役と、遊技者による停止ボタンの操作とに基づいてリールの停止制御を行う。ここで、決定された当選役によっては、予め定められた図柄の組み合わせのうち、複数の図柄の組み合わせが有効ライン上に表示されることが許容される場合がある。   Further, such a gaming machine detects the operation of the start lever by the player, extracts a predetermined random number value based on the detection of the operation of the start lever, and extracts the extracted random number and the winning combination. The winning combination is determined based on the winning combination determination table in which the lottery value is defined, and the reel stop control is performed based on the determined winning combination and the operation of the stop button by the player. Here, depending on the determined winning combination, it may be permitted that the combination of a plurality of symbols is displayed on the effective line among the combinations of predetermined symbols.

このとき、当選役として「ハズレ」が決定された場合には、何れのタイミングで停止ボタンの操作が行われたとしても特典を受けることができる図柄の組み合わせが表示されることはない。また、適切なタイミングで停止ボタンの操作が行われなければ当選役に係る図柄の組み合わせが有効ライン上に停止表示されない当選役や、何れのタイミングで停止ボタンの操作が行われても当選役に係る図柄の組み合わせが有効ライン上に停止表示される当選役がある。   At this time, when "losing" is determined as the winning combination, a combination of symbols which can receive a benefit is not displayed even if the operation of the stop button is performed at any timing. In addition, if the stop button is not operated at an appropriate timing, the combination of symbols relating to the winning combination is not displayed on the active line as a stopped combination, or the winning combination is made no matter at which timing the stop button is operated. There is a winning combination in which the combination of such symbols is stopped and displayed on the effective line.

すなわち、適切なタイミングで停止ボタンの操作が行われなければ当選役に係る図柄の組み合わせが有効ライン上に停止表示されない当選役が当選役として決定された場合には、適切なタイミングで停止操作を行う必要があることから、遊技者には停止ボタンの操作に関する一定の技量等が要求される。   That is, if it is determined that the winning combination in which the combination of symbols relating to the winning combination is not stopped and displayed on the activated line is determined to be the winning combination unless the stop button is operated at the appropriate timing, the stop operation is performed at the appropriate timing. Since it is necessary to do so, the player is required to have a certain skill and the like regarding the operation of the stop button.

また、このような遊技機にあっては、遊技者にとって不利な通常状態において、所定の条件が充足された場合には、通常状態と比較して遊技者にとって有利な状態(以下、「特定状態」という)に移行する制御が行われる。ここで、「特定状態」とは、メダルの払出が行われる図柄の組み合わせ(以下、「入賞に係る図柄の組み合わせ」という)が有効ライン上に表示される確率が通常状態よりも向上するボーナスゲーム(「RB(レギュラーボーナス)」,「BB(ビッグボーナス)」,「CB(チャレンジボーナス)」,「MB(ミドルボーナス)」等)や、適切な操作順序で停止ボタンを操作しなければ入賞に係る図柄の組み合わせが表示されない(または適切な操作順序で停止ボタンを操作しなければ、メダルの払出枚数が少ない方の入賞に係る図柄の組み合わせが表示される)特定の当選役が決定された場合に、適切な停止ボタンの操作順序等が報知される「AT(アシストタイム)」、メダルの投入操作を行うことなくスタートレバーを操作することにより遊技が開始される再遊技が当選役として決定される確率を向上させる「RT(リプレイタイム)」、ATとRTが同時に作動する「ART(アシストリプレイタイム)等がある。従って、遊技者は、遊技者にとって有利な特定状態への移行を望みながら遊技を行うこととなる。   Further, in such a gaming machine, in a normal state which is disadvantageous to the player, when a predetermined condition is satisfied, a state advantageous to the player as compared with the normal state (hereinafter referred to as “specific state Control to shift to) is performed. Here, the “specific state” is a bonus game in which the probability that the combination of symbols on which medals are paid out (hereinafter referred to as “combination of symbols relating to winnings”) is displayed on the activated line is improved compared to the normal state. If you do not operate the stop button in the appropriate operation sequence (such as "RB (regular bonus)", "BB (big bonus)", "CB (challenge bonus)", "MB (middle bonus)", etc.) When a specific winning combination is decided that the combination of the symbols concerned is not displayed (or the combination of symbols pertaining to the winning with the smaller number of medals paid out is displayed if the stop button is not operated in an appropriate operation order) In addition, "AT (assist time)" in which the operation sequence of the appropriate stop button etc. is notified, and operating the start lever without performing the medal insertion operation There are "RT (Replay Time)" which improves the probability that the re-game from which a game is started is decided as a winning combination, "ART (Assist Replay Time) etc. at which AT and RT operate simultaneously". The game is played while wishing to shift to a specific state advantageous to the player.

また、このような従来の遊技機においては、演出の多様化や、様々な不正対策が行われるようになっている。例えば、従来の遊技機においては、所定の要件を満たした場合に、停止操作の検出を一時無効とし、所定のリール回転動作を行う、いわゆるフリーズ演出を実行させるものがある。さらに、このような従来の遊技機においては、実施時間の異なるフリーズ演出を行うようにしたものもある(特許文献1参照)。   In addition, in such conventional gaming machines, diversification of effects and various measures against fraud have been implemented. For example, in a conventional gaming machine, there is a game machine in which detection of a stop operation is temporarily invalidated and predetermined reel rotation operation is performed, that is, so-called freeze effect is performed when predetermined requirements are satisfied. Furthermore, in such conventional gaming machines, there are also machines in which freeze effects having different execution times are performed (see Patent Document 1).

また、近年の不正行為の巧妙多様化に対処するため、不正を防止するための多様なプログラムを搭載した遊技機が提案されている。例えば、従来の遊技機では、内部装置の作動状況や設置状態を所定のセンサにより監視して、異常が検知された場合には、液晶表示装置等による画像表示や、スピーカ等による音声出力による警告音によって報知している。このような従来の遊技機においては、上記異常が遊技の進行の妨げになるような場合や、不正行為が行われている疑いのある場合には、遊技を進行させるための操作手段を操作不能にして、遊技を実行不能にさせる処理を行うようなものも知られている。そして、上記異常に基づく遊技停止状態や異常の報知は、リセットスイッチの操作など、所定の解除操作によって解除されるようになっている(例えば、特許文献2)。   Also, in order to cope with the clever diversification of fraudulent activity in recent years, gaming machines equipped with various programs for preventing fraud have been proposed. For example, in a conventional gaming machine, the operation state and installation state of an internal device are monitored by a predetermined sensor, and when an abnormality is detected, a warning by image display by a liquid crystal display device or the like and sound output by a speaker or the like It is informing by sound. In such a conventional gaming machine, the operating means for proceeding with the game can not be operated if the above abnormality interferes with the progress of the game, or if there is a suspicion that cheating is being conducted. It is also known to perform processing to make a game inoperable. And the notification of the game stop state and abnormality based on the above-mentioned abnormality is canceled by predetermined cancellation operation, such as operation of a reset switch (for example, patent document 2).

特開2009−201820号公報JP, 2009-021820, A 特開平11−090017号公報Japanese Patent Application Laid-Open No. 11-090017

しかしながら、従来の遊技機においては、演出の多様化や、近年の不正行為の巧妙多様化に対処するため、様々な演出や不正を防止するため、多種多様なプログラムを搭載しなければならず、所定の記憶領域に収まりきらなくなっている。また、特定の領域に特定のプログラムが集中して記憶されると、不正にアクセスされた場合にまとまって情報を盗まれてしまうという問題もある。   However, in the conventional gaming machine, in order to cope with the diversification of production and the clever diversification of fraudulent activity in recent years, in order to prevent various performance and fraud, various programs must be installed. It can not fit in a predetermined storage area. In addition, there is also a problem that if a specific program is concentrated and stored in a specific area, information may be stolen together if it is accessed illegally.

さらに、遊技機においては、所定の法規則により、遊技機を動作させるための予め決められた範囲内の制御を行う制御情報および該範囲内のデータ情報を記憶させる記憶領域の記憶容量が制限されている。   Furthermore, in the gaming machine, according to predetermined legal rules, the control information for performing control within a predetermined range for operating the gaming machine and the storage capacity of the storage area for storing data information within the range are limited. ing.

本発明は、このような実情に鑑み、制限された記憶領域の容量の圧迫を抑え、新たな制御の追加を可能とすることができる遊技機を提供することを課題とする。   In view of such circumstances, the present invention has an object to provide a gaming machine capable of suppressing the compression of the capacity of a limited storage area and enabling the addition of new control.

このような課題を解決するために、本発明に係る遊技機は、第1制御を行うための第1制御プログラムを記憶する第1制御領域と、前記第1制御領域とは異なる領域であって、第2制御を行うための第2制御プログラムを記憶する第2制御領域と、前記第1制御において更新および参照され、前記第2制御においては更新されない可変データを記憶する第1RWM領域と、前記第1RWM領域とは異なる領域であって、前記第2制御において更新および参照され、前記第1制御においては更新されない可変データを記憶する第2RWM領域と、前記第1制御および前記第2制御において演算処理を行う際にデータを記憶するレジスタと、前記レジスタの値を一時退避し、記憶する退避用記憶領域と、前記第1制御領域、前記第2制御領域、前記第1RWM領域および前記第2RWM領域を有する制御装置が、該制御装置の外部の装置にデータの出力を行うものであって、前記第1制御において更新され、前記第2制御においては更新されない第1出力ポートと、前記制御装置が、該制御装置の外部の装置にデータの出力を行うものであって、前記第2制御において更新され、前記第1制御においては更新されない第2出力ポートと、記第1制御領域および前記第2制御領域を有する単一の制御領域記憶手段と、前記第1RWM領域および前記第2RWM領域を有する単一のRWM領域記憶手段と、前面扉が開放しているか否かを検出する扉開閉検出手段と、を備え、
前記第1制御領域は、前記扉開閉検出手段により前記前面扉が開放していると検出された場合に扉開放時の処理を行う扉開放時処理、および遊技媒体が投入されたか否かを判定する処理を構成する前記第1制御プログラムを記憶し、前記第2制御領域は、前記遊技媒体の不正通過を判定する処理の少なくとも一部を構成し、前記第1制御プログラムに呼び出されることにより実行され、終了後に前記第1制御プログラムに復帰させる前記第2制御プログラムを記憶し、前記第1制御領域または前記第2制御領域は、前記第1制御プログラムにより前記第2制御プログラムが呼び出されることに応じて、前記第1制御における演算処理によるデータが格納された前記レジスタの値を前記退避用記憶領域に退避させ前記第1制御プログラムまたは前記第2制御プログラムを記憶し、前記第2制御領域に記憶された第2制御プログラムは、前記第1制御領域に記憶された第1制御プログラムにて更新されたデータに基づいて、前記第2出力ポートを更新することを特徴とする。
In order to solve such problems, in the gaming machine according to the present invention, a first control area for storing a first control program for performing a first control and an area different from the first control area are provided. A second control area for storing a second control program for performing a second control, a first RWM area for storing variable data which is updated and referred to in the first control and is not updated in the second control, and A second RWM area storing variable data different from the first RWM area and updated and referred to in the second control and not updated in the first control, and an operation in the first control and the second control A register for storing data when performing processing, a save storage area for temporarily saving and storing the value of the register, the first control area, the second control area, A control apparatus having a first RWM area and the second RWM area outputs data to an apparatus external to the control apparatus, and is updated in the first control and not updated in the second control. an output port, wherein the controller, there is performed the output of data to an external device of the control device is updated in the second control, and a second output port that is not updated in the first control, before A single control area storage means having the first control area and the second control area, a single RWM area storage means having the first RWM area and the second RWM area, and whether the front door is open or not Door opening / closing detection means for detecting
In the first control area, when the door open / close detection means detects that the front door is open, door open processing is performed when door is open, and it is determined whether or not a game medium is inserted. Storing the first control program constituting the processing to be performed, the second control area constituting at least a part of the processing for determining the illegal passage of the game medium, and executing by being called by the first control program To store the second control program to be restored to the first control program after completion, the first control area or the second control area being called by the first control program. in response, the said value of the register where data is stored by the processing Ru is retracted to the retracted storage region in the first control first control program also The second stores a control program, a second control program stored in the second control region, based on the updated data in the first control program stored in the first control region, said second It is characterized by updating an output port .

本発明によれば、所定の制御情報が記憶される記憶領域の容量の圧迫を抑え、新たな制御の追加を行うことができる遊技機を提供することができる。   According to the present invention, it is possible to provide a gaming machine capable of suppressing the compression of the capacity of the storage area in which predetermined control information is stored, and of adding new control.

遊技機の外観斜視図の一例を示す図である。It is a figure which shows an example of the external appearance perspective view of a game machine. キャビネットの内部構造と前面扉の裏面の一例を示す図である。It is a figure which shows an example of the internal structure of a cabinet, and the back of a front door. 遊技機全体のブロック図の一例を示す図である。It is a figure showing an example of the block diagram of the whole game machine. 配列データテーブルの一例を示す図である。It is a figure which shows an example of a sequence data table. 図柄組み合わせテーブルの一例を示す図である。It is a figure which shows an example of a symbol combination table. 通常遊技状態用当選役決定テーブルの一例を示す図である。It is a figure which shows an example of the winning combination determination table for normal game states. RT遊技状態用当選役決定テーブルの一例を示す図である。It is a figure which shows an example of the winning combination determination table for RT gaming state. RB遊技状態用当選役決定テーブルの一例を示す図である。It is a figure which shows an example of the winning combination determination table of RB game state. 遊技状態移行図の一例を示す図である。It is a figure showing an example of a game state shift figure. 演出決定テーブルの一例を示す図である。It is a figure which shows an example of a presentation determination table. メイン制御基板におけるプログラム開始処理の一例を示す図である。It is a figure which shows an example of the program start process in the main control board. メイン制御基板におけるメインループ処理の一例を示す図である。It is a figure which shows an example of the main loop process in a main control board. メイン制御基板におけるメダル管理処理の一例を示す図である。It is a figure which shows an example of the medal management process in the main control board. メイン制御基板における第1メダル投入チェック処理の一例を示す図である。It is a figure showing an example of the 1st medal input check processing in the main control board. メイン制御基板における第2メダル投入チェック処理の一例を示す図である。It is a figure which shows an example of the 2nd medal input check process in a main control board. メイン制御基板におけるメダル通過監視処理の一例を示す図である。It is a figure which shows an example of the medal passage monitoring process in a main control board. メイン制御基板における内部抽選処理の一例を示す図である。It is a figure which shows an example of the internal lottery process in a main control board. メイン制御基板における第1メダル払出処理の一例を示す図である。It is a figure showing an example of the 1st medal payout processing in the main control board. メイン制御基板におけるメダル一枚払出処理の一例を示す図である。It is a figure which shows an example of the medal | token payment process in a main control board. メイン制御基板における第2メダル払出処理の一例を示す図である。It is a figure showing an example of the 2nd medal payout processing in the main control board. メイン制御基板における遊技状態移行処理の一例を示す図である。It is a figure showing an example of the game state transition processing in the main control board. メイン制御基板におけるボーナス作動中処理の一例を示す図である。It is a figure which shows an example of the process in process of the bonus in a main control board. メイン制御基板における割込処理の一例を示す図である。It is a figure which shows an example of the interruption process in a main control board. メイン制御基板における割込処理の一例を示す図である。It is a figure which shows an example of the interruption process in a main control board. メイン制御基板における第2記憶領域割込処理の一例を示す図である。It is a figure which shows an example of the 2nd storage area interruption process in a main control board. メイン制御基板における第2記憶領域入力エラーチェック処理の一例を示す図である。It is a figure which shows an example of the 2nd storage area input error check process in a main control board. メイン制御基板における投入センサエラーチェック処理の一例を示す図である。It is a figure which shows an example of the insertion sensor error check process in a main control board. メイン制御基板における払出センサエラーチェック処理の一例を示す図である。It is a figure which shows an example of the delivery sensor error check process in a main control board. サブ制御基板におけるメイン処理の一例を示す図である。It is a figure which shows an example of the main process in a sub control board. サブ制御基板におけるメイン制御基板通信処理の一例を示す図である。It is a figure which shows an example of the main control board communication processing in a sub control board. サブ制御基板におけるコマンド解析処理の一例を示す図である。It is a figure which shows an example of the command analysis process in a sub control board. メインCPUの概略模式図の一例を示す図である。It is a figure which shows an example of the schematic schematic diagram of main CPU. 第1記憶領域および第2記憶領域を説明するための概略模式図の一例を示す図である。It is a figure which shows an example of a schematic diagram for demonstrating a 1st storage area and a 2nd storage area. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which main CPU in the game machine in embodiment of this invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which main CPU in the game machine in embodiment of this invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which main CPU in the game machine in embodiment of this invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which main CPU in the game machine in embodiment of this invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which main CPU in the game machine in embodiment of this invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which main CPU in the game machine in embodiment of this invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which main CPU in the game machine in embodiment of this invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which main CPU in the game machine in embodiment of this invention uses. セレクターの動作原理図の一例を示す図である。It is a figure which shows an example of the principle of operation of a selector. ホッパーの一部断面図の一例を示す図である。It is a figure which shows an example of a fragmentary sectional view of a hopper. ホッパーの動作原理図の一例を示す図である。It is a figure which shows an example of the principle of operation of a hopper. 第2の実施の形態におけるメインCPUの概略模式図の一例を示す図である。It is a figure which shows an example of the schematic schematic diagram of main CPU in 2nd Embodiment.

以下、本発明の実施形態について図面を参照しながら具体的に説明する。   Hereinafter, embodiments of the present invention will be specifically described with reference to the drawings.

(第1の実施の形態)
(遊技機の構成)
まず、図1及び図2を用いて、第1の実施の形態における遊技機1の構成について具体的に説明する。なお、図1は、遊技機の外観斜視図を示す図であり、図2は、キャビネットの内部構造と前面扉の裏面を示す図である。
First Embodiment
(Configuration of gaming machine)
First, the configuration of the gaming machine 1 according to the first embodiment will be specifically described with reference to FIGS. 1 and 2. FIG. 1 is a view showing the external appearance perspective view of the gaming machine, and FIG. 2 is a view showing the internal structure of the cabinet and the back of the front door.

(遊技機1)
本実施形態における遊技機1は、後述のキャビネット2と、前面扉3等から構成されている。
(A game machine 1)
The gaming machine 1 in the present embodiment is composed of a cabinet 2 to be described later, a front door 3 and the like.

(キャビネット2)
キャビネット2は、略矩形状の箱体であって、正面側に開口を有する。また、キャビネット2には、複数の部品が取り付けられている。
(Cabinet 2)
The cabinet 2 is a substantially rectangular box and has an opening on the front side. Further, a plurality of parts are attached to the cabinet 2.

(前面扉3)
前面扉3は、キャビネット2の正面側の開口を閉塞するように取り付けられている。また前面扉3には、複数の部品が取り付けられている。
(Front door 3)
The front door 3 is attached so as to close the opening on the front side of the cabinet 2. Further, a plurality of parts are attached to the front door 3.

(蝶番機構4)
蝶番機構4は、キャビネット2の正面視左側に設けられており、前面扉3を開閉可能に軸支するために設けられている。
(Hinge mechanism 4)
The hinge mechanism 4 is provided on the left side in a front view of the cabinet 2 and is provided to pivotally support the front door 3 so as to be able to open and close.

(鍵穴5)
鍵穴5は、前面扉3の中央右側に設けられ、施錠装置(図示せず)により前面扉3を開錠するために設けられている。ここで、遊技店の店員等がメンテナンス作業や、遊技者にとって有利な度合を示す設定値の変更等を行う場合に、前面扉3に設けられている施錠装置(図示せず)の開錠が行われる。具体的には、鍵穴5にドアキー(図示せず)を挿入して時計回り方向に所定角度回動することにより開錠する。そして、前面扉3を開放し、メンテナンス作業や、設定値の変更等の作業を行う。なお、メンテナンス作業や、設定値の変更等の作業が終了すると、前面扉3を閉じることにより施錠される。
(Keyhole 5)
The keyhole 5 is provided at the center right of the front door 3 and is provided to unlock the front door 3 by a locking device (not shown). Here, when a store clerk or the like in the game shop performs maintenance work, changes in setting values indicating the degree of advantage for the player, etc., unlocking of the locking device (not shown) provided on the front door 3 is performed. To be done. Specifically, a door key (not shown) is inserted into the keyhole 5 and the door key is unlocked by being rotated clockwise by a predetermined angle. Then, the front door 3 is opened, and maintenance work, change of setting values, and the like are performed. In addition, when the maintenance work and the work of changing the setting value are finished, the front door 3 is locked by closing it.

(メダル投入口6)
メダル投入口6は、鍵穴5の正面視左側上方に設けられ、遊技者がメダルを投入するために設けられている。
(Medical insertion slot 6)
The medal insertion slot 6 is provided on the upper left side of the keyhole 5 in a front view, and is provided for the player to insert a medal.

(BETボタン7)
BETボタン7は、メダル投入口6の正面視左側に設けられ、貯留(クレジット)されたメダルのうち、「1」枚のメダルを遊技に使用するために設けられている。
(BET button 7)
The BET button 7 is provided on the left side of the medal insertion slot 6 in a front view, and is provided to use “1” medals of the stored (credited) medals for the game.

(MAXBETボタン8)
MAXBETボタン8は、BETボタン7の正面視右側に設けられ、貯留(クレジット)されたメダルのうち、一遊技(「1」ゲーム)において使用可能な最大枚数のメダルを遊技に使用するために設けられている。ここで、本実施形態において、一遊技において使用可能なメダルの最大値は「3」枚である。
(MAX BET button 8)
The MAX BET button 8 is provided on the right side of the BET button 7 in a front view, and is provided to use the maximum number of medals that can be used in one game (the “1” game) among stored (credited) medals It is done. Here, in the present embodiment, the maximum value of medals usable in one game is "3".

(精算ボタン9)
精算ボタン9は、BETボタン7の奥側に設けられ、遊技者が獲得したメダルのうち、貯留(クレジット)されているメダルの精算を行うために設けられている。なお、本実施形態において、貯留(クレジット)可能なメダルの最大値は「50」枚である。
(Settlement button 9)
The settlement button 9 is provided on the back side of the BET button 7 and is provided to perform settlement of medals stored (credited) among medals acquired by the player. In the present embodiment, the maximum value of medals that can be stored (credited) is “50”.

(スタートレバー10)
スタートレバー10は、BETボタン7の下方に設けられている。また、スタートレバー10は、遊技者が後述の左リール18、中リール19、右リール20の回転を開始する契機となる開始操作を行うために設けられている。ここで、遊技者による開始操作が検出されたことに基づいて、後述のメイン制御基板300は、乱数値を取得し、当選役を決定する処理や、後述の左リール18、中リール19、右リール20の回転を開始する処理等を行う。
(Start lever 10)
The start lever 10 is provided below the BET button 7. Further, the start lever 10 is provided for the player to perform a start operation that triggers the rotation of the left reel 18, the middle reel 19, and the right reel 20 described later. Here, based on the detection of the start operation by the player, the main control board 300 described later acquires a random number value, and performs a process of determining a winning combination, a left reel 18 described later, a middle reel 19 and a right A process of starting rotation of the reel 20 is performed.

(左停止ボタン11)
左停止ボタン11は、スタートレバー10の正面視右側に設けられている。また、左停止ボタン11は、後述の左リール18の回転を停止する契機となる停止操作を検出するために設けられている。
(Left stop button 11)
The left stop button 11 is provided on the right side of the start lever 10 in a front view. In addition, the left stop button 11 is provided to detect a stop operation serving as a trigger for stopping the rotation of the left reel 18 described later.

(中停止ボタン12)
中停止ボタン12は、左停止ボタン11の正面視右側に設けられている。また、中停止ボタン12は、後述の中リール19の回転を停止する契機となる停止操作を検出するために設けられている。
(Mid stop button 12)
The middle stop button 12 is provided on the right side of the left stop button 11 in a front view. The middle stop button 12 is provided to detect a stop operation that is a trigger for stopping the rotation of the middle reel 19 described later.

(右停止ボタン13)
右停止ボタン13は、中停止ボタン12の正面視右側に設けられている。また、右停止ボタン13は、後述の右リール20の回転を停止する契機となる停止操作を検出するために設けられている。
(Right stop button 13)
The right stop button 13 is provided on the right side in a front view of the middle stop button 12. Further, the right stop button 13 is provided to detect a stop operation serving as a trigger for stopping the rotation of the right reel 20 described later.

(セレクター14)
セレクター14は、前面扉3の背面側に設けられている。また、セレクター14は、メダル投入口6に投入されたメダルの材質や形状等が適正であるか否かを判別するために設けられている。セレクター14の詳細については、後述する。
(Selector 14)
The selector 14 is provided on the back side of the front door 3. Further, the selector 14 is provided to determine whether or not the material, shape, and the like of the medal inserted into the medal insertion slot 6 are appropriate. Details of the selector 14 will be described later.

(貯留枚数表示器15)
貯留枚数表示器15は、精算ボタン9の正面視右側に設けられている。また、貯留枚数表示器15は、遊技機1に貯留(クレジット)されている遊技者のメダルの貯留(クレジット)枚数を表示するために設けられている。
(Reserved number indicator 15)
The stored sheet number indicator 15 is provided on the right side of the settlement button 9 in a front view. The stored number indicator 15 is provided to display the stored (credited) number of medals of the player stored (credited) in the gaming machine 1.

(払出枚数表示器16)
払出枚数表示器16は、貯留枚数表示器15の正面視右側に設けられている。また、払出枚数表示器16は、遊技者に対して払い出されるメダルの払出枚数を表示したり、遊技機1がエラー状態となった場合に、エラー状態になったことを表示したりするために設けられている。
(Payout number indicator 16)
The number-of-payouts indicator 16 is provided on the right side of the stored number indicator 15 in a front view. The payout number display 16 also displays the payout number of medals to be paid out to the player, or displays an error state when the gaming machine 1 is in an error state. It is provided.

(ドア開閉センサ17s)
ドア開閉センサ17sは、鍵穴5の背面側に設けられており、前面扉3が開放しているか否かを検出するために設けられている。ここで、ドア開閉センサ17sは、発光部と受光部からなり、鍵穴5にドアキー(図示せず)を挿入し、当該ドアキー(図示せず)を時計回り方向に所定角度回動させると、施錠部(図示せず)が回動することとなる。そして、受光部は、施錠部が回動することにより、発光部から発光された光を受光することができなくなる。これにより、ドア開閉センサ17sは、前面扉3の開放を検知することとなる。
(Door open / close sensor 17s)
The door open / close sensor 17s is provided on the back side of the keyhole 5, and is provided to detect whether the front door 3 is open. Here, the door opening / closing sensor 17s is composed of a light emitting unit and a light receiving unit, and a door key (not shown) is inserted into the keyhole 5, and the door key (not shown) is locked clockwise when rotated clockwise by a predetermined angle. A part (not shown) will rotate. The light receiving unit can not receive the light emitted from the light emitting unit when the locking unit is rotated. Thus, the door open / close sensor 17s detects the opening of the front door 3.

(左リール18)
左リール18は、キャビネット2の内部に設けられており、円筒状の構造を有している。また、左リール18の円筒状の構造の周面には、透光性のシートが装着されており、当該シートには、複数種類の図柄が一列に描かれている。そして、左リール18は、後述の左ステッピングモータ151により回転駆動され、複数種類の図柄が変動表示される。
(Left reel 18)
The left reel 18 is provided inside the cabinet 2 and has a cylindrical structure. In addition, a translucent sheet is mounted on the circumferential surface of the cylindrical structure of the left reel 18, and a plurality of types of symbols are drawn in a line on the sheet. Then, the left reel 18 is rotationally driven by a left stepping motor 151 described later, and a plurality of types of symbols are variably displayed.

(中リール19)
中リール19は、キャビネット2の内部に設けられており、円筒状の構造を有している。また、中リール19の円筒状の構造の周面には、透光性のシートが装着されており、当該シートには、複数種類の図柄が一列に描かれている。そして、中リール19は、後述の中ステッピングモータ152により回転駆動され、複数種類の図柄が変動表示される。
(Middle reel 19)
The middle reel 19 is provided inside the cabinet 2 and has a cylindrical structure. In addition, a translucent sheet is attached to the circumferential surface of the cylindrical structure of the middle reel 19, and a plurality of types of symbols are drawn in a row on the sheet. The middle reel 19 is rotationally driven by a middle stepping motor 152 described later, and a plurality of types of symbols are variably displayed.

(右リール20)
右リール20は、キャビネット2の内部に設けられており、円筒状の構造を有している。また、右リール20の円筒状の構造の周面には、透光性のシートが装着されており、当該シートには、複数種類の図柄が一列に描かれている。そして、右リール20は、後述の右ステッピングモータ153により回転駆動され、複数種類の図柄が変動表示される。
(Right reel 20)
The right reel 20 is provided inside the cabinet 2 and has a cylindrical structure. In addition, a translucent sheet is attached to the circumferential surface of the cylindrical structure of the right reel 20, and a plurality of types of symbols are drawn in a row on the sheet. Then, the right reel 20 is rotationally driven by a right stepping motor 153 described later, and a plurality of types of symbols are variably displayed.

(演出ボタン21)
演出ボタン21は、MAXBETボタン8の正面視右側に設けられており、遊技者が所定のタイミングで操作するために設けられている。ここで、後述のサブ制御基板400は、演出ボタン21の操作が検出された場合に、後述の演出制御基板500を介して、後述の液晶表示装置31の表示制御を行う。
(Effect button 21)
The effect button 21 is provided on the right side of the MAX BET button 8 in a front view, and is provided for the player to operate at a predetermined timing. Here, when an operation of the effect button 21 is detected, the sub control board 400 described later performs display control of the liquid crystal display device 31 described later via the effect control board 500 described later.

(十字キー22)
十字キー22は、演出ボタン21の正面視右側に設けられており、上方向ボタン、下方向ボタン、左方向ボタン、及び右方向ボタンにより構成され、遊技者が所定のタイミングで操作するために設けられている。そして、後述のサブ制御基板400は、十字キー22の操作が検出された場合に、後述の演出制御基板500を介して、後述の液晶表示装置31等の表示制御を行う。
(Cross key 22)
The cross key 22 is provided on the right side in a front view of the effect button 21 and includes an upward button, a downward button, a left button, and a right button, and is provided for the player to operate at a predetermined timing. It is done. Then, when an operation of the cross key 22 is detected, the sub control board 400 described later performs display control of the liquid crystal display device 31 etc. described later via the effect control board 500 described later.

(表示窓23)
表示窓23は、左リール18、中リール19、右リール20の前面側に設けられており、左リール18、中リール19、右リール20の周面に描かれた複数の図柄を視認可能とするために設けられている。具体的には、左リール18の周面に描かれた「3」個の図柄、中リール19の周面に描かれた「3」個の図柄、及び右リール20の周面に描かれた「3」個の図柄の合計「9」個の図柄が表示窓23を介して視認可能となる。なお、本実施形態においては、表示窓23に表示される図柄の視認を容易とするために、図示しないバックライトを発光することにより、表示窓23に表示される図柄が照射されることとなる。
(Display window 23)
The display window 23 is provided on the front side of the left reel 18, the middle reel 19, and the right reel 20, and a plurality of symbols drawn on the circumferential surface of the left reel 18, the middle reel 19, and the right reel 20 can be viewed. It is provided to Specifically, “3” symbols drawn on the circumferential surface of the left reel 18, “3” symbols drawn on the circumferential surface of the middle reel 19, and a circumferential surface of the right reel 20 A total of "9" symbols can be viewed through the display window 23 in "3" symbols. In the present embodiment, in order to facilitate visual recognition of the symbol displayed in the display window 23, the symbol displayed in the display window 23 is irradiated by emitting light from a backlight (not shown). .

(有効ライン)
ここで、本実施形態において、有効ラインは、表示窓23に表示された図柄のうち、左リール18の上段に表示された図柄と、中リール19の中段に表示された図柄と、右リール20の下段に表示された図柄を直線で結んだ「右下がりライン」と、左リール18の上段に表示された図柄と、中リール19の上段に表示された図柄と、右リール20の上段に表示された図柄を直線で結んだ「上段ライン」と、左リール18の中段に表示された図柄と、中リール19の中段に表示された図柄と、右リール20の中段に表示された図柄を直線で結んだ「中段ライン」と、左リール18の下段に表示された図柄と、中リール19の中段に表示された図柄と、右リール20の上段に表示された図柄を直線で結んだ「右上がりライン」の計「4」個のラインが有効ラインとなる。
(Effective line)
Here, in the present embodiment, among the symbols displayed in the display window 23, the effective line is the symbol displayed on the upper stage of the left reel 18, the symbol displayed on the middle stage of the middle reel 19, and the right reel 20. Displayed in the upper row of the right reel 20, the symbol displayed in the upper row of the left reel 18, the symbol displayed in the upper row of the middle reel 19, and the symbol displayed in the upper row of the left reel 18 The upper line connecting the drawn symbols with a straight line, the symbol displayed in the middle of the left reel 18, the symbol displayed in the middle of the middle reel 19, and the symbol displayed in the middle of the right reel 20 "The middle line connected by a line, the symbol displayed in the lower part of the left reel 18, and the symbol displayed in the middle of the middle reel 19 and the symbol displayed in the upper part of the right reel 20""Lineup" total "4" rye It becomes effective line.

(受皿ユニット24)
受皿ユニット24は、前面扉3の正面下方に設けられている。また、受皿ユニット24は、後述のメダル払出口25から排出されたメダルを受け入れて貯留するために設けられている。
(Receiver unit 24)
The tray unit 24 is provided on the front lower side of the front door 3. Also, the tray unit 24 is provided to receive and store the medals discharged from the medal payout opening 25 described later.

(メダル払出口25)
メダル払出口25は、前面扉3の下方に設けられており、メダルの払出が行われる場合において、後述のホッパー202により払い出されるメダルを排出するために設けられている。また、メダル払出口25は、セレクターセンサ14sにより、メダル投入口6に投入されたメダルが適正なメダルではないと判別された場合や、メダルの投入を受け付けることが不可能なタイミングに、メダル投入口6にメダルが投入された場合に、メダル投入口6に投入されたメダルを排出するために設けられている。
(Medal payout 25)
The medal payout opening 25 is provided below the front door 3 and is provided to discharge the medals to be paid out by the hopper 202 described later when the medals are paid out. In addition, the medal payout opening 25 is inserted when the selector sensor 14s determines that the medal inserted into the medal insertion slot 6 is not an appropriate medal, or when it is impossible to receive insertion of the medal. It is provided to discharge the medals inserted into the medal insertion slot 6 when the medals are inserted into the mouth 6.

(液晶表示装置31)
液晶表示装置31は、左リール18、中リール19、右リール20の上方に設けられ、動画像・静止画像等を表示するために設けられている。
(Liquid crystal display device 31)
The liquid crystal display device 31 is provided above the left reel 18, the middle reel 19, and the right reel 20, and is provided to display moving images / still images and the like.

(LED32)
LED32は、前面扉3の前面の周縁に設けられており、遊技者の視覚に訴える形状及び色彩、模様、絵柄等を施してデザイン設計されている。ここで、後述のサブ制御基板400は、LED32を点灯、点滅する処理を行うことにより、遊技者に対して視覚に訴える演出を行う。
(LED32)
The LEDs 32 are provided on the periphery of the front of the front door 3 and are designed and designed with shapes, colors, patterns, patterns, etc. that appeal to the player's vision. Here, the sub control board 400 described later performs a process of lighting and blinking the LED 32 to provide a visual appeal to the player.

(スピーカ33)
スピーカ33は、前面扉3の背面側下方に設けられており、演出を行う際にBGMや音声、効果音等を出力するために設けられている。ここで、後述のサブ制御基板400は、スピーカ33から音を出力する処理を行うことにより、遊技者に対して聴覚に訴える演出を行う。
(Speaker 33)
The speaker 33 is provided below the back side of the front door 3 and is provided to output BGM, sound, sound effects, and the like when performing effects. Here, the sub control board 400 described later performs a process of outputting a sound from the speaker 33, thereby performing an effect appealing to the player.

(ステータス基板100)
ステータス基板100は、前面扉3の背面側であって、表示窓23の下方に設けられている。また、ステータス基板100には、後述のBETスイッチ7sw、後述のMAXBETスイッチ8sw、後述の精算スイッチ9sw、後述のスタートスイッチ10sw、後述の左停止スイッチ11sw、後述の中停止スイッチ12sw、後述の右停止スイッチ13sw、後述のセレクターセンサ14s、貯留枚数表示器15、払出枚数表示器16、ドア開閉センサ17s、及び後述のメイン制御基板300が接続されている。
(Status board 100)
The status substrate 100 is provided on the back side of the front door 3 and below the display window 23. In the status board 100, a BET switch 7sw described later, a MAX BET switch 8sw described later, a settlement switch 9sw described later, a start switch 10sw described later, a left stop switch 11sw described later, a medium stop switch 12sw described later, a right stop described later A switch 13sw, a selector sensor 14s described later, a stored sheet number indicator 15, a dispensed sheet number indicator 16, a door open / close sensor 17s, and a main control board 300 described later are connected.

(リール制御基板150)
リール制御基板150は、左リール18、中リール19、右リール20の上方に設けられており、左リール18、中リール19、右リール20の回転、及び停止を制御するために設けられている。また、リール制御基板150には、後述の左ステッピングモータ151、後述の中ステッピングモータ152、後述の右ステッピングモータ153、後述の左リールセンサ154s、後述の中リールセンサ155s、後述の右リールセンサ156s、及び後述のメイン制御基板300が接続されている。
(Reel control board 150)
The reel control board 150 is provided above the left reel 18, the middle reel 19, and the right reel 20, and is provided to control the rotation and stop of the left reel 18, the middle reel 19, and the right reel 20. . In the reel control board 150, a left stepping motor 151 described later, a middle stepping motor 152 described later, a right stepping motor 153 described later, a left reel sensor 154s described later, a middle reel sensor 155s described later, a right reel sensor 156s described later , And a main control board 300 described later are connected.

(電源基板200)
電源基板200は、キャビネット2の内部であって、正面視左側に設けられており、遊技機1に電力を供給する制御を行うために設けられている。また、電源基板200には、後述の電源スイッチ201sw、後述のホッパー202、後述の補助収納庫センサ203s、後述のメイン制御基板300、後述のサブ制御基板400、及び後述の演出制御基板500が接続されている。
(Power supply board 200)
The power supply substrate 200 is provided inside the cabinet 2 on the left side in a front view, and is provided to perform control to supply power to the gaming machine 1. Further, the power supply substrate 200 is connected with a power switch 201sw described later, a hopper 202 described later, an auxiliary storage sensor 203s described later, a main control substrate 300 described later, a sub control substrate 400 described later, and a rendering control substrate 500 described later. It is done.

(電源ボタン201)
電源ボタン201は、後述のホッパー202の正面視左側に設けられており、遊技機1に電力を供給する操作を行うために設けられている。
(Power button 201)
The power button 201 is provided on the left side in a front view of the hopper 202 described later, and is provided to perform an operation of supplying power to the gaming machine 1.

(ホッパー202)
ホッパー202は、電源基板200の正面視右側に設けられており、遊技者に対してメダルを払い出すために設けられている。ここで、後述のメイン制御基板300は、メダルを払い出す図柄の組み合わせが有効ライン上に表示された場合に、電源基板200を介してホッパー202を駆動する処理を行い、遊技者に対してメダルを払い出す処理を行う。また、ホッパー202には、メダルを排出させるための排出スリット204が設けられている。ホッパー202の詳細については、後述する。
(Hopper 202)
The hopper 202 is provided on the right side of the power supply substrate 200 in a front view, and is provided to pay out the medals to the player. Here, the main control board 300 described later performs processing for driving the hopper 202 via the power supply board 200 when a combination of symbols for paying out the medals is displayed on the effective line, and the medal for the player Process to pay out. Further, the hopper 202 is provided with a discharge slit 204 for discharging the medals. Details of the hopper 202 will be described later.

(補助収納庫203)
補助収納庫203は、ホッパー202の正面視右側に設けられており、ホッパー202に貯留されているメダルが溢れた場合に、溢れたメダルを収納するために設けられている。
(Auxiliary storage 203)
The auxiliary storage container 203 is provided on the right side in a front view of the hopper 202, and is provided to store the overflowed medal when the medal stored in the hopper 202 overflows.

(メイン制御基板300)
メイン制御基板300は、キャビネット2の内部であって、左リール18、中リール19、右リール20の上方に設けられており、遊技機1の制御を行うために設けられている。また、メイン制御基板300は、後述のメインCPU301、後述のメインROM302、後述のメインRAM303、後述のメイン乱数発生器304を備えている。更に、メイン制御基板300には、後述の外部集中端子板30、ステータス基板100、リール制御基板150、電源基板200、及び後述のサブ制御基板400が接続されている。
(Main control board 300)
The main control board 300 is provided inside the cabinet 2 above the left reel 18, the middle reel 19 and the right reel 20, and is provided to control the gaming machine 1. The main control board 300 further includes a main CPU 301 described later, a main ROM 302 described later, a main RAM 303 described later, and a main random number generator 304 described later. Further, the main control board 300 is connected to an external concentrated terminal board 30, a status board 100, a reel control board 150, a power supply board 200, and a sub control board 400, which will be described later.

(サブ制御基板400)
サブ制御基板400は、メイン制御基板300の正面視左側に設けられており、主として演出の制御を行うために設けられている。また、サブ制御基板400は、後述のサブCPU401、後述のサブROM402、後述のサブRAM403、後述のサブ乱数発生器404を備えている。更に、サブ制御基板400には、後述の演出ボタンセンサ21s、後述の十字キーセンサ22s、電源基板200、メイン制御基板300、及び後述の演出制御基板500が接続されている。
(Sub control board 400)
The sub control board 400 is provided on the left side of the main control board 300 in a front view, and is provided mainly for controlling effects. The sub control board 400 further includes a sub CPU 401 described later, a sub ROM 402 described later, a sub RAM 403 described later, and a sub random number generator 404 described later. Further, the sub control board 400 is connected to a presentation button sensor 21s described later, a cross key sensor 22s described below, a power supply board 200, a main control board 300, and a presentation control board 500 described later.

(演出制御基板500)
演出制御基板500は、前面扉3の背面上方に設けられており、主として演出を実行するために設けられている。また、演出制御基板500は、後述の演出制御CPU501、後述の演出制御ROM502、後述の演出制御RAM503、後述のCGROM504、後述の音源IC505、後述の音源ROM506、後述のVDP507を備えている。更に、演出制御基板500には、液晶表示装置31、LED32、スピーカ33、電源基板200、及びサブ制御基板400が接続されている。
(Effect control board 500)
The effect control board 500 is provided above the back of the front door 3 and is provided mainly for performing effects. Further, the effect control board 500 is provided with an effect control CPU 501 described later, an effect control ROM 502 described later, an effect control RAM 503 described later, a CGROM 504 described later, a sound source IC 505 described later, a sound source ROM 506 described later, and a VDP 507 described later. Furthermore, the liquid crystal display device 31, the LED 32, the speaker 33, the power supply substrate 200, and the sub control substrate 400 are connected to the effect control substrate 500.

(遊技機全体のブロック図)
次に、図3を用いて、遊技機1全体のブロック図について説明する。
(Block diagram of the entire gaming machine)
Next, a block diagram of the entire gaming machine 1 will be described with reference to FIG.

遊技機1は、遊技機1の主たる動作を制御するメイン制御基板300に対して、ステータス基板100、リール制御基板150、電源基板200、及びサブ制御基板400が接続されている。   In the gaming machine 1, a status board 100, a reel control board 150, a power supply board 200, and a sub control board 400 are connected to a main control board 300 that controls the main operation of the gaming machine 1.

(BETスイッチ7sw)
BETスイッチ7swは、BETボタン7の操作を検出するためのスイッチである。ここで、ステータス基板100は、BETスイッチ7swにより、BETボタン7の操作が検出された場合に、メイン制御基板300に対してBETスイッチ入力信号を送信する。そして、メイン制御基板300は、ステータス基板100からBETスイッチ入力信号を受信したことに基づいて、貯留(クレジット)されているメダルから「1」枚のメダルを使用する処理等を行う。
(BET switch 7 sw)
The BET switch 7 sw is a switch for detecting the operation of the BET button 7. Here, the status board 100 transmits a BET switch input signal to the main control board 300 when the BET switch 7 sw detects an operation of the BET button 7. Then, based on the reception of the BET switch input signal from the status substrate 100, the main control board 300 performs processing such as using “1” medals from the medals stored (credited).

(MAXBETスイッチ8sw)
MAXBETスイッチ8swは、MAXBETボタン8の操作を検出するためのスイッチである。ここで、ステータス基板100は、MAXBETスイッチ8swにより、MAXBETボタン8の操作が検出された場合に、メイン制御基板300に対してMAXBETスイッチ入力信号を送信する。そして、メイン制御基板300は、ステータス基板100からMAXBETスイッチ入力信号を受信したことに基づいて、貯留(クレジット)されているメダルから「3」枚のメダルを使用する処理等を行う。
(MAX BET switch 8 sw)
The MAX BET switch 8 sw is a switch for detecting the operation of the MAX BET button 8. Here, when the operation of the MAX BET button 8 is detected by the MAX BET switch 8 sw, the status board 100 transmits a MAX BET switch input signal to the main control board 300. Then, based on the reception of the MAX BET switch input signal from the status board 100, the main control board 300 performs processing such as using “3” medals from the medals stored (credited).

(精算スイッチ9sw)
精算スイッチ9swは、精算ボタン9の操作を検出するためのスイッチである。ここで、ステータス基板100は、精算スイッチ9swにより、精算ボタン9の操作が検出された場合に、メイン制御基板300に対して精算スイッチ入力信号を送信する。そして、メイン制御基板300は、ステータス基板100から精算スイッチ入力信号を受信したことに基づいて、貯留(クレジット)されているメダルを精算する処理を行う。
(Settlement switch 9 sw)
The settlement switch 9 sw is a switch for detecting the operation of the settlement button 9. Here, when the operation of the settlement button 9 is detected by the settlement switch 9 sw, the status substrate 100 transmits a settlement switch input signal to the main control substrate 300. Then, the main control board 300 performs a process of settling the stored (credited) medals based on the reception of the settlement switch input signal from the status board 100.

(スタートスイッチ10sw)
スタートスイッチ10swは、スタートレバー10の操作を検出するためのスイッチである。ここで、ステータス基板100は、スタートスイッチ10swにより、スタートレバー10の操作が検出された場合に、メイン制御基板300に対してスタートスイッチ入力信号を送信する。そして、メイン制御基板300は、ステータス基板100からスタートスイッチ入力信号を受信したことに基づいて、左リール18、中リール19、右リール20の回転を開始する処理等を行う。
(Start switch 10 sw)
The start switch 10sw is a switch for detecting the operation of the start lever 10. Here, the status board 100 transmits a start switch input signal to the main control board 300 when the operation of the start lever 10 is detected by the start switch 10 sw. Then, based on the reception of the start switch input signal from the status substrate 100, the main control substrate 300 performs processing such as starting to rotate the left reel 18, the middle reel 19, and the right reel 20.

(左停止スイッチ11sw)
左停止スイッチ11swは、左停止ボタン11の操作を検出するためのスイッチである。ここで、ステータス基板100は、左停止スイッチ11swにより、左停止ボタン11の操作が検出された場合に、メイン制御基板300に対して左停止スイッチ入力信号を送信する。そして、メイン制御基板300は、ステータス基板100から左停止スイッチ入力信号を受信したことに基づいて、回転中の左リール18を停止する処理を行う。
(Left stop switch 11sw)
The left stop switch 11 sw is a switch for detecting the operation of the left stop button 11. Here, the status board 100 transmits a left stop switch input signal to the main control board 300 when the left stop switch 11 sw detects an operation of the left stop button 11. Then, the main control board 300 performs processing for stopping the rotating left reel 18 based on the reception of the left stop switch input signal from the status board 100.

(中停止スイッチ12sw)
中停止スイッチ12swは、中停止ボタン12の操作を検出するためのスイッチである。ここで、ステータス基板100は、中停止スイッチ12swにより、中停止ボタン12の操作が検出された場合に、メイン制御基板300に対して中停止スイッチ入力信号を送信する。そして、メイン制御基板300は、ステータス基板100から中停止スイッチ入力信号を受信したことに基づいて、回転中の中リール19を停止する処理を行う。
(Medium stop switch 12sw)
The middle stop switch 12 sw is a switch for detecting the operation of the middle stop button 12. Here, when the operation of the middle stop button 12 is detected by the middle stop switch 12sw, the status board 100 transmits a middle stop switch input signal to the main control board 300. Then, the main control board 300 performs a process for stopping the rotating middle reel 19 based on the reception of the middle stop switch input signal from the status board 100.

(右停止スイッチ13sw)
右停止スイッチ13swは、右停止ボタン13の操作を検出するためのスイッチである。ここで、ステータス基板100は、右停止スイッチ13swにより、右停止ボタン13の操作が検出された場合に、メイン制御基板300に対して右停止スイッチ入力信号を送信する。そして、メイン制御基板300は、ステータス基板100から右停止スイッチ入力信号を受信したことに基づいて、回転中の右リール20を停止する処理を行う。
(Right stop switch 13 sw)
The right stop switch 13 sw is a switch for detecting the operation of the right stop button 13. Here, the status board 100 transmits a right stop switch input signal to the main control board 300 when the right stop switch 13 sw detects the operation of the right stop button 13. Then, the main control board 300 performs a process of stopping the rotating right reel 20 based on the reception of the right stop switch input signal from the status board 100.

(セレクターセンサ14s)
セレクターセンサ14sは、メダル投入口6に適正なメダルが投入されたことを検出するためのセンサである。ここで、ステータス基板100は、セレクターセンサ14sにより、適正なメダルの通過が検出された場合に、メイン制御基板300に対してセレクターセンサ入力信号を送信する。そして、メイン制御基板300は、ステータス基板100からセレクターセンサ入力信号を受信したことに基づいて、貯留(クレジット)されるメダルの枚数を「1」加算する処理や、遊技に使用するメダルの枚数に「1」加算する処理を行う。なお、セレクターセンサ14sは、後述するメダル投入検知センサ61、第1メダル通過センサ62、第2メダル通過センサ63を有している。セレクターセンサ14sの詳細については、後述する。
(Selector sensor 14s)
The selector sensor 14 s is a sensor for detecting that a proper medal has been inserted into the medal insertion slot 6. Here, the status board 100 transmits a selector sensor input signal to the main control board 300 when the passage of an appropriate medal is detected by the selector sensor 14s. Then, the main control board 300 performs processing of adding “1” to the number of medals to be stored (credits) based on the reception of the selector sensor input signal from the status board 100 and the number of medals used for the game. Perform processing to add "1". The selector sensor 14s has a medal insertion detection sensor 61, a first medal passage sensor 62, and a second medal passage sensor 63, which will be described later. Details of the selector sensor 14s will be described later.

(左ステッピングモータ151)
左ステッピングモータ151は、左リール18の内部に設けられており、左リール18の制御を行うために設けられている。また、左ステッピングモータ151は、回転軸を指定された角度で停止させることが可能な構成を備えている。これにより、左リール18は、左ステッピングモータ151に対してパルス信号が出力されるごとに、一定の角度で回転する。なお、メイン制御基板300は、後述の左リールセンサ154sによりリールインデックスが検出されてから左ステッピングモータ151に対してパルス信号を出力した回数をカウントすることによって、左リール18の回転角度を管理する。
(Left stepping motor 151)
The left stepping motor 151 is provided inside the left reel 18 and is provided to control the left reel 18. In addition, the left stepping motor 151 has a configuration capable of stopping the rotation shaft at a designated angle. Thus, the left reel 18 rotates at a constant angle each time a pulse signal is output to the left stepping motor 151. The main control board 300 manages the rotation angle of the left reel 18 by counting the number of times the pulse signal is output to the left stepping motor 151 after the reel index is detected by the left reel sensor 154 s described later. .

(中ステッピングモータ152)
中ステッピングモータ152は、中リール19の内部に設けられており、中リール19の制御を行うために設けられている。また、中ステッピングモータ152は、回転軸を指定された角度で停止させることが可能な構成を備えている。これにより、中リール19は、中ステッピングモータ152に対してパルス信号が出力されるごとに、一定の角度で回転する。なお、メイン制御基板300は、後述の中リールセンサ155sによりリールインデックスが検出されてから中ステッピングモータ152に対してパルス信号を出力した回数をカウントすることによって、中リール19の回転角度を管理する。
(Medium stepping motor 152)
The middle stepping motor 152 is provided inside the middle reel 19 and is provided to control the middle reel 19. Further, the middle stepping motor 152 has a configuration capable of stopping the rotation shaft at a designated angle. Thus, the middle reel 19 rotates at a constant angle each time a pulse signal is output to the middle stepping motor 152. The main control board 300 manages the rotation angle of the middle reel 19 by counting the number of times the pulse signal is output to the middle stepping motor 152 after the reel index is detected by the middle reel sensor 155s described later. .

(右ステッピングモータ153)
右ステッピングモータ153は、右リール20の内部に設けられており、右リール20の制御を行うために設けられている。また、右ステッピングモータ153は、回転軸を指定された角度で停止させることが可能な構成を備えている。これにより、右リール20は、右ステッピングモータ153に対してパルス信号が出力されるごとに、一定の角度で回転する。なお、メイン制御基板300は、後述の右リールセンサ156sによりリールインデックスが検出されてから右ステッピングモータ153に対してパルス信号を出力した回数をカウントすることによって、右リール20の回転角度を管理する。
(Right stepping motor 153)
The right stepping motor 153 is provided inside the right reel 20 and is provided to control the right reel 20. In addition, the right stepping motor 153 has a configuration capable of stopping the rotation shaft at a designated angle. Thus, the right reel 20 rotates at a constant angle each time a pulse signal is output to the right stepping motor 153. The main control board 300 manages the rotation angle of the right reel 20 by counting the number of times the pulse signal is output to the right stepping motor 153 after the reel index is detected by the right reel sensor 156 s described later. .

(左リールセンサ154s)
左リールセンサ154sは、左リール18の内部に設けられており、発光部と受光部とを有する光センサを備えている。また、左リールセンサ154sは、左リール18が「1」回転したことを示すリールインデックスを検出するために設けられている。
(Left reel sensor 154s)
The left reel sensor 154 s is provided inside the left reel 18 and includes an optical sensor having a light emitting unit and a light receiving unit. The left reel sensor 154s is provided to detect a reel index indicating that the left reel 18 has been rotated by "1".

(中リールセンサ155s)
中リールセンサ155sは、中リール19の内部に設けられており、発光部と受光部とを有する光センサを備えている。また、中リールセンサ155sは、中リール19が「1」回転したことを示すリールインデックスを検出するために設けられている。
(Middle reel sensor 155s)
The middle reel sensor 155s is provided inside the middle reel 19, and includes an optical sensor having a light emitting unit and a light receiving unit. The middle reel sensor 155 s is provided to detect a reel index indicating that the middle reel 19 has been rotated by “1”.

(右リールセンサ156s)
右リールセンサ156sは、右リール20の内部に設けられており、発光部と受光部とを有する光センサを備えている。また、右リールセンサ156sは、右リール20が「1」回転したことを示すリールインデックスを検出するために設けられている。
(Right reel sensor 156s)
The right reel sensor 156s is provided inside the right reel 20, and includes an optical sensor having a light emitting unit and a light receiving unit. Further, the right reel sensor 156 s is provided to detect a reel index indicating that the right reel 20 has been rotated by “1”.

(電源スイッチ201sw)
電源スイッチ201swは、電源ボタン201の操作を検出するためのスイッチである。ここで、電源基板200は、電源スイッチ201swにより、電源ボタン201の操作が検出された場合に、遊技機1に電力を供給する処理を行う。
(Power switch 201sw)
The power switch 201 sw is a switch for detecting an operation of the power button 201. Here, when the power switch 201 sw detects the operation of the power button 201, the power supply substrate 200 performs processing for supplying power to the gaming machine 1.

(ホッパーセンサ202s)
ホッパーセンサ202sは、ホッパー202が駆動されることにより払い出されるメダルが通過したことを検出するためのセンサである。ここで、電源基板200は、ホッパーセンサ202sにより、メダルの払出が検出された場合に、メイン制御基板300に対してホッパーセンサ入力信号を送信する。そして、メイン制御基板300は、電源基板200からホッパーセンサ入力信号を受信したことに基づいて、払出枚数を減算する処理を行う。ホッパーセンサ202sの詳細については、後述する。
(Hopper sensor 202s)
The hopper sensor 202s is a sensor for detecting that a medal to be paid out by driving the hopper 202 has passed. Here, the power supply substrate 200 transmits a hopper sensor input signal to the main control substrate 300 when the hopper sensor 202s detects the payout of the medal. Then, the main control board 300 performs a process of subtracting the number of payouts based on the reception of the hopper sensor input signal from the power supply board 200. Details of the hopper sensor 202s will be described later.

(補助収納庫センサ203s)
補助収納庫センサ203sは、補助収納庫203に貯留されたメダルが満杯であることを検出するためのセンサである。ここで、電源基板200は、補助収納庫センサ203sにより、補助収納庫203に貯留されたメダルが満杯であることが検出された場合に、メイン制御基板300に対して、所定の信号を送信する。そして、メイン制御基板300は、電源基板200から所定の信号を受信したことに基づいて、補助収納庫203に貯留されたメダルが満杯である時のエラー処理を行う。
(Auxiliary storage sensor 203s)
The auxiliary storage sensor 203s is a sensor for detecting that the medals stored in the auxiliary storage 203 are full. Here, when the auxiliary storage sensor 203s detects that the medal stored in the auxiliary storage 203 is full, the power supply substrate 200 transmits a predetermined signal to the main control substrate 300. . Then, based on the reception of the predetermined signal from the power supply substrate 200, the main control substrate 300 performs error processing when the medals stored in the auxiliary storage container 203 are full.

(外部集中端子板30)
外部集中端子板30は、遊技に使用したメダルの枚数を特定可能なメダル投入信号や、遊技者に対して払い出したメダルの枚数を特定可能なメダル払出信号、後述のBBに係る図柄の組み合わせが表示されたことを特定可能なBB信号、後述のRBに係る図柄の組み合わせが表示されたことを特定可能なRB信号、不正行為が行われたことを特定可能なセキュリティ信号をホールコンピュータ(図示せず)等の遊技機1の外部に対して送信するために設けられている。
(External concentrated terminal board 30)
The external concentration terminal board 30 has a combination of a medal insertion signal that can specify the number of medals used in the game, a medal payout signal that can specify the number of medals paid out to the player, and a symbol related to BB described later. A hall computer (shown in the figure is a BB signal that can identify what has been displayed, an RB signal that can identify that a combination of symbols relating to RB described later has been displayed, and a fact that fraudulent activity has occurred. Etc.) for transmission to the outside of the gaming machine 1 or the like.

(メインCPU301)
メインCPU301は、メイン制御基板300に設けられている。また、メインCPU301は、後述のメインROM302に記憶されているプログラムを読み込み、遊技の進行に合わせて所定の演算処理を行うことにより、ステータス基板100、リール制御基板150、電源基板200、サブ制御基板400に対して所定の信号を送信する。
(Main CPU 301)
The main CPU 301 is provided on the main control board 300. Further, the main CPU 301 reads a program stored in the main ROM 302 described later, and performs predetermined arithmetic processing as the game progresses, thereby the status board 100, the reel control board 150, the power supply board 200, the sub control board Send a predetermined signal to 400.

ここで、メインCPU301の概略模式図を、図32に示し、説明する。
図32に示すように、メインCPU301は、演算装置1100と、制御装置1200と、レジスタ群1300と、クロックジェネレータ1400と、を備え、それぞれバス1500で接続されている。
Here, a schematic diagram of the main CPU 301 will be described with reference to FIG.
As shown in FIG. 32, the main CPU 301 includes an arithmetic unit 1100, a control unit 1200, a register group 1300, and a clock generator 1400, which are connected to one another by a bus 1500.

演算装置1100は、算術論理演算装置であり、基本的な四則演算(加算、減算、乗算、除算)および論理演算(AND、OR、NOT)を行う計算機である。なお、演算装置1100は、乗算器や除算器を持たずに、乗算や除算を行うものであってもよく、また、減算も加算器を用いて演算するものでもよい。   The arithmetic unit 1100 is an arithmetic logic unit, and is a computer that performs basic four arithmetic operations (addition, subtraction, multiplication, division) and logical operations (AND, OR, NOT). Arithmetic device 1100 may perform multiplication or division without a multiplier or a divider, and may also perform subtraction using an adder.

制御装置1200は、データ(オペランド)と命令(オペコード)をレジスタ群1300の後述する所定のレジスタから取り出し、演算装置1100に渡すとともに、演算装置1100に計算された計算結果をまた所定のレジスタに格納する。   The control device 1200 takes out data (operands) and instructions (opcodes) from predetermined registers of the register group 1300, which will be described later, and delivers them to the arithmetic device 1100, and stores the calculation results calculated in the arithmetic device 1100 in the predetermined registers. Do.

レジスタ群1300は、後述する複数のレジスタを有しており、演算装置1100が計算するデータや命令、計算結果等を一時的に保存(一時記憶)する記憶領域である。なおレジスタは、メインCPU301が演算処理等を行うために用意されたメインCPU301専用のメモリであり、他の記憶装置に比べ、サイズは小さいがアクセスが高速で行われるものである。   The register group 1300 is a storage area for temporarily storing (temporarily storing) data, instructions, calculation results and the like calculated by the arithmetic device 1100, and has a plurality of registers described later. The register is a memory dedicated to the main CPU 301 prepared in order for the main CPU 301 to perform arithmetic processing and the like. The register is smaller in size than other storage devices, but is accessed at high speed.

クロックジェネレータ1400は、メインCPU301および接続された各装置の処理のタイミングをとるために、一定に時間を刻み続ける時計であり、常に一定間隔のクロック信号(パルス)を発生させる装置である。   The clock generator 1400 is a clock that keeps the time constant for timing the processing of the main CPU 301 and each connected device, and is a device that generates clock signals (pulses) at regular intervals.

なお、レジスタ群1300は、Aレジスタ1311、Bレジスタ1312、Cレジスタ1313、Dレジスタ1314、Eレジスタ1315、Fレジスタ1316、Hレジスタ1317、Lレジスタ1318、SPレジスタ1319、PCレジスタ1320を有している。   The register group 1300 includes an A register 1311, a B register 1312, a C register 1313, a D register 1314, an E register 1315, an F register 1316, an H register 1317, an L register 1318, an SP register 1319, and a PC register 1320. There is.

Aレジスタ1311、Bレジスタ1312、Cレジスタ1313、Dレジスタ1314、Eレジスタ1315、Fレジスタ1316、Hレジスタ1317、Lレジスタ1318は、それぞれ1バイト(8ビット)の記憶容量を持っており、SPレジスタ1319、PCレジスタ1320は、それぞれ2バイト(16ビット)の記憶容量を持っている。なお、Bレジスタ1312とCレジスタ1313、Dレジスタ1314とEレジスタ1315、Hレジスタ1317とLレジスタ1318、Aレジスタ1311とFレジスタ1316は、2つを繋げて2バイト(16ビット)として扱うことができる。   The A register 1311, the B register 1312, the C register 1313, the D register 1314, the E register 1315, the F register 1316, the H register 1317, and the L register 1318 each have a storage capacity of 1 byte (8 bits). 1319 and the PC register 1320 each have a storage capacity of 2 bytes (16 bits). The B register 1312 and the C register 1313, the D register 1314 and the E register 1315, the H register 1317 and the L register 1318, and the A register 1311 and the F register 1316 can be treated as 2 bytes (16 bits) by connecting two. it can.

(メインROM302)
メインROM302は、メイン制御基板300に設けられている。また、メインROM302は、メインCPU301により実行される制御プログラム、データテーブル、サブ制御基板400に対するコマンドを送信するためのデータ等を記憶するために設けられている。具体的には、メインROM302は、図11から図28に示す処理を行うためのプログラム、後述の配列データテーブル(図4参照)、後述の図柄組み合わせテーブル(図5参照)、後述の通常遊技状態用当選役決定テーブル(図6参照)、後述のRT遊技状態用当選役決定テーブル(図7参照)、後述のRB遊技状態用当選役決定テーブル(図8参照)等を記憶している。
(Main ROM 302)
The main ROM 302 is provided on the main control board 300. Further, the main ROM 302 is provided to store a control program executed by the main CPU 301, a data table, data for transmitting a command to the sub control board 400, and the like. Specifically, the main ROM 302 is a program for performing the processing shown in FIGS. 11 to 28, an arrangement data table (see FIG. 4) described later, a symbol combination table described later (see FIG. 5), and a normal gaming state described later. A winning combination determination table (see FIG. 6), a later-described winning combination determination table for RT gaming state (see FIG. 7), and a later-described combination determination table for RB gaming status (see FIG. 8) are stored.

(メインRAM303)
メインRAM303は、メイン制御基板300に設けられている。また、メインRAM303は、メインCPU301によるプログラムの実行により決定された各種データを記憶するために設けられている。具体的には、メインRAM303には、後述の投入枚数カウンタ等の各種カウンタや、後述の設定値格納領域等の各種格納領域が設けられている。
(Main RAM 303)
The main RAM 303 is provided on the main control board 300. The main RAM 303 is provided to store various data determined by execution of a program by the main CPU 301. Specifically, the main RAM 303 is provided with various counters such as an input sheet number counter described later, and various storage areas such as a set value storage area described later.

また、図33に示すように、メインROM302およびメインRAM303には、第1記憶領域2100と、第2記憶領域2200と、が設けられている。なお、第1記憶領域2100と第2記憶領域2200とは、完全に独立した領域であり、それぞれを分離可能である。例えば、本実施の形態では、第1記憶領域2100と、第2記憶領域2200と、を1つのメインROM302および1つのメインRAM303上の領域としているが、メインROMおよびメインRAMを複数設け、一方に第1記憶領域2100を設け、他方に第2記憶領域2200を設けてもよい。また、メインROMおよびメインRAMのうち、一方を1つとし、他方を複数設けた構成としてもよい。   Further, as shown in FIG. 33, in the main ROM 302 and the main RAM 303, a first storage area 2100 and a second storage area 2200 are provided. The first storage area 2100 and the second storage area 2200 are completely independent areas, and can be separated from each other. For example, in the present embodiment, although the first storage area 2100 and the second storage area 2200 are areas on one main ROM 302 and one main RAM 303, a plurality of main ROM and main RAM are provided, The first storage area 2100 may be provided, and the second storage area 2200 may be provided on the other. Further, one of the main ROM and the main RAM may be one, and a plurality of the other may be provided.

メインROM302の第1記憶領域2100には、第1制御領域2110と、第1データ領域2120と、が設けられている。また、メインROM302の第2記憶領域2200には、第2制御領域2210と、第2データ領域2220と、が設けられている。さらに、メインRAM303の第1記憶領域2100には、第1ワーク領域2160が設けられており、メインRAM303の第2記憶領域2200には、第2ワーク領域2260が設けられている。   The first storage area 2100 of the main ROM 302 is provided with a first control area 2110 and a first data area 2120. Further, in the second storage area 2200 of the main ROM 302, a second control area 2210 and a second data area 2220 are provided. Furthermore, a first work area 2160 is provided in a first storage area 2100 of the main RAM 303, and a second work area 2260 is provided in a second storage area 2200 of the main RAM 303.

第1制御領域2110には、第1制御を行うためのプログラムが記憶されており、例えば、遊技の進行を制御するプログラムが記憶されている。第1制御領域2110に記憶されたプログラムを、例えば、第1制御プログラムという。なお、本実施の形態においては、メインROM302に記憶されるプログラムのうち、特にことわりのないプログラムは、第1制御領域2110に記憶されたものとする。   In the first control area 2110, a program for performing the first control is stored, and for example, a program for controlling the progress of the game is stored. The program stored in the first control area 2110 is called, for example, a first control program. In the present embodiment, among the programs stored in the main ROM 302, it is assumed that a program without particular notice is stored in the first control area 2110.

第1データ領域2120には、第1制御領域2110に記憶されたプログラムを実行する際に使用するデータ(各種テーブルや初期値、固定値等の情報)が記憶されている。第1データ領域2120に記憶されたデータを、例えば、第1制御データという。   The first data area 2120 stores data (information such as various tables, initial values, fixed values, etc.) used when executing the program stored in the first control area 2110. The data stored in the first data area 2120 is called, for example, first control data.

第2制御領域2210には、第2制御を行うためのプログラムが記憶されており、例えば、遊技機1のセキュリティチェックを行うプログラムが記憶されている。第2制御領域2210に記憶されたプログラムを、例えば、第2制御プログラムという。なお、第2制御領域2210に記憶されるプログラムの詳細については、後述する。   In the second control area 2210, a program for performing the second control is stored, and for example, a program for performing a security check of the gaming machine 1 is stored. The program stored in the second control area 2210 is called, for example, a second control program. The details of the program stored in the second control area 2210 will be described later.

第2データ領域2220には、第2制御領域2210に記憶されたプログラムを実行する際に使用するデータ(各種テーブルや初期値、固定値等の情報)が記憶されている。第2データ領域2220に記憶されたデータを、例えば、第2制御データという。   In the second data area 2220, data (information such as various tables, initial values, fixed values, etc.) used when executing the program stored in the second control area 2210 is stored. The data stored in the second data area 2220 is called, for example, second control data.

第1ワーク領域2160は、第1制御において更新および参照が可能であって、第2制御においては更新されず参照のみ可能とされたデータ(可変データ)を記憶する記憶領域である。具体的には、第1ワーク領域2160には、第1制御プログラムの実行においては、データの作成、更新および参照は可能であるが、第2制御プログラムの実行においては、データの作成および更新は行われず、参照のみが可能とされている。   The first work area 2160 is a storage area that can be updated and referred to in the first control, and stores data (variable data) that is not updated and can be referred to only in the second control. Specifically, in the first work area 2160, data can be created, updated and referenced in the execution of the first control program, but in the execution of the second control program, the creation and the update of data are It is not done and only reference is possible.

第2ワーク領域2260は、第2制御において更新および参照が可能であって、第1制御においては更新されず参照のみ可能とされたデータ(可変データ)を記憶する記憶領域である。具体的には、第2ワーク領域2260には、第2制御プログラムの実行においては、データの作成、更新および参照は可能であるが、第1制御プログラムの実行においては、データの作成および更新は行われず、参照のみが可能とされている。   The second work area 2260 is a storage area that can be updated and referred to in the second control, and stores data (variable data) that is not updated in the first control and that can be referred to only. Specifically, in the second work area 2260, creation, update and reference of data are possible in the execution of the second control program, but creation and update of the data in the execution of the first control program are It is not done and only reference is possible.

ここで、メインROM302の記憶容量を、「16KB(キロバイト)」とし、第1制御領域2110の記憶容量を、「4.5KB(キロバイト)」、第1データ領域2120の記憶容量を、「3KB(キロバイト)」とする。また、メインRAM303の記憶容量を、「1024KB(キロバイト)」とし、第1ワーク領域2160の記憶容量を、「512KB(キロバイト)」とする。このように、第1記憶領域2100の記憶容量が制限されている場合に、新たなプログラムやデータを増やそうとした際に、追加分のプログラムやデータを、第2記憶領域2200に記憶させるようにすれば、第1記憶領域2100の容量を圧迫せずに、新たな機能を追加させることができる。   Here, the storage capacity of the main ROM 302 is "16 KB (kilobyte)", the storage capacity of the first control area 2110 is "4.5 KB (kilobyte)", and the storage capacity of the first data area 2120 is "3 KB ( Kilobytes). Further, the storage capacity of the main RAM 303 is “1024 KB (kilobyte)”, and the storage capacity of the first work area 2160 is “512 KB (kilobyte)”. As described above, when it is attempted to increase a new program or data when the storage capacity of the first storage area 2100 is limited, the additional program or data may be stored in the second storage area 2200. If this is done, new functions can be added without squeezing the capacity of the first storage area 2100.

さらに、第1制御領域2110には、第2制御領域2210に記憶された所定の第2制御プログラムを呼び出すことにより処理を中断し、当該第2制御プログラムからの復帰により処理を再開する第1制御プログラムが記憶されている。
また、第1制御プログラムには、呼び出しを行う第2制御プログラムのアドレスが予め規定されている。
Furthermore, in the first control area 2110, the process is interrupted by calling a predetermined second control program stored in the second control area 2210, and the first control is resumed by returning from the second control program. The program is stored.
In the first control program, an address of a second control program to be called is defined in advance.

また、第2制御領域2210には、第1制御領域2110に記憶された上記第1制御プログラムに呼び出されることにより実行され、終了後にこの第1制御プログラムに復帰させる第2制御プログラムが記憶されている。
また、第1制御領域2110に記憶された第1制御プログラムは、第1制御領域2110に記憶された他の第1制御プログラムをサブルーチンとして呼び出すことがあるが、第2制御領域2210に記憶された第2制御プログラムは、第1制御領域2110に記憶された第1制御プログラムをサブルーチンとして呼び出すことはない。
In addition, the second control area 2210 stores a second control program that is executed by being called by the first control program stored in the first control area 2110 and that returns to the first control program after completion. There is.
The first control program stored in the first control area 2110 may call another first control program stored in the first control area 2110 as a subroutine, but the first control program stored in the second control area 2210 The second control program does not call the first control program stored in the first control area 2110 as a subroutine.

また、第2制御領域2210には、上記のように、自機に関する異常を検出するための処理(以下、セキュリティ処理という)の少なくとも一部を構成する第2制御プログラムが記憶されている。なお、第2制御領域2210には、セキュリティ処理を行う制御プログラムの内の特定(一部)の制御プログラムのみを記憶させてもよいし、セキュリティ処理を行う制御プログラムの全てを記憶させてもよい。   Further, as described above, the second control area 2210 stores the second control program that constitutes at least a part of the process for detecting an abnormality related to the own machine (hereinafter referred to as the security process). In the second control area 2210, only a specific (partial) control program of the control programs for performing security processing may be stored, or all of the control programs for performing security processing may be stored. .

上記セキュリティ処理としては、例えば、メダル投入に関する異常検知処理、メダル払出に関する異常検知処理等がある。
例えば、第2制御領域2210には、メダル投入に関する異常検知処理として、セレクターセンサ14sによる検知結果に基づくメダルの投入に関する異常を検出するための処理の少なくとも一部を構成する第2制御プログラムが記憶されている。
また、第2制御領域2210には、メダル払出に関する異常検知処理として、ホッパーセンサ202sによる検知結果に基づくメダルの払い出しに関する異常を検出するための処理の少なくとも一部を構成する第2制御プログラムが記憶されている。
Examples of the security processing include abnormality detection processing relating to medal insertion, abnormality detection processing relating to medal payout, and the like.
For example, in the second control area 2210, a second control program, which constitutes at least a part of a process for detecting an abnormality related to the insertion of a medal based on a detection result by the selector sensor 14s, is stored as an abnormality detection process related to the medal insertion. It is done.
The second control area 2210 stores, as abnormality detection processing relating to medal payout, a second control program that configures at least a part of processing for detecting an abnormality relating to medal payout based on a detection result by the hopper sensor 202s. It is done.

また、第2制御領域2210には、試験装置に信号を出力するための処理の少なくとも一部を構成する第2制御プログラムが記憶されている。なお、上記セキュリティ処理と同様に、第2制御領域2210には、試験装置に信号を出力するための処理を行う制御プログラムの内の特定(一部)の制御プログラムのみを記憶させてもよいし、試験装置に信号を出力するための処理を行う制御プログラムの全てを記憶させてもよい。   Also, in the second control area 2210, a second control program that constitutes at least a part of the process for outputting a signal to the test apparatus is stored. In the second control area 2210, as in the above security processing, only a specific (part of) control program of the control programs that perform processing for outputting a signal to the test apparatus may be stored. Alternatively, all of the control programs that perform processing for outputting signals to the test apparatus may be stored.

メインROM302、メインRAM303には、上記に示すように、その役割に応じた記憶領域がそれぞれ設けられており、これらの記憶領域を表した仮想空間(以下では「メモリ空間」とも称している)を図34乃至図41に示している。詳細については後述する。   As described above, the main ROM 302 and the main RAM 303 are provided with storage areas corresponding to their roles, respectively, and a virtual space (hereinafter also referred to as "memory space") representing these storage areas is provided. It is shown in FIG. 34 to FIG. Details will be described later.

(メイン乱数発生器304)
メイン乱数発生器304は、メイン制御基板300に設けられている。また、メイン乱数発生器304は、当選役を決定する抽選等で用いられる乱数値を生成するために設けられている。ここで、本実施形態において、メイン乱数発生器304は、「0」〜「65535」の範囲で乱数値を生成する。
(Main random number generator 304)
The main random number generator 304 is provided on the main control board 300. Further, the main random number generator 304 is provided to generate a random value used in a lottery or the like for determining a winning combination. Here, in the present embodiment, the main random number generator 304 generates random number values in the range of “0” to “65535”.

(メインI/F回路305)
メインI/F回路305は、メイン制御基板300と、ステータス基板100、リール制御基板150、電源基板200、サブ制御基板400間での信号(コマンド)の送受信を行うための回路である。なお、「I/F」とは、「インターフェイス」の略称である。また、メインI/F回路305は、入出力ポート(I/Oポート)306を有している。入出力ポート306は、メイン制御基板300(メインCPU301)と、外部の装置との、データの入出力を行うためのものである。
(Main I / F circuit 305)
The main I / F circuit 305 is a circuit for transmitting and receiving signals (commands) between the main control board 300, the status board 100, the reel control board 150, the power supply board 200, and the sub control board 400. Here, "I / F" is an abbreviation of "interface". Further, the main I / F circuit 305 has an input / output port (I / O port) 306. The input / output port 306 is used to input / output data between the main control board 300 (main CPU 301) and an external device.

(演出ボタンセンサ21s)
演出ボタンセンサ21sは、演出ボタン21が接続されており、演出ボタン21の操作を検出するために設けられている。ここで、演出ボタンセンサ21sは、演出ボタン21の操作を検出したことに基づいて、サブ制御基板400に対して演出ボタンセンサ入力信号を送信する。そして、サブ制御基板400は、演出ボタンセンサ入力信号を受信したことに基づいて、演出ボタン21が操作されたときの処理を行う。
(Effect button sensor 21s)
The effect button sensor 21 s is connected to the effect button 21 and is provided to detect the operation of the effect button 21. Here, the effect button sensor 21s transmits an effect button sensor input signal to the sub control board 400 based on the detection of the operation of the effect button 21. Then, the sub control board 400 performs processing when the effect button 21 is operated based on the reception of the effect button sensor input signal.

(十字キーセンサ22s)
十字キーセンサ22sは、十字キー22が接続されており、十字キー22の操作を検出するために設けられている。ここで、十字キーセンサ22sは、十字キー22の操作を検出したことに基づいて、サブ制御基板400に対して十字キーセンサ入力信号を送信する。そして、サブ制御基板400は、十字キーセンサ入力信号を受信したことに基づいて、十字キー22が操作されたときの処理を行う。
(Cursor key sensor 22s)
The cross key sensor 22 s is connected to the cross key 22 and is provided to detect an operation of the cross key 22. Here, the cross key sensor 22s transmits a cross key sensor input signal to the sub control board 400 based on the detection of the operation of the cross key 22. Then, the sub control board 400 performs processing when the cross key 22 is operated based on the reception of the cross key sensor input signal.

(サブCPU401)
サブCPU401は、サブ制御基板400に設けられている。また、サブCPU401は、後述のサブROM402に記憶されているプログラムを読み込み、メイン制御基板300から受信したコマンドの情報や、演出ボタンセンサ21sや、十字キーセンサ22sから入力された信号に基づいて所定の演算を行い、当該演算の結果を演出制御基板500等に供給するために設けられている。
(Sub CPU 401)
The sub CPU 401 is provided on the sub control board 400. Further, the sub CPU 401 reads a program stored in the sub ROM 402 described later, and based on information of a command received from the main control board 300, a signal input from the effect button sensor 21s, or a signal from the cross key sensor 22s It is provided to perform an operation and to supply the result of the operation to the effect control board 500 or the like.

(サブROM402)
サブROM402は、サブ制御基板400に設けられている。また、サブROM402は、サブCPU401により実行される制御プログラム、データテーブル等を記憶するために設けられている。具体的には、サブROM402は、後述の演出決定テーブル(図10参照)等を記憶している。
(Sub ROM 402)
The sub ROM 402 is provided on the sub control board 400. The sub ROM 402 is provided to store a control program executed by the sub CPU 401, a data table, and the like. Specifically, the sub ROM 402 stores an effect determination table (see FIG. 10) and the like described later.

(サブRAM403)
サブRAM403は、サブ制御基板400に設けられている。また、サブRAM403は、サブCPU401によるプログラムの実行により決定された各種データを記憶するために設けられている。
(Sub RAM 403)
The sub RAM 403 is provided on the sub control board 400. The sub RAM 403 is provided to store various data determined by execution of a program by the sub CPU 401.

(サブ乱数発生器404)
サブ乱数発生器404は、サブ制御基板400に設けられている。また、サブ乱数発生器404は、演出を決定する抽選等で用いられる乱数値を生成するために設けられている。ここで、本実施形態において、サブ乱数発生器404は、「0」〜「65535」の範囲で乱数値を生成する。
(Sub-random number generator 404)
The sub random number generator 404 is provided on the sub control board 400. In addition, the sub random number generator 404 is provided to generate a random value used in a lottery or the like for determining an effect. Here, in the present embodiment, the sub random number generator 404 generates random number values in the range of “0” to “65535”.

(演出制御CPU501)
演出制御CPU501は、演出制御基板500に設けられている。また、演出制御CPU501は、後述の演出制御ROM502に記憶されているプログラムを読み込み、サブ制御基板400から受信した信号に基づいてディスプレイリストを作成するために設けられている。また、演出制御CPU501は、後述のCGROM504に記憶されている画像データを液晶表示装置31に表示させる制御を行う。
(Effect control CPU 501)
The effect control CPU 501 is provided on the effect control board 500. Further, the effect control CPU 501 is provided to read a program stored in the effect control ROM 502 to be described later, and create a display list based on a signal received from the sub control board 400. In addition, the effect control CPU 501 controls the liquid crystal display device 31 to display image data stored in the CGROM 504 described later.

(演出制御ROM502)
演出制御ROM502は、演出制御基板500に設けられている。また、演出制御ROM502は、演出制御CPU501により実行される制御プログラム、データテーブル等を記憶するために設けられている。具体的には、演出制御ROM502は、演出制御CPU501の制御処理のプログラム、ディスプレイリストを生成するためのディスプレイリスト生成プログラム、アニメーションを表示する際に参照されるアニメシーンの組み合わせやアニメシーンの表示順序、画像の表示時間を示すウエイトフレーム、スプライトの識別番号や転送元アドレス等の各種対象データ、スプライトの表示位置や転送先アドレス等の各種パラメータ、描画方法等が記憶されている。
(Effect control ROM 502)
The effect control ROM 502 is provided on the effect control board 500. In addition, the effect control ROM 502 is provided to store a control program executed by the effect control CPU 501, a data table, and the like. Specifically, the effect control ROM 502 is a program for control processing of the effect control CPU 501, a display list generation program for generating a display list, a combination of animation scenes referred to when displaying an animation, and an animation scene display order A weight frame indicating display time of an image, various target data such as sprite identification number and transfer source address, various parameters such as display position and transfer destination address of sprite, and drawing method are stored.

(演出制御RAM503)
演出制御RAM503は、演出制御基板500に設けられている。また、演出制御RAM503は、演出制御CPU501の演算処理時におけるデータのワークエリアとして機能し、演出制御ROM502から読み出されたデータを一時的に記憶するために設けられている。
(Effect control RAM 503)
The effect control RAM 503 is provided on the effect control board 500. Further, the effect control RAM 503 functions as a work area of data at the time of operation processing of the effect control CPU 501, and is provided to temporarily store data read from the effect control ROM 502.

(CGROM504)
CGROM504は、演出制御基板500に設けられている。また、CGROM504は、所定範囲の画素(例えば、「32」ピクセル×「32」ピクセル)における画素毎に色番号を指定する色番号情報と、画像の透明度を示すα値とから構成され画素情報の集合からなる画像データを圧縮して記憶するために設けられている。
(CGROM 504)
The CGROM 504 is provided on the effect control board 500. The CGROM 504 is composed of color number information for specifying a color number for each pixel in a predetermined range of pixels (for example, “32” pixels × “32” pixels) and an α value indicating transparency of the image. It is provided to compress and store image data consisting of a set.

(音源IC505)
音源IC505は、演出制御基板500に設けられている。また、音源IC505は、後述の音源ROM506に記憶されている音声に関するプログラムやデータを読み込み、スピーカ33を駆動する音声信号を生成するために設けられている。
(Sound source IC 505)
The sound source IC 505 is provided on the effect control board 500. Further, the sound source IC 505 is provided to read a program or data concerning sound stored in a sound source ROM 506 described later, and generate an audio signal for driving the speaker 33.

(音源ROM506)
音源ROM506は、演出制御基板500に設けられている。また、音源ROM506は、演出を実行する際に出力される音声に関するプログラムやデータ等を記憶するために設けられている。
(Sound source ROM 506)
The sound source ROM 506 is provided on the effect control board 500. Further, the sound source ROM 506 is provided to store programs, data, and the like related to the sound that is output when the effect is performed.

(VDP507)
VDP507は、いわゆる画像プロセッサであり、演出制御CPU501からの指示に基づいて、第1フレームバッファ領域と第2フレームバッファ領域のうち「表示用フレームバッファ領域」から画像データを読み出す制御を行う。そして、読み出した画像データに基づいて、映像信号(例えば、LVDS信号やRGB信号)を生成することにより、液晶表示装置31に画像を表示する制御が行われる。なお、VDP507は、図示しない制御レジスタ、CGバスインターフェイス、CPUインターフェイス、クロック生成回路、伸長回路、描画回路、表示回路、メモリコントローラ等を備えており、これらをバスによって接続している。
(VDP 507)
The VDP 507 is a so-called image processor, and based on an instruction from the effect control CPU 501, performs control to read out image data from the "display frame buffer area" of the first frame buffer area and the second frame buffer area. Then, based on the read image data, a video signal (for example, an LVDS signal or an RGB signal) is generated to perform control to display an image on the liquid crystal display device 31. The VDP 507 includes a control register (not shown), a CG bus interface, a CPU interface, a clock generation circuit, an expansion circuit, a drawing circuit, a display circuit, a memory controller, and the like, which are connected by a bus.

次に、図42に示すセレクター14の動作原理図を用いて、セレクター14について説明する。
図42に示すように、セレクター14は、メダル受入口51と、メダル誘導通路52と、メダル排出口53と、ブロッカ54と、を有している。また、セレクター14には、セレクターセンサ14sとして、メダル投入検知センサ61と、第1メダル通過センサ62と、第2メダル通過センサ63と、が設けられている。
Next, the selector 14 will be described using the principle of operation of the selector 14 shown in FIG.
As shown in FIG. 42, the selector 14 has a medal receiving port 51, a medal guiding passage 52, a medal discharge port 53, and a blocker 54. Further, the selector 14 is provided with a medal insertion detection sensor 61, a first medal passage sensor 62, and a second medal passage sensor 63 as the selector sensor 14s.

メダル受入口51は、メダル投入口6から投入されたメダルを、メダル誘導通路52に受け入れるためのものである。メダル誘導通路52は、メダル受入口51から受け入れられたメダルを、メダル排出口53に誘導するための通路である。なお、メダル誘導通路52には、通路の途中の底部に開口部(溝)が設けられ、ブロッカ54により開口部が塞がれることにより、メダル排出口53への通路が形成されるようになっている。また、メダル誘導通路52の開口部は、メダル払出口25と連通されるようになっている。   The medal receiver 51 is for receiving the medal inserted from the medal insertion slot 6 into the medal guiding passage 52. The medal guiding passage 52 is a passage for guiding the medal received from the medal receiving port 51 to the medal discharge port 53. In the medal guiding passage 52, an opening (groove) is provided at the bottom of the passage, and the opening is closed by the blocker 54, whereby a passage to the medal discharge port 53 is formed. ing. Further, the opening of the medal guiding passage 52 is in communication with the medal payout opening 25.

メダル排出口53は、メダル誘導通路52に誘導されたメダルを、セレクター14から排出させるためのものである。また、メダル排出口53は、セレクターガイド70と接続されており、メダル排出口53から排出されたメダルは、セレクターガイド70に導出される。さらに、セレクターガイド70の排出先には、ホッパー202が設けられており、セレクター14のメダル排出口53から排出されたメダルは、セレクターガイド70を通って、ホッパー202に誘導されるようになっている。   The medal discharge port 53 is for discharging the medal guided to the medal guiding passage 52 from the selector 14. Further, the medal discharge port 53 is connected to the selector guide 70, and the medal discharged from the medal discharge port 53 is derived to the selector guide 70. Furthermore, the hopper 202 is provided at the discharge destination of the selector guide 70, and the medal discharged from the medal discharge port 53 of the selector 14 is guided to the hopper 202 through the selector guide 70. There is.

ブロッカ54は、セレクター14から排出されるメダルの排出先を切り替えるものである。具体的には、メダルの受け入れを許可する場合には、ブロッカ54は、メダル誘導通路52の開口部を塞ぐように制御され、メダル誘導通路52に受け入れられたメダルは、ブロッカ54の上を転がり、メダル排出口53に誘導される。また、メダルの受け入れを許可しない場合には、ブロッカ54は、メダル誘導通路52の開口部を開口させるように制御され、メダル誘導通路52に受け入れられたメダルは、メダル誘導通路52の開口部から排出され、メダル払出口25に誘導される。   The blocker 54 switches the discharge destination of the medals discharged from the selector 14. Specifically, when the medal acceptance is permitted, the blocker 54 is controlled to close the opening of the medal guiding passage 52, and the medal received by the medal guiding passage 52 rolls on the blocker 54. , Is led to the medal discharge port 53. Further, when the acceptance of the medal is not permitted, the blocker 54 is controlled to open the opening of the medal guiding passage 52, and the medal received in the medal guiding passage 52 is from the opening of the medal guiding passage 52. It is discharged and guided to the medal payout opening 25.

メダル投入検知センサ61は、メダル誘導通路52のメダル受入口51からメダル排出口53までの間における、最もメダル受入口51側で、メダル受入口51の近傍に配設され、メダル投入口6からメダル誘導通路52への投入物の投入を検出するものである。なお、メダル投入検知センサ61として、例えば、物理センサが設けられる。   The medal insertion detection sensor 61 is disposed in the vicinity of the medal reception port 51 on the medal reception port 51 side most from the medal reception port 51 of the medal guiding passage 52 to the medal discharge port 53, and from the medal insertion port 6 The input of the input to the medal guiding passage 52 is detected. For example, a physical sensor is provided as the medal insertion detection sensor 61.

第1メダル通過センサ62および第2メダル通過センサ63は、メダル誘導通路52のメダル受入口51からメダル排出口53までの間における、メダル投入検知センサ61の次に、メダル誘導通路52に誘導されたメダルを互いに異なるタイミングで検出する位置に配設されている。また、第1メダル通過センサ62および第2メダル通過センサ63は、離れすぎず、1枚のメダルで双方のセンサが同時にメダルの検出を行う場合がある程度の距離に配設される。   The first medal passing sensor 62 and the second medal passing sensor 63 are guided to the medal guiding passage 52 next to the medal insertion detecting sensor 61 between the medal receiving port 51 of the medal guiding passage 52 and the medal discharging port 53. The medals are arranged at positions where they are detected at mutually different timings. In addition, the first medal passing sensor 62 and the second medal passing sensor 63 are disposed at a certain distance in the case where both sensors simultaneously detect the medal with one medal without being separated too much.

これにより、第1メダル通過センサ62および第2メダル通過センサ63は、メダルの正常な通過確認を行うことができる。具体的には、第1メダル通過センサ62および第2メダル通過センサ63は、ともに検出信号がOFFの状態から、第1メダル通過センサ62のみがONとなり、次に、第1メダル通過センサ62がONの状態で第2メダル通過センサ63もONとなる。次いで、第2メダル通過センサ63がONの状態で第1メダル通過センサ62のみがOFFとなり、最後に第1メダル通過センサ62および第2メダル通過センサ63ともにOFFとなることにより、メダルが正常に通過したことを確認することができる。   Thereby, the 1st medal passage sensor 62 and the 2nd medal passage sensor 63 can perform normal passage check of a medal. Specifically, only the first medal passage sensor 62 is turned ON from the state where the detection signal is OFF for both the first medal passage sensor 62 and the second medal passage sensor 63, and then the first medal passage sensor 62 In the state of ON, the second medal passage sensor 63 is also turned ON. Next, with the second medal passage sensor 63 turned on, only the first medal passage sensor 62 is turned off, and finally both the first medal passage sensor 62 and the second medal passage sensor 63 are turned off, so that the medals are normal. It can confirm that it passed.

一方、第1メダル通過センサ62および第2メダル通過センサ63から、上記順番以外で検出信号を入力した場合には、メダルの逆流等の不正通過であることを認識することができる。なお、第1メダル通過センサ62および第2メダル通過センサ63として、例えば、光学センサが設けられる。   On the other hand, when the detection signal is input from the first medal passage sensor 62 and the second medal passage sensor 63 in the order other than the above order, it is possible to recognize that the passage is illegal, such as the backflow of medals. In addition, as the first medal passage sensor 62 and the second medal passage sensor 63, for example, an optical sensor is provided.

次に、図43に示すホッパー202の一部断面図、図44に示すホッパー202の動作原理図を用いて、ホッパー202について説明する。
図43、図44に示すように、ホッパー202は、メダル貯留槽81と、メダル払出装置82と、を備えている。
Next, the hopper 202 will be described using a partial cross-sectional view of the hopper 202 shown in FIG. 43 and an operation principle diagram of the hopper 202 shown in FIG.
As shown in FIGS. 43 and 44, the hopper 202 includes a medal storage tank 81 and a medal payout device 82.

メダル貯留槽81には、多数のメダルを貯留するメダル貯留部が設けられている。また、メダル貯留槽81は、底部に開口部が設けられ、この開口部からメダル払出装置82にメダルが供給できるようになっている。さらに、メダル貯留槽81の底部外周には、メダル払出装置82と嵌合する嵌合部が設けられている。なお、メダル貯留槽81とメダル払出装置82は、接続面が傾斜して接続されている。   The medal storage tank 81 is provided with a medal storage unit for storing a large number of medals. Further, the medal storage tank 81 is provided with an opening at the bottom, and medals can be supplied to the medal payout device 82 from this opening. Furthermore, on the outer periphery of the bottom portion of the medal storage tank 81, a fitting portion that fits with the medal payout device 82 is provided. The connection surface of the medal storage tank 81 and the medal payout device 82 are connected in an inclined manner.

メダル払出装置82は、ベース部83と、メインディスク84と、検出レバー87と、を有している。また、メダル払出装置82には、ホッパーモータ91が設けられているとともに、ホッパーセンサ202sとして、払出センサ92が設けられている。   The medal payout device 82 has a base portion 83, a main disc 84, and a detection lever 87. Further, the medal payout device 82 is provided with a hopper motor 91 and a payout sensor 92 as a hopper sensor 202s.

ベース部83は、メダル払出装置82の傾斜した上面に設けられ、略中央には、メインディスク84を収納する凹部が形成され、一端にはメダルを排出させ、排出スリット204と連通する排出通路が形成されている。   The base portion 83 is provided on the inclined upper surface of the medal payout device 82, and a concave portion for storing the main disc 84 is formed substantially at the center, the medal is discharged at one end, and the discharge passage communicating with the discharge slit 204 is It is formed.

メインディスク84は、ベース部83の凹部に設けられ、上面ディスク85と、下面ディスク86と、を有している。
上面ディスク85は、メダルを受け入れるディスク開口部85aが円周を等分する複数個所(図中6ヶ所)に設けられている。下面ディスク86は、上面ディスク85の下部に設けられ、上面ディスク85の各ディスク開口部85aと対応するように、メダル収納スペース86aが切り欠かれた形状を有している。
The main disk 84 is provided in the recess of the base portion 83, and has an upper surface disk 85 and a lower surface disk 86.
The upper surface disc 85 is provided at a plurality of places (six places in the drawing) in which the disc openings 85a for receiving the medals equally divide the circumference. The lower surface disc 86 is provided at the lower part of the upper surface disc 85, and has a shape in which the medal storage space 86a is cut out so as to correspond to each disc opening 85a of the upper surface disc 85.

検出レバー87は、メインディスク84の下部に設けられ、一端にピンが設けられている。検出レバー87のピンは、メインディスク84の外周部近傍でメインディスク84の上面まで突出している。なお、検出レバー87は、バネによって初期位置に付勢されている。   The detection lever 87 is provided at the lower part of the main disc 84, and a pin is provided at one end. The pin of the detection lever 87 protrudes near the outer peripheral portion of the main disk 84 to the upper surface of the main disk 84. The detection lever 87 is biased to an initial position by a spring.

ホッパーモータ91は、メダル払出装置82の内部に設けられ、回転軸をメインディスク84の中心軸に軸支し、メインディスク84を回転させるものである。
払出センサ92は、検出レバー87が所定位置に移動した場合に、ON信号を出力し、検出レバー87が初期位置にある場合には、OFF信号を出力するものである。
The hopper motor 91 is provided inside the medal payout device 82, supports the rotation shaft to the central axis of the main disc 84, and rotates the main disc 84.
The payout sensor 92 outputs an ON signal when the detection lever 87 moves to a predetermined position, and outputs an OFF signal when the detection lever 87 is at an initial position.

このようなホッパー202において、メダル貯留槽81に貯留されたメダルは、メダル貯留槽81の開口部から、上面ディスク85のディスク開口部85aに受け入れられ、下面ディスク86のメダル収納スペース86aに収納される。そして、ホッパーモータ91が駆動されると、メインディスク84が回転する。   In such a hopper 202, the medal stored in the medal storage tank 81 is received from the opening of the medal storage tank 81 to the disc opening 85a of the upper surface disc 85, and stored in the medal storage space 86a of the lower surface disc 86. Ru. Then, when the hopper motor 91 is driven, the main disc 84 rotates.

メインディスク84が回転すると、メダル収納スペース86aに収納されたメダルも移動され、検出レバー87のピンに当接される。さらに、メインディスク84が回転すると、メダルは、バネの付勢力に抗して検出レバー87を動かし、検出レバー87が払出センサ92に検出され、ON信号が出力される。   When the main disc 84 rotates, the medal stored in the medal storage space 86 a is also moved and abuts on the pin of the detection lever 87. Furthermore, when the main disc 84 rotates, the medal moves the detection lever 87 against the biasing force of the spring, the detection lever 87 is detected by the payout sensor 92, and an ON signal is output.

さらに、メインディスク84が回転すると、メダルは、排出通路を通って排出スリット204から排出される。メダルが排出されると、検出レバー87への押圧が解除され、バネの付勢力によって検出レバー87が初期位置に戻る。これにより、検出レバー87が払出センサ92に検出されなくなり、OFF信号が出力される。
このように、ホッパー202においては、ホッパーモータ91が駆動されることにより、メダルが払い出され、払出センサ92によってメダルの払い出しが検出される。
Furthermore, when the main disc 84 rotates, the medals are ejected from the ejection slit 204 through the ejection passage. When the medal is discharged, the pressure on the detection lever 87 is released, and the detection lever 87 returns to the initial position by the biasing force of the spring. As a result, the detection lever 87 is not detected by the payout sensor 92, and an OFF signal is output.
As described above, in the hopper 202, the hopper motor 91 is driven to pay out the medals, and the payout sensor 92 detects the payout of the medals.

次に、図34乃至図41を用いてメインRAMおよびメインROMを構成する記憶領域に基づいて構成されるメモリ空間について説明する。   Next, a memory space configured based on the storage areas constituting the main RAM and the main ROM will be described with reference to FIGS.

図34乃至図41は、本発明の実施の形態における遊技機が具備する記憶媒体(メモリ)のメモリ空間を示す図である。   FIGS. 34 to 41 are diagrams showing a memory space of a storage medium (memory) provided in the gaming machine according to the embodiment of the present invention.

特に、これらのメモリ空間(「仮想メモリ空間」、「メモリマップ」、「アドレス空間」とも称する)は、主制御基板が備えるメインROM302およびメインRAM303(「メインRWM(Read Write Memory)」とも称する)の各記憶媒体(メモリ媒体、集積回路(IC))が有する記憶領域を仮想空間上にマッピングしたものを示している。   In particular, these memory spaces (also referred to as “virtual memory space”, “memory map”, and “address space”) are the main ROM 302 and the main RAM 303 (also referred to as “main write WM”) included in the main control board. The storage area of each storage medium (memory medium, integrated circuit (IC)) is mapped on the virtual space.

すなわち、主制御基板が備えるメインCPU301が、遊技に関する制御処理を行うにあたって用いる各種のプログラムやデータ(遊技に用いる固定データ(遊技固定データ)、遊技の進行に伴って可変する可変データ(遊技可変データ)等)にアクセス(参照、更新)する仮想空間を示したものが「メモリ空間」である。言い換えれば、メインCPU301は、同一のプリント基板(PCB)上に実装された記憶媒体(メインROM302やメインRAM303)の記憶領域をこのメモリ空間の一部(またはその全部)として認識するものであって、このメインCPU301は、メモリ空間の各記憶領域(セクション)に対してデータの参照、更新等の処理を行う。   That is, various programs and data (fixed data (game fixed data) used for playing the game, variable data (game variable data changed) along with the progress of the game used by the main CPU 301 included in the main control board to perform control processing related to the game The “memory space” is a virtual space for accessing (referring, updating) etc.). In other words, the main CPU 301 recognizes the storage area of the storage medium (the main ROM 302 and the main RAM 303) mounted on the same printed circuit board (PCB) as a part (or all of) the memory space. The main CPU 301 performs processing such as data reference and update on each storage area (section) of the memory space.

このときのメインCPU301と記憶領域(メインROM302やメインRAM303)とは、バスによって配線(接続)(「バス配線」とも称する)されたものである。   The main CPU 301 and the storage area (the main ROM 302 and the main RAM 303) at this time are wired (connected) (also referred to as “bus wiring”) by a bus.

すなわち、実装上、異なる複数の記憶媒体が設けられたとしても、各記憶媒体に記憶されているデータ等を用いる参照元(上記の例では、メインCPU301)は、1つの参照先(メモリ空間上)のデータを参照等していることとなる。   That is, even if a plurality of different storage media are provided for implementation, the reference source (the main CPU 301 in the above example) using data etc. stored in each storage medium is one reference destination (on the memory space) Will be referred to etc.).

このようなメモリ空間は、その記憶する情報の種類や使用用途等に応じて1または複数の領域(記憶領域)に分別されており、その各領域における特定の位置に所定のデータ等を記憶することができる。このとき、各メモリ空間上には、各領域に記憶する所定のデータを識別する(指し示す)ためのアドレス情報(データ識別情報)が設定されており、このアドレス情報をメインCPU301が指定することでメインCPU301は、そのアドレス情報によって識別される、メモリ空間の記憶領域に記憶するデータを参照、更新することができる。   Such a memory space is divided into one or a plurality of areas (storage areas) in accordance with the type of information to be stored, the use application, etc., and predetermined data etc. are stored at specific positions in the respective areas. be able to. At this time, address information (data identification information) for identifying (pointing) predetermined data to be stored in each area is set in each memory space, and the main CPU 301 designates this address information. The main CPU 301 can refer to and update data stored in the storage area of the memory space, which is identified by the address information.

図34乃至図41は、同一のメモリ空間を示したものであって、同種の役割を持つ記憶領域によって構成されている。   FIGS. 34 to 41 show the same memory space, and are constituted by storage areas having the same role.

図34乃至図41の各図は、縦方向に、メモリ空間の全体容量(総メモリ容量)を表しており、メモリ空間上の位置を特定するための情報としてアドレス情報が設定されている。図34乃至図41では、このアドレス情報(16進法)として「0000H」〜「FFFFH」が示されている。このときの「H(ヘキサ)」はアドレス情報が、基数を「16」とした16進法に基づいて表現されたものであることを示すものである。   In each of FIGS. 34 to 41, the total capacity (total memory capacity) of the memory space is shown in the vertical direction, and address information is set as information for specifying the position on the memory space. In FIG. 34 to FIG. 41, "0000H" to "FFFFH" are shown as the address information (in hexadecimal notation). "H (hexa)" at this time indicates that the address information is expressed based on a hexadecimal system with a radix of "16".

また、メインCPU301によって参照(読み出し)が「0000H」に近い低位アドレスから「FFFFH」に近い高位アドレスの順番で行われる場合においては、遊技の進行に際してその遊技の結果に影響を及ぼすプログラムやデータを各記憶領域内の低位アドレスに記憶させ、他のプログラムやデータを、遊技の進行に際してその遊技の結果に影響を及ぼすプログラムやデータに比べて高位アドレスに記憶させる。   In addition, when the main CPU 301 executes the reference (reading) in the order of the lower address closer to "0000H" to the higher address closer to "FFFFH", the program or data that affect the outcome of the game as the game progresses The lower address in each storage area is stored, and another program or data is stored at a higher address than the program or data that affects the outcome of the game as the game progresses.

低位アドレスにプログラムやデータを記憶させることは、その低位アドレスよりも高位の高位アドレスに記憶したときと比べて、読み出し順序の早いアドレスに記憶させた状態にあることを示している。言い換えれば、プログラムやデータを高速に読み出すことができることを示している。   Storing a program or data in the low order address indicates that the program is stored in an address in a read order earlier than when stored in the high order address higher than the low order address. In other words, it indicates that programs and data can be read at high speed.

よって、遊技の進行に際して、より処理優先度の高い遊技の結果に影響を及ぼすプログラムやデータをより高速に、アクセス(参照、更新等)を行うことができるようになる。   Therefore, it is possible to access (refer to, update, etc.) programs and data that affect the result of the game with higher processing priority at the time of the progress of the game.

続いて、この図34乃至図41の各図は、横方向に、アクセスデータサイズ(領域幅)として「1バイト(8ビット)」が示されている。このアクセスデータサイズは、所定のアドレス情報をメインCPU301が指定したときに(一括で)処理できる処理単位を示すものであって、本例においては、「1バイト(8ビット)単位」で処理が可能であることを示している。   Subsequently, in each of FIGS. 34 to 41, "1 byte (8 bits)" is shown as the access data size (area width) in the horizontal direction. This access data size indicates a processing unit that can be processed (in a batch) when the main CPU 301 designates predetermined address information, and in this example, processing is performed in “1 byte (8 bits) unit”. It shows that it is possible.

これらの各図(図34乃至図41)に示すメモリ空間は、第1制御領域2110(「制御領域(1)」とも称する)、第1データ領域2120(「データ領域(1)」とも称する)、第2制御領域2210(「制御領域(2)」とも称する)、第2データ領域2220(「データ領域(2)」とも称する)、第1ワーク領域2160(「第1RWM領域」または「RWM領域(1)」とも称する)、第2ワーク領域2260(「第2RWM領域」または「RWM領域(2)」とも称する)を少なくとも備えている。各領域は、所定の容量(記憶容量、領域長)からなり、所定の情報(プログラムやデータ等)が記憶されている。上記では、第1制御領域2110、第1データ領域2120および第1ワーク領域2160を総称して「使用領域(第1使用領域2100)」と示し、第2制御領域2210、第2データ領域2220および第2ワーク領域2260を総称して「使用領域外(第2使用領域2200)」と示す。   The memory space shown in each of these figures (FIGS. 34 to 41) includes a first control area 2110 (also referred to as "control area (1)") and a first data area 2120 (also referred to as "data area (1)"). , Second control area 2210 (also referred to as "control area (2)"), second data area 2220 (also referred to as "data area (2)"), first work area 2160 ("first RWM area" or "RWM area") And at least a second work area 2260 (also referred to as “second RWM area” or “RWM area (2)”). Each area has a predetermined capacity (storage capacity, area length), and stores predetermined information (program, data, etc.). In the above description, the first control area 2110, the first data area 2120 and the first work area 2160 are collectively referred to as “use area (first use area 2100)”, and the second control area 2210, second data area 2220 and The second work area 2260 is generically referred to as "outside the use area (second use area 2200)".

これらの各領域(第1制御領域2110、第1データ領域2120、第1ワーク領域2160、第2制御領域2210、第2データ領域2220、第2ワーク領域2260)は、アドレス情報によって明確に分離された領域である(言い換えれば、アドレス情報を指定することによって所定の記憶領域に確実にアクセスできることを示す領域である)ことから、これらの各領域に記憶されたデータ等は、明示的に区別された領域に配置されている。言い換えれば、無造作にデータ等を任意の領域に配置したものではない。   Each of these areas (first control area 2110, first data area 2120, first work area 2160, second control area 2210, second data area 2220, second work area 2260) is clearly separated by the address information. (In other words, it is an area that indicates that a predetermined storage area can be reliably accessed by designating address information), so the data etc. stored in each of these areas are explicitly distinguished. Are located in the In other words, data and the like are not randomly placed in an arbitrary area.

上記において示すように、第1制御領域2110には、遊技の進行に関する制御処理を行うための制御プログラムのうち、遊技の結果に影響を及ぼす(与える)制御処理(第1制御処理)を行うための制御プログラム(「第1制御プログラム」とも称する)を記憶する領域である。例えば、第1制御領域2110には、遊技者が遊技媒体(遊技メダル)の投入口に遊技メダルを投入したことを検知する制御処理を行う制御プログラムや、遊技メダルが払い出されたことを検知する制御処理を行う制御プログラムのほか、RB状態、BB状態となったことを通知する制御処理を行う制御プログラムや、ドアが開放された状態にあることを出力する制御処理を行う制御プログラムなどが記憶されている。   As described above, in the first control area 2110, among the control programs for performing the control process related to the progression of the game, the control process (first control process) to affect (give) the result of the game is performed. The control program (also referred to as "first control program") of For example, in the first control area 2110, a control program for performing control processing to detect that a player has inserted a game medal into the slot of a game medium (game medal), or detection that a game medal has been paid out In addition to the control program that performs the control process, the control program that performs the control process that notifies that the RB state and the BB state are reached, and the control program that performs the control process that outputs that the door is in the open state It is memorized.

この第1制御プログラムは、処理を実行することで所定の機能を果たす機能的なまとまりを果たすモジュールが1または複数、設けられて構成されたものである(モジュール化されている)。この第1制御プログラムをモジュール化することによって、所定の機能を実現するための処理が構成要素(制御プログラム中の処理ステップ)間で相互に連関する状態を回避することができ、若しくは、最小限にでき、遊技全体の処理において各機能が実現される仕組み(処理)が容易に把握することができるようになる。   The first control program is configured (modularized) by providing one or more modules that perform functional grouping to perform predetermined functions by executing processing. By modularizing the first control program, it is possible to avoid a state in which processing for realizing a predetermined function is mutually associated between components (processing steps in the control program), or as a minimum. It is possible to easily grasp the mechanism (processing) by which each function is realized in the processing of the entire game.

また、第1データ領域2120は、第1制御領域2110において記憶している制御プログラム(第1制御プログラム)によって参照されるデータを記憶している領域である。この第1データ領域2120において記憶しているデータは、第1制御プログラムによる第1制御処理に用いられる(すなわち、後述する第2制御プログラムによる第2制御処理において用いられない)固定データ(「第1固定データ」とも称する)である。この固定データとは、初期設定された状態から変更することができないデータであることを示したものであって、「不変データ」とも称することがある。   The first data area 2120 is an area storing data referred to by the control program (first control program) stored in the first control area 2110. The data stored in the first data area 2120 is used for the first control process by the first control program (that is, not used in the second control process by the second control program described later). 1) also referred to as “fixed data”. The fixed data indicates that the data can not be changed from the initially set state, and may also be referred to as "immutable data".

また、第2制御領域2210は、第1制御領域2110において記憶する制御プログラム(上記では、「第1制御プログラム」と称している)とは異なる他の制御プログラム(「第2制御プログラム」と称する)を記憶している。この第2制御領域2210に記憶する第2制御プログラムは、遊技の結果に影響を及ぼさない(与えない)制御処理(第2制御処理)を行うための制御プログラムであると総称することができる。   Also, the second control area 2210 is called another control program ("second control program") different from the control program stored in the first control area 2110 (referred to above as the "first control program"). ) Is remembered. The second control program stored in the second control area 2210 can be generically referred to as a control program for performing control processing (second control processing) that does not affect (do not affect) the outcome of the game.

この第2制御プログラムもまた、第1制御プログラムと同様に、処理を実行することで所定の機能を果たす機能的なまとまりを果たすモジュールが1または複数、設けられて構成されたものである(モジュール化されている)。モジュール単位で実行する第2制御プログラムでは、モジュールを実行する直前に(より詳細には、モジュールの冒頭で)レジスタを保護する(レジスタに記憶していたデータを(他の記憶領域に)待避させる)処理を行い(「レジスタ保護処理」若しくは「レジスタ待避処理」と称する)、モジュールの実行完了直後に(より詳細には、モジュールの結びで)レジスタを復帰させる処理を行う(「レジスタ復帰処理」と称する)。   Similarly to the first control program, this second control program is also configured by providing one or more modules that perform functional grouping to perform predetermined functions by executing processing (module Has been The second control program executed in module units protects the register immediately before executing the module (more specifically, at the beginning of the module) (saves the data stored in the register (to another storage area)) ) Process (referred to as "register protection process" or "register save process"), and immediately after the completion of execution of the module (more specifically, by connecting the modules), perform a process to restore the register ("register return process") Called

このときのレジスタとは、上記に示すように、メインCPU301が演算処理等を行うために用意されたメインCPU301専用のメモリ(記憶装置)である。このレジスタは、他の記憶装置に比べ、記憶できるデータ容量は小さいがアクセス速度が高速で、処理の際に作業領域として用いられる。   As described above, the register at this time is a memory (storage device) dedicated to the main CPU 301 prepared for the main CPU 301 to perform arithmetic processing and the like. This register is smaller in storage capacity than the other storage devices, but has a high access speed and is used as a work area during processing.

このほか、第2制御プログラムもまた、モジュール化されていることから、所定の機能を実現するための処理が構成要素(制御プログラム中の処理ステップ)間で相互に連関する状態を回避することができ、若しくは、最小限にでき、遊技全体の処理において各機能が実現される仕組み(処理)が容易に把握することができるようになる。   Besides, since the second control program is also modularized, it is possible to avoid the state in which the process for realizing the predetermined function is mutually related between the components (processing steps in the control program). It is possible or possible to minimize, and it becomes possible to easily grasp the mechanism (processing) by which each function is realized in the processing of the entire game.

第2制御プログラムの第1の例として、遊技における不正行為(所謂、「ゴト行為」)を防止するために設けられた処理を行うための制御プログラムがある。   As a first example of the second control program, there is a control program for performing processing provided to prevent fraudulent acts (so-called "goto acts") in a game.

このときの不正行為とは、遊技媒体(遊技メダル)を検知するセレクターの機能に対して本来の機能を発揮できない若しくは誤認させる行為や、ホッパーの機能に対して本来の機能を発揮できなくする行為若しくは誤認させる行為、遊技機を構成する筐体の内部へと不正にアクセスする行為等の物理的な不正行為のほか、遊技状態等を誤認させる電波を発生させて遊技媒体を不正に獲得する行為などの電磁気的な不正行為が該当する。   In this case, the act of inaction means that the function of the selector for detecting game media (game medals) can not be exhibited or misidentified, or the action of the hopper can not be exhibited. In addition to physical misconduct such as an act of causing false recognition or an act of illegally accessing the inside of a chassis constituting a gaming machine, an act of generating a radio wave to misidentify a gaming state etc. and acquiring gaming media illegally Electromagnetic fraud such as is applicable.

また、第2制御プログラムの第2の例として、本遊技機における遊技の進行に関する制御処理が正常な動作であるか(意図する動作であるか、正常と判断する条件下での動作であるか等)を判断する試験用の確認信号を遊技機の外部に出力する制御プログラムがある。   In addition, as a second example of the second control program, whether the control processing related to the progression of the game in the gaming machine is a normal operation (whether it is an intended operation or an operation under the condition that it is determined to be normal) There is a control program that outputs a confirmation signal for testing to determine the etc.) to the outside of the gaming machine.

このときの試験とは、本遊技機に試験用の装置(外部試験装置)を接続し、本遊技機から出力される確認信号をその外部試験装置が受信することでその確認信号に基づく遊技に関する情報が予め指定された情報であること、若しくは、予め指定された範囲に属する情報であることで、上記に示す正常な動作であるかを確認することを示す。   The test at this time relates to the game based on the confirmation signal by connecting the test device (external test device) to the game machine and receiving the confirmation signal output from the game machine. The fact that the information is information designated in advance or information belonging to a range designated in advance indicates that confirmation is made as to whether the operation is normal as described above.

以上に示すような処理を行う第2制御プログラムを第2制御領域2210において記憶している。もちろん、これらの制御プログラムの内容はあくまでも例であって、これに限定されることなく、遊技の結果に影響を及ぼさない(与えない)制御処理(第2制御処理)を行うための制御プログラムであれば、どのような内容のプログラムであってもよい。   The second control program for performing the process as described above is stored in the second control area 2210. Of course, the contents of these control programs are merely examples, and the present invention is not limited to this, and is a control program for performing control processing (second control processing) that does not affect (do not affect) the outcome of the game. If it is, it may be a program of any content.

このほか、この第2制御領域2210に記憶している第2制御プログラムは、第1制御領域2110に記憶している第1制御プログラムから予め指定された手法によって呼び出されることによって第2制御処理を実行するものである。より具体的には、第2制御プログラムによる第2制御処理は、第1制御プログラムによる第1制御処理のサブルーチンとして処理されるものであって、第1制御プログラムによる第1制御処理において読み出された第2制御プログラムにおいて第2制御処理が行われ、この第2制御処理が完了したことを返答(通知)する(リターン命令を返す)処理が行われる(サブルーチン処理)。   Besides, the second control program stored in the second control area 2210 is called from the first control program stored in the first control area 2110 by a method specified in advance. It is something to execute. More specifically, the second control process by the second control program is processed as a subroutine of the first control process by the first control program, and is read out in the first control process by the first control program. A second control process is performed in the second control program, and a process of returning (notifying) the completion of the second control process (returning a return instruction) is performed (subroutine process).

このとき、第1制御プログラムによる第1制御処理としては、第2制御プログラムを呼び出すと、第1制御プログラムによる第1制御処理が一時的に停止した応答待ち状態(リターン待ち状態)へと状態変更する。また、第2制御プログラムの実行が完了してリターン命令が応答されると、第1制御処理としては、「応答待ち状態」を解除して「実行可能状態」へと変更する。   At this time, as the first control process by the first control program, when the second control program is called, the state is changed to the response waiting state (return waiting state) in which the first control process by the first control program is temporarily stopped. Do. Further, when the execution of the second control program is completed and the return command is answered, as the first control processing, the “response waiting state” is released and changed to the “executable state”.

これによって、第1制御処理では、第2制御処理を呼び出した、呼び出し直前の処理(ステップ)に戻る(リターンする)こととなり、以降の処理を再開することができるようになる。   As a result, in the first control process, the process returns to the process (step) immediately before the call which has called the second control process (return), and the subsequent processes can be resumed.

なお、この第1制御プログラムから呼び出される第2制御プログラムは、予め指定されたプログラム(静的プログラム)としている。このように静的プログラムとすることによって、明示されたプログラムが確実に実行されることが判断できる。   The second control program called from the first control program is a program designated in advance (static program). By making a static program in this way, it can be determined that the specified program is reliably executed.

そして、第1RWM領域(上記では「第1ワーク領域2160」とも称している)は、第1制御領域2110で記憶している第1制御プログラムによる第1制御処理において、リード(読み取り、参照)のほか、ライト(上書き、更新)することが可能であるデータを記憶している記憶領域である。この第1RWM領域に記憶しているデータは、参照、更新の各処理が可能であることから「可変データ」であると言える。しかしながら、この第1RWM領域に設けられた「可変データ」はあくまで、第1制御領域2110で記憶している第1制御プログラムによる第1制御処理において可変可能なデータであって、第2制御領域2210で記憶している第2制御プログラムによる第2制御処理においては参照のみされるデータ(更新されないデータ)である。   The first RWM area (also referred to above as “first work area 2160”) is read (read, referred) in the first control process by the first control program stored in the first control area 2110. In addition, it is a storage area that stores data that can be written (overwritten, updated). The data stored in the first RWM area can be said to be "variable data" because each process of reference and update is possible. However, the “variable data” provided in the first RWM area is data that can be changed in the first control processing by the first control program stored in the first control area 2110 to the second control area 2210. In the second control processing by the second control program stored in the above, it is data that is only referred to (data that is not updated).

このことから、この第1RWM領域は、第1使用領域が具備する領域であって、第1制御領域2110で記憶する第1制御プログラムによる第1制御処理において更新および参照を行い、第2制御領域2210で記憶する第2制御プログラムによる第2制御処理において更新されない可変データを記憶する第1RWM領域であると表現できる。   From this, this first RWM area is an area included in the first use area, and is updated and referred to in the first control processing by the first control program stored in the first control area 2110, and the second control area It can be expressed as the first RWM area storing variable data not updated in the second control process by the second control program stored in 2210.

次に、第2RWM領域(上記では「第2ワーク領域2260」とも称している)は、第2制御領域2210で記憶している第2制御プログラムによる第2制御処理において、リード(読み取り、参照)のほか、ライト(上書き、更新)することが可能であるデータを記憶している記憶領域である。この第2RWM領域に記憶しているデータは、参照、更新の各処理が可能であることから「可変データ」であると言える。しかしながら、この第2RWM領域に設けられた「可変データ」はあくまで、第2制御領域2210で記憶している第2制御プログラムによる第2制御処理において可変可能なデータであって、第1制御領域2110で記憶している第1制御プログラムによる第1制御処理においては参照のみがされるデータ(更新されないデータ)である。   Next, the second RWM area (also referred to above as “the second work area 2260”) is read (read, reference) in the second control process by the second control program stored in the second control area 2210. Besides, it is a storage area storing data which can be written (overwritten, updated). The data stored in the second RWM area can be said to be "variable data" because each process of reference and update is possible. However, the “variable data” provided in the second RWM area is, to the last, variable data in the second control process by the second control program stored in the second control area 2210, and the first control area 2110 In the first control processing by the first control program stored in the above, it is data (data that is not updated) that is only referred to.

このことから、この第2RWM領域は、第2使用領域が具備する領域であって、第1RWM領域とは異なり、第2制御領域2210で記憶する第2制御プログラムによる第2制御処理において更新および参照を行い、第1制御領域2110で記憶する第1制御プログラムによる第1制御処理においては更新されない可変データを記憶する第2RWM領域であると表現できる。   Therefore, unlike the first RWM area, the second RWM area is an area included in the second use area, and is updated and referred to in the second control processing by the second control program stored in the second control area 2210. , And can be expressed as a second RWM area that stores variable data that is not updated in the first control process by the first control program stored in the first control area 2110.

図34乃至図41には、上記に示す各領域を配置したメモリ空間を示しており、低位アドレスから高位アドレスに向かって昇順に、第1制御領域2110(「制御領域(1)」と図示)、第1データ領域2120(「データ領域(1)」と図示)、第2制御領域2210(「制御領域(2)」と図示)、第2データ領域2220(「データ領域(2)」と図示)、第1RWM領域(「RWM領域(1)」と図示)、第2RWM領域(「RWM領域(2)」と図示)が配置されている(実装されている)。   34 to 41 show memory spaces in which the above-described areas are arranged, and the first control area 2110 (shown as "control area (1)") in ascending order from low address to high address. , A first data area 2120 (shown as "data area (1)"), a second control area 2210 (shown as "control area (2)"), a second data area 2220 (shown as "data area (2)" The first RWM area (shown as “RWM area (1)”) and the second RWM area (shown as “RWM area (2)”) are arranged (implemented).

以下では、図34(a)について説明する。   Below, FIG. 34 (a) is demonstrated.

そのうち、図34(a)には、第1制御領域2110が実装されたアドレス情報に続くアドレス情報に第1データ領域2120を実装したものであって、すなわち、第1制御領域2110と第1データ領域2120とが連続して配置された状態を示している。このことから、第1制御領域2110とその第1制御領域2110に対する(対応する)第1データ領域2120とが一体となって配置されているとも言える。   Among them, in FIG. 34A, the first data area 2120 is mounted on the address information following the address information on which the first control area 2110 is mounted, that is, the first control area 2110 and the first data A state in which the area 2120 and the area 2120 are continuously arranged is shown. From this, it can be said that the first control area 2110 and the (corresponding) first data area 2120 for the first control area 2110 are disposed integrally.

また、この図34(a)には、第1データ領域2120を示すアドレス情報よりも高位アドレスのアドレス情報に第2制御領域2210を実装しており、第1データ領域2120を示すアドレス情報と、第2制御領域2210を示すアドレス情報とが連続したものでも、連続しないものでもよい。すなわち、第1データ領域2120と第2制御領域2210とが連続しているか否かは問わない。第1データ領域2120と第2制御領域2210とが連続していない場合には、任意のデータを記憶することができる領域(任意領域)が配置(実装)された状態であることによって連続していない状態としている。この任意領域は、どのようなデータ(任意データ)を記憶しても良いことを示している。もちろん、予め指定された初期データを記憶しておき、他の領域に関係するデータを記憶せず、結果として、いずれの領域としても使用しない「未使用領域」としてもよい。   Further, in FIG. 34A, the second control area 2210 is mounted on the address information of the higher order address than the address information indicating the first data area 2120, and the address information indicating the first data area 2120; The address information indicating the second control area 2210 may or may not be continuous. That is, it does not matter whether the first data area 2120 and the second control area 2210 are continuous or not. When the first data area 2120 and the second control area 2210 are not continuous, the area (arbitrary area) capable of storing arbitrary data is continuous by being placed (implemented) There is no condition. This arbitrary area indicates that any data (arbitrary data) may be stored. Of course, initial data specified in advance may be stored, data related to other areas may not be stored, and as a result, "unused area" may not be used as any area.

このときの任意領域は、その全ての領域または一部の領域を、任意領域と隣接する他の領域として利用することができる領域を示しており、すなわち、利用する他の領域におけるプログラムやデータ等を任意領域に記憶できることを示している。   An arbitrary area at this time indicates an area in which all or part of the area can be used as another area adjacent to the arbitrary area, that is, a program, data, etc. in another area to be used. Indicates that it can be stored in an arbitrary area.

また、「未使用領域」とは、予め指定されたデータ(データ処理最小単位である(2進数)ビットの「0」または「1」のいずれかのデータ)を初期値(初期データ)として指定しておき、メモリマップ上の他の記憶領域がどのような使用条件に基づいて使用されたとしてもその初期値が変化しない領域である。このほか、未使用領域は、所定のデータの更新(書き込み)を禁止設定された記憶領域とも称することもできる。   In addition, "unused area" designates data specified in advance (either "0" or "1" data as the minimum unit of data processing (binary number) bit) as the initial value (initial data) Incidentally, even if another storage area on the memory map is used under any use condition, it is an area whose initial value does not change. In addition, the unused area can also be referred to as a storage area in which updating (writing) of predetermined data is prohibited.

この任意領域(未使用領域を含む)の詳細については後述する。   The details of the arbitrary area (including the unused area) will be described later.

また、第2制御領域2210が実装されたメモリ空間上のアドレス情報と、この第2制御領域2210に対応する第2データ領域2220が実装されたメモリ空間上のアドレス情報とは連続するものではなく、すなわち、第2制御領域2210と第2データ領域2220とが連続せずに配置された状態を示している。   Further, the address information on the memory space in which the second control area 2210 is mounted and the address information on the memory space in which the second data area 2220 corresponding to the second control area 2210 is mounted are not continuous. That is, it shows a state in which the second control area 2210 and the second data area 2220 are arranged without being continuous.

次に、第1RWM領域が実装されたアドレス情報と第2RWM領域が実装されたアドレス情報とが連続しており、すなわち、第1RWM領域と第2RWM領域とが連続して配置されている状態にある。   Next, the address information in which the first RWM area is mounted and the address information in which the second RWM area is mounted are continuous, that is, the first RWM area and the second RWM area are continuously arranged. .

上記に示すような内容から、2つの領域が実装されたアドレス情報同士が連続したものであることによって、各領域が連続したものであると言える。   From the contents as described above, it can be said that each area is continuous because the address information in which the two areas are mounted is continuous.

また、各領域が実装されたアドレス情報同士が連続するとは、ある領域(領域A)を示すアドレス情報の次のアドレスが、他の領域(領域B)を示すアドレス情報であって、他の領域(領域B)を示すアドレス情報の前のアドレスが、ある領域(領域A)を示すアドレス情報であることを示している。   Further, that the address information in which each area is implemented is continuous means that the address next to the address information indicating an area (area A) is the address information indicating another area (area B), and the other area is another area. The address before the address information indicating (area B) indicates that the address information indicates an area (area A).

さらに言えば、ある領域(領域A)、他の領域(領域B)それぞれに領域長がある場合、これらの領域(領域A、領域B)が連続しているとは、一方の領域の最終アドレスと他方の領域の開始アドレスとが連続したものであると言える。これは、一方の領域の開始アドレスから他方の領域の最終アドレスまでの全アドレス情報が連続したものを示している。   Furthermore, if there is an area length in a certain area (area A) and another area (area B), that these areas (area A, area B) are continuous means the final address of one area. And the start address of the other area are continuous. This indicates that all the address information from the start address of one area to the final address of the other area is continuous.

結果として、アドレス情報同士が連続することと領域同士が連続することとは同義である。   As a result, the continuation of address information and the continuation of areas are synonymous.

よって、以下では、アドレス情報が続いて実装された領域同士を、単に、領域同士が連続していると称して説明する。   Therefore, in the following, areas in which the address information is subsequently implemented are simply described as areas are continuous.

以下では、図34(b)について説明する。   Below, FIG.34 (b) is demonstrated.

図34(b)には、第1制御領域2110と第1データ領域2120との間に任意領域を設けることで各領域間を連続せずに配置されており、また、第2制御領域2210と第2データ領域2220とは任意領域を設けることなく連続して配置されている。このとき、第1データ領域2120と、第2制御領域2210との間は、任意領域の有無を問わない。すなわち、第1データ領域2120と第2制御領域2210との間に任意領域を設けずに第1データ領域2120と第2制御領域2210とを連続して配置することとしてもよいし、第1データ領域2120と第2制御領域2210との間に任意領域を設けて第1データ領域2120と第2制御領域2210とを連続せずに配置することとしてもよい。   In FIG. 34 (b), by arranging an arbitrary area between the first control area 2110 and the first data area 2120, the respective areas are arranged without being continuous, and the second control area 2210 and The second data area 2220 is continuously arranged without providing an arbitrary area. At this time, between the first data area 2120 and the second control area 2210, the presence or absence of an arbitrary area does not matter. That is, the first data area 2120 and the second control area 2210 may be continuously arranged without providing an arbitrary area between the first data area 2120 and the second control area 2210, or the first data An arbitrary area may be provided between the area 2120 and the second control area 2210, and the first data area 2120 and the second control area 2210 may be arranged without being continuous.

このことから、第2制御領域2210とその第2制御領域2210に対応する第2データ領域2220とが一体となって配置されているとも言える。   From this, it can be said that the second control area 2210 and the second data area 2220 corresponding to the second control area 2210 are disposed integrally.

また、この図34(b)では、第1RWM領域と第2RWM領域とが連続して配置されている状態にある。   Further, in FIG. 34 (b), the first RWM area and the second RWM area are continuously arranged.

以下では、図34(c)について説明する。   Hereinafter, FIG. 34 (c) will be described.

図34(c)には、第1制御領域2110と第1データ領域2120との間に任意領域を設けることなく各領域を連続して配置しており、さらに、第2制御領域2210と第2データ領域2220との間に任意領域を設けることなく各領域を連続して配置している。すなわち、第1制御領域2110とその第1制御領域2110に対応する第1データ領域2120との組み合わせと、第2制御領域2210とその第2制御領域2210に対応する第2データ領域2220との組み合わせそれぞれが、一体となって配置されていると言える。   In FIG. 34 (c), each area is continuously arranged without providing an arbitrary area between the first control area 2110 and the first data area 2120, and further, the second control area 2210 and the second control area 2210 are arranged. Each area is continuously arranged without providing any area between the data area 2220 and the data area 2220. That is, the combination of the first control area 2110 and the first data area 2120 corresponding to the first control area 2110 and the combination of the second control area 2210 and the second data area 2220 corresponding to the second control area 2210 It can be said that each is arranged integrally.

このとき、第1データ領域と、第2制御領域2210との間は、任意領域の有無を問わない。すなわち、第1データ領域2120と第2制御領域2210との間に任意領域を設けずに第1データ領域2120と第2制御領域2210とを連続して配置することとしてもよいし、第1データ領域2120と第2制御領域2210との間に任意領域を設けて第1データ領域2120と第2制御領域2210とを連続せずに配置することとしてもよい。さらに言えば、第1制御領域2110とその第1制御領域2110に対応する第1データ領域2120との組み合わせと、第2制御領域2210とその第2制御領域2210に対応する第2データ領域2220との組み合わせとが、連続されて配置されているか否かを問わない(組み合わせ間の連続有無を問わない)。   At this time, between the first data area and the second control area 2210, the presence or absence of an arbitrary area does not matter. That is, the first data area 2120 and the second control area 2210 may be continuously arranged without providing an arbitrary area between the first data area 2120 and the second control area 2210, or the first data An arbitrary area may be provided between the area 2120 and the second control area 2210, and the first data area 2120 and the second control area 2210 may be arranged without being continuous. Furthermore, a combination of the first control area 2110 and the first data area 2120 corresponding to the first control area 2110, and a second data area 2220 corresponding to the second control area 2210 and the second control area 2210. It does not matter whether or not the combinations of (1) and (2) are arranged in succession (whether or not the combinations are consecutive).

また、この図34(c)では、第1RWM領域と第2RWM領域とが連続して配置されている状態にある。   Further, in FIG. 34 (c), the first RWM area and the second RWM area are continuously arranged.

以上のことから、図34には、第1制御領域2110および第1データ領域2120と、第2制御領域2210および第2データ領域2220との少なくとも一方の各領域間が、メモリ空間上、連続して配置されていることが示されている。   From the above, in FIG. 34, at least one of the first control area 2110 and the first data area 2120 and the second control area 2210 and the second data area 2220 is continuous on the memory space. It is shown that it is arranged.

以下では、図35(a)について説明する。   Below, FIG. 35 (a) is demonstrated.

図35(a)には、第1制御領域2110と第1データ領域2120との間に任意領域を設けることで各領域間を連続せずに配置されており、また、第2制御領域2210と第2データ領域2220とは任意領域を設けることなく連続して各領域間が配置されている。このとき、第1データ領域2120と、第2制御領域2210との間は、任意領域の有無を問わない。すなわち、第1データ領域2120と第2制御領域2210との間に任意領域を設けずに第1データ領域2120と第2制御領域2210とを連続して配置することとしてもよいし、第1データ領域2120と第2制御領域2210との間に任意領域を設けて第1データ領域2120と第2制御領域2210とを連続せずに配置することとしてもよい。   In FIG. 35 (a), by arranging an arbitrary area between the first control area 2110 and the first data area 2120, the respective areas are arranged without being continuous, and the second control area 2210 and The second data area 2220 is continuously arranged between the areas without providing an arbitrary area. At this time, between the first data area 2120 and the second control area 2210, the presence or absence of an arbitrary area does not matter. That is, the first data area 2120 and the second control area 2210 may be continuously arranged without providing an arbitrary area between the first data area 2120 and the second control area 2210, or the first data An arbitrary area may be provided between the area 2120 and the second control area 2210, and the first data area 2120 and the second control area 2210 may be arranged without being continuous.

このことから、この図35(a)では、第2制御領域2210とその第2制御領域2210に対応する第2データ領域2220とが一体となって配置されているとも言える。   From this, in FIG. 35A, it can be said that the second control area 2210 and the second data area 2220 corresponding to the second control area 2210 are disposed integrally.

また、この図35(a)では、第1RWM領域と第2RWM領域とが連続して配置されている状態にある。   Further, in FIG. 35 (a), the first RWM area and the second RWM area are continuously arranged.

この図35(a)は、図34(b)と同一の内容である。   FIG. 35 (a) has the same contents as FIG. 34 (b).

以下では、図35(b)について説明する。   Below, FIG.35 (b) is demonstrated.

図35(b)には、第1制御領域2110と第1データ領域2120との間に任意領域を設けることなく各領域間を連続して配置されており、また、第2制御領域2210と第2データ領域2220とは任意領域を設けることで連続せずに各領域間が配置されている。このとき、第1データ領域2120と、第2制御領域2210との間は、任意領域の有無を問わない。すなわち、第1データ領域2120と第2制御領域2210との間に任意領域を設けずに第1データ領域2120と第2制御領域2210とを連続して配置することとしてもよいし、第1データ領域2120と第2制御領域2210との間に任意領域を設けて第1データ領域2120と第2制御領域2210とを連続せずに配置することとしてもよい。   In FIG. 35 (b), the respective areas are continuously arranged without providing an arbitrary area between the first control area 2110 and the first data area 2120, and the second control area 2210 and The two data areas 2220 are arranged without being continuous by providing an arbitrary area. At this time, between the first data area 2120 and the second control area 2210, the presence or absence of an arbitrary area does not matter. That is, the first data area 2120 and the second control area 2210 may be continuously arranged without providing an arbitrary area between the first data area 2120 and the second control area 2210, or the first data An arbitrary area may be provided between the area 2120 and the second control area 2210, and the first data area 2120 and the second control area 2210 may be arranged without being continuous.

このことから、第1制御領域2110とその第1制御領域2110に対応する第1データ領域2120とが一体となって配置されているとも言える。   From this, it can be said that the first control area 2110 and the first data area 2120 corresponding to the first control area 2110 are disposed integrally.

また、この図35(b)では、第1RWM領域と第2RWM領域とが連続して配置されている状態にある。   Further, in FIG. 35 (b), the first RWM area and the second RWM area are continuously arranged.

この図35(b)は、図34(a)と同一の内容である。   FIG. 35 (b) has the same contents as FIG. 34 (a).

以下では、図35(c)について説明する。   Below, FIG. 35 (c) is demonstrated.

図35(c)には、第1制御領域2110と第1データ領域2120との間に任意領域を設けて各領域間を連続せずに配置されており、また、第2制御領域2210と第2データ領域2220とは任意領域を設けることで連続せずに各領域間が配置されている。このとき、第1データ領域2120と、第2制御領域2210との間は、任意領域の有無を問わない。すなわち、第1データ領域2120と第2制御領域2210との間に任意領域を設けずに第1データ領域2120と第2制御領域2210とを連続して配置することとしてもよいし、第1データ領域2120と第2制御領域2210との間に任意領域を設けて第1データ領域2120と第2制御領域2210とを連続せずに配置することとしてもよい。   In FIG. 35 (c), an arbitrary area is provided between the first control area 2110 and the first data area 2120 and the areas are not contiguously arranged, and the second control area 2210 and the first control area The two data areas 2220 are arranged without being continuous by providing an arbitrary area. At this time, between the first data area 2120 and the second control area 2210, the presence or absence of an arbitrary area does not matter. That is, the first data area 2120 and the second control area 2210 may be continuously arranged without providing an arbitrary area between the first data area 2120 and the second control area 2210, or the first data An arbitrary area may be provided between the area 2120 and the second control area 2210, and the first data area 2120 and the second control area 2210 may be arranged without being continuous.

後者の場合、第1制御領域2110、第1データ領域2120、第2制御領域2210、第2データ領域2220それぞれが連続されずに配置されていることを示している。   In the latter case, it is indicated that the first control area 2110, the first data area 2120, the second control area 2210, and the second data area 2220 are arranged without being continuous.

以上のことから、図35には、第1制御領域2110および第1データ領域2120と、第2制御領域2210および第2データ領域2220との少なくとも一方の各領域間が、メモリ空間上、連続せず配置されていることが示されている。   From the above, in FIG. 35, at least one of the first control area 2110 and the first data area 2120 and the second control area 2210 and the second data area 2220 is continuously connected on the memory space. It is shown that it is arranged.

以下では、図36について説明する。   Hereinafter, FIG. 36 will be described.

図36には、第1制御領域2110と第1データ領域2120との間に任意領域を設けることなく各領域間を連続して配置されており、また、第2制御領域2210と第2データ領域2220とは任意領域を設けることなく各領域間が連続して配置されている。このとき、第1データ領域2120と、第2制御領域2210との間は、任意領域の有無を問わない。すなわち、第1データ領域2120と第2制御領域2210との間に任意領域を設けずに第1データ領域2120と第2制御領域2210とを連続して配置することとしてもよいし、第1データ領域2120と第2制御領域2210との間に任意領域を設けて第1データ領域2120と第2制御領域2210とを連続せずに配置することとしてもよい。   In FIG. 36, the respective areas are continuously arranged without providing an arbitrary area between the first control area 2110 and the first data area 2120, and the second control area 2210 and the second data area are also provided. The areas 2220 and 2220 are continuously arranged without providing any area. At this time, between the first data area 2120 and the second control area 2210, the presence or absence of an arbitrary area does not matter. That is, the first data area 2120 and the second control area 2210 may be continuously arranged without providing an arbitrary area between the first data area 2120 and the second control area 2210, or the first data An arbitrary area may be provided between the area 2120 and the second control area 2210, and the first data area 2120 and the second control area 2210 may be arranged without being continuous.

このことから、第1制御領域2110とその第1制御領域2110に対応する第1データ領域2120とが一体となって配置され、第2制御領域2210とその第2制御領域2210に対応する第2データ領域2220とが一体となって配置されているとも言える。   From this, the first control area 2110 and the first data area 2120 corresponding to the first control area 2110 are integrally disposed, and the second control area 2210 and the second control area 2210 correspond to the second control area 2210. It can be said that the data area 2220 and the data area 2220 are disposed integrally.

また、この図36では、第1RWM領域と第2RWM領域とが連続して配置されている状態にある。   Further, in FIG. 36, the first RWM area and the second RWM area are continuously arranged.

以上のことから、図36には、第1制御領域2110および第1データ領域2120と、第2制御領域2210および第2データ領域2220との各領域間が、メモリ空間上、連続して配置され、また、第1RWM領域と第2RWM領域との両領域がメモリ空間上、連続して配置されていることを示している。   From the above, in FIG. 36, the first control area 2110 and the first data area 2120, and the second control area 2210 and the second data area 2220 are continuously arranged on the memory space. Also, it shows that both the first RWM area and the second RWM area are continuously arranged on the memory space.

以下では、図37について説明する。   Hereinafter, FIG. 37 will be described.

図37には、第1制御領域2110と第1データ領域2120との間に任意領域を設けることなく各領域間を連続して配置されており、また、第2制御領域2210と第2データ領域2220とは任意領域を設けることなく各領域間が連続して配置されている。このとき、第1データ領域2120と、第2制御領域2210との間は、任意領域の有無を問わない。すなわち、第1データ領域2120と第2制御領域2210との間に任意領域を設けずに第1データ領域2120と第2制御領域2210とを連続して配置することとしてもよいし、第1データ領域2120と第2制御領域2210との間に任意領域を設けて第1データ領域2120と第2制御領域2210とを連続せずに配置することとしてもよい。   In FIG. 37, each area is continuously arranged without providing an arbitrary area between the first control area 2110 and the first data area 2120, and the second control area 2210 and the second data area are arranged. The areas 2220 and 2220 are continuously arranged without providing any area. At this time, between the first data area 2120 and the second control area 2210, the presence or absence of an arbitrary area does not matter. That is, the first data area 2120 and the second control area 2210 may be continuously arranged without providing an arbitrary area between the first data area 2120 and the second control area 2210, or the first data An arbitrary area may be provided between the area 2120 and the second control area 2210, and the first data area 2120 and the second control area 2210 may be arranged without being continuous.

このことから、第1制御領域2110とその第1制御領域2110に対応する第1データ領域2120とが一体となって配置され、第2制御領域2210とその第2制御領域2210に対応する第2データ領域2220とが一体となって配置されているとも言える。   From this, the first control area 2110 and the first data area 2120 corresponding to the first control area 2110 are integrally disposed, and the second control area 2210 and the second control area 2210 correspond to the second control area 2210. It can be said that the data area 2220 and the data area 2220 are disposed integrally.

また、第1RWM領域と第2RWM領域との間に任意領域が設けられており、第1RWM領域と第2RWM領域とが連続せずに配置されている状態にある。   In addition, an optional area is provided between the first RWM area and the second RWM area, and the first RWM area and the second RWM area are not arranged continuously.

以上のことから、図37には、第1制御領域2110および第1データ領域2120と、第2制御領域2210および第2データ領域2220との各領域間が、メモリ空間上、連続して配置され、また、第1RWM領域と第2RWM領域とが、メモリ空間上、連続せず配置されていることが示されている。   From the above, in FIG. 37, the first control area 2110 and the first data area 2120, and the second control area 2210 and the second data area 2220 are continuously arranged on the memory space. Also, it is shown that the first RWM area and the second RWM area are arranged non-consecutively on the memory space.

以下では、図38(a)について説明する。   Below, FIG. 38 (a) is demonstrated.

図38(a)には、第1制御領域2110と第1データ領域2120との間に任意領域を設けて各領域間が連続せずに配置されており、また、第2制御領域2210と第2データ領域2220とは任意領域を設けて各領域間が連続せずに配置されている。このとき、第1データ領域2120と、第2制御領域2210との間は、任意領域を設けることなく、第1データ領域2120と第2制御領域2210とが連続して配置されている。   In FIG. 38 (a), an arbitrary area is provided between the first control area 2110 and the first data area 2120, and the areas are arranged without being continuous with each other. In the 2 data area 2220, an arbitrary area is provided, and the areas are arranged without being continuous. At this time, the first data area 2120 and the second control area 2210 are continuously arranged between the first data area 2120 and the second control area 2210 without providing an arbitrary area.

また、この図38(a)では、第1RWM領域と第2RWM領域とが連続して配置されている状態にある。   Further, in FIG. 38A, the first RWM area and the second RWM area are continuously arranged.

以上のことから、図38(a)には、第1制御領域2110とその第1制御領域2110に対応する第1データ領域2120との組み合わせ、および、第2制御領域2210とその第2制御領域2210に対応する第2データ領域2220との組み合わせそれぞれが、連続しているか否かによらず、一方の組み合わせにおける1つの領域と、他の組み合わせにおける1つの領域とが連続していることを示している。   From the above, in FIG. 38A, the combination of the first control area 2110 and the first data area 2120 corresponding to the first control area 2110, and the second control area 2210 and its second control area. Indicates that one region in one combination and one region in the other combination are continuous regardless of whether each combination with the second data region 2220 corresponding to 2210 is continuous or not ing.

以下では、図38(b)について説明する。   Below, FIG.38 (b) is demonstrated.

図38(b)には、第1制御領域2110と第1データ領域2120との間に任意領域を設けずに各領域間が連続して配置されており、また、第2制御領域2210と第2データ領域2220とは任意領域を設けずに各領域間が連続して配置されている。このとき、第1データ領域2120と、第2制御領域2210との間は、任意領域を設けることなく、第1データ領域2120と第2制御領域2210とが連続して配置されている。   In FIG. 38 (b), the respective areas are continuously arranged without providing an arbitrary area between the first control area 2110 and the first data area 2120, and the second control area 2210 and The two data areas 2220 are continuously arranged between the areas without providing any area. At this time, the first data area 2120 and the second control area 2210 are continuously arranged between the first data area 2120 and the second control area 2210 without providing an arbitrary area.

また、この図38(b)では、第1RWM領域と第2RWM領域とが連続して配置されている状態にある。   Further, in FIG. 38 (b), the first RWM area and the second RWM area are continuously arranged.

以上のことから、図38(b)には、第1制御領域2110、第1データ領域2120、第2制御領域2210、第2データ領域2220が連続して配置されていることを示している(4つの領域が連続している)。言い換えれば、図38(b)には、第1制御領域2110とその第1制御領域2110に対応する第1データ領域2120との組み合わせと、第2制御領域2210とその第2制御領域2210に対応する第2データ領域2220との組み合わせとが、連続していることを示している。   From the above, FIG. 38B shows that the first control area 2110, the first data area 2120, the second control area 2210, and the second data area 2220 are continuously arranged (see FIG. Four areas are continuous). In other words, FIG. 38B corresponds to the combination of the first control area 2110 and the first data area 2120 corresponding to the first control area 2110, and the second control area 2210 and the second control area 2210. It shows that the combination with the second data area 2220 is continuous.

以下では、図39(a)について説明する。   Below, FIG. 39 (a) is demonstrated.

図39(a)には、第1制御領域2110と第1データ領域2120との間に任意領域を設けず各領域間が連続して配置されており、また、第2制御領域2210と第2データ領域2220とは任意領域を設けず各領域間が連続して配置されている。このとき、第1データ領域2120と、第2制御領域2210との間は、任意領域を設けて第1データ領域2120と第2制御領域2210とが連続せずに配置されている。   In FIG. 39A, an arbitrary area is not provided between the first control area 2110 and the first data area 2120, and the respective areas are continuously arranged, and the second control area 2210 and the second control area 2210 are not provided. The data area 2220 and the data area 2220 are continuously arranged without providing any area. At this time, an arbitrary area is provided between the first data area 2120 and the second control area 2210 so that the first data area 2120 and the second control area 2210 are not continuous.

また、この図39(a)では、第1RWM領域と第2RWM領域とが連続して配置されている状態にある。   Further, in FIG. 39A, the first RWM area and the second RWM area are continuously arranged.

以上のことから、図39(a)には、第1制御領域2110とその第1制御領域2110に対応する第1データ領域2120との組み合わせ、および、第2制御領域2210とその第2制御領域2210に対応する第2データ領域2220との組み合わせが、連続していないことを示している。   From the above, in FIG. 39A, the combination of the first control area 2110 and the first data area 2120 corresponding to the first control area 2110, and the second control area 2210 and its second control area. It shows that the combination with the second data area 2220 corresponding to 2210 is not continuous.

以下では、図39(b)について説明する。   Below, FIG.39 (b) is demonstrated.

図39(b)には、第1制御領域2110と第1データ領域2120との間に任意領域を設けて各領域間が連続せずに配置されており、また、第2制御領域2210と第2データ領域2220とは任意領域を設けて各領域間が連続せずに配置されている。さらに、第1データ領域2120と、第2制御領域2210との間に任意領域を設け、第1データ領域2120と第2制御領域2210とが連続せずに配置されている。   In FIG. 39 (b), an arbitrary area is provided between the first control area 2110 and the first data area 2120, and the areas are arranged without being continuous with each other. In the 2 data area 2220, an arbitrary area is provided, and the areas are arranged without being continuous. Furthermore, an arbitrary area is provided between the first data area 2120 and the second control area 2210, and the first data area 2120 and the second control area 2210 are arranged not continuously.

また、この図39(b)では、第1RWM領域と第2RWM領域とが連続して配置されている状態にある。   In FIG. 39 (b), the first RWM area and the second RWM area are continuously arranged.

以上のことから、図39(b)には、第1制御領域2110、第1データ領域2120、第2制御領域2210、第2データ領域2220それぞれが連続せずに配置されていることを示している(4つの領域における全ての領域間に任意領域が設けられている)。   From the above, FIG. 39 (b) shows that the first control area 2110, the first data area 2120, the second control area 2210, and the second data area 2220 are arranged without being continuous. (Arbitrary areas are provided between all the areas in the four areas).

以下では、図40について説明する。   Hereinafter, FIG. 40 will be described.

図40は、図39(a)に示すメモリ空間と同一の領域配置を示しており、第1データ領域2120と第2制御領域2210との間に設けられた任意領域(以下、「特定任意領域」と称する)の領域長(領域サイズ)を変更した状態を示している。この特定任意領域は、予め指定した任意領域である。   FIG. 40 shows the same area arrangement as the memory space shown in FIG. 39 (a), and an arbitrary area provided between the first data area 2120 and the second control area 2210 (hereinafter referred to as “specific arbitrary area State of changing the area length (area size) of This specific arbitrary area is an arbitrary area designated in advance.

図40(a)は、図39(a)と同一である。   FIG. 40 (a) is the same as FIG. 39 (a).

図40(a−1)は、図40(a)に示す特定任意領域の領域サイズを縮小するとともに、縮小した領域サイズ分を第2制御領域2210として用いた(拡大した)例を示したものである。このことから、第2制御領域2210の先頭アドレスが図40(a)に示す記憶領域に比べて低位アドレスに変更されて第2制御領域2210が拡大しているものの、第2制御領域2210の最終アドレスについては図40(a)に示す第2制御領域2210の最終アドレスと同一である。   FIG. 40 (a-1) shows an example in which the area size of the specific arbitrary area shown in FIG. 40 (a) is reduced, and the reduced area size is used as the second control area 2210 (enlarged) It is. From this, although the first address of the second control area 2210 is changed to a lower address compared to the storage area shown in FIG. 40A and the second control area 2210 is expanded, the final position of the second control area 2210 is The address is the same as the final address of the second control area 2210 shown in FIG.

図40(a−2)は、図40(a)に示す特定任意領域の領域サイズを縮小するとともに、縮小した領域サイズ分を第1データ領域2120として用いた例を示したものである。このことから、第1データ領域2120の最終アドレスが図40(a)に示す記憶領域に比べて高位アドレスに変更されて第2制御領域2210が拡大しているものの、第1データ領域2120の先頭アドレスについては図40(a)に示す第1データ領域2120の先頭アドレスと同一である。   FIG. 40 (a-2) shows an example in which the area size of the specific arbitrary area shown in FIG. 40 (a) is reduced and the reduced area size is used as the first data area 2120. From this, although the final address of the first data area 2120 is changed to a higher address compared with the storage area shown in FIG. 40A and the second control area 2210 is expanded, the head of the first data area 2120 The address is the same as the start address of the first data area 2120 shown in FIG. 40 (a).

よって、図40(a−1)および図40(a−2)に示すように、特定任意領域は、その特定任意領域に隣接する他の記憶領域(第1データ領域2120、第2制御領域2210)として用いることができる。   Therefore, as shown in FIGS. 40 (a-1) and 40 (a-2), the specified arbitrary area is the other storage area (first data area 2120, second control area 2210) adjacent to the specified arbitrary area. Can be used as

図40(a−3)は、図40(a)に示す特定任意領域の領域サイズを縮小するとともに、縮小した領域サイズ分を第1制御領域2110および第1データ領域2120として用いた例を示したものである。   FIG. 40 (a-3) shows an example in which the area size of the specific arbitrary area shown in FIG. 40 (a) is reduced and the reduced area size is used as the first control area 2110 and the first data area 2120. It is

この図40(a−3)では、第1制御領域2110の終了アドレスが図40(a)に示す記憶領域に比べて高位アドレスに変更されるとともに、第1データ領域2120の先頭アドレスおよび最終アドレスが図40(a)に示す記憶領域に比べてそれぞれ高位アドレスに変更された状態を示しており、第1制御領域2110および第1データ領域2120それぞれが、図40(a)に示す各領域の領域サイズよりも拡大している。   In FIG. 40 (a-3), the end address of the first control area 2110 is changed to a higher address compared to the storage area shown in FIG. 40 (a), and the start address and the final address of the first data area 2120. Shows a state where each of the first control area 2110 and the first data area 2120 is changed to a higher address compared to the storage area shown in FIG. 40 (a). It is larger than the area size.

よって、特定任意領域は、その特定任意領域に隣接する他の記憶領域として用いるだけではなく、間接的に、隣接しない他の記憶領域としても用いることができる。   Therefore, the specific arbitrary area can be used not only as another storage area adjacent to the specific arbitrary area, but also indirectly as another non-adjacent storage area.

なお、この図40に示す任意領域の領域サイズを変更する処理は、遊技機を開発している段階(仕様設計に基づく実装段階)においてその任意領域を一時的に、所定の領域として用いることが可能であることを示している。よって、プログラムやデータサイズが増加して記憶領域の領域サイズを変更する必要が生じたとしても(その任意領域の領域サイズを上限に)、他の記憶領域を変更することなく、任意領域でその変更を吸収することができる。   In the process of changing the area size of the arbitrary area shown in FIG. 40, the arbitrary area may be temporarily used as a predetermined area at the stage of developing a gaming machine (mounting stage based on specification design). It shows that it is possible. Therefore, even if the program or data size increases and it becomes necessary to change the area size of the storage area (with the upper limit of the area size of that arbitrary area), the change is made in the arbitrary area without changing other storage areas. Changes can be absorbed.

図41には、第1制御領域2110と第1データ領域2120との間に任意領域を設けずに各領域間が連続して配置されており、第2制御領域2210と第2データ領域2220とは任意領域を設けずに各領域間が連続して配置されている。また、第1データ領域と第2制御領域2210との間も任意領域を設けることなく、第1データ領域2120と第2制御領域2210とが連続して配置されている。さらに、第1RWM領域と第2RWM領域とが連続して配置されており、第2制御データと第1RWM領域とが連続して配置されている。   In FIG. 41, each area is continuously arranged without providing any area between the first control area 2110 and the first data area 2120, and the second control area 2210 and the second data area 2220 Are arranged continuously between the respective regions without providing any region. Further, the first data area 2120 and the second control area 2210 are continuously arranged without providing an arbitrary area between the first data area and the second control area 2210. Furthermore, the first RWM area and the second RWM area are continuously arranged, and the second control data and the first RWM area are continuously arranged.

このことから、第1制御領域2110、第1データ領域2120、第2制御領域2210、第2データ領域2220、第1RWM領域、第2RWM領域それぞれが連続していることを示している。このほか、図41では、低位アドレス側に寄せて(集約して)連続した状態を示している。   This indicates that the first control area 2110, the first data area 2120, the second control area 2210, the second data area 2220, the first RWM area, and the second RWM area are continuous. Besides, FIG. 41 shows a continuous state in which the lower address side is brought closer (consolidated).

以上に示すような図34乃至図40における任意領域は、予め指定した領域サイズ(領域長)とすることが可能である。このときの予め指定した領域サイズとして、記憶領域内に記憶したプログラムやデータ等のバイナリデータの内容を出力(ダンプ)したときに、1レコードとして表示されるデータサイズ以上とすることが可能である。   The arbitrary area in FIGS. 34 to 40 as described above can be set to an area size (area length) designated in advance. When the contents of binary data such as a program or data stored in the storage area are output (dumped) as the area size designated in advance at this time, it is possible to make the data size displayed as one record or more .

プログラムやデータ等のバイナリデータの出力形態として、メモリ出力(メモリダンプ)やファイル出力(ファイルダンプ)があり、これらのダンプによってダンプリスト(メモリ内容一覧)が生成される。いずれの出力形態で出力されたダンプリストにおいても、1レコードあたり所定のデータサイズ(所定データサイズ)のバイナリデータが出力され、この一例として、「16バイト(128ビット)」の所定データサイズでバイナリデータが出力される。   There are memory output (memory dump) and file output (file dump) as an output form of binary data such as a program and data, and a dump list (memory content list) is generated by these dumps. Even in the dump list output in any output form, binary data of a predetermined data size (predetermined data size) is output per record, and as an example, binary with a predetermined data size of "16 bytes (128 bits)" Data is output.

また、任意領域が設けられた直後の記憶領域(その任意領域に隣接する記憶領域であってその任意領域のアドレスよりも高位アドレスを先頭アドレスとする記憶領域)に実装されるプログラムやデータは「16」の倍数となるアドレス(16を基数とする進数法で最下位が「0」となるアドレス)を先頭アドレスとする。   In addition, the program and data implemented in the storage area immediately after the optional area is provided (the storage area adjacent to the optional area and having a higher address than the address of the optional area as the start address) An address which is a multiple of 16 "(an address whose lowest value is" 0 "in a radix number system having 16 as a base number system) is set as a start address.

すなわち、1レコードあたり「16バイト(128ビット)」がダンプされるような場合において、「16バイト(128ビット)」以上の任意領域を設け、任意領域が設けられた直後の記憶領域に実装されるプログラムやデータを「16」の倍数となるアドレスを先頭アドレスとしておけば、メモリマップ上の各記憶領域のダンプリストを作成したとき、そのダンプリストの単位レコード全てが任意領域として出力されることとなる。   That is, in the case where “16 bytes (128 bits)” are dumped per record, an arbitrary area of “16 bytes (128 bits)” or more is provided and implemented in the storage area immediately after the arbitrary area is provided. When the dump list for each storage area on the memory map is created, all unit records in the dump list are output as an arbitrary area, if the program or data to be stored is an address that is a multiple of “16”. It becomes.

特に、この任意領域を上記に示すように「未使用領域」とすれば、初期値(バイナリデータの「0」)が連続してダンプされることとなる。すなわち、ダンプリストを参照したときに、初期値(バイナリデータの「0」)がダンプされたレコードが未使用領域であると容易に識別することができる。   In particular, if this arbitrary area is "unused area" as described above, the initial value ("0" of binary data) will be dumped continuously. That is, when the dump list is referred to, it is possible to easily identify that the record in which the initial value (“0” of binary data) is dumped is an unused area.

上記に示す例では、メモリマップ上の任意領域(未使用領域含む)全てを1レコードとして表示されるデータサイズ以上とする場合について記述しているが、これに限定されることなく、第1制御領域2110および第1データ領域2120の組み合わせと、第2制御領域および第2データ領域2220の組み合わせとの間に設けられた任意領域が少なくとも、1レコードとして表示されるデータサイズ以上であればよい。   Although the example shown above describes the case where all the arbitrary areas (including unused areas) on the memory map have the data size to be displayed as one record or more, the first control is not limited to this. The arbitrary area provided between the combination of the area 2110 and the first data area 2120 and the combination of the second control area and the second data area 2220 may be at least the data size displayed as one record.

これは、第1制御領域2110とその第1制御領域2110に対応する第1データ領域2120との組み合わせと、第2制御領域2210とその第2制御領域2210に対応する第2データ領域2220との組み合わせとが、それぞれ異なる機能を提供するプログラムやデータを記憶したものであるから、これらを分離するための領域である任意領域を少なくとも1レコードとして表示されるデータサイズ以上とすれば良いことを示している。   This corresponds to the combination of the first control area 2110 and the first data area 2120 corresponding to the first control area 2110, and the second control area 2210 and the second data area 2220 corresponding to the second control area 2210. Since the combination is a program or data that provides different functions, it indicates that an arbitrary area that is an area to separate them should be at least the data size displayed as one record. ing.

そして、上記のような任意領域(未使用領域)を設けて記憶領域同士を連続せずに配置した場合には、その任意領域をプログラムやデータを記憶している他の記憶領域(プログラム領域、データ領域)として用いることができる。   When the above-described optional area (unused area) is provided and the storage areas are arranged without being continuous with each other, another optional storage area (program area, program area, It can be used as a data area).

このように各記憶領域をメモリマップ上に配置することによって、このメモリマップの構成からなる記憶媒体(メインROM、メインRAM)を流用して他の機種の遊技機におけるメモリマップを構成する際にも、そのメモリマップを有効活用することが可能になる。   By arranging each storage area on the memory map in this way, when using the storage medium (main ROM, main RAM) having the configuration of this memory map to construct memory maps in gaming machines of other models. Even the memory map can be used effectively.

これに対して、任意領域(未使用領域)を設けず記憶領域同士を連続させて配置した場合には、各記憶領域同士が一体としてなっていることから連続する記憶領域全体の領域サイズを容易に計算することができるようになる。   On the other hand, when the storage areas are arranged in succession without providing an arbitrary area (unused area), the storage areas are integrated with each other, and therefore the area size of the entire continuous storage area is easy. You will be able to calculate.

(配列データテーブル)
次に、図4に基づいて、配列データテーブルの説明を行う。
(Array data table)
Next, based on FIG. 4, the array data table will be described.

配列データテーブルは、メインROM302に設けられており、左リールセンサ154s、中リールセンサ155s、右リールセンサ156sがリールインデックスを検出したときに、表示窓23の中段に表示されている図柄の図柄位置を「00」と規定している。また、図柄位置「00」を基準として、図柄位置「00」〜「20」が規定されている。   The arrangement data table is provided in the main ROM 302, and when the left reel sensor 154s, the middle reel sensor 155s, and the right reel sensor 156s detect a reel index, the symbol position of the symbol displayed in the middle of the display window 23 Is defined as "00". Further, symbol positions "00" to "20" are defined with reference to symbol position "00".

(図柄組み合わせテーブル)
次に、図5に基づいて、図柄組み合わせテーブルについて説明を行う。
(Symbol combination table)
Next, the symbol combination table will be described based on FIG.

図柄組み合わせテーブルは、メインROM302に記憶されており、図柄の組み合わせ名称と、対応する図柄ビット名称と、図柄の組み合わせと、遊技者に対して払い出すメダルの払出枚数を規定している。   The symbol combination table is stored in the main ROM 302, and defines the symbol combination name, the corresponding symbol bit name, the combination of symbols, and the number of medals to be paid out to the player.

ここで、有効ライン上に沿って表示される図柄の組み合わせが、図柄組み合わせテーブルに規定されている図柄の組み合わせと一致する場合に、メダルの払出、再遊技の作動、ボーナスの作動、遊技状態の移行といった特典を付与する制御が行われる。なお、有効ラインに沿って表示された図柄の組み合わせが図柄組み合わせテーブルに規定されている図柄の組み合わせと一致しない場合は、「ハズレ」となる。   Here, when the combination of symbols displayed along the effective line matches the combination of symbols specified in the symbol combination table, medal payout, replay operation, bonus operation, gaming state Control is performed to grant benefits such as transition. If the combination of the symbols displayed along the effective line does not match the combination of the symbols specified in the symbol combination table, it is "lost".

また、図柄組み合わせテーブルの図柄ビット名称「BNS01」には、「赤セブンBB」が規定されており、図柄ビット名称「BNS02」には、「黒セブンBB」が規定されており、図柄ビット名称「BNS03」には、「RB」が規定されており、図柄ビット名称「REP01」には、「リプレイ」が規定されている。   Also, "Reven Seven BB" is defined in the symbol bit name "BNS01" of the symbol combination table, and "Black Seven BB" is defined in the symbol bit name "BNS02", and the symbol bit name " "RB" is defined in "BNS03", and "Replay" is defined in the symbol bit name "REP01".

また、図柄組み合わせテーブルの図柄ビット名称「NML01」には、「スイカ」が規定されており、図柄ビット名称「NML02」には、「ベル」が規定されており、図柄ビット名称「NML03」には、「チェリー」が規定されており、図柄ビット名称「NML04」には、「チャンス目」が規定されている。   In addition, "watermelon" is defined in the symbol bit name "NML01" of the symbol combination table, "bell" is defined in the symbol bit name "NML02", and the symbol bit name "NML03" , “Cherry” is defined, and “eye of chance” is defined in the symbol bit name “NML 04”.

また、本実施形態においては、「赤セブンBBに係る図柄の組み合わせ」、または「黒セブンBBに係る図柄の組み合わせ」が有効ライン上に表示された場合に、BB(第1種特別役物に係る役物連続作動装置)の作動が行われる。また、本実施形態においては、「RBに係る図柄の組み合わせ」が有効ライン上に表示された場合に、RB(第1種特別役物)の作動が行われる。そして、BBの作動や、RBの作動が行われると、BBの作動や、RBの作動が行われる前と比較して、遊技者にとって有利となる。   Further, in the present embodiment, when “combination of symbols relating to red seven BB” or “combination of symbols relating to black seven BB” is displayed on the effective line, the BB (type 1 special role The operation of the related item continuous operation device) is performed. Further, in the present embodiment, when “a combination of symbols relating to RB” is displayed on the effective line, the operation of the RB (type 1 special character) is performed. When the BB operation or the RB operation is performed, it is advantageous for the player as compared to before the BB operation or the RB operation is performed.

なお、本実施形態において、「赤セブンBBに係る図柄の組み合わせ」と、「黒セブンBBに係る図柄の組み合わせ」を総称して、「BBに係る図柄の組み合わせ」という。また、「BBに係る図柄の組み合わせ」と、「RBに係る図柄の組み合わせ」を総称して、「ボーナスに係る図柄の組み合わせ」という。   In the present embodiment, “combination of symbols relating to red seven BB” and “combination of symbols relating to black seven BB” are generically referred to as “combination of symbols relating to BB”. Also, "combination of symbols related to BB" and "combination of symbols related to RB" are collectively referred to as "combination of symbols related to bonus".

また、本実施形態においては、「リプレイに係る図柄の組み合わせ」が有効ライン上に表示された場合に、再遊技の作動が行われる。そして、再遊技の作動が行われると、メダルを投入することなく、遊技を行うことができる。   Further, in the present embodiment, when “combination of symbols relating to replay” is displayed on the activated line, replaying operation is performed. Then, when the re-playing operation is performed, it is possible to play a game without inserting a medal.

また、本実施形態においては、「スイカに係る図柄の組み合わせ」、「ベルに係る図柄の組み合わせ」、「チェリーに係る図柄の組み合わせ」、または「チャンス目に係る図柄の組み合わせ」が有効ライン上に表示された場合に、メダルの払出が行われる。   Moreover, in the present embodiment, “combination of symbols relating to watermelon”, “combination of symbols relating to bell”, “combination of symbols relating to cherry”, or “combination of symbols relating to chance” are on the effective line When displayed, medals are paid out.

また、本実施形態において、「スイカに係る図柄の組み合わせ」と、「ベルに係る図柄の組み合わせ」と、「チェリーに係る図柄の組み合わせ」と、「チャンス目に係る図柄の組み合わせ」を総称して、「入賞に係る図柄の組み合わせ」という。   In the present embodiment, "combination of symbols related to watermelon", "combination of symbols related to bell", "combination of symbols related to cherry", and "combination of symbols related to chance" are collectively referred to , "Combination of symbols pertaining to winning".

(通常遊技状態用当選役決定テーブル)
次に、図6に基づいて、通常遊技状態用当選役決定テーブルについて説明を行う。
(Normal game state winning combination decision table)
Next, based on FIG. 6, the normal game state winning combination determination table will be described.

通常遊技状態用当選役決定テーブルは、メインROM302に記憶されており、後述の通常遊技状態における後述の内部抽選処理により、当選役を決定する際に用いられる。また、通常遊技状態用当選役決定テーブルは、当選番号と、当選番号の内容と、設定値毎の抽選値が規定されている。ここで、本実施形態において、通常遊技状態用当選役決定テーブルは、設定値が「1」の場合の抽選値と、設定値が「6」の場合の抽選値を例示しており、設定値が「2」の場合の抽選値、設定値が「3」の場合の抽選値、設定値が「4」の場合の抽選値、及び設定値が「5」の場合の抽選値の図示を省略している。   The normal gaming state winning combination determination table is stored in the main ROM 302, and is used when determining a winning combination by an internal lottery process described later in the normal gaming state. Further, in the normal gaming state winning combination determination table, the winning number, the content of the winning number, and the lottery value for each set value are defined. Here, in the present embodiment, the winning combination determination table for the normal gaming state exemplifies a lottery value when the setting value is “1” and a lottery value when the setting value is “6”. The lottery value when “2” is, the lottery value when the setting value is “3”, the lottery value when the setting value is “4”, and the drawing value when the setting value is “5” is omitted doing.

また、通常遊技状態用当選役決定テーブルは、当選番号「01」の「リプレイ」と、当選番号「02」の「ベル」と、当選番号「03」の「スイカ」と、当選番号「04」の「チェリー」と、当選番号「05」の「チャンス役」と、当選番号「06」の「赤BB」と、当選番号「07」の「黒BB」と、当選番号「08」の「RB」と、当選番号「09」の「スイカ+赤BB」と、当選番号「10」の「スイカ+黒BB」と、当選番号「11」の「スイカ+RB」と、当選番号「12」の「チェリー+赤BB」と、当選番号「13」の「チェリー+黒BB」と、当選番号「14」の「チェリー+RB」と、当選番号「15」の「チャンス役+赤BB」と、当選番号「16」の「チャンス役+黒BB」と、当選番号「17」の「チャンス役+RB」に抽選値が規定されている。   In addition, the winning combination determination table for the normal gaming state, “replay” of the winning number “01”, “bell” of the winning number “02”, “watermelon” of the winning number “03”, and the winning number “04” 'Cherry', 'Chance Role' for Win Number '05', 'Red BB' for Win Number '06', 'Black BB' for Win Number '07' and 'RB' for Win Number '08' , "Watermelon + red BB" of the winning number "09", "watermelon + black BB" of the winning number "10", "watermelon + RB" of the winning number "11", and "of the winning number" 12 " "Cherry + Red BB", "Cherry + Black BB" of winning number "13", "Cherry + RB" of winning number "14", "Chance role + red BB" of winning number "15", Winning number "16" chance role + black BB and winning number "17" chance role + R Lottery value is defined in ".

(RT遊技状態用当選役決定テーブル)
次に、図7に基づいて、RT遊技状態用当選役決定テーブルについて説明を行う。
(RT winning game winning combination decision table)
Next, based on FIG. 7, the winning combination determination table for RT gaming state will be described.

RT遊技状態用当選役決定テーブルは、メインROM302に記憶されており、後述のRT遊技状態における後述の内部抽選処理により、当選役を決定する際に用いられる。また、RT遊技状態用当選役決定テーブルは、当選番号と、当選番号の内容と、設定値毎の抽選値が規定されている。ここで、本実施形態において、RT遊技状態用当選役決定テーブルは、設定値が「1」の場合の抽選値と、設定値が「6」の場合の抽選値を例示しており、設定値が「2」の場合の抽選値、設定値が「3」の場合の抽選値、設定値が「4」の場合の抽選値、及び設定値が「5」の場合の抽選値の図示を省略している。   The winning combination determination table for the RT gaming state is stored in the main ROM 302, and is used when determining the winning combination by an internal lottery process described later in the RT gaming state. In addition, the winning combination determination table for the RT gaming state defines the winning number, the content of the winning number, and the lottery value for each setting value. Here, in the present embodiment, the winning combination determination table for the RT gaming state exemplifies a lottery value when the setting value is “1” and a lottery value when the setting value is “6”. The lottery value when “2” is, the lottery value when the setting value is “3”, the lottery value when the setting value is “4”, and the drawing value when the setting value is “5” is omitted doing.

また、RT遊技状態用当選役決定テーブルは、当選番号「01」の「リプレイ」と、当選番号「02」の「ベル」と、当選番号「03」の「スイカ」と、当選番号「04」の「チェリー」と、当選番号「05」の「チャンス役」に抽選値が規定されている。   In addition, the winning combination determination table for the RT gaming state, “replay” of the winning number “01”, “bell” of the winning number “02”, “watermelon” of the winning number “03”, and the winning number “04” Lottery values are defined for “Cherry” and “Chance role” for the winning number “05”.

即ち、これら以外の抽選値は「0」であり、RT遊技状態用当選役決定テーブルを用いて抽選を行う場合においては、当選番号「06」の「赤BB」と、当選番号「07」の「黒BB」と、当選番号「08」の「RB」と、当選番号「09」の「スイカ+赤BB」と、当選番号「10」の「スイカ+黒BB」と、当選番号「11」の「スイカ+RB」と、当選番号「12」の「チェリー+赤BB」と、当選番号「13」の「チェリー+黒BB」と、当選番号「14」の「チェリー+RB」と、当選番号「15」の「チャンス役+赤BB」と、当選番号「16」の「チャンス役+黒BB」と、当選番号「17」の「チャンス役+RB」が当選役として決定されることはない。   That is, the lottery values other than these are “0”, and when performing a lottery using the RT gaming state winning combination determination table, “red BB” of the winning number “06” and the winning number “07” are selected. "Black BB", "RB" of winning number "08", "watermelon + red BB" of winning number "09", "watermelon + black BB" of winning number "10", and winning number "11" "Watermelon + RB", "Cherry + Red BB" of winning number "12", "Cherry + Black BB" of winning number "13", "Cherry + RB" of winning number "14", and winning number " The winning combination of "15", "chance + red BB", the winning number "16", "chance + black BB" and the winning number "17" of "chance + RB" will not be determined.

(RB遊技状態用当選役決定テーブル)
次に、図8に基づいて、RB遊技状態用当選役決定テーブルについて説明を行う。
(RB winning game winning combination determination table)
Next, based on FIG. 8, the winning combination determination table for the RB gaming state will be described.

RB遊技状態用当選役決定テーブルは、メインROM302に記憶されており、後述のRB遊技状態における後述の内部抽選処理により、当選役を決定する際に用いられる。また、RB遊技状態用当選役決定テーブルは、当選番号と、当選番号の内容と、設定値毎の抽選値が規定されている。ここで、本実施形態において、RB遊技状態用当選役決定テーブルは、設定値が「1」の場合の抽選値と、設定値が「6」の場合の抽選値を例示しており、設定値が「2」の場合の抽選値、設定値が「3」の場合の抽選値、設定値が「4」の場合の抽選値、及び設定値が「5」の場合の抽選値の図示を省略している。   The RB gaming state winning combination determination table is stored in the main ROM 302, and is used when determining a winning combination by an internal lottery process described later in the RB gaming state. In addition, the winning combination determination table for the RB gaming state defines the winning number, the content of the winning number, and the lottery value for each setting value. Here, in the present embodiment, the winning combination determination table for the RB gaming state exemplifies a lottery value when the set value is “1” and a lottery value when the set value is “6”, and the set value is set. The lottery value when “2” is, the lottery value when the setting value is “3”, the lottery value when the setting value is “4”, and the drawing value when the setting value is “5” is omitted doing.

また、RB遊技状態用当選役決定テーブルは、当選番号「02」の「ベル」に抽選値が規定されている。   Further, in the RB gaming state winning combination determination table, a lottery value is defined for "bell" of the winning number "02".

即ち、これら以外の抽選値は「0」であり、RB遊技状態用当選役決定テーブルを用いて抽選を行う場合においては、当選番号「01」の「リプレイ」と、当選番号「03」の「スイカ」と、当選番号「04」の「チェリー」と、当選番号「05」の「チャンス役」と、当選番号「06」の「赤BB」と、当選番号「07」の「黒BB」と、当選番号「08」の「RB」と、当選番号「09」の「スイカ+赤BB」と、当選番号「10」の「スイカ+黒BB」と、当選番号「11」の「スイカ+RB」と、当選番号「12」の「チェリー+赤BB」と、当選番号「13」の「チェリー+黒BB」と、当選番号「14」の「チェリー+RB」と、当選番号「15」の「チャンス役+赤BB」と、当選番号「16」の「チャンス役+黒BB」と、当選番号「17」の「チャンス役+RB」が当選役として決定されることはない。   That is, the lottery values other than these are “0”, and in the case of performing lottery using the determination table for winning combinations of RB gaming states, “Replay” of the winning number “01” and “replay of the winning number“ 03 ” "Watermelon", "Cherry" of winning number "04", "Chance role" of winning number "05", "Red BB" of winning number "06", and "Black BB" of winning number "07" , "RB" of the winning number "08", "watermelon + red BB" of the winning number "09", "watermelon + black BB" of the winning number "10", and "watermelon + RB" of the winning number "11" , "Cherry + red BB" of the winning number "12", "Cherry + black BB" of the winning number "13", "Cherry + RB" of the winning number "14", and "chance of the winning number" 15 " Role + red BB, and winning number "16" "role + black BB", There is no possibility that select number of "17" is "chance Officer + RB" is determined as a winning combination.

なお、本実施形態において、「赤BB」と、「黒BB」を総称して「BB」といい、「BB」と「RB」を総称して「ボーナス」という。   In the present embodiment, “red BB” and “black BB” are collectively referred to as “BB”, and “BB” and “RB” are collectively referred to as “bonus”.

なお、通常遊技状態用当選役決定テーブルと、RT遊技状態用当選役決定テーブルと、RB遊技状態用当選役決定テーブルを総称して「当選役決定テーブル」という。   Incidentally, the winning combination determination table for the normal gaming state, the winning combination determination table for the RT gaming state, and the winning combination determination table for the RB gaming state are collectively referred to as a “winning combination determination table”.

(遊技状態移行図)
次に、図9に基づいて、遊技状態移行図について説明を行う。
(Playing state transition diagram)
Next, based on FIG. 9, the game state transition diagram will be described.

遊技状態移行図は、現在の遊技状態と、遊技状態を移行する条件となる移行条件と、移行先の遊技状態を規定している。   The gaming state transition diagram defines the current gaming state, transition conditions serving as conditions for transitioning the gaming state, and the gaming state of the transition destination.

ここで、現在の遊技状態が通常遊技状態である場合において、後述の内部抽選処理により「ボーナス」に当選した場合に、通常遊技状態からRT遊技状態に移行される。   Here, when the current gaming state is the normal gaming state, when the "bonus" is won by the internal lottery process described later, the normal gaming state is shifted to the RT gaming state.

一方、現在の遊技状態がRT遊技状態である場合において、「ボーナスに係る図柄の組み合わせ」が有効ライン上に表示された場合に、RT遊技状態からRB遊技状態に移行される。   On the other hand, when the current gaming state is the RT gaming state, when the “combination of symbols relating to the bonus” is displayed on the activated line, the RT gaming state is shifted to the RB gaming state.

一方、現在の遊技状態がRB遊技状態である場合において、ボーナスが終了した場合に、RB遊技状態から通常遊技状態に移行される。   On the other hand, in the case where the current gaming state is the RB gaming state, when the bonus ends, the RB gaming state is shifted to the normal gaming state.

(演出決定テーブル)
次に、図10に基づいて、演出決定テーブルについて説明を行う。
(Determination decision table)
Next, based on FIG. 10, the effect determination table will be described.

演出決定テーブルは、サブROM402に設けられており、メイン制御基板300により管理される各状態において行われる演出を決定するために設けられている。具体的には、「演出No.」と、「演出No.」に対応する演出内容が規定されている。また、演出決定テーブルは、メイン制御基板300により管理される状態等の演出を実行するための条件が規定されている。ここで、本実施形態において、演出決定テーブルは、メイン制御基板300により管理される状態が通常遊技状態の場合に用いられる通常遊技状態用演出決定テーブル(図10(A)参照)と、メイン制御基板300により管理される状態がRT遊技状態の場合に用いられるRT遊技状態用演出決定テーブル(図10(B)参照)と、メイン制御基板300により管理される状態がRB遊技状態の場合に用いられるRB遊技状態用演出決定テーブル(図10(C)参照)により構成されている。   The effect determination table is provided in the sub ROM 402, and is provided to determine effects to be performed in each state managed by the main control board 300. Specifically, effect contents corresponding to "effect No." and "effect No." are defined. In the effect determination table, conditions for executing effects such as a state managed by the main control board 300 are defined. Here, in the present embodiment, the effect determination table includes a normal gaming state effect determination table (see FIG. 10A) used when the state managed by the main control board 300 is the normal gaming state, and main control Used when the state determined by the main control board 300 is the RB gaming state and the state determined by the main control board 300 is the RT gaming state effect determination table (see FIG. 10B) used when the state managed by the substrate 300 is the RT gaming state It is comprised by the production | presentation determination table (refer FIG.10 (C)) of RB game state to be performed.

(メイン制御基板300によるプログラム開始処理)
次に、図11に基づいて、メイン制御基板300により行われるプログラム開始処理についての説明を行う。なお、プログラム開始処理は、電源スイッチ201swがONとなったことに基づいて行われる処理である。
(Program start processing by main control board 300)
Next, a program start process performed by the main control board 300 will be described based on FIG. The program start process is a process performed based on the fact that the power switch 201sw is turned on.

(ステップS1)
ステップS1において、メインCPU301は、電断中であるか否かを判定する処理を行う。具体的には、メインCPU301は、遊技機1に電力が供給されている場合には、遊技機1が電断中であるか否かを判定し、遊技機1に電力が供給されていない場合には、バックアップ電源により遊技機1が電断中であるか否かを判定する処理を行う。そして、電断中であると判定された場合には(ステップS1=Yes)、ステップS1の処理を繰り返し実行する。一方、電断中ではないと判定された場合には(ステップS1=No)、ステップS2に処理を移行する。
(Step S1)
In step S1, the main CPU 301 performs processing to determine whether or not the power is off. Specifically, when power is supplied to the gaming machine 1, the main CPU 301 determines whether or not the gaming machine 1 is in a power-off state, and the power is not supplied to the gaming machine 1 In the process, it is determined whether or not the game machine 1 is powered off by the backup power supply. Then, if it is determined that power interruption is in progress (step S1 = Yes), the process of step S1 is repeatedly executed. On the other hand, when it is determined that the power is not broken (step S1 = No), the process proceeds to step S2.

(ステップS2)
ステップS2において、メインCPU301は、初期設定処理を行う。具体的には、メインCPU301は、遊技機1の内部レジスタを設定するためのテーブルの番地を設定し、当該テーブルに基づいて、レジスタの番地をセットする処理等を行う。そして、ステップS2の処理が終了すると、ステップS3に処理を移行する。
(Step S2)
At step S2, the main CPU 301 performs an initial setting process. Specifically, the main CPU 301 sets an address of a table for setting the internal register of the gaming machine 1, and performs processing such as setting the address of the register based on the table. And if the process of step S2 is complete | finished, a process will be transfered to step S3.

(ステップS3)
ステップS3において、メインCPU301は、設定変更キースイッチがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、設定変更キー(図示せず)が設定変更用の鍵穴に挿入された状態で、時計回り方向に所定角度回動されているか否かを判定する処理を行う。そして、設定変更キースイッチがONであると判定された場合には(ステップS3=Yes)、ステップS4に処理を移行し、設定変更キースイッチがONではないと判定された場合には(ステップS3=No)、電断前に退避されたレジスタの値や、保存されたスタックポインタの値を復帰させる電断復帰処理に処理を移行する。なお、電断復帰処理が終了すると、遊技機1の電源がOFFとなったときの状態に復帰することとなる。
(Step S3)
In step S3, the main CPU 301 performs processing to determine whether the setting change key switch is ON. Specifically, the main CPU 301 performs processing of determining whether or not the setting change key (not shown) is rotated clockwise by a predetermined angle in a state where the setting change key (not shown) is inserted into the setting change keyhole. When it is determined that the setting change key switch is ON (step S3 = Yes), the process proceeds to step S4, and when it is determined that the setting change key switch is not ON (step S3) The process proceeds to the power failure recovery process for restoring the value of the register saved before power interruption or the value of the stored stack pointer. Note that when the power-off recovery process is completed, the state of the gaming machine 1 is restored to the state when the power is turned off.

(ステップS4)
ステップS4において、メインCPU301は、設定値変更処理を行う。具体的には、メインCPU301は、まず、メインRAM303に設けられている設定値格納領域に格納されている値に基づいて、現在の設定値を取得し、設定値の範囲が正常であるか否かを判定する処理を行い、判定の結果が正常である場合には、図示しない設定表示部に現在の設定値を表示する処理を行う。一方、上述の判定結果が正常ではない場合には、設定値の初期値をメインRAM303に設けられている設定値格納領域にセットする処理を行う。そして、メインCPU301は、設定変更スイッチ(図示せず)により設定変更ボタン(図示せず)の操作が検出されたことに基づいて、設定値を切り替える処理を行うとともに、スタートスイッチ10swによりスタートレバー10の操作が検出されたことに基づいて、設定値を確定する処理を行う。そして、設定変更キー(図示せず)が設定変更用の鍵穴に挿入された状態で、時計回り方向に所定角度回動されている状態から、反時計回り方向に所定角度回動されたことが検出された場合に、メインRAM303に設けられている設定値格納領域に設定値を格納する処理を行う。そして、ステップS4の処理が終了すると、メインループ処理(図12参照)に処理を移行する。
(Step S4)
In step S4, the main CPU 301 performs setting value change processing. Specifically, the main CPU 301 first acquires the current setting value based on the value stored in the setting value storage area provided in the main RAM 303, and the setting value range is normal or not. If the determination result is normal, processing is performed to display the current setting value on a setting display unit (not shown). On the other hand, when the above-mentioned determination result is not normal, the process of setting the initial value of the setting value in the setting value storage area provided in the main RAM 303 is performed. Then, the main CPU 301 performs processing of switching the setting value based on the detection of the operation of the setting change button (not shown) by the setting change switch (not shown), and the start lever 10 by the start switch 10sw. Based on the fact that the operation of (1) is detected, the process of fixing the set value is performed. Then, in a state where the setting change key (not shown) is inserted into the key hole for setting change, from a state where it is rotated by a predetermined angle clockwise, it is rotated by a predetermined angle counterclockwise. If it is detected, processing for storing the setting value in the setting value storage area provided in the main RAM 303 is performed. Then, when the process of step S4 ends, the process proceeds to the main loop process (see FIG. 12).

(メイン制御基板300によるメインループ処理)
次に、図12に基づいて、メイン制御基板300により行われるメインループ処理についての説明を行う。
(Main loop processing by main control board 300)
Next, a main loop process performed by the main control board 300 will be described based on FIG.

(ステップS101)
ステップS101において、メインCPU301は、初期化処理を行う。具体的には、メインCPU301は、スタックポインタをセットする処理や、メインRAM303の初期化開始番地と、初期化終了番地をセットしてから、メインRAM303の初期化開始番地から初期化終了番地領域までの領域を初期化する処理等を行う。また、メインCPU301は、メインRAM303に設けられている投入枚数カウンタの値や、メインRAM303に設けられている停止制御番号格納領域の値等をクリアする処理を行う。そして、ステップS101の処理が終了すると、ステップS102に処理を移行する。
(Step S101)
In step S101, the main CPU 301 performs initialization processing. Specifically, the main CPU 301 sets the stack pointer, sets the initialization start address of the main RAM 303 and the initialization end address, and then from the initialization start address of the main RAM 303 to the initialization end address area Perform processing such as initializing the area of. Further, the main CPU 301 performs processing of clearing the value of the insertion number counter provided in the main RAM 303, the value of the stop control number storage area provided in the main RAM 303, and the like. And if the process of step S101 is complete | finished, a process will be transfered to step S102.

(ステップS102)
ステップS102において、メインCPU301は、メダル受付開始処理を行う。具体的には、メインCPU301は、後述の再遊技作動中フラグがONの場合に、メダルを自動投入する処理や、メインRAM303に設けられている投入枚数カウンタの値に「3」をセットする処理等を行う。そして、ステップS102の処理が終了すると、ステップS103に処理を移行する。
(Step S102)
In step S102, the main CPU 301 performs medal acceptance start processing. Specifically, the main CPU 301 performs a process of automatically inserting a medal when the after-reproduction flag is on, and a process of setting "3" to the value of the insertion number counter provided in the main RAM 303. Etc. And if the process of step S102 is complete | finished, a process will be transfered to step S103.

(ステップS103)
ステップS103において、メインCPU301は、後で図13を用いて詳述するメダル管理処理を行う。当該処理において、メインCPU301は、後述の再遊技作動中フラグがONではない場合に、メダル投入口6にメダルが投入されたか否かを判定し、メダル投入口6にメダルが投入された場合に、メインRAM303に設けられている投入枚数カウンタの値を加算する処理や、BETボタン7や、MAXBETボタン8の操作が検出されたか否かを判定し、BETボタン7や、MAXBETボタン8の操作が検出された場合に、メインRAM303に設けられている投入枚数カウンタの値を加算する処理を行う。また、精算ボタン9の操作が検出されたか否かを判定し、精算ボタン9の操作が検出された場合に、貯留されているメダルを遊技者に返却する処理等を行う。そして、ステップS103の処理が終了すると、ステップS104に処理を移行する。
(Step S103)
In step S103, the main CPU 301 performs medal management processing which will be described in detail later using FIG. In the processing, the main CPU 301 determines whether or not a medal has been inserted into the medal insertion slot 6 when the below-mentioned replaying flag is not ON, and the medal is inserted into the medal insertion slot 6. It is determined whether the processing of adding the value of the insertion number counter provided in the main RAM 303 or the operation of the BET button 7 or the MAX BET button 8 is detected, and the operation of the BET button 7 or the MAX BET button 8 is When it is detected, the value of the insertion number counter provided in the main RAM 303 is added. Further, it is determined whether or not the operation of the settlement button 9 is detected, and when the operation of the settlement button 9 is detected, processing such as returning the stored medals to the player is performed. And if the process of step S103 is complete | finished, a process will be transfered to step S104.

(ステップS104)
ステップS104において、メインCPU301は、投入枚数カウンタの値が「3」であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS102のメダル受付開始処理や、ステップS103のメダル管理処理により、メインRAM303に設けられている投入枚数カウンタの値が「3」となったか否かを判定する処理を行う。そして、投入枚数カウンタの値が「3」であると判定された場合には(ステップS104=Yes)、ステップS105に処理を移行し、投入枚数カウンタの値が「3」ではないと判定された場合には(ステップS104=No)、ステップS103に処理を移行する。
(Step S104)
In step S104, the main CPU 301 executes processing to determine whether the value of the insertion number counter is "3". Specifically, the main CPU 301 determines whether or not the value of the insertion number counter provided in the main RAM 303 has become “3” by the medal acceptance start processing of step S102 and the medal management processing of step S103. Do the processing. When it is determined that the value of the insertion number counter is “3” (step S104 = Yes), the process proceeds to step S105, and it is determined that the value of the insertion number counter is not “3”. In the case (step S104 = No), the process proceeds to step S103.

(ステップS105)
ステップS105において、メインCPU301は、スタートレバーチェック処理を行う。具体的には、メインCPU301は、スタートスイッチ10swによりスタートレバーの操作が検出されたか否かを判定し、スタートスイッチ10swによりスタートレバー10の操作が検出された場合に、メインRAM303に設けられている再遊技作動中フラグ格納領域の再遊技作動中フラグをOFFにする処理を行う。一方、スタートスイッチ10swによりスタートレバー10の操作が検出されなかった場合には、スタートレバーチェック処理を終了する。そして、ステップS105の処理が終了すると、ステップS106に処理を移行する。
(Step S105)
In step S105, the main CPU 301 performs start lever check processing. Specifically, the main CPU 301 determines whether or not the operation of the start lever is detected by the start switch 10sw, and is provided in the main RAM 303 when the operation of the start lever 10 is detected by the start switch 10sw. In the replay operation flag storage area, the process is performed to turn off the replay operation flag. On the other hand, when the operation of the start lever 10 is not detected by the start switch 10sw, the start lever check process is ended. Then, when the process of step S105 ends, the process proceeds to step S106.

(ステップS106)
ステップS106において、メインCPU301は、スタートスイッチがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、スタートスイッチ10swがONであるか否かを判定する処理を行う。そして、スタートスイッチがONであると判定された場合には(ステップS106=Yes)、ステップS107に処理を移行し、スタートスイッチがONではないと判定された場合には(ステップS106=No)、ステップS103に処理を移行する。
(Step S106)
In step S106, the main CPU 301 performs processing to determine whether the start switch is ON. Specifically, the main CPU 301 performs processing to determine whether the start switch 10 sw is ON. When it is determined that the start switch is ON (step S106 = Yes), the process proceeds to step S107, and when it is determined that the start switch is not ON (step S106 = No), The process proceeds to step S103.

(ステップS107)
ステップS107において、メインCPU301は、後で図17を用いて詳述する内部抽選処理を行う。当該処理において、メインCPU301は、抽選により当選役を決定する処理等を行う。そして、ステップS107の処理が終了すると、ステップS108に処理を移行する。
(Step S107)
In step S107, the main CPU 301 performs an internal lottery process which will be described in detail later using FIG. In the process, the main CPU 301 performs a process of determining a winning combination by lottery. Then, when the process of step S107 ends, the process proceeds to step S108.

(ステップS108)
ステップS108において、メインCPU301は、ボーナス情報更新処理を行う。具体的には、メインCPU301は、ステップS107の内部抽選処理により、ボーナスに当選した場合には、メイン制御基板300により管理される状態をRT遊技状態に移行する処理や、メインRAM303に設けられているキャリーフラグ格納領域を更新する処理等を行う。一方、ステップS107の内部抽選処理により、ボーナスに当選しなかった場合には、メインRAM303に設けられているキャリーフラグ格納領域に格納されている値と、メインRAM303に設けられている当選役格納領域の値の排他的論理和演算を行うとともに、当該演算の結果をメインRAM303に設けられている当選役格納領域に格納する処理を行う。そして、ステップS108の処理が終了すると、ステップS109に処理を移行する。
(Step S108)
In step S108, the main CPU 301 performs bonus information update processing. Specifically, when the main CPU 301 has won the bonus by the internal lottery process of step S107, the main CPU 301 is provided in the process of shifting the state managed by the main control board 300 to the RT gaming state or in the main RAM 303 Perform processing such as updating the existing carry flag storage area. On the other hand, when the bonus is not won by the internal lottery process of step S107, the value stored in the carry flag storage area provided in main RAM 303 and the winning combination storage area provided in main RAM 303 An exclusive OR operation is performed on the values of (1), and the result of the operation is stored in a winning combination storage area provided in the main RAM 303. Then, when the process of step S108 ends, the process proceeds to step S109.

(ステップS109)
ステップS109において、メインCPU301は、情報設定処理を行う。具体的には、メインCPU301は、左リール18、中リール19、右リール20を用いて行われる回胴演出を実行するか否かを抽選する処理を行い、当該抽選に当選した場合には、当選した回胴演出に係る情報をメインRAM303に設けられている回胴演出情報格納領域に格納する処理を行う。また、メインCPU301は、スタートレバー10の操作が受け付けられた旨の情報等を有するリール回転開始受付コマンドをサブ制御基板400に対して送信するために、当該リール回転開始受付コマンドを、メインRAM303に設けられている演出用伝送データ格納領域にセットする処理や、当選役に係る情報や、実行することとなる回胴演出に係る情報等を有する条件装置コマンドをサブ制御基板400に対して送信するために、当該条件装置コマンドを、メインRAM303に設けられている演出用伝送データ格納領域にセットする処理を行う。そして、ステップS109の処理が終了すると、ステップS110に処理を移行する。
(Step S109)
In step S109, the main CPU 301 performs information setting processing. Specifically, the main CPU 301 performs a lottery process as to whether or not to execute a spinning drum effect performed using the left reel 18, the middle reel 19, and the right reel 20, and when the lottery is won, A process is performed to store the information related to the winning drum effect in the rotating drum effect information storage area provided in the main RAM 303. Further, the main CPU 301 transmits the reel rotation start acceptance command to the main RAM 303 in order to transmit the reel rotation start acceptance command having the information indicating that the operation of the start lever 10 has been accepted to the sub control board 400. Transmits to the sub control board 400 a condition device command including processing for setting in the provided transmission data storage area for effect, information concerning the winning combination, information concerning the turning drum effect to be executed, etc. In order to do this, the condition device command is set in the effect transmission data storage area provided in the main RAM 303. Then, when the process of step S109 ends, the process proceeds to step S110.

(ステップS110)
ステップS110において、メインCPU301は、リール回転開始準備処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている回胴演出情報格納領域に格納されている情報に基づいて、回胴演出を実行する処理を行う。また、メインCPU301は、最小遊技時間が経過したか否かを判定する処理を行い、当該判定の結果、最小遊技時間が経過したと判定された場合には、次の遊技において最小遊技時間が経過したか否かを判定するために、メインRAM303に設けられているタイマカウンタの値をセットする処理を行う。一方、メインCPU301は、最小遊技時間が経過していないと判定された場合には、最小遊技時間が経過するまで待機する処理を行う。また、メインCPU301は、左リール18、中リール19、右リール20の回転が開始される旨の情報を有するリール回転開始コマンドをサブ制御基板400に対して送信するために、当該リール回転開始コマンドをメインRAM303の演出用伝送データ格納領域にセットする処理を行う。そして、ステップS110の処理が終了すると、ステップS111に処理を移行する。
(Step S110)
In step S110, the main CPU 301 performs reel rotation start preparation processing. Specifically, the main CPU 301 executes a process of executing a rotating drum effect based on the information stored in the rotating drum effect information storage area provided in the main RAM 303. Further, the main CPU 301 performs processing to determine whether or not the minimum game time has elapsed, and as a result of the determination, if it is determined that the minimum game time has elapsed, the minimum game time has elapsed in the next game. In order to determine whether or not it has been set, a process of setting the value of the timer counter provided in the main RAM 303 is performed. On the other hand, when it is determined that the minimum game time has not elapsed, the main CPU 301 performs processing to stand by until the minimum game time has elapsed. Further, the main CPU 301 transmits a reel rotation start command having information that the rotation of the left reel 18, the middle reel 19 and the right reel 20 is started to the sub control board 400, the reel rotation start command. Is set in the effect transmission data storage area of the main RAM 303. And if the process of step S110 is complete | finished, a process will be transfered to step S111.

(ステップS111)
ステップS111において、メインCPU301は、リール回転開始処理を行う。具体的には、メインCPU301は、リール制御基板150を介して、左ステッピングモータ151、中ステッピングモータ152、右ステッピングモータ153を駆動することにより、左リール18、中リール19、右リール20を定速回転させるための処理を行う。そして、ステップS111の処理が終了すると、ステップS112に処理を移行する。
(Step S111)
In step S111, the main CPU 301 performs reel rotation start processing. Specifically, the main CPU 301 drives the left stepping motor 151, the middle stepping motor 152, and the right stepping motor 153 via the reel control board 150 to set the left reel 18, the middle reel 19, and the right reel 20. Perform processing for fast rotation. And if the process of step S111 is complete | finished, a process will be transfered to step S112.

(ステップS112)
ステップS112において、メインCPU301は、リール回転中処理を行う。具体的には、メインCPU301は、左停止ボタン11、中停止ボタン12、右停止ボタン13の押圧時であるか否かを判定し、左停止ボタン11、中停止ボタン12、右停止ボタン13の押圧時である場合には、左停止ボタン11、中停止ボタン12、右停止ボタン13のうち、操作された停止ボタンに対応する左リール18、中リール19、右リール20と、左ステッピングモータ151、中ステッピングモータ152、右ステッピングモータ153に供給しているパルスカウンタの値に基づいて、押圧基準位置を取得し、メインRAM303に設けられている押圧基準位置格納領域に格納する処理を行う。次に、メインCPU301は、メインROM302に設けられている停止テーブル(図示せず)と、メインRAM303に設けられている当選役格納領域の値と、左停止ボタン11、中停止ボタン12、右停止ボタン13の操作順序等に基づいて、「0」コマから「4」コマの範囲内で滑りコマ数を決定する処理を行い、当該決定された滑りコマ数をメインRAM303に設けられている滑りコマ数格納領域に格納する処理を行う。そして、メインCPU301は、メインRAM303に設けられている押圧基準位置格納領域に格納されている値と、メインRAM303に設けられている滑りコマ数格納領域に格納されている値とに基づいて、回転中の左リール18、中リール19、右リール20を停止する処理を行う。そして、ステップS112の処理が終了すると、ステップS113に処理を移行する。
(Step S112)
In step S112, the main CPU 301 performs processing during reel rotation. Specifically, the main CPU 301 determines whether or not the left stop button 11, the middle stop button 12, and the right stop button 13 are pressed, and the main stop button 11, the middle stop button 12, and the right stop button 13 When pressing, the left reel 18, the middle reel 19, the right reel 20 and the left stepping motor 151 corresponding to the stop button operated among the left stop button 11, the middle stop button 12 and the right stop button 13. Based on the value of the pulse counter supplied to the middle stepping motor 152 and the right stepping motor 153, processing for obtaining the pressing reference position and storing it in the pressing reference position storage area provided in the main RAM 303 is performed. Next, the main CPU 301 controls the stop table (not shown) provided in the main ROM 302, the value of the winning combination storage area provided in the main RAM 303, the left stop button 11, the middle stop button 12, and the right stop. The number of sliding symbols is determined within the range of “0” to “4” based on the operation order of the button 13 and the like, and the determined number of sliding symbols is set to the sliding symbols provided in the main RAM 303. Perform processing to store in the number storage area. Then, the main CPU 301 rotates based on the value stored in the pressure reference position storage area provided in the main RAM 303 and the value stored in the number-of-slip-pieces storage area provided in the main RAM 303. A process of stopping the left reel 18, the middle reel 19, and the right reel 20 is performed. Then, when the process of step S112 ends, the process proceeds to step S113.

(ステップS113)
ステップS113において、メインCPU301は、全リールが停止したか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS112のリール回転中処理により、左リール18、中リール19、右リール20が全て停止したか否かを判定する処理を行う。そして、全リールが停止したと判定された場合には(ステップS113=Yes)、ステップS114に処理を移行し、全リールが停止していないと判定された場合には(ステップS113=No)、ステップS112に処理を移行し、全リールが停止するまで、同様の処理を繰り返し実行する。
(Step S113)
In step S113, the main CPU 301 performs processing to determine whether all reels have stopped. Specifically, the main CPU 301 performs a process of determining whether or not the left reel 18, the middle reel 19, and the right reel 20 have all stopped by the reel rotation processing of step S112. When it is determined that all the reels have stopped (step S113 = Yes), the process proceeds to step S114, and when it is determined that all the reels have not stopped (step S113 = No), The process proceeds to step S112, and the same process is repeated until all the reels stop.

(ステップS114)
ステップS114において、メインCPU301は、表示判定処理を行う。具体的には、メインCPU301は、まず、有効ライン上に表示された図柄の組み合わせに関する情報等を有する表示判定コマンドをサブ制御基板400に対して送信するために、当該表示判定コマンドを、メインRAM303に設けられている演出用伝送データ格納領域にセットする処理を行う。次に、メインCPU301は、「入賞に係る図柄の組み合わせ」が有効ライン上に表示されたか否かを判定する処理を行い、「入賞に係る図柄の組み合わせ」が有効ライン上に表示されたと判定された場合には、遊技者に対して払い出すメダルの払出枚数を算定する処理を行う。一方、「入賞に係る図柄の組み合わせ」が有効ライン上に表示されなかったと判定された場合には、「リプレイに係る図柄の組み合わせ」が有効ライン上に表示されたか否かを判定する処理を行い、「リプレイに係る図柄の組み合わせ」が有効ライン上に表示されたと判定された場合には、メインRAM303に設けられている再遊技作動中フラグ格納領域の値をONにする処理を行う。そして、ステップS114の処理が終了すると、ステップS115に処理を移行する。
(Step S114)
In step S114, the main CPU 301 performs display determination processing. Specifically, main CPU 301 first transmits the display determination command having the information on the combination of the symbols displayed on the activated line, etc. to sub control board 400, main RAM 303 for the display determination command. A process of setting in the transmission data storage area for effect provided in. Next, the main CPU 301 performs processing to determine whether "combination of symbols related to winning" is displayed on the activated line, and it is determined that "combination of symbols related to winning" is displayed on the activated line When it is determined, a process of calculating the payout number of medals to be paid out to the player is performed. On the other hand, when it is determined that "combination of symbols related to winning" is not displayed on the activated line, processing is performed to determine whether "combination of symbols related to replay" is displayed on the activated line. When it is determined that “combination of symbols relating to replay” is displayed on the activated line, processing is performed to turn on the value of the in-replay flag storage area provided in the main RAM 303. Then, when the process of step S114 ends, the process proceeds to step S115.

(ステップS115)
ステップS115において、メインCPU301は、後で図18を用いて詳述する第1メダル払出処理を行う。当該処理において、メインCPU301は、「入賞に係る図柄の組み合わせ」が有効ライン上に表示されたことに基づいて、電源基板200を介してホッパー202を駆動することにより、メダルを払い出す処理等を行う。そして、ステップS115の処理が終了すると、ステップS116に処理を移行する。
(Step S115)
In step S115, the main CPU 301 performs a first medal payout process which will be described later in detail with reference to FIG. In the processing, the main CPU 301 drives the hopper 202 via the power supply substrate 200 based on the display of the “combination of symbols relating to winning” on the activated line, and so on. Do. Then, when the process of step S115 ends, the process proceeds to step S116.

(ステップS116)
ステップS116において、メインCPU301は、後で図21を用いて詳述する遊技状態移行処理を行う。当該処理において、メインCPU301は、有効ライン上に表示された図柄の組み合わせに基づいて、遊技状態を移行する処理等を行う。そして、ステップS116の処理が終了すると、ステップS101に処理を移行する。
(Step S116)
In step S116, the main CPU 301 performs gaming state transition processing which will be described in detail later with reference to FIG. In the processing, the main CPU 301 performs processing to shift the gaming state, etc. based on the combination of the symbols displayed on the activated line. And if the process of step S116 is complete | finished, a process will be transfered to step S101.

(メダル管理処理)
次に、図13に基づいて、図12のステップS103の処理により行われるメダル管理処理についての説明を行う。なお、図13はメダル管理処理のサブルーチンを示す図である。
(Medal management process)
Next, based on FIG. 13, the medal management process performed by the process of step S103 of FIG. 12 will be described. FIG. 13 is a diagram showing a subroutine of medal management processing.

(ステップS103−1)
ステップS103−1において、メインCPU301は、再遊技作動中フラグがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている再遊技作動中フラグ格納領域の値がONであるか否かを判定する処理を行う。そして、再遊技作動中フラグがONであると判定された場合には(ステップS103−1=Yes)、メダル管理処理のサブルーチンを終了し、メインループ処理のステップS104に処理を移行する。一方、再遊技作動中フラグがONではないと判定された場合には(ステップS103−1=No)、ステップS103−2に処理を移行する。
(Step S103-1)
In step S103-1, the main CPU 301 performs processing to determine whether the in-replay flag is on. Specifically, the main CPU 301 performs a process of determining whether the value of the replaying flag storage area provided in the main RAM 303 is ON. Then, if it is determined that the re-game in-progress flag is ON (step S103-1 = Yes), the subroutine of the medal management process is ended, and the process proceeds to step S104 of the main loop process. On the other hand, when it is determined that the in-replay mode flag is not ON (step S103-1 = No), the process proceeds to step S103-2.

なお、本実施形態においては、再遊技作動中フラグがONである場合には、メダル管理処理のサブルーチンを終了し、後述のメダルチェック処理(第1メダル投入チェック処理)が行われない。このため、再遊技作動中フラグがONである場合には、メダルの投入を受け付けないこととしているが、再遊技作動中フラグがONである場合であっても、メダルの投入を受け付けることとしてもよい。   In the present embodiment, when the replaying flag is ON, the subroutine of the medal management process is ended, and the medal check process (first medal insertion check process) described later is not performed. For this reason, when it is decided that the replaying in progress flag is ON, the insertion of the medal is not accepted, but even if the replaying in progress flag is ON, the acceptance of the insertion of the medal is accepted as well. Good.

(ステップS103−2)
ステップS103−2において、メインCPU301は、メダルが投入されたか否かを判定する処理を行う。具体的には、メインCPU301は、セレクターセンサ14sによりメダルの投入が検出されたか否かを判定する処理を行う。そして、メダルが投入されたと判定された場合には(ステップS103−2=Yes)、ステップS103−3に処理を移行し、メダルが投入されていないと判定された場合には(ステップS103−2=No)、ステップS103−4に処理を移行する。
(Step S103-2)
In step S103-2, the main CPU 301 performs processing to determine whether or not a medal has been inserted. Specifically, the main CPU 301 performs processing to determine whether or not the insertion of a medal has been detected by the selector sensor 14s. When it is determined that the medal has been inserted (step S103-2 = Yes), the process proceeds to step S103-3, and when it is determined that the medal is not inserted (step S103-2) = No), the process proceeds to step S103-4.

(ステップS103−3)
ステップS103−3において、メインCPU301は、後で図14を用いて詳述する第1メダル投入チェック処理を行う。当該処理において、メインCPU301は、メインRAM303に設けられている投入枚数カウンタの値や、メインRAM303に設けられている貯留枚数カウンタの値に基づいて、メインRAM303に設けられている投入枚数カウンタの値や、メインRAM303に設けられている貯留枚数カウンタの値を加算する処理等を行う。そして、ステップS103−3の処理が終了すると、メダル管理処理のサブルーチンを終了し、メインループ処理のステップS104に処理を移行する。
(Step S103-3)
In step S103-3, the main CPU 301 performs a first medal insertion check process which will be described in detail later using FIG. In the processing, the main CPU 301 uses the value of the insertion number counter provided in the main RAM 303 or the value of the insertion number counter provided in the main RAM 303 based on the value of the storage number counter provided in the main RAM 303. Or, a process of adding the value of the stored sheet number counter provided in the main RAM 303 is performed. When the process of step S103-3 ends, the subroutine of the medal management process ends, and the process proceeds to step S104 of the main loop process.

(ステップS103−4)
ステップS103−4において、メインCPU301は、投入要求枚数として「1」をセットする処理を行う。具体的には、メインCPU301は、レジスタに投入要求枚数として「1」をセットする処理を行う。そして、ステップS103−4の処理が終了すると、ステップS103−5に処理を移行する。
(Step S103-4)
In step S103-4, the main CPU 301 executes processing to set "1" as the requested number of sheets. Specifically, the main CPU 301 executes a process of setting "1" as the requested number of sheets to be put in the register. Then, when the process of step S103-4 ends, the process proceeds to step S103-5.

(ステップS103−5)
ステップS103−5において、メインCPU301は、BETスイッチがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、BETスイッチ7swにより、遊技者によるBETボタン7の操作が検出されたか否かを判定する処理を行う。そして、BETスイッチがONであると判定された場合には(ステップS103−5=Yes)、ステップS103−8に処理を移行し、BETスイッチがONではないと判定された場合には(ステップS103−5=No)、ステップS103−6に処理を移行する。
(Step S103-5)
In step S103-5, the main CPU 301 executes processing to determine whether the BET switch is ON. Specifically, the main CPU 301 performs processing to determine whether the player operates the BET button 7 by the BET switch 7sw. When it is determined that the BET switch is ON (step S103-5 = Yes), the process proceeds to step S103-8, and when it is determined that the BET switch is not ON (step S103). -5 = No), the process proceeds to step S103-6.

(ステップS103−6)
ステップS103−6において、メインCPU301は、投入要求枚数として「3」をセットする処理を行う。具体的には、メインCPU301は、レジスタにセットされている投入要求枚数「1」を「3」に更新する処理を行う。そして、ステップS103−6の処理が終了すると、ステップS103−7に処理を移行する。
(Step S103-6)
In step S103-6, the main CPU 301 executes processing to set "3" as the requested number of sheets. Specifically, the main CPU 301 performs a process of updating the requested number for insertion "1" set in the register to "3". And if the process of step S103-6 is complete | finished, a process will be transfered to step S103-7.

(ステップS103−7)
ステップS103−7において、メインCPU301は、MAXBETスイッチがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、MAXBETスイッチ8swにより、遊技者によるMAXBETボタン8の操作が検出されたか否かを判定する処理を行う。そして、MAXBETスイッチがONであると判定された場合には(ステップS103−7=Yes)、ステップS103−8に処理を移行し、MAXBETスイッチがONではないと判定された場合には(ステップS103−7=No)、ステップS103−11に処理を移行する。
(Step S103-7)
In step S103-7, the main CPU 301 executes processing to determine whether the MAX BET switch is ON. Specifically, the main CPU 301 performs processing of determining whether or not the player's operation of the MAX BET button 8 has been detected by the MAX BET switch 8 sw. When it is determined that the MAX BET switch is ON (step S103-7 = Yes), the process proceeds to step S103-8, and when it is determined that the MAX BET switch is not ON (step S103). -7 = No), the process proceeds to step S103-11.

(ステップS103−8)
ステップS103−8において、メインCPU301は、投入枚数カウンタの値が「3」であるか否かを判定する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている投入枚数カウンタの値が「3」であるか否かを判定する処理を行う。そして、投入枚数カウンタの値が「3」であると判定された場合には(ステップS103−8=Yes)、メダル管理処理のサブルーチンを終了し、メインループ処理のステップS104に処理を移行する。一方、投入枚数カウンタの値が「3」ではないと判定された場合には(ステップS103−8=No)、ステップS103−9に処理を移行する。
(Step S103-8)
In step S103-8, the main CPU 301 executes processing to determine whether the value of the insertion number counter is "3". Specifically, the main CPU 301 performs processing to determine whether the value of the insertion number counter provided in the main RAM 303 is “3”. Then, if it is determined that the value of the insertion number counter is “3” (step S103-8 = Yes), the subroutine of the medal management process is ended, and the process proceeds to step S104 of the main loop process. On the other hand, when it is determined that the value of the insertion number counter is not “3” (step S103-8 = No), the process proceeds to step S103-9.

(ステップS103−9)
ステップS103−9において、メインCPU301は、貯留枚数カウンタの値が「1」以上であるか否かを判定する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている貯留枚数カウンタの値が「1」以上であるか否かを判定する処理を行う。そして、貯留枚数カウンタの値が「1」以上であると判定された場合には(ステップS103−9=Yes)、ステップS103−10に処理を移行し、貯留枚数カウンタの値が「1」以上ではないと判定された場合には(ステップS103−9=No)、メダル管理処理のサブルーチンを終了し、メインループ処理のステップS104に処理を移行する。
(Step S103-9)
In step S103-9, the main CPU 301 performs processing to determine whether the value of the stored sheet number counter is “1” or more. Specifically, the main CPU 301 performs processing to determine whether the value of the stored sheet number counter provided in the main RAM 303 is “1” or more. When it is determined that the value of the stored sheet counter is "1" or more (step S103-9 = Yes), the process proceeds to step S103-10, and the value of the stored sheet counter is "1" or more. If not (step S103-9 = No), the subroutine of the medal management process is ended, and the process proceeds to step S104 of the main loop process.

(ステップS103−10)
ステップS103−10において、メインCPU301は、貯留メダル投入処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている投入枚数カウンタの値に基づいて、メインRAM303に設けられている貯留枚数カウンタの値を減算し、投入枚数カウンタの値を加算する処理等を行う。そして、ステップS103−10の処理が終了すると、メダル管理処理のサブルーチンを終了し、メインループ処理のステップS104に処理を移行する。
(Step S103-10)
In step S103-10, the main CPU 301 performs stored medal insertion processing. Specifically, the main CPU 301 is a process of subtracting the value of the stored sheet counter provided in the main RAM 303 based on the value of the inserted sheet counter provided in the main RAM 303 and adding the value of the inserted sheet counter Etc. Then, when the process of step S103-10 ends, the subroutine of the medal management process ends, and the process proceeds to step S104 of the main loop process.

(ステップS103−11)
ステップS103−11において、メインCPU301は、精算スイッチがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、精算スイッチ9swにより、遊技者による精算ボタン9の操作が検出されたか否かを判定する処理を行う。そして、精算スイッチがONであると判定された場合には(ステップS103−11=Yes)、ステップS103−12に処理を移行し、精算スイッチがONではないと判定された場合には(ステップS103−11=No)、メダル管理処理のサブルーチンを終了し、メインループ処理のステップS104に処理を移行する。
(Step S103-11)
In step S103-11, the main CPU 301 performs processing to determine whether the settlement switch is ON. Specifically, the main CPU 301 performs processing of determining whether or not the operation of the settlement button 9 by the player is detected by the settlement switch 9 sw. When it is determined that the settlement switch is ON (step S103-11 = Yes), the process proceeds to step S103-12, and when it is determined that the settlement switch is not ON (step S103). The subroutine of the medal management process is ended, and the process proceeds to step S104 of the main loop process.

(ステップS103−12)
ステップS103−12において、メインCPU301は、貯留枚数カウンタの値が「1」以上であるか否かを判定する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている貯留枚数カウンタの値が「1」以上であるか否かを判定する処理を行う。そして、貯留枚数カウンタの値が「1」以上であると判定された場合には(ステップS103−12=Yes)、ステップS103−13に処理を移行し、貯留枚数カウンタの値が「1」以上ではないと判定された場合には(ステップS103−12=No)、メダル管理処理のサブルーチンを終了し、メインループ処理のステップS104に処理を移行する。
(Step S103-12)
In step S103-12, the main CPU 301 performs processing to determine whether the value of the stored sheet number counter is “1” or more. Specifically, the main CPU 301 performs processing to determine whether the value of the stored sheet number counter provided in the main RAM 303 is “1” or more. When it is determined that the value of the stored sheet counter is "1" or more (step S103-12 = Yes), the process proceeds to step S103-13, and the value of the stored sheet counter is "1" or more. If not (step S103-12 = No), the subroutine of the medal management process is ended, and the process proceeds to step S104 of the main loop process.

(ステップS103−13)
ステップS103−13において、メインCPU301は、精算開始コマンドをセットする処理を行う。具体的には、メインCPU301は、精算開始コマンドをサブ制御基板400に対して送信するために、当該精算開始コマンドを、メインRAM303に設けられている演出用伝送データ格納領域にセットする処理を行う。ここで、「精算開始コマンド」とは、遊技機1に貯留されているメダルを遊技者に対して返却する精算処理を開始する旨の情報等を有するコマンドである。そして、ステップS103−13の処理が終了すると、ステップS103−14に処理を移行する。
(Step S103-13)
In step S103-13, the main CPU 301 performs processing for setting a settlement start command. Specifically, the main CPU 301 performs processing for setting the settlement start command in the effect transmission data storage area provided in the main RAM 303 in order to transmit the settlement start command to the sub control board 400. . Here, the “settlement start command” is a command having information etc. indicating that the settlement process to return the medal stored in the gaming machine 1 to the player is started. Then, when the process of step S103-13 ends, the process proceeds to step S103-14.

(ステップS103−14)
ステップS103−14において、メインCPU301は、投入枚数カウンタの値が「1」以上であるか否かを判定する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている投入枚数カウンタの値が「1」以上であるか否かを判定する処理を行う。そして、投入枚数カウンタの値が「1」以上であると判定された場合には(ステップS103−14=Yes)、ステップS103−15に処理を移行し、投入枚数カウンタの値が「1」以上ではないと判定された場合には(ステップS103−14=No)、ステップS103−18に処理を移行する。
(Step S103-14)
In step S103-14, the main CPU 301 executes processing to determine whether the value of the insertion number counter is “1” or more. Specifically, the main CPU 301 performs processing to determine whether the value of the insertion number counter provided in the main RAM 303 is “1” or more. When it is determined that the value of the insertion number counter is “1” or more (step S103-14 = Yes), the process proceeds to step S103-15, and the value of the insertion number counter is “1” or more. If not (step S103-14 = No), the process proceeds to step S103-18.

(ステップS103−15)
ステップS103−15において、メインCPU301は、投入メダル精算処理を行う。具体的には、メインCPU301は、BETされているメダルを遊技者に返却するために、電源基板200を介してホッパー202を駆動することにより、メダルを「1」枚返却する制御を行う。そして、ステップS103−15の処理が終了すると、ステップS103−16に処理を移行する。
(Step S103-15)
In step S103-15, the main CPU 301 performs inserted medal settlement processing. Specifically, the main CPU 301 performs control to return “1” medals by driving the hopper 202 via the power supply substrate 200 in order to return the bet medals to the player. Then, when the process of step S103-15 ends, the process proceeds to step S103-16.

(ステップS103−16)
ステップS103−16において、メインCPU301は、投入枚数カウンタの値から「1」減算する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている投入枚数カウンタの値から「1」減算する処理を行う。そして、ステップS103−16の処理が終了すると、ステップS103−17に処理を移行する。
(Step S103-16)
In step S103-16, the main CPU 301 executes a process of subtracting “1” from the value of the insertion number counter. Specifically, the main CPU 301 performs processing of subtracting “1” from the value of the insertion number counter provided in the main RAM 303. Then, when the process of step S103-16 ends, the process proceeds to step S103-17.

(ステップS103−17)
ステップS103−17において、メインCPU301は、投入枚数カウンタの値が「0」であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS103−16の処理により、メインRAM303に設けられている投入枚数カウンタの値から「1」減算した結果、メインRAM303に設けられている投入枚数カウンタの値が「0」となったか否かを判定する処理を行う。そして、投入枚数カウンタの値が「0」であると判定された場合には(ステップS103−17=Yes)、ステップS103−19に処理を移行し、投入枚数カウンタの値が「0」ではないと判定された場合には(ステップS103−17=No)、ステップS103−15に処理を移行し、メインRAM303に設けられている投入枚数カウンタの値が「0」となるまで、同様の処理を繰り返し実行する。
(Step S103-17)
In step S103-17, the main CPU 301 performs processing to determine whether the value of the insertion number counter is “0”. Specifically, as a result of the main CPU 301 subtracting “1” from the value of the insertion number counter provided in the main RAM 303 by the processing of step S103-16, the value of the insertion number counter provided in the main RAM 303 is A process is performed to determine whether the value has become "0". When it is determined that the value of the insertion number counter is “0” (step S103-17 = Yes), the process proceeds to step S103-19, and the value of the insertion number counter is not “0”. If it is determined that (step S103-17 = No), the process proceeds to step S103-15, and the same process is performed until the value of the insertion number counter provided in the main RAM 303 becomes "0". Execute repeatedly.

(ステップS103−18)
ステップS103−18において、メインCPU301は、貯留メダル精算処理を行う。具体的には、メインCPU301は、遊技機1に貯留されているメダルを遊技者に返却するために、電源基板200を介してホッパー202を駆動することにより、メダルを「1」枚返却する制御を行う。そして、メインRAM303に設けられている貯留枚数カウンタの値から「1」減算し、当該処理を行った結果、メインRAM303に設けられている貯留枚数カウンタの値が「0」となったか否かを判定し、メインRAM303に設けられている貯留枚数カウンタの値が「0」となったと判定されるまで同様の処理を繰り返し実行する。そして、ステップS103−18の処理が終了すると、ステップS103−19に処理を移行する。
(Step S103-18)
In step S103-18, the main CPU 301 performs stored medal settlement processing. Specifically, the main CPU 301 controls to return the medals “1” by driving the hopper 202 via the power supply substrate 200 in order to return the medals stored in the gaming machine 1 to the player. I do. Then, "1" is subtracted from the value of the stored sheet counter provided in the main RAM 303, and as a result of performing the processing, whether the value of the stored sheet counter provided in the main RAM 303 becomes "0" or not The same processing is repeatedly executed until it is determined that the value of the stored sheet counter provided in the main RAM 303 is determined to be "0". Then, when the process of step S103-18 ends, the process proceeds to step S103-19.

(ステップS103−19)
ステップS103−19において、メインCPU301は、精算終了コマンドをセットする処理を行う。具体的には、メインCPU301は、精算終了コマンドをサブ制御基板400に対して送信するために、当該精算終了コマンドを、メインRAM303に設けられている演出用伝送データ格納領域にセットする処理を行う。ここで、「精算終了コマンド」とは、BETされていたメダルを遊技者に対して返却し終えた旨の情報や、遊技機1に貯留されているメダルを遊技者に対して返却し終えた旨の情報等を有するコマンドである。そして、ステップS103−19の処理が終了すると、メダル管理処理のサブルーチンを終了し、メインループ処理のステップS104に処理を移行する。
(Step S103-19)
In step S103-19, the main CPU 301 performs processing for setting a settlement end command. Specifically, the main CPU 301 performs processing for setting the settlement completion command in the effect transmission data storage area provided in the main RAM 303 in order to transmit the settlement completion command to the sub control board 400. . Here, “settlement end command” means that information indicating that the betted medal has been returned to the player and the medals stored in the gaming machine 1 have been returned to the player It is a command having the information etc. Then, when the process of step S103-19 ends, the subroutine of the medal management process ends, and the process proceeds to step S104 of the main loop process.

(第1メダル投入チェック処理)
次に、図14に基づいて、図13のステップS103−3の処理により行われる第1メダル投入チェック処理についての説明を行う。なお、図14は第1メダル投入チェック処理のサブルーチンを示す図である。
(First medal input check process)
Next, the first medal insertion check process performed by the process of step S103-3 of FIG. 13 will be described based on FIG. FIG. 14 is a diagram showing a subroutine of the first medal input check process.

(ステップS103−3−1)
ステップS103−3−1において、メインCPU301は、当該投入が有効となった後のメダルの投入が不可となるか否かを判定する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている貯留枚数カウンタの値と、投入枚数カウンタの値に、「1」を加算した値が、「53」以上であるか否かを判定する処理を行う。そして、貯留枚数カウンタの値と、投入枚数カウンタの値に、「1」を加算した値が、「53」以上であると判定された場合には(ステップS103−3−1=Yes)、ステップS103−3−2に処理を移行し、貯留枚数カウンタの値と、投入枚数カウンタの値に、「1」を加算した値が、「53」以上ではないと判定された場合には(ステップS103−3−1=No)、ステップS103−3−3に処理を移行する。
(Step S103-3-1)
In step S103-3-1, the main CPU 301 performs processing to determine whether or not the medal can not be inserted after the insertion becomes valid. Specifically, the main CPU 301 determines whether or not the value obtained by adding “1” to the value of the stored sheet counter provided in the main RAM 303 and the value of the inserted sheet counter is “53” or more. Do the process. Then, if it is determined that the value obtained by adding “1” to the value of the stored sheet counter and the value of the inserted sheet counter is “53” or more (step S103-3-1 = Yes), step If it is determined that the process proceeds to S103-3-2 and the value obtained by adding “1” to the value of the stored sheet counter and the value of the inserted sheet counter is not “53” or more (step S103) -3-1 = No), the process proceeds to step S103-3-3.

(ステップS103−3−2)
ステップS103−3−2において、メインCPU301は、ブロッカOFF処理を行う。具体的には、メインCPU301は、セレクター14のブロッカ54をOFFに制御、すなわち、ブロッカ54を、メダル投入口6に投入されたメダルをメダル払出口25に排出させる位置に制御させる。これにより、これ以降、メダル投入口6にメダルが投入されても、ホッパー202に受け入れず、メダル払出口25に排出させることができる。そして、ステップS103−3−2の処理が終了すると、ステップS103−3−3に処理を移行する。
(Step S103-3-2)
In step S103-3-2, the main CPU 301 performs blocker OFF processing. Specifically, the main CPU 301 controls the blocker 54 of the selector 14 to be OFF, that is, controls the blocker 54 to a position where the medal inserted into the medal insertion slot 6 is discharged to the medal payout opening 25. Thereby, even if a medal is inserted into the medal insertion slot 6 after that, it can be discharged to the medal payout port 25 without being accepted by the hopper 202. Then, when the process of step S103-3-2 ends, the process proceeds to step S103-3-3.

(ステップS103−3−3)
ステップS103−3−3において、メインCPU301は、後で図15を用いて詳述する第2メダル投入チェック処理を行う。なお、第2メダル投入チェック処理は、第2記憶領域2200の第2制御領域2210に記憶された第2メダル投入チェック処理を行うプログラムを呼び出すことにより実行される。また、第1記憶領域2100の第1制御領域2110に記憶された第1メダル投入チェック処理を行うプログラムのステップS103−3−3に対応する箇所には、第2記憶領域2200の第2制御領域2210に記憶された第2メダル投入チェック処理を行うプログラムを呼び出すためのアドレスが予め規定されている。当該処理において、メインCPU301は、投入物(メダル等)のエラーチェック処理等を行う。そして、ステップS103−3−3の処理が終了すると、ステップS103−3−4に処理を移行する。
(Step S103-3-3)
In step S103-3-3, the main CPU 301 performs a second medal insertion check process which will be described in detail later using FIG. The second medal insertion check process is executed by calling a program for performing the second medal insertion check process stored in the second control area 2210 of the second storage area 2200. The second control area of the second storage area 2200 is located in a portion corresponding to step S103-3-3 of the program for performing the first medal insertion check process stored in the first control area 2110 of the first storage area 2100. An address for calling a program for performing the second medal insertion check process stored in 2210 is defined in advance. In the process, the main CPU 301 performs an error check process and the like of the input (such as medals). Then, when the process of step S103-3-3 ends, the process proceeds to step S103-3-4.

(ステップS103−3−4)
ステップS103−3−4において、メインCPU301は、第1記憶領域復帰時エラーチェック処理を行う。具体的には、メインCPU301は、上記第2記憶領域2200に記憶されたプログラムによる第2メダル投入チェック処理において、エラーが検出されたか否かをチェックする処理を行う。ここでは、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによる第1メダル投入チェック処理において、第2記憶領域2200の第2ワーク領域2260に記憶されたエラーフラグを参照することにより、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによる第2メダル投入チェック処理において、エラーが検出されたか否かをチェックする。そして、ステップS103−3−4の処理が終了すると、ステップS103−3−5に処理を移行する。
(Step S103-3-4)
In step S103-3-4, the main CPU 301 performs an error check process at the time of restoration of the first storage area. Specifically, the main CPU 301 performs a process of checking whether or not an error is detected in the second medal insertion check process by the program stored in the second storage area 2200. Here, in the first medal insertion check process by the program stored in the first control area 2110 of the first storage area 2100, by referring to the error flag stored in the second work area 2260 of the second storage area 2200. In the second medal insertion check processing by the program stored in the second control area 2210 of the second storage area 2200, it is checked whether an error is detected. And if the process of step S103-3-4 is complete | finished, a process will be transfered to step S103-3-5.

(ステップS103−3−5)
ステップS103−3−5において、メインCPU301は、エラーを検出したか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS103−3−4の第1記憶領域復帰時エラーチェック処理において、エラーを検出したか否かを判定する処理を行う。そして、メインCPU301は、エラーを検出したと判定された場合には(ステップS103−3−5=Yes)、ステップS103−3−10に処理を移行し、エラーを検出していないと判定された場合には(ステップS103−3−5=No)、ステップS103−3−6に処理を移行する。
(Step S103-3-5)
In step S103-3-5, the main CPU 301 performs processing to determine whether an error has been detected. Specifically, the main CPU 301 performs processing to determine whether or not an error is detected in the error check processing at the time of first storage area return in step S103-3-4. Then, when it is determined that the error is detected (step S103-3-5 = Yes), the main CPU 301 shifts the process to step S103-3-10, and determines that the error is not detected. In the case (step S103-3-5 = No), the process proceeds to step S103-3-6.

(ステップS103−3−6)
ステップS103−3−6において、メインCPU301は、投入枚数カウンタの値が「3」であるか否かを判定する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている投入枚数カウンタの値が「3」であるか否かを判定する処理を行う。そして、投入枚数カウンタの値が「3」であると判定された場合には(ステップS103−3−6=Yes)、ステップS103−3−8に処理を移行し、投入枚数カウンタの値が「3」ではないと判定された場合には(ステップS103−3−6=No)、ステップS103−3−7に処理を移行する。
(Step S103-3-6)
In step S103-3-6, the main CPU 301 executes processing to determine whether the value of the insertion number counter is “3”. Specifically, the main CPU 301 performs processing to determine whether the value of the insertion number counter provided in the main RAM 303 is “3”. When it is determined that the value of the insertion number counter is “3” (step S103-3-6 = Yes), the process proceeds to step S103-3-8, and the value of the insertion number counter is “ If it is determined not to be 3 "(step S103-3-6 = No), the process proceeds to step S103-3-7.

(ステップS103−3−7)
ステップS103−3−7において、メインCPU301は、投入枚数カウンタの値に「1」加算する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている投入枚数カウンタの値に「1」加算する処理を行う。そして、ステップS103−3−7の処理が終了すると、ステップS103−3−9に処理を移行する。
(Step S103-3-7)
In step S103-3-7, the main CPU 301 performs processing of adding “1” to the value of the insertion number counter. Specifically, the main CPU 301 performs processing of adding “1” to the value of the insertion number counter provided in the main RAM 303. And if the process of step S103-3-7 is complete | finished, a process will be transfered to step S103-3-9.

(ステップS103−3−8)
ステップS103−3−8において、メインCPU301は、貯留枚数カウンタの値に「1」加算する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている貯留枚数カウンタの値に「1」加算する処理を行う。そして、ステップS103−3−8の処理が終了すると、ステップS103−3−9に処理を移行する。
(Step S103-3-8)
In step S103-3-8, the main CPU 301 performs processing of adding “1” to the value of the stored sheet number counter. Specifically, the main CPU 301 performs processing of adding “1” to the value of the stored sheet number counter provided in the main RAM 303. And if the process of step S103-3-8 is complete | finished, a process will be transfered to step S103-3-9.

(ステップS103−3−9)
ステップS103−3−9において、メインCPU301は、メダル投入コマンドをセットする処理を行う。具体的には、メインCPU301は、メダル投入コマンドをサブ制御基板400に対して送信するために、当該メダル投入コマンドを、メインRAM303に設けられている演出用伝送データ格納領域にセットする処理を行う。ここで、「メダル投入コマンド」とは、メダル投入口6に正常なメダルが投入された旨の情報等を有するコマンドである。そして、ステップS103−3−9の処理が終了すると、第1メダル投入チェック処理のサブルーチンを終了し、メインループ処理のステップS104に処理を移行する。
(Step S103-3-9)
In step S103-3-9, the main CPU 301 performs processing for setting a medal insertion command. Specifically, the main CPU 301 performs processing for setting the medal insertion command in the effect transmission data storage area provided in the main RAM 303 in order to transmit the medal insertion command to the sub control board 400. . Here, the “medal insertion command” is a command including information indicating that a normal medal has been inserted into the medal insertion slot 6 or the like. Then, when the process of step S103-3-9 ends, the subroutine of the first medal insertion check process ends, and the process proceeds to step S104 of the main loop process.

(ステップS103−3−10)
ステップS103−3−10において、メインCPU301は、メダル投入エラー検出時処理を行う。具体的には、メインCPU301は、エラー情報を払出枚数表示器16等に表示するための処理等を行う。また、メダル投入エラーが検出された旨の情報を有するメダル投入エラーコマンドをメインRAM303に設けられている演出用伝送データ格納領域にセットする処理を行う。そして、ステップS103−3−10の処理が終了すると、第1メダル投入チェック処理のサブルーチンを終了し、メインループ処理のステップS104に処理を移行する。なお、必要があればエラー表示後に遊技の停止処理を行う。
(Step S103-3-10)
In step S103-3-10, the main CPU 301 performs medal insertion error detection processing. Specifically, the main CPU 301 performs processing for displaying error information on the payout amount display 16 or the like. Further, processing for setting a medal insertion error command having information indicating that a medal insertion error has been detected in the effect transmission data storage area provided in the main RAM 303 is performed. When the process of step S103-3-10 ends, the subroutine of the first medal insertion check process ends, and the process proceeds to step S104 of the main loop process. If necessary, the game is stopped after an error is displayed.

(第2メダル投入チェック処理)
次に、図15に基づいて、図14のステップS103−3−3の処理により行われる第2メダル投入チェック処理についての説明を行う。なお、図15は第2メダル投入チェック処理のサブルーチンを示す図である。また、第2メダル投入チェック処理は、第2記憶領域2200の第2制御領域2210に記憶されたプログラムおよび第2データ領域2220に記憶されたデータ(テーブル等)に基づいて、実行される。
(Second medal input check process)
Next, based on FIG. 15, the second medal insertion check process performed by the process of step S103-3-3 in FIG. 14 will be described. FIG. 15 is a diagram showing a subroutine of the second medal input check process. Further, the second medal insertion check process is executed based on the program stored in the second control area 2210 of the second storage area 2200 and the data (table etc.) stored in the second data area 2220.

(ステップS103−3−3−1)
ステップS103−3−3−1において、メインCPU301は、レジスタ退避処理を行う。具体的には、メインCPU301は、ステップS103−3−3−1の時点で使用しているレジスタの値を退避する処理を行う。例えば、メインCPU301のレジスタ群1300におけるAレジスタ1311、Bレジスタ1312、Cレジスタ1313、Dレジスタ1314、Eレジスタ1315、Fレジスタ1316、Hレジスタ1317、Lレジスタ1318に格納されている値を、それぞれスタックに転送し、転送したスタックのアドレスをSPレジスタ1319に格納する。したがって、SPレジスタ1319には、最後に転送したレジスタの値が格納されたスタックのアドレスが格納されている。なお、スタックとは、メモリ上に確保される領域であり、例えば、第2ワーク領域2260上に確保される。また、本実施の形態においては、各レジスタの値は、転送後にクリアする。そして、ステップS103−3−3−1の処理が終了すると、ステップS103−3−3−2に処理を移行する。
(Step S103-3-3-1)
In step S103-3-3-1, the main CPU 301 performs register save processing. Specifically, the main CPU 301 performs processing of saving the value of the register used at the time of step S103-3-3-1. For example, the values stored in the A register 1311, B register 1312, C register 1313, D register 1314, E register 1315, F register 1316, H register 1317, and L register 1318 in the register group 1300 of the main CPU 301 are respectively stacked And the address of the transferred stack is stored in the SP register 1319. Therefore, the SP register 1319 stores the address of the stack in which the value of the last transferred register is stored. The stack is an area secured on the memory, and is secured on the second work area 2260, for example. Also, in the present embodiment, the value of each register is cleared after transfer. And if the process of step S103-3-3-1 is complete | finished, a process will be transfered to step S103-3-3-2.

(ステップS103−3−3−2)
ステップS103−3−3−2において、メインCPU301は、メダル通過監視テーブルをセットする処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2データ領域2220に記憶され、第1メダル通過センサ62および第2メダル通過センサ63の検出順序により、メダルの正しい通過順を規定するメダル通過監視テーブルをセットする処理を行う。そして、ステップS103−3−3−2の処理が終了すると、ステップS103−3−3−3に処理を移行する。
(Step S103-3-3-2)
In step S103-3-3-2, the main CPU 301 performs processing for setting a medal passage monitoring table. Specifically, the main CPU 301 is stored in the second data area 2220 of the second storage area 2200, and defines the correct passage order of medals by the detection order of the first medal passage sensor 62 and the second medal passage sensor 63. A process of setting a medal passage monitoring table is performed. Then, when the process of step S103-3-3-2 is completed, the process proceeds to step S103-3-3-3.

(ステップS103−3−3−3)
ステップS103−3−3−3において、メインCPU301は、後で図16を用いて詳述するメダル通過監視処理を行う。なお、メダル通過監視処理も、第2記憶領域2200の第2制御領域2210に記憶されたプログラムを呼び出すことにより実行される。当該処理において、メインCPU301は、メダルの通過順序およびメダルの滞留判定処理等を行う。そして、ステップS103−3−3−3の処理が終了すると、ステップS103−3−3−4に処理を移行する。
(Step S103-3-3-3)
In step S103-3-3-3, the main CPU 301 performs medal passing monitoring processing which will be described in detail later using FIG. The medal passage monitoring process is also executed by calling a program stored in the second control area 2210 of the second storage area 2200. In the processing, the main CPU 301 performs a passing order of medals, retention determination processing of medals, and the like. Then, when the process of step S103-3-3-3 is completed, the process proceeds to step S103-3-3-4.

(ステップS103−3−3−4)
ステップS103−3−3−4において、メインCPU301は、エラーを検出したか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS103−3−3−3のメダル通過監視処理において、エラーを検出したか否かを判定する処理を行う。そして、メインCPU301は、エラーを検出したと判定された場合には(ステップS103−3−3−4=Yes)、ステップS103−3−3−7に処理を移行し、エラーを検出していないと判定された場合には(ステップS103−3−3−4=No)、ステップS103−3−3−5に処理を移行する。
(Step S103-3-3-4)
In step S103-3-3-4, the main CPU 301 performs processing to determine whether an error has been detected. Specifically, the main CPU 301 performs processing of determining whether or not an error has been detected in the medal passage monitoring processing of step S103-3-3-3. Then, when it is determined that an error is detected (step S103-3-3-4 = Yes), the main CPU 301 shifts the processing to step S103-3-3-7 and does not detect an error. When it is determined that (step S103-3-3-4 = No), the process proceeds to step S103-3-3-5.

(ステップS103−3−3−5)
ステップS103−3−3−5において、メインCPU301は、メダル通過監視処理が終了したか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS103−3−3−3のメダル通過監視処理が終了したか否かを判定する処理を行う。そして、メダル通過監視処理が終了したと判定された場合には(ステップS103−3−3−5=Yes)、ステップS103−3−3−6に処理を移行し、メダル通過監視処理が終了していないと判定された場合には(ステップS103−3−3−5=No)、ステップS103−3−3−3に処理を移行し、メダル通過監視処理が終了するまで同様の処理を実行する。
(Step S103-3-3-5)
In step S103-3-3-5, the main CPU 301 performs processing to determine whether or not the medal passing monitoring processing has ended. Specifically, the main CPU 301 performs processing to determine whether or not the medal passage monitoring processing in step S103-3-3-3 has ended. When it is determined that the medal passing monitoring process is finished (step S103-3-3-5 = Yes), the process proceeds to step S103-3-3-6, and the medal passing monitoring process is finished. If it is determined not (step S103-3-3-5 = No), the process proceeds to step S103-3-3-3, and the same process is executed until the medal passage monitoring process is completed. .

(ステップS103−3−3−6)
ステップS103−3−3−6において、メインCPU301は、メダル通過監視終了処理を行う。具体的には、メインCPU301は、メダル滞留時間の計時の終了処理等を行う。そして、ステップS103−3−3−6の処理が終了すると、ステップS103−3−3−10に処理を移行する。
(Step S103-3-3-6)
In step S103-3-3-6, the main CPU 301 performs medal passing monitoring end processing. Specifically, the main CPU 301 performs end processing and the like of clocking of the medal retention time. Then, when the process of step S103-3-3-6 ends, the process proceeds to step S103-3-3-10.

(ステップS103−3−3−7)
ステップS103−3−3−7において、メインCPU301は、メダル滞留エラー表示要求セット処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260のエラー表示要求記憶領域に、メダル滞留エラー表示要求をセットする処理を行う。そして、ステップS103−3−3−7の処理が終了すると、ステップS103−3−3−8に処理を移行する。
(Step S103-3-3-7)
In step S103-3-3-7, the main CPU 301 performs medal retention error display request set processing. Specifically, the main CPU 301 performs processing for setting a medal retention error display request in the error display request storage area of the second work area 2260 of the second storage area 2200. Then, when the process of step S103-3-3-7 is completed, the process proceeds to step S103-3-3-8.

(ステップS103−3−3−8)
ステップS103−3−3−8において、メインCPU301は、メダル滞留エラーを検出したか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260のメダル滞留フラグの値がONであるか否かを判定する処理を行う。そして、メダル滞留エラーを検出したと判定された場合には(ステップS103−3−3−8=Yes)、ステップS103−3−3−10に処理を移行し、メダル滞留エラーを検出していないと判定された場合には(ステップS103−3−3−8=No)、ステップS103−3−3−9に処理を移行する。
(Step S103-3-3-8)
In step S103-3-3-8, the main CPU 301 performs processing to determine whether or not a medal retention error has been detected. Specifically, the main CPU 301 performs processing to determine whether the value of the medal retention flag of the second work area 2260 of the second storage area 2200 is ON. When it is determined that the medal retention error is detected (step S103-3-3-8 = Yes), the process proceeds to step S103-3-3-10, and the medal retention error is not detected. When it is determined that (step S103-3-3-8 = No), the process proceeds to step S103-3-3-9.

(ステップS103−3−3−9)
ステップS103−3−3−9において、メインCPU301は、メダル不正通過エラー表示要求セット処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260のエラー表示要求記憶領域に、メダル不正通過エラー表示要求をセットする処理を行う。そして、ステップS103−3−3−9の処理が終了すると、ステップS103−3−3−10に処理を移行する。
(Step S103-3-3-9)
In step S103-3-3-9, the main CPU 301 performs an invalid medal passing error display request set process. Specifically, the main CPU 301 performs processing for setting a medal fraud passing error display request in the error display request storage area of the second work area 2260 of the second storage area 2200. Then, when the process of step S103-3-3-9 ends, the process proceeds to step S103-3-3-10.

(ステップS103−3−3−10)
ステップS103−3−3−10において、メインCPU301は、レジスタ復帰処理を行う。具体的には、メインCPU301は、ステップS103−3−3−10の処理において、退避したレジスタの値を復帰させる処理を行う。例えば、スタックに転送したメインCPU301のレジスタ群1300におけるAレジスタ1311、Bレジスタ1312、Cレジスタ1313、Dレジスタ1314、Eレジスタ1315、Fレジスタ1316、Hレジスタ1317、Lレジスタ1318に格納されていた値を、SPレジスタ1319の値に基づき、スタックから転送時とは逆の順序で、Lレジスタ1318、Hレジスタ1317、Fレジスタ1316、Eレジスタ1315、Dレジスタ1314、Cレジスタ1313、Bレジスタ1312、Aレジスタ1311に転送し、格納する。そして、ステップS103−3−3−10の処理が終了すると、第2メダル投入チェック処理を終了し、第1メダル投入チェック処理に復帰し、ステップS103−3−4に処理を移行する。
(Step S103-3-3-10)
In step S103-3-3-10, the main CPU 301 performs register recovery processing. Specifically, the main CPU 301 performs processing of restoring the value of the saved register in the processing of step S103-3-3-10. For example, the values stored in the A register 1311, B register 1312, C register 1313, D register 1314, E register 1315, F register 1316, H register 1317, and L register 1318 in the register group 1300 of the main CPU 301 transferred to the stack The L register 1318, the H register 1317, the F register 1316, the E register 1315, the D register 1314, the C register 1313, the B register 1312 and the A based on the value of the SP register 1319 and in the reverse order of transfer from the stack. Transfer to register 1311 and store. Then, when the process of step S103-3-3-10 ends, the second medal insertion check process ends, and the process returns to the first medal insertion check process, and the process proceeds to step S103-3-4.

(メダル通過監視処理)
次に、図16に基づいて、図15のステップS103−3−3−3の処理により行われるメダル通過監視処理についての説明を行う。なお、図16はメダル通過監視処理のサブルーチンを示す図である。また、上記のように、メダル通過監視処理も、第2記憶領域2200の第2制御領域2210に記憶されたプログラムを呼び出すことにより実行される。
(Medal passage monitoring process)
Next, based on FIG. 16, the medal passage monitoring process performed by the process of step S103-3-3-3 of FIG. 15 will be described. FIG. 16 is a diagram showing a subroutine of medal passage monitoring processing. Further, as described above, the medal passing monitoring process is also executed by calling a program stored in the second control area 2210 of the second storage area 2200.

(ステップS103−3−3−3−1)
ステップS103−3−3−3−1において、メインCPU301は、第1メダル通過センサ62および第2メダル通過センサ63の信号の状態を参照する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160におけるメダル通過センサ値記憶領域の値(第1メダル通過センサ状態値および第2メダル通過センサ状態値)を参照し、今回第1メダル通過センサ状態値および今回第2メダル通過センサ状態値として、第2記憶領域2200の第2ワーク領域2260におけるメダル通過センサ値記憶領域に記憶する。なお、第1記憶領域2100の第1ワーク領域2160には、第1記憶領域2100の第1制御領域2110に記憶されたプログラムにより実行される後述する割込処理において、第1メダル通過センサ62および第2メダル通過センサ63の信号値に対応する入力ポートの値が、第1メダル通過センサ状態値および第2メダル通過センサ状態値として記憶されている。
(Step S103-3-3-3-1)
In step S 103-3-3-3-1, the main CPU 301 performs processing of referring to the states of the signals of the first medal passage sensor 62 and the second medal passage sensor 63. Specifically, the main CPU 301 refers to the values of the medal passing sensor value storage area in the first work area 2160 of the first storage area 2100 (first medal passing sensor state value and second medal passing sensor state value), The current medal passing sensor state value and the current second medal passing sensor state value are stored in the medal passing sensor value storage area in the second work area 2260 of the second storage area 2200. In the first work area 2160 of the first storage area 2100, the first medal passing sensor 62 and the first medal passing sensor 62 and the interrupt process to be described later executed by the program stored in the first control area 2110 of the first storage area 2100 The value of the input port corresponding to the signal value of the second medal passage sensor 63 is stored as a first medal passage sensor state value and a second medal passage sensor state value.

また、第1記憶領域2100の第1ワーク領域2160におけるメダル通過センサ値記憶領域の値の取り込みの前に、第2記憶領域2200の第2ワーク領域2260におけるメダル通過センサ値記憶領域に記憶されている今回第1メダル通過センサ状態値および今回第2メダル通過センサ状態値を、第2ワーク領域2260におけるメダル通過センサ値記憶領域に前回第1メダル通過センサ状態値および前回第2メダル通過センサ状態値として記憶させておく。
そして、ステップS103−3−3−3−1の処理が終了すると、ステップS103−3−3−3−2に処理を移行する。
Also, before capturing the value of the medal passing sensor value storage area in the first work area 2160 of the first storage area 2100, it is stored in the medal passing sensor value storage area in the second work area 2260 of the second storage area 2200 The current first medal passing sensor state value and the current second medal passing sensor state value are stored in the medal passing sensor value storage area in the second work area 2260. The previous first medal passing sensor state value and the previous second medal passing sensor state value I will remember as.
And if the process of step S103-3-3-3-1 is complete | finished, a process will be transfered to step S103-3-3-3-2.

(ステップS103−3−3−3−2)
ステップS103−3−3−3−2において、メインCPU301は、第1メダル通過センサ62の値がONで、前回第1メダル通過センサ62の値がOFFであるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における今回第1メダル通過センサ状態値がONで、前回第1メダル通過センサ状態値がOFFであるか否かを判定する処理を行う。そして、今回第1メダル通過センサ状態値がONで、前回第1メダル通過センサ状態値がOFFであると判定された場合には(ステップS103−3−3−3−2=Yes)、ステップS103−3−3−3−3に処理を移行し、今回第1メダル通過センサ状態値がON、または、前回第1メダル通過センサ状態値がOFFでないと判定された場合には(ステップS103−3−3−3−2=No)、ステップS103−3−3−3−4に処理を移行する。
(Step S103-3-3-3-2)
In step S103-3-3-3-2, the main CPU 301 determines whether the value of the first medal passage sensor 62 is ON and the value of the first medal passage sensor 62 is OFF last time. . Specifically, the main CPU 301 determines whether the present first medal passage sensor state value in the second work area 2260 of the second storage area 2200 is ON and the previous first medal passage sensor state value is OFF. Do the process. Then, if it is determined that the current first medal passage sensor state value is ON and the previous first medal passage sensor state value is OFF (step S103-3-3-3-2 = Yes), step S103. The process proceeds to -3-3-3-3, and it is determined that the current first medal passage sensor state value is not ON or the previous first medal passage sensor state value is not OFF (step S103-3). -3-3-2 = No), the process proceeds to step S103-3-3-3-4.

(ステップS103−3−3−3−3)
ステップS103−3−3−3−3において、メインCPU301は、メダル滞留時間の計時を開始する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260におけるメダル滞留時間の値をクリアし、割込処理によるメダル滞留時間の更新を開始させる処理を行う。そして、ステップS103−3−3−3−3の処理が終了すると、ステップS103−3−3−3−4に処理を移行する。
(Step S103-3-3-3-3)
In step S103-3-3-3-3, the main CPU 301 performs processing to start clocking of the medal staying time. Specifically, the main CPU 301 clears the value of the medal retention time in the second work area 2260 of the second storage area 2200, and performs processing for starting the update of the medal retention time by the interrupt processing. Then, when the process of step S103-3-3-3-3 ends, the process proceeds to step S103-3-3-3-4.

(ステップS103−3−3−3−4)
ステップS103−3−3−3−4において、メインCPU301は、メダル不正通過判定処理を行う。具体的には、メインCPU301は、ステップS103−3−3−2でセットしたメダル通過開始テーブルに基づいて、今回第1メダル通過センサ状態値および今回第2メダル通過センサ状態値を、前回第1メダル通過センサ状態値および前回第2メダル通過センサ状態値と比較し、メダルの不正通過を判定する処理を行う。
(Step S103-3-3-3-4)
In step S103-3-3-3-4, the main CPU 301 performs an illegal medal passage determination process. Specifically, based on the medal passage start table set in step S103-3-3-2, the main CPU 301 sets the current first medal passage sensor state value and the current second medal passage sensor state value to the first previous time. The medal passing sensor state value and the previous second medal passing sensor state value are compared with each other to determine the illegal passing of the medal.

例えば、今回状態組み合わせ(今回第1メダル通過センサ状態値および今回第2メダル通過センサ状態値の組み合わせ;以下同じ)が、「ON、OFF」である場合には、前回状態組み合わせ(前回第1メダル通過センサ状態値および前回第2メダル通過センサ状態値の組み合わせ;以下同じ)は、「OFF、OFF」または「ON、OFF」でなければメダルの不正通過と判定する。また、今回状態組み合わせが、「ON、ON」である場合には、前回状態組み合わせは、「ON、OFF」または「ON、ON」でなければメダルの不正通過と判定する。また、今回状態組み合わせが、「OFF、ON」である場合には、前回状態組み合わせは、「ON、ON」または「OFF、ON」でなければメダルの不正通過と判定する。さらに、今回状態組み合わせが、「OFF、OFF」である場合には、前回状態組み合わせは、「OFF、ON」または「OFF、OFF」でなければメダルの不正通過と判定する。
そして、ステップS103−3−3−3−4の処理が終了すると、ステップS103−3−3−3−5に処理を移行する。
For example, if the current state combination (combination of current first medal passing sensor state value and current second medal passing sensor state value; the same applies hereinafter) is “ON, OFF”, the previous state combination (previous first medal) The combination of the passage sensor state value and the previous second medal passage sensor state value; the same applies hereinafter) is determined to be the illegal passage of the medal unless “OFF, OFF” or “ON, OFF”. If the current state combination is "ON, ON", it is determined that the medal has not been illegally passed unless the previous state combination is "ON, OFF" or "ON, ON". If the current state combination is "OFF, ON", it is determined that the medal has not been illegally passed unless the previous state combination is "ON, ON" or "OFF, ON". Furthermore, if the current state combination is "OFF, OFF", the previous state combination is determined to be an illegal passage of the medal unless it is "OFF, ON" or "OFF, OFF".
Then, when the process of step S103-3-3-3-4 ends, the process proceeds to step S103-3-3-3-5.

(ステップS103−3−3−3−5)
ステップS103−3−3−3−5において、メインCPU301は、メダル不正通過を検出したか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS103−3−3−3−4のメダル不正通過判定処理において、メダル不正通過を検出したか否かを判定する処理を行う。そして、メダル不正通過を検出したと判定された場合には(ステップS103−3−3−3−5=Yes)、ステップS103−3−3−3−6に処理を移行し、メダル不正通過を検出していないと判定された場合には(ステップS103−3−3−3−5=No)、ステップS103−3−3−3−7に処理を移行する。
(Step S103-3-3-3-5)
In step S103-3-3-3-5, the main CPU 301 performs processing to determine whether or not an illegal medal passage has been detected. Specifically, the main CPU 301 executes a process of determining whether or not the medal illegal passage has been detected in the medal illegal passage determination process of step S103-3-3-3-4. Then, when it is determined that the illegal medal passage has been detected (step S103-3-3-3-5 = Yes), the process proceeds to step S103-3-3-3-6, and the illegal medal passage is made. If it is determined that the information is not detected (step S103-3-3-3-5 = No), the process proceeds to step S103-3-3-3-7.

(ステップS103−3−3−3−6)
ステップS103−3−3−3−6において、メインCPU301は、メダル不正通過フラグをONとする処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260におけるメダル不正通過フラグにONをセットする処理を行う。そして、ステップS103−3−3−3−6の処理が終了すると、メダル通過監視処理を終了し、第2メダル投入チェック処理のステップS103−3−3−4に処理を移行する。
(Step S103-3-3-3-6)
In step S103-3-3-3-6, the main CPU 301 performs a process of turning on the illegal medal passing flag. Specifically, the main CPU 301 performs processing for setting ON the medal fraud passing flag in the second work area 2260 of the second storage area 2200. Then, when the process of step S103-3-3-3-6 ends, the medal passage monitoring process ends, and the process proceeds to step S103-3-3-4 of the second medal insertion check process.

(ステップS103−3−3−3−7)
ステップS103−3−3−3−7において、メインCPU301は、メダル滞留判定処理を行う。具体的には、メインCPU301は、メダル滞留時間が所定のメダル滞留判定値(例えば、50ms)以上となったか否かを判定する処理を行う。
(Step S103-3-3-3-7)
In step S103-3-3-3-7, the main CPU 301 performs medal retention determination processing. Specifically, the main CPU 301 performs processing to determine whether or not the medal retention time is equal to or more than a predetermined medal retention determination value (for example, 50 ms).

なお、メダル滞留時間とは、第1メダル通過センサの信号がONとなったとき(前回第1メダル通過センサ状態値がOFFで、今回第1メダル通過センサ状態値がONとなったとき)に計時が開始され、第1メダル通過センサおよび第2メダル通過センサの信号がOFFとなる(前回第2メダル通過センサ状態値がONで、今回第1メダル通過センサ状態値および今回第2メダル通過センサ状態値がOFFとなったとき)まで計時される、メダルが第1メダル通過センサ62と第2メダル通過センサ63の間を通過するまでの時間である。
そして、ステップS103−3−3−3−7の処理が終了すると、ステップS103−3−3−3−8に処理を移行する。
In addition, with medal residence time, when the signal of the 1st medal passage sensor becomes ON (when the 1st medal passage sensor state value was OFF last time and the 1st medal passage sensor state value becomes ON this time) Time counting is started, and the signals of the first medal passage sensor and the second medal passage sensor are turned off (when the previous second medal passage sensor state value is ON, the current first medal passage sensor state value and the current second medal passage sensor) It is the time until the medal passes between the first medal passing sensor 62 and the second medal passing sensor 63 which is clocked until the state value is turned OFF).
Then, when the process of step S103-3-3-3-7 ends, the process proceeds to step S103-3-3-3-8.

(ステップS103−3−3−3−8)
ステップS103−3−3−3−8において、メインCPU301は、メダル滞留であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS103−3−3−3−7のメダル滞留判定処理において、メダル滞留時間がメダル滞留判定値以上であれば、メダル滞留と判定し、メダル滞留判定値未満であれば、メダル滞留ではないと判定する。そして、メダル滞留と判定された場合には(ステップS103−3−3−3−8=Yes)、ステップS103−3−3−3−9に処理を移行し、メダル滞留ではないと判定された場合には(ステップS103−3−3−3−8=No)、メダル通過監視処理を終了し、第2メダル投入チェック処理のステップS103−3−3−4に処理を移行する。
(Step S103-3-3-3-8)
In step S103-3-3-3-8, the main CPU 301 performs processing to determine whether or not medals are staying. Specifically, in the medal retention determination process of step S103-3-3-3-7, if the medal retention time is equal to or more than the medal retention determination value, the main CPU 301 determines that the medal retention is less than the medal retention determination value. If it is, it is determined that the medal is not staying. When it is determined that the medal is retained (step S103-3-3-3-8 = Yes), the process proceeds to step S103-3-3-3-9, and it is determined that the medal is not retained. In the case (step S103-3-3-3-8 = No), the medal passage monitoring process is ended, and the process proceeds to step S103-3-3-4 of the second medal insertion check process.

(ステップS103−3−3−3−9)
ステップS103−3−3−3−9において、メインCPU301は、メダル滞留フラグをONとする処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260におけるメダル滞留フラグにONをセットする処理を行う。そして、ステップS103−3−3−3−9の処理が終了すると、メダル通過監視処理を終了し、第2メダル投入チェック処理のステップS103−3−3−4に処理を移行する。
(Step S103-3-3-3-9)
In step S103-3-3-3-9, the main CPU 301 performs processing for turning on the medal retention flag. Specifically, the main CPU 301 performs processing of setting ON the medal retention flag in the second work area 2260 of the second storage area 2200. When the process of step S103-3-3-3-9 ends, the medal passage monitoring process ends, and the process proceeds to step S103-3-3-4 of the second medal insertion check process.

(内部抽選処理)
次に、図17に基づいて、図12のステップS107の処理により行われる内部抽選処理についての説明を行う。なお、図17は内部抽選処理のサブルーチンを示す図である。
(Internal lottery process)
Next, based on FIG. 17, the internal lottery process performed by the process of step S107 of FIG. 12 will be described. FIG. 17 is a diagram showing a subroutine of the internal lottery process.

(ステップS107−1)
ステップS107−1において、メインCPU301は、ハード乱数取得処理を行う。具体的には、メインCPU301は、メイン乱数発生器304により生成した乱数値を抽出する処理を行うとともに、抽出した乱数値をレジスタに記憶する処理を行う。そして、ステップS107−1の処理が終了すると、ステップS107−2に処理を移行する。
(Step S107-1)
In step S107-1, the main CPU 301 performs hard random number acquisition processing. Specifically, the main CPU 301 performs processing of extracting the random number value generated by the main random number generator 304, and performs processing of storing the extracted random number value in the register. Then, when the process of step S107-1 ends, the process proceeds to step S107-2.

(ステップS107−2)
ステップS107−2において、メインCPU301は、当選番号初期値取得処理を行う。具体的には、メインCPU301は、当選役を決定するに際して当選番号の初期値を取得する処理を行う。ここで、本実施形態において、メインCPU301は、当選番号の初期値として「45」を取得し、レジスタに記憶する処理を行う。そして、ステップS107−2の処理が終了すると、ステップS107−3に処理を移行する。
(Step S107-2)
In step S107-2, the main CPU 301 performs a winning number initial value acquisition process. Specifically, the main CPU 301 performs processing for acquiring an initial value of the winning number when determining the winning combination. Here, in the present embodiment, the main CPU 301 acquires “45” as an initial value of the winning number and performs processing of storing the value in the register. Then, when the process of step S107-2 ends, the process proceeds to step S107-3.

(ステップS107−3)
ステップS107−3において、メインCPU301は、遊技状態取得処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている遊技状態格納領域の値に基づいて、遊技状態を取得する処理を行う。そして、ステップS107−3の処理が終了すると、ステップS107−4に処理を移行する。
(Step S107-3)
In step S107-3, the main CPU 301 performs gaming state acquisition processing. Specifically, the main CPU 301 performs processing for acquiring the gaming state based on the value of the gaming state storage area provided in the main RAM 303. Then, when the process of step S107-3 ends, the process proceeds to step S107-4.

(ステップS107−4)
ステップS107−4において、メインCPU301は、当選役決定テーブル設定処理を行う。具体的には、メインCPU301は、ステップS107−3の遊技状態取得処理において取得した遊技状態に係る情報に基づいて、メインROM302に設けられている当選役決定テーブルを設定する処理を行う。そして、ステップS107−4の処理が終了すると、ステップS107−5に処理を移行する。
(Step S107-4)
In step S107-4, the main CPU 301 performs a winning combination determination table setting process. Specifically, the main CPU 301 performs processing for setting a winning combination determination table provided in the main ROM 302 based on the information related to the gaming state acquired in the gaming state acquisition processing of step S107-3. And if the process of step S107-4 is complete | finished, a process will be transfered to step S107-5.

(ステップS107−5)
ステップS107−5において、メインCPU301は、抽選データ取得処理を行う。具体的には、メインCPU301は、ステップS107−4の当選役決定テーブル設定処理により設定された当選役決定テーブルと、レジスタに記憶されている当選番号に基づいて、当選番号に対応する当選役に係るデータを取得する処理を行う。そして、ステップS107−5の処理が終了すると、ステップS107−6に処理を移行する。
(Step S107-5)
In step S107-5, the main CPU 301 performs lottery data acquisition processing. Specifically, the main CPU 301 selects the winning combination corresponding to the winning number based on the winning combination determining table set by the winning combination determining table setting process of step S107-4 and the winning number stored in the register. Perform processing to acquire such data. Then, when the process of step S107-5 ends, the process proceeds to step S107-6.

(ステップS107−6)
ステップS107−6において、メインCPU301は、抽選値取得処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている設定値格納領域に格納されている値と、レジスタに記憶されている当選番号に基づいて、現在セットされている当選役決定テーブルの抽選値を取得し、レジスタに記憶する処理を行う。そして、ステップS107−6の処理が終了すると、ステップS107−7に処理を移行する。
(Step S107-6)
In step S107-6, the main CPU 301 performs lottery value acquisition processing. Specifically, the main CPU 301 sets the winning combination determination table currently set based on the value stored in the setting value storage area provided in the main RAM 303 and the winning number stored in the register. A lottery value is acquired and stored in a register. And if the process of step S107-6 is complete | finished, a process will be transfered to step S107-7.

(ステップS107−7)
ステップS107−7において、メインCPU301は、抽選確認処理を行う。具体的には、メインCPU301は、レジスタに記憶されている乱数値から、ステップS107−6の抽選値取得処理により取得した抽選値を減算し、乱数値が記憶されていたレジスタの値を、減算した後の値に更新して記憶する処理を行う。そして、ステップS107−7の処理が終了すると、ステップS107−8に処理を移行する。
(Step S107-7)
In step S107-7, the main CPU 301 performs lottery confirmation processing. Specifically, the main CPU 301 subtracts the lottery value acquired by the lottery value acquiring process of step S107-6 from the random number value stored in the register, and subtracts the value of the register in which the random number is stored. Update the value to the value after it has been stored. Then, when the process of step S107-7 ends, the process proceeds to step S107-8.

(ステップS107−8)
ステップS107−8において、メインCPU301は、当選したか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS107−7の抽選確認処理により、レジスタに記憶された乱数値から、ステップS107−6の抽選値取得処理により取得した抽選値を減算する処理を行った結果、負の値となったか否かを判定する処理を行う。そして、当選したと判定された場合には(ステップS107−8=Yes)、レジスタに記憶されている当選番号に基づいて当選役を決定した後、内部抽選処理のサブルーチンを終了し、メインループ処理のステップS108に処理を移行する。一方、当選していないと判定された場合には(ステップS107−8=No)、ステップS107−9に処理を移行する。
(Step S107-8)
In step S107-8, the main CPU 301 performs processing to determine whether or not the game has been won. Specifically, the main CPU 301 executes the process of subtracting the lottery value acquired by the lottery value acquisition process of step S107-6 from the random number value stored in the register by the lottery confirmation process of step S107-7. , And a process of determining whether or not it has a negative value. When it is determined that the winning combination has been made (step S107-8 = Yes), the winning combination is determined based on the winning number stored in the register, and then the subroutine of the internal lottery processing is ended, and the main loop processing is performed. The process proceeds to step S108 of FIG. On the other hand, when it is determined that the player has not won (step S107-8 = No), the process proceeds to step S107-9.

(ステップS107−9)
ステップS107−9において、メインCPU301は、当選番号の値から「1」減算する処理を行う。具体的には、メインCPU301は、レジスタに記憶している当選番号から「1」減算する処理を行う。そして、ステップS107−9の処理が終了すると、ステップS107−10に処理を移行する。
(Step S107-9)
In step S107-9, the main CPU 301 executes a process of subtracting “1” from the value of the winning number. Specifically, the main CPU 301 performs processing of subtracting “1” from the winning number stored in the register. Then, when the process of step S107-9 ends, the process proceeds to step S107-10.

(ステップS107−10)
ステップS107−10において、メインCPU301は、当選番号の値が「0」であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS107−9の処理により、レジスタに記憶されている当選番号の値から「1」減算した結果、当選番号の値が「0」となったか否かを判定する処理を行う。そして、当選番号の値が「0」であると判定された場合には(ステップS107−10=Yes)、当選役として「ハズレ」を決定した後、内部抽選処理のサブルーチンを終了し、メインループ処理のステップS108に処理を移行する。一方、当選番号の値が「0」ではないと判定された場合には(ステップS107−10=No)、ステップS107−3に処理を移行する。
(Step S107-10)
In step S107-10, the main CPU 301 performs processing to determine whether or not the value of the winning number is "0". Specifically, the main CPU 301 determines whether or not the value of the winning number has become “0” as a result of subtracting “1” from the value of the winning number stored in the register in the process of step S107-9. Do the process. Then, if it is determined that the value of the winning number is "0" (step S107-10 = Yes), the subroutine of the internal lottery process is ended after determining "losing" as the winning combination and the main loop The process proceeds to step S108 of the process. On the other hand, when it is determined that the value of the winning number is not "0" (step S107-10 = No), the process proceeds to step S107-3.

(第1メダル払出処理)
次に、図18に基づいて、図12のステップS115の処理により行われる第1メダル払出処理についての説明を行う。なお、図18は第1メダル払出処理のサブルーチンを示す図である。
(First medal payout process)
Next, based on FIG. 18, the first medal payout process performed by the process of step S115 of FIG. 12 will be described. FIG. 18 is a diagram showing a subroutine of the first medal payout processing.

(ステップS115−1)
ステップS115−1において、メインCPU301は、再遊技作動中フラグがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている再遊技作動中フラグ格納領域の値に基づいて、再遊技作動中フラグがONであるか否かを判定する処理を行う。そして、再遊技作動中フラグがONであると判定された場合には(ステップS115−1=Yes)、ステップS115−3に処理を移行し、再遊技作動中フラグがONではないと判定された場合には(ステップS115−1=No)、ステップS115−2に処理を移行する。
(Step S115-1)
In step S115-1, the main CPU 301 performs processing to determine whether the in-replay flag is on. Specifically, the main CPU 301 performs processing to determine whether or not the replaying action flag is ON, based on the value of the replaying action flag storage area provided in the main RAM 303. Then, if it is determined that the replaying action flag is ON (step S115-1 = Yes), the process proceeds to step S115-3, and it is determined that the replaying action flag is not ON. In the case (step S115-1 = No), the process proceeds to step S115-2.

(ステップS115−2)
ステップS115−2において、メインCPU301は、残り払出枚数カウンタをセットする処理を行う。具体的には、メインCPU301は、算定された払出枚数の値をレジスタにセットする処理を行う。そして、ステップS115−2の処理が終了すると、ステップS115−3に処理を移行する。
(Step S115-2)
In step S115-2, the main CPU 301 performs processing to set the remaining payout number counter. Specifically, the main CPU 301 performs processing for setting the value of the calculated number of payouts in a register. Then, when the process of step S115-2 ends, the process proceeds to step S115-3.

(ステップS115−3)
ステップS115−3において、メインCPU301は、残り払出枚数カウンタの値が「1」以上であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS115−2の処理により、レジスタにセットされた残り払出枚数カウンタの値が「1」以上であるか否かを判定する処理を行う。そして、残り払出枚数カウンタの値が「1」以上であると判定された場合には(ステップS115−3=Yes)、ステップS115−4に処理を移行し、残り払出枚数カウンタの値が「1」以上ではないと判定された場合には(ステップS115−3=No)、第1メダル払出処理のサブルーチンを終了し、メインループ処理のステップS116に処理を移行する。
(Step S115-3)
In step S115-3, the main CPU 301 performs processing to determine whether the value of the remaining payout counter is “1” or more. Specifically, the main CPU 301 executes a process of step S115-2 to determine whether the value of the remaining payout counter set in the register is "1" or more. Then, if it is determined that the value of the remaining payout counter is “1” or more (step S115-3 = Yes), the process proceeds to step S115-4, and the value of the remaining payout counter is “1”. If it is determined that the condition is not more than "" (step S115-3 = No), the subroutine of the first medal payout process is ended, and the process proceeds to step S116 of the main loop process.

(ステップS115−4)
ステップS115−4において、メインCPU301は、メダル払出開始コマンドをセットする処理を行う。具体的には、メインCPU301は、メダル払出開始コマンドをサブ制御基板400に対して送信するために、当該メダル払出開始コマンドを、メインRAM303に設けられている演出用伝送データ格納領域にセットする処理を行う。ここで、「メダル払出開始コマンド」とは、メダルの払出を開始する旨の情報等を有するコマンドである。そして、ステップS115−4の処理が終了すると、ステップS115−5に処理を移行する。
(Step S115-4)
In step S115-4, the main CPU 301 performs processing for setting a medal payout start command. Specifically, the main CPU 301 sets the medal payout start command in the effect transmission data storage area provided in the main RAM 303 in order to transmit the medal payout start command to the sub control board 400. I do. Here, “the medal payout start command” is a command having information etc. indicating that medal payout is to be started. Then, when the process of step S115-4 ends, the process proceeds to step S115-5.

(ステップS115−5)
ステップS115−5において、メインCPU301は、貯留枚数カウンタの値が「50」であるか否かを判定する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている貯留枚数カウンタの値が「50」であるか否かを判定する処理を行う。そして、貯留枚数カウンタの値が「50」であると判定された場合には(ステップS115−5=Yes)、ステップS115−7に処理を移行し、貯留枚数カウンタの値が「50」ではないと判定された場合には(ステップS115−5=No)、ステップS115−6に処理を移行する。
(Step S115-5)
In step S115-5, the main CPU 301 executes processing to determine whether the value of the stored sheet counter is "50". Specifically, the main CPU 301 performs processing to determine whether the value of the stored sheet counter provided in the main RAM 303 is “50”. When it is determined that the value of the stored sheet counter is "50" (step S115-5 = Yes), the process proceeds to step S115-7, and the value of the stored sheet counter is not "50". If it is determined that (step S115-5 = No), the process proceeds to step S115-6.

(ステップS115−6)
ステップS115−6において、メインCPU301は、貯留枚数カウンタの値に「1」加算する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている貯留枚数カウンタの値に「1」加算する処理を行う。そして、ステップS115−6の処理が終了すると、ステップS115−8に処理を移行する。
(Step S115-6)
In step S115-6, the main CPU 301 performs processing of adding “1” to the value of the stored sheet number counter. Specifically, the main CPU 301 performs processing of adding “1” to the value of the stored sheet number counter provided in the main RAM 303. Then, when the process of step S115-6 ends, the process proceeds to step S115-8.

(ステップS115−7)
ステップS115−7において、メインCPU301は、後で図19を用いて詳述するメダル一枚払出処理を行う。当該処理において、メインCPU301は、電源基板200を介してホッパー202を駆動することにより、メダルを「1」枚払い出す制御を行う。そして、ステップS115−7の処理が終了すると、ステップS115−8に処理を移行する。
(Step S115-7)
In step S115-7, the main CPU 301 executes a medal single payout process which will be described in detail later with reference to FIG. In the processing, the main CPU 301 drives the hopper 202 through the power supply substrate 200 to control to pay out “1” medals. Then, when the process of step S115-7 ends, the process proceeds to step S115-8.

(ステップS115−8)
ステップS115−8において、メインCPU301は、獲得枚数カウンタの値に「1」加算する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている獲得枚数カウンタの値に「1」加算する処理を行う。そして、ステップS115−8の処理が終了すると、ステップS115−9に処理を移行する。
(Step S115-8)
In step S115-8, the main CPU 301 performs processing of adding “1” to the value of the obtained sheet number counter. Specifically, the main CPU 301 performs processing of adding “1” to the value of the acquired sheet number counter provided in the main RAM 303. Then, when the process of step S115-8 ends, the process proceeds to step S115-9.

(ステップS115−9)
ステップS115−9において、メインCPU301は、残り払出枚数カウンタの値から「1」減算する処理を行う。具体的には、メインCPU301は、レジスタにセットされている残り払出枚数カウンタの値から「1」減算する処理を行う。そして、ステップS115−9の処理が終了すると、ステップS115−10に処理を移行する。
(Step S115-9)
In step S115-9, the main CPU 301 performs processing of subtracting “1” from the value of the remaining payout amount counter. Specifically, the main CPU 301 executes a process of subtracting “1” from the value of the remaining payout number counter set in the register. Then, when the process of step S115-9 ends, the process proceeds to step S115-10.

(ステップS115−10)
ステップS115−10において、メインCPU301は、残り払出枚数カウンタの値が「0」以下であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS115−9の処理により残り払出枚数カウンタの値から「1」減算した結果、残り払出枚数カウンタの値が「0」以下であるか否かを判定する処理を行う。そして、残り払出枚数カウンタの値が「0」以下であると判定された場合には(ステップS115−10=Yes)、ステップS115−11に処理を移行し、残り払出枚数カウンタの値が「0」以下ではないと判定された場合には(ステップS115−10=No)、ステップS115−5に処理を移行する。
(Step S115-10)
In step S115-10, the main CPU 301 performs processing to determine whether the value of the remaining payout counter is less than or equal to "0". Specifically, the main CPU 301 determines whether or not the value of the remaining payout counter is less than or equal to “0” as a result of subtracting “1” from the value of the remaining payout counter by the process of step S115-9. I do. Then, if it is determined that the value of the remaining payout counter is less than or equal to "0" (step S115-10 = Yes), the process proceeds to step S115-11, and the value of the remaining payout counter is "0." If it is determined that the value is not equal to or less than (step S115-10 = No), the process proceeds to step S115-5.

(ステップS115−11)
ステップS115−11において、メインCPU301は、メダル払出終了コマンドをセットする処理を行う。具体的には、メインCPU301は、メダル払出終了コマンドをサブ制御基板400に対して送信するために、当該メダル払出終了コマンドを、メインRAM303に設けられている演出用伝送データ格納領域にセットする処理を行う。ここで、「メダル払出終了コマンド」とは、メダルの払出が終了した旨の情報等を有するコマンドである。そして、ステップS115−11の処理が終了すると、第1メダル払出処理のサブルーチンを終了し、メインループ処理のステップS116に処理を移行する。
(Step S115-11)
In step S115-11, the main CPU 301 performs processing for setting a medal payout end command. Specifically, the main CPU 301 sets the medal payout end command in the effect transmission data storage area provided in the main RAM 303 in order to transmit the medal payout end command to the sub control board 400. I do. Here, “the medal payout end command” is a command having information etc. indicating that medal payout has ended. When the process of step S115-11 ends, the subroutine of the first medal payout process ends, and the process proceeds to step S116 of the main loop process.

(メダル一枚払出処理)
次に、図19に基づいて、図18のステップS115−7の処理により行われるメダル一枚払出処理についての説明を行う。なお、図19はメダル一枚払出処理のサブルーチンを示す図である。
(One medal payout process)
Next, with reference to FIG. 19, the medal single-payout process performed in the process of step S115-7 of FIG. 18 will be described. FIG. 19 is a diagram showing a subroutine of the medal one piece payout process.

(ステップS115−7−1)
ステップS115−7−1において、メインCPU301は、残り払出枚数を退避させる処理を行う。そして、ステップS115−7−1の処理が終了すると、ステップS115−7−2に処理を移行する。
(Step S115-7-1)
In step S115-7-1, the main CPU 301 executes a process of evacuating the remaining payout number. Then, when the process of step S115-7-1 ends, the process proceeds to step S115-7-2.

(ステップS115−7−2)
ステップS115−7−2において、メインCPU301は、ホッパーモータ91が駆動中であるか否かを判定する処理を行う。そして、ホッパーモータ91が駆動中であると判定された場合には(ステップS115−7−2=Yes)、ステップS115−7−5に処理を移行し、ホッパーモータ91が駆動中ではないと判定された場合には(ステップS115−7−2=No)、ステップS115−7−3に処理を移行する。
(Step S115-7-2)
In step S115-7-2, the main CPU 301 performs processing to determine whether the hopper motor 91 is in operation. When it is determined that the hopper motor 91 is in operation (step S115-7-2 = Yes), the process proceeds to step S115-7-5, and it is determined that the hopper motor 91 is not in operation. If it is determined (step S115-7-2 = No), the process proceeds to step S115-7-3.

(ステップS115−7−3)
ステップS115−7−3において、メインCPU301は、ホッパーモータ91を駆動させる処理を行う。なお、メインCPU301は、ホッパーモータ91を駆動させる際には、第1記憶領域2100の第1ワーク領域2160におけるホッパーモータ駆動中フラグをONとする。また、メインCPU301は、ホッパーモータ91を停止させる際には、第1記憶領域2100の第1ワーク領域2160におけるホッパーモータ駆動中フラグをOFFとする。そして、ステップS115−7−3の処理が終了すると、ステップS115−7−4に処理を移行する。
(Step S115-7-3)
In step S115-7-3, the main CPU 301 performs processing for driving the hopper motor 91. When driving the hopper motor 91, the main CPU 301 sets the hopper motor driving flag in the first work area 2160 of the first storage area 2100 to ON. When stopping the hopper motor 91, the main CPU 301 sets the hopper motor driving flag in the first work area 2160 of the first storage area 2100 to OFF. Then, when the process of step S115-7-3 ends, the process proceeds to step S115-7-4.

(ステップS115−7−4)
ステップS115−7−4において、メインCPU301は、ホッパーモータ91の駆動時間の計時を開始する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160におけるホッパーモータ駆動時間の値をクリアし、割込処理によるホッパーモータ駆動時間の更新を開始させる処理を行う。そして、ステップS115−7−4の処理が終了すると、ステップS115−7−5に処理を移行する。
(Step S115-7-4)
In step S115-7-4, the main CPU 301 performs processing for starting measurement of the driving time of the hopper motor 91. Specifically, the main CPU 301 clears the value of the hopper motor driving time in the first work area 2160 of the first storage area 2100, and performs processing for starting updating of the hopper motor driving time by the interrupt processing. Then, when the process of step S115-7-4 is completed, the process proceeds to step S115-7-5.

(ステップS115−7−5)
ステップS115−7−5において、メインCPU301は、ホッパーモータ91の駆動時間が6000ms以上であるか否かを判定する処理を行う。具体的には、メインCPU301は、割込処理により更新される第1記憶領域2100の第1ワーク領域2160におけるホッパーモータ駆動時間の値が、6000ms以上であるか否かを判定する。そして、ホッパーモータ駆動時間が6000ms以上であると判定された場合には(ステップS115−7−5=Yes)、ステップS115−7−6に処理を移行し、ホッパーモータ駆動時間が6000ms以上ではないと判定された場合には(ステップS115−7−5=No)、ステップS115−7−7に処理を移行する。
(Step S115-7-5)
In step S115-7-5, the main CPU 301 performs processing to determine whether the driving time of the hopper motor 91 is 6000 ms or more. Specifically, the main CPU 301 determines whether or not the value of the hopper motor driving time in the first work area 2160 of the first storage area 2100 updated by the interrupt processing is 6000 ms or more. When it is determined that the hopper motor driving time is equal to or longer than 6000 ms (step S115-7-5 = Yes), the process proceeds to step S115-7-6, and the hopper motor driving time is not equal to or longer than 6000 ms. If it is determined that (step S115-7-5 = No), the process proceeds to step S115-7-7.

(ステップS115−7−6)
ステップS115−7−6において、メインCPU301は、払出エラー処理を行う。具体的には、メインCPU301は、ホッパー202内のメダルが空である場合の払出エラー処理を行う。また、メインCPU301は、ホッパーモータ91の駆動も停止する。これに伴い、メインCPU301は、ホッパーモータ駆動時間の計時も停止し、ホッパーモータ駆動時間の値もクリアする。そして、ステップS115−7−6の処理が終了すると、メダル一枚払出処理のサブルーチンを終了し、第1メダル払出処理のステップS115−8に処理を移行する。
(Step S115-7-6)
In step S115-7-6, the main CPU 301 performs payout error processing. Specifically, the main CPU 301 performs a payout error process when the medal in the hopper 202 is empty. Further, the main CPU 301 also stops the driving of the hopper motor 91. Along with this, the main CPU 301 stops counting the hopper motor drive time and clears the hopper motor drive time. Then, when the process of step S115-7-6 is completed, the subroutine of the medal one payout process is ended, and the process is transferred to step S115-8 of the first medal payout process.

(ステップS115−7−7)
ステップS115−7−7において、メインCPU301は、後で図20を用いて詳述する第2メダル払出処理を行う。なお、第2メダル払出処理は、第2記憶領域2200の第2制御領域2210に記憶された第2メダル払出処理を行うプログラムを呼び出すことにより実行される。また、第1記憶領域2100の第1制御領域2110に記憶されたメダル一枚払出処理を行うプログラムのステップS115−7−7に対応する箇所には、第2記憶領域2200の第2制御領域2210に記憶された第2メダル払出処理を行うプログラムを呼び出すためのアドレスが予め規定されている。当該処理において、メインCPU301は、メダル詰まりの判定処理等を行う。そして、ステップS115−7−7の処理が終了すると、ステップS115−7−8に処理を移行する。
(Step S115-7-7)
In step S115-7-7, the main CPU 301 performs second medal payout processing which will be described later in detail with reference to FIG. The second medal payout process is executed by calling a program for performing the second medal payout process stored in the second control area 2210 of the second storage area 2200. In addition, the second control area 2210 of the second storage area 2200 is located in a portion corresponding to step S 115-7-7 of the program for performing the one medal payout processing stored in the first control area 2110 of the first storage area 2100. An address for calling a program for performing the second medal payout processing stored in the above is defined in advance. In the processing, the main CPU 301 performs, for example, determination processing of a medal jam. Then, when the process of step S115-7-7 ends, the process proceeds to step S115-7-8.

(ステップS115−7−8)
ステップS115−7−8において、メインCPU301は、第1記憶領域復帰時エラーチェック処理を行う。具体的には、メインCPU301は、上記第2記憶領域2200に記憶されたプログラムによる第2メダル払出処理において、エラーが検出されたか否かをチェックする処理を行う。ここでは、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによるメダル一枚払出処理において、第2記憶領域2200の第2ワーク領域2260に記憶されたエラーフラグを参照することにより、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによる第2メダル払出処理において、エラーが検出されたか否かをチェックする。そして、ステップS115−7−8の処理が終了すると、ステップS115−7−9に処理を移行する。
(Step S115-7-8)
In step S115-7-8, the main CPU 301 performs an error check process at the time of restoration of the first storage area. Specifically, the main CPU 301 performs processing to check whether an error is detected or not in the second medal payout processing by the program stored in the second storage area 2200. Here, by referring to the error flag stored in the second work area 2260 of the second storage area 2200 in the medal one-sheet payout processing by the program stored in the first control area 2110 of the first storage area 2100, In the second medal payout processing by the program stored in the second control area 2210 of the second storage area 2200, it is checked whether an error is detected. Then, when the process of step S115-7-8 ends, the process proceeds to step S115-7-9.

(ステップS115−7−9)
ステップS115−7−9において、メインCPU301は、エラーを検出したか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS115−7−8の第1記憶領域復帰時エラーチェック処理において、エラーを検出したか否かを判定する処理を行う。そして、メインCPU301は、エラーを検出したと判定された場合には(ステップS115−7−9=Yes)、ステップS115−7−10に処理を移行し、エラーを検出していないと判定された場合には(ステップS115−7−9=No)、ステップS115−7−11に処理を移行する。
(Step S115-7-9)
In step S115-7-9, the main CPU 301 performs processing to determine whether an error has been detected. Specifically, the main CPU 301 performs processing of determining whether or not an error is detected in the error check processing at the time of first storage area return in step S115-7-8. Then, when it is determined that the error is detected (step S115-7-9 = Yes), the main CPU 301 shifts the process to step S115-7-10, and determines that the error is not detected. In the case (step S115-7-9 = No), the process proceeds to step S115-7-11.

(ステップS115−7−10)
ステップS115−7−10において、メインCPU301は、払出エラー処理を行う。具体的には、メインCPU301は、ホッパー202内でメダルが詰まった場合の払出エラー処理を行う。また、払出エラーが検出された旨の情報を有する払出エラーコマンドをメインRAM303に設けられている演出用伝送データ格納領域にセットする処理を行う。また、メインCPU301は、ホッパーモータ91の駆動も停止する。これに伴い、メインCPU301は、ホッパーモータ駆動時間の計時も停止し、ホッパーモータ駆動時間の値もクリアする。そして、ステップS115−7−10の処理が終了すると、メダル一枚払出処理のサブルーチンを終了し、第1メダル払出処理のステップS115−8に処理を移行する。なお、必要があればエラー表示後に遊技の停止処理を行う。
(Step S115-7-10)
In step S115-7-10, the main CPU 301 performs payout error processing. Specifically, the main CPU 301 performs a payout error process when the medals are clogged in the hopper 202. In addition, a payout error command having information indicating that a payout error has been detected is set in the effect transmission data storage area provided in the main RAM 303. Further, the main CPU 301 also stops the driving of the hopper motor 91. Along with this, the main CPU 301 stops counting the hopper motor drive time and clears the hopper motor drive time. Then, when the process of step S115-7-10 is completed, the subroutine of the one medal payout process is ended, and the process proceeds to step S115-8 of the first medal payout process. If necessary, the game is stopped after an error is displayed.

(ステップS115−7−11)
ステップS115−7−11において、メインCPU301は、払出センサ信号がONであるか否かを判定する処理を行う。具体的には、メインCPU301は、払出センサ92の信号値に対応する入力ポートの値を参照し、払出センサ信号がONであるか否かを判定する処理を行う。そして、メインCPU301は、払出センサ信号がONであると判定された場合には(ステップS115−7−11=Yes)、ステップS115−7−12に処理を移行し、エラーを検出していないと判定された場合には(ステップS115−7−11=No)、ステップS115−7−17に処理を移行する。
(Step S115-7-11)
In step S115-7-11, the main CPU 301 performs processing to determine whether or not the payout sensor signal is ON. Specifically, the main CPU 301 refers to the value of the input port corresponding to the signal value of the payout sensor 92, and determines whether the payout sensor signal is ON or not. Then, when it is determined that the payout sensor signal is ON (step S115-7-11 = Yes), the main CPU 301 shifts the processing to step S115-7-12 and does not detect an error. If it is determined (step S115-7-11 = No), the process proceeds to step S115-7-17.

(ステップS115−7−12)
ステップS115−7−12において、メインCPU301は、払出センサフラグがOFFであるか否かを判定する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160に記憶された払出センサフラグがOFFであるか否かを判定する処理を行う。そして、メインCPU301は、払出センサフラグがOFFであると判定された場合には(ステップS115−7−12=Yes)、ステップS115−7−13に処理を移行し、払出センサフラグがOFFでないと判定された場合には(ステップS115−7−12=No)、ステップS115−7−15に処理を移行する。
(Step S115-7-12)
In step S115-7-12, the main CPU 301 performs processing to determine whether or not the payout sensor flag is OFF. Specifically, the main CPU 301 performs processing to determine whether or not the payout sensor flag stored in the first work area 2160 of the first storage area 2100 is OFF. Then, when it is determined that the payout sensor flag is OFF (step S115-7-12 = Yes), the main CPU 301 shifts the processing to step S115-7-13, and it is determined that the payout sensor flag is not OFF. If it is determined (step S115-7-12 = No), the process proceeds to step S115-7-15.

(ステップS115−7−13)
ステップS115−7−13において、メインCPU301は、払出センサフラグをONとする処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160における払出センサフラグにONをセットする処理を行う。そして、ステップS115−7−13の処理が終了すると、ステップS115−7−14に処理を移行する。
(Step S115-7-13)
In step S115-7-13, the main CPU 301 performs a process of turning on the payout sensor flag. Specifically, the main CPU 301 performs processing for setting ON to the payout sensor flag in the first work area 2160 of the first storage area 2100. And if the process of step S115-7-13 is complete | finished, a process will be transfered to step S115-7-14.

(ステップS115−7−14)
ステップS115−7−14において、メインCPU301は、払出センサ継続時間の計時を開始する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160における払出センサ継続時間の値をクリアし、割込処理による払出センサ継続時間の更新を開始させる処理を行う。そして、ステップS115−7−14の処理が終了すると、ステップS115−7−15に処理を移行する。
(Step S115-7-14)
In step S115-7-14, the main CPU 301 performs processing to start counting of the dispensing sensor continuation time. Specifically, the main CPU 301 clears the value of the dispensing sensor continuation time in the first work area 2160 of the first storage area 2100, and performs processing for starting updating of the dispensing sensor continuation time by the interrupt processing. Then, when the process of step S115-7-14 ends, the process proceeds to step S115-7-15.

(ステップS115−7−15)
ステップS115−7−15において、メインCPU301は、払出センサ継続時間が6ms以上となったか否かを判定する処理を行う。そして、メインCPU301は、払出センサ継続時間が6ms以上であると判定された場合には(ステップS115−7−15=Yes)、ステップS115−7−16に処理を移行し、払出センサ継続時間が6ms以上でないと判定された場合には(ステップS115−7−15=No)、ステップS115−7−5に処理を移行する。
(Step S115-7-15)
In step S115-7-15, the main CPU 301 performs processing to determine whether or not the payout sensor continuation time has become 6 ms or more. Then, when the main CPU 301 determines that the dispensing sensor continuation time is 6 ms or more (step S115-7-15 = Yes), the main CPU 301 shifts the processing to step S115-7-16, and the dispensing sensor continuation time is If it is determined that the time is not 6 ms or more (step S115-7-15 = No), the process proceeds to step S115-7-5.

(ステップS115−7−16)
ステップS115−7−16において、メインCPU301は、ホッパーモータ91の駆動時間の計時を終了する処理を行う。具体的には、メインCPU301は、割込処理によるホッパーモータ駆動時間の更新を停止させ、ホッパーモータ駆動時間の値をクリアする処理を行う。そして、ステップS115−7−16の処理が終了すると、ステップS115−7−5に処理を移行する。
(Step S115-7-16)
In step S115-7-16, the main CPU 301 performs processing to end the measurement of the driving time of the hopper motor 91. Specifically, the main CPU 301 stops the updating of the hopper motor driving time by the interrupt processing, and performs processing to clear the hopper motor driving time. And if the process of step S115-7-16 is complete | finished, a process will be transfered to step S115-7-5.

(ステップS115−7−17)
ステップS115−7−17において、メインCPU301は、払出センサフラグがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160に記憶された払出センサフラグがONであるか否かを判定する処理を行う。そして、メインCPU301は、払出センサフラグがONであると判定された場合には(ステップS115−7−17=Yes)、ステップS115−7−18に処理を移行し、払出センサフラグがONでないと判定された場合には(ステップS115−7−17=No)、ステップS115−7−5に処理を移行する。
(Step S115-7-17)
In step S115-7-17, the main CPU 301 performs processing to determine whether or not the payout sensor flag is ON. Specifically, the main CPU 301 executes processing to determine whether or not the payout sensor flag stored in the first work area 2160 of the first storage area 2100 is ON. Then, when it is determined that the payout sensor flag is ON (step S115-7-17 = Yes), the main CPU 301 shifts the processing to step S115-7-18, and the payout sensor flag is not ON. If it is determined (step S115-7-17 = No), the process proceeds to step S115-7-5.

(ステップS115−7−18)
ステップS115−7−18において、メインCPU301は、払出センサフラグをOFFとする処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160における払出センサフラグにOFFをセットする処理を行う。そして、ステップS115−7−18の処理が終了すると、ステップS115−7−19に処理を移行する。
(Step S115-7-18)
In step S115-7-18, the main CPU 301 performs processing to set the payout sensor flag OFF. Specifically, the main CPU 301 performs processing for setting OFF to the payout sensor flag in the first work area 2160 of the first storage area 2100. Then, when the process of step S115-7-18 ends, the process proceeds to step S115-7-19.

(ステップS115−7−19)
ステップS115−7−19において、メインCPU301は、払出センサ継続時間が6ms以上となったか否かを判定する処理を行う。そして、メインCPU301は、払出センサ継続時間が6ms以上であると判定された場合には(ステップS115−7−19=Yes)、ステップS115−7−20に処理を移行し、払出センサ継続時間が6ms以上でないと判定された場合には(ステップS115−7−19=No)、ステップS115−7−5に処理を移行する。
(Step S115-7-19)
In step S115-7-19, the main CPU 301 performs processing to determine whether or not the payout sensor continuation time has become 6 ms or more. Then, when it is determined that the dispensing sensor continuation time is 6 ms or more (step S115-7-19 = Yes), the main CPU 301 shifts the processing to step S115-7-20, and the dispensing sensor continuation time is If it is determined that the time is not 6 ms or more (step S115-7-19 = No), the process proceeds to step S115-7-5.

(ステップS115−7−20)
ステップS115−7−20において、メインCPU301は、ホッパーモータ91の駆動時間の計時を開始する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160におけるホッパーモータ駆動時間の値をクリアし、割込処理によるホッパーモータ駆動時間の更新を開始させる処理を行う。そして、ステップS115−7−20の処理が終了すると、ステップS115−7−21に処理を移行する。
(Step S115-7-20)
In step S115-7-20, the main CPU 301 performs processing of starting measurement of the driving time of the hopper motor 91. Specifically, the main CPU 301 clears the value of the hopper motor driving time in the first work area 2160 of the first storage area 2100, and performs processing for starting updating of the hopper motor driving time by the interrupt processing. Then, when the process of step S115-7-20 ends, the process proceeds to step S115-7-21.

(ステップS115−7−21)
ステップS115−7−21において、メインCPU301は、残り払出枚数を復帰させる処理を行う。具体的には、メインCPU301は、ステップS115−7−1において、退避させた残り払出枚数を復帰させる処理を行う。そして、ステップS115−7−21の処理が終了すると、ステップS115−7−22に処理を移行する。
(Step S115-7-21)
In step S115-7-21, the main CPU 301 performs processing to restore the remaining payout number. Specifically, the main CPU 301 executes processing for restoring the number of remaining payouts saved in step S115-7-1. Then, when the process of step S115-7-21 ends, the process proceeds to step S115-7-22.

(ステップS115−7−22)
ステップS115−7−22において、メインCPU301は、残り払出枚数の値から「1」減算する処理を行う。具体的には、メインCPU301は、レジスタにセットされている残り払出枚数の値から「1」減算する処理を行う。そして、ステップS115−7−22の処理が終了すると、ステップS115−7−23に処理を移行する。
(Step S115-7-22)
In step S115-7-22, the main CPU 301 executes a process of subtracting “1” from the value of the remaining payout number. Specifically, the main CPU 301 executes a process of subtracting “1” from the value of the remaining payout number set in the register. And if the process of step S115-7-22 is complete | finished, a process will be transfered to step S115-7-23.

(ステップS115−7−23)
ステップS115−7−23において、メインCPU301は、残り払出枚数の値が「0」であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS115−7−23の処理により残り払出枚数の値から「1」減算した結果、残り払出枚数の値が「0」であるか否かを判定する処理を行う。そして、残り払出枚数の値が「0」であると判定された場合には(ステップS115−7−23=Yes)、ステップS115−7−24に処理を移行し、残り払出枚数の値が「0」ではないと判定された場合には(ステップS115−7−23=No)、メダル一枚払出処理のサブルーチンを終了し、第1メダル払出処理のステップS115−8に処理を移行する。
(Step S115-7-23)
In step S115-7-23, the main CPU 301 executes processing to determine whether the value of the remaining payout number is “0”. Specifically, the main CPU 301 determines whether the value of the remaining payout number is “0” as a result of subtracting “1” from the value of the remaining payout number in the process of step S115-7-23. Do. When it is determined that the value of the remaining payout number is “0” (step S115-7-23 = Yes), the process proceeds to step S115-7-24, and the value of the remaining payout number is “0”. If it is determined that it is not "0" (step S115-7-23 = No), the subroutine of the medal single-out process is ended, and the process proceeds to step S115-8 of the first medal payout process.

(ステップS115−7−24)
ステップS115−7−24において、メインCPU301は、ホッパーモータ91の駆動を停止する処理を行う。これに伴い、メインCPU301は、ホッパーモータ駆動時間の計時も停止し、ホッパーモータ駆動時間の値もクリアする。そして、ステップS115−7−24の処理が終了すると、メダル一枚払出処理のサブルーチンを終了し、第1メダル払出処理のステップS115−8に処理を移行する。
(Step S115-7-24)
In step S115-7-24, the main CPU 301 performs processing for stopping the driving of the hopper motor 91. Along with this, the main CPU 301 stops counting the hopper motor drive time and clears the hopper motor drive time. Then, when the process of step S115-7-24 is completed, the subroutine of the medal single-payout process is ended, and the process proceeds to step S115-8 of the first medal payout process.

(第2メダル払出処理)
次に、図20に基づいて、図19のステップS115−7−7の処理により行われる第2メダル払出処理についての説明を行う。なお、図20は第2メダル払出処理のサブルーチンを示す図である。また、第2メダル払出処理は、第2記憶領域2200の第2制御領域2210に記憶されたプログラムに基づいて、実行される。
(Second medal payout process)
Next, based on FIG. 20, the second medal payout process performed by the process of step S115-7-7 of FIG. 19 will be described. FIG. 20 is a diagram showing a subroutine of second medal payout processing. Also, the second medal payout processing is executed based on the program stored in the second control area 2210 of the second storage area 2200.

(ステップS115−7−7−1)
ステップS115−7−7−1において、メインCPU301は、レジスタ退避処理を行う。具体的には、メインCPU301は、ステップS115−7−7−1の時点で使用しているレジスタの値を退避する処理を行う。ここでは、第2メダル投入チェック処理におけるステップS103−3−3−1と同様の処理を行う。そして、ステップS115−7−7−1の処理が終了すると、ステップS115−7−7−2に処理を移行する。
(Step S115-7-7-1)
In step S115-7-7-1, the main CPU 301 performs register save processing. Specifically, the main CPU 301 executes processing for saving the value of the register used at the time of step S115-7-7-1. Here, the same process as step S103-3-3-1 in the second medal insertion check process is performed. Then, when the process of step S115-7-7-1 ends, the process proceeds to step S115-7-7-2.

(ステップS115−7−7−2)
ステップS115−7−7−2において、メインCPU301は、ホッパーモータ91が駆動中であるか否かを判定する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160におけるホッパーモータ駆動中フラグを参照し、ホッパーモータ駆動中フラグがONであれば、ホッパーモータ91が駆動中であると判定し、ホッパーモータ駆動中フラグがONでなければ(OFFであれば)、ホッパーモータ91が駆動中でない(停止中である)と判定する。そして、メインCPU301は、ホッパーモータ91が駆動中であると判定した場合には、ステップS115−7−7−3に処理を移行し、ホッパーモータ91が駆動中でないと判定した場合には、ステップS115−7−7−12に処理を移行する。
(Step S115-7-7-2)
In step S115-7-7-2, the main CPU 301 performs processing to determine whether the hopper motor 91 is in operation. Specifically, the main CPU 301 refers to the hopper motor driving flag in the first work area 2160 of the first storage area 2100, and if the hopper motor driving flag is ON, the hopper motor 91 is in operation. If the hopper motor driving flag is not ON (if OFF), it is determined that the hopper motor 91 is not driving (stopped). When the main CPU 301 determines that the hopper motor 91 is in operation, the process proceeds to step S115-7-7-3. When the main CPU 301 determines that the hopper motor 91 is not in operation, the step is performed. The process proceeds to step S115-7-7-12.

(ステップS115−7−7−3)
ステップS115−7−7−3において、メインCPU301は、払出センサ信号がONであるか否かを判定する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160における払出センサ状態値を参照し、払出センサ状態値がONであれば、払出センサ信号がONであると判定し、払出センサ状態値がONでなければ(OFFであれば)、払出センサ信号がONでない(OFFである)と判定する。そして、メインCPU301は、払出センサ信号がONであると判定した場合には、ステップS115−7−7−7に処理を移行し、払出センサ信号がONでないと判定した場合には、ステップS115−7−7−4に処理を移行する。
(Step S115-7-7-3)
In step S115-7-7-3, the main CPU 301 performs processing to determine whether or not the payout sensor signal is ON. Specifically, the main CPU 301 refers to the payout sensor state value in the first work area 2160 of the first storage area 2100, and determines that the payout sensor signal is ON if the payout sensor state value is ON, If the payout sensor state value is not ON (if OFF), it is determined that the payout sensor signal is not ON (is OFF). When the main CPU 301 determines that the payout sensor signal is ON, the process proceeds to step S115-7-7-7, and when the main CPU 301 determines that the payout sensor signal is not ON, step S115-. Transfer the process to 7-7-4.

(ステップS115−7−7−4)
ステップS115−7−7−4において、メインCPU301は、第2領域用払出センサフラグがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260に記憶された第2領域用払出センサフラグがONであるか否かを判定する処理を行う。そして、メインCPU301は、第2領域用払出センサフラグがONであると判定された場合には(ステップS115−7−7−4=Yes)、ステップS115−7−7−5に処理を移行し、第2領域用払出センサフラグがONでないと判定された場合には(ステップS115−7−7−4=No)、ステップS115−7−7−12に処理を移行する。
(Step S115-7-7-4)
In step S115-7-7-4, the main CPU 301 performs processing to determine whether or not the second region payout sensor flag is ON. Specifically, the main CPU 301 performs processing to determine whether or not the second area payout sensor flag stored in the second work area 2260 of the second storage area 2200 is ON. Then, when it is determined that the second region payout sensor flag is ON (step S115-7-7-4 = Yes), the main CPU 301 shifts the processing to step S115-7-7-5. If it is determined that the second area payout sensor flag is not ON (step S115-7-7-4 = No), the process proceeds to step S115-7-7-12.

(ステップS115−7−7−5)
ステップS115−7−7−5において、メインCPU301は、第2領域用のホッパーモータ91の駆動時間の計時を終了する処理を行う。具体的には、メインCPU301は、割込処理による第2領域用ホッパーモータ駆動時間の更新を停止させ、第2領域用ホッパーモータ駆動時間の値をクリアする処理を行う。そして、ステップS115−7−7−5の処理が終了すると、ステップS115−7−7−6に処理を移行する。
(Step S115-7-7-5)
In step S115-7-7-5, the main CPU 301 performs processing to end the measurement of the driving time of the hopper motor 91 for the second area. Specifically, the main CPU 301 stops the update of the second region hopper motor drive time by the interrupt processing, and clears the value of the second region hopper motor drive time. Then, when the process of step S115-7-7-5 ends, the process proceeds to step S115-7-7-6.

(ステップS115−7−7−6)
ステップS115−7−7−6において、メインCPU301は、第2領域用払出センサフラグをOFFとする処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における第2領域用払出センサフラグにOFFをセットする処理を行う。そして、ステップS115−7−7−6の処理が終了すると、ステップS115−7−7−12に処理を移行する。
(Step S115-7-7-6)
In step S115-7-7-6, the main CPU 301 performs processing for turning off the second area payout sensor flag. Specifically, the main CPU 301 performs processing for setting OFF for the second area payout sensor flag in the second work area 2260 of the second storage area 2200. Then, when the process of step S115-7-7-6 ends, the process proceeds to step S115-7-7-12.

(ステップS115−7−7−7)
ステップS115−7−7−7において、メインCPU301は、第2領域用払出センサフラグがOFFであるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260に記憶された第2領域用払出センサフラグがOFFであるか否かを判定する処理を行う。そして、メインCPU301は、第2領域用払出センサフラグがOFFであると判定された場合には(ステップS115−7−7−7=Yes)、ステップS115−7−7−8に処理を移行し、第2領域用払出センサフラグがOFFでないと判定された場合には(ステップS115−7−7−7=No)、ステップS115−7−7−10に処理を移行する。
(Step S115-7-7-7)
In step S115-7-7-7, the main CPU 301 performs processing to determine whether or not the second region payout sensor flag is OFF. Specifically, the main CPU 301 performs processing to determine whether or not the second area payout sensor flag stored in the second work area 2260 of the second storage area 2200 is OFF. Then, when it is determined that the second region payout sensor flag is OFF (step S115-7-7-7 = Yes), the main CPU 301 shifts the processing to step S115-7-7-8. If it is determined that the second region payout sensor flag is not OFF (step S115-7-7-7 = No), the process proceeds to step S115-7-7-10.

(ステップS115−7−7−8)
ステップS115−7−7−8において、メインCPU301は、第2領域用のホッパーモータ91の駆動時間の計時を開始する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における第2領域用ホッパーモータ駆動時間の値をクリアし、割込処理による第2領域用ホッパーモータ駆動時間の更新を開始させる処理を行う。そして、ステップS115−7−7−8の処理が終了すると、ステップS115−7−7−9に処理を移行する。
(Step S115-7-7-8)
In step S115-7-7-8, the main CPU 301 performs processing of starting measurement of the driving time of the hopper motor 91 for the second area. Specifically, the main CPU 301 clears the value of the second area hopper motor driving time in the second work area 2260 of the second storage area 2200, and updates the second area hopper motor driving time by the interruption process. Perform processing to start. Then, when the process of step S115-7-7-8 ends, the process proceeds to step S115-7-7-9.

(ステップS115−7−7−9)
ステップS115−7−7−9において、メインCPU301は、第2領域用払出センサフラグをONとする処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における第2領域用払出センサフラグにONをセットする処理を行う。そして、ステップS115−7−7−9の処理が終了すると、ステップS115−7−7−10に処理を移行する。
(Step S115-7-7-9)
In step S115-7-7-9, the main CPU 301 performs processing for turning on the second area payout sensor flag. Specifically, the main CPU 301 executes a process of setting ON to the second area area payout sensor flag in the second work area 2260 of the second storage area 2200. Then, when the process of step S115-7-7-9 ends, the process proceeds to step S115-7-7-10.

(ステップS115−7−7−10)
ステップS115−7−7−10において、メインCPU301は、第2領域用ホッパーモータ駆動時間が60ms以上であるか否かを判定する処理を行う。そして、メインCPU301は、第2領域用ホッパーモータ駆動時間が60ms以上であると判定された場合には(ステップS115−7−7−10=Yes)、ステップS115−7−7−11に処理を移行し、第2領域用ホッパーモータ駆動時間が60ms以上でないと判定された場合には(ステップS115−7−7−10=No)、ステップS115−7−7−12に処理を移行する。
(Step S115-7-7-10)
In step S115-7-7-10, the main CPU 301 performs processing to determine whether the second region hopper motor driving time is 60 ms or more. When the main CPU 301 determines that the second region hopper motor driving time is 60 ms or more (step S115-7-7-10 = Yes), the process proceeds to step S115-7-7-11. If it is determined that the second region hopper motor driving time is not 60 ms or more (step S115-7-7-10 = No), the process proceeds to step S115-7-7-12.

(ステップS115−7−7−11)
ステップS115−7−7−11において、メインCPU301は、エラーフラグ設定処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260におけるメダル詰まりフラグにONをセットする処理を行う。そして、ステップS115−7−7−11の処理が終了すると、ステップS115−7−7−12に処理を移行する。
(Step S115-7-7-11)
In step S115-7-7-11, the main CPU 301 performs an error flag setting process. Specifically, the main CPU 301 performs processing for setting ON the medal clogging flag in the second work area 2260 of the second storage area 2200. Then, when the process of step S115-7-7-11 ends, the process proceeds to step S115-7-7-12.

(ステップS115−7−7−12)
ステップS115−7−7−12において、メインCPU301は、レジスタ復帰処理を行う。具体的には、メインCPU301は、ステップS115−7−7−1の処理において、退避したレジスタの値を復帰させる処理を行う。ここでは、第2メダル投入チェック処理におけるステップS103−3−3−10の処理と同様の処理を行う。そして、ステップS115−7−7−12の処理が終了すると、第2メダル払出処理を終了し、メダル一枚払出処理に復帰し、ステップS115−7−8に処理を移行する。
(Step S115-7-7-12)
In step S115-7-7-12, the main CPU 301 performs register recovery processing. Specifically, the main CPU 301 performs a process of restoring the value of the saved register in the process of step S115-7-7-1. Here, the same process as the process of step S103-3-3-10 in the second medal insertion check process is performed. Then, when the process of step S115-7-7-12 ends, the second medal payout process ends, the single medal medal payout process returns, and the process proceeds to step S115-7-8.

(遊技状態移行処理)
次に、図21に基づいて、図12のステップS116の処理により行われる遊技状態移行処理についての説明を行う。なお、図21は遊技状態移行処理のサブルーチンを示す図である。
(Playing state transition process)
Next, based on FIG. 21, the game state transition process performed by the process of step S116 of FIG. 12 will be described. FIG. 21 is a diagram showing a subroutine of the game state transition process.

(ステップS116−1)
ステップS116−1において、メインCPU301は、ボーナス作動中フラグがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられているボーナス作動中フラグ格納領域のBB作動中フラグ、RB作動中フラグのうち、少なくとも何れか一方がONであるか否かを判定する。ここで、本実施形態において、メインCPU301は、メインRAM303に設けられているボーナス作動中フラグ格納領域のBB作動中フラグ、RB作動中フラグのうち、少なくとも何れか一方がONである場合に、ボーナス作動中フラグがONであると判定する処理を行い、メインRAM303に設けられているボーナス作動中フラグ格納領域のBB作動中フラグ、及びRB作動中フラグがOFFである場合に、ボーナス作動中フラグがONではないと判定する処理を行う。そして、ボーナス作動中フラグがONであると判定された場合には(ステップS116−1=Yes)、ステップS116−2に処理を移行し、ボーナス作動中フラグがONではないと判定された場合には(ステップS116−1=No)、ステップS116−3に処理を移行する。
(Step S116-1)
In step S116-1, the main CPU 301 performs processing to determine whether the flag under bonus operation is ON. Specifically, the main CPU 301 determines whether at least one of the flag under BB operation flag and the flag under RB operation of the bonus operation flag storage area provided in the main RAM 303 is ON. Here, in the present embodiment, when at least one of the flag under BB operation flag and the flag under RB operation of the bonus operation flag storage area provided in the main RAM 303 is on, the main CPU 301 is a bonus. A process of determining that the in-operation flag is ON is performed, and the in-BB flag in the bonus operation flag storage area provided in the main RAM 303, and the in-RB operation flag is OFF when the in-RB operation flag is OFF. Perform processing to determine that it is not ON. Then, if it is determined that the bonus operating flag is ON (step S116-1 = Yes), the process proceeds to step S116-2 and it is determined that the bonus operating flag is not ON. (Step S116-1 = No), the process proceeds to step S116-3.

(ステップS116−2)
ステップS116−2において、メインCPU301は、後で図22を用いて詳述するボーナス作動中処理を行う。当該処理において、メインCPU301は、メインRAM303に設けられている払出枚数カウンタの値を減算する処理等を行う。そして、ステップS116−2の処理が終了すると、遊技状態移行処理のサブルーチンを終了し、メインループ処理のステップS101に処理を移行する。
(Step S116-2)
In step S116-2, the main CPU 301 executes bonus operation processing which will be described in detail later with reference to FIG. In the process, the main CPU 301 performs a process of subtracting the value of the payout number counter provided in the main RAM 303, and the like. When the process of step S116-2 ends, the subroutine of the gaming state transition process ends, and the process proceeds to step S101 of the main loop process.

(ステップS116−3)
ステップS116−3において、メインCPU301は、ボーナスに係る図柄の組み合わせが有効ライン上に表示されたか否かを判定する処理を行う。具体的には、メインCPU301は、「ボーナスに係る図柄の組み合わせ」が有効ライン上に表示されたか否かを判定する処理を行う。そして、ボーナスに係る図柄の組み合わせが有効ライン上に表示されたと判定された場合には(ステップS116−3=Yes)、ステップS116−4に処理を移行し、ボーナスに係る図柄の組み合わせが有効ライン上に表示されていないと判定された場合には(ステップS116−3=No)、遊技状態移行処理のサブルーチンを終了し、メインループ処理のステップS101に処理を移行する。
(Step S116-3)
In step S116-3, the main CPU 301 performs processing to determine whether or not a combination of symbols relating to a bonus is displayed on the activated line. Specifically, the main CPU 301 performs processing to determine whether or not “a combination of symbols relating to a bonus” is displayed on the activated line. When it is determined that the combination of symbols relating to the bonus is displayed on the activated line (step S116-3 = Yes), the process proceeds to step S116-4, and the combination of symbols relating to the bonus is the effective line If it is determined that the game is not displayed on the upper side (step S116-3 = No), the subroutine of the gaming state transition process is ended, and the process proceeds to step S101 of the main loop process.

(ステップS116−4)
ステップS116−4において、メインCPU301は、ボーナス作動中フラグ更新処理を行う。具体的には、メインCPU301は、「BBに係る図柄の組み合わせ」が有効ライン上に表示された場合には、メインRAM303に設けられているボーナス作動中フラグ格納領域のBB作動中フラグをONにする処理を行い、「RBに係る図柄の組み合わせ」が有効ライン上に表示された場合には、メインRAM303に設けられているボーナス作動中フラグ格納領域のRB作動中フラグをONにする処理を行う。そして、ステップS116−4の処理が終了すると、ステップS116−5に処理を移行する。
(Step S116-4)
In step S116-4, the main CPU 301 performs flag in-action flag update processing. Specifically, when the “combination of symbols related to BB” is displayed on the effective line, the main CPU 301 turns on the BB operating flag of the bonus operating flag storage area provided in the main RAM 303. If the "combination of symbols related to RB" is displayed on the effective line, the process of turning on the flag under RB operation of the bonus operation flag storage area provided in the main RAM 303 is performed. . Then, when the process of step S116-4 ends, the process proceeds to step S116-5.

(ステップS116−5)
ステップS116−5において、メインCPU301は、ボーナス作動時処理を行う。具体的には、メインCPU301は、「BBに係る図柄の組み合わせ」が有効ライン上に表示された場合には、メインRAM303に設けられている払出枚数カウンタの値に所定の値をセットする処理、メインRAM303に設けられているキャリーフラグ格納領域の値をクリアする処理、メインRAM303に設けられている遊技可能回数カウンタの値をセットする処理、及びメインRAM303に設けられている入賞回数カウンタの値をセットする処理を行い、「RBに係る図柄の組み合わせ」が有効ライン上に表示された場合には、メインRAM303に設けられているキャリーフラグ格納領域の値をクリアする処理、メインRAM303に設けられている遊技可能回数カウンタの値をセットする処理、メインRAM303に設けられている入賞回数カウンタの値をセットする処理を行う。そして、ステップS116−5の処理が終了すると、遊技状態移行処理のサブルーチンを終了し、メインループ処理のステップS101に処理を移行する。
(Step S116-5)
In step S116-5, the main CPU 301 performs bonus operation processing. Specifically, when the “combination of symbols related to BB” is displayed on the effective line, the main CPU 301 sets the value of the payout counter provided in the main RAM 303 to a predetermined value, The processing of clearing the value of the carry flag storage area provided in the main RAM 303, the processing of setting the value of the possible game number counter provided in the main RAM 303, and the value of the winning number counter provided in the main RAM 303 Perform processing to set, when "combination of symbols related to RB" is displayed on the effective line, processing to clear the value of the carry flag storage area provided in the main RAM 303, provided in the main RAM 303 Processing to set the value of the possible game number counter, provided in the main RAM 303 The process of setting the value of the winning number of times counter you're done. Then, when the process of step S116-5 ends, the subroutine of the gaming state transition process ends, and the process proceeds to step S101 of the main loop process.

(ボーナス作動中処理)
次に、図22に基づいて、図21のステップS116−2の処理により行われるボーナス作動中処理についての説明を行う。なお、図22はボーナス作動中処理のサブルーチンを示す図である。
(Processing during bonus operation)
Next, based on FIG. 22, a description will be given of bonus in-progress processing performed by the processing of step S116-2 of FIG. FIG. 22 is a diagram showing a subroutine of processing during bonus operation.

(ステップS116−2−1)
ステップS116−2−1において、メインCPU301は、BB作動中フラグがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられているボーナス作動中フラグ格納領域のBB作動中フラグがONであるか否かを判定する処理を行う。そして、BB作動中フラグがONであると判定された場合には(ステップS116−2−1=Yes)、ステップS116−2−2に処理を移行し、BB作動中フラグがONではないと判定された場合には(ステップS116−2−1=No)、ステップS116−2−11に処理を移行する。
(Step S116-2-1)
In step S116-2-1, the main CPU 301 performs processing to determine whether the flag under BB operation is ON. Specifically, the main CPU 301 performs processing to determine whether the flag under BB operation in the bonus operation flag storage area provided in the main RAM 303 is ON. Then, if it is determined that the BB operating flag is ON (step S116-2-1 = Yes), the process proceeds to step S116-2-2, and it is determined that the BB operating flag is not ON. If it is determined (step S116-2-1 = No), the process proceeds to step S116-2-11.

(ステップS116−2−2)
ステップS116−2−2において、メインCPU301は、払出枚数カウンタ更新処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている払出枚数カウンタの値から、ステップS114の表示判定処理により算定されたメダルの払出枚数を減算する処理を行う。そして、ステップS116−2−2の処理が終了すると、ステップS116−2−3に処理を移行する。
(Step S116-2-2)
At step S116-2-2, the main CPU 301 executes payout number counter update processing. Specifically, the main CPU 301 performs a process of subtracting the number of medals paid out calculated by the display determination process of step S114 from the value of the number-of-payouts counter provided in the main RAM 303. Then, when the process of step S116-2-2 ends, the process proceeds to step S116-2-3.

(ステップS116−2−3)
ステップS116−2−3において、メインCPU301は、払出枚数カウンタの値が「0」未満であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS116−2−2の払出枚数カウンタ更新処理により、メインRAM303に設けられている払出枚数カウンタの値から、ステップS114の表示判定処理により算定されたメダルの払出枚数を減算した結果、払出枚数カウンタの値が負の値となったか否かを判定する処理を行う。そして、払出枚数カウンタの値が「0」未満であると判定された場合には(ステップS116−2−3=Yes)、ステップS116−2−4に処理を移行し、払出枚数カウンタの値が「0」未満ではないと判定された場合には(ステップS116−2−3=No)、ステップS116−2−5に処理を移行する。
(Step S116-2-3)
In step S116-2-3, the main CPU 301 executes processing to determine whether the value of the payout number counter is less than "0". Specifically, the main CPU 301 pays out the medals calculated by the display determination processing of step S114 from the value of the payout number counter provided in the main RAM 303 by the payout number counter update processing of step S116-2-2. As a result of subtracting the number of sheets, it is determined whether or not the value of the payout number counter has become a negative value. When it is determined that the value of the payout number counter is less than “0” (step S116-2-3 = Yes), the process proceeds to step S116-2-4, and the value of the payout number counter is smaller than “0”. If it is determined that it is not less than “0” (step S116-2-3 = No), the process proceeds to step S116-2-5.

(ステップS116−2−4)
ステップS116−2−4において、メインCPU301は、BB終了時処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている払出枚数カウンタの値や、メインRAM303に設けられているボーナス作動中フラグ格納領域の値をクリアする処理を行うとともに、メインRAM303に設けられている遊技状態格納領域にRT遊技状態に係る情報をセットする処理を行う。そして、ステップS116−2−4の処理が終了すると、ボーナス作動中処理のサブルーチンを終了し、メインループ処理のステップS101に処理を移行する。
(Step S116-2-4)
In step S116-2-4, the main CPU 301 performs processing at BB termination. Specifically, the main CPU 301 performs processing for clearing the value of the payout counter provided in the main RAM 303 and the value of the bonus in-operation flag storage area provided in the main RAM 303, and is provided in the main RAM 303. A process is performed to set information related to the RT gaming state in the gaming state storage area being selected. Then, when the process of step S116-2-4 is completed, the subroutine of the process during bonus operation is completed, and the process proceeds to step S101 of the main loop process.

(ステップS116−2−5)
ステップS116−2−5において、メインCPU301は、遊技可能回数カウンタの値から「1」減算する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている遊技可能回数カウンタの値から「1」減算する処理を行う。そして、ステップS116−2−5の処理が終了すると、ステップS116−2−6に処理を移行する。
(Step S116-2-5)
In step S116-2-5, the main CPU 301 performs processing of subtracting “1” from the value of the possible game number counter. Specifically, the main CPU 301 executes a process of subtracting “1” from the value of the possible game number counter provided in the main RAM 303. Then, when the process of step S116-2-5 ends, the process proceeds to step S116-2-6.

(ステップS116−2−6)
ステップS116−2−6において、メインCPU301は、遊技可能回数カウンタの値が「0」であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS116−2−5の処理により、メインRAM303に設けられている遊技可能回数カウンタの値から「1」減算した結果、メインRAM303に設けられている遊技可能回数カウンタの値が「0」となったか否かを判定する処理を行う。そして、遊技可能回数カウンタの値が「0」であると判定された場合には(ステップS116−2−6=Yes)、ステップS116−2−10に処理を移行し、遊技可能回数カウンタの値が「0」ではないと判定された場合には(ステップS116−2−6=No)、ステップS116−2−7に処理を移行する。
(Step S116-2-6)
In step S116-2-6, the main CPU 301 performs processing to determine whether the value of the possible game number counter is “0”. Specifically, as a result of the main CPU 301 subtracting “1” from the value of the possible game number counter provided in the main RAM 303 by the process of step S116-2-5, the possible game number provided in the main RAM 303 A process is performed to determine whether the value of the counter has become "0". When it is determined that the value of the possible game number counter is "0" (step S116-2-6 = Yes), the process proceeds to step S116-2-10, and the value of the possible game number counter Is determined not to be "0" (step S116-2-6 = No), the process proceeds to step S116-2-7.

(ステップS116−2−7)
ステップS116−2−7において、メインCPU301は、入賞したか否かを判定する処理を行う。具体的には、メインCPU301は、「入賞に係る図柄の組み合わせ」が有効ライン上に表示されたか否かを判定する処理を行う。そして、入賞したと判定された場合には(ステップS116−2−7=Yes)、ステップS116−2−8に処理を移行し、入賞していないと判定された場合には(ステップS116−2−7=No)、ボーナス作動中処理のサブルーチンを終了し、メインループ処理のステップS101に処理を移行する。
(Step S116-2-7)
In step S116-2-7, the main CPU 301 performs processing to determine whether or not a prize has been won. Specifically, the main CPU 301 performs a process of determining whether or not the “combination of symbols relating to winning” is displayed on the activated line. When it is determined that the player has won (Step S116-2-7 = Yes), the process proceeds to Step S116-2-8, and when it is determined that the player does not win (Step S116-2). -7 = No), the subroutine for bonus operation processing is ended, and the processing proceeds to step S101 of the main loop processing.

(ステップS116−2−8)
ステップS116−2−8において、メインCPU301は、入賞回数カウンタの値から「1」減算する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている入賞回数カウンタの値から「1」減算する処理を行う。そして、ステップS116−2−8の処理が終了すると、ステップS116−2−9に処理を移行する。
(Step S116-2-8)
In step S116-2-8, the main CPU 301 performs processing of subtracting “1” from the value of the number-of-winnings counter. Specifically, the main CPU 301 performs a process of subtracting “1” from the value of the winning number counter provided in the main RAM 303. And if the process of step S116-2-8 is complete | finished, a process will be transfered to step S116-2-9.

(ステップS116−2−9)
ステップS116−2−9において、メインCPU301は、入賞回数カウンタの値が「0」であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS116−2−8の処理により、メインRAM303に設けられている入賞回数カウンタの値から「1」減算した結果、メインRAM303に設けられている入賞回数カウンタの値が「0」となったか否かを判定する処理を行う。そして、入賞回数カウンタの値が「0」であると判定された場合には(ステップS116−2−9=Yes)、ステップS116−2−10に処理を移行し、入賞回数カウンタの値が「0」ではないと判定された場合には(ステップS116−2−9=No)、ボーナス作動中処理のサブルーチンを終了し、メインループ処理のステップS101に処理を移行する。
(Step S116-2-9)
In step S116-2-9, the main CPU 301 performs processing to determine whether the value of the number-of-winnings counter is “0”. Specifically, as a result of the main CPU 301 subtracting “1” from the value of the number-of-winnings counter provided in the main RAM 303 by the process of step S116-2-8, the main CPU 301 A process is performed to determine whether the value has become "0". When it is determined that the value of the number-of-winnings counter is “0” (step S116-2-9 = Yes), the process proceeds to step S116-2-10, and the value of the number-of-winnings counter is “0. If it is determined that the value is not “0” (step S116-2-9 = No), the subroutine under bonus operation processing is ended, and the process proceeds to step S101 of the main loop processing.

(ステップS116−2−10)
ステップS116−2−10において、メインCPU301は、BB中RB作動時処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている入賞回数カウンタに所定の値をセットする処理を行うとともに、メインRAM303に設けられている遊技可能回数カウンタに所定の値をセットする処理を行う。そして、ステップS116−2−10の処理が終了すると、ボーナス作動中処理のサブルーチンを終了し、メインループ処理のステップS101に処理を移行する。
(Step S116-2-10)
In step S116-2-10, the main CPU 301 performs processing during RB during RB operation. Specifically, the main CPU 301 performs processing of setting a predetermined value in the number-of-winnings counter provided in the main RAM 303, and processing of setting a predetermined value in the possible number-of-games counter provided in the main RAM 303. I do. Then, when the process of step S116-2-10 is completed, the subroutine of the process during bonus operation is completed, and the process proceeds to step S101 of the main loop process.

(ステップS116−2−11)
ステップS116−2−11において、メインCPU301は、遊技可能回数カウンタの値から「1」減算する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている遊技可能回数カウンタの値から「1」減算する処理を行う。そして、ステップS116−2−11の処理が終了すると、ステップS116−2−12に処理を移行する。
(Step S116-2-11)
In step S116-2-11, the main CPU 301 executes a process of subtracting "1" from the value of the possible game number counter. Specifically, the main CPU 301 executes a process of subtracting “1” from the value of the possible game number counter provided in the main RAM 303. Then, when the process of step S116-2-11 ends, the process proceeds to step S116-2-12.

(ステップS116−2−12)
ステップS116−2−12において、メインCPU301は、遊技可能回数カウンタの値が「0」であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS116−2−11の処理により、メインRAM303に設けられている遊技可能回数カウンタの値から「1」減算した結果、メインRAM303に設けられている遊技可能回数カウンタの値が「0」となったか否かを判定する処理を行う。そして、遊技可能回数カウンタの値が「0」であると判定された場合には(ステップS116−2−12=Yes)、ステップS116−2−16に処理を移行し、遊技可能回数カウンタの値が「0」ではないと判定された場合には(ステップS116−2−12=No)、ステップS116−2−13に処理を移行する。
(Step S116-2-12)
In step S116-2-12, the main CPU 301 performs processing to determine whether the value of the possible game number counter is “0”. Specifically, as a result of the main CPU 301 subtracting “1” from the value of the possible game number counter provided in the main RAM 303 by the process of step S116-2-11, the possible game number provided in the main RAM 303 A process is performed to determine whether the value of the counter has become "0". Then, if it is determined that the value of the possible game number counter is “0” (step S116-2-12 = Yes), the process proceeds to step S116-2-16, and the value of the possible game number counter Is determined not to be "0" (step S116-2-12 = No), the process proceeds to step S116-2-13.

(ステップS116−2−13)
ステップS116−2−13において、メインCPU301は、入賞したか否かを判定する処理を行う。具体的には、メインCPU301は、「入賞に係る図柄の組み合わせ」が有効ライン上に表示されたか否かを判定する処理を行う。そして、入賞したと判定された場合には(ステップS116−2−13=Yes)、ステップS116−2−14に処理を移行し、入賞していないと判定された場合には(ステップS116−2−13=No)、ボーナス作動中処理のサブルーチンを終了し、メインループ処理のステップS101に処理を移行する。
(Step S116-2-13)
In step S116-2-13, the main CPU 301 performs processing to determine whether or not a prize has been won. Specifically, the main CPU 301 performs a process of determining whether or not the “combination of symbols relating to winning” is displayed on the activated line. When it is determined that the player has won (step S116-2-13 = Yes), the process proceeds to step S116-2-14, and when it is determined that the player does not win (step S116-2). −13 = No), the subroutine for bonus operation processing is ended, and the process proceeds to step S101 of the main loop processing.

(ステップS116−2−14)
ステップS116−2−14において、メインCPU301は、入賞回数カウンタの値から「1」減算する処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている入賞回数カウンタの値から「1」減算する処理を行う。そして、ステップS116−2−14の処理が終了すると、ステップS116−2−15に処理を移行する。
(Step S116-2-14)
In step S116-2-14, the main CPU 301 performs processing of subtracting “1” from the value of the number-of-winnings counter. Specifically, the main CPU 301 performs a process of subtracting “1” from the value of the winning number counter provided in the main RAM 303. Then, when the process of step S116-2-14 ends, the process proceeds to step S116-2-15.

(ステップS116−2−15)
ステップS116−2−15において、メインCPU301は、入賞回数カウンタの値が「0」であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS116−2−14の処理により、メインRAM303に設けられている入賞回数カウンタの値から「1」減算した結果、メインRAM303に設けられている入賞回数カウンタの値が「0」となったか否かを判定する処理を行う。そして、入賞回数カウンタの値が「0」であると判定された場合には(ステップS116−2−15=Yes)、ステップS116−2−16に処理を移行し、入賞回数カウンタの値が「0」ではないと判定された場合には(ステップS116−2−15=No)、ボーナス作動中処理のサブルーチンを終了し、メインループ処理のステップS101に処理を移行する。
(Step S116-2-15)
In step S116-2-15, the main CPU 301 performs processing to determine whether or not the value of the winning number counter is “0”. Specifically, as a result of the main CPU 301 subtracting “1” from the value of the number-of-winnings counter provided in the main RAM 303 by the process of step S116-2-14, the main CPU 301 A process is performed to determine whether the value has become "0". When it is determined that the value of the number-of-winnings counter is “0” (step S116-2-15 = Yes), the process proceeds to step S116-2-16, and the value of the number-of-winnings counter is “0. If it is determined that the value is not “0” (step S116-2-15 = No), the subroutine under bonus operation processing is ended, and the process proceeds to step S101 of the main loop processing.

(ステップS116−2−16)
ステップS116−2−16において、メインCPU301は、RB終了時処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている遊技状態格納領域にRT遊技状態に係る情報をセットする処理等を行う。そして、ステップS116−2−16の処理が終了すると、ボーナス作動中処理のサブルーチンを終了し、メインループ処理のステップS101に処理を移行する。
(Step S116-2-16)
In step S116-2-16, the main CPU 301 performs an RB end process. Specifically, the main CPU 301 performs a process of setting information related to the RT gaming state in the gaming state storage area provided in the main RAM 303. Then, when the process of step S116-2-16 is completed, the subroutine of the process during bonus operation is completed, and the process proceeds to step S101 of the main loop process.

(割込処理)
次に、図23、図24に基づいて、割込処理についての説明を行う。ここで、割込処理は、メインループ処理に対して、「1.49ms」毎に割り込んで行われる処理である。
(Interrupt process)
Next, interrupt processing will be described based on FIGS. 23 and 24. FIG. Here, the interrupt process is a process performed by interrupting the main loop process every “1.49 ms”.

(ステップS201)
ステップS201において、メインCPU301は、レジスタを退避する処理を行う。具体的には、メインCPU301は、ステップS201の時点で使用しているレジスタの値を退避する処理を行う。そして、ステップS201の処理が終了すると、ステップS202に処理を移行する。
(Step S201)
In step S201, the main CPU 301 performs a process of saving a register. Specifically, the main CPU 301 performs processing of saving the value of the register used at the time of step S201. And if the process of step S201 is complete | finished, a process will be transfered to step S202.

(ステップS202)
ステップS202において、メインCPU301は、入力ポート読込処理を行う。具体的には、メインCPU301は、ステータス基板100、リール制御基板150、電源基板200から各種信号を受信する処理を行う。なお、メインCPU301は、入力ポート読込処理において、第2制御領域2210に記憶されたプログラムで参照される入力ポートの情報については、入力ポートから読み出して第1記憶領域2100の第1ワーク領域2160に記憶させておく。例えば、メインCPU301は、第1メダル通過センサ62および第2メダル通過センサ63の信号値に対応する入力ポートの値を、第1記憶領域2100の第1ワーク領域2160において、第1メダル通過センサ状態値および第2メダル通過センサ状態値として記憶させる。また、メインCPU301は、メダル投入検知センサ61の信号値に対応する入力ポートの値を、第1記憶領域2100の第1ワーク領域2160において、メダル投入検知センサ状態値として記憶させる。また、メインCPU301は、払出センサ92の信号値に対応する入力ポートの値を、第1記憶領域2100の第1ワーク領域2160において、払出センサ状態値として記憶させる。そして、ステップS202の処理が終了すると、ステップS203に処理を移行する。
(Step S202)
In step S202, the main CPU 301 performs input port read processing. Specifically, the main CPU 301 performs processing of receiving various signals from the status board 100, the reel control board 150, and the power supply board 200. The main CPU 301 reads out information on the input port referred to by the program stored in the second control area 2210 in the input port reading process from the input port and stores the information in the first work area 2160 of the first storage area 2100. I will remember. For example, the main CPU 301 causes the value of the input port corresponding to the signal value of the first medal passage sensor 62 and the second medal passage sensor 63 to be the first medal passage sensor state in the first work area 2160 of the first storage area 2100. The value is stored as the second medal passing sensor state value. Further, the main CPU 301 stores the value of the input port corresponding to the signal value of the medal insertion detection sensor 61 in the first work area 2160 of the first storage area 2100 as a medal insertion detection sensor state value. Further, the main CPU 301 stores the value of the input port corresponding to the signal value of the payout sensor 92 as a payout sensor state value in the first work area 2160 of the first storage area 2100. And if the process of step S202 is complete | finished, a process will be transfered to step S203.

(ステップS203)
ステップS203において、メインCPU301は、タイマ計測処理を行う。具体的には、メインCPU301は、最小遊技時間等を計測するためのタイマカウンタの値から「1」減算する処理を行う。また、メインCPU301は、計時中のタイマ等についても計数処理を行う。例えば、メインCPU301は、ホッパーモータ91の駆動時間が計時中であれば、この駆動時間の計数処理を行う。そして、ステップS203の処理が終了すると、ステップS204に処理を移行する。
(Step S203)
In step S203, the main CPU 301 performs timer measurement processing. Specifically, the main CPU 301 performs a process of subtracting “1” from the value of the timer counter for measuring the minimum game time and the like. The main CPU 301 also performs counting processing on a timer or the like during clocking. For example, when the driving time of the hopper motor 91 is being measured, the main CPU 301 performs counting processing of the driving time. Then, when the process of step S203 ends, the process proceeds to step S204.

(ステップS204)
ステップS204において、メインCPU301は、リール駆動制御処理を行う。具体的には、メインCPU301は、リール番号の初期値として右リール20に対応する「3」をセットし、リール番号「3」に対応する右ステッピングモータ153を駆動することにより、右リール20の回転の加速、定速、減速制御等を行う。次に、メインCPU301は、リール番号から「1」減算する処理を行い、リール番号「2」に対応する中ステッピングモータ152を駆動することにより、中リール19の回転の加速、定速、減速制御等を行う。次に、メインCPU301は、リール番号から「1」減算する処理を行い、リール番号「1」に対応する左ステッピングモータ151を駆動することにより、左リール18の回転の加速、定速、減速制御等を行う。そして、ステップS204の処理が終了すると、ステップS205に処理を移行する。
(Step S204)
In step S204, the main CPU 301 performs reel drive control processing. Specifically, the main CPU 301 sets “3” corresponding to the right reel 20 as the initial value of the reel number, and drives the right stepping motor 153 corresponding to the reel number “3” to set the right reel 20. It performs rotational acceleration, constant speed, deceleration control, etc. Next, the main CPU 301 executes a process of subtracting “1” from the reel number, and drives the middle stepping motor 152 corresponding to the reel number “2” to accelerate, constant-speed, and decelerate the rotation of the middle reel 19. Etc. Next, the main CPU 301 performs processing of subtracting “1” from the reel number, and drives the left stepping motor 151 corresponding to the reel number “1” to accelerate, constant-speed, and decelerate the rotation of the left reel 18. Etc. And if the process of step S204 is complete | finished, a process will be transfered to step S205.

(ステップS205)
ステップS205において、メインCPU301は、外部信号出力処理を行う。具体的には、メインCPU301は、外部集中端子板30の出力ポートデータを設定する処理等を行う。そして、ステップS205の処理が終了すると、ステップS206に処理を移行する。
(Step S205)
In step S205, the main CPU 301 performs external signal output processing. Specifically, the main CPU 301 performs processing for setting the output port data of the external concentrated terminal board 30, and the like. And if the process of step S205 is complete | finished, a process will be transfered to step S206.

(ステップS206)
ステップS206において、メインCPU301は、LED表示処理を行う。具体的には、メインCPU301は、貯留枚数表示器15、払出枚数表示器16の表示データを作成する処理を行い、当該作成された表示データに基づいて、貯留枚数表示器15、払出枚数表示器16の制御を行う。そして、ステップS206の処理が終了すると、ステップS207に処理を移行する。
(Step S206)
In step S206, the main CPU 301 performs LED display processing. Specifically, the main CPU 301 performs processing for creating display data of the stored sheet number indicator 15 and the paid sheet number indicator 16, and based on the created display data, the stored sheet number indicator 15, the paid sheet number indicator Perform 16 controls. And if the process of step S206 is complete | finished, a process will be transfered to step S207.

(ステップS207)
ステップS207において、メインCPU301は、制御コマンド送信処理を行う。具体的には、メインCPU301は、メインRAM303に設けられている演出用伝送データ格納領域にセットされた各種コマンドをサブ制御基板400に対して送信する処理を行う。そして、ステップS207の処理が終了すると、ステップS208に処理を移行する。
(Step S207)
In step S207, the main CPU 301 performs control command transmission processing. Specifically, the main CPU 301 performs processing for transmitting various commands set in the effect transmission data storage area provided in the main RAM 303 to the sub control board 400. And if the process of step S207 is complete | finished, a process will be transfered to step S208.

(ステップS208)
ステップS208において、メインCPU301は、ポート出力処理を行う。具体的には、メインCPU301は、ステータス基板100、リール制御基板150、電源基板200、サブ制御基板400に対して、各種信号を送信する処理を行う。なお、第2制御領域2210に記憶されたプログラムにおいては、出力ポートに対して信号を送信する処理を行うことはない。そして、ステップS208の処理が終了すると、ステップS209に処理を移行する。
(Step S208)
In step S208, the main CPU 301 performs port output processing. Specifically, the main CPU 301 performs processing of transmitting various signals to the status board 100, the reel control board 150, the power supply board 200, and the sub control board 400. In the program stored in the second control area 2210, processing for transmitting a signal to the output port is not performed. And if the process of step S208 is complete | finished, a process will be transfered to step S209.

(ステップS209)
ステップS209において、メインCPU301は、入力エラーチェック処理を行う。当該処理において、メインCPU301は、各種の入力エラーを検査するためのエラーチェック処理を行う。例えば、メインCPU301は、ドア開放をチェックするためのドア開放チェック処理等を行う。そして、ステップS209の処理が終了すると、ステップS210に処理を移行する。
(Step S209)
In step S209, the main CPU 301 performs input error check processing. In the process, the main CPU 301 performs an error check process for checking various input errors. For example, the main CPU 301 performs a door open check process or the like to check the door open. And if the process of step S209 is complete | finished, a process will be transfered to step S210.

(ステップS210)
ステップS210において、メインCPU301は、後で図25を用いて詳述する第2記憶領域割込処理を行う。なお、第2記憶領域割込処理は、第2記憶領域2200の第2制御領域2210に記憶された第2記憶領域割込処理を行うプログラムを呼び出すことにより実行される。また、第1記憶領域2100の第1制御領域2110に記憶された割込処理を行うプログラムのステップS210に対応する箇所には、第2記憶領域2200の第2制御領域2210に記憶された第2記憶領域割込処理を行うプログラムを呼び出すためのアドレスが予め規定されている。当該処理において、メインCPU301は、第2記憶領域における割込処理等を行う。また、本実施の形態においては、第2記憶領域割込処理を、割込処理の途中で実行されるようにしているが、「第2記憶領域2200の第2制御領域2210に記憶されたプログラムを呼び出すことにより実行される」第2記憶領域割込処理と、「第1記憶領域2100の第1制御領域2110に記憶されたプログラムを呼び出すことにより実行される」割込処理と、をそれぞれ別々に、独立で実行させるようにしてもよい。そして、ステップS210の処理が終了すると、ステップS211に処理を移行する。
(Step S210)
In step S210, the main CPU 301 executes a second storage area interrupt process which will be described later in detail with reference to FIG. The second storage area interrupt process is executed by calling a program for performing the second storage area interrupt process stored in the second control area 2210 of the second storage area 2200. Also, the second control area 2210 in the second storage area 2200 is stored in the second control area 2210 in the second storage area 2200 at a location corresponding to step S 210 of the program for performing the interrupt processing stored in the first control area 2 110 in the first storage area 2100. An address for calling a program that performs storage area interrupt processing is defined in advance. In the processing, the main CPU 301 performs interrupt processing and the like in the second storage area. Further, in the present embodiment, the second storage area interrupt processing is performed in the middle of the interrupt processing, but “the program stored in the second control area 2210 of the second storage area 2200 is used. Separate from the “second storage area interrupt process executed by calling“ 1 ”and“ the interrupt process executed by calling a program stored in the first control area 2110 of the first storage area 2100 ”. May be performed independently. And if the process of step S210 is complete | finished, a process will be transfered to step S211.

(ステップS211)
ステップS211において、メインCPU301は、第1記憶領域復帰時エラーチェック処理を行う。具体的には、メインCPU301は、上記第2記憶領域2200に記憶されたプログラムによる第2記憶領域割込処理において、エラーが検出されたか否かをチェックする処理を行う。ここでは、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによる割込処理において、第2記憶領域2200の第2ワーク領域2260に記憶されたエラーフラグを参照することにより、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによる第2記憶領域割込処理において、エラーが検出されたか否かをチェックする。そして、ステップS211の処理が終了すると、ステップS212に処理を移行する。
(Step S211)
In step S211, the main CPU 301 performs an error check process when returning the first storage area. Specifically, the main CPU 301 performs processing of checking whether an error is detected or not in the second storage area interrupt processing by the program stored in the second storage area 2200. Here, in the interrupt processing by the program stored in the first control area 2110 of the first storage area 2100, by referring to the error flag stored in the second work area 2260 of the second storage area 2200, In the second storage area interrupt process by the program stored in the second control area 2210 of the storage area 2200, it is checked whether an error is detected. And if the process of step S211 is complete | finished, a process will be transfered to step S212.

(ステップS212)
ステップS212において、メインCPU301は、エラーを検出したか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS211の第1記憶領域復帰時エラーチェック処理において、エラーを検出したか否かを判定する処理を行う。そして、メインCPU301は、エラーを検出したと判定された場合には(ステップS212=Yes)、ステップS213に処理を移行し、エラーを検出していないと判定された場合には(ステップS212=No)、ステップS214に処理を移行する。
(Step S212)
In step S212, the main CPU 301 performs processing to determine whether an error has been detected. Specifically, the main CPU 301 performs processing of determining whether or not an error is detected in the error check processing at the time of first storage area return in step S211. When the main CPU 301 determines that an error is detected (step S212 = Yes), the process proceeds to step S213, and when it is determined that an error is not detected (step S212 = No). ), The process proceeds to step S214.

(ステップS213)
ステップS213において、メインCPU301は、復帰時エラー検出時処理を行う。具体的には、メインCPU301は、エラー情報を各種表示器に表示するための処理等を行う。また、該当するエラーが検出された旨の情報を有するエラーコマンドをメインRAM303に設けられている演出用伝送データ格納領域にセットする処理を行う。そして、ステップS213の処理が終了すると、ステップS214に処理を移行する。なお、必要があればエラー表示後に遊技の停止処理を行う。
(Step S213)
In step S213, the main CPU 301 performs return error detection processing. Specifically, the main CPU 301 performs processing for displaying error information on various displays. In addition, an error command having information indicating that the corresponding error has been detected is set in the effect transmission data storage area provided in the main RAM 303. Then, when the process of step S213 ends, the process proceeds to step S214. If necessary, the game is stopped after an error is displayed.

(ステップS214)
ステップS214において、メインCPU301は、レジスタの復帰処理を行う。具体的には、メインCPU301は、ステップS201の処理において、退避したレジスタの値を復帰させる処理を行う。そして、ステップS214の処理が終了すると、割込処理を終了し、メインループ処理に復帰する。
(Step S214)
In step S214, the main CPU 301 performs register recovery processing. Specifically, the main CPU 301 performs processing of restoring the value of the saved register in the processing of step S201. Then, when the process of step S214 is completed, the interrupt process is ended and the process returns to the main loop process.

(第2記憶領域割込処理)
次に、図25に基づいて、図24のステップS210の処理により行われる第2記憶領域割込処理についての説明を行う。なお、図25は第2記憶領域割込処理のサブルーチンを示す図である。また、第2記憶領域割込処理は、第2記憶領域2200の第2制御領域2210に記憶されたプログラムに基づいて、実行される。
(Second memory area interrupt processing)
Next, the second storage area interrupt process performed by the process of step S210 in FIG. 24 will be described based on FIG. FIG. 25 is a diagram showing a second storage area interrupt processing subroutine. In addition, the second storage area interrupt process is executed based on the program stored in the second control area 2210 of the second storage area 2200.

(ステップS401)
ステップS401において、メインCPU301は、レジスタ退避処理を行う。具体的には、メインCPU301は、ステップS401の時点で使用しているレジスタの値を退避する処理を行う。なお、このレジスタ退避処理は、第2メダル投入チェック処理のステップS103−3−3−1におけるレジスタ退避処理と同様の処理である。そして、ステップS401の処理が終了すると、ステップS402に処理を移行する。
(Step S401)
In step S401, the main CPU 301 performs register save processing. Specifically, the main CPU 301 executes processing for saving the value of the register used at the time of step S401. The register save process is the same process as the register save process in step S103-3-3-1 of the second medal input check process. Then, when the process of step S401 ends, the process proceeds to step S402.

(ステップS402)
ステップS402において、メインCPU301は、タイマ計測処理を行う。具体的には、メインCPU301は、第2記憶領域2200における計時中のタイマ等についての計数処理を行う。例えば、メインCPU301は、ホッパーモータ91の駆動時間が第2記憶領域2200において計時中であれば、この駆動時間の計数処理を行う。なお、本ステップS402のタイマ計測処理におけるタイマの計数処理と、上記割込処理のステップS203のタイマ計測処理におけるタイマの計数処理では、同一内容のプログラムであるサブルーチンを呼び出すが、本ステップS402のタイマ計測処理におけるタイマの計数処理は、第2記憶領域2200の第2制御領域2210に記憶されたプログラムを呼び出すことによって実行し、第2ワーク領域2260に記憶されたタイマの値を更新するものであり、上記割込処理のステップS203のタイマ計測処理におけるタイマの計数処理は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムを呼び出すことによって実行し、第1ワーク領域2160に記憶されたタイマの値を更新するものである。すなわち、それぞれのタイマ計測処理は、対応するサブルーチンのみを呼び出すものであって、他方のサブルーチンは呼び出さない。そして、ステップS402の処理が終了すると、ステップS403に処理を移行する。
(Step S402)
In step S402, the main CPU 301 performs timer measurement processing. Specifically, the main CPU 301 performs counting processing of a timer or the like in timekeeping in the second storage area 2200. For example, when the driving time of the hopper motor 91 is being clocked in the second storage area 2200, the main CPU 301 performs counting processing of the driving time. In the timer count process in the timer measurement process in step S402 and the timer count process in the timer measurement process in step S203 of the interrupt process, the subroutine having the same content is called, but the timer in this step S402 The counting process of the timer in the measurement process is executed by calling a program stored in the second control area 2210 of the second storage area 2200, and updates the timer value stored in the second work area 2260. The counting process of the timer in the timer measurement process of step S203 of the interrupt process is executed by calling a program stored in the first control area 2110 of the first storage area 2100 and stored in the first work area 2160. The timer value is updated. That is, each timer measurement process calls only the corresponding subroutine, and does not call the other subroutine. And if the process of step S402 is complete | finished, a process will be transfered to step S403.

(ステップS403)
ステップS403において、メインCPU301は、後で図26を用いて詳述する第2記憶領域入力エラーチェック処理を行う。当該処理において、メインCPU301は、各種入力エラー(投入エラー、払出エラー)の検査処理等を行う。そして、ステップS403の処理が終了すると、ステップS404に処理を移行する。
(Step S403)
In step S403, the main CPU 301 performs a second storage area input error check process which will be described in detail later with reference to FIG. In the processing, the main CPU 301 performs inspection processing and the like of various input errors (input error, payout error). Then, when the process of step S403 ends, the process proceeds to step S404.

(ステップS404)
ステップS404において、メインCPU301は、レジスタ復帰処理を行う。具体的には、メインCPU301は、ステップS401の処理において、退避したレジスタの値を復帰させる処理を行う。なお、このレジスタ復帰処理は、第2メダル投入チェック処理のステップS103−3−3−10におけるレジスタ復帰処理と同様の処理である。そして、ステップS404の処理が終了すると、第2記憶領域割込処理を終了し、割込処理のステップS211に処理を移行する。
(Step S404)
In step S404, the main CPU 301 performs register recovery processing. Specifically, the main CPU 301 performs processing of restoring the value of the saved register in the processing of step S401. The register return process is the same process as the register return process in step S103-3-3-10 of the second medal insertion check process. When the process of step S404 ends, the second storage area interrupt process ends, and the process proceeds to step S211 of the interrupt process.

(第2記憶領域入力エラーチェック処理)
次に、図26に基づいて、図25のステップS403の処理により行われる第2記憶領域入力エラーチェック処理についての説明を行う。なお、図26は第2記憶領域入力エラーチェック処理のサブルーチンを示す図である。また、上記のように、第2記憶領域入力エラーチェック処理も、第2記憶領域2200の第2制御領域2210に記憶されたプログラムを呼び出すことにより実行される。
(Second storage area input error check process)
Next, a second storage area input error check process performed by the process of step S403 in FIG. 25 will be described based on FIG. FIG. 26 is a diagram showing a subroutine of the second storage area input error check process. In addition, as described above, the second storage area input error check process is also executed by calling a program stored in the second control area 2210 of the second storage area 2200.

(ステップS403−1)
ステップS403−1において、メインCPU301は、投入エラーまたは払出エラー時であるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における投入エラーフラグ(通過エラーフラグを含む)および払出エラーフラグを検索し、投入エラーフラグまたは払出エラーフラグがONであるか否かを判定する処理を行う。そして、投入エラーフラグまたは払出エラーフラグがONであると判定された場合には(ステップS403−1=Yes)、第2記憶領域入力エラーチェック処理を終了し、第2記憶領域割込処理のステップS404に処理を移行し、投入エラーフラグおよび払出エラーフラグがONでないと判定された場合には(ステップS403−1=No)、ステップS403−2に処理を移行する。
(Step S403-1)
In step S403-1, the main CPU 301 performs processing to determine whether or not an insertion error or a payout error has occurred. Specifically, the main CPU 301 searches for a closing error flag (including a passing error flag) and a payout error flag in the second work area 2260 of the second storage area 2200, and the loading error flag or the payout error flag is ON. It is determined whether or not it is. Then, if it is determined that the insertion error flag or the payout error flag is ON (step S403-1 = Yes), the second storage area input error check process is terminated, and the second storage area interrupt process is performed. The process proceeds to step S404, and when it is determined that the input error flag and the payout error flag are not ON (step S403-1 = No), the process proceeds to step S403-2.

(ステップS403−2)
ステップS403−2において、メインCPU301は、後で図27を用いて詳述する投入センサエラーチェック処理を行う。当該処理において、メインCPU301は、メダルの投入に関するエラー(セレクター14におけるエラー)を判定する処理等を行う。そして、ステップS403−2の処理が終了すると、ステップS402−3に処理を移行する。
(Step S403-2)
In step S403-2, the main CPU 301 performs an input sensor error check process which will be described in detail later with reference to FIG. In the process, the main CPU 301 performs a process of determining an error (error in the selector 14) related to the insertion of medals. Then, when the process of step S403-2 ends, the process proceeds to step S402-3.

(ステップS403−3)
ステップS403−3において、メインCPU301は、後で図28を用いて詳述する払出センサエラーチェック処理を行う。当該処理において、メインCPU301は、メダルの払い出しに関するエラー(ホッパー202におけるエラー)を判定する処理等を行う。そして、ステップS403−3の処理が終了すると、第2記憶領域入力エラーチェック処理を終了し、第2記憶領域割込処理のステップS404に処理を移行する。
(Step S403-3)
In step S403-3, the main CPU 301 performs a payout sensor error check process which will be described in detail later with reference to FIG. In the process, the main CPU 301 performs a process of determining an error (error in the hopper 202) related to the payout of medals. When the process of step S403-3 is completed, the second storage area input error check process is terminated, and the process proceeds to step S404 of the second storage area interrupt process.

(投入センサエラーチェック処理)
次に、図27に基づいて、図26のステップS403−2の処理により行われる投入センサエラーチェック処理についての説明を行う。なお、図27は投入センサエラーチェック処理のサブルーチンを示す図である。また、上記のように、投入センサエラーチェック処理も、第2記憶領域2200の第2制御領域2210に記憶されたプログラムを呼び出すことにより実行される。
(Input sensor error check process)
Next, based on FIG. 27, the input sensor error check process performed by the process of step S403-2 of FIG. 26 will be described. FIG. 27 is a diagram showing a subroutine of the input sensor error check process. As described above, the input sensor error check process is also executed by calling a program stored in the second control area 2210 of the second storage area 2200.

(ステップS403−2−1)
ステップS403−2−1において、メインCPU301は、ブロッカ54がOFF状態であるか否かを判定する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160に記憶されたブロッカ54の制御状態値を参照し、ブロッカ54の状態を判定する。なお、メインCPU301は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムにおいて、メダルの投入を許可する場合に、ブロッカ54をONに制御するとともに、第1ワーク領域2160におけるブロッカ54の制御状態値にONを記憶させ、メダルの投入を許可しない場合に、ブロッカ54をOFFに制御するとともに、第1ワーク領域2160におけるブロッカ54の制御状態値にOFFを記憶させる。
(Step S403-2-1)
In step S403-2-1, the main CPU 301 performs processing to determine whether the blocker 54 is in the OFF state. Specifically, the main CPU 301 refers to the control state value of the blocker 54 stored in the first work area 2160 of the first storage area 2100, and determines the state of the blocker 54. In the program stored in the first control area 2110 of the first storage area 2100, the main CPU 301 controls the blocker 54 to be ON when the medal insertion is permitted, and the blocker 54 in the first work area 2160. When ON is stored in the control state value of and the insertion of medals is not permitted, the blocker 54 is controlled to be OFF, and OFF is stored in the control state value of the blocker 54 in the first work area 2160.

そして、ブロッカ54がOFF状態であると判定された場合には(ステップS403−2−1=Yes)、ステップS403−2−5に処理を移行し、ブロッカ54がOFF状態でないと判定された場合には(ステップS403−2−1=No)、ステップS403−2−2に処理を移行する。   When it is determined that the blocker 54 is in the OFF state (step S403-2-1 = Yes), the process proceeds to step S403-2-5, and it is determined that the blocker 54 is not in the OFF state. (Step S403-2-1 = No), the process proceeds to step S403-2-2.

(ステップS403−2−2)
ステップS403−2−2において、メインCPU301は、ブロッカフラグがOFFであるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260に記憶されたブロッカフラグの値が、OFFであるか否かを判定する。そして、ブロッカフラグの値がOFFであると判定された場合には(ステップS403−2−2=Yes)、ステップS403−2−3に処理を移行し、ブロッカフラグの値がOFFでないと判定された場合には(ステップS403−2−2=No)、ステップS403−2−12に処理を移行する。
(Step S403-2-2)
In step S403-2-2, the main CPU 301 executes processing to determine whether the blocker flag is OFF. Specifically, the main CPU 301 determines whether the value of the blocker flag stored in the second work area 2260 of the second storage area 2200 is OFF. When it is determined that the value of the blocker flag is OFF (step S403-2-2 = Yes), the process proceeds to step S403-2-3, and it is determined that the value of the blocker flag is not OFF. If it has (step S403-2-2 = No), the process proceeds to step S403-2-12.

(ステップS403−2−3)
ステップS403−2−3において、メインCPU301は、ブロッカOFF時間の計時を終了する処理を行う。具体的には、メインCPU301は、第2記憶領域割込処理におけるタイマ計測処理によるブロッカOFF時間の更新を停止させ、第2記憶領域2200の第2ワーク領域2260におけるブロッカOFF時間の値をクリアする処理を行う。そして、ステップS403−2−3の処理が終了すると、ステップS403−2−4に処理を移行する。
(Step S403-2-3)
In step S403-2-3, the main CPU 301 performs processing to end clocking of the blocker OFF time. Specifically, the main CPU 301 stops updating the blocker OFF time by the timer measurement process in the second storage area interrupt process, and clears the value of the blocker OFF time in the second work area 2260 of the second storage area 2200. Do the processing. Then, when the process of step S403-2-3 ends, the process proceeds to step S403-2-4.

(ステップS403−2−4)
ステップS403−2−4において、メインCPU301は、ブロッカフラグをONとする処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260におけるブロッカフラグにONをセットする処理を行う。そして、ステップS403−2−4の処理が終了すると、ステップS403−2−12に処理を移行する。
(Step S403-2-4)
In step S403-2-4, the main CPU 301 performs processing for turning on the blocker flag. Specifically, the main CPU 301 performs processing for setting ON to the blocker flag in the second work area 2260 of the second storage area 2200. Then, when the process of step S403-2-4 ends, the process proceeds to step S403-2-12.

(ステップS403−2−5)
ステップS403−2−5において、メインCPU301は、ブロッカフラグがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260に記憶されたブロッカフラグの値が、ONであるか否かを判定する。そして、ブロッカフラグの値がONであると判定された場合には(ステップS403−2−5=Yes)、ステップS403−2−6に処理を移行し、ブロッカフラグの値がONでないと判定された場合には(ステップS403−2−5=No)、ステップS403−2−8に処理を移行する。
(Step S403-2-5)
In step S403-2-5, the main CPU 301 executes processing to determine whether the blocker flag is ON. Specifically, the main CPU 301 determines whether the value of the blocker flag stored in the second work area 2260 of the second storage area 2200 is ON. When it is determined that the value of the blocker flag is ON (step S403-2-5 = Yes), the process proceeds to step S403-2-6, and it is determined that the value of the blocker flag is not ON. If it has (step S403-2-5 = No), the process proceeds to step S403-2-8.

(ステップS403−2−6)
ステップS403−2−6において、メインCPU301は、ブロッカOFF時間の計時を開始する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260におけるブロッカOFF時間の値をクリアし、第2記憶領域割込処理におけるタイマ計測処理によるブロッカOFF時間の更新を開始させる処理を行う。そして、ステップS403−2−6の処理が終了すると、ステップS403−2−7に処理を移行する。
(Step S403-2-6)
In step S403-2-6, the main CPU 301 executes processing to start clocking of the blocker OFF time. Specifically, the main CPU 301 clears the value of the blocker off time in the second work area 2260 of the second storage area 2200, and starts updating the blocker off time by the timer measurement process in the second storage area interrupt process. Do the processing. And if the process of step S403-2-6 is complete | finished, a process will be transfered to step S403-2-7.

(ステップS403−2−7)
ステップS403−2−7において、メインCPU301は、ブロッカフラグをOFFとする処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260におけるブロッカフラグにOFFをセットする処理を行う。そして、ステップS403−2−7の処理が終了すると、ステップS403−2−8に処理を移行する。
(Step S403-2-7)
In step S403-2-7, the main CPU 301 performs processing to turn off the blocker flag. Specifically, the main CPU 301 performs a process of setting the blocker flag in the second work area 2260 of the second storage area 2200 to OFF. Then, when the process of step S403-2-7 ends, the process proceeds to step S403-2-8.

(ステップS403−2−8)
ステップS403−2−8において、メインCPU301は、ブロッカOFF時間が500ms以上であるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260に記憶されたブロッカOFF時間が、500ms以上となったか否かを判定する。そして、ブロッカOFF時間が500ms以上であると判定された場合には(ステップS403−2−8=Yes)、ステップS403−2−9に処理を移行し、ブロッカOFF時間が500ms以上でないと判定された場合には(ステップS403−2−8=No)、ステップS403−2−12に処理を移行する。
(Step S403-2-8)
In step S403-2-8, the main CPU 301 executes processing to determine whether the blocker OFF time is 500 ms or more. Specifically, the main CPU 301 determines whether or not the blocker OFF time stored in the second work area 2260 of the second storage area 2200 has become 500 ms or more. When it is determined that the blocker OFF time is 500 ms or more (step S403-2-8 = Yes), the process proceeds to step S403-2-9, and it is determined that the blocker OFF time is not 500 ms or more. If it has (step S403-2-8 = No), the process proceeds to step S403-2-12.

(ステップS403−2−9)
ステップS403−2−9において、メインCPU301は、第1メダル通過センサ62の信号がONであるか否かを判定する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160に記憶された第1メダル通過センサ状態値を参照し、第1メダル通過センサ62の信号がONであるか否かを判定する。なお、上記のように、メインCPU301は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムにおいて、第1メダル通過センサ62から信号を入力する(第1メダル通過センサ62に対応する入力ポートの値がONとなる)と、第1ワーク領域2160における第1メダル通過センサ状態値にONを記憶させ、第1メダル通過センサ62からの信号を入力しなくなる(第1メダル通過センサ62に対応する入力ポートの値がOFFとなる)と、第1ワーク領域2160における第1メダル通過センサ状態値にOFFを記憶させる。
(Step S403-2-9)
In step S403-2-9, the main CPU 301 performs processing to determine whether the signal of the first medal passage sensor 62 is ON. Specifically, the main CPU 301 refers to the first medal passage sensor state value stored in the first work area 2160 of the first storage area 2100 and determines whether the signal of the first medal passage sensor 62 is ON or not. Determine As described above, in the program stored in the first control area 2110 of the first storage area 2100, the main CPU 301 inputs a signal from the first medal passage sensor 62 (corresponding to the first medal passage sensor 62) When the value of the input port is turned ON, ON is stored in the first medal passage sensor state value in the first work area 2160, and the signal from the first medal passage sensor 62 is not input (first medal passage sensor 62 When the value of the input port corresponding to is turned OFF), OFF is stored in the first medal passage sensor state value in the first work area 2160.

そして、第1メダル通過センサ62の信号がONであると判定された場合には(ステップS403−2−9=Yes)、ステップS403−2−11に処理を移行し、第1メダル通過センサ62の信号がONでないと判定された場合には(ステップS403−2−9=No)、ステップS403−2−10に処理を移行する。   When it is determined that the signal of the first medal passage sensor 62 is ON (step S403-2-9 = Yes), the process proceeds to step S403-2-11, and the first medal passage sensor 62 is determined. When it is determined that the signal of is not ON (step S403-2-9 = No), the process proceeds to step S403-2-10.

(ステップS403−2−10)
ステップS403−2−10において、メインCPU301は、第2メダル通過センサ63の信号がONであるか否かを判定する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160に記憶された第2メダル通過センサ状態値を参照し、第2メダル通過センサ63の信号がONであるか否かを判定する。なお、上記のように、メインCPU301は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムにおいて、第2メダル通過センサ63から信号を入力する(第2メダル通過センサ63に対応する入力ポートの値がONとなる)と、第1ワーク領域2160における第2メダル通過センサ状態値にONを記憶させ、第2メダル通過センサ63からの信号を入力しなくなる(第2メダル通過センサ63に対応する入力ポートの値がOFFとなる)と、第1ワーク領域2160における第2メダル通過センサ状態値にOFFを記憶させる。
(Step S403-2-10)
In step S403-2-10, the main CPU 301 performs processing to determine whether the signal of the second medal passage sensor 63 is ON. Specifically, the main CPU 301 refers to the second medal passage sensor state value stored in the first work area 2160 of the first storage area 2100, and determines whether the signal of the second medal passage sensor 63 is ON or not. Determine As described above, in the program stored in the first control area 2110 of the first storage area 2100, the main CPU 301 inputs a signal from the second medal passage sensor 63 (corresponding to the second medal passage sensor 63) When the value of the input port is turned ON, ON is stored in the second medal passage sensor state value in the first work area 2160, and the signal from the second medal passage sensor 63 is not input (second medal passage sensor 63 When the value of the input port corresponding to is turned OFF), OFF is stored in the second medal passage sensor state value in the first work area 2160.

そして、第2メダル通過センサ63の信号がONであると判定された場合には(ステップS403−2−10=Yes)、ステップS403−2−11に処理を移行し、第2メダル通過センサ63の信号がONでないと判定された場合には(ステップS403−2−10=No)、ステップS403−2−12に処理を移行する。   When it is determined that the signal of the second medal passage sensor 63 is ON (step S403-2-10 = Yes), the process proceeds to step S403-2-11, and the second medal passage sensor 63 is detected. When it is determined that the signal of is not ON (step S403-2-10 = No), the process proceeds to step S403-2-12.

(ステップS403−2−11)
ステップS403−2−11において、メインCPU301は、通過エラーフラグ設定処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における通過エラーフラグにONをセットする処理を行う。そして、ステップS403−2−11の処理が終了すると、投入センサエラーチェック処理を終了して、第2記憶領域入力エラーチェック処理のステップS403−3に処理を移行する。
(Step S403-2-11)
In step S403-2-11, the main CPU 301 performs passage error flag setting processing. Specifically, the main CPU 301 performs processing for setting ON to the passage error flag in the second work area 2260 of the second storage area 2200. Then, when the process of step S403-2-11 ends, the input sensor error check process ends, and the process proceeds to step S403-3 of the second storage area input error check process.

(ステップS403−2−12)
ステップS403−2−12において、メインCPU301は、メダル投入検知センサ61の信号がONであるか否かを判定する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160に記憶されたメダル投入検知センサ状態値を参照し、メダル投入検知センサ61の信号がONであるか否かを判定する。なお、上記のように、メインCPU301は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムにおいて、メダル投入検知センサ61から信号を入力する(メダル投入検知センサ61に対応する入力ポートの値がONとなる)と、第1ワーク領域2160におけるメダル投入検知センサ状態値にONを記憶させ、メダル投入検知センサ61からの信号を入力しなくなる(メダル投入検知センサ61に対応する入力ポートの値がOFFとなる)と、第1ワーク領域2160におけるメダル投入検知センサ状態値にOFFを記憶させる。
(Step S403-2-12)
In step S403-2-12, the main CPU 301 performs processing to determine whether the signal of the medal insertion detection sensor 61 is ON. Specifically, the main CPU 301 refers to the medal insertion detection sensor state value stored in the first work area 2160 of the first storage area 2100, and determines whether or not the signal of the medal insertion detection sensor 61 is ON. Do. As described above, in the program stored in the first control area 2110 of the first storage area 2100, the main CPU 301 inputs a signal from the medal insertion detection sensor 61 (an input port corresponding to the medal insertion detection sensor 61) Value becomes ON, the ON state is stored in the medal insertion detection sensor state value in the first work area 2160, and the signal from the medal insertion detection sensor 61 is not input (the input port corresponding to the medal insertion detection sensor 61 When the value of is turned OFF), OFF is stored in the medal insertion detection sensor state value in the first work area 2160.

そして、メダル投入検知センサ61の信号がONであると判定された場合には(ステップS403−2−12=Yes)、ステップS403−2−16に処理を移行し、メダル投入検知センサ61の信号がONでないと判定された場合には(ステップS403−2−12=No)、ステップS403−2−13に処理を移行する。   When it is determined that the signal of the medal insertion detection sensor 61 is ON (step S403-2-12 = Yes), the process proceeds to step S403-2-16, and the signal of the medal insertion detection sensor 61 is Is determined to be not ON (step S403-2-12 = No), the process proceeds to step S403-2-13.

(ステップS403−2−13)
ステップS403−2−13において、メインCPU301は、投入検知センサフラグがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260に記憶された投入検知センサフラグの値が、ONであるか否かを判定する。そして、投入検知センサフラグの値がONであると判定された場合には(ステップS403−2−13=Yes)、ステップS403−2−14に処理を移行し、投入検知センサフラグの値がONでないと判定された場合には(ステップS403−2−13=No)、投入センサエラーチェック処理を終了し、第2記憶領域入力エラーチェック処理のステップS403−3に処理を移行する。
(Step S403-2-13)
In step S403-2-13, the main CPU 301 performs processing to determine whether the insertion detection sensor flag is ON. Specifically, the main CPU 301 determines whether or not the value of the insertion detection sensor flag stored in the second work area 2260 of the second storage area 2200 is ON. When it is determined that the value of the insertion detection sensor flag is ON (step S403-2-13 = Yes), the process proceeds to step S403-2-14, and the value of the insertion detection sensor flag is ON. If it is not determined (step S403-2-13 = No), the input sensor error check process is ended, and the process proceeds to step S403-3 of the second storage area input error check process.

(ステップS403−2−14)
ステップS403−2−14において、メインCPU301は、投入検知センサON中時間の計時を終了する処理を行う。具体的には、メインCPU301は、第2記憶領域割込処理におけるタイマ計測処理による投入検知センサON中時間の更新を停止させ、第2記憶領域2200の第2ワーク領域2260における投入検知センサON中時間の値をクリアする処理を行う。そして、ステップS403−2−14の処理が終了すると、ステップS403−2−15に処理を移行する。
(Step S403-2-14)
In step S403-2-14, the main CPU 301 performs processing to end the clocking of the ON detection sensor ON time. Specifically, the main CPU 301 stops updating of the on-time detection sensor on time by the timer measurement process in the second storage area interrupt process, and on-time on the on-line detection sensor in the second work area 2260 of the second storage area 2200. Perform processing to clear the time value. Then, when the process of step S403-2-14 ends, the process proceeds to step S403-2-15.

(ステップS403−2−15)
ステップS403−2−15において、メインCPU301は、投入検知センサフラグをOFFとする処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における投入検知センサフラグにOFFをセットする処理を行う。そして、ステップS403−2−15の処理が終了すると、投入センサエラーチェック処理を終了し、第2記憶領域入力エラーチェック処理のステップS403−3に処理を移行する。
(Step S403-2-15)
In step S403-2-15, the main CPU 301 performs processing for turning off the insertion detection sensor flag. Specifically, the main CPU 301 performs processing for setting OFF the insertion detection sensor flag in the second work area 2260 of the second storage area 2200. When the process of step S403-2-15 ends, the input sensor error check process is ended, and the process proceeds to step S403-3 of the second storage area input error check process.

(ステップS403−2−16)
ステップS403−2−16において、メインCPU301は、投入検知センサフラグがOFFであるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260に記憶された投入検知センサフラグの値が、OFFであるか否かを判定する。そして、投入検知センサフラグの値がOFFであると判定された場合には(ステップS403−2−16=Yes)、ステップS403−2−17に処理を移行し、投入検知センサフラグの値がOFFでないと判定された場合には(ステップS403−2−16=No)、ステップS403−2−19に処理を移行する。
(Step S403-2-16)
In step S403-2-16, the main CPU 301 performs processing to determine whether the insertion detection sensor flag is OFF. Specifically, the main CPU 301 determines whether the value of the insertion detection sensor flag stored in the second work area 2260 of the second storage area 2200 is OFF. When it is determined that the value of the insertion detection sensor flag is OFF (step S403-2-16 = Yes), the process proceeds to step S403-2-17, and the value of the insertion detection sensor flag is OFF. If it is determined not (step S403-2-16 = No), the process proceeds to step S403-2-19.

(ステップS403−2−17)
ステップS403−2−17において、メインCPU301は、投入検知センサON中時間の計時を開始する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における投入検知センサON中時間の値をクリアし、第2記憶領域割込処理におけるタイマ計測処理による投入検知センサON中時間の更新を開始させる処理を行う。そして、ステップS403−2−17の処理が終了すると、ステップS403−2−18に処理を移行する。
(Step S403-2-17)
In step S403-2-17, the main CPU 301 performs processing to start counting of the on-time of the insertion detection sensor. Specifically, the main CPU 301 clears the value of the loading detection sensor ON time in the second work area 2260 of the second storage area 2200, and the loading detection sensor ON by timer measurement processing in the second storage area interrupt processing. Perform processing to start updating time. Then, when the process of step S403-2-17 ends, the process proceeds to step S403-2-18.

(ステップS403−2−18)
ステップS403−2−18において、メインCPU301は、投入検知センサフラグをONとする処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における投入検知センサフラグにONをセットする処理を行う。そして、ステップS403−2−18の処理が終了すると、ステップS403−2−19に処理を移行する。
(Step S403-2-18)
In step S403-2-18, the main CPU 301 performs processing for turning on the insertion detection sensor flag. Specifically, the main CPU 301 performs processing for setting ON to the insertion detection sensor flag in the second work area 2260 of the second storage area 2200. Then, when the process of step S403-2-18 ends, the process proceeds to step S403-2-19.

(ステップS403−2−19)
ステップS403−2−19において、メインCPU301は、投入検知センサON中時間が1500ms以上であるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260に記憶された投入検知センサON中時間が、1500ms以上となったか否かを判定する。そして、投入検知センサON中時間が1500ms以上であると判定された場合には(ステップS403−2−19=Yes)、ステップS403−2−20に処理を移行し、投入検知センサON中時間が1500ms以上でないと判定された場合には(ステップS403−2−19=No)、投入センサエラーチェック処理を終了し、第2記憶領域入力エラーチェック処理のステップS403−3に処理を移行する。
(Step S403-2-19)
In step S403-2-19, the main CPU 301 performs processing to determine whether the time during which the insertion detection sensor is on is 1500 ms or more. Specifically, the main CPU 301 determines whether or not the loading detection sensor ON time stored in the second work area 2260 of the second storage area 2200 has reached 1500 ms or more. When it is determined that the time during which the insertion detection sensor is on is 1500 ms or more (step S403-2-19 = Yes), the process proceeds to step S403-2-20, and the time during which the insertion detection sensor is on is on. If it is determined that it is not 1500 ms or more (step S403-2-19 = No), the input sensor error check process is ended, and the process proceeds to step S403-3 of the second storage area input error check process.

(ステップS403−2−20)
ステップS403−2−20において、メインCPU301は、投入エラーフラグ設定処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における投入エラーフラグにONをセットする処理を行う。そして、ステップS403−2−20の処理が終了すると、投入センサエラーチェック処理を終了して、第2記憶領域入力エラーチェック処理のステップS403−3に処理を移行する。
(Step S403-2-20)
In step S403-2-20, the main CPU 301 performs an input error flag setting process. Specifically, the main CPU 301 performs processing for setting ON to the input error flag in the second work area 2260 of the second storage area 2200. When the process of step S403-2-20 is completed, the input sensor error check process is ended, and the process proceeds to step S403-3 of the second storage area input error check process.

(払出センサエラーチェック処理)
次に、図28に基づいて、図26のステップS403−3の処理により行われる払出センサエラーチェック処理についての説明を行う。なお、図28は払出センサエラーチェック処理のサブルーチンを示す図である。また、上記のように、払出センサエラーチェック処理も、第2記憶領域2200の第2制御領域2210に記憶されたプログラムを呼び出すことにより実行される。
(Discharge sensor error check process)
Next, based on FIG. 28, the payout sensor error check process performed by the process of step S403-3 of FIG. 26 will be described. FIG. 28 is a diagram showing a subroutine of the payout sensor error check process. As described above, the payout sensor error check process is also executed by calling a program stored in the second control area 2210 of the second storage area 2200.

(ステップS403−3−1)
ステップS403−3−1において、メインCPU301は、ホッパーモータ91が停止中であるか否かを判定する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160に記憶されたホッパーモータ動作状態値を参照し、ホッパーモータ91の動作状態を判定する。なお、メインCPU301は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムにおいて、ホッパーモータ91を動作させる際には、第1ワーク領域2160におけるホッパーモータ動作状態値にONを記憶させ、ホッパーモータ91を停止させる際には、第1ワーク領域2160におけるホッパーモータ動作状態値にOFFを記憶させる。
(Step S403-3-1)
In step S403-3-1, the main CPU 301 performs processing to determine whether the hopper motor 91 is stopped. Specifically, the main CPU 301 refers to the hopper motor operation state value stored in the first work area 2160 of the first storage area 2100, and determines the operation state of the hopper motor 91. In the program stored in the first control area 2110 of the first storage area 2100, the main CPU 301 causes ON to be stored in the hopper motor operation state value in the first work area 2160 when operating the hopper motor 91. When stopping the hopper motor 91, OFF is stored in the hopper motor operation state value in the first work area 2160.

そして、ホッパーモータ91が停止中であると判定された場合には(ステップS403−3−1=Yes)、ステップS403−3−2に処理を移行し、ホッパーモータ91が停止中でないと判定された場合には(ステップS403−3−1=No)、払出センサエラーチェック処理を終了して、第2記憶領域割込処理のステップS404に処理を移行する。   When it is determined that the hopper motor 91 is stopped (step S403-3-1 = Yes), the process proceeds to step S403-3-2, and it is determined that the hopper motor 91 is not stopped. If it is (step S403-3-1 = No), the payout sensor error check process is ended, and the process proceeds to step S404 of the second storage area interrupt process.

(ステップS403−3−2)
ステップS403−3−2において、メインCPU301は、払出センサ92の信号がONであるか否かを判定する処理を行う。具体的には、メインCPU301は、第1記憶領域2100の第1ワーク領域2160に記憶された払出センサ状態値を参照し、払出センサ92の信号がONであるか否かを判定する。なお、上記のように、メインCPU301は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムにおいて、払出センサ92から信号を入力する(払出センサ92に対応する入力ポートの値がONとなる)と、第1ワーク領域2160における払出センサ状態値にONを記憶させ、払出センサ92からの信号を入力しなくなる(払出センサ92に対応する入力ポートの値がOFFとなる)と、第1ワーク領域2160における払出センサ状態値にOFFを記憶させる。
(Step S403-3-2)
In step S403-3-2, the main CPU 301 performs processing to determine whether the signal of the payout sensor 92 is ON. Specifically, the main CPU 301 refers to the payout sensor state value stored in the first work area 2160 of the first storage area 2100, and determines whether or not the signal of the payout sensor 92 is ON. As described above, in the program stored in the first control area 2110 of the first storage area 2100, the main CPU 301 inputs a signal from the payout sensor 92 (when the value of the input port corresponding to the payout sensor 92 is ON) And the ON state is stored in the dispensing sensor state value in the first work area 2160, and the signal from the dispensing sensor 92 is not input (the value of the input port corresponding to the dispensing sensor 92 becomes OFF), 1) OFF is stored in the dispensing sensor state value in the work area 2160.

そして、払出センサ92の信号がONであると判定された場合には(ステップS403−3−2=Yes)、ステップS403−3−6に処理を移行し、払出センサ92の信号がONでないと判定された場合には(ステップS403−3−2=No)、ステップS403−3−3に処理を移行する。   When it is determined that the signal of the payout sensor 92 is ON (step S403-3-2 = Yes), the process proceeds to step S403-3-6, and it is determined that the signal of the payout sensor 92 is not ON. If it is determined (step S403-3-2 = No), the process proceeds to step S403-3-3.

(ステップS403−3−3)
ステップS403−3−3において、メインCPU301は、第2領域用払出センサフラグがONであるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260に記憶された第2領域用払出センサフラグの値が、ONであるか否かを判定する。そして、第2領域用払出センサフラグの値がONであると判定された場合には(ステップS403−3−3=Yes)、ステップS403−3−4に処理を移行し、第2領域用払出センサフラグの値がONでないと判定された場合には(ステップS403−3−3=No)、払出センサエラーチェック処理を終了し、第2記憶領域割込処理のステップS404に処理を移行する。
(Step S403-3-3)
In step S403-3-3, the main CPU 301 performs processing to determine whether or not the second region payout sensor flag is ON. Specifically, the main CPU 301 determines whether the value of the second area payout sensor flag stored in the second work area 2260 of the second storage area 2200 is ON. When it is determined that the value of the second area payout sensor flag is ON (step S403-3-3 = Yes), the process proceeds to step S403-3-4, and the second area payout is determined. If it is determined that the value of the sensor flag is not ON (step S403-3-3 = No), the payout sensor error check process is ended, and the process proceeds to step S404 of the second storage area interrupt process.

(ステップS403−3−4)
ステップS403−3−4において、メインCPU301は、モータOFF中払出センサ検出時間の計時を終了する処理を行う。具体的には、メインCPU301は、第2記憶領域割込処理におけるタイマ計測処理によるモータOFF中払出センサ検出時間の更新を停止させ、第2記憶領域2200の第2ワーク領域2260におけるモータOFF中払出センサ検出時間の値をクリアする処理を行う。そして、ステップS403−3−4の処理が終了すると、ステップS403−3−5に処理を移行する。
(Step S403-3-4)
In step S403-3-4, the main CPU 301 performs processing to end the counting of the motor-off payment sensor detection time. Specifically, the main CPU 301 stops the update of the motor-off payment sensor detection time by the timer measurement processing in the second storage area interrupt processing, and the motor-off payout in the second work area 2260 of the second storage area 2200. Perform processing to clear the value of sensor detection time. Then, when the process of step S403-3-4 ends, the process proceeds to step S403-3-5.

(ステップS403−3−5)
ステップS403−3−5において、メインCPU301は、第2領域用払出センサフラグをOFFとする処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における第2領域用払出センサフラグにOFFをセットする処理を行う。そして、ステップS403−3−5の処理が終了すると、払出センサエラーチェック処理を終了し、第2記憶領域割込処理のステップS404に処理を移行する。
(Step S403-3-5)
In step S403-3-5, the main CPU 301 performs processing for turning off the second area payout sensor flag. Specifically, the main CPU 301 performs processing for setting OFF for the second area payout sensor flag in the second work area 2260 of the second storage area 2200. Then, when the process of step S403-3-5 ends, the payout sensor error check process ends, and the process proceeds to step S404 of the second storage area interrupt process.

(ステップS403−3−6)
ステップS403−3−6において、メインCPU301は、第2領域用払出センサフラグがOFFであるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260に記憶された第2領域用払出センサフラグの値が、OFFであるか否かを判定する。そして、第2領域用払出センサフラグの値がOFFであると判定された場合には(ステップS403−3−6=Yes)、ステップS403−3−7に処理を移行し、第2領域用払出センサフラグの値がOFFでないと判定された場合には(ステップS403−3−6=No)、ステップS403−3−9に処理を移行する。
(Step S403-3-6)
In step S403-3-6, the main CPU 301 performs processing to determine whether or not the second region payout sensor flag is OFF. Specifically, the main CPU 301 determines whether the value of the second area payout sensor flag stored in the second work area 2260 of the second storage area 2200 is OFF. Then, if it is determined that the value of the second area payout sensor flag is OFF (step S403-3-6 = Yes), the process proceeds to step S403-3-7, and the second area payout is determined. If it is determined that the value of the sensor flag is not OFF (step S403-3-6 = No), the process proceeds to step S403-3-9.

(ステップS403−3−7)
ステップS403−3−7において、メインCPU301は、モータOFF中払出センサ検出時間の計時を開始する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260におけるモータOFF中払出センサ検出時間の値をクリアし、第2記憶領域割込処理におけるタイマ計測処理によるモータOFF中払出センサ検出時間の更新を開始させる処理を行う。そして、ステップS403−3−7の処理が終了すると、ステップS403−3−8に処理を移行する。
(Step S403-3-7)
In step S403-3-7, the main CPU 301 performs processing of starting counting of motor-off payment sensor detection time. Specifically, the main CPU 301 clears the value of the motor-off payout sensor detection time in the second work area 2260 of the second storage area 2200, and dispenses the motor-off during timer measurement processing in the second storage area interrupt processing. A process of starting updating of the sensor detection time is performed. Then, when the process of step S403-3-7 ends, the process proceeds to step S403-3-8.

(ステップS403−3−8)
ステップS403−3−8において、メインCPU301は、第2領域用払出センサフラグをONとする処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における第2領域用払出センサフラグにONをセットする処理を行う。そして、ステップS403−3−8の処理が終了すると、ステップS403−3−9に処理を移行する。
(Step S403-3-8)
In step S403-3-8, the main CPU 301 performs processing for turning on the second area payout sensor flag. Specifically, the main CPU 301 executes a process of setting ON to the second area area payout sensor flag in the second work area 2260 of the second storage area 2200. Then, when the process of step S403-3-8 ends, the process proceeds to step S403-3-9.

(ステップS403−3−9)
ステップS403−3−9において、メインCPU301は、モータOFF中払出センサ検出時間が7.5ms以上であるか否かを判定する処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260に記憶されたモータOFF中払出センサ検出時間が、7.5ms以上となったか否かを判定する。そして、モータOFF中払出センサ検出時間が7.5ms以上であると判定された場合には(ステップS403−3−9=Yes)、ステップS403−3−10に処理を移行し、モータOFF中払出センサ検出時間が7.5ms以上でないと判定された場合には(ステップS403−3−9=No)、払出センサエラーチェック処理を終了し、第2記憶領域割込処理のステップS404に処理を移行する。
(Step S403-3-9)
In step S403-3-9, the main CPU 301 performs processing to determine whether or not the motor-off payout sensor detection time is 7.5 ms or more. Specifically, the main CPU 301 determines whether or not the motor-off payout sensor detection time stored in the second work area 2260 of the second storage area 2200 is 7.5 ms or more. Then, when it is determined that the motor OFF in-dispensing sensor detection time is 7.5 ms or more (step S403-3-9 = Yes), the process proceeds to step S403-3-10, and the motor in-off payout is performed. If it is determined that the sensor detection time is not 7.5 ms or more (step S403-3-9 = No), the payout sensor error check process is ended, and the process proceeds to step S404 of the second storage area interrupt process. Do.

(ステップS403−3−10)
ステップS403−3−10において、メインCPU301は、払出エラーフラグ設定処理を行う。具体的には、メインCPU301は、第2記憶領域2200の第2ワーク領域2260における払出エラーフラグにONをセットする処理を行う。そして、ステップS403−3−10の処理が終了すると、払出センサエラーチェック処理を終了して、第2記憶領域入力エラーチェック処理のステップS403−3に処理を移行する。
(Step S403-3-10)
In step S403-3-10, the main CPU 301 performs payout error flag setting processing. Specifically, the main CPU 301 performs processing of setting ON to the payout error flag in the second work area 2260 of the second storage area 2200. Then, when the process of step S403-3-10 ends, the payout sensor error check process is ended, and the process proceeds to step S403-3 of the second storage area input error check process.

(サブ制御基板におけるメイン処理)
次に、図29に基づいて、サブ制御基板におけるメイン処理についての説明を行う。
(Main processing in sub control board)
Next, the main processing in the sub control board will be described based on FIG.

(ステップS301)
ステップS301において、サブCPU401は、初期化処理を行う。具体的には、サブCPU401は、サブRAM403のエラーをチェックする処理等を行う。そして、ステップS301の処理が終了すると、ステップS302に処理を移行する。
(Step S301)
In step S301, the sub CPU 401 performs initialization processing. Specifically, the sub CPU 401 performs processing for checking an error in the sub RAM 403, and the like. And if the process of step S301 is complete | finished, a process will be transfered to step S302.

(ステップS302)
ステップS302において、サブCPU401は、後で図30を用いて詳述するメイン制御基板通信処理を行う。当該処理において、サブCPU401は、メイン制御基板300から受信したコマンドを解析する処理等を行う。そして、ステップS302の処理が終了すると、ステップS303に処理を移行する。
(Step S302)
In step S302, the sub CPU 401 performs main control board communication processing which will be described in detail later with reference to FIG. In the process, the sub CPU 401 performs a process of analyzing a command received from the main control board 300. Then, when the process of step S302 ends, the process proceeds to step S303.

(ステップS303)
ステップS303において、サブCPU401は、サウンド制御処理を行う。具体的には、サブCPU401は、後述のステップS302−3−3のサウンドデータ決定処理により決定されたサウンドデータに基づいて、スピーカ33から音声を出力する処理を行う。そして、ステップS303の処理が終了すると、ステップS304に処理を移行する。
(Step S303)
In step S303, the sub CPU 401 performs sound control processing. Specifically, the sub CPU 401 performs a process of outputting sound from the speaker 33 based on the sound data determined by the sound data determination process of step S302-3-3 described later. Then, when the process of step S303 ends, the process proceeds to step S304.

(ステップS304)
ステップS304において、サブCPU401は、LED制御処理を行う。具体的には、サブCPU401は、後述のステップS302−3−2のLEDデータ決定処理により決定されたLEDデータに基づいて、LED32の制御を行う。そして、ステップS304の処理が終了すると、ステップS305に処理を移行する。
(Step S304)
In step S304, the sub CPU 401 performs LED control processing. Specifically, the sub CPU 401 controls the LED 32 based on the LED data determined by the LED data determination process of step S302-3-2, which will be described later. Then, when the process of step S304 ends, the process proceeds to step S305.

(ステップS305)
ステップS305において、サブCPU401は、画像制御処理を行う。具体的には、サブCPU401は、後述のステップS302−3−4の画像データ決定処理により決定された画像データに基づいて、液晶表示装置31の制御を行う。そして、ステップS305の処理が終了すると、ステップS306に処理を移行する。
(Step S305)
In step S305, the sub CPU 401 performs image control processing. Specifically, the sub CPU 401 controls the liquid crystal display device 31 based on the image data determined by the image data determination process of step S302-3-4 described later. Then, when the process of step S305 ends, the process proceeds to step S306.

(ステップS306)
ステップS306において、サブCPU401は、各種スイッチ検出時処理を行う。具体的には、サブCPU401は、演出ボタンセンサ21sが演出ボタン21の操作を検出した場合や、十字キーセンサ22sが十字キー22の操作を検出した場合に所定の処理を実行する処理を行う。そして、ステップS306の処理が終了すると、ステップS302に処理を移行する。
(Step S306)
In step S306, the sub CPU 401 performs various switch detection processing. Specifically, the sub CPU 401 performs a process of executing a predetermined process when the effect button sensor 21s detects an operation of the effect button 21 or when the cross key sensor 22s detects an operation of the cross key 22. Then, when the process of step S306 ends, the process proceeds to step S302.

(メイン制御基板通信処理)
次に、図30に基づいて、図29のステップS302の処理により行われるメイン制御基板通信処理についての説明を行う。なお、図30はメイン制御基板通信処理のサブルーチンを示す図である。
(Main control board communication process)
Next, based on FIG. 30, the main control board communication process performed by the process of step S302 in FIG. 29 will be described. FIG. 30 is a diagram showing a subroutine of main control board communication processing.

(ステップS302−1)
ステップS302−1において、サブCPU401は、異なるコマンドを受信したか否かを判定する処理を行う。具体的には、サブCPU401は、メイン制御基板300から受信したコマンドが前回受信したコマンドと異なるコマンドであるか否かを判定する処理を行う。そして、異なるコマンドを受信したと判定された場合には(ステップS302−1=Yes)、ステップS302−2に処理を移行し、異なるコマンドを受信していないと判定された場合には(ステップS302−1=No)、メイン制御基板通信処理のサブルーチンを終了し、サブ制御基板におけるメイン処理のステップS303に処理を移行する。
(Step S302-1)
In step S302-1, the sub CPU 401 performs processing to determine whether a different command has been received. Specifically, the sub CPU 401 performs processing to determine whether the command received from the main control board 300 is a command different from the command received last time. When it is determined that a different command has been received (step S302-1 = Yes), the process proceeds to step S302-2, and when it is determined that a different command has not been received (step S302). -1 = No), the subroutine of the main control board communication process is ended, and the process shifts to step S303 of the main process in the sub control board.

(ステップS302−2)
ステップS302−2において、サブCPU401は、遊技情報格納処理を行う。具体的には、サブCPU401は、前回送信されたコマンドと異なるコマンドに基づいて、遊技情報を作成し、サブRAM403の所定の格納領域に格納する処理を行う。そして、ステップS302−2の処理が終了すると、ステップS302−3に処理を移行する。
(Step S302-2)
In step S302-2, the sub CPU 401 performs game information storage processing. Specifically, the sub CPU 401 creates game information based on a command different from the previously transmitted command, and stores the game information in a predetermined storage area of the sub RAM 403. Then, when the process of step S302-2 ends, the process proceeds to step S302-3.

(ステップS302−3)
ステップS302−3において、サブCPU401は、後で図31を用いて詳述するコマンド解析処理を行う。当該処理において、サブCPU401は、ステップS302−2の処理により格納した遊技情報に基づいた処理を実行する。そして、ステップS302−3の処理が終了すると、メイン制御基板通信処理のサブルーチンを終了し、サブ制御基板におけるメイン処理のステップS303に処理を移行する。
(Step S302-3)
In step S302-3, the sub CPU 401 performs command analysis processing which will be described later in detail with reference to FIG. In the process, the sub CPU 401 executes a process based on the game information stored in the process of step S302-2. Then, when the process of step S302-3 ends, the subroutine of the main control board communication process ends, and the process proceeds to step S303 of the main process in the sub control board.

(コマンド解析処理)
次に、図31に基づいて、図30のステップS302−3の処理により行われるコマンド解析処理についての説明を行う。なお、図31はコマンド解析処理のサブルーチンを示す図である。
(Command analysis process)
Next, a command analysis process performed by the process of step S302-3 in FIG. 30 will be described based on FIG. FIG. 31 is a diagram showing a subroutine of command analysis processing.

(ステップS302−3−1)
ステップS302−3−1において、サブCPU401は、サブ演出決定処理を行う。具体的には、サブCPU401は、メイン制御基板300により受信したコマンドに基づいて、メイン制御基板300により管理される状態を特定し、サブROM402に設けられている演出決定テーブル(図10参照)を選択する処理を行う。そして、サブCPU401は、選択された演出決定テーブルに基づいて、液晶表示装置31等により実行される演出を決定する処理を行う。ここで、例えば、メイン制御基板300によりエラーコマンドを受信した場合には、対応するエラー処理を行う。これにより、後述するステップS302−3−2、ステップS302−3−3、ステップS302−3−4の処理により、所定のLEDデータ、サウンドデータ、画像データ等が決定され、ステップS303、ステップS304、ステップS305の処理において、スピーカ33、LED32、液晶表示装置31等から所定のエラー報知が行われる。そして、ステップS302−3−1の処理が終了すると、ステップS302−3−2に処理を移行する。
(Step S302-3-1)
In step S302-3-1, the sub CPU 401 performs sub effect determination processing. Specifically, the sub CPU 401 specifies the state managed by the main control board 300 based on the command received by the main control board 300, and the effect determination table (see FIG. 10) provided in the sub ROM 402. Perform processing to select. Then, the sub CPU 401 performs a process of determining an effect to be executed by the liquid crystal display device 31 or the like based on the selected effect determination table. Here, for example, when the main control board 300 receives an error command, the corresponding error processing is performed. Thereby, predetermined LED data, sound data, image data and the like are determined by the processing of step S302-3-2, step S302-3-3 and step S302-3-4, which will be described later, and step S303, step S304, In the process of step S305, a predetermined error notification is performed from the speaker 33, the LED 32, the liquid crystal display device 31, and the like. Then, when the process of step S302-3-1 ends, the process proceeds to step S302-3-2.

(ステップS302−3−2)
ステップS302−3−2において、サブCPU401は、LEDデータ決定処理を行う。具体的には、サブCPU401は、ステップS302−3−1のサブ演出決定処理により決定された演出に対応するLEDデータを決定する処理を行う。そして、ステップS302−3−2の処理が終了すると、ステップS302−3−3に処理を移行する。
(Step S302-3-2)
In step S302-3-2, the sub CPU 401 performs LED data determination processing. Specifically, the sub CPU 401 performs a process of determining LED data corresponding to the effect determined by the sub effect determination process of step S302-3-1. Then, when the process of step S302-3-2 ends, the process proceeds to step S302-3-3.

(ステップS302−3−3)
ステップS302−3−3において、サブCPU401は、サウンドデータ決定処理を行う。具体的には、サブCPU401は、ステップS302−3−1のサブ演出決定処理により決定された演出に対応するサウンドデータを決定する処理を行う。そして、ステップS302−3−3の処理が終了すると、ステップS302−3−4に処理を移行する。
(Step S302-3-3)
In step S302-3-3, the sub CPU 401 performs sound data determination processing. Specifically, the sub CPU 401 performs a process of determining sound data corresponding to the effect determined by the sub effect determination process of step S302-3-1. Then, when the process of step S302-3-3 ends, the process proceeds to step S302-3-4.

(ステップS302−3−4)
ステップS302−3−4において、サブCPU401は、画像データ決定処理を行う。具体的には、サブCPU401は、ステップS302−3−1のサブ演出決定処理により決定された演出に対応する画像データを決定する処理を行う。そして、ステップS302−3−4の処理が終了すると、コマンド解析処理のサブルーチンを終了し、サブ制御基板におけるメイン処理のステップS303に処理を移行する。
(Step S302-3-4)
In step S302-3-4, the sub CPU 401 performs image data determination processing. Specifically, the sub CPU 401 performs a process of determining image data corresponding to the effect determined by the sub effect determination process of step S302-3-1. Then, when the process of step S302-3-4 is completed, the subroutine of the command analysis process is ended, and the process proceeds to step S303 of the main process in the sub control board.

なお、本実施の形態においては、メインCPU301は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムが実行する第1制御処理から、第2記憶領域2200の第2制御領域2210に記憶されたプログラムが実行する第2制御処理に移行する際に、第2制御処理において、レジスタの値を転送し、第1制御処理に戻る前に、上記レジスタの値を復帰させてレジスタの値を保護するようにしているが、第1制御処理から第2制御処理に移行する前に、レジスタの値を転送し、第1制御処理に戻った際に、上記レジスタの値を復帰させてレジスタの値を保護するようにしてもよい。   Note that, in the present embodiment, the main CPU 301 transfers the first control process executed by the program stored in the first control area 2110 of the first storage area 2100 to the second control area 2210 of the second storage area 2200. When shifting to the second control process executed by the stored program, in the second control process, the value of the register is transferred, and before returning to the first control process, the value of the register is restored and the value of the register is restored. However, before transferring from the first control process to the second control process, the value of the register is transferred, and when the process returns to the first control process, the value of the register is restored and the register The value of may be protected.

以上のように、本実施の形態における遊技機1は、第1記憶領域2100の第1制御領域2110にあるプログラムが更新した第1ワーク領域2160上のデータを、第2記憶領域2200の第2制御領域2210にあるプログラムが変更することなく、また、第2記憶領域2200の第2制御領域2210にあるプログラムが更新した第2ワーク領域2260上のデータを、第1記憶領域2100の第1制御領域2110にあるプログラムが変更することがないので、第1制御領域2110上のプログラムと、第2制御領域2210上のプログラムと、を完全に独立した制御として扱うことができるとともに、互いが更新した情報の参照は行うことができ、他方の制御領域にあるプログラムを互いに利用しあうこともできる。さらに、プログラムの格納領域を分散させることができ、例えば、第1記憶領域2100に容量の制約がある場合においても、第2記憶領域2200を利用して新たな機能の追加等を行うことができる。   As described above, the gaming machine 1 in the present embodiment is configured such that the data on the first work area 2160 updated by the program in the first control area 2110 of the first storage area 2100 is replaced with the second data of the second storage area 2200. The data in the second work area 2260 updated by the program in the second control area 2210 of the second storage area 2200 without changing the program in the control area 2210 is also referred to as the first control of the first storage area 2100. Since the program in the area 2110 never changes, the program in the first control area 2110 and the program in the second control area 2210 can be treated as completely independent control, and they are updated with each other. Information can be referenced, and programs in the other control area can be used mutually. Furthermore, the storage area of the program can be dispersed, and, for example, even when the first storage area 2100 has a capacity limitation, the second storage area 2200 can be used to add a new function or the like. .

さらに、本実施の形態における遊技機1は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムが、第2記憶領域2200の第2制御領域2210に記憶されたプログラムを呼び出して、第2制御領域2210に記憶されたプログラムの終了を持って第1制御領域2110に記憶されたプログラムを再開するので、所定の処理を第2記憶領域2200に移して、必要なときに当該処理を利用することができるので、第1記憶領域2100の記憶容量を圧迫せずに、新たな制御を追加することができる。   Furthermore, in the gaming machine 1 according to the present embodiment, the program stored in the first control area 2110 of the first storage area 2100 calls the program stored in the second control area 2210 of the second storage area 2200, Since the program stored in the first control area 2110 is resumed with the end of the program stored in the second control area 2210, the predetermined process is transferred to the second storage area 2200, and the process is performed when necessary. As it can be used, new control can be added without squeezing the storage capacity of the first storage area 2100.

さらに、本実施の形態における遊技機1は、第2記憶領域2200の第2制御領域2210に、遊技機1に関する異常を検出するための処理の少なくとも一部を構成するプログラムを記憶している。これにより、第1記憶領域2100の容量を圧迫せずに、異常を検出するための処理を容易に追加することができる。   Furthermore, in the second control area 2210 of the second storage area 2200, the game machine 1 according to the present embodiment stores a program that constitutes at least a part of a process for detecting an abnormality related to the game machine 1. Thus, processing for detecting an abnormality can be easily added without compressing the capacity of the first storage area 2100.

例えば、本実施の形態における遊技機1は、第2記憶領域2200の第2制御領域2210に、セレクターセンサ14sによる検知結果に基づくメダルの投入に関する異常を検出するための処理の少なくとも一部を構成するプログラムを記憶している。   For example, the gaming machine 1 according to the present embodiment configures at least a part of processing for detecting an abnormality related to the insertion of a medal based on the detection result by the selector sensor 14s in the second control area 2210 of the second storage area 2200. Remembers the program that

また、本実施の形態における遊技機1は、第2記憶領域2200の第2制御領域2210に、ホッパーセンサ202sによる検知結果に基づくメダルの払い出しに関する異常を検出するための処理の少なくとも一部を構成するプログラムを記憶している。   In addition, the gaming machine 1 in the present embodiment configures at least a part of the process for detecting an abnormality related to the payout of the medal based on the detection result by the hopper sensor 202s in the second control area 2210 of the second storage area 2200. Remembers the program that

さらに、本実施の形態における遊技機1は、第2記憶領域2200の第2制御領域2210に、第1記憶領域2100の第1制御領域2110に記憶された第1制御プログラムに呼び出されることにより実行され、終了後に上記第1制御プログラムに復帰させる第2制御プログラムを記憶し、第1制御プログラムから第2制御プログラムが呼び出される際に、演算処理によるデータが格納されたレジスタの値を保護している。これにより、第1制御プログラムの実行中の第2制御プログラムの割り込みにより、第1制御プログラムの演算中の値が保護され、復帰時にそのまま演算を続行することができる。   Furthermore, the gaming machine 1 in the present embodiment is executed by being called by the first control program stored in the first control area 2110 of the first storage area 2100 in the second control area 2210 of the second storage area 2200. And store the second control program to be restored to the first control program after completion, and protect the value of the register in which the data by arithmetic processing is stored when the second control program is called from the first control program. There is. As a result, the value under calculation of the first control program is protected by the interruption of the second control program during execution of the first control program, and the calculation can be continued as it is when returning.

また、本実施の形態における遊技機1は、第2記憶領域2200の第2制御領域2210に、第1記憶領域2100の第1制御領域2110に記憶された第1制御プログラムに呼び出されることにより実行され、終了後に上記第1制御プログラムに復帰させる第2制御プログラムを記憶し、第1制御プログラムから第2制御プログラムが呼び出される際に、演算処理によるデータが格納されたレジスタの値を退避させた後、このレジスタの値をクリアしている。これにより、第2制御プログラムを実行する際に、無用に第1制御プログラムの処理により設定されたレジスタの値が引き継がれることがなく、第2制御プログラムの独立性を確保することができる。   In addition, the gaming machine 1 in the present embodiment is executed by being called by the first control program stored in the first control area 2110 of the first storage area 2100 in the second control area 2210 of the second storage area 2200. Stored the second control program to be restored to the first control program after completion, and saved the value of the register in which the data by the arithmetic processing is stored when the second control program is called from the first control program After that, I have cleared the value of this register. Thus, when the second control program is executed, the value of the register set by the processing of the first control program is not unnecessarily taken over, and the independence of the second control program can be secured.

さらに、本実施の形態における遊技機1は、第2記憶領域2200の第2制御領域2210に、第1記憶領域2100の第1制御領域2110に記憶された第1制御プログラムに呼び出されることにより実行され、終了後に上記第1制御プログラムに復帰させる第2制御プログラムを記憶し、第1記憶領域2100の第1制御領域2110には、上記第2制御プログラムを呼び出すためのアドレスが予め規定された第1制御プログラムが記憶されている。   Furthermore, the gaming machine 1 in the present embodiment is executed by being called by the first control program stored in the first control area 2110 of the first storage area 2100 in the second control area 2210 of the second storage area 2200. And stores a second control program to be restored to the first control program after completion, and the first control area 2110 of the first storage area 2100 has a predetermined address for calling the second control program. 1 Control program is stored.

さらに、本実施の形態における遊技機1は、第2記憶領域2200の第2制御領域2210に記憶された第2制御プログラムが、第1記憶領域2100の第1制御領域2110に記憶された第1制御プログラムを、呼び出すことはない。   Furthermore, in the gaming machine 1 according to the present embodiment, the second control program stored in the second control area 2210 of the second storage area 2200 is stored in the first control area 2110 of the first storage area 2100. It does not call the control program.

さらに、本実施の形態における遊技機1は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによって実行される第1制御においては参照され、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによって実行される第2制御においては参照されない、外部の装置からデータの入力を行う入力ポートを備えている。   Furthermore, the gaming machine 1 in the present embodiment is referred to in the first control executed by the program stored in the first control area 2110 of the first storage area 2100, and is referred to the second control area of the second storage area 2200. It has an input port for inputting data from an external device which is not referred to in the second control executed by the program stored in 2210.

また、本実施の形態における遊技機1は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによって実行される第1制御においては更新され、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによって実行される第2制御においては更新されない、外部の装置にデータの出力を行う出力ポートを備えている。   In addition, the gaming machine 1 in the present embodiment is updated in the first control executed by the program stored in the first control area 2110 of the first storage area 2100, and is updated in the second control area of the second storage area 2200. An output port for outputting data to an external device which is not updated in the second control executed by the program stored in 2210 is provided.

さらに、本実施の形態における遊技機1は、第1記憶領域2100の第1制御領域2110に、入力ポートの情報を第1ワーク領域2160に記憶させる第1制御プログラムを記憶し、第2記憶領域2200の第2制御領域2210に、第1ワーク領域2160に記憶された入力ポートの情報を参照する第2制御プログラムを記憶している。   Furthermore, the gaming machine 1 according to the present embodiment stores the first control program for storing the information of the input port in the first work area 2160 in the first control area 2110 of the first storage area 2100, and the second storage area In a second control area 2210 of 2200, a second control program that refers to the information of the input port stored in the first work area 2160 is stored.

(第2の実施の形態)
次に、第2の実施の形態における遊技機について、説明する。なお、本実施の形態における遊技機は、第1の実施の形態における遊技機1と基本的な構成および制御は同様である。したがって、本実施の形態においては、第1の実施の形態における遊技機1と異なる点を中心に説明し、同一の構成については同一の符号を付し、説明は省略し、また、同一の制御についても説明は省略する。
Second Embodiment
Next, the gaming machine according to the second embodiment will be described. The gaming machine in the present embodiment is the same in basic configuration and control as the gaming machine 1 in the first embodiment. Therefore, in the present embodiment, differences from the gaming machine 1 according to the first embodiment will be mainly described, and the same configuration will be denoted by the same reference numeral, the description will be omitted, and the same control The description is omitted also for.

(メインCPU301a)
メインCPU301aは、メイン制御基板300に設けられている。また、メインCPU301aは、第1の実施の形態のメインCPU301と同様に、メインROM302に記憶されているプログラムを読み込み、遊技の進行に合わせて所定の演算処理を行うことにより、ステータス基板100、リール制御基板150、電源基板200、サブ制御基板400に対して所定の信号を送信する。
(Main CPU 301a)
The main CPU 301 a is provided on the main control board 300. Further, the main CPU 301a reads the program stored in the main ROM 302 and performs predetermined arithmetic processing in accordance with the progress of the game, similarly to the main CPU 301 of the first embodiment, whereby the status board 100 and the reels are processed. Predetermined signals are transmitted to the control substrate 150, the power supply substrate 200, and the sub control substrate 400.

メインCPU301aの概略模式図を、図45に示す。図45に示すように、メインCPU301aは、演算装置1100と、制御装置1201と、レジスタ群1301と、クロックジェネレータ1400と、を備え、それぞれバス1500で接続されている。   A schematic diagram of the main CPU 301a is shown in FIG. As shown in FIG. 45, the main CPU 301a includes an arithmetic unit 1100, a control unit 1201, a register group 1301, and a clock generator 1400, which are connected to one another by a bus 1500.

演算装置1100およびクロックジェネレータ1400は、第1の実施の形態における演算装置1100およびクロックジェネレータ1400と同様のものである。   The arithmetic unit 1100 and the clock generator 1400 are similar to the arithmetic unit 1100 and the clock generator 1400 in the first embodiment.

レジスタ群1301は、第1の実施の形態におけるレジスタ群1300と同様に、Aレジスタ1311、Bレジスタ1312、Cレジスタ1313、Dレジスタ1314、Eレジスタ1315、Fレジスタ1316、Hレジスタ1317、Lレジスタ1318、SPレジスタ1319、PCレジスタ1320を有しており、さらに、A#レジスタ1321、B#レジスタ1322、C#レジスタ1323、D#レジスタ1324、E#レジスタ1325、F#レジスタ1326、H#レジスタ1327、L#レジスタ1328を有している。   Similar to the register group 1300 in the first embodiment, the register group 1301 includes an A register 1311, a B register 1312, a C register 1313, a D register 1314, an E register 1315, an F register 1316, an H register 1317, and an L register 1318. , SP register 1319 and PC register 1320, and further, A # register 1321, B # register 1322, C # register 1323, D # register 1324, E # register 1325, F # register 1326 and H # register 1327. , L # register 1328.

Aレジスタ1311〜Lレジスタ1318、SPレジスタ1319、PCレジスタ1320は、第1の実施の形態と同様のものである。
A#レジスタ1321、B#レジスタ1322、C#レジスタ1323、D#レジスタ1324、E#レジスタ1325、F#レジスタ1326、H#レジスタ1327、L#レジスタ1328は、それぞれ1バイト(8ビット)の記憶容量を持っている。なお、B#レジスタ1322とC#レジスタ1323、D#レジスタ1324とE#レジスタ1325、H#レジスタ1327とL#レジスタ1328、A#レジスタ1321とF#レジスタ1326も、2つを繋げて2バイト(16ビット)として扱うことができる。
The A register 1311 to the L register 1318, the SP register 1319, and the PC register 1320 are the same as those in the first embodiment.
A # register 1321, B # register 1322, C # register 1323, D # register 1324, E # register 1325, F # register 1326, H # register 1327 and L # register 1328 each store 1 byte (8 bits) I have a capacity. Note that B # register 1322 and C # register 1323, D # register 1324 and E # register 1325, H # register 1327 and L # register 1328, and A # register 1321 and F # register 1326 are also connected together to form 2 bytes. It can be treated as (16 bits).

制御装置1201は、第1の実施の形態における制御装置1200と同様に、レジスタ群1301の値を用いて、演算装置1100に演算をさせるものである。また、制御装置1201は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによる第1制御処理を実行する場合においては、Aレジスタ1311〜Lレジスタ1318を用い、A#レジスタ1321〜L#レジスタ1328を使用せず、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによる第2制御処理を実行する場合においては、A#レジスタ1321〜L#レジスタ1328を用い、Aレジスタ1311〜Lレジスタ1318を使用せず、処理を実行するものである。   Similar to the control device 1200 in the first embodiment, the control device 1201 causes the computing device 1100 to perform computation using the values of the register group 1301. In addition, when the control device 1201 executes the first control processing by the program stored in the first control area 2110 of the first storage area 2100, the control apparatus 1201 uses the A register 1311 to L register 1318 and the A # register 1321 to When executing the second control processing by the program stored in the second control area 2210 of the second storage area 2200 without using the L # register 1328, the A # register 1321 to the L # register 1328 are used to The processing is executed without using the registers 1311 to L register 1318.

さらに、本実施の形態においては、入力ポートにおいても、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによる第1制御処理を実行する場合において、参照される入力ポートと、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによる第2制御処理を実行する場合において、参照される入力ポートとは、それぞれが別物となっている。例えば、スイッチ(BETスイッチ7sw、MAXBETスイッチ8sw、精算スイッチ9sw、スタートスイッチ10sw、左停止スイッチ11sw、中停止スイッチ12sw、右停止スイッチ13sw)等の信号が入力される入力ポートは、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによる第1制御処理を実行する場合において参照され、セレクターセンサ14s(メダル投入検知センサ61、第1メダル通過センサ62、第2メダル通過センサ63)、ホッパーセンサ202s(払出センサ92)等の信号が入力される入力ポートは、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによる第2制御処理を実行する場合において参照される。   Furthermore, in the present embodiment, also in the input port, when the first control processing by the program stored in the first control area 2110 of the first storage area 2100 is executed, the input port referred to and the second When the second control process by the program stored in the second control area 2210 of the storage area 2200 is executed, the input ports to be referred to are different from each other. For example, input ports to which signals such as switches (BET switch 7sw, MAX BET switch 8sw, settlement switch 9sw, start switch 10sw, left stop switch 11sw, middle stop switch 12sw, right stop switch 13sw) are input are stored in the first storage area. Reference is made when the first control processing according to the program stored in the first control area 2110 of 2100 is executed, the selector sensor 14s (the medal insertion detection sensor 61, the first medal passage sensor 62, the second medal passage sensor 63), An input port to which a signal such as a hopper sensor 202s (dispensing sensor 92) is input is referred to when executing a second control process by a program stored in the second control area 2210 of the second storage area 2200.

また、本実施の形態においては、出力ポートにおいても、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによる第1制御処理を実行する場合において、更新される出力ポートと、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによる第2制御処理を実行する場合において、更新される出力ポートとは、それぞれが別物となっている。例えば、表示器(貯留枚数表示器15、払出枚数表示器16)、モータ(左ステッピングモータ151、中ステッピングモータ152、右ステッピングモータ153、ホッパーモータ91)等に信号が出力される出力ポートは、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによる第1制御処理を実行する場合において更新され、試験装置における試験のために用いられる試験信号が出力される出力ポートは、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによる第2制御処理を実行する場合において更新される。
すなわち、本実施の形態においては、第1の実施の形態における入出力ポート306が、第1制御処理用の入出力ポートと、第2制御処理用の入出力ポートと、に独立している。
Further, in the present embodiment, also in the output port, when the first control processing by the program stored in the first control area 2110 of the first storage area 2100 is executed, the output port to be updated, and the second When executing the second control processing by the program stored in the second control area 2210 of the storage area 2200, the output ports to be updated are different from each other. For example, the output port from which a signal is output to a display (stored number indicator 15, discharged number indicator 16), motor (left stepping motor 151, middle stepping motor 152, right stepping motor 153, hopper motor 91), etc. When the first control process by the program stored in the first control area 2110 of the first storage area 2100 is executed, the output port which is updated and which outputs the test signal used for the test in the test apparatus is the second output port It is updated in the case of executing the second control processing by the program stored in the second control area 2210 of the storage area 2200.
That is, in the present embodiment, the input / output port 306 in the first embodiment is independent of the input / output port for the first control processing and the input / output port for the second control processing.

上述のように、本実施の形態においては、第2記憶領域2200の第2制御領域2210に記憶されたプログラムにより実行される第2制御処理では、A#レジスタ1321〜L#レジスタ1328が使用され、Aレジスタ1311〜Lレジスタ1318が使用されない。したがって、第2メダル投入チェック処理、メダル通過監視処理、第2メダル払出処理、第2記憶領域割込処理、第2記憶領域入力エラーチェック処理、投入センサエラーチェック処理、払出センサエラーチェック処理においては、A#レジスタ1321〜L#レジスタ1328が使用され、Aレジスタ1311〜Lレジスタ1318が使用されずに処理が実行される。   As described above, in the second embodiment, the A # register 1321 to the L # register 1328 are used in the second control process executed by the program stored in the second control area 2210 of the second storage area 2200. , A register 1311 to L register 1318 are not used. Therefore, in the second medal insertion check processing, medal passage monitoring processing, second medal payout processing, second storage area interrupt processing, second storage area input error check processing, insertion sensor error check processing, and payout sensor error check processing. , A # registers 1321 to L # registers 1328 are used, and the process is executed without using the A registers 1311 to L registers 1318.

また、本実施の形態において、図15に示す第2メダル投入チェック処理においては、ステップS103−3−3−1のレジスタ退避処理を行う必要はない。また、ステップS103−3−3−1のレジスタ退避処理を行わないことにより、ステップS103−3−3−10のレジスタ復帰処理も行う必要はない。   Further, in the present embodiment, in the second medal insertion check process shown in FIG. 15, it is not necessary to perform the register save process of step S103-3-3-1. Further, since the register save process of step S103-3-3-1 is not performed, it is not necessary to perform the register return process of step S103-3-3-10.

同様に、図20に示す第2メダル払出処理においても、ステップS115−7−7−1のレジスタ退避処理を行う必要はない。また、ステップS115−7−7−1のレジスタ退避処理を行わないことにより、ステップS115−7−7−12のレジスタ復帰処理も行う必要はない。   Similarly, also in the second medal payout process shown in FIG. 20, it is not necessary to perform the register save process of step S115-7-7-1. Further, since the register saving process of step S115-7-7-1 is not performed, it is not necessary to perform the register restoration process of step S115-7-7-12.

さらに、図25に示す第2記憶領域割込処理においても、同様に、ステップS210−1のレジスタ退避処理およびステップS210−4のレジスタ復帰処理を行う必要はない。   Further, also in the second storage area interrupt process shown in FIG. 25, it is not necessary to perform the register save process of step S210-1 and the register return process of step S210-4.

また、本実施の形態においては、第1の実施の形態における図16に示すメダル通過監視処理のステップS103−3−3−3−1において行う、第1メダル通過センサ62および第2メダル通過センサ63の信号の状態を参照する処理において、以下の処理を行う。すなわち、メインCPU301は、「第1記憶領域2100の第1ワーク領域2160におけるメダル通過センサ値記憶領域の値(第1メダル通過センサ状態値および第2メダル通過センサ状態値)を参照する」代わりに、「第1メダル通過センサ62および第2メダル通過センサ63の信号値に対応する入力ポートの値を参照し」、今回第1メダル通過センサ状態値および今回第2メダル通過センサ状態値として、第2記憶領域2200の第2ワーク領域2260におけるメダル通過センサ値記憶領域に記憶する。   Further, in the present embodiment, the first medal passage sensor 62 and the second medal passage sensor performed in step S103-3-3-3-1 of the medal passage monitoring process shown in FIG. 16 in the first embodiment. In the process of referring to the signal state of 63, the following process is performed. That is, the main CPU 301 refers to “refers to the value of the medal passing sensor value storage area in the first work area 2160 of the first storage area 2100 (first medal passing sensor state value and second medal passing sensor state value)”. , “With reference to the value of the input port corresponding to the signal value of the first medal passage sensor 62 and the second medal passage sensor 63”, as the current first medal passage sensor state value and the current second medal passage sensor state value, 2) The medal passing sensor value storage area in the second work area 2260 of the storage area 2200 is stored.

さらに、本実施の形態においては、第1の実施の形態における図23、図24に示す割込処理のステップS202において行う、入力ポート読込処理において、第2制御領域2210に記憶されたプログラムで参照される入力ポートの情報を、入力ポートから読み出して第1記憶領域2100の第1ワーク領域2160に記憶させておく処理は行う必要がない。   Furthermore, in the present embodiment, reference is made to the program stored in the second control area 2210 in the input port reading process performed in step S202 of the interrupt process shown in FIGS. 23 and 24 in the first embodiment. It is not necessary to read out the input port information to be stored from the input port and store the information in the first work area 2160 of the first storage area 2100.

さらに、本実施の形態においては、第1の実施の形態における図27に示す投入センサエラーチェック処理のステップS403−2−9において行う、第1メダル通過センサ62の信号がONであるか否かを判定する処理において、以下の処理を行う。すなわち、メインCPU301は、「第1記憶領域2100の第1ワーク領域2160に記憶された第1メダル通過センサ状態値を参照する」代わりに、「第1メダル通過センサ62の信号値に対応する入力ポートの値を参照して」、第1メダル通過センサ62の信号がONであるか否かを判定する。   Furthermore, in the present embodiment, whether or not the signal of the first medal passage sensor 62 is ON performed in step S403-2-9 of the insertion sensor error check process shown in FIG. 27 in the first embodiment. The following process is performed in the process of determining. That is, instead of “referring to the first medal passage sensor state value stored in the first work area 2160 of the first storage area 2100”, the main CPU 301 “input corresponding to the signal value of the first medal passage sensor 62”. With reference to the value of the port, it is determined whether or not the signal of the first medal passage sensor 62 is ON.

また、同様に、本実施の形態においては、第1の実施の形態における投入センサエラーチェック処理のステップS403−2−10において行う、第2メダル通過センサ63の信号がONであるか否かを判定する処理において、以下の処理を行う。すなわち、メインCPU301は、「第1記憶領域2100の第1ワーク領域2160に記憶された第2メダル通過センサ状態値を参照する」代わりに、「第2メダル通過センサ63の信号値に対応する入力ポートの値を参照して」、第2メダル通過センサ63の信号がONであるか否かを判定する。   Similarly, in the present embodiment, whether or not the signal of the second medal passage sensor 63 is ON performed in step S403-2-10 of the insertion sensor error check process in the first embodiment In the determination processing, the following processing is performed. That is, instead of “referring to the second medal passage sensor state value stored in the first work area 2160 of the first storage area 2100”, the main CPU 301 “inputs corresponding to the signal value of the second medal passage sensor 63”. With reference to the value of the port, it is determined whether the signal of the second medal passage sensor 63 is ON.

また、同様に、本実施の形態においては、第1の実施の形態における投入センサエラーチェック処理のステップS403−2−12において行う、メダル投入検知センサ61の信号がONであるか否かを判定する処理において、以下の処理を行う。すなわち、メインCPU301は、「第1記憶領域2100の第1ワーク領域2160に記憶されたメダル投入検知センサ状態値を参照する」代わりに、「メダル投入検知センサ61の信号値に対応する入力ポートの値を参照して」、メダル投入検知センサ61の信号がONであるか否かを判定する。   Similarly, in the present embodiment, it is determined whether or not the signal of the medal insertion detection sensor 61 is ON, which is performed in step S403-2-12 of the insertion sensor error check process in the first embodiment. In the processing to be performed, the following processing is performed. That is, instead of “referring to the medal insertion detection sensor state value stored in the first work area 2160 of the first storage area 2100”, the main CPU 301 “into the input port corresponding to the signal value of the medal insertion detection sensor 61”. With reference to the value, it is determined whether or not the signal of the medal insertion detection sensor 61 is ON.

さらに、本実施の形態においては、第1の実施の形態における図28に示す払出センサエラーチェック処理のステップS403−3−2において行う、払出センサ92の信号がONであるか否かを判定する処理において、以下の処理を行う。すなわち、メインCPU301は、「第1記憶領域2100の第1ワーク領域2160に記憶された払出センサ状態値を参照する」代わりに、「払出センサ92の信号値に対応する入力ポートの値を参照して」、払出センサ92の信号がONであるか否かを判定する。   Furthermore, in the present embodiment, it is determined whether or not the signal of the payout sensor 92 is ON, which is performed in step S403-3-2 of the payout sensor error check process shown in FIG. 28 in the first embodiment. In the processing, the following processing is performed. That is, the main CPU 301 refers to the value of the input port corresponding to the signal value of the payout sensor 92 instead of referring to the payout sensor state value stored in the first work area 2160 of the first storage area 2100. It is determined whether the signal of the payout sensor 92 is ON.

以上のように、本実施の形態における遊技機は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムにより実行される第1制御において演算処理を行う際に使用され、第2記憶領域2200の第2制御領域2210に記憶されたプログラムにより実行される第2制御において演算処理を行う際に使用されないAレジスタ1311〜Lレジスタ1318と、第2記憶領域2200の第2制御領域2210に記憶されたプログラムにより実行される第2制御において演算処理を行う際に使用され、第1記憶領域2100の第1制御領域2110に記憶されたプログラムにより実行される第1制御において演算処理を行う際に使用されないA#レジスタ1321〜L#レジスタ1328と、を備えている。これにより、第1制御プログラムと、第2制御プログラムとが、互いに干渉してしまうことがなく、独立して実行させることができる。   As described above, the gaming machine according to the present embodiment is used when performing arithmetic processing in the first control executed by the program stored in the first control area 2110 of the first storage area 2100, and the second storage In the second control area 2210 of the second storage area 2200, the A register 1311 to the L register 1318 not used when performing arithmetic processing in the second control executed by the program stored in the second control area 2210 of the area 2200. Used when performing arithmetic processing in the second control executed by the stored program, when performing arithmetic processing in the first control executed by the program stored in the first control area 2110 of the first storage area 2100 And an A # register 1321 to an L # register 1328 which are not used. Thereby, the first control program and the second control program do not interfere with each other, and can be independently executed.

さらに、本実施の形態における遊技機は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによって実行される第1制御においては参照され、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによって実行される第2制御においては参照されない、入力ポートと、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによって実行される第2制御においては参照され、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによって実行される第1制御においては参照されない、入力ポートと、を備えている。   Furthermore, the gaming machine in the present embodiment is referred to in the first control executed by the program stored in the first control area 2110 of the first storage area 2100, and is referred to the second control area 2210 of the second storage area 2200. And the second control executed by the program stored in the second control area 2210 of the second storage area 2200 and not referred to in the second control executed by the program stored in the And an input port which is not referred to in the first control executed by the program stored in the first control area 2110 of the first storage area 2100.

また、本実施の形態における遊技機は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによって実行される第1制御においては更新され、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによって実行される第2制御においては更新されない、出力ポートと、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによって実行される第2制御においては更新され、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによって実行される第1制御においては更新されない、出力ポートと、を備えている。これにより、第1制御と、第2制御とで、相手の更新した出力ポートの内容を変更してしまうことがなく、双方の独立性を担保することができる。   Further, the gaming machine in the present embodiment is updated in the first control executed by the program stored in the first control area 2110 of the first storage area 2100, and is updated in the second control area 2210 of the second storage area 2200. And the second control executed by the program stored in the second control area 2210 of the second storage area 2200 is not updated in the second control executed by the program stored in the second And an output port which is not updated in the first control executed by the program stored in the first control area 2110 of the first storage area 2100. As a result, the contents of the other party's updated output port are not changed by the first control and the second control, and the independence of both can be secured.

なお、本実施の形態においては、Aレジスタ1311〜Lレジスタ1318を、第1記憶領域2100の第1制御領域2110に記憶されたプログラムにより実行される第1制御において演算処理を行う際に使用され、第2記憶領域2200の第2制御領域2210に記憶されたプログラムにより実行される第2制御において演算処理を行う際に使用されない第1制御処理用の専用レジスタとし、A#レジスタ1321〜L#レジスタ1328を、第2記憶領域2200の第2制御領域2210に記憶されたプログラムにより実行される第2制御において演算処理を行う際に使用され、第1記憶領域2100の第1制御領域2110に記憶されたプログラムにより実行される第1制御において演算処理を行う際に使用されない第2制御処理用の専用レジスタとしたが、これに限らず、共用レジスタとしながら、第2制御処理を行う場合には、第1制御処理で使用していたレジスタを使用できないようにしてもよい。   In the present embodiment, A registers 1311 to L registers 1318 are used when performing arithmetic processing in the first control executed by the program stored in first control area 2110 of first storage area 2100. A # register 1321 to L # is a dedicated register for the first control process that is not used when performing arithmetic processing in the second control executed by the program stored in the second control area 2210 of the second storage area 2200. The register 1328 is used when performing arithmetic processing in the second control executed by a program stored in the second control area 2210 of the second storage area 2200, and stored in the first control area 2110 of the first storage area 2100. For second control processing not used when performing arithmetic processing in the first control executed by the selected program Although the dedicated registers, not limited to this, while a shared register, in the case of performing the second control process, may not be used registers that were used in the first control process.

例えば、第1制御処理でも第2制御処理でも使用可能なAレジスタ〜Lレジスタを有し、第1制御処理において、AレジスタおよびBレジスタを使用中に第2制御処理に移行した場合には、第2制御処理においては、AレジスタおよびBレジスタに対するアクセスを不可とした上で、Cレジスタ〜Lレジスタを使用対象とする。また、第1制御処理において、Aレジスタ〜Cレジスタを使用中に第2制御処理に移行した場合には、第2制御処理においては、Aレジスタ〜Cレジスタに対するアクセスを不可とした上で、Dレジスタ〜Lレジスタを使用対象とする。このような構成においても、第1制御処理と第2制御処理とが互いに干渉せず、独立性を担保することができる。   For example, there is an A register to an L register which can be used in either the first control process or the second control process, and in the first control process, if the process shifts to the second control process while using the A register and the B register, In the second control process, the C register to the L register are used after the access to the A register and the B register is disabled. In the first control process, if the process shifts to the second control process while using the A register to the C register, in the second control process, the access to the A register to the C register is disabled, and Registers to L registers are used. Even in such a configuration, the first control process and the second control process do not interfere with each other, and independence can be ensured.

なお、上記の構成において、特定のレジスタ、例えば、Aレジスタについては、第1制御処理から第2制御処理に移行する際に、値をスタックに保護し、第2制御処理から第1制御処理に処理を戻す際に、スタックから値を戻すようにしてもよい。このように、レジスタによって、値の保護の仕方を変えるようにしてもよい。   In the above configuration, for a specific register, for example, the A register, when transitioning from the first control processing to the second control processing, the value is protected on the stack, and the second control processing to the first control processing. The value may be returned from the stack when processing is returned. In this way, the register may change the way of protecting the value.

(第3の実施の形態)
次に、第3の実施の形態における遊技機について、説明する。なお、本実施の形態における遊技機は、第1の実施の形態における遊技機1と基本的な構成および制御は同様である。したがって、本実施の形態においては、第1の実施の形態における遊技機1と異なる点を中心に説明し、同一の構成については同一の符号を付し、説明は省略し、また、同一の制御についても説明は省略する。
Third Embodiment
Next, the gaming machine according to the third embodiment will be described. The gaming machine in the present embodiment is the same in basic configuration and control as the gaming machine 1 in the first embodiment. Therefore, in the present embodiment, differences from the gaming machine 1 according to the first embodiment will be mainly described, and the same configuration will be denoted by the same reference numeral, the description will be omitted, and the same control The description is omitted also for.

本実施の形態における入力ポートは、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによる第1制御処理を実行する場合において、参照され、かつ、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによる第2制御処理を実行する場合においても、参照されるようになっている。   The input port in the present embodiment is referred to when executing the first control processing by the program stored in the first control area 2110 of the first storage area 2100, and is referred to as the second control of the second storage area 2200. It is also referred to when executing the second control processing by the program stored in the area 2210.

このように構成された本実施の形態においては、第1の実施の形態における図20に示す第2メダル払出処理のステップS115−7−7−3において行う、払出センサ信号がONであるか否かを判定する処理において、以下の処理を行う。すなわち、メインCPU301は、「第1記憶領域2100の第1ワーク領域2160における払出センサ状態値を参照し、払出センサ状態値がONであれば、払出センサ信号がONであると判定し、払出センサ状態値がONでなければ(OFFであれば)、払出センサ信号がONでない(OFFである)と判定する」代わりに、「払出センサ92の信号値に対応する入力ポートの値を参照し、当該入力ポートの値がONに対応する値であれば、払出センサ信号がONであると判定し、当該入力ポートの値がONに対応する値でなければ(OFFに対応する値であれば)、払出センサ信号がONでない(OFFである)と判定する」。   In the present embodiment configured as described above, whether or not the payout sensor signal performed in step S115-7-7-3 of the second medal payout processing shown in FIG. 20 in the first embodiment is ON. The following processing is performed in the processing of determining whether or not. That is, the main CPU 301 refers to the “dispensing sensor state value in the first work area 2160 of the first storage area 2100, and determines that the dispensing sensor signal is ON if the dispensing sensor state value is ON, and the payout sensor If the status value is not ON (if it is OFF), it is determined that the payout sensor signal is not ON (it is OFF), "refers to the value of the input port corresponding to the signal value of the payout sensor 92, If the value of the input port is a value corresponding to ON, it is determined that the payout sensor signal is ON, and the value of the input port is not a value corresponding to ON (if it is a value corresponding to OFF) , It is determined that the payout sensor signal is not ON (is OFF).

なお、図19に示すメダル一枚払出処理のステップS115−7−11においては、第1の実施の形態で説明したように、メインCPU301は、払出センサ信号がONであるか否かを判定する処理を行う。ここでは、メインCPU301は、払出センサ92の信号値に対応する入力ポートの値を参照し、払出センサ信号がONであるか否かを判定する処理を行う。   In step S115-7-11 of the medal one piece payout processing shown in FIG. 19, as described in the first embodiment, the main CPU 301 determines whether or not the payout sensor signal is ON. Do the processing. Here, the main CPU 301 refers to the value of the input port corresponding to the signal value of the payout sensor 92, and determines whether the payout sensor signal is ON or not.

ここで、上記ステップS115−7−7−3の「払出センサ信号がONであるか否かを判定する処理」を含む図20に示す第2メダル払出処理は、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによる第2制御処理として実行されるものである。また、上記ステップS115−7−11の「払出センサ信号がONであるか否かを判定する処理」を含む図19に示すメダル一枚払出処理は、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによる第1制御処理として実行されるものである。すなわち、払出センサ92の信号値に対応する入力ポートは、第1制御処理においても参照され、第2制御処理においても参照される。   Here, the second medal payout process shown in FIG. 20 including “the process of determining whether or not the payout sensor signal is ON” in step S115-7-7-3 is the second medal payout process of the second storage area 2200. The program is executed as a second control process by a program stored in the control area 2210. In the medal one-off processing shown in FIG. 19 including “the processing to determine whether or not the payout sensor signal is ON” in step S115-7-11, the first control area 2110 in the first storage area 2100 is processed. Is executed as a first control process by the program stored in That is, the input port corresponding to the signal value of the payout sensor 92 is also referred to in the first control process and also referred to in the second control process.

また、本実施の形態においては、第1の実施の形態における図16に示すメダル通過監視処理のステップS103−3−3−3−1において行う、第1メダル通過センサ62および第2メダル通過センサ63の信号の状態を参照する処理において、第2の実施の形態と同様に、以下の処理を行う。すなわち、メインCPU301は、「第1記憶領域2100の第1ワーク領域2160におけるメダル通過センサ値記憶領域の値(第1メダル通過センサ状態値および第2メダル通過センサ状態値)を参照する」代わりに、「第1メダル通過センサ62および第2メダル通過センサ63の信号値に対応する入力ポートの値を参照し」、今回第1メダル通過センサ状態値および今回第2メダル通過センサ状態値として、第2記憶領域2200の第2ワーク領域2260におけるメダル通過センサ値記憶領域に記憶する。   Further, in the present embodiment, the first medal passage sensor 62 and the second medal passage sensor performed in step S103-3-3-3-1 of the medal passage monitoring process shown in FIG. 16 in the first embodiment. In the process of referring to the signal state of 63, the following process is performed as in the second embodiment. That is, the main CPU 301 refers to “refers to the value of the medal passing sensor value storage area in the first work area 2160 of the first storage area 2100 (first medal passing sensor state value and second medal passing sensor state value)”. , “With reference to the value of the input port corresponding to the signal value of the first medal passage sensor 62 and the second medal passage sensor 63”, as the current first medal passage sensor state value and the current second medal passage sensor state value, 2) The medal passing sensor value storage area in the second work area 2260 of the storage area 2200 is stored.

また、本実施の形態においては、第1の実施の形態における図23、図24に示す割込処理のステップS202において行う、入力ポート読込処理において、第2制御領域2210に記憶されたプログラムで参照される入力ポートの情報を、入力ポートから読み出して第1記憶領域2100の第1ワーク領域2160に記憶させておく処理は行う必要がない。   Further, in the present embodiment, in the input port read processing performed in step S202 of the interrupt processing shown in FIGS. 23 and 24 in the first embodiment, reference is made to the program stored in the second control area 2210. It is not necessary to read out the input port information to be stored from the input port and store the information in the first work area 2160 of the first storage area 2100.

さらに、本実施の形態においては、第1の実施の形態における図27に示す投入センサエラーチェック処理のステップS403−2−9の判定処理、ステップS403−2−10の判定処理、ステップS403−2−12の判定処理において、それぞれ、「第1メダル通過センサ62の信号値に対応する入力ポートの値を参照」、「第2メダル通過センサ63の信号値に対応する入力ポートの値を参照」、「メダル投入検知センサ61の信号値に対応する入力ポートの値を参照」して、判定処理を行う。第1メダル通過センサ62の信号がONであるか否かを判定する。   Furthermore, in the present embodiment, the determination process of step S403-2-9 of the input sensor error check process shown in FIG. 27 in the first embodiment, the determination process of step S403-2-10, and step S403-2. In the determination process of -12, "refer to the value of the input port corresponding to the signal value of the first medal passage sensor 62", "refer to the value of the input port corresponding to the signal value of the second medal passage sensor 63" , “Refer to the value of the input port corresponding to the signal value of the medal insertion detection sensor 61” to perform the determination process. It is determined whether the signal of the first medal passage sensor 62 is ON.

さらに、本実施の形態においては、第1の実施の形態における図28に示す払出センサエラーチェック処理のステップS403−3−2の判定処理において、「払出センサ92の信号値に対応する入力ポートの値を参照して」、払出センサ92の信号がONであるか否かを判定する。   Furthermore, in the present embodiment, in the determination process of step S403-3-2 of the payout sensor error check process shown in FIG. 28 in the first embodiment, “in the input port corresponding to the signal value of the payout sensor 92, With reference to the value, it is determined whether or not the signal of the payout sensor 92 is ON.

さらに、本実施の形態においては、第1の実施の形態における図25に示す第2領域割込処理のステップS403の第2記憶領域入力エラーチェック処理の後に、試験信号出力処理を追加する。本試験信号出力処理においては、試験装置に対して出力が必要な信号を、出力する。例えば、メインCPU301は、内部抽選処理(S107)により当選役が決定されると、第1記憶領域2100の第1制御領域2110に記憶された「当選役情報」を取得し、試験信号出力用の出力ポートに、出力する。また、メインCPU301は、遊技状態移行処理(S116)により遊技状態の移行が行われると、第1記憶領域2100の第1制御領域2110に記憶された「遊技状態移行情報」を取得し、試験信号出力用の出力ポートに、出力する。   Furthermore, in the present embodiment, a test signal output process is added after the second storage area input error check process of step S403 of the second area interrupt process shown in FIG. 25 in the first embodiment. In this test signal output process, a signal that requires an output is output to the test apparatus. For example, when the winning combination is determined by the internal lottery process (S107), the main CPU 301 acquires “winning combination information” stored in the first control area 2110 of the first storage area 2100, and outputs the test signal. Output to the output port. Further, when the transition of the gaming state is performed by the gaming state transition processing (S116), the main CPU 301 acquires the “gaming state transition information” stored in the first control area 2110 of the first storage area 2100, and the test signal Output to the output port for output.

なお、本実施の形態においては、上記試験信号出力処理を、第2領域割込処理内で行うようにしているが、試験装置に対して信号の出力が必要となるたびに、試験信号出力処理を組み込むようにしてもよい。例えば、試験装置に対して信号の出力が必要となる内部抽選処理(S107)等の後に試験信号出力処理を呼び出すようなプログラムに組み込んでおいてもよい。このようにすると、内部抽選処理(S107)により当選役が決定されると、続いて、試験信号出力処理が呼び出されて、「当選役情報」を試験信号出力用の出力ポートに出力させることができる。   In the present embodiment, although the test signal output process is performed in the second area interrupt process, the test signal output process is performed each time it is necessary to output a signal to the test apparatus. May be incorporated. For example, the test signal output process may be incorporated in a program that calls the test signal output process after the internal lottery process (S107) or the like that requires the signal output to the test apparatus. In this case, when the winning combination is determined by the internal lottery process (S107), the test signal output process is subsequently called to output "winning combination information" to the output port for test signal output. it can.

なお、本実施の形態において、第2の実施の形態と同様に、レジスタ群1301として、A#レジスタ1321、B#レジスタ1322、C#レジスタ1323、D#レジスタ1324、E#レジスタ1325、F#レジスタ1326、H#レジスタ1327、L#レジスタ1328を備えた構成としてもよい。   In the present embodiment, as in the second embodiment, as the register group 1301, an A # register 1321, a B # register 1322, a C # register 1323, a D # register 1324, an E # register 1325, and F #. The configuration may be configured to include the register 1326, the H # register 1327, and the L # register 1328.

また、制御装置1201として、第1制御処理を実行する場合と、第2制御処理を実行する場合において、使用するレジスタを、Aレジスタ1311〜Lレジスタ1318と、A#レジスタ1321〜L#レジスタ1328と、を切り替えるようにしてもよい。
この場合、第2の実施の形態と同様に、レジスタ退避処理やレジスタ復帰処理を実行する必要がなくなる。
Also, in the case where the first control processing is executed and the second control processing is executed as the control device 1201, the registers to be used are the A register 1311 to L register 1318 and the A # register 1321 to L # register 1328. And may be switched.
In this case, as in the second embodiment, it is not necessary to execute register save processing and register return processing.

以上のように、本実施の形態における遊技機の入力ポートは、第1記憶領域2100の第1制御領域2110に記憶されたプログラムによって実行される第1制御において参照されるものであり、かつ、第2記憶領域2200の第2制御領域2210に記憶されたプログラムによって実行される第2制御においても参照されるものである。   As described above, the input port of the gaming machine in the present embodiment is referred to in the first control executed by the program stored in the first control area 2110 of the first storage area 2100, and It is also referred to in the second control executed by the program stored in the second control area 2210 of the second storage area 2200.

さらに、本実施の形態における遊技機1は、第2記憶領域2200の第2制御領域2210に、試験装置に信号を出力するための処理を行うプログラムの少なくとも一部を記憶している。   Furthermore, in the second control area 2210 of the second storage area 2200, the gaming machine 1 according to the present embodiment stores at least a part of a program that performs processing for outputting a signal to the test apparatus.

なお、本実施の形態において、第1ワーク領域2160は、本発明の第1RWM領域を構成し、第2ワーク領域2260は、本発明の第2RWM領域を構成する。
また、本実施の形態において、メダルは、本発明の遊技媒体を構成する。
In the present embodiment, the first work area 2160 constitutes a first RWM area of the present invention, and the second work area 2260 constitutes a second RWM area of the present invention.
Further, in the present embodiment, the medal constitutes the gaming medium of the present invention.

さらに、本実施の形態において、セレクターセンサ14sおよびセレクターセンサ14sが有するメダル投入検知センサ61、第1メダル通過センサ62、第2メダル通過センサ63は、本発明の投入検知手段を構成する。
また、本実施の形態において、ホッパーセンサ202sおよびホッパーセンサ202sが有する払出センサ92は、本発明の払出検知手段を構成する。
さらに、本実施の形態において、スタックは、本発明の退避用記憶領域を構成する。
さらに、本実施の形態において、入出力ポート306は、本発明の入力ポートおよび出力ポートを構成する。
Furthermore, in the present embodiment, the medal insertion detection sensor 61, the first medal passage sensor 62, and the second medal passage sensor 63, which the selector sensor 14s and the selector sensor 14s have, constitute the insertion detection means of the present invention.
Further, in the present embodiment, the hopper sensor 202s and the payout sensor 92 included in the hopper sensor 202s constitute a payout detection unit of the present invention.
Furthermore, in the present embodiment, the stack constitutes the save storage area of the present invention.
Furthermore, in the present embodiment, the input / output port 306 constitutes the input port and the output port of the present invention.

さらに、本実施の形態において、Aレジスタ1311、Bレジスタ1312、Cレジスタ1313、Dレジスタ1314、Eレジスタ1315、Fレジスタ1316、Hレジスタ1317、Lレジスタ1318は、本発明の第1レジスタを構成する。
また、本実施の形態において、A#レジスタ1321、B#レジスタ1322、C#レジスタ1323、D#レジスタ1324、E#レジスタ1325、F#レジスタ1326、H#レジスタ1327、L#レジスタ1328は、本発明の第2レジスタを構成する。
Furthermore, in the present embodiment, the A register 1311, the B register 1312, the C register 1313, the D register 1314, the E register 1315, the F register 1316, the H register 1317, and the L register 1318 constitute a first register of the present invention. .
Further, in the present embodiment, A # register 1321, B # register 1322, C # register 1323, D # register 1324, E # register 1325, F # register 1326, H # register 1327, and L # register 1328 The second register of the invention is configured.

なお、上記実施の形態においては、第2記憶領域2200の第2制御領域2210に記憶したプログラムによって実行される処理は、メダルの滞留判定処理、不正通過判定処理、メダル払出時の詰まり判定処理等としているが、上記処理に限定されるものではない。例えば、補助収納庫203の満杯を判断する処理、乱数値の取り込みが正常に行えない場合のエラー処理、電源断復帰が正常に行えない場合のエラー処理、メインRAM303の読み書きが正常に行えない場合の処理等を、第2記憶領域2200の第2制御領域2210に記憶したプログラムによって実行される処理としてもよい。   In the above embodiment, the processing executed by the program stored in the second control area 2210 of the second storage area 2200 includes medal retention determination processing, unauthorized passage determination processing, clogging determination processing at medal payout, etc. However, the present invention is not limited to the above processing. For example, the process of determining whether the auxiliary storage 203 is full, the error process when the random number value can not be taken in normally, the error process when the power failure recovery can not be normally performed, and the read and write in the main RAM 303 can not normally be performed. The processing of the above may be processing executed by a program stored in the second control area 2210 of the second storage area 2200.

また、上記実施の形態における試験装置への信号出力処理として、以下のような処理を第2記憶領域2200の第2制御領域2210に記憶したプログラムによって実行するようにしてもよい。   In addition, as a signal output process to the test apparatus in the above embodiment, the following process may be executed by a program stored in the second control area 2210 of the second storage area 2200.

例えば、メダルの投入可能時に投入可能を示す投入要求ランプ信号を出力させるための処理、遊技の開始が可能でありリールの回転が可能なときに出力するスタート可能ランプ信号を出力させるための処理がある。   For example, processing for outputting a closing request lamp signal indicating that insertion is possible when medals can be inserted, and processing for outputting a startable lamp signal to be output when it is possible to start a game and rotation of a reel is possible is there.

また、BBの入賞からBBの終了までのBB中であることを示す信号を出力させるための処理、RBの入賞からRBの終了までのRB中であることを示す信号を出力させるための処理、リプレイの表示からリプレイの終了まで出力する再遊技中信号を出力させるための処理、リールが回転しリールが停止可能状態になったことを示す各リールのリールストップ可能ランプ信号を出力させるための処理がある。   Further, a process for outputting a signal indicating that BB is in progress from BB winning to the end of BB, a process for outputting a signal indicating that RB is in progress from RB winning to the end of RB, A process for outputting a replay signal during replay, from the display of replay to the end of replay, a process for outputting a reel stop enable lamp signal of each reel indicating that the reel is rotated and the reel is now in a stoppable state. There is.

また、メダル払い出し時にホッパーモータ91の駆動信号がONとなったときに出力する払出要求信号を出力させるための処理、払い出したメダルをカウントするための払出カウント信号を出力させるための処理、リールインデックスを検知したときに出力する各リールのリールインデックス信号を出力させるための処理がある。   Also, processing for outputting a payout request signal to be output when the drive signal of the hopper motor 91 is turned on at the time of medal payout, processing for outputting a payout count signal for counting medals paid out, reel index There is a process for outputting a reel index signal of each reel which is output when detecting.

また、各リールのステッピングモータの位相位置ごとの信号を表すリールステッピングモータ位相信号を出力させるための処理、リールの停止を実行する位置を示す停止実行位置信号を出力させるための処理、上記停止実行位置信号を出力するリールのリール番号を示す回胴番号信号を出力させるための処理、遊技中段要求等の情報を出力するための遊技制御信号を出力させるための処理等がある。   Further, a process for outputting a reel stepping motor phase signal representing a signal for each phase position of the stepping motor of each reel, a process for outputting a stop execution position signal indicating a position at which the reel is stopped, and the execution of the stop There are a process for outputting a rotating drum number signal indicating a reel number of a reel outputting a position signal, a process for outputting a game control signal for outputting information such as an in-game stage request, and the like.

なお、本実施形態では、回胴式遊技機(スロットマシン)に用いる遊技機について説明をしたが、パチンコ遊技機、雀球遊技機、アレンジボール遊技機に用いてもよい。   In the present embodiment, the gaming machine used for the reeling type gaming machine (slot machine) has been described. However, the gaming machine may be used for a pachinko gaming machine, a ball ball gaming machine, and an arrange ball gaming machine.

1 遊技機
2 キャビネット
3 前面扉
4 蝶番機構
5 鍵穴
6 メダル投入口
7 BETボタン
7sw BETスイッチ
8 MAXBETボタン
8sw MAXBETスイッチ
9 精算ボタン
9sw 精算スイッチ
10 スタートレバー
10sw スタートスイッチ
11 左停止ボタン
11sw 左停止スイッチ
12 中停止ボタン
12sw 中停止スイッチ
13 右停止ボタン
13sw 右停止スイッチ
14 セレクター
14s セレクターセンサ
15 貯留枚数表示器
16 払出枚数表示器
17s ドア開閉センサ
18 左リール
19 中リール
20 右リール
21 演出ボタン
21s 演出ボタンセンサ
22 十字キー
22s 十字キーセンサ
23 表示窓
24 受皿ユニット
25 メダル払出口
30 外部集中端子板
31 液晶表示装置
32 LED
33 スピーカ
51 メダル受入口
52 メダル誘導通路
53 メダル排出口
54 ブロッカ
61 メダル投入検知センサ
62 第1メダル通過センサ
63 第2メダル通過センサ
70 セレクターガイド
81 メダル貯留槽
82 メダル払出装置
83 ベース部
84 メインディスク
85 上面ディスク
85a ディスク開口部
86 下面ディスク
86a メダル収納スペース
87 検出レバー
91 ホッパーモータ
92 払出センサ
100 ステータス基板
150 リール制御基板
151 左ステッピングモータ
152 中ステッピングモータ
153 右ステッピングモータ
154s 左リールセンサ
155s 中リールセンサ
156s 右リールセンサ
200 電源基板
201 電源ボタン
201sw 電源スイッチ
202 ホッパー
202s ホッパーセンサ
203 補助収納庫
203s 補助収納庫センサ
204 排出スリット
300 メイン制御基板
301、301a メインCPU
302 メインROM
303 メインRAM
304 メイン乱数発生器
305 メインI/F回路
306 入出力ポート(I/Oポート)
400 サブ制御基板
401 サブCPU
402 サブROM
403 サブRAM
404 サブ乱数発生器
500 演出制御基板
501 演出制御CPU
502 演出制御ROM
503 演出制御RAM
504 CGROM
505 音源IC
506 音源ROM
507 VDP
1100 演算装置
1200,1201 制御装置
1300,1301 レジスタ群
1311 Aレジスタ
1312 Bレジスタ
1313 Cレジスタ
1314 Dレジスタ
1315 Eレジスタ
1316 Fレジスタ
1317 Hレジスタ
1318 Lレジスタ
1319 SPレジスタ
1320 PCレジスタ
1321 A#レジスタ
1322 B#レジスタ
1323 C#レジスタ
1324 D#レジスタ
1325 E#レジスタ
1326 F#レジスタ
1327 H#レジスタ
1328 L#レジスタ
1400 クロックジェネレータ
1500 バス
2100 第1記憶領域
2110 第1制御領域
2120 第1データ領域
2160 第1ワーク領域
2200 第2記憶領域
2210 第2制御領域
2220 第2データ領域
2260 第2ワーク領域
1 game machine 2 cabinet 3 front door 4 hinge mechanism 5 key hole 6 medal slot 7 BET button 7 sw BET switch 8 MAX BET button 8 sw MAX BET switch 9 settlement button 9 sw settlement switch 10 start lever 10 sw start switch 11 left stop button 11 sw left stop switch 12 Middle stop button 12sw Middle stop switch 13 Right stop button 13sw Right stop switch 14 Selector 14s Selector sensor 15 Retained sheet number indicator 16 Payout number indicator 17s Door open / close sensor 18 Left reel 19 Middle reel 20 Right reel 21 Effect button 21s Effect button sensor 22 four-way controller 22s four-way controller 23 display window 24 receiver unit 25 medal payout 30 external central terminal plate 31 liquid crystal display 32 LED
33 speaker 51 medal receiving hole 52 medal guiding passage 53 medal discharge port 54 blocker 61 medal insertion detection sensor 62 first medal passing sensor 63 second medal passing sensor 70 selector guide 81 medal storage tank 82 medal dispensing device 83 base section 84 main disc 85 Upper surface disk 85a Disk opening 86 Lower surface disk 86a Medal storage space 87 Detection lever 91 Hopper motor 92 Payout sensor 100 Status board 150 Reel control board 151 Middle stepping motor 152 Middle stepping motor 153 Right stepping motor 154s Left reel sensor 155s Middle reel sensor 156s right reel sensor 200 power supply substrate 201 power button 201sw power switch 202 hopper 202s hopper sensor 203 auxiliary storage 20 3s auxiliary storage sensor 204 discharge slit 300 main control board 301, 301a main CPU
302 Main ROM
303 Main RAM
304 main random number generator 305 main I / F circuit 306 input / output port (I / O port)
400 sub control board 401 sub CPU
402 Sub ROM
403 sub RAM
404 Sub random number generator 500 effect control board 501 effect control CPU
502 production control ROM
503 production control RAM
504 CGROM
505 Sound source IC
506 sound source ROM
507 VDP
1100 arithmetic unit 1200, 1201 control unit 1300, 1301 register group 1311 A register 1312 B register 1313 C register 1314 D register 1315 E register 1316 F register 1317 H register 1318 L register 1319 SP register 1320 PC register 1321 A # register 1322 B # Register 1323 C # register 1324 D # register 1325 E # register 1326 F # register 1327 L # register 1400 Clock generator 1500 bus 2100 first storage area 2110 first control area 2120 first data area 2160 first work area 2200 second storage area 2210 second control area 2220 second data area 2260 second work area

Claims (1)

第1制御を行うための第1制御プログラムを記憶する第1制御領域と、
前記第1制御領域とは異なる領域であって、第2制御を行うための第2制御プログラムを記憶する第2制御領域と、
前記第1制御において更新および参照され、前記第2制御においては更新されない可変データを記憶する第1RWM領域と、
前記第1RWM領域とは異なる領域であって、前記第2制御において更新および参照され、前記第1制御においては更新されない可変データを記憶する第2RWM領域と、
前記第1制御および前記第2制御において演算処理を行う際にデータを記憶するレジスタと、
前記レジスタの値を一時退避し、記憶する退避用記憶領域と、
前記第1制御領域、前記第2制御領域、前記第1RWM領域および前記第2RWM領域を有する制御装置が、該制御装置の外部の装置にデータの出力を行うものであって、前記第1制御において更新され、前記第2制御においては更新されない第1出力ポートと、
前記制御装置が、該制御装置の外部の装置にデータの出力を行うものであって、前記第2制御において更新され、前記第1制御においては更新されない第2出力ポートと、
記第1制御領域および前記第2制御領域を有する単一の制御領域記憶手段と、
前記第1RWM領域および前記第2RWM領域を有する単一のRWM領域記憶手段と、
前面扉が開放しているか否かを検出する扉開閉検出手段と、
を備え、
前記第1制御領域は、前記扉開閉検出手段により前記前面扉が開放していると検出された場合に扉開放時の処理を行う扉開放時処理、および遊技媒体が投入されたか否かを判定する処理を構成する前記第1制御プログラムを記憶し、
前記第2制御領域は、前記遊技媒体の不正通過を判定する処理の少なくとも一部を構成し、前記第1制御プログラムに呼び出されることにより実行され、終了後に前記第1制御プログラムに復帰させる前記第2制御プログラムを記憶し、
前記第1制御領域または前記第2制御領域は、前記第1制御プログラムにより前記第2制御プログラムが呼び出されることに応じて、前記第1制御における演算処理によるデータが格納された前記レジスタの値を前記退避用記憶領域に退避させ前記第1制御プログラムまたは前記第2制御プログラムを記憶し、
前記第2制御領域に記憶された第2制御プログラムは、前記第1制御領域に記憶された第1制御プログラムにて更新されたデータに基づいて、前記第2出力ポートを更新する
ことを特徴とする遊技機。
A first control area for storing a first control program for performing a first control;
A second control area which is an area different from the first control area and stores a second control program for performing a second control;
A first RWM area storing variable data that is updated and referred to in the first control and not updated in the second control;
A second RWM area that is different from the first RWM area and stores variable data that is updated and referred to in the second control and is not updated in the first control;
A register for storing data when performing arithmetic processing in the first control and the second control;
A save storage area for temporarily saving and storing the value of the register;
A control device having the first control region, the second control region, the first RWM region, and the second RWM region outputs data to a device outside the control device, and in the first control A first output port that is updated and not updated in the second control;
A second output port for outputting data to a device external to the control device, the control device updating data in the second control and not updating the first control;
A single control area storage means having a first control region and the second control region before reporting,
A single RWM area storage means having the first RWM area and the second RWM area;
Door opening / closing detection means for detecting whether or not the front door is open;
Equipped with
In the first control area, when the door open / close detection means detects that the front door is open, door open processing is performed when door is open, and it is determined whether or not a game medium is inserted. Storing the first control program that constitutes the process of
The second control area constitutes at least a part of a process for determining unauthorized passage of the game medium, is executed by being called by the first control program, and returns to the first control program after completion. 2 Remember the control program,
The first control area or the second control area is configured to store the value of the register in which data by arithmetic processing in the first control is stored in response to the second control program being called by the first control program. storing the first control program or the second control program Ru is retracted to the retracted storage area,
The second control program stored in the second control area updates the second output port based on data updated by the first control program stored in the first control area. Gaming machine.
JP2017168758A 2017-09-01 2017-09-01 Gaming machine Active JP6518737B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017168758A JP6518737B2 (en) 2017-09-01 2017-09-01 Gaming machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017168758A JP6518737B2 (en) 2017-09-01 2017-09-01 Gaming machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015061437A Division JP2016179071A (en) 2015-03-24 2015-03-24 Game machine

Publications (3)

Publication Number Publication Date
JP2017205644A JP2017205644A (en) 2017-11-24
JP2017205644A5 JP2017205644A5 (en) 2018-05-17
JP6518737B2 true JP6518737B2 (en) 2019-05-22

Family

ID=60416136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017168758A Active JP6518737B2 (en) 2017-09-01 2017-09-01 Gaming machine

Country Status (1)

Country Link
JP (1) JP6518737B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3786575B2 (en) * 2000-11-20 2006-06-14 株式会社ルネサステクノロジ Data processing device
JP2004030224A (en) * 2002-06-26 2004-01-29 Sony Corp Processor, method for retracting register and method for designating register
JP2004129873A (en) * 2002-10-10 2004-04-30 Shinko Electric Co Ltd Controller for game machine and game machine inspecting device
JP5879586B2 (en) * 2014-08-26 2016-03-08 株式会社大都技研 Amusement stand

Also Published As

Publication number Publication date
JP2017205644A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
JP6034904B2 (en) Game machine
JP6034908B2 (en) Game machine
JP2016179065A (en) Game machine
JP2017074417A (en) Game machine
JP2017086925A (en) Game machine
JP6375355B2 (en) Game machine
JP2016179084A (en) Game machine
JP2017074416A (en) Game machine
JP2017060840A (en) Game machine
JP6255362B2 (en) Game machine
JP2017074415A (en) Game machine
JP2016179074A (en) Game machine
JP6034903B2 (en) Game machine
JP6034906B2 (en) Game machine
JP2017225849A (en) Game machine
JP2017039023A (en) Game machine
JP6518737B2 (en) Gaming machine
JP6518738B2 (en) Gaming machine
JP2016179066A (en) Game machine
JP6034907B2 (en) Game machine
JP2017018712A (en) Game machine
JP6280973B2 (en) Game machine
JP6034905B2 (en) Game machine
JP2016179083A (en) Game machine
JP2017205647A (en) Game machine

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180326

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180326

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181114

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181127

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190124

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: 20190402

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190422

R150 Certificate of patent or registration of utility model

Ref document number: 6518737

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150