JP2016179083A - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP2016179083A
JP2016179083A JP2015061449A JP2015061449A JP2016179083A JP 2016179083 A JP2016179083 A JP 2016179083A JP 2015061449 A JP2015061449 A JP 2015061449A JP 2015061449 A JP2015061449 A JP 2015061449A JP 2016179083 A JP2016179083 A JP 2016179083A
Authority
JP
Japan
Prior art keywords
area
main cpu
control
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.)
Pending
Application number
JP2015061449A
Other languages
Japanese (ja)
Inventor
直幸 渡辺
Naoyuki Watanabe
直幸 渡辺
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 Sangyo Co Ltd
Original Assignee
Kyoraku Sangyo 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 Sangyo Co Ltd filed Critical Kyoraku Sangyo Co Ltd
Priority to JP2015061449A priority Critical patent/JP2016179083A/en
Publication of JP2016179083A publication Critical patent/JP2016179083A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a game machine capable of effectively utilizing a storage area.SOLUTION: A game machine is characterized by providing a first data area in accordance with a first control area, by providing a second data area in accordance with a second control area, and by discontinuously disposing the first data area and the second control area on a memory space.SELECTED DRAWING: Figure 39

Description

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

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

また、このような遊技機は、遊技者によるスタートレバーの操作を検出し、スタートレバーの操作を検出したことに基づいて所定の乱数値を抽出し、当該抽出した乱数値と、当選役毎に抽選値が規定された当選役決定テーブルとに基づいて当選役を決定し、当該決定された当選役と、遊技者による停止ボタンの操作とに基づいてリールの停止制御を行う。ここで、決定された当選役によっては、予め定められた図柄の組み合わせのうち、複数の図柄の組み合わせが有効ライン上に表示されることが許容される場合がある。   In addition, 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 value for each winning combination. The winning combination is determined based on the winning combination determination table in which the lottery value is defined, and reel stop control is performed based on the determined winning combination and the stop button operation by the player. Here, depending on the determined winning combination, it may be permitted to display a plurality of symbol combinations on the active line among predetermined symbol combinations.

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

すなわち、適切なタイミングで停止ボタンの操作が行われなければ当選役に係る図柄の組み合わせが有効ライン上に停止表示されない当選役が当選役として決定された場合には、適切なタイミングで停止操作を行う必要があることから、遊技者には停止ボタンの操作に関する一定の技量等が要求される。   In other words, if the winning combination is determined as a winning combination that does not stop and display the combination of symbols related to 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 this, the player is required to have a certain skill regarding the operation of the stop button.

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

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

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

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

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

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

そこで、本発明は、記憶領域を有効活用できるようにした遊技機を提供することを目的とする。   Therefore, an object of the present invention is to provide a gaming machine that can effectively use a storage area.

このような課題を解決するために、本発明の請求項1に係る遊技機は、第1制御を行うための第1制御プログラムを記憶する第1制御領域と、前記第1制御領域とは異なる領域であって、第2制御を行うための第2制御プログラムを記憶する第2制御領域と、前記第1制御領域に記憶する第1制御プログラムによる前記第1制御に用いられる固定データを記憶する第1データ領域と、前記第2制御領域に記憶する第2制御プログラムによる前記第2制御に用いられる固定データを記憶する第2データ領域と、前記第1制御において更新および参照され、前記第2制御においては更新されない可変データを記憶する第1RWM領域と、前記第1RWM領域とは異なる領域であって、前記第2制御において更新および参照され、前記第1制御においては更新されない可変データを記憶する第2RWM領域とを備え、前記第1制御領域に対応して前記第1データ領域が設けられ、また、前記第2制御領域に対応して前記第2データ領域が設けられており、前記第1データ領域と前記第2制御領域とが、メモリ空間上、連続せずに配置されることを特徴とする。   In order to solve such a problem, the gaming machine according to claim 1 of the present invention is different from the first control area in which the first control area for storing the first control program for performing the first control is stored. A second control area for storing a second control program for performing second control, and fixed data used for the first control by the first control program stored in the first control area A first data area; a second data area for storing fixed data used in the second control by the second control program stored in the second control area; and updated and referenced in the first control; A first RWM area that stores variable data that is not updated in the control, and an area different from the first RWM area, and is updated and referred to in the second control; A second RWM area that stores variable data that is not updated, the first data area corresponding to the first control area, and the second data area corresponding to the second control area And the first data area and the second control area are arranged discontinuously in the memory space.

また、本発明の請求項2に係る遊技機は、請求項1に係る発明において、前記第1データ領域と前記第2制御領域との間に未使用領域を設け、前記未使用領域によって、前記第1データ領域と前記第2制御領域とが、メモリ空間上、連続せずに配置されることを特徴とする。   A gaming machine according to claim 2 of the present invention is the gaming machine according to claim 1, wherein an unused area is provided between the first data area and the second control area, and the unused area The first data area and the second control area are discontinuously arranged in the memory space.

本発明によれば、記憶領域を有効活用できるようになるという効果を奏する。   According to the present invention, there is an effect that the storage area can be effectively used.

遊技機の外観斜視図の一例を示す図である。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 surface of a front door. 遊技機全体のブロック図の一例を示す図である。It is a figure which shows an example of the block diagram of the whole gaming machine. 配列データテーブルの一例を示す図である。It is a figure which shows an example of an arrangement | 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 for RB gaming states. 遊技状態移行図の一例を示す図である。It is a figure which shows an example of a game state transition diagram. 演出決定テーブルの一例を示す図である。It is a figure which shows an example of an effect determination table. メイン制御基板におけるプログラム開始処理の一例を示す図である。It is a figure which shows an example of the program start process in a 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 a main control board. メイン制御基板における第1メダル投入チェック処理の一例を示す図である。It is a figure which shows an example of the 1st medal insertion check process in a main control board. メイン制御基板における第2メダル投入チェック処理の一例を示す図である。It is a figure which shows an example of the 2nd medal insertion 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 which shows an example of the 1st medal payout process in a main control board. メイン制御基板におけるメダル一枚払出処理の一例を示す図である。It is a figure which shows an example of the medal one piece payout process in a main control board. メイン制御基板における第2メダル払出処理の一例を示す図である。It is a figure which shows an example of the 2nd medal payout process in a main control board. メイン制御基板における遊技状態移行処理の一例を示す図である。It is a figure which shows an example of the game state transfer process in a main control board. メイン制御基板におけるボーナス作動中処理の一例を示す図である。It is a figure which shows an example of the process in bonus operation 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 payout 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 process 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 the schematic diagram for demonstrating a 1st storage area and a 2nd storage area. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which the main CPU in the gaming machine in the embodiment of the present invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which the main CPU in the gaming machine in the embodiment of the present invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which the main CPU in the gaming machine in the embodiment of the present invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which the main CPU in the gaming machine in the embodiment of the present invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which the main CPU in the gaming machine in the embodiment of the present invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which the main CPU in the gaming machine in the embodiment of the present invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which the main CPU in the gaming machine in the embodiment of the present invention uses. 本発明の実施の形態における遊技機におけるメインCPUが用いるメモリマップを示す図である。It is a figure which shows the memory map which the main CPU in the gaming machine in the embodiment of the present invention uses. セレクターの動作原理図の一例を示す図である。It is a figure which shows an example of the operation principle figure of a selector. ホッパーの一部断面図の一例を示す図である。It is a figure which shows an example of the partial cross section figure of a hopper. ホッパーの動作原理図の一例を示す図である。It is a figure which shows an example of the operation principle figure 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)
(Composition of gaming machine)
First, the configuration of the gaming machine 1 in the first embodiment will be specifically described with reference to FIGS. 1 and 2. FIG. 1 is a diagram showing an external perspective view of the gaming machine, and FIG. 2 is a diagram showing the internal structure of the cabinet and the back surface of the front door.

(遊技機1)
本実施形態における遊技機1は、後述のキャビネット2と、前面扉3等から構成されている。
(Game machine 1)
The gaming machine 1 in the present embodiment includes a cabinet 2 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. A plurality of components 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. A plurality of components are attached to the front door 3.

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

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

(メダル投入口6)
メダル投入口6は、鍵穴5の正面視左側上方に設けられ、遊技者がメダルを投入するために設けられている。
(Medal slot 6)
The medal slot 6 is provided on the upper left side of the keyhole 5 when viewed from the front, and is provided for a 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 when viewed from the front, and is provided for using “1” medals among the stored medals in the game.

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

(精算ボタン9)
精算ボタン9は、BETボタン7の奥側に設けられ、遊技者が獲得したメダルのうち、貯留(クレジット)されているメダルの精算を行うために設けられている。なお、本実施形態において、貯留(クレジット)可能なメダルの最大値は「50」枚である。
(Checkout button 9)
The settlement button 9 is provided on the back side of the BET button 7 and is provided for 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. 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 (to be described later) acquires a random number value and determines the winning combination, the left reel 18, the middle reel 19, and the right to be described later. A process for starting the 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 front view. The left stop button 11 is provided to detect a stop operation that triggers stopping rotation of the left reel 18 described later.

(中停止ボタン12)
中停止ボタン12は、左停止ボタン11の正面視右側に設けられている。また、中停止ボタン12は、後述の中リール19の回転を停止する契機となる停止操作を検出するために設けられている。
(Intermediate stop button 12)
The middle stop button 12 is provided on the right side of the left stop button 11 when viewed from the front. Further, the middle stop button 12 is provided to detect a stop operation that triggers 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 of the middle stop button 12 when viewed from the front. The right stop button 13 is provided to detect a stop operation that triggers 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. The selector 14 is provided to determine whether or not the material or shape of the medal inserted into the medal insertion slot 6 is appropriate. Details of the selector 14 will be described later.

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

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

(ドア開閉センサ17s)
ドア開閉センサ17sは、鍵穴5の背面側に設けられており、前面扉3が開放しているか否かを検出するために設けられている。ここで、ドア開閉センサ17sは、発光部と受光部からなり、鍵穴5にドアキー(図示せず)を挿入し、当該ドアキー(図示せず)を時計回り方向に所定角度回動させると、施錠部(図示せず)が回動することとなる。そして、受光部は、施錠部が回動することにより、発光部から発光された光を受光することができなくなる。これにより、ドア開閉センサ17sは、前面扉3の開放を検知することとなる。
(Door open / close sensor 17s)
The door opening / closing sensor 17s is provided on the back side of the keyhole 5, and is provided to detect whether or not the front door 3 is open. The door opening / closing sensor 17s includes a light emitting portion and a light receiving portion. When a door key (not shown) is inserted into the keyhole 5 and the door key (not shown) is rotated clockwise by a predetermined angle, the door opening / closing sensor 17s is locked. The part (not shown) will rotate. And the light-receiving part cannot receive the light emitted from the light-emitting part when the locking part rotates. Thereby, 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. Further, a translucent sheet is mounted on the peripheral surface of the cylindrical structure of the left reel 18, and a plurality of types of symbols are drawn in a row on the sheet. 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. Further, a translucent sheet is mounted on the peripheral 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 driven to rotate by a middle stepping motor 152, which will be 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 mounted on the peripheral 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. The right reel 20 is rotationally driven by a right stepping motor 153, which will be described later, and a plurality of types of symbols are variably displayed.

(演出ボタン21)
演出ボタン21は、MAXBETボタン8の正面視右側に設けられており、遊技者が所定のタイミングで操作するために設けられている。ここで、後述のサブ制御基板400は、演出ボタン21の操作が検出された場合に、後述の演出制御基板500を介して、後述の液晶表示装置31の表示制御を行う。
(Direction button 21)
The effect button 21 is provided on the right side of the MAXBET button 8 when viewed from the front, and is provided for the player to operate at a predetermined timing. Here, 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 when the operation of the effect button 21 is detected.

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

