JP7184570B2 - slot machine - Google Patents

slot machine Download PDF

Info

Publication number
JP7184570B2
JP7184570B2 JP2018164298A JP2018164298A JP7184570B2 JP 7184570 B2 JP7184570 B2 JP 7184570B2 JP 2018164298 A JP2018164298 A JP 2018164298A JP 2018164298 A JP2018164298 A JP 2018164298A JP 7184570 B2 JP7184570 B2 JP 7184570B2
Authority
JP
Japan
Prior art keywords
processing
reel
signal
output
game
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018164298A
Other languages
Japanese (ja)
Other versions
JP2020036674A (en
Inventor
敏男 小倉
正和 池田
善央 山本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sankyo Co Ltd
Original Assignee
Sankyo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sankyo Co Ltd filed Critical Sankyo Co Ltd
Priority to JP2018164298A priority Critical patent/JP7184570B2/en
Publication of JP2020036674A publication Critical patent/JP2020036674A/en
Application granted granted Critical
Publication of JP7184570B2 publication Critical patent/JP7184570B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Slot Machines And Peripheral Devices (AREA)

Description

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

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

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

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

特開2009-101002号公報Japanese Patent Application Laid-Open No. 2009-101002

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

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

(A) 各々が識別可能な複数種類の識別情報を変動表示可能な可変表示部を複数備え、
前記可変表示部を変動表示した後、前記可変表示部の変動表示を停止することで表示結果を導出し、複数の可変表示部の表示結果の組合せである表示結果組合せに応じて入賞が発生可能なスロットマシンにおいて、
表示結果組合せを導出させるために操作される複数の導出操作手段と、
所定の処理を実行する処理手段とを備え、
前記処理手段によって実行される前記所定の処理には、メイン処理と、割込を禁止する割込禁止設定が行われてない場合に所定時間ごとに前記メイン処理に割り込んで実行可能な割込処理とが含まれ、
前記処理手段は、
所定の割込処理において、前記複数の導出操作手段のうちのいずれかの操作に基づく入力の有無を判定し、前記複数の導出操作手段のうちの第1導出操作手段の操作に基づく第1入力があったと判定した場合、当該所定の割込処理後の前記メイン処理において、前記割込禁止設定を行った後に、前記複数の可変表示部のうちの第1可変表示部における変動表示の停止位置を設定するための第1設定処理を実行し、当該第1設定処理の終了後に前記割込禁止設定の解除を行い、
前記割込禁止設定の解除後に実行される最初の割込処理において、前記複数の導出操作手段のうちのいずれかの操作に基づく入力の有無を判定し、前記複数の導出操作手段のうちの第2導出操作手段の操作に基づく第2入力があったと判定した場合、当該最初の割込処理後の前記メイン処理において、前記複数の可変表示部のうちの第2可変表示部における変動表示の停止位置を設定するための第2設定処理を実行するものであり、
前記処理手段は、さらに、複数の可変表示部を変動表示させるためのモータに対して駆動信号を出力しているか否かを判定することに基づいて、当該複数の可変表示部全ての変動表示が停止したか否かを判定する。
なお、スロットマシンは、以下のように構成されてもよい。
各々が識別可能な複数種類の識別情報を変動表示可能な可変表示部を複数備え、
前記可変表示部を変動表示した後、前記可変表示部の変動表示を停止することで表示結果を導出し、複数の可変表示部の表示結果の組合せである表示結果組合せに応じて入賞が発生可能なスロットマシン(たとえば、スロットマシン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エッジが検出された場合、新たな割込処理後のメイン処理において、中リールの停止位置を設定するためのリール停止滑りコマ格納処理(中)を実行する)、
前記処理手段は、さらに、複数の可変表示部を変動表示させるためのモータ(たとえば、リールモータ)に対して駆動信号(たとえば、第1~第3リールモータφ0~φ3信号)を出力しているか否かを判定することに基づいて、当該複数の可変表示部全ての変動表示が停止したか否かを判定する(たとえば、図14に示すように、リールモータに対してリールモータ信号が出力されているか否かを判定することに基づいて、全てのリールが停止したか否かを判定する)。
(A) having a plurality of variable display units capable of variably displaying a plurality of types of identification information each identifiable,
A display result is derived by stopping the variable display of the variable display portion after the variable display portion is variably displayed, and winning can occur according to a display result combination that is a combination of display results of a plurality of variable display portions. in a slot machine
a plurality of derivation operation means operated to derive a display result combination;
and processing means for executing a predetermined process,
The predetermined processing executed by the processing means includes a main processing and an interrupt processing that can be executed by interrupting the main processing every predetermined time if an interrupt prohibition setting for prohibiting an interrupt is not set. and includes
The processing means
In a predetermined interrupt process, it is determined whether or not there is an input based on an operation of one of the plurality of derivation operation means, and a first input based on an operation of a first derivation operation means of the plurality of derivation operation means is performed. If it is determined that there has been, in the main processing after the predetermined interrupt processing, after performing the interrupt prohibition setting, the stop position of the variable display in the first variable display portion among the plurality of variable display portions is executed, and after the first setting process is completed, the interrupt prohibition setting is canceled,
In the first interrupt process executed after the interrupt prohibition setting is canceled, it is determined whether or not there is an input based on the operation of any one of the plurality of derivation operation means, and the first of the plurality of derivation operation means is 2. When it is determined that there is a second input based on the operation of the derivation operation means, in the main processing after the first interrupt processing, the variable display on the second variable display portion among the plurality of variable display portions is stopped. for executing a second setting process for setting the position;
The processing means further determines whether or not a drive signal is output to a motor for variably displaying the plurality of variable display portions, so that the variable display of all of the plurality of variable display portions is performed. Determine whether or not it has stopped.
Note that the slot machine may be configured as follows.
Equipped with a plurality of variable display units that can variably display multiple types of identification information that can be identified by each,
A display result is derived by stopping the variable display of the variable display portion after the variable display portion is variably displayed, and winning can occur according to a display result combination that is a combination of display results of a plurality of variable display portions. In a slot machine (for example, slot machine 1),
a plurality of derivation operation means (for example, stop switches 8L, 8C, 8R) operated to derive display result combinations;
A processing means (for example, the main CPU 41a) that executes a predetermined process,
The predetermined processes executed by the processing means include a main process (for example, the main process shown in FIG. 9) and an interrupt process (for example, a 16 timer interrupt processing (main)),
The processing means
In the interrupt processing, it is determined whether or not there is an input based on the operation of any one of the plurality of lead-out operation means, and operation of the first lead-out operation means (e.g., left stop switch) of the plurality of lead-out operation means is performed. When it is determined that there is a first input (for example, detection of the ON edge of the left stop switch signal) based on Execute the first setting process (for example, reel stop sliding piece storage process) for setting the stop position of the variable display in (for example, the left reel area visible from the player side through the perspective window 3) ( For example, when 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, reel stop sliding piece storage processing (left) for setting the stop position of the left reel ),
After starting the first setting process, execution of new interrupt process is prohibited until the first setting process is completed, and after the first setting process is completed, the new interrupt process is executed (for example, , as shown in FIGS. 13 and 14, after the reel stop sliding piece storage processing (left) is started, execution of new interrupt processing is prohibited until the reel stop sliding piece storage processing (left) is completed. Execute a new interrupt process after the reel stop sliding piece storage process (left) is completed),
In the new interrupt process, the presence or absence of an input based on the operation of any one of the plurality of lead-out operation means is determined, and the second lead-out operation means (for example, a middle stop switch) of the plurality of lead-out operation means is selected. ) based on the operation of (for example, the detection of the ON edge of the middle stop switch signal), in the main processing after the new interrupt processing, one of the plurality of variable display units Second setting process (for example, reel stop sliding piece storage process) for setting the stop position of the variable display in the second variable display portion (for example, the area of the middle reel visible from the player side through the perspective window 3) ) is executed (for example, as shown in FIGS. 13 and 14, when the ON edge of the middle stop switch signal based on the operation of the middle stop switch is detected in new interrupt processing, a new interrupt In the main processing after the load processing, the reel stop sliding piece storage processing (middle) for setting the stop position of the middle reel is executed),
Whether the processing means further outputs drive signals (eg, first to third reel motor φ0 to φ3 signals) to motors (eg, reel motors) for variably displaying the plurality of variable display units. Based on the determination of whether or not, it is determined whether or not the variable display of all of the plurality of variable display portions has stopped (for example, as shown in FIG. 14, the reel motor signal is output to the reel motor). (based on determining whether all reels have stopped).

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

本発明に係るスロットマシンを実施するための本実施の形態について以下に説明する。 An embodiment for carrying out 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 a slot machine 1 according to this embodiment. The slot machine 1 of this embodiment, as shown in FIG. 1, comprises a housing 1a with an open front surface and a front door 1b rotatably pivoted on a side end of the housing 1a. .

本実施例のスロットマシン1の筐体1aの内部には、図1に示すように、外周に複数種の図柄が配列されたリール2L,2C,2R(以下、左リール、中リール、右リールとも称する)が水平方向に並設されており、図1に示すように、これらリール2L,2C,2Rに配列された図柄のうち連続する3つの図柄が前面扉1bに設けられた透視窓3から見えるように配置されている。 Inside the housing 1a of the slot machine 1 of this embodiment, as shown in FIG. ) are arranged in a row in the horizontal direction, and as shown in FIG. positioned so that it can be seen from

リール2L,2C,2Rの外周部には、互いに識別可能な複数種類の図柄(例えば、「7」、「BAR」、「スイカ」、「チェリー」、「ベル」、「リプレイ」など)が所定の順序で、それぞれ21個ずつ描かれている。リール2L,2C,2Rの外周部に描かれた図柄は、前面扉1bの略中央に設けられた透視窓3において各々上中下三段に表示される。 A plurality of types of mutually identifiable symbols (for example, "7", "BAR", "watermelon", "cherry", "bell", "replay", etc.) are predetermined on the outer periphery of the reels 2L, 2C, 2R. 21 of each are drawn in this order. The patterns drawn on the outer peripheries of the reels 2L, 2C, and 2R are displayed in three stages, upper, middle, and lower, in the see-through window 3 provided approximately in 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, and 2R are rotated by reel motors 32L, 32C, and 32R (see FIG. 3) provided correspondingly, respectively, so that the patterns on the reels 2L, 2C, and 2R are continuously displayed on the see-through window 3. While the symbols are displayed while changing temporally, by stopping the rotation of the reels 2L, 2C, and 2R, three consecutive symbols are derived and displayed in 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 use the reel motors 32L, 32C, and 32R to rotate the reels 2L, 2C, and 2R having a plurality of symbols arranged on the outer peripheral surface, so that the player can Although it is possible to perform variable display by moving a plurality of visible symbols, the means for performing variable display by moving a plurality of symbols may be other than the reel. The configuration may be such that variable display can be performed by moving a belt on which patterns are arranged.

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

また、リールセンサ33L,33C,33Rは、各リール2L,2C,2Rについて図柄番号1の図柄の領域の下端が各リールにおける所定位置を通過するときに、検出信号を出力するように配置されており、各リールについて図柄番号1の図柄の領域の下端がリール基準位置となる。 The reel sensors 33L, 33C, 33R are arranged to output a detection signal when the lower end of the symbol area of symbol number 1 passes through a predetermined position on each reel 2L, 2C, 2R. 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 on the front side (player side) of the reels 2L, 2C and 2R of the front door 1b. The liquid crystal display 51 has a liquid crystal panel that is transparent when no voltage is applied to the liquid crystal element. The reels 2L, 2C and 2R can be visually recognized from the player side.

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

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

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

