JP6894413B2 - Pachinko machine - Google Patents

Pachinko machine Download PDF

Info

Publication number
JP6894413B2
JP6894413B2 JP2018164303A JP2018164303A JP6894413B2 JP 6894413 B2 JP6894413 B2 JP 6894413B2 JP 2018164303 A JP2018164303 A JP 2018164303A JP 2018164303 A JP2018164303 A JP 2018164303A JP 6894413 B2 JP6894413 B2 JP 6894413B2
Authority
JP
Japan
Prior art keywords
reel
signal
output
game
stop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018164303A
Other languages
Japanese (ja)
Other versions
JP2020036679A (en
Inventor
小倉 敏男
敏男 小倉
善人 田名後
善人 田名後
池田 正和
正和 池田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sankyo Co Ltd
Original Assignee
Sankyo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sankyo Co Ltd filed Critical Sankyo Co Ltd
Priority to JP2018164303A priority Critical patent/JP6894413B2/en
Publication of JP2020036679A publication Critical patent/JP2020036679A/en
Application granted granted Critical
Publication of JP6894413B2 publication Critical patent/JP6894413B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、遊技が可能な遊技機に関する。 The present invention relates to a gaming machine capable of playing a game.

遊技機として、遊技球などの遊技媒体を発射装置によって遊技領域に発射し、遊技領域に設けられている入賞口などの入賞領域に遊技媒体が入賞すると、所定個の賞球が遊技者に払い出されるパチンコ遊技機がある。 As a gaming machine, a gaming medium such as a gaming ball is launched into a gaming area by a launching device, and when the gaming medium wins a prize in a winning area such as a winning opening provided in the gaming area, a predetermined number of prize balls are paid out to the player. There is a pachinko game machine.

また、パチンコ遊技機とは別の遊技機として、外周部に識別情報としての複数種類の図柄が描かれた複数(通常は3つ)のリールを有する可変表示部を備えており、全てのリールの回転を停止したときに導出された表示結果に従って入賞が発生するスロットマシンがある。 In addition, as a gaming machine separate from the pachinko gaming machine, it is equipped with a variable display unit having a plurality of (usually three) reels on which a plurality of types of patterns as identification information are drawn on the outer peripheral portion, and all reels. There is a slot machine in which a prize is generated according to the display result derived when the rotation of is stopped.

このような遊技機として、遊技制御用マイクロコンピュータの制御開始にあたって、内蔵デバイス(内蔵周辺回路)の設定を行うために、内蔵デバイスレジスタに初期値を設定することが記載されている(たとえば、特許文献1)。 As such a gaming machine, it is described that an initial value is set in a built-in device register in order to set a built-in device (built-in peripheral circuit) at the start of control of a game control microcomputer (for example, a patent). Document 1).

特開2015−33480号公報JP-A-2015-33480

しかしながら、初期値を設定すべき領域が複数ある場合、プログラム容量が大きくなる虞があった。 However, when there are a plurality of areas for which the initial value should be set, the program capacity may increase.

この発明は、かかる実情に鑑み考え出されたものであり、その目的は、制御の開始時に記憶領域に設定値を設定する際のプログラム容量を節減することである。 The present invention has been conceived in view of such circumstances, and an object of the present invention is to save a program capacity when setting a set value in a storage area at the start of control.

遊技が可能な遊技機(スロットマシン1)であって、
所定の処理を実行する処理手段(たとえば、メインCPU41a)と、
前記処理手段における機能設定のための記憶領域(たとえば、内蔵レジスタ領域)を含む記憶手段(たとえば、RAM41c)と、を備え、
前記機能設定のための記憶領域として、開始アドレスから終了アドレスまでの領域が設けられており(たとえば、図8に示すように、RAM41cには、メインCPU41aにおける機能設定のための内蔵レジスタ領域として、FE00HからFEACHまでの領域が設けられており)、
前記処理手段は、
前記機能設定のための記憶領域のうちのa(a>1)番目の領域およびa番目の領域から離れたb番目の領域および該b番目の領域の次のc番目の領域に設定値を設定する際、当該a番目の領域に対応する基準アドレスを特定可能なデータを読み出し、当該基準アドレスに基づき前記a番目の領域に設定値を設定し、
前記a番目の領域に設定値を設定した後、前記基準アドレスに対して差分値を用いて前記b番目の領域に対応するアドレスを算出し、
前記b番目の領域に対応するアドレスに基づき複数の領域にデータを設定する命令により、前記番目の領域と前記番目の領域の双方に設定値を設定する。
It is a gaming machine (slot machine 1) capable of playing games.
A processing means (for example, main CPU 41a) that executes a predetermined process, and
A storage means (for example, RAM 41c) including a storage area (for example, a built-in register area) for setting a function in the processing means is provided.
An area from the start address to the end address is provided as a storage area for the function setting (for example, as shown in FIG. 8, the RAM 41c has a built-in register area for function setting in the main CPU 41a as a built-in register area. The area from FE00H to FEACH is provided),
The processing means
Set values are set in the a (a> 1) th area, the bth area away from the ath area, and the cth area next to the bth area in the storage area for function setting. At that time, the data that can identify the reference address corresponding to the a-th area is read, and the set value is set in the a-th area based on the reference address.
After setting the set value to the a-th region, and calculates the address corresponding to the b-th region by using the difference value with respect to the reference address,
A set value is set in both the b- th region and the c- th region by an instruction for setting data in a plurality of regions based on the address corresponding to the b-th region.

本発明が適用された実施例のスロットマシンの正面図である。It is a front view of the slot machine of the Example to which this invention was applied. スロットマシンの内部構造を示す斜視図である。It is a perspective view which shows the internal structure of a slot machine. スロットマシンの構成を示すブロック図である。It is a block diagram which shows the structure of a slot machine. メイン制御部が搭載するROMおよびRAMのメモリマップを示す図である。It is a figure which shows the memory map of ROM and RAM mounted on the main control part. 入出力ポートマップを示す図である。It is a figure which shows the input / output port map. エラーコードを示す図である。It is a figure which shows the error code. メイン制御部が行う起動処理(メイン)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the start processing (main) performed by the main control unit. メイン制御部が行う内蔵レジスタ設定処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the built-in register setting process performed by a main control part. メイン制御部が行うメイン処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the main processing performed by the main control unit. メイン制御部が行う遊技開始待ち処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the game start waiting process performed by the main control unit. メイン制御部が行う投入払出エラーチェック処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the input / withdrawal error check processing performed by the main control unit. メイン制御部が行うエラー処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the error processing performed by the main control part. メイン制御部が行うリール停止制御処理の制御内容を示すフローチャート(その1)である。It is a flowchart (the 1) which shows the control content of the reel stop control processing performed by a main control part. メイン制御部が行うリール停止制御処理の制御内容を示すフローチャート(その2)である。It is a flowchart (2) which shows the control content of the reel stop control processing performed by a main control part. メイン制御部が行う遊技終了時の設定処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the setting process at the end of a game performed by a main control unit. メイン制御部が行うタイマ割込処理(メイン)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the timer interrupt process (main) performed by the main control unit. リール停止制御処理における停止設定を説明するためのタイミングチャート(その1)である。This is a timing chart (No. 1) for explaining the stop setting in the reel stop control process. リール停止制御処理における停止設定を説明するためのタイミングチャート(その2)である。It is a timing chart (No. 2) for explaining the stop setting in a reel stop control process. リール停止制御処理における停止設定を説明するためのタイミングチャート(その3)である。It is a timing chart (No. 3) for explaining the stop setting in a reel stop control process. 払出信号の出力処理について説明するための図(その1)である。It is a figure (the 1) for demonstrating the output processing of a payout signal. 払出信号の出力処理について説明するための図(その2)である。It is a figure (the 2) for demonstrating the output processing of a payout signal. 払出信号の出力処理について説明するための図(その3)である。It is a figure (the 3) for demonstrating the output processing of a payout signal. 割込禁止についての安全性について説明するためのフローチャートである。It is a flowchart for demonstrating the safety about interrupt prohibition. 出力データの設定について説明するためのフローチャートである。It is a flowchart for demonstrating the setting of output data.

本発明に係る遊技機として、スロットマシンを実施するための本実施の形態について以下に説明する。なお、本発明はスロットマシンにかかわらず、パチンコ遊技機やゲーム機等のその他の遊技を行う遊技機に適用できる。 An embodiment of the present embodiment for implementing a slot machine as a gaming machine according to the present invention will be described below. The present invention can be applied to other gaming machines such as pachinko gaming machines and game machines, regardless of the slot machine.

[スロットマシンの構成]
図1は、本実施形態に係るスロットマシン1の正面図である。本実施例のスロットマシン1は、図1に示すように、前面が開口する筐体1aと、この筐体1aの側端に回動自在に枢支された前面扉1bとから構成されている。
[Slot machine configuration]
FIG. 1 is a front view of the slot machine 1 according to the present embodiment. As shown in FIG. 1, the slot machine 1 of the present embodiment includes a housing 1a having an open front surface and a front door 1b rotatably pivotally supported at a side end of the housing 1a. ..

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

リール2L,2C,2Rの外周部には、互いに識別可能な複数種類の図柄(例えば、「7」、「BAR」、「スイカ」、「チェリー」、「ベル」、「リプレイ」など)が所定の順序で、それぞれ21個ずつ描かれている。リール2L,2C,2Rの外周部に描かれた図柄は、前面扉1bの略中央に設けられた透視窓3において各々上中下三段に表示される。 On the outer periphery of the reels 2L, 2C, 2R, a plurality of types of symbols that can be distinguished from each other (for example, "7", "BAR", "watermelon", "cherry", "bell", "replay", etc.) are specified. 21 pieces are drawn in each order. The patterns drawn on the outer peripheral portions of the reels 2L, 2C, and 2R are displayed in the upper, middle, and lower three stages in the see-through window 3 provided at substantially the center of the front door 1b.

各リール2L,2C,2Rは、各々対応して設けられたリールモータ32L,32C,32R(図3参照)によって回転されることで、各リール2L,2C,2Rの図柄が透視窓3に連続的に変化しつつ表示される一方で、各リール2L,2C,2Rの回転が停止されることで、透視窓3に3つの連続する図柄が表示結果として導出表示されるようになっている。 Each reel 2L, 2C, 2R is rotated by the reel motors 32L, 32C, 32R (see FIG. 3) provided corresponding to each, so that the symbols of the reels 2L, 2C, 2R are continuous with the see-through window 3. While the reels 2L, 2C, and 2R are stopped rotating, three consecutive symbols are derived and displayed on the perspective window 3 as a display result.

なお、本実施例のリール2L,2C,2Rは、リールモータ32L,32C,32Rを用いて、外周面に複数の図柄が配置されたリール2L,2C,2Rを回転させることで、遊技者から視認可能な複数の図柄を移動させる変動表示を行うことが可能な構成であるが、複数の図柄を移動させる変動表示を行う手段は、リール以外であっても良く、例えば、外周面に複数の図柄が配置されたベルトを移動させることで変動表示を行うことが可能な構成などであっても良い。 The reels 2L, 2C, 2R of the present embodiment are obtained from the player by using the reel motors 32L, 32C, 32R to rotate the reels 2L, 2C, 2R in which a plurality of symbols are arranged on the outer peripheral surface. Although it is possible to perform variable display for moving a plurality of visible symbols, the means for performing variable display for moving a plurality of symbols may be other than the reel, for example, a plurality of visible symbols on the outer peripheral surface. It may be configured so that the variable display can be performed by moving the belt on which the symbol is arranged.

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

また、リールセンサ33L,33C,33Rは、各リール2L,2C,2Rについて図柄番号1の図柄の領域の下端が各リールにおける所定位置を通過するときに、検出信号を出力するように配置されており、各リールについて図柄番号1の図柄の領域の下端がリール基準位置となる。 Further, the reel sensors 33L, 33C, 33R are arranged so as to output a detection signal when the lower end of the symbol region of the symbol number 1 for each reel 2L, 2C, 2R passes a predetermined position on each reel. For each reel, the lower end of the symbol area of symbol number 1 is the reel reference position.

前面扉1bの各リール2L,2C,2Rの手前側(遊技者側)の位置には、液晶表示器51(図1参照)の表示領域51aが配置されている。液晶表示器51は、液晶素子に対して電圧が印加されていない状態で透過性を有する液晶パネルを有しており、表示領域51aの透視窓3に対応する透過領域51bおよび透視窓3を介して遊技者側から各リール2L,2C,2Rが視認できるようになっている。 A display area 51a of the liquid crystal display 51 (see FIG. 1) is arranged at a position on the front side (player side) of each reel 2L, 2C, 2R of the front door 1b. The liquid crystal display 51 has a liquid crystal panel that is transparent when no voltage is applied to the liquid crystal element, and is transmitted through the transmission region 51b and the perspective window 3 corresponding to the perspective window 3 of the display region 51a. The reels 2L, 2C, and 2R can be visually recognized from the player side.

前面扉1bには、図1に示すように、メダルを投入可能なメダル投入部4、メダルが払い出されるメダル払出口9、クレジット(遊技者所有の遊技用価値として記憶されているメダル数)を用いて、その範囲内において遊技状態に応じて定められた規定数の賭数(BET数)のうち最大の賭数(MAXBET数)を設定する際に操作されるMAXBETスイッチ6、クレジットとして記憶されているメダルおよび賭数の設定に用いたメダルを精算する(クレジットおよび賭数の設定に用いた分のメダルを返却させる)際に操作される精算スイッチ10、ゲーム(遊技)を開始する際に操作されるスタートスイッチ7、リール2L,2C,2Rの回転を各々停止する際に操作されるストップスイッチ8L,8C,8R、演出に用いられる演出用スイッチ56が遊技者により操作可能にそれぞれ設けられている。 As shown in FIG. 1, the front door 1b has a medal insertion section 4 into which medals can be inserted, a medal payout exit 9 from which medals are paid out, and credits (the number of medals stored as a player-owned game value). The MAXBET switch 6 operated when setting the maximum bet number (MAXBET number) out of the specified number of bets (BET number) determined according to the gaming state within the range is stored as a credit. Settlement switch 10, which is operated when the medals used for setting the medals and the number of bets are settled (the medals used for setting the credits and the number of bets are returned), when the game (game) is started. The start switch 7 to be operated, the stop switches 8L, 8C, 8R to be operated when the rotations of the reels 2L, 2C, and 2R are stopped, and the effect switch 56 used for the effect are provided so as to be operable by the player. ing.

なお、本実施例では、回転を開始した3つのリール2L,2C,2Rのうち、最初に停止するリールを第1停止リールと称し、また、その停止を第1停止と称する。同様に、2番目に停止するリールを第2停止リールと称し、また、その停止を第2停止と称し、3番目に停止するリールを第3停止リールと称し、また、その停止を第3停止あるいは最終停止と称する。 In this embodiment, of the three reels 2L, 2C, and 2R that have started rotation, the reel that stops first is referred to as the first stop reel, and the stop is referred to as the first stop. Similarly, the reel that stops second is referred to as the second stop reel, the stop is referred to as the second stop, the reel that stops third is referred to as the third stop reel, and the stop is referred to as the third stop. Alternatively, it is called a final stop.

また、前面扉1bには、図1に示すように、クレジットとして記憶されているメダル枚数が表示されるクレジット表示器11、入賞の発生により払い出されたメダル枚数やエラー発生時にその内容を示すエラーコードなどが表示される遊技補助表示器12、賭数が1設定されている旨を点灯により報知する1BETLED14、賭数が2設定されている旨を点灯により報知する2BETLED15、賭数が3設定されている旨を点灯により報知する3BETLED16、メダルの投入が可能な状態を点灯により報知する投入要求LED17、スタートスイッチ7の操作によるゲームのスタート操作が有効である旨を点灯により報知するスタート有効LED18、ウェイト(前回のゲーム開始から一定期間経過していないためにリールの回転開始を待機している状態)中である旨を点灯により報知するウェイト中LED19、リプレイゲーム中である旨を点灯により報知するリプレイ中LED20が設けられた遊技用表示部13が設けられている。 Further, as shown in FIG. 1, the front door 1b shows a credit display 11 that displays the number of medals stored as credits, the number of medals paid out due to the occurrence of a prize, and the contents when an error occurs. Game auxiliary display 12 that displays an error code, etc., 1BETLED14 that notifies by lighting that the number of bets is set to 1, 2BETLED15 that notifies by lighting that the number of bets is set to 2, and 3 settings to the number of bets. 3BETLED16 that notifies by lighting that the game has been started, insertion request LED17 that notifies by lighting that the medal can be inserted, and start effective LED18 that notifies by lighting that the game start operation by operating the start switch 7 is effective. , Notifying by lighting that the wait (a state of waiting for the start of rotation of the reel because a certain period of time has not passed since the previous game start) is in progress. A game display unit 13 provided with an LED 20 during replay is provided.

MAXBETスイッチ6の内部には、MAXBETスイッチ6の操作による賭数の設定操作が有効である旨を点灯により報知するBETスイッチ有効LED21(図3参照)が設けられており、ストップスイッチ8L,8C,8Rの内部には、該当するストップスイッチ8L,8C,8Rによるリールの停止操作が有効である旨を点灯により報知する左,中,右停止有効LED22L,22C,22R(図3参照)がそれぞれ設けられており、演出用スイッチ56の内部には、演出用スイッチ56の操作が有効である旨を点灯により報知する演出用LED56a(図3参照)が設けられている。 Inside the MAXBET switch 6, a BET switch effective LED21 (see FIG. 3) is provided to notify by lighting that the operation of setting the number of bets by operating the MAXBET switch 6 is effective, and the stop switches 8L, 8C, Inside the 8R, left, middle, and right stop effective LEDs 22L, 22C, 22R (see FIG. 3) are provided to notify by lighting that the reel stop operation by the corresponding stop switches 8L, 8C, 8R is effective. Inside the effect switch 56, an effect LED 56a (see FIG. 3) is provided to notify by lighting that the operation of the effect switch 56 is effective.

図2は、スロットマシンの内部構造を示す斜視図である。前面扉1bの内側には、図2に示すように、所定のキー操作により前面扉1bを開放することなく後述するエラー状態および打止状態を解除するためのリセット操作を検出するリセットスイッチ23、後述する設定値の変更中や設定値の確認中にその時点の設定値が表示される設定値表示器24、所定の契機に打止状態(リセット操作がなされるまでゲームの進行が規制される状態)に制御する打止機能の有効/無効を選択するための打止スイッチ36a、所定の契機に自動精算処理(クレジットとして記憶されているメダルを遊技者の操作によらず精算(返却)する処理)に制御する自動精算機能の有効/無効を選択するための自動精算スイッチ36b、メダル投入部4から投入されたメダルの流路を、筐体1aの内部に設けられた後述のホッパータンク34a(図2参照)側またはメダル払出口9側のいずれか一方に選択的に切り替えるための流路切替ソレノイド30、メダル投入部4から投入され、ホッパータンク34a側に流下したメダルを検出する投入メダルセンサ31、投入メダルセンサ31の上流側で異物の挿入を検出する投入口センサ26を有するメダルセレクタ29、前面扉1bの開放状態を検出するドア開放検出スイッチ25(図3参照)が設けられている。 FIG. 2 is a perspective view showing the internal structure of the slot machine. Inside the front door 1b, as shown in FIG. 2, a reset switch 23 that detects a reset operation for canceling an error state and a stop state, which will be described later, without opening the front door 1b by a predetermined key operation. The set value display 24, which displays the set value at that time while changing the set value or checking the set value, which will be described later, is in a stopped state (the progress of the game is restricted until the reset operation is performed). Stop switch 36a for selecting enable / disable of the stop function to control the state), automatic settlement processing (medals stored as credits are settled (returned) regardless of the player's operation) at a predetermined opportunity. The automatic settlement switch 36b for selecting the enable / disable of the automatic settlement function controlled by the processing), and the flow path of the medals inserted from the medal insertion unit 4 are provided in the hopper tank 34a described later inside the housing 1a. (See FIG. 2) Inserted medals for detecting medals inserted from the flow path switching solenoid 30 for selectively switching to either the side or the medal payout outlet 9 side and the medal insertion unit 4 and flowing down to the hopper tank 34a side. The sensor 31, the medal selector 29 having the insertion port sensor 26 for detecting the insertion of foreign matter on the upstream side of the insertion medal sensor 31, and the door opening detection switch 25 (see FIG. 3) for detecting the open state of the front door 1b are provided. There is.

筐体1aの内部には、図2に示すように、前述したリール2L,2C,2R、リールモータ32L,32C,32R(図3参照)、各リール2L,2C,2Rのリール基準位置をそれぞれ検出可能なリールセンサ33L,33C,33R(図3参照)からなるリールユニット2、外部出力信号を出力するための外部出力基板1000(図3参照)、メダル投入部4から投入されたメダルを貯留するホッパータンク34a、ホッパータンク34aに貯留されたメダルをメダル払出口9より払い出すためのホッパーモータ34b(図3参照)、ホッパーモータ34bの駆動により払い出されたメダルを検出する払出センサ34c(図3参照)からなるホッパーユニット34、電源ボックス100が設けられている。 Inside the housing 1a, as shown in FIG. 2, the reels 2L, 2C, 2R, the reel motors 32L, 32C, 32R (see FIG. 3), and the reel reference positions of the reels 2L, 2C, 2R, respectively, are located. Reel unit 2 composed of detectable reel sensors 33L, 33C, 33R (see FIG. 3), external output board 1000 for outputting an external output signal (see FIG. 3), and medals inserted from the medal insertion unit 4 are stored. The hopper tank 34a, the hopper motor 34b for paying out the medals stored in the hopper tank 34a from the medal payout outlet 9 (see FIG. 3), and the payout sensor 34c for detecting the medal paid out by driving the hopper motor 34b (see FIG. 3). A hopper unit 34 and a power supply box 100 (see FIG. 3) are provided.

ホッパーユニット34の側部には、ホッパータンク34aからあふれたメダルが貯留されるオーバーフロータンク35が設けられている。オーバーフロータンク35の内部には、貯留されたメダルが満タン状態となったことを検出する満タンセンサ35a(図3参照)が設けられている。 An overflow tank 35 for storing medals overflowing from the hopper tank 34a is provided on the side of the hopper unit 34. Inside the overflow tank 35, a full tank sensor 35a (see FIG. 3) for detecting that the stored medals are full is provided.

電源ボックス100の前面には、図2に示すように、設定変更状態または設定確認状態に切り替えるための設定キースイッチ37、通常時においてはエラー状態や打止状態を解除するためのリセットスイッチとして機能し、設定変更状態においては後述する内部抽選の当選確率(出玉率)の設定値を変更するための設定スイッチとして機能するリセット/設定スイッチ38、電源をon/offする際に操作される電源スイッチ39が設けられている。 As shown in FIG. 2, the front surface of the power supply box 100 functions as a setting key switch 37 for switching to a setting change state or a setting confirmation state, and a reset switch for canceling an error state or a stop state in a normal state. However, in the setting change state, the reset / setting switch 38 that functions as a setting switch for changing the setting value of the winning probability (ball output rate) of the internal lottery described later, and the power supply that is operated when the power is turned on / off. A switch 39 is provided.

なお、電源ボックス100は、筐体1aの内部に設けられており、さらに前面扉1bは、店員などが所持する所定のキー操作により開放可能な構成であるため、これら電源ボックス100の前面に設けられた設定キースイッチ37、リセット/設定スイッチ38、電源スイッチ39は、キーを所持する店員などの者のみが操作可能とされ、遊技者による操作ができないようになっている。また、所定のキー操作により検出されるリセットスイッチ23も同様である。特に、設定キースイッチ37は、キー操作により前面扉1bを開放したうえで、さらにキー操作を要することから、遊技店の店員のなかでも、設定キースイッチ37の操作を行うキーを所持する店員のみ操作が可能とされている。 Since the power supply box 100 is provided inside the housing 1a and the front door 1b can be opened by a predetermined key operation possessed by a clerk or the like, the power supply box 100 is provided on the front surface of the power supply box 100. The setting key switch 37, the reset / setting switch 38, and the power switch 39 can be operated only by a person such as a clerk who has the key, and cannot be operated by the player. The same applies to the reset switch 23 detected by a predetermined key operation. In particular, since the setting key switch 37 requires further key operation after opening the front door 1b by key operation, only the clerk who has the key to operate the setting key switch 37 among the clerk of the game store. It is possible to operate.

本実施例のスロットマシン1においてゲームを行う場合には、まず、メダルをメダル投入部4から投入するか、あるいはクレジットを使用して賭数を設定する。クレジットを使用するにはMAXBETスイッチ6を操作すれば良い。遊技状態に応じて定められた規定数の賭数が設定されると、入賞ラインLN(図1参照)が有効となり、スタートスイッチ7の操作が有効な状態、すなわち、ゲームが開始可能な状態となる。なお、遊技状態に対応する規定数のうち最大数を超えてメダルが投入された場合には、その分はクレジットに加算される。 When playing a game on the slot machine 1 of this embodiment, first, medals are inserted from the medal insertion unit 4, or the number of bets is set using credits. To use the credit, operate the MAXBET switch 6. When the specified number of bets determined according to the game state is set, the winning line LN (see FIG. 1) becomes valid, and the operation of the start switch 7 is valid, that is, the game can be started. Become. If more than the maximum number of medals are inserted out of the specified number corresponding to the gaming state, that amount will be added to the credit.

入賞ラインとは、各リール2L,2C,2Rの透視窓3に表示された図柄の組合せが入賞図柄の組合せであるかを判定するために設定されるラインである。本実施例では、図1に示すように、リール2Lの中段、リール2Cの中段、リール2Rの中段、すなわち中段に水平方向に並んだ図柄に跨がって設定された入賞ラインLNのみが入賞ラインとして定められている。なお、本実施例では、1本の入賞ラインのみを適用しているが、複数の入賞ラインを適用しても良い。 The winning line is a line set to determine whether the combination of symbols displayed on the perspective windows 3 of the reels 2L, 2C, and 2R is a combination of winning symbols. In this embodiment, as shown in FIG. 1, only the winning line LN set across the symbols arranged horizontally in the middle stage of the reel 2L, the middle stage of the reel 2C, and the middle stage of the reel 2R, that is, the middle stage wins a prize. It is defined as a line. In this embodiment, only one winning line is applied, but a plurality of winning lines may be applied.

また、本実施例では、入賞ラインLNに入賞を構成する図柄の組合せが揃ったことを認識しやすくするために、入賞ラインLNとは別に、無効ラインLM1〜4(LM1は、左中右リールの各上段にわたるラインであり、LM2は、左中右リールの各中段にわたるラインであり、LM3は、左中右リールの各下段にわたるラインであり、LM4は、左リールの下段、中リールの中段、右リールの上段にわたるラインである。)を設定している。無効ラインLM1〜4は、これら無効ラインLM1〜4に揃った図柄の組合せによって入賞が判定されるものではなく、入賞ラインLNに特定の入賞を構成する図柄の組合せが揃った際に、無効ラインLM1〜4のいずれかに入賞ラインLNに揃った場合に入賞となる図柄の組合せ(例えば、ベル‐ベル‐ベル)が揃う構成とすることで、入賞ラインLNに特定の入賞を構成する図柄の組合せが揃ったことを認識しやすくするものである。 Further, in this embodiment, in order to make it easier to recognize that the winning line LN has a set of symbols constituting the winning, the invalid lines LM1 to 4 (LM1 is the left middle right reel) separately from the winning line LN. LM2 is a line extending over each middle stage of the left middle right reel, LM3 is a line extending over each lower stage of the left middle right reel, and LM4 is a line extending over each lower stage of the left middle right reel and middle stage of the middle reel. , The line over the upper part of the right reel.) Is set. The invalid lines LM1 to LM1 to 4 are not determined to win by the combination of the symbols aligned with the invalid lines LM1 to 4, but are invalid lines when the winning line LN has a combination of symbols constituting a specific winning. By configuring the combination of symbols (for example, bell-bell-bell) that will be awarded when the winning line LN is aligned with any of LM1 to LM4, the symbols constituting the winning line LN are the symbols that constitute a specific winning. This makes it easier to recognize that the combinations are complete.

本実施例では、図1に示すように、リール2Lの上段、リール2Cの上段、リール2Rの上段、すなわち上段に水平方向に並んだ図柄に跨がって設定された無効ラインLM1、リール2Lの下段、リール2Cの下段、リール2Rの下段、すなわち下段に水平方向に並んだ図柄に跨がって設定された無効ラインLM2、リール2Lの上段、リール2Cの中段、リール2Rの下段、すなわち右下がりに並んだ図柄に跨がって設定された無効ラインLM3、リール2Lの下段、リール2Cの中段、リール2Rの上段、すなわち右上がりに並んだ図柄に跨がって設定された無効ラインLM4の4種類が無効ラインLMとして定められている。 In this embodiment, as shown in FIG. 1, the invalid line LM1 and the reel 2L are set across the symbols arranged horizontally in the upper stage of the reel 2L, the upper stage of the reel 2C, and the upper stage of the reel 2R, that is, the upper stage. The lower tier, the lower tier of the reel 2C, the lower tier of the reel 2R, that is, the invalid line LM2 set across the symbols arranged horizontally in the lower tier, the upper tier of the reel 2L, the middle tier of the reel 2C, the lower tier of the reel 2R, that is. Invalid line set across symbols lined up to the right LM3, lower row of reel 2L, middle row of reel 2C, upper row of reel 2R, that is, invalid line set across symbols lined up to the right Four types of LM4 are defined as invalid line LM.

また、本実施例では、入賞役として、入賞ラインLNに役として定められた所定の図柄の組合せ(例えば、「ベル‐スイカ‐チェリー」)が揃ったときに入賞するとともに、かつ所定の図柄組合せが揃うことにより無効ラインLM1〜LM4のいずれかに所定の図柄組合せよりも認識しやすい指標となる図柄の組合せ(例えば、「スイカ‐スイカ‐スイカ」)が揃うことにより、無効ラインLM1〜LM4のいずれかに揃った図柄の組合せによって入賞したように見せることが可能な役を含む。以下では、所定の図柄の組合せが入賞ラインLNに揃ったときに無効ラインLM1〜LM4のいずれかに揃う図柄の組合せを、指標となる図柄の組合せと呼び、指標となる図柄の組合せを構成する図柄を指標図柄と呼ぶ。 Further, in this embodiment, as a winning combination, a prize is won when a predetermined combination of symbols (for example, "bell-watermelon-cherry") defined as a winning combination is prepared in the winning line LN, and a predetermined combination of symbols is obtained. When the invalid lines LM1 to LM4 are aligned, the combination of symbols (for example, "watermelon-watermelon-watermelon"), which is an index that is easier to recognize than the predetermined symbol combination, is aligned, so that the invalid lines LM1 to LM4 are aligned. Includes roles that can be made to look like a prize by combining any of the symbols. In the following, when a predetermined combination of symbols is aligned with the winning line LN, the combination of symbols aligned with any of the invalid lines LM1 to LM4 is referred to as a symbol combination as an index, and a combination of symbols as an index is configured. The symbol is called an index symbol.

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

そして全てのリール2L,2C,2Rが停止されることで1ゲームが終了し、入賞ラインLN上に予め定められた図柄の組合せ(以下、役ともいう)が各リール2L,2C,2Rの表示結果として停止した場合には入賞が発生し、その入賞に応じて定められた枚数のメダルが遊技者に対して付与され、クレジットに加算される。また、クレジットが上限数(本実施例では50)に達した場合には、メダルが直接メダル払出口9(図1参照)から払い出されるようになっている。また、入賞ラインLN上に、遊技状態の移行を伴う図柄の組合せが各リール2L,2C,2Rの表示結果として停止した場合には図柄の組合せに応じた遊技状態に移行するようになっている。 When all reels 2L, 2C, 2R are stopped, one game is completed, and a combination of symbols (hereinafter, also referred to as a combination) predetermined on the winning line LN is displayed on each reel 2L, 2C, 2R. If the game is stopped as a result, a prize will be generated, and a number of medals determined according to the prize will be given to the player and added to the credit. Further, when the maximum number of credits (50 in this embodiment) is reached, the medals are directly paid out from the medal payout outlet 9 (see FIG. 1). Further, when the combination of symbols accompanied by the transition of the gaming state stops on the winning line LN as the display result of each reel 2L, 2C, 2R, the combination of symbols is shifted to the gaming state according to the combination of symbols. ..

なお、本実施例では、スタートスイッチ7の操作が有効な状態でスタートスイッチ7の操作が検出されたときにゲーム(遊技)が開始し、全てのリールが停止したときにゲームが終了する。また、ゲームを実行するための1単位の制御(ゲーム制御)は、前回のゲームの終了に伴う全ての制御が完了したときに開始し、当該ゲームの終了に伴う全ての制御が完了したときに終了する。 In this embodiment, the game (game) starts when the operation of the start switch 7 is detected while the operation of the start switch 7 is valid, and the game ends when all the reels are stopped. In addition, one unit of control for executing the game (game control) starts when all the controls associated with the end of the previous game are completed, and when all the controls associated with the end of the game are completed. finish.

また、本実施例では、3つのリールを用いた構成を例示しているが、リールを1つのみ用いた構成、2つのリールを用いた構成、4つ以上のリールを用いた構成としても良く、2以上のリールを用いた構成においては、2以上の全てのリールに導出された表示結果の組合せに基づいて入賞を判定する構成とすれば良い。また、本実施例では、物理的なリールにて可変表示装置が構成されているが、液晶表示器などの画像表示装置にて可変表示装置が構成されていても良い。 Further, in this embodiment, a configuration using three reels is illustrated, but a configuration using only one reel, a configuration using two reels, and a configuration using four or more reels may be used. In the configuration using two or more reels, the winning may be determined based on the combination of the display results derived to all the two or more reels. Further, in this embodiment, the variable display device is configured by a physical reel, but the variable display device may be configured by an image display device such as a liquid crystal display.

また、本実施例におけるスロットマシン1にあっては、ゲームが開始されて各リール2L,2C,2Rが回転して図柄の変動が開始した後、いずれかのストップスイッチ8L,8C,8Rが操作されたときに、当該ストップスイッチ8L,8C,8Rに対応するリールの回転が停止して図柄が停止表示される。ストップスイッチ8L,8C,8Rの操作が行われたときから、対応するリール2L,2C,2Rの回転を停止するまでの最大停止遅延時間は190ミリ秒(ms)である。 Further, in the slot machine 1 in the present embodiment, one of the stop switches 8L, 8C, 8R is operated after the game is started, the reels 2L, 2C, and 2R rotate and the symbol changes start. When this is done, the rotation of the reels corresponding to the stop switches 8L, 8C, 8R is stopped and the symbol is displayed as stopped. The maximum stop delay time from when the stop switches 8L, 8C, 8R are operated to when the rotation of the corresponding reels 2L, 2C, 2R is stopped is 190 milliseconds (ms).

リール2L,2C,2Rは、1分間に80回転し、80×20(1リール当たりの図柄コマ数)=1600コマ分の図柄を変動させるので、190ミリ秒の間では最大で4コマの図柄を引き込むことができることとなる。つまり、停止図柄として選択可能なのは、ストップスイッチ8L,8C,8Rが操作されたときに表示されている図柄と、そこから4コマ先までにある図柄、合計5コマ分の図柄である。 The reels 2L, 2C, and 2R rotate 80 times per minute and change the symbol of 80 x 20 (the number of symbol frames per reel) = 1600 frames, so that the maximum number of symbols is 4 in 190 milliseconds. Will be able to be drawn in. That is, the symbols that can be selected as the stop symbols are the symbols that are displayed when the stop switches 8L, 8C, and 8R are operated, and the symbols that are up to 4 frames ahead of them, for a total of 5 frames.

このため、例えば、ストップスイッチ8L,8C,8Rのいずれかが操作されたときに当該ストップスイッチに対応するリールの下段に表示されている図柄を基準とした場合は、当該基準とした図柄から4コマ先までの図柄を下段に表示させることができるため、リール2L,2C,2R各々において、ストップスイッチ8L,8C,8Rのうちいずれかが操作されたときに当該ストップスイッチに対応するリールの入賞ライン上に表示されている図柄を含めて5コマ以内に配置されている図柄を入賞ライン上に表示させることができる。 Therefore, for example, when any of the stop switches 8L, 8C, and 8R is operated and the symbol displayed at the bottom of the reel corresponding to the stop switch is used as a reference, the symbol displayed from the reference is 4 Since the symbols up to the frame destination can be displayed in the lower row, when any of the stop switches 8L, 8C, and 8R is operated on each of the reels 2L, 2C, and 2R, the reel corresponding to the stop switch wins a prize. The symbols arranged within 5 frames including the symbols displayed on the line can be displayed on the winning line.

以下では、特に区別する必要がない場合にはリール2L,2C,2Rを単にリールという場合がある。また、リール2Lを左リール、リール2Cを中リール、リール2Rを右リールという場合がある。また、ストップスイッチ8L,8C,8Rの操作によりリール2L,2C,2Rを停止させる操作を停止操作という場合がある。 In the following, reels 2L, 2C, and 2R may be simply referred to as reels when it is not necessary to distinguish them. Further, the reel 2L may be referred to as a left reel, the reel 2C may be referred to as a middle reel, and the reel 2R may be referred to as a right reel. Further, the operation of stopping the reels 2L, 2C, 2R by operating the stop switches 8L, 8C, 8R may be referred to as a stop operation.

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

電源基板101には、外部からAC100Vの電源が供給されるとともに、このAC100Vの電源からスロットマシン1を構成する電気部品の駆動に必要な直流電圧が生成され、遊技制御基板40および演出制御基板90に供給されるようになっている。また、電源基板101には、前述したホッパーモータ34b、払出センサ34c、満タンセンサ35a、設定キースイッチ37、リセット/設定スイッチ38、電源スイッチ39が接続されている。 An AC100V power supply is supplied to the power supply board 101 from the outside, and a DC voltage required for driving the electric components constituting the slot machine 1 is generated from the AC100V power supply, so that the game control board 40 and the effect control board 90 are generated. It is supposed to be supplied to. Further, the above-mentioned hopper motor 34b, payout sensor 34c, full tank sensor 35a, setting key switch 37, reset / setting switch 38, and power switch 39 are connected to the power supply board 101.

遊技制御基板40には、前述したMAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L,8C,8R、精算スイッチ10、リセットスイッチ23、打止スイッチ36a、自動精算スイッチ36b、投入メダルセンサ31、ドア開放検出スイッチ25、リールセンサ33L,33C,33Rが接続されているとともに、電源基板101を介して前述した払出センサ34c、満タンセンサ35a、設定キースイッチ37、リセット/設定スイッチ38が接続されており、これら接続されたスイッチ類の検出信号が入力されるようになっている。また、遊技制御基板40には、前述したクレジット表示器11、遊技補助表示器12、1〜3BETLED14〜16、投入要求LED17、スタート有効LED18、ウェイト中LED19、リプレイ中LED20、BETスイッチ有効LED21、左,中,右停止有効LED22L,22C,22R、設定値表示器24、流路切替ソレノイド30、リールモータ32L,32C,32Rが接続されているとともに、電源基板101を介して前述したホッパーモータ34bが接続されており、これら電気部品は、遊技制御基板40に搭載されたメイン制御部41の制御に基づいて駆動されるようになっている。 The game control board 40 includes the MAXBET switch 6, the start switch 7, the stop switch 8L, 8C, 8R, the settlement switch 10, the reset switch 23, the stop switch 36a, the automatic settlement switch 36b, the input medal sensor 31, and the door opening. The detection switch 25, the reel sensors 33L, 33C, 33R are connected, and the payout sensor 34c, the full tank sensor 35a, the setting key switch 37, and the reset / setting switch 38 described above are connected via the power supply board 101. The detection signals of these connected switches are input. Further, on the game control board 40, the above-mentioned credit display 11, game auxiliary display 12, 1-3 BETLED 14 to 16, input request LED 17, start effective LED 18, wait LED 19, replay LED 20, BET switch effective LED 21, left. , Middle, right stop effective LED 22L, 22C, 22R, set value display 24, flow path switching solenoid 30, reel motor 32L, 32C, 32R are connected, and the above-mentioned hopper motor 34b is connected via the power supply board 101. These electrical components are connected and are driven under the control of the main control unit 41 mounted on the game control board 40.

遊技制御基板40には、メインCPU41a、ROM41b、RAM41c、I/Oポート41dを備えたマイクロコンピュータにより構成され、内部抽選用の乱数を生成する乱数回路などを備えており、遊技の進行に関する処理を行うとともに遊技制御基板40に搭載された制御回路の各部を直接的または間接的に制御するメイン制御部41と、遊技制御基板40に直接または電源基板101を介して接続されたスイッチ類から入力された検出信号を取り込んでメイン制御部41に伝送するスイッチ検出回路44と、メイン制御部41から出力されたモータ駆動信号(ステッピングモータの位相信号φ0〜φ3)をリールモータ32L,32C,32Rに伝送するモータ駆動回路45と、メイン制御部41から出力されたソレノイド駆動信号を流路切替ソレノイド30に伝送するソレノイド駆動回路46と、メイン制御部41から出力されたLED駆動信号を遊技制御基板40に接続された各種表示器やLEDに伝送するLED駆動回路47と、スロットマシン1に供給される電源の電圧を監視して電圧の低下を検出したときに、その旨を示す電圧低下信号をメイン制御部41に対して出力する電断検出回路48と、電源投入時または電源遮断時などの電力供給が不安定な状態においてメイン制御部41にシステムリセット信号を与えるリセット回路49とが搭載されている。 The game control board 40 is composed of a microcomputer equipped with a main CPU 41a, a ROM 41b, a RAM 41c, and an I / O port 41d, and is provided with a random number circuit for generating a random number for an internal lottery, and processes related to the progress of the game. It is input from the main control unit 41 that directly or indirectly controls each part of the control circuit mounted on the game control board 40, and the switches connected directly to the game control board 40 or via the power supply board 101. The switch detection circuit 44 that captures the detected detection signal and transmits it to the main control unit 41 and the motor drive signal (stepping motor phase signal φ0 to φ3) output from the main control unit 41 are transmitted to the reel motors 32L, 32C, 32R. The motor drive circuit 45, the solenoid drive circuit 46 that transmits the solenoid drive signal output from the main control unit 41 to the flow path switching solenoid 30, and the LED drive signal output from the main control unit 41 are transmitted to the game control board 40. When the LED drive circuit 47 transmitted to various connected indicators and LEDs and the voltage of the power supply supplied to the slot machine 1 are monitored and a voltage drop is detected, a voltage drop signal indicating that fact is mainly controlled. A power failure detection circuit 48 that outputs to the unit 41 and a reset circuit 49 that gives a system reset signal to the main control unit 41 in a state where the power supply is unstable such as when the power is turned on or when the power is cut off are mounted. ..

メイン制御部41は、サブ制御部91に各種のコマンドを送信する。メイン制御部41からサブ制御部91へ送信されるコマンドは一方向のみで送られ、サブ制御部91からメイン制御部41へ向けてコマンドが送られることはない。 The main control unit 41 transmits various commands to the sub control unit 91. The command transmitted from the main control unit 41 to the sub control unit 91 is sent in only one direction, and the command is not sent from the sub control unit 91 to the main control unit 41.

また、I/Oポート41dは、出力ポート0〜9を含み、メイン制御部41は、出力ポート0および出力ポート1より左,中,右リールモータ32L,32C,32Rの制御信号を出力可能である。出力ポート2より左・中・右停止有効LED22L、22C、22Rの制御信号、流路切替ソレノイド30の制御信号を出力可能である。出力ポート3よりホッパーモータ34bの制御信号、外部出力信号を出力可能である。出力ポート4および出力ポート5よりクレジット表示器11、遊技補助表示器12、1〜3BETLED14〜16、投入要求LED17、スタート有効LED18、ウェイト中LED19、リプレイ中LED20、BETスイッチ有効LED21の制御信号を出力可能である。出力ポート6より試験信号を出力可能である。出力ポート7より外部出力信号を出力可能である。 Further, the I / O port 41d includes output ports 0 to 9, and the main control unit 41 can output control signals of the left, middle, and right reel motors 32L, 32C, and 32R from the output port 0 and the output port 1. is there. It is possible to output the control signals of the left / middle / right stop effective LEDs 22L, 22C, 22R and the control signal of the flow path switching solenoid 30 from the output port 2. The control signal of the hopper motor 34b and the external output signal can be output from the output port 3. Outputs control signals of credit display 11, game auxiliary display 12, 1-3 BETLED 14-16, input request LED 17, start effective LED 18, wait LED 19, replay LED 20, BET switch effective LED 21 from output port 4 and output port 5. It is possible. The test signal can be output from the output port 6. An external output signal can be output from the output port 7.

メイン制御部41は、メイン処理として遊技制御基板40に接続された各種スイッチ類の検出状態が変化するまでは制御状態に応じた処理を繰り返しループし、各種スイッチ類の検出状態の変化に応じて段階的に移行する処理を実行する。また、メイン制御部41は、一定時間間隔(本実施例では、約0.56ミリ秒)毎にタイマ割込処理(メイン)を実行する。なお、タイマ割込処理(メイン)の実行間隔は、メイン処理において制御状態に応じて繰り返す処理が一巡する時間とタイマ割込処理(メイン)の実行時間とを合わせた時間よりも長い時間に設定されており、今回と次回のタイマ割込処理(メイン)との間で必ず制御状態に応じて繰り返す処理が最低でも一巡することとなる。 The main control unit 41 repeatedly loops the processing according to the control state until the detection state of the various switches connected to the game control board 40 changes as the main processing, and responds to the change in the detection state of the various switches. Execute the process of gradual migration. Further, the main control unit 41 executes the timer interrupt process (main) at regular time intervals (about 0.56 milliseconds in this embodiment). The execution interval of the timer interrupt process (main) is set to be longer than the total time of the time in which the process repeated according to the control state in the main process completes and the execution time of the timer interrupt process (main). Therefore, the process of repeating the timer interrupt process (main) between this time and the next time according to the control state always completes at least one cycle.

演出制御基板90には、演出用スイッチ56が接続されており、この演出用スイッチ56の検出信号が入力されるようになっている。また、液晶表示器51、演出効果LED52、スピーカ53,54、リールLED55などの演出装置が接続されており、これら演出装置は、演出制御基板90に搭載されたサブ制御部91による制御に基づいて駆動されるようになっている。なお、本実施例では、演出制御基板90に搭載されたサブ制御部91により、液晶表示器51、演出効果LED52、スピーカ53,54、リールLED55などの演出装置の出力制御が行われる構成であるが、サブ制御部91とは別に演出装置の出力制御を直接的に行う出力制御部を演出制御基板90または他の基板に搭載し、サブ制御部91がメイン制御部41からのコマンドに基づいて演出装置の出力パターンを決定し、サブ制御部91が決定した出力パターンに基づいて出力制御部が演出装置の出力制御を行う構成としても良く、このような構成では、サブ制御部91および出力制御部の双方によって演出装置の出力制御が行われることとなる。また、本実施例では、演出装置として液晶表示器51、演出効果LED52、スピーカ53,54、リールLED55を例示しているが、演出装置は、これらに限られず、例えば、機械的に駆動する表示装置や機械的に駆動する役モノなどを演出装置として適用しても良い。 An effect switch 56 is connected to the effect control board 90, and a detection signal of the effect switch 56 is input. Further, an effect device such as a liquid crystal display 51, an effect LED 52, speakers 53, 54, and a reel LED 55 is connected, and these effect devices are based on control by a sub control unit 91 mounted on the effect control board 90. It is designed to be driven. In this embodiment, the sub-control unit 91 mounted on the effect control board 90 controls the output of the effect devices such as the liquid crystal display 51, the effect LED 52, the speakers 53, 54, and the reel LED 55. However, an output control unit that directly controls the output of the effect device is mounted on the effect control board 90 or another board separately from the sub control unit 91, and the sub control unit 91 is based on a command from the main control unit 41. The output pattern of the effect device may be determined, and the output control unit may control the output of the effect device based on the output pattern determined by the sub control unit 91. In such a configuration, the sub control unit 91 and the output control may be used. The output of the effect device is controlled by both units. Further, in this embodiment, the liquid crystal display 51, the effect LED 52, the speakers 53, 54, and the reel LED 55 are illustrated as the effect device, but the effect device is not limited to these, and for example, a mechanically driven display is used. A device or a mechanically driven role object may be applied as a directing device.

演出制御基板90は、サブCPU91a、ROM91b、RAM91c、I/Oポート91dを備えたマイクロコンピュータにより構成されて演出の制御を行うサブ制御部91と、演出制御基板90に接続された液晶表示器51の表示制御を行う表示制御回路92と、演出効果LED52と、リールLED55の駆動制御を行うLED駆動回路93と、スピーカ53、54からの音声出力制御を行う音声出力回路94と、電源投入時またはサブCPU91aからの初期化命令が一定時間入力されないときにサブCPU91aにリセット信号を与えるリセット回路95と、演出制御基板90に接続されたスイッチ類から入力された検出信号を検出するスイッチ検出回路96と、日付情報および時刻情報を含む時間情報を出力する時計装置97と、スロットマシン1に供給される電源電圧を監視し、電圧低下を検出したときに、その旨を示す電圧低下信号をサブCPU91aに対して出力する電断検出回路98と、その他の回路などが搭載されている。 The effect control board 90 includes a sub control unit 91 composed of a microcomputer provided with a sub CPU 91a, a ROM 91b, a RAM 91c, and an I / O port 91d to control the effect, and a liquid crystal display 51 connected to the effect control board 90. The display control circuit 92 that controls the display, the effect LED 52, the LED drive circuit 93 that controls the drive of the reel LED 55, and the audio output circuit 94 that controls the audio output from the speakers 53 and 54, when the power is turned on or A reset circuit 95 that gives a reset signal to the sub CPU 91a when an initialization command from the sub CPU 91a is not input for a certain period of time, and a switch detection circuit 96 that detects a detection signal input from switches connected to the effect control board 90. , The clock device 97 that outputs time information including date information and time information, and when the power supply voltage supplied to the slot machine 1 is monitored and a voltage drop is detected, a voltage drop signal indicating that fact is sent to the sub CPU 91a. A power failure detection circuit 98 that outputs to the device and other circuits are mounted.

サブ制御部91は、遊技制御基板40から送信されるコマンドを受けて、演出を行うための各種の制御を行うとともに、演出制御基板90に搭載された制御回路の各部を直接的または間接的に制御する。 The sub-control unit 91 receives a command transmitted from the game control board 40 to perform various controls for performing the effect, and directly or indirectly controls each part of the control circuit mounted on the effect control board 90. Control.

本実施例のスロットマシン1は、設定値に応じてメダルの払出率が変わる構成である。詳しくは、内部抽選などの遊技者に対する有利度に影響する抽選において設定値に応じた当選確率を用いることにより、メダルの払出率が変わるようになっている。設定値は1〜6の6段階からなり、6が最も払出率が高く、5、4、3、2、1の順に値が小さくなるほど払出率が低くなる。すなわち設定値として6が設定されている場合には、遊技者にとって最も有利度が高く、5、4、3、2、1の順に値が小さくなるほど有利度が段階的に低くなる。 The slot machine 1 of this embodiment has a configuration in which the medal payout rate changes according to the set value. Specifically, the medal payout rate is changed by using the winning probability according to the set value in a lottery that affects the player's advantage such as an internal lottery. The set value is composed of 6 stages from 1 to 6, with 6 having the highest payout rate, and the smaller the value in the order of 5, 4, 3, 2, 1 the lower the payout rate. That is, when 6 is set as the set value, the advantage is highest for the player, and the smaller the value in the order of 5, 4, 3, 2, 1 is, the lower the advantage is.

設定値を変更するためには、設定キースイッチ37をon状態としてからスロットマシン1の電源をonする必要がある。設定キースイッチ37をon状態として電源をonすると、設定値表示器24にRAM41cから読み出された設定値が表示値として表示され、リセット/設定スイッチ38の操作による設定値の変更が可能な設定変更状態に移行する。設定変更状態において、リセット/設定スイッチ38が操作されると、設定値表示器24に表示された表示値が1ずつ更新されていく(設定値6からさらに操作されたときは、設定値1に戻る)。そして、スタートスイッチ7が操作されると表示値を設定値として確定する。そして、設定キースイッチ37がoffされると、確定した表示値(設定値)がメイン制御部41のRAM41cに格納され、遊技の進行が可能な状態に移行する。 In order to change the set value, it is necessary to turn on the power of the slot machine 1 after turning on the setting key switch 37. When the setting key switch 37 is turned on and the power is turned on, the setting value read from the RAM 41c is displayed as a display value on the setting value display 24, and the setting value can be changed by operating the reset / setting switch 38. Move to the changed state. When the reset / setting switch 38 is operated in the setting change state, the display value displayed on the setting value display 24 is updated by 1 (when the setting value 6 is further operated, the setting value is changed to 1). Return). Then, when the start switch 7 is operated, the display value is fixed as the set value. Then, when the setting key switch 37 is turned off, the confirmed display value (setting value) is stored in the RAM 41c of the main control unit 41, and the game shifts to a state in which the game can proceed.

本実施例のスロットマシン1は、遊技状態に応じて設定可能な賭数の規定数が定められており、遊技状態に応じて定められた規定数の賭数が設定されたことを条件にゲームを開始させることが可能となる。なお、本実施例では、遊技状態に応じた規定数の賭数が設定された時点で、入賞ラインLNが有効化される。 In the slot machine 1 of the present embodiment, a specified number of bets that can be set according to the gaming state is determined, and the game is provided on the condition that the specified number of bets determined according to the gaming state is set. Can be started. In this embodiment, the winning line LN is activated when a predetermined number of bets are set according to the gaming state.

そして、本実施例では、全てのリール2L,2C,2Rが停止した際に、有効化された入賞ライン(本実施例の場合、常に入賞ラインLNが有効化されるため、以下では、有効化された入賞ラインLNを単に入賞ラインという)上に役と呼ばれる図柄の組合せが揃うと入賞となる。役は、同一図柄の組合せであっても良いし、異なる図柄を含む組合せであっても良い。 Then, in this embodiment, when all the reels 2L, 2C, and 2R are stopped, the winning line that is activated (in the case of this embodiment, the winning line LN is always enabled, so that it is enabled in the following. A prize is won when a combination of symbols called a role is arranged on the winning line LN (simply called a winning line). The combination may be a combination of the same symbols or a combination including different symbols.

入賞となる役の種類は、遊技状態に応じて定められているが、大きく分けて、メダルの払い出しを伴う小役と、賭数の設定を必要とせずに次のゲームを開始可能となる再遊技役(リプレイ)と、遊技者にとって有利な遊技状態への移行を伴う特別役(ボーナス)と、がある。以下では、小役と再遊技役をまとめて一般役とも呼ぶ。遊技状態に応じて定められた各役の入賞が発生するためには、内部抽選に当選して、当該役の当選フラグがRAM41cに設定されている必要がある。内部抽選は、メイン制御部41が、上記した各役への入賞を許容するか否かを、全てのリール2L,2C,2Rの表示結果が導出される以前(具体的には、スタートスイッチ7の検出時)に乱数を用いて決定するものである。なお、これら各役の当選フラグのうち、小役および再遊技役の当選フラグは、当該フラグが設定されたゲームにおいてのみ有効とされ、次のゲームでは無効となるが、特別役の当選フラグは、当該フラグにより許容された役の組合せが揃うまで有効とされ、許容された役の組合せが揃ったゲームにおいて無効となる。すなわち特別役の当選フラグが一度当選すると、例え、当該フラグにより許容された役の組合せを揃えることができなかった場合にも、その当選フラグは無効とされずに、次のゲームへ持ち越されることとなる。 The types of winning roles are determined according to the game status, but they can be broadly divided into small winning roles that involve payout of medals and re-starting the next game without the need to set the number of bets. There are a game role (replay) and a special role (bonus) that accompanies a transition to a game state that is advantageous to the player. In the following, the small role and the replaying role will be collectively referred to as the general role. In order for each winning combination determined according to the game state to be won, it is necessary to win the internal lottery and set the winning flag of the winning combination in the RAM 41c. The internal lottery is performed before the display results of all reels 2L, 2C, and 2R are derived (specifically, the start switch 7) whether or not the main control unit 41 allows the winning of each of the above-mentioned combinations. Is determined by using a random number (at the time of detection). Of the winning flags for each of these winning combinations, the winning flags for the small winning combination and the replaying combination are valid only in the game in which the flags are set, and are invalid in the next game, but the winning flags for the special winning combination are , It is valid until the combinations of the allowed combinations are complete by the flag, and is invalid in the game in which the combinations of the allowed combinations are complete. That is, once the winning flag of the special role is won, even if the combination of the winning combination permitted by the flag cannot be aligned, the winning flag is not invalidated and is carried over to the next game. It becomes.

また、内部抽選では、特別役と重複して当選する一般役(以下、重複当選役と呼ぶ)が設けられており、内部抽選にて当該重複当選役が当選した場合には、特別役も重複して当選し得るようになっており、当該重複当選役を構成する図柄組合せがリール2L,2C,2Rに停止することで、特別役が当選している可能性がある旨が示唆されるようになっている。 In addition, in the internal lottery, a general role (hereinafter referred to as a duplicate winning combination) that is won in duplicate with the special role is provided, and if the duplicate winning combination is won in the internal lottery, the special role is also duplicated. It is possible to win the prize, and it is suggested that the special combination may have been won by stopping the symbol combination constituting the duplicate winning combination on the reels 2L, 2C, 2R. It has become.

また、内部抽選では、予め定められた所定の停止順で停止操作が行われる場合にのみ当該役を構成する図柄を入賞ラインLNに揃えて停止させ、入賞を発生させることが可能な小役、再遊技役(以下押し順役と呼ぶ場合がある)と、停止順によらず役を構成する図柄を入賞ラインLNに揃えて停止させ、入賞を発生させることが可能な小役、再遊技役(非押し順役と呼ぶ場合がある)とが当選し得るようになっている。 Further, in the internal lottery, a small winning combination that can generate a winning by aligning the symbols constituting the winning combination with the winning line LN and stopping only when the stopping operation is performed in a predetermined stop order. A re-game combination (hereinafter sometimes referred to as a push order combination), a small combination that can generate a prize by aligning the symbols that make up the combination with the winning line LN regardless of the stop order, and a re-game combination (replaying combination) (Sometimes called non-pushing order) can be won.

また、内部抽選では、当選し得る役として、通常の役とは異なる特殊役(特殊小役または特殊再遊技役)が含まれており、内部抽選にて特殊役が当選することで、規定のゲーム数にわたり後述のアシストタイム(以下、ATという)に制御される権利(以下、ATの権利という)が当選し得るようになっている。 In addition, in the internal lottery, as the winning combination, a special role (special small role or special replaying role) different from the normal role is included, and by winning the special role in the internal lottery, it is stipulated. The right (hereinafter referred to as AT right) controlled by the assist time (hereinafter referred to as AT) described later can be won over the number of games.

本実施例のスロットマシン1は、メイン制御部41により、内部抽選結果に応じて遊技者にとって有利となるストップスイッチ8L,8C,8Rの操作態様を遊技補助表示器12の点灯態様により報知するナビ報知を実行可能な報知期間となるアシストタイム(以下、ATという)に制御可能となっており、ATに制御される権利が当選し、所定の開始条件(例えば、ATの権利の当選後、所定のゲーム数が経過すること、ATの権利の当選後、所定の図柄組合せがリール2L,2C,2Rに停止することなど)が成立することで、メイン制御部41はATの制御を開始して、ATに制御する。そして、ATに制御している場合には、遊技状態に応じたナビ対象役(前述の押し順役のうち該当する役)に当選することにより、ナビ報知を実行して、遊技者にとって有利となるストップスイッチ8L,8C,8Rの操作態様(押し順、操作タイミング)を報知するとともに、遊技者にとって有利となる操作態様を特定可能なコマンドをサブ制御部91に対して送信することで、液晶表示器51などを用いたナビ演出を実行させる。ナビ報知およびナビ演出により報知される操作態様にて、ストップスイッチ8L,8C,8Rを操作することで、内部抽選にて当選した押し順役を確実に入賞させることができるようになっている。なお、本実施例においてメイン制御部41は、ATに制御していない通常状態であっても、一定の条件を満たすことにより、ナビ報知を実行し、ナビ演出を実行させることが可能である。 In the slot machine 1 of the present embodiment, the main control unit 41 notifies the operation mode of the stop switches 8L, 8C, 8R, which is advantageous for the player according to the internal lottery result, by the lighting mode of the game auxiliary display 12. It is possible to control the assist time (hereinafter referred to as AT), which is the notification period during which notification can be executed, and the right to be controlled by AT is elected, and a predetermined start condition (for example, after the AT right is elected) is predetermined. The main control unit 41 starts controlling the AT when the number of games has passed and the predetermined symbol combination is stopped on the reels 2L, 2C, 2R after the AT right is won. , Control to AT. Then, when the AT is controlled, by winning the navigation target combination (corresponding combination among the above-mentioned push order combinations) according to the game state, the navigation notification is executed, which is advantageous for the player. By notifying the operation mode (pushing order, operation timing) of the stop switches 8L, 8C, 8R, and transmitting a command capable of specifying an operation mode that is advantageous to the player to the sub-control unit 91, the liquid crystal display is displayed. A navigation effect using a display 51 or the like is executed. By operating the stop switches 8L, 8C, and 8R in the operation mode notified by the navigation notification and the navigation effect, the push order winning combination won in the internal lottery can be reliably won. In this embodiment, the main control unit 41 can execute the navigation notification and execute the navigation effect by satisfying certain conditions even in the normal state where the AT does not control the control.

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

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

本実施例では、いずれかの役に当選している場合には、停止操作が行われた際に、入賞ライン上に最大4コマの引込範囲で当選している役を揃えて停止させることができれば、これを揃えて停止させる制御が行われ、当選していない役は、最大4コマの引込範囲で揃えずに停止させる制御が行われることとなる。 In this embodiment, when any of the winning combinations is won, when the stop operation is performed, the winning winning combinations can be stopped together on the winning line within a pull-in range of up to 4 frames. If possible, control is performed to align and stop the winning combination, and control is performed to stop the winning combination without aligning it within a pull-in range of a maximum of 4 frames.

特別役が前ゲーム以前から持ち越されている状態で小役が当選した場合など、特別役と小役が同時に当選している場合には、停止操作が行われた際に、入賞ライン上に最大4コマの引込範囲で当選している小役を揃えて停止させることができれば、これを揃えて停止させる制御が行われ、入賞ライン上に最大4コマの引込範囲で当選している小役を引き込めない場合には、入賞ライン上に最大4コマの引込範囲で当選している特別役を揃えて停止させることができれば、これを揃えて停止させる制御が行われ、当選していない役は、4コマの引込範囲で揃えずに停止させる制御が行われることとなる。すなわちこのような場合には、特別役よりも小役を入賞ライン上に揃える制御が優先され、小役を引き込めない場合にのみ、特別役を入賞させることが可能となる。なお、特別役と小役を同時に引き込める場合には、小役のみを引き込み、特別役と同時に小役が入賞ライン上に揃わないようになる。また、特別役と小役が同時に当選している場合に、小役よりも特別役を入賞ライン上に揃える制御が優先され、特別役を引き込めない場合にのみ、小役を入賞ライン上に揃える制御を行っても良い。 If the special role and the small role are won at the same time, such as when the special role is carried over from before the previous game and the small role is won, the maximum on the winning line is when the stop operation is performed. If it is possible to align and stop the winning small wins in the pull-in range of 4 frames, control is performed to align and stop the small wins that have been won in the pull-in range of up to 4 frames on the winning line. If it is not possible to draw in, if it is possible to align and stop the winning special roles in the drawing range of up to 4 frames on the winning line, control will be performed to align and stop, and the winning combination will be stopped. Control is performed so that the four frames are stopped without being aligned within the pull-in range of four frames. That is, in such a case, the control of aligning the small winning combination on the winning line is prioritized over the special winning combination, and the special winning combination can be won only when the small winning combination cannot be drawn in. If the special role and the small role can be drawn in at the same time, only the small role will be drawn in, and the small role will not be aligned on the winning line at the same time as the special role. Also, when a special role and a small role are won at the same time, the control to align the special role on the winning line is prioritized over the small role, and only when the special role cannot be drawn in, the small role is placed on the winning line. Alignment control may be performed.

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

なお、本実施例では、停止操作が行われたタイミング別の滑りコマ数を特定可能な停止制御テーブルを用いてリールの停止制御を行う構成であるが、停止可能な位置を特定可能な停止位置テーブルから停止位置を特定し、特定した停止位置にリールを停止させる停止制御を行う構成、停止制御テーブルや停止位置テーブルを用いずに、停止操作がされたタイミングで停止可能な停止位置を検索・特定し、特定した停止位置にリールを停止させる停止制御を行う構成、停止制御テーブルを用いた停止制御、停止位置テーブルを用いた停止制御、停止制御テーブルや停止位置テーブルを用いずに停止可能な停止位置を検索・特定することによる停止制御を併用する構成、停止制御テーブルや停止位置テーブルを一部変更して停止制御を行う構成としても良い。 In this embodiment, the reel stop control is performed using a stop control table that can specify the number of slip frames for each timing when the stop operation is performed. However, the stop position that can specify the stop position can be specified. A configuration that specifies the stop position from the table and stops the reel at the specified stop position, and searches for a stop position that can be stopped at the timing when the stop operation is performed without using the stop control table or stop position table. A configuration that performs stop control to specify and stop the reel at the specified stop position, stop control using the stop control table, stop control using the stop position table, and stop without using the stop control table or stop position table. A configuration in which stop control by searching and specifying a stop position may be used together, or a configuration in which a stop control table or a stop position table is partially changed to perform stop control may be used.

[メイン制御部のメモリ領域とプログラムについて]
図4は、メイン制御部41が用いるメモリ領域のアドレスマップである。図4に示すように、メイン制御部41が用いるメモリ領域は、ROM41bに割り当てられたメモリ領域(0000H〜EFFFH)と、RAM41cに割り当てられたメモリ領域(F000H〜FFFFH)とを含む。
[About the memory area and program of the main control unit]
FIG. 4 is an address map of the memory area used by the main control unit 41. As shown in FIG. 4, the memory area used by the main control unit 41 includes a memory area (0000H to EFFFH) allocated to the ROM 41b and a memory area (F000H to FFFFH) allocated to the RAM 41c.

ROM41bのメモリ領域は、プログラムおよび固定データが格納されるプログラム/データ領域(0000H〜2FBFH)と、その他の領域(2FC0H〜EFFFH)とからなる。その他の領域は、プログラムのタイトル、バージョンなどの任意のデータを設定可能なROMコメント領域と、CALLV命令のサブルーチンの上位アドレスおよびタイマ割込処理(メイン)の先頭アドレスが設定されるベクタテーブル領域と、メイン制御部41の内部機能をハードウェア的に設定するためのパラメータが設定されるHWパラメータ領域と、アクセスが禁止される未使用領域を含む。 The memory area of the ROM 41b includes a program / data area (0000H to 2FBFH) in which the program and fixed data are stored, and another area (2FC0H to EFFFH). The other areas are a ROM comment area where arbitrary data such as the program title and version can be set, and a vector table area where the upper address of the subroutine of the CALLV instruction and the start address of the timer interrupt process (main) are set. The HW parameter area in which parameters for setting the internal functions of the main control unit 41 in terms of hardware are set, and an unused area in which access is prohibited are included.

RAM41cのメモリ領域は、ワークとして使用可能な使用可能領域(F000H〜F400H)と、その他の領域(F401H〜FFFFH)とからなる。その他の領域は、メイン制御部41に搭載されている各機能を制御するためのレジスタ群が格納される内部機能レジスタ領域(FE00H〜FEACH)を含む。 The memory area of the RAM 41c is composed of a usable area (F000H to F400H) that can be used as a work and other areas (F401H to FFFFH). The other area includes an internal function register area (FE00H to FEACH) in which a register group for controlling each function mounted on the main control unit 41 is stored.

ROM41bにおけるプログラム/データ領域は、遊技の進行に係わる遊技プログラムが記憶される遊技プログラム領域と、遊技プログラムが用いる遊技データが記憶される遊技データ領域と、未使用領域1と、遊技の進行に係わらない非遊技プログラムが記憶される非遊技プログラム領域と、非遊技プログラムが用いる非遊技データが記憶される非遊技データ領域と、未使用領域2とを含む。 The program / data area in the ROM 41b is related to the game progress, the game program area in which the game program related to the progress of the game is stored, the game data area in which the game data used by the game program is stored, the unused area 1, and the game progress. It includes a non-game program area in which no non-game program is stored, a non-game data area in which non-game data used by the non-game program is stored, and an unused area 2.

なお、遊技の進行とは、遊技を構成する一連のプロセスを進行させることであり、スロットマシンであれば、賭数を設定してゲームを開始可能とする段階、ゲームを開始してリールを回転させる段階、リールを停止させて表示結果を導出させる段階、表示結果に応じてメダルなどの価値を付与する段階を進行させることである。 Note that the progress of the game is to proceed with a series of processes constituting the game, and if it is a slot machine, the stage where the bet number is set and the game can be started, the game is started and the reel is rotated. The stage of causing the reel to be stopped, the stage of deriving the display result, and the stage of giving a value such as a medal according to the display result are advanced.

なお、上記において記憶領域の前後とは、記憶領域に割り当てられたアドレス値の大小関係であり、アドレスが小さい方が前方となり、アドレスが大きい方が後方となる。このため、一の記憶領域よりも後方に割り当てられた記憶領域とは、一の記憶領域よりもアドレス値が大きい記憶領域が該当し、一の記憶領域よりも前方に割り当てられた記憶領域とは、一の記憶領域よりもアドレス値が小さい記憶領域が該当する。 In the above, the front and back of the storage area are the magnitude relations of the address values assigned to the storage area, and the smaller address is the front and the larger address is the rear. Therefore, the storage area allocated after the one storage area corresponds to the storage area having an address value larger than that of the one storage area, and the storage area allocated before the one storage area is defined as the storage area. , A storage area whose address value is smaller than that of one storage area is applicable.

RAM41cは、遊技プログラムがワークとして用いる遊技RAM領域と、未使用領域3と、遊技プログラムがデータを退避するスタック領域と、非遊技プログラムがワークとして用いる非遊技RAM領域と、未使用領域4と、非遊技プログラムがデータを退避するスタック領域とを含む。 The RAM 41c includes a game RAM area used as a work by the game program, an unused area 3, a stack area in which the game program saves data, a non-game RAM area used by the non-game program as a work, and an unused area 4. Includes a stack area where non-gaming programs save data.

遊技RAM領域は、領域A〜Dにより構成される。ここで、領域A〜Dを全初期化対象領域と呼び、領域B〜Dを設定変更終了時初期化対象領域と呼び、領域C〜Dをボーナス終了時初期化対象領域と呼び、領域Dを遊技終了時初期化対象領域と呼ぶ。全初期化対象領域は、RAMエラーが発生した際にときに所定の操作を行うことによって初期化される領域である。設定変更終了時初期化対象領域は、設定変更が終了した際に初期化される領域である。ボーナス終了時初期化対象領域は、ボーナス終了時に初期化される領域である。遊技終了時初期化対象領域は、遊技(ゲーム)が終了するたびに初期化される領域である。 The game RAM area is composed of areas A to D. Here, the areas A to D are called all initialization target areas, the areas B to D are called the initialization target areas at the end of setting change, the areas C to D are called the initialization target areas at the end of the bonus, and the areas D are called. It is called the initialization target area at the end of the game. The entire initialization target area is an area that is initialized by performing a predetermined operation when a RAM error occurs. The area to be initialized at the end of setting change is an area that is initialized when the setting change is completed. The area to be initialized at the end of the bonus is an area that is initialized at the end of the bonus. The area to be initialized at the end of the game is an area that is initialized every time the game ends.

以下では、遊技プログラム領域、遊技データ領域および遊技RAM領域をまとめて遊技領域と称す場合があり、非遊技プログラム領域、非遊技データ領域および非遊技RAM領域をまとめて非遊技領域と称す場合がある。また、未使用領域1および未使用領域2、未使用領域3および未使用領域4をまとめて未使用領域と称す場合がある。 In the following, the game program area, the game data area, and the game RAM area may be collectively referred to as a game area, and the non-game program area, the non-game data area, and the non-game RAM area may be collectively referred to as a non-game area. .. Further, the unused area 1, the unused area 2, the unused area 3 and the unused area 4 may be collectively referred to as an unused area.

[プログラムが用いる命令]
メイン制御部41が実行するプログラムは、プログラム全体の進行を管理するメインルーチンと、他のプログラムの実行中に呼び出されるサブルーチンとを含む。
[Instructions used by the program]
The program executed by the main control unit 41 includes a main routine that manages the progress of the entire program and a subroutine that is called during the execution of another program.

また、メイン制御部41にプログラム/データ領域に格納されたプログラムを実行させる命令として、CALL命令(呼出命令)を含む。CALL命令は、メインルーチンまたはサブルーチンにおいて指定されたアドレスに格納されたサブルーチンを呼び出して実行させる命令である。メイン制御部41は、CALL命令によりサブルーチンを呼び出す場合には、呼び出し元のアドレスをスタック領域に格納し、指定されたアドレスに格納されたサブルーチンを呼び出して実行する。そして、当該サブルーチンの終了時には、RET命令(復帰命令)により、スタック領域に格納されている呼び出し元のアドレス、すなわちCALL命令を実行した呼び出し元のメインルーチンまたはサブルーチンのプログラムに復帰する。 Further, a CALL instruction (call instruction) is included as an instruction for causing the main control unit 41 to execute the program stored in the program / data area. The CALL instruction is an instruction that calls and executes a subroutine stored at an address specified in the main routine or the subroutine. When calling a subroutine by a CALL instruction, the main control unit 41 stores the address of the caller in the stack area, and calls and executes the subroutine stored in the designated address. Then, at the end of the subroutine, the RET instruction (return instruction) returns to the address of the caller stored in the stack area, that is, the program of the main routine or the subroutine of the caller that executed the CALL instruction.

メイン制御部41にプログラム/データ領域に格納されたデータを読み出す命令としてLD命令を含む。LD命令は、メインルーチンまたはサブルーチンにおいて指定されたアドレスに格納された1バイトデータを指定されたレジスタに読み出す命令である。メイン制御部41は、LD命令により指定されたアドレスに格納されたデータを読み出し、LD命令により指定されたレジスタに読み出したデータを格納する。これに対して、LDW命令は、メインルーチンまたはサブルーチンにおいて指定されたアドレスに格納された2バイトデータを指定されたレジスタに読み出す命令である。 The main control unit 41 includes an LD instruction as an instruction to read the data stored in the program / data area. The LD instruction is an instruction to read the 1-byte data stored at the address specified in the main routine or the subroutine into the specified register. The main control unit 41 reads the data stored at the address specified by the LD instruction, and stores the read data in the register specified by the LD instruction. On the other hand, the LDW instruction is an instruction to read the 2-byte data stored at the address specified in the main routine or the subroutine into the specified register.

ここで、遊技プログラムとは、遊技の進行に係わるプログラムであり、当該プログラムに基づく処理を実行しないと、遊技の進行に支障をきたす処理を実行するためのプログラムである。一方、非遊技プログラムとは、遊技の進行に係わらないプログラムであり、遊技プログラムから呼び出されて当該プログラムに基づく処理が実行されずに遊技プログラムに復帰した場合でも、遊技を進行させることが可能な処理を実行するためのプログラムである。 Here, the game program is a program related to the progress of the game, and is a program for executing a process that hinders the progress of the game unless the process based on the program is executed. On the other hand, the non-game program is a program that is not related to the progress of the game, and even if it is called from the game program and returns to the game program without executing the process based on the program, the game can be progressed. It is a program for executing processing.

[入出力ポート]
図5は、入出力ポートマップを示す図である。I/Oポート41dは、入力ポート0〜2、出力ポート0〜8を含む。各入力ポートからは、接続された各種機器の検出信号が入力される。各出力ポートからは、各種の制御信号や試験信号や外部出力信号を出力可能である。各入力ポートまたは各出力ポートからは、それぞれ8種類(図5のD0〜D7)の信号が入力または出力可能である。たとえば、メイン制御部41は、左,中,右ストップスイッチの操作に基づいて、入力ポート0のD0〜D2から左,中,右ストップスイッチ信号を検出する。たとえば、出力ポート0のD0〜D3より左リールモータ信号(φ0〜φ3)を出力可能である。これにより、左リールモータが駆動可能となり、左リールの回転または停止が行われる。なお、図5に示した信号は、あくまで一例であって、これ以外の信号を出力するものであってもよく、どのポートから信号を入出力させるようにしてもよい。
[I / O port]
FIG. 5 is a diagram showing an input / output port map. The I / O port 41d includes input ports 0 to 2 and output ports 0 to 8. Detection signals of various connected devices are input from each input port. Various control signals, test signals, and external output signals can be output from each output port. Eight types of signals (D0 to D7 in FIG. 5) can be input or output from each input port or each output port. For example, the main control unit 41 detects the left, middle, and right stop switch signals from D0 to D2 of the input port 0 based on the operation of the left, middle, and right stop switches. For example, the left reel motor signal (φ0 to φ3) can be output from D0 to D3 of the output port 0. As a result, the left reel motor can be driven, and the left reel is rotated or stopped. The signal shown in FIG. 5 is merely an example, and signals other than the signals may be output, and the signal may be input / output from any port.

[エラーコード]
図6は、エラーコードを示す図である。エラーコマンドは、図6に示すように、発生している異常の種類を特定可能なエラーコードE1〜E8を含んでいる。E1は、オーバーフローエラーであり、オーバーフロータンク35の満タン状態が検知されたことを示し、E2は、ホッパーエンプティエラーであり、ホッパータンク34aの空状態が検知されたことを示し、E3は、メダル詰りエラーであり、メダル払出口9付近の異物が検知されたことを示し、E4は、メダル払出エラーであり、リール回転処理などを行っており、本来払出が行われることがないときに、払出が行われたことが検出されたことを示し、E5は、メダル投入エラーであり、投入メダルセンサ31によるメダルの異常な通過が検知されたことを示し、E6は、リール回転エラーであり、リール回転の異常が検知されたことを示し、E7は、異常入賞エラーであり、内部抽選により入賞が許容されていない役の入賞が検知されたことを示し、E8は、RAMエラーであり、起動時にRAM41cのデータが正常でないことが検知されたことを示す。
[Error code]
FIG. 6 is a diagram showing an error code. As shown in FIG. 6, the error command includes error codes E1 to E8 capable of identifying the type of abnormality occurring. E1 is an overflow error and indicates that the overflow tank 35 is full, E2 is a hopper empty error and an empty state of the hopper tank 34a is detected, and E3 is a medal. It is a clogging error and indicates that a foreign substance near the medal payout outlet 9 has been detected. E4 is a medal payout error, and when the reel rotation process is performed and the payout is not originally performed, the payout is performed. Indicates that the above has been detected, E5 indicates a medal insertion error, and the insertion medal sensor 31 has detected an abnormal passage of a medal, and E6 indicates a reel rotation error and a reel. Indicates that an abnormality in rotation has been detected, E7 indicates an abnormal winning error, and an internal lottery indicates that a winning combination for which winning is not allowed has been detected, and E8 is a RAM error and at startup. It indicates that it is detected that the data in the RAM 41c is not normal.

[各種処理の制御内容]
メイン制御部41が遊技プログラムおよび非遊技プログラムを実行することで行う各種処理の制御内容について、図7〜図16に基づいて説明する。
[Control contents of various processes]
The control contents of various processes performed by the main control unit 41 by executing the game program and the non-game program will be described with reference to FIGS. 7 to 16.

[起動処理(メイン)]
まず、メイン制御部41が行う起動時の処理である起動処理(メイン)について、図7に基づいて説明する。図7は、メイン制御部が行う起動処理(メイン)の制御内容を示すフローチャートである。なお、起動処理(メイン)は、遊技プログラムに含まれるメインルーチンである。
[Startup process (main)]
First, the start-up process (main), which is the start-up process performed by the main control unit 41, will be described with reference to FIG. 7. FIG. 7 is a flowchart showing the control contents of the activation process (main) performed by the main control unit. The activation process (main) is a main routine included in the game program.

メイン制御部41は、スロットマシン1への電力供給が開始された際に、リセットの発生によりタイマ割込が禁止に設定された状態で起動し、ROM41bに格納されているプログラムに従って各種処理を行う。 When the power supply to the slot machine 1 is started, the main control unit 41 starts with the timer interrupt set to be prohibited due to the occurrence of a reset, and performs various processes according to the program stored in the ROM 41b. ..

図7に示すように、メイン制御部41が起動すると起動処理(メイン)を行う。起動処理(メイン)では、まず、タイマ割込を禁止に設定する(Sa1)。以降、タイマ割込を禁止に設定することを、割込禁止設定を行うとも称し、タイマ割込を許可状態に設定することを割込許可設定を行うとも称する。 As shown in FIG. 7, when the main control unit 41 is activated, the activation process (main) is performed. In the start-up process (main), first, the timer interrupt is set to be prohibited (Sa1). Hereinafter, setting the timer interrupt to prohibit is also referred to as performing an interrupt prohibition setting, and setting the timer interrupt to the permitted state is also referred to as performing an interrupt permission setting.

次に、全ての出力ポートの初期設定を行う(Sa2)。その際、まず、出力ボート3および4に対する初期設定を行い、次に、出力ボート1および2に対する初期設定を行い、次に、出力ボート5および6に対する初期設定を行い、最後に、出力ボート7に対する初期設定を行う。出力ポートの初期設定とは、出力ポートから出力される信号をOFF状態にすることを言う。すなわち、なんらかの信号が出力されている場合には、出力ポートの初期設定によって、当該信号の出力が停止する。 Next, the initial settings of all output ports are performed (Sa2). At that time, first, the initial settings for the output boats 3 and 4, then the initial settings for the output boats 1 and 2, then the initial settings for the output boats 5 and 6, and finally, the output boat 7 Make initial settings for. The initial setting of the output port means to turn off the signal output from the output port. That is, when some signal is output, the output of the signal is stopped by the initial setting of the output port.

ここで、出力ポートへの出力命令は、1バイト(8ビット)単位または2バイト(16ビット)単位で行うことができる。図5に示すように、各出力ポートからは、8種類の信号が出力される。そして、1つのポートに対して各ビットを0にして出力命令を行う場合は、出力ポートに対して00H(8ビット分の0データ)を設定して出力命令を行う。また、隣り合う2つのポートに対して各ビットを0にして出力命令を行う場合は、出力ポートに対して0000H(16ビット分の0データ)を設定して出力命令を行う。 Here, the output instruction to the output port can be performed in units of 1 byte (8 bits) or 2 bytes (16 bits). As shown in FIG. 5, eight types of signals are output from each output port. Then, when issuing an output command with each bit set to 0 for one port, 00H (0 data for 8 bits) is set for the output port and the output command is issued. When an output command is issued with each bit set to 0 for two adjacent ports, 0000H (0 data for 16 bits) is set for the output port and the output command is issued.

このように、隣合う2つのポートに対して、一度に信号の出力命令を行うことができる。本実施の形態においては、たとえば、出力ボート3および4の2つのポートに対して出力命令を行うことで、同時に2つのポートの初期設定を行うことができる。 In this way, it is possible to issue a signal output command to two adjacent ports at once. In the present embodiment, for example, by issuing an output command to the two ports of the output boats 3 and 4, the initial settings of the two ports can be performed at the same time.

ここで、出力ポートの初期設定を行うのは、各種機器が誤動作することを防止するためである。スロットマシン1の起動時に、ノイズなどの影響により出力ポートから信号がON状態で出力されると各種機器が誤動作してしまう。特に、出力ポート3のD7からは、ポッパーモータコントロール信号が出力されており、誤動作することでホッパーモータが駆動してメダルの払出が行われてしまう危険性がある。このため、本実施の形態においては、まず、出力ボート3および4から初期設定を行うにしている。このようにすることで、ホッパーモータの誤動作を極力防ぐことができる。 Here, the initial setting of the output port is performed in order to prevent various devices from malfunctioning. When the slot machine 1 is started, if a signal is output from the output port in the ON state due to the influence of noise or the like, various devices malfunction. In particular, a popper motor control signal is output from D7 of the output port 3, and there is a risk that the hopper motor will be driven and medals will be paid out due to a malfunction. Therefore, in the present embodiment, first, the initial settings are made from the output boats 3 and 4. By doing so, it is possible to prevent the hopper motor from malfunctioning as much as possible.

次に、内蔵レジスタ設定処理(Sa3)を行う。内蔵レジスタは、メインCPU41aにおける機能設定を行うためのレジスタである。内蔵レジスタ設定処理によって、制御開始にあたって設定が必要な複数の領域に設定値を設定する。 Next, the built-in register setting process (Sa3) is performed. The built-in register is a register for setting a function in the main CPU 41a. The built-in register setting process sets the set values in multiple areas that need to be set when starting control.

次に、初期設定処理(Sa4)を行う。初期設定処理は、ステップSa1によりタイマ割込が禁止された状態で開始される。初期設定処理では、RAM41cに異常があるか否かを判定する。RAM41cに異常がある場合には、全初期化対象領域(領域A〜D)を初期化する。 Next, the initial setting process (Sa4) is performed. The initial setting process is started in a state in which timer interrupt is prohibited by step Sa1. In the initial setting process, it is determined whether or not there is an abnormality in the RAM 41c. If there is an abnormality in the RAM 41c, the entire initialization target area (areas A to D) is initialized.

RAM41cに異常がないと判定した場合、入力ポート2を参照して設定キースイッチ37がON状態であるか否かを判定する。設定キースイッチ37がON状態であると判定した場合は、設定変更処理を行う。設定変更処理では、リセット/設定スイッチ38およびスタートスイッチ7が所定の手順で操作されることにより設定値が確定され、設定キースイッチ37がOFFにされたことが検出されることで、設定変更処理を終了して、遊技を進行可能な状態に移行する。また、設定変更処理では、設定変更処理を開始する際に、設定変更処理を開始する旨を示す設定コマンド(開始)をサブ制御部91に対して送信し、設定変更処理を終了する際に、設定変更処理を終了する旨を示す設定コマンド(終了)するようになっている。設定変更処理が終了すると、設定変更終了時初期化対象領域(領域B〜D)を初期化する。 When it is determined that there is no abnormality in the RAM 41c, it is determined whether or not the setting key switch 37 is in the ON state with reference to the input port 2. If it is determined that the setting key switch 37 is in the ON state, the setting change process is performed. In the setting change processing, the setting value is confirmed by operating the reset / setting switch 38 and the start switch 7 in a predetermined procedure, and it is detected that the setting key switch 37 is turned off, so that the setting change processing is performed. Is finished, and the game shifts to a state where it can proceed. Further, in the setting change process, when the setting change process is started, a setting command (start) indicating that the setting change process is started is transmitted to the sub control unit 91, and when the setting change process is finished, the setting change process is completed. A setting command (end) is provided to indicate that the setting change process is to be terminated. When the setting change process is completed, the initialization target areas (areas B to D) at the end of the setting change are initialized.

設定キースイッチ37がON状態でないと判定した場合は、RAM41cに異常があるか否かを判定する。RAM41cに異常がないと判定した場合には、外部出力信号を出力するための出力バッファをクリアする。また、RAM41cの所定領域に設定されており、メイン処理においてリールの回転エラーが検出された回数を計数するためのリールエラーカウンタをクリアする。その後、RAM41cの記憶内容に基づいてスタックポインタSPに電断時のアドレスを設定することで、スタックポインタを電断時の状態に復帰させ、ポート入力処理を3回連続で行う。 When it is determined that the setting key switch 37 is not in the ON state, it is determined whether or not there is an abnormality in the RAM 41c. If it is determined that there is no abnormality in the RAM 41c, the output buffer for outputting the external output signal is cleared. Further, it is set in a predetermined area of the RAM 41c, and clears a reel error counter for counting the number of times a reel rotation error is detected in the main process. After that, by setting the address at the time of power failure in the stack pointer SP based on the stored contents of the RAM 41c, the stack pointer is returned to the state at the time of power failure, and the port input process is performed three times in a row.

ポート入力処理は、パラレル入力ポート511に入力される各種スイッチ類の検出信号などの入力状態に関する入力状態データ(各種スイッチ類の現在の入力状態を示す入力データ、前回と今回の入力データが同じ状態である旨を示す確定データ、前回から確定データが変化した旨を示すエッジデータ)を更新する処理である。RAM41cの遊技RAM領域の所定領域には、各種スイッチ類の入力状態データを格納するポート入力バッファ0〜2が設けられており、ポート入力処理により更新される各種スイッチ類の入力状態データは、その種類毎に予め定められたポート入力バッファの所定ビットに格納されるようになっている。ポート入力処理では、パラレル入力ポート511の入力ポート0〜2にされる各種スイッチ類の検出状態(ON状態またはOFF状態)を入力データとして、ポート入力バッファの所定ビットに格納する。また、前回と今回のポート入力処理での検出状態(ON状態またはOFF状態)を比較して、今回と前回の入力データが同じ状態である場合には、今回の入力データの検出状態を示すように確定データを更新する一方、今回と前回の入力データが異なる状態である場合には、前回の確定データを維持する。また、今回と前回の確定データを比較して、確定データがOFF状態からON状態に変化した場合には、確定データがOFF状態からON状態に変化した旨を示すONエッジデータをポート入力バッファ0〜2の所定ビットに格納し、確定データがON状態からOFF状態に変化した場合には、確定データがON状態からOFF状態に変化した旨を示すOFFエッジデータをポート入力バッファ0〜2の所定ビットに格納する。ポート入力バッファに格納された各種スイッチ類の入力データ、確定データ、エッジデータは、遊技プログラムおよび非遊技プログラムから参照することが可能である。 In the port input process, input status data related to the input status such as detection signals of various switches input to the parallel input port 511 (input data indicating the current input status of various switches, the previous input data and the current input data are the same. This is a process of updating the definite data indicating that the definite data is, and the edge data indicating that the definite data has changed from the previous time. Port input buffers 0 to 2 for storing input state data of various switches are provided in a predetermined area of the game RAM area of the RAM 41c, and the input state data of the various switches updated by the port input process is the input state data of the various switches. It is stored in a predetermined bit of a port input buffer defined in advance for each type. In the port input process, the detection states (ON state or OFF state) of various switches set to the input ports 0 to 2 of the parallel input port 511 are stored as input data in a predetermined bit of the port input buffer. Also, compare the detection status (ON state or OFF state) in the previous and current port input processing, and if the current and previous input data are in the same state, indicate the detection status of the current input data. On the other hand, if the input data of this time and the previous time are different, the confirmed data of the previous time is maintained. Further, comparing the confirmed data of this time and the previous time, when the confirmed data changes from the OFF state to the ON state, the ON edge data indicating that the confirmed data has changed from the OFF state to the ON state is input to the port input buffer 0. When the confirmed data changes from the ON state to the OFF state, the OFF edge data indicating that the confirmed data has changed from the ON state to the OFF state is stored in the predetermined bits of ~ 2 and is specified in the port input buffers 0 to 2. Store in bits. The input data, confirmed data, and edge data of various switches stored in the port input buffer can be referred to from the gaming program and the non-gaming program.

ポート入力処理を3回連続で行うのは、次のような理由からである。たとえば、電断前において、スイッチがOFF状態であったとする。そして、電断中にスイッチが押され、そのまま押下状態を継続したとする(たとえば、何かに引っかかって押しっぱなしになったような状態)。このような場合、電断から復帰したときにはON状態で検出信号が入力される。また、電断前後で比べると、OFF状態からON状態に変化しているため、ONエッジが検出されることになる。しかし、実際には電断前後では大きな時間差があり、これをONエッジとして検出するのは不適切である。これを防ぐため、電断復帰時には、ポート入力処理を3回連続で行っている。電断復帰後にスイッチのON状態が継続している場合、ポート入力処理を3回連続で行うことで、ONエッジが検出されなくなる。これにより、意図しない入力状態データが作られてしまうことを防止することができる。たとえば、電断後にストップスイッチが押しっぱなしの状態になってしまい、意図せずリールが停止してしまうことを防止することができる。 The reason why the port input process is performed three times in a row is as follows. For example, it is assumed that the switch was in the OFF state before the power failure. Then, it is assumed that the switch is pressed during the power failure and the pressed state is continued as it is (for example, a state in which something is caught and held down). In such a case, the detection signal is input in the ON state when the power is restored from the power failure. Further, when compared before and after the power failure, since the state has changed from the OFF state to the ON state, the ON edge is detected. However, in reality, there is a large time difference before and after the power failure, and it is inappropriate to detect this as an ON edge. In order to prevent this, the port input process is performed three times in a row when the power is restored. If the ON state of the switch continues after the power is restored, the ON edge will not be detected by performing the port input process three times in a row. This makes it possible to prevent unintended input state data from being created. For example, it is possible to prevent the reel from being unintentionally stopped due to the stop switch being held down after the power is cut off.

ポート入力処理を行った後は、リセット/設定スイッチ38がON状態でないと判定した場合は、電断前の制御状態に復帰した旨を示す復帰コマンドをサブ制御部91に送信した後、すべてのレジスタをRAM41cに記憶されている電断前の状態に復帰させ、割込許可設定を行い(Sa5)、初期設定処理を終了させてタイマ割込処理(メイン)に移行させた後、スロットマシン1への電力供給が停止される前に実行していたメイン処理における処理に復帰する。 If it is determined that the reset / setting switch 38 is not in the ON state after the port input process is performed, a return command indicating that the control state before the power failure has been restored is sent to the sub-control unit 91, and then all of them are performed. After returning the register to the state before the power failure stored in the RAM 41c, setting the interrupt permission (Sa5), ending the initial setting process, and shifting to the timer interrupt process (main), the slot machine 1 It returns to the processing in the main processing that was executed before the power supply to was stopped.

一方、RAM41cに異常があると判定した場合には、全初期化対象領域(領域A〜D)を初期化する。その後、割込許可設定を行い、RAM41cに異常がある旨を示すRAMエラーのエラーコード(E8)を所定のレジスタに準備して、初期設定処理を終了させてエラー処理に移行させる。エラー処理においては、エラーコード(E8)に応じたエラー状態の解除条件が成立したことが特定されるまでエラー状態の制御を行う。RAMエラーのエラーコード(E8)が所定のレジスタに準備されてエラー状態に移行された場合には、設定キースイッチ37をONにした状態で電源スイッチ39を投入することによって、設定変更状態に移行させてすべての遊技RAM領域(領域A〜D)を初期化させることで、RAM41cのデータの異常を確実に解消してエラー状態を解除することができるようになっている。 On the other hand, when it is determined that the RAM 41c has an abnormality, the entire initialization target area (areas A to D) is initialized. After that, the interrupt permission setting is performed, a RAM error error code (E8) indicating that there is an abnormality in the RAM 41c is prepared in a predetermined register, the initial setting process is terminated, and the process proceeds to the error process. In the error processing, the error state is controlled until it is specified that the error state release condition corresponding to the error code (E8) is satisfied. When the error code (E8) of the RAM error is prepared in a predetermined register and the error state is entered, the setting change state is entered by turning on the power switch 39 with the setting key switch 37 turned on. By initializing all the game RAM areas (areas A to D), it is possible to surely eliminate the abnormality of the data in the RAM 41c and release the error state.

[内蔵レジスタ設定処理]
メイン制御部41が行う内蔵レジスタ設定処理について、図8に基づいて説明する。図8は、メイン制御部が行う内蔵レジスタ設定処理の制御内容を示すフローチャートである。なお、内蔵レジスタ設定処理は、遊技プログラムに含まれており、遊技プログラムに含まれる起動処理(メイン)において呼び出されるサブルーチンである。
[Built-in register setting process]
The built-in register setting process performed by the main control unit 41 will be described with reference to FIG. FIG. 8 is a flowchart showing the control contents of the built-in register setting process performed by the main control unit. The built-in register setting process is included in the game program and is a subroutine called in the start process (main) included in the game program.

内蔵レジスタは、メインCPU41aにおける機能設定を行うためのレジスタである。内蔵レジスタは、RAM41cに内蔵レジスタ領域が設けられている。本実施の形態においては、内蔵レジスタ領域としてFE00HからFEACHまでの領域が設けられている。内蔵レジスタに対して、たとえば、割込に関する設定や通信機能に関する設定などを行う。 The built-in register is a register for setting a function in the main CPU 41a. As for the built-in register, a built-in register area is provided in the RAM 41c. In the present embodiment, an area from FE00H to FEACH is provided as a built-in register area. For the built-in register, for example, settings related to interrupts and settings related to communication functions are performed.

また、本実施の形態においては、内蔵レジスタ領域は、第1領域〜第7領域までの7つの領域を有する。メインCPU41aは、制御開始にあたって設定が必要な複数の領域に設定値を設定する。本実施の形態においては、設定が必要な複数の領域として、第2,3,4,6領域の各領域において設定値を設定する。 Further, in the present embodiment, the built-in register area has seven areas from the first area to the seventh area. The main CPU 41a sets set values in a plurality of areas that need to be set when starting control. In the present embodiment, set values are set in each of the second, third, fourth, and sixth regions as a plurality of regions that need to be set.

内蔵レジスタ領域への設定値の設定は、1バイトデータを設定可能なLD命令または2バイトデータを設定可能なLDW命令により行われる。その際、まず、LD命令により設定が必要な領域に対応するアドレスを読み出す。そして、LD命令またはLDW命令により、当該アドレスに対応する領域に設定値を設定する。また、読み出したアドレス(基準アドレス)に差分値を加えることによって、当該アドレスよりも差分値先のアドレスに対応する領域に設定値を設定することができる。具体例は後述するが、前者よりも後者の方法で設定値を設定する方が、命令に必要な容量が小さくなるため、プログラムの容量を節減することができる。 The setting value in the built-in register area is set by the LD instruction in which 1-byte data can be set or the LDW instruction in which 2-byte data can be set. At that time, first, the address corresponding to the area that needs to be set is read by the LD instruction. Then, the set value is set in the area corresponding to the address by the LD instruction or the LDW instruction. Further, by adding the difference value to the read address (reference address), the set value can be set in the area corresponding to the address of the difference value destination from the address. Although a specific example will be described later, setting the set value by the latter method rather than the former method reduces the capacity required for the instruction, so that the program capacity can be saved.

また、指定可能な差分値には制限がある。たとえば、差分値として最大50までしか指定できない場合は、読み出した基準アドレスに対して、50アドレス先の領域までしか設定することができない。したがって、差分値を用いて設定値を設定したい場合には、できるかぎり設定が可能な複数の領域をカバーできるように、基準アドレスを読み出すことが望ましい。以下、フローチャートに沿って説明する。 In addition, there is a limit to the difference value that can be specified. For example, when only a maximum of 50 can be specified as the difference value, only the area 50 addresses ahead of the read reference address can be set. Therefore, when it is desired to set the set value using the difference value, it is desirable to read the reference address so as to cover a plurality of areas that can be set as much as possible. Hereinafter, the description will be given according to a flowchart.

図8に示すように、まず、Sb1のステップにおいて、1バイトデータを設定可能なLD命令により、設定値の設定が必要な第2,3,4,6領域のうちの第2領域に対応するアドレスを所定レジスタに読み出す。ここで読み出したアドレスは、第2領域の先頭アドレス(FE01H)であり、以下これを基準アドレスとして使用する。第2領域は、第2,3,4,6領域のうちの最も小さいアドレス(FE01H)に対応する領域であり、1バイトのデータを設定可能な領域である。 As shown in FIG. 8, first, in the step of Sb1, the LD instruction capable of setting 1-byte data corresponds to the second region of the second, third, fourth, and sixth regions in which the set value needs to be set. Read the address to the specified register. The address read here is the start address (FE01H) of the second region, and this will be used as a reference address below. The second area corresponds to the smallest address (FE01H) of the second, third, fourth, and sixth areas, and is an area in which 1-byte data can be set.

また、基準アドレス(FE01H)は、最もアドレスが離れた第6領域から21H(33)離れている。本実施の形態では、指定可能な最大の差分値は50であるため、第6領域に対しても差分値を用いたLD命令により設定値を設定することが可能である。ここで、仮に、第4領域に基準値を設定した場合は、第2,3領域に対して差分値を用いたLD命令を使用することができない。また、第1領域のアドレス範囲が広い場合、第1領域に基準値を設定したときは、第6領域に対して差分値を用いたLD命令を使用することができない可能性がある。 Further, the reference address (FE01H) is 21H (33) away from the sixth region, which is the farthest from the address. In the present embodiment, since the maximum difference value that can be specified is 50, it is possible to set the set value for the sixth region by the LD instruction using the difference value. Here, if a reference value is set in the fourth region, the LD instruction using the difference value cannot be used for the second and third regions. Further, when the address range of the first area is wide, when the reference value is set in the first area, there is a possibility that the LD instruction using the difference value cannot be used for the sixth area.

このように、第2,3,4,6領域のうちの最も小さいアドレス(FE01H)に対応する第2領域に基準値を設定することで、差分値を用いたLD命令により、命令に必要な容量が小さくなるため、効率よくデータを設定することができる。 In this way, by setting the reference value in the second area corresponding to the smallest address (FE01H) in the second, third, fourth, and sixth areas, the LD instruction using the difference value is required for the instruction. Since the capacity is small, data can be set efficiently.

次に、Sb2のステップにおいて、基準アドレス(FE01H)に基づき第2領域に1バイトデータであるデータAを設定する。具体的には、LD命令を用いて、所定レジスタに格納された基準アドレスが指す領域に(すなわち、第1領域)にデータA(たとえば、150)を格納する。 Next, in the step of Sb2, data A which is 1-byte data is set in the second area based on the reference address (FE01H). Specifically, the LD instruction is used to store the data A (for example, 150) in the area (that is, the first area) pointed to by the reference address stored in the predetermined register.

そして、Sb3のステップにおいて、第3領域および第4領域にデータ設定を行う。第3領域は、アドレスFE02Hで特定される1バイトデータを設定可能な領域である。また、第4領域は、アドレスFE03Hで特定される1バイトデータを設定可能な領域である。すなわち、第3領域は、基準アドレスに差分値1を加えたアドレスにより特定される領域である。第3領域および第4領域は、ともに1バイトの領域であるため、第3領域の先頭アドレスに対して2バイトデータを設定することで、第3領域および第4領域の双方に対して、設定を設定することができる。すなわち、設定値を設定する際、FE02Hに対応する第3領域およびFE02Hの次のアドレスであるFE03Hに対応する第4領域のそれぞれに設定値を設定するように2バイトデータを設定ことができる。 Then, in the step of Sb3, data is set in the third region and the fourth region. The third area is an area in which 1-byte data specified by the address FE02H can be set. The fourth area is an area in which 1-byte data specified by the address FE03H can be set. That is, the third area is an area specified by the address obtained by adding the difference value 1 to the reference address. Since both the third area and the fourth area are 1-byte areas, by setting 2-byte data for the start address of the third area, both the third area and the fourth area can be set. Can be set. That is, when setting the set value, the 2-byte data can be set so as to set the set value in each of the third area corresponding to the FE02H and the fourth area corresponding to the FE03H which is the next address of the FE02H.

具体的には、2バイトデータを設定可能なLDW命令を用いて、基準アドレスに対して差分値(1)を用いて算出したアドレス(FE02H)に基づき第3領域にデータB(たとえば、12)を設定するとともに、第4領域にデータC(たとえば、56)を設定する。LDW命令によって、所定レジスタに格納された基準アドレスに差分値である1を加えたアドレスに、データB+データC×FFH(=12+56×FFH)を設定する。これにより、第3領域には12(データB)を設定し、56にFFHを乗じることで1バイト先の第4領域には56(データC)を設定することができる。 Specifically, data B (for example, 12) is stored in the third region based on the address (FE02H) calculated by using the difference value (1) with respect to the reference address using the LDW instruction capable of setting 2-byte data. And set the data C (for example, 56) in the fourth area. By the LDW instruction, data B + data C × FFH (= 12 + 56 × FFH) is set to the address obtained by adding 1 which is a difference value to the reference address stored in the predetermined register. As a result, 12 (data B) can be set in the third region, and 56 (data C) can be set in the fourth region one byte ahead by multiplying 56 by FFH.

ここで、LD命令によりアドレスを所定レジスタに読み出す処理を行うためには、3バイトの容量が必要である。また、LD命令により所定レジスタに設定されたアドレスが指す領域にデータを設定するためには、2バイトの容量が必要である。すなわち、ある領域に1バイトデータを設定するためには、通常5バイト(3バイト+2バイト)の容量が必要になる。また、2つの領域に対して、それぞれ1バイトデータを設定するためには、10バイト(5バイト×2)の容量が必要となる。 Here, in order to perform the process of reading the address to the predetermined register by the LD instruction, a capacity of 3 bytes is required. Further, in order to set data in the area pointed to by the address set in the predetermined register by the LD instruction, a capacity of 2 bytes is required. That is, in order to set 1-byte data in a certain area, a capacity of 5 bytes (3 bytes + 2 bytes) is usually required. Further, in order to set 1-byte data for each of the two areas, a capacity of 10 bytes (5 bytes x 2) is required.

これに対して、上述のように、差分値を用いたLDW命令により、2つの領域に対してそれぞれ1バイトデータを設定する場合は、4バイトの容量が必要である。この場合、上記のようにLD命令によりアドレスを読み出す処理は不要である。すなわち、上記の差分値を用いない方法に比べると、6バイト(10バイト−4バイト)分のデータ容量を節減することができる。このように、差分値を用いて算出したアドレスに基づき第3領域および第4領域にデータを設定することで、アドレスを直接指定して第3領域や第4領域に設定値を設定するよりもプログラムの容量を節減することができる。また、複数の領域に対してまとめてデータを設定することができる。 On the other hand, as described above, when 1 byte data is set for each of the two areas by the LDW instruction using the difference value, a capacity of 4 bytes is required. In this case, the process of reading the address by the LD instruction as described above is unnecessary. That is, the data capacity of 6 bytes (10 bytes-4 bytes) can be saved as compared with the method not using the above difference value. In this way, by setting data in the third area and the fourth area based on the address calculated using the difference value, it is possible to set the set value in the third area and the fourth area by directly specifying the address. The capacity of the program can be saved. In addition, data can be set collectively for a plurality of areas.

同様に、他の領域に対しても、1バイトデータを設定する場合にはLD命令を用いてデータ設定を行い、2バイトデータを設定する場合にはLDW命令を用いてデータ設定を行う。Sb4のステップにおいて、第6領域に対しても、基準アドレスに対して差分値を用いて算出したアドレスに基づきデータDを設定する。第6領域は、アドレスFE22Hで特定される1バイトデータを設定可能な領域である。基準アドレスとの差分値は21H(=FE22H−FE01H)であるため、LD命令を用いて、基準アドレスに対して差分値(21H)を用いて算出したアドレス(FE22H)に基づき第6領域にデータDを設定する。 Similarly, for other areas, when 1-byte data is set, data is set using the LD instruction, and when 2-byte data is set, data is set using the LDW instruction. In the step of Sb4, the data D is also set for the sixth region based on the address calculated by using the difference value with respect to the reference address. The sixth area is an area in which 1-byte data specified by the address FE22H can be set. Since the difference value from the reference address is 21H (= FE22H-FE01H), data is stored in the sixth region based on the address (FE22H) calculated by using the difference value (21H) with respect to the reference address using the LD instruction. Set D.

Sb1〜Sb4のステップにより、設定値を設定すべき第2,3,4,6領域の全てに設定値を設定すると、内蔵レジスタ設定処理を終了する。これにより、起動処理(メイン)に戻る。そして、起動処理(メイン)が終了すると、電断前の最後の処理(メイン処理)に移行する。メイン処理に移行することで、遊技の制御が開始される。このように、設定値を設定すべき第2,3,4,6領域の全てに設定値を設定した後に遊技の制御を開始することで、設定すべき設定値の設定が完了していない状況で遊技の制御が開始されない。 When the set values are set in all of the second, third, fourth, and sixth regions to which the set values should be set by the steps Sb1 to Sb4, the built-in register setting process ends. This returns to the startup process (main). Then, when the start-up process (main) is completed, the process proceeds to the final process (main process) before the power failure. By shifting to the main process, control of the game is started. In this way, by starting the game control after setting the set values in all of the second, third, fourth, and sixth areas where the set values should be set, the setting of the set values to be set is not completed. The control of the game is not started.

また、起動処理(メイン)においては、割込禁止設定(Sa1)がされた後に内蔵レジスタ設定処理(Sa3)が実行され、内蔵レジスタ設定処理が実行された後に割込許可設定(Sa5)がされる。このように、設定値を設定すべき第2,3,4,6領域の全てに設定値が設定されるまで割込処理の実行を禁止するため、設定値の設定中に割込処理の実行により意図しない制御が行なわれない。 Further, in the start processing (main), the built-in register setting processing (Sa3) is executed after the interrupt prohibition setting (Sa1) is performed, and the interrupt permission setting (Sa5) is performed after the built-in register setting processing is executed. To. In this way, in order to prohibit the execution of the interrupt process until the set value is set in all of the second, third, fourth, and sixth areas where the set value should be set, the interrupt process is executed while the set value is set. Therefore, unintended control is not performed.

また、起動処理(メイン)においては、内蔵レジスタ設定処理(Sa3)により第2,3,4,6領域に設定値を設定する以前に、出力ポートの初期設定を行う(Sa2)。このようにすることで、出力ポートから意図しない信号が出力されることを防止することができる。 Further, in the start-up process (main), the output port is initially set (Sa2) before the set values are set in the second, third, fourth, and sixth areas by the built-in register setting process (Sa3). By doing so, it is possible to prevent an unintended signal from being output from the output port.

[メイン処理]
メイン制御部41が行うメイン処理の制御内容について、図9に基づいて説明する。図9は、メイン制御部が行うメイン処理の制御内容を示すフローチャートである。なお、メイン処理は、一単位の遊技毎に繰り返し実行される。そして、メイン処理の一周期が遊技の一単位に相当している。また、メイン処理は、遊技プログラムに含まれ、複数の処理を含む。以下、特に非遊技プログラムに含まれる旨を示さない処理は、遊技プログラムに含まれる。なお、遊技プログラムにより呼び出される遊技プログラムには、非遊技プログラムを呼び出すものもある。
[Main processing]
The control content of the main process performed by the main control unit 41 will be described with reference to FIG. FIG. 9 is a flowchart showing the control contents of the main process performed by the main control unit. The main process is repeatedly executed for each unit of game. Then, one cycle of the main process corresponds to one unit of the game. Further, the main process is included in the game program and includes a plurality of processes. Hereinafter, processes not particularly indicated to be included in the non-game program are included in the game program. Some game programs called by the game program call non-game programs.

図9に示すように、メイン制御部41は、まず、割込禁止設定(Sc1)を行う。次に、設定されたRAM初期化領域をクリアする(Sc2)。設定されたRAM初期化領域とは、後述のSc36で設定される遊技終了時のRAM初期化領域(領域D)またはSc38で設定されるボーナス終了時のRAM初期化領域(領域C,D)である。これにより、一遊技が終了した場合には領域Dがクリアされ、一遊技が終了した場合であってさらにボーナスが終了した場合には、領域Dに加えて領域Cもクリアされることになる。RAM初期化領域をクリアした後は、一遊技が終了した旨を特定可能な遊技終了コマンドをサブ制御部91に対して送信する(Sc3)。 As shown in FIG. 9, the main control unit 41 first sets the interrupt prohibition setting (Sc1). Next, the set RAM initialization area is cleared (Sc2). The set RAM initialization area is a RAM initialization area (area D) at the end of the game set in Sc36 described later or a RAM initialization area (areas C and D) at the end of the bonus set in Sc38. is there. As a result, when one game is completed, the area D is cleared, and when one game is completed and the bonus is further completed, the area C is cleared in addition to the area D. After clearing the RAM initialization area, a game end command that can specify that one game has ended is transmitted to the sub-control unit 91 (Sc3).

次に、非遊技プログラムに含まれるRT情報出力処理を行う(Sc4)。RT情報出力処理では、遊技RAM領域の所定領域に設定されているスロットマシン1の遊技状態に関する情報を参照し、当該遊技状態に関する情報(例えば、RTの状態)を外部出力信号として出力ポート7より出力させるように設定する。 Next, the RT information output process included in the non-game program is performed (Sc4). In the RT information output process, the information on the game state of the slot machine 1 set in the predetermined area of the game RAM area is referred to, and the information on the game state (for example, the RT state) is used as an external output signal from the output port 7. Set to output.

Sc5のステップにおいて、タイマ割込が指定回数行われるまで待機する割込複数回待ち処理を行う。ここで、指定回数が1回である場合は、割込1回待ち処理という。たとえば、割込1回待ち処理においては、タイマ割込を許可に設定してタイマ割込処理(メイン)(以下、「割込処理」とも称する)が1回行われるまで待機する。そして、タイマ割込処理(メイン)が1回行われたことが特定されることで、当該割込1回待ち処理を終了する。割込1回待ち処理を行うことにより、次のタイマ割込処理(メイン)が行われるまでの時間が最大限に確保されている状態で、割込1回待ち処理の後に行われる処理を行うことができ、割込1回待ち処理の後に行われる一連の処理の途中で意図せずタイマ割込が行われてしまうことを防止できる。 In the step of Sc5, interrupt processing is performed a plurality of times, which waits until the timer interrupt is performed a specified number of times. Here, when the specified number of times is one, it is called an interrupt one-time wait process. For example, in the interrupt one-time wait process, the timer interrupt is set to allow and waits until the timer interrupt process (main) (hereinafter, also referred to as “interrupt process”) is performed once. Then, when it is specified that the timer interrupt process (main) has been performed once, the interrupt process for waiting once is terminated. By performing the interrupt one-time wait process, the process performed after the interrupt one-time wait process is performed while the maximum time until the next timer interrupt process (main) is secured. This makes it possible to prevent the timer interrupt from being unintentionally performed in the middle of a series of processes performed after the interrupt one-time wait process.

割込複数回待ち処理(Sc5)においては、RT情報出力処理によって出力される外部出力信号が出力されるように、24回(13.44ms)の割込待ちを行う。そして、割込複数回待ち処理が行われた後、遊技開始待ち処理を行って(Sc6)、前の一遊技の制御の終了後から次の一遊技を開始させるまでの処理を行う。遊技開始待ち処理では、メダルの投入などに応じて賭数を設定する処理を行い、規定数の賭数が設定された状態でスタートスイッチ7の操作が検出されることで、次の一遊技を開始させる処理を行う。 In the interrupt waiting process (Sc5), interrupt waiting is performed 24 times (13.44 ms) so that the external output signal output by the RT information output process is output. Then, after the interrupt processing is performed a plurality of times, the game start waiting process is performed (Sc6), and the process from the end of the control of the previous game to the start of the next game is performed. In the game start waiting process, the number of bets is set according to the insertion of medals, etc., and the operation of the start switch 7 is detected with the specified number of bets set, so that the next game can be played. Perform the process to start.

そして、入賞の発生を許容するか否かを決定(内部抽選)するための内部抽選処理を行う(Sc7)。内部抽選処理では、スロットマシン1において予め設定された設定値(1〜6)やスタートスイッチ7の検出による遊技の開始と同時に取得された内部抽選用の乱数値に基づいて、入賞の発生を許容するか否か(すなわち、表示結果の導出を許容するか否か)を決定する内部抽選を行う。 Then, an internal lottery process for determining whether or not to allow the occurrence of a prize (internal lottery) is performed (Sc7). In the internal lottery process, winning is allowed based on the preset values (1 to 6) set in advance in the slot machine 1 and the random number values for the internal lottery acquired at the same time as the start of the game by detecting the start switch 7. An internal lottery is conducted to determine whether or not to do so (that is, whether or not to allow the derivation of the display result).

その後、AT抽選などを行う出玉制御処理(Sc8)を行った後、割込禁止設定を行い(Sc9)、非遊技プログラムに含まれる当選情報出力処理を行う(Sc10)。当選情報出力処理を行った後は、割込許可を行う(Sc11)。当選情報出力処理では、遊技RAM領域の所定領域に設定されている内部抽選の抽選結果を参照し、内部抽選における特別役の当選状況、一般役の当選状況を特定可能なデータを、非遊技プログラムである後述の試験信号出力処理から参照可能にRAM41cの所定領域に設定する。なお、当該当選情報出力処理によりRAM41cの所定領域に設定された特別役の当選状況、一般役の当選状況は、後述の試験信号出力処理にて参照されて、試験信号として出力されるようになっている。 After that, after performing the ball ejection control process (Sc8) for performing AT lottery or the like, the interrupt prohibition setting is performed (Sc9), and the winning information output process included in the non-game program is performed (Sc10). After performing the winning information output processing, interrupt permission is performed (Sc11). In the winning information output process, the lottery result of the internal lottery set in the predetermined area of the game RAM area is referred to, and the data that can identify the winning status of the special winning combination and the winning status of the general winning combination in the internal lottery is stored in the non-game program. It is set in a predetermined area of the RAM 41c so that it can be referred from the test signal output process described later. The winning status of the special combination and the winning status of the general combination set in the predetermined area of the RAM 41c by the winning information output process are referred to in the test signal output process described later and are output as a test signal. ing.

次に、Sc12のステップにおいて遊技開始時のコマンド送信処理を実行し、割込複数回待ち処理(Sc13)を実行する。遊技開始時のコマンド送信処理では、一遊技の開始時点における各種の制御状態を特定可能な複数のコマンドを含む制御状態コマンド群や一遊技が開始された旨を特定可能な遊技開始コマンドをサブ制御部91に対して送信する。また、割込複数回待ち処理(133ms待機)を実行することで、割込処理において、上記コマンドが送信可能となる。 Next, in the step of Sc12, the command transmission process at the start of the game is executed, and the interrupt process (Sc13) is executed a plurality of times. In the command transmission process at the start of a game, a control state command group including a plurality of commands that can specify various control states at the start of one game and a game start command that can specify that one game has started are sub-controlled. It is transmitted to the unit 91. Further, by executing the interrupt processing a plurality of times (waiting for 133 ms), the above command can be transmitted in the interrupt process.

Sc13のステップにおいて遊技開始コマンド処理を行った後は、外部出力信号処理(Sc14)を実行する。Sc14のステップにおいて外部出力信号処理を行った後は、前回の遊技におけるリール回転開始時点からの経過時間を計時するためにRAM41cの所定領域に設定されている一遊技時間管理用タイマを参照して、一遊技時間管理用タイマに基づいて前回の遊技におけるリール回転開始時点から一遊技の規定時間(本実施例では4.1秒)が経過したか否かを判定する(Sc15)。そして、一遊技の規定時間が経過していないと判定した場合は、一遊技時間管理用タイマに基づいて一遊技の規定時間が経過するまで待機し、一遊技時間管理用タイマに基づいて一遊技規定時間が経過した後に、Sc16に進む。Sc15のステップにおいて一遊技の規定時間が経過していると判定した場合は、Sc16に進む。なお、一遊技時間管理用タイマは、遊技におけるリール回転開始時点から一遊技の規定時間(本実施例では4.1秒)が経過したときに、0となるようになっており、一遊技時間管理用タイマが0か否かに基づいて一遊技規定時間が経過したか否かを判定できるようになっている。 After performing the game start command processing in the step of Sc13, the external output signal processing (Sc14) is executed. After performing the external output signal processing in the step of Sc14, refer to the one game time management timer set in the predetermined area of the RAM 41c in order to measure the elapsed time from the reel rotation start time in the previous game. Based on the one-game time management timer, it is determined whether or not the specified time of one game (4.1 seconds in this embodiment) has elapsed from the start of reel rotation in the previous game (Sc15). Then, when it is determined that the specified time of one game has not elapsed, the player waits until the specified time of one game elapses based on the timer for managing one game time, and one game is based on the timer for managing one game time. After the specified time has elapsed, the process proceeds to Sc16. If it is determined in the step of Sc15 that the specified time of one game has elapsed, the process proceeds to Sc16. The one-game time management timer is set to 0 when the specified time of one game (4.1 seconds in this embodiment) elapses from the start of reel rotation in the game, and the one-game time It is possible to determine whether or not one game specified time has elapsed based on whether or not the management timer is 0.

Sc16のステップにおいて割込禁止設定を行い、リール回転開始処理を行う(Sc17)。リール回転開始処理においては、リールモータ32L、32C、32Rを励磁制御する際の励磁パターンとして、遊技用の所定速度でリールを回転制御する通常加速パターンをRAM41cの所定領域に設定し、RAM41cに設定されている励磁パターンに基づいてリールモータ32L、32C、32Rを励磁制御することでリールの回転を開始させる。 In the step of Sc16, the interrupt prohibition setting is performed, and the reel rotation start process is performed (Sc17). In the reel rotation start processing, as an excitation pattern for exciting control of the reel motors 32L, 32C, 32R, a normal acceleration pattern for controlling the rotation of the reel at a predetermined speed for gaming is set in a predetermined area of the RAM 41c and set in the RAM 41c. The reel motors 32L, 32C, and 32R are excited and controlled based on the excitation pattern to start the rotation of the reel.

次に、リール2L,2C,2Rの回転制御を開始させる旨を特定可能なリール回転開始コマンドをサブ制御部91に対して送信するリール回転開始コマンド送信処理を行う(Sc18)。リール回転開始コマンド送信処理を行った後は、リールの停止制御を行うリール停止制御処理を行う(Sc19)。リール停止制御処理では、回転制御中のリールが所定の定速回転で回転されているかを判定し、定速回転で回転されていないリールがある場合には、リールエラーを検出して、該当するリールについて定速回転まで加速させる励磁パターンを設定して、回転制御中のすべてのリールが定速回転で回転されるように制御する。一方、回転制御中のすべてのリールが定速回転で回転されている場合には、回転制御中のリールの停止操作の受け付けを有効化し、ストップスイッチによる停止操作が行われるまで待機する。そして、停止操作が有効化されているリールについて有効な停止操作が検出されること(停止操作が有効なストップスイッチについてONエッジデータが検出されること)で、有効な停止操作が行われたリールについて、リール停止初期設定処理にて設定された情報などに基づいて所定の停止位置で停止させるリール停止制御を行う。このようなリール停止制御を、回転制御中のリールについて繰り返し行って、すべてのリールの回転を停止させることで、リール停止処理を終了させる。 Next, a reel rotation start command transmission process for transmitting a reel rotation start command that can specify that the rotation control of the reels 2L, 2C, and 2R is to be started to the sub control unit 91 is performed (Sc18). After the reel rotation start command transmission process is performed, the reel stop control process for controlling the reel stop is performed (Sc19). In the reel stop control process, it is determined whether the reel under rotation control is rotating at a predetermined constant speed rotation, and if there is a reel that is not rotating at a constant speed rotation, a reel error is detected and the corresponding reel is applicable. An excitation pattern is set for the reels to accelerate to constant speed rotation, and all reels under rotation control are controlled to rotate at constant speed rotation. On the other hand, when all the reels under rotation control are rotated at a constant speed, the acceptance of the stop operation of the reels under rotation control is enabled, and the process waits until the stop operation by the stop switch is performed. Then, when a valid stop operation is detected for the reel for which the stop operation is enabled (ON edge data is detected for the stop switch for which the stop operation is valid), the reel for which the effective stop operation is performed is performed. Reel stop control for stopping at a predetermined stop position is performed based on the information set in the reel stop initial setting process. Such reel stop control is repeatedly performed for the reel under rotation control to stop the rotation of all the reels, thereby ending the reel stop process.

そして、リール停止処理を終了させた後は、入賞判定処理(Sc20)を行う。入賞判定処理では、内部抽選結果およびリール2L,2C,2Rに停止している図柄組合せに基づいて入賞が発生しているか否かを判定する。そして、Sc20のステップにおける入賞判定処理を行った後は、メダル投入部4からのメダルの投入に関する異常やホッパーからのメダルの払い出しに関する異常が検出されているか否かを判定する投入払出エラーチェック処理を行う(Sc21)。 Then, after the reel stop process is completed, the winning determination process (Sc20) is performed. In the winning determination process, it is determined whether or not a winning has occurred based on the internal lottery result and the symbol combination stopped on the reels 2L, 2C, 2R. Then, after the winning determination process in the Sc20 step is performed, the insertion / withdrawal error check process for determining whether or not an abnormality related to the insertion of medals from the medal insertion unit 4 or an abnormality related to the withdrawal of medals from the hopper is detected is detected. (Sc21).

投入払出エラーチェック処理では、払出センサ34cの信号(以下、メダル払出信号、あるいは、払出信号とも称する)の遷移に異常が検出された旨を示す払出エラーフラグや、投入メダルセンサ31の信号(以下、メダル投入信号、あるいは、投入信号とも称する)の遷移に異常が検出された旨を示す投入エラーフラグが、RAM41cの所定領域に設定されているか否かを判定し、上記エラーフラグが設定されている場合には、エラー処理を行う。エラー処理では、上記エラーフラグに基づき、エラーコード(E4、E5)を遊技補助表示器12に表示させるように制御するとともに、エラー状態の解除条件が成立したことが特定されるまでエラー状態の制御を行う。エラー状態の解除条件が成立した場合はエラー処理を終了し、エラー処理を実行した旨を示すエラー実行フラグを所定のレジスタに設定し、投入払出エラーチェック処理を終了する。 In the payout error check process, a payout error flag indicating that an abnormality has been detected in the transition of the signal of the payout sensor 34c (hereinafter, also referred to as a medal payout signal or a payout signal) and a signal of the payout medal sensor 31 (hereinafter, also referred to as a payout signal) , A medal insertion signal, or an insertion error signal indicating that an abnormality has been detected in the transition) is determined whether or not the insertion error flag is set in a predetermined area of the RAM 41c, and the above error flag is set. If so, perform error handling. In the error processing, based on the above error flag, the error code (E4, E5) is controlled to be displayed on the game auxiliary display 12, and the error state is controlled until it is specified that the error state release condition is satisfied. I do. When the condition for canceling the error state is satisfied, the error processing is terminated, the error execution flag indicating that the error processing has been executed is set in the predetermined register, and the input / withdrawal error check processing is terminated.

投入払出エラーチェック処理(Sc21)を行った後は、割込1回待ち処理を行い(Sc22)、割込処理が行われるまで待機する。そして、割込処理が行われた後は、割込禁止設定を行い(Sc23)、非遊技プログラムに含まれる役比モニタ用データ処理を行う(Sc24)。そして、役比モニタ用データ処理を行った後は、割込許可設定を行う(Sc25)。割込1回待ち処理を行った後に、役比モニタ用データ処理(Sc24)を行うことで、次のタイマ割込処理(メイン)が行われるまでの時間が最大限に確保されている状態で、役比モニタ用データ処理を行うことができ、役比モニタ用データ処理の途中で意図せずタイマ割込が行われてしまうことを防止できる。 After the input / withdrawal error check process (Sc21) is performed, the interrupt process is performed once (Sc22), and the process waits until the interrupt process is performed. Then, after the interrupt processing is performed, the interrupt prohibition setting is set (Sc23), and the data processing for the combination ratio monitor included in the non-game program is performed (Sc24). Then, after performing the data processing for the role ratio monitor, the interrupt permission setting is performed (Sc25). By performing the data processing for role ratio monitoring (Sc24) after performing the interrupt processing once, the time until the next timer interrupt processing (main) is performed is secured to the maximum. , The data processing for the role ratio monitor can be performed, and it is possible to prevent the timer interrupt from being unintentionally performed during the data processing for the role ratio monitor.

役比モニタ用データ処理では、非遊技プログラムに含まれる各状態カウント処理を行って、予め定められた所定期間(例えば、現在のゲームから6000ゲーム前までの期間、現在のゲームから175000ゲーム前までの期間、遊技者にとって有利な状態に制御された区間(有利区間)など)におけるメダルの払い出し枚数に関するデータを更新する。 In the data processing for the role ratio monitor, each state count process included in the non-game program is performed, and a predetermined period (for example, a period from the current game to 6000 games before, a period from the current game to 175,000 games before) is performed. The data on the number of medals to be paid out in the section (advantageous section) controlled to be advantageous to the player during the above period is updated.

次に、不正入賞判定処理(Sc26)を行う。不正入賞判定処理では、内部抽選結果およびリール2L,2C,2Rに停止している図柄組合せに基づいて不正入賞が発生しているか否かを判定する。その後、RT関連処理(Sc27)を行う。RT関連処理では、リールにRT状態の移行を伴うRT移行図柄の組合せが停止している場合に、RT状態に更新する。次に、ボーナス終了条件の判定処理を行うボーナス終了チェック処理(Sc28)を実行し、遊技状態設定処理(Sc29)を実行する。遊技状態設定処理では、ボーナス終了チェック処理で実行される処理以外のボーナス開始条件の判定処理や各種データの更新処理などを実行する。次に、遊技終了時に実行される有利区間の終了判定などを行うAT状態管理処理(Sc30)を実行し、RT情報コマンドを送信するコマンド送信処理(Sc31)を行う。 Next, the fraudulent winning determination process (Sc26) is performed. In the fraudulent winning determination process, it is determined whether or not an illegal winning has occurred based on the internal lottery result and the symbol combination stopped on the reels 2L, 2C, 2R. After that, RT-related processing (Sc27) is performed. In the RT-related processing, when the combination of RT transition symbols accompanied by the transition of the RT state to the reel is stopped, the reel is updated to the RT state. Next, the bonus end check process (Sc28) for determining the bonus end condition is executed, and the game state setting process (Sc29) is executed. In the game state setting process, a process for determining a bonus start condition other than the process executed in the bonus end check process, a process for updating various data, and the like are executed. Next, the AT state management process (Sc30) for determining the end of the advantageous section executed at the end of the game is executed, and the command transmission process (Sc31) for transmitting the RT information command is performed.

次に、ゲームの結果として発生した入賞に応じた枚数のメダルを払い出すメダル払出処理を行う(Sc32)。メダル払出処理では、発生した入賞に応じて、入賞役毎に予め定められた所定枚数のメダルを遊技者に対して付与して、付与するメダル枚数分をクレジットに加算し、クレジットが上限数(本実施例では、50)に達した場合には、ホッパーモータ34bを駆動させてクレジットに加算されなかった分のメダルをメダル払出口9から払い出す。メダル払出処理を行った後は、払出終了コマンドを送信する払出終了コマンド送信処理(Sc33)を行う。 Next, a medal payout process is performed to pay out a number of medals according to the winning prize generated as a result of the game (Sc32). In the medal payout process, a predetermined number of medals are given to the player according to the winning combination, and the number of medals to be given is added to the credits, and the credit is the maximum number (the maximum number of medals). In this embodiment, when 50) is reached, the hopper motor 34b is driven to pay out the medals not added to the credit from the medal payout outlet 9. After the medal payout process is performed, the payout end command transmission process (Sc33) for transmitting the payout end command is performed.

そして、遊技終了時設定処理を行って(Sc34)、再遊技役の図柄組合せがリール2L,2C,2Rに停止しているか否かを判定し、再遊技役の図柄組合せが停止している場合には、次ゲームにおいて再遊技を行うための賭数を設定する処理(本実施例では、RAM41cの所定領域に設定されているリプレイ用カウンタに、再遊技用メダルとして3を設定する。)や、リプレイフラグをRAM41cの所定領域に設定する処理、リプレイ中LED20をON状態(点灯状態)に制御する処理などを行う。そして、有利区間終了時のRAMの初期化処理や有利区間中信号の設定処理などを行う有利区間関連処理(Sc35)を実行する。 Then, when the game end setting process is performed (Sc34), it is determined whether or not the symbol combination of the re-game combination is stopped on the reels 2L, 2C, 2R, and the symbol combination of the re-game combination is stopped. (In this embodiment, 3 is set as the replay medal in the replay counter set in the predetermined area of the RAM 41c.) , The process of setting the replay flag in a predetermined area of the RAM 41c, the process of controlling the LED 20 during replay to the ON state (lighting state), and the like. Then, the advantageous section-related process (Sc35) that initializes the RAM at the end of the advantageous section, sets the signal in the advantageous section, and the like is executed.

そして、遊技終了時のRAM初期化領域(領域D)を設定する(Sc38)。ボーナスが終了した場合には、ボーナス終了時のRAM初期化領域(領域C,D)を設定し(Sc38)、Sc1に戻る。ボーナスが終了していない場合には、遊技終了時のRAM初期化領域(領域D)が設定された状態で、Sc1に戻る。また、先に説明したように、Sc36またはSc38で設定された領域は、Sc2においてクリアされる。 Then, the RAM initialization area (area D) at the end of the game is set (Sc38). When the bonus ends, the RAM initialization area (areas C and D) at the end of the bonus is set (Sc38), and the process returns to Sc1. If the bonus has not ended, the process returns to Sc1 with the RAM initialization area (area D) at the end of the game set. Further, as described above, the region set by Sc36 or Sc38 is cleared in Sc2.

Sc1のステップに戻った後は、Sc1〜Sc38のステップを繰り返し行う。メイン処理が一巡することで、一単位の遊技の制御に関する処理が終了することとなり、一単位の遊技毎にメイン処理が繰り返し実行されることとなる。 After returning to the step of Sc1, the steps of Sc1 to Sc38 are repeated. When the main process goes through, the process related to the control of one unit of game is completed, and the main process is repeatedly executed for each unit of game.

このように、本実施例のメイン制御部41が行うメイン処理は、遊技プログラムに含まれており、非遊技プログラムに含まれる処理、例えば、RT情報出力処理、当選情報出力処理、役比モニタ用データ処理などを呼び出すようになっている。 As described above, the main processing performed by the main control unit 41 of the present embodiment is included in the game program, and the processing included in the non-game program, for example, RT information output processing, winning information output processing, and combination monitor. It is designed to call data processing.

また、メイン制御部41は、非遊技プログラムに従って各種処理を行う場合には、上述のCALL命令などを用いて遊技プログラムから非遊技プログラムを呼び出すことで、当該非遊技プログラムに従って各種処理を行い、当該非遊技プログラムに応じた各処理が終了することで、呼出元の遊技プログラムに復帰するようになっている。 Further, when the main control unit 41 performs various processes according to the non-game program, the main control unit 41 calls the non-game program from the game program by using the above-mentioned CALL instruction or the like to perform various processes according to the non-game program. When each process corresponding to the non-game program is completed, the caller's game program is restored.

[遊技開始待ち処理]
本実施例のメイン制御部41が行う遊技開始待ち処理の制御内容について、図10に基づいて説明する。図10は、メイン制御部が行う遊技開始待ち処理の制御内容を示すフローチャートである。なお、遊技開始待ち処理は、遊技プログラムに含まれており、遊技プログラムに含まれるメイン処理において呼び出されるサブルーチンである。
[Game start waiting process]
The control content of the game start waiting process performed by the main control unit 41 of this embodiment will be described with reference to FIG. FIG. 10 is a flowchart showing the control contents of the game start waiting process performed by the main control unit. The game start waiting process is included in the game program and is a subroutine called in the main process included in the game program.

図10に示すように、遊技開始待ち処理では、まず、クレジット枚数コマンドを送信するクレジット枚数コマンド送信処理(Sd1)を実行する。次に、メダル投入枚数表示処理を行い(Sd2)、スロットマシン1に投入済みのメダル枚数に応じた1〜3BETLED14〜16をON状態(点灯状態)に制御する。 As shown in FIG. 10, in the game start waiting process, first, the credit number command transmission process (Sd1) for transmitting the credit number command is executed. Next, the medal insertion number display process is performed (Sd2), and the 1 to 3 BETLEDs 14 to 16 according to the number of medals already inserted in the slot machine 1 are controlled to the ON state (lighting state).

その後、ホッパータンク34aが満タン状態である旨を特定可能なエラーコード(E1:オーバーフローエラー)を所定のレジスタに準備し、所定のポート入力バッファを参照して、満タンセンサ35aの確定データに基づいてホッパータンク34aが満タン状態であるか否かを判定する(Sd3)。Sd3のステップにおいてホッパータンク34aが満タン状態であると判定した場合には、エラー処理を行う(Sd4)。エラー処理では、遊技の進行が不能化されるエラー状態に制御する。また、所定のレジスタに準備されているエラーコード(E1)を特定可能なエラーコマンドをサブ制御部91に対して送信し、当該エラーコード(E1)をRAM41cの所定領域にその他の処理でも参照可能なエラーフラグとして設定する。また、当該エラーコード(E1)を遊技補助表示器12に表示させるように制御する。その後は、所定のレジスタに準備されているエラーコード(E1)に応じたエラー状態の解除条件が成立したことが特定されるまでエラー状態の制御を行う。エラーコード(E1)がレジスタに設定されてエラー状態に移行された場合には、満タンセンサ35aの確定データがOFF状態となるまで待機し、当該満タンセンサ35aの確定データがOFF状態となることで、エラー状態を解除する旨のエラーコマンド(解除)をサブ制御部91に対して送信し、エラー処理を終了させて、Sd5のステップへ進む。 After that, an error code (E1: overflow error) capable of identifying that the hopper tank 34a is full is prepared in a predetermined register, and the predetermined port input buffer is referred to based on the confirmed data of the full tank sensor 35a. It is determined whether or not the hopper tank 34a is full (Sd3). If it is determined in the step of Sd3 that the hopper tank 34a is full, error processing is performed (Sd4). In the error processing, the error state is controlled so that the progress of the game is disabled. Further, an error command capable of identifying the error code (E1) prepared in the predetermined register is transmitted to the sub-control unit 91, and the error code (E1) can be referred to the predetermined area of the RAM 41c in other processing. Set as an error flag. Further, the error code (E1) is controlled to be displayed on the game auxiliary display 12. After that, the error state is controlled until it is specified that the error state release condition corresponding to the error code (E1) prepared in the predetermined register is satisfied. When the error code (E1) is set in the register and the error state is entered, the process waits until the confirmed data of the full tank sensor 35a is turned OFF, and the confirmed data of the full sensor 35a is turned OFF. , An error command (cancellation) to cancel the error state is transmitted to the sub-control unit 91, the error processing is terminated, and the process proceeds to the step of Sd5.

Sd3のステップにおいてホッパータンク34aが満タン状態でないと判定した場合、およびSd4のステップにおけるエラー処理を終了した場合には、RAM41cの所定領域に設定されているリプレイ用カウンタの値を所定のレジスタに読み込む(Sd5)。なお、リプレイ用カウンタには、前回のメイン処理における遊技終了時設定処理により、前回の遊技の結果に応じた値が設定されており、前回の遊技において再遊技役が入賞して再遊技が付与された場合には、遊技を行うために必要な賭数の規定数に相当する数値(例えば、3)が設定されている一方で、前回の遊技において再遊技が付与されなかった場合には、0が設定されている。 When it is determined that the hopper tank 34a is not full in the step Sd3, or when the error processing in the step Sd4 is completed, the value of the replay counter set in the predetermined area of the RAM 41c is set to the predetermined register. Read (Sd5). In the replay counter, a value corresponding to the result of the previous game is set by the game end setting process in the previous main process, and the re-game combination is awarded in the previous game and the re-game is given. If this is the case, a numerical value (for example, 3) corresponding to the specified number of bets required to play the game is set, but if the re-game is not granted in the previous game, 0 is set.

その後、RAM41cのリプレイ用カウンタをクリアし(Sd6)、Sd5のステップにおいて読み込んだリプレイ用カウンタの値が0より大きいか否か、すなわち再遊技が付与されている否かを判定し(Sd7)、再遊技が付与されている場合には、メダル投入実行処理を行う(Sd8)。メダル投入実行処理では、リプレイ用カウンタの値を賭数(BET数)に設定するとともに、1〜3BETLED14〜16をON状態(点灯状態)に設定して規定数の賭数(本実施例では、3)が設定されている旨を報知する。また、賭数の設定に使用されたメダル枚数を特定可能な投入枚数コマンドをサブ制御部91に対して送信する。 After that, the replay counter of the RAM 41c is cleared (Sd6), and it is determined whether or not the value of the replay counter read in the step of Sd5 is greater than 0, that is, whether or not the replay is granted (Sd7). If the re-game is granted, the medal insertion execution process is performed (Sd8). In the medal insertion execution process, the value of the replay counter is set to the bet number (BET number), and the 1 to 3 BETLEDs 14 to 16 are set to the ON state (lighting state) to set the specified number of bets (in this embodiment). Notify that 3) is set. Further, a command for the number of inserted medals that can specify the number of medals used for setting the number of bets is transmitted to the sub control unit 91.

Sd7のステップにおいてリプレイ用カウンタの値が0である、すなわち再遊技が付与されていないと判定した場合、およびSd8のステップにおいて再遊技が付与されたことによりメダル投入実行処理を行った後は、メダル手入れ許可設定処理を行う(Sd9)。メダル手入れ許可設定処理では、RAM41cの所定領域に設定されているクレジットの値を参照し、当該クレジットの値が最大値(本実施例では、50)に達していない場合に、メダル投入部4からのメダルの投入を許可する旨を示すメダル手入れ許可フラグをRAM41cの所定領域に設定する。 When it is determined that the value of the replay counter is 0 in the step of Sd7, that is, the replay is not granted, and after the medal insertion execution process is performed due to the replay being granted in the step of Sd8, The medal care permission setting process is performed (Sd9). In the medal care permission setting process, the value of the credit set in the predetermined area of the RAM 41c is referred to, and when the value of the credit does not reach the maximum value (50 in this embodiment), the medal insertion unit 4 starts. A medal care permission flag indicating that the insertion of the medal is permitted is set in a predetermined area of the RAM 41c.

Sd9のステップにおいてメダル手入れ許可設定処理を行った後は、割込1回待ち処理を行う(Sd10)。割込1回待ち処理を行うことで、タイマ割込処理(メイン)が行われて各種スイッチ類の検出状態やLEDの点灯状態、各種タイマなどが更新されることとなり、これらの各種スイッチ類の検出状態が更新された状態で、その後の処理(例えば、メダル投入払出エラーチェック処理、メダル投入信号処理、操作入力受付処理)を行わせることができる。 After performing the medal care permission setting process in the step of Sd9, the interrupt process is performed once (Sd10). By performing the interrupt processing once, the timer interrupt processing (main) is performed and the detection status of various switches, the lighting status of the LED, various timers, etc. are updated, and these various switches are updated. With the detection state updated, subsequent processing (for example, medal insertion / withdrawal error check processing, medal insertion signal processing, operation input reception processing) can be performed.

Sd10のステップにおいて割込1回待ち処理を行って割込処理が1回行われた後は、投入払出エラーチェック処理を行う(Sd11)。そして、RAM41cの所定領域にエラー実行フラグが設定されているか否かに基づいて、エラーチェック処理にてエラー処理が実行されたか否かを判定する(Sd12)。 In the step of Sd10, the interrupt process is performed once, and after the interrupt process is performed once, the input / payout error check process is performed (Sd11). Then, based on whether or not the error execution flag is set in the predetermined area of the RAM 41c, it is determined whether or not the error processing is executed in the error checking processing (Sd12).

Sd12のステップにおいてエラーチェック処理にてエラー処理が実行されたと判定した場合は、Sd10のステップに戻り、Sd10〜Sd12のステップの各処理を再び行う。その後、メダル払出信号の遷移やメダル投入信号の遷移に異常が検出されない状態で、Sd10〜Sd12のステップの各処理が行われることで、エラー実行フラグが設定されていない状態で、Sd12のステップの処理が行われることとなる。 If it is determined in the error check process that the error process has been executed in the step Sd12, the process returns to the step Sd10, and each process of the steps Sd10 to Sd12 is performed again. After that, each process of the steps Sd10 to Sd12 is performed in a state where no abnormality is detected in the transition of the medal payout signal or the transition of the medal insertion signal, so that the error execution flag is not set and the step of Sd12 is performed. Processing will be performed.

一方、Sd12のステップにおいてエラー実行フラグが設定されていないと判定した場合は、メダル投入信号処理を行う(Sd13)。メダル投入信号処理では、メダル投入信号の遷移に基づいてメダルの投入状況を判定する。そして、正常なメダルの投入が検出された場合は、賭数の設定やクレジットにメダルを受け付けて、メダル投入信号処理を終了する。一方、異常なメダルの投入が検出された場合は、エラーコード(E5)を準備してエラー処理を行う。その後、エラー状態が解除されてエラー処理が終了されることで、メダル投入信号処理を終了する。 On the other hand, when it is determined that the error execution flag is not set in the step of Sd12, the medal insertion signal processing is performed (Sd13). In the medal insertion signal processing, the medal insertion status is determined based on the transition of the medal insertion signal. Then, when a normal medal insertion is detected, the medal is accepted for setting the number of bets and credits, and the medal insertion signal processing is completed. On the other hand, when an abnormal medal insertion is detected, an error code (E5) is prepared and error processing is performed. After that, the error state is released and the error processing is completed, so that the medal insertion signal processing is completed.

Sd13のステップにおいてメダル投入信号処理を行った後は、各種スイッチの操作を有効化して、操作が有効化されているスイッチの操作が行われることで、当該スイッチによる操作を受け付ける操作入力受付処理を行う(Sd14)。 After performing the medal insertion signal processing in the step of Sd13, the operation of various switches is enabled, and the operation of the switch for which the operation is enabled is performed, so that the operation input reception process for accepting the operation by the switch is performed. Do (Sd14).

操作入力受付処理では、メダル投入信号の遷移に基づいてメダルが通過中でないときに、RAM41cの所定領域に設定されているクレジットが、1以上である場合には、MAXBETスイッチ6による操作の受け付けを有効化する。また、メダル投入信号の遷移に基づいてメダルが通過中でないときに、RAM41cの所定領域に設定されている賭数が規定数である場合には、スタートスイッチ7による操作の受け付けを有効化する。また、メダル投入信号の遷移に基づいてメダルが通過中でない場合に、精算スイッチ10および設定キースイッチ37による操作の受け付けを有効化する。 In the operation input acceptance process, when the medal is not passing based on the transition of the medal insertion signal and the credit set in the predetermined area of the RAM 41c is 1 or more, the operation is accepted by the MAXBET switch 6. Activate. Further, when the number of bets set in the predetermined area of the RAM 41c is a specified number when the medal is not passing based on the transition of the medal insertion signal, the acceptance of the operation by the start switch 7 is enabled. Further, when the medal is not passing based on the transition of the medal insertion signal, the acceptance of the operation by the settlement switch 10 and the setting key switch 37 is enabled.

また、操作入力受付処理では、スタートスイッチ7による操作が有効な状態で、スタートスイッチ7の操作が検出された場合には、スタートスイッチ7が操作された旨を示すスタートフラグを所定レジスタに設定した後、流路切替ソレノイド30をOFF状態としてメダルの流路をメダル払出口9側に切り替える処理を行う。また、設定キースイッチ37による操作が有効な状態で、設定キースイッチ37による操作が検出された場合には、設定値表示器24に設定値を表示させる設定値表示処理を行う。また、精算スイッチ10による操作が有効な状態で、精算スイッチ10による操作が検出された場合には、クレジットに記憶されている分のメダルを遊技者に返却する精算処理を行う。また、MAXBETスイッチ6による操作が有効な状態で、MAXBETスイッチ6による操作が検出された場合には、クレジットに基づいて可能な範囲で規定数までのメダル枚数を賭数に設定し、賭数に設定した分のメダル枚数をクレジットから減算する処理を行う。操作が検出されたスイッチ類に応じた処理を行った後、操作入力受付処理を終了させる。 Further, in the operation input reception process, when the operation by the start switch 7 is valid and the operation of the start switch 7 is detected, a start flag indicating that the start switch 7 has been operated is set in the predetermined register. After that, the flow path switching solenoid 30 is turned off and the medal flow path is switched to the medal payout outlet 9 side. Further, when the operation by the setting key switch 37 is detected while the operation by the setting key switch 37 is enabled, the setting value display process for displaying the set value on the setting value display 24 is performed. Further, when the operation by the settlement switch 10 is enabled and the operation by the settlement switch 10 is detected, the settlement process of returning the medals stored in the credit to the player is performed. In addition, when the operation by the MAXBET switch 6 is enabled and the operation by the MAXBET switch 6 is detected, the number of medals up to the specified number is set as the bet number within the possible range based on the credit, and the bet number is set. Performs the process of subtracting the set number of medals from the credit. After performing the processing according to the switches for which the operation is detected, the operation input acceptance processing is terminated.

ここで、たとえば、精算スイッチ10と設定キースイッチ37とが、同時に操作された場合は、次のような処理が行われる。精算スイッチ10と設定キースイッチ37とでは、設定キースイッチ37の方が処理の優先順位が高い。このため、先に、設定キースイッチ37がON状態であるか否かを判定し、設定キースイッチ37がON状態であれば、設定変更状態に移行する。設定キースイッチ37がOFF状態であれば、精算スイッチ10がON状態であるか否かを判定し、精算スイッチ10がON状態であれば、精算処理を行う。 Here, for example, when the settlement switch 10 and the setting key switch 37 are operated at the same time, the following processing is performed. Of the settlement switch 10 and the setting key switch 37, the setting key switch 37 has a higher processing priority. Therefore, it is first determined whether or not the setting key switch 37 is in the ON state, and if the setting key switch 37 is in the ON state, the setting shift state is entered. If the setting key switch 37 is in the OFF state, it is determined whether or not the settlement switch 10 is in the ON state, and if the settlement switch 10 is in the ON state, the settlement process is performed.

精算スイッチ10と設定キースイッチ37とが同時に操作された場合において、設定変更状態に移行し、さらに設定変更状態を終了したとする。設定変更状態を終了したときに、未だ精算スイッチ10がON状態を継続している場合には、精算処理を行う。設定変更状態を終了したときに、精算スイッチ10がOFF状態であれば、精算処理を行わない。 When the settlement switch 10 and the setting key switch 37 are operated at the same time, it is assumed that the setting change state is entered and the setting change state is terminated. If the settlement switch 10 is still in the ON state when the setting change state is finished, the settlement process is performed. If the settlement switch 10 is in the OFF state when the setting change state is finished, the settlement process is not performed.

また、上記とは別の処理方法も考えられる。たとえば、精算スイッチ10と設定キースイッチ37とが同時にON状態になっているか否かを判定し、同時にON状態になっている場合は、いずれの処理も行わないようにしてもよい。この場合、いずれか一方がON状態になるのを待って、ON状態になった方に対して処理を行う。しかし、このように同時にON状態になっているか否かを判定する処理を行うよりも、上記のように優先順位の高い方の処理を行う方が、処理を簡素化することができる。 Further, a processing method different from the above can be considered. For example, it may be determined whether or not the settlement switch 10 and the setting key switch 37 are in the ON state at the same time, and if they are in the ON state at the same time, neither process may be performed. In this case, the process is performed on the one that has been turned on after waiting for one of them to be turned on. However, it is possible to simplify the process by performing the process having the higher priority as described above, rather than performing the process of determining whether or not the ON states are simultaneously turned on.

Sd14のステップにおいて操作入力受付処理を行った後は、スタートフラグに基づいてスタートスイッチ7による有効な操作が検出されたか否かを判定する(Sd15)。所定のレジスタにスタートフラグが設定されておらず、スタートスイッチ7による有効な操作が検出されなかったと判定した場合は、Sd10のステップに戻り、スタートスイッチ7による有効な操作が検出されるまで、Sd10〜Sd15の処理を繰り返す。 After performing the operation input acceptance process in the step of Sd14, it is determined whether or not a valid operation by the start switch 7 is detected based on the start flag (Sd15). If it is determined that the start flag is not set in the predetermined register and a valid operation by the start switch 7 is not detected, the process returns to the step of Sd10 and Sd10 is returned until a valid operation by the start switch 7 is detected. The process of ~ Sd15 is repeated.

Sd16のステップにおいて、所定のレジスタにスタートフラグが設定されており、スタートスイッチ7による有効な操作が検出されたと判定した場合は、内部抽選用の乱数値を乱数回路42から取得して、RAM41cの所定領域に設定する。その後、設定されている賭数を特定可能なメダル投入状態データをRAM41cの所定領域に設定し(Sd17)、スタート有効LED18をOFF状態(消灯状態)に設定し(Sd18)、メダル手入れ許可フラグをRAM41cの所定領域からクリアし(Sd19)、遊技補助表示器12における払出枚数の表示をクリアするように制御して(Sd20)、遊技開始待ち処理を終了させる。 In the step of Sd16, when the start flag is set in the predetermined register and it is determined that the effective operation by the start switch 7 is detected, the random number value for the internal lottery is acquired from the random number circuit 42 and the RAM 41c Set in a predetermined area. After that, the medal insertion state data that can specify the set number of bets is set in the predetermined area of the RAM 41c (Sd17), the start valid LED 18 is set to the OFF state (off state) (Sd18), and the medal care permission flag is set. It is cleared from the predetermined area of the RAM 41c (Sd19), controlled so as to clear the display of the number of payouts on the game auxiliary display 12 (Sd20), and the game start waiting process is terminated.

[投入払出エラーチェック処理]
本実施例のメイン制御部41が行う投入払出エラーチェック処理の制御内容について、図11に基づいて説明する。図11は、メイン制御部が行う投入払出エラーチェック処理の制御内容を示すフローチャートである。なお、投入払出エラーチェック処理は、遊技プログラムに含まれており、遊技プログラムに含まれるメイン処理や遊技開始待ち処理において呼び出されるサブルーチンである。
[Input / withdrawal error check processing]
The control content of the input / payout error check process performed by the main control unit 41 of this embodiment will be described with reference to FIG. FIG. 11 is a flowchart showing the control contents of the input / payout error check process performed by the main control unit. The input / payout error check process is included in the game program, and is a subroutine called in the main process included in the game program and the game start waiting process.

図11に示すように、投入払出エラーチェック処理では、まず、Se1のステップにおいて、RAM41cの所定領域に格納されているセンサエラーフラグを取得する。センサエラーフラグは、払出エラーフラグと投入エラーフラグとを含む。払出エラーフラグおよび投入エラーフラグのうちのいずれかがONに設定されている場合、センサエラーフラグはON状態となる。また、払出エラーフラグおよび投入エラーフラグのいずれもOFFに設定されている場合、センサエラーフラグはOFF状態となる。 As shown in FIG. 11, in the input / withdrawal error check process, first, in the step of Se1, the sensor error flag stored in the predetermined area of the RAM 41c is acquired. The sensor error flag includes a payout error flag and an input error flag. When either the payout error flag or the input error flag is set to ON, the sensor error flag is set to ON. Further, when both the payout error flag and the input error flag are set to OFF, the sensor error flag is in the OFF state.

払出エラーフラグは、払出センサ34cの信号(メダル払出信号)の遷移の異常(メダル払出エラー)が検出された旨を示すフラグである。また、投入エラーフラグは、投入メダルセンサ31の信号(メダル投入信号)の遷移の異常(メダル投入エラー)が検出された旨を示すフラグである。 The payout error flag is a flag indicating that an abnormality (medal payout error) in the transition of the signal (medal payout signal) of the payout sensor 34c has been detected. The insertion error flag is a flag indicating that an abnormality (medal insertion error) in the transition of the signal (medal insertion signal) of the insertion medal sensor 31 has been detected.

取得したセンサエラーフラグがONに設定されている場合(Se2がYES)、Se3に進む。一方で、取得したセンサエラーフラグがOFFに設定されている場合(Se2がNO)、Se16に進む。 If the acquired sensor error flag is set to ON (Se2 is YES), the process proceeds to Se3. On the other hand, when the acquired sensor error flag is set to OFF (Se2 is NO), the process proceeds to Se16.

Se3のステップにおいて、まず、メダル投入エラーが検出された旨を示すエラーコード(E5)を所定のレジスタに設定する。そして、ステップSe4において、払出エラーフラグがOFF状態である場合は、Se6に進む。一方、Se4のステップにおいて、払出エラーフラグがON状態である場合は、メダル払出エラーが検出された旨を示すエラーコード(E4)を所定のレジスタに設定して、Se6に進む。すなわち、メダル払出エラーが検出された場合はエラーコート(E4)を所定のレジスタに設定し、メダル投入エラーが検出された場合はエラーコート(E5)を所定のレジスタに設定する。 In the step of Se3, first, an error code (E5) indicating that a medal insertion error has been detected is set in a predetermined register. Then, in step Se4, if the payout error flag is in the OFF state, the process proceeds to Se6. On the other hand, in the step of Se4, when the payout error flag is in the ON state, an error code (E4) indicating that a medal payout error has been detected is set in a predetermined register, and the process proceeds to Se6. That is, when a medal payout error is detected, the error coat (E4) is set in a predetermined register, and when a medal insertion error is detected, the error coat (E5) is set in a predetermined register.

そして、全リール停止LEDオフ処理(Se6)を実行する。全リール停止LEDオフ処理は、リールの停止操作が有効である旨を点灯により報知する停止有効LEDを全て消灯させるための設定を行う処理である。そして、流路切替ソレノイドオフ処理(Se7)を実行する。流路切替ソレノイドオフ処理は、流路切替ソレノイド30をOFF状態するために設定を行う処理である。そして、所定のレジスタに設定されたエラーコードに基づき、エラー番号の設定を行った上で(Se8)、エラー処理(Se9)を実行する。 Then, the all reel stop LED off process (Se6) is executed. The all reel stop LED off process is a process for setting to turn off all the stop effective LEDs that notify by lighting that the reel stop operation is effective. Then, the flow path switching solenoid off process (Se7) is executed. The flow path switching solenoid off process is a process of setting to turn off the flow path switching solenoid 30. Then, after setting the error number based on the error code set in the predetermined register (Se8), the error processing (Se9) is executed.

エラー処理を実行した後は、割込禁止設定を行い(Se10)、RAM41cの所定領域からセンサエラーフラグを取得する(Se11)。取得したエラーフラグに対して、エラー処理により解除された払出エラーまたは投入エラーを解除して更新し(Se12)、更新されたセンサエラーフラグRAM41cの所定領域に格納する(Se13)。 After executing the error processing, the interrupt prohibition setting is set (Se10), and the sensor error flag is acquired from the predetermined area of the RAM 41c (Se11). With respect to the acquired error flag, the payout error or the input error released by the error processing is released and updated (Se12), and stored in the predetermined area of the updated sensor error flag RAM 41c (Se13).

次に、Se14のステップにおいて、割込許可設定を行い、エラー処理を実行した旨を示すエラー実行フラグをON状態に設定して(Se15)、投入払出エラーチェック処理を終了する。 Next, in the step of Se14, the interrupt permission is set, the error execution flag indicating that the error processing is executed is set to the ON state (Se15), and the input / withdrawal error check process is completed.

一方で、取得したセンサエラーフラグがOFFに設定されている場合(Se2がNO)、Se16ステップにおいて、エラー実行フラグをOFF状態に設定して、投入払出エラーチェック処理を終了する。 On the other hand, when the acquired sensor error flag is set to OFF (Se2 is NO), the error execution flag is set to the OFF state in the Se16 step, and the input / withdrawal error check process is completed.

[エラー処理]
本実施例のメイン制御部41が行うエラー処理の制御内容について、図12に基づいて説明する。図12は、メイン制御部が行うエラー処理の制御内容を示すフローチャートである。なお、エラー処理は、遊技プログラムに含まれており、遊技プログラムに含まれるメイン処理や投入払出エラーチェック処理などにおいて呼び出されるサブルーチンである。
[Error handling]
The control content of the error processing performed by the main control unit 41 of this embodiment will be described with reference to FIG. FIG. 12 is a flowchart showing the control contents of error processing performed by the main control unit. Note that the error processing is a subroutine that is included in the game program and is called in the main processing included in the game program, the input / payout error check processing, and the like.

図12に示すように、エラー処理では、まず、エラー処理が実行される前に設定されたエラー番号(エラーコード)を格納する。たとえば、エラー処理が投入払出エラーチェック処理から呼び出された場合は、E4またはE5のエラーコードをRAM41cの所定領域にその他の処理でも参照可能なエラーフラグとして設定する。 As shown in FIG. 12, in the error processing, first, the error number (error code) set before the error processing is executed is stored. For example, when the error processing is called from the input / output error check processing, the error code of E4 or E5 is set in the predetermined area of the RAM 41c as an error flag that can be referred to in other processing.

Sf2のステップにおいて、エラーコードを特定可能なエラーコマンドを送信するエラー開始コマンド送信処理を実行する。Sf3のステップにおいて、エラーコードに対応するエラー要因を取得し、Sf4のステップにおいて、エラーコードを遊技補助表示器12に表示させるように制御するエラー番号表示処理を行う。その後は、所定のレジスタに準備されているエラーコードに応じたエラー状態の解除条件が成立したことが特定されるまでエラー状態の制御を行う(Sf5)。 In the step of Sf2, an error start command transmission process for transmitting an error command capable of specifying an error code is executed. In the step of Sf3, the error factor corresponding to the error code is acquired, and in the step of Sf4, the error number display process for controlling the error code to be displayed on the game auxiliary display 12 is performed. After that, the error state is controlled until it is specified that the error state release condition corresponding to the error code prepared in the predetermined register is satisfied (Sf5).

たとえば、エラーコード(E4)が所定のレジスタに準備されてエラー状態に移行された場合には、エラー状態の解除条件として、払出センサ34cの検出状態がOFF状態であり、かつリセット/設定スイッチ38またはリセットスイッチ23がON状態となったことが成立するまで待機する。また、エラーコード(E5)がレジスタに準備されてエラー状態に移行された場合には、エラー状態の解除条件として、投入メダルセンサ31a〜31cの検出状態がOFF状態であり、かつリセット/設定スイッチ38またはリセットスイッチ23がON状態となったことが成立するまで待機する。 For example, when the error code (E4) is prepared in a predetermined register and the error state is entered, the detection state of the payout sensor 34c is the OFF state and the reset / setting switch 38 is a condition for releasing the error state. Alternatively, it waits until it is established that the reset switch 23 is in the ON state. Further, when the error code (E5) is prepared in the register and the state shifts to the error state, the detection state of the inserted medal sensors 31a to 31c is the OFF state and the reset / setting switch is set as the condition for canceling the error state. It waits until it is established that the 38 or the reset switch 23 is in the ON state.

エラー状態の解除条件が成立した場合(Sf5でYES)は、Sf6に進み、割込1回待ち処理を行う。そして、入力バッファ1,2を取得し(Sf7)、取得した入力バッファ1,2に基づき、払出センサ、投入メダルセンサ、満タンセンサが正常であるかを判定する(Sf8)。Sf8において正常であると判断した場合はSf9に進む。一方、Sf8において正常でないと判断した場合はSf6に戻り、Sf8において正常であると判断されるまで、Sf6〜Sf8のステップを繰り返す。 When the condition for canceling the error state is satisfied (YES in Sf5), the process proceeds to Sf6 and the interrupt processing is performed once. Then, the input buffers 1 and 2 are acquired (Sf7), and based on the acquired input buffers 1 and 2, it is determined whether the payout sensor, the input medal sensor, and the full tank sensor are normal (Sf8). If it is determined that Sf8 is normal, the process proceeds to Sf9. On the other hand, if it is determined that Sf8 is not normal, the process returns to Sf6, and the steps Sf6 to Sf8 are repeated until it is determined that Sf8 is normal.

Sf9のステップにおいて、入力バッファ0のONエッジ状態を取得し、リセット/設定スイッチ38またはリセットスイッチ23がONエッジ状態となるまで(操作がされるまで)待機し(Sf10でNO)、リセット/設定スイッチ38またはリセットスイッチ23がONエッジ状態となる(Sf9でYES)ことで、Sf11に進む。 In the step of Sf9, the ON edge state of the input buffer 0 is acquired, the reset / setting switch 38 or the reset switch 23 waits until the ON edge state is reached (until the operation is performed) (NO in Sf10), and the reset / setting is performed. When the switch 38 or the reset switch 23 is in the ON edge state (YES in Sf9), the process proceeds to Sf11.

Sf11のステップにおいて、払出枚数表示データを格納し、エラー番号をクリアし(Sf12)、エラー解除コマンド送信処理(Sf13)を実行する。エラー解除コマンド送信処理においては、エラー状態を解除する旨のエラー解除コマンドを送信する。Sf14のステップにおいて、割込1回待ち処理を行って、エラー処理を終了する。 In the step of Sf11, the payout number display data is stored, the error number is cleared (Sf12), and the error release command transmission process (Sf13) is executed. In the error release command transmission process, an error release command for canceling the error state is transmitted. In the step of Sf14, the interrupt processing is performed once, and the error processing is terminated.

[リール停止制御処理]
本実施例のメイン制御部41が行うリール停止制御処理の制御内容について、図13および図14に基づいて説明する。図13は、メイン制御部が行うリール停止制御処理の制御内容を示すフローチャート(その1)である。なお、リール停止制御処理は、遊技プログラムに含まれており、遊技プログラムに含まれるメイン処理において呼び出されるサブルーチンである。
[Reel stop control process]
The control contents of the reel stop control process performed by the main control unit 41 of this embodiment will be described with reference to FIGS. 13 and 14. FIG. 13 is a flowchart (No. 1) showing the control contents of the reel stop control process performed by the main control unit. The reel stop control process is included in the game program and is a subroutine called in the main process included in the game program.

図13に示すように、リール停止制御処理では、まず、停止有効LEDを全て消灯させるための設定を行う全リール停止LEDオフ処理を実行する(Sg1)。Sg2のステップでは、割込1回待ち処理を実行する。割込1回待ち処理では、タイマ割込処理(メイン)が1回行われるまで待機する。Sg3のステップでは、割込許可設定を行う。 As shown in FIG. 13, in the reel stop control process, first, the all reel stop LED off process for setting to turn off all the stop effective LEDs is executed (Sg1). In the step of Sg2, the interrupt processing is executed once. In the interrupt one-time wait process, the timer waits until the interrupt process (main) is performed once. In the step of Sg3, the interrupt permission is set.

Sg4のステップでは、前述の払出投入エラーチェック処理を実行する。その結果、投入払出エラー(メダル投入エラーまたはメダル払出エラー)が発生した場合には(Sg5でYES)、Sg2のステップに戻り、Sg2〜Sg5の処理を繰り返す。投入払出エラーが解除された場合には、Sg6のステップに進む。すなわち、投入払出エラーが発生している状態においては、Sg6以降のステップに進むことができない。 In the step of Sg4, the above-mentioned payout / input error check process is executed. As a result, if an insertion / withdrawal error (medal insertion / withdrawal error or medal withdrawal error) occurs (YES in Sg5), the process returns to the step of Sg2 and the processing of Sg2 to Sg5 is repeated. When the input / withdrawal error is cleared, the process proceeds to the step of Sg6. That is, in the state where the input / withdrawal error has occurred, it is not possible to proceed to the steps after Sg6.

投入払出エラーが発生しなかった場合には(Sg5でNO)、Sg6のステップに進む。Sg6のステップにおいて、リール回転エラーが発生していない場合には(Sg6でNO)、Sg10のステップに進む。一方で、リール回転エラーが発生している場合には(Sg6でYES)、全リール停止LEDオフ処理(Sg7)を実行し、リール回転エラーのエラーコード(E6)を設定した上で、エラー処理(Sg9)を実行する。エラー処理では、全てのリールの回転を停止させて、ゲームを進行させないように不能化するエラー状態に制御して待機する。その後、リセット操作により当該エラー状態が解除されることで、エラー処理を終了する。エラー処理の終了後には、Sg2のステップに戻り、再度Sg2〜Sg9までの処理を繰り返し、リール回転エラーが発生していない場合に、Sg10のステップに進む。すなわち、リール回転エラーが発生している状態においては、Sg10以降のステップに進むことができない。 If no input / withdrawal error occurs (NO in Sg5), the process proceeds to the step of Sg6. If no reel rotation error has occurred in the step of Sg6 (NO in Sg6), the process proceeds to the step of Sg10. On the other hand, if a reel rotation error has occurred (YES in Sg6), all reel stop LED off processing (Sg7) is executed, an error code (E6) for the reel rotation error is set, and then error processing is performed. (Sg9) is executed. In error handling, the rotation of all reels is stopped, and the game is controlled to an error state that makes it impossible to proceed and waits. After that, the error processing is terminated by canceling the error state by the reset operation. After the error processing is completed, the process returns to the step of Sg2, the processing of Sg2 to Sg9 is repeated again, and when the reel rotation error does not occur, the process proceeds to the step of Sg10. That is, in the state where the reel rotation error has occurred, it is not possible to proceed to the steps after Sg10.

Sg10のステップでは、内部当選信号出力タイマを取得する。ステップSg11において内部当選信号出力タイマが0になった場合(Sg11でYES)にはSg12のステップに進み、ステップSg11において内部出力タイマが0になるまで(Sg11)、Sg10,Sg11のステップを繰り返す。内部当選信号出力タイマは、内部当選信号が出力されてから所定時間(2秒経過)が経過したときに0になるタイマである。このため、内部当選信号が出力されてから2秒が経過するまでは、次の処理(Sg12)に進むことができない。 In the step of Sg10, the internal winning signal output timer is acquired. When the internal winning signal output timer becomes 0 in step Sg11 (YES in Sg11), the process proceeds to the step of Sg12, and the steps of Sg10 and Sg11 are repeated until the internal output timer becomes 0 in step Sg11 (Sg11). The internal winning signal output timer is a timer that becomes 0 when a predetermined time (2 seconds have elapsed) has elapsed since the internal winning signal was output. Therefore, the next process (Sg12) cannot proceed until 2 seconds have passed since the internal winning signal was output.

なお、Sg10のステップの前に、リールの停止制御中はストップスイッチを無効にするような処理を入れてもよい。たとえば、あるリールの停止制御が開始された場合には、リールの回転を停止するまでの最大停止遅延時間(190ms)待機させる処理を行うようにしてもよい。しかし、本実施の形態では、このような処理を入れていないため、後述するように、複数のストップスイッチをほぼ同時に操作した場合、1割込でもずれていればリール停止滑りコマ格納処理(Sg32)が実行可能となり、複数のリールをほぼ同時に停止させることができる。 In addition, before the step of Sg10, a process of disabling the stop switch during the stop control of the reel may be inserted. For example, when the stop control of a certain reel is started, the process of waiting for the maximum stop delay time (190 ms) until the rotation of the reel is stopped may be performed. However, in the present embodiment, since such a process is not inserted, as will be described later, when a plurality of stop switches are operated at almost the same time, the reel stop slip piece storage process (Sg32) if even 1 interrupt is deviated. ) Can be executed, and multiple reels can be stopped at almost the same time.

Sg12のステップでは、割込禁止設定を行う。次に、停止有効LEDの状態を特定可能な停止有効LED状態アドレスを読み込み(Sg13)、回転速度状態データを取得する(Sg14)。回転速度状態データは、回転制御中の各リールモータが定速状態で回転しているか否かを特定可能な情報である。そして、回転速度状態データに基づいて、回転制御中のリールの回転状態が定速状態であるか否かをリール毎に特定し、回転制御中の全てのリールが定速回転で回転されているか否かを判定する(Sg15)。 In the step of Sg12, interrupt prohibition setting is performed. Next, the stop effective LED state address that can specify the state of the stop effective LED is read (Sg13), and the rotation speed state data is acquired (Sg14). The rotation speed state data is information that can identify whether or not each reel motor under rotation control is rotating in a constant speed state. Then, based on the rotation speed state data, it is specified for each reel whether or not the rotation state of the reel under rotation control is the constant speed state, and whether all the reels under rotation control are rotated at the constant speed rotation. Whether or not it is determined (Sg15).

そして、Sg15のステップにおいて、少なくともいずれか1つのリールが定速回転で回転しておらず、回転制御中の全てのリールが定速回転で回転されている状況でないと判定した場合には、Sg1のステップに戻り、Sg1〜Sg15のステップを繰り返し実行して、回転制御中の全てのリールが定速回転で回転されている状況となるまで待機する。一方、Sg15のステップにおいて、回転制御中の全てのリールが定速回転で回転されていると判定した場合には、回転制御を行っている全てのリールについて停止操作の受け付けが有効になる。 Then, in the step of Sg15, when it is determined that at least one of the reels is not rotating at a constant speed rotation and all the reels under rotation control are not rotating at a constant speed rotation, Sg1 The process returns to the above step, the steps Sg1 to Sg15 are repeatedly executed, and the reels under rotation control are waited until they are rotated at a constant speed. On the other hand, in the step of Sg15, when it is determined that all the reels under rotation control are rotating at a constant speed, the acceptance of the stop operation is effective for all the reels under rotation control.

Sg16において、停止有効LED状態データをOFFに設定し、リールが加速済みである場合(Sg17でYES)には、リール加速終了コマンドを送信するリール加速コマンド送信処理(Sg18)を実行し、Sg19に進む。一方で、リールが加速済みでない場合には(Sg17でNO)、リール加速コマンド送信処理を実行することなく、Sg19に進む。 In Sg16, when the stop effective LED status data is set to OFF and the reel has been accelerated (YES in Sg17), the reel acceleration command transmission process (Sg18) for transmitting the reel acceleration end command is executed, and the reel acceleration command transmission process (Sg18) is executed in Sg19. move on. On the other hand, if the reel has not been accelerated (NO in Sg17), the process proceeds to Sg19 without executing the reel acceleration command transmission process.

次に、払出枚数表示データを格納し(Sg19)、入力バッファのONエッジ状態を取得し(Sg20)、停止有効LED状態アドレスを読み込んだ後に、有効なストップスイッチ操作状態のみを取得し(Sg21)、有効なストップスイッチの操作(停止操作)があったか否かを判定する(Sg22)。有効なストップスイッチの操作があったか否かは、いずれかのストップスイッチにおいて、停止有効LEDがON状態であり、かつストップスイッチ信号がONエッジ状態であることにより判定される。 Next, the payout number display data is stored (Sg19), the ON edge state of the input buffer is acquired (Sg20), the stop valid LED status address is read, and then only the valid stop switch operation status is acquired (Sg21). , It is determined whether or not there is a valid stop switch operation (stop operation) (Sg22). Whether or not an effective stop switch has been operated is determined by the fact that the stop effective LED is in the ON state and the stop switch signal is in the ON edge state in any of the stop switches.

Sg22のステップにおいて、有効なストップスイッチの操作がなかったと判定した場合には、停止有効LED状態データを出力バッファ2に格納し(Sg23)、出力ポート2出力処理(Sg24)を行う。そして、Sg2のステップに戻り、Sg2〜Sg24のステップを繰り返し実行して、有効なストップスイッチの操作が検出されるまで待機する。その後、Sg22のステップにおいて有効なストップスイッチの操作が検出された場合(Sg22でYES)には、Sg25のステップに進む。 If it is determined in the step of Sg22 that the effective stop switch has not been operated, the stop effective LED status data is stored in the output buffer 2 (Sg23), and the output port 2 output process (Sg24) is performed. Then, the process returns to the step of Sg2, the steps of Sg2 to Sg24 are repeatedly executed, and the process waits until a valid stop switch operation is detected. After that, when a valid stop switch operation is detected in the step of Sg22 (YES in Sg22), the process proceeds to the step of Sg25.

図14は、メイン制御部が行うリール停止制御処理の制御内容を示すフローチャート(その2)である。図14に示すように、Sg25のステップにおいて、停止対象となるリールを設定する。その際、左ストップスイッチ、中ストップスイッチ、右ストップスイッチの順に、有効なストップスイッチの操作が検出されたか否かを判定していき、最初に判定されたストップスイッチに対応するリールが停止対象となる。すなわち、停止対象となるリールが複数ある場合は、左リール、中リール、右リールの順に優先的に選択されることとなる。次に、割込許可設定を行い(Sg26)、出力バッファ2をクリアした上で出力ポート2出力処理(Sg27)を実行する。 FIG. 14 is a flowchart (No. 2) showing the control contents of the reel stop control process performed by the main control unit. As shown in FIG. 14, in the step of Sg25, the reel to be stopped is set. At that time, it is determined whether or not a valid stop switch operation is detected in the order of the left stop switch, the middle stop switch, and the right stop switch, and the reel corresponding to the first determined stop switch is the stop target. Become. That is, when there are a plurality of reels to be stopped, the left reel, the middle reel, and the right reel are preferentially selected in this order. Next, the interrupt permission setting is made (Sg26), the output buffer 2 is cleared, and then the output port 2 output process (Sg27) is executed.

次に、Sg28のステップにおいて、割込禁止設定を行う。そして、Sg29のステップにおいて、RAM41cの所定領域に設定されている図柄ステップ数カウンタに基づいて、停止操作が検出されたリールの図柄ステップ数を取得する。Sg30のステップにおいては、図柄ステップ数がRAM41cの所定領域に設定されている判定範囲内にあるか否かを判定する。図柄ステップ数が所定の判定範囲内であれば(Sg30がYES)、ステップSg32に進む。一方、図柄ステップ数が判定範囲でなければ(Sg30がNO)、割込許可設定を行い(Sg31)、Sg28のステップに戻り、図柄ステップ数が所定の判定範囲となるまでSg28〜Sg31のステップを繰り返す。Sg31のステップにおいて割込許可設定がされたときに、割込処理を実行して、当該割込処理において図柄ステップ数カウンタを更新する。 Next, in the step of Sg28, the interrupt prohibition setting is performed. Then, in the step of Sg29, the number of symbol steps of the reel in which the stop operation is detected is acquired based on the symbol step number counter set in the predetermined area of the RAM 41c. In the step of Sg30, it is determined whether or not the number of symbol steps is within the determination range set in the predetermined area of the RAM 41c. If the number of symbol steps is within the predetermined determination range (YES in Sg30), the process proceeds to step Sg32. On the other hand, if the number of symbol steps is not within the determination range (Sg30 is NO), interrupt permission is set (Sg31), the process returns to the Sg28 step, and the steps Sg28 to Sg31 are repeated until the number of symbol steps reaches the predetermined determination range. repeat. When the interrupt permission is set in the step of Sg31, the interrupt process is executed and the symbol step number counter is updated in the interrupt process.

図柄ステップ数は、リールモータの1周分のステップ数のうち1つの図柄に対応するステップ数である。たとえば、1図柄あたり16ステップ(あるいは17ステップ)が割り当てられる。16ステップが割り当てられる場合は、図柄の下端が0ステップ、上端が15ステップとなる。図柄ステップ数カウンタは、リールの所定の判定位置を通過する図柄の図柄ステップ数を計数するためのカウンタである。16ステップ図柄の場合は、0〜15がカウントされる。本実施の形態においては、16ステップ図柄であっても17ステップ図柄であっても、共通のステップである11ステップにおいて、図柄ステップ数を取得する。すなわち、上記判定範囲は11ステップのみとなる。すなわち、図柄ステップ数が11以外は、判定範囲外であると判定される。なお、これに限らず、0〜11ステップを判定範囲とするものであってもよいし、16ステップ図柄と17ステップ図柄とで判定範囲を異ならせるものであってもよい。 The number of symbol steps is the number of steps corresponding to one symbol out of the number of steps for one round of the reel motor. For example, 16 steps (or 17 steps) are assigned to each symbol. When 16 steps are assigned, the lower end of the symbol is 0 steps and the upper end is 15 steps. The symbol step number counter is a counter for counting the number of symbol steps of the symbol passing through a predetermined determination position on the reel. In the case of a 16-step symbol, 0 to 15 are counted. In the present embodiment, the number of symbol steps is acquired in 11 steps, which are common steps, regardless of whether the symbol is a 16-step symbol or a 17-step symbol. That is, the determination range is only 11 steps. That is, it is determined that the number of symbol steps other than 11 is out of the determination range. Not limited to this, the determination range may be 0 to 11 steps, or the determination range may be different between the 16-step symbol and the 17-step symbol.

図柄ステップ数が判定範囲内であれば(Sg30がYES)、割込禁止設定が維持された状態で、リール停止滑りコマ格納処理(ステップSg32)を実行する。リール停止滑りコマ格納処理においては、RAM41cの所定領域に設定されている図柄番号カウンタの値を取得し、当該図柄番号カウンタの値を停止操作が行われたときの図柄番号(操作時図柄番号とも称する)としてRAM41cの所定領域に設定する。本実施の形態においては、1リールに配置された20図柄の各々には、リール基準位置の図柄を基準として連続する番号(0〜19)が図柄番号として予め割り当てられており、図柄番号カウンタは、所定の判定位置に位置している図柄の図柄番号(操作時図柄番号とも称する)を計数するためのカウンタである。 If the number of symbol steps is within the determination range (YES in Sg30), the reel stop slip frame storage process (step Sg32) is executed while the interrupt prohibition setting is maintained. In the reel stop sliding frame storage process, the value of the symbol number counter set in the predetermined area of the RAM 41c is acquired, and the value of the symbol number counter is the symbol number when the stop operation is performed (also the symbol number at the time of operation). (Referred to as) is set in a predetermined area of the RAM 41c. In the present embodiment, each of the 20 symbols arranged on one reel is preliminarily assigned a continuous number (0 to 19) as a symbol number based on the symbol at the reel reference position, and the symbol number counter is , It is a counter for counting the symbol number (also referred to as the symbol number at the time of operation) of the symbol located at a predetermined determination position.

また、RAM41cの所定領域に設定されている停止制御テーブルを参照して、操作時図柄番号に基づいて停止操作が行われたタイミングに対応する滑りコマ数を特定し、当該滑りコマ数をRAM41cの所定領域に設定する。また、当該滑りコマ数に応じた位置、すなわち滑りコマ数に対応する図柄番号の図柄で該当するリールを停止させるために停止要求をRAM41cの所定領域に設定して、該当するリールを減速させて停止させる制動制御を開始させる。 Further, with reference to the stop control table set in the predetermined area of the RAM 41c, the number of sliding frames corresponding to the timing when the stop operation is performed based on the symbol number at the time of operation is specified, and the number of sliding frames is determined by the RAM 41c. Set in a predetermined area. Further, a stop request is set in a predetermined area of the RAM 41c in order to stop the corresponding reel at a position corresponding to the number of sliding frames, that is, a symbol having a symbol number corresponding to the number of sliding frames, and the corresponding reel is decelerated. Stop Braking control is started.

Sg32のステップにおいてリール停止滑りコマ数設定処理を実行した後は、リール停止が受付けられたことを特定可能なリール停止受付時コマンド送信処理(Sg33)を実行し、滑りコマ数を特定可能な滑りコマ数コマンド送信処理(Sg34)を実行し、リール停止位置を特定可能なリール停止位置コマンド送信処理(Sg35)を実行する。 After executing the reel stop slip frame number setting process in the step of Sg32, the reel stop reception command transmission process (Sg33) that can specify that the reel stop has been accepted is executed, and the slip that can specify the number of slip frames is executed. The number of frames command transmission process (Sg34) is executed, and the reel stop position command transmission process (Sg35) capable of specifying the reel stop position is executed.

次に、入賞フラグにマスク処理(Sg36)を行った上で、入賞予想処理(Sg37)を実行する。入賞予想処理は、図柄組合せが導出される前に、入賞判定処理の一部に相当する処理を実行するものである。次に、リールが停止することを特定可能なリール停止コマンド送信処理(Sg38)を実行する。 Next, after performing mask processing (Sg36) on the winning flag, the winning prediction processing (Sg37) is executed. The winning prediction process executes a process corresponding to a part of the winning determination process before the symbol combination is derived. Next, a reel stop command transmission process (Sg38) capable of identifying that the reel is stopped is executed.

次に、Sg39のステップにおいて、停止対象となっているリールが最終停止(第3停止)であるのか否かを判定する。最終停止である場合(Sg39でYES)は、Sg40に進む。一方で、最終停止でない場合(Sg39でNO)、すなわち、第1停止または第2停止である場合は、Sg2に戻り、全てのリールに対してリール停止滑りコマ数設定処理が実行されるまで(最終停止となるまで)、Sg2〜Sg39の処理を繰り返す。 Next, in the step of Sg39, it is determined whether or not the reel to be stopped is the final stop (third stop). If it is the final stop (YES in Sg39), the process proceeds to Sg40. On the other hand, if it is not the final stop (NO in Sg39), that is, if it is the first stop or the second stop, it returns to Sg2 and until the reel stop slip frame number setting process is executed for all reels (NO). The processing of Sg2 to Sg39 is repeated until the final stop is reached.

なお、割込禁止設定が行われている期間内に、本来の割込処理のタイミングが含まれていた場合には、次に、割込許可設定が行われたタイミングで、割込処理が実行される。たとえば、リール停止滑りコマ数設定処理が実行された後に、割込許可設定が行われたときに、当該設定タイミングにおいて、リール停止滑りコマ数設定処理で設定された滑りコマ数および停止制御フラグに基づいて、該当するリールを減速させて停止させるための制動制御を開始する。 If the original interrupt processing timing is included within the period in which the interrupt prohibition setting is made, the interrupt processing is executed at the timing when the interrupt permission setting is made next. Will be done. For example, when the interrupt permission setting is performed after the reel stop slip frame number setting process is executed, the slip frame number and the stop control flag set in the reel stop slip frame number setting process are set at the setting timing. Based on this, braking control for decelerating and stopping the corresponding reel is started.

Sg39のステップにおいて最終停止であると判定された場合は、払出枚数表示データをクリアする(Sg40)し、リールモータ状態データを取得する(Sg41)。取得したリールモータ状態データに基づき、全てのリールモータがOFF状態であるか否かを判定する(Sg42)。全てのリールモータがOFF状態でない場合には(Sg42でNO)、全てのリールモータがOFF状態となるまで待機する。全てのリールモータがOFF状態となった場合には(Sg42でYES)、Sg43に進む。リールモータ状態データは、第1〜第3リールモータφ0〜φ3信号および流路切替ソレノイド信号の出力状態を特定可能なデータである。 When it is determined that the final stop is in the step of Sg39, the payout number display data is cleared (Sg40) and the reel motor state data is acquired (Sg41). Based on the acquired reel motor state data, it is determined whether or not all the reel motors are in the OFF state (Sg42). If all reel motors are not in the OFF state (NO in Sg42), wait until all reel motors are in the OFF state. When all the reel motors are turned off (YES in Sg42), the process proceeds to Sg43. The reel motor state data is data capable of specifying the output states of the first to third reel motor φ0 to φ3 signals and the flow path switching solenoid signal.

Sg43のステップにおいて、投入払出エラーチェック処理を実行する。Sg44のステップにおいて、入力バッファ0を取得し、ストップスイッチが押下状態(すなわち、ON状態が継続している状態)であるか否かを判定する(Sg45)。ストップスイッチが押下状態である場合(Sg45でYES)は、ストップスイッチの押下状態が解除されるまで、Sg43〜Sg45の処理を繰り返し、ストップスイッチの押下状態が解除された場合は(Sg45でNO)は、リール停止制御処理を終了する。 In the step of Sg43, the input / withdrawal error check process is executed. In the step of Sg44, the input buffer 0 is acquired, and it is determined whether or not the stop switch is in the pressed state (that is, the ON state continues) (Sg45). When the stop switch is in the pressed state (YES in Sg45), the processes of Sg43 to Sg45 are repeated until the pressed state of the stop switch is released, and when the pressed state of the stop switch is released (NO in Sg45). Ends the reel stop control process.

[遊技終了時の設定処理]
本実施例のメイン制御部41が行う遊技終了時の設定処理の制御内容について、図15に基づいて説明する。図15は、メイン制御部が行う遊技終了時の設定処理の制御内容を示すフローチャートである。なお、遊技終了時の設定処理は、遊技プログラムに含まれており、遊技プログラムに含まれるメイン処理において呼び出されるサブルーチンである。
[Setting process at the end of the game]
The control content of the setting process at the end of the game performed by the main control unit 41 of this embodiment will be described with reference to FIG. FIG. 15 is a flowchart showing the control contents of the setting process at the end of the game performed by the main control unit. The setting process at the end of the game is included in the game program and is a subroutine called in the main process included in the game program.

図15に示すように、遊技終了時の設定処理では、まず、入賞フラグを取得する(Sh1)。入賞フラグは、入賞が発生したときに設定され、入賞の種類を特定可能なフラグである。次に、入賞フラグに基づき、リプレイ入賞が発生しているかを判定する(Sh2)。リプレイ入賞が発生している場合には(Sh2でYES)、Sh3に進み、リプレイ入賞が発生していない場合には(Sh2でNO)、Sh8に進む。 As shown in FIG. 15, in the setting process at the end of the game, first, the winning flag is acquired (Sh1). The winning flag is a flag that is set when a winning occurs and can specify the type of winning. Next, based on the winning flag, it is determined whether or not a replay winning has occurred (Sh2). If a replay prize has occurred (YES in Sh2), the process proceeds to Sh3, and if no replay prize has occurred (NO in Sh2), the process proceeds to Sh8.

リプレイ入賞が発生している場合には(Sh2でYES)、BET数(本実施の形態においては、3)を取得し(Sh3)、取得したBET数をリプレイ用カウンタに格納する(Sh4)とともに、取得したBET数を払出信号用カウンタに格納する(Sh5)。 If a replay prize has occurred (YES in Sh2), the number of BETs (3 in this embodiment) is acquired (Sh3), and the acquired number of BETs is stored in the replay counter (Sh4). , The acquired BET number is stored in the payout signal counter (Sh5).

Sh6のステップにおいて、リプレイ中であることを特定可能なリプレイフラグをONに設定する。そして、Sh7のステップにおいて、リプレイ中LED20をON状態(点灯状態)に制御する処理を実行し、Sh10に進む。 In the step of Sh6, the replay flag that can identify that the replay is in progress is set to ON. Then, in the step of Sh7, the process of controlling the LED 20 to the ON state (lighting state) during replay is executed, and the process proceeds to Sh10.

一方で、リプレイ入賞が発生していない場合には(Sh2でNO)、リプレイフラグをOFFに設定する(Sh8)。そして、Sh9のステップにおいて、リプレイ中LED20をOFF状態(消灯状態)に制御する処理を実行し、Sh10に進む。 On the other hand, if no replay winning has occurred (NO in Sh2), the replay flag is set to OFF (Sh8). Then, in the step of Sh9, the process of controlling the LED 20 during replay to the OFF state (off state) is executed, and the process proceeds to Sh10.

Sh10のステップにおいては、ボーナス関連処理を実行する。ボーナス関連処理においては、ボーナス開始時には遊技状態をボーナスに制御するための設定処理を行い、ボーナスを終了時にはボーナスコマンドを送信するための処理などを行う。 In the Sh10 step, bonus-related processing is executed. In the bonus-related processing, a setting process for controlling the game state to the bonus is performed at the start of the bonus, and a process for transmitting a bonus command is performed at the end of the bonus.

[タイマ割込処理(メイン)]
本実施例のメイン制御部41が行うタイマ割込処理(メイン)の制御内容について、図16に基づいて説明する。図16は、メイン制御部が行うタイマ割込処理(メイン)の制御内容を示すフローチャートである。なお、タイマ割込処理(メイン)は、遊技プログラムに含まれるサブルーチンである。
[Timer interrupt processing (main)]
The control content of the timer interrupt process (main) performed by the main control unit 41 of this embodiment will be described with reference to FIG. FIG. 16 is a flowchart showing the control contents of the timer interrupt process (main) performed by the main control unit. The timer interrupt process (main) is a subroutine included in the game program.

図16に示すように、タイマ割込処理(メイン)では、まず、すべての表レジスタと裏レジスタを交換した後(Si1)、割込禁止に設定し(Si2)、RAM41cの所定領域に設定されている電圧低下状態カウンタの値を取得する(Si3)。そして、電断検出回路48から電圧低下信号が入力される入力ポートを参照して(Si4)、電圧低下信号が入力されているか否かを判定する(Si5)。電圧低下信号が入力されている場合には、電圧低下状態カウンタが予め定められた上限値(本実施例では、4)に達しているか否かを判定し(Si6)、電圧低下状態カウンタが上限値に達している場合には、電断処理(メイン)を行う(Si7)。 As shown in FIG. 16, in the timer interrupt process (main), first, after exchanging all the front and back registers (Si1), interrupt prohibition is set (Si2), and then the timer is set to a predetermined area of the RAM 41c. The value of the current voltage drop state counter is acquired (Si3). Then, with reference to the input port to which the voltage drop signal is input from the power failure detection circuit 48 (Si4), it is determined whether or not the voltage drop signal is input (Si5). When a voltage drop signal is input, the voltage drop state counter determines whether or not it has reached a predetermined upper limit value (4 in this embodiment) (Si6), and the voltage drop state counter is the upper limit. When the value is reached, the power interruption process (main) is performed (Si7).

電断処理(メイン)では、すべての表レジスタと裏レジスタを交換し、メイン制御部41が備えるすべてのレジスタの値を、遊技RAM領域の遊技スタック領域に所定の順序で記憶させることで退避させ、スタックポインタSPにより示される遊技スタック領域の現在のアドレスを遊技RAM領域の所定領域に記憶させることで退避させる。なお、メイン制御部41がレジスタの値を記憶させる遊技RAM領域の遊技スタック領域やスタックポインタSPにより示されるアドレスの値を記憶させる遊技RAM領域の所定領域を含む遊技RAM領域の所定領域は、バックアップ電源によりバックアップされており、スロットマシン1への電力供給が停止しても、バックアップ電源により電力が供給される限り当該遊技RAM領域の記憶内容が保存されるようになっている。 In the power failure processing (main), all the front registers and the back registers are exchanged, and the values of all the registers provided in the main control unit 41 are saved in the game stack area of the game RAM area by storing them in a predetermined order. , The current address of the game stack area indicated by the stack pointer SP is stored in a predetermined area of the game RAM area to be saved. The predetermined area of the game RAM area including the game stack area of the game RAM area in which the main control unit 41 stores the register value and the predetermined area of the game RAM area in which the value of the address indicated by the stack pointer SP is stored is backed up. It is backed up by the power supply, and even if the power supply to the slot machine 1 is stopped, the stored contents of the game RAM area are saved as long as the power is supplied by the backup power supply.

そして、各出力ポートを初期化することで、ホッパーモータ34bの駆動やリール2L、2C、2Rの回転を停止させるとともに、各種スイッチ類への制御信号などの出力を停止させる。そして、RAM41cのすべての格納領域(未使用領域及び未使用スタック領域を含む)の排他的論理和が0になるようにRAM41cのパリティ調整用データを計算して、当該パリティ調整用データをRAM41cの所定領域に設定し、RAM41cへのアクセスを禁止に設定し、ループ処理に入る。ループ処理では、電圧低下信号の出力状況を監視した状態で待機する。この状態で、電圧低下信号が入力されなくなった場合に電圧の回復を判定し、起動処理(メイン)からプログラムをスタートさせる。一方、電圧低下信号が入力されたまま電圧が低下すると内部的に動作停止状態になる。 Then, by initializing each output port, the drive of the hopper motor 34b and the rotation of the reels 2L, 2C, and 2R are stopped, and the output of control signals and the like to various switches is stopped. Then, the parity adjustment data of the RAM 41c is calculated so that the exclusive OR of all the storage areas (including the unused area and the unused stack area) of the RAM 41c becomes 0, and the parity adjustment data is used in the RAM 41c. It is set in a predetermined area, access to the RAM 41c is set to be prohibited, and loop processing is started. In the loop processing, the standby is performed while monitoring the output status of the voltage drop signal. In this state, when the voltage drop signal is no longer input, the voltage recovery is determined, and the program is started from the start processing (main). On the other hand, if the voltage drops while the voltage drop signal is being input, the operation is stopped internally.

以上の処理によって、AC100Vの電力供給が停止される場合には、電断処理(メイン)が実行され、電断前のレジスタの値が遊技RAM領域の遊技スタック領域に退避されるとともに、当該遊技スタック領域を含むRAM41cの遊技RAM領域の所定領域の内容もバックアップ電源が供給されることで保持されるため、スロットマシン1への電力供給が再開された際に実行される起動処理(メイン)において、電断前の制御状態に復帰させることが可能となる。さらに電断前の制御状態において停止操作が有効であったか否も特定できるようになっている。 When the power supply of AC100V is stopped by the above processing, the power interruption processing (main) is executed, the value of the register before the power interruption is saved in the game stack area of the game RAM area, and the game is concerned. Since the contents of the predetermined area of the game RAM area of the RAM 41c including the stack area are also held by supplying the backup power, in the start-up process (main) executed when the power supply to the slot machine 1 is restarted. , It is possible to return to the control state before the power failure. Furthermore, it is possible to specify whether or not the stop operation was effective in the control state before the power failure.

次に、Si5のステップにおいて電圧低下信号が入力されていないと判定した場合、およびSi6のステップにおいて電圧低下状態カウンタが上限値に達していないと判定した場合は、Si8のステップに進み、電圧低下状態カウンタを更新する。Si5のステップからSi8のステップに進んだ場合には、電圧低下状態カウンタに0を加算することで、現在の値を維持する一方で、Si5のステップからSi8のステップに進んだ場合には、電圧低下状態カウンタに1加算するように更新する。 Next, if it is determined that the voltage decrease signal has not been input in the step of Si5, or if it is determined that the voltage decrease state counter has not reached the upper limit value in the step of Si6, the process proceeds to the step of Si8 and the voltage decreases. Update the status counter. When the step from the Si5 step to the Si8 step is performed, the current value is maintained by adding 0 to the voltage drop state counter, while when the Si5 step to the Si8 step is performed, the voltage is maintained. Update to add 1 to the drop state counter.

そして、入力ポートから各種スイッチ類の検出状態を入力し、入力データ、確定データ、エッジデータ(ONエッジデータおよびOFFエッジデータ)を生成するポート入力処理を行う(Si9)。その後、メイン制御部41が備えるレジスタのうち演算結果が格納されるフラグレジスタの値を、遊技RAM領域の遊技スタック領域に所定の順序で記憶させることで退避させた後(Si10)、非遊技プログラムに含まれる非遊技関連処理を行う(Si11)。その後、Si10のステップにおいて遊技スタック領域に退避させたフラグレジスタの値を、退避させるときと逆の順序で遊技スタック領域から順次読み出してフラグレジスタに設定することで、非遊技関連処理を行う前の状態にフラグレジスタを復帰させる(Si12)。 Then, the detection states of various switches are input from the input port, and the port input process for generating input data, confirmation data, and edge data (ON edge data and OFF edge data) is performed (Si9). After that, among the registers provided in the main control unit 41, the values of the flag registers in which the calculation results are stored are stored in the game stack area of the game RAM area in a predetermined order to save them (Si10), and then the non-game program. Performs non-game-related processing included in (Si11). After that, the value of the flag register saved in the game stack area in the step of Si10 is sequentially read from the game stack area in the reverse order of the saving, and set in the flag register before the non-game-related processing is performed. The flag register is returned to the state (Si12).

非遊技関連処理では、まず、呼び出し元の遊技プログラムにより使用されていたスタックポインタSPにより示される遊技スタック領域の現在のアドレスの値を、非遊技RAM領域の所定領域に記憶させて退避させる。その後、当該スタックポインタSPの値として非遊技スタック領域の所定値(前回の非遊技プログラムの終了時に、非遊技プログラム用のスタックポインタSPにより示されるアドレスとして非遊技RAM領域の所定領域に記憶されている値)を設定することで、スタックポインタSPを非遊技プログラム用に設定する。そして、上述のフラグレジスタを含むメイン制御部41が備えるすべてのレジスタの値を、スタックポインタSPにより特定される非遊技RAM領域の非遊技スタック領域に所定の順序で記憶させることで退避させる。その後、投入メダルセンサ31a〜31cや払出センサ34cに関する異常を検出するセンサ監視処理、遊技の結果に関連して発生する試験信号を出力する試験信号出力処理、非遊技プログラムが用いる各種タイマを更新する非遊技関連タイマ更新処理、役比モニタに表示させる出力データを選択する役比モニタ出データ選択処理を順次行う。また、センサ監視処理では、投入メダルセンサ31a〜31cや払出センサ34cに関する異常が検出した場合に、検出された異常の種類を特定可能なセンサエラー参照データをRAM41cの非遊技RAM領域の所定領域に設定するようになっている。そして、非遊技関連処理を開始した際に非遊技スタック領域に記憶させて退避させていたレジスタの値を、退避させるときと逆の順序で非遊技スタック領域から順次読み出して、当該順序に対応するレジスタに設定することで、非遊技関連処理を開始したときの状態にすべてのレジスタを復帰させる。その後、非遊技関連処理を開始した際に非遊技RAM領域の所定領域に退避させたスタックポインタSPの値を、スタックポインタSPに設定することで、非遊技関連処理を開始したときの状態にスタックポインタSPを復帰させて、非遊技関連処理を終了させる。 In the non-game-related processing, first, the value of the current address of the game stack area indicated by the stack pointer SP used by the calling game program is stored in a predetermined area of the non-game RAM area and saved. After that, a predetermined value of the non-game stack area is stored as the value of the stack pointer SP (at the end of the previous non-game program, the address indicated by the stack pointer SP for the non-game program is stored in the predetermined area of the non-game RAM area. By setting the value), the stack pointer SP is set for the non-game program. Then, the values of all the registers included in the main control unit 41 including the above-mentioned flag register are stored in the non-game stack area of the non-game RAM area specified by the stack pointer SP in a predetermined order to save the values. After that, the sensor monitoring process for detecting abnormalities related to the input medal sensors 31a to 31c and the payout sensor 34c, the test signal output process for outputting the test signal generated in relation to the result of the game, and various timers used by the non-game program are updated. The non-game-related timer update process and the combination monitor output data selection process for selecting the output data to be displayed on the combination monitor are sequentially performed. Further, in the sensor monitoring process, when an abnormality related to the input medal sensors 31a to 31c or the payout sensor 34c is detected, the sensor error reference data capable of identifying the type of the detected abnormality is set in a predetermined area of the non-gaming RAM area of the RAM 41c. It is designed to be set. Then, the values of the registers stored and saved in the non-game stack area when the non-game-related processing is started are sequentially read from the non-game stack area in the reverse order of saving, and correspond to the order. By setting it in the register, all the registers are returned to the state when the non-game related processing was started. After that, by setting the value of the stack pointer SP saved in the predetermined area of the non-game RAM area when the non-game-related processing is started in the stack pointer SP, the stack is set to the state when the non-game-related processing is started. The pointer SP is returned to end the non-game-related processing.

Si12のステップにおいてフラグレジスタを復帰させた後は、Si11のステップにおける非遊技関連処理により設定されたセンサエラー参照データを参照し(Si13)、今回のタイマ割込における非遊技関連処理により設定されたセンサエラー参照データと、前回のタイマ割込における非遊技関連処理により設定されたセンサエラー参照データの論理和を算出する(Si14)。そして、RAM41cの遊技RAM領域の所定領域に設定されており、投入メダルセンサ31a〜31cや払出センサ34cに関する異常が検出されているか否かを特定可能なセンサエラーフラグを、Si14のステップで算出した論理和に基づいて更新する。Si13〜Si15のステップを行うことで、センサエラー参照データに基づいて異常が検出されていることが特定される場合には、センサエラーフラグが異常が検出されていることを示す状態であるか否かにかかわらず、当該異常が検出されている旨を示すように、センサエラーフラグを更新する。一方、センサエラー参照データに基づいて異常が検出されていないことが特定される場合には、センサエラーフラグの状態を維持する。すなわち、センサエラー参照データに基づいて異常が検出されていることが特定される場合には、センサエラー参照データの内容をセンサエラーフラグに反映させる一方で、センサエラー参照データに基づいて異常が検出されていないことや異常が解除されたことが特定される場合には、センサエラー参照データの内容をセンサエラーフラグに反映させないようになっている。 After returning the flag register in the step of Si12, the sensor error reference data set by the non-game-related processing in the step of Si11 is referred to (Si13), and is set by the non-game-related processing in the timer interrupt this time. The logical sum of the sensor error reference data and the sensor error reference data set by the non-game-related processing in the previous timer interrupt is calculated (Si14). Then, a sensor error flag, which is set in a predetermined area of the game RAM area of the RAM 41c and can identify whether or not an abnormality related to the input medal sensors 31a to 31c and the payout sensor 34c is detected, is calculated in the step of Si14. Update based on the logical sum. If it is specified that an abnormality has been detected based on the sensor error reference data by performing the steps Si13 to Si15, whether or not the sensor error flag is in a state indicating that an abnormality has been detected. Regardless, the sensor error flag is updated to indicate that the anomaly has been detected. On the other hand, when it is specified that no abnormality is detected based on the sensor error reference data, the state of the sensor error flag is maintained. That is, when it is specified that an abnormality is detected based on the sensor error reference data, the content of the sensor error reference data is reflected in the sensor error flag, while the abnormality is detected based on the sensor error reference data. When it is specified that the error has not been performed or the abnormality has been cleared, the content of the sensor error reference data is not reflected in the sensor error flag.

Si15のステップにおいてセンサエラーフラグを更新した後は、メイン制御部41の内部に設けられたウォッチドッグタイマ(WDT)のレジスタをクリアする(Si16)。その後、RAM41cの所定領域に設けられ、タイマ割込に含まれる処理を分岐させるための分岐用カウンタの値を所定のレジスタに読み込み、所定値(本実施例では、1)を加算して更新し、更新された値を、RAM41cの所定領域の分岐用カウンタの値として設定する(Si17)。この分岐用カウンタを更新する処理では、当該分岐用カウンタが0〜2である場合は1加算し、分岐用カウンタが3である場合は初期化して0に戻すことで、0〜3の範囲で更新する。すなわち分岐用カウンタの値は、タイマ割込処理(メイン)が実行される毎に、0→1→2→3→0・・・の順番でループする。そして、分岐用カウンタの値は、タイマ割込処理(メイン)において実行される各処理において参照され、例えば、分岐用カウンタが所定値となったときに所定の制御を実行するなど、各処理内の制御が分岐されることとなる。 After updating the sensor error flag in the step of Si15, the register of the watchdog timer (WDT) provided inside the main control unit 41 is cleared (Si16). After that, the value of the branching counter provided in the predetermined area of the RAM 41c for branching the processing included in the timer interrupt is read into the predetermined register, and the predetermined value (1 in this embodiment) is added and updated. , The updated value is set as the value of the branching counter in the predetermined area of the RAM 41c (Si17). In the process of updating the branch counter, if the branch counter is 0 to 2, 1 is added, and if the branch counter is 3, it is initialized and returned to 0, in the range of 0 to 3. Update. That is, the value of the branch counter loops in the order of 0 → 1 → 2 → 3 → 0 ... Each time the timer interrupt process (main) is executed. Then, the value of the branch counter is referred to in each process executed in the timer interrupt process (main), and in each process, for example, a predetermined control is executed when the branch counter reaches a predetermined value. Control will be branched.

Si17のステップにおいて分岐用カウンタを更新した後、当該分岐用カウンタが4であるか否かを判定し(Si18)、分岐用カウンタが4である場合には、分岐用カウンタが4である場合には、RAM41cの所定領域に設定されている所定の各種タイマを更新するカウンタ更新処理(Sj19)、出力ポートに接続された各種LEDなどの表示器(クレジット表示器11、遊技補助表示器12、1〜3BETLED14〜16、投入要求LED17、スタート有効LED18、ウェイト中LED19、リプレイ中LED20など)の点灯状態をメイン処理などの各処理による設定に応じてダイナミック点灯させるための点灯信号を設定して送信などを行うに制御するLEDダイナミック表示処理(Si20)を行う。 After updating the branch counter in the step of Si17, it is determined whether or not the branch counter is 4 (Si18), and if the branch counter is 4, the branch counter is 4. Is a counter update process (Sj19) for updating predetermined various timers set in a predetermined area of the RAM 41c, and indicators such as various LEDs connected to the output port (credit indicator 11, game auxiliary indicator 12, 1). ~ 3BETLED14-16, ON request LED17, Start effective LED18, Waiting LED19, Replaying LED20, etc.) are set and transmitted by setting a lighting signal to dynamically turn on the lighting state according to the setting by each processing such as main processing. The LED dynamic display process (Si20) that controls the operation is performed.

Si18のステップにおいて分岐用カウンタが4でないと判定した場合、およびSi20のステップにおいてLEDダイナミック表示処理を行った後は、外部出力信号のうちメダルが投入された旨を示すメダル投入信号やメダルの払い出しが行われる旨を示すメダル払出信号の出力設定を更新して、スロットマシン1の外部に送信する投入払出信号送信処理(Si21)、外部出力信号のうちセキュリティ信号(ドア開放信号、設定変更信号、投入エラー信号、払出エラー信号)の出力設定を更新して、スロットマシン1の外部に送信するセキュリティ信号送信処理(Si22)を行う。 When it is determined that the branch counter is not 4 in the step of Si18, and after the LED dynamic display processing is performed in the step of Si20, a medal insertion signal or a medal payout indicating that a medal has been inserted among the external output signals The output setting of the medal payout signal indicating that the above is performed is updated, and the input / payout signal transmission process (Si21) is transmitted to the outside of the slot machine 1. Among the external output signals, the security signal (door open signal, setting change signal, The output settings of the input error signal and the payout error signal) are updated, and the security signal transmission process (Si22) to be transmitted to the outside of the slot machine 1 is performed.

次に、外部出力信号を送信する出力ポート3出力処理(Si23)を行った後に、コマンドキューに設定されたドアコマンドや操作終了コマンドなどの各種コマンドを送信させるなどを行うコマンド送信処理(Si24)を順次行う。その後、ゲームの進行状況などに応じて各リールモータ32L、32C、32Rの励磁パターンの設定などを行ってリールの回転および停止を制御するリール制御処理を行う(Si25)次に、有効停止LED信号やMAXBETLED信号を送信する出力ポート2出力処理(Si26)を行い、遊技状態に関する情報を外部出力信号として送信する出力ポート7出力処理(Si27)を行う。 Next, after performing output port 3 output processing (Si23) for transmitting an external output signal, command transmission processing (Si24) for transmitting various commands such as a door command and an operation end command set in the command queue. Are performed in sequence. After that, the reel control process for controlling the rotation and stop of the reels is performed by setting the excitation patterns of the reel motors 32L, 32C, 32R according to the progress of the game (Si25). Next, the effective stop LED signal. And the output port 2 output process (Si26) for transmitting the MAXBETLED signal, and the output port 7 output process (Si27) for transmitting the information regarding the game state as an external output signal.

次に、リールモータ出力データを作成する(Si28)。リールモータ出力データは、リールモータ信号や流路切替ソレノイド信号を出力ポート0,1に出力させるための2バイトデータである。リールモータ出力データに基づき、リールモータ信号や流路切替ソレノイド信号を出力する出力ポート0,1出力処理(Si29)を行うとともに、作成されたリールモータ出力データをリールモータ状態データとして格納する。 Next, the reel motor output data is created (Si28). The reel motor output data is 2-byte data for outputting the reel motor signal and the flow path switching solenoid signal to the output ports 0 and 1. Based on the reel motor output data, the output port 0, 1 output process (Si29) for outputting the reel motor signal and the flow path switching solenoid signal is performed, and the created reel motor output data is stored as the reel motor state data.

そして、すべての表レジスタと裏レジスタを交換し(Si30)、割込許可設定をして(Si31)、タイマ割込処理(メイン)を終了させて、当該タイマ割込処理(メイン)が開始されたときのメイン処理に復帰させる。 Then, all the front and back registers are exchanged (Si30), interrupt permission is set (Si31), the timer interrupt process (main) is terminated, and the timer interrupt process (main) is started. It returns to the main processing at the time.

[リール停止制御処理における停止設定]
次に、図13,図14を用いて説明したリール停止制御処理における停止設定(リール停止滑りコマ格納処理)について、図17〜図19に示すタイミングチャートを用いて具体的に説明する。図17は、左ストップスイッチが操作されたときの状況を説明するものである。図18は、左ストップスイッチおよび中トップスイッチが1割込ずれて操作されたときの状況を説明するものである。図19は、左ストップスイッチおよび中ストップスイッチが同時押しされたときの状況を説明するものである。
[Stop setting in reel stop control processing]
Next, the stop setting (reel stop slip frame storage process) in the reel stop control process described with reference to FIGS. 13 and 14 will be specifically described with reference to the timing charts shown in FIGS. 17 to 19. FIG. 17 illustrates the situation when the left stop switch is operated. FIG. 18 illustrates a situation when the left stop switch and the middle top switch are operated with an interrupt of 1 interrupt. FIG. 19 illustrates a situation when the left stop switch and the middle stop switch are pressed at the same time.

まず、左ストップスイッチの操作されたときの処理について説明する。図17は、リール停止制御処理における停止設定を説明するためのタイミングチャート(その1)である。図17の説明においては、全てのリールが定速回転をしており、いずれのストップスイッチも操作されていないものとする。なお、説明の都合上、左ストップスイッチおよび中ストップスイッチの状態のみを図示する。 First, the processing when the left stop switch is operated will be described. FIG. 17 is a timing chart (No. 1) for explaining the stop setting in the reel stop control process. In the description of FIG. 17, it is assumed that all the reels are rotating at a constant speed and none of the stop switches are operated. For convenience of explanation, only the states of the left stop switch and the middle stop switch are shown.

前述のように、割込処理(タイマ割込み処理(メイン))において、ポート入力処理(Sj9)を実行する。これにより、ストップスイッチ(左,中,右ストップスイッチ)が操作がされた場合は、入力ポート0にストップスイッチ信号(左,中,右ストップスイッチ信号)が入力され、ポート入力バッファ0にこれらの信号の検出状態が格納される。 As described above, the port input process (Sj9) is executed in the interrupt process (timer interrupt process (main)). As a result, when the stop switch (left, middle, right stop switch) is operated, the stop switch signal (left, middle, right stop switch signal) is input to the input port 0, and these are input to the port input buffer 0. The signal detection status is stored.

ポート入力バッファ0には、今回の割込処理において検出されたストップスイッチ信号データや、ストップスイッチ信号のONエッジデータなどが格納されている。ストップスイッチ信号のONエッジデータは、前回の入力がOFF状態であるのに対して今回の入力がON状態である(ONエッジが検出された)ことを示すデータである。 The port input buffer 0 stores the stop switch signal data detected in the current interrupt process, the ON edge data of the stop switch signal, and the like. The ON edge data of the stop switch signal is data indicating that the current input is in the ON state (ON edge is detected) while the previous input is in the OFF state.

たとえば、前回の割込処理において左ストップスイッチ信号がOFF状態で入力され、今回の割込処理において左ストップスイッチ信号がON状態で入力された場合、今回の割込処理において、左ストップスイッチ信号のONエッジが検出され、ポート入力バッファ0に左ストップスイッチ信号のONエッジデータが格納される。 For example, if the left stop switch signal is input in the OFF state in the previous interrupt process and the left stop switch signal is input in the ON state in the current interrupt process, the left stop switch signal is input in the current interrupt process. The ON edge is detected, and the ON edge data of the left stop switch signal is stored in the port input buffer 0.

図17のt1以前においては、全てのリールが定速回転している状態であるため、メイン処理において停止制御処理が実行されている。そして、割込1回待ち処理(Sg2)において、待機状態となり、割込処理が実行されるのを待つ。 Before t1 in FIG. 17, since all the reels are rotating at a constant speed, the stop control process is executed in the main process. Then, in the interrupt one-time wait process (Sg2), the state becomes a standby state and waits for the interrupt process to be executed.

t1において割込処理の実行が開始されたとする。t2において、ボート入力処理が実行され、ストップスイッチのONエッジが発生した否かの入力判定を行う。t2においては、いずれのストップスイッチも操作されていない。このため、入力判定においては、いずれのストップスイッチのONエッジも検出されない。 It is assumed that the execution of the interrupt process is started at t1. At t2, the boat input process is executed, and an input determination is made as to whether or not the ON edge of the stop switch has occurred. At t2, none of the stop switches are operated. Therefore, in the input determination, the ON edge of any of the stop switches is not detected.

割込処理が終了すると、t3において、メイン処理内のリール停止制御処理が再開される。直近の割込処理においてONエッジが検出されなかったため、リール停止制御処理においては、有効なストップスイッチの操作がなかったものと判定され(Sg22でNO)、再び、ステップSg2において割込1回待ち処理が実行される。 When the interrupt process is completed, the reel stop control process in the main process is restarted at t3. Since the ON edge was not detected in the latest interrupt process, it was determined that there was no effective stop switch operation in the reel stop control process (NO in Sg22), and the interrupt was waited once again in step Sg2. The process is executed.

t4において、左ストップスイッチが操作されたとする。そして、t5において、割込処理が実行されたとする。t5において実行される割込処理は、t1において実行された割込処理の次の割込処理である。本実施の形態においては、割込処理は0.56msごとに実行されるため、t1とt5の間隔は0.56msである。 It is assumed that the left stop switch is operated at t4. Then, it is assumed that the interrupt process is executed at t5. The interrupt process executed at t5 is the next interrupt process after the interrupt process executed at t1. In the present embodiment, since the interrupt process is executed every 0.56 ms, the interval between t1 and t5 is 0.56 ms.

t6において、ボート入力処理が実行され、ストップスイッチのONエッジが発生した否かの入力判定を行う。入力判定においては、t4における左ストップスイッチの操作に基づき、左ストップスイッチのONエッジが検出される。 At t6, the boat input process is executed, and an input determination is made as to whether or not the ON edge of the stop switch has occurred. In the input determination, the ON edge of the left stop switch is detected based on the operation of the left stop switch at t4.

割込処理が終了すると、t7において、メイン処理内のリール停止制御処理が再開される。割込処理において、左ストップスイッチの操作に基づく左ストップスイッチ信号のONエッジが検出されたため、割込処理後のメイン処理において、左リールの停止位置を設定するためのリール停止滑りコマ格納処理(Sg32)を実行する。ここで、左リールの停止位置を設定するためのリール停止滑りコマ格納処理を「リール停止滑りコマ格納処理(左)」とも称し、中リールの停止位置を設定するためのリール停止滑りコマ格納処理を「リール停止滑りコマ格納処理(中)」とも称し、右リールの停止位置を設定するためのリール停止滑りコマ格納処理を「リール停止滑りコマ格納処理(右)」とも称する。 When the interrupt process is completed, the reel stop control process in the main process is restarted at t7. Since the ON edge of the left stop switch signal based on the operation of the left stop switch was detected in the interrupt process, the reel stop slip frame storage process for setting the stop position of the left reel in the main process after the interrupt process ( Sg32) is executed. Here, the reel stop slip piece storage process for setting the stop position of the left reel is also referred to as "reel stop slide piece storage process (left)", and the reel stop slide piece storage process for setting the stop position of the middle reel is also referred to. Is also referred to as "reel stop slip piece storage process (middle)", and the reel stop slide piece storage process for setting the stop position of the right reel is also referred to as "reel stop slide piece storage process (right)".

そして、リール停止滑りコマ格納処理(左)を開始した後、リール停止滑りコマ格納処理(左)が完了するまでの間、新たな割込処理の実行を禁止する(Sg28において割込禁止設定がされている)。リール停止滑りコマ格納処理(左)が完了した後は、左リールの停止が最終停止でないため、Sg2に戻り、割込1回待ち処理を行う。これにより、t8において、割込処理が実行可能となる。 Then, after the reel stop slip frame storage process (left) is started, the execution of a new interrupt process is prohibited until the reel stop slide frame storage process (left) is completed (interrupt prohibition setting is set in Sg28). Has been). After the reel stop slip frame storage process (left) is completed, since the stop of the left reel is not the final stop, the process returns to Sg2 and the interrupt process is performed once. As a result, the interrupt process can be executed at t8.

そして、t9において割込処理が実行されたとする。t10における入力判定において、左ストップスイッチは押下状態(ON状態を継続)であるため、左ストップスイッチのONエッジは検出されない。また、中,右ストップスイッチも操作されていないため、中,右ストップスイッチのONエッジも検出されない。 Then, it is assumed that the interrupt process is executed at t9. In the input determination at t10, since the left stop switch is in the pressed state (continuing the ON state), the ON edge of the left stop switch is not detected. Also, since the middle and right stop switches are not operated, the ON edge of the middle and right stop switches is not detected.

そして、割込処理が終了して、t11においてメイン処理に戻った後に再開されるリール停止制御処理においては、ストップスイッチ信号のONエッジが検出されなかったため(Sg22でNO)は、Sg2に戻り、割込1回待ち処理を行う。そして、t12において割込処理が実行される。以降、ストップスイッチ信号のONエッジが検出されるまで、処理を繰り返し、ストップスイッチ信号のONエッジが検出されるのを待つ。図17の例では、新たなストップスイッチの操作が行われないため、t12〜t15の処理、および、t15〜t18の処理は、t9〜t12の処理と同じである。 Then, in the reel stop control process restarted after the interrupt process is completed and the process returns to the main process at t11, the ON edge of the stop switch signal is not detected (NO in Sg22), so the process returns to Sg2. Waits for one interrupt. Then, the interrupt process is executed at t12. After that, the process is repeated until the ON edge of the stop switch signal is detected, and the process is waited for the ON edge of the stop switch signal to be detected. In the example of FIG. 17, since the operation of the new stop switch is not performed, the processing of t12 to t15 and the processing of t15 to t18 are the same as the processing of t9 to t12.

次に、左ストップスイッチおよび中ストップスイッチが1割込ずれて操作されたときの処理について説明する。図18は、リール停止制御処理における停止設定を説明するためのタイミングチャート(その2)である。図18の説明においても、全てのリールが定速回転をしており、いずれのストップスイッチも操作されていないとする。なお、説明の都合上、左ストップスイッチおよび中ストップスイッチの状態のみを図示し、図17と共通する箇所については説明を省略する。 Next, the processing when the left stop switch and the middle stop switch are operated with a deviation of 1 interrupt will be described. FIG. 18 is a timing chart (No. 2) for explaining the stop setting in the reel stop control process. Also in the description of FIG. 18, it is assumed that all the reels are rotating at a constant speed and none of the stop switches are operated. For convenience of explanation, only the states of the left stop switch and the middle stop switch are shown, and the description of the parts common to FIG. 17 will be omitted.

図18のt1〜t7までの状況は、図17のt1〜t7までの状況と同じである。すなわち、t4において左ストップスイッチが操作されると、t6の入力判定において、左ストップスイッチのONエッジが検出され、これにより、リール停止制御処理においてリール停止滑りコマ格納処理(左)が実行されるとともに割込禁止状態となる。リール停止滑りコマ格納処理(左)が完了した後は、t9において、割込処理が実行可能となる。 The situation from t1 to t7 in FIG. 18 is the same as the situation from t1 to t7 in FIG. That is, when the left stop switch is operated at t4, the ON edge of the left stop switch is detected in the input determination of t6, and the reel stop slip frame storage process (left) is executed in the reel stop control process. At the same time, interruption is prohibited. After the reel stop sliding frame storage process (left) is completed, the interrupt process can be executed at t9.

図18においては、図17の状況と異なり、t8において、中ストップスイッチが操作されたとする。t10において新たな割込処理が実行されると、t11において中ストップスイッチの操作に基づく中ストップスイッチ信号のONエッジが検出される。中ストップスイッチ信号のONエッジは、左ストップスイッチ信号のONエッジから1割込分ずれて検出されている。なお、左ストップスイッチは押下状態が継続されるため左ストップスイッチのONエッジは検出されず、中ストップスイッチは操作されていないため中ストップスイッチのONエッジも検出されない。 In FIG. 18, unlike the situation of FIG. 17, it is assumed that the middle stop switch is operated at t8. When a new interrupt process is executed at t10, the ON edge of the middle stop switch signal based on the operation of the middle stop switch is detected at t11. The ON edge of the middle stop switch signal is detected with a deviation of 10 interrupts from the ON edge of the left stop switch signal. Since the left stop switch is continuously pressed, the ON edge of the left stop switch is not detected, and the ON edge of the middle stop switch is not detected because the middle stop switch is not operated.

t12において、メイン処理に戻った後にリール停止制御処理が再開される。リール停止滑りコマ格納処理(左)が実行された後の、新たな割込処理後のメイン処理において、リール回転エラーが発生しているか否かを判定する(Sg6)。リール回転エラーが発生している場合、エラー処理(Sg9)を実行する。 At t12, the reel stop control process is restarted after returning to the main process. It is determined whether or not a reel rotation error has occurred in the main process after the new interrupt process after the reel stop slip frame storage process (left) is executed (Sg6). If a reel rotation error has occurred, error processing (Sg9) is executed.

リール回転エラーが発生した場合、エラー状態が解除されない限りは、エラー処理を終了することができない。このため、新たな割込処理に基づいてリール停止滑りコマ格納処理(中)を実行することができない。リール回転エラーが発生していない(リールが正常に回転している)と判定した場合に、新たな割込処理に基づいてリール停止滑りコマ格納処理(中)を実行することが可能である。 When a reel rotation error occurs, error processing cannot be terminated unless the error state is cleared. Therefore, the reel stop slip frame storage process (middle) cannot be executed based on the new interrupt process. When it is determined that the reel rotation error has not occurred (the reel is rotating normally), it is possible to execute the reel stop slip frame storage process (middle) based on the new interrupt process.

リールが正常に回転している場合(Sg6でYES)、有効なストップスイッチの操作があったか否かを判定する(Sg22)。ステップSg22においては、中ストップスイッチ信号のONエッジが検出されているため(Sg22でYES)、中リールの停止位置を設定するためのリール停止滑りコマ格納処理(中)(Sg32)が実行される。また、リール停止滑りコマ格納処理(中)中おいては割込禁止状態となり、リール停止滑りコマ格納処理(中)が完了した後は、t13において、割込処理が実行可能となる。以降の処理は、図17と同様であるため、説明を省略する。 When the reel is rotating normally (YES in Sg6), it is determined whether or not a valid stop switch operation has been performed (Sg22). In step Sg22, since the ON edge of the middle stop switch signal is detected (YES in Sg22), the reel stop slip piece storage process (middle) (Sg32) for setting the stop position of the middle reel is executed. .. Further, the interrupt prohibition state is set during the reel stop slip frame storage process (middle), and after the reel stop slide frame storage process (middle) is completed, the interrupt process can be executed at t13. Since the subsequent processing is the same as that in FIG. 17, the description thereof will be omitted.

以上説明したように、リール停止滑りコマ格納処理(左)を開始した後、リール停止滑りコマ格納処理(左)が完了するまで新たな割込処理の実行を禁止するため、新たな割込処理の実行により、中ストップスイッチの操作に基づくリール停止滑りコマ格納処理(中)が実行されることがない。また、仮に、割込処理において、左ストップスイッチ信号および中ストップスイッチ信号のONエッジがともに検出された場合であっても、左ストップスイッチに関する処理を行い、中ストップスイッチに関する処理は行わない(Sg25で停止対象とならない)ため、リール停止滑りコマ格納処理(左)とリール停止滑りコマ格納処理(中)とが同時に実行されることはない。このようにすることで、左ストップスイッチの操作に基づくリール停止滑りコマ格納処理(左)が完了する前に中ストップスイッチの操作に基づくリール停止滑りコマ格納処理(中)が実行されることを防止することができる。 As described above, after the reel stop slip frame storage process (left) is started, the execution of the new interrupt process is prohibited until the reel stop slide frame storage process (left) is completed, so that a new interrupt process is performed. By executing, the reel stop slip frame storage process (middle) based on the operation of the middle stop switch is not executed. Further, even if the ON edge of both the left stop switch signal and the middle stop switch signal is detected in the interrupt process, the process related to the left stop switch is performed and the process related to the middle stop switch is not performed (Sg25). The reel stop slip piece storage process (left) and the reel stop slide piece storage process (middle) are not executed at the same time. By doing so, the reel stop slip piece storage process (middle) based on the operation of the middle stop switch is executed before the reel stop slip piece storage process (left) based on the operation of the left stop switch is completed. Can be prevented.

また、新たな割込処理後のメイン処理において、リール回転エラーが発生しているか否かを判定し、リール回転エラーが発生している場合、新たな割込処理に基づいてリール停止滑りコマ格納処理(中)を実行せず、リール回転エラーが発生していないと判定した場合に、新たな割込処理に基づいてリール停止滑りコマ格納処理(中)を実行する。このようにすることで、リールの回転が正常であることを条件に、中ストップスイッチの操作に基づくリール停止滑りコマ格納処理(中)が実行されることを担保することができる。このように、リールの停止位置を設定するためのリール停止滑りコマ格納処理を連続的に実行する場合に、好適にリール停止滑りコマ格納処理を実行することができる。 Further, in the main process after the new interrupt process, it is determined whether or not a reel rotation error has occurred, and if a reel rotation error has occurred, the reel stop slip piece is stored based on the new interrupt process. When it is determined that the reel rotation error has not occurred without executing the process (middle), the reel stop slip frame storage process (middle) is executed based on the new interrupt process. By doing so, it is possible to ensure that the reel stop slip piece storage process (middle) based on the operation of the middle stop switch is executed on condition that the reel rotation is normal. In this way, when the reel stop slip piece storage process for setting the reel stop position is continuously executed, the reel stop slide piece storage process can be preferably executed.

また、以上説明したように、左リールおよび中リールがともに回転している場合の所定の割込処理(t5)において、左ストップスイッチ信号のONエッジが検出された(t6)場合、所定の割込処理後のメイン処理(t7)において、リール停止滑りコマ格納処理(左)を実行する。また、所定の割込処理の後の割込処理(t10)において、中ストップスイッチ信号のONエッジが検出された(t11)場合、当該割込処理後のメイン処理(t12)において、リール停止滑りコマ格納処理(中)を実行する。 Further, as described above, when the ON edge of the left stop switch signal is detected in the predetermined interrupt processing (t5) when both the left reel and the middle reel are rotating (t6), the predetermined interrupt processing is performed. In the main process (t7) after the interrupt process, the reel stop slip frame storage process (left) is executed. Further, when the ON edge of the middle stop switch signal is detected in the interrupt process (t10) after the predetermined interrupt process (t11), the reel stop slip is performed in the main process (t12) after the interrupt process. Execute the frame storage process (middle).

このように、一の割込処理でもずれて左ストップスイッチ信号および中ストップスイッチ信号のONエッジが検出された場合には、左リールおよび中リールが停止可能となるため、速やかにリールを停止させることができる。 In this way, if the ON edge of the left stop switch signal and the middle stop switch signal is detected even with one interrupt process, the left reel and the middle reel can be stopped, so the reels are stopped promptly. be able to.

また、ステップSg35において、リール停止滑りコマ格納処理(左)を完了した後、リール停止コマンド送信処理を実行している。そして、リール停止コマンド送信処理において、リール停止滑りコマ格納処理(左)により設定された左リールの停止位置を示すリール停止位置コマンドを出力する。 Further, in step Sg35, after completing the reel stop slip frame storage process (left), the reel stop command transmission process is executed. Then, in the reel stop command transmission process, a reel stop position command indicating the stop position of the left reel set by the reel stop slide frame storage process (left) is output.

リール停止コマンド送信処理により、左リールの停止位置を示すリール停止位置コマンドを出力するための設定が完了するまで、割込処理の実行を禁止している(Sg28において割込禁止設定がされている)。このようにすることで、リール停止位置コマンドの送信が完了する前に新たなストップスイッチの操作に基づく処理が行われない。 The execution of the interrupt process is prohibited until the setting for outputting the reel stop position command indicating the stop position of the left reel is completed by the reel stop command transmission process (interrupt prohibition setting is set in Sg28). ). By doing so, the process based on the operation of the new stop switch is not performed before the transmission of the reel stop position command is completed.

また、リール停止コマンド送信処理を実行する際には、複数のコマンドを送信するための送信処理が実行される。具体的には、リール停止受付け時コマンドを送信するためのリール停止受付け時コマンド送信処理(Sg33)、滑りコマ数コマンドを送信するための滑りコマ数コマンド送信処理(Sg34)、リール停止コマンドを送信するためのリール停止コマンド送信処理(Sg38)がそれぞれ実行される。 Further, when the reel stop command transmission process is executed, the transmission process for transmitting a plurality of commands is executed. Specifically, the reel stop acceptance command transmission process (Sg33) for transmitting the reel stop acceptance command, the slip frame number command transmission process (Sg34) for transmitting the slip frame number command, and the reel stop command are transmitted. The reel stop command transmission process (Sg38) for the operation is executed respectively.

また、これらのコマンドを出力するための設定が完了するまで、割込処理の実行を禁止している(Sg28において割込禁止設定がされている)。このように、複数のコマンドを出力するための設定が完了するまでに、割込処理により意図しないコマンドが出力されたり、複数のコマンド間で送信間隔が大きく空くことを防止することができる。 Further, the execution of the interrupt process is prohibited until the setting for outputting these commands is completed (interrupt prohibition setting is set in Sg28). In this way, it is possible to prevent an unintended command from being output by the interrupt process or a large transmission interval between the plurality of commands before the setting for outputting the plurality of commands is completed.

また、リール停止滑りコマ格納処理(中)(Sg32)を実行する際には、リール停止滑りコマ格納処理(左)により設定された左リールの停止位置に基づいて、中リールの停止位置を設定する。このように、中リールの停止位置は左リールの停止位置に基づいて設定されるため、導出される図柄組合せが多様になる。 Further, when executing the reel stop slip piece storage process (middle) (Sg32), the stop position of the middle reel is set based on the stop position of the left reel set by the reel stop slide piece storage process (left). To do. In this way, since the stop position of the middle reel is set based on the stop position of the left reel, the symbol combinations to be derived are diverse.

また、上記で説明した例は、左リールの停止が第1停止であり、中リールの停止が第2停止である例について説明したが、これに限らず、いずれのリールが第1停止であってもよく、いずれのリールが第2停止であってもよい。また、第1停止および第2停止の組合せに限らず、第2停止および第3停止の組合せであっても、図18で説明したような動きになる。 Further, in the example described above, the stop of the left reel is the first stop and the stop of the middle reel is the second stop, but the present invention is not limited to this, and any reel is the first stop. Either reel may be the second stop. Further, not only the combination of the first stop and the second stop, but also the combination of the second stop and the third stop causes the movement as described with reference to FIG.

また、たとえば、中リールの停止が第3停止であって、中リールが停止することで図柄組合せが導出される場合であっても、リール停止滑りコマ格納処理(中)を開始した後、リール停止滑りコマ格納処理(中)が完了する(Sg32)まで、新たな割込処理の実行を禁止する(Sg28において割込禁止設定がされている)。このように、リール停止滑りコマ格納処理の実行中に他の処理が実行されないため、速やかにリールを停止させる制御を行うことができる。 Further, for example, even when the stop of the middle reel is the third stop and the symbol combination is derived by stopping the middle reel, after starting the reel stop slip piece storage process (middle), the reel Execution of a new interrupt process is prohibited until the stop slip frame storage process (middle) is completed (Sg32) (interrupt prohibition is set in Sg28). As described above, since other processes are not executed during the execution of the reel stop sliding frame storage process, it is possible to control the reels to be stopped promptly.

次に、左ストップスイッチおよび中ストップスイッチが同時押しされたとき処理について説明する。図19は、リール停止制御処理における停止設定を説明するためのタイミングチャート(その3)である。図19の説明においても、全てのリールが定速回転をしており、いずれのストップスイッチも操作されていないとする。なお、説明の都合上、左ストップスイッチおよび中ストップスイッチの状態のみを図示し、図17と共通する箇所については説明を省略する。 Next, the processing when the left stop switch and the middle stop switch are pressed at the same time will be described. FIG. 19 is a timing chart (No. 3) for explaining the stop setting in the reel stop control process. Also in the description of FIG. 19, it is assumed that all the reels are rotating at a constant speed and none of the stop switches are operated. For convenience of explanation, only the states of the left stop switch and the middle stop switch are shown, and the description of the parts common to FIG. 17 will be omitted.

図19においては、図17の状況と異なり、t4において、左ストップスイッチおよび中ストップスイッチが同時に操作されたとする。この場合、当該操作の後に実行される割込処理(t5)において、左ストップスイッチ信号および中ストップスイッチ信号のONエッジが検出される(t6)。この割込処理後のメイン処理(t7)において、有効なストップスイッチ操作状態のみが抽出される(Sg21)。 In FIG. 19, unlike the situation of FIG. 17, it is assumed that the left stop switch and the middle stop switch are operated at the same time at t4. In this case, in the interrupt process (t5) executed after the operation, the ON edge of the left stop switch signal and the middle stop switch signal is detected (t6). In the main process (t7) after this interrupt process, only the valid stop switch operation state is extracted (Sg21).

左ストップスイッチ信号および中ストップスイッチ信号のONエッジがともに検出された場合、左リールが停止対象となる(Sg25)。これにより、リール停止滑りコマ格納処理(左)(Sg34)が実行される。一方で、中リールが停止対象とならないため、リール停止滑りコマ格納処理(中)は実行されない。 When both the ON edge of the left stop switch signal and the middle stop switch signal are detected, the left reel is the stop target (Sg25). As a result, the reel stop sliding frame storage process (left) (Sg34) is executed. On the other hand, since the middle reel is not a stop target, the reel stop slip frame storage process (middle) is not executed.

また、この場合、次の割込処理(t10)においても、中ストップスイッチ信号は、ON状態を検出される。しかし、ON状態が2回連続検出されるため、中ストップスイッチ信号はONエッジとして検出されない。このため、この割込処理後のメイン処理(t12)において、有効なストップスイッチ操作状態として抽出されることはなく(Sg21)、中ストップスイッチの操作が有効な操作として判定されることはない(Sg22でNO)。 Further, in this case, the middle stop switch signal is also detected in the ON state in the next interrupt process (t10). However, since the ON state is continuously detected twice, the middle stop switch signal is not detected as an ON edge. Therefore, in the main process (t12) after the interrupt process, the operation of the middle stop switch is not determined as an effective operation (Sg21). NO with Sg22).

しかし、一の割込処理でもずれて左ストップスイッチ信号および中ストップスイッチ信号のONエッジが検出された場合には左リールおよび中リールが停止可能となるため、速やかにリールを停止させることができる。 However, if the ON edge of the left stop switch signal and the middle stop switch signal is detected even in one interrupt process, the left reel and the middle reel can be stopped, so that the reels can be stopped promptly. ..

その後、t13において、左ストップスイッチおよび中ストップスイッチの押下状態が解除されたとする。そして、t18において、再び左ストップスイッチおよび中ストップスイッチが同時押し(同時に操作)されたとする。 After that, at t13, it is assumed that the pressed state of the left stop switch and the middle stop switch is released. Then, at t18, it is assumed that the left stop switch and the middle stop switch are simultaneously pressed (operated at the same time) again.

この場合、次の割込処理(t19)において、左ストップスイッチおよび中ストップスイッチ信号は、ともにONエッジが検出される(t20)。この割込処理後のメイン処理(t21)においては、左リールは既にリール停止滑りコマ格納処理(左)を実行しているため、有効なストップスイッチ操作状態として抽出されない。一方で、中リールはリール停止滑りコマ格納処理(中)を実行していないため、有効なストップスイッチ操作状態として抽出される。 In this case, in the next interrupt process (t19), the ON edge of both the left stop switch and the middle stop switch signal is detected (t20). In the main process (t21) after this interrupt process, since the left reel has already executed the reel stop slip frame storage process (left), it is not extracted as an effective stop switch operation state. On the other hand, since the middle reel does not execute the reel stop slip frame storage process (middle), it is extracted as an effective stop switch operation state.

このため、ステップSg22において、中ストップスイッチの操作が有効な操作として判定される(Sg22でNO)ことになる。これにより、リール停止滑りコマ格納処理(中)が実行される。 Therefore, in step Sg22, the operation of the middle stop switch is determined as an effective operation (NO in Sg22). As a result, the reel stop sliding frame storage process (middle) is executed.

以上説明したように、左リールおよび中リールがともに回転している場合の所定の割込処理において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、所定の割込処理後のメイン処理において、リール停止滑りコマ格納処理(左)を実行する一方で、リール停止滑りコマ格納処理(中)を実行しない。この状態において、後の割込処理において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出されたとする。この場合、既にリール停止滑りコマ格納処理(左)が実行されているため、割込処理後のメイン処理において、リール停止滑りコマ格納処理(中)を実行する一方で、リール停止滑りコマ格納処理(左)を実行しない。このように、左ストップスイッチおよび中ストップスイッチが同時に操作された場合に、回転中のリールが停止することになるため、ストップスイッチの操作性を損ねない。 As described above, when the ON edge of the left stop switch signal and the ON edge of the left stop switch signal are detected in the predetermined interrupt process when both the left reel and the middle reel are rotating, the predetermined interrupt process is performed. In the main process after the interrupt process, the reel stop slip frame storage process (left) is executed, but the reel stop slide frame storage process (middle) is not executed. In this state, it is assumed that the ON edge of the left stop switch signal and the ON edge of the left stop switch signal are detected in the subsequent interrupt process. In this case, since the reel stop slip frame storage process (left) has already been executed, the reel stop slide frame storage process (middle) is executed in the main process after the interrupt process, while the reel stop slip frame storage process is executed. Do not execute (left). In this way, when the left stop switch and the middle stop switch are operated at the same time, the rotating reel is stopped, so that the operability of the stop switch is not impaired.

次に、上記のように左リールおよび中リールがともに回転している例とは異なり、左リールが停止しかつ中リールが回転している例について説明する。この場合において、t4のように左ストップスイッチおよび中ストップスイッチの同時押しが行われたとする。 Next, unlike the example in which both the left reel and the middle reel are rotating as described above, an example in which the left reel is stopped and the middle reel is rotating will be described. In this case, it is assumed that the left stop switch and the middle stop switch are simultaneously pressed as in t4.

この場合の割込処理(t5)において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出される(t6)。割込処理後のメイン処理(t7)においては、左リールは停止しているため、有効なストップスイッチ操作状態として抽出されない。一方で、中リールは回転しているため、有効なストップスイッチ操作状態として抽出される。これにより、リール停止滑りコマ格納処理(中)が実行されることになる。 In the interrupt process (t5) in this case, the ON edge of the left stop switch signal and the ON edge of the left stop switch signal are detected (t6). In the main process (t7) after the interrupt process, since the left reel is stopped, it is not extracted as an effective stop switch operation state. On the other hand, since the middle reel is rotating, it is extracted as an effective stop switch operating state. As a result, the reel stop sliding frame storage process (middle) is executed.

次に、中リールが停止しかつ左リールが回転している例について説明する。この場合において、t4のように左ストップスイッチおよび中ストップスイッチの同時押しが行われたとする。 Next, an example in which the middle reel is stopped and the left reel is rotating will be described. In this case, it is assumed that the left stop switch and the middle stop switch are simultaneously pressed as in t4.

この場合の割込処理(t5)において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出される(t6)。割込処理後のメイン処理(t7)においては、中リールは停止しているため、有効なストップスイッチ操作状態として抽出されない。一方で、左リールは回転しているため、有効なストップスイッチ操作状態として抽出される。これにより、リール停止滑りコマ格納処理(左)が実行されることになる。 In the interrupt process (t5) in this case, the ON edge of the left stop switch signal and the ON edge of the left stop switch signal are detected (t6). In the main process (t7) after the interrupt process, since the middle reel is stopped, it is not extracted as an effective stop switch operation state. On the other hand, since the left reel is rotating, it is extracted as an effective stop switch operation state. As a result, the reel stop sliding frame storage process (left) is executed.

このように、同一割込処理において複数のストップスイッチ信号のONエッジが検出されたとしても、回転中のリールのリール停止滑りコマ格納処理が実行されるため、操作性を損ねることがない。 As described above, even if the ON edges of a plurality of stop switch signals are detected in the same interrupt process, the reel stop slip frame storage process of the rotating reel is executed, so that the operability is not impaired.

次に、図柄ステップ数の取得処理について説明する。たとえば、割込処理において左ストップスイッチ信号のONエッジが検出されたとする。割込処理後のメイン処理では、ステップSg29において、左リールのステップ数を取得する。そして、左リールの位置が、左リールの各図柄のステップ数における所定の範囲内(本実施の形態では、11ステップ)になったとき(Sg30でYES)、図柄に対応する図柄番号を取得し、取得した図柄番号に基づいてリール停止滑りコマ格納処理(左)を実行する。 Next, the process of acquiring the number of symbol steps will be described. For example, suppose that the ON edge of the left stop switch signal is detected in the interrupt process. In the main process after the interrupt process, the number of steps on the left reel is acquired in step Sg29. Then, when the position of the left reel falls within a predetermined range (11 steps in the present embodiment) in the number of steps of each symbol on the left reel (YES in Sg30), the symbol number corresponding to the symbol is acquired. , The reel stop sliding frame storage process (left) is executed based on the acquired symbol number.

上記処理においては、左リールの位置が、左リールの各図柄のステップ数における所定の範囲内になるまでは、ステップSg28〜Sg31の処理を繰り返し実行する。本実施の形態においては、11ステップの位置になるまで待って、11ステップの位置になったときに、図柄番号を取得し、取得した図柄番号に基づいてリール停止滑りコマ格納処理(左)を実行することになる。仮にこの間に、中ストップスイッチ信号のONエッジが検出されたとしても中ストップスイッチ信号のONエッジを受付けることがない。このようにすることで、リール停止滑りコマ格納処理を11ステップの位置において実行可能となる。 In the above process, the processes of steps Sg28 to Sg31 are repeatedly executed until the position of the left reel falls within a predetermined range in the number of steps of each symbol on the left reel. In the present embodiment, it waits until the position of 11 steps is reached, and when the position of 11 steps is reached, the symbol number is acquired, and the reel stop sliding frame storage process (left) is performed based on the acquired symbol number. Will be executed. Even if the ON edge of the middle stop switch signal is detected during this period, the ON edge of the middle stop switch signal is not accepted. By doing so, the reel stop sliding frame storage process can be executed at the position of 11 steps.

また、スタートスイッチ7が操作され、内部抽選処理(Sc7)が実行されると、当選情報出力処理(Sc10)において、内部当選信号を出力するための処理が実行される。内部当選信号は、所定時間(本実施の形態においては、2秒)出力される。すなわち、内部当選信号は、スタートスイッチ7の操作に基づき2秒に亘って出力する制御が行なわれる。 Further, when the start switch 7 is operated and the internal lottery process (Sc7) is executed, the process for outputting the internal winning signal is executed in the winning information output process (Sc10). The internal winning signal is output for a predetermined time (2 seconds in this embodiment). That is, the internal winning signal is controlled to be output for 2 seconds based on the operation of the start switch 7.

また、内部当選信号の出力中は、ストップスイッチ8L,8C,8Rは有効にならない。具体的に説明すると、リール停止制御処理において、内部当選信号出力タイマを取得し(Sg10)、ステップSg11において内部当選信号出力タイマが0になるまで(すなわち、2秒経過するまで)次の処理に進むことができない。このため、ストップスイッチの操作が行われたとしても、有効なストップスイッチの操作があるか否かの判定(Sg22)が行われない。 Further, the stop switches 8L, 8C, and 8R are not effective while the internal winning signal is being output. Specifically, in the reel stop control process, the internal winning signal output timer is acquired (Sg10), and in step Sg11, until the internal winning signal output timer becomes 0 (that is, until 2 seconds have elapsed), the next process is performed. I can't proceed. Therefore, even if the stop switch is operated, it is not determined whether or not there is an effective stop switch operation (Sg22).

内部当選信号が出力されてから、2秒経過した場合は、内部当選信号出力タイマが0となり(Sg11でYES)、次の処理に進むことができる。これにより、有効なストップスイッチの操作があるか否かの判定(Sg22)が可能となり、ストップスイッチのONエッジが検出された場合には、リール停止滑りコマ格納処理(Sg32)を実行することができるようになる。すなわち、内部当選信号が出力されてから2秒経過したことを条件に、ストップスイッチ8L,8C,8Rの操作が有効化される。このようにすることで、外部装置(試験装置)において内部当選信号の内容を確認可能にした上で、リールが停止可能となる。 When 2 seconds have passed since the internal winning signal was output, the internal winning signal output timer becomes 0 (YES in Sg11), and the process can proceed to the next process. As a result, it is possible to determine whether or not there is an effective stop switch operation (Sg22), and when the ON edge of the stop switch is detected, the reel stop slip piece storage process (Sg32) can be executed. become able to. That is, the operation of the stop switches 8L, 8C, and 8R is enabled on condition that 2 seconds have passed since the internal winning signal was output. By doing so, the contents of the internal winning signal can be confirmed by the external device (test device), and then the reel can be stopped.

また、次にリールモータ信号の出力について説明する。リールモータに対するリールモータ信号(第1〜第3リールモータφ0〜φ3信号)を出力させることで、リールが駆動する。これにより、リールの回転を開始させたりリールを停止させることができる。 Next, the output of the reel motor signal will be described. The reel is driven by outputting the reel motor signal (first to third reel motor φ0 to φ3 signal) to the reel motor. As a result, the rotation of the reel can be started or the reel can be stopped.

リール停止制御処理においては、全てのリールに対してリール停止滑りコマ格納処理(Sg32)が実行された場合、すなわち、ステップSg39において最終停止であることが判断された場合(Sg39でYES)、リールモータ信号に基づくリールモータ状態を取得する(Sg41)。 In the reel stop control process, when the reel stop slip frame storage process (Sg32) is executed for all reels, that is, when it is determined in step Sg39 that the final stop is performed (YES in Sg39), the reels. Acquires the reel motor state based on the motor signal (Sg41).

そして、取得したリールモータ状態データに基づき、全てのリールモータがOFF状態であるかを判定する(Sg42)。すなわち、リールモータに対してリールモータ信号が出力されているか否かを判定することに基づいて、全てのリールが停止したか否かを判定する。このようにすることで、リールが停止したことをリールモータ信号の出力状況に基づいて判断することができる。 Then, based on the acquired reel motor state data, it is determined whether or not all the reel motors are in the OFF state (Sg42). That is, it is determined whether or not all the reels have stopped based on determining whether or not the reel motor signal is output to the reel motor. By doing so, it is possible to determine that the reel has stopped based on the output status of the reel motor signal.

また、図5に示したように、出力ポート0および出力ポート1からは、リールモータ信号および流路切替ソレノイド信号が出力される。なお、出力ポート0および出力ポート1からは、これらの信号以外の信号は出力されない。 Further, as shown in FIG. 5, a reel motor signal and a flow path switching solenoid signal are output from the output port 0 and the output port 1. No signals other than these signals are output from the output port 0 and the output port 1.

流路切替ソレノイド30は、投入されたメダルの流路を切り替えるブロッカのソレノイドである。流路切替ソレノイド30は、遊技開始待ち処理におけるメダル投入信号処理においてON状態に設定される。また、操作入力受付処理においてスタートスイッチ7の操作が検出されたことに基づき、OFF状態に設定される。すなわち、スタートスイッチ7の操作に基づきリールの回転を開始させるときには、流路切替ソレノイド信号の出力は停止状態となる。そして、リール停止制御処理中は、流路切替ソレノイド信号の出力は常に停止状態となる。 The flow path switching solenoid 30 is a solenoid of a blocker that switches the flow path of the inserted medal. The flow path switching solenoid 30 is set to the ON state in the medal insertion signal processing in the game start waiting processing. Further, the OFF state is set based on the fact that the operation of the start switch 7 is detected in the operation input reception process. That is, when the rotation of the reel is started based on the operation of the start switch 7, the output of the flow path switching solenoid signal is stopped. Then, during the reel stop control process, the output of the flow path switching solenoid signal is always in the stopped state.

このため、全てのリールモータがOFF状態であるかを判定する処理(Sg42)においては、流路切替ソレノイド信号は必ずOFF状態になっている。先に説明したとおり、出力ポート0および出力ポート1からは、リールモータ信号および流路切替ソレノイド信号のみが出力される構成となっている。このため、本実施の形態においては、出力ポート0および出力ポート1の出力状態に基づき設定されたリールモータ状態データに基づき、全てのリールモータがOFF状態であると判定する(Sg42でYES)処理を行うようにしている。 Therefore, in the process (Sg42) of determining whether all the reel motors are in the OFF state, the flow path switching solenoid signal is always in the OFF state. As described above, only the reel motor signal and the flow path switching solenoid signal are output from the output port 0 and the output port 1. Therefore, in the present embodiment, all reel motors are determined to be in the OFF state (YES in Sg42) based on the reel motor state data set based on the output states of the output port 0 and the output port 1. I try to do.

具体的には、リールモータ状態データは、第1〜第3リールモータφ0〜φ3信号および流路切替ソレノイド信号の出力状態に対応する2バイトデータ(16ビットデータ)である。これらのいずれかの信号が出力されている場合は、対応する各ビットが1になる。逆に言えば、いずれの信号も出力されていない場合には、全てのビットが0になるため、リールモータ状態データは0になる。つまり、全てのリールモータがOFF状態であるときには、全てのリールモータ信号に対応するビットが0になるとともに、流路切替ソレノイド信号に対応するビットも0となり、結果として、リールモータ状態データは0になる。 Specifically, the reel motor state data is 2-byte data (16-bit data) corresponding to the output states of the first to third reel motor φ0 to φ3 signals and the flow path switching solenoid signal. When any of these signals is output, each corresponding bit becomes 1. Conversely, when neither signal is output, all the bits become 0, so that the reel motor state data becomes 0. That is, when all the reel motors are in the OFF state, the bits corresponding to all the reel motor signals are set to 0, and the bits corresponding to the flow path switching solenoid signals are also set to 0. As a result, the reel motor state data is 0. become.

このため、ステップSg42の判定おいては、リールモータ状態データが0であるときには、全てのリールモータがOFF状態であると判定し(Sg42でYES)、リールモータ状態データが0でないときには、全てのリールモータがOFF状態であると判定しない(Sg42でNO)処理が行われている。このように、出力ポート0,1から信号が出力されているか否かを判定することに基づいて、全てのリールが停止したか否かを判定している。 Therefore, in the determination of step Sg42, when the reel motor state data is 0, it is determined that all the reel motors are in the OFF state (YES in Sg42), and when the reel motor state data is not 0, all the reel motors are in the OFF state. A process is performed in which the reel motor is not determined to be in the OFF state (NO in Sg42). In this way, it is determined whether or not all the reels have stopped based on determining whether or not the signal is output from the output ports 0 and 1.

たとえば、Sg42の判定時において、出力ポート0,1から出力される信号にON状態となる信号が含まれている場合には、第1〜第3リールモータφ0〜φ3信号状態を一つ一つ取得してこれらのデータが全て0になっているかを判定する必要が出てくる。しかし、上記のように、出力ポート0,1から出力される信号が全てOFF状態になるのであれば、出力ポート0,1の出力状態に基づき生成されたリールモータ状態データが0であるのか否かを判定することで、全てのリールが停止したか否かを判定することができる。このように、出力ポート0,1から出力される信号を好適に配置することで、空きポートを好適に扱える一方で、全てのリールが停止したか否かの判定の妨げにならない。 For example, at the time of determination of Sg42, if the signals output from the output ports 0 and 1 include a signal to be in the ON state, the first to third reel motors φ0 to φ3 signal states are set one by one. It becomes necessary to acquire and determine whether all these data are 0. However, as described above, if all the signals output from the output ports 0 and 1 are in the OFF state, whether or not the reel motor state data generated based on the output state of the output ports 0 and 1 is 0. By determining whether or not, it is possible to determine whether or not all the reels have stopped. By appropriately arranging the signals output from the output ports 0 and 1 in this way, the empty port can be handled appropriately, but it does not interfere with the determination of whether or not all the reels have stopped.

[払出信号の出力処理]
本実施例のスロットマシン1は、遊技状態やエラーの発生状況などを示す外部出力信号を出力する。これら外部出力信号は、メイン制御部41の制御により遊技制御基板40より出力され、ホールコンピュータやスロットマシン1に対応して設置されたデータ表示端末などの外部機器に出力されるようになっている。
[Distribution signal output processing]
The slot machine 1 of this embodiment outputs an external output signal indicating a gaming state, an error occurrence state, and the like. These external output signals are output from the game control board 40 under the control of the main control unit 41, and are output to external devices such as a data display terminal installed corresponding to the hall computer and the slot machine 1. ..

しかし、古いホールコンピュータなどの外部機器は、外部出力信号を検出するのに比較的長い時間を要する。このような外部機器でも確実に外部出力信号を検出できるようにするため、一定時間以上信号を出力するようにしている。たとえば、払出信号および投入信号が出力される時間は、後述するように最低50msである。また、リプレイ入賞が発生した場合は、払出信号は250msの間出力される。 However, old hall computers and other external devices take a relatively long time to detect an external output signal. In order to ensure that the external output signal can be detected even by such an external device, the signal is output for a certain period of time or longer. For example, the output time of the payout signal and the input signal is at least 50 ms as described later. When a replay winning is generated, the payout signal is output for 250 ms.

たとえば、リプレイ入賞が発生して払出信号が出力されている間、次の遊技の開始操作が有効化されないようにした場合、遊技者は次の遊技開始まで250ms待たされることになる。この間、開始操作を行ったとしても遊技が開始されないため、遊技者は不快な思いをすることがある。このため、本実施の形態においては、リプレイ入賞が発生した場合、リプレイ入賞に基づく払出信号の出力が完了したか否かに関わらず、リプレイ入賞が発生した遊技の次の遊技において開始操作を有効化するようにした。以下、図20〜図22を用いて詳細に説明する。 For example, if the start operation of the next game is not enabled while the replay winning is generated and the payout signal is output, the player will have to wait 250 ms until the start of the next game. During this time, the player may feel uncomfortable because the game is not started even if the start operation is performed. Therefore, in the present embodiment, when a replay prize occurs, the start operation is effective in the next game of the game in which the replay prize occurs, regardless of whether or not the output of the payout signal based on the replay prize is completed. I tried to make it. Hereinafter, a detailed description will be given with reference to FIGS. 20 to 22.

図20は、払出信号の出力処理について説明するための図(その1)である。リプレイ入賞が発生したとき、リプレイ入賞に基づき、払出信号が送信される。また、リプレイ入賞に基づき、次の遊技において自動的にBET数(賭数)が設定される(自動BET)。これにより、BET数の設定に新たなメダルを消費することなく次のゲームを行うことができる。また、設定されたBET数に基づき入力信号が送信される。 FIG. 20 is a diagram (No. 1) for explaining the output processing of the payout signal. When a replay prize occurs, a payout signal is transmitted based on the replay prize. In addition, the number of BETs (number of bets) is automatically set in the next game based on the replay winning (automatic BET). As a result, the next game can be played without consuming a new medal for setting the BET number. Further, an input signal is transmitted based on the set number of BETs.

図20に示すように、メイン処理においては、割込複数回待ち処理(Sc5)、遊技開始待ち処理(Sc6)、リール停止制御処理(Sc19)、遊技終了時の設定処理(Sc34)などが実行される。また、タイマ割込処理(メイン)が実行されると、投入払出信号送信処理(Si21)、出力ポート3出力処理(Si23)などが実行される。 As shown in FIG. 20, in the main process, interrupt multiple times wait process (Sc5), game start wait process (Sc6), reel stop control process (Sc19), setting process at the end of the game (Sc34), and the like are executed. Will be done. When the timer interrupt process (main) is executed, the input / payout signal transmission process (Si21), the output port 3 output process (Si23), and the like are executed.

リプレイ入賞が発生した場合、遊技終了時の設定処理において、当該遊技において設定されているBET数に対応する数値データを取得し(Sh3)、取得したBET数に対応する数値データをリプレイ用カウンタに格納する(Sh4)とともに、取得したBET数を払出信号用カウンタに格納する(Sh5)。 When a replay prize occurs, in the setting process at the end of the game, the numerical data corresponding to the number of BETs set in the game is acquired (Sh3), and the numerical data corresponding to the acquired number of BETs is used as the replay counter. Along with storing (Sh4), the acquired BET number is stored in the payout signal counter (Sh5).

本実施の形態においては、BET数は「3」であるので、リプレイ用カウンタおよび払出信号用カウンタには、「3」が格納される。リプレイ用カウンタは、遊技開始待ち処理においてリプレイ入賞の有無の判定などのために用いられるカウンタである。このため、遊技開始待ち処理において、あらためてBET数を取得してリプレイ用カウンタを設定するようにしてもよい。しかし、上記のように、遊技終了時の設定処理において、リプレイ用カウンタおよび払出信号用カウンタを同時に設定すれば、処理負担を軽減させることができ、効率よくメダル数の設定を行うことができる。 In the present embodiment, since the number of BETs is "3", "3" is stored in the replay counter and the payout signal counter. The replay counter is a counter used for determining whether or not there is a replay prize in the game start waiting process. Therefore, in the game start waiting process, the BET number may be acquired again and the replay counter may be set. However, as described above, if the replay counter and the payout signal counter are set at the same time in the setting process at the end of the game, the processing load can be reduced and the number of medals can be set efficiently.

遊技終了時の設定処理が終了した後は、メイン処理に戻り、次の遊技に移行する。そして、割込複数回待ち処理(Sc5)が実行されることで、割込処理が実行される。当該割込処理において、払出信号が出力されることになる。つまり、遊技終了時の設定処理において、払出信号用カウンタに「3」が格納された(Sh5)後に、割込処理が実行されることにより、払出枚数が「3」であることを特定可能な払出信号が出力される。 After the setting process at the end of the game is completed, the process returns to the main process and the next game is started. Then, the interrupt process is executed by executing the interrupt process (Sc5) a plurality of times. In the interrupt process, a payout signal will be output. That is, in the setting process at the end of the game, it is possible to specify that the number of payouts is "3" by executing the interrupt process after "3" is stored in the payout signal counter (Sh5). A payout signal is output.

具体的には、割込処理において、投入払出信号送信処理(Si21)が実行される。そして、投入払出信号送信処理において、払出信号生成処理(Sj3)が実行される。払出信号生成処理において、払出信号用カウンタに基づき、払出信号データが作成される。そして、出力ポート3出力処理(Si23)において、払出信号データに基づき払出信号の出力が開始される。 Specifically, in the interrupt process, the input / payout signal transmission process (Si21) is executed. Then, in the input / payout signal transmission process, the payout signal generation process (Sj3) is executed. In the payout signal generation process, the payout signal data is created based on the payout signal counter. Then, in the output port 3 output process (Si23), the output of the payout signal is started based on the payout signal data.

割込処理により、払出信号の出力が開始された後、遊技開始待ち処理(Sc6)が実行される。遊技開始待ち処理において、リプレイ用カウンタが取得される(Sd5)。上述のように、前のゲームにおいてリプレイ入賞が発生し、リプレイ用カウンタに「3」が格納された状態では、リプレイカウンタには「3」が格納されている。これにより、ステップSd7において、リプレイ用カウンタ値>0と判定され(Sd7でYES)、メダル投入実行処理(Sd8)が実行される。メダル投入実行処理においては、リプレイカウンタの値に基づき、BET数が「3」に設定されることになる。 After the output of the payout signal is started by the interrupt process, the game start waiting process (Sc6) is executed. In the game start waiting process, the replay counter is acquired (Sd5). As described above, in the state where the replay winning is generated in the previous game and "3" is stored in the replay counter, "3" is stored in the replay counter. As a result, in step Sd7, it is determined that the replay counter value> 0 (YES in Sd7), and the medal insertion execution process (Sd8) is executed. In the medal insertion execution process, the number of BETs is set to "3" based on the value of the replay counter.

このように、BET数の設定は、払出信号の出力を開始した後に実行される。このようにすることで、伝達に時間がかかる外部への情報出力である払出信号の出力をいち早く行うことで、遊技の進行を妨げない。 In this way, the setting of the BET number is executed after starting the output of the payout signal. By doing so, the progress of the game is not hindered by promptly outputting the payout signal, which is the information output to the outside, which takes time to transmit.

上記の遊技開始待ち処理において、BET数に「3」が格納された(Sd8)後に、割込処理が実行されると、投入枚数が「3」であることを特定可能な投入信号が出力可能となる。ただし、払出信号の出力中には投入信号は出力することができない。その理由は、次のような処理が実行されているからである。 In the above game start waiting process, if the interrupt process is executed after "3" is stored in the BET number (Sd8), an input signal that can identify that the number of input sheets is "3" can be output. It becomes. However, the input signal cannot be output during the output of the payout signal. The reason is that the following processing is being executed.

割込処理が実行されると、投入払出信号送信処理(Si21)が実行される。投入払出信号送信処理においては、払出信号が送信中であるとき(払出パルスが動作中であるとき(Sj1がYES))は、投入信号生成処理(Sj2)が実行されない。これに対して、払出信号が送信中でないとき(Sj1がNO))は、投入信号生成処理(Sj2)が実行される。投入信号生成処理(Sj2)が実行された場合には、出力ポート3出力処理(Si23)において投入信号の出力が可能となる。このように、払出信号の出力中には投入信号は出力することができず、払出信号が出力されていないときには投入信号が出力可能となる。 When the interrupt process is executed, the input / payout signal transmission process (Si21) is executed. In the input / payout signal transmission process, the input / payout signal generation process (Sj2) is not executed when the payout signal is being transmitted (when the payout pulse is operating (Sj1 is YES)). On the other hand, when the payout signal is not being transmitted (Sj1 is NO)), the input signal generation process (Sj2) is executed. When the input signal generation process (Sj2) is executed, the input signal can be output in the output port 3 output process (Si23). As described above, the input signal cannot be output during the output of the payout signal, and the input signal can be output when the payout signal is not output.

図21は、払出信号の出力処理について説明するための図(その2)である。図21(A)は、リプレイ入賞時のBET数、リプレイ用カウンタおよび払出信号用カウンタの値の推移を説明するための図である。図21(A)に示すように、開始操作によりゲームが開始したとき、BET数として「3」が設定されている。リプレイ入賞が発生すると、図20を用いて説明したように、遊技終了時の設定処理のステップSh3〜Sh5において、BET数として設定された「3」が、リプレイ用カウンタおよび払出カウンタに格納される。 FIG. 21 is a diagram (No. 2) for explaining the output processing of the payout signal. FIG. 21 (A) is a diagram for explaining the transition of the values of the number of BETs, the replay counter, and the payout signal counter at the time of winning the replay. As shown in FIG. 21 (A), when the game is started by the start operation, "3" is set as the BET number. When the replay winning is generated, as described with reference to FIG. 20, "3" set as the BET number in steps Sh3 to Sh5 of the setting process at the end of the game is stored in the replay counter and the payout counter. ..

また、リプレイ用カウンタに基づき設定されるBET数は、本実施の形態においては常に「3」である。このため、たとえば、リプレイ用カウンタは、BETされる場合にはONを設定し、BETされない場合にはOFFを設定するようなフラグであってもよい。しかし、本実施の形態においては、リプレイ用カウンタは、0〜255(00H〜FFH)を設定可能な1バイトデータとして設定される。このようにすることによって、たとえば、スロットマシンのソフトウェアの仕様が変更され、リプレイ入賞によって設定されるBET数が「2」やそれ以外の数値となった場合であっても、仕様変更への対応が容易になる。 Further, the number of BETs set based on the replay counter is always "3" in the present embodiment. Therefore, for example, the replay counter may be a flag that sets ON when BET is performed and OFF when BET is not performed. However, in the present embodiment, the replay counter is set as 1-byte data in which 0 to 255 (00H to FFH) can be set. By doing so, for example, even if the specifications of the slot machine software are changed and the number of BETs set by the replay winning is "2" or another value, the specifications can be changed. Becomes easier.

図21(B)は、遊技RAM領域において、払出信号用カウンタを格納する領域を説明するための図である。図4を用いて説明したように、遊技RAM領域は、領域A〜Dを有する。このうち、領域C,D(ボーナス終了時初期化対象領域)は、ボーナス終了時に初期化される(Sc38,Sc2)。また、領域D(遊技終了時初期化対象領域)は、一遊技が終了するたびに初期化される(Sc36,Sc2)。 FIG. 21B is a diagram for explaining an area for storing a payout signal counter in the game RAM area. As described with reference to FIG. 4, the game RAM area has areas A to D. Of these, the areas C and D (areas to be initialized at the end of the bonus) are initialized at the end of the bonus (Sc38, Sc2). Further, the area D (the area to be initialized at the end of the game) is initialized every time one game is completed (Sc36, Sc2).

本実施の形態においては、払出信号用カウンタは、遊技用RAMの領域Aに格納されている。領域Aは、遊技終了時に遊技用RAMの領域Dを初期化する処理およびボーナス終了時に遊技用RAMの領域C,Dを初期化する処理のいずれによっても初期化されない領域である。 In the present embodiment, the payout signal counter is stored in the area A of the game RAM. The area A is an area that is not initialized by either the process of initializing the area D of the game RAM at the end of the game and the process of initializing the areas C and D of the game RAM at the end of the bonus.

仮に、払出信号用カウンタを領域Cや領域Dに格納した場合、ボーナスが終了(Sc37でYES)した後に遊技用RAMの領域C,Dをクリアする(Sc2)ことによって、払出信号用カウンタがクリアされてしまう危険性がある。このため、払出信号用カウンタを領域Aに設定することで、遊技用RAMの初期化処理によって意図せず払出信号の出力が停止することを防止することができる。 If the payout signal counter is stored in the area C or D, the payout signal counter is cleared by clearing the game RAM areas C and D (Sc2) after the bonus ends (YES in Sc37). There is a risk of being killed. Therefore, by setting the payout signal counter in the area A, it is possible to prevent the output of the payout signal from being unintentionally stopped due to the initialization process of the game RAM.

図22は、払出信号の出力処理について説明するための図(その3)である。払出信号が出力される期間は、メダルの払出数(払出信号用カウンタの値)に応じて一定となるように定められている。払出数が1であるときは、払出信号として、出力時間が50msとなるパルス信号を1回出力する。払出数が2以上であるときは、パルス信号とパルス信号との間に信号が出力されない期間(信号OFF状態)を50ms設ける。 FIG. 22 is a diagram (No. 3) for explaining the output processing of the payout signal. The period during which the payout signal is output is set to be constant according to the number of medals paid out (value of the payout signal counter). When the number of payouts is 1, a pulse signal having an output time of 50 ms is output once as a payout signal. When the number of payouts is 2 or more, a period during which no signal is output (signal OFF state) is provided between the pulse signals and the pulse signals for 50 ms.

たとえば、リプレイ入賞が発生した場合は、払出信号用カウンタの値は3であるため、払出信号の出力は、50msのパルス信号出力(信号ON状態)、50msの信号OFF状態、50msのパルス信号出力(信号ON状態)、50msの信号OFF状態、50msのパルス信号出力(信号ON状態)となる(合計250ms)。すなわち、リプレイ入賞が発生した場合、払出信号の出力が開始されてから当該信号の出力が完了するまでには、250msの時間を要する。 For example, when a replay prize occurs, the value of the payout signal counter is 3, so the payout signal output is a 50 ms pulse signal output (signal ON state), a 50 ms signal OFF state, and a 50 ms pulse signal output. (Signal ON state), 50 ms signal OFF state, 50 ms pulse signal output (Signal ON state) (total 250 ms). That is, when a replay winning is generated, it takes 250 ms from the start of the output of the payout signal to the completion of the output of the signal.

一方で、投入信号が出力される期間は、BET数に応じて一定となるように定められている。払出信号と同様に、投入信号も、BET数が1であるときは、投入信号として、出力時間が50msとなるパルス信号を1回出力する。BET数が2以上であるときは、パルス信号とパルス信号との間に信号が出力されない期間(信号OFF状態)を50ms設ける。たとえば、リプレイ入賞が発生した場合、自動BETによりBET数が3に設定される。これにより、上記同様、投入信号として3回のパルス信号が出力され、投入信号の出力が開始されてから当該信号の出力が完了するまでには、250msの時間を要する。以下、タイミングチャートを用いて、信号の出力状況を具体的に説明する。 On the other hand, the period during which the input signal is output is set to be constant according to the number of BETs. Similar to the payout signal, when the BET number is 1, the input signal also outputs a pulse signal having an output time of 50 ms once as an input signal. When the number of BETs is 2 or more, a period during which no signal is output (signal OFF state) is provided between the pulse signals for 50 ms. For example, when a replay prize occurs, the number of BETs is set to 3 by automatic BET. As a result, similarly to the above, the pulse signal is output three times as the input signal, and it takes 250 ms from the start of the output of the input signal to the completion of the output of the signal. Hereinafter, the signal output status will be specifically described using a timing chart.

図22(A)は、リプレイ入賞が発生した場合の、払出信号と投入信号の出力状況を示すタイミングチャートである。図22(A)に示すように、t1においてリプレイ入賞が発生したとする。リプレイ入賞が発生したことに基づき、払出信号の出力が開始される。また、リプレイ入賞が発生した場合、リプレイ入賞に基づく払出信号の出力が完了したか否かに関わらず、リプレイ入賞が発生した遊技の次の遊技において開始操作が有効化される。 FIG. 22A is a timing chart showing the output status of the payout signal and the input signal when the replay winning is generated. As shown in FIG. 22 (A), it is assumed that a replay prize is generated at t1. Based on the occurrence of the replay winning, the output of the payout signal is started. Further, when the replay winning is generated, the start operation is enabled in the next game of the game in which the replay winning is generated, regardless of whether or not the output of the payout signal based on the replay winning is completed.

ここで、仮に、リプレイが発生した場合、リプレイ入賞に基づく払出信号の出力の完了を待ってから、次の遊技における開始操作が有効化されるようにしたとする。たとえば、図20で説明した遊技終了時の設定処理において、ステップSh5の後に、払出信号出力が完了されるまで待機する処理を入れたとする。このようにすると、リプレイが入賞したにも関わらず、250msの間、開始操作をしても遊技が開始せず、遊技者は不快な思いをすることがある。しかし、本実施の形態のようにリプレイ入賞後、即座に開始操作が有効化されることで、遊技者にストレスを感じさせることなく、遊技の進行を速やかに進めることができる。 Here, if a replay occurs, it is assumed that the start operation in the next game is activated after waiting for the completion of the output of the payout signal based on the replay winning. For example, in the setting process at the end of the game described with reference to FIG. 20, it is assumed that after step Sh5, a process of waiting until the payout signal output is completed is inserted. In this way, even though the replay has won a prize, the game does not start even if the start operation is performed for 250 ms, and the player may feel uncomfortable. However, since the start operation is enabled immediately after the replay winning as in the present embodiment, the progress of the game can be promptly advanced without causing the player to feel stress.

次に、t1から250ms経過したt2において、払出信号の出力が完了したとする。そして、t3において、開始操作がされたとする。これにより、投入信号の出力が開始し、250ms経過したt4において、投入信号の出力が完了する。 Next, it is assumed that the output of the payout signal is completed at t2, which is 250 ms after t1. Then, at t3, it is assumed that the start operation is performed. As a result, the output of the input signal is started, and the output of the input signal is completed at t4 after 250 ms has passed.

図22(B)は、払出信号の出力が完了する前に、開始操作がされた場合について説明するタイミングチャートである。図22(A)に示すように、t1においてリプレイ入賞が発生したとする。リプレイ入賞が発生したことに基づき、払出信号の出力が開始される。また、次の遊技における開始操作が有効化される。ここで、図22(A)の状況とは異なり、図22(B)においては、払出信号の出力が完了する前のt2において開始操作がされたとする。 FIG. 22B is a timing chart illustrating a case where a start operation is performed before the output of the payout signal is completed. As shown in FIG. 22 (A), it is assumed that a replay prize is generated at t1. Based on the occurrence of the replay winning, the output of the payout signal is started. In addition, the start operation in the next game is enabled. Here, unlike the situation of FIG. 22 (A), in FIG. 22 (B), it is assumed that the start operation is performed at t2 before the output of the payout signal is completed.

このように、開始操作がされたことに基づき投入信号を出力し、払出信号の出力が完了する前に開始操作がされた場合、払出信号の出力が完了した後(t3)に投入信号の出力を開始する。そして、t3から250ms経過したt4において、投入信号の出力が完了する。このように、投入信号の出力を遅らせることで、投入信号および払出信号の出力タイミングが重ならないので、外部機器において受信した信号を確認することで、メインCPU41aが実行する処理の処理順序を特定しやすくなる。 In this way, if the input signal is output based on the start operation and the start operation is performed before the output of the payout signal is completed, the output of the input signal is output after the output of the payout signal is completed (t3). To start. Then, at t4, 250 ms after t3, the output of the input signal is completed. By delaying the output of the input signal in this way, the output timings of the input signal and the payout signal do not overlap. Therefore, by checking the signal received by the external device, the processing order of the processing executed by the main CPU 41a is specified. It will be easier.

一方で、t1の払出信号を出力する場合には、投入信号の出力を確認することなく払出信号の出力を行っている。すなわち、投入信号を出力する際には、払出信号の出力状態を確認し、払出信号が出力されていない場合に投入信号を出力し、払出信号を出力する際には、投入信号の出力状態を確認することなく払出信号を出力している。 On the other hand, when the payout signal of t1 is output, the payout signal is output without confirming the output of the input signal. That is, when outputting the input signal, the output state of the payout signal is confirmed, when the payout signal is not output, the input signal is output, and when the payout signal is output, the output state of the input signal is checked. The payout signal is output without confirmation.

このようにしているのは、次の理由による。開始操作に基づき投入信号の出力が開始された場合、その後入賞が発生して払出信号の出力が開始されるまでの時間よりも、投入信号の出力が終了するまでの時間(250ms)の方が短い。つまり、払出信号の出力を開始するときには、すでに投入信号の出力は終了しているため、あえて、払出信号の出力時に投入信号の出力状態を確認する必要がない。このように、投入信号の出力状態の確認を省略することで、処理負担を軽減することができる。 This is done for the following reasons. When the output of the input signal is started based on the start operation, the time (250 ms) until the output of the input signal is completed is longer than the time until the winning is generated and the output of the payout signal is started. short. That is, since the output of the input signal has already ended when the output of the payout signal is started, it is not necessary to dare to confirm the output state of the input signal at the time of output of the payout signal. By omitting the confirmation of the output state of the input signal in this way, the processing load can be reduced.

また、払出信号の出力中において、移行条件が成立した場合に特定状態に制御される。たとえば、移行条件はエラー発生であり、特定状態はエラー状態である。また、移行条件は設定確認操作であり、特定状態は設定確認状態である。 Further, during the output of the payout signal, it is controlled to a specific state when the transition condition is satisfied. For example, the migration condition is an error occurrence and the specific state is an error state. The transition condition is the setting confirmation operation, and the specific state is the setting confirmation state.

たとえば、投入払出エラーチェック処理(Sd11)において、エラーが発生していると判断された場合、エラー処理(Se9)が実行される。また、操作入力受付処理(Sd14)において、設定確認操作が検出された場合、設定確認状態に制御される。本実施の形態においては、払出信号の出力を開始した場合、当該出力が完了するまで待機するような処理を行っていない。このため、払出信号の出力中においても、上記のようなエラー処理(Se9)や操作入力受付処理(Sd14)の実行が可能となり、設定確認状態やエラー状態への制御が可能となる。 For example, when it is determined in the input / withdrawal error check process (Sd11) that an error has occurred, the error process (Se9) is executed. Further, when the setting confirmation operation is detected in the operation input reception process (Sd14), the setting confirmation state is controlled. In the present embodiment, when the output of the payout signal is started, the process of waiting until the output is completed is not performed. Therefore, the error processing (Se9) and the operation input reception processing (Sd14) as described above can be executed even during the output of the payout signal, and the setting confirmation state and the error state can be controlled.

このようにすることで、制御の進行が妨げられないとともに、エラー状態などに制御された場合であっても、払出信号の出力が完了するまで払出信号の出力が継続されるため、誤った情報が外部に伝達されない。 By doing so, the progress of the control is not hindered, and even if the control is performed in an error state or the like, the output of the payout signal is continued until the output of the payout signal is completed. Is not transmitted to the outside.

また、遊技終了時の設定処理において、リプレイ入賞が発生した場合は(Sh2でYES)、リプレイ中LEDをONに設定(Sh7)し、リプレイ入賞が発生しなかった場合は(Sh2でNO)、リプレイ中LEDをOFFに設定(Sh9)している。また、遊技終了時の設定処理は、制御中の遊技状態(たとえば、通常状態、ボーナス、AT)がいずれであるかに関わらず、一遊技ごとに実行される処理である。 In addition, in the setting process at the end of the game, if a replay prize occurs (YES in Sh2), the LED during replay is set to ON (Sh7), and if a replay prize does not occur (NO in Sh2), The LED is set to OFF (Sh9) during replay. Further, the setting process at the end of the game is a process executed for each game regardless of which game state (for example, normal state, bonus, AT) is being controlled.

このように、リプレイ入賞が発生しているか否かを一遊技ごとに判定し、リプレイ入賞が発生しているときにはリプレイ中LEDを点灯させ、リプレイが発生していないときにはリプレイ中LEDを消灯させる。このようにすることで、遊技ごとの状況をふまえてリプレイ入賞の発生状況を出力することができる。 In this way, it is determined for each game whether or not a replay winning has occurred, the LED during replay is turned on when the replay winning is occurring, and the LED during replay is turned off when the replay is not occurring. By doing so, it is possible to output the occurrence status of the replay prize based on the situation for each game.

[割込禁止についての安全性]
次に、割込禁止についての安全性について説明する。本実施の形態においては、メイン処理の実行中において、割込処理が実行可能な構成となっている。また、RAM41cに格納されるデータの中には、メイン処理において更新されるとともに、割込処理においても更新されるデータがある。たとえば、メイン処理においてRAM41cからこのようなデータを取得し、データの更新処理をしようとしているときに、割込処理が実行されて当該データが更新されてしまうことがある。このように、意図しない割込処理によってデータが更新されてしまい、データに不整合が発生してしまう可能性がある。
[Safety regarding interrupt prohibition]
Next, the safety of interrupt prohibition will be described. In the present embodiment, the interrupt process can be executed while the main process is being executed. Further, among the data stored in the RAM 41c, there is data that is updated not only in the main process but also in the interrupt process. For example, when such data is acquired from the RAM 41c in the main process and the data is to be updated, the interrupt process may be executed to update the data. In this way, the data may be updated by an unintended interrupt process, resulting in inconsistency in the data.

このため、メイン処理においてこのようなデータを更新する際には、割込禁止設定を行って割込処理によって当該データが更新されないようにしている。このように割込禁止設定を行うことでデータの安全性を担保している。しかしながら、スロットマシンのソフトウェア開発において、プログラムの仕様変更があったような場合において、次のような問題が発生することがある。 Therefore, when updating such data in the main process, an interrupt prohibition setting is set so that the data is not updated by the interrupt process. Data security is ensured by setting interrupt prohibition in this way. However, in software development of slot machines, the following problems may occur when the specifications of the program are changed.

たとえば、あるサブルーチンにおいて呼出命令(CALL命令)により、別のサブルーチンを呼び出すような場合、プログラム内で互いのサブルーチンが記載されている場所が遠いことがある。このような場合、呼出先のサブルーチンで割込禁止設定を行い、復帰命令により呼出元のサブルーチンに復帰した直後に、割込処理により更新され得るデータの取得処理を行うケースがある。このようにしたとしても、意図しない割込処理によってデータが更新されることはないのであるが、互いのプログラムの記載箇所が遠いため、非常に分かりづらい。また、プログラムの仕様変更があった場合に、呼出先のサブルーチンが削除されるようなことがあった場合には、意図しない割込処理が発生してしまい、割込を禁止することによるデータの安全性が担保されない。 For example, when another subroutine is called by a call instruction (CALL instruction) in one subroutine, the place where each subroutine is described may be far from each other in the program. In such a case, there is a case where the interrupt prohibition setting is set in the subroutine of the call destination, and immediately after returning to the subroutine of the caller by the return instruction, the data acquisition process that can be updated by the interrupt process is performed. Even if this is done, the data will not be updated by an unintended interrupt process, but it is very difficult to understand because the descriptions of the programs are far from each other. In addition, if the subroutine of the called destination is deleted when the specifications of the program are changed, an unintended interrupt process will occur, and the data will be interrupted by prohibiting the interrupt. Safety is not guaranteed.

本実施の形態においては、このような安全性を担保することで仕様変更時におけるプログラムの保守性を高めるために、呼出先プログラムにおいて割込1回待ち処理を行うとともに、呼出元プログラムにおいても割込禁止設定を行うようにしている。以下、詳細について、図23を用いて説明する。 In the present embodiment, in order to improve the maintainability of the program at the time of specification change by ensuring such safety, the callee program performs interrupt processing once, and the caller program also performs interrupt processing. I am trying to set the prohibition of inclusion. Hereinafter, details will be described with reference to FIG. 23.

図23は、割込割込禁止についての安全性について説明するためのフローチャートである。図23に示すように、メイン処理には、投入払出エラーチェック処理とエラー処理とが含まれる。エラー処理は、投入払出エラーチェック処理における呼出命令(CALL命令)で呼び出され、復帰命令(RET命令)で投入払出エラーチェック処理に復帰する。すなわち、投入払出エラーチェック処理は呼出元のプログラムであり、エラー処理は呼出先プログラムである。投入払出エラーチェック処理においては、センサエラーフラグを取得して更新する処理が行われる。センサエラーフラグは、上記で説明したような、メイン処理において更新されるとともに、割込処理においても更新されるデータである。 FIG. 23 is a flowchart for explaining the safety of interrupt interruption prohibition. As shown in FIG. 23, the main process includes an input / payout error check process and an error process. The error processing is called by the call instruction (CALL instruction) in the input / payout error check process, and returns to the input / payout error check process by the return instruction (RET instruction). That is, the input / payout error check processing is the calling program, and the error processing is the calling program. In the input / withdrawal error check process, a process of acquiring and updating the sensor error flag is performed. The sensor error flag is data that is updated not only in the main process but also in the interrupt process as described above.

図11,図12を用いて説明したように、投入払出エラーチェック処理を開始した後、エラーが発生したと判定されると、エラー処理(ステップSe9)が実行される。エラー処理は、投入払出エラーチェック処理のCALL命令により呼び出される。エラー処理において、エラー解除条件が成立し、エラーが解除されると、エラー解除コマンド送信処理(Sf13)が実行される。そして、割込1回待ち処理(Sf14)が実行された後に、RET命令により投入払出エラーチェック処理に復帰する。 As described with reference to FIGS. 11 and 12, if it is determined that an error has occurred after the input / withdrawal error check process is started, the error process (step Se9) is executed. The error processing is called by the CALL instruction of the input / withdrawal error check processing. In the error processing, when the error release condition is satisfied and the error is released, the error release command transmission process (Sf13) is executed. Then, after the interrupt one-time wait process (Sf14) is executed, the input / payout error check process is returned by the RET instruction.

このように、エラー処理において、エラー処理を終了する前にエラー解除コマンドを送信し、当該コマンドの送信が完了するように、RET命令により投入払出エラーチェック処理に復帰する前に割込1回待ち処理を実行している。これにより、エラー解除コマンドが確実に送信された後に次の処理を実行することができる。 In this way, in error processing, an error release command is transmitted before the error processing is completed, and an interrupt is waited once before returning to the input / output error check process by the RET instruction so that the transmission of the command is completed. The process is being executed. As a result, the next process can be executed after the error release command is surely transmitted.

投入払出エラーチェック処理に戻ると、割込禁止設定(Se10)が行われる。割込禁止設定がされた状態で、センサエラーフラグの更新処理(Se11〜Se13)が行わる。センサエラーフラグの更新処理が終了すると、割込許可設定(Se14)が行われる。 Returning to the input / withdrawal error check process, the interrupt prohibition setting (Se10) is performed. The sensor error flag update process (Se11 to Se13) is performed with the interrupt prohibition setting set. When the sensor error flag update process is completed, the interrupt permission setting (Se14) is performed.

センサエラーフラグの更新処理においては、センサエラーフラグの取得を行っている。センサエラーフラグは割込処理において更新されるデータであるため、意図しない割込が発生してしまった場合、センサエラーフラグの値が変動してしまう可能性がある。このように、割込禁止設定を行うのは、センサエラーフラグを取得している途中にセンサエラーフラグが更新されないようするためである。 In the sensor error flag update process, the sensor error flag is acquired. Since the sensor error flag is data that is updated in the interrupt process, the value of the sensor error flag may fluctuate if an unintended interrupt occurs. In this way, the interrupt prohibition setting is performed so that the sensor error flag is not updated while the sensor error flag is being acquired.

また、割込禁止設定(Se10)を行う直前の処理において割込1回待ち処理(Sf14)を実行している。割込1回待ち処理により割込処理が実行されるため、当該割込処理が実行された直後に、割込禁止設定(Se10)およびセンサエラーフラグの更新処理(Se11〜Se13)が実行されることになる。割込処理の実行からセンサエラーフラグの更新処理の実行までの時間は、割込処理の実行から次の割込処理の実行までの時間よりも短い。このため、センサエラーフラグの更新処理中に割込が発生することはない。 In addition, the interrupt one-time wait process (Sf14) is executed in the process immediately before the interrupt prohibition setting (Se10) is performed. Since the interrupt process is executed by the interrupt process once, the interrupt prohibition setting (Se10) and the sensor error flag update process (Se11 to Se13) are executed immediately after the interrupt process is executed. It will be. The time from the execution of the interrupt process to the execution of the sensor error flag update process is shorter than the time from the execution of the interrupt process to the execution of the next interrupt process. Therefore, an interrupt does not occur during the sensor error flag update process.

しかし、このように、エラー処理において割込1回待ち処理を行うだけでなく、投入払出エラーチェック処理においても割込処理の実行を禁止するといった2重の処置を施すことで、意図しない割込処理を確実に防止することができる。また、上述したように、スロットマシンのソフトウェア開発においてプログラムの保守性を高めるためには、このような2重の処置を施すことが望ましい。これにより、プログラムの改変時などにおいても、意図しない不具合が発生してしまうことを防止でき、プログラムの保守性を高めることができる。 However, in this way, not only the interrupt processing is performed once in the error processing, but also the input / withdrawal error check processing is performed by performing double measures such as prohibiting the execution of the interrupt processing, thereby performing an unintended interrupt. Processing can be reliably prevented. Further, as described above, in order to improve the maintainability of the program in the software development of the slot machine, it is desirable to perform such a double measure. As a result, it is possible to prevent an unintended problem from occurring even when the program is modified, and it is possible to improve the maintainability of the program.

また、本実施の形態においては、エラー処理から投入払出エラーチェック処理に復帰した後、CALL命令により他の処理を呼び出すことなくセンサエラーフラグの更新処理(Se11〜Se13)を実行している。これにより、エラー処理終了後にすみやかにセンサエラーフラグの更新処理を実行することができる。 Further, in the present embodiment, after returning from the error processing to the input / payout error check processing, the sensor error flag update processing (Se11 to Se13) is executed without calling another processing by the CALL instruction. As a result, the sensor error flag update process can be executed immediately after the error process is completed.

なお、本実施の形態においては、センサエラーフラグの更新処理を、遊技プログラムである投入払出エラーチェック処理の中で実行するようにした。しかし、これに限らず、非遊技プログラムでセンサエラーフラグの更新処理を行うようにしてもよい。具体的には、センサエラーフラグの更新処理(Se11〜Se13)を非遊技プログラムのサブルーチンとして規定し、投入払出エラーチェック処理によるCALL命令で当該サブルーチンを呼び出すようにしてもよい。非遊技プログラムは、プログラムの実行中に割込処理が実行されることがない。このため、センサエラーフラグの更新処理中に割込処理が発生することがない。 In this embodiment, the sensor error flag update process is executed in the input / payout error check process, which is a game program. However, the present invention is not limited to this, and the sensor error flag may be updated in a non-game program. Specifically, the sensor error flag update process (Se11 to Se13) may be defined as a subroutine of the non-game program, and the subroutine may be called by the CALL instruction by the input / payout error check process. In the non-game program, the interrupt process is not executed during the execution of the program. Therefore, the interrupt process does not occur during the sensor error flag update process.

[出力データの設定]
次に、メイン側設定処理と割込側設定処理とで行われる出力データの設定処理の違いについて、図24に基づいて説明する。図24は、出力データの設定について説明するためのフローチャートである。
[Output data settings]
Next, the difference in the output data setting process performed between the main side setting process and the interrupt side setting process will be described with reference to FIG. 24. FIG. 24 is a flowchart for explaining the setting of output data.

メイン側設定処理は、メイン処理において実行される処理であり、出力データを設定する処理である。たとえば、メイン処理のリール停止制御処理(Sc19)内で行われる出力データを設定する処理などがこれに相当する。これに対して、割込側設定処理は、タイマ割込処理(メイン)において実行される処理であり、出力データを設定する処理である。たとえば、タイマ割込処理(メイン)のセキュリティ信号送信処理(Si22)内で行われる出力データを設定する処理などがこれに相当する。 The main side setting process is a process executed in the main process and is a process of setting output data. For example, a process of setting output data performed in the reel stop control process (Sc19) of the main process corresponds to this. On the other hand, the interrupt side setting process is a process executed in the timer interrupt process (main) and is a process for setting output data. For example, a process of setting output data performed in the security signal transmission process (Si22) of the timer interrupt process (main) corresponds to this.

なお、図24で示すフローチャートは、上記出力データを設定する処理の流れを理解しやすくするために、模式的に示したものである。以下で示すLEDデータA,Bは、出力ポート0〜8から出力されるいずれかのLEDデータであってもよく、信号データC,Dは、出力ポートから出力されるいずれかの信号データであってもよく、出力バッファA,Bは、出力ポート0〜8を出力するために用いられるいずれかの出力バッファであってもよい。 The flowchart shown in FIG. 24 is schematically shown in order to make it easier to understand the flow of the process of setting the output data. The LED data A and B shown below may be any LED data output from the output ports 0 to 8, and the signal data C and D are any signal data output from the output port. The output buffers A and B may be any output buffer used to output the output ports 0 to 8.

以下、メイン側設定処理では、LEDデータAの設定処理およびLEDデータBの設定処理を行う。また、割込側設定処理では、LEDデータCの設定処理およびLEDデータDの設定処理を実行する。なお、本実施の形態では、データをOFF設定することを「クリア」とも称し、ON設定することを単に「設定」とも称する。 Hereinafter, in the main side setting process, the LED data A setting process and the LED data B setting process are performed. Further, in the interrupt side setting process, the LED data C setting process and the LED data D setting process are executed. In the present embodiment, setting the data OFF is also referred to as "clear", and setting ON is simply referred to as "setting".

図24に示すように、メイン側設定処理では、まず割込禁止設定を行う(Sm1)。LEDA,Bデータは、割込処理によって更新されるデータである。このため、メイン側設定処理の実行中において、仮に設定したデータに基づき、意図しないLEDの点灯が発生してしまう可能性がある。また、更新されるデータが信号データである場合には、仮に設定したデータに基づき、意図しない信号が出力されてしまう危険性がある。このように、割込禁止設定を行うことで、意図しないLEDの点灯または消灯の発生や、信号の出力を防止することができる。 As shown in FIG. 24, in the main side setting process, the interrupt prohibition setting is first performed (Sm1). The LEDA and B data are data updated by the interrupt process. Therefore, during the execution of the main side setting process, there is a possibility that the LED may be unintentionally turned on based on the temporarily set data. Further, when the updated data is signal data, there is a risk that an unintended signal is output based on the temporarily set data. By setting the interrupt prohibition setting in this way, it is possible to prevent unintended LED lighting or extinguishing and signal output.

次に、LEDデータAおよびLEDデータBをまとめてOFF設定する(Sm2)。LEDデータAおよびLEDデータBは、1バイトのLEDデータ内の各ビットに対応するデータである。たとえば、LEDデータの1ビット目が1であるときにLEDデータAはONとなり、LEDデータの1ビット目が0であるときにLEDデータAはOFFとなり、LEDデータの2ビット目が1であるときにLEDデータBはONとなり、LEDデータの2ビット目が0であるときにLEDデータBはOFFとなる。このため、LEDデータを0にすることで、LEDデータAおよびLEDデータBがまとめてOFF設定されるため、処理が容易である。 Next, the LED data A and the LED data B are collectively set to OFF (Sm2). The LED data A and the LED data B are data corresponding to each bit in the 1-byte LED data. For example, when the first bit of the LED data is 1, the LED data A is ON, when the first bit of the LED data is 0, the LED data A is OFF, and the second bit of the LED data is 1. Sometimes the LED data B is turned on, and when the second bit of the LED data is 0, the LED data B is turned off. Therefore, by setting the LED data to 0, the LED data A and the LED data B are collectively set to OFF, so that the processing is easy.

Sm3のステップにおいて、LEDデータAの有効化条件が成立している場合には(Sm3がYES)、LEDデータAをON設定し(Sm4)、Sm5のステップに進む。一方で、LEDデータAの有効化条件が成立していない場合には(Sm3がNO)、Sm5のステップに進む。 If the LED data A activation condition is satisfied in the Sm3 step (Sm3 is YES), the LED data A is set to ON (Sm4), and the process proceeds to the Sm5 step. On the other hand, if the activation condition of the LED data A is not satisfied (Sm3 is NO), the process proceeds to the step of Sm5.

Sm5のステップにおいて、LEDデータBの有効化条件(LEDの点灯条件)が成立している場合には(Sm5がYES)、LEDデータBをON設定し(Sm6)、Sm7のステップに進む。一方で、LEDデータBの有効化条件が成立していない場合には(Sm5がNO)、Sm7のステップに進む。 If the LED data B activation condition (LED lighting condition) is satisfied in the Sm5 step (Sm5 is YES), the LED data B is set to ON (Sm6), and the process proceeds to the Sm7 step. On the other hand, if the activation condition of the LED data B is not satisfied (Sm5 is NO), the process proceeds to the step of Sm7.

Sm7のステップにおいて、LEDデータAおよびLEDデータBを出力バッファAに設定する。Sm8のステップにおいて、割込許可設定(Sm8)を行い、メイン側設定処理を終了する。割込許可設定により、割込処理が実行されると、出力バッファAに設定されたデータに基づき、LEDAおよびLEDBが点灯または消灯する。 In the step of Sm7, LED data A and LED data B are set in the output buffer A. In the step of Sm8, the interrupt permission setting (Sm8) is performed, and the main side setting process is completed. When the interrupt process is executed according to the interrupt permission setting, the LEDA and LEDB are turned on or off based on the data set in the output buffer A.

このように、メイン側設定処理は、出力データ(LEDデータA,B)の設定をまとめてOFF設定した後、出力条件(LEDデータA,Bの有効化条件)が成立しているときに出力データをON設定する処理である。そして、メイン側設定処理により設定されたLEDデータA,LEDデータBに基づきLEDA,LEDBを点灯または消灯させる。このように、メイン側設定処理においては、まとめて設定を行うことで出力データのOFF設定が容易になる。 In this way, the main side setting process outputs when the output conditions (LED data A, B activation conditions) are satisfied after the output data (LED data A, B) settings are collectively set to OFF. This is the process of turning on the data. Then, the LEDA and the LEDB are turned on or off based on the LED data A and the LED data B set by the main side setting process. As described above, in the main side setting process, the OFF setting of the output data becomes easy by performing the setting collectively.

なお、本実施の形態においては、LEDデータA,Bを出力バッファAに設定し、出力バッファAに基づき出力ポート出力処理によりLEDA,Bを点灯または消灯させるようにしたが、これに限らず、LEDデータA,Bを出力バッファAに設定することなく、LEDデータA,Bに基づき出力ポート出力処理によりLEDA,Bを点灯または消灯させるようにしてもよい。 In the present embodiment, the LED data A and B are set in the output buffer A, and the LEDs A and B are turned on or off by the output port output process based on the output buffer A, but the present invention is not limited to this. Instead of setting the LED data A and B in the output buffer A, the LEDs A and B may be turned on or off by the output port output process based on the LED data A and B.

次に、割込側設定処理について説明する。割込側設定処理では、信号データCおよび信号データDをまとめてON設定する(Sn1)。信号データCおよび信号データDは、1バイトの信号データ内の各ビットに対応するデータである。たとえば、信号データの1ビット目が1であるときに信号データCはONとなり、信号データの1ビット目が0であるときに信号データCはOFFとなり、信号データの2ビット目が1であるときに信号データDはONとなり、信号データの2ビット目が0であるときに信号データDはOFFとなる。このため、信号データをFFHにすることで、信号データAおよびLEDデータBをまとめてON設定されるため、処理が容易である。 Next, the interrupt side setting process will be described. In the interrupt side setting process, the signal data C and the signal data D are collectively set to ON (Sn1). The signal data C and the signal data D are data corresponding to each bit in the 1-byte signal data. For example, when the first bit of the signal data is 1, the signal data C is ON, when the first bit of the signal data is 0, the signal data C is OFF, and the second bit of the signal data is 1. Sometimes the signal data D is turned on, and when the second bit of the signal data is 0, the signal data D is turned off. Therefore, by setting the signal data to FFH, the signal data A and the LED data B are collectively set to ON, so that the processing is easy.

Sn2のステップにおいて、信号データCの無効化条件(信号の停止条件)が成立している場合には(Sn2がYES)、信号データCをOFF設定し(Sn3)、Sm4のステップに進む。一方で、信号データCの無効化条件が成立していない場合には(Sn2がNO)、S4のステップに進む。 In the Sn2 step, if the invalidation condition (signal stop condition) of the signal data C is satisfied (Sn2 is YES), the signal data C is set to OFF (Sn3), and the process proceeds to the Sm4 step. On the other hand, if the invalidation condition of the signal data C is not satisfied (Sn2 is NO), the process proceeds to the step S4.

Sn4のステップにおいて、信号データDの無効化条件が成立している場合には(Sn4がYES)、信号データDをOFF設定し(Sn5)、Sn6のステップに進む。一方で、信号データDの有効化条件が成立していない場合には(Sn4がNO)、Sn6のステップに進む。 In the Sn4 step, if the invalidation condition of the signal data D is satisfied (Sn4 is YES), the signal data D is set to OFF (Sn5), and the process proceeds to the Sn6 step. On the other hand, if the activation condition of the signal data D is not satisfied (Sn4 is NO), the process proceeds to the Sn6 step.

Sn6のステップにおいて、信号データCおよび信号データDを出力バッファBに設定し、割込側設定処理を終了する。割込側設定処理が終了すると、割込処理で実行される出力ポートの出力処理において、出力バッファBに設定されたデータに基づき、信号Cおよび信号Dが出力される。 In the Sn6 step, the signal data C and the signal data D are set in the output buffer B, and the interrupt side setting process is completed. When the interrupt side setting process is completed, the signal C and the signal D are output based on the data set in the output buffer B in the output process of the output port executed in the interrupt process.

このように、割込側設定処理は、出力データ(信号データC,D)をまとめてON設定した後、出力条件(信号データC,Dの有効化条件)が成立していないときに出力データの設定をOFF設定する処理である。そして、割込側設定処理により設定された信号データC,信号データDに基づき信号C,信号Dを出力する。このように、割込側設定処理においては、まとめて設定を行うことで出力データのON設定が容易になる。 In this way, in the interrupt side setting process, after the output data (signal data C and D) are collectively set to ON, the output data is not satisfied when the output condition (validation condition of the signal data C and D) is not satisfied. This is the process of turning off the setting of. Then, the signal C and the signal D are output based on the signal data C and the signal data D set by the interrupt side setting process. As described above, in the interrupt side setting process, the ON setting of the output data becomes easy by performing the settings collectively.

また、信号データC,信号データDのそれぞれに対して無効化条件が成立したか否かを判定し、信号データCの無効化条件が成立したときは信号データCをOFF設定し、次の成立条件である信号データDの無効化条件が成立したときは信号データDをOFF設定している。 Further, it is determined whether or not the invalidation condition is satisfied for each of the signal data C and the signal data D, and when the invalidation condition of the signal data C is satisfied, the signal data C is set to OFF, and the following is satisfied. When the invalidation condition of the signal data D, which is a condition, is satisfied, the signal data D is set to OFF.

たとえば、無効化条件を判定するたびに無効化条件の判定結果を保持して、全ての判定が終了した後に、まとめて信号データをOFFにする方法もある。しかし、このようにすると、いちいち無効化条件の判定結果を保持する必要が出てくる。上記のように、無効化条件が成立するたびに信号データをOFF設定することで、無効化条件の判定結果をその都度保持する必要がなくなる。 For example, there is also a method in which the determination result of the invalidation condition is held every time the invalidation condition is determined, and the signal data is turned off collectively after all the determinations are completed. However, in this way, it becomes necessary to retain the determination result of the invalidation condition one by one. As described above, by setting the signal data to OFF each time the invalidation condition is satisfied, it is not necessary to hold the determination result of the invalidation condition each time.

なお、本実施の形態においては、信号データC,Dを出力バッファBに設定し、出力バッファBに基づき出力ポート出力処理により信号C,信号Dを出力させるようにしたが、これに限らず、信号データC,Dを出力バッファBに設定することなく、信号データC,Dに基づき出力ポート出力処理により信号C,信号Dを出力させるようにしてもよい。 In the present embodiment, the signal data C and D are set in the output buffer B, and the signals C and D are output by the output port output process based on the output buffer B, but the present invention is not limited to this. Instead of setting the signal data C and D in the output buffer B, the signal C and D may be output by the output port output process based on the signal data C and D.

以上説明したように、先に出力データをON設定またはOFF設定し、条件の成立により必要に応じて当該出力データを更新することで、データ処理を簡素化することができる。たとえば、複数の信号データを含む1バイトデータがあり、各信号データが1バイトデータの中の各ビットに対応する(8ビット分の信号データを含む)場合、上記1バイトデータをFFHに書き換えることで、全ての信号データをON設定ことができる。また、上記1バイトデータを00Hに書き換えることで、全ての信号データをOFF設定することができる。 As described above, the data processing can be simplified by first setting the output data to ON or OFF and updating the output data as necessary when the conditions are satisfied. For example, when there is 1-byte data including a plurality of signal data and each signal data corresponds to each bit in the 1-byte data (including 8-bit signal data), the 1-byte data is rewritten to FFH. Then, all signal data can be set to ON. Further, by rewriting the 1-byte data to 00H, all signal data can be set to OFF.

プログラムが用いる命令としては、データをON設定する命令よりもデータをOFF設定(クリア)する命令の方が充実している。たとえば、上記1バイトデータを保持するレジスタに対して、00HまたはFFHのデータを保持するレジスタの内容を読み込ませてデータをOFF設定(00H)またはON設定(FFH)することができる。これに対して、データのOFF設定に関しては、クリア命令の実行により一回でデータをクリア(00H)することができるため、処理容量が少なくなる。 As the instructions used by the program, the instructions for setting (clearing) the data to OFF are more substantial than the instructions for setting the data to ON. For example, the contents of the register holding 00H or FFH data can be read from the register holding the 1-byte data to set the data OFF (00H) or ON (FFH). On the other hand, regarding the data OFF setting, the data can be cleared (00H) at one time by executing the clear instruction, so that the processing capacity is reduced.

このため、データを一旦OFFに設定にしてから必要に応じてONに設定する方が、処理容量削減の点から考えれば望ましい。そこで、割込側設定処理においては、先に出力データをONに設定し、条件の成立により当該出力データをOFFに設定している。これにより、プログラムをより簡素化している。一方で、メイン処理で先にON設定をしてしまうと、割込処理が実行されることによって、誤った信号が出力されてしまう虞がある。このため、メイン側設定処理においては、先に出力データをOFFに設定し、成立条件の成立により当該出力データをONに設定している。これにより、誤った信号が出力されることを防止することができる。 Therefore, it is desirable to set the data to OFF once and then set it to ON as needed from the viewpoint of reducing the processing capacity. Therefore, in the interrupt side setting process, the output data is set to ON first, and the output data is set to OFF when the condition is satisfied. This simplifies the program. On the other hand, if the ON setting is made first in the main process, there is a risk that an erroneous signal will be output due to the execution of the interrupt process. Therefore, in the main side setting process, the output data is set to OFF first, and the output data is set to ON when the establishment condition is satisfied. This makes it possible to prevent an erroneous signal from being output.

[本実施形態のスロットマシンが有する構成および奏する効果]
次に、本実施形態のスロットマシンが有する構成および奏する効果を説明する。
[Structure and effect of the slot machine of the present embodiment]
Next, the configuration and the effect of the slot machine of the present embodiment will be described.

(1−1) 各々が識別可能な複数種類の識別情報を変動表示可能な可変表示部を複数備え、
前記可変表示部を変動表示した後、前記可変表示部の変動表示を停止することで表示結果を導出し、複数の可変表示部の表示結果の組合せである表示結果組合せに応じて入賞が発生可能なスロットマシン(たとえば、スロットマシン1)において、
表示結果組合せを導出させるために操作される複数の導出操作手段(たとえば、ストップスイッチ8L,8C,8R)と、
所定の処理を実行する処理手段(たとえば、メインCPU41a)とを備え、
前記処理手段によって実行される前記所定の処理には、メイン処理(たとえば、図9に示すメイン処理)と、割込の発生に基づき前記メイン処理に割り込んで実行される割込処理(たとえば、図16に示すタイマ割込処理(メイン))とが含まれ、
前記処理手段は、
割込処理において、前記複数の導出操作手段のうちのいずれかの操作に基づく入力の有無を判定し、前記複数の導出操作手段のうちの第1導出操作手段(たとえば、左ストップスイッチ)の操作に基づく第1入力(たとえば、左ストップスイッチ信号のONエッジの検出)があったと判定した場合、当該割込処理後の前記メイン処理において、前記複数の可変表示部のうちの第1可変表示部(たとえば、透視窓3を介して遊技者側から視認可能な左リールの領域)における変動表示の停止位置を設定するための第1設定処理(たとえば、リール停止滑りコマ格納処理)を実行し(たとえば、左ストップスイッチの操作に基づく左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、左リールの停止位置を設定するためのリール停止滑りコマ格納処理(左)を実行する)、
前記第1設定処理を開始した後、当該第1設定処理が完了するまで新たな割込処理の実行を禁止し、当該第1設定処理が完了した後に当該新たな割込処理を実行し(たとえば、図13,図14に示すように、リール停止滑りコマ格納処理(左)を開始した後、リール停止滑りコマ格納処理(左)が完了するまで新たな割込処理の実行を禁止し、当該リール停止滑りコマ格納処理(左)が完了した後に新たな割込処理を実行する)、
前記新たな割込処理において、前記複数の導出操作手段のうちのいずれかの操作に基づく入力の有無を判定し、前記複数の導出操作手段のうちの第2導出操作手段(たとえば、中ストップスイッチ)の操作に基づく第2入力(たとえば、中ストップスイッチ信号のONエッジの検出)があったと判定した場合、当該新たな割込処理後の前記メイン処理において、前記複数の可変表示部のうちの第2可変表示部(たとえば、透視窓3を介して遊技者側から視認可能な中リールの領域)における変動表示の停止位置を設定するための第2設定処理(たとえば、リール停止滑りコマ格納処理)を実行するものであり(たとえば、図13,図14に示すように、新たな割込処理において、中ストップスイッチの操作に基づく中ストップスイッチ信号のONエッジが検出された場合、新たな割込処理後のメイン処理において、中リールの停止位置を設定するためのリール停止滑りコマ格納処理(中)を実行する)、
前記処理手段は、さらに、前記新たな割込処理後の前記メイン処理において、前記可変表示部の変動表示が正常であるか否か(たとえば、リール回転エラー)を判定し、当該変動表示が正常でないと判定した場合、当該新たな割込処理において判定した前記第2入力に基づいて前記第2設定処理を実行せず、当該変動表示が正常であると判定した場合、当該新たな割込処理において判定した前記第2入力に基づいて前記第2設定処理を実行する(たとえば、新たな割込処理後のメイン処理において、リール回転エラーが発生しているか否かを判定し、リール回転エラーが発生している場合、新たな割込処理に基づいてリール停止滑りコマ格納処理(中)を実行せず、リール回転エラーが発生と判定した場合に、新たな割込処理に基づいてリール停止滑りコマ格納処理(中)を実行する)。
(1-1) A plurality of variable display units capable of variablely displaying a plurality of types of identification information, each of which can be identified, are provided.
After variable display of the variable display unit, the display result is derived by stopping the variable display of the variable display unit, and a prize can be generated according to the display result combination which is a combination of the display results of a plurality of variable display units. In a slot machine (for example, slot machine 1)
A plurality of derivation operation means (for example, stop switches 8L, 8C, 8R) operated to derive a display result combination, and
A processing means (for example, main CPU 41a) for executing a predetermined process is provided.
The predetermined process executed by the processing means includes a main process (for example, the main process shown in FIG. 9) and an interrupt process (for example, FIG. 9) executed by interrupting the main process based on the occurrence of an interrupt. The timer interrupt process (main) shown in 16 is included.
The processing means
In the interrupt process, it is determined whether or not there is an input based on any of the plurality of derivation operation means, and the operation of the first derivation operation means (for example, the left stop switch) among the plurality of derivation operation means is performed. When it is determined that there is a first input (for example, detection of an ON edge of a left stop switch signal) based on the above, in the main process after the interrupt process, the first variable display unit among the plurality of variable display units is used. The first setting process (for example, the reel stop slip piece storage process) for setting the stop position of the variation display in (for example, the area of the left reel that can be seen from the player side through the see-through window 3) is executed (for example. For example, when the ON edge of the left stop switch signal based on the operation of the left stop switch is detected, the reel stop slip piece storage process for setting the stop position of the left reel in the main process after the interrupt process (left). To execute),
After starting the first setting process, execution of the new interrupt process is prohibited until the first setting process is completed, and after the first setting process is completed, the new interrupt process is executed (for example). , As shown in FIGS. 13 and 14, after starting the reel stop slip piece storage process (left), execution of a new interrupt process is prohibited until the reel stop slide piece storage process (left) is completed. A new interrupt process is executed after the reel stop slip frame storage process (left) is completed),
In the new interrupt process, it is determined whether or not there is an input based on any of the plurality of derivation operation means, and the second derivation operation means (for example, the middle stop switch) of the plurality of derivation operation means is determined. ), When it is determined that there is a second input (for example, detection of the ON edge of the middle stop switch signal), among the plurality of variable display units in the main process after the new interrupt process. A second setting process (for example, a reel stop slip piece storage process) for setting a stop position of the variation display in the second variable display unit (for example, a region of the middle reel that can be seen from the player side through the see-through window 3). ) Is executed (for example, as shown in FIGS. 13 and 14, when the ON edge of the middle stop switch signal based on the operation of the middle stop switch is detected in the new interrupt process, a new interrupt is executed. In the main process after the interrupt process, the reel stop slide frame storage process (middle) for setting the stop position of the middle reel is executed),
The processing means further determines whether or not the variation display of the variable display unit is normal (for example, a reel rotation error) in the main process after the new interrupt process, and the variation display is normal. If it is determined that this is not the case, the second setting process is not executed based on the second input determined in the new interrupt process, and if it is determined that the variation display is normal, the new interrupt process is performed. The second setting process is executed based on the second input determined in (For example, it is determined whether or not a reel rotation error has occurred in the main process after the new interrupt process, and a reel rotation error occurs. If it occurs, the reel stop slip frame storage process (middle) is not executed based on the new interrupt process, and if it is determined that a reel rotation error has occurred, the reel stop slip is based on the new interrupt process. Execute the frame storage process (middle)).

たとえば、本実施の形態においては、図13,図14に示すように、左ストップスイッチの操作に基づく左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、左リールの停止位置を設定するためのリール停止滑りコマ格納処理(左)を実行し、リール停止滑りコマ格納処理(左)を開始した後、リール停止滑りコマ格納処理(左)が完了するまで新たな割込処理の実行を禁止し、リール停止滑りコマ格納処理(左)が完了した後に新たな割込処理を実行し、新たな割込処理において、中ストップスイッチの操作に基づく中ストップスイッチ信号のONエッジが検出された場合、新たな割込処理後のメイン処理において、中リールの停止位置を設定するためのリール停止滑りコマ格納処理(中)を実行する。このようにすることで、左ストップスイッチの操作に基づくリール停止滑りコマ格納処理(左)が完了する前に中ストップスイッチの操作に基づくリール停止滑りコマ格納処理(中)が実行されることを防止することができる。また、新たな割込処理後のメイン処理において、リール回転エラーが発生しているか否かを判定し、リール回転エラーが発生している場合、新たな割込処理に基づいてリール停止滑りコマ格納処理(中)を実行せず、リール回転エラーが発生していないと判定した場合に、新たな割込処理に基づいてリール停止滑りコマ格納処理(中)を実行する。このようにすることで、リールの回転が正常であることを条件に、中ストップスイッチの操作に基づくリール停止滑りコマ格納処理(中)が実行されることを担保することができる。このように、リールの停止位置を設定するためのリール停止滑りコマ格納処理を連続的に実行する場合に、好適にリール停止滑りコマ格納処理を実行することができる。 For example, in the present embodiment, as shown in FIGS. 13 and 14, when the ON edge of the left stop switch signal based on the operation of the left stop switch is detected, the left reel is used in the main process after the interrupt process. After executing the reel stop slip piece storage process (left) to set the stop position of, and starting the reel stop slide piece storage process (left), a new reel stop slide piece storage process (left) is completed. The execution of the interrupt process is prohibited, a new interrupt process is executed after the reel stop slip frame storage process (left) is completed, and in the new interrupt process, the middle stop switch signal based on the operation of the middle stop switch is displayed. When the ON edge is detected, in the main process after the new interrupt process, the reel stop slip frame storage process (middle) for setting the stop position of the middle reel is executed. By doing so, the reel stop slip piece storage process (middle) based on the operation of the middle stop switch is executed before the reel stop slip piece storage process (left) based on the operation of the left stop switch is completed. Can be prevented. Further, in the main process after the new interrupt process, it is determined whether or not a reel rotation error has occurred, and if a reel rotation error has occurred, the reel stop slip piece is stored based on the new interrupt process. When it is determined that the reel rotation error has not occurred without executing the process (middle), the reel stop slip frame storage process (middle) is executed based on the new interrupt process. By doing so, it is possible to ensure that the reel stop slip piece storage process (middle) based on the operation of the middle stop switch is executed on condition that the reel rotation is normal. In this way, when the reel stop slip piece storage process for setting the reel stop position is continuously executed, the reel stop slide piece storage process can be preferably executed.

(1−2) 前記処理手段は、
前記第1設定処理を完了した後、当該第1設定処理により設定された前記第1可変表示部における変動表示の停止位置を示す第1停止コマンド(たとえば、リール停止位置コマンド)を出力し(たとえば、図14に示すように、リール停止滑りコマ格納処理(左)を完了した後、リール停止滑りコマ格納処理(左)により設定された左リールの停止位置を示すリール停止位置コマンドを出力する)、
前記第1停止コマンドを出力するための設定が完了するまで、割込処理の実行を禁止する(たとえば、図14に示すように、左リールの停止位置を示すリール停止位置コマンドを出力するための設定が完了するまで、割込処理の実行を禁止する)。
(1-2) The processing means is
After completing the first setting process, a first stop command (for example, a reel stop position command) indicating a stop position of the variation display in the first variable display unit set by the first setting process is output (for example). , As shown in FIG. 14, after completing the reel stop slip piece storage process (left), a reel stop position command indicating the stop position of the left reel set by the reel stop slide piece storage process (left) is output). ,
Execution of the interrupt process is prohibited until the setting for outputting the first stop command is completed (for example, as shown in FIG. 14, for outputting the reel stop position command indicating the stop position of the left reel. Execution of interrupt processing is prohibited until the setting is completed).

たとえば、本実施の形態においては、図14に示すように、リール停止滑りコマ格納処理(左)を完了した後、リール停止滑りコマ格納処理(左)により設定された左リールの停止位置を示すリール停止位置コマンドを出力し、左リールの停止位置を示すリール停止位置コマンドを出力するための設定が完了するまで、割込処理の実行を禁止する。このため、リール停止位置コマンドの送信が完了する前に新たなストップスイッチの操作に基づく処理が行われない。 For example, in the present embodiment, as shown in FIG. 14, after the reel stop slip piece storage process (left) is completed, the stop position of the left reel set by the reel stop slide piece storage process (left) is shown. The execution of the interrupt process is prohibited until the setting for outputting the reel stop position command and outputting the reel stop position command indicating the stop position of the left reel is completed. Therefore, the process based on the operation of the new stop switch is not performed before the transmission of the reel stop position command is completed.

(1−3) 前記処理手段は、
前記第1停止コマンドを出力する際に当該第1停止コマンドを含む複数のコマンドを出力し(たとえば、リール停止受付け時コマンド、リール停止位置コマンド、滑りコマ数コマンド、リール停止コマンド)、

前記複数のコマンドを出力するための設定が完了するまで、割込処理の実行を禁止する(たとえば、図14に示すように、複数のコマンドを出力するための設定が完了するまで割込処理の実行を禁止する)。
(1-3) The processing means is
When the first stop command is output, a plurality of commands including the first stop command are output (for example, a reel stop acceptance command, a reel stop position command, a slip frame number command, a reel stop command).

Execution of the interrupt process is prohibited until the setting for outputting the plurality of commands is completed (for example, as shown in FIG. 14, the interrupt process is performed until the setting for outputting the plurality of commands is completed. Prohibit execution).

たとえば、本実施の形態においては、図14に示すように、リール停止位置コマンドを出力する際にリール停止受付け時コマンド、滑りコマ数コマンドおよびリール停止コマンドを出力し、これらの複数のコマンドを出力するための設定が完了するまで割込処理の実行を禁止する。このように、複数のコマンドを出力するための設定が完了するまでに、割込処理により意図しないコマンドが出力されたり、複数のコマンド間で送信間隔が大きく空くことを防止することができる。 For example, in the present embodiment, as shown in FIG. 14, when the reel stop position command is output, the reel stop acceptance time command, the slip frame number command, and the reel stop command are output, and a plurality of these commands are output. The execution of the interrupt process is prohibited until the setting for the operation is completed. In this way, it is possible to prevent an unintended command from being output by the interrupt process or a large transmission interval between the plurality of commands before the setting for outputting the plurality of commands is completed.

(1−4) 前記処理手段は、前記第2設定処理において、前記第1設定処理により設定された前記第1可変表示部における変動表示の停止位置に基づいて、前記第2可変表示部における変動表示の停止位置を設定する(たとえば、図13に示すように、リール停止滑りコマ格納処理(中)において、リール停止滑りコマ格納処理(左)により設定された左リールの停止位置に基づいて、中リールの停止位置を設定する。)。 (1-4) In the second setting process, the processing means changes in the second variable display unit based on the stop position of the variation display in the first variable display unit set by the first setting process. Set the stop position of the display (for example, as shown in FIG. 13, in the reel stop slip piece storage process (middle), based on the stop position of the left reel set by the reel stop slide piece storage process (left). Set the stop position of the middle reel.)

たとえば、本実施の形態においては、図13に示すように、リール停止滑りコマ格納処理(中)において、リール停止滑りコマ格納処理(左)により設定された左リールの停止位置に基づいて、中リールの停止位置を設定する。このように、中リールの停止位置は左リールの停止位置に基づいて設定されるため、導出される図柄組合せが多様になる。 For example, in the present embodiment, as shown in FIG. 13, in the reel stop slip piece storage process (middle), the middle is based on the stop position of the left reel set by the reel stop slip piece storage process (left). Set the reel stop position. In this way, since the stop position of the middle reel is set based on the stop position of the left reel, the symbol combinations to be derived are diverse.

(1−5) 前記処理手段は、前記第2可変表示部における変動表示が停止することで表示結果組合せが導出される場合であっても、前記第2設定処理を開始した後、当該第2設定処理が完了するまで、新たな割込処理の実行を禁止する(たとえば、図14に示すように、左リールが停止することで図柄組合せが導出される場合であっても、リール停止滑りコマ格納処理(中)を開始した後、リール停止滑りコマ格納処理(中)が完了するまで、新たな割込処理の実行を禁止する)。 (1-5) Even when the display result combination is derived by stopping the variation display in the second variable display unit, the processing means performs the second setting process after starting the second setting process. Execution of a new interrupt process is prohibited until the setting process is completed (for example, as shown in FIG. 14, even if the symbol combination is derived by stopping the left reel, the reel stop slip frame After starting the storage process (middle), execution of a new interrupt process is prohibited until the reel stop slip frame storage process (middle) is completed).

たとえば、本実施の形態においては、図14に示すように、中リールが停止することで図柄組合せが導出される場合であっても、リール停止滑りコマ格納処理(中)を開始した後、リール停止滑りコマ格納処理(中)が完了するまで、新たな割込処理の実行を禁止する。このように、リール停止滑りコマ格納処理の実行中に他の処理が実行されないため、速やかにリールを停止させる制御を行うことができる。 For example, in the present embodiment, as shown in FIG. 14, even when the symbol combination is derived by stopping the middle reel, after starting the reel stop sliding piece storage process (middle), the reel Execution of a new interrupt process is prohibited until the stop slip frame storage process (middle) is completed. As described above, since other processes are not executed during the execution of the reel stop sliding frame storage process, it is possible to control the reels to be stopped promptly.

(1−6) 前記処理手段は、前記第1可変表示部および前記第2可変表示部がともに変動表示している場合の割込処理において、前記第1入力および前記第2入力があったと判定した場合、当該割込処理後の前記メイン処理において、前記第1設定処理を実行する一方で、前記第2設定処理を実行しない(たとえば、図19に示すように、左リールおよび中リールがともに回転している場合の割込処理において、左ストップスイッチ信号および中ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、リール停止滑りコマ格納処理(左)を実行する一方で、リール停止滑りコマ格納処理(中)を実行しない。)。 (1-6) The processing means determines that the first input and the second input have been made in the interrupt processing when both the first variable display unit and the second variable display unit are variable-displayed. If this is the case, in the main process after the interrupt process, the first setting process is executed, but the second setting process is not executed (for example, as shown in FIG. 19, both the left reel and the middle reel are both executed. When the ON edge of the left stop switch signal and the middle stop switch signal is detected in the interrupt process when rotating, the reel stop slip frame storage process (left) is executed in the main process after the interrupt process. On the other hand, the reel stop slip piece storage process (middle) is not executed.)

たとえば、本実施の形態においては、図19に示すように、左リールおよび中リールがともに回転している場合の割込処理において、左ストップスイッチ信号および中ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、リール停止滑りコマ格納処理(左)を実行する一方で、リール停止滑りコマ格納処理(中)を実行しない。しかし、一の割込処理でもずれて左ストップスイッチ信号および中ストップスイッチ信号のONエッジが検出された場合には左リールおよび中リールが停止可能となるため、速やかにリールを停止させることができる。 For example, in the present embodiment, as shown in FIG. 19, the ON edge of the left stop switch signal and the middle stop switch signal is detected in the interrupt process when both the left reel and the middle reel are rotating. In this case, in the main process after the interrupt process, the reel stop slip frame storage process (left) is executed, but the reel stop slide frame storage process (middle) is not executed. However, if the ON edge of the left stop switch signal and the middle stop switch signal is detected even in one interrupt process, the left reel and the middle reel can be stopped, so that the reels can be stopped promptly. ..

(1−7) 前記処理手段は、
前記第1可変表示部および前記第2可変表示部がともに変動表示している場合の所定の割込処理において、前記第1入力があったと判定した場合、当該所定の割込処理後の前記メイン処理において、前記第1設定処理を実行可能であり(たとえば、図17に示すように、左リールおよび中リールがともに回転している場合の所定の割込処理において、左ストップスイッチ信号のONエッジが検出された場合、所定の割込処理後のメイン処理において、リール停止滑りコマ格納処理(左)を実行する)、
前記所定の割込処理の後の割込処理において、前記第2入力があったと判定した場合、当該割込処理後の前記メイン処理において、前記第2設定処理を実行可能である(たとえば、図17に示すように、所定の割込処理の後の割込処理において、中ストップスイッチ信号のONエッジが検出された場合、当該割込処理後のメイン処理において、リール停止滑りコマ格納処理(中)を実行する)。
(1-7) The processing means is
When it is determined that the first input has been made in the predetermined interrupt processing when both the first variable display unit and the second variable display unit are variable display, the main after the predetermined interrupt processing is performed. In the process, the first setting process can be executed (for example, as shown in FIG. 17, in a predetermined interrupt process when both the left reel and the middle reel are rotating, the ON edge of the left stop switch signal is executed. Is detected, the reel stop slip frame storage process (left) is executed in the main process after the predetermined interrupt process),
When it is determined that the second input has been made in the interrupt process after the predetermined interrupt process, the second setting process can be executed in the main process after the interrupt process (for example, FIG. As shown in 17, when the ON edge of the middle stop switch signal is detected in the interrupt process after the predetermined interrupt process, the reel stop slip frame storage process (middle) is performed in the main process after the interrupt process. ) Is executed).

たとえば、本実施の形態においては、図17に示すように、左リールおよび中リールがともに回転している場合の所定の割込処理において、左ストップスイッチ信号のONエッジが検出された場合、所定の割込処理後のメイン処理において、リール停止滑りコマ格納処理(左)を実行し、所定の割込処理の後の割込処理において、中ストップスイッチ信号のONエッジが検出された場合、当該割込処理後のメイン処理において、リール停止滑りコマ格納処理(中)を実行する。このように、一の割込処理でもずれて左ストップスイッチ信号および中ストップスイッチ信号のONエッジが検出された場合には左リールおよび中リールが停止可能となるため、速やかにリールを停止させることができる。 For example, in the present embodiment, as shown in FIG. 17, when the ON edge of the left stop switch signal is detected in a predetermined interrupt process when both the left reel and the middle reel are rotating, it is predetermined. When the reel stop slip frame storage process (left) is executed in the main process after the interrupt process of, and the ON edge of the middle stop switch signal is detected in the interrupt process after the predetermined interrupt process, the corresponding In the main process after the interrupt process, the reel stop slip frame storage process (middle) is executed. In this way, if the ON edge of the left stop switch signal and the middle stop switch signal is detected even with one interrupt process, the left reel and the middle reel can be stopped, so the reels should be stopped promptly. Can be done.

(1−8) 前記処理手段は、
前記第1可変表示部および前記第2可変表示部がともに変動表示している場合の所定の割込処理において、前記第1入力および前記第2入力があったと判定した場合、当該所定の割込処理後の前記メイン処理において、前記第1設定処理を実行する一方で、前記第2設定処理を実行せず(たとえば、図19に示すように、左リールおよび中リールがともに回転している場合の所定の割込処理において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、所定の割込処理後のメイン処理において、リール停止滑りコマ格納処理(左)を実行する一方で、リール停止滑りコマ格納処理(中)を実行しない)、
前記所定の割込処理の後の割込処理において、前記第1入力および前記第2入力があったと判定した場合、当該割込処理後の前記メイン処理において、前記第2設定処理を実行する一方で、前記第1設定処理を実行しない(たとえば、図19に示すように、所定の割込処理の後の割込処理において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、リール停止滑りコマ格納処理(中)を実行する一方で、リール停止滑りコマ格納処理(左)を実行しない)。
(1-8) The processing means is
When it is determined that the first input and the second input are present in the predetermined interrupt processing when both the first variable display unit and the second variable display unit are variable display, the predetermined interrupt is performed. In the main process after the process, when the first setting process is executed but the second setting process is not executed (for example, as shown in FIG. 19, both the left reel and the middle reel are rotating). When the ON edge of the left stop switch signal and the ON edge of the left stop switch signal are detected in the predetermined interrupt process, the reel stop slip frame storage process (left) is performed in the main process after the predetermined interrupt process. While executing, do not execute the reel stop slip frame storage process (middle)),
When it is determined that the first input and the second input are present in the interrupt process after the predetermined interrupt process, the second setting process is executed in the main process after the interrupt process. The first setting process is not executed (for example, as shown in FIG. 19, the ON edge of the left stop switch signal and the ON edge of the left stop switch signal are detected in the interrupt process after the predetermined interrupt process. If this is done, in the main process after the interrupt process, the reel stop slip frame storage process (middle) is executed, while the reel stop slide frame storage process (left) is not executed).

たとえば、本実施の形態においては、図19に示すように、左リールおよび中リールがともに回転している場合の所定の割込処理において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、所定の割込処理後のメイン処理において、リール停止滑りコマ格納処理(左)を実行する一方で、リール停止滑りコマ格納処理(中)を実行しない。また、所定の割込処理の後の割込処理において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、リール停止滑りコマ格納処理(中)を実行する一方で、リール停止滑りコマ格納処理(左)を実行しない。このように、左ストップスイッチおよび中ストップスイッチが同時に操作された場合に、回転中のリールが停止することになるため、ストップスイッチの操作性を損ねない。 For example, in the present embodiment, as shown in FIG. 19, in a predetermined interrupt process when both the left reel and the middle reel are rotating, the ON edge of the left stop switch signal and the ON edge of the left stop switch signal are ON. When an edge is detected, the reel stop slip piece storage process (left) is executed, but the reel stop slip piece storage process (middle) is not executed in the main process after the predetermined interrupt process. Further, when the ON edge of the left stop switch signal and the ON edge of the left stop switch signal are detected in the interrupt process after the predetermined interrupt process, the reel stop slip piece is stored in the main process after the interrupt process. While the process (middle) is executed, the reel stop slip frame storage process (left) is not executed. In this way, when the left stop switch and the middle stop switch are operated at the same time, the rotating reel is stopped, so that the operability of the stop switch is not impaired.

(1−9) 前記処理手段は、
前記第1可変表示部における変動表示が停止しかつ前記第2可変表示部が変動表示している場合の割込処理において、前記第1入力および前記第2入力があったと判定した場合、当該割込処理後の前記メイン処理において、前記第2設定処理を実行し(たとえば、図19に示すように、左リールが停止しかつ中リールが回転している場合の割込処理において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、リール停止滑りコマ格納処理(中)を実行する)、
前記第2可変表示部における変動表示が停止しかつ前記第1可変表示部が変動表示している場合の割込処理において、前記第1入力および前記第2入力があったと判定した場合、当該割込処理後の前記メイン処理において、前記第1設定処理を実行する(たとえば、図19に示すように、中リールが停止しかつ左リールが回転している場合の割込処理において、中ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、リール停止滑りコマ格納処理(左)を実行する)。
(1-9) The processing means is
When it is determined that the first input and the second input are present in the interrupt process when the variable display in the first variable display unit is stopped and the second variable display unit is variable display, the interrupt processing is performed. In the main process after the interrupt process, the second setting process is executed (for example, as shown in FIG. 19, in the interrupt process when the left reel is stopped and the middle reel is rotating, the left stop switch is used. When the ON edge of the signal and the ON edge of the left stop switch signal are detected, the reel stop slip frame storage process (middle) is executed in the main process after the interrupt process),
When it is determined that the first input and the second input are present in the interrupt process when the variable display in the second variable display unit is stopped and the first variable display unit is variable display, the interrupt processing is performed. In the main process after the interrupt process, the first setting process is executed (for example, as shown in FIG. 19, in the interrupt process when the middle reel is stopped and the left reel is rotating, the middle stop switch is used. When the ON edge of the signal and the ON edge of the left stop switch signal are detected, the reel stop slip frame storage process (left) is executed in the main process after the interrupt process).

たとえば、本実施の形態においては、図19に示すように、左リールが停止しかつ中リールが回転している場合の割込処理において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、リール停止滑りコマ格納処理(中)を実行し、中リールが停止しかつ左リールが回転している場合の割込処理において、中ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、リール停止滑りコマ格納処理(左)を実行する。このように、同一割込処理において複数のストップスイッチ信号のONエッジが検出されたとしても、回転中のリールのリール停止滑りコマ格納処理が実行されるため、操作性を損ねることがない。 For example, in the present embodiment, as shown in FIG. 19, in the interrupt process when the left reel is stopped and the middle reel is rotating, the ON edge of the left stop switch signal and the ON edge of the left stop switch signal are ON. When an edge is detected, the reel stop slip frame storage process (middle) is executed in the main process after the interrupt process, and in the interrupt process when the middle reel is stopped and the left reel is rotating, the middle reel is executed. When the ON edge of the stop switch signal and the ON edge of the left stop switch signal are detected, the reel stop slip frame storage process (left) is executed in the main process after the interrupt process. As described above, even if the ON edges of a plurality of stop switch signals are detected in the same interrupt process, the reel stop slip frame storage process of the rotating reel is executed, so that the operability is not impaired.

(1−10) 前記処理手段は、
割込処理において前記第1入力があったと判定した場合、当該割込処理後の前記メイン処理において、前記第1可変表示部における変動表示の位置が、当該第1可変表示部のそれぞれの識別情報(たとえば、図柄)に対応する範囲(たとえば、各図柄のステップ数)における共通のステップ(たとえば、11ステップ)の位置となったときに識別情報に対応する識別番号(たとえば、図柄番号)を取得し、当該識別番号に基づいて前記第1設定処理を実行し(たとえば、図14に示すように、割込処理において左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、左リールの位置が、左リールの各図柄のステップ数における所定ステップの位置となったときに図柄に対応する図柄番号を取得し、図柄番号に基づいてリール停止滑りコマ格納処理(左)を実行し)、
前記第1入力があったと判定した後、前記第1可変表示部における変動表示の位置が前記共通のステップの位置となるまで、前記第2入力があったとしても当該第2入力を受付けない(たとえば、図14に示すように、左ストップスイッチ信号のONエッジが検出された後、左リールの位置が11ステップの位置となるまで、中ストップスイッチ信号のONエッジが検出されたとしても中ストップスイッチ信号のONエッジを受付けない)。
(1-10) The processing means is
When it is determined that the first input has been made in the interrupt process, in the main process after the interrupt process, the position of the variable display on the first variable display unit is the identification information of each of the first variable display units. Acquire the identification number (for example, symbol number) corresponding to the identification information when the position of a common step (for example, 11 steps) is reached in the range corresponding to (for example, the symbol) (for example, the number of steps of each symbol). Then, the first setting process is executed based on the identification number (for example, as shown in FIG. 14, when the ON edge of the left stop switch signal is detected in the interrupt process, the main process after the interrupt process is performed. In, when the position of the left reel becomes the position of a predetermined step in the number of steps of each symbol of the left reel, the symbol number corresponding to the symbol is acquired, and the reel stop sliding frame storage process (left) is performed based on the symbol number. Execute),
After determining that the first input has been made, the second input is not accepted even if there is the second input until the position of the variable display in the first variable display unit becomes the position of the common step (the second input is not accepted). For example, as shown in FIG. 14, after the ON edge of the left stop switch signal is detected, the middle stop is detected even if the ON edge of the middle stop switch signal is detected until the position of the left reel reaches the position of 11 steps. Does not accept the ON edge of the switch signal).

たとえば、本実施の形態においては、図14に示すように、割込処理において左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、左リールの位置が、左リールの各図柄のステップ数における11ステップの位置となったときに図柄に対応する図柄番号を取得し、図柄番号に基づいてリール停止滑りコマ格納処理(左)を実行し、左ストップスイッチ信号のONエッジが検出された後、左リールの位置が11ステップの位置となるまで、中ストップスイッチ信号のONエッジが検出されたとしても中ストップスイッチ信号のONエッジを受付けない。このようにすることで、リール停止滑りコマ格納処理を11ステップの位置から実行可能となる。 For example, in the present embodiment, as shown in FIG. 14, when the ON edge of the left stop switch signal is detected in the interrupt process, the position of the left reel is set to the left reel in the main process after the interrupt process. When the position of 11 steps in the number of steps of each symbol is reached, the symbol number corresponding to the symbol is acquired, the reel stop sliding frame storage process (left) is executed based on the symbol number, and the left stop switch signal is turned ON. After the edge is detected, the ON edge of the middle stop switch signal is not accepted even if the ON edge of the middle stop switch signal is detected until the position of the left reel reaches the position of 11 steps. By doing so, the reel stop sliding frame storage process can be executed from the position of 11 steps.

(1−11) 前記複数の可変表示部における変動表示を開始するための開始操作手段(たとえば、スタートスイッチ7)をさらに備え、
前記処理手段は、
前記開始操作手段の操作に基づき、所定時間(たとえば、2秒)に亘って特定信号(たとえば、内部当選信号)を出力する制御を行い(たとえば、図13に示すように、スタートスイッチ7の操作に基づき、2秒に亘って内部当選信号を出力する制御を行い)、
前記所定時間が経過したことを条件に、前記複数の導出操作手段の操作を有効にする(たとえば、図13に示すように、2秒が経過したことを条件に、ストップスイッチ8L,8C,8Rの操作を有効にする)。
(1-11) Further provided with a start operation means (for example, a start switch 7) for starting variable display in the plurality of variable display units.
The processing means
Based on the operation of the start operation means, control is performed to output a specific signal (for example, an internal winning signal) for a predetermined time (for example, 2 seconds) (for example, as shown in FIG. 13, the operation of the start switch 7). Controls to output the internal winning signal for 2 seconds),
The operation of the plurality of derivation operation means is enabled on the condition that the predetermined time has elapsed (for example, as shown in FIG. 13, the stop switches 8L, 8C, 8R are enabled on the condition that 2 seconds have elapsed. Enable the operation of).

たとえば、本実施の形態においては、図13に示すように、スタートスイッチ7の操作に基づき、2秒に亘って内部当選信号を出力する制御を行い、2秒が経過したことを条件に、ストップスイッチ8L,8C,8Rの操作を有効にする。このようにすることで、外部装置(試験装置)において内部当選信号の内容を確認可能にした上で、リールが停止可能となる。 For example, in the present embodiment, as shown in FIG. 13, based on the operation of the start switch 7, the control to output the internal winning signal is performed for 2 seconds, and the stop is performed on the condition that 2 seconds have elapsed. Enable the operation of switches 8L, 8C, 8R. By doing so, the contents of the internal winning signal can be confirmed by the external device (test device), and then the reel can be stopped.

(1−12) 前記処理手段は、前記複数の可変表示部における変動表示を開始させるためのモータ(たとえば、リールモータ)に対して駆動信号(たとえば、第1〜第3リールモータφ0〜φ3信号)が出力されているか否かを判定することに基づいて、当該複数の可変表示部全ての変動表示が停止したか否かを判定する(たとえば、図14に示すように、リールモータに対してリールモータ信号が出力されているか否かを判定することに基づいて、全てのリールが停止したか否かを判定する)。 (1-12) The processing means has a drive signal (for example, a first to third reel motor φ0 to φ3 signal) with respect to a motor (for example, a reel motor) for starting a fluctuation display in the plurality of variable display units. ) Is output, and it is determined whether or not the fluctuation display of all the plurality of variable display units has stopped (for example, as shown in FIG. 14, with respect to the reel motor). Based on determining whether or not a reel motor signal is output, it is determined whether or not all reels have stopped).

たとえば、本実施の形態においては、図14に示すように、リールモータに対してリールモータ信号(第1〜第3リールモータφ0〜φ3信号)が出力されているか否かを判定することに基づいて、全てのリールが停止したか否かを判定する。このようにすることで、リールが停止したことをリールモータ信号の出力状況に基づいて判断することができる。 For example, in the present embodiment, as shown in FIG. 14, it is based on determining whether or not a reel motor signal (first to third reel motors φ0 to φ3 signals) is output to the reel motor. It is determined whether or not all the reels have stopped. By doing so, it is possible to determine that the reel has stopped based on the output status of the reel motor signal.

(1−13) 前記処理手段は、
前記モータに対する駆動信号および投入された遊技媒体の流路を切り替えるブロッカのソレノイド(たとえば、流路切替ソレノイド30)に対する駆動信号(たとえば、流路切替ソレノイド信号)を、特定ポート(たとえば、出力ポート0,1)から出力し(たとえば、図5に示すように、リールモータ信号および流路切替ソレノイド信号を出力ポート0,1から出力する)、
前記複数の可変表示部における変動表示を開始させるときに、前記ソレノイドに対する駆動信号の出力を停止し(たとえば、図14に示すように、全てのリールの回転を開始させるときに、流路切替ソレノイド信号の出力を停止し)、
前記特定ポートから信号が出力されているか否か判定することに基づいて、前記複数の可変表示部全ての変動表示が停止したか否かを判定する(たとえば、図12に示すように、出力ポート0,1から信号が出力されているか否か判定することに基づいて、全てのリールが停止したか否かを判定する)。
(1-13) The processing means is
The drive signal for the motor and the drive signal (for example, the flow path switching solenoid signal) for the blocker solenoid (for example, the flow path switching solenoid 30) for switching the flow path of the input game medium are set to the specific port (for example, the output port 0). , 1) (for example, as shown in FIG. 5, the reel motor signal and the flow path switching solenoid signal are output from the output ports 0 and 1).
When starting the fluctuation display in the plurality of variable display units, the output of the drive signal to the solenoid is stopped (for example, as shown in FIG. 14, when starting the rotation of all the reels, the flow path switching solenoid Stop the signal output),
Based on determining whether or not a signal is output from the specific port, it is determined whether or not the variable display of all of the plurality of variable display units has stopped (for example, as shown in FIG. 12, the output port. Based on determining whether or not a signal is output from 0, 1, it is determined whether or not all reels have stopped).

たとえば、本実施の形態においては、図5,図14に示すように、リールモータ信号および流路切替ソレノイド信号を出力ポート0,1から出力し、全てのリールの回転を開始させるときに、流路切替ソレノイド信号の出力を停止し、出力ポート0,1から信号が出力されているか否か判定することに基づいて、全てのリールが停止したか否かを判定する。このようにすることで、空きポートを好適に扱える一方で、全てのリールが停止したか否かの判定の妨げにならない。 For example, in the present embodiment, as shown in FIGS. 5 and 14, when the reel motor signal and the flow path switching solenoid signal are output from the output ports 0 and 1, the flow is started when all the reels are started to rotate. The output of the path switching solenoid signal is stopped, and it is determined whether or not all the reels have stopped based on the determination as to whether or not the signal is being output from the output ports 0 and 1. By doing so, while the empty port can be handled appropriately, it does not interfere with the determination of whether or not all the reels have stopped.

(2−1) 前記処理手段は、
遊技者所有の遊技用価値(たとえば、メダル)を用いることなく次の遊技を開始可能な再遊技入賞(たとえば、リプレイ入賞)が発生したことに基づきアウト信号(たとえば、払出信号)を出力し(たとえば、図22に示すように、リプレイ入賞が発生したことに基づき払出信号を出力し)、
前記再遊技入賞が発生した場合、当該再遊技入賞に基づく前記アウト信号の出力が完了したか否かに関わらず、当該再遊技入賞が発生した遊技の次の遊技において前記開始操作手段の操作を有効化する(たとえば、図22に示すように、リプレイ入賞が発生した場合、リプレイ入賞に基づく払出信号の出力が完了したか否かに関わらず、リプレイ入賞が発生した遊技の次の遊技において開始操作を有効化する)。
(2-1) The processing means is
An out signal (eg, payout signal) is output based on the occurrence of a replay win (eg, replay win) that allows the player to start the next game without using the player-owned game value (eg, medal) (for example, a payout signal). For example, as shown in FIG. 22, a payout signal is output based on the occurrence of a replay prize),
When the re-game winning is generated, the operation of the start operation means is performed in the next game of the game in which the re-game winning is generated, regardless of whether or not the output of the out signal based on the re-game winning is completed. Enable (for example, as shown in FIG. 22, when a replay winning occurs, it starts in the next game of the game in which the replay winning occurs, regardless of whether or not the output of the payout signal based on the replay winning is completed. Enable the operation).

たとえば、本実施の形態においては、図22に示すように、リプレイ入賞が発生したことに基づき払出信号を出力し、リプレイ入賞が発生した場合、リプレイ入賞に基づく払出信号の出力が完了したか否かに関わらず、リプレイ入賞が発生した遊技の次の遊技において開始操作を有効化する。このようにすることで、遊技の進行を速やかに進めることができる。 For example, in the present embodiment, as shown in FIG. 22, a payout signal is output based on the occurrence of a replay prize, and when a replay prize occurs, whether or not the output of the payout signal based on the replay prize is completed. Regardless, the start operation is enabled in the game following the game in which the replay prize has occurred. By doing so, the progress of the game can be promptly advanced.

(2−2) 前記処理手段は、
前記開始操作手段が操作されたことに基づきイン信号(たとえば、投入信号)を出力し(たとえば、図22に示すように、開始操作がされたことに基づき投入信号を出力する)、
前記アウト信号の出力が完了する前に前記開始操作手段が操作された場合、当該アウト信号の出力が完了した後に前記イン信号の出力を開始する(たとえば、図22に示すように、払出信号の出力が完了する前に開始操作がされた場合、払出信号の出力が完了した後に投入信号の出力を開始する)。
(2-2) The processing means is
An in signal (for example, an input signal) is output based on the operation of the start operation means (for example, as shown in FIG. 22, an input signal is output based on the start operation).
If the start operating means is operated before the output of the out signal is completed, the output of the in signal is started after the output of the out signal is completed (for example, as shown in FIG. 22, of the payout signal). If the start operation is performed before the output is completed, the output of the input signal is started after the output of the payout signal is completed).

たとえば、本実施の形態においては、図22に示すように、開始操作がされたことに基づき投入信号を出力し、払出信号の出力が完了する前に開始操作がされた場合、払出信号の出力が完了した後に投入信号の出力を開始する。このように、投入信号の出力を遅らせることで、投入信号および払出信号の出力タイミングが重ならないので、外部機器において受信した信号を確認することで、メインCPU41aが実行する処理の処理順序を特定しやすくなる。 For example, in the present embodiment, as shown in FIG. 22, when the input signal is output based on the start operation and the start operation is performed before the output of the payout signal is completed, the payout signal is output. Is completed, the output of the input signal is started. By delaying the output of the input signal in this way, the output timings of the input signal and the payout signal do not overlap. Therefore, by checking the signal received by the external device, the processing order of the processing executed by the main CPU 41a is specified. It will be easier.

(2−3) 前記処理手段は、
前記イン信号を出力する際には、前記アウト信号の出力状態を確認し、当該アウト信号が出力されていない場合に当該イン信号を出力し(たとえば、図22に示すように、投入信号を出力する際には、払出信号の出力状態を確認し、払出信号が出力されていない場合に投入信号を出力する)、
前記アウト信号を出力する際には、前記イン信号の出力状態を確認することなく当該アウト信号を出力する(たとえば、図22に示すように、払出信号を出力する際には、投入信号の出力状態を確認することなく払出信号を出力する)。
(2-3) The processing means is
When outputting the in signal, the output state of the out signal is confirmed, and when the out signal is not output, the in signal is output (for example, as shown in FIG. 22, an input signal is output. When doing so, check the output status of the payout signal, and if the payout signal is not output, output the input signal),
When the out signal is output, the out signal is output without confirming the output state of the in signal (for example, as shown in FIG. 22, when the payout signal is output, the input signal is output. Output the payout signal without checking the status).

たとえば、本実施の形態においては、図22に示すように、投入信号を出力する際には、払出信号の出力状態を確認し、払出信号が出力されていない場合に投入信号を出力し、払出信号を出力する際には、投入信号の出力状態を確認することなく払出信号を出力する。投入信号の出力中に払出信号が出力されることがないため、投入信号の出力状態の確認を省略することで、処理負担を軽減することができる。 For example, in the present embodiment, as shown in FIG. 22, when outputting the input signal, the output state of the payout signal is confirmed, and when the payout signal is not output, the input signal is output and the payout signal is output. When outputting the signal, the payout signal is output without confirming the output state of the input signal. Since the payout signal is not output during the output of the input signal, the processing load can be reduced by omitting the confirmation of the output state of the input signal.

(2−4) 前記処理手段は、
単位遊技(たとえば、1ゲーム)が終了したときに記憶手段(たとえば、RAM41c)における記憶領域を初期化する第1初期化処理(たとえば、遊技終了時に遊技用RAMの領域Dをクリアする処理(Sa2))と、
遊技者にとって有利な有利状態(たとえば、ボーナス状態)への制御が終了したときに前記記憶手段における記憶領域を初期化する第2初期化処理(たとえば、ボーナス終了時に遊技用RAMの領域C,Dをクリアする処理(Sa2))とを実行可能であり、
前記第1初期化処理および前記第2初期化処理のいずれによっても初期化されない前記記憶手段における記憶領域(たとえば、遊技RAM領域のうちの領域A)に、前記アウト信号の出力データを設定する(たとえば、図21(B)に示すように、遊技終了時に遊技用RAMの領域Dをクリアする処理およびボーナス終了時に遊技用RAMの領域C,Dをクリアする処理のいずれによっても初期化されない遊技用RAMの領域Aに払出信号の出力データを設定する)。
(2-4) The processing means is
The first initialization process (for example, the process of clearing the area D of the game RAM at the end of the game (Sa2)) that initializes the storage area in the storage means (for example, RAM 41c) when the unit game (for example, one game) is completed. ))When,
The second initialization process (for example, the area C, D of the game RAM at the end of the bonus) that initializes the storage area in the storage means when the control to the advantageous state (for example, the bonus state) advantageous to the player is completed. It is possible to execute the process of clearing (Sa2)).
The output data of the out signal is set in the storage area (for example, the area A of the game RAM area) in the storage means that is not initialized by either the first initialization process or the second initialization process (for example, the output data of the out signal). For example, as shown in FIG. 21B, the game is not initialized by either the process of clearing the area D of the game RAM at the end of the game and the process of clearing the areas C and D of the game RAM at the end of the bonus. The output data of the payout signal is set in the area A of the RAM).

たとえば、本実施の形態においては、図21(B)に示すように、遊技終了時に遊技用RAMの領域Dをクリアする処理およびボーナス終了時に遊技用RAMの領域C,Dをクリアする処理のいずれによっても初期化されない遊技用RAMの領域Aに払出信号の出力データを設定する。このようにすることで、遊技用RAMのクリア処理によって意図せず払出信号の出力が停止することを防止することができる。 For example, in the present embodiment, as shown in FIG. 21B, either the process of clearing the area D of the game RAM at the end of the game or the process of clearing the areas C and D of the game RAM at the end of the bonus. The output data of the payout signal is set in the area A of the game RAM that is not initialized even by. By doing so, it is possible to prevent the output of the payout signal from being unintentionally stopped due to the clearing process of the gaming RAM.

(2−5) 前記処理手段は、前記再遊技入賞の発生に基づく遊技を開始するための賭数の設定を、前記アウト信号の出力を開始した後に実行する(たとえば、図20に示すように、リプレイ入賞の発生に基づく遊技を開始するためのBET数の設定を、払出信号の出力を開始した後に実行する)。 (2-5) The processing means executes the setting of the number of bets for starting the game based on the occurrence of the re-game winning after starting the output of the out signal (for example, as shown in FIG. 20). , Set the number of BETs to start the game based on the occurrence of the replay prize, after starting the output of the payout signal).

たとえば、本実施の形態においては、図20に示すように、リプレイ入賞の発生に基づく遊技を開始するためのBET数の設定を、払出信号の出力を開始した後に実行する。このように、伝達に時間がかかる外部への情報出力である払出信号の出力をいち早く行うことで、遊技の進行を妨げない。 For example, in the present embodiment, as shown in FIG. 20, the number of BETs for starting the game based on the occurrence of the replay winning is set after the output of the payout signal is started. In this way, by promptly outputting the payout signal, which is an information output to the outside, which takes time to transmit, the progress of the game is not hindered.

(2−6) 前記処理手段は、
前記アウト信号の出力中において、移行条件(たとえば、エラー発生、設定変更操作)が成立した場合に特定状態(たとえば、エラー状態、設定変更状態)に制御し、
前記特定状態に制御した場合であっても、前記アウト信号の出力が完了するまで当該アウト信号の出力を継続する(たとえば、図10に示すように、エラー状態に制御された場合であっても、払出信号の出力が完了するまで払出信号の出力を継続する)。
(2-6) The processing means is
During the output of the out signal, when a transition condition (for example, error occurrence, setting change operation) is satisfied, control is performed to a specific state (for example, error state, setting change state).
Even when controlled to the specific state, the output of the out signal is continued until the output of the out signal is completed (for example, even when controlled to the error state as shown in FIG. 10). , The output of the payout signal is continued until the output of the payout signal is completed).

たとえば、本実施の形態においては、図10に示すように、払出信号の出力中において、エラーが発生した場合にエラー状態に制御されるため、制御の進行が妨げられないとともに、エラー状態に制御された場合であっても、払出信号の出力が完了するまで払出信号の出力が継続されるため、誤った情報が外部に伝達されない。 For example, in the present embodiment, as shown in FIG. 10, since the error state is controlled when an error occurs during the output of the payout signal, the progress of the control is not hindered and the control is performed in the error state. Even if this is done, the output of the payout signal is continued until the output of the payout signal is completed, so that erroneous information is not transmitted to the outside.

(2−7) 前記処理手段は、前記再遊技入賞が発生したときに、当該再遊技入賞が発生した遊技において設定されている賭数(たとえば、BET数)を取得し、取得した賭数に対応する数値データ(たとえば、3)を、前記再遊技入賞による賭数設定用の記憶領域(たとえば、リプレイ用カウンタ)と前記アウト信号を出力するための記憶領域(たとえば、払出信号用カウンタ)とに格納する(たとえば、図20に示すように、リプレイ入賞が発生したときに、リプレイが発生した遊技において設定されているBET数を取得し、取得したBET数に対応する数値データを、リプレイ用カウンタと払出信号用カウンタとに格納する)。 (2-7) When the re-game winning is generated, the processing means acquires the bet number (for example, the number of BETs) set in the game in which the re-game winning occurs, and sets the acquired bet number as the acquired bet number. The corresponding numerical data (for example, 3) is stored in a storage area for setting the number of bets by the replay winning (for example, a replay counter) and a storage area for outputting the out signal (for example, a payout signal counter). (For example, as shown in FIG. 20, when a replay prize occurs, the number of BETs set in the game in which the replay occurs is acquired, and the numerical data corresponding to the acquired number of BETs is used for replay. Stored in the counter and the payout signal counter).

たとえば、本実施の形態においては、たとえば、図20に示すように、リプレイ入賞が発生したときに、リプレイが発生した遊技において設定されているBET数を取得し、取得したBET数に対応する数値データを、リプレイ用カウンタと払出信号用カウンタとに格納する。このようにすることで、効率よくメダル数の設定を行うことができる。 For example, in the present embodiment, for example, as shown in FIG. 20, when a replay prize is generated, the number of BETs set in the game in which the replay occurs is acquired, and the numerical value corresponding to the acquired number of BETs is acquired. The data is stored in the replay counter and the payout signal counter. By doing so, the number of medals can be set efficiently.

(2−8) 前記再遊技入賞による賭数設定用の記憶領域は、賭数が所定数(たとえば、3)に定められている場合であっても、当該所定数に対応する数値データ以外の数値データ(たとえば、0〜2,4〜255)を格納可能である(たとえば、図21(A)に示すように、リプレイ用カウンタは、BET数が3に定められている場合であっても、0〜255の数値を格納することができる)。 (2-8) Even when the number of bets is set to a predetermined number (for example, 3), the storage area for setting the number of bets by the re-game winning is other than the numerical data corresponding to the predetermined number. Numerical data (for example, 0 to 2, 4 to 255) can be stored (for example, as shown in FIG. 21 (A), the replay counter has a BET number of 3 even when the number of BETs is set to 3. , 0 to 255 can be stored).

たとえば、本実施の形態においては、図21(A)に示すように、リプレイ用カウンタは、BET数が3に定められている場合であっても、0〜255の数値を格納することができる。このようにすることで、スロットマシンのソフトウェアの仕様が変更された場合であっても、仕様変更への対応が容易になる。 For example, in the present embodiment, as shown in FIG. 21 (A), the replay counter can store a numerical value from 0 to 255 even when the BET number is set to 3. .. By doing so, even if the specifications of the software of the slot machine are changed, it becomes easy to respond to the changes in the specifications.

(2−9) 前記処理手段は、制御中の遊技状態(たとえば、通常状態、ボーナス、AT)がいずれであるかに関わらず、前記再遊技入賞が発生しているか否かを単位遊技ごとに判定し、前記再遊技入賞が発生しているときには点灯手段(たとえば、リプレイ中LED)を点灯させ、前記再遊技入賞が発生していないときには前記点灯手段を消灯させる(たとえば、図15に示すように、制御中の遊技状態がいずれであるかに関わらず、リプレイ入賞が発生しているか否かを1ゲームごとに判定し、リプレイ入賞が発生しているときにはリプレイ中LEDを点灯させ、リプレイが発生していないときにはリプレイ中LEDを消灯させる。)。 (2-9) The processing means determines whether or not the re-game winning is generated for each unit game regardless of which game state (for example, normal state, bonus, AT) is being controlled. When the determination is made and the replay winning is occurring, the lighting means (for example, the LED during replay) is turned on, and when the replay winning is not occurring, the lighting means is turned off (for example, as shown in FIG. 15). In addition, regardless of which game state is being controlled, it is determined for each game whether or not a replay prize has occurred, and when a replay prize has occurred, the LED during replay is turned on and the replay is performed. When it is not occurring, the LED is turned off during replay.)

たとえば、本実施の形態においては、図15に示すように、制御中の遊技状態がいずれであるかに関わらず、リプレイ入賞が発生しているか否かを一遊技ごとに判定し、リプレイ入賞が発生しているときにはリプレイ中LEDを点灯させ、リプレイが発生していないときにはリプレイ中LEDを消灯させる。このようにすることで、遊技ごとの状況をふまえてリプレイ入賞の発生状況を出力することができる。 For example, in the present embodiment, as shown in FIG. 15, it is determined for each game whether or not a replay prize has occurred regardless of which game state is being controlled, and the replay prize is determined. When it is occurring, the LED during replay is turned on, and when replay is not occurring, the LED during replay is turned off. By doing so, it is possible to output the occurrence status of the replay prize based on the situation for each game.

(3−1) 前記メイン処理は、第1処理(たとえば、投入払出エラーチェック処理)と、当該第1処理における呼出命令(たとえば、CALL命令)で呼び出され、復帰命令(たとえば、RET命令)で当該第1処理に復帰する第2処理(たとえば、エラー処理)とを含み、
前記第2処理は、割込処理が実行されるまで待機し、当該割込処理が実行されたことを条件に次の処理に進む割込待ち処理(たとえば、割込1回待ち処理)を含み、
前記処理手段は、前記第1処理において、前記第2処理から復帰した後、所定処理を実行するときに、割込処理の実行を禁止する(たとえば、図23に示すように、投入払出エラーチェック処理において、エラー処理から復帰した後、センサエラーフラグを取得する処理を実行するときに、割込処理の実行を禁止する)。
(3-1) The main process is called by a first process (for example, input / payout error check process) and a call instruction (for example, CALL instruction) in the first process, and is called by a return instruction (for example, RET instruction). Including a second process (for example, error process) that returns to the first process,
The second process includes an interrupt wait process (for example, an interrupt one-time wait process) that waits until the interrupt process is executed and proceeds to the next process on condition that the interrupt process is executed. ,
The processing means prohibits the execution of the interrupt processing when executing the predetermined processing after returning from the second processing in the first processing (for example, as shown in FIG. 23, input / payout error check. In the process, after returning from the error process, when executing the process to acquire the sensor error flag, the execution of the interrupt process is prohibited).

たとえば、本実施の形態においては、図23に示すように、メイン処理は、投入払出エラーチェック処理と、投入払出エラーチェック処理におけるCALL命令で呼び出され、RET命令で投入払出エラーチェック処理に復帰するエラー処理とを含み、エラー処理は、割込処理が実行されるまで待機し、割込処理が実行されたことを条件に次の処理に進む割込1回待ち処理を含み、投入払出エラーチェック処理において、エラー処理から復帰した後、センサエラーフラグを取得する処理を実行するときに、割込処理の実行を禁止する。このように、エラー処理において割込1回待ち処理を行うだけでなく、投入払出エラーチェック処理においても割込処理の実行を禁止するため、意図しない割込処理を確実に防止することができる。このようにすることで、スロットマシンの開発におけるプログラムの改変時などにおいても、意図しない不具合が発生してしまうことを防止でき、プログラムの保守性を高めることができる。 For example, in the present embodiment, as shown in FIG. 23, the main process is called by the CALL instruction in the input / payout error check process and the input / payout error check process, and returns to the input / payout error check process by the RET instruction. Including error processing, the error processing includes an interrupt one-time waiting process that waits until the interrupt process is executed and proceeds to the next process on the condition that the interrupt process is executed. In the process, the execution of the interrupt process is prohibited when the process of acquiring the sensor error flag is executed after returning from the error process. In this way, not only the interrupt processing is performed once in the error processing, but also the execution of the interrupt processing is prohibited in the input / withdrawal error check processing, so that the unintended interrupt processing can be reliably prevented. By doing so, it is possible to prevent an unintended problem from occurring even when the program is modified in the development of the slot machine, and it is possible to improve the maintainability of the program.

(3−2) 前記処理手段は、前記第2処理において、当該第2処理を終了する前にコマンド(たとえば、エラー解除コマンド)を送信し、当該コマンドの送信が完了するように、前記復帰命令により前記第1処理に復帰する前に前記割込待ち処理を実行する(たとえば、図23に示すように、エラー処理において、エラー処理を終了する前にエラー解除コマンドを送信し、エラー解除コマンドの送信が完了するように、RET命令により投入払出エラーチェック処理に復帰する前に割込1回待ち処理を実行する)。 (3-2) In the second process, the processing means transmits a command (for example, an error release command) before ending the second process, and the return command is completed so that the transmission of the command is completed. The interrupt wait process is executed before returning to the first process (for example, as shown in FIG. 23, in the error process, an error release command is transmitted before the error process is completed, and the error release command is executed. Before returning to the input / payout error check process by the RET command, the interrupt wait process is executed once so that the transmission is completed).

たとえば、本実施の形態においては、図23に示すように、エラー処理において、エラー処理を終了する前にエラー解除コマンドを送信し、エラー解除コマンドの送信が完了するように、RET命令により投入払出エラーチェック処理に復帰する前に割込1回待ち処理を実行する。このようにすることで、エラー解除コマンドが確実に送信された後に次の処理を実行することができる。 For example, in the present embodiment, as shown in FIG. 23, in the error processing, the error release command is transmitted before the error processing is completed, and the input / withdrawal is performed by the RET command so that the transmission of the error release command is completed. Before returning to the error check processing, the interrupt processing is executed once. By doing so, the next process can be executed after the error release command is surely transmitted.

(3−3) 前記所定処理は、割込処理において更新される所定情報(たとえば、センサエラーフラグ)を取得する処理である(たとえば、図23に示すように、所定処理は、割込処理において更新されるセンサエラーフラグを取得するセンサエラーフラグの更新処理である)。 (3-3) The predetermined process is a process of acquiring predetermined information (for example, a sensor error flag) updated in the interrupt process (for example, as shown in FIG. 23, the predetermined process is in the interrupt process. It is the update process of the sensor error flag to acquire the sensor error flag to be updated).

たとえば、本実施の形態においては、図23に示すように、所定処理は、割込処理において更新されるセンサエラーフラグを取得するセンサエラーフラグの更新処理である。エラー処理から復帰した後、割込処理の実行を禁止するため、センサエラーフラグを取得している途中にセンサエラーフラグが更新されることがない。 For example, in the present embodiment, as shown in FIG. 23, the predetermined process is the sensor error flag update process for acquiring the sensor error flag updated in the interrupt process. After returning from the error processing, the execution of the interrupt processing is prohibited, so that the sensor error flag is not updated while the sensor error flag is being acquired.

(3−4) 前記所定処理は、遊技の進行に係る遊技プログラムとは異なる非遊技プログラムが前記第1処理による呼出命令で呼び出されることで実行される処理である(たとえば、図23に示すように、所定処理は、遊技の進行に係る遊技プログラムとは異なる非遊技プログラムが投入払出エラーチェック処理によるCALL命令で呼び出されることで実行される処理である)。 (3-4) The predetermined process is a process executed by calling a non-game program different from the game program related to the progress of the game by the call command by the first process (for example, as shown in FIG. 23). In addition, the predetermined process is a process executed by calling a non-game program different from the game program related to the progress of the game by a CALL instruction by the input / payout error check process).

たとえば、本実施の形態においては、図23に示すように、所定処理は、遊技の進行に係る遊技プログラムとは異なる非遊技プログラムが投入払出エラーチェック処理によるCALL命令で呼び出されることで実行される処理である。このようにすることで、非遊技プログラムの実行中に割込が生じない。 For example, in the present embodiment, as shown in FIG. 23, the predetermined process is executed by calling a non-game program different from the game program related to the progress of the game by a CALL instruction by the input / payout error check process. It is a process. By doing so, interruption does not occur during the execution of the non-game program.

(3−5) 前記処理手段は、前記第2処理から前記第1処理に復帰した後、前記呼出命令により他の処理を呼び出すことなく前記所定処理を実行する(たとえば、図23に示すように、エラー処理から投入払出エラーチェック処理に復帰した後、CALL命令により他の処理を呼び出すことなく所定処理を実行する)。 (3-5) After returning from the second process to the first process, the processing means executes the predetermined process without calling another process by the call command (for example, as shown in FIG. 23). , After returning from the error processing to the input / withdrawal error check processing, the predetermined processing is executed without calling other processing by the CALL instruction).

たとえば、本実施の形態においては、図23に示すように、エラー処理から投入払出エラーチェック処理に復帰した後、CALL命令により他の処理を呼び出すことなく所定処理を実行する。このようにすることで、エラー処理終了後にすみやかに所定処理を実行することができる。 For example, in the present embodiment, as shown in FIG. 23, after returning from the error processing to the input / payout error check processing, the predetermined processing is executed without calling another processing by the CALL instruction. By doing so, the predetermined processing can be executed promptly after the error processing is completed.

(4−1) 前記処理手段は、
割込処理において、前記記憶手段における記憶領域に設定された出力データを出力する出力処理(たとえば、出力ポート出力処理)と、
メイン処理において、前記出力データを設定するメイン側設定処理(たとえば、LEDデータAの設定処理、LEDデータBの設定処理)と、
割込処理において、前記出力データを設定する割込側設定処理(たとえば、LEDデータCの設定処理、LEDデータDの設定処理)とを実行可能であり、
前記メイン側設定処理は、前記出力データの設定をクリアした後、出力条件(たとえば、LEDデータAの有効化条件、LEDデータBの有効化条件)が成立しているときに前記出力データを設定する処理であり(たとえば、図24に示すように、メイン側設定処理は、LEDデータA,BをOFF設定した後、LEDデータAの有効化条件が成立条件が成立しているときにLEDデータAをON設定し、LEDデータBの有効化条件が成立条件が成立しているときにLEDデータBをON設定する処理である)、
前記割込側設定処理は、前記出力データを設定した後、出力条件(たとえば、信号データCの有効化条件、信号データDの有効化条件)が成立していないときに前記出力データの設定をクリアする処理である(たとえば、図24に示すように、割込側設定処理は、信号データC,DをON設定した後、信号データCの有効化条件が成立していないときに信号データCの設定をOFF設定し、信号データDの有効化条件が成立していないときに信号データDの設定をOFF設定する処理である)。
(4-1) The processing means is
In the interrupt process, an output process (for example, an output port output process) that outputs output data set in the storage area of the storage means, and
In the main process, the main side setting process for setting the output data (for example, LED data A setting process, LED data B setting process) and
In the interrupt process, it is possible to execute an interrupt side setting process (for example, LED data C setting process, LED data D setting process) for setting the output data.
The main side setting process sets the output data when the output conditions (for example, the activation condition of the LED data A and the activation condition of the LED data B) are satisfied after clearing the setting of the output data. (For example, as shown in FIG. 24, the main side setting process is the LED data when the activation condition of the LED data A is satisfied after the LED data A and B are set to OFF. This is a process in which A is set to ON and LED data B is set to ON when the condition for enabling LED data B is satisfied).
After setting the output data, the interrupt side setting process sets the output data when the output conditions (for example, the activation condition of the signal data C and the activation condition of the signal data D) are not satisfied. This is a process for clearing (for example, as shown in FIG. 24, the interrupt side setting process is the signal data C when the activation condition of the signal data C is not satisfied after the signal data C and D are set to ON. This is a process in which the setting of the signal data D is set to OFF, and the setting of the signal data D is set to OFF when the activation condition of the signal data D is not satisfied).

たとえば、本実施の形態においては、図24に示すように、メイン側設定処理は、LEDデータA,Bの設定をOFF設定した後、LEDデータAの有効化条件が成立条件が成立しているときにLEDデータAをON設定し、LEDデータBの有効化条件が成立条件が成立しているときにLEDデータBをON設定する処理である。また、割込側設定処理は、信号データC,DをON設定した後、信号データCの有効化条件が成立していないときに信号データCの設定をOFF設定し、信号データDの有効化条件が成立していないときに信号データDの設定をOFF設定する処理である。このように、先に出力データをON設定またはOFF設定し、成立条件の成立により必要に応じて当該出力データを更新することで、データ処理を簡素化することができる。また、データをON設定する命令よりもデータをOFF設定する命令の方が充実しているため、割込側設定処理においては、先に出力データをON設定し成立条件の成立により当該出力データをOFF設定することでプログラムをより簡素化することができる。一方で、メイン処理でこのような処理を行うと、割込処理が実行されることによって、誤った信号が出力されてしまう虞がある。このため、メイン側設定処理においては、先に出力データをOFF設定し成立条件の成立により当該出力データをON設定することで、誤った信号が出力されることを防止することができる。 For example, in the present embodiment, as shown in FIG. 24, in the main side setting process, after the LED data A and B settings are set to OFF, the LED data A activation condition is satisfied. This is a process in which the LED data A is sometimes set to ON, and the LED data B is set to ON when the condition for enabling the LED data B is satisfied. Further, in the interrupt side setting process, after the signal data C and D are set to ON, the setting of the signal data C is set to OFF when the activation condition of the signal data C is not satisfied, and the signal data D is enabled. This is a process of turning off the setting of the signal data D when the condition is not satisfied. In this way, the data processing can be simplified by first setting the output data to ON or OFF and updating the output data as necessary when the establishment condition is satisfied. In addition, since the instruction to set the data OFF is more substantial than the instruction to set the data ON, in the interrupt side setting process, the output data is set ON first and the output data is set when the establishment condition is satisfied. The program can be further simplified by setting it to OFF. On the other hand, if such a process is performed in the main process, an erroneous signal may be output due to the execution of the interrupt process. Therefore, in the main side setting process, it is possible to prevent an erroneous signal from being output by first setting the output data to OFF and setting the output data to ON when the establishment condition is satisfied.

(4−2) 前記処理手段は、
前記出力処理において、前記割込側設定処理により設定された出力データに基づき複数の信号(たとえば、信号C、信号D)を出力し(たとえば、図24に示すように、割込側設定処理によりON設定された信号データC,信号データDに基づき信号C,信号Dを出力する)、
前記割込側設定処理において、前記複数の信号に対応する前記出力データをまとめて設定する(たとえば、図24に示すように、割込側設定処理において、信号C,信号Dに対応する信号データC,信号データDをまとめてON設定する)。
(4-2) The processing means is
In the output process, a plurality of signals (for example, signal C and signal D) are output based on the output data set by the interrupt side setting process (for example, as shown in FIG. 24, by the interrupt side setting process). Outputs signal C and signal D based on signal data C and signal data D set to ON),
In the interrupt side setting process, the output data corresponding to the plurality of signals are collectively set (for example, as shown in FIG. 24, the signal data corresponding to the signals C and D in the interrupt side setting process). C and signal data D are collectively set to ON).

たとえば、本実施の形態においては、図24に示すように、割込側設定処理によりON設定された信号データC,信号データDに基づき信号C,信号Dを出力し、割込側設定処理において、信号C,信号Dに対応する信号データC,信号データDをまとめてON設定する。このようにすることで、信号データC,信号データDのON設定が容易になる。 For example, in the present embodiment, as shown in FIG. 24, the signal C and the signal D are output based on the signal data C and the signal data D set ON by the interrupt side setting process, and in the interrupt side setting process. , Signal C, signal data C corresponding to signal D, and signal data D are collectively set to ON. By doing so, it becomes easy to set the signal data C and the signal data D to be ON.

(4−3) 前記処理手段は、
前記出力処理において、前記メイン側設定処理により設定された出力データに基づき複数の信号(たとえば、信号A、信号B)を出力し(たとえば、図24に示すように、メイン側設定処理によりON設定されたLEDデータA,LEDデータBに基づきLEDA,LEDBを点灯または消灯させる)、
前記メイン側設定処理において、前記複数の信号に対応する前記出力データをまとめてクリアする(たとえば、図24に示すように、メイン側設定処理において、LEDA,LEDBに対応するLEDデータA,LEDデータBをまとめてOFF設定する)。
(4-3) The processing means is
In the output process, a plurality of signals (for example, signal A and signal B) are output based on the output data set by the main side setting process (for example, as shown in FIG. 24, ON setting is performed by the main side setting process. LEDA and LEDB are turned on or off based on the LED data A and LED data B),
In the main side setting process, the output data corresponding to the plurality of signals are collectively cleared (for example, as shown in FIG. 24, in the main side setting process, LED data A and LED data corresponding to LEDA and LEDB are cleared. B is set to OFF at once).

たとえば、本実施の形態においては、図24に示すように、メイン側設定処理により設定されたLEDデータA,LEDデータBに基づきLEDA,LEDBを点灯または消灯させ、メイン側設定処理において、LEDA,LEDBに対応するLEDデータA,LEDデータBをまとめてOFF設定する。このようにすることで、LEDデータA,LEDデータBのOFF設定が容易になる。 For example, in the present embodiment, as shown in FIG. 24, the LEDs A and LEDB are turned on or off based on the LED data A and the LED data B set by the main side setting process, and the LEDA, LED data A and LED data B corresponding to LEDB are collectively set to OFF. By doing so, it becomes easy to set the LED data A and the LED data B to be OFF.

(4−4) 前記処理手段は、
前記出力処理において出力される前記複数の信号のそれぞれに対して、出力条件が成立したか否かを判定し(たとえば、図24に示すように、信号データC,信号データDのそれぞれに対して、無効化条件が成立したか否かを判定する)、
一の出力条件に基づいて出力データを更新した後、当該一の出力条件の次の出力条件に基づいて前記出力データを更新する(たとえば、図24に示すように、信号データCの無効化条件が成立したときは信号データCをOFF設定し、次の成立条件である信号データDの無効化条件が成立したときは信号データDをOFF設定する)。
(4-4) The processing means is
For each of the plurality of signals output in the output process, it is determined whether or not the output condition is satisfied (for example, as shown in FIG. 24, for each of the signal data C and the signal data D). , Determine if the invalidation condition is met),
After updating the output data based on one output condition, the output data is updated based on the next output condition of the one output condition (for example, as shown in FIG. 24, the invalidation condition of the signal data C). When is satisfied, the signal data C is set to OFF, and when the next condition for invalidating the signal data D is satisfied, the signal data D is set to OFF).

たとえば、本実施の形態においては、図24に示すように、信号データC,信号データDのそれぞれに対して無効化条件が成立したか否かを判定し、信号データCの無効化条件が成立したときは信号データCをOFF設定し、次の成立条件である信号データDの無効化条件が成立したときは信号データDをOFF設定する。このようにすることで、無効化条件の判定結果をその都度保持する必要がない。 For example, in the present embodiment, as shown in FIG. 24, it is determined whether or not the invalidation condition is satisfied for each of the signal data C and the signal data D, and the invalidation condition of the signal data C is satisfied. When this is done, the signal data C is set to OFF, and when the invalidation condition of the signal data D, which is the next establishment condition, is satisfied, the signal data D is set to OFF. By doing so, it is not necessary to retain the determination result of the invalidation condition each time.

(4−5) 前記処理手段は、前記メイン側設定処理中において、割込処理の実行を禁止する(たとえば、図24に示すように、メイン側設定処理中において割込禁止設定を行う)。 (4-5) The processing means prohibits execution of the interrupt processing during the main side setting process (for example, as shown in FIG. 24, the interrupt prohibition setting is performed during the main side setting process).

たとえば、本実施の形態においては、図24に示すように、メイン側設定処理中において割込禁止設定を行うため、意図しない信号が出力されることを防止することができる。 For example, in the present embodiment, as shown in FIG. 24, since the interrupt prohibition setting is performed during the main side setting process, it is possible to prevent an unintended signal from being output.

(5−1) 前記記憶手段には、前記処理手段における機能設定のための記憶領域(たとえば、内蔵レジスタ領域)として、開始アドレスから終了アドレスまでの領域が設けられており(たとえば、図8に示すように、RAM41cには、メインCPU41aにおける機能設定のための内蔵レジスタ領域として、FE00HからFEACHまでの領域が設けられており)、
前記処理手段は、制御開始にあたって前記機能設定のための記憶領域(たとえば、第1〜第7領域)のうちの複数の領域(たとえば、第2,3,4,6領域)に設定値を設定する際、当該複数の領域のうちの所定領域(たとえば、第2領域)に対応する基準アドレス(たとえば、FE01H)を特定可能なデータを読み出し、当該基準アドレスに基づき前記所定領域に設定値(たとえば、データA)を設定した後、当該基準アドレスに対して差分値(たとえば、1)を用いて算出したアドレスに基づき特定領域(たとえば、第3領域)に設定値(たとえば、データB)を設定する(たとえば、図8に示すように、メインCPU41aは、制御開始にあたって内蔵レジスタ領域のうちの第2,3,4,6領域に設定値を設定する際、第2,3,4,6領域のうちの第2領域に対応する基準アドレス(FE01H)を特定可能なデータを読み出し、基準アドレスに基づき第2領域にデータAを設定した後、当該基準アドレスに対して差分値(1)を用いて算出したアドレス(FE02H)に基づき第3領域にデータBを設定する)。
(5-1) The storage means is provided with an area from a start address to an end address as a storage area (for example, a built-in register area) for setting a function in the processing means (for example, FIG. 8). As shown, the RAM 41c is provided with an area from FE00H to FEACH as a built-in register area for function setting in the main CPU 41a).
At the start of control, the processing means sets set values in a plurality of areas (for example, second, third, fourth, and sixth areas) of the storage areas (for example, first to seventh areas) for setting the function. At that time, data capable of identifying a reference address (for example, FE01H) corresponding to a predetermined area (for example, a second area) among the plurality of areas is read out, and a set value (for example, for example) is set in the predetermined area based on the reference address. , Data A), and then set the set value (for example, data B) in the specific area (for example, the third area) based on the address calculated by using the difference value (for example, 1) with respect to the reference address. (For example, as shown in FIG. 8, when the main CPU 41a sets a set value in the second, third, fourth, and sixth areas of the built-in register area at the start of control, the second, third, fourth, and sixth areas are used. Data that can identify the reference address (FE01H) corresponding to the second region is read out, data A is set in the second region based on the reference address, and then the difference value (1) is used for the reference address. Data B is set in the third area based on the calculated address (FE02H)).

たとえば、本実施の形態においては、図8に示すように、RAM41cには、メインCPU41aにおける機能設定のための内蔵レジスタ領域として、FE00HからFEACHまでの領域が設けられており、メインCPU41aは、制御開始にあたって内蔵レジスタ領域のうちの第2,3,4,6領域に設定値を設定する際、第2,3,4,6領域のうちの第1領域に対応する基準アドレス(FE01H)を特定可能なデータを読み出し、基準アドレスに基づき第2領域にデータAを設定した後、当該基準アドレスに対して差分値(1)を用いて算出したアドレス(FE02H)に基づき第3領域にデータBを設定する。このように、差分値を用いて算出したアドレスに基づき第3領域にデータを設定することで、アドレスを直接指定して第3領域に設定値を設定するよりもプログラムの容量を節減することができる。 For example, in the present embodiment, as shown in FIG. 8, the RAM 41c is provided with an area from FE00H to FEACH as a built-in register area for function setting in the main CPU 41a, and the main CPU 41a controls. When setting the set value in the 2nd, 3rd, 4th, and 6th areas of the built-in register area at the start, the reference address (FE01H) corresponding to the 1st area of the 2nd, 3rd, 4th, and 6th areas is specified. After reading the possible data and setting the data A in the second area based on the reference address, the data B is set in the third area based on the address (FE02H) calculated by using the difference value (1) with respect to the reference address. Set. In this way, by setting data in the third area based on the address calculated using the difference value, it is possible to save the program capacity compared to setting the set value in the third area by directly specifying the address. it can.

(5−2) 前記所定領域は、前記複数の領域のうちの最も小さいアドレス(たとえば、FE01H)に対応する領域である(たとえば、図8に示すように、第2領域は、第2,3,4,6領域のうちの最も小さいアドレス(FE01H)に対応する領域である)。 (5-2) The predetermined area is an area corresponding to the smallest address (for example, FE01H) among the plurality of areas (for example, as shown in FIG. 8, the second area is the second and third areas. , 4, 6 The area corresponding to the smallest address (FE01H)).

たとえば、本実施の形態においては、図8に示すように、第2領域は、第2,3,4,6領域のうちの最も小さいアドレス(FE01H)に対応する領域であるため、差分値を用いて算出したアドレスに基づき領域にデータを設定する際に、効率よくデータを設定することができる。 For example, in the present embodiment, as shown in FIG. 8, since the second region is the region corresponding to the smallest address (FE01H) among the second, third, fourth, and sixth regions, the difference value is set. When setting data in the area based on the address calculated using the data, the data can be set efficiently.

(5−3) 前記処理手段は、設定値を設定する際、所定のアドレス(たとえば、FE02H)に対応する領域(たとえば、第3領域)および当該所定のアドレスの次のアドレス(たとえば、FE03H)に対応する領域(たとえば、第4領域)のそれぞれに設定値を設定するように2バイトデータ(たとえば、12+FFH×56)を設定する(たとえば、図8に示すように、メインCPU41aは、設定値を設定する際、所定のアドレス(FE02H)に対応する第3領域および所定のアドレスの次のアドレス(FE03H)に対応する第4領域のそれぞれに設定値を設定するように2バイトデータ(12+FFH×56)を設定する)。 (5-3) When setting a set value, the processing means has an area corresponding to a predetermined address (for example, FE02H) (for example, a third area) and an address next to the predetermined address (for example, FE03H). 2-byte data (for example, 12 + FFH × 56) is set so as to set a set value in each of the areas corresponding to (for example, the fourth area) (for example, as shown in FIG. 8, the main CPU 41a has a set value. When setting, 2-byte data (12 + FFH ×) so as to set the set value in each of the third area corresponding to the predetermined address (FE02H) and the fourth area corresponding to the next address (FE03H) of the predetermined address. 56) is set).

たとえば、本実施の形態においては、図8に示すように、メインCPU41aは、設定値を設定する際、所定のアドレス(FE02H)に対応する第3領域および所定のアドレスの次のアドレス(FE03H)に対応する第4領域のそれぞれに設定値を設定するように2バイトデータ(12+FFH×56)を設定する。このようにすることで、複数の領域に対してまとめてデータを設定することができる。 For example, in the present embodiment, as shown in FIG. 8, when setting the set value, the main CPU 41a has a third area corresponding to the predetermined address (FE02H) and the address next to the predetermined address (FE03H). The 2-byte data (12 + FFH × 56) is set so as to set the set value in each of the fourth regions corresponding to. By doing so, data can be set collectively for a plurality of areas.

(5−4) 前記処理手段は、設定値を設定すべき前記複数の領域の全てに設定値を設定したことで、遊技の制御を開始する(たとえば、図7,8に示すように、メインCPU41aは、設定値を設定すべき第1領域〜第5領域の全てに設定値を設定したことで、遊技の制御を開始する)。 (5-4) The processing means starts controlling the game by setting the set values in all of the plurality of areas for which the set values should be set (for example, as shown in FIGS. 7 and 8). The CPU 41a starts controlling the game by setting the set values in all of the first to fifth areas in which the set values should be set).

たとえば、本実施の形態においては、図7,8に示すように、メインCPU41aは、設定値を設定すべき第2,3,4,6領域の全てに設定値を設定したことで、遊技の制御を開始する。このようにすることで、設定すべき設定値の設定が完了していない状況で遊技の制御が開始されない。 For example, in the present embodiment, as shown in FIGS. 7 and 8, the main CPU 41a sets the set values in all of the second, third, fourth, and sixth areas in which the set values should be set. Start control. By doing so, the control of the game is not started in the situation where the setting value to be set is not completed.

(5−5) 前記処理手段は、設定値を設定すべき前記複数の領域の全てに設定値が設定されるまで、割込処理の実行を禁止する(たとえば、図7,8に示すように、メインCPU41aは、設定値を設定すべき第2,3,4,6領域の全てに設定値が設定されるまで、割込処理の実行を禁止する)。 (5-5) The processing means prohibits execution of the interrupt processing until the set values are set in all of the plurality of areas for which the set values should be set (for example, as shown in FIGS. 7 and 8). , The main CPU 41a prohibits the execution of the interrupt process until the set values are set in all of the second, third, fourth, and sixth areas in which the set values should be set).

たとえば、本実施の形態においては、図7,8に示すように、メインCPU41aは、設定値を設定すべき第2,3,4,6領域の全てに設定値が設定されるまで、割込処理の実行を禁止する。このようにすることで、設定値の設定中に割込処理の実行により意図しない制御が行なわれない。 For example, in the present embodiment, as shown in FIGS. 7 and 8, the main CPU 41a interrupts until the set value is set in all of the second, third, fourth, and sixth areas in which the set value should be set. Prohibit the execution of processing. By doing so, unintended control is not performed by executing the interrupt process while setting the set value.

(5−6) 前記処理手段は、前記複数の領域に設定値を設定する以前に、ポート(たとえば、出力ポート)を初期化する(たとえば、図7,8に示すように、メインCPU41aは、第2,3,4,6領域に設定値を設定する以前に、出力ポートを初期化する)。 (5-6) The processing means initializes a port (for example, an output port) before setting a set value in the plurality of areas (for example, as shown in FIGS. 7 and 8, the main CPU 41a has a main CPU 41a. Initialize the output port before setting the set values in the 2nd, 3rd, 4th, and 6th areas).

たとえば、本実施の形態においては、図7,8に示すように、メインCPU41aは、第2,3,4,6領域に設定値を設定する以前に、出力ポートを初期化する。このようにすることで、出力ポートから意図しない信号が出力されることを防止することができる。 For example, in the present embodiment, as shown in FIGS. 7 and 8, the main CPU 41a initializes the output port before setting the set value in the second, third, fourth, and sixth regions. By doing so, it is possible to prevent an unintended signal from being output from the output port.

[変形例]
以上、本発明における主な実施の形態を説明してきたが、本発明は、上記の実施の形態に限られず、種々の変形、応用が可能である。以下、本発明に適用可能な上記の実施の形態の変形例について説明する。
[Modification example]
Although the main embodiments of the present invention have been described above, the present invention is not limited to the above embodiments, and various modifications and applications are possible. Hereinafter, modifications of the above-described embodiment applicable to the present invention will be described.

[内蔵レジスタ設定処理について]
本実施の形態においては、図8に示したように、第1領域〜第7領域までの7つの領域を有し、設定が必要な複数の領域として、第2,3,4,6領域の各領域において設定値を設定した。しかし、これに限らず、設定が必要な領域は、全領域のうちのどのような領域であってもよく、全ての領域に対して設定するようにしてもよい。
[About built-in register setting processing]
In the present embodiment, as shown in FIG. 8, there are seven regions from the first region to the seventh region, and as a plurality of regions that need to be set, the second, third, fourth, and sixth regions are used. Set values were set in each area. However, the present invention is not limited to this, and the area that needs to be set may be any area out of all areas, and may be set for all areas.

[リール停止制御処理について]
本実施の形態においては、図17〜19に示したように、左リールの停止が第1停止であり、中リールの停止が第2停止である例について説明したが、これに限らず、いずれのリールが第1停止であってもよく、いずれのリールが第2停止であってもよい。また、第1停止および第2停止の組合せに限らず、第2停止および第3停止の組合せであってもよい。
[Reel stop control processing]
In the present embodiment, as shown in FIGS. 17 to 19, an example in which the stop of the left reel is the first stop and the stop of the middle reel is the second stop has been described, but the present invention is not limited to this. Reel may be the first stop, and any reel may be the second stop. Further, the combination of the first stop and the second stop is not limited to the combination of the second stop and the third stop.

1 スロットマシン、2L,2C,2R リール、7 スタートスイッチ、8L,8C,8R ストップスイッチ、41 メイン制御部、91 サブ制御部。 1 slot machine, 2L, 2C, 2R reel, 7 start switch, 8L, 8C, 8R stop switch, 41 main control unit, 91 sub control unit.

Claims (1)

遊技が可能な遊技機であって、
所定の処理を実行する処理手段と、
前記処理手段における機能設定のための記憶領域を含む記憶手段と、を備え、
前記機能設定のための記憶領域として、開始アドレスから終了アドレスまで連続して配置された複数の領域が設けられており、
前記処理手段は、
前記機能設定のための記憶領域のうちのa(a>1)番目の領域およびa番目の領域から離れたb番目の領域および該b番目の領域の次のc番目の領域に設定値を設定する際、当該a番目の領域に対応する基準アドレスを特定可能なデータを読み出し、当該基準アドレスに基づき前記a番目の領域に設定値を設定し、
前記a番目の領域に設定値を設定した後、前記基準アドレスに対して差分値を用いて前記b番目の領域に対応するアドレスを算出し、
前記b番目の領域に対応するアドレスに基づき複数の領域にデータを設定する命令により、前記番目の領域と前記番目の領域の双方に設定値を設定する、遊技機。
It is a gaming machine that can play games,
A processing means that executes a predetermined process and
A storage means including a storage area for setting a function in the processing means is provided.
As a storage area for setting the function, a plurality of areas continuously arranged from the start address to the end address are provided.
The processing means
Set values are set in the a (a> 1) th area, the bth area away from the ath area, and the cth area next to the bth area in the storage area for function setting. At that time, the data that can identify the reference address corresponding to the a-th area is read, and the set value is set in the a-th area based on the reference address.
After setting the set value to the a-th region, and calculates the address corresponding to the b-th region by using the difference value with respect to the reference address,
A gaming machine that sets set values in both the b- th region and the c- th region by a command for setting data in a plurality of regions based on addresses corresponding to the b-th region.
JP2018164303A 2018-09-03 2018-09-03 Pachinko machine Active JP6894413B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018164303A JP6894413B2 (en) 2018-09-03 2018-09-03 Pachinko machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018164303A JP6894413B2 (en) 2018-09-03 2018-09-03 Pachinko machine

Publications (2)

Publication Number Publication Date
JP2020036679A JP2020036679A (en) 2020-03-12
JP6894413B2 true JP6894413B2 (en) 2021-06-30

Family

ID=69737412

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018164303A Active JP6894413B2 (en) 2018-09-03 2018-09-03 Pachinko machine

Country Status (1)

Country Link
JP (1) JP6894413B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008036125A (en) * 2006-08-07 2008-02-21 Aruze Corp Game machine
US9352701B2 (en) * 2014-03-06 2016-05-31 Bose Corporation Managing telephony and entertainment audio in a vehicle audio platform
JP6546756B2 (en) * 2015-03-03 2019-07-17 株式会社三共 Gaming machine
JP6652942B2 (en) * 2017-01-23 2020-02-26 株式会社ソフイア Gaming machine

Also Published As

Publication number Publication date
JP2020036679A (en) 2020-03-12

Similar Documents

Publication Publication Date Title
JP6654837B2 (en) Gaming machine
JP2017046844A (en) Game machine
JP6999844B2 (en) Pachinko machine
JP6820683B2 (en) Slot machine
JP7149760B2 (en) slot machine
JP7104590B2 (en) Pachinko machine
JP7104589B2 (en) Pachinko machine
JP7164361B2 (en) game machine
JP6894413B2 (en) Pachinko machine
JP6835780B2 (en) Game machine
JP6792691B2 (en) Game machine
JP7184571B2 (en) slot machine
JP7184570B2 (en) slot machine
JP7141281B2 (en) game machine
JP7141280B2 (en) slot machine
JP7446707B2 (en) slot machine
JP2020036681A (en) Slot machine
JP2020036676A (en) Slot machine
JP6824657B2 (en) Slot machine
JP6735626B2 (en) Amusement machine
JP2020036680A (en) Slot machine
JP6756894B2 (en) Game machine
JP6756893B2 (en) Game machine
JP6792692B2 (en) Game machine
JP2018019920A (en) Game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191009

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200707

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200828

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210202

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210402

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210601

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210603

R150 Certificate of patent or registration of utility model

Ref document number: 6894413

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150