(表示窓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, middle reel 19, and right reel 20, and a plurality of symbols drawn on the peripheral surfaces of the left reel 18, middle reel 19, and right reel 20 can be visually recognized. Is provided to do. Specifically, “3” symbols drawn on the peripheral surface of the left reel 18, “3” symbols drawn on the peripheral surface of the middle reel 19, and drawn on the peripheral surface of the right reel 20. A total of “9” symbols of “3” symbols can be viewed through the display window 23. In the present embodiment, in order to facilitate the visual recognition of the symbols displayed on the display window 23, the symbols displayed on the display window 23 are irradiated by emitting 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 on the display window 23, the effective line is a symbol displayed on the upper stage of the left reel 18, a symbol displayed on the middle stage of the middle reel 19, and the right reel 20. “Right-down line” connecting the symbols displayed in the lower row with a straight line, the symbols displayed in the upper row of the left reel 18, the symbols displayed in the upper row of the middle reel 19, and the upper row of the right reel 20. The “upper line” connecting the displayed 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 at the right, the symbol displayed at the lower part of the left reel 18, the symbol displayed at the middle part of the middle reel 19, and the symbol displayed at the upper part of the right reel 20 with a straight line “right” A total of “4” lies on the “rising line” It becomes effective line.

(受皿ユニット24)
受皿ユニット24は、前面扉3の正面下方に設けられている。また、受皿ユニット24は、後述のメダル払出口25から排出されたメダルを受け入れて貯留するために設けられている。
(Tray unit 24)
The saucer unit 24 is provided below the front face of the front door 3. In addition, the tray unit 24 is provided for receiving and storing medals discharged from a medal payout opening 25 described later.

(メダル払出口25)
メダル払出口25は、前面扉3の下方に設けられており、メダルの払出が行われる場合において、後述のホッパー202により払い出されるメダルを排出するために設けられている。また、メダル払出口25は、セレクターセンサ14sにより、メダル投入口6に投入されたメダルが適正なメダルではないと判別された場合や、メダルの投入を受け付けることが不可能なタイミングに、メダル投入口6にメダルが投入された場合に、メダル投入口6に投入されたメダルを排出するために設けられている。
(Medal payout exit 25)
The medal payout opening 25 is provided below the front door 3 and is provided for discharging a medal paid out by a hopper 202 described later when the medal payout is performed. The medal payout opening 25 is inserted when the medal inserted into the medal slot 6 is not an appropriate medal by the selector sensor 14s or when the medal insertion cannot be accepted. It is provided for discharging the medal inserted into the medal slot 6 when a medal is inserted into the slot 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 for displaying moving images, still images, and the like.

(LED32)
LED32は、前面扉3の前面の周縁に設けられており、遊技者の視覚に訴える形状及び色彩、模様、絵柄等を施してデザイン設計されている。ここで、後述のサブ制御基板400は、LED32を点灯、点滅する処理を行うことにより、遊技者に対して視覚に訴える演出を行う。
(LED32)
The LED 32 is provided on the peripheral edge of the front surface of the front door 3 and is designed and designed with a shape, color, pattern, pattern, etc. appealing to the player's vision. Here, the below-described sub control board 400 performs an effect of visually appealing to the player by performing a process of turning on and blinking the LED 32.

(スピーカ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 for outputting BGM, sound, sound effects, etc. when performing an effect. Here, the below-described sub control board 400 performs a process of outputting 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 board 100 is provided on the back side of the front door 3 and below the display window 23. The status board 100 also includes a BET switch 7sw described later, a MAXBET switch 8sw described later, a settlement switch 9sw described later, a start switch 10sw described later, a left stop switch 11sw described later, a middle stop switch 12sw described later, and a right stop described later. A switch 13sw, a selector sensor 14s described later, a stored number display 15, a payout number display 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. . The reel control board 150 includes a left stepping motor 151 to be described later, a middle stepping motor 152 to be described later, a right stepping motor 153 to be described later, a left reel sensor 154s to be described later, a middle reel sensor 155s to be described later, and a right reel sensor 156s to be described later. And a main control board 300 to be described later are connected.

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

(電源ボタン201)
電源ボタン201は、後述のホッパー202の正面視左側に設けられており、遊技機1に電力を供給する操作を行うために設けられている。
(Power button 201)
The power button 201 is provided on the left side of a front view of a hopper 202 described later, and is provided for performing 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 board 200 as viewed from the front, and is provided for paying out medals to the player. Here, the main control board 300, which will be described later, performs a process of driving the hopper 202 via the power supply board 200 when a combination of symbols for paying out medals is displayed on the active line, and gives a medal to the player. Process to pay out. The hopper 202 is provided with a discharge slit 204 for discharging medals. Details of the hopper 202 will be described later.

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

(メイン制御基板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 and above the left reel 18, the middle reel 19, and the right reel 20, and is provided for controlling the gaming machine 1. The main control board 300 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 external control terminal board 30, the status board 100, the reel control board 150, the power supply board 200, and the sub control board 400, which will be described later, are connected to the main control board 300.

(サブ制御基板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 when viewed from the front, and is provided mainly for controlling the production. The sub control board 400 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. Furthermore, a later-described effect button sensor 21s, a later-described cross key sensor 22s, a power supply board 200, a main control board 300, and a later-described effect control board 500 are connected to the sub-control board 400.

(演出制御基板500)
演出制御基板500は、前面扉3の背面上方に設けられており、主として演出を実行するために設けられている。また、演出制御基板500は、後述の演出制御CPU501、後述の演出制御ROM502、後述の演出制御RAM503、後述のCGROM504、後述の音源IC505、後述の音源ROM506、後述のVDP507を備えている。更に、演出制御基板500には、液晶表示装置31、LED32、スピーカ33、電源基板200、及びサブ制御基板400が接続されている。
(Production control board 500)
The effect control board 500 is provided above the back surface of the front door 3 and is provided mainly for executing an effect. The effect control board 500 includes 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. Further, the liquid crystal display device 31, the LED 32, the speaker 33, the power supply board 200, and the sub control board 400 are connected to the effect control board 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 main operations of the gaming machine 1.

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

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

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

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

(左停止スイッチ11sw)
左停止スイッチ11swは、左停止ボタン11の操作を検出するためのスイッチである。ここで、ステータス基板100は、左停止スイッチ11swにより、左停止ボタン11の操作が検出された場合に、メイン制御基板300に対して左停止スイッチ入力信号を送信する。そして、メイン制御基板300は、ステータス基板100から左停止スイッチ入力信号を受信したことに基づいて、回転中の左リール18を停止する処理を行う。
(Left stop switch 11sw)
The left stop switch 11sw is a switch for detecting an 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 an operation of the left stop button 11 is detected by the left stop switch 11sw. The main control board 300 performs a process of 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を停止する処理を行う。
(Intermediate stop switch 12sw)
The middle stop switch 12sw is a switch for detecting the operation of the middle stop button 12. Here, the status board 100 transmits an intermediate stop switch input signal to the main control board 300 when the operation of the intermediate stop button 12 is detected by the intermediate stop switch 12sw. The main control board 300 performs a process of 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 13sw)
The right stop switch 13sw 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 operation of the right stop button 13 is detected by the right stop switch 13sw. Then, the main control board 300 performs processing for 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 an appropriate medal is 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 an appropriate medal passage is detected by the selector sensor 14s. Then, the main control board 300 receives the selector sensor input signal from the status board 100, and adds “1” to the number of medals to be stored (credited) or the number of medals used in the game. A process of adding “1” is performed. The selector sensor 14s includes 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 for controlling the left reel 18. The left stepping motor 151 has a configuration capable of stopping the rotation shaft at a specified angle. As a result, 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 a pulse signal is output to the left stepping motor 151 after a reel index is detected by a left reel sensor 154s 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 for controlling the middle reel 19. Further, the middle stepping motor 152 has a configuration capable of stopping the rotation axis at a specified angle. As a result, the intermediate reel 19 rotates at a constant angle each time a pulse signal is output to the intermediate stepping motor 152. The main control board 300 manages the rotation angle of the middle reel 19 by counting the number of times a 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 for controlling the right reel 20. The right stepping motor 153 has a configuration capable of stopping the rotation shaft at a specified angle. As a result, 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 a pulse signal is output to the right stepping motor 153 after a reel index is detected by a right reel sensor 156s described later. .

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

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

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

(ホッパーセンサ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 board 200 transmits a hopper sensor input signal to the main control board 300 when the hopper sensor 202s detects the payout of medals. Then, the main control board 300 performs a process of subtracting the payout number 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 medals stored in the auxiliary storage 203 are full. Here, the power supply board 200 transmits a predetermined signal to the main control board 300 when the auxiliary storage sensor 203s detects that the medals stored in the auxiliary storage 203 are full. . The main control board 300 performs error processing when the medals stored in the auxiliary storage 203 are full based on receiving a predetermined signal from the power supply board 200.

(外部集中端子板30)
外部集中端子板30は、遊技に使用したメダルの枚数を特定可能なメダル投入信号や、遊技者に対して払い出したメダルの枚数を特定可能なメダル払出信号、後述のBBに係る図柄の組み合わせが表示されたことを特定可能なBB信号、後述のRBに係る図柄の組み合わせが表示されたことを特定可能なRB信号、不正行為が行われたことを特定可能なセキュリティ信号をホールコンピュータ(図示せず)等の遊技機1の外部に対して送信するために設けられている。
(External concentration terminal board 30)
The external concentration terminal board 30 has 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 combination of symbols related to BB described later. A hall computer (not shown) displays a BB signal that can specify that it has been displayed, an RB signal that can specify that a combination of symbols related to RBs, which will be described later, has been displayed, and a security signal that can specify that fraud has been performed. And so on) for transmission to the outside of the gaming machine 1.

(メイン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 a main ROM 302, which will be described later, and performs a predetermined arithmetic process in accordance with the progress of the game, so that the status board 100, the reel control board 150, the power board 200, and the sub control board. A predetermined signal is transmitted to 400.

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

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

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

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

クロックジェネレータ1400は、メインCPU301および接続された各装置の処理のタイミングをとるために、一定に時間を刻み続ける時計であり、常に一定間隔のクロック信号(パルス)を発生させる装置である。   The clock generator 1400 is a clock that keeps constant time in order to take the processing timing of the main CPU 301 and each connected device, and is a device that always 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を有している。   Note that 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. Yes.

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). Note that 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 are connected as two bytes (16 bits). 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. The main ROM 302 is provided for storing 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 stores a program for performing the processing shown in FIGS. 11 to 28, an array data table (see FIG. 4) described later, a symbol combination table (see FIG. 5) described later, and a normal game state described later. A winning combination determination table (see FIG. 6), an RT gaming state winning combination determination table (see FIG. 7) to be described later, an RB gaming state winning combination determination table (see FIG. 8) to be described later, and the like 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 for storing various data determined by the execution of the program by the main CPU 301. Specifically, the main RAM 303 is provided with various counters such as a later-described input number counter and various storage areas such as a setting 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つとし、他方を複数設けた構成としてもよい。   33, the main ROM 302 and the main RAM 303 are provided with a first storage area 2100 and a second storage area 2200. 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, the first storage area 2100 and the second storage area 2200 are areas on one main ROM 302 and one main RAM 303, but a plurality of main ROMs and main RAMs are provided. The first storage area 2100 may be provided, and the second storage area 2200 may be provided on the other side. Further, one of the main ROM and the main RAM may be provided, 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. The second storage area 2200 of the main ROM 302 is provided with a second control area 2210 and a second data area 2220. Further, a first work area 2160 is provided in the first storage area 2100 of the main RAM 303, and a second work area 2260 is provided in the second storage area 2200 of the main RAM 303.

第1制御領域2110には、第1制御を行うためのプログラムが記憶されており、例えば、遊技の進行を制御するプログラムが記憶されている。第1制御領域2110に記憶されたプログラムを、例えば、第1制御プログラムという。なお、本実施の形態においては、メインROM302に記憶されるプログラムのうち、特にことわりのないプログラムは、第1制御領域2110に記憶されたものとする。   The first control area 2110 stores a program for performing the first control. For example, a program for controlling the progress of the game is stored. The program stored in the first control area 2110 is referred to as a first control program, for example. In the present embodiment, among the programs stored in the main ROM 302, programs that are not particularly specified are 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, and fixed values) used when the program stored in the first control area 2110 is executed. The data stored in the first data area 2120 is referred to as first control data, for example.

第2制御領域2210には、第2制御を行うためのプログラムが記憶されており、例えば、遊技機1のセキュリティチェックを行うプログラムが記憶されている。第2制御領域2210に記憶されたプログラムを、例えば、第2制御プログラムという。なお、第2制御領域2210に記憶されるプログラムの詳細については、後述する。   The second control area 2210 stores a program for performing the second control. 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 referred to as a second control program, for example. The details of the program stored in the second control area 2210 will be described later.

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

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

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

ここで、メイン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 (kilobytes)”, the storage capacity of the first control area 2110 is “4.5 KB (kilobytes)”, and the storage capacity of the first data area 2120 is “3 KB ( Kilobytes) ”. The storage capacity of the main RAM 303 is “1024 KB (kilobytes)”, and the storage capacity of the first work area 2160 is “512 KB (kilobytes)”. In this way, when the storage capacity of the first storage area 2100 is limited, when trying to increase a new program or data, the additional program or data is stored in the second storage area 2200. Then, a new function can be added without squeezing the capacity of the first storage area 2100.

さらに、第1制御領域2110には、第2制御領域2210に記憶された所定の第2制御プログラムを呼び出すことにより処理を中断し、当該第2制御プログラムからの復帰により処理を再開する第1制御プログラムが記憶されている。
また、第1制御プログラムには、呼び出しを行う第2制御プログラムのアドレスが予め規定されている。
Further, in the first control area 2110, the first control that interrupts the process by calling a predetermined second control program stored in the second control area 2210 and resumes the process by returning from the second control program. The program is stored.
In addition, in the first control program, the address of the 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制御プログラムをサブルーチンとして呼び出すことはない。
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. Yes.
In addition, 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 is 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 a second control program that constitutes at least a part of a process (hereinafter referred to as a security process) for detecting an abnormality relating to the own apparatus. The second control area 2210 may store only a specific (partial) control program among the control programs that perform security processing, or may store all of the control programs that perform security processing. .

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

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

メインROM302、メインRAM303には、上記に示すように、その役割に応じた記憶領域がそれぞれ設けられており、これらの記憶領域を表した仮想空間(以下では「メモリ空間」とも称している)を図34乃至図41に示している。詳細については後述する。   As shown above, the main ROM 302 and the main RAM 303 are provided with storage areas according to their roles, and a virtual space (hereinafter also referred to as “memory space”) representing these storage areas. This is shown in FIGS. 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. The main random number generator 304 is provided for generating 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 a random number value 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. “I / F” is an abbreviation for “interface”. 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が操作されたときの処理を行う。
(Production button sensor 21s)
The effect button sensor 21 s is connected to the effect button 21 and is provided to detect an operation of the effect button 21. Here, the effect button sensor 21 s 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が操作されたときの処理を行う。
(Cross 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 22 s transmits a cross key sensor input signal to the sub-control board 400 based on detecting 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 a sub ROM 402 described later, and performs predetermined processing based on command information received from the main control board 300 and signals input from the effect button sensor 21s and the cross key sensor 22s. It is provided for performing calculations and supplying the results of the calculations to the effect control board 500 and 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 for storing 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) 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 for storing various data determined by the execution of the 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. The sub-random number generator 404 is provided for generating a random value used in a lottery or the like for determining the production. Here, in the present embodiment, the sub-random number generator 404 generates a random value in the range of “0” to “65535”.

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

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

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

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

(音源IC505)
音源IC505は、演出制御基板500に設けられている。また、音源IC505は、後述の音源ROM506に記憶されている音声に関するプログラムやデータを読み込み、スピーカ33を駆動する音声信号を生成するために設けられている。
(Sound source IC505)
The sound source IC 505 is provided on the effect control board 500. The sound source IC 505 is provided for reading a program and data relating to sound stored in a sound source ROM 506, which will be described later, and generating a sound 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 for storing a program, data, and the like related to a sound output when an effect is executed.

(VDP507)
VDP507は、いわゆる画像プロセッサであり、演出制御CPU501からの指示に基づいて、第1フレームバッファ領域と第2フレームバッファ領域のうち「表示用フレームバッファ領域」から画像データを読み出す制御を行う。そして、読み出した画像データに基づいて、映像信号(例えば、LVDS信号やRGB信号)を生成することにより、液晶表示装置31に画像を表示する制御が行われる。なお、VDP507は、図示しない制御レジスタ、CGバスインターフェイス、CPUインターフェイス、クロック生成回路、伸長回路、描画回路、表示回路、メモリコントローラ等を備えており、これらをバスによって接続している。
(VDP507)
The VDP 507 is a so-called image processor, and controls to read image data from the “display frame buffer area” out of the first frame buffer area and the second frame buffer area based on an instruction from the effect control CPU 501. Then, control for displaying an image on the liquid crystal display device 31 is performed by generating a video signal (for example, LVDS signal or RGB signal) based on the read image data. 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 with reference to the operation principle diagram of the selector 14 shown in FIG.
As shown in FIG. 42, the selector 14 includes 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 selector sensors 14s.

メダル受入口51は、メダル投入口6から投入されたメダルを、メダル誘導通路52に受け入れるためのものである。メダル誘導通路52は、メダル受入口51から受け入れられたメダルを、メダル排出口53に誘導するための通路である。なお、メダル誘導通路52には、通路の途中の底部に開口部(溝)が設けられ、ブロッカ54により開口部が塞がれることにより、メダル排出口53への通路が形成されるようになっている。また、メダル誘導通路52の開口部は、メダル払出口25と連通されるようになっている。   The medal receiving port 51 is for receiving a medal inserted from the medal insertion port 6 into the medal guiding passage 52. The medal guiding passage 52 is a passage for guiding a medal received from the medal receiving port 51 to the medal discharge port 53. The medal guide passage 52 is provided with an opening (groove) at the bottom part of the passage, and the opening to the medal discharge port 53 is formed by the opening being blocked by the blocker 54. ing. Further, the opening of the medal guiding passage 52 is communicated 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 guide 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 led out to the selector guide 70. Further, a hopper 202 is provided at the discharge destination of the selector guide 70, and medals discharged from the medal discharge port 53 of the selector 14 are guided to the hopper 202 through the selector guide 70. Yes.

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

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

第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 and the medal discharging port 53 of the medal guiding passage 52. The medals are arranged at positions where they are detected at different timings. Further, the first medal passing sensor 62 and the second medal passing sensor 63 are not too far apart, and are arranged at a certain distance when both sensors detect a medal at the same time with one medal.

これにより、第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 first medal passage sensor 62 and the second medal passage sensor 63 can perform normal passage confirmation of medals. Specifically, in both the first medal passage sensor 62 and the second medal passage sensor 63, only the first medal passage sensor 62 is turned on since the detection signal is OFF, and then the first medal passage sensor 62 is turned on. In the ON state, the second medal passage sensor 63 is also turned ON. Next, only the first medal passage sensor 62 is turned OFF with the second medal passage sensor 63 being ON, and finally both the first medal passage sensor 62 and the second medal passage sensor 63 are turned OFF, so that the medal is normally performed. It can be confirmed that it has passed.

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

次に、図43に示すホッパー202の一部断面図、図44に示すホッパー202の動作原理図を用いて、ホッパー202について説明する。
図43、図44に示すように、ホッパー202は、メダル貯留槽81と、メダル払出装置82と、を備えている。
Next, the hopper 202 will be described with reference to a partial 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 that stores a large number of medals. The medal storage tank 81 is provided with an opening at the bottom so that medals can be supplied to the medal payout device 82 from the opening. Further, a fitting portion that fits the medal payout device 82 is provided on the outer periphery of the bottom of the medal storage tank 81. The medal storage tank 81 and the medal payout device 82 are connected with an inclined connection surface.

メダル払出装置82は、ベース部83と、メインディスク84と、検出レバー87と、を有している。また、メダル払出装置82には、ホッパーモータ91が設けられているとともに、ホッパーセンサ202sとして、払出センサ92が設けられている。   The medal payout device 82 has a base portion 83, a main disk 84, and a detection lever 87. 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 disk 84 is formed at the substantially center, and a discharge passage communicating with the discharge slit 204 is provided at one end for discharging the medal. Is formed.

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

検出レバー87は、メインディスク84の下部に設けられ、一端にピンが設けられている。検出レバー87のピンは、メインディスク84の外周部近傍でメインディスク84の上面まで突出している。なお、検出レバー87は、バネによって初期位置に付勢されている。   The detection lever 87 is provided at the lower part of the main disk 84, and a pin is provided at one end. The pin of the detection lever 87 protrudes to the upper surface of the main disk 84 in the vicinity of the outer peripheral portion of the main disk 84. The detection lever 87 is biased to the 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, and rotates the main disk 84 with a rotating shaft pivotally supported on the central axis of the main disk 84.
The payout sensor 92 outputs an ON signal when the detection lever 87 is moved to a predetermined position, and outputs an OFF signal when the detection lever 87 is in the initial position.

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

メインディスク84が回転すると、メダル収納スペース86aに収納されたメダルも移動され、検出レバー87のピンに当接される。さらに、メインディスク84が回転すると、メダルは、バネの付勢力に抗して検出レバー87を動かし、検出レバー87が払出センサ92に検出され、ON信号が出力される。   When the main disk 84 rotates, the medals stored in the medal storage space 86 a are also moved and brought into contact with the pins of the detection lever 87. Further, when the main disk 84 rotates, the medal moves the detection lever 87 against the urging 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によってメダルの払い出しが検出される。
Further, when the main disk 84 rotates, the medal is discharged from the discharge slit 204 through the discharge passage. When the medal is ejected, 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 dispensing sensor 92 and an OFF signal is output.
Thus, in the hopper 202, the hopper motor 91 is driven to pay out medals, and the payout sensor 92 detects the payout of 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は、本発明の実施の形態における遊技機が具備する記憶媒体(メモリ)のメモリ空間を示す図である。   34 to 41 are diagrams showing a memory space of a storage medium (memory) included 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 a main ROM 302 and a main RAM 303 (also referred to as “main RWM (Read Write Memory)”) included in the main control board. The storage areas of each storage medium (memory medium, integrated circuit (IC)) are mapped on a virtual space.

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

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

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

このようなメモリ空間は、その記憶する情報の種類や使用用途等に応じて1または複数の領域(記憶領域)に分別されており、その各領域における特定の位置に所定のデータ等を記憶することができる。このとき、各メモリ空間上には、各領域に記憶する所定のデータを識別する(指し示す)ためのアドレス情報(データ識別情報)が設定されており、このアドレス情報をメインCPU301が指定することでメインCPU301は、そのアドレス情報によって識別される、メモリ空間の記憶領域に記憶するデータを参照、更新することができる。   Such a memory space is divided into one or a plurality of areas (storage areas) according to the type of information to be stored, usage, etc., and predetermined data or the like is stored at a specific position in each area. be able to. At this time, address information (data identification information) for identifying (indicating) predetermined data 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 identified by the address information.

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

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

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

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

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

続いて、この図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 (collectively) when the main CPU 301 designates predetermined address information. In this example, processing is performed in units of “1 byte (8 bits)”. 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”) (Also referred to as (1) ”), 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, 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, the second data area 2220, and The second work area 2260 is collectively referred to as “outside use area (second use area 2200)”.

これらの各領域(第1制御領域2110、第1データ領域2120、第1ワーク領域2160、第2制御領域2210、第2データ領域2220、第2ワーク領域2260)は、アドレス情報によって明確に分離された領域である(言い換えれば、アドレス情報を指定することによって所定の記憶領域に確実にアクセスできることを示す領域である)ことから、これらの各領域に記憶されたデータ等は、明示的に区別された領域に配置されている。言い換えれば、無造作にデータ等を任意の領域に配置したものではない。   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) are clearly separated by address information. (In other words, an area indicating that a predetermined storage area can be reliably accessed by designating address information), the data stored in each of these areas is explicitly distinguished. Is located in the area. In other words, data or the like is not randomly arranged 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 relating to the progress of the game, the control process (first control process) that affects (gives) the game result is performed. Is an area for storing the control program (also referred to as “first control program”). For example, in the first control area 2110, a control program for performing a control process for detecting that a player has inserted a game medal into a slot for a game medium (game medal), or that a game medal has been paid out is detected. In addition to the control program for performing the control process, there are a control program for performing the control process for notifying that the RB state and the BB state have been reached, a control program for performing the control process for outputting that the door is open, and the like. It is remembered.

この第1制御プログラムは、処理を実行することで所定の機能を果たす機能的なまとまりを果たすモジュールが1または複数、設けられて構成されたものである(モジュール化されている)。この第1制御プログラムをモジュール化することによって、所定の機能を実現するための処理が構成要素(制御プログラム中の処理ステップ)間で相互に連関する状態を回避することができ、若しくは、最小限にでき、遊技全体の処理において各機能が実現される仕組み(処理)が容易に把握することができるようになる。   The first control program is configured by providing one or a plurality of modules that fulfill a predetermined function by executing processing (modules). By modularizing the first control program, it is possible to avoid a state in which processing for realizing a predetermined function is mutually linked between components (processing steps in the control program), or at a minimum Therefore, it is possible to easily grasp the mechanism (processing) in 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 that stores 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). Also referred to as “1 fixed data”). The fixed data indicates that the data cannot be changed from the initially set state, and may be referred to as “invariant data”.

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

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

このときのレジスタとは、上記に示すように、メインCPU301が演算処理等を行うために用意されたメインCPU301専用のメモリ(記憶装置)である。このレジスタは、他の記憶装置に比べ、記憶できるデータ容量は小さいがアクセス速度が高速で、処理の際に作業領域として用いられる。   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 as described above. This register is smaller in data capacity than other storage devices but has a high access speed and is used as a work area during processing.

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

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

このときの不正行為とは、遊技媒体(遊技メダル)を検知するセレクターの機能に対して本来の機能を発揮できない若しくは誤認させる行為や、ホッパーの機能に対して本来の機能を発揮できなくする行為若しくは誤認させる行為、遊技機を構成する筐体の内部へと不正にアクセスする行為等の物理的な不正行為のほか、遊技状態等を誤認させる電波を発生させて遊技媒体を不正に獲得する行為などの電磁気的な不正行為が該当する。   The fraudulent act at this time is an act that cannot or cannot be mistaken for the function of the selector that detects the game medium (game medal), or an action that makes the function of the hopper unusable. In addition to physical misconduct, such as misconceptions, acts of unauthorized access to the inside of the housing that constitutes the gaming machine, and acts of illegally acquiring game media by generating radio waves that misidentify the gaming state, etc. This applies to electromagnetic fraud.

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

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

