JP2020022637A - Slot machine - Google Patents

Slot machine Download PDF

Info

Publication number
JP2020022637A
JP2020022637A JP2018148691A JP2018148691A JP2020022637A JP 2020022637 A JP2020022637 A JP 2020022637A JP 2018148691 A JP2018148691 A JP 2018148691A JP 2018148691 A JP2018148691 A JP 2018148691A JP 2020022637 A JP2020022637 A JP 2020022637A
Authority
JP
Japan
Prior art keywords
processing
reel
output
signal
setting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018148691A
Other languages
Japanese (ja)
Other versions
JP7149760B2 (en
Inventor
小倉 敏男
Toshio Ogura
敏男 小倉
正文 中嶋
Masabumi Nakajima
正文 中嶋
真大 下田
Masahiro Shimoda
真大 下田
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 JP2018148691A priority Critical patent/JP7149760B2/en
Publication of JP2020022637A publication Critical patent/JP2020022637A/en
Application granted granted Critical
Publication of JP7149760B2 publication Critical patent/JP7149760B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Slot Machines And Peripheral Devices (AREA)

Abstract

To provide a slot machine capable of suitably executing setting processing when continuously executing setting processing for setting a stop position of variation display.SOLUTION: When an ON edge of a left stop switch signal is detected, execution of new interruption processing is prohibited until reel stop slide sliding piece storage processing (left) is completed after starting the reel stop sliding piece storage processing (left) for setting a stop position of a left reel in main processing after interruption processing, new interruption processing is executed after the completion, and reel stop sliding piece storage processing (middle) is executed when an ON edge of a middle stop switch signal is detected. The reel stop sliding piece storage processing (middle) is not executed based on new interruption processing when a reel rotation error occurs in main processing after the new interruption processing, and the reel stop sliding piece storage processing (middle) is executed based on new interruption processing when it is determined that a reel rotation error does not occur.SELECTED DRAWING: Figure 13

Description

本発明は、各々が識別可能な複数種類の識別情報を変動表示可能な可変表示部を備え、可変表示部を変動表示した後、可変表示部の変動表示を停止することで表示結果を導出し、該表示結果に応じて入賞が発生可能なスロットマシンに関する。   The present invention includes a variable display unit capable of variably displaying a plurality of types of identification information each of which is identifiable, and after variably displaying the variable display unit, halting the variable display of the variable display unit to derive a display result. And a slot machine capable of generating a prize according to the display result.

スロットマシンは、一般に、外周部に識別情報としての複数種類の図柄が描かれた複数(通常は3つ)のリールを有する可変表示部を備えており、各リールは、遊技者がスタートレバーを操作することにより回転を開始し、また、遊技者が各リールに対応して設けられた停止ボタンを操作することにより、その操作タイミングから予め定められた最大遅延時間の範囲内で回転を停止する。そして、全てのリールの回転を停止したときに導出された表示結果に従って入賞が発生する。   Generally, a slot machine includes a variable display section having a plurality of (usually three) reels on which a plurality of types of symbols as identification information are drawn on an outer peripheral portion, and each of the reels has a start lever. The rotation is started by operating, and the player operates a stop button provided corresponding to each reel to stop the rotation within a predetermined maximum delay time from the operation timing. . Then, a prize is generated according to the display result derived when the rotation of all the reels is stopped.

入賞となる役の種類としては、小役、特別役、再遊技役といった種類がある。ここで、小役の入賞では、小役の種類毎に定められた数のメダルが払い出されるという利益を遊技者が得ることができる。特別役の入賞では、次のゲームからレギュラーボーナスやビッグボーナスといった遊技者にとって有利な遊技状態へ移行されるという利益を遊技者が得ることができる。再遊技役の入賞では、賭数の設定に新たなメダルを消費することなく次のゲームを行うことができるという利益を得ることができる。   The types of winning combinations include small winning combinations, special winning roles, and replaying winning roles. Here, in the winning of the small combination, the player can obtain a profit that a predetermined number of medals are paid out for each type of the small combination. In the special role prize, the player can obtain the benefit of shifting from the next game to a game state advantageous to the player such as a regular bonus or a big bonus. In the winning of the re-game combination, it is possible to obtain an advantage that the next game can be played without consuming a new medal for setting the number of bets.

このようなスロットマシンとして、停止操作ボタンが操作されると滑りコマ数分リールを回転させてから停止させるものであって、停止操作ボタンの停止信号が複数同時に出力された場合は、各停止信号を所定の優先順位で処理した後、各リールに対する滑りコマ数を決定してリールの停止位置を設定するものがあった(たとえば、特許文献1)。   In such a slot machine, when the stop operation button is operated, the reel is rotated by the number of sliding frames and then stopped, and when a plurality of stop signals of the stop operation button are output simultaneously, each stop signal is output. Is processed in a predetermined priority order, the number of sliding frames for each reel is determined, and the stop position of the reel is set (for example, Japanese Patent Application Laid-Open No. H10-163,086).

特開2009−101002号公報JP 2009-101002 A

しかしながら、上述のようなリールの停止位置(変動表示の停止位置)を設定するための設定処理は処理に時間を要するため、連続的に設定処理を実行する場合においては改良の余地があった。   However, the setting process for setting the reel stop position (stop position of the variable display) as described above requires time for the process, and there is room for improvement in the case where the setting process is performed continuously.

この発明は、かかる実情に鑑み考え出されたものであり、その目的は、変動表示の停止位置を設定するための設定処理を連続的に実行する場合に、好適に設定処理を実行することができるスロットマシンを提供することである。   The present invention has been conceived in view of such circumstances, and a purpose thereof is to appropriately execute a setting process when continuously performing a setting process for setting a stop position of a variable display. The goal is to provide a slot machine that can do it.

各々が識別可能な複数種類の識別情報を変動表示可能な可変表示部を複数備え、
前記可変表示部を変動表示した後、前記可変表示部の変動表示を停止することで表示結果を導出し、複数の可変表示部の表示結果の組合せである表示結果組合せに応じて入賞が発生可能なスロットマシン(たとえば、スロットマシン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設定処理を実行する(たとえば、新たな割込処理後のメイン処理において、リール回転エラーが発生しているか否かを判定し、リール回転エラーが発生している場合、新たな割込処理に基づいてリール停止滑りコマ格納処理(中)を実行せず、リール回転エラーが発生と判定した場合に、新たな割込処理に基づいてリール停止滑りコマ格納処理(中)を実行する)。
A plurality of variable display units capable of variably displaying a plurality of types of identification information each of which can be identified,
After variably displaying 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 a display result combination which is a combination of the display results of the plurality of variable display units. Slot machine (for example, slot machine 1)
A plurality of deriving operation means (for example, stop switches 8L, 8C, 8R) operated to derive a display result combination;
Processing means (for example, main CPU 41a) for executing predetermined processing;
The predetermined process executed by the processing unit includes a main process (for example, a main process shown in FIG. 9) and an interrupt process (for example, a diagram shown in FIG. 9) executed by interrupting the main process based on the occurrence of an interrupt. 16 (timer interrupt processing (main)),
The processing means includes:
In the interrupt processing, it is determined whether there is an input based on an operation of any of the plurality of deriving operation means, and an operation of a first deriving operation means (for example, a left stop switch) of the plurality of deriving operation means is performed. Is determined based on the first input (for example, detection of the ON edge of the left stop switch signal), the first variable display section of the plurality of variable display sections is executed in the main processing after the interrupt processing. A first setting process (for example, a reel stop sliding frame storing process) for setting a stop position of the variable display in a (for example, a left reel region that can be visually recognized from the player side through the see-through window 3) is executed ( For example, when the ON edge of the left stop switch signal based on the operation of the left stop switch is detected, the stop position of the left reel is determined in the main processing after the interrupt processing. Reel stop sliding piece storage process for constant run (left)),
After the first setting process is started, execution of a new interrupt process is prohibited until the first setting process is completed, and the new interrupt process is executed after the first setting process is completed (for example, As shown in FIGS. 13 and 14, after the reel stop sliding frame storage process (left) is started, execution of a new interrupt process is prohibited until the reel stop sliding frame storage process (left) is completed. After the reel stop sliding frame storage process (left) is completed, a new interrupt process is executed),
In the new interrupt processing, it is determined whether or not there is an input based on an operation of any of the plurality of deriving operation means, and a second deriving operation means (for example, a middle stop switch) of the plurality of deriving operation means is determined. ), When it is determined that the second input (for example, detection of the ON edge of the middle stop switch signal) has been performed, in the main processing after the new interrupt processing, the plurality of variable display units Second setting processing (for example, reel stop sliding frame storage processing) for setting the variable display stop position in the second variable display unit (for example, the area of the middle reel visible from the player side through the see-through window 3) (For example, as shown in FIGS. 13 and 14, in the new interrupt processing, the middle stop switch signal based on the operation of the middle stop switch is output.) If N edge is detected, the main process after the new interrupt processing and executes the reel stop sliding piece storage processing for setting a stop position of the reel (medium)),
In the main processing after the new interrupt processing, the processing unit further determines whether the variable display on the variable display unit is normal (for example, a reel rotation error), and the variable display is normal. If not, the second interrupt processing is not executed based on the second input determined in the new interrupt processing, and if it is determined that the variable display is normal, the new interrupt processing is performed. Executing the second setting process based on the second input determined in (i.e., determining whether or not a reel rotation error has occurred in a main process after a new interrupt process; If so, the reel stop sliding frame storing 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 is stopped based on the new interrupt process. Stop sliding symbols stored process executes (medium)).

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

本発明に係るスロットマシンを実施するための本実施の形態について以下に説明する。   This embodiment for implementing the slot machine according to the present invention will be described below.

[スロットマシンの構成]
図1は、本実施形態に係るスロットマシン1の正面図である。本実施例のスロットマシン1は、図1に示すように、前面が開口する筐体1aと、この筐体1aの側端に回動自在に枢支された前面扉1bとから構成されている。
[Slot machine configuration]
FIG. 1 is a front view of the slot machine 1 according to the embodiment. As shown in FIG. 1, the slot machine 1 of this embodiment includes a housing 1a having an open front surface, and a front door 1b rotatably 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, inside the housing 1a of the slot machine 1 of this embodiment, reels 2L, 2C, 2R (hereinafter, left reel, center reel, right reel) on which a plurality of kinds of symbols are arranged on the outer periphery. As shown in FIG. 1, three consecutive symbols among the symbols arranged on the reels 2L, 2C, 2R are provided in the see-through window 3 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において各々上中下三段に表示される。   A plurality of types of symbols (for example, “7”, “BAR”, “watermelon”, “cherry”, “bell”, “replay”, etc.) that can be distinguished from each other are predetermined on the outer peripheral portions of the reels 2L, 2C, 2R. In this order, 21 are drawn respectively. The symbols drawn on the outer peripheries of the reels 2L, 2C, 2R are displayed in upper, lower, middle and lower tiers, respectively, in a see-through window 3 provided substantially at the center of the front door 1b.

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

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

リール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, a reel sensor 33L, 33C, 33R for detecting a reference position, and a reel LED 55 for irradiating the reels 2L, 2C, 2R from the back are provided for the reels 2L, 2C, 2R, respectively. Is provided. The reel LED 55 includes twelve LEDs corresponding to three consecutive symbols on the reels 2L, 2C, and 2R, and can irradiate each symbol independently.

また、リールセンサ33L,33C,33Rは、各リール2L,2C,2Rについて図柄番号1の図柄の領域の下端が各リールにおける所定位置を通過するときに、検出信号を出力するように配置されており、各リールについて図柄番号1の図柄の領域の下端がリール基準位置となる。   The reel sensors 33L, 33C, 33R are arranged so as to output a detection signal when the lower end of the symbol area of the symbol number 1 for each of the reels 2L, 2C, 2R passes through a predetermined position on each reel. The lower end of the symbol area of symbol number 1 for each reel 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 a liquid crystal display 51 (see FIG. 1) is arranged at a position on the near side (player side) of each of the reels 2L, 2C, 2R of the front door 1b. The liquid crystal display 51 has a liquid crystal panel having a transmissivity in a state where no voltage is applied to the liquid crystal element. The liquid crystal display 51 passes through the transmission region 51b and the transmission window 3 corresponding to the transmission window 3 of the display region 51a. Each reel 2L, 2C, 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が遊技者により操作可能にそれぞれ設けられている。   In the front door 1b, as shown in FIG. 1, a medal insertion section 4 into which medals can be inserted, a medal payout exit 9 from which medals are paid out, and a credit (the number of medals stored as a game value owned by the player). The MAXBET switch 6, which is operated when setting the maximum bet amount (MAX BET number) among the prescribed number of bets (BET numbers) determined according to the game state within the range, stored as a credit. The settlement switch 10 which is operated to settle the medals used for setting the number of medals and the number of bets (return the medals used for setting the number of credits and the number of bets), and to start a game (game). A start switch 7 that is operated, stop switches 8L, 8C, 8R that are operated when the rotation of the reels 2L, 2C, and 2R is stopped, respectively, an effect used for the effect. Switch 56 are respectively provided so as to be operated by the player.

なお、本実施例では、回転を開始した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 rotating, the reel that stops first is referred to as a first stop reel, and the stop is referred to as a first stop. Similarly, the reel that stops second is referred to as a second stop reel, the stop is referred to as a second stop, the reel that stops third is referred to as a third stop reel, and the stop is referred to as a third stop. Alternatively, it is referred to as a final stop.

また、前面扉1bには、図1に示すように、クレジットとして記憶されているメダル枚数が表示されるクレジット表示器11、入賞の発生により払い出されたメダル枚数やエラー発生時にその内容を示すエラーコードなどが表示される遊技補助表示器12、賭数が1設定されている旨を点灯により報知する1BETLED14、賭数が2設定されている旨を点灯により報知する2BETLED15、賭数が3設定されている旨を点灯により報知する3BETLED16、メダルの投入が可能な状態を点灯により報知する投入要求LED17、スタートスイッチ7の操作によるゲームのスタート操作が有効である旨を点灯により報知するスタート有効LED18、ウェイト(前回のゲーム開始から一定期間経過していないためにリールの回転開始を待機している状態)中である旨を点灯により報知するウェイト中LED19、リプレイゲーム中である旨を点灯により報知するリプレイ中LED20が設けられた遊技用表示部13が設けられている。   As shown in FIG. 1, the front door 1b displays a credit indicator 11 displaying the number of medals stored as credits, and shows the number of medals paid out due to the occurrence of a prize and the contents of the error when an error occurs. An auxiliary game display 12 for displaying an error code, etc., a 1 BET LED 14 for notifying by light that a bet number is set to 1, a 2 BET LED 15 for notifying by light that a bet number is set to 2, and a setting of 3 bet numbers A 3BET LED 16 for notifying that a game has been inserted, a request LED 17 for notifying that a medal can be inserted, and a start valid LED 18 for notifying that a game start operation by operating the start switch 7 is effective. , Wait (because a certain period has not elapsed since the previous game started, Weight in LED19 for notifying by lighting the fact is in state) waiting, the game display section 13 in the replay LED20 is provided for informing by lighting the effect that while replaying the game are 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, there is provided a BET switch valid LED 21 (see FIG. 3) for notifying by lighting that the setting operation of the bet amount by operating the MAXBET switch 6 is valid, and the stop switches 8L, 8C, Inside the 8R, left, middle, and right stop valid LEDs 22L, 22C, and 22R (see FIG. 3) for notifying by light that the reel stop operation by the corresponding stop switches 8L, 8C, and 8R are valid are provided, respectively. An effect LED 56a (see FIG. 3) is provided inside the effect switch 56 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 for detecting a reset operation for releasing an error state and a hit state described later without opening the front door 1b by a predetermined key operation, A set value display 24 on which a set value at that time is displayed during a change of a set value to be described later or a check of the set value, a stop state at a predetermined timing (the progress of the game is restricted until a reset operation is performed) State switch) for selecting the validity / invalidity of the striking function to be controlled to the state (state). Automatic settlement processing (payment (return) of medals stored as credits irrespective of the operation of the player) at a predetermined timing. The automatic settlement switch 36b for selecting the validity / invalidity of the automatic settlement function to be controlled in (Processing), and the flow path of the medals inserted from the medal insertion unit 4 are provided in the housing 1a, which will be described later. A flow path switching solenoid 30 for selectively switching to one of the upper tank 34a (see FIG. 2) side and the medal payout port 9 side, and detects a medal that has been input from the medal input section 4 and has flowed to the hopper tank 34a side. An inserted medal sensor 31, a medal selector 29 having an insertion port sensor 26 for detecting insertion of a foreign substance on the upstream side of the inserted medal sensor 31, and a door open detection switch 25 (see FIG. 3) for detecting an open state of the front door 1b are provided. Have been.

筐体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が設けられている。   As shown in FIG. 2, the reels 2L, 2C, and 2R, the reel motors 32L, 32C, and 32R (see FIG. 3), and the reel reference positions of the reels 2L, 2C, and 2R are respectively provided inside the housing 1a. A reel unit 2 including detectable reel sensors 33L, 33C, 33R (see FIG. 3), an external output board 1000 for outputting an external output signal (see FIG. 3), and storing medals inserted from the medal insertion section 4. Hopper tank 34a, a hopper motor 34b (see FIG. 3) for paying out medals stored in the hopper tank 34a from the medal payout port 9, and a payout sensor 34c for detecting medals paid out by driving the hopper motor 34b ( (See FIG. 3) and a power supply box 100 are provided.

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

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

なお、電源ボックス100は、筐体1aの内部に設けられており、さらに前面扉1bは、店員などが所持する所定のキー操作により開放可能な構成であるため、これら電源ボックス100の前面に設けられた設定キースイッチ37、リセット/設定スイッチ38、電源スイッチ39は、キーを所持する店員などの者のみが操作可能とされ、遊技者による操作ができないようになっている。また、所定のキー操作により検出されるリセットスイッチ23も同様である。特に、設定キースイッチ37は、キー操作により前面扉1bを開放したうえで、さらにキー操作を要することから、遊技店の店員のなかでも、設定キースイッチ37の操作を行うキーを所持する店員のみ操作が可能とされている。   The power supply box 100 is provided inside the housing 1a, and the front door 1b is provided on a front surface of the power supply box 100 because the front door 1b can be opened by a predetermined key operation carried by a clerk or the like. The set key switch 37, the reset / setting switch 38, and the power switch 39 can be operated only by a person such as a clerk having 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, among the clerks of the amusement shop, only the clerk having the key for operating the setting key switch 37 is available. Operation is allowed.

本実施例のスロットマシン1においてゲームを行う場合には、まず、メダルをメダル投入部4から投入するか、あるいはクレジットを使用して賭数を設定する。クレジットを使用するにはMAXBETスイッチ6を操作すれば良い。遊技状態に応じて定められた規定数の賭数が設定されると、入賞ラインLN(図1参照)が有効となり、スタートスイッチ7の操作が有効な状態、すなわち、ゲームが開始可能な状態となる。なお、遊技状態に対応する規定数のうち最大数を超えてメダルが投入された場合には、その分はクレジットに加算される。   When playing a game in 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, the MAXBET switch 6 may be operated. When a predetermined number of bets set according to the game state is set, the pay 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. When a medal is inserted in a number exceeding the maximum number among the specified numbers corresponding to the gaming state, the amount is 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 the symbols displayed on the perspective windows 3 of the reels 2L, 2C, 2R is a combination of the winning symbols. In the present embodiment, as shown in FIG. 1, only the pay line LN set across the middle row of the reel 2L, the middle row of the reel 2C, and the middle row of the reel 2R, that is, the symbols arranged horizontally in the middle row. 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 the present embodiment, in order to easily recognize that the combination of the symbols constituting the prize on the prize line LN, the invalid lines LM1 to LM4 (LM1 is a left middle right reel separately from the prize line LN). LM2 is a line extending from the middle of the left middle right reel, LM3 is a line extending from the bottom of the left middle right reel, and LM4 is a middle line of the lower left and middle reels. , A line extending over the upper stage of the right reel.). The invalid lines LM1 to LM4 are not determined based on the combination of the symbols arranged on the invalid lines LM1 to LM4. When the combination of the symbols constituting the specific prize is arranged on the prize line LN, the invalid lines LM1 to LM4 are invalid. When a combination of symbols (for example, bell-bell-bell) that becomes a winning when the winning line LN is aligned with any of the LM1 to LM4 is arranged, a symbol forming a specific winning on the winning line LN is formed. This is to make it easy to recognize that the combination is complete.

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

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