MAXBETスイッチ6の内部には、MAXBETスイッチ6の操作による賭数の設定操作が有効である旨を点灯により報知するBETスイッチ有効LED21(図3参照)が設けられており、ストップスイッチ8L,8C,8Rの内部には、該当するストップスイッチ8L,8C,8Rによるリールの停止操作が有効である旨を点灯により報知する左,中,右停止有効LED22L,22C,22R(図3参照)がそれぞれ設けられており、演出用スイッチ56の内部には、演出用スイッチ56の操作が有効である旨を点灯により報知する演出用LED56a(図3参照)が設けられている。 Inside the MAXBET switch 6, there is provided a BET switch valid LED 21 (see FIG. 3) for notifying by lighting that the setting operation of the number of bets by operating the MAXBET switch 6 is valid. Left, middle, and right stop effective LEDs 22L, 22C, and 22R (see FIG. 3) are respectively provided inside the 8R to notify by lighting that the stop operation of the reels by the corresponding stop switches 8L, 8C, and 8R is effective. Inside the performance switch 56, there is provided a performance LED 56a (see FIG. 3) for notifying by lighting that the operation of the performance 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 canceling an error state and a stop state to be described later without opening the front door 1b by operating a predetermined key; A set value display 24 that displays the set value at that point in time while the set value is being changed or is being checked, which will be described later, is in a halt state (the progress of the game is regulated until a reset operation is performed) at a predetermined opportunity. state), automatic settlement processing (payment (return) of medals stored as credits without the player's operation) at a predetermined opportunity. processing), a hopper tank 34a (described later) provided inside the housing 1a for controlling the automatic checkout switch 36b for enabling/disabling the automatic checkout function, and the flow path of the medals inserted from the medal inserting section 4. Flow path switching solenoid 30 for selectively switching to either the (see FIG. 2) side or the medal payout port 9 side, inserted medals for detecting medals thrown from the medal insertion part 4 and flowing down to the hopper tank 34a side A sensor 31, a medal selector 29 having an insertion slot sensor 26 for detecting the insertion of a foreign object on the upstream side of the inserted medal sensor 31, and a door open detection switch 25 (see FIG. 3) for detecting the open state of the front door 1b are provided. there is

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

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

電源ボックス100の前面には、図2に示すように、設定変更状態または設定確認状態に切り替えるための設定キースイッチ37、通常時においてはエラー状態や打止状態を解除するためのリセットスイッチとして機能し、設定変更状態においては後述する内部抽選の当選確率(出玉率)の設定値を変更するための設定スイッチとして機能するリセット/設定スイッチ38、電源をon/offする際に操作される電源スイッチ39が設けられている。 On the front of the power box 100, as shown in FIG. 2, a setting key switch 37 for switching to a setting change state or a setting confirmation state, and normally functioning as a reset switch for canceling an error state or stop state. In the setting change state, the reset/setting switch 38 functions as a setting switch for changing the set value of the winning probability (ball payout rate) of the internal lottery, which will be described later. 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 can be opened by operating a predetermined key owned by a store clerk. The setting key switch 37, the reset/setting switch 38, and the power switch 39 can be operated only by a staff member who has the keys, 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 key operation after the front door 1b is opened by key operation, only the store clerk who has the key to operate the setting key switch 37 can operate the setting key switch 37. operation is possible.

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

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

また、本実施例では、入賞ラインLNに入賞を構成する図柄の組合せが揃ったことを認識しやすくするために、入賞ラインLNとは別に、無効ラインLM1~4(LM1は、左中右リールの各上段にわたるラインであり、LM2は、左中右リールの各中段にわたるラインであり、LM3は、左中右リールの各下段にわたるラインであり、LM4は、左リールの下段、中リールの中段、右リールの上段にわたるラインである。)を設定している。無効ラインLM1~4は、これら無効ラインLM1~4に揃った図柄の組合せによって入賞が判定されるものではなく、入賞ラインLNに特定の入賞を構成する図柄の組合せが揃った際に、無効ラインLM1~4のいずれかに入賞ラインLNに揃った場合に入賞となる図柄の組合せ(例えば、ベル‐ベル‐ベル)が揃う構成とすることで、入賞ラインLNに特定の入賞を構成する図柄の組合せが揃ったことを認識しやすくするものである。 In addition, in this embodiment, invalid lines LM1 to 4 (LM1 are left, middle, and right reels) are provided separately from the pay line LN in order to make it easier to recognize that the combination of symbols constituting the win is complete. LM2 is the line across the middle of the left, middle and right reels, LM3 is the line across the bottom of the left, middle and right reels, and LM4 is the bottom of the left reel and the middle of the middle reel. , which is the upper row of the right reel). Winning of invalid lines LM1-LM4 is not determined by a combination of symbols arranged on these invalid lines LM1-LM4. A combination of symbols (for example, Bell-Bell-Bell) that will result in a prize when aligned on any one of the winning lines LN of LM1 to LM4 is arranged so that the winning line LN has a specific winning pattern. This makes 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 this embodiment, as shown in FIG. 1, the upper stage of the reel 2L, the upper stage of the reel 2C, and the upper stage of the reel 2R, that is, the invalid line LM1 and the reel 2L are set so as to straddle the symbols horizontally arranged in the upper stage. The lower stage, the lower stage of the reel 2C, the lower stage of the reel 2R, that is, the invalid line LM2 set across the symbols horizontally arranged in the lower stage, the upper stage of the reel 2L, the middle stage of the reel 2C, the lower stage of the reel 2R, that is, The invalid line LM3 set across the symbols aligned downward to the right, the lower stage of the reel 2L, the middle stage of the reel 2C, and the upper stage of the reel 2R, that is, the invalid line set across the symbols aligned upward 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, as a winning combination, a prize is won when a predetermined combination of symbols (for example, "bell-watermelon-cherry") defined as a combination is completed on the winning line LN, and a predetermined combination of symbols is obtained. By aligning, any of the invalid lines LM1 to LM4 is aligned with a combination of symbols (for example, "watermelon-watermelon-watermelon") that is an index that is easier to recognize than a predetermined symbol combination, thereby arranging the invalid lines LM1 to LM4. It includes a winning combination that can be made to look like a prize by a combination of matching symbols. Hereinafter, a combination of symbols aligned on any of the invalid lines LM1 to LM4 when a predetermined combination of symbols aligns on the winning line LN is called a combination of symbols serving as an index, and constitutes a combination of symbols serving as an index. The pattern is called an index pattern.

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

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

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

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

このため、例えば、ストップスイッチ8L,8C,8Rのいずれかが操作されたときに当該ストップスイッチに対応するリールの下段に表示されている図柄を基準とした場合は、当該基準とした図柄から4コマ先までの図柄を下段に表示させることができるため、リール2L,2C,2R各々において、ストップスイッチ8L,8C,8Rのうちいずれかが操作されたときに当該ストップスイッチに対応するリールの入賞ライン上に表示されている図柄を含めて5コマ以内に配置されている図柄を入賞ライン上に表示させることができる。 Therefore, for example, when any one of the stop switches 8L, 8C, and 8R is operated and the symbol displayed on the bottom of the reel corresponding to the stop switch is used as a reference, 4 Since the symbols up to the frame ahead can be displayed in the lower row, when one of the stop switches 8L, 8C and 8R is operated in each of the reels 2L, 2C and 2R, the reel corresponding to the stop switch wins. 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 when there is no particular need to distinguish them. Also, the reel 2L may be referred to as a left reel, the reel 2C as a middle reel, and the reel 2R as a right reel. Further, an operation to stop the reels 2L, 2C, 2R by operating the stop switches 8L, 8C, 8R may be called a stop operation.

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

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

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

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

メイン制御部41は、サブ制御部91に各種のコマンドを送信する。メイン制御部41からサブ制御部91へ送信されるコマンドは一方向のみで送られ、サブ制御部91からメイン制御部41へ向けてコマンドが送られることはない。 The main control section 41 transmits various commands to the sub-control section 91 . A command sent from the main control section 41 to the sub-control section 91 is sent only in one direction, and no command is sent from the sub-control section 91 to the main control section 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 ports 0 and 1. be. Control signals for the left/middle/right stop valid LEDs 22L, 22C, and 22R and a control signal for the passage switching solenoid 30 can be output from the output port 2. FIG. A control signal for the hopper motor 34b and an external output signal can be output from the output port 3 . Control signals for credit display 11, game auxiliary display 12, 1-3 BET LEDs 14-16, insertion request LED 17, start valid LED 18, wait LED 19, replay LED 20, and BET switch valid LED 21 are output from output port 4 and output port 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 loops the processing according to the control state until the detection state of the various switches connected to the game control board 40 as the main process changes, and according to the change in the detection state of the various switches Perform a gradual migration process. Further, the main control unit 41 executes timer interrupt processing (main) at regular time intervals (about 0.56 milliseconds in this embodiment). Note that the execution interval of the timer interrupt process (main) is set to a time longer than the sum of the time taken for the process to be repeated according to the control state in the main process and the execution time of the timer interrupt process (main). This means that at least one cycle of processing that is always repeated according to the control state will be performed between the current and next timer interrupt processing (main).

演出制御基板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を例示しているが、演出装置は、これらに限られず、例えば、機械的に駆動する表示装置や機械的に駆動する役モノなどを演出装置として適用しても良い。 A production switch 56 is connected to the production control board 90, and a detection signal of the production switch 56 is inputted. In addition, production devices such as a liquid crystal display 51, production effect LEDs 52, speakers 53 and 54, and reel LEDs 55 are connected. It is designed to be driven. In addition, 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, in addition to the sub-control unit 91, an output control unit that directly controls the output of the production device is mounted on the production control board 90 or another board, and the sub-control unit 91 is based on the command from the main control unit 41. The output pattern of the production device may be determined, and the output control unit may control the output of the production 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 unit The output control of the production device is performed by both of the units. Further, in this embodiment, the liquid crystal display 51, the effect LED 52, the speakers 53 and 54, and the reel LED 55 are exemplified as the effect device, but the effect device is not limited to these. A device, a mechanically driven role item, or the like may be applied as a production 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 production control board 90 includes a sub-control unit 91 that is configured by a microcomputer having a sub CPU 91a, a ROM 91b, a RAM 91c, and an I/O port 91d and controls the production, and a liquid crystal display 51 connected to the production control board 90. A display control circuit 92 that controls the display of the effect LED 52, an LED drive circuit 93 that controls the drive of the reel LED 55, an audio output circuit 94 that controls audio output from the speakers 53 and 54, and when the power is turned on or A reset circuit 95 that gives a reset signal to the sub CPU 91a when the initialization command from the sub CPU 91a is not input for a certain period of time, and a switch detection circuit 96 that detects detection signals input from switches connected to the performance control board 90. A clock device 97 that outputs time information including date information and time information, and a power supply voltage supplied to the slot machine 1 are monitored, and when a voltage drop is detected, a voltage drop signal indicating the fact is sent to the sub CPU 91a. A power failure detection circuit 98 for outputting to the power supply and other circuits are mounted.

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

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