以上に示すような処理を行う第2制御プログラムを第2制御領域2210において記憶している。もちろん、これらの制御プログラムの内容はあくまでも例であって、これに限定されることなく、遊技の結果に影響を及ぼさない(与えない)制御処理(第2制御処理)を行うための制御プログラムであれば、どのような内容のプログラムであってもよい。   A second control program for performing the processing 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 give) the game result. Any program may be used as long as it is present.

このほか、この第2制御領域2210に記憶している第2制御プログラムは、第1制御領域2110に記憶している第1制御プログラムから予め指定された手法によって呼び出されることによって第2制御処理を実行するものである。より具体的には、第2制御プログラムによる第2制御処理は、第1制御プログラムによる第1制御処理のサブルーチンとして処理されるものであって、第1制御プログラムによる第1制御処理において読み出された第2制御プログラムにおいて第2制御処理が行われ、この第2制御処理が完了したことを返答(通知)する(リターン命令を返す)処理が行われる(サブルーチン処理)。   In addition, the second control program stored in the second control area 2210 is called by a method designated in advance from the first control program stored in the first control area 2110 to perform the second control process. 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 in the first control process by the first control program. In the second control program, the second control process is performed, and a process of returning (notifying) that the second control process is completed (returning a return command) 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. To do. When the execution of the second control program is completed and a return command is returned, the first control process cancels the “response waiting state” and changes it 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 that called the second control process, and the subsequent processes can be resumed.

なお、この第1制御プログラムから呼び出される第2制御プログラムは、予め指定されたプログラム(静的プログラム)としている。このように静的プログラムとすることによって、明示されたプログラムが確実に実行されることが判断できる。   Note that the second control program called from the first control program is a previously designated program (static program). By making the program static as described above, it can be determined that the specified program is surely 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 as “first work area 2160” in the above) is read (read or 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 for storing data that can be written (overwritten, updated). Since the data stored in the first RWM area can be referred to and updated, it can be said to be “variable data”. However, the “variable data” provided in the first RWM area is data that can be changed in the first control process by the first control program stored in the first control area 2110, and is the second control area 2210. In the second control process by the second control program stored in (2), the data is only referenced (data that is not updated).

このことから、この第1RWM領域は、第1使用領域が具備する領域であって、第1制御領域2110で記憶する第1制御プログラムによる第1制御処理において更新および参照を行い、第2制御領域2210で記憶する第2制御プログラムによる第2制御処理において更新されない可変データを記憶する第1RWM領域であると表現できる。   Therefore, the first RWM area is an area included in the first use area, and is updated and referred to in the first control process by the first control program stored in the first control area 2110. The second control area It can be expressed as a first RWM area that stores variable data that is 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 as “second work area 2260” above) is read (read, referenced) in the second control process by the second control program stored in the second control area 2210. In addition, the storage area stores data that can be written (overwritten, updated). The data stored in the second RWM area can be said to be “variable data” because it can be referred to and updated. However, the “variable data” provided in the second RWM area is data that can be changed in the second control process by the second control program stored in the second control area 2210, and is the first control area 2110. In the first control process by the first control program stored in (1), the data is only referred to (data that is not updated).

このことから、この第2RWM領域は、第2使用領域が具備する領域であって、第1RWM領域とは異なり、第2制御領域2210で記憶する第2制御プログラムによる第2制御処理において更新および参照を行い、第1制御領域2110で記憶する第1制御プログラムによる第1制御処理においては更新されない可変データを記憶する第2RWM領域であると表現できる。   Therefore, the second RWM area is an area included in the second usage area, and is different from the first RWM area, and is updated and referred to in the second control process by the second control program stored in the second control area 2210. It 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 a memory space in which the above-described areas are arranged. The first control area 2110 (shown as “control area (1)”) in ascending order from the lower address to the higher address. First data area 2120 (shown as “data area (1)”), second control area 2210 (shown as “control area (2)”), second data area 2220 (shown as “data area (2)”) ), A first RWM area (shown as “RWM area (1)”), and a second RWM area (shown as “RWM area (2)”) are arranged (mounted).

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

そのうち、図34(a)には、第1制御領域2110が実装されたアドレス情報に続くアドレス情報に第1データ領域2120を実装したものであって、すなわち、第1制御領域2110と第1データ領域2120とが連続して配置された状態を示している。このことから、第1制御領域2110とその第1制御領域2110に対する(対応する)第1データ領域2120とが一体となって配置されているとも言える。   Among them, FIG. 34 (a) shows that 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. An area 2120 is continuously arranged. From this, it can be said that the first control area 2110 and the first data area 2120 corresponding to (corresponding to) the first control area 2110 are integrally arranged.

また、この図34(a)には、第1データ領域2120を示すアドレス情報よりも高位アドレスのアドレス情報に第2制御領域2210を実装しており、第1データ領域2120を示すアドレス情報と、第2制御領域2210を示すアドレス情報とが連続したものでも、連続しないものでもよい。すなわち、第1データ領域2120と第2制御領域2210とが連続しているか否かは問わない。第1データ領域2120と第2制御領域2210とが連続していない場合には、任意のデータを記憶することができる領域(任意領域)が配置(実装)された状態であることによって連続していない状態としている。この任意領域は、どのようなデータ(任意データ)を記憶しても良いことを示している。もちろん、予め指定された初期データを記憶しておき、他の領域に関係するデータを記憶せず、結果として、いずれの領域としても使用しない「未使用領域」としてもよい。   In FIG. 34 (a), the second control area 2210 is mounted on address information having a higher 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 be continuous 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. When the first data area 2120 and the second control area 2210 are not continuous, the areas (arbitrary areas) in which arbitrary data can be stored are arranged (implemented) and are continuous. There is no state. This arbitrary area indicates that any data (arbitrary data) may be stored. Of course, initial data designated in advance may be stored, data related to other areas may not be stored, and as a result, an “unused area” that is not used as any area may be used.

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

また、「未使用領域」とは、予め指定されたデータ(データ処理最小単位である(2進数)ビットの「0」または「1」のいずれかのデータ)を初期値(初期データ)として指定しておき、メモリマップ上の他の記憶領域がどのような使用条件に基づいて使用されたとしてもその初期値が変化しない領域である。このほか、未使用領域は、所定のデータの更新(書き込み)を禁止設定された記憶領域とも称することもできる。   In addition, “unused area” is designated as an initial value (initial data) of predesignated data (data of either “0” or “1” of (binary number) bit which is the minimum unit of data processing) In addition, even if other storage areas on the memory map are used based on any use condition, the 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.

この任意領域(未使用領域を含む)の詳細については後述する。   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, the second control area 2210 and the second data area 2220 are arranged in a discontinuous manner.

次に、第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)を示すアドレス情報であることを示している。   In addition, the address information in which each area is mounted is continuous. The address next to the address information indicating a certain area (area A) is address information indicating another area (area B), This indicates that the address before the address information indicating (area B) is address information indicating a certain area (area A).

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

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

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

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

図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), an arbitrary area is provided between the first control area 2110 and the first data area 2120 so that the areas are not continuous, and the second control area 2210 The second data area 2220 is continuously arranged without providing an arbitrary area. At this time, it does not matter whether there is an arbitrary area between the first data area 2120 and the second control area 2210. That is, the first data area 2120 and the second control area 2210 may be arranged continuously 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 integrally arranged.

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

以下では、図34(c)について説明する。   Hereinafter, FIG. 34C 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 arranged continuously without providing an arbitrary area between the first control area 2110 and the first data area 2120. Furthermore, the second control area 2210 and the second data area 2120 Each area is continuously arranged without providing an arbitrary area with the data area 2220. That is, a combination of the first control area 2110 and the first data area 2120 corresponding to the first control area 2110, and a 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 integrally arranged.

このとき、第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, it does not matter whether there is an arbitrary area between the first data area and the second control area 2210. That is, the first data area 2120 and the second control area 2210 may be arranged continuously 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. Further, a combination of the first control area 2110 and the first data area 2120 corresponding to the first control area 2110, a second control area 2210 and a second data area 2220 corresponding to the second control area 2210, It does not ask | require whether it is arrange | positioned in succession (regardless of the continuous presence or absence between combinations).

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

以上のことから、図34には、第1制御領域2110および第1データ領域2120と、第2制御領域2210および第2データ領域2220との少なくとも一方の各領域間が、メモリ空間上、連続して配置されていることが示されている。   In view of 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 in the memory space. It is shown that they are arranged.

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

図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), an arbitrary area is provided between the first control area 2110 and the first data area 2120 so that the areas are not continuous, and the second control area 2210 The second data area 2220 is continuously arranged between the areas without providing an arbitrary area. At this time, it does not matter whether there is an arbitrary area between the first data area 2120 and the second control area 2210. That is, the first data area 2120 and the second control area 2210 may be arranged continuously 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, it can be said that in FIG. 35A, the second control area 2210 and the second data area 2220 corresponding to the second control area 2210 are integrally arranged.

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

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

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

図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. 35B, the first control area 2110 and the first data area 2120 are arranged between the respective areas without providing any arbitrary area, and the second control area 2210 and the first data area 2120 are arranged. The two data areas 2220 are arranged between areas without being continuous by providing an arbitrary area. At this time, it does not matter whether there is an arbitrary area between the first data area 2120 and the second control area 2210. That is, the first data area 2120 and the second control area 2210 may be arranged continuously 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 integrally arranged.

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

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

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

図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 so that the areas are not connected to each other. The two data areas 2220 are arranged between areas without being continuous by providing an arbitrary area. At this time, it does not matter whether there is an arbitrary area between the first data area 2120 and the second control area 2210. That is, the first data area 2120 and the second control area 2210 may be arranged continuously 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, each of the first control area 2110, the first data area 2120, the second control area 2210, and the second data area 2220 is arranged without being continuous.

以上のことから、図35には、第1制御領域2110および第1データ領域2120と、第2制御領域2210および第2データ領域2220との少なくとも一方の各領域間が、メモリ空間上、連続せず配置されていることが示されている。   From the above, in FIG. 35, there is a continuous space in the memory space between 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. It is shown that they are arranged.

以下では、図36について説明する。   In the following, 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, 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 area 2220 is continuously arranged without providing any area. At this time, it does not matter whether there is an arbitrary area between the first data area 2120 and the second control area 2210. That is, the first data area 2120 and the second control area 2210 may be arranged continuously 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とが一体となって配置されているとも言える。   Therefore, the first control area 2110 and the first data area 2120 corresponding to the first control area 2110 are integrally arranged, and the second control area 2210 and the second control area 2210 corresponding to the second control area 2210 are arranged. It can also be said that the data area 2220 is integrally arranged.

また、この図36では、第1RWM領域と第2RWM領域とが連続して配置されている状態にある。   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 areas 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 continuously arranged in the memory space. In addition, both the first RWM area and the second RWM area are continuously arranged in the memory space.

以下では、図37について説明する。   In the following, 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 area 2220 is continuously arranged without providing any area. At this time, it does not matter whether there is an arbitrary area between the first data area 2120 and the second control area 2210. That is, the first data area 2120 and the second control area 2210 may be arranged continuously 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とが一体となって配置されているとも言える。   Therefore, the first control area 2110 and the first data area 2120 corresponding to the first control area 2110 are integrally arranged, and the second control area 2210 and the second control area 2210 corresponding to the second control area 2210 are arranged. It can also be said that the data area 2220 is integrally arranged.

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

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

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

図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, and the second control area 2210 and the first data area 2120 The two data areas 2220 are provided with arbitrary areas and are arranged without being continuous between the areas. At this time, between the first data area 2120 and the second control area 2210, the first data area 2120 and the second control area 2210 are continuously arranged without providing an arbitrary area.

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

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

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

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

また、この図38(b)では、第1RWM領域と第2RWM領域とが連続して配置されている状態にある。   Further, in FIG. 38B, the first RWM region and the second RWM region 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 ( 4 areas are continuous). In other words, FIG. 38B shows a 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. This indicates that the combination with the second data area 2220 is continuous.

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

図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 areas are continuously arranged, and the second control area 2210 and the second data area 2120 The data area 2220 is not provided with an arbitrary area and is continuously arranged between the areas. At this time, 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 without being continuous.

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

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

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

図39(b)には、第1制御領域2110と第1データ領域2120との間に任意領域を設けて各領域間が連続せずに配置されており、また、第2制御領域2210と第2データ領域2220とは任意領域を設けて各領域間が連続せずに配置されている。さらに、第1データ領域2120と、第2制御領域2210との間に任意領域を設け、第1データ領域2120と第2制御領域2210とが連続せずに配置されている。   In FIG. 39B, 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, and the second control area 2210 and the first data area 2120 The two data areas 2220 are provided with arbitrary areas and are arranged without being continuous between the areas. 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 without being continuous.

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

以上のことから、図39(b)には、第1制御領域2110、第1データ領域2120、第2制御領域2210、第2データ領域2220それぞれが連続せずに配置されていることを示している(4つの領域における全ての領域間に任意領域が設けられている)。   From the above, FIG. 39B 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 in a non-continuous manner. (Any area is provided between all the areas in the four areas).

以下では、図40について説明する。   In the following, 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. 39A, and an arbitrary area (hereinafter referred to as “specific arbitrary area”) provided between the first data area 2120 and the second control area 2210. The area length (area size) is changed. 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. 40A-1 shows an example in which the area size of the specific arbitrary area shown in FIG. 40A is reduced and the reduced area size is used (enlarged) as the second control area 2210. It is. For this reason, the start address of the second control area 2210 is changed to a lower address than the storage area shown in FIG. 40A, and the second control area 2210 is enlarged, but the final address of the second control area 2210 is increased. 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. 40A-2 shows an example in which the area size of the specific arbitrary area shown in FIG. 40A is reduced and the reduced area size is used as the first data area 2120. Therefore, although the final address of the first data area 2120 is changed to a higher address than the storage area shown in FIG. 40A and the second control area 2210 is expanded, the head of the first data area 2120 is expanded. The address is the same as the start address of the first data area 2120 shown in FIG.

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

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

この図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 than the storage area shown in FIG. 40 (a), and the first address and the last address of the first data area 2120 are changed. Shows a state in which the address is changed to a higher address compared to the storage area shown in FIG. 40A, and the first control area 2110 and the first data area 2120 are respectively stored in the areas shown in FIG. It is larger than the region 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 storage area not adjacent to the specific arbitrary area.

なお、この図40に示す任意領域の領域サイズを変更する処理は、遊技機を開発している段階(仕様設計に基づく実装段階)においてその任意領域を一時的に、所定の領域として用いることが可能であることを示している。よって、プログラムやデータサイズが増加して記憶領域の領域サイズを変更する必要が生じたとしても(その任意領域の領域サイズを上限に)、他の記憶領域を変更することなく、任意領域でその変更を吸収することができる。   In the process of changing the area size of the arbitrary area shown in FIG. 40, the arbitrary area is temporarily used as a predetermined area at the stage of developing the gaming machine (implementation stage based on the specification design). It shows that it is possible. Therefore, even if the program or data size increases and the area size of the storage area needs to be changed (up to the area size of the arbitrary area), it can be changed 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, an arbitrary area is not provided between the first control area 2110 and the first data area 2120, and the areas are continuously arranged. The second control area 2210, the second data area 2220, Are arranged continuously between the regions without providing any regions. 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. Further, 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. In addition, FIG. 41 shows a continuous state by being brought together (aggregated) toward the lower address side.

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

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

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

すなわち、1レコードあたり「16バイト(128ビット)」がダンプされるような場合において、「16バイト(128ビット)」以上の任意領域を設け、任意領域が設けられた直後の記憶領域に実装されるプログラムやデータを「16」の倍数となるアドレスを先頭アドレスとしておけば、メモリマップ上の各記憶領域のダンプリストを作成したとき、そのダンプリストの単位レコード全てが任意領域として出力されることとなる。   In other words, when “16 bytes (128 bits)” is 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. If a program or data that is a multiple of “16” is used as the start address, when a dump list of each storage area on the memory map is created, all unit records of that dump list are output as arbitrary areas. It becomes.

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

上記に示す例では、メモリマップ上の任意領域(未使用領域含む)全てを1レコードとして表示されるデータサイズ以上とする場合について記述しているが、これに限定されることなく、第1制御領域2110および第1データ領域2120の組み合わせと、第2制御領域および第2データ領域2220の組み合わせとの間に設けられた任意領域が少なくとも、1レコードとして表示されるデータサイズ以上であればよい。   In the example shown above, a case has been described in which all the arbitrary areas (including unused areas) on the memory map are set to be larger than the data size displayed as one record, but 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 is because of 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. A combination is a program or data that provides different functions, so that an arbitrary area, which is an area for separating these, should be at least the data size displayed as one record. ing.

そして、上記のような任意領域(未使用領域)を設けて記憶領域同士を連続せずに配置した場合には、その任意領域をプログラムやデータを記憶している他の記憶領域(プログラム領域、データ領域)として用いることができる。   Then, when an arbitrary area (unused area) as described above is provided and the storage areas are arranged without being continuous, the arbitrary area is stored in another storage area (program area, Data area).

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

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

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

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

(図柄組み合わせテーブル)
次に、図5に基づいて、図柄組み合わせテーブルについて説明を行う。
(Design combination table)
Next, the symbol combination table will be described with reference to 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 symbol combination, and the number of medals to be paid out to the player.

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

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

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

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

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

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

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

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