ゲームが開始可能な状態でスタートスイッチ7を操作すると、各リール2L,2C,2Rが回転し、各リール2L,2C,2Rの図柄が連続的に変動する。この状態でいずれかのストップスイッチ8L,8C,8Rを操作すると、対応するリール2L,2C,2Rの回転が停止し、透視窓3に表示結果が導出表示される。   When the start switch 7 is operated in a state where the game can be started, the reels 2L, 2C, 2R rotate, and the symbols on the reels 2L, 2C, 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 see-through window 3.

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

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

また、本実施例では、3つのリールを用いた構成を例示しているが、リールを1つのみ用いた構成、2つのリールを用いた構成、4つ以上のリールを用いた構成としても良く、2以上のリールを用いた構成においては、2以上の全てのリールに導出された表示結果の組合せに基づいて入賞を判定する構成とすれば良い。また、本実施例では、物理的なリールにて可変表示装置が構成されているが、液晶表示器などの画像表示装置にて可変表示装置が構成されていても良い。   Further, in the present embodiment, the 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 a configuration using two or more reels, the winning may be determined based on a combination of display results derived for all of the two or more reels. Further, in this embodiment, the variable display device is constituted by physical reels, but the variable display device may be constituted 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 according to the present embodiment, after the game is started and the reels 2L, 2C, 2R rotate and the symbols start to change, one of the stop switches 8L, 8C, 8R is operated. Then, the rotation of the reel corresponding to the stop switch 8L, 8C, 8R is stopped, and the symbol is stopped and displayed. 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 80 × 20 (the number of symbols per reel) = 1600 symbols, so that a maximum of 4 symbols are used within 190 milliseconds. Can be pulled in. That is, the symbols that can be selected as the stop symbols are the symbols displayed when the stop switches 8L, 8C, and 8R are operated, and the symbols four frames away from the symbols, for a total of five frames.

このため、例えば、ストップスイッチ8L,8C,8Rのいずれかが操作されたときに当該ストップスイッチに対応するリールの下段に表示されている図柄を基準とした場合は、当該基準とした図柄から4コマ先までの図柄を下段に表示させることができるため、リール2L,2C,2R各々において、ストップスイッチ8L,8C,8Rのうちいずれかが操作されたときに当該ストップスイッチに対応するリールの入賞ライン上に表示されている図柄を含めて5コマ以内に配置されている図柄を入賞ライン上に表示させることができる。   For this reason, for example, when one of the stop switches 8L, 8C, 8R is operated, and the symbol displayed on the lower row of the reel corresponding to the stop switch is used as a reference, 4 Since the symbols up to the top of the frame can be displayed in the lower row, when any one of the stop switches 8L, 8C, 8R is operated in each of the reels 2L, 2C, 2R, the winning of the reel corresponding to the stop switch is performed. The symbols arranged within five 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を停止させる操作を停止操作という場合がある。   Hereinafter, the reels 2L, 2C, and 2R may be simply referred to as reels unless it is particularly necessary to distinguish them. 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. An 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 a 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 is performed by the game control board 40, and the game is controlled by the effect control board 90. The control of the effect according to the state is performed, and the power supply board 101 generates a drive power supply for the electric components constituting the slot machine 1, and supplies the drive power to the respective units.

電源基板101には、外部からAC100Vの電源が供給されるとともに、このAC100Vの電源からスロットマシン1を構成する電気部品の駆動に必要な直流電圧が生成され、遊技制御基板40および演出制御基板90に供給されるようになっている。また、電源基板101には、前述したホッパーモータ34b、払出センサ34c、満タンセンサ35a、設定キースイッチ37、リセット/設定スイッチ38、電源スイッチ39が接続されている。   A power supply of AC100V is supplied to the power supply board 101 from the outside, and a DC voltage necessary for driving the electric components constituting the slot machine 1 is generated from the power supply of AC100V, and the game control board 40 and the production control board 90 It is supplied to. The hopper motor 34b, the payout sensor 34c, the full tank sensor 35a, the setting key switch 37, the reset / setting switch 38, and the 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の制御に基づいて駆動されるようになっている。   On the game control board 40, the MAXBET switch 6, the start switch 7, the stop switches 8L, 8C, 8R, the settlement switch 10, the reset switch 23, the stop switch 36a, the automatic settlement switch 36b, the inserted medal sensor 31, and the door opening are provided. 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 are connected via the power supply board 101. The detection signals of these connected switches are input. In addition, the game control board 40 includes the above-described credit indicator 11, game assist indicators 12, 1-3 BET LEDs 14-16, insertion request LED 17, start valid LED 18, waiting LED 19, replay LED 20, BET switch valid LED 21, , Middle and right stop valid LEDs 22L, 22C, 22R, a set value display 24, a flow path switching solenoid 30, and reel motors 32L, 32C, 32R, and the hopper motor 34b described above via a power supply board 101. These electric components are connected and driven based on the control of a 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 includes a microcomputer having a main CPU 41a, a ROM 41b, a RAM 41c, and an I / O port 41d, and includes a random number circuit for generating a random number for an internal lottery. The main control unit 41 performs directly and indirectly controls each unit of the control circuit mounted on the game control board 40, and the switches are connected to the game control board 40 directly or via the power supply board 101. A switch detection circuit 44 which takes in the detected signal and transmits it to the main control unit 41, and transmits a motor drive signal (phase signals φ0 to φ3 of the stepping motor) output from the main control unit 41 to the reel motors 32L, 32C and 32R. Motor drive circuit 45 and the solenoid drive signal output from the main control unit 41 Drive circuit 46 that transmits the LED to the flow path switching solenoid 30, an LED drive circuit 47 that transmits an LED drive signal output from the main control unit 41 to various indicators and LEDs connected to the game control board 40, and a slot. A power-off detection circuit 48 for monitoring the voltage of the power supply supplied to the machine 1 and detecting a voltage drop when the voltage drop is detected to the main control unit 41; A reset circuit 49 that supplies a system reset signal to the main control unit 41 when the power supply is unstable such as when the power is turned off is 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 transmitted in only one direction, and the command is not transmitted 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より外部出力信号を出力可能である。   The I / O port 41d includes output ports 0 to 9, and the main control unit 41 can output control signals for the left, middle, and right reel motors 32L, 32C, and 32R from the output port 0 and the output port 1. is there. From the output port 2, control signals for the left, middle, and right stop valid LEDs 22L, 22C, and 22R and a control signal for the flow path switching solenoid 30 can be output. A control signal for the hopper motor 34b and an external output signal can be output from the output port 3. Control signals for the credit indicator 11, the game auxiliary indicators 12, 1 to 3 BET LEDs 14 to 16, the insertion request LED 17, the start valid LED 18, the waiting LED 19, the replay LED 20, and the BET switch valid LED 21 are output from the output ports 4 and 5. It is possible. A 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 performs a process according to the control state as a main process until the detection state of various switches connected to the game control board 40 changes, and responds to the change in the detection state of various switches. Execute the process of shifting in stages. Further, the main control unit 41 executes the timer interrupt processing (main) at fixed time intervals (about 0.56 milliseconds in this embodiment). Note that the execution interval of the timer interrupt processing (main) is set to a time longer than the sum of the time during which the processing repeated in the main processing repeats according to the control state and the execution time of the timer interrupt processing (main). Thus, at least one cycle of the process repeated according to the control state between the current and next timer interrupt processes (main) is performed at least.

演出制御基板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を例示しているが、演出装置は、これらに限られず、例えば、機械的に駆動する表示装置や機械的に駆動する役モノなどを演出装置として適用しても良い。   The effect switch 56 is connected to the effect control board 90, and a detection signal of the effect switch 56 is input. In addition, effect devices such as a liquid crystal display 51, effect LED 52, speakers 53 and 54, and reel LED 55 are connected, and these effect devices are controlled based on a sub-control unit 91 mounted on an 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 and 54, and the reel LED 55. However, an output control unit that directly performs output control of the effect device separately from the sub-control unit 91 is mounted on the effect control board 90 or another board, and the sub-control unit 91 is based on a command from the main control unit 41. The output pattern of the rendering device may be determined, and the output control unit may perform the output control of the rendering 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 The output control of the rendering device is performed by both of the units. Further, in the present embodiment, the liquid crystal display 51, the effect LED 52, the speakers 53 and 54, and the reel LED 55 are illustrated as the effect devices, but the effect device is not limited to these, and for example, a display that is driven mechanically. A device or a mechanically driven role object may be applied as the rendering device.

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

サブ制御部91は、遊技制御基板40から送信されるコマンドを受けて、演出を行うための各種の制御を行うとともに、演出制御基板90に搭載された制御回路の各部を直接的または間接的に制御する。   The sub-control unit 91 receives a command transmitted from the game control board 40, performs various controls for performing the effect, and directly or indirectly controls each unit 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 the present embodiment has a configuration in which the payout rate of medals changes according to the set value. More specifically, the payout rate of medals is changed by using a winning probability according to a set value in a lottery that affects the degree of advantage to a player such as an internal lottery. The set value is made up of six levels from 1 to 6, with 6 being the highest payout rate and the payout rate decreasing as the value decreases in the order of 5, 4, 3, 2, 1. That is, when 6 is set as the set value, the advantage is the highest for the player, and as the value decreases in the order of 5, 4, 3, 2, and 1, the advantage gradually decreases.

設定値を変更するためには、設定キースイッチ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 setting 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 on the setting value display 24 as a display value, and the setting value can be changed by operating the reset / setting switch 38. Move to change state. When the reset / setting switch 38 is operated in the setting change state, the display value displayed on the set value display 24 is updated by one (when further operated from the set value 6, the set value is changed to 1). Return). Then, when the start switch 7 is operated, the display value is determined as the set value. Then, when the setting key switch 37 is turned off, the determined display value (set value) is stored in the RAM 41c of the main control unit 41, and the state shifts to a state where 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 game state is determined, and the game is performed on the condition that the specified number of bets is set according to the game state. Can be started. In the present embodiment, the pay line LN is activated when a prescribed number of bets is set according to the gaming state.