設定値を変更するためには、設定キースイッチ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, and the setting value can be changed by operating the reset/setting switch 38. Transition to the modified state. When the reset/setting switch 38 is operated in the setting change state, the display value displayed on the setting value display 24 is updated one by one (when the operation is further performed from the setting value 6, the setting value is changed to 1). return). Then, when the start switch 7 is operated, the displayed 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 section 41, and the state shifts to a state in which the game can proceed.

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

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

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

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

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

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

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

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

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

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

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

[メイン制御部のメモリ領域とプログラムについて]
図4は、メイン制御部41が用いるメモリ領域のアドレスマップである。図4に示すように、メイン制御部41が用いるメモリ領域は、ROM41bに割り当てられたメモリ領域(0000H~EFFFH)と、RAM41cに割り当てられたメモリ領域(F000H~FFFFH)とを含む。
[Regarding the memory area and program of the main control part]
FIG. 4 is an address map of a memory area used by the main controller 41. As shown in FIG. 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 consists of 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 the program title and version can be set, and a vector table area in which the upper address of the CALLV instruction subroutine and the start address of the timer interrupt processing (main) are set. , an HW parameter area in which parameters for setting the internal functions of the main control unit 41 in terms of hardware are set, and an unused area in which access is prohibited.

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

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

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

なお、上記において記憶領域の前後とは、記憶領域に割り当てられたアドレス値の大小関係であり、アドレスが小さい方が前方となり、アドレスが大きい方が後方となる。このため、一の記憶領域よりも後方に割り当てられた記憶領域とは、一の記憶領域よりもアドレス値が大きい記憶領域が該当し、一の記憶領域よりも前方に割り当てられた記憶領域とは、一の記憶領域よりもアドレス値が小さい記憶領域が該当する。 Note that, in the above description, the front and back of the storage area indicates the size relationship of the address values assigned to the storage area, and the smaller address is the front, and the larger address is the rear. For this reason, a storage area allocated behind one storage area corresponds to a storage area having a larger address value than that of one storage area, and a storage area allocated ahead of one storage area corresponds to , 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 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 work, an unused area 4, It also includes a stack area where the non-game program saves data.

遊技RAM領域は、領域A~Dにより構成される。ここで、領域A~Dを全初期化対象領域と呼び、領域B~Dを設定変更終了時初期化対象領域と呼び、領域C~Dをボーナス終了時初期化対象領域と呼び、領域Dを遊技終了時初期化対象領域と呼ぶ。全初期化対象領域は、RAMエラーが発生した際にときに所定の操作を行うことによって初期化される領域である。設定変更終了時初期化対象領域は、設定変更が終了した際に初期化される領域である。ボーナス終了時初期化対象領域は、ボーナス終了時に初期化される領域である。遊技終了時初期化対象領域は、遊技(ゲーム)が終了するたびに初期化される領域である。 The game RAM area is composed of areas AD. Here, areas A to D are referred to as total initialization target areas, areas B to D are referred to as initialization target areas at the end of setting change, areas C to D are referred to as initialization target areas at the end of bonus, and area D is referred to as This area is called an area to be initialized at the end of the game. The entire initialization target area is an area that is initialized by performing a predetermined operation when a RAM error occurs. The area to be initialized at the end of setting change is an area to be initialized when the setting change is finished. The area to be initialized at the end of the bonus is an area to be initialized at the end of the bonus. The game end initialization target area is an area that is initialized each time a 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 the 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 the non-game area. . Also, the unused areas 1 and 2, the unused areas 3 and the unused areas 4 may be collectively referred to as unused areas.

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

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

メイン制御部41にプログラム/データ領域に格納されたデータを読み出す命令としてLD命令を含む。LD命令は、メインルーチンまたはサブルーチンにおいて指定されたアドレスに格納された1バイトデータを指定されたレジスタに読み出す命令である。メイン制御部41は、LD命令により指定されたアドレスに格納されたデータを読み出し、LD命令により指定されたレジスタに読み出したデータを格納する。これに対して、LDW命令は、メインルーチンまたはサブルーチンにおいて指定されたアドレスに格納された2バイトデータを指定されたレジスタに読み出す命令である。 An LD instruction is included as an instruction for reading data stored in the program/data area in the main control unit 41 . The LD instruction is an instruction to read 1-byte data stored at an address specified in a main routine or subroutine to 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 to read 2-byte data stored at an address specified in a main routine or subroutine to 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 if the process based on the program is not executed. On the other hand, the non-game program is a program that does not relate 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 progressed. It is a program for executing processing.

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

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