(通常遊技状態用当選役決定テーブル)
次に、図6に基づいて、通常遊技状態用当選役決定テーブルについて説明を行う。
(Normal winning status winning 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 described later. In the normal gaming state winning combination determination table, a winning number, contents of the winning number, and a lottery value for each set value are defined. Here, in this embodiment, the winning combination determination table for the normal gaming state exemplifies the lottery value when the setting value is “1” and the lottery value when the setting value is “6”. The drawing of the lottery value when the setting value is “3”, the lottery value when the setting value is “4”, and the lottery 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 includes “Replay” with a winning number “01”, “Bell” with a winning number “02”, “Watermelon” with a winning number “03”, and a winning number “04”. “Cherry”, winning number “05” “chance role”, winning number “06” “red BB”, winning number “07” “black BB”, winning number “08” “RB” ”,“ Watermelon + Red BB ”with the winning number“ 09 ”,“ Watermelon + Black BB ”with the winning number“ 10 ”,“ Watermelon + RB ”with the winning number“ 11 ”, and“ “Cherry + Red BB”, “Cherry + Black BB” with winning number “13”, “Cherry + RB” with winning number “14”, “Chance role + red BB” with winning number “15”, and winning number “16” “chance role + black BB” and “17 chance” “chance role + R” Lottery value is defined in ".

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

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

また、RT遊技状態用当選役決定テーブルは、当選番号「01」の「リプレイ」と、当選番号「02」の「ベル」と、当選番号「03」の「スイカ」と、当選番号「04」の「チェリー」と、当選番号「05」の「チャンス役」に抽選値が規定されている。   In addition, the RT game state winning combination determination table includes “Replay” with a winning number “01”, “Bell” with a winning number “02”, “Watermelon” with a winning number “03”, and a winning number “04”. Lottery values are defined for “Cherry” and “Chance” with 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」が当選役として決定されることはない。   In other words, the lottery value other than these is “0”, and when the lottery is performed using the RT gaming state winning combination determination table, “Red BB” of the winning number “06” and the winning number “07”. “Black BB”, winning number “08” “RB”, winning number “09” “watermelon + red BB”, winning number “10” “watermelon + black BB”, and winning number “11” "Watermelon + RB", winning number "12" "Cherry + Red BB", winning number "13" "Cherry + Black BB", winning number "14" "Cherry + RB" and winning number " The “chance combination + red BB” of “15”, the “chance combination + black BB” of the winning number “16”, and the “chance combination + RB” of the winning number “17” are not determined as the winning combination.

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

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 the winning combination by an internal lottery process described later in the RB gaming state described later. In the RB gaming state winning combination determination table, a winning number, contents of the winning number, and a lottery value for each set value are defined. Here, in this embodiment, the winning combination determination table for the RB gaming state illustrates the lottery value when the setting value is “1” and the lottery value when the setting value is “6”. The drawing of the lottery value when the setting value is “3”, the lottery value when the setting value is “4”, and the lottery value when the setting value is “5” is omitted. doing.

また、RB遊技状態用当選役決定テーブルは、当選番号「02」の「ベル」に抽選値が規定されている。   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 value other than these is “0”, and in the case of performing the lottery using the RB gaming state winning combination determination table, “Replay” of the winning number “01” and “03” of the winning number “03”. “Watermelon”, “Cherry” with winning number “04”, “Chance” with winning number “05”, “Red BB” with winning number “06”, “Black BB” with winning number “07” The winning number “08” “RB”, the winning number “09” “watermelon + red BB”, the winning number “10” “watermelon + black BB”, and the winning number “11” “watermelon + RB”. “Cherry + Red BB” with the winning number “12”, “Cherry + Black BB” with the winning number “13”, “Cherry + RB” with the winning number “14”, and “Chance” with the winning number “15” "Role + Red BB" and "Chance Role + Black BB" with the winning number "16" 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遊技状態用当選役決定テーブルを総称して「当選役決定テーブル」という。   The normal gaming state winning combination determination table, the RT gaming state winning combination determination table, and the RB gaming state winning combination determination table are collectively referred to as “winning combination determination table”.

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

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

ここで、現在の遊技状態が通常遊技状態である場合において、後述の内部抽選処理により「ボーナス」に当選した場合に、通常遊技状態からRT遊技状態に移行される。   Here, when the current gaming state is the normal gaming state, when the “bonus” is won by an 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, the transition from the RT gaming state to the RB gaming state is made when “combination of symbols related to bonus” is displayed on the active line.

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

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

演出決定テーブルは、サブ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 for determining effects to be performed in each state managed by the main control board 300. Specifically, “production No.” and production contents corresponding to “production 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 the normal game state effect determination table (see FIG. 10A) used when the state managed by the main control board 300 is the normal game state, and the main control. RT game state effect determination table (see FIG. 10B) used when the state managed by the board 300 is the RT gaming state, and when the state managed by the main control board 300 is the RB gaming state. RB gaming state effect determination table (see FIG. 10C).

(メイン制御基板300によるプログラム開始処理)
次に、図11に基づいて、メイン制御基板300により行われるプログラム開始処理についての説明を行う。なお、プログラム開始処理は、電源スイッチ201swがONとなったことに基づいて行われる処理である。
(Program start processing by the main control board 300)
Next, a program start process performed by the main control board 300 will be described with reference to 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 S <b> 1, the main CPU 301 performs processing for determining whether or not power is interrupted. 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 interruption state, and when the power is not supplied to the gaming machine 1. In this case, a process for determining whether or not the gaming machine 1 is cut off by the backup power source is performed. If it is determined that the power is interrupted (step S1 = Yes), the process of step S1 is repeatedly executed. On the other hand, if it is determined that the power is not interrupted (step S1 = No), the process proceeds to step S2.

(ステップS2)
ステップS2において、メインCPU301は、初期設定処理を行う。具体的には、メインCPU301は、遊技機1の内部レジスタを設定するためのテーブルの番地を設定し、当該テーブルに基づいて、レジスタの番地をセットする処理等を行う。そして、ステップS2の処理が終了すると、ステップS3に処理を移行する。
(Step S2)
In step S2, the main CPU 301 performs an initial setting process. Specifically, the main CPU 301 sets a table address for setting the internal register of the gaming machine 1, and performs a process of setting the register address based on the table. Then, when the process of step S2 ends, the process proceeds 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 a process of determining whether or not the setting change key switch is ON. Specifically, the main CPU 301 performs a process of determining whether or not the setting change key (not shown) is rotated by a predetermined angle in the clockwise direction in a state where the setting change key (not shown) is inserted into the key hole for setting change. If it is determined that the setting change key switch is ON (step S3 = Yes), the process proceeds to step S4, and if it is determined that the setting change key switch is not ON (step S3). = No), the processing shifts to a power failure recovery process for restoring the value of the register saved before power interruption and the value of the saved stack pointer. When the power interruption recovery process is completed, the game machine 1 returns 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 a setting value change process. 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 determines whether the setting value range is normal. If the result of the determination is normal, the current setting value is displayed on a setting display section (not shown). On the other hand, when the above-described determination result is not normal, processing for 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 a process of switching the set 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 detected operation, a process for determining the set value is performed. Then, the setting change key (not shown) is inserted into the key hole for setting change, and has been turned a predetermined angle in the counterclockwise direction from the state rotated in the clockwise direction by a predetermined angle. When it is detected, processing for storing the set value in the set 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 the main control board 300)
Next, a main loop process performed by the main control board 300 will be described with reference to FIG.

(ステップS101)
ステップS101において、メインCPU301は、初期化処理を行う。具体的には、メインCPU301は、スタックポインタをセットする処理や、メインRAM303の初期化開始番地と、初期化終了番地をセットしてから、メインRAM303の初期化開始番地から初期化終了番地領域までの領域を初期化する処理等を行う。また、メインCPU301は、メインRAM303に設けられている投入枚数カウンタの値や、メインRAM303に設けられている停止制御番号格納領域の値等をクリアする処理を行う。そして、ステップS101の処理が終了すると、ステップS102に処理を移行する。
(Step S101)
In step S101, the main CPU 301 performs an initialization process. Specifically, the main CPU 301 sets the stack pointer, sets the initialization start address and the initialization end address of the main RAM 303, and then initializes from the initialization start address to the initialization end address area of the main RAM 303. Processing for initializing the area is performed. Further, the main CPU 301 performs processing for 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. Then, when the process of step S101 ends, the process proceeds 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 automatically inserts medals and sets “3” to the value of the inserted number counter provided in the main RAM 303 when a later-described re-game operating flag is ON. Etc. Then, when the process of step S102 ends, the process proceeds 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 with reference to FIG. In this process, the main CPU 301 determines whether or not a medal is inserted into the medal slot 6 when a later-described re-game operation flag is not ON, and when a medal is inserted into the medal slot 6. The process of adding the value of the insertion number counter provided in the main RAM 303, whether or not the operation of the BET button 7 or the MAXBET button 8 is detected, and the operation of the BET button 7 or the MAXBET button 8 are detected. When it is detected, a process of adding the value of the insertion number counter provided in the main RAM 303 is performed. Further, it is determined whether or not an operation of the settlement button 9 is detected, and when an operation of the settlement button 9 is detected, a process of returning the stored medal to the player is performed. Then, when the process of step S103 ends, the process proceeds to step S104.

(ステップS104)
ステップS104において、メインCPU301は、投入枚数カウンタの値が「3」であるか否かを判定する処理を行う。具体的には、メインCPU301は、ステップS102のメダル受付開始処理や、ステップS103のメダル管理処理により、メインRAM303に設けられている投入枚数カウンタの値が「3」となったか否かを判定する処理を行う。そして、投入枚数カウンタの値が「3」であると判定された場合には(ステップS104=Yes)、ステップS105に処理を移行し、投入枚数カウンタの値が「3」ではないと判定された場合には(ステップS104=No)、ステップS103に処理を移行する。
(Step S104)
In step S <b> 104, the main CPU 301 performs a process of determining whether or not 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 process in step S102 and the medal management process in step S103. Process. If it is determined that the value of the inserted number counter is “3” (step S104 = Yes), the process proceeds to step S105, where it is determined that the value of the inserted number counter is not “3”. In this 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 a start lever check process. Specifically, the main CPU 301 determines whether or not an operation of the start lever is detected by the start switch 10sw. When the operation of the start lever 10 is detected by the start switch 10sw, the main CPU 301 is provided in the main RAM 303. Processing for turning off the re-game operating flag in the re-game operating flag storage area is performed. 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 terminated. 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 a process of determining whether or not the start switch is ON. Specifically, the main CPU 301 performs processing for determining whether or not the start switch 10sw is ON. If it is determined that the start switch is ON (step S106 = Yes), the process proceeds to step S107. If 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 with reference to FIG. In this 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 a bonus information update process. Specifically, the main CPU 301 is provided in the main RAM 303 or a process for shifting the state managed by the main control board 300 to the RT gaming state when the bonus is won by the internal lottery process in step S107. A process for updating the carry flag storage area is performed. On the other hand, if the bonus is not won by the internal lottery process in step S107, the value stored in the carry flag storage area provided in the main RAM 303 and the winning combination storage area provided in the main RAM 303 are displayed. Is performed, and the result of the calculation 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 to determine whether or not to execute the spinning effect performed using the left reel 18, the middle reel 19, and the right reel 20, and when the lottery is won, A process for storing the information related to the selected rotation effect in the rotation effect information storage area provided in the main RAM 303 is performed. In addition, the main CPU 301 transmits the reel rotation start reception command to the main RAM 303 in order to transmit a reel rotation start reception command having information indicating that the operation of the start lever 10 has been received to the sub control board 400. A condition device command having processing to set in the transmission data storage area for presentation, information relating to the winning combination, information relating to the spinning effect to be executed, and the like is transmitted to the sub-control board 400. Therefore, processing for setting the conditional device command in the transmission data storage area for presentation provided in the main RAM 303 is performed. 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 performs a process of executing the spinning effect based on information stored in the spinning effect information storage area provided in the main RAM 303. Further, the main CPU 301 performs a process for determining whether or not the minimum game time has elapsed. If it is determined that the minimum game time has elapsed as a result of the determination, the minimum game time has elapsed in the next game. In order to determine whether or not it has been performed, a process of setting a value of a 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 a process of waiting until the minimum game time has elapsed. In addition, the main CPU 301 transmits the reel rotation start command having information indicating 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. Is set in the effect transmission data storage area of the main RAM 303. Then, when the process of step S110 ends, the process proceeds 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 a reel rotation start process. 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 determine the left reel 18, the middle reel 19, and the right reel 20. Performs processing to rotate at high speed. Then, when the process of step S111 ends, the process proceeds 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, middle stop button 12, and right stop button 13 are pressed, and the left stop button 11, middle stop button 12, and right stop button 13 are pressed. In the case of pressing, among the left stop button 11, the middle stop button 12, and the right stop button 13, the left reel 18, the middle reel 19, the right reel 20 and the left stepping motor 151 corresponding to the operated stop button. Then, based on the values of the pulse counters supplied to the middle stepping motor 152 and the right stepping motor 153, the pressing reference position is acquired and stored in the pressing reference position storage area provided in the main RAM 303. Next, the main CPU 301 has a 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. Based on the operation order of the button 13, etc., a process of determining the number of sliding frames within the range of “0” to “4” frames is performed, and the determined number of sliding frames is determined as a sliding frame provided in the main RAM 303. Processing to store in the number storage area. The main CPU 301 rotates based on the value stored in the pressing reference position storage area provided in the main RAM 303 and the value stored in the sliding frame number storage area provided in the main RAM 303. A process of stopping the middle 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 for determining whether or not 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 are all stopped by the reel rotation process in step S112. If it is determined that all the reels are stopped (step S113 = Yes), the process proceeds to step S114. If it is determined that all the reels are not stopped (step S113 = No), The process proceeds to step S112, and the same process is repeated until all 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, the main CPU 301 first sends the display determination command to the main RAM 303 in order to transmit a display determination command having information on the combination of symbols displayed on the effective line to the sub-control board 400. Is set in the production transmission data storage area. Next, the main CPU 301 performs a process of determining whether or not “a combination of symbols related to winning” is displayed on the active line, and determines that “a combination of symbols related to winning” is displayed on the active line. In the case of a game, a process for calculating the number of medals to be paid out to the player is performed. On the other hand, if it is determined that the “combination of symbols related to winning” is not displayed on the active line, a process is performed to determine whether or not the “combination of symbols related to replay” is displayed on the active line. When it is determined that the “combination of symbols related to replay” is displayed on the active line, a process of turning on the value of the re-game operating flag storage area provided in the main RAM 303 is performed. 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 in detail later with reference to FIG. In this process, the main CPU 301 performs a process of paying out medals by driving the hopper 202 via the power supply board 200 based on the fact that “combination of winning symbols” is displayed on the active line. 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 a game state transition process which will be described in detail later with reference to FIG. In this process, the main CPU 301 performs a process of shifting the gaming state based on the combination of symbols displayed on the active line. Then, when the process of step S116 ends, the process proceeds to step S101.