そして、本実施例では、全てのリール2L,2C,2Rが停止した際に、有効化された入賞ライン(本実施例の場合、常に入賞ラインLNが有効化されるため、以下では、有効化された入賞ラインLNを単に入賞ラインという)上に役と呼ばれる図柄の組合せが揃うと入賞となる。役は、同一図柄の組合せであっても良いし、異なる図柄を含む組合せであっても良い。   In this embodiment, when all the reels 2L, 2C, 2R are stopped, the activated pay line (in this embodiment, the activated pay line LN is always activated. A winning combination is achieved when a combination of symbols called a combination is arranged on the winning line LN thus obtained (hereinafter simply referred to as 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 combinations are determined according to the state of the game, but can be broadly divided into small winning combinations with medal payout and re-starting so that the next game can be started without setting the number of bets. There are a game combination (replay) and a special combination (bonus) accompanied by a transition to a game state advantageous to the player. Hereinafter, the small role and the replaying role are also collectively referred to as a general role. In order for a winning of each combination determined according to the gaming state to occur, it is necessary to win the internal lottery and set the winning flag of the combination in the RAM 41c. In the internal lottery, the main controller 41 determines whether or not to permit winning of each of the above-mentioned roles before the display results of all the reels 2L, 2C, 2R are derived (specifically, the start switch 7). At the time of detection) using a random number. In addition, among the winning flags of the respective roles, the winning flag of the small role and the replaying role is valid only in the game in which the flag is set, and is invalid in the next game. The combination is enabled until the combination of the permitted combinations is completed by the flag, and is invalid in the game in which the combination of the permitted combinations is completed. That is, once the special combination winning flag is won, even if the combination of combinations permitted by the flag cannot be aligned, the winning flag is not invalidated and is carried over to the next game. Becomes

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

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

また、内部抽選では、当選し得る役として、通常の役とは異なる特殊役(特殊小役または特殊再遊技役)が含まれており、内部抽選にて特殊役が当選することで、規定のゲーム数にわたり後述のアシストタイム(以下、ATという)に制御される権利(以下、ATの権利という)が当選し得るようになっている。   In addition, in the internal lottery, special roles (special small role or special replaying role) that are different from normal roles are included as the roles that can be won. A right to be controlled by an assist time (hereinafter, referred to as AT) to be described later (hereinafter, referred to as AT right) 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 that are advantageous to the player according to the internal lottery result by the lighting mode of the game auxiliary display 12. The control can be performed during an assist time (hereinafter, referred to as AT), which is a notification period in which the notification can be executed. A right controlled by the AT is won, and a predetermined start condition (for example, after the right of the AT is won, a predetermined After the number of games elapses, a predetermined symbol combination stops on the reels 2L, 2C, and 2R after the AT right is won, etc.), the main control unit 41 starts controlling the AT. , AT. Then, in the case where the AT is controlled, the navigation notification is executed by winning the navigation target combination (corresponding combination of the above-mentioned pressing combinations) according to the gaming state, which is advantageous to the player. By notifying the operation modes (pressing order, operation timing) of the stop switches 8L, 8C, and 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 is displayed. A navigation effect using the display 51 or the like is executed. By operating the stop switches 8L, 8C, 8R in the operation mode informed by the navigation notification and the navigation effect, it is possible to reliably win the pushing sequence won by the internal lottery. In this embodiment, the main control unit 41 can execute the navigation notification and the navigation effect by satisfying a certain condition even in the normal state where the AT is not controlled.

次に、メイン制御部41が行うリール2L,2C,2Rの停止制御について説明する。メイン制御部41は、リールの回転が開始したとき、およびリールが停止し、かつ未だ回転中のリールが残っているときに、当選番号およびROM41bに格納されているテーブルインデックス、テーブル作成用データを参照して、回転中のリール別に停止制御テーブルを作成する。そして、ストップスイッチ8L,8C,8Rのうち、回転中のリールに対応するいずれかの操作が有効に検出されたときに、該当するリールの停止制御テーブルを参照し、参照した停止制御テーブルの滑りコマ数に基づいて、操作されたストップスイッチ8L,8C,8Rに対応するリール2L,2C,2Rの回転を停止させる制御を行う。   Next, stop control of the reels 2L, 2C, 2R performed by the main control unit 41 will be described. When the rotation of the reels is started, and when the reels are stopped and the reels that are still spinning remain, the main control unit 41 determines the winning number and the table index and the table creation data stored in the ROM 41b. By referring to the table, a stop control table is created for each rotating reel. Then, when any of the stop switches 8L, 8C, 8R corresponding to the reel being rotated is effectively detected, the stop control table of the corresponding reel is referred to, and the slip of the referred stop control table is performed. Based on the frame number, 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 determined as the number of sliding frames, and it is possible to stop the reel by drawing up to four symbols after detecting the stop operation. In other words, the stop position of the symbol can be specified from a range of up to five 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 draw up to four symbols and stop the reel after detecting the stop operation. The stop position of the symbol can be designated from a maximum of five symbols including the operation position.

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

特別役が前ゲーム以前から持ち越されている状態で小役が当選した場合など、特別役と小役が同時に当選している場合には、停止操作が行われた際に、入賞ライン上に最大4コマの引込範囲で当選している小役を揃えて停止させることができれば、これを揃えて停止させる制御が行われ、入賞ライン上に最大4コマの引込範囲で当選している小役を引き込めない場合には、入賞ライン上に最大4コマの引込範囲で当選している特別役を揃えて停止させることができれば、これを揃えて停止させる制御が行われ、当選していない役は、4コマの引込範囲で揃えずに停止させる制御が行われることとなる。すなわちこのような場合には、特別役よりも小役を入賞ライン上に揃える制御が優先され、小役を引き込めない場合にのみ、特別役を入賞させることが可能となる。なお、特別役と小役を同時に引き込める場合には、小役のみを引き込み、特別役と同時に小役が入賞ライン上に揃わないようになる。また、特別役と小役が同時に当選している場合に、小役よりも特別役を入賞ライン上に揃える制御が優先され、特別役を引き込めない場合にのみ、小役を入賞ライン上に揃える制御を行っても良い。   When the special role and the small role are elected at the same time, such as when the small role is elected while the special role has been carried over from before the previous game, when the stop operation is performed, the maximum If it is possible to stop all the winning combinations in the 4-frame pull-in range, control is performed to align and stop the winning small roles. If it is not possible to draw in, if it is possible to stop all the special roles that have been won in the pay-in range of a maximum of four frames on the winning line, control will be performed to align and stop them. That is, control is performed to stop the four frames without being aligned in the pull-in range. That is, in such a case, the control for aligning the small role on the pay line is given priority over the special role, and the special role can be won only when the small role cannot be drawn. When the special role and the small role can be drawn in at the same time, only the small role is drawn in, and the special role and the small role are not aligned on the winning line. In addition, when the special role and the small role are elected at the same time, the control to arrange the special role on the winning line has priority over the small role, and only when the special role cannot be drawn, 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 the present embodiment, when the special role and the replaying role are simultaneously won, for example, when the replaying role is won while the special role has been carried over from before the previous game, a stop operation is performed. At this time, a control is performed in which the symbols of the replaying game are aligned and stopped within a pull-in range of a maximum of four frames on the winning line. In this case, the symbols that constitute the replaying game or the symbols that constitute the replaying game that is simultaneously won are arranged within 5 symbols in all of the reels 2L, 2C, and 2R, that is, at intervals of up to 4 frames. In the case where the special role and the replaying role are simultaneously elected, regardless of the operation timing of the stop switches 8L, 8C, 8R by the player, the stop can be stopped at any position within the retraction range of 4 frames. Instead, the re-game players will always win. In other words, in such a case, the control for aligning the re-gaming combination on the winning line is given priority over the special combination, and the re-gaming combination always wins. When the special role and the replaying role can be drawn in at the same time, only the replaying role is drawn in, so that the special role does not coincide with the replaying role on the winning line.

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

[メイン制御部のメモリ領域とプログラムについて]
図4は、メイン制御部41が用いるメモリ領域のアドレスマップである。図4に示すように、メイン制御部41が用いるメモリ領域は、ROM41bに割り当てられたメモリ領域(0000H〜EFFFH)と、RAM41cに割り当てられたメモリ領域(F000H〜FFFFH)とを含む。
[About memory area and program of main control unit]
FIG. 4 is an address map of a 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 programs and fixed data are stored, and other areas (2FC0H to EFFFH). Other areas include a ROM comment area in which arbitrary data such as a program title and a version can be set, a vector table area in which an upper address of a subroutine of a CALLV instruction and a head address of a timer interrupt processing (main) are set. , An HW parameter area in which parameters for setting the internal functions of the main control unit 41 by hardware are set, and an unused area in which access is prohibited.

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

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

なお、遊技の進行とは、遊技を構成する一連のプロセスを進行させることであり、スロットマシンであれば、賭数を設定してゲームを開始可能とする段階、ゲームを開始してリールを回転させる段階、リールを停止させて表示結果を導出させる段階、表示結果に応じてメダルなどの価値を付与する段階を進行させることである。   In addition, the progress of the game means to advance a series of processes constituting the game, and in the case of a slot machine, setting the number of bets and enabling the game to start, starting the game and rotating the reels Advancing the step of causing the reel to stop, deriving the display result, and adding a value such as a medal according to the display result.

なお、上記において記憶領域の前後とは、記憶領域に割り当てられたアドレス値の大小関係であり、アドレスが小さい方が前方となり、アドレスが大きい方が後方となる。このため、一の記憶領域よりも後方に割り当てられた記憶領域とは、一の記憶領域よりもアドレス値が大きい記憶領域が該当し、一の記憶領域よりも前方に割り当てられた記憶領域とは、一の記憶領域よりもアドレス値が小さい記憶領域が該当する。   In the above description, “before and after the storage area” means the magnitude relationship of the address values assigned to the storage area, with the smaller address being the front and the larger address being the rear. For this reason, a storage area allocated behind one storage area corresponds to a storage area having an address value larger than that of one storage area, and a storage area allocated ahead of one storage area. , A storage area having an address value smaller than that of one storage area.

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 where the game program saves data, a non-game RAM area used by the non-game program as a work, and an unused area 4. And a stack area in which the non-game program saves data.

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

以下では、遊技プログラム領域、遊技データ領域および遊技RAM領域をまとめて遊技領域と称す場合があり、非遊技プログラム領域、非遊技データ領域および非遊技RAM領域をまとめて非遊技領域と称す場合がある。また、未使用領域1および未使用領域2、未使用領域3および未使用領域4をまとめて未使用領域と称す場合がある。   Hereinafter, 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. . The unused area 1 and 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 for managing the progress of the entire program, and a subroutine 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 to call and execute a subroutine stored at an address designated in a main routine or a subroutine. When calling the subroutine by the CALL instruction, the main control unit 41 stores the address of the caller in the stack area, calls and executes the subroutine stored at the specified address. When the subroutine ends, the RET instruction (return instruction) is used to return to the address of the caller stored in the stack area, that is, the main routine or subroutine program of the caller who 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 data stored in the program / data area. The LD instruction is an instruction for reading 1-byte data stored at an address specified in a main routine or a subroutine into a 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 for reading 2-byte data stored at an address specified in a main routine or a subroutine into a 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 a 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 processing based on the program, the game can be advanced. This 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. From each input port, detection signals of various connected devices are input. From each output port, various control signals, test signals, and external output signals can be output. Eight 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 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, left reel motor signals (φ0 to φ3) can be output from D0 to D3 of output port 0. As a result, the left reel motor can be driven, and the left reel rotates or stops. Note that the signal shown in FIG. 5 is merely an example, and other signals may be output, or a 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 shows an error code. The error command includes, as shown in FIG. 6, error codes E1 to E8 that can specify the type of abnormality that has occurred. E1 is an overflow error, indicating that a full state of the overflow tank 35 is detected, E2 is a hopper empty error, indicating that an empty state of the hopper tank 34a is detected, and E3 is a medal. E4 is a clogging error, indicating that a foreign object near the medal payout exit 9 has been detected, and E4 is a medal payout error, which is performed when the reels are being rotated and the payout is not performed. Has been detected, E5 indicates a medal insertion error, indicates that an abnormal passing of medals has been detected by the inserted medal sensor 31, E6 indicates a reel rotation error, and a reel rotation error has occurred. E7 indicates that abnormal rotation has been detected, E7 is an abnormal winning error, and a winning of a winning combination that is not permitted by internal lottery is detected. Indicates that, E8 is a RAM error indicates that the data of RAM41c is detected to be not normal at startup.

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

[起動処理(メイン)]
まず、メイン制御部41が行う起動時の処理である起動処理(メイン)について、図7に基づいて説明する。図7は、メイン制御部が行う起動処理(メイン)の制御内容を示すフローチャートである。なお、起動処理(メイン)は、遊技プログラムに含まれるメインルーチンである。
[Startup process (main)]
First, a startup process (main), which is a startup process performed by the main control unit 41, will be described with reference to FIG. FIG. 7 is a flowchart illustrating the control content of the startup 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 is started in a state in which the timer interrupt is set to be prohibited by the occurrence of the 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, an activation process (main) is performed. In the activation process (main), first, the timer interrupt is set to be prohibited (Sa1). Hereinafter, setting the timer interrupt to be prohibited is also referred to as performing an interrupt prohibition setting, and setting the timer interrupt to a permitted state is also referred to as performing an interrupt permission setting.

次に、全ての出力ポートの初期設定を行う(Sa2)。その際、まず、出力ボート3および4に対する初期設定を行い、次に、出力ボート1および2に対する初期設定を行い、次に、出力ボート5および6に対する初期設定を行い、最後に、出力ボート7に対する初期設定を行う。出力ポートの初期設定とは、出力ポートから出力される信号をOFF状態にすることを言う。すなわち、なんらかの信号が出力されている場合には、出力ポートの初期設定によって、当該信号の出力が停止する。   Next, all the output ports are initialized (Sa2). At this time, first, the initial settings for the output boats 3 and 4 are performed, then the initial settings for the output boats 1 and 2 are performed, and then the initial settings for the output boats 5 and 6 are performed. Make initial settings for. The initial setting of the output port means that the signal output from the output port is turned off. That is, when any signal is being 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 signals are output from each output port. When an output command is issued with one 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 to two adjacent ports by setting each bit to 0, the output command is set to 0000H (0 data for 16 bits) for the output port.

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

ここで、出力ポートの初期設定を行うのは、各種機器が誤動作することを防止するためである。スロットマシン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 an ON state due to the influence of noise or the like, various devices malfunction. In particular, since a popper motor control signal is output from D7 of the output port 3, there is a risk that the hopper motor will be driven to pay out medals due to malfunction. Therefore, in the present embodiment, first, the initial setting is performed from the output boats 3 and 4. By doing so, malfunction of the hopper motor can be prevented as much as possible.

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

次に、初期設定処理(Sa4)を行う。初期設定処理は、ステップSa1によりタイマ割込が禁止された状態で開始される。初期設定処理では、RAM41cに異常があるか否かを判定する。RAM41cに異常がある場合には、全初期化対象領域(領域A〜D)を初期化する。   Next, an initial setting process (Sa4) is performed. The initial setting process is started in a state where the timer interrupt is prohibited in step Sa1. In the initial setting process, it is determined whether or not the RAM 41c has an abnormality. When there is an abnormality in the RAM 41c, all the initialization target areas (areas A to D) are 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 ON with reference to the input port 2. When it is determined that the setting key switch 37 is in the ON state, a setting change process is performed. In the setting change process, the setting value is determined 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. Is ended, and the game is shifted to a state in which the game can proceed. In the setting change processing, when the setting change processing is started, a setting command (start) indicating that the setting change processing is started is transmitted to the sub-control unit 91. When the setting change processing is ended, A setting command (end) indicating that the setting change process is ended is issued. When the setting change processing is completed, the setting change end initialization target areas (areas B to D) 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 the RAM 41c has an abnormality. When it is determined that there is no abnormality in the RAM 41c, the output buffer for outputting the external output signal is cleared. The reel error counter, which is set in a predetermined area of the RAM 41c and counts the number of times a reel rotation error is detected in the main processing, is cleared. Thereafter, by setting an address at the time of power failure to the stack pointer SP based on the contents stored in the RAM 41c, the stack pointer is returned to the state at the time of power failure, and port input processing is performed three times in succession.

ポート入力処理は、パラレル入力ポート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の所定ビットに格納する。ポート入力バッファに格納された各種スイッチ類の入力データ、確定データ、エッジデータは、遊技プログラムおよび非遊技プログラムから参照することが可能である。   The port input processing includes input state data relating to input states such as detection signals of various switches input to the parallel input port 511 (input data indicating a current input state of various switches, and a state in which previous and current input data are the same). This is a process for updating the fixed data indicating that the fixed data has changed and the edge data indicating that the fixed data has changed from the previous time. In a predetermined area of the game RAM area of the RAM 41c, port input buffers 0 to 2 for storing input state data of various switches are provided, and input state data of various switches updated by the port input processing is The data is stored in a predetermined bit of a port input buffer predetermined for each type. In the port input processing, the detection state (ON state or OFF state) of various switches set to the input ports 0 to 2 of the parallel input port 511 is stored as input data in a predetermined bit of a port input buffer. Further, the detection state (ON state or OFF state) in the previous and current port input processes is compared, and if the current and previous input data are in the same state, the current input data detection state is indicated. While the input data is different from the previous input data, the previous input data is maintained. Also, comparing the current and previous set data, if the set data changes from the OFF state to the ON state, ON edge data indicating that the set data has changed from the OFF state to the ON state is input to the port input buffer 0. When the determined data changes from the ON state to the OFF state, OFF edge data indicating that the determined data has changed from the ON state to the OFF state is stored in the predetermined bits of the port input buffers 0 to 2. Store in bits. The input data, fixed data, and edge data of various switches stored in the port input buffer can be referred to from a game program and a non-game program.

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

ポート入力処理を行った後は、リセット/設定スイッチ38がON状態でないと判定した場合は、電断前の制御状態に復帰した旨を示す復帰コマンドをサブ制御部91に送信した後、すべてのレジスタをRAM41cに記憶されている電断前の状態に復帰させ、割込許可設定を行い(Sa5)、初期設定処理を終了させてタイマ割込処理(メイン)に移行させた後、スロットマシン1への電力供給が停止される前に実行していたメイン処理における処理に復帰する。   After performing the port input processing, if it is determined that the reset / setting switch 38 is not in the ON state, a return command indicating that the control state has returned to the control state before the power failure is transmitted to the sub control unit 91, and then all The register is restored to the state before the power failure stored in the RAM 41c, interrupt permission setting is performed (Sa5), the initial setting process is ended, and the process shifts to the timer interrupt process (main). The processing returns to the processing in the main processing that was being executed before the power supply to the power supply 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 there is an abnormality in the RAM 41c, all the initialization target areas (areas A to D) are initialized. Thereafter, an interrupt permission setting is performed, an error code (E8) of a RAM error indicating that there is an abnormality in the RAM 41c is prepared in a predetermined register, the initial setting process is completed, and the process shifts to an error process. In the error processing, control of the error state is performed until it is specified that the condition for canceling the error state according to the error code (E8) is satisfied. If the error code (E8) of the RAM error is prepared in a predetermined register and the operation is shifted to the error state, the power supply switch 39 is turned on while the setting key switch 37 is turned on to shift to the setting change state. In this way, by initializing all the game RAM areas (areas A to D), it is possible to reliably eliminate the data abnormality in the RAM 41c and release the error state.

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

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

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

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

また、指定可能な差分値には制限がある。たとえば、差分値として最大50までしか指定できない場合は、読み出した基準アドレスに対して、50アドレス先の領域までしか設定することができない。したがって、差分値を用いて設定値を設定したい場合には、できるかぎり設定が可能な複数の領域をカバーできるように、基準アドレスを読み出すことが望ましい。以下、フローチャートに沿って説明する。   Further, there is a limit on the difference value that can be specified. For example, if only a maximum of 50 values can be specified as a difference value, it is only possible to set a region up to 50 addresses ahead of the read reference address. Therefore, when it is desired to set a set value using a difference value, it is desirable to read out the reference address so as to cover a plurality of areas where setting is possible as much as possible. Hereinafter, description will be given along 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 step Sb1, an LD instruction capable of setting 1-byte data corresponds to a second area among the second, third, fourth, and sixth areas where setting values need to be set. Read the address into a predetermined register. The address read here is the start address (FE01H) of the second area, and is used as a reference address hereinafter. The second area is an area corresponding 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 located 21H (33) away from the sixth area where the address is farthest. In the present embodiment, since the maximum specifiable difference value is 50, it is possible to set a set value in the sixth area by an LD command using the difference value. Here, if a reference value is set in the fourth area, an LD instruction using a difference value cannot be used for the second and third areas. Also, when the address range of the first area is wide, when a reference value is set in the first area, there is a possibility that an LD instruction using a difference value cannot be used for the sixth area.

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

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

そして、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 Sb3, data is set in the third area and the fourth area. The third area is an area where 1-byte data specified by the address FE02H can be set. The fourth area is an area where 1-byte data specified by the address FE03H can be set. That is, the third area is an area specified by an address obtained by adding the difference value 1 to the reference address. Since the third area and the fourth area are both 1-byte areas, by setting 2-byte data for the start address of the third area, the setting is performed for both the third area and the fourth area. Can be set. That is, when setting the set value, 2-byte data can be set so that the set value is set in each of the third area corresponding to FE02H and the fourth area corresponding to FE03H which is the next address of 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, the data B (for example, 12) is stored in the third area based on the address (FE02H) calculated using the difference value (1) with respect to the reference address using an LDW instruction capable of setting 2-byte data. Is set, and data C (for example, 56) is set in the fourth area. According to the LDW instruction, data B + data C × FFH (= 12 + 56 × FFH) is set to an address obtained by adding 1 which is a difference value to the reference address stored in the predetermined register. Thereby, 12 (data B) is set in the third area, and 56 (data C) can be set in the fourth area 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 a process of reading an address into a predetermined register by an LD instruction, a capacity of 3 bytes is required. Further, a 2-byte capacity is required to set data in an area indicated by an address set in a predetermined register by an LD instruction. 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 × 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 in each of the two areas by the LDW instruction using the difference value, a 4-byte capacity is required. In this case, the process of reading the address by the LD instruction as described above is unnecessary. That is, compared with the method not using the difference value, the data capacity for 6 bytes (10 bytes-4 bytes) can be saved. In this way, by setting data in the third and fourth areas based on the address calculated using the difference value, it is possible to set the set value in the third and fourth areas by directly specifying the address. Program capacity can be saved. Further, 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, when setting 1-byte data, data setting is performed using an LD instruction, and when setting 2-byte data, data setting is performed using an LDW instruction. In step Sb4, data D is set for the sixth area based on the address calculated using the difference value with respect to the reference address. The sixth area is an area where 1-byte data specified by the address FE22H can be set. Since the difference value from the reference address is 21H (= FE22H-FE01H), the data is stored in the sixth area based on the address (FE22H) calculated 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 areas where the set values are to be set in steps Sb1 to Sb4, the internal register setting process ends. As a result, the process returns to the start processing (main). When the startup process (main) is completed, the process proceeds to the last process (main process) before the power interruption. By shifting to the main process, control of the game is started. As described above, by starting the control of the game after setting the setting values in all of the second, third, fourth, and sixth areas where the setting values are to be set, the setting of the setting values to be set is not completed. Does not start game control.

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

また、起動処理(メイン)においては、内蔵レジスタ設定処理(Sa3)により第2,3,4,6領域に設定値を設定する以前に、出力ポートの初期設定を行う(Sa2)。このようにすることで、出力ポートから意図しない信号が出力されることを防止することができる。   In the start-up process (main), the output port is initialized (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 processing performed by the main control unit 41 will be described with reference to FIG. FIG. 9 is a flowchart illustrating the control content of the main processing performed by the main control unit. The main process is repeatedly executed for each game of one unit. One cycle of the main processing corresponds to one unit of the game. The main process is included in the game program and includes a plurality of processes. Hereinafter, processing not particularly indicated to be included in the non-game program is included in the game program. Some of the game programs called by the game program call a non-game program.

図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 performs an interrupt prohibition setting (Sc1). Next, the set RAM initialization area is cleared (Sc2). The set RAM initialization area is a RAM initialization area at the end of the game (area D) set at Sc36 described later or a RAM initialization area at the end of the bonus set at Sc38 (areas C and D). is there. Thus, when one game is over, the area D is cleared, and when one game is over and the bonus is over, the area C in addition to the area D is also cleared. After clearing the RAM initialization area, a game end command capable of specifying that one game has ended is transmitted to the sub control unit 91 (Sc3).

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

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

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

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

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

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

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 a predetermined area of the RAM 41c to measure the elapsed time from the start of reel rotation in the previous game. Then, based on the one game time management timer, it is determined whether or not a specified time (4.1 seconds in the present embodiment) of one game has elapsed from the start of reel rotation in the previous game (Sc15). If it is determined that the specified time for one game has not elapsed, the game waits until the specified time for one game has elapsed based on the timer for managing one game time, and the one game 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 step Sc15 that the specified time of one game has elapsed, the process proceeds to Sc16. The timer for managing one game time is set to 0 when a specified time (4.1 seconds in this embodiment) of one game has elapsed from the start of reel rotation in the game. It is possible to determine whether one game specified time has elapsed based on whether the management timer is 0 or not.

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

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

そして、リール停止処理を終了させた後は、入賞判定処理(Sc20)を行う。入賞判定処理では、内部抽選結果およびリール2L,2C,2Rに停止している図柄組合せに基づいて入賞が発生しているか否かを判定する。そして、Sc20のステップにおける入賞判定処理を行った後は、メダル投入部4からのメダルの投入に関する異常やホッパーからのメダルの払い出しに関する異常が検出されているか否かを判定する投入払出エラーチェック処理を行う(Sc21)。   After terminating the reel stop process, a 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. After performing the prize-winning determination process in the step of Sc20, an insertion / payout error check process of determining whether or not an abnormality related to insertion of medals from the medal insertion unit 4 or an abnormality related to payout of medals from the hopper is detected. (Sc21).

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

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

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

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

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

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

そして、遊技終了時のRAM初期化領域(領域D)を設定する(Sc38)。ボーナスが終了した場合には、ボーナス終了時のRAM初期化領域(領域C,D)を設定し(Sc38)、Sc1に戻る。ボーナスが終了していない場合には、遊技終了時のRAM初期化領域(領域D)が設定された状態で、Sc1に戻る。また、先に説明したように、Sc36またはSc38で設定された領域は、Sc2においてクリアされる。   Then, a RAM initialization area (area D) at the end of the game is set (Sc38). When the bonus is over, a RAM initialization area (regions C and D) at the time of the bonus end 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. As described above, the area set in 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 completes, the process related to 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 is included in the non-game program, for example, the RT information output processing, the winning information output processing, It calls data processing.

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

[遊技開始待ち処理]
本実施例のメイン制御部41が行う遊技開始待ち処理の制御内容について、図10に基づいて説明する。図10は、メイン制御部が行う遊技開始待ち処理の制御内容を示すフローチャートである。なお、遊技開始待ち処理は、遊技プログラムに含まれており、遊技プログラムに含まれるメイン処理において呼び出されるサブルーチンである。
[Game start waiting process]
The control content of the game start waiting process performed by the main control unit 41 of the present 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. Note that the game start waiting process is a subroutine included in the game program and 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, a credit number command transmission process (Sd1) for transmitting a credit number command is executed. Next, a medal insertion number display process is performed (Sd2), and the 1 to 3 BET LEDs 14 to 16 corresponding to the number of medals already inserted into the slot machine 1 are controlled to an 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 specifying that the hopper tank 34a is full is prepared in a predetermined register, and a predetermined port input buffer is referred to and based on the determined data of the full tank sensor 35a. Then, it is determined whether the hopper tank 34a is full (Sd3). If it is determined in step Sd3 that the hopper tank 34a is full, an error process is performed (Sd4). In the error processing, the game is controlled to an error state in which the progress of the game is disabled. Further, an error command capable of specifying an error code (E1) prepared in a predetermined register is transmitted to the sub-control unit 91, and the error code (E1) can be referred to a predetermined area of the RAM 41c for other processing. Error flag. In addition, control is performed so that the error code (E1) is displayed on the game auxiliary display 12. Thereafter, control of the error state is performed until it is specified that the condition for canceling the error state according to the error code (E1) prepared in the predetermined register is satisfied. When the error code (E1) is set in the register and shifted to the error state, the process waits until the determined data of the full tank sensor 35a is turned off, and the determined data of the full tank sensor 35a is turned off. Then, an error command (cancellation) for canceling the error state is transmitted to the sub control unit 91, the error processing is terminated, and the process proceeds to step Sd5.

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

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

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

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

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

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

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

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

操作入力受付処理では、メダル投入信号の遷移に基づいてメダルが通過中でないときに、RAM41cの所定領域に設定されているクレジットが、1以上である場合には、MAXBETスイッチ6による操作の受け付けを有効化する。また、メダル投入信号の遷移に基づいてメダルが通過中でないときに、RAM41cの所定領域に設定されている賭数が規定数である場合には、スタートスイッチ7による操作の受け付けを有効化する。また、メダル投入信号の遷移に基づいてメダルが通過中でない場合に、精算スイッチ10および設定キースイッチ37による操作の受け付けを有効化する。   In the operation input receiving 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 of the MAXBET switch 6 is received. Activate. When the medal is not passing based on the transition of the medal insertion signal and the bet number set in the predetermined area of the RAM 41c is a specified number, acceptance of the operation by the start switch 7 is enabled. In addition, when medals are not passing based on the transition of the medal insertion signal, acceptance of operations 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による操作が検出された場合には、クレジットに基づいて可能な範囲で規定数までのメダル枚数を賭数に設定し、賭数に設定した分のメダル枚数をクレジットから減算する処理を行う。操作が検出されたスイッチ類に応じた処理を行った後、操作入力受付処理を終了させる。   In the operation input receiving process, when the operation of the start switch 7 is detected while the operation of the start switch 7 is valid, a start flag indicating that the start switch 7 has been operated is set in a predetermined register. Thereafter, a process of switching the flow path of medals to the medal payout port 9 side by turning off the flow path switching solenoid 30 is performed. When the operation of the setting key switch 37 is detected in a state where the operation of the setting key switch 37 is valid, a setting value display process of displaying the setting value on the setting value display 24 is performed. In addition, when the operation by the settlement switch 10 is detected in a state where the operation by the settlement switch 10 is valid, a settlement process for returning the medal stored in the credit to the player is performed. When the operation of the MAXBET switch 6 is detected in a state where the operation of the MAXBET switch 6 is valid, the number of medals up to a prescribed number is set as the bet number within a possible range based on the credit, and the bet amount is set. A process of subtracting the set number of medals from the credit is performed. After performing a process corresponding to the switches for which the operation has been detected, the operation input reception process 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 simultaneously operated, 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 ON, and if the setting key switch 37 is ON, the mode shifts to the setting change state. If the setting key switch 37 is in the OFF state, it is determined whether or not the payment switch 10 is in the ON state. If the payment switch 10 is in the ON state, the payment processing is performed.

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

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

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

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

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

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

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

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

Se3のステップにおいて、まず、メダル投入エラーが検出された旨を示すエラーコード(E5)を所定のレジスタに設定する。そして、ステップSe4において、払出エラーフラグがOFF状態である場合は、Se6に進む。一方、Se4のステップにおいて、払出エラーフラグがON状態である場合は、メダル払出エラーが検出された旨を示すエラーコード(E4)を所定のレジスタに設定して、Se6に進む。すなわち、メダル払出エラーが検出された場合はエラーコート(E4)を所定のレジスタに設定し、メダル投入エラーが検出された場合はエラーコート(E5)を所定のレジスタに設定する。   In step Se3, first, an error code (E5) indicating that a medal insertion error has been detected is set in a predetermined register. If the payout error flag is OFF in step Se4, the process proceeds to Se6. On the other hand, if the payout error flag is ON in step Se4, 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, if a medal payout error is detected, the error code (E4) is set in a predetermined register, and if a medal insertion error is detected, the error code (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 performing setting for turning off all stop valid LEDs that notify by lighting that the reel stop operation is valid. Then, the flow path switching solenoid OFF process (Se7) is executed. The flow path switching solenoid off processing is processing for setting to turn off the flow path switching solenoid 30. Then, an error number is set based on the error code set in the predetermined register (Se8), and error processing (Se9) is executed.

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

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

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

[エラー処理]
本実施例のメイン制御部41が行うエラー処理の制御内容について、図12に基づいて説明する。図12は、メイン制御部が行うエラー処理の制御内容を示すフローチャートである。なお、エラー処理は、遊技プログラムに含まれており、遊技プログラムに含まれるメイン処理や投入払出エラーチェック処理などにおいて呼び出されるサブルーチンである。
[Error processing]
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 control contents of error processing performed by the main control unit. Note that the error process is a subroutine included in the game program and called in the main process and the input / output error check process included in the game program.

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

Sf2のステップにおいて、エラーコードを特定可能なエラーコマンドを送信するエラー開始コマンド送信処理を実行する。Sf3のステップにおいて、エラーコードに対応するエラー要因を取得し、Sf4のステップにおいて、エラーコードを遊技補助表示器12に表示させるように制御するエラー番号表示処理を行う。その後は、所定のレジスタに準備されているエラーコードに応じたエラー状態の解除条件が成立したことが特定されるまでエラー状態の制御を行う(Sf5)。   In step Sf2, an error start command transmission process for transmitting an error command capable of specifying an error code is executed. In step Sf3, an error factor corresponding to the error code is acquired, and in step Sf4, an error number display process for controlling the error code to be displayed on the game auxiliary display 12 is performed. Thereafter, the control of the error state is performed until it is specified that the condition for canceling the error state according 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 state is shifted to the error state, as a condition for releasing the error state, the detection state of the payout sensor 34c is OFF and the reset / setting switch 38 Alternatively, the process waits until the reset switch 23 is turned on. When the error code (E5) is prepared in the register and the state is shifted to the error state, as a condition for canceling the error state, the detection states of the inserted medal sensors 31a to 31c are OFF and the reset / setting switch is set. It waits until it is established that the switch 38 or the reset switch 23 is turned on.

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

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

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

[リール停止制御処理]
本実施例のメイン制御部41が行うリール停止制御処理の制御内容について、図13および図14に基づいて説明する。図13は、メイン制御部が行うリール停止制御処理の制御内容を示すフローチャート(その1)である。なお、リール停止制御処理は、遊技プログラムに含まれており、遊技プログラムに含まれるメイン処理において呼び出されるサブルーチンである。
[Reel stop control processing]
The control content of the reel stop control process performed by the main control unit 41 of the present embodiment will be described with reference to FIGS. FIG. 13 is a flowchart (part 1) illustrating the control content of the reel stop control process performed by the main control unit. The reel stop control process is a subroutine included in the game program and 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, an all-reel stop LED off process for setting to turn off all the stop valid LEDs is executed (Sg1). In the step Sg2, a one-time interruption process is executed. In the one-time interrupt wait process, the process waits until the timer interrupt process (main) is performed once. In step Sg3, interrupt permission setting is performed.

Sg4のステップでは、前述の払出投入エラーチェック処理を実行する。その結果、投入払出エラー(メダル投入エラーまたはメダル払出エラー)が発生した場合には(Sg5でYES)、Sg2のステップに戻り、Sg2〜Sg5の処理を繰り返す。投入払出エラーが解除された場合には、Sg6のステップに進む。すなわち、投入払出エラーが発生している状態においては、Sg6以降のステップに進むことができない。   In step Sg4, the above-described pay-in / out error check process is executed. As a result, when an insertion / payout error (medal insertion error or medal payout error) has occurred (YES in Sg5), the flow returns to the step Sg2, and the processing in Sg2 to Sg5 is repeated. When the input / output error is released, the process proceeds to step Sg6. That is, in the state where the input / output 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 / output error has occurred (NO in Sg5), the flow advances to step Sg6. If a reel rotation error has not occurred in step Sg6 (NO in Sg6), the flow advances to step 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 error processing is performed. (Sg9) is executed. In the error processing, the rotation of all reels is stopped, and the game is controlled to an error state that disables the progress of the game and waits. After that, the error state is released by the reset operation, and the error processing ends. After the end of the error process, the process returns to the step Sg2, repeats the processes from Sg2 to Sg9, and if no reel rotation error has occurred, the process proceeds to the step Sg10. That is, in the state where the reel rotation error has occurred, the process cannot proceed to the steps after Sg10.

Sg10のステップでは、内部当選信号出力タイマを取得する。ステップSg11において内部当選信号出力タイマが0になった場合(Sg11でYES)にはSg12のステップに進み、ステップSg11において内部出力タイマが0になるまで(Sg11)、Sg10,Sg11のステップを繰り返す。内部当選信号出力タイマは、内部当選信号が出力されてから所定時間(2秒経過)が経過したときに0になるタイマである。このため、内部当選信号が出力されてから2秒が経過するまでは、次の処理(Sg12)に進むことができない。   In step Sg10, an internal winning signal output timer is obtained. If the internal winning signal output timer has become 0 in step Sg11 (YES in Sg11), the process proceeds to step Sg12, and the steps 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 (two seconds) has elapsed since the internal winning signal was output. Therefore, it is not possible to proceed to the next process (Sg12) until two seconds have elapsed since the internal winning signal was output.

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

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

そして、Sg15のステップにおいて、少なくともいずれか1つのリールが定速回転で回転しておらず、回転制御中の全てのリールが定速回転で回転されている状況でないと判定した場合には、Sg1のステップに戻り、Sg1〜Sg15のステップを繰り返し実行して、回転制御中の全てのリールが定速回転で回転されている状況となるまで待機する。一方、Sg15のステップにおいて、回転制御中の全てのリールが定速回転で回転されていると判定した場合には、回転制御を行っている全てのリールについて停止操作の受け付けが有効になる。   If it is determined in step Sg15 that at least one of the reels is not rotating at a constant speed and all the reels under rotation control are not rotating at a constant speed, Sg1 is determined. Then, the steps Sg1 to Sg15 are repeatedly executed to wait until all the reels under rotation control are rotated at a constant speed. On the other hand, in the step 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に進む。   At Sg16, the stop valid LED state data is set to OFF, and if the reel has been accelerated (YES at Sg17), a reel acceleration command transmission process (Sg18) for transmitting a reel acceleration end command is executed. move on. On the other hand, when the reel has not been accelerated (NO in Sg17), the process proceeds to Sg19 without executing the reel acceleration command transmission processing.

次に、払出枚数表示データを格納し(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 obtained (Sg20), and after reading the stop valid LED state address, only the valid stop switch operation state is obtained (Sg21). Then, it is determined whether an effective stop switch operation (stop operation) has been performed (Sg22). Whether or not the valid stop switch has been operated is determined based on whether any one of the stop switches has the stop valid LED in the ON state and the stop switch signal in the ON edge state.

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

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

次に、Sg28のステップにおいて、割込禁止設定を行う。そして、Sg29のステップにおいて、RAM41cの所定領域に設定されている図柄ステップ数カウンタに基づいて、停止操作が検出されたリールの図柄ステップ数を取得する。Sg30のステップにおいては、図柄ステップ数がRAM41cの所定領域に設定されている判定範囲内にあるか否かを判定する。図柄ステップ数が所定の判定範囲内であれば(Sg30がYES)、ステップSg32に進む。一方、図柄ステップ数が判定範囲でなければ(Sg30がNO)、割込許可設定を行い(Sg31)、Sg28のステップに戻り、図柄ステップ数が所定の判定範囲となるまでSg28〜Sg31のステップを繰り返す。Sg31のステップにおいて割込許可設定がされたときに、割込処理を実行して、当該割込処理において図柄ステップ数カウンタを更新する。   Next, in step Sg28, interrupt prohibition setting is performed. Then, in step Sg29, the number of symbol steps on the reel for which the stop operation has been detected is acquired based on the symbol step number counter set in a predetermined area of the RAM 41c. In step Sg30, it is determined whether or not the number of symbol steps is within a determination range set in a 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 (NO in Sg30), interrupt permission setting is performed (Sg31), and the process returns to step Sg28, and the steps from Sg28 to Sg31 are repeated until the number of symbol steps falls within the predetermined determination range. repeat. When the interrupt permission is set in the step Sg31, an 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 among the number of steps for one rotation of the reel motor. For example, 16 steps (or 17 steps) are assigned to one symbol. If 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 a symbol passing 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, if the number of symbol steps is other than 11, it is determined that the number is outside the determination range. The determination range is not limited to this, and the determination range may be 0 to 11 steps, or the determination range may be different between a 16-step symbol and a 17-step symbol.

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

また、RAM41cの所定領域に設定されている停止制御テーブルを参照して、操作時図柄番号に基づいて停止操作が行われたタイミングに対応する滑りコマ数を特定し、当該滑りコマ数をRAM41cの所定領域に設定する。また、当該滑りコマ数に応じた位置、すなわち滑りコマ数に対応する図柄番号の図柄で該当するリールを停止させるために停止要求をRAM41cの所定領域に設定して、該当するリールを減速させて停止させる制動制御を開始させる。   Also, referring to the stop control table set in a predetermined area of the RAM 41c, the number of sliding frames corresponding to the timing at which the stop operation is performed based on the operating symbol number is specified, and the number of sliding frames is stored in the RAM 41c. Set to a predetermined area. In addition, a stop request is set in a predetermined area of the RAM 41c 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. The braking control to be stopped is started.

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

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

次に、Sg39のステップにおいて、停止対象となっているリールが最終停止(第3停止)であるのか否かを判定する。最終停止である場合(Sg39でYES)は、Sg40に進む。一方で、最終停止でない場合(Sg39でNO)、すなわち、第1停止または第2停止である場合は、Sg2に戻り、全てのリールに対してリール停止滑りコマ数設定処理が実行されるまで(最終停止となるまで)、Sg2〜Sg39の処理を繰り返す。   Next, in step 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, the process returns to Sg2 until the reel stop sliding frame number setting process is executed for all reels ( Until the final stop), the processing of Sg2 to Sg39 is repeated.

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

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

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

[遊技終了時の設定処理]
本実施例のメイン制御部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 content of the setting process at the time of the end of the game performed by the main control unit. Note that the setting process at the end of the game is a subroutine included in the game program and 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, a winning flag is obtained (Sh1). The winning flag is set when a winning occurs, and is a flag capable of specifying the type of winning. Next, it is determined whether or not a replay winning has occurred based on the winning flag (Sh2). If a replay win has occurred (YES in Sh2), the process proceeds to Sh3, and if a replay win has not occurred (NO in Sh2), the process proceeds to Sh8.

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

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

Sh10のステップにおいては、ボーナス関連処理を実行する。ボーナス関連処理においては、ボーナス開始時には遊技状態をボーナスに制御するための設定処理を行い、ボーナスを終了時にはボーナスコマンドを送信するための処理などを行う。   In step Sh10, a bonus-related process is executed. In the bonus-related process, a setting process for controlling a gaming state to a bonus is performed at the start of a 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 processing (main) performed by the main control unit 41 of the present embodiment will be described with reference to FIG. FIG. 16 is a flowchart illustrating the control content of the timer interrupt processing (main) performed by the main control unit. The timer interrupt processing (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 processing (main), first, after all front and rear registers are exchanged (Si1), interrupts are set to be disabled (Si2) and set in a predetermined area of the RAM 41c. The value of the low voltage state counter is acquired (Si3). Then, referring to the input port to which the voltage drop signal is input from the power interruption detection circuit 48 (Si4), it is determined whether or not the voltage drop signal is input (Si5). When the voltage drop signal is input, the voltage drop state counter determines whether or not the voltage drop state counter has reached a predetermined upper limit value (4 in this embodiment) (Si6). When the value has reached the value, the power interruption processing (main) is performed (Si7).

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

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

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

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

そして、入力ポートから各種スイッチ類の検出状態を入力し、入力データ、確定データ、エッジデータ(ONエッジデータおよびOFFエッジデータ)を生成するポート入力処理を行う(Si9)。その後、メイン制御部41が備えるレジスタのうち演算結果が格納されるフラグレジスタの値を、遊技RAM領域の遊技スタック領域に所定の順序で記憶させることで退避させた後(Si10)、非遊技プログラムに含まれる非遊技関連処理を行う(Si11)。その後、Si10のステップにおいて遊技スタック領域に退避させたフラグレジスタの値を、退避させるときと逆の順序で遊技スタック領域から順次読み出してフラグレジスタに設定することで、非遊技関連処理を行う前の状態にフラグレジスタを復帰させる(Si12)。   Then, the detection state of various switches is input from the input port, and port input processing for generating input data, fixed data, and edge data (ON edge data and OFF edge data) is performed (Si9). After that, the value of the flag register in which the operation result is stored among the registers provided in the main control unit 41 is saved by storing the value in the game stack area of the game RAM area in a predetermined order (Si10). (Si11). Thereafter, the value of the flag register evacuated to the game stack area in the step of Si10 is sequentially read from the game stack area in the reverse order to the time of evacuation and set in the flag register, so that 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 and saved in a predetermined area of the non-game RAM area. After that, the value of the stack pointer SP is stored in the predetermined area of the non-gaming RAM area as the address indicated by the stack pointer SP for the non-gaming program when the previous non-gaming program ends. ), 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 saved by storing them in a predetermined order in the non-game stack area of the non-game RAM area specified by the stack pointer SP. Thereafter, sensor monitoring processing for detecting an abnormality related to the inserted medal sensors 31a to 31c and payout sensor 34c, a test signal output processing for outputting a test signal generated in association with a game result, and various timers used by the non-game program are updated. A non-game-related timer update process and a role ratio monitor output data selection process for selecting output data to be displayed on the role ratio monitor are sequentially performed. In the sensor monitoring process, when an abnormality relating to the inserted medal sensors 31a to 31c or the payout sensor 34c is detected, sensor error reference data capable of specifying the type of the detected abnormality is stored in a predetermined area of the non-game RAM area of the RAM 41c. To be set. Then, the value of the register stored and saved in the non-game stack area when the non-game-related processing is started is sequentially read from the non-game stack area in the reverse order to the time of saving to correspond to the order. By setting the registers, all registers are returned to the state when the non-game-related processing was started. Thereafter, by setting the value of the stack pointer SP evacuated to a predetermined area of the non-game RAM area when the non-game-related processing is started, the stack pointer SP is set to the state at the time of starting the non-game-related processing. The pointer SP is returned, and the non-game-related processing ends.

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 in the non-game-related processing in the step of Si11 is referred to (Si13), and the setting is performed by the non-game-related processing in the current timer interrupt. 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 specify whether or not an abnormality relating to the inserted medal sensors 31a to 31c or the payout sensor 34c is detected is calculated in step S14. Update based on logical sum. If it is specified that an abnormality has been detected based on the sensor error reference data by performing the steps of Si13 to Si15, it is determined whether or not the sensor error flag indicates a state in which the abnormality is detected. Regardless of this, the sensor error flag is updated to indicate that the abnormality has been detected. On the other hand, when it is determined 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 determined that an abnormality has been detected based on the sensor error reference data, while the content of the sensor error reference data is reflected in the sensor error flag, the abnormality is detected based on the sensor error reference data. If it is specified that the error has not been performed or that the abnormality has been cleared, the contents of the sensor error reference data are not reflected on 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). Thereafter, the value of a branch counter provided in a predetermined area of the RAM 41c for branching the processing included in the timer interrupt is read into a predetermined register, and is updated by adding a predetermined value (1 in this embodiment). Then, the updated value is set as the value of the branch 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, the counter is initialized and returned to 0, so that the branch counter is updated 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... Every time the timer interrupt processing (main) is executed. The value of the branch counter is referred to in each processing executed in the timer interrupt processing (main). For example, when the branch counter reaches a predetermined value, a predetermined control is executed. 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). If the branch counter is 4, the branch counter is 4 Is a counter update process (Sj19) for updating various timers set in a predetermined area of the RAM 41c, a display such as various LEDs connected to the output port (credit display 11, gaming auxiliary display 12, 1). 3 BET LEDs 14 to 16, input request LED 17, start valid LED 18, waiting LED 19, replaying LED 20, etc.) and set and transmit a lighting signal for dynamically lighting according to the setting of each processing such as the main processing. To perform the LED dynamic display process (Si20).

Si18のステップにおいて分岐用カウンタが4でないと判定した場合、およびSi20のステップにおいてLEDダイナミック表示処理を行った後は、外部出力信号のうちメダルが投入された旨を示すメダル投入信号やメダルの払い出しが行われる旨を示すメダル払出信号の出力設定を更新して、スロットマシン1の外部に送信する投入払出信号送信処理(Si21)、外部出力信号のうちセキュリティ信号(ドア開放信号、設定変更信号、投入エラー信号、払出エラー信号)の出力設定を更新して、スロットマシン1の外部に送信するセキュリティ信号送信処理(Si22)を行う。   When it is determined that the branching counter is not 4 in the step of Si18, and after performing the LED dynamic display process in the step of Si20, a medal insertion signal indicating that a medal has been inserted or a medal payout among the external output signals. The output setting of the medal payout signal indicating that the slot machine 1 is to be performed is updated, and the input / output signal transmission processing (Si21) is transmitted to the outside of the slot machine 1. The security signal (door open signal, setting change signal, The output setting of the input error signal and the output error signal) is updated, and a security signal transmission process (Si22) for transmitting the security signal 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 for transmitting an external output signal (Si23), command transmission processing for transmitting various commands such as a door command and an operation end command set in the command queue (Si24). Are sequentially performed. Thereafter, a reel control process for controlling the rotation and stop of the reels by setting the excitation pattern of each of the reel motors 32L, 32C, 32R according to the progress of the game and the like is performed (Si25). And an output port 2 for transmitting a MAXBETLED signal (Si26), and an output port 7 for transmitting information relating to the game state as an external output signal (Si27).

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

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

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

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

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

ポート入力バッファ0には、今回の割込処理において検出されたストップスイッチ信号データや、ストップスイッチ信号のONエッジデータなどが格納されている。ストップスイッチ信号のONエッジデータは、前回の入力がOFF状態であるのに対して今回の入力がON状態である(ONエッジが検出された)ことを示すデータである。   The port input buffer 0 stores stop switch signal data detected in the current interrupt processing, 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 (the 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 processing and the left stop switch signal is input in the ON state in the current interrupt processing, the left stop switch signal is input in the current interrupt processing. The ON edge is detected, and 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, all the reels are rotating at a constant speed, and thus the stop control process is executed in the main process. Then, in the one-time interrupt processing (Sg2), the apparatus enters a standby state and waits for execution of the interrupt processing.

t1において割込処理の実行が開始されたとする。t2において、ボート入力処理が実行され、ストップスイッチのONエッジが発生した否かの入力判定を行う。t2においては、いずれのストップスイッチも操作されていない。このため、入力判定においては、いずれのストップスイッチのONエッジも検出されない。   It is assumed that the execution of the interrupt processing is started at t1. At t2, a boat input process is executed to determine whether or not an ON edge of the stop switch has occurred. At t2, none of the stop switches is 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 processing is completed, at t3, the reel stop control processing in the main processing is restarted. Since no ON edge was detected in the most recent interrupt processing, it is determined in the reel stop control processing that the valid stop switch has not been operated (NO in Sg22), and the control waits once in step Sg2. The processing 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 interrupt process next to the interrupt process executed at t1. In the present embodiment, since the interrupt processing is executed every 0.56 ms, the interval between t1 and t5 is 0.56 ms.

t6において、ボート入力処理が実行され、ストップスイッチのONエッジが発生した否かの入力判定を行う。入力判定においては、t4における左ストップスイッチの操作に基づき、左ストップスイッチのONエッジが検出される。   At t6, a boat input process is executed to determine whether or not an 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 processing is completed, at t7, the reel stop control processing in the main processing is restarted. In the interrupt processing, since the ON edge of the left stop switch signal based on the operation of the left stop switch is detected, in the main processing after the interrupt processing, the reel stop sliding frame storage processing for setting the stop position of the left reel ( Sg32). Here, the reel stop sliding frame storing process for setting the stop position of the left reel is also referred to as “reel stopping sliding frame storing process (left)”, and the reel stopping sliding frame storing process for setting the stop position of the middle reel is performed. Is also referred to as “reel stop sliding frame storage processing (middle)”, and the reel stop sliding frame storage processing for setting the stop position of the right reel is also referred to as “reel stop sliding frame storage processing (right)”.

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

そして、t9において割込処理が実行されたとする。t10における入力判定において、左ストップスイッチは押下状態(ON状態を継続)であるため、左ストップスイッチのONエッジは検出されない。また、中,右ストップスイッチも操作されていないため、中,右ストップスイッチのONエッジも検出されない。   Then, it is assumed that the interrupt process is executed at t9. In the input determination at t10, the ON edge of the left stop switch is not detected because the left stop switch is pressed (the ON state is continued). Further, since the middle / right stop switch is not operated, the ON edge of the middle / right stop switch 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 that is restarted after the interrupt process is completed and the process returns to the main process at t11, since the ON edge of the stop switch signal is not detected (NO in Sg22), the process returns to Sg2. One wait processing is performed. Then, an interrupt process is executed at t12. Thereafter, the process is repeated until the ON edge of the stop switch signal is detected, and the process waits until the ON edge of the stop switch signal is detected. In the example of FIG. 17, since no new stop switch operation is performed, the processing from t12 to t15 and the processing from t15 to t18 are the same as the processing from t9 to t12.

次に、左ストップスイッチおよび中ストップスイッチが1割込ずれて操作されたときの処理について説明する。図18は、リール停止制御処理における停止設定を説明するためのタイミングチャート(その2)である。図18の説明においても、全てのリールが定速回転をしており、いずれのストップスイッチも操作されていないとする。なお、説明の都合上、左ストップスイッチおよび中ストップスイッチの状態のみを図示し、図17と共通する箇所については説明を省略する。   Next, processing when the left stop switch and the middle stop switch are operated with a shift of one interrupt will be described. FIG. 18 is a timing chart (part 2) for explaining the stop setting in the reel stop control processing. 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 is 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 is 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 at t6, whereby the reel stop sliding frame storing process (left) is executed in the reel stop control process. At the same time, the interrupt is prohibited. After the reel stop sliding frame storing process (left) is completed, an 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 as being shifted by one interrupt from the ON edge of the left stop switch signal. Since the left stop switch continues to be 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, after returning to the main process, the reel stop control process is restarted. After the reel stop sliding frame storing process (left) is executed, it is determined whether or not a reel rotation error has occurred in the main process after the new interrupt process (Sg6). If a reel rotation error has occurred, an error process (Sg9) is executed.

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

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

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

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

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

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

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

リール停止コマンド送信処理により、左リールの停止位置を示すリール停止位置コマンドを出力するための設定が完了するまで、割込処理の実行を禁止している(Sg28において割込禁止設定がされている)。このようにすることで、リール停止位置コマンドの送信が完了する前に新たなストップスイッチの操作に基づく処理が行われない。   The execution of the interrupt processing 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 processing (interruption prohibition is set in Sg28). ). By doing so, the processing 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)がそれぞれ実行される。   When executing the reel stop command transmission processing, transmission processing for transmitting a plurality of commands is performed. More specifically, a reel stop reception command transmission process for transmitting a reel stop reception command (Sg33), a slip frame number command transmission process for transmitting a slip frame number command (Sg34), and a reel stop command are transmitted. To perform a reel stop command transmission (Sg38).

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