[各種処理の制御内容]
メイン制御部41が遊技プログラムおよび非遊技プログラムを実行することで行う各種処理の制御内容について、図7~図16に基づいて説明する。
[Contents of 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. 7 to 16. FIG.

[起動処理(メイン)]
まず、メイン制御部41が行う起動時の処理である起動処理(メイン)について、図7に基づいて説明する。図7は、メイン制御部が行う起動処理(メイン)の制御内容を示すフローチャートである。なお、起動処理(メイン)は、遊技プログラムに含まれるメインルーチンである。
[Startup process (main)]
First, the start-up process (main), which is the start-up process performed by the main control unit 41, will be described with reference to FIG. FIG. 7 is a flow chart showing the control contents of the activation process (main) performed by the main control unit. The start processing (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 activated in a state in which the timer interrupt is disabled due to the occurrence of a reset, and performs various processes according to the programs stored in the ROM 41b. .

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

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

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

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

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

次に、内蔵レジスタ設定処理(Sa3)を行う。内蔵レジスタは、メインCPU41aにおける機能設定を行うためのレジスタである。内蔵レジスタ設定処理によって、制御開始にあたって設定が必要な複数の領域に設定値を設定する。 Next, built-in register setting processing (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 multiple 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 with the timer interrupt disabled in step Sa1. In the initial setting process, it is determined whether or not there is an abnormality in the RAM 41c. If there is an abnormality in the RAM 41c, all areas to be initialized (areas A to D) are initialized.

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

設定キースイッチ37がON状態でないと判定した場合は、RAM41cに異常があるか否かを判定する。RAM41cに異常がないと判定した場合には、外部出力信号を出力するための出力バッファをクリアする。また、RAM41cの所定領域に設定されており、メイン処理においてリールの回転エラーが検出された回数を計数するためのリールエラーカウンタをクリアする。その後、RAM41cの記憶内容に基づいてスタックポインタSPに電断時のアドレスを設定することで、スタックポインタを電断時の状態に復帰させ、ポート入力処理を3回連続で行う。 If it is determined that the setting key switch 37 is not in the ON state, it is determined whether or not there is an abnormality in the RAM 41c. When it is determined that there is no abnormality in the RAM 41c, the output buffer for outputting the external output signal is cleared. Also, a reel error counter, which is set in a predetermined area of the RAM 41c and counts the number of reel rotation errors detected in the main process, is cleared. After that, by setting the 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 restored 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の所定ビットに格納する。ポート入力バッファに格納された各種スイッチ類の入力データ、確定データ、エッジデータは、遊技プログラムおよび非遊技プログラムから参照することが可能である。 Port input processing includes input state data (input data indicating the current input state of various switches, input data indicating the current input state of the various switches input to the parallel input port 511, such as detection signals of various switches, and This is a process of updating the confirmed data indicating that the confirmed data is changed from the previous time). Port input buffers 0 to 2 for storing input state data of various switches are provided in a predetermined area of the game RAM area of the RAM 41c. It is stored in predetermined bits of a port input buffer predetermined for each type. In the port input process, the detection states (ON state or OFF state) of various switches connected to input ports 0 to 2 of the parallel input port 511 are stored as input data in predetermined bits of the port input buffer. In addition, the detected state (ON state or OFF state) of the port input processing of the previous time and this time is compared, and if the input data of this time and the previous time are in the same state, the detected state of the input data of this time is displayed. On the other hand, if the current input data and the previous input data are in different states, the previous determination data are maintained. Further, when the determined data changes from the OFF state to the ON state by comparing the current and previous determined data, ON edge data indicating that the determined data has changed from the OFF state to the ON state is output to the port input buffer 0. to 2, and when the defined data changes from the ON state to the OFF state, OFF edge data indicating that the defined 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 game programs and non-game programs.

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

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

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

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

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

また、本実施の形態においては、内蔵レジスタ領域は、第1領域~第7領域までの7つの領域を有する。メインCPU41aは、制御開始にあたって設定が必要な複数の領域に設定値を設定する。本実施の形態においては、設定が必要な複数の領域として、第2,3,4,6領域の各領域において設定値を設定する。 Further, in the present embodiment, the built-in register area has seven areas from the first area to the seventh area. The main CPU 41a sets set values in a plurality of areas that need to be set when starting control. In the present embodiment, setting values are 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命令により、当該アドレスに対応する領域に設定値を設定する。また、読み出したアドレス(基準アドレス)に差分値を加えることによって、当該アドレスよりも差分値先のアドレスに対応する領域に設定値を設定することができる。具体例は後述するが、前者よりも後者の方法で設定値を設定する方が、命令に必要な容量が小さくなるため、プログラムの容量を節減することができる。 A set value is set in the built-in register area by an LD instruction capable of setting 1-byte data or an LDW instruction capable of setting 2-byte data. At that time, first, the address corresponding to the area that needs to be set is read by the LD instruction. Then, the set value is set in the area corresponding to the address by the LD instruction or the LDW instruction. Also, by adding the difference value to the read address (reference address), the set value can be set in the area corresponding to the address after the address by the difference value. Although a specific example will be described later, the latter method of setting the setting value requires less capacity for the command than the former method, so that the capacity of the program can be reduced.

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

このように、第2,3,4,6領域のうちの最も小さいアドレス(FE01H)に対応する第2領域に基準値を設定することで、差分値を用いたLD命令により、命令に必要な容量が小さくなるため、効率よくデータを設定することができる。 In this way, by setting the reference value in the second area corresponding to the smallest address (FE01H) among the second, third, fourth, and sixth areas, the LD instruction using the difference value enables the Since the capacity is small, 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, using the LD instruction, data A (eg, 150) is stored in the area pointed to by the reference address stored in the predetermined register (that is, the first area).

そして、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 step Sb3, data is set in the third and fourth areas. The third area is an area in which 1-byte data specified by address FE02H can be set. The fourth area is an area in which 1-byte data specified by address FE03H can be set. That is, the third area is an area specified by an address obtained by adding a difference value of 1 to the reference address. Since both the third and fourth areas are 1-byte areas, by setting 2-byte data to the start address of the third area, both the third and fourth areas can be set. can be set. That is, when setting the setting value, 2-byte data can be set so that the setting value is set in each of the third area corresponding to FE02H and the fourth area corresponding to FE03H, which is the address next to 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, using an LDW instruction that can set 2-byte data, 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. is set, and data C (for example, 56) is set in the fourth area. The LDW instruction sets data B+data C×FFH (=12+56×FFH) to an address obtained by adding 1, which is the difference value, to the reference address stored in the predetermined register. As a result, 12 (data B) can be 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, a capacity of 3 bytes is required in order to perform the process of reading the address to the predetermined register by the LD instruction. In order to set data in the area indicated by the address set in the predetermined register by the LD instruction, a capacity of 2 bytes is required. That is, in order to set 1-byte data in a certain area, a capacity of 5 bytes (3 bytes+2 bytes) is normally required. Also, in order to set 1-byte data in 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 for each of the two areas by the LDW instruction using the difference value, a capacity of 4 bytes is required. In this case, the process of reading the address by the LD instruction as described above is unnecessary. That is, compared to the above method that does not use the difference value, it is possible to save 6 bytes (10 bytes - 4 bytes) of data capacity. By setting the data in the third and fourth areas based on the addresses calculated using the difference values in this way, it is possible to set the data in the third and fourth areas rather than directly specifying the addresses and setting the set values in the third and fourth areas. The capacity of the program can be saved. Also, data can be collectively set for a plurality of areas.

同様に、他の領域に対しても、1バイトデータを設定する場合にはLD命令を用いてデータ設定を行い、2バイトデータを設定する場合にはLDW命令を用いてデータ設定を行う。Sb4のステップにおいて、第6領域に対しても、基準アドレスに対して差分値を用いて算出したアドレスに基づきデータDを設定する。第6領域は、アドレスFE22Hで特定される1バイトデータを設定可能な領域である。基準アドレスとの差分値は21H(=FE22H-FE01H)であるため、LD命令を用いて、基準アドレスに対して差分値(21H)を用いて算出したアドレス(FE22H)に基づき第6領域にデータDを設定する。 Similarly, for other areas, the LD instruction is used to set 1-byte data, and the LDW instruction is used to set 2-byte data. In step Sb4, data D is also 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 in which 1-byte data specified by address FE22H can be set. Since the difference value from the reference address is 21H (=FE22H-FE01H), 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 to which the set values should be set in steps Sb1 to Sb4, the built-in register setting process is finished. This returns to the activation process (main). When the start-up process (main) is completed, the last process (main process) before power failure is performed. Game control is started by shifting to the main process. In this way, by starting the control of the game after setting the set values in all of the second, third, fourth, and sixth areas to which the set values should be set, the setting of the set values to be set is not completed. The game control does not start with

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

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

図9に示すように、メイン制御部41は、まず、割込禁止設定(Sc1)を行う。次に、設定されたRAM初期化領域をクリアする(Sc2)。設定されたRAM初期化領域とは、後述のSc36で設定される遊技終了時のRAM初期化領域(領域D)またはSc38で設定されるボーナス終了時のRAM初期化領域(領域C,D)である。これにより、一遊技が終了した場合には領域Dがクリアされ、一遊技が終了した場合であってさらにボーナスが終了した場合には、領域Dに加えて領域Cもクリアされることになる。RAM初期化領域をクリアした後は、一遊技が終了した旨を特定可能な遊技終了コマンドをサブ制御部91に対して送信する(Sc3)。 As shown in FIG. 9, the main control unit 41 first performs interrupt prohibition setting (Sc1). Next, the set RAM initialization area is cleared (Sc2). The set RAM initialization area is the RAM initialization area (area D) at the end of the game set at Sc36 or the RAM initialization area (areas C, D) at the end of the bonus set at Sc38. be. Thus, the area D is cleared when one game is over, and the area C is cleared in addition to the area D when the bonus is over when one game is over. 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, RT information output processing included in the non-game program is performed (Sc4). In the RT information output process, information on the game state of the slot machine 1 set in a predetermined area of the game RAM area is referred to, and information on the game state (for example, the state of RT) 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, multiple interrupt wait processing is performed to wait until the specified number of timer interrupts are performed. Here, when the specified number of times is 1, it is referred to as a one-time interrupt waiting process. For example, in the one-time-interrupt waiting process, the timer interrupt is set to be enabled, and the timer interrupt process (main) (hereinafter also referred to as "interrupt process") is performed once. When it is identified that the timer interrupt process (main) has been performed once, the one-time interrupt wait process ends. By performing the one-interrupt wait process, the process performed after the one-interrupt wait process is performed in a state in which the maximum time is secured until the next timer interrupt process (main) is performed. Therefore, it is possible to prevent a timer interrupt from being unintentionally performed during a series of processes performed after the one-interrupt wait process.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

そして、遊技終了時のRAM初期化領域(領域D)を設定する(Sc38)。ボーナスが終了した場合には、ボーナス終了時のRAM初期化領域(領域C,D)を設定し(Sc38)、Sc1に戻る。ボーナスが終了していない場合には、遊技終了時のRAM初期化領域(領域D)が設定された状態で、Sc1に戻る。また、先に説明したように、Sc36またはSc38で設定された領域は、Sc2においてクリアされる。 Then, the RAM initialization area (area D) at the end of the game is set (Sc38). When the bonus ends, the RAM initialization area (areas C and D) at the time of 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. Also, as described above, the area set in Sc36 or Sc38 is cleared in Sc2.

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

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

また、メイン制御部41は、非遊技プログラムに従って各種処理を行う場合には、上述のCALL命令などを用いて遊技プログラムから非遊技プログラムを呼び出すことで、当該非遊技プログラムに従って各種処理を行い、当該非遊技プログラムに応じた各処理が終了することで、呼出元の遊技プログラムに復帰するようになっている。 Further, 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-described CALL command or the like. Upon completion of each process according to the non-game program, the caller game program is returned to.

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

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

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

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

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

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

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

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

Sd12のステップにおいてエラーチェック処理にてエラー処理が実行されたと判定した場合は、Sd10のステップに戻り、Sd10~Sd12のステップの各処理を再び行う。その後、メダル払出信号の遷移やメダル投入信号の遷移に異常が検出されない状態で、Sd10~Sd12のステップの各処理が行われることで、エラー実行フラグが設定されていない状態で、Sd12のステップの処理が行われることとなる。 If it is determined in step Sd12 that 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. After that, each process of steps Sd10 to Sd12 is performed in a state where no abnormality is detected in the transition of the medal payout signal or the transition of the medal insertion signal, and in the state where the error execution flag is not set, the process of 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 has not been set, medal insertion signal processing is performed (Sd13). In the medal insertion signal processing, the state of medal insertion is determined based on the transition of the medal insertion signal. Then, when normal insertion of medals is detected, the bet amount is set and medals are accepted as credits, and the medal insertion signal processing is terminated. On the other hand, when an abnormal insertion of medals is detected, an error code (E5) is prepared and error processing is performed. After that, the error state is canceled and the error processing is terminated, thereby terminating the medal insertion signal processing.

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

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

また、操作入力受付処理では、スタートスイッチ7による操作が有効な状態で、スタートスイッチ7の操作が検出された場合には、スタートスイッチ7が操作された旨を示すスタートフラグを所定レジスタに設定した後、流路切替ソレノイド30をOFF状態としてメダルの流路をメダル払出口9側に切り替える処理を行う。また、設定キースイッチ37による操作が有効な状態で、設定キースイッチ37による操作が検出された場合には、設定値表示器24に設定値を表示させる設定値表示処理を行う。また、精算スイッチ10による操作が有効な状態で、精算スイッチ10による操作が検出された場合には、クレジットに記憶されている分のメダルを遊技者に返却する精算処理を行う。また、MAXBETスイッチ6による操作が有効な状態で、MAXBETスイッチ6による操作が検出された場合には、クレジットに基づいて可能な範囲で規定数までのメダル枚数を賭数に設定し、賭数に設定した分のメダル枚数をクレジットから減算する処理を行う。操作が検出されたスイッチ類に応じた処理を行った後、操作入力受付処理を終了させる。 In the operation input acceptance 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. After that, the channel switching solenoid 30 is turned off, and the process of switching the medal channel to the medal payout port 9 side is performed. Further, when the operation of the setting key switch 37 is detected while the operation of the setting key switch 37 is valid, the setting value display processing for displaying the setting value on the setting value display 24 is performed. Further, when the operation of the settlement switch 10 is detected while the operation of the settlement switch 10 is valid, the settlement processing of returning the medals stored in the credit to the player is performed. In addition, when the operation of the MAXBET switch 6 is detected while the operation of the MAXBET switch 6 is valid, the number of medals up to the prescribed number is set as the bet amount within the possible range based on the credits. A process of subtracting the set number of medals from the credit is performed. After performing a process corresponding to the switch or the like whose operation has been detected, the operation input acceptance 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 operated at the same time, the following processing is performed. Between the settlement switch 10 and the setting key switch 37, the setting key switch 37 has higher processing priority. Therefore, first, it is determined whether or not the setting key switch 37 is in the ON state, and if the setting key switch 37 is in the ON state, the setting change state is entered. If the setting key switch 37 is OFF, it is determined whether or not the settlement switch 10 is ON. If the settlement switch 10 is ON, settlement processing is performed.

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

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

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

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

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

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

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

取得したセンサエラーフラグがONに設定されている場合(Se2がYES)、Se3に進む。一方で、取得したセンサエラーフラグがOFFに設定されている場合(Se2がNO)、Se16に進む。 If the acquired sensor error flag is set to ON (YES at Se2), the process proceeds to Se3. On the other hand, if the acquired sensor error flag is set to OFF (NO at 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. Then, in step Se4, when the payout error flag is in the OFF state, the process proceeds to Se6. On the other hand, in step Se4, if the payout error flag is ON, an error code (E4) indicating that a medal payout error has been detected is set in a predetermined register, and the process proceeds to Se6. That is, when a medal payout error is detected, an error code (E4) is set in a predetermined register, and when a medal insertion error is detected, an error code (E5) is set in a predetermined register.

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

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

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

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

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

図12に示すように、エラー処理では、まず、エラー処理が実行される前に設定されたエラー番号(エラーコード)を格納する。たとえば、エラー処理が投入払出エラーチェック処理から呼び出された場合は、E4またはE5のエラーコードをRAM41cの所定領域にその他の処理でも参照可能なエラーフラグとして設定する。 As shown in FIG. 12, in error processing, first, an error number (error code) set before error processing is executed is stored. For example, when the error process is called from the input/disbursement error check process, the error code 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, error start command transmission processing is executed to transmit an error command that can specify an error code. In step Sf3, an error factor corresponding to the error code is acquired, and in step Sf4, error number display processing is performed to control the error code to be displayed on the game auxiliary display 12. FIG. After that, the error state is controlled until it is specified that the condition for canceling the error state according to the error code prepared in the predetermined register is met (Sf5).

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

エラー状態の解除条件が成立した場合(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 to perform a one-interrupt wait process. Then, the input buffers 1 and 2 are acquired (Sf7), and based on the acquired input buffers 1 and 2, it is determined whether or not the payout sensor, inserted medal sensor, and full tank sensor are normal (Sf8). If it is judged normal in Sf8, 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 steps Sf6 to Sf8 are repeated until it is determined that it is normal in Sf8.

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 reset/set state is waited until the reset/set switch 38 or reset switch 23 becomes the ON edge state (until the operation is performed) (NO in Sf10). When the switch 38 or the reset switch 23 is in the ON edge state (YES in Sf9), the process proceeds to Sf11.

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

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

図13に示すように、リール停止制御処理では、まず、停止有効LEDを全て消灯させるための設定を行う全リール停止LEDオフ処理を実行する(Sg1)。Sg2のステップでは、割込1回待ち処理を実行する。割込1回待ち処理では、タイマ割込処理(メイン)が1回行われるまで待機する。Sg3のステップでは、割込許可設定を行う。 As shown in FIG. 13, in the reel stop control process, first, an all reel stop LED OFF process for setting to turn off all of the effective stop LEDs is executed (Sg1). In step Sg2, the process of waiting for one interrupt is executed. In the one-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 payout/insert error check process is executed. As a result, when an insertion/payout error (medal insertion error or medal payment error) occurs (YES in Sg5), the process returns to step Sg2, and the processing of Sg2 to Sg5 is repeated. When the input/disbursement error is canceled, the process proceeds to step Sg6. In other words, in the state where the input/disbursement 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 insertion/payout error has occurred (NO in Sg5), the process proceeds to step Sg6. In step Sg6, if no reel rotation error has occurred (NO in Sg6), the process proceeds 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, the error code (E6) of the reel rotation error is set, and error processing is performed. (Sg9) is executed. In the error processing, the rotation of all the reels is stopped, and the game is put into a disabled error state and waits. After that, the error processing is terminated by canceling the error state by the reset operation. After the error processing is completed, the process returns to step Sg2, the processes from Sg2 to Sg9 are repeated, and if no reel rotation error occurs, the process proceeds to step Sg10. That is, in a state where a reel rotation error has occurred, it is not possible to proceed to steps after Sg10.

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

なお、Sg10のステップの前に、リールの停止制御中はストップスイッチを無効にするような処理を入れてもよい。たとえば、あるリールの停止制御が開始された場合には、リールの回転を停止するまでの最大停止遅延時間(190ms)待機させる処理を行うようにしてもよい。しかし、本実施の形態では、このような処理を入れていないため、後述するように、複数のストップスイッチをほぼ同時に操作した場合、1割込でもずれていればリール停止滑りコマ格納処理(Sg32)が実行可能となり、複数のリールをほぼ同時に停止させることができる。 Incidentally, before the step of Sg10, a process of disabling the stop switch during reel stop control may be inserted. For example, when the stop control of a certain reel is started, processing may be performed to wait for the maximum stop delay time (190 ms) until the rotation of the reel is stopped. However, in the present embodiment, such a process is not included. Therefore, as will be described later, when a plurality of stop switches are operated almost simultaneously, if there is a deviation even by one interruption, the reel stop sliding piece storage process (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 is set. Next, the effective stop LED state address that can specify the state of the effective stop LED is read (Sg13), and the rotation speed state data is acquired (Sg14). The rotation speed state data is information that can specify whether or not each reel motor under rotation control is rotating at a constant speed. 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 in a constant speed state, and whether all the reels under rotation control are rotating at a constant speed. It is determined whether or not (Sg15).

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

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

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

Sg22のステップにおいて、有効なストップスイッチの操作がなかったと判定した場合には、停止有効LED状態データを出力バッファ2に格納し(Sg23)、出力ポート2出力処理(Sg24)を行う。そして、Sg2のステップに戻り、Sg2~Sg24のステップを繰り返し実行して、有効なストップスイッチの操作が検出されるまで待機する。その後、Sg22のステップにおいて有効なストップスイッチの操作が検出された場合(Sg22でYES)には、Sg25のステップに進む。 If it is determined in step Sg22 that the effective stop switch has not been operated, the stop effective LED state data is stored in the output buffer 2 (Sg23), and the output port 2 output processing (Sg24) is performed. Then, the process returns to step Sg2, repeats steps Sg2 to Sg24, and waits until a valid stop switch operation is detected. Thereafter, if a valid stop switch operation 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) showing the control contents of the reel stop control process performed by the main control section. As shown in FIG. 14, in step Sg25, reels to be stopped are set. At that time, it is determined whether or not a valid stop switch operation is detected in the order of the left stop switch, the middle stop switch, and the right stop switch, and the reel corresponding to the first determined stop switch is to be stopped. Become. That is, when there are a plurality of reels to be stopped, the reels are preferentially selected in the order of the left reel, the middle reel, and the right reel. Next, the interrupt permission setting is performed (Sg26), the output buffer 2 is cleared, and the output port 2 output process (Sg27) is executed.

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

図柄ステップ数は、リールモータの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 per symbol. When 16 steps are assigned, the lower end of the pattern 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 through a predetermined judging position on the reel. In the case of the 16 step pattern, 0 to 15 are counted. In the present embodiment, the number of symbol steps is obtained 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, the number of symbol steps other than 11 is determined to be out of the determination range. Note that the determination range may be set to 0 to 11 steps, or the determination range may be different between the 16-step pattern and the 17-step pattern.

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

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

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

次に、入賞フラグにマスク処理(Sg36)を行った上で、入賞予想処理(Sg37)を実行する。入賞予想処理は、図柄組合せが導出される前に、入賞判定処理の一部に相当する処理を実行するものである。次に、リールが停止することを特定可能なリール停止コマンド送信処理(Sg38)を実行する。 Next, after the winning flag is masked (Sg36), the winning prediction process (Sg37) is executed. The winning prediction process is to execute a process corresponding to part of the winning determination process before the symbol combination is derived. Next, a reel stop command transmission process (Sg38) that can specify that the reels are 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), proceed 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, return to Sg2 until reel stop sliding frame number setting processing is executed for all reels ( until the final stop), the processing of Sg2 to Sg39 is repeated.

なお、割込禁止設定が行われている期間内に、本来の割込処理のタイミングが含まれていた場合には、次に、割込許可設定が行われたタイミングで、割込処理が実行される。たとえば、リール停止滑りコマ数設定処理が実行された後に、割込許可設定が行われたときに、当該設定タイミングにおいて、リール停止滑りコマ数設定処理で設定された滑りコマ数および停止制御フラグに基づいて、該当するリールを減速させて停止させるための制動制御を開始する。 In addition, if the timing of the original interrupt processing is included in the period when the interrupt prohibition setting is performed, the interrupt processing will be executed at the next timing when the interrupt permission setting is performed. be done. For example, after the reel stop sliding frame number setting process is executed, when the interrupt permission setting is performed, at the setting timing, the sliding frame number and the stop control flag set in the reel stop sliding frame number setting process 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 acquired (Sg41). Based on the acquired reel motor state data, it is determined whether or not all the reel motors are in the OFF state (Sg42). If all the reel motors are not in the OFF state (NO in Sg42), the process waits until all the reel motors are in the OFF state. If 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 motor φ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/disbursement error check process is executed. In the step of Sg44, the input buffer 0 is obtained, and it is determined whether or not the stop switch is in the depressed state (that is, the ON state continues) (Sg45). If the stop switch is pressed down (YES in Sg45), the processing of Sg43 to Sg45 is repeated until the stop switch is released, and if the stop switch is released (NO in Sg45). ends the reel stop control process.

[遊技終了時の設定処理]
本実施例のメイン制御部41が行う遊技終了時の設定処理の制御内容について、図15に基づいて説明する。図15は、メイン制御部が行う遊技終了時の設定処理の制御内容を示すフローチャートである。なお、遊技終了時の設定処理は、遊技プログラムに含まれており、遊技プログラムに含まれるメイン処理において呼び出されるサブルーチンである。
[Setting processing at the end of the game]
The control contents 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. 15 . FIG. 15 is a flow chart showing the control details of the setting process performed by the main control unit when the game ends. The setting process at the end of the game is included in the game program, and is a subroutine called in the main process included in the game program.

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

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

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

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

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

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

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

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

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

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

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

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

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

Si15のステップにおいてセンサエラーフラグを更新した後は、メイン制御部41の内部に設けられたウォッチドッグタイマ(WDT)のレジスタをクリアする(Si16)。その後、RAM41cの所定領域に設けられ、タイマ割込に含まれる処理を分岐させるための分岐用カウンタの値を所定のレジスタに読み込み、所定値(本実施例では、1)を加算して更新し、更新された値を、RAM41cの所定領域の分岐用カウンタの値として設定する(Si17)。この分岐用カウンタを更新する処理では、当該分岐用カウンタが0~2である場合は1加算し、分岐用カウンタが3である場合は初期化して0に戻すことで、0~3の範囲で更新する。すなわち分岐用カウンタの値は、タイマ割込処理(メイン)が実行される毎に、0→1→2→3→0・・・の順番でループする。そして、分岐用カウンタの値は、タイマ割込処理(メイン)において実行される各処理において参照され、例えば、分岐用カウンタが所定値となったときに所定の制御を実行するなど、各処理内の制御が分岐されることとなる。 After updating the sensor error flag in step Si15, the register of the watchdog timer (WDT) provided inside the main control unit 41 is cleared (Si16). After that, the value of the 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 updated by adding a predetermined value (1 in this embodiment). , the updated value is set as the value of the branch counter in a predetermined area of the RAM 41c (Si17). In the process of updating the branch counter, when the branch counter is 0 to 2, 1 is added, and when the branch counter is 3, it is initialized and reset to 0. Update. That is, the value of the branch counter loops in the order of 0→1→2→3→0 . . . each time the timer interrupt process (main) is executed. The value of the branch counter is referenced in each process executed in the timer interrupt process (main). control is 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 step Si17, it is determined whether or not the branch counter is 4 (Si18). , a counter update process (Sj19) for updating various predetermined timers set in a predetermined area of the RAM 41c, indicators such as various LEDs connected to the output port (credit indicator 11, game auxiliary indicators 12, 1 ~ 3 BET LEDs 14-16, input request LED 17, start valid LED 18, waiting LED 19, replaying LED 20, etc.) is set and transmitted for dynamically lighting the lighting state according to the setting by each process such as the main process. LED dynamic display processing (Si20) for controlling is performed.

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

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

次に、リールモータ出力データを作成する(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 the reel motor signal and flow path switching solenoid signal to the output ports 0 and 1 . Based on the reel motor output data, output port 0, 1 output processing (Si29) for outputting a reel motor signal and 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 registers and back registers are exchanged (Si30), interrupt permission is set (Si31), the timer interrupt processing (main) is ended, and the timer interrupt processing (main) is started. return to the main processing when

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

まず、左ストップスイッチの操作されたときの処理について説明する。図17は、リール停止制御処理における停止設定を説明するためのタイミングチャート(その1)である。図17の説明においては、全てのリールが定速回転をしており、いずれのストップスイッチも操作されていないものとする。なお、説明の都合上、左ストップスイッチおよび中ストップスイッチの状態のみを図示する。 First, the processing when the left stop switch is operated will be described. FIG. 17 is a timing chart (No. 1) for explaining the stop setting in the reel stop control process. In the description of FIG. 17, it is assumed that all 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)). As a result, when the stop switch (left, middle, right stop switch) is operated, the stop switch signal (left, middle, right stop switch signal) is input to the input port 0, and the port input buffer 0 receives these signals. A 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 process, 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 was in the OFF state.

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

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

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

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

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

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

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

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

そして、t9において割込処理が実行されたとする。t10における入力判定において、左ストップスイッチは押下状態(ON状態を継続)であるため、左ストップスイッチのONエッジは検出されない。また、中,右ストップスイッチも操作されていないため、中,右ストップスイッチのONエッジも検出されない。 Assume 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 in the depressed state (maintains the ON state). Also, since the middle and right stop switches have not been operated, the ON edges of the middle and right stop switches are not detected either.

そして、割込処理が終了して、t11においてメイン処理に戻った後に再開されるリール停止制御処理においては、ストップスイッチ信号のONエッジが検出されなかったため(Sg22でNO)は、Sg2に戻り、割込1回待ち処理を行う。そして、t12において割込処理が実行される。以降、ストップスイッチ信号のONエッジが検出されるまで、処理を繰り返し、ストップスイッチ信号のONエッジが検出されるのを待つ。図17の例では、新たなストップスイッチの操作が行われないため、t12~t15の処理、および、t15~t18の処理は、t9~t12の処理と同じである。 Then, in the reel stop control process which is restarted after the interrupt process is completed and the main process is returned to at t11, since the ON edge of the stop switch signal was not detected (NO in Sg22), the process returns to Sg2, Wait for one interrupt. Then, at t12, interrupt processing is executed. Thereafter, the process is repeated until the ON edge of the stop switch signal is detected, and the detection of the ON edge of the stop switch signal is waited. 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, the processing when the left stop switch and the middle stop switch are operated with a one-interruption lag will be described. FIG. 18 is a timing chart (Part 2) for explaining the stop setting in the reel stop control process. Also in the explanation of FIG. 18, 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 shown, and the explanation 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 piece storing process (left) is executed in the reel stop control process. Interrupts are disabled at the same time. After the reel stop sliding piece storing process (left) is completed, the interrupt process can be executed at t9.

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

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

リール回転エラーが発生した場合、エラー状態が解除されない限りは、エラー処理を終了することができない。このため、新たな割込処理に基づいてリール停止滑りコマ格納処理(中)を実行することができない。リール回転エラーが発生していない(リールが正常に回転している)と判定した場合に、新たな割込処理に基づいてリール停止滑りコマ格納処理(中)を実行することが可能である。 When a reel rotation error occurs, error processing cannot be terminated unless the error state is canceled. Therefore, the reel stop sliding piece storing process (middle) 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 reel stop sliding piece storage processing (middle) based on new interrupt processing.

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

以上説明したように、リール停止滑りコマ格納処理(左)を開始した後、リール停止滑りコマ格納処理(左)が完了するまで新たな割込処理の実行を禁止するため、新たな割込処理の実行により、中ストップスイッチの操作に基づくリール停止滑りコマ格納処理(中)が実行されることがない。また、仮に、割込処理において、左ストップスイッチ信号および中ストップスイッチ信号のONエッジがともに検出された場合であっても、左ストップスイッチに関する処理を行い、中ストップスイッチに関する処理は行わない(Sg25で停止対象とならない)ため、リール停止滑りコマ格納処理(左)とリール停止滑りコマ格納処理(中)とが同時に実行されることはない。このようにすることで、左ストップスイッチの操作に基づくリール停止滑りコマ格納処理(左)が完了する前に中ストップスイッチの操作に基づくリール停止滑りコマ格納処理(中)が実行されることを防止することができる。 As described above, after the reel stop sliding piece storage processing (left) is started, new interrupt processing is prohibited until the reel stop sliding piece storage processing (left) is completed. , the reel stop sliding piece storing process (middle) based on the operation of the middle stop switch is not executed. Further, even if the ON edges of both the left stop switch signal and the middle stop switch signal are detected in the interrupt process, the left stop switch is processed and the middle stop switch is not processed (Sg25). ), the reel stop sliding piece storage processing (left) and the reel stop sliding piece storage processing (middle) are not executed at the same time. By doing so, the reel stop sliding piece storage processing (middle) based on the operation of the middle stop switch is executed before the reel stop sliding piece storage processing (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, and if a reel rotation error has occurred, the reel stop sliding piece is stored based on the new interrupt processing. If it is determined that the reel rotation error has not occurred without executing the process (middle), the reel stop sliding piece storing process (middle) is executed based on the new interrupt process. By doing so, it is possible to ensure that the reel stop sliding piece storing process (middle) based on the operation of the middle stop switch is executed on condition that the rotation of the reel is normal. Thus, when the reel stop sliding piece storing process for setting the reel stop position is continuously executed, the reel stop sliding piece storing process can be preferably executed.

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

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

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

リール停止コマンド送信処理により、左リールの停止位置を示すリール停止位置コマンドを出力するための設定が完了するまで、割込処理の実行を禁止している(Sg28において割込禁止設定がされている)。このようにすることで、リール停止位置コマンドの送信が完了する前に新たなストップスイッチの操作に基づく処理が行われない。 Execution of the interrupt process is prohibited until the setting for outputting the reel stop position command indicating the stop position of the left reel is completed by the reel stop command transmission process (interrupt prohibition 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)がそれぞれ実行される。 Further, when executing the reel stop command transmission process, a transmission process for transmitting a plurality of commands is executed. Specifically, a command transmission process (Sg33) when accepting a reel stop for transmitting a command when accepting a reel stop, a sliding frame number command transmission process (Sg34) for transmitting a sliding frame number command, and a reel stop command transmission A reel stop command transmission process (Sg38) is executed for each.

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

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

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

また、たとえば、中リールの停止が第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, after starting the reel stop sliding piece storing process (middle), the reel Execution of new interrupt processing is prohibited (interrupt prohibition is set in Sg28) until the stop sliding frame storage processing (middle) is completed (Sg32). In this way, since other processes are not executed while the reel stop sliding piece storing process is being executed, it is possible to quickly stop the reels.

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

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

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

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

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

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

この場合、次の割込処理(t19)において、左ストップスイッチおよび中ストップスイッチ信号は、ともにONエッジが検出される(t20)。この割込処理後のメイン処理(t21)においては、左リールは既にリール停止滑りコマ格納処理(左)を実行しているため、有効なストップスイッチ操作状態として抽出されない。一方で、中リールはリール停止滑りコマ格納処理(中)を実行していないため、有効なストップスイッチ操作状態として抽出される。 In this case, in the next interrupt processing (t19), the ON edges of both the left stop switch signal and the middle stop switch signal are detected (t20). In the main process (t21) after this interrupt process, since the reel stop sliding piece storage process (left) has already been executed for the left reel, it 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 piece storage process (middle), it is extracted as a valid stop switch operation state.

このため、ステップSg22において、中ストップスイッチの操作が有効な操作として判定される(Sg22でNO)ことになる。これにより、リール停止滑りコマ格納処理(中)が実行される。 Therefore, in step Sg22, it is determined that the operation of the middle stop switch is valid (NO in Sg22). As a result, the reel stop sliding piece 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 processing after the load processing, the reel stop sliding piece storage processing (left) is executed, but the reel stop sliding piece storage processing (middle) is not executed. In this state, assume that the ON edge of the left stop switch signal and the ON edge of the left stop switch signal are detected in subsequent interrupt processing. In this case, since the reel stop sliding piece storage processing (left) has already been executed, in the main processing after the interrupt processing, the reel stop sliding piece storage processing (middle) is executed, while the reel stop sliding piece storage processing (left) is not executed. Thus, when the left stop switch and the middle stop switch are operated at the same time, the rotating reel is stopped, so the operability of the stop switches is not impaired.

次に、上記のように左リールおよび中リールがともに回転している例とは異なり、左リールが停止しかつ中リールが回転している例について説明する。この場合において、t4のように左ストップスイッチおよび中ストップスイッチの同時押しが行われたとする。 Next, an example in which the left reel is stopped and the middle reel is rotating will be described, unlike the example in which both the left reel and the middle reel are rotating as described above. In this case, assume that the left stop switch and the middle stop switch are simultaneously pressed 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, since the left reel is stopped, it is not extracted as a valid stop switch operation state. On the other hand, since the middle reel is rotating, it is extracted as a valid stop switch operating state. As a result, the reel stop sliding piece 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, assume that the left stop switch and the middle stop switch are simultaneously pressed 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, since the middle reel is stopped, it is not extracted as a valid stop switch operation state. On the other hand, since the left reel is rotating, it is extracted as a valid stop switch operating state. As a result, the reel stop sliding piece storing process (left) is executed.

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

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

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

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

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

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

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

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

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

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

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

具体的には、リールモータ状態データは、第1~第3リールモータφ0~φ3信号および流路切替ソレノイド信号の出力状態に対応する2バイトデータ(16ビットデータ)である。これらのいずれかの信号が出力されている場合は、対応する各ビットが1になる。逆に言えば、いずれの信号も出力されていない場合には、全てのビットが0になるため、リールモータ状態データは0になる。つまり、全てのリールモータがOFF状態であるときには、全てのリールモータ信号に対応するビットが0になるとともに、流路切替ソレノイド信号に対応するビットも0となり、結果として、リールモータ状態データは0になる。 Specifically, the reel motor state data is 2-byte data (16-bit data) corresponding to the output states of the first to third reel motor φ0 to φ3 signals and flow path switching solenoid signals. When any of these signals are output, each corresponding bit becomes 1. Conversely, when none of the signals are output, all the bits are 0, so the reel motor state data is 0. That is, when all the reel motors are in the OFF state, all the bits corresponding to the reel motor signals become 0, and the bits corresponding to the flow path switching solenoid signals 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), and when the reel motor state data is not 0, all reel motors are turned off. A process of not determining that the reel motor is in the OFF state (NO in Sg42) is performed. Thus, it is determined whether or not all the reels have stopped based on determining whether or not signals are being output from the output ports 0 and 1. FIG.

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

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

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

たとえば、リプレイ入賞が発生して払出信号が出力されている間、次の遊技の開始操作が有効化されないようにした場合、遊技者は次の遊技開始まで250ms待たされることになる。この間、開始操作を行ったとしても遊技が開始されないため、遊技者は不快な思いをすることがある。このため、本実施の形態においては、リプレイ入賞が発生した場合、リプレイ入賞に基づく払出信号の出力が完了したか否かに関わらず、リプレイ入賞が発生した遊技の次の遊技において開始操作を有効化するようにした。以下、図20~図22を用いて詳細に説明する。 For example, if the next game start operation is not validated while a payout signal is being output after a replay win 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 does not start, and the player may feel uncomfortable. Therefore, in the present embodiment, when a replay win occurs, regardless of whether or not the output of the payout signal based on the replay win has been completed, the start operation is valid in the game following the game in which the replay win occurred. I tried to make it A detailed description will be given below with reference to FIGS. 20 to 22. FIG.

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

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

本実施の形態においては、BET数は「3」であるので、リプレイ用カウンタおよび払出信号用カウンタには、「3」が格納される。リプレイ用カウンタは、遊技開始待ち処理においてリプレイ入賞の有無の判定などのために用いられるカウンタである。このため、遊技開始待ち処理において、あらためてBET数を取得してリプレイ用カウンタを設定するようにしてもよい。しかし、上記のように、遊技終了時の設定処理において、リプレイ用カウンタおよび払出信号用カウンタを同時に設定すれば、処理負担を軽減させることができ、効率よくメダル数の設定を行うことができる。 In the present embodiment, the number of bets is "3", so "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, by simultaneously setting the replay counter and the payout signal counter in the setting process at the end of the game as described above, the processing load can be reduced, and the number of medals can be set efficiently.

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

具体的には、割込処理において、投入払出信号送信処理(Si21)が実行される。そして、投入払出信号送信処理において、払出信号生成処理(Sj3)が実行される。払出信号生成処理において、払出信号用カウンタに基づき、払出信号データが作成される。そして、出力ポート3出力処理(Si23)において、払出信号データに基づき払出信号の出力が開始される。 Specifically, in the interrupt process, an input/payout signal transmission process (Si21) is executed. Then, in the input/payout signal transmission process, the payout signal generation process (Sj3) is executed. In the payout signal generation process, 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 interruption process, the game start waiting process (Sc6) is executed. In the game start waiting process, a replay counter is acquired (Sd5). As described above, when a replay win occurs in the previous game and "3" is stored in the replay counter, "3" is stored in the replay counter. As a result, in step Sd7, it is determined that the replay counter value>0 (YES in Sd7), and medal insertion execution processing (Sd8) is executed. In the medal insertion execution process, the number of bets is set to "3" based on the value of the replay counter.

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

上記の遊技開始待ち処理において、BET数に「3」が格納された(Sd8)後に、割込処理が実行されると、投入枚数が「3」であることを特定可能な投入信号が出力可能となる。ただし、払出信号の出力中には投入信号は出力することができない。その理由は、次のような処理が実行されているからである。 In the game start waiting process described above, when the interrupt process is executed after "3" is stored in the number of bets (Sd8), an insertion signal that can specify that the number of insertions is "3" can be output. becomes. However, the insertion 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 process is executed, the input/payout signal transmission process (Si21) is executed. In the input payout signal transmission process, when the payout signal is being transmitted (when the payout pulse is in operation (Sj1 is YES)), 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 generating process (Sj2) is executed. When the input signal generation process (Sj2) is executed, the input signal can be output in the output port 3 output process (Si23). In this way, the input signal cannot be output while the payout signal is being output, and the input signal can be output when the payout signal is not being output.

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

また、リプレイ用カウンタに基づき設定されるBET数は、本実施の形態においては常に「3」である。このため、たとえば、リプレイ用カウンタは、BETされる場合にはONを設定し、BETされない場合にはOFFを設定するようなフラグであってもよい。しかし、本実施の形態においては、リプレイ用カウンタは、0~255(00H~FFH)を設定可能な1バイトデータとして設定される。このようにすることによって、たとえば、スロットマシンのソフトウェアの仕様が変更され、リプレイ入賞によって設定されるBET数が「2」やそれ以外の数値となった場合であっても、仕様変更への対応が容易になる。 Also, the number of bets set based on the replay counter is always "3" in the present embodiment. Therefore, for example, the replay counter may be a flag that sets ON when a BET is placed and OFF when a BET is not placed. However, in this embodiment, the replay counter is set as 1-byte data that can be set from 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 winning a replay becomes "2" or another 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 areas AD. Of these areas, areas C and D (areas to be initialized at the end of the bonus) are initialized at the end of the bonus (Sc38, Sc2). Also, the area D (area to be initialized at the end of the game) is initialized each time one game is completed (Sc36, Sc2).

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

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

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

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

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

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

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

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

このように、開始操作がされたことに基づき投入信号を出力し、払出信号の出力が完了する前に開始操作がされた場合、払出信号の出力が完了した後(t3)に投入信号の出力を開始する。そして、t3から250ms経過したt4において、投入信号の出力が完了する。このように、投入信号の出力を遅らせることで、投入信号および払出信号の出力タイミングが重ならないので、外部機器において受信した信号を確認することで、メインCPU41aが実行する処理の処理順序を特定しやすくなる。 In this way, 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 input signal is output after the output of the payout signal is completed (t3). to start. At t4, 250 ms after t3, the output of the input signal is completed. By delaying the output of the input signal in this manner, the output timing of the input signal and the output signal of the payout signal do not overlap. easier.

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

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

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

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

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

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

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

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

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

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

本実施の形態においては、このような安全性を担保することで仕様変更時におけるプログラムの保守性を高めるために、呼出先プログラムにおいて割込1回待ち処理を行うとともに、呼出元プログラムにおいても割込禁止設定を行うようにしている。以下、詳細について、図23を用いて説明する。 In this embodiment, in order to improve the maintainability of the program when the specifications are changed by ensuring such safety, the callee program waits for one interrupt, and the caller program also performs an interrupt wait process. I'm trying to set up a prohibition on loading. Details will be described below with reference to FIG. 23 .

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

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

このように、エラー処理において、エラー処理を終了する前にエラー解除コマンドを送信し、当該コマンドの送信が完了するように、RET命令により投入払出エラーチェック処理に復帰する前に割込1回待ち処理を実行している。これにより、エラー解除コマンドが確実に送信された後に次の処理を実行することができる。 In this way, in the error processing, the error clearing command is transmitted before the error processing ends, and the RET command is used to complete the transmission of the command. processing is running. As a result, the next process can be executed after the error cancellation command has been reliably transmitted.

投入払出エラーチェック処理に戻ると、割込禁止設定(Se10)が行われる。割込禁止設定がされた状態で、センサエラーフラグの更新処理(Se11~Se13)が行わる。センサエラーフラグの更新処理が終了すると、割込許可設定(Se14)が行われる。 When returning to the insertion/disbursement error check process, interruption prohibition setting (Se10) is performed. The sensor error flag updating process (Se11 to Se13) is performed in a state in which the interrupt is disabled. 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 acquired. Since the sensor error flag is data updated in interrupt processing, the value of the sensor error flag may fluctuate when an unintended interrupt occurs. The reason why the interrupt prohibition setting is performed 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)が実行されることになる。割込処理の実行からセンサエラーフラグの更新処理の実行までの時間は、割込処理の実行から次の割込処理の実行までの時間よりも短い。このため、センサエラーフラグの更新処理中に割込が発生することはない。 In addition, the one-interrupt waiting process (Sf14) is executed in the process immediately before the interrupt prohibition setting (Se10). Since the interrupt processing is executed by the one-time interrupt waiting processing, immediately after the interrupt processing is executed, the interrupt prohibition setting (Se10) and the sensor error flag update processing (Se11 to Se13) are executed. It will be. The time from the execution of the interrupt process to the execution of the sensor error flag update process is shorter than the time from the execution of the interrupt process to the execution of the next interrupt process. Therefore, no interrupt occurs during the process of updating the sensor error flag.

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

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

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

[出力データの設定]
次に、メイン側設定処理と割込側設定処理とで行われる出力データの設定処理の違いについて、図24に基づいて説明する。図24は、出力データの設定について説明するためのフローチャートである。
[Output data settings]
Next, the difference in the output data setting process between the main side setting process and the interrupt side setting process will be described with reference to FIG. FIG. 24 is a flowchart for explaining 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, this corresponds to the process of setting output data performed in the reel stop control process (Sc19) of the main process. On the other hand, the interrupt side setting process is a process executed in the timer interrupt process (main), and is a process of setting output data. For example, this corresponds to the process of setting output data performed in the security signal transmission process (Si22) of the timer interrupt process (main).

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

以下、メイン側設定処理では、LEDデータAの設定処理およびLEDデータBの設定処理を行う。また、割込側設定処理では、LEDデータCの設定処理およびLEDデータDの設定処理を実行する。なお、本実施の形態では、データをOFF設定することを「クリア」とも称し、ON設定することを単に「設定」とも称する。 Hereinafter, in the main side setting process, the setting process of the LED data A and the setting process of the LED data B are performed. In addition, in the interrupt side setting process, the LED data C setting process and the LED data D setting process are executed. In the present embodiment, setting data to OFF is also referred to as "clear", and setting data to ON is simply referred to 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, B data is data updated by interrupt processing. Therefore, during the execution of the main-side setting process, there is a possibility that unintended lighting of the LED may occur based on temporarily set data. Further, if the data to be updated is signal data, there is a risk that an unintended signal may be output based on temporarily set data. By setting the interrupt prohibition in this way, it is possible to prevent the unintended turning on or off of the LED and the output of the 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). LED data A and LED data B are data corresponding to each bit in 1-byte LED data. For example, the LED data A is ON when the first bit of the LED data is 1, the LED data A is OFF when the first bit of the LED data is 0, and the second bit of the LED data is 1. LED data B is turned ON at this time, and LED data B is turned OFF when the second bit of the LED data is 0. Therefore, by setting the LED data to 0, the LED data A and the LED data B are collectively set to OFF, which facilitates the processing.

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

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

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