(メダル管理処理)
次に、図13に基づいて、図12のステップS103の処理により行われるメダル管理処理についての説明を行う。なお、図13はメダル管理処理のサブルーチンを示す図である。
(Medal management process)
Next, the medal management process performed by the process of step S103 of FIG. 12 will be described based on FIG. 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 a process of determining whether or not the re-game in-operation flag is ON. Specifically, the main CPU 301 performs a process of determining whether or not the value of the re-game operating flag storage area provided in the main RAM 303 is ON. If it is determined that the re-game in-operation flag is ON (step S103-1 = Yes), the medal management process subroutine is terminated, and the process proceeds to step S104 of the main loop process. On the other hand, if it is determined that the re-game in-operation 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 re-game in-operation flag is ON, the medal management process subroutine is terminated, and a medal check process (first medal insertion check process) described later is not performed. Therefore, when the re-game in-operation flag is ON, the medal insertion is not accepted, but even when the re-game in-operation flag is ON, the medal insertion may be accepted. 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 for determining whether or not a medal has been inserted. Specifically, the main CPU 301 performs processing for determining whether or not insertion of a medal is detected by the selector sensor 14s. If it is determined that a medal has been inserted (step S103-2 = Yes), the process proceeds to step S103-3, and if it is determined that no medal has been 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 with reference to FIG. In this process, the main CPU 301 determines the value of the input number counter provided in the main RAM 303 based on the value of the input number counter provided in the main RAM 303 or the value of the stored number counter provided in the main RAM 303. Also, processing for adding the value of the stored number counter provided in the main RAM 303 is performed. When the process of step S103-3 is completed, the medal management process subroutine is terminated, 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 performs a process of setting “1” as the insertion request number. Specifically, the main CPU 301 performs a process of setting “1” as the requested number of sheets 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 performs processing for determining whether or not the BET switch is ON. Specifically, the main CPU 301 performs processing for determining whether or not an operation of the BET button 7 by the player is detected 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 performs a process of setting “3” as the insertion request number. Specifically, the main CPU 301 performs processing for updating the insertion request number “1” set in the register to “3”. Then, when the process of step S103-6 ends, the process proceeds 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 performs processing for determining whether or not the MAXBET switch is ON. Specifically, the main CPU 301 performs processing for determining whether or not an operation of the MAXBET button 8 by the player is detected by the MAXBET switch 8sw. If it is determined that the MAXBET switch is ON (step S103-7 = Yes), the process proceeds to step S103-8, and if it is determined that the MAXBET 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 performs processing for determining whether or not the value of the insertion number counter is “3”. Specifically, the main CPU 301 performs a process of determining whether or not the value of the insertion number counter provided in the main RAM 303 is “3”. When it is determined that the value of the inserted number counter is “3” (step S103-8 = Yes), the medal management process subroutine is terminated, 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 inserted 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 a process of determining whether or not the value of the stored number counter is “1” or more. Specifically, the main CPU 301 performs a process of determining whether or not the value of the stored number counter provided in the main RAM 303 is “1” or more. If it is determined that the value of the stored number counter is “1” or more (step S103-9 = Yes), the process proceeds to step S103-10, and the value of the stored number counter is “1” or more. If it is determined that this is not the case (step S103-9 = No), the medal management process subroutine is terminated, 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 a stored medal insertion process. Specifically, the main CPU 301 subtracts the value of the stored number counter provided in the main RAM 303 based on the value of the input number counter provided in the main RAM 303 and adds the value of the input number counter. Etc. When the process of step S103-10 is completed, the medal management process subroutine is terminated, 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 a process of determining whether or not the settlement switch is ON. Specifically, the main CPU 301 performs a process of determining whether or not an operation of the payment button 9 by the player is detected by the payment switch 9sw. If it is determined that the settlement switch is ON (step S103-11 = Yes), the process proceeds to step S103-12, and if it is determined that the settlement switch is not ON (step S103). −11 = No), the medal management process subroutine is terminated, 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 a process of determining whether or not the value of the stored number counter is “1” or more. Specifically, the main CPU 301 performs a process of determining whether or not the value of the stored number counter provided in the main RAM 303 is “1” or more. If it is determined that the value of the stored number counter is “1” or more (step S103-12 = Yes), the process proceeds to step S103-13, and the value of the stored number counter is “1” or more. If it is determined that this is not the case (step S103-12 = No), the medal management process subroutine is terminated, 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 a process of setting the settlement start command in an 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 or the like indicating that a settlement process for returning medals 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 performs a process of determining whether or not the value of the insertion number counter is “1” or more. Specifically, the main CPU 301 performs a process of determining whether or not the value of the insertion number counter provided in the main RAM 303 is “1” or more. If it is determined that the value of the input number counter is “1” or more (step S103-14 = Yes), the process proceeds to step S103-15, and the value of the input number counter is “1” or more. If it is determined that this is not the case (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 controls to return “1” medals by driving the hopper 202 via the power supply board 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 performs a process of subtracting “1” from the value of the insertion number counter. Specifically, the main CPU 301 performs a process 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 a process of determining whether or not the value of the insertion number counter is “0”. Specifically, as a result of subtracting “1” from the value of the insertion number counter provided in the main RAM 303 by the processing of step S103-16, the main CPU 301 obtains the value of the insertion number counter provided in the main RAM 303. A process of determining whether or not “0” has been reached is performed. If it is determined that the value of the inserted number counter is “0” (step S103-17 = Yes), the process proceeds to step S103-19, and the value of the inserted number counter is not “0”. Is determined (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”. Run 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 a stored medal settlement process. Specifically, the main CPU 301 controls to return “1” medals by driving the hopper 202 via the power supply board 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 number counter provided in the main RAM 303, and as a result of performing the processing, it is determined whether or not the value of the stored number counter provided in the main RAM 303 is “0”. The same processing is repeatedly executed until it is determined that the value of the stored number counter provided in the main RAM 303 is “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 a process of setting the settlement end command in the effect transmission data storage area provided in the main RAM 303 in order to transmit the settlement end command to the sub-control board 400. . Here, the “payment end command” is information indicating that the bet medals have been returned to the player, or that the medals stored in the gaming machine 1 have been returned to the player. This command has information to that effect. When the process of step S103-19 is completed, the medal management process subroutine is terminated, and the process proceeds to step S104 of the main loop process.

(第1メダル投入チェック処理)
次に、図14に基づいて、図13のステップS103−3の処理により行われる第1メダル投入チェック処理についての説明を行う。なお、図14は第1メダル投入チェック処理のサブルーチンを示す図である。
(First medal insertion 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 shows a subroutine of the first medal insertion 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 S <b> 103-3-1, the main CPU 301 performs a process of determining whether or not a medal cannot 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 number counter provided in the main RAM 303 and the value of the inserted number counter is “53” or more. Perform the process. If it is determined that the value obtained by adding “1” to the value of the stored number counter and the value of the inserted number counter is “53” or more (step S103-3-1 = Yes), step The process proceeds to S103-3-2, and when it is determined that the value obtained by adding “1” to the value of the stored number counter and the value of the inserted number 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 a blocker OFF process. Specifically, the main CPU 301 controls the blocker 54 of the selector 14 to be turned 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 medals are inserted into the medal insertion slot 6 thereafter, they are not accepted by the hopper 202 and can be discharged to the medal payout opening 25. 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 with reference to 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. Further, the second control area of the second storage area 2200 is located at a location 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 this process, the main CPU 301 performs an error check process for input items (medals and the like). 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 returning to the first storage area. Specifically, the main CPU 301 performs a process of checking whether or not an error has been detected in the second medal insertion check process 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 first medal insertion check process by the program stored in the first control area 2110 of the first storage area 2100 In the second medal insertion check process by the program stored in the second control area 2210 of the second storage area 2200, it is checked whether or not an error has been detected. Then, when the process of step S103-3-4 ends, the process proceeds 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 for determining whether an error has been detected. Specifically, the main CPU 301 performs a process of determining whether or not an error has been detected in the error check process at the time of returning to the first storage area in step S103-3-4. When it is determined that an error has been detected (step S103-3-5 = Yes), the main CPU 301 proceeds to step S103-3-10 and determines that no error has been detected. In this 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 performs a process of determining whether or not the value of the insertion number counter is “3”. Specifically, the main CPU 301 performs a process of determining whether or not the value of the insertion number counter provided in the main RAM 303 is “3”. If it is determined that the value of the inserted number counter is “3” (step S103-3-6 = Yes), the process proceeds to step S103-3-8. If it is determined that it is not “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 a process of adding “1” to the value of the insertion number counter provided in the main RAM 303. Then, when the process of step S103-3-7 ends, the process proceeds 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 a process of adding “1” to the value of the stored number counter. Specifically, the main CPU 301 performs a process of adding “1” to the value of the stored number counter provided in the main RAM 303. Then, when the process of step S103-3-8 ends, the process proceeds 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 a process of setting the medal insertion command in an 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 having information indicating that a normal medal has been inserted into the medal insertion slot 6. When the process of step S103-3-9 ends, the first medal insertion check process subroutine 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 a medal insertion error detection process. Specifically, the main CPU 301 performs processing for displaying error information on the payout number display 16 or the like. In addition, a medal insertion error command having information indicating that a medal insertion error has been detected is set in an effect transmission data storage area provided in the main RAM 303. When the process of step S103-3-10 ends, the first medal insertion check process subroutine 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 insertion check process)
Next, the second medal insertion check process performed by the process of step S103-3-3 in FIG. 14 will be described based on FIG. FIG. 15 is a diagram showing a subroutine of second medal insertion check processing. Further, the second medal insertion check process is executed based on a program stored in the second control area 2210 of the second storage area 2200 and data (table or the like) 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 a register saving process. Specifically, the main CPU 301 performs processing for 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 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 last transferred register value is stored. The stack is an area secured on the memory, and is secured on the second work area 2260, for example. In this embodiment, the value of each register is cleared after transfer. Then, when the process of step S103-3-3-1 ends, the process proceeds to step S103-3-3-3.

(ステップ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-3)
In step S103-3-3-3, the main CPU 301 performs processing for setting a medal passage monitoring table. Specifically, the main CPU 301 stores a second medal passing sensor 62 and a second medal passing sensor 63 in the second data area 2220 of the second storage area 2200, and defines the correct passing order of medals. Processing to set the medal passage monitoring table is performed. Then, when the process of step S103-3-3-3 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 a medal passage monitoring process, which will be described in detail later with reference to 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 this process, the main CPU 301 performs a medal passage order, a medal retention determination process, and the like. Then, when the process of step S103-3-3-3 ends, the process proceeds to step S103-3-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-3-4, the main CPU 301 performs processing to determine whether an error has been detected. Specifically, the main CPU 301 performs a process of determining whether or not an error has been detected in the medal passage monitoring process of step S103-3-3-3. If it is determined that an error has been detected (step S103-3-3-3 = Yes), the main CPU 301 proceeds to step S103-3-3-3 and has not detected an error. Is determined (step S103-3-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-3-5, the main CPU 301 performs a process of determining whether or not the medal passage monitoring process is finished. Specifically, the main CPU 301 performs a process of determining whether or not the medal passage monitoring process in step S103-3-3-3 is completed. If it is determined that the medal passage monitoring process has ended (step S103-3-3-5 = Yes), the process proceeds to step S103-3-3-3, and the medal passage monitoring process ends. If it is determined that it is 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-3-6)
In step S103-3-3-3-6, the main CPU 301 performs medal passage monitoring end processing. Specifically, the main CPU 301 performs an end process for measuring the medal residence time. Then, when the process of step S103-3-3-3-6 ends, the process proceeds to step S103-3-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-3-7)
In step S103-3-3-3-7, the main CPU 301 performs medal retention error display request setting processing. Specifically, the main CPU 301 performs processing for setting a medal staying 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-3-7 ends, the process proceeds to step S103-3-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-3-8, the main CPU 301 performs processing for determining whether or not a medal retention error has been detected. Specifically, the main CPU 301 performs a process of determining whether or not the value of the medal stay flag in the second work area 2260 of the second storage area 2200 is ON. If it is determined that a medal retention error has been detected (step S103-3-3-8 = Yes), the process proceeds to step S103-3-3-10, and no medal retention error has been detected. Is determined (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-3-9, the main CPU 301 performs a medal illegal passing error display request setting process. Specifically, the main CPU 301 performs processing for setting an illegal medal 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-3-9 is completed, the process proceeds to step S103-3-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-3-10, the main CPU 301 performs a register restoration process. Specifically, the main CPU 301 performs a process of restoring the saved register value in the process 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 Based on the value of the SP register 1319, in the reverse order from the transfer from 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, A Transfer to the register 1311 and store. Then, when the process of step S103-3-3-10 ends, the second medal insertion check process ends, 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 in FIG. 15 will be described. FIG. 16 shows a subroutine for medal passage monitoring processing. As described above, 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.

(ステップ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 <b> 103-3-3-1, the main CPU 301 performs processing for referring to the signal states of the first medal passage sensor 62 and the second medal passage sensor 63. Specifically, the main CPU 301 refers to the values (the first medal passage sensor state value and the second medal passage sensor state value) of the medal passage sensor value storage area in the first work area 2160 of the first storage area 2100, 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 executed by the program stored in the first control area 2110 of the first storage area 2100 are described below. The input port value corresponding to the signal value of the second medal passage sensor 63 is stored as the first medal passage sensor state value and the 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に処理を移行する。
Further, before taking in the value of the medal passage sensor value storage area in the first work area 2160 of the first storage area 2100, the medal passage sensor value storage area in the second work area 2260 of the second storage area 2200 is stored. The current first medal passage sensor state value and the current second medal passage sensor state value are stored in the medal passage sensor value storage area in the second work area 2260 in the previous first medal passage sensor state value and the previous second medal passage sensor state value. I will remember it.
Then, when the process of step S103-3-3-3-1 ends, the process proceeds 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 performs processing to determine whether or not the value of the first medal passage sensor 62 is ON and the previous value of the first medal passage sensor 62 is OFF. . Specifically, the main CPU 301 determines whether or not the current 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. Perform the process. If it is determined that the first medal passage sensor state value is ON this time and the first medal passage sensor state value is OFF (step S103-3-3-3-2 = Yes), step S103 is performed. When the process proceeds to 3-3-3-3 and it is determined that the first medal passage sensor state value is ON this time or the previous first medal passage sensor state value is not OFF (step S103-3). 3-3-3- = 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 S <b> 103-3-3-3, the main CPU 301 performs processing for starting the medal dwell time measurement. Specifically, the main CPU 301 performs a process of clearing the medal dwell time value in the second work area 2260 of the second storage area 2200 and starting the medal dwell time update by the interrupt process. 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 a medal illegal passage determination process. Specifically, 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 based on the medal passage start table set in step S103-3-3-3. The medal passing sensor state value and the previous second medal passing sensor state value are compared, and processing for determining whether the medal has been illegally passed is performed.

例えば、今回状態組み合わせ(今回第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 (the combination of the current first medal passage sensor state value and the current second medal passage sensor state value; the same applies hereinafter) is “ON, OFF”, the previous state combination (previous first medal) If the combination of the passing sensor state value and the previous second medal passing sensor state value; When the current state combination is “ON, ON”, it is determined that the medal has 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 been illegally passed unless the previous state combination is “ON, ON” or “OFF, ON”. Further, when the current state combination is “OFF, OFF”, if the previous state combination is not “OFF, ON” or “OFF, OFF”, it is determined that the medal has been illegally passed.
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 a process of determining whether or not an illegal medal passage is detected. Specifically, the main CPU 301 performs processing for determining whether or not illegal medal passage has been detected in the illegal medal passage determination processing in step S103-3-3-3-4. If it is determined that an 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 medal illegal passage is detected. If it is determined that no detection has been made (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 processing for turning on the illegal medal passing flag. Specifically, the main CPU 301 performs a process of setting ON a medal illegal 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-3 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 a process of determining whether or not the medal residence time has reached or exceeded a predetermined medal residence 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に処理を移行する。
The medal dwell time is when the signal of the first medal passage sensor is turned on (when the first medal passage sensor state value was turned off last time and the first medal passage sensor state value was turned on this time). Time measurement is started, and the signals of the first medal passage sensor and the second medal passage sensor are turned OFF (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). The time until the medal passes between the first medal passage sensor 62 and the second medal passage sensor 63 is counted until the state value becomes OFF).
Then, when the process of step S103-3-3-3-7 is completed, 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 S <b> 103-3-3-3-8, the main CPU 301 performs processing for determining whether or not the medal is retained. Specifically, the main CPU 301 determines that the medal stays if the medal stay time is equal to or greater than the medal stay determination value in the medal stay determination process in step S103-3-3-3-7. If so, it is determined that the medal is not retained. If 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 this case (step S103-3-3-3-8 = No), the medal passage monitoring process is terminated, and the process proceeds to step S103-3-3-3 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 for setting the medal stay flag in the second work area 2260 of the second storage area 2200 to ON. When the process of step S103-3-3-3-9 is completed, the medal passage monitoring process is terminated, and the process proceeds to step S103-3-3-3 of the second medal insertion check process.

(内部抽選処理)
次に、図17に基づいて、図12のステップS107の処理により行われる内部抽選処理についての説明を行う。なお、図17は内部抽選処理のサブルーチンを示す図である。
(Internal lottery process)
Next, the internal lottery process performed by the process of step S107 of FIG. 12 will be described based on FIG. 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 a hard random number acquisition process. Specifically, the main CPU 301 performs processing for extracting the random number value generated by the main random number generator 304 and processing for storing the extracted random number value in a 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 obtaining an initial value of a winning number when determining a winning combination. Here, in the present embodiment, the main CPU 301 performs a process of acquiring “45” as the initial value of the winning number and storing it 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 a gaming state acquisition process. Specifically, the main CPU 301 performs processing for acquiring a 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 a process of setting a winning combination determination table provided in the main ROM 302 based on information related to the gaming state acquired in the gaming state acquisition process of step S107-3. Then, when the process of step S107-4 ends, the process proceeds 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 a lottery data acquisition process. Specifically, the main CPU 301 determines the winning combination corresponding to the winning number based on the winning combination determination table set by the winning combination determination table setting process in step S107-4 and the winning number stored in the register. The process which acquires the data concerned is performed. 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 a lottery value acquisition process. Specifically, the main CPU 301 determines the winning combination determination table currently set based on the value stored in the set 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. Then, when the process of step S107-6 ends, the process proceeds 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 a lottery confirmation process. Specifically, the main CPU 301 subtracts the lottery value acquired by the lottery value acquisition process in step S107-6 from the random number value stored in the register, and subtracts the value of the register in which the random number value is stored. The process of updating to the value after storage and storing it is performed. 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 a process of determining whether or not the winning is made. Specifically, the main CPU 301 performs a process of subtracting the lottery value acquired by the lottery value acquisition process of step S107-6 from the random value stored in the register by the lottery confirmation process of step S107-7. Then, a process for determining whether or not the value is negative is performed. If it is determined that the winning combination is made (step S107-8 = Yes), the winning combination is determined based on the winning number stored in the register, and then the internal lottery processing subroutine is terminated, and the main loop processing is performed. The process proceeds to step S108. On the other hand, when it is determined that the winning is not made (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 performs a process of subtracting “1” from the value of the winning number. Specifically, the main CPU 301 performs a process 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 for determining 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 is “0” as a result of subtracting “1” from the winning number value stored in the register by the process of step S107-9. Perform the process. If it is determined that the value of the winning number is “0” (step S107-10 = Yes), after “losing” is determined as the winning combination, the internal lottery processing subroutine is terminated, 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, the first medal payout process performed by the process of step S115 of FIG. 12 will be described based on FIG. FIG. 18 is a diagram showing a subroutine of the first medal payout process.

(ステップ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 a process of determining whether or not the re-game in-operation flag is ON. Specifically, the main CPU 301 performs a process of determining whether or not the re-game operation flag is ON based on the value of the re-game operation flag storage area provided in the main RAM 303. If it is determined that the re-game operating flag is ON (step S115-1 = Yes), the process proceeds to step S115-3, and it is determined that the re-game operating 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 for setting a remaining payout number counter. Specifically, the main CPU 301 performs processing for setting the calculated payout number value 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 determines whether or not the value of the remaining payout number counter is “1” or more. Specifically, the main CPU 301 performs a process of determining whether or not the value of the remaining payout number counter set in the register is “1” or more by the process of step S115-2. If it is determined that the value of the remaining payout number counter is “1” or more (step S115-3 = Yes), the process proceeds to step S115-4, and the value of the remaining payout number counter is “1”. If it is determined that it is not greater than or equal to “No” (step S115-3 = No), the subroutine of the first medal payout process is terminated, 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 for starting the payout of medals. 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 performs a process of determining whether or not the value of the stored number counter is “50”. Specifically, the main CPU 301 performs a process of determining whether or not the value of the stored number counter provided in the main RAM 303 is “50”. If it is determined that the value of the stored number counter is “50” (step S115-5 = Yes), the process proceeds to step S115-7, and the value of the stored number counter is not “50”. (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 a process of adding “1” to the value of the stored number counter. Specifically, the main CPU 301 performs a process of adding “1” to the value of the stored 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 performs a single medal payout process, which will be described in detail later with reference to FIG. In this process, the main CPU 301 controls the payout of “1” medals by driving the hopper 202 via the power supply board 200. 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 a process of adding “1” to the value of the acquired number counter. Specifically, the main CPU 301 performs a process of adding “1” to the value of the acquired 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 a process of subtracting “1” from the value of the remaining payout number counter. Specifically, the main CPU 301 performs 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 a process of determining whether or not the value of the remaining payout number counter is “0” or less. Specifically, the main CPU 301 determines whether or not the value of the remaining payout number counter is equal to or less than “0” as a result of subtracting “1” from the value of the remaining payout number counter in the process of step S115-9. I do. If it is determined that the value of the remaining payout number counter is “0” or less (step S115-10 = Yes), the process proceeds to step S115-11, and the value of the remaining payout number counter is “0”. If it is determined that it is not 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 indicating that the payout of medals has ended. When the process of step S115-11 ends, the first medal payout process subroutine ends, and the process proceeds to step S116 of the main loop process.

(メダル一枚払出処理)
次に、図19に基づいて、図18のステップS115−7の処理により行われるメダル一枚払出処理についての説明を行う。なお、図19はメダル一枚払出処理のサブルーチンを示す図である。
(Single medal payout process)
Next, based on FIG. 19, the medal single payout process performed by the process of step S115-7 of FIG. 18 will be described. FIG. 19 is a diagram showing a subroutine for a single medal 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 performs processing for saving 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 a process of determining whether or not the hopper motor 91 is being driven. If it is determined that the hopper motor 91 is being driven (step S115-7-2 = Yes), the process proceeds to step S115-7-5, and it is determined that the hopper motor 91 is not being driven. 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 a process of driving the hopper motor 91. The main CPU 301 turns on the hopper motor driving flag in the first work area 2160 of the first storage area 2100 when driving the hopper motor 91. Further, when stopping the hopper motor 91, the main CPU 301 turns off the hopper motor driving flag in the first work area 2160 of the first storage area 2100. 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 S <b> 115-7-4, the main CPU 301 performs processing for starting the time for driving the hopper motor 91. Specifically, the main CPU 301 performs processing for clearing the value of the hopper motor driving time in the first work area 2160 of the first storage area 2100 and starting updating of the hopper motor driving time by 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 a process of determining whether or not 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 process is 6000 ms or more. If it is determined that the hopper motor driving time is 6000 ms or longer (step S115-7-5 = Yes), the process proceeds to step S115-7-6, and the hopper motor driving time is not 6000 ms or longer. (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 a payout error process. Specifically, the main CPU 301 performs payout error processing when the medal in the hopper 202 is empty. The main CPU 301 also stops driving the hopper motor 91. Along with this, the main CPU 301 also stops counting the hopper motor driving time and clears the value of the hopper motor driving time. When the process of step S115-7-6 ends, the medal single payout process subroutine ends, and the process proceeds 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 a second medal payout process, which will be described in detail later 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. Further, the second control area 2210 of the second storage area 2200 is provided at a location corresponding to step S115-7-7 of the program for performing the single medal payout 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 payout process stored in the table is defined in advance. In this process, the main CPU 301 performs a medal clogging determination process and the like. Then, when 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 upon returning to the first storage area. Specifically, the main CPU 301 performs a process of checking whether or not an error has been detected in the second medal payout process 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 single medal payout process by the program stored in the first control area 2110 of the first storage area 2100, In the second medal payout process by the program stored in the second control area 2210 of the second storage area 2200, it is checked whether or not an error has been 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 for determining whether an error has been detected. Specifically, the main CPU 301 performs a process of determining whether or not an error has been detected in the error check process at the time of returning to the first storage area in step S115-7-8. When it is determined that an error has been detected (step S115-7-9 = Yes), the main CPU 301 proceeds to step S115-7-10 and determines that no error has been detected. In that 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 a payout error process. Specifically, the main CPU 301 performs payout error processing when medals are jammed in the hopper 202. In addition, a payout error command having information indicating that a payout error has been detected is set in an effect transmission data storage area provided in the main RAM 303. The main CPU 301 also stops driving the hopper motor 91. Along with this, the main CPU 301 also stops counting the hopper motor driving time and clears the value of the hopper motor driving time. When the process of step S115-7-10 ends, the medal single payout process subroutine ends, 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 for determining 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 performs processing for determining whether or not the payout sensor signal is ON. If it is determined that the payout sensor signal is ON (step S115-7-11 = Yes), the main CPU 301 shifts the process 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 for determining whether or not the payout sensor flag is OFF. Specifically, the main CPU 301 performs processing for determining whether or not the payout sensor flag stored in the first work area 2160 of the first storage area 2100 is OFF. If the main CPU 301 determines that the payout sensor flag is OFF (step S115-7-12 = Yes), the main CPU 301 proceeds to step S115-7-13, and 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 processing for turning on the payout sensor flag. Specifically, the main CPU 301 performs processing for setting the payout sensor flag in the first work area 2160 of the first storage area 2100 to ON. Then, when the process of step S115-7-13 ends, the process proceeds 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 for starting time counting of the payout sensor continuation time. Specifically, the main CPU 301 performs a process of clearing the value of the payout sensor duration in the first work area 2160 of the first storage area 2100 and starting to update the payout sensor duration by the interrupt process. 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 duration has become 6 ms or longer. If the main CPU 301 determines that the payout sensor duration is 6 ms or longer (step S115-7-15 = Yes), the main CPU 301 shifts the processing to step S115-7-16, and the payout sensor duration time. If it is determined that it is not 6 ms or longer (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 S <b> 115-7-16, the main CPU 301 performs processing for ending the driving time of the hopper motor 91. Specifically, the main CPU 301 performs a process of stopping the update of the hopper motor driving time by the interruption process and clearing the value of the hopper motor driving time. Then, when the process of step S115-7-16 ends, the process proceeds 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 for determining whether or not the payout sensor flag is ON. Specifically, the main CPU 301 performs a process of determining whether or not the payout sensor flag stored in the first work area 2160 of the first storage area 2100 is ON. If the main CPU 301 determines that the payout sensor flag is ON (step S115-7-17 = Yes), the main CPU 301 proceeds 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 for turning off the payout sensor flag. Specifically, the main CPU 301 performs processing for setting the payout sensor flag in the first work area 2160 of the first storage area 2100 to OFF. 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 a process of determining whether or not the payout sensor duration has become 6 ms or longer. If the main CPU 301 determines that the payout sensor duration is 6 ms or longer (step S115-7-19 = Yes), the main CPU 301 shifts the processing to step S115-7-20, and the payout sensor duration time. If it is determined that it is not 6 ms or longer (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 S <b> 115-7-20, the main CPU 301 performs a process of starting to measure the driving time of the hopper motor 91. Specifically, the main CPU 301 performs processing for clearing the value of the hopper motor driving time in the first work area 2160 of the first storage area 2100 and starting updating of the hopper motor driving time by 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 for returning the remaining payout number. Specifically, in step S115-7-1, the main CPU 301 performs a process for returning the evacuated remaining payout number. 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 performs a process of subtracting “1” from the value of the remaining payout number. Specifically, the main CPU 301 performs a process of subtracting “1” from the value of the remaining payout number set in the register. Then, when the process of step S115-7-22 is completed, the process proceeds 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 performs a process of determining whether or not the value of the remaining payout number is “0”. Specifically, the main CPU 301 determines whether or not 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. If 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 “ If it is determined that it is not “0” (step S115-7-23 = No), the medal single payout process subroutine is terminated, 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 a process of stopping the driving of the hopper motor 91. Along with this, the main CPU 301 also stops counting the hopper motor driving time and clears the value of the hopper motor driving time. When the process of step S115-7-24 is completed, the medal single payout process subroutine is terminated, 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, the second medal payout process performed by the process of step S115-7-7 in FIG. 19 will be described based on FIG. FIG. 20 is a diagram showing a subroutine of the second medal payout process. Further, the second medal payout process is executed based on a 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 a register saving process. Specifically, the main CPU 301 performs 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 a process of determining whether or not the hopper motor 91 is being driven. 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 being driven. If the hopper motor driving flag is not ON (OFF), it is determined that the hopper motor 91 is not being driven (stopped). If the main CPU 301 determines that the hopper motor 91 is being driven, the main CPU 301 proceeds to step S115-7-7-3. If the main CPU 301 determines that the hopper motor 91 is not being driven, the main CPU 301 proceeds to step S115-7-7-3. The process proceeds to 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 for determining 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. If the payout sensor state value is ON, the main CPU 301 determines that the payout sensor signal is ON. If the payout sensor state value is not ON (if OFF), it is determined that the payout sensor signal is not ON (OFF). If the main CPU 301 determines that the payout sensor signal is ON, the main CPU 301 proceeds to step S115-7-7-7. If the main CPU 301 determines that the payout sensor signal is not ON, step S115- The process proceeds 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 area payout sensor flag is ON. Specifically, the main CPU 301 performs a process of determining whether or not the second area payout sensor flag stored in the second work area 2260 of the second storage area 2200 is ON. If the main CPU 301 determines that the second area payout sensor flag is ON (step S115-7-7-4 = Yes), the main CPU 301 proceeds 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 S <b> 115-7-7-5, the main CPU 301 performs processing for ending the driving time of the hopper motor 91 for the second region. Specifically, the main CPU 301 stops the update of the second area hopper motor drive time by the interrupt process and performs a process of clearing the value of the second area 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 the second area payout sensor flag in the second work area 2260 of the second storage area 2200 to OFF. 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 area payout sensor flag is OFF. Specifically, the main CPU 301 performs processing for determining whether or not the second area payout sensor flag stored in the second work area 2260 of the second storage area 2200 is OFF. If the main CPU 301 determines that the second area payout sensor flag is OFF (step S115-7-7-7 = Yes), the main CPU 301 proceeds to step S115-7-7-8. If it is determined that the second area 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 S <b> 115-7-7-8, the main CPU 301 performs processing to start measuring the driving time of the hopper motor 91 for the second region. 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 interrupt process. Process 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 performs processing for setting the second area payout sensor flag in the second work area 2260 of the second storage area 2200 to ON. 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 a process of determining whether or not the second region hopper motor driving time is 60 ms or longer. When it is determined that the second region hopper motor driving time is 60 ms or longer (step S115-7-7-10 = Yes), the main CPU 301 performs the process in step S115-7-7-11. If it is determined that the second region hopper motor drive time is not 60 ms or longer (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 the medal clogging flag in the second work area 2260 of the second storage area 2200 to ON. 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 a register restoration process. Specifically, the main CPU 301 performs a process of restoring the saved register value 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 medal single payout process returns, and the process proceeds to step S115-7-8.

(遊技状態移行処理)
次に、図21に基づいて、図12のステップS116の処理により行われる遊技状態移行処理についての説明を行う。なお、図21は遊技状態移行処理のサブルーチンを示す図である。
(Game 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 for determining whether or not the bonus operating flag is ON. Specifically, the main CPU 301 determines whether at least one of the BB operating flag and the RB operating flag in the bonus operating flag storage area provided in the main RAM 303 is ON. Here, in the present embodiment, the main CPU 301 determines that the bonus is obtained when at least one of the BB operating flag and the RB operating flag in the bonus operating flag storage area provided in the main RAM 303 is ON. Processing for determining that the operating flag is ON is performed, and when the BB operating flag and the RB operating flag in the bonus operating flag storage area provided in the main RAM 303 are OFF, the bonus operating flag is A process for determining that it is not ON is performed. When it is determined that the bonus operating flag is ON (step S116-1 = Yes), the process proceeds to step S116-2, and when 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 performs a bonus operating process which will be described in detail later with reference to FIG. In this process, the main CPU 301 performs a process of subtracting the value of the payout number counter provided in the main RAM 303. When the process of step S116-2 is completed, the gaming state transition process subroutine is terminated, 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 a process of determining whether or not a combination of symbols related to the bonus is displayed on the active line. Specifically, the main CPU 301 performs a process of determining whether or not “the combination of symbols related to the bonus” is displayed on the active line. If it is determined that the symbol combination related to the bonus is displayed on the active line (step S116-3 = Yes), the process proceeds to step S116-4, and the symbol combination related to the bonus is the active line. If it is determined that it is not displayed above (step S116-3 = No), the gaming state transition process subroutine is terminated, 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 a bonus operating flag update process. Specifically, when the “combination of symbols related to BB” is displayed on the active line, the main CPU 301 turns on the BB operating flag in the bonus operating flag storage area provided in the main RAM 303. When the “RB combination” is displayed on the active line, the RB operating flag in the bonus operating flag storage area provided in the main RAM 303 is turned ON. . 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, the main CPU 301 sets a predetermined value to the value of the payout number counter provided in the main RAM 303 when “the combination of symbols related to BB” is displayed on the active line. The process of clearing the value of the carry flag storage area provided in the main RAM 303, the process of setting the value of the game possible number counter provided in the main RAM 303, and the value of the winning number counter provided in the main RAM 303 When the “set of symbols related to RB” is displayed on the active line, the process of clearing the carry flag storage area provided in the main RAM 303 is provided in the main RAM 303. A process for setting the value of the available game counter is provided in the main RAM 303. The process of setting the value of the winning number of times counter you're done. When the process of step S116-5 is completed, the gaming state transition process subroutine is terminated, 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, the bonus operation in-process performed by the process of step S116-2 of FIG. 21 will be described. 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 for determining whether or not the BB operating flag is ON. Specifically, the main CPU 301 determines whether or not the BB operating flag in the bonus operating flag storage area provided in the main RAM 303 is ON. 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)
In step S116-2-2, the main CPU 301 performs a payout number counter update process. Specifically, the main CPU 301 performs a process of subtracting the payout number of medals calculated by the display determination process in step S114 from the value of the payout number 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 performs a process of determining whether or not the value of the payout number counter is less than “0”. Specifically, the main CPU 301 pays out medals calculated by the display determination process in step S114 from the value of the payout number counter provided in the main RAM 303 by the payout number counter update process in step S116-2-2. As a result of subtracting the number of sheets, processing is performed to determine whether or not the value of the payout number counter has become a negative value. If 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 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 BB end processing. Specifically, the main CPU 301 performs processing for clearing the value of the payout number counter provided in the main RAM 303 and the value in the bonus operating flag storage area provided in the main RAM 303, and also provided in the main RAM 303. A process for setting information relating to the RT gaming state in the gaming state storage area is performed. When the process of step S116-2-4 is completed, the subroutine for the bonus operating process is terminated, 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 a process of subtracting “1” from the value of the possible game number counter. Specifically, the main CPU 301 performs 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 a process of determining whether or not the value of the possible game number counter is “0”. Specifically, the main CPU 301 subtracts “1” from the value of the game possible number counter provided in the main RAM 303 by the process of step S116-2-5, and as a result, the number of possible games provided in the main RAM 303 is obtained. Processing for determining whether or not the value of the counter is “0” is performed. If it is determined that the value of the game possible number counter is “0” (step S116-2-6 = Yes), the process proceeds to step S116-2-10, and the value of the game possible number counter is set. 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 a process of determining whether or not a prize has been won. Specifically, the main CPU 301 performs a process of determining whether or not “a combination of symbols related to winning” is displayed on the active line. If it is determined that a prize has been won (step S116-2-7 = Yes), the process proceeds to step S116-2-8. If it is determined that a prize has not been won (step S116-2). -7 = No), the bonus operating process subroutine is terminated, and the process proceeds to step S101 of the main loop process.

(ステップ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 a process of subtracting “1” from the value of the winning number 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 step S116-2-8 ends, the process proceeds 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 a process of determining whether or not the value of the winning number counter is “0”. Specifically, the main CPU 301 subtracts “1” from the value of the winning number counter provided in the main RAM 303 by the processing of step S116-2-8, and as a result, the main CPU 301 determines the number of winning number counters provided in the main RAM 303. Processing for determining whether or not the value is “0” is performed. When it is determined that the value of the winning number counter is “0” (step S116-2-9 = Yes), the process proceeds to step S116-2-10, and the value of the winning number counter is “ If it is determined that it is not “0” (step S116-2-9 = No), the bonus operating process subroutine is terminated, and the process proceeds to step S101 of the main loop process.

(ステップ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 operation during BB. Specifically, the main CPU 301 performs a process of setting a predetermined value in a winning number counter provided in the main RAM 303 and a process of setting a predetermined value in a possible game number counter provided in the main RAM 303. I do. When the process of step S116-2-10 is completed, the subroutine for the bonus operating process is terminated, 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 performs a process of subtracting “1” from the value of the possible game number counter. Specifically, the main CPU 301 performs 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 a process of determining whether or not the value of the possible game number counter is “0”. Specifically, the main CPU 301 subtracts “1” from the value of the game possible number counter provided in the main RAM 303 by the process of step S116-2-11, and as a result, the number of possible games provided in the main RAM 303. Processing for determining whether or not the value of the counter is “0” is performed. If it is determined that the value of the game possible number counter is “0” (step S116-2-12 = Yes), the process proceeds to step S116-2-16, and the value of the game possible number counter is set. 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 for determining whether or not a prize has been won. Specifically, the main CPU 301 performs a process of determining whether or not “a combination of symbols related to winning” is displayed on the active line. If it is determined that a prize has been won (step S116-2-13 = Yes), the process proceeds to step S116-2-14, and if it is determined that no prize has been won (step S116-2). -13 = No), the bonus operating process subroutine is terminated, and the process proceeds to step S101 of the main loop process.

(ステップ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 a process of subtracting “1” from the value of the winning number 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 a process of determining whether or not the value of the winning number counter is “0”. Specifically, the main CPU 301 subtracts “1” from the value of the winning number counter provided in the main RAM 303 by the processing of step S116-2-14, and as a result, the main CPU 301 determines the number of winning number counters provided in the main RAM 303. Processing for determining whether or not the value is “0” is performed. When it is determined that the value of the winning number counter is “0” (step S116-2-15 = Yes), the process proceeds to step S116-2-16, and the value of the winning number counter is “ If it is determined that it is not “0” (step S116-2-15 = No), the bonus operating process subroutine is terminated, and the process proceeds to step S101 of the main loop process.

(ステップ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 processing for setting information related to the RT gaming state in the gaming state storage area provided in the main RAM 303. When the process of step S116-2-16 is completed, the bonus operating process subroutine is terminated, and the process proceeds to step S101 of the main loop process.

(割込処理)
次に、図23、図24に基づいて、割込処理についての説明を行う。ここで、割込処理は、メインループ処理に対して、「1.49ms」毎に割り込んで行われる処理である。
(Interrupt processing)
Next, the interrupt process will be described with reference to FIGS. 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 S <b> 201, the main CPU 301 performs processing for saving a register. Specifically, the main CPU 301 performs processing for saving the value of the register used at the time of step S201. Then, when the process of step S201 ends, the process proceeds 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 for receiving various signals from the status board 100, the reel control board 150, and the power supply board 200. In the input port reading process, the main CPU 301 reads the input port information referred to by the program stored in the second control area 2210 from the input port and stores it in the first work area 2160 of the first storage area 2100. Remember. For example, the main CPU 301 uses the values of the input ports corresponding to the signal values of the first medal passage sensor 62 and the second medal passage sensor 63 in the first medal passage sensor state in the first work area 2160 of the first storage area 2100. Value and the second medal passage 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 the 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 in the first work area 2160 of the first storage area 2100 as the payout sensor state value. Then, when the process of step S202 ends, the process proceeds 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 a counting process for a timer that is being timed. For example, if the driving time of the hopper motor 91 is being measured, the main CPU 301 performs a counting process 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 a reel drive control process. 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”, thereby Rotation acceleration, constant speed, deceleration control, etc. are performed. Next, the main CPU 301 performs a process of subtracting “1” from the reel number, and drives the intermediate stepping motor 152 corresponding to the reel number “2”, thereby controlling acceleration, constant speed, and deceleration of the rotation of the intermediate reel 19. Etc. Next, the main CPU 301 performs a process of subtracting “1” from the reel number and drives the left stepping motor 151 corresponding to the reel number “1”, thereby controlling the acceleration, constant speed, and deceleration of the rotation of the left reel 18. Etc. Then, when the process of step S204 ends, the process proceeds 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 output port data of the external concentration terminal board 30 and the like. Then, when the process of step S205 ends, the process proceeds 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 number display unit 15 and the payout number display unit 16, and based on the generated display data, the stored number display unit 15 and the payout number display unit. 16 control is performed. Then, when the process of step S206 ends, the process proceeds 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. Then, when the process of step S207 ends, the process proceeds 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. Note that the program stored in the second control area 2210 does not perform a process of transmitting a signal to the output port. Then, when the process of step S208 ends, the process proceeds 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 this process, the main CPU 301 performs an error check process for checking various input errors. For example, the main CPU 301 performs a door opening check process for checking door opening. Then, when the process of step S209 ends, the process proceeds 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 performs a second storage area interrupt process, which will be described in detail later 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. Further, the second control area 2210 stored in the second control area 2210 of the second storage area 2200 is provided at a location corresponding to step S210 of the program that performs the interrupt process stored in the first control area 2110 of the first storage area 2100. An address for calling a program that performs storage area interrupt processing is defined in advance. In this process, the main CPU 301 performs an interrupt process or the like in the second storage area. Further, in the present embodiment, the second storage area interrupt process is executed in the middle of the interrupt process, but “program stored in the second control area 2210 of the second storage area 2200” The second storage area interrupt process that is executed by calling and the interrupt process that is executed by calling the program stored in the first control area 2110 of the first storage area 2100 are separately performed. Alternatively, it may be executed independently. Then, when the process of step S210 ends, the process proceeds 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 to the first storage area. Specifically, the main CPU 301 performs a process of checking whether an error is detected in the second storage area interrupt process 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, the error flag stored in the second work area 2260 of the second storage area 2200 is referred to, so that the second It is checked whether or not an error has been detected in the second storage area interrupt process by the program stored in the second control area 2210 of the storage area 2200. Then, when the process of step S211 is completed, the process proceeds 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 for determining whether an error has been detected. Specifically, the main CPU 301 performs a process of determining whether or not an error has been detected in the error check process at the time of returning to the first storage area in step S211. When it is determined that an error has been detected (step S212 = Yes), the main CPU 301 proceeds to step S213, and when it is determined that no error has been detected (step S212 = No). ), And the process proceeds to step S214.

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

(第2記憶領域割込処理)
次に、図25に基づいて、図24のステップS210の処理により行われる第2記憶領域割込処理についての説明を行う。なお、図25は第2記憶領域割込処理のサブルーチンを示す図である。また、第2記憶領域割込処理は、第2記憶領域2200の第2制御領域2210に記憶されたプログラムに基づいて、実行される。
(Second storage area interrupt process)
Next, the second storage area interrupt process performed by the process of step S210 of FIG. 24 will be described based on FIG. FIG. 25 is a diagram showing a subroutine of the second storage area interrupt process. Further, the second storage area interrupt process is executed based on a 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 a register saving process. Specifically, the main CPU 301 performs processing for saving the value of the register used at the time of step S401. This register saving process is the same as the register saving process in step S103-3-3-1 of the second medal insertion 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 a timer measurement process. Specifically, the main CPU 301 performs a counting process for a timer that is being timed in the second storage area 2200. For example, if the driving time of the hopper motor 91 is being measured in the second storage area 2200, the main CPU 301 performs a counting process of this driving time. In the timer counting process in the timer measurement process in step S402 and the timer counting process in the timer measurement process in step S203 of the interrupt process, a subroutine that is a program having the same contents is called. The timer counting process 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 timer counting process 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. Then, when the process of step S402 ends, the process proceeds 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 this processing, the main CPU 301 performs various input error (input error, payout error) inspection processing and the like. 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 a register restoration process. Specifically, the main CPU 301 performs a process of restoring the saved register value in the process of step S401. This register restoration process is the same as the register restoration process in step S103-3-3-10 of the second medal insertion check process. Then, 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, the second storage area input error check process performed by the process of step S403 of FIG. 25 will be described based on FIG. FIG. 26 is a diagram showing a subroutine of second storage area input error check processing. Further, 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 S <b> 403-1, the main CPU 301 performs a process of determining whether or not it is an insertion error or a payout error. Specifically, the main CPU 301 searches the input error flag (including the passing error flag) and the payout error flag in the second work area 2260 of the second storage area 2200, and the input error flag or the payout error flag is ON. The process which determines whether or not is performed. If it is determined that the input 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 S404, and if 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 a closing sensor error check process that will be described in detail later with reference to FIG. In this process, the main CPU 301 performs a process for determining an error related to medal insertion (an error in the selector 14). 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 payout sensor error check processing, which will be described in detail later with reference to FIG. In this process, the main CPU 301 performs a process for determining an error related to the payout of medals (an error in the hopper 202). When the process of step S403-3 ends, the second storage area input error check process ends, and the process proceeds to step S404 of the second storage area interrupt process.

(投入センサエラーチェック処理)
次に、図27に基づいて、図26のステップS403−2の処理により行われる投入センサエラーチェック処理についての説明を行う。なお、図27は投入センサエラーチェック処理のサブルーチンを示す図である。また、上記のように、投入センサエラーチェック処理も、第2記憶領域2200の第2制御領域2210に記憶されたプログラムを呼び出すことにより実行される。
(Insertion sensor error check processing)
Next, based on FIG. 27, the insertion 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. Further, 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 for determining whether or not the blocker 54 is in an 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 and permits the blocker 54 in the first work area 2160 to be turned on. When the control state value of ON is stored and the insertion of medals is not permitted, the blocker 54 is controlled to be OFF and OFF is stored as 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に処理を移行する。   If 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 performs processing for determining whether or not the blocker flag is OFF. Specifically, the main CPU 301 determines whether or not the value of the blocker flag stored in the second work area 2260 of the second storage area 2200 is OFF. If it is determined that the blocker flag value is OFF (step S403-2-2 = Yes), the process proceeds to step S403-2-3, and it is determined that the blocker flag value is not OFF. If (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 for ending the blocker OFF time measurement. 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 blocker OFF time value in the second work area 2260 of the second storage area 2200. Process. 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 the blocker flag in the second work area 2260 of the second storage area 2200 to ON. 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 performs processing for determining whether or not the blocker flag is ON. Specifically, the main CPU 301 determines whether or not the value of the blocker flag stored in the second work area 2260 of the second storage area 2200 is ON. If it is determined that the blocker flag value is ON (step S403-2-5 = Yes), the process proceeds to step S403-2-6, and it is determined that the blocker flag value is not ON. If (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 performs processing for starting time measurement of the blocker OFF time. Specifically, the main CPU 301 clears the blocker OFF time value 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. Process. Then, when the process of step S403-2-6 ends, the process proceeds 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 for turning off the blocker flag. Specifically, the main CPU 301 performs processing for 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 performs processing for determining whether or not the blocker OFF time is 500 ms or longer. 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 reached 500 ms or more. If it is determined that the blocker OFF time is 500 ms or longer (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 longer. If (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 determines whether or not 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 or not the signal of the first medal passage sensor 62 is ON. Determine. As described above, the main CPU 301 inputs a signal from the first medal passing sensor 62 in the program stored in the first control area 2110 of the first storage area 2100 (corresponding to the first medal passing sensor 62). When the value of the input port is ON), ON is stored in the first medal passage sensor state value in the first work area 2160, and a 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に処理を移行する。   If 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 processed. Is determined not to be 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 a process of determining whether or not 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 or not the signal of the second medal passage sensor 63 is ON. Determine. As described above, the main CPU 301 inputs a signal from the second medal passage sensor 63 in the program stored in the first control area 2110 of the first storage area 2100 (corresponding to the second medal passage sensor 63). When the value of the input port is 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 processed. If it is determined that the signal 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 a passing error flag setting process. Specifically, the main CPU 301 performs processing for setting the passing error flag in the second work area 2260 of the second storage area 2200 to ON. 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 a process of determining whether or not 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. To do. As described above, the main CPU 301 inputs a signal from the medal insertion detection sensor 61 in the program stored in the first control area 2110 of the first storage area 2100 (input port corresponding to the medal insertion detection sensor 61). Is turned 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) 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に処理を移行する。   If 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 determined. Is determined not to be 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 for determining whether or not the insertion detection sensor flag is ON. Specifically, the main CPU 301 determines whether or not the value of the input detection sensor flag stored in the second work area 2260 of the second storage area 2200 is ON. If it is determined that the value of the input detection sensor flag is ON (step S403-2-13 = Yes), the process proceeds to step S403-2-14, and the value of the input detection sensor flag is ON. If it is determined that it is not (step S403-2-13 = No), the input sensor error check process is terminated, 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 a process of ending the counting of the on-detection sensor ON time. Specifically, the main CPU 301 stops the updating of the ON detection sensor ON time by the timer measurement process in the second storage area interrupt process, and the ON detection sensor is ON in the second work area 2260 of the second storage area 2200. Performs 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 making detection sensor flag. Specifically, the main CPU 301 performs a process of setting the input detection sensor flag in the second work area 2260 of the second storage area 2200 to OFF. When the process of step S403-2-15 is completed, the insertion sensor error check process is terminated, 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 for determining whether or not the input detection sensor flag is OFF. Specifically, the main CPU 301 determines whether or not the value of the input detection sensor flag stored in the second work area 2260 of the second storage area 2200 is OFF. If it is determined that the value of the input detection sensor flag is OFF (step S403-2-16 = Yes), the process proceeds to step S403-2-17, and the value of the input detection sensor flag is OFF. If it is determined that it is 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 for starting time counting of the input detection sensor ON. Specifically, the main CPU 301 clears the value of the ON detection sensor ON time in the second work area 2260 of the second storage area 2200, and the ON detection sensor is ON by the timer measurement process in the second storage area interrupt process. Process to start time update. 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 input detection sensor flag. Specifically, the main CPU 301 performs a process of setting the input detection sensor flag in the second work area 2260 of the second storage area 2200 to ON. 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 a process of determining whether or not the on-detection sensor ON time is 1500 ms or more. Specifically, the main CPU 301 determines whether or not the ON detection sensor ON time stored in the second work area 2260 of the second storage area 2200 is 1500 ms or longer. If it is determined that the on-detection sensor ON time is 1500 ms or longer (step S403-2-19 = Yes), the process proceeds to step S403-2-20, and the on-detection sensor ON time is on. If it is determined that it is not 1500 ms or longer (step S403-2-19 = No), the insertion sensor error check process is terminated, 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 the 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 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.

(払出センサエラーチェック処理)
次に、図28に基づいて、図26のステップS403−3の処理により行われる払出センサエラーチェック処理についての説明を行う。なお、図28は払出センサエラーチェック処理のサブルーチンを示す図である。また、上記のように、払出センサエラーチェック処理も、第2記憶領域2200の第2制御領域2210に記憶されたプログラムを呼び出すことにより実行される。
(Discharge sensor error check process)
Next, the payout sensor error check process performed by the process of step S403-3 of FIG. 26 will be described based on FIG. FIG. 28 is a diagram showing a subroutine of payout sensor error check processing. Further, 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 for determining whether or not 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. The main CPU 301 stores ON in the hopper motor operation state value in the first work area 2160 when operating the hopper motor 91 in the program stored in the first control area 2110 of the first storage area 2100. When the hopper motor 91 is stopped, 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に処理を移行する。   If 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 detected (step S403-3-1 = No), the payout sensor error check process is terminated, 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 a process of determining whether or not the signal from 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, the main CPU 301 inputs a signal from the payout sensor 92 in the program stored in the first control area 2110 of the first storage area 2100 (the value of the input port corresponding to the payout sensor 92 is ON). Is stored in the payout sensor state value in the first work area 2160, and the signal from the payout sensor 92 is not input (the value of the input port corresponding to the payout sensor 92 is OFF). OFF is stored in the payout sensor state value in one work area 2160.

そして、払出センサ92の信号がONであると判定された場合には(ステップS403−3−2=Yes)、ステップS403−3−6に処理を移行し、払出センサ92の信号がONでないと判定された場合には(ステップS403−3−2=No)、ステップS403−3−3に処理を移行する。   If 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 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 a process of determining whether or not the second area payout sensor flag is ON. Specifically, the main CPU 301 determines whether or not the value of the second area payout sensor flag stored in the second work area 2260 of the second storage area 2200 is ON. If 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 made. 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 terminated, 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 S 403-3-4, the main CPU 301 performs processing for ending the counting of the payout sensor detection time during motor OFF. Specifically, the main CPU 301 stops updating of the motor OFF payout sensor detection time by the timer measurement process in the second storage area interrupt process, and the motor OFF payout in the second work area 2260 of the second storage area 2200 Processing to clear the value of sensor detection time is performed. 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 the second area payout sensor flag in the second work area 2260 of the second storage area 2200 to OFF. When the process of step S403-3-5 is completed, the payout sensor error check process is terminated, 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 a process of determining whether or not the second area payout sensor flag is OFF. Specifically, the main CPU 301 determines whether or not the value of the second area payout sensor flag stored in the second work area 2260 of the second storage area 2200 is OFF. 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 made. 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 a process of starting the counting of the payout sensor detection time during motor OFF. Specifically, the main CPU 301 clears the motor OFF payout sensor detection time value in the second work area 2260 of the second storage area 2200, and the motor OFF payout by the timer measurement process in the second storage area interrupt process. Processing to start updating 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 performs processing for setting the second area payout sensor flag in the second work area 2260 of the second storage area 2200 to ON. 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 payout sensor detection time during motor OFF 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 longer. If it is determined that the payout sensor detection time during motor OFF is 7.5 ms or longer (step S403-3-9 = Yes), the process proceeds to step S403-3-10, and payout during motor OFF is performed. If it is determined that the sensor detection time is not 7.5 ms or longer (step S403-3-9 = No), the payout sensor error check process is terminated, and the process proceeds to step S404 of the second storage area interrupt process. To 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 a payout error flag setting process. Specifically, the main CPU 301 performs processing for setting the payout error flag in the second work area 2260 of the second storage area 2200 to ON. When the process of step S403-3-10 ends, the payout sensor error check process ends, and the process proceeds to step S403-3 of the second storage area input error check process.

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

(ステップS301)
ステップS301において、サブCPU401は、初期化処理を行う。具体的には、サブCPU401は、サブRAM403のエラーをチェックする処理等を行う。そして、ステップS301の処理が終了すると、ステップS302に処理を移行する。
(Step S301)
In step S301, the sub CPU 401 performs an initialization process. Specifically, the sub CPU 401 performs processing for checking an error in the sub RAM 403 and the like. Then, when the process of step S301 ends, the process proceeds 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 processing, the sub CPU 401 performs processing for analyzing a command received from the main control board 300 and the like. 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 in 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 in step S302-3-2 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 in 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 processing)
Next, based on FIG. 30, the main control board communication process performed by the process of step S302 of 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 for determining whether or not a different command is received. Specifically, the sub CPU 401 performs processing for determining whether or not the command received from the main control board 300 is a command different from the command received last time. If it is determined that a different command has been received (step S302-1 = Yes), the process proceeds to step S302-2. If it is determined that a different command has not been received (step S302). -1 = No), the main control board communication process subroutine is terminated, and the process proceeds 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 a game information storage process. Specifically, the sub CPU 401 performs processing for creating game information based on a command different from the previously transmitted command and storing it 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 a command analysis process that will be described in detail later with reference to FIG. In this process, the sub CPU 401 executes a process based on the game information stored by the process of step S302-2. When the process of step S302-3 ends, the main control board communication process subroutine ends, and the process proceeds to step S303 of the main process in the sub control board.

(コマンド解析処理)
次に、図31に基づいて、図30のステップS302−3の処理により行われるコマンド解析処理についての説明を行う。なお、図31はコマンド解析処理のサブルーチンを示す図である。
(Command analysis processing)
Next, based on FIG. 31, the command analysis process performed by the process of step S302-3 of FIG. 30 will be described. 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 a sub effect determination process. Specifically, the sub CPU 401 specifies a state managed by the main control board 300 based on a command received by the main control board 300, and uses an effect determination table (see FIG. 10) provided in the sub ROM 402. Perform processing to select. Then, the sub CPU 401 performs processing for determining an effect executed by the liquid crystal display device 31 or the like based on the selected effect determination table. Here, for example, when an error command is received by the main control board 300, corresponding error processing is performed. As a result, 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, sub CPU401 performs the process which determines the LED data corresponding to the production | presentation determined by the sub production | presentation 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 determining process in 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 processing for determining image data corresponding to the effect determined by the sub effect determining process in step S302-3-1. When the process of step S302-3-4 ends, the command analysis process subroutine ends, 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制御処理に戻った際に、上記レジスタの値を復帰させてレジスタの値を保護するようにしてもよい。   In the present embodiment, the main CPU 301 moves from 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, the register value is transferred in the second control process, and the register value is restored before returning to the first control process. However, before the transition from the first control process to the second control process, the register value is transferred, and when the process returns to the first control process, the register value is restored and the register is restored. 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 uses the data in the first work area 2160 updated by the program in the first control area 2110 in the first storage area 2100 as the second data in the second storage area 2200. Data in the second work area 2260 updated by the program in the second control area 2210 of the second storage area 2200 is not changed by the program in the control area 2210, and the first control of the first storage area 2100 is performed. Since the program in the area 2110 is not changed, the program on the first control area 2110 and the program on the second control area 2210 can be treated as completely independent controls and updated by each other. Information can be referred to, and programs in the other control area can be used with each other. Furthermore, the program storage area can be distributed. For example, even when the first storage area 2100 has a capacity limitation, a new function can be added using the second storage area 2200. .

さらに、本実施の形態における遊技機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, and 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 moved to the second storage area 2200 and the process is performed when necessary. Since 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, the gaming machine 1 according to the present embodiment stores a program constituting at least a part of the process for detecting an abnormality relating to the gaming machine 1 in the second control area 2210 of the second storage area 2200. Thereby, a process for detecting an abnormality can be easily added without pressing 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 insertion of medals based on the detection result by the selector sensor 14s in the second control area 2210 of the second storage area 2200. The program to be remembered.

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

さらに、本実施の形態における遊技機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. The second control program to be returned to the first control program after the completion is stored, and when the second control program is called from the first control program, the value of the register storing the data obtained by the arithmetic processing is protected. Yes. Thus, the value being calculated in 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 upon return.

また、本実施の形態における遊技機1は、第2記憶領域2200の第2制御領域2210に、第1記憶領域2100の第1制御領域2110に記憶された第1制御プログラムに呼び出されることにより実行され、終了後に上記第1制御プログラムに復帰させる第2制御プログラムを記憶し、第1制御プログラムから第2制御プログラムが呼び出される際に、演算処理によるデータが格納されたレジスタの値を退避させた後、このレジスタの値をクリアしている。これにより、第2制御プログラムを実行する際に、無用に第1制御プログラムの処理により設定されたレジスタの値が引き継がれることがなく、第2制御プログラムの独立性を確保することができる。   Further, 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. The second control program to be returned to the first control program after the completion is stored, and when the second control program is called from the first control program, the value of the register storing the data obtained by the arithmetic processing is saved. Later, the value of this register is cleared. Thus, when executing the second control program, the register values set by the processing of the first control program are not taken over unnecessarily, and the independence of the second control program can be ensured.

さらに、本実施の形態における遊技機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. The second control program to be returned to the first control program after the completion is stored, and the first control area 2110 of the first storage area 2100 has a predetermined address for calling the second control program. One 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. The control program is not called.

さらに、本実施の形態における遊技機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 the second control area of the second storage area 2200. An input port for inputting data from an external device that is not referred to in the second control executed by the program stored in 2210 is provided.

また、本実施の形態における遊技機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 the second control area of the second storage area 2200. An output port that outputs data to an external device that 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 a first control program for storing information of input ports in the first work area 2160 in the first control area 2110 of the first storage area 2100, and the second storage area In the 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, a gaming machine in the second embodiment will be described. Note that the gaming machine in the present embodiment has the same basic configuration and control as the gaming machine 1 in the first embodiment. Therefore, in the present embodiment, the description will focus on the points that are different from the gaming machine 1 in the first embodiment, the same components are denoted by the same reference numerals, the description thereof is omitted, and the same control is performed. Also, the description is omitted.

(メイン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. Similarly to the main CPU 301 of the first embodiment, 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. A predetermined signal is transmitted to the control board 150, the power supply board 200, and the sub-control board 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 301 a includes an arithmetic device 1100, a control device 1201, a register group 1301, and a clock generator 1400, which are connected by a bus 1500.

演算装置1100およびクロックジェネレータ1400は、第1の実施の形態における演算装置1100およびクロックジェネレータ1400と同様のものである。   The arithmetic device 1100 and the clock generator 1400 are the same as the arithmetic device 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. , An SP register 1319 and a PC register 1320, and an A # register 1321, a B # register 1322, a C # register 1323, a D # register 1324, an E # register 1325, an F # register 1326, and an 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.
The A # register 1321, the B # register 1322, the C # register 1323, the D # register 1324, the E # register 1325, the F # register 1326, the H # register 1327, and the L # register 1328 each store 1 byte (8 bits). Have capacity. Note that the B # register 1322 and the C # register 1323, the D # register 1324 and the E # register 1325, the H # register 1327 and the L # register 1328, and the A # register 1321 and the F # register 1326 are connected to each other by 2 bytes. (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 arithmetic device 1100 to perform an operation using the value of the register group 1301. Further, when executing the first control processing by the program stored in the first control area 2110 of the first storage area 2100, the control device 1201 uses the A register 1311 to the L register 1318 and uses the A # register 1321 to When executing the second control process 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. The processing is executed without using the registers 1311 to L1813.

さらに、本実施の形態においては、入力ポートにおいても、第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制御処理を実行する場合において参照される。   Further, in the present embodiment, the input port that is referred to when the first control process by the program stored in the first control area 2110 of the first storage area 2100 is executed also at the input port, In the case of executing the second control process by the program stored in the second control area 2210 of the storage area 2200, each input port to be referred to is different. For example, an input port to which signals such as switches (BET switch 7sw, MAXBET switch 8sw, checkout switch 9sw, start switch 10sw, left stop switch 11sw, middle stop switch 12sw, right stop switch 13sw) are input is the first storage area Reference sensor 14s (medal insertion detection sensor 61, first medal passage sensor 62, second medal passage sensor 63) is referred to when executing the first control processing by the program stored in the first control area 2110 of 2100, 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制御処理用の入出力ポートと、に独立している。
In the present embodiment, the output port that is updated when the first control process by the program stored in the first control area 2110 of the first storage area 2100 is executed also at the output port, When executing the second control process by the program stored in the second control area 2210 of the storage area 2200, the output port to be updated is different from each other. For example, an output port for outputting a signal to a display device (stored number display device 15, payout number display device 16), motor (left stepping motor 151, middle stepping motor 152, right stepping motor 153, hopper motor 91), etc. The output port that is updated when the first control process by the program stored in the first control area 2110 of the first storage area 2100 is executed and the test signal used for the test in the test apparatus is output is the second port. It is updated when the second control process by the program stored in the second control area 2210 of the storage area 2200 is executed.
In other words, 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 present 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. The A register 1311 to the L register 1318 are not used. Accordingly, in the second medal insertion check process, the medal passage monitoring process, the second medal payout process, the second storage area interrupt process, the second storage area input error check process, the insertion sensor error check process, and the payout sensor error check process The A # register 1321 to the L # register 1328 are used, and the processing is executed without using the A register 1311 to the L register 1318.

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

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

さらに、図25に示す第2記憶領域割込処理においても、同様に、ステップS210−1のレジスタ退避処理およびステップS210−4のレジスタ復帰処理を行う必要はない。   Further, in the second storage area interrupt process shown in FIG. 25, similarly, it is not necessary to perform the register saving process in step S210-1 and the register restoring process in 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 that are 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 state of signal 63, the following process is performed. In other words, the main CPU 301 refers to the values (the first medal passage sensor state value and the second medal passage sensor state value) of the medal passage sensor value storage area in the first work area 2160 of the first storage area 2100. , “Refer to the input port values corresponding to the signal values 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, In the second storage area 2200, the medal passage sensor value storage area in the second work area 2260 is stored.

さらに、本実施の形態においては、第1の実施の形態における図23、図24に示す割込処理のステップS202において行う、入力ポート読込処理において、第2制御領域2210に記憶されたプログラムで参照される入力ポートの情報を、入力ポートから読み出して第1記憶領域2100の第1ワーク領域2160に記憶させておく処理は行う必要がない。   Further, in the present embodiment, reference is made by a program stored in the second control area 2210 in the input port read process performed in step S202 of the interrupt process shown in FIGS. 23 and 24 in the first embodiment. There is no need to perform processing for reading the input port information to be read from the input port and storing it 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であるか否かを判定する。   Further, in the present embodiment, whether or not the signal of the first medal passage sensor 62, which is performed in step S403-2-9 of the insertion sensor error check process shown in FIG. 27 in the first embodiment, is ON. In the process of determining whether or not 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 “inputs 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, it is determined whether or not the signal of the second medal passing sensor 63, which is performed in step S403-2-10 of the insertion sensor error check process in the first embodiment, is ON. In the determination process, the following process 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”. Referring to the value of the port ”, it is determined whether or not 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, which is performed in step S403-2-12 of the insertion sensor error check process in the first embodiment, is ON. In the processing to be performed, the following processing is performed. That is, instead of “refers 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 sets “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であるか否かを判定する。   Further, in the present embodiment, it is determined whether or not the signal of the payout sensor 92, which is performed in step S403-3-2 of the payout sensor error check process shown in FIG. 28 in the first embodiment, is ON. 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 “refers 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 in 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 executed by the program stored in the second control area 2210 of the area 2200, the A register 1311 to the L register 1318 that are not used when performing arithmetic processing, and the second control area 2210 of the second storage area 2200 Used when performing arithmetic processing in the second control executed by the stored program and performing arithmetic processing in the first control executed by the program stored in the first control area 2110 of the first storage area 2100 A # register 1321 to L # register 1328 that are not used for the above. Thus, the first control program and the second control program can be executed independently without interfering with each other.

さらに、本実施の形態における遊技機は、第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 the second control area 2210 of the second storage area 2200. Reference is made in the second control executed by the program stored in the second control area 2210 of the second storage area 2200, which is not referred in the second control executed by the program stored in An input port that is not referred to in the first control executed by the program stored in the first control area 2110 of the one 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 the second control area 2210 of the second storage area 2200. Is updated in the second control executed by the program stored in the second control area 2210 of the second storage area 2200 and not updated in the second control executed by the program stored in An output port that is not updated in the first control executed by the program stored in the first control area 2110 of the one storage area 2100. Thereby, in the 1st control and the 2nd control, the contents of the output port which the other party updated are not changed, and 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, the A register 1311 to the L register 1318 are 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. The A # registers 1321 to L # are dedicated registers for the first control process that are 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 the 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. Second control processing not used when performing arithmetic processing in the first control executed by the programmed 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, when the first control process has the A register to the L register that can be used in the second control process and the first control process shifts to the second control process while using the A register and the B register, In the second control process, access to the A register and the B register is disabled, and the C register to the L register are used. Further, in the first control process, when the A register to the C register are used and the process proceeds to the second control process, the access to the A register to the C register is disabled in the second control process, and then D 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, the value is protected in the stack when the process shifts from the first control process to the second control process, and the second control process changes to the first control process. When returning the processing, the value may be returned from the stack. In this way, the method of protecting the value may be changed depending on the register.

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

本実施の形態における入力ポートは、第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 process by the program stored in the first control area 2110 of the first storage area 2100, and the second control of the second storage area 2200 is performed. Reference is also made 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 process shown in FIG. 20 in the first embodiment is ON. In the process of determining whether or not, the following process is performed. That is, 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 status value is not ON (if OFF), instead of determining that the payout sensor signal is not ON (OFF), refer 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 single medal payout process shown in FIG. 19, as described in the first embodiment, the main CPU 301 determines whether or not the payout sensor signal is ON. Process. Here, the main CPU 301 refers to the value of the input port corresponding to the signal value of the payout sensor 92 and performs a process of determining whether or not the payout sensor signal is ON.

ここで、上記ステップ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 for determining whether or not the payout sensor signal is ON” in step S115-7-7-3 is the second medal payout process in the second storage area 2200. This is executed as the second control process by the program stored in the control area 2210. Further, the medal single payout process shown in FIG. 19 including the “process for determining whether or not the payout sensor signal is ON” in step S115-7-11 is performed in the first control area 2110 of the first storage area 2100. This is executed as the 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 that are 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 state of the 63 signal, the following process is performed as in the second embodiment. In other words, the main CPU 301 refers to the values (the first medal passage sensor state value and the second medal passage sensor state value) of the medal passage sensor value storage area in the first work area 2160 of the first storage area 2100. , “Refer to the input port values corresponding to the signal values 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, In the second storage area 2200, the medal passage sensor value storage area in the second work area 2260 is stored.

また、本実施の形態においては、第1の実施の形態における図23、図24に示す割込処理のステップS202において行う、入力ポート読込処理において、第2制御領域2210に記憶されたプログラムで参照される入力ポートの情報を、入力ポートから読み出して第1記憶領域2100の第1ワーク領域2160に記憶させておく処理は行う必要がない。   Further, in the present embodiment, reference is made by a program stored in the second control area 2210 in the input port read processing performed in step S202 of the interrupt processing shown in FIGS. 23 and 24 in the first embodiment. There is no need to perform processing for reading the input port information to be read from the input port and storing it 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であるか否かを判定する。   Further, in the present embodiment, the determination process in step S403-2-9, the determination process in step S403-2-10, and the step S403-2 of the input sensor error check process shown in FIG. 27 in the first embodiment. In the determination processing of −12, “refer to the value of the input port corresponding to the signal value of the first medal passage sensor 62” and “refer to the value of the input port corresponding to the signal value of the second medal passage sensor 63”, respectively. , “Refer to the value of the input port corresponding to the signal value of the medal insertion detection sensor 61” and perform the determination process. It is determined whether or not the signal of the first medal passage sensor 62 is ON.

さらに、本実施の形態においては、第1の実施の形態における図28に示す払出センサエラーチェック処理のステップS403−3−2の判定処理において、「払出センサ92の信号値に対応する入力ポートの値を参照して」、払出センサ92の信号がONであるか否かを判定する。   Further, 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, “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 this embodiment, a test signal output process is added after the second storage area input error check process in step S403 of the second area interrupt process shown in FIG. 25 in the first embodiment. In the test signal output process, a signal that needs to be 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 game state transition is performed by the game state transition process (S116), the main CPU 301 obtains “game state transition information” stored in the first control area 2110 of the first storage area 2100, and receives the test signal. Output to the output port for output.

なお、本実施の形態においては、上記試験信号出力処理を、第2領域割込処理内で行うようにしているが、試験装置に対して信号の出力が必要となるたびに、試験信号出力処理を組み込むようにしてもよい。例えば、試験装置に対して信号の出力が必要となる内部抽選処理(S107)等の後に試験信号出力処理を呼び出すようなプログラムに組み込んでおいてもよい。このようにすると、内部抽選処理(S107)により当選役が決定されると、続いて、試験信号出力処理が呼び出されて、「当選役情報」を試験信号出力用の出力ポートに出力させることができる。   In the present embodiment, the test signal output process is performed in the second area interrupt process. However, every time a signal needs to be output to the test apparatus, the test signal output process is performed. May be incorporated. For example, it may be incorporated in a program that calls the test signal output process after the internal lottery process (S107) or the like that requires signal output to the test apparatus. In this way, when the winning combination is determined by the internal lottery process (S107), the test signal output process is subsequently invoked 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 this embodiment, as in the second embodiment, the A # register 1321, the B # register 1322, the C # register 1323, the D # register 1324, the E # register 1325, and F # are used as the register group 1301. A configuration including a register 1326, an H # register 1327, and an L # register 1328 may be employed.

また、制御装置1201として、第1制御処理を実行する場合と、第2制御処理を実行する場合において、使用するレジスタを、Aレジスタ1311〜Lレジスタ1318と、A#レジスタ1321〜L#レジスタ1328と、を切り替えるようにしてもよい。
この場合、第2の実施の形態と同様に、レジスタ退避処理やレジスタ復帰処理を実行する必要がなくなる。
Further, as the control device 1201, when executing the first control process and when executing the second control process, the registers 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, there is no need to execute a register save process or a register return process.

以上のように、本実施の形態における遊技機の入力ポートは、第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 This 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, 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 in the second control area 2210 of the second storage area 2200.

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

さらに、本実施の形態において、セレクターセンサ14sおよびセレクターセンサ14sが有するメダル投入検知センサ61、第1メダル通過センサ62、第2メダル通過センサ63は、本発明の投入検知手段を構成する。
また、本実施の形態において、ホッパーセンサ202sおよびホッパーセンサ202sが有する払出センサ92は、本発明の払出検知手段を構成する。
さらに、本実施の形態において、スタックは、本発明の退避用記憶領域を構成する。
さらに、本実施の形態において、入出力ポート306は、本発明の入力ポートおよび出力ポートを構成する。
Further, in the present embodiment, the selector sensor 14s and the medal insertion detection sensor 61, the first medal passage sensor 62, and the second medal passage sensor 63 included in the selector sensor 14s constitute insertion detection means of the present invention.
In the present embodiment, the hopper sensor 202s and the payout sensor 92 included in the hopper sensor 202s constitute the payout detecting means of the present invention.
Furthermore, in the present embodiment, the stack constitutes the save storage area of the present invention.
Furthermore, in this embodiment, the input / output port 306 constitutes an input port and an 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レジスタを構成する。
Further, in this 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 the first register of the present invention. .
In this embodiment, the A # register 1321, the B # register 1322, the C # register 1323, the D # register 1324, the E # register 1325, the F # register 1326, the H # register 1327, and the L # register 1328 are Constitutes a second register of the invention;

なお、上記実施の形態においては、第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 the time of medal payout, and the like. However, the present invention is not limited to the above processing. For example, a process for determining whether the auxiliary storage 203 is full, an error process when a random number value cannot be fetched normally, an error process when a power failure recovery cannot be performed normally, or a case where reading and writing to the main RAM 303 cannot be performed normally These processes may be executed by a program stored in the second control area 2210 of the second storage area 2200.

また、上記実施の形態における試験装置への信号出力処理として、以下のような処理を第2記憶領域2200の第2制御領域2210に記憶したプログラムによって実行するようにしてもよい。   Further, 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, a process for outputting an insertion request ramp signal indicating that an insertion can be performed when a medal can be inserted, and a process for outputting a startable ramp signal that is output when a game can be started and a reel can be rotated. is there.

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

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

また、各リールのステッピングモータの位相位置ごとの信号を表すリールステッピングモータ位相信号を出力させるための処理、リールの停止を実行する位置を示す停止実行位置信号を出力させるための処理、上記停止実行位置信号を出力するリールのリール番号を示す回胴番号信号を出力させるための処理、遊技中段要求等の情報を出力するための遊技制御信号を出力させるための処理等がある。   In addition, a process for outputting a reel stepping motor phase signal indicating 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 where the reel is stopped, and the above stop execution There are a process for outputting a spinning number signal indicating a reel number of a reel that outputs a position signal, a process for outputting a game control signal for outputting information such as a game middle stage request, and the like.

なお、本実施形態では、回胴式遊技機(スロットマシン)に用いる遊技機について説明をしたが、パチンコ遊技機、雀球遊技機、アレンジボール遊技機に用いてもよい。   In the present embodiment, a gaming machine used for a spinning machine (slot machine) has been described. However, the gaming machine may be used for a pachinko gaming machine, a sparrow ball gaming machine, or an arrangement 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 gaming machine 2 cabinet 3 front door 4 hinge mechanism 5 key hole 6 medal slot 7 BET button 7sw BET switch 8 MAXBET button 8sw MAXBET switch 9 settlement button 9sw settlement switch 10 start lever 10sw start switch 11 left stop button 11sw 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 Stored number display 16 Discharged number display 17s Door open / close sensor 18 Left reel 19 Middle reel 20 Right reel 21 Production button 21s Production button sensor 22 cross key 22s cross key sensor 23 display window 24 saucer unit 25 medal payout opening 30 external concentration terminal board 31 liquid crystal display 32 LED
33 Speaker 51 Medal receiving port 52 Medal guide 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 paying device 83 Base part 84 Main disk 85 Upper disk 85a Disk opening 86 Lower disk 86a Medal storage space 87 Detection lever 91 Hopper motor 92 Dispensing sensor 100 Status board 150 Reel control board 151 Left 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 board 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 I / O port (I / O port)
400 Sub control board 401 Sub CPU
402 Sub ROM
403 Sub RAM
404 Sub-random number generator 500 Production control board 501 Production control CPU
502 Production control ROM
503 Production control RAM
504 CGROM
505 Sound source IC
506 Sound source ROM
507 VDP
1100 Arithmetic devices 1200 and 1201 Control devices 1300 and 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 H # register 1328 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

このような課題を解決するために、本発明に係る遊技機は、第1制御を行うための第1制御プログラムを記憶する第1制御領域と、前記第1制御領域とは異なる領域であって、第2制御を行うための第2制御プログラムを記憶する第2制御領域と、前記第1制御領域に記憶する第1制御プログラムによる前記第1制御に用いられる固定データを記憶する第1データ領域と、前記第2制御領域に記憶する第2制御プログラムによる前記第2制御に用いられる固定データを記憶する第2データ領域と、前記第1制御において更新および参照され、前記第2制御においては更新されない可変データを記憶する第1RWM領域と前記第1RWM領域とは異なる領域であって、前記第2制御において更新および参照され、前記第1制御においては更新されない可変データを記憶する第2RWM領域と、他の領域として使用できない未使用領域とを備え、前記第1制御領域に対応して前記第1データ領域が設けられ、また、前記第2制御領域に対応して前記第2データ領域が設けられており、前記第1データ領域と前記第2制御領域との間に未使用領域が設けられていることによって、メモリ空間上、連続せずに配置されることを特徴とする。 To solve such problems, a game machine according to the present onset Ming, a first control area for storing a first control program for performing the first control, there in a region different from the first control region The second control area for storing the second control program for performing the second control, and the first data for storing the fixed data used for the first control by the first control program stored in the first control area An area, a second data area for storing fixed data used for the second control by the second control program stored in the second control area, and updated and referenced in the first control, and in the second control a first 1RWM area for storing variable data which is not updated, is a different area and the second 1RWM region, it is updated and referred to in the second control, updating the first control A first 2RWM area for storing variable data which is not, and a unused area that can not be used as the other regions, the first data area is provided corresponding to the first control region, said second control region The second data area is provided corresponding to the memory area, and the unused area is provided between the first data area and the second control area, so that the memory area is not continuously arranged. It is characterized by being.

Claims (2)

第1制御を行うための第1制御プログラムを記憶する第1制御領域と、
前記第1制御領域とは異なる領域であって、第2制御を行うための第2制御プログラムを記憶する第2制御領域と、
前記第1制御領域に記憶する第1制御プログラムによる前記第1制御に用いられる固定データを記憶する第1データ領域と、
前記第2制御領域に記憶する第2制御プログラムによる前記第2制御に用いられる固定データを記憶する第2データ領域と、
前記第1制御において更新および参照され、前記第2制御においては更新されない可変データを記憶する第1RWM領域と、
前記第1RWM領域とは異なる領域であって、前記第2制御において更新および参照され、前記第1制御においては更新されない可変データを記憶する第2RWM領域と
を備え、
前記第1制御領域に対応して前記第1データ領域が設けられ、また、前記第2制御領域に対応して前記第2データ領域が設けられており、
前記第1データ領域と前記第2制御領域とが、メモリ空間上、連続せずに配置されることを特徴とする遊技機。
A first control area for storing a first control program for performing the first control;
A second control area that is different from the first control area and stores a second control program for performing the second control;
A first data area for storing fixed data used for the first control by the first control program stored in the first control area;
A second data area for storing fixed data used for the second control by the second control program stored in the second control area;
A first RWM area that stores variable data that is updated and referenced in the first control and not updated in the second control;
A second RWM region that is different from the first RWM region and stores variable data that is updated and referenced in the second control and not updated in the first control;
The first data area is provided corresponding to the first control area, and the second data area is provided corresponding to the second control area,
The gaming machine, wherein the first data area and the second control area are discontinuously arranged in a memory space.
前記第1データ領域と前記第2制御領域との間に未使用領域を設け、
前記未使用領域によって、前記第1データ領域と前記第2制御領域とが、メモリ空間上、連続せずに配置されることを特徴とする請求項1記載の遊技機。
An unused area is provided between the first data area and the second control area,
2. The gaming machine according to claim 1, wherein the first data area and the second control area are discontinuously arranged in a memory space by the unused area.
JP2015061449A 2015-03-24 2015-03-24 Game machine Pending JP2016179083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015061449A JP2016179083A (en) 2015-03-24 2015-03-24 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015061449A JP2016179083A (en) 2015-03-24 2015-03-24 Game machine

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2016233221A Division JP6375355B2 (en) 2016-11-30 2016-11-30 Game machine

Publications (1)

Publication Number Publication Date
JP2016179083A true JP2016179083A (en) 2016-10-13

Family

ID=57132339

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015061449A Pending JP2016179083A (en) 2015-03-24 2015-03-24 Game machine

Country Status (1)

Country Link
JP (1) JP2016179083A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017047081A (en) * 2015-09-04 2017-03-09 山佐株式会社 Game machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012250131A (en) * 2012-09-28 2012-12-20 Daiichi Shokai Co Ltd Game machine
JP2014239935A (en) * 2014-08-26 2014-12-25 株式会社大都技研 Game machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012250131A (en) * 2012-09-28 2012-12-20 Daiichi Shokai Co Ltd Game machine
JP2014239935A (en) * 2014-08-26 2014-12-25 株式会社大都技研 Game machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017047081A (en) * 2015-09-04 2017-03-09 山佐株式会社 Game machine

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
JP2016179067A (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
JP2016179066A (en) Game machine
JP6034907B2 (en) Game machine
JP2017018712A (en) Game machine
JP6280973B2 (en) Game machine
JP2016179083A (en) Game machine
JP6034905B2 (en) Game machine
JP2017205646A (en) Game machine
JP2017205645A (en) Game machine

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161004

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20170404