また、リール停止滑りコマ格納処理(中)(Sg32)を実行する際には、リール停止滑りコマ格納処理(左)により設定された左リールの停止位置に基づいて、中リールの停止位置を設定する。このように、中リールの停止位置は左リールの停止位置に基づいて設定されるため、導出される図柄組合せが多様になる。   When executing the reel stop sliding frame storage process (medium) (Sg32), the stop position of the middle reel is set based on the stop position of the left reel set by the reel stop sliding frame storage process (left). I do. As described above, since the stop position of the middle reel is set based on the stop position of the left reel, the derived symbol combinations are diversified.

また、上記で説明した例は、左リールの停止が第1停止であり、中リールの停止が第2停止である例について説明したが、これに限らず、いずれのリールが第1停止であってもよく、いずれのリールが第2停止であってもよい。また、第1停止および第2停止の組合せに限らず、第2停止および第3停止の組合せであっても、図18で説明したような動きになる。   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. However, the present invention is not limited to this, and any of the reels may be the first stop. Alternatively, any of the reels may be in the second stop. Also, the movement described in FIG. 18 is not limited to the combination of the first stop and the second stop, and may be the combination of the second stop and the third stop.

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

次に、左ストップスイッチおよび中ストップスイッチが同時押しされたとき処理について説明する。図19は、リール停止制御処理における停止設定を説明するためのタイミングチャート(その3)である。図19の説明においても、全てのリールが定速回転をしており、いずれのストップスイッチも操作されていないとする。なお、説明の都合上、左ストップスイッチおよび中ストップスイッチの状態のみを図示し、図17と共通する箇所については説明を省略する。   Next, processing when the left stop switch and the middle stop switch are simultaneously pressed will be described. FIG. 19 is a timing chart (part 3) for explaining the stop setting in the reel stop control processing. 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 is 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 is 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 simultaneously operated at t4. In this case, in the interrupt processing (t5) executed after the operation, ON edges of the left stop switch signal and the middle stop switch signal are detected (t6). In the main processing (t7) after the interruption processing, only the effective stop switch operation state is extracted (Sg21).

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

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

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

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