このように、メイン側設定処理は、出力データ(LEDデータA,B)の設定をまとめてOFF設定した後、出力条件(LEDデータA,Bの有効化条件)が成立しているときに出力データをON設定する処理である。そして、メイン側設定処理により設定されたLEDデータA,LEDデータBに基づきLEDA,LEDBを点灯または消灯させる。このように、メイン側設定処理においては、まとめて設定を行うことで出力データのOFF設定が容易になる。 In this way, in the main-side setting process, after setting the output data (LED data A and B) collectively to the OFF setting, when the output condition (validation condition of the LED data A and B) is met, the output data is output. This is a process for 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. In this way, in the main-side setting process, the output data can be easily set to OFF by collectively making settings.

なお、本実施の形態においては、LEDデータA,Bを出力バッファAに設定し、出力バッファAに基づき出力ポート出力処理によりLEDA,Bを点灯または消灯させるようにしたが、これに限らず、LEDデータA,Bを出力バッファAに設定することなく、LEDデータA,Bに基づき出力ポート出力処理によりLEDA,Bを点灯または消灯させるようにしてもよい。 In this 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 output port output processing 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 setting process, signal data C and signal data D are collectively set to ON (Sn1). Signal data C and signal data D are data corresponding to each bit in 1-byte signal data. For example, the signal data C is ON when the first bit of the signal data is 1, the signal data C is OFF when the first bit of the signal data is 0, and the second bit is 1. When the signal data D is ON, the signal data D is OFF when the second bit of the signal data is 0. Therefore, by setting the signal data to FFH, the signal data A and the LED data B are collectively set to ON, which facilitates processing.

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

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

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

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

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

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

