JP2017029595A - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP2017029595A
JP2017029595A JP2015155320A JP2015155320A JP2017029595A JP 2017029595 A JP2017029595 A JP 2017029595A JP 2015155320 A JP2015155320 A JP 2015155320A JP 2015155320 A JP2015155320 A JP 2015155320A JP 2017029595 A JP2017029595 A JP 2017029595A
Authority
JP
Japan
Prior art keywords
game
area
program
ram
game program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2015155320A
Other languages
Japanese (ja)
Other versions
JP6816940B2 (en
Inventor
小倉 敏男
Toshio Ogura
敏男 小倉
正文 中嶋
Masabumi Nakajima
正文 中嶋
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 JP2015155320A priority Critical patent/JP6816940B2/en
Publication of JP2017029595A publication Critical patent/JP2017029595A/en
Application granted granted Critical
Publication of JP6816940B2 publication Critical patent/JP6816940B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a game machine in which a program related to progress of a game, and a program which is not related to the progress of the game can be easily distinguished.SOLUTION: A main control part comprises: a ROM in which a game program region for storing game programs, and a non-game program region for storing non-game programs, are allocated independently. The main control part can call and execute the non-game program from main processing and from timer interruption processing (main). The main control part calls the non-game program after setting interruption of other processing to inhibition, in both of when the non-game program is called from the main processing and when the non-game program is called from the timer interruption processing (main).SELECTED DRAWING: Figure 23

Description

本発明は、パチンコ遊技機やスロットマシン等の遊技機に関する。   The present invention relates to a gaming machine such as a pachinko gaming machine or a slot machine.

この種の遊技機としては、例えば、遊技者の操作に応じて抽選や各部の動作を行わせるための遊技の進行に係わるプログラムと、遊技の進行とは直接係わらない異常検知(例えば、異常入賞判定)等に係るプログラムと、が一の記憶領域に混在して格納されている(例えば、特許文献1参照)。   As this type of gaming machine, for example, a program related to the progress of a game for causing a lottery or operation of each part in accordance with the player's operation, and an abnormality detection that is not directly related to the progress of the game (for example, an abnormal prize winning) And the program related to (determination) etc. are mixedly stored in one storage area (for example, see Patent Document 1).

特開2007−222418号公報JP 2007-222418 A

特許文献1に記載の遊技機では、一の記憶領域において遊技の進行に係わるプログラムと、遊技の進行とは直接係わらないプログラムと、が混在していると、どのプログラムが遊技の進行に係わるプログラムであるか、の判別が困難であった。   In the gaming machine described in Patent Document 1, if a program related to the progress of a game and a program not directly related to the progress of the game are mixed in one storage area, which program is related to the progress of the game It was difficult to determine whether or not.

本発明は、このような問題点に着目してなされたものであり、遊技の進行に係わるプログラムと、遊技の進行と関わらないプログラムと、を容易に判別できる遊技機を提供することを目的とする。   The present invention has been made paying attention to such problems, and an object thereof is to provide a gaming machine capable of easily distinguishing between a program related to the progress of a game and a program not related to the progress of the game. To do.

上記課題を解決するために、本発明の手段1の遊技機は、
遊技を行う遊技機(スロットマシン1)において、
プログラム(遊技プログラム、非遊技プログラム)を記憶可能な記憶領域(遊技プログラム領域、非遊技プログラム領域)を有する記憶手段(ROM41b)と、
記憶手段に記憶されたプログラムに基づいて制御を行う制御手段(メイン制御部41)と、
を備え、
前記記憶領域は、
遊技の進行に係る遊技プログラム(遊技プログラム)が記憶される遊技プログラム領域(遊技プログラム領域)と、
前記遊技プログラムによって呼び出されるプログラムであり、遊技の進行に係わらない非遊技プログラム(非遊技プログラム)が記憶される非遊技プログラム領域(非遊技プログラム領域)と、
を含み、
前記制御手段は、
前記遊技プログラムに基づく基本処理(メイン処理)を実行するとともに、所定時間間隔毎に基本処理に割り込んで前記遊技プログラムに基づく割込処理(タイマ割込処理(メイン))を実行し、
前記基本処理(メイン処理)からも、前記割込処理(タイマ割込処理(メイン))からも、前記非遊技プログラムを呼び出すことがあり、
前記基本処理(メイン処理)から前記非遊技プログラム(非遊技プログラム領域)を呼び出すときにも、前記割込処理(タイマ割込処理(メイン))から前記非遊技プログラム(非遊技プログラム領域)を呼び出すときにも、他の処理の割込を禁止する
ことを特徴としている。
この特徴によれば、遊技の進行に係わる遊技プログラムが記憶される遊技プログラム領域と、遊技プログラムによって呼び出されるプログラムであり、遊技の進行に係わらない非遊技プログラムが記憶される非遊技プログラム領域と、がそれぞれ別個に割り当てられているため、遊技プログラムと、非遊技プログラムと、を記憶領域の違いに応じて容易に特定することができる。また、基本処理から非遊技プログラムを呼び出すときにも、割込処理から非遊技プログラムを呼び出すときにも、他の処理の割込を禁止するので、非遊技プログラムの実行中に割込が実行されることによる誤作動を防止することができる。
In order to solve the above problems, the gaming machine of means 1 of the present invention is:
In a gaming machine (slot machine 1) that performs a game,
Storage means (ROM 41b) having a storage area (game program area, non-game program area) capable of storing a program (game program, non-game program);
Control means (main control unit 41) for performing control based on a program stored in the storage means;
With
The storage area is
A game program area (game program area) in which a game program (game program) related to the progress of the game is stored;
A non-game program area (non-game program area) in which a non-game program (non-game program) which is a program called by the game program and is not involved in the progress of the game is stored;
Including
The control means includes
The basic process (main process) based on the game program is executed, the basic process is interrupted at predetermined time intervals, and the interrupt process based on the game program (timer interrupt process (main)) is executed.
The non-game program may be called from both the basic process (main process) and the interrupt process (timer interrupt process (main)).
Even when the non-game program (non-game program area) is called from the basic process (main process), the non-game program (non-game program area) is called from the interrupt process (timer interrupt process (main)). Sometimes it is characterized by prohibiting interrupts of other processes.
According to this feature, a game program area in which a game program related to the progress of the game is stored, a non-game program area that is a program called by the game program and stores a non-game program that is not related to the progress of the game, Since these are assigned separately, the game program and the non-game program can be easily specified according to the difference in the storage area. In addition, when calling a non-game program from the basic process or when calling a non-game program from the interrupt process, interrupts of other processes are prohibited, so interrupts are executed during the execution of the non-game program. Malfunction can be prevented.

本発明の手段2の遊技機は、手段1に記載の遊技機であって、
前記制御手段は、前記基本処理(メイン処理)から前記非遊技プログラム(非遊技プログラム領域)を呼び出したときには、該非遊技プログラム(非遊技プログラム領域)の終了に伴って割込の禁止を解除し、前記割込処理(タイマ割込処理(メイン))から前記非遊技プログラム(非遊技プログラム領域)を呼び出したときには、該非遊技プログラム(非遊技プログラム領域)の終了後も割込の禁止を維持する
ことを特徴としている。
この特徴によれば、割込処理の実行中にも関わらず、非遊技プログラムの実行により割込の禁止が解除されてしまうことを防止できる。
The gaming machine of means 2 of the present invention is the gaming machine described in means 1,
When the control means calls the non-game program (non-game program area) from the basic process (main process), the control means cancels the prohibition of interruption with the end of the non-game program (non-game program area), When the non-game program (non-game program area) is called from the interrupt process (timer interrupt process (main)), the prohibition of interrupt should be maintained even after the non-game program (non-game program area) ends. It is characterized by.
According to this feature, it is possible to prevent the prohibition of the interrupt from being released due to the execution of the non-game program even during the execution of the interrupt process.

本発明の手段3の遊技機は、手段1または2に記載の遊技機であって、
前記遊技プログラム(遊技プログラム領域)が用いるデータを退避するスタック領域(遊技スタック領域)と、前記非遊技プログラム(非遊技プログラム領域)が用いるデータを退避するスタック領域(非遊技スタック領域)と、を別個に備える
ことを特徴としている。
この特徴によれば、遊技プログラムが用いるデータと、非遊技プログラムが用いるデータと、が別個に設けられたスタック領域にそれぞれ退避されるので、スタック領域の管理が容易となる。
The gaming machine of means 3 of the present invention is the gaming machine according to means 1 or 2,
A stack area (game stack area) for saving data used by the game program (game program area), and a stack area (non-game stack area) for saving data used by the non-game program (non-game program area). It is characterized by being prepared separately.
According to this feature, the data used by the game program and the data used by the non-game program are saved in the stack areas separately provided, so that the management of the stack area becomes easy.

本発明の手段4の遊技機は、手段1〜3のいずれかに記載の遊技機であって、
前記制御手段は、前記非遊技プログラム(非遊技プログラム領域)を実行するときに、前記遊技プログラム(遊技プログラム領域)で用いているレジスタの値をスタック領域(遊技スタック領域)に退避した後、前記非遊技プログラム(非遊技プログラム領域)における処理を実行する
ことを特徴としている。
この特徴によれば、非遊技プログラムを実行するのに伴い遊技プログラムが用いていたレジスタの値が変更されてしまうことを防止できる。
A gaming machine according to means 4 of the present invention is the gaming machine according to any one of means 1 to 3,
The control means, when executing the non-game program (non-game program area), after saving the register value used in the game program (game program area) to the stack area (game stack area), It is characterized by executing processing in a non-game program (non-game program area).
According to this feature, it is possible to prevent the value of the register used by the game program from being changed as the non-game program is executed.

本発明の手段5の遊技機は、手段4に記載の遊技機であって、
前記制御手段は、前記非遊技プログラム(非遊技プログラム領域)を実行するときに、前記遊技プログラム(遊技プログラム領域)で用いているレジスタの値をスタック領域(遊技スタック領域)に退避する共通プログラム(呼出共通処理1、呼出共通処理3)を呼び出す
ことを特徴としている。
この特徴によれば、非遊技プログラムを実行するときに行うプログラムを共通化するので、プログラム容量を削減できる。
The gaming machine of means 5 of the present invention is the gaming machine according to means 4,
When the non-game program (non-game program area) is executed, the control means saves a register value used in the game program (game program area) to a stack area (game stack area) ( It is characterized by calling common call processing 1 and common call processing 3).
According to this feature, since the program to be executed when executing the non-game program is shared, the program capacity can be reduced.

本発明の手段6の遊技機は、手段1〜5のいずれかに記載の遊技機であって、
前記割込処理を実行するための割込プログラム(タイマ割込処理(メイン))のアドレスを記憶可能なアドレス記憶手段(ベクタテーブル)と、
アドレス記憶手段(ベクタテーブル)に記憶しているアドレスが所定の範囲(プログラム領域のうちプログラム等が実際に格納された領域)にあるか否かを起動時に判定する判定手段と、
アドレス記憶手段(ベクタテーブル)に記憶しているアドレスが所定の範囲にないと判定したときに起動を制限する起動制限手段(メイン制御部41は、ベクタテーブルのアドレスがプログラム領域のうちプログラム等が実際に格納された領域でない場合に起動させない)と、
を備える
ことを特徴としている。
この特徴によれば、意図しない割込処理が実行されることを事前に防止することができ
る。
A gaming machine of means 6 of the present invention is the gaming machine according to any one of means 1 to 5,
Address storage means (vector table) capable of storing an address of an interrupt program (timer interrupt process (main)) for executing the interrupt process;
Determining means for determining at startup whether or not the address stored in the address storage means (vector table) is within a predetermined range (area in which a program or the like is actually stored in the program area);
Activation restriction means for restricting activation when it is determined that the address stored in the address storage means (vector table) is not within a predetermined range (the main control unit 41 has a vector table address within a program area such as a program Do not start if it is not the actual storage area),
It is characterized by having.
According to this feature, unintended interrupt processing can be prevented in advance.

本発明の手段7の遊技機は、手段1〜6のいずれかに記載の遊技機であって、
前記制御手段の設定を行う設定手段(HWパラメータを参照して行われる各種機能の設定)を備え、
前記制御手段は、前記設定手段による設定が行われた後、プログラム(遊技プログラムまたは非遊技プログラム)に基づく処理を実行するとともに、プログラムに基づく処理が開始される前に割込を禁止する(起動時設定による割込禁止の設定)
ことを特徴としている。
この特徴によれば、意図しない割込が発生することを防止できる。
A gaming machine according to means 7 of the present invention is the gaming machine according to any one of means 1 to 6, wherein
Comprising setting means for setting the control means (setting of various functions performed with reference to HW parameters);
The control means executes processing based on a program (game program or non-game program) after setting by the setting means, and prohibits interruption before starting processing based on the program (startup) Setting of prohibition of interrupt by hour setting)
It is characterized by that.
According to this feature, it is possible to prevent an unintended interrupt from occurring.

本発明の手段8の遊技機は、手段1〜7のいずれかに記載の遊技機であって、
複数のタイマ値格納領域(例えば、1バイトタイマA〜C)と、
複数種類の計時条件(例えば、1バイトタイマA〜Cの計時条件)のうちいずれかの種類の計時条件が成立したときに、該計時条件に応じたタイマ値格納領域(例えば、1バイトタイマA〜C)に該計時条件に応じたタイマ値を格納するタイマ値格納手段(メイン処理)と、
所定周期(約2.24ms)毎に複数のタイマ値格納領域(例えば、1バイトタイマA〜C)に格納されたタイマ値を更新可能なタイマ値更新手段(時間カウンタ更新処理)と、
を備え、
複数のタイマ値格納領域(例えば、1バイトタイマA〜C)には、所定の規則(+1)で連続するアドレス(804CH〜804EH)が割り当てられ、
タイマ値更新手段は、指定アドレスに対応するタイマ値格納領域に格納されたタイマ値を更新する更新処理(ポインタが示す値を1減算する処理)を、所定の演算(指定アドレス+1)を行うことによりタイマ値格納領域に対する指定アドレスを変更しながら繰り返し実行することで複数種類のタイマ値を更新可能である
ことを特徴としている。
この特徴によれば、複数のタイマ値格納領域には、所定の規則で連続するアドレスが割り当てられるとともに、指定アドレスに対応するタイマ値格納領域に格納されたタイマ値を更新する更新処理を、所定の演算を行うことによりタイマ値格納領域に対する指定アドレスを変更しながら繰り返し実行することで複数種類のタイマ値を更新するので、複数種類のタイマ値を更新する処理をタイマ値の種類毎に行う場合よりもプログラム容量を削減することができる。
尚、所定の規則で連続するアドレスが割り当てられるとは、例えば、開始アドレス及び開始アドレスからN(Nは自然数)ずつ加算されるアドレスが割り当てられることである。
また、所定の演算を行うことによりタイマ値格納領域に対する指定アドレスを変更するとは、例えば、現在の指定アドレスに対して処理数に応じた値を加算または減算することで指定アドレスを変更すること、基準アドレスに対して定数を加算または減算することで指定アドレスを変更することが該当する。この際、処理数に応じた値または定数は、タイマ値の格納容量により異なる場合があり、例えば、1バイトずつタイマ値が格納される構成であれば、処理数に応じた値は処理数に応じて1、2、3…となり、定数は1となるが、2バイトずつタイマ値が格納される構成であれば、処理数に応じた値は処理数に応じて2、4、6…となり、定数は2となる。
A gaming machine according to means 8 of the present invention is the gaming machine according to any one of means 1 to 7,
A plurality of timer value storage areas (for example, 1-byte timers A to C);
When any type of timing condition is satisfied among a plurality of types of timing conditions (for example, timing conditions for 1-byte timers A to C), a timer value storage area (for example, 1-byte timer A) corresponding to the timing condition To C), a timer value storage means (main process) for storing a timer value according to the timing condition;
Timer value updating means (time counter updating process) capable of updating timer values stored in a plurality of timer value storage areas (for example, 1-byte timers A to C) at predetermined intervals (about 2.24 ms);
With
A plurality of timer value storage areas (for example, 1-byte timers A to C) are assigned consecutive addresses (804CH to 804EH) according to a predetermined rule (+1),
The timer value updating means performs a predetermined operation (specified address + 1) for an update process for updating the timer value stored in the timer value storage area corresponding to the specified address (a process for subtracting 1 from the value indicated by the pointer). It is characterized in that multiple types of timer values can be updated by repeatedly executing while changing the designated address for the timer value storage area.
According to this feature, a plurality of timer value storage areas are assigned consecutive addresses according to a predetermined rule, and an update process for updating the timer value stored in the timer value storage area corresponding to the specified address is performed in a predetermined manner. When the processing for updating multiple types of timer values is performed for each type of timer value, it is possible to update multiple types of timer values by repeatedly executing while changing the specified address for the timer value storage area. As a result, the program capacity can be reduced.
Note that consecutive addresses are assigned according to a predetermined rule means that, for example, an address that is incremented by N (N is a natural number) from the start address and the start address is assigned.
In addition, changing the designated address for the timer value storage area by performing a predetermined calculation is, for example, changing the designated address by adding or subtracting a value according to the number of processes to the current designated address, This corresponds to changing the designated address by adding or subtracting a constant to or from the reference address. At this time, the value or constant according to the number of processes may vary depending on the storage capacity of the timer value. For example, if the timer value is stored byte by byte, the value according to the number of processes is the number of processes. Depending on the number of processing, the value is 2, 4, 6,..., Depending on the number of processing. The constant is 2.

尚、本発明は、本発明の請求項に記載された発明特定事項のみを有するものであって良いし、本発明の請求項に記載された発明特定事項とともに該発明特定事項以外の構成を有するものであっても良い。   In addition, this invention may have only the invention specific matter described in the claim of this invention, and has a structure other than this invention specific matter with the invention specific matter described in the claim of this invention. It may be a thing.

本発明が適用された実施例のスロットマシンの正面図である。It is a front view of the slot machine of the Example to which this invention was applied. スロットマシンの内部構造を示す斜視図である。It is a perspective view which shows the internal structure of a slot machine. リールの図柄配列を示す図である。It is a figure which shows the symbol arrangement | sequence of a reel. スロットマシンの構成を示すブロック図である。It is a block diagram which shows the structure of a slot machine. メイン制御部の構成を示すブロック図である。It is a block diagram which shows the structure of a main control part. メイン制御部が搭載するROM及びRAMのメモリマップを示す図である。It is a figure which shows the memory map of ROM and RAM which a main control part mounts. メイン制御部が搭載するROM及びRAMのメモリマップの詳細を示す図である。It is a figure which shows the detail of the memory map of ROM and RAM which a main control part mounts. 遊技プログラム及び非遊技プログラムの構成を示す図である。It is a figure which shows the structure of a game program and a non-game program. 遊技領域と非遊技領域との関係を示す図である。It is a figure which shows the relationship between a game area | region and a non-game area | region. (a)は、メイン処理の実行中に遊技プログラムに基づく処理から非遊技プログラムを呼び出す際の処理の流れを示すフローチャートであり、(b)は、タイマ割込処理の実行中に遊技プログラムに基づく処理から非遊技プログラムを呼び出す際の処理の流れを示すフローチャートである。(A) is a flowchart showing a flow of processing when a non-game program is called from processing based on a game program during execution of the main processing, and (b) is based on a game program during execution of the timer interrupt processing. It is a flowchart which shows the flow of a process at the time of calling a non-game program from a process. メイン制御部が実行する初期設定処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the initial setting process which a main control part performs. メイン制御部が実行する設定変更処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the setting change process which a main control part performs. メイン制御部が実行する遊技領域初期化処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the game area initialization process which a main control part performs. メイン制御部が実行する非遊技領域初期化処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the non-game area initialization process which a main control part performs. メイン制御部が実行するメイン処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the main process which a main control part performs. メイン制御部が実行するタイマ割込処理(メイン)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the timer interruption process (main) which a main control part performs. メイン制御部が実行するタイマ割込処理(メイン)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the timer interruption process (main) which a main control part performs. メイン制御部が実行する電断処理(メイン)の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the power interruption process (main) which a main control part performs. メイン制御部が、第1の条件、第2の条件の成立時に初期化するRAMの領域を示す図である。It is a figure which shows the area | region of RAM which a main control part initializes when the 1st condition and the 2nd condition are satisfied. メイン制御部がタイマカウンタの値を判定する際の制御内容を示すフローチャートである。It is a flowchart which shows the control content at the time of the main control part determining the value of a timer counter. RAMにおけるタイマカウンタの格納領域を示す図である。It is a figure which shows the storage area of the timer counter in RAM. メイン制御部が実行する時間カウンタ更新処理の制御内容を示すフローチャートである。It is a flowchart which shows the control content of the time counter update process which a main control part performs. タイマ割込処理の実行中に遊技プログラムに基づく処理から非遊技プログラムを呼び出す際の処理の流れの変形例を示すフローチャートである。It is a flowchart which shows the modification of the flow of the process at the time of calling a non-game program from the process based on a game program during execution of a timer interruption process.

本発明に係るスロットマシンを実施するための形態を実施例に基づいて以下に説明する。   A mode for carrying out a slot machine according to the present invention will be described below based on examples.

本発明が適用されたスロットマシンの実施例について図面を用いて説明すると、本実施例のスロットマシン1は、図1に示すように、前面が開口する筐体1aと、この筐体1aの側端に回動自在に枢支された前面扉1bと、から構成されている。   An embodiment of a slot machine to which the present invention is applied will be described with reference to the drawings. As shown in FIG. 1, a slot machine 1 according to the present embodiment includes a housing 1a having an open front surface and a side of the housing 1a. And a front door 1b pivotally supported at the end.

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

リール2L、2C、2Rの外周部には、図3に示すように、それぞれ「赤7」、「青7」、「白7」、「BAR」、「スイカ」、「チェリーa」、「チェリーb」、「ベル」、「リプレイa」、「リプレイb」、「プラム」といった互いに識別可能な複数種類の図柄が所定の順序で、それぞれ21個ずつ描かれている。リール2L、2C、2Rの外周部に描かれた図柄は、前面扉1bの略中央に設けられた透視窓3において各々上中下三段に表示される。尚、以下では、「赤7」、「青7」、「白7」をまとめて単に「7」という場合があり、「チェリーa」、「チェリーb」をまとめて単に「チェリー」という場合があり、「リプレイa」、「リプレイb」をまとめて単に「リプレイ」と言う場合がある。   As shown in FIG. 3, “red 7”, “blue 7”, “white 7”, “BAR”, “watermelon”, “cherry a”, “cherry” are respectively provided on the outer peripheral portions of the reels 2L, 2C, 2R. A plurality of identifiable symbols such as “b”, “bell”, “replay a”, “replay b”, and “plum” are drawn in a predetermined order. The symbols drawn on the outer peripheries of the reels 2L, 2C, and 2R are displayed in upper, middle, and lower three stages in the see-through window 3 provided at the approximate center of the front door 1b. In the following, “red 7”, “blue 7” and “white 7” may be collectively referred to as “7”, and “cherry a” and “cherry b” may be simply referred to as “cherry”. In some cases, “replay a” and “replay b” are collectively referred to as “replay”.

各リール2L、2C、2Rは、各々対応して設けられたリールモータ32L、32C、32R(図4参照)によって回転されることで、各リール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. 4) provided in correspondence with each other, so that the symbols of the reels 2L, 2C, and 2R are continuous with the see-through window 3. On the other hand, when the reels 2L, 2C, and 2R are stopped from rotating, three consecutive symbols are derived and displayed on the fluoroscopic window 3 as display results.

リール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 are reel sensors 33L, 33C, and 33R that detect a reference position for each of the reels 2L, 2C, and 2R, and a reel LED 55 that irradiates the reels 2L, 2C, and 2R from the back side. , Is provided. The reel LED 55 includes 12 LEDs corresponding to three consecutive symbols on the reels 2L, 2C, and 2R, and each symbol can be irradiated independently.

前面扉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 disposed at a position on the front side (player side) of each reel 2L, 2C, 2R of the front door 1b. The liquid crystal display 51 has a transmissive liquid crystal panel in a state where no voltage is applied to the liquid crystal element, and the transmissive area 51b corresponding to the transmissive window 3 of the display area 51a and the transmissive window 3 are interposed. Thus, the reels 2L, 2C, and 2R can be visually recognized from the player side.

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

尚、本実施例では、回転を開始した3つのリール2L、2C、2Rのうち、最初に停止するリールを第1停止リールと称し、また、その停止を第1停止と称する。同様に、2番目に停止するリールを第2停止リールと称し、また、その停止を第2停止と称し、3番目に停止するリールを第3停止リールと称し、また、その停止を第3停止あるいは最終停止と称する。   In this embodiment, among the three reels 2L, 2C, and 2R that have started to rotate, the reel that stops first is referred to as a first stop reel, and the stop is referred to as a first stop. Similarly, the reel that stops second is called the second stop reel, the stop is called second stop, the reel that stops third is called the third stop reel, and the stop is 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が設けられている。   Further, as shown in FIG. 1, the front door 1b shows a credit indicator 11 for displaying the number of medals stored as credits, the number of medals paid out due to the occurrence of a winning, and the contents when an error occurs. A game auxiliary display 12 for displaying an error code, information for identifying the stop order of reels by navigation notification described later, a 1BETLED 14 for informing that the betting number is set to 1, and 2 betting numbers are set. 2BETLED 15 to notify that the bet is set, 3BETLED 16 to notify that the bet number is set to 3, the insertion request LED 17 to notify that the medal can be inserted is lit, and the game by operating the start switch 7 A start valid LED 18 for notifying that the start operation is valid by lighting, wait (the previous game (Waiting for starting reel rotation since a certain period of time has not elapsed since the beginning) A waiting LED 19 that lights up to indicate that it is in progress, and a replaying LED 20 that lights up to indicate that a replay game is in progress The game display section 13 is provided.

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

前面扉1bの内側には、図2に示すように、所定のキー操作により後述するエラー状態及び後述する打止状態を解除するためのリセット操作を検出するリセットスイッチ23、後述する設定値の変更中や設定値の確認中にその時点の設定値が表示される設定値表示器24、所定の契機(例えば、後述のBB終了時)に打止状態(リセット操作がなされるまでゲームの進行が規制される状態)に制御する打止機能の有効/無効を選択するための打止スイッチ36a、所定の契機(例えば、BB終了時)に自動精算処理(クレジットとして記憶されているメダルを遊技者の操作によらず精算(返却)する処理)に制御する自動精算機能の有効/無効を選択するための自動精算スイッチ36b、メダル投入部4から投入されたメダルの流路を、筐体1aの内部に設けられた後述のホッパータンク34a(図2参照)側またはメダル払出口9側のいずれか一方に選択的に切り替えるための流路切替ソレノイド30、メダル投入部4から投入され、ホッパータンク34a側に流下したメダルを検出する投入メダルセンサ31、投入メダルセンサ31の上流側で異物の挿入を検出する投入口センサ26を有するメダルセレクタ29、前面扉1bの開放状態を検出するドア開放検出スイッチ25(図4参照)が設けられている。   Inside the front door 1b, as shown in FIG. 2, a reset switch 23 for detecting a reset operation for releasing an error state to be described later and a stop state to be described later by a predetermined key operation, and changing a set value to be described later A set value display 24 that displays the set value at that time during confirmation of the set value or during the confirmation of the set value, the game progresses until a reset operation is performed at a predetermined trigger (for example, at the end of BB described later) A stop switch 36a for selecting the validity / invalidity of the stop function controlled to a controlled state), automatic settlement processing (for example, at the end of the BB), a medal stored as a credit as a player Automatic settlement switch 36b for selecting whether the automatic settlement function is controlled to be settled (returned regardless of the operation) or the flow path of medals inserted from the medal insertion section 4 a flow path switching solenoid 30 for selectively switching to either a hopper tank 34a (see FIG. 2), which will be described later, or the medal payout exit 9 side, which is provided inside a, and is inserted from the medal insertion unit 4 and An insertion medal sensor 31 for detecting a medal flowing down to the tank 34a side, a medal selector 29 having an insertion port sensor 26 for detecting the insertion of a foreign object on the upstream side of the insertion medal sensor 31, and a door opening for detecting the open state of the front door 1b. A detection switch 25 (see FIG. 4) is provided.

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

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

電源ボックス100の前面には、図2に示すように、設定変更状態または設定確認状態に切り替えるための設定キースイッチ37、通常時においてはエラー状態や打止状態を解除するためのリセットスイッチとして機能し、設定変更状態においては後述する内部抽選の当選確率(出玉率)の設定値を変更するための設定スイッチとして機能するリセット/設定スイッチ38、電源をon/offする際に操作される電源スイッチ39が設けられている。   As shown in FIG. 2, a function key switch 37 for switching to a setting change state or a setting confirmation state is provided on the front surface of the power supply box 100, and functions as a reset switch for canceling an error state or a stop state in normal times. In the setting change state, a reset / setting switch 38 that functions as a setting switch for changing a setting value of a winning probability (outtake rate) of internal lottery described later, and a power source that is operated when turning on / off the power source 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 a predetermined key operation held by a store clerk or the like. The set key switch 37, the reset / setting switch 38, and the power switch 39 are operated only by a person such as a store clerk who has the key, and cannot be operated by the player. The same applies to the reset switch 23 detected by a predetermined key operation. In particular, since the setting key switch 37 requires further key operation after the front door 1b is opened by key operation, only the store clerk possessing the key for operating the setting key switch 37 among the game store clerk. Operation is possible.

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

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

また、本実施例では、入賞ラインLNに入賞を構成する図柄の組合せが揃ったことを認識しやすくするために、入賞ラインLNとは別に、無効ラインLM1〜4を設定している。無効ラインLM1〜4は、これら無効ラインLM1〜4に揃った図柄の組合せによって入賞が判定されるものではなく、入賞ラインLNに特定の入賞を構成する図柄の組合せが揃った際に、無効ラインLM1〜4のいずれかに入賞ラインLNに揃った場合に入賞となる図柄の組合せ(例えば、ベル−ベル−ベル)が揃う構成とすることで、入賞ラインLNに特定の入賞を構成する図柄の組合せが揃ったことを認識しやすくするものである。   Further, in the present embodiment, invalid lines LM1 to LM1 are set apart from the winning line LN in order to make it easy to recognize that the winning line LN has a combination of symbols constituting the winning line. The invalid lines LM1 to LM4 are not determined based on the combination of symbols arranged in the invalid lines LM1 to LM4. When the combination of symbols constituting a specific prize is arranged on the winning line LN, the invalid line is displayed. When a combination of symbols (for example, bell-bell-bell) that is awarded when the winning line LN is aligned with any of the LM1 to LM4 is arranged, the symbols constituting a specific winning in the winning line LN It is 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, an invalid line LM1 and a lower stage of the reel 2L, which are set across the symbols arranged horizontally in the upper stage of the reel 2L, the upper stage of the reel 2C, the upper stage of the reel 2R, that is, the upper 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 arranged horizontally 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 lower side There are four types of invalid lines LM3 set across straddling symbols LM3, lower stage of reel 2L, middle stage of reel 2C, upper stage of reel 2R, that is, invalid line LM4 set straddling to the right. It is defined as.

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

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

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

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

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

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

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

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

以下では、特に区別する必要がない場合にはリール2L、2C、2Rを単にリールという場合がある。また、リール2Lを左リール、リール2Cを中リール、リール2Rを右リールという場合がある。また、ストップスイッチ8L、8C、8Rの操作によりリール2L、2C、2Rを停止させる操作を停止操作という場合がある。   Hereinafter, the reels 2L, 2C, and 2R may be simply referred to as reels unless it is necessary to distinguish between them. Further, 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 for stopping the reels 2L, 2C, 2R by operating the stop switches 8L, 8C, 8R may be referred to as a stop operation.

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

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

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

遊技制御基板40には、遊技の進行に関する処理を行うととともに遊技制御基板40に搭載された制御回路の各部を直接的または間接的に制御するメイン制御部41と、所定周波数の発振信号となる制御用クロックCCLKを生成する制御用クロック生成回路42と、制御用クロックCCLKの発振周波数とは異なる所定周波数の発振信号となる乱数用クロックRCLKを生成する乱数用クロック生成回路43と、遊技制御基板40に直接または電源基板101を介して接続されたスイッチ類から入力された検出信号を取り込んでメイン制御部41に伝送するスイッチ検出回路44と、メイン制御部41から出力されたモータ駆動信号(ステッピングモータの位相信号)をリールモータ32L、32C、32Rに伝送するモータ駆動回路45と、メイン制御部41から出力されたソレノイド駆動信号を流路切替ソレノイド30に伝送するソレノイド駆動回路46と、メイン制御部41から出力されたLED駆動信号を遊技制御基板40に接続された各種表示器やLEDに伝送するLED駆動回路47と、スロットマシン1に供給される電源の電圧を監視して電圧の低下を検出したときに、その旨を示す電圧低下信号をメイン制御部41に対して出力する電断検出回路48と、電源投入時または電源遮断時等の電力供給が不安定な状態においてメイン制御部41にシステムリセット信号を与えるリセット回路49と、が搭載されている。   The game control board 40 performs processing related to the progress of the game, and at the same time, controls the respective parts of the control circuit mounted on the game control board 40 directly or indirectly, and becomes an oscillation signal of a predetermined frequency. A control clock generation circuit 42 for generating a control clock CCLK, a random number clock generation circuit 43 for generating a random number clock RCLK that is an oscillation signal having a predetermined frequency different from the oscillation frequency of the control clock CCLK, and a game control board 40, a switch detection circuit 44 that takes in detection signals input from switches connected directly or via the power supply board 101 and transmits them to the main control unit 41, and a motor drive signal (stepping) output from the main control unit 41. Motor drive circuit 45 for transmitting the motor phase signal) to the reel motors 32L, 32C, 32R. The solenoid drive circuit 46 that transmits the solenoid drive signal output from the main control unit 41 to the flow path switching solenoid 30; and the various displays connected to the game control board 40 with the LED drive signal output from the main control unit 41 When a voltage drop is detected by monitoring the voltage of the LED drive circuit 47 that transmits to the LED and the power supply supplied to the slot machine 1, a voltage drop signal indicating that is output to the main control unit 41 And a reset circuit 49 that provides 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.

図5は、遊技制御基板40に搭載されたメイン制御部41の構成例を示している。メイン制御部41は、1チップマイクロコンピュータであり、外部バスインターフェイス501と、クロック回路502と、照合用ブロック503と、固有情報記憶回路504と、演算回路505と、リセット/割込コントローラ506と、CPU(Central Processing Unit)41aと、ROM(Read Only Memory)41bと、RAM(Random Access Memory)41cと、フリーランカウンタ回路507と、乱数回路508a、508bと、タイマ回路509と、割込コントローラ510と、パラレル入力ポート511と、シリアル通信回路512と、パラレル出力ポート513と、アドレスデコード回路514と、を備えて構成される。   FIG. 5 shows a configuration example of the main control unit 41 mounted on the game control board 40. The main control unit 41 is a one-chip microcomputer, and includes an external bus interface 501, a clock circuit 502, a verification block 503, a specific information storage circuit 504, an arithmetic circuit 505, a reset / interrupt controller 506, CPU (Central Processing Unit) 41a, ROM (Read Only Memory) 41b, RAM (Random Access Memory) 41c, free-run counter circuit 507, random number circuits 508a and 508b, timer circuit 509, and interrupt controller 510 A parallel input port 511, a serial communication circuit 512, a parallel output port 513, and an address decoding circuit 514.

リセット/割込コントローラ506は、メイン制御部41の内部や外部にて発生する各種リセット、割込要求を制御するためのものである。リセット/割込コントローラ506は、指定エリア外走行禁止(IAT)回路506aとウォッチドッグタイマ(WDT)506bとを備える。IAT回路506aは、ユーザプログラムが指定エリア内で正しく実行されているか否かを監視する回路であり、指定エリア外でユーザプログラムが実行されたことを検出するとIAT発生信号を出力する機能を備える。また、ウォッチドッグタイマ506bは、設定期間ごとにタイムアウト信号を発生させる機能を備える。   The reset / interrupt controller 506 is for controlling various resets and interrupt requests generated inside or outside the main control unit 41. The reset / interrupt controller 506 includes an out-of-designated area prohibition (IAT) circuit 506a and a watchdog timer (WDT) 506b. The IAT circuit 506a is a circuit that monitors whether the user program is correctly executed in the designated area, and has a function of outputting an IAT generation signal when it is detected that the user program is executed outside the designated area. The watchdog timer 506b has a function of generating a timeout signal for each set period.

外部バスインターフェイス501は、メイン制御部41を構成するチップの外部バスと内部バスとのインターフェイス機能や、アドレスバス、データバス及び各制御信号の方向制御機能などを有するバスインターフェイスである。クロック回路502は、制御用クロックCCLKを2分周することなどにより、内部システムクロックSCLKを生成する回路である。照合用ブロック503は、外部の照合機と接続し、チップの照合を行う機能を備える。固有情報記憶回路504は、メイン制御部41の内部情報となる複数種類の固有情報を記憶する回路である。演算回路505は、乗算及び除算を行う回路である。   The external bus interface 501 is a bus interface having an interface function between an external bus and an internal bus of a chip constituting the main control unit 41, an address bus, a data bus, and a direction control function of each control signal. The clock circuit 502 is a circuit that generates the internal system clock SCLK by, for example, dividing the control clock CCLK by two. The verification block 503 is connected to an external verification machine and has a function of performing chip verification. The unique information storage circuit 504 is a circuit that stores a plurality of types of unique information that is internal information of the main control unit 41. The arithmetic circuit 505 is a circuit that performs multiplication and division.

CPU41aは、ROM41bから読み出した制御コードに基づいてユーザプログラム(ゲーム制御用の遊技制御処理プログラム)を実行することにより、スロットマシン1における遊技制御を実行する制御用CPUである。こうした遊技制御が実行されるときには、CPU41aがROM41bから固定データを読み出す固定データ読出動作や、CPU41aがRAM41cに各種の変動データを書き込んで一時記憶させる変動データ書込動作、CPU41aがRAM41cに一時記憶されている各種の変動データを読み出す変動データ読出動作、CPU41aが外部バスインターフェイス501やパラレル入力ポート511、シリアル通信回路512などを介してメイン制御部41の外部から各種信号の入力を受け付ける受信動作、CPU41aが外部バスインターフェイス501やシリアル通信回路512、パラレル出力ポート513などを介してメイン制御部41の外部へと各種信号を出力する送信動作等も行われる。   The CPU 41a is a control CPU that executes game control in the slot machine 1 by executing a user program (game control processing program for game control) based on the control code read from the ROM 41b. When such game control is executed, the CPU 41a reads fixed data from the ROM 41b, the variable data writing operation in which the CPU 41a writes various fluctuation data to the RAM 41c and temporarily stores them, and the CPU 41a is temporarily stored in the RAM 41c. A variable data reading operation for reading out various variable data being received, a receiving operation in which the CPU 41a receives input of various signals from the outside of the main control unit 41 via the external bus interface 501, the parallel input port 511, the serial communication circuit 512, etc. However, a transmission operation for outputting various signals to the outside of the main control unit 41 via the external bus interface 501, the serial communication circuit 512, the parallel output port 513, and the like is also performed.

ROM41bには、ユーザプログラム(ゲーム制御用の遊技制御処理プログラム)を示す制御コードや固定データ等が記憶されている。RAM41cは、ゲーム制御用のワークエリア等を提供する。ここで、RAM41cの少なくとも一部は、バックアップ電源によってバックアップされているバックアップRAMであれば良い。すなわち、スロットマシン1への電力供給が停止しても、所定期間はRAM41cの少なくとも一部の内容が保存される。   The ROM 41b stores a control code indicating a user program (game control processing program for game control), fixed data, and the like. The RAM 41c provides a work area for game control. Here, at least a part of the RAM 41c may be a backup RAM backed up by a backup power source. That is, even if the power supply to the slot machine 1 is stopped, at least a part of the contents of the RAM 41c is stored for a predetermined period.

フリーランカウンタ回路507として、8ビットのフリーランカウンタを搭載している。乱数回路508a、508bは、8ビット乱数や16ビット乱数といった、所定の更新範囲を有する乱数値となる数値データを生成する回路である。本実施例では、乱数回路508a、508bのうち16ビット乱数回路508bが生成するハードウェア乱数は、後述する内部抽選用の乱数として用いられる。タイマ回路509は、16ビットプログラマブルタイマであり、設定されたタイマ値を制御用クロックCCLKの入力に基づいてダウンカウントし、0000Hに達したときに割込コントローラへの割込要求信号を出力する。本実施例では、タイマ回路509を用いて定期的な割込要求や時間計測を行うことが可能である。   As the free-run counter circuit 507, an 8-bit free-run counter is mounted. The random number circuits 508a and 508b are circuits that generate numerical data that is a random value having a predetermined update range, such as an 8-bit random number or a 16-bit random number. In this embodiment, the hardware random number generated by the 16-bit random number circuit 508b among the random number circuits 508a and 508b is used as a random number for internal lottery described later. The timer circuit 509 is a 16-bit programmable timer, counts down the set timer value based on the input of the control clock CCLK, and outputs an interrupt request signal to the interrupt controller when reaching 0000H. In this embodiment, the timer circuit 509 can be used to perform periodic interrupt requests and time measurement.

割込コントローラ510は、割込端子からの外部割込要求や、内蔵の周辺回路(例えば、シリアル通信回路512、乱数回路508a、508b、タイマ回路509)からの割込要求を制御する回路である。パラレル入力ポート511は、8ビット幅の入力専用ポートを内蔵する。また、図4に示すメイン制御部41が備えるパラレル出力ポート513は、11ビット幅の出力専用ポートを内蔵する。シリアル通信回路512は、外部に対する入出力において非同期シリアル通信を行う回路である。   The interrupt controller 510 is a circuit that controls external interrupt requests from interrupt terminals and interrupt requests from built-in peripheral circuits (for example, serial communication circuit 512, random number circuits 508a and 508b, timer circuit 509). . The parallel input port 511 incorporates an 8-bit wide input-only port. Also, the parallel output port 513 provided in the main control unit 41 shown in FIG. 4 incorporates an output-only port having an 11-bit width. The serial communication circuit 512 is a circuit that performs asynchronous serial communication in input / output with respect to the outside.

アドレスデコード回路514は、メイン制御部41の内部における各機能ブロックのデコードや、外部装置用のデコード信号であるチップセレクト信号のデコードを行うための回路である。チップセレクト信号により、メイン制御部41の内部回路、あるいは、周辺デバイスとなる外部装置を、選択的に有効動作させて、CPU41aからのアクセスが可能となる。   The address decoding circuit 514 is a circuit for decoding each functional block in the main control unit 41 and a chip select signal that is a decoding signal for an external device. In response to the chip select signal, the internal circuit of the main control unit 41 or the external device serving as a peripheral device is selectively operated effectively and can be accessed from the CPU 41a.

メイン制御部41は、例えば、ROM41bの記憶領域のうちプログラム等が格納されていない領域へのアクセスがあったとき、RAM41cの記憶領域のうちアクセス禁止が設定された領域へのアクセスがあったとき、すなわち正常な動作ではアクセスすることのないメモリ領域へのアクセスがあったときにイリーガルアクセスリセットを発生させることで、遊技の進行を不能化させるようになっており、ROM41bの未使用領域や動作とは関係しない領域、RAM41cの未使用領域等に不正なプログラムが格納された場合であっても、不正なプログラムが実行されてしまうことを防止できる。   For example, when the main control unit 41 accesses an area of the storage area of the ROM 41b where no program or the like is stored, the main control section 41 accesses an area of the storage area of the RAM 41c where access is prohibited. In other words, when an access to a memory area that is not accessed in normal operation is made, an illegal access reset is generated to disable the progress of the game. Even if an unauthorized program is stored in an area unrelated to the above, an unused area of the RAM 41c, etc., it is possible to prevent the unauthorized program from being executed.

また、メイン制御部41は、内部または外部によるリセットが発生することで起動することとなるが、この際、ROM41bに割り当てられ、割込処理の先頭アドレスが設定されるベクタテーブルに設定された値が、未使用を示す値であるか、プログラム等が実際に格納された領域を示す値であるか、を判定し、いずれの値でもない場合には起動しないようになっており、割込の発生等により本来意図していない処理が実行されてしまうことを事前に防止できる。   The main control unit 41 is activated when an internal or external reset occurs. At this time, the value assigned to the ROM 41b and set in the vector table in which the start address of the interrupt process is set. Is a value indicating unused or a value indicating the area where the program etc. is actually stored, and if it is not any value, it will not start, It is possible to prevent in advance the processing that was not originally intended due to the occurrence or the like.

メイン制御部41は、パラレル出力ポート513を介してサブ制御部91に各種のコマンドを送信する。メイン制御部41からサブ制御部91へ送信されるコマンドは一方向のみで送られ、サブ制御部91からメイン制御部41へ向けてコマンドが送られることはない。また、本実施例では、パラレル出力ポート513を介してサブ制御部91に対してコマンドが送信される構成、すなわちコマンドがパラレル信号にて送信される構成であるが、シリアル通信回路512を介してサブ制御部91に対してコマンドを送信する構成、すなわちコマンドをシリアル信号にて送信する構成としても良い。   The main control unit 41 transmits various commands to the sub control unit 91 via the parallel output port 513. A command transmitted from the main control unit 41 to the sub control unit 91 is sent in only one direction, and no command is sent from the sub control unit 91 toward the main control unit 41. In this embodiment, the command is transmitted to the sub-control unit 91 via the parallel output port 513, that is, the command is transmitted as a parallel signal, but via the serial communication circuit 512. A configuration in which a command is transmitted to the sub-control unit 91, that is, a configuration in which the command is transmitted as a serial signal may be employed.

また、メイン制御部41は、遊技制御基板40に接続された各種スイッチ類の検出状態がパラレル入力ポート511から入力される。そしてメイン制御部41は、これらパラレル入力ポート511から入力される各種スイッチ類の検出状態に応じて段階的に移行するメイン処理を実行する。また、メイン制御部41は、割込の発生によりメイン処理に割り込んで割込処理を実行できるようになっている。本実施例では、タイマ回路509にてタイムアウトが発生したこと、すなわち一定時間間隔(本実施例では、約0.56ms)毎にタイマ割込処理(メイン)を実行する。また、メイン制御部41は、割込処理の実行中に他の割込を自動的に禁止するように設定されているとともに、複数の割込が同時に発生した場合には、予め定められた順位によって優先して実行する割込が設定されている。尚、割込処理の実行中に他の割込要因が発生し、割込処理が終了してもその割込要因が継続している状態であれば、割込処理が終了した時点で割込禁止が自動的に解除され、その時点で新たな割込が発生することとなる。尚、割込処理の実行中に他の割込を自動的に禁止するように設定され、割込処理が終了した時点で割込禁止が自動的に解除されるのではなく、割込処理の開始時にプログラムによって他の割込を禁止し、割込処理の終了時にプログラムによって割込禁止を解除するようにしても良い。   The main control unit 41 also receives detection states of various switches connected to the game control board 40 from the parallel input port 511. The main control unit 41 executes main processing that shifts in stages according to the detection states of various switches input from the parallel input port 511. Also, the main control unit 41 can execute the interrupt process by interrupting the main process when an interrupt occurs. In the present embodiment, a timer interrupt process (main) is executed every time a time-out occurs in the timer circuit 509, that is, every fixed time interval (about 0.56 ms in the present embodiment). In addition, the main control unit 41 is set to automatically prohibit other interrupts during execution of the interrupt process, and when a plurality of interrupts occur at the same time, a predetermined order is set. The interrupt to be executed with priority is set by. If another interrupt factor occurs during the execution of the interrupt process and the interrupt factor continues even after the interrupt process ends, the interrupt will occur when the interrupt process ends. The prohibition is automatically released and a new interrupt is generated at that time. Note that other interrupts are set to be automatically disabled during the execution of interrupt processing, and interrupt processing is not automatically canceled when interrupt processing is completed. Other interrupts may be prohibited by the program at the start, and the interrupt prohibition may be canceled by the program at the end of the interrupt process.

メイン制御部41は、メイン処理として遊技制御基板40に接続された各種スイッチ類の検出状態が変化するまでは制御状態に応じた処理を繰り返しループし、各種スイッチ類の検出状態の変化に応じて段階的に移行する処理を実行する。また、メイン制御部41は、一定時間間隔(本実施例では、約0.56ms)毎にタイマ割込処理(メイン)を実行する。尚、タイマ割込処理(メイン)の実行間隔は、メイン処理において制御状態に応じて繰り返す処理が一巡する時間とタイマ割込処理(メイン)の実行時間とを合わせた時間よりも長い時間に設定されており、今回と次回のタイマ割込処理(メイン)との間で必ず制御状態に応じて繰り返す処理が最低でも一巡することとなる。   The main control unit 41 repeatedly loops the process according to the control state until the detection state of the various switches connected to the game control board 40 changes as the main process, and changes the detection state of the various switches. Execute a process that moves in stages. Further, the main control unit 41 executes a timer interrupt process (main) at regular time intervals (about 0.56 ms 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 to repeat the process repeated in accordance with the control state in the main process and the execution time of the timer interrupt process (main) Therefore, the process that is repeated according to the control state between the current and next timer interrupt processes (main) is completed at least once.

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

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

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

リセット回路95は、遊技制御基板40においてメイン制御部41にシステムリセット信号を与えるリセット回路49よりもリセット信号を解除する電圧が低く定められており、電源投入時においてサブ制御部91は、メイン制御部41よりも早い段階で起動するようになっている。一方で、電断検出回路98は、遊技制御基板40においてメイン制御部41に電圧低下信号を出力する電断検出回路48よりも電圧低下信号を出力する電圧が低く定められており、電断時においてサブ制御部91は、メイン制御部41よりも遅い段階で停電を検知し、後述する電断処理(サブ)を行うこととなる。   The reset circuit 95 has a lower voltage for releasing the reset signal than the reset circuit 49 that gives the system reset signal to the main control unit 41 in the game control board 40. When the power is turned on, the sub control unit 91 It starts at an earlier stage than the unit 41. On the other hand, the power interruption detection circuit 98 has a voltage that outputs a voltage drop signal lower than the power interruption detection circuit 48 that outputs a voltage drop signal to the main control unit 41 in the game control board 40. The sub control unit 91 detects a power failure at a later stage than the main control unit 41, and performs a power interruption process (sub) described later.

サブ制御部91は、メイン制御部41と同様に、割込機能を備えており、メイン制御部41からのコマンド受信時に割込を発生させて、メイン制御部41から送信されたコマンドを取得し、バッファに格納するコマンド受信割込処理を実行する。また、サブ制御部91は、システムクロックの入力数が一定数に到達する毎、すなわち一定時間間隔(約2ms)毎に割込を発生させて後述するタイマ割込処理(サブ)を実行する。また、サブ制御部91は、メイン制御部41とは異なり、コマンドの受信に基づいて割込が発生した場合には、タイマ割込処理(サブ)の実行中であっても、当該処理に割り込んでコマンド受信割込処理を実行し、タイマ割込処理(サブ)の契機となる割込が同時に発生してもコマンド受信割込処理を最優先で実行するようになっている。また、サブ制御部91にも、停電時においてバックアップ電源が供給されており、バックアップ電源が供給されている間は、RAM91cに記憶されているデータが保持されるようになっている。   Similar to the main control unit 41, the sub control unit 91 has an interrupt function, generates an interrupt when receiving a command from the main control unit 41, and acquires a command transmitted from the main control unit 41. Execute command reception interrupt processing to be stored in the buffer. Further, the sub control unit 91 executes an interrupt process (sub), which will be described later, by generating an interrupt every time the input number of system clocks reaches a certain number, that is, every certain time interval (about 2 ms). Also, unlike the main control unit 41, the sub control unit 91 interrupts the process even when the timer interrupt process (sub) is being executed when an interrupt is generated based on the reception of the command. The command reception interrupt process is executed at the same time, and the command reception interrupt process is executed with the highest priority even if interrupts that trigger the timer interrupt process (sub) occur at the same time. The sub-control unit 91 is also supplied with backup power at the time of a power failure, and the data stored in the RAM 91c is held while the backup power is supplied.

本実施例のスロットマシン1は、設定値に応じてメダルの払出率が変わるものである。詳しくは、後述する内部抽選、ナビストック抽選、上乗せ抽選等の遊技者に対する有利度に影響する抽選において設定値に応じた当選確率を用いることにより、メダルの払出率が変わるようになっている。設定値は1〜6の6段階からなり、6が最も払出率が高く、5、4、3、2、1の順に値が小さくなるほど払出率が低くなる。すなわち設定値として6が設定されている場合には、遊技者にとって最も有利度が高く、5、4、3、2、1の順に値が小さくなるほど有利度が段階的に低くなる。   In the slot machine 1 of the present embodiment, the medal payout rate changes according to the set value. Specifically, the medal payout rate is changed by using a winning probability corresponding to the set value in a lottery that affects the advantage to the player, such as an internal lottery, a navigation stock lottery, and an extra lottery to be described later. The set value is composed of 6 levels of 1 to 6, with 6 being the highest payout rate and the payout rate being lower as the value is decreased in the order of 5, 4, 3, 2, 1. That is, when 6 is set as the set value, the advantage is highest for the player, and as the value decreases in order of 5, 4, 3, 2, 1, the 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 the setting key switch 37 is turned on. When the setting key switch 37 is turned on and the power is turned on, the setting value read from the RAM 41c is displayed on the setting value display 24 as a display value, and the setting value can be changed by operating the reset / setting switch 38. Transition to the changed state. When the reset / setting switch 38 is operated in the setting change state, the display value displayed on the set value display 24 is updated one by one (when the set value 6 is further operated, the set value 1 is set. Return). When the start switch 7 is operated, the display value is determined as the set value. When the setting key switch 37 is turned off, the determined display value (setting value) is stored in the RAM 41c of the main control unit 41, and the state shifts to a state in which the game can proceed.

尚、設定キースイッチ37がon状態で電源投入された場合に、ドア開放検出スイッチ25により前面扉1bの開放に対応する検出がされていることを条件に、設定変更状態に移行する構成としても良く、このような構成とすることで、前面扉1bが開放されていない状態で不正に設定変更がされてしまうことを防止できる。また、前面扉1bの開放に対応する検出がされていることを条件に、設定変更状態に移行する構成においては、設定変更状態に移行後、ドア開放検出スイッチ25により前面扉1bの開放に対応する検出がされなくなっても、設定変更状態を維持することが好ましく、これにより、設定変更中に前面扉1bが一時的に閉じてしまっても、再度、設定変更状態に移行させるための操作を必要とせず、設定変更操作が煩雑となってしまうことがない。また、設定変更状態に移行後、スタートスイッチ7が操作されて設定値が確定した後、設定キースイッチ37がoffとなったときに、ドア開放検出スイッチ25により前面扉1bの開放に対応する検出がされていることを条件に、設定変更状態を終了して遊技の進行が可能な状態に移行する構成としても良く、このような構成においても、前面扉1bが開放されていない状態で不正に設定変更がされてしまうことを防止できる。   Note that when the setting key switch 37 is turned on and the power is turned on, the door opening detection switch 25 detects that the front door 1b is opened, and the configuration shifts to the setting change state. Well, by adopting such a configuration, it is possible to prevent unauthorized setting changes in a state where the front door 1b is not opened. Further, in the configuration that shifts to the setting change state on the condition that the detection corresponding to the opening of the front door 1b is performed, the door opening detection switch 25 supports the opening of the front door 1b after shifting to the setting change state. Even if the detection is not detected, it is preferable to maintain the setting change state. Thus, even if the front door 1b is temporarily closed during the setting change, an operation for shifting to the setting change state is performed again. This is not necessary, and the setting change operation is not complicated. Further, after the transition to the setting change state, when the setting value is determined by operating the start switch 7 and then the setting key switch 37 is turned off, the door opening detection switch 25 detects that the front door 1b is opened. On the condition that the setting change state is terminated, it may be configured to shift to a state in which the game can proceed. Even in such a configuration, the front door 1b is not opened in an unauthorized manner. It is possible to prevent the setting from being changed.

また、設定値を確認するためには、ゲーム終了後、賭数が設定されていない状態で設定キースイッチ37をon状態とすれば良い。このような状況で設定キースイッチ37をon状態とすると、設定値表示器24にRAM41cから読み出された設定値が表示されることで設定値を確認可能な設定確認状態に移行する。設定確認状態においては、ゲームの進行が不能であり、設定キースイッチ37をoff状態とすることで、設定確認状態が終了し、ゲームの進行が可能な状態に復帰することとなる。   In order to check the set value, after the game is over, the setting key switch 37 may be turned on in a state where the bet amount is not set. When the setting key switch 37 is turned on in such a situation, the setting value read out from the RAM 41c is displayed on the setting value display 24, thereby shifting to a setting confirmation state in which the setting value can be confirmed. In the setting confirmation state, the game cannot be progressed, and by setting the setting key switch 37 to the off state, the setting confirmation state is ended and the state in which the game can proceed is returned.

尚、ゲーム終了後、賭数が設定されていない状態で設定キースイッチ37がon状態となったときに、ドア開放検出スイッチ25により前面扉1bの開放に対応する検出がされていることを条件に、設定確認状態に移行する構成としても良く、このような構成とすることで、前面扉1bが開放されていない状態で不正に設定値が確認されてしまうことを防止できる。また、前面扉1bの開放に対応する検出がされていることを条件に、設定確認状態に移行する構成においては、設定確認状態に移行後、ドア開放検出スイッチ25により前面扉1bの開放に対応する検出がされなくなっても、設定確認状態を維持することが好ましく、これにより、設定確認中に前面扉1bが一時的に閉じてしまっても、再度、設定確認状態に移行させるための操作を必要とせず、設定確認操作が煩雑となってしまうことがない。また、設定確認状態に移行後、スタートスイッチ7が操作されて設定値が確定した後、設定キースイッチ37がoffとなったときに、ドア開放検出スイッチ25により前面扉1bの開放に対応する検出がされていることを条件に、設定確認状態を終了して遊技の進行が可能な状態に復帰する構成としても良く、このような構成においても、前面扉1bが開放されていない状態で不正に設定値が確認されてしまうことを防止できる。   It should be noted that, after the game is over, when the setting key switch 37 is turned on with no bet number set, the door opening detection switch 25 detects that the front door 1b has been opened. In addition, a configuration for shifting to the setting confirmation state may be adopted. By adopting such a configuration, it is possible to prevent the setting value from being illegally confirmed without the front door 1b being opened. In addition, in the configuration that shifts to the setting confirmation state on the condition that the detection corresponding to the opening of the front door 1b is performed, the door opening detection switch 25 supports the opening of the front door 1b after the transition to the setting confirmation state. It is preferable to maintain the setting confirmation state even if the detection to be performed is not performed. Thus, even if the front door 1b is temporarily closed during the setting confirmation, an operation for shifting to the setting confirmation state again is performed. This is not necessary and the setting confirmation operation is not complicated. In addition, after shifting to the setting confirmation state, when the set key switch 37 is turned off after the start switch 7 is operated and the set value is confirmed, the door opening detection switch 25 detects that the front door 1b is opened. On the condition that the setting confirmation state is terminated, it may be configured to return to a state in which the game can proceed, and even in such a configuration, the front door 1b is not opened in an unauthorized manner. It is possible to prevent the setting value from being confirmed.

本実施例のスロットマシン1においては、メイン制御部41は、タイマ割込処理(メイン)を実行する毎に、電断検出回路48からの電圧低下信号が検出されているか否かを判定する停電判定処理を行い、停電判定処理において電圧低下信号が検出されていると判定した場合に、次回復帰時にRAM41cのデータが正常か否かを判定するためのデータを設定する電断処理(メイン)を実行する。   In the slot machine 1 of the present embodiment, the main control unit 41 determines whether or not the voltage drop signal from the power interruption detection circuit 48 is detected every time the timer interruption process (main) is executed. When the determination process is performed and it is determined that the voltage drop signal is detected in the power failure determination process, a power interruption process (main) for setting data for determining whether or not the data in the RAM 41c is normal at the next return is performed. Run.

そして、メイン制御部41は、その起動時においてRAM41cのデータが正常であることを条件に、RAM41cに記憶されているデータに基づいてメイン制御部41の処理状態を電断前の状態に復帰させるが、RAM41cデータが正常でない場合には、RAM異常と判定し、RAM異常エラーコードをレジスタにセットしてRAM異常エラー状態に制御し、遊技の進行を不能化させるようになっている。   Then, the main control unit 41 returns the processing state of the main control unit 41 to the state before the power interruption based on the data stored in the RAM 41c on the condition that the data in the RAM 41c is normal at the time of activation. However, if the RAM 41c data is not normal, it is determined that the RAM is abnormal, and the RAM abnormal error code is set in the register to control the RAM abnormal error state, thereby disabling the progress of the game.

エラー状態は、リセット操作(リセット/設定スイッチ38またはリセットスイッチ23の操作)により解除される通常エラー状態と、前述した設定変更状態に移行し、新たな設定値が設定されるまで解除されることがない特殊エラー状態と、を含み、RAM異常エラー状態は、特殊エラー状態であり、一度RAM異常エラー状態に制御されると、設定変更状態に移行し、新たな設定値が設定されるまで解除されることがない。   The error state shifts to a normal error state that is canceled by a reset operation (operation of the reset / setting switch 38 or the reset switch 23) and the setting change state described above, and is canceled until a new setting value is set. Special error status with no error, the RAM abnormal error status is a special error status, and once it is controlled to the RAM abnormal error status, it shifts to the setting change status and is released until a new set value is set. It will not be done.

また、サブ制御部91もタイマ割込処理(サブ)において電断検出回路98からの電圧低下信号が検出されているか否かを判定し、電圧低下信号が検出されていると判定した場合に、次回復帰時にRAM91cのデータが正常か否かを判定するためのデータを設定する電断処理(サブ)を実行する。   Further, the sub control unit 91 also determines whether or not the voltage drop signal from the power interruption detection circuit 98 is detected in the timer interruption process (sub), and when it is determined that the voltage drop signal is detected, A power interruption process (sub) for setting data for determining whether or not the data in the RAM 91c is normal at the next return is executed.

そして、サブ制御部91は、その起動時においてRAM91cのデータが正常であることを条件に、RAM91cに記憶されているデータに基づいてサブ制御部91の処理状態を電断前の状態に復帰させるが、RAM91cのデータが正常でない場合には、RAM異常と判定し、RAM91cを初期化するようになっている。この場合、メイン制御部41と異なり、RAM91cが初期化されるのみで演出の実行が不能化されることはない。   Then, the sub-control unit 91 returns the processing state of the sub-control unit 91 to the state before the power interruption based on the data stored in the RAM 91c on the condition that the data of the RAM 91c is normal at the time of activation. However, if the data in the RAM 91c is not normal, it is determined that the RAM is abnormal, and the RAM 91c is initialized. In this case, unlike the main control unit 41, only the RAM 91c is initialized, and the performance is not disabled.

また、サブ制御部91は、その起動時においてRAM91cのデータが正常であると判断された場合でも、メイン制御部41から設定変更状態に移行した旨を示す後述の設定コマンドを受信した場合、起動後一定時間が経過してもメイン制御部41の制御状態が復帰した旨を示す後述の復帰コマンドも設定コマンドも受信しない場合にも、RAM91cを初期化するようになっている。この場合も、RAM91cが初期化されるのみで演出の実行が不能化されることはない。   In addition, even when it is determined that the data in the RAM 91c is normal at the time of activation, the sub control unit 91 activates when receiving a setting command (described later) indicating that the setting change state has been entered from the main control unit 41. Even when a later-described return command or setting command indicating that the control state of the main control unit 41 has returned is not received even after a certain period of time has elapsed, the RAM 91c is initialized. In this case, the execution of the performance is not disabled only by initializing the RAM 91c.

次に、メイン制御部41のRAM41cの初期化について説明する。メイン制御部41のRAM41cの格納領域のうちの使用可能領域は、遊技RAM領域、未使用領域4、非遊技RAM領域に区分されている。さらに遊技RAM領域は、特別ワーク、重要ワーク、一般ワーク、未使用領域3、遊技スタック領域に区分されている。特別ワークは、設定値が変更されても初期化されないデータが格納されるワークであり、ソフトウェア乱数、設定値、遊技状態を示すデータ等が格納される。重要ワークは、特定の遊技状態(RB、BB)の終了時に初期化すると不都合のあるデータが格納されるワークであり、LEDの表示用データ、入力ポート、出力ポートの入出力データ、遊技時間の計時カウンタ等が格納される。一般ワークは、特定の遊技状態の終了時に初期化可能なデータが格納されるワークであり、停止図柄、メダルの払出枚数等が格納される。未使用領域3は、いずれのプログラムでも使用されないワークである。遊技スタック領域は、後述する遊技プログラムの実行中にメイン制御部41のレジスタから退避したデータが格納される領域である。   Next, initialization of the RAM 41c of the main control unit 41 will be described. The usable area in the storage area of the RAM 41c of the main control unit 41 is divided into a game RAM area, an unused area 4, and a non-game RAM area. Further, the game RAM area is divided into a special work, an important work, a general work, an unused area 3 and a game stack area. The special work is a work that stores data that is not initialized even if the setting value is changed, and stores software random numbers, setting values, data indicating a gaming state, and the like. The important work is a work in which data which is inconvenient if it is initialized at the end of a specific gaming state (RB, BB) is stored. The display data of the LED, the input / output data of the input port, the output port, the game time A time counter and the like are stored. The general work is a work that stores data that can be initialized at the end of a specific gaming state, and stores stop symbols, the number of medals to be paid out, and the like. The unused area 3 is a work that is not used by any program. The game stack area is an area in which data saved from a register of the main control unit 41 during execution of a game program to be described later is stored.

本実施例においてメイン制御部41は、設定キースイッチ37がONの状態での起動時でRAM41cのデータが破壊されているとき、設定キースイッチ37がONの状態での起動時でRAM41cのデータが破壊されていないとき、設定変更状態が終了されたとき、特定の遊技状態(RB、BB)の終了時、1ゲームの終了時、の5つからなる初期化条件が成立した際に、各初期化条件に応じて初期化される領域の異なる5種類の初期化を行う。   In this embodiment, the main control unit 41 has the data in the RAM 41c when the setting key switch 37 is ON and the data in the RAM 41c is destroyed when the setting key switch 37 is ON. Each of the initial conditions is established when the five initialization conditions are satisfied, that is, when the setting change state is terminated, when a specific game state (RB, BB) is terminated, or when one game is terminated. Five types of initialization are performed in different areas to be initialized according to the initialization conditions.

初期化0は、設定キースイッチ37がONの状態での起動時でRAM41cのデータが破壊されているときに行う初期化であり、初期化0では、使用可能領域全ての領域が初期化される。初期化1は、設定キースイッチ37がONの状態での起動時でRAM41cのデータが破壊されていないときに行う初期化であり、初期化1では、遊技RAM領域の特別ワーク以外の領域、非遊技RAM領域の全ての領域が初期化される。初期化2は、設定キースイッチ37がONの状態での起動で設定変更状態が終了された後に行う初期化であり、初期化2では、遊技RAM領域のうち特別ワーク及び遊技スタック領域(使用中)以外の領域が初期化される。初期化3は、特定の遊技状態の終了時に行う初期化であり、初期化3では、遊技RAM領域のうち一般ワーク、未使用領域3及び遊技スタック領域(未使用)が初期化される。初期化4は、1ゲーム終了時に行う初期化であり、初期化4では、遊技RAM領域の未使用領域3及び遊技スタック領域(未使用)が初期化される。尚、設定値や遊技状態を示すデータの格納領域は、特別ワークに割り当てられており、設定キースイッチ37がONの状態での起動時でRAM41cのデータが破壊されていないとき、すなわちRAM41cのデータが正常で設定変更される場合には、設定値や遊技状態を示すデータが保持されることとなる。また、後述のタイマカウンタの格納領域は、重要ワークに割り当てられており、ゲームの終了時や特定の遊技状態の終了時には初期化されることなく保持されることとなる。   Initialization 0 is initialization that is performed when data in the RAM 41c is destroyed when the setting key switch 37 is turned on. In initialization 0, all the usable areas are initialized. . Initialization 1 is initialization that is performed when data in the RAM 41c is not destroyed at the time of startup with the setting key switch 37 being ON. In the initialization 1, an area other than the special work in the game RAM area is not All areas of the game RAM area are initialized. Initialization 2 is initialization that is performed after the setting change state is completed by starting with the setting key switch 37 being ON. In initialization 2, special work and game stack areas (in use) in the game RAM area are used. Areas other than) are initialized. Initialization 3 is initialization performed at the end of a specific gaming state. In initialization 3, the general work, the unused area 3 and the game stack area (unused) in the game RAM area are initialized. Initialization 4 is initialization performed at the end of one game. In initialization 4, the unused area 3 and the game stack area (unused) of the game RAM area are initialized. The storage area for the data indicating the set value and the game state is allocated to the special work, and when the data in the RAM 41c is not destroyed at the time of startup with the setting key switch 37 being ON, that is, the data in the RAM 41c. When the game is normal and the setting is changed, data indicating the setting value and the gaming state is held. In addition, a storage area for a timer counter, which will be described later, is allocated to an important work and is retained without being initialized at the end of the game or at the end of a specific gaming state.

また、本実施例のメイン制御部41は、上述の初期化実行する際には、初期化対象のRAMアドレスとして開始アドレスと終了アドレスが指定されることで、指定された開始アドレスから1バイト分のデータを0で上書きした後、当該1バイトのデータの論理和を計算し、計算結果が0であれば、次のアドレスに移動する処理を、指定された終了アドレスに達するまで繰り返し行うことで、指定されたアドレスの範囲のRAM領域を初期化する。   Further, the main control unit 41 of the present embodiment, when performing the above-described initialization, designates a start address and an end address as the initialization target RAM address, so that one byte from the designated start address. After overwriting the data with 0, calculate the logical sum of the 1-byte data, and if the calculation result is 0, repeat the process of moving to the next address until the specified end address is reached. Initialize the RAM area in the specified address range.

本実施例におけるメイン制御部41は、リセットの発生により起動すると、起動時設定を行う。起動時設定では、メイン制御部41が備えるステータスフラグを初期化する。ステータスフラグは、命令の演算結果や実行結果の状態を保持するデータであり、特に割込の禁止/許可を設定する割込マスタ許可フラグを含む。割込マスタ許可フラグの初期値は割込の禁止を示す値であるため、メイン制御部41は、割込が禁止された状態で起動することとなる。その後、後述のHWパラメータを参照して各種機能を設定した後、プログラム/データ領域に格納されたプログラムに従って、リセットが発生したときに、割込禁止の状態で起動するとともに、その後、最初に実行する初期設定処理を開始する。   When the main control unit 41 in the present embodiment is activated due to the occurrence of a reset, the main control unit 41 performs setting at the time of activation. In the startup setting, a status flag included in the main control unit 41 is initialized. The status flag is data that holds the state of the operation result and execution result of the instruction, and particularly includes an interrupt master permission flag for setting interrupt prohibition / permission. Since the initial value of the interrupt master permission flag is a value indicating prohibition of interrupt, the main control unit 41 is started in a state where interrupt is prohibited. Then, after setting various functions with reference to the HW parameters described later, when a reset occurs according to the program stored in the program / data area, it starts in an interrupt-disabled state and then executes first Start the initial setting process.

メイン制御部41は、初期設定処理において、まず、割込を禁止に設定した後、起動時に設定キースイッチ37がONの状態であるか否かを判定し、起動時に設定キースイッチ37がONの状態であると判定された場合に、設定変更処理に移行し、設定変更処理の開始時にRAM41cの初期化を行う。この際、RAM41cのデータが正常であれば、特別ワークを保持してそれ以外の領域を初期化することで、設定変更後も変更前の制御状態(設定値や遊技状態等)の一部を保持することができる一方で、RAM41cのデータが正常でない場合には、特別ワークを含む使用可能領域の全ての領域を初期化することで、RAM41cのデータに異常を確実に解消することができるようになっている。   In the initial setting process, the main control unit 41 first sets interrupts to be prohibited, and then determines whether or not the setting key switch 37 is in an ON state at startup, and the setting key switch 37 is ON in startup. When it is determined that the state is in the state, the process proceeds to the setting change process, and the RAM 41c is initialized at the start of the setting change process. At this time, if the data in the RAM 41c is normal, a part of the control state (setting value, gaming state, etc.) before the change is changed after the setting change by holding the special work and initializing other areas. On the other hand, if the data in the RAM 41c is not normal, the abnormality in the data in the RAM 41c can be surely solved by initializing all the usable areas including the special work. It has become.

RAM41cを初期化した後、割込を許可に設定し、リセット/設定スイッチ38が操作れる毎に設定値を1〜6の範囲で1ずつ更新し、スタートスイッチ7のONが検出された後、設定キースイッチ37のONが検出されたときの設定値をRAM41cに格納して、設定変更処理を終了させる。   After initialization of the RAM 41c, the interrupt is set to be permitted, the set value is updated by 1 in the range of 1 to 6 every time the reset / setting switch 38 is operated, and after the start switch 7 is detected ON, The setting value when the setting key switch 37 is detected ON is stored in the RAM 41c, and the setting change process is terminated.

このように、メイン制御部41は、割込マスタ許可フラグの初期値が割込の禁止を示す値であり、割込が禁止された状態で起動し、起動後の初期設定処理においても、まず、割込を禁止に設定したうえで、その後の初期設定処理を実行するようになっているので、意図しない割込が発生することを防止できる。   As described above, the main control unit 41 starts with the interrupt master permission flag indicating that the interrupt is prohibited and is disabled, and in the initial setting process after the start, Since the initial setting process is executed after the interruption is set to be prohibited, it is possible to prevent an unintended interruption from occurring.

また、メイン制御部41は、設定変更処理の終了後、遊技単位毎にゲームの進行に応じて段階的に処理を行うメイン処理を実行する。また、メイン処理では、遊技単位毎にRAM41cの初期化を行うとともに、設定変更処理の終了時にもRAM41cの初期化を行う。そして、設定変更処理の終了後、メイン処理においてRAM41cの初期化を行う処理の前の段階からメイン処理を開始するようになっており、設定変更処理の終了後のRAM41cの初期化と、遊技単位毎のRAM41cの初期化と、を共通の処理にて行うことが可能となる。   Moreover, the main control part 41 performs the main process which processes in steps according to progress of a game for every game unit after completion | finish of a setting change process. In the main process, the RAM 41c is initialized for each game unit, and the RAM 41c is also initialized at the end of the setting change process. After the setting change process, the main process starts from the stage before the process of initializing the RAM 41c in the main process. The initialization of the RAM 41c after the setting change process is completed and the game unit It is possible to perform initialization of the RAM 41c for each process by common processing.

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

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

入賞となる役の種類は、遊技状態に応じて定められているが、大きく分けて、メダルの払い出しを伴う小役と、賭数の設定を必要とせずに次のゲームを開始可能となる再遊技役と、遊技者にとって有利な遊技状態への移行を伴う特別役と、がある。以下では、小役と再遊技役をまとめて一般役とも呼ぶ。遊技状態に応じて定められた各役の入賞が発生するためには、後述する内部抽選に当選して、当該役の当選フラグがRAM41cに設定されている必要がある。尚、これら各役の当選フラグのうち、小役及び再遊技役の当選フラグは、当該フラグが設定されたゲームにおいてのみ有効とされ、次のゲームでは無効となるが、特別役の当選フラグは、当該フラグにより許容された役の組合せが揃うまで有効とされ、許容された役の組合せが揃ったゲームにおいて無効となる。すなわち特別役の当選フラグが一度当選すると、例え、当該フラグにより許容された役の組合せを揃えることができなかった場合にも、その当選フラグは無効とされずに、次のゲームへ持ち越されることとなる。   The type of winning combination is determined according to the game state, but it can be roughly divided into a small role with payout of medals and a replay that can start the next game without the need to set the number of bets. There are a game combination and a special combination with a transition to a game state advantageous to the player. Below, a small role and a re-playing role are collectively called a general role. In order for winning of each combination determined according to the gaming state to occur, it is necessary to win an internal lottery to be described later and set a winning flag of the combination in the RAM 41c. Of these winning flags, the winning flags for the small role and the replaying role are valid only in the game in which the flag is set, and are invalid in the next game. It is valid until a combination of combinations permitted by the flag is completed, and is invalid in a game having a combination of combinations permitted. In other words, once the special combination winning flag is won, even if the combination of the combinations permitted by the flag cannot be made, the winning flag is not invalidated and is carried over to the next game. It becomes.

以下、本実施例の内部抽選について説明する。内部抽選は、メイン制御部41が、上記した各役への入賞を許容するか否かを、全てのリール2L、2C、2Rの表示結果が導出される以前(具体的には、スタートスイッチ7の検出時)に決定するものである。内部抽選では、まず、スタートスイッチ7の検出時に内部抽選用の乱数値(0〜65535の整数)を取得する。詳しくは、乱数回路508bにより生成され、乱数回路508bの乱数値レジスタに格納されている値をRAM41cに割り当てられた抽選用ワークに設定する。そして、遊技状態(RT0〜4、RB)に応じて定められた各役について、抽選用ワークに格納された数値データと、現在の遊技状態、賭数及び設定値に応じて定められた各役の判定値数に応じて入賞を許容するか否かの判定が行われる。   Hereinafter, the internal lottery of the present embodiment will be described. In the internal lottery, whether or not the main control unit 41 allows the winning of each combination described above before the display results of all the reels 2L, 2C, and 2R are derived (specifically, the start switch 7 At the time of detection). In the internal lottery, first, a random value for internal lottery (an integer from 0 to 65535) is acquired when the start switch 7 is detected. Specifically, the value generated by the random number circuit 508b and stored in the random number value register of the random number circuit 508b is set as the lottery work assigned to the RAM 41c. And, for each combination determined according to the gaming state (RT0-4, RB), each combination determined according to the numerical data stored in the lottery work, the current gaming state, the number of bets and the set value Whether or not winning is permitted is determined according to the number of determination values.

内部抽選では、内部抽選の対象となる役、現在の遊技状態及び設定値に対応して定められた判定値数を、内部抽選用の乱数値(抽選用ワークに格納された数値データ)に順次加算し、加算の結果がオーバーフローしたときに、当該役に当選したものと判定される。このため、判定値数の大小に応じた確率(判定値数/65536)で役が当選することとなる。   In the internal lottery, the number of judgment values determined in accordance with the internal lottery target, the current gaming state, and the set value are sequentially assigned to the random number for internal lottery (numerical data stored in the lottery work). When the result of addition overflows, it is determined that the winning combination is won. For this reason, a winning combination will be won with a probability (number of determination values / 65536) according to the number of determination values.

そして、いずれかの役の当選が判定された場合には、当選が判定された役に対応する当選フラグをRAM41cに割り当てられた内部当選フラグ格納ワークに設定する。内部当選フラグ格納ワークは、2バイトの格納領域にて構成されており、そのうちの上位バイトが、特別役の当選フラグが設定される特別役格納ワークとして割り当てられ、下位バイトが、一般役の当選フラグが設定される一般役格納ワークとして割り当てられている。詳しくは、特別役が当選した場合には、当該特別役が当選した旨を示す特別役の当選フラグを特別役格納ワークに設定し、一般役格納ワークに設定されている当選フラグをクリアする。また、一般役が当選した場合には、当該一般役が当選した旨を示す一般役の当選フラグを一般役格納ワークに設定する。尚、いずれの役及び役の組合せにも当選しなかった場合には、一般役格納ワークのみクリアする。   If a winning combination of any combination is determined, a winning flag corresponding to the combination determined to be winning is set in the internal winning flag storing work assigned to the RAM 41c. The internal winning flag storage work consists of a 2-byte storage area, of which the upper byte is assigned as the special role storing work in which the winning flag for the special role is set, and the lower byte is the winning of the general role It is assigned as a general role storage work for which a flag is set. Specifically, when a special combination is won, a special combination winning flag indicating that the special combination is won is set in the special combination storing work, and the winning flag set in the general combination storing work is cleared. When a general combination is won, a winning flag for the general combination indicating that the general combination is won is set in the general combination storing work. If no winning combination is selected, only the general winning combination work is cleared.

次に、リール2L、2C、2Rの停止制御について説明する。メイン制御部41は、リールの回転が開始したとき、及びリールが停止し、かつ未だ回転中のリールが残っているときに、ROM41bに格納されているテーブルインデックス及びテーブル作成用データを参照して、回転中のリール別に停止制御テーブルを作成する。そして、ストップスイッチ8L、8C、8Rのうち、回転中のリールに対応するいずれかの操作が有効に検出されたときに、該当するリールの停止制御テーブルを参照し、参照した停止制御テーブルの滑りコマ数に基づいて、操作されたストップスイッチ8L、8C、8Rに対応するリール2L、2C、2Rの回転を停止させる制御を行う。   Next, stop control of the reels 2L, 2C, 2R will be described. The main control unit 41 refers to the table index and table creation data stored in the ROM 41b when the reel starts to rotate and when the reel stops and the reel that is still rotating still remains. A stop control table is created for each reel that is rotating. When any 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 slip of the referred stop control table is referred to. 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 determined as the number of sliding symbols, and it is possible to stop the reel by drawing in a maximum of 4 symbols after detecting a stop operation. In other words, the stop position of the symbol can be designated from a range of a maximum of 5 frames including the stop operation position where the stop operation is detected. In addition, since it is necessary to move one frame to move the reel for one symbol, it is possible to stop the reel by pulling in a maximum of four symbols after detecting the stop operation. The symbol stop position can be designated from a range of up to five symbols including the operation position.

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

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

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

本実施例においてメイン制御部41は、ゲームの開始後、リールの回転を開始させる毎にその時点、すなわちリールの回転を開始させた時点から経過した時間であるゲーム時間を計時するようになっており、1ゲームの終了後、メダルの投入等により規定数の賭数が設定され、ゲームの開始操作が有効となった状態でゲームの開始操作がされたときに、前のゲームのリール回転開始時点から計時を開始したゲーム時間が規定時間(本実施例では4.1秒)以上であれば、すなわち前のゲームのリール回転開始時点から規定時間が経過していれば、ウェイトを発生させず、その時点で当該ゲームにおける遊技のためのリールの回転を開始させる。一方、1ゲームの終了後、メダルの投入等により規定数の賭数が設定され、ゲームの開始操作が有効となった状態でゲームの開始操作がされたときに、前のゲームのリール回転開始時点から計時を開始したゲーム時間が規定時間未満であれば、すなわち前のゲームのリール回転開始時点から規定時間が経過していなければ、ウェイトを発生させて、その時点ではリールの回転を開始させず、前のゲームのリール回転開始時点から計時を開始したゲーム時間が規定時間に到達するまで待機し、規定時間に到達した時点でリールの回転を開始させる。   In the present embodiment, the main control unit 41 measures the game time, which is the time elapsed from the start of the reel rotation every time the reel starts rotating after the game starts. After a game is over, when a specified number of bets are set by inserting medals, etc., and the game start operation is enabled, the reel start of the previous game is started. If the game time that has started counting from the time is more than the specified time (4.1 seconds in this embodiment), that is, if the specified time has elapsed since the reel rotation start time of the previous game, no wait is generated. At that time, the reel for the game in the game is started to rotate. On the other hand, after the end of one game, when a predetermined number of bets are set by inserting medals, etc., and when the game start operation is enabled, the reel rotation of the previous game is started. If the game time that started timing from the time is less than the specified time, that is, if the specified time has not elapsed since the start of reel rotation of the previous game, a wait is generated and the reel starts rotating at that time. First, it waits until the game time that has started timing from the reel rotation start time of the previous game reaches the specified time, and starts rotating the reel when it reaches the specified time.

本実施例においてメイン制御部41は、遊技状態やエラーの発生状況などを示す外部出力信号を出力する制御を行う。これら外部出力信号は、外部出力基板1000、スロットマシン1が設置される遊技店(ホール)の情報提供端子板を介してホールコンピュータなどのホール機器に出力されるようになっている。   In the present embodiment, the main control unit 41 performs control to output an external output signal indicating a gaming state, an error occurrence state, and the like. These external output signals are output to a hall device such as a hall computer via the information output terminal board of the game shop (hall) where the external output board 1000 and the slot machine 1 are installed.

メイン制御部41は、賭数の設定に用いられたメダル数を示すメダルIN信号、入賞の発生により遊技者に付与されたメダル数を示すメダルOUT信号、遊技状態がRB(レギュラーボーナス)中の旨を示すRB中信号、遊技状態がBB(ビッグボーナス)中の旨を示すBB中信号、後述するARTの開始を示すART信号、前面扉1bが開放中の旨を示すドア開放信号、後述する設定変更モードに移行している旨を示す設定変更信号、メダルセレクタの異常を示す投入エラー信号、ホッパーユニット34の異常を示す払出エラー信号をそれぞれ出力する。   The main control unit 41 has a medal IN signal indicating the number of medals used for setting the number of bets, a medal OUT signal indicating the number of medals awarded to the player due to the occurrence of winning, and the gaming state is RB (regular bonus). RB signal indicating the effect, BB signal indicating that the gaming state is BB (big bonus), an ART signal indicating the start of ART described later, a door opening signal indicating that the front door 1b is open, described later A setting change signal indicating the transition to the setting change mode, an insertion error signal indicating an abnormality of the medal selector, and a payout error signal indicating an abnormality of the hopper unit 34 are output.

外部出力基板1000には、リレー回路、パラレル・シリアル変換回路、出力信号毎の端子が設けられ、情報提供端子板の回路と電気的に接続するための接続されるコネクタが設けられている。遊技制御基板40から出力された信号のうち、メダルIN信号、メダルOUT信号、RB中信号、BB中信号、ART信号は、リレー回路を介して、そのままパルス信号として情報提供端子板に出力される。これに対してドア開放信号、設定変更信号、投入エラー信号、払出エラー信号は、パラレル・シリアル変換回路にて、これらの信号を個別に識別可能なシリアル信号であるセキュリティ信号に変換されて情報提供端子板に出力される。   The external output board 1000 is provided with a relay circuit, a parallel / serial conversion circuit, a terminal for each output signal, and a connector to be electrically connected to the circuit of the information providing terminal board. Of the signals output from the game control board 40, the medal IN signal, the medal OUT signal, the RB signal, the BB signal, and the ART signal are directly output as pulse signals to the information providing terminal board via the relay circuit. . On the other hand, the door opening signal, setting change signal, input error signal, and payout error signal are converted into security signals, which are serial signals that can be individually identified by the parallel-serial conversion circuit, and information is provided. Output to the terminal board.

次に、メイン制御部41がサブ制御部91に対して送信するコマンドについて説明する。   Next, commands that the main control unit 41 transmits to the sub control unit 91 will be described.

本実施例では、メイン制御部41は、サブ制御部91に対して、投入枚数コマンド、クレジットコマンド、遊技状態コマンド、ART状態コマンド、内部当選コマンド、フリーズコマンド、ART抽選結果コマンド、リール加速情報コマンド、停止操作時コマンド、滑りコマ数コマンド、停止コマンド、遊技終了コマンド、入賞枚数コマンド、払出開始コマンド、払出終了コマンド、待機コマンド、打止コマンド、エラーコマンド、復帰コマンド、設定コマンド、設定確認コマンド、ドアコマンド、操作検出コマンドを含む複数種類のコマンドを送信する。これらコマンドは、コマンドの種類を示す1バイトの種類データとコマンドの内容を示す1バイトの拡張データとからなり、サブ制御部91は、種類データからコマンドの種類を判別できるようになっている。   In the present embodiment, the main control unit 41 sends, to the sub-control unit 91, an inserted number command, a credit command, a gaming state command, an ART state command, an internal winning command, a freeze command, an ART lottery result command, and a reel acceleration information command. , Stop operation command, sliding frame command, stop command, game end command, winning number command, payout start command, payout end command, standby command, stop command, error command, return command, setting command, setting confirmation command, Multiple types of commands including door commands and operation detection commands are transmitted. These commands consist of 1-byte type data indicating the command type and 1-byte extension data indicating the command content, and the sub-control unit 91 can determine the command type from the type data.

投入枚数コマンドは、メダルの投入枚数、すなわち賭数の設定に使用されたメダル枚数を特定可能なコマンドであり、ゲーム終了後(設定変更後)からゲーム開始までの状態であり、電断復帰時、または規定数の賭数が設定されていない状態においてメダルが投入されるか、MAXBETスイッチ6が操作されて賭数が設定されたときに送信される。また、投入枚数コマンドは、賭数の設定操作がなされたときに送信されるので、投入枚数コマンドを受信することで賭数の設定操作がなされたことを特定可能である。   The inserted number command is a command that can specify the number of inserted medals, that is, the number of medals used for setting the number of bets, and is a state from the end of the game (after changing the setting) to the start of the game. Or, when a prescribed number of bets is not set, a medal is inserted, or when the bet number is set by operating the MAXBET switch 6. The inserted number command is transmitted when the betting number setting operation is performed, so that it is possible to specify that the betting number setting operation has been performed by receiving the inserted number command.

クレジットコマンドは、クレジットとして記憶されているメダル枚数を特定可能なコマンドであり、ゲーム終了後(設定変更後)からゲーム開始までの状態であり、規定数の賭数が設定されている状態において、メダルが投入されてクレジットが加算されたときに送信される。   The credit command is a command that can specify the number of medals stored as credits, and is a state from the end of the game (after setting change) to the start of the game, and in a state where a predetermined number of bets is set, Sent when a medal is inserted and credits are added.

遊技状態コマンドは、当該ゲームの遊技状態(RT0〜4、RB)を特定可能なコマンドであり、スタートスイッチ7が操作されてゲームが開始したときに送信される。   The game state command is a command that can specify the game state (RT0 to 4, RB) of the game, and is transmitted when the start switch 7 is operated to start the game.

ART状態コマンドは、AT中か否か、ART中か否か、後述する規定ゲーム数に到達するまでの残りゲーム数、前兆期間の残りゲーム数、ARTの残りゲーム数を特定可能なコマンドであり、ゲームが開始したときであって、遊技状態コマンドの後に送信される。   The ART state command is a command that can specify whether it is AT, whether it is ART, the number of remaining games until the specified number of games to be described later, the number of remaining games in the precursor period, and the number of remaining games of ART. When the game starts, it is transmitted after the game state command.

内部当選コマンドは、内部抽選結果を特定可能なコマンドであり、スタートスイッチ7が操作されてゲームが開始したときであって、ART状態コマンドの後に送信される。内部当選コマンドは、第1の内部当選コマンドと、第2の内部当選コマンドと、を含み、内部抽選においてナビ報知の対象となる報知対象役が当選した場合に、ナビ報知が行われる状態(AT中、または非AT中でナビ報知が行われる場合)であれば、当選した報知対象役の種類も遊技者にとって有利な停止順も特定可能な第1の内部当選コマンドが送信され、ナビ報知が行われない状態(非AT中でナビ報知が行われない場合)であれば、当選した報知対象役の種類は特定可能であるが遊技者にとって有利な停止順は特定不能な第2の内部当選コマンドが送信される。   The internal winning command is a command that can specify the internal lottery result, and is transmitted when the start switch 7 is operated and the game starts, and is transmitted after the ART state command. The internal winning command includes a first internal winning command and a second internal winning command, and a state in which navigation notification is performed when a notification target role that is a target of navigation notification in the internal lottery is won (AT 1), the first internal winning command that can specify the type of the winning notification target role and the stop order advantageous to the player is transmitted, and the navigation notification is performed. If the state is not performed (when no navigation notification is performed during non-AT), the type of the winning notification target role can be specified, but the stop order advantageous to the player cannot be specified. A command is sent.

遊技状態コマンド、ART状態コマンド、内部当選コマンドは、スタートスイッチ7が操作されてゲームが開始したときに送信されるので、これらコマンドを受信することで、スタートスイッチ7が操作されてゲームが開始したことを特定可能である。   Since the game state command, the ART state command, and the internal winning command are transmitted when the start switch 7 is operated and the game starts, the game is started by operating the start switch 7 by receiving these commands. Can be specified.

フリーズコマンドは、当該ゲームにおいて遊技の進行を所定期間にわたり遅延させるフリーズ状態に制御されるか否か、フリーズ状態に制御される場合にはその種類を特定可能なコマンドであり、ゲームが開始したときであって、内部当選コマンドの送信後に送信される。   The freeze command is a command that can specify whether the game is controlled to a freeze state that delays the progress of the game for a predetermined period of time, or if it is controlled to the freeze state, and when the game starts And transmitted after the internal winning command is transmitted.

ART抽選結果コマンドは、後述のART抽選または上乗せ抽選に当選したか否か、当選したARTのゲーム数または上乗せされるゲーム数を特定可能なコマンドであり、ゲームが開始したときであって、ART抽選または上乗せ抽選が行われたゲームにおいて内部当選コマンドの送信後に送信される。   The ART lottery result command is a command that can specify whether or not an ART lottery or an additional lottery to be described later is won, the number of games of the winning ART or the number of games to be added, and when the game starts, Sent after an internal winning command is transmitted in a game in which a lottery or an extra lottery is performed.

リール加速情報コマンドは、遊技の進行に伴いリールの回転が開始する旨を特定可能なコマンドであり、遊技の進行に伴いリールの回転を開始するときに送信する。尚、フリーズ状態の終了に伴ってリールの回転を開始するときにも送信されるため、フリーズコマンドによりフリーズ状態の開始が特定された後、リール加速情報コマンドを受信することで遊技の進行に伴いリールの回転が開始する旨だけではなく、フリーズ状態の終了も特定可能となる。   The reel acceleration information command is a command that can specify that the rotation of the reel starts with the progress of the game, and is transmitted when the rotation of the reel starts with the progress of the game. It is also transmitted when the reel starts to rotate with the end of the freeze state. Therefore, after the start of the freeze state is specified by the freeze command, the reel acceleration information command is received and the game progresses. Not only the fact that the rotation of the reel starts but also the end of the freeze state can be specified.

停止操作時コマンドは、停止するリールが左リール、中リール、右リールのいずれのリールであるか、該当するリールの停止操作位置の領域番号を特定可能なコマンドであり、各リールの停止操作に伴う停止制御が行われる毎に送信される。   The stop operation command is a command that can specify whether the reel to be stopped is the left reel, the middle reel, or the right reel, and the area number of the stop operation position of the corresponding reel. Sent every time the accompanying stop control is performed.

滑りコマ数コマンドは、停止するリールが左リール、中リール、右リールのいずれのリールであるか、該当するリールの停止操作がされてから停止するまでに移動する滑りコマ数を特定可能なコマンドであり、各リールの停止操作に伴う停止制御が行われる毎に、対応する停止操作時コマンドが送信された後に送信される。   The sliding frame number command is a command that can specify whether the reel to be stopped is a left reel, a middle reel, or a right reel, and the number of sliding frames to be moved from when the corresponding reel is stopped until it stops. Each time stop control associated with the stop operation of each reel is performed, the corresponding stop operation command is transmitted after being transmitted.

停止コマンドは、停止するリールが左リール、中リール、右リールのいずれのリールであるか、該当するリールの停止位置の領域番号を特定可能なコマンドであり、各リールの停止操作に伴う停止制御が行われる毎に、対応する滑りコマ数コマンドが送信された後に送信される。   The stop command is a command that can specify whether the reel to be stopped is a left reel, a middle reel, or a right reel, and the area number of the stop position of the corresponding reel. Stop control associated with the stop operation of each reel Is transmitted after the corresponding sliding frame number command is transmitted.

停止操作時コマンド、滑りコマ数コマンド、停止コマンドは、いずれも停止するリールが左リール、中リール、右リールのいずれのリールであるか、を特定可能であり、かつ各リールの停止操作に伴う停止制御が行われる毎に送信されるので、これらコマンドを受信することで、いずれかのリールの停止操作がされたこと及び停止するリールを特定可能である。   With the stop operation command, the sliding frame number command, and the stop command, it is possible to specify whether the reel to be stopped is the left reel, the middle reel, or the right reel, and accompanying the stop operation of each reel Since it is transmitted every time stop control is performed, by receiving these commands, it is possible to specify that one of the reels has been stopped and the reel to be stopped.

遊技終了コマンドは、遊技が終了された旨を特定可能なコマンドであり、遊技者が第3停止リールを停止させるためにストップスイッチを押下して、そのストップスイッチを離したときに送信される。   The game end command is a command that can specify that the game has ended, and is transmitted when the player presses the stop switch to stop the third stop reel and releases the stop switch.

入賞枚数コマンドは、入賞ラインLNに揃った図柄の組合せ、入賞の有無、並びに入賞の種類、入賞時のメダルの払出枚数を特定可能なコマンドであり、遊技者が第3停止リールを停止させるためにストップスイッチを押下して、そのストップスイッチを離したときであり、遊技終了コマンドの送信後に送信される。   The winning number command is a command that can specify a combination of symbols arranged on the winning line LN, whether or not a winning is received, a type of winning, and a payout number of medals at the time of winning. The player stops the third stop reel. This is when the stop switch is pressed and released, and is transmitted after the game end command is transmitted.

遊技終了コマンド、入賞枚数コマンドは、いずれも遊技者が第3停止リールを停止させるためにストップスイッチを押下して、そのストップスイッチを離したときに送信されるので、これらコマンドを受信することで、1ゲームを進行させるのに必要な全ての操作が終了したことを特定可能である。   Both the game end command and the winning number command are transmitted when the player depresses the stop switch to release the third stop reel and releases the stop switch. It is possible to specify that all operations necessary to advance one game have been completed.

払出開始コマンドは、メダルの払出開始を通知するコマンドであり、入賞やクレジット(賭数の設定に用いられたメダルを含む)の精算によるメダルの払出が開始されたときに送信される。また、払出終了コマンドは、メダルの払出終了を通知するコマンドであり、入賞及びクレジットの精算によるメダルの払出が終了したときに送信される。   The payout start command is a command for notifying the start of payout of medals, and is transmitted when the payout of medals is started by paying out a prize or credit (including medals used for setting the number of bets). The payout end command is a command for notifying the end of payout of medals, and is transmitted when the payout of medals by winning and winning a credit is completed.

待機コマンドは、待機状態へ移行する旨を示すコマンドであり、1ゲーム終了後、賭数が設定されずに終了推定時間(本実施例では60秒)経過して待機状態に移行するとき、クレジット(賭数の設定に用いられたメダルを含む)の精算によるメダルの払出が終了し、払出終了コマンドが送信された後に送信される。   The stand-by command is a command indicating a transition to the stand-by state. When one game is over and the bet amount is not set and the estimated end time (60 seconds in this embodiment) has passed, It is transmitted after the payout of medals by the settlement (including medals used for setting the number of bets) is completed and a payout end command is transmitted.

打止コマンドは、打止状態の発生または解除を示すコマンドであり、BB終了後、エンディング演出待ち時間が経過した時点で打止状態の発生を示す打止コマンドが送信され、リセット操作がなされて打止状態が解除された時点で、打止状態の解除を示す打止コマンドが送信される。   The stop command is a command indicating the occurrence or release of the stop state, and after the end of the BB, the stop command indicating the occurrence of the stop state is transmitted when the ending effect waiting time has elapsed, and the reset operation is performed. When the stop state is released, a stop command indicating the release of the stop state is transmitted.

エラーコマンドは、エラー状態の発生または解除、エラー状態の種類を示すコマンドであり、エラーが判定され、エラー状態に制御された時点でエラー状態の発生及びその種類を示すエラーコマンドが送信され、リセット操作がなされてエラー状態が解除された時点で、エラー状態の解除を示すエラーコマンドが送信される。   An error command is a command that indicates the occurrence or cancellation of an error condition and the type of error condition. When an error is determined and controlled to an error condition, an error command indicating the occurrence and type of the error condition is sent and reset. When the error state is canceled after the operation is performed, an error command indicating the cancellation of the error state is transmitted.

復帰コマンドは、メイン制御部41が電断前の制御状態に復帰した旨を示すコマンドであり、メイン制御部41の起動時において電断前の制御状態に復帰した際に送信される。   The return command is a command indicating that the main control unit 41 has returned to the control state before the power interruption, and is transmitted when the main control unit 41 returns to the control state before the power interruption.

設定コマンドは、設定変更状態の開始または終了、設定変更後設定値を示すコマンドであり、設定変更状態に移行する時点で設定変更状態の開始を示す設定コマンドが送信され、設定変更状態の終了時に設定変更状態の終了及び設定変更後の設定値を示す設定コマンドが送信される。また、設定変更状態への移行に伴ってメイン制御部41の制御状態が初期化されるため、設定開始を示す設定コマンドによりメイン制御部41の制御状態が初期化されたことを特定可能である。   The setting command is a command indicating the start or end of the setting change state and the setting value after the setting change. At the time of transition to the setting change state, a setting command indicating the start of the setting change state is transmitted, and when the setting change state ends. A setting command indicating the end of the setting change state and the setting value after the setting change is transmitted. Further, since the control state of the main control unit 41 is initialized with the transition to the setting change state, it can be specified that the control state of the main control unit 41 has been initialized by the setting command indicating the start of setting. .

設定確認コマンドは、設定確認状態の開始または終了を示すコマンドであり、設定確認状態に移行する際に設定確認開始を示す設定確認コマンドが送信され、設定確認状態の終了時に設定確認終了を示す設定確認コマンドが送信される。   The setting confirmation command is a command that indicates the start or end of the setting confirmation state. A setting confirmation command that indicates the start of setting confirmation is transmitted when entering the setting confirmation state, and the setting confirmation end is indicated when the setting confirmation state ends. A confirmation command is sent.

ドアコマンドは、ドア開放検出スイッチ25の検出状態、すなわちon(開放状態)/off(閉状態)を示すコマンドであり、電源投入時、1ゲーム終了時(ゲーム終了後、次のゲームの賭数の設定が開始可能となる前までの時点)、ドア開放検出スイッチ25の検出状態が変化(onからoff、offからon)した時に送信される。   The door command is a command indicating the detection state of the door opening detection switch 25, that is, on (open state) / off (closed state), when the power is turned on, at the end of one game (after the game is over, the bet number of the next game) Sent before the setting of ”can be started), and when the detection state of the door opening detection switch 25 changes (from on to off, from off to on).

操作検出コマンドは、操作スイッチ類(MAXBETスイッチ6、スタートスイッチ7、ストップスイッチ8L、8C、8R)の検出状態(on/off)を示すコマンドであり、一定時間毎に送信される。   The operation detection command is a command indicating the detection state (on / off) of the operation switches (MAXBET switch 6, start switch 7, stop switches 8L, 8C, 8R), and is transmitted at regular intervals.

これらコマンドのうちドアコマンド及び操作検出コマンド以外のコマンドは、メイン処理において生成され、RAM41cに設けられたコマンドキューに一時格納され、その後のタイマ割込処理(メイン)のコマンド送信処理おいて送信される。   Of these commands, commands other than the door command and the operation detection command are generated in the main process, temporarily stored in the command queue provided in the RAM 41c, and transmitted in the subsequent command transmission process of the timer interrupt process (main). The

一方、ドアコマンドは、タイマ割込処理(メイン)のドア監視処理において生成され、RAM41cに設けられたコマンドキューに一時格納され、その後のタイマ割込処理(メイン)のコマンド送信処理おいて送信される。   On the other hand, the door command is generated in the door monitoring process of the timer interrupt process (main), temporarily stored in the command queue provided in the RAM 41c, and transmitted in the command transmission process of the timer interrupt process (main) thereafter. The

また、操作検出コマンドは、タイマ割込処理(メイン)のコマンド送信処理が10回実行される毎に、スイッチの検出状態に基づいて生成されるとともに、RAM41cに設けられたコマンドキューに一時格納され、その後のタイマ割込処理(メイン)のコマンド送信処理おいて送信される。   The operation detection command is generated based on the detection state of the switch every time the command transmission process of the timer interrupt process (main) is executed 10 times, and is temporarily stored in the command queue provided in the RAM 41c. Then, it is transmitted in the command transmission process of the subsequent timer interrupt process (main).

次に、メイン制御部41が演出制御基板90に対して送信するコマンドに基づいてサブ制御部91が実行する演出の制御について説明する。サブ制御部91は、メイン制御部41からのコマンドを受信した際に、コマンド受信割込処理を実行する。コマンド受信割込処理では、RAM91cに設けられた受信用バッファに、コマンド伝送ラインから取得したコマンドを格納する。   Next, the control of the effect performed by the sub-control unit 91 based on the command transmitted from the main control unit 41 to the effect control board 90 will be described. When the sub control unit 91 receives a command from the main control unit 41, the sub control unit 91 executes a command reception interrupt process. In the command reception interrupt process, the command acquired from the command transmission line is stored in the reception buffer provided in the RAM 91c.

サブ制御部91は、タイマ割込処理(サブ)において、受信用バッファに未処理のコマンドが格納されているか否かを判定し、未処理のコマンドが格納されている場合には、そのうち最も早い段階で受信したコマンドに基づいてROM91bに格納された制御パターンテーブルを参照し、制御パターンテーブルに登録された制御内容に基づいて液晶表示器51、演出効果LED52、スピーカ53、54、リールLED55等の各種演出装置の出力制御を行う。制御パターンテーブルには、複数種類の演出パターン毎に、コマンドの種類に対応する液晶表示器51の表示パターン、演出効果LED52の点灯態様、スピーカ53、54の出力態様、リールLED55の点灯態様等、これら演出装置の制御パターンが登録されており、サブ制御部91は、コマンドを受信した際に、制御パターンテーブルの当該ゲームにおいてRAM91cに設定されている演出パターンに対応して登録された制御パターンのうち、受信したコマンドの種類に対応する制御パターンを参照し、当該制御パターンに基づいて演出装置の出力制御を行う。これにより演出パターン及び遊技の進行状況に応じた演出が実行されることとなる。   In the timer interrupt process (sub), the sub-control unit 91 determines whether or not an unprocessed command is stored in the reception buffer. If an unprocessed command is stored, the sub-control unit 91 is the earliest. The control pattern table stored in the ROM 91b is referred to based on the command received in the stage, and the liquid crystal display 51, effect effect LED 52, speakers 53, 54, reel LED 55, etc. are controlled based on the control contents registered in the control pattern table. Performs output control of various rendering devices. In the control pattern table, the display pattern of the liquid crystal display 51 corresponding to the type of command, the lighting mode of the lighting effect LED 52, the output mode of the speakers 53 and 54, the lighting mode of the reel LED 55, etc. Control patterns of these effect devices are registered, and when the sub-control unit 91 receives a command, the sub-control unit 91 stores the control patterns registered corresponding to the effect patterns set in the RAM 91c in the game of the control pattern table. Among these, the control pattern corresponding to the type of the received command is referred to, and the output control of the rendering device is performed based on the control pattern. Thereby, the production according to the production pattern and the progress of the game is executed.

尚、サブ制御部91は、あるコマンドの受信を契機とする演出の実行中に、新たにコマンドを受信した場合には、実行中の制御パターンに基づく演出を中止し、新たに受信したコマンドに対応する制御パターンに基づく演出を実行するようになっている。すなわち演出が最後まで終了していない状態でも、新たにコマンドを受信すると、受信した新たなコマンドが新たな演出の契機となるコマンドではない場合を除いて実行していた演出はキャンセルされて新たなコマンドに基づく演出が実行されることとなる。   If the sub-control unit 91 receives a new command during execution of an effect triggered by the reception of a certain command, the sub-control unit 91 stops the effect based on the control pattern being executed, and changes to the newly received command. An effect based on the corresponding control pattern is executed. In other words, even if the production is not finished to the end, when a new command is received, the production that was being executed is canceled and a new command is received unless the received new command is not a command that triggers a new production. An effect based on the command is executed.

演出パターンは、内部当選コマンドを受信した際に、内部当選コマンドが示す内部抽選の結果に応じた選択率にて選択され、RAM91cに設定される。演出パターンの選択率は、ROM91bに格納された演出テーブルに登録されており、サブ制御部91は、内部当選コマンドを受信した際に、内部当選コマンドが示す内部抽選の結果に応じて演出テーブルに登録されている選択率を参照し、その選択率に応じて複数種類の演出パターンからいずれかの演出パターンを選択し、選択した演出パターンを当該ゲームの演出パターンとしてRAM91cに設定するようになっており、同じコマンドを受信しても内部当選コマンドの受信時に選択された演出パターンによって異なる制御パターンが選択されるため、結果として演出パターンによって異なる演出が行われることがある。   When the internal winning command is received, the effect pattern is selected at a selection rate corresponding to the result of the internal lottery indicated by the internal winning command, and is set in the RAM 91c. The selection rate of the effect pattern is registered in the effect table stored in the ROM 91b, and when the sub control unit 91 receives the internal winning command, the sub control unit 91 stores the effect pattern in the effect table according to the result of the internal lottery indicated by the internal winning command. With reference to the registered selection rate, one of the effect patterns is selected from a plurality of types of effect patterns according to the selection rate, and the selected effect pattern is set in the RAM 91c as the effect pattern of the game. Even if the same command is received, a different control pattern is selected depending on the effect pattern selected when the internal winning command is received. As a result, different effects may be performed depending on the effect pattern.

本実施例におけるスロットマシン1では、メイン制御部41により、内部抽選結果に応じて遊技者にとって有利となる停止順を遊技補助表示器12の点灯態様により報知するナビ報知を実行可能な報知期間となるアシストタイム(以下、ATという)に制御可能となっている。   In the slot machine 1 according to the present embodiment, the main control unit 41 can provide a notification period in which navigation notification can be executed to notify the stop order that is advantageous to the player according to the internal lottery result by the lighting mode of the game auxiliary display 12. Can be controlled at an assist time (hereinafter referred to as AT).

メイン制御部41は、ATに制御している場合には、遊技状態に応じたナビ対象役に当選することにより、ナビ報知を実行するとともに、サブ制御部91に対して押し順コマンドを送信することで、液晶表示器51等を用いたナビ演出を実行させる。また、本実施例においてメイン制御部41は、ATに制御していない通常状態であっても、一定の条件を満たすことにより、ナビ報知を実行し、ナビ演出を実行させることが可能である。   When the main control unit 41 is controlled by the AT, the main control unit 41 performs navigation notification by winning the navigation target combination corresponding to the gaming state, and transmits a push order command to the sub control unit 91. Thus, a navigation effect using the liquid crystal display 51 or the like is executed. Further, in the present embodiment, the main control unit 41 can execute navigation notification and execute a navigation effect by satisfying certain conditions even in a normal state where the control is not performed by the AT.

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

ROM41bのメモリ領域は、プログラム及び固定データが格納されるプログラム/データ領域(0000H〜26FFH)と、プログラムのタイトル、バージョン等の任意のデータを設定可能なROMコメント領域(2700H〜277FH)と、後述するCALLV命令のサブルーチンの上位アドレス及びタイマ割込処理(メイン)の先頭アドレスが設定されるベクタテーブル領域(2780H〜27A7H)と、メイン制御部41の内部機能をハードウェア的に設定するためのパラメータが設定されるHWパラメータ領域(27A8H〜27FFH)と、アクセスが禁止される未使用領域(2800H〜7FFFH)を含む。   The memory area of the ROM 41b includes a program / data area (0000H to 26FFH) in which programs and fixed data are stored, a ROM comment area (2700H to 277FH) in which arbitrary data such as a title and version of the program can be set, and a later description. Parameters for setting the hardware table of the vector table area (2780H to 27A7H) in which the upper address of the subroutine of the CALLV instruction to be executed and the start address of the timer interrupt process (main) are set, and the internal function of the main control unit 41 HW parameter area (27A8H to 27FFH) in which is set, and an unused area (2800H to 7FFFH) where access is prohibited.

ROM41bにおけるHWパラメータ領域に設定されるパラメータは、プログラム/データ領域で使用するROM領域の最終アドレス(HPRGEND)、アクセス禁止するRAM領域の開始アドレス(HRAMSTAT)及び最終アドレス(HRAMEND)を含む。   The parameters set in the HW parameter area in the ROM 41b include the final address (HPRGEND) of the ROM area used in the program / data area, the start address (HRAMSTAT) and the final address (HRAMEND) of the RAM area for which access is prohibited.

RAM41cのメモリ領域は、ワークとして使用可能な使用可能領域(F000H〜F400H)と、メイン制御部41に搭載されている各機能を制御するためのレジスタ群が格納される内部機能レジスタ領域(F4B0H〜F6FFH)と、アクセスが禁止される未使用領域(F401H〜F4AFH、F700H〜FFFFH)と、を含む。   The memory area of the RAM 41c includes a usable area (F000H to F400H) usable as a work and an internal function register area (F4B0H to F4B0H to store a group of registers for controlling each function mounted on the main control unit 41. F6FFH) and unused areas (F401H to F4AFH, F700H to FFFFH) where access is prohibited.

図7は、メイン制御部41のROM41bにおけるプログラム/データ領域及びRAM41cにおける使用可能領域のアドレスマップである。   FIG. 7 is an address map of the program / data area in the ROM 41b of the main control unit 41 and the usable area in the RAM 41c.

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

尚、遊技の進行とは、遊技を構成する一連のプロセスを進行させることであり、スロットマシンであれば、賭数を設定してゲームを開始可能とする段階、ゲームを開始してリールを回転させる段階、リールを停止させて表示結果を導出させる段階、表示結果に応じてメダル等の価値を付与する段階、を進行させることである。   The progress of the game is to advance a series of processes constituting the game. In the case of a slot machine, the stage where the game can be started by setting the number of bets is started and the reel is rotated. A step of stopping the reel, a step of deriving a display result, and a step of assigning a value such as a medal according to the display result.

遊技の進行に係わる遊技プログラム領域と、遊技の進行に係わらない非遊技プログラムと、がそれぞれ別個に割り当てられているとともに、遊技プログラム領域及び非プログラム領域のうちROM41bの記憶領域において後方に割り当てられていた非プログラム領域の手前の領域は、少なくとも16バイト以上の未使用領域1が割り当てられているため、遊技の進行に係わる遊技プログラム領域と、遊技の進行に係わらない非遊技プログラムと、を記憶領域の違いに応じて容易に特定することができる。   A game program area related to the progress of the game and a non-game program not related to the progress of the game are allocated separately, and are allocated backward in the storage area of the ROM 41b among the game program area and the non-program area. Since the unused area 1 of at least 16 bytes or more is allocated to the area before the non-program area, a storage area for the game program area related to the progress of the game and the non-game program not related to the progress of the game It can be easily specified according to the difference.

また、遊技プログラム領域と遊技データ領域、非遊技プログラム領域と非遊技データ領域はそれぞれ連続する領域に割り当てられる一方、遊技の進行に係わる遊技プログラム領域及び遊技データ領域と、遊技の進行に係わらない非遊技プログラム及び非遊技データ領域と、が少なくとも16バイト以上の未使用領域1を挟んで連続しない領域に割り当てられているため、遊技の進行に係わる遊技プログラム領域及び遊技データ領域と、遊技の進行に係わらない非遊技プログラム及び非遊技データ領域と、を記憶領域の違いに応じて容易に特定することができる。   The game program area and the game data area, the non-game program area and the non-game data area are allocated to continuous areas, respectively, while the game program area and the game data area related to the progress of the game are not related to the progress of the game. Since the game program and the non-game data area are allocated to areas that are not continuous across the unused area 1 of at least 16 bytes or more, the game program area and game data area related to the progress of the game, and the progress of the game Non-game programs and non-game data areas that are not involved can be easily specified according to the difference in storage areas.

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

また、非遊技プログラム領域よりも後方に遊技プログラムが割り当てられ、非遊技プログラム領域よりも後方に割り当てられた遊技プログラムの手前に未使用領域が割り当てられた構成としても良く、このような構成においても遊技の進行に係わる遊技プログラム領域と、遊技の進行に係わらない非遊技プログラムと、を記憶領域の違いに応じて容易に特定することができる。   Also, a configuration may be adopted in which a game program is allocated behind the non-game program area, and an unused area is allocated before the game program allocated behind the non-game program area. A game program area related to the progress of the game and a non-game program not related to the progress of the game can be easily specified according to the difference in the storage area.

また、遊技プログラム領域と、非遊技プログラム領域と、が未使用領域1を挟んで隣接する領域に割り当てられる構成としても良く、このような構成であっても、遊技の進行に係わる遊技プログラム領域と、遊技の進行に係わらない非遊技プログラムと、を記憶領域の違いに応じて容易に特定することができる。   Further, the game program area and the non-game program area may be assigned to areas adjacent to each other with the unused area 1 in between, and even in such a structure, the game program area related to the progress of the game Therefore, it is possible to easily identify a non-game program that is not related to the progress of the game according to the difference in storage area.

また、ROM41bのプログラム/データ領域の未使用領域1、2には、全ての領域に0値が格納されているため、遊技プログラム領域及び遊技データ領域と、非遊技プログラム領域及び非遊技データと、未使用領域1、2と、を容易に区別することができるとともに、未使用領域1、2に不正なデータが格納されている場合でも容易に発見することができる。   In addition, in the unused areas 1 and 2 of the program / data area of the ROM 41b, since 0 values are stored in all areas, a game program area and game data area, a non-game program area and non-game data, The unused areas 1 and 2 can be easily distinguished from each other, and even when invalid data is stored in the unused areas 1 and 2, they can be easily found.

尚、ROM41bのプログラム/データ領域の未使用領域1、2における全ての領域に1が格納される構成としても良く、このような構成とした場合でも、遊技プログラム領域及び遊技データ領域と、非遊技プログラム領域及び非遊技データと、未使用領域1、2と、を容易に区別することができるとともに、未使用領域1、2に不正なデータが格納されている場合でも容易に発見することができる。   It should be noted that 1 may be stored in all of the unused areas 1 and 2 of the program / data area of the ROM 41b. Even in such a configuration, the game program area, the game data area, and the non-game The program area and non-game data can be easily distinguished from the unused areas 1 and 2 and can be easily detected even when invalid data is stored in the unused areas 1 and 2. .

また、遊技プログラム領域と、非遊技プログラム領域と、が別個の領域に割り当たられた構成であれば、遊技プログラム領域と、非遊技プログラム領域と、が隣接する領域にわら当てられる構成としても良く、このような構成であっても遊技の進行に係わる遊技プログラム領域と、遊技の進行に係わらない非遊技プログラムと、を記憶領域の違いに応じて容易に特定することができる。   Further, as long as the game program area and the non-game program area are assigned to separate areas, the game program area and the non-game program area may be assigned to adjacent areas. Even with such a configuration, it is possible to easily identify a game program area related to the progress of the game and a non-game program not related to the progress of the game according to the difference in the storage areas.

また、遊技プログラム領域及び非遊技プログラム領域はいずれも、アドレスを2進数表記した場合に下位4桁の値が同じ0のアドレス(0H)から開始するようになっており、ROM41bのプログラム/データ領域のうち遊技の進行に係る遊技プログラム領域と、遊技の進行に係わらない非遊技プログラム領域と、を他の領域と容易に区別することができる。   The game program area and the non-game program area both start from an address (0H) having the same lower 4 digits when the address is expressed in binary, and the program / data area of the ROM 41b. Among them, the game program area related to the progress of the game and the non-game program area not related to the progress of the game can be easily distinguished from other areas.

また、遊技プログラム領域及び非遊技プログラム領域はいずれも、アドレスを2進数表記した場合に下位4桁の値が同じ0のアドレスから開始するだけでなく、16進数表記した場合に下位1桁の値が同じ0のアドレス(0H)から開始するので、アドレスを2進数表記した場合だけでなく、16進数表記した場合にも遊技プログラム領域と、非遊技プログラム領域と、を他の領域と容易に区別することができる。   In addition, both the game program area and the non-game program area not only start from an address having the same low-order 4 digit value when the address is expressed in binary, but also the low-order 1 digit value when expressed in hexadecimal. Starts from the same 0 address (0H), so that not only when the address is expressed in binary, but also when it is expressed in hexadecimal, the game program area and the non-game program area are easily distinguished from other areas. can do.

尚、遊技プログラム領域及び非遊技プログラム領域がいずれも、アドレスを2進数表記したか、16進数表記したか、に関わらず、下位N(Nは1以上の自然数)桁が同じ値のアドレスから開始する構成であれば、遊技プログラム領域と、非遊技プログラム領域と、を他の領域と容易に区別することが可能であり、例えば、下位N(Nは1以上の自然数)桁の値が同じ1のアドレスから開始する構成でも同様の効果が得られるものである。   It should be noted that both the game program area and the non-game program area start from an address having the same value in the lower N (N is a natural number of 1 or more) regardless of whether the address is expressed in binary or hexadecimal. With this configuration, the game program area and the non-game program area can be easily distinguished from other areas. For example, the value of the lower N (N is a natural number of 1 or more) digits is the same 1 The same effect can be obtained with a configuration starting from the address.

図7(b)に示すように、RAM41cの使用可能領域は、遊技プログラムがワークとして用いる遊技RAM領域と、非遊技プログラムがワークとして用いる非遊技RAM領域と、未使用領域4と、を含んでおり、遊技RAM領域には、特別ワークと、重要ワークと、一般ワークと、未使用領域3と、遊技プログラムがデータを退避する遊技スタック領域と、が含まれ、非遊技RAM領域には、遊技プログラムが参照可能な領域と、遊技プログラムが参照不可能な領域と、非遊技プログラムがデータを退避する非遊技スタック領域と、が含まれる。尚、本実施例では、遊技スタック領域と非遊技スタック領域とをそれぞれ異なる領域に個別に備える構成であるが、遊技プログラム及び非遊技プログラムが共用する一のスタック領域を備える構成としても良い。   As shown in FIG. 7B, the usable area of the RAM 41c includes a game RAM area used as a work by the game program, a non-game RAM area used as a work by the non-game program, and an unused area 4. The game RAM area includes a special work, an important work, a general work, an unused area 3, and a game stack area in which the game program saves data, and the non-game RAM area includes a game An area where the program can be referred to, an area where the game program cannot be referred to, and a non-game stack area where the non-game program saves data are included. In the present embodiment, the game stack area and the non-game stack area are individually provided in different areas. However, the game stack area and the non-game program may be provided with a single stack area.

未使用領域3は、遊技プログラム及び非遊技プログラムのいずれも使用しない領域であり、予め定められた容量の遊技RAM領域に対して余剰となった領域である。   The unused area 3 is an area in which neither a game program nor a non-game program is used, and is an area that is redundant with respect to a game RAM area having a predetermined capacity.

また、未使用領域4は、遊技プログラム及び非遊技プログラムのいずれも使用しない16バイト以上の領域である。遊技RAM領域と、非遊技RAM領域とが、未使用領域4を挟んで連続しない領域に割り当てられているため、遊技の進行に係わる遊技プログラムが用いる遊技RAM領域と、遊技の進行に係わらない非遊技プログラムが用いる非遊技RAM領域と、を記憶領域の違いに応じて容易に特定することができる。   The unused area 4 is an area of 16 bytes or more in which neither a game program nor a non-game program is used. Since the game RAM area and the non-game RAM area are allocated to areas that are not continuous across the unused area 4, the game RAM area used by the game program related to the progress of the game and the non-related not related to the progress of the game The non-game RAM area used by the game program can be easily specified according to the difference in the storage areas.

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

メイン制御部41は、HWパラメータ領域に設定されるパラメータに基づいて、ROM41bのプログラム/データ領域のうちアクセスが禁止された領域へのアクセスがあったとき、RAM41cの使用可能領域のうちアクセスが許可に設定されていない領域へのアクセスがあったとき、ROM41bのうちプログラム/データ領域以外の領域へのアクセスがあったとき、RAM41cのうち使用可能領域以外の領域へのアクセスがあったときに、すなわち正常な動作ではアクセスすることのないメモリ領域へのアクセスがあったときにイリーガルアクセスリセットを発生させることで、遊技の進行を不能化させるので、ROM41bの未使用領域や動作とは関係しない領域、RAM41cの未使用領域等に不正なプログラムが格納された場合であっても、不正なプログラムが実行されてしまうことを防止できる。   Based on the parameters set in the HW parameter area, the main control unit 41 permits access in the usable area of the RAM 41c when an access is prohibited in the program / data area of the ROM 41b. When there is an access to an area that is not set to, when there is an access to an area other than the program / data area in the ROM 41b, and when there is an access to an area other than the usable area in the RAM 41c, In other words, when an access is made to a memory area that is not accessed in normal operation, an illegal access reset is generated to disable the progress of the game. Therefore, an unused area of the ROM 41b or an area unrelated to the operation If an illegal program is stored in an unused area of the RAM 41c, etc. Even, it is possible to prevent illegal program from being executed.

特に本実施例では、ROM41bのうちプログラムによってアクセスが許可されたプログラム/データ領域に遊技プログラム領域と、非遊技プログラム領域と、が割り当てられ、遊技プログラム領域よりも後方の非遊技プログラム領域の手前の領域に未使用領域1が割り当てられるとともに、HWパラメータ領域に設定されるパラメータに基づいて、プログラム/データ領域のうち遊技プログラム領域の先頭アドレスから非遊技プログラムの最終アドレスまでの領域を含む一かたまりの領域(遊技プログラム領域から非遊技データ領域までの領域)へのアクセスを一括して許可に設定する一方で、それ以外の領域、すなわちプログラム/データ領域のうち遊技プログラムや遊技データ、非遊技プログラム、非遊技データが格納されていない非遊技データよりも後の領域へのアクセスが禁止されるため、不正プログラムや不正データによる意図しない制御が行われてしまうことを防止できる。   In particular, in the present embodiment, a game program area and a non-game program area are allocated to the program / data area of the ROM 41b that is permitted to be accessed by the program, and before the non-game program area behind the game program area. An unused area 1 is assigned to the area, and a group including an area from the start address of the game program area to the final address of the non-game program in the program / data area based on the parameters set in the HW parameter area. While the access to the area (the area from the game program area to the non-game data area) is collectively set to be permitted, the other areas, that is, the program / data area of the game program, game data, non-game program, Non-game data is not stored Because it is forbidden access to the area later than trick data, it is possible to prevent conducted unintended control by malware or illegal data.

また、ROM41bのうちプログラムによってアクセスが許可されたプログラム/データ領域において非遊技プログラム領域よりも後方に遊技領域が割り当てられ、非遊技プログラム領域よりも後方の遊技プログラム領域の手前の領域に未使用領域が割り当てられるとともに、HWパラメータ領域に設定されるパラメータに基づいて、プログラム/データ領域のうち非遊技プログラム領域の先頭アドレスから遊技プログラムの最終アドレスまでの領域を含む一かたまりの領域へのアクセスを一括して許可に設定する一方で、それ以外の領域へのアクセスが禁止されるようにしても、不正プログラムや不正データによる意図しない制御が行われてしまうことを防止できる。   In addition, a game area is allocated behind the non-game program area in the program / data area permitted to be accessed by the program in the ROM 41b, and an unused area in the area before the game program area behind the non-game program area Are allocated to a group of areas including the area from the start address of the non-game program area to the final address of the game program based on the parameters set in the HW parameter area. Thus, while the permission is set, even if access to other areas is prohibited, it is possible to prevent unintended control by an unauthorized program or unauthorized data.

尚、プログラム/データ領域に遊技プログラム領域と、非遊技プログラム領域と、が割り当てられ、遊技プログラム領域よりも後方の非遊技プログラム領域の手前の領域に未使用領域1が割り当てられるとともに、プログラム/データ領域のうち遊技プログラム領域を含む一かたまりの領域(遊技プログラム領域から遊技データ領域までの領域)、非遊技プログラムを含む一かたまりの領域(非遊技プログラム領域から非遊技データ領域までの領域)へのアクセスをそれぞれ許可に設定し、他の領域へのアクセスを禁止する構成としても良く、このような構成とした場合でも、プログラム/データ領域のうち遊技プログラムや非遊技プログラムが格納されていない領域へのアクセスが禁止されるため、不正プログラムや不正データによる意図しない制御が行われてしまうことを防止できる。また、ROM41bのうちプログラムによってアクセスが許可されたプログラム/データ領域において非遊技プログラム領域よりも後方に遊技領域が割り当てられ、非遊技プログラム領域よりも後方の遊技プログラム領域の手前の領域に未使用領域が割り当てられるとともに、プログラム/データ領域のうち遊技プログラム領域を含む一かたまりの領域(遊技プログラム領域から遊技データ領域までの領域)、非遊技プログラムを含む一かたまりの領域(非遊技プログラム領域から非遊技データ領域までの領域)へのアクセスをそれぞれ許可に設定し、他の領域へのアクセスを禁止する構成としても良く、このような構成とした場合でも、プログラム/データ領域のうち遊技プログラムや非遊技プログラムが格納されていない領域へのアクセスが禁止されるため、不正プログラムや不正データによる意図しない制御が行われてしまうことを防止できる。   A game program area and a non-game program area are allocated to the program / data area, an unused area 1 is allocated to an area before the non-game program area behind the game program area, and a program / data Out of the areas, a group of areas including the game program area (area from the game program area to the game data area), a group of areas including the non-game program (area from the non-game program area to the non-game data area) A configuration may be adopted in which access is set to permit and access to other areas is prohibited. Even in such a configuration, a game program or a non-game program is not stored in the program / data area. Access is prohibited, so the intent of unauthorized programs and unauthorized data Can be prevented without control will take place. In addition, a game area is allocated behind the non-game program area in the program / data area permitted to be accessed by the program in the ROM 41b, and an unused area in the area before the game program area behind the non-game program area Of the program / data area including the game program area (the area from the game program area to the game data area), and the area including the non-game program (from the non-game program area to the non-game area). (Access to the data area) may be set to permit, and access to other areas may be prohibited. Even in such a configuration, a game program or non-game in the program / data area Access to an area where no program is stored Because There is inhibited, it is possible to prevent conducted unintended control by malware or illegal data.

また、上記では、プログラム/データ領域においてアクセスを許可する領域そのものを設定する構成であるが、プログラム/データ領域においてアクセスを禁止する領域を設定することで、間接的にアクセスを許可する領域が設定される構成としても良い。   In the above description, the area where access is permitted is set in the program / data area. However, by setting the area where access is prohibited in the program / data area, the area where access is indirectly permitted is set. It is good also as a structure to be performed.

メイン制御部41は、HWパラメータ領域に設定されるパラメータに基づいて、プログラム走行を許可する指定エリア以外の領域においてユーザプログラムが実行された場合、すなわち正常な動作ではユーザプログラムが実行されることのない領域でユーザプログラムが実行された場合に、IAT回路506aがIAT発生信号を出力することで、遊技の進行を不能化させるので、ROM41bの未使用領域や動作とは関係しない領域、RAM41cの未使用領域等に不正なプログラムが格納された場合であっても、不正なプログラムが実行されてしまうことを防止できる。   Based on the parameters set in the HW parameter area, the main control unit 41 executes the user program when the user program is executed in an area other than the designated area where the program travel is permitted, that is, in a normal operation. When the user program is executed in an unoccupied area, the IAT circuit 506a outputs an IAT generation signal to disable the progress of the game. Even if an unauthorized program is stored in the use area or the like, it is possible to prevent the unauthorized program from being executed.

特に本実施例では、ROM41bのうちプログラムによってアクセスが許可されたプログラム/データ領域に遊技プログラム領域と、非遊技プログラム領域と、が割り当てられ、遊技プログラム領域よりも後方の非遊技プログラム領域の手前の領域に未使用領域1が割り当てられるとともに、HWパラメータ領域に設定されるパラメータに基づいて、プログラム/データ領域のうち遊技プログラム領域、非遊技プログラム領域の各々について、IAT回路506aがプログラム走行を許可する指定エリアとして設定する一方で、それ以外の領域、すなわちプログラム/データ領域のうち遊技プログラムや非遊技プログラムが格納されていない領域でのプログラム走行が禁止されるため、不正プログラムや不正データによる意図しない制御が行われてしまうことを防止できる。   In particular, in the present embodiment, a game program area and a non-game program area are allocated to the program / data area of the ROM 41b that is permitted to be accessed by the program, and before the non-game program area behind the game program area. The unused area 1 is assigned to the area, and the IAT circuit 506a permits the program running for each of the game program area and the non-game program area in the program / data area based on the parameters set in the HW parameter area. While it is set as a designated area, program running in other areas, that is, areas that do not store gaming programs or non-gaming programs in the program / data area is prohibited. Control line It can be prevented been.

また、ROM41bのうちプログラムによってアクセスが許可されたプログラム/データ領域において非遊技プログラム領域よりも後方に遊技領域が割り当てられ、非遊技プログラム領域よりも後方の遊技プログラム領域の手前の領域に未使用領域が割り当てられるとともに、HWパラメータ領域に設定されるパラメータに基づいて、プログラム/データ領域のうち遊技プログラム領域、非遊技プログラム領域の各々について、IAT回路506aがプログラム走行を許可する指定エリアとして設定する一方で、それ以外の領域でのプログラム走行が禁止されるようにしても、不正プログラムや不正データによる意図しない制御が行われてしまうことを防止できる。   In addition, a game area is allocated behind the non-game program area in the program / data area permitted to be accessed by the program in the ROM 41b, and an unused area in the area before the game program area behind the non-game program area And the IAT circuit 506a sets each of the game program area and the non-game program area of the program / data area as a designated area that permits program running based on the parameters set in the HW parameter area. Thus, even if the program running in other areas is prohibited, it is possible to prevent unintended control due to unauthorized programs and unauthorized data.

尚、プログラム/データ領域に遊技プログラム領域と、非遊技プログラム領域と、が割り当てられ、遊技プログラム領域よりも後方の非遊技プログラム領域の手前の領域に未使用領域1が割り当てられるとともに、HWパラメータ領域に設定されるパラメータに基づいて、プログラム/データ領域のうち遊技プログラム領域の先頭アドレスから非遊技プログラムの最終アドレスまでの領域を含む一かたまりの領域(遊技プログラム領域から非遊技データ領域までの領域)について、IAT回路506aがプログラム走行を許可する指定エリアとして一括して設定し、他の領域でのプログラム走行が禁止される構成としても良く、このような構成とした場合でも、プログラム/データ領域のうち遊技プログラムや非遊技プログラムが格納されていない領域でのプログラム走行が禁止されるため、不正プログラムや不正データによる意図しない制御が行われてしまうことを防止できる。また、ROM41bのうちプログラムによってアクセスが許可されたプログラム/データ領域において非遊技プログラム領域よりも後方に遊技領域が割り当てられ、非遊技プログラム領域よりも後方の遊技プログラム領域の手前の領域に未使用領域が割り当てられるとともに、HWパラメータ領域に設定されるパラメータに基づいて、プログラム/データ領域のうち非遊技プログラム領域の先頭アドレスから遊技プログラムの最終アドレスまでの領域を含む一かたまりの領域(遊技プログラム領域から非遊技データ領域までの領域)について、IAT回路506aがプログラム走行を許可する指定エリアとして一括して設定し、他の領域でのプログラム走行が禁止されるようにしても、不正プログラムや不正データによる意図しない制御が行われてしまうことを防止できる。   A game program area and a non-game program area are allocated to the program / data area, an unused area 1 is allocated to an area before the non-game program area behind the game program area, and an HW parameter area. Based on the parameters set in the above, a group of areas including the area from the start address of the game program area to the final address of the non-game program in the program / data area (area from the game program area to the non-game data area) For example, the IAT circuit 506a may be set as a designated area for permitting program running at once and the program running in other areas may be prohibited. Even in such a configuration, the program / data area Of which game programs and non-game programs are stored Since the program running in the absence area is prohibited, it is possible to prevent conducted unintended control by malware or illegal data. In addition, a game area is allocated behind the non-game program area in the program / data area permitted to be accessed by the program in the ROM 41b, and an unused area in the area before the game program area behind the non-game program area Is assigned, and based on the parameters set in the HW parameter area, a group of areas (from the game program area) including the area from the start address of the non-game program area to the final address of the game program in the program / data area. Even if the IAT circuit 506a is collectively set as a designated area for permitting program running and the program running in other areas is prohibited, the area up to the non-game data area) Unintended control It can be prevented been.

また、上記では、プログラム/データ領域においてプログラム走行を許可する領域そのものを設定する構成であるが、プログラム/データ領域においてプログラム走行を禁止する領域を設定することで、間接的にプログラム走行を許可する領域が設定される構成としても良い。   In the above description, the program / data area is configured to set the area that permits the program travel. However, the program / data area allows the program travel to be indirectly permitted by setting the area that prohibits the program travel. A configuration may be adopted in which an area is set.

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

また、メイン制御部41にプログラム/データ領域に格納されたプログラムを実行させる命令として、CALL命令を含む。   Also, a CALL instruction is included as an instruction for causing the main control unit 41 to execute a program stored in the program / data area.

CALL命令は、メインルーチンまたはサブルーチンにおいて指定されたアドレスに格納されたサブルーチンを呼び出して実行させる命令である。メイン制御部41は、CALL命令によりサブルーチンを呼び出す場合には、呼び出し元のアドレスをスタック領域に格納し、指定されたアドレスに格納されたサブルーチンを呼び出して実行する。そして、当該サブルーチンの終了後、スタック領域に格納されている呼び出し元のアドレス、すなわちCALL命令を実行した呼び出し元のメインルーチンまたはサブルーチンのプログラムに復帰する。   The CALL instruction is an instruction for calling and executing a subroutine stored at an address designated in the main routine or the subroutine. When calling the subroutine by the CALL instruction, the main control unit 41 stores the call source address in the stack area, and calls and executes the subroutine stored at the designated address. After the subroutine is finished, the caller address stored in the stack area, that is, the caller main routine or subroutine program that executed the CALL instruction is returned.

また、CALL命令は、通常のCALL命令と、特殊なCALL命令であるCALLV命令と、を含む。通常のCALL命令は、上位アドレス及び下位アドレスの双方を指定して指定された上位アドレス及び下位アドレスによりアドレスを特定してサブルーチンを呼び出す命令であるのに対して、CALLV命令は、下位アドレスのみ指定することで、ROM41bのベクタテーブル領域に予め設定された上位アドレス及び指定された下位アドレスによりアドレスを特定してサブルーチンを呼び出す命令であり、通常のCALL命令に比較して少ないデータ量でサブルーチンを呼び出すことが可能となる。   The CALL instruction includes a normal CALL instruction and a CALLV instruction which is a special CALL instruction. The normal CALL instruction is an instruction that specifies a high-order address and a low-order address to specify both the high-order address and the low-order address and calls a subroutine while the CALLV instruction specifies only the low-order address. As a result, the subroutine is called by specifying the address by the upper address preset in the vector table area of the ROM 41b and the designated lower address, and the subroutine is called with a smaller amount of data than the normal CALL instruction. It becomes possible.

RST命令は、予め定められた複数の特定アドレスに対応する値を指定することで、指定された値に対応する特定アドレスに格納されたサブルーチンを呼び出して実行させる命令であり、上記した通常のCALL命令やCALLV命令に比較して少ないデータ量でサブルーチンを呼び出すことが可能となる。メイン制御部41は、RST命令によりサブルーチンを呼び出す場合には、呼び出し元のアドレスをスタック領域に格納し、指定された値に対応する特定アドレスに格納されたサブルーチンを呼び出して実行する。そして、当該サブルーチンの終了後、スタック領域に格納されている呼び出し元のアドレス、すなわちRST命令を実行した呼び出し元のメインルーチンまたはサブルーチンに復帰する。   The RST instruction is an instruction to call and execute a subroutine stored at a specific address corresponding to a specified value by specifying a value corresponding to a plurality of predetermined specific addresses. Subroutines can be called with a smaller amount of data than instructions and CALLV instructions. When calling the subroutine by the RST instruction, the main control unit 41 stores the caller's address in the stack area, and calls and executes the subroutine stored at the specific address corresponding to the designated value. After the subroutine is finished, the caller address stored in the stack area, that is, the caller main routine or subroutine that executed the RST instruction is returned to.

ジャンプ命令は、メインルーチンまたはサブルーチンにおいて指定されたアドレスに格納されたプログラムに移動する命令である。メイン制御部41は、ジャンプ命令により指定されたアドレスに格納されたプログラムに移動し、移動先のプログラムを実行する。この場合には、CALL命令やRST命令と異なり、移動後のプログラムが終了しても移動元のプログラムに復帰することはない。   The jump instruction is an instruction to move to a program stored at an address specified in the main routine or subroutine. The main control unit 41 moves to the program stored at the address specified by the jump instruction and executes the destination program. In this case, unlike the CALL instruction or the RST instruction, even if the program after the movement ends, the program does not return to the movement source program.

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

ROM41bに格納された遊技プログラムのうち特に使用頻度の高いサブルーチンは、ROM41bの遊技プログラム領域のうち先頭アドレスが特定値(例えば00H)となる領域に格納されている。一方、ROM41bのベクタテーブル領域には、CALLV命令で呼び出すサブルーチンの上位アドレスとして特定値が設定されている。そして、メイン制御部41は、先頭アドレスの上位アドレスが特定値となるサブルーチンを呼び出すときに、CALLV命令を用いて下位アドレスのみ指定することで、上位アドレスとしてベクタテーブル領域に設定された特定値を特定し、下位アドレスとして指定された下位アドレスを特定し、上位及び下位を合わせたアドレスに格納されたサブルーチンを呼び出して実行する。このため、遊技プログラムのうち特に使用頻度の高いサブルーチンを呼び出す際に用いるアドレスの一部を構成する上位アドレスが特定値として予めベクタテーブルに設定されており、ベクタテーブルに設定された特定値に基づいてアドレスが特定されるため、上位アドレス及び下位アドレスの双方を指定してプログラムを呼び出す通常のCALL命令に比較して少ないデータ量にてサブルーチンを呼び出すことが可能となり、これらのサブルーチンを呼び出す際にアドレスを指定するためのプログラムの無駄を削減することができる。   Among the game programs stored in the ROM 41b, subroutines that are particularly frequently used are stored in an area of the game program area of the ROM 41b where the start address is a specific value (for example, 00H). On the other hand, a specific value is set in the vector table area of the ROM 41b as an upper address of a subroutine called by the CALLV instruction. The main control unit 41 specifies only the lower address using the CALLV instruction when calling a subroutine in which the upper address of the head address has a specific value, thereby specifying the specific value set in the vector table area as the upper address. The lower address specified as the lower address is specified, and the subroutine stored in the address including the upper and lower addresses is called and executed. For this reason, an upper address that constitutes a part of an address used when calling a subroutine that is used frequently in the game program is set in the vector table in advance as a specific value, and is based on the specific value set in the vector table. Since the address is specified, it is possible to call a subroutine with a smaller amount of data compared to a normal CALL instruction that calls a program by specifying both an upper address and a lower address, and when calling these subroutines It is possible to reduce the waste of a program for specifying an address.

尚、ROM41bに格納された非遊技プログラムのうち特に使用頻度の高いサブルーチンを、ROM41bの非遊技プログラム領域のうち先頭アドレスが特定値となる領域に格納するとともに、ROM41bのベクタテーブル領域に、CALLV命令で呼び出すサブルーチンの上位アドレスとして特定値を設定し、メイン制御部41が先頭アドレスの上位アドレスが特定値となるサブルーチンを呼び出すときに、CALLV命令を用いて下位アドレスのみ指定することで、これらのサブルーチンを呼び出して実行する構成とした場合でも、上位アドレス及び下位アドレスの双方を指定してプログラムを呼び出す通常のCALL命令に比較して少ないデータ量にてサブルーチンを呼び出すことが可能となり、これらのサブルーチンを呼び出す際にアドレスを指定するためのプログラムの無駄を削減することができる。   Of the non-game programs stored in the ROM 41b, subroutines that are used frequently are stored in the non-game program area of the ROM 41b in the area where the start address is a specific value, and the CALLV instruction When a specific value is set as an upper address of a subroutine to be called at the time, and the main control unit 41 calls a subroutine in which the upper address of the top address is a specific value, only the lower address is specified by using the CALLV instruction. Even if it is configured to call and execute, subroutines can be called with a smaller amount of data compared to a normal CALL instruction that calls a program by specifying both upper and lower addresses. When calling It is possible to reduce the waste of program for specifying the address.

また、CALLV命令で呼び出す際に用いる上位アドレスを、ベクタテーブル領域ではなく、メイン制御部41の特定のレジスタに設定する構成としても良い。   In addition, the upper address used when calling with the CALLV instruction may be set in a specific register of the main control unit 41 instead of the vector table area.

また、CALLV命令に限らず、アドレスの一部が、ベクタテーブル領域に格納された値、特定のレジスタに設定された値等を用いて特定され、アドレスの残りの部分を指定することで、サブルーチンの格納アドレスが特定可能となる特殊なCALL命令を用いる構成であれば、サブルーチンを呼び出す際にアドレスを指定するためのプログラムの無駄を削減することができる。また、ベクタテーブル領域を構成する複数の領域に、それぞれアドレスよりもデータ量の小さい識別値を割り当て、これら複数の領域にそれぞれサブルーチンの格納アドレスを設定するとともに、識別値を指定することで、識別値に対応する領域に格納されたサブルーチンの格納アドレスを特定可能となる特殊なCALL命令を用いる構成であっても、サブルーチンを呼び出す際にアドレスを指定するためのプログラムの無駄を削減することができる。   In addition to the CALLV instruction, a part of the address is specified by using a value stored in the vector table area, a value set in a specific register, etc. If a special CALL instruction that enables the storage address to be specified is used, it is possible to reduce the waste of a program for designating an address when calling a subroutine. In addition, identification values having a data amount smaller than the addresses are assigned to the plurality of areas constituting the vector table area, the storage addresses of the subroutines are set in the plurality of areas, and the identification values are designated, thereby identifying the areas. Even in a configuration that uses a special CALL instruction that makes it possible to specify a storage address of a subroutine stored in an area corresponding to a value, it is possible to reduce the waste of a program for designating an address when the subroutine is called. .

また、ROM41bに格納された遊技データのうち特に使用頻度の高い遊技データを、ROM41bの遊技データ領域のうち先頭アドレスが特定値となる領域に格納するとともに、ROM41bのベクタテーブル領域に、特殊なLD命令で読み出すデータの上位アドレスとして特定値を設定し、メイン制御部41が先頭アドレスの上位アドレスが特定値となる遊技データを呼び出すときに、特殊なLD命令を用いて下位アドレスのみ指定することで、これらの遊技データを読み出す構成とした場合でも、上位アドレス及び下位アドレスの双方を指定してデータを読み出す通常のLD命令に比較して少ないデータ量にて遊技データを呼び出すことが可能となり、これらの遊技データを読み出す際にアドレスを指定するためのプログラムの無駄を削減することができる。   In addition, among the game data stored in the ROM 41b, game data that is frequently used is stored in the game data area of the ROM 41b in an area where the head address is a specific value, and a special LD is stored in the vector table area of the ROM 41b. By setting a specific value as the upper address of the data to be read by the instruction, and when the main control unit 41 calls game data in which the upper address of the top address becomes the specific value, only the lower address is specified by using a special LD instruction. Even when it is configured to read out these game data, it becomes possible to call game data with a smaller amount of data compared to a normal LD command that reads out data by specifying both the upper address and the lower address. When wasting game data, the program for specifying the address is wasted It can be reduced.

また、ROM41bに格納された非遊技データのうち特に使用頻度の高い非遊技データを、ROM41bの非遊技データ領域のうち先頭アドレスが特定値となる領域に格納するとともに、ROM41bのベクタテーブル領域に、特殊なLD命令で読み出すデータの上位アドレスとして特定値を設定し、メイン制御部41が先頭アドレスの上位アドレスが特定値となる非遊技データを呼び出すときに、特殊なLD命令を用いて下位アドレスのみ指定することで、これらの非遊技データを読み出す構成とした場合でも、上位アドレス及び下位アドレスの双方を指定してデータを読み出す通常のLD命令に比較して少ないデータ量にて非遊技データを呼び出すことが可能となり、これらの非遊技データを読み出す際にアドレスを指定するためのプログラムの無駄を削減することができる。   In addition, among the non-game data stored in the ROM 41b, non-game data that is frequently used is stored in the non-game data area of the ROM 41b in the area where the head address is a specific value, and in the vector table area of the ROM 41b, When a specific value is set as an upper address of data read by a special LD instruction and the main control unit 41 calls non-game data whose upper address of the head address is a specific value, only the lower address is used by using a special LD instruction. Even if it is configured to read these non-game data by designating, the non-game data is called with a smaller amount of data compared to a normal LD instruction that designates both the upper address and the lower address and reads data. It is possible to specify the address when reading these non-game data. It is possible to reduce the waste of lamb.

また、これらの場合でも特殊なLD命令で呼び出す際に用いる上位アドレスを、ベクタテーブル領域ではなく、メイン制御部41の特定のレジスタに設定する構成としても良い。   Even in these cases, the upper address used when calling with a special LD instruction may be set in a specific register of the main control unit 41 instead of the vector table area.

また、アドレスの一部が、ベクタテーブル領域に格納された値、特定のレジスタに設定された値等を用いて特定され、アドレスの残りの部分を指定することで、データの格納アドレスが特定可能となる特殊なLD命令を用いる構成であれば、データを読み出す際にアドレスを指定するためのプログラムの無駄を削減することができる。また、ベクタテーブル領域を構成する複数の領域に、それぞれアドレスよりもデータ量の小さい識別値を割り当て、これら複数の領域にそれぞれデータの格納アドレスを設定するとともに、識別値を指定することで、識別値に対応する領域に格納されたデータの格納アドレスを特定可能となる特殊なLD命令を用いる構成であっても、データを読み出す際にアドレスを指定するためのプログラムの無駄を削減することができる。   Also, a part of the address is specified using the value stored in the vector table area, the value set in a specific register, etc., and the data storage address can be specified by specifying the remaining part of the address If the configuration uses a special LD instruction, the waste of a program for designating an address when reading data can be reduced. In addition, identification values with a data amount smaller than the addresses are assigned to the plurality of areas constituting the vector table area, the data storage addresses are set in the plurality of areas, and the identification values are designated to identify the areas. Even in a configuration using a special LD instruction that can specify the storage address of data stored in an area corresponding to a value, it is possible to reduce the waste of a program for specifying an address when reading data .

メイン制御部41は、システムリセット信号の入力によるシステムリセット、WDT506bによるWDTリセット、前述のイリーガルアクセスリセットが発生することで起動することとなるが、この際、ベクタテーブル領域に設定された値、すなわちCALLV命令のサブルーチンの上位アドレス及びタイマ割込処理(メイン)の先頭アドレスが、プログラム領域のうちプログラム等が実際に格納された領域を示す値であるか、またはFFFFH(未使用のベクタテーブル領域に設定される値)であるか、を判定し、ベクタテーブル領域に設定された値がプログラムが設定される領域外を示す値でもなく、FFFFHでもない場合には、起動しないようになっており、割込の発生等により本来意図していない処理が実行されてしまうことを事前に防止できる。   The main control unit 41 is activated when a system reset by inputting a system reset signal, a WDT reset by the WDT 506b, or the aforementioned illegal access reset occurs. At this time, the value set in the vector table area, that is, The upper address of the subroutine of the CALLV instruction and the start address of the timer interrupt processing (main) are values indicating the area where the program or the like is actually stored in the program area, or FFFFH (in the unused vector table area) If the value set in the vector table area is neither a value outside the area where the program is set nor FFFFH, it will not start. That unintended processing is executed due to an interrupt. It can be prevented before.

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

遊技プログラムは、図8に示すように、遊技プログラムだけに含まれる遊技専用プログラムと、遊技プログラム及び非遊技プログラム双方に含まれる共通判定プログラム及び共通汎用プログラムと、を含む。   As shown in FIG. 8, the game program includes a game dedicated program included only in the game program, and a common determination program and a common general-purpose program included in both the game program and the non-game program.

遊技専用プログラムは、例えば、遊技開始待ち処理、内部抽選処理、リール制御処理、遊技終了時設定処理、外部出力1処理、初期設定処理、電断処理、エラー処理を含む。遊技開始待ち処理は、1ゲームの制御の終了後、メダルの投入等により賭数を設定し、規定数の賭数が設定された後、スタートスイッチ7が操作されることでゲームを開始させるための処理であり、内部抽選処理は、内部抽選を行い、当選フラグの設定等を行う処理であり、リール制御処理は、リールの回転を開始させ、ストップスイッチ8L、8C、8Rが操作されることでリールを停止させるための処理であり、遊技終了時設定処理は、停止したリールの停止位置に応じて入賞が発生したか否かを判定し、メダルの払出、再遊技の設定、遊技状態の移行等を行うための処理であり、外部出力1処理は、外部出力信号のうちメダルIN信号、メダルOUT信号、RB中信号、BB中信号、RT中信号の出力制御を行うための処理であり、初期設定処理は、電源投入時においてゲームを可能な状態とするための処理(バックアップ異常確認、レジスタ初期化等)であり、電断処理は、電断発生時に、その後電断前の状態に復帰できるようにするための処理であり、エラー処理は、各種の異常(メダルの投入異常、メダルセレクタ29内の異物検知、リール回転異常、メダルの払出異常、払出口付近の異物検知、RAM異常、設定値異常、ホッパータンク34aの空、オーバーフロータンク35の満タン検知等)が検知された場合に遊技を不能化するための処理である。また、特に図示しないが、遊技プログラムは、前述のATに関連する処理(ATに係る抽選やナビ報知に係る制御等)も含む。   The game dedicated program includes, for example, a game start waiting process, an internal lottery process, a reel control process, a game end setting process, an external output 1 process, an initial setting process, a power interruption process, and an error process. In the game start waiting process, after the control of one game is completed, the bet number is set by inserting medals, etc., and after the prescribed number of bets is set, the start switch 7 is operated to start the game. The internal lottery process is a process of performing an internal lottery and setting a winning flag, etc., and the reel control process starts the rotation of the reels, and the stop switches 8L, 8C, and 8R are operated. In the game end setting process, it is determined whether or not a winning has occurred according to the stop position of the stopped reel, and medals are paid out, re-game is set, and the game state is set. The external output 1 process is a process for performing output control of the medal IN signal, the medal OUT signal, the RB signal, the BB signal, and the RT signal among the external output signals. First The setting process is a process for making the game possible when the power is turned on (confirm backup error, register initialization, etc.), and the power interruption process can return to the state before the power interruption after the power interruption occurs. The error processing includes various abnormalities (medal insertion abnormality, foreign object detection in the medal selector 29, reel rotation abnormality, medal payout abnormality, foreign object detection near the payout outlet, RAM abnormality, setting, etc. This is a process for disabling the game when a value abnormality, empty hopper tank 34a, full tank overflow tank 35, etc. are detected. In addition, although not particularly illustrated, the game program includes processing related to the above-described AT (a lottery related to AT, control related to navigation notification, and the like).

遊技プログラムにおける共通判定プログラムは、例えば、投入判定処理、払出判定処理を含む。投入判定処理は、投入メダルセンサ31によるメダルの正常な通過であるか否かを判定する処理であり、賭数の設定等のためにメダルの投入が可能な状態において実行される処理である。払出判定処理は、払出センサ34cによるメダルの正常な通過であるか否かを判定する処理であり、小役の入賞時やクレジットの精算時にメダルの払出が許可されている状態において実行される処理である。   The common determination program in the game program includes, for example, an input determination process and a payout determination process. The insertion determination process is a process for determining whether or not the medal is normally passed by the inserted medal sensor 31, and is a process executed in a state where a medal can be inserted for setting a bet amount. The payout determination process is a process for determining whether or not the medal is normally passed by the payout sensor 34c, and is a process executed in a state where the payout of the medal is permitted at the time of winning a small role or at the time of credit settlement. It is.

遊技プログラムにおける共通汎用プログラムは、遊技プログラムを構成する複数種類の処理から呼び出されて実行される処理であり、例えば、カウンタ更新処理、ポート入力処理、データ変換処理、LED表示処理、データ設定処理、コマンド設定処理を含む。カウンタ更新処理は、指定されたカウンタ値を更新するための処理であり、ポート入力処理は、指定されたポートの入力状態を取得する処理であり、データ変換処理は、遊技データを用いて入力されたデータを変換して出力する処理であり、LED表示処理は、指定された値をLEDに表示させるために設定する処理であり、データ設定処理は、指定されたデータを設定する処理であり、コマンド設定処理は、指定されたコマンドをコマンドキューに設定する処理である。   The common general-purpose program in the game program is a process that is called and executed from a plurality of types of processes constituting the game program. For example, a counter update process, a port input process, a data conversion process, an LED display process, a data setting process, Includes command setting processing. The counter update process is a process for updating the designated counter value, the port input process is a process for acquiring the input state of the designated port, and the data conversion process is input using game data. Is a process for converting and outputting the data, the LED display process is a process for setting the specified value to be displayed on the LED, and the data setting process is a process for setting the specified data, The command setting process is a process for setting a specified command in the command queue.

特に、遊技プログラムは、上述のように異常が検知された場合に、異常の種別に応じた解除条件(乱数異常、RAM異常、バックアップ異常、設定値異常の場合は、設定値の再設定、それ以外の異常の場合はリセット操作)が成立するまで遊技の進行を不能化するエラー処理を含む。   In particular, the game program, when an abnormality is detected as described above, the release condition corresponding to the type of abnormality (in the case of random number abnormality, RAM abnormality, backup abnormality, setting value abnormality, resetting of the setting value, In the case of an abnormality other than the above, error processing is included that disables the progress of the game until a reset operation is established.

非遊技プログラムは、図8に示すように、非遊技プログラムだけに含まれる非遊技専用プログラムと、遊技プログラムと同じ共通判定プログラム及び共通汎用プログラムと、を含む。   As shown in FIG. 8, the non-game program includes a non-game dedicated program included only in the non-game program, and a common determination program and a common general-purpose program that are the same as the game program.

非遊技専用プログラムは、例えば、試験信号出力処理、異物検知処理、ドア監視処理、外部出力2処理、投入メダルエラー判定処理、払出メダルエラー判定処理、停電判定処理、通常時コマンド送信処理、電断時コマンド送信処理を含む。試験信号出力処理は、遊技の結果に関連して発生する試験信号を出力するための処理であり、異物検知処理は、投入口センサ26によるメダル通路内の異物を検知するための処理であり、ドア監視処理は、前面扉1bの開放を検知するための処理であり、外部出力2処理は、外部出力信号のうちセキュリティ信号(ドア開放信号、設定変更信号、投入エラー信号、払出エラー信号)の出力制御を行うための処理であり、投入メダルエラー判定処理は、投入メダルセンサ31の検出状況に基づいて投入メダルの逆流検知、メダルセレクタ29内のメダル詰り検知、メダルセレクタ29内の異物検知を行うための処理であり、払出メダルエラー判定処理は、払出センサ34cの検出状況に基づいて払出メダルの逆流検知、払出口付近のメダル詰り検知、払出口付近の異物検知を行うための処理であり、停電判定処理は、電断検出回路48からの電圧低下信号が検出されているか否かを判定するための処理であり、通常時コマンド送信処理は、遊技専用プログラム及び非遊技専用プログラムのコマンド設定処理によりコマンドキューに設定されているコマンドのうち最初に設定された一のコマンドをサブ制御部91に対して送信するための処理であり、電断時コマンド送信処理は、コマンドキューに設定されている全てのコマンドをサブ制御部91に対して送信するための処理である。   Non-game dedicated programs include, for example, test signal output processing, foreign object detection processing, door monitoring processing, external output 2 processing, inserted medal error determination processing, payout medal error determination processing, power failure determination processing, normal time command transmission processing, power interruption Includes time command transmission processing. The test signal output process is a process for outputting a test signal generated in relation to the game result, and the foreign object detection process is a process for detecting a foreign object in the medal path by the insertion port sensor 26. The door monitoring process is a process for detecting the opening of the front door 1b, and the external output 2 process is a security signal (door open signal, setting change signal, input error signal, payout error signal) among external output signals. The inserted medal error determination process is a process for performing output control. Based on the detection status of the inserted medal sensor 31, the inserted medal backflow detection, the medal clogging detection in the medal selector 29, and the foreign object detection in the medal selector 29 are performed. The payout medal error determination process is based on the detection status of the payout sensor 34c, and the medal detection near the payout exit The power failure determination process is a process for determining whether or not a voltage drop signal from the power interruption detection circuit 48 is detected, and is a normal time command. The transmission process is a process for transmitting one command set first in the command queue to the sub-control unit 91 among the commands set in the command queue by the command setting process of the game dedicated program and the non-game dedicated program. The power interruption command transmission process is a process for transmitting all commands set in the command queue to the sub-control unit 91.

非遊技プログラムにおける共通汎用プログラムは、非遊技プログラムを構成する複数種類の処理から呼び出されて実行される処理であり、遊技プログラムにおける共通汎用プログラムと同様に、例えば、カウンタ更新処理、ポート入力処理、データ変換処理、LED表示処理、データ設定処理、コマンド設定処理を含む。   The common general-purpose program in the non-game program is a process that is called and executed from a plurality of types of processes constituting the non-game program.For example, the counter update process, the port input process, Includes data conversion processing, LED display processing, data setting processing, and command setting processing.

非遊技プログラムは、遊技の進行に係わらない検知手段(投入口センサ26、満タンセンサ35a、ドア開放検出スイッチ25)の検出状況に基づいて所定の検出状況か否かを判定する処理を含む。   The non-game program includes processing for determining whether or not a predetermined detection status is based on the detection status of detection means (the slot sensor 26, the full sensor 35a, and the door opening detection switch 25) that are not involved in the progress of the game.

また、非遊技プログラムは、複数の制御状態(遊技開始待ち処理、内部抽選処理、リール制御処理、遊技終了時設定処理)のうち特定の制御状態においては、遊技の進行に係わる検知手段として機能し、他の制御状態においては、遊技の進行に係わらない検出手段として機能する検出手段(例えば、投入メダルセンサ31、払出センサ34c)が、遊技の進行に係わらない制御状態での検出状況に基づいて所定の検出状況か否かを判定する処理(例えば、リール回転中のメダルの投入やメダルの払出が検出されたことによる異常を検知するための投入メダルの検出処理や払出メダルの検出処理)を含む。尚、このような判定処理は、遊技プログラムにおいて遊技の進行に係わる制御状態での検出状況に基づいて所定の検出状況か否かを判定する処理と同じ処理であるため、共通判定プログラムに該当する。   In addition, the non-game program functions as a detection means related to the progress of a game in a specific control state among a plurality of control states (game start waiting process, internal lottery process, reel control process, game end time setting process). In other control states, the detection means (for example, the inserted medal sensor 31 and the payout sensor 34c) functioning as detection means not related to the progress of the game is based on the detection state in the control state not related to the progress of the game. A process for determining whether or not a predetermined detection status is present (for example, a inserted medal detection process or a payout medal detection process for detecting an abnormality caused by detecting the insertion of a medal during reel rotation or the payout of a medal) Including. Such a determination process corresponds to the common determination program because it is the same process as the process for determining whether or not the game program is in a predetermined detection status based on the detection status in the control state related to the progress of the game. .

尚、遊技プログラムに含まれる処理のうち、外部出力1処理、遊技開始待ち処理においてメダルの投入数を計数する処理、流路切替ソレノイド30を切り替える処理、遊技終了時設定処理においてメダルの払出数を計数する処理、ホッパータンク34aが空になったことを検知する処理、ソフトウェア乱数を更新する処理、ATに関連する処理、内部当選コマンドの送信処理等、ゲームの進行に直接的には関連しないものであればこれらの処理の全部または一部が非遊技プログラムに含まれる構成であっても良い。一方で、非遊技プログラムに含まれる処理のうち遊技の進行に間接的に関連するものであればこれらの処理の全部または一部が遊技プログラムに含まれる構成であっても良い。   Of the processes included in the game program, the external output 1 process, the process of counting the number of medals inserted in the game start waiting process, the process of switching the flow path switching solenoid 30, and the number of medals paid out in the game end setting process Processing that does not directly relate to the progress of the game, such as counting, processing for detecting that the hopper tank 34a is empty, processing for updating software random numbers, processing related to AT, transmission processing for internal winning commands, etc. If so, a configuration in which all or part of these processes are included in the non-game program may be employed. On the other hand, as long as the processes included in the non-game program are indirectly related to the progress of the game, all or a part of these processes may be included in the game program.

本実施例においてメイン制御部41のCPU41aは、図9に示すように、遊技プログラムに基づく処理において非遊技プログラムを呼び出して非遊技プログラムに基づく処理を実行し、非遊技プログラムに基づく処理の終了後、遊技プログラムに基づく処理に復帰する。   In the present embodiment, as shown in FIG. 9, the CPU 41a of the main control unit 41 calls a non-game program in the process based on the game program, executes the process based on the non-game program, and ends the process based on the non-game program. Return to the processing based on the game program.

図9に示すように、CPU41aは、原則として遊技プログラムに基づく処理を実行するにあたり、遊技データ領域の遊技データを参照して遊技プログラムに基づく処理を実行するとともに、遊技RAM領域をワークとして使用し、遊技RAM領域の内容を参照及び更新することが可能である。また、CPU41aは、原則として非遊技プログラムに基づく処理を実行するにあたり、非遊技データ領域の遊技データを参照して非遊技プログラムに基づく処理を実行するとともに、非遊技RAM領域をワークとして使用し、非遊技RAM領域の内容を参照及び更新することが可能である。   As shown in FIG. 9, the CPU 41a, in principle, executes the process based on the game program with reference to the game data in the game data area and uses the game RAM area as a work when executing the process based on the game program. The contents of the game RAM area can be referred to and updated. Further, the CPU 41a, in principle, executes processing based on the non-game program by referring to the game data in the non-game data area, and uses the non-game RAM area as a work. It is possible to refer to and update the contents of the non-game RAM area.

また、CPU41aは、遊技プログラムに基づく処理を実行するにあたり、非遊技データ領域を参照することはなく、非遊技RAM領域を更新することはないが、非遊技RAM領域を参照することは可能であり、非遊技プログラムに基づく処理を実行するにあたり、遊技データ領域を参照することはなく、遊技RAM領域を更新することはないが、遊技RAM領域を参照することは可能である。   Further, the CPU 41a does not refer to the non-game data area and does not update the non-game RAM area when executing processing based on the game program, but can refer to the non-game RAM area. In executing the processing based on the non-game program, the game data area is not referred to and the game RAM area is not updated, but the game RAM area can be referred to.

また、遊技プログラムに基づく処理は、非遊技RAM領域のうち遊技プログラムに必要な特定の領域(例えば、異常の検知を示すエラーフラグの設定領域等)のみ参照可能とされており、非遊技プログラムに基づく処理は、遊技RAM領域のうち非遊技プログラムに必要な特定の領域(例えば、内部当選フラグの設定領域、遊技状態の設定領域、RTの設定領域等)のみ参照可能とされている。また、非遊技RAM領域のうち遊技プログラムに基づく処理が参照可能な特定の領域、遊技RAM領域のうち非遊技プログラムに基づく処理が参照可能な特定の領域は、連続するアドレス領域に割り当てられることが好ましいが、一部または全部が連続しないアドレス領域に割り当てられる構成であっても良い。   In addition, the process based on the game program can be referred to only a specific area necessary for the game program in the non-game RAM area (for example, an error flag setting area indicating abnormality detection). In the processing based on the game RAM area, only specific areas required for the non-game program (for example, an internal winning flag setting area, a gaming state setting area, an RT setting area, etc.) can be referred to. In addition, a specific area in the non-game RAM area where the process based on the game program can be referred to, and a specific area in the game RAM area where the process based on the non-game program can be referred to may be assigned to a continuous address area. However, a configuration in which part or all of the address areas are allocated to non-contiguous address areas may be used.

このように本実施例では、遊技の進行に係る遊技プログラムが記憶される遊技プログラム領域と、遊技プログラムが参照する遊技データが読み出し可能に記憶される遊技データ領域と、遊技プログラムが参照するワークデータが読み出し及び書き込み可能に記憶される遊技RAM領域と、遊技プログラムによって呼び出されるプログラムであり、遊技の進行に係わらない非遊技プログラムが記憶される非遊技プログラム領域と、非遊技プログラムが参照する非遊技データが読み出し可能に記憶される非遊技データ領域と、非遊技プログラムが参照するワークデータが読み出し及び書き込み可能に記憶される非遊技RAM領域と、がそれぞれ別個に割り当てられているため、遊技プログラム、遊技データ及び遊技プログラムのワークデータと、非遊技プログラム、非遊技データ及び非遊技プログラムのワークデータと、を記憶領域の違いに応じて容易に特定することができる。   As described above, in this embodiment, a game program area in which a game program related to the progress of a game is stored, a game data area in which game data referred to by the game program is readable and stored, and work data referred to by the game program Is a game RAM area that is stored so as to be readable and writable, a program that is called by the game program, a non-game program area that stores a non-game program that is not related to the progress of the game, and a non-game that is referenced by the non-game program Since a non-game data area in which data is stored in a readable manner and a non-game RAM area in which work data referred to by the non-game program are stored in a readable and writable manner are separately allocated, a game program, Game data and work program work data; Game program, the workpiece data of the non game data and non-game program, can be easily identified according to a difference in the storage area.

また、遊技プログラム領域及び遊技データ領域と、非遊技プログラム領域及び非遊技データ領域と、を分けることで、それぞれの機能に応じてROM41bに占める領域をコンパクトに管理することができるため、各領域において該当するデータを特定することがさらに容易となる。   In addition, by dividing the game program area and the game data area from the non-game program area and the non-game data area, the area occupied by the ROM 41b can be managed in a compact manner according to each function. It becomes easier to specify the corresponding data.

また、本実施例では、遊技プログラムを実行する際に、非遊技RAM領域を参照することが可能であり、非遊技プログラムを実行する際に、遊技RAM領域を参照することが可能であるため、遊技プログラムを実行するにあたり、非遊技プログラムが使用していたデータを簡単に利用することができ、非遊技プログラムを実行するにあたり、遊技プログラムが使用していたデータを簡単に利用することができる。一方で、遊技プログラムを実行する際に、非遊技RAM領域を更新することは不可能であり、非遊技プログラムを実行する際に、遊技RAM領域を更新することは不可能であるため、遊技プログラムが非遊技プログラムの処理に影響を及ぼすことなく、非遊技プログラムが遊技プログラムの処理に影響を及ぼすことがない。   Further, in this embodiment, when executing the game program, it is possible to refer to the non-game RAM area, and when executing the non-game program, it is possible to refer to the game RAM area. In executing the game program, the data used by the non-game program can be easily used, and in executing the non-game program, the data used by the game program can be used easily. On the other hand, it is impossible to update the non-game RAM area when executing the game program, and it is impossible to update the game RAM area when executing the non-game program. Does not affect the processing of the non-game program, and the non-game program does not affect the processing of the game program.

また、本実施例では、遊技プログラムに基づく処理は、非遊技RAM領域のうち遊技プログラムに必要な特定の領域(例えば、異常の検知を示すエラーフラグの設定領域等)のみ参照可能とされており、非遊技プログラムに基づく処理は、遊技RAM領域のうち非遊技プログラムに必要な特定の領域(例えば、内部当選フラグの設定領域、遊技状態の設定領域、RTの設定領域等)のみ参照可能とされているので、遊技プログラムが非遊技RAM領域において参照可能なデータ、非遊技プログラムが参照可能なデータが特定の領域に制限されているため、遊技プログラムまたは非遊技プログラムの参照先を容易に特定することができる。   Further, in this embodiment, the processing based on the game program can be referred to only a specific area required for the game program in the non-game RAM area (for example, an error flag setting area indicating abnormality detection). The processing based on the non-gaming program can be referred to only specific areas (for example, an internal winning flag setting area, a gaming state setting area, an RT setting area, etc.) necessary for the non-gaming program in the gaming RAM area. Therefore, since the data that can be referred to by the game program in the non-game RAM area and the data that can be referred to by the non-game program are limited to a specific area, the reference destination of the game program or the non-game program can be easily specified. be able to.

本実施例のメイン制御部41は、図10(a)に示すように、メイン処理の実行中に、遊技プログラムに基づく処理から非遊技プログラムを呼び出すことが可能であり、図10(b)に示すように、タイマ割込処理の実行中に、遊技プログラムに基づく処理から非遊技プログラムを呼び出すことが可能である。   As shown in FIG. 10A, the main control unit 41 of the present embodiment can call a non-game program from the process based on the game program during the execution of the main process. As shown, it is possible to call a non-game program from a process based on the game program during the execution of the timer interrupt process.

図10(a)に示すように、遊技プログラムに基づくメイン処理から非遊技プログラムを呼び出す際に、当該遊技プログラムでは、呼び出す対象の非遊技プログラムの開始アドレスを特定の領域に設定し、共通呼出処理1を実行する。共通呼出処理1は、遊技プログラムに含まれる処理であり、共通呼出処理1では、遊技プログラムのレジスタを遊技スタック領域に退避させるとともに、スタックポインタ(SP、遊技スタック領域の現在の位置を示すアドレス)を遊技RAM領域のSP退避領域に退避したうえで、割込マスタ許可フラグの値を割込禁止を示す値に設定することでタイマ割込を禁止に設定し、その後、特定の領域に設定されているアドレスの非遊技プログラムを呼び出す。   As shown in FIG. 10 (a), when calling a non-game program from a main process based on a game program, the game program sets the start address of the non-game program to be called in a specific area, and performs a common call process. 1 is executed. The common call process 1 is a process included in the game program. In the common call process 1, the register of the game program is saved in the game stack area and the stack pointer (SP, an address indicating the current position of the game stack area) is stored. Is saved in the SP save area of the game RAM area, and the timer master permission flag is set to a value indicating that the interrupt is prohibited by setting the value of the interrupt master permission flag, and then set to a specific area. Call the non-game program at the address.

これに対して、呼び出された非遊技プログラムに基づいて、非遊技プログラムのスタックポインタ(非SP、非遊技スタック領域の現在の位置を示すアドレス)を設定して、非遊技プログラムの処理を実行した後、呼び出し元の遊技プログラム、すなわち共通呼出処理1に復帰する。   On the other hand, based on the called non-game program, the stack pointer (non-SP, address indicating the current position of the non-game stack area) of the non-game program is set and the process of the non-game program is executed. Thereafter, the game program of the caller, that is, the common call process 1 is restored.

共通呼出処理1に復帰した後には、共通呼出処理1は、割込マスタ許可フラグの値を割込許可を示す値に設定することでタイマ割込の禁止を解除し、遊技スタック領域及びSP退避領域に退避させていたデータに基づいて、レジスタ及び遊技プログラムのスタックポインタを、非遊技プログラムを呼び出す前の状態に復帰させて終了する。   After returning to the common call process 1, the common call process 1 releases the prohibition of the timer interrupt by setting the value of the interrupt master permission flag to a value indicating the permission of the interrupt, and saves the game stack area and the SP. Based on the data saved in the area, the register and the stack pointer of the game program are returned to the state before calling the non-game program, and the process ends.

このように、本実施例では、遊技プログラムが非遊技プログラムを呼び出す際に、共通呼出処理1により、割込を禁止に設定し、当該非遊技プログラムから遊技プログラムに復帰する際に、割込の禁止を解除するので、非遊技プログラムが実行されている期間にわたり割込を禁止に設定することができる。   As described above, in this embodiment, when the game program calls the non-game program, the interrupt is prohibited by the common call processing 1 and when returning from the non-game program to the game program, Since the prohibition is released, it is possible to set the interrupt to be prohibited over a period during which the non-game program is being executed.

尚、非遊技プログラムが、遊技プログラムに基づくメイン処理から呼び出された場合に、当該非遊技プログラムが、最初に割込を禁止に設定したうえで、各種処理を実行し、当該非遊技プログラムの最後に割込の禁止を解除する構成としても良く、このような構成とすることで、本実施例と同様に、非遊技プログラムが実行されている期間にわたり割込を禁止に設定することができる。また、非遊技プログラムにより割込の禁止及び解除の設定が行われるため、遊技プログラムの共通呼出処理1において割込の禁止の設定及び解除する必要がなくなり、遊技プログラムの容量を削減することができる。   In addition, when a non-game program is called from the main process based on the game program, the non-game program first disables interrupts and then executes various processes. The configuration may be such that the prohibition of the interrupt is canceled, and by adopting such a configuration, the interrupt can be set to be prohibited during the period during which the non-game program is executed, as in the present embodiment. In addition, since the prohibition and cancellation of interrupts are set by a non-game program, it is not necessary to set and cancel the prohibition of interrupts in the common call processing 1 of the game program, and the capacity of the game program can be reduced. .

図10(b)に示すように、遊技プログラムに基づくタイマ割込処理から非遊技プログラムを呼び出す際に、当該遊技プログラムでは、呼び出す対象の非遊技プログラムの開始アドレスを特定の領域に設定し、共通呼出処理2を実行する。共通呼出処理2では、遊技プログラムのレジスタを遊技スタック領域に退避させるとともに、スタックポインタ(SP、遊技スタック領域の現在の位置を示すアドレス)を遊技RAM領域のSP退避領域に退避したうえで、特定の領域に設定されているアドレスの非遊技プログラムを呼び出す。   As shown in FIG. 10B, when a non-game program is called from a timer interrupt process based on a game program, the game program sets the start address of the non-game program to be called in a specific area, Call process 2 is executed. In the common call process 2, the register of the game program is saved in the game stack area, and the stack pointer (SP, the address indicating the current position of the game stack area) is saved in the SP save area of the game RAM area, and then specified. Call the non-game program at the address set in the area.

これに対して、呼び出された非遊技プログラムは、非遊技プログラムのスタックポインタを設定し、非遊技プログラムの処理を実行した後、呼び出し元の共通呼出処理2に復帰する。   On the other hand, the called non-game program sets the stack pointer of the non-game program, executes the process of the non-game program, and then returns to the common call process 2 of the caller.

共通呼出処理2に復帰した後には、共通呼出処理2は、遊技スタック領域及びSP退避領域に退避させていたデータに基づいてレジスタ及び遊技プログラムのスタックポインタを、非遊技プログラムを呼び出す前の状態に復帰させて終了する。   After returning to the common call process 2, the common call process 2 returns the register and the stack pointer of the game program to the state before calling the non-game program based on the data saved in the game stack area and the SP save area. Return and exit.

このように、共通呼出処理2では、呼出共通処理1と異なり、タイマ割込を禁止に設定及び解除しないが、上述のようにメイン制御部41では、タイマ割込処理の実行中に他の割込処理が実行されることが禁止されているので、非遊技プログラムが実行されている期間にわたり割込を禁止できる。   As described above, in the common call process 2, unlike the call common process 1, the timer interrupt is not set to be prohibited or released. However, as described above, the main control unit 41 performs other interrupts during the execution of the timer interrupt process. Since the execution of the interruption process is prohibited, the interruption can be prohibited over the period during which the non-game program is executed.

本実施例では、遊技プログラムが、共通呼出処理1及び共通呼出処理2を実行することで、非遊技プログラムを呼び出して非遊技プログラムを実行する際に、遊技プログラムが実際に使用していたレジスタであるか否かに関わらずレジスタの全ての領域を退避させて保護する処理が行われるため、遊技プログラムに復帰する際に、非遊技プログラムが呼び出された時点の状態から確実に復帰することができる。   In the present embodiment, the game program executes the common call process 1 and the common call process 2 to call the non-game program and execute the non-game program. Regardless of whether or not there is, processing to save and protect all areas of the register is performed, so when returning to the game program, it is possible to reliably return from the state when the non-game program was called .

尚、共通呼出処理1及び共通呼出処理2を実行することなく、遊技プログラムにおいて遊技プログラムに基づく処理から非遊技プログラムを呼び出す直前に遊技プログラムが使用していたレジスタの値を保護し、非遊技プログラムに基づく処理が全て終了した後に、遊技プログラムに復帰した最初の段階で保護されているレジスタの値を復帰させる構成としても良く、このような構成とすることで、非遊技プログラムの呼び出し前にレジスタの保護処理が行われ、非遊技プログラムからの復帰後にレジスタの復旧処理が行われるため、非遊技プログラムによってレジスタに記憶されたデータが遊技プログラムに影響を及ぼすことがない。   In addition, without executing the common call process 1 and the common call process 2, the value of the register used by the game program immediately before calling the non-game program from the process based on the game program in the game program is protected. After all the processing based on the above is completed, the protected register value may be restored at the initial stage of returning to the game program. With such a configuration, the register is called before the non-game program is called. Since the protection process is performed and the register restoration process is performed after the return from the non-game program, the data stored in the register by the non-game program does not affect the game program.

また、非遊技プログラムが呼び出された場合に、当該非遊技プログラムが、最初に遊技プログラムのスタックポインタ及びレジスタを退避させ、当該非遊技プログラムの最後に遊技プログラムのスタックポインタ及びレジスタを復帰させる構成としても良く、このような構成とすることで、本実施例と同様に、遊技プログラムに復帰する際に、非遊技プログラムが呼び出された時点の状態から確実に復帰することができるとともに、遊技プログラムの容量を削減することができる。   In addition, when a non-game program is called, the non-game program first saves the stack pointer and register of the game program, and returns the stack pointer and register of the game program to the end of the non-game program. With this configuration, as in this embodiment, when returning to the game program, it is possible to reliably return from the state when the non-game program is called, Capacity can be reduced.

次に、本実施例におけるメイン制御部41が実行する各種制御内容を、図11〜図18に基づいて以下に説明する。   Next, various control contents executed by the main control unit 41 in the present embodiment will be described below with reference to FIGS.

まず、メイン制御部41が起動時に実行する初期設定処理について説明する。メイン制御部41は、リセットの発生により起動すると、起動時設定を行う。起動時設定では、メイン制御部41が備えるステータスフラグを初期化する。ステータスフラグは、命令の演算結果や実行結果の状態を保持するデータであり、特に割込の禁止/許可を設定する割込マスタ許可フラグを含む。割込マスタ許可フラグの初期値は割込の禁止を示す値であるため、メイン制御部41は、割込が禁止された状態で起動することとなる。その後、メイン制御部41は、HWパラメータを参照して各種機能を設定した後、プログラム/データ領域に格納されたプログラムに従って初期設定処理を行う。尚、本実施例において初期設定処理は、遊技プログラムに含まれる。   First, an initial setting process that is executed by the main control unit 41 at startup will be described. When the main control unit 41 is activated due to the occurrence of a reset, the main control unit 41 performs setting at the time of activation. In the startup setting, a status flag included in the main control unit 41 is initialized. The status flag is data that holds the state of the operation result and execution result of the instruction, and particularly includes an interrupt master permission flag for setting interrupt prohibition / permission. Since the initial value of the interrupt master permission flag is a value indicating prohibition of interrupt, the main control unit 41 is started in a state where interrupt is prohibited. After that, the main control unit 41 sets various functions with reference to the HW parameter, and then performs an initial setting process according to the program stored in the program / data area. In this embodiment, the initial setting process is included in the game program.

図11に示すように、初期設定処理では、まず、割込マスタ許可フラグの値を割込禁止を示す値に設定することで割込を禁止する(Sa1)。前述のようにメイン制御部41は、割込禁止の状態で起動することとなるが、Sa1では、再度、割込を禁止する。次いで、初期化データをセットし(Sa2)、パラレル出力ポート513を含む各出力ポートを初期化する(Sa3)。次いで、内蔵レジスタの設定を行う(Sa4)。   As shown in FIG. 11, in the initial setting process, interrupts are first prohibited by setting the value of the interrupt master permission flag to a value indicating that interrupts are prohibited (Sa1). As described above, the main control unit 41 is started in an interrupt-inhibited state, but in Sa1, the interrupt is again prohibited. Next, initialization data is set (Sa2), and each output port including the parallel output port 513 is initialized (Sa3). Next, the built-in register is set (Sa4).

次いで、電源電圧が正常か否かを判定する(Sa5)。電源電圧が正常でない場合には正常になるまで判定を繰り返す。電源電圧が正常である場合には割込ベクタの上位アドレスをセットする(Sa6)。そして、RAM41cへのアクセスを許可し(Sa7)、スタックポインタを初期化する(Sa8)。   Next, it is determined whether or not the power supply voltage is normal (Sa5). If the power supply voltage is not normal, the determination is repeated until normal. If the power supply voltage is normal, the upper address of the interrupt vector is set (Sa6). Then, access to the RAM 41c is permitted (Sa7), and the stack pointer is initialized (Sa8).

次いで、RAM41cの使用可能領域のうち遊技RAM領域(遊技スタック領域、未使用領域3を含む、F000H〜F1FFHの領域)のRAMパリティを計算する(Sa9)。そして、計算したRAMパリティが0か否かを判定する(Sa10)。後述のように前回の電源遮断時に正常に電断処理(メイン)が行われていれば、RAMパリティが0になるはずであるので、Sd10のステップにおいてRAMパリティが0でなければ、RAM41cの遊技RAM領域に格納されているデータが正常ではなく、この場合にはSa13ステップに進み、破壊診断用データをクリアする(Sa13)。一方、RAMパリティが0になる場合には、更に遊技RAM領域に格納されている破壊診断用データを取得し(Sa11)、取得した破壊診断用データが正しいか否かを判定し(Sa12)、破壊診断用データをクリアする(Sa13)。   Next, the RAM parity of the game RAM area (game stack area, F000H to F1FFH including the unused area 3) in the usable area of the RAM 41c is calculated (Sa9). Then, it is determined whether or not the calculated RAM parity is 0 (Sa10). As will be described later, if the power-off process (main) is normally performed at the time of the previous power-off, the RAM parity should be 0. If the RAM parity is not 0 in the step of Sd10, the game of the RAM 41c The data stored in the RAM area is not normal. In this case, the process proceeds to step Sa13 to clear the destruction diagnosis data (Sa13). On the other hand, when the RAM parity becomes 0, the data for destructive diagnosis stored in the game RAM area is further acquired (Sa11), and it is determined whether the acquired data for destructive diagnosis is correct (Sa12), Destructive diagnosis data is cleared (Sa13).

次いで、設定キースイッチ37がON状態か否かを判定する(Sa14)。設定キースイッチ37がON状態の場合には、タイマ割込の設定を行う(Sa19)。具体的には、所定時間毎に定期的にタイマ割込が実行されるようにメイン制御部41に内蔵されているタイマ回路509のレジスタの設定を行なう。本実施例では約0.56msに相当する値が所定のレジスタ(時間定数レジスタ)に設定されることで、約0.56ms毎に定期的にタイマ割込が発生することとなる。また、タイマ回路509ではレジスタの設定が行われることにより、タイマが初期化され、初期値から計時を開始することになる。Sa19のステップにおけるタイマ割込の設定が終了すると設定変更処理に移行する。   Next, it is determined whether or not the setting key switch 37 is in an ON state (Sa14). When the setting key switch 37 is in the ON state, a timer interrupt is set (Sa19). Specifically, the register of the timer circuit 509 built in the main control unit 41 is set so that a timer interrupt is periodically executed every predetermined time. In this embodiment, a value corresponding to about 0.56 ms is set in a predetermined register (time constant register), so that a timer interrupt is periodically generated every about 0.56 ms. In the timer circuit 509, the register is set, so that the timer is initialized and starts counting from the initial value. When the timer interrupt setting in step Sa19 is completed, the process proceeds to a setting change process.

一方、設定キースイッチ37がOFF状態の場合には、RAM41cの記憶内容が破壊されているか否かを判定する(Sa15)。Sa15のステップでは、後述するRAM異常フラグが設定されているか否か、Sa10、Sa12の判定に基づきRAM41cの記憶内容が破壊されているか否かを判定する。RAM41cの記憶内容が破壊されていない場合には、復帰コマンドをサブ制御部91に送信する(Sa16)。尚、RAM41cの記憶内容が破壊されていない場合とは、RAM異常フラグがセットされておらず、かつSa10のステップにおいてRAMパリティが0であると判定され、さらにSa12のステップにおいて破壊診断用データが正しいと判定された場合である。   On the other hand, when the setting key switch 37 is in the OFF state, it is determined whether or not the stored contents of the RAM 41c are destroyed (Sa15). In step Sa15, it is determined whether a RAM abnormality flag, which will be described later, is set, and whether the storage content of the RAM 41c is destroyed based on the determinations in Sa10 and Sa12. If the stored contents of the RAM 41c are not destroyed, a return command is transmitted to the sub-control unit 91 (Sa16). In the case where the stored contents of the RAM 41c are not destroyed, it is determined that the RAM abnormality flag is not set and the RAM parity is 0 in the step Sa10, and further, the destruction diagnosis data is obtained in the step Sa12. This is the case when it is determined to be correct.

Sa16のステップの後、RAM41cの遊技RAM領域に記憶されているデータに基づいて全てのレジスタを復帰させ(Sa17)、Sa19のステップと同様のタイマ割込の設定を行う(Sa18)。そして、後述のタイマ割込処理(メイン)のSd24の処理に移行する。これにより電断前のRAM41cの遊技RAM領域及び非遊技RAM領域の状態、電断前に実行していた処理に復帰することとなる。   After the step of Sa16, all the registers are restored based on the data stored in the game RAM area of the RAM 41c (Sa17), and the timer interrupt setting similar to the step of Sa19 is performed (Sa18). Then, the process proceeds to Sd24 in a timer interrupt process (main) described later. As a result, the state of the game RAM area and the non-game RAM area of the RAM 41c before the power interruption and the processing executed before the power interruption are restored.

また、Sa15のステップにおいてRAM41cの記憶内容が破壊されている場合には、RAM41cの記憶内容が正常でないことを示すRAM異常フラグをRAM41cにセットし(Sa20)、エラー処理に移行する。エラー処理では、遊技の進行が不能化される。また、RAM異常フラグが設定されて移行したエラー状態では、設定キースイッチ37をON状態にして電源スイッチ39をONにすることによって、設定変更処理に移行させることにより解除することができる。一方、設定キースイッチ37をON状態にせずに電源スイッチ39をONにした場合には、RAM異常フラグが設定されたままであり、Sa15のステップにおいてRAMが破壊されていると判定されることで、再びエラー状態となる。   If the stored content of the RAM 41c is destroyed in step Sa15, a RAM abnormality flag indicating that the stored content of the RAM 41c is not normal is set in the RAM 41c (Sa20), and the process proceeds to error processing. In error processing, the progress of the game is disabled. Further, the error state that has been shifted after the RAM abnormality flag is set can be canceled by shifting to the setting change process by setting the setting key switch 37 to ON and turning on the power switch 39. On the other hand, when the power switch 39 is turned on without turning the setting key switch 37 on, the RAM abnormality flag remains set, and it is determined that the RAM is destroyed in step Sa15. An error condition occurs again.

次に、メイン制御部41が実行する設定変更処理について説明する。尚、本実施例において設定変更処理は、遊技プログラムに含まれる。   Next, the setting change process which the main control part 41 performs is demonstrated. In the present embodiment, the setting change process is included in the game program.

図12に示すように、メイン制御部41は、まず、RAM41cの開始アドレス、すなわち使用可能領域の開始アドレス(F000H)をレジスタにセットする(Sb1)。次いで、図11に示したSa15のステップと同様にRAM41cの記憶内容が破壊されているか否かを判定する(Sb2)。RAM41cの内容が破壊されていない場合、すなわちRAM内容が異常でない場合には、設定変更開始時の初期化対象RAMの先頭アドレス(使用可能領域のうち重要ワークが記憶されている領域の最終アドレスの次のアドレス)をレジスタにセットする(Sb3)。すなわちSb1で設定したアドレスを変更する。RAM41cの内容が破壊されている場合、すなわちRAM内容が異常である場合には、Sb4のステップに進む。   As shown in FIG. 12, the main control unit 41 first sets the start address of the RAM 41c, that is, the start address (F000H) of the usable area in the register (Sb1). Next, it is determined whether or not the stored contents of the RAM 41c are destroyed in the same manner as the step Sa15 shown in FIG. 11 (Sb2). If the contents of the RAM 41c are not destroyed, that is, if the contents of the RAM are not abnormal, the initial address of the initialization target RAM at the start of the setting change (the last address of the area where important work is stored among the usable areas) Next address) is set in the register (Sb3). That is, the address set in Sb1 is changed. If the contents of the RAM 41c are destroyed, that is, if the contents of the RAM are abnormal, the process proceeds to step Sb4.

次いで、初期化対象RAMの最終アドレスとして遊技スタック領域(使用中)の最終アドレス(F1FFH)を指定し(Sb4)、遊技領域初期化処理を実行して、Sb1またはSb3のステップで指定したアドレスから初期化対象RAMの最終アドレスまでの領域を初期化する(Sb5)。Sb1のステップでは、使用可能領域の開始アドレス(F000H)がセットされるため、RAM内容が異常である場合には、Sb5のステップにおいて、RAM41cの遊技RAM領域の全ての領域が初期化されることとなる。一方、Sb3のステップでは、設定変更開始時の初期化対象RAMの先頭アドレスとして、使用可能領域のうち特別ワークが記憶されている領域の最終アドレスの次のアドレスがセットされるため、RAM内容が異常でない場合には、Sb5のステップにおいて、RAM41cの遊技RAM領域のうち特別ワーク以外の領域が初期化されることとなる。   Next, the final address (F1FFH) of the game stack area (in use) is designated as the final address of the initialization target RAM (Sb4), the game area initialization process is executed, and the address specified in the Sb1 or Sb3 step is used. The area up to the final address of the initialization target RAM is initialized (Sb5). Since the start address (F000H) of the usable area is set in the step Sb1, if the RAM contents are abnormal, all the game RAM areas in the RAM 41c are initialized in the step Sb5. It becomes. On the other hand, in the step of Sb3, the next address after the last address of the area in which the special work is stored among the usable areas is set as the initial address of the initialization target RAM at the start of setting change. If not abnormal, an area other than the special work in the game RAM area of the RAM 41c is initialized in step Sb5.

その後、後述する非遊技領域初期化処理を実行して、未使用領域4の先頭アドレスから非遊技スタック領域(使用中)の最終アドレスまでの領域、すなわち未使用領域4及び非遊技RAM領域を初期化する(Sb6)。   Thereafter, a non-game area initialization process, which will be described later, is executed to initialize the areas from the top address of the unused area 4 to the last address of the non-game stack area (in use), that is, the unused area 4 and the non-game RAM area. (Sb6).

次いで、設定変更状態の開始を示す設定コマンド(開始)をサブ制御部91に送信し(Sb7)、割込を許可する(Sb8)。   Next, a setting command (start) indicating the start of the setting change state is transmitted to the sub-control unit 91 (Sb7), and interrupts are permitted (Sb8).

次いで、リセット/設定スイッチ38がOFFからONに変化したか否かを判定する(Sb9)。リセット/設定スイッチ38がOFFからONに変化した場合にはレジスタの設定値を更新(1〜5の場合は1加算し、6の場合は1に更新)する(Sb10)。リセット/設定スイッチ38が変化しなかった場合には、スタートスイッチ7がOFFからONに変化したか否かを判定する(Sb11)。スタートスイッチ7が変化しなかった場合には、Sb7のステップに戻る。一方、スタートスイッチ7がOFFからONに変化した場合には設定キースイッチ37がOFF状態か否かを判定する(Sb12)。設定キースイッチ37がOFF状態でない場合には、設定キースイッチ37がOFF状態になるまで待機する。設定キースイッチ37がOFF状態である場合には、レジスタにセットされている設定値のデータをRAM41cの特別ワークに格納する(Sb13)。   Next, it is determined whether or not the reset / setting switch 38 has changed from OFF to ON (Sb9). When the reset / setting switch 38 changes from OFF to ON, the set value of the register is updated (1 is added in the case of 1 to 5, and 1 is updated in the case of 6) (Sb10). If the reset / setting switch 38 has not changed, it is determined whether or not the start switch 7 has changed from OFF to ON (Sb11). If the start switch 7 has not changed, the process returns to step Sb7. On the other hand, when the start switch 7 changes from OFF to ON, it is determined whether or not the setting key switch 37 is OFF (Sb12). If the setting key switch 37 is not in the OFF state, it waits until the setting key switch 37 is in the OFF state. When the setting key switch 37 is in the OFF state, the setting value data set in the register is stored in the special work of the RAM 41c (Sb13).

次いで、設定変更状態の終了を示す設定コマンド(終了)をサブ制御部91に送信する(Sb14)。そして、設定変更終了時の初期化対象RAMの先頭アドレス(使用可能領域のうち特別ワークが記憶されている領域の最終アドレスの次のアドレス)をレジスタにセットし(Sb14)、メイン処理に移行する。   Next, a setting command (end) indicating the end of the setting change state is transmitted to the sub-control unit 91 (Sb14). Then, the initial address of the initialization target RAM at the end of the setting change (the address next to the last address of the usable area in which the special work is stored) is set in the register (Sb14), and the process proceeds to the main process. .

次に、メイン制御部41が実行する遊技領域初期化処理について説明する。尚、本実施例において遊技領域初期化処理は、遊技プログラムに含まれる。   Next, a game area initialization process executed by the main control unit 41 will be described. In the present embodiment, the game area initialization process is included in the game program.

図13に示すように、メイン制御部41は、レジスタに設定されている初期化対象RAMの先頭アドレス及び終了アドレスを取得する(Sf1)。そして、初期化対象RAMの終了アドレス値から先頭アドレス値を減算して、初期化対象RAMの容量を算出し(Sf2)、算出した初期化対象RAMの容量をレジスタに設定する(Sf3)。また、初期化対象RAMの先頭アドレス値を指定アドレスとして設定して(Sf4)、指定アドレスに記憶されている1バイトのデータを0で上書きしてクリアする(Sf5)。その後、当該1バイトのデータの論理和を算出して、算出結果が0か否かを判定し(Sf6)、算出結果が0でない場合には、Sf5のステップに戻り、再度、1バイトのデータを0で上書きしてクリアする。そして、Sf6のステップにおいて計算結果が0であると判定された場合は、指定アドレスを、当該指定アドレスとして現在設定されているアドレスの次のアドレスに更新し(Sf7)、レジスタを1減算して(Sf8)、レジスタが0か否かを判定する(Sf9)。   As shown in FIG. 13, the main control unit 41 obtains the start address and end address of the initialization target RAM set in the register (Sf1). Then, the initial address value is subtracted from the end address value of the initialization target RAM to calculate the capacity of the initialization target RAM (Sf2), and the calculated capacity of the initialization target RAM is set in the register (Sf3). Also, the initial address value of the initialization target RAM is set as a designated address (Sf4), and 1-byte data stored in the designated address is overwritten with 0 and cleared (Sf5). Thereafter, the logical sum of the 1-byte data is calculated to determine whether or not the calculation result is 0 (Sf6). If the calculation result is not 0, the process returns to the step of Sf5 and again the 1-byte data. Overwrite with 0 to clear. If it is determined in step Sf6 that the calculation result is 0, the designated address is updated to the address next to the currently set address as the designated address (Sf7), and the register is decremented by 1. (Sf8), it is determined whether or not the register is 0 (Sf9).

Sf9のステップで、レジスタが0でないと判定した場合は、Sf5のステップに戻り、Sf5〜Sf9のステップの処理をレジスタが0となるまで繰り返し行う。また、Sf9のステップで、レジスタが0であると判定した場合は、遊技領域初期化処理を終了して、呼び出し元のプログラムに戻る。   If it is determined in step Sf9 that the register is not 0, the process returns to step Sf5, and the processes in steps Sf5 to Sf9 are repeated until the register becomes 0. If it is determined in step Sf9 that the register is 0, the game area initialization process is terminated and the process returns to the calling program.

このように、本実施例の遊技領域初期化処理では、初期化対象RAMの先頭アドレスと終了アドレスとが指定されることにより、初期化対象RAMの容量を算出し、初期化対象RAMの先頭アドレスから、初期化対象RAMの容量分の領域を順次クリアすることで、遊技RAM領域のうち指定された初期化対象RAMの領域を初期化する。   As described above, in the game area initialization process according to the present embodiment, the capacity of the initialization target RAM is calculated by designating the start address and the end address of the initialization target RAM, and the start address of the initialization target RAM is calculated. From the game RAM area, the designated initialization target RAM area is initialized by sequentially clearing the area for the capacity of the initialization target RAM.

尚、本実施例の遊技領域初期化処理では、初期化対象RAMの先頭アドレス及び終了アドレスを指定することで、当該先頭アドレス及び終了アドレスに基づいて初期化対象RAMの容量を算出するとともに当該先頭アドレスを指定アドレスの初期値とし、指定アドレスのデータをクリアした後に指定アドレスを次のアドレスに更新する処理を、初期化対象RAMの容量分の回数繰り返し実行することで、初期化対象RAMの先頭アドレスから終了アドレスまでの領域が初期化される構成であるが、初期化対象RAMの先頭アドレスと終了アドレスとを指定することで、当該先頭アドレスを指定アドレスの初期値とし、指定アドレスのデータをクリアした後に指定アドレスを次のアドレスに更新する処理を、指定アドレスが当該終了アドレスとなるまで繰り返し実行することで、初期化対象RAMの先頭アドレスから終了アドレスまでの領域が初期化される構成としても良い。   In the game area initialization process of the present embodiment, by specifying the start address and end address of the initialization target RAM, the capacity of the initialization target RAM is calculated based on the start address and end address, and the start The process of updating the specified address to the next address after clearing the data at the specified address, with the address as the initial value of the specified address, is repeatedly executed for the capacity of the RAM to be initialized. The area from the address to the end address is initialized. By specifying the start address and end address of the initialization target RAM, the start address becomes the initial value of the specified address, and the data of the specified address is changed. The process of updating the specified address to the next address after clearing the By repeatedly executed until the may be configured to area from the start address to be initialized RAM to the end address is initialized.

次に、メイン制御部41が実行する非遊技領域初期化処理について説明する。尚、本実施例において非遊技領域初期化処理は、非遊技プログラムに含まれる。   Next, the non-game area initialization process executed by the main control unit 41 will be described. In the present embodiment, the non-game area initialization process is included in the non-game program.

図14に示すように、メイン制御部41は、初期化対象RAMの先頭アドレスとして未使用領域4の先頭アドレスを設定する(Sg1)。そして、RAM41cの使用可能領域の最終アドレス値から初期化対象RAMの先頭アドレス値(未使用領域4の先頭アドレス値)を減算して、初期化対象RAMの容量を算出し(Sg2)、算出した初期化対象RAMの容量をレジスタに設定する(Sg3)。また、初期化対象RAMの先頭アドレス値(未使用領域4の先頭アドレス値)を指定アドレスとして設定して(Sg4)、指定アドレスに記憶されている1バイトのデータを0で上書きしてクリアする(Sg5)。その後、当該1バイトのデータの論理和を算出して、算出結果が0か否かを判定し(Sf6)、算出結果が0でない場合には、Sg5のステップに戻り、再度、1バイトのデータを0で上書きしてクリアする。そして、Sg6のステップにおいて計算結果が0であると判定された場合は、指定アドレスを、当該指定アドレスとして現在設定されているアドレスの次のアドレスに更新し(Sg7)、レジスタを1減算して(Sg8)、レジスタが0か否かを判定する(Sg9)。   As shown in FIG. 14, the main control unit 41 sets the start address of the unused area 4 as the start address of the initialization target RAM (Sg1). Then, the capacity of the initialization target RAM is calculated by subtracting the start address value of the initialization target RAM (the start address value of the unused area 4) from the final address value of the usable area of the RAM 41c (Sg2). The capacity of the initialization target RAM is set in the register (Sg3). Also, the initial address value of the initialization target RAM (the initial address value of the unused area 4) is set as the designated address (Sg4), and the 1-byte data stored in the designated address is overwritten with 0 and cleared. (Sg5). Thereafter, the logical sum of the 1-byte data is calculated to determine whether or not the calculation result is 0 (Sf6). If the calculation result is not 0, the process returns to the step of Sg5 and again the 1-byte data. Overwrite with 0 to clear. If it is determined in step Sg6 that the calculation result is 0, the designated address is updated to the address next to the currently set address as the designated address (Sg7), and the register is decremented by 1. (Sg8), it is determined whether or not the register is 0 (Sg9).

Sg9のステップで、レジスタが0でないと判定した場合は、Sg5のステップに戻り、Sg5〜Sg9のステップの処理をレジスタが0となるまで繰り返し行う。また、Sg9のステップで、レジスタが0であると判定した場合は、非遊技領域初期化処理を終了して、呼び出し元のプログラムに戻る。   If it is determined in step Sg9 that the register is not 0, the process returns to step Sg5, and the processing in steps Sg5 to Sg9 is repeated until the register becomes 0. If it is determined in step Sg9 that the register is 0, the non-game area initialization process is terminated and the process returns to the calling program.

このように、本実施例の非遊技領域初期化処理では、初期化対象RAMの容量分のRAM領域を初期化対象RAMの先頭アドレス(未使用領域4の先頭アドレス)から順次クリアすることで、初期化対象RAMの先頭アドレスから終了アドレスまでの領域、すなわち、未使用領域4及び非遊技RAM領域を初期化する。   Thus, in the non-game area initialization process of the present embodiment, by sequentially clearing the RAM area for the capacity of the initialization target RAM from the start address of the initialization target RAM (the start address of the unused area 4), The areas from the start address to the end address of the initialization target RAM, that is, the unused area 4 and the non-game RAM area are initialized.

尚、本実施例の非遊技領域初期化処理では、初期化対象RAMの先頭アドレスを指定することで、当該先頭アドレスに基づいて初期化対象RAMの容量を算出するとともに当該先頭アドレスを指定アドレスの初期値とし、指定アドレスのデータをクリアした後に指定アドレスを次のアドレスに更新する処理が、初期化対象RAMの容量分の回数繰り返し実行することで、初期化対象RAMの先頭アドレスから終了アドレスまでの領域が初期化される構成であるが、初期化対象RAMの先頭アドレスと終了アドレスとを指定することで、当該先頭アドレスを指定アドレスの初期値とし、指定アドレスのデータをクリアした後に指定アドレスを次のアドレスに更新する処理を、指定アドレスが当該終了アドレスとなるまで繰り返し実行することで、初期化対象RAMの先頭アドレスから終了アドレスまでの領域が初期化される構成としても良い。   In the non-game area initialization process of this embodiment, by specifying the start address of the initialization target RAM, the capacity of the initialization target RAM is calculated based on the start address, and the start address is set to the specified address. The process of updating the specified address to the next address after clearing the data at the specified address as the initial value is repeatedly executed as many times as the capacity of the RAM to be initialized. The area is initialized, but by specifying the start address and end address of the initialization target RAM, the start address becomes the initial value of the specified address, and the specified address is cleared after clearing the data of the specified address. Is repeatedly executed until the specified address reaches the end address. Area from the start address to be initialized RAM to the end address may be configured to be initialized.

また、本実施例の非遊技領域初期化処理では、初期化対象RAMの先頭アドレスとして未使用領域4の先頭アドレスを設定することで、未使用領域4と非遊技RAM領域の全ての領域を初期化する構成であるが、非遊技領域初期化処理は、非遊技RAM領域の少なくとも一部の領域が初期化されるものであれば良く、非遊技RAM領域の一部の領域を初期化するものでも、非遊技RAM領域の一部の領域及び未使用領域4を初期化するものでも良い。   Further, in the non-game area initialization process of the present embodiment, by setting the start address of the unused area 4 as the start address of the initialization target RAM, all of the unused area 4 and the non-game RAM area are initialized. However, the non-game area initialization process only needs to initialize at least a part of the non-game RAM area, and initializes a part of the non-game RAM area. However, a part of the non-game RAM area and the unused area 4 may be initialized.

また、本実施例では、遊技領域初期化処理及び非遊技領域初期化処理において、指定アドレスに記憶されている1バイトのデータを0で上書きしてクリアし、その後、当該1バイトのデータの論理和を算出して、算出結果が0か否かを判定し(Sf6)、算出結果が0でない場合には、再度、1バイトのデータを0で上書きしてクリアする処理を行うことで、該当するアドレスのデータをクリアする構成であるが、指定アドレスに記憶されている1バイトのデータを0で上書きしてクリアするのみの構成でも良い。   In this embodiment, in the game area initialization process and the non-game area initialization process, the 1-byte data stored in the specified address is overwritten with 0 and cleared, and then the logic of the 1-byte data is changed. The sum is calculated to determine whether or not the calculation result is 0 (Sf6). If the calculation result is not 0, the processing is performed by overwriting the 1-byte data with 0 again and clearing it. The data at the address to be cleared is cleared, but the configuration in which 1-byte data stored at the specified address is overwritten with 0 and cleared is also possible.

次に、メイン制御部41が実行するメイン処理について説明する。尚、メイン処理は一単位の遊技毎に繰り返し実行される。そして、メイン処理の一周期が遊技の一単位に相当している。尚、本実施例においてメイン処理は、遊技プログラムに含まれる。   Next, main processing executed by the main control unit 41 will be described. The main process is repeatedly executed for each unit of game. One period of the main process corresponds to one unit of the game. In this embodiment, the main process is included in the game program.

図15に示すように、メイン制御部41は、まず、割込を禁止する(Sc1)。次いで、初期化対象RAMの最終アドレス(遊技スタック領域(未使用)の最終アドレス)をセットする(Sc2)。   As shown in FIG. 15, the main control unit 41 first prohibits an interrupt (Sc1). Next, the final address of the initialization target RAM (the final address of the game stack area (unused)) is set (Sc2).

次いで、遊技領域初期化処理を実行して、指定されたアドレスで示されるRAM41cの領域をクリアする(Sc3)。この際、設定変更処理の後にメイン処理が開始された場合には、設定変更処理が終了される際に、初期化対象RAMの先頭アドレスとして、使用可能領域のうち特別ワークが記憶されている領域の最終アドレスの次のアドレスが設定され、当該メイン処理のSc2において、初期化対象RAMの最終アドレスとして、遊技スタック領域(未使用)の最終アドレスが設定されるため、遊技RAM領域のうち特別ワーク及び遊技スタック領域(使用中)以外の領域(重要ワーク、一般ワーク、未使用領域3、スタック領域(未使用))が初期化されることとなる。また、特定の遊技状態ではない遊技の終了時には、後述するSc10のステップにおいて遊技終了時の初期化対象RAMの先頭アドレス(未使用領域3の先頭アドレス)が設定され、Sc2のステップにおいて、初期化対象RAMの最終アドレス(遊技スタック領域(未使用)の最終アドレス)が設定されるため、使用可能領域のうち未使用領域3及び遊技スタック領域(未使用)が初期化されることとなる。また、特定の遊技状態の終了時であり、かつ遊技の終了時には、後述するSc11のステップにおいて特定の遊技状態の終了時の初期化対象RAMの先頭アドレス(遊技RAM領域のうち特別ワークが記憶されている領域の最終アドレスの次のアドレス)が設定され、Sc2のステップでは、特定の遊技状態の終了時の初期化対象RAMの最終アドレス(遊技スタック領域(未使用)の最終アドレス)が設定されるため、遊技RAM領域のうち一般ワーク、未使用領域3、遊技スタック領域(未使用)が初期化されることとなる。   Next, a game area initialization process is executed to clear the area of the RAM 41c indicated by the designated address (Sc3). At this time, if the main process is started after the setting change process, the special work among the usable areas is stored as the start address of the initialization target RAM when the setting change process is ended. Since the final address of the game stack area (unused) is set as the final address of the initialization target RAM in Sc2 of the main process, the final address of the game RAM area is set. In addition, areas other than the game stack area (in use) (important work, general work, unused area 3, and stack area (unused)) are initialized. At the end of a game that is not in a specific gaming state, the start address of the initialization target RAM at the end of the game (the start address of the unused area 3) is set in the step of Sc10 described later, and the initialization is performed in the step of Sc2. Since the final address of the target RAM (the final address of the game stack area (unused)) is set, the unused area 3 and the game stack area (unused) among the available areas are initialized. Also, at the end of the specific gaming state and at the end of the game, the initial address of the initialization target RAM at the end of the specific gaming state (a special work in the gaming RAM area is stored at the step of Sc11 described later). In the step of Sc2, the final address of the initialization target RAM at the end of the specific gaming state (final address of the gaming stack area (unused)) is set. Therefore, in the game RAM area, the general work, the unused area 3, and the game stack area (unused) are initialized.

Sc3のステップにおけるRAMの初期化の後、割込を許可し(Sc4)、遊技開始待ち処理を実行する(Sc5)。遊技開始待ち処理では、賭数を設定可能な状態で待機し、遊技状態に応じた規定数の賭数が設定され、スタートスイッチ7が操作された時点でゲームを開始させる処理を実行する。   After initialization of RAM in the step of Sc3, interruption is permitted (Sc4), and a game start waiting process is executed (Sc5). In the game start waiting process, the process waits in a state where a bet number can be set, and a process for starting a game is executed when a specified number of bets are set according to the game state and the start switch 7 is operated.

次いで、内部抽選処理を実行する(Sc6)。内部抽選処理では、Sc5のステップにおけるスタートスイッチ7の検出によるゲーム開始と同時にラッチされた内部抽選用の乱数値に基づいて上記した各役への入賞を許容するか(すなわち、表示結果の導出を許容するか否か)どうかを決定する処理を行う。   Next, an internal lottery process is executed (Sc6). In the internal lottery process, whether or not to win the above-mentioned winning combination based on the internal lottery random value latched simultaneously with the start of the game by the detection of the start switch 7 in the step of Sc5 (that is, the display result is derived). The process of determining whether or not to allow) is performed.

次いで、リール制御処理を実行する(Sc7)。リール制御処理では、スタートスイッチ7の操作に応答して各リール2L、2C、2Rを回転させる処理、Sd2のステップにおける内部抽選の結果及び遊技者によるストップスイッチ8L、8C、8Rの操作が検出されたことに応じて対応するリール2L、2C、2Rの回転を停止させる処理を実行する。   Next, a reel control process is executed (Sc7). In the reel control process, the process of rotating each reel 2L, 2C, 2R in response to the operation of the start switch 7, the result of the internal lottery in the step of Sd2, and the operation of the stop switch 8L, 8C, 8R by the player are detected. In response to this, processing for stopping the rotation of the corresponding reels 2L, 2C, 2R is executed.

次いで、遊技終了時設定処理を実行する(Sc8)。遊技終了時設定処理では、Sc7の処理において全てのリール2L、2C、2Rの回転が停止したと判定した時点で、各リール2L、2C、2Rに導出された表示結果に応じて入賞が発生したか否かを判定する処理を実行する。そして、入賞が発生したと判定した場合に、その入賞に応じた払出枚数に基づきクレジットの加算並びにメダルの払出等の処理を行う。入賞が発生した場合にはメダルの払い出し等が終了した後に次のゲームに備えて遊技状態を設定する処理を実行する。また、入賞が発生しなかった場合にはリールが停止した後に、次のゲームに備えて遊技状態を設定する処理を実行する。   Next, a game end time setting process is executed (Sc8). In the game end setting process, when it is determined that the rotation of all the reels 2L, 2C, and 2R is stopped in the process of Sc7, a winning occurs according to the display result derived for each reel 2L, 2C, and 2R. The process which determines whether or not is executed. When it is determined that a winning has occurred, processing such as credit addition and medal payout is performed based on the number of payouts according to the winning. When a winning occurs, a process for setting a gaming state for the next game is executed after the medal payout is completed. Further, when no winning occurs, after the reels are stopped, processing for setting a gaming state for the next game is executed.

遊技終了時設定処理が終了すると、特定の遊技状態の終了時か否かを判定し(Sc9)、特定の遊技状態の終了時でない場合には、遊技終了時の初期化対象RAMの先頭アドレスをセットして(Sc10)、Sc1のステップに戻る。また、特定の遊技状態の終了時である場合には、特定の遊技状態の終了時の初期化対象RAMの先頭アドレスをセットして(Sc11)、Sc1のステップに戻る。   When the setting process at the end of the game is completed, it is determined whether or not it is the end of the specific gaming state (Sc9). If it is not the end of the specific gaming state, the initial address of the initialization target RAM at the end of the game is determined. Set (Sc10) and return to the step of Sc1. If it is at the end of the specific gaming state, the start address of the initialization target RAM at the end of the specific gaming state is set (Sc11), and the process returns to the step of Sc1.

また、メイン処理では、ゲームの進行に応じてコマンドを生成してコマンドキューに設定するコマンド格納処理を実行し、設定されたコマンドは、その後のタイマ割込処理(メイン)において実行される通常時コマンド送信処理によりサブ制御部91に対して送信されるようになっている。   Also, in the main process, a command storing process for generating a command according to the progress of the game and setting the command in the command queue is executed, and the set command is executed in the normal timer execution process (main) thereafter. It is transmitted to the sub-control unit 91 by command transmission processing.

図16及び図17は、メイン制御部41が一定間隔(約0.56msの間隔)でメイン処理(主にメイン処理)に割り込んで実行するタイマ割込処理(メイン)の制御内容を示すフローチャートである。尚、タイマ割込処理(メイン)とは、タイマ回路509のカウントに応じて発生する割込により実行される処理であり、タイマ割込処理(メイン)のプログラムが格納されたアドレスは、ベクタテーブルのタイマ割込に対応する値として設定されている。そして、タイマ割込が発生すると当該アドレスからの処理が実行される。また、タイマ割込処理(メイン)の実行期間中は自動的に他の割込が禁止される。尚、本実施例においてタイマ割込処理(メイン)は、遊技プログラムに含まれる。   FIGS. 16 and 17 are flowcharts showing the control contents of the timer interrupt process (main) executed by the main control unit 41 by interrupting and executing the main process (mainly the main process) at regular intervals (approximately 0.56 ms). is there. The timer interrupt process (main) is a process executed by an interrupt generated according to the count of the timer circuit 509. The address at which the program of the timer interrupt process (main) is stored is a vector table. It is set as a value corresponding to the timer interrupt. When a timer interrupt occurs, processing from that address is executed. Further, other interrupts are automatically prohibited during the execution period of the timer interrupt process (main). In this embodiment, the timer interrupt process (main) is included in the game program.

図16に示すように、タイマ割込処理(メイン)においては、まず、使用中のレジスタを遊技スタック領域に退避する(Sd1)。   As shown in FIG. 16, in the timer interrupt process (main), first, the register in use is saved in the game stack area (Sd1).

次いで、停電判定処理を行う(Sd2)。停電判定処理では、電断検出回路48から電圧低下信号が入力されているか否かを判定し、電圧低下信号が入力されていれば、前回の停電判定処理でも電圧低下信号が入力されていたか否かを判定し、前回の停電判定処理でも電圧低下信号が入力されていた場合には停電と判定し、その旨を示す電断フラグを設定する。   Next, a power failure determination process is performed (Sd2). In the power failure determination process, it is determined whether or not a voltage drop signal is input from the power failure detection circuit 48. If a voltage drop signal is input, whether or not the voltage drop signal is input in the previous power failure determination process as well. If a voltage drop signal has been input in the previous power failure determination process, it is determined that a power failure has occurred, and a power interruption flag indicating that is set.

Sd2のステップにおける停電判定処理の後、電断フラグが設定されているか否かを判定し(Sd3)、電断フラグが設定されていなければ、Sd4に進み、入力ポートから各種スイッチ類の検出データを入力するポート入力処理を行う。一方、Sd3のステップにおいて、電断フラグが設定されていた場合には、電断時コマンド送信処理を実行することで、コマンドキューに設定されている未送信のコマンドのすべてをサブ制御部91に送信した後(Sd25)、電断処理(メイン)に移行する。   After the power failure determination process in step Sd2, it is determined whether or not the power interruption flag is set (Sd3). If the power interruption flag is not set, the process proceeds to Sd4, and detection data of various switches from the input port. The port input process to input is performed. On the other hand, if the power interruption flag is set in the step of Sd3, the command transmission process at the time of power interruption is executed, so that all the untransmitted commands set in the command queue are transferred to the sub-control unit 91. After the transmission (Sd25), the process proceeds to a power interruption process (main).

次いで、4種類のタイマ割込1〜4から当該タイマ割込処理(メイン)において実行すべきタイマ割込を識別するための分岐用カウンタを1進める(Sd5)。Sd5のステップでは、分岐用カウンタ値が0〜2の場合に1が加算され、カウンタ値が3の場合に0に更新される。すなわち分岐用カウンタ値は、タイマ割込処理(メイン)が実行される毎に、0→1→2→3→0・・・の順番でループする。   Next, the branch counter for identifying the timer interrupt to be executed in the timer interrupt process (main) is advanced by 1 from the four types of timer interrupts 1 to 4 (Sd5). In step Sd5, 1 is added when the branch counter value is 0 to 2, and is updated to 0 when the counter value is 3. That is, the branch counter value loops in the order of 0 → 1 → 2 → 3 → 0... Each time the timer interrupt process (main) is executed.

次いで、分岐用カウンタ値を参照して2または3か、すなわちタイマ割込3またはタイマ割込4かを判定し(Sd6)、タイマ割込3またはタイマ割込4ではない場合、すなわちタイマ割込1またはタイマ割込2の場合には、リールモータ32C、32C、32Rの位相信号データを出力するモータ位相信号出力処理を実行する(Sd7)。   Next, the branch counter value is referenced to determine whether it is 2 or 3, that is, timer interrupt 3 or timer interrupt 4 (Sd6). If it is not timer interrupt 3 or timer interrupt 4, that is, timer interrupt In the case of 1 or timer interrupt 2, motor phase signal output processing for outputting the phase signal data of the reel motors 32C, 32C, 32R is executed (Sd7).

次いで、分岐用カウンタ値を参照して1か否か、すなわちタイマ割込2か否かを判定し(Sd8)、タイマ割込2ではない場合、すなわちタイマ割込1の場合には、リールモータ32L、32C、32Rの始動時のステップ時間間隔の制御を行うリール始動処理(Sd9)、リールモータ32L、32C、32Rの位相信号データの変更を行うモータステップ処理(Sd10)、リールモータ32L、32C、32Rの停止後、一定時間経過後に位相信号を1相励磁に変更するモータ位相信号スタンバイ処理(Sd11)を順次実行した後、Sd24のステップに進む。   Next, referring to the counter value for branching, it is determined whether or not it is 1, that is, timer interrupt 2 (Sd8). If it is not timer interrupt 2, that is, timer interrupt 1, the reel motor Reel start processing (Sd9) for controlling the step time interval when starting 32L, 32C, 32R, motor step processing (Sd10) for changing phase signal data of the reel motors 32L, 32C, 32R, reel motors 32L, 32C After the stop of 32R, motor phase signal standby processing (Sd11) for changing the phase signal to one-phase excitation after a lapse of a certain time is sequentially executed, and the process proceeds to step Sd24.

また、Sd8のステップにおいてタイマ割込2であると判定した場合には、コマンドキューに設定された各種コマンドをサブ制御部91に送信する通常時コマンド送信処理(Sd12)、ドア開放検出スイッチ25の検出状態の監視、ドアコマンドの送信要求などを行うドア監視処理(Sd13)、外部出力信号を更新する外部出力信号更新処理(Sd14)、各種表示器をダイナミック点灯させるLEDダイナミック表示処理(Sd15)、各種LED等の点灯信号等のデータを出力ポートへ出力する制御信号等出力処理(Sd16)、各種時間カウンタを更新する時間カウンタ更新処理(Sd17)を順次実行した後、Sd24のステップに進む。   If it is determined in step Sd8 that the timer interrupt is 2, normal command transmission processing (Sd12) for transmitting various commands set in the command queue to the sub-control unit 91, the door opening detection switch 25 Door monitoring processing (Sd13) for performing detection status monitoring, door command transmission request, etc., external output signal updating processing (Sd14) for updating external output signals, LED dynamic display processing (Sd15) for dynamically lighting various displays, After sequentially executing control signal output processing (Sd16) for outputting data such as lighting signals of various LEDs to the output port and time counter update processing (Sd17) for updating various time counters, the process proceeds to step Sd24.

また、Sd6のステップにおいてタイマ割込3またはタイマ割込4であると判定した場合は、更に、分岐用カウンタ値が3か否か、すなわちタイマ割込4か否かを判定し(Sd18)、タイマ割込4でなければ、すなわちタイマ割込3であれば、回転中のリール2L、2C、2Rの原点通過(リール基準位置の通過)をチェックする原点通過時処理(Sd19)、スイッチ類の検出状態に変化があったか否かの判定等を行うスイッチ入力判定処理(Sd20)を順次実行した後、Sd24のステップに進む。   If it is determined in step Sd6 that timer interrupt 3 or timer interrupt 4 is detected, it is further determined whether or not the branch counter value is 3, that is, timer interrupt 4 (Sd18). If it is not the timer interrupt 4, that is, the timer interrupt 3, the origin passing process (Sd19) for checking the origin passing (passing of the reel reference position) of the rotating reels 2L, 2C, 2R, After sequentially executing the switch input determination process (Sd20) for determining whether or not the detection state has changed, the process proceeds to step Sd24.

また、Sd18のステップにおいてタイマ割込4であると判定した場合は、ストップスイッチ8L、8C、8Rの検出に伴って停止位置を決定する停止スイッチ処理(Sd21)、停止する時期になったら2相励磁によるブレーキを開始する停止処理(Sd22)、停止処理においてブレーキを開始してから一定時間後に3相励磁とする最終停止処理(Sd23)を順次実行した後、Sd24のステップに進む。   If it is determined in step Sd18 that the timer interrupt is 4, stop switch processing (Sd21) for determining a stop position in accordance with detection of the stop switches 8L, 8C, and 8R, two phases when it is time to stop. A stop process (Sd22) for starting braking by excitation and a final stop process (Sd23) for three-phase excitation after a certain time from the start of braking in the stop process are sequentially executed, and then the process proceeds to step Sd24.

Sd24のステップでは、Sd1において遊技スタック領域に退避したレジスタを復帰させて、割込前の処理に戻る。   In step Sd24, the register saved in the game stack area in Sd1 is restored, and the process before the interruption is returned.

本実施例では、タイマ割込処理(メイン)は、遊技プログラムに含まれる一方、停電判定処理、電断時コマンド送信処理、通常時コマンド送信処理、ドア開放監視処理は、非遊技プログラムに含まれており、上述したように、メイン制御部41は、タイマ割込処理(メイン)において割込禁止を設定し、遊技プログラムのスタックポインタ及びレジスタを退避させたうえで、これらの非遊技プログラムを呼び出すようになっている。また、これらの非遊技プログラムからタイマ割込処理(メイン)に復帰した際には、遊技プログラムのスタックポインタ及びレジスタを当該非遊技プログラムの呼び出し前の状態に復帰させたうえで、その後の処理を実行するようになっている。尚、メイン制御部41は、割込処理の実行中に他の割込を禁止するように設定されているので、非遊技プログラムから復帰した後も割込禁止の状態で、その後の処理を実行する。   In this embodiment, the timer interruption process (main) is included in the game program, while the power failure determination process, the power interruption command transmission process, the normal time command transmission process, and the door opening monitoring process are included in the non-game program. As described above, the main control unit 41 sets interrupt prohibition in the timer interrupt process (main), saves the stack pointer and registers of the game program, and then calls these non-game programs. It is like that. Also, when returning from these non-game programs to timer interrupt processing (main), the stack pointer and registers of the game program are returned to the state before the call of the non-game program, and the subsequent processing is performed. It is supposed to run. Since the main control unit 41 is set to prohibit other interrupts during execution of the interrupt process, the subsequent process is executed in the interrupt disabled state even after returning from the non-game program. To do.

また、タイマ割込処理(メイン)において実行する非遊技プログラムである停電判定処理、電断時コマンド送信処理、通常時コマンド送信処理、ドア開放監視処理は、これら非遊技プログラムの前に実行する必要のある処理(例えば、タイマ割込の分岐前に実行する必要のあるポート入力処理、モータ位相信号出力処理)を除く処理、すなわち非遊技プログラムよりも先に行っても後に行っても制御上影響のない処理よりも前に実行するようになっている。   In addition, the power failure determination process, the power interruption command transmission process, the normal time command transmission process, and the door opening monitoring process, which are non-game programs executed in the timer interrupt process (main), must be executed before these non-game programs. Processing that excludes certain processes (for example, port input processing and motor phase signal output processing that need to be executed before the branch of the timer interrupt), that is, control effects that are performed before or after the non-game program It is designed to be executed before processing without any error.

次に、メイン制御部41が実行する電断処理について説明する。   Next, the power interruption process executed by the main control unit 41 will be described.

図18は、メイン制御部41が前述したタイマ割込処理(メイン)において電断フラグが設定されていると判定した場合に、電断時コマンド送信処理の後に実行する電断処理(メイン)の制御内容を示すフローチャートである。尚、本実施例において電断処理は、遊技プログラムに含まれる。   FIG. 18 illustrates the power interruption process (main) executed after the power interruption command transmission process when the main control unit 41 determines that the power interruption flag is set in the timer interrupt process (main) described above. It is a flowchart which shows the control content. In the present embodiment, the power interruption process is included in the game program.

電断処理(メイン)では、メイン制御部41は、まず、使用している可能性がある全てのレジスタをスタック領域に退避する(Se1)。   In the power interruption process (main), the main control unit 41 first saves all the registers that may be used in the stack area (Se1).

次いで、コマンドを出力するパラレル出力ポート513を含む全ての出力ポートを初期化する(Se2)。これにより電断時コマンド送信処理により最後に出力されたコマンドに対応する出力ポートの出力状態が初期化される。そして、破壊診断用データを遊技RAM領域にセットする(Se2)。破壊診断用データは、5A(H)、すなわちいずれかのビットに1を含む値である。次いで、遊技RAM領域の全ての領域(未使用領域3を含む)の排他的論理和が0になるようにRAMパリティ調整用データを計算して遊技RAM領域にセットし、遊技スタック領域の全ての領域(未使用領域3、遊技スタック領域(未使用)及び遊技スタック領域(使用中))の排他的論理和が0になるようにRAMパリティ調整用データを計算して遊技RAM領域にセットし(Se4)、RAM41cへのアクセスを禁止する(Se5)。その後、電圧が低下してメイン制御部41のCPU41aが停止して待機状態に移行する。そして、この待機状態のまま電圧が低下することで、メイン制御部41は、内部的に動作停止状態になり、電断の際に確実に動作停止する。   Next, all output ports including the parallel output port 513 that outputs a command are initialized (Se2). As a result, the output state of the output port corresponding to the last command output by the power interruption command transmission process is initialized. Then, the destruction diagnosis data is set in the game RAM area (Se2). Destructive diagnosis data is 5A (H), that is, a value including 1 in any bit. Next, the RAM parity adjustment data is calculated and set in the game RAM area so that the exclusive OR of all areas of the game RAM area (including the unused area 3) becomes 0, and all the game stack areas The RAM parity adjustment data is calculated and set in the game RAM area so that the exclusive OR of the areas (unused area 3, game stack area (unused) and game stack area (in use)) becomes 0 ( Se4), prohibiting access to the RAM 41c (Se5). Thereafter, the voltage decreases, and the CPU 41a of the main control unit 41 stops and shifts to a standby state. Then, as the voltage decreases while in this standby state, the main control unit 41 is internally in an operation stop state and reliably stops operation in the event of a power interruption.

尚、本実施例では、電断処理において対象となる領域の演算結果が特定の値(本実施例では0)となるように調整用データを対象となる領域に設定し、起動処理において対象となる領域の演算結果が特定の値となるか否かによってRAM41cのデータが正常か否かを判定しているが、電断処理において対象となる領域の演算結果と、起動処理において対象となる領域の演算結果と、が一致するか否かによってRAM41cのデータが正常か否かを判定する構成としても良い。また、演算方法は、排他的論理和に限らず、他の演算方法(例えば、総和)を用いても良い。   In this embodiment, the adjustment data is set in the target area so that the calculation result of the target area in the power interruption process becomes a specific value (0 in this embodiment), and the target data is set in the start process. Whether or not the data in the RAM 41c is normal is determined based on whether or not the calculation result of the area to be a specific value. The calculation result of the area to be processed in the power interruption process and the area to be processed in the start-up process It may be configured to determine whether or not the data in the RAM 41c is normal depending on whether or not the result of the calculation matches. The calculation method is not limited to exclusive OR, and other calculation methods (for example, summation) may be used.

また、本実施例では、電断処理において未使用領域3を含む遊技RAM領域の全ての領域に格納されたデータを用いてRAMパリティ調整用データ1を算出し、起動処理において未使用領域3を含む遊技RAM領域の全ての領域に格納されたデータを用いて算出されたRAMパリティに基づいてRAM41cが正常か否かを判定するようになっており、未使用領域3に不正なプログラムが記憶された場合には、RAM異常と判定されるため、未使用領域3に不正なプログラムが記憶されることを防止できる。   In this embodiment, the RAM parity adjustment data 1 is calculated using the data stored in all areas of the game RAM area including the unused area 3 in the power interruption process, and the unused area 3 is determined in the startup process. Whether or not the RAM 41c is normal is determined based on the RAM parity calculated using the data stored in all of the game RAM areas including it, and an invalid program is stored in the unused area 3. If it is determined that the RAM is abnormal, it is possible to prevent an unauthorized program from being stored in the unused area 3.

尚、本実施例では、電断処理において未使用領域3を含む遊技RAM領域の全ての領域に格納されたデータを用いてRAMパリティ調整用データを算出し、起動処理において未使用領域3を含む遊技RAM領域の全ての領域に格納されたデータを用いて算出されたRAMパリティに基づいてRAM41cが正常か否かを判定する構成であるが、未使用領域3を含む遊技RAM領域のRAMパリティ調整用データを計算して遊技RAM領域にセットするとともに、非遊技RAM領域のRAMパリティ調整用データを計算して非遊技RAM領域にセットし、起動処理において未使用領域3を含む遊技RAM領域に格納されたデータを用いて算出されたRAMパリティ、及び非遊技RAM領域に格納されたデータを用いて算出されたRAMパリティに基づいてRAM41cが正常か否かを判定する構成としても良い。このような構成においては、遊技RAM領域または非遊技RAM領域に不正なプログラムが記憶された場合には、RAM異常と判定されるため、遊技RAM領域または非遊技RAM領域のいずれにおいても不正なプログラムが記憶されることを防止できる。   In this embodiment, RAM parity adjustment data is calculated using data stored in all areas of the game RAM area including the unused area 3 in the power interruption process, and the unused area 3 is included in the activation process. The RAM parity adjustment of the game RAM area including the unused area 3 is configured to determine whether or not the RAM 41c is normal based on the RAM parity calculated using the data stored in all areas of the game RAM area. Data is calculated and set in the game RAM area, and RAM parity adjustment data in the non-game RAM area is calculated and set in the non-game RAM area, and stored in the game RAM area including the unused area 3 in the startup process. RAM parity calculated using the calculated data and RAM parity calculated using the data stored in the non-game RAM area RAM41c may be determined configure whether normal or not based. In such a configuration, if an illegal program is stored in the game RAM area or the non-game RAM area, it is determined that the RAM is abnormal. Therefore, the illegal program is in either the game RAM area or the non-game RAM area. Can be prevented from being stored.

このように本実施例では、メイン制御部41は、リセットが発生したときに、割込禁止の状態で起動するとともに、その後、最初に実行する初期設定処理の開始時にもプログラムにて割込の禁止を行うようになっており、何らかの原因で割込が禁止されない状態でメイン制御部41が起動した場合でも意図しない割込が発生してしまうことを防止できる。   As described above, in the present embodiment, the main control unit 41 starts in an interrupt-disabled state when a reset occurs, and then interrupts the program at the start of the initial setting process to be executed first. Prohibition is performed, and it is possible to prevent an unintended interrupt from occurring even when the main control unit 41 is activated in a state where the interrupt is not prohibited for some reason.

また、メイン制御部41は、その起動後に、タイマ回路509におけるタイマ割込の設定の後、割込を許可するようになっており、タイマ割込が正常に動作しない状態で割込が発生してしまうことを防止できる。また、タイマ回路509ではタイマ割込の設定が行われることにより、タイマが初期化され、初期値から計時を開始するようになっており、起動後、初回の割込が発生するまでの時間と、2回目以降の割込が発生するまでの時間と、がずれてしまうようなことがなく、一定の時間間隔でタイマ割込を発生させることができる。また、メイン制御部41は、初期設定処理においてタイマ回路509の設定をプログラムにて初期値に更新するようになっており、起動時に、何らかの原因でタイマ回路509の設定が書き換わっていた場合であっても、意図しない割込が発生してしまうことを防止できる。   In addition, the main control unit 41 is configured to permit the interrupt after setting the timer interrupt in the timer circuit 509 after the activation, and the interrupt is generated in a state where the timer interrupt does not operate normally. Can be prevented. In the timer circuit 509, the timer is initialized by setting the timer interrupt, and the timer starts counting from the initial value. After starting, the time until the first interrupt occurs Timer interrupts can be generated at regular time intervals without any deviation from the time until the second and subsequent interrupts are generated. In addition, the main control unit 41 is configured to update the setting of the timer circuit 509 to the initial value by a program in the initial setting process, and when the setting of the timer circuit 509 is rewritten for some reason at the time of activation. Even if it exists, it can prevent that the unintended interruption generate | occur | produces.

また、メイン制御部41は、その起動時に設定キースイッチ37がONの状態であれば設定変更処理に移行し、設定変更処理の開始時にRAM41cの初期化を行う。この際、RAM41cのデータが正常であれば、特別ワークを保持してそれ以外の使用可能領域、すなわち特別ワークを除く遊技RAM領域、未使用領域3、非遊技RAM領域を初期化することで、設定変更後も変更前の制御状態(設定値や遊技状態等)の一部を保持することができる一方で、RAM41cのデータが正常でない場合には、使用可能領域の全ての領域を初期化することで、RAM41cのデータに異常を確実に解消することができる。   Further, the main control unit 41 proceeds to the setting change process if the setting key switch 37 is in an ON state at the time of activation, and initializes the RAM 41c at the start of the setting change process. At this time, if the data in the RAM 41c is normal, the special work is held and other usable areas, that is, the game RAM area excluding the special work, the unused area 3, and the non-game RAM area are initialized. Even after the setting is changed, a part of the control state (setting value, gaming state, etc.) before the change can be held, but if the data in the RAM 41c is not normal, all the usable areas are initialized. As a result, the abnormality in the data of the RAM 41c can be surely solved.

また、メイン制御部41は、RAM異常が判定された場合にRAM異常フラグが設定されるので、RAM異常エラーの発生後に電断されて、再度電源投入がされた場合に、RAMパリティが0であり、破壊診断用データが正常と判定された場合でも、RAM異常フラグに基づいてRAM41cのデータが破壊されているか否かを判定することが可能となる。   The main control unit 41 sets a RAM abnormality flag when a RAM abnormality is determined. Therefore, the RAM parity is 0 when the power is turned off after the RAM abnormality error occurs and the power is turned on again. Yes, even if it is determined that the destruction diagnosis data is normal, it is possible to determine whether the data in the RAM 41c is destroyed based on the RAM abnormality flag.

また、メイン制御部41は、設定変更処理の終了後、遊技単位毎にゲームの進行に応じて段階的に処理を行うメイン処理を実行する。また、メイン処理では、遊技単位毎にRAM41cの初期化を行うとともに、設定変更処理の終了時にもRAM41cの初期化を行う。そして、設定変更処理の終了後、メイン処理においてRAM41cの初期化を行う処理の前の段階からメイン処理を開始するようになっており、設定変更処理の終了後のRAM41cの初期化と、遊技単位毎のRAM41cの初期化と、を共通の処理にて行うことが可能となる。   Moreover, the main control part 41 performs the main process which processes in steps according to progress of a game for every game unit after completion | finish of a setting change process. In the main process, the RAM 41c is initialized for each game unit, and the RAM 41c is also initialized at the end of the setting change process. After the setting change process, the main process starts from the stage before the process of initializing the RAM 41c in the main process. The initialization of the RAM 41c after the setting change process is completed and the game unit It is possible to perform initialization of the RAM 41c for each process by common processing.

また、メイン制御部41は、RAM41cの初期化を行う場合に、初期化が終了するまで割込を禁止するようになっており、RAM41cの初期化の実行中にタイマ割込処理(メイン)が発生することにより、初期化した内容が変更されたり、タイマ割込処理(メイン)で行われる処理が正常に行われなくなってしまうことを防止できる。   Further, when the RAM 41c is initialized, the main control unit 41 prohibits interrupts until the initialization is completed, and the timer interrupt process (main) is performed during the initialization of the RAM 41c. Occurrence can prevent the initialized contents from being changed and the processing performed in the timer interrupt processing (main) from being performed normally.

また、メイン制御部41は、メイン処理において外部出力信号の出力状態を更新し、更新された出力状態に基づいて、その後のタイマ割込処理(メイン)にて外部出力信号の出力状態を変更するとともに、外部出力信号の出力状態を更新する場合に、更新が終了するまで割込を禁止するようになっており、外部出力信号の出力状態が完了する前にタイマ割込処理(メイン)が発生することにより、意図しないデータを示す外部出力信号が出力されてしまうことを防止できる。   Further, the main control unit 41 updates the output state of the external output signal in the main process, and changes the output state of the external output signal in the subsequent timer interrupt process (main) based on the updated output state. In addition, when updating the output state of the external output signal, interrupts are prohibited until the update is completed, and timer interrupt processing (main) occurs before the output state of the external output signal is completed By doing so, it is possible to prevent an external output signal indicating unintended data from being output.

本実施例のメイン制御部41は、遊技の進行に係る遊技プログラムと、当該遊技プログラムによって呼び出されるプログラムであり、遊技の進行に係わらない非遊技プログラムと、を実行することが可能であり、遊技プログラムに基づくメイン処理を実行するとともに、所定時間間隔毎にメイン処理に割り込んで遊技プログラムに基づくタイマ割込処理(メイン)を実行することが可能であって、メイン処理からも、タイマ割込処理(メイン)からも、非遊技プログラムを呼び出して実行することが可能である。   The main control unit 41 of the present embodiment can execute a game program related to the progress of the game and a non-game program that is called by the game program and is not related to the progress of the game. It is possible to execute a main process based on a program and interrupt a main process at a predetermined time interval to execute a timer interrupt process (main) based on a game program. It is also possible to call and execute a non-game program from (main).

このような構成では、メイン制御部41では、非遊技プログラムを実行中にタイマ割込処理(メイン)が実行されることにより誤作動が生じる虞がある。   In such a configuration, the main control unit 41 may malfunction due to the execution of the timer interrupt process (main) while the non-game program is being executed.

これに対して、本実施例のメイン制御部41は、遊技の進行に係る遊技プログラムと、当該遊技プログラムによって呼び出されるプログラムであり、遊技の進行に係わらない非遊技プログラムと、を実行することが可能であり、遊技プログラムに基づくメイン処理を実行するとともに、所定時間間隔毎にメイン処理に割り込んで遊技プログラムに基づくタイマ割込処理(メイン)を実行することが可能であって、メイン処理からも、タイマ割込処理(メイン)からも、非遊技プログラムを呼び出して実行することが可能な構成において、メイン処理から非遊技プログラムを呼び出すときには、他の処理の割込を禁止に設定した後に、当該非遊技プログラムを呼び出す一方で、タイマ割込処理(メイン)から非遊技プログラムを呼び出すとき、すなわち、さらに割込が生じる可能性が低い状況において非遊技プログラムを呼び出すときには、他の処理の割込を禁止に設定せずに、非遊技プログラムを呼び出すので、非遊技プログラムの実行中に割込が実行されることによる誤作動を防止しつつ、割込の禁止に係るプログラム容量を削減することができる。   On the other hand, the main control unit 41 of the present embodiment can execute a game program related to the progress of the game and a non-game program that is called by the game program and is not related to the progress of the game. It is possible to execute the main process based on the game program, interrupt the main process at every predetermined time interval, and execute the timer interrupt process (main) based on the game program. In a configuration in which a non-game program can be called and executed from the timer interrupt process (main), when calling a non-game program from the main process, When calling a non-game program from a timer interrupt process (main) while calling a non-game program, In other words, when a non-game program is called in a situation where there is a low possibility that an interrupt will occur, the non-game program is called without setting the interruption of other processes to be prohibited. It is possible to reduce the program capacity related to the prohibition of interruption while preventing malfunction due to execution of interruption.

本実施例のメイン制御部41が実行するタイマ割込処理(メイン)は、遊技プログラムによる処理、例えば、LEDダイナミック表示処理や制御信号等出力処理等と、非遊技プログラムによる処理、例えば、通常時コマンド送信処理や、電断時コマンド送信処理等の処理と、を含む複数の処理により構成されており、該タイマ割込処理(メイン)を構成する複数の処理のうち、所定の遊技プログラムによる処理、特に、これら非遊技プログラムの先に実行しても後に実行しても問題のない処理よりも前に、非遊技プログラムを呼び出すので、すなわち、タイマ割込処理(メイン)を構成する複数の処理のうち極力早い段階で非遊技プログラムを呼び出すので、例えば、何らかの原因によりタイマ割込処理(メイン)が終了しないまま、次回タイマ割込が発生して二重に割込が生じてしまった場合でも、非遊技プログラムの実行中に他の割込が実行されてしまうことを防止できる。   The timer interrupt process (main) executed by the main control unit 41 of the present embodiment is a process by a game program, for example, an LED dynamic display process, a control signal output process, etc., and a process by a non-game program, for example, normal time It consists of a plurality of processes including a command transmission process, a command transmission process at power interruption, etc., and a process by a predetermined game program among a plurality of processes constituting the timer interrupt process (main) In particular, since a non-game program is called before a process that can be executed before or after these non-game programs, that is, a plurality of processes constituting a timer interrupt process (main) Because the non-game program is called as early as possible, the timer interrupt processing (main) is not terminated for some reason. Even if the Ma interrupt interrupt had occurred doubly generated, it is possible to prevent the other interrupts during execution of a non-game program from being executed.

本実施例のメイン制御部41は、遊技プログラムと非遊技プログラムとを実行可能であり、遊技プログラムが用いるデータを退避する遊技スタック領域と、非遊技プログラムが用いるデータを退避する非遊技スタック領域と、が別個に設けられたRAM41cを備えており、メイン制御部41は、遊技プログラムが用いるデータと、非遊技プログラムが用いるデータと、を別個に設けられたスタック領域にそれぞれ退避させるので、スタック領域の管理が容易となる。特に、タイマ割込の発生により退避される遊技プログラムが用いるデータと、タイマ割込処理(メイン)の実行中に行われる非遊技プログラムが用いるデータと、が混在して一のスタック領域に格納されるようなことがないので、スタックの管理が煩雑となってしまうことがない。   The main control unit 41 of the present embodiment is capable of executing a game program and a non-game program, a game stack area for saving data used by the game program, and a non-game stack area for saving data used by the non-game program Are provided separately, and the main control unit 41 saves the data used by the game program and the data used by the non-game program in the stack area provided separately. Management becomes easier. In particular, data used by a game program saved due to the occurrence of a timer interrupt and data used by a non-game program executed during execution of timer interrupt processing (main) are mixed and stored in one stack area. As a result, stack management is not complicated.

本実施例のメイン制御部41は、非遊技プログラムを実行する際に、遊技プログラムで用いているレジスタ値を遊技スタック領域に退避した後、非遊技プログラムを呼び出して、当該非遊技プログラムにおける処理を実行し、非遊技プログラムにおける処理が終了したときに、退避させたレジスタ値を復帰させるので、非遊技プログラムを実行するのに伴い遊技プログラムが用いていたレジスタの値が変更されてしまうことを防止できる。   When executing the non-game program, the main control unit 41 according to the present embodiment saves the register values used in the game program in the game stack area, and then calls the non-game program to perform processing in the non-game program. When the processing in the non-game program is completed, the saved register value is restored, so that the register value used by the game program is not changed as the non-game program is executed. it can.

また、遊技プログラムに基づく処理から非遊技プログラムを呼び出す際に、遊技プログラムで用いているレジスタの値を遊技スタック領域に退避させる呼出共通処理1または呼出共通処理2を呼び出すようになっており、メイン処理において非遊技プログラムを実行するためのプログラムを共通化することで、プログラム容量を削減できる。   When calling a non-game program from a process based on the game program, the call common process 1 or the call common process 2 for saving the register value used in the game program to the game stack area is called. By sharing a program for executing a non-game program in processing, the program capacity can be reduced.

尚、本実施例では、メイン処理において遊技プログラムに基づく処理から非遊技プログラムを呼び出す際には、呼出共通処理1を実行する一方、タイマ割込処理において遊技プログラムに基づく処理から非遊技プログラムを呼び出す際には、呼出共通処理1とは異なる呼出共通処理2を実行することで、遊技プログラムで用いているレジスタの値を遊技スタック領域に退避させる構成であるが、メイン処理において遊技プログラムに基づく処理から非遊技プログラムを呼び出す際にも、タイマ割込処理において遊技プログラムに基づく処理から非遊技プログラムを呼び出す際にも、共通の呼出共通処理を実行する構成であっても良い。   In this embodiment, when the non-game program is called from the process based on the game program in the main process, the call common process 1 is executed, while the non-game program is called from the process based on the game program in the timer interrupt process. In this case, the call common process 2 different from the call common process 1 is executed to save the register value used in the game program to the game stack area. In the main process, the process based on the game program is performed. The non-game program may be called from the process based on the game program in the timer interruption process, and the common call common process may be executed.

尚、本実施例のメイン制御部41は、メイン処理からも、タイマ割込処理(メイン)からも、非遊技プログラムを呼び出して実行することが可能な構成であり、メイン処理から非遊技プログラムを呼び出すときには、他の処理の割込を禁止に設定して、当該非遊技プログラムを呼び出す一方で、タイマ割込処理(メイン)から非遊技プログラムを呼び出すときには、他の処理の割込を禁止に設定せずに、非遊技プログラムを呼び出す構成であるが、メイン制御部41は、メイン処理から非遊技プログラムを呼び出すときにも、タイマ割込処理(メイン)から非遊技プログラムを呼び出すときにも、他の処理の割込を禁止する構成としても良い。   The main control unit 41 of the present embodiment is configured to be able to call and execute a non-game program from the main process and from the timer interrupt process (main). When calling, set the interrupt of other processes to be prohibited and call the non-game program, while when calling the non-game program from the timer interrupt process (main), disable the interrupt of other processes The main control unit 41 is configured to call a non-game program from the main process, or to call a non-game program from the timer interrupt process (main). It is good also as a structure which prohibits the interruption of this process.

詳しくは、メイン制御部41は、メイン処理の実行中に遊技プログラムに基づく処理から非遊技プログラムを呼び出す際には、本実施例と同様に、呼出共通処理1を実行する一方で、タイマ割込処理の実行中に遊技プログラムに基づく処理から非遊技プログラムを呼び出す際には、図23に示すように、当該遊技プログラムでは、呼び出す対象の非遊技プログラムの開始アドレスをレジスタに設定し、呼出共通処理3を実行する。呼出共通処理3は、呼出共通処理1と同様に、遊技プログラムに含まれる処理であり、呼出共通処理3では、遊技プログラムのレジスタを遊技RAM領域に退避するとともに、スタックポインタ(SP、遊技スタック領域の現在の位置を示すアドレス)を遊技RAM領域のSP退避領域に退避したうえで、割込マスタ許可フラグの値を割込禁止を示す値に設定することでタイマ割込を禁止に設定し、その後、レジスタに設定されているアドレスの非遊技プログラムを呼び出す。   Specifically, when calling the non-game program from the process based on the game program during the execution of the main process, the main control unit 41 executes the call common process 1 as in the present embodiment, while the timer interrupt When calling a non-game program from a process based on a game program during the execution of the process, as shown in FIG. 23, in the game program, the start address of the non-game program to be called is set in a register, and the call common process 3 is executed. Similar to the call common process 1, the call common process 3 is a process included in the game program. In the call common process 3, the register of the game program is saved in the game RAM area and the stack pointer (SP, game stack area) is saved. Is saved in the SP save area of the game RAM area, and then the timer interrupt is disabled by setting the value of the interrupt master enable flag to a value indicating interrupt prohibition, Thereafter, the non-game program at the address set in the register is called.

これに対して、呼び出された非遊技プログラムは、非遊技プログラムのスタックポインタ(非SP、非遊技スタック領域の現在の位置を示すアドレス)を設定して、非遊技プログラムの処理を実行した後、呼び出し元の遊技プログラムすなわち呼出共通処理3に復帰する。呼出共通処理3に復帰した後には、呼出共通処理3は、呼出共通処理2と同様に、遊技RAM領域に退避させていたデータに基づいて、レジスタ及び遊技プログラムのスタックポインタを、非遊技プログラムを呼び出す前の状態に復帰させて終了する。すなわち、呼出共通処理3では、非遊技プログラムの処理が終了した後に、割込マスタ許可フラグの値を設定することなく、該非遊技プログラムの終了後も割込の禁止を維持する。   On the other hand, the called non-game program sets the stack pointer (non-SP, address indicating the current position of the non-game stack area) of the non-game program and executes the processing of the non-game program. Returning to the calling game program, that is, the call common processing 3. After returning to the call common process 3, the call common process 3, like the call common process 2, is based on the data saved in the game RAM area, and registers the stack pointer of the register and the game program, and the non-game program. Return to the state before calling and exit. That is, in the call common process 3, the interrupt prohibition is maintained even after the non-game program ends without setting the value of the interrupt master permission flag after the non-game program process ends.

このような構成では、メイン制御部41は、メイン処理から非遊技プログラムを呼び出すときだけでなく、タイマ割込処理(メイン)から非遊技プログラムを呼び出すときにも、他の処理の割込を禁止するので、本実施例と同様に、非遊技プログラムの実行中に割込が実行されることによる誤作動を防止することができる。   In such a configuration, the main control unit 41 prohibits interruption of other processes not only when calling a non-game program from the main process but also when calling a non-game program from the timer interrupt process (main). Therefore, similarly to the present embodiment, it is possible to prevent malfunction due to interruption being executed during execution of the non-game program.

特に、タイマ割込処理(メイン)を実行するときに、割込禁止が設定され、タイマ割込処理(メイン)の終了時に割込禁止が解除されることで、タイマ割込処理(メイン)の実行中に他の処理の割込が禁止されることとなるが、この場合でも、タイマ割込処理(メイン)から非遊技プログラムを呼び出すときに再度他の処理の割込を禁止するので、何らかの原因により割込禁止設定が解除されてしまった場合でも、非遊技プログラムの実行中に割込が実行されることによる誤作動を防止することができる。   In particular, when the timer interrupt process (main) is executed, the interrupt prohibition is set, and when the timer interrupt process (main) ends, the interrupt prohibition is canceled, so that the timer interrupt process (main) Interruption of other processes will be prohibited during execution, but even in this case, when calling a non-game program from the timer interrupt process (main), interrupts of other processes are prohibited again. Even when the interrupt prohibition setting is canceled due to the cause, it is possible to prevent malfunction due to the interrupt being executed during the execution of the non-game program.

また、前述のようにタイマ割込処理(メイン)を実行するときに、割込禁止が設定され、タイマ割込処理(メイン)の終了時に割込禁止が解除されることで、タイマ割込処理(メイン)の実行中に他の処理の割込が禁止される構成であるが、タイマ割込処理(メイン)から非遊技プログラムを呼び出すときに再度他の処理の割込を禁止する場合には、非遊技プログラムの呼び出し時に設定した他の処理の割込の禁止の設定を、該非遊技プログラムの終了後も維持することで、タイマ割込処理(メイン)の実行中にも関わらず、非遊技プログラムの実行により割込の禁止が解除されてしまうことを防止できる。   In addition, when executing timer interrupt processing (main) as described above, interrupt prohibition is set, and when the timer interrupt processing (main) ends, timer prohibition is canceled, so timer interrupt processing In the configuration where interrupts of other processes are prohibited during execution of (main), but when interrupts of other processes are prohibited again when a non-game program is called from the timer interrupt process (main) By maintaining the setting of prohibition of interrupts of other processes set at the time of calling the non-game program even after the non-game program ends, the non-game It is possible to prevent the prohibition of interrupts from being canceled by executing the program.

次に、メイン制御部41のRAM41cの初期化について、図19に基づいて説明する。   Next, initialization of the RAM 41c of the main control unit 41 will be described with reference to FIG.

本実施例のメイン制御部41は、設定変更処理の開始時において、RAM41cの記憶内容が破壊されていると判定した場合に、遊技RAM領域、未使用領域4、非遊技RAM領域を初期化する、すなわち使用可能領域の全ての領域を初期化する初期化0を行う。   The main control unit 41 of this embodiment initializes the game RAM area, the unused area 4, and the non-game RAM area when it is determined that the stored contents of the RAM 41c are destroyed at the start of the setting change process. That is, initialization 0 for initializing all areas of the usable area is performed.

また、設定変更処理の開始時において、RAM41cの記憶内容が破壊されていないと判定した場合に、遊技RAM領域のうち特別ワークを除く領域、未使用領域4、非遊技RAM領域を初期化する、すなわち使用可能領域のうち特別ワーク以外の領域を初期化する初期化1を行う。   In addition, when it is determined that the stored contents of the RAM 41c are not destroyed at the start of the setting change process, the game RAM area except the special work area, the unused area 4, and the non-game RAM area are initialized. That is, initialization 1 for initializing an area other than the special work in the usable area is performed.

また、設定変更処理の終了時において、遊技RAM領域のうち重要ワーク、一般ワーク、未使用領域3、遊技スタック領域(未使用)を初期化する、すなわち遊技RAM領域のうち特別ワーク及び遊技スタック領域(使用中)以外の領域を初期化する初期化2を行う。   At the end of the setting change process, the important work, the general work, the unused area 3 and the game stack area (unused) in the game RAM area are initialized, that is, the special work and the game stack area in the game RAM area. Initialization 2 is performed to initialize areas other than (in use).

また、特定の遊技状態の終了時であり、かつ1ゲーム終了時に、遊技RAM領域のうち一般ワーク、未使用領域3及び遊技スタック領域(未使用)を初期化する初期化3を行う。   Also, at the end of a specific game state and at the end of one game, initialization 3 is performed to initialize the general work, the unused area 3 and the game stack area (unused) in the game RAM area.

また、特定の遊技状態の終了時でない1ゲーム終了時に、遊技RAM領域のうち未使用領域3、遊技スタック領域(未使用)を初期化する初期化4を行う。   Also, at the end of one game, not at the end of a specific game state, initialization 4 is performed to initialize the unused area 3 and the game stack area (unused) in the game RAM area.

このように、本実施例のメイン制御部41は、所定条件が成立したときに初期化0〜4を行い、所定条件として第1の条件が成立したときに、RAM41cの使用可能領域のうちの遊技プログラムが用いるデータが記憶されている遊技RAM領域の少なくとも一部を初期化し、所定条件として第2の条件が成立したときに、遊技RAM領域の少なくとも一部と、RAM41cの使用可能領域のうちの非遊技プログラムが用いる非遊技RAM領域の少なくとも一部を初期化する。   As described above, the main control unit 41 according to the present embodiment performs initialization 0 to 4 when a predetermined condition is satisfied, and among the usable areas of the RAM 41c when the first condition is satisfied as the predetermined condition. When at least a part of the game RAM area in which data used by the game program is stored is initialized and the second condition is established as a predetermined condition, at least a part of the game RAM area and the usable area of the RAM 41c At least a part of the non-game RAM area used by the non-game program is initialized.

具体的には、図19に示すように、第1の条件として、1ゲームの終了時には、使用可能領域のうち遊技RAM領域の一部である、未使用領域3及び遊技スタック領域(未使用)を初期化するが、使用可能領域のうち非遊技RAM領域は初期化しない。また、第1条件として、特定の遊技状態の終了時には、使用可能領域のうち遊技RAM領域の一部である一般ワーク、未使用領域3、遊技スタック領域(未使用)を初期化するが、使用可能領域のうち非遊技RAM領域は初期化しない。また、第1条件として、設定変更状態が終了した後には、使用可能領域のうち遊技RAM領域の一部である重要ワーク、一般ワーク、未使用領域3、遊技スタック領域(未使用)を初期化するが、使用可能領域のうち非遊技RAM領域は初期化しない。   Specifically, as shown in FIG. 19, as a first condition, at the end of one game, an unused area 3 and a game stack area (unused) that are part of the game RAM area among the available areas. Is initialized, but the non-game RAM area of the usable area is not initialized. In addition, as a first condition, at the end of a specific gaming state, a general work, an unused area 3 and a game stack area (unused) that are part of the gaming RAM area among the available areas are initialized. Of the possible areas, the non-game RAM area is not initialized. Also, as the first condition, after the setting change state is finished, the important work, the general work, the unused area 3, and the game stack area (unused) that are a part of the game RAM area among the available areas are initialized. However, the non-game RAM area in the usable area is not initialized.

一方、第2の条件として、設定変更状態を開始したときに、RAMに異常がない場合には、使用可能領域のうち遊技RAM領域の一部である重要ワーク、一般ワーク、未使用領域3、遊技スタック領域(未使用)、遊技スタック領域(使用)を初期化するとともに、非遊技RAM領域の全ての領域を初期化する。また、設定変更状態を開始したときに、RAMに異常がある場合には、使用可能領域のうち遊技RAM領域の全ての領域を初期化するとともに、遊技RAM領域の全ての領域を初期化する。   On the other hand, as a second condition, when there is no abnormality in the RAM when the setting change state is started, an important work, a general work, an unused area 3 that is a part of the game RAM area among the usable areas, The game stack area (unused) and the game stack area (used) are initialized, and all the non-game RAM areas are initialized. If the RAM is abnormal when the setting change state is started, all the game RAM areas in the usable area are initialized and all the game RAM areas are initialized.

本実施例のメイン制御部41は、遊技の進行に係わる遊技プログラムと、遊技プログラムによって呼び出されるプログラムであり、遊技の進行に係わらない非遊技プログラムと、を実行可能であり、遊技プログラム及び非遊技プログラムを記憶するROM41dを備えている。   The main control unit 41 of this embodiment is capable of executing a game program related to the progress of the game and a non-game program that is called by the game program and is not related to the progress of the game. A ROM 41d for storing programs is provided.

このような構成では、一のROM41dにおいて遊技プログラムと、非遊技プログラムと、が混在していると、どのプログラムが遊技の進行に係わるプログラムであるかの判別が困難である。   In such a configuration, when a game program and a non-game program are mixed in one ROM 41d, it is difficult to determine which program is a program related to the progress of the game.

これに対して、本実施例では、ROM41dは、遊技プログラムが記憶される遊技プログラム領域と、非遊技プログラムが記憶される非遊技プログラム領域と、を含んでおり、遊技プログラム領域と、非遊技プログラム領域と、がそれぞれ別個に割り当てられているため、遊技プログラムと、非遊技プログラムと、を記憶領域の違いに応じて容易に特定することができる。   On the other hand, in the present embodiment, the ROM 41d includes a game program area in which a game program is stored and a non-game program area in which a non-game program is stored. Since the areas are assigned separately, the game program and the non-game program can be easily specified according to the difference in the storage area.

また、本実施例のメイン制御部41は、遊技プログラムのワークとして用いられ、遊技プログラムが用いるデータを記憶する遊技RAM領域と、非遊技プログラムのワークとして用いられ、非遊技プログラムが用いるデータを記憶する非遊技RAM領域と、を含むRAM41cを備えており、RAM41cにおいて遊技RAM領域と、非遊技RAM領域と、がそれぞれ別個に割り当てられているため、遊技プログラムが用いるデータと、非遊技プログラムが用いるデータと、を記憶領域の違いに応じて容易に特定することができるとともに、メイン制御部41は、第1の初期化条件が成立したときに、遊技RAM領域の少なくとも一部を初期化し、第2の初期化条件が成立したときに、遊技RAM領域の少なくとも一部を初期化するとともに、非遊技RAM領域の少なくとも一部を初期化するため、RAM41cに記憶されている遊技プログラムが用いるデータと非遊技プログラムが用いるデータのうち状況に応じて適切なデータを初期化することができる。   In addition, the main control unit 41 of the present embodiment is used as a game program work, and stores a game RAM area for storing data used by the game program, and a non-game program work and stores data used by the non-game program. The RAM 41c includes a non-game RAM area, and since the game RAM area and the non-game RAM area are separately allocated in the RAM 41c, the data used by the game program and the non-game program are used. The main control unit 41 initializes at least a part of the game RAM area when the first initialization condition is satisfied, and can specify the data. When the initialization condition 2 is satisfied, at least a part of the game RAM area is initialized and To initialize at least a portion of the non-gaming RAM area, it is possible to initialize the appropriate data in accordance with the status of the data used by data and non-game programs used by the game program stored in the RAM 41c.

本実施例のメイン制御部41は、第1の初期化条件として、1ゲームが終了した時には、遊技RAM領域のうちの一部である未使用領域3及び遊技スタック領域(未使用)を初期化し、第1の初期化条件として、特別な遊技状態(BB)が終了した時で、かつ1ゲームが終了した時には、遊技RAM領域のうちの一部である一般ワーク、未使用領域3及び遊技スタック領域(未使用)を初期化し、第1の初期化条件として、設定変更が終了し、メイン処理が開始されたときには、遊技RAM領域のうちの一部である重要ワーク、一般ワークの領域、未使用領域3及び遊技スタック領域(未使用)を初期化するので、状況に応じて適切なデータを初期化することができる。   The main control unit 41 of the present embodiment initializes the unused area 3 and the game stack area (unused), which are part of the game RAM area, when the first game is completed as a first initialization condition. As a first initialization condition, when a special game state (BB) is finished and when one game is finished, a general work that is a part of the game RAM area, an unused area 3 and a game stack When the area (unused) is initialized and the setting change is completed and the main process is started as the first initialization condition, the important work and general work areas that are part of the game RAM area are not used. Since the use area 3 and the game stack area (unused) are initialized, appropriate data can be initialized according to the situation.

また、本実施例のメイン制御部41は、第2の初期化条件として、設定変更開始時でRAMに異常がないときには、遊技RAM領域のうち一部である重要ワーク、一般ワーク、未使用領域3、遊技スタック領域(未使用)及び遊技スタック領域(使用中)を初期化するとともに、非遊技RAM領域のうち、遊技プログラムから参照される領域、遊技プログラムから参照されない領域、非遊技スタック領域(未使用)及び非遊技スタック領域(使用中)、すなわち非遊技RAM領域の全ての領域を初期化し、第2の初期化条件として、設定変更開始時でRAMに異常があるときには、遊技RAM領域のうち、特別ワーク、重要ワーク、一般ワーク、未使用領域3、遊技スタック領域(未使用)及び遊技スタック領域(使用中)、すなわち遊技RAM領域の全ての領域を初期化するとともに、非遊技RAM領域のうち、遊技プログラムから参照される領域、遊技プログラムから参照されない領域、非遊技スタック領域(未使用)及び非遊技スタック領域(使用中)、すなわち非遊技RAM領域の全ての領域を初期化するため、RAM41cに記憶されている遊技プログラムが用いるデータと、非遊技プログラムが用いるデータと、のうち状況に応じて適切なデータを初期化することができる。   In addition, as a second initialization condition, the main control unit 41 of the present embodiment, when there is no abnormality in the RAM at the start of setting change, important work, general work, unused area that are part of the game RAM area 3. A game stack area (unused) and a game stack area (in use) are initialized, and among the non-game RAM areas, an area that is referenced from a game program, an area that is not referenced from a game program, and a non-game stack area ( Unused) and non-game stack areas (in use), that is, all areas of the non-game RAM area are initialized, and when there is an abnormality in the RAM at the start of setting change as a second initialization condition, Among them, special work, important work, general work, unused area 3, game stack area (unused) and game stack area (in use), that is, game R In addition to initializing all areas of the M area, of the non-game RAM area, an area that is referenced from the game program, an area that is not referenced from the game program, a non-game stack area (unused), and a non-game stack area (in use) ) In other words, in order to initialize all areas of the non-game RAM area, data appropriate for the situation is initialized among data used by the game program stored in the RAM 41c and data used by the non-game program. can do.

尚、本実施例のメイン制御部41は、第1の初期化条件が成立したときに、遊技RAM領域の一部の領域を初期化する構成であるが、メイン制御部41は、第1の初期化条件が成立したときに、遊技RAM領域の少なくとも一部の領域を初期化するものであれば良く、遊技RAM領域の全ての領域を初期化するものでも良い。   The main control unit 41 according to the present embodiment is configured to initialize a part of the game RAM area when the first initialization condition is satisfied. What is necessary is just to initialize at least a part of the game RAM area when the initialization condition is satisfied, and it is also possible to initialize all areas of the game RAM area.

また、本実施例のメイン制御部41は、第2の初期化条件が成立したときに、遊技RAM領域の一部を初期化するとともに、非遊技RAM領域の全ての領域を初期化する構成であるが、メイン制御部41は、第2の初期化条件が成立したときに遊技RAM領域の少なくとも一部の領域を初期化するとともに、非遊技RAM領域の少なくとも一部の領域を初期化するものであれば良く、遊技RAM領域の全ての領域を初期化するものでも良いし、非遊技RAM領域の全ての領域を初期化するものでも良いし、非遊技RAM領域の少なくとも一部の領域を初期化するものでも良いし、遊技RAM領域及び非遊技RAM領域の双方の全ての領域を初期化するものでも良い。   In addition, the main control unit 41 of the present embodiment is configured to initialize a part of the game RAM area and initialize all areas of the non-game RAM area when the second initialization condition is satisfied. However, the main control unit 41 initializes at least a part of the game RAM area when the second initialization condition is satisfied, and initializes at least a part of the non-game RAM area. It is sufficient that all areas of the game RAM area are initialized, all areas of the non-game RAM area may be initialized, or at least a part of the non-game RAM area is initialized. It is also possible to initialize all areas of the game RAM area and the non-game RAM area.

本実施例のメイン制御部41は、遊技RAM領域を初期化するプログラムと、非遊技RAM領域を初期化するプログラムと、を別個のプログラムとして構成しているので、遊技プログラムが非遊技RAM領域の初期化をせずに済むため、遊技プログラムの容量を削減できる。また、第1の初期化条件が成立したときにも、第2の初期化条件が成立したときにも、遊技RAM領域を初期化するプログラムを共用できる。さらに遊技RAM領域を初期化するプログラムを遊技プログラムとして備え、非遊技RAM領域を初期化するプログラムを非遊技プログラムとして備えるので、遊技プログラムが非遊技RAM領域を初期化したり、非遊技プログラムが遊技RAM領域を初期化したりすることがなく、遊技プログラムが非遊技プログラムに影響を与えること、非遊技プログラムが遊技プログラムに影響を与えることを防止できる。   The main control unit 41 of this embodiment is configured as a program that initializes the game RAM area and a program that initializes the non-game RAM area as separate programs, so that the game program is stored in the non-game RAM area. Since it is not necessary to initialize, the capacity of the game program can be reduced. Further, the program for initializing the game RAM area can be shared both when the first initialization condition is satisfied and when the second initialization condition is satisfied. Furthermore, since a program for initializing the game RAM area is provided as a game program, and a program for initializing the non-game RAM area is provided as a non-game program, the game program initializes the non-game RAM area, It is possible to prevent the game program from affecting the non-game program and the non-game program from affecting the game program without initializing the area.

本実施例のメイン制御部41は、第1の初期化条件として、メイン処理において遊技終了時処理設定を行った後に、特定の遊技状態の終了時でないと判定されたとき、すなわち1ゲームが終了した時に遊技終了時の初期化対象RAMの先頭アドレスを設定し、遊技領域初期化処理を実行することで、遊技RAM領域のうち所定の領域を初期化するので、遊技単位毎に遊技の進行に係る不要な遊技RAM領域の一部の領域を初期化することができる。   The main control unit 41 of the present embodiment sets the game end time process setting in the main process as the first initialization condition, and determines that it is not the end of the specific game state, that is, one game is ended. When the game ends, the start address of the initialization target RAM is set, and a predetermined area of the game RAM area is initialized by executing the game area initialization process, so that the game progresses for each game unit. A part of the unnecessary game RAM area can be initialized.

本実施例のメイン制御部41は、設定キースイッチ37がONの状態で起動され、設定変更処理を開始したとき、すなわち設定変更操作が行われたことに基づいて第2の初期化条件が成立したときに、遊技領域初期化処理を実行して遊技RAM領域のうち所定の領域を初期化するとともに、非遊技領域初期化処理を実行して非遊技RAM領域のうち所定の領域を初期化するようになっており、遊技店員の設定変更操作(初期化操作)に基づいて遊技RAM領域と非遊技RAM領域の双方を初期化することができる。   The main control unit 41 of the present embodiment is activated when the setting key switch 37 is ON and starts the setting change process, that is, the second initialization condition is established based on the setting change operation being performed. The game area initialization process is executed to initialize a predetermined area of the game RAM area, and the non-game area initialization process is executed to initialize the predetermined area of the non-game RAM area. Thus, both the game RAM area and the non-game RAM area can be initialized based on a game store clerk setting change operation (initialization operation).

本実施例のRAM41cの遊技RAM領域は、遊技プログラムに基づく制御を行う際にも非遊技プログラムに基づく制御を行う際にも用いられることのない未使用領域3を含み、第1の初期化条件の成立時にも、第2の初期化条件の成立時にも、未使用領域3を初期化するので、未使用領域3に不正なデータが記憶されることを防止できる。   The game RAM area of the RAM 41c of this embodiment includes an unused area 3 that is not used when performing control based on a game program or when performing control based on a non-game program, and the first initialization condition Since the unused area 3 is initialized both when and when the second initialization condition is satisfied, it is possible to prevent illegal data from being stored in the unused area 3.

尚、本実施例では、第1の初期化条件の成立時にも第2の初期化条件の成立時にも未使用領域3を初期化する構成であるが、少なくとも第1の初期化条件の成立時、第2の初期化条件の成立時のいずれか一方の条件の成立時に未使用領域3を初期化する構成であれば、未使用領域3に不正なデータが記憶されることを防止できる。また、第1の初期化条件が複数の条件を含む構成であれば、そのうち少なくとも一の条件の成立時に未使用領域3を初期化する構成であれば、未使用領域3に不正なデータが記憶されることを防止できる。第2の初期化条件が複数の条件を含む構成であっても同様である。   In this embodiment, the unused area 3 is initialized both when the first initialization condition is satisfied and when the second initialization condition is satisfied, but at least when the first initialization condition is satisfied. If the configuration is such that the unused area 3 is initialized when either one of the conditions when the second initialization condition is satisfied, illegal data can be prevented from being stored in the unused area 3. If the first initialization condition includes a plurality of conditions, invalid data is stored in the unused area 3 if the unused area 3 is initialized when at least one of the conditions is satisfied. Can be prevented. The same applies even if the second initialization condition includes a plurality of conditions.

本実施例のメイン制御部41は、遊技プログラムのワークとして用いられ、遊技プログラムが用いるデータを記憶する遊技RAM領域と、非遊技プログラムのワークとして用いられ、非遊技プログラムが用いるデータを記憶する非遊技RAM領域と、を含むRAM41cを備えており、当該RAM41cは、バックアップ電源によりスロットマシン1への電力供給が停止されてもRAM41cに記憶されたデータを所定期間保持可能な構成であって、メイン制御部41は、スロットマシン1への電力供給が開始したときに、初期設定処理を開始し、バックアップ電源により保持されているRAM41cに記憶されているデータに基づいてRAMの記憶内容が正常か否かを判定し、正常と判定された場合に、RAM41cに記憶されているデータ基づいて制御を再開する。   The main control unit 41 according to the present embodiment is used as a game program work, a game RAM area that stores data used by the game program, and a non-game program work that is used as a non-game program work. A RAM 41c including a game RAM area, and the RAM 41c is configured to retain data stored in the RAM 41c for a predetermined period even when power supply to the slot machine 1 is stopped by a backup power source. When the power supply to the slot machine 1 starts, the control unit 41 starts an initial setting process, and whether or not the storage content of the RAM is normal based on the data stored in the RAM 41c held by the backup power source. The data stored in the RAM 41c is determined to be normal. Based resume control.

このような構成において、スロットマシン1への電力供給が開始したときに、RAM41cの遊技RAM領域と非遊技RAM領域の双方の領域に記憶されたデータに基づいて、RAMの記憶内容が正常か否かを判定する際に、RAM41cに記憶されているデータ基づいて制御を再開する際の負荷が過大となる。   In such a configuration, when the power supply to the slot machine 1 is started, whether the storage contents of the RAM are normal based on the data stored in both the game RAM area and the non-game RAM area of the RAM 41c. When this is determined, the load when the control is resumed based on the data stored in the RAM 41c becomes excessive.

これに対して、本実施例のメイン制御部41は、スロットマシン1への電力供給が開始したときに、初期設定処理を開始し、バックアップ電源により保持されているRAM41cのうち遊技RAM領域のRAMパリティ、遊技RAM領域に記憶されている破壊診断用データに基づいてRAMの記憶内容が正常か否かを判定し、正常と判定された場合に、遊技RAM領域に記憶されているデータ及び非遊技RAM領域に記憶されているデータに基づいて制御を再開始するようになっており、非遊技RAM領域に記憶されており、遊技の進行に支障のない非遊技用のデータが正常か否かの判定を省くことで、遊技の進行が正常に行えることを担保しつつ、制御を再開する際の負荷を軽減することができる。   On the other hand, the main control unit 41 of this embodiment starts the initial setting process when the power supply to the slot machine 1 is started, and the RAM in the game RAM area of the RAM 41c held by the backup power source. It is determined whether or not the stored contents of the RAM are normal based on the parity and the destructive diagnosis data stored in the game RAM area, and if it is determined to be normal, the data stored in the game RAM area and the non-game Control is restarted based on the data stored in the RAM area, and whether or not the non-game data stored in the non-game RAM area and that does not interfere with the game progress is normal. By omitting the determination, it is possible to reduce the load at the time of resuming the control while ensuring that the game can proceed normally.

本実施例のRAM41cの遊技RAM領域は、遊技プログラムに基づく制御を行う際にも、非遊技プログラムに基づく制御を行う際にも、用いられることのない未使用領域3を含んでおり、メイン制御部41は、スロットマシン1への電力供給が開始されたときに、初期設定処理を実行し、初期設定処理において、未使用領域3を含む遊技RAM領域のRAMパリティを算出し、算出されたRAMパリティに基づいて遊技RAM領域の記憶内容が正常か否かを判定するので、未使用領域3に不正なデータが記憶されることを防止できる。   The game RAM area of the RAM 41c of this embodiment includes an unused area 3 that is not used when performing control based on a game program or when performing control based on a non-game program. The unit 41 executes an initial setting process when power supply to the slot machine 1 is started, calculates a RAM parity of the game RAM area including the unused area 3 in the initial setting process, and calculates the calculated RAM Since it is determined whether or not the stored contents of the game RAM area are normal based on the parity, it is possible to prevent illegal data from being stored in the unused area 3.

本実施例のメイン制御部41は、スロットマシン1への電力供給が開始されたときに、初期設定処理を実行し、初期設定処理において、RAM41cの記憶内容が破壊されているか否かを判定し、RAM41cの記憶内容が破壊されていると判定した場合に、RAM異常フラグを設定してエラー処理に制御し、その後、自動的に復帰することがなくエラー状態を維持する一方、設定キースイッチ36がONの状態で、スロットマシン1への電力供給が開始されたときに、設定変更処理に制御し、遊技領域初期化処理を実行して遊技RAM領域を初期化するとともに、非遊技領域初期化処理を実行して非遊技RAM領域を初期化する、すなわちエラー状態が解除されることに伴い遊技RAM領域と非遊技RAM領域の双方を初期化するので、遊技RAM領域及び非遊技RAM領域のいずれかに異常が生じたまま遊技が進行してしまうことを防止できる。   The main control unit 41 according to the present embodiment executes an initial setting process when power supply to the slot machine 1 is started, and determines whether or not the storage content of the RAM 41c is destroyed in the initial setting process. When it is determined that the stored contents of the RAM 41c are destroyed, the RAM abnormality flag is set to control the error processing, and thereafter the error state is maintained without being automatically restored, while the setting key switch 36 When the power supply to the slot machine 1 is started in the state of ON, control is made to the setting change process, the game area initialization process is executed to initialize the game RAM area, and the non-game area initialization The process is executed to initialize the non-game RAM area, that is, both the game RAM area and the non-game RAM area are initialized when the error state is canceled. While game any abnormality has occurred in the RAM area and the non gaming RAM area can be prevented from proceeding.

本実施例のメイン制御部41は、スロットマシン1への電力供給が開始されたときに、初期設定処理において、RAM41cの記憶内容が破壊されていると判定した場合に、RAM異常フラグを設定してエラー処理に制御し、その後、設定キースイッチ36がONの状態で、スロットマシン1への電力供給が開始され、設定変更処理が実行されることで、エラー状態が解除されることに伴い遊技RAM領域と非遊技RAM領域の双方を初期化する構成であるが、メイン制御部41は、スロットマシン1への電力供給が開始されたときに、初期設定処理において、RAM41cの記憶内容が破壊されていると判定した場合に、遊技RAM領域と非遊技RAM領域の双方を初期化し、エラー処理に制御するものであっても良い。このような構成では、エラー処理に制御する際に、遊技RAM領域と非遊技RAM領域の双方を初期化するので、本実施例と同様に、遊技RAM領域及び非遊技RAM領域のいずれかに異常が生じたまま遊技が進行してしまうことを防止できる。また、RAM41cの記憶内容が破壊されている判定されたとき、その後設定変更処理が実行されるときの双方で、遊技RAM領域と非遊技RAM領域の双方を初期化する構成でも良く、このような構成であっても、遊技RAM領域及び非遊技RAM領域のいずれかに異常が生じたまま遊技が進行してしまうことを防止できる。   When the main control unit 41 of this embodiment determines that the stored contents of the RAM 41c are destroyed in the initial setting process when power supply to the slot machine 1 is started, the main control unit 41 sets a RAM abnormality flag. Then, when the setting key switch 36 is ON, the power supply to the slot machine 1 is started and the setting change process is executed. The main control unit 41 is configured to initialize both the RAM area and the non-game RAM area, but when the power supply to the slot machine 1 is started, the stored contents of the RAM 41c are destroyed in the initial setting process. When it is determined that the game RAM area is determined, both the game RAM area and the non-game RAM area may be initialized and controlled to error processing. In such a configuration, when controlling to error processing, both the game RAM area and the non-game RAM area are initialized, so that either the game RAM area or the non-game RAM area is abnormal as in this embodiment. It is possible to prevent the game from proceeding with the occurrence of In addition, when it is determined that the storage contents of the RAM 41c are destroyed, both the game RAM area and the non-game RAM area may be initialized both when the setting change process is executed thereafter. Even with the configuration, it is possible to prevent the game from proceeding with an abnormality occurring in either the game RAM area or the non-game RAM area.

本実施例のメイン制御部41は、スロットマシン1への電力供給が停止され、電断検出回路48により電源電圧の低下が検出されたときに電断処理を実行し、電断処理において、RAM41cへのアクセスを禁止することで、遊技RAM領域及び非遊技RAM領域の双方へのアクセスを禁止するので、次回起動時にデータが破壊されているか否かの判定対象外となる非遊技RAM領域を利用して不正なデータが記憶されることを防止できる。   The main control unit 41 of the present embodiment executes the power interruption process when the power supply to the slot machine 1 is stopped and the power interruption detection circuit 48 detects a decrease in the power supply voltage. In the power interruption process, the RAM 41c Access to both the game RAM area and the non-game RAM area is prohibited by prohibiting access to the non-game RAM area that is not subject to determination as to whether or not the data is destroyed at the next startup. Thus, it is possible to prevent illegal data from being stored.

次に、メイン制御部41が遊技の進行制御等に用いる時間間隔を計測するためのタイマカウンタについて、図20〜図22に基づいて説明する。   Next, a timer counter for measuring a time interval used by the main control unit 41 for game progress control and the like will be described with reference to FIGS.

メイン制御部41は、計時開始条件が成立したときに、RAM41cの遊技RAM領域に割り当てられたタイマカウンタのタイマ値として計時時間に応じた初期値を設定するとともに、タイマ割込処理(メイン)において定期的にタイマ値を減算し、タイマ値が0となることで計時時間が経過したことを特定するようになっている。   When the timing start condition is satisfied, the main control unit 41 sets an initial value corresponding to the timing time as the timer value of the timer counter assigned to the game RAM area of the RAM 41c, and in the timer interrupt process (main) The timer value is periodically subtracted, and when the timer value becomes 0, it is specified that the time has elapsed.

詳しくは、メイン制御部41は、メイン処理において計時開始条件が成立したときに、当該条件に応じたタイマカウンタが割り当てられた領域に計時時間に応じたタイマ値の初期値を設定する。設定されたタイマ値は、タイマ割込処理(メイン)の時間カウンタ更新処理において、約2.24ms毎に0となるまで1ずつ減算される。   Specifically, when a timing start condition is established in the main process, the main control unit 41 sets an initial value of a timer value corresponding to the timing time in an area to which a timer counter corresponding to the condition is assigned. The set timer value is decremented by 1 until it becomes 0 every 2.24 ms in the time counter update process of the timer interrupt process (main).

そして、メイン処理では、図20に示すように、該当するタイマカウンタのアドレスを取得し(Si1)、取得した値を読み出し(Si2)、読み出した値が0でないか否かを判定し(Si3)、読み出した値が0であると判定した場合に、計時時間が経過したことを特定する。   Then, in the main process, as shown in FIG. 20, the address of the corresponding timer counter is acquired (Si1), the acquired value is read (Si2), and it is determined whether the read value is not 0 (Si3). If it is determined that the read value is 0, it is determined that the time has elapsed.

本実施例において用いるタイマカウンタは、図21に示すように、初期値が1バイト以下の1バイトタイマA、1バイトタイマB、1バイトタイマC、初期値が1バイトを超え、2バイト以下の2バイトタイマA、2バイトタイマB、2バイトタイマC、2バイトタイマDを含む。   As shown in FIG. 21, the timer counter used in this embodiment has an initial value of 1 byte timer A, 1 byte timer B, 1 byte timer C, an initial value exceeding 1 byte, and an initial value exceeding 2 bytes. 2 byte timer A, 2 byte timer B, 2 byte timer C, 2 byte timer D are included.

1バイトタイマは、1バイト以内のタイマ値にて計測可能な比較的短い期間を計測するためのタイマであり、例えば、外部出力信号の出力期間を計測する外部出力信号タイマ、LEDの出力更新期間を計測するLED更新タイマ、停止操作の検出後、再度の停止操作が有効化されるまでの期間を計測する停止無効タイマ、リール停止後、メダルの払出が開始するまでの期間を計測する払出待ちタイマ、投入メダルセンサ31のONが検出されてからの期間を計測する投入検出タイマ、投入口センサ26のONが検出されてからの期間を計測する投入口検出タイマ、払出センサ34cのONが検出されてからの期間を計測する払出検出タイマ、リール回転開始後、停止操作が有効となるまでの期間を計測する始動時タイマなどがある。このうち停止無効タイマ、払出待ちタイマ、始動時タイマは、これらのタイマによる計測期間が1遊技の終了するタイミングを跨ぐことはないが、外部出力信号タイマ、LED更新タイマ、投入検出タイマ、投入口検出タイマ、払出検出タイマは、これらのタイマによる計測時間が1遊技の終了するタイミングを跨ぐことがある。   The 1-byte timer is a timer for measuring a relatively short period that can be measured with a timer value within 1 byte. For example, an external output signal timer that measures an output period of an external output signal, an LED output update period LED update timer that measures the time, stop invalid timer that measures the period until the stop operation is validated after detection of the stop operation, wait for payout that measures the period until the medal payout starts after the reel stops Timer, insertion detection timer for measuring the period after the insertion medal sensor 31 is detected ON, insertion slot detection timer for measuring the period after the detection of the insertion slot sensor 26 is detected, and ON of the dispensing sensor 34c are detected There are a payout detection timer for measuring a period after being started, a start-up timer for measuring a period from the start of reel rotation until the stop operation becomes effective. Among these, the stop invalid timer, the payout waiting timer, and the start timer do not cross the timing at which one game ends, but the external output signal timer, the LED update timer, the input detection timer, the input port The detection timer and the payout detection timer may straddle the timing at which one game ends with the time measured by these timers.

2バイトタイマは、1バイト以内のタイマ値では計測できない比較的長い期間を計測するためのタイマであり、例えば、1遊技に必要な規定時間(約4.1秒)を計測する1遊技時間タイマ、外部出力信号のうちセキュリティ信号の最低出力期間を計測するセキュリティ信号タイマ、遊技終了からの期間を計測する待機時間タイマ、ホッパーモータ34bの駆動後、払出センサ34cが検出されない期間を計測するホッパーエンプティタイマなどがある。このうち待機時間タイマ、ホッパーエンプティタイマは、これらのタイマによる計測期間が1遊技の終了するタイミングを跨ぐことはないが、1遊技時間タイマ、セキュリティ信号タイマは、これらのタイマによる計測時間が1遊技の終了するタイミングを跨ぐことがある。   The 2-byte timer is a timer for measuring a relatively long period that cannot be measured with a timer value within 1 byte. For example, a 1-game time timer that measures a specified time (about 4.1 seconds) required for 1 game. , A security signal timer for measuring the minimum output period of the security signal among the external output signals, a standby time timer for measuring a period from the end of the game, and a hopper empty for measuring a period in which the payout sensor 34c is not detected after the hopper motor 34b is driven. There is a timer. Of these, the waiting time timer and the hopper empty timer do not straddle the timing when one game ends, but the one gaming time timer and the security signal timer have one measuring time measured by these timers. There are times when the timing of the end of.

このようにタイマカウンタは、1遊技の終了するタイミング、すなわち遊技の進行に応じてRAM41cの一部が初期化されるタイミング(1遊技の終了時または特定の遊技状態の終了時においてRAM41cの一部が初期化されるタイミング)を跨ぐ計測期間を計測するタイマカウンタと、遊技の進行に応じてRAM41cの一部が初期化されるタイミングを跨ぐことのないタイマカウンタと、を含むが、いずれのタイマカウンタも遊技の進行に応じたタイミングでは初期化されることのない特別ワークに割り当てられている。   As described above, the timer counter is a timing at which one game ends, that is, a timing at which a part of the RAM 41c is initialized as the game progresses (a part of the RAM 41c at the end of one game or at the end of a specific gaming state). Including a timer counter that measures a measurement period spanning the timing at which a part of the RAM 41c is initialized in accordance with the progress of the game. The counter is also assigned to a special work that is not initialized at the timing according to the progress of the game.

これらタイマカウンタのうち1バイトタイマA〜Cは、RAM41cの連続する3バイトの領域(804CH〜804EH)に1バイトずつ割り当てられており、2バイトタイマA〜Dは、RAM41cの連続する8バイトの領域(804FH〜8055h)に2バイトずつ割り当てられている。さらに、1バイトタイマA〜C、2バイトタイマA〜DもRAM41cの連続する領域に割り当てられている。以下では、1バイトタイマA〜Cが割り当てられた領域を1バイトタイマ群と呼び、2バイトタイマA〜Dが割り当てられた領域を2バイトタイマ群と呼ぶ。すなわち1バイトタイマ群及び2バイトタイマ群はいずれも、所定の規則で連続するアドレスが割り当てられた領域に設定されている。尚、所定の規則で連続するアドレスが割り当てられる領域とは、例えば、開始アドレス及び開始アドレスからN(Nは自然数)ずつ加算されるアドレスが割り当てられる領域である。   Among these timer counters, the 1-byte timers A to C are allocated to the consecutive 3 byte areas (804CH to 804EH) of the RAM 41c one byte at a time, and the 2-byte timers A to D are the continuous 8-byte RAM 41c. Two bytes are allocated to the area (804FH to 8055h). Further, the 1-byte timers A to C and the 2-byte timers A to D are also assigned to continuous areas of the RAM 41c. Hereinafter, an area to which the 1-byte timers A to C are allocated is referred to as a 1-byte timer group, and an area to which the 2-byte timers A to D are allocated is referred to as a 2-byte timer group. That is, both the 1-byte timer group and the 2-byte timer group are set in an area to which consecutive addresses are assigned according to a predetermined rule. The area to which consecutive addresses are assigned according to a predetermined rule is, for example, an area to which an address added by N (N is a natural number) from the start address and the start address is assigned.

図22は、時間カウンタ更新処理の制御内容を示すフローチャートである。   FIG. 22 is a flowchart showing the control contents of the time counter update process.

時間カウンタ更新処理では、まず、1バイト用処理回数として、更新すべき1バイトのタイマカウンタの数(本実施例では3)をセットし(Sj1)、1バイトタイマ群の先頭アドレス(804CH)にポインタをセットする(Sj2)。   In the time counter update process, first, the number of 1-byte timer counters to be updated (3 in this embodiment) is set as the number of processes for 1 byte (Sj1), and the start address (804CH) of the 1-byte timer group is set. A pointer is set (Sj2).

次いで、指定アドレス(ポインタが示すアドレス)に格納された1バイトの値が0でなければ指定アドレスの1バイトの値を1減算し(Sj3)、Sj1のステップで設定した処理回数を1減算し(Sj4)、減算後の処理回数が0か否かを判定する(Sj5)。   Next, if the value of 1 byte stored at the specified address (address indicated by the pointer) is not 0, 1 is subtracted from the value of 1 byte of the specified address (Sj3), and 1 is subtracted from the number of times set in the step of Sj1. (Sj4), it is determined whether the number of processes after subtraction is 0 (Sj5).

Sj5のステップで減算後の処理回数が0でない場合、すなわち全ての1バイトタイマの更新が終了していない場合には、ポインタを1加算し(Sj6)、Sj3のステップに戻る。これにより、未処理の1バイトタイマのアドレスにポインタが移動し、指定アドレスの1バイトの値が0でなければ減算される。   If the number of processes after subtraction is not 0 in step Sj5, that is, if all 1-byte timers have not been updated, 1 is added to the pointer (Sj6), and the process returns to step Sj3. As a result, the pointer moves to the address of the unprocessed 1-byte timer, and if the 1-byte value of the designated address is not 0, the pointer is subtracted.

Sj5のステップで減算後の処理回数が0の場合、すなわち全ての1バイトタイマの更新が終了した場合には、2バイト用処理回数として、更新すべき2バイトのタイマカウンタの数(本実施例では4)をセットし(Sj7)、ポインタを1加算する(Sj8)。これにより、2バイトカウンタ群の先頭アドレス(804FH)にポインタが移動する。   When the number of processes after subtraction in step Sj5 is 0, that is, when all the 1-byte timers have been updated, the number of 2-byte timer counters to be updated as the number of 2-byte processes (this embodiment) Then, 4) is set (Sj7), and the pointer is incremented by 1 (Sj8). As a result, the pointer moves to the start address (804FH) of the 2-byte counter group.

次いで、指定アドレス(ポインタが示すアドレス)及び次のアドレスからなる領域に格納された2バイトの値が0でなければ指定アドレス及び次のアドレスの2バイトの値を1減算し(Sj9)、Sj7のステップで設定した処理回数を1減算し(Sj10)、減算後の処理回数が0か否かを判定する(Sj11)。   Next, if the 2-byte value stored in the area consisting of the designated address (address indicated by the pointer) and the next address is not 0, the 2-byte value of the designated address and the next address is decremented by 1 (Sj9), and Sj7 1 is subtracted from the number of processes set in step (Sj10), and it is determined whether or not the number of processes after subtraction is 0 (Sj11).

Sj11のステップで減算後の処理回数が0でない場合、すなわち全ての2バイトタイマの更新が終了していない場合には、ポインタを2加算し(Sj12)、Sj9のステップに戻る。これにより、未処理の2バイトタイマのアドレスにポインタが移動し、指定アドレス及び次のアドレスの2バイトの値が0でなければ減算される。   If the number of processes after the subtraction is not 0 in step Sj11, that is, if all the 2-byte timers have not been updated, the pointer is incremented by 2 (Sj12), and the process returns to step Sj9. As a result, the pointer moves to the address of the unprocessed 2-byte timer, and if the 2-byte value of the designated address and the next address is not 0, the pointer is subtracted.

Sj11のステップで減算後の処理回数が0の場合、すなわち全ての2バイトタイマの更新が終了した場合には、処理を終了する。   If the number of processes after subtraction in step Sj11 is 0, that is, if all the 2-byte timers have been updated, the process ends.

このように本実施例では、RAM41cに割り当てられたタイマカウンタの値を定期的に更新し、特定の値(0)となることで時間の経過を特定するようになっている。従来は、複数種類の時間間隔を計測する場合に、計時を要する複数種類の処理内で、タイマ値の設定及び更新を行っており、複数種類のタイマ値を更新するためのプログラムをそれぞれの処理内に設ける必要があるため、プログラム容量が増大する要因となっていた。また、複数種類のタイマカウンタは、それぞれが用いられる処理毎のデータ群として割り当てられているため、一の処理においてまとめて更新するためには、それぞれの関連性のないアドレスの値を読み出す必要があった。   As described above, in this embodiment, the value of the timer counter assigned to the RAM 41c is periodically updated to become a specific value (0), thereby specifying the passage of time. Conventionally, when measuring multiple types of time intervals, timer values are set and updated within multiple types of processing that require timekeeping, and each type of program for updating multiple types of timer values is processed. Since it is necessary to provide it inside, it was a factor which increased program capacity. In addition, since multiple types of timer counters are assigned as data groups for each process used, it is necessary to read out the values of unrelated addresses in order to update all of them in one process. there were.

これに対して本実施例では、複数種類のタイマカウンタ値が格納される領域がRAM41cの所定の規則で連続するアドレスが割り当てられた領域に設定されるとともに、指定アドレスに格納されたタイマ値を更新する処理を、現在の指定アドレスに対して定数を加算することで複数種類のタイマカウンタ値が格納された領域に対する指定アドレスを変更しながら繰り返し実行することにより複数種類のタイマ値を更新するので、複数種類のアドレスをそれぞれ指定して当該アドレスの値を更新する処理を個々の処理で行う場合よりもプログラム容量を削減することができる。   On the other hand, in this embodiment, an area in which a plurality of types of timer counter values are stored is set to an area to which consecutive addresses are assigned according to a predetermined rule in the RAM 41c, and the timer value stored in the designated address is Since multiple types of timer values are updated by repeatedly executing the update process while changing the specified address for the area where multiple types of timer counter values are stored by adding a constant to the current specified address Thus, the program capacity can be reduced as compared with the case where each of the processes for designating a plurality of types of addresses and updating the values of the addresses is performed in the individual processes.

尚、指定アドレスに格納されたタイマ値を更新する処理を、所定の演算を行うことで複数種類のタイマカウンタ値が格納された領域に対する指定アドレスを変更しながら繰り返し実行することにより複数種類のタイマ値を更新する構成であれば良く、例えば、現在の指定アドレスに対して定数を加算することで複数種類のタイマカウンタ値が格納された領域に対する指定アドレスを変更しながら繰り返し実行することにより複数種類のタイマ値を更新する構成でも良いし、基準アドレスに対して処理数に応じた値(例えば、1バイトカウンタであれば、処理数1の場合に+1、処理数2の場合に+2、処理数3の場合に+3…)を加算または減算することで複数種類のタイマカウンタ値が格納された領域に対する指定アドレスを変更しながら繰り返し実行することにより複数種類のタイマ値を更新する構成でも良い。   Multiple types of timers can be obtained by repeatedly executing the process of updating the timer value stored at the specified address while changing the specified address for the area where the multiple types of timer counter values are stored by performing a predetermined calculation. Any configuration may be used as long as the value is updated. For example, by adding a constant to the current designated address, multiple types can be obtained by repeatedly executing while changing the designated address for an area in which multiple types of timer counter values are stored. The timer value may be updated, or a value corresponding to the number of processes with respect to the reference address (for example, for a 1-byte counter, +1 for the number of processes 1, +1 for the number of processes 2, and the number of processes While changing the designated address for the area where multiple types of timer counter values are stored by adding or subtracting +3 ...) for 3 Ri may be configured to update a plurality of types of the timer value by return run.

また、本実施例では、1バイトタイマA〜C、2バイトタイマA〜Dの7種類のタイマカウンタの値を備える構成であるが、少なくとも2種類以上のタイマカウンタの値をRAM41cの所定の規則で連続するアドレスが割り当てられた領域に設定し、指定アドレスに格納されたタイマ値を更新する処理を、所定の演算を行うことで複数種類のタイマ値が格納された領域に対する指定アドレスを変更しながら繰り返し実行することにより2種類以上のタイマ値を更新する構成であれば、上記のようにプログラム容量を削減することができる。   In the present embodiment, the configuration includes seven types of timer counter values of 1-byte timers A to C and 2-byte timers A to D. However, at least two types of timer counter values are determined according to a predetermined rule of the RAM 41c. In the process of updating the timer value stored in the specified address, the specified address for the area in which multiple types of timer values are stored is changed by performing a predetermined operation. However, if the configuration is such that two or more types of timer values are updated by repeated execution, the program capacity can be reduced as described above.

また、1バイトタイマまたは2バイトタイマの一方のみ、タイマカウンタの値をRAM41cの所定の規則で連続するアドレスが割り当てられた領域に設定し、指定アドレスに格納されたタイマ値を更新する処理を、所定の演算を行うことで複数種類のタイマ値が格納された領域に対する指定アドレスを変更しながら繰り返し実行することにより複数種類のタイマ値を更新する構成でも良い。   In addition, only one of the 1-byte timer and 2-byte timer is set to set the timer counter value in an area to which consecutive addresses are assigned according to a predetermined rule in the RAM 41c, and update the timer value stored in the designated address. A configuration in which a plurality of types of timer values are updated by repeatedly executing a predetermined calculation while changing a designated address for an area in which a plurality of types of timer values are stored may be employed.

また、メイン制御部41が備える一部のタイマカウンタのみ、タイマ値をRAM41cの所定の規則で連続するアドレスが割り当てられた領域に設定し、指定アドレスに格納されたタイマ値を更新する処理を、所定の演算を行うことで複数種類のタイマ値が格納された領域に対する指定アドレスを変更しながら繰り返し実行することにより複数種類のタイマ値を更新する構成でも良い。   Further, only for some of the timer counters provided in the main control unit 41, a process of setting a timer value in an area to which consecutive addresses are assigned according to a predetermined rule in the RAM 41c and updating the timer value stored in the designated address, A configuration in which a plurality of types of timer values are updated by repeatedly executing a predetermined calculation while changing a designated address for an area in which a plurality of types of timer values are stored may be employed.

また、本実施例では、計測する期間の種類毎に別個のタイマカウンタを備える構成であるが、例えば、計測する期間が重複しない複数種類の期間について一のタイマカウンタを共用する構成としても良い。   In this embodiment, a separate timer counter is provided for each type of period to be measured. For example, a single timer counter may be shared for a plurality of types of periods in which the measurement periods do not overlap.

また、本実施例では、メイン制御部41が実行する処理として、遊技の進行状況に関わらず予め定められた処理を定期的に行うタイマ割込処理(メイン)と、遊技の進行状況に応じて段階的に異なる処理を行うメイン処理と、を含み、メイン制御部41は、メイン処理において計時条件が成立した場合にタイマカウンタに初期値を設定し、タイマ割込処理(メイン)において複数種類のタイマ値を更新するようになっており、メイン処理を構成する各処理内に複数種類のタイマ値を更新する処理を設ける必要がないため、複数種類のタイマ値の更新に係るプログラム容量を削減することができる。   In the present embodiment, the main control unit 41 executes the process according to the timer interruption process (main) for periodically performing a predetermined process regardless of the progress of the game and the progress of the game. A main process that performs different processes in stages, and the main control unit 41 sets an initial value to the timer counter when a timing condition is satisfied in the main process, and a plurality of types of timer interrupt processes (main) The timer value is updated, and it is not necessary to provide a process for updating multiple types of timer values in each process constituting the main process, so the program capacity for updating multiple types of timer values is reduced. be able to.

尚、本実施例では、メイン処理に定期的に割り込んでタイマ割込処理(メイン)を実行する構成であるが、定期的に行うタイマ割込処理内で、遊技の進行状況に関わらず予め定められた処理を行う定期処理と、遊技の進行状況に応じて段階的に異なる処理を行うメイン処理と、の双方を行う構成としても良く、このような構成においても、メイン制御部41は、メイン処理において計時条件が成立した場合にタイマカウンタに初期値を設定し、定期処理において複数種類のタイマ値を更新する構成とすることで、メイン処理を構成する各処理内に複数種類のタイマ値を更新する処理を設ける必要がないため、複数種類のタイマ値の更新に係るプログラム容量を削減することができる。   In this embodiment, the timer interrupt process (main) is executed by periodically interrupting the main process. However, in the timer interrupt process periodically performed, it is determined in advance regardless of the progress of the game. The main control unit 41 may be configured to perform both a periodic process for performing the processed process and a main process for performing a process that varies stepwise depending on the progress of the game. By setting an initial value to the timer counter when the timing condition is satisfied in the process and updating multiple types of timer values in the periodic process, multiple types of timer values are set in each process constituting the main process. Since it is not necessary to provide a process for updating, it is possible to reduce the program capacity related to updating of a plurality of types of timer values.

また、本実施例では、時間カウンタ更新処理において、指定アドレスの値が0でないことを条件に当該アドレスの値を更新するようになっており、タイマ値が異常な値に更新されてしまうことを防止できる。   Further, in this embodiment, in the time counter update process, the value of the address is updated on condition that the value of the designated address is not 0, and the timer value is updated to an abnormal value. Can be prevented.

また、本実施例では、時間カウンタ更新処理において、更新するタイマカウンタの数と同数の処理数を設定し、設定した処理数分、タイマ値を更新する処理を繰り返し実行する構成であるため、更新するタイマカウンタの数の管理が容易になるとともに、例えば、更新間隔が異なる複数種類のタイマカウンタを備える場合などに、設定する処理数に応じて更新するタイマ値の種類を任意に設定することができる。   Further, in this embodiment, in the time counter update process, the number of processes equal to the number of timer counters to be updated is set, and the process of updating the timer value is repeatedly executed for the set number of processes. The number of timer counters to be updated can be easily set. For example, when a plurality of types of timer counters having different update intervals are provided, the type of timer value to be updated can be arbitrarily set according to the number of processes to be set. it can.

尚、処理数、すなわち更新するタイマカウンタの数は、プログラムに設定されていても良いし、テーブルに設定された値を読み出して設定するようにしても良い。   Note that the number of processes, that is, the number of timer counters to be updated may be set in a program, or values set in a table may be read and set.

また、最初に処理数を設定することなく、最後に更新するタイマカウンタを予め設定するとともに、当該タイマカウンタのアドレスに到達するまでタイマ値を更新する処理を繰り返し実行する構成としたり、最後に更新するタイマカウンタの次のアドレスに特定のエンド値(例えば、FFh)を格納し、指定アドレスから読み出された値が特定のエンド値となるまでタイマ値を更新する処理を繰り返し実行する構成としても良い。   In addition, the timer counter to be updated last is set in advance without setting the number of processes at the beginning, and the timer value is updated repeatedly until the address of the timer counter is reached. It is also possible to store a specific end value (for example, FFh) at the next address of the timer counter, and to repeatedly execute the process of updating the timer value until the value read from the specified address becomes the specific end value. good.

また、本実施例では、1バイトのタイマカウンタと、2バイトのタイマカウンタと、を備え、1バイトのタイマ値を更新する処理と、2バイトのタイマ値を更新する処理と、を別個に備えるため、1バイトのタイマ値を更新する処理と、2バイトのタイマ値を更新する処理と、を共通化する場合よりもプログラムの容量やRAM41cにおいてタイマ値が占有する容量を削減することができる。   In this embodiment, a 1-byte timer counter and a 2-byte timer counter are provided, and a process for updating a 1-byte timer value and a process for updating a 2-byte timer value are separately provided. Therefore, the capacity of the program and the capacity occupied by the timer value in the RAM 41c can be reduced as compared with the case where the process of updating the 1-byte timer value and the process of updating the 2-byte timer value are made common.

尚、本実施例では、2バイトのタイマカウンタを備えることで1バイトを超える初期値に対応する相対的に長い時間を計測する構成であるが、例えば、更新間隔が異なるタイマカウンタ、例えば、タイマ割込処理(メイン)4回に1回更新する第1のタイマカウンタと、14回に1回更新する第2のタイマカウンタと、を備えることにより、2バイトのカウンタを設けることなく、相対的に長い時間間隔を計測する構成としても良く、このようにすることで、1バイトのタイマ値を更新する処理と、2バイトのタイマ値を更新する処理と、それぞれ設ける必要がなくなるため、タイマ値の更新に係るプログラム容量を削減できる。   In this embodiment, a relatively long time corresponding to an initial value exceeding 1 byte is measured by providing a 2-byte timer counter. For example, a timer counter having a different update interval, for example, a timer, is used. Interrupt processing (main) By providing a first timer counter that is updated once every four times and a second timer counter that is updated once every fourteen times, a relative value can be obtained without providing a 2-byte counter. It is also possible to employ a configuration for measuring a long time interval. By doing so, it is not necessary to provide a process for updating a 1-byte timer value and a process for updating a 2-byte timer value. It is possible to reduce the program capacity related to the update.

また、本実施例では、複数種類のタイマカウンタがRAM41cにおいて遊技の進行に応じて初期化されることのない特別ワークに割り当てられており、遊技の進行に応じて初期化されることがないため、遊技の進行状況に関わらず、遊技の進行に応じてRAM41cの一部が初期化されるタイミングを跨ぐ期間の時間を計測することができる。   In the present embodiment, a plurality of types of timer counters are assigned to special works that are not initialized in accordance with the progress of the game in the RAM 41c, and are not initialized in accordance with the progress of the game. Regardless of the progress of the game, it is possible to measure the time spanning the timing when a part of the RAM 41c is initialized in accordance with the progress of the game.

特に、本実施例では、計測期間が1遊技の終了するタイミング、すなわち遊技の進行に応じてRAM41cの一部が初期化されるタイミングを跨ぐことのあるタイマカウンタだけでなく、計測期間が遊技の進行に応じてRAM41cの一部が初期化されるタイミングを跨ぐことのないタイマカウンタについても他のタイマカウンタとともに特別ワークに割り当てられた領域に格納されているため、タイマカウンタの管理が容易になるとともに、計測期間が遊技の進行に応じてRAM41cの一部が初期化されるタイミングを跨ぐことのないタイマカウンタを、計測期間が遊技の進行に応じてRAM41cの一部が初期化されるタイミングを跨ぐことのあるタイマカウンタに変更する等、後の設計変更等によりタイマカウンタの用途を容易に変更することができる。また、上記のように計測する期間が重複しない複数種類の期間について一のタイマカウンタを共用する構成であれば、遊技の進行に応じてRAM41cの一部が初期化されるタイミングを跨ぐことのある計測期間と、遊技の進行に応じてRAM41cの一部が初期化されるタイミングを跨ぐことのない計測期間と、を一のタイマカウンタにて計測することが可能となる。   In particular, in this embodiment, not only the timer counter that may cross the timing when the measurement period ends in one game, that is, the timing at which a part of the RAM 41c is initialized as the game progresses, Since the timer counter that does not cross over the timing at which a part of the RAM 41c is initialized according to the progress is stored in the area assigned to the special work together with other timer counters, the timer counter can be easily managed. In addition, a timer counter that does not straddle the timing at which a part of the RAM 41c is initialized according to the progress of the game is set, and a timing at which a part of the RAM 41c is initialized at the measurement period according to the progress of the game. The usage of the timer counter can be easily changed by a later design change, such as changing to a timer counter that may straddle. It can be. In addition, as described above, if a single timer counter is shared for a plurality of types of periods in which measurement periods do not overlap, the timing at which a part of the RAM 41c is initialized may be crossed as the game progresses. It is possible to measure the measurement period and the measurement period that does not cross the timing at which a part of the RAM 41c is initialized in accordance with the progress of the game with one timer counter.

以上、本発明の実施例を図面により説明してきたが、本発明はこの実施例に限定されるものではなく、本発明の主旨を逸脱しない範囲における変更や追加があっても本発明に含まれることは言うまでもない。   Although the embodiments of the present invention have been described with reference to the drawings, the present invention is not limited to these embodiments, and modifications and additions within the scope of the present invention are included in the present invention. Needless to say.

前記実施例では、本発明を遊技用価値としてメダル並びにクレジットを用いて賭数が設定されるスロットマシンに適用した例について説明したが、遊技用価値として遊技球を用いて賭数を設定するスロットマシンや、遊技用価値としてクレジットのみを使用して賭数を設定する完全クレジット式のスロットマシンに適用しても良い。遊技球を遊技用価値として用いる場合は、例えば、メダル1枚分を遊技球5個分に対応させることができ、前記実施例で賭数として3を設定する場合は、15個の遊技球を用いて賭数を設定するものに相当する。   In the above-described embodiment, the example in which the present invention is applied to a slot machine in which bets are set using medals and credits as game values has been described. However, slots for setting bets using game balls as game values. The present invention may be applied to a machine or a fully credit type slot machine that sets a bet amount using only credit as a gaming value. When using a game ball as a game value, for example, one medal can correspond to five game balls, and when 3 is set as the number of bets in the above embodiment, 15 game balls are used. This is equivalent to setting the number of bets using.

さらに、メダル及び遊技球等の複数種類の遊技用価値のうちいずれか1種類のみを用いるものに限定されるものではなく、例えば、メダル及び遊技球等の複数種類の遊技用価値を併用できるものであっても良い。すなわち、メダル及び遊技球等の複数種類の遊技用価値のいずれを用いても賭数を設定してゲームを行うことが可能であり、かつ入賞の発生によってメダル及び遊技球等の複数種類の遊技用価値のいずれをも払い出し得るスロットマシンを適用しても良い。   Further, the present invention is not limited to the use of only one of a plurality of types of game values such as medals and game balls, for example, a combination of a plurality of types of game values such as medals and game balls. It may be. That is, it is possible to play a game by setting the number of bets using any of a plurality of types of gaming values such as medals and game balls, and a plurality of types of games such as medals and game balls when a winning occurs. You may apply the slot machine which can pay out all of utility values.

前記実施例では、遊技機としてのスロットマシンを適用しているが、遊技機は、スロットマシン1に限らず、遊技球を用いるパチンコ遊技機等、スロットマシン以外の遊技機において、本発明の構成、特には、遊技プログラム及び非遊技プログラムを実行可能であり、上記で説明したRAM41cの初期化、起動時のRAM異常の判定、非遊技プログラムを呼び出す際の構成を適用しても良い。   In the above embodiment, a slot machine as a gaming machine is applied. However, the gaming machine is not limited to the slot machine 1, and is not limited to the slot machine 1. In particular, a game program and a non-game program can be executed, and the above-described configuration for initializing the RAM 41c, determining a RAM abnormality at the time of activation, and calling a non-game program may be applied.

1 スロットマシン
2L、2C、2R リール
6 MAXBETスイッチ
7 スタートスイッチ
8L、8C、8R ストップスイッチ
12 遊技補助表示器
41 メイン制御部
41c RAM
91 サブ制御部
91c RAM
1 slot machine 2L, 2C, 2R reel 6 MAXBET switch 7 start switch 8L, 8C, 8R stop switch 12 game auxiliary display 41 main control unit 41c RAM
91 Sub control unit 91c RAM

Claims (1)

遊技を行う遊技機において、
プログラムを記憶可能な記憶領域を有する記憶手段と、
記憶手段に記憶されたプログラムに基づいて制御を行う制御手段と、
を備え、
前記記憶領域は、
遊技の進行に係る遊技プログラムが記憶される遊技プログラム領域と、
前記遊技プログラムによって呼び出されるプログラムであり、遊技の進行に係わらない非遊技プログラムが記憶される非遊技プログラム領域と、
を含み、
前記制御手段は、
前記遊技プログラムに基づく基本処理を実行するとともに、所定時間間隔毎に基本処理に割り込んで前記遊技プログラムに基づく割込処理を実行し、
前記基本処理からも、前記割込処理からも、前記非遊技プログラムを呼び出すことがあり、
前記基本処理から前記非遊技プログラムを呼び出すときにも、前記割込処理から前記非遊技プログラムを呼び出すときにも、他の処理の割込を禁止する、遊技機。
In gaming machines that perform games,
Storage means having a storage area capable of storing a program;
Control means for performing control based on a program stored in the storage means;
With
The storage area is
A game program area in which a game program related to the progress of the game is stored;
A non-game program area for storing a non-game program that is called by the game program and is not related to the progress of the game;
Including
The control means includes
While performing the basic process based on the game program, interrupt the basic process at predetermined time intervals to execute the interrupt process based on the game program,
The non-game program may be called from both the basic process and the interrupt process.
A gaming machine that prohibits interruption of other processes both when calling the non-game program from the basic process and when calling the non-game program from the interrupt process.
JP2015155320A 2015-08-05 2015-08-05 Game machine Active JP6816940B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015155320A JP6816940B2 (en) 2015-08-05 2015-08-05 Game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015155320A JP6816940B2 (en) 2015-08-05 2015-08-05 Game machine

Publications (2)

Publication Number Publication Date
JP2017029595A true JP2017029595A (en) 2017-02-09
JP6816940B2 JP6816940B2 (en) 2021-01-20

Family

ID=57985527

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015155320A Active JP6816940B2 (en) 2015-08-05 2015-08-05 Game machine

Country Status (1)

Country Link
JP (1) JP6816940B2 (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002000878A (en) * 2000-06-21 2002-01-08 Daiman:Kk Game machine
JP2004229772A (en) * 2003-01-29 2004-08-19 Sansei R & D:Kk Game machine
JP2009034329A (en) * 2007-08-01 2009-02-19 Sankyo Co Ltd Slot machine
JP2009136408A (en) * 2007-12-05 2009-06-25 Daito Giken:Kk Game machine
JP2009207609A (en) * 2008-03-03 2009-09-17 Takao Co Ltd Game machine
JP2010005101A (en) * 2008-06-26 2010-01-14 Fujishoji Co Ltd Game machine
JP2010082261A (en) * 2008-09-30 2010-04-15 Daiichi Shokai Co Ltd Game machine
JP2014239935A (en) * 2014-08-26 2014-12-25 株式会社大都技研 Game machine
JP2015036087A (en) * 2013-08-15 2015-02-23 京楽産業.株式会社 Game machine
JP2015083035A (en) * 2013-10-25 2015-04-30 株式会社大都技研 Game machine
JP2015139642A (en) * 2014-01-30 2015-08-03 株式会社三共 slot machine
JP2016209037A (en) * 2015-04-28 2016-12-15 サミー株式会社 Game machine

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002000878A (en) * 2000-06-21 2002-01-08 Daiman:Kk Game machine
JP2004229772A (en) * 2003-01-29 2004-08-19 Sansei R & D:Kk Game machine
JP2009034329A (en) * 2007-08-01 2009-02-19 Sankyo Co Ltd Slot machine
JP2009136408A (en) * 2007-12-05 2009-06-25 Daito Giken:Kk Game machine
JP2009207609A (en) * 2008-03-03 2009-09-17 Takao Co Ltd Game machine
JP2010005101A (en) * 2008-06-26 2010-01-14 Fujishoji Co Ltd Game machine
JP2010082261A (en) * 2008-09-30 2010-04-15 Daiichi Shokai Co Ltd Game machine
JP2015036087A (en) * 2013-08-15 2015-02-23 京楽産業.株式会社 Game machine
JP2015083035A (en) * 2013-10-25 2015-04-30 株式会社大都技研 Game machine
JP2015139642A (en) * 2014-01-30 2015-08-03 株式会社三共 slot machine
JP2014239935A (en) * 2014-08-26 2014-12-25 株式会社大都技研 Game machine
JP2016209037A (en) * 2015-04-28 2016-12-15 サミー株式会社 Game machine

Also Published As

Publication number Publication date
JP6816940B2 (en) 2021-01-20

Similar Documents

Publication Publication Date Title
JP6677984B2 (en) Gaming machine
JP6250010B2 (en) Slot machine
JP6626266B2 (en) Gaming machine
JP6516508B2 (en) Gaming machine
JP6532720B2 (en) Gaming machine
JP6685687B2 (en) Slot machine
JP6949554B2 (en) Pachinko machine
JP6646938B2 (en) Gaming machine
JP6374847B2 (en) Slot machine
JP2017046844A (en) Game machine
JP2017051503A (en) Game machine
JP2018099440A (en) Game machine
JP6250009B2 (en) Slot machine
JP6806435B2 (en) Game machine
JP6652357B2 (en) Gaming machine
JP6731533B2 (en) Amusement machine
JP2018029840A (en) Game machine
JP2018029839A (en) Slot machine
JP6816939B2 (en) Game machine
JP6660142B2 (en) Gaming machine
JP2020058868A (en) Game machine
JP6374846B2 (en) Slot machine
JP6685686B2 (en) Slot machine
JP6677985B2 (en) Gaming machine
JP6816940B2 (en) Game machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180703

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190423

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191126

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200519

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200715

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201224

R150 Certificate of patent or registration of utility model

Ref document number: 6816940

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250