この場合、次の割込処理(t19)において、左ストップスイッチおよび中ストップスイッチ信号は、ともにONエッジが検出される(t20)。この割込処理後のメイン処理(t21)においては、左リールは既にリール停止滑りコマ格納処理(左)を実行しているため、有効なストップスイッチ操作状態として抽出されない。一方で、中リールはリール停止滑りコマ格納処理(中)を実行していないため、有効なストップスイッチ操作状態として抽出される。   In this case, in the next interrupt processing (t19), both the left stop switch signal and the middle stop switch signal detect the ON edge (t20). In the main processing (t21) after the interruption processing, the left reel has already been subjected to the reel stop sliding frame storage processing (left), and is not extracted as a valid stop switch operation state. On the other hand, since the middle reel does not execute the reel stop sliding frame storage processing (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 a valid operation (NO in Sg22). As a result, the reel stop sliding frame storing 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 processing when both the left reel and the middle reel are rotating, the predetermined interrupt processing is performed. In the main process after the loading process, the reel stop sliding frame storage process (left) is performed, but the reel stop sliding frame storage process (middle) is not performed. 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 processing. In this case, since the reel stop sliding frame storage processing (left) has already been executed, the reel stop sliding frame storage processing (middle) is executed in the main processing after the interrupt processing, while the reel stop sliding frame storage processing is performed. Do not execute (left). As described above, when the left stop switch and the middle stop switch are simultaneously operated, the rotating reel stops, so that the operability of the stop switch is not impaired.

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

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

この場合の割込処理(t5)において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出される(t6)。割込処理後のメイン処理(t7)においては、中リールは停止しているため、有効なストップスイッチ操作状態として抽出されない。一方で、左リールは回転しているため、有効なストップスイッチ操作状態として抽出される。これにより、リール停止滑りコマ格納処理(左)が実行されることになる。   In the interrupt processing (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 processing (t7) after the interruption processing, the middle reel is stopped, and is not extracted as a valid 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 storing 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 processing, the reel stop sliding frame storing processing of the rotating reel is executed, so that the operability is not impaired.

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

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

また、スタートスイッチ7が操作され、内部抽選処理(Sc7)が実行されると、当選情報出力処理(Sc10)において、内部当選信号を出力するための処理が実行される。内部当選信号は、所定時間(本実施の形態においては、2秒)出力される。すなわち、内部当選信号は、スタートスイッチ7の操作に基づき2秒に亘って出力する制御が行なわれる。   In addition, when the start switch 7 is operated and the internal lottery process (Sc7) is executed, a process for outputting an 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 the present 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)が行われない。   During the output of the internal winning signal, the stop switches 8L, 8C, 8R are not activated. More specifically, in the reel stop control process, the internal winning signal output timer is acquired (Sg10), and the next process is performed until the internal winning signal output timer becomes 0 (that is, until 2 seconds elapse) in step Sg11. I can't go. For this reason, even if the stop switch is operated, it is not determined whether or not there is a valid stop switch operation (Sg22).

内部当選信号が出力されてから、2秒経過した場合は、内部当選信号出力タイマが0となり(Sg11でYES)、次の処理に進むことができる。これにより、有効なストップスイッチの操作があるか否かの判定(Sg22)が可能となり、ストップスイッチのONエッジが検出された場合には、リール停止滑りコマ格納処理(Sg32)を実行することができるようになる。すなわち、内部当選信号が出力されてから2秒経過したことを条件に、ストップスイッチ8L,8C,8Rの操作が有効化される。このようにすることで、外部装置(試験装置)において内部当選信号の内容を確認可能にした上で、リールが停止可能となる。   If two seconds have elapsed 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 processing. This makes it possible to determine whether or not there is a valid stop switch operation (Sg22). If the ON edge of the stop switch is detected, the reel stop sliding frame storing process (Sg32) can be executed. become able to. That is, the operation of the stop switches 8L, 8C, 8R is validated on condition that two seconds have elapsed since the output of the internal winning signal. By doing so, the reels can be stopped after the content of the internal winning signal can be confirmed in the external device (test device).

また、次にリールモータ信号の出力について説明する。リールモータに対するリールモータ信号(第1〜第3リールモータφ0〜φ3信号)を出力させることで、リールが駆動する。これにより、リールの回転を開始させたりリールを停止させることができる。   Next, the output of the reel motor signal will be described. The reel is driven by outputting a reel motor signal (first to third reel motor φ0 to φ3 signals) to the reel motor. Thereby, 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 sliding frame storing process (Sg32) has been executed for all the reels, that is, when it is determined that the final stop is performed in step Sg39 (YES in Sg39), the reel is stopped. The reel motor state based on the motor signal is acquired (Sg41).

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

また、図5に示したように、出力ポート0および出力ポート1からは、リールモータ信号および流路切替ソレノイド信号が出力される。なお、出力ポート0および出力ポート1からは、これらの信号以外の信号は出力されない。   Further, as shown in FIG. 5, the output port 0 and the output port 1 output a reel motor signal and a flow path switching solenoid signal. Note that 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 medals. The flow path switching solenoid 30 is set to the ON state in the medal insertion signal processing in the game start waiting processing. Also, based on the detection of the operation of the start switch 7 in the operation input receiving process, the state is set to the OFF state. 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 processing, the output of the flow path switching solenoid signal is always stopped.

このため、全てのリールモータがOFF状態であるかを判定する処理(Sg42)においては、流路切替ソレノイド信号は必ずOFF状態になっている。先に説明したとおり、出力ポート0および出力ポート1からは、リールモータ信号および流路切替ソレノイド信号のみが出力される構成となっている。このため、本実施の形態においては、出力ポート0および出力ポート1の出力状態に基づき設定されたリールモータ状態データに基づき、全てのリールモータがOFF状態であると判定する(Sg42でYES)処理を行うようにしている。   For this reason, 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, it is determined that all the reel motors are in the OFF state based on the reel motor state data set based on the output states of the output port 0 and the output port 1 (YES in Sg42). 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 state of the first to third reel motors φ0 to φ3 signals and the flow path switching solenoid signal. When any of these signals is being output, the corresponding bit becomes 1. Conversely, when none of the signals are output, all the bits become 0, and 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 become 0, and the bits corresponding to the flow path switching solenoid signal also become 0. As a result, the reel motor state data becomes 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). A process is performed in which it is not determined that the reel motor is in the OFF state (NO in Sg42). As described above, it is determined whether or not all the reels have stopped based on determining whether or not a signal is being 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, when the signals output from the output ports 0 and 1 include an ON state signal in the determination of Sg42, the first to third reel motor φ0 to φ3 signal states are changed one by one. It is necessary to determine whether or not these data are all 0 when acquired. However, if the signals output from the output ports 0 and 1 are all in the OFF state as described above, it is determined whether 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 all reels have stopped, it can be determined whether or not all reels have stopped. By arranging the signals output from the output ports 0 and 1 in this manner, the empty ports can be appropriately handled, but does not hinder the determination as to whether or not all the reels have stopped.