なお、本実施の形態においては、信号データC,Dを出力バッファBに設定し、出力バッファBに基づき出力ポート出力処理により信号C,信号Dを出力させるようにしたが、これに限らず、信号データC,Dを出力バッファBに設定することなく、信号データC,Dに基づき出力ポート出力処理により信号C,信号Dを出力させるようにしてもよい。 In this embodiment, the signal data C and D are set in the output buffer B, and the signal C and the signal D are output by output port output processing 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 signals C and D may be output by output port output processing based on the signal data C and D. FIG.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

たとえば、本実施の形態においては、図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 predetermined interrupt processing when both the left reel and the middle reel are rotating, a predetermined In the main processing after the interrupt processing, reel stop sliding frame storage processing (left) is executed, and in the interrupt processing after the predetermined interrupt processing, when the ON edge of the middle stop switch signal is detected, In the main processing after the interrupt processing, reel stop sliding piece storing 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 in error even in one interrupt process, the left reel and the middle reel can be stopped, so the reels can be stopped quickly. can be done.

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

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

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

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

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

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

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

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

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

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

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

(2-2) 前記処理手段は、
前記開始操作手段が操作されたことに基づきイン信号(たとえば、投入信号)を出力し(たとえば、図22に示すように、開始操作がされたことに基づき投入信号を出力する)、
前記アウト信号の出力が完了する前に前記開始操作手段が操作された場合、当該アウト信号の出力が完了した後に前記イン信号の出力を開始する(たとえば、図22に示すように、払出信号の出力が完了する前に開始操作がされた場合、払出信号の出力が完了した後に投入信号の出力を開始する)。
(2-2) The processing means
outputting an IN signal (for example, a closing signal) based on the operation of the start operation means (for example, outputting a closing signal based on the start operation, as shown in FIG. 22);
If the start operation means is operated before the output of the OUT signal is completed, the output of the IN signal is started after the output of the OUT signal is completed (for example, as shown in FIG. 22, the output of the payout signal is If the start operation is performed before the output is completed, the output of the insertion 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 insertion 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 payout signal is output. is completed, the input signal is started to be output. By delaying the output of the input signal in this manner, the output timing of the input signal and the output signal of the payout signal do not overlap. easier.

(2-3) 前記処理手段は、
前記イン信号を出力する際には、前記アウト信号の出力状態を確認し、当該アウト信号が出力されていない場合に当該イン信号を出力し(たとえば、図22に示すように、投入信号を出力する際には、払出信号の出力状態を確認し、払出信号が出力されていない場合に投入信号を出力する)、
前記アウト信号を出力する際には、前記イン信号の出力状態を確認することなく当該アウト信号を出力する(たとえば、図22に示すように、払出信号を出力する際には、投入信号の出力状態を確認することなく払出信号を出力する)。
(2-3) The processing means
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, an input signal is output as shown in FIG. 22). When doing so, the output state of the payout signal is checked, and if the payout signal is not output, the input signal is output),
When outputting the out signal, the out signal is output without checking the output state of the in signal (for example, as shown in FIG. 22, when outputting the payout signal, the input signal is output output a payout signal 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 payout signal is checked, and if the payout signal is not output, the input signal is output and the payout When outputting the signal, the 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 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
A first initialization process (eg, a process of clearing the area D of the game RAM at the end of the game (Sa2 ))When,
A second initialization process for initializing the storage area in the storage means when control to an advantageous state (for example, bonus state) advantageous to the player is completed (for example, when the bonus is completed, areas C and D of the game RAM are initialized). (Sa2)) to clear the
The output data of the out signal is set in a storage area (for example, area A of the game RAM area) in the storage means that is not initialized by either the first initialization process or the second initialization process ( For example, as shown in FIG. 21(B), a game RAM not initialized by either the process of clearing the area D of the game RAM at the end of the game or the process of clearing the areas C and D of the game RAM at the end of the bonus. The output data of the payout signal is set in the area A of the RAM).

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

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

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

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

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

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

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

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

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

たとえば、本実施の形態においては、図15に示すように、制御中の遊技状態がいずれであるかに関わらず、リプレイ入賞が発生しているか否かを一遊技ごとに判定し、リプレイ入賞が発生しているときにはリプレイ中LEDを点灯させ、リプレイが発生していないときにはリプレイ中LEDを消灯させる。このようにすることで、遊技ごとの状況をふまえてリプレイ入賞の発生状況を出力することができる。 For example, in the present embodiment, as shown in FIG. 15, regardless of the game state under control, it is determined for each game whether or not replay winning has occurred. When replay occurs, the replay LED is lit, and when replay does not occur, the replay LED is extinguished. By doing so, it is possible to output the occurrence status of replay winnings 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, input/payout error check process) and a call instruction (for example, CALL instruction) in the first process, and is called by a return instruction (for example, RET instruction). and a second process (for example, error handling) that returns to the first process,
The second process includes an interrupt wait process (for example, a one-time interrupt wait process) that waits until an interrupt process is executed and proceeds to the next process on condition that the interrupt process is executed. ,
The processing means prohibits the execution of an interrupt process when executing a predetermined process after returning from the second process in the first process (for example, as shown in FIG. 23, an input/payout error check In the processing, after returning from the error processing, the execution of the interrupt processing is prohibited when executing the processing for acquiring the sensor error flag).

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

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

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

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

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

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

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

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

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

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

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