[払出信号の出力処理]
本実施例のスロットマシン1は、遊技状態やエラーの発生状況などを示す外部出力信号を出力する。これら外部出力信号は、メイン制御部41の制御により遊技制御基板40より出力され、ホールコンピュータやスロットマシン1に対応して設置されたデータ表示端末などの外部機器に出力されるようになっている。
[Output processing of payout signal]
The slot machine 1 of the present 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 output to external devices such as a hall computer and a data display terminal installed corresponding to the slot machine 1. .

しかし、古いホールコンピュータなどの外部機器は、外部出力信号を検出するのに比較的長い時間を要する。このような外部機器でも確実に外部出力信号を検出できるようにするため、一定時間以上信号を出力するようにしている。たとえば、払出信号および投入信号が出力される時間は、後述するように最低50msである。また、リプレイ入賞が発生した場合は、払出信号は250msの間出力される。   However, an external device such as an old hall computer requires a relatively long time to detect an external output signal. In order to ensure that such an external device can detect an external output signal, a signal is output for a predetermined time or more. 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 occurs, the payout signal is output for 250 ms.

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

図20は、払出信号の出力処理について説明するための図(その1)である。リプレイ入賞が発生したとき、リプレイ入賞に基づき、払出信号が送信される。また、リプレイ入賞に基づき、次の遊技において自動的にBET数(賭数)が設定される(自動BET)。これにより、BET数の設定に新たなメダルを消費することなく次のゲームを行うことができる。また、設定されたBET数に基づき入力信号が送信される。   FIG. 20 is a diagram (part 1) for describing the payout signal output process. When a replay winning occurs, a payout signal is transmitted based on the replay winning. In addition, the number of bets (the 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 amount. 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 processing, a plurality of interrupt waiting processing (Sc5), a game start waiting processing (Sc6), a reel stop control processing (Sc19), a game end setting processing (Sc34), and the like are executed. Is done. When the timer interrupt processing (main) is executed, an input / output signal transmission processing (Si21), an output port 3 output processing (Si23), and the like are executed.

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

本実施の形態においては、BET数は「3」であるので、リプレイ用カウンタおよび払出信号用カウンタには、「3」が格納される。リプレイ用カウンタは、遊技開始待ち処理においてリプレイ入賞の有無の判定などのために用いられるカウンタである。このため、遊技開始待ち処理において、あらためてBET数を取得してリプレイ用カウンタを設定するようにしてもよい。しかし、上記のように、遊技終了時の設定処理において、リプレイ用カウンタおよび払出信号用カウンタを同時に設定すれば、処理負担を軽減させることができ、効率よくメダル数の設定を行うことができる。   In the present embodiment, since the BET number 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 winning in the game start waiting process. Therefore, in the game start waiting process, the number of BETs 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 end of the setting process at the end of the game, the process returns to the main process and shifts to the next game. Then, the interrupt process is executed by executing the interrupt multiple times waiting process (Sc5). In the interrupt processing, a payout signal is output. That is, in the setting process at the time of 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, a pay-in / pay-out signal transmission process (Si21) is executed. Then, in the input / output signal transmission process, an output signal generation process (Sj3) is executed. In the payout signal generation processing, 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, a game start waiting process (Sc6) is executed. In the game start waiting process, a replay counter is obtained (Sd5). As described above, in a state where a replay winning has occurred in the previous game and “3” is stored in the replay counter, “3” is stored in the replay counter. Thus, in step Sd7, it is determined that the replay counter value is greater than 0 (YES in Sd7), and the medal insertion execution process (Sd8) is executed. In the medal insertion execution processing, the bet amount is set to “3” based on the value of the replay counter.

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

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

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

図21は、払出信号の出力処理について説明するための図(その2)である。図21(A)は、リプレイ入賞時のBET数、リプレイ用カウンタおよび払出信号用カウンタの値の推移を説明するための図である。図21(A)に示すように、開始操作によりゲームが開始したとき、BET数として「3」が設定されている。リプレイ入賞が発生すると、図20を用いて説明したように、遊技終了時の設定処理のステップSh3〜Sh5において、BET数として設定された「3」が、リプレイ用カウンタおよび払出カウンタに格納される。   FIG. 21 is a diagram (part 2) for describing the payout signal output process. FIG. 21A is a diagram for explaining changes in the bet number at the time of winning a replay, and changes in the values of a replay counter and a payout signal counter. As shown in FIG. 21A, when the game is started by the start operation, “3” is set as the BET number. When a replay prize is generated, as described with reference to FIG. 20, in steps Sh3 to Sh5 of the setting process at the end of the game, “3” set as the BET number 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 BET number 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 a BET is placed and sets OFF when a BET is not placed. However, in the present embodiment, the replay counter is set as 1-byte data capable of setting 0 to 255 (00H to FFH). By doing so, for example, even if the specification of the software of the slot machine is changed and the number of BETs set by the replay winning becomes "2" or any other value, it is possible to cope with the specification change. 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 the areas A to D. Among them, the areas C and D (initialization target areas at the time of bonus end) are initialized at the end of the bonus (Sc38, Sc2). The area D (initialization target area at the end of the game) is initialized each time one game ends (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 gaming RAM. The area A is an area that is not initialized by any of the processing of initializing the area D of the gaming RAM at the end of the game and the processing of initializing the areas C and D of the gaming 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 the area D, the payout signal counter is cleared by clearing the areas C and D of the game RAM after the bonus ends (YES in Sc37) (Sc2). There is a risk of being done. Therefore, by setting the payout signal counter in the area A, it is possible to prevent the output of the payout signal from being stopped unintentionally due to the initialization processing of the gaming RAM.

図22は、払出信号の出力処理について説明するための図(その3)である。払出信号が出力される期間は、メダルの払出数(払出信号用カウンタの値)に応じて一定となるように定められている。払出数が1であるときは、払出信号として、出力時間が50msとなるパルス信号を1回出力する。払出数が2以上であるときは、パルス信号とパルス信号との間に信号が出力されない期間(信号OFF状態)を50ms設ける。   FIG. 22 is a diagram (part 3) for describing the payout signal output process. The period during which the payout signal is output is determined to be constant according to the number of medals paid out (the 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 two or more, a period during which no signal is output (signal OFF state) is provided between the pulse signals for 50 ms.

たとえば、リプレイ入賞が発生した場合は、払出信号用カウンタの値は3であるため、払出信号の出力は、50msのパルス信号出力(信号ON状態)、50msの信号OFF状態、50msのパルス信号出力(信号ON状態)、50msの信号OFF状態、50msのパルス信号出力(信号ON状態)となる(合計250ms)。すなわち、リプレイ入賞が発生した場合、払出信号の出力が開始されてから当該信号の出力が完了するまでには、250msの時間を要する。   For example, when a replay winning occurs, the value of the payout signal counter is 3, so that 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, and 50 ms pulse signal output (signal ON state) (total 250 ms). That is, when a replay winning occurs, 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 determined to be constant according to the number of BETs. Similarly to the payout signal, when the number of BETs is 1, the input signal outputs once a pulse signal having an output time of 50 ms as the input signal. When the BET number 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 winning occurs, the BET number is set to 3 by automatic BET. As a result, similarly to the above, three pulse signals are output as the closing signal, and it takes 250 ms from the start of the output of the closing signal to the completion of the output of the signal. Hereinafter, the output state of the signal will be specifically described with reference to a timing chart.

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

ここで、仮に、リプレイが発生した場合、リプレイ入賞に基づく払出信号の出力の完了を待ってから、次の遊技における開始操作が有効化されるようにしたとする。たとえば、図20で説明した遊技終了時の設定処理において、ステップSh5の後に、払出信号出力が完了されるまで待機する処理を入れたとする。このようにすると、リプレイが入賞したにも関わらず、250msの間、開始操作をしても遊技が開始せず、遊技者は不快な思いをすることがある。しかし、本実施の形態のようにリプレイ入賞後、即座に開始操作が有効化されることで、遊技者にストレスを感じさせることなく、遊技の進行を速やかに進めることができる。   Here, if a replay occurs, it is assumed that the start operation in the next game is enabled after the completion of the output of the payout signal based on the replay winning. For example, it is assumed that, in the setting process at the time of the end of the game described with reference to FIG. In this case, even though the replay has been won, 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 immediately activated 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 when 250 ms has elapsed from t1. Then, it is assumed that a start operation is performed at t3. Thus, the output of the input signal is started, and the output of the input signal is completed at t4 when 250 ms has elapsed.

図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. 22A, it is assumed that a replay winning has occurred at t1. The output of the payout signal is started based on the occurrence of the replay winning. In addition, a start operation in the next game is activated. Here, unlike the situation of FIG. 22A, in FIG. 22B, 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が実行する処理の処理順序を特定しやすくなる。   As described above, the input signal is output based on the start operation, and if the start operation is performed before the output of the payout signal is completed, the output of the input signal is performed after the output of the payout signal is completed (t3). To start. Then, at t4 when 250 ms has elapsed from t3, the output of the closing signal is completed. In this way, by delaying the output of the input signal, the output timing of the input signal and the output signal of the output signal do not overlap. Therefore, by confirming the signal received by the external device, the processing order of the process executed by the main CPU 41a is specified. It will be easier.

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

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

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

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

このようにすることで、制御の進行が妨げられないとともに、エラー状態などに制御された場合であっても、払出信号の出力が完了するまで払出信号の出力が継続されるため、誤った情報が外部に伝達されない。   By doing so, the progress of the control is not hindered, and even if the error signal is controlled, 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)がいずれであるかに関わらず、一遊技ごとに実行される処理である。   Also, in the setting process at the end of the game, if a replay win has occurred (YES in Sh2), the LED during replay is set to ON (Sh7), and if no replay win has occurred (NO in Sh2), During the replay, the LED is set to OFF (Sh9). The setting process at the end of the game is a process executed for each game, regardless of the game state under control (for example, the normal state, the bonus, the AT).

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

[割込禁止についての安全性]
次に、割込禁止についての安全性について説明する。本実施の形態においては、メイン処理の実行中において、割込処理が実行可能な構成となっている。また、RAM41cに格納されるデータの中には、メイン処理において更新されるとともに、割込処理においても更新されるデータがある。たとえば、メイン処理においてRAM41cからこのようなデータを取得し、データの更新処理をしようとしているときに、割込処理が実行されて当該データが更新されてしまうことがある。このように、意図しない割込処理によってデータが更新されてしまい、データに不整合が発生してしまう可能性がある。
[Safety with regard to interrupt prohibition]
Next, the security of the interrupt prohibition will be described. In the present embodiment, the interrupt processing can be executed during the execution of the main processing. The data stored in the RAM 41c includes data that is updated in the main process and also updated 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 data may be updated by executing an interrupt process. As described above, data is updated by an unintended interrupt process, and data may be inconsistent.

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

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

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

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

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

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

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

また、割込禁止設定(Se10)を行う直前の処理において割込1回待ち処理(Sf14)を実行している。割込1回待ち処理により割込処理が実行されるため、当該割込処理が実行された直後に、割込禁止設定(Se10)およびセンサエラーフラグの更新処理(Se11〜Se13)が実行されることになる。割込処理の実行からセンサエラーフラグの更新処理の実行までの時間は、割込処理の実行から次の割込処理の実行までの時間よりも短い。このため、センサエラーフラグの更新処理中に割込が発生することはない。   Also, in the process immediately before the interrupt prohibition setting (Se10) is performed, the one-time interrupt wait process (Sf14) is executed. Since the interrupt process is executed by the one-time interrupt wait process, immediately after the interrupt process is executed, the interrupt prohibition setting (Se10) and the sensor error flag update process (Se11 to Se13) are executed. 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, no interruption occurs during the process of updating the sensor error flag.

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

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

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

[出力データの設定]
次に、メイン側設定処理と割込側設定処理とで行われる出力データの設定処理の違いについて、図24に基づいて説明する。図24は、出力データの設定について説明するためのフローチャートである。
[Output data settings]
Next, the difference between the output data setting process performed in the main side setting process and the interrupt side setting process will be described with reference to FIG. FIG. 24 is a flowchart illustrating 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を出力するために用いられるいずれかの出力バッファであってもよい。   Note that the flowchart shown in FIG. 24 is schematically shown in order to facilitate understanding of the flow of the processing for setting the output data. The LED data A and B shown below may be any of the LED data output from the output ports 0 to 8, and the signal data C and D are any of the signal data output from the output ports. Alternatively, the output buffers A and B may be any output buffers 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, a setting process of the LED data A and a setting process of the LED data B are performed. In the interrupt-side setting process, a setting process of the LED data C and a setting process of the LED data D are executed. In the present embodiment, setting data OFF is also referred to as “clear”, and setting data ON is also referred to simply as “setting”.

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

次に、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, and 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. At this time, 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のステップに進む。   In the step Sm3, if the validation condition of the LED data A is satisfied (Sm3 is YES), the LED data A is set ON (Sm4), and the process proceeds to the step Sm5. On the other hand, when the validation condition of the LED data A is not satisfied (NO in Sm3), the process proceeds to Sm5.

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

Sm7のステップにおいて、LEDデータAおよびLEDデータBを出力バッファAに設定する。Sm8のステップにおいて、割込許可設定(Sm8)を行い、メイン側設定処理を終了する。割込許可設定により、割込処理が実行されると、出力バッファAに設定されたデータに基づき、LEDAおよびLEDBが点灯または消灯する。   In step Sm7, the LED data A and the LED data B are set in the output buffer A. In step Sm8, interrupt permission setting (Sm8) is performed, and the main-side setting process ends. When the interruption process is executed by the interruption permission setting, the LEDs A and B 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設定が容易になる。   As described above, in the main-side setting process, after the setting of the output data (LED data A and B) is collectively set to OFF, the output is performed when the output condition (the enabling condition of the LED data A and B) is satisfied. This is a process of setting data ON. Then, LEDA and LEDB are turned on or off based on the LED data A and LED data B set by the main-side setting process. As described above, in the main-side setting processing, the OFF setting of the output data is facilitated 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. However, 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 output port output processing 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 turned ON collectively (Sn1). The signal data C and the signal data D are data corresponding to each bit in the 1-byte signal data. For example, the signal data C is turned on when the first bit of the signal data is 1, the signal data C is turned off when the first bit of the signal data is 0, and the second bit of the signal data is 1. At this time, the signal data D is ON, and when the second bit of the signal data is 0, the signal data D is OFF. For this reason, by setting the signal data to FFH, the signal data A and the LED data B are turned ON collectively, so that the processing is easy.

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

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

Sn6のステップにおいて、信号データCおよび信号データDを出力バッファBに設定し、割込側設定処理を終了する。割込側設定処理が終了すると、割込処理で実行される出力ポートの出力処理において、出力バッファBに設定されたデータに基づき、信号Cおよび信号Dが出力される。   In step Sn6, the signal data C and the signal data D are set in the output buffer B, and the interrupt-side setting process ends. When the interrupt-side setting process is completed, a signal C and a 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設定が容易になる。   As described above, after the output data (signal data C and D) are collectively set to ON, the interrupt-side setting processing is performed when the output condition (validation condition of the signal data C and D) is not satisfied. Is a process of setting the setting of OFF. Then, signals C and D are output based on the signal data C and 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 is facilitated by performing the setting 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. When the invalidation condition of the signal data C is satisfied, the signal data C is set to OFF, and the next establishment is performed. When the condition for invalidating the signal data D is satisfied, the signal data D is set to OFF.

たとえば、無効化条件を判定するたびに無効化条件の判定結果を保持して、全ての判定が終了した後に、まとめて信号データをOFFにする方法もある。しかし、このようにすると、いちいち無効化条件の判定結果を保持する必要が出てくる。上記のように、無効化条件が成立するたびに信号データをOFF設定することで、無効化条件の判定結果をその都度保持する必要がなくなる。   For example, there is a method in which the determination result of the invalidation condition is held each time the invalidation condition is determined, and the signal data is turned off collectively after all the determinations are completed. However, in this case, it is necessary to hold the determination result of the invalidation condition. 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 every 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. However, 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 the signal D may be output by output port output processing 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 condition is 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. Thus, all signal data can be set ON. 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 a command used by the program, a command to set (clear) data OFF is more substantial than a command to set data ON. For example, the content of the register holding the data of 00H or FFH is read into the register holding the 1-byte data, and the data can be set OFF (00H) or ON (FFH). On the other hand, as for the data OFF setting, the data can be cleared (00H) at a time by executing the clear command, so that the processing capacity is reduced.

このため、データを一旦OFFに設定にしてから必要に応じてONに設定する方が、処理容量削減の点から考えれば望ましい。そこで、割込側設定処理においては、先に出力データをONに設定し、条件の成立により当該出力データをOFFに設定している。これにより、プログラムをより簡素化している。一方で、メイン処理で先にON設定をしてしまうと、割込処理が実行されることによって、誤った信号が出力されてしまう虞がある。このため、メイン側設定処理においては、先に出力データをOFFに設定し、成立条件の成立により当該出力データをONに設定している。これにより、誤った信号が出力されることを防止することができる。   For this reason, it is desirable to set the data to OFF once and then to ON as necessary 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 ON is set first in the main process, an erroneous signal may be output due to execution of the interrupt process. For this reason, in the main-side setting process, the output data is set to OFF first, and the output data is set to ON when the satisfaction condition is satisfied. Thereby, it is possible to prevent an erroneous signal from being output.

[本実施形態のスロットマシンが有する構成および奏する効果]
次に、本実施形態のスロットマシンが有する構成および奏する効果を説明する。
[Configuration and Effect of Slot Machine of Present Embodiment]
Next, the configuration of the slot machine of the present embodiment and the effects achieved 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 variably displaying a plurality of types of identification information each of which can be identified,
After variably displaying 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 a display result combination which is a combination of the display results of the plurality of variable display units. Slot machine (for example, slot machine 1)
A plurality of deriving operation means (for example, stop switches 8L, 8C, 8R) operated to derive a display result combination;
Processing means (for example, main CPU 41a) for executing predetermined processing;
The predetermined process executed by the processing unit includes a main process (for example, a main process shown in FIG. 9) and an interrupt process (for example, a diagram shown in FIG. 9) executed by interrupting the main process based on the occurrence of an interrupt. 16 (timer interrupt processing (main)),
The processing means includes:
In the interrupt processing, it is determined whether there is an input based on an operation of any of the plurality of deriving operation means, and an operation of a first deriving operation means (for example, a left stop switch) of the plurality of deriving operation means is performed. Is determined based on the first input (for example, detection of the ON edge of the left stop switch signal), the first variable display section of the plurality of variable display sections is executed in the main processing after the interrupt processing. A first setting process (for example, a reel stop sliding frame storing process) for setting a stop position of the variable display in a (for example, a left reel region that can be visually recognized from the player side through the see-through window 3) is executed ( For example, when the ON edge of the left stop switch signal based on the operation of the left stop switch is detected, the stop position of the left reel is determined in the main processing after the interrupt processing. Reel stop sliding piece storage process for constant run (left)),
After the first setting process is started, execution of a new interrupt process is prohibited until the first setting process is completed, and the new interrupt process is executed after the first setting process is completed (for example, As shown in FIGS. 13 and 14, after the reel stop sliding frame storage process (left) is started, execution of a new interrupt process is prohibited until the reel stop sliding frame storage process (left) is completed. After the reel stop sliding frame storage process (left) is completed, a new interrupt process is executed),
In the new interruption process, it is determined whether or not there is an input based on any operation of the plurality of derivation operation means, and a second derivation operation means (for example, a middle stop switch) of the plurality of derivation operation means is determined. ), When it is determined that the second input (for example, the detection of the ON edge of the middle stop switch signal) has been performed, in the main process after the new interrupt process, the A second setting process (for example, a reel stop sliding frame storage process) for setting a variable display stop position in a second variable display unit (for example, a region of a middle reel that can be visually recognized from the player side through the see-through window 3). (For example, as shown in FIGS. 13 and 14, in a new interrupt process, a middle stop switch signal is generated based on the operation of the middle stop switch.) If N edge is detected, the main process after the new interrupt processing and executes the reel stop sliding piece storage processing for setting a stop position of the reel (medium)),
In the main processing after the new interrupt processing, the processing unit further determines whether the variable display on the variable display unit is normal (for example, a reel rotation error), and the variable display is normal. If not, the second interrupt processing is not executed based on the second input determined in the new interrupt processing, and if it is determined that the variable display is normal, the new interrupt processing is performed. Executing the second setting process based on the second input determined in (i.e., determining whether or not a reel rotation error has occurred in a main process after a new interrupt process; If so, the reel stop sliding frame storing 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 is stopped based on the new interrupt process. Stop sliding symbols stored process executes (medium)).