(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
In the output process, a plurality of signals (for example, signal A and signal B) are output based on the output data set by the main-side setting process (for example, as shown in FIG. LEDA and LEDB are turned on or off based on the received LED data A and LED data B),
In the main side setting process, the output data corresponding to the plurality of signals are collectively cleared (for example, as shown in FIG. 24, in the main side setting process, LED data A and LED data corresponding to LEDA and LEDB are cleared). B are collectively set to OFF).

たとえば、本実施の形態においては、図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 the 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 is facilitated.

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

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

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

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

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

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

(5-2) 前記所定領域は、前記複数の領域のうちの最も小さいアドレス(たとえば、FE01H)に対応する領域である(たとえば、図8に示すように、第2領域は、第2,3,4,6領域のうちの最も小さいアドレス(FE01H)に対応する領域である)。 (5-2) The predetermined area is an area corresponding to the smallest address (for example, FE01H) among the plurality of areas (for example, as shown in FIG. , 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 the area corresponding to the smallest address (FE01H) among the second, third, fourth, and sixth areas. Data can be efficiently set when data is set in the area based on the address calculated using the address.

(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 may store an area (eg, third area) corresponding to a predetermined address (eg, FE02H) and an address next to the predetermined address (eg, FE03H). 2-byte data (for example, 12+FFH×56) is set so as to set the setting value in each of the areas (for example, the fourth area) corresponding to (for example, as shown in FIG. 8, the main CPU 41a sets the setting value 2-byte data (12+FFH× 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 uses the third area corresponding to the predetermined address (FE02H) and the address next to the predetermined address (FE03H). 2-byte data (12+FFH×56) is set so as to set a set value in each of the fourth areas corresponding to . By doing so, data can be collectively set for a plurality of areas.

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

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

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

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

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

たとえば、本実施の形態においては、図7,8に示すように、メインCPU41aは、第2,3,4,6領域に設定値を設定する以前に、出力ポートを初期化する。このようにすることで、出力ポートから意図しない信号が出力されることを防止することができる。 For example, in this embodiment, as shown in FIGS. 7 and 8, the main CPU 41a initializes the output ports before setting the set values 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]
Although the main embodiments of the present invention have been described above, the present invention is not limited to the above embodiments, and various modifications and applications are possible. Modifications of the above embodiments applicable to the present invention will be described below.

[内蔵レジスタ設定処理について]
本実施の形態においては、図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 areas from the first area to the seventh area. A set value was set for each region. However, the setting is not limited to this, and the area that needs to be set may be any area out of all the areas, and may be set for all areas.

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

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

Claims (1)

各々が識別可能な複数種類の識別情報を変動表示可能な可変表示部を複数備え、
前記可変表示部を変動表示した後、前記可変表示部の変動表示を停止することで表示結果を導出し、複数の可変表示部の表示結果の組合せである表示結果組合せに応じて入賞が発生可能なスロットマシンにおいて、
表示結果組合せを導出させるために操作される複数の導出操作手段と、
所定の処理を実行する処理手段とを備え、
前記処理手段によって実行される前記所定の処理には、メイン処理と、割込を禁止する割込禁止設定が行われてない場合に所定時間ごとに前記メイン処理に割り込んで実行可能な割込処理とが含まれ、
前記処理手段は、
所定の割込処理において、前記複数の導出操作手段のうちのいずれかの操作に基づく入力の有無を判定し、前記複数の導出操作手段のうちの第1導出操作手段の操作に基づく第1入力があったと判定した場合、当該所定の割込処理後の前記メイン処理において、前記割込禁止設定を行った後に、前記複数の可変表示部のうちの第1可変表示部における変動表示の停止位置を設定するための第1設定処理を実行し、当該第1設定処理の終了後に前記割込禁止設定の解除を行い、
前記割込禁止設定の解除後に実行される最初の割込処理において、前記複数の導出操作手段のうちのいずれかの操作に基づく入力の有無を判定し、前記複数の導出操作手段のうちの第2導出操作手段の操作に基づく第2入力があったと判定した場合、当該最初の割込処理後の前記メイン処理において、前記複数の可変表示部のうちの第2可変表示部における変動表示の停止位置を設定するための第2設定処理を実行するものであり、
前記処理手段は、さらに、複数の可変表示部を変動表示させるためのモータに対して駆動信号を出力しているか否かを判定することに基づいて、当該複数の可変表示部全ての変動表示が停止したか否かを判定する、スロットマシン。
Equipped with a plurality of variable display units that can variably display multiple types of identification information that can be identified by each,
A display result is derived by stopping the variable display of the variable display portion after the variable display portion is variably displayed, and winning can occur according to a display result combination that is a combination of display results of a plurality of variable display portions. in a slot machine
a plurality of derivation operation means operated to derive a display result combination;
and processing means for executing a predetermined process,
The predetermined processing executed by the processing means includes a main processing and an interrupt processing that can be executed by interrupting the main processing every predetermined time if an interrupt prohibition setting for prohibiting an interrupt is not set. and includes
The processing means
In a predetermined interrupt process, it is determined whether or not there is an input based on an operation of one of the plurality of derivation operation means, and a first input based on an operation of a first derivation operation means of the plurality of derivation operation means is performed. If it is determined that there has been, in the main processing after the predetermined interrupt processing, after performing the interrupt prohibition setting, the stop position of the variable display in the first variable display portion among the plurality of variable display portions is executed, and after the first setting process is completed, the interrupt prohibition setting is canceled,
In the first interrupt process executed after the interrupt prohibition setting is canceled , it is determined whether or not there is an input based on the operation of any one of the plurality of derivation operation means, and the first of the plurality of derivation operation means is 2. When it is determined that there is a second input based on the operation of the derivation operation means, in the main processing after the first interrupt processing, the variable display on the second variable display portion among the plurality of variable display portions is stopped. for executing a second setting process for setting the position;
The processing means further determines whether or not a drive signal is output to a motor for variably displaying the plurality of variable display portions, so that the variable display of all of the plurality of variable display portions is performed. A slot machine that determines whether or not it has stopped.
JP2018164298A 2018-09-03 2018-09-03 slot machine Active JP7184570B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018164298A JP7184570B2 (en) 2018-09-03 2018-09-03 slot machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018164298A JP7184570B2 (en) 2018-09-03 2018-09-03 slot machine

Publications (2)

Publication Number Publication Date
JP2020036674A JP2020036674A (en) 2020-03-12
JP7184570B2 true JP7184570B2 (en) 2022-12-06

Family

ID=69737031

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018164298A Active JP7184570B2 (en) 2018-09-03 2018-09-03 slot machine

Country Status (1)

Country Link
JP (1) JP7184570B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003033475A (en) 2001-07-25 2003-02-04 Daiichi Shokai Co Ltd Game machine
JP2018086182A (en) 2016-11-29 2018-06-07 株式会社三共 Slot machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003033475A (en) 2001-07-25 2003-02-04 Daiichi Shokai Co Ltd Game machine
JP2018086182A (en) 2016-11-29 2018-06-07 株式会社三共 Slot machine

Also Published As

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

Similar Documents

Publication Publication Date Title
JP6654837B2 (en) Gaming machine
JP2017046844A (en) Game machine
JP2021166832A (en) Game machine
JP7149760B2 (en) slot machine
JP6778054B2 (en) Game machine
JP7164361B2 (en) game machine
JP7104590B2 (en) Pachinko machine
JP7104589B2 (en) Pachinko machine
JP6778055B2 (en) Game machine
JP7184570B2 (en) slot machine
JP7184571B2 (en) slot machine
JP7141280B2 (en) slot machine
JP7141281B2 (en) game machine
JP6792691B2 (en) Game machine
JP7446707B2 (en) slot machine
JP6894413B2 (en) Pachinko machine
JP6835780B2 (en) Game machine
JP7114294B2 (en) slot machine
JP2020036676A (en) Slot machine
JP2020036681A (en) Slot machine
JP2020036680A (en) Slot machine
JP6756894B2 (en) Game machine
JP6756893B2 (en) Game machine
JP6792692B2 (en) Game machine
JP7114295B2 (en) slot machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210728

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220614

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220804

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221124

R150 Certificate of patent or registration of utility model

Ref document number: 7184570

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150