たとえば、本実施の形態においては、図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 executed in the main processing after the interrupt processing. After executing the reel stop sliding frame storage process (left) for setting the stop position of the reel, starting the reel stop sliding frame storage process (left), a new reel stop sliding frame storage process (left) is completed. The execution of the interrupt process is prohibited, and after the reel stop sliding frame storage process (left) is completed, a new interrupt process is executed. In the new interrupt process, the middle stop switch signal based on the operation of the middle stop switch is output. If an ON edge is detected, a reel stop sliding frame storage process (middle) for setting the stop position of the middle reel is executed in the main process after the new interrupt process. . By doing so, the reel stop sliding frame storing process (middle) based on the operation of the middle stop switch is executed before the reel stop sliding frame storing process (left) based on the operation of the left stop switch is completed. Can be prevented. Also, in the main processing after the new interrupt processing, it is determined whether or not a reel rotation error has occurred. If a reel rotation error has occurred, the reel stop sliding frame is stored based on the new interrupt processing. If it is determined that the reel rotation error has not occurred without executing the processing (middle), the reel stop sliding frame storage processing (middle) is executed based on the new interrupt processing. By doing so, it is possible to ensure that the reel stop sliding frame storing process (middle) based on the operation of the middle stop switch is executed on condition that the rotation of the reel is normal. As described above, when the reel stop sliding frame storing process for setting the reel stop position is continuously performed, the reel stop sliding frame storing process can be suitably performed.

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

たとえば、本実施の形態においては、図14に示すように、リール停止滑りコマ格納処理(左)を完了した後、リール停止滑りコマ格納処理(左)により設定された左リールの停止位置を示すリール停止位置コマンドを出力し、左リールの停止位置を示すリール停止位置コマンドを出力するための設定が完了するまで、割込処理の実行を禁止する。このため、リール停止位置コマンドの送信が完了する前に新たなストップスイッチの操作に基づく処理が行われない。   For example, in the present embodiment, as shown in FIG. 14, after the reel stop sliding frame storage process (left) is completed, the left reel stop position set by the reel stop sliding frame 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 processing 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 includes:
When the first stop command is output, a plurality of commands including the first stop command are output (for example, a reel stop receiving command, a reel stop position command, a slip frame number command, a reel stop command),
The execution of the interrupt processing is prohibited until the setting for outputting the plurality of commands is completed (for example, as shown in FIG. 14, the interrupt processing is prohibited until the setting for outputting the plurality of commands is completed). Execution is prohibited).

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

(1−4) 前記処理手段は、前記第2設定処理において、前記第1設定処理により設定された前記第1可変表示部における変動表示の停止位置に基づいて、前記第2可変表示部における変動表示の停止位置を設定する(たとえば、図13に示すように、リール停止滑りコマ格納処理(中)において、リール停止滑りコマ格納処理(左)により設定された左リールの停止位置に基づいて、中リールの停止位置を設定する。)。   (1-4) In the second setting process, the processing unit may change the second variable display unit based on the stop position of the variable display on the first variable display unit set by the first setting process. A display stop position is set (for example, as shown in FIG. 13, in the reel stop sliding frame storage process (middle), based on the left reel stop position set in the reel stop sliding frame 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 sliding frame storage process (middle), based on the stop position of the left reel set by the reel stop sliding frame storage process (left), Set the reel stop position. As described above, since the stop position of the middle reel is set based on the stop position of the left reel, the derived symbol combinations are diversified.

(1−5) 前記処理手段は、前記第2可変表示部における変動表示が停止することで表示結果組合せが導出される場合であっても、前記第2設定処理を開始した後、当該第2設定処理が完了するまで、新たな割込処理の実行を禁止する(たとえば、図14に示すように、左リールが停止することで図柄組合せが導出される場合であっても、リール停止滑りコマ格納処理(中)を開始した後、リール停止滑りコマ格納処理(中)が完了するまで、新たな割込処理の実行を禁止する)。   (1-5) Even when the display result combination is derived by stopping the variable display on the second variable display unit, the processing unit may start the second setting process and then execute the second setting process. Until the setting process is completed, execution of a new interrupt process is prohibited (for example, even if a symbol combination is derived by stopping the left reel as shown in FIG. After the storage process (middle) is started, execution of a new interrupt process is prohibited until the reel stop sliding 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, the reel stop sliding frame storing process (middle) is started and then the reel is stopped. Until the stop sliding frame storing process (middle) is completed, execution of a new interrupt process is prohibited. As described above, since no other processing is executed during the execution of the reel stop sliding frame storage processing, control for promptly stopping the reels can be performed.

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

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

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

たとえば、本実施の形態においては、図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 the predetermined interrupt processing when the left reel and the middle reel are rotating, In the main processing after the interruption processing of (1), the reel stop sliding frame storage processing (left) is executed. In the interruption processing after the predetermined interruption processing, when the ON edge of the middle stop switch signal is detected, In the main processing after the interruption processing, a reel stop sliding frame storage processing (middle) is executed. As described above, when the ON edge of the left stop switch signal and the middle stop switch signal is detected with a deviation even in one interrupt process, the left reel and the middle reel can be stopped, so that the reels should be stopped immediately. Can be.

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

たとえば、本実施の形態においては、図19に示すように、左リールおよび中リールがともに回転している場合の所定の割込処理において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、所定の割込処理後のメイン処理において、リール停止滑りコマ格納処理(左)を実行する一方で、リール停止滑りコマ格納処理(中)を実行しない。また、所定の割込処理の後の割込処理において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、リール停止滑りコマ格納処理(中)を実行する一方で、リール停止滑りコマ格納処理(左)を実行しない。このように、左ストップスイッチおよび中ストップスイッチが同時に操作された場合に、回転中のリールが停止することになるため、ストップスイッチの操作性を損ねない。   For example, in the present embodiment, as shown in FIG. 19, in the predetermined interrupt processing when both the left reel and the middle reel are rotating, the ON edge of the left stop switch signal and the ON state of the left stop switch signal are turned on. When an edge is detected, in the main processing after the predetermined interrupt processing, the reel stop sliding frame storage processing (left) is performed, but the reel stop sliding frame storage processing (middle) is not performed. Further, in the interrupt processing after the predetermined interrupt processing, when the ON edge of the left stop switch signal and the ON edge of the left stop switch signal are detected, the reel stop sliding frame storage is performed in the main processing after the interrupt processing. While the process (middle) is executed, the reel stop sliding frame storage process (left) is not executed. As described above, when the left stop switch and the middle stop switch are simultaneously operated, the rotating reel stops, 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 includes:
When it is determined that the first input and the second input are present in the interrupt processing when the variable display on the first variable display unit is stopped and the variable display on the second variable display unit is displaying the variable, In the main processing after the interruption processing, the second setting processing is executed (for example, as shown in FIG. 19, in the interruption processing when the left reel is stopped and the middle reel is rotating, the left stop switch When the ON edge of the signal and the ON edge of the left stop switch signal are detected, in the main processing after the interrupt processing, the reel stop sliding frame storage processing (medium) is executed),
When it is determined that the first input and the second input are present in the interrupt processing when the variable display on the second variable display unit is stopped and the first variable display unit is displaying the variable display, In the main processing after the interruption processing, the first setting processing is executed (for example, as shown in FIG. 19, in the interruption processing when the center reel is stopped and the left reel is rotating, the middle stop switch When the ON edge of the signal and the ON edge of the left stop switch signal are detected, in the main processing after the interrupt processing, the reel stop sliding frame storage processing (left) is executed).

たとえば、本実施の形態においては、図19に示すように、左リールが停止しかつ中リールが回転している場合の割込処理において、左ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、リール停止滑りコマ格納処理(中)を実行し、中リールが停止しかつ左リールが回転している場合の割込処理において、中ストップスイッチ信号のONエッジおよび左ストップスイッチ信号のONエッジが検出された場合、割込処理後のメイン処理において、リール停止滑りコマ格納処理(左)を実行する。このように、同一割込処理において複数のストップスイッチ信号のONエッジが検出されたとしても、回転中のリールのリール停止滑りコマ格納処理が実行されるため、操作性を損ねることがない。   For example, in the present embodiment, as shown in FIG. 19, in the interrupt processing when the left reel is stopped and the middle reel is rotating, the ON edge of the left stop switch signal and the ON state of the left stop switch signal are turned on. If an edge is detected, in the main processing after the interruption processing, a reel stop sliding frame storage processing (medium) is executed, and in the interruption processing when the middle reel is stopped and the left reel is rotating, When the ON edge of the stop switch signal and the ON edge of the left stop switch signal are detected, the reel stop sliding frame storage processing (left) is executed in the main processing after the interrupt processing. As described above, even if the ON edges of a plurality of stop switch signals are detected in the same interrupt processing, the reel stop sliding frame storing processing 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 includes:
When it is determined that the first input has been made in the interrupt processing, in the main processing after the interrupt processing, the position of the variable display on the first variable display section is set to the identification information of each of the first variable display sections. When a position of a common step (for example, 11 steps) in a range (for example, the number of steps of each symbol) corresponding to (for example, a symbol) is obtained, an identification number (for example, a symbol number) corresponding to the identification information is obtained. 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). 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, a symbol number corresponding to the symbol is acquired, and the symbol number is obtained. Reel stop sliding piece storage process based on the running (left)),
After it is determined that the first input has been made, the second input is not accepted even if the second input is made until the position of the variable display on the first variable display section becomes the position of the common step ( For example, as shown in FIG. 14, after the ON edge of the left stop switch signal 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, the middle stop is performed. The ON edge of the switch signal is not accepted).

たとえば、本実施の形態においては、図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 processing, the position of the left reel is changed to the left reel in the main processing after the interrupt processing. 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 storing 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 until the left reel reaches the position of 11 steps, even if the ON edge of the middle stop switch signal is detected. By doing so, the reel stop sliding frame storage processing 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 is a start operation means (for example, a start switch 7) for starting variable display on the plurality of variable display units,
The processing means includes:
Based on the operation of the start operation means, control for outputting a specific signal (for example, an internal winning signal) for a predetermined time (for example, 2 seconds) is performed (for example, as shown in FIG. 13, the operation of the start switch 7). Control to output the internal winning signal for 2 seconds based on the
The operation of the plurality of deriving 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 operated on the condition that two seconds have elapsed). Enable the action).

たとえば、本実施の形態においては、図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, control for outputting the internal winning signal for two seconds is performed, and the stop is performed on condition that two seconds have elapsed. The operation of the switches 8L, 8C, 8R is enabled. By doing so, the reels can be stopped after the content of the internal winning signal can be confirmed in the external device (test device).

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

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

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

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

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

(2−2) 前記処理手段は、
前記開始操作手段が操作されたことに基づきイン信号(たとえば、投入信号)を出力し(たとえば、図22に示すように、開始操作がされたことに基づき投入信号を出力する)、
前記アウト信号の出力が完了する前に前記開始操作手段が操作された場合、当該アウト信号の出力が完了した後に前記イン信号の出力を開始する(たとえば、図22に示すように、払出信号の出力が完了する前に開始操作がされた場合、払出信号の出力が完了した後に投入信号の出力を開始する)。
(2-2) The processing means includes:
Outputs an in signal (for example, a closing signal) based on the operation of the start operation means (for example, outputs a closing signal based on the start operation as shown in FIG. 22),
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. 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, the input signal is output based on the start operation, and the output of the payout signal is performed when the start operation is performed before the output of the payout signal is completed. After the completion of the operation, the output of the closing signal is started. Since the output timing of the input signal and the output signal of the output signal do not overlap by delaying the output of the input signal in this way, by confirming the signal received by the external device, the processing order of the process executed by the main CPU 41a is specified. It will be easier.

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

たとえば、本実施の形態においては、図22に示すように、投入信号を出力する際には、払出信号の出力状態を確認し、払出信号が出力されていない場合に投入信号を出力し、払出信号を出力する際には、投入信号の出力状態を確認することなく払出信号を出力する。投入信号の出力中に払出信号が出力されることがないため、投入信号の出力状態の確認を省略することで、処理負担を軽減することができる。   For example, in the present embodiment, as shown in FIG. 22, when outputting the input signal, the output state of the output signal is checked, and when the output signal is not output, the input signal is output and the output signal is output. When outputting a signal, a payout signal is output without checking the output state of the input signal. Since the payout signal is not output while the input signal is being output, 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 includes:
First initialization processing for initializing a storage area in a storage means (for example, RAM 41c) when a unit game (for example, one game) is completed (for example, processing for clearing the area D of the game RAM at the end of a game (Sa2) ))When,
A second initialization process for initializing a storage area in the storage means when the control to an advantageous state (for example, a bonus state) advantageous to the player is completed (for example, areas C and D of the game RAM at the time of bonus end) (Sa2)), and
The output data of the out signal is set in a storage area (for example, the area A of the game RAM area) in the storage unit that is not initialized by either the first initialization processing or the second initialization processing ( For example, as shown in FIG. 21B, a game for which initialization is not performed by any of the processing for clearing the area D of the game RAM at the end of the game and the processing for clearing the areas C and D of the game RAM at the end of the bonus. 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 of processing for clearing the area D of the game RAM at the end of the game and processing for 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 gaming RAM which is not initialized even by the above. By doing so, it is possible to prevent the output of the payout signal from being stopped unintentionally due to the clearing processing 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 the output of the out signal is started (for example, as shown in FIG. 20). The setting of the BET number for starting the game based on the occurrence of the replay winning is executed after the output of the payout signal is started.)

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

(2−6) 前記処理手段は、
前記アウト信号の出力中において、移行条件(たとえば、エラー発生、設定変更操作)が成立した場合に特定状態(たとえば、エラー状態、設定変更状態)に制御し、
前記特定状態に制御した場合であっても、前記アウト信号の出力が完了するまで当該アウト信号の出力を継続する(たとえば、図10に示すように、エラー状態に制御された場合であっても、払出信号の出力が完了するまで払出信号の出力を継続する)。
(2-6) The processing means includes:
When a transition condition (for example, error occurrence, setting change operation) is satisfied during output of the out signal, control is performed to a specific state (for example, error state, setting change state),
Even when the control is performed 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 the control is performed to the error state as illustrated 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, during the output of the payout signal, if an error occurs, control is performed in an error state. Even if it is done, the output of the payout signal is continued until the output of the payout signal is completed, so that incorrect information is not transmitted to the outside.

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

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

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

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

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

たとえば、本実施の形態においては、図15に示すように、制御中の遊技状態がいずれであるかに関わらず、リプレイ入賞が発生しているか否かを一遊技ごとに判定し、リプレイ入賞が発生しているときにはリプレイ中LEDを点灯させ、リプレイが発生していないときにはリプレイ中LEDを消灯させる。このようにすることで、遊技ごとの状況をふまえてリプレイ入賞の発生状況を出力することができる。   For example, in the present embodiment, as shown in FIG. 15, regardless of the gaming state under control, it is determined whether or not a replay winning has occurred for each game, and the replay winning is determined. The LED during the replay is turned on when the replay occurs, and the LED during the replay is turned off when the replay does not occur. By doing so, it is possible to output the occurrence status of the replay winning based on the status of 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, an input / output error check process) and a call command (for example, a CALL command) in the first process, and is returned by a return command (for example, a RET command). A second process (for example, an error process) returning 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. ,
In the first processing, when performing the predetermined processing after returning from the second processing in the first processing, the processing unit prohibits execution of the interrupt processing (for example, as shown in FIG. In the process, when the process for acquiring the sensor error flag is executed after the return from the error process, 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 processing is called by the input / output error check processing and the CALL instruction in the input / output error check processing, and returns to the input / output error check processing by the RET instruction. Error processing includes error processing, and waits until interrupt processing is executed, and includes one-time interrupt processing for proceeding to the next processing on condition that the interrupt processing is executed. In the process, after the process returns from the error process, when executing the process of acquiring the sensor error flag, the execution of the interrupt process is prohibited. As described above, not only the one-time interrupt processing is performed in the error processing, but also the execution of the interrupt processing is prohibited in the input / output error check processing, so that unintended interrupt processing can be reliably prevented. By doing so, even when the program is modified in the development of the slot machine, it is possible to prevent an unintended failure from occurring, and to improve the maintainability of the program.

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

たとえば、本実施の形態においては、図23に示すように、エラー処理において、エラー処理を終了する前にエラー解除コマンドを送信し、エラー解除コマンドの送信が完了するように、RET命令により投入払出エラーチェック処理に復帰する前に割込1回待ち処理を実行する。このようにすることで、エラー解除コマンドが確実に送信された後に次の処理を実行することができる。   For example, in the present embodiment, as shown in FIG. 23, in the error processing, an error release command is transmitted before terminating the error processing, and the input / output is performed by the RET instruction so that the transmission of the error release command is completed. Before the process returns to the error check process, a wait process for one interrupt is executed. By doing so, it is possible to execute the next processing after the error clearing command is reliably 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 illustrated in FIG. 23, the predetermined process is performed in the interrupt process. This is a sensor error flag update process for acquiring the updated sensor error flag.)

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

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

たとえば、本実施の形態においては、図23に示すように、所定処理は、遊技の進行に係る遊技プログラムとは異なる非遊技プログラムが投入払出エラーチェック処理によるCALL命令で呼び出されることで実行される処理である。このようにすることで、非遊技プログラムの実行中に割込が生じない。   For example, in the present embodiment, as shown in FIG. 23, the predetermined process is executed when a non-game program different from the game program related to the progress of the game is called by the CALL instruction by the input / output error check process. Processing. By doing so, no interruption occurs during 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 / output 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 / output error check processing, the predetermined processing is executed without calling other processing by the CALL instruction. By doing so, it is possible to execute the predetermined process immediately after the end of the error process.

(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 includes:
In the interrupt process, an output process (for example, an output port output process) for outputting output data set in a storage area of the storage unit;
In the main process, a main-side setting process for setting the output data (for example, a setting process for LED data A, a setting process for LED data B),
In the interrupt process, an interrupt-side setting process for setting the output data (for example, a process for setting LED data C, a process for setting LED data D) can be executed,
The main-side setting process sets the output data when an output condition (for example, an LED data A enabling condition, an LED data B enabling condition) is satisfied after clearing the output data setting. (For example, as shown in FIG. 24, in the main-side setting process, after the LED data A and B are set to OFF, the LED data A is activated when the activation condition of the LED data A is satisfied. A is set to ON, and the LED data B is set to ON when the condition for enabling the LED data B is satisfied.
After setting the output data, the interrupt-side setting process sets the output data when an output condition (for example, a condition for enabling the signal data C or a condition for enabling the signal data D) is not satisfied. 24. For example, as shown in FIG. 24, in the interrupt-side setting process, after the signal data C and D are set to ON, the signal data C is not set when the enabling condition of the signal data C is not satisfied. Is set to OFF, and the setting of the signal data D is set OFF when the condition for enabling 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, the setting of the LED data A and B is set to OFF, and then the condition for enabling the LED data A is satisfied. At this time, the LED data A is set to ON, and the LED data B is set to ON when the validation condition of the LED data B is satisfied. 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 enabling 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 satisfaction condition is satisfied. In addition, since the instruction to set data OFF is more substantial than the instruction to set data ON, in the interrupt-side setting process, the output data is set ON first and the output data is By setting OFF, the program can be further simplified. On the other hand, if such processing is performed in the main processing, an erroneous signal may be output due to execution of the interrupt processing. For this reason, in the main-side setting processing, by setting the output data to OFF first and then setting the output data to ON when the satisfaction condition is satisfied, it is possible to prevent an erroneous signal from being output.

(4−2) 前記処理手段は、
前記出力処理において、前記割込側設定処理により設定された出力データに基づき複数の信号(たとえば、信号C、信号D)を出力し(たとえば、図24に示すように、割込側設定処理によりON設定された信号データC,信号データDに基づき信号C,信号Dを出力する)、
前記割込側設定処理において、前記複数の信号に対応する前記出力データをまとめて設定する(たとえば、図24に示すように、割込側設定処理において、信号C,信号Dに対応する信号データC,信号データDをまとめてON設定する)。
(4-2) The processing means includes:
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. The signals C and D are output based on the signal data C and 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, in the interrupt-side setting process, the signal data corresponding to the signals C and D are set). C and signal data D are turned ON collectively).

たとえば、本実施の形態においては、図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 signals C and D are output based on the signal data C and the signal data D which are set ON by the interrupt-side setting process, and the interrupt-side setting process is performed. , The signal data C and the signal data D corresponding to the signals C and D are turned ON collectively. This facilitates the ON setting of the signal data C and the signal data D.

(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 includes:
In the output processing, a plurality of signals (for example, signal A and signal B) are output based on the output data set by the main-side setting processing (for example, as shown in FIG. 24, ON setting is performed by the main-side setting processing) LEDA and LEDB are turned on or off based on the set 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 set). B is set OFF collectively).

たとえば、本実施の形態においては、図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, LEDA and LEDB are turned on or off based on LED data A and LED data B set by the main-side setting process. LED data A and LED data B corresponding to LEDB are collectively set to OFF. By doing so, the OFF setting of the LED data A and the LED data B becomes easy.

(4−4) 前記処理手段は、
前記出力処理において出力される前記複数の信号のそれぞれに対して、出力条件が成立したか否かを判定し(たとえば、図24に示すように、信号データC,信号データDのそれぞれに対して、無効化条件が成立したか否かを判定する)、
一の出力条件に基づいて出力データを更新した後、当該一の出力条件の次の出力条件に基づいて前記出力データを更新する(たとえば、図24に示すように、信号データCの無効化条件が成立したときは信号データCをOFF設定し、次の成立条件である信号データDの無効化条件が成立したときは信号データDをOFF設定する)。
(4-4) The processing means includes:
It is determined whether an output condition is satisfied for each of the plurality of signals output in the output process (for example, as shown in FIG. 24, for each of the signal data C and the signal data D, , To determine whether the invalidation condition is satisfied),
After the output data is updated based on one output condition, the output data is updated based on the next output condition after the one output condition (for example, as shown in FIG. Is satisfied, the signal data C is set to OFF, and when the next condition, that is, the invalidation condition of 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 the invalidation condition is satisfied for each of signal data C and signal data D, and the invalidation condition of signal data C is satisfied. When this is done, the signal data C is set to OFF, and when the next condition, the invalidation condition of the signal data D, is satisfied, the signal data D is set OFF. By doing so, it is not necessary to hold the determination result of the invalidation condition every time.

(4−5) 前記処理手段は、前記メイン側設定処理中において、割込処理の実行を禁止する(たとえば、図24に示すように、メイン側設定処理中において割込禁止設定を行う)。   (4-5) The processing unit prohibits the execution of the interrupt process during the main-side setting process (for example, as shown in FIG. 24, performs the interrupt prohibition setting 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 unit 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 functions in the processing unit (for example, FIG. As shown, the RAM 41c is provided with areas from FE00H to FEACH as built-in register areas for function setting in the main CPU 41a),
The processing unit sets a set value in a plurality of areas (for example, second, third, fourth, and sixth areas) of a storage area (for example, first to seventh areas) for the function setting at the start of control. At this time, data that can specify a reference address (for example, FE01H) corresponding to a predetermined area (for example, the second area) of the plurality of areas is read, and a set value (for example, After setting data A), a set value (for example, data B) is set in a specific area (for example, third area) based on an address calculated using a difference value (for example, 1) with respect to the reference address. (For example, as shown in FIG. 8, when the main CPU 41a sets the set values in the second, third, fourth, and sixth areas of the internal register area when starting the control, the main CPU 41a , The data that can specify the reference address (FE01H) corresponding to the second area of the six areas, and sets the data A in the second area based on the reference address, and then sets the difference value (1 ) Is set in the third area based on the 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 areas from FE00H to FEACH as built-in register areas for function setting in the main CPU 41a. When setting a set value in the second, third, fourth, and sixth areas of the built-in register area at the start, the reference address (FE01H) corresponding to the first area of the second, third, fourth, and sixth areas is specified. After reading possible data and setting data A in the second area based on the reference address, data B is stored in the third area based on the address (FE02H) calculated using the difference value (1) with respect to the reference address. Set. As described above, by setting data in the third area based on the address calculated using the difference value, it is possible to save 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) of the plurality of areas (for example, as shown in FIG. 8, the second area is the second or third area). , 4 and 6 areas corresponding to the smallest address (FE01H)).

たとえば、本実施の形態においては、図8に示すように、第2領域は、第2,3,4,6領域のうちの最も小さいアドレス(FE01H)に対応する領域であるため、差分値を用いて算出したアドレスに基づき領域にデータを設定する際に、効率よくデータを設定することができる。   For example, in the present embodiment, as shown in FIG. 8, the second area is an area corresponding to the smallest address (FE01H) among the second, third, fourth, and sixth areas, so that the difference value When data is set in an 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 the set value, the processing means sets an area (for example, a third area) corresponding to a predetermined address (for example, FE02H) and an address (for example, FE03H) next to the predetermined address. (For example, 12 + FFH × 56) is set so as to set the set value in each of the areas (for example, the fourth area) corresponding to (i.e., as shown in FIG. 8, the main CPU 41a sets the set value). Is set so that the set value is set 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)).

たとえば、本実施の形態においては、図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 sets the third area corresponding to the predetermined address (FE02H) and the address next to the predetermined address (FE03H). Are set in such a manner that the set value is set in each of the fourth areas corresponding to (2) (12 + FFH × 56). 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 the control of the game by setting the set values in all of the plurality of areas where the set values are to be set (for example, as shown in FIGS. The CPU 41a starts controlling the game by setting the set values in all of the first to fifth areas where the set values are to 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 where the set values are to be set, thereby playing the game. Start control. By doing so, the game control is not started in a situation where the setting of the set value to be set has not been completed.

(5−5) 前記処理手段は、設定値を設定すべき前記複数の領域の全てに設定値が設定されるまで、割込処理の実行を禁止する(たとえば、図7,8に示すように、メインCPU41aは、設定値を設定すべき第2,3,4,6領域の全てに設定値が設定されるまで、割込処理の実行を禁止する)。   (5-5) The processing unit prohibits execution of the interrupt processing until the setting values are set in all of the plurality of areas where the setting values are to be set (for example, as shown in FIGS. 7 and 8). The main CPU 41a prohibits the execution of the interrupt processing until the set values are set in all of the second, third, fourth, and sixth areas where the set values are to 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 values are set in all of the second, third, fourth, and sixth areas where the set values are to be set. Prohibits execution of processing. By doing so, unintended control is not performed by executing the interrupt processing while setting the set value.

(5−6) 前記処理手段は、前記複数の領域に設定値を設定する以前に、ポート(たとえば、出力ポート)を初期化する(たとえば、図7,8に示すように、メインCPU41aは、第2,3,4,6領域に設定値を設定する以前に、出力ポートを初期化する)。   (5-6) The processing unit 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 41 a Before setting the set values in the second, third, fourth and sixth areas, the output ports are initialized).

たとえば、本実施の形態においては、図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 an output port before setting a set value in the second, third, fourth, and sixth areas. By doing so, it is possible to prevent an unintended signal from being output from the output port.

[変形例]
以上、本発明における主な実施の形態を説明してきたが、本発明は、上記の実施の形態に限られず、種々の変形、応用が可能である。以下、本発明に適用可能な上記の実施の形態の変形例について説明する。
[Modification]
The main embodiments of the present invention have been described above. However, 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領域の各領域において設定値を設定した。しかし、これに限らず、設定が必要な領域は、全領域のうちのどのような領域であってもよく、全ての領域に対して設定するようにしてもよい。
[On-chip register setting processing]
In the present embodiment, as shown in FIG. 8, there are seven regions from a first region to a seventh region, and a plurality of regions that need to be set include the second, third, fourth, and sixth regions. 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 of the entire area, and may be set for all the 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. May be the first stop, and any of the reels may be the second stop. Further, the present invention is not limited to the combination of the first stop and the second stop, and may be a 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 section, 91 sub control section.

Claims (1)

各々が識別可能な複数種類の識別情報を変動表示可能な可変表示部を複数備え、
前記可変表示部を変動表示した後、前記可変表示部の変動表示を停止することで表示結果を導出し、複数の可変表示部の表示結果の組合せである表示結果組合せに応じて入賞が発生可能なスロットマシンにおいて、
表示結果組合せを導出させるために操作される複数の導出操作手段と、
所定の処理を実行する処理手段とを備え、
前記処理手段によって実行される前記所定の処理には、メイン処理と、割込の発生に基づき前記メイン処理に割り込んで実行される割込処理とが含まれ、
前記処理手段は、
割込処理において、前記複数の導出操作手段のうちのいずれかの操作に基づく入力の有無を判定し、前記複数の導出操作手段のうちの第1導出操作手段の操作に基づく第1入力があったと判定した場合、当該割込処理後の前記メイン処理において、前記複数の可変表示部のうちの第1可変表示部における変動表示の停止位置を設定するための第1設定処理を実行し、
前記第1設定処理を開始した後、当該第1設定処理が完了するまで新たな割込処理の実行を禁止し、当該第1設定処理が完了した後に当該新たな割込処理を実行し、
前記新たな割込処理において、前記複数の導出操作手段のうちのいずれかの操作に基づく入力の有無を判定し、前記複数の導出操作手段のうちの第2導出操作手段の操作に基づく第2入力があったと判定した場合、当該新たな割込処理後の前記メイン処理において、前記複数の可変表示部のうちの第2可変表示部における変動表示の停止位置を設定するための第2設定処理を実行するものであり、
前記処理手段は、さらに、前記新たな割込処理後の前記メイン処理において、前記可変表示部の変動表示が正常であるか否かを判定し、当該変動表示が正常でないと判定した場合、当該新たな割込処理において判定した前記第2入力に基づいて前記第2設定処理を実行せず、当該変動表示が正常であると判定した場合、当該新たな割込処理において判定した前記第2入力に基づいて前記第2設定処理を実行する、スロットマシン。
A plurality of variable display units capable of variably displaying a plurality of types of identification information each of which can be identified,
After variably displaying 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 a display result combination which is a combination of the display results of the plurality of variable display units. Slot machine,
A plurality of deriving operation means operated to derive a display result combination;
Processing means for executing predetermined processing,
The predetermined process executed by the processing means includes a main process, and an interrupt process executed by interrupting the main process based on the occurrence of an interrupt,
The processing means includes:
In the interruption process, it is determined whether or not there is an input based on any one of the plurality of deriving operation means, and if there is a first input based on an operation of the first deriving operation means of the plurality of deriving operation means. If it is determined that the variable display has been interrupted, in the main processing, the first setting processing for setting a stop position of the variable display in the first variable display unit of the plurality of variable display units is executed,
After starting the first setting process, prohibiting execution of a new interrupt process until the first setting process is completed, executing the new interrupt process after the first setting process is completed,
In the new interrupt processing, it is determined whether there is an input based on an operation of any of the plurality of deriving operation means, and a second based on an operation of a second deriving operation means of the plurality of deriving operation means. If it is determined that an input has been made, in the main processing after the new interrupt processing, a second setting processing for setting a variable display stop position on a second variable display section of the plurality of variable display sections And execute
The processing means may further determine whether or not the variable display of the variable display unit is normal in the main processing after the new interrupt processing, and determine that the variable display is not normal, If it is determined that the variable display is normal without performing the second setting process based on the second input determined in the new interrupt process, the second input determined in the new interrupt process A slot machine that executes the second setting process based on the first and second settings.
JP2018148691A 2018-08-07 2018-08-07 slot machine Active JP7149760B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018148691A JP7149760B2 (en) 2018-08-07 2018-08-07 slot machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018148691A JP7149760B2 (en) 2018-08-07 2018-08-07 slot machine

Publications (2)

Publication Number Publication Date
JP2020022637A true JP2020022637A (en) 2020-02-13
JP7149760B2 JP7149760B2 (en) 2022-10-07

Family

ID=69619238

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018148691A Active JP7149760B2 (en) 2018-08-07 2018-08-07 slot machine

Country Status (1)

Country Link
JP (1) JP7149760B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7401925B2 (en) 2021-08-18 2023-12-20 株式会社オリンピア gaming machine
JP7401924B2 (en) 2021-08-18 2023-12-20 株式会社オリンピア gaming machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015134024A (en) * 2014-01-16 2015-07-27 株式会社藤商事 Game machine
JP2016016253A (en) * 2014-07-10 2016-02-01 サミー株式会社 Slot machine
JP2017018493A (en) * 2015-07-14 2017-01-26 株式会社藤商事 Game machine
JP2018023413A (en) * 2016-08-08 2018-02-15 株式会社三共 Slot machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015134024A (en) * 2014-01-16 2015-07-27 株式会社藤商事 Game machine
JP2016016253A (en) * 2014-07-10 2016-02-01 サミー株式会社 Slot machine
JP2017018493A (en) * 2015-07-14 2017-01-26 株式会社藤商事 Game machine
JP2018023413A (en) * 2016-08-08 2018-02-15 株式会社三共 Slot machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7401925B2 (en) 2021-08-18 2023-12-20 株式会社オリンピア gaming machine
JP7401924B2 (en) 2021-08-18 2023-12-20 株式会社オリンピア gaming machine

Also Published As

Publication number Publication date
JP7149760B2 (en) 2022-10-07

Similar Documents

Publication Publication Date Title
JP2019154545A (en) Game machine
JP6654837B2 (en) Gaming machine
JP2017046844A (en) Game machine
JP7149760B2 (en) slot machine
JP6778054B2 (en) Game machine
JP7104589B2 (en) Pachinko machine
JP7104590B2 (en) Pachinko machine
JP7164361B2 (en) game machine
JP6778055B2 (en) Game machine
JP6894413B2 (en) Pachinko machine
JP6835780B2 (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
JP6792691B2 (en) Game machine
JP2020036680A (en) Slot machine
JP7114294B2 (en) slot machine
JP6756894B2 (en) Game machine
JP6756893B2 (en) Game machine
JP6867855B2 (en) Slot machine
JP6875184B2 (en) Slot machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210701

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220405

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220531

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220927

R150 Certificate of patent or registration of utility model

Ref document number: 7149760

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150