JP5514872B2 - Amusement stand - Google Patents

Amusement stand Download PDF

Info

Publication number
JP5514872B2
JP5514872B2 JP2012170679A JP2012170679A JP5514872B2 JP 5514872 B2 JP5514872 B2 JP 5514872B2 JP 2012170679 A JP2012170679 A JP 2012170679A JP 2012170679 A JP2012170679 A JP 2012170679A JP 5514872 B2 JP5514872 B2 JP 5514872B2
Authority
JP
Japan
Prior art keywords
ball
control unit
special
game
winning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2012170679A
Other languages
Japanese (ja)
Other versions
JP2014030460A (en
Inventor
裕成 植山
貴之 若林
啓吾 大林
Original Assignee
株式会社大都技研
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 株式会社大都技研 filed Critical 株式会社大都技研
Priority to JP2012170679A priority Critical patent/JP5514872B2/en
Publication of JP2014030460A publication Critical patent/JP2014030460A/en
Application granted granted Critical
Publication of JP5514872B2 publication Critical patent/JP5514872B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、弾球遊技機(パチンコ機)や回胴遊技機(スロットマシン)などに代表される遊技台に関する。   The present invention relates to a game table represented by a ball game machine (pachinko machine), a spinning cylinder game machine (slot machine), and the like.

本発明に係る遊技台は、マイクロプロセッサを少なくとも備えた遊技台であって、前記遊技台は、ぱちんこ機またはスロットマシンであり、前記マイクロプロセッサは、CPUが少なくとも搭載されたものであり、前記CPUは、第一の命令を受け付けた場合に、第一の演算を少なくとも実行可能なものであり、前記CPUは、第二の命令を受け付けた場合に、第二の演算を少なくとも実行可能なものであり、前記CPUは、前記第一の演算の結果を第一のレジスタに少なくともセットするものであり、前記CPUは、前記第二の演算の結果を第二のレジスタに少なくともセットするものであり、前記第一のレジスタとは、前記第一の命令において指定されたレジスタのことであり、前記第二のレジスタとは、前記第二の命令において指定されたレジスタのことであり、前記CPUは、フラグレジスタが少なくとも搭載されたものであり、前記フラグレジスタにおける第一のビットは、第一のゼロフラグとして少なくとも機能するものであり、前記フラグレジスタにおける第二のビットは、第二のゼロフラグとして少なくとも機能するものであり、前記第一のゼロフラグは、前記第一の演算の結果がゼロの場合に、少なくともオン状態になるものであり、前記第一のゼロフラグは、前記第一の演算の結果がゼロ以外の場合に、少なくともオフ状態になるものであり、前記第一のゼロフラグは、前記第二の演算の結果がゼロの場合に、少なくともオン状態になるものであり、前記第一のゼロフラグは、前記第二の演算の結果がゼロ以外の場合に、少なくともオフ状態になるものであり、前記第二のゼロフラグは、前記第一の演算の結果がゼロの場合に、少なくともオン状態になるものであり、前記第二のゼロフラグは、前記第一の演算の結果がゼロ以外の場合に、少なくともオフ状態になるものであり、前記第二のゼロフラグは、前記第二の演算の前後で状態が変化されないものであり、前記CPUは、第三の命令を受け付けた場合に、前記第一のゼロフラグが前記オン状態であることを条件に、第一のアドレスに記憶されている命令を、該第三の命令の次に受け付ける動作を少なくとも実行するものであり、前記CPUは、第四の命令を受け付けた場合に、前記第二のゼロフラグが前記オン状態であることを条件に、第二のアドレスに記憶されている命令を、該第四の命令の次に受け付ける動作を少なくとも実行するものであり、前記第一のアドレスとは、前記第三の命令において指定されたアドレスのことであり、前記第二のアドレスとは、前記第四の命令において指定されたアドレスのことである、ことを特徴とする遊技台である。 A gaming machine according to the present invention is a gaming machine provided with at least a microprocessor, wherein the gaming machine is a pachinko machine or a slot machine, and the microprocessor is equipped with at least a CPU, and the CPU Is capable of executing at least a first operation when a first instruction is received, and the CPU is capable of executing at least a second operation when a second instruction is received. Yes, the CPU sets at least a result of the first calculation in a first register, and the CPU sets at least a result of the second calculation in a second register, The first register is a register designated in the first instruction, and the second register is designated in the second instruction. The CPU has at least a flag register mounted thereon, the first bit in the flag register functions at least as a first zero flag, and the second register in the flag register The bit of at least functions as a second zero flag, and the first zero flag is at least turned on when the result of the first operation is zero, and the first zero flag Is at least off when the result of the first operation is non-zero, and the first zero flag is at least on when the result of the second operation is zero. The first zero flag is at least in an off state when the result of the second calculation is non-zero. The second zero flag is at least turned on when the result of the first calculation is zero, and the second zero flag is set when the result of the first calculation is other than zero. The second zero flag is a state in which the state is not changed before and after the second calculation, and the CPU receives the third instruction when receiving the third instruction. On the condition that the zero flag is in the ON state, the CPU executes at least the operation of receiving the instruction stored at the first address next to the third instruction, and the CPU executes the fourth instruction If the second zero flag is in the ON state, at least the operation of receiving the instruction stored in the second address after the fourth instruction is executed. And the first address is an address designated in the third instruction, and the second address is an address designated in the fourth instruction. It is a characteristic game stand.

パチンコ機を正面側(遊技者側)から見た外観斜視図である。It is the external appearance perspective view which looked at the pachinko machine from the front side (player side). パチンコ機を正面側から見た正面図である。It is the front view which looked at the pachinko machine from the front side. パチンコ機の前面枠扉を開いた状態の外観斜視図である。It is an external appearance perspective view of the state which opened the front frame door of the pachinko machine. パチンコ機の前面枠扉を開いた状態の正面図である。It is a front view of the state which opened the front frame door of the pachinko machine. パチンコ機の背面側から見た正面図である。It is the front view seen from the back side of a pachinko machine. パチンコ機の遊技盤の略示正面図である。It is a schematic front view of the game board of the pachinko machine. 循環する遊技球の経路と各種センサの位置を説明するための遊技盤の略示正面図である。It is a schematic front view of a game board for explaining the route of the circulating game ball and the position of various sensors. パチンコ機と管理装置の接続を示すブロック図である。It is a block diagram which shows the connection of a pachinko machine and a management apparatus. 球数UI部の略示上面図である。It is a schematic top view of a ball number UI part. (a)特図の停止図柄態様の一例を示したものである。(b)装飾図柄の停止図柄態様の一例を示したものである。(c)普図の停止表示図柄の一例を示したものである。(A) An example of the stop symbol form of the special figure is shown. (B) An example of a stop symbol form of a decorative symbol is shown. (C) An example of a usual stop display symbol is shown. 制御部の回路ブロック図を示したものである。The circuit block diagram of a control part is shown. 主制御部メイン処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part main process. 主制御部タイマ割込処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part timer interruption process. (a)第1副制御部のCPUが実行するメイン処理のフローチャートである。(b)第1副制御部のコマンド受信割込みのフローチャートである。(c)第1副制御部のタイマ割込処理のフローチャートである。(d)第1副制御部の画像制御処理のフローチャートである。(A) It is a flowchart of the main process which CPU of a 1st sub control part performs. (B) It is a flowchart of the command reception interruption of a 1st sub control part. (C) It is a flowchart of the timer interruption process of a 1st sub control part. (D) It is a flowchart of the image control process of a 1st sub control part. (a)第2副制御部のCPUが実行するメイン処理のフローチャートである。(b)第2副制御部のコマンド受信割込処理のフローチャートである。(c)第2副制御部のタイマ割込処理のフローチャートである。(A) It is a flowchart of the main process which CPU of a 2nd sub control part performs. (B) It is a flowchart of the command reception interruption process of a 2nd sub control part. (C) It is a flowchart of the timer interruption process of a 2nd sub control part. (a)球数制御部のCPUが実行するメイン処理のフローチャートである。(b)球数制御部のコマンド受信割込み処理のフローチャートである。(A) It is a flowchart of the main process which CPU of a ball number control part performs. (B) It is a flowchart of the command reception interruption process of a ball number control part. 球数制御部の割込み処理のフローチャートである。It is a flowchart of the interruption process of a ball number control part. パチンコ機と管理装置の通信手順を示すシーケンスチャートである。It is a sequence chart which shows the communication procedure of a pachinko machine and a management apparatus. パチンコ機と管理装置の通信手順を示すシーケンスチャートである。It is a sequence chart which shows the communication procedure of a pachinko machine and a management apparatus. パチンコ機と管理装置の通信手順を示すシーケンスチャートである。It is a sequence chart which shows the communication procedure of a pachinko machine and a management apparatus. パチンコ機と管理装置の通信手順を示すシーケンスチャートである。It is a sequence chart which shows the communication procedure of a pachinko machine and a management apparatus. パチンコ機と管理装置の通信手順を示すシーケンスチャートである。It is a sequence chart which shows the communication procedure of a pachinko machine and a management apparatus. (a)装飾図柄表示装置に画像が表示されている状態のパチンコ機の正面図である。(b)球数UI部の上面略示図である。(A) It is a front view of the pachinko machine in the state where the image is displayed on the decorative design display device. (B) It is a schematic top view of the ball number UI part. 球数UI部の表示画像を切り替えた状態を示す図であって、(a)装飾図柄表示装置に画像が表示されている状態のパチンコ機の正面図であり、(b)球数UI部の上面略示図である。It is a figure which shows the state which switched the display image of the ball number UI part, Comprising: (a) It is a front view of the pachinko machine in the state where the image is displayed on the decorative design display device, (b) of the ball number UI part It is an upper surface schematic diagram. 球数UI部の表示画像を切り替えた状態の他の形態を示す図であって、(a)装飾図柄表示装置に画像が表示されている状態のパチンコ機の正面図であり、(b)球数UI部の上面略示図である。It is a figure which shows the other form of the state which switched the display image of the ball number UI part, Comprising: (a) It is a front view of the pachinko machine in the state where the image is displayed on the decorative design display device, (b) It is an upper surface schematic diagram of several UI part. 制御部の他の実施形態の回路ブロック図を示したものである。The circuit block diagram of other embodiment of a control part is shown. (a)主制御部と球数制御部の通信処理を説明するブロック図である。(b)シリアル通信回路を説明するブロック図である。(A) It is a block diagram explaining the communication process of a main control part and a ball number control part. (B) It is a block diagram explaining a serial communication circuit. (a)入賞口カウンタ更新処理のフローチャートである。(b)シリアルコマンド管理処理のフローチャートである。(c)シリアルコマンド受信処理のフローチャートである。(d)シリアルコマンド送信処理のフローチャートである。(e)賞球数数表示処理のフローチャートである。(A) It is a flowchart of a prize mouth counter update process. (B) It is a flowchart of a serial command management process. (C) It is a flowchart of a serial command reception process. (D) It is a flowchart of a serial command transmission process. (E) It is a flowchart of a number-of-a-balls display process. (a)入賞口カウンタ更新処理のフローチャートである。(b)入賞数記憶領域の概要図である。(A) It is a flowchart of a prize mouth counter update process. (B) It is a schematic diagram of a winning number storage area. (a)シリアルコマンド管理処理のフローチャートである。(b)シリアルコマンド受信処理のフローチャートである。(A) It is a flowchart of a serial command management process. (B) It is a flowchart of a serial command reception process. (a)シリアルコマンド送信処理のフローチャートである。(b)入賞数記憶領域の概要図である。(c)入賞数記憶領域の概要図である。(A) It is a flowchart of a serial command transmission process. (B) It is a schematic diagram of a winning number storage area. (C) It is a schematic diagram of a winning number storage area. (a)入賞数記憶領域の概要図である。(b)入賞数記憶領域の概要図である。(c)入賞数記憶領域の概要図である。(d)賞球コマンドの一例である。(A) It is a schematic diagram of a winning number storage area. (B) It is a schematic diagram of a winning number storage area. (C) It is a schematic diagram of a winning number storage area. (D) An example of a prize ball command. (a)賞球数表示処理のフローチャートである。(b)入賞数記憶領域の概要図である。(A) It is a flowchart of a prize ball number display process. (B) It is a schematic diagram of a winning number storage area. (a)主制御通信エラー管理処理のフローチャートである。(b)遊技球数減算処理のフローチャートである。(c)遊技球数表示処理のフローチャートである。(A) It is a flowchart of a main control communication error management process. (B) It is a flowchart of a game ball number subtraction process. (C) It is a flowchart of a game ball number display process. (a)シリアルコマンド管理処理のフローチャートである。(b)シリアルコマンド受信処理のフローチャートである。(c)シリアルコマンド送信処理のフローチャートである。(A) It is a flowchart of a serial command management process. (B) It is a flowchart of a serial command reception process. (C) It is a flowchart of a serial command transmission process. 主制御部と球数制御部間の通信処理のタイミングチャートである。It is a timing chart of the communication processing between a main control part and a ball number control part. 主制御部と球数制御部間の通信処理のタイミングチャートである。It is a timing chart of the communication processing between a main control part and a ball number control part. 主制御部と球数制御部間の通信処理のタイミングチャートである。It is a timing chart of the communication processing between a main control part and a ball number control part. 主制御部と球数制御部間の通信処理のタイミングチャートである。It is a timing chart of the communication processing between a main control part and a ball number control part. 主制御部と球数制御部間の通信処理のタイミングチャートである。It is a timing chart of the communication processing between a main control part and a ball number control part. 発射制御処理および球送り制御処理を説明するブロック図である。It is a block diagram explaining a launch control process and a ball feed control process. 球送り制御処理を説明するフローチャートである。It is a flowchart explaining a ball | bowl feed control process. 発射制御処理を説明するフローチャートである。It is a flowchart explaining a discharge control process. (a)球送り制御処理を説明するフローチャートである。(b)発射制御処理を説明するフローチャートである。(A) It is a flowchart explaining a ball | bowl feed control process. (B) It is a flowchart explaining a discharge control process. 球送り制御処理および発射制御処理を説明するフローチャートである。It is a flowchart explaining a ball | bowl feed control process and a discharge control process. 球送りソレノイドと発射ソレノイドのタイミングチャートである。It is a timing chart of a ball feed solenoid and a launch solenoid. 球送りソレノイドと発射ソレノイドのタイミングチャートである。It is a timing chart of a ball feed solenoid and a launch solenoid. 球送りソレノイドと発射ソレノイドのタイミングチャートである。It is a timing chart of a ball feed solenoid and a launch solenoid. 遊技媒体経路の他の形態を説明する概要図である。It is a schematic diagram explaining the other form of a game media path | route. 貯留球数管理処理を説明するフローチャートである。It is a flowchart explaining the stored ball number management process. 球送りソレノイドと発射ソレノイドのタイミングチャートである。It is a timing chart of a ball feed solenoid and a launch solenoid. 主制御部、球数制御部、および発射ソレノイドのタイミングチャートである。It is a timing chart of a main control part, a ball number control part, and a launching solenoid. 電断・復電時のパチンコ機の状態を説明する概要図である。It is a schematic diagram explaining the state of the pachinko machine at the time of a power failure / power recovery. 電断・復電時のパチンコ機の状態を説明する概要図である。It is a schematic diagram explaining the state of the pachinko machine at the time of a power failure / power recovery. 電源制御部を説明するブロック図である。It is a block diagram explaining a power supply control part. RAMに設けられるバックアップ領域の概要図である。It is a schematic diagram of the backup area provided in RAM. (a)球数制御部メイン処理を説明するフローチャートである。(b)球数制御部コマンド受信割込み処理を説明するフローチャートである。(A) It is a flowchart explaining a ball number control part main process. (B) It is a flowchart explaining a ball number control part command reception interruption process. (a)コマンド解析処理を説明するフローチャートである。(b)電断処理を説明するフローチャートである。(A) It is a flowchart explaining a command analysis process. (B) It is a flowchart explaining an electric disconnection process. 球数制御部割込み処理を説明するフローチャートである。It is a flowchart explaining a ball number control part interruption process. (a)エラー管理処理を説明するフローチャートである。(b)遊技球数管理処理を説明するフローチャートである。(c)領域内球数管理処理を説明するフローチャートである。(A) It is a flowchart explaining an error management process. (B) It is a flowchart explaining a game ball number management process. (C) It is a flowchart explaining the number-of-spheres management process in a field. (a)遊技媒体経路管理処理を説明するフローチャートである。(b)球磨き装置制御処理を説明するフローチャートである。(c)揚上装置制御処理を説明するフローチャートである。(A) It is a flowchart explaining a game media path | route management process. (B) It is a flowchart explaining a ball polishing apparatus control process. (C) It is a flowchart explaining a lifting apparatus control process. 投入検出センサおよび排出検出センサの状態判定を説明する図である。It is a figure explaining the state determination of an insertion detection sensor and a discharge | emission detection sensor. エラー発生時の報知態様を説明する図である。It is a figure explaining the alerting | reporting aspect at the time of error generation. エラー報知態様の一例を説明する概要図である。It is a schematic diagram explaining an example of an error alerting | reporting aspect. 第1のエラー報知態様におけるエラー報知までのタイムチャートである。It is a time chart until the error alerting | reporting in a 1st error alerting | reporting aspect. 第1のエラー報知態様の一例を示す図であって、(a)パチンコ機の正面図であり、(b)球数UI部の上面図である。It is a figure which shows an example of a 1st error alerting | reporting aspect, Comprising: (a) It is a front view of a pachinko machine, (b) It is a top view of a ball number UI part. 第2のエラー報知態様に係る球数制御部の(a)コマンド解析処理を説明するフローチャートであり、(b)電断処理のフローチャートである。It is a flowchart explaining the (a) command analysis process of the ball number control part which concerns on a 2nd error alerting | reporting aspect, (b) It is a flowchart of a power interruption process. 第2のエラー報知態様に係る球数制御部割込み処理のフローチャートである。It is a flowchart of the ball number control part interruption process which concerns on a 2nd error alerting | reporting aspect. 第2のエラー報知態様におけるエラー報知までのタイムチャートである。It is a time chart until the error alerting | reporting in a 2nd error alerting | reporting aspect. 第2のエラー報知態様の一例を示す図であって、(a)パチンコ機の正面図であり、(b)球数UI部の上面図である。It is a figure which shows an example of a 2nd error alerting | reporting aspect, Comprising: (a) It is a front view of a pachinko machine, (b) It is a top view of a ball number UI part. 第3のエラー報知態様の一例を示す図である。It is a figure which shows an example of the 3rd error alerting | reporting aspect. パチンコ機を正面側(遊技者側)から見た外観斜視図である。It is the external appearance perspective view which looked at the pachinko machine from the front side (player side). パチンコ機を背面側から見た外観図である。It is the external view which looked at the pachinko machine from the back side. 遊技盤を正面から見た略示正面図である。It is the schematic front view which looked at the game board from the front. 制御部の回路ブロック図を示したものである。The circuit block diagram of a control part is shown. (a)特図の停止図柄態様の一例を示したものである。(b)装飾図柄の停止図柄態様の一例を示したものである。(c)普図の停止表示図柄の一例を示したものである。(A) An example of the stop symbol form of the special figure is shown. (B) An example of a stop symbol form of a decorative symbol is shown. (C) An example of a usual stop display symbol is shown. 主制御部300から基本回路302の主要部のみを抜き出して示した図である。FIG. 3 is a diagram showing only a main part of a basic circuit 302 extracted from a main control part 300. (a)CPU304のメモリマップを示した図である。(b)(a)に示すメモリマップのうちのRWM領域の詳細を示した図である。(c)CPU304のI/Oマップを示した図である。(A) It is the figure which showed the memory map of CPU304. (B) It is the figure which showed the detail of the RWM area | region of the memory map shown to (a). (C) It is the figure which showed the I / O map of CPU304. 初期化処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the initialization process. システムリセット後の起動処理のタイムチャートである。It is a time chart of the starting process after a system reset. 主制御部メイン処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part main process. (a)初期設定1で行うTレジチェック処理の流れを示すフローチャートである。(b)Tレジチェック処理のプログラムリストの一例である。(A) It is a flowchart which shows the flow of the T-registration check process performed by the initial setting 1. FIG. (B) It is an example of the program list of T cash register check processing. (a)変形例に係るTレジチェック処理の流れを示すフローチャートである。(b)変形例に係るTレジチェック処理のプログラムリストの一例である。(A) It is a flowchart which shows the flow of the T cash register check process which concerns on a modification. (B) It is an example of the program list of the T cash register check process concerning a modification. 図82(b)のプログラムリストからLD命令のみを抜き出して示した図である。FIG. 83 is a diagram showing only an LD instruction extracted from the program list of FIG. 82 (b). 主制御部タイマ割込処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part timer interruption process. (a)第1副制御部のCPUが実行するメイン処理のフローチャートである。(b)第1副制御部のコマンド受信割込み処理のフローチャートである。(c)第1副制御部のタイマ割込処理のフローチャートである。(d)第1副制御部の画像制御処理のフローチャートである。(A) It is a flowchart of the main process which CPU of a 1st sub control part performs. (B) It is a flowchart of the command reception interruption process of a 1st sub control part. (C) It is a flowchart of the timer interruption process of a 1st sub control part. (D) It is a flowchart of the image control process of a 1st sub control part. (a)第2副制御部500のCPU504が実行するメイン処理のフローチャートである。(b)第2副制御部500のコマンド受信割込処理のフローチャートである。(c)第2副制御部500のタイマ割込処理のフローチャートである。(A) It is a flowchart of the main process which CPU504 of the 2nd sub control part 500 performs. (B) It is a flowchart of the command reception interruption process of the 2nd sub control part 500. FIG. (C) It is a flowchart of the timer interruption process of the 2nd sub control part 500. FIG. ROM306に記憶されるデータの一例を示した図である。6 is a diagram illustrating an example of data stored in a ROM 306. FIG. 主制御部300の命令データの構成の一例を示した図である。3 is a diagram illustrating an example of a configuration of instruction data of a main control unit 300. FIG. (a)主制御部300の命令データの上位ビットと下位ビットを示した図である。(b)命令データテーブルの一例を示した図である。(A) It is the figure which showed the high-order bit and the low-order bit of the instruction data of the main control part 300. (B) It is the figure which showed an example of the instruction data table. CALL命令によるアドレスの移動の一例を概念的に示したものである。An example of the movement of the address by the CALL instruction is shown conceptually. CALL命令の命令データと補足データの一例を示した図である。It is the figure which showed an example of the command data and supplementary data of a CALL command. (a)EXESUB命令の構成の一例を示した図である。(b)図90(b)の空き領域に対してEXESUB命令を割り当てた命令データテーブルを示した図である。(A) It is the figure which showed an example of the structure of the EXESUB instruction. FIG. 90B is a diagram showing an instruction data table in which an EXESUB instruction is assigned to the empty area in FIG. EXESUB命令によるアドレスの移動の一例を概念的に示した図である。It is the figure which showed notionally an example of the movement of the address by an EXESUB instruction. EXESUB命令によるサブルーチンの先頭アドレスの呼び出しの一例を示したものである。It shows an example of calling of the top address of a subroutine by the EXESUB instruction. EXESUB命令の命令データと補足データの一例を示した図である。It is the figure which showed an example of the instruction data and the supplementary data of the EXESUB instruction. 主制御部タイマ割込処理の制御プログラムの一例を示したプログラムリストである。It is the program list which showed an example of the control program of the main control part timer interruption process. ROM領域が、EXESUB命令によって呼び出すことのできる領域よりも、制御プログラムデータが記憶されているROM制御領域が広くなるように構成されている場合を示した図である。It is the figure which showed the case where the ROM area was comprised so that the ROM control area in which the control program data was memorize | stored might become larger than the area | region which can be called by the EXESUB instruction. (a)(b)EXESUB命令(EXESUBmn)によって呼び出すことができるサブルーチンの先頭アドレスの領域を拡張した場合の一例を示した図である。(A) (b) It is the figure which showed an example at the time of expanding the area | region of the top address of the subroutine which can be called by the EXESUB instruction (EXESUBmn). (a)特図2状態更新処理および特図1状態更新処理の制御プログラムの一部を抜き出したものである。(b)普図状態更新処理の制御プログラムの一部を抜き出したものである。(c)従来のメモリ読み出し処理の一部を抜き出したものである。(d)RAMエリア(RWM領域)に設けた変数領域の一部を示した図である。(e)本実施形態に係るメモリ読み出し処理の一部を抜き出したものである。(A) A part of the control program of the special figure 2 state update process and the special figure 1 state update process is extracted. (B) A part of the control program for the normal state update process is extracted. (C) A part of a conventional memory read process is extracted. (D) It is the figure which showed a part of variable area | region provided in RAM area (RWM area | region). (E) A part of the memory read processing according to the present embodiment is extracted. 図100(c)に示す従来のメモリ読出し処理の機械語と、図100(e)に示す本実施形態に係るメモリ読出し処理の機械語と、を比較した図である。It is the figure which compared the machine language of the conventional memory reading process shown in FIG.100 (c), and the machine language of the memory reading process which concerns on this embodiment shown in FIG.100 (e). 特図1関連抽選処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a special figure 1 related lottery process. (a)テーブル選択用テーブルの一例を示した図である。(b)第1変動パターン選択テーブルの一例を示した図である。(c)第2変動パターン選択テーブルの一例を示した図である。(d)RWM領域のアドレスF040H〜F042Hに対応するRAM308の記憶領域に設けられる保留数記憶領域、乱数1記憶領域、乱数2記憶領域を示した図である。(A) It is the figure which showed an example of the table for table selection. (B) It is the figure which showed an example of the 1st fluctuation pattern selection table. (C) It is the figure which showed an example of the 2nd fluctuation pattern selection table. (D) It is the figure which showed the reservation number storage area, the random number 1 storage area, and the random number 2 storage area which are provided in the storage area of the RAM 308 corresponding to the addresses F040H to F042H of the RWM area. 主制御部300のROM306に記憶されるデータテーブルの定義の一部と、RAM308に設けられる変数格納領域の定義の一部を示したプログラムリストの一例である。3 is an example of a program list showing a part of a definition of a data table stored in a ROM 306 of the main control unit 300 and a part of a definition of a variable storage area provided in a RAM 308. 特別図柄変動時間抽選処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a special symbol fluctuation | variation time lottery process. 特別図柄変動時間抽選処理のプログラムリストの一例である。It is an example of a program list of special symbol variation time lottery processing. 制御部300(のCPU304)が備える命令の一部と、その説明を示した図である。It is the figure which showed a part of command with which the control part 300 (CPU304) is provided, and its description. (a)主制御部300の命令データの上位ビットと下位ビットを示した図である。(b)命令データテーブルの一例を示した図である。(A) It is the figure which showed the high-order bit and the low-order bit of the instruction data of the main control part 300. (B) It is the figure which showed an example of the instruction data table. テーブル選択用テーブル、第1変動パターン選択テーブル、および第2変動パターン選択テーブルの変形例を示した図である。It is the figure which showed the modification of the table for table selection, the 1st fluctuation pattern selection table, and the 2nd fluctuation pattern selection table. 変形例に係る特別図柄変動時間抽選処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the special symbol fluctuation | variation time lottery process which concerns on a modification. (a)ROM306に記憶される初期設定データテーブルの一例を示した図である。(b)初期設定処理後のRAM308の記憶領域の一部を示した図である。(c)初期設定処理の流れを示すフローチャートである。(A) It is the figure which showed an example of the initial setting data table memorize | stored in ROM306. (B) It is the figure which showed a part of storage area of RAM308 after the initialization process. (C) It is a flowchart which shows the flow of an initial setting process. 初期設定処理のプログラムリストの一例である。It is an example of the program list of an initialization process. (a)主制御部300が備える第2特殊命令の一部を示した図である。(b)第2特殊命令を実行する前後のフラグレジスタの状態を示した図である。(A) It is the figure which showed a part of 2nd special command with which the main-control part 300 is provided. (B) It is the figure which showed the state of the flag register before and behind performing a 2nd special instruction. CPJR命令を用いた処理の一例を示した図である。It is a figure showing an example of processing using a CPJR instruction. (a)従来の命令を用いたプログラムの一例を示した図である。(b)CPJR命令を用いたプログラムの一例である。(A) It is the figure which showed an example of the program using the conventional command. (B) An example of a program using a CPJR instruction. CPJR命令を用いた他の処理の一例を示した図である。It is a figure showing an example of other processing using a CPJR instruction. 処理Vを含む、CPJR命令を用いた他の処理の一例を示した図である。FIG. 10 is a diagram illustrating an example of another process using a CPJR instruction including a process V. CPRT命令を用いた処理の一例を示した図である。It is a figure showing an example of processing using a CPRT instruction. (a)CPRT命令を用いたプログラムの一例である。(b)従来の命令を用いたプログラムの一例を示した図である。(A) An example of a program using a CPRT instruction. (B) It is the figure which showed an example of the program using the conventional command. 主制御部300が備える第3特殊命令の一部を示した図である。FIG. 10 is a diagram illustrating a part of a third special instruction included in the main control unit 300. 「RESmZ n、r」命令の具体例を示した図である。FIG. 10 is a diagram illustrating a specific example of a “RESmZ n, r” instruction. 「RESmZ n、(rr)」命令の具体例を示した図である。FIG. 10 is a diagram illustrating a specific example of a “RESmZ n, (rr)” instruction. 主制御部300の命令マップのうち、RES命令に該当する部分を抜き出して示した図である。It is the figure which extracted and showed the part applicable to a RES command from the command map of the main control part. 変形例1に係るRES命令を示した図である。FIG. 10 is a diagram showing a RES instruction according to Modification 1. 変形例1に係るRES命令の具体例を示した図である。FIG. 10 is a diagram illustrating a specific example of a RES instruction according to Modification 1. 変形例1に係るRES命令を用いたプログラムの一例を示した図である。FIG. 10 is a diagram illustrating an example of a program using a RES instruction according to Modification 1. 変形例2に係るRES命令を示した図である。FIG. 10 is a diagram illustrating a RES instruction according to Modification 2. 変形例2に係るRES命令の具体例を示した図である。FIG. 10 is a diagram illustrating a specific example of a RES instruction according to Modification 2. 変形例2に係るRES命令の具体例を示した図である。FIG. 10 is a diagram illustrating a specific example of a RES instruction according to Modification 2. 主制御部300の命令マップのうち、変形例2に係るRES命令に該当する部分を抜き出して示した図である。It is the figure which extracted and showed the part applicable to the RES command which concerns on the modification 2 from the command map of the main control part. RES命令の他の変形例を示した図である。It is the figure which showed the other modification of the RES instruction. (a)所定ビットのアクセスを禁止しないRES命令を備えた場合の命令マップと、所定ビットのアクセスを禁止するRES命令を備えた場合の命令マップを示した図である。(b)RES命令の第1オペランドの数値の大小と、RES命令の命令マップの並び順を異ならせた例を示した図である。(A) It is the figure which showed the instruction map at the time of providing the RES instruction which prohibits the access of a predetermined bit, and the instruction map when provided with the RES instruction which prohibits the access of a predetermined bit. (B) It is the figure which showed the example which made the magnitude of the numerical value of the 1st operand of a RES instruction differ, and the arrangement | sequence order of the instruction map of a RES instruction. (a)ユーザプログラムの一部であるプログラム起動設定処理の一例を示した図である。(b)ユーザプログラムの一部である電源投入時設定処理の一例を示した図である。(A) It is the figure which showed an example of the program starting setting process which is a part of user program. (B) It is the figure which showed an example of the power-on setting process which is a part of user program. 主制御部タイマ割込処理に相当するユーザプログラムの一部を示した図である。It is the figure which showed a part of user program equivalent to a main control part timer interruption process. 主制御部300が備える第4特殊命令の内容と、主制御部300のROM領域を示した図である。FIG. 6 is a diagram illustrating the contents of a fourth special instruction included in the main control unit 300 and the ROM area of the main control unit 300. 主制御部300の命令マップのうち、第4特殊命令に係るRST命令に該当する部分を抜き出して示した図である。It is the figure which extracted and showed the part applicable to the RST command which concerns on a 4th special command from the command map of the main control part. スロットマシンを正面側(遊技者側)から見た外観斜視図である。FIG. 3 is an external perspective view of the slot machine as viewed from the front side (player side). 前面扉を開けた状態のスロットマシンを示す正面図である。It is a front view showing the slot machine in a state where the front door is opened. 制御部の回路ブロック図を示したものである。The circuit block diagram of a control part is shown. (a)各リール(左リール、中リール、右リール)に施される図柄の配列を平面的に展開して示した図である。(b)入賞役(作動役を含む)の種類、各入賞役に対応する図柄組合せ、各入賞役の作動または払出を示した図である。(A) It is the figure which expanded and showed the arrangement | sequence of the symbol given to each reel (left reel, middle reel, right reel) planarly. (B) It is the figure which showed the kind of winning combination (including an operating combination), the symbol combination corresponding to each winning combination, and the operation or payout of each winning combination. 主制御部メイン処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part main process. 主制御部タイマ割込処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part timer interruption process. (a)第1副制御部のCPU1404が実行するメイン処理のフローチャートである。(b)第1副制御部のコマンド受信割込処理のフローチャートである。(c)第1副制御部のタイマ割込処理のフローチャートである。(A) It is a flowchart of the main process which CPU1404 of a 1st sub control part performs. (B) It is a flowchart of the command reception interruption process of a 1st sub control part. (C) It is a flowchart of the timer interruption process of a 1st sub control part. (a)第2副制御部のCPU1504が実行するメイン処理のフローチャートである。(b)第2副制御部のコマンド受信割込処理のフローチャートである。(c)第2副制御部のタイマ割込処理のフローチャートである。(d)第2副制御部の画像制御処理のフローチャートである。(A) It is a flowchart of the main process which CPU1504 of a 2nd sub control part performs. (B) It is a flowchart of the command reception interruption process of a 2nd sub control part. (C) It is a flowchart of the timer interruption process of a 2nd sub control part. (D) It is a flowchart of the image control process of a 2nd sub control part. 本発明の他の適用例を示した図である。It is the figure which showed the other example of application of this invention. マイクロプロセッサ3000を用いた場合の基本回路302の一構成例を示す図である。FIG. 11 is a diagram illustrating a configuration example of a basic circuit 302 when a microprocessor 3000 is used. リセットの流れを示すフローチャートである。It is a flowchart which shows the flow of reset. 図146に示す乱数生成回路318の内部構成図である。It is an internal block diagram of the random number generation circuit 318 shown in FIG. 図148に示すノイズフィルタ3185による処理の一例を示す図である。FIG. 147 is a diagram illustrating an example of processing by the noise filter 3185 illustrated in FIG. 148. 図148に示す乱数更新回路3183の詳細を示す図である。FIG. 148 is a diagram showing details of a random number update circuit 3183 shown in FIG. 148. 乱数生成範囲の最大値が設定されていない場合において出力される乱数の範囲を示す図である。It is a figure which shows the range of the random number output when the maximum value of the random number generation range is not set. 図151とは異なる最大値が設定された場合に出力される乱数の範囲を示す図である。FIG. 15 is a diagram illustrating a range of random numbers output when a maximum value different from FIG. 151 is set. 最大値と最小値を設定した乱数生成範囲において、乱数を取得することができる範囲を示す図である。It is a figure which shows the range which can acquire a random number in the random number generation range which set the maximum value and the minimum value. 本実施形態の遊技台で使用される乱数の導出源を表で示す図である。It is a figure which shows the derivation source of the random number used with the game machine of this embodiment with a table | surface. 割込み制御回路3100の内部レジスタ3101に用意された第1内部情報レジスタを説明するための図である。5 is a diagram for explaining a first internal information register prepared in an internal register 3101 of an interrupt control circuit 3100. FIG. 周波数監視回路3182における異常の検出例を示す図である。10 is a diagram illustrating an example of abnormality detection in a frequency monitoring circuit 3182. FIG. 乱数監視回路3184における異常の検出例を示す図である。It is a figure which shows the example of detection of abnormality in the random number monitoring circuit 3184. 乱数が一巡する周期とタイマ割込みの周期を比較した図である。It is the figure which compared the cycle in which a random number makes a round, and the cycle of a timer interruption. 主制御部メイン処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part main process. 主制御部メイン処理における初期設定2の流れを示すフローチャートである。It is a flowchart which shows the flow of the initial setting 2 in a main control part main process. ステップS1053における乱数生成回路初期設定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the random number generation circuit initial setting process in step S1053. 主制御部タイマ割込処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part timer interruption process. (a)普図関連抽選処理の流れを示すフローチャートである。(b)普図抽選テーブルを示す図である。(A) It is a flowchart which shows the flow of a common drawing relevant lottery process. (B) It is a figure which shows a common drawing lottery table. 特図関連抽選処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a special figure related lottery process. (a)特図抽選テーブルを示す図である。(b)停止図柄抽選テーブルを示す図である。(A) It is a figure which shows a special drawing lottery table. (B) It is a figure which shows a stop symbol lottery table. デバイス監視処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a device monitoring process. ステップS217における入賞受付処理のうち、特図当選乱数および普図当選乱数を取得する処理の流れを示した図である。It is the figure which showed the flow of the process which acquires a special figure winning random number and a common winning random number among winning prize reception processes in step S217. (a)電源オフの場合の動作を示す図である。(b)瞬断の場合の動作を示す図である。(A) It is a figure which shows the operation | movement in the case of power-off. (B) It is a figure which shows the operation | movement in the case of a momentary interruption. 乱数生成範囲の問題点を示す図である。It is a figure which shows the problem of a random number generation range. 図150で説明した乱数更新回路3183の変形例を示す図である。It is a figure which shows the modification of the random number update circuit 3183 demonstrated in FIG. 払出制御部メイン処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a payout control part main process. 払出制御部タイマ割り込み処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a payout control part timer interruption process. 割込み制御回路3100の内部レジスタ3101に用意された第2内部情報レジスタを説明するための図である。6 is a diagram for explaining a second internal information register prepared in the internal register 3101 of the interrupt control circuit 3100. FIG. 割込み制御回路3100の内部レジスタ3101に用意された第3内部情報レジスタを説明するための図である。FIG. 10 is a diagram for explaining a third internal information register prepared in the internal register 3101 of the interrupt control circuit 3100. 割込み制御回路3100の内部レジスタ3101に用意された第4内部情報レジスタを説明するための図である。FIG. 10 is a diagram for explaining a fourth internal information register prepared in the internal register 3101 of the interrupt control circuit 3100. システムリセットの流れを乱数更新との関係を含めて示す図である。It is a figure which shows the flow of a system reset including the relationship with random number update. (a)遊技制御プログラムの初期設定で実行される処理を模式的に示した図である。(b)(a)の処理の概念を説明するための図である。(A) It is the figure which showed typically the process performed by the initial setting of a game control program. (B) It is a figure for demonstrating the concept of the process of (a). 図146に示すマイクロプロセッサ3000のリセット制御回路314の変形例を示した図である。FIG. 17 is a diagram showing a modification of the reset control circuit 314 of the microprocessor 3000 shown in FIG. 146. 主制御部300と第1副制御部400とのうち主制御部300のみでWDT3141のタイムアウトが生じた場合の例を示すタイミングチャートである。10 is a timing chart showing an example when a timeout of WDT 3141 occurs only in main control unit 300 out of main control unit 300 and first sub control unit 400. (a)主制御部の構成の第1変形例を示した図である。(b)主制御部の構成の第2変形例を示した図である。(c)ランダム遅延回路317、電圧監視回路338、およびWDT314を有して構成されたリセット回路の構成例を示した図である。(A) It is the figure which showed the 1st modification of the structure of the main control part. (B) It is the figure which showed the 2nd modification of the structure of the main control part. (C) It is the figure which showed the structural example of the reset circuit comprised including the random delay circuit 317, the voltage monitoring circuit 338, and WDT314. (a)図180(c)の第1変形例を示した図である。(b)図180(c)の第2変形例を示した図である。(A) It is the figure which showed the 1st modification of FIG.180 (c). (B) It is the figure which showed the 2nd modification of FIG.180 (c). (a)図180(c)に示すリセット回路の第3変形例を示した図である。(b)CPU304に接続される各種ICの一部を示した図である。(A) It is the figure which showed the 3rd modification of the reset circuit shown in FIG.180 (c). (B) It is the figure which showed a part of various IC connected to CPU304. 図182(b)に示すリセット信号出力端子XRSTOの接続の第1変形例を示した図である。It is the figure which showed the 1st modification of the connection of the reset signal output terminal XRSTO shown in FIG. 182 (b). 図75を用いて説明した基本回路302と、この基本回路302に接続される各種ICの一部を示した図である。76 is a diagram illustrating the basic circuit 302 described with reference to FIG. 75 and a part of various ICs connected to the basic circuit 302. FIG. (a)固定延長時間の設定例を示したものである。(b)ランダム延長時間の設定例を示したものである。(A) An example of setting a fixed extension time is shown. (B) A setting example of the random extension time is shown. WDT314のタイムアウト時間の設定例を示したものである。An example of setting the timeout time of WDT 314 is shown. (a)〜(d)リセット出力端子XSRSTO端子の出力信号の変化と、セキュリティモードの状態変化を示した図である。(A)-(d) It is the figure which showed the change of the output signal of a reset output terminal XSRSTO terminal, and the state change of a security mode. (a)、(b)固定延長処理の終了タイミングと、リセット出力端子XRSTOからHレベルの信号を出力するタイミングが一致するが、ランダム延長時間が異なる例を示した図である。(c)、(d)固定延長処理の終了タイミングと、リセット出力端子XRSTOからHレベルの信号を出力するタイミングが一致するが、固定延長時間が異なる例を示した図である。(A), (b) It is the figure which showed the example from which the end timing of a fixed extension process and the timing which outputs the signal of H level from reset output terminal XRSTO correspond, but differ in random extension time. (C), (d) It is the figure which showed the example which the completion | finish timing of a fixed extension process and the timing which outputs the signal of H level from reset output terminal XRSTO correspond, but fixed extension time differs. 固定延長処理を契機にリセット出力信号を変化させる例を示した図である。It is the figure which showed the example which changes a reset output signal on the occasion of a fixed extension process. アドレス信号、データ信号、制御信号、およびリセット出力信号の変化と、セキュリティモードの状態変化を示した図である。It is the figure which showed the change of the state of an address signal, a data signal, a control signal, and a reset output signal, and a security mode. (a)外部リセット後の他の出力信号の状態変化を示した図である。(b)内部リセット後の他の出力信号の状態変化を示した図である。(A) It is the figure which showed the state change of the other output signal after an external reset. (B) It is the figure which showed the state change of the other output signal after internal reset. (a)外部リセット後の他の出力信号の状態変化の他の例を示した図である。(b)内部リセット後の他の出力信号の状態変化の他の例を示した図である。(A) It is the figure which showed the other example of the state change of the other output signal after an external reset. (B) It is the figure which showed the other example of the state change of the other output signal after internal reset. (a)外部リセット後のセキュリティモードの開始タイミングの例を示した図である。(b)内部リセット後のセキュリティモードの開始タイミングの例を示した図である。(A) It is the figure which showed the example of the start timing of the security mode after an external reset. (B) It is the figure which showed the example of the start timing of the security mode after internal reset. 本発明の基本概念を示した図である。It is the figure which showed the basic concept of this invention. (a)図2を用いて説明した電源基板182、払出基板170、および主基板156の接続例を示した図である。(b)(a)に対応する従来の接続態様を示した図である。(A) It is the figure which showed the example of a connection of the power supply board | substrate 182 demonstrated using FIG. 2, the payout board | substrate 170, and the main board | substrate 156. FIG. (B) It is the figure which showed the conventional connection aspect corresponding to (a). 変形例に係る主制御部メイン処理の流れを示すフローチャートであり、上記図81に対応するフローチャートである。It is a flowchart which shows the flow of the main control part main process which concerns on a modification, and is a flowchart corresponding to the said FIG. 主制御部メイン処理における初期設定2の流れを示すフローチャートである。It is a flowchart which shows the flow of the initial setting 2 in a main control part main process. 本発明に係る所定の出力端子の信号出力の一例を説明するための図である。It is a figure for demonstrating an example of the signal output of the predetermined | prescribed output terminal which concerns on this invention. 本発明に係る所定の出力端子の信号出力の一例を説明するための図である。It is a figure for demonstrating an example of the signal output of the predetermined | prescribed output terminal which concerns on this invention. ユーザリセット時におけるシステムクロック信号、アドレス信号、データ信号、制御信号、およびリセット出力信号の変化を示した図である。It is the figure which showed the change of the system clock signal at the time of a user reset, a data signal, a control signal, and a reset output signal. 主制御部における電断時処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process at the time of a power failure in a main control part. 図141のステップS2101における初期設定処理のフローチャートである。It is a flowchart of the initial setting process in step S2101 of FIG. 図146に示すタイマ回路311の構成を詳しく示したブロック図である。146 is a block diagram showing in detail the configuration of timer circuit 311 shown in FIG. 146. FIG. 図146に示すカウンタ回路312の構成を詳しく示したブロック図である。146 is a block diagram showing in detail the configuration of a counter circuit 312 shown in FIG. 146. FIG. 制御レジスタ3121を詳しく説明するための図である。It is a figure for demonstrating the control register 3121 in detail. 図78(a)に示すメモリマップ上における内蔵RAMエリアや内蔵レジスタエリアの読み込みや書き込みタイミングを説明するためのタイミングチャートである。79 is a timing chart for explaining read / write timings of an internal RAM area and an internal register area on the memory map shown in FIG. 78 (a). 図78(b)に示すI/Oマップ上における内蔵レジスタエリアの読み込みや書き込みタイミングを説明するためのタイミングチャートである。79 is a timing chart for explaining the reading and writing timings of the internal register area on the I / O map shown in FIG. 78 (b). 図146に示すマイクロプロセッサ3000内部におけるカウンタ回路312への信号の流れを内部のみ示す図である。146 is a diagram showing only the flow of signals to counter circuit 312 in microprocessor 3000 shown in FIG. 146. FIG. カウンタ回路0を不定期な更新とする例を示した図である。It is the figure which showed the example which makes the counter circuit 0 update irregularly. カウンタ回路0をカウンタ回路1の更新ソースとする変形例1を示した図である。FIG. 10 is a diagram illustrating a first modification in which the counter circuit 0 is an update source of the counter circuit 1; カウンタ回路0とカウンタ回路1で2バイトカウンタとして機能させる変形例2を示した図である。It is the figure which showed the modification 2 which makes the counter circuit 0 and the counter circuit 1 function as a 2-byte counter. カウンタ回路0の更新ソースをカウンタ回路1の更新ソースとする変31例を示した図である。FIG. 38 is a diagram showing a modification 31 in which the update source of the counter circuit 0 is the update source of the counter circuit 1. カウンタ回路0とカウンタ回路1を相互にカスケード接続する変形例4を示す図である。FIG. 10 is a diagram showing a fourth modification in which the counter circuit 0 and the counter circuit 1 are cascade-connected to each other. マイクロプロセッサ3000(基本回路)の外部における外部メモリの読み込みや書き込みチップセレクトタイミングを説明するためのタイミングチャートである。10 is a timing chart for explaining reading and writing chip select timings of an external memory outside a microprocessor 3000 (basic circuit). 外部I/Oの読み込みや書き込みチップセレクトタイミングを説明するためのタイミングチャートである。5 is a timing chart for explaining external I / O reading and writing chip select timing. 図146に示すマイクロプロセッサ3000内部におけるカウンタ回路312への信号の流れを内部のみ示す図である。146 is a diagram showing only the flow of signals to counter circuit 312 in microprocessor 3000 shown in FIG. 146. FIG. 主制御部タイマ割込処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part timer interruption process. (a)第1副制御部のCPUが実行するメイン処理のフローチャートである。(b)第1副制御部のコマンド受信割込み処理のフローチャートである。(c)第1副制御部のタイマ割込処理のフローチャートである。(d)第1副制御部の画像制御処理のフローチャートである。(A) It is a flowchart of the main process which CPU of a 1st sub control part performs. (B) It is a flowchart of the command reception interruption process of a 1st sub control part. (C) It is a flowchart of the timer interruption process of a 1st sub control part. (D) It is a flowchart of the image control process of a 1st sub control part. (a)第2副制御部500のCPU504が実行するメイン処理のフローチャートである。(b)第2副制御部500のコマンド受信割込処理のフローチャートである。(c)第2副制御部500のタイマ割込処理のフローチャートである。(A) It is a flowchart of the main process which CPU504 of the 2nd sub control part 500 performs. (B) It is a flowchart of the command reception interruption process of the 2nd sub control part 500. FIG. (C) It is a flowchart of the timer interruption process of the 2nd sub control part 500. FIG. コマンド設定送信処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a command setting transmission process. 大当り中用コマンド送信処理の流れを示すフローチャートである。It is a flowchart which shows the flow of command transmission processing for jackpots. ブロック転送処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a block transfer process. (a)〜(d)大当り遊技中に参照されるコマンドテーブルの一例を示した図である。(A)-(d) It is the figure which showed an example of the command table referred during a jackpot game. 本発明の特徴部分のみを抜き出して示したフローチャートである。It is the flowchart which extracted and showed only the characteristic part of this invention. (a)、(b)本発明の特徴部分を上記図224と異なる視点で示したフローチャートである。(A), (b) It is the flowchart which showed the characteristic part of this invention from the viewpoint different from the said FIG. 本発明の特徴部分に対応する従来技術の処理の流れを示したフローチャートであり、上記図224に対応するフローチャートである。It is the flowchart which showed the flow of the process of the prior art corresponding to the characteristic part of this invention, and is a flowchart corresponding to the said FIG. (a)本発明に係る大当り中用コマンド送信処理においてブロック転送を行う場合の所要時間を示した図であり。(b)従来技術に係る大当り中用コマンド送信処理においてブロック転送を行う場合の所要時間を示した図である。(A) It is the figure which showed the required time in the case of performing block transfer in the jackpot middle command transmission processing which concerns on this invention. (B) It is the figure which showed the required time in the case of performing block transfer in the jackpot middle command transmission processing which concerns on a prior art. 補正時間待機処理の配置場所の例を示したフローチャートである。It is the flowchart which showed the example of the arrangement | positioning place of correction | amendment time waiting | standby process. 割込み処理の流れを模式的に示した図である。It is the figure which showed the flow of interruption processing typically. コマンド設定送信処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a command setting transmission process. (a)〜(f)遊技中に参照されるコマンドテーブルの一例を示した図である。(A)-(f) It is the figure which showed an example of the command table referred during a game. 主制御部300が備える第5特殊命令の一部と、その説明を示した図である。It is the figure which showed a part of 5th special command with which the main-control part 300 is provided, and its description. 第5特殊命令のバイト数とステート数を比較した図である。It is the figure which compared the number of bytes of a 5th special instruction, and the number of states. ZフラグやSZフラグを変化させる命令の一例を示した図である。It is the figure which showed an example of the instruction | command which changes Z flag and SZ flag. タイマ更新処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a timer update process. (a)本発明に係るタイマ更新処理のプログラムの一例を示した図である。(b)従来のタイマ更新処理のプログラムの一例を示した図である。(A) It is the figure which showed an example of the program of the timer update process which concerns on this invention. (B) It is the figure which showed an example of the program of the conventional timer update process. (a)表示図柄抽選の流れを示すフローチャートである。(b)抽選準備処理の流れを示すフローチャートである。(c)データ選択処理の流れを示すフローチャートである。(A) It is a flowchart which shows the flow of a display symbol lottery. (B) It is a flowchart which shows the flow of a lottery preparation process. (C) It is a flowchart which shows the flow of a data selection process. 本発明に係る抽選準備処理のプログラムの一例を示した図である。It is the figure which showed an example of the program of the lottery preparation process which concerns on this invention. 抽選処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a lottery process. 本発明に係る抽選処理のプログラムの一例を示した図である。It is the figure which showed an example of the program of the lottery process which concerns on this invention. 従来の抽選処理のプログラムの一例を示した図である。It is the figure which showed an example of the program of the conventional lottery process. 払出要求数送信処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a payout request number transmission process. 本発明に係る払出要求数送信処理のプログラムの一例を示した図である。It is the figure which showed an example of the program of the payment request number transmission process which concerns on this invention. 本発明の概要を示した図である。It is the figure which showed the outline | summary of this invention. 本発明の変形例を示した図である。It is the figure which showed the modification of this invention. 本発明の他の概要を示した図である。It is the figure which showed the other outline | summary of this invention. WARU命令の変形例を示した図である。It is the figure which showed the modification of the WARU instruction. パチンコ機を正面側(遊技者側)から見た外観斜視図である。It is the external appearance perspective view which looked at the pachinko machine from the front side (player side). 遊技盤を正面から見た略示正面図である。It is the schematic front view which looked at the game board from the front. パチンコ機を背面側から見た外観斜視図である。It is the external appearance perspective view which looked at the pachinko machine from the back side. (a)特図の停止表示態様の一例を示したものである。(b)装飾図柄の一例を示したものである。(c)普図の停止表示態様の一例を示したものである。(A) An example of a special display stop display mode is shown. (B) An example of a decorative design is shown. (C) An example of a normal stop display mode is shown. 制御部の回路ブロック図を示したものである。The circuit block diagram of a control part is shown. 基本回路の内部構成図である。It is an internal block diagram of a basic circuit. 基本回路に接続される乱数用水晶発振器とシステム用水晶発振器の配線パターンの一例を示した回路ブロック図である。It is a circuit block diagram showing an example of a wiring pattern of a random number crystal oscillator and a system crystal oscillator connected to a basic circuit. 乱数回路の内部構成図である。It is an internal block diagram of a random number circuit. 乱数回路が備える周波数監視回路の内部構成図である。It is an internal block diagram of the frequency monitoring circuit with which a random number circuit is provided. 主制御部メイン処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part main process. 主制御部タイマ割り込み処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part timer interruption process. 入賞受付処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a prize reception process. 特図状態更新処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a special figure state update process. 払出制御部メイン処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a payout control part main process. (a)払出制御部タイマ割り込み処理の流れを示すフローチャートである。(b)ストローブ割り込み処理の流れを示すフローチャートである。(A) It is a flowchart which shows the flow of a payout control part timer interruption process. (B) It is a flowchart which shows the flow of a strobe interruption process. (a)副制御部メイン処理の流れを示すフローチャートである。(b)コマンド入力処理の流れを示すフローチャートである。(c)変動パターン選択処理の流れを示すフローチャートである。(d)図柄停止処理の流れを示すフローチャートである。(e)ストローブ割り込み処理の流れを示すフローチャートである。(f)チャンスボタン割り込み処理の流れを示すフローチャートである。(g)変数更新割り込み処理の流れを示すフローチャートである。(A) It is a flowchart which shows the flow of a sub control part main process. (B) It is a flowchart which shows the flow of command input processing. (C) It is a flowchart which shows the flow of a fluctuation pattern selection process. (D) It is a flowchart which shows the flow of a symbol stop process. (E) It is a flowchart which shows the flow of a strobe interruption process. (F) It is a flowchart which shows the flow of a chance button interruption process. (G) It is a flowchart which shows the flow of a variable update interruption process. 基本回路が搭載されるパッケージの外観斜視図であり、同図(b)は、パッケージの視認非容易部の近傍を示す側面図である。It is an external appearance perspective view of the package in which a basic circuit is mounted, The figure (b) is a side view which shows the vicinity of the visual recognition non-easy part of a package. (a)基本回路が搭載されるパッケージの平面図である。(b)パッケージの端子と下側基板のみを抜き出して示す外観斜視図である。(A) It is a top view of the package in which a basic circuit is mounted. (B) It is an external appearance perspective view which extracts and shows only the terminal and lower board | substrate of a package. (a)変形例1に係るパッケージの下側基板の一部分を示す外観斜視図である。(b)変形例2に係るパッケージの下側基板の一部分を示す外観斜視図である。(c)変形例3に係るパッケージの下側基板の一部分を示す外観斜視図である。(d)変形例4に係るパッケージの下側基板の一部分を示す外観斜視図である。(A) It is an external appearance perspective view which shows a part of lower board | substrate of the package which concerns on the modification 1. FIG. (B) It is an external appearance perspective view which shows a part of lower board | substrate of the package which concerns on the modification 2. As shown in FIG. (C) It is an external appearance perspective view which shows a part of lower board | substrate of the package which concerns on the modification 3. FIG. (D) It is an external appearance perspective view which shows a part of lower board | substrate of the package which concerns on the modification 4. FIG. (a)変形例5に係るパッケージの外観斜視図である。(b)変形例6に係るパッケージの外観斜視図である。(c)変形例7に係るパッケージの外観斜視図である。(d)変形例8に係るパッケージの外観斜視図である。(A) It is an external appearance perspective view of the package which concerns on the modification 5. FIG. (B) It is an external appearance perspective view of the package which concerns on the modification 6. FIG. (C) It is an external appearance perspective view of the package which concerns on the modification 7. FIG. (D) It is an external appearance perspective view of the package concerning the modification 8. (a)、(b)スリット状の切欠き部を形成したパッケージの一例を示した外観斜視図である。(A), (b) It is the external appearance perspective view which showed an example of the package in which the slit-shaped notch part was formed. (a)円弧状の切欠き部を形成したパッケージの一例を示した外観斜視図である。(b)、(c)切欠き部を拡大して示す部分拡大図である。(A) It is the external appearance perspective view which showed an example of the package which formed the circular arc-shaped notch part. (B), (c) It is the elements on larger scale which expand and show a notch part. (a)切欠き部の上面にシールが貼付されたパッケージの一例を示した外観斜視図である。(b)パッケージを折り曲げた様子を示す外観斜視図である。(c)折り曲げた後のパッケージを示す外観斜視図である。(A) It is the external appearance perspective view which showed an example of the package by which the seal | sticker was stuck on the upper surface of a notch part. (B) It is an external appearance perspective view which shows a mode that the package was bent. (C) It is an external appearance perspective view which shows the package after bending. (a)〜(e)変形例に係るパッケージの平面図である。(f)〜(g)変形例に係るパッケージを長手方向から見た側面図である。(A)-(e) It is a top view of the package which concerns on a modification. (F)-(g) It is the side view which looked at the package concerning a modification from the longitudinal direction. (a)ICソケットの外観斜視図である。(b)ICソケットにパッケージを実装した状態を示す外観斜視図である。(A) It is an external appearance perspective view of IC socket. (B) It is an external appearance perspective view which shows the state which mounted the package in IC socket. パッケージの端子配置例を示す平面図である。It is a top view which shows the example of terminal arrangement | positioning of a package. (a)変形例1に係るICソケットの外観斜視図である。(b)ICソケットにパッケージを実装した状態を示す外観斜視図である。(A) It is an external appearance perspective view of the IC socket which concerns on the modification 1. FIG. (B) It is an external appearance perspective view which shows the state which mounted the package in IC socket. (a)変形例2に係るICソケットの外観斜視図である。(b)ICソケットのソケット端子が実装される基板の平面図である。(A) It is an external appearance perspective view of the IC socket which concerns on the modification 2. FIG. (B) It is a top view of the board | substrate with which the socket terminal of IC socket is mounted. (a)図275(a)におけるA−A線に沿った断面を模式的に示した図である。(b)図275(a)におけるB−B線に沿った断面を模式的に示した図である。(A) It is the figure which showed typically the cross section along the AA in FIG. 275 (a). (B) It is the figure which showed typically the cross section along the BB line in FIG. 275 (a). 変形例1に係るコネクト部とソケット端子の断面を模式的に示した図である。It is the figure which showed typically the cross section of the connection part which concerns on the modification 1, and a socket terminal. 変形例2に係るコネクト部とソケット端子の断面を模式的に示した図である。It is the figure which showed typically the cross section of the connection part which concerns on the modification 2, and a socket terminal. (a)変形例3に係るICソケットの外観斜視図である。(b)変形例4に係るICソケットの外観斜視図である。(c)変形例5に係るICソケットの外観斜視図である。(A) It is an external appearance perspective view of the IC socket which concerns on the modification 3. FIG. (B) It is an external appearance perspective view of the IC socket which concerns on the modification 4. (C) It is an external appearance perspective view of the IC socket which concerns on the modification 5. FIG. ICソケットを基板に実装した例を示した外観斜視図である。It is the external appearance perspective view which showed the example which mounted the IC socket in the board | substrate. (a)ICソケットが実装されるランドと、これらのランドと乱数用水晶発振器およびシステム用水晶発振器を接続する信号線の一例を示した図である。(b)ランド近傍の部分拡大図である。(A) It is the figure which showed an example of the signal line which connects the land in which IC socket is mounted, these lands, the crystal oscillator for random numbers, and the crystal oscillator for systems. (B) It is the elements on larger scale near the land. ICソケットの外縁を説明するための図である。It is a figure for demonstrating the outer edge of IC socket. 基板1002を側方から見た側面図である。It is the side view which looked at the board | substrate 1002 from the side. 変形例1に係る配線パターンを示した図である。10 is a diagram showing a wiring pattern according to Modification 1. FIG. (a)変形例2に係る配線パターンを示した図である。(b)変形例3に係る配線パターンを示した図である。(A) It is the figure which showed the wiring pattern which concerns on the modification 2. FIG. (B) It is the figure which showed the wiring pattern which concerns on the modification 3. FIG. 変形例4に係る配線パターンを示した図である。It is the figure which showed the wiring pattern which concerns on the modification 4. (a)変形例5に係る配線パターンを示した図である。(b)、(c)変形例5に係る配線パターンを変更した図である。(A) It is the figure which showed the wiring pattern which concerns on the modification 5. FIG. (B), (c) It is the figure which changed the wiring pattern which concerns on the modification 5. FIG. 変形例6に係る配線パターンを示した図である。FIG. 10 is a diagram showing a wiring pattern according to Modification 6. 上述のICソケットを実装する基板の平面図である。It is a top view of the board | substrate which mounts the above-mentioned IC socket. 変形例1に係る基板の平面図である。10 is a plan view of a substrate according to Modification 1. FIG. 変形例2に係る基板の平面図である。10 is a plan view of a substrate according to Modification 2. FIG. 変形例3に係る基板の平面図である。10 is a plan view of a substrate according to Modification 3. FIG. スロットマシンの外観斜視図を示したものである。An external perspective view of the slot machine is shown. 主制御部の回路ブロック図を示したものである。FIG. 3 is a circuit block diagram of a main control unit. 副制御部の回路ブロック図を示したものである。The circuit block diagram of a sub-control part is shown. 主制御部のメイン処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the main process of a main control part. 遊技メダル投入処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a game medal insertion process. 乱数取得処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a random number acquisition process. タイマ割込み処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a timer interruption process. 電源基板182、払出基板170、および主基板156間の電源供給例を示す図である。5 is a diagram showing an example of power supply among a power supply board 182, a payout board 170, and a main board 156. 主基板156内の電源供給例を示す図である。It is a figure which shows the example of a power supply in the main board | substrate 156. FIG. 電源基板182と主基板156内の電源供給例を示す図である。It is a figure which shows the example of a power supply in the power supply board | substrate 182 and the main board | substrate 156. FIG. 主基板156内の電源供給例を示す図である。It is a figure which shows the example of a power supply in the main board | substrate 156. FIG. パチンコ機100の電源投入後の起動処理のタイムチャートである。3 is a time chart of a startup process after power-on of the pachinko machine 100. 図304の破線の楕円Oで囲んだ範囲を拡大した監視電圧を示す図である。It is a figure which shows the monitoring voltage which expanded the range enclosed with the ellipse O of the broken line of FIG. WDT314の最初のリスタート処理が時刻T−低電圧より後に実行されるようにしたWDTの駆動方法(その1)を示す図である。It is a figure which shows the drive method (the 1) by which the first restart process of WDT314 was performed after the time T-low voltage. WDT314の最初のリスタート処理が時刻T−低電圧より後に実行されるようにしたWDTの駆動方法(その2)を示す図である。It is a figure which shows the drive method (the 2) by which the first restart process of WDT314 was performed after the time T-low voltage. WDT314の最初のリスタート処理が時刻T−低電圧より後に実行されるようにしたWDTの駆動方法(その3)を示す図である。It is a figure which shows the drive method (the 3) by which the first restart process of WDT314 was performed after time T-low voltage. 主制御部メイン処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part main process. 主制御部メイン処理における遅延処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the delay process in the main control part main process. 主制御部メイン処理における遅延処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the delay process in the main control part main process. 主制御部メイン処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part main process. 主制御部メイン処理における遅延処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the delay process in the main control part main process. 主制御部タイマ割込処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part timer interruption process. 主制御部タイマ割込処理におけるデバイス監視処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the device monitoring process in the main control part timer interruption process. 乱数生成回路から16ビット乱数値をRAM308に取込む手順を示す図である。It is a figure which shows the procedure which takes in 16-bit random number value from the random number generation circuit to RAM308. 乱数生成回路から16ビット乱数値をRAM308に取込む手順を示す図である。It is a figure which shows the procedure which takes in 16-bit random number value from the random number generation circuit to RAM308. (a)は、図316および図317に示す乱数取込み(取得)手順において実行される乱数取得判定処理を示すフローチャートである。(b)は、図316および図317に示す乱数取込み(取得)手順において実行される乱数取得処理を示すフローチャートである。(A) is a flowchart showing a random number acquisition determination process executed in the random number acquisition (acquisition) procedure shown in FIGS. 316 and 317. (B) is a flowchart showing a random number acquisition process executed in the random number acquisition (acquisition) procedure shown in FIGS. 316 and 317. (a)は、図316および図317に示す乱数取込み(取得)手順において実行される図318(a)に示す乱数取得判定処理をより詳細に説明するフローチャートである。(b)は、図316および図317に示す乱数取込み(取得)手順において実行される図318(b)に示す乱数取得処理をより詳細に説明するフローチャートである。(A) is a flowchart for explaining in more detail the random number acquisition determination process shown in FIG. 318 (a) executed in the random number acquisition (acquisition) procedure shown in FIGS. 316 and 317. (B) is a flowchart for explaining in more detail the random number acquisition process shown in FIG. 318 (b) executed in the random number acquisition (acquisition) procedure shown in FIGS. 316 and 317. 所定のソフトラッチ乱数値レジスタに乱数生成回路9006から逐次入力される16ビット乱数値を直接取込む方法を示す図である。FIG. 10 is a diagram showing a method for directly taking in a 16-bit random value sequentially input from a random number generation circuit 9006 into a predetermined soft latch random value register. 図320に示す乱数直接取込みにおいて実行される乱数取得判定/取得処理を示すフローチャートである。FIG. 33 is a flowchart showing random number acquisition determination / acquisition processing executed in random number direct acquisition shown in FIG. 320. FIG. 図320に示す乱数直接取込み(取得)手順において実行される図321に示す乱数取得判定/取得処理をより詳細に説明するフローチャートである。FIG. 33 is a flowchart for explaining in more detail the random number acquisition determination / acquisition process shown in FIG. 321 executed in the random number direct acquisition (acquisition) procedure shown in FIG. 320. 図316や図317に示した乱数値取込みの手順を記述したプログラムコードの一例を示す図である。It is a figure which shows an example of the program code which described the procedure of random value taking in shown in FIG. 316 and FIG. 図320に示した乱数値直接取込みの手順を記述したプログラムコードの一例を示す図である。It is a figure which shows an example of the program code which described the procedure of the random value direct taking-in shown in FIG. 第三の命令を用いることの利点について説明する図である。It is a figure explaining the advantage of using a 3rd command. (a)は大当り判定テーブルの一例を、(b)は高確率状態移行判定テーブルの一例を、(c)はタイマ番号決定テーブルの一例を、それぞれ示した図である。(A) is an example of a jackpot determination table, (b) is an example of a high probability state transition determination table, and (c) is an example of a timer number determination table. (a)は払出要求数テーブルの一例を、(b)は払出加工テーブルの一例を、(c)はタイマ制御データテーブルの一例を、(d)はジャンプテーブルの一例を、(e)は復元データテーブルの一例を、それぞれ示した図である。(A) is an example of a payout request number table, (b) is an example of a payout processing table, (c) is an example of a timer control data table, (d) is an example of a jump table, and (e) is restored. It is the figure which showed an example of the data table, respectively. 同パチンコ機の主制御部リセット割り込み処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the main control part reset interruption process of the same pachinko machine. 同パチンコ機の機能限定ウェイト処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the function limited weight process of the pachinko machine. 同パチンコ機の主制御部タイマ割り込み処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the main control part timer interruption process of the pachinko machine. 同パチンコ機の払出要求数送信処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the payment request number transmission process of the pachinko machine. 同パチンコ機のタイマ更新処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the timer update process of the same pachinko machine. 同パチンコ機のコマンド設定送信処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the command setting transmission process of the pachinko machine. 同パチンコ機の基本コマンド設定送信処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the basic command setting transmission process of the pachinko machine. 同パチンコ機のコマンド送信処理の流れを示したフローチャートである。It is the flowchart which showed the flow of command transmission processing of the pachinko machine. 同パチンコ機の復帰コマンド設定処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the return command setting process of the same pachinko machine. 同パチンコ機の払出制御部リセット処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the payout control part reset process of the pachinko machine. 同パチンコ機のコマンド解析処理の流れを示したフローチャートである。It is the flowchart which showed the flow of command analysis processing of the pachinko machine. 同パチンコ機のコマンド受信割り込み処理の流れを示したフローチャートである。It is the flowchart which showed the flow of command reception interruption processing of the pachinko machine. 同パチンコ機の払出制御部タイマ割り込み処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the payout control part timer interruption process of the pachinko machine. 16ビット乱数回路の内部構成図である。It is an internal block diagram of a 16-bit random number circuit. 8ビット乱数回路の内部構成図である。It is an internal block diagram of an 8-bit random number circuit. 主制御部メイン処理の流れを示すフローチャートであり、図343(a)はプログラム起動設定処理の流れを示すフローチャートであり、図343(b)は、電源投入時処理の流れを示すフローチャートであり、図343(c)は、初期設定2の流れを示すフローチャートである。FIG. 343 (a) is a flowchart showing a flow of program activation setting processing, and FIG. 343 (b) is a flowchart showing a flow of processing at power-on. FIG. 343 (c) is a flowchart showing the flow of the initial setting 2. 主制御部メイン処理における遅延処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the delay process in the main control part main process. 主制御部タイマ割込処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a main control part timer interruption process. 主制御部タイマ割込処理におけるデバイス監視処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the device monitoring process in the main control part timer interruption process. 本実施形態の遊技台(パチンコ機)で使用される乱数の導出源を表で示す図である。It is a figure which shows the derivation source of the random number used with the game machine (pachinko machine) of this embodiment with a table | surface. 本実施形態の遊技台(スロットマシン)で使用される乱数の導出源を表で示す図である。It is a figure which shows the derivation source of the random number used with the game machine (slot machine) of this embodiment with a table | surface. (a)は、基本回路5302が搭載されるパッケージ10100aおよびパッケージ10100bの平面図である。(b)は、パッケージ10100aおよびパッケージ10100bを接続部材10100cを用いて接続した形状を示す平面図である。(c)は、同側面図である。(d)は、同斜視図である。(A) is a top view of the package 10100a and the package 10100b on which the basic circuit 5302 is mounted. (B) is a top view which shows the shape which connected the package 10100a and the package 10100b using the connection member 10100c. (C) is the side view. (D) is the perspective view. (a)は、基本回路5302が搭載されるパッケージ10120aおよびパッケージ10120bを接続配線部10120cで接続した形状を示す平面図である。(b)は、同側面図である。(c)は、同斜視図である。(A) is a top view which shows the shape which connected the package 10120a and the package 10120b in which the basic circuit 5302 is mounted by the connection wiring part 10120c. (B) is the side view. (C) is the perspective view. 図349(b)、(c)、(d)に示すパッケージ10100aおよびパッケージ10100bを接続部材10100cで一体化して収容ケース10103で覆った状態を示す図である。FIG. 349 is a diagram illustrating a state in which the package 10100a and the package 10100b illustrated in FIGS. 349 (b), (c), and (d) are integrated with a connection member 10100c and covered with a storage case 10103. 図350(a)、(b)、(c)に示すパッケージ10120aおよびパッケージ10120bを接続配線部10120cで一体化して収容ケース10104で覆った状態を示す図である。It is a figure which shows the state which integrated the package 10120a and the package 10120b shown to FIG. 350 (a), (b), (c) with the connection wiring part 10120c, and was covered with the storage case 10104. FIG. 特図始動口ポートの状態と乱数取得との関係を示す図である。It is a figure which shows the relationship between the state of a special figure start port, and random number acquisition. 特図始動口ポートの状態と乱数取得との関係を示す図である。It is a figure which shows the relationship between the state of a special figure start port, and random number acquisition. 実施形態7の変形例に係るパチンコ機(遊技台)に用いられるカウンタ回路312について説明する図である。It is a figure explaining the counter circuit 312 used for the pachinko machine (game table) which concerns on the modification of Embodiment 7. FIG. CPU304によって実行される処理A〜処理Dを示す図である。It is a figure which shows the process A-the process D performed by CPU304. CPU304によって実行される処理A〜処理Dを示す図である。It is a figure which shows the process A-the process D performed by CPU304. 割込み初期設定レジスタの設定例を示す図である。It is a figure which shows the example of a setting of an interruption initial setting register. 割込み要求が発生した場合のジャンプ先アドレスとRST命令でのジャンプ先アドレスとの関連について説明する図である。It is a figure explaining the relationship between the jump destination address when an interrupt request is generated and the jump destination address in the RST instruction. 実施形態8の変形例について説明する図である。FIG. 10 is a diagram for explaining a modified example of the eighth embodiment.

<実施形態1> <Embodiment 1>

以下、図1から図71を用いて、本発明の第1の実施形態に係る遊技台(例えば、パチンコ機100等の弾球遊技機やスロット機等の回胴遊技機)について詳細に説明する。
<全体構成>
Hereinafter, with reference to FIG. 1 to FIG. 71, a gaming table (for example, a ball game machine such as a pachinko machine 100 or a spinning machine such as a slot machine) according to the first embodiment of the present invention will be described in detail. .
<Overall configuration>

まず、図1から図5を用いて、本発明の実施形態に係るパチンコ機100の全体構成について説明する。図1は、パチンコ機100および管理装置620を正面側(遊技者側)から見た外観斜視図であり、図2は、パチンコ機100および管理装置620の正面図である。   First, the overall configuration of the pachinko machine 100 according to the embodiment of the present invention will be described with reference to FIGS. 1 to 5. FIG. 1 is an external perspective view of the pachinko machine 100 and the management device 620 as viewed from the front side (player side), and FIG. 2 is a front view of the pachinko machine 100 and the management device 620.

図1および図2を参照して、本実施形態のパチンコ機100は、遊技台内に封入された一定数の遊技媒体(例えば遊技球)をパチンコ機100に設けた遊技媒体経路で循環させるものであり、循環する遊技球を球発射ハンドルの操作によって発射し、各入賞口または始動口に入球させて遊技を行ういわゆる封入式遊技台である。この場合、遊技者に直接払い出される遊技球はなく、循環する遊技球の状態によって、電子情報上、遊技可能な遊技球の数量を増減させる。以下、電子情報上の遊技球の数量と区別するために、パチンコ機100内で循環する遊技球を機内球(または、単に「球」)と称する。つまりパチンコ機100は、遊技者が操作するのは封入され循環する一定数の機内球であり、当該機内球の状態(発射および、入賞または非入賞)によって遊技者が遊技可能な電子情報上の遊技球数の情報(遊技球数情報)が変化(増減)する。   With reference to FIG. 1 and FIG. 2, the pachinko machine 100 according to the present embodiment circulates a certain number of game media (for example, game balls) enclosed in a game machine through a game media path provided in the pachinko machine 100. This is a so-called encapsulated game table in which a circulating game ball is launched by operating a ball launching handle and entered into each winning opening or starting port to play a game. In this case, there is no game ball paid out directly to the player, and the number of game balls that can be played is increased or decreased according to the state of the circulating game ball on the electronic information. Hereinafter, in order to distinguish from the number of game balls on the electronic information, the game balls circulating in the pachinko machine 100 are referred to as in-flight balls (or simply “balls”). That is, in the pachinko machine 100, a player operates a fixed number of in-flight balls that are enclosed and circulated, and on the electronic information that the player can play depending on the state of the in-flight ball (launch and winning or non-winning). Information on the number of game balls (game ball number information) changes (increases / decreases).

以下の説明において遊技球数情報として管理される、遊技者が遊技に使用できる上限の球数(機内球の発射可能球数)を遊技球数という。遊技球数は、パチンコ機100の記憶領域に記憶されており、遊技の状態(例えば機内球の発射や、獲得遊技球があった場合など)により増減し、パチンコ機100によって定期的に更新される(これについては後述する)。つまり遊技球数を増減させる(遊技球数に加算または減算される)球数も、電子情報上の球数情報であるが、以下の説明では単に、球数という。   In the following description, the upper limit of the number of balls that can be used for the game by the player (the number of balls that can be fired on the in-flight ball), which is managed as game ball number information, is referred to as the number of game balls. The number of game balls is stored in the storage area of the pachinko machine 100, increases or decreases depending on the state of the game (for example, when an in-flight ball is fired or there is an acquired game ball), and is regularly updated by the pachinko machine 100. (This will be described later). In other words, the number of balls for increasing / decreasing the number of game balls (added to or subtracted from the number of game balls) is also ball number information on the electronic information, but is simply referred to as the number of balls in the following description.

獲得遊技球とは、賞球ともいい、獲得遊技球数(賞球数)は、入賞口または始動口に機内球が進入したことに基づいて遊技球数に加算される球数である。なお、賞球は実際の払い出しはないが、賞球を遊技球数に加算することを賞球の「払い出し」という場合もある。遊技球数に加算された場合、賞球数は0(ゼロ)になる。   The acquired game ball is also called a prize ball, and the number of acquired game balls (the number of prize balls) is the number of balls added to the number of game balls based on the fact that the in-flight ball has entered the winning opening or the starting port. The prize balls are not actually paid out, but adding the prize balls to the number of game balls may be called “paying out” the prize balls. When added to the number of game balls, the number of prize balls is 0 (zero).

このパチンコ機100は、インタフェース部(ここでは不図示)を介してパチンコ機100と別体で例えばその近傍に設けられたと管理装置620と接続する。   The pachinko machine 100 is connected to the management device 620 if it is provided separately from, for example, the pachinko machine 100 via an interface unit (not shown here).

管理装置620は、ICカードの管理を行うICカードユニット(以下、IUともいう)である。管理装置620は例えば、その前面側(遊技者側)にカード差込口626、管理装置表示部628を備える。   The management device 620 is an IC card unit (hereinafter also referred to as IU) that manages IC cards. For example, the management device 620 includes a card insertion slot 626 and a management device display unit 628 on the front side (player side).

管理装置620は、カード差込口626に差し込まれたICカードにアクセスして所定の情報の読み出しおよび書き込みを行う。ICカードには、遊技者が遊技前に予めチャージした、遊技球に交換可能な金額(電子マネー)の情報などが記憶されており、遊技者がICカードをカード差込口626に挿入することで遊技が可能となる。つまり、遊技者が遊技開始時にカード挿入口626にICカードを差し込むと、電子マネーの金額(以下、残金ともいう)と交換可能な遊技球数(の上限)が管理装置表示部628等に表示されるなどし、遊技者はこの遊技球数を借りて(パチンコ機100に記憶する遊技球数に加算して)この遊技球数の範囲内で遊技することができる。   The management device 620 accesses the IC card inserted into the card insertion slot 626 to read and write predetermined information. The IC card stores information such as the amount of money (electronic money) that can be exchanged for a game ball that the player has pre-charged before playing, and the player inserts the IC card into the card slot 626. It becomes possible to play. That is, when the player inserts an IC card into the card insertion slot 626 at the start of the game, the number of game balls that can be exchanged for the amount of electronic money (hereinafter also referred to as the balance) is displayed on the management device display unit 628 or the like. For example, the player can borrow the number of game balls (added to the number of game balls stored in the pachinko machine 100) and play within the range of the number of game balls.

以下の説明では、ICカード内の金額の少なくとも一部を遊技球数に交換することを貸球といい、貸球数とは、遊技者の球貸を要求する操作に基づいて、遊技球数に加算される球数をいう。   In the following description, exchanging at least a part of the amount in the IC card for the number of game balls is referred to as a ball rental. The number of ball rentals refers to the number of game balls based on an operation for requesting a player's ball rental. This is the number of balls added to.

また、パチンコ機100に記憶されている遊技球数の少なくとも一部は、管理装置620に送信し、ICカードに記憶することができる。遊技者の計数を要求する操作によって、遊技球数の少なくとも一部をICカードに記憶することを計数といい、その球数を計数球数という。また、ICカードに記憶された計数球数の合計(総計数球数)を貯球という。遊技者は、再プレイを要求する操作により、貯球の少なくとも一部を遊技球数に加算することができる。つまり、ICカード内の残高を遊技球に交換して遊技球に加算する場合が貸球であり、貯球を遊技球に加算する場合が再プレイである。   Further, at least a part of the number of game balls stored in the pachinko machine 100 can be transmitted to the management device 620 and stored in the IC card. Recording at least a part of the number of game balls in the IC card by an operation requesting the player's count is called counting, and the number of balls is called counting ball number. The total number of count balls stored in the IC card (total count ball count) is referred to as storage ball. The player can add at least a part of the stored balls to the number of game balls by an operation requesting replay. That is, the case where the balance in the IC card is exchanged for a game ball and added to the game ball is a rental ball, and the case where the stored ball is added to the game ball is a replay.

また、ICカードに記憶されている計数球数の合計(貯球)と、ICカード内の残高で交換可能な遊技球数の和を記憶球数といい、パチンコ機100に記憶されている遊技球数とICカード内の記憶球数の和を持ち球数という。持ち球数は、遊技者の持つ全球数である。   The sum of the number of counted balls stored in the IC card (stored balls) and the sum of the number of game balls exchangeable with the balance in the IC card is referred to as the memory ball number, and the game stored in the pachinko machine 100. The sum of the number of balls and the number of memory balls in the IC card is called the number of balls. The number of balls possessed is the total number of balls possessed by the player.

パチンコ機100と管理装置620は、双方向通信を行い、遊技球の量に関する情報を含む所定の情報を送受信する。   The pachinko machine 100 and the management device 620 perform bidirectional communication, and transmit / receive predetermined information including information regarding the amount of game balls.

管理装置表示部628は、管理装置620からの表示信号(表示データ)に基づいて、管理装置620に挿入されたICカード内の残高で交換(貸出)可能な遊技球数を示す情報を表示する。また、管理装置表示部628は、パチンコ機100や管理装置620において球の貸出に関するエラーが発生した場合には、エラーの情報を表示する。   Based on the display signal (display data) from the management device 620, the management device display unit 628 displays information indicating the number of game balls that can be exchanged (rented) with the balance in the IC card inserted into the management device 620. . In addition, the management device display unit 628 displays error information when an error relating to ball lending occurs in the pachinko machine 100 or the management device 620.

パチンコ機100は、外部的構造として、外枠102と、内枠104と、前面枠扉106と、球発射ハンドル134と、遊技盤200と、球数ユーザインターフェース部(以下、球数UI部)680と、をその前面に備える。   As an external structure, the pachinko machine 100 includes an outer frame 102, an inner frame 104, a front frame door 106, a ball launch handle 134, a game board 200, and a ball user interface unit (hereinafter referred to as a ball UI unit). 680 on the front surface.

外枠102は、遊技機設置営業店に設けられた設置場所へと固定させるための縦長方形状から成る木製の枠部材である。   The outer frame 102 is a wooden frame member having a vertical rectangular shape for fixing to an installation location provided in a gaming machine installation sales shop.

内枠104は、ヒンジ部112を介して外枠102に回動自在に装着された縦長方形状の遊技機基軸体となる部材である。また、内枠104が開放された場合、内枠104の開放を検出する不図示の内枠開放センサを備える。   The inner frame 104 is a member that becomes a longitudinal rectangular gaming machine base body rotatably attached to the outer frame 102 via a hinge portion 112. Further, an inner frame opening sensor (not shown) that detects opening of the inner frame 104 when the inner frame 104 is opened is provided.

前面枠扉106は、ロック機能付きで且つ開閉自在となるようにパチンコ機100の前面側となる内枠104の前面に対しヒンジ部112を介して装着され、枠状に構成されることでその内側を開口部とした扉部材である。前面枠扉106には、開口部にガラス製又は樹脂製の透明板部材118が設けられており、この構成によりガラス枠と呼ばれる場合もある。前面枠扉106の前面側には、スピーカ120や枠ランプ122が取り付けられている。前面枠扉106下方には、球数UI部680が設けられる。球数UI部680の外側(例えば、右側)には、遊技者の操作によって発射装置(ここでは不図示)へと案内された機内球を遊技盤200の遊技領域124へと打ち出す球発射ハンドル134が設けられる。   The front frame door 106 has a lock function and is attached to the front surface of the inner frame 104 on the front side of the pachinko machine 100 via a hinge portion 112 so as to be openable and closable. It is a door member with the inside as an opening. The front frame door 106 is provided with a transparent plate member 118 made of glass or resin at the opening, and may be called a glass frame due to this configuration. A speaker 120 and a frame lamp 122 are attached to the front side of the front frame door 106. A ball number UI unit 680 is provided below the front frame door 106. On the outside (for example, the right side) of the ball number UI unit 680, a ball launching handle 134 that launches an in-flight ball guided to a launching device (not shown here) by a player's operation to the game area 124 of the game board 200. Is provided.

球数UI部680は、ユーザインターフェース表示部(以下、UI表示部)658と、操作部650を少なくとも備える操作部装置である。UI表示部658は、例えば、パチンコ機100が生成した画像および、管理装置620が生成した画像の少なくとも一方を表示可能なものであるが、UI表示部658は、管理装置620が生成した画像のみを表示可能なものであってもよい。さらに球数UI部658には、他の表示部(ここでは、球数表示部640)が含まれていてもよい。   The ball count UI unit 680 is an operation unit device including at least a user interface display unit (hereinafter, UI display unit) 658 and an operation unit 650. For example, the UI display unit 658 can display at least one of an image generated by the pachinko machine 100 and an image generated by the management device 620, but the UI display unit 658 can display only an image generated by the management device 620. May be displayed. Furthermore, the ball count UI unit 658 may include another display unit (here, the ball count display unit 640).

操作部650は、例えば、タッチパネル式の入力部である。タッチパネル式の入力部は、UI表示部658の一部であってもよいし、これとは別体に設けられたものであってもよい。また操作部650は、スイッチ式の入力部であってもよく、タッチパネル式およびスイッチ式など複数の入力部を含んだものであってもよい。   The operation unit 650 is, for example, a touch panel type input unit. The touch panel type input unit may be a part of the UI display unit 658 or may be provided separately from the UI display unit 658. The operation unit 650 may be a switch type input unit, or may include a plurality of input units such as a touch panel type and a switch type.

本実施形態の球数UI部680は、一例として、タッチパネル式の入力操作部654と計数ボタン652を有する操作部650と、画像表示部656と球数表示部640を有するUI表示部658と、を含んで構成されるが、これについては後述する。   As an example, the ball number UI unit 680 of the present embodiment includes a touch panel type input operation unit 654, an operation unit 650 having a counting button 652, a UI display unit 658 having an image display unit 656 and a ball number display unit 640, This will be described later.

球数UI部680にはまた、遊技者の操作によって各種演出装置(ここでは不図示)の演出態様に変化を与えるチャンスボタン136と、チャンスボタン136を発光させるチャンスボタンランプ138が設けられる。   The ball number UI unit 680 is also provided with a chance button 136 that changes the effect mode of various effect devices (not shown here) by the player's operation, and a chance button lamp 138 that causes the chance button 136 to emit light.

前面枠扉106には、また、機内球の入賞によって獲得した賞球数を表示するための賞球数表示部(獲得遊技球数表示部)690が設けられている。ここでは賞球数表示部690は、球数UI部680と別体に設けられた、例えば、7セグメント表示装置またはドットマトリクス表示装置などにより構成されるが、賞球数表示部690を設けず、賞球数等は球数UI部680の画像表示部656に表示する構成としてもよい。   The front frame door 106 is also provided with a prize ball number display part (acquired game ball number display part) 690 for displaying the number of prize balls won by winning the in-flight ball. Here, the prize ball number display unit 690 is configured by, for example, a 7-segment display device or a dot matrix display device provided separately from the ball number UI unit 680, but the prize ball number display unit 690 is not provided. The prize ball number or the like may be displayed on the image display unit 656 of the ball number UI unit 680.

図3および図4は、前面枠扉106を開放した状態のパチンコ機100を示す図であって、図3がパチンコ機100を正面側(遊技者側)から見た外観斜視図であり、図4は、パチンコ機100の正面図である。なお、これらの図において管理装置620の図示は省略する。   3 and 4 are views showing the pachinko machine 100 in a state where the front frame door 106 is opened, and FIG. 3 is an external perspective view of the pachinko machine 100 viewed from the front side (player side). 4 is a front view of the pachinko machine 100. FIG. In addition, illustration of the management apparatus 620 is abbreviate | omitted in these figures.

内枠104は、枠状に形成され、内側に空間部114を有している。前面枠扉106の後面と内枠104に取り付けられた遊技盤200の前面とで遊技領域124を区画形成する。また、前面枠扉106が開放された場合、前面枠扉106の開放を検出する不図示の前面枠扉開放センサを備える。   The inner frame 104 is formed in a frame shape, and has a space 114 inside. A game area 124 is defined by the rear surface of the front frame door 106 and the front surface of the game board 200 attached to the inner frame 104. Further, a front frame door opening sensor (not shown) that detects opening of the front frame door 106 when the front frame door 106 is opened is provided.

遊技盤200は、前面に遊技領域124を有し、内枠104の空間部114に臨むように、所定の固定部材を用いて内枠104に着脱自在に装着されている。なお、遊技領域124は、遊技盤200を内枠104に装着した後、開口部から観察することができる。   The game board 200 has a game area 124 on the front surface, and is detachably attached to the inner frame 104 using a predetermined fixing member so as to face the space 114 of the inner frame 104. The game area 124 can be observed from the opening after the game board 200 is mounted on the inner frame 104.

遊技盤200の左上方には、発射杆622aを有する発射装置622と発射レール624が設けられる。発射レール624にはパチンコ機100内部の遊技媒体経路(ここでは不図示)を経由して機内球が搬送されており、球発射ハンドル134が遊技者によって操作されると、発射装置622によって機内球が遊技領域124に打ち出される。   On the upper left side of the game board 200, a launcher 622 having a launcher 622a and a launch rail 624 are provided. An in-flight ball is conveyed to the launch rail 624 via a game medium path (not shown here) inside the pachinko machine 100, and when the ball launch handle 134 is operated by the player, the launch device 622 causes the in-flight ball. Is launched into the game area 124.

なお、図示は省略するが、パチンコ機100は、例えば外枠102等に夜間監視装置を備え、夜間に内枠が開放されたことを電源投入時に通知する。また、電源切断時には、内枠開放センサ(不図示)によって内枠の開放を検知できる。   In addition, although illustration is abbreviate | omitted, the pachinko machine 100 equips the outer frame 102 grade | etc., With a nighttime monitoring apparatus, and notifies that the inner frame was open | released at night at the time of power activation. Further, when the power is turned off, the opening of the inner frame can be detected by an inner frame opening sensor (not shown).

図5は、図1のパチンコ機100を背面側から見た外観図である。本図においても、管理装置620の図示は省略する。   FIG. 5 is an external view of the pachinko machine 100 of FIG. 1 viewed from the back side. Also in this figure, illustration of the management apparatus 620 is abbreviate | omitted.

パチンコ機100の背面には、遊技全般の制御処理を行う主制御部300を構成する主基板156を収納する主基板ケース158、主制御部300が生成した処理情報に基づいて演出に関する制御処理を行う第1副制御部400を構成する第1副基板160を収納する第1副基板ケース162、第1副制御部400が生成した処理情報に基づいて演出に関する制御処理を行う第2副制御部500を構成する第2副基板164を収納する第2副基板ケース166が設けられる。   On the back side of the pachinko machine 100, a main board case 158 that houses a main board 156 that constitutes the main control section 300 that performs control processing for the entire game, and control processing related to effects based on the processing information generated by the main control section 300. A first sub-board case 162 that houses the first sub-board 160 that constitutes the first sub-control unit 400 to perform, and a second sub-control unit that performs control processing related to effects based on the processing information generated by the first sub-control unit 400 A second sub-board case 166 that houses the second sub-board 164 constituting 500 is provided.

また、発射装置622および後述する遊技媒体経路610の制御処理を行う球数制御部600を構成するとともに遊技店員の操作によってエラーを解除するエラー解除スイッチ168を備える球数制御基板(払出制御基板)170を収納する球数基板ケース172、各種電気的遊技機器に電源を供給する電源制御部660を構成するとともに遊技店員の操作によって電源をオンオフする電源スイッチ178と電源投入時に操作されることによってRWMクリア信号を主制御部300に出力するRWMクリアスイッチ180とを備える電源基板182を収納する電源基板ケース184、およびパチンコ機100と管理装置620との信号の送受信や球数UI部680と球数制御部600との信号の送受信を行うインターフェース部606を配設している。   Also, a ball number control board (dispensing control board) that includes an error release switch 168 that constitutes a ball number control unit 600 that performs control processing of the launching device 622 and a game medium path 610 to be described later, and that releases an error by the operation of a game clerk. A ball board case 172 for storing 170, a power control unit 660 for supplying power to various electrical gaming machines, and a power switch 178 for turning on / off the power by an operation of a game store clerk and an RWM by being operated when the power is turned on A power supply board case 184 that houses a power supply board 182 that includes an RWM clear switch 180 that outputs a clear signal to the main control unit 300, a signal transmission / reception between the pachinko machine 100 and the management device 620, and the number of balls UI unit 680 and the number of balls An interface unit 606 that transmits and receives signals to and from the control unit 600 is provided. To have.

パチンコ機100は、また、一定個数(例えば、50個)の機内球を循環させる遊技媒体経路610を備える。これにより、遊技者が循環する機内球に直接触れることができない構造となるとともに、パチンコ機100から貯留皿を省くことが可能となる。   The pachinko machine 100 also includes a game medium path 610 that circulates a certain number (for example, 50) of the in-machine balls. Thereby, while becoming a structure where a player cannot touch the in-flight ball | bowl which circulates directly, it becomes possible to omit a storage tray from the pachinko machine 100.

遊技媒体経路610は、遊技領域124からパチンコ機100下方に排出された機内球を1個ずつ発射レール624に搬送する機能を有する遊技球循環装置である。詳細には、遊技媒体経路610は、球磨き装置612と、揚上装置614と、球送り装置616を有し、パチンコ機100の背面下部に設けられた球磨き装置612から排出された機内球は背面右側の端部に設けられた揚上装置614により1個ずつ搬送され、背面上部に設けられた球送り装置616に受け渡される。球磨き装置612、揚上装置614、球送り装置616および発射装置622は、球数制御部600によって制御される。   The game medium path 610 is a game ball circulation device having a function of conveying in-machine balls discharged from the game area 124 below the pachinko machine 100 to the launch rail 624 one by one. Specifically, the game medium path 610 includes a ball polishing device 612, a lifting device 614, and a ball feeding device 616, and the in-machine ball discharged from the ball polishing device 612 provided at the lower back of the pachinko machine 100. Are conveyed one by one by a lifting device 614 provided at the end on the right side of the back surface, and delivered to a ball feeding device 616 provided at the upper portion of the back surface. The ball polishing device 612, the lifting device 614, the ball feeding device 616 and the launching device 622 are controlled by the ball number control unit 600.

球磨き装置612は、パチンコ機100の下部に設けられてパチンコ機100内部を循環する機内球の汚れを自動的に磨くものである。遊技領域124から排出された機内球はまず球磨き装置612に誘導される。球磨き装置612は、球入口と、球出口と、球磨き装置入口センサと、球磨きモータと、球磨きモータセンサと、スクリューと、研磨布と、布送りモータを有し、研磨布で機内球を磨くと同時に研磨布を布送りギアと布送りモータで自動に巻き取ることができる。機内球が球入口に進入したことを球磨き装置入口センサが検知すると、球磨きモータが駆動する。球磨きモータはギアを介してスクリューと接続しており、スクリューの回転によって機内球を1球ずつ搬送する。機内球は球磨き装置612の内部に設けられた研磨布に擦られながら球出口まで搬送され、これにより研磨される。球出口から排出された機内球は揚上装置614に受け渡される。   The ball polishing device 612 is provided at the lower part of the pachinko machine 100 and automatically polishes dirt on the in-machine balls circulating inside the pachinko machine 100. The in-flight ball discharged from the game area 124 is first guided to the ball polisher 612. The ball polishing device 612 includes a ball inlet, a ball outlet, a ball polishing device inlet sensor, a ball polishing motor, a ball polishing motor sensor, a screw, a polishing cloth, and a cloth feed motor. At the same time as polishing the ball, the polishing cloth can be automatically wound by the cloth feed gear and the cloth feed motor. When the ball polisher entrance sensor detects that the in-flight ball has entered the ball entrance, the ball polish motor is driven. The ball polishing motor is connected to a screw through a gear, and conveys the balls in the machine one by one by the rotation of the screw. The in-machine sphere is conveyed to the sphere outlet while being rubbed against a polishing cloth provided inside the sphere polishing device 612, and is thereby polished. The in-flight ball discharged from the ball outlet is delivered to the lifting device 614.

揚上装置614は、球磨き装置612からパチンコ機100の上部まで機内球を搬送する装置であり、球入口と、球出口と、揚上装置入口センサと、揚上モータと、揚上モータセンサと、スクリューとを有する。球磨き装置612から排出された機内球が球入口に進入したことを揚上装置入口センサが検知すると、揚上モータが駆動する。揚上モータはギアを介してスクリューと接続しており、スクリューの回転によって機内球が1球ずつ、パチンコ機100の上部に搬送される。球出口から排出された機内球は、球送り装置616に受け渡される。   The lifting device 614 is a device that conveys the in-machine sphere from the ball polishing device 612 to the upper part of the pachinko machine 100, and includes a ball inlet, a ball outlet, a lifting device inlet sensor, a lifting motor, and a lifting motor sensor. And a screw. When the lifting device inlet sensor detects that the in-flight ball discharged from the ball polishing device 612 has entered the ball inlet, the lifting motor is driven. The lifting motor is connected to the screw through a gear, and the balls in the machine are conveyed to the upper part of the pachinko machine 100 one by one by the rotation of the screw. The in-flight ball discharged from the ball outlet is delivered to the ball feeding device 616.

球送り装置616は、揚上装置614から排出された機内球を発射レール624まで搬送する装置であり、例えば球送ソレノイドと、これに回動可能に接続する機内球の通路(球通路)を含む。球数制御部600が球発射ハンドル134の操作されたことを検出すると球送ソレノイドを駆動する。球送ソレノイドが球通路を吸引することで球通路に沿って機内球が1個ずつ発射レール624へ搬送される。発射レール624に送られた機内球は、上述の如く発射装置622によって遊技領域124に打ち出される。なお、球送り装置616の球入口にも球送り装置入口センサが設けられている。   The ball feeding device 616 is a device that conveys the in-flight ball discharged from the lifting device 614 to the launch rail 624. For example, a ball feeding solenoid and a passage (ball passage) of the in-flight ball that is rotatably connected to the ball feeding solenoid are provided. Including. When the ball number control unit 600 detects that the ball firing handle 134 is operated, the ball feeding solenoid is driven. As the ball feeding solenoid sucks the ball passage, the in-flight balls are conveyed to the firing rail 624 one by one along the ball passage. The in-flight ball sent to the firing rail 624 is launched into the game area 124 by the launching device 622 as described above. Note that a ball feeder inlet sensor is also provided at the ball inlet of the ball feeder 616.

発射装置622は、発射杆622aと不図示の発射ソレノイドなどを含み、発射杵622aは、発射ソレノイドによって回動可能に取り付けられる。発射装置622の近傍には、発射レール624が設けられる。球発射ハンドル134が遊技者に操作されると、発射杵622aが例えば発射ソレノイドによって吸引されるなどして回動する。遊技媒体経路610を経由して発射レール624に搬送された機内球は、回動する発射杵622aの先端で打突されることで、発射レール624から遊技領域124に発射される。この場合、発射の強弱は、球発射ハンドル134の発射強度センサの値によって、発射ソレノイドの吸引力を変化させて制御する。
<遊技盤>
The launcher 622 includes a launcher 622a, a launch solenoid (not shown), and the like, and the launcher 622a is rotatably attached by the launch solenoid. In the vicinity of the launching device 622, a firing rail 624 is provided. When the ball launching handle 134 is operated by the player, the launching rod 622a is rotated by being sucked by a launching solenoid, for example. The in-flight ball transported to the firing rail 624 via the game medium path 610 is hit at the tip of the rotating launching rod 622a and is launched from the launch rail 624 to the game area 124. In this case, the strength of the launch is controlled by changing the suction force of the launch solenoid according to the value of the launch strength sensor of the ball launch handle 134.
<Game board>

図6を参照して遊技盤200について説明する。同図は、遊技盤200の構成の一例を示す略示正面図である。   The game board 200 will be described with reference to FIG. The figure is a schematic front view showing an example of the configuration of the game board 200.

遊技盤200には、機内球が転動可能な遊技領域124が形成される。遊技領域124には、例えば左上方に設けられた発射レール(ここでは不図示)から機内球が発射される。   The game board 200 is formed with a game area 124 in which the in-flight ball can roll. In the game area 124, for example, an in-flight ball is launched from a launch rail (not shown here) provided at the upper left.

遊技領域124の略中央には、演出装置206を配設している。演出装置206は、演出可動体224を動作して演出を行うものである。この演出装置206には、略中央に装飾図柄表示装置208を配設し、その周囲に、普通図柄表示装置210と、第1特別図柄表示装置212と、第2特別図柄表示装置214と、普通図柄保留ランプ216と、第1特別図柄保留ランプ218と、第2特別図柄保留ランプ220と、高確中ランプ222を配設している。なお、以下、普通図柄を「普図」、特別図柄を「特図」と称する場合がある。   An effect device 206 is disposed in the approximate center of the game area 124. The effect device 206 performs the effect by operating the effect movable body 224. The effect device 206 is provided with a decorative symbol display device 208 substantially in the center, and around the normal symbol display device 210, the first special symbol display device 212, the second special symbol display device 214, and the ordinary device. A symbol holding lamp 216, a first special symbol holding lamp 218, a second special symbol holding lamp 220, and a high-probability medium lamp 222 are provided. Hereinafter, the normal symbol may be referred to as “general symbol” and the special symbol may be referred to as “special symbol”.

装飾図柄表示装置208は、装飾図柄ならびに演出に用いる様々な表示を行うための表示装置であり、本実施形態では液晶表示装置(Liquid Crystal Display)によって構成する。この装飾図柄表示装置208は、左図柄表示領域208a、中図柄表示領域208b、右図柄表示領域208cおよび演出表示領域208dの4つの表示領域に分割し、左図柄表示領域208a、中図柄表示領域208bおよび右図柄表示領域208cはそれぞれ異なった装飾図柄を表示し、演出表示領域208dは演出に用いる画像を表示する。さらに、各表示領域208a、208b、208c、208dの位置や大きさは、装飾図柄表示装置208の表示画面内で自由に変更することを可能としている。なお、装飾図柄表示装置208として液晶表示装置を採用しているが、液晶表示装置でなくとも、種々の演出や種々の遊技情報を表示可能に構成されていればよく、例えば、ドットマトリクス表示装置、7セグメント表示装置、有機EL(ElectroLuminescence)表示装置、リール(ドラム)式表示装置、リーフ式表示装置、プラズマディスプレイ、プロジェクタを含む他の表示デバイスを採用してもよい。また、遊技者が装飾図柄表示装置208を視認し難いように遮蔽する遮蔽装置246が設けられてもよい。   The decorative symbol display device 208 is a display device for performing various displays used for decorative symbols and effects. In the present embodiment, the decorative symbol display device 208 is constituted by a liquid crystal display device (Liquid Crystal Display). The decorative symbol display device 208 is divided into four display areas, a left symbol display area 208a, a middle symbol display area 208b, a right symbol display area 208c, and an effect display area 208d, and the left symbol display area 208a and the middle symbol display area 208b. The right symbol display area 208c displays different decorative symbols, and the effect display area 208d displays an image used for the effect. Furthermore, the position and size of each display area 208a, 208b, 208c, 208d can be freely changed within the display screen of the decorative symbol display device 208. In addition, although the liquid crystal display device is employ | adopted as the decoration symbol display apparatus 208, it is not a liquid crystal display device, What is necessary is just the structure which can display various effects and various game information, for example, a dot matrix display device Other display devices including a 7-segment display device, an organic EL (ElectroLuminescence) display device, a reel (drum) display device, a leaf display device, a plasma display, and a projector may be adopted. Further, a shielding device 246 that shields the decorative symbol display device 208 from being easily viewed by the player may be provided.

普図表示装置210は、普図の表示を行うための表示装置であり、本実施例では7セグメントLEDによって構成する。第1特図表示装置212および第2特図表示装置214は、特図の表示を行うための表示装置であり、本実施例では7セグメントLEDによって構成する。   The general map display device 210 is a display device for displaying a general map, and is configured by a 7-segment LED in this embodiment. The first special figure display device 212 and the second special figure display device 214 are display devices for displaying a special figure, and are configured by 7 segment LEDs in this embodiment.

普図保留ランプ216は、保留している普図変動遊技(詳細は後述)の数を示すためのランプであり、本実施例では、普図変動遊技を所定数(例えば、2つ)まで保留することを可能としている。第1特図保留ランプ218および第2特図保留ランプ220は、保留している特図変動遊技(詳細は後述)の数を示すためのランプであり、本実施例では、特図変動遊技を所定数(例えば、4つ)まで保留することを可能としている。高確中ランプ222は、遊技状態が大当りが発生し易い高確率状態であること、または高確率状態になることを示すためのランプであり、遊技状態を大当りが発生し難い低確率状態から高確率状態にする場合に点灯し、高確率状態から低確率状態にする場合に消灯する。   The multi-purpose hold lamp 216 is a lamp for indicating the number of general-purpose variable games (details will be described later) that are on hold. In this embodiment, the general-purpose variable games are reserved up to a predetermined number (for example, two). It is possible to do. The first special figure hold lamp 218 and the second special figure hold lamp 220 are lamps for indicating the number of special figure variable games (details will be described later) that are being held. In this embodiment, the special figure variable games are displayed. It is possible to hold up to a predetermined number (for example, four). The high-probability medium lamp 222 is a lamp for indicating that the gaming state is a high probability state in which a big hit is likely to occur or a high probability state, and the gaming state is changed from a low probability state in which a big hit is unlikely to occur. Turns on when switching to the probability state, and turns off when switching from the high probability state to the low probability state.

また、この演出装置206の周囲には、所定の球進入口、例えば、一般入賞口226(226C、226D)と、普図始動口228と、第1特図始動口230と、第2特図始動口232と、可変入賞口234を配設している。   In addition, there are predetermined ball entrances, for example, a general winning opening 226 (226C, 226D), a normal start port 228, a first special view start port 230, and a second special view around the effect device 206. A starting port 232 and a variable winning port 234 are provided.

一般入賞口226(226C、226D)は、本実施例では遊技盤200に複数配設しており、この一般入賞口226への機内球の入球を所定の球検出センサ(ここでの図示は省略するが、後に詳述する)が検出した場合(一般入賞口226に入賞した場合)、所定の個数(例えば、10個)の賞球を遊技者に与える。既述の通り賞球は、実際の循環する機内球の払い出しではなく、遊技者が保持する電子情報上の遊技球数(パチンコ機100の記憶領域に記憶されている遊技球数)に加算される(以下同様)。なお、一般入賞口226に入球した機内球は、パチンコ機100の裏側に誘導され、遊技媒体経路610内を循環して発射レール624に搬送されて再び遊技に利用される。   In the present embodiment, a plurality of general winning holes 226 (226C, 226D) are arranged on the game board 200, and the in-flight ball entering the general winning hole 226 is a predetermined ball detection sensor (illustrated here). Although omitted, which will be described in detail later), a predetermined number (for example, 10) of winning balls is awarded to the player when the general winning opening 226 is won. As described above, the winning ball is not paid out of the circulating in-flight ball, but is added to the number of game balls on the electronic information held by the player (the number of game balls stored in the storage area of the pachinko machine 100). (The same shall apply hereinafter.) The in-flight ball that has entered the general winning opening 226 is guided to the back side of the pachinko machine 100, circulates in the game medium path 610, is transported to the launch rail 624, and is used again for the game.

普図始動口228は、ゲートやスルーチャッカーと呼ばれる、遊技領域124の所定の領域を球が通過したか否かを判定するための装置で構成しており、本実施例では遊技盤200の右側に1つ配設している。普図始動口228を通過した機内球は、パチンコ機100の裏側に誘導され、遊技媒体経路610内を循環して発射レール624に搬送されて再び遊技に利用される。機内球が普図始動口228を通過したことを所定の球検出センサが検出した場合、パチンコ機100は、普図表示装置210による普図変動遊技を開始する。   The normal start port 228 is configured by a device called a gate or through chucker for determining whether or not a ball has passed a predetermined area of the game area 124. In this embodiment, the right side of the game board 200 is used. One is arranged. The in-flight ball that has passed through the normal start port 228 is guided to the back side of the pachinko machine 100, circulates in the game medium path 610, is conveyed to the launch rail 624, and is used again for the game. When a predetermined ball detection sensor detects that the in-flight ball has passed through the general map starting port 228, the pachinko machine 100 starts a general map variable game by the general map display device 210.

第1特図始動口230は、本実施例では遊技盤200の中央に1つだけ配設している。この第1特図始動口230への入球を所定の球検出センサが検出した場合、所定の個数(例えば、3個)の賞球を遊技者に与えるため、パチンコ機100の記憶領域に保持されている遊技球数に賞球数を加算するとともに、第1特図表示装置212による特図変動遊技を開始する。   In the present embodiment, only one first special figure starting port 230 is disposed at the center of the game board 200. When a predetermined ball detection sensor detects a ball entering the first special figure starting port 230, a predetermined number (for example, three) of prize balls are held in the storage area of the pachinko machine 100 in order to give the player a prize ball. The number of prize balls is added to the number of game balls being played, and the special figure changing game by the first special figure display device 212 is started.

第2特図始動口232は、電動チューリップ(電チュー)と呼ばれ、本実施例では第1特図始動口230の真下に1つだけ配設している。この第2特図始動口232は、左右に開閉自在な羽根部材232aを備え、羽根部材232aの閉鎖中は球の入球が不可能であり、普図変動遊技に当選し、普図表示装置210が当たり図柄を停止表示した場合に羽根部材232aが所定の時間間隔、所定の回数で開閉する。第2特図始動口232への入球を所定の球検出センサが検出した場合、所定の個数(例えば、4個)の賞球を遊技者に与えるため、遊技球数に賞球数を加算するとともに、第2特図表示装置214による特図変動遊技を開始する。   The second special figure starting port 232 is called an electric tulip (electric Chu). In the present embodiment, only one second special figure starting port 232 is disposed directly below the first special figure starting port 230. The second special figure starting port 232 includes a wing member 232a that can be opened and closed to the left and right. When the wing member 232a is closed, it is impossible to enter a ball. When 210 hits and stops and displays the symbol, the blade member 232a opens and closes at a predetermined time interval and a predetermined number of times. When a predetermined ball detection sensor detects a ball entering the second special figure starting port 232, in order to give a predetermined number (for example, four) of prize balls to the player, the number of prize balls is added to the number of game balls At the same time, the special figure changing game by the second special figure display device 214 is started.

可変入賞口234は、大入賞口またはアタッカーと呼ばれ、本実施例では遊技盤200の中央部下方に1つだけ配設している。この可変入賞口234は、開閉自在な扉部材234aを備え、扉部材234aの閉鎖中は球の入球が不可能であり、特図変動遊技に当選して特図表示装置が大当たり図柄を停止表示した場合に扉部材234aが所定の時間間隔(例えば、開放時間29秒、閉鎖時間1.5秒)、所定の回数(例えば15回)で開閉する。可変入賞口234への入球を所定の球検出センサが検出した場合、所定の個数(例えば、15個)の賞球を遊技者に与えるため、遊技球数に賞球数を加算する。   The variable winning opening 234 is called a large winning opening or an attacker, and in the present embodiment, only one variable winning opening 234 is disposed below the center of the game board 200. The variable winning opening 234 includes a door member 234a that can be opened and closed. When the door member 234a is closed, it is impossible to enter a ball, and the special figure display device stops the jackpot symbol when the special figure variable game is won. When displayed, the door member 234a opens and closes at a predetermined time interval (for example, an opening time of 29 seconds and a closing time of 1.5 seconds) and at a predetermined number of times (for example, 15 times). When a predetermined ball detection sensor detects a ball entering the variable winning opening 234, in order to give a predetermined number (for example, 15) of prize balls to the player, the number of prize balls is added to the number of game balls.

第1特図始動口230、第2特図始動口232および可変入賞口234に入球した機内球は、いずれもパチンコ機100の裏側に誘導され、遊技媒体経路610内を循環して発射レール624に搬送されて再び遊技に利用される。   The in-flight balls that entered the first special figure starting port 230, the second special figure starting port 232, and the variable prize opening 234 are all guided to the back side of the pachinko machine 100, and circulate in the game medium path 610 to launch rails. It is conveyed to 624 and used again for the game.

さらに、これらの入賞口や始動口の近傍には、風車と呼ばれる円盤状の打球方向変換部材236や、遊技釘238を複数個、配設していると共に、遊技領域124の最下部には、いずれの入賞口や始動口にも入賞しなかった機内球をパチンコ機100の裏側に誘導した後、遊技媒体経路610の入口に搬送するためのアウト口240を設けている。   Furthermore, a plurality of disc-shaped hitting direction changing members 236 called a windmill and a game nail 238 are arranged in the vicinity of these winning openings and start openings, and at the bottom of the game area 124, An out-port 240 is provided for guiding the in-flight ball that has not won any prize opening or starting port to the back side of the pachinko machine 100 and then transporting it to the entrance of the game medium path 610.

このパチンコ機100は、遊技者の球発射ハンドル134の操作量に応じた強度で発射装置622の発射ソレノイドを駆動し、1個ずつ発射レール624に供給される機内球を、発射装置622(発射杆622a)によって遊技領域124に打ち出す。そして、遊技領域124の上部に打ち出された球は、打球方向変換部材236や遊技釘238等によって進行方向を変えながら下方に落下し、入賞口(一般入賞口226、可変入賞口234)や始動口(第1特図始動口230、第2特図始動口232)に入賞するか、いずれの入賞口や始動口にも入賞することなく、または普図始動口228を通過するのみでアウト口240に到達する。   The pachinko machine 100 drives the firing solenoid of the launching device 622 with strength according to the amount of operation of the ball launching handle 134 of the player, and launches in-machine balls supplied to the launching rail 624 one by one. The game area 124 is launched by the kite 622a). Then, the ball launched into the upper portion of the game area 124 falls downward while changing the traveling direction by the batting direction changing member 236, the game nail 238, etc., and the winning hole (general winning hole 226, variable winning hole 234) or starting Winning the mouth (first special figure starting port 230, second special figure starting port 232), or winning out any winning port or starting port, or just passing through the normal drawing start port 228 240 is reached.

このように本実施形態では、入賞口および始動口に進入した機内球および、これらに入賞せずにアウト口から排出された機内球のいずれも、パチンコ機100の裏側に誘導され、再び遊技に使用される。従って、機内球の発射による遊技者の遊技球の消費量は、遊技領域124に発射される機内球の数量を遊技球数から減算することで管理する。   As described above, in this embodiment, both the in-flight ball that has entered the winning opening and the starting port, and the in-flight ball that has been discharged from the out-out port without winning a prize are guided to the back side of the pachinko machine 100, and again enter the game. used. Therefore, the amount of game balls consumed by the player due to the launch of in-flight balls is managed by subtracting the number of in-flight balls launched into the game area 124 from the number of game balls.

以下の説明において、遊技開始から遊技終了までの間に、遊技領域124に発射される機内球の数量をイン球数(投入球数)という。イン球数は、球発射ハンドル134の操作で遊技領域124に発射(投入)される機内球を検出する毎に、遊技球数から減算される。つまり1回の機内球の発射によって遊技球数から球数「1」が減算される。   In the following description, the number of in-flight balls launched into the game area 124 from the start of the game to the end of the game is referred to as the number of in-balls (the number of thrown balls). The number of in-balls is subtracted from the number of game balls each time an in-flight ball launched (injected) into the game area 124 by operating the ball launch handle 134 is detected. That is, the number of balls “1” is subtracted from the number of game balls by one launch of the in-flight ball.

また、遊技開始から遊技終了までの間に、遊技領域124から遊技盤200の背面側に排出される機内球の数量をアウト球数(排出球数)という。アウト球数は、遊技領域124から排出される機内球の数を検出し、これをカウントした球数である。パチンコ機100は、イン球数とアウト球数を管理することで、機内球数の監視を行うが、これについては後述する。   Also, the number of in-flight balls discharged from the game area 124 to the back side of the game board 200 between the start of the game and the end of the game is referred to as the number of out balls (the number of discharged balls). The number of out balls is the number of balls in which the number of in-flight balls discharged from the game area 124 is detected and counted. The pachinko machine 100 monitors the number of in-flight balls by managing the number of in-balls and the number of out-balls, which will be described later.

図7は、本実施形態のパチンコ機100の内部を循環する機内球710の経路を説明するための図であり、遊技盤200を正面から見た略示正面図である。同図においては、主に、遊技盤200の各入賞口または各始動口を図示するとともに、パチンコ機100背面側に設けられる遊技媒体経路610を遊技領域124の外側に図示し、また遊技盤200の背面側に設けられる遊技媒体内部経路700(700A〜700J)を破線で示し、遊技媒体内部経路700(700A〜700J)に設けられた各球検出センサ320B、604Bを太線で示している。また、図7(a)は減算センサ604Zが発射レール624の後にある場合を示し、図(b)は減算センサ604Zが球送り装置616と発射装置622の間にある場合を示している。   FIG. 7 is a diagram for explaining the path of the in-flight ball 710 that circulates inside the pachinko machine 100 of the present embodiment, and is a schematic front view of the game board 200 as viewed from the front. In the drawing, each winning opening or each starting port of the game board 200 is mainly illustrated, and a game medium path 610 provided on the back side of the pachinko machine 100 is illustrated outside the game area 124, and the game board 200 is also illustrated. The game medium internal path 700 (700A to 700J) provided on the back side of the game medium is indicated by broken lines, and the ball detection sensors 320B and 604B provided in the game medium internal path 700 (700A to 700J) are indicated by bold lines. FIG. 7A shows the case where the subtraction sensor 604Z is behind the firing rail 624, and FIG. 7B shows the case where the subtraction sensor 604Z is between the ball feeder 616 and the launching device 622.

遊技者が球発射ハンドル(ここでは不図示)を操作すると、発射装置622から機内球710が遊技領域124に発射される。遊技領域124を落下し、第1特図始動口230を通過した機内球710は、遊技盤200の背面側に設けられた遊技媒体内部経路700Aに誘導され、第2特図始動口232を通過した機内球710は、遊技媒体内部経路700Bに誘導される。一般入賞口226Cを通過した機内球710は遊技媒体内部経路700Cに、一般入賞口226Dを通過した機内球710は、遊技媒体内部経路700Dに誘導される。遊技媒体内部経路700C、700Dは1つの遊技媒体内部経路700Eに合流する。また可変入賞口234を通過した機内球710は、遊技媒体内部経路700Fに誘導され、普図始動口228を通過した機内球710は、遊技媒体内部経路700Gに誘導される。複数の遊技媒体内部経路700A、700B、700E、700F、700Gは、1つの遊技媒体内部経路700Hに合流する。   When the player operates a ball launch handle (not shown here), the in-flight ball 710 is launched from the launch device 622 into the game area 124. The in-flight ball 710 that has fallen through the game area 124 and passed through the first special figure starting port 230 is guided to a game medium internal path 700A provided on the back side of the game board 200 and passes through the second special figure starting port 232. The in-flight ball 710 is guided to the game medium internal path 700B. The in-flight ball 710 passing through the general winning opening 226C is guided to the game medium internal path 700C, and the in-flight ball 710 passing through the general winning opening 226D is guided to the gaming medium internal path 700D. The game medium internal paths 700C and 700D merge into one game medium internal path 700E. The in-flight ball 710 that has passed through the variable prize opening 234 is guided to the game medium internal path 700F, and the in-flight ball 710 that has passed through the normal start port 228 is guided to the game medium internal path 700G. The plurality of game medium internal paths 700A, 700B, 700E, 700F, and 700G merge into one game medium internal path 700H.

また、アウト口240から排出され機内球710は、遊技媒体内部経路700Iに誘導される。遊技媒体内部経路700Hおよび700Iは、1つの遊技媒体内部経路700Jに合流し、球磨き装置612の入口に達する。   Further, the in-machine ball 710 discharged from the out port 240 is guided to the game medium internal path 700I. The game medium internal paths 700H and 700I merge into one game medium internal path 700J and reach the entrance of the ball polisher 612.

遊技媒体内部経路700A、700B、700E、700F、700Gには、入賞口または始動口(以下、入賞口等という)に対応してそれぞれ、球検出センサ320Bが設けられる。球検出センサ320Bは、入賞口等に入球したことを検出するセンサであり、一般入賞口用センサ320E、第1特図始動口用センサ320J、第2特図始動口用センサ320H、可変入賞口用センサ320G、普図始動口用センサ320Tの総称である。   The game medium internal paths 700A, 700B, 700E, 700F, and 700G are each provided with a ball detection sensor 320B corresponding to a winning opening or a starting opening (hereinafter referred to as a winning opening or the like). The ball detection sensor 320B is a sensor that detects that a ball has been entered in a prize opening or the like, and includes a general prize opening sensor 320E, a first special figure starting opening sensor 320J, a second special figure starting opening sensor 320H, a variable winning prize. It is a general term for the mouth sensor 320G and the usual start sensor 320T.

すなわち、一般入賞口226(226C、226D)が接続する合流後の遊技媒体内部経路700Eには一般入賞口用センサ320Eが設けられ、第1特図始動口230が接続する遊技媒体内部経路700Aには第1特図始動口用センサ320Jが設けられ、第2特図始動口232が接続する遊技媒体内部経路700Bには第2特図始動口用センサ320Hが設けられ、可変入賞口234が接続する遊技媒体内部経路700Fには可変入賞口用センサ320Gが設けられ、普図始動口228が接続する遊技媒体内部経路700Gには、普図始動口用センサ320Tが設けられる。なお、複数の入賞口等で共通の球検出センサ320Bを使用することができる。例えば、賞球数が同じ一般入賞口226C、226Dには、共通の一般入賞口用センサ320Eが設けられている。また、賞球数が同じ一般入賞口226C、226Dであってもそれぞれに、球検出センサ320Bを設ける構成であってもよい。   In other words, the game medium internal path 700E after joining the general prize opening 226 (226C, 226D) is provided with the general prize opening sensor 320E, and the game medium internal path 700A to which the first special figure starting port 230 is connected. Is provided with a first special figure start port sensor 320J, a second special figure start port sensor 320H is provided in the game medium internal path 700B to which the second special figure start port 232 is connected, and a variable winning port 234 is connected thereto. The game medium internal path 700F is provided with a variable winning opening sensor 320G, and the game medium internal path 700G to which the universal start opening 228 is connected is provided with a general start opening sensor 320T. A common ball detection sensor 320B can be used for a plurality of winning holes. For example, a common general winning opening sensor 320E is provided in the general winning openings 226C and 226D having the same number of winning balls. Moreover, the structure which provides the ball | bowl detection sensor 320B to each may be sufficient even if it is the general winning opening 226C, 226D with the same number of prize balls.

更にパチンコ機100には、球検出センサ604Bが設けられる。球検出センサ604Bは、遊技領域124に発射された機内球710と遊技領域124から排出された機内球710をそれぞれ検出する投入検出センサおよび排出検出センサである。   Further, the pachinko machine 100 is provided with a ball detection sensor 604B. The ball detection sensor 604 </ b> B is an insertion detection sensor and a discharge detection sensor that respectively detect the in-flight ball 710 launched into the game area 124 and the in-flight ball 710 discharged from the game area 124.

投入検出センサは、発射レール624から遊技領域124に発射される機内球710(遊技に供される、または遊技に供された機内球710)の通過を検出する。投入検出センサは例えば、減算センサ604Zである。減算センサ604Zで機内球710の通過を検出すると、遊技者が遊技球を1個消費(遊技者の遊技球数が1個減少)したと判定される。減算センサ604Zは例えば、球送り装置616の球送り装置入口センサ(不図示)と遊技領域124の間に配置される。減算センサ604Zは、発射待機中の機内球710の通過を検出可能な位置であればこの位置に限ることはなく、例えば、球磨き装置612の球入口から発射レール624までの遊技媒体経路610のいずれかの位置に設けることができる。具体的には、球磨き装置612(球磨き装置入口センサ)と発射レール624の間、揚上装置614(揚上装置入口センサ)と発射レール624の間、球送り装置616(球送り装置入口センサ)と発射レール624の間、球磨き装置612(球磨き装置入口センサ)と揚上装置614(揚上装置入口センサ)の間、あるいは揚上装置614(揚上装置入口センサ)と球送り装置616(球送り装置入口センサ)の間、などである。   The input detection sensor detects the passage of an in-flight ball 710 (an in-flight ball 710 used for a game or used for a game) that is launched from the launch rail 624 to the game area 124. The input detection sensor is, for example, a subtraction sensor 604Z. When the subtraction sensor 604Z detects the passage of the in-flight ball 710, it is determined that the player has consumed one game ball (the player's number of game balls has decreased by one). For example, the subtraction sensor 604 </ b> Z is disposed between a ball feeder entrance sensor (not shown) of the ball feeder 616 and the game area 124. The subtraction sensor 604Z is not limited to this position as long as it can detect the passage of the in-flight ball 710 that is waiting to be fired. For example, the subtraction sensor 604Z includes a game media path 610 from the ball entrance of the ball polisher 612 to the firing rail 624. It can be provided at any position. Specifically, between the ball polishing device 612 (ball polishing device inlet sensor) and the firing rail 624, between the lifting device 614 (lifting device inlet sensor) and the firing rail 624, the ball feeding device 616 (ball feeding device inlet). Sensor) and firing rail 624, between ball polisher 612 (ball polisher inlet sensor) and lifter 614 (lifter inlet sensor), or lifter 614 (lifter inlet sensor) and ball feed During device 616 (ball feeder inlet sensor), and so on.

排出検出センサは、遊技領域124から排出された機内球710の通過を検出する。排出検出センサには、入賞口等に入賞した機内球710を検出する入賞検出センサ604Sと、入賞口等のいずれにも入賞しなかった(非入賞であった)機内球710を検出する非入賞検出センサ604Kが含まれる。   The discharge detection sensor detects the passage of the in-flight ball 710 discharged from the game area 124. The discharge detection sensor includes a winning detection sensor 604S that detects an in-flight ball 710 that has won a prize opening or the like, and a non-winning that detects an in-flight ball 710 that has not won any prize (such as a non-winning prize). A detection sensor 604K is included.

例えば、入賞検出センサ604Sは、遊技媒体内部経路700Hの途中に設けられ、これを通過する機内球710を検出することで、いずれかの入賞口等への入球があったこと、および遊技領域124から機内球710が1個排出されたことを検出する。   For example, the winning detection sensor 604S is provided in the middle of the game medium internal path 700H, and by detecting the in-flight ball 710 passing therethrough, there has been a winning at any one of the winning openings and the game area It is detected from 124 that one in-flight ball 710 has been ejected.

一方、遊技領域124内を落下し、いずれの入賞口等にも入賞しなかった機内球710はアウト口240から排出され遊技媒体内部経路700Iに誘導され、球磨き装置612の入口に達する。非入賞検出センサ604Kは例えば、遊技媒体内部経路700Iの途中に設けられ、これを通過する機内球710を検出することで、いずれかの入賞もなかったこと、および遊技領域124から1個の機内球710が排出されたことを検出する。   On the other hand, the in-flight ball 710 that has fallen in the game area 124 and has not won any prize opening or the like is discharged from the out opening 240 and guided to the game medium internal path 700I to reach the entrance of the ball polisher 612. The non-winning detection sensor 604K is provided, for example, in the middle of the game medium internal path 700I, and by detecting the in-vehicle ball 710 passing therethrough, there is no winning, and one in-machine from the gaming area 124 It is detected that the ball 710 has been discharged.

なお、本実施形態では、遊技領域124から排出される機内球710を入賞したものと非入賞のもので区別するために、入賞検出センサ604Sを遊技媒体内部経路700Hに、非入賞検出センサ604Kを遊技媒体内部経路700Iにそれぞれ設けたが、入賞、非入賞の区別なく遊技領域124から排出される機内球710を検出するのみであれば、合流後の遊技媒体内部経路700Jの途中に1つの排出検出センサ(排出検出センサ)を設ける構成としてもよい。   In the present embodiment, in order to distinguish the in-flight ball 710 discharged from the game area 124 from the winning one and the non-winning one, the winning detection sensor 604S is placed in the game medium internal path 700H, and the non-winning detection sensor 604K is placed. Although provided in each of the game medium internal paths 700I, if only the in-vehicle ball 710 discharged from the game area 124 is detected without any distinction between winning and non-winning, one discharge is performed in the middle of the game medium internal path 700J after joining. It is good also as a structure which provides a detection sensor (discharge | emission detection sensor).

なお、同図(a)では、減算センサ604Zが発射レール624から発射された機内球710を検出する場合を示したが減算センサ604Zの位置はこれに限らない。   Although FIG. 9A shows the case where the subtraction sensor 604Z detects the in-flight ball 710 launched from the launch rail 624, the position of the subtraction sensor 604Z is not limited to this.

同図(b)は、減算センサ604Z付近の他の位置を示す図であり、の球送り装置616および発射装置622付近を抜粋して示す図である。同図(b)のように、減算センサ604Zが球送り装置616と発射装置622の間に設けてもよい。この場合、減算センサ604Zは、球送り装置616から発射装置622に送り出された機内球710を検出する。   FIG. 6B is a diagram showing other positions near the subtraction sensor 604Z, and is a diagram showing the vicinity of the ball feeding device 616 and the launching device 622. As shown in FIG. 5B, a subtraction sensor 604Z may be provided between the ball feeding device 616 and the launching device 622. In this case, the subtraction sensor 604Z detects the in-flight ball 710 sent from the ball feeding device 616 to the launching device 622.

このように、封入式のパチンコ機100では、機内球710をパチンコ機100の内枠内部で循環させることにより、遊技者が直接、機内球710に触れることができないので、機内球710に対する不正の防止に効果的である。また、発射装置622は、遊技領域124の上方に設けられており(下方から機内球710をレールに沿って打ち上げる構成ではないため)、発射装置622への戻り球を生じない。更に、機内球710の上皿および下皿への払出が行われないため、騒音レベルが抑えられる上、遊技機への球の補給が不要なため、島設備が不要となる。
<パチンコ機と管理装置の接続例>
As described above, in the enclosed pachinko machine 100, the player cannot directly touch the in-flight ball 710 by circulating the in-flight ball 710 inside the inner frame of the pachinko machine 100. It is effective for prevention. In addition, the launching device 622 is provided above the game area 124 (because it is not configured to launch the in-machine ball 710 along the rail from below), and does not generate a return ball to the launching device 622. Furthermore, since the payout to the upper plate and the lower plate of the in-flight ball 710 is not performed, the noise level is suppressed, and the replenishment of the ball to the gaming machine is unnecessary, so that the island facility is unnecessary.
<Example of connection between pachinko machine and management device>

図8は、パチンコ機100と管理装置620の接続の一例を示すブロック図である。上述のとおり、パチンコ機100は、主制御部300、第1副制御部400、第2副制御部500、球数制御部600などの制御部と、第1特図表示装置212、第2特図表示装置214、普図表示装置210、装飾図柄表示装置208などの表示部と、球数UI部680と、チャンスボタン136、エラー解除スイッチ168などの操作部と、ROM306、RAM308などの記憶部と、インターフェース部606と、を有して構成されている。一方、管理装置620は、全体の制御を行う制御部620aと、各種ボタンなどの操作部620bと、ROMやRAMなどの記憶部620cと、ICカードを挿入するためのカード差込口626と、管理装置表示部628と、パチンコ機100との通信インタフェースであるインターフェース部620dなどを有して構成される。   FIG. 8 is a block diagram illustrating an example of connection between the pachinko machine 100 and the management device 620. As described above, the pachinko machine 100 includes a control unit such as the main control unit 300, the first sub control unit 400, the second sub control unit 500, and the ball number control unit 600, the first special figure display device 212, and the second special control unit. Display units such as the figure display device 214, the universal map display device 210, and the decorative symbol display device 208, the ball count UI unit 680, the operation units such as the chance button 136 and the error release switch 168, and the storage units such as the ROM 306 and RAM 308. And an interface unit 606. On the other hand, the management device 620 includes a control unit 620a that performs overall control, an operation unit 620b such as various buttons, a storage unit 620c such as a ROM and a RAM, a card insertion slot 626 for inserting an IC card, The management apparatus display unit 628 and an interface unit 620d that is a communication interface with the pachinko machine 100 are included.

パチンコ機100の球数制御部600は、インタフェース部606を介して、管理装置620と接続してこれと双方向の通信を行い、遊技球の量に関する情報を含む各種遊技情報を送受信する。球数制御部600は例えば、球数UI部680からの入力操作等に基づいて管理装置620と遊技球の量に関する情報の送受信を行い、貸球制御、計数制御、ICカード返却制御、画面表示の切替制御などを行う。   The ball number control unit 600 of the pachinko machine 100 is connected to the management device 620 via the interface unit 606 to perform bidirectional communication with the management device 620, and transmits and receives various game information including information related to the amount of game balls. For example, the ball number control unit 600 transmits / receives information regarding the amount of game balls with the management device 620 based on an input operation or the like from the ball number UI unit 680, and controls ball rental, counting control, IC card return control, and screen display. Switching control is performed.

遊技球の量に関する情報とは、例えば、遊技球数に関する情報または持ち球数に関する情報、各入賞口等に対応した賞球数含む入賞情報、総賞球数、計数球数、金額(残高)、イン球数およびアウト球数などに関する情報、ICカードに記憶される遊技球の量に関する情報、ICカードの受付又は返却指令などである。   Information on the amount of game balls includes, for example, information on the number of game balls or information on the number of balls held, winning information including the number of winning balls corresponding to each winning mouth, etc., the total number of winning balls, the number of counted balls, and the amount (balance) Information on the number of in-balls and out-balls, information on the amount of game balls stored in the IC card, an IC card reception or return command, and the like.

またこれらの他に、遊技状態の情報、不正やエラーを検出したときに出力する情報なども含まれる。管理装置620は、遊技球数に関する情報を、外部に接続されたホールコンピュータに少なくとも送信する。また、管理装置620は、持ち球数に関する情報を、外部に接続されたホールコンピュータに少なくとも送信するものとしてもよい。   In addition to these, game state information, information output when fraud or error is detected, and the like are also included. The management device 620 transmits at least information regarding the number of game balls to the hall computer connected to the outside. In addition, the management device 620 may transmit at least information regarding the number of possessed balls to a hall computer connected to the outside.

球数制御部60と管理装置620は双方向通信を行うことにより、暗号化処理などによって球数制御部600と管理装置620間の通信データの整合性を確認することができ、これらのインターフェース部606を狙った不正アクセスを防ぐことができる。また、例えば球数制御部600から取得したパチンコ機100の固有の情報(例えば、固有IDなど)を管理装置620の通信網を経由して外部の管理センタなどに登録されたパチンコ機100の固有の情報と照合することでパチンコ機100の認証を行うことが可能となり、電源投入時などに判定を行うことで不正改造の発見が容易となる。   The ball number control unit 60 and the management device 620 can confirm the consistency of communication data between the ball number control unit 600 and the management device 620 through encryption processing or the like by performing bidirectional communication. Unauthorized access aimed at 606 can be prevented. In addition, for example, the unique information (for example, unique ID) of the pachinko machine 100 acquired from the ball number control unit 600 is registered in the external management center or the like via the communication network of the management device 620. It is possible to authenticate the pachinko machine 100 by collating with the above information, and it becomes easy to find unauthorized modification by making a determination at the time of power-on or the like.

再び図7も参照して、各入賞口および各始動口に設けられた球検出センサ320Bは主制御部300と接続する。主制御部300は、一般入賞口用センサ320Eにおいて機内球710の通過を検出すると、一般入賞口226に入賞したと判定し、当該入賞に対応する賞球数、または当該賞球数に個々に対応する情報を含む賞球数情報(賞球コマンド)を、球数制御部600に送信する。また、第1特図始動口用センサ320Jにおいて機内球710の通過を検出すると、第1特図始動口230に入賞したと判定し、当該入賞に対応する賞球コマンドを、球数制御部600に送信する。また、第2特図始動口用センサ320Hにおいて機内球710の通過を検出すると、第2特図始動口232に入賞したと判定し、当該入賞に対応する賞球コマンドを、球数制御部600に送信する。また、可変入賞口用センサ320Gにおいて機内球710の通過を検出すると、可変入賞口234に入賞したと判定し、当該入賞に対応する賞球コマンドを、球数制御部600に送信する。また、主制御部300は、普図始動口用センサ320Tにおいて機内球710の通過を検出すると、普図始動口228に入賞したと判定し、当該入賞に対応する賞球コマンドを、球数制御部600に送信する。   Referring again to FIG. 7, the ball detection sensors 320 </ b> B provided at each winning opening and each starting port are connected to the main control unit 300. When the general winning opening sensor 320E detects the passage of the in-flight ball 710, the main control unit 300 determines that the general winning opening 226 has been won, and individually determines the number of winning balls corresponding to the winning or the number of winning balls individually. Prize ball number information (prize ball command) including corresponding information is transmitted to the ball number control unit 600. Further, when the first special figure starting port sensor 320J detects the passage of the in-flight ball 710, it is determined that the first special figure starting port 230 has won a prize, and a prize ball command corresponding to the winning is sent to the ball number control unit 600. Send to. Further, when the second special figure starting port sensor 320H detects the passage of the in-flight ball 710, it is determined that the second special figure starting port 232 has won a prize, and a winning ball command corresponding to the winning is sent to the ball number control unit 600. Send to. Further, when the variable prize opening sensor 320G detects the passage of the in-flight ball 710, it is determined that the variable prize opening 234 has been won, and a prize ball command corresponding to the prize is transmitted to the ball number control unit 600. Further, when the main control unit 300 detects that the in-flight ball 710 has passed through the normal start port sensor 320T, the main control unit 300 determines that the general start port 228 has won a prize, and a prize ball command corresponding to the win is controlled by the number of balls. To the unit 600.

減算センサ604Z、入賞検出センサ604Sおよび非入賞検出センサ604Kは、球数制御部600と接続する。   The subtraction sensor 604Z, the winning detection sensor 604S, and the non-winning detection sensor 604K are connected to the ball number control unit 600.

遊技者の遊技球数は、球数制御部600のRAM等に設けられた遊技球数記憶領域に記憶されており、球数制御部600は、減算センサ604Zで機内球710の通過を検出した場合、遊技球数記憶領域に記憶されている遊技球数を1つ減じる。   The number of game balls of the player is stored in a game ball number storage area provided in a RAM or the like of the ball number control unit 600. The ball number control unit 600 detects the passage of the in-flight ball 710 by the subtraction sensor 604Z. In this case, the number of game balls stored in the game ball number storage area is reduced by one.

球数制御部600は、減算センサ604Zで機内球710の通過を検出し、且つ入賞検出センサ604Sのいずれかで1個の機内球710の通過を検出した場合に、遊技球数の1個の消費による入賞があったと判定し、主制御部300から球数制御部600に送信される賞球数情報(賞球コマンド)に基づいて当該入賞に対応する賞球数を、遊技球数記憶領域に記憶されている遊技球数に加算する。また球数制御部600は、減算センサ604Zで機内球710の通過を検出し、且つ非入賞検出センサ604Kで1個の機内球710の通過を検出した場合に、遊技球数の1個の消費と判定する。
<球数UI部>
The ball number control unit 600 detects the passage of the in-flight ball 710 with the subtraction sensor 604Z, and when one of the in-flight balls 710 is detected with any of the winning detection sensors 604S, It is determined that there has been a winning due to consumption, and the number of winning balls corresponding to the winning is determined based on the winning ball number information (principal ball command) transmitted from the main control unit 300 to the ball number control unit 600. Is added to the number of game balls stored in. In addition, when the number-of-balls control unit 600 detects the passage of the in-flight ball 710 with the subtraction sensor 604Z and detects the passage of one in-flight ball 710 with the non-winning detection sensor 604K, Is determined.
<Number of balls UI section>

図9を参照して、球数UI部680について説明する。図9は、球数UI部680の一例を示す上面(正面)図である。本実施形態の球数UI部680は、入力操作部654と計数ボタン652を有する操作部650と、画像表示部656と球数表示部640を有するUI表示部658と、を含んで構成される。   The ball number UI unit 680 will be described with reference to FIG. FIG. 9 is a top (front) view showing an example of the ball count UI unit 680. The ball number UI unit 680 of the present embodiment includes an input operation unit 654, an operation unit 650 having a counting button 652, and a UI display unit 658 having an image display unit 656 and a ball number display unit 640. .

画像表示部656は、例えば液晶表示装置であり、管理装置620から受信したICカード内に記憶された残高、貯球数などの情報を表示する。また後述するが、画像表示部656には、第1副制御部400が生成し、遊技盤200に設けられた表示装置(装飾図柄表示装置208)に表示する画像、および管理装置620が生成した画像のうち、一方を切り替えて表示可能である。   The image display unit 656 is a liquid crystal display device, for example, and displays information such as the balance and the number of stored balls stored in the IC card received from the management device 620. As will be described later, in the image display unit 656, an image generated by the first sub-control unit 400 and displayed on a display device (decorative symbol display device 208) provided in the game board 200, and a management device 620 are generated. One of the images can be switched and displayed.

入力操作部654は、複数のボタンであり、ここでは一例として、UI表示部658の一部に設けられた遊技者の指を接触させることで当該ボタンの操作(入力)を可能にしたタッチパネル方式が採用される。指による入力の一例として、抵抗膜方式(アナログ抵抗膜方式、マトリクス型抵抗膜方式)、静電容量方式、赤外線方式、超音波方式などが挙げられる。以下、遊技者による指入力を「タッチする」という場合がある。また、所定のペンの先端を接触させることにより入力させるものであってもよく、この場合の一例としてアナログ抵抗膜方式、電磁誘導方式、静電結合方式などが挙げられる。なお本実施形態では、画像表示部656と入力操作部654が一体的に設けられたタッチパネル型液晶表示装置662を採用している。しかしこれに限らず、入力操作部654は、画像表示部656と別体に設けられたタッチパネルでもよいし、計数ボタン652と同様に画像表示部656と別体に設けられた押しボタン(スイッチ式)で入力操作を行うものであってもよい。また、タッチパネルには、有機EL表示装置や、プラズマディスプレイを用いてもよい。さらに画像表示部656は、入力操作部654を別体の構成とする場合には、種々の演出や種々の遊技情報を表示可能に構成されていればよく、例えば、ドットマトリクス表示装置、7セグメント表示装置、有機EL表示装置、リール(ドラム)式表示装置、リーフ式表示装置、プラズマディスプレイ、プロジェクタを含む他の表示デバイスを採用してもよい。   The input operation unit 654 is a plurality of buttons. Here, as an example, a touch panel system that enables operation (input) of the buttons by touching a player's finger provided in a part of the UI display unit 658. Is adopted. Examples of input by a finger include a resistance film method (analog resistance film method, matrix resistance film method), a capacitance method, an infrared method, and an ultrasonic method. Hereinafter, finger input by the player may be referred to as “touch”. Further, the input may be performed by bringing the tip of a predetermined pen into contact, and examples of this case include an analog resistance film method, an electromagnetic induction method, and an electrostatic coupling method. In this embodiment, a touch panel type liquid crystal display device 662 in which an image display unit 656 and an input operation unit 654 are integrally provided is employed. However, the present invention is not limited to this, and the input operation unit 654 may be a touch panel provided separately from the image display unit 656, or a push button (switch type) provided separately from the image display unit 656 similarly to the counting button 652. ) May be used for input operation. Further, an organic EL display device or a plasma display may be used for the touch panel. Furthermore, when the input operation unit 654 is configured as a separate component, the image display unit 656 may be configured to display various effects and various game information. For example, a dot matrix display device, 7 segments Other display devices including a display device, an organic EL display device, a reel (drum) display device, a leaf display device, a plasma display, and a projector may be adopted.

入力操作部654の複数のボタンは例えば、管理装置620に対して球貸し指示を行う球貸ボタン140、管理装置620に対して挿入されたICカードの返却の指示を行う返却ボタン142および、画面表示の切り替えを指示する切替ボタン144、管理装置620に対して再プレイ指示を行う再プレイボタン146などである。また、入力操作部654には、これ以外の操作ボタンが含まれてもよい。更に、入力操作部654は、例えば初期状態では1つのボタンのみ表示され、当該ボタンをタッチすることで複数の階層に分かれた操作メニューが表示されるように構成されていてもよい。これらのボタンは例えば、操作(入力)可能の場合は明るく(光って)表示されており、操作(入力)不可の場合は暗く表示されている。   The plurality of buttons of the input operation unit 654 include, for example, a ball lending button 140 for instructing the management device 620 to lend a ball, a return button 142 for instructing the management device 620 to return the inserted IC card, and a screen. For example, a switch button 144 for instructing display switching, a replay button 146 for instructing the management device 620 to replay, and the like. The input operation unit 654 may include other operation buttons. Further, for example, the input operation unit 654 may be configured such that only one button is displayed in an initial state, and an operation menu divided into a plurality of layers is displayed by touching the button. For example, these buttons are displayed brightly (lighted) when operation (input) is possible, and are displayed dark when operation (input) is impossible.

計数ボタン652は、球数制御部600の遊技球数記憶領域に保持された遊技球数の少なくとも一部をICカードに記憶(貯球)する場合に押下するボタンである。また、計数球数は、遊技者の計数ボタン652の操作に基づいて、遊技球数から減算されるとともに、パチンコ機100から管理装置620に送信され、ICカードに記憶される球数をいう。例えば、計数ボタン652の所定時間内(例えば10秒以内)の1回の押下に対して所定数(例えば10個)の計数球数が対応づけられており、これが押下されたことを球数制御部600が検知すると、は遊技球数から計数球数(例えば10個)を減算し、計数球数を計数情報として管理装置620に送信するとともに、減算後の遊技球数を球数表示部640に表示する。計数情報には、減算後の遊技球数や、それまでの計数球数を累積した総計数球数(貯球数)が含まれ、計数情報を受信した管理装置620は、貯球数等をICカードに記憶するとともに、球数表示部640に更新された遊技球数を表示させる。   The count button 652 is a button that is pressed when at least a part of the number of game balls held in the game ball number storage area of the ball number control unit 600 is stored (stored) in the IC card. The number of counted balls refers to the number of balls that are subtracted from the number of game balls based on the player's operation of the count button 652 and transmitted from the pachinko machine 100 to the management device 620 and stored in the IC card. For example, a predetermined number (for example, 10) of counting balls is associated with a single press of the counting button 652 within a predetermined time (for example, within 10 seconds), and it is controlled that the number has been pressed. When the unit 600 detects it, it subtracts the counted ball number (for example, 10) from the number of game balls, transmits the counted ball number as count information to the management device 620, and displays the number of game balls after the subtraction as a ball number display unit 640. To display. The count information includes the number of game balls after subtraction and the total number of count balls (the number of stored balls) obtained by accumulating the number of count balls up to that point. While being stored in the IC card, the updated number of game balls is displayed on the ball number display unit 640.

計数ボタン652は、複数回連続して押下することで、1回の押下に相当する一定量に、押下した回数を乗じた計数球数(例えば10個×2回押下=20個など)を送信することもできる。また、所定時間(例えば、10秒)を超えて押下を続けるとその押下時間の長さに応じて、加速的に計数球数が増加し(20個、50個、100個など)、押下終了した時点の計数球数を管理装置620に送信するものであってもよい。また、ICカードの返却ボタン142が遊技者によってタッチされ、その後所定時間(例えば、10秒以内)に計数ボタン652が押下された場合は、パチンコ機100で記憶する全ての遊技球数を計数球数とした計数情報を管理装置620に送信し、球数表示部640には「0」を表示するものであってもよい。更に、入力操作部654に数字キー(テンキー)を配置したり、数字キーボタンを配置するなどし、計数ボタン652を押下した後に数字キー入力で計数球数を直接入力させるものであってもよい。   When the count button 652 is continuously pressed a plurality of times, the number of count balls (for example, 10 × 2 presses = 20) is multiplied by a certain amount corresponding to one press and the number of presses. You can also In addition, if the pressing is continued for a predetermined time (for example, 10 seconds), the number of counting balls is accelerated (20, 50, 100, etc.) according to the length of the pressing time, and the pressing ends. The number of counted balls at the time may be transmitted to the management device 620. Further, when the return button 142 of the IC card is touched by the player and the counting button 652 is pressed for a predetermined time (for example, within 10 seconds), the number of all the game balls stored in the pachinko machine 100 is counted. The count information as a number may be transmitted to the management device 620 and “0” may be displayed on the ball number display unit 640. Further, a numeric key (ten key) or a numeric key button may be arranged on the input operation unit 654, and the counting ball number may be directly input by the numeric key input after pressing the counting button 652. .

球貸ボタン140は、遊技者が残高から所定数の遊技球を借りる(残高から貸球を受ける)場合にタッチするボタンである。ICカードが管理装置620に挿入されると、ICカード内の電子マネーの残高を管理装置表示部628に表示するとともにICカード内の貯球と残高などの情報(球数更新指令)が、球数UI部680に送信される。球数UI部680はこれに基づき、画像表示部656にこれらの情報を含む画像を表示する。当該表示に基づき、遊技者が球貸ボタン140をタッチした場合、その情報(球貸操作情報)が球数UI部680から管理装置620に送信される。球貸ボタン140は、計数ボタン652と同様に所定期間の1回のタッチで一定量の貸球数が球貸操作情報として送信されるものであってもよいし、複数回のタッチで貸球数の整数倍の入力が可能となったり、所定期間を超えるタッチで貸球数が加速度的に増加する入力が可能となるものであってもよい。   The ball lending button 140 is a button to be touched when the player borrows a predetermined number of game balls from the balance (receives a lending ball from the balance). When the IC card is inserted into the management device 620, the balance of the electronic money in the IC card is displayed on the management device display unit 628, and information (ball count update command) such as storage and balance in the IC card is The number is transmitted to the UI unit 680. Based on this, the ball number UI unit 680 displays an image including these pieces of information on the image display unit 656. Based on the display, when the player touches the ball lending button 140, the information (ball lending operation information) is transmitted from the ball number UI unit 680 to the management device 620. As with the counting button 652, the ball lending button 140 may transmit a certain amount of ball lending as ball lending operation information with one touch for a predetermined period, or lend with a plurality of touches. The input may be an integral multiple of the number, or the input may be made such that the number of rented balls increases at an accelerated rate by a touch exceeding a predetermined period.

球貸操作情報を受信した管理装置620は、指示のあった貸球数(球貸要求情報)を球数制御部600に送信する。球数制御部600は、貸球数を遊技球数に加算して球数表示部640に表示するとともに遊技球数記憶領域に記憶し、遊技者は増加した遊技球数で遊技を行うことができる。また貸球後の残高が画像表示部656に表示される。   The management device 620 that has received the ball lending operation information transmits the number of balls that have been instructed (ball lending request information) to the ball number control unit 600. The ball number control unit 600 adds the number of rented balls to the number of game balls and displays it on the ball number display unit 640 and stores it in the game ball number storage area so that the player can play a game with the increased number of game balls. it can. Further, the balance after renting is displayed on the image display unit 656.

再プレイボタン146は、遊技者が貯球から所定数の遊技球を借りる(貯球から貸球を受ける)場合にタッチするボタンである。ICカードが管理装置620に挿入されると、ICカード内の電子マネーの残高を管理装置表示部628に表示するとともにICカード内の貯球と残高などの情報(球数更新指令)が、球数UI部680に送信される。球数UI部680はこれに基づき、画像表示部656にこれらの情報を含む画像を表示する。例えば、再プレイは、所定量(例えば、100個)の貯球がある場合に有効であり、球数更新指令には再プレイ可否の情報も含まれる。再プレイ可能な場合は、球数UI部680は再プレイボタン146を明るく表示するなどし、再プレイ可能であることを報知する。当該表示に基づき、遊技者が再プレイボタン146をタッチした場合、その情報(再プレイ操作情報)が球数UI部680から管理装置620に送信される。再プレイボタン146は、計数ボタン652と同様に所定期間の1回のタッチで一定量の再プレイ球数(貸球数と同様)が再プレイ操作情報として送信されるものであってもよいし、複数回のタッチで再プレイ球数の整数倍の入力が可能となったり、所定期間を超えるタッチで再プレイ球数が加速度的に増加する入力が可能となるものであってもよい。   The replay button 146 is a button that is touched when the player borrows a predetermined number of game balls from the stored ball (receives a loan from the stored ball). When the IC card is inserted into the management device 620, the balance of the electronic money in the IC card is displayed on the management device display unit 628, and information (ball count update command) such as storage and balance in the IC card is The number is transmitted to the UI unit 680. Based on this, the ball number UI unit 680 displays an image including these pieces of information on the image display unit 656. For example, the replay is effective when there is a predetermined amount (for example, 100) of stored balls, and the renewal propriety information is included in the ball number update command. When the replay is possible, the ball count UI unit 680 notifies that the replay is possible by displaying the replay button 146 brightly. When the player touches the replay button 146 based on the display, the information (replay operation information) is transmitted from the ball number UI unit 680 to the management device 620. Similarly to the counting button 652, the replay button 146 may transmit a fixed amount of replay balls (similar to the number of balls lent) as replay operation information by one touch for a predetermined period. Further, an input that is an integral multiple of the number of replay balls can be made by multiple touches, or an input in which the number of replay balls can be accelerated at a touch exceeding a predetermined period may be possible.

再プレイ操作情報を受信した管理装置620は、指示のあった再プレイ球数の要求情報を球数制御部600に送信する。球数制御部600は、再プレイ球数を遊技球数に加算して球数表示部640に表示するとともに遊技球数記憶領域に記憶し、遊技者は増加した遊技球数で遊技を行うことができる。また再プレイによる貸球後の貯球が画像表示部656に表示される。   The management device 620 that has received the replay operation information transmits the requested replay ball number request information to the ball number control unit 600. The ball number control unit 600 adds the replayed ball number to the game ball number and displays it on the ball number display unit 640 and stores it in the game ball number storage area, so that the player plays a game with the increased number of game balls. Can do. In addition, the stored balls after lending by replay are displayed on the image display unit 656.

返却ボタン142は、管理装置620にICカードが挿入されている場合にタッチすると、ICカードが返却されるボタンである。返却ボタン142のタッチがあった情報(返却操作情報)が球数UI部680から管理装置620に送信されると、管理装置620から球数制御部600に球数要求情報を送信する。球数要求情報を受信した球数制御部600は、最新の遊技球数を含む遊技球数情報を管理装置620に送信する。遊技球数情報には残高、賞球数の累積である総賞球数、貯球数(総計数球数)などが含まれる。遊技球数情報を受信した管理装置620は貯球数等をICカードに記憶し、カード挿入口626から排出する。   The return button 142 is a button for returning the IC card when touched when the IC card is inserted in the management apparatus 620. When information (return operation information) touched by the return button 142 is transmitted from the ball number UI unit 680 to the management device 620, the ball number request information is transmitted from the management device 620 to the ball number control unit 600. Upon receiving the ball number request information, the ball number control unit 600 transmits game ball number information including the latest game ball number to the management device 620. The game ball number information includes the balance, the total number of winning balls, which is the cumulative number of winning balls, the number of stored balls (total number of counting balls), and the like. Upon receiving the game ball number information, the management device 620 stores the number of balls stored in the IC card and discharges it from the card insertion slot 626.

球数表示部640は、例えば、7セグメント表示装置またはドットマトリクス表示装置などにより構成された遊技球数表示装置であり、パチンコ機100または管理装置620から送信される情報(遊技球数やエラー情報など)を表示する。球数表示部640は、遊技球数等を1個単位で、例えば6桁まで表示可能である。また例えば「ERRxx」などの文字によるエラー情報も表示可能である。   The ball number display unit 640 is a game ball number display device configured by, for example, a 7-segment display device or a dot matrix display device, and information transmitted from the pachinko machine 100 or the management device 620 (game ball number or error information). Etc.). The ball number display unit 640 can display the number of game balls and the like in units of one, for example, up to six digits. For example, error information by characters such as “ERRxx” can be displayed.

例えば、遊技球数が100個の場合、球数表示部640には「100」と表示される。遊技中に入賞により15個の賞球があると、まずガラス枠(前面枠扉)106の賞球数表示部690に「15」と表示され、その賞球が遊技者に付与される(払い出される)と球数制御部600の表示が「115」となるとともに賞球数表示部690の表示が「0」になる。
<図柄の種類>
For example, when the number of game balls is 100, “100” is displayed on the ball number display unit 640. If there are 15 prize balls due to winning during the game, “15” is first displayed on the prize ball number display section 690 of the glass frame (front frame door) 106, and the prize balls are given to the player (paid out). Display of the ball number control unit 600 becomes “115” and the display of the prize ball number display unit 690 becomes “0”.
<Type of design>

次に、図10(a)〜(c)を用いて、パチンコ機100の第1特別図柄表示装置212、第2特別図柄表示装置214、装飾図柄表示装置208、普通図柄表示装置210が停止表示する特図および普図の種類について説明する。図10(a)は特図の停止図柄態様の一例を示したものである。   Next, using FIGS. 10A to 10C, the first special symbol display device 212, the second special symbol display device 214, the decorative symbol display device 208, and the normal symbol display device 210 of the pachinko machine 100 are stopped and displayed. The types of special maps and general maps to be described will be described. Fig.10 (a) shows an example of the stop symbol aspect of a special figure.

第1特図始動口230に球が入球したことを第1特図始動口用センサ320Jが検出したことを条件として特図1変動遊技が開始され、第2特図始動口232に球が入球したことを第2特図始動口用センサ320Hが検出したことを条件として特図2変動遊技が開始される。特図1変動遊技が開始されると、第1特別図柄表示装置212は、7個のセグメントの全点灯と、中央の1個のセグメントの点灯を繰り返す「特図1の変動表示」を行う。また、特図2変動遊技が開始されると、第2特別図柄表示装置214は、7個のセグメントの全点灯と、中央の1個のセグメントの点灯を繰り返す「特図2の変動表示」を行う。これらの「特図1の変動表示」および「特図2の変動表示」が本発明にいう図柄の変動表示の一例に相当する。そして、特図1の変動開始前に決定した変動時間(本発明にいう変動時間が相当)が経過すると、第1特別図柄表示装置212は特図1の停止図柄態様を停止表示し、特図2の変動開始前に決定した変動時間(これも本発明にいう変動時間が相当)が経過すると、第2特別図柄表示装置214は特図2の停止図柄態様を停止表示する。したがって、「特図1の変動表示」を開始してから特図1の停止図柄態様を停止表示するまで、あるいは「特図2の変動表示」を開始してから特図2の停止図柄態様を停止表示するまでが本発明にいう図柄変動停止表示の一例に相当し、以下、この「特図1又は2の変動表示」を開始してから特図1又は2の停止図柄態様を停止表示するまでの一連の表示を図柄変動停止表示と称する。後述するように、図柄変動停止表示は複数回、連続して行われることがある。図10(a)には、図柄変動停止表示における停止図柄態様として「特図A」から「特図J」までの10種類の特図が示されている。図10(a)においては、図中の白抜きの部分が消灯するセグメントの場所を示し、黒塗りの部分が点灯するセグメントの場所を示している。   The special figure 1 variation game is started on the condition that the first special figure start opening sensor 320J detects that the ball has entered the first special figure start opening 230, and the second special figure start opening 232 receives a ball. The special figure 2 variable game is started on condition that the second special figure start port sensor 320H detects that the ball has entered. When the special figure 1 variable game is started, the first special symbol display device 212 performs “variable display of special figure 1” by repeating all lighting of seven segments and lighting of one central segment. In addition, when the special figure 2 variable game is started, the second special symbol display device 214 displays “fluctuation display of special figure 2” which repeats lighting of all seven segments and lighting of one central segment. Do. These “variation display of special figure 1” and “variation display of special figure 2” correspond to an example of the symbol fluctuation display according to the present invention. Then, when the variation time determined before the variation start of the special figure 1 (corresponding to the variation time referred to in the present invention) elapses, the first special symbol display device 212 stops and displays the special symbol form of the special figure 1. When the variation time determined before the start of variation 2 (this also corresponds to the variation time according to the present invention) has elapsed, the second special symbol display device 214 stops and displays the stop symbol form of the special diagram 2. Therefore, from the start of “figure display of special figure 1” until the stop symbol form of special figure 1 is stopped, or after the start of “fluctuation display of special figure 2”, the stop symbol form of special figure 2 is displayed. Until stop display corresponds to an example of the symbol variation stop display referred to in the present invention, hereinafter, after the “variable display of special figure 1 or 2” is started, the stop symbol form of special figure 1 or 2 is stopped and displayed. The series of displays up to is referred to as symbol variation stop display. As will be described later, the symbol variation stop display may be continuously performed a plurality of times. FIG. 10A shows ten types of special drawings from “special drawing A” to “special drawing J” as stop symbol forms in the symbol variation stop display. In FIG. 10 (a), the white portions in the figure indicate the segment locations where the light is extinguished, and the black portions indicate the location where the segments are illuminated.

「特図A」は15ラウンド(15R)特別大当たり図柄であり、「特図B」は15R大当たり図柄である。本実施形態のパチンコ機100では、後述するように、特図変動遊技における大当りか否かの決定はハードウェア乱数の抽選によって行い、特別大当りか否かの決定はソフトウェア乱数の抽選によって行う。大当りと特別大当りの違いは、次回の特図変動遊技で、大当りに当選する確率が高い(特別大当り)か低い(大当り)かの違いである。以下、この大当りに当選する確率が高い状態のことを特図高確率状態と称し、その確率が低い状態のことを特図低確率状態と称する。また、15R特別大当たり遊技終了後および15R大当たり遊技終了後はいずれも時短状態に移行する。時短については詳しくは後述するが、時短状態に移行する状態のことを普図高確率状態と称し、時短状態に移行しない状態のことを普図低確率状態と称する。15R特別大当たり図柄である「特図A」は、特図高確率普図高確率状態であり、15R大当たり図柄である「特図B」は、特図低確率普図高確率状態である。これらの「特図A」および「特図B」は、遊技者に付与する利益量が相対的に大きな利益量になる図柄である。   “Special Figure A” is a 15 round (15R) special jackpot symbol, and “Special Figure B” is a 15R jackpot symbol. In the pachinko machine 100 according to the present embodiment, as will be described later, the determination as to whether or not the big hit in the special figure variable game is made by lottery of hardware random numbers, and the decision as to whether or not it is a special big hit is made by lottery of software random numbers. The difference between the jackpot and the special jackpot is the difference in whether the probability of winning the jackpot is high (special jackpot) or low (jackpot) in the next special figure variation game. Hereinafter, a state having a high probability of winning the jackpot is referred to as a special figure high probability state, and a state having a low probability is referred to as a special figure low probability state. Moreover, after the 15R special jackpot game ends and after the 15R jackpot game ends, both shift to the time-saving state. Although the time reduction will be described in detail later, the state that shifts to the time reduction state is referred to as a normal high probability state, and the state that does not shift to the time reduction state is referred to as a normal low probability state. “Special figure A”, which is a 15R special jackpot symbol, is a special figure high probability normal figure high probability state, and “Special figure B”, which is a 15R jackpot symbol, is a special figure low probability ordinary figure high probability state. These “special chart A” and “special chart B” are symbols that give a relatively large profit amount to the player.

「特図C」は突然確変と称される2R大当たり図柄であり、特図高確率普図高確率状態である。すなわち、15Rである「特図A」と比べて、「特図C」は2Rである点が異なる。「特図D」は突然時短と称される2R大当たり図柄であり、特図低確率普図高確率状態である。すなわち、15Rである「特図B」と比べて、「特図D」は2Rである点が異なる。   “Special figure C” is a 2R jackpot symbol called sudden probability change, and is a special figure high probability normal figure high probability state. That is, “Special Figure C” is 2R compared to “Special Figure A” which is 15R. "Special figure D" is a 2R jackpot symbol called sudden time reduction, and is a special figure low probability normal figure high probability state. That is, “Special Figure D” is 2R compared to “Special Figure B” which is 15R.

「特図E」は隠れ確変と称される2R大当たり図柄であり、特図高確率普図低確率状態である。「特図F」は突然通常と称される2R大当たり図柄であり、特図低確率普図低確率状態である。これら「特図E」および「特図F」はいずれも、2Rであるとともに、時短状態に移行しない状態である。   “Special figure E” is a 2R jackpot symbol called hidden probability change, and is a special figure high probability normal figure low probability state. "Special figure F" is a 2R jackpot symbol suddenly called normal, and is a special figure low probability normal figure low probability state. These “special drawing E” and “special drawing F” are both 2R and are in a state in which they do not shift to the time-saving state.

「特図G」は第1小当たり図柄であり、「特図H」は第2小当たり図柄であり、何れも特図低確率普図低確率状態である。ここにいう小当たりは、2R時短無し大当たりと同じものに相当する。すなわち、この「特図G」、「特図H」は「特図F」と同じ状態であるが、両者では装飾図柄表示装置208に表示される演出が異なり、あえて、同じ状態でも「特図G」、「特図H」と「特図F」を設けておくことで、遊技の興趣を高めている。   "Special figure G" is a first small hit symbol, and "Special figure H" is a second small hit symbol, both of which are in a special figure low probability normal figure low probability state. The small hit here is equivalent to the same short hit big hit with 2R. That is, “Special Figure G” and “Special Figure H” are in the same state as “Special Figure F”, but the effects displayed on the decorative symbol display device 208 are different in both cases. By providing “G”, “Special Figure H”, and “Special Figure F”, the interest of the game is enhanced.

また、「特図I」は第1はずれ図柄であり、「特図J」は第2はずれ図柄であり、遊技者に付与する利益量が相対的に小さな利益量になる図柄である。   In addition, “Special Figure I” is a first off symbol, and “Special Figure J” is a second off symbol, and the profit amount given to the player is a relatively small profit amount.

なお、本実施形態のパチンコ機100には、15R特別大当たり図柄として「特図A」以外の図柄も用意されており、15R大当たり図柄等の他の図柄についても同様である。   In the pachinko machine 100 of the present embodiment, symbols other than “Special Figure A” are prepared as 15R special jackpot symbols, and the same applies to other symbols such as 15R jackpot symbols.

図10(b)は装飾図柄の一例を示したものである。本実施形態の装飾図柄には、「装飾1」〜「装飾10」の10種類がある。第1特図始動口230または第2特図始動口232に球が入賞したこと、すなわち、第1特図始動口230に球が入球したことを第1特図始動口用センサ320Jが検出したこと、あるいは第2特図始動口232に球が入球したことを第2特図始動口用センサ320Hが検出したことを条件にして、装飾図柄表示装置208の左図柄表示領域208a、中図柄表示領域208b、右図柄表示領域208cの各図柄表示領域に、「装飾1」→「装飾2」→「装飾3」→・・・・「装飾9」→「装飾10」→「装飾1」→・・・の順番で表示を切り替える「装飾図柄の変動表示」を行う。そして、「特図B」の15R大当たりを報知する場合には、図柄表示領域208a〜208cに15R大当たりに対応する、同じ装飾図柄が3つ並んだ図柄組合せ(例えば「装飾1−装飾1−装飾1」や「装飾2−装飾2−装飾2」等)を停止表示する。「特図A」の15R特別大当たりを報知する場合には、同じ奇数の装飾図柄が3つ並んだ図柄組合せ(例えば「装飾3−装飾3−装飾3」や「装飾7−装飾7−装飾7」等)を停止表示する。   FIG. 10B shows an example of a decorative design. There are 10 types of decoration patterns of the present embodiment: “Decoration 1” to “Decoration 10”. The first special figure starting port sensor 320J detects that a ball has won the first special figure starting port 230 or the second special figure starting port 232, that is, that a ball has entered the first special figure starting port 230. On the left symbol display area 208a of the decorative symbol display device 208, on the condition that the second special diagram start port sensor 320H has detected that the ball has entered the second special diagram start port 232 In each symbol display area of the symbol display area 208b and the right symbol display area 208c, “decoration 1” → “decoration 2” → “decoration 3” →... “Decoration 9” → “decoration 10” → “decoration 1” → Perform “decorative display of decorative symbols” to switch the display in the order. When the 15R jackpot of “Special Figure B” is notified, a symbol combination (for example, “decoration 1—decoration 1—decoration”) corresponding to the 15R jackpot corresponding to the 15R jackpot is displayed in the symbol display areas 208a to 208c. 1 ”or“ decoration 2—decoration 2—decoration 2 ”). When the 15R special jackpot of “special drawing A” is notified, a combination of three symbols of the same odd number of decorative symbols (for example, “decoration 3—decoration 3—decoration 3” or “decoration 7—decoration 7—decoration 7”). Etc.) is stopped and displayed.

また、「特図E」の隠れ確変と称される2R大当たり、「特図F」の突然通常と称される2R大当たり、あるいは「特図G」の第1小当たり、「特図H」の第2小当たりを報知する場合には、「装飾1−装飾2−装飾3」を停止表示する。さらに、「特図C」の突然確変と称される2R大当たり、あるいは「特図D」の突然時短と称される2R大当たりを報知する場合には、「装飾1−装飾3−装飾5」を停止表示する。   In addition, the 2R jackpot called “hidden probability change” of “Special Figure E”, the 2R jackpot called “Special Figure F” suddenly, or the first small hit of “Special Figure G”, “Special Figure H” When notifying the second small hit, “decoration 1-decoration 2—decoration 3” is stopped and displayed. Furthermore, in order to notify the 2R jackpot called “sudden change” of “special drawing C” or the 2R jackpot called “sudden time reduction” of “special drawing D”, “decoration 1-decoration 3—decoration 5” is displayed. Stop display.

一方、「特図I」の第1はずれ、「特図J」の第2はずれを報知する場合には、図柄表示領域208a〜208cに図10(b)に示す図柄組合せ以外の図柄組合せを停止表示する。   On the other hand, when notifying the first deviation of “Special Figure I” and the second deviation of “Special Figure J”, the symbol combinations other than the symbol combinations shown in FIG. 10B are stopped in the symbol display areas 208a to 208c. indicate.

図10(c)は普図の停止表示図柄の一例を示したものである。本実施形態の普図の停止表示態様には、当たり図柄である「普図A」と、外れ図柄である「普図B」の2種類がある。普図始動口228を球が通過したことを上述の球検出センサ(普図始動口用センサ)が検出したことに基づいて、普通図柄表示装置210は、7個のセグメントの全点灯と、中央の1個のセグメントの点灯を繰り返す「普図の変動表示」を行う。そして、普図変動遊技の当選を報知する場合には「普図A」を停止表示し、普図変動遊技の外れを報知する場合には「普図B」を停止表示する。この図10(c)においても、図中の白抜きの部分が消灯するセグメントの場所を示し、黒塗りの部分が点灯するセグメントの場所を示している。
<制御部>
FIG.10 (c) shows an example of the usual stop display symbol. In the present embodiment, there are two types of stoppage display modes for ordinary maps: “general diagram A” which is a winning symbol and “general symbol B” which is a missed symbol. Based on the detection of the above-mentioned sphere detection sensor (common-use start opening sensor) that the sphere has passed through the general-purpose start opening 228, the normal symbol display device 210 is configured to turn on all seven segments, The “variable display of the usual map” is performed repeatedly by lighting up one segment. Then, when notifying the winning of the common figure variable game, the “normal figure A” is stopped and displayed, and when notifying the usual figure variable game, the “normal figure B” is stopped and displayed. Also in FIG. 10C, the white portions in the figure indicate the locations of the segments that are turned off, and the black portions indicate the locations of the segments that are turned on.
<Control unit>

次に、図11を用いて、このパチンコ機100の制御部の回路構成について詳細に説明する。なお、同図は制御部の回路ブロック図を示したものである。   Next, the circuit configuration of the control unit of the pachinko machine 100 will be described in detail with reference to FIG. This figure shows a circuit block diagram of the control unit.

パチンコ機100の制御部は、大別すると、遊技の中枢部分を制御する主制御部300と、主制御部300が送信するコマンド信号(以下、単に「コマンド」と呼ぶ)に応じて主に演出の制御を行う第1副制御部400と、第1副制御部400より送信されたコマンドに基づいて各種機器を制御する第2副制御部500と、主制御部300が送信するコマンドおよび循環する機内球710の状態に応じて、主に遊技者が保持する遊技球数の増減に関する制御を行うとともに機内球710の循環の制御を行う球数制御部600と、パチンコ機100に供給される電源を制御する電源制御部660と、によって構成している。
<主制御部>
The control unit of the pachinko machine 100 can be roughly classified into a main control unit 300 that controls the central part of the game and a command signal (hereinafter simply referred to as “command”) transmitted by the main control unit 300. A first sub-control unit 400 that performs control, a second sub-control unit 500 that controls various devices based on a command transmitted from the first sub-control unit 400, and a command transmitted by the main control unit 300 and circulation. In accordance with the state of the in-flight ball 710, the ball number control unit 600 that mainly controls the increase / decrease of the number of game balls held by the player and controls the circulation of the in-flight ball 710, and the power supplied to the pachinko machine 100 And a power supply control unit 660 for controlling the power supply.
<Main control unit>

まず、パチンコ機100の主制御部300について説明する。   First, the main control unit 300 of the pachinko machine 100 will be described.

主制御部300は、主制御部300の全体を制御する基本回路302を備えており、この基本回路302には、CPU304と、制御プログラムや各種データを記憶するためのROM306と、一時的にデータを記憶するためのRAM308と、各種デバイスの入出力を制御するためのI/O310と、時間や回数等を計測するためのカウンタタイマ312と、プログラム処理の異常を監視するWDT314を搭載している。なお、ROM306やRAM308については他の記憶装置を用いてもよく、この点は後述する第1副制御部400についても同様である。この基本回路302のCPU304は、水晶発振器316bが出力する所定周期のクロック信号をシステムクロックとして入力して動作する。   The main control unit 300 includes a basic circuit 302 that controls the entire main control unit 300. The basic circuit 302 includes a CPU 304, a ROM 306 for storing control programs and various data, and temporary data. RAM 308 for storing data, I / O 310 for controlling input / output of various devices, counter timer 312 for measuring time and frequency, and WDT 314 for monitoring abnormalities in program processing are mounted. . Note that another storage device may be used for the ROM 306 and the RAM 308, and this is the same for the first sub-control unit 400 described later. The CPU 304 of the basic circuit 302 operates by inputting a clock signal of a predetermined period output from the crystal oscillator 316b as a system clock.

また、基本回路302には、水晶発振器316aが出力するクロック信号を受信する度に0〜65535の範囲で数値を導出する乱数値生成回路318(この回路には2つの乱数値生成回路を内蔵しているものとする)と、所定の球検出センサ320B(第1特図始動口用センサ320J、第2特図始動口用センサ320H、一般入賞口用センサ320E、可変入賞口用センサ320G、普図始動口用センサ320T)を含む各種センサ320が出力する信号を受信し、増幅結果や基準電圧との比較結果を乱数値生成回路318および基本回路302に出力するためのセンサ回路322と、所定の図柄表示装置、例えば第1特図表示装置212や第2特図表示装置214の表示制御を行うための駆動回路324と、所定の図柄表示装置、例えば普図表示装置210の表示制御を行うための駆動回路326と、各種状態表示部328(例えば、普図保留ランプ216、第1特図保留ランプ218、第2特図保留ランプ220、高確中ランプ222等)の表示制御を行うための駆動回路330と、所定の可動部材、例えば第2特図始動口232の羽根部材232aや可変入賞口234の扉部材234a等を開閉駆動する各種ソレノイド332を制御するための駆動回路334と、賞球数表示部690の表示制御を行うための駆動回路342とを接続している。   The basic circuit 302 includes a random value generation circuit 318 for deriving a numerical value in the range of 0 to 65535 every time a clock signal output from the crystal oscillator 316a is received (this circuit includes two random value generation circuits). Predetermined ball detection sensor 320B (first special figure starting port sensor 320J, second special figure starting port sensor 320H, general winning port sensor 320E, variable winning port sensor 320G, A sensor circuit 322 for receiving signals output from various sensors 320 including the start opening sensor 320T) and outputting a comparison result with an amplification result and a reference voltage to the random value generation circuit 318 and the basic circuit 302; For example, a drive circuit 324 for controlling the display of the first special symbol display device 212 and the second special symbol display device 214, and a predetermined symbol display device, for example, A drive circuit 326 for performing display control of the general-purpose display device 210, and various status display units 328 (for example, a general-purpose reservation lamp 216, a first special figure reservation lamp 218, a second special figure reservation lamp 220, a high-probability medium) A driving circuit 330 for performing display control of the lamp 222 and the like, and various solenoids 332 for opening and closing a predetermined movable member, for example, the blade member 232a of the second special figure starting port 232, the door member 234a of the variable winning port 234, and the like. Is connected to a drive circuit 334 for controlling the display of the prize-ball number display unit 690.

乱数値生成回路318は、基本回路302で使用する乱数値を生成する。この乱数値生成回路318における乱数の生成には、大別するとカウンタモードと乱数モードとの2種類の方法がある。カウンタモードでは、所定の時間間隔でカウントアップ(ダウン)する数値を取得して、その数値を乱数として導出する。乱数モードには、さらに2つの方法がある。乱数モードにおける一つ目の方法は、乱数の種を用いて所定関数(例えばモジュラス関数)による演算を行い、この演算結果を乱数として導出する。二つ目の方法は、0〜65535の範囲の数値がランダムに配列された乱数テーブルから数値を読み出し、その読み出した数値を乱数として導出する。乱数値生成回路318では、各種センサ320からセンサ回路322に入力される信号に重畳しているホワイトノイズを利用して不規則な値を取得する。乱数値生成回路318は、こうして取得した値を、カウンタモードでカウントアップ(ダウン)させるカウンタの初期値として用いたり、乱数の種として用いたり、あるいは乱数テーブルの読み出し開始位置を決定する際に用いる。   The random value generation circuit 318 generates a random value used in the basic circuit 302. Random number generation in the random value generation circuit 318 can be broadly divided into two types of methods: counter mode and random number mode. In the counter mode, a numerical value that is counted up (down) at a predetermined time interval is acquired, and the numerical value is derived as a random number. There are two more methods in the random number mode. The first method in the random number mode performs an operation using a predetermined function (for example, a modulus function) using a seed of random numbers, and derives the operation result as a random number. In the second method, a numerical value is read from a random number table in which numerical values in the range of 0 to 65535 are randomly arranged, and the read numerical value is derived as a random number. The random value generation circuit 318 acquires an irregular value using white noise superimposed on a signal input from the various sensors 320 to the sensor circuit 322. The random value generation circuit 318 uses the acquired value as an initial value of a counter that counts up (down) in the counter mode, uses it as a seed of random numbers, or determines a read start position of the random number table. .

なお、第1特図始動口230に球が入賞したことを第1特図始動口用センサ320Jが検出した場合には、センサ回路322は球を検出したことを示す信号を乱数値生成回路318に出力する。この信号を受信した乱数値生成回路318は、第1特図始動口230に対応する乱数値生成回路のそのタイミングにおける値をラッチし、ラッチした値を、乱数値生成回路318に内蔵された、第1特図始動口230に対応する乱数値記憶用レジスタに記憶する。また、乱数値生成回路318は、第2特図始動口232に球が入賞したことを示す信号を受信した場合も同様に、第2特図始動口232に対応する乱数値生成回路のそのタイミングにおける値をラッチし、ラッチした値を、乱数値生成回路318に内蔵された、第2特図始動口232に対応する乱数値記憶用レジスタに記憶する。   When the first special figure start port sensor 320J detects that a ball has won the first special figure start port 230, the sensor circuit 322 outputs a signal indicating that the ball has been detected to the random value generation circuit 318. Output to. The random value generation circuit 318 that has received this signal latches the value at that timing of the random value generation circuit corresponding to the first special figure starting port 230, and the latched value is incorporated in the random value generation circuit 318. It is stored in a random value storage register corresponding to the first special figure starting port 230. Similarly, when the random value generation circuit 318 receives a signal indicating that a ball has won the second special figure starting port 232, the timing of the random value generation circuit corresponding to the second special figure starting port 232 is also the same. Is latched, and the latched value is stored in a random value storage register corresponding to the second special figure starting port 232 incorporated in the random value generation circuit 318.

さらに、基本回路302には、情報出力回路336を接続しており、主制御部300は、この情報出力回路336を介して、外部のホールコンピュータ(図示省略)等が備える情報入力回路350にパチンコ機100の遊技情報(例えば、遊技状態、遊技球数情報、持ち球数情報など)を出力する。情報入力回路350は、管理装置620と双方向の通信が可能なように接続しており、これにより遊技情報が管理装置620に送信される。なお、情報入力回路350と管理装置620は双方向の通信ではなく、管理装置620から情報入力回路350への一方向の通信としてもよい。   Further, an information output circuit 336 is connected to the basic circuit 302, and the main control unit 300 is connected to an information input circuit 350 provided in an external hall computer (not shown) or the like via this information output circuit 336. The game information of the machine 100 (for example, game state, game ball number information, possession ball number information, etc.) is output. The information input circuit 350 is connected to the management device 620 so that bidirectional communication is possible, whereby game information is transmitted to the management device 620. Note that the information input circuit 350 and the management device 620 may be one-way communication from the management device 620 to the information input circuit 350 instead of bidirectional communication.

また、主制御部300には、電源制御部660から主制御部300に供給している電源の電圧値を監視する電圧監視回路338を設けており、この電圧監視回路338は、電源の電圧値が所定の値(本実施例では9v)未満である場合に電圧が低下したことを示す低電圧信号を基本回路302に出力する。   In addition, the main control unit 300 is provided with a voltage monitoring circuit 338 that monitors the voltage value of the power source supplied from the power source control unit 660 to the main control unit 300. The voltage monitoring circuit 338 is a voltage value of the power source. Is less than a predetermined value (9v in this embodiment), a low voltage signal indicating that the voltage has dropped is output to the basic circuit 302.

また、主制御部300には、電源が投入されると起動信号(リセット信号)を出力する起動信号出力回路(リセット信号出力回路)340を設けており、CPU304は、この起動信号出力回路340から起動信号を入力した場合に、遊技制御を開始する(後述する主制御部メイン処理を開始する)。   In addition, the main control unit 300 is provided with a start signal output circuit (reset signal output circuit) 340 that outputs a start signal (reset signal) when the power is turned on. When an activation signal is input, game control is started (main control section main processing described later is started).

また、主制御部300は、第1副制御部400にコマンドを送信するための出力インタフェースと、球数制御部600にコマンドを送信するためのインタフェースをそれぞれ備えており、この構成により、第1副制御部400および球数制御部600との通信を可能としている。なお、主制御部300と球数制御部660との情報通信は、パラレル通信またはシリアル通信による双方向の通信である。主制御部300と球数制御部600は双方向通信を行うことにより、暗号化処理などによって主制御部300と球数制御部600との間の通信データの整合性を確認することができ、これらのインターフェース部を狙った不正アクセスを防ぐことができる。   The main control unit 300 includes an output interface for transmitting a command to the first sub-control unit 400 and an interface for transmitting a command to the ball number control unit 600. With this configuration, the first control unit 300 Communication with the sub-control unit 400 and the ball number control unit 600 is enabled. Note that the information communication between the main control unit 300 and the ball number control unit 660 is bidirectional communication by parallel communication or serial communication. The main control unit 300 and the ball number control unit 600 can confirm the consistency of communication data between the main control unit 300 and the ball number control unit 600 by encryption processing or the like by performing bidirectional communication. Unauthorized access aimed at these interface parts can be prevented.

これに対し、主制御部300と第1副制御部400との情報通信は一方向の通信であり、主制御部300は第1副制御部400にコマンド等の信号を送信できるように構成しているが、第1副制御部400からは主制御部300にコマンド等の信号を送信できないように構成している。また第1副制御部400と第2副制御部500も双方向の通信を可能に構成している。   On the other hand, information communication between the main control unit 300 and the first sub control unit 400 is one-way communication, and the main control unit 300 is configured to transmit a signal such as a command to the first sub control unit 400. However, the first sub-control unit 400 is configured not to transmit a signal such as a command to the main control unit 300. Further, the first sub-control unit 400 and the second sub-control unit 500 are also configured to be capable of bidirectional communication.

また、主制御部300は各入賞口等に入賞した機内球710を球検出センサ320Bで検出した場合、入賞口等毎に設定された賞球数を賞球数表示部690に表示する。また球数制御部600に対し、当該賞球数、または賞球数に対応する情報を含む賞球数情報を一定間隔毎にシリアル信号(コマンド形式)として送信する。つまり、主制御部300が入賞を判定し、賞球数を賞球数表示部690に表示するとともに、遊技者に付与する賞球数を賞球数情報(賞球コマンド)として球数制御部600に送信する。これにより球数制御部600が遊技球数に賞球数を加算し、球数表示部640に表示する。このように、入賞口等に入賞があった場合、当該入賞に対する賞球数は、入賞表示装部690で(わずかな時間となる場合もあるが)表示された後、球数制御部640に反映(遊技球数に加算して表示)される。   In addition, when the main control unit 300 detects the in-flight ball 710 that has won a prize port or the like by the ball detection sensor 320B, the main control unit 300 displays the number of prize balls set for each prize port or the like on the prize ball number display unit 690. In addition, the number of prize balls or prize ball number information including information corresponding to the number of prize balls is transmitted as a serial signal (command format) at regular intervals to the ball number control unit 600. That is, the main control unit 300 determines winning, displays the number of prize balls on the prize ball number display unit 690, and uses the number of prize balls given to the player as prize ball number information (prize ball command). 600. Thereby, the ball number control unit 600 adds the number of prize balls to the number of game balls and displays it on the ball number display unit 640. As described above, when a winning is made at a winning opening or the like, the number of winning balls for the winning is displayed on the winning display unit 690 (although it may be a short time), and then is displayed on the ball number control unit 640. Reflected (displayed by adding to the number of game balls).

後述するが、主制御部300から球制御部600に送信する賞球コマンドは、1つのコマンドに1つの入賞における賞球数が対応している。主制御部300と球数制御部600は、1回の賞球の払い出し(付与)に関して双方向の通信(コマンドの送受信)を行うが、その間に複数回の入賞があった場合であっても、主制御部300から球数制御部600に送信する1つの賞球コマンドには、1回の入賞による賞球数情報のみが含まれる。つまり、このような場合賞球数表示部690は、球数制御部640に賞球コマンドを送信するまでは、賞球数を累積して表示する。例えば、遊技球数が100個の状態(球数表示部640に「100」が表示されている状態)で可変入賞口234(例えば賞球数は「15」)に連続して3回の入賞があった場合、賞球数表示部690の表示は、わずかな時間に15→30→45と遷移する。この間に、1回目の入賞による賞球コマンド(賞球数「15」)が主制御部300から球数制御部600に送信されると、賞球数表示部690の表示は45→30に遷移し、球数表示部640の表示は100→115に遷移する。2回目の入賞による賞球コマンド(賞球数「15」)が主制御部300から球数制御部600に送信されると、賞球数表示部690の表示は30→15に遷移し、球数表示部640の表示は115→130に遷移し、3回目の入賞による賞球コマンド(賞球数「15」)が主制御部300から球数制御部600に送信されると、賞球数表示部690の表示は15→0に遷移し、球数表示部640の表示は130→145に遷移する。   As will be described later, in the winning ball command transmitted from the main control unit 300 to the ball control unit 600, the number of winning balls in one winning corresponds to one command. The main control unit 300 and the ball number control unit 600 perform two-way communication (command transmission / reception) with respect to the payout (giving) of one prize ball, even if there are multiple wins during that time. One prize ball command transmitted from the main control unit 300 to the ball number control unit 600 includes only information on the number of prize balls by one winning. That is, in such a case, the prize ball number display unit 690 accumulates and displays the number of prize balls until the prize ball command is transmitted to the ball number control unit 640. For example, in a state where the number of game balls is 100 (in the state where “100” is displayed on the ball number display unit 640), the prize winning 234 (for example, the number of prize balls is “15”) is consecutively won three times. When there is, the display on the prize ball number display section 690 transitions from 15 → 30 → 45 in a short time. During this time, when the winning ball command (the winning ball number “15”) by the first winning is transmitted from the main control unit 300 to the ball number control unit 600, the display of the winning ball number display unit 690 changes from 45 to 30. Then, the display on the ball number display unit 640 changes from 100 to 115. When a winning ball command (the winning ball number “15”) by the second winning is transmitted from the main control unit 300 to the ball number control unit 600, the display of the winning ball number display unit 690 changes from 30 to 15, and the ball The display of the number display unit 640 changes from 115 to 130, and when a prize ball command (award ball number “15”) by the third winning is transmitted from the main control unit 300 to the ball number control unit 600, the number of prize balls The display on the display unit 690 changes from 15 to 0, and the display on the ball number display unit 640 changes from 130 to 145.

なお、上記の例に限らず、主制御部300から球数制御部600に送信する1つの賞球コマンドは、複数の賞球数情報(例えば、複数回の入賞の賞球数を加算した合計値)を含むものであってもよい。   Note that, not limited to the above example, one prize ball command transmitted from the main control unit 300 to the ball number control unit 600 is a sum of a plurality of prize ball number information (for example, the number of prize balls of a plurality of winning prizes). Value).

主制御部300は、遊技領域124に残存する機内球710の有無に関わらず、始動口また入賞口の入賞があれば、当否判定を行うことが可能である。ここでの当否判定とは、賞球の付与、大当り動作の開始等、遊技者に与える他の利益であってもよい。   The main control unit 300 can determine whether or not there is a winning at the start opening or winning opening regardless of the presence of the in-flight ball 710 remaining in the game area 124. Here, the determination of success / failure may be other benefits given to the player, such as awarding a prize ball or starting a big hit action.

また、主制御部300では、不正を検出した場合にその情報をコマンドとして球数制御部600に送信する。主制御部300で検出する不正は、異常な磁気を検出した場合の磁石エラー、異常な電波を検出した場合の電波エラー、振動を検知した場合の振動エラー、大当たり時以外に機内球710が可変入賞口234に入賞した場合の不正入賞エラー等である。   When the main control unit 300 detects fraud, the main control unit 300 transmits the information to the ball number control unit 600 as a command. The injustice detected by the main control unit 300 is a magnet error when detecting abnormal magnetism, a radio wave error when detecting abnormal radio waves, a vibration error when detecting vibrations, and the in-flight ball 710 is variable except for a big hit. An illegal winning error or the like when winning in the winning opening 234.

また、主制御部300では、ICカードが管理装置620に挿入されているか否かに関わらず遊技の制御を可能とする。例えば、ICカードを管理装置620に挿入した状態で遊技を開始し、遊技中にICカードを返却した場合であっても、遊技を継続することができる。   Further, the main control unit 300 enables game control regardless of whether or not an IC card is inserted in the management device 620. For example, even when the game is started with the IC card inserted into the management device 620 and the IC card is returned during the game, the game can be continued.

なお、賞球数表示部690の接続例は上記の例に限らない。例えば、賞球数表示部690を情報出力回路336に接続し、主制御部300が情報出力回路366に設定するデータ(賞球数)に基づき賞球数表示部690に表示するものであってもよい。また、下記で説明する副制御部(第1副制御部400または第2副制御部500)と接続し、副制御部が出力するコマンドに基づき賞球数を表示するものとしてもよい。
<副制御部>
The connection example of the prize ball number display unit 690 is not limited to the above example. For example, the prize ball number display unit 690 is connected to the information output circuit 336 and displayed on the prize ball number display unit 690 based on data (number of prize balls) set by the main control unit 300 in the information output circuit 366. Also good. Moreover, it is good also as what connects with the sub control part (1st sub control part 400 or the 2nd sub control part 500) demonstrated below, and displays a prize ball number based on the command which a sub control part outputs.
<Sub control unit>

次に、パチンコ機100の第1副制御部400について説明する。第1副制御部400は、主に主制御部300が送信したコマンド等に基づいて第1副制御部400の全体を制御する基本回路402を備えており、この基本回路402には、CPU404と、一時的にデータを記憶するためのRAM408と、各種デバイスの入出力を制御するためのI/O410と、時間や回数等を計測するためのカウンタタイマ412を搭載している。基本回路402のCPU404は、水晶発振器414が出力する所定周期のクロック信号をシステムクロックとして入力して動作し、第1副制御部400の全体を制御するための制御プログラム及びデータ、各種演出データ等が記憶されたROM406が接続されている。   Next, the first sub control unit 400 of the pachinko machine 100 will be described. The first sub-control unit 400 includes a basic circuit 402 that controls the entire first sub-control unit 400 mainly based on commands transmitted from the main control unit 300. The basic circuit 402 includes a CPU 404 and A RAM 408 for temporarily storing data, an I / O 410 for controlling input / output of various devices, and a counter timer 412 for measuring time, the number of times, and the like are mounted. The CPU 404 of the basic circuit 402 operates by inputting a clock signal of a predetermined period output from the crystal oscillator 414 as a system clock, and controls programs and data for controlling the entire first sub-control unit 400, various effect data, etc. Is connected to the ROM 406.

また、基本回路402には、スピーカ120(およびアンプ)の制御を行うための音源IC416と、各種ランプ418(例えば、チャンスボタンランプ138)の制御を行うための駆動回路420と、遮蔽装置246の駆動制御を行うための駆動回路432と、遮蔽装置246の現在位置を検出する遮蔽装置センサ430と、チャンスボタン136の押下を検出するチャンスボタン検出センサ426と、遮蔽装置センサ430やチャンスボタン検出センサ426からの検出信号を基本回路402に出力するセンサ回路428と、CPU404からの信号に基づいてROM406に記憶された画像データ等を読み出してVRAM436のワークエリアを使用して表示画像を生成して装飾図柄表示装置208に画像を表示するVDP434(ビデオ・ディスプレイ・プロセッサー)と、各種センサ440と、を接続している。各種センサ440には、例えば、前面枠扉開放センサや内枠開放センサが含まれる。   The basic circuit 402 includes a sound source IC 416 for controlling the speaker 120 (and amplifier), a drive circuit 420 for controlling various lamps 418 (for example, the chance button lamp 138), and a shielding device 246. A drive circuit 432 for performing drive control, a shielding device sensor 430 that detects the current position of the shielding device 246, a chance button detection sensor 426 that detects pressing of the chance button 136, a shielding device sensor 430, and a chance button detection sensor The sensor circuit 428 that outputs the detection signal from the 426 to the basic circuit 402, and the image data stored in the ROM 406 based on the signal from the CPU 404 are read, and the display image is generated using the work area of the VRAM 436 to decorate A VDP 434 (image) that displays an image on the symbol display device 208. Oh and display processor), and it is connected to the various sensors 440, the. The various sensors 440 include, for example, a front frame door open sensor and an inner frame open sensor.

次に、パチンコ機100の第2副制御部500について説明する。第2副制御部500は、第1副制御部400が送信した制御コマンドを入力インタフェースを介して受信し、この制御コマンドに基づいて第2副制御部500の全体を制御する基本回路502を備えており、この基本回路502は、CPU504と、一時的にデータを記憶するためのRAM508と、各種デバイスの入出力を制御するためのI/O510と、時間や回数等を計測するためのカウンタタイマ512を搭載している。基本回路502のCPU504は、水晶発振器514が出力する所定周期のクロック信号をシステムクロックとして入力して動作し、第2副制御部500の全体を制御するための制御プログラム及びデータ、画像表示用のデータ等が記憶されたROM506が設けられている。   Next, the second sub control unit 500 of the pachinko machine 100 will be described. The second sub-control unit 500 includes a basic circuit 502 that receives the control command transmitted from the first sub-control unit 400 via the input interface and controls the entire second sub-control unit 500 based on the control command. The basic circuit 502 includes a CPU 504, a RAM 508 for temporarily storing data, an I / O 510 for controlling input / output of various devices, and a counter timer for measuring time and frequency 512 is installed. The CPU 504 of the basic circuit 502 operates by inputting a clock signal of a predetermined period output from the crystal oscillator 514 as a system clock, and controls a control program and data for controlling the entire second sub-control unit 500, and an image display A ROM 506 storing data and the like is provided.

また、基本回路502には、演出可動体224の駆動制御を行うための駆動回路516と、演出可動体224の現在位置を検出する演出可動体センサ424と、演出可動体センサ424からの検出信号を基本回路502に出力するセンサ回路518と、遊技盤用ランプ532の制御を行うための遊技盤用ランプ駆動回路530と、遊技台枠用ランプ542の制御を行うための遊技台枠用ランプ駆動回路540と、遊技盤用ランプ駆動回路530と遊技台枠用ランプ駆動回路540との間でシリアル通信による点灯制御を行うシリアル通信制御回路520と、CPU504からの信号に基づいてROM506に記憶された画像データ等を読み出してVRAM536のワークエリアを使用して表示画像を生成して球数UI部680に画像を表示するVDP534と、を接続している。なお、VRAM536およびVDP534などの画像制御手段は、第1副制御部400に備えるものを共用してもよい。
<表示装置切替部>
The basic circuit 502 includes a drive circuit 516 for controlling the drive of the effect movable body 224, an effect movable body sensor 424 that detects the current position of the effect movable body 224, and a detection signal from the effect movable body sensor 424. Is output to the basic circuit 502, a game board lamp drive circuit 530 for controlling the game board lamp 532, and a game table frame lamp drive for controlling the game table frame lamp 542 The circuit 540, the serial communication control circuit 520 that performs lighting control by serial communication between the game board lamp drive circuit 530 and the game stand frame lamp drive circuit 540, and the signal from the CPU 504 are stored in the ROM 506. The image data is read out, a display image is generated using the work area of the VRAM 536, and the image is displayed on the ball count UI unit 680. Is connected to the VDP534, the. Note that the image control means such as the VRAM 536 and the VDP 534 may share those provided in the first sub-control unit 400.
<Display device switching unit>

表示装置切替部670は、球数UI部680と双方向の通信が可能に接続されている。また表示装置切替部670は、インターフェース部606を介して、球数制御部600と接続する。表示装置切替部670は、表示画像の切替回路等を有し、球数UI部680の画像表示部565に表示する画像を、第1副制御部400で生成された第1の画像、および第1副制御部400以外で生成された第2の画像のうち、少なくともいずれか一方に切り替えて表示可能な構成となっている。   The display device switching unit 670 is connected to the ball number UI unit 680 so that bidirectional communication is possible. The display device switching unit 670 is connected to the ball number control unit 600 via the interface unit 606. The display device switching unit 670 includes a display image switching circuit, and the like. The first image generated by the first sub-control unit 400 and the first image displayed on the image display unit 565 of the ball count UI unit 680 are displayed. The second image generated by a device other than the first sub-control unit 400 can be displayed by switching to at least one of the second images.

表示装置切替部670は、第1の画像と第2の画像のいずれか一方を切り替えて表示可能としてもよいし、第1の画像と、第1の画像と第2の画像を含む画像とを切り替えて表示可能としてもよい。第2の画像は、例えば、管理装置620で生成された画像、または、第2副制御部500で生成された画像である。
<球数制御部>
The display device switching unit 670 may switch and display either one of the first image and the second image, or the first image and the image including the first image and the second image. It may be possible to switch and display. The second image is, for example, an image generated by the management device 620 or an image generated by the second sub control unit 500.
<Ball number control unit>

次に、図11を参照してパチンコ機100の球数制御部600について説明する。   Next, the ball number control unit 600 of the pachinko machine 100 will be described with reference to FIG.

球数制御部600は、内枠中継基板(不図示)を介して入賞検出センサ604Sと非入賞検出センサ604Kに接続し、発射中継基板(不図示)を介して減算センサ604Zに接続して機内球710の通過を検出し、循環する機内球710の監視制御(イン球およびアウト球の監視制御)、および賞球制御を行う。また球数制御部600は、球数UI部680に接続し、球貸制御やICカードの返却制御を行う。更に、球磨き装置612、揚上装置614、球送り装置616、発射装置622、発射レール624に接続し、遊技媒体経路610の制御を行う。さらに球数制御部600は、基板表示部630と接続し、球数制御部600が検出したエラーの報知を行う。以下これらについて詳細に説明する。   The ball number controller 600 is connected to the winning detection sensor 604S and the non-winning detection sensor 604K via an inner frame relay board (not shown), and connected to the subtraction sensor 604Z via a launch relay board (not shown). The passage of the ball 710 is detected, and the in-flight ball 710 that circulates is monitored (in-ball and out-ball monitoring control) and prize ball control is performed. Further, the ball number control unit 600 is connected to the ball number UI unit 680 to perform ball lending control and IC card return control. Further, the ball polishing device 612, the lifting device 614, the ball feeding device 616, the launching device 622, and the firing rail 624 are connected to control the game medium path 610. Further, the ball number control unit 600 is connected to the substrate display unit 630 and notifies an error detected by the ball number control unit 600. These will be described in detail below.

<<イン球およびアウト球の監視制御>> << Monitoring control of in-ball and out-ball >>

球数制御部600は、球検出センサ604Bでパチンコ機100内部を循環する機内球710を検出することにより、イン球およびアウト球の監視を行う。すなわち、減算センサ604Zが機内球710の発射を検出した場合、遊技者の遊技球数の消費と判断し、遊技球数から1を減算するとともに、減算後の遊技球数を球数表示部640に表示する。一方、入賞検出センサ604Sまたは非入賞検出センサ604Kが機内球710の通過を検出した場合、遊技領域124から機内球710が排出したものと判断する。本実施形態では、入賞による実際の機内球710の払い出しはないため、発射される機内球710と遊技領域124から排出される機内球710は同数(遊技球1個の消費で1個の排出)であり、これによって、循環する機内球710のエラーを検出する。なお、機内球710の遊技領域124への1個の投入と遊技領域124からの1個の排出は同じタイミングであるとは限らないため、遊技領域124に複数の機内球710が存在する場合がある。   The ball number control unit 600 monitors the in-ball and the out-ball by detecting the in-flight ball 710 circulating in the pachinko machine 100 with the ball detection sensor 604B. That is, when the subtraction sensor 604Z detects the launch of the in-flight ball 710, it is determined that the player has consumed the number of game balls, 1 is subtracted from the number of game balls, and the number of game balls after the subtraction is displayed in the ball number display unit 640. To display. On the other hand, when the winning detection sensor 604S or the non-winning detection sensor 604K detects the passage of the in-flight ball 710, it is determined that the in-flight ball 710 is discharged from the game area 124. In this embodiment, since there is no actual payout of the in-flight ball 710 due to winning, the same number of in-flight balls 710 to be launched and in-flight balls 710 discharged from the game area 124 (one discharge per consumption of one game ball). Thus, an error of the circulating in-flight ball 710 is detected. Note that there is a case where there are a plurality of in-flight balls 710 in the game area 124 because it is not always the same timing for one throw in the game area 124 and one discharge from the game area 124. is there.

球数制御部600は、例えば、遊技領域124に残存する機内球710の数によってイン球およびアウト球の監視し、異常な場合はエラーを報知する球数管理制御を行う。ここで遊技領域124に残存する機内球710の数、すなわちイン球数とアウト球数の差を領域内球数という。例えば、遊技開始から遊技終了までの期間において、減算センサ604Zで通過が検出された機内球710の数を、球数制御部600のRAM等に設けられた投入数(イン球数)記憶領域に累積的に記憶する。また遊技開始から遊技終了までの期間において、入賞検出センサ604Sおよび非入賞検出センサ604Kで通過が検出された機内球710の数を、球数制御部600のRAM等に設けられた排出数(アウト球数)記憶領域に累積的に記憶する。球数制御部600は所定のタイミングで、これらの差分(イン球数−アウト球数=領域内球数)を求め、球数制御部600のRAM等に設けられた領域内球数記憶領域に記憶する。そして球数制御部600は、領域内球数記憶領域に記憶された値を異常判定の条件と比較し、異常の場合は、エラーとして報知する。   For example, the ball number control unit 600 monitors in-balls and out-balls according to the number of in-flight balls 710 remaining in the game area 124, and performs ball number management control for notifying an error when abnormal. Here, the number of in-flight balls 710 remaining in the game area 124, that is, the difference between the number of in-balls and the number of out-balls is referred to as the number of in-area balls. For example, during the period from the start of the game to the end of the game, the number of in-flight balls 710 detected by the subtraction sensor 604Z is stored in the throw-in number (in-ball number) storage area provided in the RAM or the like of the ball number control unit 600. Memorize cumulatively. Further, during the period from the start of the game to the end of the game, the number of in-flight balls 710 that have been detected to pass by the winning detection sensor 604S and the non-winning detection sensor 604K is calculated as the number of discharges (out) provided in the RAM or the like of the ball number control unit 600. The number of balls is stored cumulatively in the storage area. The ball number control unit 600 obtains a difference between them (in ball number-out ball number = in-region ball number) at a predetermined timing, and stores the difference in the in-region ball number storage area provided in the RAM or the like of the ball number control unit 600. Remember. Then, the ball number control unit 600 compares the value stored in the in-region ball number storage area with the abnormality determination condition, and reports an error as an error.

一例を挙げて具体的に説明すると、球数制御部600は例えば、主制御部300または球数制御部600の定期的な割込み処理において、領域内球数を算出して領域内球数記憶領域に記憶し、その値を用いて異常判定を行い、第1の異常判定条件が成立した場合は、第1の異常と判定し、第2の異常判定条件が成立した場合は、第2の異常と判定する。   Specifically, for example, the ball number control unit 600 calculates the number of balls in the area in the periodic interruption process of the main control unit 300 or the ball number control unit 600, and stores the number of balls in the area. And the value is used to determine the abnormality. When the first abnormality determination condition is satisfied, the first abnormality is determined. When the second abnormality determination condition is satisfied, the second abnormality is determined. Is determined.

第1の異常判定条件は例えば、領域内球数がマイナスになった場合である。第1の異常判定条件はまた、領域内球数が第1の異常判定数を下回った場合としてもよく、第1の異常判定数は例えば、ゼロや、負の数(例えば−19)、あるいは二つ以上の定められた数の和(例えば数A(例えば−5)と数B(例えば−7)の和(この場合−12))などであってもよい。   The first abnormality determination condition is, for example, a case where the in-region sphere number becomes negative. The first abnormality determination condition may also be a case where the number of in-region spheres is less than the first abnormality determination number. The first abnormality determination number is, for example, zero, a negative number (for example, −19), or The sum of two or more predetermined numbers (for example, the sum of number A (for example, -5) and number B (for example, -7) (in this case, -12)) may be used.

第2の異常判定条件は例えば、領域内球数が機内球710の数を超えた場合である。第2の異常判定条件はまた、領域内球数が第2の異常判定数を上回った場合としてもよく、第2の異常判定数は例えば、正の数(例えば19)や、二つ以上の定められた数の和(例えば数A(例えば5)と数B(例えば7)の和(この場合12))などであってもよく、これらの場合にエラーを報知する。   The second abnormality determination condition is, for example, a case where the number of balls in the area exceeds the number of in-flight balls 710. The second abnormality determination condition may also be a case where the number of balls in the region exceeds the second abnormality determination number. The second abnormality determination number is, for example, a positive number (for example, 19) or two or more The sum of a predetermined number (for example, the sum of number A (for example, 5) and number B (for example, 7) (in this case, 12)) may be used, and an error is notified in these cases.

領域内球数が第1の異常判定条件(例えば−19)を下回る場合とは、投入される機内球710は無いが排出される機内球710が増加している状態であり、例えば前面枠扉106が開放されるなどして循環する機内球710が追加(入賞口等へ入球)される不正などが疑われる場合である。   The case where the number of balls in the area falls below the first abnormality determination condition (for example, −19) is a state in which there are no in-flight balls 710 to be thrown in but there are more in-flight balls 710 to be discharged. This is a case in which it is suspected that an in-flight ball 710 that circulates due to, for example, 106 being opened is added (entering a winning opening or the like).

領域内球数が第2の異常判定条件(例えば19)を上回る場合とは、投入される機内球710が増加している状況でありながら排出される機内球710が無く、遊技領域124に許容範囲を超えた機内球710が存在している状態であり、例えば各入賞口等、打球方向変換部材236や、遊技釘238などで機内球710の詰まりが生じていることが疑われる場合である。   The case where the number of balls in the area exceeds the second abnormality determination condition (for example, 19) means that the number of in-flight balls 710 to be thrown in is increasing, but there are no in-flight balls 710 to be discharged and the game area 124 is allowed. In-flight ball 710 that exceeds the range is present, and for example, it is suspected that clogging of in-flight ball 710 has occurred at each of the winning holes or the like, such as a hitting direction changing member 236, or a game nail 238. .

また上記の例において、不正行為以外で第1の異常状態となるのは、以下の原因があげられる。例えば、入賞検出センサ604Sおよび非入賞検出センサ604Kのうち少なくとも一方が、チャタリング等により1個の機内球710の通過を2個の通過と検出した場合である。あるいは、減算センサ604Sが、機内球710の通過の検出に失敗した場合である。あるいは、遊技領域124に機内球710が存在する状態で、電源が投入された場合である。一方、不正行為以外で第2の異常状態となるのは、以下の原因があげられる。例えば、減算センサ604Zが、チャタリング等により1個の機内球710の通過を2個の通過と検出した場合である。あるいは、入賞検出センサ604Sおよび非入賞検出センサ604Kのうち少なくとも一方が、機内球710の通過の検出に失敗した場合である。これらの場合(不正以外の異常)であっても、球数制御部800は異常としてエラーを報知する。   Further, in the above example, the first abnormal state other than fraudulent behavior is caused by the following causes. For example, this is a case where at least one of the winning detection sensor 604S and the non-winning detection sensor 604K detects passing of one in-flight ball 710 as two passing by chattering or the like. Alternatively, the subtraction sensor 604S fails to detect the passage of the in-flight ball 710. Alternatively, this is a case where the power is turned on while the in-flight ball 710 exists in the game area 124. On the other hand, the following causes are caused for the second abnormal state other than the illegal act. For example, the subtraction sensor 604Z detects the passage of one in-flight ball 710 as two passages by chattering or the like. Alternatively, at least one of the winning detection sensor 604S and the non-winning detection sensor 604K fails to detect the passage of the in-flight ball 710. Even in these cases (abnormalities other than fraud), the ball number control unit 800 reports an error as an abnormality.

排出球の数を検出する場合、入賞検出センサ604Sおよび非入賞検出センサ604Kに変えて、例えば、遊技媒体内部経路700Jに一つの排出検出センサを設け、ここを通過した場合に1球の排出があったと判定する構成であってもよい。また、投入球の検出は、減算センサ604Sに限らず、遊技媒体経路610のセンサ(例えば、球磨き装置612の球磨き装置入口センサ、揚上装置614の揚上装置入口センサ、球送り装置616の球送り装置入口センサ等であってもよい。なお異常判定条件の数値は一例であり、上記の値に限らない。   In the case of detecting the number of discharged balls, instead of the winning detection sensor 604S and the non-winning detection sensor 604K, for example, one discharging detection sensor is provided in the game medium internal path 700J, and when passing through this, one ball is discharged. The structure which determines with having existed may be sufficient. Further, the detection of the thrown ball is not limited to the subtraction sensor 604S, but a sensor of the game medium path 610 (for example, a ball polishing device inlet sensor of the ball polishing device 612, a lifting device inlet sensor of the lifting device 614, a ball feeding device 616). The numerical value of the abnormality determination condition is an example, and is not limited to the above value.

尚、球数制御部600は、入賞検出センサ604Sまたは非入賞検出センサ604Kの検出結果と、主制御部300から送信される入賞判定の結果(賞球コマンド)を比較してイン球およびアウト球を監視してもよい。これにより、遊技領域124への機内球710の投入数および排出数の異常だけでなく、入賞している場合に入賞検出センサ604Sを通過しているか(非入賞の場合に、非入賞検出センサ604Kを通過しているか)を判定することも可能となる。   The number-of-balls control unit 600 compares the detection result of the winning detection sensor 604S or the non-winning detection sensor 604K with the result of winning determination (prize ball command) transmitted from the main control unit 300, and the in ball and the out ball May be monitored. As a result, not only the abnormality of the number of in-flight balls 710 inserted into the game area 124 and the number of discharges, but also whether or not the player has passed the winning detection sensor 604S when winning (if not winning, the non-winning detection sensor 604K). It is also possible to determine whether or not

さらに、球数制御部600は、各種センサ604に含まれる適正量センサ、満タンセンサなどによって、循環に必要な機内球710の数を管理し、過不足時にはエラーとして報知する構成としてもよい。
<<賞球制御>>
Further, the ball number control unit 600 may be configured to manage the number of in-flight balls 710 necessary for circulation by an appropriate amount sensor, a full tank sensor, or the like included in the various sensors 604, and notify an error when excessive or insufficient.
<< Prize ball control >>

パチンコ機100は、主制御部300の球検出センサ320Bによって各入賞口等への入賞判定と入賞の場合の賞球数を決定し、球数制御部600の球検出センサ604Bでは遊技領域124への機内球710の投入(発射)および排出の判定を行う。なお、以下の賞球制御に関する説明では、遊技領域124に1つの機内球710が投入されること、すなわち機内球710の通過が減算センサ604Zで検出され、遊技球数記憶領域に記憶されている遊技球数から「1」が減算されていることを前提とする。   The pachinko machine 100 determines the winning determination for each winning opening and the like by the ball detection sensor 320B of the main control unit 300 and the number of winning balls in the case of winning, and the ball detection sensor 604B of the ball number control unit 600 goes to the game area 124. Judgment (discharge) and discharge of the in-flight ball 710 is performed. In the following description of the prize ball control, the fact that one in-flight ball 710 is thrown into the game area 124, that is, the passage of the in-flight ball 710 is detected by the subtraction sensor 604Z and stored in the game ball number storage area. It is assumed that “1” is subtracted from the number of game balls.

球数制御部600では、機内球710が遊技領域124から排出されたことを入賞検出センサ604Sで検出した場合、遊技球1個の消費により入賞があったとして賞球の付与を行う。すなわちこの場合には、主制御部300が送信する賞球数情報(賞球コマンド)に基づき、当該賞球コマンドに含まれる賞球数を遊技球数に加算する。   In the ball number control unit 600, when the winning detection sensor 604S detects that the in-flight ball 710 is discharged from the gaming area 124, the winning ball is awarded based on the consumption of one gaming ball. That is, in this case, the number of prize balls included in the prize ball command is added to the number of game balls based on the prize ball number information (prize ball command) transmitted by the main control unit 300.

主制御部300が送信する賞球コマンドは、球数制御部600における入賞検出センサ604Sの検出以前に、球数制御部600に送信されているものであってもよいし、球数制御部600における入賞検出センサ604Sの検出後に送信されるものであってもよい。例えば、後者の場合は、球数制御部600において入賞検出センサ604Sで機内球710の通過が検出されたことを契機として、球数制御部600から主制御部300に対して賞球数情報(賞球コマンド)を要求する信号を送信する構成とすることができる。また球数制御部600は、主制御部300から賞球コマンドを受信した場合には、賞球数加算後の遊技球数を球数表示部640に表示する。   The winning ball command transmitted by the main control unit 300 may be transmitted to the ball number control unit 600 before the detection of the winning detection sensor 604S in the ball number control unit 600, or the ball number control unit 600. May be transmitted after detection of the winning detection sensor 604S. For example, in the latter case, the ball number control unit 600 informs the main control unit 300 of the winning ball number information (when the pass detection of the in-flight ball 710 is detected by the winning detection sensor 604S in the ball number control unit 600) A signal for requesting a prize ball command) can be transmitted. In addition, when receiving a prize ball command from the main control unit 300, the ball number control unit 600 displays the number of game balls after the addition of the prize ball number on the ball number display unit 640.

一方、各入賞口等に機内球710が入賞しなかった場合(非入賞検出センサ604Kで機内球710の通過が検出された場合)は、遊技球数の1個の消費と判定し、遊技球数を維持する(賞球数の加算は行わない)。   On the other hand, if the in-game ball 710 has not won a prize (such as when the non-winning detection sensor 604K detects the passage of the in-vehicle ball 710), it is determined that one game ball is consumed, and the game ball Keep the number (no prize balls are added).

球数制御部600は、例えば、主制御部300または球数制御部600の定期的な割込み処理において入賞による賞球がある場合は、遊技球数に賞球数を加算し、遊技球数を更新する。   For example, when there is a winning ball due to winning in the periodic interrupt processing of the main control unit 300 or the ball number control unit 600, the ball number control unit 600 adds the number of winning balls to the number of gaming balls and determines the number of gaming balls. Update.

球数制御部600は、主制御部300での入賞判定の結果と、球数制御部600での球検出センサ604Bの結果が不一致の場合、入賞数異常のエラーを報知する。入賞数異常になるのは、例えば、所定期間において、主制御部300で判定された入賞の数と、入賞検出センサ604Sで通過が検出された数が異なる場合、などである。   When the result of the winning determination in the main control unit 300 and the result of the ball detection sensor 604B in the ball number control unit 600 do not match, the ball number control unit 600 reports an error in the number of winnings. The number of winnings becomes abnormal when, for example, the number of winnings determined by the main control unit 300 is different from the number of passing detected by the winning detection sensor 604S in a predetermined period.

球数制御部600ではこのほかにも、機内球710のエラーとしては例えば、遊技球数が異常な値となる(想定した範囲を超える数量となる)遊技球数オーバーフローエラー、減算センサ604Zが球詰まりを検出している場合の減算センサエラー、入賞検出センサ604Sまたは非入賞検出センサ604Kが球詰まりを検出している場合の入賞センサエラーなどを検出し、報知する。
<<球貸制御>>
In addition to the above, in the ball number control unit 600, as an error of the in-flight ball 710, for example, the number of game balls becomes an abnormal value (a number exceeding the assumed range), and the subtraction sensor 604Z has a ball A subtraction sensor error when clogging is detected, a winning sensor error when the winning detection sensor 604S or the non-winning detection sensor 604K detects a ball clogging, and the like are detected and notified.
<< ball rental control >>

ICカードが管理装置620のカード差込口626に挿入されると、管理装置620は、ICカード内に記憶された残高に基づき貸出可能な遊技球数の情報(球数更新指令)を球数UI部680に送信する。球数UI部680が球貸ボタン140を光らせる等し、これに基づき入力操作部654の球貸ボタン140が遊技者によりタッチされると、球数UI部680から球貸操作情報が管理装置620に送信される。球貸操作情報に基づいて管理装置620から送信される貸球数の個数情報(球貸要求情報)を受信した球数制御部600は、その貸球数を遊技球数に加算する。遊技球数は例えば、以下のようにして更新される。球数制御部600は、球貸ボタン140の操作を検知した場合、貸球数をRAMに設けた貸球数記憶領域に記憶(複数回の操作がある場合は、累積加算)する。主制御部300または球数制御部600の定期的な割込み処理において、球数制御部600は、貸球数記憶領域に記憶された貸球数を遊技球数に加算し、遊技球数を更新する。   When the IC card is inserted into the card slot 626 of the management device 620, the management device 620 provides information on the number of game balls that can be lent (ball count update command) based on the balance stored in the IC card. Transmit to the UI unit 680. When the ball number UI unit 680 illuminates the ball lending button 140 and the ball lending button 140 of the input operation unit 654 is touched by the player based on this, the ball lending operation information is received from the ball number UI unit 680 by the management device 620. Sent to. The ball number control unit 600 that has received the number information (ball lending request information) of the number of balls lent transmitted from the management device 620 based on the ball lending operation information adds the number of balls lent to the number of game balls. The number of game balls is updated as follows, for example. When the operation of the ball lending button 140 is detected, the ball number control unit 600 stores the number of balls lending in a lending number storage area provided in the RAM (when there are multiple operations, cumulative addition). In the periodic interruption process of the main control unit 300 or the ball number control unit 600, the ball number control unit 600 adds the number of lent balls stored in the lent number storage area to the number of game balls, and updates the number of game balls. To do.

球数制御部600は、更新された遊技球数を球数表示部640に表示する。また貸球により変更された残高の情報を管理装置620から受信し、画像表示部656に表示する。更に、管理装置620にICカードを挿入中以外に、貸球数の加算要求を受信した場合には、不正加算エラーとして検出する。
<<再プレイ制御>>
The ball number control unit 600 displays the updated number of game balls on the ball number display unit 640. In addition, the balance information changed by the rental ball is received from the management device 620 and displayed on the image display unit 656. Furthermore, when an addition request for the number of rented balls is received other than when an IC card is being inserted into the management device 620, an illegal addition error is detected.
<< Replay control >>

ICカードが管理装置620のカード差込口626に挿入されると、管理装置620は、ICカード内に記憶された貯球の情報(球数更新指令)を球数UI部680に送信する。球数更新指令には例えば、所定量の貯球があることによる再プレイ許可の情報が含まれ、これを受信した球数UI部680は再プレイボタン146を例えば、明るく表示する。これに基づき、入力操作部654の再プレイボタン146が遊技者によりタッチされると、球数UI部680から再プレイ操作情報が管理装置620に送信される。再プレイ操作情報に基づいて管理装置620から送信される再プレイ球数の個数情報を受信した球数制御部600は、その再プレイ球数を遊技球数に加算する。遊技球数は例えば、以下のようにして更新される。球数制御部600は、再プレイボタン146の操作を検知した場合、再プレイ球数をRAMに設けた再プレイ球数記憶領域に記憶(複数回の操作がある場合は、累積加算)する。主制御部300または球数制御部600の定期的な割込み処理において、球数制御部600は、再プレイ球数記憶領域に記憶された再プレイ球数を遊技球数に加算し、遊技球数を更新する。   When the IC card is inserted into the card insertion slot 626 of the management device 620, the management device 620 transmits the stored ball information (ball number update command) stored in the IC card to the ball number UI unit 680. The ball number update command includes, for example, information on permission to replay due to the presence of a predetermined amount of balls, and the ball number UI unit 680 that has received the replay button 146 displays the replay button 146 brightly, for example. Based on this, when the replay button 146 of the input operation unit 654 is touched by the player, the replay operation information is transmitted from the ball number UI unit 680 to the management device 620. Upon receiving the replay ball number information transmitted from the management device 620 based on the replay operation information, the ball number control unit 600 adds the replay ball number to the game ball number. The number of game balls is updated as follows, for example. When the operation of the replay button 146 is detected, the ball number control unit 600 stores the replay ball number in a replay ball number storage area provided in the RAM (when there are multiple operations, cumulative addition is performed). In the periodic interrupt process of the main control unit 300 or the ball number control unit 600, the ball number control unit 600 adds the replay ball number stored in the replay ball number storage area to the game ball number, Update.

球数制御部600は、更新された遊技球数を球数表示部640に表示する。また再プレイ操作により変更された貯球の情報を管理装置620から受信し、画像表示部656に表示する。更に、管理装置620にICカードを挿入中以外に、再プレイ球数の加算要求を受信した場合には、不正加算エラーとして検出する。
<<計数制御>>
The ball number control unit 600 displays the updated number of game balls on the ball number display unit 640. In addition, the storage information changed by the replay operation is received from the management device 620 and displayed on the image display unit 656. Further, when an addition request for the number of replay balls is received other than when an IC card is being inserted into the management device 620, an illegal addition error is detected.
<< Counting control >>

球数制御部600は、計数ボタン652が押下された場合はこれを検出し、1回の計数ボタン652押下に対応した所定の計数球数を遊技球数記憶領域の遊技球数から減算する。遊技球数は例えば、以下のようにして更新される。球数制御部600は、計数ボタン652の操作を検出した場合、計数球数をRAMに設けた計数球数記憶領域に記憶(複数回の操作がある場合は、累積加算)する。主制御部300または球数制御部600の定期的な割込み処理において、球数制御部600は、計数球数記憶領域に記憶された計数球数を遊技球数から減算し、遊技球数を更新する。また球数制御部600は、管理装置620へ計数情報を送信する。管理装置620は受信した計数情報に基づき、貯球数をICカードに記憶する。また、球数制御部600は、減算後の遊技球数を球数表示部640に表示する。   When the count button 652 is pressed, the ball number control unit 600 detects this, and subtracts a predetermined count ball number corresponding to one count button 652 press from the game ball number storage area. The number of game balls is updated as follows, for example. When the operation of the count button 652 is detected, the ball count control unit 600 stores the count ball count in a count ball count storage area provided in the RAM (when there are multiple operations, cumulative addition is performed). In the periodic interrupt process of the main control unit 300 or the ball number control unit 600, the ball number control unit 600 subtracts the count ball number stored in the count ball number storage area from the game ball number and updates the game ball number. To do. In addition, the ball number control unit 600 transmits count information to the management device 620. The management device 620 stores the number of stored balls in the IC card based on the received count information. In addition, the ball number control unit 600 displays the number of game balls after subtraction on the ball number display unit 640.

球数制御部600は、計数ボタン652の操作状況として、計数ボタン652の押下開始および押下終了を管理装置620に通知する。また球数制御部600は、計数ボタン652の操作状況として、押下時間(押下開始から押下終了までの時間)に応じて、複数種類の押下情報を管理装置620に通知する。複数種類の押下情報とは、例えば、計数ボタン652の1回の押下に対応する計数球数が、例えば10個等と定められている場合、押下回数が2回の場合は20個、3回の場合は30個・・・の遊技球を計数球数として管理装置620に送信することをいう。あるいはまた、押下時間が所定時間内の場合は10個の計数球数とし、所定時間以上の場合は、20個、あるいは全数を計数球数として管理装置620に送信することをいう。
<<返却制御>>
The ball number control unit 600 notifies the management device 620 of the start and end of pressing of the count button 652 as the operation status of the count button 652. In addition, the ball number control unit 600 notifies the management device 620 of a plurality of types of pressing information according to the pressing time (the time from the pressing start to the pressing end) as the operation state of the counting button 652. For example, when the number of counting balls corresponding to one pressing of the counting button 652 is determined to be 10 or the like, for example, 20 or 3 times when the number of pressing times is 2 In this case, 30 game balls are transmitted to the management device 620 as the number of counted balls. Alternatively, when the pressing time is within a predetermined time, the number of counting balls is 10, and when the pressing time is longer than the predetermined time, 20 or the total number is transmitted to the management device 620 as the counting ball number.
<< Return control >>

ICカードが管理装置620のカード差込口626に挿入されていた場合に、入力操作部654の返却ボタン142が遊技者によりタッチされると、球数UI部680からその情報(返却操作情報)が管理装置620に送信される。これを受信した管理装置620は遊技球数の報知を要求する球数要求情報(または遊技の終了を要求する遊技終了要求情報、以下同様)を球数制御部600に送信する。球数制御部600はこれにより、返却ボタン142のタッチがあったこと検知する。球数制御部600は、遊技球数記憶領域に記憶された遊技球数を含む遊技球数情報を管理装置620に送信する。遊技球数情報を受信した管理装置620は、貯球数等をICカードに記憶しこれを返却する。返却ボタン142の操作後所定期間内に、計数ボタン652が押下された場合は、球数制御部600は、全ての遊技球数を計数球数として(計数球数情報を、または計数球数および貯球数を含む遊技数情報を)管理装置620に送信する。この場合、管理装置620は貯球数等をICカードに記憶する。また、球数制御部600は、ICカード内の残高の情報および貯球数等の情報を受信し、画像表示部640に表示する。
<<遊技媒体経路の制御>>
When an IC card is inserted into the card slot 626 of the management device 620, when the return button 142 of the input operation unit 654 is touched by the player, the information (return operation information) from the ball UI unit 680 Is transmitted to the management device 620. Receiving this, the management device 620 transmits ball number request information for requesting notification of the number of game balls (or game end request information for requesting the end of the game, the same applies hereinafter) to the ball number control unit 600. Thereby, the ball number control unit 600 detects that the return button 142 is touched. The ball number control unit 600 transmits game ball number information including the number of game balls stored in the game ball number storage area to the management device 620. The management device 620 that has received the game ball number information stores the number of balls stored in the IC card and returns it. When the count button 652 is pressed within a predetermined period after the return button 142 is operated, the ball number control unit 600 sets all the game ball numbers as the count ball number (the count ball number information or the count ball number and The game number information including the number of stored balls) is transmitted to the management device 620. In this case, the management device 620 stores the number of balls stored in the IC card. In addition, the ball number control unit 600 receives information such as the balance information in the IC card and the number of balls stored, and displays the information on the image display unit 640.
<< Control of game media path >>

球数制御部600は、遊技媒体経路610(球磨き装置612、揚上装置614、球送り装置616)および発射装置622の制御を行う。   The ball number control unit 600 controls the game medium path 610 (the ball polishing device 612, the lifting device 614, the ball feeding device 616) and the launching device 622.

球数制御部600は、例えば、パチンコ機100の背面に設けられた研磨中継基板(不図示)と接続された球磨きモータを制御し、球磨きモータセンサを検知する。球磨き装置612の筐体(カセット)の球入口から機内球710が進入すると、研磨き装置入口センサにより機内球710を検知し、球磨きモータを駆動する。球磨きモータはギアを介してスクリューと接続し、スクリューの回転に伴い、機内球710を搬送する。またカセットには研磨布が封入されており、カセットモータを駆動することで研磨布を循環させる。機内球710はスクリューにて搬送されながら研磨布に擦られ、研磨される。球磨きモータセンサは、球磨きモータの駆動を検知する。またカセットセンサを有し、カセットの取り付けの有無を検出する。   The ball number control unit 600 controls, for example, a ball polishing motor connected to a polishing relay board (not shown) provided on the back surface of the pachinko machine 100 and detects a ball polishing motor sensor. When the in-machine ball 710 enters from the ball inlet of the housing (cassette) of the ball polishing device 612, the in-vehicle ball 710 is detected by the polishing device inlet sensor, and the ball polishing motor is driven. The ball polishing motor is connected to a screw through a gear, and conveys the in-machine ball 710 as the screw rotates. A polishing cloth is enclosed in the cassette, and the polishing cloth is circulated by driving the cassette motor. The in-machine ball 710 is rubbed and polished by the polishing cloth while being conveyed by a screw. The ball polishing motor sensor detects the driving of the ball polishing motor. A cassette sensor is provided to detect whether a cassette is attached.

また球数制御部600は、例えば、パチンコ機100の背面に設けられた揚上中継基板(不図示)と接続された揚上モータを制御し、揚上モータセンサ、および揚上装置入口センサを検知する。球入口から機内球710が進入すると、揚上装置入口センサによってこれを検知し、揚上モータを駆動する。揚上モータが駆動すると、ギアを介してスクリューが回転し、これにより機内球710が搬送され、排出口から球送り装置616に受け渡される。   The ball number control unit 600 controls, for example, a lifting motor connected to a lifting relay board (not shown) provided on the back surface of the pachinko machine 100, and includes a lifting motor sensor and a lifting device inlet sensor. Detect. When the in-flight ball 710 enters from the ball entrance, this is detected by the lift device entrance sensor, and the lift motor is driven. When the lifting motor is driven, the screw rotates through the gear, whereby the in-machine ball 710 is transported and delivered to the ball feeding device 616 from the discharge port.

また球数制御部600は、機内球710の発射を制御する。例えば球発射ハンドル134にはいずれも不図示のタッチセンサ、発射停止スイッチ、発射強度センサなどが設けられている。球数制御部600は、タッチセンサにより、遊技者が球発射ハンドル134に接触しているか否かの検出を行う。タッチ状態を非検出の場合、発射停止スイッチ(不図示)が押下されている場合(押下を発射停止センサで検知している場合)、球発射ハンドル134が一定角以上回転されていない場合、管理装置620が未接続の場合などには、発射を停止する。球数制御部600は、発射強度センサにて発射強度(球発射ハンドル134の操作量)を検出する。球数制御部600はタッチセンサおよび発射強度センサを検出すると、球送り装置(球送りソレノイド)616を駆動させ、機内球710を1球発射レール624に送り出す。球数制御部600が発射ソレノイドを駆動すると、発射杵622aは吸引されて回動し、その先端で機内球710を打突する。球数制御部600は、球発射ハンドル134の発射強度の値によって、発射ソレノイドの吸引力を変化させて発射の強弱を制御する。球数制御部600は、発射レール624から機内球710が発射したことを減算センサ604Zで検出し、遊技球数記憶領域の遊技球数を1個減算し、新たな遊技球数として記憶する。   The ball number control unit 600 controls the launch of the in-flight ball 710. For example, the ball launch handle 134 is provided with a touch sensor, a launch stop switch, a launch intensity sensor, etc. (not shown). The ball number control unit 600 detects whether or not the player is in contact with the ball launching handle 134 using a touch sensor. When the touch state is not detected, the launch stop switch (not shown) is pressed (when the press is detected by the launch stop sensor), the ball launch handle 134 is not rotated more than a certain angle, When the device 620 is not connected, the launch is stopped. The ball number control unit 600 detects the firing strength (the amount of operation of the ball launching handle 134) with a firing strength sensor. When detecting the touch sensor and the firing intensity sensor, the ball number control unit 600 drives the ball feeding device (ball feeding solenoid) 616 to send out the in-flight ball 710 to the one-ball firing rail 624. When the ball number controller 600 drives the firing solenoid, the launching rod 622a is sucked and rotated, and hits the in-flight ball 710 at its tip. The ball number control unit 600 controls the strength of the firing by changing the suction force of the firing solenoid according to the value of the firing strength of the ball firing handle 134. The ball number control unit 600 detects that the in-flight ball 710 has fired from the launch rail 624 by the subtraction sensor 604Z, subtracts one game ball number from the game ball number storage area, and stores it as a new game ball number.

このように、球数制御部600に接続する各種センサ604には、上述の球磨きモータセンサ、球磨き装置入口センサ、カセットセンサ、布送りモータセンサ、揚上モータセンサ、揚上装置入口センサ、球送り装置入口センサ、球発射ハンドル134の操作結果に関する情報(発射強度センサ、タッチセンサ、発射停止センサ)、や、減算センサ604Z、入賞検出センサ604Sおよび非入賞検出センサ604K、球数UI部680の計数ボタン652、適正量センサ、満タンセンサなどが含まれる。   As described above, the various sensors 604 connected to the ball number control unit 600 include the above-described ball polishing motor sensor, ball polishing device inlet sensor, cassette sensor, cloth feed motor sensor, lifting motor sensor, lifting device inlet sensor, Information related to the operation result of the ball feeding device entrance sensor and the ball launching handle 134 (launching intensity sensor, touch sensor, firing stop sensor), subtraction sensor 604Z, winning detection sensor 604S and non-winning detection sensor 604K, ball number UI unit 680 A counting button 652, an appropriate amount sensor, a full sensor, and the like.

球数制御部600は、上記の他、主制御部300との通信エラーや、遊技媒体経路610の各センサのエラー等も検出し、基板表示部630に報知する。基板表示部630は、遊技盤200背面側の球数制御基板の一部に設けられたLED等により構成され、LEDを所定のパターンで点灯、点滅等することにより、店員に各種エラーを報知する。   In addition to the above, the ball number control unit 600 detects a communication error with the main control unit 300, an error of each sensor in the game medium path 610, and the like, and notifies the board display unit 630 of the error. The board display unit 630 is composed of LEDs or the like provided on a part of the ball number control board on the back side of the game board 200, and notifies the store clerk of various errors by lighting or blinking the LEDs in a predetermined pattern. .

なお、球数UI部680に関する入出力信号は、球数制御部600を介してインターフェース部606に入出力され、情報入力回路350に入出力されるようにしてもよい。なお、管理装置620と情報入力回路350は、双方向通信ではなく、管理装置620から情報入力回路350への一方向通信としてもよい。   The input / output signals related to the ball number UI unit 680 may be input / output to / from the interface unit 606 via the ball number control unit 600 and input / output to / from the information input circuit 350. Note that the management device 620 and the information input circuit 350 may be one-way communication from the management device 620 to the information input circuit 350 instead of bidirectional communication.

また、球数制御部600は、情報入力回路350に対して情報を直接出力せず、全て管理装置620を介して情報を出力するようにしてもよい。また球数制御部600は、夜間監視スイッチ692に接続する。夜間監視スイッチ692については後述する。
<制御部の変形例>
Further, the ball number control unit 600 may not output information directly to the information input circuit 350, but may output information via the management device 620. The ball number control unit 600 is connected to the night monitoring switch 692. The night monitoring switch 692 will be described later.
<Modification of control unit>

上記の制御部に加えて以下の制御部を備えてもよい。例えば、発射装置622を制御する発射制御部を備え、球数制御部600は発射制御部を介して発射装置622を制御するようにしてもよい。この場合、発射制御部は、発射ソレノイドや、発射用モータ等を駆動して発射装置622の制御を行う。   In addition to the above control unit, the following control unit may be provided. For example, a launch control unit that controls the launch device 622 may be provided, and the ball number control unit 600 may control the launch device 622 via the launch control unit. In this case, the launch control unit controls the launch device 622 by driving a launch solenoid, a launch motor, and the like.

また、遊技媒体経路610の少なくとも一部を構成する装置(遊技媒体経路ユニット)を制御する遊技媒体経路制御部を備え、球数制御部600は、遊技媒体経路制御部を介して、遊技媒体経路ユニットを構成する装置を制御してもよい。この場合の遊技媒体経路ユニットとは、球磨き装置612、揚上装置614、球送り装置616および発射装置622のうちの一または複数または全部である。   In addition, a game medium path control unit that controls a device (game medium path unit) constituting at least a part of the game medium path 610 is provided, and the ball number control unit 600 receives the game medium path via the game medium path control unit. You may control the apparatus which comprises a unit. The game medium path unit in this case is one or more or all of the ball polishing device 612, the lifting device 614, the ball feeding device 616, and the launching device 622.

さらに、発射装置622は、発射ソレノイド、発射杵、減算センサ604S、球送りソレノイド、発射中継基板、発射強度センサ、発射停止スイッチ、タッチセンサ、などを含んで構成されてもよく、その場合、揚上装置614の球出口に発射装置622を接続し、球送り装置616を省略できる。
<電源制御部>
Further, the launch device 622 may include a launch solenoid, launch rod, subtraction sensor 604S, ball feed solenoid, launch relay board, launch intensity sensor, launch stop switch, touch sensor, and the like. The launching device 622 can be connected to the ball outlet of the upper device 614, and the ball feeding device 616 can be omitted.
<Power control unit>

電源制御部660は、パチンコ機100に外部から供給される交流電源を直流化し、所定の電圧に変換して主制御部300、第1副制御部400等の各制御部等の各装置に供給する。さらに、電源制御部660は、外部からの電源が断たれた後も所定の部品(例えば主制御部300のRAM308等)に所定の期間(例えば10日間)電源を供給するための蓄電回路(例えば、コンデンサ)を備えている。なお、本実施形態では、電源制御部660から球数制御部600と第1副制御部400に所定電圧を供給し、球数制御部600から主制御部300と夜間監視スイッチに所定電圧を供給し、第1副制御部400から第2副制御部500に所定電圧を供給しているが、各制御部や各装置に他の電源経路で所定電圧を供給してもよい。なお、電源制御部660については後に詳述する。
<主制御部メイン処理>
The power control unit 660 converts the AC power supplied from the outside to the pachinko machine 100 into a direct current, converts it into a predetermined voltage, and supplies it to each device such as each control unit such as the main control unit 300 and the first sub control unit 400. To do. Further, the power supply control unit 660 supplies a power storage circuit (for example, a power supply circuit) for supplying power to a predetermined part (for example, the RAM 308 of the main control unit 300) for a predetermined period (for example, 10 days) even after the external power supply is cut off. , Capacitor). In this embodiment, a predetermined voltage is supplied from the power supply control unit 660 to the ball number control unit 600 and the first sub-control unit 400, and a predetermined voltage is supplied from the ball number control unit 600 to the main control unit 300 and the night monitoring switch. Although the predetermined voltage is supplied from the first sub-control unit 400 to the second sub-control unit 500, the predetermined voltage may be supplied to each control unit and each device through another power supply path. The power supply control unit 660 will be described in detail later.
<Main control unit main processing>

次に、図12を用いて、主制御部300のCPU304が実行する主制御部メイン処理について説明する。なお、同図は主制御部メイン処理の流れを示すフローチャートである。   Next, main control unit main processing executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of main processing of the main control unit.

上述したように、主制御部300には、電源が投入されると起動信号(リセット信号)を出力する起動信号出力回路(リセット信号出力回路)340を設けている。この起動信号を入力した基本回路302のCPU304は、リセット割込によりリセットスタートしてROM306に予め記憶している制御プログラムに従って図12に示す主制御部メイン処理を実行する。   As described above, the main control unit 300 is provided with the start signal output circuit (reset signal output circuit) 340 that outputs the start signal (reset signal) when the power is turned on. The CPU 304 of the basic circuit 302 to which this activation signal has been input resets by a reset interrupt and executes the main process of the main control unit shown in FIG. 12 in accordance with a control program stored in the ROM 306 in advance.

ステップS101では、初期設定1を行う。この初期設定1では、CPU304のスタックポインタ(SP)へのスタック初期値の設定(仮設定)、割込マスクの設定、I/O310の初期設定、RAM308に記憶する各種変数の初期設定、WDT314への動作許可及び初期値の設定等を行う。なお、本実施形態では、WDT314に、初期値として32.8msに相当する数値を設定する。   In step S101, initial setting 1 is performed. In this initial setting 1, setting of a stack initial value (temporary setting) to the stack pointer (SP) of the CPU 304, setting of an interrupt mask, initial setting of the I / O 310, initial setting of various variables stored in the RAM 308, to the WDT 314 The operation is permitted and the initial value is set. In the present embodiment, a numerical value corresponding to 32.8 ms is set in WDT 314 as an initial value.

ステップS103では、WDT314のカウンタの値をクリアし、WDT314による時間計測を再始動する。   In step S103, the value of the counter of WDT 314 is cleared and time measurement by WDT 314 is restarted.

ステップS105では、低電圧信号がオンであるか否か、すなわち、電圧監視回路338が、電源制御部660から主制御部300に供給している電源の電圧値が所定の値(本実施形態では9v)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(CPU304が電源の遮断を検知した場合)にはステップS103に戻り、低電圧信号がオフの場合(CPU304が電源の遮断を検知していない場合)にはステップS107に進む。なお、電源が投入された直後で未だ上記所定の値(9V)に達しない場合にもステップS103に戻り、供給電圧がその所定の値以上になるまで、ステップS105は繰り返し実行される。   In step S105, whether or not the low voltage signal is on, that is, the voltage value of the power supply that the voltage monitoring circuit 338 supplies from the power supply control unit 660 to the main control unit 300 is a predetermined value (in this embodiment, 9v), it is monitored whether or not a low voltage signal indicating that the voltage has dropped is output. Then, when the low voltage signal is on (when the CPU 304 detects that the power supply is cut off), the process returns to step S103, and when the low voltage signal is off (when the CPU 304 does not detect that the power supply is cut off), the step is performed. The process proceeds to S107. Even when the predetermined value (9 V) is not yet reached immediately after the power is turned on, the process returns to step S103, and step S105 is repeatedly executed until the supply voltage becomes equal to or higher than the predetermined value.

ステップS107では、初期設定2を行う。この初期設定2では、後述する主制御部タイマ割込処理を定期毎に実行するための周期を決める数値をカウンタタイマ312に設定する処理、I/O310の所定のポート(例えば試験用出力ポート、第1副制御部400への出力ポート)からクリア信号を出力する処理、RAM308への書き込みを許可する設定等を行う。   In step S107, initial setting 2 is performed. In this initial setting 2, a process for setting a numerical value for determining a cycle for executing a main control unit timer interrupt process, which will be described later, in the counter timer 312 and a predetermined port of the I / O 310 (for example, a test output port, A process of outputting a clear signal from the output port to the first sub control unit 400, a setting for permitting writing to the RAM 308, and the like are performed.

ステップS109では、電源の遮断前(電断前)の状態に復帰するか否かの判定を行い、電断前の状態に復帰しない場合(主制御部300の基本回路302を初期状態にする場合)には初期化処理(ステップS113)に進む。   In step S109, it is determined whether or not to return to the state before power interruption (before power interruption), and the state before power interruption is not restored (when the basic circuit 302 of the main control unit 300 is set to the initial state). ) Proceeds to an initialization process (step S113).

具体的には、最初に、電源基板に設けたRWMクリアスイッチ180を遊技店の店員などが操作した場合に送信されるRAMクリア信号がオン(操作があったことを示す)であるか否か、すなわちRAMクリアが必要であるか否かを判定し、RAMクリア信号がオンの場合(RAMクリアが必要な場合)には、基本回路302を初期状態にすべくステップS113に進む。一方、RAMクリア信号がオフの場合(RAMクリアが必要でない場合)には、RAM308に設けた電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、この電源ステータスの情報がサスペンドを示す情報であるか否かを判定する。そして、電源ステータスの情報がサスペンドを示す情報でない場合には、基本回路302を初期状態にすべくステップS113に進み、電源ステータスの情報がサスペンドを示す情報である場合には、RAM308の所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出し、算出したチェックサムの結果が特定の値(例えば0)であるか否か(チェックサムの結果が正常であるか否か)を判定する。そして、チェックサムの結果が特定の値(例えば0)の場合(チェックサムの結果が正常である場合)には電断前の状態に復帰すべくステップS111に進み、チェックサムの結果が特定の値(例えば0)以外である場合(チェックサムの結果が異常である場合)には、パチンコ機100を初期状態にすべくステップS113に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS113に進む。   Specifically, first, a RAM clear signal transmitted when a store clerk or the like of an amusement store operates the RWM clear switch 180 provided on the power supply board is turned on (indicates that there has been an operation). That is, it is determined whether or not the RAM clear is necessary. If the RAM clear signal is on (when the RAM clear is necessary), the process proceeds to step S113 to set the basic circuit 302 to the initial state. On the other hand, when the RAM clear signal is OFF (when the RAM clear is not necessary), the power status information stored in the power status storage area provided in the RAM 308 is read, and the power status information is information indicating suspend. It is determined whether or not. If the power status information is not information indicating suspend, the process proceeds to step S113 to set the basic circuit 302 to an initial state. If the power status information is information indicating suspend, a predetermined area of the RAM 308 is set. A checksum is calculated by adding all the 1-byte data stored in (for example, all areas) to a 1-byte register whose initial value is 0, and the calculated checksum results in a specific value (for example, 0) (whether or not the checksum result is normal). When the checksum result is a specific value (eg, 0) (when the checksum result is normal), the process proceeds to step S111 to return to the state before the power interruption, and the checksum result is a specific value. If the value is other than 0 (for example, 0) (if the result of the checksum is abnormal), the process proceeds to step S113 to set the pachinko machine 100 to the initial state. Similarly, when the power status information indicates information other than “suspend”, the process proceeds to step S113.

ステップS111では、復電時処理を行う。この復電時処理では、電断時にRAM308に設けられたスタックポインタ退避領域に記憶しておいたスタックポインタの値を読み出し、スタックポインタに再設定(本設定)する。また、電断時にRAM308に設けられたレジスタ退避領域に記憶しておいた各レジスタの値を読み出し、各レジスタに再設定した後、割込許可の設定を行う。以降、CPU304が、再設定後のスタックポインタやレジスタに基づいて制御プログラムを実行する結果、パチンコ機100は電源断時の状態に復帰する。すなわち、電断直前にタイマ割込処理(後述)に分岐する直前に行った(ステップS115内の所定の)命令の次の命令から処理を再開する。また、図11に示す主制御部300における基本回路302に搭載されているRAM308には、送信情報記憶領域が設けられている。このステップS111では、その送信情報記憶領域に、復電コマンドをセットする。この復電コマンドは、電源断時の状態に復帰したことを表すコマンドであり、後述する、主制御部300のタイマ割込処理におけるステップS233において、第1副制御部400へ送信される。   In step S111, power recovery processing is performed. In this power recovery process, the value of the stack pointer stored in the stack pointer save area provided in the RAM 308 at the time of power failure is read out and reset to the stack pointer (this setting). In addition, the value of each register stored in the register save area provided in the RAM 308 at the time of power interruption is read out and reset in each register, and then the interrupt permission is set. Thereafter, as a result of the CPU 304 executing the control program based on the reset stack pointer and registers, the pachinko machine 100 returns to the state when the power is turned off. That is, the processing is resumed from the instruction next to the instruction (predetermined in step S115) performed immediately before branching to the timer interrupt process (described later) immediately before the power interruption. Further, a RAM 308 mounted on the basic circuit 302 in the main control unit 300 shown in FIG. 11 is provided with a transmission information storage area. In step S111, a power recovery command is set in the transmission information storage area. This power recovery command is a command indicating that the power has been restored to the state at the time of power-off, and is transmitted to the first sub-control unit 400 in step S233 in the timer interrupt process of the main control unit 300 described later.

ステップS113では、初期化処理を行う。この初期化処理では、割込禁止の設定、スタックポインタへのスタック初期値の設定(本設定)、RAM308の全ての記憶領域の初期化などを行う。さらにここで、主制御部300のRAM308に設けられた送信情報記憶領域に正常復帰コマンドをセットする。この正常復帰コマンドは、主制御部300の初期化処理(ステップS113)が行われたことを表すコマンドであり、復電コマンドと同じく、主制御部300のタイマ割込処理におけるステップS233において、第1副制御部400へ送信される。   In step S113, initialization processing is performed. In this initialization process, interrupt prohibition setting, stack initial value setting to the stack pointer (this setting), initialization of all storage areas of the RAM 308, and the like are performed. Further, here, a normal return command is set in the transmission information storage area provided in the RAM 308 of the main control unit 300. This normal return command is a command indicating that the initialization process (step S113) of the main control unit 300 has been performed, and in the same way as the power recovery command, in step S233 in the timer interrupt process of the main control unit 300, 1 is transmitted to the sub-control unit 400.

ステップS115では、割込禁止の設定を行った後、基本乱数初期値更新処理を行う。この基本乱数初期値更新処理では、普図当選乱数カウンタ、および特図乱数値カウンタの初期値をそれぞれ生成するための2つの初期値生成用乱数カウンタと、普図タイマ乱数値、および特図タイマ乱数値それぞれを生成するための2つの乱数カウンタを更新する。例えば、普図タイマ乱数値として取り得る数値範囲が0〜100とすると、RAM308に設けた普図タイマ乱数値を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が101であれば0を元の乱数カウンタ記憶領域に記憶する。他の初期値生成用乱数カウンタ、乱数カウンタもそれぞれ同様に更新する。なお、初期値生成用乱数カウンタは、後述するステップS207でも更新する。   In step S115, after setting for prohibition of interruption, a basic random number initial value update process is performed. In this basic random number initial value update process, two initial value generation random number counters for generating the initial values of the ordinary figure winning random number counter and the special figure random value counter, the ordinary figure timer random number value, and the special figure timer, respectively. Two random number counters for generating each random value are updated. For example, if the range of values that can be taken as a normal timer random number value is 0 to 100, a value is acquired from a random number counter storage area for generating a normal timer random value provided in the RAM 308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 101, 0 is stored in the original random number counter storage area. Other initial value generation random number counters and random number counters are similarly updated. Note that the initial value generation random number counter is also updated in step S207 described later.

ステップS117では、演出乱数更新処理を行う。この演出乱数更新処理では、主制御部300で使用する演出用乱数値を生成するための乱数カウンタを更新する。   In step S117, effect random number update processing is performed. In this effect random number update process, a random number counter for generating an effect random number used by the main control unit 300 is updated.

主制御部300は、所定の周期ごとに開始するタイマ割込処理を行っている間を除いて、ステップS115の処理を繰り返し実行する。   The main control unit 300 repeatedly executes the process of step S115 except during a timer interrupt process that starts every predetermined period.

<主制御部タイマ割込処理>
次に、図13を用いて、主制御部300のCPU304が実行する主制御部タイマ割込処理について説明する。なお、同図は主制御部タイマ割込処理の流れを示すフローチャートである。
<Main control unit timer interrupt processing>
Next, a main control unit timer interrupt process executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of the main control unit timer interrupt process.

主制御部300は、所定の周期(本実施形態では約4msに1回)でタイマ割込信号を発生するカウンタタイマ312を備えており、このタイマ割込信号を契機として主制御部タイマ割込処理を所定の周期で開始する。   The main control unit 300 includes a counter timer 312 that generates a timer interrupt signal at a predetermined cycle (in this embodiment, about once every 4 ms), and the main control unit timer interrupt is triggered by this timer interrupt signal. The process is started at a predetermined cycle.

ステップS201では、タイマ割込開始処理を行う。このタイマ割込開始処理では、CPU304の各レジスタの値をスタック領域に一時的に退避する処理などを行う。   In step S201, a timer interrupt start process is performed. In this timer interrupt start process, a process of temporarily saving each register value of the CPU 304 to the stack area is performed.

ステップS203では、WDT314のカウント値が初期設定値(本実施形態では32.8ms)を超えてWDT割込が発生しないように(処理の異常を検出しないように)、WDTを定期的に(本実施形態では、主制御部タイマ割込の周期である約4msに1回)リスタートを行う。   In step S203, the WDT is periodically updated (so that the count value of the WDT 314 exceeds the initial setting value (32.8 ms in the present embodiment) and no WDT interruption occurs (so as not to detect a processing abnormality). In the embodiment, the restart is performed once every about 4 ms, which is the period of the main control unit timer interrupt.

ステップS205では、入力ポート状態更新処理を行う。この入力ポート状態更新処理では、I/O310の入力ポートを介して、上述の各種の球検出センサを含む各種センサ320の検出信号を入力して検出信号の有無を監視し、RAM308に各種センサ320ごとに区画して設けた信号状態記憶領域に記憶する。球検出センサの検出信号を例にして説明すれば、前々回のタイマ割込処理(約8ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた前回検出信号記憶領域から読み出し、この情報をRAM308に各々の球検出センサごとに区画して設けた前々回検出信号記憶領域に記憶し、前回のタイマ割込処理(約4ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた今回検出信号記憶領域から読み出し、この情報を上述の前回検出信号記憶領域に記憶する。また、今回検出した各々の球検出センサの検出信号を、上述の今回検出信号記憶領域に記憶する。   In step S205, input port state update processing is performed. In this input port state update process, the detection signals of the various sensors 320 including the above-described various ball detection sensors are input via the input port of the I / O 310 to monitor the presence or absence of the detection signals, and the various sensors 320 are stored in the RAM 308. Each signal is stored in a signal state storage area provided separately. If the detection signal of the sphere detection sensor is described as an example, information on the presence / absence of the detection signal of each sphere detection sensor detected in the timer interruption process (about 8 ms before) is stored in the RAM 308 for each sphere detection sensor. This information is read out from the previous detection signal storage area partitioned and stored in the RAM 308 in the previous detection signal storage area partitioned for each sphere detection sensor, and the previous timer interrupt processing (about 4 ms before) ) Is read from the current detection signal storage area provided for each sphere detection sensor in the RAM 308, and this information is read out from the previous detection signal storage area described above. To remember. Further, the detection signal of each sphere detection sensor detected this time is stored in the above-described current detection signal storage area.

また、ステップS205では、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域の各記憶領域に記憶した各々の球検出センサの検出信号の有無の情報を比較し、各々の球検出センサにおける過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致するか否かを判定する。一個の機内球710が一つの球検出センサを通過する間に、約4msという非常に短い間隔で起動を繰り返すこの主制御部タイマ割込処理は何回か起動する。このため、主制御部タイマ割込処理が起動する度に、上述のステップS205では、同じ機内球710が同じ球検出センサを通過したことを表す検出信号を確認することになる。この結果、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域それぞれに、同じ機内球710が同じ球検出センサを通過したことを表す検出信号が記憶される。すなわち、機内球710が球検出センサを通過し始めたときには、前々回検出信号無し、前回検出信号有り、今回検出信号有りになる。本実施形態では、球検出センサの誤検出やノイズを考慮して、検出信号無しの後に検出信号が連続して2回記憶されている場合には、入賞があったと判定する。図11に示す主制御部300のROM306には、入賞判定パターン情報(本実施形態では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)が記憶されている。このステップS205では、各々の球検出センサ320B(一般入賞口用センサ320E、可変入賞口用センサ320G、第1特図始動口用センサ320J、第2特図始動口用センサ320H、普図始動口用センサ320T)において過去3回分の検出信号の有無の情報が、予め定めた入賞判定パターン情報(本実施形態では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)と一致した場合に、一般入賞口226、可変入賞口234、第1特図始動口230、および第2特図始動口232への入球、または普図始動口228の通過があったと判定する。すなわち、これらの入賞口226、234やこれらの始動口230、232、228への入賞があったと判定する。例えば、一般入賞口226への入球を検出する一般入賞口用センサ320Eにおいて過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致した場合には、一般入賞口226へ入賞があったと判定し、以降の一般入賞口226への入賞に伴う処理を行うが、過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致しなかった場合には、以降の一般入賞口226への入賞に伴う処理を行わずに後続の処理に分岐する。なお、主制御部300のROM306には、入賞判定クリアパターン情報(本実施形態では、前々回検出信号有り、前回検出信号無し、今回検出信号無しであることを示す情報)が記憶されている。入賞が一度あったと判定した後は、各々の球検出センサにおいて過去3回分の検出信号の有無の情報が、その入賞判定クリアパターン情報に一致するまで入賞があったとは判定せず、入賞判定クリアパターン情報に一致すれば、次からは上記入賞判定パターン情報に一致するか否かの判定を行う。なお、入賞判定パターン情報は、それぞれの入賞で同じである必要はなく、入賞判定の重要度に応じて異ならせてもよい。例えば、第1特図始動口230、および第2特図始動口232の入賞判定パターンは過去3回分の検出信号の有無の情報で構成するが、一般入賞口226の入賞判定パターンは過去2回分の検出信号の有無の情報で構成してもよい。   Further, in step S205, the information on the presence or absence of the detection signal of each sphere detection sensor stored in each storage area of the above-mentioned detection signal storage area, the previous detection signal storage area, and the current detection signal storage area is compared. It is determined whether or not the information on the presence or absence of detection signals for the past three times in the ball detection sensor matches the winning determination pattern information. While the in-flight ball 710 passes through one ball detection sensor, this main control unit timer interruption process that is repeatedly started at a very short interval of about 4 ms is started several times. For this reason, every time the main control unit timer interrupt process is activated, in step S205 described above, a detection signal indicating that the same in-flight ball 710 has passed the same ball detection sensor is confirmed. As a result, a detection signal indicating that the same in-flight ball 710 has passed the same ball detection sensor is stored in each of the detection signal storage area, the previous detection signal storage area, and the current detection signal storage area. That is, when the in-flight ball 710 starts passing through the ball detection sensor, there is no detection signal before, a previous detection signal, and a current detection signal. In the present embodiment, in consideration of erroneous detection of the sphere detection sensor and noise, it is determined that there is a prize when the detection signal is stored twice continuously after no detection signal. In the ROM 306 of the main control unit 300 shown in FIG. 11, winning determination pattern information (in this embodiment, information indicating that there is no previous detection signal, that there is a previous detection signal, and that there is a current detection signal) is stored. In this step S205, each ball detection sensor 320B (general winning opening sensor 320E, variable winning opening sensor 320G, first special figure starting opening sensor 320J, second special figure starting opening sensor 320H, general opening start opening) Information on the presence or absence of the detection signals for the past three times in the sensor 320T) is information indicating predetermined winning determination pattern information (in this embodiment, no detection signal before, presence of the previous detection signal, presence of the current detection signal). ), It is determined that there is a ball entering the general winning opening 226, the variable winning opening 234, the first special figure starting opening 230, and the second special figure starting opening 232, or the passing of the general drawing starting opening 228. To do. In other words, it is determined that a prize has been awarded to the winning ports 226 and 234 and the starting ports 230, 232, and 228. For example, when the information on the presence / absence of the detection signals for the past three matches with the above-described winning determination pattern information in the general winning opening sensor 320E that detects a winning at the general winning opening 226, the winning is made to the general winning opening 226. If the information on the presence / absence of detection signals for the past three times does not match the above-described winning determination pattern information, the subsequent processing is performed. The processing branches to the subsequent processing without performing the processing associated with winning a prize to the general winning opening 226. Note that the ROM 306 of the main control unit 300 stores winning determination clear pattern information (in this embodiment, information indicating that there is a detection signal before the previous time, no previous detection signal, and no current detection signal). After it is determined that there has been a single win, it is not determined that there has been a win until the information on the presence or absence of detection signals for the past three times matches the winning determination clear pattern information in each ball detection sensor, and the winning determination is cleared. If it matches the pattern information, it is next determined whether or not it matches the winning determination pattern information. Note that the winning determination pattern information does not have to be the same for each winning, and may differ depending on the importance of winning determination. For example, the winning determination pattern of the first special figure starting port 230 and the second special figure starting port 232 is configured by information on the presence or absence of detection signals for the past three times, but the winning determination pattern of the general winning port 226 is for the past two times. It may be configured by information on the presence or absence of the detection signal.

ステップS207およびステップS209では、基本乱数初期値更新処理および基本乱数更新処理を行う。これらの基本乱数初期値更新処理および基本乱数更新処理では、上記ステップS115で行った初期値生成用乱数カウンタの値の更新を行い、次に主制御部300で使用する、普図当選乱数値、特図1乱数値、および特図2乱数値をそれぞれ生成するための2つの乱数カウンタを更新する。例えば、普図当選乱数値として取り得る数値範囲が0〜100とすると、RAM308に設けた普図当選乱数値を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が101であれば0を元の乱数カウンタ記憶領域に記憶する。また、取得した値に1を加算した結果、乱数カウンタが一周していると判定した場合にはそれぞれの乱数カウンタに対応する初期値生成用乱数カウンタの値を取得し、乱数カウンタの記憶領域にセットする。例えば、0〜100の数値範囲で変動する普図当選乱数値生成用の乱数カウンタから値を取得し、取得した値に1を加算した結果が、RAM308に設けた所定の初期値記憶領域に記憶している前回設定した初期値と等しい値(例えば7)である場合に、普図当選乱数値生成用の乱数カウンタに対応する初期値生成用乱数カウンタから値を初期値として取得し、普図当選乱数値生成用の乱数カウンタにセットすると共に、普図当選乱数値生成用の乱数カウンタが次に1周したことを判定するために、今回設定した初期値を上述の初期値記憶領域に記憶しておく。また、普図当選乱数値生成用の乱数カウンタが次に1周したことを判定するための上述の初期値記憶領域とは別に、特図乱数生成用の乱数カウンタが1周したことを判定するための初期値記憶領域をRAM308に設けている。なお、本実施形態では特図1の乱数値を取得するためのカウンタと特図2の乱数値を取得するためのカウンタとを別に設けたが、同一のカウンタを用いてもよい。   In step S207 and step S209, basic random number initial value update processing and basic random number update processing are performed. In these basic random number initial value update processing and basic random number update processing, the value of the initial value generation random number counter performed in step S115 is updated, and then the normal winning random number value used in the main control unit 300, Two random number counters for generating the special figure 1 random value and the special figure 2 random value are updated. For example, if the range of values that can be taken as a random number value for a normal winning number is 0 to 100, a value is acquired from a random number counter storage area for generating a normal winning random number value provided in the RAM 308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 101, 0 is stored in the original random number counter storage area. If it is determined that the random number counter has made one round as a result of adding 1 to the acquired value, the value of the initial value generating random number counter corresponding to each random number counter is acquired and stored in the storage area of the random number counter. set. For example, a value is acquired from a random number counter for generating a regular winning random number that fluctuates in a numerical range of 0 to 100, and a result obtained by adding 1 to the acquired value is stored in a predetermined initial value storage area provided in the RAM 308. If the value is equal to the previously set initial value (for example, 7), the value is acquired as an initial value from the initial value generation random number counter corresponding to the random number counter for generating the random number for winning the normal number, The initial value set this time is stored in the above-described initial value storage area in order to determine that the random number counter for generating the winning random number value has made one round next time, in addition to setting it in the random number counter for generating the winning random value Keep it. Further, apart from the above-described initial value storage area for determining that the random number counter for generating the random number for winning the normal signal has made one round next, it is determined that the random number counter for generating the special figure random number has made one round. An initial value storage area is provided in the RAM 308. In the present embodiment, the counter for acquiring the random number value of FIG. 1 and the counter for acquiring the random value of FIG. 2 are separately provided, but the same counter may be used.

ステップS211では、演出乱数更新処理を行う。この演出乱数更新処理では、主制御部300で使用する演出用乱数値を生成するための乱数カウンタを更新する。   In step S211, effect random number update processing is performed. In this effect random number update process, a random number counter for generating an effect random number used by the main control unit 300 is updated.

ステップS213では、タイマ更新処理を行う。このタイマ更新処理では、普通図柄表示装置210に図柄を変動・停止表示する時間を計時するための普図表示図柄更新タイマ、第1特別図柄表示装置212に図柄を変動・停止表示する時間を計時するための特図1表示図柄更新タイマ、第2特図表示装置214に図柄を変動・停止表示する時間を計時するための特図2表示図柄更新タイマ、所定の入賞演出時間、所定の開放時間、所定の閉鎖時間、所定の終了演出期間などを計時するためのタイマなどを含む各種タイマを更新する。   In step S213, timer update processing is performed. In this timer update process, the normal symbol display symbol update timer for timing the time for the symbol to be changed / stopped on the normal symbol display device 210, and the time for the symbol to be changed / stopped to be displayed on the first special symbol display device 212 are timed. Special symbol 1 display symbol update timer for performing, special symbol 2 display symbol update timer for measuring the time for the symbol to be changed and stopped on the second special symbol display device 214, a predetermined winning effect time, a predetermined opening time Various timers including a timer for measuring a predetermined closing time, a predetermined end effect period, and the like are updated.

ステップS215では、入賞口カウンタ更新処理を行う。この入賞口カウンタ更新処理では、入賞口226、234や始動口230、232、228に入賞があった場合に、その回数を記録する。   In step S215, winning prize counter update processing is performed. In the winning opening counter updating process, when the winning openings 226, 234 and the starting openings 230, 232, 228 are won, the number of times is recorded.

ステップS216では、賞球数表示処理を行う。この賞球数表示処理では、主制御部300において、球数制御部600に送信前の賞球コマンドがある場合(ステップS219にて後述する)、その賞球コマンドで送信する予定の賞球数(複数ある場合はそれらの合計値)を賞球数表示部690に表示する(これについては後述する)。   In step S216, a prize ball number display process is performed. In this prize ball number display process, when there is a prize ball command before transmission in the ball number control part 600 in the main control part 300 (described later in step S219), the number of prize balls scheduled to be transmitted by the prize ball command. (If there is a plurality, the total value thereof) is displayed on the award ball number display section 690 (this will be described later).

また、ステップS217では、入賞受付処理を行う。この入賞受付処理では、第1特図始動口230、第2特図始動口232、普図始動口228および可変入賞口234への入賞があったか否かを判定する。ここでは、ステップS205における入賞判定パターン情報と一致するか否かの判定結果を用いて判定する。第1特図始動口230へ入賞があった場合且つRAM308に設けた対応する保留数記憶領域が満タンでない場合、乱数値生成回路318の、第1特図始動口230に対応した乱数値記憶用レジスタから値を取得し、加工した値(例えば、取得した値+Rレジスタの値+1)を特図1当選乱数値として取得するとともに特図1乱数値生成用の乱数カウンタから値を取得し、加工した値(例えば、取得した値+Rレジスタの値+1)を特図1乱数値として取得して対応する乱数値記憶領域に格納する。第2特図始動口232へ入賞があった場合且つRAM308に設けた対応する保留数記憶領域が満タンでない場合、乱数値生成回路318の、第1特図始動口230に対応した乱数値カウンタ値記憶用レジスタから値を取得し、加工した値(例えば、取得した値+Rレジスタの値+1)を特図2当選乱数値として取得するとともに特図2乱数値生成用の乱数カウンタから値を取得し、加工した値(例えば、取得した値+Rレジスタの値+1)を特図2乱数値として取得して対応する乱数値記憶領域に格納する。   In step S217, a winning acceptance process is performed. In this winning acceptance process, it is determined whether or not there has been a winning at the first special figure starting port 230, the second special figure starting port 232, the ordinary drawing starting port 228, and the variable winning port 234. Here, the determination is made using the determination result of whether or not it matches the winning determination pattern information in step S205. If there is a winning at the first special figure starting port 230 and the corresponding reserved number storage area provided in the RAM 308 is not full, the random number value storage circuit 318 stores the random value corresponding to the first special figure starting port 230. The value is acquired from the register for use, and the processed value (for example, the acquired value + the value of the R register + 1) is acquired as the special figure 1 winning random number value and the value is acquired from the random number counter for generating the special figure 1 random number value, The processed value (for example, acquired value + R register value + 1) is acquired as a special figure 1 random number value and stored in the corresponding random value storage area. When a winning is made to the second special figure starting port 232 and the corresponding reserved number storage area provided in the RAM 308 is not full, the random value counter corresponding to the first special figure starting port 230 of the random number generation circuit 318 The value is acquired from the value storage register, and the processed value (for example, the acquired value + the value of the R register + 1) is acquired as the special figure 2 winning random value and the value is acquired from the random number counter for generating the special figure 2 random value. Then, the processed value (for example, acquired value + R register value + 1) is acquired as a special figure 2 random value and stored in the corresponding random value storage area.

ステップS219では、賞球コマンド送信処理を行う。ステップS217で各入賞口等のいずれかに入賞があったと判定された場合、各入賞口等に対応する賞球を遊技者に付与するため、賞球数の情報を含む出力予定情報(例えば、賞球コマンド)を送信する。なお、球数制御部600に出力する出力予定情報は、例えば1バイトで構成しており、ビット7にストローブ情報(オンの場合、データをセットしていることを示す)、ビット6に電源投入情報(オンの場合、電源投入後一回目のコマンド送信であることを示す)、ビット4〜5に暗号化のための今回加工種別(0〜3)、およびビット0〜3に暗号化加工後の賞球数を示すようにしている。尚、データサイズはこれに限らず、例えば2バイトでもよい。また、シリアル通信の一例を後述する。   In step S219, a prize ball command transmission process is performed. If it is determined in step S217 that any of the winning mouths has been won, output schedule information including information on the number of winning balls (for example, information on the number of winning balls, for example) is given to the player. A prize ball command). Note that the output schedule information to be output to the ball number control unit 600 is composed of, for example, 1 byte, strobe information in bit 7 (indicating that data is set when on), and power on in bit 6 Information (if turned on, indicates that this is the first command transmission after power-on), bits 4-5 for the current processing type for encryption (0-3), and bits 0-3 for after encryption processing The number of winning balls is shown. The data size is not limited to this, and may be 2 bytes, for example. An example of serial communication will be described later.

後述するが主制御部300は、定期の割込み処理によって、球数制御部600に賞球コマンドを送信する。またその際、主制御部300と球数制御部600は、双方向の通信確認(通信確認の問い合わせと通信確認の返信)を行い、例えば、主制御部300の1回の割込み処理につき、1つの賞球コマンドが送信される。つまり、これらの期間に複数の入賞がある場合には、主制御部300に送信すべき複数の賞球数の情報が蓄積されることになる。   As will be described later, the main control unit 300 transmits a prize ball command to the ball number control unit 600 by periodic interrupt processing. At that time, the main control unit 300 and the ball number control unit 600 perform two-way communication confirmation (communication confirmation inquiry and communication confirmation reply). For example, for each interrupt processing of the main control unit 300, 1 Two prize ball commands are sent. That is, when there are a plurality of winnings during these periods, information on a plurality of winning balls to be transmitted to the main control unit 300 is accumulated.

ステップS220では、賞球数表示処理を行う。この賞球数表示処理は、ステップS216の処理と同様であるが、賞球表示部690に表示される内容が更新される場合がある。詳細は後述するが、例えば、ステップS216から本ステップまでの間に新たな入賞が無い場合には、ステップS219で少なくとも1つの賞球コマンド(賞球数)が送信されているので、本ステップで賞球数表示部690に表示される賞球数は、ステップS216で賞球数表示部690に表示される賞球数から、球数制御部600に送信された賞球コマンドの賞球数の分を減じた数値となる。これにより、遊技者に賞球の払い出しがあったことを報知できる場合がある。なお、賞球数表示処理は、例えば、ステップS216のみで行ってもよいし、本ステップのみで行ってもよい。   In step S220, prize ball number display processing is performed. This prize ball number display process is the same as the process of step S216, but the contents displayed on the prize ball display unit 690 may be updated. Although details will be described later, for example, when there is no new prize between step S216 and this step, at least one prize ball command (number of prize balls) is transmitted in step S219. The number of prize balls displayed on the prize ball number display unit 690 is the number of prize balls of the prize ball command transmitted to the ball number control unit 600 from the number of prize balls displayed on the prize ball number display unit 690 in step S216. The value is obtained by subtracting minutes. Thereby, it may be possible to notify the player that the prize ball has been paid out. The winning ball number display process may be performed only in step S216 or only in this step, for example.

ステップS221では、普図状態更新処理を行う。この普図状態更新処理は、普図の状態に対応する複数の処理のうちの1つの処理を行う。例えば、普図変動表示の途中(上述する普図表示図柄更新タイマの値が1以上)における普図状態更新処理では、普通図柄表示装置210を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。この制御を行うことで、普通図柄表示装置210は普図の変動表示(普図変動遊技)を行う。   In step S221, a normal state update process is performed. This normal state update process performs one of a plurality of processes corresponding to the normal state. For example, in the normal state update process in the middle of the normal symbol display (the above-described general symbol display symbol update timer value is 1 or more), the 7-segment LED constituting the normal symbol display device 210 is repeatedly turned on and off. Turns off drive control. By performing this control, the normal symbol display device 210 performs a usual fluctuation display (ordinary figure fluctuation game).

また、普図変動表示時間が経過したタイミング(普図表示図柄更新タイマの値が1から0になったタイミング)における普図状態更新処理では、当りフラグがオン(当たりを示す、例えば「1」のセットなど、以下同様)の場合には、当たり図柄の表示態様となるように普通図柄表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行い、当りフラグがオフの場合には、外れ図柄の表示態様となるように普通図柄表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行う。また、主制御部300のRAM308には、普図状態更新処理に限らず各種の処理において各種の設定を行う設定領域が用意されている。ここでは、上記点灯・消灯駆動制御を行うとともに、その設定領域に普図停止表示中であることを示す設定を行う。この制御を行うことで、普通図柄表示装置210は、当り図柄(図10(c)に示す普図A)および外れ図柄(図10(c)に示す普図B)いずれか一方の図柄の確定表示を行う。さらにその後、所定の停止表示期間(例えば500m秒間)、その表示を維持するためにRAM308に設けた普図停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により、確定表示された図柄が所定期間停止表示され、普図変動遊技の結果が遊技者に報知される。   In the normal state update process at the timing when the normal map change display time elapses (the timing when the value of the general map display symbol update timer is changed from 1 to 0), the hit flag is turned on (indicating a win, for example, “1”). If the winning flag is off, the 7-segment LED constituting the normal symbol display device 210 is controlled to be turned on / off so that the winning symbol display mode is set. The 7-segment LED constituting the normal symbol display device 210 is controlled to be turned on / off so that the display pattern of the off symbol is displayed. Further, the RAM 308 of the main control unit 300 is provided with a setting area for performing various settings in various processes, not limited to the normal state update process. Here, the above-described lighting / extinguishing drive control is performed, and the setting area is set to indicate that the normal stop display is being performed. By performing this control, the normal symbol display device 210 determines the symbol of either the winning symbol (the common symbol A shown in FIG. 10C) or the off symbol (the universal symbol B shown in FIG. 10C). Display. Thereafter, information indicating the stop period is set in a storage area of a normal stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 msec). With this setting, the symbol that has been confirmed and displayed is stopped and displayed for a predetermined period, and the player is notified of the result of the normal game.

また、普図変動遊技の結果が当りであれば、後述するように、普図当りフラグがオンされる。この普図当りフラグがオンの場合には、所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)における普図状態更新処理では、RAM308の設定領域に普図作動中を設定するとともに、所定の開放期間(例えば2秒間)、第2特図始動口232の羽根部材232aの開閉駆動用のソレノイド(332)に、羽根部材232aを開放状態に保持する信号を出力するとともに、RAM308に設けた羽根開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。   Further, if the result of the usual figure variable game is a hit, the usual figure hit flag is turned on as will be described later. When the usual figure hit flag is on, in the usual figure state update process at the timing when the predetermined stop display period ends (when the usual figure stop time management timer value changes from 1 to 0), The normal operation is set in the setting area, and the blade member 232a is opened to a solenoid (332) for opening and closing the blade member 232a of the second special figure starting port 232 for a predetermined opening period (for example, 2 seconds). And a signal indicating the open period is set in the storage area of the blade open time management timer provided in the RAM 308.

また、所定の開放期間が終了したタイミング(羽根開放時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、所定の閉鎖期間(例えば500m秒間)、羽根部材の開閉駆動用のソレノイド332に、羽根部材を閉鎖状態に保持する信号を出力するとともに、RAM308に設けた羽根閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。   In the usual state update process that starts at the timing when the predetermined opening period ends (the timing when the value of the blade opening time management timer is changed from 1 to 0), the blade member has a predetermined closing period (for example, 500 milliseconds). A signal for holding the blade member in the closed state is output to the opening / closing drive solenoid 332, and information indicating the closing period is set in the storage area of the blade closing time management timer provided in the RAM 308.

また、所定の閉鎖期間が終了したタイミング(羽根閉鎖時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、RAM308の設定領域に普図非作動中を設定する。さらに、普図変動遊技の結果が外れであれば、後述するように、普図外れフラグがオン(外れを示す、例えば「1」をセットなど、以下同様)される。この普図外れフラグがオンの場合には、上述した所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)における普図状態更新処理でも、RAM308の設定領域に普図非作動中を設定する。普図非作動中の場合における普図状態更新処理では、何もせずに次のステップS223に移行するようにしている。   Further, in the normal state update process that starts at the timing when the predetermined closing period ends (when the value of the blade closing time management timer is changed from 1 to 0), the non-operating state is set in the setting area of the RAM 308. To do. Further, if the result of the usual game is out of play, as will be described later, the out of figure flag is turned on (indicating out, for example, “1” is set, and so on). When the off-normal flag is on, the normal state update process at the timing when the predetermined stop display period described above ends (the timing at which the normal stop time management timer value changes from 1 to 0) In the setting area of the RAM 308, normal operation inactive is set. In the general state update process in the case where the general map is not operating, nothing is done and the process proceeds to the next step S223.

ステップS223では、普図関連抽選処理を行う。この普図関連抽選処理では、普図変動遊技および第2特図始動口232の開閉制御を行っておらず(普図の状態が非作動中)、且つ、保留している普図変動遊技の数が1以上である場合に、上述の乱数値記憶領域に記憶している普図当選乱数値に基づいた乱数抽選により普図変動遊技の結果を当選とするか、不当選とするかを決定する当り判定をおこない、当選とする場合にはRAM308に設けた当りフラグにオンを設定する。不当選の場合には、当りフラグにオフを設定する。また、当り判定の結果に関わらず、次に上述の普図タイマ乱数値生成用の乱数カウンタの値を普図タイマ乱数値として取得し、取得した普図タイマ乱数値に基づいて複数の変動時間のうちから普図表示装置210に普図を変動表示する時間を1つ選択し、この変動表示時間を、普図変動表示時間として、RAM308に設けた普図変動時間記憶領域に記憶する。なお、保留している普図変動遊技の数は、RAM308に設けた普図保留数記憶領域に記憶するようにしており、当り判定をするたびに、保留している普図変動遊技の数から1を減算した値を、この普図保留数記憶領域に記憶し直すようにしている。また当り判定に使用した乱数値を消去する。   In step S223, a general drawing related lottery process is performed. In this general map-related lottery process, the open / close control of the general map variable game and the second special map start port 232 is not performed (the state of the general map is not in operation), and the pending general map variable game is not held. When the number is 1 or more, it is decided whether to win or not to win the result of the variable figure game by random lottery based on the random number value stored in the random number value storage area. When the winning judgment is made and the winning is made, the winning flag provided in the RAM 308 is set to ON. If unsuccessful, turn off the winning flag. Regardless of the result of the hit determination, next, the value of the random number counter for generating the normal figure timer random value is acquired as the normal figure timer random number value, and a plurality of fluctuation times are obtained based on the acquired general figure timer random number value. One time is selected for variably displaying the normal map on the general map display device 210, and this variable display time is stored as a normal map variable display time in a general map variable time storage area provided in the RAM 308. In addition, the number of pending general figure variable games is stored in the usual figure pending number storage area provided in the RAM 308, and from the number of pending custom figure variable games each time a hit determination is made. The value obtained by subtracting 1 is re-stored in the usual figure number-of-holds storage area. Also, the random number value used for the hit determination is deleted.

次いで、ステップS225では、特図1および特図2それぞれについての特図状態更新処理を行うが、最初に、特図2についての特図状態更新処理(特図2状態更新処理)を行う。この特図2状態更新処理は、特図2の状態に応じて、次の8つの処理のうちの1つの処理を行う。例えば、特図2変動表示の途中(上述の特図2表示図柄更新タイマの値が1以上)における特図2状態更新処理では、第2特別図柄表示装置214を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。この制御を行うことで、第2特別図柄表示装置214は特図2の変動表示(特図2変動遊技)を行う。   Next, in step S225, the special figure state update process for each of the special figure 1 and the special figure 2 is performed. First, the special figure state update process (the special figure 2 state update process) for the special figure 2 is performed. In the special figure 2 state update process, one of the following eight processes is performed in accordance with the state of the special figure 2. For example, in the special figure 2 state update process in the middle of the special figure 2 fluctuation display (the value of the above-mentioned special figure 2 display symbol update timer is 1 or more), the 7-segment LED constituting the second special symbol display device 214 is turned on. Performs lighting / extinguishing drive control that repeatedly turns off. By performing this control, the second special symbol display device 214 performs the variable display of the special figure 2 (special figure 2 variable game).

また、コマンド設定送信処理(ステップS229)で回転開始設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶してから処理を終了する。   Further, predetermined transmission information indicating that the rotation start setting transmission process is to be executed in the command setting transmission process (step S229) is additionally stored in the transmission information storage area, and the process ends.

また、主制御部300のRAM308には、15R大当りフラグ、2R大当たりフラグ、第1小当たりフラグ、第2小当たりフラグ、第1はずれフラグ、第2はずれフラグ、特図確率変動フラグ、および普図確率変動フラグそれぞれのフラグが用意されている。特図2変動表示時間が経過したタイミング(特図2表示図柄更新タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、15R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグもオンの場合には図10(a)に示す特図A、15R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグはオンの場合には特図B、2R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグもオンの場合には特図C、2R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグはオンの場合には特図D、2R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグはオンの場合には特図E、2R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグもオフの場合には特図F、第1小当たりフラグがオンの場合には特図G、第2小当たりフラグがオンの場合には特図H、第1はずれフラグがオンの場合には特図I、第2はずれフラグがオンの場合には特図Iそれぞれの態様となるように、第2特別図柄表示装置214を構成する7セグメントLEDの点灯・消灯駆動制御を行い、RAM308の設定領域に特図2停止表示中であることを表す設定を行う。なお各フラグのオンは例えば各フラグに「1」のセットすることをいう。この制御を行うことで、第2特別図柄表示装置214は、15R特別大当たり図柄(特図A)、15R大当たり図柄(特図B)、突然確変図柄(特図C)、突然時短図柄(特図D)、隠れ確変図柄(特図E)、突然通常図柄(特図F)、第1小当たり図柄(特図G)、第2小当たり図柄(特図H)、第1はずれ図柄(特図I)、および第2はずれ図柄(特図J)のいずれか一つの図柄の確定表示を行う。さらにその後、所定の停止表示期間(例えば500m秒間)その表示を維持するためにRAM308に設けた特図2停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により、確定表示された特図2が所定期間停止表示され、特図2変動遊技の結果が遊技者に報知される。また、RAM308に設けられた時短回数記憶部に記憶された時短回数が1以上であれば、その時短回数から1を減算し、減算結果が1から0となった場合は、特図確率変動中(詳細は後述)でなければ、時短フラグをオフする。さらに、大当り遊技中(特別遊技状態中)にも、時短フラグをオフする。   Further, the RAM 308 of the main control unit 300 includes a 15R big hit flag, a 2R big hit flag, a first small hit flag, a second small hit flag, a first off flag, a second off flag, a special figure probability variation flag, and a normal figure. A flag for each probability variation flag is prepared. In the special figure 2 state update process starting at the timing when the special figure 2 fluctuation display time has elapsed (the timing when the special figure 2 display symbol update timer value has changed from 1 to 0), the 15R big hit flag is on, and the special figure probability fluctuation When the flag is also on and the normal figure probability fluctuation flag is on, the special figure A, 15R jackpot flag shown in FIG. 10A is on, the special figure probability fluctuation flag is off, and the common figure probability fluctuation flag is on. When the special figure B, 2R big hit flag is on, the special figure probability fluctuation flag is on, and the general figure probability fluctuation flag is also on, the special figure C, 2R big hit flag is on, the special figure probability fluctuation flag is off, When the probability fluctuation flag is on, the special figure D, 2R jackpot flag is on, the special figure probability fluctuation flag is on, and when the common figure probability fluctuation flag is on, the special figure E, 2R jackpot flag is on, special chart Probability flag is off, normal When the probability variation flag is also off, the special figure F, when the first small hit flag is on, the special figure G, when the second small hit flag is on, the special figure H, and the first off flag are on. In such a case, the 7-segment LED constituting the second special symbol display device 214 is controlled to be turned on / off so that the special figure I and the second off flag are turned on, respectively, so that the special figure I is in the respective mode. A setting indicating that the special figure 2 stop display is in progress is made in the setting area of the RAM 308. Note that turning on each flag means, for example, setting “1” in each flag. By performing this control, the second special symbol display device 214 has a 15R special jackpot symbol (special symbol A), a 15R jackpot symbol (special symbol B), a sudden probability variation symbol (special symbol C), and a sudden time-short symbol symbol (special symbol). D), hidden probability variation (special E), suddenly normal (special F), first small hit (special G), second small hit (special H), first off symbol (special) Any one of the symbols I) and the second off-set symbol (special symbol J) is confirmed and displayed. After that, information indicating the stop period is set in the storage area of the special figure 2 stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 milliseconds). With this setting, the specially displayed special figure 2 is stopped and displayed for a predetermined period, and the result of the special figure 2 variable game is notified to the player. In addition, if the time reduction number stored in the time reduction number storage unit provided in the RAM 308 is 1 or more, 1 is subtracted from the time reduction number, and if the subtraction result becomes 1 to 0, the special figure probability is changing. If not (details will be described later), the time reduction flag is turned off. Further, the hourly flag is also turned off during the big hit game (in the special game state).

また、コマンド設定送信処理(ステップS229)で回転停止設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶するとともに、変動表示を停止する図柄が特図2であることを示す特図2識別情報を、後述するコマンドデータに含める情報としてRAM308に追加記憶してから処理を終了する。   Further, the special transmission information indicating that the rotation stop setting transmission process is executed in the command setting transmission process (step S229) is additionally stored in the above-described transmission information storage area, and the design for stopping the variable display is shown in FIG. The special figure 2 identification information indicating the presence is additionally stored in the RAM 308 as information to be included in command data, which will be described later, and the processing is terminated.

また、特図2変動遊技の結果が大当りであれば、後述するように、大当りフラグがオンされる。この大当りフラグがオンの場合には、所定の停止表示期間が終了したタイミング(特図2停止時間管理用タイマの値が1から0になったタイミング)における特図2状態更新処理では、RAM308の設定領域に特図2作動中を設定するとともに、所定の入賞演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを開始することを遊技者に報知する画像を表示している期間待機するためにRAM308に設けた特図2待機時間管理用タイマの記憶領域に入賞演出期間を示す情報を設定する。また、コマンド設定送信処理(ステップS229)で入賞演出設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   If the result of the special figure 2 variable game is a big hit, the big hit flag is turned on as will be described later. When the jackpot flag is on, in the special figure 2 state update process at the timing when the predetermined stop display period ends (the timing when the special figure 2 stop time management timer value changes from 1 to 0), the RAM 308 In the setting area, the special figure 2 is in operation and waits for a predetermined winning effect period (for example, 3 seconds), that is, a period during which an image for notifying the player that the big win by the decorative symbol display device 208 is started is displayed. Therefore, information indicating the winning effect period is set in the storage area of the special figure 2 standby time management timer provided in the RAM 308. In addition, predetermined transmission information indicating that the winning effect setting transmission process is executed in the command setting transmission process (step S229) is additionally stored in the transmission information storage area.

また、所定の入賞演出期間が終了したタイミング(特図2待機時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、所定の開放期間(例えば29秒間、または可変入賞口234に所定球数(例えば10球)の機内球710の入賞を検出するまで)可変入賞口234の扉部材234aの開閉駆動用のソレノイド332に、扉部材234aを開放状態に保持する信号を出力するとともに、RAM308に設けた扉開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。また、コマンド設定送信処理(ステップS229)で大入賞口開放設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   Further, in the special figure 2 state update process that starts at the timing when the predetermined winning effect period ends (the timing when the value of the special figure 2 standby time management timer changes from 1 to 0), a predetermined release period (for example, 29 seconds) Or until the opening / closing drive solenoid 332 of the door member 234a of the variable winning port 234 is opened) (until a winning of an in-flight ball 710 having a predetermined number of balls (for example, 10 balls) is detected in the variable winning port 234). A signal to be held is output, and information indicating an opening period is set in a storage area of a door opening time management timer provided in the RAM 308. In addition, predetermined transmission information indicating that the special winning opening release setting transmission process is executed in the command setting transmission process (step S229) is additionally stored in the transmission information storage area.

また、所定の開放期間が終了したタイミング(扉開放時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、所定の閉鎖期間(例えば1.5秒間)可変入賞口234の扉部材234aの開閉駆動用のソレノイド332に、扉部材234aを閉鎖状態に保持する信号を出力するとともに、RAM308に設けた扉閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。また、コマンド設定送信処理(ステップS229)で大入賞口閉鎖設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   In the special figure 2 state update process that starts at the timing when the predetermined opening period ends (the timing when the door opening time management timer value changes from 1 to 0), the predetermined closing period (for example, 1.5 seconds) A signal for holding the door member 234a in the closed state is output to the solenoid 332 for opening and closing the door member 234a of the variable prize opening 234, and the closing period is indicated in the storage area of the door closing time management timer provided in the RAM 308. Set the information. In addition, predetermined transmission information indicating that the special winning opening closing setting transmission process is executed in the command setting transmission process (step S229) is additionally stored in the transmission information storage area.

また、この扉部材の開放・閉鎖制御を所定回数(本実施例では15ラウンドか2ラウンド)繰り返し、終了したタイミングで開始する特図2状態更新処理では、所定の終了演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを終了することを遊技者に報知する画像を表示している期間待機するように設定するためにRAM308に設けた演出待機時間管理用タイマの記憶領域に演出待機期間を示す情報を設定する。また、普図確率変動フラグがオンに設定されていれば、この大当たり遊技の終了と同時に、RAM308に設けられた時短回数記憶部に時短回数100回をセットするともに、RAM308に設けられた時短フラグをオンする。なお、その普図確率変動フラグがオフに設定されていれば、時短回数記憶部に時短回数をセットすることもなく、また時短フラグをオンすることもない。ここにいう時短とは、特図変動遊技における大当りを終了してから、次の大当りを開始するまでの時間を短くするため、パチンコ機が遊技者にとって有利な状態になることをいう。この時短フラグがオンに設定されていると、普図高確率状態である。普図高確率状態では普図低確率状態に比べて、普図変動遊技に大当りする可能性が高い。また、普図高確率状態の方が、普図低確率状態に比べて普図変動遊技の変動時間および特図変動遊技の変動時間は短くなる。さらに、普図高確率状態では普図低確率状態に比べて、第2特別始動口232の一対の羽根部材232aの1回の開放における開放時間が長くなりやすい。加えて、普図高確率状態では普図低確率状態に比べて、一対の羽根部材232aは多く開きやすい。また、上述のごとく、時短フラグは、大当り遊技中(特別遊技状態中)にはオフに設定される。したがって、大当たり遊技中には、普図低確率状態が維持される。これは、大当たり遊技中に普図高確率状態であると、大当たり遊技中に可変入賞口234に所定の個数、機内球710が入球するまでの間に第2特図始動口232に多くの機内球710が入球し、大当たり中に獲得することができる機内球710の数が多くなってしまい射幸性が高まってしまうという問題があり、これを解決するためのものである。   In addition, in the special figure 2 state update process that starts at the timing when the door member opening / closing control is repeated a predetermined number of times (15 rounds or 2 rounds in this embodiment) and finished, a predetermined end effect period (eg, 3 seconds) In other words, the effect waiting period is stored in the storage area of the effect waiting time management timer provided in the RAM 308 in order to set to wait for a period during which an image for informing the player that the big hit by the decorative symbol display device 208 is to be ended is displayed. Set the information indicating. Also, if the normal probability fluctuation flag is set to ON, at the same time as the end of the jackpot game, the time reduction number 100 is set in the time reduction number storage unit provided in the RAM 308, and the time reduction flag provided in the RAM 308 is set. Turn on. If the usual time probability variation flag is set to OFF, the time reduction number is not set in the time reduction number storage unit, and the time reduction flag is not turned ON. The short time here means that the pachinko machine is in an advantageous state for the player in order to shorten the time from the end of the big hit in the special figure variable game to the start of the next big hit. If the short time flag is set to ON at this time, it is a normal high probability state. There is a higher probability of hitting a general-purpose variable game in the high-probability state than in the low-probability state. In addition, the fluctuation time of the normal figure variable game and the fluctuation time of the special figure variable game are shorter in the normal figure high probability state than in the normal figure low probability state. Further, in the normal high probability state, the opening time in one opening of the pair of blade members 232a of the second special start port 232 tends to be longer than in the normal low probability state. In addition, the pair of blade members 232a are more likely to open in the normal high probability state than in the normal low probability state. In addition, as described above, the hourly flag is set to off during the big hit game (in the special game state). Therefore, the normal low probability state is maintained during the jackpot game. This is because, if the game is in a high probability state during the jackpot game, a large number of the second special figure start port 232 will have a predetermined number before the in-flight ball 710 enters the ball during the jackpot game. In order to solve this problem, there is a problem that the number of in-flight balls 710 that can be acquired during the jackpot increases and the number of in-flight balls 710 increases.

さらに、コマンド設定送信処理(ステップS229)で終了演出設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   Further, predetermined transmission information indicating that the end effect setting transmission process is executed in the command setting transmission process (step S229) is additionally stored in the transmission information storage area.

また、所定の終了演出期間が終了したタイミング(演出待機時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、RAM308の設定領域に特図2非作動中を設定する。さらに、特図2変動遊技の結果が外れであれば、後述するように、はずれフラグがオン(「1」をセット)される。このはずれフラグがオンの場合には、上述した所定の停止表示期間が終了したタイミング(特図2停止時間管理用タイマの値が1から0になったタイミング)における特図2状態更新処理でも、RAM308の設定領域に特図2非作動中を設定する。特図2非作動中の場合における特図2状態更新処理では、何もせずに次のステップS227に移行するようにしている。   In the special figure 2 state update process that starts at the timing when the predetermined end production period ends (the timing when the production standby time management timer value changes from 1 to 0), the special figure 2 is not activated in the setting area of the RAM 308. Set medium. Furthermore, if the result of the special figure 2 variable game is out of the range, the miss flag is turned on (“1” is set) as will be described later. In the case where the miss flag is on, even in the special figure 2 state update process at the timing when the predetermined stop display period described above ends (the timing when the special figure 2 stop time management timer value changes from 1 to 0), In the setting area of the RAM 308, special figure 2 inactive is set. In the special figure 2 state update process when the special figure 2 is not in operation, nothing is done and the process proceeds to the next step S227.

続いて、特図1についての特図状態更新処理(特図1状態更新処理)を行う。この特図1状態更新処理では、特図1の状態に応じて、上述の特図2状態更新処理で説明した各処理を行う。この特図1状態更新処理で行う各処理は、上述の特図2状態更新処理で説明した内容の「特図2」を「特図1」と読み替えた処理と同一であるため、その説明は省略する。なお、特図2状態更新処理と特図1状態更新処理の順番は逆でもよい。   Subsequently, a special figure state update process (special figure 1 state update process) for special figure 1 is performed. In the special figure 1 state update process, each process described in the special figure 2 state update process is performed according to the state of the special figure 1. Each process performed in the special figure 1 state update process is the same as the process in which “special figure 2” in the contents described in the special figure 2 state update process is replaced with “special figure 1”. Omitted. The order of the special figure 2 state update process and the special figure 1 state update process may be reversed.

ステップS225における特図状態更新処理が終了すると、ステップS227において、特図1および特図2それぞれについての特図関連抽選処理を行う。ここでも先に、特図2についての特図関連抽選処理(特図2関連抽選処理)を行い、その後で、特図1についての特図関連抽選処理(特図1関連抽選処理)を行う。これらの特図関連抽選処理についても、主制御部300が特図2関連抽選処理を特図1関連抽選処理よりも先に行うことで、特図2変動遊技の開始条件と、特図1変動遊技の開始条件が同時に成立した場合でも、特図2変動遊技が先に変動中となるため、特図1変動遊技は変動を開始しない。また、装飾図柄表示装置208による、特図変動遊技の大当り判定の結果の報知は、第1副制御部400によって行われ、第2特図始動口232への入賞に基づく抽選の抽選結果の報知が、第1特図始動口230への入賞に基づく抽選の抽選結果の報知よりも優先して行われる。   When the special figure state update process in step S225 is completed, a special figure related lottery process for each of special figure 1 and special figure 2 is performed in step S227. Also here, the special figure related lottery process (special figure 2 related lottery process) for the special figure 2 is performed first, and then the special figure related lottery process (special figure 1 related lottery process) for the special figure 1 is performed. Also for these special drawing related lottery processes, the main control unit 300 performs the special figure 2 related lottery processing before the special figure 1 related lottery processing, so that the special figure 2 variable game start condition and the special figure 1 fluctuation Even if the game start conditions are satisfied at the same time, since the special figure 2 variable game is changing first, the special figure 1 variable game does not start changing. Further, the notification of the result of the jackpot determination of the special figure variable game by the decorative symbol display device 208 is performed by the first sub-control unit 400, and the lottery result of the lottery based on the winning at the second special figure starting port 232 is notified. However, it is performed in preference to the notification of the lottery result of the lottery based on the winning at the first special figure starting port 230.

ステップS229では、コマンド設定送信処理を行い、各種のコマンドが第1副制御部400に送信される。なお、第1副制御部400に送信する出力予定情報は例えば16ビットで構成しており、ビット15はストローブ情報(オンの場合、データをセットしていることを示す)、ビット11〜14はコマンド種別(本実施形態では、基本コマンド、図柄変動開始コマンド、図柄変動停止コマンド、入賞演出開始コマンド、終了演出開始コマンド、大当りラウンド数指定コマンド、復電コマンド、RAMクリアコマンドなどコマンドの種類を特定可能な情報)、ビット0〜10はコマンドデータ(コマンド種別に対応する所定の情報)で構成している。   In step S229, command setting transmission processing is performed, and various commands are transmitted to the first sub-control unit 400. The output schedule information to be transmitted to the first sub-control unit 400 is composed of 16 bits, for example, bit 15 is strobe information (indicating that data is set when ON), bits 11 to 14 are Command type (In this embodiment, command types such as basic command, symbol variation start command, symbol variation stop command, winning effect start command, end effect start command, jackpot round number designation command, power recovery command, RAM clear command are specified. Possible information), bits 0 to 10 are composed of command data (predetermined information corresponding to the command type).

具体的には、ストローブ情報は上述のコマンド送信処理でオン、オフするようにしている。また、コマンド種別が図柄変動開始コマンドの場合であればコマンドデータに、15R大当りフラグや2R大当たりフラグの値、特図確率変動フラグの値、特図関連抽選処理で選択したタイマ番号などを示す情報を含み、図柄変動停止コマンドの場合であれば、15R大当りフラグや2R大当たりフラグの値、特図確率変動フラグの値などを含み、入賞演出コマンドおよび終了演出開始コマンドの場合であれば、特図確率変動フラグの値などを含み、大当りラウンド数指定コマンドの場合であれば特図確率変動フラグの値、大当りラウンド数などを含むようにしている。コマンド種別が基本コマンドを示す場合は、コマンドデータにデバイス情報、第1特図始動口230への入賞の有無、第2特図始動口232への入賞の有無、可変入賞口234への入賞の有無などが含まれる。   Specifically, the strobe information is turned on and off in the command transmission process described above. If the command type is a symbol variation start command, information indicating the value of the 15R jackpot flag or 2R jackpot flag, the value of the special figure probability variation flag, the timer number selected in the special figure related lottery process, etc. is included in the command data. In the case of the symbol variation stop command, the value of the 15R jackpot flag, 2R jackpot flag, the value of the special figure probability variation flag, etc. are included. In the case of a jackpot round number designation command, the value of the special variation probability flag, the number of jackpot rounds, and the like are included. When the command type indicates a basic command, device information in the command data, presence / absence of winning at the first special figure starting port 230, presence / absence of winning at the second special figure starting port 232, winning of the variable winning port 234 Includes presence or absence.

また、上述の回転開始設定送信処理では、コマンドデータにRAM308に記憶している、15R大当りフラグや2R大当たりフラグの値、特図確率変動フラグの値、特図1関連抽選処理および特図2関連抽選処理で選択したタイマ番号、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の回転停止設定送信処理では、コマンドデータにRAM308に記憶している、15R大当りフラグや2R大当たりフラグの値、特図確率変動フラグの値などを示す情報を設定する。上述の入賞演出設定送信処理では、コマンドデータに、RAM308に記憶している、入賞演出期間中に装飾図柄表示装置208・各種ランプ418・スピーカ120に出力する演出制御情報、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の終了演出設定送信処理では、コマンドデータに、RAM308に記憶している、演出待機期間中に装飾図柄表示装置208・各種ランプ418・スピーカ120に出力する演出制御情報、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の大入賞口開放設定送信処理では、コマンドデータにRAM308に記憶している大当りラウンド数、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の大入賞口閉鎖設定送信処理では、コマンドデータにRAM308に記憶している大当りラウンド数、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。また、このステップS233では一般コマンド特図保留増加処理も行われる。この一般コマンド特図保留増加処理では、コマンドデータにRAM308の送信用情報記憶領域に記憶している特図識別情報(特図1または特図2を示す情報)、予告情報(事前予告情報、偽事前予告情報、または事前予告無情報のいずれか)を設定する。   In the rotation start setting transmission process described above, the 15R jackpot flag or 2R jackpot flag value, the special figure probability variation flag value, the special figure 1 related lottery process, and the special figure 2 relation stored in the RAM 308 as command data. Information indicating the timer number selected in the lottery process, the number of the first special figure variable game or the second special figure variable game held, etc. is set. In the rotation stop setting transmission process described above, information indicating the value of the 15R jackpot flag, the 2R jackpot flag, the value of the special figure probability variation flag, etc. stored in the RAM 308 is set in the command data. In the winning effect setting transmission process described above, the command control data stored in the RAM 308, the effect control information output to the decorative symbol display device 208, various lamps 418, and the speaker 120 during the winning effect period, the special figure probability variation flag Information indicating the value, the number of the first special figure variable game or the second special figure variable game being held, etc. is set. In the above-described end effect setting transmission process, the command control data stored in the RAM 308, the effect control information output to the decorative symbol display device 208, various lamps 418, and the speaker 120 during the effect standby period, the special figure probability variation flag Information indicating the value, the number of the first special figure variable game or the second special figure variable game being held, etc. is set. In the above-described large winning opening release setting transmission process, the number of big hits stored in the RAM 308 in the command data, the value of the special figure probability variation flag, the pending first special figure variation game or the second special figure variation game is stored. Set information such as number. In the above-mentioned big winning opening closing setting transmission process, the number of big hits stored in the RAM 308 in the command data, the value of the special figure probability variation flag, the pending first special figure variation game or the second special figure variation game is stored. Set information such as number. In step S233, general command special figure hold increase processing is also performed. In this general command special figure pending increase process, special figure identification information (information showing special figure 1 or special figure 2) stored in the transmission information storage area of the RAM 308, command notice information (preliminary notice information, false) Set either advance notice information or no advance notice information).

更に、主制御部300が送信するコマンドには、入賞口等に入賞した場合の賞球数や、不正を検出した場合の情報が含まれる。主制御部300で検出する不正は、異常な磁気を検出した場合の磁石エラー、異常な電波を検出した場合の電波エラー、大当たり時以外に機内球710が可変入賞口234に入賞した場合の不正入賞エラー等である。なお、主制御部300のコマンド送信は、一定期間ごとに実行される。   Further, the command transmitted by the main control unit 300 includes information on the number of winning balls when winning a winning opening or the like and information on detecting fraud. The fraud detected by the main control unit 300 includes a magnet error when abnormal magnetism is detected, a radio wave error when abnormal radio waves are detected, and an irregularity when the in-flight ball 710 wins the variable prize opening 234 except for a big hit. It is a prize error. Note that the command transmission of the main control unit 300 is executed at regular intervals.

第1副制御部400では、受信した出力予定情報に含まれるコマンド種別により、主制御部300における遊技制御の変化に応じた演出制御の決定が可能になるとともに、出力予定情報に含まれているコマンドデータの情報に基づいて、演出制御内容を決定することができるようになる。   In the first sub-control unit 400, it is possible to determine the production control according to the change of the game control in the main control unit 300 by the command type included in the received output schedule information, and it is included in the output schedule information. Based on the information of the command data, the contents of effect control can be determined.

ステップS231では、外部出力信号設定処理を行う。この外部出力信号設定処理では、RAM308に記憶している遊技情報を、情報出力回路336を介してパチンコ機100とは別体の情報入力回路350に出力する。   In step S231, an external output signal setting process is performed. In this external output signal setting process, the game information stored in the RAM 308 is output to the information input circuit 350 separate from the pachinko machine 100 via the information output circuit 336.

ステップS233では、デバイス監視処理を行う。このデバイス監視処理では、ステップS205において信号状態記憶領域に記憶した各種センサの信号状態を読み出して、所定のエラーの有無を監視し、エラーを検出した場合に、第1副制御部400に送信すべき送信情報に、当該エラーの有無を示すデバイス情報を設定する。また、各種ソレノイド332を駆動して第2特図始動口232や、可変入賞口234の開閉を制御したり、表示回路324、326、330を介して普通図柄表示装置210、第1特別図柄表示装置212、第2特別図柄表示装置214、各種状態表示部328などに出力する表示データを、I/O310の出力ポートに設定する。また、賞球コマンド送信処理(ステップS219)で設定した出力予定情報(賞球コマンド)を出力ポート(I/O310)を介して第1副制御部400に出力する。   In step S233, device monitoring processing is performed. In this device monitoring process, the signal states of the various sensors stored in the signal state storage area in step S205 are read, the presence / absence of a predetermined error is monitored, and when an error is detected, it is transmitted to the first sub-control unit 400. Device information indicating the presence or absence of the error is set in the transmission information to be transmitted. Further, various solenoids 332 are driven to control the opening and closing of the second special figure starting port 232 and the variable prize opening 234, and the normal symbol display device 210 and the first special symbol display via the display circuits 324, 326 and 330. Display data to be output to the device 212, the second special symbol display device 214, the various status display units 328, and the like is set in the output port of the I / O 310. Further, the output schedule information (prize ball command) set in the prize ball command transmission process (step S219) is output to the first sub control unit 400 via the output port (I / O 310).

ステップS235では、低電圧信号がオンであるか否かを監視する。そして、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS241に進み、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS239に進む。   In step S235, it is monitored whether or not the low voltage signal is on. Then, when the low voltage signal is on (when power supply cutoff is detected), the process proceeds to step S241, and when the low voltage signal is off (when power supply cutoff is not detected), the process proceeds to step S239.

ステップS239では、タイマ割込終了処理を行う。このタイマ割込終了処理では、ステップS201で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割込許可の設定などを行い、その後、図12に示す主制御部メイン処理に復帰する。   In step S239, a timer interrupt end process is performed. In this timer interrupt end process, the value of each register temporarily saved in step S201 is set in each original register, interrupt permission is set, etc., and then the main control unit main process shown in FIG. Return to.

一方、ステップS241では、復電時に電断時の状態に復帰するための特定の変数やスタックポインタを復帰データとしてRAM308の所定の領域に退避し、入出力ポートの初期化等の電断処理を行い、その後、上述の示す主制御部メイン処理に復帰する。
<第1副制御部の処理>
On the other hand, in step S241, a specific variable or stack pointer for returning to the power-off state at the time of power recovery is saved as a return data in a predetermined area of the RAM 308, and power-off processing such as initialization of input / output ports is performed. After that, the process returns to the main process of the main control unit described above.
<Processing of first sub-control unit>

次に、図14を用いて、第1副制御部400の処理について説明する。なお、同図(a)は、第1副制御部400のCPU404が実行するメイン処理のフローチャートである。同図(b)は、第1副制御部400のコマンド受信割込処理のフローチャートである。同図(c)は、第1副制御部400のタイマ割込処理のフローチャートである。同図(d)は、第1副制御部400の画像制御処理のフローチャートである。   Next, processing of the first sub-control unit 400 will be described using FIG. FIG. 5A is a flowchart of main processing executed by the CPU 404 of the first sub control unit 400. FIG. 5B is a flowchart of command reception interrupt processing of the first sub control unit 400. FIG. 5C is a flowchart of the timer interrupt process of the first sub control unit 400. FIG. 4D is a flowchart of the image control process of the first sub control unit 400.

まず、同図(a)のステップS301では、各種の初期設定を行う。電源投入が行われると、まずステップS301で初期化処理が実行される。この初期化処理では、入出力ポートの初期設定や、RAM408内の記憶領域の初期化処理等を行う。   First, in step S301 in FIG. 9A, various initial settings are performed. When the power is turned on, an initialization process is first executed in step S301. In this initialization processing, initialization of input / output ports, initialization processing of a storage area in the RAM 408, and the like are performed.

ステップS303では、タイマ変数が10以上か否かを判定し、タイマ変数が10となるまでこの処理を繰り返し、タイマ変数が10以上となったときには、ステップS305の処理に移行する。   In step S303, it is determined whether or not the timer variable is 10 or more. This process is repeated until the timer variable becomes 10, and when the timer variable becomes 10 or more, the process proceeds to step S305.

ステップS305では、タイマ変数に0を代入する。   In step S305, 0 is substituted into the timer variable.

ステップS307では、コマンド処理を行う。第1副制御部400のCPU404は、主制御部300からコマンドを受信したか否かを判別する。 In step S307, command processing is performed. The CPU 404 of the first sub control unit 400 determines whether a command has been received from the main control unit 300.

ステップS309では、演出制御処理を行う。例えば、ステップS307で新たなコマンドがあった場合には、このコマンドに対応する演出データをROM406から読み出す等の処理を行い、演出データの更新が必要な場合には演出データの更新処理を行う。 In step S309, effect control processing is performed. For example, when there is a new command in step S307, processing such as reading effect data corresponding to the command from the ROM 406 is performed, and when update of the effect data is necessary, effect data update processing is performed.

ステップS311では、チャンスボタンの押下を検出していた場合、ステップS309で更新した演出データをチャンスボタンの押下に応じた演出データに変更する処理を行う。 If it is detected in step S311 that the chance button has been pressed, the effect data updated in step S309 is changed to effect data corresponding to the press of the chance button.

ステップS313では、ステップS309で読み出した演出データの中にVDP434への命令がある場合には、この命令をVDP434に出力する。   In step S313, when there is a command to VDP 434 in the effect data read in step S309, this command is output to VDP 434.

ステップS315では、ステップS309で読み出した演出データの中に音源IC416への命令がある場合には、この命令を音源IC416に出力する。   In step S315, if there is a command to the sound source IC 416 in the effect data read in step S309, this command is output to the sound source IC 416.

ステップS317では、ステップS309で読み出した演出データの中に各種ランプ418への命令がある場合には、この命令を駆動回路420に出力する。   In step S317, if there is a command to the various lamps 418 in the effect data read in step S309, this command is output to the drive circuit 420.

ステップS319では、ステップS309で読み出した演出データの中に可動体(例えば、遮蔽装置246)への命令がある場合には、この命令を駆動回路432に出力する。   In step S319, if there is a command to the movable body (for example, the shielding device 246) in the effect data read in step S309, this command is output to the drive circuit 432.

ステップS321では、ステップS309で読み出した演出データの中に第2副制御部500に送信する制御コマンドがある場合には、この制御コマンドを出力する設定を行い、ステップS303へ戻る。   In step S321, if there is a control command to be transmitted to the second sub control unit 500 in the effect data read in step S309, the control command is set to be output, and the process returns to step S303.

次に、同図(b)を用いて、第1副制御部400のコマンド受信割込処理について説明する。このコマンド受信割込処理は、第1副制御部400が、主制御部300が出力するストローブ信号を検出した場合に実行する処理である。コマンド受信割込処理のステップS401では、主制御部300が出力したコマンドを未処理コマンドとしてRAM408に設けたコマンド記憶領域に記憶する。   Next, the command reception interrupt process of the first sub-control unit 400 will be described using FIG. This command reception interrupt process is a process executed when the first sub-control unit 400 detects a strobe signal output from the main control unit 300. In step S401 of the command reception interrupt process, the command output from the main control unit 300 is stored as an unprocessed command in a command storage area provided in the RAM 408.

次に、同図(c)を用いて、第1副制御部400のCPU404によって実行する第1副制御部タイマ割込処理について説明する。第1副制御部400は、所定の周期(本実施形態では2msに1回)でタイマ割込を発生するハードウェアタイマを備えており、このタイマ割込を契機として、タイマ割込処理を所定の周期で実行する。   Next, the first sub control unit timer interrupt process executed by the CPU 404 of the first sub control unit 400 will be described with reference to FIG. The first sub-control unit 400 includes a hardware timer that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 2 ms), and the timer interrupt process is performed by using the timer interrupt as a trigger. Execute in the cycle.

第1副制御部タイマ割込処理のステップS501では、第1副制御部メイン処理におけるステップS303において説明したRAM408のタイマ変数記憶領域の値に、1を加算して元のタイマ変数記憶領域に記憶する。従って、ステップS303において、タイマ変数の値が10以上と判定されるのは20ms毎(2ms×10)となる。   In step S501 of the first sub-control unit timer interrupt process, 1 is added to the value of the timer variable storage area of the RAM 408 described in step S303 in the first sub-control unit main process, and the original timer variable storage area is stored. To do. Therefore, in step S303, the value of the timer variable is determined to be 10 or more every 20 ms (2 ms × 10).

第1副制御部タイマ割込処理のステップS503では、ステップS321で設定された第2副制御部500への制御コマンドの送信や、演出用乱数値の更新処理等を行う。   In step S503 of the first sub-control unit timer interrupt process, transmission of a control command to the second sub-control unit 500 set in step S321, an effect random number update process, and the like are performed.

次に、同図(d)を用いて、第1副制御部400のメイン処理におけるステップS313の画像制御処理について説明する。同図は、画像制御処理の流れを示すフローチャートを示した図である。   Next, the image control process in step S313 in the main process of the first sub control unit 400 will be described with reference to FIG. FIG. 5 is a flowchart showing the flow of image control processing.

ステップS601では、画像データの転送指示を行う。ここでは、CPU404は、まず、VRAM436の表示領域Aと表示領域Bの描画領域の指定をスワップする。これにより、描画領域に指定されていない表示領域に記憶された1フレームの画像が装飾図柄表示装置208に表示される。次に、CPU404は、VDP434のアトリビュートレジスタに、位置情報等テーブルに基づいてROM座標(ROM406の転送元アドレス)、VRAM座標(VRAM436の転送先アドレス)などを設定した後、ROM406からVRAM436への画像データの転送開始を指示する命令を設定する。VDP434は、アトリビュートレジスタに設定された命令に基づいて画像データをROM406からVRAM436に転送する。その後、VDP436は、転送終了割込信号をCPU404に対して出力する。   In step S601, an instruction to transfer image data is issued. Here, the CPU 404 first swaps the designation of the display areas A and B in the VRAM 436. As a result, an image of one frame stored in the display area not designated as the drawing area is displayed on the decorative design display device 208. Next, the CPU 404 sets ROM coordinates (transfer source address of the ROM 406), VRAM coordinates (transfer destination address of the VRAM 436) and the like in the attribute register of the VDP 434 based on the position information table and the like, and then the image from the ROM 406 to the VRAM 436. Set an instruction to start data transfer. The VDP 434 transfers the image data from the ROM 406 to the VRAM 436 based on the command set in the attribute register. Thereafter, the VDP 436 outputs a transfer end interrupt signal to the CPU 404.

ステップS603では、VDP434からの転送終了割込信号が入力されたか否かを判定し、転送終了割込信号が入力された場合はステップS605に進み、そうでない場合は転送終了割込信号が入力されるのを待つ。ステップS605では、演出シナリオ構成テーブルおよびアトリビュートデータなどに基づいて、パラメータ設定を行う。ここでは、CPU404は、ステップS601でVRAM436に転送した画像データに基づいてVRAM436の表示領域AまたはBに表示画像を形成するために、表示画像を構成する画像データの情報(VRAM436の座標軸、画像サイズ、VRAM座標(配置座標)など)をVDP434に指示する。VDP434はアトリビュートレジスタに格納された命令に基づいてアトリビュートに従ったパラメータ設定を行う。   In step S603, it is determined whether or not a transfer end interrupt signal from the VDP 434 is input. If a transfer end interrupt signal is input, the process proceeds to step S605. If not, a transfer end interrupt signal is input. Wait for it. In step S605, parameters are set based on the production scenario configuration table and attribute data. Here, in order to form a display image in the display area A or B of the VRAM 436 based on the image data transferred to the VRAM 436 in step S601, the CPU 404 has information on the image data constituting the display image (coordinate axis and image size of the VRAM 436). , VRAM coordinates (arrangement coordinates, etc.) are instructed to the VDP 434. The VDP 434 sets parameters according to attributes based on instructions stored in the attribute register.

ステップS607では、描画指示を行う。この描画指示では、CPU404は、VDP434に画像の描画開始を指示する。VDP434は、CPU404の指示に従ってフレームバッファにおける画像描画を開始する。   In step S607, a drawing instruction is performed. In this drawing instruction, the CPU 404 instructs the VDP 434 to start drawing an image. The VDP 434 starts drawing an image in the frame buffer in accordance with an instruction from the CPU 404.

ステップS609では、画像の描画終了に基づくVDP434からの生成終了割込み信号が入力されたか否かを判定し、生成終了割込み信号が入力された場合はステップS611に進み、そうでない場合は生成終了割込み信号が入力されるのを待つ。ステップS611では、RAM408の所定の領域に設定され、何シーンの画像を生成したかをカウントするシーン表示カウンタをインクリメント(+1)して処理を終了する。
<第2副制御部の処理>
In step S609, it is determined whether or not a generation end interrupt signal from the VDP 434 based on the end of image drawing is input. If a generation end interrupt signal is input, the process proceeds to step S611. If not, the generation end interrupt signal is determined. Wait for input. In step S611, a scene display counter that is set in a predetermined area of the RAM 408 and counts how many scene images have been generated is incremented (+1), and the process ends.
<Processing of second sub-control unit>

次に、図15を用いて、第2副制御部500の処理について説明する。なお、同図(a)は、第2副制御部500のCPU504が実行するメイン処理のフローチャートである。同図(b)は、第2副制御部500のコマンド受信割込処理のフローチャートである。同図(c)は、第2副制御部500のタイマ割込処理のフローチャートである。   Next, the processing of the second sub control unit 500 will be described with reference to FIG. FIG. 6A is a flowchart of main processing executed by the CPU 504 of the second sub-control unit 500. FIG. 7B is a flowchart of command reception interrupt processing of the second sub control unit 500. FIG. 8C is a flowchart of the timer interrupt process of the second sub control unit 500.

まず、同図(a)のステップS701では、各種の初期設定を行う。電源投入が行われると、まずステップS701で初期化処理が実行される。この初期化処理では、入出力ポートの初期設定や、RAM508内の記憶領域の初期化処理等を行う。   First, in step S701 in FIG. 9A, various initial settings are performed. When the power is turned on, an initialization process is first executed in step S701. In this initialization processing, initial setting of input / output ports, initialization processing of a storage area in the RAM 508, and the like are performed.

ステップS703では、タイマ変数が10以上か否かを判定し、タイマ変数が10となるまでこの処理を繰り返し、タイマ変数が10以上となったときには、ステップS705の処理に移行する。   In step S703, it is determined whether or not the timer variable is 10 or more, and this process is repeated until the timer variable becomes 10. When the timer variable becomes 10 or more, the process proceeds to step S705.

ステップS705では、タイマ変数に0を代入する。   In step S705, 0 is assigned to the timer variable.

ステップS707では、コマンド処理を行う。第2副制御部500のCPU504は、第1副制御部400のCPU404からコマンドを受信したか否かを判別する。 In step S707, command processing is performed. The CPU 504 of the second sub control unit 500 determines whether a command has been received from the CPU 404 of the first sub control unit 400.

ステップS709では、演出制御処理を行う。例えば、ステップS707で新たなコマンドがあった場合には、このコマンドに対応する演出データをROM506から読み出す等の処理を行い、演出データの更新が必要な場合には演出データの更新処理を行う。   In step S709, an effect control process is performed. For example, if there is a new command in step S707, the effect data corresponding to this command is read from the ROM 506, and if the effect data needs to be updated, the effect data is updated.

ステップS711では、第1副制御部400からの遊技盤用ランプ532や遊技台枠用ランプ542への命令がある場合には、この命令をシリアル通信制御回路520に出力する。   In step S <b> 711, if there is a command from the first sub-control unit 400 to the game board lamp 532 or the game table frame lamp 542, this command is output to the serial communication control circuit 520.

ステップS713では、第1副制御部400からの演出可動体224への命令がある場合には、この命令を駆動回路516に出力し、ステップS703に戻る。   In step S713, if there is a command from the first sub-control unit 400 to the effect movable body 224, this command is output to the drive circuit 516, and the process returns to step S703.

次に、同図(b)を用いて、第2副制御部500のコマンド受信割込処理について説明する。このコマンド受信割込処理は、第2副制御部500が、第1副制御部400が出力するストローブ信号を検出した場合に実行する処理である。コマンド受信割込処理のステップS801では、第1副制御部400が出力したコマンドを未処理コマンドとしてRAM508に設けたコマンド記憶領域に記憶する。   Next, the command reception interrupt process of the second sub control unit 500 will be described with reference to FIG. This command reception interrupt process is a process executed when the second sub control unit 500 detects the strobe signal output from the first sub control unit 400. In step S801 of the command reception interrupt process, the command output from the first sub control unit 400 is stored as an unprocessed command in a command storage area provided in the RAM 508.

次に、同図(c)を用いて、第2副制御部500のCPU504によって実行する第2副制御部タイマ割込処理について説明する。第2副制御部500は、所定の周期(本実施例では2msに1回)でタイマ割込を発生するハードウェアタイマを備えており、このタイマ割込を契機として、タイマ割込処理を所定の周期で実行する。   Next, the second sub control unit timer interrupt process executed by the CPU 504 of the second sub control unit 500 will be described with reference to FIG. The second sub-control unit 500 includes a hardware timer that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 2 ms), and a timer interrupt process is performed in response to this timer interrupt. Execute in the cycle.

第2副制御部タイマ割込処理のステップS901では、図15(a)に示す第2副制御部メイン処理におけるステップSG03において説明したRAM508のタイマ変数記憶領域の値に、1を加算して元のタイマ変数記憶領域に記憶する。従って、ステップSG03において、タイマ変数の値が10以上と判定されるのは20ms毎(2ms×10)となる。   In step S901 of the second sub control unit timer interrupt process, 1 is added to the value of the timer variable storage area of the RAM 508 described in step SG03 in the second sub control unit main process shown in FIG. Is stored in the timer variable storage area. Therefore, in step SG03, the value of the timer variable is determined to be 10 or more every 20 ms (2 ms × 10).

第2副制御部タイマ割込処理のステップS903では、演出用乱数値の更新処理等を行う。
<球数制御部の処理>
In step S903 of the second sub-control unit timer interrupt process, an effect random number update process is performed.
<Processing of the ball number control unit>

次に、図16を用いて、球数制御部600のCPUが実行する処理について説明する。なお、同図(a)は、球数制御部600のメイン処理の流れを示すフローチャートであり、同図(b)は、球数制御部600のコマンド受信割込みのフローチャートである。   Next, processing executed by the CPU of the ball number control unit 600 will be described with reference to FIG. 2A is a flowchart showing the flow of main processing of the ball number control unit 600, and FIG. 2B is a flowchart of command reception interruption of the ball number control unit 600.

球数制御部600には、電源が投入されるとリセット信号を出力するリセット信号出力回路を設けている。このリセット信号を入力した球数制御部600のCPUは、リセット割込みによりリセットスタートしてROMに予め記憶している制御プログラムに従って処理を実行する。   The ball number control unit 600 is provided with a reset signal output circuit that outputs a reset signal when the power is turned on. Upon receiving this reset signal, the CPU of the ball number control unit 600 starts reset by a reset interrupt and executes processing in accordance with a control program stored in advance in the ROM.

ステップS1001では、初期設定1を行う。この初期設定1では、CPUのスタックポインタ(SP)へのスタック初期値の設定等を行う。   In step S1001, initial setting 1 is performed. In the initial setting 1, a stack initial value is set in the stack pointer (SP) of the CPU.

ステップS1003では、低電圧信号がオンであるか否か、すなわち、電圧監視回路が、電源管理部650から球数制御部600に供給している電源の電圧値が所定の値(本実施例では9v)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS1003の処理を繰り返し実行し、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS1005に進む。   In step S1003, whether or not the low voltage signal is ON, that is, the voltage value of the power supply that the voltage monitoring circuit supplies from the power management unit 650 to the ball number control unit 600 is a predetermined value (in this embodiment, 9v), it is monitored whether or not a low voltage signal indicating that the voltage has dropped is output. If the low voltage signal is on (when power-off is detected), step S1003 is repeatedly executed. If the low-voltage signal is off (when power-off is not detected), step S1003 is performed. The process proceeds to S1005.

ステップS1005では、初期設定2を行う。この初期設定2では、RAMへの書き込みを許可する設定、I/Oポートの初期設定等を行う。   In step S1005, initial setting 2 is performed. In the initial setting 2, settings for permitting writing to the RAM, initial settings for the I / O port, and the like are performed.

ステップS1007では、電源の遮断前(電断前)の状態に復帰するか否かの判定を行い、電断前の状態に復帰しない場合(パチンコ機100を初期状態にする場合)にはステップS1011に進み、電断前の状態に復帰する場合にはステップS1009に進む。   In step S1007, it is determined whether or not to return to the state before power interruption (before power interruption). If the state before power interruption does not return (when the pachinko machine 100 is set to the initial state), step S1011 is determined. If the process returns to the state before the power interruption, the process proceeds to step S1009.

具体的には、最初に、電源基板に設けた操作部を遊技店の店員などが操作した場合に送信されるRAMクリア信号がオン(操作があったことを示す)であるか否か、すなわちRAMクリアが必要であるか否かを判定し、RAMクリア信号がオンの場合(RAMクリアが必要な場合)には、パチンコ機100を初期状態にすべくステップS1011に進む。一方、RAMクリア信号がオフの場合(RAMクリアが必要でない場合)は、RAMに設けた電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、この電源ステータスの情報がサスペンドを示す情報であるか否かを判定する。そして、電源ステータスの情報がサスペンドを示す情報でない場合には、パチンコ機100を初期状態にすべくステップS1011に進み、電源ステータスの情報がサスペンドを示す情報である場合には、RAMの所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出し、算出したチェックサムの結果が特定の値(例えば0)であるか否か(チェックサムの結果が正常であるか否か)を判定する。そして、チェックサムの結果が0の場合(チェックサムの結果が正常である場合)には電断前の状態に復帰すべくステップS1009に進み、チェックサムの結果が0以外である場合(チェックサムの結果が異常である場合)には、パチンコ機100を初期状態にすべくステップS1011に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS1011に進む。   Specifically, first, a RAM clear signal transmitted when a store clerk or the like of the game shop operates the operation unit provided on the power supply board is turned on (indicating that there is an operation), that is, It is determined whether or not the RAM clear is necessary. If the RAM clear signal is on (when the RAM clear is necessary), the process proceeds to step S1011 to set the pachinko machine 100 to the initial state. On the other hand, when the RAM clear signal is OFF (when the RAM clear is not necessary), the power status information stored in the power status storage area provided in the RAM is read, and whether the power status information is information indicating suspend. Determine whether or not. If the power status information is not information indicating suspend, the process proceeds to step S1011 to set the pachinko machine 100 to an initial state. If the power status information is information indicating suspend, a predetermined area of the RAM is stored. A checksum is calculated by adding all the 1-byte data stored in (for example, all areas) to a 1-byte register whose initial value is 0, and the calculated checksum results in a specific value (for example, 0) (whether or not the checksum result is normal). If the checksum result is 0 (if the checksum result is normal), the process proceeds to step S1009 to return to the state before the power interruption. If the checksum result is other than 0 (checksum) If the result is abnormal), the process proceeds to step S1011 in order to set the pachinko machine 100 to the initial state. Similarly, when the power status information indicates information other than “suspend”, the process proceeds to step S1011.

ステップS1009では、復電時処理を行う。この復電時処理では、RAMの記憶領域のうち、復電時にクリアすべき記憶領域(コマンドを格納するためのコマンドバッファ、エラー状態を記憶するためのエラーステータスなどを除く記憶領域)の初期化などを行う。   In step S1009, power recovery processing is performed. In this power recovery process, initialization of the RAM storage area to be cleared upon power recovery (the command buffer for storing commands, the storage area excluding error status for storing error status, etc.) is initialized. And so on.

ステップS1011では、初期化処理を行う。この初期化処理では、割込み禁止の設定、スタックポインタへのスタック初期値の設定、RAMの所定の領域(例えば、全ての記憶領域)の初期化などを行う。   In step S1011, initialization processing is performed. In this initialization process, interrupt prohibition setting, stack initial value setting to the stack pointer, predetermined areas (for example, all storage areas) of the RAM, and the like are performed.

ステップS1013では、初期設定3を行う。この初期設定3では、割込み許可の設定などを行う。   In step S1013, initial setting 3 is performed. In the initial setting 3, an interrupt permission is set.

ステップS1015では、主制御部300から入力したデータの中に未解析データがあるか無いかを判定し、未解析データがある場合にはステップS1017でコマンド解析処理を行い、未解析データがない場合にはステップS1019に進む。   In step S1015, it is determined whether there is unanalyzed data in the data input from the main control unit 300. If there is unanalyzed data, command analysis processing is performed in step S1017, and there is no unanalyzed data. Then, the process proceeds to step S1019.

ステップS1019では、低電圧信号がオフであるか否かを監視し、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS1015に戻り、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS1021に進む。   In step S1019, it is monitored whether or not the low voltage signal is off. When the low voltage signal is off (when power-off is not detected), the process returns to step S1015, and the low voltage signal is on. In the case of detecting a power shutdown, the process proceeds to step S1021.

ステップS1021では、電断時処理を行う。この電断時処理では、RAMに設けたスタックポインタ退避領域に現在のスタックポインタの値を記憶し、上述の電源ステータス記憶領域にサスペンドを示す情報を設定する。また、RAMの所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算し、チェックサム算出用数値記憶領域に記憶している値からその加算した結果を減算した値をチェックサム(電断時チェックサム)として算出し、算出した電断時チェックサムを上述のチェックサム算出用数値記憶領域に記憶し、RAMへの書き込みを禁止する設定などを行う。   In step S1021, power interruption processing is performed. In the power interruption process, the current stack pointer value is stored in the stack pointer save area provided in the RAM, and information indicating suspend is set in the power status storage area. Further, all 1-byte data stored in a predetermined area (for example, all areas) of the RAM is added to a 1-byte register whose initial value is 0 and stored in a checksum calculation numerical storage area. The value obtained by subtracting the result of addition from the value is calculated as a checksum (checksum at power interruption), and the calculated checksum at power interruption is stored in the above-mentioned numerical storage area for checksum calculation, and written to the RAM. Perform prohibited settings.

ステップS1023では、低電圧信号がオンであるか否かを監視し、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS1023の処理を繰返し実行して低電圧信号がオフになるのを待ち、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS1001に戻り、メイン処理を最初から開始する。   In step S1023, it is monitored whether or not the low voltage signal is on. When the low voltage signal is on (when power-off is detected), the process of step S1023 is repeatedly executed to turn off the low voltage signal. When the low-voltage signal is off (when power-off is not detected), the process returns to step S1001 to start the main process from the beginning.

次に、同図(b)を用いて、球数制御部600のコマンド受信割込みについて説明する。このコマンド受信割込みは、球数制御部600が、主制御部300が出力するストローブ信号を検出した場合に実行する処理である。コマンド受信割込処理のステップS1101では、主制御部300が出力したコマンドを未処理コマンドとしてRAMに設けたコマンド記憶領域に記憶する。
<球数制御部割込み処理>
Next, a command reception interrupt of the ball number control unit 600 will be described with reference to FIG. This command reception interrupt is a process executed when the ball number control unit 600 detects a strobe signal output from the main control unit 300. In step S1101 of the command reception interrupt process, the command output from the main control unit 300 is stored as an unprocessed command in a command storage area provided in the RAM.
<Ball count control unit interrupt processing>

次に、図17を用いて、球数制御部600のCPUが実行する球数制御部割込み処理について説明する。なお、同図は、球数制御部割込みの流れを示すフローチャートである。   Next, the ball number control unit interrupt process executed by the CPU of the ball number control unit 600 will be described with reference to FIG. This figure is a flowchart showing the flow of the ball number control unit interrupt.

球数制御部600は、所定の周期(本実施形態では2msに1回)でタイマ割込みを発生するカウンタタイマを備えており、このタイマ割込みを契機として球数制御部割込み処理を所定の周期で開始する。   The ball number control unit 600 includes a counter timer that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 2 ms). With this timer interrupt, the ball number control unit interrupt processing is performed at a predetermined cycle. Start.

ステップS1201では、ポート入力処理を行う。このポート入力処理では、I/Oポートの値を取得して、入力ポートの状態(信号レベルやエッジ状態)を更新し、各種センサ604の状態などを検出する。具体的には、管理装置620からインターフェース部606を介して入力する各種信号の状態、球磨き装置612、揚上装置614、球送り装置616などから入力する信号(各種センサ604の状態)、減算センサ604Z、入賞検出センサ604S、非入賞検出センサ604Kなどから入力する信号、RWMクリアスイッチ180から入力する信号、エラー解除スイッチ168から入力する信号、主制御部300と球数制御部600を接続する主制御接続確認信号の状態などを取得して、例えば、信号を検出した場合は「1」、非検出の場合は「0」などのフラグを、RAMに各信号に対応して設けた入力信号情報記憶領域に記憶する。   In step S1201, port input processing is performed. In this port input processing, the value of the I / O port is acquired, the state of the input port (signal level and edge state) is updated, and the state of various sensors 604 is detected. Specifically, various signal states input from the management device 620 via the interface unit 606, signals input from the ball polishing device 612, the lifting device 614, the ball feeding device 616, etc. (states of the various sensors 604), subtraction The signal input from the sensor 604Z, the winning detection sensor 604S, the non-winning detection sensor 604K, the signal input from the RWM clear switch 180, the signal input from the error release switch 168, the main control unit 300 and the ball number control unit 600 are connected. The status of the main control connection confirmation signal and the like are acquired. For example, an input signal provided with a flag such as “1” when the signal is detected and “0” when the signal is not detected corresponding to each signal. Store in the information storage area.

また、計数ボタン652の押下によって入力する信号も取得し、当該信号を検出した場合は計数ボタン652用の入力信号情報記憶領域に「1」が設定されるとともに、計数球数を記憶する。   In addition, a signal input by pressing the count button 652 is acquired, and when the signal is detected, “1” is set in the input signal information storage area for the count button 652 and the count ball number is stored.

なお、本ステップにおいて、遊技領域124への投入および排出の球検出センサ604B(減算センサ604Z、入賞検出センサ604S、非入賞検出センサ604K)に機内球710が通過したことが検出される。この場合の球検出センサ604Bの信号検出も、主制御部タイマ割込処理(図13)の、ステップS205で説明した方法により行う。すなわち、各々の球検出センサ604Bにおける過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致するか否かを判定し、一致した場合に対応する入力信号情報記憶領域に「1」を設定する。なお、入賞判定パターン情報は、過去2回分の検出信号の有無の情報で構成してもよいし、球検出センサ604Bごとに(判定の重要度に応じて)異ならせてもよい。   In this step, it is detected that the in-flight ball 710 has passed through the ball detection sensor 604B (the subtraction sensor 604Z, the winning detection sensor 604S, and the non-winning detection sensor 604K) for entering and discharging into the game area 124. In this case, the signal detection of the sphere detection sensor 604B is also performed by the method described in step S205 of the main control unit timer interrupt process (FIG. 13). That is, it is determined whether or not the information on the presence or absence of the detection signals for the past three times in each ball detection sensor 604B matches the winning determination pattern information, and “1” is set in the input signal information storage area corresponding to the match. Set. Note that the winning determination pattern information may be constituted by information on the presence or absence of detection signals for the past two times, or may be different for each ball detection sensor 604B (depending on the importance of determination).

ステップS1203では、タイマ更新処理を行う。このタイマ更新処理では、賞球付与の報知用LEDの点灯/消灯時間、モータ駆動/非駆動時間などを計時するためのタイマなどを含む各種タイマを更新する。   In step S1203, timer update processing is performed. In this timer update process, various timers are updated, including timers for measuring the turning on / off time of the award ball notification LED, motor driving / non-driving time, and the like.

ステップS1204では、シリアルコマンド管理処理を行う。これについては後述する。   In step S1204, serial command management processing is performed. This will be described later.

ステップS1205では、エラー管理処理を行う。このエラー管理処理では、各種エラーが発生しているか否かを判定し、RAMに設けたエラーステータス記憶領域にエラーに関する情報を記憶する。   In step S1205, error management processing is performed. In this error management process, it is determined whether various errors have occurred or not, and information related to the error is stored in an error status storage area provided in the RAM.

ステップS1207では、エラー解除スイッチ監視処理を行う。すなわち、上記ステップS1201のポート入力処理で取得したエラー解除スイッチ168の状態に基づいて、エラー解除スイッチ168が押下され、エラーフラグがセットされている場合は、エラーフラグをクリアする。   In step S1207, an error release switch monitoring process is performed. That is, when the error release switch 168 is pressed and the error flag is set based on the state of the error release switch 168 acquired in the port input process of step S1201, the error flag is cleared.

ステップS1209では、管理装置通信処理を行う。この管理装置通信処理では、管理装置620からインターフェース部606を介して入力する各種信号の状態に基づいて、管理装置620と双方向の通信を行い、例えば、球数制御部600から管理装置620へ遊技球数情報を送信や、管理装置620から球数制御部600に球貸要求情報の送信を行う。球数制御部600は、管理装置620から球貸要求情報を受信した場合、RAMの貸球球数記憶領域に記憶されている数値に貸球数を加算する。   In step S1209, management device communication processing is performed. In this management device communication processing, bidirectional communication is performed with the management device 620 based on the state of various signals input from the management device 620 via the interface unit 606. For example, from the ball number control unit 600 to the management device 620. The game ball number information is transmitted, and the ball rental request information is transmitted from the management device 620 to the ball number control unit 600. When receiving the ball lending request information from the management device 620, the ball number control unit 600 adds the number of balls to the numerical value stored in the ball lending number storage area of the RAM.

ステップS1211では、遊技球数設定処理を行う。この遊技球数設定処理では、上述のエラーステータス記憶領域から、乱数クロック異常を示す情報等を読み出し、いずれのエラーも発生していない場合に、遊技球数設定処理を行う。いずれかのエラーが発生している場合には、主制御部300からの賞球数の情報(賞球コマンド)、管理装置620からの球貸要求情報、球数要求情報を受付けないようにしている。   In step S1211, a game ball number setting process is performed. In this game ball number setting process, information indicating random number clock abnormality is read from the above-described error status storage area, and if any error has not occurred, the game ball number setting process is performed. If any error has occurred, the information on the number of prize balls (prize ball command) from the main control unit 300, the ball lending request information from the management device 620, and the ball number request information should not be accepted. Yes.

遊技球数設定処理では、上述のポート入力処理(ステップS1201)で検出した球検出センサ604B(減算センサ604Z、入賞検出センサ604S、非入賞検出センサ604K)と、主制御部タイマ割込みの賞球コマンド送信処理ステップ(図13のステップS219)によって主制御部300から送信される賞球コマンド、計数球数記憶領域に記憶されている計数球数、貸球数記憶領域に記憶されている貸球数、再プレイ球数記憶領域に記憶されている再プレイ球数、イン球数記憶領域に記憶されているイン球数などに応じて、遊技球数を更新するが、これについては後述する。   In the game ball number setting process, the ball detection sensor 604B (subtraction sensor 604Z, winning detection sensor 604S, non-winning detection sensor 604K) detected in the above-described port input process (step S1201), and the main controller timer interrupted winning ball command Prize ball command transmitted from the main control unit 300 in the transmission processing step (step S219 in FIG. 13), the number of counted balls stored in the counted ball number storage area, and the number of lent balls stored in the lent number storage area The game ball number is updated according to the replay ball number stored in the replay ball number storage area, the in ball number stored in the in ball number storage area, and the like, which will be described later.

ステップS1213では、LED処理を行う。このLED処理では、パチンコ機100がエラー状態になった場合に、エラーが発生していることを遊技者に報知するためのLED(例えば、パチンコ機100の上部に配設されたLEDや、遊技盤200の背面側に設けられた基板表示部630)を点灯させるとともに、エラーが解消した場合には、そのLEDを消灯させる。例えば、入賞数異常エラーフラグがセットされている場合には、入賞数異常エラーが発生していることを遊技者に報知するためのLEDを点灯させるとともに、入賞数異常エラーフラグがクリアされた場合には、そのLEDを消灯させる。   In step S1213, LED processing is performed. In this LED processing, when the pachinko machine 100 is in an error state, an LED for notifying the player that an error has occurred (for example, an LED disposed on the upper part of the pachinko machine 100, a game The substrate display unit 630 provided on the back side of the panel 200 is turned on, and when the error is resolved, the LED is turned off. For example, when the winning number abnormality error flag is set, the LED for notifying the player that a winning number abnormality error has occurred is turned on and the winning number abnormality error flag is cleared. The LED is turned off.

ステップS1215では、信号出力管理処理を行う。この信号出力管理処理では、例えば、後述する出力信号記憶領域に記憶されている出力情報に基づいて、管理装置620に向けてEXS信号を出力する。具体的には、出力信号記憶領域に「要求了解」の出力情報が記憶されている場合には、EXS信号としてLowの信号を出力し、出力信号記憶領域に「貸出完了」の出力情報が記憶されている場合には、EXS信号としてHiの信号を出力する。また、RAMに記憶している遊技情報を、情報出力回路334を介してパチンコ機100とは別体の情報入力回路652に出力する。
<遊技球数設定処理>
In step S1215, signal output management processing is performed. In this signal output management process, for example, an EXS signal is output to the management device 620 based on output information stored in an output signal storage area described later. Specifically, when output information of “request acknowledged” is stored in the output signal storage area, a Low signal is output as the EXS signal, and output information of “rental completion” is stored in the output signal storage area If it is, a Hi signal is output as the EXS signal. Further, the game information stored in the RAM is output to an information input circuit 652 that is separate from the pachinko machine 100 via the information output circuit 334.
<Game ball number setting process>

次に、遊技球数設定処理について説明する。遊技球数は、例えば以下の式1により算出される。   Next, the game ball number setting process will be described. The number of game balls is calculated by, for example, the following formula 1.

更新後遊技球数=更新前遊技球数+貸球数+賞球数+再プレイ球数−イン球数−計数球数 (式1)     Number of game balls after update = number of game balls before update + number of rented balls + number of winning balls + number of replayed balls−number of in-balls−number of counted balls (Formula 1)

遊技球数制御部600は、数球数制御部600のRAMに、貸球数記憶領域、賞球数記憶領域、イン球数記憶領域、計数球数記憶領域、再プレイ球数記憶領域、を設けている。更新前遊技球数は、更新前に遊技球数記憶領域に記憶されている数値(遊技球数)である。   The game ball number control unit 600 stores a rented ball number storage area, a prize ball number storage area, an in-ball number storage area, a counted ball number storage area, and a replay ball number storage area in the RAM of the number ball number control unit 600. Provided. The number of game balls before update is a numerical value (number of game balls) stored in the game ball number storage area before update.

例えば、上記のステップS1201において、減算センサ604Zで機内球710の通過が検出された場合には、減算センサ604Z用の入力信号情報記憶領域にフラグ「1(オン)」が設定される。遊技球数設定処理ではこのフラグを判定し、オンの場合は、イン球数記憶領域に記憶されている値を読出し1を加算して元のイン球数記憶領域に記憶する。   For example, when the subtraction sensor 604Z detects the passage of the in-flight ball 710 in step S1201, the flag “1 (ON)” is set in the input signal information storage area for the subtraction sensor 604Z. In the game ball number setting process, this flag is determined. When the flag is on, the value stored in the in-ball number storage area is read, 1 is added, and the original in-ball number storage area is stored.

また、例えばステップS1201において、入賞検出センサ604Sで機内球710の通過が検出された場合、入賞検出センサ604S用の入力信号情報記憶領域にフラグ「1(オン)」が設定される。遊技球数設定処理ではこのフラグを判定しオンの場合には、賞球数記憶領域に記憶されている値を読出し、主制御部300から受信した賞球コマンドの賞球数を加算して元の賞球数記憶領域に記憶する。   For example, when the winning detection sensor 604S detects the passage of the in-flight ball 710 in step S1201, the flag “1 (ON)” is set in the input signal information storage area for the winning detection sensor 604S. In the game ball number setting process, when this flag is determined and turned on, the value stored in the prize ball number storage area is read, and the number of prize balls of the prize ball command received from the main control unit 300 is added to the original ball number. Is stored in the award ball number storage area.

また、例えばステップS1201において、計数ボタン652の押下が検出された場合、計数ボタン652用の入力信号情報記憶領域に「1(オン)」が設定されるとともに、計数球数が記憶される。遊技球数設定処理ではこのフラグを判定しオンの場合には、計数球数記憶領域に記憶されている数値を読出し、計数球数を加算して元の計数球数記憶領域に記憶する。   For example, in step S1201, when the pressing of the counting button 652 is detected, “1 (on)” is set in the input signal information storage area for the counting button 652, and the counting ball number is stored. In the game ball number setting process, when this flag is determined and turned on, the numerical value stored in the count ball number storage area is read, and the count ball number is added and stored in the original count ball number storage area.

尚、球貸ボタン140が押下された場合には、例えばステップS1209のIU通信処理において、貸球球数記憶領域に貸球数が加算される。また、再プレイボタン146が押下された場合には、例えばステップS1209のIU通信処理において、再プレイ数球数記憶領域に記憶されている数値を読出し、再プレイ球数を加算して元の再プレイ球数記憶領域に記憶されている。   When the ball lending button 140 is pressed, for example, in the IU communication process in step S1209, the number of lent balls is added to the number of lent balls storage area. When the replay button 146 is pressed, for example, in the IU communication processing in step S1209, the numerical value stored in the replay number ball storage area is read, and the replay ball number is added to the original replay number. It is stored in the play ball number storage area.

そして、貸球数記憶領域、賞球数記憶領域、イン球数記憶領域、計数球数記憶領域、再プレイ球数記憶領域および遊技球数記憶領域に記憶されている数値を用いて式1により更新後遊技球数を算出し、元の遊技球数記憶領域に記憶することで、遊技球数を更新する。また、遊技球数記憶領域の(更新後の)遊技球数を、球数表示部640に表示する。   Then, using the numerical values stored in the rented ball number storage area, the winning ball number storage area, the in-ball number storage area, the counted ball number storage area, the replay ball number storage area, and the game ball number storage area, The updated number of game balls is calculated and stored in the original game ball number storage area, thereby updating the number of game balls. Further, the number of game balls (after update) in the game ball number storage area is displayed on the ball number display unit 640.

例えば、機内球710の発射直後で、球数UI部680の操作がされておらず、またいずれの入賞口等にも入賞していない状態では、イン球数記憶領域のみに「1」が記憶され、貸球数記憶領域、賞球数記憶領域、計数球数記憶領域、再プレイ球数記憶領域に記憶されている値は「0」である。その状態で遊技球数が更新されると、更新前遊技球数から1が減算され、その更新後遊技球数が遊技球数記憶領域に設定されるとともに球数表示部640に表示される。これにより、機内球710の1個の発射で、発射可能な遊技球数が1つ減ったことを遊技者に報知できる。   For example, immediately after the in-flight ball 710 is fired, “1” is stored only in the in-ball number storage area when the ball UI unit 680 is not operated and no winning opening is awarded. In addition, the value stored in the number-of-balls storage area, the number of winning balls storage area, the number of counted balls storage area, and the number of replayed balls stored is “0”. When the number of game balls is updated in this state, 1 is subtracted from the number of game balls before update, and the number of game balls after update is set in the game ball number storage area and displayed on the ball number display unit 640. Thereby, it is possible to notify the player that the number of game balls that can be fired has decreased by one by firing one in-flight ball 710.

遊技球数の更新後は、貸球数記憶領域、賞球数記憶領域、イン球数記憶領域、計数球数記憶領域、最プレイ球数記憶領域の数値および、ステップS1201で設定する減算センサ604Z用の入力信号情報記憶領域、入賞検出センサ604S用および非入賞検出センサ604K用の入力信号情報記憶領域、計数ボタン652用の入力信号情報記憶領域にそれぞれ「0」を設定(フラグをオフに)する。   After the number of game balls is updated, the number of rented balls, the number of winning balls, the number of in-balls, the number of counting balls, the number of the most played balls, and the subtraction sensor 604Z set in step S1201. "0" is set in each of the input signal information storage area for use, the input signal information storage area for the winning detection sensor 604S and the non-winning detection sensor 604K, and the input signal information storage area for the counting button 652 (the flag is turned off). To do.

なお、賞球数については、例えば賞球数記憶領域を複数準備し、入賞検出センサ604Sおよび非入賞検出センサ604K用の入力信号情報記憶領域を複数準備してもよい。1つの賞球数記憶領域には主制御部300から受信した1つの賞球コマンドに基づく賞球数を記憶し、複数の賞球数を蓄積的に記憶する。また、入賞検出センサ604Sおよび非入賞検出センサ604Kで検出する毎に、入力信号情報記憶領域にフラグを設定する。フラグは例えば、入賞検出センサ604Sで検出した場合は「オン」、非入賞検出センサ604Kで検出した場合は「オフ」というように、これらを蓄積的に記憶する。そして、遊技球数設定処理において、これらを順次比較し、入力信号情報記憶領域のフラグが「オン」の場合に賞球数記憶領域の賞球数を取得して、式1にて算出するものであってもよい。   As for the number of winning balls, for example, a plurality of winning ball storage areas may be prepared, and a plurality of input signal information storage areas for the winning detection sensor 604S and the non-winning detection sensor 604K may be prepared. In one prize ball number storage area, the number of prize balls based on one prize ball command received from the main control unit 300 is stored, and a plurality of prize balls are stored in an accumulated manner. Further, a flag is set in the input signal information storage area every time it is detected by the winning detection sensor 604S and the non-winning detection sensor 604K. The flags are stored in an accumulative manner, for example, “ON” when detected by the winning detection sensor 604S and “OFF” when detected by the non-winning detection sensor 604K. Then, in the game ball number setting process, these are sequentially compared, and when the flag of the input signal information storage area is “ON”, the number of prize balls in the prize ball number storage area is acquired and calculated according to Equation 1. It may be.

尚、球数制御部600は、領域内球数がゼロの場合でも、主制御部300から球数制御部600に賞球コマンドが送信されている場合には、球数制御部600は遊技球数を更新するものとしてもよい。   Even if the number of balls in the area is zero, the ball number control unit 600 determines that the ball number control unit 600 is a game ball when a prize ball command is transmitted from the main control unit 300 to the ball number control unit 600. The number may be updated.

また、主制御部300から球数制御部600に賞球コマンドが送信された後、非入賞検出センサ604Kにおいて機内球710が検出され、その結果、領域内球数がゼロになった場合でも、球数制御部600は、遊技球数を更新するものとしてもよい。   In addition, even after the prize ball command is transmitted from the main control unit 300 to the ball number control unit 600, the in-flight ball 710 is detected by the non-winning detection sensor 604K, and as a result, the number of balls in the area becomes zero. The ball number control unit 600 may update the number of game balls.

また、主制御部300から球数制御部600に賞球コマンドが送信された後、入賞検出センサ604Sにおいて機内球710が検出される以前であっても、球数制御部600は、遊技球数を更新するものとしてもよい。   In addition, even after the prize ball command is transmitted from the main control unit 300 to the ball number control unit 600 and before the in-flight ball 710 is detected by the winning detection sensor 604S, the ball number control unit 600 does not change the number of game balls. May be updated.

また球数制御部600は、主制御部300から始動口(第1特図始動口230、第2特図始動口232)への入賞を報知する賞球コマンドを受信した場合は、領域内球数がゼロであっても、主制御部300にそれぞれの始動口に対応した図柄変動遊技を開始させるように構成されてもよい。   In addition, when the ball number control unit 600 receives a prize ball command for notifying the winning from the main control unit 300 to the start opening (the first special figure start opening 230 and the second special figure start opening 232), Even if the number is zero, the main control unit 300 may be configured to start the symbol variation game corresponding to each starting port.

また球数制御部600は、主制御部300から始動口(第1特図始動口230、第2特図始動口232)への入賞を報知する賞球コマンドを受信した後に、非入賞検出センサ604Kにおいて機内球710が検出され、その結果、領域内球数がゼロになった場合でも、主制御部300にそれぞれの始動口に対応した図柄変動遊技を開始させるように構成されてもよい。   In addition, the ball number control unit 600 receives a winning ball command for notifying the winning from the main control unit 300 to the starting port (first special figure starting port 230, second special figure starting port 232), and then a non-winning detection sensor. Even when the in-flight ball 710 is detected at 604K and, as a result, the number of balls in the area becomes zero, the main control unit 300 may be configured to start the symbol variation game corresponding to each start port.

また、球数制御部600は、主制御部300から始動口(第1特図始動口230、第2特図始動口232)への入賞を報知する賞球コマンドを受信した後、入賞検出センサ604Sにおいて機内球710が検出される以前であっても、主制御部300にそれぞれの始動口に対応した図柄変動遊技を開始させるように構成されてもよい。   In addition, the ball number control unit 600 receives a winning ball command for notifying the winning from the main control unit 300 to the starting port (first special figure starting port 230, second special figure starting port 232), and then a winning detection sensor. Even before the in-flight ball 710 is detected in 604S, the main control unit 300 may be configured to start the symbol variation game corresponding to each start port.

また、球数制御部600は、主制御部300から普図始動口228への入賞を報知する賞球コマンドを受信した場合は、領域内球数がゼロであっても、主制御部300に普図変動遊技を開始させるように構成されてもよい。   In addition, when the number of balls control unit 600 receives a prize ball command for notifying the winning to the usual figure starting port 228 from the main control unit 300, the number of balls in the area is zero. You may be comprised so that a common figure variable game may be started.

また球数制御部600は、主制御部300から普図始動口228への入賞を報知する賞球コマンドを受信した後に、非入賞検出センサ604Kにおいて機内球710が検出され、その結果、領域内球数がゼロになった場合でも、主制御部300に普図変動遊技を開始させるように構成されてもよい。   In addition, the ball number control unit 600 detects the in-flight ball 710 in the non-winning detection sensor 604K after receiving the prize ball command for notifying the winning to the general start port 228 from the main control unit 300, and as a result, Even when the number of balls becomes zero, the main control unit 300 may be configured to start the usual variable game.

また、球数制御部600は、主制御部300から普図始動口228への入賞を報知する賞球コマンドを受信した後、入賞検出センサ604Sにおいて機内球710が検出される以前であっても、主制御部300に普図変動遊技を開始させるように構成されてもよい。   In addition, the ball number control unit 600 receives a prize ball command for notifying the winning to the normal start port 228 from the main control unit 300 and before the in-flight ball 710 is detected by the prize detection sensor 604S. The main control unit 300 may be configured to start a usual variable game.

さらに、ここでは遊技球数の更新処理を、球数制御部割込み処理で行う場合を例に説明したが、主制御部割込み処理で行うものであってもよい。
<パチンコ機と管理装置の通信手順>
Furthermore, although the case where the game ball number update process is performed by the ball number control unit interrupt process has been described as an example here, the game ball number update process may be performed by the main control unit interrupt process.
<Communication procedure between pachinko machine and management device>

本実施形態の球数制御部600は、例えば遊技者の計数ボタンの押下や、返却ボタン142のタッチなどによって、遊技球の量(遊技球数、計数球数など)に関する情報を管理装置620に送信することを指令された場合、遊技領域124に機内球710が存在しており、遊技領域124の機内球710が全て排出される以前であっても(領域内球数が存在する場合であっても)、遊技球の量に関する情報を管理装置620に送信することが可能である。   The ball number control unit 600 according to the present embodiment provides information regarding the amount of game balls (the number of game balls, the number of counted balls, etc.) to the management device 620 by, for example, pressing the count button of the player or touching the return button 142. When instructed to transmit, there is an in-flight ball 710 in the gaming area 124, and even before all the in-flight balls 710 in the gaming area 124 are discharged (the number of in-area balls is present). However, it is possible to transmit information regarding the amount of game balls to the management device 620.

また、遊技球の量に関する情報とは、遊技球数情報、計数情報が含まれ、より具体的には、遊技球数、計数球数、持ち球数、ICカードに記憶されている貯球あるいは、ICカードに記憶されて遊技球に交換可能な電子マネーの残高などである。この残高は、ICカードから読み出した残高またはICカードに記憶させる残高等でもよい。また貯球とは、ICカードから読み出した貯球またはICカードに記憶させる貯球でもよい。ICカードは、例えば、会員カードとして遊技者の個人情報が登録できるものであってもよい。   The information on the amount of game balls includes game ball number information and counting information. More specifically, the number of game balls, the number of counting balls, the number of possessed balls, the stored balls stored in the IC card or The balance of electronic money stored in an IC card and exchangeable for a game ball. This balance may be the balance read from the IC card or the balance stored in the IC card. The stored ball may be a stored ball read from an IC card or a stored ball stored in an IC card. The IC card may be one that can register the player's personal information as a membership card, for example.

また、球数制御部600は、例えば遊技者の計数ボタン652の押下や、返却ボタン142のタッチによって、遊技球の量に関する情報を管理装置620に送信することを指令された場合、その時点で発射レール624に搬送されている機内球710の発射装置622による発射を待機し、発射後に遊技球の量に関する情報を管理装置620に送信することが可能である。   In addition, when the ball number control unit 600 is instructed to transmit information regarding the amount of game balls to the management device 620 by pressing the count button 652 of the player or touching the return button 142, for example, at that time It is possible to wait for the launching device 622 of the in-flight ball 710 transported to the launching rail 624 to wait, and to transmit information regarding the amount of game balls to the management device 620 after launching.

また、球数制御部600は、遊技者からICカードの返却指定を管理装置620に送信することを指令された場合(返却ボタン142がタッチされた場合)、遊技領域124に機内球710が存在していても、遊技球の量に関する情報を管理装置620に送信することが可能である。   In addition, when the player is instructed by the player to send an IC card return designation to the management device 620 (when the return button 142 is touched), the in-flight ball 710 exists in the game area 124. Even so, it is possible to transmit information regarding the amount of game balls to the management device 620.

具体的に例を挙げて説明すると、例えば計数ボタン652が押下されたことを球数制御部600が検出した場合、その時点で、発射準備中の機内球710の有無によらず、また、遊技領域124に機内球710が存在していても(発射した機内球710の入賞が確定する以前であっても)、遊技球数から計数球数を減算し、更新後の遊技球数、計数球数などを含む情報(計数情報)を管理装置620に送信する。   Specifically, for example, when the ball number control unit 600 detects that the count button 652 is pressed, at that time, regardless of the presence of the in-flight ball 710 being prepared for launch, Even if the in-flight ball 710 exists in the area 124 (even before the winning of the launched in-flight ball 710 is confirmed), the number of counted balls is subtracted from the number of gaming balls, and the updated number of gaming balls and counting balls Information including the number and the like (counting information) is transmitted to the management device 620.

遊技領域124を落下する機内球710が全て排出されるまでは所定の時間がかかるが、このようにすることで、速やかに当該情報をICカードに記録することができるので、例えばICカードの返却指示があった場合等に、速やかに返却することが可能となる。   Although it takes a predetermined time until all the in-flight balls 710 falling on the game area 124 are discharged, this information can be quickly recorded on the IC card. For example, returning the IC card It can be returned promptly when instructed.

また、球数制御部600が例えば計数ボタン652が押下されたこと検出した場合、その時点で(あるいは押下を検出後、最初に)発射レール624に準備されている機内球710の発射が完了するまで待機し、発射完了後に遊技球数から1を減算し、更に計数球数を減算する。そして減算後の遊技球数、計数球数などを含む情報(計数情報)を管理装置620に送信するものとしてもよい。この場合も、球数制御部600は、遊技領域124に機内球710が存在していても(発射した機内球710の入賞が確定する以前であっても)、計数情報を管理装置620に送信することができる。   Further, when the ball number control unit 600 detects that the counting button 652 is pressed, for example, the firing of the in-flight ball 710 prepared on the firing rail 624 is completed at that time (or first after the pressing is detected). 1 is subtracted from the number of game balls after the completion of firing, and the number of counted balls is further subtracted. Information (counting information) including the number of game balls and the number of counted balls after subtraction may be transmitted to the management device 620. Also in this case, the ball number control unit 600 transmits the count information to the management device 620 even if the in-flight ball 710 exists in the game area 124 (even before the winning of the launched in-flight ball 710 is confirmed). can do.

このようにすることで、速やかに当該情報のICカードへの記録は可能としつつ、操作検出時に準備されている機内球710は消費したものとして遊技球数に反映されるので、正確な遊技球数を送信できる。   In this way, while the information can be quickly recorded on the IC card, the in-flight ball 710 prepared at the time of detecting the operation is reflected in the number of game balls as consumed, so an accurate game ball You can send a number.

しかしこれに限らず、球数制御部600は計数ボタン652の操作があったこと検知した場合、機内球710が遊技領域124から全て排出された後(入賞検出センサ604S、非入賞検出センサ604Kによる機内球710の通過の検出があった後)、計数情報を管理装置620に送信するものであってもよい。この場合、その時点の遊技球数から操作検出時(あるいはその直後の)機内球710の発射分と、計数球数の減算は行って遊技球数を更新するが、遊技領域124に残存する機内球710がある場合には、それらの入賞判定を待たずに(賞球数を加算せずに)計数情報を送信するものとしてもよい。発射した機内球710の数とその排出の数を検出することで、循環する機内球710が正常であることを確認した上で、計数情報を管理装置620に送信できる。   However, the present invention is not limited to this, and when the ball number control unit 600 detects that the counting button 652 has been operated, the in-flight ball 710 is completely discharged from the game area 124 (by the winning detection sensor 604S and the non-winning detection sensor 604K). The count information may be transmitted to the management device 620 after the passage of the in-flight ball 710 is detected. In this case, from the number of game balls at that time, the number of shots of the in-flight ball 710 at the time of operation detection (or immediately after that) and the number of counted balls are subtracted to update the number of game balls. If there is a ball 710, the counting information may be transmitted without waiting for the winning determination (without adding the number of winning balls). By detecting the number of fired in-flight balls 710 and the number of discharges thereof, it is possible to transmit the count information to the management device 620 after confirming that the circulating in-flight balls 710 are normal.

また、球数制御部600は、計数ボタン652の操作があったこと検知した場合、機内球710が遊技領域124から全て排出され、これらのうちで入賞したものがあれば、操作検出時の遊技球数から発射された機内球710分(1個)と計数球数の減算を行い、且つすべての入賞口等に対応する賞球の付与(賞球数の加算)がされた後に、計数情報を管理装置620に送信するものとしてもよい。このようにすることで、正確な遊技球数を管理装置620に送信することができる。   In addition, when the ball number control unit 600 detects that the counting button 652 is operated, all the in-flight balls 710 are ejected from the game area 124, and if there is a winning game among these, the game at the time of detecting the operation is performed. Count information after subtracting the number of in-flight balls 710 minutes (one piece) from the number of balls and the number of counted balls, and giving award balls (adding the number of prize balls) corresponding to all winning holes, etc. May be transmitted to the management apparatus 620. In this way, an accurate number of game balls can be transmitted to the management device 620.

また、球数UI部680は、返却ボタン142のタッチがあった時点で遊技領域124に機内球710が残っていても、返却操作情報を管理装置620に送信可能とする。また当該返却操作情報を受信した管理装置620が球数要求情報を球数制御部600に送信した場合、球数制御部600では、その時点で、発射準備中の機内球710があっても、また、遊技領域124に機内球710が残っていても、その時に主制御部300から受信している賞球コマンドがあればその賞球数を遊技球数に加算し、遊技球数情報を管理装置620に送信可能とする。遊技領域124に機内球710が存在している場合、全ての機内球710が排出されるまでは所定の時間がかかるが、これにより、速やかにICカードの返却が可能となる。   In addition, the ball count UI unit 680 enables transmission of return operation information to the management device 620 even if the in-flight ball 710 remains in the game area 124 when the return button 142 is touched. In addition, when the management device 620 that has received the return operation information transmits the ball number request information to the ball number control unit 600, the ball number control unit 600 has an in-flight ball 710 in preparation for launch at that time. Even if the in-flight ball 710 remains in the game area 124, if there is a prize ball command received from the main control unit 300 at that time, the number of prize balls is added to the number of game balls, and the game ball number information is managed. Transmission to the device 620 is enabled. When in-flight balls 710 are present in the game area 124, it takes a predetermined time until all the in-flight balls 710 are ejected. This makes it possible to quickly return the IC card.

あるいは、返却操作情報を受信した管理装置620が球数要求情報を球数制御部600に送信した場合、球数制御部600は、その時点で(あるいは操作を検知後、最初に)発射レール624に準備されている機内球710の発射が完了するまで待機し、発射完了後に遊技球数から1を減算し、その時に主制御部300から受信している賞球コマンドがあればその賞球数を遊技球数に加算し、遊技球数情報を管理装置620に送信するものとしてもよい。この場合、遊技領域124に機内球710が残存していても(発射した機内球710の入賞が確定する以前であっても)、遊技球数情報を管理装置620に送信することができる。このようにすることで、ICカードの速やかな返却が可能となる上、正確な遊技球数を送信できる。   Alternatively, when the management device 620 that has received the return operation information transmits the ball number request information to the ball number control unit 600, the ball number control unit 600 may start the firing rail 624 at that time (or first after detecting the operation). And wait until the in-flight ball 710 prepared is completed, subtract 1 from the number of game balls after the completion of the launch, and if there is a prize ball command received from the main control unit 300 at that time, the number of prize balls May be added to the number of game balls, and the number of game balls information may be transmitted to the management device 620. In this case, even if the in-flight ball 710 remains in the game area 124 (even before the winning of the launched in-flight ball 710 is confirmed), the game ball number information can be transmitted to the management device 620. In this way, the IC card can be returned promptly, and an accurate number of game balls can be transmitted.

しかしこれに限らず、球数制御部600は球数UI部680の操作があったこと検知した場合、機内球710が遊技領域124から全て排出された後(入賞検出センサ604S、非入賞検出センサ604Kによる機内球710の通過の検出があった後)、遊技球数を管理装置620に送信するものであってもよく、この場合、遊技球数から最後に発射された機内球710の減算とその時に主制御部300から受信している賞球コマンドがあればその賞球数の加算は行って遊技球数を更新するが、遊技領域124に残存する機内球710がある場合には、それらの入賞判定を待たずに(賞球数を加算せずに)遊技球数を送信するものとしてもよい。発射した機内球710の数とその排出した数を検出することで、循環する機内球710が正常であることを確認した上で、遊技球数情報を管理装置620に送信できる。   However, the present invention is not limited to this. When the ball number control unit 600 detects that the ball number UI unit 680 has been operated, the in-flight ball 710 is completely discharged from the game area 124 (winning detection sensor 604S, non-winning detection sensor). After the detection of the passing of the in-flight ball 710 by 604K), the number of game balls may be transmitted to the management device 620. In this case, the subtraction of the last in-flight ball 710 emitted from the number of game balls and If there is a prize ball command received from the main control unit 300 at that time, the number of prize balls is added to update the number of game balls. If there are in-flight balls 710 remaining in the game area 124, It is also possible to transmit the number of game balls without waiting for the winning determination (without adding the number of prize balls). By detecting the number of fired in-flight balls 710 and the number of discharged in-flight balls 710, it is possible to transmit game ball number information to the management device 620 after confirming that the circulating in-flight balls 710 are normal.

また、球数制御部600は、球数UI部680の操作があったこと検知した場合、操作検出時の遊技球数から発射された機内球710の減算を行い、機内球710が遊技領域124から全て排出され、これらのうちで入賞したものがあれば、すべての入賞口等に対応する賞球の付与がされた後に、遊技球数情報を管理装置620に送信するものとしてもよい。このようにすることで、正確な遊技球数を管理装置620に送信することができる。   In addition, when the ball number control unit 600 detects that the ball number UI unit 680 is operated, the ball number 710 is subtracted from the number of game balls at the time of detecting the operation, and the ball 710 is played in the game area 124. If there is a prize that has been won from all of these, a prize ball corresponding to all the prize-winning holes or the like is given, and the game ball number information may be transmitted to the management device 620. In this way, an accurate number of game balls can be transmitted to the management device 620.

また、球数制御部600は、返却ボタン142が操作されてから、所定時間以内に計数ボタン652の操作があった場合、遊技球数記憶領域の遊技球数のすべてを計数球数とした計数情報(または計数情報を含む遊技球数情報)を管理装置620に通知し(遊技球数記憶領域の遊技球数は0)、管理装置620は、貯球数等をICカードに記憶した後、ICカードを返却する構成としてもよい。   In addition, when the count button 652 is operated within a predetermined time after the return button 142 is operated, the ball count control unit 600 counts all the game balls in the game ball count storage area as the count balls. Information (or game ball number information including count information) is notified to the management device 620 (the number of game balls in the game ball number storage area is 0), and the management device 620 stores the number of stored balls, etc. in the IC card, It is good also as a structure which returns an IC card.

また、球数制御部600は、計数ボタン654操作後に返却ボタン142が操作された場合は、その時点の遊技球数から計数球数を減算した新たな遊技球数と計数球数を遊技球数情報として管理装置620に送信してもよい。管理装置620は、遊技球数情報のうち、計数球数(貯球数)をICカードに記憶した後、ICカードを返却する。   In addition, when the return button 142 is operated after the count button 654 is operated, the ball number control unit 600 calculates the new game ball number obtained by subtracting the count ball number from the current game ball number and the count ball number as the game ball number. Information may be transmitted to the management device 620 as information. The management device 620 returns the IC card after storing the number of counted balls (the number of stored balls) in the game ball number information in the IC card.

また、遊技者が挿入したICカードとは異なる他のICカードを返却する構成としてもよい。例えば、所定の記憶球数が記憶された第1のICカードが遊技者によって管理装置620に挿入され、遊技が行われることで球数制御部600の遊技球数記憶領域に所定の遊技球数が記憶された状態で、計数ボタン654を押下することなくICカードの返却が指定された場合には、これとは別の第2のICカードを返却する構成としてもよい。第2のICカードは、例えば管理装置620に備える新たなICカードでもよいし、第1のICカードとは別に(第1のICカードの挿入後に)管理装置620に挿入されたICカードでもよい。この場合の第2のICカードは、遊技者が所持するICカードでもよいし、第三者の所持するICカードでもよい。   Moreover, it is good also as a structure which returns another IC card different from the IC card which the player inserted. For example, a predetermined number of game balls is stored in the game ball number storage area of the ball number control unit 600 when a player inserts a first IC card storing a predetermined number of memory balls into the management device 620 and plays a game. When the return of the IC card is designated without pressing the counting button 654 in a state where is stored, a second IC card different from this may be returned. The second IC card may be a new IC card provided in the management device 620, for example, or may be an IC card inserted into the management device 620 separately from the first IC card (after insertion of the first IC card). . The second IC card in this case may be an IC card possessed by a player or an IC card possessed by a third party.

一例を挙げると以下の通りである。遊技開始時に管理装置620内の第1のICカードに記憶されている記憶球数は15個である。遊技者が球貸ボタン140をタッチし、例えば10個の球貸しを受ける。パチンコ機100の球数制御部600の遊技球数記憶領域に記憶されている遊技球数が10個(遊技開始時には0個)となり、ICカード内の記憶球数は5個となる。遊技者が計数ボタン652を押下することなく、返却ボタン142をタッチすると、5個の記憶球数が記憶された第1のICカードが返却される。遊技者は第1のICカードとは別に、20個の記憶球数が記憶されて第2のICカードを有しており、これを管理装置620に挿入し、計数ボタン652を押下し、例えば10個の計数操作を行う。これにより、管理装置620に挿入されている第2のICカードの記憶球数は、30個となる。遊技者が返却ボタン142をタッチすると、第2のICカードが返却される。   An example is as follows. The number of memory balls stored in the first IC card in the management device 620 at the start of the game is fifteen. The player touches the ball lending button 140 and receives, for example, 10 ball lending. The number of game balls stored in the game ball number storage area of the ball number control unit 600 of the pachinko machine 100 is 10 (0 at the start of the game), and the number of storage balls in the IC card is 5. When the player touches the return button 142 without pressing the counting button 652, the first IC card in which five memory balls are stored is returned. In addition to the first IC card, the player has a second IC card that stores 20 memory balls, inserts it into the management device 620, presses the count button 652, Ten counting operations are performed. As a result, the number of storage balls of the second IC card inserted in the management device 620 is thirty. When the player touches the return button 142, the second IC card is returned.

また、例えば、所定の持ち球数が記憶された第1のICカードが遊技者によって管理装置620に挿入され、遊技が行われ、球数制御部600の遊技球数記憶領域に所定の遊技球数が記憶された状態で、計数ボタン654を押下することなく、ICカードの返却が指定された場合には、第1のICカードを返却するとともに、これとは別の第2のICカードに現在の遊技球数を記憶して返却する構成としてもよい。第2のICカードは、例えば管理装置620に備える新たなICカードでもよいし、第1のICカードとは別に(第1のICカードの挿入後に)管理装置620に挿入されたICカードでもよい。この場合の第2のICカードは、遊技者が所持するICカードでもよいし、第三者の所持するICカードでもよい。   Further, for example, a first IC card in which a predetermined number of possessed balls is stored is inserted into the management device 620 by the player, a game is played, and a predetermined game ball is stored in the game ball number storage area of the ball number control unit 600. If the return of the IC card is designated without pressing the counting button 654 in the state where the number is stored, the first IC card is returned and another second IC card is returned. It is good also as a structure which memorize | stores and returns the present number of game balls. The second IC card may be a new IC card provided in the management device 620, for example, or may be an IC card inserted into the management device 620 separately from the first IC card (after insertion of the first IC card). . The second IC card in this case may be an IC card possessed by a player or an IC card possessed by a third party.

一例を挙げると以下の通りである。遊技開始時に管理装置620内の第1のICカードに記憶されている記憶球数は15個である。遊技者が球貸ボタン140をタッチし、例えば10個の球貸しを受ける。パチンコ機100の球数制御部600の遊技球数記憶領域に記憶されている遊技球数が10個(遊技開始時には0個)となり、ICカード内の記憶球数は5個となる。遊技者が計数ボタン652を押下することなく、返却ボタン142をタッチすると、5個の記憶球数が記憶された第1のICカードが返却される。遊技者は管理装置620にICカードを挿入することなく、計数ボタン652を押下し、例えば10個の計数操作を行う。これにより、管理装置620が備える新品の第2のICカードに10個の記憶球数が記憶され、当該第2のICカードが返却される。   An example is as follows. The number of memory balls stored in the first IC card in the management device 620 at the start of the game is fifteen. The player touches the ball lending button 140 and receives, for example, 10 ball lending. The number of game balls stored in the game ball number storage area of the ball number control unit 600 of the pachinko machine 100 is 10 (0 at the start of the game), and the number of storage balls in the IC card is 5. When the player touches the return button 142 without pressing the counting button 652, the first IC card in which five memory balls are stored is returned. The player presses the counting button 652 without inserting an IC card into the management device 620, and performs, for example, 10 counting operations. Thereby, ten storage balls are memorize | stored in the new 2nd IC card with which the management apparatus 620 is equipped, and the said 2nd IC card is returned.

<パチンコ機と管理装置の通信手順の具体例> <Specific example of communication procedure between pachinko machine and management device>

図18から図22を参照して、パチンコ機100の球数制御部600および球数UI部680と、管理装置620との通信手順の具体例について説明する。   With reference to FIG. 18 to FIG. 22, a specific example of a communication procedure between the ball number control unit 600 and the ball number UI unit 680 of the pachinko machine 100 and the management device 620 will be described.

まず図18は、遊技開始時など、ICカードが管理装置620に挿入され、球貸操作が行われる場合のパチンコ機100と管理装置620の通信手順を示すシーケンスチャートである。   First, FIG. 18 is a sequence chart showing a communication procedure between the pachinko machine 100 and the management device 620 when an IC card is inserted into the management device 620 and a ball lending operation is performed, such as at the start of a game.

管理装置620に電子マネーがチャージされたICカードが挿入されると(1)、管理装置620はチャージ金額(残高)と交換可能な遊技球数(貸球数の上限、例えば500個)を算出し、当該遊技球数を球数UI部680に球数更新指令として送信する(2)。球数更新指令に基づき球数UI部680は、画像表示部656に、貯球数および残高を報知する画像を表示するとともに、操作可能なボタン(球貸ボタン140、返却ボタン142等)を明るく表示するなどして、遊技者に入力を促す。球数UI部680は、遊技者が例えば入力操作部654の球貸ボタン140をタッチしたことを検出した場合(3)、球貸ボタン140の押下回数や押下時間などに応じた貸球の情報(球貸操作情報)を管理装置620に送信する(4)。球貸操作情報を受信した管理装置620は、要求された貸球数(例えば、100個)をICカードに記憶された貯球数または残高から貸し出すこと(球貸要求情報)を球数制御部600に送信する(5)。球貸要求情報を受信した球数制御部600は、要求された貸球数を遊技球数に加算し、球数表示部640に表示する。遊技開始時には球数制御部600の遊技球数記憶領域の遊技球数は初期化されており、最初の球貸操作で要求された貸球数が遊技球数として球数制御部600の遊技球数記憶領域に記憶される。管理装置620は、球貸操作によって変更が生じた、遊技球数に関する各種情報(例えば、貯球数や残高)を球数更新指令として、球数UI部680に送信する(6)。球数UI部680は、球数更新指令に基づき、画像表示部656にそれぞれの情報を表示する。   When an IC card charged with electronic money is inserted into the management device 620 (1), the management device 620 calculates the number of game balls (upper limit of the number of rented balls, for example, 500) that can be exchanged for a charge amount (balance). Then, the game ball number is transmitted to the ball number UI unit 680 as a ball number update command (2). Based on the ball number update command, the ball number UI unit 680 displays on the image display unit 656 an image for reporting the number of stored balls and the balance, and brightens operable buttons (ball lending button 140, return button 142, etc.). Prompt the player for input by displaying it. When detecting that the player has touched the ball lending button 140 of the input operation unit 654, for example (3), the number of balls UI unit 680 rents information according to the number of times the ball lending button 140 is pressed or the time it is pressed. (Ball lending operation information) is transmitted to the management device 620 (4). Upon receiving the ball lending operation information, the management device 620 lends the requested number of lending (for example, 100) from the number of stored balls or the balance stored in the IC card (ball lending request information). (5). Upon receiving the ball lending request information, the ball number controller 600 adds the requested number of balls to the number of game balls and displays it on the ball number display unit 640. At the start of the game, the number of game balls in the game ball number storage area of the ball number control unit 600 is initialized, and the number of balls requested by the first ball lending operation is the game ball number of the ball number control unit 600 as the number of game balls. It is stored in the number storage area. The management device 620 transmits various information related to the number of game balls (for example, the number of stored balls and the balance) that has been changed by the ball lending operation as a ball number update command to the ball number UI unit 680 (6). The ball number UI unit 680 displays each information on the image display unit 656 based on the ball number update command.

図19は、ICカードが管理装置620に挿入された状態において、遊技者から遊技球数に関する情報を管理装置620に送信する指令を受付けた場合のパチンコ機100と管理装置620の通信手順を示すシーケンスチャートであって、遊技球数に関する情報が、ICカードの返却指示である場合を示す。   FIG. 19 shows a communication procedure between the pachinko machine 100 and the management device 620 when an instruction for transmitting information regarding the number of game balls from the player to the management device 620 is received in a state where the IC card is inserted into the management device 620. It is a sequence chart, and shows a case where the information regarding the number of game balls is an IC card return instruction.

パチンコ機100は、遊技者から、ICカードの返却の指示を受付けた場合、すなわち、ICカードの返却に際し、球数制御部600の遊技球数記憶領域の遊技球数(遊技球数情報)を管理装置620に送信する指示(球数要求情報)を受付けた場合、遊技領域124に残存する機内球710の有無にかかわらず、遊技球数情報を管理装置620に送信し、ICカードの返却を可能とする。ここでは一例として、遊技球数情報は、返却操作があった時点で(あるいはその直後に)発射レール624に準備されている機内球710の発射が完了するに十分な時間を待機する遅延処理を行った後、管理装置620に送信する場合のタイミングチャートを示している。   When the pachinko machine 100 receives an IC card return instruction from a player, that is, when the IC card is returned, the pachinko machine 100 determines the number of game balls (game ball number information) in the game ball number storage area of the ball number control unit 600. When an instruction (ball number request information) to be transmitted to the management device 620 is accepted, the game ball number information is transmitted to the management device 620 regardless of the presence of the in-flight ball 710 remaining in the game area 124, and the IC card is returned. Make it possible. Here, as an example, the game ball number information is a delay process that waits for a sufficient time to complete the launch of the in-flight ball 710 prepared on the launch rail 624 when (or immediately after) the return operation is performed. The timing chart in the case of transmitting to the management apparatus 620 after performing is shown.

球数UI部680は、ICカードが管理装置620に挿入され(図示省略)、管理装置620が球数更新指令を球数UI部680に送信している状態(図示省略)で、球数UI部680が返却ボタン142のタッチがあったことを検出すると(1)、返却操作情報を管理装置620に送信し(2)、管理装置620は、最新の遊技球数の情報を得るため、球数要求情報を球数制御部600に送信する(3)。ここで、球数要求情報は、遊技終了要求情報としてもよく、以下の説明においても同様である。球数制御部600は、タイマなどを用いた遅延処理などによって、球数要求情報を受信した時点で(あるいは受信後最初に)発射レール624に準備されている機内球710の発射が完了するまでの十分な時間(例えば発射された機内球710が遊技領域124から排出されるまでの最長時間)が経過したと判断した後に、遊技球数から発射した1個を減算して、更新された遊技球数を遊技球数情報(5)として管理装置620に送信する。   The ball number UI unit 680 is configured such that an IC card is inserted into the management device 620 (not shown), and the management device 620 transmits a ball number update command to the ball number UI unit 680 (not shown). When the unit 680 detects that the return button 142 has been touched (1), the return operation information is transmitted to the management device 620 (2), and the management device 620 obtains the latest information on the number of game balls. The number request information is transmitted to the ball number control unit 600 (3). Here, the ball number request information may be game end request information, and the same applies to the following description. The ball number control unit 600 receives the ball number request information by a delay process using a timer or the like (or first after reception) until the in-flight ball 710 prepared on the launch rail 624 is completed. After the game has determined that a sufficient amount of time has elapsed (for example, the longest time until the fired in-flight ball 710 is ejected from the game area 124), the updated game is obtained by subtracting one shot from the number of game balls. The number of balls is transmitted to the management device 620 as game ball number information (5).

一方で、球数制御部600は、遊技領域124の領域内球数の有無によらず、遊技球数情報を管理装置620に送信可能である(4)(5)。遊技球数情報を受信した管理装置620は、貯球数等をICカードに記憶してこれを返却する(6)。また管理装置620は、更新された遊技球数に関する情報を球数更新指令として球数UI部680に送信する(7)。球数UI部680は、画像表示部656に更新された遊技球数に関する情報を表示する。   On the other hand, the ball number control unit 600 can transmit the game ball number information to the management device 620 regardless of the presence or absence of the in-area ball number of the game area 124 (4) (5). Receiving the game ball number information, the management device 620 stores the number of balls stored in the IC card and returns it (6). In addition, the management device 620 transmits information regarding the updated number of game balls to the ball number UI unit 680 as a ball number update command (7). The number-of-balls UI unit 680 displays information regarding the updated number of game balls on the image display unit 656.

たとえば、返却ボタン142の操作があった場合、発射レールに準備されている機内球710の発射を完了してから遊技球数情報を管理装置620に送信し、ICカードを返却する仕様となっている場合、返却ボタン142をタッチしたにもかかわらず、遊技者が球発射ハンドル134を操作しないでいると、ICカードが返却されない場合がある。このような場合、機内球710が発射され遊技領域124から排出される最長時間の経過後には、実際の発射がなくても発射されたとみなして、遊技球数を1個減算して遊技球数情報を管理装置620に送信することで、ICカードを返却することができる。   For example, when the return button 142 is operated, the game ball number information is transmitted to the management device 620 after completing the launch of the in-flight ball 710 prepared on the launch rail, and the IC card is returned. If the player does not operate the ball launch handle 134 even though the return button 142 is touched, the IC card may not be returned. In such a case, after the elapse of the longest time that the in-flight ball 710 is fired and discharged from the game area 124, it is considered that the ball has been fired even if there is no actual fire, and the number of game balls is decremented by one. By sending the information to the management device 620, the IC card can be returned.

図20は、図19と同様に、ICカードが管理装置620に挿入された状態において、遊技者から遊技球数に関する情報を管理装置620に送信する指令を受付けた場合のパチンコ機100と管理装置620の通信手順を示すシーケンスチャートであって、遊技球数に関する情報が、球貸し操作指示および、ICカードの返却指示である場合を示す。   FIG. 20 shows the pachinko machine 100 and the management apparatus when an instruction to transmit information related to the number of game balls to the management apparatus 620 is received from the player in a state where the IC card is inserted into the management apparatus 620, as in FIG. 620 is a sequence chart showing a communication procedure of 620, in which the information regarding the number of game balls is a ball lending operation instruction and an IC card return instruction.

この場合も、球数要求情報を受信した球数制御部600は、発射準備されている遊技球の発射が完了した後、遊技球数情報を管理装置620に送信する例を示すが、発射の完了は、図19で示した遅延処理に替えて、減算センサ604Zにて検出する場合について説明する。   In this case as well, the ball number control unit 600 that has received the ball number request information shows an example in which the game ball number information is transmitted to the management device 620 after the game ball that has been prepared for launching has been launched. The case where the completion is detected by the subtraction sensor 604Z instead of the delay process shown in FIG. 19 will be described.

例えば、ICカードが管理装置620に挿入されると(1)、管理装置620が貸出可能な遊技球数の情報を含む球数更新指令を球数UI部680に送信する(2)。球数更新指令に基づき、画像表示部656に貯球数等が表示されるとともに、球数更新指令を受信した球数UI部680は、操作可能なボタンを明るく表示するなどして、遊技者に入力を促す。球数UI部680は、遊技者が例えば入力操作部654の球貸ボタン140をタッチしたことを検出した場合(3)、球貸ボタン140に対応する貸球数の情報を含む球貸操作情報を管理装置620に送信する(4)。球貸操作情報を受信した管理装置620は、球数制御部600に、貸球数の情報を含む球貸要求情報を送信する(5)。球貸要求情報を受信した球数制御部600は、貸球数を遊技球数に加算する。また、管理装置620は、貸球によって更新された遊技球数に関する情報を、球数更新指令として球数UI部680に送信する(6)。   For example, when an IC card is inserted into the management device 620 (1), the management device 620 transmits a ball number update command including information on the number of game balls that can be lent to the ball number UI unit 680 (2). Based on the ball number update command, the number of stored balls and the like are displayed on the image display unit 656, and the ball number UI unit 680 that has received the ball number update command displays a button that can be operated brightly. Prompt for input. When detecting that the player has touched the ball lending button 140 of the input operation unit 654 (3), the ball number UI unit 680 detects ball lending operation information including information on the number of balls lending corresponding to the ball lending button 140. Is transmitted to the management apparatus 620 (4). The management device 620 that has received the ball lending operation information transmits ball lending request information including information on the number of balls lending to the ball number control unit 600 (5). The ball number control unit 600 that has received the ball lending request information adds the number of balls lending to the number of game balls. In addition, the management device 620 transmits information regarding the number of game balls updated by renting a ball to the ball number UI unit 680 as a ball number update command (6).

球貸しを受けた遊技者は、例えば、遊技の開始に際して球数UI部680(画像表示部658)の表示画像を遊技領域124の装飾図柄表示装置208に表示される画像に切り替えたい場合、球数UI部680の切替ボタン144をタッチする。球数制御部600がこれを検出すると(7)、例えば、第2副制御部500がおよび管理装置620が表示装置切替部670を制御して、画像表示部658の画像を切り替える。   For example, when a player who has received a ball rental wants to switch the display image of the ball number UI unit 680 (image display unit 658) to the image displayed on the decorative symbol display device 208 in the game area 124 at the start of the game, The switch button 144 of the number UI unit 680 is touched. When the ball number control unit 600 detects this (7), for example, the second sub-control unit 500 and the management device 620 control the display device switching unit 670 to switch the image of the image display unit 658.

遊技者が遊技を開始し、球発射ハンドル134が操作されると、機内球710が遊技領域に発射される。これが減算センサ604Zで検出され(8)、以降遊技が続けられる。遊技中に、遊技者が返却ボタン142をタッチしたことを球数UI部680が検出した場合(9)、球数UI部680は、ICカードを返却する指示(返却操作情報)を管理装置620に送信する(10)。返却操作情報を受信した管理装置620は、球数制御部600に球数要求情報を送信する(11)。球数要求情報を受信した球数制御部600は、その時点で発射レール624に準備された(あるいはその後最初に発射レール624に準備される)機内球710の発射を待機する。すなわち、球数制御部600は、発射の準備がされている1個の機内球710の発射を検出した(減算センサ604Zで機内球710の通過を検出した)後(12)遊技球数から1個を減算し、更新した遊技球数を遊技球数情報として管理装置620に送信する(13)。一方で、球数制御部600は、領域内球数の有無によらず、遊技球数情報を管理装置620に送信可能である。遊技球数情報を受信した管理装置620は、貯球数等をICカードに記憶し、これを返却する(14)。また管理装置620は、更新された遊技球数に関する情報を球数更新指令として球数UI部680に送信する(15)。球数UI部680は、更新された遊技球数に関する情報を画像表示部656に表示する。   When the player starts playing and the ball launch handle 134 is operated, the in-flight ball 710 is launched into the game area. This is detected by the subtraction sensor 604Z (8), and the game is continued thereafter. When the ball UI unit 680 detects that the player touches the return button 142 during the game (9), the ball UI unit 680 sends an instruction (return operation information) to return the IC card to the management device 620. (10). The management device 620 that has received the return operation information transmits the ball number request information to the ball number control unit 600 (11). Upon receiving the ball number request information, the ball number control unit 600 waits for the launch of the in-flight ball 710 prepared on the launch rail 624 (or first prepared on the launch rail 624 after that). That is, the ball number controller 600 detects the launch of one in-flight ball 710 that is ready for launch (detects the passage of the in-flight ball 710 by the subtraction sensor 604Z). (12) 1 from the number of game balls The number of game balls is subtracted and the updated number of game balls is transmitted to the management device 620 as game ball number information (13). On the other hand, the ball number control unit 600 can transmit the game ball number information to the management device 620 regardless of the presence or absence of the number of balls in the area. Receiving the game ball number information, the management device 620 stores the number of balls stored in the IC card and returns it (14). In addition, the management device 620 transmits information regarding the updated number of game balls to the ball number UI unit 680 as a ball number update command (15). The number-of-balls UI unit 680 displays information regarding the updated number of game balls on the image display unit 656.

図21は、ICカードが管理装置620に挿入され、遊技者から遊技球数に関する情報を管理装置620に送信する指令(例えば計数ボタン652の押下)を受付けた場合のパチンコ機100と管理装置620の通信手順を示すシーケンスチャートである。   FIG. 21 shows the pachinko machine 100 and the management apparatus 620 when an IC card is inserted into the management apparatus 620 and a command (for example, pressing of the counting button 652) for transmitting information related to the number of game balls to the management apparatus 620 is received from the player. It is a sequence chart which shows the communication procedure.

パチンコ機100は、遊技者から管理装置620に送信する遊技球数に関する指令として、計数ボタン652の押下を受付けた場合も、領域内球数の有無や発射を待機する機内球710の有無にかかわらず、遊技球数に関する情報を管理装置620に送信可能とする。   Even if the pachinko machine 100 accepts the pressing of the counting button 652 as a command related to the number of game balls transmitted from the player to the management device 620, the pachinko machine 100 does not depend on the presence of the number of balls in the area or the presence of the ball 710 waiting for launch. First, information related to the number of game balls can be transmitted to the management device 620.

具体的に説明すると、管理装置620にICカードが挿入され、例えば遊技が開始されている状態で、球数制御部600が計数ボタン652の押下を検出すると(1)、計数ボタン652の押下回数や押下時間に応じた計数球数を計数情報として管理装置620に送信する(2)。この時、球数制御部600は、遊技領域124の残存する機内球710の有無にかかわらず、遊技球数から計数球数を減じ、計数球数と減算後の遊技球数を含む計数情報を管理装置620に送信する。計数情報を受信した管理装置620は、ICカードに貯球数および残高などを記憶するとともに更新された遊技球数に関する情報を球数更新指令として球数UI部680に送信する(3)。球数UI部680は、画像表示部656に更新された遊技球数に関する情報を表示する。   Specifically, when the IC card is inserted into the management device 620 and the game is started, for example, when the ball number control unit 600 detects pressing of the counting button 652 (1), the number of pressing of the counting button 652 And the number of counting balls corresponding to the pressing time is transmitted to the management device 620 as counting information (2). At this time, the ball number control unit 600 subtracts the counted ball number from the number of game balls regardless of the presence of the in-flight ball 710 remaining in the game area 124, and obtains count information including the counted ball number and the number of game balls after subtraction. It transmits to the management apparatus 620. The management device 620 that has received the count information stores the number of stored balls, the balance, and the like in the IC card, and transmits information regarding the updated number of game balls to the ball number UI unit 680 as a ball number update command (3). The number-of-balls UI unit 680 displays information regarding the updated number of game balls on the image display unit 656.

図22は、計数ボタン652が押下された場合の他の形態を説明するための、パチンコ機100と管理装置620の通信手順を示すシーケンスチャートである。   FIG. 22 is a sequence chart showing a communication procedure between the pachinko machine 100 and the management device 620 for explaining another form when the counting button 652 is pressed.

球数制御部600は、管理装置620への計数情報を送信する場合に、計数ボタン652操作時に(操作後最初に)発射レール624に準備されていた機内球710が発射完了となるまで待機した後に送信するものとしてもよい。   When transmitting the count information to the management device 620, the ball number control unit 600 waits until the in-flight ball 710 prepared on the launch rail 624 is completely fired when the count button 652 is operated (first after the operation). It may be transmitted later.

例えば、ICカードが管理装置620に挿入されると(1)、管理装置620が球数更新指令を球数UI部680に送信する(2)。球数更新指令に基づき画像表示部656に貯球数などを表示するとともに、球数更新指令を受信した球数UI部680は、操作可能なボタンを明るく表示するなどして、遊技者に入力を促す。球数UI部680は、遊技者が例えば入力操作部654の球貸ボタン140をタッチしたことを検出した場合(3)、球貸操作情報を管理装置620に送信する(4)。球貸操作情報を受信した管理装置620は、球数制御部600に、球貸要求情報を送信する(5)。これを受信した球数制御部600は、遊技球数に貸球数を加算する。管理装置620は、加算後の遊技球数に関する情報を、球数更新指令を球数UI部680に送信する(6)。貸球を受けた遊技者は、遊技開始にともない、例えば、入力操作部654の切替ボタン144を押下して(7)、画像表示部656に表示させる画像を、装飾図柄表示装置208の表示画像と同じ画像に切り替える。遊技者が球発射ボタン134を操作すると、機内球710が遊技領域124に発射され、これを減算センサ604Zが検出し(8)、以後遊技が行われる。   For example, when the IC card is inserted into the management device 620 (1), the management device 620 transmits a ball number update command to the ball number UI unit 680 (2). The number of stored balls is displayed on the image display unit 656 based on the ball number update command, and the ball number UI unit 680 that has received the ball number update command displays the operable buttons brightly to input to the player. Prompt. When detecting that the player has touched the ball lending button 140 of the input operation unit 654 (3), the ball number UI unit 680 transmits ball lending operation information to the management device 620 (4). The management device 620 that has received the ball lending operation information transmits the ball lending request information to the ball number control unit 600 (5). Upon receiving this, the ball number control unit 600 adds the number of rented balls to the number of game balls. The management device 620 transmits information regarding the number of game balls after the addition to the ball number UI unit 680 as a ball number update command (6). The player who has received the rented ball, for example, presses the switch button 144 of the input operation unit 654 (7) at the start of the game, and displays an image to be displayed on the image display unit 656 as a display image on the decorative symbol display device 208. Switch to the same image as. When the player operates the ball launch button 134, the in-flight ball 710 is launched into the game area 124, which is detected by the subtraction sensor 604Z (8), and the game is performed thereafter.

遊技中に、計数ボタン652の操作があったことを球数制御部600が検出した場合(9)、球数制御部600は、計数球数を遊技球数から減算しこの情報を管理装置620に送信するが、ここでは、計数ボタン652の操作があった後に機内球710の発射を待機して、計数球数等の情報を管理装置620に送信する。   When the ball number control unit 600 detects that the count button 652 has been operated during the game (9), the ball number control unit 600 subtracts the count ball number from the game ball number, and this information is managed by the management device 620. Here, after the count button 652 is operated, the in-flight ball 710 is awaited to be launched, and information such as the number of counted balls is transmitted to the management device 620.

つまり、計数ボタン652の操作があったこと検出した時点で発射レール624に準備されている、あるいは操作があったこと検出した後最初に発射レール624に準備される機内球710の発射を、減算センサ604Zによって検出した後、遊技球数から発射した遊技球数分(1個)と計数球数とを減算し、減算後の遊技球数および計数球数などを遊技球数情報として管理装置620に送信(11)する。管理装置620は、貯球数をICカードに記憶する。   In other words, the firing of the in-flight ball 710 that is prepared on the firing rail 624 when it is detected that the counting button 652 is operated, or is first prepared after the detection of the operation is subtracted. After being detected by the sensor 604Z, the number of game balls (one) launched from the number of game balls is subtracted from the number of counted balls, and the management device 620 uses the number of game balls and the number of counted balls after the subtraction as game ball number information. (11). The management device 620 stores the number of stored balls in the IC card.

あるいは、計数ボタン652の操作があったことを検出した時に、発射レール624に準備されている機内球710の発射が完了するまでの十分な時間(例えば発射された機内球710が遊技領域124から排出されるまでの最長時間)が経過したと判断した後(タイマ等による遅延処理を行った後)に、遊技球数記憶領域の遊技球数から発射した機内球710数分(1個)と計数球数とを減算し、減算後の遊技球数と計数球数を含む遊技球数情報を管理装置620に送信(11)するようにしてもよい。   Alternatively, when it is detected that the counting button 652 has been operated, a sufficient time until the firing of the in-flight ball 710 prepared on the firing rail 624 is completed (for example, the fired in-flight ball 710 is removed from the gaming area 124). After determining that the longest time until discharge has elapsed (after performing a delay process using a timer or the like), the number of in-flight balls 710 (1) fired from the number of game balls in the game ball number storage area The number of counted balls may be subtracted, and the number of game balls after the subtraction and the number of game balls including the counted number of balls may be transmitted (11) to the management device 620.

遊技球数情報を受信した管理装置620は、更新された遊技球数に関する情報を球数更新指令として球数UI部680に送信する。一方で、球数制御部600は、遊技領域124の残存球の有無によらず、遊技球数情報を管理装置620に送信可能である(10)。   The management device 620 that has received the game ball number information transmits information regarding the updated game ball number to the ball number UI unit 680 as a ball number update command. On the other hand, the ball number control unit 600 can transmit the game ball number information to the management device 620 regardless of the presence or absence of remaining balls in the game area 124 (10).

尚、図示は省略するが、図20または図22において、機内球710が遊技領域124から全て排出された(入賞検出センサ604S,非入賞検出センサ604Kで検出した後)ことを球数制御部600が検出した後に、計数情報を管理装置620に送信してもよい。更に、遊技領域124から機内球710が全て排出されたことを検出し、入賞があった場合には、すべての入賞口等に対応する賞球の付与(遊技球数への賞球数の加算)があった後に、当該遊技球数から計数球数を減算し、計数情報を管理装置620に送信するものとしてもよい。
<表示画像の切替処理>
Although not shown in the drawing, in FIG. 20 or FIG. 22, the ball number control unit 600 indicates that all the in-flight balls 710 have been discharged from the game area 124 (after being detected by the winning detection sensor 604S and the non-winning detection sensor 604K). The count information may be transmitted to the management device 620 after the detection. Further, when it is detected that all the in-flight balls 710 have been ejected from the game area 124 and there has been a prize, awarding of the prize balls corresponding to all the prize-winning ports and the like (adding the number of prize balls to the number of game balls) ), The count ball number may be subtracted from the game ball number, and the count information may be transmitted to the management device 620.
<Display image switching process>

次に、図23から図25を参照して、球数UI部680の画像表示部656に表示される画像の切替について説明する。   Next, switching of images displayed on the image display unit 656 of the ball count UI unit 680 will be described with reference to FIGS.

図23は、画像表示部656にICカード内の情報が表示されている通常状態のパチンコ機100の概要を示す図であり、図23(a)が正面図であり、図23(b)が画像表示部656の表示画像の一例である。   FIG. 23 is a diagram showing an outline of the pachinko machine 100 in a normal state in which information in the IC card is displayed on the image display unit 656, FIG. 23 (a) is a front view, and FIG. 23 (b) is a diagram. 4 is an example of a display image of an image display unit 656.

同図(a)を参照して、遊技中のパチンコ機100の装飾図柄表示装置208の例えば、演出表示領域208dには、遊技の状態に応じて、第1副制御部400が生成した第1の画像(例えば背景画像や演出画像)822が表示されている。   Referring to FIG. 5A, in the decoration display device 208 of the pachinko machine 100 in the game, for example, in the effect display area 208d, the first sub-control unit 400 generated according to the state of the game. The images (for example, background images and effect images) 822 are displayed.

一方、球数UI部680では、タッチパネル(入力操作部654)に切替ボタン144、返却ボタン142、球貸ボタン140などが表示されるとともに、画像表示部656には、管理装置620が生成した第2の画像820a、820bが表示される。第2の画像820a、820bは例えば、貯球や残高などの遊技球に関する情報を報知するための画像(情報報知画像)である。この状態で切替ボタン144を押下すると、画像表示部656に表示する画像を、第1の画像822に切り替えることができる。   On the other hand, in the ball count UI unit 680, the switch button 144, the return button 142, the ball lending button 140, and the like are displayed on the touch panel (input operation unit 654), and the image display unit 656 generates the first generated by the management device 620. Two images 820a and 820b are displayed. The second images 820a and 820b are images (information notification images) for notifying information about game balls such as stored balls and balances, for example. When the switch button 144 is pressed in this state, the image displayed on the image display unit 656 can be switched to the first image 822.

図24は、切替後のパチンコ機100の概要を示す図であり、図24(a)が正面図であり、図24(b)が球数UI部680の表示画像の一例である。   FIG. 24 is a diagram illustrating an outline of the pachinko machine 100 after switching, FIG. 24A is a front view, and FIG. 24B is an example of a display image of the ball count UI unit 680.

切替ボタン144を押下すると、例えば管理装置620および第2副制御部500は、表示装置切替部670の切替回路を制御し、管理装置620で生成され、管理装置620から受信していた第2の画像820a、820bに替えて、第1副制御部400で生成され第1副制御部400から受信する第1の画像に切り替える。なおこの例では、第1の画像に第2の画像も合わせて表示している。   When the switch button 144 is pressed, for example, the management device 620 and the second sub-control unit 500 control the switching circuit of the display device switching unit 670, and the second generated by the management device 620 and received from the management device 620. Instead of the images 820a and 820b, the image is switched to the first image generated by the first sub-control unit 400 and received from the first sub-control unit 400. In this example, the second image is also displayed together with the first image.

さらに詳しく説明すると、球数UI部680の画像表示部656には、図14(d)に示す第1副制御部400の画像制御処理と同様の処理によって、通常(遊技開始直後)は、管理装置620から送信される貯球や残高の情報を報知するための第2の画像820a、820bが、例えば、管理装置620の画像制御部で生成され、画像表示部656に表示されている。   More specifically, the image display unit 656 of the ball count UI unit 680 is normally managed (just after the game is started) by the same process as the image control process of the first sub-control unit 400 shown in FIG. Second images 820 a and 820 b for notifying information on the storage balls and balance transmitted from the device 620 are generated by, for example, the image control unit of the management device 620 and displayed on the image display unit 656.

この場合に切替ボタン144が押下されると、表示装置切替部670の切替回路は、図14(d)のステップS601(画像転送指示)の処理において転送(生成)される画像データを、貯球や残高を報知する第2の画像820a、820bのデータから、第1副制御部400が装飾図柄表示装置208に表示するために生成している第1の画像822のデータ(例えば、背景画像や演出画像のデータ)に切り替える。これにより、画像表示部656には、装飾図柄表示装置208に表示される画像と同じ第1画像822が表示される。このようにすることで、多彩な演出が可能となり、遊技者の興趣を高めることができる。   In this case, when the switch button 144 is pressed, the switching circuit of the display device switching unit 670 stores the image data transferred (generated) in the process of step S601 (image transfer instruction) in FIG. Data of the first image 822 generated by the first sub-control unit 400 for display on the decorative symbol display device 208 from the data of the second images 820a and 820b for reporting the balance and the balance (for example, the background image and Switch to effect image data). Thereby, the same first image 822 as the image displayed on the decorative symbol display device 208 is displayed on the image display unit 656. By doing in this way, various productions are possible and the interest of the player can be enhanced.

尚、上記の例に限らず、管理装置620が表示装置切替部670の切替回路を制御して、画像を切り替えるものであってもよいし、管理装置620および表示装置切替部670が画像を切り替えるものであってもよいし、表示装置切替部670が画像を切り替えるものであってもよい。また、第2の画像は、第2副制御部500が生成する画像であってもよい。   The management device 620 may switch the image by controlling the switching circuit of the display device switching unit 670, and the management device 620 and the display device switching unit 670 switch the image. The display device switching unit 670 may switch images. In addition, the second image may be an image generated by the second sub control unit 500.

また、この場合であっても同図(b)の如く、入力操作部654や貯球や残高などの情報報知画像は配置を変更するなどして表示してもよい。   Even in this case, as shown in FIG. 5B, the information display image such as the input operation unit 654, the stored ball, and the balance may be displayed by changing the arrangement.

図25は切替後の画像表示部656の他の形態を示す図である。切替後の画像表示部656は、装飾図柄表示装置208の表示領域(例えば、演出表示領域208d)より大きく、広範囲に表示するものとしてもよい。また、情報報知画像である第2の画像280a、280bや入力操作部654の一部が、装飾図柄表示装置208に表示される画像と同時に表示され、切替ボタン144をタッチする毎に、表示される情報報知画像や入力操作部654が切り替わる構成としてもよい。   FIG. 25 is a diagram showing another form of the image display unit 656 after switching. The image display unit 656 after switching may be larger than the display area (for example, the effect display area 208d) of the decorative symbol display device 208 and may be displayed in a wide range. In addition, the second images 280a and 280b, which are information notification images, and a part of the input operation unit 654 are displayed at the same time as the image displayed on the decorative symbol display device 208, and are displayed every time the switch button 144 is touched. The information notification image and the input operation unit 654 may be switched.

また、装飾図柄表示装置208と同じ画像ではなく、関連する他の画像を表示してもよい。さらに図示は省略するが、装飾図柄表示装置208に表示される画像ではなく、別途、切替画像用に準備された画像を表示するものとしてもよい。   Moreover, you may display other related images instead of the same image as the decorative design display apparatus 208. Furthermore, although illustration is omitted, an image prepared for the switching image may be displayed instead of the image displayed on the decorative symbol display device 208.

表示装置切替部670は、例えば、入力操作部654から入力された情報A(例えば、再プレイボタン146の操作)を、パチンコ機100の制御部および管理装置620の制御部620aのいずれにも送信する。制御部は、表示装置切替部670が第1副制御部400によって生成された第1の画像822(例えば、演出画像)を球数UI部680の画像表示装置565に表示している場合は、情報Aを用いた処理(例えば、遊技画像の表示)を行う。一方で、表示装置切替部670が管理装置620によって生成された第2の画像820a、820b(例えば、情報報知画像)を、画像表示装置565に表示している場合は、情報Aを用いた処理を無視する構成としてもよい。   For example, the display device switching unit 670 transmits the information A (for example, operation of the replay button 146) input from the input operation unit 654 to both the control unit of the pachinko machine 100 and the control unit 620a of the management device 620. To do. When the display device switching unit 670 displays the first image 822 (for example, effect image) generated by the first sub-control unit 400 on the image display device 565 of the ball number UI unit 680, the control unit Processing using information A (for example, display of a game image) is performed. On the other hand, when the display device switching unit 670 displays the second images 820a and 820b (for example, information notification images) generated by the management device 620 on the image display device 565, processing using the information A It is good also as a structure which ignores.

また、表示装置切替部670が、情報A(例えば、計数ボタン652の操作)を、パチンコ機100の制御部および管理装置620の制御部620aのいずれにも送信するものである場合、表示装置切替部670が第1副制御部400によって生成された第1の画像822(例えば、演出画像)および管理装置620によって生成された第2の画像820a、820b(例えば、情報報知画像)のいずれを球数UI部680の画像表示装置565に表示しているかに関わらず、制御部、情報Aを用いた処理を行うものとしてもよい。   Further, when the display device switching unit 670 transmits the information A (for example, operation of the counting button 652) to both the control unit of the pachinko machine 100 and the control unit 620a of the management device 620, the display device switching is performed. The unit 670 uses either the first image 822 (for example, effect image) generated by the first sub-control unit 400 or the second image 820a, 820b (for example, information notification image) generated by the management device 620 as a sphere. Regardless of whether or not the image is displayed on the image display device 565 of the number UI unit 680, processing using the control unit and the information A may be performed.

あるいは、表示装置切替部670は入力操作部654から入力された情報A(例えば、切替ボタン144の操作)を、パチンコ機100または管理装置620のいずれか一方に送信するものであってもよい。このような構成において、表示装置切替部670は、パチンコ機100の第1副制御部400によって生成された第1の画像820(例えば、演出画像)を球数UI部680の画像表示装置565に表示している場合は、情報Aを制御部に送信する。一方で、表示装置切替部670が管理装置620によって生成された第2の画像820a、820b(例えば、情報報知画像)を、画像表示装置565に表示している場合は、情報Aを管理装置620に送信するものとしてもよい。   Alternatively, the display device switching unit 670 may transmit the information A (for example, operation of the switching button 144) input from the input operation unit 654 to either the pachinko machine 100 or the management device 620. In such a configuration, the display device switching unit 670 causes the first image 820 (for example, effect image) generated by the first sub control unit 400 of the pachinko machine 100 to be displayed on the image display device 565 of the ball count UI unit 680. If displayed, information A is transmitted to the control unit. On the other hand, when the display device switching unit 670 displays the second images 820a and 820b (for example, information notification images) generated by the management device 620 on the image display device 565, the information A is managed by the management device 620. It is good also as what is transmitted to.

さらに、表示装置切替部670は、球数UI部680の画像表示部565に表示する画像を、例えば、第1副制御部400で生成された画像、および管理装置620が生成した画像のうちいずれか一方を表示する状態と、いずれの画像も表示する状態とに切り替えて表示可能としてもよい。
<表示切替の変形例>
Furthermore, the display device switching unit 670 displays an image to be displayed on the image display unit 565 of the ball count UI unit 680, for example, any of an image generated by the first sub control unit 400 and an image generated by the management device 620. It is possible to switch between a state in which one of the images is displayed and a state in which any image is displayed.
<Modification of display switching>

図26を参照して、表示切替の他の実施形態について説明する。図26は、表示切替の他の実施形態のパチンコ機100および管理装置620を説明するための回路ブロック図である。   With reference to FIG. 26, another embodiment of display switching will be described. FIG. 26 is a circuit block diagram for explaining a pachinko machine 100 and a management device 620 according to another embodiment of display switching.

このパチンコ機100では、球数UI部680は、インターフェース部606を介して球数制御部600と双方向に接続し、パチンコ機100は、例えば、前面枠扉106の一部に枠側表示装置682を備えており、枠側表示装置682は、第2副制御部500の画像制御部(VDP534、VRAM536など)と接続する。これ以外の構成は、第1の実施形態と同様であるので、説明は省略する。   In the pachinko machine 100, the ball number UI unit 680 is bidirectionally connected to the ball number control unit 600 via the interface unit 606, and the pachinko machine 100 includes a frame side display device, for example, on a part of the front frame door 106. The frame side display device 682 is connected to the image control unit (VDP 534, VRAM 536, etc.) of the second sub control unit 500. Since the configuration other than this is the same as that of the first embodiment, the description thereof is omitted.

また、このパチンコ機100では、球数UI部680は、パチンコ機100の第1副制御部400が生成した画像(例えば背景画像や演出画像)を表示することはできず、例えば管理装置620に設けられた画像制御部(VDP、VRAMなど)から送信される画像データを含む情報(管理装置620が生成した報知情報画像など)を表示することが可能である。一方、パチンコ機100の第2副制御部500は、枠側表示装置682に、第1副制御部400が生成した画像(例えば、背景画像や演出画像など)を表示することができる。   In the pachinko machine 100, the ball count UI unit 680 cannot display an image (for example, a background image or an effect image) generated by the first sub-control unit 400 of the pachinko machine 100. For example, the management device 620 Information including image data transmitted from a provided image control unit (VDP, VRAM, etc.) (such as a notification information image generated by the management device 620) can be displayed. On the other hand, the second sub control unit 500 of the pachinko machine 100 can display an image (for example, a background image or an effect image) generated by the first sub control unit 400 on the frame side display device 682.

この場合、球数UI部680の入力操作部654から入力された情報A(例えば計数ボタン652の操作)は、パチンコ機100には送信されず、管理装置620に送信される。   In this case, the information A (for example, operation of the counting button 652) input from the input operation unit 654 of the ball count UI unit 680 is not transmitted to the pachinko machine 100 but is transmitted to the management device 620.

<主制御部と球数制御部のシリアル通信> <Serial communication between main controller and ball controller>

以下、図27から図40を参照して、パチンコ機100の主制御部300と球数制御部600のシリアル通信について詳細に説明する。なおこれ以降は、図7(b)に示すように減算センサ604Zの位置が、球送り装置616と発射装置622の間にある場合を例に説明する。   Hereinafter, serial communication between the main control unit 300 and the ball number control unit 600 of the pachinko machine 100 will be described in detail with reference to FIGS. 27 to 40. Hereinafter, a case where the position of the subtraction sensor 604Z is between the ball feeding device 616 and the launching device 622 as shown in FIG. 7B will be described as an example.

図27は、パチンコ機100の主制御部300と球数制御部600のシリアル通信を説明するブロック図であり、図27(a)は、シリアル通信回路の概略ブロック図であり、図27(b)は、主制御部300と球数制御部600シリアル通信に関するレジスタを説明するブロック図である。また図27(c)は、主制御部300と球数制御部600シリアル通信の流れを説明するブロック図である。   FIG. 27 is a block diagram illustrating serial communication between the main control unit 300 and the ball number control unit 600 of the pachinko machine 100. FIG. 27A is a schematic block diagram of a serial communication circuit, and FIG. ) Is a block diagram illustrating a register relating to serial communication between the main control unit 300 and the ball number control unit 600. FIG. 27C is a block diagram for explaining the flow of serial communication between the main control unit 300 and the ball number control unit 600.

同図(a)を参照して説明すると、パチンコ機100は、主制御部300を構成する主基板156に実装されるなどした主制御部用マイクロコンピュータ760と、球数制御部600を構成する球数制御基板170に実装されるなどした球数制御部用マイクロコンピュータ770を有する。主制御部用マイクロコンピュータ760と、球数制御部用マイクロコンピュータ770は、それぞれシリアル通信回路750、752を内蔵し、信号(例えば、賞球コマンド)をシリアル通信で送受信することができる。   Referring to FIG. 2A, the pachinko machine 100 constitutes a main controller microcomputer 760 mounted on a main board 156 constituting the main controller 300, and a ball number controller 600. It has a sphere number control unit microcomputer 770 mounted on the sphere number control board 170. The main control unit microcomputer 760 and the ball number control unit microcomputer 770 include serial communication circuits 750 and 752, respectively, and can transmit and receive signals (for example, prize ball commands) by serial communication.

同図(b)の如く、シリアル通信回路750,752は、4チャンネル(Ch0、Ch1、Ch2、Ch3)の回路を内蔵している。すべてのチャンネルは機能的に独立しており、送信部と受信部を有して送受信が可能なチャンネルと、送信部のみを有し送信のみが可能なチャンネルがある。主制御部用マイクロコンピュータ760と球数制御部用マイクロコンピュータ770のシリアル通信には、送受信が可能なチャンネル(Ch0)を使用する。また、シリアル通信回路750、752は、FIFOモードで動作する。送信は64バイト、受信は8バイトがFIFOとして使用できる。   As shown in FIG. 5B, the serial communication circuits 750 and 752 have four-channel (Ch0, Ch1, Ch2, and Ch3) circuits. All channels are functionally independent, and there are channels that can transmit and receive by having a transmitter and a receiver, and channels that can only transmit by having only a transmitter. For serial communication between the main control unit microcomputer 760 and the ball number control unit microcomputer 770, a channel (Ch0) capable of transmission and reception is used. The serial communication circuits 750 and 752 operate in the FIFO mode. 64 bytes for transmission and 8 bytes for reception can be used as a FIFO.

再び同図(a)を参照し、主制御部用マイクロコンピュータ760は、シリアル通信用のレジスタとして例えば、ステータスレジスタ762、受信データレジスタ764、送信データレジスタ766、その他のレジスタ768を有する。また、球数御部用マイクロコンピュータ770は、シリアル通信用のレジスタとして例えば、ステータスレジスタ772、受信データレジスタ774、送信データレジスタ776、その他のレジスタ778を有する。   Referring again to FIG. 5A, the main control unit microcomputer 760 includes, for example, a status register 762, a reception data register 764, a transmission data register 766, and other registers 768 as serial communication registers. In addition, the ball count control microcomputer 770 includes, for example, a status register 772, a reception data register 774, a transmission data register 776, and other registers 778 as serial communication registers.

例えば、主制御部用マイクロコンピュータ760がデータ送信を行う場合、主制御部300のCPU304が主制御部用マイクロコンピュータ760に内蔵されたシリアル通信回路750のステータスレジスタを参照して「送信可能」の場合に送信データレジスタ766にデータをセットする。シリアル通信回路750は送信データレジスタ766にセットされたデータを送信する。   For example, when the main control unit microcomputer 760 performs data transmission, the CPU 304 of the main control unit 300 refers to the status register of the serial communication circuit 750 built in the main control unit microcomputer 760 to indicate that “transmission is possible”. In this case, data is set in the transmission data register 766. The serial communication circuit 750 transmits the data set in the transmission data register 766.

例えば、球数制御部用マイクロコンピュータ770がデータ受信を行う場合、受信データが球数制御部用マイクロコンピュータ770に内蔵されたシリアル通信回路752の受信データレジスタ774に書き込まれる。球数制御部600のCPUはステータスレジスタを参照して「受信完了」になった場合に受信データレジスタ774から受信データを読み込む。   For example, when the ball number control unit microcomputer 770 receives data, the received data is written in the reception data register 774 of the serial communication circuit 752 built in the ball number control unit microcomputer 770. The CPU of the ball number control unit 600 reads the reception data from the reception data register 774 when “reception completion” is made with reference to the status register.

例えば、球数制御部用マイクロコンピュータ770がデータ送信を行う場合、球数制御部600のCPUが球数制御部用マイクロコンピュータ770に内蔵されたシリアル通信回路752のステータスレジスタを参照して「送信可能」の場合に送信データレジスタ776にデータをセットする。シリアル通信回路752は送信データレジスタ776にセットされたデータを送信する。   For example, when the ball number control unit microcomputer 770 performs data transmission, the CPU of the ball number control unit 600 refers to the status register of the serial communication circuit 752 incorporated in the ball number control unit microcomputer 770 to “transmit”. In the case of “possible”, data is set in the transmission data register 776. The serial communication circuit 752 transmits the data set in the transmission data register 776.

例えば、主制御部用マイクロコンピュータ760がデータ受信を行う場合、受信データが主制御部用マイクロコンピュータ760に内蔵されたシリアル通信回路750の受信データレジスタ764に書き込まれる。主制御部300のCPUはステータスレジスタを参照して「受信完了」になった場合に受信データレジスタ764から受信データを読み込む。   For example, when the main controller microcomputer 760 receives data, the received data is written into the reception data register 764 of the serial communication circuit 750 built in the main controller microcomputer 760. The CPU of the main control unit 300 reads the reception data from the reception data register 764 when “reception is completed” with reference to the status register.

また、シリアル通信回路750、752はデータを送信する場合、シリアル通信回路750、752のステータスレジスタ762、772を参照し送信状態(データ送信完了など)を検出できる。また、シリアル通信回路750、752はデータを受信する場合、ステータスレジスタ762、772を参照し、所定条件が成立している場合に受信データレジスタ764、774からデータを読み込む。具体的には、ステータスレジスタ762、772を参照することで、受信データにノイズ検出されたデータがあるか否か、ブレークコード、フレーミングエラーおよびパリティエラーを含むデータの有無、またはオーバーランの検出の有無などを確認することができる。   Further, when transmitting data, the serial communication circuits 750 and 752 can detect the transmission state (data transmission completion, etc.) with reference to the status registers 762 and 772 of the serial communication circuits 750 and 752. The serial communication circuits 750 and 752 refer to the status registers 762 and 772 when receiving data, and read data from the reception data registers 764 and 774 when a predetermined condition is satisfied. Specifically, by referring to the status registers 762 and 772, whether there is data in which noise is detected in the received data, whether there is data including a break code, a framing error, and a parity error, or overrun detection The presence or absence can be confirmed.

図27(c)を参照して主制御部300と球数制御部600のシリアル通信処理の流れについて説明する。まず主制御部300から球数制御部600に、第一の通信確認コマンドを送信する(1)。球数制御部600は、主制御部300から第一の通信確認コマンドを受信する(2)。球数制御部600は、第一の通信確認コマンドを受信すると、第二の通信確認コマンド(第一の通信確認コマンドに対する返信のコマンド)を主制御部300に送信する(3)。第二の通信確認コマンドを受信した主制御部300は、球数制御部600に賞球コマンドを送信する(4)。   With reference to FIG. 27C, the flow of serial communication processing of the main control unit 300 and the ball number control unit 600 will be described. First, a first communication confirmation command is transmitted from the main control unit 300 to the ball number control unit 600 (1). The ball number control unit 600 receives the first communication confirmation command from the main control unit 300 (2). Upon receiving the first communication confirmation command, the ball number control unit 600 transmits a second communication confirmation command (a reply command to the first communication confirmation command) to the main control unit 300 (3). The main control unit 300 that has received the second communication confirmation command transmits a prize ball command to the ball number control unit 600 (4).

処理(1)〜(3)は通信確認中の状態であり、この状態では主制御部300は球数制御部600に対して賞球コマンドを送信しない。処理(3)が完了すると、通信確認が完了となり、この状態で主制御部300は球数制御部600に賞球コマンドを送信する。例えば、ノイズなどの影響も考慮し、処理(1)は複数回行い、処理(3)の通信確認の完了を示すコマンドが所定回数得られない場合に通信エラー状態とする。この通信エラーの状態となった場合も、主制御部300は球数制御部600に賞球コマンドを送信しない。また、エラーを報知するため、外部に接続する装置に信号を出力する。なお、外部に接続する装置への信号出力は行わなくてもよい。   Processes (1) to (3) are in a state where communication is being confirmed. In this state, the main control unit 300 does not transmit a prize ball command to the ball number control unit 600. When the process (3) is completed, the communication confirmation is completed. In this state, the main control unit 300 transmits a prize ball command to the ball number control unit 600. For example, considering the influence of noise and the like, the process (1) is performed a plurality of times, and a communication error state is set when a command indicating completion of communication confirmation of the process (3) is not obtained a predetermined number of times. Even when this communication error occurs, the main control unit 300 does not transmit a prize ball command to the ball number control unit 600. Further, in order to notify an error, a signal is output to a device connected to the outside. Note that signal output to an externally connected device may not be performed.

処理(1)は、例えば所定回数の割込み処理毎に1回、例えば、主制御部のタイマ割込み処理を25回(50回、・・など)実行するうちに1回、実行する。処理(2)および処理(3)は同一の割込み処理で実行してもよいし、別の割込み処理で実行してもよい。また、処理(3)と同一の割込み処理で、球数制御部600の制御状態を送信してもよい。球数制御部600の制御状態は、変化のある場合のみ(例えば、正常な状態から異常な状態に変化した場合(エラーの場合)など)送信するものとしてもよい。以下、これらの処理の流れについて主制御部300側および球数制御部600側についてそれぞれ説明する。
<主制御部における通信処理>
The process (1) is executed once every predetermined number of interrupt processes, for example, once during the timer interrupt process of the main control unit 25 times (50 times,...). Process (2) and process (3) may be executed by the same interrupt process, or may be executed by different interrupt processes. Further, the control state of the ball number control unit 600 may be transmitted by the same interrupt process as the process (3). The control state of the ball number control unit 600 may be transmitted only when there is a change (for example, when it changes from a normal state to an abnormal state (in the case of an error)). Hereinafter, the flow of these processes will be described for the main control unit 300 side and the ball number control unit 600 side.
<Communication processing in the main control unit>

図28を参照して、主制御部300における通信処理の概要を説明する。同図は、図13に示した主制御部タイマ割込み処理で行う処理のうち、主に球数制御部600との通信に関連する処理を抽出したフローチャートである。図28(a)は、入賞口カウンタ更新処理(図13のステップS215)で行う主な処理の流れを示すフローチャートである。図28(b)は、賞球コマンド送信処理(図13のステップS219)内で行うシリアルコマンド管理処理の流れを示すフローチャートであって、図28(c)が、シリアルコマンド受信処理の流れを示すフローチャートであり、図28(d)がシリアルコマンド送信処理の流れを示すフローチャートである。また図28(e)は、賞球数表示処理(図13のステップS216またはステップS220)の流れを示すフローチャートである。

<入賞口カウンタ更新処理>
With reference to FIG. 28, an outline of communication processing in the main control unit 300 will be described. This figure is a flowchart in which processing mainly related to communication with the ball count control unit 600 is extracted from the processing performed in the main control unit timer interrupt processing shown in FIG. FIG. 28A is a flowchart showing the flow of main processing performed in the winning prize counter updating process (step S215 in FIG. 13). FIG. 28B is a flowchart showing the flow of serial command management processing performed in the prize ball command transmission processing (step S219 in FIG. 13), and FIG. 28C shows the flow of serial command reception processing. FIG. 28D is a flowchart showing a flow of serial command transmission processing. FIG. 28E is a flowchart showing the flow of the winning ball number display process (step S216 or step S220 in FIG. 13).

<Winning mouth counter update process>

図28(a)を参照して、入賞口カウンタ更新処理の主要な処理の流れを説明する。   With reference to FIG. 28A, the main processing flow of the winning opening counter updating process will be described.

ステップS1301では、球検出センサ320Bの検出結果に基づき、入賞口226、234や始動口230、232、228に入賞があったか否かを判定する。入賞がある場合は、ステップS1603に進み、そうでない場合は処理を終了する。   In step S1301, based on the detection result of the ball detection sensor 320B, it is determined whether or not there is a winning at the winning ports 226, 234 or the starting ports 230, 232, 228. If there is a win, the process proceeds to step S1603, and if not, the process ends.

ステップS1303では、入賞口226、234や始動口230、232、228に入賞があった場合に、その回数(球数制御部600に賞球を要求する回数)を記憶する。すなわち、RAM308に各入賞口ごと、あるいは各始動口ごとに設けた入賞数記憶領域の値を読み出し、1を加算して、元の入賞数記憶領域に設定する。なお、複数の入賞口等で共通の球検出センサ320Bを使用している場合(例えば、賞球数が同じ入賞口等に共通の球検出センサ320Bを設けるような場合)には、各球検出センサ320毎に設けられた入賞数記憶領域の値を読み出し、1を加算して、元の入賞数記憶領域に設定する。
<シリアルコマンド管理処理>
In step S1303, the number of times (the number of times a prize ball is requested from the ball number control unit 600) is stored when the winning holes 226, 234 and the start holes 230, 232, 228 are won. That is, the value of the winning number storage area provided for each winning opening or each starting opening is read into the RAM 308, 1 is added, and the original winning number storage area is set. When a common ball detection sensor 320B is used for a plurality of winning holes (for example, when a common ball detection sensor 320B is provided for a winning hole having the same number of winning balls), each ball is detected. The value of the winning number storage area provided for each sensor 320 is read, and 1 is added to set the original winning number storage area.
<Serial command management processing>

図28(b)〜(d)を参照して、賞球コマンド送信処理で行うシリアルコマンド管理処理について説明する。   With reference to FIGS. 28B to 28D, the serial command management process performed in the prize ball command transmission process will be described.

図28(b)を参照して、シリアルコマンド管理処理の概要について説明する。   An overview of the serial command management process will be described with reference to FIG.

ステップS1401では、シリアルコマンド受信処理を行う。ステップS1403ではシリアルコマンド送信処理を行う。既述の如く、シリアル通信回路750の内蔵レジスタ(受信データレジスタ764、送信データレジスタ766)にデータをセットすることによりデータが送受信される。   In step S1401, serial command reception processing is performed. In step S1403, serial command transmission processing is performed. As described above, data is transmitted and received by setting data in the built-in registers (the reception data register 764 and the transmission data register 766) of the serial communication circuit 750.

図28(c)を参照して、シリアルコマンド受信処理の概要について説明する。   With reference to FIG. 28C, an outline of the serial command reception process will be described.

ステップS1501では、球数制御部600から通信確認コマンドを受信しているか否かを判定する。通信確認コマンドを受信している場合は、ステップS1503に進み、そうでない場合は、処理を終了する。ステップS1503では、通信確認を完了する設定を行い、ステップS1505では通信エラーを解除する。
In step S1501, it is determined whether a communication confirmation command is received from the ball number control unit 600. If a communication confirmation command has been received, the process proceeds to step S1503. If not, the process ends. In step S1503, the setting for completing the communication confirmation is performed, and in step S1505, the communication error is canceled.

図28(d)を参照して、シリアルコマンド送信処理の概要について説明する。   With reference to FIG. 28D, an outline of the serial command transmission process will be described.

ステップS1601では、通信確認コマンドの送信条件が成立しているか否かを判定する。送信条件が成立している場合は、ステップS1603に進み、そうでない場合は、ステップS1611に進む。   In step S1601, it is determined whether a transmission condition for the communication confirmation command is satisfied. If the transmission condition is satisfied, the process proceeds to step S1603. Otherwise, the process proceeds to step S1611.

ステップS1603では、通信確認コマンドをセットする。ステップS1605では、通信確認中の設定を行う。   In step S1603, a communication confirmation command is set. In step S1605, setting during communication confirmation is performed.

ステップS1607では、通信エラー条件が成立しているか否か判定し、条件が成立している場合は、ステップS1609に進み、そうでない場合は処理を終了する。ステップS1609では、通信エラーをセットする。   In step S1607, it is determined whether or not a communication error condition is satisfied. If the condition is satisfied, the process proceeds to step S1609; otherwise, the process ends. In step S1609, a communication error is set.

ステップS1611では、賞球コマンドの送信条件が成立しているか否かを判定し、成立している場合はステップS1613に進み、そうでない場合は処理を終了する。   In step S1611, it is determined whether or not a condition for sending a prize ball command is satisfied. If satisfied, the process proceeds to step S1613, and if not, the process ends.

ステップS1613では、所定の入賞口カウンタのデータ更新を行い、ステップS1615では賞球コマンドのセットを行う。   In step S1613, data of a predetermined winning opening counter is updated, and in step S1615, a winning ball command is set.

図28(e)を参照して、賞球数表示処理の概要について説明する。   With reference to FIG.28 (e), the outline | summary of a prize ball number display process is demonstrated.

賞球数表示処理は、各入賞口等に入賞した場合に、その賞球数を賞球数表示部690に表示する。すなわち、ステップS1710では、所定の入賞口カウンタに基づき、当該入賞口等に対応する賞球数を表示する。賞球数表示部690には、主制御部300から球数制御部600に賞球コマンドを送信する以前の賞球数が表示される。   The winning ball number display process displays the number of winning balls on the winning ball number display unit 690 when each winning port is won. That is, in step S1710, based on a predetermined winning opening counter, the number of winning balls corresponding to the winning opening is displayed. The prize ball number display unit 690 displays the number of prize balls before the prize ball command is transmitted from the main control unit 300 to the ball number control unit 600.

図29から図33を参照して、図28に示した各処理について詳細に説明する。   Each process shown in FIG. 28 will be described in detail with reference to FIGS. 29 to 33.

まず図29は、図28(a)の入賞口カウンタ更新処理の詳細について説明する図であり、図29(a)は、図28(a)のフローチャートの再掲であり、図29(b)は主制御部300のRAMに設けられた入賞口カウンタの概略図である。   First, FIG. 29 is a diagram for explaining the details of the winning opening counter updating process of FIG. 28 (a), FIG. 29 (a) is a reprint of the flowchart of FIG. 28 (a), and FIG. 4 is a schematic diagram of a winning prize counter provided in the RAM of the main control unit 300. FIG.

図29(a)を参照して、入賞口カウンタ更新処理のステップS1301において、入賞口等の入賞がありと判定された場合、ステップS1303において、所定の入賞口カウンタにデータがセットされる。入賞口カウンタは、例えば図29(b)の如く、主制御部300のRAM308に各入賞口ごと、あるいは各始動口ごとに設けた例えば1バイトの入賞数記憶領域である。これにより0〜255までの入賞数(入賞があった回数)を記憶することができる。なお、以下の説明で参照する図面において、入賞数記憶領域に記憶される入賞数を示す場合、これらは2進数表示である。   Referring to FIG. 29 (a), when it is determined in step S1301 of the winning opening counter updating process that there is a winning such as a winning opening, data is set in a predetermined winning opening counter in step S1303. For example, as shown in FIG. 29B, the winning opening counter is, for example, a 1-byte winning number storage area provided in the RAM 308 of the main control unit 300 for each winning opening or for each start opening. This makes it possible to store the number of winnings from 0 to 255 (the number of times a winning has been won). In the drawings to be referred to in the following description, when the winning numbers stored in the winning number storage area are shown, these are binary numbers.

複数の入賞口等で共通の球検出センサ320Bを使用している場合には、入賞数記憶領域は、各球検出センサ320毎に設けられてもよい。例えば本実施形態では、賞球数が同じ一般入賞口226C、226Dを1つの球検出センサ320Eで検出している。したがってここでは、これらの入賞口カウンタとして1つの入賞数記憶領域を使用する場合を例に説明する。具体的には、RAM308には、可変入賞口用入賞数記憶領域780、第1特図始動口用入賞数記憶領域782、第2特図始動口用入賞数記憶領域784、一般入賞口用入賞数記憶領域786が設けられている。そして、図29(a)のステップS1301で可変入賞口234に入賞があったと判定された場合(球検出センサ320Gで入賞が検出された場合)に、可変入賞口用入賞数記憶領域の値に1が加算される。同様に、第1特図始動口230に入賞があった場合(球検出センサ320Jで入賞検出された場合)に第1特図始動口用入賞数記憶領域782に1が加算され、第2特図始動口232に入賞があった場合(球検出センサ320Hで入賞検出された場合)に第2特図始動口用入賞数記憶領域784の値に1が加算され、一般入賞口226(226C,226Dのいずれか)に入賞があった場合(球検出センサ320Eで入賞検出された場合)に一般入賞口用入賞数記憶領域786に1が加算される。   In the case where a common ball detection sensor 320B is used for a plurality of winning holes, etc., a winning number storage area may be provided for each ball detection sensor 320. For example, in the present embodiment, the general winning ports 226C and 226D having the same number of winning balls are detected by one ball detecting sensor 320E. Therefore, here, a case where one winning number storage area is used as these winning opening counters will be described as an example. Specifically, in the RAM 308, the variable prize opening number-of-wins storage area 780, the first special figure start-out prize number storage area 782, the second special figure start-out prize number storage area 784, and the general prize-winning prize-winning area. A number storage area 786 is provided. If it is determined in step S1301 of FIG. 29A that the variable winning opening 234 has been won (when a win is detected by the ball detection sensor 320G), the value in the variable winning opening winning number storage area is set. 1 is added. Similarly, when a winning is made at the first special figure starting port 230 (when the winning is detected by the ball detection sensor 320J), 1 is added to the first special figure starting port winning number storage area 782, and the second special figure starting port 230 is obtained. When there is a prize at the start opening 232 (when a prize is detected by the ball detection sensor 320H), 1 is added to the value in the second special figure start opening winning number storage area 784, and the general winning opening 226 (226C, 226C, 1 is added to the winning prize number storage area 786 for the general winning opening when the winning is found in any of 226D (when the winning is detected by the ball detection sensor 320E).

後に詳述するが、これらの入賞口カウンタは、入賞と判定される毎にそれぞれの領域に加算されていくが、主制御部300から球数制御部600に賞球コマンドの送信があった場合は、減算される。例えば可変入賞口234に入賞があり、可変入賞口用入賞数記憶領域780に「1」が記憶されていた場合、更に可変入賞口234に入賞があった場合は、可変入賞口用入賞数記憶領域780の値「1」に1が加算されて「2」が記憶される。一方、可変入賞口用入賞数記憶領域780に「1」が記憶されていた場合に、これに対応する賞球コマンドを送信した場合は、可変入賞口用入賞数記憶領域780は「0」に更新される。   As will be described in detail later, these winning counters are added to the respective areas every time it is determined that a winning is received, but when the main control unit 300 transmits a winning ball command to the ball number control unit 600. Is subtracted. For example, if there is a prize at the variable prize slot 234 and “1” is stored in the variable prize slot storage area 780, and there is a prize at the variable prize slot 234, the variable prize slot prize number is stored. 1 is added to the value “1” in the area 780 to store “2”. On the other hand, when “1” is stored in the variable prize opening number-of-wins storage area 780 and the corresponding prize ball command is transmitted, the variable prize-out prize number storage area 780 is set to “0”. Updated.

例えば、可変入賞口234の入賞を検出する球検出センサ320Gと、第1特図始動口230の入賞を検出する球検出センサ320Jが個別に設けられているため、これらが(ほぼ)同時に入賞を検出した場合は、複数の入賞数記憶領域(可変入賞口用入賞数記憶領域780および第1特図始動口用入賞数記憶領域782)のデータが一度に更新される場合がある。   For example, since the ball detection sensor 320G for detecting the winning of the variable winning opening 234 and the ball detecting sensor 320J for detecting the winning of the first special figure starting opening 230 are provided separately, these are (almost) simultaneously awarded. If detected, data in a plurality of winning number storage areas (variable winning opening winning number storing area 780 and first special figure starting opening winning number storing area 782) may be updated at one time.

また上述したように、各々の球検出センサ320Bにおいて過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致するか否かを判定して入賞と判定する場合、同一の入賞口等の入賞数記憶領域(例えば、第1特図始動口用入賞数記憶領域782)の値は1ずつ加算され、例えば1回の更新で入賞数が「0」→「2」になることはない。   In addition, as described above, when determining whether or not the information on the presence or absence of the detection signals for the past three times coincides with the winning determination pattern information in each of the ball detection sensors 320B, The value in the winning number storage area (for example, the first special figure start port winning number storage area 782) is incremented by one, and the winning number is not changed from "0" to "2" by one update, for example.

一方で、例えば賞球数が同数の入賞口が複数あり(例えば、本実施形態の一般入賞口226(226C、226D)や、遊技盤200の背面側に設けられるなどして第2特図始動口232が複数存在する場合など)、それぞれに球検出センサ320Bが設けられているが、入賞数記憶領域としては共通の場合、それらの入賞口にほぼ同時に入賞があった場合は、その共通の入賞数記憶領域の値が一度に入賞数の合計値(例えば入賞数「0」→「2」)に更新される場合がある。   On the other hand, for example, there are a plurality of winning holes having the same number of winning balls (for example, the general winning holes 226 (226C, 226D) of the present embodiment or the second special figure start by being provided on the back side of the game board 200). (For example, when there are a plurality of mouths 232), each has a ball detection sensor 320B. However, when the winning number storage area is common, if there is a winning at almost the same time, the common The value in the winning number storage area may be updated to the total number of winning numbers (for example, the winning number “0” → “2”) at a time.

図30は、図28(b)(c)に示すシリアルコマンド管理処理のシリアルコマンド受信処理の詳細について説明する図であり、図30(a)は、図28(b)のフローチャートの再掲であり、図30(b)はシリアルコマンド受信処理の主要な処理を示す詳細なフローチャートである。   FIG. 30 is a diagram for explaining the details of the serial command reception process of the serial command management process shown in FIGS. 28B and 28C, and FIG. 30A is a reprint of the flowchart of FIG. FIG. 30B is a detailed flowchart showing the main processing of serial command reception processing.

シリアル通信回路750、752は既述の如くFIFOモードで動作可能であり、図30(a)に示すシリアルコマンド管理処理において、通信設定レジスタを所定の値(例えば「1」)に設定することで、FIFOモードが選択される。   The serial communication circuits 750 and 752 can operate in the FIFO mode as described above, and by setting the communication setting register to a predetermined value (for example, “1”) in the serial command management process shown in FIG. , The FIFO mode is selected.

図30(b)を参照して、シリアルコマンド受信処理では、まずステップS15001において、球数制御部600から通信確認コマンドの受信の有無を判定する。受信がある場合は、ステップS15003に進み、そうでない場合は、ステップS15009に進む。   Referring to FIG. 30B, in the serial command reception process, first, in step S15001, it is determined whether or not a communication confirmation command is received from the ball number control unit 600. If there is reception, the process proceeds to step S15003, and if not, the process proceeds to step S15009.

ステップS15003では、球数制御部600から通信確認コマンドを受信した場合に各種データを初期化する。賞球コマンドの送信の可否を示すシリアルコマンドステータスフラグは例えば「0」の場合は賞球コマンドの送信可能状態を示し、「1」の場合は、賞球コマンドの送信不可状態を示す。ここでは、シリアルコマンドステータスフラグに「0」をセットする。   In step S15003, various data are initialized when the communication confirmation command is received from the ball number control unit 600. For example, when the serial command status flag indicating whether or not a prize ball command can be transmitted is “0”, it indicates that a prize ball command can be transmitted, and when it is “1”, it indicates that a prize ball command cannot be transmitted. Here, “0” is set to the serial command status flag.

ステップS15005では、通信確認コマンド送信カウンタを初期化する。通信確認コマンド送信カウンタは、主制御部300から球数制御部600に通信確認コマンド(第一の通信確認コマンド(図27(c)参照))を送信する場合、例えば、複数回連続で当該コマンドを送信しても球数制御部600から通信確認コマンド(第二の通信確認コマンド)が送信されない場合に、通信エラーとするためのカウンタである。ここでは一例として10回連続で球数制御部600から通信確認コマンドが送信されなかった場合に通信エラーとするため、通信確認コマンド送信カウンタに「10」をセットする。   In step S15005, a communication confirmation command transmission counter is initialized. When the communication confirmation command transmission counter transmits a communication confirmation command (first communication confirmation command (see FIG. 27C)) from the main control unit 300 to the ball number control unit 600, for example, the command is continuously received a plurality of times. This is a counter for causing a communication error when a communication confirmation command (second communication confirmation command) is not transmitted from the ball number control unit 600 even if is transmitted. Here, as an example, “10” is set in the communication confirmation command transmission counter in order to make a communication error when the communication confirmation command is not transmitted from the ball number control unit 600 ten times consecutively.

ステップS15007では、シリアルコマンド通信エラーフラグを初期化(解除)する。シリアルコマンド通信エラーフラグは、球数制御部600から通信確認の返信(第二の通信確認コマンド)が無い通信エラー状態であることを示すものであり、例えば「1」の場合は通信エラー状態であり、「0」の場合は正常であることを示す。ここでは、シリアルコマンド通信エラーフラグに「0」をセットする。なお、本ステップにおいて、球数制御部600からの通信確認コマンド(第二の通信確認コマンド)を受信した場合は、エラー状態の解除(シリアルコマンド通信エラーフラグの初期化)としているが、エラー状態の解除方法は、これに限らない。例えば、パチンコ機100の電源がオフされた場合や、数制御部600からの通信確認コマンド(第二の通信確認コマンド)を受信し、且つ所定時間(例えば30秒)が経過した後に解除、などとしてもよい。   In step S 15007, the serial command communication error flag is initialized (cancelled). The serial command communication error flag indicates a communication error state in which there is no communication confirmation reply (second communication confirmation command) from the ball number control unit 600. For example, in the case of “1”, the communication error state is indicated. Yes, "0" indicates normal. Here, “0” is set to the serial command communication error flag. In this step, when a communication confirmation command (second communication confirmation command) is received from the ball number control unit 600, the error state is canceled (serial command communication error flag initialization). The release method is not limited to this. For example, when the power of the pachinko machine 100 is turned off, or after receiving a communication confirmation command (second communication confirmation command) from the number control unit 600 and a predetermined time (for example, 30 seconds) has passed, etc. It is good.

ステップS15009では、その他のシリアルコマンド受信処理を行う。   In step S15009, other serial command reception processing is performed.

図31は、シリアルコマンド送信処理について説明する図であり、図31(a)は、図28(d)に示すシリアルコマンド管理処理のシリアルコマンド送信処理の主要な処理を示す詳細なフローチャートであり、図31(b)(c)は入賞口カウンタの概略図である。   FIG. 31 is a diagram for explaining the serial command transmission process, and FIG. 31A is a detailed flowchart showing the main process of the serial command transmission process of the serial command management process shown in FIG. 31 (b) and 31 (c) are schematic views of the winning prize counter.

ステップS16001では、通信確認コマンド送信タイマを更新する。通信確認コマンド送信タイマは、主制御部300から球数制御部600に出力する通信確認コマンドの送信タイミングを管理するタイマであり、ここではすなわち、通信確認コマンド送信タイマから1を減算する。後述するが、通信確認コマンド送信タイマには初期値として例えば「25」がセットされており、主制御部300のタイマ割込み処理が実行される毎に、通信確認コマンド送信タイマが本ステップにより減算され、当該タイマが「0」になった場合に主制御部300から球数制御部600に通信確認コマンドが送信される。   In step S16001, the communication confirmation command transmission timer is updated. The communication confirmation command transmission timer is a timer for managing the transmission timing of the communication confirmation command output from the main control unit 300 to the ball number control unit 600. In this example, 1 is subtracted from the communication confirmation command transmission timer. As will be described later, for example, “25” is set as an initial value in the communication confirmation command transmission timer, and the communication confirmation command transmission timer is subtracted by this step every time the timer interrupt process of the main control unit 300 is executed. When the timer reaches “0”, a communication confirmation command is transmitted from the main control unit 300 to the ball number control unit 600.

ステップS16003では、通信確認コマンド送信タイマの値を判定する。通信確認コマンド送信タイマが「0」の場合はステップS16005へ進み、そうでない場合は、ステップS16019へ進む。   In step S16003, the value of the communication confirmation command transmission timer is determined. If the communication confirmation command transmission timer is “0”, the process proceeds to step S16005; otherwise, the process proceeds to step S16019.

ステップS16005は、通信確認コマンド送信タイマに初期値を設定する。本実施形態では一例として、100msに1回のタイミングで、主制御部300から球数制御部600に通信確認コマンドを送信している。また、主制御部300のタイマ割込み処理は例えば4ms毎に実行されるものとすると、25回の割込み処理に1回のタイミングで通信確認コマンドの送信を行うことになる。したがって、本ステップでは、通信確認コマンド送信タイマの初期値として「25」をセットする。通信確認コマンド送信タイマは上述のステップS16001において、主制御部300のタイマ割込み処理毎に「1」が減算され、通信確認コマンド送信タイマが「0」になると(100msに1回のタイミングで)通信確認コマンドを送信する状態となる。   In step S16005, an initial value is set in the communication confirmation command transmission timer. In this embodiment, as an example, a communication confirmation command is transmitted from the main control unit 300 to the ball number control unit 600 at a timing of once every 100 ms. If the timer interrupt process of the main control unit 300 is executed every 4 ms, for example, a communication confirmation command is transmitted at a timing of 25 interrupt processes. Therefore, in this step, “25” is set as the initial value of the communication confirmation command transmission timer. In step S16001, the communication confirmation command transmission timer is decremented by “1” for each timer interrupt process of the main control unit 300, and the communication confirmation command transmission timer becomes “0” (at a timing of once every 100 ms). A confirmation command is sent.

ステップS16007では、シリアルコマンドステータスフラグに「1」をセットする。シリアルコマンドステータスは、賞球コマンドの送信可能状態であるか否かを示すものであり、シリアルコマンドステータスフラグに「1」がセットされている場合は、賞球コマンドを送信しない状態であり、「0」がセットされている場合は、賞球コマンド送信可能状態である。   In step S16007, “1” is set to the serial command status flag. The serial command status indicates whether or not a prize ball command can be sent. If the serial command status flag is set to “1”, the prize ball command is not sent. When “0” is set, a prize ball command transmission is possible.

ステップS16009では、通信確認コマンド(第一の通信確認コマンド)をセットする。主制御部300のCPU304が主制御部用マイクロコンピュータ760に内蔵されたシリアル通信回路750の送信データレジスタ766に通信確認コマンド(第一の通信確認コマンド)をセットすると、シリアル通信回路750は送信データレジスタ766にセットされた通信確認コマンドを球数制御部600(球数制御部用マイクロコンピュータ770)に送信する。   In step S16009, a communication confirmation command (first communication confirmation command) is set. When the CPU 304 of the main control unit 300 sets a communication confirmation command (first communication confirmation command) in the transmission data register 766 of the serial communication circuit 750 built in the microcomputer 760 for the main control unit, the serial communication circuit 750 transmits the transmission data. The communication confirmation command set in the register 766 is transmitted to the ball number control unit 600 (ball number control unit microcomputer 770).

ステップS16011では、通信確認コマンド送信カウンタを更新する。本ステップにおいて通信確認コマンド送信カウンタから「1」を減ずる。   In step S16011, the communication confirmation command transmission counter is updated. In this step, “1” is subtracted from the communication confirmation command transmission counter.

ステップS16013では、通信確認コマンド送信カウンタの値を判定する。通信確認コマンド送信カウンタの値が「0」の場合は、ステップS16015へ進み、そうでない場合は、ステップS16025へ進む。本ステップは、主制御部300から球数制御部600に通信確認コマンドを10回連続で送信し、球数制御部600から返信の通信確認コマンドが送信されない場合、通信エラーとするための判定処理である。   In step S16013, the value of the communication confirmation command transmission counter is determined. If the value of the communication confirmation command transmission counter is “0”, the process proceeds to step S16015, and if not, the process proceeds to step S16025. This step is a determination process for transmitting a communication confirmation command from the main control unit 300 to the ball number control unit 600 ten times in succession and setting a communication error when a reply communication confirmation command is not transmitted from the ball number control unit 600. It is.

ステップS16015では、通信確認コマンド送信カウンタを初期化する。すなわち通信確認コマンド送信カウンタにここでは「10」をセットする。   In step S16015, a communication confirmation command transmission counter is initialized. That is, “10” is set in the communication confirmation command transmission counter here.

ステップS16017では、シリアルコマンド通信エラーフラグを設定する。シリアルコマンド通信エラーフラグは、球数制御部600からの通信コマンドの返信が無い通信エラーの状態であることを示すフラグであり、この場合「1」をセットする。   In step S16017, a serial command communication error flag is set. The serial command communication error flag is a flag indicating a communication error state in which no communication command is returned from the ball number control unit 600. In this case, “1” is set.

ステップS16019では、賞球コマンドの送信条件が成立しているか否かを判定する。条件が成立している場合はステップS16021に進み、そうでない場合は、ステップS16025に進む。ここでの賞球コマンドの送信条件は、ステップS16003の判定の結果通信確認コマンド送信タイマが「0」以外、すなわち、通信確認コマンドを送信するタイミングではなく、且つ、各入賞口等に対応して設けられた球検出センサ320Bで、機内球710が通過したと判定された場合である。あるいは送信条件は、入賞数記憶領域の値を上から順に判定し、この領域にデータがセットされている場合(「0」以外の値の場合)に成立するとしてもよい。   In step S16019, it is determined whether a winning ball command transmission condition is satisfied. If the condition is satisfied, the process proceeds to step S16021. Otherwise, the process proceeds to step S16025. The prize ball command transmission condition here is that the communication confirmation command transmission timer is other than “0” as a result of the determination in step S 16003, that is, not the timing of transmitting the communication confirmation command, and corresponding to each winning mouth, etc. This is a case where it is determined by the provided ball detection sensor 320B that the in-flight ball 710 has passed. Alternatively, the transmission condition may be satisfied when the value of the winning number storage area is determined in order from the top and data is set in this area (a value other than “0”).

ステップS16021では、所定の入賞口カウンタのデータを更新する。入賞記憶領域の値を上から順に判定し、ステップS16019において、各入賞口等のいずれかに入賞があった場合(当該入賞に対応する入賞数記憶領域に記憶されている値が「0」以外の場合)、その値から「1」を減算し、元の入賞数記憶領域に記憶する。   In step S16021, the data of a predetermined winning opening counter is updated. The value in the winning storage area is determined in order from the top, and if there is a winning in any of the winning openings in step S16019 (the value stored in the winning number storage area corresponding to the winning is other than “0”). In this case, “1” is subtracted from the value and stored in the original winning number storage area.

ステップS16023では、減算した入賞数記憶領域に対応する賞球コマンドセットする。主制御部300のCPU304が主制御部用マイクロコンピュータ760に内蔵されたシリアル通信回路750の送信データレジスタ766に賞球コマンドをセットすると、シリアル通信回路750は送信データレジスタ766にセットされた通信確認コマンドを球数制御部600(球数制御部用マイクロコンピュータ770)に送信する。   In step S16023, a winning ball command set corresponding to the subtracted winning number storage area is set. When the CPU 304 of the main control unit 300 sets a prize ball command in the transmission data register 766 of the serial communication circuit 750 built in the microcomputer 760 for the main control unit, the serial communication circuit 750 confirms the communication set in the transmission data register 766. The command is transmitted to the ball number control unit 600 (ball number control unit microcomputer 770).

ステップS16025では、その他のシリアルコマンド送信処理を行う。   In step S16025, other serial command transmission processing is performed.

図31(b)(c)を参照して、具体的に説明する。図31(b)は、ステップS16019の判定後の各入賞数記憶領域に記憶される値の一例であり、図31(c)がステップS16021のデータ更新後の各入賞数記憶領域に記憶される値の一例である。   A specific description will be given with reference to FIGS. FIG. 31B is an example of values stored in each winning number storage area after the determination in step S16019, and FIG. 31C is stored in each winning number storage area after the data update in step S16021. It is an example of a value.

まず、S16019の判定後では、一般入賞口用入賞数記憶領域786と、第1特図始動口用入賞数記憶領域782の最下位ビットの値がそれぞれ「1」であり、それ以外の領域がすべて「0」である(同図(b))。この場合、例えば、第1特図始動口230の入賞によりステップS16019で賞球コマンド送信条件が成立した場合、第1特図始動口用入賞数記憶領域782の値から「1」を減算する。すなわち、第1特図始動口230の入賞数は「0」となり、第1特図始動口用入賞数記憶領域782の最下位ビットに「0」(同図(c))。   First, after the determination in S16019, the value of the least significant bit in the general winning opening winning amount storage area 786 and the first special figure starting opening winning number storage area 782 is “1”, respectively. All are “0” ((b) in the figure). In this case, for example, if the winning ball command transmission condition is satisfied in step S16019 due to winning of the first special figure starting port 230, “1” is subtracted from the value of the first special figure starting port winning number storage area 782. That is, the number of winnings in the first special figure starting port 230 is “0”, and the lowest bit of the first special figure starting port winning number storage area 782 is “0” ((c) in the figure).

主制御部300は球数制御部600と通信確認を行った後に賞球コマンドを送信しており、その間にも各入賞口等に入賞が発生する場合がある。特に、主制御部300の1回の割込みで1つの賞球コマンドを送信する場合には、各入賞口等に対応する入賞数記憶領域には、主制御部300にて入賞と判定され、球数制御部600へ賞球コマンドとして送信する前の入賞数が蓄積されていく。   The main control unit 300 transmits a prize ball command after confirming communication with the ball number control unit 600, and a prize may be generated at each prize opening or the like during that time. In particular, when one winning ball command is transmitted by one interruption of the main control unit 300, the main control unit 300 determines that a winning number is stored in the winning number storage area corresponding to each winning opening and the like. The number of winnings before being transmitted to the number control unit 600 as a winning ball command is accumulated.

ステップS16023では、賞球コマンドをセットする。主制御部300のCPU304が主制御部用マイクロコンピュータ760に内蔵されたシリアル通信回路750の送信データレジスタ766に賞球コマンドをセットすると、シリアル通信回路750は送信データレジスタ766にセットされた賞球コマンドを球数制御部600(球数制御部用マイクロコンピュータ770)に送信する。   In step S16023, a prize ball command is set. When the CPU 304 of the main control unit 300 sets a prize ball command in the transmission data register 766 of the serial communication circuit 750 built in the microcomputer 760 for the main control unit, the serial communication circuit 750 receives the prize ball set in the transmission data register 766. The command is transmitted to the ball number control unit 600 (ball number control unit microcomputer 770).

このように、本実施形態のシリアルコマンド送信処理では、主制御部300から通信確認コマンドを送信する場合は賞球コマンドを送信せず、主制御部300から賞球コマンドを送信する場合は通信確認コマンドを送信しない構成である。この構成により、所定の場合には、遊技者が球発射ハンドル134を操作した場合であっても、機内球710の発射のタイミングを遅らせることが可能となるが、これについては後述する。   As described above, in the serial command transmission process of the present embodiment, when a communication confirmation command is transmitted from the main control unit 300, a prize ball command is not transmitted, and when a prize ball command is transmitted from the main control unit 300, a communication confirmation is performed. The configuration does not transmit a command. With this configuration, in a predetermined case, even when the player operates the ball launch handle 134, it is possible to delay the timing of launching the in-flight ball 710, which will be described later.

図32を参照して、図31のステップS16021およびステップS16023で示した、入賞数記憶領域の更新処理と、賞球コマンドセット処理の具体例について説明する。   With reference to FIG. 32, a specific example of the winning number storage area update process and the winning ball command set process shown in steps S16021 and S16023 of FIG. 31 will be described.

図32(a)〜(c)は、各入賞数記憶領域の一例を示す概要図であり、同図(a)が、図31(c)に続く主制御部300のタイマ割込み処理の1割込み目の各入賞数記憶領域の状態を示し、同図(b)が主制御部300のタイマ割込み処理の2割込み目の各入賞数記憶領域の状態を示し、同図(c)が主制御部300のタイマ割込み処理の3割込み目の各入賞数記憶領域の状態を示す。また同図(d)は、セットされる賞球コマンドの一例を示す図である。なお、以下の説明においては、10進数の数値はかぎ括弧「N」で表記し、図面において各入賞数記憶領域に2進数で示される数値は大括弧[n]で表記する。   32 (a) to 32 (c) are schematic diagrams showing an example of each winning number storage area. FIG. 32 (a) shows one interrupt of timer interrupt processing of the main control unit 300 following FIG. 31 (c). The state of each winning number storage area of the eye is shown, FIG. 10B shows the state of each winning number storage area of the second interrupt of the timer interrupt processing of the main control unit 300, and FIG. The state of each winning number storage area at the third interrupt of the 300 timer interrupt process is shown. FIG. 4D is a diagram showing an example of a winning ball command to be set. In the following description, decimal numbers are expressed in angle brackets “N”, and numbers shown in binary numbers in each winning number storage area in the drawings are expressed in square brackets [n].

図31(c)において、第1特図始動口用入賞数記憶領域の下位2ビットに[10](入賞数「2」)が記憶され、一般入賞口用入賞数記憶領域の最下位ビットに[1](入賞数「1」)が記憶されている状態の後の1割込み目で、ステップS16023の賞球コマンドセット処理が実行されると、主制御部300は例えば、入賞数記憶領域のアドレスの小さい番地から昇順に(図では上から下に)移動して値を読出し、「0」以外の入賞数記憶領域のデータを更新(減算)するとともに、当該入賞口に対応する賞球コマンドを送信データレジスタにセットする。つまり図32(a)の場合、可変入賞口用入賞数記憶領域の値は「0」であり、第1特図始動口用入賞数記憶領域の値「2」(下位2ビットは「10」)であるので、これから1を減算し、入賞数記憶領域の値を「1」(下位2ビットは「01」)に更新する。そして、同図(d)の第1特図始動口に対応する賞球コマンド(03H)を、送信データレジスタにセットする。これにより、球数制御部600に賞球コマンド(03H)が送信される。   In FIG. 31 (c), [10] (winning number “2”) is stored in the lower 2 bits of the first special figure starting port winning number storage area, and the least significant bit of the general winning opening winning number storage area is stored. [1] When the winning ball command set process in step S16023 is executed at the first interrupt after the state where the (winning number “1”) is stored, the main control unit 300, for example, stores the winning number storage area. Moves in ascending order (from top to bottom in the figure) from the address with the smallest address, reads the value, updates (subtracts) the data in the winning number storage area other than “0”, and wins a ball command corresponding to the winning slot Is set in the transmission data register. That is, in the case of FIG. 32 (a), the value of the winning number storage area for the variable winning opening is “0”, and the value “2” (the lower 2 bits are “10”) of the first special figure starting opening winning number storage area. Therefore, 1 is subtracted from this, and the value of the winning number storage area is updated to “1” (the lower 2 bits are “01”). Then, a prize ball command (03H) corresponding to the first special figure starting port of FIG. As a result, a prize ball command (03H) is transmitted to the ball number control unit 600.

引き続き、2割込み目でステップS16023の賞球コマンドセット処理が実行されると、主制御部300は例えば、入賞数記憶領域のアドレスを昇順に移動して、「0」以外の入賞数記憶領域、すなわち第1特図始動口用入賞数記憶領域の値「1」(下位2ビットは「01」)から1を減算し、入賞数記憶領域の値を「0」(下位2ビットは「00」)に更新する。そして、同図(d)の第1特図始動口に対応する賞球コマンド(03H)を、送信データレジスタにセットする。これにより、球数制御部600に賞球コマンド(03H)が送信される。   Subsequently, when the winning ball command set process of step S16023 is executed at the second interrupt, the main control unit 300, for example, moves the addresses of the winning number storage area in ascending order, and wins number winning areas other than “0”, That is, 1 is subtracted from the value “1” (the lower 2 bits are “01”) in the first special figure start opening winning number storage area, and the value in the winning number storage area is “0” (the lower 2 bits are “00”). ). Then, a prize ball command (03H) corresponding to the first special figure starting port of FIG. As a result, a prize ball command (03H) is transmitted to the ball number control unit 600.

更に引き続き、3割込み目でステップS16023の賞球コマンドセット処理が実行されると、主制御部300は例えば、入賞数記憶領域のアドレスを昇順に移動して、「0」以外の入賞数記憶領域、すなわち一般入賞口用入賞数記憶領域の値「1」(下位2ビットは「01」)から「1」を減算し、入賞数記憶領域の値を「0」(下位2ビットは「00」)に更新する。そして、同図(d)の一般入賞口に対応する賞球コマンド(0AH)を、送信データレジスタにセットする。これにより、球数制御部600に賞球コマンド(0AH)が送信される。   Further, when the winning ball command set process in step S16023 is executed at the third interrupt, the main control unit 300 moves, for example, the addresses of the winning number storage area in ascending order, and the winning number storage area other than “0” is stored. That is, “1” is subtracted from the value “1” (the lower 2 bits are “01”) of the general winning award winning number storage area, and the value of the winning number storage area is “0” (the lower 2 bits are “00”). ). Then, a winning ball command (0AH) corresponding to the general winning opening in FIG. 4D is set in the transmission data register. As a result, a prize ball command (0AH) is transmitted to the ball number control unit 600.

このように、1つの賞球コマンドを送信することによって、入賞数記憶領域の入賞数が減算されていく。   In this way, the number of winnings in the winning number storage area is subtracted by transmitting one winning ball command.

尚、ここでは主制御部300の1回のタイマ割込み処理で1つの賞球コマンドを送信している。しかし、これに限らず、同一のタイマ割込み処理で複数の(全ての)入賞数記憶領域に対応する賞球コマンドを送信するようにしてもよいし、入賞数が「2」以上の場合、値が所定数(例えば255)になるまで繰り返し合算し、1回の賞球コマンドとして送信してもよい。合算する場合は、各入賞口毎に行うものであってもよいし、全ての入賞口の入賞数を合算するものであってもよい。また一方で、主制御部300の1回のタイマ割込み処理で1つの賞球コマンドのみを送信するものとしてもよい。   Here, one prize ball command is transmitted by one timer interruption process of the main control unit 300. However, the present invention is not limited to this, and it is also possible to transmit a plurality of (all) winning ball commands corresponding to the winning number storage areas by the same timer interrupt processing, and if the winning number is “2” or more, the value May be added repeatedly until a predetermined number (for example, 255) is reached and transmitted as a single prize ball command. In the case of summing up, it may be performed for each winning mouth, or the number of winnings of all winning mouths may be summed up. On the other hand, only one prize ball command may be transmitted in one timer interruption process of the main control unit 300.

また、入賞数記憶領域の配置は、賞球数が大きい入賞口に対応するものが小さい番地のアドレス(図では上)になるように配置してもよいし、抽選にかかるもの(例えば第1または第2特図始動口など)が小さい番地になるように配置してもよい。   Further, the winning number storage area may be arranged so that the address corresponding to the winning opening with a large number of winning balls is an address of a small address (upper in the figure), or a lottery (for example, the first) Or you may arrange | position so that a 2nd special figure starting port etc. may become a small address.

なお、ここでは主制御部300から球数制御部600に送信する賞球コマンドの形式は、賞球数の個数情報そのものを送信する個数形式でもよいし、個数情報とは異なる識別子を送信するコマンド形式のいずれであってもよい。また、1回の割り込み処理で送信する方法として、賞球コマンドを1つずつ送信する方法の他、送信のタイミングで蓄積されているすべての賞球コマンドを送信する方法、あるいは入賞に対応する賞球数を(個数情報に変換した上で)合算値を送信する方法などがある。この場合の合算値は入賞数記憶領域の大きさに応じて決定され、ここでは例えば255以内である。また、賞球コマンドの形式と送信方法の組合せは種々に組合せ可能である。   Here, the format of the winning ball command transmitted from the main control unit 300 to the ball number control unit 600 may be a number format for transmitting the number information of the winning ball number itself, or a command for transmitting an identifier different from the number information. Any of the formats may be used. Further, as a method of transmitting in one interrupt process, in addition to a method of transmitting prize ball commands one by one, a method of transmitting all prize ball commands accumulated at the transmission timing, or a prize corresponding to winning There is a method of transmitting the total value (after converting the number of balls into number information). The total value in this case is determined according to the size of the winning number storage area, and is, for example, within 255 here. The combination of the format of the prize ball command and the transmission method can be variously combined.

図33を参照して、主制御部タイマ割込み処理における賞球数表示処理(図13のステップS216、S220)について説明する。同図(a)は、図28(e)の再掲であり、同図(b)は、賞球コマンド送信前の各入賞数記憶領域の状態を示し、同図(c)は、1つの賞球コマンド送信後の各入賞数記憶領域の状態を示す。   With reference to FIG. 33, the award ball number display process (steps S216 and S220 in FIG. 13) in the main controller timer interrupt process will be described. FIG. 28 (a) is a reprint of FIG. 28 (e), FIG. 18 (b) shows the state of each winning number storage area before sending the winning ball command, and FIG. The state of each winning number storage area after the ball command transmission is shown.

賞球数表示処理では、主制御部300において、球数制御部600に賞球コマンド送信前の賞球がある場合、その賞球数(複数ある場合はそれらの合計値)を賞球数表示部690に表示する。   In the prize ball number display process, if there is a prize ball before the prize ball command transmission in the ball number control part 600 in the main control part 300, the prize ball number (the total value of the prize balls if there are plural) is displayed as the prize ball number. Displayed on part 690.

ここでは一例として、図13に示す主制御部タイマ割込み処理の賞球コマンド送信処理(ステップS219)の前後で2回の賞球数表示処理を行っている。すなわち第1の賞球数表示処理(ステップS216)は入賞口カウンタ更新処理(ステップS215)と賞球コマンド送信処理(ステップS219)の間で行い、第2の賞球数表示処理(ステップS220)は賞球コマンド送信処理(ステップS219)以降に行う。賞球数表示処理の処理内容は同様であって、図33(a)の如く、所定の入賞カウンタに基づいて、賞球数を表示する。   Here, as an example, the prize ball number display process is performed twice before and after the prize ball command transmission process (step S219) of the main control unit timer interruption process shown in FIG. That is, the first prize ball number display process (step S216) is performed between the winning opening counter update process (step S215) and the prize ball command transmission process (step S219), and the second prize ball number display process (step S220). Is performed after the prize ball command transmission process (step S219). The contents of the winning ball number display processing are the same, and as shown in FIG. 33A, the number of winning balls is displayed based on a predetermined winning counter.

図33(b)(c)を参照して具体的な入賞カウンタ(入賞数記憶領域)の一例を用いて説明する。   Description will be made with reference to FIGS. 33B and 33C using an example of a specific winning counter (winning number storage area).

同図(b)では、第1特図始動口用入賞数記憶領域782の下位2ビットに[10](入賞数「2」)が記憶され、一般入賞口用入賞数記憶領域786の最下位ビットに[1](入賞数「1」)が記憶されている。これらは球数制御部600に賞球の払い出しを要求する前(すなわち賞球コマンド送信前)の入賞数が記憶であり、遊技球数には加算されていない賞球数である。   In FIG. 10B, [10] (winning number “2”) is stored in the lower 2 bits of the first special figure starting port winning number storage area 782, and the lowest order of the general winning opening winning number storage area 786. [1] (winning number “1”) is stored in the bit. These are the numbers of winning balls that are stored before the number-of-balls control unit 600 is requested to pay out the winning balls (that is, before the winning ball command is transmitted) and are not added to the number of gaming balls.

例えば、第1の賞球数表示処理(図13、ステップS216)において、主制御部300は例えば、入賞数記憶領域のアドレスの小さい番地から昇順に(図では上から下に)移動して値を読出し、「0」以外の入賞数記憶領域の値を読出し、入賞数記憶領域に対応する賞球数を例えば、図32(d)の賞球コマンドに対応付けられた賞球数に基づき合算し、賞球数表示部690に表示する。   For example, in the first prize ball number display process (FIG. 13, step S216), the main control unit 300 moves, for example, in ascending order (from top to bottom in the figure) from the smallest address in the winning number storage area. Is read, and the value of the winning number storage area other than “0” is read, and the number of winning balls corresponding to the winning number storage area is added based on, for example, the number of winning balls associated with the winning ball command in FIG. And displayed on the award ball number display section 690.

この場合は、第1特図始動口用入賞数記憶領域782に入賞数「2」が記憶されているので、主制御部300は、第1特図始動口230の入賞による賞球数「6」(=賞球数「3」×入賞数「2」)と、一般入賞口226の入賞による賞球数「10」(=賞球数「10」×入賞数「1」)の合算、すなわち賞球数「16」を賞球数表示部690に表示する。またこの場合遊技球数が「100」であるとすると球数制御部600は、球数表示部640に「100」を表示する。   In this case, since the winning number “2” is stored in the first special figure starting port winning number storage area 782, the main control unit 300 determines the number of winning balls “6” by winning the first special figure starting port 230. ”(= The number of winning balls“ 3 ”× the number of winnings“ 2 ”) and the number of winning balls“ 10 ”(= the number of winning balls“ 10 ”× the number of winnings“ 1 ”) by winning the general winning opening 226, that is, The number of winning balls “16” is displayed on the winning ball number display section 690. In this case, if the number of game balls is “100”, the ball number control unit 600 displays “100” on the ball number display unit 640.

その後、賞球コマンド送信処理(図13、ステップS219)において、主制御部300は球数制御部600に賞球コマンドを送信する。図33(c)を参照して、この場合主制御部300は、各入賞数記憶領域の値に基づき、第1特図始動口230入賞による賞球コマンドを送信し、第1特図始動口用入賞数記憶領域の入賞数を「1」に更新する。   Thereafter, in the prize ball command transmission process (FIG. 13, step S219), the main control unit 300 transmits a prize ball command to the ball number control unit 600. Referring to FIG. 33 (c), in this case, the main control unit 300 transmits a winning ball command by winning the first special figure starting port 230 based on the value of each winning number storage area, and the first special figure starting port The number of winnings in the prize winning number storage area is updated to “1”.

その後、第2の賞球数表示処理(図13、ステップS220)において、主制御部300は、第1特図始動口用入賞数記憶領域782に入賞数「1」が記憶されているので、第1特図始動口230の入賞による賞球数「3」(=賞球数「3」×入賞数「1」)と、一般入賞口226の入賞による賞球数「10」(=賞球数「10」×入賞数「1」)の合算、すなわち賞球数「13」を賞球数表示部690に表示する。またこの場合、第1特図始動口230入賞の賞球コマンドを受信した球数制御部600は、遊技球数「100」に賞球数「3」を加算し、球数表示部640に「103」を表示する。   Thereafter, in the second winning ball number display process (FIG. 13, step S220), the main control unit 300 stores the winning number “1” in the first special figure starting port winning number storage area 782. The number of winning balls “3” (= the number of winning balls “3” × the number of winnings “1”) at the first special figure starting port 230 and the number of winning balls “10” (= the winning ball) of the general winning port 226. (The number “10” × the number of winnings “1”), that is, the number of winning balls “13” is displayed on the winning ball number display section 690. In this case, the ball number control unit 600 that has received the winning ball command for winning the first special figure starting port 230 adds the number of winning balls “3” to the number of gaming balls “100”, and the ball number display unit 640 displays “ 103 "is displayed.

このように、例えば主制御部タイマ割込み処理のステップS216からステップS220までの間に新たな入賞が無い場合には、賞球コマンド送信処理(ステップS219)後に賞球数表示部690に表示される賞球数は、第1の賞球数表示処理で賞球数表示部690に表示される賞球数から、球数制御部600に送信された賞球コマンドの賞球数の分を減じた値となる。これにより、賞球コマンドの送信によって賞球数表示部690の数値が減少したことを遊技者に視認させることができる場合がある。   Thus, for example, when there is no new winning between step S216 and step S220 of the main control unit timer interruption process, it is displayed on the award ball number display unit 690 after the award ball command transmission process (step S219). The number of prize balls is obtained by subtracting the number of prize balls of the prize ball command transmitted to the ball number control unit 600 from the number of prize balls displayed on the prize ball number display unit 690 in the first prize ball number display process. Value. Thereby, the player may be able to visually recognize that the numerical value of the prize ball number display section 690 has decreased due to the transmission of the prize ball command.

なお、賞球数表示処理(ステップS216およびステップ220)を実行する前に各入賞口等に入賞があり、それに対応する入賞数記憶領域の値が更新されていた場合は、主制御部300は、賞球数表示処理(ステップS216およびステップ220)において各入賞口等の賞球数を合算し、それを賞球表示部690に表示する。   If there is a winning in each winning opening etc. before executing the winning ball number display processing (step S216 and step 220), and the value of the winning number storage area corresponding to it has been updated, the main control unit 300 In the prize ball number display process (step S216 and step 220), the number of prize balls such as each winning opening is added and displayed on the prize ball display unit 690.

ここでは、入賞口カウンタ更新処理(ステップS215)と入賞受付処理(ステップS217)の間に第1の賞球数表示処理(ステップS216)を行い、賞球コマンド送信処理(ステップS219)と普図状態更新処理(ステップS221)の間に第2の賞球数表示処理(ステップS220)を行う場合を例に説明したが、第1および第2の賞球数表示処理の実行手順はこの位置に限らない。すなわち、第1の賞球数表示処理(ステップS216)は、入賞口カウンタ更新処理(ステップS215)と賞球コマンド送信処理(ステップS219)の間であればよく、入賞受付処理(ステップS217)を先に実行するものであってもよい。   Here, the first prize ball number display process (step S216) is performed between the winning prize counter updating process (step S215) and the winning acceptance process (step S217), and the prize ball command transmission process (step S219) The case where the second prize ball number display process (step S220) is performed during the state update process (step S221) has been described as an example, but the execution procedure of the first and second prize ball number display processes is at this position. Not exclusively. In other words, the first prize ball number display process (step S216) may be between the winning prize counter update process (step S215) and the prize ball command transmission process (step S219), and the prize acceptance process (step S217). It may be executed first.

また、第2の賞球数表示処理(ステップS220)は、賞球コマンド送信処理(ステップS219)の後であれば、例えば普図状態更新処理(ステップS221)以降に実行するものであってもよい。   Further, the second prize ball number display process (step S220) may be executed after, for example, the normal state update process (step S221) after the prize ball command transmission process (step S219). Good.

また賞球表示処理は、ステップS216またはステップ220のいずれか一方で実行するものとしてもよい。例えば、ステップS216のみで行った場合は、賞球表示部690と球数表示部640の表示態様は以下の通りとなる。賞球数表示処理実行前に各入賞記憶領域の状態が図33(b)の状態であったとすると、賞球表示部690には「16」が表示され、球数表示部640に例えば「100」が表示される。そして賞球コマンド送信処理(ステップS219)が実行されると、球数表示部640のみ表示が「103」に更新され、賞球表示部690の表示は「16」が維持される。そして次回の割込み処理までに入賞が無い場合には、各入賞記憶領域の状態が図33(c)の状態となり、ステップS216において賞球表示部690は「13」に表示が更新される。この時球数表示部640は「103」の表示が維持される。   The prize ball display process may be executed in either step S216 or step 220. For example, when it is performed only in step S216, the display modes of the winning ball display unit 690 and the ball number display unit 640 are as follows. If the winning storage area is in the state shown in FIG. 33B before the winning ball number display process is executed, “16” is displayed on the winning ball display unit 690, and “100” is displayed on the ball number display unit 640, for example. Is displayed. When the prize ball command transmission process (step S219) is executed, the display of only the ball number display unit 640 is updated to “103”, and the display of the prize ball display unit 690 is maintained at “16”. If there is no winning until the next interruption processing, the state of each winning storage area is as shown in FIG. 33C, and the display of the winning ball display unit 690 is updated to “13” in step S216. At this time, the number display unit 640 maintains the display of “103”.

また例えば、ステップS220のみで行った場合は、賞球表示部690と球数表示部640の表示態様は以下の通りとなる。賞球コマンド送信処理(ステップS219)実行時に各入賞記憶領域の状態が図33(b)の状態であったとすると、賞球表示部690には「16」が表示され、球数表示部640に例えば「100」が表示される。そして賞球コマンド送信処理(ステップS219)が実行され、賞球表示処理が実行されると、賞球表示部690は「13」に表示が更新され、球数表示部640の表示が「103」に更新される(同図(c))。その間に例えば、可変入賞口234に入賞があった場合、入賞口カウンタ更新処理(ステップS215)において可変入賞口用入賞数記憶領域780の値は「1」に更新される。例えばこれが賞球コマンド送信処理で送信できるタイミングであった場合、賞球数表示処理では、一般入賞口用入賞数記憶領域786の値に基づき、賞球表示部690に「10」を表示する。球数表示部640の表示は、可変入賞口234の賞球数が加算され、「118」となる。つまりこのようなタイミングの場合には、可変入賞口234の賞球数は、賞球表示部690に反映されない。なお、可変入賞口234に入賞したことによる賞球コマンドが賞球コマンド送信処理で送信できるタイミングでない場合には、賞球数表示処理では、可変入賞口234の賞球数も合算し、賞球表示部690に「25」を表示する。   For example, when it is performed only in step S220, the display modes of the prize ball display unit 690 and the ball number display unit 640 are as follows. If the winning storage area is in the state shown in FIG. 33B when the winning ball command transmission process (step S219) is executed, “16” is displayed on the winning ball display portion 690, and the number of balls display portion 640 is displayed. For example, “100” is displayed. When the prize ball command transmission process (step S219) is executed and the prize ball display process is executed, the prize ball display unit 690 is updated to “13”, and the ball number display unit 640 displays “103”. (Fig. 3C). In the meantime, for example, if there is a prize at the variable prize opening 234, the value in the prize winning number storage area 780 for variable prize opening is updated to “1” in the prize opening counter update process (step S215). For example, when this is the timing at which the prize ball command can be transmitted in the prize ball command transmission process, in the prize ball number display process, “10” is displayed on the prize ball display unit 690 based on the value in the prize winning number storage area 786 for the general prize opening. The display of the ball number display unit 640 is “118” by adding the number of winning balls of the variable winning opening 234. That is, at such timing, the number of winning balls of the variable winning opening 234 is not reflected on the winning ball display unit 690. If the prize ball command resulting from winning the variable prize slot 234 is not at a timing that can be transmitted by the prize ball command transmission process, the prize ball number display process also adds up the number of prize balls in the variable prize slot 234 to obtain the prize ball. “25” is displayed on the display unit 690.

また、同図(b)から同図(c)に状態が変化する場合において、賞球コマンドを送信した割込み処理と同一の割込み処理内で減算センサ604Zで機内球710の通過を検出した場合に、賞球表示処理が実行されると、賞球表示部690は「13」に表示が更新され、遊技球数が「1」減算されて球数表示部640の表示は「102」に更新される。   Also, when the state changes from (b) to (c) in the same figure, when the subtraction sensor 604Z detects the passage of the in-flight ball 710 in the same interrupt process as the interrupt process that transmitted the prize ball command. When the prize ball display process is executed, the prize ball display unit 690 is updated to “13”, the number of game balls is decremented by “1”, and the display of the ball number display unit 640 is updated to “102”. The

尚、上記の説明では入賞数記憶領域は1バイトで構成する場合を例に説明したが、2バイトの領域で構成してもよい。
<球数制御部における通信処理>
In the above description, the case where the winning number storage area is configured by 1 byte has been described as an example, but it may be configured by a 2-byte area.
<Communication processing in the ball number control unit>

図34を参照して、球数制御部600における通信処理の概要を説明する。同図は、図17に示した球数制御部割込み処理で行う処理のうち、主に主制御部300との通信に関連する処理を抽出したフローチャートである。図34(a)は、エラー管理処理(図17のステップS1205)で行う主制御通信エラー管理処理の流れを示すフローチャートである。同図(b)は、遊技球数設定処理(図17のステップS1211)内で行う遊技球数減算処理の流れを示すフローチャートであり、同図(c)が、遊技球数設定処理(図17のステップS1211)内で行う遊技球数表示処理の流れを示すフローチャートである。   With reference to FIG. 34, the outline | summary of the communication process in the ball number control part 600 is demonstrated. This figure is a flowchart in which processing mainly related to communication with the main control unit 300 is extracted from the processing performed in the ball number control unit interruption processing shown in FIG. FIG. 34A is a flowchart showing the flow of the main control communication error management process performed in the error management process (step S1205 in FIG. 17). FIG. 7B is a flowchart showing the flow of the game ball number subtraction process performed in the game ball number setting process (step S1211 in FIG. 17), and FIG. It is a flowchart which shows the flow of the game ball number display process performed in step S1211).

図34(a)を参照して、主制御通信エラー管理処理では、主制御部300から送信される通信確認コマンドを、球数制御部600で所定期間受信しない場合に通信エラーと判定する。   Referring to FIG. 34 (a), in the main control communication error management process, if the communication confirmation command transmitted from the main control unit 300 is not received by the ball number control unit 600 for a predetermined period, it is determined as a communication error.

ステップS1701では、主制御通信監視タイマから1を減算する。主制御通信監視タイマは、主制御部300から通信コマンドを受信していない期間を監視するタイマである。本実施形態は一例として球数制御部割込み処理(図17)を2ms周期で実行するものとし、主制御部300からの通信コマンドを受信していない場合にエラーにする所定の期間を例えば1000msとする。主制御通信監視タイマには後述する他の処理で初期値として「500(1000ms/2ms)」がセットされている。   In step S1701, 1 is subtracted from the main control communication monitoring timer. The main control communication monitoring timer is a timer that monitors a period during which no communication command is received from the main control unit 300. In the present embodiment, as an example, the ball number control unit interrupt process (FIG. 17) is executed at a cycle of 2 ms, and a predetermined period for which an error occurs when a communication command from the main control unit 300 is not received is, for example, 1000 ms. To do. The main control communication monitoring timer is set to “500 (1000 ms / 2 ms)” as an initial value in other processing described later.

ステップS1703では、主制御通信監視タイマの値を判定し、「0」の場合はステップS1705に進み、そうでない場合は処理を終了する。主制御通信監視タイマが「0」とは、主制御部300から通信コマンドを受信していない期間が1000ms経過した場合である。   In step S1703, the value of the main control communication monitoring timer is determined. If “0”, the process proceeds to step S1705, and if not, the process ends. The main control communication monitoring timer is “0” when 1000 ms elapses during which no communication command is received from the main control unit 300.

ステップS1705では、主制御通信エラーフラグに「1」をセットする。主制御通信エラーフラグは、主制御通信エラー状態を設定するフラグであり、例えば「1」の場合が異常であり、「0」の場合が正常である。   In step S1705, “1” is set to the main control communication error flag. The main control communication error flag is a flag for setting a main control communication error state. For example, “1” is abnormal, and “0” is normal.

図34(b)を参照して、遊技球数減算処理の流れについて説明する。遊技球数減算処理は、機内球710の発射に対応して、遊技者の遊技球数(機内球710の電子情報上の発射可能球数)を減算する処理であり、上述した遊技球数設定処理(図17のステップS1211)の一部として実行される処理である。   With reference to FIG. 34B, the flow of the game ball number subtraction process will be described. The game ball number subtraction process is a process of subtracting the player's game ball number (the number of balls that can be fired on the electronic information of the in-flight ball 710) in response to the launch of the in-flight ball 710. This process is executed as part of the process (step S1211 in FIG. 17).

ステップS1801では、減算条件が成立しているか否を判断し、減算条件が成立している場合はステップS1803に進み、減算条件が成立していない場合は処理を終了する。減算条件は例えば、減算センサ604Zで機内球710の通過を検出した場合である。また、減算センサ604Zに限らず、遊技媒体経路610の各種センサ(例えば、球磨き装置612の球磨き装置入口センサ、揚上装置614の揚上装置入口センサ、球送り装置616の球送り装置入口センサなど)で機内球710の通過を検出した場合としてもよい。   In step S1801, it is determined whether the subtraction condition is satisfied. If the subtraction condition is satisfied, the process proceeds to step S1803. If the subtraction condition is not satisfied, the process ends. The subtraction condition is, for example, a case where the subtraction sensor 604Z detects passage of the in-flight ball 710. In addition to the subtraction sensor 604Z, various sensors of the game medium path 610 (for example, a ball polishing device inlet sensor of the ball polishing device 612, a lifting device inlet sensor of the lifting device 614, a ball feeding device inlet of the ball feeding device 616) It may be a case where the passage of the in-flight ball 710 is detected by a sensor or the like.

ステップS1803では、機内球710の1個の発射により遊技球数を1個消費したとして、遊技球数から「1」を減算する。同図(b)では、機内球710の発射による遊技球数の減算のフローを抽出しているが、本実施形態では、上述したように遊技球数設定処理において賞球数、貸球数および再プレイ球数の加算と、計数球数の減算と併せて、機内球710の発射による遊技球数の消費数(遊技領域124への機内球710の投入数=イン球数)を減算している。このため、本ステップでは、遊技領域124に投入された球数が記憶されているRAMのイン球数記憶領域の値を読出し、これに「1」を加算して元のイン球数記憶領域に記憶する。これにより、機内球710の1個の発射に対応して遊技球数の1個の減算を行うものとする。   In step S1803, “1” is subtracted from the number of game balls, assuming that one game ball is consumed by firing one in-flight ball 710. In FIG. 5B, the flow of subtracting the number of game balls due to the firing of the in-flight ball 710 is extracted, but in this embodiment, as described above, the number of prize balls, the number of rented balls and In addition to adding the number of replayed balls and subtracting the number of counted balls, subtract the number of game balls consumed by launching the in-flight ball 710 (the number of in-flight balls 710 thrown into the game area 124 = the number of in-balls). Yes. For this reason, in this step, the value of the in-ball number storage area of the RAM in which the number of balls thrown into the game area 124 is stored is read, and “1” is added to this value in the original in-ball number storage area. Remember. Thereby, one subtraction of the number of game balls is performed in response to one launch of the in-flight ball 710.

図34(c)は、遊技球数表示処理を行う。遊技球数表示処理は、遊技球数減算処理において減算(更新)された遊技球数を球数表示部640に表示する処理であり、上述した遊技球数設定処理(図17のステップS1211)の一部として実行される処理である。   FIG. 34 (c) performs a game ball number display process. The game ball number display process is a process of displaying the number of game balls subtracted (updated) in the game ball number subtraction process on the ball number display unit 640, and the game ball number setting process (step S1211 in FIG. 17) described above. It is a process executed as a part.

ステップS1901では、同図(b)の遊技球数減算処理、および遊技球数設定処理の他の処理に基づき、更新後の遊技球数を球数表示部640に表示する。すなわち、遊技球数から、遊技球数減算処理におけるイン球数を減算するだけでなく、貸球数、賞球数および再プレイ球数の加算と計数球数の減算を行い、更新後の遊技球数を球数表示部640に表示する。   In step S1901, the updated game ball number is displayed on the ball number display unit 640 based on the other game ball number subtraction process and the game ball number setting process in FIG. In other words, not only the number of in-balls in the game ball number subtraction process is subtracted from the number of game balls, but the number of rented balls, the number of winning balls, the number of replayed balls and the number of counted balls are subtracted, and the game The number of balls is displayed on the ball number display unit 640.

図35を参照して、球数制御部割込み処理(図17)にて実行されるシリアルコマンド管理処理(ステップS1204)について説明する。図35(a)は、シリアルコマンド管理処理の概要を示すフローチャートであり、同図(b)はシリアルコマンド受信処理における主な処理の流れを示すフローチャートであり、同図(c)はシリアルコマンド送信処理における主な処理の流れを説明するフローチャートである。   With reference to FIG. 35, the serial command management process (step S1204) executed in the ball number control unit interrupt process (FIG. 17) will be described. FIG. 35A is a flowchart showing an outline of the serial command management process, FIG. 35B is a flowchart showing a main process flow in the serial command reception process, and FIG. 35C is a serial command transmission. It is a flowchart explaining the flow of the main processes in a process.

図35(a)を参照して、シリアルコマンド管理処理の概要について説明する。   An overview of the serial command management process will be described with reference to FIG.

ステップS2001では、シリアルコマンド受信処理を行う。ステップS2003ではシリアルコマンド送信処理を行う。既述の如く、シリアル通信回路752の内蔵レジスタ(受信データレジスタ774、送信データレジスタ776)にデータをセットすることによりデータが送受信される。   In step S2001, serial command reception processing is performed. In step S2003, serial command transmission processing is performed. As described above, data is transmitted and received by setting data in the built-in registers (the reception data register 774 and the transmission data register 776) of the serial communication circuit 752.

図35(b)を参照して、シリアルコマンド受信処理の概要について説明する。   An overview of the serial command reception process will be described with reference to FIG.

ステップS2101では、主制御部300から通信確認コマンドを受信しているか否かを判定する。通信確認コマンドを受信している場合は、ステップS2103に進み、そうでない場合は、ステップS2109に進む。   In step S <b> 2101, it is determined whether a communication confirmation command is received from the main control unit 300. If a communication confirmation command has been received, the process proceeds to step S2103, and if not, the process proceeds to step S2109.

ステップS2103では、主制御通信監視タイマを初期化する。主制御通信監視タイマは図34(a)の主制御通信エラー管理処理で説明したとおり、今回、主制御部300から通信確認コマンドを受信してから次回の通信確認コマンドを受信するまでの期間が所定期間(例えば1000ms)を超えた場合に主制御通信エラーを設定するためのタイマであり、球数制御部割込み処理が例えば2ms周期で行われている場合には、当該タイマに初期値として「500」をセットする。   In step S2103, the main control communication monitoring timer is initialized. As described in the main control communication error management process in FIG. 34A, the main control communication monitoring timer has a period from when the communication confirmation command is received from the main control unit 300 to when the next communication confirmation command is received. It is a timer for setting a main control communication error when a predetermined period (for example, 1000 ms) is exceeded, and when the ball number control unit interrupt processing is performed at a cycle of 2 ms, for example, 500 "is set.

ステップS2105では、主制御通信エラーフラグを初期化する。ここでは当該エラーフラグに「0」をセットする。   In step S2105, the main control communication error flag is initialized. Here, “0” is set in the error flag.

ステップS2107では、通信確認コマンド受信フラグを設定する。通信確認コマンド受信フラグは、主制御部300に通信確認コマンドを受信したことを通知(返信)するフラグであり、例えば「1」(またはオン)が主制御部300に返信することを意味し、「0」(またはオフ)が返信しないことを意味する。ここでは、通信確認コマンド受信フラグに「1」をセットする。   In step S2107, a communication confirmation command reception flag is set. The communication confirmation command reception flag is a flag for notifying (replying) that the communication confirmation command has been received by the main control unit 300, for example, “1” (or ON) means returning to the main control unit 300, “0” (or off) means no reply. Here, “1” is set to the communication confirmation command reception flag.

ステップS2109では、主制御部300から賞球コマンドを受信しているか否かを判定する。受信している場合は、ステップS2111に進み、そうでない場合はステップS2113に進む。   In step S2109, it is determined whether or not a prize ball command is received from the main control unit 300. If it has been received, the process proceeds to step S2111; otherwise, the process proceeds to step S2113.

ステップS2111では、受信した賞球コマンドに基づき、賞球数をRAMの賞球数記憶領域の値に加算する。つまり賞球数記憶領域に記憶されている値を読出し、賞球数を加算し元の賞球数記憶領域に記憶する。これにより、球数制御部割込み処理(図17)の遊技球数設定処理(ステップS1211)において、貸球数および再プレイ球数の加算、イン球数および計数球数の減算と併せて賞球数が加算され、遊技球数が更新される。   In step S2111, based on the received prize ball command, the number of prize balls is added to the value of the prize ball number storage area of the RAM. That is, the value stored in the prize ball number storage area is read, the prize ball number is added, and the original prize ball number storage area is stored. Thereby, in the game ball number setting process (step S1211) of the ball number control unit interruption process (FIG. 17), the prize ball is combined with the addition of the number of rented balls and the number of replayed balls and the subtraction of the number of in-balls and the number of counted balls. The number is added and the number of game balls is updated.

ステップS2113では、その他シリアルコマンドの受信処理を行う。   In step S2113, other serial command reception processing is performed.

なお、主制御部300から賞球コマンドが球数制御部600に送信され、球数制御部600がこれを受信した場合に、球数制御部600は賞球コマンドを受信したことを報知するコマンド(賞球コマンドに対する返信コマンド)を主制御部300に送信してもよい。その場合、同図(b)のステップS2113において、当該返信コマンドを送信する。あるいは当該返信コマンドを送信するためのフラグを設定し、シリアルコマンド送信処理の通信確認コマンドと共に、当該返信コマンドを主制御部300に送信してもよい。   In addition, when a prize ball command is transmitted from the main control unit 300 to the ball number control unit 600 and the ball number control unit 600 receives the command, the ball number control unit 600 notifies that the prize ball command has been received. (Reply command for the prize ball command) may be transmitted to the main control unit 300. In that case, the reply command is transmitted in step S2113 of FIG. Alternatively, a flag for transmitting the reply command may be set, and the reply command may be transmitted to the main control unit 300 together with a communication confirmation command for serial command transmission processing.

この場合、主制御部タイマ割込み処理で行う賞球数表示処理は、球数制御部600から賞球コマンド受信の返信コマンドが主制御部300に送信された場合に表示を更新するものであってもよい。   In this case, the prize ball number display process performed in the main controller timer interrupt process is to update the display when a reply command for receiving a prize ball command is transmitted from the ball number controller 600 to the main controller 300. Also good.

図35(c)を参照して、シリアルコマンド送信処理の概要について説明する。   An overview of the serial command transmission process will be described with reference to FIG.

ステップS2201では、通信確認コマンド受信フラグを判定する。通信確認コマンド受信フラグが「1」(オン)の場合は、ステップS2203に進み、そうでない場合は、処理を終了する。   In step S2201, a communication confirmation command reception flag is determined. If the communication confirmation command reception flag is “1” (ON), the process proceeds to step S2203; otherwise, the process ends.

ステップS2203では、通信確認コマンド(第二の通信確認コマンド)をセットする。球数制御部600のCPUが球数制御部用マイクロコンピュータ770に内蔵されたシリアル通信回路752の送信データレジスタ776に賞球コマンドをセットすると、シリアル通信回路752は送信データレジスタ776にセットされた通信確認コマンドを主制御部300(主制御部用マイクロコンピュータ760)に送信する。これにより、主制御部300からの通信確認コマンドの受信の報知(返信)を行う。   In step S2203, a communication confirmation command (second communication confirmation command) is set. When the CPU of the ball number control unit 600 sets a prize ball command in the transmission data register 776 of the serial communication circuit 752 incorporated in the ball number control unit microcomputer 770, the serial communication circuit 752 is set in the transmission data register 776. A communication confirmation command is transmitted to the main control unit 300 (main control unit microcomputer 760). Thereby, notification (return) of reception of the communication confirmation command from the main control unit 300 is performed.

ステップS2205では、通信確認コマンド受信フラグに「0」(またはオフ)をセットする。   In step S2205, the communication confirmation command reception flag is set to “0” (or off).

ステップS2207では、その他シリアルコマンド送信処理を行う。その他シリアルコマンド送信処理では、通信確認コマンド以外の情報(たとえばエラー情報)などを送信する。ここでは、通信確認コマンド受信の返信(第二の通信確認コマンド)を球数制御部600から主制御部300に送信する場合、これと合わせて、それ以外のエラー情報を送信する。このような処理が可能となるのは、主制御部300から通信の主導となるコマンド(第一の通信確認コマンドまたは賞球コマンド)を球数制御部600に送信する構成に限る。   In step S2207, other serial command transmission processing is performed. In other serial command transmission processing, information (for example, error information) other than the communication confirmation command is transmitted. Here, when a reply of communication confirmation command reception (second communication confirmation command) is transmitted from the ball number control unit 600 to the main control unit 300, other error information is also transmitted. Such processing can be performed only in a configuration in which a command (first communication confirmation command or prize ball command) that leads communication is transmitted from the main control unit 300 to the ball number control unit 600.

同図(d)は、シリアルコマンド送信処理の他の形態を示すフローチャートである。この場合、ステップS2201で通信確認コマンド受信フラグを判定し、当該フラグが「0」(またはオフ)、すなわち、通信確認コマンド受信の返信を主制御部300に送信しない場合、通信確認コマンド以外のエラー情報などをステップS2207のその他シリアルコマンド送信処理にて送信する。例えば主制御通信エラーなどは、この送信処理によって送信できる。これ以外は、同図(c)と同様であるので説明は省略する。   FIG. 4D is a flowchart showing another form of serial command transmission processing. In this case, if the communication confirmation command reception flag is determined in step S2201 and the flag is “0” (or off), that is, if a communication confirmation command reception reply is not transmitted to the main control unit 300, an error other than the communication confirmation command Information or the like is transmitted in the other serial command transmission processing in step S2207. For example, a main control communication error can be transmitted by this transmission process. Other than this, it is the same as FIG.

また、図35では、シリアルコマンド受信処理とシリアルコマンド送信処理のフローチャートを分けて記載している。このため通信確認コマンド受信フラグを使用し、シリアルコマンド受信処理(同図(b))のステップS2107において当該フラグに「1」(オン)をセットし、シリアルコマンド送信処理(同図(c))のステップS2201でこのフラグを判定し、続くステップS2203にて通信確認コマンドを送信データレジスタセット(送信)するものとした。しかし、通信確認コマンド受信フラグを使用せず、シリアルコマンド受信処理(同図(b))のステップS2105において、主制御通信エラーフラグが「0」(正常である)場合には、続くステップS2107で通信確認コマンドを送信データレジスタにセット(送信)するものとしてもよい。   In FIG. 35, a flowchart of serial command reception processing and serial command transmission processing is shown separately. For this reason, the communication confirmation command reception flag is used, and in step S2107 of the serial command reception process (FIG. 5B), the flag is set to “1” (ON), and the serial command transmission process (FIG. 5C). In step S2201, the flag is determined. In subsequent step S2203, a communication confirmation command is set (transmitted). However, if the main control communication error flag is “0” (normal) in step S2105 of the serial command reception process ((b) in the figure) without using the communication confirmation command reception flag, in the subsequent step S2107. A communication confirmation command may be set (transmitted) in the transmission data register.

また上記の例では、球数制御部600のシリアルコマンド管理処理は、球数制御部割込み処理のタイマ更新処理(ステップS1203)とエラー管理処理(ステップS1205)の間で実行する場合を例に説明したが、例えば、エラー管理処理(ステップS1205)とエラー解除スイッチ監視処理(ステップS1207)の間で実行するものとしてもよい。   In the above example, the case where the serial command management process of the ball number control unit 600 is executed between the timer update process (step S1203) and the error management process (step S1205) of the ball number control unit interrupt process will be described as an example. However, for example, it may be executed between the error management process (step S1205) and the error release switch monitoring process (step S1207).

図36から図40は、主制御部300と球数制御部600の間の通信処理のタイミングチャートの一例を示す。   36 to 40 show an example of a timing chart of communication processing between the main control unit 300 and the ball number control unit 600. FIG.

図36から図40において、主制御部300と球数制御部600の時間軸(横軸)上の目盛は、それぞれの定期的な割込み処理の周期を示す。時間軸は左から右に時間の経過を表す。既述の如く、主制御部300のタイマ割込み処理は例えば4msの周期で発生し、球数制御部600のタイマ割込み処理は例えば2msの周期で発生する。また主制御部300の割込み処理のタイミングに合わせて、シリアルコマンド通信エラーフラグ、シリアルコマンドステータスフラグ、通信確認コマンド送信カウンタ、通信確認コマンド送信タイマの内容を併記した。また、各図において、実線矢印が通信確認コマンドであり、破線が賞球コマンドである。   36 to 40, the scales on the time axis (horizontal axis) of the main control unit 300 and the ball number control unit 600 indicate the period of each periodic interrupt process. The time axis represents the passage of time from left to right. As described above, the timer interrupt process of the main control unit 300 occurs at a cycle of 4 ms, for example, and the timer interrupt process of the ball number control unit 600 occurs at a cycle of 2 ms, for example. The contents of the serial command communication error flag, serial command status flag, communication confirmation command transmission counter, and communication confirmation command transmission timer are also shown in accordance with the interrupt processing timing of the main control unit 300. Moreover, in each figure, a solid line arrow is a communication confirmation command, and a broken line is a prize ball command.

図36(a)は、正常動作の場合に起こりうる通信処理の一例を示すタイミングチャートであり、図36(b)は、主制御通信エラーの場合の通信処理の一例を示すタイミングチャートである。   FIG. 36A is a timing chart showing an example of communication processing that can occur in the normal operation, and FIG. 36B is a timing chart showing an example of communication processing in the case of a main control communication error.

図36(a)を参照して、まず、1ブロック目(1)において、通信確認コマンド送信タイマ(以下、TM)が「1」から「0」に変わり、100ms毎に主制御部300から球数制御部600に通信確認コマンドを送信するタイミングになった場合、主制御部300は、球数制御部600に通信確認コマンド(第一の通信確認コマンド)を送信する。この場合、TMは初期値の「25」がセットされ、以降主制御部300の割込み処理毎に減算され、「0」になると初期値「25」が設定される(以下同様)。通信確認コマンド送信カウンタ(以下、CT)は「10」から「9」に更新される。この場合賞球コマンドは同時に送信できないため(図31(a)参照)、シリアルコマンドステータスフラグ(以下、ST)は「1」がセットされる。シリアルコマンド通信エラーフラグ(以下、ER)はこの状態では「0」である。   Referring to FIG. 36A, first, in the first block (1), the communication confirmation command transmission timer (hereinafter referred to as TM) is changed from “1” to “0”, and the main controller 300 changes the ball every 100 ms. When it is time to transmit a communication confirmation command to the number control unit 600, the main control unit 300 transmits a communication confirmation command (first communication confirmation command) to the ball number control unit 600. In this case, the initial value “25” is set to TM, and is subtracted for each interrupt process of the main control unit 300, and when it becomes “0”, the initial value “25” is set (the same applies hereinafter). The communication confirmation command transmission counter (hereinafter referred to as CT) is updated from “10” to “9”. In this case, since the prize ball command cannot be transmitted simultaneously (see FIG. 31A), the serial command status flag (hereinafter, ST) is set to “1”. The serial command communication error flag (hereinafter referred to as ER) is “0” in this state.

通信確認コマンドを受信した球数制御部600は、次の割込み処理のタイミングで通信確認コマンド(第二の通信確認コマンド)を主制御部300に送信(返信)する。これにより、CTは「9」から「10」に更新され、STは(賞球コマンドの送信が可能となったため)「1」から「0」に更新される。その後例えば、主制御部300の4割込み目で賞球コマンドが球数制御部600に送信される。   The ball number control unit 600 that has received the communication confirmation command transmits (replies) a communication confirmation command (second communication confirmation command) to the main control unit 300 at the timing of the next interrupt processing. Accordingly, CT is updated from “9” to “10”, and ST is updated from “1” to “0” (because a prize ball command can be transmitted). Thereafter, for example, at the fourth interrupt of the main control unit 300, a prize ball command is transmitted to the ball number control unit 600.

2ブロック目(2)において、(例えば1ブロック目の通信確認コマンドから100ms経過後)TMが「0」のタイミングで主制御部300から球数制御部600に通信確認コマンドが送信される。このときCTは「10」から「9」に、STは「0」から「1」に更新される。球数制御部600から主制御部300に通信確認コマンドが送信(返信)されると、STは「1」、CTは「10」に更新される。この間に複数の入賞が成立していた場合には、例えばTMが「23」および「22」になるタイミングで、主制御部300から球数制御部600に連続して賞球コマンドが送信される。   In the second block (2), a communication confirmation command is transmitted from the main control unit 300 to the ball number control unit 600 at a timing when TM is “0” (for example, after 100 ms has elapsed from the communication confirmation command of the first block). At this time, CT is updated from “10” to “9”, and ST is updated from “0” to “1”. When a communication confirmation command is transmitted (returned) from the ball number control unit 600 to the main control unit 300, ST is updated to “1” and CT is updated to “10”. When a plurality of winnings are established during this period, for example, at the timing when TM becomes “23” and “22”, a winning ball command is continuously transmitted from the main control unit 300 to the ball number control unit 600. .

3ブロック目(3)において、例えば、主制御部300から球数制御部600に通信確認コマンドを送信する割込み(TMが「0」)になる割込み)とその1つ前の主制御部300の割込みとの間に賞球コマンドの送信要因(入賞)が成立している場合、STが「0」であっても次の主制御部300の割込みがTMが「0」の割込みの場合、主制御部300から通信確認コマンドが送信され(TMは「25」)、球数制御部600から通信確認コマンドが送信された後まで、賞球コマンドを送信できない。したがって賞球コマンドは次の(TMが「24」の)割込み処理で球数制御部600に送信される。   In the third block (3), for example, an interrupt for transmitting a communication confirmation command from the main control unit 300 to the ball number control unit 600 (interrupt that causes TM to be “0”) and the previous main control unit 300 If the cause of winning ball command (winning) is established between the interrupt and the interrupt, even if ST is “0”, if the next interrupt of the main controller 300 is an interrupt with TM “0”, the main A prize confirmation command cannot be transmitted until after the communication confirmation command is transmitted from the control unit 300 (TM is “25”) and the communication confirmation command is transmitted from the ball number control unit 600. Therefore, the prize ball command is transmitted to the ball number control unit 600 in the next interruption process (TM is “24”).

4ブロック目(4)において、TMが「1」、ST「0」の割込みで主制御部300から球数制御部600に賞球コマンドが送信される。このとき、1回の割込み処理では1つの賞球コマンドしか送信できないため、他に(同時に)成立していた入賞がある場合には、次の主制御部300の割込みまで送信が待機される。しかし4ブロック目のように、先の賞球コマンドの送信後の次の主制御部300の割込みが、TMが「0」のタイミングになると、主制御部300は通信確認コマンドを送信するので、賞球コマンドの送信ができない(STが「1」になる)。主制御部300は、球数制御部600から通信確認コマンドを受信した後の割込み(TMが「0」の割込み、このときSTは「0」)で、賞球コマンドを球数制御部600に送信できる。つまり、この場合は複数の入賞が成立していたが、1つの賞球コマンドを送信した後の主制御部300の割込みが、100ms毎の通信確認コマンドを送信する処理を実行したため、確認後(数割込み後)まで他の賞球コマンドの送信が待機状態となった場合である。   In the fourth block (4), a prize ball command is transmitted from the main control unit 300 to the ball number control unit 600 with an interruption of TM “1” and ST “0”. At this time, since only one winning ball command can be transmitted in one interruption process, if there is another (simultaneously) winning, the transmission is waited until the next interruption of the main control unit 300. However, as shown in the fourth block, when the next interruption of the main control unit 300 after the transmission of the previous prize ball command is the timing when TM is “0”, the main control unit 300 transmits a communication confirmation command. The prize ball command cannot be transmitted (ST becomes “1”). The main control unit 300 receives the prize ball command to the ball number control unit 600 by an interrupt after receiving the communication confirmation command from the ball number control unit 600 (TM is “0” interrupt, and ST is “0” at this time). Can be sent. That is, in this case, a plurality of winnings have been established, but the interruption of the main control unit 300 after transmitting one winning ball command has executed a process of transmitting a communication confirmation command every 100 ms. This is a case where transmission of other prize ball commands is in a standby state until after a few interruptions).

5ブロック目(5)は、通信確認コマンドの送受信のみを行っている状態である。   The fifth block (5) is a state in which only transmission / reception of a communication confirmation command is performed.

同図(b)を参照して、主制御通信エラーの場合の通信処理の一例について説明する。   An example of communication processing in the case of a main control communication error will be described with reference to FIG.

まず1ブロック目(1)は、正常動作の状態を示し、TMが「0」のタイミングで、主制御部300は通信確認コマンドを送信し(STは「1」)、球数制御部600から通信確認コマンドが送信される。次(TMが「0」)の主制御部300の割込みではSTが「0」であり賞球コマンドの送信条件が成立すれば、賞球コマンドの送信が可能な状態となる。   First, the first block (1) indicates a normal operation state, and at the timing when TM is “0”, the main control unit 300 transmits a communication confirmation command (ST is “1”). A communication confirmation command is transmitted. In the next interrupt of the main control unit 300 (TM is “0”), if ST is “0” and the transmission condition of the prize ball command is satisfied, the prize ball command can be transmitted.

2ブロック目(2)では、次の通信確認コマンドの送信タイミング(TMが「0」)で主制御部300から球数制御部600に通信確認コマンドを送信するが、球数制御部600から主制御部300へ通信確認コマンド(返信)が送信されない。通信確認コマンドの返信がないため、STは「1」が維持され、CTも「9」が維持される。   In the second block (2), the communication confirmation command is transmitted from the main control unit 300 to the ball number control unit 600 at the transmission timing of the next communication confirmation command (TM is “0”). A communication confirmation command (reply) is not transmitted to the control unit 300. Since no communication confirmation command is returned, ST is maintained at “1” and CT is also maintained at “9”.

3ブロック目(3)は、2ブロック目から所定期間経過後で、2ブロック目以降、8回の通信確認コマンドを主制御部300から球数制御部600に送り、球数制御部600からは通信確認コマンドの送信が無い状態を示す。TMが「0」になる割込みで主制御部300は、9回目の通信確認コマンドを球数制御部600に送信する。これによりCTは「1」となり、球数制御部600から通信確認コマンドの送信が無いためその値が維持される。   The third block (3) sends eight communication confirmation commands from the main control unit 300 to the ball number control unit 600 after the predetermined period from the second block. Indicates that no communication confirmation command has been sent. The main control unit 300 transmits a ninth communication confirmation command to the ball number control unit 600 when the TM becomes “0”. As a result, CT becomes “1”, and the value is maintained because no communication confirmation command is transmitted from the ball number control unit 600.

4ブロック目(4)では、TMが「0」の割込み処理で主制御部300が10回目の通信確認コマンドを送信する。CTは「0」となり、球数制御部600から通信確認コマンドの返信が無い場合これに基づき、ERに「1」がセットされ、主制御部通信エラーの状態となる。CTが「0」になったことに基づき、各種フラグの値が所定の値にセットされる(例えばCTは初期値の「10」がセットされる)。   In the fourth block (4), the main control unit 300 transmits the tenth communication confirmation command in the interrupt process with TM “0”. CT becomes “0”, and when there is no reply of the communication confirmation command from the ball number control unit 600, “1” is set to ER based on this, and a communication error state of the main control unit is set. Based on the fact that CT becomes “0”, the values of various flags are set to predetermined values (for example, CT is set to an initial value “10”).

5ブロック目(5)は、正常動作に戻った場合を示しており、主制御部300から送信した通信確認コマンドに対し、球数制御部600から主制御部300に通信確認コマンドが送信されると、各種フラグやカウンタが初期化される。すなわちこの場合、ERは「0」、STは「0」、CTは「10」、TMは「24」がセットされる。
The fifth block (5) shows a case where the normal operation is restored. In response to the communication confirmation command transmitted from the main control unit 300, the communication confirmation command is transmitted from the ball number control unit 600 to the main control unit 300. Various flags and counters are initialized. That is, in this case, ER is set to “0”, ST is set to “0”, CT is set to “10”, and TM is set to “24”.

なお、ここでは一例として主制御部300および球数制御部600のいずれもコマンドを受信した場合に、当該コマンドに対応する信号を出力する場合を例に説明している。しかしこれに限らず、コマンドに対応したフラグを設け、コマンド受信した場合にフラグをセットし、次の割込みで当該フラグを判定して信号を出力するようにしてもよい。   Here, as an example, when both the main control unit 300 and the ball number control unit 600 receive a command, a case where a signal corresponding to the command is output is described. However, the present invention is not limited thereto, and a flag corresponding to the command may be provided, the flag may be set when a command is received, and the flag may be determined at the next interrupt to output a signal.

図37から図40は、主制御部300と球数制御部600のさらに詳細なタイミングチャートである。これらの図では、ER、ST、CT、TMの図示は省略し、それぞれのタイミングチャート上で発生する入賞および、主制御部300または球数制御部600で行う各処理のタイミングを破線で示している。タイミングA、Iは、主制御部300で各入賞口等への入球が検出されたタイミングであり、タイミングB、Jは、入賞パターンが一致したことにより主制御部300において入賞受付処理が行われたタイミングであり、タイミングC、Kは主制御部300から球数制御部600に賞球コマンドが送信されたタイミングであり、タイミングD、G、Lは、主制御部300が賞球数表示装置690に賞球数を表示するタイミングであり、タイミングEは、球数制御部600が球数表示部640に遊技球数を表示するタイミングである。またタイミングFは、通信確認コマンドを送信するタイミングであり、タイミングHは、球数制御部600から主制御部300に通信確認コマンドを送信するタイミングである。また、図37から図40に示す主制御部300は、主制御部タイマ割込み処理(図13)において、第1の賞球数表示処理(ステップS216)は行わず、第2の賞球数表示処理(ステップS220)のみを行う場合を例に示す。更に、図示された以外の遊技球数の更新(イン球数、貸球数、再プレイ球数、計数球数による更新)は、省略して説明する。   37 to 40 are more detailed timing charts of the main control unit 300 and the ball number control unit 600. FIG. In these figures, illustration of ER, ST, CT, and TM is omitted, and the winnings generated on the respective timing charts and the timing of each process performed by the main control unit 300 or the ball number control unit 600 are indicated by broken lines. Yes. Timings A and I are timings at which the main control unit 300 detects the entrance to each winning opening, etc. Timings B and J are performed by the main control unit 300 when the winning pattern is matched. The timings C and K are timings when a prize ball command is transmitted from the main control unit 300 to the ball number control unit 600, and timings D, G, and L are the number of prize balls displayed by the main control unit 300. Timing E is the timing at which the number of prize balls is displayed on the device 690, and timing E is the timing at which the ball number control unit 600 displays the number of game balls on the ball number display unit 640. Timing F is a timing for transmitting a communication confirmation command, and timing H is a timing for transmitting a communication confirmation command from the ball number control unit 600 to the main control unit 300. Also, the main controller 300 shown in FIGS. 37 to 40 does not perform the first prize ball number display process (step S216) in the main controller timer interrupt process (FIG. 13), but displays the second prize ball number display. An example in which only the process (step S220) is performed will be described. Further, the update of the number of game balls other than those shown (updates by the number of in-balls, the number of rented balls, the number of replayed balls, the number of counted balls) will be omitted.

図37は、図36(a)の一部分に対応するタイミングチャートであり、図37(a)は、正常にまた通常のタイミングで賞球コマンドを送信する場合(図36(a)の1ブロック目に対応)のタイミングチャートの一例である。例えば遊技開始後最初に各入賞口等のいずれか(例えば一般入賞口226)に入球(入賞)があると(タイミングA)、主制御部300は、タイマ割込み処理の入賞受付処理(図13のステップS217)を行う(タイミングB)。主制御部300と球数制御部600間の通信確認コマンドの送受信は、例えばタイミングAとタイミングBの間の割込み処理で正常に行われているとすると、主制御部300は、入賞受付後、直ちに賞球コマンド送信処理(図13のステップS219)により球数制御部600に入賞に対応した賞球数(例えば10個)を含む賞球コマンドを送信する(タイミングC)。主制御部300は、賞球コマンド送信処理(ステップS219)後にのみ、未送信の賞球数を賞球数表示処理(ステップS220)を実行する。つまりタイミングCで1つの賞球コマンドを送信した後は、入賞数記憶領域に記憶されている値は全て「0」であるので、賞球数表示部690の表示も「0」が維持される(タイミングD)。その後、賞球コマンドを受信した球数制御部600はこれに基づき、球数制御部割込み処理(図17)の遊技球数設定処理(ステップS1211)において遊技球数に賞球数(10個)を加算し、更新された遊技球数を球数表示部640に表示する。例えば、遊技開始時の遊技球数が「10」の場合、球数表示部600の表示は「20」となる(タイミングE)。このように、球数制御部600に未送信の賞球数を表示する賞球表示部690と、遊技球数を表示する球数表示部640の表示のタイミングには若干のずれが生じており、特に、主制御部300の賞球数表示処理(ステップS220)が賞球コマンド送信処理(ステップS219)の後にのみ行われる構成では、獲得した賞球数が賞球表示部690に表示されない場合もある。   FIG. 37 is a timing chart corresponding to a part of FIG. 36 (a). FIG. 37 (a) shows a case where a prize ball command is transmitted normally and at a normal timing (first block in FIG. 36 (a)). Is a timing chart). For example, when there is a winning (winning) at any one of the winning holes (for example, the general winning hole 226) for the first time after the game starts (timing A), the main control unit 300 receives a winning acceptance process (see FIG. 13) of the timer interrupt process. Step S217) is performed (timing B). For example, if transmission / reception of a communication confirmation command between the main control unit 300 and the ball number control unit 600 is normally performed in an interrupt process between timing A and timing B, the main control unit 300 Immediately after the winning ball command transmission process (step S219 in FIG. 13), a winning ball command including the number of winning balls (for example, 10) corresponding to winning is transmitted to the ball number control unit 600 (timing C). The main control unit 300 executes a prize ball number display process (step S220) for the number of unsent prize balls only after the prize ball command transmission process (step S219). That is, after one prize ball command is transmitted at the timing C, all the values stored in the winning number storage area are “0”, and therefore the display of the prize ball number display section 690 is also maintained at “0”. (Timing D). After that, the ball number control unit 600 that has received the award ball command based on this, in the game ball number setting process (step S1211) of the ball number control unit interrupt process (FIG. 17), the number of prize balls (10) And the updated number of game balls is displayed on the ball number display unit 640. For example, when the number of game balls at the start of the game is “10”, the display of the ball number display unit 600 is “20” (timing E). Thus, there is a slight difference between the display timings of the prize ball display unit 690 that displays the number of prize balls that have not been transmitted to the ball number control unit 600 and the ball number display unit 640 that displays the number of game balls. In particular, in the configuration in which the prize ball number display process (step S220) of the main control unit 300 is performed only after the prize ball command transmission process (step S219), the obtained prize ball number is not displayed on the prize ball display unit 690. There is also.

図37(b)は、賞球コマンドの送信のタイミングと、通信確認コマンドの送信のタイミングが重なった場合(図36(a)の3ブロック目に対応)のタイミングチャートの一例である。   FIG. 37 (b) is an example of a timing chart in the case where the timing for transmitting the prize ball command and the timing for transmitting the communication confirmation command overlap (corresponding to the third block in FIG. 36 (a)).

例えば遊技開始後最初に、例えば一般入賞口226に入球(入賞)があり(タイミングA)、主制御部300がタイマ割込み処理の入賞受付処理を行う(タイミングB)。その後、賞球コマンド送信処理(ステップS219)を行うが、シリアルコマンド管理処理において通信確認コマンド送信タイマ(TM)が「0」になっている場合、主制御部300は、(第一の)通信確認コマンドを球数制御部600に送信する(タイミングF)。その後、主制御部300は、賞球数表示処理(ステップS220)を行い、一般入賞口用入賞数記憶領域の値(入賞数「1」)に基づき、賞球数「10」を賞球数表示部690に表示する(タイミングG)。タイミングFの通信確認コマンド送信によって賞球コマンドの送信は待機されており、一般入賞口用入賞数記憶領域に「0」以外の値が記憶されているため、これに基づき賞球数表示部690に賞球数が表示される。主制御部300から通信確認コマンドを受信した球数制御部600は、球数制御部割込み処理(図17)のシリアルコマンド管理処理(ステップS1204)において主制御部300に(第二の)通信確認コマンドを送信する(タイミングH)。その後、主制御部300は通信確認コマンドを送信した(タイミングF)割込み処理の、次の割込み処理において球数制御部600に賞球コマンドを送信する(タイミングC)。主制御部300は賞球数表示処理(ステップS220)を行うが、賞球コマンドの送信により一般入賞口用入賞数記憶領域およびそれ以外の入賞記憶領域の値は「0」となっており、賞球数表示部690には「0」が表示される(タイミングD)。賞球コマンドを受信した球数制御部600はこれに基づき、球数制御部割込み処理(図17)の遊技球数設定処理(ステップS1211)において遊技球数に賞球数(10個)を加算し、更新された遊技球数を球数表示部640に表示する。例えば、遊技開始時の遊技球数が「10」の場合、球数表示部600の表示は「20」となる(タイミングE)。このように、主制御部300の1回の割込み処理において、入賞受付(タイミングB)と通信確認コマンド送信(タイミングF)が重なった場合、賞球コマンド送信(タイミングC)は、次以降の主制御部300の割込み処理で行われ、その間、賞球コマンドの送信、賞球数の遊技球数への加算および球数制御部640への遊技球数の表示は待機される。一方、賞球数表示部690への賞球数の表示は、賞球コマンドの送信がされておらず、主制御部300の通信確認コマンドの送信処理と同一の割込み処理内で行えるので、この場合、賞球数表示装置690に賞球数が表示される。   For example, at the beginning of the game, for example, there is a winning (winning) at the general winning opening 226 (timing A), for example, and the main control unit 300 performs a winning acceptance process of a timer interruption process (timing B). Thereafter, a prize ball command transmission process (step S219) is performed. When the communication confirmation command transmission timer (TM) is “0” in the serial command management process, the main control unit 300 performs the (first) communication. A confirmation command is transmitted to the ball number control unit 600 (timing F). After that, the main control unit 300 performs a winning ball number display process (step S220), and based on the value of the winning number storage area for the general winning opening (winning number “1”), the number of winning balls “10” is the number of winning balls. It is displayed on the display unit 690 (timing G). The transmission of the winning ball command is awaited by the transmission of the communication confirmation command at the timing F, and since a value other than “0” is stored in the winning number storage area for the general winning opening, the winning ball number display section 690 is based on this value. Displays the number of prize balls. Upon receiving the communication confirmation command from the main control unit 300, the ball number control unit 600 confirms (second) communication confirmation with the main control unit 300 in the serial command management process (step S1204) of the ball number control unit interrupt process (FIG. 17). A command is transmitted (timing H). Thereafter, the main control unit 300 transmits a prize ball command to the ball number control unit 600 in the next interrupt process of the interrupt process that transmitted the communication confirmation command (timing F) (timing C). The main control unit 300 performs the winning ball number display process (step S220), but the value of the winning number storage area for the general winning mouth and the other winning storage areas are “0” due to the transmission of the winning ball command. “0” is displayed on the winning ball number display section 690 (timing D). Based on this, the ball number control unit 600 that has received the prize ball command adds the number of prize balls (10) to the number of game balls in the game ball number setting process (step S1211) of the ball number control unit interrupt process (FIG. 17). Then, the updated number of game balls is displayed on the ball number display unit 640. For example, when the number of game balls at the start of the game is “10”, the display of the ball number display unit 600 is “20” (timing E). As described above, when the winning acceptance (timing B) and the communication confirmation command transmission (timing F) overlap in one interrupt process of the main control unit 300, the winning ball command transmission (timing C) During the interruption process of the control unit 300, during this time, the transmission of a prize ball command, the addition of the number of prize balls to the number of game balls, and the display of the number of game balls on the number of balls control unit 640 are on standby. On the other hand, the number of prize balls displayed on the prize ball number display unit 690 can be performed within the same interrupt process as the communication confirmation command transmission process of the main control unit 300 since no prize ball command is transmitted. In this case, the number of prize balls is displayed on the prize ball number display device 690.

図38は、図36(a)の2ブロック目に対応するタイミングチャートであり、同一の主制御部300の割込み処理において、(同時に)複数の入賞受付があった場合の一例を示す。例えば遊技開始後最初に、例えば第1特図始動口230に入球(入賞)があり(タイミングI)、続けて一般入賞口226に入球(入賞)があった場合(タイミングA)、主制御部300は、同一のタイマ割込み処理の入賞受付処理(図13のステップS217)で複数(この場合2つ)の入賞受付を同時に行う(タイミングB、J)。主制御部300と球数制御部600間の通信確認コマンドの送受信は、例えばタイミングAとタイミングBの間の割込み処理で正常に行われているとすると、主制御部300は、入賞受付後、直ちに賞球コマンド送信処理(図13のステップS219)により球数制御部600に入賞に対応した賞球数を含む賞球コマンドを送信する(タイミングC)。賞球コマンドの送信は、1つの割込み処理につき1つのみ送信する仕様の場合、タイミングCで送信される賞球コマンドは、入賞が受け付けられた2つの入賞のうち一方となる。この場合の優先順位は、RAMに設けられた入賞数記憶領域の配置により決まる。例えば、各入賞数記憶領域が、図29(b)に示すように配置されている場合、アドレスの小さい番地から順に値を取得するので、タイミングCでは、第1特図始動口230に対応する賞球コマンド(賞球数は「3」)が送信される。その後の賞球数表示処理(ステップS220)では、賞球コマンドが送信されていない他方の入賞(一般入賞口226)に対応する賞球数(例えば「10」)が、賞球数表示部690に表示される。の表示も「0」が維持される(タイミングD)。その後、賞球コマンドを受信した球数制御部600はこれに基づき、球数制御部割込み処理(図17)の遊技球数設定処理(ステップS1211)において遊技球数に第1特図始動口230に対応する賞球数(3個)を加算し、更新された遊技球数を球数表示部640に表示する。例えば、遊技開始時の遊技球数が「10」の場合、球数表示部600の表示は「13」となる。一般入賞口226入賞の賞球コマンドは、主制御部300の次の割込み処理の賞球コマンド送信処理で送信される(タイミングK)。これにより、各入賞数記憶領域の値は全て「0」となり、その後の賞球数表示処理では、賞球数表示部690に「0」が表示される(タイミングL)。また、図示は省略するが、賞球コマンドを受信した球数制御部600は遊技球数設定処理(ステップS1211)において遊技球数に一般入賞口226に対応する賞球数(10個)を加算し、更新された遊技球数を球数表示部640に表示する。例えば、遊技開始時の遊技球数が「13」の場合、球数表示部600の表示は「23」となる。   FIG. 38 is a timing chart corresponding to the second block of FIG. 36 (a), and shows an example in the case where a plurality of winnings are received (simultaneously) in the interrupt processing of the same main control unit 300. For example, at the beginning of the game, for example, when there is a ball (winning) at the first special figure starting port 230 (timing I), and then there is a ball winning (winning) at the general winning port 226 (timing A), The controller 300 simultaneously accepts a plurality of (two in this case) prizes in the same timer interruption process (step S217 in FIG. 13) (timing B, J). For example, if transmission / reception of a communication confirmation command between the main control unit 300 and the ball number control unit 600 is normally performed in an interrupt process between timing A and timing B, the main control unit 300 Immediately after the winning ball command transmission process (step S219 in FIG. 13), a winning ball command including the number of winning balls corresponding to winning is transmitted to the ball number control unit 600 (timing C). In the case of a specification in which only one winning ball command is transmitted per interrupt process, the winning ball command transmitted at timing C is one of two winning winning winnings. The priority order in this case is determined by the arrangement of the winning number storage area provided in the RAM. For example, when each winning number storage area is arranged as shown in FIG. 29B, values are acquired in order from the address with the smallest address, so at timing C, it corresponds to the first special figure starting port 230. A prize ball command (number of prize balls is “3”) is transmitted. In the subsequent winning ball number display process (step S220), the number of winning balls (for example, “10”) corresponding to the other winning ball (general winning port 226) for which no winning ball command has been transmitted is the winning ball number display section 690. Is displayed. Is also maintained at “0” (timing D). Thereafter, the ball number control unit 600 that has received the prize ball command, based on this, sets the first special figure start port 230 to the number of game balls in the game ball number setting process (step S1211) of the ball number control unit interrupt process (FIG. 17). The number of prize balls corresponding to (3) is added, and the updated number of game balls is displayed on the ball number display unit 640. For example, when the number of game balls at the start of the game is “10”, the display of the ball number display unit 600 is “13”. The prize ball command for winning the general prize opening 226 is transmitted in the prize ball command transmission process of the next interrupt process of the main control unit 300 (timing K). As a result, the values in each winning number storage area are all “0”, and “0” is displayed on the winning ball number display section 690 in the subsequent winning ball number display process (timing L). Although not shown, the ball number control unit 600 that has received the prize ball command adds the number of prize balls (10) corresponding to the general winning opening 226 to the number of game balls in the game ball number setting process (step S1211). Then, the updated number of game balls is displayed on the ball number display unit 640. For example, when the number of game balls at the start of the game is “13”, the display of the ball number display unit 600 is “23”.

このように、主制御部300の同一の割込み処理で複数の入賞の受付がされた場合であっても、賞球コマンドの送信はそれ以降の割込み処理で、各割込み処理につき1回ずつの送信となる。   As described above, even when a plurality of winnings are accepted in the same interrupt process of the main control unit 300, the prize ball command is transmitted in the subsequent interrupt process, and is transmitted once for each interrupt process. It becomes.

図39は、球数制御部600の他の形態のタイミングチャートの一例を示すものであり、図35(b)に示す球数制御部600のシリアルコマンド受信処理において、主制御部300から送信された賞球コマンドに対しても賞球コマンド受信の報知(返信)を行う場合の一例である。タイミングMは、球数制御部600から主制御部300に、賞球コマンド受信の報知(返信)を行うタイミングである。   FIG. 39 shows an example of another timing chart of the ball number control unit 600, which is transmitted from the main control unit 300 in the serial command reception process of the ball number control unit 600 shown in FIG. This is an example in the case of notifying (replying) a prize ball command reception for the prize ball command. Timing M is a timing at which notification (reply) of receiving a prize ball command is sent from the ball number control unit 600 to the main control unit 300.

例えば遊技開始後最初に、例えば一般入賞口226に入球(入賞)があり(タイミングA)、主制御部300がタイマ割込み処理の入賞受付処理を行う(タイミングB)。その後、賞球コマンド送信処理(ステップS219)を行うが、シリアルコマンド管理処理において通信確認コマンド送信タイマ(TM)が「0」になっている場合、主制御部300は、(第一の)通信確認コマンドを球数制御部600に送信する(タイミングF)。その後、主制御部300は、賞球数表示処理(ステップS220)を行い、一般入賞口用入賞数記憶領域の値(入賞数「1」)に基づき、賞球数「10」を賞球数表示部690に表示する(タイミングG)。タイミングFの通信確認コマンド送信によって賞球コマンドの送信は待機されており、一般入賞口用入賞数記憶領域に「0」以外の値が記憶されているため、これに基づき賞球数表示部690に賞球数が表示される。主制御部300から通信確認コマンドを受信した球数制御部600は、球数制御部割込み処理(図17)のシリアルコマンド管理処理(ステップS1204)において主制御部300に(第二の)通信確認コマンドを送信する(タイミングH)。その後、主制御部300は通信確認コマンドを送信した(タイミングF)割込み処理の、次の割込み処理において球数制御部600に賞球コマンドを送信する(タイミングC)。主制御部300は賞球数表示処理(ステップS220)を行うが、賞球コマンドの送信により一般入賞口用入賞数記憶領域およびそれ以外の入賞記憶領域の値は「0」となっており、賞球数表示部690には「0」が表示される(タイミングD)。賞球コマンドを受信した球数制御部600は、球数制御部600のシリアルコマンド受信処理(図35(b)のステップS2113)において賞球コマンド受信のコマンド(返信)を主制御部300に送信する(タイミングM)。また球数制御部600は、遊技球数設定処理(ステップS1211)において遊技球数に賞球数(10個)を加算し、更新された遊技球数を球数表示部640に表示する。例えば、遊技開始時の遊技球数が「10」の場合、球数表示部600の表示は「20」となる(タイミングE)。   For example, at the beginning of the game, for example, there is a winning (winning) at the general winning opening 226 (timing A), for example, and the main control unit 300 performs a winning acceptance process of a timer interruption process (timing B). Thereafter, a prize ball command transmission process (step S219) is performed. When the communication confirmation command transmission timer (TM) is “0” in the serial command management process, the main control unit 300 performs the (first) communication. A confirmation command is transmitted to the ball number control unit 600 (timing F). After that, the main control unit 300 performs a winning ball number display process (step S220), and based on the value of the winning number storage area for the general winning opening (winning number “1”), the number of winning balls “10” is the number of winning balls. It is displayed on the display unit 690 (timing G). The transmission of the winning ball command is awaited by the transmission of the communication confirmation command at the timing F, and since a value other than “0” is stored in the winning number storage area for the general winning opening, the winning ball number display section 690 is based on this value. Displays the number of prize balls. Upon receiving the communication confirmation command from the main control unit 300, the ball number control unit 600 confirms (second) communication confirmation with the main control unit 300 in the serial command management process (step S1204) of the ball number control unit interrupt process (FIG. 17). A command is transmitted (timing H). Thereafter, the main control unit 300 transmits a prize ball command to the ball number control unit 600 in the next interrupt process of the interrupt process that transmitted the communication confirmation command (timing F) (timing C). The main control unit 300 performs the winning ball number display process (step S220), but the value of the winning number storage area for the general winning mouth and the other winning storage areas are “0” due to the transmission of the winning ball command. “0” is displayed on the winning ball number display section 690 (timing D). The ball number control unit 600 that has received the prize ball command transmits a command (reply) for receiving the prize ball command to the main control unit 300 in the serial command reception process of the ball number control unit 600 (step S2113 in FIG. 35B). (Timing M). In addition, the ball number control unit 600 adds the number of prize balls (10) to the number of game balls in the game ball number setting process (step S1211) and displays the updated number of game balls on the ball number display unit 640. For example, when the number of game balls at the start of the game is “10”, the display of the ball number display unit 600 is “20” (timing E).

図40は、図37のさらに詳細なタイミングチャートである。遊技中は、遊技球数の加算(賞球数の加算)だけでなく、非入賞の場合や、計数操作を行った場合などには遊技球数が減算されていく場合もある。封入式のパチンコ機100では、機内球710は一定量であるため、遊技者が遊技可能な遊技球数を超えた場合には、例えば機内球710の循環を制御し、発射や球送りを不可能にする必要がある。図40では、遊技球数が0になる可能性がある場合について、説明する。   FIG. 40 is a more detailed timing chart of FIG. During the game, not only the addition of the number of game balls (addition of the number of prize balls), but also the number of game balls may be subtracted when there is no winning or when a counting operation is performed. In the enclosed pachinko machine 100, the in-flight ball 710 has a fixed amount. Therefore, when the number of game balls that a player can play is exceeded, for example, the circulation of the in-flight ball 710 is controlled to prevent launching or feeding. It needs to be possible. In FIG. 40, the case where the number of game balls may become 0 will be described.

図40(a)は、図37(a)のタイミングBからタイミングEの部分を拡大したものであり、主に、賞球数を表示する賞球表示部690と、遊技球数を表示する球数表示部640の表示のタイミングについて説明する。   FIG. 40 (a) is an enlarged view of the portion from timing B to timing E in FIG. 37 (a). Mainly, a prize ball display unit 690 for displaying the number of prize balls and a ball for displaying the number of game balls. The display timing of the number display unit 640 will be described.

球数制御部600に賞球数(例えば10個)を含む賞球コマンドが送信されると(タイミングC)、その後の賞球数表示処理において賞球数表示部690に「0」が表示(維持)される(タイミングD)。その後、球数制御部600では、図17に示す割込み処理において、シリアルコマンド管理処理(ステップS1204)を行う(タイミングO)。そしてシリアルコマンド管理処理において賞球コマンドを受信した球数制御部600は、その後の遊技球数設定処理(ステップS1211)において遊技球数に賞球数(10個)を加算する。そして更新された遊技球数を球数表示部640に表示する(タイミングE)。ただし、タイミングOからタイミングEまでの間に、遊技者が機内球710の発射を行い、これらが非入賞であったり、計数ボタン652の操作が行われるなどすると、遊技球数は賞球数の加算だけでなく、イン球数や計数球数の減算も行われそれらも含めて更新されている。つまり、タイミングOからタイミングEまでの間に遊技球数(遊技球数記憶領域の遊技球数)が「0」になり、球数表示部640に「0」が表示される場合もある。そうなると、賞球表示部690と球数表示部640のいずれにも「0」が表示され、遊技者の遊技球数(発射可能な遊技球数)はこのタイミングで存在しないことになる。このような場合に、機内球710の発射や球送りが可能となるのは望ましくないため、所定期間(例えば次回の球数制御部600の割込み処理のタイミングまで)球送りや発射の駆動処理Pを行うタイミングを待機するとよい。   When a prize ball command including a prize ball number (for example, 10) is transmitted to the ball number control unit 600 (timing C), “0” is displayed on the prize ball number display unit 690 in the subsequent prize ball number display process ( Maintained) (timing D). Thereafter, the ball number control unit 600 performs serial command management processing (step S1204) in the interrupt processing shown in FIG. 17 (timing O). The ball number control unit 600 that has received the prize ball command in the serial command management process adds the prize ball number (10) to the game ball number in the subsequent game ball number setting process (step S1211). Then, the updated number of game balls is displayed on the ball number display unit 640 (timing E). However, if the player fires the in-flight balls 710 between timing O and timing E and these are non-winning or the operation of the counting button 652 is performed, the number of game balls is equal to the number of winning balls. In addition to the addition, the number of in balls and the number of counted balls are also subtracted and updated. That is, during the period from timing O to timing E, the number of game balls (the number of game balls in the game ball number storage area) may be “0”, and “0” may be displayed on the ball number display unit 640. Then, “0” is displayed on both the winning ball display unit 690 and the ball number display unit 640, and the number of game balls (number of game balls that can be fired) does not exist at this timing. In such a case, since it is not desirable that the in-flight ball 710 can be fired and fed, it is possible to drive the ball feeding and firing P for a predetermined period (for example, until the next interrupt processing timing of the ball number control unit 600). It is better to wait for the timing to perform.

実際には、タイミングDとタイミングEのずれはわずかであり、例えば、いずれも「0」が表示される期間はごく短いものであるが、所定期間待機し、賞球数が遊技球数に反映された後に(球数表示部640の表示が「1」以上となった場合に)発射や球送りの駆動処理Pを行うと好適である。なお、球送りや発射の駆動処理Pは、球数制御部割込み処理の遊技球数設定処理(ステップS1211)より後のステップで行ってもよい。   Actually, there is a slight difference between the timing D and the timing E. For example, the period during which “0” is displayed is very short, but it waits for a predetermined period, and the number of winning balls is reflected in the number of gaming balls. After that, it is preferable to perform the driving process P for firing and ball feeding (when the display of the ball number display unit 640 becomes “1” or more). The driving process P for ball feeding and firing may be performed in a step after the game ball number setting process (step S1211) of the ball number control unit interrupt process.

図40(b)は、図37(b)のタイミングBからタイミングEの部分を拡大したものであり、図40(a)の如く、遊技球数(遊技球数記憶領域に記憶された遊技球数)が「0」の場合には、遊技不可として発射や球送りの駆動処理Pを制限する場合の一例について説明する。   FIG. 40 (b) is an enlarged view of the portion from timing B to timing E in FIG. 37 (b), and as shown in FIG. 40 (a), the number of game balls (game balls stored in the game ball number storage area). In the case where the number) is “0”, an example in which the driving process P for launching or ball feeding is limited as a game is impossible will be described.

例えば、遊技球数が「0」(球数表示部640の表示が「0」)の状態の場合であるが領域内球数が例えば一般入賞口226に入賞したとする。この場合主制御部300が一般入賞口226の入賞受付処理を行い(タイミングB)、主制御部300が(第一の)通信確認コマンドを球数制御部600に送信する(タイミングF)。その後、主制御部300は、賞球数表示処理で一般入賞口226の賞球数「10」を賞球数表示部690に表示する(タイミングG)。その後球数制御部600は、割込み処理のシリアルコマンド管理処理において主制御部300に(第二の)通信確認コマンドを送信する(タイミングH)。その後、主制御部300は球数制御部600に賞球コマンドを送信する(タイミングC)。主制御部300の賞球数表示処理により賞球数表示部690には「0」が表示される(タイミングD)。賞球コマンドを受信した球数制御部600は遊技球数設定処理において遊技球数に賞球数(10個)を加算し、更新された遊技球数を球数表示部640に表示する。この場合、タイミングBの時点で球数表示部600の表示は「0」であり、更新後の球数表示部600の表示は「10」となる(タイミングE)。   For example, it is assumed that the number of game balls is “0” (the display of the ball number display unit 640 is “0”), but the number of balls in the area has won a general winning opening 226, for example. In this case, the main control unit 300 performs a winning acceptance process for the general winning opening 226 (timing B), and the main control unit 300 transmits a (first) communication confirmation command to the ball number control unit 600 (timing F). Thereafter, the main control unit 300 displays the number of winning balls “10” of the general winning opening 226 on the winning ball number display unit 690 in the winning ball number display process (timing G). Thereafter, the ball number control unit 600 transmits a (second) communication confirmation command to the main control unit 300 in the serial command management process of the interrupt process (timing H). Thereafter, the main control unit 300 transmits a prize ball command to the ball number control unit 600 (timing C). “0” is displayed on the award ball number display unit 690 by the award ball number display process of the main control unit 300 (timing D). Upon receiving the prize ball command, the ball number control unit 600 adds the number of prize balls (10) to the number of game balls in the game ball number setting process, and displays the updated number of game balls on the ball number display unit 640. In this case, the display of the ball number display unit 600 at time B is “0”, and the display of the updated ball number display unit 600 is “10” (timing E).

このような場合、たとえタイミングBで球数表示部640の表示が「0」であっても、タイミングGでは賞球数表示部690に賞球数「10」が表示され、遊技者の発射可能な(実質的な)遊技球数としては「1」以上存在している。しかし、遊技球数更新のタイミング(遊技球数設定処理におけるシリアルコマンド管理処理のタイミング)によって、遊技球数記憶領域の遊技球数は「0」のままであるので、タイミングGからタイミングDまでの間は遊技球数の発射や球送りの駆動処理が行われず、遊技ができない状態となる場合がある。   In such a case, even if the display on the ball number display unit 640 is “0” at the timing B, the prize ball number “10” is displayed on the prize ball number display unit 690 at the timing G, and the player can fire. The number of na (substantial) game balls is “1” or more. However, the number of game balls in the game ball number storage area remains “0” depending on the timing of game ball number update (the timing of serial command management processing in the game ball number setting process). During this time, the number of game balls is not fired or the ball feed driving process is not performed, and there is a case where the game cannot be performed.

このように、遊技球数が少ない場合(「0」の場合)に入賞すると、通信確認コマンド送受信によるタイムラグにより直ちにデータが更新されない場合がある。これにより、遊技者が球発射ハンドル134を連続して操作していても、機内球710の発射間隔が一定ではなくなる場合がある。   As described above, if a prize is awarded when the number of game balls is small (in the case of “0”), data may not be immediately updated due to a time lag due to transmission / reception of a communication confirmation command. Thereby, even if the player operates the ball launch handle 134 continuously, the firing interval of the in-flight ball 710 may not be constant.

つまり、遊技球数の更新処理は、機内球710の発射制御や、球送り制御とも密接に関連している。以下、発射制御および球送り制御について、説明する。
<球送り制御処理および発射制御処理>
That is, the game ball number update process is closely related to the in-flight ball 710 launch control and ball feed control. Hereinafter, launch control and ball feed control will be described.
<Ball feed control process and launch control process>

図41から図52を参照して、パチンコ機100の発射制御処理および球送り制御処理について説明する。   The launch control process and ball feed control process of the pachinko machine 100 will be described with reference to FIGS. 41 to 52.

図41は、球送り制御処理および発射制御処理に関する構成を示すブロック図である。パチンコ機100は例えば、タッチセンサ806、発射強度センサ808、発射停止スイッチ810、球送り装置616、発射装置622を有する。タッチセンサ806、発射強度センサ808、発射停止スイッチ810は操作部中継基板802を介して発射制御部(発射制御回路)800に接続する。球送り装置616および発射装置622は、発射中継基板804を介して発射制御部800に接続する。発射制御部800は、ここでは一例として球数制御部600に設けられた発射制御回路であるが、球数制御部600と別体の構成としてもよい。   FIG. 41 is a block diagram showing a configuration related to the ball feed control process and the firing control process. The pachinko machine 100 includes, for example, a touch sensor 806, a firing intensity sensor 808, a firing stop switch 810, a ball feeding device 616, and a firing device 622. The touch sensor 806, the launch intensity sensor 808, and the launch stop switch 810 are connected to the launch controller (launch control circuit) 800 via the operation unit relay board 802. The ball feeder 616 and the launcher 622 are connected to the launch controller 800 via the launch relay board 804. The firing control unit 800 is a launch control circuit provided in the ball number control unit 600 as an example here, but may be configured separately from the ball number control unit 600.

タッチセンサ806、発射強度センサ808および発射停止スイッチ810は、例えば球発射ハンドル134に設けられ、遊技者による球発射ハンドル134の操作を検出する。具体的にはタッチセンサ806は、遊技者が球発射ハンドル134に接触しているか否かの検出を行う。発射強度センサは、遊技者の球発射ハンドル134の操作量を検出し、これにより機内球710の遊技領域124への発射強度を調整する。球発射ハンドル134の操作量は球発射ハンドル134の回転角度であり、ハンドルボリュームともいう。発射停止スイッチ810は、押下されることによって(押下を発射停止センサで検知することにより)機内球710の発射を停止する。タッチセンサ806、発射強度センサ808および発射停止スイッチ810は、球送り制御用各種センサに含まれる。   The touch sensor 806, the firing intensity sensor 808, and the firing stop switch 810 are provided on the ball launching handle 134, for example, and detect the operation of the ball launching handle 134 by the player. Specifically, the touch sensor 806 detects whether or not the player is in contact with the ball launch handle 134. The launch intensity sensor detects the amount of operation of the player's ball launch handle 134, and thereby adjusts the launch intensity of the in-flight ball 710 to the game area 124. The operation amount of the ball launching handle 134 is the rotation angle of the ball launching handle 134 and is also referred to as a handle volume. The firing stop switch 810 stops the firing of the in-flight ball 710 when pressed (by detecting the pressing with a firing stop sensor). Touch sensor 806, firing intensity sensor 808, and firing stop switch 810 are included in various sensors for ball feed control.

球送り装置616は例えば、球送り駆動装置812と球通路(不図示)を含んで構成され、発射装置612例えば、発射駆動装置814と発射杵622aを含んで構成される。球送り駆動装置812および発射駆動装置814はここではそれぞれソレノイドを用いる場合を例に説明するが、ソレノイドに限らず例えば、モータ、動力シリンダーなど他のアクチュエーターであってもよい。   The ball feeding device 616 includes, for example, a ball feeding driving device 812 and a ball passage (not shown), and includes a firing device 612, for example, a firing driving device 814 and a launching rod 622a. Here, the ball feeding drive device 812 and the firing drive device 814 will be described using a solenoid as an example, but the present invention is not limited to the solenoid, and may be other actuators such as a motor and a power cylinder.

球数制御部600(発射制御部800)は、タッチセンサ806および発射強度センサ808を検出し、球発射ハンドル134が遊技者により操作されていることを検知した場合には、球送り駆動装置(球送りソレノイド)812を駆動する。球送りソレノイド812は球通路を回動可能に支持し、球送りソレノイド812の駆動(例えば、球通路の吸引)によって機内球710が回動する球通路に沿って移動し、発射レール624に搬送される。機内球710が発射レール624で停止すると球数制御部600は、発射駆動装置(発射ソレノイド)814を駆動する。発射ソレノイド814は、発射杵622aを回動可能に支持し、発射ソレノイド814の駆動(例えば吸引)により発射杵622aが回動し、発射レール624上の機内球710を遊技領域124に打ち出す。発射の強弱は、発射強度センサ808で検出した球発射ハンドル134の操作量(ハンドルボリューム)によって発射ソレノイド814の駆動量(吸引量)を変化させて制御する。既述の如く、発射レール624から機内球710が発射されたことを減算センサ604Zが検出すると、遊技球数を1個減算する。   When the ball number control unit 600 (launch control unit 800) detects the touch sensor 806 and the launch intensity sensor 808 and detects that the ball launch handle 134 is operated by the player, the ball feed driving device ( A ball feed solenoid) 812 is driven. The ball feed solenoid 812 supports the ball passage in a rotatable manner, and moves along the ball passage in which the in-flight ball 710 rotates by the driving of the ball feed solenoid 812 (for example, suction of the ball passage) and is conveyed to the firing rail 624. Is done. When the in-flight ball 710 stops at the firing rail 624, the ball number control unit 600 drives a firing drive device (launch solenoid) 814. The launch solenoid 814 supports the launch rod 622a in a pivotable manner, and the launch rod 622a is rotated by driving the launch solenoid 814 (for example, suction) to launch the in-flight ball 710 on the launch rail 624 into the game area 124. The strength of the launch is controlled by changing the drive amount (suction amount) of the launch solenoid 814 according to the operation amount (handle volume) of the ball launch handle 134 detected by the launch intensity sensor 808. As described above, when the subtraction sensor 604Z detects that the in-flight ball 710 is fired from the firing rail 624, the number of game balls is decremented by one.

球数制御部600(発射制御部800)は、球発射ハンドル134のタッチ状態を非検出の場合、発射停止スイッチが押下されている場合、球発射ハンドル134が一定角以上回転されていない場合、および管理装置620が未接続の場合などには、機内球710の発射(球送りソレノイド812、発射ソレノイド814の少なくとも一方の駆動)を停止する。   When the touch state of the ball launch handle 134 is not detected, the ball number control unit 600 (launch control unit 800), when the launch stop switch is pressed, when the ball launch handle 134 is not rotated more than a certain angle, When the management device 620 is not connected, the firing of the in-flight ball 710 (the driving of at least one of the ball feed solenoid 812 and the firing solenoid 814) is stopped.

また、球数制御部600は、球数制御部割込み処理において主制御通信エラー中の場合には、すなわち図34(a)に示す主制御通信エラー管理処理において主制御通信エラーと設定された場合には、球送りソレノイド812および発射ソレノイド814の少なくとも一方の駆動を停止することもできる。   Further, the ball number control unit 600 has a main control communication error in the ball number control unit interrupt process, that is, a main control communication error is set in the main control communication error management process shown in FIG. Alternatively, the driving of at least one of the ball feed solenoid 812 and the firing solenoid 814 can be stopped.

さらに球数制御部600は、遊技球数を参照して球送りソレノイド812および発射ソレノイド814の駆動および停止を制御することもできる。例えば、遊技球数が「0(ゼロ)」の場合には、球送りソレノイド812および発射ソレノイド814の少なくとも一方の駆動を停止し、機内球710の発射を不可能にする。   Furthermore, the ball number control unit 600 can control the driving and stopping of the ball feeding solenoid 812 and the firing solenoid 814 with reference to the number of game balls. For example, when the number of game balls is “0 (zero)”, driving of at least one of the ball feed solenoid 812 and the firing solenoid 814 is stopped, and the in-flight ball 710 cannot be fired.

またパチンコ機100では、1分間に発射できる機内球710が所定数以下と定められており、球発射ハンドル134を連続操作した場合であっても、機内球710の発射間隔の最短時間は一定となる。一例として1分間に発射できる機内球710は100個以下であり、これにより機内球710の発射間隔は最短で600msである。球数制御部600は、遊技球数が少なく(例えば、10球以下、5球以下など)なった場合、機内球710の発射間隔を通常の発射間隔(遊技球数が一定量以上の場合の発射間隔:600ms)より長くするような制御を行うこともできる。   Further, in the pachinko machine 100, the number of in-flight balls 710 that can be fired in one minute is determined to be a predetermined number or less, and even when the ball launching handle 134 is continuously operated, the shortest time of the firing interval of the in-flight balls 710 is constant. Become. As an example, the number of in-flight balls 710 that can be fired in one minute is 100 or less, whereby the firing interval of the in-flight balls 710 is 600 ms at the shortest. When the number of game balls is low (for example, 10 balls or less, 5 balls or less, etc.), the ball number control unit 600 sets the firing interval of the in-flight ball 710 to the normal firing interval (when the number of game balls is a certain amount or more). It is also possible to perform control such that the firing interval is longer than 600 ms.

図42から図45を参照して、パチンコ機100の球送り制御処理および発射制御処理の一例について具体的に説明する。   With reference to FIGS. 42 to 45, an example of the ball feed control process and the launch control process of the pachinko machine 100 will be specifically described.

図42は、機内球710を発射レール624に送る球送り制御処理(球送り装置制御処理)の流れを示すフローチャートであり、図42(a)が遊技球数の有無を球送り制御の条件とする場合のフローチャートであり、図42(b)が遊技球数の有無を球送り制御の条件としない場合のフローチャートである。またいずれの場合も、機内球710の最短発射間隔(ここでは600ms)のタイマ管理は発射制御で行うものとする。   FIG. 42 is a flowchart showing the flow of the ball feed control process (ball feed device control process) for sending the in-flight ball 710 to the firing rail 624. FIG. 42 (a) shows the presence / absence of the number of game balls as the condition of the ball feed control. FIG. 42B is a flowchart in the case where the presence / absence of the number of game balls is not used as the condition for the ball feed control. In either case, the timer management of the shortest firing interval (here, 600 ms) of the in-flight ball 710 is performed by launch control.

図42(a)を参照して、ステップS2301では、球送り制御用各種センサの状態を検出し、球送り制御実行条件が成立しているか否かを判定する。球送り用各種センサの状態は、例えば、タッチセンサフラグ、ボリュームスイッチフラグ、発射停止フラグ、通信エラーフラグなどで判定できる。例えば、遊技者が球操作ハンドル134にタッチしていることをタッチセンサ806で検出した場合は、RAMに設けられたタッチセンサフラグがオン(または例えば「1」がセット)になる。球発射ハンドル134の操作は例えばデジタル的に判定可能であり、ハンドルボリュームが所定値以上の場合(球発射ハンドル134の操作量が所定角度以上)であることを発射強度センサ808で検出した場合は、RAMに設けられたボリュームスイッチフラグがオン(また例えば「1」がセット)になる。また、発射停止スイッチ810が押下されていない場合は、RAMに設けられた発射停止フラグがオフ(または例えば「0」がセット)となる。また、主制御部通信エラーの判定がされていない場合、通信エラーフラグがオフ(または例えば「0」がセット)となる。   Referring to FIG. 42A, in step S2301, the state of various sensors for ball feed control is detected, and it is determined whether or not a ball feed control execution condition is satisfied. The state of the various sensors for ball feeding can be determined by, for example, a touch sensor flag, a volume switch flag, a firing stop flag, a communication error flag, or the like. For example, when the touch sensor 806 detects that the player is touching the ball operation handle 134, the touch sensor flag provided in the RAM is turned on (or, for example, “1” is set). When the operation of the ball launching handle 134 can be digitally determined, for example, when the launch intensity sensor 808 detects that the handle volume is greater than or equal to a predetermined value (the operation amount of the ball launching handle 134 is greater than or equal to a predetermined angle). The volume switch flag provided in the RAM is turned on (or, for example, “1” is set). If the firing stop switch 810 is not pressed, the firing stop flag provided in the RAM is turned off (or, for example, “0” is set). If the main control unit communication error is not determined, the communication error flag is turned off (or, for example, “0” is set).

本ステップではこれらのフラグを判定し、タッチセンサフラグがオン、ボリュームスイッチフラグがオン、発射停止フラグがオフ、通信エラーフラグがオフ、のすべてを満たした場合、ステップS2303に進み、そうでない場合は処理を終了する。   In this step, these flags are determined, and if the touch sensor flag is on, the volume switch flag is on, the firing stop flag is off, and the communication error flag is off, the process proceeds to step S2303; The process ends.

ステップS2303では、遊技球数記憶領域に記憶されている遊技球数を取得し、有無を判定する。遊技球数が有る場合はステップS2305に進み、そうでない場合は処理を終了する。   In step S2303, the number of game balls stored in the game ball number storage area is acquired, and the presence or absence is determined. If there is a game ball number, the process proceeds to step S2305, and if not, the process ends.

ステップS2305では球送りフラグを判定する。球送りフラグは前回の機内球710発射後に球送り(機内球710の発射レール624への搬送)を行っているか否かを判定するフラグであり、球送りフラグがオフ(または「0」をセット)の場合は球送りを行っていないことを示し、球送りフラグがオン(または「1」をセット)の場合は球送りを行っていることを示す。球送りフラグがオフの場合はステップS2307に進み、そうでない場合は処理を終了する。機内球710の1分間の発射球数を100個以内に制限するタイマ管理処理を発射制御処理で行うために、球送り制御処理において球送りフラグの判定と設定を行っている。球送りフラグは、後述する発射制御処理において初期化(オフが設定)され、そのタイミングは最短で600msである。球送りフラグの設置および球送り制御処理での球送りフラグの判定処理(本ステップ)は、所定の構成を有するパチンコ機100の場合に必要となるが、それについては後述する。   In step S2305, the ball feed flag is determined. The ball feed flag is a flag for determining whether or not ball feed (conveyance of the in-vehicle ball 710 to the firing rail 624) has been performed after the previous in-flight ball 710 was fired. The ball feed flag is off (or set to “0”). ) Indicates that the ball is not being fed, and if the ball feed flag is on (or “1” is set), it indicates that the ball is being fed. If the ball feed flag is off, the process proceeds to step S2307; otherwise, the process ends. In order to perform a timer management process for limiting the number of in-flight balls 710 to be shot within 100 per minute in the launch control process, the ball feed flag is determined and set in the ball feed control process. The ball feed flag is initialized (OFF is set) in the launch control process described later, and its timing is 600 ms at the shortest. The ball feed flag setting process and the ball feed flag determination process (this step) in the ball feed control process are necessary for the pachinko machine 100 having a predetermined configuration, which will be described later.

ステップS2307では、球送りソレノイド812を駆動する。これにより1個の機内球710が発射レール624に搬送される。   In step S2307, the ball feed solenoid 812 is driven. As a result, one in-flight ball 710 is conveyed to the firing rail 624.

ステップS2309では、球送りを行ったことを示す、球送りフラグをオンにする。   In step S2309, the ball feed flag indicating that the ball feed has been performed is turned on.

この球送り制御処理では、遊技球数が有る場合には球送りが行われる一方で、遊技球数が無い場合は球送りが行われない。   In this ball feed control process, ball feed is performed when there is a game ball number, while ball feed is not performed when there is no game ball number.

同図(b)を参照して、遊技球数の有無によらず球送り制御が可能な球送り制御処理について説明する。球送り制御用各種センサおよびその状態検出、球送りフラグについては同図(a)と同様であるので説明は省略する。   With reference to FIG. 4B, a ball feed control process capable of controlling the ball feed regardless of the number of game balls will be described. The various sensors for ball feed control, the state detection thereof, and the ball feed flag are the same as those in FIG.

ステップS2401では、球送り制御用各種センサの状態を検出し、球送り制御実行条件が成立しているか否かを判定する。例えば、タッチセンサフラグがオン、ボリュームスイッチフラグがオン、発射停止フラグがオフのすべてを満たした場合、ステップS2403に進み、そうでない場合は処理を終了する。   In step S2401, the state of various sensors for ball feed control is detected, and it is determined whether or not a ball feed control execution condition is satisfied. For example, if the touch sensor flag is all on, the volume switch flag is on, and the firing stop flag is all off, the process proceeds to step S2403. If not, the process ends.

ステップS2403では、球送りフラグを判定し、球送りフラグがオフの場合はステップS2405に進み、そうでない場合は処理を終了する。ステップS2405では、球送りソレノイド812を駆動する。これにより1個の機内球710が発射レール624に搬送される。ステップS2407では、球送りを行ったことを示す、球送りフラグをオンにする。   In step S2403, the ball feed flag is determined. If the ball feed flag is off, the process proceeds to step S2405. If not, the process ends. In step S2405, the ball feed solenoid 812 is driven. As a result, one in-flight ball 710 is conveyed to the firing rail 624. In step S2407, the ball feed flag indicating that the ball feed has been performed is turned on.

この球送り制御処理では、遊技球数が「0」であっても球送りが可能となる。パチンコ機100の球送り制御処理では、同図(a)または(b)のいずれかが採用できる。   In this ball feed control process, ball feed is possible even if the number of game balls is “0”. In the ball feed control process of the pachinko machine 100, either (a) or (b) in the figure can be adopted.

図43を参照して、機内球710を遊技領域124に発射する発射制御処理(発射装置制御処理)について説明する。同図は発射制御処理の流れを説明するフローチャートの一例である。これらの発射制御処理では、機内球710の最短発射間隔(ここでは600ms)のタイマ管理を行っており、例えば図42に示した球送り制御処理(のいずれか)とともに採用できる。また、同図に示す発射制御処理における、球送り制御用各種センサの状態検出と、球送りフラグの設定は、図42に示す球送り制御処理の場合と同様であるので、説明は省略する。   With reference to FIG. 43, the launch control process (launch device control process) which launches the in-flight ball 710 to the game area 124 will be described. This figure is an example of a flowchart for explaining the flow of the firing control process. In these launch control processes, timer management of the shortest launch interval (here, 600 ms) of the in-flight ball 710 is performed, and can be employed together with, for example, any one of the ball feed control processes shown in FIG. Further, in the launch control process shown in the figure, the state detection of various sensors for ball feed control and the setting of the ball feed flag are the same as in the case of the ball feed control process shown in FIG.

同図(a)を参照して、ステップS2501では、球送り制御用各種センサの状態を検出し、球送り制御実行条件が成立しているか否かを判定する。球送り制御用各種センサの球送り制御実行条件は、球送り制御処理の判定時に成立していても発射制御処理のタイミングでは不成立となる可能性があるので、本ステップにて改めて判定を行う。球送り制御実行条件が成立した場合、例えば、タッチセンサフラグがオン、ボリュームスイッチフラグがオン、発射停止フラグがオフのすべてを満たした場合、ステップS2503に進み、そうでない場合はステップS2513に進む。   Referring to FIG. 5A, in step S2501, the state of various sensors for ball feed control is detected, and it is determined whether or not a ball feed control execution condition is satisfied. Even if the ball feed control execution conditions of the various sensors for ball feed control are satisfied at the time of determination of the ball feed control process, they may not be satisfied at the timing of the firing control process, so the determination is performed again in this step. When the ball feed control execution condition is satisfied, for example, when the touch sensor flag is all on, the volume switch flag is on, and the firing stop flag is all off, the process proceeds to step S2503. Otherwise, the process proceeds to step S2513.

あるいは、破線の矢印で示すように、球送り制御実行条件が不成立の場合、処理を終了するようにしてもよい。これにより、例えば最短発射間隔の600msの期間中に一旦、遊技者が球操作ハンドル134から手を離した場合などに、発射間隔タイマを一時停止するような処理が可能になる。   Alternatively, as indicated by the dashed arrow, the processing may be terminated when the ball feed control execution condition is not satisfied. Thereby, for example, when the player once releases the ball operation handle 134 during the 600 ms period of the shortest firing interval, it is possible to perform processing for temporarily stopping the firing interval timer.

ステップS2503では、発射間隔タイマから「1」を減算する。発射間隔タイマは、機内球710の最短発射間隔を600msに維持するためのタイマであり、初期値として「300」(球数制御部600のタイマ割込み処理の周期が2msの場合)に設定されている。   In step S2503, “1” is subtracted from the firing interval timer. The firing interval timer is a timer for maintaining the shortest firing interval of the in-flight ball 710 at 600 ms, and is set to “300” as an initial value (when the timer interrupt processing cycle of the ball number control unit 600 is 2 ms). Yes.

ステップS2505では、発射間隔タイマが「0」であるか否かを判定する。発射間隔タイマが「0」の場合(前回の発射から600msが経過したことを示す)は、ステップS2507に進み、そうでない場合は、処理を終了する。   In step S2505, it is determined whether or not the firing interval timer is “0”. If the firing interval timer is “0” (indicating that 600 ms has elapsed since the previous launch), the process proceeds to step S2507, and if not, the process ends.

ステップS2507では、球送りフラグを判定する。球送りフラグがオンの場合は、ステップS2509に進み、そうでない場合は処理を終了する。図42の球送り制御処理にて設定される球送りフラグがオフの場合は、機内球710の球送りを行っていないのであるから、発射制御処理において発射レノイド814は駆動しなくてよい。一方、球送り制御用各種センサの状態が球送り制御実行条件を満たしている場合は、発射すべきところを発射できていない可能性がある。そこで本ステップで球送りフラグを判定し、発射ソレノイド814の駆動を判断する。   In step S2507, the ball feed flag is determined. If the ball feed flag is on, the process proceeds to step S2509. If not, the process ends. When the ball feed flag set in the ball feed control process of FIG. 42 is off, the ball in the in-flight ball 710 is not being fed, and therefore the firing renoid 814 does not have to be driven in the firing control process. On the other hand, when the state of the various sensors for ball feed control satisfies the ball feed control execution condition, there is a possibility that the place to be fired has not been fired. Therefore, the ball feed flag is determined in this step, and the driving of the firing solenoid 814 is determined.

ステップS2509では発射ソレノイド814を駆動する。前のステップS2507の判定の結果、球送りフラグがオンであれば、球送り制御実行条件も満たし、球送りも行われている状態であるので発射ソレノイド814を駆動する。   In step S2509, the firing solenoid 814 is driven. If the result of the determination in the previous step S2507 is that the ball feed flag is on, the ball feed control execution condition is satisfied and the ball feed is also being performed, so the firing solenoid 814 is driven.

例えば、パチンコ機100が、球送りソレノイド812と発射ソレノイド814とが連動して駆動し、遊技球数が「0」になった場合に球送りソレノイド812および発射ソレノイド814が停止する構成であるが、球送り後に遊技球数が「0」となった場合(最後の遊技球数を球送りした後)には1回だけ発射ソレノイドの駆動が許容されるように構成されている場合には、球送り制御処理での球送りフラグの設定および判定と、発射制御処理での球送りフラグの判定が必要となる。すなわち、当該構成のパチンコ機100においては、最後の遊技球数を球送りした(球送りフラグがオン)が、機内球710が発射レール624から発射されないという事象が生じる可能性がある。しかし球送りフラグを設けて(球送り制御処理でフラグの設定および判定を行い)発射制御処理において、これを参照することで、球送りされたにもかかわらず発射されない機内球710(最後の遊技球)を打ち出すことが可能となる。   For example, in the pachinko machine 100, the ball feed solenoid 812 and the launch solenoid 814 are driven in conjunction with each other, and the ball feed solenoid 812 and the launch solenoid 814 are stopped when the number of game balls reaches “0”. When the number of game balls becomes “0” after the ball has been fed (after the last game ball has been fed), the driving solenoid is allowed to be driven only once. It is necessary to set and determine the ball feed flag in the ball feed control process and to determine the ball feed flag in the launch control process. That is, in the pachinko machine 100 configured as described above, there is a possibility that an in-flight ball 710 may not be fired from the firing rail 624 after the last number of game balls has been fed (the ball feed flag is on). However, a ball feed flag is provided (the flag is set and determined in the ball feed control process), and by referring to this in the launch control process, an in-flight ball 710 that is not fired even though the ball is fed (the last game) Sphere) can be launched.

ステップS2511では、球送りフラグをオフに(または「0」をセット)する。ステップS2513では、発射間隔タイマに初期値を設定する。初期値はここでは「300」(=600ms/2ms)である。ステップS2501において球送り制御実行条件が不成立の場合、すなわち、タッチセンサの検知なしを示すオフ(または「0」がセット)、停止スイッチの検知有りを示すオン(または「1」がセット)、ボリュームスイッチフラグの操作無しを示すオフ(または「0」がセット)、主制御部通信エラーがオン(または「1」がセット)のいずれかである場合、本ステップにおいて、発射間隔タイマに初期値「300」がセットされる。球送り条件不成立となる球送り用各種センサの各フラグの解除後(初期化後)は、最短で600ms後に機内球710の発射が可能となる。   In step S2511, the ball feed flag is turned off (or “0” is set). In step S2513, an initial value is set in the firing interval timer. The initial value here is “300” (= 600 ms / 2 ms). If the ball feed control execution condition is not satisfied in step S2501, that is, OFF indicating that the touch sensor is not detected (or “0” is set), ON indicating that the stop switch is detected (or “1” is set), volume If the switch flag is off (or “0” is set) indicating no operation or the main control unit communication error is on (or “1” is set), the initial value “ 300 "is set. After releasing the flags of the various sensors for ball feeding that do not satisfy the ball feeding condition (after initialization), the in-flight ball 710 can be fired after 600 ms at the shortest.

同図(b)は、球送り制御実行条件によらず、発射間隔タイマを常に更新する発射制御処理の流れを示すフローチャートである。   FIG. 5B is a flowchart showing the flow of the firing control process that constantly updates the firing interval timer regardless of the ball feed control execution condition.

ステップS2601では、発射間隔タイマから「1」を減算する。発射間隔タイマは、同図(a)の場合と同様であるので説明は省略する。ステップS2603では、発射間隔タイマが「0」であるか否かを判定し、発射間隔タイマが「0」の場合はステップS2505に進み、そうでない場合は処理を終了する。   In step S2601, “1” is subtracted from the firing interval timer. The firing interval timer is the same as that in FIG. In step S2603, it is determined whether or not the firing interval timer is “0”. If the firing interval timer is “0”, the process proceeds to step S2505. If not, the process ends.

ステップS2605では、球送りフラグを判定し、オンの場合はステップS2607に進み、そうでない場合は、処理を終了する。球送りフラグを判定する理由は、同図(a)と同様であるので説明は省略する。   In step S2605, the ball feed flag is determined. If it is on, the process proceeds to step S2607, and if not, the process ends. The reason for determining the ball feed flag is the same as in FIG.

ステップS2607では、球送り制御用各種センサの状態を検出し、球送り制御実行条件が成立しているか否かを判定する。球送り制御実行条件が成立した場合は、ステップS2609に進み、そうでない場合はステップS2613に進む。   In step S2607, the state of various sensors for ball feed control is detected, and it is determined whether or not the ball feed control execution condition is satisfied. If the ball feed control execution condition is satisfied, the process proceeds to step S2609; otherwise, the process proceeds to step S2613.

ステップS2609では発射ソレノイド814を駆動する。ステップS2611では、球送りフラグをオフに(または「0」をセット)する。ステップS2613では、発射間隔タイマに初期値を設定する。初期値はここでは「300」(=600ms/2ms)である。   In step S2609, the firing solenoid 814 is driven. In step S2611, the ball feed flag is turned off (or “0” is set). In step S2613, an initial value is set in the firing interval timer. The initial value here is “300” (= 600 ms / 2 ms).

図44は、機内球710の最短発射間隔(ここでは600ms)のタイマ管理を球送り制御処理で行う場合の、球送り制御処理と発射制御処理の流れを示すフローチャートの一例である。同図(a)は球送り制御処理(球送り装置制御処理)のフローチャートであり、同図(b)は発射制御処理(発射装置制御処理)のフローチャートである。なお、同図における、球送り制御用各種センサの状態検出と、球送りフラグの設定は、図42に示す球送り制御処理の場合と同様であるので、説明は省略する。   FIG. 44 is an example of a flowchart showing the flow of the ball feed control process and the launch control process when the timer management of the shortest firing interval (here 600 ms) of the in-flight ball 710 is performed by the ball feed control process. FIG. 4A is a flowchart of a ball feed control process (ball feed device control process), and FIG. 4B is a flowchart of a launch control process (launch device control process). The state detection of the various sensors for ball feed control and the setting of the ball feed flag in the same figure are the same as those in the case of the ball feed control process shown in FIG.

ステップS2701では、球送り間隔タイマから「1」を減算する。球送り間隔タイマは、機内球710の最短球送り間隔を600msに維持するためのタイマであり、初期値として「300」(球数制御部600のタイマ割込み処理の周期が2msの場合)に設定されている。最短球送り間隔を600msに制限することで最短発射間隔も600msに制限される。   In step S2701, “1” is subtracted from the ball feed interval timer. The ball feeding interval timer is a timer for maintaining the shortest ball feeding interval of the in-flight ball 710 at 600 ms, and is set to “300” as an initial value (when the timer interrupt processing cycle of the ball number control unit 600 is 2 ms). Has been. By limiting the shortest ball feeding interval to 600 ms, the shortest firing interval is also limited to 600 ms.

ステップS2703では、球送り間隔タイマが「0」であるか否かを判定する。球送り間隔タイマが「0」の場合(前回の球送りから600msが経過したことを示す)は、ステップS2705に進み、そうでない場合は、処理を終了する。   In step S2703, it is determined whether or not the ball feeding interval timer is “0”. If the ball feed interval timer is “0” (indicating that 600 ms has elapsed since the previous ball feed), the process proceeds to step S2705; otherwise, the process ends.

ステップS2705では、球送り間隔タイマに初期値を設定する。初期値はここでは「300」(=600ms/2ms)である。   In step S2705, an initial value is set in the ball feeding interval timer. The initial value here is “300” (= 600 ms / 2 ms).

ステップS2707では、球送り制御用各種センサの状態を検出し、球送り制御実行条件が成立しているか否かを判定する。球送り制御実行条件が成立した場合、例えば、タッチセンサフラグがオン、ボリュームスイッチフラグがオン、発射停止フラグがオフのすべてを満たした場合、ステップS2709に進み、そうでない場合は処理を終了する。   In step S2707, the state of various sensors for ball feed control is detected, and it is determined whether or not the ball feed control execution condition is satisfied. If the ball feed control execution condition is satisfied, for example, if the touch sensor flag is all on, the volume switch flag is on, and the firing stop flag is all off, the process proceeds to step S2709; otherwise, the process ends.

ステップS2709では、遊技球数記憶領域に記憶されている遊技球数を取得し、有無を判定する。遊技球数が有る場合はステップS2711に進み、そうでない場合は処理を終了する。   In step S2709, the number of game balls stored in the game ball number storage area is acquired, and the presence or absence is determined. If there is a game ball number, the process proceeds to step S2711. If not, the process ends.

ステップS2711では、球送りフラグを判定する。球送りフラグがオフの場合はステップS2713に進み、そうでない場合は処理を終了する。   In step S2711, the ball feed flag is determined. If the ball feed flag is off, the process proceeds to step S2713. If not, the process ends.

ステップS2713では、球送りソレノイド812を駆動し、1個の機内球710を発射レール624に搬送する。ステップS2715では、球送りを行ったことを示す、球送りフラグをオンにする。   In step S2713, the ball feed solenoid 812 is driven, and one in-flight ball 710 is conveyed to the firing rail 624. In step S2715, the ball feed flag indicating that the ball feed has been performed is turned on.

この球送り制御処理では、遊技球数の有無によらず、遊技球710を一定の周期(600ms)で発射レール624に送り出す。この場合、最後の遊技球数を発射直後に賞球や貸球等で遊技球数が増加した場合(遊技球数が「0」から「10」になった場合)であっても、遊技球数の更新(増加)後、直ちに球送りを行うのではなく、(遊技球数の有無によらず)更新されている球送り間隔タイマに合わせて一定周期で球送りを行う。   In this ball feed control process, the game ball 710 is sent to the firing rail 624 at a constant cycle (600 ms) regardless of the number of game balls. In this case, even if the number of game balls is increased by award balls, rental balls, etc. immediately after the final number of game balls is launched (when the number of game balls is changed from “0” to “10”), After the number is updated (increased), ball feeding is not performed immediately, but ball feeding is performed at a constant cycle according to the updated ball feeding interval timer (regardless of the number of game balls).

同図(b)を参照して、発射制御処理の流れについて説明する。   The flow of the firing control process will be described with reference to FIG.

ステップS2801では、球送り制御用各種センサの状態を検出し、球送り制御実行条件が成立しているか否かを判定する。球送り制御実行条件が成立した場合、例えば、タッチセンサフラグがオン、ボリュームスイッチフラグがオン、発射停止フラグがオフのすべてを満たした場合、ステップS2803に進み、そうでない場合は処理を終了する。   In step S2801, the state of various sensors for ball feed control is detected, and it is determined whether or not a ball feed control execution condition is satisfied. If the ball feed control execution condition is satisfied, for example, if the touch sensor flag is all on, the volume switch flag is on, and the firing stop flag is all off, the process proceeds to step S2803. If not, the process ends.

ステップS2803では、球送りフラグを判定する。球送りフラグがオンの場合はステップS2805に進み、そうでない場合は処理を終了する。   In step S2803, the ball feed flag is determined. If the ball feed flag is on, the process proceeds to step S2805; otherwise, the process ends.

ステップS2805では、発射ソレノイド814を駆動する。ステップS2807では、球送りフラグにオフをセットする。   In step S2805, firing solenoid 814 is driven. In step S2807, the ball feed flag is set to OFF.

なお、図示は省略するが、発射制御処理において、球送り許可フラグを用いて、発射後(ステップS2805の発射ソレノイド駆動後)球送り許可フラグにオン(または「1」)を設定するものとしてもよい。当該フラグがオンの場合は、球送りを許可することを示す。その場合、同図(a)の球送り処理では、球送りソレノイド駆動処理(ステップS2713)以前に球送り許可フラグを判定し、当該フラグがオンの場合には、球送りソレノイドを駆動し、駆動後に球送り許可フラグをオフ(または「0」)に設定する。また球送りソレノイド駆動の条件に替えて、他の条件で球送り許可フラグをオフにしてもよい。他の条件とはたとえば、減算センサ604Zによる検知である。あるいは球送りソレノイド駆動条件と他の条件の論理積で球送り許可フラグをオフに設定してもよく、例えば、球送りソレノイドが駆動し、且つ減算センサ604Zが正しく機内球710を検知した場合に球送り許可フラグをオフに設定してもよい。   Although illustration is omitted, in the launch control process, the ball feed permission flag may be set to ON (or “1”) after the launch (after the firing solenoid is driven in step S2805) using the ball feed permission flag. Good. When the flag is on, it indicates that ball feeding is permitted. In that case, in the ball feed process of FIG. 9A, the ball feed permission flag is determined before the ball feed solenoid drive process (step S2713). When the flag is on, the ball feed solenoid is driven and driven. Later, the ball feed permission flag is set to off (or “0”). Further, instead of the ball feed solenoid driving condition, the ball feed permission flag may be turned off under other conditions. Another condition is, for example, detection by the subtraction sensor 604Z. Alternatively, the ball feed permission flag may be set to OFF by the logical product of the ball feed solenoid driving condition and other conditions. For example, when the ball feed solenoid is driven and the subtraction sensor 604Z correctly detects the in-flight ball 710. The ball feed permission flag may be set off.

図45を参照して、球送り制御処理(球送り装置制御装置)および発射制御処理(発射装置制御処理)の他の形態について説明する。図45は、球送り制御処理および発射制御処理を分離せず、一連の処理で行う場合のフローチャートの一例を示す。   With reference to FIG. 45, other forms of the ball feed control process (ball feed apparatus control apparatus) and the firing control process (launch apparatus control process) will be described. FIG. 45 shows an example of a flowchart in the case of performing a series of processes without separating the ball feed control process and the firing control process.

この場合、発射・球送りの最短間隔を管理する共通のタイマ(例えば発射間隔タイマ)の値に基づき、球送りソレノイド812と発射ソレノイド814を駆動する。つまり、一定間隔毎(例えば300ms毎)に球送りソレノイド812と発射ソレノイドを交互に駆動し、機内球710の球送りと発射を行う。球送り制御用各種センサの状態検出は、既述の処理と同様であり、説明は省略する。   In this case, the ball feed solenoid 812 and the firing solenoid 814 are driven based on the value of a common timer (for example, a firing interval timer) that manages the shortest interval between the firing and the ball feeding. That is, the ball feed solenoid 812 and the launch solenoid are alternately driven at regular intervals (for example, every 300 ms), and the ball 710 is fed and fired. The state detection of various sensors for ball feed control is the same as the processing described above, and the description thereof is omitted.

ステップS2901では、球送り制御用各種センサの状態を検出し、球送り制御実行条件が成立しているか否かを判定する。球送り制御実行条件が成立した場合は、ステップS2903に進み、そうでない場合はステップS2913に進む。   In step S2901, the state of various sensors for ball feed control is detected, and it is determined whether or not a ball feed control execution condition is satisfied. If the ball feed control execution condition is satisfied, the process proceeds to step S2903; otherwise, the process proceeds to step S2913.

ステップS2903では、発射間隔タイマから「1」を減算する。発射間隔タイマは、既述の発射間隔タイマと同様であるが、ここでは球送りの間隔も管理する。   In step S2903, “1” is subtracted from the firing interval timer. The firing interval timer is the same as the above-described firing interval timer, but the ball feeding interval is also managed here.

ステップS2905では、発射間隔タイマが所定値(ここでは「150」)であるか否かを判定する。最短発射間隔が600msの場合、発射間隔タイマの初期値は「300」に設定されている。本処理では、最短発射間隔の間に一定間隔で球送りを行うため、発射間隔タイマの値が「150」であるか否かを判定し、「150」の場合はステップS2907に進み、そうでない場合はステップS2909に進む。ステップS2907では、球送りソレノイド812を駆動する。   In step S2905, it is determined whether or not the firing interval timer is a predetermined value (here, “150”). When the shortest firing interval is 600 ms, the initial value of the firing interval timer is set to “300”. In this process, since the ball is fed at regular intervals during the shortest firing interval, it is determined whether or not the value of the firing interval timer is “150”. If “150”, the process proceeds to step S2907; In the case, the process proceeds to step S2909. In step S2907, the ball feed solenoid 812 is driven.

ステップS2909では、発射間隔タイマが「0」であるか否かを判定する。発射間隔タイマが「0」の場合は、ステップS2911に進み、そうでない場合は処理を終了する。ステップS2911では、発射ソレノイド814を駆動する。   In step S2909, it is determined whether or not the firing interval timer is “0”. If the firing interval timer is “0”, the process proceeds to step S2911, and if not, the process ends. In step S2911, the firing solenoid 814 is driven.

ステップS2913では、発射間隔タイマの値を初期値「300」に設定する。   In step S2913, the value of the firing interval timer is set to the initial value “300”.

なお、本処理においても既述の球送りフラグを設け、これを判定するものとしてもよい。また、ステップS2907の球送りソレノイド駆動処理の前に遊技球数を判断し、遊技球数が有る場合にのみ球送りソレノイド812を駆動するようにしてもよい。   In this process as well, the above-described ball feed flag may be provided and determined. Alternatively, the number of game balls may be determined before the ball feed solenoid driving process in step S2907, and the ball feed solenoid 812 may be driven only when there is a game ball number.

またこの処理では、例えば、ステップS2901で球送り制御用各種センサの状態を検出し、球送り制御実行条件が成立しているか否かを判定している。したがって、例えば600msの途中で球発射ハンドル134から遊技者が手を離すようなことがあると、その後球発射ハンドル134を操作した時点から600ms経過しないと機内球710を発射できない。更に、球送り後300ms以内に球発射ハンドル134から手を離すと、球送り済み(発射前)であるにもかかわらず、再度球送りをしてしまう。これを回避するには、球送りフラグなどを用いて、少なくとも球送りの後はタッチセンサが非検出(非接触を検出した場合)であっても発射間隔タイマを初期化しないなどの方法がある。   In this processing, for example, the state of various sensors for ball feed control is detected in step S2901, and it is determined whether or not the ball feed control execution condition is satisfied. Therefore, for example, if the player releases his hand from the ball launching handle 134 in the middle of 600 ms, the in-flight ball 710 cannot be fired until 600 ms have elapsed since the time when the ball launching handle 134 was operated thereafter. Furthermore, if the hand is released from the ball launch handle 134 within 300 ms after the ball is fed, the ball is fed again even though the ball has already been fed (before launch). In order to avoid this, there is a method of using a ball feed flag or the like to not initialize the firing interval timer even when the touch sensor is not detected (when non-contact is detected) at least after ball feeding. .

図46から図48は、球送りソレノイド812と発射ソレノイド814の駆動状態の一例を示すタイミングチャートである。また球送りソレノイド812の駆動による遊技球数の変化(減算センサ604Zによる機内球710の検出による遊技球数の変化)の一例も併記した。   46 to 48 are timing charts showing an example of driving states of the ball feed solenoid 812 and the firing solenoid 814. FIG. An example of a change in the number of game balls by driving the ball feed solenoid 812 (change in the number of game balls due to the detection of the in-flight ball 710 by the subtraction sensor 604Z) is also shown.

図46(a)は、遊技球数の有無によって球送りの可否が制限され(例えば図42(a)の球送り制御処理)、最短発射間隔は発射制御側で管理する場合で、通常の場合(遊技球数が徐々に減少していく場合)のタイミングチャートを示している。球数制御部600は、球送りソレノイド812を駆動し、発射レール624に機内球710が搬送されると球送りフラグがオンとなる。球送りフラグがオンであるので発射ソレノイド814を駆動し、機内球710を発射するとともに球送りフラグをオフにする。球送りソレノイド812から機内球710が発射装置622に送られるとこれが減算センサ604Zによって検出され、遊技球数が更新されるので、例えば「3」であった遊技球数が「2」となる。わずかなタイムラグのあと、球送りフラグがオフであるので球数制御部600は球送りソレノイド812を駆動する。以降同様に処理が進む。発射ソレノイドの発射間隔は最短で600msである。遊技球数が「1」から「0」になると、例えば、球発射ハンドル134の操作を行っており球送り制御実行条件が成立している場合であっても、球数制御部600は破線の如く、球送りソレノイド812を駆動せず、球送りフラグがオフであるので、発射ソレノイド814も駆動しない。発射ソレノイド814は遊技球数が「0」になることで間接的に停止する。   FIG. 46A shows whether or not ball feeding is possible depending on the number of game balls (for example, the ball feeding control process in FIG. 42A), and the shortest firing interval is managed on the firing control side. The timing chart of (when the number of game balls decreases gradually) is shown. The ball number controller 600 drives the ball feed solenoid 812, and the ball feed flag is turned on when the in-flight ball 710 is conveyed to the firing rail 624. Since the ball feed flag is on, the firing solenoid 814 is driven to fire the in-flight ball 710 and turn off the ball feed flag. When the in-flight ball 710 is sent from the ball feed solenoid 812 to the launching device 622, this is detected by the subtraction sensor 604Z, and the number of game balls is updated. For example, the number of game balls that was “3” becomes “2”. After a slight time lag, since the ball feed flag is off, the ball number control unit 600 drives the ball feed solenoid 812. Thereafter, the process proceeds in the same manner. The firing interval of the firing solenoid is 600 ms at the shortest. When the number of game balls is changed from “1” to “0”, for example, even when the ball launching handle 134 is operated and the ball feed control execution condition is satisfied, the ball number control unit 600 is indicated by a broken line. Thus, since the ball feed solenoid 812 is not driven and the ball feed flag is off, the firing solenoid 814 is not driven either. The firing solenoid 814 stops indirectly when the number of game balls reaches “0”.

図46(b)は、図46(a)と同様の処理であるが、球送りソレノイド812の駆動間隔が600ms以内となる場合のタイミングチャートである。   FIG. 46B is a timing chart when the processing is the same as that of FIG. 46A, but the driving interval of the ball feed solenoid 812 is within 600 ms.

例えば、3回目の発射ソレノイド814の駆動で機内球710が発射され、遊技球数が「0」になると、次の球送りソレノイドは破線の如く停止する。その直後に賞球等により遊技球数が「10」に増加すると、球数制御部600は直ちに球送りソレノイド812を駆動する。球送りソレノイド812の駆動により、球数制御部600は前回の発射ソレノイド814の駆動から600ms経過後再び発射ソレノイド814を駆動し、機内球710を発射する。これにより球送りフラグがオフになると、その後球数制御部600は球送りソレノイド812を駆動する。発射間隔タイマは、発射制御処理で管理しており、球送りソレノイド812は球送りフラグがオフになったことを契機として駆動するので、遊技球数が増加したときの球送りソレノイド812の駆動から次の球送りソレノイド812の駆動までの間隔t1は、600ms以内になる場合があるが、発射ソレノイド814の発射間隔は600msで管理されている。   For example, when the in-flight ball 710 is fired by driving the launch solenoid 814 for the third time and the number of game balls becomes “0”, the next ball feed solenoid stops as shown by a broken line. Immediately thereafter, when the number of game balls increases to “10” due to a prize ball or the like, the ball number control unit 600 immediately drives the ball feed solenoid 812. By driving the ball feed solenoid 812, the ball number control unit 600 drives the firing solenoid 814 again after elapse of 600 ms from the previous driving of the firing solenoid 814, and fires the in-flight ball 710. When the ball feed flag is turned off, the ball number control unit 600 drives the ball feed solenoid 812 thereafter. The firing interval timer is managed in the launch control process, and the ball feed solenoid 812 is driven when the ball feed flag is turned off. Therefore, from the driving of the ball feed solenoid 812 when the number of game balls increases. The interval t1 until the next driving of the ball feed solenoid 812 may be within 600 ms, but the firing interval of the firing solenoid 814 is managed at 600 ms.

図46(c)は、球送りソレノイド812の駆動間隔が600msを超える場合の一例を示すタイミングチャートである。球送り制御処理は例えば、図43(a)に示す処理と同様の処理を行うが、更にステップS2501において発射ソレノイド814の駆動条件に遊技球数が有無も判定している場合のタイミングチャートである。   FIG. 46C is a timing chart showing an example when the driving interval of the ball feed solenoid 812 exceeds 600 ms. For example, the ball feed control process is the same as the process shown in FIG. 43A, but is a timing chart in the case where the driving condition of the firing solenoid 814 also determines whether or not the number of game balls is present in step S2501. .

例えば、3回目の発射ソレノイド814の駆動で機内球710が発射され、遊技球数が「0」になると、次の球送りソレノイドは破線の如く停止する。その直後に賞球等により遊技球数が「10」に増加すると、球数制御部600は直ちに球送りソレノイド812を駆動する。発射ソレノイド814の駆動条件に、「遊技球数が有ること」を含んでいる場合には、球送りソレノイド812の再開時から600ms経過後に発射ソレノイド814が駆動し、その後に次の球送りソレノイド812が駆動する。したがってこの場合、遊技球数が増加した後の球送りソレノイド812からその次の球送りソレノイド812までの間隔t2は、600ms以上になる場合がある。   For example, when the in-flight ball 710 is fired by driving the launch solenoid 814 for the third time and the number of game balls becomes “0”, the next ball feed solenoid stops as shown by a broken line. Immediately thereafter, when the number of game balls increases to “10” due to a prize ball or the like, the ball number control unit 600 immediately drives the ball feed solenoid 812. When the driving condition of the firing solenoid 814 includes “the number of game balls is present”, the firing solenoid 814 is driven after 600 ms from the restart of the ball feeding solenoid 812, and then the next ball feeding solenoid 812. Drive. Therefore, in this case, the interval t2 from the ball feed solenoid 812 to the next ball feed solenoid 812 after the number of game balls has increased may be 600 ms or more.

図47(a)は、球発射ハンドル134のタッチセンサ806が検出された直後のタイミングチャートである。球数制御部600がタッチセンサ806のオンを検出すると、球送りソレノイド812を駆動する。これにより機内球710は発射レール624に搬送されるが、球数制御部600はタッチセンサ806の検出から600ms後に発射ソレノイド814を駆動する。   FIG. 47A is a timing chart immediately after the touch sensor 806 of the ball launching handle 134 is detected. When the ball number controller 600 detects that the touch sensor 806 is turned on, the ball feed solenoid 812 is driven. As a result, the in-flight ball 710 is conveyed to the firing rail 624, but the ball number control unit 600 drives the firing solenoid 814 600 ms after the detection by the touch sensor 806.

図47(b)は図44に示した、球送り制御処理にて球送りの最短間隔を600msに管理する場合のタイミングチャートの一例である。球送りソレノイド812は、600ms間隔で駆動され、球送りが行われる。一方で発射ソレノイド814は球送りソレノイド812の駆動を契機として(球送りフラグがオンの場合に)球数制御部600が駆動するので、球送りソレノイド812の駆動後、比較的短い時間t3の経過後に駆動する場合がある。遊技球数が「0」になると球数制御部600はいずれの駆動も停止する。   FIG. 47B is an example of a timing chart shown in FIG. 44 when the shortest interval of ball feeding is managed to 600 ms in the ball feeding control process. The ball feed solenoid 812 is driven at 600 ms intervals to perform ball feed. On the other hand, since the firing solenoid 814 is driven by the ball number solenoid 600 when the ball feed solenoid 812 is driven (when the ball feed flag is on), a relatively short time t3 has elapsed after the ball feed solenoid 812 is driven. May be driven later. When the number of game balls reaches “0”, the ball number control unit 600 stops any driving.

図47(c)は、図45に示す球送りおよび発射制御処理のタイムチャートの一例である。この場合、球送りソレノイド812は600ms間隔で駆動し、発射ソレノイド814は、球送りソレノイド812の駆動後、300ms経過すると駆動する。球送りソレノイド812の駆動間隔および発射ソレノイド814の駆動間隔はいずれも、600msである。遊技球数が「0」になると球数制御部600はいずれの駆動も停止する。   FIG. 47C is an example of a time chart of the ball feeding and firing control process shown in FIG. In this case, the ball feed solenoid 812 is driven at intervals of 600 ms, and the firing solenoid 814 is driven when 300 ms elapses after the ball feed solenoid 812 is driven. The driving interval of the ball feed solenoid 812 and the driving interval of the firing solenoid 814 are both 600 ms. When the number of game balls reaches “0”, the ball number control unit 600 stops any driving.

図48は発射制御処理の他の形態を示すタイムチャートである。遊技球数が「0」になり、球送りソレノイド812の駆動を停止した場合であっても、球数制御部600は、発射ソレノイド814の駆動を継続してもよい。球送りソレノイド812が停止し、球送りがされなければ、発射ソレノイド814が駆動していても遊技球数の増減に影響は及ばない。
<遊技媒体経路の変形例>
FIG. 48 is a time chart showing another form of the firing control process. Even when the number of game balls becomes “0” and the driving of the ball feed solenoid 812 is stopped, the ball number control unit 600 may continue to drive the firing solenoid 814. If the ball feeding solenoid 812 is stopped and the ball feeding is not performed, the increase or decrease in the number of game balls is not affected even if the firing solenoid 814 is driven.
<Modification of game media path>

図49から図51を参照して、他の形態の遊技媒体経路610Aについて説明する。   With reference to FIGS. 49 to 51, another form of the game medium path 610A will be described.

図49は、遊技領域124の正面図であって、図7に示すものと同一構成要素は同一符号で示し、その説明は省略する。なお、この場合も減算センサ604Zは球送り装置616から発射装置622に送り出された機内球710を検出する。   49 is a front view of the game area 124, and the same components as those shown in FIG. 7 are denoted by the same reference numerals, and the description thereof is omitted. In this case as well, the subtraction sensor 604Z detects the in-flight ball 710 sent from the ball feeder 616 to the launcher 622.

遊技媒体経路610Aは、球磨き装置612と、揚上装置614と、球送り装置616を有し、例えば揚上装置614と球送り装置616の間に機内球710の貯留部830を有する。貯留部830は例えば、第1貯留部832と第2貯留部834を含み、第1貯留部832には揚上装置614から排出された機内球710が一時的に貯留される。第2貯留部834は、第1貯留部832に貯留された機内球710の一部または全部が貯留される。第2貯留部834の機内球710の数量は、遊技球数の一部または全部に相当する量である。第2貯留部834に貯留された機内球710は球送り装置616で発射レール624に搬送される。   The game medium path 610 </ b> A includes a ball polishing device 612, a lifting device 614, and a ball feeding device 616, for example, a storage unit 830 for an in-flight ball 710 between the lifting device 614 and the ball feeding device 616. The storage unit 830 includes, for example, a first storage unit 832 and a second storage unit 834, and the inboard ball 710 discharged from the lifting device 614 is temporarily stored in the first storage unit 832. In the second storage unit 834, a part or all of the in-flight sphere 710 stored in the first storage unit 832 is stored. The number of in-flight balls 710 in the second storage unit 834 is an amount corresponding to a part or all of the number of game balls. The in-flight ball 710 stored in the second storage unit 834 is conveyed to the firing rail 624 by the ball feeder 616.

具体的に説明すると、一例として第2貯留部834には最大で100個(最大貯留数)の機内球710が貯留できる。第1貯留部832には例えば、機内球710の全てが貯留可能である。遊技球数が100個以上(例えば2000個)の場合、第1貯留部832から第2貯留部834に100個の機内球710が送られる。1個の機内球710が打ち出されると第2貯留部834の貯留数は99個になり、減算センサ604Zで通過が検出されると、遊技球数から1個が減算され、遊技球数は1999個になる。遊技球数が第2貯留部834の最大貯留数(100個)より多く、且つ第2貯留部834の貯留数(99個)が最大貯留数(100個)より少ないので、第1貯留部832から1個が第2貯留部834に送られ、第2貯留部834の貯留数は100個となる。一方、遊技球数が第2貯留部834の貯留数(100個)より少なくなった場合には、機内球710を発射した場合でも第1貯留部832から第2貯留部834に機内球710を送らない。このように、することで、遊技球数の増減を、実際に循環する機内球710で管理できる。   More specifically, as an example, the second storage unit 834 can store up to 100 (maximum storage number) in-flight balls 710. For example, all of the in-flight balls 710 can be stored in the first storage unit 832. When the number of game balls is 100 or more (for example, 2000), 100 in-flight balls 710 are sent from the first storage unit 832 to the second storage unit 834. When one in-flight ball 710 is launched, the number of stored in the second storage unit 834 is 99, and when passage is detected by the subtraction sensor 604Z, one is subtracted from the number of gaming balls, and the number of gaming balls is 1999. Become a piece. Since the number of game balls is greater than the maximum storage number (100) of the second storage unit 834 and the number of storages (99) of the second storage unit 834 is less than the maximum storage number (100), the first storage unit 832 Is sent to the second reservoir 834, and the number of reservoirs in the second reservoir 834 is 100. On the other hand, when the number of game balls is less than the number of storages (100) in the second storage unit 834, even when the in-flight ball 710 is fired, the in-flight ball 710 is transferred from the first storage unit 832 to the second storage unit 834. do not send. In this way, the increase or decrease of the number of game balls can be managed by the in-flight ball 710 that actually circulates.

このような構成の場合には、球送りソレノイド812および発射ソレノイド814は、遊技球数によらず駆動することができる。封入式のパチンコ機100では電子情報上の遊技球数が無い場合に、機内球710としては循環可能であることから、遊技球数が無い場合に球送りソレノイド812および発射ソレノイド814が駆動する場合が問題となる。   In such a configuration, the ball feed solenoid 812 and the firing solenoid 814 can be driven regardless of the number of game balls. In the case of the enclosed pachinko machine 100, when there is no game ball number on the electronic information, the in-flight ball 710 can be circulated, so that the ball feed solenoid 812 and the launch solenoid 814 are driven when there is no game ball number. Is a problem.

このような構成によれば、遊技球数が無い場合いは、貯留部830に機内球710が貯留されないため、このような問題が生じない。
According to such a configuration, when there is no game ball number, the in-flight ball 710 is not stored in the storage unit 830, and thus such a problem does not occur.

図50を参照して、図49に示した遊技媒体経路610の貯留部830における貯留球数管理処理について説明する。図50は、貯留球数管理処理の流れを示すフローチャートの一例である。   With reference to FIG. 50, the stored ball number management process in the storage unit 830 of the game medium path 610 shown in FIG. 49 will be described. FIG. 50 is an example of a flowchart showing the flow of the stored ball count management process.

ステップS3001では、機内球710の減算センサ604通過の有無を判定する。減算センサ604Zを通過したと判定された場合にはステップS3003に進み、そうでない場合は処理を終了する。   In step S3001, it is determined whether or not the in-flight ball 710 has passed through the subtraction sensor 604. If it is determined that it has passed through the subtraction sensor 604Z, the process proceeds to step S3003, and if not, the process ends.

ステップS3003では、機内球710の通過により遊技球数が消費したとして遊技球数から「1」を減じる。   In step S3003, “1” is subtracted from the number of game balls, assuming that the number of game balls consumed by passing the in-flight ball 710.

ステップS3005では遊技球数と、第2貯留部834の最大貯留数(例えば、100個)を比較する。遊技球数が最大貯留数より大きい場合は、ステップS3007に進み、そうでない場合は処理を終了する。   In step S3005, the number of game balls is compared with the maximum number (for example, 100) of the second storage unit 834. If the number of game balls is larger than the maximum stored number, the process proceeds to step S3007, and if not, the process ends.

ステップS3007では、第2貯留部834貯留数と最大貯留数を比較する。貯留すが最大貯留数より少ないときはステップS3009に進み、そうでない場合は処理を終了する。   In step S3007, the second storage unit 834 storage number is compared with the maximum storage number. If it is stored but less than the maximum storage number, the process proceeds to step S3009, and if not, the process ends.

ステップS3009では、最大貯留可能量から発射球数を減算し、差分を第1貯留部832から第2貯留部834に送る。   In step S3009, the number of shot balls is subtracted from the maximum storable amount, and the difference is sent from the first storage unit 832 to the second storage unit 834.

ステップS3011では、発射球数を初期化(クリア)する。   In step S3011, the number of shot balls is initialized (cleared).

なおこのフローチャートは、貯留部830における貯留数の管理の主要な処理を抜粋して説明するものであり、この処理を実行するタイミングによっては、図示する処理の順に行われなくてもよい。当該処理は、遊技球数の更新時に合わせて実行される。例えば定期的な割り込み処理で実行される遊技球数設定処理や、シリアルコマンド管理処理、あるいは貸球ボタン144が再プレイボタン146が操作された場合にも同様の処理を行うことができる。また例えば、発射球数は例えば上述のイン球数を利用することもできるが、初期化等のタイミングを考慮し、適切に更新されるような処理の流れを選択する。   In addition, this flowchart extracts and demonstrates the main processes of management of the storage number in the storage part 830, and may not be performed in order of the process shown in figure depending on the timing which performs this process. This processing is executed at the time of updating the number of game balls. For example, the same processing can be performed when the number of game balls is set by periodic interruption processing, serial command management processing, or when the replay button 146 is operated for the lending button 144. Further, for example, the above-mentioned number of in-balls can be used as the number of shot balls, but a processing flow that is appropriately updated is selected in consideration of the timing of initialization or the like.

図51は、遊技媒体経路610の変形例における、球送りソレノイド812と発射ソレノイド814のタイミングチャートであり、遊技球数も併記した。   FIG. 51 is a timing chart of the ball feeding solenoid 812 and the firing solenoid 814 in the modified example of the game medium path 610, and the number of game balls is also shown.

球数制御部600は、球送りソレノイド812を例えば、600ms間隔で駆動し、球送りソレノイド812の駆動後所定時間が経過した後、発射ソレノイド814を駆動する。例えば、3回目の発射ソレノイド814の駆動で遊技球数が「0」になった場合には、第2貯留部834に貯留される機内球710も0個になる。したがって、この場合には球送りソレノイド812および発射ソレノイド814が駆動を続けていたとしても、機内球710が遊技領域124に打ち出されることはない。   The ball number control unit 600 drives the ball feed solenoid 812 at, for example, 600 ms intervals, and drives the firing solenoid 814 after a predetermined time has elapsed after the ball feed solenoid 812 is driven. For example, when the number of game balls becomes “0” by driving the launch solenoid 814 for the third time, the number of in-flight balls 710 stored in the second storage unit 834 is also zero. Accordingly, in this case, even if the ball feed solenoid 812 and the firing solenoid 814 continue to drive, the in-flight ball 710 is not launched into the game area 124.

図52は、主制御部300および球数制御部600間の通信処理と、発射制御処理および球送り制御処理のタイミングの関係について説明するタイミングチャートである。   FIG. 52 is a timing chart for explaining the relationship between the communication process between the main control unit 300 and the ball number control unit 600 and the timing of the launch control process and the ball feed control process.

この図の主制御部300と球数制御部600のタイミングチャートは、図37(b)の再掲であり、遊技球数が「0」になった後、タイミングBで入賞受付があった状態を示している。例えば、発射ソレノイド814が、600ms間隔で駆動していた場合、次回の駆動がタイミングF(タイミングG、H、Cまたはこれらの間でも同様)の位置になる場合がある。タイミングGでは賞球数表示部690に遊技球数になるべき賞球数「10」が表示されているものの、遊技球数の更新(タイミングCからタイミングDの間に実行)が行われていないため、発射ソレノイド814の本来の駆動タイミングでは遊技球数が「0」のままである。このため、発射ソレノイド814(あるいは球送りソレノイド812)の駆動が制限される。あるいは、図49に示す第2貯留部834の貯留球数が0個であるため、発射ソレノイド814(あるいは球送りソレノイド812)が駆動していても、機内球710の発射が制限される。つまりこの場合、遊技者が球発射ハンドル134を操作しても機内球710が発射されず、タイミングD以降で機内球710が発射される。発射ソレノイド814の駆動(機内球710の発射)のタイミングとしては、最短の発射間隔である600ms(タイミングFの位置)よりも遅れ、発射間隔が長くなる。   The timing chart of the main control unit 300 and the number-of-balls control unit 600 in this figure is the same as that shown in FIG. 37 (b), and shows a state where a winning acceptance is received at the timing B after the number of game balls reaches “0”. Show. For example, when the firing solenoid 814 is driven at an interval of 600 ms, the next drive may be at the position of timing F (timing G, H, C or the same between them). At timing G, the number of winning balls “10” to be the number of gaming balls is displayed on the winning ball number display section 690, but the number of gaming balls is not updated (executed between timing C and timing D). Therefore, the number of game balls remains “0” at the original drive timing of the firing solenoid 814. For this reason, the driving of the firing solenoid 814 (or the ball feed solenoid 812) is limited. Alternatively, since the number of stored balls in the second storage unit 834 shown in FIG. 49 is zero, even when the firing solenoid 814 (or the ball feed solenoid 812) is driven, the firing of the in-flight ball 710 is restricted. That is, in this case, even if the player operates the ball launch handle 134, the in-flight ball 710 is not launched, and the in-flight ball 710 is launched after the timing D. The timing of driving the firing solenoid 814 (launching the in-flight ball 710) is delayed from 600 ms (position of timing F) which is the shortest firing interval, and the firing interval becomes longer.

このように、遊技球数が少ない場合に(「0」の場合にに入賞すると通信のタイムラグにより直ちにデータが更新されない場合があり、発射間隔が一定でなくなる。つまり、遊技球数が少なくなった場合には、機内球710を最短間隔で発射するように球発射ハンドル134を連続して操作しても、機内球710の発射のタイミングが一定でなくなり、最短の発射間隔より長くすることができる。この発射間隔は、遊技球数が少なくなるほど徐々に長くなるため、遊技者が例えば、球数表示部640を注視していなくても、遊技者に遊技球数が少なくなっていることを認識させることが可能になる。またそれにより遊技球数がなくなる前に、貸球や再プレイを行い、遊技球数を補充することが可能になるため、遊技の継続意欲を促進させ、長時間遊技を楽しむことができる。また、遊技店側においては遊技台の稼動を上げることができる。   In this way, when the number of game balls is small (when winning in the case of “0”, data may not be updated immediately due to a communication time lag, and the firing interval becomes non-constant. That is, the number of game balls has decreased. In some cases, even if the ball launch handle 134 is continuously operated so that the in-flight ball 710 is fired at the shortest interval, the timing of the in-flight ball 710 firing is not constant and can be longer than the shortest launch interval. Since the firing interval gradually increases as the number of game balls decreases, the player recognizes that the number of game balls is decreasing even if the player does not watch the ball number display unit 640, for example. In addition, it will be possible to rent or replay and replenish the number of game balls before the number of game balls is exhausted. It is possible to enjoy during the game. In addition, in the gaming shop side can increase the operation of the gaming table.

以上、本実施形態では、主制御部300が通信処理の主導となるコマンド(例えば、第一の通信確認コマンドおよび賞球コマンド)を球数制御部600に送信する場合を例に説明した。しかしこれに限らず、球数制御部600が主導となるコマンド(例えば、第一の通信確認コマンドおよび、主制御部300に対し賞球コマンドの送信を要求するコマンド)を主制御部300に送信する構成であってもよい。   As described above, in the present embodiment, the case where the main control unit 300 transmits a command (for example, the first communication confirmation command and the winning ball command) that leads the communication process to the ball number control unit 600 has been described as an example. However, the present invention is not limited to this, and a command (for example, a first communication confirmation command and a command for requesting the main control unit 300 to transmit a prize ball command) led by the ball number control unit 600 is transmitted to the main control unit 300. It may be configured to.

また、本実施形態では主制御部300の1回の割込み処理につき、1つの賞球コマンドが送信される場合を例に説明した。しかしこの構成に限らず、主制御部300の1回の割込み処理につき、複数の賞球コマンドが送信される構成でもよいし、所定のグループ(入賞口ごと、あるいは同じ賞球数毎などのグループ)単位で送信する構成でもよいし、例えば255コマンドを超えない範囲で複数のコマンドをまとめて送信する構成であってもよい。   In the present embodiment, the case where one prize ball command is transmitted per interrupt process of the main control unit 300 has been described as an example. However, the present invention is not limited to this, and a configuration in which a plurality of prize ball commands are transmitted for one interrupt process of the main control unit 300, or a predetermined group (a group such as each prize opening or the same number of prize balls) is possible. ) May be configured to transmit in units, or may be configured to transmit a plurality of commands collectively within a range not exceeding 255 commands, for example.

また、主制御部300と球数制御部600のシリアルコマンド管理処理は、それぞれのタイマ割込み処理の一部で実行する場合を例に説明したが、主制御部300のシリアルコマンド管理処理は主制御部メイン処理で、球数制御部600のシリアルコマンド管理処理は球数制御部メイン処理でそれぞれ行ってもよい。   Further, the serial command management process of the main control unit 300 and the ball number control unit 600 has been described as an example in which each of the timer interrupt processes is executed, but the serial command management process of the main control unit 300 is the main control. In the main part process, the serial command management process of the ball number control unit 600 may be performed by the main process of the ball number control unit.

また、主制御部300と球数制御部600のシリアルコマンド管理処理以外の各種送信処理および出力処理についても、主制御部300と球数制御部600のそれぞれのメイン処理で行ってもよく、例えば、全ての送信および出力処理をメイン処理で行う構成、全ての送信および出力処理をそれぞれのタイマ割込み処理で行う構成、送信および出力処理の一部をメイン処理で行いそれ以外をタイマ割込み処理で行う構成などであってもよい。   Further, various transmission processes and output processes other than the serial command management process of the main control unit 300 and the ball number control unit 600 may be performed in the main processes of the main control unit 300 and the ball number control unit 600, for example, Configuration that performs all transmission and output processing by main processing, configuration that performs all transmission and output processing by respective timer interrupt processing, part of transmission and output processing by main processing, and other processing by timer interrupt processing It may be a configuration or the like.

また、主制御部300と第1副制御部400、主制御部300と第2副制御部500の通信はそれぞれシリアル通信でもよいしパラレル通信であってもよい。   The communication between the main control unit 300 and the first sub control unit 400, and the main control unit 300 and the second sub control unit 500 may be serial communication or parallel communication.

また、遊技球数の更新処理(遊技球数設定処理)は、球数制御部の割込み処理で行っているが、その実行タイミングは図示にて説明したものに限らない。例えば、タイマ割込み処理で行うタイミングによっては、賞球コマンド受信後同一の割込み処理で遊技球数を更新してもよいし、賞球コマンド受信後次の割込み処理で遊技球数を更新してもよい。   Further, the game ball number updating process (game ball number setting process) is performed by the interrupt process of the ball number control unit, but the execution timing is not limited to that illustrated in the figure. For example, depending on the timing of the timer interrupt process, the game ball number may be updated by the same interrupt process after receiving the prize ball command, or the game ball number may be updated by the next interrupt process after receiving the prize ball command. Good.

同様に各種フラグやステータス等の更新タイミングも図示したタイミングに限らない。   Similarly, the update timing of various flags and statuses is not limited to the illustrated timing.

また、主制御部300と球数制御部600間の通信確認コマンドの送信処理は、定期的に行っているが、賞球コマンドの送信前のみ送信するようにしてもよい。すなわち、賞球コマンド1送信につき、通信確認コマンド1送信としてもよい。また、通信確認コマンドを定期的に送受信する場合、球数制御部600では通信確認コマンドの送信タイミングでデバイス等の状態に関する情報を送信してもよい。賞球コマンドの送受信でこれらの情報を送受信すると、通信量が増大する可能性があるが、通信確認コマンドの送信タイミングであれば、通信量が増大しても影響を少なくできる。更に、主制御部300から球数制御部600に通信確認コマンドを送信する場合、合わせて賞球コマンドを送信する構成としてもよい。再送処理などを適切に行うことでこのような構成も可能となる。   Further, the communication confirmation command transmission process between the main control unit 300 and the ball number control unit 600 is periodically performed, but may be transmitted only before the prize ball command is transmitted. That is, the communication confirmation command 1 transmission may be performed for each prize ball command 1 transmission. In addition, when regularly transmitting and receiving a communication confirmation command, the ball number control unit 600 may transmit information on the state of the device or the like at the transmission timing of the communication confirmation command. If these pieces of information are transmitted / received by sending / receiving a prize ball command, the amount of communication may increase. However, if the communication confirmation command is transmitted, the influence can be reduced even if the amount of communication increases. Furthermore, when a communication confirmation command is transmitted from the main control unit 300 to the ball number control unit 600, a prize ball command may be transmitted together. Such a configuration is also possible by appropriately performing retransmission processing and the like.

また、入賞数記憶領域は、各球検出センサ320B毎のほか、例えば、第1特図始動口230と第2特図始動口232で共通の領域とするなど、賞球個数毎に設けてもよい。   Also, the winning number storage area may be provided for each number of winning balls, for example, a common area for the first special figure starting port 230 and the second special figure starting port 232 for each ball detection sensor 320B. Good.

また、第1特図始動口230と第2特図始動口232では、入賞による賞球数が例えば3個と1個等、異なってもよい。   Further, the first special figure starting port 230 and the second special figure starting port 232 may have different numbers of winning balls, for example, three and one.

また、球送り制御実行条件に、イン球数とアウト球数が不一致の場合を含めてもよい。   The ball feed control execution condition may include a case where the number of in-balls and the number of out-balls do not match.

また、球送りソレノイド812を駆動後、発射ソレノイド814の駆動前の期間では、球送りソレノイド812の駆動時点で発射ソレノイド814を吸引している。したがって、発射の停止を行う目的でハンドルボリュームを「0」にしても、機内球710が発射させることになり、発射の停止は不可能となる。
<電断・復電時の球数管理制御処理>
In addition, after the ball feed solenoid 812 is driven and before the firing solenoid 814 is driven, the firing solenoid 814 is attracted when the ball feed solenoid 812 is driven. Accordingly, even if the handle volume is set to “0” for the purpose of stopping the firing, the in-flight ball 710 is fired, and the firing cannot be stopped.
<Ball count control process during power interruption / power recovery>

次に、図53から図56を参照して、パチンコ機100の電断・復電時の球数管理制御処理について説明する。   Next, with reference to FIGS. 53 to 56, the ball number management control process at the time of power interruption / power recovery of the pachinko machine 100 will be described.

図53および図54は、パチンコ機100の電断・復電時の球数管理制御処理を説明する概要図である。既述の如くパチンコ機100は、投入検出センサ(減算センサ604Z)および、排出検出センサ(入賞検出センサ60Sおよび非入賞検出センサ604K)によってイン球数、アウト球数および、領域内球数を所定のタイミングで(例えば、球数制御部タイマ処理などで)更新、記憶し、これらの値の異常の有無を監視する球数管理制御を行っている。そして遊技中に電源の遮断(電断)状態になりその後復電した場合には、領域内球数が存在していてもイン球数、アウト球数および領域内球数を初期化する。   53 and 54 are schematic diagrams for explaining the ball number management control process when the pachinko machine 100 is disconnected or restored. As described above, the pachinko machine 100 determines the number of in-balls, the number of out-balls, and the number of balls in the area by the insertion detection sensor (subtraction sensor 604Z) and the discharge detection sensor (winning detection sensor 60S and non-winning detection sensor 604K). The number management control is performed to update and store at the timing (for example, by the number control unit timer process) and monitor the presence or absence of abnormality of these values. When the power supply is cut off (power cut off) during the game and power is restored thereafter, the number of in balls, the number of out balls, and the number of balls in the region are initialized even if the number of balls in the region exists.

具体的に説明すると、例えば図53(a)のように遊技中に領域内球数が3個存在している状態(例えば、領域内球数記憶領域に記憶された値が「+3」)で、停電などにより電断があると、その後の復電時(電断後の電源投入時)には、同図(b)の如く領域内球数記憶領域に記憶された値をクリアし(領域内球数記憶領域に「0」を記憶し)、新たに球数管理制御を開始する。   More specifically, for example, as shown in FIG. 53 (a), there are three balls in the area during the game (for example, the value stored in the ball number storage area is “+3”). If there is a power interruption due to a power failure or the like, the value stored in the in-sphere storage area as shown in FIG. “0” is stored in the inner ball number storage area), and ball number management control is newly started.

電断後の復電時にイン球数、アウト球数および領域内球数の情報がRAMのそれぞれの記憶領域に残っていると、パチンコ機100は、例えば新たに遊技を開始したにも関わらす、遊技領域124内に機内球710が残存したと判断し、エラーとして報知する場合がある。新たに遊技を開始した遊技者は適正な遊技が行えない上、不正を疑われる恐れもある。そこで本実施形態では、電断後の復電時には、例えば球数制御部メイン処理の初期化処理などで領域内球数記憶領域に記憶された値をクリアし、電断時のイン球数、アウト球数および領域内球数の情報によらず、新たに球数管理制御を開始する。これにより、遊技者は適正な遊技を行うことが可能となる。   If the information on the number of in-balls, out-balls, and in-area balls remains in the respective storage areas of the RAM at the time of power recovery after the power interruption, the pachinko machine 100 is associated with, for example, a new game being started. In some cases, it is determined that the in-flight ball 710 remains in the game area 124 and is notified as an error. A player who has newly started a game cannot play an appropriate game and may be suspected of fraud. Therefore, in the present embodiment, at the time of power recovery after the power interruption, for example, the value stored in the in-region ball number storage area in the initialization process of the ball number control unit main process or the like is cleared, and the number of in balls at the time of power interruption, Regardless of the information on the number of out balls and the number of balls in the area, the ball number management control is newly started. As a result, the player can play an appropriate game.

一方で、電断前に領域内球数に異常が生じていた場合は、その異常の情報(エラー情報)の記憶領域は初期化せず、復電時まで維持する。   On the other hand, if there is an abnormality in the number of balls in the area before power interruption, the storage area for the abnormality information (error information) is not initialized and is maintained until power is restored.

図54を参照して具体的に説明する。例えば図54(a)のように遊技中に、領域内球数記憶領域の領域内球数(例えば20個)が異常判定条件を超えて異常と判定され、領域内球数エラーフラグにオン(または異常を示す例えば「1」)が設定された状態で電源が遮断すると、復電時には、球数制御部600は、領域内球数記憶領域、イン球数記憶領域およびアウト球数記憶領域に記憶された値をクリアする一方で、領域内球数エラーフラグの値は、復電時にクリアせずその情報を維持し(同図(b))、新たに前記数量管理処理を行う。   This will be specifically described with reference to FIG. For example, as shown in FIG. 54A, during a game, the number of in-region balls (for example, 20) in the in-region ball number storage area is determined to be abnormal and exceeds the abnormality determination condition, and the in-region ball number error flag is turned on ( Or, when the power is cut off in a state where “1” indicating an abnormality is set, at the time of power recovery, the ball number control unit 600 stores the ball number storage area, the ball number storage area, and the ball number storage area in the area. While the stored value is cleared, the value of the in-region ball number error flag is not cleared at the time of power recovery, and the information is maintained ((b) in the figure), and the quantity management process is newly performed.

このようにすることで、異常が発生したという情報は電断・復電後も維持されるので、例えば復電後に外部装置などに異常状態を送信したり、異常を報知することが可能となる。
<電源制御部>
In this way, information that an abnormality has occurred is maintained even after power interruption / recovery, so it is possible to transmit an abnormal state to an external device or the like after power recovery or to notify the abnormality, for example. .
<Power control unit>

図55を参照して、パチンコ機100の電源制御部660について説明する。図55は電源制御部660およびこれに接続する制御部のブロック図である。なお、以下の説明において、DCは直流、ACは交流、VBBはバッテリバックアップされた電圧であることを表す。   The power supply control unit 660 of the pachinko machine 100 will be described with reference to FIG. FIG. 55 is a block diagram of the power supply control unit 660 and the control unit connected thereto. In the following description, DC represents direct current, AC represents alternating current, and VBB represents a battery backed up voltage.

電源制御部660は、パチンコ機100に外部から供給されるAC100Vの電源を直流に変換し、球数制御部600および第1副制御部400に供給する。球数制御部600は主制御部300および夜間監視スイッチ692に電源を供給し、第1副制御部400は第2副制御部500に電源を供給する。   The power supply control unit 660 converts AC100V power supplied from the outside to the pachinko machine 100 into direct current, and supplies the direct current to the ball number control unit 600 and the first sub-control unit 400. The ball number control unit 600 supplies power to the main control unit 300 and the night monitoring switch 692, and the first sub control unit 400 supplies power to the second sub control unit 500.

電源制御部660は、第1の整流・平滑回路(整流回路1・平滑回路1)660Aと、第1の+24V生成回路(+24V生成回路1)660Bと、第1の+12V生成回路(+12V生成回路1)660Cと、第1の+5V生成回路(+5V生成回路1)660Dと、第1の電源遮断検出回路(電源遮断検出回路1)660Eと、第2の電源遮断検出回路(電源遮断検出回路2)660Fと、RAMクリアスイッチ回路660Gと、第1のバックアップ電源生成回路(バックアップ電源生成回路1)660Hと、第2のバックアップ電源生成回路(バックアップ電源生成回路2)660Iと、第3のバックアップ電源生成回路(バックアップ電源生成回路3)660Jと、第2の整流回路および平滑回路(整流回路2・平滑回路2)660Kと、第2の+24V生成回路(+24V生成回路2)660Lと、第2の+12V生成回路(+12V生成回路2)660Mと、第2の+5V生成回路(+5V生成回路2)660Nとを有する。   The power supply control unit 660 includes a first rectifying / smoothing circuit (rectifying circuit 1 / smoothing circuit 1) 660A, a first + 24V generating circuit (+ 24V generating circuit 1) 660B, and a first + 12V generating circuit (+ 12V generating circuit). 1) 660C, first + 5V generation circuit (+ 5V generation circuit 1) 660D, first power cutoff detection circuit (power cutoff detection circuit 1) 660E, and second power cutoff detection circuit (power cutoff detection circuit 2) ) 660F, a RAM clear switch circuit 660G, a first backup power supply generation circuit (backup power supply generation circuit 1) 660H, a second backup power supply generation circuit (backup power supply generation circuit 2) 660I, and a third backup power supply Generation circuit (backup power supply generation circuit 3) 660J, second rectifier circuit and smoothing circuit (rectifier circuit 2 / smoothing circuit 2) 660 When, a second + 24V generating circuit (+ 24V generating circuit 2) 660 L, a second + 12V generating circuit (+ 12V generating circuit 2) 660M, a second + 5V generation circuit (+ 5V generating circuit 2) 660N.

電源制御部600は、パチンコ機100に外部から供給される単相交流100Vから整流平滑した電源をスイッチング方式で第1の電源系統(DC24V−1、DC12V−1、DC5V−1)として生成する。また、単相交流100Vから上記とは異なる整流平滑した電源を用いてスイッチング方式で第2の電源系統(DC24V−2、DC12V−2、DC5V−2)として生成する。   The power supply control unit 600 generates a power supply rectified and smoothed from a single-phase AC 100V supplied from the outside to the pachinko machine 100 as a first power supply system (DC24V-1, DC12V-1, DC5V-1) by a switching method. Moreover, it produces | generates as a 2nd power supply system (DC24V-2, DC12V-2, DC5V-2) from the single phase alternating current 100V by the switching system using the power supply by the rectification smoothing different from the above.

球数制御部600における電源・信号使用用途は以下の通りである。DC24V−1は研磨モータ用電源として、DC12V−1は各種センサ604用電源、揚上モータ用電源、発射ソレノイド用電源および球送りソレノイド用電源として、DC5V−1はIC電源として、VBB−2はRAMバックアップ用電源として、電源遮断1は電源遮断検出用信号として、RAMクリアはRAMクリアスイッチ用信号として用いられる。   The uses of power and signals in the ball number control unit 600 are as follows. DC24V-1 is a polishing motor power supply, DC12V-1 is a power supply for various sensors 604, a lifting motor power supply, a launch solenoid power supply and a ball feed solenoid power supply, DC5V-1 is an IC power supply, and VBB-2 is As a RAM backup power source, the power shutdown 1 is used as a power shutdown detection signal, and the RAM clear is used as a RAM clear switch signal.

主制御部300における電源・信号使用用途は以下の通りである。DC24V−1は各種モータおよびソレノイド用電源として、DC12V−1は各種センサ、モータ及びソレノイド用電源として、DC5V−1はIC電源として、VBB−1はRAMバックアップ用電源として、電源遮断2は電源遮断検出用信号として、RAMクリアはRAMクリアスイッチ用信号として用いられる。また夜間監視スイッチ692では、VBB−3がバックアップ電源として用いられる。   The uses of power and signals in the main control unit 300 are as follows. DC24V-1 is a power supply for various motors and solenoids, DC12V-1 is a power supply for various sensors, motors and solenoids, DC5V-1 is an IC power supply, VBB-1 is a power supply for RAM backup, and power shutoff 2 is a power shutoff As a detection signal, RAM clear is used as a RAM clear switch signal. In the night monitoring switch 692, VBB-3 is used as a backup power source.

第2副制御部500における電源・信号使用用途は以下の通りである。DC24V−2は電飾、モータ用及び損他電源生成用電源として、DC12V−1は電飾、モータ用及び損他電源生成用電源として、DC5V−2は、IC電源用、その他電源生成用電源として用いられる。
<バックアップ電源の動作原理>
The uses of power and signals in the second sub-control unit 500 are as follows. DC24V-2 is used as a power source for generating illumination, motors and other power sources, DC12V-1 is used as a power source for generating electrical devices, motors and other power sources, and DC5V-2 is used as a power source for IC power sources and other power sources. Used as
<Operation principle of backup power supply>

バックアップ電源の動作原理は、以下の通りである。主制御部300および球数制御部600は、電断・復電時(例えば停電復旧時など)に遊技状態の復旧を行うため電断発生時の遊技状態を電源遮断処理によりRAMに記憶し、バックアップ電源によりRAMの内容を保持する。   The operation principle of the backup power supply is as follows. The main control unit 300 and the ball number control unit 600 store the gaming state at the time of power interruption in the RAM by power-off processing in order to restore the gaming state at the time of power interruption / power recovery (for example, at the time of power failure recovery) The contents of RAM are held by a backup power source.

パチンコ機100のバックアップ機能の構成として、図示は省略するがバックアップ電源部、電源監視回路、RAMクリアスイッチを備えており、5Vからバックアップ電源を3系統生成し、球数制御部600、主制御部300および夜間監視スイッチ692に出力する。また、電源を監視し、電源遮断時に電源遮断信号を2系統生成し、球数制御部600および主制御部300に出力する。   The backup function configuration of the pachinko machine 100 is provided with a backup power supply unit, a power supply monitoring circuit, and a RAM clear switch (not shown). Three backup power supplies are generated from 5 V, and the ball number control unit 600 and the main control unit are provided. 300 and the night monitoring switch 692. In addition, the power supply is monitored, and two power-off signals are generated at the time of power-off and are output to the ball number control unit 600 and the main control unit 300.

バックアップしたRAMのデータを初期化する機能のためにRAMクリアスイッチを搭載しており、球数制御部600および主制御部300に出力する。生成した電源・信号は球数制御部600に供給を行い、主制御部300へは球数制御部600経由で電源・信号の供給を行う。   A RAM clear switch is mounted for the function of initializing the backed-up RAM data, and is output to the ball number control unit 600 and the main control unit 300. The generated power source / signal is supplied to the ball number control unit 600, and the power source / signal is supplied to the main control unit 300 via the ball number control unit 600.

主制御部300のバックアップを行う項目は例えば、大当たり状態(ラウンド回数も含む)、高確率・時短状態、保留メモリ(特別図柄、普通図柄)の乱数値、エラー状態、未送信コマンド、可動部材(普通電動役物、第1種特別電動役物)の動作状態などである。また球数制御部600のバックアップ項目は例えば、遊技球数、エラー状態、未送信コマンド、遊技情報、遊技台情報、(IC)カード情報などである。遊技台情報は例えば、主制御部300のCPU304の固有ID、球数制御部600のCPUの固有ID、遊技台のメーカーコード、セキュリティチップメーカーコード、遊技台の形式コード、流通コードなどである。またカード情報は、カードIDなどである。   Items to be backed up by the main control unit 300 include, for example, a jackpot state (including the number of rounds), a high probability / short time state, a random number value of a reserved memory (special symbol, normal symbol), an error state, an unsent command, a movable member ( The operation state of the ordinary electric accessory and the first type special electric accessory). The backup items of the ball number control unit 600 include, for example, the number of game balls, an error state, an unsent command, game information, game table information, (IC) card information, and the like. The gaming table information includes, for example, the unique ID of the CPU 304 of the main control unit 300, the unique ID of the CPU of the ball number control unit 600, the manufacturer code of the gaming table, the security chip manufacturer code, the format code of the gaming table, and the distribution code. The card information is a card ID or the like.

図56は、電源遮断処理においてRAMに設けた各記憶領域に記憶される項目の一例を示す概要図である。   FIG. 56 is a schematic diagram illustrating an example of items stored in each storage area provided in the RAM in the power shutdown process.

各記憶領域には、小さいアドレス番地(7F00H)から順に例えば、遊技球数(遊技球数記憶領域の値)、貸球数(貸球数記憶領域の値)、賞球数(賞球数記憶領域の値)、領域内球数異常状態(領域内球数エラーフラグの値)、電断時内枠開放回数(後述する)、電断時ガラス枠開放回数(後述する)、未送信コマンド、遊技台情報、カード情報、RWMチェックサム値、プログラム起動状態フラグ、電源状態情報、領域内球数(領域内球数記憶領域の値)などが格納される。以下これらの領域を、バックアップ領域と称する場合がある。   In each storage area, for example, in order from the smallest address (7F00H), for example, the number of game balls (value of the game ball number storage area), the number of rented balls (value of the rented ball number storage area), the number of prize balls (the number of prize balls stored) Area value), in-area ball number abnormal state (in-area ball number error flag value), number of times of inner frame opening during power interruption (described later), number of times of glass frame opening during power interruption (described later), unsent command, The game table information, the card information, the RWM checksum value, the program activation state flag, the power supply state information, the number of balls in the area (value of the number of balls in the area) are stored. Hereinafter, these areas may be referred to as backup areas.

そして、電断検出をしていない初期化処理(例えば、図12のステップS113、図16のステップS1011)ではこれらの記憶領域の全てを初期化(クリア)し、復帰起動時の復電時処理(図12のステップS111、図16のステップS1009)ではこれらのうち一部のみを初期化(クリア)する。つまり、所定のアドレス番地から所定のアドレス番地までの記憶領域で構成される第1の領域と、それ以降のアドレス番地で構成される第2の領域があり、初期化処理では第1の領域と第2の領域がクリアされ、復電時処理では後半の第2の領域のみがクリアされる。   In the initialization process in which the power interruption is not detected (for example, step S113 in FIG. 12 and step S1011 in FIG. 16), all of these storage areas are initialized (cleared), and the process at the time of power recovery at the time of return activation is performed. In step S111 in FIG. 12 and step S1009 in FIG. 16, only some of them are initialized (cleared). That is, there is a first area composed of storage areas from a predetermined address address to a predetermined address address, and a second area composed of address addresses after that. In the initialization process, the first area and The second area is cleared, and in the power recovery process, only the second area in the latter half is cleared.

本実施形態では、領域内球数異常状態(領域内球数エラーフラグの値)は、第1の領域の記憶領域に格納され、領域内球数(領域内球数記憶領域の値)は、第2の領域の記憶領域に格納される。これにより、電断後の復電時には、球数制御部600は、領域内球数記憶領域に記憶された値をクリアする一方で、領域内球数エラーフラグの値は復電時にクリアせずその情報を維持し、報知することができる。   In the present embodiment, the in-region ball number abnormal state (the value of the in-region ball number error flag) is stored in the storage region of the first region, and the in-region ball number (the value of the in-region ball number storage region) is It is stored in the storage area of the second area. Thereby, at the time of power recovery after power interruption, the ball number control unit 600 clears the value stored in the in-region ball number storage area, while the value of the in-region ball number error flag is not cleared at the time of power recovery. The information can be maintained and notified.

また、第1の領域は、復帰起動時にクリアされないので、復帰条件が成立した場合(復電時処理)にRAMの所定の領域に設定される。すなわちバックアップ領域の遊技可能球数、貸球数、賞球数は、それぞれ復電時にRAMの遊技球数記憶領域、貸球数記憶領域、賞球数記憶領域に設定される。   Further, since the first area is not cleared at the time of recovery start, it is set in a predetermined area of the RAM when the recovery condition is satisfied (power recovery process). That is, the number of playable balls, the number of rented balls, and the number of prize balls in the backup area are set in the game ball number storage area, the number of rented balls storage area, and the number of prize balls stored in the RAM at the time of power recovery.

なお、領域内球数異常状態のバックアップ領域にはその他のエラー状態を記憶してもよい。また、イン球数(イン球数記憶領域の値)、アウト球数(アウト球数記憶領域の値)が第2の領域にバックアップされてもよい。   In addition, you may memorize | store another error state in the backup area | region of an in-area ball number abnormal state. Further, the in-ball number (value of the in-ball number storage area) and the out-ball number (value of the out-ball number storage area) may be backed up in the second area.

このように球数制御部600は、各種のエラーの監視や報知などのエラー管理処理、およびこれに伴う各種処理を行う。以下これについて説明する。
<エラー管理処理>
In this way, the ball number control unit 600 performs error management processing such as monitoring and notification of various errors, and various processing associated therewith. This will be described below.
<Error management processing>

図57から図61を参照して、主に球数制御部600で行うエラー管理処理について説明する。図57から図61は、球数制御部600で行う処理の流れを説明するフローチャートであるが、ここでは主に、エラー管理処理の主要な流れについて説明する。なお、図57から図61のフローチャートでは、主制御部300から球数制御部600に通信確認コマンドを送信する処理(上述のシリアルコマンド管理処理)を球数制御部メイン処理で行う場合を例に示しており、その点では球数制御部タイマ割込み処理でシリアルコマンド管理処理を行う既述の球数制御部600(図16、図17、図35参照)の他の形態ということができる。   With reference to FIGS. 57 to 61, an error management process mainly performed by the ball number control unit 600 will be described. 57 to 61 are flowcharts for explaining the flow of processing performed by the ball number control unit 600. Here, the main flow of error management processing will be mainly described. In the flowcharts of FIG. 57 to FIG. 61, the case where the process of transmitting a communication confirmation command from the main control unit 300 to the ball number control unit 600 (the above-described serial command management process) is performed in the ball number control unit main process is taken as an example. In this respect, it can be said that this is another form of the above-mentioned ball number control unit 600 (see FIGS. 16, 17, and 35) that performs serial command management processing by the ball number control unit timer interrupt processing.

図57は、球数制御部600のCPUが実行する処理について説明する図であり、同図(a)は、球数制御部600のメイン処理の流れを示すフローチャートであり、同図(b)は、球数制御部600のコマンド受信割込みのフローチャートである。なお、図16のフローチャートを参照して既に説明した処理(ステップ)と同様の処理については、詳細な説明を省略する。   FIG. 57 is a diagram for explaining the processing executed by the CPU of the ball number control unit 600. FIG. 57 (a) is a flowchart showing the flow of the main processing of the ball number control unit 600, and FIG. These are the flowcharts of command reception interruption of the ball number control part 600. FIG. Note that detailed description of the same processing (step) as already described with reference to the flowchart of FIG. 16 is omitted.

ステップS3101〜ステップS3113は、図16のステップS1001〜ステップS1013と同様である。なお、ステップS3109の復電時処理では、ステップS311の初期化処理よりも電源遮断処理において記憶される各種情報の記憶領域を少ない範囲で(第2の領域の記憶領域のみを)クリアする。   Steps S3101 to S3113 are the same as steps S1001 to S1013 in FIG. In the power recovery process in step S3109, the storage area for various information stored in the power shutdown process is cleared to a smaller extent (only the storage area in the second area) than in the initialization process in step S311.

ステップS3115は、主制御部300から入力したデータの中に未解析データがあるか無いかを判定し、未解析データがある場合にはステップS3117に進み、未解析データがない場合にはステップS3119に進む。ステップS3117ではコマンド解析処理を行う。これについては後に詳述する。   In step S3115, it is determined whether there is unanalyzed data in the data input from the main control unit 300. If there is unanalyzed data, the process proceeds to step S3117. If there is no unanalyzed data, step S3119 is performed. Proceed to In step S3117, command analysis processing is performed. This will be described in detail later.

ステップS3119では、未送信コマンドの有無を判定する。未送信コマンドがある場合は、ステップS3121に進み、そうでない場合は、ステップS3123に進む。   In step S3119, it is determined whether there is an untransmitted command. If there is an unsent command, the process proceeds to step S3121, and if not, the process proceeds to step S3123.

ステップS3121では、コマンド出力処理を行う。コマンド出力処理は、ステップS3117のコマンド解析処理で設定したコマンドを出力する。   In step S3121, command output processing is performed. In the command output process, the command set in the command analysis process in step S3117 is output.

ステップS3123〜ステップS3127は、図16のステップS1019〜ステップS1023と同様である。なおステップS3125の電断処理については、後に詳述する。   Steps S3123 to S3127 are the same as steps S1019 to S1023 in FIG. The power interruption process in step S3125 will be described in detail later.

同図(b)は、球数制御部600のコマンド受信割込みのフローチャートであり、図16(b)と同様である。ステップS3201では受信したコマンドを記憶する。
FIG. 6B is a flowchart of command reception interruption of the ball number control unit 600, which is the same as FIG. In step S3201, the received command is stored.

図58は、図57(a)のコマンド解析処理(ステップS3121)と、電断処理(ステップS3125)の処理の流れを説明するフローチャートである。   FIG. 58 is a flowchart for explaining the flow of the command analysis process (step S3121) and the power interruption process (step S3125) of FIG.

図58(a)を参照して、コマンド解析処理について説明する。   The command analysis process will be described with reference to FIG.

ステップS3301では賞球コマンドの受信の有無を判定し、受信している場合は、ステップS3303に進み、そうでない場合はステップS3305に進む。   In step S3301, it is determined whether or not a prize ball command is received. If received, the process proceeds to step S3303. If not, the process proceeds to step S3305.

ステップS3303では、賞球コマンド受信時の処理を行う。この処理では例えば、賞球数記憶領域の値を読出し、受信したコマンドの賞球数を加算して元の賞球数記憶領域に記憶する。また、遊技球数記憶領域の値に賞球数記憶領域の値を加算して賞球数記憶領域の値をクリアする。   In step S3303, processing upon receiving a prize ball command is performed. In this process, for example, the value of the prize ball number storage area is read, and the prize ball number of the received command is added and stored in the original prize ball number storage area. Also, the value of the prize ball number storage area is added to the value of the game ball number storage area to clear the value of the prize ball number storage area.

ステップS3305では、主制御部300からの通信確認コマンド(以下、主制御通信確認コマンド)を受信しているか否かを判定する。この主制御通信確認コマンドは、図28(d)に示した主制御部300のシリアルコマンド送信処理によって球数制御部600に送信されるものである。主制御通信確認コマンドを受信している場合は、ステップS3307に進み、そうでない場合は処理を終了する。   In step S3305, it is determined whether a communication confirmation command (hereinafter referred to as a main control communication confirmation command) from the main control unit 300 is received. This main control communication confirmation command is transmitted to the ball number control unit 600 by the serial command transmission process of the main control unit 300 shown in FIG. If the main control communication confirmation command has been received, the process proceeds to step S3307, and if not, the process ends.

ステップS3307では、受信した主制御通信確認コマンドが電源投入後最初の主制御通信確認コマンドであるか否かを判定する。最初の主制御通信確認コマンドである場合は、ステップS3309に進み、そうでない場合はステップS3313に進む。この主制御通信確認コマンドには、主制御部300が初期起動時であるか復帰起動時であるかの情報も含まれる。   In step S3307, it is determined whether or not the received main control communication confirmation command is the first main control communication confirmation command after power-on. If it is the first main control communication confirmation command, the process proceeds to step S3309; otherwise, the process proceeds to step S3313. The main control communication confirmation command also includes information on whether the main control unit 300 is at the initial start or the return start.

ステップS3309では、主制御通信確認コマンド受信済みフラグを設定する。当該フラグは例えばオン(または「1」)を設定した場合は受信済みを意味し、後の処理で当該フラグがオンの場合には、球数制御部タイマ割込み処理を実行する。   In step S3309, a main control communication confirmation command received flag is set. For example, when the flag is set to ON (or “1”), it means that it has been received, and when the flag is turned ON in a later process, the ball number control unit timer interrupt process is executed.

なお、主制御通信確認コマンドが、初期起動であることを示す情報を含み、且つ球数制御部600の起動方法が復帰起動である場合は、球数制御部600の起動方法を初期起動とし、RAMの記憶領域の所定領域を初期化してもよい。復帰起動の場合は、図56に示すバックアップ領域の一部(第2の領域)の記憶領域のみが初期化されるのであるが、主制御部300が初期起動状態を示し、且つ球数制御部600が復帰起動の場合には、全てのバックアップ領域(第1の領域と第2の領域)を初期化するものとしてもよい。   In addition, when the main control communication confirmation command includes information indicating the initial activation and the activation method of the ball number control unit 600 is the return activation, the activation method of the ball number control unit 600 is the initial activation, A predetermined area of the RAM storage area may be initialized. In the case of return activation, only a part of the storage area (second area) shown in FIG. 56 is initialized, but the main control unit 300 indicates the initial activation state and the ball number control unit When 600 is a recovery start, all the backup areas (the first area and the second area) may be initialized.

ステップS3311では、夜間枠開放エラーの有無を判定し、エラー情報をRAMのバックアップ領域に設定する。夜間枠開放エラーは以下のように判定する。内枠104を開放する毎に(内枠開放センサで開放が検出される度に)カウントされるカウンタIC(内枠開放カウンタ)を設け、内枠104の開放回数をカウントする。内枠104の開放回数は電源遮断時(夜間)でもカウンタICによってカウント可能とする。電断時に内枠開放カウンタの値をバックアップ領域の電断時内枠開放回数の記憶領域に格納する。最初の主制御通信確認コマンドを受信した場合に、バックアップ領域の電断時内枠開放回数と、内枠開放カウンタの値(現在の内枠開放回数)を比較し、不一致の場合は夜間枠開放エラーと判定するとともに、差分の回数をエラー情報としてRAMに記憶する。ガラス枠106の開放回数についても同様に、ガラス枠106を開放する毎にカウントされるカウンタIC(ガラス枠開放カウンタ)で開放回数をカウントし、電断時にガラス枠開放カウンタの値をバックアップ領域の電断時ガラス枠開放回数の記憶領域に格納して監視を行い、同様に判定する。   In step S3311, it is determined whether there is a nighttime frame opening error, and error information is set in the backup area of the RAM. The nighttime frame opening error is determined as follows. A counter IC (inner frame opening counter) is provided that counts every time the inner frame 104 is opened (every time the inner frame opening sensor detects opening), and counts the number of times the inner frame 104 is opened. The number of times the inner frame 104 is opened can be counted by the counter IC even when the power is cut off (at night). The value of the inner frame opening counter at the time of power interruption is stored in the storage area of the number of times of opening of the inner frame at power interruption in the backup area. When the first main control communication confirmation command is received, the number of times that the inner frame is released when the backup area is interrupted is compared with the value of the inner frame release counter (current number of times the inner frame is released). While determining as an error, the number of differences is stored in the RAM as error information. Similarly, regarding the number of times of opening the glass frame 106, the number of times of opening is counted by a counter IC (glass frame opening counter) that is counted every time the glass frame 106 is opened. It is stored in the storage area of the number of times of opening the glass frame at the time of power interruption, and monitoring is performed in the same manner.

ステップS3313では、主制御通信確認コマンド受信時の処理を行う。ここでは、主制御部300との通信エラー(主制御通信エラー)を監視するタイマエリア(主制御監視タイマ)に初期値(例えば「500」)を設定する(図35(b)参照)。   In step S3313, processing upon reception of the main control communication confirmation command is performed. Here, an initial value (for example, “500”) is set in a timer area (main control monitoring timer) for monitoring a communication error (main control communication error) with the main control unit 300 (see FIG. 35B).

図58(b)を参照して、電断処理について説明する。   The power interruption process will be described with reference to FIG.

ステップS3401では、割り込み禁止設定処理を行い、ステップS3403では、全出力ポートにクリアデータを出力し、ステップS3405では、サスペンド情報を設定する。   In step S3401, interrupt prohibition setting processing is performed. In step S3403, clear data is output to all output ports. In step S3405, suspend information is set.

ステップS3407では、内枠開放カウンタの値を電断時内枠開放回数のバックアップ領域に格納する。   In step S3407, the value of the inner frame opening counter is stored in the backup area of the number of times of opening of the inner frame at the time of power interruption.

ステップS3409では、ガラス枠開放カウンタの値を電断時ガラス枠開放回数のバックアップ領域に格納する。   In step S3409, the value of the glass frame opening counter is stored in the backup area of the number of times of opening the glass frame at power interruption.

ステップS3411ではチェックサムを算出する。例えば、RAMの所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出する。   In step S3411, a checksum is calculated. For example, the checksum is calculated by adding all 1-byte data stored in a predetermined area (for example, all areas) of the RAM to a 1-byte register whose initial value is 0.

ステップS3413ではRWMチェックサムエリアに算出結果を設定し、ステップS3415では、内蔵RAMアクセスの禁止設定を行う。
In step S3413, the calculation result is set in the RWM checksum area, and in step S3415, the built-in RAM access is prohibited.

図59を参照して、図57の球数制御部メイン処理を実行する場合の球数制御部割込み処理について説明する。同図は、図17に示す球数制御部割込み処理の他の形態のフローチャートであり、図17で説明した処理(ステップ)と同様の処理についてはその詳細な説明を省略する。   With reference to FIG. 59, the ball number control unit interrupt process when the ball number control unit main process of FIG. 57 is executed will be described. This figure is a flowchart of another form of the ball number control unit interrupt process shown in FIG. 17, and detailed description of the same processes (steps) as those described in FIG. 17 will be omitted.

ステップS3501では、レジスタ値を退避し、ステップS3503では、割り込みフラグをクリアし、ステップS3505では、WDTクリアおよびリスタートを行う。   In step S3501, the register value is saved, in step S3503, the interrupt flag is cleared, and in step S3505, WDT clear and restart are performed.

ステップS3507では、受信コマンドの処理を行う。この処理では、主制御部300からのコマンド受信(例えば、賞球コマンドの受信など)の有無を判定し、受信している場合は、受信したコマンドデータを受信コマンドバッファエリアに設定する。   In step S3507, a received command is processed. In this process, it is determined whether or not a command is received from the main control unit 300 (for example, a prize ball command is received), and if received, the received command data is set in the reception command buffer area.

ステップS3509では、主制御通信確認コマンドを受信済みか否かを判定する。受信済みの場合は、ステップS3511に進み、そうでない場合はステップS3529に進む。主制御部300は球数制御部600から電源の供給を受けているため(図55参照)、その起動が球数制御部600より遅れる。このため、本ステップでは主制御部300が起動するまで、これ以降のステップS3511〜ステップS3527の処理を待機するために判定処理を行う。   In step S3509, it is determined whether a main control communication confirmation command has been received. If it has been received, the process proceeds to step S3511; otherwise, the process proceeds to step S3529. Since the main control unit 300 is supplied with power from the ball number control unit 600 (see FIG. 55), its activation is delayed from the ball number control unit 600. For this reason, in this step, until the main control unit 300 is activated, determination processing is performed in order to wait for the processing in subsequent steps S3511 to S3527.

ステップS3511〜ステップS3517はそれぞれ、図17のステップS1201、ステップS1203、ステップS1205およびステップS1209と同様である。なお、ステップS3515のエラー管理処理については後に詳述する。   Steps S3511 to S3517 are the same as steps S1201, S1203, S1205, and S1209 in FIG. The error management process in step S3515 will be described in detail later.

ステップS3519では、遊技媒体経路管理処理を行い、ステップS3521では、遊技球数管理処理を行い、ステップS3523では、領域内球数管理処理を行う。これらの処理(ステップS3519〜ステップS3523)については後述する。   In step S3519, a game medium path management process is performed. In step S3521, a game ball number management process is performed. In step S3523, an in-area ball number management process is performed. These processes (steps S3519 to S3523) will be described later.

ステップS3525では、信号出力処理を行う。信号出力処理では、例えば、賞球が所定個数(例えば、10個)発生する毎に、所定時間(例えば128ms)賞球発生信号を管理装置620に出力する。また、内枠104またはガラス枠106の開放状態を検出している間、扉開放信号を管理装置620に出力する。なお、これらの信号を外部端子基板信号として出力するようにしてもよい。更にこれらの信号を、ステップS3517のIU通信処理で出力する場合は、本ステップは省略できる。   In step S3525, signal output processing is performed. In the signal output process, for example, every time a predetermined number (for example, 10) of winning balls is generated, a winning ball generation signal is output to the management device 620 for a predetermined time (for example, 128 ms). Further, a door open signal is output to the management device 620 while the open state of the inner frame 104 or the glass frame 106 is detected. Note that these signals may be output as external terminal board signals. Furthermore, this step can be omitted when these signals are output in the IU communication processing in step S3517.

ステップS3527では、送信コマンド設定処理を行う。送信コマンド設定処理では、球数制御部600から主制御部300に送信する、通信確認コマンド、エラーコマンド、賞球信号コマンドを設定する。   In step S3527, transmission command setting processing is performed. In the transmission command setting process, a communication confirmation command, an error command, and a winning ball signal command to be transmitted from the ball number control unit 600 to the main control unit 300 are set.

ステップS3529ではレジスタ値を復帰し、ステップS3531では、割り込み許可設定を行う。   In step S3529, the register value is restored, and in step S3531, interrupt permission is set.

<エラー管理処理、遊技球数管理処理、領域内球数管理処理> <Error management process, game ball number management process, in-area ball number management process>

図60を参照して、エラー管理処理、遊技球数管理処理、領域内球数管理処理について説明する。図60(a)は、エラー管理処理の流れを説明するフローチャートの一例であり、図60(b)は、遊技球数管理処理の流れを説明するフローチャートの一例であり、図60(c)は、領域内球数管理処理の流れを説明するフローチャートの一例である。   With reference to FIG. 60, the error management process, the game ball number management process, and the in-area ball number management process will be described. FIG. 60 (a) is an example of a flowchart for explaining the flow of error management processing, FIG. 60 (b) is an example of a flowchart for explaining the flow of gaming ball number management processing, and FIG. It is an example of the flowchart explaining the flow of the number-of-spheres management process in an area | region.

図60(a)を参照してエラー管理処理について説明する。   The error management process will be described with reference to FIG.

ステップS3601では、内枠104の開放の有無をRAMに設けたエラーステータス記憶領域に記憶する。 In step S3601, the presence / absence of opening of the inner frame 104 is stored in an error status storage area provided in the RAM.

ステップS3603では、ガラス枠106開放の有無をRAMに設けたエラーステータス記憶領域に記憶する。   In step S3603, whether or not the glass frame 106 is opened is stored in an error status storage area provided in the RAM.

ステップS3605では、主制御通信エラーの有無をRAMに設けたエラーステータス記憶領域に記憶する。主制御通信エラーは、主制御部300からの通信確認コマンド(主制御通信確認コマンド)の受信間隔が所定期間(例えば、1000ms)を超えた場合のエラーである。   In step S3605, the presence or absence of a main control communication error is stored in an error status storage area provided in the RAM. The main control communication error is an error when the reception interval of the communication confirmation command (main control communication confirmation command) from the main control unit 300 exceeds a predetermined period (for example, 1000 ms).

ステップS3607では、管理装置未接続エラーの有無をRAMに設けたエラーステータス記憶領域に記憶する。管理装置未接続エラーは、管理装置620との接続信号のオフを検出し、その状態が所定時間(例えば16ms)継続した場合のエラーである。   In step S3607, the presence / absence of a management device unconnected error is stored in an error status storage area provided in the RAM. The management device non-connection error is an error when the connection signal with the management device 620 is detected to be off and the state continues for a predetermined time (for example, 16 ms).

ステップS3609では、管理装置通信エラーの有無をRAMに設けたエラーステータス記憶領域に記憶する。管理装置通信エラーは、管理装置620との通信において不正な入力を検知した場合のエラーである。例えば、球貸操作情報と球貸要求情報が不一致の場合などにエラーとなる。   In step S3609, the presence / absence of a management apparatus communication error is stored in an error status storage area provided in the RAM. The management device communication error is an error when an illegal input is detected in communication with the management device 620. For example, an error occurs when the ball lending operation information and the ball lending request information do not match.

ステップS3611では、領域内球数エラーの有無をRAMに設けたエラーステータス記憶領域に記憶する。領域内球数が所定の範囲(例えば−20〜+20)を超えた場合のエラーである。   In step S3611, the presence / absence of an in-area ball count error is stored in an error status storage area provided in the RAM. This is an error when the number of balls in the region exceeds a predetermined range (for example, -20 to +20).

ステップS3613では、球検出センサエラーの有無をRAMに設けたエラーステータス記憶領域に記憶する。球数制御部600で検出する球検出センサ604B(減算センサ604Z、入賞検出センサ604S、非入賞検出センサ604K)が所定期間(例えば、1秒以上)継続して検知された場合のエラーである。   In step S3613, the presence or absence of a sphere detection sensor error is stored in an error status storage area provided in the RAM. This is an error when the ball detection sensor 604B (subtraction sensor 604Z, winning detection sensor 604S, non-winning detection sensor 604K) detected by the ball number control unit 600 is continuously detected for a predetermined period (for example, 1 second or longer).

ステップS3615では、カセットエラーの有無をRAMに設けたエラーステータス記憶領域に記憶する。カセットエラーは、球磨き装置612のカセットが未装着であることを検出した場合のエラーである。   In step S3615, the presence / absence of a cassette error is stored in an error status storage area provided in the RAM. The cassette error is an error when it is detected that the cassette of the ball polishing device 612 is not attached.

ステップS3617では、モータセンサエラーの有無をRAMに設けたエラーステータス記憶領域に記憶する。例えば、遊技媒体経路610の球磨きモータセンサ、揚上モータセンサ、布送りモータセンサが異常を検知した場合にエラーとなる。   In step S3617, the presence or absence of a motor sensor error is stored in an error status storage area provided in the RAM. For example, an error occurs when a ball polishing motor sensor, a lifting motor sensor, or a cloth feed motor sensor in the game medium path 610 detects an abnormality.

ステップS3619では、その他のエラーの有無をRAMに設けたエラーステータス記憶領域に記憶する。例えば、電源投入時のパチンコ機100の認証異常がある場合、カード挿入中以外での加算指示がある場合、主制御部300の球検出センサ320Bと球数制御部600の排出検出センサで通過の個数が不一致となる入賞数異常などの場合である。   In step S3619, the presence or absence of other errors is stored in an error status storage area provided in the RAM. For example, when there is an authentication abnormality of the pachinko machine 100 when the power is turned on, or when there is an addition instruction other than during card insertion, the ball detection sensor 320B of the main control unit 300 and the discharge detection sensor of the ball number control unit 600 are allowed to pass. This is the case, for example, when the number of winnings is inconsistent.

ステップS3621では、内枠104の開放毎に更新される内枠開放カウンタ(0〜15)の現在の値を設定する。   In step S3621, the current value of the inner frame opening counter (0 to 15) updated every time the inner frame 104 is opened is set.

ステップS3623では、ガラス枠106の開放毎に更新されるガラス枠開放カウンタ(0〜15)の現在の値を設定する。   In step S3623, the current value of the glass frame opening counter (0 to 15) updated every time the glass frame 106 is opened is set.

ステップS3625では、エラー解除スイッチ監視処理を行う。エラー解除スイッチ168が押下されている場合、球数制御部600の全てのエラーステータス記憶領域について、エラー解除時の設定を行う。   In step S3625, an error release switch monitoring process is performed. When the error cancel switch 168 is pressed, the error reset setting is made for all error status storage areas of the ball number control unit 600.

ステップS3627では、エラー表示設定処理を行う。エラー表示設定処理は、エラー状態に応じて、遊技盤200の背面側に設けた基板表示部630のLEDの表示の更新を行う。   In step S3627, an error display setting process is performed. In the error display setting process, the LED display of the board display unit 630 provided on the back side of the game board 200 is updated according to the error state.

図60(b)を参照して、遊技球数管理処理について説明する。   With reference to FIG. 60B, the game ball number management process will be described.

ステップS3701では、遊技球数の更新条件が成立しているか否かを判定し、成立している場合はステップS3703に進み、そうでない場合は、ステップS3705に進む。遊技球数の更新条件は、球貸要求がある場合(球貸ボタン140のタッチによる球貸要求情報が管理装置620から球数制御部600に送信された場合)、賞球がある場合(賞球コマンドを球数制御部600が受信した場合)、減算センサ604Zで機内球710の通過を検出した場合、計数ボタン652の操作を検出した場合、再プレイボタン146が操作された場合、返却ボタン142が操作された場合のうちの少なくともいずれかである。   In step S3701, it is determined whether or not the game ball number update condition is satisfied. If satisfied, the process proceeds to step S3703. Otherwise, the process proceeds to step S3705. The update condition of the number of game balls is when there is a ball lending request (when ball lending request information by touching the ball lending button 140 is transmitted from the management device 620 to the ball number control unit 600), when there is a prize ball (award) When the ball command is received by the ball number control unit 600), when the subtraction sensor 604Z detects the passage of the in-flight ball 710, when the operation of the counting button 652 is detected, when the replay button 146 is operated, the return button It is at least one of cases where 142 is operated.

ステップS3703では、遊技球数更新処理を行う。遊技球数更新処理では、遊技球数記憶領域に記憶されている値(遊技球数)と、貸球数記憶領域の値(貸球数)、賞球数記憶領域の値(賞球数)、イン球数記憶領域の値(イン球数)、計数球数記憶領域の値(計数球数)、再プレイ球数記憶領域の値(再プレイ球数)をそれぞれ読出し、球貸要求の場合は貸球数を遊技球数に加算、賞球がある場合は賞球数を遊技球数に加算、減算センサ604Zの検出がある場合はイン球数を遊技球数から減算、計数ボタン652の検出は遊技球数から減算、再プレイボタン146の操作がある場合は遊技球数に加算、返却ボタン142の操作がある場合は遊技球数から減算し、更新後の遊技球数をもとの遊技球数記憶領域に記憶する。   In step S3703, a game ball number update process is performed. In the game ball number update process, the value stored in the game ball number storage area (number of game balls), the value of the number of ball rental storage area (number of balls lent), the value of the prize ball number storage area (number of prize balls) In the case of a ball rental request, the value of the in-ball number storage area (number of in-balls), the value of the count ball number storage area (count ball number), and the value of the re-play ball number storage area (re-play ball number) are read out respectively. Is added to the number of gaming balls, if there is a prize ball, the number of prize balls is added to the number of gaming balls, if the subtraction sensor 604Z is detected, the number of in-balls is subtracted from the number of gaming balls, Detection is subtracted from the number of game balls. If there is an operation of the replay button 146, it is added to the number of game balls. If there is an operation of the return button 142, it is subtracted from the number of game balls. Store in the game ball number storage area.

ステップS3705では、遊技球数表示更新処理を行う。遊技球数表示更新処理では、球数表示部640に更新後の遊技球数を表示する。   In step S3705, a game ball number display update process is performed. In the game ball number display update process, the updated game ball number is displayed on the ball number display unit 640.

図60(c)を参照して、領域内球数管理処理について説明する。   With reference to FIG. 60C, the in-region ball number management process will be described.

ステップS3801では、領域内球数更新条件が成立しているか否かを判定し、成立している場合はステップS3803に進み、そうでない場合は処理を終了する。領域内球数の更新条件は、減算センサ604Zで機内球710の通過を検出した場合、入賞検出センサ604Sで機内球710の通過を検出した場合、非入賞検出センサ604Kで機内球710の通過を検出した場合のうち、少なくともいずれかである。   In step S3801, it is determined whether or not the in-region ball number update condition is satisfied. If satisfied, the process proceeds to step S3803. If not, the process ends. The update condition of the in-area ball number is that when the subtraction sensor 604Z detects the passage of the in-flight ball 710, when the winning detection sensor 604S detects the passage of the in-flight ball 710, the non-winning detection sensor 604K determines whether the in-flight ball 710 has passed. At least one of the cases detected.

ステップS3803では、領域内球数更新処理を行う。領域内球数更新処理では、領域内球数記憶領域に記憶されている値(領域内球数)と、イン球数記憶領域の値(イン球数)、アウト球数記憶領域の値(アウト球数)をそれぞれ読出し、減算センサ604Zの検出がある場合は領域内球数にイン球数を加算、入賞検出センサ604Sまたは非入賞検出センサ604Kの検出がある場合は領域内球数からアウト球数を減算し、更新後の領域内球数をもとの領域内球数記憶領域に記憶する。
<遊技媒体経路管理処理>
In step S3803, the in-region ball number update process is performed. In the in-region ball number update process, the value stored in the in-region ball number storage area (the number of in-region balls), the value in the in-ball number storage area (in-ball number), and the value in the out-ball number storage area (out The number of balls) is read out, and if the subtraction sensor 604Z is detected, the number of in-spheres is added to the number of balls in the area. If the prize detection sensor 604S or the non-winning detection sensor 604K is detected, the number of balls in the area is out. The number is subtracted, and the updated in-region ball number is stored in the original in-region ball number storage area.
<Game media route management processing>

図61を参照して遊技媒体経路管理処理について説明する。図61(a)は、遊技媒体経路管理処理の流れを示すフローチャートであり、図61(b)は、研磨装置制御処理の流れを示すフローチャートであり、図61(c)は、揚上装置制御処理の流れを示すフローチャートである。   The game medium route management process will be described with reference to FIG. 61A is a flowchart showing the flow of the game medium path management process, FIG. 61B is a flowchart showing the flow of the polishing apparatus control process, and FIG. 61C is the lifting apparatus control. It is a flowchart which shows the flow of a process.

図61(a)を参照して、遊技媒体経路管理処理について説明する。   With reference to FIG. 61A, the game medium path management process will be described.

ステップS3901では、研磨装置制御処理(後述)を行い、ステップS3903では揚上装置制御処理(後述)を行う。   In step S3901, a polishing apparatus control process (described later) is performed, and in step S3903, a lifting apparatus control process (described later) is performed.

ステップS3905では球送り装置制御処理を行う。球送り装置制御処理は、図42、図44(a)を参照して説明した処理と同様であるので、説明は省略する。   In step S3905, a ball feeder control process is performed. Since the ball feeder control process is the same as the process described with reference to FIGS. 42 and 44A, the description thereof is omitted.

ステップS3907では発射装置制御処理を行う。発射装置制御処理は、図43、図44(b)を参照して説明した処理と同様であるので、説明は省略する。なお、球送り装置制御処理と発射装置制御処理は、図45のように1つの連続した処理として行ってもよい。   In step S3907, a launcher control process is performed. The launching device control process is the same as the process described with reference to FIGS. 43 and 44B, and thus the description thereof is omitted. The ball feeder control process and the launcher control process may be performed as one continuous process as shown in FIG.

図61(b)を参照して、球磨き装置制御処理について説明する。   With reference to FIG.61 (b), a ball polisher control process is demonstrated.

ステップS4001では、球磨き装置612の駆動条件が成立しているか否かを判定する。成立している場合は、ステップS4003に進み、そうでない場合は処理を終了する。球磨き装置612の駆動条件は、球送り装置入口センサが遊技球を検知していない場合(非満タン状態である場合)で、且つ、カセットセンサ、研磨モータセンサ、布送りモータセンサのいずれもが正常である場合である。   In step S4001, it is determined whether or not the driving condition for the ball polisher 612 is satisfied. If established, the process proceeds to step S4003, and if not, the process ends. The driving condition of the ball polishing device 612 is when the ball feeding device entrance sensor does not detect the game ball (when it is in a non-full state), and any of the cassette sensor, the polishing motor sensor, and the cloth feeding motor sensor Is normal.

ステップS4003では球磨き装置駆動処理を行う。球数制御部600は、球磨き装置入口センサにより機内球710が球入口に進入したことを検知すると、球磨きモータを駆動する。球磨きモータはギアを介してスクリューと接続しており、スクリューの回転によって機内球710を研磨布で研磨しながら球出口まで搬送する。球出口から排出された機内球は揚上装置614に受け渡される。   In step S4003, a ball polisher driving process is performed. When the ball number controller 600 detects that the in-flight ball 710 has entered the ball entrance by the ball polisher entrance sensor, the ball polisher motor is driven. The ball polishing motor is connected to a screw through a gear, and conveys the in-machine ball 710 to the ball outlet while being polished with a polishing cloth by the rotation of the screw. The in-flight ball discharged from the ball outlet is delivered to the lifting device 614.

図61(c)を参照して、揚上装置制御処理について説明する。   With reference to FIG.61 (c), a lifting apparatus control process is demonstrated.

ステップS4101では、揚上装置614の駆動条件が成立しているか否かを判定する。成立している場合は、ステップS4103に進み、そうでない場合は処理を終了する。揚上装置614の駆動条件は、球送り装置入口センサが遊技球を検知していない場合(非満タン状態である場合)で、且つ、揚上モータセンサが正常である場合である。   In step S4101, it is determined whether the driving condition for the lifting device 614 is satisfied. If established, the process proceeds to step S4103, and if not, the process ends. The driving condition of the lifting device 614 is when the ball feeding device entrance sensor does not detect a game ball (when the ball is not full) and when the lifting motor sensor is normal.

ステップS4103では揚上装置駆動処理を行う。球数制御部600は、揚上装置入口センサにより機内球710が球入口に進入したことをが検知すると、揚上モータを駆動する。揚上モータはギアを介してスクリューと接続しており、スクリューの回転によって機内球が1球ずつ、パチンコ機100の上部に搬送される。球出口から排出された機内球は、球送り装置616に受け渡される。   In step S4103, a lifting device driving process is performed. The ball number control unit 600 drives the lifting motor when it is detected by the lifting device entrance sensor that the in-flight ball 710 has entered the ball entrance. The lifting motor is connected to the screw through a gear, and the balls in the machine are conveyed to the upper part of the pachinko machine 100 one by one by the rotation of the screw. The in-flight ball discharged from the ball outlet is delivered to the ball feeding device 616.

図62は、図60(b)の遊技球数管理処理および同図(c)の領域内球数管理処理における、球検出センサ604B(減算センサ604Z、入賞検出センサ604Sおよび非入賞検出センサ604K)の検出による機内球710の状態(通過)判定の一例を示す図である。これらの球検出センサ604B判定方法は、既述の主制御部300の球検出センサ320Bによる判定方法と同様であるが、I/Oの入力ポート状態とそれに基づく各センサ604Z、604S、604Kのレベル状態について、概要図を用いて説明する。   FIG. 62 shows a ball detection sensor 604B (subtraction sensor 604Z, winning detection sensor 604S and non-winning detection sensor 604K) in the gaming ball number management process of FIG. 60 (b) and the in-area ball number management process of FIG. 60 (c). It is a figure which shows an example of the state (passing) determination of the in-flight ball | bowl 710 by detection of. These sphere detection sensors 604B determination method is the same as the determination method by the sphere detection sensor 320B of the main controller 300 described above, but the I / O input port state and the level of each sensor 604Z, 604S, 604K based on it. A state is demonstrated using a schematic diagram.

球数制御部600は、I/Oの入力ポートを介して、減算センサ604Z、入賞検出センサ604Sおよび非入賞検出センサ604Kの検出信号を入力して検出信号の有無を監視し、RAMに各種センサ604Z、604S、604K320ごとに区画して設けた信号状態記憶領域に記憶する。検出の間隔は、球数制御部600のタイマ割込み処理の周期(2ms)である。   The ball number control unit 600 inputs detection signals from the subtraction sensor 604Z, the winning detection sensor 604S, and the non-winning detection sensor 604K via the I / O input port, monitors the presence or absence of the detection signal, and stores various sensors in the RAM. The data is stored in a signal state storage area provided for each of 604Z, 604S, and 604K320. The detection interval is a period (2 ms) of timer interrupt processing of the ball number control unit 600.

減算センサ604Zの検出信号を例にして説明すれば、前々回のタイマ割込処理(約4ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAMに設けた前回検出信号記憶領域から読み出し、この情報をRAMに設けた前々回検出信号記憶領域に記憶し、前回のタイマ割込処理(約2ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAMに設けた今回検出信号記憶領域から読み出し、この情報を上述の前回検出信号記憶領域に記憶する。また、今回検出した減算センサの検出信号を、上述の今回検出信号記憶領域に記憶する。   If the detection signal of the subtraction sensor 604Z is described as an example, information on the presence / absence of the detection signal of each sphere detection sensor detected in the timer interruption process (about 4 ms before) is stored in the previous detection signal in the RAM. This information is read from the area, this information is stored in the detection signal storage area provided in the RAM, and the information on the presence or absence of the detection signal of each sphere detection sensor detected in the previous timer interruption process (about 2 ms before) is stored in the RAM. It reads from the provided current detection signal storage area and stores this information in the previous detection signal storage area. Further, the detection signal of the subtraction sensor detected this time is stored in the above-described current detection signal storage area.

この前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域の各記憶領域に記憶した減算センサ604Zの検出信号の有無の情報を比較し、過去3回分の検出信号の有無の情報(今回レベル状態、前回レベル状態、前々回レベル状態)が入賞判定パターン情報と一致するか否かを判定する。一個の機内球710が一つの減算センサ604Zを通過する間に、約2msという非常に短い間隔で球数制御部タイマ割込処理が起動する度に、同じ機内球710が同じ減算センサ604Zを通過したことを表す検出信号(レベル状態)を確認することになる。この結果、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域それぞれに、同じ機内球710が同じ減算センサ604Zを通過したことを表す検出信号が記憶される。すなわち、機内球710が減算センサ604Zを通過し始めたときには、前々回検出信号無し(レベル状態「0」)、前回検出信号有り(レベル状態「1」)、今回検出信号有り(レベル状態「1」)になる(状態(3))。この場合には、通過があったと判定する。つまり、図62に示す過去3回分のレベル状態が、予め定めた通過判定パターン情報(本実施形態では、前々回レベル状態「0」、前回レベル状態「1」、今回レベル状態「1」)と一致した場合(状態(3))に、減算センサ604Zを機内球710が通過したと判定する(アップエッジ状態)。なお、球数制御部600のROMには、通過判定クリアパターン情報(本実施形態では、前々回レベル状態「1」、前回レベル状態「1」、今回レベル状態「0」)が記憶されている。通過が一度あったと判定した後は、減算センサ604Zにおいて過去3回分の検出信号の有無の情報が、その通過判定クリアパターン情報に一致するまで通過があったとは判定せず(状態(5)においてアップエッジ状態「0」)、通過判定クリアパターン情報に一致すれば、次からは上記通過判定パターン情報に一致するか否かの判定を行う。入賞検出センサ604K、非入賞検出センサ604Sについても同様である。   The information on the presence / absence of the detection signal of the subtraction sensor 604Z stored in each of the previous detection signal storage area, the previous detection signal storage area, and the current detection signal storage area is compared, and information on the presence / absence of detection signals for the past three times It is determined whether (the current level state, the previous level state, and the last time level state) match the winning determination pattern information. Each time the in-flight ball 710 passes through one subtraction sensor 604Z, the same in-flight ball 710 passes through the same subtraction sensor 604Z each time the ball number control unit timer interrupt processing is started at a very short interval of about 2 ms. A detection signal (level state) indicating that this has occurred is confirmed. As a result, a detection signal indicating that the same in-flight ball 710 has passed through the same subtraction sensor 604Z is stored in each of the detection signal storage area, the previous detection signal storage area, and the current detection signal storage area. That is, when the in-flight ball 710 starts to pass through the subtraction sensor 604Z, the detection signal is not detected twice (level state “0”), the previous detection signal is present (level state “1”), and the current detection signal is present (level state “1”). (State (3)). In this case, it is determined that there is a passage. That is, the past three level states shown in FIG. 62 coincide with predetermined passage determination pattern information (in this embodiment, the level state “0”, the previous level state “1”, and the current level state “1”). In the case (state (3)), it is determined that the in-flight ball 710 has passed through the subtraction sensor 604Z (up edge state). Note that the passage determination clear pattern information (in the present embodiment, the level state “1”, the previous level state “1”, and the current level state “0”) is stored in the ROM of the ball number control unit 600. After determining that there has been one pass, it is not determined that there has been a pass until the information on the presence / absence of detection signals for the past three in the subtraction sensor 604Z matches the pass determination clear pattern information (in state (5)). If the up-edge state “0”) matches the passage determination clear pattern information, it is determined whether or not it matches the passage determination pattern information. The same applies to the winning detection sensor 604K and the non-winning detection sensor 604S.

図63を参照して、エラー発生時の報知態様の一例について説明する。   With reference to FIG. 63, an example of a notification mode when an error occurs will be described.

報知するエラー(異常)は例えば、磁気センサ検知時、電波センサ検知時、振動センサ検知時、認証エラー、通信異常、入賞数異常、ガラス枠106・内枠104の開放時、加算異常、近接センサ異常、領域内球数異常、夜間枠開放時、などである。磁気センサ、電波センサ、振動センサは主制御部300にて検出される。認証エラー、通信異常、入賞数異常、ガラス枠106・内枠104の開放、加算異常、近接センサ異常、領域内球数異常、夜間枠開放は、球数制御部600にて検出される。図中丸印が報知を行うものである。報知態様は、主制御部300の所定の処理をスキップする遊技停止、機内球710の発射を停止する発射停止、所定の音声で報知する音声出力、所定のパターンでランプを発光させるランプ点灯、所定の画像(文字)を液晶表示装置に表示する液晶表示、球数UI部680(画像表示部656)に表示するUI表示、外部装置(管理装置620やホールコンピュータなど)に情報を出力する外部出力、などである。遊技停止による報知は主制御部300が制御し、発射停止による報知は球数制御部600が制御し、音声出力、ランプ点灯および液晶表示による報知は副制御部(第1副制御部400または第2副制御部500)が制御し、UI表示による報知は球数UI部680が、外部出力による報知は管理装置620がそれぞれ制御する。   The error (abnormality) to be notified is, for example, at the time of magnetic sensor detection, radio wave sensor detection, vibration sensor detection, authentication error, communication error, winning number error, glass frame 106 / inner frame 104 opening, addition error, proximity sensor Such as abnormalities, abnormal number of balls in the area, or when the nighttime frame is open. The main control unit 300 detects the magnetic sensor, radio wave sensor, and vibration sensor. The ball number control unit 600 detects an authentication error, a communication error, a winning number error, an opening of the glass frame 106 / inner frame 104, an addition error, a proximity sensor error, an in-region ball number error, and a nighttime frame opening. Circles in the figure indicate notification. The notification mode includes a game stop that skips a predetermined process of the main control unit 300, a stop of the launch that stops the firing of the in-flight ball 710, a voice output that notifies with a predetermined sound, a lamp lighting that causes the lamp to emit light in a predetermined pattern, a predetermined Liquid crystal display for displaying images (characters) on a liquid crystal display device, UI display for displaying on a ball count UI unit 680 (image display unit 656), and external output for outputting information to an external device (such as a management device 620 or a hall computer) , Etc. The notification by the game stop is controlled by the main control unit 300, the notification by the firing stop is controlled by the ball number control unit 600, and the notification by voice output, lamp lighting and liquid crystal display is performed by the sub control unit (the first sub control unit 400 or the first control unit). 2 sub-control unit 500), the ball number UI unit 680 controls notification by UI display, and the management device 620 controls notification by external output.

例えば、遊技停止による報知では、主制御部タイマ割込み処理の例えば、演出乱数更新処理(ステップS211)とタイマ更新処理(ステップS213)の間で、磁気センサ検知、認証エラー、通信異常、入賞数異常の有無を判定し、いずれかに異常がある場合は、電断検出判定(ステップS235)に進む。タイマ更新処理(ステップS213)からデバイス監視処理(ステップS233)までの処理をスキップすることにより、遊技停止状態となる。なお、エラーの種類と報知態様の組合せは図示したものに限らない。またこれ以外のエラーを報知してもよい。   For example, in the notification by the game stop, the magnetic sensor detection, the authentication error, the communication abnormality, the prize number abnormality, for example, between the production random number update process (step S211) and the timer update process (step S213) of the main control unit timer interruption process. If any of them is abnormal, the process proceeds to the power interruption detection determination (step S235). By skipping the processes from the timer update process (step S213) to the device monitoring process (step S233), the game is stopped. The combination of the error type and the notification mode is not limited to the illustrated one. Further, other errors may be notified.

<液晶表示装置を用いた第1のエラー報知態様> <First Error Notification Mode Using Liquid Crystal Display>

図64は、液晶表示装置を用いたエラー情報の報知態様の一例を示す概要図である。本実施形態では、各種のエラー情報を例えば第1副制御部400によって液晶表示装置(装飾図柄表示装置208)に表示する第1の報知態様と、管理装置620によって球数UI部680の液晶表示装置(情報表示部656)に表示する第2の報知態様で報知することができる。   FIG. 64 is a schematic diagram illustrating an example of a notification mode of error information using a liquid crystal display device. In the present embodiment, for example, a first notification mode in which various error information is displayed on the liquid crystal display device (decorative symbol display device 208) by the first sub-control unit 400, and the liquid crystal display of the ball count UI unit 680 by the management device 620. It can alert | report in the 2nd alerting | reporting aspect displayed on an apparatus (information display part 656).

一例を挙げると、球数制御部600は、第1のエラー情報(例えば、夜間枠開放エラー情報など)を含む第1のコマンドを、球数制御部割込み処理の送信コマンド設定処理(図59のステップS33527)により設定し、主制御部300に出力するとともに、当該第1のエラー情報を含む含む第二のコマンドをIU通信処理(図59ステップS3517)により管理装置620に出力する。第1のコマンドを受信した主制御部300は、第1副制御部400にエラーの報知を指令し、第1副制御部400はエラー情報を含む画像を生成して、装飾図柄表示装置208に表示する。   For example, the ball number control unit 600 sends a first command including first error information (for example, night frame opening error information) to a send command setting process (see FIG. 59) of the ball number control unit interrupt process. It is set in step S33527), and is output to the main control unit 300, and a second command including the first error information is output to the management apparatus 620 by IU communication processing (step S3517 in FIG. 59). The main control unit 300 that has received the first command instructs the first sub control unit 400 to notify the error, and the first sub control unit 400 generates an image including the error information, and sends it to the decorative symbol display device 208. indicate.

また、第2のコマンドを受信した管理装置620は、エラー情報に基づく画像を生成し、球数UI部680にエラー表示を指令する。球数UI部680は当該画像を、画像表示部656に表示する。   In addition, the management device 620 that has received the second command generates an image based on the error information and instructs the ball count UI unit 680 to display an error. The ball count UI unit 680 displays the image on the image display unit 656.

図65は、例えば、球数制御部600で検出したエラー情報(例えば、夜間開放エラーの情報)を装飾図柄表示装置208および球数UI部680で報知するまでのタイムチャートの一例を示す。図面の縦軸方向、上から下に時間が経過する。   FIG. 65 shows an example of a time chart until the decorative symbol display device 208 and the ball number UI unit 680 notify the error information detected by the ball number control unit 600 (for example, information on the nighttime opening error), for example. Time elapses from top to bottom in the direction of the vertical axis of the drawing.

例えば、閉店後に電源が遮断されると(1)、球数制御部600では電断時処理として、電断時の内枠開放回数とガラス枠開放回数を記憶する(2)。電断後(夜間)に枠開放が生じると(3)、カウンタICによって枠開放回数が加算される(4)。翌朝など開店時に電源が投入され(5)、主制御部300が起動すると、最初の主制御通信確認コマンドが球数制御部600に送信される(6)。球数制御部600は、主制御部300より先に起動している場合であっても、主制御通信確認コマンドの受信があるまでエラー管理処理やコマンド送信処理等を待機する(球数制御部メイン処理のコマンド解析処理(図58(a))および球数制御部割込み処理(図59)参照)。球数制御部600は、主制御通信確認コマンドを受信すると、通信確認コマンドを主制御部300に送信する(7)。その後、エラー管理処理によって例えば夜間枠開放エラーを検出し、当該エラー情報を含む第1のコマンド(エラーコマンド)を主制御部300に送信する(8)。また当該エラー情報を含む第2のコマンド(エラーコマンド)を管理装置620に送信する(9)。第1のコマンドを受信した主制御部300は、これに含まれるエラー情報に基づき、副制御部(第1副制御部400)にエラー報知を指令する(10)。第1副制御部400はエラーを報知する画像を生成し、装飾図柄表示装置208に表示する(11)。   For example, when the power is shut off after the store is closed (1), the ball number control unit 600 stores the number of times of opening the inner frame and the number of times of opening the glass frame as a power interruption process (2). When the frame opens after power interruption (nighttime) (3), the number of times the frame is opened is added by the counter IC (4). When the store is opened, such as the next morning (5) and the main control unit 300 is activated, the first main control communication confirmation command is transmitted to the ball number control unit 600 (6). Even when the ball number control unit 600 is activated before the main control unit 300, it waits for error management processing, command transmission processing, etc. until the main control communication confirmation command is received (ball number control unit). Command analysis processing of main processing (FIG. 58 (a)) and ball number control unit interrupt processing (see FIG. 59)). Upon receiving the main control communication confirmation command, the ball number control unit 600 transmits the communication confirmation command to the main control unit 300 (7). Thereafter, for example, a nighttime frame opening error is detected by error management processing, and a first command (error command) including the error information is transmitted to the main control unit 300 (8). The second command (error command) including the error information is transmitted to the management apparatus 620 (9). The main control unit 300 that has received the first command instructs the sub control unit (first sub control unit 400) to notify the error based on the error information included in the first command (10). The first sub-control unit 400 generates an error notification image and displays it on the decorative symbol display device 208 (11).

一方、第2のコマンドを受信した管理装置620は、これに含まれるエラー情報に基づき、エラー報知画像を生成し、球数UI部680にエラー報知画像の表示を指示する(12)。   On the other hand, the management device 620 that has received the second command generates an error notification image based on the error information included therein, and instructs the ball count UI unit 680 to display the error notification image (12).

図66は、装飾図柄表示装置208に表示する画像の表示例(同図(a))と、球数UI部680に表示する画像の表示例(同図(b))を示す。   FIG. 66 shows a display example of the image displayed on the decorative symbol display device 208 (FIG. 6A) and a display example of the image displayed on the ball count UI unit 680 (FIG. 6B).

例えば、装飾図柄表示装置208にはエラー情報を示す画像として「夜間開放エラー」というエラー検出を示す文字と、「夜間に5回内枠が開放されました」というエラーの詳細な内容を示す文字を表示する。装飾図柄表示装置208は表示面積が大きく多くの情報を表示でき、また多彩で目立つ印象の画像を表示することができる。   For example, in the decorative symbol display device 208, as an image indicating error information, a character indicating an error detection “night open error” and a character indicating the detailed content of an error “the inner frame has been opened five times at night” Is displayed. The decorative symbol display device 208 has a large display area, can display a large amount of information, and can display various and conspicuous images.

一方、球数UI部680の画像表示部656には、通常表示される遊技球に関する情報を報知する情報報知画像802と共に、エラー情報を示す画像として「夜間開放エラー」というエラー検出を示す文字のみを、装飾図柄表示装置208に表示される画像と比較するとシンプルな表示態様で表示する。このようにすることで、エラーの報知に多様性を持たせることができる。   On the other hand, in the image display unit 656 of the ball count UI unit 680, only a character indicating error detection “night opening error” as an image indicating error information is displayed together with an information notification image 802 for notifying information on a game ball that is normally displayed. Is displayed in a simple display mode as compared with the image displayed on the decorative symbol display device 208. By doing so, it is possible to provide diversity in error notification.

<液晶表示装置を用いた第2のエラー報知態様> <Second Error Notification Mode Using Liquid Crystal Display Device>

パチンコ機100は、開店時の電源投入時には、装飾図柄表示装置208のエラー情報の画像より早期に、球数UI部680でエラー情報を表示することができる。以下これについて説明する。   The pachinko machine 100 can display error information on the ball number UI unit 680 earlier than the error information image on the decorative symbol display device 208 when the power is turned on at the time of opening the store. This will be described below.

既述の如く主制御部300は、球数制御部600から電源の供給を受けているため(図55参照)、その起動が球数制御部600より遅れる。また、主制御部300は、所定の遅延処理(例えば、セキュリティーモードの固定延長処理やランダム延長処理、低電圧信号判定処理(ステップS105)、副制御部起動待ち処理など)を行うことでその起動が球数制御部600より遅れる。このため、第1のエラー報知態様で報知する、図57〜図59のフローチャートで示した球数制御部600の処理では、主制御部300が起動し、最初の主制御通信確認コマンドを受信するまで、球数制御部600のエラー管理処理やコマンド送信処理などを待機している。   Since the main control unit 300 is supplied with power from the ball number control unit 600 as described above (see FIG. 55), the activation thereof is delayed from the ball number control unit 600. Further, the main control unit 300 is activated by performing predetermined delay processing (for example, security mode fixed extension processing, random extension processing, low voltage signal determination processing (step S105), sub-control unit activation waiting processing, etc.). Is delayed from the ball number control unit 600. For this reason, in the processing of the ball number control unit 600 shown in the flowcharts of FIGS. 57 to 59 that is notified in the first error notification mode, the main control unit 300 is activated and receives the first main control communication confirmation command. Up to this point, it waits for error management processing and command transmission processing of the ball number control unit 600.

第2のエラー報知態様は、装飾図柄表示装置208のエラー情報の画像より先に、球数UI部680でエラー情報を表示するものであり、これを実現する球数制御部600の処理について、説明する。   In the second error notification mode, error information is displayed on the ball count UI unit 680 prior to the error information image on the decorative symbol display device 208. Regarding the processing of the ball count control unit 600 for realizing this, explain.

図67および図68は、第2のエラー報知態様による報知が可能な、球数制御部600の主要な処理の流れを示すフローチャートである。第1のエラー報知態様を行う場合の処理と異なる部分を示しており、図67(a)はコマンド解析処理、図67(b)は電断処理、図68は球数制御部割込み処理のそれぞれの流れを示すフローチャートである。各フローチャートにおけるそれぞれのステップの内容は、第1のエラー報知態様の場合(図58および図59)と同様であり、説明は省略する。なお図58および図59の対応するステップを、括弧書きで付記する。   FIG. 67 and FIG. 68 are flowcharts showing the main processing flow of the ball number control unit 600 that can be notified in the second error notification mode. FIG. 67 (a) shows a command analysis process, FIG. 67 (b) shows a power interruption process, and FIG. 68 shows a ball number control unit interrupt process. It is a flowchart which shows the flow. The content of each step in each flowchart is the same as in the case of the first error notification mode (FIGS. 58 and 59), and description thereof is omitted. The steps corresponding to FIGS. 58 and 59 are indicated in parentheses.

図67(a)を参照して、コマンド解析処理について説明する。   The command analysis process will be described with reference to FIG.

ステップS4201では賞球コマンドの受信の有無を判定し(ステップS3301)、受信している場合は、ステップS4203に進み、そうでない場合はステップS4205に進む。   In step S4201, it is determined whether or not a prize ball command has been received (step S3301). If received, the process proceeds to step S4203. Otherwise, the process proceeds to step S4205.

ステップS4203では、賞球コマンド受信時の処理を行う(ステップS3303)。 ステップS4205では、主制御通信確認コマンドを受信しているか否かを判定する(ステップS3305)。主制御通信確認コマンドを受信している場合は、ステップS4207に進み、そうでない場合は処理を終了する。   In step S4203, processing upon receiving a prize ball command is performed (step S3303). In step S4205, it is determined whether a main control communication confirmation command has been received (step S3305). If the main control communication confirmation command has been received, the process proceeds to step S4207, and if not, the process ends.

ステップ4207では、受信した主制御通信確認コマンドが電源投入後最初の主制御通信確認コマンドであるか否かを判定する(ステップS3307)。最初の主制御通信確認コマンドである場合は、ステップS4209に進み、そうでない場合はステップS4211に進む。   In step 4207, it is determined whether or not the received main control communication confirmation command is the first main control communication confirmation command after power-on (step S3307). If it is the first main control communication confirmation command, the process proceeds to step S4209; otherwise, the process proceeds to step S4211.

ステップS4211では、主制御通信確認コマンド受信処理を行う(ステップS3313)。   In step S4211, main control communication confirmation command reception processing is performed (step S3313).

図67(b)を参照して、電断処理について説明する。   With reference to FIG. 67B, the power interruption process will be described.

ステップS4301では割り込み禁止設定処理(ステップS3401)を行い、ステップS4303では、全出力ポートにクリアデータを出力し(ステップS3403)、ステップS4305では、サスペンド情報を設定する(ステップS3405)。   In step S4301, interrupt prohibition setting processing (step S3401) is performed. In step S4303, clear data is output to all output ports (step S3403). In step S4305, suspend information is set (step S3405).

ステップS4307では、RAMのバックアップ領域に起動時情報出力フラグの初期値を設定する。起動時情報出力フラグは、例えば、パチンコ機100の起動時(電源投入時)に球数UI部680に情報を表示するか否かを示すフラグであり、例えばオン(または「1」)の場合は、情報を表示することを示す。   In step S4307, an initial value of the startup information output flag is set in the backup area of the RAM. The startup information output flag is, for example, a flag indicating whether information is displayed on the ball UI unit 680 when the pachinko machine 100 is started up (when the power is turned on). For example, the startup information output flag is on (or “1”). Indicates that information is to be displayed.

ステップS4309では、内枠開放カウンタの値を電断時内枠開放回数のバックアップ領域に格納する(ステップS3407)。   In step S4309, the value of the inner frame opening counter is stored in the backup area of the number of opening of the inner frame at the time of power interruption (step S3407).

ステップS4311では、ガラス枠開放カウンタの値を電断時ガラス枠開放回数のバックアップ領域に格納する(ステップS3409)。   In step S4311, the value of the glass frame opening counter is stored in the backup area of the number of times of opening the glass frame at the time of power interruption (step S3409).

ステップS4313ではチェックサムを算出する(ステップS3411)。   In step S4313, a checksum is calculated (step S3411).

ステップS4315ではRWMチェックサムエリアに算出結果を設定し(ステップS3413)、ステップS4317では、内蔵RAMアクセスの禁止設定を行う(ステップS3415)。   In step S4315, the calculation result is set in the RWM checksum area (step S3413), and in step S4317, the built-in RAM access is prohibited (step S3415).

図68を参照して、球数制御部割込み処理について説明する。   With reference to FIG. 68, the ball number control unit interrupt process will be described.

ステップS4401では、レジスタ値を退避し(ステップS3501)、ステップS4403では、割り込みフラグをクリアし(ステップS3503)、ステップS44405では、WDTクリアおよびリスタートを行う(ステップS3505)。ステップS4407では、受信コマンドの処理を行う(ステップS3507)。   In step S4401, the register value is saved (step S3501). In step S4403, the interrupt flag is cleared (step S3503). In step S44405, WDT clear and restart are performed (step S3505). In step S4407, the received command is processed (step S3507).

ステップS4409では、起動時情報出力フラグを判定し、オンの場合はステップS4411に進み、そうでない場合(オフまたは「0」の場合)は、ステップS4417に進む。電源投入後最初の球数制御部割込み処理では、初期値の「オン」が設定されている(図68(b)参照)。   In step S4409, the startup time information output flag is determined. If it is on, the process proceeds to step S4411, and if not (off or “0”), the process proceeds to step S4417. In the first ball number control unit interruption process after the power is turned on, the initial value “ON” is set (see FIG. 68B).

ステップS4411では、起動時情報出力フラグにオフ(または「0」)をセットする。   In step S4411, the startup information output flag is set to off (or “0”).

ステップS4413では、夜間枠開放エラーの有無を判定し、エラー情報をRAMのバックアップ領域に設定する(ステップS3311)。   In step S4413, it is determined whether there is a nighttime frame opening error, and error information is set in the RAM backup area (step S3311).

ステップS4415では、送信コマンド設定処理を行う(ステップS3527)。これにより、球数制御部600は起動後、主制御部300の起動を待機せずに、所定のコマンド(例えば、夜間開放エラー情報を含むコマンドなど)を、管理装置620に送信することができる。   In step S4415, a transmission command setting process is performed (step S3527). Thereby, the ball number control unit 600 can transmit a predetermined command (for example, a command including night opening error information) to the management device 620 without waiting for the main control unit 300 to start after starting. .

ステップS4417では、主制御通信確認コマンドを受信済みか否かを判定する(ステップS3509)。受信済みの場合は、ステップS4419に進み、そうでない場合はステップS4437に進む。   In step S4417, it is determined whether a main control communication confirmation command has been received (step S3509). If it has been received, the process proceeds to step S4419; otherwise, the process proceeds to step S4437.

以降のステップS4419〜ステップS4439の処理は、ステップS3511からステップS3531までと同様である。   The subsequent processing from step S4419 to step S4439 is the same as that from step S3511 to step S3531.

図69は、例えば、球数制御部600で検出したエラー情報(例えば、夜間開放エラーの情報)を装飾図柄表示装置208および球数UI部680で報知するまでの、第2のエラー報知態様によるタイムチャートの一例を示す。図面の縦軸方向、上から下に時間が経過する。   FIG. 69 is based on the second error notification mode until error information detected by the ball number control unit 600 (for example, information on nighttime opening error) is notified by the decorative symbol display device 208 and the ball number UI unit 680, for example. An example of a time chart is shown. Time elapses from top to bottom in the direction of the vertical axis of the drawing.

例えば、閉店後に電源が遮断されると(1)、球数制御部600では電断時処理として、電断時のうち枠開放回数とガラス枠開放回数を記憶する(2)。電断後(夜間)に枠開放が生じると(3)、カウンタICによって枠開放回数が加算される(4)。翌朝など開店時に電源が投入されると(5)、まず電源制御部600から直接が電源が供給される球数制御部600が起動する。電源投入後に起動時情報フラグがオンになっており(図67(b)参照)、球数制御部600は、夜間枠開放エラーを検出し、当該エラー情報を含む第2のコマンド(エラーコマンド)を管理装置620に送信する(6)   For example, when the power is shut off after the store is closed (1), the ball number control unit 600 stores the number of times the frame has been opened and the number of times the glass frame has been opened as the power interruption process (2). When the frame opens after power interruption (nighttime) (3), the number of times the frame is opened is added by the counter IC (4). When power is turned on at the time of opening the store such as the next morning (5), first, the ball number control unit 600 to which power is directly supplied from the power control unit 600 is activated. The startup time information flag is turned on after the power is turned on (see FIG. 67 (b)), and the ball number control unit 600 detects a nighttime frame opening error, and a second command (error command) including the error information. Is transmitted to the management apparatus 620 (6).

第2のコマンドを受信した管理装置620は、これに含まれるエラー情報に基づき、エラー報知画像を生成し、球数UI部680にエラー報知画像の表示を指示する(7)。 The management device 620 that has received the second command generates an error notification image based on the error information included therein, and instructs the ball count UI unit 680 to display the error notification image (7).

球数制御部600の起動後に、球数制御部600から電源供給を受けて主制御部300が起動すると、最初の主制御通信確認コマンドが球数制御部600に送信される(8)。主制御通信確認コマンドを受信すると、通信確認コマンドを主制御部300に送信する(9)。その後、エラー情報を含む第1のコマンド(エラーコマンド)を主制御部300に送信する(10)。第1のコマンドを受信した主制御部300は、これに含まれるエラー情報に基づき、副制御部(第1副制御部400)にエラー報知を指令する(11)。第1副制御部400はエラーを報知する画像を生成し、装飾図柄表示装置208に表示する(12)。   After the ball number control unit 600 is activated, when the main control unit 300 is activated upon receiving power supply from the ball number control unit 600, an initial main control communication confirmation command is transmitted to the ball number control unit 600 (8). When the main control communication confirmation command is received, the communication confirmation command is transmitted to the main control unit 300 (9). Thereafter, a first command (error command) including error information is transmitted to the main control unit 300 (10). The main control unit 300 that has received the first command instructs the sub control unit (first sub control unit 400) to notify the error based on the error information included therein (11). The first sub-control unit 400 generates an image for notifying an error and displays it on the decorative symbol display device 208 (12).

このような処理によって、電源投入時に球数UI部680にエラー情報が表示され、その後主制御部300および第1副制御部400が起動し、装飾図柄表示装置208が起動した後、これにもエラー情報が表示される。   By such processing, error information is displayed on the ball number UI unit 680 when the power is turned on, and after that, the main control unit 300 and the first sub control unit 400 are activated, and the decorative symbol display device 208 is activated. Error information is displayed.

図70は、装飾図柄表示装置208に表示する画像の表示例(同図(a))と、球数UI部680に表示する画像の表示例(同図(b))を示す。   70 shows a display example of an image displayed on the decorative symbol display device 208 (FIG. 70A) and a display example of an image displayed on the ball count UI unit 680 (FIG. 70B).

例えば、球数UI部680は起動すると直ちに、画像表示部656に電源投入後通常表示される遊技球に関する情報を報知する情報報知画像802と共に、エラー情報を示す画像として「夜間開放エラー」というエラー検出を示す文字のみを表示する。装飾図柄表示装置208の起動前あるいは起動準備中であっても、エラー情報を速報できる。球数UI部680は、装飾図柄表示装置208に表示される画像と比較するとシンプルな表示態様でエラー情報を含む画像を表示する。また、球数UI部680の球数表示部640は、球数制御部600で制御されるので、これにエラーを示す情報(例えば、ERRxxや、E9999)を表示してもよい。   For example, as soon as the ball number UI unit 680 is activated, an error message “night opening error” is displayed as an image indicating error information together with an information notification image 802 that notifies information related to a game ball that is normally displayed on the image display unit 656 after power-on. Display only characters indicating detection. Even before the decorative symbol display device 208 is activated or in preparation for activation, error information can be promptly reported. The ball number UI unit 680 displays an image including error information in a simple display mode as compared with an image displayed on the decorative symbol display device 208. Further, since the ball number display unit 640 of the ball number UI unit 680 is controlled by the ball number control unit 600, information indicating an error (for example, ERRxx or E9999) may be displayed thereon.

<液晶表示装置を用いた第3のエラー報知態様> <Third error notification mode using liquid crystal display device>

図71は、液晶表示装置を用いた第3のエラー報知態様を示す図であり、球数UI部680の上面(正面)図である。   71 is a diagram showing a third error notification mode using the liquid crystal display device, and is a top (front) view of the ball count UI unit 680. FIG.

図70(a)は、管理装置620によって生成されたエラー表示の画像の表示例である。この場合、切替ボタン144のタッチによって、装飾図柄表示装置208に表示されるエラー情報を示す画像を、球数UI部680の画像表示部656に表示できる。   FIG. 70A is a display example of an error display image generated by the management apparatus 620. In this case, an image indicating error information displayed on the decorative symbol display device 208 can be displayed on the image display unit 656 of the ball count UI unit 680 by touching the switching button 144.

図70(b)が切替後の表示例であり、例えば、第1副制御部400が生成した、「夜間開放エラー」というエラー検出を示す文字と、「夜間に5回内枠が開放されました」というエラーの詳細な内容を示す文字を表示できる。この場合、タッチパネル654のうち、切替ボタン144のみ(同じ位置で)表示し、他のボタンは表示しないようにしてもよく、これによりエラー情報の表示領域を大きく確保できる。   FIG. 70 (b) shows a display example after switching, for example, a character indicating the error detection “night opening error” generated by the first sub-control unit 400, and “the inner frame is opened five times at night”. Can be displayed to indicate the detailed contents of the error. In this case, only the switch button 144 may be displayed (at the same position) on the touch panel 654, and the other buttons may not be displayed, thereby ensuring a large error information display area.

また、エラーの詳細情報(例えば、内枠104の開放回数)は、球数制御部600で管理されるので、その情報を管理装置620に送信し、同図(b)に示す画像を管理装置620で生成してもよい。電源投入直後には、同図(a)のエラー情報を速報し、切替ボタン144をタッチすることによって、管理装置620が生成した同図(b)の情報を表示させる。これにより、装飾図柄表示装置208が起動準備中であっても、エラーの詳細な情報を表示させることができる。   Further, since the detailed information on the error (for example, the number of opening of the inner frame 104) is managed by the ball number control unit 600, the information is transmitted to the management device 620, and the image shown in FIG. It may be generated at 620. Immediately after the power is turned on, the error information shown in FIG. 6A is reported immediately, and the information shown in FIG. 5B generated by the management device 620 is displayed by touching the switch button 144. Thereby, even when the decorative symbol display device 208 is preparing for activation, it is possible to display detailed information on the error.

なお、イン球数およびアウト球数を管理する領域内球数管理処理について、電断発生時に領域内球数が存在する場合であっても、電源投入時には新たに、領域内球数管理処理を行ってもよい。   Regarding the in-region ball number management process for managing the number of in-balls and out-balls, a new in-region ball number management process is performed when the power is turned on even if there is an in-region ball number when power interruption occurs. You may go.

また、電断発生時に領域内球数が「0(ゼロ)」以外であっても、電源投入時には新たに、領域内球数管理処理を行ってもよい。   Even if the number of balls in the area is other than “0 (zero)” when power interruption occurs, a new number of balls in the area may be managed when the power is turned on.

また、電源投入時にRAM(バックアップ領域)の領域内球数情報(領域内球数)の記憶領域をクリアしてもよい。   In addition, the storage area of the in-area ball number information (in-area ball number) in the RAM (backup area) may be cleared when the power is turned on.

また、電源投入時に復帰起動処理を行う場合であっても、RAM(バックアップ領域)の領域内球数を記憶する領域をクリアしてもよい。   Even when the return activation process is performed when the power is turned on, the area for storing the number of balls in the area of the RAM (backup area) may be cleared.

また、電源投入時にRAM(バックアップ領域)の領域内球数を記憶する領域に所定値(例えば0)を設定してもよい。   Also, a predetermined value (for example, 0) may be set in an area for storing the number of balls in the RAM (backup area) when the power is turned on.

また、領域内球数が所定値(例えば、−20以下または20以上)となった場合に異常が発生したと判定する異常判定手段を備えてもよい。   Moreover, you may provide the abnormality determination means which determines with abnormality having generate | occur | produced when the number of balls in a area | region becomes predetermined value (for example, -20 or less or 20 or more).

前記所定値は、プラスの値の自然数よりマイナスの値の自然数が少なくてもよい(例えば、−1以下または20以上)。   The predetermined value may have a negative natural number less than a positive natural number (for example, −1 or less or 20 or more).

また、更新条件(球検出センサ604Bの通過)が成立した場合に更新される第一の情報(領域内球数)を記憶可能な記憶手段と、前記第一の情報が所定値となった場合に異常が発生したと判定する判定手段と、を備え、前記判定手段が前記異常が発生したと判定した場合に第二の情報(領域内球数エラー情報)を前記記憶手段が記憶するようにしてもよい。   In addition, storage means capable of storing first information (the number of spheres in the area) that is updated when the update condition (pass of the sphere detection sensor 604B) is satisfied, and when the first information becomes a predetermined value And determining means for determining that an abnormality has occurred, and when the determining means determines that the abnormality has occurred, the storage means stores second information (in-region ball number error information). May be.

また、第一の情報が記憶された記憶手段のアドレスよりも、第二の情報が記憶された記憶手段のアドレスのほうが小さくてもよい。   Further, the address of the storage unit storing the second information may be smaller than the address of the storage unit storing the first information.

また、遊技者の利益情報が記憶された記憶手段のアドレスよりも、第二の情報が記憶された記憶手段のアドレスのほうが大きくてもよい。   Further, the address of the storage means storing the second information may be larger than the address of the storage means storing the player's profit information.

また、領域内球数を外部機器に出力してもよい。また、領域内球数を報知手段で報知してもよい。また、領域内球数を球数表示部640で報知してもよい。また、領域内球数を副制御部(第1副制御部400または第2副制御部500)が制御する表示装置で報知してもよい。また、領域内球数を外部機器が制御する表示装置で報知してもよい。また、領域内球数エラー情報を外部機器に出力してもよい。また、領域内球数エラー情報を報知手段で報知してもよい。また、領域内球数エラー情報を球数表示部640で報知してもよい。また、領域内球数エラー情報を副制御部が制御する表示装置で報知してもよい。また、領域内球数エラー情報を外部機器が制御する表示装置で報知してもよい。   Further, the number of balls in the area may be output to an external device. Moreover, you may alert | report the number of balls in a area | region with an alerting | reporting means. In addition, the number of balls in the area may be notified by the ball number display unit 640. Further, the number of balls in the area may be notified by a display device controlled by the sub control unit (the first sub control unit 400 or the second sub control unit 500). Moreover, you may alert | report with the display apparatus which an external apparatus controls the number of balls in an area | region. Further, the in-region ball number error information may be output to an external device. Further, the in-region ball number error information may be notified by the notification means. Further, the in-region ball number error information may be notified by the ball number display unit 640. Further, the in-region ball number error information may be notified by a display device controlled by the sub-control unit. Further, the in-region ball number error information may be notified by a display device controlled by an external device.

また、球数制御部600は、非遊技状態(カード未挿入状態の場合、遊技球数が「0」の場合、球発射ハンドル134のタッチセンサがオフである場合、またこれらのうちいずれかの状態となってから所定時間経過した場合など)を検出した場合に、主制御部300に省電力要求コマンドを出力し、主制御部300は、副制御部に省電力要求コマンドを出力し、副制御部は、省電力要求コマンドが入力された場合に、省電力状態に移行するようにしてもよい。   In addition, the ball number control unit 600 is in a non-game state (when the card is not inserted, when the number of game balls is “0”, when the touch sensor of the ball launch handle 134 is off, or any one of them. In the case where a predetermined time has elapsed since entering the state), a power saving request command is output to the main control unit 300, and the main control unit 300 outputs a power saving request command to the sub control unit. The control unit may shift to a power saving state when a power saving request command is input.

また、第一の情報が記憶された記憶手段のアドレスの上位バイトの値は、第一のレジスタ(Tレジスタ)が記憶する特定の値であってもよい。   Further, the value of the upper byte of the address of the storage means storing the first information may be a specific value stored in the first register (T register).

また、第二の情報が記憶された記憶手段のアドレスの上位バイトの値は、第一のレジスタ(Tレジスタ)が記憶する特定の値であってもよい。   Further, the value of the upper byte of the address of the storage means storing the second information may be a specific value stored in the first register (T register).

復帰制御条件は、夜に第二の信号が制御手段に入力され、次の日の朝に該制御手段に第一の信号が入力された場合であっても、バックアップ電源が残っていれば、成立する場合がある。   The return control condition is that even if the second signal is input to the control means at night and the first signal is input to the control means the next morning, if the backup power source remains, May hold.

また、第二の信号が制御手段に入力されてから該制御手段に第一の信号が入力されるまでのタイムラグは、極短時間(例えば、数ナノs、数マイクロs、数ミリs等)から長時間(例えば、数時間、半日、一日、数日等)様々な時間が考えられる。   The time lag from when the second signal is input to the control means until the first signal is input to the control means is extremely short (for example, several nanoseconds, several microseconds, several milliseconds, etc.) Various times can be considered for a long time (for example, several hours, half a day, one day, several days, etc.).

また、バックアップ電源が残存していればある程度の長時間のタイムラグを許容できるものである。   Further, if the backup power source remains, a long time lag can be allowed.

なお、第一の制御手段が球数制御部600であり、第二の制御手段が主制御部300であってもよい。また、第一の制御手段が球数制御部600であり、第二の制御手段が主制御部300と第一副制御部400であってもよい。また、第一の制御手段が球数制御部600であり、第二の制御手段が主制御部300と第一副制御部400と第二副制御部500であってもよい。また、第一の制御手段が球数制御部600と主制御部300であり、第二の制御手段が第一副制御部400であってもよい。また、第一の制御手段が球数制御部600と主制御部300であり、第二の制御手段が第一副制御部400と第二副制御部500であってもよい。   The first control unit may be the ball number control unit 600, and the second control unit may be the main control unit 300. Further, the first control unit may be the ball number control unit 600, and the second control unit may be the main control unit 300 and the first sub control unit 400. Further, the first control unit may be the ball number control unit 600, and the second control unit may be the main control unit 300, the first sub control unit 400, and the second sub control unit 500. Further, the first control unit may be the ball number control unit 600 and the main control unit 300, and the second control unit may be the first sub control unit 400. Further, the first control unit may be the ball number control unit 600 and the main control unit 300, and the second control unit may be the first sub control unit 400 and the second sub control unit 500.

また、第二の制御手段は複数の副制御手段から構成され、複数の副制御手段のうちのそれぞれの副制御手段は別の基板に設けられていてもよい。   The second control means may be composed of a plurality of sub-control means, and each sub-control means of the plurality of sub-control means may be provided on a separate substrate.

また、第一の制御手段は、異常判定手段による判定結果が特定の判定結果であった場合に、異常発生中フラグをオンにするように構成され、第一の信号出力条件は、異常発生中フラグがオンであることを少なくとも含むものであってもよい。   The first control unit is configured to turn on the abnormality occurrence flag when the determination result by the abnormality determination unit is a specific determination result, and the first signal output condition is that the abnormality is occurring. It may include at least that the flag is on.

また、第一の制御手段は、異常判定手段による判定結果が特定の判定結果であった場合に、異常発生中フラグをオンにするように構成され、第二の信号出力条件は、異常発生中フラグがオンであることを少なくとも含むものであってもよい。   The first control means is configured to turn on the abnormality occurrence flag when the determination result by the abnormality determination means is a specific determination result, and the second signal output condition is that the abnormality is occurring. It may include at least that the flag is on.

第一及び第二の信号出力条件に含まれる特定の判定結果は同一のものであってもよい。   The specific determination results included in the first and second signal output conditions may be the same.

第一及び第二の信号出力条件に含まれる異常発生中フラグは同一のものであってもよい。   The abnormality occurrence flag included in the first and second signal output conditions may be the same.

以上、第1の実施形態について説明したが、第1の実施形態に係る封入式遊技台における機能(例えばシリアル通信回路、シリアル通信処理)の一部または全てを、後述する実施形態2以降で説明する遊技台に適用することもできる。例えば、第1の実施形態における主制御部300と球数制御部600間のシリアル通信処理を、以下に説明する実施形態2以降の、主制御部300と払出制御部600間の通信処理に適用することが可能である。   Although the first embodiment has been described above, some or all of the functions (for example, serial communication circuit, serial communication processing) in the enclosed game machine according to the first embodiment will be described in the second and later embodiments described later. It can also be applied to a game table. For example, the serial communication process between the main control unit 300 and the ball number control unit 600 in the first embodiment is applied to the communication process between the main control unit 300 and the payout control unit 600 in the second and later embodiments described below. Is possible.

また、次の実施形態2以降で説明する遊技台(例えば、実施形態2に係るパチンコ機100や、実施形態3に係るスロットマシン1100など)が備える構成の一部または全てや、当該遊技台が実行する処理の一部または全てを、本実施形態に係る封入式遊技台(パチンコ機100)に適用することもできる。   In addition, a part or all of a configuration of a gaming table (for example, a pachinko machine 100 according to the second embodiment, a slot machine 1100 according to the third embodiment, etc.) described in the second and subsequent embodiments, Part or all of the processing to be executed can also be applied to the enclosed game machine (pachinko machine 100) according to the present embodiment.

例えば、実施形態2に係るパチンコ機100が備えるROM306、RAM308、内蔵レジスタ、メモリ空間、I/O空間、LD命令、CALL命令、EXESUB命令、特殊命令、第2特殊命令、第3特殊命令、第4特殊命令などの構成の一部または全てを、本実施形態に係る封入式遊技台が備えていてもよい。   For example, the ROM 306, RAM 308, built-in register, memory space, I / O space, LD instruction, CALL instruction, EXESUB instruction, special instruction, second special instruction, third special instruction, and the like included in the pachinko machine 100 according to the second embodiment Part or all of the configuration such as the 4 special instructions may be included in the enclosed game machine according to the present embodiment.

また、実施形態2に係るパチンコ機100が実行する主制御部メイン処理、主制御部タイマ割込処理、初期化処理、Tレジチェック処理、特図状態更新処理、普図状態更新処理、特別図柄変動時間抽選処理、初期設定処理などの各種処理の一部または全てを、本実施形態に係る封入式遊技台が実行してもよい。   In addition, the main control unit main process, main control unit timer interrupt process, initialization process, T-registration check process, special figure state update process, general figure state update process, special symbol executed by the pachinko machine 100 according to the second embodiment The enclosed game machine according to the present embodiment may execute part or all of various processes such as a variable time lottery process and an initial setting process.

また、実施形態3に係るパチンコ機が実行する主制御部メイン処理、主制御部タイマ割込処理、リセットが実行された場合の処理、電断時処理、特図当選乱数および普図当選乱数を取得する処理などの各種処理の一部または全てを、本実施形態に係る封入式遊技台が実行してもよい。   In addition, the main control unit main process, main control unit timer interrupt process, process when the reset is executed, power interruption process, special figure winning random number, and normal figure winning random number executed by the pachinko machine according to the third embodiment. The enclosed game machine according to the present embodiment may execute part or all of various processes such as a process to be acquired.

また、実施形態4に係るパチンコ機が備えるCPU304、ROM306、RAM308、外部バス制御回路3110、パラレル入力ポート3102、アドレスデコード回路3103、タイマ回路311、カウンタ回路312、リセット制御回路314、割込み制御回路3100、クロック回路3200、乱数生成回路318などの構成の一部または全てを、本実施形態に係る封入式遊技台が備えていてもよい。   The CPU 304, ROM 306, RAM 308, external bus control circuit 3110, parallel input port 3102, address decoding circuit 3103, timer circuit 311, counter circuit 312, reset control circuit 314, interrupt control circuit 3100 provided in the pachinko machine according to the fourth embodiment. A part or all of the configuration of the clock circuit 3200, the random number generation circuit 318, and the like may be included in the enclosed game machine according to this embodiment.

例えば、他の実施形態や実施形態9に係るパチンコ機が備える第5特殊命令(WARU命令)、パッケージ、ICソケット、コネクト部、ソケット端子、配線パターン、基板などの構成の一部または全てや、当該遊技台が実行する実行する主制御部メイン処理、主制御部タイマ割込処理、固定延長処理、ランダム延長処理、タイマ更新処理などの処理の一部または全てを本実施形態に係る封入式遊技台が備えていてもよい。   For example, part or all of the configuration of the fifth special instruction (WARU instruction), package, IC socket, connection unit, socket terminal, wiring pattern, substrate, etc. included in the pachinko machine according to another embodiment or embodiment 9, Enclosed game according to the present embodiment, part or all of the main control unit main process, main control unit timer interrupt process, fixed extension process, random extension process, timer update process, etc. executed by the gaming machine A stand may be provided.

また、実施形態7に係るパチンコ機が実行する乱数取得判定/取得処理などの各種処理の一部または全てを、本実施形態に係る封入式遊技台が実行してもよい。   In addition, the enclosed game machine according to the present embodiment may execute part or all of various processes such as the random number acquisition determination / acquisition process performed by the pachinko machine according to the seventh embodiment.

また、実施形態8に係るパチンコ機が備える乱数回路などの構成や、実施形態8に係るパチンコ機が実行する乱数取得処理などの処理の一部または全てを、本実施形態に係る封入式遊技台が備えていてもよい。   In addition, the configuration of a random number circuit included in the pachinko machine according to the eighth embodiment and part or all of the processing such as the random number acquisition process executed by the pachinko machine according to the eighth embodiment are included in the enclosed game machine according to the present embodiment. May have.

また、実施形態10に係るパチンコ機が実行するハードラッチ、ソフトラッチ、乱数取得処理、入力ポート状態更新処理における入賞パターン判定などの処理の一部または全てを、本実施形態に係る封入式遊技台が実行してもよい。   In addition, a part or all of processing such as hard latch, soft latch, random number acquisition processing, winning pattern determination processing in the input port state update processing, etc. executed by the pachinko machine according to the tenth embodiment is included in the enclosed game machine according to the present embodiment. May be executed.

本実施形態に係るパチンコ機100は、外部装置(例えば、管理装置620)と少なくとも接続された制御手段(例えば、制御部)と、遊技媒体(例えば、機内球710)が少なくとも転動可能な遊技領域(例えば、遊技領域124)と、前記遊技媒体を前記遊技領域に少なくとも発射可能な発射手段(例えば、発射装置622)と、前記遊技領域から退出した前記遊技媒体を前記発射手段に少なくとも供給可能な遊技媒体経路(例えば、遊技媒体経路610)とを少なくとも備えた遊技媒体封入式の遊技台であって、前記制御手段は、前記遊技領域に進入する前記遊技媒体を少なくとも検出可能な第一の検出手段(例えば、投入検出センサ)と接続されたものであり、前記制御手段は、前記遊技領域から退出された前記遊技媒体を少なくとも検出可能な第二の検出手段(例えば、排出検出センサ)に接続されたものであり、前記制御手段は、持ち媒体情報(例えば、遊技球数情報)を前記外部装置に送信する指令を受付けた場合に、前記遊技領域内に残存媒体が存在する場合であっても、該持ち媒体情報を含む信号を前記外部装置に少なくとも送信することが可能なものであり、前記制御手段は、前記第一および第二の検出手段による検出結果を用いて、前記残存媒体の有無を少なくとも判定可能なものであり、前記制御手段は、前記第一および第二の検出手段による検出結果に応じて、前記持ち媒体情報を少なくとも更新可能なものである。   The pachinko machine 100 according to the present embodiment is a game in which at least a control means (for example, a control unit) connected to an external device (for example, the management device 620) and a game medium (for example, an in-vehicle ball 710) can roll. An area (for example, a game area 124), a launching means (for example, a launching device 622) capable of firing at least the game medium into the game area, and the game medium that has left the game area can be supplied to the launching means. A game medium-enclosed game machine including at least a game medium path (for example, a game medium path 610), wherein the control means is capable of detecting at least the game medium entering the game area. The control means is connected to a detection means (for example, an input detection sensor), and the control means at least reduces the game medium that has left the game area. The control means accepts an instruction to transmit possession medium information (eg, game ball number information) to the external device. In this case, even when there is a remaining medium in the gaming area, it is possible to transmit at least a signal including the possessed medium information to the external device, and the control means includes the first The presence or absence of the remaining medium can be determined at least using the detection result by the second detection means, and the control means can determine the holding according to the detection results by the first and second detection means. The medium information can be updated at least.

このような構成とすることで、遊技媒体の管理に関するメンテナンス性を向上することができる場合があるとともに、遊技媒体の量に関する情報の送信後の処理(例えば、当該情報の記憶媒体への記憶や、当該記憶媒体の返却など)を速やかに行うことができる場合がある。   With such a configuration, there are cases where maintenance performance relating to management of game media can be improved, and processing after transmission of information relating to the amount of game media (for example, storage of the information in a storage medium or In some cases, the storage medium can be returned quickly).

前記制御手段は、持ち媒体情報を前記外部装置に送信する指令を受付けた場合に、前記遊技領域内に残存媒体が存在するか否かを判定せずに、該持ち媒体情報を含む信号を前記外部装置に少なくとも送信することが可能なものであってもよい。   When the control means receives a command to transmit possessed medium information to the external device, the control means does not determine whether or not there is a remaining medium in the game area, and outputs a signal including the retained medium information. It may be capable of transmitting at least to an external device.

また、本実施形態に係るパチンコ機100は、遊技制御を少なくとも実行可能な制御手段(例えば、制御部)と、遊技媒体(例えば、機内球710)が少なくとも転動可能な遊技領域(例えば、遊技領域124)と、前記遊技媒体を前記遊技領域に少なくとも発射可能な発射手段(例えば、発射手段622)と、前記遊技領域から排出された前記遊技媒体を前記発射手段に少なくとも供給可能な遊技媒体経路(例えば、遊技媒体経路610)と、を少なくとも備えた遊技媒体封入式の遊技台であって、前記制御手段は、前記遊技媒体の量を少なくとも管理可能な管理装置(例えば、管理装置620)に接続されたものであり、前記制御手段は、前記遊技領域に発射される前記遊技媒体の通過を検出する第一の検出手段(例えば、減算センサ604Z)と、前記遊技領域から排出される前記遊技媒体の通過を検出する第二の検出手段(例えば、入賞検出センサ604Sおよび非入賞検出センサ604K)に接続し、所定の期間に、前記第一の検出手段を通過した前記遊技媒体の第一の数量(例えば、イン球数)と、前記第二の検出手段を通過した前記遊技媒体の第二の数量(例えば、アウト球数)を記憶し、前記一の数量から第二の数量を減じて前記遊技媒体の領域内数量(例えば、領域内球数)を算出し、前記制御手段は、遊技者による前記遊技媒体の量に関する情報を前記管理装置に送信する指令を受付けた場合には、前記領域内数量が存在する場合であっても、前記情報を前記管理装置に送信することが少なくとも可能なものである。   In addition, the pachinko machine 100 according to the present embodiment has at least a control means (for example, a control unit) capable of executing game control and a game area (for example, game) in which a game medium (for example, the in-flight ball 710) can roll at least. Area 124), launching means (for example, launching means 622) capable of firing at least the game medium into the game area, and game medium path capable of supplying at least the game medium discharged from the game area to the launching means. (E.g., a game medium path 610), and the control means includes a management device (e.g., a management device 620) capable of managing at least the amount of the game medium. The control means is connected to a first detection means (for example, a subtraction sensor 6) for detecting the passage of the game medium launched into the game area. 4Z) and second detection means (for example, a winning detection sensor 604S and a non-winning detection sensor 604K) for detecting the passage of the game medium ejected from the gaming area, A first quantity (for example, the number of in-balls) of the game medium that has passed the detection means, and a second quantity (for example, the number of out-balls) of the game medium that has passed the second detection means. Subtracting the second quantity from the one quantity to calculate the in-area quantity of the game medium (for example, the number of balls in the area), and the control means manages the information about the quantity of the game medium by the player When a command to be transmitted to the apparatus is accepted, the information can be transmitted to the management apparatus at least even if the in-area quantity exists.

本実施形態に係るパチンコ機100は、外部装置(例えば、管理装置620)と少なくとも接続された制御手段(例えば、制御部)と、遊技媒体(例えば、機内球710)が少なくとも転動可能な遊技領域(例えば、遊技領域124)と、前記遊技媒体を前記遊技領域に少なくとも発射可能な発射手段(例えば、発射装置622)と、前記遊技領域から退出した前記遊技媒体を前記発射手段に少なくとも供給可能な遊技媒体経路(例えば、遊技媒体経路610)と、を少なくとも備えた遊技媒体封入式の遊技台であって、前記制御手段は、前記遊技領域に進入する前記遊技媒体を少なくとも検出可能な第一の検出手段(例えば、投入検出センサ)と接続されたものであり、前記制御手段は、前記遊技領域から退出された前記遊技媒体を少なくとも検出可能な第二の検出手段(例えば、排出検出センサ)に接続されたものであり、前記制御手段は、持ち媒体情報(例えば、遊技球数情報)を前記外部装置に送信する指令を受付けた場合に、前記遊技媒体の前記発射手段による発射を待って、該持ち媒体情報を含む信号を前記外部装置に少なくとも送信することが可能なものであり、前記制御手段は、前記第一および第二の検出手段による検出結果を用いて、前記残存媒体の有無を少なくとも判定可能なものであり、前記制御手段は、前記第一および第二の検出手段による検出結果に応じて、前記持ち媒体情報を少なくとも更新可能なものである。   The pachinko machine 100 according to the present embodiment is a game in which at least a control means (for example, a control unit) connected to an external device (for example, the management device 620) and a game medium (for example, an in-vehicle ball 710) can roll. An area (for example, a game area 124), a launching means (for example, a launching device 622) capable of firing at least the game medium into the game area, and the game medium that has left the game area can be supplied to the launching means. A game medium-enclosed game table including at least a game medium path (for example, game medium path 610), wherein the control means can detect at least the game medium entering the game area. Connected to a detection means (for example, a detection sensor), and the control means reduces the number of the game media that have left the game area. Is connected to a second detection means (for example, a discharge detection sensor) that can also detect, and the control means accepts a command to transmit possession medium information (for example, game ball number information) to the external device. When the game medium is released by the launching means, it is possible to transmit at least a signal including the possessed medium information to the external device. The presence / absence of the remaining medium can be determined at least using the detection result of the second detection means, and the control means determines the possessed medium information according to the detection results of the first and second detection means. Is at least updatable.

このような構成とすることで、遊技媒体の管理に関するメンテナンス性を向上することができる場合があるとともに、持ち媒体情報の送信後の処理(例えば、当該情報の記憶媒体への記憶や、当該記憶媒体の返却など)を速やかに行うことができる場合がある。更に、持ち媒体情報を管理装置に送信することを指令された時点で発射の準備がされていた遊技媒体は消費した分として持ち媒体情報に反映されるので、持ち媒体情報を記憶媒体に記憶する場合などには、正確な量として記憶することが可能となる場合がある。   With such a configuration, there are cases where maintenance performance relating to management of game media can be improved, and processing after transmission of possessed media information (for example, storage of the information in a storage medium, or storage of the information) In some cases, media can be returned quickly. Furthermore, since the game medium that has been prepared for launching when it is instructed to transmit the possessed medium information to the management device is reflected in the possessed medium information as consumed, the retained medium information is stored in the storage medium. In some cases, it may be possible to store it as an accurate amount.

また、前記制御手段は、持ち球情報を前記外部装置に送信する指令を受付けた場合に、前記待機処理(例えば、送信を遅延する処理)を行ってから、該持ち球情報を前記外部装置に少なくとも送信することが可能なものであり、前記発射手段が発射準備状態である場合にのみ、前記待機処理を行ってから、前記送信を行うように構成してもよい。また前記発射手段が発射準備状態でなければ、前記待機処理を行わずに、前記送信を行うように構成してもよい。ここで発射準備状態はどのような状態を対応させてもよいが、例えば発射手段が発射動作を開始している場合には、前記発射手段が発射準備状態にあるものとしてもよいし、発射手段が完全に停止している場合以外を、前記発射手段が発射準備状態にあるものとしてもよいし、発射手段が動作を開始する前に、該開始を禁止する動作が可能な状態以外を、前記発射手段が発射準備状態にあるものとしてもよいし、前記発射手段に供給する球が存在していれば、発射手段発射準備状態にあるものとしてもよい。前記発射手段が発射準備状態であるかどうかに関わらず、前記発射手段が次に待機状態に戻るまでの間、前記待機処理を行うように構成してもよい。ここでの待機状態は、発射杆622aが待機位置で静止している状態としてもよく、待機位置は、発射手段が発射動作を行った後で、発射球が発射位置に供給されるまでの間に発射杆622aが制している位置のことを示すものとしてもよい。   In addition, when the control unit receives an instruction to transmit the ball information to the external device, the control unit performs the standby process (for example, a process for delaying transmission) and then transmits the ball information to the external device. The transmission may be performed after the standby process is performed only when the transmission unit is at least capable of transmitting and the launching unit is ready to launch. Further, if the launching unit is not in the launch ready state, the transmission may be performed without performing the standby process. Here, the launch preparation state may correspond to any state. For example, when the launching unit has started the launching operation, the launching unit may be in the launch ready state, or the launching unit The launching unit may be in a launch ready state except when the launching unit is completely stopped, and before the launching unit starts its operation, the launching unit is in a state other than the state in which the start prohibiting operation is possible. The launching unit may be in a firing preparation state, or may be in the firing unit firing preparation state if there is a sphere to be supplied to the launching unit. Regardless of whether or not the launching means is in a firing ready state, the standby process may be performed until the firing means returns to the standby state next time. The standby state here may be a state in which the launching rod 622a is stationary at the standby position. The standby position is a period from when the launching unit performs the launch operation until the launch ball is supplied to the launch position. It is good also as what shows the position which the launching rod 622a is controlling.

また、前記制御手段は、持ち媒体情報を前記外部装置に送信する指令を受付けた場合に、前記遊技領域内に残存媒体が存在するか否かを判定せずに、該持ち媒体情報を含む信号を前記外部装置に少なくとも送信することが可能なものであってもよい。   In addition, when the control unit receives a command to transmit possessed medium information to the external device, the control unit does not determine whether or not there is a remaining medium in the game area, and includes a signal including the retained medium information. May be transmitted to at least the external device.

また、本実施形態に係るパチンコ機100は、遊技制御を少なくとも実行可能な制御手段(例えば、制御部)と、遊技媒体(例えば、機内球710)が少なくとも転動可能な遊技領域(例えば、遊技領域124)と、前記遊技媒体を前記遊技領域に少なくとも発射可能な発射手段(例えば、発射装置622)と、前記遊技領域から排出された前記遊技媒体を前記発射手段に少なくとも供給可能な遊技媒体経路(例えば、遊技媒体経路610)と、を少なくとも備えた遊技媒体封入式の遊技台であって、前記制御手段は、前記遊技媒体の量を少なくとも管理可能な管理装置(例えば、管理装置620)に接続されたものであり、前記制御手段は、遊技者による前記遊技媒体の量に関する情報を前記管理装置に送信する指令を受付けた場合には、前記指令を受付けた際に発射の準備がされている前記遊技媒体の前記発射手段による発射を待って、前記情報を前記管理装置に送信することが少なくとも可能なものである。   In addition, the pachinko machine 100 according to the present embodiment has at least a control means (for example, a control unit) capable of executing game control and a game area (for example, game) in which a game medium (for example, the in-flight ball 710) can roll at least. Area 124), launching means (for example, launching device 622) capable of firing at least the game medium into the game area, and game medium path capable of supplying at least the game medium discharged from the game area to the launching means. (E.g., a game medium path 610), and the control means includes a management device (e.g., a management device 620) capable of managing at least the amount of the game medium. And when the control means accepts a command to send information on the amount of the game medium by the player to the management device, Waiting for firing by the firing means of the game media preparation is firing upon receiving the serial command, it is intended that at least possible to transmit the information to the management device.

本実施形態に係るパチンコ機100は、外部装置(例えば、管理装置620)と少なくとも接続された制御手段(例えば、制御部)と、遊技媒体(例えば、機内球710)が少なくとも転動可能な遊技領域(例えば、遊技領域124)と、前記遊技媒体を前記遊技領域に少なくとも発射可能な発射手段(例えば、発射装置622)と、前記遊技領域から退出した前記遊技媒体を前記発射手段に少なくとも供給可能な遊技媒体経路(例えば、遊技媒体経路610)と、を少なくとも備えた遊技媒体封入式の遊技台であって、前記制御手段は、前記遊技領域に進入する前記遊技媒体を少なくとも検出可能な第一の検出手段(例えば、投入検出センサ)と接続されたものであり、前記制御手段は、前記遊技領域から退出された前記遊技媒体を少なくとも検出可能な第二の検出手段(例えば、排出検出センサ)に接続されたものであり、前記制御手段は、ICカード返却情報を前記外部装置に送信する指令を受付けた場合に、前記遊技領域内に残存媒体が存在する場合であっても、該ICカード返却情報を前記外部装置に少なくとも送信することが可能なものであり、前記制御手段は、前記第一および第二の検出手段による検出結果を用いて、前記残存媒体の有無を少なくとも判定可能なものである。   The pachinko machine 100 according to the present embodiment is a game in which at least a control means (for example, a control unit) connected to an external device (for example, the management device 620) and a game medium (for example, an in-vehicle ball 710) can roll. An area (for example, a game area 124), a launching means (for example, a launching device 622) capable of firing at least the game media into the game area, and the game medium that has left the game area can be supplied to the launching means. A game medium-enclosed game table including at least a game medium path (for example, game medium path 610), wherein the control means can detect at least the game medium entering the game area. Connected to a detection means (for example, a detection sensor), and the control means at least reduces the game medium that has been withdrawn from the game area. It is connected to a second detection means (for example, a discharge detection sensor) that can be detected, and when the control means accepts a command to send IC card return information to the external device, The IC card return information can be transmitted at least to the external device even when there is a remaining medium, and the control means detects the detection results by the first and second detection means. Can be used to at least determine the presence or absence of the remaining medium.

このような構成とすることで、遊技媒体の管理に関するメンテナンス性を向上することができる場合があるとともに、遊技媒体の遊技領域内の落下および遊技領域からの排出を待機する必要がないので、記憶媒体の速やかな返却が可能となる場合がある。   With such a configuration, there is a case where maintenance for game media management may be improved, and it is not necessary to wait for the game media to fall in the game area and to be discharged from the game area. It may be possible to return the media promptly.

また、本実施形態に係るパチンコ機100は、遊技制御を少なくとも実行可能な制御手段(例えば、制御部)と、遊技媒体(例えば、機内球710)が少なくとも転動可能な遊技領域(例えば、遊技領域124)と、前記遊技媒体を前記遊技領域に少なくとも発射可能な発射手段(例えば、発射装置622)と、前記遊技領域から排出された前記遊技媒体を前記発射手段に少なくとも供給可能な遊技媒体経路(例えば、遊技媒体経路610)と、を少なくとも備えた遊技媒体封入式の遊技台であって、前記制御手段は、前記遊技媒体の量を少なくとも管理可能な管理装置(例えば、管理装置620)に接続されたものであり、前記制御手段は、前記遊技領域に発射される前記遊技媒体の通過を検出する第一の検出手段(例えば、減算センサ604Z)と、前記遊技領域から排出される前記遊技媒体の通過を検出する第二の検出手段(例えば、入賞検出センサ604Sおよび非入賞検出センサ604K)に接続し、所定の期間に、前記第一の検出手段を通過した前記遊技媒体の第一の数量(例えば、イン球数)と、前記第二の検出手段を通過した前記遊技媒体の第二の数量(例えば、アウト球数)を記憶し、前記一の数量から第二の数量を減じて前記遊技媒体の領域内数量(例えば、領域内球数)を算出し、前記制御手段は、遊技者による前記遊技媒体の量を記憶可能な記憶媒体の返却指定を前記管理装置に送信する指令を受付けた場合には、前記領域内数量が存在する場合であっても、前記情報を前記管理装置に送信することが少なくとも可能なものである。   In addition, the pachinko machine 100 according to the present embodiment has at least a control means (for example, a control unit) capable of executing game control and a game area (for example, game) in which a game medium (for example, the in-flight ball 710) can roll at least. Area 124), launching means (for example, launching device 622) capable of firing at least the game medium into the game area, and game medium path capable of supplying at least the game medium discharged from the game area to the launching means. (E.g., a game medium path 610), and the control means includes a management device (e.g., a management device 620) capable of managing at least the amount of the game medium. The control means is connected to a first detection means (for example, a subtraction sensor 6) for detecting the passage of the game medium launched into the game area. 4Z) and second detection means (for example, a winning detection sensor 604S and a non-winning detection sensor 604K) for detecting the passage of the game medium ejected from the gaming area, A first quantity (for example, the number of in-balls) of the game medium that has passed the detection means, and a second quantity (for example, the number of out-balls) of the game medium that has passed the second detection means. Subtracting the second quantity from the one quantity to calculate the in-area quantity of the game medium (for example, the number of balls in the area), and the control means is a memory capable of storing the amount of the game medium by the player When an instruction to transmit a medium return designation to the management apparatus is received, the information can at least be transmitted to the management apparatus even if the in-area quantity exists.

本実施形態に係るパチンコ機100は、外部装置(例えば、管理装置620)と少なくとも接続された制御手段(例えば、制御部)と、遊技媒体(例えば、機内球710)が少なくとも転動可能な遊技領域(例えば、遊技領域124)と、前記遊技媒体を前記遊技領域に少なくとも発射可能な発射手段(例えば、発射装置622)と、前記遊技領域から退出した前記遊技媒体を前記発射手段に少なくとも供給可能な遊技媒体経路(例えば、遊技媒体経路610)と、を少なくとも備えた遊技媒体封入式の遊技台であって、前記制御手段は、ICカード返却情報を前記外部装置に少なくとも送信することが可能なものであり、表示手段(例えば、球数UI部680)をさらに備え、前記表示手段は、前記ICカードに関する情報を表示可能なものであり、前記表示手段は、遊技を演出する演出表示を表示可能なものである。   The pachinko machine 100 according to the present embodiment is a game in which at least a control means (for example, a control unit) connected to an external device (for example, the management device 620) and a game medium (for example, an in-vehicle ball 710) can roll. An area (for example, a game area 124), a launching means (for example, a launching device 622) capable of firing at least the game media into the game area, and the game medium that has left the game area can be supplied to the launching means. A game medium-enclosed game machine including at least a game medium path (for example, game medium path 610), wherein the control means can transmit at least IC card return information to the external device A display means (for example, a ball count UI unit 680), wherein the display means is capable of displaying information on the IC card. There, the display means is capable of displaying a representation display to produce a game.

このような構成とすることで、遊技媒体の管理に関するメンテナンス性を向上することができる場合があるとともに、前記表示手段による多彩な演出が可能となり、遊技者の興趣を高めることができる場合がある。   With such a configuration, there may be a case where maintenance performance relating to management of game media can be improved, and a variety of effects can be provided by the display means, which can enhance the interest of the player. .

また、本実施形態に係るパチンコ機100は、遊技制御を少なくとも実行可能な制御手段(例えば、制御部)と、遊技媒体(例えば、機内球710)が少なくとも転動可能な遊技領域(例えば、遊技領域124)と、前記遊技媒体を前記遊技領域に少なくとも発射可能な発射手段(例えば、発射装置622)と、前記遊技領域から排出された前記遊技媒体を前記発射手段に少なくとも供給可能な遊技媒体経路(例えば、遊技媒体経路610)と、情報を表示可能な表示手段(例えば、枠側表示装置658)と、を少なくとも備えた遊技媒体封入式の遊技台であって、前記制御手段は、前記遊技媒体の量を少なくとも管理可能な管理装置(例えば、管理装置620)に接続されたものであり、前記表示手段は、前記遊技媒体の量に関する情報を表示可能なものであり、前記表示手段は、遊技を演出する演出表示を表示可能なものとしてもよい。   In addition, the pachinko machine 100 according to the present embodiment has at least a control means (for example, a control unit) capable of executing game control and a game area (for example, game) in which a game medium (for example, the in-flight ball 710) can roll at least. Area 124), launching means (for example, launching device 622) capable of firing at least the game medium into the game area, and game medium path capable of supplying at least the game medium discharged from the game area to the launching means. (For example, a game medium path 610) and a display means capable of displaying information (for example, a frame-side display device 658). It is connected to a management device (for example, the management device 620) capable of managing at least the amount of media, and the display means displays information on the amount of game media. Are those shown possible, the display means may be capable displays an effect display to produce a game.

また、前記制御手段(例えば、制御部)は、前記遊技制御を実行可能な第一の制御手段(例えば、主制御部300)と、前記持ち媒体情報に関する制御が少なくとも可能な第二の制御手段(例えば、球数制御部600)を含み、前記第二の制御手段と前記管理装置(例えば、管理装置620)とは双方向の通信が可能である、ものとしてもよい。   The control means (for example, the control unit) includes a first control means (for example, the main control unit 300) capable of executing the game control, and a second control means capable of at least control regarding the possessed medium information. (For example, the ball number control unit 600), and the second control means and the management device (for example, the management device 620) may be capable of bidirectional communication.

このような構成とすることで、暗号化処理などによって第二の制御手段と管理装置間の通信データの整合性を確認することができ、これらのインターフェース部を狙った不正アクセスを防ぐことができる場合がある。また、例えば第二の制御手段から取得した遊技台の固有の情報(固有IDなど)を管理装置の通信網を経由して外部の管理センタなどに登録された遊技台の固有の情報と照合することで遊技台の認証を行うことが可能となり、電源投入時などに判定を行うことで不正改造の発見が容易となる場合がある。   By adopting such a configuration, it is possible to confirm the consistency of communication data between the second control unit and the management apparatus by encryption processing or the like, and to prevent unauthorized access aimed at these interface units. There is a case. Also, for example, the unique information (such as unique ID) of the gaming machine acquired from the second control means is collated with the unique information of the gaming machine registered in an external management center or the like via the communication network of the management device. Thus, it is possible to authenticate the gaming machine, and it may be easy to find unauthorized modification by making a determination at the time of power-on.

また、前記第一の制御手段(例えば、主制御部300)と前記第二の制御手段(例えば、球数制御部600)とは双方向の通信が可能である、としてもよい。   The first control unit (for example, the main control unit 300) and the second control unit (for example, the ball number control unit 600) may be capable of bidirectional communication.

このような構成とすることで、暗号化処理などによって第一の制御手段と第二の制御手段間の通信データの整合性を確認することができ、これらのインターフェース部を狙った不正アクセスを防ぐことができる場合がある。   By adopting such a configuration, it is possible to confirm the consistency of communication data between the first control means and the second control means by encryption processing or the like, and prevent unauthorized access aimed at these interface units. There are cases where it is possible.

また、前記管理装置(例えば、管理装置620)は、携帯型の記憶媒体(例えば、ICカード)に記憶された記憶内容にアクセスが可能なものであり、前記持ち媒体情報は、前記記憶媒体に記憶され持ち媒体(例えば、遊技球数)との交換が可能な金銭の残高であってもよい。   Further, the management device (for example, the management device 620) can access the storage contents stored in a portable storage medium (for example, an IC card), and the possessed medium information is stored in the storage medium. It may be a balance of money that can be exchanged with a stored medium (for example, the number of game balls).

このような構成とすることで、例えば、持ち媒体情報を記憶媒体に記憶することが可能となり、遊技者の保持する持ち媒体に交換可能な残高の管理が容易になる場合がある。   With such a configuration, for example, possession medium information can be stored in a storage medium, and the management of a balance exchangeable for a possession medium held by a player may be facilitated.

また、前記管理装置(例えば、管理装置620)は、携帯型の記憶媒体(例えば、ICカード)に記憶された記憶内容にアクセスが可能なものであり、前記持ち媒体情報は、前記記憶媒体に記憶されている遊技球の貯球数であってもよい。   Further, the management device (for example, the management device 620) can access the storage contents stored in a portable storage medium (for example, an IC card), and the possessed medium information is stored in the storage medium. It may be the number of stored game balls.

このような構成とすることで、例えば、持ち媒体情報を記憶媒体に記憶することが可能となり、遊技者の保持する持ち媒体の管理が容易になる場合がある。   With such a configuration, for example, possessed medium information can be stored in a storage medium, and management of the possessed medium held by the player may be facilitated.

本実施形態に係るパチンコ機100は、遊技制御を少なくとも実行可能な第一の制御手段(例えば、主制御部300)と、賞を付与する制御を少なくとも実行可能な第二の制御手段(例えば、球数制御部600、払出制御部600など)と、賞の付与を少なくとも実行可能な賞付与手段(例えば、遊技球数設定処理、スプロケットなど)と、を少なくとも備えた遊技台であって、前記第一の制御手段は、シリアル通信回路(例えば、シリアル通信回路750)を少なくとも含むものであり、前記第一の制御手段は、第一のコマンド(例えば、賞球コマンド)送信条件の成立があった場合に、第一のコマンドを前記第二の制御手段に送信可能なものであり、前記第一の制御手段は、第二のコマンド(例えば、第一の通信確認コマンド)送信条件の成立があった場合に、第二のコマンドを前記第二の制御手段に送信可能なものであり、前記第一および第二のコマンドは、前記シリアル通信回路を介して送信されるものであり、前記第二の制御手段は、賞情報に対応する大きさの賞を前記賞付与手段に付与させる制御を少なくとも実行可能なものであり、前記第一のコマンドは、前記賞情報を少なくとも含むものである。   The pachinko machine 100 according to the present embodiment includes a first control unit (for example, the main control unit 300) capable of executing at least game control and a second control unit (for example, capable of performing at least control for giving a prize). A game table including at least a ball number control unit 600, a payout control unit 600, and the like, and a prize granting unit (for example, a game ball number setting process, a sprocket, etc.) capable of at least giving a prize, The first control means includes at least a serial communication circuit (for example, serial communication circuit 750), and the first control means has a first command (for example, prize ball command) transmission condition established. The first command can be transmitted to the second control means, and the first control means transmits a second command (for example, a first communication confirmation command) transmission condition. When established, the second command can be transmitted to the second control means, and the first and second commands are transmitted via the serial communication circuit, The second control means can execute at least control for giving the prize giving means a prize having a magnitude corresponding to prize information, and the first command includes at least the prize information.

このような構成とすることで、遊技媒体の管理に関するメンテナンス性を向上することができる場合があるとともに、第一の制御手段が入賞判定等を行う場合であっても、当該入賞判定により遊技者に付与される利益の情報を、第二の制御手段に送信することができる場合がある。更にシリアル形式で送信可能であるので、信号線を少なくすることができる場合がある。   With such a configuration, it may be possible to improve maintainability related to management of game media, and even if the first control means makes a winning determination or the like, the player is determined by the winning determination. In some cases, information on the profit given to the second control means can be transmitted to the second control means. Further, since transmission can be performed in a serial format, the number of signal lines may be reduced.

また、前記第二の制御手段(例えば、球数制御部600、払出制御部600)は、第二のシリアル通信回路(例えば、シリアル通信回路752)を少なくとも含むものであり、前記第二の制御手段は、第三のコマンド(例えば、第二の通信確認コマンド)送信条件の成立があった場合に、第三のコマンドを前記第一の制御手段に送信可能なものであり、前記第三のコマンドは、前記第二のシリアル通信回路を介して送信されるものであってもよい。   The second control means (for example, the ball number control unit 600 and the payout control unit 600) includes at least a second serial communication circuit (for example, a serial communication circuit 752), and the second control. The means is capable of transmitting a third command to the first control means when a third command (for example, second communication confirmation command) transmission condition is established, The command may be transmitted via the second serial communication circuit.

また、前記第三のコマンド(例えば、第二の通信確認コマンド)送信条件は、前記第二の制御手段が前記第二のコマンド(例えば、第一の通信確認コマンド)を受信したことを少なくとも含むものとしてもよい。   The third command (for example, second communication confirmation command) transmission condition includes at least that the second control unit has received the second command (for example, the first communication confirmation command). It may be a thing.

このようにすることで、第一の制御手段から送信された第一コマンドを、第二の制御手段で受信したことを確認する第二のコマンドを送信できるので、通信の信頼性が向上する場合がある。   By doing so, the first command transmitted from the first control means can be transmitted to the second command for confirming that the second control means has received, so that the communication reliability is improved. There is.

また、前記第一の制御手段(例えば、主制御部300)は、遊技制御処理を少なくとも実行可能な第一の制御マイクロプロセッサ(例えば、主制御部用マイクロコンピュータ760、遊技制御用マイクロコンピュータ)を少なくとも含むものとしてもよい。   Further, the first control means (for example, main control unit 300) includes a first control microprocessor (for example, main control unit microcomputer 760, game control microcomputer) capable of executing at least a game control process. It may be included at least.

また、前記第二の制御手段(例えば、球数制御部600、払出制御部600)は、賞を付与する制御処理を少なくとも実行可能な第二の制御マイクロプロセッサ(例えば、球数制御部用マイクロコンピュータ770、払出制御用マイクロコンピュータ)を少なくとも含むものとしてもよい。   The second control means (for example, the ball number control unit 600, the payout control unit 600) is a second control microprocessor (for example, a ball number control unit micro) capable of executing at least a control process for giving a prize. A computer 770 and a payout control microcomputer).

本実施形態に係るパチンコ機100は、遊技制御を少なくとも実行可能な第一の制御手段(例えば、主制御部300)と、賞を付与する制御を少なくとも実行可能な第二の制御手段(例えば、球数制御部600)と、賞の付与を少なくとも実行可能な賞付与手段(例えば、遊技球数設定処理)と、を少なくとも備えた遊技台であって、前記第一の制御手段は、シリアル通信回路(例えば、シリアル通信回路750)を少なくとも含むものであり、前記第一の制御手段は、第一のコマンド(例えば、賞球コマンド)送信条件の成立があった場合に、第一のコマンドを前記第二の制御手段に送信可能なものであり、前記第一の制御手段は、第二のコマンド(例えば、第一の通信確認コマンド)送信条件の成立があった場合に、第二のコマンドを前記第二の制御手段に送信可能なものであり、前記第一および第二のコマンドは、前記シリアル通信回路を介して送信されるものであり、前記第二の制御手段は、賞情報に対応する大きさの賞を前記賞付与手段に付与させる制御を少なくとも実行可能なものであり、前記第一のコマンドは、前記賞情報を少なくとも含むものである。   The pachinko machine 100 according to the present embodiment includes a first control unit (for example, the main control unit 300) capable of executing at least game control and a second control unit (for example, capable of performing at least control for giving a prize). A game table including at least a ball control unit 600) and a prize giving means (for example, a game ball number setting process) capable of at least giving a prize, wherein the first control means includes serial communication. A circuit (for example, serial communication circuit 750), and the first control means outputs the first command when a first command (for example, prize ball command) transmission condition is established. The second control means can transmit to the second control means, and the first control means sends a second command when a second command (for example, first communication confirmation command) transmission condition is established. Before The first control means can be transmitted to the second control means, and the first and second commands are transmitted via the serial communication circuit, and the second control means corresponds to the prize information. At least control for giving a prize of magnitude to the prize giving means can be executed, and the first command includes at least the prize information.

また、前記第二の制御手段(例えば、球数制御部600)は、第二のシリアル通信回路(例えば、シリアル通信回路752)を少なくとも含むものであり、前記第二の制御手段は、第三のコマンド(例えば、第二の通信確認コマンド)送信条件の成立があった場合に、第三のコマンドを前記第一の制御手段に送信可能なものであり、前記第三のコマンドは、前記第二のシリアル通信回路を介して送信されるものであってもよい。   The second control means (for example, the ball number control unit 600) includes at least a second serial communication circuit (for example, a serial communication circuit 752), and the second control means includes a third serial communication circuit. Command (for example, the second communication confirmation command) can be transmitted to the first control means when the transmission condition is satisfied, and the third command It may be transmitted via a second serial communication circuit.

また、前記第三のコマンド(例えば、第二の通信確認コマンド)送信条件は、前記第二の制御手段が前記第二のコマンド(例えば、第一の通信確認コマンド)を受信したことを少なくとも含むものとしてもよい。   The third command (for example, second communication confirmation command) transmission condition includes at least that the second control unit has received the second command (for example, the first communication confirmation command). It may be a thing.

また、前記第一の制御手段(例えば、主制御部300)は、遊技制御処理を少なくとも実行可能な第一の制御マイクロプロセッサ(例えば、主制御部用マイクロコンピュータ760)を少なくとも含むものとしてもよい。   The first control means (for example, the main control unit 300) may include at least a first control microprocessor (for example, a main control unit microcomputer 760) capable of executing at least a game control process. .

また、前記第二の制御手段(例えば、球数制御部600)は、賞を付与する制御処理を少なくとも実行可能な第二の制御マイクロプロセッサ(例えば、球数制御部用マイクロコンピュータ770)を少なくとも含むものとしてもよい。   The second control means (for example, the ball number control unit 600) includes at least a second control microprocessor (for example, the ball number control unit microcomputer 770) capable of executing at least a control process for giving a prize. It may be included.

本実施形態に係るパチンコ機100は、遊技制御を少なくとも実行可能な第一の制御手段(例えば、主制御部300)と、賞を付与する制御を少なくとも実行可能な第二の制御手段(例えば、払出制御部600など)と、賞の付与を少なくとも実行可能な賞付与手段(例えば、スプロケットなど)と、を少なくとも備えた遊技台であって、前記第一の制御手段は、シリアル通信回路(例えば、シリアル通信回路750)を少なくとも含むものであり、前記第一の制御手段は、第一のコマンド(例えば、賞球コマンド)送信条件の成立があった場合に、第一のコマンドを前記第二の制御手段に送信可能なものであり、前記第一の制御手段は、第二のコマンド(例えば、第一の通信確認コマンド)送信条件の成立があった場合に、第二のコマンドを前記第二の制御手段に送信可能なものであり、前記第一および第二のコマンドは、前記シリアル通信回路を介して送信されるものであり、前記第二の制御手段は、賞情報に対応する大きさの賞を前記賞付与手段に付与させる制御を少なくとも実行可能なものであり、前記第一のコマンドは、前記賞情報を少なくとも含むものである。   The pachinko machine 100 according to the present embodiment includes a first control unit (for example, the main control unit 300) capable of executing at least game control and a second control unit (for example, capable of performing at least control for giving a prize). A game machine including at least a payout control unit 600 and a prize awarding means (for example, a sprocket) capable of at least awarding a prize, wherein the first control means includes a serial communication circuit (for example, a sprocket). Serial communication circuit 750), and when the first command (for example, prize ball command) transmission condition is satisfied, the first control means sends the first command to the second The first control means can transmit a second command when a second command (for example, a first communication confirmation command) transmission condition is satisfied. The second control means can be transmitted, the first and second commands are transmitted via the serial communication circuit, and the second control means corresponds to prize information. The prize giving means can give at least the control for giving the prize of the size to be given, and the first command includes at least the prize information.

また、前記第二の制御手段(例えば、払出制御部600)は、第二のシリアル通信回路(例えば、シリアル通信回路752)を少なくとも含むものであり、前記第二の制御手段は、第三のコマンド(例えば、第二の通信確認コマンド)送信条件の成立があった場合に、第三のコマンドを前記第一の制御手段に送信可能なものであり、前記第三のコマンドは、前記第二のシリアル通信回路を介して送信されるものであってもよい。   The second control means (for example, the payout control unit 600) includes at least a second serial communication circuit (for example, a serial communication circuit 752), and the second control means includes a third serial communication circuit. When a command (for example, second communication confirmation command) transmission condition is satisfied, a third command can be transmitted to the first control means, and the third command It may be transmitted via the serial communication circuit.

また、前記第三のコマンド(例えば、第二の通信確認コマンド)送信条件は、前記第二の制御手段が前記第二のコマンド(例えば、第一の通信確認コマンド)を受信したことを少なくとも含むものとしてもよい。   The third command (for example, second communication confirmation command) transmission condition includes at least that the second control unit has received the second command (for example, the first communication confirmation command). It may be a thing.

また、前記第一の制御手段(例えば、主制御部300)は、遊技制御処理を少なくとも実行可能な第一の制御マイクロプロセッサ(例えば、遊技制御用マイクロコンピュータ)を少なくとも含むものとしてもよい。   The first control means (for example, the main control unit 300) may include at least a first control microprocessor (for example, a game control microcomputer) capable of executing at least a game control process.

また、前記第二の制御手段(例えば、払出制御部600)は、賞を付与する制御処理を少なくとも実行可能な第二の制御マイクロプロセッサ(例えば、払出制御用マイクロコンピュータ)を少なくとも含むものとしてもよい。   The second control means (for example, the payout control unit 600) may include at least a second control microprocessor (for example, a payout control microcomputer) capable of executing at least a control process for giving a prize. Good.

また、本実施形態に係るパチンコ機100は、遊遊技制御を少なくとも実行可能な遊技制御手段(例えば、主制御部300)と、払出制御を少なくとも実行可能な払出制御手段(例えば、払出制御部600)と、賞媒体を少なくとも払出可能な払出手段(例えば、スプロケット)と、を備えた遊技台であって、前記遊技制御手段は、シリアル通信回路(例えば、シリアル通信回路750)を少なくとも含むものであり、前記遊技制御手段は、第一のコマンド(例えば、賞球コマンド)送信条件の成立があった場合に、第一のコマンドを前記払出制御手段に送信可能なものであり、前記遊技制御手段は、第二のコマンド(例えば、第一の通信確認コマンド)送信条件の成立があった場合に、第二のコマンドを前記払出制御手段に送信可能なものであり、前記第一および第二のコマンドは、前記シリアル通信回路を介して送信されるものであり、前記払出制御手段は、賞媒体情報に対応する数の賞媒体を前記払出手段に払出させる制御を少なくとも実行可能なものであり、前記第一のコマンドは、前記賞媒体情報を少なくとも含むものである。   In addition, the pachinko machine 100 according to the present embodiment includes a game control unit (for example, the main control unit 300) capable of executing at least game control and a payout control unit (for example, the payout control unit 600) capable of executing at least payout control. ) And a payout means (for example, sprocket) capable of paying out at least an award medium, wherein the game control means includes at least a serial communication circuit (for example, a serial communication circuit 750). And the game control means is capable of transmitting the first command to the payout control means when a first command (for example, a prize ball command) transmission condition is established, and the game control means Is capable of transmitting the second command to the payout control means when the second command (for example, the first communication confirmation command) transmission condition is satisfied. Yes, the first and second commands are transmitted via the serial communication circuit, and the payout control means controls the payout means to pay out the number of prize media corresponding to the prize medium information. The first command includes at least the prize medium information.

また、前記払出制御手段(例えば、払出制御部600は、第二のシリアル通信回路(例えば、シリアル通信回路752)を少なくとも含むものであり、前記払出制御手段は、第三のコマンド(例えば、第二の通信確認コマンド)送信条件の成立があった場合に、第三のコマンドを前記遊技制御手段に送信可能なものであり、前記第三のコマンドは、前記第二のシリアル通信回路を介して送信されるものとしてもよい。   The payout control means (eg, the payout control unit 600 includes at least a second serial communication circuit (eg, serial communication circuit 752), and the payout control means includes a third command (eg, a first command). Second communication confirmation command) When a transmission condition is satisfied, a third command can be transmitted to the game control means, and the third command is transmitted via the second serial communication circuit. It may be transmitted.

また、前記第三のコマンド(第二の通信確認コマンド)送信条件は、前記払出制御手段が前記第二のコマンド(第一の通信確認コマンド)を受信したことを少なくとも含むものとしてもよい。   Further, the third command (second communication confirmation command) transmission condition may include at least that the payout control unit receives the second command (first communication confirmation command).

また、前記遊技制御手段(例えば、主制御部300)は、遊技制御処理を少なくとも実行可能な主制御マイクロプロセッサ(例えば、遊技制御用マイクロコンピュータ)を少なくとも含むものとしてもよい。   The game control means (for example, the main control unit 300) may include at least a main control microprocessor (for example, a game control microcomputer) capable of executing at least a game control process.

また、前記払出制御手段(例えば、払出制御部600)は、払出制御処理を少なくとも実行可能な払出制御マイクロプロセッサ(例えば、払出制御用マイクロコンピュータ)を少なくとも含むものとしてもよい。   The payout control means (for example, the payout control unit 600) may include at least a payout control microprocessor (for example, a payout control microcomputer) capable of executing at least a payout control process.

本実施形態に係るパチンコ機100は、遊技媒体(例えば、機内球710)が少なくとも転動可能な遊技領域(例えば、遊技領域124)と、第一の信号が入力されたことに基づいて制御を少なくとも開始可能な制御手段(例えば、制御部)と、前記制御手段によって少なくとも更新される記憶手段と、を少なくとも備えた遊技台であって、前記制御手段は、復帰制御条件の成立があった場合に、第二の信号が入力された際の制御状態に復帰させる復帰制御を少なくとも実行可能なものであり、前記復帰制御条件は、前記第二の信号が前記制御手段に入力された後で、該制御手段に前記第一の信号が入力されたことを少なくとも含むものであり、前記制御手段は、前記遊技領域への前記遊技媒体の進入および該遊技領域からの前記遊技媒体の退出の少なくとも何れかがあった場合に、第一の値(例えば、領域内球数)を少なくとも更新可能なものであり、前記第一の値は、前記記憶手段に記憶された値であり、前記制御手段は、前記復帰制御において、前記第一の値に、第二の値ではなく、第三の値を少なくとも設定可能なものであり、前記第二の値は、前記第二の信号が前記制御手段に入力された際の前記第一の値であり、前記第三の値は、初期値である、ものである。   The pachinko machine 100 according to the present embodiment performs control based on the game area (for example, the game area 124) in which the game medium (for example, the in-flight ball 710) can roll at least and the first signal is input. A gaming machine comprising at least control means that can be started (for example, a control unit) and storage means that is at least updated by the control means, wherein the control means satisfies a return control condition In addition, it is possible to execute at least the return control for returning to the control state when the second signal is input, and the return control condition is that after the second signal is input to the control means, The control means includes at least the input of the first signal, and the control means enters the game medium into the game area and the game medium from the game area. When there is at least one of the outputs, the first value (for example, the number of balls in the area) can be updated at least, and the first value is a value stored in the storage means, In the return control, the control means can set at least a third value, not a second value, to the first value, and the second value is determined by the second signal The first value when input to the control means, and the third value is an initial value.

このような構成とすることで、遊技媒体の管理に関するメンテナンス性を向上することができる場合があるとともに、電断後の電源投入時にイン球数とアウト球数の情報が残ることで遊技台が遊技領域内に不正に機内球が残存したと判断し、エラーとして報知することを回避できる場合があり、遊技者が不正を疑われることなく、適正な遊技が行うことができる場合がある。   With such a configuration, there are cases where maintenance for game media management can be improved, and information on the number of in-balls and out-balls remains when the power is turned on after power interruption. In some cases, it can be determined that the in-flight ball remains illegally in the game area, and notification as an error can be avoided, and an appropriate game can be played without the player being suspected of fraud.

また本実施形態に係るパチンコ機100は、遊技媒体(例えば、機内球710)が少なくとも転動可能な遊技領域(例えば、遊技領域124)と、第一の信号が入力されたことに基づいて制御を少なくとも開始可能な制御手段(例えば、制御部)と、前記制御手段によって少なくとも更新される記憶手段と、を少なくとも備えた遊技台であって、前記制御手段は、復帰制御条件の成立があった場合に、第二の信号が入力された際の制御状態に復帰させる復帰制御を少なくとも実行可能なものであり、前記復帰制御条件は、前記第二の信号が前記制御手段に入力された後で、該制御手段に前記第一の信号が入力されたことを少なくとも含むものであり、前記制御手段は、前記遊技領域への前記遊技媒体の進入および該遊技領域からの前記遊技媒体の退出の少なくとも何れかがあった場合に、第一の値(例えば、領域内球数)を少なくとも更新可能なものであり、前記第一の値は、前記記憶手段に記憶された値であり、前記制御手段は、前記復帰制御において、前記第一の値に、第二の値ではなく、第三の値を少なくとも設定可能なものであり、前記第二の値は、前記第二の信号が前記制御手段に入力された際の前記第一の値であり、前記第三の値は、初期値であり、前記第一の値が第四の値である場合に異常が発生したと判定する異常判定手段を備えた、ことを特徴とする遊技台である。   In addition, the pachinko machine 100 according to the present embodiment is controlled based on a game area (for example, the game area 124) in which a game medium (for example, the in-flight ball 710) can roll and a first signal is input. A game machine comprising at least a control means (for example, a control unit) capable of starting at least a storage means updated by the control means, wherein the control means satisfies a return control condition. In this case, at least the return control for returning to the control state when the second signal is input can be executed, and the return control condition is obtained after the second signal is input to the control means. The control means includes at least the input of the first signal, and the control means enters the game area into the game area and the game medium from the game area. The first value (for example, the number of balls in the area) can be updated at least when there is at least one of the exits, and the first value is a value stored in the storage means The control means can set at least a third value instead of a second value as the first value in the return control, and the second value is the second signal. Is the first value when the control means is input, the third value is an initial value, and it is determined that an abnormality has occurred when the first value is the fourth value. A gaming machine comprising an abnormality determining means for performing the above.

このような構成とすることで、遊技媒体の管理に関するメンテナンス性を向上することができる場合があるとともに、遊技者が不正を疑われることなく、適正な遊技が行うことができる場合がある。また、復電後も初期化されない記憶領域に第一の数量情報および前記第二の数量情報の異常状態を記憶するので、例えば復電後に外部装置などに異常状態を送信したり、異常を報知することが可能となる場合がある。   With such a configuration, there may be a case where maintenance performance relating to management of game media can be improved, and there is a case where an appropriate game can be performed without a player being suspected of fraud. Also, since the first quantity information and the abnormal state of the second quantity information are stored in a storage area that is not initialized after power recovery, for example, an abnormal state is transmitted to an external device or the like after power recovery or an abnormality is notified. May be possible.

また、前記遊技領域(例えば、遊技領域124)へ進入する前記遊技媒体(例えば、機内球710)を少なくとも検出可能な第一の検出手段(例えば、投入検出センサ)を備え、前記制御手段は、前記第一の検出手段の検出結果に基づいて前記第一の値を少なくとも更新可能なものとしてもよい。   In addition, the control means includes first detection means (for example, an input detection sensor) capable of detecting at least the game medium (for example, the in-flight ball 710) entering the game area (for example, the game area 124), The first value may be at least updatable based on the detection result of the first detection means.

このようにすることで、遊技領域へ発射する時点で遊技媒体を検出でき、それに基づき第一の数量情報を更新できるので遊技媒体の数量を確実に管理できる場合がある。   By doing so, the game medium can be detected at the time of launching into the game area, and the first quantity information can be updated based on the detected game medium, so that the quantity of the game medium can be reliably managed.

また、前記遊技領域(例えば、遊技領域124)から退出した前記遊技媒体(例えば、機内球710)を少なくとも検出可能な第二の検出手段(例えば、排出検出センサ)を備え、前記制御手段は、前記第二の検出手段の検出結果に基づいて前記第一の値を少なくとも更新可能なものとしてもよい。   In addition, the control means comprises second detection means (for example, a discharge detection sensor) capable of detecting at least the game medium (for example, the in-flight ball 710) that has left the game area (for example, the game area 124), The first value may be at least updatable based on the detection result of the second detection means.

このようにすることで、遊技領域から排出された時点で遊技媒体を検出でき、それに基づき第二の数量情報を更新できるので遊技媒体の数量を確実に管理できる場合がある。   By doing so, the game medium can be detected at the time when it is ejected from the game area, and the second quantity information can be updated based on this, so that the quantity of the game medium can be reliably managed.

また、前記制御手段(例えば、制御部)は、遊技制御を少なくとも実行可能な第一の制御手段(例えば、主制御部300)と、前記遊技媒体の量に関する制御が少なくとも可能な第二の制御手段(例えば、球数制御部600)を含み、前記第二の制御手段は、前記第一の制御手段から第三の信号が入力された場合に、前記遊技媒体の量に関する制御を実行可能なものとしてもよい。   The control means (for example, the control unit) includes a first control unit (for example, the main control unit 300) capable of executing at least game control, and a second control capable of at least control relating to the amount of the game medium. Means (for example, the ball number control unit 600), and the second control means can execute control relating to the amount of the game medium when a third signal is input from the first control means. It may be a thing.

このようにすることで、第一の制御手段の制御に合わせて第二の制御手段の制御を行うことができ、適正な遊技を行うことができる場合がある。   By doing in this way, control of the 2nd control means can be performed according to control of the 1st control means, and an appropriate game may be able to be performed.

また、前記第一の制御手段(例えば、主制御部300)と前記第二の制御手段(例えば、球数制御部600)とは双方向の通信が可能である、としてもよい。   The first control unit (for example, the main control unit 300) and the second control unit (for example, the ball number control unit 600) may be capable of bidirectional communication.

このような構成とすることで、暗号化処理などによって第一の制御手段と第二の制御手段間の通信データの整合性を確認することができ、これらのインターフェース部を狙った不正アクセスを防ぐことができる場合がある。   By adopting such a configuration, it is possible to confirm the consistency of communication data between the first control means and the second control means by encryption processing or the like, and prevent unauthorized access aimed at these interface units. There are cases where it is possible.

また本実施形態に係るパチンコ機100は、制御を少なくとも実行可能な第一の制御手段(例えば、球数制御部600)と、制御を少なくとも実行可能な第二の制御手段(例えば、主制御部300)と、異常発生の有無を判定する異常判定手段(例えば、エラー管理処理)と、を備えた遊技台であって、前記第一の制御手段は、第一の信号出力条件の成立があった場合に、第一の信号(例えば、エラーコマンド)を前記第二の制御手段に少なくとも出力可能なものであり、前記第二の制御手段は、報知条件の成立があった場合に、第一の報知を実行可能なものであり、前記報知条件は、前記第一の信号を受信したことを少なくとも含むものであり、前記第一の制御手段は、第二の信号出力条件の成立があった場合に、第二の信号(例えば、エラーコマンド)を外部機器(例えば、管理装置620)に対して少なくとも出力可能なものであり、前記第二の信号は、外部機器に第二の報知を少なくとも行わせるために出力されるものであり、前記第一の信号出力条件は、前記異常判定手段による判定結果が特定の判定結果であったことを少なくとも含むものであり、前記第二の信号出力条件は、前記異常判定手段による判定結果が特定の判定結果であったことを少なくとも含むものであり、前記第一の報知の態様と前記第二の報知の態様は異なる態様とするものである。   In addition, the pachinko machine 100 according to the present embodiment includes a first control unit (for example, a ball number control unit 600) that can execute at least control and a second control unit (for example, a main control unit) that can execute at least control. 300) and an abnormality determining means (for example, error management processing) for determining whether or not an abnormality has occurred, wherein the first control means satisfies the first signal output condition. A first signal (for example, an error command) can be output at least to the second control means, and the second control means can output the first signal when the notification condition is satisfied. The notification condition includes at least the reception of the first signal, and the first control means satisfies the second signal output condition. If the second signal (e.g. -Command) can be output at least to an external device (for example, the management device 620), and the second signal is output to cause the external device to at least perform the second notification, The first signal output condition includes at least that the determination result by the abnormality determination unit is a specific determination result, and the second signal output condition is specified by the determination result by the abnormality determination unit That is, the first notification mode and the second notification mode are different from each other.

このようにすることで、遊技媒体の管理に関するメンテナンス性を向上することができる場合があるとともに、エラーの報知に多様性を持たせることができる場合がある。   By doing in this way, the maintainability regarding management of a game medium may be able to be improved, and there may be a variety of error notifications.

また、前記第一の制御手段(例えば、球数制御部600)は、前記遊技媒体の量に関する制御が少なくとも可能であるものとしてもよい。   The first control means (for example, the ball number control unit 600) may be capable of at least control related to the amount of the game medium.

このようにすることで、前記遊技媒体の量に関する情報に関するエラー情報の報知に多様性を持たせることができる場合がある。   By doing in this way, there are cases where it is possible to give diversity to the notification of error information related to information relating to the amount of game media.

また、前記第一の制御手段(例えば、球数制御部600)と前記外部機器(例えば、管理装置とは双方向の通信が可能である、ことを特徴とする遊技台である。   The gaming machine is characterized in that the first control means (for example, the number-of-balls control unit 600) and the external device (for example, the management device) are capable of bidirectional communication.

このような構成とすることで、暗号化処理などによって第一の制御手段と外部機器間の通信データの整合性を確認することができ、これらのインターフェース部を狙った不正アクセスを防ぐことができる場合がある。   By adopting such a configuration, it is possible to check the consistency of communication data between the first control unit and the external device by encryption processing or the like, and to prevent unauthorized access aimed at these interface units. There is a case.

また、前記第二の制御手段(例えば、主制御部300)は、前記遊技の進行を少なくとも制御可能であるものとしてもよい。このようにすることで、遊技制御にかかわる電気的、磁気的あるいは機械的なエラー情報などの報知に多様性を持たせることができる場合がある。   The second control means (for example, the main control unit 300) may be capable of at least controlling the progress of the game. By doing so, there are cases in which a variety of notifications such as electrical, magnetic or mechanical error information related to game control can be provided.

また、前記第一の制御手段(例えば、球数制御部300)と第二の制御手段(例えば、主制御部300)とは双方向の通信が可能としてもよい。   The first control unit (for example, the ball number control unit 300) and the second control unit (for example, the main control unit 300) may be capable of bidirectional communication.

このような構成とすることで、暗号化処理などによって第一の制御手段と第二の制御手段間の通信データの整合性を確認することができ、これらのインターフェース部を狙った不正アクセスを防ぐことができる場合がある。   By adopting such a configuration, it is possible to confirm the consistency of communication data between the first control means and the second control means by encryption processing or the like, and prevent unauthorized access aimed at these interface units. There are cases where it is possible.

以上、上記の実施形態では、携帯型の記憶媒体としてICカードの場合を例に説明したが、これに限らず、携帯型の記憶媒体は、例えば電子マネーサービス等で利用可能なICチップ内蔵の携帯電子端末(例えば、携帯電話端末)等であってもよい。   In the above embodiment, the case of an IC card as an example of a portable storage medium has been described. However, the present invention is not limited to this, and the portable storage medium includes an IC chip that can be used for electronic money services, for example. It may be a mobile electronic terminal (for example, a mobile phone terminal) or the like.

また、主制御部と第1副制御部で双方向の通信を可能とする一方で、第1副制御部から第2副制御部への通信は一方向の通信としてもよい。
<実施形態2>
Moreover, while enabling bidirectional communication between the main control unit and the first sub control unit, communication from the first sub control unit to the second sub control unit may be one-way communication.
<Embodiment 2>

以下、図面を用いて、本発明の実施形態2に係る遊技台(パチンコ機100)について詳細に説明する。
<全体構成>
Hereinafter, the game machine (pachinko machine 100) according to Embodiment 2 of the present invention will be described in detail with reference to the drawings.
<Overall configuration>

まず、図72を用いて、本発明の実施形態2に係るパチンコ機100の全体構成について説明する。なお、同図はパチンコ機100を正面側(遊技者側)から見た外観斜視図である。   First, the overall configuration of the pachinko machine 100 according to Embodiment 2 of the present invention will be described with reference to FIG. In addition, the figure is the external appearance perspective view which looked at the pachinko machine 100 from the front side (player side).

パチンコ機100は、外部的構造として、外枠102と、本体104と、前面枠扉106と、球貯留皿付扉108と、発射装置110と、遊技盤200と、をその前面に備える。   As an external structure, the pachinko machine 100 includes an outer frame 102, a main body 104, a front frame door 106, a door 108 with a ball storage tray, a launching device 110, and a game board 200 on the front surface.

外枠102は、遊技機設置営業店に設けられた設置場所(島設備等)へと固定させるための縦長方形状から成る木製の枠部材である。本体104は、内枠と呼ばれ、外枠102の内部に備えられ、ヒンジ部112を介して外枠102に回動自在に装着された縦長方形状の遊技機基軸体となる部材である。また、本体104は、枠状に形成され、内側に空間部114を有している。また、本体104が開放された場合、本体104の開放を検出する不図示の内枠開放センサを備える。   The outer frame 102 is a wooden frame member having a vertical rectangular shape for fixing to an installation location (island facilities or the like) provided in a gaming machine installation sales shop. The main body 104 is referred to as an inner frame, and is a member that is provided inside the outer frame 102 and serves as a longitudinal rectangular gaming machine base body that is rotatably attached to the outer frame 102 via a hinge portion 112. The main body 104 is formed in a frame shape and has a space 114 inside. In addition, when the main body 104 is opened, an inner frame opening sensor (not shown) that detects the opening of the main body 104 is provided.

前面枠扉106は、ロック機能付きで且つ開閉自在となるようにパチンコ機100の前面側となる本体104の前面に対しヒンジ部112を介して装着され、枠状に構成されることでその内側を開口部とした扉部材である。なお、この前面枠扉106には、開口部にガラス製又は樹脂製の透明板部材118が設けられ、前面側には、スピーカ120や枠ランプ122が取り付けられている。前面枠扉106の後面と遊技盤200の前面とで遊技領域124を区画形成する。また、前面枠扉106が開放された場合、前面枠扉106の開放を検出する不図示の前面枠扉開放センサを備える。   The front frame door 106 is attached to the front surface of the main body 104 on the front side of the pachinko machine 100 so as to be openable and closable with a lock function, and is configured in a frame shape so that the inner side of the front frame door 106 can be opened and closed. Is a door member having an opening. The front frame door 106 is provided with a transparent plate member 118 made of glass or resin at the opening, and a speaker 120 and a frame lamp 122 are attached to the front side. A game area 124 is defined by the rear surface of the front frame door 106 and the front surface of the game board 200. Further, a front frame door opening sensor (not shown) that detects opening of the front frame door 106 when the front frame door 106 is opened is provided.

球貯留皿付扉108は、パチンコ機100の前面において本体104の下側に対して、ロック機能付きで且つ開閉自在となるように装着された扉部材である。球貯留皿付扉108は、複数の遊技球(以下、単に「球」と称する場合がある)が貯留可能で且つ発射装置110へと遊技球を案内させる通路が設けられている上皿126と、上皿126に貯留しきれない遊技球を貯留する下皿128と、遊技者の操作によって上皿126に貯留された遊技球を下皿128へと排出させる球抜ボタン130と、遊技者の操作によって下皿128に貯留された遊技球を遊技球収集容器(俗称、ドル箱)へと排出させる球排出レバー132と、遊技者の操作によって発射装置110へと案内された遊技球を遊技盤200の遊技領域124へと打ち出す球発射ハンドル134と、遊技者の操作によって各種演出装置206の演出態様に変化を与えるチャンスボタン136と、チャンスボタン136を発光させるチャンスボタンランプ138と、遊技店に設置されたカードユニット(CRユニット)に対して球貸し指示を行う球貸操作ボタン140と、カードユニットに対して遊技者の残高の返却指示を行う返却操作ボタン142と、遊技者の残高やカードユニットの状態を表示する球貸表示部144と、を備える。また、下皿128が満タンであることを検出する不図示の下皿満タンセンサを備える。   The door 108 with a ball storage tray is a door member attached to the lower side of the main body 104 on the front surface of the pachinko machine 100 so as to have a lock function and be openable and closable. The ball storage tray-equipped door 108 is capable of storing a plurality of game balls (hereinafter simply referred to as “balls”), and an upper plate 126 provided with a passage for guiding the game balls to the launching device 110. A lower plate 128 that stores game balls that cannot be stored in the upper plate 126, a ball removal button 130 that discharges the game balls stored in the upper plate 126 to the lower plate 128 by the player's operation, A ball discharge lever 132 that discharges game balls stored in the lower plate 128 to a game ball collection container (common name, dollar box) by operation, and a game ball guided to the launching device 110 by operation of the player 200 ball launching handles 134 for launching into the game area 124, chance buttons 136 for changing the effects of the various effects devices 206 by the player's operation, and the chance button 136 to emit light. Sub button lamp 138, ball lending operation button 140 for instructing ball lending to a card unit (CR unit) installed in the game store, and return operation button for instructing the card unit to return the player's balance 142, and a ball rental display unit 144 for displaying the balance of the player and the state of the card unit. In addition, a lower plate full tank sensor (not shown) that detects that the lower plate 128 is full is provided.

発射装置110は、本体104の下方に取り付けられ、球発射ハンドル134が遊技者に操作されることによって回動する発射杆146と、遊技球を発射杆146の先端で打突する発射槌148と、を備える。   The launching device 110 is attached to the lower side of the main body 104, and a launching rod 146 that rotates when the ball launching handle 134 is operated by the player, and a launching rod 148 that strikes the game ball at the tip of the launching rod 146. .

遊技盤200は、前面に遊技領域124を有し、本体104の空間部114に臨むように、所定の固定部材を用いて本体104に着脱自在に装着されている。なお、遊技領域124は、遊技盤200を本体104に装着した後、開口部から観察することができる。   The game board 200 has a game area 124 on the front surface, and is detachably attached to the main body 104 using a predetermined fixing member so as to face the space 114 of the main body 104. The game area 124 can be observed from the opening after the game board 200 is mounted on the main body 104.

図73は、図72のパチンコ機100を背面側から見た外観図である。パチンコ機100の背面上部には、上方に開口した開口部を有し、遊技球を一時的に貯留するための球タンク150と、この球タンク150の下方に位置し、球タンク150の底部に形成した連通孔を通過して落下する球を背面右側に位置する払出装置152に導くためのタンクレール154とを配設している。   FIG. 73 is an external view of the pachinko machine 100 of FIG. 72 viewed from the back side. The upper part of the back surface of the pachinko machine 100 has an opening that opens upward, a ball tank 150 for temporarily storing game balls, and a lower part of the ball tank 150 that is positioned below the ball tank 150. A tank rail 154 is provided for guiding a ball passing through the formed communication hole and dropping to the dispensing device 152 located on the right side of the back surface.

払出装置152は、筒状の部材からなり、その内部には、不図示の払出モータとスプロケットと払出センサとを備えている。スプロケットは、払出モータによって回転可能に構成されており、タンクレール154を通過して払出装置152内に流下した遊技球を一時的に滞留させると共に、払出モータを駆動して所定角度だけ回転することにより、一時的に滞留した遊技球を払出装置152の下方へ1個ずつ送り出すように構成している。   The payout device 152 is formed of a cylindrical member, and includes a payout motor, a sprocket, and a payout sensor (not shown) inside. The sprocket is configured to be rotatable by a payout motor. The sprocket that temporarily passes through the tank rail 154 and flows down into the payout device 152 is temporarily retained, and the payout motor is driven to rotate by a predetermined angle. Thus, the temporarily accumulated game balls are sent one by one downward to the payout device 152.

払出センサは、スプロケットが送り出した遊技球の通過を検知するためのセンサであり、遊技球が通過しているときにハイまたはローの何れか一方の信号を、遊技球が通過していないときはハイまたはローの何れか他方の信号を払出制御部600へ出力する。なお、この払出センサを通過した遊技球は、不図示の球レールを通過してパチンコ機100の表側に配設した上皿126に到達するように構成しており、パチンコ機100は、この構成により遊技者に対して球の払い出しを行う。   The payout sensor is a sensor for detecting the passage of the game ball sent out by the sprocket. When the game ball is passing, either a high signal or a low signal is passed. Either the high signal or the low signal is output to the dispensing control unit 600. The game ball that has passed through the payout sensor passes through a ball rail (not shown) and reaches the upper plate 126 disposed on the front side of the pachinko machine 100. The pachinko machine 100 has this configuration. To pay out the ball to the player.

払出装置152の図中左側には、遊技全般の制御処理を行う主制御部300を構成する主基板156を収納する主基板ケース158、主制御部300が生成した処理情報に基づいて演出に関する制御処理を行う第1副制御部400を構成する第1副基板160を収納する第1副基板ケース162、第1副制御部400が生成した処理情報に基づいて演出に関する制御処理を行う第2副制御部500を構成する第2副基板164を収納する第2副基板ケース166、遊技球の払出に関する制御処理を行う払出制御部600を構成するとともに遊技店員の操作によってエラーを解除するエラー解除スイッチ168を備える払出基板170を収納する払出基板ケース172、遊技球の発射に関する制御処理を行う発射制御部630を構成する発射基板174を収納する発射基板ケース176、各種電気的遊技機器に電源を供給する電源制御部660を構成するとともに遊技店員の操作によって電源をオンオフする電源スイッチ178と電源投入時に操作されることによってRWMクリア信号を主制御部300に出力するRWMクリアスイッチ180とを備える電源基板182を収納する電源基板ケース184、および払出制御部600とカードユニットとの信号の送受信を行うCRインターフェース部186を配設している。   On the left side of the payout device 152 in the figure, a main board case 158 that houses the main board 156 that constitutes the main control section 300 that performs control processing for the entire game, and control related to effects based on the processing information generated by the main control section 300 The first sub-board case 162 that houses the first sub-board 160 that constitutes the first sub-control unit 400 that performs processing, and the second sub-board that performs control processing related to effects based on the processing information generated by the first sub-control unit 400. An error release switch that constitutes a second sub-board case 166 that houses the second sub-board 164 that constitutes the control unit 500, a payout control unit 600 that performs control processing related to the payout of game balls, and that releases an error by the operation of a game clerk Discharge board case 172 storing the payout board 170 having 168, launch base constituting the launch control unit 630 that performs control processing relating to the launch of the game ball A launch board case 176 that houses 174, a power control unit 660 that supplies power to various electrical gaming machines, and a power switch 178 that turns the power on and off by the operation of a game store clerk and an RWM clear by being operated when the power is turned on A power board case 184 that houses a power board 182 that includes an RWM clear switch 180 that outputs a signal to the main controller 300, and a CR interface 186 that transmits and receives signals between the payout controller 600 and the card unit are provided. ing.

図74は、遊技盤200を正面から見た略示正面図である。遊技盤200には、外レール202と内レール204とを配設し、遊技球が転動可能な遊技領域124を区画形成している。   FIG. 74 is a schematic front view of the game board 200 as viewed from the front. In the game board 200, an outer rail 202 and an inner rail 204 are arranged, and a game area 124 in which a game ball can roll is defined.

遊技領域124の略中央には、演出装置206を配設している。この演出装置206には、略中央に装飾図柄表示装置208を配設し、その周囲に、普通図柄表示装置210と、第1特別図柄表示装置212と、第2特別図柄表示装置214と、普通図柄保留ランプ216と、第1特別図柄保留ランプ218と、第2特別図柄保留ランプ220と、高確中ランプ222を配設している。なお、以下、普通図柄を「普図」、特別図柄を「特図」と称する場合がある。   An effect device 206 is disposed in the approximate center of the game area 124. The effect device 206 is provided with a decorative symbol display device 208 substantially in the center, and around the normal symbol display device 210, the first special symbol display device 212, the second special symbol display device 214, and the ordinary device. A symbol holding lamp 216, a first special symbol holding lamp 218, a second special symbol holding lamp 220, and a high-probability medium lamp 222 are provided. Hereinafter, the normal symbol may be referred to as “general symbol” and the special symbol may be referred to as “special symbol”.

演出装置206は、演出可動体224を動作して演出を行うものであり、詳細については後述する。装飾図柄表示装置208は、装飾図柄ならびに演出に用いる様々な表示を行うための表示装置であり、本実施例では液晶表示装置(Liquid Crystal Display)によって構成する。この装飾図柄表示装置208は、左図柄表示領域208a、中図柄表示領域208b、右図柄表示領域208cおよび演出表示領域208dの4つの表示領域に分割し、左図柄表示領域208a、中図柄表示領域208bおよび右図柄表示領域208cはそれぞれ異なった装飾図柄を表示し、演出表示領域208dは演出に用いる画像を表示する。さらに、各表示領域208a、208b、208c、208dの位置や大きさは、装飾図柄表示装置208の表示画面内で自由に変更することを可能としている。なお、装飾図柄表示装置208として液晶表示装置を採用しているが、液晶表示装置でなくとも、種々の演出や種々の遊技情報を表示可能に構成されていればよく、例えば、ドットマトリクス表示装置、7セグメント表示装置、有機EL(ElectroLuminescence)表示装置、リール(ドラム)式表示装置、リーフ式表示装置、プラズマディスプレイ、プロジェクタを含む他の表示デバイスを採用してもよい。   The effect device 206 performs the effect by operating the effect movable body 224, and details thereof will be described later. The decorative symbol display device 208 is a display device for performing various displays used for decorative symbols and effects. In this embodiment, the decorative symbol display device 208 is constituted by a liquid crystal display device (Liquid Crystal Display). The decorative symbol display device 208 is divided into four display areas, a left symbol display area 208a, a middle symbol display area 208b, a right symbol display area 208c, and an effect display area 208d, and the left symbol display area 208a and the middle symbol display area 208b. The right symbol display area 208c displays different decorative symbols, and the effect display area 208d displays an image used for the effect. Furthermore, the position and size of each display area 208a, 208b, 208c, 208d can be freely changed within the display screen of the decorative symbol display device 208. In addition, although the liquid crystal display device is employ | adopted as the decoration symbol display apparatus 208, it is not a liquid crystal display device, What is necessary is just the structure which can display various effects and various game information, for example, a dot matrix display device Other display devices including a 7-segment display device, an organic EL (ElectroLuminescence) display device, a reel (drum) display device, a leaf display device, a plasma display, and a projector may be adopted.

普図表示装置210は、普図の表示を行うための表示装置であり、本実施例では7セグメントLEDによって構成する。第1特図表示装置212および第2特図表示装置214は、特図の表示を行うための表示装置であり、本実施例では7セグメントLEDによって構成する。   The general map display device 210 is a display device for displaying a general map, and is configured by a 7-segment LED in this embodiment. The first special figure display device 212 and the second special figure display device 214 are display devices for displaying a special figure, and are configured by 7 segment LEDs in this embodiment.

普図保留ランプ216は、保留している普図変動遊技(詳細は後述)の数を示すためのランプであり、本実施例では、普図変動遊技を所定数(例えば、2つ)まで保留することを可能としている。第1特図保留ランプ218および第2特図保留ランプ220は、保留している特図変動遊技(詳細は後述)の数を示すためのランプであり、本実施例では、特図変動遊技を所定数(例えば、4つ)まで保留することを可能としている。高確中ランプ222は、遊技状態が大当りが発生し易い高確率状態であること、または高確率状態になることを示すためのランプであり、遊技状態を大当りが発生し難い低確率状態から高確率状態にする場合に点灯し、高確率状態から低確率状態にする場合に消灯する。   The multi-purpose hold lamp 216 is a lamp for indicating the number of general-purpose variable games (details will be described later) that are on hold. In this embodiment, the general-purpose variable games are reserved up to a predetermined number (for example, two). It is possible to do. The first special figure hold lamp 218 and the second special figure hold lamp 220 are lamps for indicating the number of special figure variable games (details will be described later) that are being held. In this embodiment, the special figure variable games are displayed. It is possible to hold up to a predetermined number (for example, four). The high-probability medium lamp 222 is a lamp for indicating that the gaming state is a high probability state in which a big hit is likely to occur or a high probability state, and the gaming state is changed from a low probability state in which a big hit is unlikely to occur. Turns on when switching to the probability state, and turns off when switching from the high probability state to the low probability state.

また、この演出装置206の周囲には、所定の球進入口、例えば、一般入賞口226と、普図始動口228と、第1特図始動口230と、第2特図始動口232と、可変入賞口234を配設している。   In addition, there are predetermined ball entrances, for example, a general prize opening 226, a general start port 228, a first special view start port 230, a second special view start port 232, around the effect device 206. A variable winning opening 234 is provided.

一般入賞口226は、本実施例では遊技盤200に複数配設しており、この一般入賞口226への入球を所定の球検出センサ(図示省略)が検出した場合(一般入賞口226に入賞した場合)、払出装置152を駆動し、所定の個数(例えば、10個)の球を賞球として上皿126に排出する。上皿126に排出した球は遊技者が自由に取り出すことが可能であり、これらの構成により、入賞に基づいて賞球を遊技者に払い出すようにしている。なお、一般入賞口226に入球した球は、パチンコ機100の裏側に誘導した後、遊技島側に排出する。本実施例では、入賞の対価として遊技者に払い出す球を「賞球」、遊技者に貸し出す球を「貸球」と区別して呼ぶ場合があり、「賞球」と「貸球」を総称して「球(遊技球)」と呼ぶ。   In this embodiment, a plurality of general winning holes 226 are arranged on the game board 200. When a predetermined ball detecting sensor (not shown) detects a ball entering the general winning holes 226 (in the general winning holes 226). In the case of winning, the payout device 152 is driven, and a predetermined number (for example, 10 balls) of balls are discharged to the upper plate 126 as prize balls. The player can freely take out the balls discharged to the upper plate 126. With these configurations, the player can pay out the winning balls to the player based on winning. The ball that has entered the general winning opening 226 is guided to the back side of the pachinko machine 100 and then discharged to the amusement island side. In this embodiment, a ball to be paid out to a player as a consideration for winning is sometimes referred to as a “prize ball”, and a ball lent to a player is sometimes referred to as “rental ball”. They are called “balls (game balls)”.

普図始動口228は、ゲートやスルーチャッカーと呼ばれる、遊技領域124の所定の領域を球が通過したか否かを判定するための装置で構成しており、本実施例では遊技盤200の左側に1つ配設している。普図始動口228を通過した球は一般入賞口226に入球した球と違って、遊技島側に排出することはない。球が普図始動口228を通過したことを所定の球検出センサが検出した場合、パチンコ機100は、普図表示装置210による普図変動遊技を開始する。   The normal start port 228 is constituted by a device called a gate or a through chucker for determining whether or not a ball has passed a predetermined area of the game area 124. In this embodiment, the left side of the game board 200 is used. One is arranged. Unlike the ball that has entered the general winning opening 226, the ball that has passed through the usual starting port 228 is not discharged to the amusement island side. When a predetermined ball detection sensor detects that a ball has passed through the general map starting port 228, the pachinko machine 100 starts a general map variable game by the general map display device 210.

第1特図始動口230は、本実施例では遊技盤200の中央に1つだけ配設している。この第1特図始動口230への入球を所定の球検出センサが検出した場合、後述する払出装置152を駆動し、所定の個数(例えば、3個)の球を賞球として上皿126に排出するとともに、第1特図表示装置212による特図変動遊技を開始する。なお、第1特図始動口230に入球した球は、パチンコ機100の裏側に誘導した後、遊技島側に排出する。   In the present embodiment, only one first special figure starting port 230 is disposed at the center of the game board 200. When a predetermined ball detection sensor detects a ball entering the first special figure starting port 230, a payout device 152, which will be described later, is driven, and a predetermined number (for example, three) of balls is used as a prize ball for the upper plate 126. The special figure changing game by the first special figure display device 212 is started. The ball that has entered the first special figure starting port 230 is guided to the back side of the pachinko machine 100 and then discharged to the amusement island side.

第2特図始動口232は、電動チューリップ(電チュー)と呼ばれ、本実施例では第1特図始動口230の真下に1つだけ配設している。この第2特図始動口232は、左右に開閉自在な羽根部材232aを備え、羽根部材232aの閉鎖中は球の入球が不可能であり、普図変動遊技に当選し、普図表示装置210が当り図柄を停止表示した場合に羽根部材232aが所定の時間間隔、所定の回数で開閉する。第2特図始動口232への入球を所定の球検出センサが検出した場合、払出装置152を駆動し、所定の個数(例えば、4個)の球を賞球として上皿126に排出するとともに、第2特図表示装置214による特図変動遊技を開始する。なお、第2特図始動口232に入球した球は、パチンコ機100の裏側に誘導した後、遊技島側に排出する。   The second special figure starting port 232 is called an electric tulip (electric Chu). In the present embodiment, only one second special figure starting port 232 is disposed directly below the first special figure starting port 230. The second special figure starting port 232 includes a wing member 232a that can be opened and closed to the left and right. When the wing member 232a is closed, it is impossible to enter a ball. When 210 hits and stops and displays the symbol, the blade member 232a opens and closes at a predetermined time interval and a predetermined number of times. When a predetermined ball detection sensor detects a ball entering the second special figure starting port 232, the payout device 152 is driven and a predetermined number (for example, four) of balls is discharged to the upper plate 126 as prize balls. At the same time, the special figure variation game by the second special figure display device 214 is started. The ball that has entered the second special figure starting port 232 is guided to the back side of the pachinko machine 100 and then discharged to the amusement island side.

可変入賞口234は、大入賞口またはアタッカーと呼ばれ、本実施例では遊技盤200の中央部下方に1つだけ配設している。この可変入賞口234は、開閉自在な扉部材234aを備え、扉部材234aの閉鎖中は球の入球が不可能であり、特図変動遊技に当選して特図表示装置が大当り図柄を停止表示した場合に扉部材234aが所定の時間間隔(例えば、開放時間29秒、閉鎖時間1.5秒)、所定の回数(例えば15回)で開閉する。可変入賞口234への入球を所定の球検出センサが検出した場合、払出装置152を駆動し、所定の個数(例えば、15個)の球を賞球として上皿126に排出する。なお、可変入賞口234に入球した球は、パチンコ機100の裏側に誘導した後、遊技島側に排出する。   The variable winning opening 234 is called a large winning opening or an attacker, and in the present embodiment, only one variable winning opening 234 is disposed below the center of the game board 200. This variable winning opening 234 includes a door member 234a that can be freely opened and closed. When the door member 234a is closed, it is impossible to enter a ball. When displayed, the door member 234a opens and closes at a predetermined time interval (for example, an opening time of 29 seconds and a closing time of 1.5 seconds) and at a predetermined number of times (for example, 15 times). When a predetermined ball detection sensor detects a ball entering the variable winning opening 234, the payout device 152 is driven to discharge a predetermined number (for example, 15 balls) of balls to the upper plate 126 as prize balls. The ball that entered the variable winning opening 234 is guided to the back side of the pachinko machine 100 and then discharged to the amusement island side.

さらに、これらの入賞口や始動口の近傍には、風車と呼ばれる円盤状の打球方向変換部材236や、遊技釘238を複数個、配設していると共に、内レール204の最下部には、いずれの入賞口や始動口にも入賞しなかった球をパチンコ機100の裏側に誘導した後、遊技島側に排出するためのアウト口を設けている。   Further, a plurality of disc-shaped hitting direction changing members 236 called a windmill and a plurality of game nails 238 are arranged in the vicinity of these winning openings and start openings, and at the bottom of the inner rail 204, After guiding a ball that has not won any prize opening or start opening to the back side of the pachinko machine 100, an out opening is provided for discharging to the game island side.

このパチンコ機100は、遊技者が上皿126に貯留している球を発射レールの発射位置に供給し、遊技者の操作ハンドルの操作量に応じた強度で発射モータを駆動し、発射杆146および発射槌148によって外レール202、内レール204を通過させて遊技領域124に打ち出す。そして、遊技領域124の上部に到達した球は、打球方向変換部材236や遊技釘238等によって進行方向を変えながら下方に落下し、入賞口(一般入賞口226、可変入賞口234)や始動口(第1特図始動口230、第2特図始動口232)に入賞するか、いずれの入賞口や始動口にも入賞することなく、または普図始動口228を通過するのみでアウト口240に到達する。
<演出装置206>
This pachinko machine 100 supplies the ball stored in the upper plate 126 by the player to the launch position of the launch rail, drives the launch motor with strength according to the operation amount of the player's operation handle, and launches 146 Further, the outer rail 202 and the inner rail 204 are passed by the launcher 148 and driven into the game area 124. Then, the ball that has reached the upper part of the game area 124 falls downward while changing the advancing direction by the hitting direction changing member 236, the game nail 238, etc. (Outside the first special figure starting port 230, the second special figure starting port 232), winning out any winning port or starting port, or just passing through the normal start port 228, the out port 240 To reach.
<Directing device 206>

次に、パチンコ機100の演出装置206について説明する。   Next, the rendering device 206 of the pachinko machine 100 will be described.

この演出装置206の前面側には、遊技球の転動可能な領域にワープ装置242およびステージ244を配設し、遊技球の転動不可能な領域に演出可動体224を配設している。また、演出装置206の背面側には、装飾図柄表示装置208および遮蔽装置246(以下、扉と称する場合がある)を配設している。すなわち、演出装置206において、装飾図柄表示装置208および遮蔽手段は、ワープ装置242、ステージ244、および演出可動体224の後方に位置することとなる。   On the front side of the effect device 206, a warp device 242 and a stage 244 are arranged in an area where the game ball can roll, and an effect movable body 224 is arranged in an area where the game ball cannot roll. . In addition, a decorative symbol display device 208 and a shielding device 246 (hereinafter sometimes referred to as a door) are disposed on the back side of the effect device 206. That is, in the effect device 206, the decorative symbol display device 208 and the shielding means are located behind the warp device 242, the stage 244, and the effect movable body 224.

ワープ装置242は、演出装置206の左上方に設けたワープ入口242aに入った遊技球を演出装置206の前面下方のステージ244にワープ出口242bから排出する。ステージ244は、ワープ出口242bから排出された球や遊技盤200の釘などによって乗り上げた球などが転動可能であり、ステージ244の中央部には、通過した球が第1特図始動口230へ入球し易くなるスペシャルルート244aを設けている。   The warp device 242 discharges the game balls that have entered the warp inlet 242a provided at the upper left of the effect device 206 to the stage 244 below the front surface of the effect device 206 from the warp outlet 242b. The stage 244 can roll a ball discharged from the warp outlet 242b, a ball carried on by a nail of the game board 200, or the like, and the passed ball is a first special figure starting port 230 at the center of the stage 244. A special route 244a is provided to facilitate entry into the golf course.

演出可動体224は、本実施形態では人間の右腕の上腕と前腕を模した上腕部224aと前腕部224bとからなり、肩の位置に上腕部224aを回動させる不図示の上腕モータと肘の位置に前腕部224bを回動させる不図示の前腕モータを備える。演出可動体224は、上腕モータと前腕モータによって装飾図柄表示装置208の前方を移動する。   In this embodiment, the effect movable body 224 includes an upper arm portion 224a and a forearm portion 224b simulating the upper arm and forearm of a human right arm. A forearm motor (not shown) that rotates the forearm 224b at a position is provided. The effect movable body 224 moves in front of the decorative symbol display device 208 by the upper arm motor and the forearm motor.

遮蔽装置246は、格子状の左扉246aおよび右扉246bからなり、装飾図柄表示装置208および前面ステージ244の間に配設する。左扉246aおよび右扉246bの上部には、不図示の2つのプーリに巻き回したベルトをそれぞれ固定している。すなわち、左扉246aおよび右扉246bは、モータによりプーリを介して駆動するベルトの動作に伴って左右にそれぞれ移動する。遮蔽手段は、左扉246aおよび右扉246bを閉じた状態ではそれぞれの内側端部が重なり、遊技者が装飾図柄表示装置208を視認し難いように遮蔽する。左扉246aおよび右扉246bを開いた状態ではそれぞれの内側端部が装飾図柄表示装置208の表示画面の外側端部と若干重なるが、遊技者は装飾図柄表示装置208の表示の全てを視認可能である。また、左扉246aおよび右扉246bは、それぞれ任意の位置で停止可能であり、例えば、表示した装飾図柄がどの装飾図柄であるかを遊技者が識別可能な程度に、装飾図柄の一部だけを遮蔽するようなことができる。なお、左扉246aおよび右扉246bは、格子の孔から後方の装飾図柄表示装置208の一部を視認可能にしてもよいし、格子の孔の障子部分を半透明のレンズ体で塞ぎ、後方の装飾図柄表示装置208による表示を漠然と遊技者に視認させるようにしてもよいし、格子の孔の障子部分を完全に塞ぎ(遮蔽し)、後方の装飾図柄表示装置208を全く視認不可にしてもよい。
<制御部>
The shielding device 246 includes a lattice-like left door 246a and right door 246b, and is disposed between the decorative symbol display device 208 and the front stage 244. Belts wound around two pulleys (not shown) are fixed to the upper portions of the left door 246a and the right door 246b, respectively. That is, the left door 246a and the right door 246b move to the left and right as the belt driven by the motor through the pulley moves. When the left door 246a and the right door 246b are closed, the shielding means shields the inner end portions thereof so that it is difficult for the player to visually recognize the decorative symbol display device 208. In the state where the left door 246a and the right door 246b are opened, each inner end portion slightly overlaps the outer end portion of the display screen of the decorative symbol display device 208, but the player can visually recognize all of the display of the decorative symbol display device 208. It is. In addition, the left door 246a and the right door 246b can be stopped at arbitrary positions, respectively, for example, only a part of the decorative design so that the player can identify which decorative design the displayed decorative design is. Can be shielded. In addition, the left door 246a and the right door 246b may be configured so that a part of the decorative symbol display device 208 behind the lattice hole can be visually recognized, or the shoji part of the lattice hole is closed with a translucent lens body. The display by the decorative symbol display device 208 may be made vaguely visible to the player, or the shoji part of the holes in the lattice is completely blocked (shielded), and the decorative symbol display device 208 behind is made completely invisible. Also good.
<Control unit>

次に、図75を用いて、このパチンコ機100の制御部の回路構成について詳細に説明する。なお、同図は制御部の回路ブロック図を示したものである。   Next, the circuit configuration of the control unit of the pachinko machine 100 will be described in detail with reference to FIG. This figure shows a circuit block diagram of the control unit.

パチンコ機100の制御部は、大別すると、主に遊技の進行(例えば、遊技者による操作の検出、遊技状態の遷移、遊技媒体の払出制御、当否判定など)を制御する主制御部300と、主制御部300が送信するコマンド信号(以下、単に「コマンド」と呼ぶ)に応じて主に演出の制御を行う第1副制御部400と、第1副制御部400より送信されたコマンドに基づいて各種機器を制御する第2副制御部500と、主制御部300が送信するコマンドに応じて主に遊技球の払い出しに関する制御を行う払出制御部600と、遊技球の発射制御を行う発射制御部630と、パチンコ機100に供給される電源を制御する電源制御部660と、によって構成している。
<主制御部>
The control unit of the pachinko machine 100 is roughly divided into a main control unit 300 that mainly controls the progress of a game (for example, detection of an operation by a player, transition of a game state, game medium payout control, determination of success / failure, etc.) In response to a command signal transmitted by the main control unit 300 (hereinafter simply referred to as “command”), the first sub control unit 400 that mainly controls the production and the command transmitted from the first sub control unit 400 A second sub-control unit 500 that controls various devices based on it, a payout control unit 600 that mainly performs control related to payout of game balls in accordance with a command transmitted by the main control unit 300, and a launch that controls the launch of game balls A control unit 630 and a power control unit 660 that controls the power supplied to the pachinko machine 100 are configured.
<Main control unit>

まず、パチンコ機100の主制御部300について説明する。   First, the main control unit 300 of the pachinko machine 100 will be described.

主制御部300は、主制御部300の全体を制御する基本回路302を備えており、この基本回路302には、CPU304と、制御プログラムや各種データを記憶するためのROM306と、一時的にデータを記憶するためのRAM308と、各種デバイスの入出力を制御するためのI/O310と、時間や回数等を計測するためのカウンタタイマ312と、プログラム処理の異常を監視するWDT314を搭載している。なお、ROM306やRAM308については他の記憶装置を用いてもよく、この点は後述する第1副制御部400についても同様である。この基本回路302のCPU304は、水晶発振器316bが出力する所定周期のクロック信号をシステムクロックとして入力して動作する。   The main control unit 300 includes a basic circuit 302 that controls the entire main control unit 300. The basic circuit 302 includes a CPU 304, a ROM 306 for storing control programs and various data, and temporary data. RAM 308 for storing data, I / O 310 for controlling input / output of various devices, counter timer 312 for measuring time and frequency, and WDT 314 for monitoring abnormalities in program processing are mounted. . Note that another storage device may be used for the ROM 306 and the RAM 308, and this is the same for the first sub-control unit 400 described later. The CPU 304 of the basic circuit 302 operates by inputting a clock signal of a predetermined period output from the crystal oscillator 316b as a system clock.

また、基本回路302には、水晶発振器316aが出力するクロック信号を受信する度に0〜65535の範囲で数値を変動させるハードウェア乱数カウンタとして使用しているカウンタ回路318(この回路には2つのカウンタを内蔵しているものとする)と、所定の球検出センサ、例えば各始動口、入賞口、可変入賞口を通過する遊技球を検出するセンサや、前面枠扉開放センサや内枠開放センサや下皿満タンセンサを含む各種センサ320が出力する信号を受信し、増幅結果や基準電圧との比較結果をカウンタ回路318および基本回路302に出力するためのセンサ回路322と、所定の図柄表示装置、例えば第1特図表示装置212や第2特図表示装置214の表示制御を行うための駆動回路324と、所定の図柄表示装置、例えば普図表示装置210の表示制御を行うための駆動回路326と、各種状態表示部328(例えば、普図保留ランプ216、第1特図保留ランプ218、第2特図保留ランプ220、高確中ランプ222等)の表示制御を行うための駆動回路330と、所定の可動部材、例えば第2特図始動口232の羽根部材232aや可変入賞口234の扉部材234a等を開閉駆動する各種ソレノイド332を制御するための駆動回路334を接続している。   In addition, the basic circuit 302 includes a counter circuit 318 used as a hardware random number counter that changes a numerical value in the range of 0 to 65535 each time a clock signal output from the crystal oscillator 316a is received (this circuit includes two circuits). And a predetermined ball detection sensor, for example, a sensor that detects a game ball passing through each start port, winning port, variable winning port, front frame door opening sensor, and inner frame opening sensor. And a sensor circuit 322 for receiving signals output from various sensors 320 including a lower plate full sensor and outputting a comparison result with an amplification result or a reference voltage to the counter circuit 318 and the basic circuit 302, and a predetermined symbol display device For example, a drive circuit 324 for performing display control of the first special figure display device 212 and the second special figure display device 214, a predetermined symbol display device, A drive circuit 326 for performing display control of the general-purpose display device 210, and various status display units 328 (for example, a general-purpose reservation lamp 216, a first special figure reservation lamp 218, a second special figure reservation lamp 220, a high-probability medium) A driving circuit 330 for performing display control of the lamp 222 and the like, and various solenoids 332 for opening and closing a predetermined movable member, for example, the blade member 232a of the second special figure starting port 232, the door member 234a of the variable winning port 234, and the like. A drive circuit 334 for controlling the above is connected.

なお、第1特図始動口230に球が入賞したことを球検出センサ320が検出した場合には、センサ回路322は球を検出したことを示す信号をカウンタ回路318に出力する。この信号を受信したカウンタ回路318は、第1特図始動口230に対応するカウンタのそのタイミングにおける値をラッチし、ラッチした値を、第1特図始動口230に対応する内蔵のカウンタ値記憶用レジスタに記憶する。また、カウンタ回路318は、第2特図始動口232に球が入賞したことを示す信号を受信した場合も同様に、第2特図始動口232に対応するカウンタのそのタイミングにおける値をラッチし、ラッチした値を、第2特図始動口232に対応する内蔵のカウンタ値記憶用レジスタに記憶する。   When the ball detection sensor 320 detects that a ball has won the first special figure starting port 230, the sensor circuit 322 outputs a signal indicating that the ball has been detected to the counter circuit 318. Upon receiving this signal, the counter circuit 318 latches the value of the counter corresponding to the first special figure starting port 230 at that timing, and stores the latched value in the built-in counter value corresponding to the first special figure starting port 230. Store in the register. Similarly, when the counter circuit 318 receives a signal indicating that the second special figure starting port 232 has won a ball, the counter circuit 318 latches the value at the timing of the counter corresponding to the second special figure starting port 232. The latched value is stored in a built-in counter value storage register corresponding to the second special figure starting port 232.

さらに、基本回路302には、情報出力回路336を接続しており、主制御部300は、この情報出力回路336を介して、外部のホールコンピュータ(図示省略)等が備える情報入力回路350にパチンコ機100の遊技情報(例えば、遊技状態)を出力する。   Further, an information output circuit 336 is connected to the basic circuit 302, and the main control unit 300 is connected to an information input circuit 350 provided in an external hall computer (not shown) or the like via this information output circuit 336. The game information (for example, game state) of the machine 100 is output.

また、主制御部300には、電源制御部660から主制御部300に供給している電源の電圧値を監視する電圧監視回路338を設けており、この電圧監視回路338は、電源の電圧値が所定の値(本実施例では9V)未満である場合に電圧が低下したことを示す低電圧信号を基本回路302に出力する。   In addition, the main control unit 300 is provided with a voltage monitoring circuit 338 that monitors the voltage value of the power source supplied from the power source control unit 660 to the main control unit 300. The voltage monitoring circuit 338 is a voltage value of the power source. Is less than a predetermined value (9 V in this embodiment), a low voltage signal indicating that the voltage has dropped is output to the basic circuit 302.

また、主制御部300には、電源が投入されると起動信号(リセット信号)を出力する起動信号出力回路(リセット信号出力回路)340を設けており、CPU304は、この起動信号出力回路340から起動信号を入力した場合に、遊技制御を開始する(詳細は後述する)。   In addition, the main control unit 300 is provided with a start signal output circuit (reset signal output circuit) 340 that outputs a start signal (reset signal) when the power is turned on. When an activation signal is input, game control is started (details will be described later).

また、主制御部300は、第1副制御部400にコマンドを送信するための出力インタフェースと、払出制御部600にコマンドを送信するための出力インタフェースをそれぞれ備えており、この構成により、第1副制御部400および払出制御部600との通信を可能としている。なお、主制御部300と第1副制御部400および払出制御部600との情報通信は一方向の通信であり、主制御部300は第1副制御部400および払出制御部600にコマンド等の信号を送信できるように構成しているが、第1副制御部400および払出制御部600からは主制御部300にコマンド等の信号を送信できないように構成している。
<副制御部>
The main control unit 300 includes an output interface for transmitting a command to the first sub-control unit 400 and an output interface for transmitting a command to the payout control unit 600. With this configuration, the first control unit 300 Communication with the sub-control unit 400 and the payout control unit 600 is enabled. Information communication between the main control unit 300 and the first sub-control unit 400 and the payout control unit 600 is one-way communication. The main control unit 300 sends commands and the like to the first sub-control unit 400 and the payout control unit 600. The first sub control unit 400 and the payout control unit 600 are configured such that signals such as commands cannot be transmitted to the main control unit 300.
<Sub control unit>

次に、パチンコ機100の第1副制御部400について説明する。第1副制御部400は、主に主制御部300が送信したコマンド等に基づいて第1副制御部400の全体を制御する基本回路402を備えており、この基本回路402には、CPU404と、制御プログラムや各種演出データを記憶するためのROM406と、一時的にデータを記憶するためのRAM408と、各種デバイスの入出力を制御するためのI/O410と、時間や回数等を計測するためのカウンタタイマ412を搭載している。この基本回路402のCPU404は、水晶発信器414が出力する所定周期のクロック信号をシステムクロックとして入力して動作する。なお、ROM406は、制御プログラムと各種演出データとを別々のROMに記憶させてもよい。   Next, the first sub control unit 400 of the pachinko machine 100 will be described. The first sub-control unit 400 includes a basic circuit 402 that controls the entire first sub-control unit 400 mainly based on commands transmitted from the main control unit 300. The basic circuit 402 includes a CPU 404 and ROM 406 for storing control programs and various effects data, RAM 408 for temporarily storing data, I / O 410 for controlling input / output of various devices, and for measuring time, frequency, etc. The counter timer 412 is mounted. The CPU 404 of the basic circuit 402 operates by inputting a clock signal of a predetermined period output from the crystal oscillator 414 as a system clock. The ROM 406 may store the control program and various effect data in separate ROMs.

また、基本回路402には、スピーカ120(およびアンプ)の制御を行うための音源IC416と、各種ランプ418(例えば、チャンスボタンランプ138)の制御を行うための駆動回路420と、遮蔽装置246の駆動制御を行うための駆動回路432と、遮蔽装置246の現在位置を検出する遮蔽装置センサ430と、チャンスボタン136の押下を検出するチャンスボタン検出センサ426と、遮蔽装置センサ430やチャンスボタン検出センサ426からの検出信号を基本回路402に出力するセンサ回路428と、CPU404からの信号に基づいてROM406に記憶された画像データ等を読み出してVRAM436のワークエリアを使用して表示画像を生成して装飾図柄表示装置208に画像を表示するVDP434(ビデオ・ディスプレイ・プロセッサー)と、を接続している。   The basic circuit 402 includes a sound source IC 416 for controlling the speaker 120 (and amplifier), a drive circuit 420 for controlling various lamps 418 (for example, the chance button lamp 138), and a shielding device 246. A drive circuit 432 for performing drive control, a shielding device sensor 430 that detects the current position of the shielding device 246, a chance button detection sensor 426 that detects pressing of the chance button 136, a shielding device sensor 430, and a chance button detection sensor The sensor circuit 428 that outputs the detection signal from the 426 to the basic circuit 402, and the image data stored in the ROM 406 based on the signal from the CPU 404 are read, and the display image is generated using the work area of the VRAM 436 to decorate A VDP 434 (image) that displays an image on the symbol display device 208. Are connected Oh and display processor), the.

次に、パチンコ機100の第2副制御部500について説明する。第2副制御部500は、第1副制御部400が送信した制御コマンドを入力インタフェースを介して受信し、この制御コマンドに基づいて第2副制御部500の全体を制御する基本回路502を備えており、この基本回路502は、CPU504と、一時的にデータを記憶するためのRAM508と、各種デバイスの入出力を制御するためのI/O510と、時間や回数等を計測するためのカウンタタイマ512を搭載している。基本回路502のCPU504は、水晶発振器514が出力する所定周期のクロック信号をシステムクロックとして入力して動作し、第2副制御部500の全体を制御するための制御プログラム及びデータ、画像表示用のデータ等が記憶されたROM506が設けられている。   Next, the second sub control unit 500 of the pachinko machine 100 will be described. The second sub-control unit 500 includes a basic circuit 502 that receives the control command transmitted from the first sub-control unit 400 via the input interface and controls the entire second sub-control unit 500 based on the control command. The basic circuit 502 includes a CPU 504, a RAM 508 for temporarily storing data, an I / O 510 for controlling input / output of various devices, and a counter timer for measuring time and frequency 512 is installed. The CPU 504 of the basic circuit 502 operates by inputting a clock signal of a predetermined period output from the crystal oscillator 514 as a system clock, and controls a control program and data for controlling the entire second sub-control unit 500, and an image display A ROM 506 storing data and the like is provided.

また、基本回路502には、演出可動体224の駆動制御を行うための駆動回路516と、演出可動体224の現在位置を検出する演出可動体センサ424と、演出可動体センサ424からの検出信号を基本回路502に出力するセンサ回路518と、遊技盤用ランプ532の制御を行うための遊技盤用ランプ駆動回路530と、遊技台枠用ランプ542の制御を行うための遊技台枠用ランプ駆動回路540と、遊技盤用ランプ駆動回路530と遊技台枠用ランプ駆動回路540との間でシリアル通信による点灯制御を行うシリアル通信制御回路520と、を接続している。   The basic circuit 502 includes a drive circuit 516 for controlling the drive of the effect movable body 224, an effect movable body sensor 424 that detects the current position of the effect movable body 224, and a detection signal from the effect movable body sensor 424. Is output to the basic circuit 502, a game board lamp drive circuit 530 for controlling the game board lamp 532, and a game table frame lamp drive for controlling the game table frame lamp 542 The circuit 540 is connected to a serial communication control circuit 520 that performs lighting control by serial communication between the game board lamp drive circuit 530 and the game stand frame lamp drive circuit 540.

<払出制御部、発射制御部、電源制御部>   <Discharge control unit, launch control unit, power supply control unit>

次に、パチンコ機100の払出制御部600、発射制御部630、電源制御部660について説明する。   Next, the payout control unit 600, the launch control unit 630, and the power supply control unit 660 of the pachinko machine 100 will be described.

払出制御部600は、主に主制御部300が送信したコマンド等の信号に基づいて払出装置152の払出モータ602を制御すると共に、払出センサ604が出力する制御信号に基づいて賞球または貸球の払い出しが完了したか否かを検出すると共に、インタフェース部606を介して、パチンコ機100とは別体で設けられたカードユニット608との通信を行う。   The payout control unit 600 controls the payout motor 602 of the payout device 152 mainly based on a command signal or the like transmitted from the main control unit 300, and a prize ball or a rental ball based on a control signal output from the payout sensor 604 It is detected whether or not the payout has been completed, and communication with a card unit 608 provided separately from the pachinko machine 100 is performed via the interface unit 606.

発射制御部630は、払出制御部600が出力する、発射許可または停止を指示する制御信号や、球発射ハンドル134内に設けた発射強度出力回路が出力する、遊技者による球発射ハンドル134の操作量に応じた発射強度を指示する制御信号に基づいて、発射杆146および発射槌148を駆動する発射モータ632の制御や、上皿126から発射装置110に球を供給する球送り装置634の制御を行う。   The launch control unit 630 outputs a control signal output from the payout control unit 600 to permit or stop the launch, or a launch intensity output circuit provided in the ball launch handle 134 to operate the ball launch handle 134 by the player. Control of the launch motor 632 that drives the launcher 146 and launcher 148, and control of the ball feeder 634 that supplies the launcher 110 with a ball from the upper plate 126 based on a control signal that indicates the launch intensity according to the amount. I do.

電源制御部660は、パチンコ機100に外部から供給される交流電源を直流化し、所定の電圧に変換して主制御部300、第1副制御部400等の各制御部や払出装置152等の各装置に供給する。さらに、電源制御部660は、外部からの電源が断たれた後も所定の部品(例えば主制御部300のRAM308等)に所定の期間(例えば10日間)電源を供給するための蓄電回路(例えば、コンデンサ)を備えている。なお、本実施形態では、電源制御部660から払出制御部600と第2副制御部500に所定電圧を供給し、払出制御部600から主制御部300と第2副制御部500と発射制御部630に所定電圧を供給しているが、各制御部や各装置に他の電源経路で所定電圧を供給してもよい。
<図柄の種類>
The power control unit 660 converts the AC power supplied from the outside to the pachinko machine 100 into a DC voltage, converts it to a predetermined voltage, and controls each control unit such as the main control unit 300 and the first sub control unit 400, the payout device 152, etc. Supply to each device. Further, the power supply control unit 660 supplies a power storage circuit (for example, a power supply circuit) for supplying power to a predetermined part (for example, the RAM 308 of the main control unit 300) for a predetermined period (for example, 10 days) even after the external power supply is cut off. , Capacitor). In the present embodiment, a predetermined voltage is supplied from the power supply control unit 660 to the payout control unit 600 and the second sub control unit 500, and the main control unit 300, the second sub control unit 500, and the launch control unit are supplied from the payout control unit 600. Although a predetermined voltage is supplied to 630, the predetermined voltage may be supplied to each control unit and each device through another power supply path.
<Type of design>

次に、図76(a)〜(c)を用いて、パチンコ機100の第1特別図柄表示装置212、第2特別図柄表示装置214、装飾図柄表示装置208、普通図柄表示装置210が停止表示する特図および普図の種類について説明する。同図(a)は特図の停止図柄態様の一例を示したものである。   Next, using FIGS. 76A to 76C, the first special symbol display device 212, the second special symbol display device 214, the decorative symbol display device 208, and the normal symbol display device 210 of the pachinko machine 100 are stopped and displayed. The types of special maps and general maps to be described will be described. FIG. 4A shows an example of the stop symbol form of the special figure.

第1特図始動口230に球が入球したことを第1始動口センサが検出したことを条件として特図1変動遊技が開始され、第2特図始動口232に球が入球したことを第2始動口センサが検出したことを条件として特図2変動遊技が開始される。特図1変動遊技が開始されると、第1特別図柄表示装置212は、7個のセグメントの全点灯と、中央の1個のセグメントの点灯を繰り返す「特図1の変動表示」を行う。また、特図2変動遊技が開始されると、第2特別図柄表示装置214は、7個のセグメントの全点灯と、中央の1個のセグメントの点灯を繰り返す「特図2の変動表示」を行う。これらの「特図1の変動表示」および「特図2の変動表示」が本発明にいう図柄の変動表示の一例に相当する。そして、特図1の変動開始前に決定した変動時間(本発明にいう変動時間が相当)が経過すると、第1特別図柄表示装置212は特図1の停止図柄態様を停止表示し、特図2の変動開始前に決定した変動時間(これも本発明にいう変動時間が相当)が経過すると、第2特別図柄表示装置214は特図2の停止図柄態様を停止表示する。したがって、「特図1の変動表示」を開始してから特図1の停止図柄態様を停止表示するまで、あるいは「特図2の変動表示」を開始してから特図2の停止図柄態様を停止表示するまでが本発明にいう図柄変動停止表示の一例に相当し、以下、この「特図1又は2の変動表示」を開始してから特図1又は2の停止図柄態様を停止表示するまでの一連の表示を図柄変動停止表示と称する。後述するように、図柄変動停止表示は複数回、連続して行われることがある。同図(a)には、図柄変動停止表示における停止図柄態様として「特図A」から「特図J」までの10種類の特図が示されており、図中の白抜きの部分が消灯するセグメントの場所を示し、黒塗りの部分が点灯するセグメントの場所を示している。   The special figure 1 variable game is started on the condition that the first start port sensor detects that the ball has entered the first special figure start port 230, and the ball has entered the second special figure start port 232 The special figure 2 variable game is started on the condition that the second start port sensor has detected. When the special figure 1 variable game is started, the first special symbol display device 212 performs “variable display of special figure 1” by repeating all lighting of seven segments and lighting of one central segment. In addition, when the special figure 2 variable game is started, the second special symbol display device 214 displays “fluctuation display of special figure 2” which repeats lighting of all seven segments and lighting of one central segment. Do. These “variation display of special figure 1” and “variation display of special figure 2” correspond to an example of the symbol fluctuation display according to the present invention. Then, when the variation time determined before the variation start of the special figure 1 (corresponding to the variation time referred to in the present invention) elapses, the first special symbol display device 212 stops and displays the special symbol form of the special figure 1. When the variation time determined before the start of variation 2 (this also corresponds to the variation time according to the present invention) has elapsed, the second special symbol display device 214 stops and displays the stop symbol form of the special diagram 2. Therefore, from the start of “figure display of special figure 1” until the stop symbol form of special figure 1 is stopped, or after the start of “fluctuation display of special figure 2”, the stop symbol form of special figure 2 is displayed. Until stop display corresponds to an example of the symbol variation stop display referred to in the present invention, hereinafter, after the “variable display of special figure 1 or 2” is started, the stop symbol form of special figure 1 or 2 is stopped and displayed. The series of displays up to is referred to as symbol variation stop display. As will be described later, the symbol variation stop display may be continuously performed a plurality of times. FIG. 10A shows 10 types of special drawings from “Special Figure A” to “Special Figure J” as stop symbol forms in the symbol variation stop display, and the white portions in the figure are turned off. The location of the segment to be displayed is shown, and the black portion indicates the location of the segment to be lit.

「特図A」は15ラウンド(15R)特別大当り図柄であり、「特図B」は15R大当り図柄である。本実施形態のパチンコ機100では、後述するように、特図変動遊技における大当りか否かの決定はハードウェア乱数の抽選によって行い、特別大当りか否かの決定はソフトウェア乱数の抽選によって行う。大当りと特別大当りの違いは、次回の特図変動遊技で、大当りに当選する確率が高い(特別大当り)か低い(大当り)かの違いである。以下、この大当りに当選する確率が高い状態のことを特図高確率状態と称し、その確率が低い状態のことを特図低確率状態と称する。また、15R特別大当り遊技終了後および15R大当り遊技終了後はいずれも時短状態に移行する。時短については詳しくは後述するが、時短状態に移行する状態のことを普図高確率状態と称し、時短状態に移行しない状態のことを普図低確率状態と称する。15R特別大当り図柄である「特図A」は、特図高確率普図高確率状態であり、15R大当り図柄である「特図B」は、特図低確率普図高確率状態である。これらの「特図A」および「特図B」は、遊技者に付与する利益量が相対的に大きな利益量になる図柄である。   “Special figure A” is a 15 round (15R) special jackpot symbol, and “Special figure B” is a 15R jackpot symbol. In the pachinko machine 100 according to the present embodiment, as will be described later, the determination as to whether or not the big hit in the special figure variable game is made by lottery of hardware random numbers, and the decision as to whether or not it is a special big hit is made by lottery of software random numbers. The difference between the jackpot and the special jackpot is the difference in whether the probability of winning the jackpot is high (special jackpot) or low (jackpot) in the next special figure variation game. Hereinafter, a state having a high probability of winning the jackpot is referred to as a special figure high probability state, and a state having a low probability is referred to as a special figure low probability state. In addition, after the 15R special jackpot game ends and after the 15R jackpot game ends, both shift to the time-saving state. Although the time reduction will be described in detail later, the state that shifts to the time reduction state is referred to as a normal high probability state, and the state that does not shift to the time reduction state is referred to as a normal low probability state. “Special figure A”, which is a 15R special jackpot symbol, is a special figure high probability normal figure high probability state, and “Special figure B”, which is a 15R jackpot symbol, is a special figure low probability ordinary figure high probability state. These “special chart A” and “special chart B” are symbols that give a relatively large profit amount to the player.

「特図C」は突然確変と称される2R大当り図柄であり、特図高確率普図高確率状態である。すなわち、15Rである「特図A」と比べて、「特図C」は2Rである点が異なる。「特図D」は突然時短と称される2R大当り図柄であり、特図低確率普図高確率状態である。すなわち、15Rである「特図B」と比べて、「特図D」は2Rである点が異なる。   “Special figure C” is a 2R jackpot symbol called sudden probability change, and is a special figure high probability normal figure high probability state. That is, “Special Figure C” is 2R compared to “Special Figure A” which is 15R. “Special figure D” is a 2R jackpot symbol called sudden time reduction, and is a special figure low probability normal figure high probability state. That is, “Special Figure D” is 2R compared to “Special Figure B” which is 15R.

「特図E」は隠れ確変と称される2R大当り図柄であり、特図高確率普図低確率状態である。「特図F」は突然通常と称される2R大当り図柄であり、特図低確率普図低確率状態である。これら「特図E」および「特図F」はいずれも、2Rであるとともに、時短状態に移行しない状態である。   “Special figure E” is a 2R jackpot symbol called hidden probability change, and is a special figure high probability normal figure low probability state. "Special figure F" is a 2R jackpot symbol suddenly called normal, and is a special figure low probability normal figure low probability state. These “special drawing E” and “special drawing F” are both 2R and are in a state in which they do not shift to the time-saving state.

「特図G」は第1小当り図柄であり、「特図H」は第2小当り図柄であり、何れも特図低確率普図低確率状態である。ここにいう小当りは、2R時短無し大当りと同じものに相当する。すなわち、この「特図G」、「特図H」は「特図F」と同じ状態であるが、両者では装飾図柄表示装置208に表示される演出が異なり、あえて、同じ状態でも「特図G」、「特図H」と「特図F」を設けておくことで、遊技の興趣を高めている。   “Special figure G” is the first small hit symbol, and “Special figure H” is the second small hit symbol, both of which are in the special figure low probability normal figure low probability state. The small hit here corresponds to the same as the big hit with no short time at 2R. That is, “Special Figure G” and “Special Figure H” are in the same state as “Special Figure F”, but the effects displayed on the decorative symbol display device 208 are different in both cases. By providing “G”, “Special Figure H”, and “Special Figure F”, the interest of the game is enhanced.

また、「特図I」は第1はずれ図柄であり、「特図J」は第2はずれ図柄であり、遊技者に付与する利益量が相対的に小さな利益量になる図柄である。   In addition, “Special Figure I” is a first off symbol, and “Special Figure J” is a second off symbol, and the profit amount given to the player is a relatively small profit amount.

なお、本実施形態のパチンコ機100には、15R特別大当り図柄として「特図A」以外の図柄も用意されており、15R大当り図柄等の他の図柄についても同様である。   In the pachinko machine 100 according to the present embodiment, symbols other than “Special Illustration A” are prepared as 15R special jackpot symbols, and the same applies to other symbols such as 15R jackpot symbols.

図76(b)は装飾図柄の一例を示したものである。本実施形態の装飾図柄には、「装飾1」〜「装飾10」の10種類がある。第1特図始動口230または第2特図始動口232に球が入賞したこと、すなわち、第1特図始動口230に球が入球したことを第1始動口センサが検出したこと、あるいは第2特図始動口232に球が入球したことを第2始動口センサが検出したことを条件にして、装飾図柄表示装置208の左図柄表示領域208a、中図柄表示領域208b、右図柄表示領域208cの各図柄表示領域に、「装飾1」→「装飾2」→「装飾3」→・・・・「装飾9」→「装飾10」→「装飾1」→・・・の順番で表示を切り替える「装飾図柄の変動表示」を行う。そして、「特図B」の15R大当りを報知する場合には、図柄表示領域208a〜208cに15R大当りに対応する、同じ装飾図柄が3つ並んだ図柄組合せ(例えば「装飾1−装飾1−装飾1」や「装飾2−装飾2−装飾2」等)を停止表示する。「特図A」の15R特別大当りを報知する場合には、同じ奇数の装飾図柄が3つ並んだ図柄組合せ(例えば「装飾3−装飾3−装飾3」や「装飾7−装飾7−装飾7」等)を停止表示する。   FIG. 76B shows an example of a decorative design. There are 10 types of decoration patterns of the present embodiment: “Decoration 1” to “Decoration 10”. The first start port sensor detects that a ball has won the first special figure start port 230 or the second special view start port 232, that is, the ball has entered the first special view start port 230; or On the condition that the second start port sensor detects that a ball has entered the second special symbol start port 232, the left symbol display area 208a, the middle symbol display area 208b, and the right symbol display of the decorative symbol display device 208 are displayed. Displayed in the order of “decoration 1” → “decoration 2” → “decoration 3” →... “Decoration 9” → “decoration 10” → “decoration 1” →... “Decoration display of decorative pattern” is performed. When the 15R jackpot of “special drawing B” is notified, a symbol combination (for example, “decoration 1-decoration 1-decoration”) corresponding to the 15R jackpot corresponding to the 15R jackpot in the symbol display areas 208a to 208c. 1 ”or“ decoration 2—decoration 2—decoration 2 ”). When notifying the 15R special jackpot of “special drawing A”, a combination of three symbols of the same odd number of decorative symbols (for example, “decoration 3—decoration 3—decoration 3” or “decoration 7—decoration 7—decoration 7”). Etc.) is stopped and displayed.

また、「特図E」の隠れ確変と称される2R大当り、「特図F」の突然通常と称される2R大当り、あるいは「特図G」の第1小当り、「特図H」の第2小当りを報知する場合には、「装飾1−装飾2−装飾3」を停止表示する。さらに、「特図C」の突然確変と称される2R大当り、あるいは「特図D」の突然時短と称される2R大当りを報知する場合には、「装飾1−装飾3−装飾5」を停止表示する。一方、「特図I」の第1はずれ、「特図J」の第2はずれを報知する場合には、図柄表示領域208a〜208cに同図(b)に示す図柄組合せ以外の図柄組合せを停止表示する。   In addition, the 2R big hit called “hidden probability change” of “special drawing E”, the 2R big hit called “special drawing F” suddenly normal, or the first small hit of “special drawing G”, “special drawing H” When notifying the second small hit, “decoration 1-decoration 2—decoration 3” is stopped and displayed. Furthermore, in order to notify 2R jackpot called “sudden probability change” of “special drawing C” or 2R jackpot called “sudden time reduction of“ special drawing D ”,“ decoration 1-decoration 3—decoration 5 ”is set. Stop display. On the other hand, when notifying the first deviation of “Special Figure I” and the second deviation of “Special Figure J”, the symbol combination other than the symbol combination shown in FIG. 5B is stopped in the symbol display areas 208a to 208c. indicate.

図76(c)は普図の停止表示図柄の一例を示したものである。本実施形態の普図の停止表示態様には、当り図柄である「普図A」と、外れ図柄である「普図B」の2種類がある。普図始動口228を球が通過したことを上述のゲートセンサが検出したことに基づいて、普通図柄表示装置210は、7個のセグメントの全点灯と、中央の1個のセグメントの点灯を繰り返す「普図の変動表示」を行う。そして、普図変動遊技の当選を報知する場合には「普図A」を停止表示し、普図変動遊技の外れを報知する場合には「普図B」を停止表示する。この同図(c)においても、図中の白抜きの部分が消灯するセグメントの場所を示し、黒塗りの部分が点灯するセグメントの場所を示している。
<主制御部の基本回路>
FIG. 76 (c) shows an example of a usual stop display symbol. In the present embodiment, there are two types of stoppage display modes for ordinary maps, “general diagram A” which is a winning symbol and “general symbol B” which is a missed symbol. Based on the fact that the above-mentioned gate sensor has detected that a sphere has passed through the general-purpose start opening 228, the normal symbol display device 210 repeats all lighting of the seven segments and lighting of the central one segment. Perform a “normal change display”. Then, when notifying the winning of the common figure variable game, the “normal figure A” is stopped and displayed, and when notifying the usual figure variable game, the “normal figure B” is stopped and displayed. Also in FIG. 6C, the white portions in the figure indicate the locations of the segments that are turned off, and the black portions indicate the locations of the segments that are turned on.
<Basic circuit of main control unit>

次に、上述の主制御部300の基本回路302について詳細に説明する。図77は、主制御部300から基本回路302の主要部のみを抜き出して示した図である。   Next, the basic circuit 302 of the main controller 300 will be described in detail. FIG. 77 is a diagram showing only the main part of the basic circuit 302 extracted from the main control part 300.

主制御部300の基本回路302は、主制御部300全体の制御を行うCPU304と、CPU304が実行する制御プログラムやCPU304が参照する各種データを記憶するためのROM306と、CPU304が一時的にデータを記憶するためのRAM308と、を有している。
<主制御部のCPUの内蔵レジスタ>
The basic circuit 302 of the main control unit 300 includes a CPU 304 that controls the entire main control unit 300, a ROM 306 that stores a control program executed by the CPU 304 and various data referred to by the CPU 304, and the CPU 304 temporarily stores data. RAM 308 for storing.
<Built-in register of CPU of main control unit>

CPU304は、カウンタ回路、タイマ回路、シリアル通信回路、乱数回路、演算回路、リセット/割込みコントローラ等を制御するための制御レジスタのほか、CPU304が制御プログラムを実行する際に使用するレジスタなどの内蔵レジスタを備える。内蔵レジスタには、本発明の特徴点の一つであるTレジスタ(特殊レジスタ)と、汎用レジスタと、プログラムカウンタ(PC)、命令レジスタ等が含まれる。汎用レジスタの種類は特に限定されないが、本実施形態では、Iレジスタ、Aレジスタ、Fレジスタ、Bレジスタ、Cレジスタ、Dレジスタ、Eレジスタ、Hレジスタ、Lレジスタの8ビットレジスタを備えており、BレジスタとCレジスタ、DレジスタとEレジスタ、HレジスタとLレジスタは、それぞれ、16ビット長の演算が可能なBCレジスタ、DEレジスタ、HLレジスタの16ビットレジスタ(ペアレジスタ)としても機能するように構成されている。   The CPU 304 is a control register for controlling a counter circuit, a timer circuit, a serial communication circuit, a random number circuit, an arithmetic circuit, a reset / interrupt controller, and the like, and a built-in register such as a register used when the CPU 304 executes a control program Is provided. The built-in registers include a T register (special register), a general purpose register, a program counter (PC), an instruction register, etc., which are one of the features of the present invention. The type of general-purpose register is not particularly limited, but in this embodiment, an 8-bit register including an I register, an A register, an F register, a B register, a C register, a D register, an E register, an H register, and an L register is provided. The B and C registers, the D and E registers, and the H and L registers also function as 16-bit registers (pair registers) of the BC, DE, and HL registers that can perform 16-bit operations, respectively. It is configured.

また、本実施形態では、内蔵デバイスが出力する割込みベクタ(所定のデバイスから読み込んだ割込みベクタ)の値を下位8ビット、Iレジスタ(割込みベクタレジスタ、インタラプトレジスタ)の内容を上位8ビットとした合計16ビットのアドレスを、割込処理のアドレスとして読み込んで、後述する割込処理に分岐(ジャンプ)するように構成している。例えば、Iレジスタの値が00H、割込みベクタの値が60Hのときに割込処理の要求が発生した場合には、0060H(上位バイトがIレジスタの00H、下位バイトが割込みベクタの60H)で示されるアドレスに記憶された値(例えば、12H)を下位バイト、続く0061Hで示されるアドレスに記憶された値(例えば、04H)を上位バイトとする2バイトのアドレス(例えば、0412H)がPCにロードされ、このアドレスを先頭アドレスとする割込処理に分岐(ジャンプ)するように構成している。   In this embodiment, the value of the interrupt vector (interrupt vector read from a predetermined device) output from the built-in device is the lower 8 bits, and the content of the I register (interrupt vector register, interrupt register) is the upper 8 bits. A 16-bit address is read as an interrupt processing address, and is branched (jumped) to an interrupt processing to be described later. For example, when an interrupt processing request is generated when the value of the I register is 00H and the value of the interrupt vector is 60H, this is indicated by 0060H (the upper byte is 00H of the I register and the lower byte is 60H of the interrupt vector). A 2-byte address (for example, 0412H) is loaded to the PC with the value (for example, 12H) stored at the address to be stored as the lower byte, and the value (for example, 04H) stored at the address indicated by 0061H as the upper byte. Thus, a branch (jump) is made to an interrupt process using this address as the head address.

Fレジスタは、命令が実行されると、その実行結果に従ってFレジスタ内のビット7から順にSフラグ(サインフラグ)、Zフラグ(ゼロフラグ)、SZフラグ(セカンドゼロフラグ)、Hフラグ(ハーフキャリフラグ)、ビット3(空きビット)、P/Vフラグ(パリティ/オーバーフローフラグ)、Nフラグ(サブトラクトフラグ)、Cフラグ(キャリーフラグ)の各フラグが、1または0に変化したり、あるいは変化しなかったりする。SZフラグは、Zフラグが変化する命令ではZフラグ同様に変化するとともに、Z80互換命令の全てのLD命令、全ての16ビット算術演算命令(INC命令、DEC命令も含む)、ローテートシフト命令のRLCA命令、RLA命令、RRCA命令、RRA命令、「IN A,(n)」命令で変化する。   When an instruction is executed, the F register sequentially executes the S flag (sign flag), Z flag (zero flag), SZ flag (second zero flag), H flag (half carry flag) from bit 7 in the F register according to the execution result. , Bit 3 (empty bit), P / V flag (parity / overflow flag), N flag (subtract flag), and C flag (carry flag) change to 1 or 0 or do not change Or The SZ flag changes in the same way as the Z flag for instructions that change the Z flag, and all LD instructions of Z80 compatible instructions, all 16-bit arithmetic operation instructions (including INC instructions and DEC instructions), and RLCA of rotate shift instructions. It changes with an instruction, an RLA instruction, an RRCA instruction, an RRA instruction, and an “INA, (n)” instruction.

なお、16ビット演算命令のADC命令、SBC命令は、Zフラグが変化し、他の命令ではZフラグは変化せず、16ビット演算命令の全てでSZフラグは変化する。また、「IN A,(n)」命令は、SZフラグが変化し、Zフラグが変化しない。Fレジスタ内のSZフラグや空きビットの位置は上記したビット以外のビットであってもよい。なお、後述する特殊命令の場合にSZフラグが変化しないようにしてもよい。   Note that the 16-bit arithmetic instruction ADC instruction and SBC instruction change the Z flag, the other instructions do not change the Z flag, and the 16-bit arithmetic instruction changes the SZ flag. In addition, in the “INA, (n)” instruction, the SZ flag changes and the Z flag does not change. The position of the SZ flag or empty bit in the F register may be a bit other than the above-described bits. Note that the SZ flag may not be changed in the case of a special instruction described later.

また、本実施形態では、A、F、B、C、D、E、H、Lの各汎用レジスタ(主レジスタ)に対応する補助レジスタ(裏レジスタ)として、A´、F´、B´、C´、D´、E´、H´、L´の各汎用レジスタを備えているが、特殊レジスタであるTレジスタのみ補助レジスタを備えていない。よって、Tレジスタの使用用途は限定され、Tレジスタの使用頻度は汎用レジスタに比べて低くなるため、不用意にTレジスタの値が書き換えられてしまうような事態(Tレジスタの内容が破壊されてしまうような事態)を未然に防止できる場合がある。なお、補助レジスタの値は各種命令によって直接読み書きすることができず、特殊な交換命令(EX命令、EXX命令)によって主レジスタの値と補助レジスタの値を交換することのみが許されている。ここでは、説明の便宜上、レジスタの値をPUSH命令・POP命令等の命令で変更し易いレジスタを汎用レジスタとしたが、これに限らず、Aレジスタ(アキュムレータ)とFレジスタ(フラグレジスタ)など特別な役割を持つレジスタを汎用レジスタに含めなくてもよい。   In the present embodiment, A ′, F ′, B ′, A ′, F ′, B ′, A ′, F ′, B ′, A, F, B, C, D, E, H, and L are used as auxiliary registers (back registers) corresponding to the general-purpose registers (main registers). Each of the general-purpose registers C ′, D ′, E ′, H ′, and L ′ is provided, but only the T register that is a special register is not provided with an auxiliary register. Therefore, the usage of the T register is limited, and the usage frequency of the T register is lower than that of the general-purpose register. Therefore, a situation in which the value of the T register is inadvertently rewritten (the contents of the T register are destroyed). Situation) can be prevented in advance. Note that the value of the auxiliary register cannot be directly read / written by various instructions, and only the value of the main register and the value of the auxiliary register are allowed to be exchanged by a special exchange instruction (EX instruction, EXX instruction). Here, for convenience of explanation, a register whose register value can be easily changed by an instruction such as a PUSH instruction / POP instruction is a general-purpose register. However, the present invention is not limited to this, and special registers such as an A register (accumulator) and an F register (flag register) It is not necessary to include a register having a special role in the general-purpose register.

また、ここでは、TレジスタをCPU304に内蔵する例を示したが、例えば、CPU304の外部に設けてもよいし、CPU304とは別体のRAM308の一部に設けてもよい。すなわち、Tレジスタは、制御プログラムを記憶するための記憶手段(本実施形態ではROM306)と物理的に異なる場所に設けられていることが好ましい。さらには、Tレジスタに(後述する)特定の値を書き込む処理を行う制御部と、ROM306から制御プログラムを読み出して遊技制御を行う制御部と、が異なることが好ましい。制御部を異ならせることで、制御プログラムの改造と特定の値の不正取得の両方を行うことを困難にすることができるためである。   Although an example in which the T register is built in the CPU 304 is shown here, for example, the T register may be provided outside the CPU 304 or may be provided in a part of the RAM 308 separate from the CPU 304. That is, it is preferable that the T register is provided at a location physically different from storage means (ROM 306 in the present embodiment) for storing the control program. Furthermore, it is preferable that a control unit that performs a process of writing a specific value (described later) in the T register is different from a control unit that reads a control program from the ROM 306 and performs game control. This is because it is possible to make it difficult to perform both modification of the control program and illegal acquisition of a specific value by making the control unit different.

<主制御部のCPUのメモリ空間とI/O空間>   <Memory space and I / O space of CPU of main controller>

次に、図78を用いて、主制御部300のCPU304のメモリ空間とI/O空間について説明する。なお、同図(a)はCPU304のメモリマップを示した図であり、同図(b)はCPU304のI/Oマップを示した図である。   Next, the memory space and I / O space of the CPU 304 of the main control unit 300 will be described with reference to FIG. 2A is a diagram showing a memory map of the CPU 304, and FIG. 2B is a diagram showing an I / O map of the CPU 304.

主制御部300のCPU304は、上述の内蔵レジスタ、ROM306、RAM308などにアクセスするためのメモリ空間と、上述のI/O310との間で制御信号の入出力を行うためのI/O空間を有している。具体的には、同図(a)のメモリマップに示すように、主制御部300のROM306のアドレス/データ信号線は、メモリ空間のROM領域(本実施形態では、0000H〜2FFFH(Hは16進数を示す。以下、同じ)のうち、0000H〜2FBFH。2FC0H〜2FFFHはプログラム管理エリア)に割り当てられ、CPU304は、このROM領域を指定してROM306からのデータの読み出しを行う。また、本実施形態では、ROM領域を第一領域〜第八領域の8つの領域に分けて管理を行っており、第一領域は0000Hから始まる領域としている。   The CPU 304 of the main control unit 300 has a memory space for accessing the above-described built-in registers, ROM 306, RAM 308, etc., and an I / O space for inputting / outputting control signals to / from the above-mentioned I / O 310. doing. Specifically, as shown in the memory map of FIG. 6A, the address / data signal line of the ROM 306 of the main control unit 300 is the ROM area of the memory space (0000H to 2FFFH (H is 16 in this embodiment)). 0000H to 2FBFH, 2FC0H to 2FFFH are assigned to the program management area), and the CPU 304 reads the data from the ROM 306 by designating this ROM area. In the present embodiment, the ROM area is divided into eight areas from the first area to the eighth area for management, and the first area is an area starting from 0000H.

また、内蔵レジスタのアドレス/データ信号線は、メモリ空間のレジスタエリア(本実施形態では、FE00H〜FEBFH)に割り当てられ、CPU304は、このレジスタエリアを介して内蔵レジスタからのデータの読み出しやレジスタへのデータの書き込みを行う。   The address / data signal line of the built-in register is assigned to a register area in the memory space (in this embodiment, FE00H to FEBFH), and the CPU 304 reads data from the built-in register to this register area and sends it to the register. Write the data.

また、RAM308のアドレス/データ信号線は、メモリ空間のRWM領域(本実施形態では、F000H〜F3FFH)に割り当てられ、CPU304は、このRWM領域を指定してRAM308からのデータの読み出しやRAM308へのデータの書き込みを行う。なお、メモリ空間の他の領域(本実施形態では、3000H〜EFFFH、F400H〜FDFFH、FEC0H〜FFFFH)は非使用領域とされている。   Further, the address / data signal line of the RAM 308 is assigned to the RWM area (F000H to F3FFH in this embodiment) of the memory space, and the CPU 304 designates this RWM area and reads data from the RAM 308 and sends it to the RAM 308. Write data. Note that other areas of the memory space (in the present embodiment, 3000H to EFFFH, F400H to FDFFH, FEC0H to FFFFH) are unused areas.

また、同図(b)のI/Oマップに示すように、主制御部300のI/O310は、I/O空間のワークエリア(本実施形態では、00H〜BFH)に割り当てられ、CPU304は、このI/O空間を介して、I/O310との間で制御信号の入出力を行う。なお、I/O空間の他の領域(本実施形態では、C0H〜FFH)は非使用領域とされている。
<初期化処理>
Also, as shown in the I / O map of FIG. 10B, the I / O 310 of the main control unit 300 is assigned to the work area of the I / O space (in this embodiment, 00H to BFH). The control signal is input / output to / from the I / O 310 via the I / O space. In addition, the other area | region (C0H-FFH in this embodiment) is made into the non-use area | region.
<Initialization process>

次に、図79を用いて、主制御部300の初期化処理について説明する。なお、同図は初期化処理の流れを示すフローチャートである。   Next, the initialization process of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of initialization processing.

上述したように、主制御部300には、電源が投入されると起動信号(システムリセット信号)を出力する起動信号出力回路(リセット信号出力回路)340を設けている。この起動信号を入力した基本回路302のCPU304は、後述するセキュリティモードまたはユーザモードに移行する前に、この初期化処理を実行する。   As described above, the main control unit 300 is provided with the start signal output circuit (reset signal output circuit) 340 that outputs the start signal (system reset signal) when the power is turned on. The CPU 304 of the basic circuit 302 to which this activation signal is input executes this initialization process before shifting to a security mode or a user mode described later.

具体的には、ステップS51では、CPU304に内蔵されたTレジスタに、特定の値(本実施形態では、上述のRWM領域の先頭アドレスF000Hの上位バイトであるF0H)を記憶する。ステップS52では、Tレジスタ以外の他のレジスタに初期値をセットした後にステップS53に進み、後述する主制御部メイン処理を実行する。   Specifically, in step S51, a specific value (in this embodiment, F0H, which is the upper byte of the start address F000H of the RWM area described above) is stored in the T register built in the CPU 304. In step S52, an initial value is set in a register other than the T register, and then the process proceeds to step S53 to execute a main control unit main process described later.

なお、Tレジスタに記憶する特定の値はF0Hに限定されないことは言うまでもなく、例えば、上述のレジスタエリアの先頭アドレス(本実施形態ではFE00H)の上位バイトであるFEHをTレジスタに記憶するように構成すれば、後述するRAM308へのアクセスと同様の原理で、内蔵レジスタへのアクセス効率を高めることができる場合がある。また、第一のタイミングではTレジスタにRWM領域の先頭アドレスの上位バイトを設定し、その後(または、その前)の第二のタイミングでTレジスタにレジスタエリアの先頭アドレスの上位バイトを設定するように構成してもよい。また、所定条件が成立している場合(例えば、所定の端子にLレベルの信号が入力されている場合)にはTレジスタにRWM領域の先頭アドレスの上位バイトを設定し、所定条件が成立していない場合には、Tレジスタにレジスタエリアの先頭アドレスの上位バイトを設定するように構成してもよい。   Needless to say, the specific value stored in the T register is not limited to F0H. For example, FEH, which is the upper byte of the start address of the register area (FE00H in this embodiment), is stored in the T register. If configured, the access efficiency to the built-in register may be improved by the same principle as the access to the RAM 308 described later. At the first timing, the upper byte of the head address of the RWM area is set in the T register, and the upper byte of the head address of the register area is set in the T register at the second timing thereafter (or before). You may comprise. In addition, when a predetermined condition is satisfied (for example, when an L level signal is input to a predetermined terminal), the upper byte of the leading address of the RWM area is set in the T register, and the predetermined condition is satisfied. If not, the upper byte of the start address of the register area may be set in the T register.

また、この初期化処理において制御プログラムによらずに(自動的に)TレジスタにRWM領域の先頭アドレスの上位バイトを設定(または/およびTレジスタにレジスタエリアの先頭アドレスの上位バイトを設定)し、この初期化処理後に制御プログラム(例えば、後述するステップS101の初期設定1処理、ステップS107の初期設定2処理、ステップS113の初期化処理など)によって(手動で)Tレジスタにレジスタエリアの先頭アドレスの上位バイトを設定(または/およびTレジスタにRWM領域の先頭アドレスの上位バイトを設定)するように構成してもよい。   In this initialization process, the upper byte of the start address of the RWM area is set in the T register (or / and the upper byte of the start address of the register area is set in the T register) without depending on the control program. Then, after this initialization processing, the start address of the register area in the T register (manually) by a control program (for example, initial setting 1 processing in step S101 described later, initial setting 2 processing in step S107, initialization processing in step S113, etc.) May be configured (or / and / or the upper byte of the start address of the RWM area is set in the T register).

ここで、上述のリセット割込みには、システムリセット割込み(システムリセット端子に一定期間のリセット信号を入力するなど、外部イベントが要因となって行われるリセット割込み)と、ユーザリセット割込み(ユーザリセット端子に一定期間のリセット信号を入力するなど、外部イベントが要因となって行われるリセット割り込みや、WDTのタイムアウトや指定エリア外のアクセスなど、内部イベントが要因となって行われるリセット割込み)の2種類の割込みがある。システムリセット割込みによるリセットでは、制御レジスタや汎用レジスタを含む全ての内部回路が初期化され(例えば、レジスタに応じた初期値(例えばIレジスタに00Hがセットされる))、ユーザリセット割込みによるリセットでは、内部回路の一部が初期化される。   Here, the above-mentioned reset interrupt includes a system reset interrupt (a reset interrupt caused by an external event such as inputting a reset signal for a certain period to the system reset terminal) and a user reset interrupt (a user reset terminal). There are two types of reset interrupts that are triggered by an external event, such as inputting a reset signal for a certain period, and reset interrupts that are triggered by an internal event, such as a WDT timeout or access outside a specified area) There is an interrupt. In a reset by a system reset interrupt, all internal circuits including a control register and a general-purpose register are initialized (for example, an initial value corresponding to the register (for example, 00H is set in the I register)). A part of the internal circuit is initialized.

図80は、システムリセット後の起動処理のタイムチャートである。システムリセット(XSRST端子に所定期間(例えば、システムクロックの4周期分の期間)以上のLレベルの信号が入力された後にHレベルの信号が入力された場合)による初期化処理を実行した後は、所定条件が成立している場合(例えば、所定の端子にLレベルの信号が入力されている場合)はセキュリティモードに移行し、所定条件が成立していない場合はユーザモードに移行する。ここで、セキュリティモードは、ユーザプログラムの認証を行うモードである。具体的には、システムリセット入力時にユーザプログラムを基に計算された認証コードが正しいかどうかの再計算を行い、結果(セキュリティチェックの結果)がOK(異常なし)の場合、このモードを終了して自動的にユーザモードに移行可能とし、セキュリティチェックの結果がNG(異常あり)の場合、CPU304が停止するように構成している。なお、認証コードは、ROM書き込み時にユーザプログラム(以下、「制御プログラム」と称する場合がある)とともにROM306に書き込まれる。   FIG. 80 is a time chart of the startup process after system reset. After executing an initialization process by a system reset (when an H level signal is input after an L level signal is input to the XSRST terminal for a predetermined period (for example, a period of four cycles of the system clock)) When the predetermined condition is satisfied (for example, when an L level signal is input to a predetermined terminal), the process shifts to the security mode, and when the predetermined condition is not satisfied, the process shifts to the user mode. Here, the security mode is a mode for authenticating the user program. Specifically, when the system reset is input, re-calculate whether the authentication code calculated based on the user program is correct. If the result (security check result) is OK (no abnormality), this mode is terminated. When the security check result is NG (abnormal), the CPU 304 is configured to stop. The authentication code is written in the ROM 306 together with the user program (hereinafter sometimes referred to as “control program”) when writing into the ROM.

このセキュリティモードにおいてセキュリティチェックが終了した後、一定の期間の経過を待つ固定延長処理(以下、「固定遅延機能」ともいう)が終了したときにXRSTO端子からHレベルのリセット出力を出力し、その後、ランダムな期間の経過を待つランダム延長処理(以下、「ランダム遅延機能」ともいう)が終了した場合にユーザモードに移行するように構成されている(固定延長処理とランダム延長処理を合わせて「セキュリティモード延長処理」や「セキュリティモード延長機能」ともいう)。ユーザモードは、ROMのリセットアドレス(上述のROM領域の第一領域の先頭アドレスである0000H)からユーザプログラムを実行するモードであり、後述する主制御部メイン処理が開始される。なお、本実施形態では、CPU304がユーザプログラムを実行する際に1回の処理(1ステート)で命令レジスタに読みこむデータのバイト長を1バイト(8ビット)長としているが、1ステート当りのデータ長は特に限定されず、例えば、16ビット長や32ビット長でもよい。   After the security check is finished in this security mode, when the fixed extension process (hereinafter also referred to as “fixed delay function”) waiting for a certain period of time is finished, an H level reset output is output from the XRSTO terminal, and thereafter When the random extension process (hereinafter also referred to as “random delay function”) that waits for the passage of a random period is completed, it is configured to shift to the user mode (a combination of the fixed extension process and the random extension process) Security mode extension processing ”or“ security mode extension function ”). The user mode is a mode in which the user program is executed from the reset address of the ROM (0000H, which is the first address of the first area of the ROM area described above), and main control unit main processing described later is started. In this embodiment, when the CPU 304 executes the user program, the byte length of data read into the instruction register in one process (one state) is 1 byte (8 bits). The data length is not particularly limited, and may be 16 bits or 32 bits, for example.

また、本実施形態では、上述の初期化処理はセキュリティモードやユーザモードへの移行前に(自動的に(制御プログラムによらずに))実行されるように構成しているが、セキュリティモードやユーザモードへの移行後に実行されるよう構成してもよい。また、リセットの種類(ユーザリセット割込みの場合には割込み要因の種類)によって、初期化処理の実行タイミングが異なるように構成してもよい。   In the present embodiment, the above-described initialization process is configured to be executed (automatically (regardless of the control program)) before shifting to the security mode or the user mode. You may comprise so that it may be performed after transfering to user mode. Further, the initialization processing execution timing may be different depending on the type of reset (the type of interrupt factor in the case of a user reset interrupt).

具体的には、直前に発生したリセット要因を管理するためのレジスタ(内蔵レジスタのうちの一つである)を参照して、直前に発生したリセット要因が(1)システムリセットであるか否か、(2)WDTのタイムアウトによるユーザリセットであるか否か、(3)指定エリア外のアクセスによるユーザリセットであるか否か、を判定し、判定結果に応じて初期化処理の実行タイミングを決定するように構成してもよい。また、初期化処理でセットされる特定の値と初期値は、リセットの種類やレジスタの種類によって異なるように構成してもよい(例えば、汎用レジスタはシステムリセットでもユーザリセットでも初期値として00Hがセットされ、Tレジスタはシステムリセット時は特定の値としてF0Hがセットされるがユーザリセット時は初期化されないように構成してもよい)。   Specifically, referring to a register (one of the built-in registers) for managing the reset factor that occurred immediately before, whether or not the reset factor that occurred immediately before is (1) a system reset. (2) It is determined whether or not a user reset is caused by a timeout of WDT, and (3) whether or not a user reset is caused by access outside the designated area, and the execution timing of the initialization process is determined according to the determination result. You may comprise. In addition, the specific value and the initial value set in the initialization process may be configured to be different depending on the type of reset and the type of register (for example, a general-purpose register has 00H as an initial value in both system reset and user reset). The T register is set such that F0H is set as a specific value at the time of system reset, but may not be initialized at the time of user reset).

また、セキュリティモードの時間は、設定した時間分だけ延長することも、ランダムな時間分だけ延長することも可能である。ランダムな時間分だけ延長することにより、不正行為者はユーザプログラムの開始タイミングが狙いにくくなる場合がある。また、ユーザリセット(例えばWDTのタイムアウトによるリセット)からユーザプログラムの実行開始までの時間をランダムな時間に設定可能な構成としてもよい。このような構成とすれば、ユーザプログラムの開始タイミングを狙った不正行為を未然に防止できる場合がある。
<主制御部メイン処理>
The security mode time can be extended by a set time or can be extended by a random time. By extending by a random amount of time, it may be difficult for the fraudster to aim at the start timing of the user program. Moreover, it is good also as a structure which can set the time from user reset (for example, reset by timeout of WDT) to the start of execution of a user program to random time. With such a configuration, there is a case where fraud aimed at the start timing of the user program can be prevented in advance.
<Main control unit main processing>

次に、図81を用いて、主制御部300のCPU304が実行する主制御部メイン処理について説明する。なお、同図は主制御部メイン処理の流れを示すフローチャートである。   Next, a main control unit main process executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of main processing of the main control unit.

ステップS101では、初期設定1を行う。この初期設定1では、CPU304のスタックポインタ(SP)へのスタック初期値の設定(仮設定)、割込マスクの設定、I/O310の初期設定、RAM308に記憶する各種変数の初期設定、WDT314の起動やタイマアウト時間の設定、Tレジチェック処理(詳細は後述)等を行う。本実施形態では、WDT314のタイムアウト時間として32.8msに相当する数値を初期値として設定する。なお、ここでは、WDT314の起動とタイムアウト時間の設定を、主制御部メイン処理のメインループに入る直前で行う例を示したが、例えば、上述の初期化処理など、他の処理の中で行ってもよい。また、ステップS103では、WDT314のカウンタの値をクリアし、WDT314による時間計測を再始動(リスタート)する。なお、WDT314のクリア&リスタートをメインループ開始直後に行う例を示したが、例えば、後述する主制御部タイマ割込処理の中で定期的に行ってもよい。   In step S101, initial setting 1 is performed. In this initial setting 1, setting of a stack initial value (temporary setting) to the stack pointer (SP) of the CPU 304, setting of an interrupt mask, initial setting of the I / O 310, initial setting of various variables stored in the RAM 308, and setting of the WDT 314 Start-up, timer-out time setting, T-registration check processing (details will be described later), etc. In the present embodiment, a numerical value corresponding to 32.8 ms is set as an initial value as the timeout time of the WDT 314. In this example, the WDT 314 is activated and the timeout time is set immediately before entering the main loop of the main control unit main process. However, for example, it is performed in other processes such as the initialization process described above. May be. In step S103, the counter value of WDT 314 is cleared, and the time measurement by WDT 314 is restarted. In addition, although the example which performs clear & restart of WDT314 immediately after a main loop start was shown, you may perform regularly in the main control part timer interruption process mentioned later, for example.

また、図示は省略するが、基本回路302は、WDT314を制御するレジスタとして、スタートレジスタとクリアレジスタを備えている。スタートレジスタは、WDT314の起動/停止を制御するための8ビット長のレジスタであり、WDT314を起動するときには起動を指示する値(例えば、CCH)を設定し(書き込み)、WDT314を停止するときには停止を指示する値(例えば、33H)を設定するように構成されている。   Although not shown, the basic circuit 302 includes a start register and a clear register as registers for controlling the WDT 314. The start register is an 8-bit register for controlling start / stop of the WDT 314. When starting the WDT 314, a value (for example, CCH) instructing start is set (written), and when the WDT 314 is stopped, the start register is stopped. Is configured to set a value (for example, 33H).

また、このスタートレジスタは、リセット時にプログラム管理エリアに「ソフトウェアによる起動」を設定(選択)したときに有効となるレジスタであり、その場合、停止を指示する値(例えば、33H)が初期値として設定される。したがって、「ソフトウェアによる起動」を設定(選択)したときにWDT314を起動するためには、遊技制御プログラムによって(手動で)起動を指示する値(例えば、CCH)を設定する必要がある。一方、リセット時に「ソフトウェアによる起動」を設定(選択)しなかったときは、スタートレジスタには、起動を指示する値(例えば、CCH)が遊技制御プログラムによらずに(自動的に)初期値として設定され、遊技制御プログラムによらずに(自動的に)WDT314が起動される。   This start register is valid when “start by software” is set (selected) in the program management area at the time of resetting. In this case, a stop instruction value (for example, 33H) is set as an initial value. Is set. Therefore, in order to activate WDT 314 when “activation by software” is set (selected), it is necessary to set a value (for example, CCH) instructing activation by the game control program (manually). On the other hand, when “activation by software” is not set (selected) at the time of resetting, a value (for example, CCH) instructing activation in the start register is an initial value (automatically) regardless of the game control program. The WDT 314 is activated (automatically) regardless of the game control program.

クリアレジスタは、WDT314のクリアとリスタートを制御するための8ビット長のレジスタであり、所定の第一の値(例えば、55H)を設定した後に、所定の第二の値(例えば、AAH)を設定したときにWDT314がクリアされ、直後にリスタートされる。なお、クリアレジスタの値を読み込んだときは、所定の固定値(例えば、FFH)が読みだされる。また、詳細は後述するが、本実施形態では、CPU304の所定記憶領域に、4ビット長の設定値データ0000B〜1000Bのいずれかを予め設定することによって、WDT314のタイムアウト時間を自由に設定できるように構成されている(図186参照)。なお、WDTが手動起動される前(停止された状態で)にクリアレジスタに第一の値、第二の値の順に値が設定されたとしてもWDT314は上記したクリアとリスタートの処理を実行しないように構成されている。   The clear register is an 8-bit register for controlling clearing and restarting of the WDT 314, and after setting a predetermined first value (for example, 55H), a predetermined second value (for example, AAH) Is set, WDT 314 is cleared and restarted immediately after. When the value of the clear register is read, a predetermined fixed value (for example, FFH) is read. Although details will be described later, in the present embodiment, the time-out time of the WDT 314 can be freely set by presetting any of the 4-bit length setting value data 0000B to 1000B in the predetermined storage area of the CPU 304. (See FIG. 186). Even if the first value and the second value are set in the clear register in the order of the first value and the second value before the WDT is manually started (in a stopped state), the WDT 314 performs the above-described clear and restart processing. It is configured not to.

ステップS105では、低電圧信号がオンであるか否か、すなわち、電圧監視回路338が、電源制御部660から主制御部300に供給している電源の電圧値が所定の値(本実施形態では9V)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(CPU304が電源の遮断を検知した場合)にはステップS103に戻り、低電圧信号がオフの場合(CPU304が電源の遮断を検知していない場合)にはステップS107に進む。なお、電源が投入された直後で未だ上記所定の値(9V)に達しない場合にもステップS103に戻り、供給電圧がその所定の値以上になるまで、ステップS105は繰り返し実行される。   In step S105, whether or not the low voltage signal is on, that is, the voltage value of the power supply that the voltage monitoring circuit 338 supplies from the power supply control unit 660 to the main control unit 300 is a predetermined value (in this embodiment, When the voltage is less than 9V), it is monitored whether or not a low voltage signal indicating that the voltage has decreased is output. Then, when the low voltage signal is on (when the CPU 304 detects that the power supply is cut off), the process returns to step S103, and when the low voltage signal is off (when the CPU 304 does not detect that the power supply is cut off), the step is performed. The process proceeds to S107. Even when the predetermined value (9 V) is not yet reached immediately after the power is turned on, the process returns to step S103, and step S105 is repeatedly executed until the supply voltage becomes equal to or higher than the predetermined value.

ステップS107では、初期設定2を行う。この初期設定2では、後述する主制御部タイマ割込処理を定期毎に実行するための周期を決める数値をカウンタタイマ312に設定する処理、I/O310の所定のポート(例えば試験用出力ポート、第1副制御部400への出力ポート)からクリア信号を出力する処理、RAM308への書き込みを許可する設定等を行う。   In step S107, initial setting 2 is performed. In this initial setting 2, a process for setting a numerical value for determining a cycle for executing a main control unit timer interrupt process, which will be described later, in the counter timer 312 and a predetermined port of the I / O 310 (for example, a test output port, A process of outputting a clear signal from the output port to the first sub control unit 400, a setting for permitting writing to the RAM 308, and the like are performed.

ステップS109では、電源の遮断前(電断前)の状態に復帰するか否かの判定を行い、電断前の状態に復帰しない場合(主制御部300の基本回路302を初期状態にする場合)には初期化処理(ステップS113)に進む。   In step S109, it is determined whether or not to return to the state before power interruption (before power interruption), and the state before power interruption is not restored (when the basic circuit 302 of the main control unit 300 is set to the initial state). ) Proceeds to an initialization process (step S113).

具体的には、最初に、電源基板に設けたRWMクリアスイッチ180を遊技店の店員などが操作した場合に送信されるRAMクリア信号がオン(操作があったことを示す)であるか否か、すなわちRAMクリアが必要であるか否かを判定し、RAMクリア信号がオンの場合(RAMクリアが必要な場合)には、基本回路302を初期状態にすべくステップS113に進む。一方、RAMクリア信号がオフの場合(RAMクリアが必要でない場合)には、RAM308に設けた電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、この電源ステータスの情報がサスペンドを示す情報であるか否かを判定する。そして、電源ステータスの情報がサスペンドを示す情報でない場合には、基本回路302を初期状態にすべくステップS113に進み、電源ステータスの情報がサスペンドを示す情報である場合には、RAM308の所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出し、算出したチェックサムの結果が特定の値(例えば0)であるか否か(チェックサムの結果が正常であるか否か)を判定する。そして、チェックサムの結果が特定の値(例えば0)の場合(チェックサムの結果が正常である場合)には電断前の状態に復帰すべくステップS111に進み、チェックサムの結果が特定の値(例えば0)以外である場合(チェックサムの結果が異常である場合)には、パチンコ機100を初期状態にすべくステップS113に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS113に進む。   Specifically, first, a RAM clear signal transmitted when a store clerk or the like of an amusement store operates the RWM clear switch 180 provided on the power supply board is turned on (indicates that there has been an operation). That is, it is determined whether or not the RAM clear is necessary. If the RAM clear signal is on (when the RAM clear is necessary), the process proceeds to step S113 to set the basic circuit 302 to the initial state. On the other hand, when the RAM clear signal is OFF (when the RAM clear is not necessary), the power status information stored in the power status storage area provided in the RAM 308 is read, and the power status information is information indicating suspend. It is determined whether or not. If the power status information is not information indicating suspend, the process proceeds to step S113 to set the basic circuit 302 to an initial state. If the power status information is information indicating suspend, a predetermined area of the RAM 308 is set. A checksum is calculated by adding all the 1-byte data stored in (for example, all areas) to a 1-byte register whose initial value is 0, and the calculated checksum results in a specific value (for example, 0) (whether or not the checksum result is normal). When the checksum result is a specific value (eg, 0) (when the checksum result is normal), the process proceeds to step S111 to return to the state before the power interruption, and the checksum result is a specific value. If the value is other than 0 (for example, 0) (if the result of the checksum is abnormal), the process proceeds to step S113 to set the pachinko machine 100 to the initial state. Similarly, when the power status information indicates information other than “suspend”, the process proceeds to step S113.

ステップS111では、復電時処理を行う。この復電時処理では、電断時にRAM308に設けられたスタックエリアに記憶しておいたスタックポインタの値を読み出し、スタックポインタに再設定(本設定)する。また、後述するように、電断時にRAM308に設けられたレジスタ退避領域に記憶しておいた所定のレジスタの値を読み出し、これらのレジスタに再設定した後、割込許可(EI)の設定を行う。以降、CPU304が、再設定後のスタックポインタやレジスタに基づいて制御プログラムを実行する結果、パチンコ機100は電源断時の状態に復帰する。すなわち、電断直前にタイマ割込処理(後述)に分岐する直前に行った(ステップS115内の所定の)命令の次の命令から処理を再開する。   In step S111, power recovery processing is performed. In this power recovery process, the value of the stack pointer stored in the stack area provided in the RAM 308 at the time of power interruption is read and reset to the stack pointer (this setting). Also, as will be described later, the values of predetermined registers stored in the register save area provided in the RAM 308 at the time of power interruption are read out, reset to these registers, and then the interrupt permission (EI) is set. Do. Thereafter, as a result of the CPU 304 executing the control program based on the reset stack pointer and registers, the pachinko machine 100 returns to the state when the power is turned off. That is, the processing is resumed from the instruction next to the instruction (predetermined in step S115) performed immediately before branching to the timer interrupt process (described later) immediately before the power interruption.

本実施形態に係るCPU304は、PUSH命令として、「PUSH TI」命令、「PUSH ALL」命令、「PUSH GRP」命令を備えている。「PUSH TI」命令は、T、Iレジスタに記憶されている値を上述のスタックエリアに退避させる命令であり、具体的には、PUSH命令実行時のスタックポインタをSPとした場合、PUSH命令実行時にTレジスタに記憶されている値を、(SP−1)で示されるアドレスに退避させ、PUSH命令実行時にIレジスタに記憶されている値を、(SP−2)で示されるアドレスに退避させる。また、「PUSH ALL」命令は、PUSH命令実行時にT、I、A、F、B、C、D、E、H、L、IX、IX、IY、IYレジスタに記憶されている値を、この順番でスタックエリアに退避させる命令である。また、「PUSH GRP」命令は、PUSH命令実行時にA、F、B、C、D、E、H、Lレジスタに記憶されている値を、この順番でスタックエリアに退避させる命令である。 The CPU 304 according to the present embodiment includes a “PUSH TI” instruction, a “PUSH ALL” instruction, and a “PUSH GRP” instruction as PUSH instructions. The “PUSH TI” instruction is an instruction for saving the values stored in the T and I registers to the above-described stack area. Specifically, when the stack pointer at the time of executing the PUSH instruction is SP, the PUSH instruction is executed. Sometimes the value stored in the T register is saved to the address indicated by (SP-1), and the value stored in the I register when the PUSH instruction is executed is saved to the address indicated by (SP-2). . Further, "PUSH ALL" instruction, T at PUSH instruction is executed, I, A, F, B , C, D, E, H, L, IX H, IX L, IY H, stored in the IY L register This is an instruction to save values in the stack area in this order. The “PUSH GRP” instruction is an instruction for saving the values stored in the A, F, B, C, D, E, H, and L registers in the stack area in this order when the PUSH instruction is executed.

また、CPU304は、POP命令として、「POP TI」命令、「POP ALL」命令、「POP GRP」命令を備えている。「POP TI」命令は、スタックエリアに記憶されている値をT、Iレジスタに復帰させる(RAM308の記憶領域からT、Iレジスタにデータをロードする)命令であり、具体的には、POP命令実行時のスタックポインタをSPとした場合、POP命令実行時に(SP−1)で示されるアドレスに記憶されている値をTレジスタに復帰させ、POP命令実行時に(SP−2)で示されるアドレスに記憶されている値をIレジスタに復帰させる。また、「POP ALL」命令は、POP命令実行時にスタックエリアに記憶されている値を、T、I、A、F、B、C、D、E、H、L、IX、IX、IY、IYレジスタに復帰させる命令である。また、「PUSH GRP」命令は、POP命令実行時にスタックエリアに記憶された値を、A、F、B、C、D、E、H、Lレジスタに復帰させる命令である。 In addition, the CPU 304 includes a “POP TI” command, a “POP ALL” command, and a “POP GRP” command as POP commands. The “POP TI” instruction is an instruction that restores the value stored in the stack area to the T and I registers (loads data from the storage area of the RAM 308 to the T and I registers). When the stack pointer at the time of execution is SP, the value stored at the address indicated by (SP-1) is restored to the T register when the POP instruction is executed, and the address indicated by (SP-2) when the POP instruction is executed. The value stored in is returned to the I register. In addition, the “POP ALL” instruction uses the values stored in the stack area when the POP instruction is executed as T, I, A, F, B, C, D, E, H, L, IX H , IX L , IY. This is an instruction to restore the H and IY L registers. Further, the “PUSH GRP” instruction is an instruction for returning the value stored in the stack area to the A, F, B, C, D, E, H, and L registers when the POP instruction is executed.

なお、Tレジスタをスタックエリアから復帰させるためには、「POP TI」命令を使用する必要があるが、Iレジスタを使用しない場合でも、Iレジスタにもスタックエリアの値が復帰されてしまうことになる。このように、Tレジスタをオペランドとする命令の汎用性を無くすことによって(使い難くすることによって)、Tレジスタをオペランドとする命令が多用されることを未然に防ぐことができ、Tレジスタの値が不用意に書き替ってしまうような事態(Tレジスタの内容が破壊されてしまうような事態)を回避できる場合がある。   In order to restore the T register from the stack area, it is necessary to use the “POP TI” instruction. However, even if the I register is not used, the value of the stack area is also restored to the I register. Become. In this way, by eliminating the generality of the instruction using the T register as an operand (making it difficult to use), it is possible to prevent the instruction using the T register as an operand from being frequently used. May be rewritten inadvertently (a situation where the contents of the T register are destroyed).

また、CPU304は、割込み要求の受付を許可する命令(EI命令)と、割込み要求の受付を禁止する命令(DI命令)を備えており、上述の「POP TI」命令は、DI命令によって割込み要求の受付が禁止されている場合にのみ実行するように構成され、EI命令によって割込み要求の受付が許可されている場合に実行しないように構成されている。このように、割込み要求の受付が許可されている状態において「POP TI」命令の実行しないように構成すれば、「POP TI」命令の実行によって、割込みベクタレジスタやインタラプトレジスタとして機能するIレジスタに、スタックエリアから予期しない値が復帰されてしまうおそれがなく、割込み処理を確実に実行することで信頼性の高い遊技制御を行うことができる場合がある。   The CPU 304 includes an instruction that permits acceptance of an interrupt request (EI instruction) and an instruction that prohibits acceptance of an interrupt request (DI instruction). The above-described “POP TI” instruction is an interrupt request by a DI instruction. It is configured to execute only when reception of the request is prohibited, and is configured not to execute when reception of the interrupt request is permitted by the EI instruction. As described above, if the “POP TI” instruction is not executed when the acceptance of the interrupt request is permitted, the execution of the “POP TI” instruction causes the interrupt register to function as an interrupt vector register or an interrupt register. In some cases, an unexpected value may not be restored from the stack area, and reliable game control can be performed by reliably executing the interrupt processing.

また、CPU304は、上述の命令の他にも、8ビットロード(転送)命令、16ビットロード(転送)命令、スタック操作命令(16ビットロード命令の一種)、8ビット算術論理演算命令、16ビット算術論理演算命令、乗算・除算命令、アキュムレータ操作命令、MPUコントロール命令、交換命令、ブロック転送命令、ブロックサーチ命令、ビット操作命令、ローテート・シフト命令、無条件ジャンプ命令・条件付きジャンプ命令、コール命令・リターン命令、入出力命令、複合命令などを備えている。   In addition to the above-described instructions, the CPU 304 also loads an 8-bit load (transfer) instruction, a 16-bit load (transfer) instruction, a stack operation instruction (a kind of 16-bit load instruction), an 8-bit arithmetic logic operation instruction, 16 bits Arithmetic logic operation instruction, multiplication / division instruction, accumulator operation instruction, MPU control instruction, exchange instruction, block transfer instruction, block search instruction, bit operation instruction, rotate / shift instruction, unconditional jump instruction / conditional jump instruction, call instruction・ Return instructions, input / output instructions, compound instructions, etc. are provided.

本実施形態では、電断時には、「PUSH GRP」命令によってT、Iレジスタを含まない、A、F、B、C、D、E、H、Lレジスタの値をスタックエリアに退避(記憶)させ、復電時には、「POP GRP」命令によってT、Iレジスタを含まない、A、F、B、C、D、E、H、Lレジスタの値をスタックエリアから復帰させるように構成しており、Tレジスタについては「PUSH GRP」命令による退避と「POP GRP」命令による復帰の両方ができないように構成している(これらの命令のオペランドとしてTレジスタが指定できないように構成している)。また、本実施形態では、加算命令(INC命令)や減算命令(DEC命令)のオペランドとしてもTレジスタが指定できないように構成している。後述するように、TレジスタはRAM308へのアクセスにおいて重要な役割を果たす特殊レジスタであるが、コーディングミスなどによってTレジスタに予期しない値が設定されてしまうような事態を確実に回避することができ、安定した遊技制御が可能である。また、TレジスタについてはPUSH命令による退避とPOP命令による復帰の両方を行わないため、電断時や復帰時の処理を速めることができる場合がある。   In this embodiment, when power is interrupted, the values of the A, F, B, C, D, E, H, and L registers that do not include the T and I registers are saved (stored) in the stack area by the “PUSH GRP” instruction. When power is restored, the “POP GRP” instruction is used to restore the values of the A, F, B, C, D, E, H, and L registers from the stack area, not including the T and I registers. The T register is configured so that both saving by the “PUSH GRP” instruction and restoration by the “POP GRP” instruction cannot be performed (the T register cannot be specified as an operand of these instructions). In this embodiment, the T register cannot be specified as an operand of an addition instruction (INC instruction) or a subtraction instruction (DEC instruction). As will be described later, the T register is a special register that plays an important role in accessing the RAM 308. However, a situation in which an unexpected value is set in the T register due to a coding error or the like can be surely avoided. Stable game control is possible. In addition, since the T register is not both saved by the PUSH instruction and restored by the POP instruction, the processing at the time of power interruption or restoration may be accelerated.

また、主制御部300における基本回路302に搭載されているRAM308には、送信情報記憶領域が設けられている。このステップS111では、その送信情報記憶領域に、復電コマンドをセットする。この復電コマンドは、電源断時の状態に復帰したことを表すコマンドであり、後述する、主制御部300のタイマ割込処理におけるステップS233において、第1副制御部400へ送信される。また、ステップS116では、RAMクリアの場合はRAMクリアした後に、RAMクリアしない場合は各レジスタへデータを復帰させた後に、WDT314の起動開始を行う。   The RAM 308 mounted on the basic circuit 302 in the main control unit 300 is provided with a transmission information storage area. In step S111, a power recovery command is set in the transmission information storage area. This power recovery command is a command indicating that the power has been restored to the state at the time of power-off, and is transmitted to the first sub-control unit 400 in step S233 in the timer interrupt process of the main control unit 300 described later. In step S116, if the RAM is cleared, the RAM is cleared. If not, the WDT 314 is started after the data is restored to each register.

ステップS113では、初期化処理を行う。この初期化処理では、割込禁止(DI)の設定、スタックポインタへのスタック初期値の設定(本設定)、RAM308の全ての記憶領域の初期化などを行う。さらにここで、主制御部300のRAM308に設けられた送信情報記憶領域に正常復帰コマンドをセットする。この正常復帰コマンドは、主制御部300の初期化処理(ステップS113)が行われたことを表すコマンドであり、復電コマンドと同じく、主制御部300のタイマ割込処理におけるステップS233において、第1副制御部400へ送信される。また、ステップS114では、RAMクリアの場合はRAMクリアした後に、RAMクリアしない場合は各レジスタへデータを復帰させた後に、WDT314の起動開始を行う。   In step S113, initialization processing is performed. In this initialization processing, interrupt prohibition (DI) setting, stack initial value setting to the stack pointer (this setting), initialization of all storage areas of the RAM 308, and the like are performed. Further, here, a normal return command is set in the transmission information storage area provided in the RAM 308 of the main control unit 300. This normal return command is a command indicating that the initialization process (step S113) of the main control unit 300 has been performed, and in the same way as the power recovery command, in step S233 in the timer interrupt process of the main control unit 300, 1 is transmitted to the sub-control unit 400. In step S114, if the RAM is cleared, the RAM is cleared. If not, the WDT 314 is started after the data is restored to each register.

ステップS115では、割込禁止の設定を行った後、基本乱数初期値更新処理を行う。この基本乱数初期値更新処理では、普図当選乱数カウンタ、および特図乱数値カウンタの初期値をそれぞれ生成するための2つの初期値生成用乱数カウンタと、普図タイマ乱数値、および特図タイマ乱数値それぞれを生成するための2つの乱数カウンタを更新する。例えば、普図タイマ乱数値として取り得る数値範囲が0〜100とすると、RAM308に設けた普図タイマ乱数値を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が101であれば0を元の乱数カウンタ記憶領域に記憶する。他の初期値生成用乱数カウンタ、乱数カウンタもそれぞれ同様に更新する。なお、初期値生成用乱数カウンタは、後述するステップS207でも更新する。主制御部300は、所定の周期ごとに開始するタイマ割込処理を行っている間を除いて、ステップS115の処理を繰り返し実行する。
<Tレジチェック処理>
In step S115, after setting for prohibition of interruption, a basic random number initial value update process is performed. In this basic random number initial value update process, two initial value generation random number counters for generating the initial values of the ordinary figure winning random number counter and the special figure random value counter, the ordinary figure timer random number value, and the special figure timer, respectively. Two random number counters for generating each random value are updated. For example, if the range of values that can be taken as a normal timer random number value is 0 to 100, a value is acquired from a random number counter storage area for generating a normal timer random value provided in the RAM 308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 101, 0 is stored in the original random number counter storage area. Other initial value generation random number counters and random number counters are similarly updated. Note that the initial value generation random number counter is also updated in step S207 described later. The main control unit 300 repeatedly executes the process of step S115 except during a timer interrupt process that starts every predetermined period.
<T cash register check processing>

図82(a)は、初期設定1で行うTレジチェック処理の流れを示すフローチャートであり、同図(b)は、Tレジチェック処理のプログラムリストの一例である。   FIG. 82A is a flowchart showing the flow of the T registration check process performed in the initial setting 1, and FIG. 82B is an example of a program list of the T registration check process.

このTレジチェック処理のステップS131では、Tレジスタの値をAレジスタにセットし(LD A,T)、次のステップS132では、Aレジスタの値が特定の値(F0H)に一致するか否かを判定し(SUB F0H、JP Z,SEIJYOU)、一致しない場合(異常の場合;Aレジスタの値から特定の値(F0H)を減算した値が0以外の値となりZフラグが0になった場合)にはステップS133に進み、一致した場合(正常の場合;Aレジスタの値から特定の値(F0H)を減算した値が0となりZフラグが1になった場合)には、Tレジスタの値が正常であると判定してTレジチェック処理を終了し、後続の処理に進む。ステップS133では、Tレジスタの値が異常であると判定してTレジスタに特定の値(F0H)をセットした後に(LD T,F0H)、Tレジチェック処理を終了して後続の処理に進む。   In step S131 of the T registration check process, the value of the T register is set in the A register (LD A, T). In the next step S132, whether or not the value of the A register matches a specific value (F0H). (SUB F0H, JP Z, SEIJYOU) If they do not match (in case of abnormality; the value obtained by subtracting a specific value (F0H) from the value in register A becomes a value other than 0 and the Z flag becomes 0) ) Proceeds to step S133, and if they match (if normal; the value obtained by subtracting a specific value (F0H) from the value of the A register becomes 0 and the Z flag becomes 1), the value of the T register Is determined to be normal, the T registration check process is terminated, and the process proceeds to the subsequent process. In step S133, after determining that the value of the T register is abnormal and setting a specific value (F0H) in the T register (LD T, F0H), the T registration check process is terminated and the process proceeds to the subsequent process.

なお、Tレジチェック処理は図82に示す処理に限定されるものではなく、例えば、図83に示すような処理でもよい。図83(a)は、変形例に係るTレジチェック処理の流れを示すフローチャートであり、同図(b)は、変形例に係るTレジチェック処理のプログラムリストの一例である。   Note that the T-registration check process is not limited to the process shown in FIG. 82, and may be a process as shown in FIG. 83, for example. FIG. 83A is a flowchart showing a flow of a T-registration check process according to the modification, and FIG. 83B is an example of a program list of the T-registration check process according to the modification.

この変形例に係るTレジチェック処理では、上記ステップS133の処理に替えて、ステップS135のエラー処理を行うように構成している。具体的には、ステップS132においてAレジスタの値が特定の値(F0H)に一致しないと判定した場合(異常の場合;Aレジスタの値から特定の値(F0H)を減算した値が0以外の値となりZフラグが0になった場合)にはステップS135に進みエラー処理を行う(SUB F0H、JP NZ,moError)。このエラー処理の内容は特に限定されないが、例えば、無限ループに入って後続の主制御部メイン処理を実行しないように構成したり、後続の主制御部メイン処理において液晶表示装置やスピーカなどを用いてエラーを報知したりすることが考えられる。なお、Tレジチェック処理の実行タイミングは初期設定1に限らない。また、Tレジチェック処理の実行タイミングは初期設定1(WDTリスタート前、低電圧信号〜処理前)でのみ実行するようにしてもよい。
<LD命令>
In the T-registration check process according to this modification, the error process in step S135 is performed instead of the process in step S133. Specifically, when it is determined in step S132 that the value of the A register does not match the specific value (F0H) (in the case of abnormality; the value obtained by subtracting the specific value (F0H) from the value of the A register is other than 0) If the value becomes Z and the Z flag becomes 0), the process proceeds to step S135 and error processing is performed (SUB F0H, JP NZ, moError). The content of this error processing is not particularly limited. For example, the error processing is configured not to enter the infinite loop and execute the subsequent main control unit main processing, or to use a liquid crystal display device or a speaker in the subsequent main control unit main processing. It may be possible to report an error. The execution timing of the T registration check process is not limited to the initial setting 1. Further, the execution timing of the T registration check process may be executed only at the initial setting 1 (before WDT restart, low voltage signal to before process).
<LD instruction>

次に、主制御部300が備えるLD命令について説明する。LD命令(LD OP1,OP2)は、第1オペランドOP1で示されるレジスタに、第2オペランドOP2で示されるレジスタに記憶された値(または、第2オペランドOP2で示されるイミディエイト値(即値または直値ともいう。以下同じ)を記憶するための命令である。例えば、上述のTレジチェック処理の実行前にTレジスタにF0Hが記憶されている状態で「LD A,T」の命令を実行した場合、Aレジスタには第2オペランドで示されるTレジスタに記憶された値、すなわちF0Hが記憶される。また、「LD A,F0H」の命令を実行した場合にも、Aレジスタには第2オペランドで示されるイミディエイト値、すなわちF0Hが記憶される。   Next, the LD command provided in the main control unit 300 will be described. The LD instruction (LD OP1, OP2) is stored in the register indicated by the first operand OP1, the value stored in the register indicated by the second operand OP2 (or the immediate value (immediate value or immediate value) indicated by the second operand OP2. For example, when the instruction “LD A, T” is executed in a state where F0H is stored in the T register before the execution of the T-registration check process described above. The value stored in the T register indicated by the second operand, that is, F0H is stored in the A register, and when the instruction “LD A, F0H” is executed, the second operand is also stored in the A register. Is stored, that is, F0H is stored.

一方、第1オペランドOP1をTレジスタとするLD命令では、第2オペランドはイミディエイト値に限定されており、第2オペランドにレジスタを設定することは禁止されている(機械語にアセンブルされる過程でエラーとなりアセンブルすることができない)。CPU304用のアセンブラでエラーが発生するのは、CPU304に当該命令が備えられていないからである。上記LD命令の場合と同様に、例えば既述のTレジスタに関する「PUSH GRP」命令による退避と「POP GRP」命令による復帰の両方ができないように構成している(これらの命令のオペランドとしてTレジスタが指定できないように構成している)というのは、アセンブリでエラーとなることであり、CPU304用の命令のオペランドとして指定できない、つまり、CPU304はTレジスタに関し「PUSH GRP」命令と「POP GRP」命令を備えていないのである。   On the other hand, in the LD instruction using the first operand OP1 as a T register, the second operand is limited to an immediate value, and setting a register in the second operand is prohibited (in the process of being assembled into a machine language). Error and cannot be assembled). The error occurs in the assembler for the CPU 304 because the instruction is not provided in the CPU 304. As in the case of the LD instruction, for example, both the saving by the “PUSH GRP” instruction and the returning by the “POP GRP” instruction relating to the T register described above are configured (the T register as an operand of these instructions). Is an error in assembly, and cannot be specified as an operand of an instruction for the CPU 304, that is, the CPU 304 does not specify the “PUSH GRP” instruction and the “POP GRP” for the T register. There is no command.

したがって、上述のTレジチェック処理で説明したように、第2オペランドをイミディエイト値とするLD命令(先の例では「LD T,F0H」)のプログラミング(コーディング)は認められるが、第2オペランドにレジスタを設定するLD命令(例えば「LD T,A」)のプログラミング(コーディング)は認められない。このように、第1オペランドOP1をTレジスタとするLD命令では、Tレジスタに対して直値でデータを転送するよう構成されているので、セットしているデータを確認し易くなる場合がある。また、Tレジスタに対して他のレジスタを介してデータを転送できないように構成されているので、Tレジスタの値を不用意に変更することができなくなる結果、コーディングミスの発生を減少させることができる場合がある。   Therefore, as described in the above-described T-registration check process, programming (coding) of an LD instruction (“LD T, F0H” in the above example) having the second operand as an immediate value is permitted, but the second operand Programming (coding) of an LD instruction (eg, “LD T, A”) that sets a register is not allowed. As described above, the LD instruction using the first operand OP1 as the T register is configured to transfer data as a direct value to the T register, so that the set data may be easily confirmed. Further, since data is not transferred to the T register via another register, the value of the T register cannot be inadvertently changed, thereby reducing the occurrence of coding errors. There are cases where it is possible.

図84はプログラムリストからLD命令のみを抜き出して示した図である。この例では、5つのLD命令を使用しているが、例えば、(4)のLD命令「LD B,A」の実行後にBレジスタに記憶される値についてデバッグでトレースを行う場合を考える。この場合、LD命令「LD B,A」の第2オペランドであるAレジスタについて、プログラムリストを遡ってトレースすることが必要であるが、例えば、「LD A」という検索キーでプログラムリストの検索を行った場合、(1)のLD命令「LD A,B」に加えて(3)のLD命令「LD A,H」がヒットすることになる。すなわち、第1オペランドにAレジスタを設定したLD命令は、第2オペランドにレジスタを設定することと、第2オペランドをイミディエイト値とすることの両方が認められているため使用頻度が高く、コーディングの見直し作業や、デバッグ(例えば、Aレジスタのトレースなど)の効率を低下させる一因となり得る。なお、ここでは、最も利用頻度が高いAレジスタについて説明したが、Tレジスタを除く他のレジスタを利用した場合にも同様のことが言える。   FIG. 84 shows only the LD command extracted from the program list. In this example, five LD instructions are used. For example, let us consider a case in which tracing is performed by debugging with respect to a value stored in the B register after execution of the LD instruction “LD B, A” in (4). In this case, it is necessary to trace back the program list for the A register which is the second operand of the LD instruction “LD B, A”. For example, the search of the program list can be performed using the search key “LD A”. If this is done, the LD instruction “LD A, H” in (3) will be hit in addition to the LD instruction “LD A, B” in (1). That is, the LD instruction with the A register set to the first operand is frequently used because it is permitted to set the register to the second operand and to set the second operand to an immediate value. This can contribute to a reduction in the efficiency of review work and debugging (for example, tracing of the A register). Although the A register having the highest use frequency has been described here, the same can be said when other registers other than the T register are used.

一方、第1オペランドにTレジスタを設定したLD命令は、第2オペランドにレジスタを設定することが禁止され、第2オペランドをイミディエイト値とすることのみが認められているため、Aレジスタを利用したLD命令よりも相対的に使用頻度が低く、コーディングの見直し作業や、デバッグ(例えば、Tレジスタのトレースなど)の効率を高めることが可能となり、制御プログラムの開発効率が向上する場合がある。なお、Tレジスタは、INC命令やDEC命令(算術論理演算命令)でTレジスタの値を変化させることを可能にしてもよい。
<主制御部タイマ割込処理>
On the other hand, the LD instruction in which the T register is set in the first operand is prohibited from setting the register in the second operand, and only the second operand is allowed to have an immediate value. The frequency of use is relatively lower than that of the LD instruction, and it becomes possible to increase the efficiency of coding review work and debugging (for example, T register tracing), and the control program development efficiency may be improved. Note that the T register may change the value of the T register with an INC instruction or a DEC instruction (arithmetic logic operation instruction).
<Main control unit timer interrupt processing>

次に、図85を用いて、主制御部300のCPU304が実行する主制御部タイマ割込処理について説明する。なお、同図は主制御部タイマ割込処理の流れを示すフローチャートである。   Next, a main control unit timer interrupt process executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of the main control unit timer interrupt process.

主制御部300は、所定の周期(本実施形態では約2msに1回)でタイマ割込信号を発生するカウンタタイマ312を備えており、このタイマ割込信号を契機として主制御部タイマ割込処理を所定の周期で開始する。なお、タイマ割込み周期は設定により適宜変更することが可能である。   The main control unit 300 includes a counter timer 312 that generates a timer interrupt signal at a predetermined cycle (in this embodiment, about once every 2 ms), and the main control unit timer interrupt is triggered by this timer interrupt signal. The process is started at a predetermined cycle. The timer interrupt cycle can be changed as appropriate according to the setting.

ステップS201では、タイマ割込開始処理を行う。このタイマ割込開始処理では、CPU304の各レジスタの値をスタック領域に一時的に退避する処理などを行う。   In step S201, a timer interrupt start process is performed. In this timer interrupt start process, a process of temporarily saving each register value of the CPU 304 to the stack area is performed.

ステップS203では、WDT314のカウント値が初期設定値(本実施形態では32.8ms)を超えてWDT割込が発生しないように(処理の異常を検出しないように)、WDTを定期的に(本実施形態では、主制御部タイマ割込の周期である約2msに1回)リスタートを行う。   In step S203, the WDT is periodically updated (so that the count value of the WDT 314 exceeds the initial setting value (32.8 ms in the present embodiment) and no WDT interruption occurs (so as not to detect a processing abnormality). In the embodiment, the restart is performed once every about 2 ms, which is the period of the main control unit timer interrupt.

ステップS205では、入力ポート状態更新処理を行う。この入力ポート状態更新処理では、I/O310の入力ポートを介して、上述の前面枠扉開放センサや内枠開放センサや下皿満タンセンサ、各種の球検出センサを含む各種センサ320の検出信号を入力して検出信号の有無を監視し、RAM308に各種センサ320ごとに区画して設けた信号状態記憶領域に記憶する。球検出センサの検出信号を例にして説明すれば、前々回のタイマ割込処理(約4ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた前回検出信号記憶領域から読み出し、この情報をRAM308に各々の球検出センサごとに区画して設けた前々回検出信号記憶領域に記憶し、前回のタイマ割込処理(約2ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた今回検出信号記憶領域から読み出し、この情報を上述の前回検出信号記憶領域に記憶する。また、今回検出した各々の球検出センサの検出信号を、上述の今回検出信号記憶領域に記憶する。   In step S205, input port state update processing is performed. In this input port state update process, the detection signals of various sensors 320 including the above-mentioned front frame door open sensor, inner frame open sensor, lower pan full sensor, and various ball detection sensors are input via the input port of the I / O 310. The input is monitored for the presence or absence of a detection signal, and stored in a signal state storage area provided for each of the various sensors 320 in the RAM 308. If the detection signal of the sphere detection sensor is described as an example, information on the presence / absence of the detection signal of each sphere detection sensor detected in the timer interruption process (about 4 ms before) is stored in the RAM 308 for each sphere detection sensor. This information is read out from the previous detection signal storage area partitioned and stored in the RAM 308 in the previous detection signal storage area partitioned for each sphere detection sensor, and the previous timer interrupt processing (about 2 ms before) ) Is read from the current detection signal storage area provided for each sphere detection sensor in the RAM 308, and this information is read out from the previous detection signal storage area described above. To remember. Further, the detection signal of each sphere detection sensor detected this time is stored in the above-described current detection signal storage area.

また、ステップS205では、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域の各記憶領域に記憶した各々の球検出センサの検出信号の有無の情報を比較し、各々の球検出センサにおける過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致するか否かを判定する。一個の遊技球が一つの球検出センサを通過する間に、約2msという非常に短い間隔で起動を繰り返すこの主制御部タイマ割込処理は何回か起動する。このため、主制御部タイマ割込処理が起動する度に、上述のステップS205では、同じ遊技球が同じ球検出センサを通過したことを表す検出信号を確認することになる。この結果、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域それぞれに、同じ遊技球が同じ球検出センサを通過したことを表す検出信号が記憶される。すなわち、遊技球が球検出センサを通過し始めたときには、前々回検出信号無し、前回検出信号有り、今回検出信号有りになる。本実施形態では、球検出センサの誤検出やノイズを考慮して、検出信号無しの後に検出信号が連続して2回記憶されている場合には、入賞があったと判定する。図75に示す主制御部300のROM306には、入賞判定パターン情報(本実施形態では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)が記憶されている。このステップS205では、各々の球検出センサにおいて過去3回分の検出信号の有無の情報が、予め定めた入賞判定パターン情報(本実施形態では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)と一致した場合に、一般入賞口226、可変入賞口234、第1特図始動口230、および第2特図始動口232への入球、または普図始動口228の通過があったと判定する。すなわち、これらの入賞口226、234やこれらの始動口230、232、228への入賞があったと判定する。例えば、一般入賞口226への入球を検出する一般入賞口センサにおいて過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致した場合には、一般入賞口226へ入賞があったと判定し、以降の一般入賞口226への入賞に伴う処理を行うが、過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致しなかった場合には、以降の一般入賞口226への入賞に伴う処理を行わずに後続の処理に分岐する。なお、主制御部300のROM306には、入賞判定クリアパターン情報(本実施形態では、前々回検出信号有り、前回検出信号無し、今回検出信号無しであることを示す情報)が記憶されている。入賞が一度あったと判定した後は、各々の球検出センサにおいて過去3回分の検出信号の有無の情報が、その入賞判定クリアパターン情報に一致するまで入賞があったとは判定せず、入賞判定クリアパターン情報に一致すれば、次からは上記入賞判定パターン情報に一致するか否かの判定を行う。なお、入賞判定パターン情報は上記例に限らず適宜変更してもよい。例えば、入賞判定パターン情報として、前々回の1つ前の回での検出信号無し、前々回検出信号有り、前回検出信号有り、今回検出信号有りであってもよいし、前々回の1つ前の回での検出信号有り、前々回検出信号有り、前回検出信号有り、今回検出信号無しであってもよい。   Further, in step S205, the information on the presence or absence of the detection signal of each sphere detection sensor stored in each storage area of the above-mentioned detection signal storage area, the previous detection signal storage area, and the current detection signal storage area is compared. It is determined whether or not the information on the presence or absence of detection signals for the past three times in the ball detection sensor matches the winning determination pattern information. This main control unit timer interrupt process that is repeatedly started at a very short interval of about 2 ms while one game ball passes one ball detection sensor is started several times. For this reason, every time the main control unit timer interrupt process is activated, in step S205 described above, a detection signal indicating that the same game ball has passed the same ball detection sensor is confirmed. As a result, a detection signal indicating that the same game ball has passed the same ball detection sensor is stored in each of the detection signal storage area, the previous detection signal storage area, and the current detection signal storage area. That is, when the game ball starts to pass through the ball detection sensor, there is no detection signal before, a previous detection signal, and a current detection signal. In the present embodiment, in consideration of erroneous detection of the sphere detection sensor and noise, it is determined that there is a prize when the detection signal is stored twice continuously after no detection signal. In the ROM 306 of the main control unit 300 shown in FIG. 75, winning determination pattern information (in this embodiment, information indicating that there is no previous detection signal, that there is a previous detection signal, and that there is a current detection signal) is stored. In this step S205, information on the presence or absence of detection signals for the past three times in each sphere detection sensor is predetermined winning determination pattern information (in this embodiment, no previous detection signal, previous detection signal, current detection signal present). In the case of the general winning port 226, the variable winning port 234, the first special figure starting port 230, and the second special figure starting port 232, or the ordinary drawing starting port 228. Is determined to have passed. In other words, it is determined that a prize has been awarded to the winning ports 226 and 234 and the starting ports 230, 232, and 228. For example, when the information on the presence / absence of the detection signals for the past three matches with the above-described winning determination pattern information in the general winning opening sensor for detecting the winning at the general winning opening 226, there is a winning at the general winning opening 226. If the information on the presence / absence of detection signals for the past three times does not match the above-described winning determination pattern information, the subsequent general winnings are performed. The process branches to the subsequent process without performing the process associated with winning the prize to the mouth 226. Note that the ROM 306 of the main control unit 300 stores winning determination clear pattern information (in this embodiment, information indicating that there is a detection signal before the previous time, no previous detection signal, and no current detection signal). After it is determined that there has been a single win, it is not determined that there has been a win until the information on the presence or absence of detection signals for the past three times matches the winning determination clear pattern information in each ball detection sensor, and the winning determination is cleared. If it matches the pattern information, it is next determined whether or not it matches the winning determination pattern information. The winning determination pattern information is not limited to the above example, and may be changed as appropriate. For example, as the winning determination pattern information, there may be no detection signal in the previous time, the previous detection signal, the previous detection signal, the current detection signal, or the previous time. The detection signal may be present, the detection signal may be present twice before, the previous detection signal may be present, and the current detection signal may be absent.

ステップS207およびステップS209では、基本乱数初期値更新処理および基本乱数更新処理を行う。これらの基本乱数初期値更新処理および基本乱数更新処理では、上記ステップS115で行った初期値生成用乱数カウンタの値の更新を行い、次に主制御部300で使用する、普図当選乱数値、特図1乱数値、および特図2乱数値をそれぞれ生成するための2つの乱数カウンタを更新する。例えば、普図当選乱数値として取り得る数値範囲が0〜100とすると、RAM308に設けた普図当選乱数値を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が101であれば0を元の乱数カウンタ記憶領域に記憶する。また、取得した値に1を加算した結果、乱数カウンタが一周していると判定した場合にはそれぞれの乱数カウンタに対応する初期値生成用乱数カウンタの値を取得し、乱数カウンタの記憶領域にセットする。例えば、0〜100の数値範囲で変動する普図当選乱数値生成用の乱数カウンタから値を取得し、取得した値に1を加算した結果が、RAM308に設けた所定の初期値記憶領域に記憶している前回設定した初期値と等しい値(例えば7)である場合に、普図当選乱数値生成用の乱数カウンタに対応する初期値生成用乱数カウンタから値を初期値として取得し、普図当選乱数値生成用の乱数カウンタにセットすると共に、普図当選乱数値生成用の乱数カウンタが次に1周したことを判定するために、今回設定した初期値を上述の初期値記憶領域に記憶しておく。また、普図当選乱数値生成用の乱数カウンタが次に1周したことを判定するための上述の初期値記憶領域とは別に、特図乱数生成用の乱数カウンタが1周したことを判定するための初期値記憶領域をRAM308に設けている。なお、本実施形態では特図1の乱数値を取得するためのカウンタと特図2の乱数値を取得するためのカウンタとを別に設けたが、同一のカウンタを用いてもよい。   In step S207 and step S209, basic random number initial value update processing and basic random number update processing are performed. In these basic random number initial value update processing and basic random number update processing, the value of the initial value generation random number counter performed in step S115 is updated, and then the normal winning random number value used in the main control unit 300, Two random number counters for generating the special figure 1 random value and the special figure 2 random value are updated. For example, if the range of values that can be taken as a random number value for a normal winning number is 0 to 100, a value is acquired from a random number counter storage area for generating a normal winning random number value provided in the RAM 308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 101, 0 is stored in the original random number counter storage area. If it is determined that the random number counter has made one round as a result of adding 1 to the acquired value, the value of the initial value generating random number counter corresponding to each random number counter is acquired and stored in the storage area of the random number counter. set. For example, a value is acquired from a random number counter for generating a regular winning random number that fluctuates in a numerical range of 0 to 100, and a result obtained by adding 1 to the acquired value is stored in a predetermined initial value storage area provided in the RAM 308. If the value is equal to the previously set initial value (for example, 7), the value is acquired as an initial value from the initial value generation random number counter corresponding to the random number counter for generating the random number for winning the normal number, The initial value set this time is stored in the above-described initial value storage area in order to determine that the random number counter for generating the winning random number value has made one round next time, in addition to setting it in the random number counter for generating the winning random value Keep it. Further, apart from the above-described initial value storage area for determining that the random number counter for generating the random number for winning the normal signal has made one round next, it is determined that the random number counter for generating the special figure random number has made one round. An initial value storage area is provided in the RAM 308. In the present embodiment, the counter for acquiring the random number value of FIG. 1 and the counter for acquiring the random value of FIG. 2 are separately provided, but the same counter may be used.

ステップS211では、演出乱数更新処理を行う。この演出乱数更新処理では、主制御部300で使用する演出用乱数値を生成するための乱数カウンタを更新する。   In step S211, effect random number update processing is performed. In this effect random number update process, a random number counter for generating an effect random number used by the main control unit 300 is updated.

ステップS213では、タイマ更新処理を行う。このタイマ更新処理では、普通図柄表示装置210に図柄を変動・停止表示する時間を計時するための普図表示図柄更新タイマ、第1特別図柄表示装置212に図柄を変動・停止表示する時間を計時するための特図1表示図柄更新タイマ、第2特図表示装置214に図柄を変動・停止表示する時間を計時するための特図2表示図柄更新タイマ、所定の入賞演出時間、所定の開放時間、所定の閉鎖時間、所定の終了演出期間などを計時するためのタイマなどを含む各種タイマを更新する。   In step S213, timer update processing is performed. In this timer update process, the normal symbol display symbol update timer for timing the time for the symbol to be changed / stopped on the normal symbol display device 210, and the time for the symbol to be changed / stopped to be displayed on the first special symbol display device 212 are timed. Special symbol 1 display symbol update timer for performing, special symbol 2 display symbol update timer for measuring the time for the symbol to be changed and stopped on the second special symbol display device 214, a predetermined winning effect time, a predetermined opening time Various timers including a timer for measuring a predetermined closing time, a predetermined end effect period, and the like are updated.

ステップS215では、入賞口カウンタ更新処理を行う。この入賞口カウンタ更新処理では、入賞口226、234や始動口230、232、228に入賞があった場合に、RAM308に各入賞口ごと、あるいは各始動口ごとに設けた賞球数記憶領域の値を読み出し、1を加算して、元の賞球数記憶領域に設定する。   In step S215, winning prize counter update processing is performed. In this winning opening counter updating process, when winning holes 226, 234 and starting holes 230, 232, 228 are won, the RAM 308 stores the winning ball number storage area provided for each winning hole or for each starting hole. The value is read out, 1 is added, and the original prize ball number storage area is set.

また、ステップS217では、入賞受付処理を行う。この入賞受付処理では、第1特図始動口230、第2特図始動口232、普図始動口228および可変入賞口234への入賞があったか否かを判定する。ここでは、ステップS205における入賞判定パターン情報と一致するか否かの判定結果を用いて判定する。第1特図始動口230へ入賞があった場合且つRAM308に設けた対応する保留数記憶領域が満タンでない場合、カウンタ回路318の当選用カウンタ値記憶用レジスタから値を特図1当選乱数値として取得するとともに特図1乱数値生成用の乱数カウンタから値を特図1乱数値として取得して対応する乱数値記憶領域に格納する。第2特図始動口232へ入賞があった場合且つRAM308に設けた対応する保留数記憶領域が満タンでない場合、カウンタ回路318の当選用カウンタ値記憶用レジスタから値を特図2当選乱数値として取得するとともに特図2乱数値生成用の乱数カウンタから値を特図2乱数値として取得して対応する乱数値記憶領域に格納する。普図始動口228へ入賞があった場合且つRAM308に設けた対応する保留数記憶領域が満タンでない場合、普図当選乱数値生成用の乱数カウンタから値を普図当選乱数値として取得して対応する乱数値記憶領域に格納する。可変入賞口234へ入賞があった場合には、可変入賞口用の入賞記憶領域に、可変入賞口234に球が入球したことを示す情報を格納する。   In step S217, a winning acceptance process is performed. In this winning acceptance process, it is determined whether or not there has been a winning at the first special figure starting port 230, the second special figure starting port 232, the ordinary drawing starting port 228, and the variable winning port 234. Here, the determination is made using the determination result of whether or not it matches the winning determination pattern information in step S205. When a winning is made at the first special figure starting port 230 and the corresponding reserved number storage area provided in the RAM 308 is not full, the value is stored in the special counter value storage register of the counter circuit 318. And a value from the random number counter for generating the special figure 1 random value as a special figure 1 random value and storing it in the corresponding random value storage area. When a winning is made to the second special figure starting port 232 and the corresponding reserved number storage area provided in the RAM 308 is not full, the value is sent from the winning counter value storage register of the counter circuit 318 to the special figure 2 winning random number value. And a value from the random number counter for generating the special figure 2 random value as a special figure 2 random value and storing it in the corresponding random value storage area. If there is a win at the general figure starting port 228 and the corresponding reserved number storage area provided in the RAM 308 is not full, the value is obtained as a normal figure winning random number value from the random number counter for generating the normal figure winning random number value. Store in the corresponding random value storage area. When there is a winning at the variable winning opening 234, information indicating that a ball has entered the variable winning opening 234 is stored in the winning storage area for the variable winning opening.

ステップS219では、払出要求数送信処理を行う。なお、払出制御部600に出力する出力予定情報および払出要求情報は、例えば1バイトで構成しており、ビット7にストローブ情報(オンの場合、データをセットしていることを示す)、ビット6に電源投入情報(オンの場合、電源投入後一回目のコマンド送信であることを示す)、ビット4〜5に暗号化のための今回加工種別(0〜3)、およびビット0〜3に暗号化加工後の払出要求数を示すようにしている。   In step S219, a payout request number transmission process is performed. Note that the output schedule information and the payout request information output to the payout control unit 600 are composed of, for example, 1 byte, strobe information (indicating that data is set when ON), bit 6 Power-on information (if turned on, indicates that this is the first command transmission after power-on), bits 4-5 indicate the current processing type for encryption (0-3), and bits 0-3 indicate encryption The number of payout requests after processing is shown.

ステップS221では、普図状態更新処理を行う。この普図状態更新処理は、普図の状態に対応する複数の処理のうちの1つの処理を行う。例えば、普図変動表示の途中(上述する普図表示図柄更新タイマの値が1以上)における普図状態更新処理では、普通図柄表示装置210を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。この制御を行うことで、普通図柄表示装置210は普図の変動表示(普図変動遊技)を行う。   In step S221, a normal state update process is performed. This normal state update process performs one of a plurality of processes corresponding to the normal state. For example, in the normal state update process in the middle of the normal symbol display (the above-described general symbol display symbol update timer value is 1 or more), the 7-segment LED constituting the normal symbol display device 210 is repeatedly turned on and off. Turns off drive control. By performing this control, the normal symbol display device 210 performs a usual fluctuation display (ordinary figure fluctuation game).

また、普図変動表示時間が経過したタイミング(普図表示図柄更新タイマの値が1から0になったタイミング)における普図状態更新処理では、当りフラグがオンの場合には、当り図柄の表示態様となるように普通図柄表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行い、当りフラグがオフの場合には、外れ図柄の表示態様となるように普通図柄表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行う。また、主制御部300のRAM308には、普図状態更新処理に限らず各種の処理において各種の設定を行う設定領域が用意されている。ここでは、上記点灯・消灯駆動制御を行うとともに、その設定領域に普図停止表示中であることを示す設定を行う。この制御を行うことで、普通図柄表示装置210は、当り図柄(図76(c)に示す普図A)および外れ図柄(図76(c)に示す普図B)いずれか一方の図柄の確定表示を行う。さらにその後、所定の停止表示期間(例えば500m秒間)、その表示を維持するためにRAM308に設けた普図停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により、確定表示された図柄が所定期間停止表示され、普図変動遊技の結果が遊技者に報知される。   Also, in the normal state update process at the timing when the normal symbol change display time has elapsed (the timing at which the value of the general symbol display symbol update timer has changed from 1 to 0), if the hit flag is on, the hit symbol is displayed. The normal symbol display device 210 is controlled so that the 7-segment LED constituting the normal symbol display device 210 is turned on / off, and when the hit flag is off, the normal symbol display device 210 is configured to be in the off symbol display mode. 7 segment LED on / off drive control is performed. Further, the RAM 308 of the main control unit 300 is provided with a setting area for performing various settings in various processes, not limited to the normal state update process. Here, the above-described lighting / extinguishing drive control is performed, and the setting area is set to indicate that the normal stop display is being performed. By performing this control, the normal symbol display device 210 determines the symbol of either the winning symbol (general symbol A shown in FIG. 76 (c)) or the off symbol (general symbol B shown in FIG. 76 (c)). Display. Thereafter, information indicating the stop period is set in a storage area of a normal stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 msec). With this setting, the symbol that has been confirmed and displayed is stopped and displayed for a predetermined period, and the player is notified of the result of the normal game.

また、普図変動遊技の結果が当りであれば、後述するように、普図当りフラグがオンされる。この普図当りフラグがオンの場合には、所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)における普図状態更新処理では、RAM308の設定領域に普図作動中を設定するとともに、所定の開放期間(例えば2秒間)、第2特図始動口232の羽根部材232aの開閉駆動用のソレノイド(332)に、羽根部材232aを開放状態に保持する信号を出力するとともに、RAM308に設けた羽根開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。   Further, if the result of the usual figure variable game is a hit, the usual figure hit flag is turned on as will be described later. When the usual figure hit flag is on, in the usual figure state update process at the timing when the predetermined stop display period ends (when the usual figure stop time management timer value changes from 1 to 0), The normal operation is set in the setting area, and the blade member 232a is opened to a solenoid (332) for opening and closing the blade member 232a of the second special figure starting port 232 for a predetermined opening period (for example, 2 seconds). And a signal indicating the open period is set in the storage area of the blade open time management timer provided in the RAM 308.

また、所定の開放期間が終了したタイミング(羽根開放時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、所定の閉鎖期間(例えば500m秒間)、羽根部材の開閉駆動用のソレノイド332に、羽根部材を閉鎖状態に保持する信号を出力するとともに、RAM308に設けた羽根閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。   In the usual state update process that starts at the timing when the predetermined opening period ends (the timing when the value of the blade opening time management timer is changed from 1 to 0), the blade member has a predetermined closing period (for example, 500 milliseconds). A signal for holding the blade member in the closed state is output to the opening / closing drive solenoid 332, and information indicating the closing period is set in the storage area of the blade closing time management timer provided in the RAM 308.

また、所定の閉鎖期間が終了したタイミング(羽根閉鎖時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、RAM308の設定領域に普図非作動中を設定する。さらに、普図変動遊技の結果が外れであれば、後述するように、普図外れフラグがオンされる。この普図外れフラグがオンの場合には、上述した所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)における普図状態更新処理でも、RAM308の設定領域に普図非作動中を設定する。普図非作動中の場合における普図状態更新処理では、何もせずに次のステップS223に移行するようにしている。   Further, in the normal state update process that starts at the timing when the predetermined closing period ends (when the value of the blade closing time management timer is changed from 1 to 0), the non-operating state is set in the setting area of the RAM 308. To do. Furthermore, if the result of the usual figure fluctuation game is out, the usual figure out flag is turned on as will be described later. When the off-normal flag is on, the normal state update process at the timing when the predetermined stop display period described above ends (the timing at which the normal stop time management timer value changes from 1 to 0) In the setting area of the RAM 308, normal operation inactive is set. In the general state update process in the case where the general map is not operating, nothing is done and the process proceeds to the next step S223.

ステップS223では、普図関連抽選処理を行う。この普図関連抽選処理では、普図変動遊技および第2特図始動口232の開閉制御を行っておらず(普図の状態が非作動中)、且つ、保留している普図変動遊技の数が1以上である場合に、上述の乱数値記憶領域に記憶している普図当選乱数値に基づいた乱数抽選により普図変動遊技の結果を当選とするか、不当選とするかを決定する当り判定をおこない、当選とする場合にはRAM308に設けた当りフラグにオンを設定する。不当選の場合には、当りフラグにオフを設定する。また、当り判定の結果に関わらず、次に上述の普図タイマ乱数値生成用の乱数カウンタの値を普図タイマ乱数値として取得し、取得した普図タイマ乱数値に基づいて複数の変動時間のうちから普図表示装置210に普図を変動表示する時間を1つ選択し、この変動表示時間を、普図変動表示時間として、RAM308に設けた普図変動時間記憶領域に記憶する。なお、保留している普図変動遊技の数は、RAM308に設けた普図保留数記憶領域に記憶するようにしており、当り判定をするたびに、保留している普図変動遊技の数から1を減算した値を、この普図保留数記憶領域に記憶し直すようにしている。また当り判定に使用した乱数値を消去する。   In step S223, a general drawing related lottery process is performed. In this general map-related lottery process, the open / close control of the general map variable game and the second special map start port 232 is not performed (the state of the general map is not in operation), and the pending general map variable game is not held. When the number is 1 or more, it is decided whether to win or not to win the result of the variable figure game by random lottery based on the random number value stored in the random number value storage area. When the winning judgment is made and the winning is made, the winning flag provided in the RAM 308 is set to ON. If unsuccessful, turn off the winning flag. Regardless of the result of the hit determination, next, the value of the random number counter for generating the normal figure timer random value is acquired as the normal figure timer random number value, and a plurality of fluctuation times are obtained based on the acquired general figure timer random number value. One time is selected for variably displaying the normal map on the general map display device 210, and this variable display time is stored as a normal map variable display time in a general map variable time storage area provided in the RAM 308. In addition, the number of pending general figure variable games is stored in the usual figure pending number storage area provided in the RAM 308, and from the number of pending custom figure variable games each time a hit determination is made. The value obtained by subtracting 1 is re-stored in the usual figure number-of-holds storage area. Also, the random number value used for the hit determination is deleted.

次いで、特図1および特図2それぞれについての特図状態更新処理を行うが、最初に、特図2についての特図状態更新処理(特図2状態更新処理)を行う(ステップS225)。この特図2状態更新処理は、特図2の状態に応じて、次の8つの処理のうちの1つの処理を行う。例えば、特図2変動表示の途中(上述の特図2表示図柄更新タイマの値が1以上)における特図2状態更新処理では、第2特別図柄表示装置214を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。この制御を行うことで、第2特別図柄表示装置214は特図2の変動表示(特図2変動遊技)を行う。また、コマンド設定送信処理(ステップS233)で回転開始設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶してから処理を終了する。   Next, the special figure state update process for each of the special figure 1 and the special figure 2 is performed. First, the special figure state update process (the special figure 2 state update process) for the special figure 2 is performed (step S225). In the special figure 2 state update process, one of the following eight processes is performed in accordance with the state of the special figure 2. For example, in the special figure 2 state update process in the middle of the special figure 2 fluctuation display (the value of the above-mentioned special figure 2 display symbol update timer is 1 or more), the 7-segment LED constituting the second special symbol display device 214 is turned on. Performs lighting / extinguishing drive control that repeatedly turns off. By performing this control, the second special symbol display device 214 performs the variable display of the special figure 2 (special figure 2 variable game). In addition, predetermined transmission information indicating that the rotation start setting transmission process is to be executed in the command setting transmission process (step S233) is additionally stored in the above-described transmission information storage area, and the process ends.

また、主制御部300のRAM308の当否判定結果記憶領域には、15R大当りフラグ、2R大当りフラグ、第1小当りフラグ、第2小当りフラグ、第1はずれフラグ、第2はずれフラグ、特図確率変動フラグ、および普図確率変動フラグそれぞれのフラグが用意されている。特図2変動表示時間が経過したタイミング(特図2表示図柄更新タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、15R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグもオンの場合には図76(a)に示す特図A、15R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグはオンの場合には特図B、2R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグもオンの場合には特図C、2R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグはオンの場合には特図D、2R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグはオンの場合には特図E、2R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグもオフの場合には特図F、第1小当りフラグがオンの場合には特図G、第2小当りフラグがオンの場合には特図H、第1はずれフラグがオンの場合には特図I、第2はずれフラグがオンの場合には特図Iそれぞれの態様となるように、第2特別図柄表示装置214を構成する7セグメントLEDの点灯・消灯駆動制御を行い、RAM308の設定領域に特図2停止表示中であることを表す設定を行う。この制御を行うことで、第2特別図柄表示装置214は、15R特別大当り図柄(特図A)、15R大当り図柄(特図B)、突然確変図柄(特図C)、突然時短図柄(特図D)、隠れ確変図柄(特図E)、突然通常図柄(特図F)、第1小当り図柄(特図G)、第2小当り図柄(特図H)、第1はずれ図柄(特図I)、および第2はずれ図柄(特図J)のいずれか一つの図柄の確定表示を行う。さらにその後、所定の停止表示期間(例えば500m秒間)その表示を維持するためにRAM308に設けた特図2停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により、確定表示された特図2が所定期間停止表示され、特図2変動遊技の結果が遊技者に報知される。また、RAM308に設けられた時短回数記憶部に記憶された時短回数が1以上であれば、その時短回数から1を減算し、減算結果が1から0となった場合は、特図確率変動中(詳細は後述)でなければ、時短フラグをオフする。さらに、大当り遊技中(特別遊技状態中)にも、時短フラグをオフする。   In addition, in the RAM 308 determination result storage area of the main controller 300, the 15R big hit flag, 2R big hit flag, first small hit flag, second small hit flag, first off flag, second off flag, special figure probability A flag for each of a variation flag and an ordinary probability variation flag is prepared. In the special figure 2 state update process starting at the timing when the special figure 2 fluctuation display time has elapsed (the timing when the special figure 2 display symbol update timer value has changed from 1 to 0), the 15R big hit flag is on, and the special figure probability fluctuation When the flag is also on and the normal figure probability fluctuation flag is on, the special figure A and 15R jackpot flag shown in FIG. 76 (a) are on, the special figure probability fluctuation flag is off, and the common figure probability fluctuation flag is on. When the special figure B, 2R big hit flag is on, the special figure probability fluctuation flag is on, and the general figure probability fluctuation flag is also on, the special figure C, 2R big hit flag is on, the special figure probability fluctuation flag is off, When the probability fluctuation flag is on, the special figure D, 2R jackpot flag is on, the special figure probability fluctuation flag is on, and when the common figure probability fluctuation flag is on, the special figure E, 2R jackpot flag is on, special chart Probability flag is off, normal When the probability variation flag is also off, special figure F, when the first small hit flag is on, special figure G, when the second small hit flag is on, special figure H, and the first off flag are on In such a case, the 7-segment LED constituting the second special symbol display device 214 is controlled to be turned on / off so that the special figure I and the second off flag are turned on, respectively, so that the special figure I is in the respective mode. A setting indicating that the special figure 2 stop display is in progress is made in the setting area of the RAM 308. By performing this control, the second special symbol display device 214 has a 15R special jackpot symbol (special symbol A), a 15R jackpot symbol (special symbol B), a sudden probability variation symbol (special symbol C), and a sudden time-short symbol symbol (special symbol). D), hidden probability variation (special E), suddenly normal (special F), first small hit (special G), second small hit (special H), first off symbol (special) Any one of the symbols I) and the second off-set symbol (special symbol J) is confirmed and displayed. After that, information indicating the stop period is set in the storage area of the special figure 2 stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 milliseconds). With this setting, the specially displayed special figure 2 is stopped and displayed for a predetermined period, and the result of the special figure 2 variable game is notified to the player. In addition, if the time reduction number stored in the time reduction number storage unit provided in the RAM 308 is 1 or more, 1 is subtracted from the time reduction number, and if the subtraction result becomes 1 to 0, the special figure probability is changing. If not (details will be described later), the time reduction flag is turned off. Further, the hourly flag is also turned off during the big hit game (in the special game state).

また、コマンド設定送信処理(ステップS233)で回転停止設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶するとともに、変動表示を停止する図柄が特図2であることを示す特図2識別情報を、後述するコマンドデータに含める情報としてRAM308に追加記憶してから処理を終了する。   Further, the special transmission information indicating that the rotation stop setting transmission process is executed in the command setting transmission process (step S233) is additionally stored in the above-described transmission information storage area, and the design for stopping the variable display is shown in FIG. The special figure 2 identification information indicating the presence is additionally stored in the RAM 308 as information to be included in command data, which will be described later, and the processing is terminated.

また、特図2変動遊技の結果が大当りであれば、後述するように、大当りフラグがオンされる。この大当りフラグがオンの場合には、所定の停止表示期間が終了したタイミング(特図2停止時間管理用タイマの値が1から0になったタイミング)における特図2状態更新処理では、RAM308の設定領域に特図2作動中を設定するとともに、所定の入賞演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを開始することを遊技者に報知する画像を表示している期間待機するためにRAM308に設けた特図2待機時間管理用タイマの記憶領域に入賞演出期間を示す情報を設定する。また、コマンド設定送信処理(ステップS233)で入賞演出設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   If the result of the special figure 2 variable game is a big hit, the big hit flag is turned on as will be described later. When the jackpot flag is on, in the special figure 2 state update process at the timing when the predetermined stop display period ends (the timing when the special figure 2 stop time management timer value changes from 1 to 0), the RAM 308 In the setting area, the special figure 2 is in operation and waits for a predetermined winning effect period (for example, 3 seconds), that is, a period during which an image for notifying the player that the big win by the decorative symbol display device 208 is started is displayed. Therefore, information indicating the winning effect period is set in the storage area of the special figure 2 standby time management timer provided in the RAM 308. Further, predetermined transmission information indicating that the winning effect setting transmission process is executed in the command setting transmission process (step S233) is additionally stored in the transmission information storage area.

また、所定の入賞演出期間が終了したタイミング(特図2待機時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、所定の開放期間(例えば29秒間、または可変入賞口234に所定球数(例えば10球)の遊技球の入賞を検出するまで)可変入賞口234の扉部材234aの開閉駆動用のソレノイド(332)に、扉部材234aを開放状態に保持する信号を出力するとともに、RAM308に設けた扉開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。また、コマンド設定送信処理(ステップS233)で大入賞口開放設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   Further, in the special figure 2 state update process that starts at the timing when the predetermined winning effect period ends (the timing when the value of the special figure 2 standby time management timer changes from 1 to 0), a predetermined release period (for example, 29 seconds) Alternatively, the door member 234a is opened to the solenoid (332) for opening and closing the door member 234a of the variable prize opening 234 until a winning of a predetermined number of balls (for example, 10 balls) is detected at the variable prize opening 234. In addition to outputting a signal to be held at the same time, information indicating the opening period is set in the storage area of the door opening time management timer provided in the RAM 308. In addition, predetermined transmission information indicating that the special winning opening release setting transmission process is executed in the command setting transmission process (step S233) is additionally stored in the transmission information storage area.

また、所定の開放期間が終了したタイミング(扉開放時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、所定の閉鎖期間(例えば1.5秒間)可変入賞口234の扉部材234aの開閉駆動用のソレノイド(332)に、扉部材234aを閉鎖状態に保持する信号を出力するとともに、RAM308に設けた扉閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。また、コマンド設定送信処理(ステップS233)で大入賞口閉鎖設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   In the special figure 2 state update process that starts at the timing when the predetermined opening period ends (the timing when the door opening time management timer value changes from 1 to 0), the predetermined closing period (for example, 1.5 seconds) A signal for holding the door member 234a in a closed state is output to a solenoid (332) for opening and closing the door member 234a of the variable prize opening 234, and a closing period is stored in a storage area of a door closing time management timer provided in the RAM 308. Set the information indicating. In addition, predetermined transmission information indicating that the special winning opening closing setting transmission process is executed in the command setting transmission process (step S233) is additionally stored in the transmission information storage area.

また、この扉部材の開放・閉鎖制御を所定回数(本実施例では15ラウンドか2ラウンド)繰り返し、終了したタイミングで開始する特図2状態更新処理では、所定の終了演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを終了することを遊技者に報知する画像を表示している期間待機するように設定するためにRAM308に設けた演出待機時間管理用タイマの記憶領域に演出待機期間を示す情報を設定する。また、普図確率変動フラグがオンに設定されていれば、この大当り遊技の終了と同時に、RAM308に設けられた時短回数記憶部に時短回数100回をセットするともに、RAM308に設けられた時短フラグをオンする。なお、その普図確率変動フラグがオフに設定されていれば、時短回数記憶部に時短回数をセットすることもなく、また時短フラグをオンすることもない。ここにいう時短とは、特図変動遊技における大当りを終了してから、次の大当りを開始するまでの時間を短くするため、パチンコ機が遊技者にとって有利な状態になることをいう。この時短フラグがオンに設定されていると、普図高確率状態である。普図高確率状態では普図低確率状態に比べて、普図変動遊技に大当りする可能性が高い。また、普図高確率状態の方が、普図低確率状態に比べて普図変動遊技の変動時間および特図変動遊技の変動時間は短くなる。さらに、普図高確率状態では普図低確率状態に比べて、第2特別始動口232の一対の羽根部材232aの1回の開放における開放時間が長くなりやすい。加えて、普図高確率状態では普図低確率状態に比べて、一対の羽根部材232aは多く開きやすい。また、上述のごとく、時短フラグは、大当り遊技中(特別遊技状態中)にはオフに設定される。したがって、大当り遊技中には、普図低確率状態が維持される。これは、大当り遊技中に普図高確率状態であると、大当り遊技中に可変入賞口234に所定の個数、遊技球が入球するまでの間に第2特図始動口232に多くの遊技球が入球し、大当り中に獲得することができる遊技球の数が多くなってしまい射幸性が高まってしまうという問題があり、これを解決するためのものである。   In addition, in the special figure 2 state update process that starts at the timing when the door member opening / closing control is repeated a predetermined number of times (15 rounds or 2 rounds in this embodiment) and finished, a predetermined end effect period (eg, 3 seconds) In other words, the effect waiting period is stored in the storage area of the effect waiting time management timer provided in the RAM 308 in order to set to wait for a period during which an image for informing the player that the big hit by the decorative symbol display device 208 is to be ended is displayed. Set the information indicating. Also, if the normal probability fluctuation flag is set to ON, at the same time as the end of the big hit game, the time reduction number 100 is set in the time reduction number storage unit provided in the RAM 308, and the time reduction flag provided in the RAM 308 is set. Turn on. If the usual time probability variation flag is set to OFF, the time reduction number is not set in the time reduction number storage unit, and the time reduction flag is not turned ON. The short time here means that the pachinko machine is in an advantageous state for the player in order to shorten the time from the end of the big hit in the special figure variable game to the start of the next big hit. If the short time flag is set to ON at this time, it is a normal high probability state. There is a higher probability of hitting a general-purpose variable game in the high-probability state than in the low-probability state. In addition, the fluctuation time of the normal figure variable game and the fluctuation time of the special figure variable game are shorter in the normal figure high probability state than in the normal figure low probability state. Further, in the normal high probability state, the opening time in one opening of the pair of blade members 232a of the second special start port 232 tends to be longer than in the normal low probability state. In addition, the pair of blade members 232a are more likely to open in the normal high probability state than in the normal low probability state. In addition, as described above, the hourly flag is set to off during the big hit game (in the special game state). Therefore, the normal low probability state is maintained during the big hit game. This is because if the game is in a high probability state during a big hit game, a large number of games will be placed in the second special figure starting port 232 until a predetermined number of game balls are entered during the big win game. There is a problem that a ball enters and the number of game balls that can be acquired during a big hit increases, resulting in an increase in euphoria. This is to solve this problem.

さらに、コマンド設定送信処理(ステップS233)で終了演出設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   Further, predetermined transmission information indicating that the end effect setting transmission process is executed in the command setting transmission process (step S233) is additionally stored in the transmission information storage area.

また、所定の終了演出期間が終了したタイミング(演出待機時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、RAM308の設定領域に特図2非作動中を設定する。さらに、特図2変動遊技の結果が外れであれば、後述するように、はずれフラグがオンされる。このはずれフラグがオンの場合には、上述した所定の停止表示期間が終了したタイミング(特図2停止時間管理用タイマの値が1から0になったタイミング)における特図2状態更新処理でも、RAM308の設定領域に特図2非作動中を設定する。特図2非作動中の場合における特図2状態更新処理では、何もせずに次のステップS227に移行するようにしている。   In the special figure 2 state update process that starts at the timing when the predetermined end production period ends (the timing when the production standby time management timer value changes from 1 to 0), the special figure 2 is not activated in the setting area of the RAM 308. Set medium. Further, if the result of the special figure 2 variable game is out of the way, the off flag is turned on as will be described later. In the case where the miss flag is on, even in the special figure 2 state update process at the timing when the predetermined stop display period described above ends (the timing when the special figure 2 stop time management timer value changes from 1 to 0), In the setting area of the RAM 308, special figure 2 inactive is set. In the special figure 2 state update process when the special figure 2 is not in operation, nothing is done and the process proceeds to the next step S227.

続いて、特図1についての特図状態更新処理(特図1状態更新処理)を行う(ステップS227)。この特図1状態更新処理では、特図1の状態に応じて、上述の特図2状態更新処理で説明した各処理を行う。この特図1状態更新処理で行う各処理は、上述の特図2状態更新処理で説明した内容の「特図2」を「特図1」と読み替えた処理と同一であるため、その説明は省略する。なお、特図2状態更新処理と特図1状態更新処理の順番は逆でもよい。   Subsequently, special figure state update processing (special figure 1 state update process) for special figure 1 is performed (step S227). In the special figure 1 state update process, each process described in the special figure 2 state update process is performed according to the state of the special figure 1. Each process performed in the special figure 1 state update process is the same as the process in which “special figure 2” in the contents described in the special figure 2 state update process is replaced with “special figure 1”. Omitted. The order of the special figure 2 state update process and the special figure 1 state update process may be reversed.

ステップS225およびステップS227における特図状態更新処理が終了すると、今度は、特図1および特図2それぞれについての特図関連抽選処理を行う。ここでも先に、特図2についての特図関連抽選処理(特図2関連抽選処理)を行い(ステップS229)、その後で、特図1についての特図関連抽選処理(特図1関連抽選処理)を行う(ステップS231)。これらの特図関連抽選処理についても、主制御部300が特図2関連抽選処理を特図1関連抽選処理よりも先に行うことで、特図2変動遊技の開始条件と、特図1変動遊技の開始条件が同時に成立した場合でも、特図2変動遊技が先に変動中となるため、特図1変動遊技は変動を開始しない。また、装飾図柄表示装置208による、特図変動遊技の大当り判定の結果の報知は、第1副制御部400によって行われ、第2特図始動口232への入賞に基づく抽選の抽選結果の報知が、第1特図始動口230への入賞に基づく抽選の抽選結果の報知よりも優先して行われる。   When the special figure state update process in step S225 and step S227 is completed, a special figure related lottery process for each of special figure 1 and special figure 2 is performed. Also here, first, a special drawing related lottery process for special figure 2 (a special drawing 2 related lottery process) is performed (step S229), and then a special drawing related lottery process for special figure 1 (a special drawing 1 related lottery process). ) Is performed (step S231). Also for these special drawing related lottery processes, the main control unit 300 performs the special figure 2 related lottery processing before the special figure 1 related lottery processing, so that the special figure 2 variable game start condition and the special figure 1 fluctuation Even if the game start conditions are satisfied at the same time, since the special figure 2 variable game is changing first, the special figure 1 variable game does not start changing. Further, the notification of the result of the jackpot determination of the special figure variable game by the decorative symbol display device 208 is performed by the first sub-control unit 400, and the lottery result of the lottery based on the winning at the second special figure starting port 232 is notified. However, it is performed in preference to the notification of the lottery result of the lottery based on the winning at the first special figure starting port 230.

ステップS233では、コマンド設定送信処理を行い、各種のコマンドが第1副制御部400に送信される。なお、第1副制御部400に送信する出力予定情報は例えば16ビットで構成しており、ビット15はストローブ情報(オンの場合、データをセットしていることを示す)、ビット11〜14はコマンド種別(本実施形態では、基本コマンド、図柄変動開始コマンド、図柄変動停止コマンド、入賞演出開始コマンド、終了演出開始コマンド、大当りラウンド数指定コマンド、復電コマンドなどコマンドの種類を特定可能な情報)、ビット0〜10はコマンドデータ(コマンド種別に対応する所定の情報)で構成している。   In step S233, command setting transmission processing is performed, and various commands are transmitted to the first sub-control unit 400. The output schedule information to be transmitted to the first sub-control unit 400 is composed of 16 bits, for example, bit 15 is strobe information (indicating that data is set when ON), bits 11 to 14 are Command type (in this embodiment, information that can specify the type of command, such as basic command, symbol variation start command, symbol variation stop command, winning effect start command, end effect start command, jackpot round number designation command, power recovery command) Bits 0 to 10 are composed of command data (predetermined information corresponding to the command type).

具体的には、ストローブ情報は上述のコマンド送信処理でオン、オフするようにしている。また、コマンド種別が図柄変動開始コマンドの場合であればコマンドデータに、15R大当りフラグや2R大当りフラグの値、特図確率変動フラグの値、特図関連抽選処理で選択したタイマ番号などを示す情報を含み、図柄変動停止コマンドの場合であれば、15R大当りフラグや2R大当りフラグの値、特図確率変動フラグの値などを含み、入賞演出コマンドおよび終了演出開始コマンドの場合であれば、特図確率変動フラグの値などを含み、大当りラウンド数指定コマンドの場合であれば特図確率変動フラグの値、大当りラウンド数などを含むようにしている。コマンド種別が基本コマンドを示す場合は、コマンドデータにデバイス情報、第1特図始動口230への入賞の有無、第2特図始動口232への入賞の有無、可変入賞口234への入賞の有無などを含む。   Specifically, the strobe information is turned on and off in the command transmission process described above. If the command type is a symbol variation start command, the command data includes information such as the value of the 15R jackpot flag or 2R jackpot flag, the value of the special figure probability variation flag, the timer number selected in the special figure related lottery process, and the like. In the case of the symbol variation stop command, the value of the 15R jackpot flag, the 2R jackpot flag, the value of the special figure probability variation flag, and the like are included. In the case of a jackpot round number designation command, the value of the special variation probability flag, the number of jackpot rounds, and the like are included. When the command type indicates a basic command, device information in the command data, presence / absence of winning at the first special figure starting port 230, presence / absence of winning at the second special figure starting port 232, winning of the variable winning port 234 Includes presence or absence.

また、上述の回転開始設定送信処理では、コマンドデータにRAM308に記憶している、15R大当りフラグや2R大当りフラグの値、特図確率変動フラグの値、特図1関連抽選処理および特図2関連抽選処理で選択したタイマ番号、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の回転停止設定送信処理では、コマンドデータにRAM308に記憶している、15R大当りフラグや2R大当りフラグの値、特図確率変動フラグの値などを示す情報を設定する。上述の入賞演出設定送信処理では、コマンドデータに、RAM308に記憶している、入賞演出期間中に装飾図柄表示装置208・各種ランプ418・スピーカ120に出力する演出制御情報、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の終了演出設定送信処理では、コマンドデータに、RAM308に記憶している、演出待機期間中に装飾図柄表示装置208・各種ランプ418・スピーカ120に出力する演出制御情報、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の大入賞口開放設定送信処理では、コマンドデータにRAM308に記憶している大当りラウンド数、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の大入賞口閉鎖設定送信処理では、コマンドデータにRAM308に記憶している大当りラウンド数、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。また、このステップS233では一般コマンド特図保留増加処理も行われる。この一般コマンド特図保留増加処理では、コマンドデータにRAM308の送信用情報記憶領域に記憶している特図識別情報(特図1または特図2を示す情報)、予告情報(事前予告情報、偽事前予告情報、または事前予告無情報のいずれか)を設定する。   In the rotation start setting transmission process described above, the value of the 15R big hit flag or 2R big hit flag, the value of the special figure probability variation flag, the special figure 1 related lottery process, and the special figure 2 related are stored in the RAM 308 as command data. Information indicating the timer number selected in the lottery process, the number of the first special figure variable game or the second special figure variable game held, etc. is set. In the rotation stop setting transmission process described above, information indicating the value of the 15R big hit flag, the value of the 2R big hit flag, the value of the special figure probability variation flag, etc. stored in the RAM 308 is set in the command data. In the winning effect setting transmission process described above, the command control data stored in the RAM 308, the effect control information output to the decorative symbol display device 208, various lamps 418, and the speaker 120 during the winning effect period, the special figure probability variation flag Information indicating the value, the number of the first special figure variable game or the second special figure variable game being held, etc. is set. In the above-described end effect setting transmission process, the command control data stored in the RAM 308, the effect control information output to the decorative symbol display device 208, various lamps 418, and the speaker 120 during the effect standby period, the special figure probability variation flag Information indicating the value, the number of the first special figure variable game or the second special figure variable game being held, etc. is set. In the above-described large winning opening release setting transmission process, the number of big hits stored in the RAM 308 in the command data, the value of the special figure probability variation flag, the pending first special figure variation game or the second special figure variation game is stored. Set information such as number. In the above-mentioned big winning opening closing setting transmission process, the number of big hits stored in the RAM 308 in the command data, the value of the special figure probability variation flag, the pending first special figure variation game or the second special figure variation game is stored. Set information such as number. In step S233, general command special figure hold increase processing is also performed. In this general command special figure pending increase process, special figure identification information (information showing special figure 1 or special figure 2) stored in the transmission information storage area of the RAM 308, command notice information (preliminary notice information, false) Set either advance notice information or no advance notice information).

第1副制御部400では、受信した出力予定情報に含まれるコマンド種別により、主制御部300における遊技制御の変化に応じた演出制御の決定が可能になるとともに、出力予定情報に含まれているコマンドデータの情報に基づいて、演出制御内容を決定することができるようになる。   In the first sub-control unit 400, it is possible to determine the production control according to the change of the game control in the main control unit 300 by the command type included in the received output schedule information, and it is included in the output schedule information. Based on the information of the command data, the contents of effect control can be determined.

ステップS235では、外部出力信号設定処理を行う。この外部出力信号設定処理では、RAM308に記憶している遊技情報を、情報出力回路336を介してパチンコ機100とは別体の情報入力回路350に出力する。   In step S235, an external output signal setting process is performed. In this external output signal setting process, the game information stored in the RAM 308 is output to the information input circuit 350 separate from the pachinko machine 100 via the information output circuit 336.

ステップS237では、デバイス監視処理を行う。このデバイス監視処理では、ステップS205において信号状態記憶領域に記憶した各種センサの信号状態を読み出して、所定のエラーの有無、例えば前面枠扉開放エラーの有無または下皿満タンエラーの有無などを監視し、前面枠扉開放エラーまたは下皿満タンエラーを検出した場合に、第1副制御部400に送信すべき送信情報に、前面枠扉開放エラーの有無または下皿満タンエラーの有無を示すデバイス情報を設定する。また、各種ソレノイド332を駆動して第2特図始動口232や、可変入賞口234の開閉を制御したり、表示回路324、326、330を介して普通図柄表示装置210、第1特別図柄表示装置212、第2特別図柄表示装置214、各種状態表示部328などに出力する表示データを、I/O310の出力ポートに設定する。また、払出要求数送信処理(ステップS219)で設定した出力予定情報を出力ポート(I/O310)を介して第1副制御部400に出力する。   In step S237, device monitoring processing is performed. In this device monitoring process, the signal states of the various sensors stored in the signal state storage area in step S205 are read, and the presence or absence of a predetermined error, for example, the presence or absence of a front frame door opening error or the presence or absence of a full tray error is monitored. When the front frame door opening error or the lower pan full error is detected, the transmission information to be transmitted to the first sub-control unit 400 includes device information indicating the presence or absence of the front frame door opening error or the lower pan full error. Set. Further, various solenoids 332 are driven to control the opening and closing of the second special figure starting port 232 and the variable prize opening 234, and the normal symbol display device 210 and the first special symbol display via the display circuits 324, 326 and 330. Display data to be output to the device 212, the second special symbol display device 214, the various status display units 328, and the like is set in the output port of the I / O 310. Further, the output schedule information set in the payout request number transmission process (step S219) is output to the first sub-control unit 400 via the output port (I / O 310).

ステップS239では、低電圧信号がオンであるか否かを監視する。そして、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS243に進み、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS241に進む。   In step S239, it is monitored whether or not the low voltage signal is on. Then, when the low voltage signal is on (when power supply cutoff is detected), the process proceeds to step S243, and when the low voltage signal is off (when power supply cutoff is not detected), the process proceeds to step S241.

ステップS241では、タイマ割込終了処理を行う。このタイマ割込終了処理では、ステップS201で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割込許可の設定などを行い、その後、主制御部メイン処理に復帰する。   In step S241, timer interrupt end processing is performed. In this timer interrupt end process, the value of each register temporarily saved in step S201 is set in each original register, interrupt permission is set, and the like, and then the process returns to the main process of the main control unit.

一方、ステップS243では、復電時に電断時の状態に復帰するための特定の変数やスタックポインタを復帰データとしてRAM308の所定の領域に退避し、入出力ポートの初期化等の電断処理を行い、その後、主制御部メイン処理に復帰する。
<第1副制御部400の処理>
On the other hand, in step S243, a specific variable or stack pointer for returning to the power-off state at the time of power recovery is saved in a predetermined area of the RAM 308 as return data, and power-off processing such as initialization of input / output ports is performed. After that, the process returns to the main process of the main control unit.
<Processing of First Sub-Control Unit 400>

次に、図86を用いて、第1副制御部400の処理について説明する。なお、同図(a)は、第1副制御部400のCPU404が実行するメイン処理のフローチャートである。同図(b)は、第1副制御部400のストローブ割込み処理のフローチャートである。同図(c)は、第1副制御部400のタイマ変数更新割込処理のフローチャートである。同図(d)は、第1副制御部400の画像制御処理のフローチャートである。   Next, processing of the first sub-control unit 400 will be described using FIG. FIG. 5A is a flowchart of main processing executed by the CPU 404 of the first sub control unit 400. FIG. 5B is a flowchart of the strobe interrupt process of the first sub control unit 400. FIG. 6C is a flowchart of the timer variable update interrupt process of the first sub control unit 400. FIG. 4D is a flowchart of the image control process of the first sub control unit 400.

まず、同図(a)のステップS301では、各種の初期設定を行う。電源投入が行われると、まずS301で初期化処理が実行される。この初期化処理では、入出力ポートの初期設定や、RAM408内の記憶領域の初期化処理等を行う。   First, in step S301 in FIG. 9A, various initial settings are performed. When power is turned on, an initialization process is first executed in S301. In this initialization processing, initialization of input / output ports, initialization processing of a storage area in the RAM 408, and the like are performed.

ステップS303では、タイマ変数が10以上か否かを判定し、タイマ変数が10となるまでこの処理を繰り返し、タイマ変数が10以上となったときには、ステップS305の処理に移行する。ステップS305では、タイマ変数に0を代入する。   In step S303, it is determined whether or not the timer variable is 10 or more. This process is repeated until the timer variable becomes 10, and when the timer variable becomes 10 or more, the process proceeds to step S305. In step S305, 0 is substituted into the timer variable.

ステップS307では、コマンド処理を行う。第1副制御部400のCPU404は、主制御部300からコマンドを受信したか否かを判別する。   In step S307, command processing is performed. The CPU 404 of the first sub control unit 400 determines whether a command has been received from the main control unit 300.

ステップS309では、演出制御処理を行う。例えば、S307で新たなコマンドがあった場合には、このコマンドに対応する演出データをROM406から読み出す等の処理を行い、演出データの更新が必要な場合には演出データの更新処理を行う。   In step S309, effect control processing is performed. For example, when there is a new command in S307, processing such as reading the effect data corresponding to this command from the ROM 406 is performed, and when the effect data needs to be updated, the effect data is updated.

ステップS311では、チャンスボタンの押下を検出していた場合、ステップS309で更新した演出データをチャンスボタンの押下に応じた演出データに変更する処理を行う。ステップS313では、S309で読み出した演出データの中にVDP434への命令がある場合には、この命令をVDP434に出力する(詳細は後述)。   If it is detected in step S311 that the chance button has been pressed, the effect data updated in step S309 is changed to effect data corresponding to the press of the chance button. In step S313, if there is a command to VDP 434 in the effect data read in S309, this command is output to VDP 434 (details will be described later).

ステップS315では、S309で読み出した演出データの中に音源IC416への命令がある場合には、この命令を音源IC416に出力する。ステップS317では、S309で読み出した演出データの中に各種ランプ418への命令がある場合には、この命令を駆動回路420に出力する。   In step S315, if there is a command to the sound source IC 416 in the effect data read out in S309, this command is output to the sound source IC 416. In step S317, if there is a command to the various lamps 418 in the effect data read in S309, this command is output to the drive circuit 420.

ステップS319では、S309で読み出した演出データの中に遮蔽装置246への命令がある場合には、この命令を駆動回路432に出力する。ステップS321では、S309で読み出した演出データの中に第2副制御部500に送信する制御コマンドがある場合には、この制御コマンドを出力する設定を行い、S303へ戻る。   In step S <b> 319, if there is a command to the shielding device 246 in the effect data read in S <b> 309, this command is output to the drive circuit 432. In step S321, if there is a control command to be transmitted to the second sub-control unit 500 in the effect data read in S309, the control command is set to be output, and the process returns to S303.

次に、同図(b)を用いて、第1副制御部400のコマンド受信割込処理について説明する。このコマンド受信割込処理は、第1副制御部400が、主制御部300が出力するストローブ信号を検出した場合に実行する処理である。コマンド受信割込処理のステップS401では、主制御部300が出力したコマンドを未処理コマンドとしてRAM408に設けたコマンド記憶領域に記憶する。   Next, the command reception interrupt process of the first sub-control unit 400 will be described using FIG. This command reception interrupt process is a process executed when the first sub-control unit 400 detects a strobe signal output from the main control unit 300. In step S401 of the command reception interrupt process, the command output from the main control unit 300 is stored as an unprocessed command in a command storage area provided in the RAM 408.

次に、同図(c)を用いて、第1副制御部400のCPU404によって実行する第1副制御部タイマ割込処理について説明する。第1副制御部400は、所定の周期(本実施例では2msに1回)でタイマ割込を発生するハードウェアタイマを備えており、このタイマ割込を契機として、タイマ割込処理を所定の周期で実行する。   Next, the first sub control unit timer interrupt process executed by the CPU 404 of the first sub control unit 400 will be described with reference to FIG. The first sub-control unit 400 includes a hardware timer that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 2 ms). Execute in the cycle.

第1副制御部タイマ割込処理のステップS501では、第1副制御部メイン処理におけるステップS303において説明したRAM408のタイマ変数記憶領域の値に、1を加算して元のタイマ変数記憶領域に記憶する。従って、ステップS303において、タイマ変数の値が10以上と判定されるのは20ms毎(2ms×10)となる。   In step S501 of the first sub-control unit timer interrupt process, 1 is added to the value of the timer variable storage area of the RAM 408 described in step S303 in the first sub-control unit main process, and the original timer variable storage area is stored. To do. Therefore, in step S303, the value of the timer variable is determined to be 10 or more every 20 ms (2 ms × 10).

第1副制御部タイマ割込処理のステップS503では、ステップS319で設定された第2副制御部500への制御コマンドの送信や、演出用乱数値の更新処理等を行う。   In step S503 of the first sub control unit timer interrupt process, a control command is transmitted to the second sub control unit 500 set in step S319, an effect random number value is updated, and the like.

次に、同図(d)を用いて、第1副制御部400のメイン処理におけるステップS313の画像制御処理について説明する。同図は、画像制御処理の流れを示すフローチャートを示した図である。   Next, the image control process in step S313 in the main process of the first sub control unit 400 will be described with reference to FIG. FIG. 5 is a flowchart showing the flow of image control processing.

ステップS601では、画像データの転送指示を行う。ここでは、CPU404は、まず、VRAM436の表示領域Aと表示領域Bの描画領域の指定をスワップする。これにより、描画領域に指定されていない表示領域に記憶された1フレームの画像が装飾図柄表示装置208に表示される。次に、CPU404は、VDP434のアトリビュートレジスタに、位置情報等テーブルに基づいてROM座標(ROM406の転送元アドレス)、VRAM座標(VRAM436の転送先アドレス)などを設定した後、ROM406からVRAM436への画像データの転送開始を指示する命令を設定する。VDP434は、アトリビュートレジスタに設定された命令に基づいて画像データをROM406からVRAM436に転送する。その後、VDP436は、転送終了割込信号をCPU404に対して出力する。   In step S601, an instruction to transfer image data is issued. Here, the CPU 404 first swaps the designation of the display areas A and B in the VRAM 436. As a result, an image of one frame stored in the display area not designated as the drawing area is displayed on the decorative design display device 208. Next, the CPU 404 sets ROM coordinates (transfer source address of the ROM 406), VRAM coordinates (transfer destination address of the VRAM 436) and the like in the attribute register of the VDP 434 based on the position information table and the like, and then the image from the ROM 406 to the VRAM 436. Set an instruction to start data transfer. The VDP 434 transfers the image data from the ROM 406 to the VRAM 436 based on the command set in the attribute register. Thereafter, the VDP 436 outputs a transfer end interrupt signal to the CPU 404.

ステップS603では、VDP434からの転送終了割込信号が入力されたか否かを判定し、転送終了割込信号が入力された場合はステップS605に進み、そうでない場合は転送終了割込信号が入力されるのを待つ。ステップS605では、演出シナリオ構成テーブルおよびアトリビュートデータなどに基づいて、パラメータ設定を行う。ここでは、CPU404は、ステップS601でVRAM436に転送した画像データに基づいてVRAM436の表示領域AまたはBに表示画像を形成するために、表示画像を構成する画像データの情報(VRAM436の座標軸、画像サイズ、VRAM座標(配置座標)など)をVDP434に指示する。VDP434はアトリビュートレジスタに格納された命令に基づいてアトリビュートに従ったパラメータ設定を行う。   In step S603, it is determined whether or not a transfer end interrupt signal from the VDP 434 is input. If a transfer end interrupt signal is input, the process proceeds to step S605. If not, a transfer end interrupt signal is input. Wait for it. In step S605, parameters are set based on the production scenario configuration table and attribute data. Here, in order to form a display image in the display area A or B of the VRAM 436 based on the image data transferred to the VRAM 436 in step S601, the CPU 404 has information on the image data constituting the display image (coordinate axis and image size of the VRAM 436). , VRAM coordinates (arrangement coordinates, etc.) are instructed to the VDP 434. The VDP 434 sets parameters according to attributes based on instructions stored in the attribute register.

ステップS607では、描画指示を行う。この描画指示では、CPU404は、VDP434に画像の描画開始を指示する。VDP434は、CPU404の指示に従ってフレームバッファにおける画像描画を開始する。   In step S607, a drawing instruction is performed. In this drawing instruction, the CPU 404 instructs the VDP 434 to start drawing an image. The VDP 434 starts drawing an image in the frame buffer in accordance with an instruction from the CPU 404.

ステップS609では、画像の描画終了に基づくVDP434からの生成終了割込み信号が入力されたか否かを判定し、生成終了割込み信号が入力された場合はステップS611に進み、そうでない場合は生成終了割込み信号が入力されるのを待つ。ステップS611では、RAM408の所定の領域に設定され、何シーンの画像を生成したかをカウントするシーン表示カウンタをインクリメント(+1)して処理を終了する。
<第2副制御部500の処理>
In step S609, it is determined whether or not a generation end interrupt signal from the VDP 434 based on the end of image drawing is input. If a generation end interrupt signal is input, the process proceeds to step S611. If not, the generation end interrupt signal is determined. Wait for input. In step S611, a scene display counter that is set in a predetermined area of the RAM 408 and counts how many scene images have been generated is incremented (+1), and the process ends.
<Processing of Second Sub-Control Unit 500>

次に、図87を用いて、第2副制御部500の処理について説明する。なお、同図(a)は、第2副制御部500のCPU504が実行するメイン処理のフローチャートである。同図(b)は、第2副制御部500のコマンド受信割込処理のフローチャートである。同図(c)は、第2副制御部500のタイマ割込処理のフローチャートである。   Next, the process of the second sub control unit 500 will be described with reference to FIG. FIG. 6A is a flowchart of main processing executed by the CPU 504 of the second sub-control unit 500. FIG. 7B is a flowchart of command reception interrupt processing of the second sub control unit 500. FIG. 8C is a flowchart of the timer interrupt process of the second sub control unit 500.

まず、同図(a)のステップS701では、各種の初期設定を行う。電源投入が行われると、まずS701で初期化処理が実行される。この初期化処理では、入出力ポートの初期設定や、RAM508内の記憶領域の初期化処理等を行う。   First, in step S701 in FIG. 9A, various initial settings are performed. When the power is turned on, first, initialization processing is executed in S701. In this initialization processing, initial setting of input / output ports, initialization processing of a storage area in the RAM 508, and the like are performed.

ステップS703では、タイマ変数が10以上か否かを判定し、タイマ変数が10となるまでこの処理を繰り返し、タイマ変数が10以上となったときには、ステップS705の処理に移行する。   In step S703, it is determined whether or not the timer variable is 10 or more, and this process is repeated until the timer variable becomes 10. When the timer variable becomes 10 or more, the process proceeds to step S705.

ステップS705では、タイマ変数に0を代入する。ステップS707では、コマンド処理を行う。第2副制御部500のCPU504は、第1副制御部400のCPU404からコマンドを受信したか否かを判別する。ステップS709では、演出制御処理を行う。例えば、S707で新たなコマンドがあった場合には、このコマンドに対応する演出データをROM506から読み出す等の処理を行い、演出データの更新が必要な場合には演出データの更新処理を行う。   In step S705, 0 is assigned to the timer variable. In step S707, command processing is performed. The CPU 504 of the second sub control unit 500 determines whether a command has been received from the CPU 404 of the first sub control unit 400. In step S709, an effect control process is performed. For example, when there is a new command in S707, the effect data corresponding to this command is read from the ROM 506, and when the effect data needs to be updated, the effect data is updated.

ステップS711では、第1副制御部400からの遊技盤用ランプ532や遊技台枠用ランプ542への命令がある場合には、この命令をシリアル通信制御回路520に出力する。   In step S <b> 711, if there is a command from the first sub-control unit 400 to the game board lamp 532 or the game table frame lamp 542, this command is output to the serial communication control circuit 520.

ステップS713では、第1副制御部400からの演出可動体224への命令がある場合には、この命令を駆動回路516に出力し、S703に戻る。   In step S713, if there is a command from the first sub-control unit 400 to the effect movable body 224, this command is output to the drive circuit 516, and the process returns to S703.

次に、同図(b)を用いて、第2副制御部500のコマンド受信割込処理について説明する。このコマンド受信割込処理は、第2副制御部500が、第1副制御部400が出力するストローブ信号を検出した場合に実行する処理である。コマンド受信割込処理のステップS801では、第1副制御部400が出力したコマンドを未処理コマンドとしてRAM508に設けたコマンド記憶領域に記憶する。 Next, the command reception interrupt process of the second sub control unit 500 will be described with reference to FIG. This command reception interrupt process is a process executed when the second sub control unit 500 detects the strobe signal output from the first sub control unit 400. In step S801 of the command reception interrupt process, the command output from the first sub control unit 400 is stored as an unprocessed command in a command storage area provided in the RAM 508.

次に、同図(c)を用いて、第2副制御部500のCPU504によって実行する第2副制御部タイマ割込処理について説明する。第2副制御部500は、所定の周期(本実施例では2msに1回)でタイマ割込を発生するハードウェアタイマを備えており、このタイマ割込を契機として、タイマ割込処理を所定の周期で実行する。   Next, the second sub control unit timer interrupt process executed by the CPU 504 of the second sub control unit 500 will be described with reference to FIG. The second sub-control unit 500 includes a hardware timer that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 2 ms), and a timer interrupt process is performed in response to this timer interrupt. Execute in the cycle.

第2副制御部タイマ割込処理のステップS901では、第2副制御部メイン処理におけるステップS703において説明したRAM508のタイマ変数記憶領域の値に、1を加算して元のタイマ変数記憶領域に記憶する。従って、ステップS703において、タイマ変数の値が10以上と判定されるのは20ms毎(2ms×10)となる。第2副制御部タイマ割込処理のステップS903では、演出用乱数値の更新処理等を行う。
<主制御部のROM>
In step S901 of the second sub control unit timer interrupt process, 1 is added to the value of the timer variable storage area of the RAM 508 described in step S703 in the second sub control unit main process, and the result is stored in the original timer variable storage area. To do. Therefore, in step S703, the value of the timer variable is determined to be 10 or more every 20 ms (2 ms × 10). In step S903 of the second sub-control unit timer interrupt process, an effect random number update process is performed.
<ROM of main controller>

次に、図88を用いて、主制御部300のROM306に記憶されるデータの種類について説明する。なお、同図は、上述のROM306に記憶されるデータの一例を示した図である。   Next, the types of data stored in the ROM 306 of the main control unit 300 will be described with reference to FIG. The figure shows an example of data stored in the ROM 306 described above.

ROM306の記憶領域に対応するROM領域(本実施形態では、0000H〜2FFFHの16Kバイト領域)は、ROM制御領域(本実施形態では、0000H〜0BB0H)、非使用領域(本実施形態では、0BB1H〜0FFFH)、ROMデータ領域(本実施形態では、1000H〜18FDH)およびその他領域(本実施形態では、18FEH〜2FFFH)で構成されている。このROM制御領域に対応するROM306の記憶領域には、CPU304が実行する複数種類の命令それぞれに対応する命令データ(オペコード)やCPU304がそれぞれの命令を実行するために必要な補足データ(オペランド)によって構成される制御プログラム用のデータ(単に、制御プログラムデータと称する場合がある)が記憶され、非使用領域に対応するROM306の記憶領域には、特定値(本実施形態では、00H)が一律に記憶され、ROMデータ領域に対応するROM306の記憶領域には、上記の制御プログラムによって参照される参照データ(例えば、上述の各種抽選データ)が記憶されている。また、その他領域に対応するROM306の記憶領域には、制御プログラムを管理するための管理データ(例えば、制御プログラムデータの最終アドレスを示すデータ)などが記憶されている。なお、本実施形態では、ROM領域の各々のアドレスに対応するROM306の記憶領域には、1バイト(8ビット)のデータが記憶可能であり、上述の各データ(命令データ、補足データ、参照データ、管理データ)が1バイトを超えるバイト数(例えば、2バイト)のデータである場合には、ROM制御領域の連続する複数のアドレスに対応するROM306の記憶領域に1バイト毎に分割して記憶している。   The ROM area corresponding to the storage area of the ROM 306 (in this embodiment, a 16 Kbyte area from 0000H to 2FFFH) is a ROM control area (in this embodiment, 0000H to 0BB0H), a non-use area (in this embodiment, 0BB1H to 0FFFH), ROM data area (1000H to 18FDH in this embodiment), and other areas (18FEH to 2FFFH in this embodiment). The storage area of the ROM 306 corresponding to this ROM control area contains instruction data (opcode) corresponding to each of a plurality of types of instructions executed by the CPU 304 and supplementary data (operands) necessary for the CPU 304 to execute each instruction. Data for the configured control program (sometimes simply referred to as control program data) is stored, and a specific value (00H in this embodiment) is uniformly set in the storage area of the ROM 306 corresponding to the non-use area. In the storage area of the ROM 306 that is stored and corresponds to the ROM data area, reference data (for example, the above-mentioned various lottery data) referred to by the control program is stored. Also, management data for managing the control program (for example, data indicating the final address of the control program data) is stored in the storage area of the ROM 306 corresponding to the other area. In this embodiment, 1-byte (8-bit) data can be stored in the storage area of the ROM 306 corresponding to each address in the ROM area, and each of the above-described data (command data, supplemental data, reference data) , Management data) is data having a number of bytes exceeding 1 byte (for example, 2 bytes), the data is divided and stored for each byte in the storage area of the ROM 306 corresponding to a plurality of consecutive addresses in the ROM control area. doing.

また、制御プログラムは、複数のサブルーチンによって構成されており、後述するCALL命令やEXESUB(EXECUTE SUBROUTINE)命令などによってサブルーチンの先頭アドレスに移動して、当該サブルーチンを順次実行することが可能になっている。   Further, the control program is composed of a plurality of subroutines, and it is possible to move to the top address of the subroutine by a CALL instruction, an EXESUB (EXECUTE SUBBROUTINE) instruction, which will be described later, and execute the subroutine sequentially. .

ところで、遊技台の分野では、制御プログラムの検査効率化の観点から、制御プログラムデータを記憶する記憶領域を制限する必要があり、本実施形態では、上述の通りROM制御領域を0000H〜0BB0Hに制限している。また、不正改造の抑止の観点から、制御プログラムデータ間に非使用領域や非使用のデータを設けないようにROM制御領域の若いアドレスに詰めて制御用プログラムデータを記憶する必要があるため、開発段階で非使用となった制御プログラムデータの記憶領域を埋めるために別の制御プログラムデータを分割して割り当てるなどの作業が発生し、結果としてサブルーチンを呼び出す制御プログラムデータが多数必要となってくる。さらに、制御プログラムの開発効率を向上させるためや、制御プログラムのデバッグ作業等のメンテナンス作業を簡便にするためにもサブルーチンを多用しているため、サブルーチンを呼び出す制御プログラムデータが多数必要となってくる。   By the way, in the field of gaming machines, it is necessary to limit the storage area for storing control program data from the viewpoint of improving the inspection efficiency of the control program. In this embodiment, the ROM control area is limited to 0000H to 0BB0H as described above. doing. In addition, from the viewpoint of preventing unauthorized modification, it is necessary to store control program data in a young address in the ROM control area so that no unused area or unused data is provided between control program data. In order to fill the storage area of the control program data that is not used at the stage, work such as dividing and assigning another control program data occurs, and as a result, a lot of control program data for calling a subroutine is required. Furthermore, since subroutines are frequently used to improve control program development efficiency and to simplify maintenance work such as control program debugging, a large amount of control program data is required to call the subroutines. .

このような開発環境の中で遊技の興趣を高めることを可能にするためには、ROM制御領域に対応するROM306の記憶領域に記憶されている従来の制御プログラムデータ(例えば、上述のサブルーチンを呼び出す制御プログラムデータ)を圧縮し、ROM制御領域に対応するROM306の記憶領域に新しい制御プログラムデータを追加することが可能な記憶領域を確保することが必要となってくる。   In order to enhance the interest of the game in such a development environment, conventional control program data stored in the storage area of the ROM 306 corresponding to the ROM control area (for example, calling the above subroutine) It is necessary to secure a storage area where new control program data can be added to the storage area of the ROM 306 corresponding to the ROM control area.

特に、所定の周期(例えば、10ms)毎に所定の処理を実行するタイマ割込み処理を実行するための制御プログラムには、複数の遊技制御処理のうちランダムに発生する複数の外部情報(各センサの変化等)を検出する処理(例えば、入力ポート状態更新処理(ステップS205))や外部情報の検出結果に基づいた処理(例えば、デバイス監視処理(ステップS237))など多くのサブルーチンを呼び出すための制御プログラムデータが含まれているため、このタイマ割込み処理を実行するための制御プログラムに含まれるサブルーチンを呼び出す制御プログラムデータの圧縮が必要となってくる。   In particular, a control program for executing a timer interrupt process for executing a predetermined process at a predetermined period (for example, 10 ms) includes a plurality of external information randomly generated from a plurality of game control processes (for each sensor). Control for invoking many subroutines, such as processing for detecting changes (for example, input port state update processing (step S205)) and processing based on detection results of external information (for example, device monitoring processing (step S237)) Since the program data is included, it is necessary to compress the control program data for calling a subroutine included in the control program for executing the timer interrupt process.

また、安定した遊技制御をおこなえるようにするためには、上述のタイマ割込み処理を重点的に安定化させなければならない。具体的には、コーディングミスを抑止すること、所定の周期(例えば、10ms)毎に所定の処理を実行させるために(リアルタイム性を確保するために)処理速度を向上させることなどが必須となるため、サブルーチンを呼び出す制御プログラムに関する工夫が必要となる(詳細は後述する)。
<主制御部の命令データ>
In addition, in order to be able to perform stable game control, the above-described timer interrupt process must be focused and stabilized. Specifically, it is indispensable to suppress coding mistakes and to improve processing speed in order to execute predetermined processing at predetermined intervals (for example, 10 ms) (to ensure real-time performance). Therefore, it is necessary to devise a control program for calling a subroutine (details will be described later).
<Command data of main control unit>

次に、主制御部300の命令データについて説明する。図89は、主制御部300の命令データの構成の一例を示した図である。また、図90(a)は、主制御部300の命令データの上位ビットと下位ビットを示した図であり、同図(b)は、命令データテーブルの一例を示した図である。   Next, the command data of the main control unit 300 will be described. FIG. 89 is a diagram showing an example of the configuration of instruction data of the main control unit 300. FIG. 90 (a) is a diagram showing the upper and lower bits of the instruction data of the main control unit 300, and FIG. 90 (b) is a diagram showing an example of the instruction data table.

主制御部300の命令データは、例えば、命令データが1バイト(8ビット)のデータによって構成される場合には、最大で256パターン定義することが可能である。なお、定義された命令データはROM306に記憶されているものではなく、CPU304にハード的に組み込まれているものである。また、1バイトの命令データについて、各々を上位4ビットと下位4ビットによって分類分けすると、上記パターンと命令データの関係性は、図90(b)に示される通りとなる。例えば、「INC BC(BCレジスタを1つ加算する命令)」に使用されるINC(命令データ)は、上位ビット0H(0000B)、下位ビット3H(0011B)に割り当てられ、「DEC B(Bレジスタを1つ減算する命令)」に使用されるDEC(命令データ)は、上位ビット0H(0000B)、下位ビット5H(0101B)に割り当てられている。   For example, when the instruction data is composed of 1-byte (8-bit) data, the instruction data of the main control unit 300 can be defined up to 256 patterns. Note that the defined instruction data is not stored in the ROM 306 but is incorporated in the CPU 304 in hardware. Further, when each 1-byte instruction data is classified by upper 4 bits and lower 4 bits, the relationship between the pattern and the instruction data is as shown in FIG. 90 (b). For example, INC (instruction data) used for “INC BC (instruction for adding one BC register)” is assigned to upper bit 0H (0000B) and lower bit 3H (0011B), and “DEC B (B register DEC (instruction data) used for “an instruction for subtracting 1 from” is assigned to the upper bit 0H (0000B) and the lower bit 5H (0101B).

なお、1バイト長で定義可能な256パターンの命令データを上回るパターン数の命令データを割り当てる方法として、例えば、上記1バイトで定義される256パターンのうち1パターンに対してさらに新たな1バイトで定義される256パターンを対応付けることで最大511パターン(255パターン(1バイトの命令データ)+256パターン(2バイトの命令データ))の命令データを定義する方法があるが、拡張した命令データは、2バイトのデータによって構成されるため、この命令を使用すると、上述の1バイトの命令データを使用するよりもROM制御領域に対応するROM306の記憶領域を圧迫してしまう。   In addition, as a method of allocating instruction data having a pattern number exceeding 256 patterns of instruction data that can be defined by 1 byte length, for example, a new one byte is added to one pattern among the 256 patterns defined by 1 byte. There is a method of defining instruction data of up to 511 patterns (255 patterns (1 byte instruction data) +256 patterns (2 bytes instruction data)) by associating 256 patterns to be defined. Since this instruction is used because it is composed of byte data, the storage area of the ROM 306 corresponding to the ROM control area is compressed rather than using the above-described one-byte instruction data.

そこで、本実施形態では、図90(b)の太線で囲った領域、すなわち、上位ビット1H(0001B)と下位ビット8H(1000B)〜FH(1111B)の組合せと、上位ビット3H(0011B)と下位ビット8H(1000B)〜FH(1111B)の組合せからなる領域を、後述するEXESUB命令を割り当てるための特別な領域としている。このように、従来、命令データが割り当てられていない、または、割り当てられていた命令データが削除された空き領域を特別な領域として利用することで、限られたハードウェア資源(例えば、1バイトで定義可能なパターン(256パターン))を有効利用することができ、命令データによるROM制御領域に対応するROM306の記憶領域の圧迫を抑制することができる。   Therefore, in the present embodiment, the region surrounded by the thick line in FIG. 90B, that is, the combination of the upper bit 1H (0001B) and the lower bits 8H (1000B) to FH (1111B), and the upper bit 3H (0011B) An area formed by a combination of the lower bits 8H (1000B) to FH (1111B) is set as a special area for assigning an EXESUB instruction to be described later. As described above, a limited hardware resource (for example, 1 byte) can be used by using, as a special area, an empty area from which instruction data has not been allocated or the allocated instruction data has been deleted. A definable pattern (256 patterns)) can be used effectively, and compression of the storage area of the ROM 306 corresponding to the ROM control area by instruction data can be suppressed.

また、命令データは、アセンブル後の機械語のチェックを簡便にするためにも役割ごとにグループ化(一の上位ビットに対して連続する複数の下位ビットの組合せからなる領域、または、一の下位ビットに対して連続する複数の上位ビットの組合せからなる領域に、同系統の役割を持つ命令データを割り当てる)して命令データテーブルに割り当てている(例えば、上位ビット8H(1000B)と下位ビット0H(0000B)〜7H(0111B)の組合せで定義される部分におけるADD命令)。近年では、チップの開発負担を軽減するため、従来の命令データテーブルに割り当てている命令データの削減、または削減した命令データを割り当てていた部分への新たな命令データを追加するなどしてチップの開発を行う。このため、アセンブル後の機械語のチェックを簡便にしつつも、データ圧縮のために命令データを新たに追加する際には、追加する同系統の命令データをグループにして割り当てていく必要があり、本実施形態では、EXESUB命令をグループにして特別な領域に割り当てることで解決を図っている。さらに、小分けされた特別な領域に対して新たな命令データを効率良く割り当てるためには、追加する命令データのグループを小分けのグループにして割り当てていく必要があり、本実施形態では、さらに、EXESUB命令を小分けのグループにして小分けされた特別な領域に割り当てることで解決を図っている。
<CALL命令>
Also, the instruction data is grouped by role (an area consisting of a combination of a plurality of lower bits consecutive to one upper bit or one lower bit for easy checking of the machine language after assembly. An instruction data having the same system role is assigned to an area composed of a combination of a plurality of consecutive upper bits with respect to a bit and assigned to an instruction data table (for example, upper bit 8H (1000B) and lower bit 0H (ADD instruction in a part defined by a combination of (0000B) to 7H (0111B)). In recent years, in order to reduce the development burden of the chip, the instruction data allocated to the conventional instruction data table has been reduced, or new instruction data has been added to the part to which the reduced instruction data has been allocated. Develop. For this reason, it is necessary to assign the instruction data of the same system to be added as a group when newly adding instruction data for data compression while simplifying checking the machine language after assembly. In the present embodiment, the problem is solved by allocating the EXESUB instruction as a group to a special area. Furthermore, in order to efficiently allocate new instruction data to the subdivided special area, it is necessary to allocate the instruction data group to be added as a subdivided group. In this embodiment, the EXESUB is further allocated. The problem is solved by assigning instructions to sub-groups and assigning them to special sub-regions.
<CALL instruction>

次に、上述の制御プログラムの一つであるCALL命令について説明する。図91は、CALL命令によるアドレスの移動の一例を概念的に示したものであり、図92は、CALL命令の命令データと補足データの一例を示したものである。   Next, a CALL instruction which is one of the above control programs will be described. FIG. 91 conceptually shows an example of address movement by the CALL instruction, and FIG. 92 shows an example of instruction data and supplementary data of the CALL instruction.

例えば、実行中の制御プログラムのアドレスが0700Hで、移動先のサブルーチンの先頭アドレスが03FFHの場合には、図91の符号Xで示すように、両者の相対アドレス(移動元のアドレスと移動先のアドレスの差)は、0301H(=0700H−03FFH)であり、この相対アドレスは2バイトのデータで表現可能である。ここで、この制御プログラムをCALL命令によって表現すると、図92(a)に示すように、CALL命令を示す1バイトの命令データと移動先のアドレスを示す2バイトの補足データで合計3バイトの制御プログラムデータが必要となる。   For example, if the address of the control program being executed is 0700H and the start address of the transfer destination subroutine is 03FFH, the relative addresses of the two (the transfer source address and the transfer destination address) are indicated by the symbol X in FIG. The address difference is 0301H (= 0700H-03FFH), and this relative address can be expressed by 2-byte data. Here, when this control program is expressed by a CALL instruction, as shown in FIG. 92 (a), a control of 3 bytes in total with 1 byte of instruction data indicating the CALL instruction and 2 bytes of supplementary data indicating the destination address. Program data is required.

また、実行中の制御プログラムのアドレスが0700Hで、移動先のサブルーチンの先頭アドレスが075FHの場合には、図91の符号Yで示すように、両者の相対アドレスは、005FH(=075FH−03FFH)であり、この相対アドレスは1バイトのデータで表現可能である。この場合であっても、この制御プログラムをCALL命令によって表現すると、図92(b)に示すように、CALL命令を示す1バイトの命令データと移動先のアドレスを示す2バイトの補足データで合計3バイトの制御プログラムデータが必要である。   When the address of the control program being executed is 0700H and the start address of the destination subroutine is 075FH, the relative address of both is 005FH (= 075FH-03FFH), as indicated by the symbol Y in FIG. The relative address can be expressed by 1-byte data. Even in this case, if this control program is expressed by a CALL instruction, as shown in FIG. 92 (b), the total of 1-byte instruction data indicating the CALL instruction and 2-byte supplementary data indicating the destination address is totaled. 3-byte control program data is required.

すなわち、CALL命令を実行するための制御プログラムは、移動先のアドレス(2バイトで定義可能な記憶領域(0000H〜FFFFH)内の任意のアドレス)に関わらず、3バイトの制御プログラムデータが必要となる。   That is, the control program for executing the CALL instruction requires 3 bytes of control program data regardless of the destination address (any address in the storage area (0000H to FFFFH) that can be defined by 2 bytes). Become.

なお、CALL命令を実行する際にCPU304は、具体的に、PCレジスタ(プログラムカウンタ)に記憶されているデータ(2バイト)をスタックエリアに記憶させる処理を実行した後に、CALL命令を実行するための補足データ(移動先のサブルーチンの先頭アドレスを示すデータ(2バイト))をPCレジスタ(プログラムカウンタ)に記憶させる処理(サブルーチンの先頭アドレスに移動)を実行することで、サブルーチンを呼び出すことが可能となる。
<EXESUB命令>
When executing the CALL instruction, the CPU 304 specifically executes the CALL instruction after executing the process of storing the data (2 bytes) stored in the PC register (program counter) in the stack area. Subroutine can be called by executing a process (moving to the start address of the subroutine) that stores the supplementary data (data indicating the start address of the transfer destination subroutine (2 bytes)) in the PC register (program counter) It becomes.
<EXESUB instruction>

次に、上述の制御プログラムの一つであるEXESUB命令について説明する。図93(a)は、EXESUB命令の構成の一例を示した図であり、同図(b)は、図90(b)の空き領域に対してEXESUB命令を割り当てた命令データテーブルを示した図である。   Next, the EXESUB instruction, which is one of the above control programs, will be described. FIG. 93A is a diagram showing an example of the configuration of the EXESUB instruction, and FIG. 93B is a diagram showing an instruction data table in which the EXESUB instruction is assigned to the free area of FIG. 90B. It is.

EXESUB命令は、上述のCALL命令同様にサブルーチンを呼び出すことが可能となる命令という点では同じであるが、命令データ/補足データの構造および制御プログラムデータに必要な記憶容量が異なる(詳細は後述する)。
<EXESUB命令/命令データ>
The EXESUB instruction is the same as the above CALL instruction in that it can call a subroutine, but the structure of instruction data / supplementary data and the storage capacity required for control program data are different (details will be described later) ).
<EXESUB instruction / instruction data>

EXESUB命令の命令データは、本実施形態では、最上位ビット7(MSB)から最下位ビット0(LSB)の順番で、ビット7の0(固定値)、ビット6の0(固定値)、ビット5のα(可変値)、ビット4の1(固定値)、ビット3の1(固定値)、ビット2のβ(可変値)、ビット1のγ(可変値)、ビット0のδ(可変値)の合計8ビット(1バイト)で構成されている。すなわち、EXESUB命令は上述の可変値を変えることによって定義されるパターン(2の4乗=16パターン)の命令データとなる。なお、ビット5のα、ビット2のβ、ビット1のγおよびビット0のδの合計4ビットのデータであるmは、0H〜FHの数値範囲を表現可能であり、呼び出すサブルーチンの先頭アドレスを識別可能な識別情報(バイナリ形式)の一部である。   In the present embodiment, the instruction data of the EXESUB instruction includes 0 (fixed value) of bit 7, 0 (fixed value) of bit 6, bit, in order from the most significant bit 7 (MSB) to the least significant bit 0 (LSB). 5 for α (variable value), 1 for bit 4 (fixed value), 1 for bit 3 (fixed value), β for bit 2 (variable value), γ for bit 1 (variable value), δ for bit 0 (variable) Value) is a total of 8 bits (1 byte). That is, the EXESUB instruction becomes instruction data of a pattern (2 4 = 16 patterns) defined by changing the above-described variable value. Note that m, which is a total of 4 bits of data of α of bit 5, β of bit 2, γ of bit 1, and δ of bit 0, can represent a numerical range of 0H to FH, and represents the start address of the subroutine to be called It is a part of identification information (binary format) that can be identified.

また、EXESUB命令の命令データは、上述の通り、命令データテーブルのうちの同図(b)に示す太線で囲った領域、すなわち、上位ビット1H(0001B)と下位ビット8H(1000B)〜FH(1111B)の組合せと、上位ビット3H(0011B)と下位ビット8H(0111B)〜FH(1111B)の組合せからなる空き領域(従来、命令データが割り当てられていない、または、割り当てられていた命令データが削除された領域)に割り当てられる。   Further, as described above, the instruction data of the EXESUB instruction is an area surrounded by a thick line in the instruction data table shown in FIG. 5B, that is, the upper bit 1H (0001B) and the lower bits 8H (1000B) to FH ( 1111B) and a free space consisting of a combination of the upper bit 3H (0011B) and the lower bits 8H (0111B) to FH (1111B) (in the past, no instruction data has been assigned or assigned instruction data Allocated to the deleted area).

なお、上述の通り、EXESUB命令の命令データが、可変値のビットと可変値のビットの間に、固定値のビットが入るように構成されていることにより、EXESUB命令の命令データをグループ化しつつ、上述の空き領域に割り当てることが可能になる。よって、EXESUB命令データの機械語のチェックを簡便となり、コーディングミスを抑制することができる。   As described above, the instruction data of the EXESUB instruction is configured such that a fixed value bit is inserted between the variable value bit and the variable value bit, thereby grouping the instruction data of the EXESUB instruction. , It becomes possible to allocate to the above-mentioned free space. Therefore, the machine language of the EXESUB instruction data can be easily checked and coding errors can be suppressed.

さらに、上述の通り、EXESUB命令の命令データが、1または複数の固定値のビット(例えば、上記のビット4、ビット3)を挟んで上位にある可変値のビット数(例えば、1(上記のビット5))と比較して当該固定値のビットを挟んで下位にある可変値のビット数(例えば、3(上記のビット2、ビット1、ビット0))が大きくなる(記憶容量が大きくなる)ように構成されていることにより、EXESUB命令の命令データをグループ化しつつも、きめ細かく上述の空き領域に割り当てることが可能になる。よって、限られたハードウェア資源(例えば、1バイトで定義可能なパターン(256パターン))を有効利用することができ、命令データの圧縮によるROM制御領域に対応するROM306の記憶領域に記憶されている従来の制御プログラムデータの圧縮が可能となる。なお、1または複数の固定値のビットを挟んで下位にある可変値のビット数と比較して当該固定値を挟んで上位にある可変値のビット数が大きくなる(記憶容量が大きくなる)ように構成した場合であっても、上述の効果を奏する。   Furthermore, as described above, the instruction data of the EXESUB instruction has a variable value bit number (for example, 1 (above 1) described above) with one or more fixed value bits (for example, the above bit 4 and bit 3) interposed therebetween. Compared with bit 5)), the number of lower-order variable values (for example, 3 (bit 2, bit 1, bit 0 above)) across the fixed value bit is increased (the storage capacity is increased). ), The instruction data of the EXESUB instruction can be grouped and finely allocated to the above-described free area. Therefore, limited hardware resources (for example, patterns that can be defined by 1 byte (256 patterns)) can be used effectively and stored in the storage area of the ROM 306 corresponding to the ROM control area by compressing instruction data. The conventional control program data can be compressed. It should be noted that the number of bits of the upper variable value across the fixed value is larger than the number of bits of the lower variable value across the one or more fixed value bits (the storage capacity is increased). Even if it is comprised, it has the above-mentioned effect.

なお、上述の可変値α、β、γおよびδとEXESUB命令の命令データのビット7〜0の対応関係は上述の対応関係に限らず、例えば、ビット4に可変値αを対応させ、同様に、ビット2に可変値β、ビット1に可変地γ、ビット0に可変値δを対応させてもよく、上述した対応関係であればよい。   Note that the correspondence relationship between the above-described variable values α, β, γ, and δ and the bit 7 to 0 of the instruction data of the EXESUB instruction is not limited to the above-described correspondence relationship. , Bit 2 may be associated with variable value β, bit 1 may be associated with variable ground γ, and bit 0 may be associated with variable value δ.

さらに、命令データを構成する可変値α、β、γおよびδの順序は、任意の順序としてもよいが、上述の順序(上位ビットから順にα、β、γ、δ)、すなわち、後述するアドレスmnのmを上位ビットからα、β、γ、δの順に並べることで定義可能になる順序とすることで、EXESUB命令データの機械語のチェックを簡便となり、コーディングミスを抑制することができる。
<EXESUB命令/補足データ>
Furthermore, the order of the variable values α, β, γ, and δ constituting the instruction data may be any order, but the above-described order (α, β, γ, δ in order from the upper bit), that is, an address described later. By setting m in mn to an order that can be defined by arranging α, β, γ, and δ in order from the upper bits, it is possible to easily check the machine language of the EXESUB instruction data and suppress coding errors.
<EXESUB instruction / supplementary data>

EXESUB命令の補足データは、本実施形態では、00H〜FFHの数値範囲を示す8ビットのデータであるnで構成されている。   In the present embodiment, supplementary data for the EXESUB instruction is composed of n that is 8-bit data indicating a numerical range of 00H to FFH.

よって、EXESUB命令は、命令データに含まれる4ビットのデータであるmと、8ビットの補足データであるnを、この順番で並べて(mを上位、nを下位として)構成される合計12ビットのアドレスmnによって定義可能なアドレス領域(0000H〜0FFFH)に先頭アドレスを持つサブルーチンを呼び出すことができる命令となる。すなわち、nは呼び出すサブルーチンの先頭アドレスを識別可能な識別情報(バイナリ形式)から、当該識別情報の一部(m)を除いた情報の少なくとも一部である。 Therefore, the EXESUB instruction has a total of 12 bits configured by arranging m, which is 4-bit data included in the instruction data, and n, which is 8-bit supplemental data, in this order (m is a higher order and n is a lower order). This is an instruction that can call a subroutine having a head address in an address area (0000H to 0FFFH) definable by the address mn. That is, n is at least a part of information obtained by removing a part (m) of the identification information from the identification information (binary format) that can identify the head address of the subroutine to be called.

<EXESUB命令/サブルーチンの呼び出し>   <EXESUB instruction / subroutine call>

図94は、EXESUB命令によるアドレスの移動の一例を概念的に示した図である。本実施形態では、m(4ビットのデータ)は、同図(a)に示すように、ROM領域のアドレス0000H〜2FFFHのうち、上位1バイトの下位4ビット(0H〜FH)を示し、n(8ビットのデータ)は、同図(b)に示すように、上位アドレスmによって表現される100H単位の記憶領域(0m00H〜0mFFH:m=0H〜FH)を1ブロックとしたときに、当該1ブロック内のアドレス(00H〜FFH)を示す値である。   FIG. 94 is a diagram conceptually illustrating an example of address movement by the EXESUB instruction. In this embodiment, m (4-bit data) indicates the lower 4 bits (0H to FH) of the upper 1 byte among the addresses 0000H to 2FFFH in the ROM area, as shown in FIG. (8-bit data), as shown in FIG. 4B, when the storage area of 100H units (0m00H to 0mFFH: m = 0H to FH) expressed by the upper address m is one block, This is a value indicating an address (00H to FFH) in one block.

なお、移動先のアドレスを設定可能なアドレス領域を、nまたはmのいずれのデータを上位アドレスのデータとして定義しても、後述する制御プログラムデータの削減の効果は得られるが、上述の通り、命令データに含まれるmを上位アドレスのデータとして定義することで、図94(a)に示すように、アドレス領域に対してEXESUB命令の命令データをグループ化して対応付けることができ、コーディングミスを抑制することができる。   Note that even if the address area where the destination address can be set is defined as either n or m data as upper address data, the effect of reducing the control program data described later can be obtained. By defining m included in the instruction data as upper address data, the instruction data of the EXESUB instruction can be grouped and associated with the address area, as shown in FIG. can do.

また、EXESUB命令の命令データは、呼び出すサブルーチンの先頭アドレスの一部を構成するデータであるmを含んで構成されていることから、移動先のアドレスデータを間違ってしまった場合であっても、間違ってしまったデータが命令データに含まれていれば、制御プログラムの実行が停止されるため、コーディングミスを抑制することができる。   In addition, since the instruction data of the EXESUB instruction is configured to include m which is a part of the head address of the subroutine to be called, even if the destination address data is wrong, If erroneous data is included in the instruction data, execution of the control program is stopped, so that coding errors can be suppressed.

図95は、EXESUB命令によるサブルーチンの先頭アドレスの呼び出しの一例を示したものであり、図96は、EXESUB命令の命令データと補足データの一例を示した図である。   FIG. 95 shows an example of calling the top address of a subroutine by an EXESUB instruction, and FIG. 96 shows an example of instruction data and supplementary data of an EXESUB instruction.

例えば、実行中の制御プログラムのアドレスが0700Hで、移動先のサブルーチンの先頭アドレスが03FFHの場合を挙げる。この制御プログラムをCALL命令で表現すると、上述の通り、図95の符号X´で示す両者の相対アドレス(移動元のアドレスと移動先のアドレスの差)は、0301H(=0700H−03FFH)であり、この相対アドレスは2バイトのデータで表現可能であり、1バイトの命令データと2バイトの補足データで合計3バイトの制御プログラムデータが必要である。   For example, suppose that the address of the control program being executed is 0700H and the start address of the transfer destination subroutine is 03FFH. When this control program is expressed by a CALL instruction, as described above, the relative address (the difference between the source address and the destination address) indicated by the symbol X ′ in FIG. 95 is 0301H (= 0700H-03FFH). This relative address can be expressed by 2 bytes of data, and requires 1 byte of instruction data and 2 bytes of supplementary data for a total of 3 bytes of control program data.

一方、この制御プログラムをEXESUB命令で表現すると、移動先のアドレスへの移動は概念的にX´´で示すものとなり、この相対アドレスは、1バイトのデータで表現可能な00FFH(=03FFH−0300H)となる。すなわち、EXESUB命令は、図96(a)に示すように、00011011Bで表される1バイトの命令データと、11111111Bで表される1バイトの補足データで合計2バイトの制御プログラムデータが必要となる。   On the other hand, when this control program is expressed by an EXESUB instruction, the movement to the destination address is conceptually indicated by X ″, and this relative address is 00FFH (= 03FFH-0300H) that can be expressed by 1-byte data. ) That is, as shown in FIG. 96A, the EXESUB instruction requires 1 byte of instruction data represented by 00001101B and 1 byte of supplementary data represented by 11111111B, which requires 2 bytes of control program data. .

また、実行中の制御プログラムのアドレスが0700Hで、呼び出し先のサブルーチンの先頭アドレスが075FHの場合を挙げる。この場合は、この制御プログラムがCALL命令またはEXESUB命令のいずれで表現する場合であっても、上述の通り、図95の符号Y´で示すように、両者の相対アドレスは、1バイトで表現可能な005FH(=0C5FH−0C00H)であり、この相対アドレスは1バイトのデータで表現可能であるが、この制御プログラムをCALL命令で表現すると、1バイトの命令データと2バイトの補足データで合計3バイトの制御プログラムデータが必要となる。   Further, a case where the address of the control program being executed is 0700H and the start address of the subroutine to be called is 075FH will be described. In this case, regardless of whether this control program is expressed by a CALL instruction or an EXESUB instruction, as described above, the relative address of both can be expressed by 1 byte as shown by the reference symbol Y ′ in FIG. 005FH (= 0C5FH-0C00H), and this relative address can be expressed by 1-byte data. However, when this control program is expressed by a CALL instruction, a total of 3 bytes of 1-byte instruction data and 2 bytes of supplementary data are provided. Byte control program data is required.

一方、この制御プログラムをEXESUB命令で表現すると、図96(b)に示すように、00011111Bで表される1バイトの命令データと、01011111Bで表される1バイトの補足データの合計2バイトの制御プログラムデータが必要となり、上述のCALL命令よりも、1命令当りのデータを1バイト削減することができる。   On the other hand, when this control program is expressed by an EXESUB instruction, as shown in FIG. 96 (b), a total of 2 bytes of control including 1-byte instruction data represented by 00001111B and 1-byte supplementary data represented by 01011111B. Program data is required, and the data per instruction can be reduced by 1 byte compared to the CALL instruction described above.

よって、EXESUB命令を実行するための制御プログラムは、移動先のアドレス(12ビットで定義可能な記憶領域(0000H〜0FFFH)内の任意のアドレス)に関わらず、2バイトの制御プログラムデータが必要となり、上述のCALL命令よりも、1命令当りの制御プログラムデータを1バイト削減することができる。   Therefore, the control program for executing the EXESUB instruction requires control program data of 2 bytes regardless of the destination address (any address in the storage area (0000H to 0FFFH) that can be defined by 12 bits). As compared with the above CALL instruction, the control program data per instruction can be reduced by 1 byte.

すなわち、サブルーチンを呼び出す制御プログラムに上述のEXESUB命令を用いることで、従来のサブルーチンを呼び出す制御プログラム(例えば、CALL命令)を圧縮することができ、ROM制御領域に対応するROM306の記憶領域に記憶されている従来の制御プログラムデータを圧縮することが可能となる。   That is, by using the above EXESUB instruction for a control program for calling a subroutine, a control program (for example, a CALL instruction) for calling a conventional subroutine can be compressed and stored in the storage area of the ROM 306 corresponding to the ROM control area. The conventional control program data can be compressed.

なお、EXESUB命令を実行する際にCPU304は、具体的に、PCレジスタ(プログラムカウンタ)に記憶されているデータ(2バイト)をスタックエリアに記憶させる処理を実行した後に、EXESUB命令を実行するための補足データ(移動先のサブルーチンの先頭アドレスを示すデータ(2バイト))をPCレジスタ(プログラムカウンタ)に記憶させる処理(サブルーチンの先頭アドレスに移動)を実行することで、サブルーチンを呼び出すことが可能となる。   Note that when executing the EXESUB instruction, the CPU 304 specifically executes the EXEBUS instruction after executing the process of storing the data (2 bytes) stored in the PC register (program counter) in the stack area. Subroutine can be called by executing a process (moving to the start address of the subroutine) that stores the supplementary data (data indicating the start address of the transfer destination subroutine (2 bytes)) in the PC register (program counter) It becomes.

また、サブルーチンを呼び出す制御プログラムに上述のEXESUB命令を用いることで、上述制御プログラムの圧縮に起因して従来(例えば、CALL命令)よりもサブルーチンを呼び出す制御プログラムの処理速度を向上させる(ステート数を少なくする)ことができる。   Further, by using the above EXESUB instruction for the control program for calling the subroutine, the processing speed of the control program for calling the subroutine is improved (the number of states is reduced) than the conventional (for example, CALL instruction) due to the compression of the control program. Less).

さらに、上述のように、ROM領域は、上述のEXESUB命令によって呼び出すことができる領域(本実施形態では、0000H〜0FFFH)に対応するROM306の記憶領域に、全ての制御プログラムデータが記憶されるようにROM制御領域(本実施形態では、0000H〜0BB1H)を設け、少なくとも、上述のEXESUB命令によって呼び出すことができる領域(本実施形態では、0000H〜0FFFH)から、制御プログラムデータが記憶されているROM制御領域(本実施形態では、0000H〜0BB1H)を除いた領域(本実施形態では、0BB1H〜0FFFH)を、非使用領域となるように構成されるとともに、非使用領域の後にROMデータ領域が続くように構成されている。   Further, as described above, the ROM area stores all control program data in the storage area of the ROM 306 corresponding to the area (0000H to 0FFFH in the present embodiment) that can be called by the above-described EXEBUS instruction. ROM control area (0000H to 0BB1H in this embodiment) is provided, and at least a ROM in which control program data is stored from an area (0000H to 0FFFH in this embodiment) that can be called by the above-described EXEBUS instruction The area (0BB1H to 0FFFH in this embodiment) excluding the control area (0000H to 0BB1H in this embodiment) is configured to be a non-use area, and the ROM data area follows the non-use area. It is configured as follows.

このようにROM領域を構成した遊技台において、サブルーチンを呼び出す制御プログラムに上述のEXESUB命令を用いる(ROM制御領域に対応するROM306の記憶領域にEXESUB命令の制御プログラムデータを記憶する)ことで、CPU304が制御プログラムデータおよび非使用データを除くデータを命令データとして直接読み込むことがないため、補足データのコーディングミスによるCPU304の誤作動を防止できる場合がある。
<制御プログラムの一例>
In the gaming machine having the ROM area as described above, the CPU 304 is used by using the EXESUB instruction described above as a control program for calling a subroutine (the control program data of the EXESUB instruction is stored in the storage area of the ROM 306 corresponding to the ROM control area). However, since data other than control program data and non-use data is not directly read as instruction data, malfunctioning of the CPU 304 due to a coding error in supplementary data may be prevented.
<Example of control program>

図97は、上述の主制御部タイマ割込処理の制御プログラムの一例を示したプログラムリストである。なお、「**」はEXESUB命令の補足データを示す。   FIG. 97 is a program list showing an example of a control program for the above-described main control unit timer interrupt process. “**” indicates supplementary data for the EXESUB instruction.

CPU304は、タイマ割込み処理を開始すると、まずWDTをリスタートする処理を実行し、所定の処理(詳細は省略)を実行し、その後、EXESUB命令(1)〜(18)を用いて、それぞれ、以下のサブルーチンを読み出す処理を実行する。入力ポート状態更新処理、基本乱数初期値更新処理、基本乱数更新処理、演出乱数更新処理、タイマ更新処理、入賞口カウンタ更新処理、入賞受付処理、払出要求数送信処理、普図状態更新処理、普図関連抽選処理特図先読み制御処理、特図2状態更新処理、特図1状態更新処理、特図2関連抽選処理、特図1関連抽選処理、コマンド設定送信処理、外部出力信号設定処理、デバイス監視処理、を実行し、その他の処理(詳細は省略)を実行する。なお、詳細は省略するが、上述のEXESUB命令(1)〜(18)によって呼び出されるサブルーチンの先頭アドレスはROM制御領域(本実施形態では、0000H〜0BB0H)に含まれている。   When starting the timer interrupt process, the CPU 304 first executes a process for restarting the WDT, executes a predetermined process (details omitted), and then uses the EXESUB instructions (1) to (18), respectively. The following subroutine is read out. Input port status update processing, basic random number initial value update processing, basic random number update processing, production random number update processing, timer update processing, winning a prize counter update processing, winning acceptance processing, payout request number transmission processing, general drawing state update processing, Figure-related lottery process special figure prefetch control process, special figure 2 state update process, special figure 1 state update process, special figure 2 related lottery process, special figure 1 related lottery process, command setting transmission process, external output signal setting process, device Monitoring processing is executed, and other processing (details are omitted) is executed. Although not described in detail, the start address of the subroutine called by the above-described EXESUB instructions (1) to (18) is included in the ROM control area (0000H to 0BB0H in this embodiment).

このように、タイマ割込み処理におけるサブルーチンを呼び出す制御プログラムに上述のEXESUB命令を用いる(ROM制御領域のうちタイマ割り込み処理の領域に対応するROM306の記憶領域にEXESUB命令の制御プログラムデータを記憶する)ことで、タイマ割込み処理を安定化させることができる。   In this way, the above EXEBUS instruction is used for the control program that calls the subroutine in the timer interrupt processing (the control program data of the EXESUB instruction is stored in the storage area of the ROM 306 corresponding to the timer interrupt processing area in the ROM control area). Thus, timer interrupt processing can be stabilized.

ところで、遊技台の開発では、一般的に従来の制御プログラムの一部を変更(削除や追加など)することで新たな遊技台を開発している。特に、遊技制御の安定化を図るためにできるだけ制御プログラムの変更は避けることが望まれる。   By the way, in the development of a gaming machine, a new gaming machine is generally developed by changing (deleting or adding) a part of a conventional control program. In particular, it is desirable to avoid changing the control program as much as possible in order to stabilize game control.

よって、ROM領域(例えば、タイマ割込み処理の領域)におけるサブルーチンを呼び出す制御プログラムすべてに、上述のEXESUB命令を用いる必要はなく、必要(例えば、上述の制御プログラムデータの圧縮の要求の有無)に応じて適宜用いればよい。さらに、上述のEXESUB命令は、従来の1バイトの命令データと2バイトの補足データで構成される3バイト命令の制御プログラムデータ(例えば、CALL命令)を、1バイトの命令データと1バイトの補足データで構成される2バイト命令の制御プログラムデータに圧縮した制御プログラムであるが、命令データと補足データで構成される制御プログラムを圧縮する制御プログラムであればよい。すなわち、EXESUB命令は、呼び出すサブルーチンの先頭アドレスを識別可能な識別情報(バイナリ形式)の一部を含んで構成される命令データと、当該識別情報から当該命令データに含まれた識別情報を除いた情報の少なくとも一部で構成される補足データとで構成される制御プログラムであればよく、さらに言えば、上述の命令データおよび補足データそれぞれが、CPU304が一回の処理で読み込むデータ長(例えば、8ビット)の整数倍であればよい。
<ROM制御領域の変形例>
Therefore, it is not necessary to use the above EXEBUS instruction for all the control programs that call subroutines in the ROM area (for example, the timer interrupt processing area), depending on necessity (for example, whether or not the above-described control program data is requested to be compressed). May be used as appropriate. Furthermore, the above-described EXESUB instruction is a conventional 3-byte instruction control program data (for example, CALL instruction) composed of 1-byte instruction data and 2-byte supplement data, and 1-byte instruction data and 1-byte supplement. Although the control program is compressed into control program data of 2-byte instructions composed of data, any control program that compresses the control program composed of instruction data and supplemental data may be used. In other words, the EXESUB instruction includes instruction data including a part of identification information (binary format) that can identify the start address of a subroutine to be called, and the identification information included in the instruction data is excluded from the identification information. The control program is composed of supplemental data composed of at least a part of information, and more specifically, each of the above-described instruction data and supplemental data has a data length (for example, read by the CPU 304 in one process). It may be an integer multiple of 8 bits).
<Modification of ROM control area>

図98は、ROM領域が、上述のEXESUB命令(EXESUBmn)によって呼び出すことができる領域(本実施形態では、0000H〜0FFFH)よりも、制御プログラムデータが記憶されているROM制御領域(本実施形態では、0000H〜11B8H)が広くなるように構成されている場合を示した図である。また、図99(a)および(b)は、EXESUB命令(EXESUBmn)によって呼び出すことができるサブルーチンの先頭アドレスの領域を拡張した場合の一例を示した図である。   FIG. 98 shows a ROM control area (in this embodiment) in which the control program data is stored rather than an area (0000H to 0FFFH in this embodiment) in which the ROM area can be called by the above-described EXEBUS instruction (EXESUBmn). , 0000H to 11B8H) is a diagram showing a case where it is configured to be wide. FIGS. 99 (a) and 99 (b) are diagrams showing an example where the area of the top address of a subroutine that can be called by the EXESUB instruction (EXESUBmn) is expanded.

例えば、図98に示すように、ROM制御領域(本実施形態では、0000H〜11B8H)が、EXESUB命令(EXESUBmn)で呼び出すことができるサブルーチンの先頭アドレスの領域(本実施形態では、0000H〜0FFFH)より広い場合、ROM制御領域は、EXESUB対象領域(本実施形態では、0000H〜0FFFH)と、EXESUB非対象領域(例えば、1000H〜11B8H)で構成されることとなる。   For example, as shown in FIG. 98, the ROM control area (0000H to 11B8H in this embodiment) is an area of the top address of a subroutine (0000H to 0FFFH in this embodiment) that can be called by the EXESUB instruction (EXESUBmn). When the area is wider, the ROM control area is composed of an EXESUB target area (0000H to 0FFFH in the present embodiment) and an EXESUB non-target area (for example, 1000H to 11B8H).

この場合、EXESUB非対象領域に対応するアドレスを先頭アドレスに持つサブルーチンを呼び出す命令に上述のCALL命令を用いて補ったとしても、上述の通り、遊技の興趣を高めることを可能にしつつ、安定した遊技制御を実現することは可能である。   In this case, even if the above-mentioned CALL instruction is used to supplement the instruction for calling the subroutine having the address corresponding to the EXESUB non-target area with the above-mentioned CALL instruction, as described above, it is possible to improve the fun of the game while being stable. It is possible to realize game control.

しかし、図99に示すように、EXESUB命令(EXESUBmn)によって呼び出すことができるサブルーチンの先頭アドレスの領域を拡張することで、上述の効果をより高めることが可能になる。   However, as shown in FIG. 99, the above-described effect can be further enhanced by expanding the area of the top address of the subroutine that can be called by the EXESUB instruction (EXESUBmn).

具体的な手段としては、図99(a)および(b)に示すように、後述する可変値σを用いて、EXESUB命令(EXESUBmn)に要する記憶容量を維持しつつ、EXESUB命令(EXESUBmn)の命令データを拡張するものである。なお、以下は、同図に新たに追加した可変値σについて説明することとする。   As a specific means, as shown in FIGS. 99 (a) and 99 (b), a variable value σ described later is used to maintain the storage capacity required for the EXESUB instruction (EXESUBmn), while the EXESUB instruction (EXESUBmn). The command data is expanded. In the following, the variable value σ newly added to the figure will be described.

可変値σは、EXESUB命令(後述のEXESUBm´n)を拡張するために用いられ、図99(a)に示すように、EXESUB命令(後述のEXESUBm´n)の命令データ(本実施形態では、8ビット)のビット6を構成する値であり、呼び出すサブルーチンの先頭アドレスを示すアドレスm´nのうちm´の値に応じて変化するものである。   The variable value σ is used to extend the EXESUB instruction (EXESUBm′n described later), and as shown in FIG. 99A, the instruction data of the EXESUB instruction (EXESUBm′n described later) (in this embodiment, 8 bits), which changes according to the value of m ′ of the address m′n indicating the start address of the subroutine to be called.

また、命令データテーブルには、図99(b)に示すように、可変値σによって拡張されたEXESUB命令(EXESUBm´n)が、同図(b)に示す太線で囲った領域、すなわち、上位ビット5H(0101B)と下位ビット8H(1000B)および9H(1001B)の組合せからなる空き領域に割り当てられている。   In the instruction data table, as shown in FIG. 99 (b), the EXESUB instruction (EXESUBm'n) expanded by the variable value σ is an area surrounded by a thick line shown in FIG. It is allocated to an empty area consisting of a combination of bit 5H (0101B) and lower bits 8H (1000B) and 9H (1001B).

ここで、m´は、図93(a)で示したmと同一の役割を持つデータであるが、上述のmがビット5のα、ビット2のβ、ビット1のγおよびビット0のδの合計4ビットのデータであったのに対して、m´はビット6のσ、ビット5のα、ビット2のβ、ビット1のγおよびビット0のδの合計5ビットのデータである点が異なり、m´は、00H〜11Hの数値範囲を表現可能なデータであり、呼び出すサブルーチンの先頭アドレスを識別可能な識別情報(バイナリ形式)の一部である。   Here, m ′ is data having the same role as m shown in FIG. 93 (a), but the above m is α of bit 5, β of bit 2, γ of bit 1, and δ of bit 0. In contrast, m ′ is a total of 5 bits of data of σ of bit 6, α of bit 5, β of bit 2, γ of bit 1 and δ of bit 0. However, m ′ is data that can express a numerical range of 00H to 11H, and is part of identification information (binary format) that can identify the head address of a subroutine to be called.

このように、上述のEXESUB命令(EXESUBmn)の命令データのビット6に可変値σを設けたEXESUB命令(EXESUBm´n)を用いて、アドレスmnによって定義可能なアドレス領域(000H〜FFFH)を拡張(アドレスm´nによって定義可能なアドレス領域を0000H〜11FFHに)することで、上述のEXESUB非対象領域に対応するアドレスを先頭アドレスに持つサブルーチンをEXESUB命令(EXESUBm´n)を用いて呼び出すことができる。   As described above, the address area (000H to FFFH) definable by the address mn is expanded by using the EXESUB instruction (EXESUBm'n) in which the variable value σ is provided in the bit 6 of the instruction data of the EXESUB instruction (EXESUBmn). (By making the address area definable by the address m′n into 0000H to 11FFH), the subroutine having the address corresponding to the above-mentioned EXESUB non-target area as the head address is called using the EXESUB instruction (EXESUBm′n) Can do.

なお、上述の可変値σ、α、β、γおよびδとEXESUB命令(EXESUBm´n)の命令データのビット7〜0の対応関係は上述の対応関係に限らず、例えば、ビット5に可変値σを対応させ、同様に、ビット4に可変値α、ビット2に可変値β、ビット1に可変地γ、ビット0に可変値δを対応させてもよく、図93を用いて説明した対応関係と同じであればよい。   The correspondence relationship between the above-described variable values σ, α, β, γ, and δ and the bits 7 to 0 of the instruction data of the EXESUB instruction (EXESUBm'n) is not limited to the above-described correspondence relationship. Similarly, the variable value α may correspond to the bit 4, the variable value β to the bit 2, the variable ground γ to the bit 1, the variable value δ to the bit 0, and the variable value δ to correspond to the correspondence described with reference to FIG. It may be the same as the relationship.

さらに、命令データを構成する可変値σ、α、β、γおよびδの順序は、任意の順序としてもよいが、上述の順序(上位ビットから順にσ、α、β、γ、δ)、すなわち、後述するアドレスm´nのm´を上位ビットからσ、α、β、γ、δの順に並べることで定義可能になる順序とすることで、EXESUB命令データの機械語のチェックを簡便となり、コーディングミスを抑制することができる。   Furthermore, the order of the variable values σ, α, β, γ, and δ constituting the instruction data may be any order, but the above-described order (σ, α, β, γ, δ in order from the upper bit), that is, By making the m ′ of the address m′n, which will be described later, the order that can be defined by arranging in the order of σ, α, β, γ, δ from the upper bits, it becomes easy to check the machine language of the EXESUB instruction data. Coding mistakes can be suppressed.

このように、上述のROM制御領域(例えば、0000H〜11B8H)に対応させて上述のEXESUB命令(EXESUBm´n)の命令データを設けることで、ROM制御領域に対応するROM306の記憶領域に記憶されている従来の制御プログラムデータの圧縮が可能となる。   In this way, by providing the above-mentioned EXESUB instruction (EXESUBm'n) corresponding to the above-described ROM control area (for example, 0000H to 11B8H), it is stored in the storage area of the ROM 306 corresponding to the ROM control area. The conventional control program data can be compressed.

ところで、図88および図98で示したように、制限されたROM制御領域の中でも開発された遊技台ごとに設けられたROM制御領域が異なる場合があるが、このような遊技台それぞれに対して、上述のEXESUBmnまたはEXESUBm´nそれぞれを命令データとして備えているCPUを使い分けて開発を行うことは、開発工数およびコストの観点からも無駄であるとともに、コーディングミスの原因ともなり、安定した遊技制御の実現を困難にしてしまうこととなる。よって、図88で示したROM制御領域を持つ遊技台であっても、EXESUB命令にEXESUBm´nを用いた方が望ましい。   By the way, as shown in FIG. 88 and FIG. 98, the ROM control area provided for each developed game machine may be different among the limited ROM control areas. In addition, it is wasteful from the viewpoint of development man-hours and costs, and development of stable game control is not only from the viewpoint of development man-hours and costs, but also to develop using different CPUs each having the above-mentioned EXESUBmn or EXESUBmn'n as instruction data. It will be difficult to realize. Therefore, even in the gaming machine having the ROM control area shown in FIG. 88, it is desirable to use EXESUBm′n for the EXESUB instruction.

この場合であっても、EXESUBm´nによって呼び出すことができる領域(本実施形態では、0000H〜11FFH)よりも、制御プログラムデータが記憶されているROM制御領域(本実施形態では、0000H〜0BB1H)が狭くなるように構成されているため、少なくとも、上述のEXESUBm´nによって呼び出すことができる領域から、制御プログラムデータが記憶されているROM制御領域を除いた領域(本実施形態では、0BB1H〜11FFH)を、hituka用領域で構成するとともに、非使用領域の後にROMデータ領域が続くように構成すればよい。   Even in this case, the ROM control area (0000H to 0BB1H in this embodiment) stores control program data rather than the area (0000H to 11FFH in this embodiment) that can be called by EXESUBm'n. Therefore, at least the area that can be called by the above-mentioned EXEBUSm′n, except for the ROM control area in which the control program data is stored (in this embodiment, 0BB1H to 11FFH) ) In the hituka area and the ROM data area may follow the non-use area.

<特図状態更新処理、普図状態更新処理>   <Special drawing state update processing, general drawing state update processing>

次に、図100を用いて、上述の特図2状態更新処理(ステップS225)、特図1状態更新処理(ステップS227)、普図状態更新処理(ステップS221)の制御プログラムの一部について説明する。なお、同図(a)は特図2状態更新処理および特図1状態更新処理の制御プログラムの一部を抜き出したものであり、同図(b)は普図状態更新処理の制御プログラムの一部を抜き出したものである。   Next, a part of the control program for the above-described special figure 2 state update process (step S225), special figure 1 state update process (step S227), and general figure state update process (step S221) will be described with reference to FIG. To do. FIG. 8A shows a part of the control program for the special figure 2 state update process and the special figure 1 state update process, and FIG. The part is extracted.

例えば、同図(a)に示す特図状態更新処理では、まず最初に、「LD L,Low.vbTokuzuStatus」の命令を実行することによって、同図(d)においてvbTokuzuStatusとして定義されたアドレス(この例では、RAM308に設けた特図ステータス用記憶領域を示すアドレスであるF060H)の下位バイト(この例では、60H)をLレジスタに記憶する。   For example, in the special figure state update process shown in FIG. 6A, first, by executing the instruction “LD L, Low.vbTokuzuStatus”, the address defined as vbTokuzuStatus in FIG. In the example, the lower byte (60H in this example) of F060H which is an address indicating the special figure status storage area provided in the RAM 308 is stored in the L register.

続いて、「JP moReadMemory」の命令を実行することによって、同図(c)に示すmoReadMemory(メモリ読出し処理)に移動し、当該処理を実行する。このメモリ読み出し処理では、まず最初に「LD H,F0H」の命令を実行することによってHレジスタにF0Hを記憶した後、「LD A,(HL)」の命令を実行することによってHLレジスタで示されるアドレス(この例では、F060H)の内容(この例では、特図ステータス)をAレジスタに記憶する。続いて、「AND A」の命令を実行した後に、読み出し元の特図状態更新処理に戻る。なお、同図(b)に示す普図状態更新処理も共通のサブルーチンであるmoReadMemory(メモリ読出し処理)を利用することによって、RAM308の普図ステータス用記憶領域に記憶された普図ステータスの読みだしを行う。このように、同図(c)に示す従来のメモリ読出し処理を利用した場合には、「LD H,F0H」という命令により、特図ステータス用記憶領域や普図ステータス用記憶領域のアドレスの上位(F0H)が解析され、不正行為を誘発するおそれがある。このため、本実施形態では、同図(c)に示す従来のメモリ読出し処理に替えて、同図(e)に示すメモリ読出し処理を採用する。   Subsequently, by executing the instruction “JP moReadMemory”, the process moves to the moReadMemory (memory read process) shown in FIG. In this memory read processing, F0H is first stored in the H register by executing the instruction “LD H, F0H”, and then indicated by the HL register by executing the instruction “LD A, (HL)”. The content (in this example, F060H) of the address (in this example, F060H) is stored in the A register. Subsequently, after executing the instruction “AND A”, the process returns to the special figure state update process of the reading source. It should be noted that the common figure status update process shown in FIG. 5B also uses the common subroutine moReadMemory (memory read process) to read the common figure status stored in the common figure status storage area of the RAM 308. I do. As described above, when the conventional memory reading process shown in FIG. 5C is used, an instruction “LD H, F0H” causes the upper address of the special figure status storage area or the general figure status storage area to be higher. (F0H) is analyzed, and there is a risk of causing fraud. For this reason, in the present embodiment, the memory read process shown in FIG. 5E is adopted instead of the conventional memory read process shown in FIG.

この本実施形態に係るメモリ読出し処理では、「LD A,T」の命令を実行することによって、Tレジスタの値をAレジスタに記憶するが、上述のように、Tレジスタには特定の値(F0H)が記憶されているため、AレジスタにはF0Hが記憶される。以降の処理は従来の処理と同様であるが、イミディエイト値を利用する代わりにTレジスタを利用しているため、特図ステータス用記憶領域や普図ステータス用記憶領域のアドレスの上位(F0H)が解析されるおそれが少なく、不正行為を未然に防止できる場合がある。また、イミディエイト値を利用した場合には、例えば、F0HをF1Hと間違って入力するなど、コーディングミスの可能性が高くなるが、Tレジスタを利用すればコーディングミスを未然に防止できる場合がある。   In the memory read processing according to this embodiment, the value of the T register is stored in the A register by executing the instruction “LD A, T”. As described above, a specific value ( Since F0H) is stored, F0H is stored in the A register. The subsequent processing is the same as the conventional processing, but since the T register is used instead of using the immediate value, the upper address (F0H) of the address of the special status status storage area or the normal status storage area is In some cases, there is little risk of analysis and fraud can be prevented. Further, when the immediate value is used, the possibility of a coding error increases, for example, when F0H is mistakenly input as F1H. However, if the T register is used, the coding error may be prevented in advance.

図101は、図100(c)に示す従来のメモリ読出し処理の機械語と、図100(e)に示す本実施形態に係るメモリ読出し処理の機械語と、を比較した図である。従来のメモリ読出し処理における1行目の「LD H,F0H」命令をアセンブルした場合、機械語は「26F0H」となり「F0H」を含むため、従来のメモリ読出し処理では、特図ステータス用記憶領域や普図ステータス用記憶領域のアドレスの上位(F0H)が解析されてしまうおそれがある。一方、本実施形態のメモリ読出し処理における1行目の「LD A,T」命令をアセンブルした場合、機械語は「ED01H」となり「F0H」を含まないため、本実施形態のメモリ読出し処理では、特図ステータス用記憶領域や普図ステータス用記憶領域のアドレスの上位(F0H)が解析されるおそれが極めて低く、不正行為を未然に防止できる場合がある。
<特図1関連抽選処理>
FIG. 101 is a diagram comparing the machine language of the conventional memory reading process shown in FIG. 100C and the machine language of the memory reading process according to the present embodiment shown in FIG. When the “LD H, F0H” instruction on the first line in the conventional memory read processing is assembled, the machine language is “26F0H” and includes “F0H”. Therefore, in the conventional memory read processing, There is a risk that the upper address (F0H) of the address in the storage area for the normal status is analyzed. On the other hand, when the “LD A, T” instruction on the first line in the memory read processing of the present embodiment is assembled, the machine language is “ED01H” and does not include “F0H”. Therefore, in the memory read processing of the present embodiment, There is a very low possibility that the upper address (F0H) of the special figure status storage area and the general figure status storage area will be analyzed, and it may be possible to prevent fraud.
<Special drawing 1 related lottery processing>

次に、図102を用いて、上述の主制御部タイマ割込処理における特図1関連抽選処理について説明する。なお、同図は、特図1関連抽選処理の流れを示すフローチャートである。   Next, the special drawing 1 related lottery process in the above-described main control unit timer interrupt process will be described with reference to FIG. In addition, the figure is a flowchart which shows the flow of a special figure 1 related lottery process.

ステップS1001では、特別図柄乱数移行処理を行う。この特別図柄乱数移行処理では、一次記憶した乱数値を、RAM308に設けた特別図柄関連抽選乱数の格納領域に移行(記憶)する。ステップS1002では、特別図柄当り抽選処理を行う。この特別図柄当り抽選処理では、上述の特図乱数値(特図1乱数値、特図2乱数値)と、ROM306に予め記憶している特別図柄抽選データを比較する抽選を行い、当該抽選結果に応じて、上述の15R大当りフラグ、2R大当りフラグ、第1小当りフラグ、第2小当りフラグ、第1はずれフラグ、第2はずれフラグ、特図確率変動フラグ、および普図確率変動フラグなどを設定し、特別図柄遊技状態を変動中に設定する。   In step S1001, special symbol random number transfer processing is performed. In this special symbol random number transfer process, the random value stored in the primary is transferred (stored) to the special symbol related lottery random number storage area provided in the RAM 308. In step S1002, a special symbol per lottery process is performed. In the lottery processing per special symbol, the above-mentioned special symbol random value (the special symbol 1 random value, the special symbol 2 random value) is compared with the special symbol lottery data stored in the ROM 306 in advance, and the lottery result The 15R big hit flag, the 2R big hit flag, the first small hit flag, the second small hit flag, the first off flag, the second off flag, the special figure probability fluctuation flag, the normal figure probability fluctuation flag, etc. Set and set the special symbol gaming state while fluctuating.

ステップS1003では、表示図柄抽選処理を行う。この表示図柄抽選処理では、RAM308に記憶している表示図柄判定乱数と、ROM306に予め記憶している表示図柄抽選データを比較する抽選を行い、当該抽選結果に応じて、15R特別大当り図柄(特図A)、15R大当り図柄(特図B)、突然確変図柄(特図C)、突然時短図柄(特図D)、隠れ確変図柄(特図E)、突然通常図柄(特図F)、第1小当り図柄(特図G)、第2小当り図柄(特図H)、第1はずれ図柄(特図I)、および第2はずれ図柄(特図J)のいずれか一つの図柄を設定する。   In step S1003, a display symbol lottery process is performed. In this display symbol lottery process, a lottery for comparing the display symbol determination random number stored in the RAM 308 with the display symbol lottery data stored in advance in the ROM 306 is performed, and according to the lottery result, the 15R special jackpot symbol (special Figure A), 15R jackpot symbol (Special Figure B), Sudden Probability Variation (Special Figure C), Sudden Short-Time Design (Special Figure D), Hidden Probability Variation (Special Figure E), Sudden Normal Design (Special Figure F), No. One small symbol (Special G), second small symbol (Special H), first off symbol (Special I), and second off symbol (Special J) are set. .

ステップS1004では、特別図柄変動時間抽選処理を行う(詳細は後述する)。ステップS1005では、特別図柄変動時間設定処理を行う。この特別図柄変動時間設定処理では、上記ステップS1004の特別図柄変動時間抽選処理で取得した変動パターン(パターン番号)に応じたタイマを特別図柄変動タイマとして設定(記憶)する。ステップS1006では、特別図柄保留内情報移行処理を行う。この特別図柄保留内情報移行処理では、特別図柄保留内情報を変動順が先の格納領域に移行(記憶)した後に処理を終了する。   In step S1004, a special symbol variation time lottery process is performed (details will be described later). In step S1005, a special symbol variation time setting process is performed. In this special symbol variation time setting process, a timer corresponding to the variation pattern (pattern number) acquired in the special symbol variation time lottery process in step S1004 is set (stored) as a special symbol variation timer. In step S1006, special symbol on-hold information migration processing is performed. In this special symbol hold information transfer process, the special symbol hold information is transferred (stored) to the previous storage area in the order of change, and then the process ends.

なお、ここでは一例として、上述の主制御部タイマ割込処理における特図1関連抽選処理(ステップS231)について説明したが、例えば、特図2関連抽選処理(ステップS229)や普図関連抽選処理(ステップS223)についても同様の処理を適用することができる。   Here, as an example, the special figure 1 related lottery process (step S231) in the above-described main control unit timer interrupt process has been described. For example, the special figure 2 related lottery process (step S229) and the common figure related lottery process Similar processing can be applied to (step S223).

<主制御部のデータテーブルと変数記憶領域>   <Data table and variable storage area of main controller>

次に、図103および図104を用いて、主制御部300のROM306に記憶されるデータテーブルの一部と、RAM308に設けられる変数記憶領域の一部について説明する。 <テーブル選択用テーブル>   Next, a part of the data table stored in the ROM 306 of the main control unit 300 and a part of the variable storage area provided in the RAM 308 will be described with reference to FIGS. 103 and 104. <Table selection table>

図103(a)は、テーブル選択用テーブルの一例を示した図であり、図104は、主制御部300のROM306に記憶されるデータテーブルの定義の一部と、RAM308に設けられる変数格納領域の定義の一部を示したプログラムリストの一例である。   FIG. 103A shows an example of the table selection table. FIG. 104 shows a part of the definition of the data table stored in the ROM 306 of the main control unit 300 and the variable storage area provided in the RAM 308. It is an example of the program list which showed a part of definition of.

図103(a)に示すテーブル選択用テーブルには、後述する第1変動パターン選択テーブルが記憶されるROM306のアドレスを示す飛先アドレスが、特図変動遊技の保留数毎に0個用〜3個用の4つに区分けされて記憶されている。具体的には、ROMデータ領域のアドレス1600H〜1601Hに対応するROM306の2バイトの記憶領域には、保留数が0の場合に参照する第1変動パターン選択テーブルの飛先アドレスとして174FHが記憶されている(1600 DEFB 174FH)。また、ROMデータ領域のアドレス1602H〜1603Hに対応するROM306の2バイトの記憶領域には、保留数が1の場合に参照する第1変動パターン選択テーブルの飛先アドレスとして174FHが記憶されている(1602 DEFB 174FH)。また、ROMデータ領域のアドレス1604H〜1605Hに対応するROM306の2バイトの記憶領域には、保留数が2の場合に参照する第1変動パターン選択テーブルの飛先アドレスとして174FHが記憶されている(1604 DEFB 174FH)。また、ROMデータ領域のアドレス1606H〜1607Hに対応するROM306の2バイトの記憶領域には、保留数が3の場合に参照する第1変動パターン選択テーブルの飛先アドレスとして1755Hが記憶されている(1606 DEFB 1755H)。
<第1変動パターン選択テーブル>
In the table selection table shown in FIG. 103 (a), the destination address indicating the address of the ROM 306 in which the first variation pattern selection table (to be described later) is stored is 0 for each number of special figure variation games held. It is divided and stored in four for individual use. Specifically, 174FH is stored in the 2-byte storage area of the ROM 306 corresponding to the addresses 1600H to 1601H of the ROM data area as the destination address of the first variation pattern selection table to be referred to when the number of holds is 0. (1600 DEFB 174FH). In addition, 174FH is stored in the 2-byte storage area of the ROM 306 corresponding to the addresses 1602H to 1603H of the ROM data area as the destination address of the first variation pattern selection table to be referred to when the number of holds is 1 ( 1602 DEFB 174FH). Further, 174FH is stored in the 2-byte storage area of the ROM 306 corresponding to the addresses 1604H to 1605H of the ROM data area as the destination address of the first variation pattern selection table to be referred to when the number of holds is 2 ( 1604 DEFB 174FH). In addition, 1755H is stored in the 2-byte storage area of the ROM 306 corresponding to the addresses 1606H to 1607H of the ROM data area as the destination address of the first variation pattern selection table to be referred to when the number of holds is 3 ( 1606 DEFB 1755H).
<First variation pattern selection table>

図103(b)は、第1変動パターン選択テーブルの一例を示した図である。この第1変動パターン選択テーブルには、当該テーブルのアドレスと、後述する第2変動パターン選択テーブルが記憶されたアドレスとの差(オフセット)と、乱数の個数が記憶されている。具体的には、ROMデータ領域のアドレス1750Hに対応するROM306の1バイトの記憶領域には、オフセットとしてAEHが記憶されているとともに、このアドレスに連続する1751Hに対応するROM306の1バイトの記憶領域には、乱数の個数として20が記憶され(1750H DEFB AEH,20)、以降のROMデータ領域のアドレス1752H〜1759Hに対応するROM306の記憶領域には、図103(b)および図104に示すように、1バイト長のオフセットと、1バイト長の乱数の個数が交互に連続して記憶されている。なお、第1変動パターン選択テーブルにおいて乱数の個数は10進数で示している。
<第2変動パターン選択テーブル>
FIG. 103 (b) is a diagram showing an example of the first variation pattern selection table. This first variation pattern selection table stores the difference (offset) between the address of the table and the address where the second variation pattern selection table described later is stored, and the number of random numbers. Specifically, AEH is stored as an offset in the 1-byte storage area of the ROM 306 corresponding to the address 1750H of the ROM data area, and the 1-byte storage area of the ROM 306 corresponding to 1751H that is continuous with this address. 20 stores 1 as the number of random numbers (1750H DEFB AEH, 20), and the storage area of the ROM 306 corresponding to addresses 1752H to 1759H of the subsequent ROM data area is as shown in FIGS. 103 (b) and 104. In addition, an offset of 1 byte length and the number of random numbers of 1 byte length are alternately and continuously stored. In the first variation pattern selection table, the number of random numbers is indicated by a decimal number.
<Second variation pattern selection table>

図103(c)は、第2変動パターン選択テーブルの一例を示した図である。この第2変動パターン選択テーブルには、パターン番号と、乱数の個数が記憶されている。具体的には、ROMデータ領域のアドレス1800Hに対応するROM306の1バイトの記憶領域には、パターン番号として01Hが記憶されているとともに、このアドレスに連続する1801Hで示される1バイトの領域には、乱数の個数として255が記憶され(1800H DEFB 01H,255)、以降のROMデータ領域のアドレス1802H〜180FHに対応するROM306の記憶領域には、図103(c)および図104に示すように、1バイト長のパターン番号と、1バイト長の乱数の個数が交互に連続して記憶されている。なお、第2変動パターン選択テーブルにおいて乱数の個数は10進数で示している。
<変数記憶領域>
FIG. 103C is a diagram showing an example of the second variation pattern selection table. The second variation pattern selection table stores a pattern number and the number of random numbers. Specifically, 01H is stored as a pattern number in the 1-byte storage area of the ROM 306 corresponding to the address 1800H in the ROM data area, and the 1-byte area indicated by 1801H that is continuous with this address is stored in the 1-byte area. 255 is stored as the number of random numbers (1800H DEFB 01H, 255), and the storage area of the ROM 306 corresponding to the addresses 1802H to 180FH of the subsequent ROM data area is as shown in FIG. 103 (c) and FIG. A pattern number of 1 byte length and the number of random numbers of 1 byte length are stored alternately and continuously. In the second variation pattern selection table, the number of random numbers is indicated by a decimal number.
<Variable storage area>

図103(d)は、RWM領域のアドレスF040H〜F042Hに対応するRAM308の記憶領域に設けられる保留数記憶領域、乱数1記憶領域、乱数2記憶領域を示した図である。RWM領域のアドレスF040Hに対応するRAM308の1バイトの記憶領域には保留数記憶領域が設けられ(F040 vbHoryuuSP1 DEFS 1)、この保留数記憶領域には保留数が記憶される。また、アドレスF041Hに対応するRAM308の1バイトの記憶領域には乱数1記憶領域が設けられ(F041 vbRndHendou1 DEFS 1)、この乱数1記憶領域には乱数1が記憶される。また、アドレスF042Hに対応するRAM308の1バイトの記憶領域には乱数2記憶領域が設けられ(F042 vbRndHendou2 DEFS 1)、この乱数2記憶領域には乱数2が記憶される。
<特別図柄変動時間抽選処理>
FIG. 103 (d) is a diagram showing a reserved number storage area, a random number 1 storage area, and a random number 2 storage area provided in the storage area of the RAM 308 corresponding to the addresses F040H to F042H of the RWM area. A 1-byte storage area of the RAM 308 corresponding to the address F040H of the RWM area is provided with a reserved number storage area (F040 vbHoryuSP1 DEFS 1), and the reserved number is stored in this reserved number storage area. A random number 1 storage area is provided in the 1-byte storage area of the RAM 308 corresponding to the address F041H (F041 vbRndHendou1 DEFS 1), and the random number 1 is stored in the random number 1 storage area. Further, a random number 2 storage area is provided in the 1-byte storage area of the RAM 308 corresponding to the address F042H (F042 vbRndHendou2 DEFS 1), and the random number 2 is stored in the random number 2 storage area.
<Special symbol variation time lottery processing>

次に、図105および図106を用いて、上述の特図1関連抽選処理における特別図柄変動時間抽選処理について説明する。なお、図105は、特別図柄変動時間抽選処理の流れを示すフローチャートであり、図106は、特別図柄変動時間抽選処理のプログラムリストの一例である。   Next, the special symbol variation time lottery process in the special figure 1 related lottery process described above will be described with reference to FIGS. 105 and 106. FIG. 105 is a flowchart showing the flow of the special symbol variation time lottery process, and FIG. 106 is an example of a program list of the special symbol variation time lottery process.

ステップS1101では、演出用乱数取得処理を行う。この演出用乱数取得処理では、上述の特図1関連抽選処理で取得した特図1乱数値(0〜255)を、上述の乱数値1記憶領域(RWM領域のアドレスF041H)に記憶し、上述の特図2関連抽選処理で取得した特図2乱数値(0〜255)を、上述の乱数値2記憶領域(RWM領域のアドレスF042H)に記憶する。   In step S1101, effect random number acquisition processing is performed. In this effect random number acquisition process, the special figure 1 random value (0 to 255) acquired in the special figure 1 related lottery process is stored in the random value 1 storage area (RWM area address F041H). The special figure 2 random value (0 to 255) acquired in the special figure 2 related lottery process is stored in the random value 2 storage area (address F042H of the RWM area).

次のステップS1102では、上述のテーブル選択用テーブル(図103(a))の先頭アドレス(本実施形態では、1600H)を、HLレジスタに転送する(LD HL,tableSelectTable)。これにより、HLレジスタに1600Hが記憶される。   In the next step S1102, the start address (1600H in this embodiment) of the table selection table (FIG. 103A) is transferred to the HL register (LD HL, tableSelectTable). As a result, 1600H is stored in the HL register.

次のステップS1103では、上述の保留数記憶領域(RWM領域のアドレスF040H)に記憶された保留数を、Aレジスタに転送する(LDT A,(40H))。ここで、「LDT A、(n:イミディエイト値)」命令は、図107に示すように、Tレジスタを上位、イミディエイト値を下位で示すアドレスのデータをAレジスタにロードする命令である。本実施形態では、TレジスタにF0Hを記憶しているため、「LDT A,(40H)」命令を実行した場合、Tレジスタ(F0H)を上位、イミディエイト値(40H)を下位で示すアドレス(F040H)のデータ、すなわち保留数記憶領域に記憶された保留数がAレジスタにロード(転送)される。例えば、保留数記憶領域に記憶された保留数が2の場合には、Aレジスタに02Hがロード(転送)される。   In the next step S1103, the number of reservations stored in the above-mentioned reservation number storage area (address R040H of the RWM area) is transferred to the A register (LDT A, (40H)). Here, as shown in FIG. 107, the “LDT A, (n: immediate value)” instruction is an instruction for loading data at an address indicating the T register in the upper order and the immediate value in the lower order into the A register. In this embodiment, since F0H is stored in the T register, when the “LDT A, (40H)” instruction is executed, an address (F040H) indicating the T register (F0H) as the higher order and the immediate value (40H) as the lower order. ), That is, the number of holds stored in the hold number storage area is loaded (transferred) to the A register. For example, when the hold number stored in the hold number storage area is 2, 02H is loaded (transferred) to the A register.

次のステップS1104では、Aレジスタの値にAレジスタの値を加算する(ADD A,A)。先の例では、Aレジスタの値(02H)にAレジスタの値(02H)を加算することによってAレジスタに04Hが記憶される。次のステップS1105では、HLレジスタにAレジスタの値を加算する(ADDTWOONE HL,A)。詳細は後述するが、ADDTWOONE命令(ADDTWOONE HL,A)は、HLレジスタに記憶された2バイト長の値に、Aレジスタに記憶された1バイト長の値を加算するための命令である。先の例では、HLレジスタ(1600H)にAレジスタの値(04H)を加算することによってHLレジスタに1604Hが記憶される。   In the next step S1104, the value of the A register is added to the value of the A register (ADD A, A). In the above example, 04H is stored in the A register by adding the value (02H) of the A register to the value (02H) of the A register. In the next step S1105, the value of the A register is added to the HL register (ADDTWOONE HL, A). Although details will be described later, the ADDTWOONE instruction (ADDTWOONE HL, A) is an instruction for adding the 1-byte length value stored in the A register to the 2-byte length value stored in the HL register. In the previous example, 1604H is stored in the HL register by adding the value (04H) of the A register to the HL register (1600H).

次のステップS1106では、HLレジスタが示すアドレスの値をDEレジスタに転送する(LDTWO DE,(HL))。ここで、「LDTWO DE,(HL)」命令は、図107に示すように、HLレジスタが示すアドレスのデータをDEレジスタにロードする命令である。先の例では、HLレジスタが示すアドレス(1604H)の値(174FH)をDEレジスタに転送することによってDEレジスタには174FHが記憶される。   In the next step S1106, the value of the address indicated by the HL register is transferred to the DE register (LDTWO DE, (HL)). Here, the “LDTWO DE, (HL)” instruction is an instruction for loading data at the address indicated by the HL register into the DE register, as shown in FIG. In the above example, 174FH is stored in the DE register by transferring the value (174FH) of the address (1604H) indicated by the HL register to the DE register.

次のステップS1107では、DEレジスタの値とHLレジスタの値を交換する(EX DE,HL)。先の例では、DEレジスタの値(174FH)とHLレジスタの値(1604H)を交換することによって、HLレジスタには174FHが記憶され、DEレジスタには1604Hが記憶される。   In the next step S1107, the value of the DE register and the value of the HL register are exchanged (EX DE, HL). In the above example, 174FH is stored in the HL register and 1604H is stored in the DE register by exchanging the value (174FH) of the DE register with the value (1604H) of the HL register.

次のステップS1108では、上述の乱数1記憶領域に記憶された乱数1(特別図柄変動時間判定乱数1)をAレジスタに転送する(LDT A,(41H))。本実施形態では、TレジスタにF0Hを記憶しているため、「LDT A,(41H)」命令を実行した場合、Tレジスタ(F0H)を上位、イミディエイト値(41H)を下位で示すアドレス(F041H)のデータ、すなわち乱数1記憶領域に記憶された乱数1がAレジスタにロード(転送)される。例えば、乱数1記憶領域に記憶された乱数1が250の場合には、Aレジスタに250が記憶される。   In the next step S1108, the random number 1 (special symbol variation time determination random number 1) stored in the random number 1 storage area is transferred to the A register (LDT A, (41H)). In this embodiment, since F0H is stored in the T register, when the “LDT A, (41H)” instruction is executed, an address (F041H) indicating the T register (F0H) as the higher order and the immediate value (41H) as the lower order. ), That is, random number 1 stored in the random number 1 storage area is loaded (transferred) to the A register. For example, when the random number 1 stored in the random number 1 storage area is 250, 250 is stored in the A register.

次のステップS1109では、HLレジスタの値で示されるアドレスの次の連続した2つのアドレスに格納された値をBCレジスタに転送する(INCTENSOU BC,(HL))。詳細は後述するが、「INCTENSOU BC,(HL)」命令は、HLレジスタに記憶された2バイト長の値に1を加算し、加算後のHLレジスタの値で示されるアドレスに記憶された1バイト長の値を、BCレジスタのうちの下位のCレジスタに記憶した後に、HLレジスタに記憶された2バイト長の値にさらに1を加算し、加算後のHLレジスタの値で示されるアドレスに記憶された1バイト長の値を、BCレジスタのうちの上位のBレジスタに記憶するための命令である。先の例では、HLレジスタに記憶された2バイト長の値(174FH)に1を加算し、加算後のHLレジスタの値(1750H)で示されるアドレスに記憶された1バイト長の値(AEH)を、BCレジスタのうちの下位のCレジスタに記憶した後に、HLレジスタに記憶された2バイト長の値にさらに1を加算し、加算後のHLレジスタの値(1751H)で示されるアドレスに記憶された1バイト長の値(20)を、BCレジスタのうちの上位のBレジスタに記憶する。   In the next step S1109, the values stored in the two consecutive addresses next to the address indicated by the value of the HL register are transferred to the BC register (INCTENSOU BC, (HL)). As will be described in detail later, the “INCENSOUBC, (HL)” instruction adds 1 to the 2-byte length value stored in the HL register, and 1 stored in the address indicated by the value of the HL register after the addition. After the byte length value is stored in the lower C register of the BC register, 1 is further added to the 2-byte length value stored in the HL register, and the address indicated by the value of the HL register after the addition is added. This is an instruction for storing the stored 1-byte value in the upper B register of the BC registers. In the above example, 1 is added to the 2-byte length value (174FH) stored in the HL register, and the 1-byte length value (AEH) stored at the address indicated by the HL register value (1750H) after the addition. ) Is stored in the lower C register of the BC register, 1 is further added to the 2-byte length value stored in the HL register, and the address indicated by the value (1751H) of the HL register after the addition is added. The stored 1-byte value (20) is stored in the upper B register of the BC registers.

次のステップS1110では、Aレジスタの値からBレジスタの値を減算する(SUB B)。先の例では、Aレジスタの値(250)からBレジスタの値(20)を減算する。次のステップS1111では、ステップS1110の減算の結果、キャリーが発生したか否か、すなわち減算の結果が負の値になったかどうかを判定し、該当する場合にはステップS1112に進み、該当しない場合には該当するまでステップS1109〜S1111の処理を繰り返し実行する(JP NC,LOOP01)。先の例では、ステップS1109〜S1111の処理を3回繰り返すことによってキャリーが発生し、ステップS1112に進む際には、Bレジスタの値が8、Cレジスタ値がB0H、HLレジスタの値が1755Hになる。   In the next step S1110, the value of the B register is subtracted from the value of the A register (SUB B). In the above example, the value (20) of the B register is subtracted from the value (250) of the A register. In the next step S1111, it is determined whether or not a carry has occurred as a result of the subtraction in step S1110, that is, whether or not the result of the subtraction has become a negative value. Are repeatedly executed until the condition is satisfied (JP NC, LOOP01). In the previous example, a carry is generated by repeating the processing of steps S1109 to S1111 three times, and when proceeding to step S1112, the value of the B register is 8, the value of the C register is B0H, and the value of the HL register is 1755H. Become.

次のステップS1112では、HLレジスタの値にCレジスタの値を加算する(ADDTWOONE)。先の例では、HLレジスタの値(1755H)にCレジスタの値(B0H)を加算することによってHLレジスタには1805Hが記憶される。次のステップS1113では、上述の乱数2記憶領域(本実施形態では、F042H)に記憶された乱数2(特別図柄変動時間判定乱数2)をAレジスタに転送する(LDT A,(42H))。本実施形態では、TレジスタにF0Hを記憶しているため、「LDT A,(42H)」命令を実行した場合、Tレジスタ(F0H)を上位、イミディエイト値(42H)を下位で示すアドレス(F042H)のデータ、すなわち乱数2記憶領域に記憶された乱数2がAレジスタにロード(転送)される。例えば、乱数2が148の場合には、Aレジスタに148が記憶される。   In the next step S1112, the value of the C register is added to the value of the HL register (ADDTWOONE). In the above example, 1805H is stored in the HL register by adding the value (B0H) of the C register to the value (1755H) of the HL register. In the next step S1113, the random number 2 (special symbol variation time determination random number 2) stored in the random number 2 storage area (F042H in the present embodiment) is transferred to the A register (LDT A, (42H)). In this embodiment, since F0H is stored in the T register, when the “LDT A, (42H)” instruction is executed, an address (F042H) indicating the T register (F0H) as the higher order and the immediate value (42H) as the lower order. ), That is, random number 2 stored in the random number 2 storage area is loaded (transferred) to the A register. For example, when the random number 2 is 148, 148 is stored in the A register.

次のステップS1114では、HLレジスタの値で示されるアドレスの次の連続した2つのアドレスに格納された値をBCレジスタに転送する(INCTENSOU BC,(HL))。先の例では、HLレジスタに記憶された2バイト長の値(1805H)に1を加算し、加算後のHLレジスタの値(1806H)で示されるアドレスに記憶された1バイト長の値(04H)を、BCレジスタのうちの下位のCレジスタに記憶した後に、HLレジスタに記憶された2バイト長の値にさらに1を加算し、加算後のHLレジスタの値(1807H)で示されるアドレスに記憶された1バイト長の値(128)を、BCレジスタのうちの上位のBレジスタに記憶する。   In the next step S1114, the values stored in the two consecutive addresses next to the address indicated by the value of the HL register are transferred to the BC register (INCTENSOU BC, (HL)). In the previous example, 1 is added to the 2-byte length value (1805H) stored in the HL register, and the 1-byte length value (04H) stored at the address indicated by the HL register value (1806H) after the addition. ) Is stored in the lower C register of the BC register, 1 is further added to the 2-byte length value stored in the HL register, and the address indicated by the value (1807H) of the HL register after the addition is added. The stored 1-byte value (128) is stored in the upper B register of the BC registers.

次のステップS1115では、Aレジスタの値からBレジスタの値を減算する(SUB B)。先の例では、Aレジスタの値(148)からBレジスタの値(128)を減算する。次のステップS1116では、ステップS1115の減算の結果、キャリーが発生したか否か、すなわち減算の結果が負の値になったかどうかを判定し、該当する場合にはステップS1117に進み、該当しない場合には該当するまでステップS1114〜S1116の処理を繰り返し実行する(JP NC,LOOP02)。先の例では、ステップS1114〜S1116の処理を2回繰り返すことによってキャリーが発生し、ステップS1117に進む際には、Bレジスタの値が32、Cレジスタの値が05H、HLレジスタの値が1809Hになる。ステップS1117では、その他の処理を行った後に処理を終了する。なお、ここでは一例として、特図1や特図2に関する処理について説明したが、例えば、普図の保留数や乱数値についても同様の処理を適用することができる。
<主制御部の特殊命令>
In the next step S1115, the value of the B register is subtracted from the value of the A register (SUB B). In the above example, the value (128) of the B register is subtracted from the value (148) of the A register. In the next step S1116, it is determined whether or not a carry has occurred as a result of the subtraction in step S1115, that is, whether or not the result of the subtraction has become a negative value. If so, the process proceeds to step S1117. The processing of steps S1114 to S1116 is repeatedly executed until it corresponds (JP NC, LOOP02). In the previous example, a carry is generated by repeating the processing of steps S1114 to S1116 twice, and when proceeding to step S1117, the value of the B register is 32, the value of the C register is 05H, and the value of the HL register is 1809H. become. In step S1117, the process ends after other processes are performed. Here, as an example, the processing related to special figure 1 and special figure 2 has been described, but the same processing can be applied to, for example, the number of reserved figures and random numbers in a normal figure.
<Special instruction of main control unit>

次に、図107および図108を用いて、主制御部300が備える特殊命令について説明する。なお、図107は、主制御部300が備える命令の一部と、その説明を示した図である。また、図108(a)は、主制御部300の命令データの上位ビットと下位ビットを示した図であり、同図(b)は、命令データテーブルの一例を示した図である。
<特殊命令/LDT命令>
Next, a special instruction included in the main control unit 300 will be described with reference to FIGS. 107 and 108. FIG. FIG. 107 is a diagram showing some of the commands included in the main control unit 300 and their descriptions. FIG. 108 (a) is a diagram showing the upper and lower bits of the instruction data of the main control unit 300, and FIG. 108 (b) is a diagram showing an example of the instruction data table.
<Special instruction / LDT instruction>

特殊命令の一つである「LDT A、(n:イミディエイト値)」命令は、上述のとおり、Tレジスタを上位、イミディエイト値を下位で示すアドレスのデータをAレジスタにロードする命令であり、例えば、上述の特別図柄変動時間抽選処理のステップS1103では、「LDT A、(40H)」命令を実行することによって、Tレジスタ(F0H)を上位、イミディエイト値(40H)を下位で示すアドレス(F040H)のデータ、すなわち保留数記憶領域に記憶された保留数をAレジスタにロード(転送)している。   The “LDT A, (n: immediate value)” instruction, which is one of the special instructions, is an instruction for loading data at an address indicating the T register in the higher order and the immediate value in the lower order as described above. In step S1103 of the special symbol variation time lottery process described above, by executing the “LDT A, (40H)” instruction, the address (F040H) indicating the T register (F0H) as the higher order and the immediate value (40H) as the lower order. Data, that is, the hold count stored in the hold count storage area is loaded (transferred) to the A register.

また、図示はしないが、主制御部300は、さらに、Aレジスタに記憶されたデータを、Tレジスタを上位、イミディエイト値を下位で示すアドレスにロードするための「LDT (n:イミディエイト値),A」命令を備えている。一方、Tレジスタを上位、汎用レジスタ(例えば、Hレジスタ)を下位で示すアドレスのデータをAレジスタにロードする命令(例えば、「LDT A,H」のような命令)や、Aレジスタに記憶されたデータを、Tレジスタを上位、汎用レジスタ(例えば、Hレジスタ)を下位で示すアドレスにロードするための命令(例えば、「LDT H,A」のような命令)は備えていない。   Although not shown, the main control unit 300 further uses “LDT (n: immediate value),” for loading the data stored in the A register into an address indicating the T register as the upper and the immediate value as the lower. A "instruction. On the other hand, an instruction (for example, an instruction such as “LDT A, H”) for loading data at an address indicating the T register as a higher order and a general-purpose register (for example, an H register) as a lower order is stored in the A register. An instruction (for example, an instruction such as “LDTH H, A”) for loading the data into an address indicating the T register as the higher order and the general-purpose register (for example, the H register) as the lower order is not provided.

すなわち、LDT命令によって指定可能なアドレスの下位バイトは、イミディエイト値に限定されており、汎用レジスタを指定することは禁止されている(機械語にアセンブルされる過程でエラーとなりアセンブルすることができない)。このため、LDT命令では、プログラムリストの確認などを行う際にアドレスの確認が容易となる上に、Tレジスタの値(アドレスの上位バイト)を不用意に変更することができなくなる結果、コーディングミスや不具合の発生を減少させることができる場合がある。
<特殊命令/LDTWO命令>
That is, the lower byte of the address that can be specified by the LDT instruction is limited to an immediate value, and it is prohibited to specify a general-purpose register (an error occurs during the assembly into the machine language and the assembly cannot be performed). . For this reason, the LDT instruction makes it easy to check the address when checking the program list and the like, and the value of the T register (the upper byte of the address) cannot be changed carelessly. And the occurrence of malfunctions may be reduced.
<Special instructions / LDTWO instructions>

特殊命令の一つである「LDTWO OP1,(OP2)」命令は、上述のとおり、第2オペランドOP2で示される2つのレジスタが示すアドレスのデータを第1オペランドOP1で示される2つのレジスタにロードする命令であり、「LDTWO (OP2),OP1」命令は、第2オペランドOP2で示される2つのレジスタが示すアドレスに第1オペランドOP1で示される2つのレジスタのデータをロードする命令であり、例えば、上述の特別図柄変動時間抽選処理のステップS1106では、「LDTWO DE,(HL)」命令を実行することによって、HLレジスタが示すアドレス(1604H)の値(174FH)をDEレジスタにロード(転送)してDEレジスタには174FHを記憶している。OP2がHLレジスタではないBCレジスタまたはDEレジスタである場合、OP1がBCレジスタ、DEレジスタ、HLレジスタ、IXレジスタ、IYレジスタとなり、OP2がHLレジスタである場合のみ、OP1がBCレジスタ、DEレジスタ、HLレジスタ、ACレジスタ、AEレジスタ、BDレジスタ、IXレジスタ、IYレジスタとなる。LDTWO命令は、AレジスタやHLレジスタを保護するのに適している。   As described above, the “LDTWO OP1, (OP2)” instruction, which is one of the special instructions, loads the data at the addresses indicated by the two registers indicated by the second operand OP2 into the two registers indicated by the first operand OP1. The “LDTWO (OP2), OP1” instruction is an instruction to load the data of the two registers indicated by the first operand OP1 to the address indicated by the two registers indicated by the second operand OP2, for example, In step S1106 of the special symbol variation time lottery process described above, by executing the “LDTWO DE, (HL)” instruction, the value (174FH) of the address (1604H) indicated by the HL register is loaded (transferred) to the DE register. Thus, 174FH is stored in the DE register. When OP2 is a BC register or DE register that is not an HL register, OP1 becomes a BC register, DE register, HL register, IX register, and IY register, and only when OP2 is an HL register, OP1 becomes a BC register, DE register, HL register, AC register, AE register, BD register, IX register, IY register. The LDTWO instruction is suitable for protecting the A register and the HL register.

また、LDTWO命令では、必要なステート数は14ステート、必要なバイト数は2バイトである。一方、従来の命令によってLDTWO命令と同様の処理を行う場合には、図107に示すように、必要なステート数は14ステート(=4+6+4)、必要なバイト数は3バイト(=1+1+1)である。したがって、HLレジスタが示すアドレスのデータをDEレジスタにロードする場合にLDTWO命令を使用すれば、制御プログラムの処理時間を短縮して制御負担を軽減することができる上に、プログラムコード量を削減することができ、メモリ容量が制限されているROMの記憶領域を有効に利用することができる場合がある。また、遊技性を高めるためにプログラムコードが増えたとしても、プログラム容量の増加や処理速度の低下を抑止できる場合がある。また、プログラム容量を削減することによって、開発者のコーディングミスやチェックミスを減らし、デバッグが容易で開発効率を高めることが可能となることに加えて、遊技台として適正な機能を有するか否かを外部機関が確認する際にも、確認作業のミスを防止でき、遊技者が安心して遊技を行うことができる遊技台を提供できる場合がある。   In the LDTWO instruction, the required number of states is 14 and the required number of bytes is 2 bytes. On the other hand, when the same processing as the LDTWO instruction is performed by the conventional instruction, as shown in FIG. 107, the required number of states is 14 (= 4 + 6 + 4), and the required number of bytes is 3 (= 1 + 1 + 1). . Therefore, if the LDTWO instruction is used when the address data indicated by the HL register is loaded into the DE register, the processing time of the control program can be shortened and the control burden can be reduced, and the amount of program code can be reduced. In some cases, the storage area of the ROM having a limited memory capacity can be used effectively. Further, even if the program code is increased in order to improve game play, an increase in program capacity and a decrease in processing speed may be suppressed. Also, by reducing the program capacity, it is possible to reduce developer coding errors and check mistakes, facilitate debugging, increase development efficiency, and whether or not it has an appropriate function as a game machine. Even when the external organization confirms, there may be a case where it is possible to prevent a mistake in the confirmation work and to provide a game table that allows the player to play the game with peace of mind.

<特殊命令/ADDTWOONE命令>   <Special instruction / ADDTWOONE instruction>

特殊命令の一つであるADDTWOONE命令(ADDTWOONE OP1,OP2)は、第1オペランドOP1で示される2つのレジスタに記憶された2バイト長の値に、第2オペランドOP2で示されるレジスタに記憶された1バイト長の値(または、第2オペランドOP2で示される1バイト長のイミディエイト値)を加算するための命令である。ADDTWOONE命令の命令コードの上位1バイトは固定値(この例ではEDH)とし、下位バイトは、命令データテーブルの上位ビット4H(0100B)と下位ビット0H(0000B)〜2H(0010B)の組合せと、命令データテーブルの上位ビット4H(0100B)と下位ビット4H(0100B)〜7H(0001B)、9H(1001H)の組合せに割り当てている。このように、従来は空き領域とされていた命令の領域を利用することで、限られたハードウェア資源を有効利用することができる上に、空き領域に不正な命令(隠し命令)を埋め込むような不正行為を未然に防止することができ、遊技の公平性を担保できる場合がある。なお、本実施形態では、特殊命令の命令コードを2バイト長としているが、命令コードのバイト長は特に限定されず、例えば1バイト長でもよい。また、ADDTWOONE命令のうちの特定の命令(例えば、「ADDTWOONE HL,A」命令)のみ、他のADDTWOONE命令よりも命令コードが短く(例えば、1バイト長)てもよい。また、「ADDTWOONE OP1,A」命令のうちの特定の命令(例えば、「ADDTWOONE HL,A」命令)のみ、他のADDTWOONE命令よりも命令コードが短く(例えば、1バイト長)てもよい。この場合、該命令の利便性を高めることができる。   The ADDTWOONE instruction (ADDTWONE OP1, OP2), which is one of the special instructions, is stored in the register indicated by the second operand OP2 into a 2-byte length value stored in the two registers indicated by the first operand OP1. This is an instruction for adding a 1-byte value (or a 1-byte immediate value indicated by the second operand OP2). The upper 1 byte of the instruction code of the ADDTWOONE instruction is a fixed value (EDH in this example), and the lower byte is a combination of the upper bit 4H (0100B) and the lower bits 0H (0000B) to 2H (0010B) of the instruction data table. It is assigned to a combination of the upper bit 4H (0100B) and the lower bits 4H (0100B) to 7H (0001B), 9H (1001H) of the instruction data table. In this way, by using an instruction area that has been considered as a free area in the past, it is possible to effectively use limited hardware resources and to embed an illegal instruction (hidden instruction) in the free area. In some cases, it is possible to prevent illegal acts and to ensure the fairness of the game. In this embodiment, the instruction code of the special instruction is 2 bytes long, but the byte length of the instruction code is not particularly limited, and may be 1 byte, for example. Further, only a specific instruction (for example, “ADDTWOONE HL, A” instruction) among the ADDTWOONE instructions may have a shorter instruction code (for example, 1 byte length) than other ADDTWOONE instructions. Further, only a specific instruction (for example, “ADDTWOONE HL, A” instruction) in the “ADDTWOONE OP1, A” instruction may have a shorter instruction code (for example, 1 byte length) than other ADDTWOONE instructions. In this case, the convenience of the command can be improved.

「ADDTWOONE HL,C」命令を例に挙げると、第1オペランドで示されるペアレジスタHLに記憶された2バイト長の値に、第2オペランドで示されるCレジスタに記憶された1バイト長の値を加算する場合に使用される命令であり、例えば、上述の特別図柄変動時間抽選処理のステップS1112では、「ADDTWOONE HL,C」を実行することによって、HLレジスタに記憶された2バイト長の値(1755H)に、Cレジスタに記憶された1バイト長の値(B0H)を加算することによって、HLレジスタの値を1805Hに更新している。なお、ADDTWOONE命令(ADDTWOONE OP1,OP2)は、キャリーが発生し難いが、HLレジスタに記憶された2バイト長の値(例えば、FF01H)にCレジスタに記憶された1バイト長の値(例えば、FFH)を加算する場合には、キャリーが発生する。すなわち、ADDTWOONE命令(ADDTWOONE OP1,OP2)を実行後にキャリーが発生する場合には、HレジスタがFFHであると判断することができる。   Taking the “ADDTWOONE HL, C” instruction as an example, a value of 1 byte length stored in the C register indicated by the second operand is added to a value of 2 bytes length stored in the pair register HL indicated by the first operand. For example, in step S1112 of the special symbol variation time lottery process described above, by executing “ADDTWOONE HL, C”, a 2-byte length value stored in the HL register The value of the HL register is updated to 1805H by adding the 1-byte length value (B0H) stored in the C register to (1755H). It should be noted that the ADDTWOONE instruction (ADDTWOONE OP1, OP2) is less likely to carry, but the 2-byte length value (for example, FF01H) stored in the HL register is a 1-byte length value (for example, FF01H). When adding (FFH), carry occurs. That is, when a carry occurs after execution of the ADDTWONE instruction (ADDTWOONE OP1, OP2), it can be determined that the H register is FFH.

また、「ADDTWOONE HL,C」命令では、必要なステート数は8ステート、必要なバイト数は2バイトである。一方、従来の命令によって「ADDTWOONE HL,C」命令と同様の処理を行う場合には、図107に示すように、必要なステート数は22ステート(=4+4+10+4)、必要なバイト数は6バイト(=1+1+3+1)である。したがって、HLレジスタに記憶された2バイト長の値にCレジスタに記憶された1バイト長の値を加算する場合に「ADDTWOONE HL,C」命令を使用すれば、制御プログラムの処理時間を短縮して制御負担を軽減することができる上に、プログラムコード量を削減することができ、メモリ容量が制限されているROMの記憶領域を有効に利用することができる場合がある。また、遊技性を高めるためにプログラムコードが増えたとしても、プログラム容量の増加や処理速度の低下を抑止できる場合がある。また、プログラム容量を削減することによって、開発者のコーディングミスやチェックミスを減らし、デバッグが容易で開発効率を高めることが可能となることに加えて、遊技台として適正な機能を有するか否かを外部機関が確認する際にも、確認作業のミスを防止でき、遊技者が安心して遊技を行うことができる遊技台を提供できる場合がある。   Further, in the “ADDTWOONE HL, C” instruction, the required number of states is 8 and the required number of bytes is 2 bytes. On the other hand, when processing similar to that of the “ADDTWOONE HL, C” instruction is performed using a conventional instruction, as shown in FIG. 107, the required number of states is 22 (= 4 + 4 + 10 + 4), and the required number of bytes is 6 bytes ( = 1 + 1 + 3 + 1). Therefore, if the “ADDTWOONE HL, C” instruction is used to add the 1-byte length value stored in the C register to the 2-byte length value stored in the HL register, the processing time of the control program can be shortened. In addition, the control burden can be reduced and the amount of program code can be reduced, so that the storage area of the ROM having a limited memory capacity can be used effectively. Further, even if the program code is increased in order to improve game play, an increase in program capacity and a decrease in processing speed may be suppressed. Also, by reducing the program capacity, it is possible to reduce developer coding errors and check mistakes, facilitate debugging, increase development efficiency, and whether or not it has an appropriate function as a game machine. Even when the external organization confirms, there may be a case where it is possible to prevent a mistake in the confirmation work and to provide a game table that allows the player to play the game with peace of mind.

また、従来CPUに実行可能に備えられている8ビット演算命令では、「ADD A,E」命令のように、加算結果(「SUB A,E」命令の場合は減算結果)をAレジスタに入れるしかなかったが、ADDTWOONE命令を実行して「ADDTWOONE HL,E」命令とすることで「ADD L,E」を可能にしており、Aレジスタを使用せずに温存することができる(使用用途が広いAレジスタを他の命令で使用することが可能となる結果、プログラム容量を削減できる場合がある)。また、「LD H,00H」命令を実行してHレジスタに00Hを転送した後に、「ADDTWOONE HL,E」命令を実行してLレジスタにEレジスタの値を加算して「SRL H」命令を実行してLレジスタが桁あふれしたかどうかをキャリーフラグが立ったか否かで確認することでAレジスタを使用せずに温存することができる(使用用途が広いAレジスタを他の命令で使用することが可能となる結果、プログラム容量を削減できる場合がある)。   Further, in the case of an 8-bit arithmetic instruction that is conventionally provided in the CPU, the addition result (subtraction result in the case of the “SUB A, E” instruction) is input to the A register as in the case of the “ADD A, E” instruction. However, by executing the ADDTWOONE instruction and changing it to the “ADDTWOONE HL, E” instruction, “ADD L, E” is enabled, and it can be preserved without using the A register. As a result of using a wide A register for other instructions, the program capacity may be reduced). In addition, after executing “LD H, 00H” instruction and transferring 00H to the H register, “ADDTWONE HL, E” instruction is executed, the value of the E register is added to the L register, and the “SRL H” instruction is issued. Executing and checking whether or not the L register has overflowed can be saved without using the A register by checking whether or not the carry flag is set (use the A register which is widely used for other instructions) As a result, the program capacity may be reduced.

すなわち、「ADD A,L」命令は実行可能であり、「ADD L,A」命令は実行不可能であるが、「ADDTWOONE HL,A」命令を実行可能にした命令セットを備えたことにより、命令セットにおける命令数を1つ増やすだけで、8ビット演算の加算結果を格納可能なレジスタを増やすことができるとともに、16ビット−8ビット演算も可能にしており、命令セットを1命令増やすだけで2つの機能を実現可能としている。   In other words, the “ADD A, L” instruction can be executed, the “ADD L, A” instruction cannot be executed, but the “ADDTWONE HL, A” instruction can be executed. By increasing the number of instructions in the instruction set by one, it is possible to increase the number of registers that can store the addition results of 8-bit operations and also enable 16-bit to 8-bit operations. Two functions can be realized.

換言すると、加算命令「特定のレジスタペア←特定のレジスタペア+特定のレジスタ」を命令セットに含むとともに、特定のレジスタペアの下位側のレジスタを8ビット演算のアキュムレータとは異なるレジスタとした。   In other words, the addition instruction “specific register pair ← specific register pair + specific register” is included in the instruction set, and the lower register of the specific register pair is different from the 8-bit arithmetic accumulator.

従来では、命令セットにおける命令数を増やしたくなかったため、16ビット演算と8ビット演算しか搭載せず、さらに16ビットのアキュムレータは複数のレジスタペアのうちの特定レジスタペアのみとし、8ビットのアキュムレータは複数のレジスタのうちの特定レジスタのみとしていたが、上記構成により、少ない命令数の増加で複数の機能を実現することができる。   Conventionally, since it was not desired to increase the number of instructions in the instruction set, only 16-bit arithmetic and 8-bit arithmetic are mounted. Further, the 16-bit accumulator is only a specific register pair among a plurality of register pairs, and the 8-bit accumulator is Although only a specific register among a plurality of registers is used, a plurality of functions can be realized with a small increase in the number of instructions.

また、HLレジスタが0か否かを確認するために従来では、「LD A,H」命令でHレジスタの値をAレジスタに転送した後に「OR A,L」命令を実行後に0フラグが立つか否かでHLレジスタが0か否かを確認していた。すなわち、8ビット演算を実行して0か否かを確認しているため、8ビット演算のアキュムレータ(この場合はAレジスタ)を使用してしまっていた。しかし、「ADDTWOONE HL,n(00H)」命令後に0フラグが立つか否かを確認することによってAレジスタを使用しないで済む。すなわち、「ADDTWOONE HL,n」命令は、16ビットレジスタペアに8ビットの直値を加算する機能と、16ビットレジスタペアが0か否かを確認する機能と、Aレジスタを温存する機能とを備えている。また、命令に直値を使用しているので、プログラムソースの可読性を向上できる。   Also, in order to check whether the HL register is 0, conventionally, after the value of the H register is transferred to the A register with the “LD A, H” instruction, the “OR A, L” instruction is executed and then the 0 flag is set. Whether or not the HL register is 0 is confirmed. That is, since an 8-bit operation is executed to check whether it is 0, an 8-bit operation accumulator (in this case, the A register) has been used. However, it is not necessary to use the A register by checking whether or not the 0 flag is set after the “ADDTWOONE HL, n (00H)” instruction. That is, the “ADDTWONE HL, n” instruction has a function of adding an 8-bit direct value to a 16-bit register pair, a function of checking whether the 16-bit register pair is 0, and a function of preserving the A register. I have. Further, since direct values are used for the instructions, the readability of the program source can be improved.

<特殊命令/INCTENSOU命令>   <Special instruction / INCENSOU instruction>

特殊命令の一つであるINCTENSOU命令(INCTENSOU OP1,OP2)は、第2オペランドOP2で示される2つのレジスタに記憶された2バイト長の値に1を加算し、加算後の2つのレジスタの値で示されるアドレスに記憶された1バイト長の値を、第1オペランドOP1で示される2つのレジスタのうちの下位のレジスタに記憶した後に、第2オペランドOP2で示される2つのレジスタに記憶された2バイト長の値にさらに1を加算し、加算後の2つのレジスタの値で示されるアドレスに記憶された1バイト長の値を、第1オペランドOP1で示される2つのレジスタのうちの上位のレジスタに記憶するための命令である。INCTENSOU命令の命令コードの上位1バイトは固定値(この例ではEDH)とし、下位バイトは、命令データテーブルの上位ビット1H(0001B)と下位ビット8H(1000B)〜9H(10001B)の組合せと、命令データテーブルの上位ビットDH(1101B)と下位ビット4H(0100B)〜6H(0110B)の組合せに割り当てている。本例では、第1オペランドOP1にアキュムレータを含む機械命令のコードを連番(例えば、「INCTENSOU AC,(HL)」命令のコードがEDD4H、「INCTENSOU AE,(HL)」のコードがEDD5H)にしている。また、第1オペランドOP1にアキュムレータを含む命令のうちの特定のINCTENSOU命令の機械命令のコード(例えば、「INCTENSOU AE,(HL)」命令のコードがEDD5H)と、第1オペランドOP1にアキュムレータを含まない命令のうちの特定のINCTENSOU命令の機械命令のコード(例えば、「INCTENSOU BD,(HL)」命令のコードがEDD6H)を連番にしている。また、第1オペランドOP1にアキュムレータを含まずペアレジスタを含む命令のうちの複数のINCTENSOU命令の機械命令のコード(例えば、「INCTENSOU BC,(HL)」命令のコードがED18H、「INCTENSOU DE,(HL)」命令のコードがED19H)と、第1オペランドOP1にアキュムレータを含まない命令のうちの特定のINCTENSOU命令の機械命令のコード(例えば、「INCTENSOU BD,(HL)」命令のコードがEDD6H)とを離れた番号にしている。このように、従来は空き領域とされていた命令の領域を利用することで、限られたハードウェア資源を有効利用することができる上に、空き領域に不正な命令(隠し命令)を埋め込むような不正行為を未然に防止することができ、遊技の公平性を担保できる場合がある。   The INCTENSOU instruction (INCTENSOU OP1, OP2), which is one of the special instructions, adds 1 to the 2-byte length value stored in the two registers indicated by the second operand OP2, and the value of the two registers after the addition The 1-byte length value stored at the address indicated by is stored in the lower register of the two registers indicated by the first operand OP1, and then stored in the two registers indicated by the second operand OP2. 1 is further added to the 2-byte length value, and the 1-byte length value stored in the address indicated by the two register values after the addition is added to the higher order of the two registers indicated by the first operand OP1. This is an instruction for storing in a register. The upper 1 byte of the instruction code of the INCENSOU instruction is a fixed value (EDH in this example), and the lower byte is a combination of the upper bit 1H (0001B) and the lower bits 8H (1000B) to 9H (10001B) of the instruction data table, The higher order bit DH (1101B) and the lower order bits 4H (0100B) to 6H (0110B) are assigned to the instruction data table. In this example, the code of the machine instruction including the accumulator in the first operand OP1 is a serial number (for example, the code of the “INCTENSOU AC, (HL)” instruction is EDD4H, the code of the “INCTENSOU AE, (HL)” is EDD5H). ing. Also, a machine instruction code of a specific INCENSOU instruction (for example, the code of “INCENSOU AE, (HL)” instruction is EDD5H) among instructions including an accumulator in the first operand OP1, and an accumulator is included in the first operand OP1. Among the non-instructions, the machine instruction code of a specific INCENSOU instruction (for example, the code of “INCENSOU BD, (HL)” instruction is EDD6H) is serialized. In addition, a machine instruction code of a plurality of INCENSOU instructions (for example, “INCTENSOU BC, (HL)” instruction code is ED18H, “INTCENSOU DE, ( HL) "instruction code is ED19H) and the machine instruction code of a specific INCENSOU instruction among the instructions that do not include an accumulator in the first operand OP1 (for example, the code of the" INCTENSOU BD, (HL) "instruction is EDD6H) And the numbers apart. In this way, by using an instruction area that has been considered as a free area in the past, it is possible to effectively use limited hardware resources and to embed an illegal instruction (hidden instruction) in the free area. In some cases, it is possible to prevent illegal acts and to ensure the fairness of the game.

「INCTENSOU BC,(HL)」命令を例に挙げると、第2オペランドで示されるペアレジスタHLに記憶された2バイト長の値に1を加算し、加算後のペアレジスタHLの値で示されるアドレス(HL)に記憶された1バイト長の値を、第1オペランドで示されるペアレジスタBCのうちの下位のレジスタCに記憶した後に、第2オペランドで示されるペアレジスタHLに記憶された2バイト長の値にさらに1を加算し、加算後のペアレジスタHLの値で示されるアドレス(HL)に記憶された1バイト長の値を、第1オペランドで示されるペアレジスタBCのうちの上位のレジスタBに記憶するための命令である。INCTENSOU命令は、HLレジスタの値で示されるアドレスの次以降のアドレスに格納されている値をレジスタに転送するのに適している。また、INCTENSOU命令は、該命令実行後にHLレジスタに記憶された値が示すアドレスに格納された値に基づいて該命令を繰り返すか否かの判断処理を行う場合、繰り返すと判断した場合には該命令でHLレジスタにプラス1することでHLレジスタに記憶された値が示すアドレスを次のアドレスにできるために該命令を使用するのに適している。   For example, in the case of the “INCENSOU BC, (HL)” instruction, 1 is added to the 2-byte length value stored in the pair register HL indicated by the second operand, and the value is indicated by the value of the pair register HL after the addition. After the 1-byte length value stored in the address (HL) is stored in the lower register C of the pair register BC indicated by the first operand, 2 stored in the pair register HL indicated by the second operand Further, 1 is added to the byte length value, and the 1-byte length value stored in the address (HL) indicated by the value of the pair register HL after the addition is the higher order of the pair register BC indicated by the first operand. This is an instruction for storing in the register B. The INCENSOU instruction is suitable for transferring a value stored in an address subsequent to the address indicated by the value of the HL register to the register. In addition, when the INCENSOU instruction determines whether to repeat the instruction based on the value stored in the address indicated by the value stored in the HL register after execution of the instruction, It is suitable to use the instruction because the address indicated by the value stored in the HL register can be set to the next address by adding 1 to the HL register by the instruction.

例えば、上述の特別図柄変動時間抽選処理のステップS1109では、「INCTENSOU BC,(HL)」を実行することによって、HLレジスタに記憶された2バイト長の値(174FH)に1を加算し、加算後のHLレジスタの値(1750H)で示されるアドレスに記憶された1バイト長の値(AEH)を、BCレジスタのうちの下位のCレジスタに記憶した後に、HLレジスタに記憶された2バイト長の値にさらに1を加算し、加算後のHLレジスタの値(1751H)で示されるアドレスに記憶された1バイト長の値(20)を、BCレジスタのうちの上位のBレジスタに記憶している。   For example, in step S1109 of the special symbol variation time lottery process described above, 1 is added to the 2-byte length value (174FH) stored in the HL register by executing “INCENSOUBC, (HL)”. The 1-byte length value (AEH) stored at the address indicated by the value (1750H) of the later HL register is stored in the lower C register of the BC register, and then the 2-byte length stored in the HL register. 1 is added to the value of 1 and the 1-byte length value (20) stored at the address indicated by the value of the HL register (1751H) after addition is stored in the upper B register of the BC registers. Yes.

また、「INCTENSOU BC,(HL)」命令では、必要なステート数は14ステート、必要なバイト数は2バイトである。一方、従来の命令によってINCTENSOU命令と同様の処理を行う場合には、図107に示すように、必要なステート数は26ステート(=6+7+6+7)、必要なバイト数は4バイト(=1+1+1+1)である。したがって、HLレジスタの値で示されるアドレスの次の連続した2つのアドレスに格納された値をBCレジスタに転送する場合に「INCTENSOU BC,(HL)」命令を使用すれば、制御プログラムの処理時間を短縮して制御負担を軽減することができる上に、プログラムコード量を削減することができ、メモリ容量が制限されているROMの記憶領域を有効に利用することができる場合がある。   In the “INCENSOUBC BC, (HL)” instruction, the required number of states is 14 and the required number of bytes is 2 bytes. On the other hand, when the same processing as the INCENSOU instruction is performed by the conventional instruction, as shown in FIG. 107, the required number of states is 26 states (= 6 + 7 + 6 + 7), and the required number of bytes is 4 bytes (= 1 + 1 + 1 + 1). . Therefore, when the value stored in the next two consecutive addresses after the address indicated by the value of the HL register is transferred to the BC register, the processing time of the control program can be obtained by using the “INCTENSOU BC, (HL)” instruction. In addition, it is possible to reduce the control burden and reduce the amount of program code, and in some cases, it is possible to effectively use the storage area of the ROM with a limited memory capacity.

また、遊技性を高めるためにプログラムコードが増えたとしても、プログラム容量の増加や処理速度の低下を抑止できる場合がある。特に、本実施形態では、ステップS1109〜S1111のループ処理、またはステップS1114〜S1116のループ処理においてINCTENSOU命令を繰り返し実行することになるため、処理速度の短縮の効果が高い。また、プログラム容量を削減することによって、開発者のコーディングミスやチェックミスを減らし、デバッグが容易で開発効率を高めることが可能となることに加えて、遊技台として適正な機能を有するか否かを外部機関が確認する際にも、確認作業のミスを防止でき、遊技者が安心して遊技を行うことができる遊技台を提供できる場合がある。   Further, even if the program code is increased in order to improve game play, an increase in program capacity and a decrease in processing speed may be suppressed. In particular, in the present embodiment, the INCENSOOU instruction is repeatedly executed in the loop processing of steps S1109 to S1111 or the loop processing of steps S1114 to S1116, so that the effect of reducing the processing speed is high. Also, by reducing the program capacity, it is possible to reduce developer coding errors and check mistakes, facilitate debugging, increase development efficiency, and whether or not it has an appropriate function as a game machine. Even when the external organization confirms, there may be a case where it is possible to prevent a mistake in the confirmation work and to provide a game table that allows the player to play the game with peace of mind.

<特殊命令/TENSOUINC命令>   <Special instruction / TENSOUINC instruction>

特殊命令の一つであるTENSOUINC命令(TENSOUINC OP1,OP2)は、第2オペランドOP2で示される2つのレジスタの値で示されるアドレスに記憶された1バイト長の値を、第1オペランドOP1で示される2つのレジスタのうちの下位のレジスタに記憶し、第2オペランドOP2で示される2つのレジスタに記憶された2バイト長の値に1を加算した後に、第2オペランドOP2で示される2つのレジスタの値で示されるアドレスに記憶された1バイト長の値を、第1オペランドOP1で示される2つのレジスタのうちの上位のレジスタに記憶し、第2オペランドOP2で示される2つのレジスタに記憶された2バイト長の値にさらに1を加算するための命令である。TENSOUINC命令の命令コードの上位1バイトは固定値(この例ではEDH)とし、下位バイトは、命令データテーブルの上位ビット1H(0001B)と下位ビット6H(0110B)〜7H(0111B)の組合せと、命令データテーブルの上位ビットDH(1101B)と下位ビット0H(0000B)〜2H(0010B)の組合せに割り当てている。本例では、第1オペランドOP1にアキュムレータを含む機械命令のコードを連番(例えば、「TENSOUINC AC,(HL)」命令のコードがEDD0H、「TENSOUINC AE,(HL)」のコードがEDD1H)にしている。また、第1オペランドOP1にアキュムレータを含む命令のうちの特定のTENSOUINC命令の機械命令のコード(例えば、「TENSOUINC AE,(HL)」命令のコードがEDD1H)と、第1オペランドOP1にアキュムレータを含まない命令のうちの特定のTENSOUINC命令の機械命令のコード(例えば、「TENSOUINC BD,(HL)」命令のコードがEDD2H)を連番にしている。また、第1オペランドOP1にアキュムレータを含まずペアレジスタを含む命令のうちの複数のTENSOUINC命令の機械命令のコード(例えば、「TENSOUINC BC,(HL)」命令のコードがED16H、「TENSOUINC DE,(HL)」命令のコードがED17H)と、第1オペランドOP1にアキュムレータを含まない命令のうちの特定のTENSOUINC命令の機械命令のコード(例えば、「TENSOUINC BD,(HL)」命令のコードがEDD2H)とを離れた番号にしている。また、TENSOUINC命令とINCTENSOU命令は、同一の第1オペランドOP1の命令はTENSOUINC命令のほうがINCTENSOU命令よりも番号が若い(例えば、「TENSOUINC BC,(HL)」命令のコードがED16H、「INCTENSOU BC,(HL)」命令のコードがED18H)。また、第1オペランドOP1にアキュムレータを含むTENSOUINC命令の機械命令のコード(例えば、「TENSOUINC AC,(HL)」命令のコードがEDD0H)と、第1オペランドOP1にアキュムレータを含むINCTENSOU命令の機械命令のコード(例えば、「INCTENSOU AC,(HL)」命令のコードがEDD4H)とは離れた番号、および/またはTENSOUINC命令とINCTENSOU命令以外の命令の機械命令のコード(例えば、コードEDD3H)の前後にしている。   The TENSOUINC instruction (TENSOUINC OP1, OP2), which is one of the special instructions, indicates the 1-byte length value stored in the address indicated by the two register values indicated by the second operand OP2 by the first operand OP1. Two registers indicated by the second operand OP2 after adding 1 to the 2-byte length value stored in the two registers indicated by the second operand OP2 The 1-byte length value stored at the address indicated by the value is stored in the upper register of the two registers indicated by the first operand OP1, and is stored in the two registers indicated by the second operand OP2. This is an instruction for adding 1 to a 2-byte length value. The upper 1 byte of the instruction code of the TENSOUINC instruction is a fixed value (EDH in this example), and the lower byte is a combination of the upper bit 1H (0001B) and the lower bits 6H (0110B) to 7H (0111B) of the instruction data table. The higher order bit DH (1101B) and the lower order bits 0H (0000B) to 2H (0010B) of the instruction data table are assigned. In this example, the code of the machine instruction including the accumulator in the first operand OP1 is a serial number (for example, the code of “TENSOUINC AC, (HL)” is EDD0H, and the code of “TENSOUINC AE, (HL)” is EDD1H). ing. Also, a machine instruction code of a specific TENSOUINC instruction (for example, “TENSOUINC AE, (HL)” instruction code is EDD1H) among instructions including an accumulator in the first operand OP1, and an accumulator is included in the first operand OP1. Among the non-instructions, a machine instruction code of a specific TENSOUINC instruction (for example, a code of “TENSOUINC BD, (HL)” instruction is EDD2H) is serialized. Also, the machine instruction code of a plurality of TENSOUINC instructions (for example, “TENSOUINC BC, (HL)” instruction code is ED16H, “TENSOUINC DE, ( HL) "instruction code is ED17H), and a specific TENSOUINC instruction machine instruction code (eg," TENSOUINC BD, (HL) "instruction code is EDD2H) among instructions that do not include an accumulator in the first operand OP1. And the numbers apart. In addition, the TENSOUINC instruction and the INCENSOU instruction have the same number of instructions in the first operand OP1 in the TENSOUINC instruction than the INCENSOU instruction (for example, the code of “TENSOUINC BC, (HL)” instruction is ED16H, “INCTENSOU BC, (HL) "instruction code is ED18H). Also, the machine instruction code of the TENSOUINC instruction including the accumulator in the first operand OP1 (for example, the code of “TENSOUIC AC, (HL)” instruction is EDD0H) and the machine instruction of the INCTENSOU instruction including the accumulator in the first operand OP1 Codes (for example, the code of the “INCTENSOU AC, (HL)” instruction is EDD4H) and / or before and after the machine instruction code of the instruction other than the TENSOUINC instruction and the INCENSOU instruction (for example, the code EDD3H) Yes.

「TENSOUINC BC,(HL)」命令を例に挙げると、第2オペランドで示されるペアレジスタHLの値で示されるアドレス(HL)に記憶された1バイト長の値を、第1オペランドで示されるペアレジスタBCのうちの下位のレジスタCに記憶し、第2オペランドで示されるペアレジスタHLに記憶された2バイト長の値に1を加算した後に、第2オペランドで示されるペアレジスタHLの値で示されるアドレス(HL)に記憶された1バイト長の値を、第1オペランドで示されるペアレジスタBCのうちの上位のレジスタBに記憶し、第2オペランドで示されるペアレジスタHLに記憶された2バイト長の値にさらに1を加算するための命令である。TENSOUINC命令は、HLレジスタの値で示されるアドレス以降のアドレスに格納されている値をレジスタに転送するのに適している。また、TENSOUINC命令は、該命令を実行後にBレジスタの値が0か否かで該命令を繰り返すか否かの判断処理を行う場合、繰り返すと判断した場合には判断前にHLレジスタにプラス1されているために該命令を使用するのに適している。また、繰り返し処理を行わない場合にもTENSOUINC命令後はHLレジスタの値をプラス1した状態で次の処理を行うことができるので該命令を使用するのに適している。   Taking the “TENSOUINC BC, (HL)” instruction as an example, the 1-byte length value stored in the address (HL) indicated by the value of the pair register HL indicated by the second operand is indicated by the first operand. The value of the pair register HL indicated by the second operand is stored in the lower register C of the pair register BC and 1 is added to the 2-byte length value stored in the pair register HL indicated by the second operand. 1 byte length value stored in the address (HL) indicated by is stored in the upper register B of the pair register BC indicated by the first operand, and is stored in the pair register HL indicated by the second operand. This is an instruction for adding 1 to a 2-byte length value. The TENSOUINC instruction is suitable for transferring a value stored in an address after the address indicated by the value of the HL register to the register. In addition, when the TENSOUINC instruction determines whether to repeat the instruction depending on whether or not the value of the B register is 0 after the execution of the instruction, if it is determined to repeat, the HL register is incremented by 1 before the determination. Is suitable for using the instruction. Even when the repeated processing is not performed, after the TENSOUINC instruction, the next process can be performed with the value of the HL register added by 1, so that the instruction is suitable.

また、「TENSOUINC BC,(HL)」命令では、必要なステート数は14ステート、必要なバイト数は2バイトである。一方、従来の命令によってTENSOUINC命令と同様の処理を行う場合には、図107に示すように、必要なステート数は26ステート(=7+6+7+6)、必要なバイト数は4バイト(=1+1+1+1)である。したがって、HLレジスタの値で示されるアドレスと次のアドレスに格納された値をBCレジスタに転送する場合に「TENSOUINC BC,(HL)」命令を使用すれば、制御プログラムの処理時間を短縮して制御負担を軽減することができる上に、プログラムコード量を削減することができ、メモリ容量が制限されているROMの記憶領域を有効に利用することができる場合がある。また、遊技性を高めるためにプログラムコードが増えたとしても、プログラム容量の増加や処理速度の低下を抑止できる場合がある。また、プログラム容量を削減することによって、開発者のコーディングミスやチェックミスを減らし、デバッグが容易で開発効率を高めることが可能となることに加えて、遊技台として適正な機能を有するか否かを外部機関が確認する際にも、確認作業のミスを防止でき、遊技者が安心して遊技を行うことができる遊技台を提供できる場合がある。なお、INCTENSOU命令とTENSOUINC命令は、CPUに両方実行可能に備えるようにしても良いし、何れか一方のみ実行可能に備えるようにしてもよい。
<特殊命令/CPT命令>
In the “TENSOUINC BC, (HL)” instruction, the required number of states is 14 and the required number of bytes is 2 bytes. On the other hand, when processing similar to that of the TENSOUINC instruction is performed using the conventional instruction, as shown in FIG. 107, the required number of states is 26 states (= 7 + 6 + 7 + 6) and the required number of bytes is 4 bytes (= 1 + 1 + 1 + 1). . Therefore, when transferring the address indicated by the value of the HL register and the value stored at the next address to the BC register, the processing time of the control program can be shortened by using the “TENSOUINC BC, (HL)” instruction. In addition to reducing the control burden, the amount of program code can be reduced, and the ROM storage area with limited memory capacity can be used effectively. Further, even if the program code is increased in order to improve game play, an increase in program capacity and a decrease in processing speed may be suppressed. Also, by reducing the program capacity, it is possible to reduce developer coding errors and check mistakes, facilitate debugging, increase development efficiency, and whether or not it has an appropriate function as a game machine. Even when an external organization confirms, there may be a case where it is possible to provide a gaming table that can prevent mistakes in confirmation work and allow a player to play a game with peace of mind. Note that both the INCENSOU instruction and the TENSOUINC instruction may be provided to be executable in the CPU, or only one of them may be provided to be executable.
<Special instruction / CPT instruction>

特殊命令の一つである「CPT A,(n:イミディエイト値)」命令は、Aレジスタの内容と、Tレジスタを上位、イミディエイト値を下位で示すアドレスのデータを比較する命令であり、例えば、TレジスタにF0Hが記憶された状態で「CPT A,(40H)」を実行した場合、Aレジスタの内容と、Tレジスタを上位、イミディエイト値を下位で示すアドレス(F040H)のデータが比較される。
The “CPT A, (n: immediate value)” instruction, which is one of the special instructions, is an instruction for comparing the contents of the A register with the data at the address indicating the T register as the upper level and the immediate value as the lower level. When “CPT A, (40H)” is executed while F0H is stored in the T register, the contents of the A register are compared with the data at the address (F040H) indicating the T register as the upper level and the immediate value as the lower level. .

<特殊命令/ADDONETWO命令>   <Special Instruction / ADDONETWO Instruction>

特殊命令の一つであるADDONETWO命令(ADDONETWO OP1,OP2)は、第1オペランドOP1で示されるレジスタに記憶された1バイト長の値に、第2オペランドOP2で示される2つのレジスタに記憶された2バイト長の値(または、第2オペランドOP2で示される2バイト長のイミディエイト値)を加算するための命令である。ADDONETWO命令の命令コードの上位1バイトは固定値(この例ではEDH)とし、下位バイトは、命令データテーブルの上位ビット4H(0100B)と下位ビットAH(1010B)の組合せに割り当てている。このように、従来は空き領域とされていた命令の領域を利用することで、限られたハードウェア資源を有効利用することができる上に、空き領域に不正な命令(隠し命令)を埋め込むような不正行為を未然に防止することができ、遊技の公平性を担保できる場合がある。なお、ADDONETWO命令(ADDONETWO OP1,OP2)は、キャリーが発生し易く、Aレジスタに記憶された1バイト長の値(例えば、00H)にHLレジスタに記憶された2バイト長の値(例えば、0100H)を加算する場合には、キャリーが発生する。すなわち、Hレジスタが00H以外である場合にADDONETWO命令(ADDONETWO OP1,OP2)を実行することでキャリーを発生させることができる。なお、ADDTWOONE命令とADDONETWO命令は、CPUに両方備えるようにしても良いし、何れか一方のみ備えるようにしてもよい。   The ADDONETWO instruction (ADDONETWO OP1, OP2), which is one of the special instructions, is stored in the two registers indicated by the second operand OP2 in the 1-byte length value stored in the register indicated by the first operand OP1. This is an instruction for adding a 2-byte length value (or an immediate value of 2-byte length indicated by the second operand OP2). The upper 1 byte of the instruction code of the ADDONETWO instruction is a fixed value (EDH in this example), and the lower byte is assigned to a combination of the upper bit 4H (0100B) and the lower bit AH (1010B) of the instruction data table. In this way, by using an instruction area that has been considered as a free area in the past, it is possible to effectively use limited hardware resources and to embed an illegal instruction (hidden instruction) in the free area. In some cases, it is possible to prevent illegal acts and to ensure the fairness of the game. Note that the ADDONETWO instruction (ADDONETWO OP1, OP2) is easy to carry, and a 1-byte length value (eg, 00H) stored in the A register is a 2-byte length value (eg, 0100H) stored in the HL register. ) Adds a carry. That is, when the H register is other than 00H, a carry can be generated by executing an ADDONETWO instruction (ADDONETWO OP1, OP2). Note that both the ADDTWOONE instruction and the ADDONETWO instruction may be provided in the CPU, or only one of them may be provided.

<特殊命令/SUBTWOONE命令>   <Special instruction / SUBTWOONE instruction>

特殊命令の一つであるSUBTWOONE命令(SUBTWOONE OP1,OP2)は、第1オペランドOP1で示される2つのレジスタに記憶された2バイト長の値から、第2オペランドOP2で示されるレジスタに記憶された1バイト長の値(または、第2オペランドOP2で示される1バイト長のイミディエイト値)を減算するための命令である。SUBTWOONE命令の命令コードの上位1バイトは固定値(この例ではEDH)とし、下位バイトは、命令データテーブルの上位ビット4H(0100B)と下位ビット8H(1000B)の組合せに割り当てている。このように、従来は空き領域とされていた命令の領域を利用することで、限られたハードウェア資源を有効利用することができる上に、空き領域に不正な命令(隠し命令)を埋め込むような不正行為を未然に防止することができ、遊技の公平性を担保できる場合がある。なお、SUBTWOONE命令(SUBTWOONE OP1,OP2)は、キャリーが発生し難いが、HLレジスタに記憶された2バイト長の値(例えば、0001H)からAレジスタに記憶された1バイト長の値(例えば、FFH)を減算する場合には、キャリーが発生する。すなわち、SUBTWOONE命令(SUBTWOONE OP1,OP2)を実行後にキャリーが発生する場合には、Hレジスタが00Hであると判断することができる。
<データテーブルの変形例>
The SUBTWOONE instruction (SUBTWOONE OP1, OP2), which is one of the special instructions, is stored in the register indicated by the second operand OP2 from the 2-byte length value stored in the two registers indicated by the first operand OP1. This is an instruction for subtracting a 1-byte value (or a 1-byte immediate value indicated by the second operand OP2). The upper 1 byte of the instruction code of the SUBTWOONE instruction is a fixed value (EDH in this example), and the lower byte is assigned to a combination of the upper bit 4H (0100B) and the lower bit 8H (1000B) of the instruction data table. In this way, by using an instruction area that has been considered as a free area in the past, it is possible to effectively use limited hardware resources and to embed an illegal instruction (hidden instruction) in the free area. In some cases, it is possible to prevent illegal acts and to ensure the fairness of the game. The SUBTWOONE instruction (SUBTWOONE OP1, OP2) is difficult to carry, but a 2-byte length value (for example, 0001H) stored in the HL register to a 1-byte length value (for example, 0001H) When subtracting (FFH), a carry occurs. That is, if a carry occurs after executing the SUBTWOONE instruction (SUBTWOONE OP1, OP2), it can be determined that the H register is 00H.
<Modification of data table>

次に、図109を用いて、上述のデータテーブルの変形例について説明する。なお、同図は、テーブル選択用テーブル、第1変動パターン選択テーブル、および第2変動パターン選択テーブルの変形例を示した図であり、上記図103に相当する図である。   Next, a modified example of the above data table will be described with reference to FIG. The figure shows a modification of the table selection table, the first variation pattern selection table, and the second variation pattern selection table, and corresponds to FIG. 103 described above.

同図(b)に示す第1変動パターン選択テーブルでは、上記図103(b)に示す第1変動パターン選択テーブルに対して、乱数の個数の項目を乱数の上限の項目に変更している。また、同図(c)に示す第2変動パターン選択テーブルでは、上記図103(c)に示す第2変動パターン選択テーブルに対して、乱数の個数の値を変更している。   In the first variation pattern selection table shown in FIG. 10B, the item of the number of random numbers is changed to the item of the upper limit of the random numbers as compared with the first variation pattern selection table shown in FIG. In the second variation pattern selection table shown in FIG. 10C, the number of random numbers is changed with respect to the second variation pattern selection table shown in FIG.

<特別図柄変動時間抽選処理の変形例>   <Modified example of special symbol variation time lottery processing>

次に、図110を用いて、上記図105に示す特別図柄変動時間抽選処理の変形例について説明する。なお、同図は、変形例に係る特別図柄変動時間抽選処理の流れを示すフローチャートである。   Next, a modified example of the special symbol variation time lottery process shown in FIG. 105 will be described with reference to FIG. In addition, the figure is a flowchart which shows the flow of the special symbol fluctuation | variation time lottery process which concerns on a modification.

この変形例に係る特別図柄変動時間抽選処理では、上記図105に示す特別図柄変動時間抽選処理の「INCTENSOU BC,(HL)」命令を用いたステップS1109の処理やステップS1114の処理を、「INCTENSOU AC,(HL)」命令を用いたステップS1150の処理やステップS1152の処理に変更するとともに、ステップS1151、S1153において、上述のCPT命令を利用している。   In the special symbol variation time lottery process according to this modified example, the process of step S1109 or the process of step S1114 using the “INCTENSOU BC, (HL)” command of the special symbol variation time lottery process shown in FIG. The processing is changed to the processing in step S1150 using the “AC, (HL)” instruction or the processing in step S1152, and the above-described CPT instruction is used in steps S1151 and S1153.

具体的には、ステップS1150では、HLレジスタの値で示されるアドレスの次の連続した2つのアドレスに格納された値をACレジスタに転送する(INCTENSOU AC,(HL))。例えば、HLレジスタの値が174FHの場合には、HLレジスタの値で示されるアドレスの次の連続した2つのアドレス(1750H、1751H)に格納された値をACレジスタに転送することによって、Aレジスタに19を、CレジスタにAEHを記憶する。   Specifically, in step S1150, the values stored in the two consecutive addresses next to the address indicated by the value of the HL register are transferred to the AC register (INCTENSOU AC, (HL)). For example, when the value of the HL register is 174FH, the value stored in the two consecutive addresses (1750H, 1751H) next to the address indicated by the value of the HL register is transferred to the AC register, so that the A register 19 and AEH are stored in the C register.

次のステップS1151では、「CPT A,(41H)」を実行することによって、Aレジスタの内容と、Tレジスタ(F0H)を上位、イミディエイト値(41H)を下位で示すアドレス(F041H)のデータ、すなわち、上述の乱数1記憶領域に記憶された乱数1と、を比較する(Aレジスタの値から乱数1を減算する)。次のステップS1154では、ステップS1151の比較(減算)の結果、キャリーが発生しないか否か、すなわち減算の結果が正の値になったかどうかを判定し、該当する場合にはステップS1112に進み、該当しない場合には該当するまでステップS1150〜S1151の処理を繰り返し実行する。   In the next step S1151, by executing “CPT A, (41H)”, the contents of the A register, the data of the address (F041H) indicating the T register (F0H) as the upper level, and the immediate value (41H) as the lower level, That is, the random number 1 stored in the random number 1 storage area is compared (the random number 1 is subtracted from the value of the A register). In the next step S1154, it is determined whether or not a carry occurs as a result of the comparison (subtraction) in step S1151, that is, whether or not the result of the subtraction has become a positive value. If applicable, the process proceeds to step S1112. If not applicable, the processing of steps S1150 to S1151 is repeatedly executed until it is applicable.

また、ステップS1152では、HLレジスタの値で示されるアドレスの次の連続した2つのアドレスに格納された値をACレジスタに転送する(INCTENSOU AC,(HL))。例えば、HLレジスタの値が17FFHの場合には、HLレジスタの値で示されるアドレスの次の連続した2つのアドレス(1800H、1801H)に格納された値をACレジスタに転送することによって、Aレジスタに255を、Cレジスタに01Hを記憶する。   In step S1152, the values stored at the two consecutive addresses next to the address indicated by the value of the HL register are transferred to the AC register (INCENSOU AC, (HL)). For example, when the value of the HL register is 17FFH, the value stored in the two consecutive addresses (1800H and 1801H) next to the address indicated by the value of the HL register is transferred to the AC register, so that the A register 255 and 01H are stored in the C register.

次のステップS1153では、「CPT A,(42H)」を実行することによって、Aレジスタの内容と、Tレジスタ(F0H)を上位、イミディエイト値(42H)を下位で示すアドレス(F042H)のデータ、すなわち、上述の乱数2記憶領域に記憶された乱数2を比較する(Aレジスタの値から乱数2を減算する)。次のステップS1155では、ステップS1153の比較(減算)の結果、キャリーが発生しないか否か、すなわち減算の結果が正の値になったかどうかを判定し、該当する場合にはステップS1117に進み、該当しない場合には該当するまでステップS1152〜S1153の処理を繰り返し実行する。
<初期設定処理>
In the next step S1153, by executing “CPT A, (42H)”, the contents of the A register, the data of the address (F042H) indicating the T register (F0H) as the higher order, and the immediate value (42H) as the lower order, That is, the random number 2 stored in the random number 2 storage area is compared (subtracts the random number 2 from the value of the A register). In the next step S1155, as a result of the comparison (subtraction) in step S1153, it is determined whether or not a carry occurs, that is, whether or not the result of the subtraction has a positive value. If applicable, the process proceeds to step S1117. If not applicable, the processing of steps S1152 to S1153 is repeatedly executed until it is applicable.
<Initial setting process>

次に、図111および図112を用いて、上述の主制御部メイン処理の初期設定2(ステップS107)で実行される初期設定処理について説明する。なお、図111(a)は、ROM306に記憶される初期設定データテーブルの一例を示した図であり、同図(b)は、初期設定処理後のRAM308の記憶領域の一部を示した図であり、同図(c)は、初期設定処理の流れを示すフローチャートである。また、図112は、初期設定処理のプログラムリストの一例である。   Next, the initial setting process executed in the initial setting 2 (step S107) of the main control unit main process described above will be described with reference to FIGS. 111 and 112. FIG. 111A shows an example of the initial setting data table stored in the ROM 306, and FIG. 111B shows a part of the storage area of the RAM 308 after the initial setting process. FIG. 6C is a flowchart showing the flow of the initial setting process. FIG. 112 is an example of a program list for initial setting processing.

ステップS1201では、上述のTENSOUINC命令(「TENSOUINC BD,(HL)」によって、HLレジスタの値で示されるアドレス(HL)に記憶された1バイト長の値を、BDレジスタのうちの下位のDレジスタに記憶し、HLレジスタに記憶された2バイト長の値に1を加算した後に、HLレジスタの値で示されるアドレス(HL)に記憶された1バイト長の値を、BCレジスタのうちの上位のBレジスタに記憶し、HLレジスタに記憶された2バイト長の値にさらに1を加算する。例えば、HLレジスタに、同図(a)に示す初期設定データテーブルの先頭アドレスである100DHを設定した場合には、DレジスタにはF0Hが、Bレジスタには3が記憶される。   In step S1201, the 1-byte length value stored in the address (HL) indicated by the value of the HL register by the above-described TENSOUINC instruction (“TENSOUINC BD, (HL)”) After adding 1 to the 2-byte length value stored in the HL register, the 1-byte length value stored in the address (HL) indicated by the HL register value is 1 is added to the 2-byte length value stored in the HL register, for example, the initial address of the initial setting data table shown in FIG. In this case, F0H is stored in the D register and 3 is stored in the B register.

次のステップS1202では、上述のTENSOUINC命令(「TENSOUINC AE,(HL)」によって、HLレジスタの値で示されるアドレス(HL)に記憶された1バイト長の値を、AEレジスタのうちの下位のEレジスタに記憶し、HLレジスタに記憶された2バイト長の値に1を加算した後に、HLレジスタの値で示されるアドレス(HL)に記憶された1バイト長の値を、AEレジスタのうちの上位のAレジスタに記憶し、HLレジスタに記憶された2バイト長の値にさらに1を加算する。例えば、先の例では、Eレジスタには、100FHに記憶されている値である17Hが、Aレジスタには、1010に記憶されている値である01Hが記憶され、HLレジスタの値は1011Hに更新される。   In the next step S1202, the 1-byte length value stored in the address (HL) indicated by the value of the HL register by the above-mentioned TENSOUINC instruction (“TENSOUINC AE, (HL)”) After storing 1 in the 2-byte length value stored in the E register and the 2-byte length value stored in the HL register, the 1-byte length value stored in the address (HL) indicated by the HL register value is stored in the AE register. 1 is added to the 2-byte length value stored in the HL register, for example, in the above example, the E register has a value 17H stored in 100FH. The A register stores 01H, which is the value stored in 1010, and the value in the HL register is updated to 1011H.

次のステップS1203では、Aレジスタの値をDEレジスタの値で示されるアドレス(DE)に記憶する。先の例では、Aレジスタの値である01Hを、DEレジスタの値で示されるアドレスであるRAM308のF017Hに記憶する(同図(b)参照)。   In the next step S1203, the value of the A register is stored in the address (DE) indicated by the value of the DE register. In the previous example, 01H, which is the value of the A register, is stored in F017H of the RAM 308, which is an address indicated by the value of the DE register (see (b) in the figure).

次のステップS1204では、Bレジスタの値から1を減算し、減算結果が0になるまでステップS1202〜S1203の処理を繰り返し実行し(ステップS1202の処理のアドレスまで相対ジャンプして処理を実行し)、減算結果が0になった場合にはステップS1205に進む。   In the next step S1204, 1 is subtracted from the value of the B register, and the processing of steps S1202 to S1203 is repeatedly executed until the subtraction result becomes 0 (relative jump to the processing address of step S1202 is executed). If the subtraction result is 0, the process proceeds to step S1205.

先の例では、Bレジスタが2の場合には、ステップS1202の処理により、Eレジスタには、1011Hに記憶されている値である20Hが、Aレジスタには、1012Hに記憶されている値である16Hが記憶され、HLレジスタの値は1013Hに更新され、ステップS1203の処理により、Aレジスタの値である16Hを、DEレジスタの値で示されるアドレスであるRAM308のF020Hに記憶する(同図(b)参照)。   In the above example, when the B register is 2, 20H which is the value stored in 1011H is stored in the E register and the value stored in 1012H is stored in the A register by the processing in step S1202. 16H is stored, the value of the HL register is updated to 1013H, and the value of 16H, which is the value of the A register, is stored in F020H of the RAM 308, which is the address indicated by the value of the DE register, by the processing of step S1203 (same figure). (See (b)).

また、Bレジスタが1の場合には、ステップS1202の処理により、Eレジスタには、1013Hに記憶されている値である3AHが、Aレジスタには、1014Hに記憶されている値である06Hが記憶され、HLレジスタの値は1015Hに更新され、ステップS1203の処理により、Aレジスタの値である06Hを、DEレジスタの値で示されるアドレスであるRAM308のF03AHに記憶する(同図(b)参照)。なお、上記F017H、F020H、F03AHに記憶する遊技設定(遊技制御に用いる各種情報)としては、例えば電源ステータス、払出制御コマンド加工種別、表示器表示ステータスなどが挙げられ、また、遊技設定の数は、複数でもよいし、1つのみでもよい。また、初期設定処理(moDataSet)は、処理開始時のHLレジスタの値を異ならせることにより(HLレジスタに設定するアドレスを、初期設定データテーブルとは異なる他のテーブルの先頭アドレスなどに設定することにより)、複数の処理から呼び出し可能な(例えば、HLレジスタを引数として呼び出し可能な)汎用的なデータ設定処理モジュールとして扱ってもよい。この場合、プログラム容量の削減や処理速度の向上を図ることができる。   If the B register is 1, 3AH which is the value stored in 1013H is stored in the E register and 06H which is the value stored in 1014H is stored in the A register by the processing in step S1202. The value of the HL register is updated to 1015H, and the value of 06H, which is the value of the A register, is stored in F03AH of the RAM 308, which is the address indicated by the value of the DE register, by the processing of step S1203 ((b) in the figure). reference). The game settings (various information used for game control) stored in F017H, F020H, and F03AH include, for example, power status, payout control command processing type, display display status, etc., and the number of game settings is There may be more than one or only one. In addition, the initial setting process (moDataSet) is performed by setting the value of the HL register at the start of processing (the address set in the HL register is set to the head address of another table different from the initial setting data table). Therefore, it may be handled as a general-purpose data setting processing module that can be called from a plurality of processes (for example, can be called using an HL register as an argument). In this case, the program capacity can be reduced and the processing speed can be improved.

この初期設定処理では、ステップS1201、S1202でTENSOUINC命令を使用しているため、ステート数を従来の26ステートから14ステートに削減することができ、処理時間を短縮することができる上に、バイト数を従来の4バイトから2バイトに削減することができ、プログラム容量を削減することができる。特に、この例では、ステップS1202〜S204のループ処理においてTENSOUINC命令を繰り返し実行することになるため、処理速度の短縮の効果が高い。   In this initial setting process, since the TENSOUINC instruction is used in steps S1201 and S1202, the number of states can be reduced from the conventional 26 states to 14 states, the processing time can be shortened, and the number of bytes can be reduced. Can be reduced from the conventional 4 bytes to 2 bytes, and the program capacity can be reduced. In particular, in this example, since the TENSOUINC instruction is repeatedly executed in the loop processing of steps S1202 to S204, the effect of reducing the processing speed is high.

また、TENSOUINC命令の中でも、Aレジスタ(アキュムレータ)と他のレジスタのペアをオペランドとする命令(本実施形態では、TENSOUINC AC,(HL)、TENSOUINC AE,(HL))は、Aレジスタの値を変更すると同時に、ペアレジスタ(本実施形態では、BCレジスタとDEレジスタ)の上位バイトのレジスタ(本実施形態では、BレジスタとDレジスタ)を固定しつつ、ペアレジスタの下位バイトのレジスタ(本実施形態では、CレジスタとEレジスタ)の値だけを変更することができるため、従来よりも高度なプログラミングが可能で、プログラム容量の削減や処理速度の向上を図ることができる。   Also, among the TENSOUINC instructions, the instruction (in this embodiment, TENSOUINC AC, (HL), TENSOUINC AE, (HL)) having a pair of an A register (accumulator) and another register as an operand takes the value of the A register. At the same time, the upper byte register (B register and D register in this embodiment) of the pair register (BC register and DE register in this embodiment) is fixed, while the lower byte register (this embodiment) of the pair register is fixed. In the embodiment, only the values of the C register and the E register can be changed, so that more advanced programming than before can be performed, and the program capacity can be reduced and the processing speed can be improved.

また、TENSOUINC命令の中でも、第1のペアレジスタ(本実施形態では、BCレジスタ)の上位バイトのレジスタ(本実施形態では、Bレジスタ)と、第2のペアレジスタ(本実施形態では、DEレジスタ)の上位バイトのレジスタ(本実施形態では、Dレジスタ)のペアをオペランドとする命令(本実施形態では、TENSOUINC BD,(HL))は、第1のペアレジスタと第2のペアレジスタの上位バイトのレジスタの値のみを変更することができるため、従来よりも高度なプログラミングが可能で、プログラム容量の削減や処理速度の向上を図ることができる。   Among the TENSOUINC instructions, the upper byte register (B register in the present embodiment) of the first pair register (BC register in the present embodiment) and the second pair register (DE register in the present embodiment) ) Instruction (TENSOUINC BD, (HL) in this embodiment) having a pair of registers (D register in this embodiment) as operands is higher in the first pair register and the second pair register. Since only the byte register value can be changed, more advanced programming than before is possible, and the program capacity can be reduced and the processing speed can be improved.

また、TENSOUINC命令の中でも、オペランドにBレジスタを含む命令(本実施形態では、TENSOUINC BC,(HL)、TENSOUINC BD,(HL))を利用し、かつ、上述の初期設定処理のステップS1202〜S1204のループ処理のように、Bレジスタによってループ処理の回数を判定するように構成すれば、ループ処理のプログラム容量の削減や処理速度の向上を図ることができる。   Also, among the TENSOUINC instructions, instructions including the B register in the operand (TENSOUINC BC, (HL), TENSOUINC BD, (HL) in the present embodiment) are used, and steps S1202 to S1204 of the above-described initial setting process are used. If the B register is used to determine the number of times loop processing is performed as in the case of loop processing, the program capacity of the loop processing can be reduced and the processing speed can be improved.

なお、CPU304は、TENSOUINC命令とINCTENSOU命令両方を実行可能であり、遊技制御プログラムは第一の命令(TENSOUINC)によるテーブルサーチと第二の命令(INCTENSOU)によるテーブルサーチの両方を実行するようにしてもよい。   Note that the CPU 304 can execute both a TENSOUINC instruction and an INCENSOU instruction, and the game control program executes both a table search by the first instruction (TENSOUINC) and a table search by the second instruction (INCTENSOU). Also good.

「テーブルサーチ」は一般的な用語どおりの意味としてもよく、例えば、一または複数の行と一または複数の列から構成されたテーブル(例えば、図103、図109の第1変動パターン選択テーブル・第2変動パターン選択テーブル、図111の初期設定データテーブル)から対応する行を探し出し、その行の一または複数の列の値を取り出す処理を示してもよいし、探し出した行のテーブル内の行の位置(例えば行番号)を導出する処理としてもよい。同様に対応する列を探し出し、その列の一または複数の行の値を取り出す処理を示すものとしてもよいし、探し出した列のテーブル内の列の位置(例えば列番号)を導出する処理としてもよい。   The “table search” may have a meaning as a general term, for example, a table composed of one or more rows and one or more columns (for example, the first variation pattern selection table of FIG. 103 and FIG. 109). The second variation pattern selection table (initial setting data table of FIG. 111) may be used to search for a corresponding row, and a process of retrieving the value of one or more columns of the row may be indicated. It is good also as processing which derives the position (for example, line number). Similarly, a process for finding a corresponding column and extracting a value of one or a plurality of rows of the column may be indicated, or a process for deriving a column position (for example, a column number) in the table of the searched column. Good.

ここで対応する行を探し出す処理は、探している一または複数の値が、テーブル内の特定の行における一または複数の特定の列の値と一致または関係する場合に、当該特定の行を対応する行とするような処理としてもよい。対応する列を探し出す処理も同様としてもよい。
<主制御部の第2特殊命令>
The process of finding the corresponding row here corresponds to the specific row when the value or values you are looking for match or relate to the value of one or more specific columns in the specific row in the table. It is also possible to perform processing such as making a line to be executed. The process for finding the corresponding column may be the same.
<Second special instruction of main control unit>

次に、主制御部300が備える第2特殊命令について説明する。図113(a)は、主制御部300が備える第2特殊命令の一部を示した図である。   Next, the second special instruction provided in the main control unit 300 will be described. FIG. 113A is a diagram illustrating a part of the second special instruction provided in the main control unit 300.

<第2特殊命令/CPRT命令(演算+リターン命令)>   <Second special instruction / CPRT instruction (operation + return instruction)>

第2特殊命令の一つである「CPRTZ r」命令(または、「CPRTZ (rr)」命令)は、オペランドrが示すレジスタ(または、オペランド(rr)が示すペアレジスタrrに格納されたアドレス)に記憶された値から0を減算し、Zフラグが1にセットされる状態の場合(減算結果が0の場合。以下、同じ)に、スタックポインタSPが示すスタック領域SPに記憶されたデータをプログラムカウンタPCの下位アドレスに、また、スタックポインタSPが示すスタック領域SP+1に記憶されたデータをプログラムカウンタPCの上位アドレスにそれぞれロード(復帰)した後にスタックポインタSPを2つ加算してからZフラグを1にセットし、Zフラグが0にクリアされる状態の場合(減算結果が0以外の場合。以下、同じ)に、後続の処理のアドレスをプログラムカウンタPCにセットしてからZフラグを0にクリアする命令である。なお、プログラムカウンタPCをセットするタイミングとZフラグを0にクリアするタイミングは、逆でもよいし、同時でもよい。   The “CPRTZ r” instruction (or “CPRTZ (rr)” instruction), which is one of the second special instructions, is a register indicated by the operand r (or an address stored in the pair register rr indicated by the operand (rr)). 0 is subtracted from the value stored in, and when the Z flag is set to 1 (when the subtraction result is 0, the same applies hereinafter), the data stored in the stack area SP indicated by the stack pointer SP is After loading (returning) the data stored in the lower address of the program counter PC and in the stack area SP + 1 indicated by the stack pointer SP to the upper address of the program counter PC, two stack pointers SP are added and then the Z flag Is set to 1 and the Z flag is cleared to 0 (when the subtraction result is other than 0. The same applies hereinafter) ), The address of the subsequent processing is set in the program counter PC, and then the Z flag is cleared to 0. It should be noted that the timing for setting the program counter PC and the timing for clearing the Z flag to 0 may be reversed or simultaneous.

また、「CPRTNZ r」命令(または、「CPRTNZ (rr)」命令)は、オペランドrが示すレジスタ(または、オペランド(rr)が示すペアレジスタrrに格納されたアドレス)に記憶された値から0を減算し、Zフラグが0にクリアされる状態の場合に、スタックポインタSPが示すスタック領域SPに記憶されたデータをプログラムカウンタPCの下位アドレスに、また、スタックポインタSPが示すスタック領域SP+1に記憶されたデータをプログラムカウンタPCの上位アドレスにそれぞれロード(復帰)した後にスタックポインタSPを2つ加算してからZフラグを0にクリアし、Zフラグが1にセットされる状態の場合に、後続の処理のアドレスをプログラムカウンタPCにセットしてからZフラグを1にセットする命令である。なお、オペランドrが示すレジスタとしては、B、C、D、E、H、Lレジスタなどが挙げられ、オペランドrrが示すペアレジスタとしては、BC、DE、HLなどが挙げられる(次のCPJR命令も同様)。   Also, the “CPRTNZ r” instruction (or “CPRTNZ (rr)” instruction) is 0 from the value stored in the register indicated by the operand r (or the address stored in the pair register rr indicated by the operand (rr)). When the Z flag is cleared to 0, the data stored in the stack area SP indicated by the stack pointer SP is stored in the lower address of the program counter PC and in the stack area SP + 1 indicated by the stack pointer SP. When the stored data is loaded (returned) to the upper address of the program counter PC, the stack pointer SP is added by two, the Z flag is cleared to 0, and the Z flag is set to 1. Set the Z flag to 1 after setting the address of subsequent processing in the program counter PC It is an instruction to do. The register indicated by the operand r includes B, C, D, E, H, and L registers, and the pair register indicated by the operand rr includes BC, DE, and HL (the next CPJR instruction) The same).

<第2特殊命令/CPJR命令(演算+ジャンプ命令)>   <Second special instruction / CPJR instruction (operation + jump instruction)>

第2特殊命令の一つである「CPJRZ r、e」命令(または、「CPJPZ (rr)、e」命令)は、オペランドrが示すレジスタ(または、オペランド(rr)が示すペアレジスタrrに格納されたアドレス)に記憶された値から0を減算し、Zフラグが1にセットされる状態の場合にプログラムカウンタPC+e(eは+127〜−128の数値)が示すアドレスにジャンプしてからZフラグを1にセットし、Zフラグが0にクリアされる状態の場合に、後続の処理のアドレスをプログラムカウンタPCにセットしてからZフラグを0にクリアする命令である。また、「CPJRNZ r、e」命令(または、「CPJPNZ (rr)、e」命令)は、オペランドrが示すレジスタ(または、オペランドrrが示すペアレジスタ)に記憶された値から0を減算し、Zフラグが0にクリアされる状態の場合にプログラムカウンタPC+e(eは+127〜−128の数値)が示すアドレスにジャンプしてからZフラグを0にクリアし、Zフラグが1にセットされる状態の場合に、後続の処理のアドレスをプログラムカウンタPCにセットしてからZフラグを1にセットする命令である。   The “CPJRZ r, e” instruction (or “CPJPZ (rr), e” instruction), which is one of the second special instructions, is stored in the register indicated by the operand r (or the pair register rr indicated by the operand (rr)). 0 is subtracted from the value stored in the stored address), and when the Z flag is set to 1, the Z flag is jumped to the address indicated by the program counter PC + e (e is a value from +127 to -128) Is set to 1 and the Z flag is cleared to 0, the address of the subsequent processing is set in the program counter PC and then the Z flag is cleared to 0. The “CPJRNZ r, e” instruction (or “CPJPNZ (rr), e” instruction) subtracts 0 from the value stored in the register indicated by the operand r (or the pair register indicated by the operand rr), When the Z flag is cleared to 0, after jumping to the address indicated by the program counter PC + e (e is a value from +127 to -128), the Z flag is cleared to 0 and the Z flag is set to 1 In this case, the Z flag is set to 1 after the address of subsequent processing is set in the program counter PC.

また、「CPJRC r、n、e」命令(または、「CPJRC (rr)、n、e」命令)は、オペランドrが示すレジスタ(または、オペランド(rr)が示すペアレジスタrrに格納されたアドレス)に記憶された値からn(8ビット長のイミディエイト値)を減算し、Cフラグが1にセットされる状態の場合(減算結果が0の場合。以下、同じ)に、プログラムカウンタPC+e(eは+127〜−128の数値)が示すアドレスにジャンプしてからCフラグを1にセットし、Cフラグが0にクリアされる状態の場合(減算結果が0以外の場合。以下、同じ)に、後続の処理のアドレスをプログラムカウンタPCにセットしてからCフラグを0にセットする命令である。また、「CPJRNC r、n、e」命令(または、「CPJRNC (rr)、n、e」命令)は、オペランドrが示すレジスタ(または、オペランド(rr)が示すペアレジスタrrに格納されたアドレス)に記憶された値からn(8ビット長のイミディエイト値)を減算し、Cフラグが0にクリアされる状態の場合に、プログラムカウンタPC+e(eは+127〜−128の数値)が示すアドレスにジャンプしてからCフラグを0にクリアし、Cフラグが1にセットされる状態の場合に、後続の処理のアドレスをプログラムカウンタPCにセットしてからCフラグを1にセットする命令である。   The “CPJRC r, n, e” instruction (or “CPJRC (rr), n, e” instruction) is an address stored in the register indicated by the operand r (or the pair register rr indicated by the operand (rr)). ) Is subtracted from the value stored in (8-bit immediate value), and when the C flag is set to 1 (when the subtraction result is 0, the same applies hereinafter), the program counter PC + e (e Jumps to the address indicated by +127 to -128) and then sets the C flag to 1 and the C flag is cleared to 0 (when the subtraction result is other than 0. The same applies hereinafter) This is an instruction for setting the C flag to 0 after setting the address of the subsequent processing in the program counter PC. Further, the “CPJRNC r, n, e” instruction (or “CPJRNC (rr), n, e” instruction) is an address stored in the register indicated by the operand r (or the pair register rr indicated by the operand (rr)). ) Is subtracted from the value stored in (8-bit immediate value), and when the C flag is cleared to 0, the address indicated by the program counter PC + e (e is a numerical value of +127 to −128) This instruction clears the C flag to 0 after the jump and sets the C flag to 1 after setting the address of the subsequent processing in the program counter PC when the C flag is set to 1.

図113(b)は、第2特殊命令を実行する前後のフラグレジスタの状態を示した図である。主制御部300は、Sフラグ、Zフラグ、SZフラグ、Hフラグ、、P/Vフラグ、Nフラグ、Cフラグを有する8ビットのフラグレジスタを備えている。このフラグレジスタに含まれるSフラグ、Zフラグ、SZフラグ、Hフラグ、Cフラグは、第2特殊命令の実行や、その他の算術論理演算命令の実行によって1にセットされるか0にクリアされる。
<CPJR命令を用いた処理>
FIG. 113B shows the state of the flag register before and after executing the second special instruction. The main control unit 300 includes an 8-bit flag register having an S flag, a Z flag, an SZ flag, an H flag, a P / V flag, an N flag, and a C flag. The S flag, Z flag, SZ flag, H flag, and C flag included in this flag register are set to 1 or cleared to 0 by execution of the second special instruction or execution of other arithmetic logic operation instructions. .
<Process using CPJR instruction>

次に、CPJR命令を用いた処理について説明する。図114は、CPJR命令を用いた処理の一例を示した図である。同図に示す第一のモジュールでは、処理Xを実行した後に、CPJR命令を実行し、所定条件が成立した場合に処理Zにジャンプする処理を行い、所定条件が成立しなかった場合に後続の処理Yを実行する処理を行う。   Next, processing using the CPJR instruction will be described. FIG. 114 is a diagram showing an example of processing using the CPJR instruction. In the first module shown in the figure, after executing the process X, the CPJR instruction is executed, and when the predetermined condition is satisfied, the process jumps to the process Z. When the predetermined condition is not satisfied, the subsequent module Processing for executing processing Y is performed.

ここで、「所定条件が成立した場合」とは、上述の「CPJRZ r、e」命令(または、「CPJRZ (rr)、e」命令)であれば、Zフラグが1にセットされる状態となった場合であり、上述の「CPJPNZ r、e」命令(または、「CPJRNZ (rr)、e」命令)であれば、Zフラグが0にクリアされる状態になった場合である。また、上述の「CPJRC r、n、e」命令(または、「CPJPC (rr)、n、e」命令)であれば、Cフラグが1にセットされる状態になった場合であり、「CPJRNC r、n、e」命令(または、「CPJPNC (rr)、n、e」命令)であれば、Cフラグが0にクリアされる状態になった場合である。   Here, “when the predetermined condition is satisfied” means that the Z flag is set to 1 if the above-mentioned “CPJRZ r, e” instruction (or “CPJRZ (rr), e” instruction) is used. If the above-described “CPJPNZ r, e” instruction (or “CPJRNZ (rr), e” instruction), the Z flag is cleared to 0. If the above-mentioned “CPJRC r, n, e” instruction (or “CPJPC (rr), n, e” instruction) is used, the C flag is set to 1, and “CPJRNC” In the case of the “r, n, e” instruction (or “CPJPNC (rr), n, e” instruction), the C flag is cleared to 0.

また、CPJR命令の実行前に行われる処理Xにおけるフラグレジスタの内容が第1の内容αであった場合、CPJR命令の実行により、後続の処理Y、処理Zにおけるフラグレジスタの内容は第2の内容βに変化する。しかしながら、本実施形態では、CPJR命令の実行中にフラグレジスタの内容を参照しないことに加えて、CPJR命令の実行後の処理Y、処理Zでも、CPJR命令によって変化したフラグレジスタの内容を一切参照することなく処理を行うように構成している。   When the contents of the flag register in the process X performed before the execution of the CPJR instruction are the first contents α, the contents of the flag register in the subsequent processes Y and Z are changed to the second contents α by executing the CPJR instruction. The content changes to β. However, in this embodiment, in addition to not referring to the contents of the flag register during the execution of the CPJR instruction, the contents of the flag register changed by the CPJR instruction are also referred to in the processes Y and Z after the execution of the CPJR instruction. It is configured to perform the processing without doing.

このように、CPJR命令の実行中にフラグレジスタの内容を参照しないことに加えて、CPJR命令の実行によりフラグレジスタの内容を変化させるが、CPJR命令の実行後に行う所定の処理においてはフラグレジスタの内容を参照することなく処理を行うように構成すれば、フラグレジスタの内容の変化とプログラムの実行の流れの関連性を無くすことができ、プログラムの解析を困難とし、不正なプログラムの改ざんを未然に防止できる場合がある。なお、この例では、CPJR命令の実行中にフラグレジスタの内容を参照しないように構成したが、CPJR命令の実行中にはフラグレジスタの内容を参照し、CPJR命令の実行後に行う所定の処理においてはCPJR命令の実行前に変化したフラグレジスタの内容を参照することなく処理を行うように構成しても、同様の効果を得ることができる場合がある(以下、同様)。   In this way, in addition to not referring to the contents of the flag register during the execution of the CPJR instruction, the contents of the flag register are changed by the execution of the CPJR instruction. If the processing is performed without referring to the contents, the relationship between the change in the contents of the flag register and the flow of the program execution can be eliminated, the analysis of the program becomes difficult, and unauthorized program tampering can occur. Can be prevented. In this example, the contents of the flag register are not referred to during the execution of the CPJR instruction. However, the contents of the flag register are referred to during the execution of the CPJR instruction, and in a predetermined process performed after the execution of the CPJR instruction. Even if the processing is performed without referring to the contents of the flag register changed before the execution of the CPJR instruction, the same effect may be obtained (the same applies hereinafter).

図115(a)は、従来の命令を用いたプログラムの一例を示した図であり、同図(b)は、CPJR命令を用いたプログラムの一例である。例えば、Aレジスタの値が0であるか0以外であるかを判定し、Aレジスタの値が0の場合に所定の処理にジャンプするプログラムを組む場合、同図(a)に示す従来のプログラムでは、(1−1)に示すAND命令(AND A)と、(1−2)に示すJR命令(JR Z、ITmrRnwCtl020)の2つの命令によって実現する必要があるが、同図(b)に示す本実施形態のプログラムでは、(2−1)に示す1つのCPJR命令(CPJRZ A、ITmrRnwCtl020)だけで同一の処理を実現している。   FIG. 115 (a) is a diagram showing an example of a program using a conventional instruction, and FIG. 115 (b) is an example of a program using a CPJR instruction. For example, when a program for determining whether the value of the A register is 0 or other than 0 and jumping to a predetermined process when the value of the A register is 0, the conventional program shown in FIG. Then, it is necessary to realize by two instructions of an AND instruction (AND A) shown in (1-1) and a JR instruction (JRZ, ITmrRnwCtl020) shown in (1-2). In the program of this embodiment shown, the same processing is realized by only one CPJR instruction (CPJRZ A, ITmrRnwCtl020) shown in (2-1).

このように、所定条件が成立するか否かを判定し、所定条件が成立した場合に所定の処理にジャンプするプログラムを組む場合にCPJR命令を用いれば、従来よりもプログラムコードを減らすことができ、限られたメモリを有効に活用できる場合がある。   In this way, if the CPJR instruction is used to determine whether or not a predetermined condition is satisfied and a program that jumps to a predetermined process when the predetermined condition is satisfied, the program code can be reduced as compared with the conventional case. In some cases, limited memory can be used effectively.

また、同図(b)に示す本実施形態のプログラムでは、(2−1)に示すCPJR命令(CPJRZ A、ITmrRnwCtl020)の実行後の処理Y、処理Zでは、CPJR命令によって変化したフラグレジスタの内容を一切参照することなく処理を行うように構成している。このように、CPJR命令の実行によりフラグレジスタの内容を変化させる一方で、CPJR命令の実行後に行う所定の処理においてはフラグレジスタの内容を参照することなく処理を行うように構成すれば、フラグレジスタの内容の変化とプログラムの実行の流れの関連性を無くすことができ、プログラムの解析を困難とし、不正なプログラムの解析を未然に防止できる場合がある。   In the program of this embodiment shown in FIG. 5B, in the processing Y and the processing Z after execution of the CPJR instruction (CPJRZ A, ITmrRnwCtl020) shown in (2-1), the flag register changed by the CPJR instruction is changed. Processing is performed without referring to the contents at all. In this way, if the contents of the flag register are changed by the execution of the CPJR instruction, the predetermined process performed after the execution of the CPJR instruction is performed without referring to the contents of the flag register. The relationship between the change in the contents of the program and the flow of execution of the program can be eliminated, the analysis of the program is difficult, and the analysis of the illegal program can be prevented in advance.

なお、同図(b)に示す本実施形態のプログラムの処理Zに続く処理Vでは、CPJR命令の実行後に他の命令(この例では、「OR (HL)」命令)によって変化したフラグレジスタの内容(この例では、Zフラグの内容)に基づいた処理(この例では、JR命令)を行っている。このように、フラグレジスタの内容を参照しない処理Zとフラグレジスタの内容を参照する処理Vを連続させれば、フラグレジスタの内容の変化とプログラムの実行の流れの関連性を複雑にすることができ、プログラムの解析を困難とし、不正なプログラムの解析を未然に防止できる場合がある。   In the process V following the process Z of the program of the present embodiment shown in FIG. 6B, the flag register changed by another instruction (in this example, the “OR (HL)” instruction) after the execution of the CPJR instruction. Processing (in this example, a JR instruction) based on the contents (in this example, the contents of the Z flag) is performed. In this way, if the process Z that does not refer to the contents of the flag register and the process V that refers to the contents of the flag register are continued, the relationship between the change in the contents of the flag register and the flow of program execution may be complicated. In some cases, it is difficult to analyze a program, and an unauthorized program can be prevented from being analyzed.

さらに、この例では、処理ZでLD命令(ロード命令)を実行しているが、LD命令は命令の実行後にZフラグを変化させずにSZフラグを変化させる命令の一つであるため、「LD A、(HL)」命令の実行後にはZフラグは変化しないが、SZフラグが変化する。一方、その後の処理Vでは「JR Z、ITmrRnwCtL040」を実行しているが、ここでは、処理Zの「LD A、(HL)」命令の実行によって変化していないZフラグを参照して分岐処理を行っている。   Furthermore, in this example, the LD instruction (load instruction) is executed in the process Z. However, since the LD instruction is one of the instructions that changes the SZ flag without changing the Z flag after the instruction is executed, “ After execution of the “LD A, (HL)” instruction, the Z flag does not change, but the SZ flag changes. On the other hand, in the subsequent process V, “JR Z, ITmrRnwCtL040” is executed. Here, the branch process is performed by referring to the Z flag that has not changed by the execution of the “LD A, (HL)” instruction of process Z. It is carried out.

このように、SZフラグとZフラグを含む複数のフラグの値を変化させる第1の命令(例えば、CPJR命令)を実行し、当該フラグを参照しない第2の命令(例えば、DEC A命令)を実行し、ZフラグとSZフラグのうちいずれか一方のみが変化する第3の命令(例えば、LD命令)を実行し、変化しない方(変化した方)のフラグを参照する第4の命令(例えば、JR Z命令)を実行するように構成すれば、フラグレジスタの内容の変化とプログラムの実行の流れの関連性を複雑にすることができ、プログラムの解析を困難とし、不正なプログラムの解析を未然に防止できる場合がある。   In this way, a first instruction (for example, CPJR instruction) that changes the values of a plurality of flags including the SZ flag and the Z flag is executed, and a second instruction (for example, a DEC A instruction) that does not refer to the flag is executed. Execute a third instruction (for example, an LD instruction) in which only one of the Z flag and the SZ flag changes, and a fourth instruction (for example, refer to the flag that has not changed (changed)) , JR Z instruction), the relationship between the contents of the flag register and the flow of program execution can be complicated, making it difficult to analyze programs and analyzing illegal programs. There are cases where it can be prevented.

図116は、CPJR命令を用いた他の処理の一例を示した図である。同図に示す第一のモジュールでは、処理Xを実行した後に、CPJR命令を実行し、所定条件が成立した場合に、第一のモジュールとは異なる第二のモジュールにジャンプして処理Zを行い、所定条件が成立しなかった場合に後続の処理Yを実行している。このように、CPJR命令を用いて所定条件が成立した場合に所定の処理にジャンプするプログラムを組む場合には、同一のモジュール内の処理だけではなく、他のモジュールの処理にジャンプさせてもよい。   FIG. 116 is a diagram showing an example of another process using the CPJR instruction. In the first module shown in the figure, after the process X is executed, the CPJR instruction is executed, and when a predetermined condition is satisfied, the process jumps to the second module different from the first module and performs the process Z. When the predetermined condition is not satisfied, the subsequent process Y is executed. As described above, when a program that jumps to a predetermined process when a predetermined condition is satisfied using the CPJR instruction, the program may be jumped to not only the process in the same module but also the process of another module. .

図117は、上述の処理Vを含む、CPJR命令を用いた他の処理の一例を示した図である。同図に示す第二のモジュールでは、処理Zを実行した後に、算術論理演算命令を実行し、当該命令の実行によって変化したフラグレジスタの内容γに基づいて分岐処理を行っている。このように、CPJR命令の実行によって変化したフラグレジスタに基づいた処理は行わず、CPJR命令以外の命令(この例では、算術論理演算命令)の実行によって変化したフラグレジスタに基づいた処理を行うように構成すれば、フラグレジスタの内容の変化とプログラムの実行の流れの関連性を複雑にすることができ、プログラムの解析を困難とし、不正なプログラムの解析を未然に防止できる場合がある。
<CPRT命令を用いた処理>
FIG. 117 is a diagram showing an example of another process using the CPJR instruction including the process V described above. In the second module shown in the figure, after executing the process Z, an arithmetic logic operation instruction is executed, and a branch process is performed based on the content γ of the flag register changed by the execution of the instruction. In this way, processing based on the flag register changed by execution of the CPJR instruction is not performed, and processing based on the flag register changed by execution of an instruction other than the CPJR instruction (in this example, an arithmetic logic operation instruction) is performed. With this configuration, the relationship between the change in the contents of the flag register and the flow of program execution can be complicated, making it difficult to analyze the program and preventing unauthorized program analysis in some cases.
<Process using CPRT instruction>

次に、CPRT命令を用いた処理について説明する。図118は、CPRT命令を用いた処理の一例を示した図である。同図に示す第一のモジュールでは、CALL命令を実行して第二のモジュールを呼び出し、呼び出し先の第二のモジュールで処理Xを実行した後に、CPRT命令を実行し、所定条件が成立した場合に呼び出し元の第一のモジュールに戻って処理Zを行い、所定条件が成立しなかった場合に後続の処理Yを実行している。   Next, processing using the CPRT instruction will be described. FIG. 118 is a diagram showing an example of processing using the CPRT instruction. In the first module shown in the figure, the CALL instruction is executed to call the second module, the process X is executed in the second module of the call destination, the CPRT instruction is executed, and a predetermined condition is satisfied. Returning to the first module of the caller, the process Z is performed. If the predetermined condition is not satisfied, the subsequent process Y is executed.

ここで、「所定条件が成立した場合」とは、上述の「CPRTZ r」命令(または、「CPRTZ (rr)」命令)であれば、Zフラグが1にセットされる状態になった場合であり、上述の「CPRTNZ r」命令(または、「CPRTNZ (rr)」命令)であれば、Zフラグが0にクリアされる状態になった場合である。   Here, “when the predetermined condition is satisfied” means that the Z flag is set to 1 if the above-described “CPRTZ r” instruction (or “CPRTZ (rr)” instruction) is used. If it is the above-mentioned “CPRTNZ r” instruction (or “CPRTNZ (rr)” instruction), the Z flag is cleared to 0.

また、CPRT命令の実行前に行われる処理Xにおけるフラグレジスタの内容が第1の内容αであった場合、CPRT命令の実行により、後続の処理Y、処理Zにおけるフラグレジスタの内容は第2の内容βに変化する。しかしながら、CPRT命令の実行中にフラグレジスタを参照しないことに加えて、CPRT命令の実行後の処理Y、処理Zでも、CPRT命令によって変化したフラグレジスタの内容を一切参照することなく処理を行うように構成している。   When the contents of the flag register in the process X performed before the execution of the CPRT instruction is the first contents α, the contents of the flag register in the subsequent process Y and process Z are changed to the second contents α by executing the CPRT instruction. The content changes to β. However, in addition to not referring to the flag register during execution of the CPRT instruction, processing Y and processing Z after execution of the CPRT instruction are performed without referring to the contents of the flag register changed by the CPRT instruction. It is configured.

このように、CPRT命令の実行中にフラグレジスタを参照しないことに加えて、CPRT命令の実行によりフラグレジスタの内容を変化させる一方で、CPRT命令の実行後に行う所定の処理においてはフラグレジスタの内容を参照することなく処理を行うように構成すれば、フラグレジスタの内容の変化とプログラムの実行の流れの関連性を無くすことができ、プログラムの解析を困難とし、不正なプログラムの解析を未然に防止できる場合がある。   In this way, in addition to not referring to the flag register during the execution of the CPRT instruction, the contents of the flag register are changed by the execution of the CPRT instruction, while the contents of the flag register are determined in a predetermined process performed after the execution of the CPRT instruction. If the processing is performed without referring to, the relationship between the change in the contents of the flag register and the flow of the program execution can be eliminated, making the analysis of the program difficult and the analysis of the illegal program in advance. Sometimes it can be prevented.

図119(a)は、CPRT命令を用いたプログラムの一例を示した図であり、同図(b)は、従来の命令を用いたプログラムの一例である。例えば、Aレジスタの値が0であるか0以外であるかを判定し、Aレジスタの値が0の場合に所定の処理にリターン(復帰)するプログラムを組む場合、同図(b)に示す従来のプログラムでは、(1−1)に示すAND命令(AND A)と(1−2)に示すRET命令(RET Z)の2つの命令によって実現する必要があるが、同図(a)に示す本実施形態のプログラムでは、(2−1)に示す1つのCPRT命令(CPRTZ A)だけで同一の処理を実現している。   FIG. 119 (a) is a diagram showing an example of a program using a CPRT instruction, and FIG. 119 (b) is an example of a program using a conventional instruction. For example, when it is determined whether the value of the A register is 0 or other than 0, and a program that returns (returns) to a predetermined process when the value of the A register is 0 is shown in FIG. The conventional program needs to be realized by two instructions, ie, an AND instruction (AND A) shown in (1-1) and a RET instruction (RET Z) shown in (1-2). In the program of the present embodiment shown, the same processing is realized by only one CPRT instruction (CPRTZ A) shown in (2-1).

このように、所定条件が成立するか否かを判定し、所定条件が成立した場合に所定の処理にリターン(復帰)するプログラムを組む場合にCPRT命令を用いれば、従来よりもプログラムコードを減らすことができ、限られたメモリを有効に活用できる場合がある。   In this way, it is determined whether or not a predetermined condition is satisfied, and when a program that returns (returns) to a predetermined process when a predetermined condition is satisfied is used, a CPRT instruction is used, so that the program code is reduced as compared with the conventional case. In some cases, limited memory can be used effectively.

また、同図(a)に示す本実施形態のプログラムでは、(2−1)に示すCPRT命令(CPRTZ A)の実行後の処理Y、処理Zでは、CPRT命令によって変化したフラグレジスタの内容を一切参照することなく処理を行うように構成している。このように、CPRT命令の実行によりフラグレジスタの内容を変化させる一方で、CPRT命令の実行後に行う所定の処理においてはフラグレジスタの内容を参照することなく処理を行うように構成すれば、フラグレジスタの内容の変化とプログラムの実行の流れの関連性を無くすことができ、プログラムの解析を困難とし、不正なプログラムの解析を未然に防止できる場合がある。   In the program of the present embodiment shown in FIG. 11A, in the processing Y and processing Z after execution of the CPRT instruction (CPRTZ A) shown in (2-1), the contents of the flag register changed by the CPRT instruction are displayed. It is configured to perform processing without referring to it at all. In this way, if the contents of the flag register are changed by execution of the CPRT instruction, while the predetermined process performed after the execution of the CPRT instruction is performed without referring to the contents of the flag register, the flag register The relationship between the change in the contents of the program and the flow of execution of the program can be eliminated, the analysis of the program is difficult, and the analysis of the illegal program can be prevented in advance.

なお、同図(a)に示す本実施形態のプログラムの処理Zに続く処理Vでは、CPRT命令の実行後に他の命令によって変化したフラグレジスタの内容に基づいた処理を行っている。このように、フラグレジスタの内容を参照しない処理Zとフラグレジスタの内容を参照する処理Vを連続させれば、フラグレジスタの内容の変化とプログラムの実行の流れの関連性を複雑にすることができ、プログラムの解析を困難とし、不正なプログラムの解析を未然に防止できる場合がある。
<主制御部の第3特殊命令>
In the process V following the process Z of the program of the present embodiment shown in FIG. 6A, a process based on the contents of the flag register changed by another instruction after the execution of the CPRT instruction is performed. In this way, if the process Z that does not refer to the contents of the flag register and the process V that refers to the contents of the flag register are continued, the relationship between the change in the contents of the flag register and the flow of program execution may be complicated. In some cases, it is difficult to analyze a program, and an unauthorized program can be prevented from being analyzed.
<Third special instruction of main control unit>

次に、主制御部300が備える第3特殊命令について説明する。図120は、主制御部300が備える第3特殊命令の一部を示した図である。
<第3特殊命令/RES命令>
Next, the third special instruction provided in the main control unit 300 will be described. FIG. 120 is a diagram illustrating a part of the third special instruction included in the main control unit 300.
<Third special instruction / RES instruction>

第3特殊命令の一つである「RESmZ n、r」命令(mは0〜7の数値)は、第2オペランドrで示されるレジスタに記憶されている値のうち、mで示されるビットのアクセスを禁止するとともに、第1オペランドで示されるビットn(nは、mを除く0〜7の数値)を0にリセットする命令である。また、「RESmZ n、(rr)」命令(mは0〜7の数値)は、第2オペランド(rr)で示されるペアレジスタrrに格納されたアドレスに記憶されているアドレスに格納された値のうち、mで示されるビットのアクセスを禁止するとともに、第1オペランドで示されるnビット(nは、mを除く0〜7の数値)を0にリセットする命令である。   One of the third special instructions, “RESmZ n, r” instruction (m is a numerical value of 0 to 7), of the values stored in the register indicated by the second operand r, of the bit indicated by m. This instruction prohibits access and resets the bit n (n is a numerical value of 0 to 7 excluding m) indicated by the first operand to 0. In addition, the “RESmZ n, (rr)” instruction (m is a numerical value of 0 to 7) is a value stored at the address stored in the address stored in the pair register rr indicated by the second operand (rr). In this instruction, access to the bit indicated by m is prohibited, and n bits (n is a numerical value of 0 to 7 excluding m) indicated by the first operand are reset to 0.

例えば、図121(a)に示すように、「RES2Z 2、L」命令は、第2オペランドLで示されるLレジスタに記憶されている値のうち、mで示されるビット(この例では、ビット2)のアクセスを禁止するとともに、第1オペランドで示されるビット2を0にリセットする命令であり、この命令ではLレジスタのビット2は0にリセットされない。一方、同図(b)に示すように、「RES2Z 4、L」命令は、第2オペランドLで示されるLレジスタに記憶されている値のうち、mで示されるビット(この例では、ビット2)のアクセスを禁止するとともに、第1オペランドで示されるビット4を0にリセットする命令であり、この命令では、Lレジスタのビット2のアクセスは禁止されるがビット4は0にリセットされる。   For example, as shown in FIG. 121 (a), the “RES2Z 2, L” instruction has a bit (in this example, a bit) indicated by m among the values stored in the L register indicated by the second operand L. 2) is an instruction for prohibiting access and resetting bit 2 indicated by the first operand to 0. In this instruction, bit 2 of the L register is not reset to 0. On the other hand, as shown in FIG. 5B, the “RES2Z 4, L” instruction is a bit indicated by m (in this example, bit bit) among the values stored in the L register indicated by the second operand L. 2) is an instruction that prohibits access and resets bit 4 indicated by the first operand to 0. In this instruction, access to bit 2 of the L register is prohibited, but bit 4 is reset to 0. .

また、図122(a)に示すように、「RES2Z 2、(HL)」命令は、第2オペランド(HL)で示されるペアレジスタHLに記憶されているアドレス(この例では、F010H)に格納された値のうち、mで示されるビット(この例では、ビット2)のアクセスを禁止するとともに、第1オペランドで示されるビット2を0にリセットする命令であり、この命令では、F010Hに格納されている値のビット2は0にリセットされない。一方、同図(b)に示すように、「RES2Z 4、(HL)」命令は、第2オペランド(HL)で示されるペアレジスタHLに記憶されているアドレス(この例では、F010H)に格納された値のうち、mで示されるビット(この例では、ビット2)のアクセスを禁止するとともに、第1オペランドで示されるビット4を0にリセットする命令であり、この命令では、F010Hに格納されている値のビット2のアクセスは禁止されるがビット4が0にリセットされる。   Also, as shown in FIG. 122 (a), the “RES2Z 2, (HL)” instruction is stored in the address (in this example, F010H) stored in the pair register HL indicated by the second operand (HL). Among these values, this is an instruction that prohibits access to the bit indicated by m (bit 2 in this example) and resets bit 2 indicated by the first operand to 0. In this instruction, the instruction is stored in F010H. Bit 2 of the value being set is not reset to zero. On the other hand, as shown in FIG. 5B, the “RES2Z 4, (HL)” instruction is stored in the address (F010H in this example) stored in the pair register HL indicated by the second operand (HL). Among these values, this is an instruction that prohibits access to the bit indicated by m (bit 2 in this example) and resets bit 4 indicated by the first operand to 0. In this instruction, the instruction is stored in F010H. Access to bit 2 of the current value is prohibited, but bit 4 is reset to 0.

このようなRES命令によれば、所定のビットのアクセスを禁止しつつ、同時に他のビットを0にリセットすることができるため、所定のビットの数値を保護することができ、所定のビットが予期しない数値に変化して不具合を起こすような事態を未然に防止できる場合がある。   According to such a RES instruction, access to a predetermined bit can be prohibited and other bits can be reset to 0 at the same time. Therefore, the numerical value of the predetermined bit can be protected, and the predetermined bit can be expected. In some cases, it is possible to prevent a situation in which a malfunction occurs due to a change to a numerical value that does not occur.

図123は、主制御部300の命令マップのうち、RES命令に該当する部分を抜き出して示した図である。上述のとおり、「RES2Z 2、L」命令と「RES2Z 2、(HL)」命令は、ビット2のアクセスが禁止されビット2がリセットできない命令であるため(実質的に意味の無い命令であるため)、同図の太線の四角で示すように、「RES2Z 2、L」命令に該当する25Hの部分と、「RES2Z 2、(HL)」命令に該当する26Hの部分は空き領域とされている。このように、命令マップの一部に空き領域を設けることによって、命令マップを使ったプログラム(機械語)の解析を困難にすることができる場合がある。
<RES命令の変形例1>
FIG. 123 is a diagram showing an extracted part corresponding to the RES instruction in the instruction map of the main control unit 300. As described above, the “RES2Z 2, L” instruction and the “RES2Z 2, (HL)” instruction are instructions that access to bit 2 is prohibited and bit 2 cannot be reset (because they are substantially meaningless instructions). ), As indicated by the thick-lined square in the figure, the 25H portion corresponding to the “RES2Z 2, L” instruction and the 26H portion corresponding to the “RES2Z 2, (HL)” instruction are free areas. . Thus, by providing an empty area in a part of the instruction map, it may be difficult to analyze a program (machine language) using the instruction map.
<Modification 1 of RES instruction>

図124は、変形例1に係るRES命令を示した図である。RES命令の変形である「RESmZ n、r」命令(mは1〜254の10進数の数値)は、第2オペランドrで示されるレジスタに記憶されている値のうち、10進数のmを1バイトの2進数に変換したときに1がセットされるビットのアクセスを禁止するとともに、第1オペランドで示されるビットn(nは、mを1バイトの2進数に変換したときに1がセットされないビット)を0にリセットする命令である。また、「RESmZ n、(rr)」命令(mは1〜254の10進数の数値)は、第2オペランドrrで示されるペアレジスタに記憶されているアドレスに格納された値のうち、10進数のmを1バイトの2進数に変換したときに1がセットされるビットのアクセスを禁止するとともに、第1オペランドで示されるnビット(nは、mを2進数に変換したときに1がセットされないビット番号)を0にリセットする命令である。   FIG. 124 is a diagram showing a RES instruction according to the first modification. A “RESmZ n, r” instruction (m is a decimal number from 1 to 254), which is a modification of the RES instruction, has a decimal number m of 1 among the values stored in the register indicated by the second operand r. Access to a bit that is set to 1 when converted to a binary number of bytes is prohibited, and bit n (n is not set to 1 when m is converted to a binary number of 1 byte) Bit) is reset to 0. The “RESmZ n, (rr)” instruction (m is a decimal number from 1 to 254) is a decimal number among the values stored in the address stored in the pair register indicated by the second operand rr. Access to bits that are set to 1 when m is converted to a 1-byte binary number and n bits (n is set when m is converted to a binary number) indicated by the first operand This is an instruction to reset the bit number (not yet) to 0.

例えば、図125(a)に示すように、「RES2Z 4、L」命令は、第2オペランドLで示されるレジスタLに記憶されている値のうち、10進数の2を1バイトの2進数に変換したときに1がセットされるビット(この例では、ビット1)のアクセスを禁止するとともに、第1オペランドで示されるビット4を0にリセットする命令である。また、同図(b)に示すように、「RES3Z 4、L」命令は、第2オペランドLで示されるレジスタLに記憶されている値のうち、10進数の3を1バイトの2進数に変換したときに1がセットされるビット(この例では、ビット1、ビット0)のアクセスを禁止するとともに、第1オペランドで示されるビット4を0にリセットする命令である。   For example, as shown in FIG. 125 (a), the “RES2Z 4, L” instruction changes the decimal number 2 from the values stored in the register L indicated by the second operand L to a 1-byte binary number. This instruction prohibits access to a bit that is set to 1 (bit 1 in this example) when converted, and resets bit 4 indicated by the first operand to 0. Also, as shown in FIG. 5B, the “RES3Z 4, L” instruction converts the decimal number 3 from the value stored in the register L indicated by the second operand L to a 1-byte binary number. This is an instruction that prohibits access to bits set to 1 when converted (bit 1 and bit 0 in this example) and resets bit 4 indicated by the first operand to 0.

図126は、変形例1に係るRES命令を用いたプログラムの一例を示した図である。上述のとおり、「RESmZ n、(rr)」命令(mは1〜254の10進数の数値)は、第2オペランド(rr)で示されるペアレジスタrrに記憶されているアドレスに格納された値のうち、10進数のmを1バイトの2進数に変換したときに1がセットされるビットのアクセスを禁止するとともに、第1オペランドで示されるnビット(nは、mを2進数に変換したときに1がセットされないビット番号)を0にリセットする命令である。   FIG. 126 is a diagram showing an example of a program using the RES instruction according to the first modification. As described above, the “RESmZ n, (rr)” instruction (m is a decimal number from 1 to 254) is a value stored at the address stored in the pair register rr indicated by the second operand (rr). Among them, access to a bit set to 1 when a decimal number m is converted to a 1-byte binary number is prohibited, and n bits (n is a value converted to a binary number) indicated by the first operand This is a command for resetting the bit number (sometimes 1 is not set) to 0.

したがって、同図の(3−1)に示す「RES251Z 2(=ebCS20pnSGt)、(HL)」命令は、第2オペランド(HL)で示されるペアレジスタHLに記憶されているアドレス(この例では、F096H(=v0ptCS2))に格納された値のうち、10進数の251を1バイトの2進数に変換したときに1がセットされるビット(この例では、ビット0〜1、3〜7)のアクセスを禁止するとともに、第1オペランドで示されるビット(この例では、ビット2)を0にリセットする命令である。   Therefore, the “RES251Z 2 (= ebCS20pnSGt), (HL)” instruction shown in (3-1) in the figure is an address stored in the pair register HL indicated by the second operand (HL) (in this example, Of the values stored in F096H (= v0ptCS2)), bits that are set to 1 when the decimal number 251 is converted into a 1-byte binary number (in this example, bits 0 to 1, 3 to 7) This instruction prohibits access and resets the bit (bit 2 in this example) indicated by the first operand to 0.

このようなRES命令によれば、所定のビットのアクセスを禁止しつつ、同時に他のビットを0にリセットすることができるため、所定のビットの数値を保護することができ、従来のビット操作命令(例えば、CLR命令、SET命令、RES命令、BIT命令など)のように、コーディングミスなどによって所定のビットが予期しない数値に変更されてしまうような事態を未然に防止でき、デバックやテストの作業を短縮化でき、また、安定した遊技制御を行うことができる場合がある。また、アクセスを禁止するビットを10進数の数値で指定することができるため、プログラムの解析を困難にすることができる場合がある。
<RES命令の変形例2>
According to such a RES instruction, while prohibiting access to a predetermined bit, other bits can be reset to 0 at the same time, so that the numerical value of the predetermined bit can be protected. (For example, CLR instruction, SET instruction, RES instruction, BIT instruction, etc.) It is possible to prevent a situation in which a predetermined bit is changed to an unexpected numerical value due to a coding error or the like, and debugging or test work can be prevented. May be shortened, and stable game control may be performed. In addition, since the bit for which access is prohibited can be designated by a decimal number, analysis of the program may be difficult.
<Modification 2 of RES instruction>

図127は、変形例2に係るRES命令を示した図である。RES命令の変形である「RESmZ n、r」命令(mは0〜7の数値)は、第2オペランドrで示されるレジスタを含むペアレジスタに記憶されている値のうち、mで示されるビットのアクセスを禁止するとともに、第1オペランドで示されるビットn(nは、mを除く0〜8の数値)を0にリセットする命令である。また、「RESmZ n、(rr)」命令(mは0〜7の数値)は、第2オペランド(rr)で示されるペアレジスタrrに記憶されているアドレスと、このアドレスに連続するアドレスに格納された2バイト長の値のうち、mで示されるビットのアクセスを禁止するとともに、第1オペランドで示されるビットn(nは、mを除く0〜8の数値)を0にリセットする命令である。   FIG. 127 is a diagram illustrating a RES instruction according to the second modification. A “RESmZ n, r” instruction (m is a numerical value of 0 to 7), which is a modification of the RES instruction, is a bit indicated by m among the values stored in the pair register including the register indicated by the second operand r. And the bit n (n is a numerical value of 0 to 8 excluding m) indicated by the first operand is reset to 0. In addition, the “RESmZ n, (rr)” instruction (m is a numerical value of 0 to 7) is stored in an address stored in the pair register rr indicated by the second operand (rr) and an address consecutive to this address. An instruction that prohibits access to the bit indicated by m in the 2-byte length value and resets the bit n indicated by the first operand (where n is a numerical value of 0 to 8 excluding m) to 0. is there.

例えば、図128に示すように、「RES2Z 8、L」命令は、第2オペランドLで示されるレジスタLを含むペアレジスタHLに記憶されている値のうち、2で示されるビット(ビット2)のアクセスを禁止するとともに、第1オペランドで示されるビット8(この例では、HLレジスタの上位バイトであるHレジスタのビット0)を0にリセットする命令である。   For example, as shown in FIG. 128, the “RES2Z 8, L” instruction is a bit (bit 2) indicated by 2 among the values stored in the pair register HL including the register L indicated by the second operand L. Is an instruction that resets bit 8 (in this example, bit 0 of the H register, which is the upper byte of the HL register) indicated by the first operand to 0.

また、図129に示すように、「RES2Z 8、(HL)」命令は、第2オペランド(HL)で示されるペアレジスタHLに記憶されているアドレス(この例では、F010H)と、このアドレスに連続するアドレス(この例では、F011H)に格納された2バイト長の値のうち、2で示されるビット(ビット2)のアクセスを禁止するとともに、第1オペランドで示されるビット8(この例では、F010Hに連続するF011Hに格納された値のビット0値)を0にリセットする命令である。   Also, as shown in FIG. 129, the “RES2Z 8, (HL)” instruction is stored in the address (F010H in this example) stored in the pair register HL indicated by the second operand (HL). Of the 2-byte length values stored in successive addresses (F011H in this example), access to the bit indicated by 2 (bit 2) is prohibited, and bit 8 indicated by the first operand (in this example) , Bit 0 value of the value stored in F011H consecutive to F010H) is reset to 0.

図130は、主制御部300の命令マップのうち、変形例2に係るRES命令に該当する部分を抜き出して示した図である。上述のとおり、「RES2Z 2、L」命令と「RES2Z 2、(HL)」命令は、ビット2のアクセスが禁止されビット2がリセットできない命令であるため、同図に太線の四角で示すように、これらの命令に替えて、「RES2Z 8、L」命令と「RES2Z 8、(HL)」命令を割り当てている。このように、命令マップの一部の並び順を不規則にすることによって、プログラム(機械語)の解析を困難にすることができる場合がある。
<RES命令の他の変形例>
FIG. 130 is a diagram showing a portion corresponding to the RES instruction according to the second modification extracted from the instruction map of the main control unit 300. As described above, the “RES2Z 2, L” instruction and the “RES2Z 2, (HL)” instruction are instructions in which access to bit 2 is prohibited and bit 2 cannot be reset. Instead of these instructions, a “RES2Z 8, L” instruction and a “RES2Z 8, (HL)” instruction are assigned. Thus, by making the order of arrangement of a part of the instruction map irregular, it may be difficult to analyze the program (machine language).
<Other Modifications of RES Instruction>

図131は、RES命令の他の変形例を示した図である。例えば、同図(a)に示すRES命令では、上述の変形例1の「RESmZ n、r」命令または「RESmZ n、(rr)」命令(mは1〜254の10進数の数値)において、数値mに0が指定できるように変更し、0を指定した場合には全てのビットのアクセスを許可するように構成している。また、同図(b)に示すRES命令では、上述の変形例1の「RESmZ n、r」命令または「RESmZ n、(rr)」命令(mは1〜254の10進数の数値)において、数値mの指定が省略できるように変更し、指定を省略した場合には全てのビットのアクセスを許可するように構成している。   FIG. 131 is a diagram showing another modification of the RES instruction. For example, in the RES instruction shown in FIG. 5A, in the “RESmZ n, r” instruction or “RESmZ n, (rr)” instruction (m is a decimal number from 1 to 254) in the above-described modification example 1, The numerical value m is changed so that 0 can be designated. When 0 is designated, access to all bits is permitted. In the RES instruction shown in FIG. 5B, in the “RESmZ n, r” instruction or the “RESmZ n, (rr)” instruction (m is a decimal number from 1 to 254) in the above-described modification 1, The numerical value m is changed so that the specification can be omitted. When the specification is omitted, access to all bits is permitted.

図132(a)は、所定ビットのアクセスを禁止しないRES命令を備えた場合の命令マップと、所定ビットのアクセスを禁止するRES命令を備えた場合の命令マップを示した図である。このように、所定ビットのアクセスを禁止しないRES命令を備えた場合と、所定ビットのアクセスを禁止するRES命令を備えた場合で命令マップの一部の並び順を変更することによって、プログラム(機械語)の解析を困難にすることができる場合がある。   FIG. 132 (a) is a diagram showing an instruction map when an RES instruction that does not prohibit access of a predetermined bit is provided, and an instruction map when an RES instruction that prohibits access of a predetermined bit is provided. As described above, the program (machine) is changed by changing the order of arrangement of a part of the instruction map between the case where the RES instruction which does not prohibit the access of the predetermined bit is provided and the case where the RES instruction which prohibits the access of the predetermined bit is provided. Word) may be difficult to analyze.

また、同図(b)は、RES命令の第1オペランドの数値の大小と、RES命令の命令マップの並び順を異ならせた例を示した図である。このように、RES命令の第1オペランドの数値が8→1→2→3→4→5→6→7と不規則に並ぶようにRES命令を命令マップに割り当てることによって、プログラム(機械語)の解析を困難にすることができる場合がある。
<ユーザプログラムの具体例>
FIG. 5B is a diagram showing an example in which the numerical order of the first operand of the RES instruction is different from the arrangement order of the instruction map of the RES instruction. Thus, by assigning the RES instruction to the instruction map so that the numerical values of the first operand of the RES instruction are irregularly arranged as 8 → 1 → 2 → 3 → 4 → 5 → 6 → 7, the program (machine language) May be difficult to analyze.
<Specific examples of user programs>

次に、上述のユーザプログラムの具体例について説明する。上述のとおり、主制御部300のCPU304がユーザモードに移行すると、ROM領域の第一領域の先頭アドレスである0000H以降に記憶された命令が順次、実行されてユーザプログラムが開始される。   Next, a specific example of the above user program will be described. As described above, when the CPU 304 of the main control unit 300 shifts to the user mode, instructions stored after 0000H, which is the first address of the first area of the ROM area, are sequentially executed to start the user program.

図133(a)は、ユーザプログラムの一部であるプログラム起動設定処理の一例を示した図であり、同図(b)は、ユーザプログラムの一部である電源投入時設定処理の一例を示した図である。同図に示すユーザプログラムでは、最初にプログラム起動設定処理(アドレス0000H〜0005Hに記憶された命令)が実行されることによって、スタックポインタや割込みモードの設定が行われ、その後に電源投入時設定処理(アドレス0062H)にジャンプするように構成されている。電源投入時処理では、アドレス0062H以降に記憶された命令が順次、実行されることによって、WDTへの動作許可及び初期値の設定や、電源電圧の監視処理が行われる。   FIG. 133 (a) is a diagram showing an example of a program activation setting process that is a part of the user program, and FIG. 133 (b) shows an example of a power-on setting process that is a part of the user program. It is a figure. In the user program shown in the figure, a program start setting process (instructions stored at addresses 0000H to 0005H) is first executed to set a stack pointer and an interrupt mode, and then a power-on setting process. It is configured to jump to (address 0062H). In the power-on process, instructions stored after the address 0062H are sequentially executed, thereby permitting operation to the WDT, setting an initial value, and monitoring the power supply voltage.

図134は、上述の主制御部タイマ割込処理に相当するユーザプログラムの一部を示した図である。主制御部300の基本回路302は、カウンタタイマ312からタイマ割込信号が入力された場合に、同図に示すような割込みベクトルテーブルを参照し、割込みベクトルテーブルに定義されたアドレスにジャンプするように構成されており、この例では、タイマ割込みに対応して定義されたアドレス040AHにジャンプするように構成されている。主制御部タイマ割込処理では、アドレス040AH以降に記憶された命令が順次、実行されることによって、レジスタの退避や、同図(1)〜(18)に示す各種処理が、この順番で行われる。
<主制御部の第4特殊命令>
FIG. 134 is a diagram showing a part of a user program corresponding to the above-described main control unit timer interrupt process. When a timer interrupt signal is input from the counter timer 312, the basic circuit 302 of the main control unit 300 refers to the interrupt vector table as shown in the figure and jumps to the address defined in the interrupt vector table. In this example, the program jumps to an address 040AH defined corresponding to the timer interrupt. In the main control unit timer interrupt processing, the instructions stored after the address 040AH are sequentially executed, so that register saving and various processes shown in FIGS. Is called.
<Fourth special instruction of main controller>

次に、主制御部300が備える第4特殊命令について説明する。図135は、主制御部300が備える第4特殊命令の内容と、主制御部300のROM領域を示した図である。
<第4特殊命令/RST命令>
Next, the fourth special instruction included in the main control unit 300 will be described. FIG. 135 is a diagram showing the contents of the fourth special instruction provided in the main control unit 300 and the ROM area of the main control unit 300.
<4th special instruction / RST instruction>

第4特殊命令の一つである「RST」命令は、固定のアドレスをプログラムカウンタPCに設定することによって、固定のアドレスにジャンプするための命令である。   The “RST” instruction, which is one of the fourth special instructions, is an instruction for jumping to a fixed address by setting a fixed address in the program counter PC.

本実施形態では、プログラムカウンタPCにストアされるアドレスが異なる8種類のRST命令を備えており、RST命令の命令データは、5ビットの命令コード(オペコード)と、3ビットのオペランドによって構成されている。具体的には、命令データCFH〜FFHの7種類のRST命令のビット7〜6、2〜0の5ビットは、RST命令の命令コード(オペコード)を、それ以外のビット5〜3の3ビット(太線で囲まれた部分)は、オペランドとして、各々のRST命令の実行によって分岐することが可能なジャンプ先のアドレスの一部(この例では、ジャンプ先のアドレスのビット5〜3を示す。アドレスのビット2〜0は1固定)を示している。   In this embodiment, eight types of RST instructions having different addresses stored in the program counter PC are provided, and the instruction data of the RST instruction is composed of a 5-bit instruction code (opcode) and a 3-bit operand. Yes. Specifically, bits 7 to 6 and 5 bits of 2 to 0 of seven types of RST instructions of instruction data CFH to FFH are instruction codes (opcodes) of the RST instruction, and other 3 bits of bits 5 to 3 (A portion surrounded by a bold line) indicates a part of a jump destination address (in this example, bits 5 to 3) that can be branched by executing each RST instruction as an operand. Address bits 2 to 0 are fixed to 1).

例えば、命令データCFHのRST命令のビット5〜3は、001Bであるため、ジャンプ先のアドレスのビット5〜3が001Bで、ビット2〜0が0(固定)、すなわち0008Hであることを示しており、命令データD7HのRST命令のビット5〜3は010Bであるため、ジャンプ先のアドレスのビット5〜3が010Bで、ビット2〜0が0(固定)、すなわち0010Hであることを示している。また、その他のRST命令のジャンプ先のアドレスは図に示す通りである。   For example, since bits 5 to 3 of the RST instruction of the instruction data CFH are 001B, bits 5 to 3 of the jump destination address are 001B and bits 2 to 0 are 0 (fixed), that is, 0008H. Since the bits 5 to 3 of the RST instruction of the instruction data D7H are 010B, it indicates that bits 5 to 3 of the jump destination address are 010B and bits 2 to 0 are 0 (fixed), that is, 0010H. ing. Further, jump destination addresses of other RST instructions are as shown in the figure.

一方、命令データC7HのRST命令のビット7〜6、2〜0の5ビットは、RST命令の命令コード(オペランド)を示しており、それ以外のビット5〜3の3ビット(太線で囲まれた部分)は、このRST命令の実行によって分岐することが可能なジャンプ先のアドレス(この例では、ビット5〜3に格納される数値000Bからは予測が不可能な0040H)を示している。すなわち、この命令データC7HのRST命令では、仮に機械語に基づいてオペコードやオペランドを解析できたとしても、当該RST命令の実行によって分岐することが可能なジャンプ先のアドレスを解析することが極めて困難とされている。   On the other hand, bits 7 to 6 and 5 to 2 of the RST instruction of the instruction data C7H indicate the instruction code (operand) of the RST instruction, and the other 3 bits of bits 5 to 3 (enclosed by bold lines). Indicates a jump destination address that can be branched by executing this RST instruction (in this example, 0040H that cannot be predicted from the numerical value 000B stored in bits 5 to 3). That is, in the RST instruction of the instruction data C7H, even if the operation code and the operand can be analyzed based on the machine language, it is extremely difficult to analyze the jump destination address that can be branched by executing the RST instruction. It is said that.

また、これらのRST命令の命令データは、上述の通り、5ビットの命令コード(オペコード)と3ビットのオペランドによって構成されているため、ユーザはオペランドを自由に設定することができず(RST命令によって分岐することが可能なジャンプ先のアドレスを自由に設定することができず)、上述の8種類のRST命令によって分岐することが可能なジャンプ先のアドレスを選択することだけが許されている。   Since the instruction data of these RST instructions is composed of a 5-bit instruction code (opcode) and a 3-bit operand as described above, the user cannot freely set the operand (RST instruction). The jump destination address that can be branched by the RST instruction cannot be freely set), and it is only allowed to select the jump destination address that can be branched by the eight types of RST instructions described above. .

なお、この例では、命令データにオペランドを含めることによって、当該命令によって分岐することが可能なジャンプ先のアドレスを規制する例を示したが、命令データにオペランドを含めなくてもよい。例えば、「RST 0040H」のように、オペコード(RST)とオペランド(0040H)を別々に構成した上で、指定可能なアドレス以外のアドレス(例えば、0000H)がオペランドとして設定された場合にアセンブルエラーにして機械語に変換できないように構成するなど、設定可能なオペランドを制限してもよい。また、命令データにオペランドを含む構成を採用した場合でも、指定可能なアドレス以外のアドレスがオペランドとして設定された場合にアセンブルエラーにして機械語に変換できないように構成するなど、設定可能なオペランドを制限してもよい。   In this example, by including an operand in the instruction data, the jump destination address that can be branched by the instruction is controlled. However, the instruction data may not include the operand. For example, when an opcode (RST) and an operand (0040H) are configured separately as in “RST 0040H” and an address other than a specifiable address (for example, 0000H) is set as an operand, an assembly error is generated. The operands that can be set may be limited, for example, such that it cannot be converted into machine language. In addition, even when a configuration that includes operands in the instruction data is adopted, configurable operands such as an assembly error that cannot be converted into machine language when an address other than a specifiable address is set as an operand. You may restrict.

すなわち、本実施形態に係るRST命令では8種類のアドレス(0008H、0010H、0018H、0020H、0028H、0030H、0038H、0040H)だけにジャンプすることが可能となっており、例えば、RST命令によってROM領域の第一領域の先頭アドレス0000Hにジャンプすることができないように構成されている。このため、不正プログラムを組み込んで先頭アドレスにジャンプさせる(ユーザプログラムを先頭アドレスから開始させて不正に初期状態とする)ような行為を未然に防止できる場合がある。   That is, in the RST instruction according to the present embodiment, it is possible to jump to only eight types of addresses (0008H, 0010H, 0018H, 0020H, 0028H, 0030H, 0038H, 0040H). The first area of the first area cannot be jumped to 0000H. For this reason, there is a case where an act of incorporating an illegal program and jumping to the start address (starting the user program from the start address and making it an initial state illegally) can be prevented in advance.

また、命令データC7HのRST命令では、命令データには含まれない数値である0040Hをジャンプ先のアドレスとしているため、逆アセンブルなどによってジャンプ先のアドレスやプログラムの流れを特定することが極めて困難で、不正なプログラム改造を未然に防止できる場合がある。また、RST命令では、図136の命令マップに示すように、命令コードの順番を昇順(C7H→CFH→…)に設定しているのに対して、ジャンプ先のアドレスの順番(0040H→0008H→…)を昇順にはしないように構成しているため、命令の分析を行うことが極めて困難で、不正なプログラム改造を未然に防止できる場合がある。
<実施形態3>
In the RST instruction of the instruction data C7H, the numerical value 0040H that is not included in the instruction data is used as the jump destination address. Therefore, it is extremely difficult to specify the jump destination address and the program flow by disassembly or the like. In some cases, unauthorized program modifications can be prevented. In the RST instruction, the order of instruction codes is set in ascending order (C7H → CFH →...) As shown in the instruction map of FIG. 136, whereas the order of jump destination addresses (0040H → 0008H → ...) are not arranged in ascending order, it is extremely difficult to analyze instructions, and unauthorized program modification may be prevented in advance.
<Embodiment 3>

以下、図面を用いて、本発明の実施形態3に係る遊技台(スロットマシン1100)について詳細に説明する。
<全体構成>
Hereinafter, the gaming machine (slot machine 1100) according to Embodiment 3 of the present invention will be described in detail with reference to the drawings.
<Overall configuration>

まず、図137を用いて、本発明の実施形態3に係るスロットマシン1100の全体構成について説明する。なお、同図はスロットマシン1100を正面側(遊技者側)から見た外観斜視図である。   First, the overall configuration of the slot machine 1100 according to the third embodiment of the present invention will be described with reference to FIG. This figure is an external perspective view of the slot machine 1100 as seen from the front side (player side).

同図に示すスロットマシン1100は、本体1101と、本体1101の正面に取り付けられ、本体1101に対して開閉可能な前面扉1102と、を備える。本体1101の中央内部には、(図示省略)外周面に複数種類の図柄が配置されたリールが3個(左リール1110、中リール1111、右リール1112)収納され、スロットマシン1100の内部で回転できるように構成されている。これらのリール1110乃至1112はステッピングモータ等の駆動装置により回転駆動される。   A slot machine 1100 shown in the figure includes a main body 1101 and a front door 1102 that is attached to the front surface of the main body 1101 and can be opened and closed with respect to the main body 1101. Inside the center of the main body 1101 (not shown), three reels (left reel 1110, middle reel 1111 and right reel 1112) having a plurality of types of symbols arranged on the outer peripheral surface are stored and rotated inside the slot machine 1100. It is configured to be able to. These reels 1110 to 1112 are rotationally driven by a driving device such as a stepping motor.

本実施形態において、各図柄は帯状部材に等間隔で適当数印刷され、この帯状部材が所定の円形筒状の枠材に貼り付けられて各リール1110乃至1112が構成されている。リール1110乃至1112上の図柄は、遊技者から見ると、図柄表示窓1113から縦方向に概ね3つ表示され、合計9つの図柄が見えるようになっている。そして、各リール1110乃至1112を回転させることにより、遊技者から見える図柄の組み合せが変動することとなる。つまり、各リール1110乃至1112は複数種類の図柄の組合せを変動可能に表示する表示装置として機能する。なお、このような表示装置としてはリール以外にも液晶表示装置等の電子画像表示装置も採用できる。また、本実施形態では、3個のリールをスロットマシン1100の中央内部に備えているが、リールの数やリールの設置位置はこれに限定されるものではない。   In the present embodiment, an appropriate number of symbols are printed on the belt-like member at equal intervals, and the reels 1110 to 1112 are configured by attaching the belt-like member to a predetermined circular cylindrical frame member. When viewed from the player, the symbols on the reels 1110 to 1112 are generally displayed in the vertical direction from the symbol display window 1113 so that a total of nine symbols can be seen. Then, by rotating the reels 1110 to 1112, the combination of symbols that can be seen by the player varies. That is, each of the reels 1110 to 1112 functions as a display device that displays a plurality of combinations of symbols in a variable manner. In addition to the reel, an electronic image display device such as a liquid crystal display device can also be used as such a display device. In this embodiment, three reels are provided in the center of the slot machine 1100. However, the number of reels and the installation position of the reels are not limited to this.

各々のリール1110乃至1112の背面には、図柄表示窓1113に表示される個々の図柄を照明するためのバックライト(図示省略)が配置されている。バックライトは、各々の図柄ごとに遮蔽されて個々の図柄を均等に照射できるようにすることが望ましい。なお、スロットマシン1100内部において各々のリール1110乃至1112の近傍には、投光部と受光部から成る光学式センサ(図示省略)が設けられており、この光学式センサの投光部と受光部の間をリールに設けられた一定の長さの遮光片が通過するように構成されている。このセンサの検出結果に基づいてリール上の図柄の回転方向の位置を判断し、目的とする図柄が入賞ライン上に表示されるようにリール1110乃至1112を停止させる。   Backlights (not shown) for illuminating individual symbols displayed on the symbol display window 1113 are arranged on the rear surfaces of the reels 1110 to 1112. It is desirable that the backlight is shielded for each symbol so that the individual symbols can be illuminated evenly. In the slot machine 1100, an optical sensor (not shown) including a light projecting unit and a light receiving unit is provided in the vicinity of each reel 1110 to 1112. The light projecting unit and the light receiving unit of this optical sensor are provided. A light shielding piece of a certain length provided on the reel passes between the two. Based on the detection result of this sensor, the position of the symbol on the reel in the rotation direction is determined, and the reels 1110 to 1112 are stopped so that the target symbol is displayed on the winning line.

入賞ライン表示ランプ1120は、有効となる入賞ライン1114を示すランプである。有効となる入賞ラインは、遊技媒体としてベットされたメダルの数によって予め定まっている。入賞ライン1114は5ラインあり、例えば、メダルが1枚ベットされた場合、中段の水平入賞ラインが有効となり、メダルが2枚ベットされた場合、上段水平入賞ラインと下段水平入賞ラインが追加された3本が有効となり、メダルが3枚ベットされた場合、右下り入賞ラインと右上り入賞ラインが追加された5ラインが入賞ラインとして有効になる。なお、入賞ライン1114の数については5ラインに限定されるものではなく、また、例えば、メダルが1枚ベットされた場合に、中段の水平入賞ライン、上段水平入賞ライン、下段水平入賞ライン、右下り入賞ラインおよび右上り入賞ラインの5ラインを有効な入賞ラインとして設定してもよく、ベット数に関係なく、一律に同一数の入賞ラインを有効な入賞ラインとして設定してもよい。   The winning line display lamp 1120 is a lamp indicating a winning line 1114 that is valid. The effective pay line is determined in advance by the number of medals bet as a game medium. There are 5 winning lines 1114. For example, when one medal is bet, the middle horizontal winning line is valid, and when two medals are betted, the upper horizontal winning line and the lower horizontal winning line are added. If three are valid and three medals are bet, five lines including a right-down winning line and an upper-right winning line are valid as winning lines. Note that the number of winning lines 1114 is not limited to five. For example, when one medal is bet, the middle horizontal winning line, the upper horizontal winning line, the lower horizontal winning line, the right The down line and the upper right line may be set as valid pay lines, and the same number of pay lines may be set as valid pay lines regardless of the number of bets.

告知ランプ1123は、例えば、後述する内部抽選において特定の入賞役(具体的には、ボーナス)に内部当選していること、または、ボーナス遊技中であることを遊技者に知らせるランプである。遊技メダル投入可能ランプ1124は、遊技者が遊技メダルを投入可能であることを知らせるためのランプである。再遊技ランプ1122は、前回の遊技において入賞役の一つである再遊技に入賞した場合に、今回の遊技が再遊技可能であること(メダルの投入が不要であること)を遊技者に知らせるランプである。リールパネルランプ1128は演出用のランプである。   The notification lamp 1123 is, for example, a lamp that informs the player that a specific winning combination (specifically, a bonus) has been won internally in an internal lottery to be described later, or that a bonus game is in progress. The game medal insertable lamp 1124 is a lamp for notifying that the player can insert a game medal. The replay lamp 1122 informs the player that the current game can be replayed (the medal insertion is unnecessary) when winning a replay that is one of the winning combinations in the previous game. It is a lamp. The reel panel lamp 1128 is an effect lamp.

ベットボタン1130乃至1132は、スロットマシン1100に電子的に貯留されているメダル(クレジットという)を所定の枚数分投入するためのボタンである。本実施形態においては、ベットボタン1130が押下される毎に1枚ずつ最大3枚まで投入され、ベットボタン1131が押下されると2枚投入され、ベットボタン1132が押下されると3枚投入されるようになっている。以下、ベットボタン1132はMAXベットボタンとも言う。なお、遊技メダル投入ランプ1129は、投入されたメダル数に応じた数のランプを点灯させ、規定枚数のメダルの投入があった場合、遊技の開始操作が可能な状態であることを知らせる遊技開始ランプ1121が点灯する。   The bet buttons 1130 to 1132 are buttons for inserting a predetermined number of medals (referred to as credits) stored electronically in the slot machine 1100. In this embodiment, every time the bet button 1130 is pressed, a maximum of three cards are inserted, two are inserted when the bet button 1131 is pressed, and three are inserted when the bet button 1132 is pressed. It has become so. Hereinafter, the bet button 1132 is also referred to as a MAX bet button. The game medal insertion lamp 1129 lights up a number of lamps corresponding to the number of inserted medals, and when a prescribed number of medals are inserted, a game start is informed that a game start operation is possible. The lamp 1121 is turned on.

メダル投入口1141は、遊技を開始するに当たって遊技者がメダルを投入するための投入口である。すなわち、メダルの投入は、ベットボタン1130乃至1132により電子的に投入することもできるし、メダル投入口1141から実際のメダルを投入(投入操作)することもでき、投入とは両者を含む意味である。貯留枚数表示器1125は、スロットマシン1100に電子的に貯留されているメダルの枚数を表示するための表示器である。遊技情報表示器1126は、各種の内部情報(例えば、ボーナス遊技中のメダル払出枚数)を数値で表示するための表示器である。払出枚数表示器1127は、何らかの入賞役に入賞した結果、遊技者に払出されるメダルの枚数を表示するための表示器である。貯留枚数表示器1125、遊技情報表示器1126、および、払出枚数表示器1127は、7セグメント(SEG)表示器とした。   The medal slot 1141 is an slot for a player to insert a medal when starting a game. In other words, the insertion of medals can be performed electronically by using the bet buttons 1130 to 1132, or an actual medal can be inserted (insertion operation) from the medal insertion slot 1141, and the insertion includes both. is there. The stored number display 1125 is a display for displaying the number of medals stored electronically in the slot machine 1100. The game information display 1126 is a display for displaying various types of internal information (for example, the number of medals paid out during the bonus game) as numerical values. The payout number display 1127 is a display for displaying the number of medals to be paid out to the player as a result of winning a winning combination. The stored number display 1125, the game information display 1126, and the payout number display 1127 are 7-segment (SEG) displays.

スタートレバー1135は、リール1110乃至1112の回転を開始させるためのレバー型のスイッチである。即ち、メダル投入口1141に所望するメダル枚数を投入するか、ベットボタン1130乃至1132を操作して、スタートレバー1135を操作すると、リール1110乃至1112が回転を開始することとなる。スタートレバー1135に対する操作を遊技の開始操作と言う。   The start lever 1135 is a lever type switch for starting the rotation of the reels 1110 to 1112. That is, when a desired medal number is inserted into the medal insertion slot 1141 or when the bet buttons 1130 to 1132 are operated and the start lever 1135 is operated, the reels 1110 to 1112 start to rotate. The operation on the start lever 1135 is referred to as a game start operation.

ストップボタンユニット1136には、ストップボタン1137乃至1139が設けられている。ストップボタン1137乃至1139は、スタートレバー1135の操作によって回転を開始したリール1110乃至1112を個別に停止させるためのボタン型のスイッチであり、各リール1110乃至1112に対応づけられている。以下、ストップボタン1137乃至1139に対する操作を停止操作と言い、最初の停止操作を第1停止操作、次の停止操作を第2停止操作、最後の停止操作を第3停止操作という。なお、各ストップボタン1137乃至1139の内部に発光体を設けてもよく、ストップボタン1137乃至1139の操作が可能である場合、該発光体を点灯させて遊技者に知らせることもできる。   The stop button unit 1136 is provided with stop buttons 1137 to 1139. Stop buttons 1137 to 1139 are button-type switches for individually stopping the reels 1110 to 1112 that have started rotating by operating the start lever 1135, and are associated with the reels 1110 to 1112. Hereinafter, the operation on the stop buttons 1137 to 1139 is referred to as a stop operation, the first stop operation is referred to as a first stop operation, the next stop operation is referred to as a second stop operation, and the last stop operation is referred to as a third stop operation. Note that a light emitter may be provided inside each stop button 1137 to 1139, and when the stop button 1137 to 1139 can be operated, the light emitter may be turned on to notify the player.

メダル返却ボタン1133は、投入されたメダルが詰まった場合に押下してメダルを取り除くためのボタンである。精算ボタン1134は、スロットマシン1100に電子的に貯留されたメダル、ベットされたメダルを精算し、メダル払出口1155から排出するためのボタンである。ドアキー孔1140は、スロットマシン1100の前面扉1102のロックを解除するためのキーを挿入する孔である。ストップボタンユニット1136の下部には、機種名の表示と各種証紙の貼付とを行うタイトルパネル1162が設けられている。タイトルパネル1162の下部には、メダル払出口1155、メダルの受け皿1161が設けられている。   The medal return button 1133 is a button for pressing and removing a medal when the inserted medal is clogged. The payment button 1134 is a button for adjusting the medals stored electronically in the slot machine 1100 and the bet medals and discharging them from the medal payout exit 1155. Door key hole 1140 is a hole into which a key for unlocking front door 1102 of slot machine 1100 is inserted. Below the stop button unit 1136, a title panel 1162 for displaying a model name and pasting various types of certificate stamps is provided. At the bottom of the title panel 1162, a medal payout opening 1155 and a medal tray 1161 are provided.

音孔1180はスロットマシン1100内部に設けられているスピーカの音を外部に出力するための孔である。前面扉1102の左右各部に設けられたサイドランプ1144は遊技を盛り上げるための装飾用のランプである。前面扉1102の上部には演出装置1160が配設されており、演出装置1160の上部には音孔1143が設けられている。この演出装置1160は、水平方向に開閉自在な2枚の右シャッタ1163a、左シャッタ1163bからなるシャッタ(遮蔽装置)1163と、このシャッタ1163の奥側に配設された液晶表示装置1157(演出画像表示装置)を備えており、右シャッタ1163a、左シャッタ1163bが液晶表示装置1157の手前で水平方向外側に開くと液晶表示装置1157の表示画面がスロットマシン1100正面(遊技者側)に出現する構造となっている。なお、液晶表示装置でなくとも、種々の演出画像や種々の遊技情報を表示可能な表示装置であればよく、例えば、複数セグメントディスプレイ(7セグディスプレイ)、ドットマトリクスディスプレイ、有機ELディスプレイ、プラズマディスプレイ、リール(ドラム)、或いは、プロジェクタとスクリーンとからなる表示装置等でもよい。また、表示画面は、方形をなし、その全体を遊技者が視認可能に構成している。本実施形態の場合、表示画面は長方形であるが、正方形でもよい。また、表示画面の周縁に不図示の装飾物を設けて、表示画面の周縁の一部が該装飾物に隠れる結果、表示画面が異形に見えるようにすることもできる。表示画面は本実施形態の場合、平坦面であるが、曲面をなしていてもよい。   The sound hole 1180 is a hole for outputting the sound of a speaker provided inside the slot machine 1100 to the outside. Side lamps 1144 provided at the left and right portions of the front door 1102 are decorative lamps for exciting games. An effect device 1160 is disposed above the front door 1102, and a sound hole 1143 is provided above the effect device 1160. This effect device 1160 includes a shutter (shielding device) 1163 including two right shutters 1163a and 1163b that can be opened and closed in a horizontal direction, and a liquid crystal display device 1157 (effect image) disposed on the back side of the shutter 1163. And a display screen of the liquid crystal display device 1157 appears on the front side (player side) of the slot machine 1100 when the right shutter 1163a and the left shutter 1163b are opened horizontally in front of the liquid crystal display device 1157. It has become. It should be noted that the display device is not limited to a liquid crystal display device, but may be any display device capable of displaying various effect images and various game information. For example, a multi-segment display (7-segment display), dot matrix display, organic EL display, plasma display , A reel (drum), or a display device including a projector and a screen. Further, the display screen has a rectangular shape and is configured so that the player can visually recognize the entire display screen. In the case of this embodiment, the display screen is rectangular, but may be square. In addition, a decorative object (not shown) may be provided on the periphery of the display screen, and a part of the peripheral edge of the display screen may be hidden by the decorative object, so that the display screen looks irregular. In the present embodiment, the display screen is a flat surface, but may be a curved surface.

図138は、前面扉102を開けた状態のスロットマシン1100を示す正面図である。本体1101は、上面板1261、左側の側面板1260、右側の側面板1260、下面板1264および背面板1242で囲われ、前面に開口する箱体である。本体1101の内部には、背面板1242の上部に設けた通風口1249と重ならない位置に、内部に主制御基板を収納した主制御基板収納ケース1210が配置され、この主制御基板収納ケース1210の下方に、3つのリール1110乃至1112が配置されている。主制御基板収納ケース1210及びリール1110乃至1112の側方、即ち向って左側の側面板1260には、内部に副制御基板を収納した副制御基板収納ケース1220が配設してある。また、向かって右側の側面板1260には、主制御基板に接続されて、スロットマシン1100の情報を外部装置に出力する外部集中端子板1248が取り付けられている。   FIG. 138 is a front view showing the slot machine 1100 with the front door 102 opened. The main body 1101 is a box that is surrounded by an upper surface plate 1261, a left side plate 1260, a right side plate 1260, a lower surface plate 1264, and a back plate 1242 and opens to the front. Inside the main body 1101, a main control board storage case 1210 in which a main control board is stored is disposed at a position that does not overlap with the ventilation opening 1249 provided in the upper part of the back plate 1242. Below the three reels 1110 to 1112 are arranged. On the side plate 1260 on the left side of the main control board storage case 1210 and the reels 1110 to 1112, a sub control board storage case 1220 storing the sub control board is disposed. The right side plate 1260 is attached with an external concentration terminal plate 1248 that is connected to the main control board and outputs information of the slot machine 1100 to an external device.

そして、下面板1264には、メダル払出装置1180(バケットに溜まったメダルを払出す装置)が配設され、このメダル払出装置1180の上方、即ちリール1110乃至1112の下方には、電源基板を有する電源装置1252が配設され、電源装置1252正面には電源スイッチ1244を配設している。電源装置1252は、スロットマシン1100に外部から供給される交流電源を直流化し、所定の電圧に変換して後述する主制御部1300、副制御部1400、1500等の各制御部、各装置に供給する。さらには、外部からの電源が断たれた後も所定の部品(例えば主制御部1300のRAM1308等)に所定の期間(例えば10日間)電源を供給するための蓄電回路(例えばコンデンサ)を備えている。   The bottom plate 1264 is provided with a medal payout device 1180 (device for paying out medals accumulated in a bucket), and has a power supply board above the medal payout device 1180, that is, below the reels 1110 to 1112. A power supply device 1252 is provided, and a power switch 1244 is provided on the front surface of the power supply device 1252. The power supply device 1252 converts the AC power supplied from the outside to the slot machine 1100 into a direct current, converts it into a predetermined voltage, and supplies it to each control unit and each device such as a main control unit 1300 and sub-control units 1400 and 1500 described later. To do. Furthermore, a power storage circuit (for example, a capacitor) for supplying power to a predetermined part (for example, the RAM 1308 of the main control unit 1300) for a predetermined period (for example, 10 days) even after the power supply from the outside is cut off is provided. Yes.

メダル払出装置1180の右側には、メダル補助収納庫1240が配設してあり、この背後にはオーバーフロー端子が配設されている(図示省略)。電源装置1252には、電源コード1264を接続する電源コード接続部が設けられ、ここに接続された電源コード1264が、本体1101の背面板1242に開設した電源コード用穴1262を通して外部に延出している。   A medal auxiliary storage 1240 is arranged on the right side of the medal payout device 1180, and an overflow terminal is arranged behind this (not shown). The power supply device 1252 is provided with a power cord connecting portion for connecting a power cord 1264, and the power cord 1264 connected thereto extends to the outside through a power cord hole 1262 provided in the back plate 1242 of the main body 1101. Yes.

前面扉1102は、本体1101の左側の側面板1260にヒンジ装置1276を介して蝶着され、図柄表示窓1113の上部には、演出装置1160、および、この演出装置1160を制御する演出制御基板(図示省略)、上部スピーカ1272、を設けている。図柄表示窓1113の下部には、投入されたメダルを選別するためのメダルセレクタ1170、このメダルセレクタ1170が不正なメダル等をメダル受皿1161に落下させる際にメダルが通過する通路1266等を設けている。さらに、音孔1180に対応する位置には低音スピーカ1277を設けている。   The front door 1102 is hinged to the left side plate 1260 of the main body 1101 via a hinge device 1276, and an effect device 1160 and an effect control board (which controls the effect device 1160) are provided above the symbol display window 1113. An upper speaker 1272 is provided. At the bottom of the symbol display window 1113, a medal selector 1170 for selecting inserted medals, a passage 1266 through which medals pass when the medal selector 1170 drops illegal medals etc. on the medal tray 1161, etc. are provided. Yes. Further, a bass speaker 1277 is provided at a position corresponding to the sound hole 1180.

図139を用いて、スロットマシン1100の制御部の回路構成について詳細に説明する。なお、同図は制御部の回路ブロック図を示したものである。   The circuit configuration of the control unit of the slot machine 1100 will be described in detail with reference to FIG. This figure shows a circuit block diagram of the control unit.

スロットマシン1100の制御部は、大別すると、主に遊技の進行(例えば、遊技者による操作の検出、遊技状態の遷移、遊技媒体の払出制御、当否判定など)を制御する主制御部1300と、主制御部1300が送信するコマンド信号(以下、単に「コマンド」と呼ぶ)に応じて、主に演出の制御を行う第1副制御部1400と、第1副制御部1400より送信されたコマンドに基づいて各種機器を制御する第2副制御部1500と、によって構成されている。
<主制御部>
The control unit of the slot machine 1100 can be broadly divided into a main control unit 1300 that mainly controls the progress of a game (for example, detection of an operation by a player, transition of a game state, game medium payout control, determination of success / failure, etc.). In response to a command signal transmitted from the main control unit 1300 (hereinafter simply referred to as “command”), a first sub control unit 1400 that mainly controls production and a command transmitted from the first sub control unit 1400 And a second sub-control unit 1500 that controls various devices based on the above.
<Main control unit>

まず、スロットマシン1100の主制御部1300について説明する。主制御部1300は、主制御部1300の全体を制御する基本回路1302を備えており、この基本回路1302には、CPU1304と、制御プログラムデータ、入賞役の内部抽選時に用いる抽選データ、リールの停止位置等を記憶するためのROM1306と、一時的にデータを記憶するためのRAM1308と、各種デバイスの入出力を制御するためのI/O1310と、時間や回数等を計測するためのカウンタタイマ1312と、WDT(ウォッチドックタイマ)1314を搭載している。なお、ROM1306やRAM1308については他の記憶装置を用いてもよく、この点は後述する第1副制御部1400や第2副制御部500についても同様である。この基本回路1302のCPU1304は、水晶発振器1314が出力する所定周期のクロック信号をシステムクロックとして入力して動作する。さらには、CPU1304は、電源が投入されるとROM1306の所定エリアに格納された分周用のデータをカウンタタイマ1312に送信し、カウンタタイマ1312は受信した分周用のデータを基に割り込み時間を決定し、この割り込み時間ごとに割り込み要求をCPU1304に送信する。CPU1304は、この割込み要求を契機に各センサ等の監視や駆動パルスの送信を実行する。例えば、水晶発振器1314が出力するクロック信号を8MHz、カウンタタイマ1312の分周値を1/256、ROM1306の分周用のデータを47に設定した場合、割り込みの基準時間は、256×47÷8MHz=1.504msとなる。   First, the main control unit 1300 of the slot machine 1100 will be described. The main control unit 1300 includes a basic circuit 1302 that controls the entire main control unit 1300. The basic circuit 1302 includes a CPU 1304, control program data, lottery data used during an internal lottery for a winning combination, and reel stop. ROM 1306 for storing position, RAM 1308 for temporarily storing data, I / O 1310 for controlling input / output of various devices, counter timer 1312 for measuring time, frequency, etc. WDT (watchdog timer) 1314 is mounted. Note that another storage device may be used for the ROM 1306 and the RAM 1308, and this is the same for the first sub-control unit 1400 and the second sub-control unit 500 described later. The CPU 1304 of the basic circuit 1302 operates by inputting a clock signal of a predetermined period output from the crystal oscillator 1314 as a system clock. Further, when the power is turned on, the CPU 1304 transmits the frequency division data stored in the predetermined area of the ROM 1306 to the counter timer 1312. The counter timer 1312 sets the interrupt time based on the received frequency division data. An interrupt request is transmitted to the CPU 1304 at every interrupt time. In response to this interrupt request, the CPU 1304 executes monitoring of each sensor and transmission of drive pulses. For example, when the clock signal output from the crystal oscillator 1314 is set to 8 MHz, the frequency division value of the counter timer 1312 is set to 1/256, and the data for frequency division of the ROM 1306 is set to 47, the interrupt reference time is 256 × 47 ÷ 8 MHz. = 1.504 ms.

主制御部1300は、0〜65535の範囲で数値を変動させるハードウェア乱数カウンタとして使用している乱数値生成回路1316と、電源が投入されると起動信号(リセット信号)を出力する起動信号出力回路1338を備えており、CPU1304は、この起動信号出力回路1338から起動信号が入力された場合に、遊技制御を開始する(後述する主制御部メイン処理を開始する)。   The main control unit 1300 has a random number generation circuit 1316 that is used as a hardware random number counter that changes a numerical value in the range of 0 to 65535, and a start signal output that outputs a start signal (reset signal) when the power is turned on. A circuit 1338 is provided, and the CPU 1304 starts game control when a start signal is input from the start signal output circuit 1338 (starts a main control unit main process described later).

また、主制御部1300には、センサ回路1320を備えており、CPU1304は、割り込み時間ごとに各種センサ1318(ベットボタン1130センサ、ベットボタン1131センサ、ベットボタン1132センサ、メダル投入口1141から投入されたメダルのメダル受付センサ、スタートレバー1135センサ、ストップボタン1137センサ、ストップボタン1138センサ、ストップボタン1139センサ、精算ボタン1134センサ、メダル払出装置1180から払い出されるメダルのメダル払出センサ、リール1110のインデックスセンサ、リール1111のインデックスセンサ、リール1112のインデックスセンサ、等)の状態を監視している。   Further, the main control unit 1300 includes a sensor circuit 1320, and the CPU 1304 is inserted from various sensors 1318 (a bet button 1130 sensor, a bet button 1131 sensor, a bet button 1132 sensor, and a medal slot 1141 at every interruption time. Medal acceptance sensor, start lever 1135 sensor, stop button 1137 sensor, stop button 1138 sensor, stop button 1139 sensor, settlement button 1134 sensor, medal payout sensor for medals paid out from the medal payout device 1180, index sensor for reel 1110 , The index sensor of the reel 1111, the index sensor of the reel 1112, etc.).

なお、センサ回路1320がスタートレバーセンサのHレベルを検出した場合には、この検出を示す信号を乱数発生回路1316に出力する。この信号を受信した乱数発生回路1316は、そのタイミングにおける値をラッチし、抽選に使用する乱数値を格納するレジスタに記憶する。   When the sensor circuit 1320 detects the H level of the start lever sensor, a signal indicating this detection is output to the random number generation circuit 1316. The random number generation circuit 1316 that has received this signal latches the value at that timing and stores it in a register that stores the random number value used for the lottery.

メダル受付センサは、メダル投入口1141の内部通路に2個設置されており、メダルの通過有無を検出する。スタートレバー1135センサは、スタートレバー1135内部に2個設置されており、遊技者によるスタート操作を検出する。ストップボタン1137センサ、ストップボタン1138センサ、および、ストップボタン1139は、各々のストップボタン1137乃至1139に設置されており、遊技者によるストップボタンの操作を検出する。   Two medal acceptance sensors are installed in the internal passage of the medal insertion slot 1141 and detect whether or not a medal has passed. Two start lever 1135 sensors are installed inside the start lever 1135 and detect a start operation by the player. The stop button 1137 sensor, the stop button 1138 sensor, and the stop button 1139 are installed in each of the stop buttons 1137 to 1139, and detect the operation of the stop button by the player.

ベットボタン1130センサ、ベットボタン1131センサ、および、ベットボタン1132センサは、メダル投入ボタン1130乃至1132のそれぞれに設置されており、RAM1308に電子的に貯留されているメダルを遊技への投入メダルとして投入する場合の投入操作を検出する。精算ボタン1134センサは、精算ボタン1134に設けられている。精算ボタン1134が一回押されると、電子的に貯留されているメダルを精算する。メダル払出センサは、メダル払出装置1180が払い出すメダルを検出するためのセンサである。なお、以上の各センサは、非接触式のセンサであっても接点式のセンサであってもよい。   The bet button 1130 sensor, the bet button 1131 sensor, and the bet button 1132 sensor are installed in each of the medal insertion buttons 1130 to 1132, and the medal stored electronically in the RAM 1308 is inserted as an inserted medal into the game. Detecting the input operation when The settlement button 1134 sensor is provided on the settlement button 1134. When the settlement button 1134 is pressed once, medals stored electronically are settled. The medal payout sensor is a sensor for detecting a medal paid out by the medal payout device 1180. Each of the above sensors may be a non-contact type sensor or a contact type sensor.

リール1110のインデックスセンサ、リール1111のインデックスセンサ、および、リール1112のインデックスセンサは、各リール1110乃至1112の取付台の所定位置に設置されており、リールフレームに設けた遮光片が通過するたびにLレベルになる。CPU1304は、この信号を検出すると、リールが1回転したものと判断し、リールの回転位置情報をゼロにリセットする。   The index sensor of the reel 1110, the index sensor of the reel 1111, and the index sensor of the reel 1112 are installed at predetermined positions on the mounting bases of the reels 1110 to 1112, and each time a light shielding piece provided on the reel frame passes. Becomes L level. When detecting this signal, the CPU 1304 determines that the reel has made one rotation, and resets the reel rotation position information to zero.

主制御部1300は、リール装置1110乃至1112に設けたステッピングモータを駆動する駆動回路1322、投入されたメダルを選別するメダルセレクタ1170に設けたソレノイドを駆動する駆動回路1324、メダル払出装置1180に設けたモータを駆動する駆動回路1326、各種ランプ1338(入賞ライン表示ランプ1120、告知ランプ1123、遊技メダル投入可能ランプ1124、再遊技ランプ1122、遊技メダル投入ランプ1129は、遊技開始ランプ1121、貯留枚数表示器1125、遊技情報表示器1126、払出枚数表示器1127)を駆動する駆動回路1328を備えている。   The main control unit 1300 is provided in a drive circuit 1322 for driving a stepping motor provided in the reel devices 1110 to 1112, a drive circuit 1324 for driving a solenoid provided in a medal selector 1170 for selecting inserted medals, and a medal payout device 1180. A drive circuit 1326 for driving the motor, various lamps 1338 (a winning line display lamp 1120, a notification lamp 1123, a game medal insertion enable lamp 1124, a re-game lamp 1122, a game medal insertion lamp 1129, a game start lamp 1121, and a stored number display. A driving circuit 1328 for driving a device 1125, a game information display 1126, and a payout amount display 1127).

また、基本回路1302には、情報出力回路1334(外部集中端子板1248)を接続しており、主制御部1300は、この情報出力回路1334を介して、外部のホールコンピュータ(図示省略)等が備える情報入力回路1652にスロットマシン1100の遊技情報(例えば、遊技状態)を出力する。   In addition, an information output circuit 1334 (external concentration terminal board 1248) is connected to the basic circuit 1302, and the main control unit 1300 is connected to an external hall computer (not shown) or the like via the information output circuit 1334. The gaming information (for example, gaming state) of the slot machine 1100 is output to the information input circuit 1652 provided.

また、主制御部1300は、電源管理部(図示しない)から主制御部1300に供給している電源の電圧値を監視する電圧監視回路1330を備えており、電圧監視回路1330は、電源の電圧値が所定の値(本実施例では9V)未満である場合に電圧が低下したことを示す低電圧信号を基本回路1302に出力する。   The main control unit 1300 includes a voltage monitoring circuit 1330 that monitors the voltage value of the power supplied from the power management unit (not shown) to the main control unit 1300, and the voltage monitoring circuit 1330 includes the voltage of the power supply. When the value is less than a predetermined value (9 V in this embodiment), a low voltage signal indicating that the voltage has decreased is output to the basic circuit 1302.

また、主制御部1300は、第1副制御部1400にコマンドを送信するための出力インタフェースを備えており、第1副制御部1400との通信を可能としている。なお、主制御部1300と第1副制御部1400との情報通信は一方向の通信であり、主制御部1300は第1副制御部1400にコマンド等の信号を送信できるように構成しているが、第1副制御部1400からは主制御部1300にコマンド等の信号を送信できないように構成している。
<副制御部>
The main control unit 1300 includes an output interface for transmitting a command to the first sub control unit 1400 and enables communication with the first sub control unit 1400. Information communication between the main control unit 1300 and the first sub control unit 1400 is one-way communication, and the main control unit 1300 is configured to transmit a signal such as a command to the first sub control unit 1400. However, the first sub-control unit 1400 is configured not to transmit a signal such as a command to the main control unit 1300.
<Sub control unit>

次に、スロットマシン1100の第1副制御部1400について説明する。第1副制御部1400は、主制御部1300が送信した制御コマンドを入力インタフェースを介して受信し、この制御コマンドに基づいて第1副制御部1400の全体を制御する基本回路1402を備えており、この基本回路1402は、CPU1404と、一時的にデータを記憶するためのRAM1408と、各種デバイスの入出力を制御するためのI/O1410と、時間や回数等を計測するためのカウンタタイマ1412を搭載している。基本回路1402のCPU1404は、水晶発振器1414が出力する所定周期のクロック信号をシステムクロックとして入力して動作する。ROM406は、第1副制御部1400の全体を制御するための制御プログラム及びデータ、バックライトの点灯パターンや各種表示器を制御するためのデータ等を記憶する。   Next, the first sub control unit 1400 of the slot machine 1100 will be described. The first sub control unit 1400 includes a basic circuit 1402 that receives a control command transmitted from the main control unit 1300 via an input interface and controls the entire first sub control unit 1400 based on the control command. The basic circuit 1402 includes a CPU 1404, a RAM 1408 for temporarily storing data, an I / O 1410 for controlling input / output of various devices, and a counter timer 1412 for measuring time and frequency. It is installed. The CPU 1404 of the basic circuit 1402 operates by inputting a clock signal of a predetermined period output from the crystal oscillator 1414 as a system clock. The ROM 406 stores a control program and data for controlling the entire first sub-control unit 1400, a backlight lighting pattern, data for controlling various displays, and the like.

CPU1404は、所定のタイミングでデータバスを介してROM1406の所定エリアに格納された分周用のデータをカウンタタイマ1412に送信する。カウンタタイマ1412は、受信した分周用のデータを基に割り込み時間を決定し、この割り込み時間ごとに割り込み要求をCPU1404に送信する。CPU1404は、この割込み要求のタイミングをもとに、各ICや各回路を制御する。   The CPU 1404 transmits the frequency dividing data stored in the predetermined area of the ROM 1406 to the counter timer 1412 via the data bus at a predetermined timing. The counter timer 1412 determines an interrupt time based on the received frequency division data, and transmits an interrupt request to the CPU 1404 at each interrupt time. The CPU 1404 controls each IC and each circuit based on the interrupt request timing.

また、第1副制御部1400には、音源IC1418を設けており、音源IC1418に出力インタフェースを介してスピーカ1272、1277を設けている。音源IC1418は、CPU1404からの命令に応じてアンプおよびスピーカ1272、1277から出力する音声の制御を行う。音源IC1418には音声データが記憶されたS−ROM(サウンドROM)が接続されており、このROMから取得した音声データをアンプで増幅させてスピーカ1272、1277から出力する。   The first sub-control unit 1400 is provided with a sound source IC 1418, and the sound source IC 1418 is provided with speakers 1272 and 1277 via an output interface. The sound source IC 1418 controls sound output from the amplifiers and speakers 1272 and 1277 in accordance with a command from the CPU 1404. The sound source IC 1418 is connected to an S-ROM (sound ROM) in which sound data is stored. The sound data acquired from the ROM is amplified by an amplifier and output from the speakers 1272 and 1277.

また、第1副制御部1400には、駆動回路1422が設けられ、駆動回路1422に入出力インタフェースを介して各種ランプ1420(上部ランプ、下部ランプ、サイドランプ1144、タイトルパネル1162ランプ、等)が接続されている。   The first sub-control unit 1400 is provided with a drive circuit 1422, and various lamps 1420 (upper lamp, lower lamp, side lamp 1144, title panel 1162 lamp, etc.) are connected to the drive circuit 1422 through an input / output interface. It is connected.

また、CPU1404は、出力インタフェースを介して第2副制御部1500へ信号の送受信を行う。第2副制御部1500は、演出画像表示装置1157の表示制御を含む演出装置1160の各種制御を行う。なお、第2副制御部1500は、例えば、液晶表示装置1157の表示の制御を行う制御部、各種演出用駆動装置の制御を行う制御部(例えば、シャッタ1163のモータ駆動を制御する制御部)とするなど、複数の制御部で構成するようにしてもよい。   The CPU 1404 transmits and receives signals to the second sub control unit 1500 via the output interface. Second sub-control unit 1500 performs various controls of effect device 1160 including display control of effect image display device 1157. Note that the second sub-control unit 1500 is, for example, a control unit that controls display of the liquid crystal display device 1157 and a control unit that controls various driving devices for effects (for example, a control unit that controls the motor drive of the shutter 1163). For example, it may be configured by a plurality of control units.

第2副制御部1500は、第1副制御部1400が送信した制御コマンドを入力インタフェースを介して受信し、この制御コマンドに基づいて第2副制御部1500の全体を制御する基本回路1502を備えており、この基本回路1502は、CPU1504と、一時的にデータを記憶するためのRAM1508と、各種デバイスの入出力を制御するためのI/O1510と、時間や回数等を計測するためのカウンタタイマ1512と、を搭載している。基本回路1502のCPU1504は、水晶発振器1514が出力する所定周期のクロック信号をシステムクロックとして入力して動作する。ROM506は、第2副制御部1500の全体を制御するための制御プログラム及びデータ、画像表示用のデータ等を記憶する。   The second sub control unit 1500 includes a basic circuit 1502 that receives the control command transmitted from the first sub control unit 1400 via the input interface and controls the entire second sub control unit 1500 based on the control command. The basic circuit 1502 includes a CPU 1504, a RAM 1508 for temporarily storing data, an I / O 1510 for controlling input / output of various devices, and a counter timer for measuring time and frequency 1512. The CPU 1504 of the basic circuit 1502 operates by inputting a clock signal of a predetermined period output from the crystal oscillator 1514 as a system clock. The ROM 506 stores a control program and data for controlling the entire second sub control unit 1500, data for image display, and the like.

CPU1504は、所定のタイミングでデータバスを介してROM1506の所定エリアに格納された分周用のデータをカウンタタイマ1512に送信する。カウンタタイマ1512は、受信した分周用のデータを基に割り込み時間を決定し、この割り込み時間ごとに割り込み要求をCPU1404に送信する。CPU1504は、この割込み要求のタイミングをもとに、各ICや各回路を制御する。   The CPU 1504 transmits the frequency dividing data stored in the predetermined area of the ROM 1506 to the counter timer 1512 via the data bus at a predetermined timing. The counter timer 1512 determines an interrupt time based on the received frequency division data, and transmits an interrupt request to the CPU 1404 at each interrupt time. The CPU 1504 controls each IC and each circuit based on the interrupt request timing.

また、第2副制御部1500には、シャッタ1163のモータを駆動する駆動回路1530を設けており、駆動回路1530には出力インタフェースを介してシャッタ1163を設けている。この駆動回路1530は、CPU1504からの命令に応じてシャッタ1163に設けたステッピングモータ(図示省略)に駆動信号を出力する。また、第2副制御部1500には、センサ回路1532を設けており、センサ回路1532には入力インタフェースを介してシャッタセンサ1538を接続している。CPU1504は、割り込み時間ごとにシャッタセンサ1538状態を監視している。   The second sub control unit 1500 is provided with a drive circuit 1530 for driving the motor of the shutter 1163, and the drive circuit 1530 is provided with a shutter 1163 via an output interface. The drive circuit 1530 outputs a drive signal to a stepping motor (not shown) provided in the shutter 1163 in response to a command from the CPU 1504. The second sub-control unit 1500 is provided with a sensor circuit 1532, and a shutter sensor 1538 is connected to the sensor circuit 1532 via an input interface. The CPU 1504 monitors the state of the shutter sensor 1538 every interruption time.

また、第2副制御部1500には、VDP1534(ビデオ・ディスプレイ・プロセッサー)を設けており、このVDP1534には、バスを介してROM1506、VRAM1536が接続されている。VDP1534は、CPU1504からの信号に基づいてROM1506に記憶された画像データ等を読み出し、VRAM1536のワークエリアを使用して表示画像を生成し、演出画像表示装置1157に画像を表示する。
<図柄配列>
The second sub control unit 1500 is provided with a VDP 1534 (video display processor), and a ROM 1506 and a VRAM 1536 are connected to the VDP 1534 through a bus. The VDP 1534 reads out image data and the like stored in the ROM 1506 based on a signal from the CPU 1504, generates a display image using the work area of the VRAM 1536, and displays the image on the effect image display device 1157.
<Pattern arrangement>

次に、図140(a)を用いて、上述の各リール1110乃至1112に施される図柄配列について説明する。なお、同図は、各リール(左リール1110、中リール1111、右リール1112)に施される図柄の配列を平面的に展開して示した図である。   Next, the symbol arrangement applied to each of the reels 1110 to 1112 will be described with reference to FIG. This figure is a diagram in which the arrangement of symbols applied to each reel (left reel 1110, middle reel 1111, right reel 1112) is developed in a plane.

各リール1110乃至1112には、同図の右側に示す複数種類(本実施形態では8種類)の図柄が所定コマ数(本実施形態では、番号0〜20の21コマ)だけ配置されている。また、同図の左端に示した番号0〜20は、各リール1110乃至1112上の図柄の配置位置を示す番号である。例えば、本実施形態では、左リール1110の番号1のコマには「リプレイ」の図柄、中リール1111の番号0のコマには「ベル」の図柄、右リール1112の番号2のコマには「スイカ」の図柄、がそれぞれ配置されている。
<入賞役の種類>
In each reel 1110 to 1112, a plurality of types (eight types in the present embodiment) of symbols shown on the right side of the same figure are arranged by a predetermined number of frames (21 frames of numbers 0 to 20 in the present embodiment). Also, numbers 0 to 20 shown at the left end of the figure are numbers indicating the arrangement positions of symbols on the reels 1110 to 1112. For example, in the present embodiment, the “Replay” symbol is assigned to the number 1 frame on the left reel 1110, the “Bell” symbol is assigned to the number 0 frame on the middle reel 1111, and the “No. 2” symbol is assigned to the number 2 frame on the right reel 1112. "Watermelon" design is arranged respectively.
<Type of winning prize>

次に、図140(b)を用いて、スロットマシン1100の入賞役の種類について説明する。なお、同図は入賞役(作動役を含む)の種類、各入賞役に対応する図柄組合せ、各入賞役の作動または払出を示している。   Next, the types of winning combinations of the slot machine 1100 will be described with reference to FIG. This figure shows the types of winning combinations (including actuating combinations), symbol combinations corresponding to each winning combination, and the operation or payout of each winning combination.

本実施形態における入賞役のうち、ビッグボーナス(BB1、BB2)および、レギュラーボーナス(RB)はボーナス遊技に移行する役として、また、再遊技(リプレイ)は新たにメダルを投入することなく再遊技が可能となる役として、それぞれ入賞役とは区別され「作動役」と呼ばれる場合があるが、本実施形態における「入賞役」には、作動役である、ビッグボーナス、レギュラーボーナス、再遊技が含まれる。また、本実施形態における「入賞」には、メダルの配当を伴わない(メダルの払い出しを伴わない)作動役の図柄組合せが有効ライン上に表示される場合も含まれ、例えば、ビッグボーナス、レギュラーボーナス、再遊技への入賞が含まれる。   Of the winning combinations in the present embodiment, the big bonuses (BB1, BB2) and the regular bonus (RB) are used as a combination for shifting to the bonus game, and the replay (replay) is a replay without newly inserting a medal. Each winning combination is sometimes distinguished from a winning combination and sometimes called an “acting combination”. However, in the “winning combination” in this embodiment, a big bonus, a regular bonus, and a replay that are operating combinations are included. included. In addition, “winning” in the present embodiment includes a case where a symbol combination of an actuator not accompanied by a medal payout (without medal payout) is displayed on an active line, for example, a big bonus, regular Includes bonuses and replay wins.

スロットマシン1100の入賞役には、ビッグボーナス(BB1、BB2)と、レギュラーボーナス(RB)と、小役(チェリー、スイカ、ベル)と、再遊技(リプレイ)がある。なお、入賞役の種類は、これに限定されるものではなく、任意に採用できることは言うまでもない。   The winning combination of the slot machine 1100 includes a big bonus (BB1, BB2), a regular bonus (RB), a small combination (cherry, watermelon, bell), and replay (replay). Needless to say, the type of winning combination is not limited to this and can be arbitrarily adopted.

「ビッグボーナス(BB1、BB2)」(以下、単に、「BB」と称する場合がある)は、入賞により特別遊技であるビッグボーナス遊技(BB遊技)が開始される特別役(作動役)である。対応する図柄組合せは、BB1が「白7−白7−白7」、BB2が「青7−青7−青7」である。また、BB1、BB2についてはフラグ持越しを行う。すなわち、BB1、BB2に内部当選すると、これを示すフラグが立つ(主制御部1300のRAM1308の当否判定結果記憶領域に記憶される)が、その遊技においてBB1、BB2に入賞しなかったとしても、入賞するまで内部当選を示すフラグが立った状態が維持され、次遊技以降でもBB1、BB2に内部当選中となり、BB1に対応する図柄組み合わせ「白7−白7−白7」、BB2に対応する図柄組み合わせ「青7−青7−青7」が、揃って入賞する状態にある。   “Big Bonus (BB1, BB2)” (hereinafter sometimes simply referred to as “BB”) is a special combination (operating combination) in which a big bonus game (BB game), which is a special game, is started by winning a prize. . Corresponding symbol combinations are “white 7-white 7-white 7” for BB1, and “blue 7-blue 7-blue 7” for BB2. Further, flag carryover is performed for BB1 and BB2. That is, when BB1 and BB2 are internally won, a flag indicating this is set (stored in the determination result storage area of the RAM 1308 of the main control unit 1300), but even if BB1 and BB2 are not won in that game, The flag indicating the internal winning is kept until winning, and the BB1 and BB2 are still in the internal winning even after the next game, and the symbol combination corresponding to BB1 "white 7-white 7-white 7", corresponds to BB2. The symbol combination “Blue 7-Blue 7-Blue 7” is in a state of winning a prize.

「レギュラーボーナス(RB)」は、入賞によりレギュラーボーナス遊技(RB遊技)が開始される特殊役(作動役)である。対応する図柄組合せは、「ボーナス−ボーナス−ボーナス」である。なお、RBについても上述のBBと同様にフラグ持越しを行う。但し、(詳細は後述するが)ビッグボーナス遊技(BB遊技)においては、レギュラーボーナス遊技(RB遊技)が内部当選することや、図柄組み合わせが入賞ライン上に表示されること、を開始条件とせずに、ビッグボーナス遊技の開始後からレギュラーボーナス遊技を開始し、1回のレギュラーボーナス遊技を終了した場合には次のレギュラーボーナス遊技をすぐに開始するような自動的にレギュラーボーナス遊技を開始させる設定としてもよい。 「小役(チェリー、スイカ、ベル)」(以下、単に、「チェリー」、「スイカ」、「ベル」と称する場合がある)は、入賞により所定数のメダルが払い出される入賞役で、対応する図柄組合せは、チェリーが「チェリー−ANY−ANY」、スイカが「スイカ−スイカ−スイカ」、ベルが「ベル−ベル−ベル」である。また、対応する払出枚数は同図に示す通りである。なお、「チェリー−ANY−ANY」の場合、左リール1110の図柄が「チェリー」であればよく、中リール1111と右リール1112の図柄はどの図柄でもよい。   The “regular bonus (RB)” is a special combination (operating combination) in which a regular bonus game (RB game) is started by winning. The corresponding symbol combination is “bonus-bonus-bonus”. Note that the RB carries over the flag as well as the above-mentioned BB. However, in the big bonus game (BB game) (details will be described later), the regular bonus game (RB game) is won internally and the combination of symbols is displayed on the winning line. In addition, the regular bonus game is started after the start of the big bonus game, and when the regular bonus game is finished once, the regular bonus game is automatically started so that the next regular bonus game is immediately started. It is good. “Short (cherry, watermelon, bell)” (hereinafter, simply referred to as “cherry”, “watermelon”, “bell”) is a winning combination in which a predetermined number of medals are paid out by winning. The symbol combinations are “cherry-ANY-ANY” for cherry, “watermelon-watermelon-watermelon” for watermelon, and “bell-bell-bell” for bell. The corresponding payout number is as shown in FIG. In the case of “cherry-ANY-ANY”, the symbol of the left reel 1110 may be “cherry”, and the symbol of the middle reel 1111 and the right reel 1112 may be any symbol.

「再遊技(リプレイ)」は、入賞により次回の遊技でメダル(遊技媒体)の投入を行うことなく遊技を行うことができる入賞役(作動役)であり、メダルの払出は行われない。なお、対応する図柄組合せは、再遊技は「リプレイ−リプレイ−リプレイ」である。
<遊技状態の種類>
“Replay” is a winning combination (operating combination) in which a game can be performed without inserting a medal (game medium) in the next game by winning, and no medal is paid out. The corresponding symbol combination is “replay-replay-replay” for replay.
<Type of gaming state>

次に、スロットマシン1100の遊技状態の種類について説明する。遊技状態とは、抽選などにおいて選択する抽選データの種別を識別するための情報である。本実施形態では、スロットマシン1100の遊技状態は、通常遊技と、BB遊技と、RB遊技と、ビッグボーナス(BB)およびレギュラーボーナス(RB)の内部当選遊技と、に大別した。但し、内部当選遊技は、通常遊技に含まれる区分けであってもよい。
<通常遊技>
Next, the types of gaming state of the slot machine 1100 will be described. The gaming state is information for identifying the type of lottery data selected in a lottery or the like. In the present embodiment, the gaming state of the slot machine 1100 is roughly divided into a normal game, a BB game, an RB game, and an internal winning game of a big bonus (BB) and a regular bonus (RB). However, the internal winning game may be a division included in the normal game.
<Normal game>

通常遊技に内部当選する入賞役には、ビッグボーナス(BB)と、レギュラーボーナス(RB)と、再遊技(リプレイ)と、小役(チェリー、スイカ、ベル)がある。   The winning combinations that are internally won for normal games include a big bonus (BB), regular bonus (RB), replay (replay), and small roles (cherry, watermelon, bell).

「ビッグボーナス(BB)」は、入賞により特別遊技であるビッグボーナス遊技(BB遊技)が開始される特別役(作動役)である。レギュラーボーナス(RB)」は、入賞によりレギュラーボーナス遊技(RB遊技)を開始する特殊役(作動役)である。「再遊技(リプレイ)」は、入賞により次回の遊技でメダルの投入を行うことなく遊技を行うことができる入賞役(作動役)であり、メダルの払出も行われない。「小役」は、入賞により所定数のメダルが払い出される入賞役である。なお、各々の役の内部当選確率は、通常遊技に用意された抽選データから、各々の役に対応付けされた抽選データの範囲に該当する数値データを、内部抽選時に取得される乱数値の範囲の数値データ(例えば65535)で除した値で求められる。通常遊技に用意された抽選データは、予めいくつかの数値範囲に分割され、各数値範囲に各々の役やハズレを対応付けしている。内部抽選を実行した結果得られた乱数値が、何れの役に対応する抽選データに対応する値であったかを判定し、内部抽選役を決定する。この抽選データは少なくとも1つの役の当選確率を異ならせた設定1〜設定6が用意され、遊技店の係員等はいずれかの設定値を任意に選択し、設定することができる。   “Big Bonus (BB)” is a special combination (operating combination) in which a big bonus game (BB game), which is a special game, is started by winning. “Regular Bonus (RB)” is a special combination (operating combination) that starts a regular bonus game (RB game) upon winning. The “replay” (replay) is a winning combination (operating combination) in which a game can be performed without a medal being inserted in the next game by winning, and no medal is paid out. The “small role” is a winning combination in which a predetermined number of medals are paid out by winning. In addition, the internal winning probability of each combination is a range of random values obtained at the time of internal lottery from numerical data corresponding to the range of lottery data associated with each combination from lottery data prepared for normal games. It is calculated by the value divided by the numerical data (for example, 65535). The lottery data prepared for the normal game is divided into several numerical ranges in advance, and each combination and lose is associated with each numerical range. It is determined whether the random number value obtained as a result of executing the internal lottery is a value corresponding to the lottery data corresponding to which combination, and the internal lottery combination is determined. This lottery data is provided with settings 1 to 6 in which the winning probabilities of at least one combination are different, and a game shop clerk can arbitrarily select and set any set value.

通常遊技は、内部抽選の結果が概ねハズレ(ビッグボーナス(BB)、レギュラーボーナス(RB)、再遊技(リプレイ)および小役に当選していない)となる設定、又は、停止表示結果がいずれの役の図柄組合せに該当しないハズレの停止表示結果が概ね導出される設定がされており、獲得するメダルの総数が、投入したメダルの総数に満たない遊技状態になっている。よって、遊技者にとっては不利益となる遊技状態である。但し、予め定めた条件を満たした場合(例えば、特定の図柄組み合わせが表示された場合)には、再遊技の内部当選の確率を上昇させる変動をさせてもよい遊技状態であり、この場合、遊技に用いられるメダルの消費が抑えられ、小役の入賞によって所定数のメダルが払い出されることにより、獲得するメダルの総数が、投入したメダルの総数を超える遊技状態になり、遊技者にとっては利益となる遊技状態になる場合がある。
<BB遊技>
In the normal game, the internal lottery result is almost lost (big bonus (BB), regular bonus (RB), replay (replay) and small role won), or any stop display result A setting is made so that the stop display result of the losing that does not correspond to the symbol combination of the combination is generally derived, and the total number of medals to be acquired is less than the total number of inserted medals. Therefore, it is a gaming state that is disadvantageous for the player. However, when a predetermined condition is satisfied (for example, when a specific symbol combination is displayed), it is a gaming state that may be changed to increase the probability of internal winning of replaying. In this case, Consumption of medals used for games is suppressed, and a predetermined number of medals are paid out by winning a small role, resulting in a gaming state where the total number of medals exceeds the total number of medals inserted, which is beneficial to the player. May become a gaming state.
<BB game>

BB遊技は、遊技者にとっては利益となる遊技状態になるように設定されている。つまり、BB遊技は、獲得するメダルの総数が、投入したメダルの総数を超える遊技状態となる。BB遊技は、本実施形態では、ビッグボーナス(BB)の入賞により開始され、RB遊技(後述する)を連続して繰り返し実行可能になっており、遊技中に予め定められた一の数(例えば、465枚)を超えるメダルが獲得された場合に終了する。但し、BB遊技はRB遊技を複数回数実行可能であればよく、例えば、RB遊技を開始する役(図柄組み合わせは例えば、リプレイ−リプレイ−リプレイ)を設定し、この役が内部当選した場合、または、入賞した場合に、RB遊技を開始するように設定してもよい。さらには、BB遊技は、BB遊技中のRB遊技を除くBB一般遊技を予め定めた回数(例えば、30回)実行した場合、または、BB遊技中に実行したRB遊技の回数が予め定めた回数に達した場合(例えば、3回)に終了するようにしてもよい。
<RB遊技>
The BB game is set to be in a gaming state that is beneficial to the player. That is, the BB game is in a gaming state in which the total number of medals to be acquired exceeds the total number of medals inserted. In this embodiment, the BB game is started by winning a big bonus (BB), and an RB game (described later) can be continuously executed repeatedly, and a predetermined number (for example, during the game) The process ends when more than 465 medals are obtained. However, the BB game only needs to be able to execute the RB game a plurality of times. For example, when a combination (for example, replay-replay-replay) for starting the RB game is set and this combination is won internally, or The RB game may be set to start when winning. Furthermore, in the BB game, when the BB general game excluding the RB game during the BB game is executed a predetermined number of times (for example, 30 times), or the number of the RB games executed during the BB game is a predetermined number of times. It may be made to end when it reaches (for example, three times).
<RB game>

RB遊技は、遊技者にとっては利益となる遊技状態になるように設定されている。つまり、RB遊技は、獲得するメダルの総数が、投入したメダルの総数を超える遊技状態となる。RB遊技は、本実施形態では、レギュラーボーナス(RB)の入賞により開始され、予め定めた一の役が内部当選の確率を上昇させる変動(例えば、「設定1」「通常遊技」に設定された「小役1」の内部当選確率1/15を、予め定めた一の値である内部当選確率1/1.2に上昇させる)をし、予め定めた一の数(例えば、8回)の入賞があった場合に終了する。RB遊技は、予め定めた回数(少なくとも2回)の入賞があった場合(例えば、8回)、または、RB遊技中に実行したRB遊技の回数が予め定めた回数に達した場合(例えば、8回)に終了するようにしてもよい。上述したBB遊技は、RB遊技を複数回数実行可能であるので、一回のRB遊技を行った場合には、BB遊技で得られるメダルの総数よりも少ないメダル数を獲得して終了することとなる。   The RB game is set so as to be in a gaming state that is beneficial to the player. That is, the RB game is in a gaming state in which the total number of medals to be acquired exceeds the total number of medals inserted. In the present embodiment, the RB game is started by winning a regular bonus (RB), and a predetermined role is set to a variation that increases the probability of internal winning (for example, “setting 1” or “normal game”). The internal winning probability 1/15 of “small role 1” is increased to an internal winning probability 1 / 1.2, which is a predetermined value), and a predetermined number (for example, 8 times) It ends when there is a prize. In the RB game, when a predetermined number of times (at least 2 times) is won (for example, 8 times), or when the number of RB games executed during the RB game reaches a predetermined number of times (for example, (8 times). Since the BB game described above can execute the RB game a plurality of times, when a single RB game is performed, the number of medals less than the total number of medals obtained in the BB game is acquired and terminated. Become.

<ビッグボーナス(BB)およびレギュラーボーナス(RB)の内部当選遊技>   <Big winning (BB) and regular bonus (RB) internal winning games>

ビッグボーナス(BB)およびレギュラーボーナス(RB)の内部当選遊技に内部当選する入賞役には、再遊技(リプレイ)と、小役がある。ビッグボーナス(BB)およびレギュラーボーナス(RB)は内部当選することはなく、ビッグボーナス(BB)かレギュラーボーナス(RB)に対応する図柄組み合わせを入賞させることが可能となっている遊技状態である。   The winning combination that is internally won for the internal winning game of the big bonus (BB) and the regular bonus (RB) includes a replay and a small role. The big bonus (BB) and the regular bonus (RB) are not won internally, and are game states in which a symbol combination corresponding to the big bonus (BB) or the regular bonus (RB) can be won.

但し、ビッグボーナス(BB)およびレギュラーボーナス(RB)に内部当選した次遊技から、再遊技の内部当選の確率を変動させてもよく、例えば、再遊技の内部当選の確率を上昇させる変動をさせて、ビッグボーナス(BB)およびレギュラーボーナス(RB)対応する図柄組み合わせが入賞するまでの間は、獲得するメダルの総数が、投入したメダルの総数とほぼ同じとなる遊技状態とし、通常遊技と比べると遊技者にとっては利益となる遊技状態としてもよい。なお、BB遊技、RB遊技は両者とも遊技者にとって利益となる遊技状態であるため、総じて、ボーナス遊技、又は、特別遊技と称する場合がある。
<主制御部メイン処理>
However, the probability of the internal winning of the replay may be changed from the next game that has been internally won to the big bonus (BB) and the regular bonus (RB), for example, the probability of increasing the internal winning probability of the replay is changed. Until the symbol combination corresponding to the big bonus (BB) and regular bonus (RB) wins, the total number of medals to be acquired is almost the same as the total number of inserted medals, and is compared with the normal game. The gaming state may be beneficial to the player. It should be noted that BB game and RB game are both game states that are beneficial to the player, and may be generally referred to as bonus games or special games.
<Main control unit main processing>

次に、図141を用いて、主制御部1300のCPU1304が実行する主制御部メイン処理について説明する。なお、同図は主制御部メイン処理の流れを示すフローチャートである。   Next, a main control unit main process executed by the CPU 1304 of the main control unit 1300 will be described with reference to FIG. This figure is a flowchart showing the flow of main processing of the main control unit.

上述したように、主制御部1300には、電源が投入されると起動信号(リセット信号)を出力する起動信号出力回路(リセット信号出力回路)1338を設けている。この起動信号を入力した基本回路1302のCPU1304は、リセット割込によりリセットスタートしてROM1306に予め記憶している制御プログラムに従って、この主制御部メイン処理を実行する。   As described above, the main control unit 1300 is provided with the start signal output circuit (reset signal output circuit) 1338 that outputs the start signal (reset signal) when the power is turned on. The CPU 1304 of the basic circuit 1302 to which this activation signal has been input executes a main control unit main process in accordance with a control program stored in advance in the ROM 1306 after being reset by a reset interrupt.

電源投入が行われると、まず、ステップS2101で各種の初期設定を行う。この初期設定では、CPU1304のスタックポインタ(SP)へのスタック初期値の設定、割込禁止の設定、I/O1310の初期設定、RAM1308に記憶する各種変数の初期設定、WDT1314への動作許可及び初期値の設定等を行う。ステップS2103ではメダル投入・スタート操作受付処理を実行する。ここではメダルの投入の有無をチェックし、メダルの投入に応じて入賞ライン表示ランプ1120を点灯させる。なお、前回の遊技で再遊技に入賞した場合は、前回の遊技で投入されたメダル枚数と同じ数のメダルを投入する処理を行うので、遊技者によるメダルの投入が不要となる。また、スタートレバー1135が操作されたか否かのチェックを行い、スタートレバー1135の操作があればステップS2105へ進む。   When the power is turned on, first, various initial settings are made in step S2101. In this initial setting, setting of the stack initial value to the stack pointer (SP) of the CPU 1304, setting of interrupt prohibition, initial setting of the I / O 1310, initial setting of various variables stored in the RAM 1308, operation permission to the WDT 1314, and initial setting Set the value. In step S2103, medal insertion / start operation acceptance processing is executed. Here, whether or not a medal has been inserted is checked, and the winning line display lamp 1120 is turned on in response to the insertion of the medal. Note that when a re-win is won in the previous game, a process of inserting the same number of medals as the number of medals inserted in the previous game is performed, so that it is not necessary for the player to insert medals. Further, it is checked whether or not the start lever 1135 has been operated. If there is an operation of the start lever 1135, the process proceeds to step S2105.

ステップS2105では投入されたメダル枚数を確定し、有効な入賞ラインを確定する。ステップS2107では後述する主制御部タイマ割込み処理で格納された乱数値を取得する。ステップS2109では、現在の遊技状態に応じてROM1306に格納されている入賞役抽選テーブルを読み出し、これとステップS2107で取得した乱数値とを用いて内部抽選を行う。内部抽選の結果、いずれかの入賞役(作動役を含む)に内部当選した場合、その入賞役のフラグがONになる。ステップS2111では内部抽選結果に基づき、リール停止データを選択する。なお、本実施形態では乱数値生成回路1316から取得した乱数をそのまま内部抽選に使用するように構成しているが、取得した乱数を加工し、加工した乱数を使用して内部抽選を行うように構成してもよい。   In step S2105, the number of inserted medals is determined, and an effective winning line is determined. In step S2107, a random value stored in a main control unit timer interrupt process described later is acquired. In step S2109, the winning combination lottery table stored in the ROM 1306 is read according to the current gaming state, and an internal lottery is performed using this and the random value acquired in step S2107. As a result of the internal lottery, when any winning combination (including an operating combination) is won internally, the flag of the winning combination is turned ON. In step S2111, reel stop data is selected based on the internal lottery result. In the present embodiment, the random number acquired from the random number generation circuit 1316 is configured to be used for the internal lottery as it is. However, the acquired random number is processed and the internal lottery is performed using the processed random number. It may be configured.

ステップS2113では全リール1110乃至1112の回転を開始させる。ステップS2115では、ストップボタン1137乃至1139の受け付けが可能になり、いずれかのストップボタンが押されると、押されたストップボタンに対応するリール1110乃至1112の何れかをステップS2111で選択したリール停止制御データに基づいて停止させる。全リール1110乃至1112が停止するとステップS2117へ進む。ステップS2117では、入賞判定を行う。ここでは、有効化された入賞ライン1114上に、何らかの入賞役に対応する図柄組合せが表示された場合にその入賞役に入賞したと判定する。例えば、有効化された入賞ライン上に「ベル−ベル−ベル」が揃っていたならばベル入賞と判定する。ステップS2119では払い出しのある何らかの入賞役に入賞していれば、その入賞役に対応する枚数のメダルを入賞ライン数に応じて払い出す。ステップS2121では遊技状態制御処理を行う。遊技状態制御処理では、通常遊技、BB遊技、RB遊技、内部当選遊技、の各遊技状態の移行に関する処理を行い、それらの開始条件、終了条件の成立により、遊技状態を移行する。以上により1ゲームが終了する。以降ステップS2103へ戻って上述した処理を繰り返すことにより遊技が進行することになる。
<主制御部1300タイマ割込処理>
In step S2113, rotation of all reels 1110 to 1112 is started. In step S2115, the stop buttons 1137 to 1139 can be received. When any one of the stop buttons is pressed, the reel stop control in which one of the reels 1110 to 1112 corresponding to the pressed stop button is selected in step S2111. Stop based on data. When all the reels 1110 to 1112 are stopped, the process proceeds to step S2117. In step S2117, a winning determination is performed. Here, when a symbol combination corresponding to some winning combination is displayed on the activated winning line 1114, it is determined that the winning combination is won. For example, if “bell-bell-bell” is aligned on the activated winning line, it is determined that the player has won the bell. In step S2119, if any winning combination with payout is won, the number of medals corresponding to the winning combination is paid out according to the number of winning lines. In step S2121, a game state control process is performed. In the game state control process, a process related to transition of each game state of normal game, BB game, RB game, and internal winning game is performed, and the game state is shifted when those start conditions and end conditions are satisfied. Thus, one game is completed. Thereafter, returning to step S2103 and repeating the above-described processing, the game proceeds.
<Main control unit 1300 timer interrupt processing>

次に、図142を用いて、主制御部1300のCPU1304が実行する主制御部タイマ割込処理について説明する。なお、同図は主制御部タイマ割込処理の流れを示すフローチャートである。   Next, the main control unit timer interrupt process executed by the CPU 1304 of the main control unit 1300 will be described with reference to FIG. This figure is a flowchart showing the flow of the main control unit timer interrupt process.

主制御部1300は、所定の周期(本実施形態では約2msに1回)でタイマ割込信号を発生するカウンタタイマ1312を備えており、このタイマ割込信号を契機として主制御部タイマ割込処理を所定の周期で開始する。   The main control unit 1300 is provided with a counter timer 1312 that generates a timer interrupt signal at a predetermined cycle (in this embodiment, about once every 2 ms). The process is started at a predetermined cycle.

ステップS2201では、タイマ割込開始処理を行う。このタイマ割込開始処理では、CPU1304の各レジスタの値をスタック領域に一時的に退避する処理などを行う。ステップS2203では、WDT1314のカウント値が初期設定値(本実施形態では32.8ms)を超えてWDT割込が発生しないように(処理の異常を検出しないように)、WDT1314を定期的に(本実施形態では、主制御部タイマ割込の周期である約2msに1回)リスタートを行う。   In step S2201, timer interrupt start processing is performed. In this timer interrupt start process, a process of temporarily saving the value of each register of the CPU 1304 to the stack area is performed. In step S2203, the WDT 1314 is periodically updated (not to detect a processing abnormality) so that the WDT 1314 count value exceeds the initial setting value (32.8 ms in the present embodiment) and a WDT interrupt does not occur. In the embodiment, the restart is performed once every about 2 ms which is the period of the main control unit timer interrupt.

ステップS2205では、入力ポート状態更新処理を行う。この入力ポート状態更新処理では、I/O1310の入力ポートを介して、各種センサ1318のセンサ回路1320の検出信号を入力して検出信号の有無を監視し、RAM1308に各種センサ1318ごとに区画して設けた信号状態記憶領域に記憶する。より具体的には、この信号状態記憶領域それぞれに対して前々回、前回、今回の割込み時における検出信号の有無を記憶している。   In step S2205, input port state update processing is performed. In this input port state update process, the detection signals of the sensor circuits 1320 of the various sensors 1318 are input via the input ports of the I / O 1310 to monitor the presence or absence of the detection signals. Store in the provided signal state storage area. More specifically, the presence / absence of a detection signal at the time of the previous interruption and the previous interruption is stored in each signal state storage area.

ステップS2207では、各種遊技処理を行う。具体的には、割込みステータスを取得し(各種センサ1318からの信号に基づいて各種割込みステータスを取得する)、この割込みステータスに従った処理を行う。例えば、この割込みステータスが遊技開始のためのスタートレバー操作を待っている状態を示す場合、上述した信号記憶領域のうちスタートレバーの操作を検出するためのセンサに対応する領域を参照し、前々回、前回、今回の割込み時における検出信号の有無のパターンが予め定められた判定パターンと一致した場合に乱数値生成回路1316の内部抽選用のチャンネルの乱数をラッチするためのラッチ信号を出力する処理(具体的には、ソフトラッチレジスタ3186の内部抽選用のチャンネルに対応する領域に所定の値を書き込む処理)を実行するとともに、このラッチ信号によってラッチされた乱数を取得するためのリード信号を出力する処理(具体的には、図148に示す乱数レジスタ3188のうちの特図1のチャンネルに対応する乱数レジスタに対してリード信号を出力する処理)を実行してラッチされている乱数を取得して対応する乱数値記憶領域に格納する。なお、本実施形態では、スタートレバーの操作があったか否かの判定として、前々回、前回および今回の検出信号が予め定められた判定パターン情報と一致した否かを判定していたが、このような方法に限らず、例えば、前回および今回の検出信号が予め定められた入賞判定パターン情報(例えば、前回検出信号なし、今回検出信号あり(いわゆるアップエッジ))と一致したか否かを判定するように構成してもよい。すなわち、スタートレバーの操作を検出するためのセンサの検出信号の有無を監視し、この監視結果の履歴が予め定められたパターンと一致したか否かを判定するように構成すればよい。   In step S2207, various game processes are performed. Specifically, an interrupt status is acquired (various interrupt statuses are acquired based on signals from various sensors 1318), and processing according to the interrupt status is performed. For example, when this interrupt status indicates a state of waiting for a start lever operation for starting a game, referring to the area corresponding to the sensor for detecting the operation of the start lever in the signal storage area described above, Processing for outputting a latch signal for latching the random number of the internal lottery channel of the random value generation circuit 1316 when the pattern of the presence / absence of the detection signal at the time of the previous interruption coincides with a predetermined determination pattern ( Specifically, a process of writing a predetermined value in an area corresponding to the internal lottery channel of the soft latch register 3186) is executed, and a read signal for acquiring a random number latched by the latch signal is output. Processing (specifically, it corresponds to the channel shown in FIG. 1 in the random number register 3188 shown in FIG. 148). The read random number register is processed to obtain the latched random number and stores it in the corresponding random value storage area. In the present embodiment, as the determination as to whether or not the start lever has been operated, it has been determined whether or not the detection signals of the previous time and the current time coincide with predetermined determination pattern information. Not limited to the method, for example, it is determined whether or not the previous and current detection signals coincide with predetermined winning determination pattern information (for example, no previous detection signal, present detection signal (so-called up edge)). You may comprise. That is, it may be configured to monitor the presence or absence of the detection signal of the sensor for detecting the operation of the start lever, and to determine whether or not the history of the monitoring result matches a predetermined pattern.

また、本実施形態では、乱数値生成回路1316から乱数を取得する方法として内部抽選用のチャンネルの乱数をラッチするためのラッチ信号を出力する処理を行った後にラッチした乱数を取得するリード信号を出力する方法を採用しているが、内部抽選用のチャンネルの乱数を直読みする処理(具体的には、乱数レジスタ3188の値を直接リードする処理)を実行して取得するようにしてもよい。   In the present embodiment, as a method of acquiring a random number from the random value generation circuit 1316, a read signal for acquiring a latched random number after performing a process of outputting a latch signal for latching a random number of a channel for internal lottery is used. Although the output method is adopted, it may be acquired by executing a process of directly reading the random number of the internal lottery channel (specifically, a process of directly reading the value of the random number register 3188). .

また、本実施形態では、内部抽選用の乱数を取得するためのリード信号を出力する処理(乱数レジスタ3188の値を直接リードする処理とは異なる)を主制御部タイマ割込み処理において実行するように構成しているが、この処理に関しては上述した主制御部メイン処理の内部抽選を行う直前に実行するように構成してもよい。   In the present embodiment, a process of outputting a read signal for acquiring a random number for internal lottery (different from the process of directly reading the value of the random number register 3188) is executed in the main controller timer interrupt process. However, this process may be executed immediately before the internal lottery of the main control unit main process described above.

また、内部抽選用の乱数を取得するためのリード信号を出力する処理とともに、主制御部タイマ割込み処理において内部抽選処理を行うように構成してもよい。   Further, the internal lottery process may be performed in the main control unit timer interrupt process together with the process of outputting a read signal for acquiring a random number for internal lottery.

ステップS2209では、タイマ更新処理を行う。各種タイマをそれぞれの時間単位により更新する。   In step S2209, timer update processing is performed. Various timers are updated for each time unit.

ステップS2211では、コマンド設定送信処理を行い、各種のコマンドが第1副制御部1400に送信される。なお、第1副制御部1400に送信する出力予定情報は本実施形態では16ビットで構成しており、ビット15はストローブ情報(オンの場合、データをセットしていることを示す)、ビット11〜14はコマンド種別(本実施形態では、基本コマンド、スタートレバー受付コマンド、演出抽選処理に伴う演出コマンド、リール1110乃至1112の回転を開始に伴う回転開始コマンド、ストップボタン1137乃至1139の操作の受け付けに伴う停止ボタン受付コマンド、リール1110乃至1112の停止処理に伴う停止位置情報コマンド、メダル払出処理に伴う払出枚数コマンド及び払出終了コマンド、遊技状態を示すコマンド等)、ビット0〜10はコマンドデータ(コマンド種別に対応する所定の情報)で構成されている。第1副制御部1400では、受信した出力予定情報に含まれるコマンド種別により、主制御部1300における遊技制御の変化に応じた演出制御の決定が可能になるとともに、出力予定情報に含まれているコマンドデータの情報に基づいて、演出制御内容を決定することができるようになる。   In step S2211, command setting transmission processing is performed, and various commands are transmitted to the first sub-control unit 1400. The output schedule information transmitted to the first sub-control unit 1400 is composed of 16 bits in the present embodiment, bit 15 is strobe information (indicating that data is set when ON), bit 11 -14 are command types (in this embodiment, basic command, start lever reception command, production command accompanying production lottery processing, rotation start command when rotation of reels 1110 to 1112 starts, and operation of stop buttons 1137 to 1139 are accepted. Bits 0 to 10 are command data (stop button reception command accompanying the reels 1110 to 1112, stop position information command accompanying the stop processing of the reels 1110 to 1112, payout number command and payout end command accompanying the medal payout processing, etc.) Predetermined information corresponding to the command type). The first sub-control unit 1400 can determine the effect control according to the change in the game control in the main control unit 1300 by the command type included in the received output schedule information, and is included in the output schedule information. Based on the information of the command data, the contents of effect control can be determined.

ステップS2213では、外部出力信号設定処理を行う。この外部出力信号設定処理では、RAM1308に記憶している遊技情報を、情報出力回路1334を介してスロットマシン1100とは別体の情報入力回路1652に出力する。   In step S2213, external output signal setting processing is performed. In this external output signal setting process, game information stored in the RAM 1308 is output to an information input circuit 1652 separate from the slot machine 1100 via the information output circuit 1334.

ステップS2215では、デバイス監視処理を行う。このデバイス監視処理では、まずはステップS2205において信号状態記憶領域に記憶した各種センサ1318の信号状態を読み出して、メダル投入異常及びメダル払出異常等に関するエラーの有無を監視し、エラーを検出した場合には(図示省略)エラー処理を実行させる。さらに、現在の遊技状態に応じて、メダルセレクタ1170(メダルセレクタ1170内に設けたソレノイドが動作するメダルブロッカ)、各種ランプ1338、各種の7セグメント(SEG)表示器の設定を行う。   In step S2215, device monitoring processing is performed. In this device monitoring process, first, the signal states of the various sensors 1318 stored in the signal state storage area in step S2205 are read, and the presence or absence of errors relating to medal insertion abnormality and medal payout abnormality is monitored. (Not shown) Error processing is executed. Further, according to the current gaming state, the medal selector 1170 (medal blocker in which a solenoid provided in the medal selector 1170 operates), various lamps 1338, and various 7-segment (SEG) indicators are set.

ステップS2217では、低電圧信号がオンであるか否かを監視する。そして、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS2221に進み、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS2219に進む。   In step S2217, it is monitored whether or not the low voltage signal is on. If the low voltage signal is on (when power supply shutoff is detected), the process proceeds to step S2221. If the low voltage signal is off (power supply shutoff is not detected), the process proceeds to step S2219.

なお、本実施形態では、電源の遮断を判定する処理(ステップS2217)および電断処理(ステップS2221)を主制御部の割込み制御において実行しているが、必ずしも主制御部の割込み制御で行う必要はなく、低電圧信号の入力に基づいて強制割込みを発生させ、この強制割込みによって電断処理が実行されるように構成してもよい。ただし、このように強制割込みによって実行される電断処理では、本実施形態における電断処理(ステップS2221)の処理に加え、上述したタイマ割込み開始処理(ステップS2201)において実行されるCPU1304の各レジスタの値をスタック領域に一時的に退避する処理も同時に実行する必要がある。   In the present embodiment, the process for determining the power interruption (step S2217) and the power interruption process (step S2221) are executed in the interrupt control of the main control unit, but it is not always necessary to perform the interrupt control in the main control unit. Instead, a forced interrupt may be generated based on the input of the low voltage signal, and the power interruption process may be executed by this forced interrupt. However, in the power interruption process executed by the forced interruption in this way, each register of the CPU 1304 executed in the timer interruption start process (step S2201) described above in addition to the process of the power interruption process (step S2221) in the present embodiment. It is also necessary to execute the process of temporarily saving the value in the stack area at the same time.

ステップS2219では、タイマ割込終了処理を終了する各種処理を行う。このタイマ割込終了処理では、ステップS2201で一時的に退避した各レジスタの値を元の各レジスタに設定等行う。その後、主制御部メイン処理に復帰する。一方、ステップS2221では、復電時に電断時の状態に復帰するための特定の変数やスタックポインタを復帰データとしてRAM1308の所定の領域に退避し、入出力ポートの初期化等の電断処理を行い、その後、主制御部メイン処理に復帰する。
<第1副制御部400の処理>
In step S2219, various processes for ending the timer interrupt end process are performed. In this timer interrupt end process, the value of each register temporarily saved in step S2201 is set in each original register. Then, the process returns to the main control unit main process. On the other hand, in step S2221, a specific variable or stack pointer for returning to the power-off state at the time of power recovery is saved as a return data in a predetermined area of the RAM 1308, and power-off processing such as initialization of the input / output port is performed. After that, the process returns to the main process of the main control unit.
<Processing of First Sub-Control Unit 400>

次に、図143を用いて、第1副制御部1400の処理について説明する。なお、同図(a)は、第1副制御部1400のCPU1404が実行するメイン処理のフローチャートであり、同図(b)は、第1副制御部1400のコマンド受信割込処理のフローチャートである。また、同図(c)は、第1副制御部1400のタイマ割込処理のフローチャートである。   Next, processing of the first sub control unit 1400 will be described with reference to FIG. 2A is a flowchart of main processing executed by the CPU 1404 of the first sub control unit 1400, and FIG. 2B is a flowchart of command reception interrupt processing of the first sub control unit 1400. . FIG. 10C is a flowchart of the timer interrupt process of the first sub control unit 1400.

まず、同図(a)のステップS2301では、各種の初期設定を行う。電源投入が行われると、まずステップS2301で初期化処理が実行される。この初期化処理では、入出力ポートの初期設定や、RAM1408内の記憶領域の初期化処理等を行う。   First, in step S2301 in FIG. 11A, various initial settings are performed. When power is turned on, initialization processing is first executed in step S2301. In this initialization process, initial setting of input / output ports, initialization processing of a storage area in the RAM 1408, and the like are performed.

ステップS2303では、タイマ変数が10以上か否かを判定し、タイマ変数が10となるまでこの処理を繰り返し、タイマ変数が10以上となったときには、ステップS2305の処理に移行する。ステップS2305では、タイマ変数に0を代入する。ステップS2307では、コマンド処理を行う。コマンド処理では第1副制御部1400のCPU1404は、主制御部1300からコマンドを受信したか否かを判別する。   In step S2303, it is determined whether or not the timer variable is 10 or more. This process is repeated until the timer variable becomes 10, and when the timer variable becomes 10 or more, the process proceeds to step S2305. In step S2305, 0 is assigned to the timer variable. In step S2307, command processing is performed. In the command processing, the CPU 1404 of the first sub control unit 1400 determines whether a command is received from the main control unit 1300.

ステップS2309では、演出制御処理を行う。この演出制御処理では、例えば、ステップS2307で新たなコマンドがあった場合には、このコマンドに対応する処理を行う。この処理には、例えば、演出データをROM1406から読み出す等の処理を行い、演出データの更新が必要な場合には演出データの更新処理を行うことが含まれる。   In step S2309, an effect control process is performed. In this effect control process, for example, when there is a new command in step S2307, a process corresponding to this command is performed. This process includes, for example, performing a process such as reading effect data from the ROM 1406, and performing an effect data update process when the effect data needs to be updated.

ステップS2311では、ステップ2309の処理結果に基づいて音制御処理を行う。例えば、ステップS2309で読み出した演出データの中に音源IC1418への命令がある場合には、この命令を音源IC1418に出力する。ステップS2313では、ステップ2309の処理結果に基づいてランプ制御処理を行う。例えば、ステップS2309で読み出した演出データの中に各種ランプ1420への命令がある場合には、この命令を駆動回路1422に出力する。   In step S2311, sound control processing is performed based on the processing result of step 2309. For example, if there is a command to the sound source IC 1418 in the effect data read out in step S2309, this command is output to the sound source IC 1418. In step S2313, lamp control processing is performed based on the processing result of step 2309. For example, if there is a command to the various lamps 1420 in the effect data read in step S2309, this command is output to the drive circuit 1422.

ステップS2315では、ステップ2309の処理結果に基づいて第2副制御部500に制御コマンドを送信する設定を行う情報出力処理を行う。例えば、ステップS2309で読み出した演出データの中に第2副制御部1500に送信する制御コマンドがある場合には、この制御コマンドを出力する設定を行い、ステップS2303へ戻る。   In step S2315, information output processing is performed to perform setting for transmitting a control command to the second sub-control unit 500 based on the processing result of step 2309. For example, if there is a control command to be transmitted to the second sub control unit 1500 in the effect data read in step S2309, the control command is set to be output, and the process returns to step S2303.

次に、同図(b)を用いて、第1副制御部1400のコマンド受信割込処理について説明する。このコマンド受信割込処理は、第1副制御部1400が、主制御部1300が出力するストローブ信号を検出した場合に実行する処理である。コマンド受信割込処理のステップS2401では、主制御部1300が出力したコマンドを未処理コマンドとしてRAM1408に設けたコマンド記憶領域に記憶する。   Next, a command reception interrupt process of the first sub control unit 1400 will be described with reference to FIG. This command reception interrupt process is a process executed when the first sub control unit 1400 detects the strobe signal output from the main control unit 1300. In step S2401 of the command reception interrupt process, the command output from the main control unit 1300 is stored in the command storage area provided in the RAM 1408 as an unprocessed command.

次に、同図(c)を用いて、第1副制御部1400のCPU1404によって実行する第1副制御部タイマ割込処理について説明する。第1副制御部1400は、所定の周期(本実施形態では2msに1回)でタイマ割込を発生するハードウェアタイマを備えており、このタイマ割込を契機として、タイマ割込処理を所定の周期で実行する。   Next, the first sub control unit timer interrupt process executed by the CPU 1404 of the first sub control unit 1400 will be described with reference to FIG. The first sub-control unit 1400 includes a hardware timer that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 2 ms). Execute in the cycle.

ステップS2501では、第1副制御部メイン処理におけるステップS2303において説明したRAM1408のタイマ変数記憶領域の値に、1を加算して元のタイマ変数記憶領域に記憶する。従って、ステップS2303において、タイマ変数の値が10以上と判定されるのは20ms毎(2ms×10)となる。ステップS2503では、ステップS2315で設定された第2副制御部1500への制御コマンドの送信や、演出用乱数値の更新処理等を行う。
<第2副制御部500の処理>
In step S2501, 1 is added to the value of the timer variable storage area of the RAM 1408 described in step S2303 in the first sub control unit main process, and the result is stored in the original timer variable storage area. Therefore, in step S2303, the value of the timer variable is determined to be 10 or more every 20 ms (2 ms × 10). In step S2503, transmission of a control command to the second sub-control unit 1500 set in step S2315, update processing of a random number for production, and the like are performed.
<Processing of Second Sub-Control Unit 500>

次に、図144を用いて、第2副制御部1500の処理について説明する。なお、同図(a)は、第2副制御部1500のCPU1504が実行するメイン処理のフローチャートであり、同図(b)は、第2副制御部1500のコマンド受信割込処理のフローチャートである。また、同図(c)は、第2副制御部1500のタイマ割込処理のフローチャートであり、同図(d)は、第2副制御部1500の画像制御処理のフローチャートである。   Next, the process of the second sub control unit 1500 will be described with reference to FIG. 2A is a flowchart of the main process executed by the CPU 1504 of the second secondary control unit 1500, and FIG. 2B is a flowchart of the command reception interrupt process of the second secondary control unit 1500. . FIG. 6C is a flowchart of the timer interrupt process of the second sub control unit 1500, and FIG. 4D is a flowchart of the image control process of the second sub control unit 1500.

まず、同図(a)のステップS2601では、各種の初期設定を行う。電源投入が行われると、まずステップS2601で初期化処理が実行される。この初期化処理では、入出力ポート初期設定や、RAM1508内の記憶領域の初期化処理等を行う。   First, in step S2601 in FIG. 9A, various initial settings are performed. When power is turned on, initialization processing is first executed in step S2601. In this initialization process, input / output port initialization, storage area initialization in the RAM 1508, and the like are performed.

ステップS2603では、タイマ変数が10以上か否かを判定し、タイマ変数が10となるまでこの処理を繰り返し、タイマ変数が10以上となったときには、ステップS2605の処理に移行する。ステップS2605では、タイマ変数に0を代入する。ステップS2607では、コマンド処理を行う。コマンド処理では第2副制御部1500のCPU1504は、第1副制御部1400のCPU1404からコマンドを受信したか否かを判別する。ステップS2609では、演出制御処理を行う。この演出制御処理では、例えば、ステップS2607で新たなコマンドがあった場合には、このコマンドに対応する処理を行う。この処理には、例えば、演出データをROM1506から読み出す等の処理を行い、演出データの更新が必要な場合には演出データの更新処理を行うことが含まれる。   In step S2603, it is determined whether or not the timer variable is 10 or more, and this process is repeated until the timer variable becomes 10. When the timer variable becomes 10 or more, the process proceeds to step S2605. In step S2605, 0 is assigned to the timer variable. In step S2607, command processing is performed. In the command processing, the CPU 1504 of the second sub control unit 1500 determines whether a command is received from the CPU 1404 of the first sub control unit 1400. In step S2609, an effect control process is performed. In this effect control process, for example, when there is a new command in step S2607, a process corresponding to this command is performed. This process includes, for example, performing a process such as reading effect data from the ROM 1506 and performing an effect data update process when the effect data needs to be updated.

ステップS2611では、ステップS2609の処理結果に基づいてシャッタ制御処理を行う。例えば、ステップS2609で読み出した演出データの中にシャッタ制御の命令がある場合には、この命令に対応するシャッタ制御を行う。ステップS2613では、ステップS2609の処理結果に基づいて画像制御処理を行う。例えば、ステップS2609読み出した演出データの中に画像制御の命令がある場合には、この命令に対応する画像制御を行い(詳細は後述する)、ステップS2603へ戻る。   In step S2611, shutter control processing is performed based on the processing result of step S2609. For example, if there is a shutter control command in the effect data read in step S2609, shutter control corresponding to this command is performed. In step S2613, image control processing is performed based on the processing result of step S2609. For example, if there is an image control command in the effect data read in step S2609, image control corresponding to this command is performed (details will be described later), and the flow returns to step S2603.

次に、同図(b)を用いて、第2副制御部1500のコマンド受信割込処理について説明する。このコマンド受信割込処理は、第2副制御部1500が、第1副制御部1400が出力するストローブ信号を検出した場合に実行する処理である。コマンド受信割込処理のステップS2701では、第1副制御部1400が出力したコマンドを未処理コマンドとしてRAM1508に設けたコマンド記憶領域に記憶する。   Next, the command reception interrupt process of the second sub control unit 1500 will be described with reference to FIG. This command reception interrupt process is a process executed when the second sub control unit 1500 detects a strobe signal output from the first sub control unit 1400. In step S2701 of the command reception interrupt process, the command output from the first sub control unit 1400 is stored in the command storage area provided in the RAM 1508 as an unprocessed command.

次に、同図(c)を用いて、第2副制御部1500のCPU1504によって実行する第2副制御部タイマ割込処理について説明する。第2副制御部1500は、所定の周期(本実施形態では2msに1回)でタイマ割込を発生するハードウェアタイマを備えており、このタイマ割込を契機として、タイマ割込処理を所定の周期で実行する。   Next, the second sub control unit timer interrupt process executed by the CPU 1504 of the second sub control unit 1500 will be described with reference to FIG. The second sub-control unit 1500 includes a hardware timer that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 2 ms). Execute in the cycle.

ステップS2801では、第2副制御部メイン処理におけるステップS2603において説明したRAM1508のタイマ変数記憶領域の値に、1を加算して元のタイマ変数記憶領域に記憶する。従って、ステップS2603において、タイマ変数の値が10以上と判定されるのは20ms毎(2ms×10)となる。ステップS2803では、演出用乱数値の更新処理等を行う。   In step S2801, 1 is added to the value of the timer variable storage area of the RAM 1508 described in step S2603 in the second sub-control unit main process, and the result is stored in the original timer variable storage area. Therefore, in step S2603, the value of the timer variable is determined to be 10 or more every 20 ms (2 ms × 10). In step S2803, an effect random number update process is performed.

次に、同図(d)を用いて、第2副制御部1500のメイン処理におけるステップS2613の画像制御処理について説明する。同図は、画像制御処理の流れを示すフローチャートを示した図である。   Next, the image control process in step S2613 in the main process of the second sub-control unit 1500 will be described with reference to FIG. FIG. 5 is a flowchart showing the flow of image control processing.

ステップS2901では、画像データの転送指示を行う。ここでは、CPU1504は、まず、VRAM1536の表示領域Aと表示領域Bの描画領域の指定をスワップする。これにより、描画領域に指定されていない表示領域に記憶された1フレームの画像が演出画像表示装置1157に表示される。次に、CPU1504は、VDP1534のアトリビュートレジスタに、位置情報等テーブルに基づいてROM座標(ROM1506の転送元アドレス)、VRAM座標(VRAM1536の転送先アドレス)などを設定した後、ROM1506からVRAM1536への画像データの転送開始を指示する命令を設定する。VDP1534は、アトリビュートレジスタに設定された命令に基づいて画像データをROM1506からVRAM1536に転送する。その後、VDP1534は、転送終了割込信号をCPU1504に対して出力する。   In step S2901, an image data transfer instruction is issued. Here, the CPU 1504 first swaps the designation of the display areas A and B in the VRAM 1536. As a result, the one-frame image stored in the display area not designated as the drawing area is displayed on the effect image display device 1157. Next, the CPU 1504 sets the ROM coordinates (transfer source address of the ROM 1506), VRAM coordinates (transfer destination address of the VRAM 1536) and the like in the attribute register of the VDP 1534 based on the position information table, and then the image from the ROM 1506 to the VRAM 1536. Set an instruction to start data transfer. The VDP 1534 transfers image data from the ROM 1506 to the VRAM 1536 based on the command set in the attribute register. Thereafter, the VDP 1534 outputs a transfer end interrupt signal to the CPU 1504.

ステップS2903では、VDP1534からの転送終了割込信号が入力されたか否かを判定し、転送終了割込信号が入力された場合はステップS2905に進み、そうでない場合は転送終了割込信号が入力されるのを待つ。ステップS2905では、演出シナリオ構成テーブルおよびアトリビュートデータなどに基づいて、パラメータ設定を行う。ここでは、CPU1504は、ステップS2901でVRAM1536に転送した画像データに基づいてVRAM1536の表示領域AまたはBに表示画像を形成するために、表示画像を構成する画像データの情報(VRAM1536の座標軸、画像サイズ、VRAM座標(配置座標)など)をVDP1534に指示する。VDP1534はアトリビュートレジスタに格納された命令に基づいてアトリビュートに従ったパラメータ設定を行う。   In step S2903, it is determined whether or not a transfer end interrupt signal from VDP 1534 is input. If a transfer end interrupt signal is input, the process proceeds to step S2905. Otherwise, a transfer end interrupt signal is input. Wait for it. In step S2905, parameters are set based on the production scenario configuration table and attribute data. Here, in order to form a display image in the display area A or B of the VRAM 1536 based on the image data transferred to the VRAM 1536 in step S2901, the CPU 1504 has information on the image data constituting the display image (coordinate axes and image sizes of the VRAM 1536). , VRAM coordinates (arrangement coordinates, etc.) are instructed to the VDP 1534. The VDP 1534 performs parameter setting according to the attribute based on the instruction stored in the attribute register.

ステップS2907では、描画指示を行う。この描画指示では、CPU1504は、VDP1534に画像の描画開始を指示する。VDP1534は、CPU1504の指示に従ってフレームバッファにおける画像描画を開始する。ステップS2909では、画像の描画終了に基づくVDP1534からの生成終了割込み信号が入力されたか否かを判定し、生成終了割込み信号が入力された場合はステップS2911に進み、そうでない場合は生成終了割込み信号が入力されるのを待つ。ステップS2911では、RAM1508の所定の領域に設定され、何シーンの画像を生成したかをカウントするシーン表示カウンタをインクリメント(+1)して処理を終了する。   In step S2907, a drawing instruction is performed. In this drawing instruction, the CPU 1504 instructs the VDP 1534 to start drawing an image. The VDP 1534 starts drawing an image in the frame buffer in accordance with an instruction from the CPU 1504. In step S2909, it is determined whether or not a generation end interrupt signal from the VDP 1534 based on the end of image drawing has been input. Wait for input. In step S2911, a scene display counter that is set in a predetermined area of the RAM 1508 and counts how many scene images have been generated is incremented (+1), and the process ends.

このようなスロットマシン1100の主制御部1300に対しても、次に説明する本発明の特徴点の一つ、複数、または全てを適用することができる。   One, a plurality, or all of the features of the present invention described below can be applied to the main control unit 1300 of the slot machine 1100 as well.

以上説明したように、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、遊技の進行を中心とした遊技制御を行うCPU(例えば、CPU304(またはCPU1304)を有する主制御部(例えば、主制御部300(または主制御部1300))と、前記主制御部の遊技制御に基づいて遊技の演出制御を行う副制御部(例えば、第1副制御部400、第2副制御部500(または、第1副制御部1400、第2副制御部1500))と、を備えた遊技台であって、前記CPUは、第一レジスタ(例えば、「POP TI命令」、「PUSH TI命令」などのロード命令で使うことができるが、演算命令では使うことができない(演算命令によって直接、自身の値を変化させることができない)Tレジスタ)と第二レジスタ(例えば、Aレジスタ、Fレジスタ、Bレジスタ、Cレジスタ、Dレジスタ、Eレジスタ、Hレジスタ、Lレジスタ、およびこれらの裏レジスタ)を備えるとともに、前記第一レジスタに前記第二レジスタを介してデータを転送する命令(例えば「LD T,A」命令のように、TレジスタにAレジスタを介して直接、データを転送する命令)を備えず、前記第一レジスタに直値(イミディエイト値や即値ともいう)によりデータを設定する命令(例えば、「LD T,F0H」命令)を備えることを特徴とする遊技台である。   As described above, the pachinko machine 100 (or slot machine 1100) according to the present embodiment has a main control unit (e.g., CPU 304 (or CPU 1304)) that performs game control centered on the progress of the game (e.g., CPU 304 (or CPU 1304)). Main control unit 300 (or main control unit 1300)) and sub-control units (for example, first sub-control unit 400, second sub-control unit 500 (for example) that control the effect of the game based on the game control of the main control unit. Or a first sub-control unit 1400, a second sub-control unit 1500)), and the CPU uses a first register (eg, “POP TI command”, “PUSH TI command”, etc.) It can be used with the load instruction of T, but it cannot be used with the operation instruction (it cannot change its value directly by the operation instruction) and the second register. A register (for example, an A register, an F register, a B register, a C register, a D register, an E register, an H register, an L register, and a back register thereof), and the first register via the second register There is no instruction for transferring data (for example, an instruction for transferring data directly to the T register via the A register like the “LD T, A” instruction), and the first register has a direct value (immediate value or immediate value). The game machine is provided with an instruction (for example, an “LD T, F0H” instruction) for setting data according to the above.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、第一のレジスタに対して直値でデータを転送するよう構成されているので、セットしているデータを確認し易くなる場合がある。また、第一のレジスタに対して他のレジスタを介してデータを転送できないように構成されているので、第一のレジスタの値を不用意に変更することができなくなる結果、コーディングミスの発生を減少させることができる場合がある。また、第一レジスタは直値によるデータの転送のみが認められているため、レジスタを介したデータの転送と直値によるデータの転送の両方が認められている他のレジスタよりも相対的に使用頻度が低くなる。このため、コーディングの見直し作業や、デバッグ(例えば、Tレジスタのトレースなど)の効率を高めることが可能となる。   According to the pachinko machine 100 (or slot machine 1100) according to the present embodiment, since data is transferred to the first register as a direct value, it is easy to check the set data. There is. In addition, since data is not transferred to the first register via another register, the value of the first register cannot be changed carelessly, resulting in a coding error. There are cases where it can be reduced. In addition, since the first register is only allowed to transfer data by direct value, it is used relatively more than other registers that allow both data transfer via the register and data transfer by direct value. Less frequent. For this reason, it is possible to increase the efficiency of coding review work and debugging (for example, T register tracing).

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、CPUを有し、遊技制御を行う遊技制御手段を備えた遊技台であって、前記遊技台は、パチンコ機またはスロットマシンであり、前記CPUは、マイクロコンピュータに内蔵され、前記CPUは、少なくとも特定レジスタ(例えば、Tレジスタ)を備え、前記CPUは、前記特定レジスタに値をセットする機能のうち、ロード命令を受けたことに基づいて行われるものとしては、直値により値をセットする機能のみを有する遊技台である。   Further, the pachinko machine 100 (or slot machine 1100) according to the present embodiment is a game machine having a CPU and game control means for performing game control, and the game machine is a pachinko machine or a slot machine. Yes, the CPU is built in a microcomputer, the CPU includes at least a specific register (for example, a T register), and the CPU receives a load instruction among the functions for setting a value in the specific register What is performed based on is a game machine having only a function of setting a value by a direct value.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、ロード命令では特定レジスタに対して直値以外にデータをセットできないので、特定レジスタの値を不用意に変更することができなくなる結果、コーディングミスの発生を減少させることができ、安定した遊技制御を行うことができる。また、特定レジスタにセットしているデータをソースコード上で目視で容易に確認することができるため、コーディングの見直し作業やデバッグの効率を高めることができ、従来よりもミスの発生を大幅に減らすことができ、安定した遊技制御を行うことができる。また、特定レジスタは直値によるデータのセットのみが認められているため、レジスタを介したデータのセットと直値によるデータのセットの両方が認められている他のレジスタよりも相対的に使用頻度が低くなる。このため、コーディングの見直し作業やデバッグ(例えば、Tレジスタのトレースなど)の効率を高めることができる場合がある。   According to the pachinko machine 100 (or the slot machine 1100) according to the present embodiment, since the load instruction cannot set data other than the direct value to the specific register, the value of the specific register cannot be changed carelessly. As a result, the occurrence of coding mistakes can be reduced, and stable game control can be performed. In addition, since the data set in a specific register can be easily confirmed visually on the source code, coding review work and debugging efficiency can be improved, and the occurrence of mistakes is greatly reduced compared to the past. And stable game control can be performed. In addition, since specific registers are only allowed to set data with direct values, they are used more frequently than other registers that allow both data sets via registers and data sets with direct values. Becomes lower. For this reason, it may be possible to improve the efficiency of coding review work and debugging (for example, T register tracing).

なお、本発明は、「プログラミングの際にロード命令を用いない」ことを特徴とするものではなく、「CPUは、特定レジスタに値をセットする機能のうち、ロード命令を受けたことに基づいて行われるものとしては、直値により値をセットする機能のみを有する」ため、「プログラミングの際に、特定レジスタについては直値により値をセットするロード命令しか用いることができない」ことを特徴としている。   The present invention is not characterized by “not using a load instruction at the time of programming”, but “based on the fact that the CPU receives a load instruction among the functions for setting a value in a specific register. Since it only has a function to set a value by a direct value as it is performed ", it is characterized by" only a load instruction that sets a value by a direct value can be used for a specific register during programming " .

すなわち、本発明では、プログラミングの際に、たとえ特定レジスタに他のレジスタを介して値をセットするロード命令を用いようとしても、CPU自体がそのようなロード命令を実行(理解)する機能を有していないため、通常は、アセンブラ言語を機械語にアセンブルする過程で、CPUが実行(理解)できない命令として排除され、機械語に変換できないように構成される。このため、プログラマーは、プログラミングの際に、たとえ特定レジスタに他のレジスタを介して値をセットするロード命令を用いたくても、用いることができない。なお、本明細書では、アセンブリ言語を使ってプログラミングを行う例を示しているが、機械語を使ってプログラミングを行った場合も事情は同じで、プログラマーは、プログラミングの際に、たとえ特定レジスタに他のレジスタを介して値をセットするロード命令を用いたくても、CPUが実行(理解)できない以上、当該命令を用いることができない。   In other words, the present invention has a function that the CPU itself executes (understands) such a load instruction even when an attempt is made to use a load instruction for setting a value to a specific register via another register during programming. Therefore, normally, in the process of assembling the assembler language into a machine language, it is excluded as an instruction that cannot be executed (understood) by the CPU and cannot be converted into a machine language. For this reason, a programmer cannot use a load instruction that sets a value in a specific register via another register during programming. In this specification, an example is shown in which programming is performed using assembly language. However, the situation is the same when programming is performed using machine language. Even if it is desired to use a load instruction for setting a value via another register, the instruction cannot be used unless the CPU can execute (understand) it.

このような理由により、本発明では、上述の顕著な効果を得ることができるが、従来技術では、ロード命令に関して本発明のような制約がないため、プログラマーは、プログラミングの際に、特定レジスタに他のレジスタを介して値をセットするロード命令を自由に用いることができる。「プログラミングの際にロード命令を用いるか否か(記述するか否か)は、プログラムの内容等に基づく必要に応じて当業者が適宜選択し得る事項である」ため、プログラマーは、特定レジスタに他のレジスタを介して値をセットするロード命令を用いるか否かを適宜選択することができるが、従来技術では当該命令を用いることができるという選択肢がある以上、上述の本発明特有の顕著な効果と同等の効果を確実に得ることはできない。   For this reason, in the present invention, the above-described remarkable effect can be obtained. However, in the prior art, the load instruction is not limited as in the present invention. A load instruction that sets a value via another register can be freely used. “Whether or not to use a load instruction during programming (whether or not to use it is a matter that can be appropriately selected by those skilled in the art based on the contents of the program, etc.”) Although it is possible to appropriately select whether or not to use a load instruction for setting a value via another register, the conventional technique has an option that the instruction can be used. An effect equivalent to the effect cannot be obtained with certainty.

また、仮にプログラミングの際には当該命令を用いないというルールを策定したとしても、ルールを守るか守らないかはプログラマー(人間)に依存することであり、本発明のように、特定レジスタに他のレジスタを介して値をセットするロード命令の使用を100%排除できるものでもない。   Moreover, even if a rule that the instruction is not used in programming is formulated, whether or not the rule is observed depends on the programmer (human). The use of a load instruction that sets a value via the register of 100% is not completely eliminated.

さらに、特定レジスタに他のレジスタを介して値をセットするロード命令を自由に用いることができる環境では、通常は、アセンブラ言語を機械語にアセンブルする過程で、CPUが実行(理解)できる命令として、当該命令を機械語に変換できるように構成される。このため、従来技術においては、プログラマーは、プログラミングの際に、たとえ特定レジスタに他のレジスタを介して値をセットするロード命令を用いないように注意していたとしても、アセンブラの最適化などによって当該命令に相当する機械語にアセンブルされてしまう可能性を100%排除することができない。   Furthermore, in an environment where a load instruction for setting a value to a specific register via another register can be used freely, it is usually an instruction that can be executed (understood) by the CPU in the process of assembling the assembler language into a machine language. The instruction can be converted into machine language. For this reason, in the prior art, even if a programmer is careful not to use a load instruction that sets a value to a specific register via another register during programming, the assembler is optimized. The possibility of being assembled into a machine language corresponding to the instruction cannot be completely excluded.

また、前記第二レジスタは、一の特定レジスタ(例えば、Aレジスタ)と複数の非特定レジスタ(例えば、Fレジスタ、Bレジスタ、Cレジスタ、Dレジスタ、Eレジスタ、Hレジスタ、Lレジスタ、およびこれらの裏レジスタ)で構成されており、前記CPUは、前記非特定レジスタに前記第一レジスタを介してデータを転送する命令(例えば、「LD B,T」命令のように、BレジスタにTレジスタを介してデータを転送する命令)を備えず、前記特定レジスタに前記第一レジスタを介してデータを転送する命令(例えば、「LD A,T」命令)を備えてもよい。   The second register includes one specific register (for example, A register) and a plurality of non-specific registers (for example, F register, B register, C register, D register, E register, H register, L register, and the like) And the CPU transfers the data to the non-specific register via the first register (for example, “LD B, T” instruction, T register in the B register) May be provided with an instruction (for example, “LD A, T” instruction) for transferring data to the specific register via the first register.

このような構成とすれば、第一のレジスタを他のレジスタに比べて使いにくくすることができるため、第一のレジスタの値を不用意に変更することができなくなる結果、コーディングミスの発生を減少させることができる場合がある。   With such a configuration, the first register can be made difficult to use compared to other registers, so that the value of the first register cannot be changed carelessly, resulting in a coding error. There are cases where it can be reduced.

また、前記第一レジスタおよび前記第二レジスタは、8ビット長の値を記憶可能な8ビットレジスタであり、前記非特定レジスタは、他のレジスタと合わせて16ビット長の演算が可能なレジスタの組み合わせ(例えば、BCレジスタ、DEレジスタ、HLレジスタ)を構成可能なレジスタであるが、前記第一レジスタは、他のレジスタと合わせて前記16ビット長の演算が可能なレジスタの組み合わせを構成不可能なレジスタであってもよい。   The first register and the second register are 8-bit registers capable of storing 8-bit values, and the non-specific register is a register capable of 16-bit operations in combination with other registers. A register that can form a combination (for example, a BC register, a DE register, and an HL register), but the first register cannot be combined with other registers to form a combination of registers that can perform the 16-bit operation. It may be a simple register.

このような構成とすれば、第一のレジスタを他のレジスタに比べて使いにくくすることができるため、第一のレジスタの値を不用意に変更することができなくなる結果、コーディングミスの発生を減少させることができる場合がある。なお、Tレジスタは、他のレジスタと合わせて16ビット長の演算が可能なレジスタの組み合わせを構成不可能であるが、上述の通り、「PUSH TI」命令や、「POP TI」命令では、Iレジスタと合わせて16ビット長の退避・復帰が可能である。換言すれば、Tレジスタは、演算命令のオペランドとしては利用できないが、転送命令のオペランドとしては利用することができるレジスタである。   With such a configuration, the first register can be made difficult to use compared to other registers, so that the value of the first register cannot be changed carelessly, resulting in a coding error. There are cases where it can be reduced. Note that the T register cannot be combined with any other register to allow a 16-bit operation, but as described above, the “PUSH TI” instruction or the “POP TI” instruction uses I Along with the register, it is possible to save and restore a 16-bit length. In other words, the T register is a register that cannot be used as an operand of an operation instruction but can be used as an operand of a transfer instruction.

また、前記遊技制御に用いるデータを記憶する記憶手段を備え、前記記憶手段は、前記CPUが実行するプログラムを記憶するROM(例えば、ROM306(またはROM1306))と、前記CPUが前記遊技制御を行う際に用いるデータを一時記憶可能なRAM(例えば、RAM308(またはRAM1308))と、を少なくとも有し、前記CPUは、前記遊技制御を開始する前(例えば、「電源投入後、主制御部300のCPU304がユーザプログラム(制御プログラム)を実行する前」、「システムリセット後、主制御部300のCPU304がユーザプログラム(制御プログラム)を実行する前」、「セキュリティモードに移行した直後」、「セキュリティチェックの結果がOKとなってユーザモードに移行した直後」、「システムリセットによる初期化処理の期間中」など)に、前記RAMの先頭アドレスのうちの上位アドレスを示す特定の値(例えば、F0H)を、(前記プログラムによらずに、)前記第一レジスタに設定してもよい。   In addition, a storage unit that stores data used for the game control is provided, and the storage unit stores a ROM (for example, ROM 306 (or ROM 1306)) that stores a program executed by the CPU, and the CPU performs the game control. RAM (for example, RAM 308 (or RAM 1308)) that can temporarily store data used at the time, and the CPU before the game control is started (for example, “after power-on, the main control unit 300 of Before the CPU 304 executes the user program (control program) ”,“ After the system reset, before the CPU 304 of the main control unit 300 executes the user program (control program) ”,“ Immediately after shifting to the security mode ”,“ Security check ” Immediately after the result is OK and the mode is changed to the user mode "," During a period of initialization processing due to a stem reset, etc.), a specific value (for example, F0H) indicating the upper address of the top address of the RAM is stored in the first register (regardless of the program). It may be set.

このような構成とすれば、RAMのデータを読み書きする場合には、第一のレジスタをRAMの上位アドレスを示す値として固定することで、RAMの下位アドレスだけを指定すればよく、プログラムコード量の削減や処理速度の向上を実現することが可能となる上に、第一のレジスタの値を不用意に変更することができなくなる結果、コーディングミスの発生を減少させることができる場合がある。   With such a configuration, when reading / writing RAM data, only the lower address of the RAM needs to be specified by fixing the first register as a value indicating the upper address of the RAM, and the amount of program code As a result, it is possible to reduce the occurrence of coding errors as a result of not being able to change the value of the first register inadvertently.

また、CPUと、遊技制御プログラムが記憶されたROMと、データを一時記憶可能なRAMと、を内蔵するマイクロコンピュータを備えた遊技台であって、前記遊技台は、パチンコ機またはスロットマシンであり、前記CPUは、少なくとも特定のレジスタを有し、前記RAMの先頭アドレスの上位バイトは、前記ROMの先頭アドレスの上位バイトよりも大きく、前記CPUは、前記特定のレジスタに値をセットする機能のうち、ロード命令を受けたことに基づいて行われるものとしては、直値により値をセットする機能のみを有し、前記CPUは、前記特定のレジスタに値をセットする機能のうち、前記ロード命令を受けたことに基づいて行われるもの以外のものとしては、前記RAMの先頭アドレスの上位バイトと同じ値を初期値としてセットする機能を少なくとも有していてもよい。   A gaming machine comprising a microcomputer having a CPU, a ROM storing a gaming control program, and a RAM capable of temporarily storing data, wherein the gaming machine is a pachinko machine or a slot machine. The CPU has at least a specific register, and the upper byte of the start address of the RAM is larger than the upper byte of the start address of the ROM, and the CPU has a function of setting a value in the specific register. Of these, only the function of setting a value by a direct value is performed based on receiving the load instruction, and the CPU has the load instruction among the functions of setting a value in the specific register. As other than what is performed on the basis of having received, the same value as the upper byte of the top address of the RAM is set as the initial value. Set Te functions may be at least a.

このような構成とすれば、RAMの上位アドレスを示す値を特定レジスタの初期値としてセットすることで、RAMのデータを読み書きする場合には、RAMの下位アドレスだけを指定すればよく、プログラムコード量の削減や処理速度の向上を実現することができる。しかも、特定レジスタには、初期値以外では、ロード命令による直値だけしかセットすることができないので、特定レジスタの値を不用意に変更することができなくなる結果、アドレスの設定ミスや、RAMへのデータの読み書きミスなどの発生を回避することができ、安定した遊技制御を行うことができる。また、頻繁に演算に用いられることにより、意図しない演算結果が記憶されたレジスタ経由で、間違った値が特定のレジスタにセットされることを防止できるとともに、初期値としてRAMの先頭アドレスの上位バイトと同じ値が特定のレジスタにセットされるので、電源投入後、特定のレジスタを用いてRAMのアクセスを行う場合であれば、特定のレジスタに値をセットする操作をせずに、特定のレジスタを用いてRAMのアクセスを行うことが可能になり、当該「RAMのアクセスを行う」ことについて、特定のレジスタの値が誤っていることから意図しないアドレスの情報をアクセスしてしまうといった不具合の防止効果をさらに高めることができる。   With such a configuration, by setting a value indicating the upper address of the RAM as the initial value of the specific register, when reading or writing RAM data, only the lower address of the RAM needs to be specified. Reduction of the amount and improvement of the processing speed can be realized. In addition, since only the direct value by the load instruction can be set in the specific register other than the initial value, the value of the specific register cannot be changed carelessly. The occurrence of data read / write errors and the like can be avoided, and stable game control can be performed. In addition, since it is frequently used for computation, it is possible to prevent an incorrect value from being set in a specific register via a register in which an unintended computation result is stored, and an upper byte of the RAM start address as an initial value. Since the same value is set in a specific register, if the RAM is accessed using a specific register after the power is turned on, the specific register is not operated without setting the value in the specific register. Can be used to access the RAM, and with regard to the “accessing the RAM”, it is possible to prevent a problem that the information of an unintended address is accessed because the value of a specific register is incorrect. The effect can be further enhanced.

また、プログラムを書き換えただけでは遊技を思い通りに制御することができないため、プログラムの書き換えによる不正行為を効果的に防止できる場合がある。特に、CPUのユーザによって設定されたユーザプログラムを実行可能なユーザモードと、該ユーザプログラムを実行不可能な非ユーザモード(例えば、セキュリティモード)と、を備え、該非ユーザモードにおいて前記特定の値を第一レジスタに設定すれば、特定の値が他の値に改ざんされたり、特定の値が読みだされたりするような不正行為を未然に防止できる場合がある。   In addition, since the game cannot be controlled as desired simply by rewriting the program, there are cases where illegal acts caused by rewriting the program can be effectively prevented. In particular, a user mode in which a user program set by a CPU user can be executed and a non-user mode in which the user program cannot be executed (for example, a security mode) are provided, and the specific value is set in the non-user mode. If the first register is set, it may be possible to prevent an illegal act in which a specific value is altered to another value or a specific value is read out.

また、前記RAMは、第一エリア(例えば、F000H〜F3FFHのワークエリア(または、I/OマップドI/O方式でアクセス可能なエリア))と第二エリア(例えば、7FE0H〜7FFFHのスタックエリア(または、メモリマップドI/O方式でアクセス可能なエリア))を有して構成されており、前記特定の値は、前記第一エリアの上位アドレス(F0H)を示す値であってもよい。   The RAM includes a first area (for example, a work area of F000H to F3FFH (or an area accessible by an I / O mapped I / O method)) and a second area (for example, a stack area of 7FE0H to 7FFFH ( Alternatively, the area may be accessed by a memory mapped I / O method)), and the specific value may be a value indicating an upper address (F0H) of the first area.

このような構成とすれば、RAMの第一エリアのデータを読み書きする場合には、第一のレジスタをRAMの第一エリアの上位アドレスを示す値として固定することで、RAMの第一エリアの下位アドレスだけを指定すればよく、プログラムコード量の削減や処理速度の向上を実現することが可能となる上に、第一のレジスタの値を不用意に変更することができなくなる結果、コーディングミスの発生を減少させることができる場合がある。また、第一エリアの上位アドレスを固定することによって、第一エリアの読み書きを行うつもりが誤って第二エリアの読み書きを行ってしまうようなミスを未然に防止できる場合がある。   With such a configuration, when reading and writing data in the first area of the RAM, the first register is fixed as a value indicating the upper address of the first area of the RAM, so that the first area of the RAM is It is only necessary to specify the lower address, so that the amount of program code can be reduced and the processing speed can be improved, and the value of the first register cannot be changed carelessly. In some cases, it is possible to reduce the occurrence of. In addition, by fixing the upper address of the first area, there is a case where it is possible to prevent a mistake that an intention to read / write the first area erroneously reads / writes the second area.

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、遊技の進行を中心とした遊技制御を行うCPU(例えば、CPU304(またはCPU1304)と、前記遊技制御に用いるデータを記憶する記憶手段と、を備えた遊技台であって、前記記憶手段は、前記CPUが実行するプログラムを記憶するROM(例えば、ROM306(またはROM1306))と、前記CPUが前記遊技制御を行う際に用いるデータを一時記憶可能なRAM(例えば、RAM308(またはRAM1308))と、を少なくとも有し、前記CPUは、前記遊技制御を開始する前(例えば、「電源投入後、主制御部300のCPU304がユーザプログラム(制御プログラム)を実行する前」、「システムリセット後、主制御部300のCPU304がユーザプログラム(制御プログラム)を実行する前」、「セキュリティモードに移行した直後」、「セキュリティチェックの結果がOKとなってユーザモードに移行した直後」、「システムリセットによる初期化処理の期間中」など)に、前記RAMの先頭アドレスのうちの上位アドレスを示す特定の値(例えば、F0H)を、(前記プログラムによらずに、)特定レジスタ(例えば、ROM306とは別体のCPU304に内蔵されたTレジスタ)に設定することを特徴とする遊技台である。   In addition, the pachinko machine 100 (or slot machine 1100) according to the present embodiment stores a CPU (for example, the CPU 304 (or CPU 1304) that performs game control centering on the progress of the game and data used for the game control. And a memory for storing a program executed by the CPU (for example, ROM 306 (or ROM 1306)) and data used when the CPU performs the game control. RAM (for example, RAM 308 (or RAM 1308)) at least, and the CPU before the game control is started (for example, “after power-on, the CPU 304 of the main control unit 300 is a user program). (Before executing (control program) "," After system reset, main controller 30 Before the CPU 304 executes the user program (control program), “immediately after shifting to the security mode”, “immediately after shifting to the user mode with the result of the security check being OK”, “initialization processing by system reset” During a period, etc.), a specific value (for example, F0H) indicating the upper address of the top address of the RAM is set to a specific register (for example, the CPU 304 separate from the ROM 306). This is a gaming machine characterized in that it is set in a T register built in.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、RAMのデータを読み書きする場合には、特定レジスタをRAMの上位アドレスを示す値として固定することで、RAMの下位アドレスだけを指定すればよく、プログラムコード量の削減や処理速度の向上を実現することが可能となる上に、特定レジスタの値を不用意に変更することができなくなる結果、コーディングミスの発生を減少させることができる場合がある。   According to the pachinko machine 100 (or the slot machine 1100) according to the present embodiment, when reading / writing data in the RAM, by fixing the specific register as a value indicating the upper address of the RAM, only the lower address of the RAM is obtained. It is only necessary to specify this, and it is possible to reduce the amount of program code and increase the processing speed, as well as reduce the occurrence of coding errors as a result of not being able to change the value of a specific register carelessly. May be possible.

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、CPUと、遊技制御プログラムを記憶するROMと、データを一時記憶可能なRAMと、を内蔵するマイクロコンピュータを備えた遊技台であって、前記遊技台は、パチンコ機またはスロットマシンであり、前記CPUは、少なくとも特定レジスタを備え、前記RAMの先頭アドレスの上位バイトは、前記ROMの先頭アドレスの上位バイトよりも大きく、前記遊技制御プログラムによらずに、前記RAMの先頭アドレスの上位バイトと同じ値が、初期値として前記特定レジスタにセットされることを特徴とする遊技台である。   The pachinko machine 100 (or slot machine 1100) according to the present embodiment is a game machine including a microcomputer that includes a CPU, a ROM that stores a game control program, and a RAM that can temporarily store data. The gaming machine is a pachinko machine or a slot machine, and the CPU includes at least a specific register, and the upper byte of the top address of the RAM is larger than the upper byte of the top address of the ROM. The gaming machine is characterized in that the same value as the upper byte of the head address of the RAM is set in the specific register as an initial value regardless of the control program.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、遊技制御プログラム内でRAMのアドレスの上位バイトを記述する必要がなくなるので、不正行為者にプログラムを不正に解析されたとしてもRAMのアドレスが特定困難である上に、遊技制御プログラムを書き換えただけでは遊技を思い通りに制御することができないため、遊技制御プログラムの書き換えによる不正行為を効果的に防止することができる。また、RAMのデータを読み書きする場合には、特定レジスタをRAMの上位アドレスを示す値として固定することで、RAMの下位アドレスだけを指定すればよく、プログラムコード量の削減や処理速度の向上を実現することが可能となる上に、特定レジスタの値を不用意に変更することができなくなる結果、コーディングミスの発生を減少させることができる。   According to the pachinko machine 100 (or slot machine 1100) according to the present embodiment, since it is not necessary to describe the upper byte of the RAM address in the game control program, even if the program is illegally analyzed by an unauthorized person. It is difficult to specify the address of the RAM, and the game cannot be controlled as desired simply by rewriting the game control program, so that illegal acts caused by rewriting the game control program can be effectively prevented. In addition, when reading and writing data in the RAM, it is sufficient to specify only the lower address of the RAM by fixing the specific register as a value indicating the upper address of the RAM, thereby reducing the amount of program code and improving the processing speed. In addition to being able to be realized, the value of the specific register cannot be changed carelessly, and as a result, the occurrence of coding errors can be reduced.

また、プログラムを書き換えただけでは遊技を思い通りに制御することができないため、プログラムの書き換えによる不正行為を効果的に防止できる場合がある。特に、CPUのユーザによって設定されたユーザプログラムを実行可能なユーザモードと、該ユーザプログラムを実行不可能な非ユーザモード(例えば、セキュリティモード)と、を備え、該非ユーザモードにおいて前記特定の値を第一レジスタに設定すれば、特定の値が他の値に改ざんされたり、特定の値が読みだされたりするような不正行為を未然に防止できる場合がある。   In addition, since the game cannot be controlled as desired simply by rewriting the program, there are cases where illegal acts caused by rewriting the program can be effectively prevented. In particular, a user mode in which a user program set by a CPU user can be executed and a non-user mode in which the user program cannot be executed (for example, a security mode) are provided, and the specific value is set in the non-user mode. If the first register is set, it may be possible to prevent an illegal act in which a specific value is altered to another value or a specific value is read out.

また、前記CPUは、非特定レジスタ(例えば、Aレジスタ、Fレジスタ、Bレジスタ、Cレジスタ、Dレジスタ、Eレジスタ、Hレジスタ、Lレジスタ、およびこれらの裏レジスタ)をさらに備えるとともに、前記特定レジスタに前記非特定レジスタを介してデータを転送する命令(例えば「LD T,A」命令のように、TレジスタにAレジスタを介してデータを転送する命令)を備えず、前記特定レジスタに直値によりデータを設定する命令(例えば、「LD T,F0H」命令)を備えてもよい。   The CPU further includes non-specific registers (for example, an A register, an F register, a B register, a C register, a D register, an E register, an H register, an L register, and a back register thereof), and the specific register Are not provided with an instruction for transferring data via the non-specific register (eg, an instruction for transferring data via the A register to the T register, such as an “LD T, A” instruction). May be provided with an instruction (for example, an “LD T, F0H” instruction) for setting data.

このような構成とすれば、特定レジスタに対して直値でデータを転送するよう構成されているので、セットしているデータを確認し易くなる場合がある。また、特定レジスタに対して他のレジスタを介してデータを転送できないように構成されているので、特定レジスタの値を不用意に変更することができなくなる結果、コーディングミスの発生を減少させることができる場合がある。また、特定レジスタは直値によるデータの転送のみが認められているため、レジスタを介したデータの転送と直値によるデータの転送の両方が認められている他のレジスタよりも相対的に使用頻度が低くなる。このため、コーディングの見直し作業や、デバッグ(例えば、Tレジスタのトレースなど)の効率を高めることが可能となる。   With such a configuration, since data is transferred to a specific register as a direct value, it may be easy to check the set data. In addition, since it is configured so that data cannot be transferred to a specific register via another register, the value of the specific register cannot be inadvertently changed, thereby reducing the occurrence of coding errors. There are cases where it is possible. In addition, because specific registers are only allowed to transfer data by direct data, they are used more frequently than other registers that allow both data transfer through registers and direct data transfer. Becomes lower. For this reason, it is possible to increase the efficiency of coding review work and debugging (for example, T register tracing).

また、前記CPUは、前記特定レジスタに直値によりデータを転送する命令に基づいて、前記特定レジスタに前記特定の値を転送することができるようにしてもよい。   The CPU may be configured to transfer the specific value to the specific register based on an instruction to transfer data to the specific register as a direct value.

このような構成とすれば、ループ処理などで汎用レジスタの空きがなくなった場合に臨時的に特定レジスタを使用した後に、初期値に戻すことができ、利便性を高めることができる。   With such a configuration, when the general-purpose register becomes empty due to loop processing or the like, the specific register is temporarily used and then returned to the initial value, so that convenience can be improved.

また、前記CPUは、前記RAMから前記特定レジスタにデータを転送する命令に基づいて、前記特定レジスタに前記特定の値を転送(例えば、「POP TI」命令による転送)することができるように構成してもよい。   Further, the CPU is configured to be able to transfer the specific value to the specific register (for example, transfer by a “POP TI” instruction) based on an instruction to transfer data from the RAM to the specific register. May be.

このような構成とすれば、特定レジスタを特定の処理に使用することが可能となり、特定レジスタの利便性を高めることができる場合がある。   With such a configuration, the specific register can be used for specific processing, and the convenience of the specific register can be improved in some cases.

また、前記RAMは、第一エリア(例えば、F000H〜F3FFHのワークエリア(または、I/OマップドI/O方式でアクセス可能なエリア))と第二エリア(例えば、7FE0H〜7FFFHのスタックエリア(または、メモリマップドI/O方式でアクセス可能なエリア))を有して構成されており、前記特定の値は、前記第一エリアの上位アドレス(F0H)を示す値であってもよい。   The RAM includes a first area (for example, a work area of F000H to F3FFH (or an area accessible by an I / O mapped I / O method)) and a second area (for example, a stack area of 7FE0H to 7FFFH ( Alternatively, the area may be accessed by a memory mapped I / O method)), and the specific value may be a value indicating an upper address (F0H) of the first area.

このような構成とすれば、RAMの第一エリアのデータを読み書きする場合には、特定レジスタをRAMの第一エリアの上位アドレスを示す値として固定することで、RAMの第一エリアの下位アドレスだけを指定すればよく、プログラムコード量の削減や処理速度の向上を実現することが可能となる上に、特定レジスタの値を不用意に変更することができなくなる結果、コーディングミスの発生を減少させることができる場合がある。また、第一エリアの上位アドレスを固定することによって、第一エリアの読み書きを行うつもりが誤って第二エリアの読み書きを行ってしまうようなミスを未然に防止できる場合がある。   With such a configuration, when reading and writing data in the first area of the RAM, the specific register is fixed as a value indicating the upper address of the first area of the RAM, thereby lowering the lower address of the first area of the RAM. It is possible to reduce the amount of program code and increase the processing speed, as well as reduce the occurrence of coding errors as a result of the inadvertent change of specific register values. There is a case that can be made. In addition, by fixing the upper address of the first area, there is a case where it is possible to prevent a mistake that an intention to read / write the first area erroneously reads / writes the second area.

また、前記CPUは、所定の割込み条件が成立したことに基づいて実行される割込み処理(例えば、主制御部メイン処理)を実行可能であるとともに、電源投入後、最初の前記割込み処理を実行する前に、前記特定レジスタに前記特定の値が設定されているかを判定する処理(例えば、Tレジチェック処理)を実行してもよい。なお、「電源投入後、最初の前記割込み処理を実行する前」の例としては、他にも、「電源投入後、主制御部メイン処理のステップS105の低電圧状態の確認前」や、「電源投入後、主制御部メイン処理のステップS109の電断前の状態に復帰する否かの確認前」や、「電源投入後、第1副制御部の立ち上りの確認前」などを挙げることができる。また、「判定する処理」の結果に応じて、上記図82に示すように、特定レジスタに特定の値を設定したり、上記図83に示すように、エラー処理を実行してもよい。   In addition, the CPU can execute an interrupt process (for example, main control unit main process) that is executed based on a predetermined interrupt condition being satisfied, and executes the first interrupt process after the power is turned on. Before that, a process for determining whether the specific value is set in the specific register (for example, a T-registration check process) may be executed. In addition, examples of “before executing the first interrupt process after turning on the power” include other “after power on and before confirming the low voltage state in step S105 of the main control unit main process”, “ For example, after power-on, before confirming whether or not to return to the state before power interruption in step S109 of the main control unit main process, or “before power-on, before confirming the rise of the first sub-control unit”. it can. Further, depending on the result of the “determination process”, a specific value may be set in the specific register as shown in FIG. 82, or error processing may be executed as shown in FIG.

このような構成とすれば、特定レジスタの値を確認することで遊技台が正常動作をしているか否かを判断できる場合がある。   With such a configuration, it may be possible to determine whether or not the game machine is operating normally by checking the value of the specific register.

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、複数のアドレスそれぞれで示される記憶領域(例えば、ROM領域)に制御プログラムデータを含む複数種類のデータ(例えば、非使用データや参照データ)を記憶したROM(例えば、ROM306)と、前記ROMに記憶された前記制御プログラムデータに基づいて所定の周期毎に実行される割込み処理(例えば、主制御部タイマ割込み処理)を含む複数種類の遊技制御処理を実行するCPU(例えば、CPU304)と、を備え、前記ROMは、1又は複数の前記制御プログラムデータであって、前記CPUが実行する複数種類の命令それぞれに対応した命令データ(オペコード)と、1又は複数の前記制御プログラムデータであって、前記CPUが該命令を実行するために必要な補足データ(オペランド)と、を記憶し、該命令データであって、特定のアドレス(例えば、サブルーチンの先頭のアドレス)を識別可能にする特定識別情報(例えば、サブルーチンの先頭のアドレスをバイナリ形式で表現した情報)の一部である第1の識別情報を示す第1のアドレスデータ(例えば、m)および該第1のアドレスデータと異なる別データ(例えば、EXESUB命令の命令データからmを除いたデータ)で構成され、該特定のアドレスで示される記憶領域に記憶されたデータを前記CPUに読み込ませる特定命令(例えば、EXESUB命令)に対応した特定命令データ(例えば、EXESUB命令の命令データ)と、該補足データであって、該特定識別情報から該第1の識別情報を除いた情報のうちの少なくとも一部である第2の識別情報を示す第2のアドレスデータ(例えば、n)で構成され、前記CPUが該特定命令を実行するために必要な特定補足データと、を前記割込み処理で実行される命令に対応するように(例えば、ROM制御領域のうちタイマ割り込み処理の領域に対応するROM306の記憶領域(タイマ割込み処理に対応したアドレスで示される記憶領域)に)記憶していることを特徴とする遊技台である。   Further, the pachinko machine 100 (or the slot machine 1100) according to the present embodiment has a plurality of types of data (for example, non-use data and data) including control program data in storage areas (for example, ROM areas) indicated by a plurality of addresses. A plurality of ROMs (for example, ROM 306) storing reference data) and interrupt processing (for example, main control unit timer interrupt processing) executed at predetermined intervals based on the control program data stored in the ROM A CPU (for example, a CPU 304) that executes a type of game control process, and the ROM is one or a plurality of the control program data, each of which corresponds to a plurality of types of commands executed by the CPU (Opcode) and one or more of the control program data, the CPU Specific identification information (for example, a subroutine) that stores supplementary data (operands) necessary for executing the instruction, and is capable of identifying a specific address (for example, the head address of the subroutine). First address data (for example, m) indicating the first identification information that is a part of the first address of information in binary format) and other data different from the first address data (for example, the EXESUB instruction) Specific instruction data (for example, EXESUB instruction), for example, which causes the CPU to read the data stored in the storage area indicated by the specific address. , The instruction data of the EXESUB instruction) and the supplementary data, the information obtained by removing the first identification information from the specific identification information Specific supplementary data that is composed of second address data (for example, n) indicating second identification information that is at least a part of the CPU and that is necessary for the CPU to execute the specific instruction. (For example, in the storage area of the ROM 306 corresponding to the timer interrupt processing area in the ROM control area (the storage area indicated by the address corresponding to the timer interrupt processing)) It is a game stand characterized by being.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、命令データに含まれる第1のアドレスデータmを上位アドレスのデータとして定義することで、アドレス領域に対して命令データをグループ化して対応付けることができ、コーディングミスを抑制することができる場合がある。また、命令データは、呼び出すサブルーチンの先頭アドレスの一部を構成するデータを含んで構成されていることから、移動先のアドレスデータを間違ってしまった場合であっても、間違ってしまったデータが命令データに含まれていれば、制御プログラムの実行が停止される場合があるため、コーディングミスを抑制することができる場合がある。また、従来のサブルーチンを呼び出す制御命令(例えば、CALL命令)を圧縮することができ、ROM制御領域に対応するROM306の記憶領域に記憶されている従来の制御プログラムデータを圧縮することが可能となる。また、制御プログラムの圧縮に起因して従来(例えば、CALL命令)よりもサブルーチンを呼び出す制御プログラムの処理速度を向上させる(ステート数を少なくする)ことができる場合がある。   According to the pachinko machine 100 (or the slot machine 1100) according to the present embodiment, the first address data m included in the instruction data is defined as upper address data, thereby grouping the instruction data into the address area. In some cases, coding errors can be suppressed. In addition, because the instruction data includes data that forms part of the top address of the subroutine to be called, even if the destination address data is incorrect, the erroneous data is If included in the instruction data, the execution of the control program may be stopped, so that a coding error may be suppressed. In addition, a control instruction (for example, a CALL instruction) for calling a conventional subroutine can be compressed, and conventional control program data stored in the storage area of the ROM 306 corresponding to the ROM control area can be compressed. . In addition, due to the compression of the control program, there are cases where the processing speed of the control program for calling a subroutine can be improved (the number of states can be reduced) as compared with the conventional case (for example, CALL instruction).

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、複数のアドレスそれぞれで示される記憶領域に制御プログラムデータおよび該制御プログラムデータに基づいて参照される参照データを含む複数種類のデータを記憶したROMと、前記ROMに記憶された前記制御プログラムデータおよび前記参照データに基づいて所定の周期毎に実行される割込み処理を含む複数種類の遊技制御処理を実行するCPUと、を備え、前記ROMは、1又は複数の前記制御プログラムデータであって、前記CPUが実行する複数種類の命令それぞれに対応した命令データと、1又は複数の前記制御プログラムデータであって、前記CPUが該命令を実行するために必要な補足データと、を記憶し、前記命令データであって、特定のアドレスを識別可能にする特定識別情報の一部である第1の識別情報を示す第1のアドレスデータおよび該第1のアドレスデータと異なる別データで構成され、該特定のアドレスで示される記憶領域に記憶されたデータを前記CPUに読み込ませる特定命令に対応した特定命令データと、前記補足データであって、前記特定識別情報から前記第1の識別情報を除いた情報である第2の識別情報を示す第2のアドレスデータで構成され、前記CPUが該特定命令を実行するために必要な特定補足データと、を前記割込み処理で実行される命令に対応するように記憶し、前記特定命令の実行により前記CPUが読み込み可能な特定の記憶領域に全ての前記制御プログラムデータを記憶し、全ての制御プログラムデータが記憶された前記特定の記憶領域とは異なる記憶領域に、前記参照データを記憶していることを特徴とする遊技台である。   In addition, the pachinko machine 100 (or the slot machine 1100) according to the present embodiment includes a plurality of types of data including control program data and reference data referred to based on the control program data in a storage area indicated by each of a plurality of addresses. And a CPU for executing a plurality of types of game control processes including an interrupt process executed at predetermined intervals based on the control program data and the reference data stored in the ROM, The ROM is one or a plurality of the control program data, the command data corresponding to each of a plurality of types of instructions executed by the CPU, and the one or a plurality of the control program data, the CPU And supplementary data necessary for executing A storage area composed of first address data indicating first identification information that is part of specific identification information enabling identification of an address and different data different from the first address data, and indicated by the specific address Specific instruction data corresponding to a specific instruction for causing the CPU to read the data stored in the CPU and the supplementary data, the second identification information which is information obtained by removing the first identification information from the specific identification information And the specific supplementary data necessary for the CPU to execute the specific instruction is stored so as to correspond to the instruction executed in the interrupt processing, and All the control program data is stored in a specific storage area that can be read by the CPU by execution, and the specific record in which all the control program data is stored is stored. In different storage area from the region, a gaming table, characterized in that stores the reference data.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、CPUが特定命令を実行する際に、誤って参照データを読み込んでしまい、当該参照データに基づいて意図しない遊技制御処理を行ってしまうような事態を未然に防止することができ、遊技制御の安定化を図ることができる。また、特定命令は、特定の記憶領域に記憶された全ての制御プログラムデータを読み込み可能に構成されているため、制御プログラムデータにおける呼出元と呼出先の配置(記憶場所)が制限されることがなく、制御プログラムの設計に自由度を持たせることができる。また、遊技台の分野においては、複数種類の遊技台において制御プログラムデータ(例えば、使用頻度の高いサブルーチン)を共用する一方で、各遊技台の仕様や性能に応じて参照データ(例えば、抽選値や演出データ)を異ならせることが一般的であるため、遊技台に特に好適である。   According to the pachinko machine 100 (or slot machine 1100) according to the present embodiment, when the CPU executes a specific command, the reference data is erroneously read, and an unintended game control process is performed based on the reference data. Such a situation can be prevented and game control can be stabilized. Further, since the specific instruction is configured to be able to read all the control program data stored in the specific storage area, the arrangement (storage location) of the call source and the call destination in the control program data may be limited. Therefore, the control program can be designed with a degree of freedom. In the field of gaming machines, a plurality of types of gaming machines share control program data (for example, frequently used subroutines), while reference data (for example, lottery values) according to the specifications and performance of each gaming machine. Or production data) is generally different, and is particularly suitable for a game machine.

また、複数のアドレスそれぞれで示される記憶領域に制御プログラムデータおよび該制御プログラムデータに基づいて参照される参照データを含む複数種類のデータを記憶したROMと、前記ROMに記憶された前記制御プログラムデータおよび前記参照データに基づいて所定の周期毎に実行される割込み処理を含む複数種類の遊技制御処理を実行するCPUと、を備え、前記ROMは、1又は複数の前記制御プログラムデータであって、前記CPUが実行する複数種類の命令それぞれに対応した命令データと、1又は複数の前記制御プログラムデータであって、前記CPUが該命令を実行するために必要な補足データと、を記憶し、前記命令データであって、特定のアドレスを識別可能にする特定識別情報の一部である第1の識別情報を示す第1のアドレスデータおよび該第1のアドレスデータと異なる別データで構成され、該特定のアドレスで示される記憶領域に記憶されたデータを前記CPUに読み込ませる特定命令に対応した特定命令データと、前記補足データであって、前記特定識別情報から前記第1の識別情報を除いた情報である第2の識別情報を示す第2のアドレスデータで構成され、前記CPUが該特定命令を実行するために必要な特定補足データと、を前記割込み処理で実行される命令に対応するように記憶し、前記特定命令の実行により前記CPUが読み込み可能な特定の記憶領域に全ての前記制御プログラムデータを記憶し、全ての制御プログラムデータが記憶された前記特定の記憶領域とは異なる記憶領域に、前記参照データを記憶していてもよい。   A ROM storing a plurality of types of data including control program data and reference data referred to based on the control program data in a storage area indicated by each of a plurality of addresses; and the control program data stored in the ROM And a CPU that executes a plurality of types of game control processes including an interrupt process that is executed at predetermined intervals based on the reference data, and the ROM is one or a plurality of the control program data, Storing instruction data corresponding to each of a plurality of types of instructions executed by the CPU, and one or a plurality of the control program data, which is supplementary data necessary for the CPU to execute the instructions; Indicates first identification information that is part of specific identification information that is instruction data and enables identification of a specific address. Specific instruction data corresponding to a specific instruction that is constituted by first address data and different data different from the first address data, and causes the CPU to read data stored in the storage area indicated by the specific address; The supplementary data is composed of second address data indicating second identification information, which is information obtained by removing the first identification information from the specific identification information, and the CPU executes the specific instruction. Specific supplementary data necessary for the interrupt processing is stored so as to correspond to the instruction executed in the interrupt processing, and all the control program data is stored in a specific storage area readable by the CPU by the execution of the specific instruction. The reference data may be stored in a storage area different from the specific storage area in which all control program data is stored.

このような構成とすれば、CPUが特定命令を実行する際に、誤って参照データを読み込んでしまい、当該参照データに基づいて意図しない遊技制御処理を行ってしまうような事態を未然に防止することができ、遊技制御の安定化を図ることができる。また、特定命令は、特定の記憶領域に記憶された全ての制御プログラムデータを読み込み可能に構成されているため、制御プログラムデータにおける呼出元と呼出先の配置(記憶場所)が制限されることがなく、制御プログラムの設計に自由度を持たせることができる。また、遊技台の分野においては、複数種類の遊技台において制御プログラムデータ(例えば、使用頻度の高いサブルーチン)を共用する一方で、各遊技台の仕様や性能に応じて参照データ(例えば、抽選値や演出データ)を異ならせることが一般的であるため、遊技台に特に好適である。   With such a configuration, it is possible to prevent a situation in which, when the CPU executes a specific command, the reference data is erroneously read and an unintended game control process is performed based on the reference data. And stabilization of game control can be achieved. Further, since the specific instruction is configured to be able to read all the control program data stored in the specific storage area, the arrangement (storage location) of the call source and the call destination in the control program data may be limited. Therefore, the control program can be designed with a degree of freedom. In the field of gaming machines, a plurality of types of gaming machines share control program data (for example, frequently used subroutines), while reference data (for example, lottery values) according to the specifications and performance of each gaming machine. Or production data) is generally different, and is particularly suitable for a game machine.

また、前記ROMは、少なくとも前記第1の識別情報、前記第2の識別情報の順序に定義することにより前記特定のアドレスを識別可能にする前記特定識別情報(例えば、mn)のうち、前記第1の識別情報を示す前記第1のアドレスデータおよび前記別データで構成される前記特定命令データと、該特定識別情報のうち前記第2の識別情報を示す前記第2のアドレスデータで構成される前記特定補足データと、を前記割込み処理で実行される命令に対応するように記憶してもよい。   Further, the ROM includes the first identification information (for example, mn) that makes it possible to identify the specific address by defining at least the order of the first identification information and the second identification information. The first instruction data indicating one identification information and the specific command data composed of the separate data, and the second address data indicating the second identification information among the specific identification information. The specific supplementary data may be stored so as to correspond to an instruction executed in the interrupt process.

このような構成とすれば、命令データは、呼び出すサブルーチンの先頭アドレスの一部を構成するデータを含んで構成されていることから、移動先のアドレスデータを間違ってしまった場合であっても、間違ってしまったデータが命令データに含まれていれば、制御プログラムの実行が停止されるため、コーディングミスを抑制することができる場合がある。   With such a configuration, since the instruction data is configured to include a part of the head address of the subroutine to be called, even if the destination address data is wrong, If erroneous data is included in the instruction data, the execution of the control program is stopped, so that a coding error may be suppressed.

また、前記ROMは、少なくとも前記第1のアドレスデータの一部である第1の構成データ(例えば、EXESUB命令の命令データのビット7)、前記別データの少なくとも一部である第2の構成データ(例えば、EXESUB命令の命令データのビット6〜3)、前記第1のアドレスデータから該第1の構成データを除いた第3の構成データ(例えば、EXESUB命令の命令データのビット2〜0)の順序で構成された前記特定命令データをを前記割込み処理で実行される命令に対応するように記憶してもよい。   The ROM includes at least first configuration data (for example, bit 7 of the instruction data of the EXESUB instruction) that is a part of the first address data and second configuration data that is at least a part of the other data. (For example, bits 6 to 3 of the instruction data of the EXEBUS instruction), third configuration data obtained by removing the first configuration data from the first address data (for example, bits 2 to 0 of the instruction data of the EXESUB instruction) The specific instruction data configured in this order may be stored so as to correspond to the instruction executed in the interrupt processing.

このような構成とすれば、命令データをグループ化しつつも、きめ細かく命令データテーブルの空き領域に割り当てることが可能になる。よって、限られたハードウェア資源(例えば、1バイトで定義可能なパターン(256パターン))を有効利用することができ、命令データの圧縮によるROM制御領域に対応するROMの記憶領域に記憶されている従来の制御プログラムデータの圧縮が可能となる。   With such a configuration, it is possible to finely assign the instruction data to a free area of the instruction data table while grouping the instruction data. Therefore, limited hardware resources (for example, patterns that can be defined by 1 byte (256 patterns)) can be used effectively and stored in the ROM storage area corresponding to the ROM control area by compressing instruction data. The conventional control program data can be compressed.

また、前記第3の構成データ(例えば、EXESUB命令の命令データのビット2〜0)が前記第1の構成データ(例えば、EXESUB命令の命令データのビット7)と比較してデータ容量が大きくなる、または、前記第1の構成データが前記第3の構成データと比較してデータ容量が大きくなる(例えば、3ビットに対して1ビット)ように構成された前記特定命令データを前記割込み処理で実行される命令に対応するように記憶してもよい。   Further, the third configuration data (for example, bits 2 to 0 of the instruction data of the EXEBUS instruction) has a larger data capacity than the first configuration data (for example, bit 7 of the instruction data of the EXESUB instruction). Alternatively, the specific instruction data configured such that the first configuration data has a data capacity larger than that of the third configuration data (for example, 1 bit compared to 3 bits) is generated by the interrupt processing. You may memorize | store corresponding to the command performed.

このような構成とすれば、命令データをグループ化しつつも、きめ細かく命令データテーブルの空き領域に割り当てることが可能になる。よって、限られたハードウェア資源(例えば、1バイトで定義可能なパターン(256パターン))を有効利用することができ、命令データの圧縮によるROM制御領域に対応するROMの記憶領域に記憶されている従来の制御プログラムデータの圧縮が可能となる。   With such a configuration, it is possible to finely assign the instruction data to a free area of the instruction data table while grouping the instruction data. Therefore, limited hardware resources (for example, patterns that can be defined by 1 byte (256 patterns)) can be used effectively and stored in the ROM storage area corresponding to the ROM control area by compressing instruction data. The conventional control program data can be compressed.

また、前記ROMは、前記特定命令の実行により前記CPUが読み込み可能なデータが記憶されている特定の記憶領域(例えば、0000H〜0FFFHや0000H〜11FFH)に全ての前記制御プログラムデータを記憶するとともに、該特定の記憶領域から前記制御プログラムデータが記憶された制御記憶領域(例えば、ROM制御領域に対応するROM306の記憶領域)を除いた記憶領域(例えば、非使用領域に対応するROM306の記憶領域)の全てに前記遊技制御処理の実行に使用されない非使用データ(例えば、00H)を記憶するようにしてもよい。   The ROM stores all the control program data in a specific storage area (for example, 0000H to 0FFFH or 0000H to 11FFH) in which data that can be read by the CPU by execution of the specific instruction is stored. A storage area (for example, a storage area of the ROM 306 corresponding to a non-use area) excluding a control storage area (for example, a storage area of the ROM 306 corresponding to the ROM control area) in which the control program data is stored from the specific storage area ) May be stored non-use data (for example, 00H) that is not used for execution of the game control process.

このような構成とすれば、CPU304が非使用データおよび制御プログラムデータを除くデータ(例えば、参照データや管理データ)を直接命令データとして読み込まれることがないため、補足データのコーディングミスによるCPU304の誤作動を防止できる場合がある。   With such a configuration, the CPU 304 does not directly read data (for example, reference data or management data) excluding non-use data and control program data as instruction data. It may be possible to prevent operation.

また、前記ROMは、複数のアドレスそれぞれで示される記憶領域に特定のデータ長(例えば、1バイト(8ビット))で表される複数種類のデータを記憶するものであり、前記CPUは、前記ROMの記憶された一のアドレスに示される記憶領域に記憶されたデータを一処理毎に読み込むことで前記割込み処理を含む複数種類の遊技制御処理を実行するものであり、前記ROMは、さらに、前記特定のデータ長の2以上の整数倍である第1のデータ長(例えば、2バイト(16ビット))で表現される前記特定のアドレスを識別可能な前記特定識別情報の一部である前記第1の識別情報を示す前記第1のアドレスデータおよび前記別データで構成される前記特定命令データと、該第1のデータ長よりも前記特定のデータ長の整数倍のデータ長だけ短い第2のデータ長(例えば、1バイト(8ビット))で表現される前記第2のアドレスデータで構成される前記特定補足データと、を前記割込み処理で実行される命令に対応するように記憶してもよい。   The ROM stores a plurality of types of data represented by a specific data length (for example, 1 byte (8 bits)) in a storage area indicated by each of a plurality of addresses. A plurality of types of game control processes including the interrupt process are executed by reading the data stored in the storage area indicated by one address stored in the ROM for each process, and the ROM further includes: The specific identification information that can identify the specific address represented by a first data length (for example, 2 bytes (16 bits)) that is an integer multiple of 2 or more of the specific data length The specific instruction data composed of the first address data indicating the first identification information and the separate data, and data that is an integer multiple of the specific data length than the first data length The specific supplementary data composed of the second address data expressed by a second data length (for example, 1 byte (8 bits)) that is short only so as to correspond to the instruction executed in the interrupt processing May be stored.

このような構成とすれば、命令データをグループ化しつつも、きめ細かく命令データテーブルの空き領域に割り当てることが可能になる。よって、限られたハードウェア資源(例えば、1バイトで定義可能なパターン(256パターン))を有効利用することができ、命令データの圧縮によるROM制御領域に対応するROMの記憶領域に記憶されている従来の制御プログラムデータの圧縮が可能となる。   With such a configuration, it is possible to finely assign the instruction data to a free area of the instruction data table while grouping the instruction data. Therefore, limited hardware resources (for example, patterns that can be defined by 1 byte (256 patterns)) can be used effectively and stored in the ROM storage area corresponding to the ROM control area by compressing instruction data. The conventional control program data can be compressed.

また、本実施形態に係るパチンコ機100(またはスロットマシン110)は、複数の制御プログラムデータで構成される制御プログラムを記憶しているROM(例えば、ROM306)と、前記制御プログラムに基づいて遊技制御を実行するCPU(例えば、CPU304)と、を備え、前記ROMは、前記複数の制御プログラムデータのうち、第1のデータ(例えば、EXESUB命令(EXESUBmn)の命令データにおける、ビット6およびビット7)、第2のデータ(例えば、EXESUB命令(EXESUBmn)の命令データにおける、ビット5(α))、第3のデータ(例えば、EXESUB命令(EXESUBmn)の命令データにおける、ビット3およびビット4)、第4のデータ(例えば、EXESUB命令(EXESUBmn)の命令データにおける、ビット0(δ)、ビット1(γ)、ビット2(β))、第5のデータ(例えば、EXESUB命令(EXESUBmn)の命令データにおける、補足データ(n))を含んで構成された特定の制御プログラムデータ(EXESUB命令(EXESUBmn)の命令データを、少なくとも、該第2のデータ、該第3のデータ、該第4のデータ、順番に並べて(例えば、アドレスの若い順番)記憶するものであり、前記CPUは、前記特定の制御プログラムデータを読み込んだ場合に、前記第1および第3のデータを用いて特定される第1の命令(例えば、サブルーチンの先頭のアドレスを呼び出す命令)と、前記第2のデータ、前記第4のデータおよび前記第5のデータを用いて特定される第2の命令(例えば、呼び出すサブルーチンの先頭アドレスを特定する命令)と、で特定される特定命令(例えば、EXESUB命令)を所定周期で実行される割込処理(例えば、タイマ割込み処理)中に実行することを特徴とする遊技台とも言える。   Further, the pachinko machine 100 (or the slot machine 110) according to the present embodiment has a ROM (eg, ROM 306) storing a control program composed of a plurality of control program data, and game control based on the control program. And the ROM executes first data (for example, bit 6 and bit 7 in the instruction data of the EXESUB instruction (EXESUBmn)) among the plurality of control program data. , Second data (for example, bit 5 (α) in the instruction data of the EXESUB instruction (EXESUBMn)), third data (for example, bits 3 and 4 in the instruction data of the EXESUB instruction (EXESUBmn)), 4 data (for example, the EXESUB instruction (EX Bit 0 (δ), bit 1 (γ), bit 2 (β)) in the instruction data of SUBmn), and fifth data (for example, supplementary data (n) in the instruction data of the EXESUB instruction (EXESUBmn)) The instruction data of specific control program data (EXESUB instruction (EXESUBmn)) configured to include at least the second data, the third data, and the fourth data are arranged in order (for example, the address is young) The CPU stores the first instruction (for example, the first address of the subroutine) specified by using the first and third data when the specific control program data is read. And a second instruction (for example, specified by using the second data, the fourth data, and the fifth data) For example, an instruction for specifying the start address of a subroutine to be called) and a specific instruction (for example, EXESUB instruction) specified in (1) during interrupt processing (for example, timer interrupt processing) executed at a predetermined cycle. It can be said that it is a game stand.

なお、前記ROMは、前記第1のデータと前記第2のデータの間、前記第2のデータと前記第3のデータの間および前記第3のデータと前記第4のデータの間のうち少なくともいずれか1つのデータ間に別のデータを含んで構成される前記特定の制御プログラムデータを記憶するものであってもよいが、前記ROMは、前記第1のデータ、前記第2のデータ、前記第3のデータおよび前記第4のデータでのみで構成される前記特定の制御プログラムデータを記憶するものであると、よりアセンブル後の機械語のチェックが簡便になり、コーディングミスを抑制することができる。   The ROM includes at least one of the first data and the second data, the second data and the third data, and the third data and the fourth data. The specific control program data configured to include another data between any one of the data may be stored. However, the ROM stores the first data, the second data, and the data. If the specific control program data composed only of the third data and the fourth data is stored, the machine language after assembly can be checked more easily and coding errors can be suppressed. it can.

また、前記第1のデータ、前記第2のデータ、第3のデータおよび前記第4のデータを合わせたデータ長と、前記第4のデータのデータ長を同一のデータ長(例えば、1バイト(8ビット)長)としてもよい。さらに、前記CPUが一度に読み込むデータのデータ長と前記第4のデータのデータ長を同一のデータ長としても良い。   The data length of the first data, the second data, the third data, and the fourth data is the same as the data length of the fourth data (for example, 1 byte ( (8 bits) long). Furthermore, the data length of the data read by the CPU at the same time may be the same as the data length of the fourth data.

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、プログラムデータおよび一時的なデータを記憶する記憶手段(例えば、ROM306、RAM308(またはROM1306、RAM1308))と、前記記憶手段に記憶されているデータを用いて遊技の進行を中心とした遊技制御を行う主制御部(例えば、主制御部300(または、主制御部1300))と、前記主制御部の遊技制御に基づいて遊技の演出制御を行う副制御部(例えば、第1副制御部400、第2副制御部500(または、第1副制御部1400、第2副制御部1500))と、を備えた遊技台であって、前記主制御部は、第一のビット長(例えば、8ビット長)からなる複数のレジスタ(例えば、Aレジスタ、Fレジスタ、Bレジスタ、Cレジスタ、Dレジスタ、Eレジスタ、Hレジスタ、Lレジスタ、Tレジスタ)を有し、前記第一のビット長の倍のビット長である第二のビット長(例えば、16ビット長)の演算が可能なレジスタの組み合わせである前記複数のレジスタ(例えば、BCレジスタ、DEレジスタ、HLレジスタ)のうちの第一のレジスタと第二のレジスタ(例えば、HレジスタとLレジスタ)に格納された値によって示される前記記憶手段における第一のアドレス(例えば、1750H)、および該第一のアドレスと連続する第二のアドレス(例えば、1751H)に格納された第一の値(例えば、AEH)と第二の値(例えば、19)を、前記複数のレジスタのうちの第三のレジスタ(例えば、Cレジスタ)と第四のレジスタ(例えば、Aレジスタ)にそれぞれ転送する所定の命令(例えば、「INCTENSOU AC,(HL)」命令)を備え、該所定の命令を前記遊技制御(例えば、特別図柄変動時間抽選処理)において実行し、前記第三のレジスタと前記第四のレジスタは、前記第二のビット長の演算が可能なレジスタの組み合わせ(BCレジスタ、DEレジスタ、HLレジスタ)とは異なることを特徴とする遊技台である。なお、「第一のアドレスと連続する第二のアドレス」は第一のアドレスよりも大きなアドレスに限定されず、第一のアドレスよりも小さなアドレスでもよく、先の例では、第一アドレスが1750H、第二アドレスが174FHでもよい。   In addition, the pachinko machine 100 (or slot machine 1100) according to the present embodiment stores storage means (for example, ROM 306, RAM 308 (or ROM 1306, RAM 1308)) for storing program data and temporary data, and storage in the storage means. A main control unit (for example, main control unit 300 (or main control unit 1300)) that performs game control centered on the progress of the game using the stored data, and a game based on the game control of the main control unit A sub-control unit (for example, the first sub-control unit 400 and the second sub-control unit 500 (or the first sub-control unit 1400 and the second sub-control unit 1500)) that performs the production control. The main control unit includes a plurality of registers (for example, an A register, an F register, a B register, etc.) each having a first bit length (for example, 8 bit length). Register, D register, E register, H register, L register, T register), and can calculate a second bit length (for example, 16-bit length) that is double the first bit length. Indicated by a value stored in a first register and a second register (for example, an H register and an L register) of the plurality of registers (for example, a BC register, a DE register, and an HL register). And a first value (for example, AEH) stored in a first address (for example, 1750H) in the storage means and a second address (for example, 1751H) continuous with the first address, and a second The value (for example, 19) is assigned to the third register (for example, C register) and the fourth register (for example, A register) of the plurality of registers. A predetermined instruction (for example, an “INCENSOU AC, (HL)” instruction) to be transferred, and the predetermined instruction is executed in the game control (for example, a special symbol variation time lottery process), and the third register And the fourth register is a gaming machine characterized by being different from a combination of registers capable of calculating the second bit length (BC register, DE register, HL register). The “second address continuous with the first address” is not limited to an address larger than the first address, and may be an address smaller than the first address. In the above example, the first address is 1750H. The second address may be 174FH.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、1回の命令によって、連続して配置されたアドレスに格納された2つのデータを、レジスタペアを構成しない2種類のレジスタに格納することができるため、プログラム容量を削減することができ、遊技性を向上させるためのプログラムに容量を割り当てることができ、遊技の興趣を高めることが可能となる。また、処理時間を短縮でき、安定した遊技制御を行うことができる場合がある。また、プログラム容量を削減することでプログラムが見やすくなり、コーディングミスやバグの発生を抑制できる場合がある。また、第三のレジスタと第四のレジスタとはレジスタペアではないため、16ビット演算処理を行う場合にプログラムを注意して作成することができ、コーディングミスやバグの発生を抑制できる場合がある。   According to the pachinko machine 100 (or the slot machine 1100) according to the present embodiment, two data stored in consecutively arranged addresses are converted into two types of registers that do not constitute a register pair by one instruction. Since the program capacity can be stored, the capacity of the program can be reduced, the capacity can be allocated to the program for improving the game performance, and the fun of the game can be enhanced. Further, there are cases where the processing time can be shortened and stable game control can be performed. In addition, by reducing the program capacity, it becomes easier to see the program, and in some cases, coding errors and bugs can be suppressed. In addition, since the third register and the fourth register are not a register pair, a program can be created with care when performing 16-bit arithmetic processing, and the occurrence of coding errors and bugs may be suppressed. .

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、少なくとも第一から第四のレジスタを備え、上位レジスタおよび下位レジスタからなるレジスタペアを用いた処理を実行可能であるCPUと、遊技制御プログラムを記憶するROMと、を内蔵するマイクロコンピュータを備えた遊技台であって、前記遊技台は、パチンコ機またはスロットマシンであり、前記CPUは、第一の命令と第二の命令を含む複数の命令を実行可能であり、少なくとも前記第一のレジスタと前記第二のレジスタの二つのレジスタの組み合わせは、前記レジスタペアのうちの所定のレジスタペアであり、前記第三のレジスタと前記第四のレジスタの少なくともいずれかは、前記上位レジスタであり、前記第一の命令が実行されたことに基づいて、前記所定のレジスタペアに格納された値によって示される第一のアドレスが示す領域に格納された第一の値が前記第四のレジスタにセットされ、該第一のアドレスと連続する第二のアドレスが示す領域に格納された第二の値が前記第三のレジスタにセットされ、該所定のレジスタペアの値が該第二のアドレスと連続するアドレスを示す値になり、前記第二の命令が実行されたことに基づいて、前記所定のレジスタペアに格納された値によって示される第一のアドレスと連続する第二のアドレスが示す領域に格納された第二の値が前記第四のレジスタにセットされ、該第二のアドレスと連続する第三のアドレスが示す領域に格納された第三の値が前記第三のレジスタにセットされ、該所定のレジスタペアの値が該第三のアドレスを示す値になり、前記CPUは、前記レジスタペアとは異なる前記第三のレジスタと前記第四のレジスタの二つのレジスタの組み合わせに前記ROMに格納された値を一命令でセットすることが可能であるとともに、前記所定のレジスタペアの値を変化させる所定の機能としては、前記第一の命令を受けたことに基づいて値をセットする第一の機能と前記第二の命令を受けたことに基づいて値をセットする第二の機能の二つのみを有することを特徴とする遊技台である。   In addition, the pachinko machine 100 (or slot machine 1100) according to the present embodiment includes at least first to fourth registers, and a CPU that can execute processing using a register pair including an upper register and a lower register, A gaming machine comprising a microcomputer storing a ROM for storing a gaming control program, wherein the gaming machine is a pachinko machine or a slot machine, and the CPU receives a first instruction and a second instruction. A plurality of instructions can be executed, and a combination of at least two of the first register and the second register is a predetermined register pair of the register pair, and the third register and the second register At least one of the fourth registers is the upper register, and is based on execution of the first instruction. A first value stored in an area indicated by a first address indicated by a value stored in the predetermined register pair is set in the fourth register, and the second value is continuous with the first address. The second value stored in the area indicated by the address of the second address is set in the third register, and the value of the predetermined register pair becomes a value indicating an address continuous with the second address, Based on the execution of the instruction, the second value stored in the area indicated by the second address continuous with the first address indicated by the value stored in the predetermined register pair is the fourth value. A third value stored in a region indicated by a third address that is set in the register and indicated by the third address that is continuous with the second address is set in the third register, and a value of the predetermined register pair is set in the third register Indicates address The CPU can set the value stored in the ROM to a combination of two registers of the third register and the fourth register different from the register pair with one instruction. The predetermined function for changing the value of the predetermined register pair is based on receiving the first function and the second instruction for setting a value based on receiving the first instruction. It is a gaming machine having only two of the second functions for setting values.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、レジスタペアよりも汎用性の低い第三のレジスタと第四のレジスタの二つの組み合わせに値を一命令でセットする機能を限定したため、遊技者の利益に係る値を不正に改ざんする不正行為を不正者が行い難くすることができる。また、第一の命令と第二の命令を前後の処理に応じて使い分けることができ、遊技制御プログラムの容量を削減することができる。また、第一の命令と第二の命令とを従来の命令で構成した場合と比較して遊技制御プログラムの容量を削減でき、遊技性を向上させるためのプログラムに容量を割り当てることができ、遊技の興趣を高めることができる。また、第三のレジスタと第四のレジスタはレジスタペアよりも汎用性が低いため、プログラムを注意して作成することができ、コーディングミスやバグの発生を抑制できる。また、命令の実行中に割込み処理が発生し、割込み処理によって命令実行途中のレジスタの値が意図しない値に書き換えられてしまったり、命令の実行が妨げられて処理が遅延してしまうといったことがなく、安定した遊技制御を行うことができる場合がある。   According to the pachinko machine 100 (or slot machine 1100) according to the present embodiment, the function of setting values to two combinations of the third register and the fourth register, which are less versatile than the register pair, is limited by one instruction. For this reason, it is possible to make it difficult for an unauthorized person to perform an unauthorized act of illegally altering a value related to a player's profit. In addition, the first command and the second command can be properly used according to the preceding and subsequent processing, and the capacity of the game control program can be reduced. In addition, the capacity of the game control program can be reduced as compared with the case where the first instruction and the second instruction are configured by conventional instructions, and capacity can be allocated to a program for improving game play. Can enhance the interest of Further, since the third register and the fourth register are less versatile than the register pair, the program can be created with care, and coding errors and bugs can be suppressed. In addition, interrupt processing may occur during execution of an instruction, and the value of a register during instruction execution may be rewritten to an unintended value due to interrupt processing, or execution of the instruction may be hindered and processing may be delayed. In some cases, stable game control can be performed.

また、少なくとも第一から第四のレジスタを備え、上位レジスタおよび下位レジスタからなるレジスタペアを用いた処理を実行可能であるCPUと、遊技制御プログラムを記憶するROMと、を内蔵するマイクロコンピュータを備えた遊技台であって、前記遊技台は、パチンコ機またはスロットマシンであり、前記CPUは、第一の命令と第二の命令を含む複数の命令を実行可能であり、少なくとも前記第一のレジスタと前記第二のレジスタの二つのレジスタの組み合わせは、前記レジスタペアのうちの所定のレジスタペアであり、前記第三のレジスタと前記第四のレジスタの少なくともいずれかは、前記上位レジスタであり、前記第一の命令が実行されたことに基づいて、前記所定のレジスタペアに格納された値によって示される第一のアドレスが示す領域に格納された第一の値が前記第四のレジスタにセットされ、該第一のアドレスと連続する第二のアドレスが示す領域に格納された第二の値が前記第三のレジスタにセットされ、該所定のレジスタペアの値が該第二のアドレスと連続するアドレスを示す値になり、前記第二の命令が実行されたことに基づいて、前記所定のレジスタペアに格納された値によって示される第一のアドレスと連続する第二のアドレスが示す領域に格納された第二の値が前記第四のレジスタにセットされ、該第二のアドレスと連続する第三のアドレスが示す領域に格納された第三の値が前記第三のレジスタにセットされ、該所定のレジスタペアの値が該第三のアドレスを示す値になり、前記CPUは、前記レジスタペアとは異なる前記第三のレジスタと前記第四のレジスタの二つのレジスタの組み合わせに前記ROMに格納された値を一命令でセットすることが可能であるとともに、前記所定のレジスタペアの値を変化させる所定の機能としては、前記第一の命令を受けたことに基づいて値をセットする第一の機能と前記第二の命令を受けたことに基づいて値をセットする第二の機能の二つを少なくとも有し、前記CPUは、少なくとも特定レジスタを備え、前記CPUは、前記特定レジスタに値をセットする機能のうち、ロード命令を受けたことに基づいて行われるものとしては、直値により値をセットする機能のみを有していてもよい。   In addition, a microcomputer including at least first to fourth registers, a CPU capable of executing processing using a register pair including an upper register and a lower register, and a ROM storing a game control program is provided. The gaming machine is a pachinko machine or a slot machine, and the CPU can execute a plurality of instructions including a first instruction and a second instruction, and at least the first register And the combination of the two registers of the second register is a predetermined register pair of the register pair, and at least one of the third register and the fourth register is the upper register, Based on the execution of the first instruction, the first instruction indicated by the value stored in the predetermined register pair. The first value stored in the area indicated by the address is set in the fourth register, and the second value stored in the area indicated by the second address that is continuous with the first address is the third value. Is set in a register, and the value of the predetermined register pair becomes a value indicating an address continuous with the second address, and is stored in the predetermined register pair based on the execution of the second instruction. The second value stored in the area indicated by the second address that is continuous with the first address indicated by the value is set in the fourth register, and the third address that is continuous with the second address is The third value stored in the area indicated is set in the third register, the value of the predetermined register pair becomes the value indicating the third address, and the CPU is different from the register pair. Third register A value stored in the ROM can be set to a combination of two registers of the fourth register with one instruction, and a predetermined function for changing the value of the predetermined register pair includes the first register The CPU has at least two of a first function for setting a value based on receiving one command and a second function for setting a value based on receiving the second command; The CPU has at least a specific register, and among the functions for setting a value in the specific register, the CPU has only a function for setting a value by a direct value as a function that is performed based on receiving a load instruction. It may be.

このような構成とすれば、レジスタペアよりも汎用性の低い第三のレジスタと第四のレジスタの二つの組み合わせに値を一命令でセットする機能を限定したため、遊技者の利益に係る値を不正に改ざんする不正行為を不正者が行い難くすることができる。また、第一の命令と第二の命令を前後の処理に応じて使い分けることができ、遊技制御プログラムの容量を削減することができる。また、第一の命令と第二の命令とを従来の命令で構成した場合と比較して遊技制御プログラムの容量を削減でき、遊技性を向上させるためのプログラムに容量を割り当てることができ、遊技の興趣を高めることができる。また、第三のレジスタと第四のレジスタはレジスタペアよりも汎用性が低いため、プログラムを注意して作成することができ、コーディングミスやバグの発生を抑制できる。また、命令の実行中に割込み処理が発生し、割込み処理によって命令実行途中のレジスタの値が意図しない値に書き換えられてしまったり、命令の実行が妨げられて処理が遅延してしまうといったことがなく、安定した遊技制御を行うことができる。   With such a configuration, the function for setting a value to one combination of the third register and the fourth register, which is less versatile than the register pair, is limited. It is possible to make it difficult for an unauthorized person to perform an unauthorized act of tampering. In addition, the first command and the second command can be properly used according to the preceding and subsequent processing, and the capacity of the game control program can be reduced. In addition, the capacity of the game control program can be reduced as compared with the case where the first instruction and the second instruction are configured by conventional instructions, and capacity can be allocated to a program for improving game play. Can enhance the interest of Further, since the third register and the fourth register are less versatile than the register pair, the program can be created with care, and coding errors and bugs can be suppressed. In addition, interrupt processing may occur during execution of an instruction, and the value of a register during instruction execution may be rewritten to an unintended value due to interrupt processing, or execution of the instruction may be hindered and processing may be delayed. And stable game control can be performed.

また、前記第三のレジスタと前記第四のレジスタの少なくとも何れかは、前記第二のビット長の演算が可能なレジスタの組み合わせを構成してもよい(例えば、Bレジスタは、16ビット長の演算が可能なレジスタペアであるBCレジスタを構成する)。   Further, at least one of the third register and the fourth register may constitute a combination of registers capable of calculating the second bit length (for example, the B register has a 16-bit length). A BC register, which is a register pair that can be operated, is configured).

このような構成とすれば、16ビット演算を行うレジスタペアの一方のレジスタの値を固定にすることができ、所定の命令前に設定した一方のレジスタの値を退避することなく所定の命令後の処理で使用することができプログラム容量を削減することができる場合がある。また、16ビット演算処理を行う場合にプログラムを注意して作成することができ、コーディングミスやバグの発生を抑えることができる場合がある。   With this configuration, the value of one register of a register pair that performs 16-bit arithmetic can be fixed, and the value of one register set before a predetermined instruction can be saved without saving the value of one register. In some cases, the program capacity can be reduced. Also, when performing 16-bit arithmetic processing, a program can be created with care, and in some cases, coding errors and bugs can be suppressed.

また、前記第三のレジスタと前記第四のレジスタの少なくとも何れかは、前記第二のビット長の演算が可能なレジスタの組み合わせの上位レジスタであってもよい(例えば、Bレジスタは、16ビット長の演算が可能なレジスタペアであるBCレジスタの上位レジスタである)。   Further, at least one of the third register and the fourth register may be an upper register of a combination of registers capable of calculating the second bit length (for example, the B register is a 16-bit register). (It is a high-order register of the BC register, which is a register pair capable of long operations).

このような構成とすれば、16ビット演算を行うレジスタペアの上位8ビットの値を変更することができ、レジスタペアで示されるアドレスの上位を変更して所定の命令後の処理で使用することができる場合がある。例えば、第三のレジスタと第四のレジスタの各々を違う処理に利用(例えば、一方をINCTENSOU命令で利用し、他方をループ処理の回数をカウントするためのカウンタとして利用)することができ、数の限られたレジスタを有効に活用することができる。また、16ビット演算処理を行う場合にプログラムを注意して作成することができ、コーディングミスやバグの発生を抑えることができる場合がある。   With such a configuration, the value of the upper 8 bits of the register pair that performs 16-bit arithmetic can be changed, and the upper part of the address indicated by the register pair can be changed and used in processing after a predetermined instruction. May be possible. For example, each of the third register and the fourth register can be used for different processing (for example, one is used by the INCENSOU instruction and the other is used as a counter for counting the number of loop processes). It is possible to effectively use the limited registers. Also, when performing 16-bit arithmetic processing, a program can be created with care, and in some cases, coding errors and bugs can be suppressed.

また、前記所定の命令は、前記第一のレジスタと前記第二のレジスタのうちの下位レジスタの値に所定値加算する処理(例えば、HLレジスタに2を加算する処理)を含んでいてもよい。   The predetermined instruction may include a process of adding a predetermined value to a value of a lower register of the first register and the second register (for example, a process of adding 2 to the HL register). .

このような構成とすれば、所定の命令終了後に所定のアドレスから所定値加算されたアドレスの値をレジスタに設定した状態で次の処理を行うことができ、例えば、アドレスを1加算する命令を所定値回実行するようなプログラムに比べ、プログラム容量を削減できる場合がある。   With such a configuration, the following processing can be performed in a state in which the value of an address obtained by adding a predetermined value from a predetermined address is set in a register after the completion of the predetermined instruction. In some cases, the program capacity can be reduced compared to a program that is executed a predetermined number of times.

また、前記第一のアドレスは、前記所定の命令を実行する前の前記第一のレジスタと前記第二のレジスタに格納された値によって示されるアドレス(例えば、174FH)の次のアドレス(例えば、1750H)であってもよい。   The first address is an address next to an address (for example, 174FH) (for example, 174FH) indicated by values stored in the first register and the second register before the predetermined instruction is executed. 1750H).

このような構成とすれば、繰り返し処理の際に最初にアドレスを指定することができ、繰り返し処理を抜けた際には所定の命令前のアドレスから所定値加算されたアドレスの値をレジスタに設定した状態で次の処理を行うことができる。特に、2種類のデータを交互に記憶したデータテーブルを利用する場合には、データテーブルから所望のデータを素早く読みだすことが可能となる。   With such a configuration, the address can be specified first in the repetition process, and when the repetition process is finished, the address value obtained by adding a predetermined value from the address before the predetermined instruction is set in the register. The following processing can be performed in this state. In particular, when using a data table in which two types of data are alternately stored, desired data can be quickly read from the data table.

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、プログラムデータおよび一時的なデータを記憶する記憶手段(例えば、ROM306、RAM308(またはROM1306、RAM1308))と、前記記憶手段に記憶されているデータを用いて遊技の進行を中心とした遊技制御を行う主制御部(例えば、主制御部300(または、主制御部1300))と、前記主制御部の遊技制御に基づいて遊技の演出制御を行う副制御部(例えば、第1副制御部400、第2副制御部500(または、第1副制御部1400、第2副制御部1500))と、を備えた遊技台であって、前記主制御部は、第一のビット長(例えば、8ビット長)の値を記憶可能な第一のレジスタ(例えば、Cレジスタ)および前記第一のビット長の整数倍の第二のビット長(例えば、16ビット長)の値を記憶可能な第二のレジスタ(例えば、HLレジスタ)を含む複数のレジスタ(例えば、BCレジスタ、DEレジスタ、HLレジスタ)を有し、前記第二のレジスタの値に前記第一のレジスタの値を加算して前記第二のレジスタに格納する所定の命令(例えば、「ADDTWOONE HL,C」命令)を備え、該所定の命令を前記遊技制御(例えば、特別図柄変動時間抽選処理)において実行することを特徴とする遊技台である。なお、第二のレジスタは、第一のビット長の整数倍の第二のビット長の値を記憶可能であればよく、例えば、第一のレジスタのビット長が4ビットである場合には4の倍数(4、8、12、…)をビット長とするレジスタでもよく、第一のレジスタのビット長が16ビットである場合には16の倍数(16、32、64、…)をビット長とするレジスタでもよい。   In addition, the pachinko machine 100 (or slot machine 1100) according to the present embodiment stores storage means (for example, ROM 306, RAM 308 (or ROM 1306, RAM 1308)) for storing program data and temporary data, and storage in the storage means. A main control unit (for example, main control unit 300 (or main control unit 1300)) that performs game control centered on the progress of the game using the stored data, and a game based on the game control of the main control unit A sub-control unit (for example, the first sub-control unit 400 and the second sub-control unit 500 (or the first sub-control unit 1400 and the second sub-control unit 1500)) that performs the production control. The main control unit includes a first register (for example, C register) capable of storing a value of a first bit length (for example, 8-bit length) and the first A plurality of registers (for example, BC register, DE register, HL) including a second register (for example, HL register) capable of storing a value of a second bit length (for example, 16-bit length) that is an integral multiple of the bit length A predetermined instruction (for example, “ADDTWOONE HL, C” instruction) that adds the value of the first register to the value of the second register and stores the value in the second register, The gaming machine is characterized in that the predetermined command is executed in the game control (for example, special symbol variation time lottery processing). The second register only needs to be able to store a value of the second bit length that is an integral multiple of the first bit length. For example, when the bit length of the first register is 4 bits, the second register is 4 bits. May be a register whose bit length is a multiple of (4, 8, 12,...), And when the bit length of the first register is 16 bits, a multiple of 16 (16, 32, 64,...) Is a bit length. A register may be used.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、桁上がり処理を別途行う必要がないため、プログラム容量を削減することができ、遊技性を向上させるためのプログラムに容量を割り当てることができ、遊技の興趣を高めることが可能となる。また、処理時間を短縮でき、安定した遊技制御を行うことができる場合がある。また、プログラム容量を削減することでプログラムが見やすくなり、コーディングミスやバグの発生を抑制できる場合がある。さらに、ビット長が異なるレジスタ同士の加算演算を行うことができるため、例えば、従来は16ビット長のレジスタペアを2つ使用して行っていた加算演算を、16ビット長のレジスタペアと8ビット長のレジスタで行うことができる場合があり、数の限られたレジスタを有効に活用することができる。   According to the pachinko machine 100 (or the slot machine 1100) according to the present embodiment, it is not necessary to carry out a carry process separately, so that the program capacity can be reduced and a capacity is allocated to a program for improving game playability. It is possible to enhance the interest of the game. Further, there are cases where the processing time can be shortened and stable game control can be performed. In addition, by reducing the program capacity, it becomes easier to see the program, and in some cases, coding errors and bugs can be suppressed. Furthermore, since addition operations between registers having different bit lengths can be performed, for example, an addition operation that has conventionally been performed using two 16-bit register pairs can be performed with a 16-bit register pair and an 8-bit register. In some cases, a long register can be used, and a limited number of registers can be used effectively.

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、8ビット長の値を記憶可能な第一から第三のレジスタを少なくとも備えるCPUを備え、前記CPUは、16ビット長の値を記憶可能な第四のレジスタを少なくとも備え、前記CPUは、前記第一のレジスタおよび前記第二のレジスタからなるレジスタペアを用いた処理を実行可能であり、前記CPUを内蔵するマイクロコンピュータを備えた遊技台であって、前記遊技台は、パチンコ機またはスロットマシンであり、前記CPUは、前記第四のレジスタの値に前記第三のレジスタの値を加算して該第四のレジスタに加算結果をセットすることが可能な第一の命令を実行可能であり、前記第一の命令は、前記レジスタペアの値に前記第三のレジスタの値を加算して該レジスタペアに加算結果をセットすることが可能であり、前記CPUは、前記レジスタペアの値から前記第三のレジスタの値を減算して該レジスタペアに減算結果をセットする第二の命令を実行可能であり、前記CPUにおける前記16ビット長の前記レジスタペアに対して前記8ビット長の値を加減算する機能は、前記第一の命令および前記第二の命令の両方によって実現されるが、前記CPUにおける前記16ビット長の前記第四のレジスタに対して前記8ビット長の値を加減算する機能は、前記第一の命令によってのみ実現されることを特徴とする遊技台である。   Further, the pachinko machine 100 (or slot machine 1100) according to the present embodiment includes a CPU including at least first to third registers capable of storing an 8-bit value, and the CPU has a 16-bit value. At least a fourth register, and the CPU is capable of executing a process using a register pair including the first register and the second register, and includes a microcomputer incorporating the CPU. The gaming machine is a pachinko machine or a slot machine, and the CPU adds the value of the third register to the value of the fourth register and adds the value to the fourth register. A first instruction capable of setting a result is executable, wherein the first instruction adds the value of the third register to the value of the register pair; The CPU can set the addition result to the register pair, and the CPU can subtract the value of the third register from the value of the register pair and set the subtraction result to the register pair. The function of adding / subtracting the 8-bit value to / from the 16-bit register pair in the CPU is realized by both the first instruction and the second instruction. The function of adding / subtracting the value of the 8-bit length to / from the fourth register of the 16-bit length in the CPU is realized only by the first instruction.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、ビット長が異なるレジスタの値同士の加減算を行うことができるため、例えば、従来は16ビット長のレジスタペアを2つ使用して行っていた加減算を、16ビット長のレジスタペアと8ビット長のレジスタで行うことができる場合があり、数の限られたレジスタを有効に活用することができる。しかも、レジスタの値同士で加減算を行うため、RAMなどを用いた場合に比べて加減算の処理時間を短縮でき、安定した遊技制御を行うことができる。また、第四のレジスタを用いた加減算を第一の命令のみで実行可能に構成することにより、遊技者の利益に係る値を不正に改ざんする不正行為(例えば、レジスタペアに対して有利な数値を加算するような命令を不正に埋め込むような行為)を不正者が行い難くすることができる。また、第一の命令と第二の命令とを従来の命令で構成した場合と比較して遊技制御プログラムの容量を削減できるため、遊技性を向上させるためのプログラムに容量を割り当てることができ、遊技の興趣を高めることができる場合がある。   According to the pachinko machine 100 (or the slot machine 1100) according to the present embodiment, values of registers having different bit lengths can be added and subtracted. For example, conventionally, two 16-bit register pairs are used. In some cases, the addition and subtraction performed can be performed with a 16-bit register pair and an 8-bit register, and a limited number of registers can be used effectively. In addition, since addition / subtraction is performed between register values, the processing time for addition / subtraction can be shortened compared to the case of using RAM or the like, and stable game control can be performed. In addition, by configuring such that addition / subtraction using the fourth register can be executed only by the first instruction, a fraudulent act of illegally tampering with the value related to the player's profit (for example, a numerical value advantageous to a register pair) It is possible to make it difficult for an unauthorized person to perform an act of improperly embedding an instruction to add the. In addition, since the capacity of the game control program can be reduced compared to the case where the first instruction and the second instruction are configured with conventional instructions, capacity can be allocated to a program for improving game play, There are cases where the interest of the game can be enhanced.

また、少なくとも第一から第四のレジスタを備え、上位レジスタおよび下位レジスタからなるレジスタペアを用いた処理を実行可能であるCPUと、遊技制御プログラムを記憶するROMと、を内蔵するマイクロコンピュータを備えた遊技台であって、前記遊技台は、パチンコ機またはスロットマシンであり、前記CPUは、第一の命令と第二の命令を含む複数の命令を実行可能であり、少なくとも前記第一のレジスタと前記第二のレジスタの二つのレジスタの組み合わせは、前記レジスタペアのうちの所定のレジスタペアであり、前記第三のレジスタと前記第四のレジスタの少なくともいずれかは、前記上位レジスタであり、前記第一の命令が実行されたことに基づいて、前記所定のレジスタペアに格納された値によって示される第一のアドレスが示す領域に格納された第一の値が前記第四のレジスタにセットされ、該第一のアドレスと連続する第二のアドレスが示す領域に格納された第二の値が前記第三のレジスタにセットされ、該所定のレジスタペアの値が該第二のアドレスと連続するアドレスを示す値になり、前記第二の命令が実行されたことに基づいて、前記所定のレジスタペアに格納された値によって示される第一のアドレスと連続する第二のアドレスが示す領域に格納された第二の値が前記第四のレジスタにセットされ、該第二のアドレスと連続する第三のアドレスが示す領域に格納された第三の値が前記第三のレジスタにセットされ、該所定のレジスタペアの値が該第三のアドレスを示す値になり、前記CPUは、前記レジスタペアとは異なる前記第三のレジスタと前記第四のレジスタの二つのレジスタの組み合わせに前記ROMに格納された値を一命令でセットすることが可能であるとともに、前記所定のレジスタペアの値を変化させる所定の機能としては、前記第一の命令を受けたことに基づいて値をセットする第一の機能と前記第二の命令を受けたことに基づいて値をセットする第二の機能の二つを少なくとも有し、前記CPUは、少なくとも特定レジスタを備え、前記CPUは、前記特定レジスタに値をセットする機能のうち、ロード命令を受けたことに基づいて行われるものとしては、直値により値をセットする機能のみを有していてもよい。   In addition, a microcomputer including at least first to fourth registers, a CPU capable of executing processing using a register pair including an upper register and a lower register, and a ROM storing a game control program is provided. The gaming machine is a pachinko machine or a slot machine, and the CPU can execute a plurality of instructions including a first instruction and a second instruction, and at least the first register And the combination of the two registers of the second register is a predetermined register pair of the register pair, and at least one of the third register and the fourth register is the upper register, Based on the execution of the first instruction, the first instruction indicated by the value stored in the predetermined register pair. The first value stored in the area indicated by the address is set in the fourth register, and the second value stored in the area indicated by the second address that is continuous with the first address is the third value. Is set in a register, and the value of the predetermined register pair becomes a value indicating an address continuous with the second address, and is stored in the predetermined register pair based on the execution of the second instruction. The second value stored in the area indicated by the second address that is continuous with the first address indicated by the value is set in the fourth register, and the third address that is continuous with the second address is The third value stored in the area indicated is set in the third register, the value of the predetermined register pair becomes the value indicating the third address, and the CPU is different from the register pair. Third register A value stored in the ROM can be set to a combination of two registers of the fourth register with one instruction, and a predetermined function for changing the value of the predetermined register pair includes the first register The CPU has at least two of a first function for setting a value based on receiving one command and a second function for setting a value based on receiving the second command; The CPU has at least a specific register, and among the functions for setting a value in the specific register, the CPU has only a function for setting a value by a direct value as a function that is performed based on receiving a load instruction. It may be.

このような構成とすれば、レジスタペアよりも汎用性の低い第三のレジスタと第四のレジスタの二つの組み合わせに値を一命令でセットする機能を限定したため、遊技者の利益に係る値を不正に改ざんする不正行為を不正者が行い難くすることができる。また、第一の命令と第二の命令を前後の処理に応じて使い分けることができ、遊技制御プログラムの容量を削減することができる。また、第一の命令と第二の命令とを従来の命令で構成した場合と比較して遊技制御プログラムの容量を削減でき、遊技性を向上させるためのプログラムに容量を割り当てることができ、遊技の興趣を高めることができる。また、第三のレジスタと第四のレジスタはレジスタペアよりも汎用性が低いため、プログラムを注意して作成することができ、コーディングミスやバグの発生を抑制できる。また、命令の実行中に割込み処理が発生し、割込み処理によって命令実行途中のレジスタの値が意図しない値に書き換えられてしまったり、命令の実行が妨げられて処理が遅延してしまうといったことがなく、安定した遊技制御を行うことができる。   With such a configuration, the function for setting a value to one combination of the third register and the fourth register, which is less versatile than the register pair, is limited. It is possible to make it difficult for an unauthorized person to perform an unauthorized act of tampering. In addition, the first command and the second command can be properly used according to the preceding and subsequent processing, and the capacity of the game control program can be reduced. In addition, the capacity of the game control program can be reduced as compared with the case where the first instruction and the second instruction are configured by conventional instructions, and capacity can be allocated to a program for improving game play. Can enhance the interest of Further, since the third register and the fourth register are less versatile than the register pair, the program can be created with care, and coding errors and bugs can be suppressed. In addition, interrupt processing may occur during execution of an instruction, and the value of a register during instruction execution may be rewritten to an unintended value due to interrupt processing, or execution of the instruction may be hindered and processing may be delayed. And stable game control can be performed.

また、前記第一のレジスタ(例えば、Cレジスタ)は、第二のビット長の演算が可能な   In addition, the first register (for example, the C register) is capable of calculating a second bit length.

レジスタ(例えば、BCレジスタ)の組み合わせの下位レジスタであってもよい。 It may be a lower register of a combination of registers (for example, BC register).

このような構成とすれば、レジスタペアの上位8ビットの値を固定にすることができ、16ビット演算処理を行う場合にプログラムを注意して作成することができ、コーディングミスやバグの発生を抑制できる場合がある。また、レジスタペアの上位レジスタと下位レジスタの各々を違う処理に利用(例えば、一方をADDTWOONE命令で利用し、他方をループ処理の回数をカウントするためのカウンタとして利用)することができ、数の限られたレジスタを有効に活用することができる。   With such a configuration, the value of the upper 8 bits of the register pair can be fixed, and a program can be created with care when performing 16-bit arithmetic processing, which can lead to coding errors and bugs. In some cases, it can be suppressed. In addition, each of the upper register and the lower register of the register pair can be used for different processing (for example, one is used by the ADDTWOONE instruction and the other is used as a counter for counting the number of loop processes). Limited registers can be used effectively.

また、前記主制御部は、前記第二のレジスタ(例えば、HLレジスタ)に格納された値によって示される所定のアドレスに基づく連続する2つのアドレスに格納された第一の値と第二の値を、前記複数のレジスタのうちの前記第一のレジスタ(例えば、Cレジスタ)と第三のレジスタ(例えば、Bレジスタ)にそれぞれ転送する所定の第二の命令(例えば、「INCTENSOU BC,(HL)」命令)を備え、該所定の第二の命令を実行した後、前記所定の命令を行ってもよい。   In addition, the main control unit includes a first value and a second value stored at two consecutive addresses based on a predetermined address indicated by a value stored in the second register (for example, an HL register). Are transferred to the first register (for example, C register) and the third register (for example, B register) of the plurality of registers, respectively, for example, a predetermined second instruction (for example, “INCTENSOU BC, (HL ) "Instruction), and after executing the predetermined second instruction, the predetermined instruction may be executed.

このような構成とすれば、連続する2つのアドレスに格納された値の何れかを第一レジスタに加算することで、所定のアドレスに関連したアドレスを示す値を第一レジスタに設定した状態で次の処理を行うことができ、プログラム容量を削減できる場合がある。   With such a configuration, one of the values stored in two consecutive addresses is added to the first register, and a value indicating an address related to a predetermined address is set in the first register. The following processing can be performed, and the program capacity may be reduced.

また、前記主制御部は、前記所定の第二の命令を実行した後に所定の判定処理(例えば、上記ステップS1110〜S1111に示すような、Bレジスタ(第三のレジスタ)から特定の値(RAMの所定記憶領域に記憶された値など)を減算してキャリーが発生するか否かを判定する処理)を行い、該所定の判定処理の結果が所定の値のときに(例えば、キャリーが発生したときに)前記所定の命令を行ってもよい。   Further, the main control unit executes a predetermined determination process (for example, as shown in steps S <b> 1110 to S <b> 1111) from a B register (third register) after executing the predetermined second instruction. The value stored in the predetermined storage area) is subtracted to determine whether or not carry occurs, and the result of the predetermined determination process is a predetermined value (for example, carry occurs) The predetermined command may be performed.

このような構成とすれば、所定の判定処理の結果が所定の値のときに、所定のアドレスに関連したアドレスを示す値を第一レジスタに設定した状態で次の処理を行うことができ、プログラム容量を削減できる場合がある。   With such a configuration, when the result of the predetermined determination process is a predetermined value, the next process can be performed in a state in which a value indicating an address related to the predetermined address is set in the first register, The program capacity may be reduced.

また、前記主制御部は、前記所定の命令を行った後、再度前記所定の第二の命令と前記所定の判定処理を実行してもよい(例えば、上記ステップS1109でINCTENSOU命令を実行し、上記ステップS1112でADDTWOONE命令を実行した後に、上記ステップS1114でINCTENSOU命令を再度実行し、上記ステップS1116でBレジスタから特定の値を減算してキャリーが発生するか否かを判定する)。   Further, the main control unit may execute the predetermined second instruction and the predetermined determination process again after executing the predetermined instruction (for example, executing the INCENSOOU instruction in step S1109, After the ADDTWOONE instruction is executed in step S1112, the INCENSOU instruction is executed again in step S1114, and a specific value is subtracted from the B register in step S1116 to determine whether or not a carry occurs.

このような構成とすれば、例えば、2段階抽選の2回目のテーブルアドレスを設定することができ、2段階抽選のプログラムを見やすく作ることができ、コーディングミスやバグの発生を抑制できる場合がある。   With such a configuration, for example, the second table address of the two-stage lottery can be set, the program of the two-stage lottery can be made easy to see, and the occurrence of coding errors and bugs can be suppressed in some cases. .

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、遊技制御を行うCPUを有する主制御部(例えば、主制御部300(または、主制御部1300))と、前記主制御部の遊技制御に基づいて遊技の演出制御を行う副制御部(例えば、第1副制御部400、第2副制御部500(または、第1副制御部1400、第2副制御部1500))と、を備えた遊技台であって、前記CPUは、所定のフラグ(例えば、Zフラグ、SZフラグ)を備え、前記主制御部は、第一の処理と第二の処理の間に実行される処理であって、前記第一の処理において第一の内容であった前記フラグの内容を、前記第二の処理の開始前に第二の内容に変化させる第三の処理を実行し、前記第二の処理は、前記第三の処理の実行結果が所定の結果である場合に行われる処理であって、前記第二の内容に変化した前記フラグを参照しない処理(例えば、CPRT命令、CPJR命令)であることを特徴とする遊技台である。   Further, the pachinko machine 100 (or slot machine 1100) according to the present embodiment includes a main control unit (for example, the main control unit 300 (or the main control unit 1300)) having a CPU for performing game control, and the main control unit. A sub-control unit (for example, the first sub-control unit 400, the second sub-control unit 500 (or the first sub-control unit 1400, the second sub-control unit 1500)) that controls the production of the game based on the game control The CPU includes a predetermined flag (for example, Z flag, SZ flag), and the main control unit is executed between the first process and the second process. A third process for changing the content of the flag, which was the first content in the first process, to the second content before the start of the second process, The second process is the result of the execution of the third process. A process performed when the result of the second does not refer to the flag changes to the content process (e.g., CPRT instruction, CPJR instruction) is a gaming table which is a.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、フラグの内容の変化とプログラムの実行の流れの関連性を無くすことができ、プログラムの解析を困難とし、不正なプログラムの改ざんを未然に防止できる場合がある。このため、安定した遊技制御をおこなうことができ、遊技の公平性を担保することができる場合がある。   According to the pachinko machine 100 (or the slot machine 1100) according to the present embodiment, it is possible to eliminate the relationship between the change in the flag contents and the flow of program execution, making it difficult to analyze the program and altering the illegal program. Can be prevented in advance. For this reason, stable game control can be performed and the fairness of the game can be ensured.

また、前記第三の処理は、前記第一の内容であった前記フラグを参照しない処理であってもよい。   The third process may be a process that does not refer to the flag that is the first content.

このような構成とすれば、フラグの内容の変化とプログラムの実行の流れの関連性を無くすことができ、プログラムの解析を困難とし、不正なプログラムの改ざんを未然に防止できる場合がある。このため、安定した遊技制御をおこなうことができ、遊技の公平性を担保することができる場合がある。   With such a configuration, it is possible to eliminate the relationship between the change in the flag contents and the flow of program execution, making it difficult to analyze the program and preventing unauthorized alteration of the program in some cases. For this reason, stable game control can be performed and the fairness of the game can be ensured.

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、遊技制御を行うCPUを有する主制御部(例えば、主制御部300(または、主制御部1300))と、前記主制御部の遊技制御に基づいて遊技の演出制御を行う副制御部(例えば、第1副制御部400、第2副制御部500(または、第1副制御部1400、第2副制御部1500))と、を備えた遊技台であって、前記CPUは、記憶手段(例えば、ROM306、RAM308、レジスタ、プログラムカウンタ)の所定領域へのアクセスが規制された命令(例えば、RES命令、RST命令)を備え、前記命令を前記遊技制御において実行することを特徴とする遊技台である。   Further, the pachinko machine 100 (or slot machine 1100) according to the present embodiment includes a main control unit (for example, the main control unit 300 (or the main control unit 1300)) having a CPU for performing game control, and the main control unit. A sub-control unit (for example, the first sub-control unit 400, the second sub-control unit 500 (or the first sub-control unit 1400, the second sub-control unit 1500)) that controls the production of the game based on the game control The CPU includes instructions (for example, RES instruction, RST instruction) in which access to a predetermined area of storage means (for example, ROM 306, RAM 308, register, program counter) is restricted. The gaming machine is characterized in that the command is executed in the game control.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、所定領域のアクセスを禁止することができるため、所定領域を保護することができ、所定領域の内容が予期しない数値に変化して不具合を起こすような事態を未然に防止できる場合がある。   According to the pachinko machine 100 (or the slot machine 1100) according to the present embodiment, since access to a predetermined area can be prohibited, the predetermined area can be protected, and the content of the predetermined area changes to an unexpected value. In some cases, it may be possible to prevent such a situation from occurring.

また、前記命令は、前記所定領域を除いた領域のうち予め定められた特定領域へのアクセスが可能な命令であってもよい。   The instruction may be an instruction that can access a predetermined specific area among the areas excluding the predetermined area.

このような構成とすれば、所定領域のアクセスを禁止しつつ、同時に特定領域の内容を読み書きすることができるため、所定領域の内容を保護することができるとともに、プログラム設計の自由度を低下させることがない。   With such a configuration, it is possible to read and write the contents of the specific area at the same time while prohibiting access to the predetermined area, so that the contents of the predetermined area can be protected and the degree of freedom in program design is reduced. There is nothing.

また、前記CPUは、前記所定領域へのアクセスが可能な命令をさらに備えてもよい。このような構成とすれば、所定領域のアクセスを禁止しつつ、同時に特定領域の内容を読み書きすることができるため、所定領域の内容を保護することができるとともに、プログラム設計の自由度を低下させることがない。   The CPU may further include an instruction capable of accessing the predetermined area. With such a configuration, it is possible to read and write the contents of the specific area at the same time while prohibiting access to the predetermined area, so that the contents of the predetermined area can be protected and the degree of freedom in program design is reduced. There is nothing.

また、前記命令を、前記記憶手段の所定領域にジャンプすることができないように構成すれば、不正プログラムを組み込んでユーザプログラムの先頭アドレスにジャンプさせる(ユーザプログラムを先頭アドレスから開始させて不正に初期状態とする)ような行為を未然に防止できる場合がある。   Further, if the instruction is configured not to be able to jump to a predetermined area of the storage means, a malicious program is incorporated and jumped to the top address of the user program (the user program is started from the top address and illegally initialized). In some cases, it is possible to prevent such actions.

なお、本発明に係る遊技台は、上述のパチンコ機100やスロットマシン1100に限定されない。したがって、例えば、上記実施形態では、リトルエンディアンのCPUの例を示したが、ビッグエンディアンのCPUに適用することもできる。また、8ビットCPUに限定されず、16ビットCPU、32ビットCPU等にも適用できる。また、命令の名称は上記実施形態で示した名称に限定されるものではない。   The game machine according to the present invention is not limited to the pachinko machine 100 and the slot machine 1100 described above. Therefore, for example, in the above-described embodiment, an example of a little endian CPU is shown, but the present invention can also be applied to a big endian CPU. Further, the present invention is not limited to an 8-bit CPU, and can be applied to a 16-bit CPU, a 32-bit CPU, and the like. Further, the name of the instruction is not limited to the name shown in the above embodiment.

また、主制御部300のCPU304(または、主制御部1300のCPU1304)に適用した例を示したが、他の制御部のCPUに適用してもよい。また、記憶手段は、ROM、RAMに限定されず、他の記憶手段を適用してもよい。   Moreover, although the example applied to CPU304 of the main control part 300 (or CPU1304 of the main control part 1300) was shown, you may apply to CPU of another control part. Further, the storage means is not limited to ROM and RAM, and other storage means may be applied.

また、図145(a)に示す、「紙幣投入口20002に紙幣を投入し、ベット20004およびスタート20006操作に基づいて抽選を実行し、抽選結果を抽選結果表示装置20008で表示し、当選時には特典コイン数を残クレジット数に加算し、キャッシュアウト20009が選択された場合には、レシート発行機20010から残クレジット数に対応するコードが記載されたレシートを発行するカジノマシン20000」に本発明を適用してもよい。また、アレンジボール遊技機や、じゃん球遊技機、スマートボール等に適当してもよい。   In addition, as shown in FIG. 145 (a), “a bill is inserted into the bill insertion slot 20002 and a lottery is executed based on the bet 20004 and start operation 20006, and the lottery result is displayed on the lottery result display device 20008. When the number of coins is added to the number of remaining credits and cashout 20009 is selected, the present invention is applied to a casino machine 20000 that issues a receipt in which a code corresponding to the number of remaining credits is issued from the receipt issuing machine 20010 May be. Further, it may be suitable for an arrange ball game machine, a ball ball game machine, a smart ball, or the like.

また、同図(b)に示すように、本発明の構成を含む制御部を備えている携帯電話機20100、同図(c)に示すように、本発明の構成を含む制御部を備えているポータブルゲーム機20200、本発明の構成を含む制御部を備えている家庭用テレビゲーム機20300、に本発明を適用してもよい。   Further, as shown in FIG. 5B, a mobile phone 20100 having a control unit including the configuration of the present invention is provided, and as shown in FIG. 5C, a control unit including the configuration of the present invention is provided. The present invention may be applied to a portable game machine 20200 and a home video game machine 20300 provided with a control unit including the configuration of the present invention.

より具体的には、同図(b)における携帯電話機20100は、遊技者によって操作される操作部と、ゲームに関するデータを携帯電話回線を通して取得するデータ取得部と、取得したゲームに関するデータを記憶する記憶部と、記憶部に記憶したデータと操作部の操作とに基づいてゲームの制御を行う、本発明の構成を含む制御部と、を備えている。   More specifically, the cellular phone 20100 in FIG. 5B stores an operation unit operated by the player, a data acquisition unit that acquires data related to the game through a mobile phone line, and the acquired data related to the game. A storage unit, and a control unit including the configuration of the present invention, which controls the game based on the data stored in the storage unit and the operation of the operation unit.

また、同図(c)におけるポータブルゲーム機20200は、遊技者によって操作される操作部と、ゲームに関するデータを所定の記憶媒体(DVD等)から取得するデータ取得部と、取得したゲームに関するデータを記憶する記憶部と、記憶部に記憶したデータと操作部の操作とに基づいてゲームの制御を行う、本発明の構成を含む制御部と、を備えている。   Further, the portable game machine 20200 in FIG. 10C includes an operation unit operated by the player, a data acquisition unit that acquires data related to the game from a predetermined storage medium (DVD or the like), and the acquired data related to the game. And a control unit including the configuration of the present invention that controls the game based on the data stored in the storage unit and the operation of the operation unit.

また、同図(c)における家庭用テレビゲーム機20300は、遊技者によって操作される操作部と、ゲームに関するデータを所定の記憶媒体(DVD等)から取得するデータ取得部と、取得したゲームに関するデータを記憶する記憶部と、記憶部に記憶したデータと操作部の操作とに基づいてゲームの制御を行う、本発明の構成を含む制御部を備えている。   Further, the home video game machine 20300 in FIG. 5C is related to an operation unit operated by a player, a data acquisition unit that acquires data related to the game from a predetermined storage medium (DVD or the like), and the acquired game. A storage unit that stores data, and a control unit including the configuration of the present invention that controls the game based on the data stored in the storage unit and the operation of the operation unit are provided.

さらには、同図(d)に示すように、本発明の構成を含む制御部を備えるデータサーバ20400に適用してもよい。このデータサーバ20400からインターネット回線を介して同図(d)に示す家庭用テレビゲーム機20300に本発明の構成を含むプログラムコードをダウンロードするような場合がある。また、パチンコ機等の実機の動作を家庭用ゲーム機用として擬似的に実行するようなゲームプログラムにおいても、本発明を適用することができる。   Furthermore, as shown in FIG. 4D, the present invention may be applied to a data server 20400 including a control unit including the configuration of the present invention. In some cases, the program code including the configuration of the present invention is downloaded from the data server 20400 to the home video game machine 20300 shown in FIG. The present invention can also be applied to a game program in which the operation of a real machine such as a pachinko machine is simulated for a home game machine.

また、本発明に係る遊技台は、封入式遊技機に適用することもできる。また、主制御部、第1副制御部、および第2副制御部をワンチップで構成してもよいし、主制御部と第1副制御部で双方向の通信が可能に構成してもよい。また、主制御部と第1副制御部で双方向の通信を可能とする一方で、第1副制御部から第2副制御部への通信は一方向の通信としてもよい。
<実施形態4>
In addition, the gaming machine according to the present invention can be applied to an enclosed gaming machine. In addition, the main control unit, the first sub control unit, and the second sub control unit may be configured as a single chip, or the main control unit and the first sub control unit may be configured to allow bidirectional communication. Good. Moreover, while enabling bidirectional communication between the main control unit and the first sub control unit, communication from the first sub control unit to the second sub control unit may be one-way communication.
<Embodiment 4>

次に、図面を用いて、本発明の実施形態4に係るパチンコ機について詳細に説明する。
<主制御部の基本回路の構成例>
Next, a pachinko machine according to Embodiment 4 of the present invention will be described in detail with reference to the drawings.
<Example of basic circuit configuration of main controller>

次に、図146を用いて、主制御部300の基本回路302の構成例について説明する。同図は、マイクロプロセッサ3000を用いた場合の基本回路302の一構成例を示す図である。   Next, a configuration example of the basic circuit 302 of the main control unit 300 will be described with reference to FIG. This figure is a diagram showing an example of the configuration of the basic circuit 302 when the microprocessor 3000 is used.

図146に示すマイクロプロセッサ3000には、本発明にいう電気的制御手段の一例に相当し、図75に示す基本回路302の機能と、図75に示す乱数生成回路318の機能を有するものである。なお、図146では、図75に示す構成に対応する部分を、図75で用いた符号と同じ符号を付して説明する。   The microprocessor 3000 shown in FIG. 146 corresponds to an example of the electrical control means according to the present invention, and has the function of the basic circuit 302 shown in FIG. 75 and the function of the random number generation circuit 318 shown in FIG. . In FIG. 146, portions corresponding to the configuration shown in FIG. 75 will be described with the same reference numerals used in FIG.

図146に示すマイクロプロセッサ3000には、CPU304、ROM(内蔵ROM)306、RAM(内蔵RAM)308、外部バス制御回路3110、パラレル入力ポート3102、アドレスデコード回路3103、タイマ回路311、カウンタ回路312、リセット制御回路314に加え、割込み制御回路3100、クロック回路3200、乱数生成回路318が備えられており、これら全てが内部バス3300を介して互いに接続されている。内蔵ROM306は、記憶部の一例に相当する。なお、外部バス制御回路3110、パラレル入力ポート3102、アドレスデコード回路3103の3つが、図75のI/O310に相当するものである。   A microprocessor 3000 shown in FIG. 146 includes a CPU 304, a ROM (built-in ROM) 306, a RAM (built-in RAM) 308, an external bus control circuit 3110, a parallel input port 3102, an address decoding circuit 3103, a timer circuit 311, a counter circuit 312, In addition to the reset control circuit 314, an interrupt control circuit 3100, a clock circuit 3200, and a random number generation circuit 318 are provided, all of which are connected to each other via an internal bus 3300. The built-in ROM 306 corresponds to an example of a storage unit. The external bus control circuit 3110, the parallel input port 3102, and the address decode circuit 3103 correspond to the I / O 310 in FIG.

以下、上記説明した各部の詳細について説明する。まず、CPU304、ROM306、RAM308については、図75にて説明した通りである。外部バス制御回路3110は、IOリクエスト端子(XIORQ端子)、メモリリクエスト端子(XMREQ端子)、リード信号端子(XRD端子)、ライト信号端子(XWR端子)、16ビット幅のアドレス出力端子(A0端子〜A15端子)、および8ビット幅の入出力端子であるデータ入出力端子(D0端子〜D7端子)を有する。本実施形態では、このうちデータ入出力端子(D0端子〜D7端子)は、図75に示す各駆動回路324,326,330,334へのデータ出力と、各周辺制御回路からのデータ入力に用いられている。このデータ入出力端子(D0端子〜D7端子)によるデータの入出力先は、アドレス出力端子(A0端子〜A15端子)から出力されるアドレス信号、およびアドレスデコード回路3103から出力されるチップセレクト信号を用いて切り替えられる。   Hereinafter, details of each of the above-described units will be described. First, the CPU 304, the ROM 306, and the RAM 308 are as described with reference to FIG. The external bus control circuit 3110 includes an IO request terminal (XIORQ terminal), a memory request terminal (XMREQ terminal), a read signal terminal (XRD terminal), a write signal terminal (XWR terminal), a 16-bit width address output terminal (A0 terminal to A15 terminal) and data input / output terminals (D0 terminal to D7 terminal) which are input / output terminals having an 8-bit width. In the present embodiment, the data input / output terminals (D0 terminal to D7 terminal) are used for data output to the drive circuits 324, 326, 330, and 334 shown in FIG. 75 and data input from the peripheral control circuits. It has been. The data input / output destinations of the data input / output terminals (D0 terminal to D7 terminal) are the address signal output from the address output terminals (A0 terminal to A15 terminal) and the chip select signal output from the address decode circuit 3103. Use to switch.

パラレル入力ポート3102は、4つの入力端子(P0端子〜P3端子)を有する。これらの入力端子(P0端子〜P3端子)は、図75に示すセンサ回路322に接続されており、センサ回路322からの信号の入力に用いられている。本実施形態では、第1特図始動口230への入球を検出する球検出センサからの信号がP0端子に入力され、第2特図始動口232への入球を検出する球検出センサからの信号がP1端子に入力され、普図始動口228への入球を検出する球検出センサからの信号がP2端子に入力される。また、センサ回路322からの信号は、乱数生成回路318が生成する乱数をCPU304に取得させるためのラッチ信号として、乱数生成回路318に出力する。この動作については後述する。   The parallel input port 3102 has four input terminals (P0 terminal to P3 terminal). These input terminals (P0 terminal to P3 terminal) are connected to the sensor circuit 322 shown in FIG. 75 and are used to input signals from the sensor circuit 322. In this embodiment, a signal from a sphere detection sensor that detects a ball entering the first special figure start port 230 is input to the P0 terminal, and a ball detection sensor that detects a ball entering the second special figure start port 232 is used. Is input to the P1 terminal, and a signal from a ball detection sensor that detects a ball entering the normal start port 228 is input to the P2 terminal. The signal from the sensor circuit 322 is output to the random number generation circuit 318 as a latch signal for causing the CPU 304 to acquire a random number generated by the random number generation circuit 318. This operation will be described later.

アドレスデコード回路3103は、14の出力端子(XCS0端子〜XCS13端子)を有する。この出力端子(XCS0端子〜XCS13端子)は、マイクロプロセッサ3000の外部にある周辺制御回路に接続されており、外部バス制御回路3110のデータ入出力端子(D0端子〜D7端子)から出力されるデータの送信先を切り替えるためのチップセレクト信号等の出力に用いられている。   The address decoding circuit 3103 has 14 output terminals (XCS0 terminal to XCS13 terminal). The output terminals (XCS0 terminal to XCS13 terminal) are connected to a peripheral control circuit outside the microprocessor 3000, and data output from the data input / output terminals (D0 terminal to D7 terminal) of the external bus control circuit 3110. Is used to output a chip select signal or the like for switching the transmission destination.

タイマ回路311は、時間の計測に用いられる。なお、タイマ回路311は設定された計測時間を過ぎると、タイムアウト信号をカウンタ回路312に出力する。一方、カウンタ回路312は、各種信号の立ち上がり(あるいは立ち下がり)の回数の計測に用いられる。このカウンタ回路で計測される信号には、マイクロプロセッサ3000のシステムクロックの他、上記タイマ回路からのタイムアウト信号、メモリの読み書き信号、メモリリクエスト信号、外部入出力の信号、割込みに対する応答信号等も計測することができる。   The timer circuit 311 is used for time measurement. The timer circuit 311 outputs a timeout signal to the counter circuit 312 when the set measurement time has passed. On the other hand, the counter circuit 312 is used for measuring the number of rises (or falls) of various signals. In addition to the system clock of the microprocessor 3000, the counter circuit measures the timeout signal from the timer circuit, the memory read / write signal, the memory request signal, the external input / output signal, the interrupt response signal, and the like. can do.

リセット制御回路314は、システムリセット入力端子(XSRST端子)と、リセット出力端子(XRSTO端子)の2つの端子を有する。このシステムリセット入力端子(XSRST端子)は電圧監視回路338に接続されている。このシステムリセット入力端子(XSRST端子)からシステムリセット信号(例えば一定時間Lレベルの信号)が入力されると、リセット制御回路314は、マイクロプロセッサ3000の内部の回路に対してこのシステムリセット信号を出力するとともに、マイクロプロセッサ3000の外部にある周辺制御回路に対してリセット出力端子(XRSTO端子)からリセット信号(例えば、LレベルからHレベルへの立ち上がり信号)が出力される。この場合、マイクロプロセッサ3000では、システムリセットと称する処理が実行され、各回路が初期化される。このシステムリセットが実行される一例として、電源投入時が挙げられる。なお、このシステムリセットについては後述する。   The reset control circuit 314 has two terminals, a system reset input terminal (XSRST terminal) and a reset output terminal (XRSTO terminal). This system reset input terminal (XSRST terminal) is connected to the voltage monitoring circuit 338. When a system reset signal (for example, a signal at L level for a predetermined time) is input from the system reset input terminal (XSRST terminal), the reset control circuit 314 outputs the system reset signal to the internal circuit of the microprocessor 3000. At the same time, a reset signal (for example, a rising signal from L level to H level) is output from the reset output terminal (XRSTO terminal) to the peripheral control circuit outside the microprocessor 3000. In this case, the microprocessor 3000 executes a process called system reset and initializes each circuit. An example in which this system reset is executed is when the power is turned on. This system reset will be described later.

また、リセット制御回路314は、ウォッチドッグタイマ(WDT)3141(復帰指示手段の一例に相当)、および指定エリア外走行禁止回路3142を備えている。WDT3141がタイムアウトになった場合や、CPU304が所定の範囲以外のアドレスを参照(指定エリア外走行)した場合には、リセット制御回路314は、マイクロプロセッサ3000の内部の回路に対してシステムリセット信号およびユーザリセット信号のいずれかを出力する。なお、システムリセット信号およびユーザリセット信号のどちらを出力するかは、ROM306内のプログラム管理エリア(詳細は後述)の設定に従う。また、マイクロプロセッサ3000の外部にある周辺制御回路に対しては、リセット出力端子(XRSTO端子)からリセット信号が出力される。   Further, the reset control circuit 314 includes a watch dog timer (WDT) 3141 (corresponding to an example of a return instruction unit), and a designated area outside travel prohibition circuit 3142. When the WDT 3141 times out or when the CPU 304 refers to an address outside the predetermined range (running outside the designated area), the reset control circuit 314 sends a system reset signal to the internal circuit of the microprocessor 3000 and One of the user reset signals is output. Whether to output the system reset signal or the user reset signal depends on the setting of the program management area (details will be described later) in the ROM 306. A reset signal is output from a reset output terminal (XRSTO terminal) to the peripheral control circuit outside the microprocessor 3000.

マイクロプロセッサ3000では、設定によって上記のシステムリセットか、あるいはユーザリセットと称する処理のいずれかを実行させることができる。なお、ユーザリセットでは、各回路が必要に応じて初期化される。このユーザリセットについては後述する。   The microprocessor 3000 can execute either the system reset or the process called user reset according to the setting. In the user reset, each circuit is initialized as necessary. This user reset will be described later.

上記指定エリア外走行は、プログラムが想定外の動作をしていることを意味する。この場合、CPU304が本来プログラムとして扱われるはずのないコードにより動作することになる。このような状況は、プログラムミスによる所謂暴走した状態の他に、何らかの不正によって生じている可能性がある。この場合、上記のシステムリセットの処理により、正常な動作に復帰させることができるようになっている。また、WDT3141がタイムアウトになった場合としては、プログラムミスによる暴走した状態や、電圧降下によりCPU304が本来設計した動作を行うことができなくなった場合等がある。この場合にも、上記のシステムリセットの処理により、正常な動作に復帰させることができるようになっている。   The traveling outside the designated area means that the program is operating unexpectedly. In this case, the CPU 304 operates with a code that should not be handled as a program. Such a situation may be caused by some sort of fraud other than a so-called runaway state due to a program mistake. In this case, normal operation can be restored by the system reset process described above. In addition, when the WDT 3141 times out, there are a runaway state due to a program error, a case where the CPU 304 cannot perform the originally designed operation due to a voltage drop, and the like. Also in this case, it is possible to return to normal operation by the above-described system reset processing.

割込み制御回路3100は、外部入力や内部状態の変化に応じて適宜処理を実行させるために割込みを発生させる。この割込み処理には、例えば外部からの入力(センサによる信号)を受け付けた場合に実行する処理がある。本実施形態では、乱数生成回路318が、乱数を取得するためのラッチ信号を受信した際にも、割込み処理を実行(割込みを発生)させることができるようになっている。なお、割込み制御回路3100は、内部情報レジスタ3101を備えており、この内部情報レジスタ3101には、乱数生成回路318で乱数更新周期を決める外部クロック(カウントクロック)の周期の異常、および乱数の更新に関するの異常、さらに、直前に発生したリセット要因の情報等が格納される。なお、この内部情報レジスタ3101は、異常検出情報保持手段の一例に相当する。   The interrupt control circuit 3100 generates an interrupt in order to appropriately execute processing according to an external input or a change in an internal state. This interrupt process includes, for example, a process executed when an external input (signal from a sensor) is received. In this embodiment, even when the random number generation circuit 318 receives a latch signal for acquiring a random number, it can execute interrupt processing (generate an interrupt). The interrupt control circuit 3100 includes an internal information register 3101. The internal information register 3101 includes an abnormality in the cycle of the external clock (count clock) that determines the random number update cycle by the random number generation circuit 318, and update of the random number. In addition, information on the reset factor that occurred immediately before is stored. The internal information register 3101 corresponds to an example of an abnormality detection information holding unit.

クロック回路3200は、図75に示す水晶発振器316b(以下、システム用水晶発振器316bと称する場合がある)から外部クロック入力端子(EX端子)を介して入力される外部クロック(この例では、24MHzのクロック)を所定の分周比(この例では、1/2)で分周し、分周後のシステムクロック(この例では、12MHzのクロック)をこのマイクロプロセッサ3000内部の各回路に供給する。また、このシステムクロックをシステムクロック出力端子(CLKO端子)を介してマイクロプロセッサ3000外部の周辺制御回路に出力する。   The clock circuit 3200 has an external clock (24 MHz in this example) input from an external clock input terminal (EX terminal) from a crystal oscillator 316b (hereinafter also referred to as a system crystal oscillator 316b) shown in FIG. Clock) is divided by a predetermined frequency division ratio (1/2 in this example), and the divided system clock (12 MHz clock in this example) is supplied to each circuit in the microprocessor 3000. The system clock is output to a peripheral control circuit outside the microprocessor 3000 via a system clock output terminal (CLKO terminal).

乱数生成回路318は、乱数を更新するためのクロック信号(カウントクロック)を用いて、乱数のラッチ信号を受信したときにこの更新された乱数を乱数レジスタ内に保持するものである。本実施形態では、水晶発振器316aから外部クロック入力端子(RCK端子)を介して入力される外部クロック信号を所定の分周比(この例では、1/2)で分周してこのカウントクロックに用いているが、マイクロプロセッサ3000内部のクロック信号を用いることもでき、この場合は水晶発振器316aは不要となる。乱数レジスタに保持された値は、乱数として読み出して使用することができる。なお、乱数レジスタから乱数を読み出すと、乱数レジスタが次の乱数をラッチすることを許容する許容状態とすることができる。この乱数生成回路318の詳細は後述する。   The random number generation circuit 318 uses the clock signal (count clock) for updating the random number and holds the updated random number in the random number register when the random number latch signal is received. In the present embodiment, the external clock signal input from the crystal oscillator 316a via the external clock input terminal (RCK terminal) is divided by a predetermined frequency division ratio (1/2 in this example) and is used as this count clock. Although it is used, a clock signal in the microprocessor 3000 can also be used. In this case, the crystal oscillator 316a is not necessary. The value held in the random number register can be read and used as a random number. Note that when a random number is read from the random number register, an allowable state in which the random number register is allowed to latch the next random number can be set. Details of the random number generation circuit 318 will be described later.

続いて、図147を用いて、リセットが実行された場合の処理の流れについて説明する。同図は、リセットの流れを示すフローチャートである。このフローチャートは、リセット制御回路314にシステムリセット信号が入力された場合、WDT3141がタイムアウトになった場合、あるいは指定エリア外走行を検知した場合に、マイクロプロセッサ3000の各回路で実行される処理である。   Next, a processing flow when reset is executed will be described with reference to FIG. This figure is a flowchart showing the flow of reset. This flowchart is a process executed by each circuit of the microprocessor 3000 when a system reset signal is input to the reset control circuit 314, when the WDT 3141 times out, or when traveling outside the designated area is detected. .

最初のステップSH01では、実行されるリセット動作が、システムリセット動作か否か判定される。マイクロプロセッサ3000で実行されるリセット動作には、システムリセット動作とユーザリセット動作の2つがある。ここで、システムリセット動作を実行する場合には、ステップSH03に進む。このシステムリセット動作は本発明にいう復帰処理の一例に相当する。また、システムリセット動作でないリセット動作、すなわちユーザリセット動作を実行する場合には、ステップSH11に進む。   In the first step SH01, it is determined whether or not the reset operation to be executed is a system reset operation. There are two reset operations executed by the microprocessor 3000: a system reset operation and a user reset operation. Here, when the system reset operation is executed, the process proceeds to step SH03. This system reset operation corresponds to an example of a return process according to the present invention. When executing a reset operation that is not a system reset operation, that is, a user reset operation, the process proceeds to step SH11.

ステップSH03では、第1内部回路初期化処理が実行される。この第1内部回路初期化処理は、CPU304のコアや内蔵レジスタ(タイマ回路311、カウンタ回路312、パラレル入力ポート3102、RAM308アクセスプロテクトレジスタ、割込み制御回路3100、乱数生成回路318を制御するレジスタ)の値を初期化する。この第1内部回路初期化処理が終了すると、ステップSH05に進む。   In step SH03, a first internal circuit initialization process is executed. This first internal circuit initialization processing is performed by the CPU 304 core and built-in registers (timer circuit 311, counter circuit 312, parallel input port 3102, RAM 308 access protect register, interrupt control circuit 3100, random number generation circuit 318). Initialize the value. When the first internal circuit initialization process is completed, the process proceeds to step SH05.

ステップSH05では、セキュリティチェック処理が実行される。このセキュリティチェック処理では、ユーザプログラムを基に計算された値が、ROM306のプログラム管理エリアに記憶されている認証コードを表す値と一致するか否かの判定を行う。すなわち、認証コードが正しいか否かの再計算を行う。ここにいうユーザプログラムが、本発明にいう記憶部(内蔵ROM306)に記憶された内容の一例に相当し、内蔵ROM306のプログラム管理エリアに記憶されている認証コードが、本発明にいう所定の認証情報の一例に相当する。認証コードが正しい場合にはステップSH07に進み、そうでない場合にはCPU304の動作を停止させる。本実施形態の遊技台では、このようにしてセキュリティチェックを行なうため、遊技台により安定した制御を行なわせることができる。   In step SH05, a security check process is executed. In this security check process, it is determined whether or not the value calculated based on the user program matches the value representing the authentication code stored in the program management area of the ROM 306. That is, recalculation of whether or not the authentication code is correct is performed. The user program here corresponds to an example of the contents stored in the storage unit (internal ROM 306) according to the present invention, and the authentication code stored in the program management area of the internal ROM 306 is the predetermined authentication according to the present invention. This corresponds to an example of information. If the authentication code is correct, the process proceeds to step SH07. If not, the operation of the CPU 304 is stopped. In the gaming machine of the present embodiment, the security check is performed in this way, so that stable control can be performed by the gaming machine.

ステップSH07では、固定延長処理が実行される。この固定延長処理では、予め設定した固定時間(例えば、ROM306のプログラム管理エリア内のセキュリティ時間設定の0〜2ビットを用いて設定)だけセキュリティモードを延長する。例えば、nをプログラム管理エリアに設定された時間とし、システムクロックをSCLKとした場合に、3n×2^24/SCLK秒だけ延長する。なお、この延長時間の経過時にXRSTO端子からリセット信号を出力させる。その後ステップSH09に進む。   In step SH07, a fixed extension process is executed. In this fixed extension process, the security mode is extended for a preset fixed time (for example, set using 0 to 2 bits of the security time setting in the program management area of the ROM 306). For example, when n is the time set in the program management area and the system clock is SCLK, the time is extended by 3n × 2 ^ 24 / SCLK seconds. A reset signal is output from the XRSTO terminal when this extended time has elapsed. Thereafter, the process proceeds to step SH09.

ステップSH09では、ランダム延長処理が実行される。このランダム延長処理では、予めランダムに選択されたランダム時間(例えば、プログラム管理エリア内のセキュリティ時間設定の3〜4ビットを用いて設定)だけセキュリティモードを延長する。例えばショートモードが設定されている場合には0〜Sμ秒、ミドルモードが設定されている場合には0〜Mμ秒、ロングモードが設定されている場合には、0〜Lμ秒それぞれ延長する(S<M<L)。この処理が終了するとユーザモードに移行し、CPU304は、メモリマップの0000H番地から処理を開始する。本実施形態では、主制御部300のメイン処理が開始されることになる。   In step SH09, a random extension process is executed. In this random extension process, the security mode is extended by a random time selected in advance (for example, setting using 3 to 4 bits of the security time setting in the program management area). For example, when the short mode is set, the time is extended from 0 to Sμ seconds, when the middle mode is set, 0 to Mμ seconds, and when the long mode is set, the time is extended from 0 to Lμ seconds ( S <M <L). When this process ends, the process shifts to the user mode, and the CPU 304 starts the process from address 0000H in the memory map. In the present embodiment, the main process of the main control unit 300 is started.

一方、ステップSH01で、ユーザリセット動作を実行する場合に進むステップSH11では、第2内部回路初期化処理が実行される。この第2内部回路初期化処理は、CPU304のコアや、乱数生成回路318を制御するレジスタを除く内蔵レジスタ(タイマ回路311、カウンタ回路312、パラレル入力ポート3102、RAM308アクセスプロテクトレジスタ、割込み制御回路3100)の値を初期化する。すなわち、この第2内部回路初期化処理では、乱数生成回路318を制御するレジスタの値はリセット前の状態が維持される。この第2内部回路初期化処理が終了すると、ユーザモードに移行し、CPU304は、メモリマップの0000H番地から処理を開始する。本実施形態では、主制御部300のメイン処理が開始されることになる。
<乱数生成回路>
On the other hand, in step SH11 which proceeds when executing the user reset operation in step SH01, the second internal circuit initialization process is executed. This second internal circuit initialization processing is performed by using internal registers (timer circuit 311, counter circuit 312, parallel input port 3102, RAM 308 access protect register, interrupt control circuit 3100) excluding the registers for controlling the core of CPU 304 and random number generation circuit 318. ) Value is initialized. That is, in the second internal circuit initialization process, the value of the register that controls the random number generation circuit 318 is maintained in the state before the reset. When the second internal circuit initialization process is completed, the process shifts to the user mode, and the CPU 304 starts the process from address 0000H in the memory map. In the present embodiment, the main process of the main control unit 300 is started.
<Random number generation circuit>

次に、図148を用いて、図146に示すマイクロプロセッサ3000の乱数生成回路318の詳細について説明する。同図は、図146に示す乱数生成回路318の内部構成図である。   Next, details of the random number generation circuit 318 of the microprocessor 3000 shown in FIG. 146 will be described with reference to FIG. This figure is an internal block diagram of the random number generation circuit 318 shown in FIG.

乱数生成回路318は、それぞれ異なる乱数を生成する4つの乱数生成チャンネルCH1〜CH4を備えている。なお、各チャンネル回路の内部構成は同一であるため、図148では、1つの乱数生成チャンネルCH1を示し、残りの乱数生成チャンネルCH2〜CH4については、図示を簡略化している。以下の説明では、この乱数生成チャンネルCH1を中心に乱数生成回路318について説明する。   The random number generation circuit 318 includes four random number generation channels CH1 to CH4 that generate different random numbers. Since the internal configuration of each channel circuit is the same, FIG. 148 shows one random number generation channel CH1, and the remaining random number generation channels CH2 to CH4 are simplified in illustration. In the following description, the random number generation circuit 318 will be described focusing on the random number generation channel CH1.

乱数生成回路318は、初期設定レジスタ3181と、周波数監視回路3182と、乱数更新回路3183と、乱数監視回路3184と、ノイズフィルタ3185と、ソフトラッチレジスタ3186と、ラッチ選択レジスタ3187と、乱数レジスタ3188と、乱数ラッチフラグレジスタ3189と、乱数割込み制御レジスタ3180を備えている。なお、周波数監視回路3182および乱数監視回路3184は、更新異常検出手段の一例に相当する。   The random number generation circuit 318 includes an initial setting register 3181, a frequency monitoring circuit 3182, a random number updating circuit 3183, a random number monitoring circuit 3184, a noise filter 3185, a soft latch register 3186, a latch selection register 3187, and a random number register 3188. And a random number latch flag register 3189 and a random number interrupt control register 3180. The frequency monitoring circuit 3182 and the random number monitoring circuit 3184 correspond to an example of update abnormality detection means.

初期設定レジスタ3181には、RCK端子からの外部クロック信号とシステムクロック(内部クロック信号)のうち、いずれのクロック信号を乱数更新回路3183で使用するかを決めるクロック選択情報が、プログラム管理エリア内の情報に基づいて設定される。RCK端子からの外部クロック信号とシステムクロック(内部クロック信号)は乱数更新回路3183の手前に設けられたマルチプレクサに入力される。初期設定レジスタ3181が上記クロック選択情報に従って更新クロック選択信号をこのマルチプレクサに入力することにより、この更新クロック選択信号によって選択されたクロック信号が乱数更新回路3183に入力されるようになっている。なお、外部クロック信号が選択されている場合、所定の分周比(この例では、1/2)で分周されたクロック信号が乱数更新回路3183に入力される。なお、分周されたクロック信号が、内部クロックよりも低い周波数でない場合には使用することができない。なお、本実施形態では、外部クロック信号が選択されているものとして説明を続ける。   The initial setting register 3181 stores clock selection information for determining which of the external clock signal from the RCK terminal and the system clock (internal clock signal) to use in the random number update circuit 3183 in the program management area. Set based on information. The external clock signal and the system clock (internal clock signal) from the RCK terminal are input to a multiplexer provided in front of the random number update circuit 3183. The initial setting register 3181 inputs the update clock selection signal to the multiplexer according to the clock selection information, so that the clock signal selected by the update clock selection signal is input to the random number update circuit 3183. When an external clock signal is selected, a clock signal divided by a predetermined frequency division ratio (in this example, 1/2) is input to the random number update circuit 3183. Note that the frequency-divided clock signal cannot be used when the frequency is not lower than that of the internal clock. In the present embodiment, the description will be continued assuming that the external clock signal is selected.

周波数監視回路3182は、内部クロック信号および外部クロック信号の周期を監視し、この周期が一定でなくなった場合に、クロック信号に異常があることを示す情報を、内部情報レジスタ3101に出力する。   The frequency monitoring circuit 3182 monitors the period of the internal clock signal and the external clock signal, and outputs information indicating that the clock signal is abnormal to the internal information register 3101 when the period is not constant.

乱数更新回路3183は、初期設定レジスタ3181によって選択されたクロック信号が入力され、このクロック信号の周期に従って乱数を更新する。更新した乱数の値は、乱数監視回路3184および乱数レジスタ3188にそれぞれ出力される。この乱数更新回路3183の詳細については、図150〜図153を用いて後述する。   The random number update circuit 3183 receives the clock signal selected by the initial setting register 3181 and updates the random number according to the cycle of the clock signal. The updated random number value is output to the random number monitoring circuit 3184 and the random number register 3188, respectively. Details of the random number update circuit 3183 will be described later with reference to FIGS. 150 to 153.

なお、乱数値の更新は、乱数更新回路3183に最大値が設定されないCHについては、ユーザモードに移行した時に開始(自動開始)されるように構成される一方、乱数更新回路3183に最大値が設定されるCHについては、最大値が設定された時に開始(手動開始)されるように構成されている。すなわち、乱数の最大値は、乱数生成チャンネルCH1〜CH4で個別に設定可能である。また、最大値が設定されないCHおよび最大値が設定されるCHともに一度更新が開始されると電源供給が断たれるかシステムリセットが発生した場合にのみ更新が停止されるものであり、予期せぬ異常が発生した場合を除きこれらの事象以外では更新を停止することができないように構成されている。   The update of the random number value is configured to start (automatically start) when the maximum value is not set in the random number update circuit 3183 when shifting to the user mode, while the random value update circuit 3183 has a maximum value. The set CH is configured to start (manual start) when the maximum value is set. That is, the maximum value of the random number can be individually set for the random number generation channels CH1 to CH4. In addition, when the update is started once for both the CH in which the maximum value is not set and the CH in which the maximum value is set, the update is stopped only when the power supply is cut off or a system reset occurs. It is configured so that the update cannot be stopped except for these events except when an abnormal event occurs.

さらに、最大値が設定されるCHに関しては、乱数更新回路3183に設けられた最大値設定レジスタに最大値が設定されたことに基づいて更新が開始され、この最大値設定レジスタはシステムリセットごとに一回のみライト可能なレジスタ(システムリセット時には初期化(更新範囲の最大値であるFFFFHが初期値として設定される)され、ユーザリセット発生時にはユーザリセット発生前に設定されていた値が維持されるレジスタ)である。すなわち、乱数が更新されている場合にユーザプログラムで最大値設定レジスタをライトする処理が実行されたとしても、最大値設定レジスタが更新されることがなく、乱数生成回路3183はその影響を受けないように構成されている。一方、リードに関してはユーザプログラムで自由にすることができるように構成されている。   Further, for the CH for which the maximum value is set, updating is started based on the setting of the maximum value in the maximum value setting register provided in the random number update circuit 3183, and this maximum value setting register is set every time the system is reset. A register that can be written only once (initialized at system reset (FFFFH, which is the maximum value of the update range, is set as an initial value), and maintains the value that was set before the user reset occurred when a user reset occurred Register). That is, even when the process for writing the maximum value setting register is executed by the user program when the random number is updated, the maximum value setting register is not updated, and the random number generation circuit 3183 is not affected. It is configured as follows. On the other hand, the lead can be freely set by the user program.

また、16ビット乱数値および8ビット乱数値の一方を初期値が設定可能に構成し、他方を初期値が設定不可能に構成してもよいし、乱数が正常に更新されているか否かについて一方を監視可能とし、他方を監視不能としてもよい。また、後述する内部リセットの場合と外部リセットの場合で乱数値の初期値を異ならせてもよく(例えば、内部リセット時の初期値は33H、外部リセット時の初期値はCCH)、この場合、ユーザプログラムの初期設定などにおいて、乱数値の初期値に基づいてリセットの種類を判別し、リセットの種類に合わせた処理を実行してもよい。   In addition, one of the 16-bit random value and the 8-bit random value may be configured so that an initial value can be set, and the other may be configured so that an initial value cannot be set, and whether or not the random number is normally updated. One may be monitored and the other may not be monitored. In addition, the initial value of the random number value may be different between an internal reset and an external reset described later (for example, the initial value at the time of internal reset is 33H, and the initial value at the time of external reset is CCH). In the initial setting of the user program or the like, the type of reset may be determined based on the initial value of the random number value, and processing according to the type of reset may be executed.

乱数監視回路3184は、乱数更新回路3183からの入力に基づいて、乱数が正常に更新されているか否かを監視する。乱数の更新に異常がある場合、この乱数の更新に異常があることを示す情報を、内部情報レジスタ3101に出力する。   Based on the input from the random number update circuit 3183, the random number monitoring circuit 3184 monitors whether or not the random number has been updated normally. If there is an abnormality in updating the random number, information indicating that there is an abnormality in updating the random number is output to the internal information register 3101.

なお、上記の説明では、乱数生成回路318の内部に周波数監視回路3182および乱数監視回路3184が設けられている構成であったが、乱数生成回路318の外部に設けてもよい。また、上記の説明では、乱数更新回路3183とは別に周波数監視回路3182および乱数監視回路3184が設けられている構成であったが、乱数更新回路3183の内部にこれらの回路を設けてもよい。   In the above description, the frequency monitoring circuit 3182 and the random number monitoring circuit 3184 are provided inside the random number generation circuit 318, but may be provided outside the random number generation circuit 318. In the above description, the frequency monitoring circuit 3182 and the random number monitoring circuit 3184 are provided separately from the random number update circuit 3183. However, these circuits may be provided inside the random number update circuit 3183.

ノイズフィルタ3185には、P0端子〜P3端子からの入力が、パラレル入力ポート3102を介してラッチ信号として入力される。なお、図148では、P3端子、およびそのP3端子に接続された回路等は図示省略している。上述のごとく、P0端子には、第1特図始動口230への入球を検出する球検出センサからの信号が入力され、P1端子には、第2特図始動口232への入球を検出する球検出センサからの信号が入力され、P2端子には、普図始動口228への入球を検出する球検出センサからの信号が入力される。さらに、ノイズフィルタ3185には、初期設定レジスタ3181によって選択されたクロック信号が入力される。このクロック信号を利用して、P0端子〜P3端子からの入力に生じるノイズを除去した上で、ラッチ信号を検出する。このラッチ信号が検出されると、ハードラッチ信号が乱数レジスタ3188の手前に設けられたマルチプレクサに出力される。なお、このノイズ除去の詳細については、図149を用いて後述する。   Input from the P0 terminal to P3 terminal is input to the noise filter 3185 as a latch signal via the parallel input port 3102. In FIG. 148, the P3 terminal and the circuit connected to the P3 terminal are not shown. As described above, a signal from a ball detection sensor that detects a ball entering the first special figure start port 230 is input to the P0 terminal, and a ball entering the second special figure start port 232 is input to the P1 terminal. A signal from a sphere detection sensor to be detected is input, and a signal from a sphere detection sensor that detects a ball entering the normal start port 228 is input to the P2 terminal. Further, the clock signal selected by the initial setting register 3181 is input to the noise filter 3185. Using this clock signal, the noise generated at the inputs from the P0 to P3 terminals is removed, and then the latch signal is detected. When this latch signal is detected, a hard latch signal is output to a multiplexer provided in front of the random number register 3188. Details of the noise removal will be described later with reference to FIG.

ソフトラッチレジスタ3186には、乱数レジスタ3188から乱数をラッチすることを示す情報がCPU304からの指示によって適宜設定される。この情報が、ソフトラッチ信号として乱数レジスタ3188の手前に設けられたマルチプレクサに出力される。   Information indicating that a random number is latched from the random number register 3188 is appropriately set in the soft latch register 3186 according to an instruction from the CPU 304. This information is output as a soft latch signal to a multiplexer provided in front of the random number register 3188.

ラッチ選択レジスタ3187には、乱数レジスタ3188の手前に設けられたマルチプレクサからハードラッチ信号とソフトラッチ信号の何れを出力させるか、すなわち、乱数レジスタ3188にどちらのラッチ信号を入力するのかを示す情報が、CPU304からの指示によって適宜設定される。この情報を設定することにより、ハードラッチ信号とソフトラッチ信号を適宜使用して、乱数を取得することができる。   The latch selection register 3187 has information indicating which of the hard latch signal and the soft latch signal is output from the multiplexer provided in front of the random number register 3188, that is, which latch signal is input to the random number register 3188. These are set as appropriate according to instructions from the CPU 304. By setting this information, it is possible to obtain a random number by appropriately using the hard latch signal and the soft latch signal.

乱数レジスタ3188には、3つの信号が入力される。1つ目の信号は、乱数更新回路3183から出力された乱数を表す信号である。2つ目の信号は、手前に設けられたマルチプレクサから出力された乱数ラッチ信号(ハードラッチ信号とソフトラッチ信号のうち、ラッチ選択レジスタ3187で設定された信号)である。3つ目の信号は、乱数の読み取りを示すリード信号である。   Three signals are input to the random number register 3188. The first signal is a signal representing a random number output from the random number update circuit 3183. The second signal is a random number latch signal (a signal set by the latch selection register 3187 out of the hard latch signal and the soft latch signal) output from the multiplexer provided in front. The third signal is a read signal indicating random number reading.

乱数レジスタ3188には、乱数更新回路3183によって更新された乱数を示す信号が常に入力されている。ここで、乱数ラッチ信号が入力されると、この入力タイミングにおける乱数が乱数レジスタ3188内にラッチ(保持)される。このとき、乱数レジスタ3188からは、乱数がラッチされていることを示すセット信号が、乱数ラッチフラグレジスタ3189に出力される。このときCPU304は、ラッチされている乱数を取得することができる。なお、CPU304により乱数が取得されると、乱数レジスタ3188にリード信号が入力される。この信号により新たな乱数ラッチ信号が入力された場合に乱数をラッチすることを許容する許容状態となる。換言すれば、一度乱数をラッチすると、リード信号が入力されるまで新たに乱数をラッチすることができない非許容状態となる。なお、リード信号が入力されてもラッチされている乱数は保持し続けるため、CPU304はラッチされている同一のタイミングでラッチされた乱数を何度でも取得することができる。このように構成することで乱数ラッチ信号を出力するセンサ回路におけるチャタリングの影響を押さえることができる。なお、リード信号が入力されたことを示すクリア信号が乱数ラッチフラグレジスタ3189に出力される。また、図148に示すように、乱数レジスタ3188が複数あることにより、同じ乱数更新回路から生成された乱数を様々なタイミングで取得することができる。   A signal indicating the random number updated by the random number update circuit 3183 is always input to the random number register 3188. Here, when a random number latch signal is input, a random number at this input timing is latched (held) in the random number register 3188. At this time, a set signal indicating that the random number is latched is output from the random number register 3188 to the random number latch flag register 3189. At this time, the CPU 304 can acquire the latched random number. Note that when a random number is acquired by the CPU 304, a read signal is input to the random number register 3188. When a new random number latch signal is input by this signal, an allowable state is entered in which the random number is allowed to be latched. In other words, once the random number is latched, it becomes an unacceptable state in which the random number cannot be newly latched until the read signal is inputted. Note that since the latched random number is held even when a read signal is input, the CPU 304 can acquire the latched random number any number of times at the same latched timing. With this configuration, the influence of chattering in the sensor circuit that outputs the random number latch signal can be suppressed. A clear signal indicating that the read signal has been input is output to the random number latch flag register 3189. As shown in FIG. 148, since there are a plurality of random number registers 3188, random numbers generated from the same random number update circuit can be acquired at various timings.

乱数ラッチフラグレジスタ3189には、乱数レジスタ3188に乱数がラッチされているか否かを示す情報が記憶される。なお、乱数ラッチフラグレジスタ3189は、乱数レジスタ3188にラッチされた乱数(16ビット乱数の全てまたは一部や、8ビット乱数の全てまたは一部)が読み出されたときに自動的にクリアされるように構成してもよいし、CPUによってクリアするように構成してもよい。   The random number latch flag register 3189 stores information indicating whether or not a random number is latched in the random number register 3188. The random number latch flag register 3189 is automatically cleared when the random number latched in the random number register 3188 (all or part of a 16-bit random number or all or part of an 8-bit random number) is read. You may comprise so that it may clear by CPU.

乱数割込み制御レジスタ3180には、乱数レジスタ3188に乱数が保持された際に割込み制御回路に割込みを発生させるか否かを示す情報が設定される。この情報は乱数レジスタ3188毎に設定することができる。例えば、第1特図始動口230への入球により乱数発生チャンネルCH1の乱数がラッチされた場合には、割込みを発生させ、第2特図始動口232への入球により乱数発生チャンネルCH2の乱数がラッチされた場合には、割込みを発生させない、というような設定をすることができる。   In the random number interrupt control register 3180, information indicating whether or not an interrupt is to be generated in the interrupt control circuit when a random number is held in the random number register 3188 is set. This information can be set for each random number register 3188. For example, when the random number of the random number generation channel CH1 is latched by entering the first special figure starting port 230, an interrupt is generated, and the random number generating channel CH2 is entered by entering the second special figure starting port 232 If a random number is latched, it can be set such that no interrupt is generated.

上記説明した乱数生成回路318を用いて、本実施形態では、普図始動口282、第1特図始動口230、第2特図始動口232のそれぞれに入球したタイミングで乱数を取得する。なお、任意のタイミングでCPU304に乱数を取得させるように、プログラムを実行させることもできる。さらに異なる乱数生成チャンネルを使用してそれぞれ独立の乱数を取得し、それぞれのチャンネル毎に乱数生成範囲の最大値を設定することができる。   In the present embodiment, using the random number generation circuit 318 described above, random numbers are acquired at the timing when the ball enters each of the general map start port 282, the first special figure start port 230, and the second special diagram start port 232. Note that the program can be executed so that the CPU 304 can acquire a random number at an arbitrary timing. Further, independent random numbers can be acquired using different random number generation channels, and the maximum value of the random number generation range can be set for each channel.

なお、本実施形態では、個別のチャンネルに対して乱数生成範囲を変更することができ、設定されていない場合には所定の最大値(例えば65535)が適用される例について説明したが、これ以外に例えば、乱数生成範囲を変更する場合に全てのチャンネルに対して乱数生成範囲を設定することを必要とする構成であってもよい。   In the present embodiment, the example in which the random number generation range can be changed for each individual channel and a predetermined maximum value (for example, 65535) is applied when the range is not set has been described. For example, when changing the random number generation range, the configuration may be required to set the random number generation range for all channels.

なお、普図始動口282に入球したタイミングで取得された乱数は、後述する普図当選乱数として用いられる。また、第1特図始動口230に入球したタイミングで取得された乱数は、加工(例えば、乱数生成回路とは異なる回路(例えば、基本回路302やカウンタ回路312)でカウントアップ(ダウン)される値を乱数に加算(減算)する処理など)されて、後述する特図1当選乱数として用いられる。さらに、第2特図始動口232に入球したタイミングで取得された乱数は、加工されて、後述する特図2当選乱数として用いられる。   In addition, the random number acquired at the timing of entering the general figure starting port 282 is used as a general figure winning random number described later. In addition, the random number acquired at the timing of entering the first special figure starting port 230 is counted up (down) by processing (for example, a circuit different from the random number generation circuit (for example, the basic circuit 302 or the counter circuit 312)). The value is added (subtracted) to the random number, etc.) and used as a special figure 1 winning random number described later. Furthermore, the random number acquired at the timing of entering the second special figure starting port 232 is processed and used as a special figure 2 winning random number described later.

なお、乱数の加工は、第1特図始動口230および第2特図始動口232に入球したタイミングで取得される乱数に限らず、他の契機(例えば、普図始動口282へに入球したタイミングなど)によって取得される乱数に対して行ってもよい。さらに、上述した乱数生成範囲の最大値を設定する場合においては、設定した最大値に応じた加工(例えば、この最大値を超えない値を乱数に加算する処理など)すれば良い。   The random number processing is not limited to the random number acquired at the timing of entering the first special figure starting port 230 and the second special figure starting port 232, but other triggers (for example, entering the normal figure starting port 282). You may perform with respect to the random number acquired by a ball timing etc.). Furthermore, when the maximum value of the random number generation range described above is set, processing corresponding to the set maximum value (for example, a process of adding a value not exceeding the maximum value to the random number) may be performed.

また、乱数の加工は必ずしも行う必要はないが、乱数の加工を行うことは乱数の狙いうちの防止に有効に働く。例えば加工した後の乱数が更新されたか否かをCPU304によって監視した場合、乱数生成回路318内での乱数の更新が正常に行われているか否かを正確に判断することができない。このように、乱数を加工する場合には、上述の乱数監視回路3184による乱数の更新の監視がより有効に働くこととなる。   In addition, although it is not always necessary to perform random number processing, it is effective to prevent random numbers from being processed. For example, when the CPU 304 monitors whether or not the processed random number has been updated, it cannot be accurately determined whether or not the random number update in the random number generation circuit 318 is normally performed. Thus, when processing random numbers, monitoring of update of random numbers by the random number monitoring circuit 3184 described above works more effectively.

続いて、図149を用いてノイズフィルタ3185の動作について説明する。同図は、図148に示すノイズフィルタ3185による処理の一例を示す図である。   Subsequently, the operation of the noise filter 3185 will be described with reference to FIG. This figure shows an example of processing by the noise filter 3185 shown in FIG.

上述したように、ノイズフィルタ3185には、P0端子〜P3端子からの入力が、パラレル入力ポート3102を介してラッチ信号として入力され、初期設定レジスタ3181によって選択されたクロック信号が入力される。このノイズフィルタ3185は、例えば図149に示すように、クロック信号のダウンエッジ(HレベルからLレベルへの立ち下り信号)が4回連続で入力されるまで、P0端子〜P3端子からの入力信号がHレベルであれば、ハードウェアラッチ信号を出力するように構成されている。単純に信号の立ち上がりおよび立ち下がりだけを基にハードウェアラッチ信号を出力すると、ノイズが入った場合にもハードウェアラッチ信号が出力されてしまう。このため、上記のようにクロック信号を用いて、一定期間のセンサ信号を検出させることで、ノイズによりハードウェアラッチ信号が出力されてしまわないように構成されている。   As described above, the noise filter 3185 receives inputs from the P0 to P3 terminals as latch signals via the parallel input port 3102 and receives the clock signal selected by the initial setting register 3181. For example, as shown in FIG. 149, the noise filter 3185 receives input signals from the P0 terminal to the P3 terminal until the down edge of the clock signal (the falling signal from the H level to the L level) is continuously input four times. If H is at the H level, a hardware latch signal is output. If a hardware latch signal is simply output based on only the rising and falling edges of the signal, the hardware latch signal is output even when noise occurs. For this reason, the hardware latch signal is not output due to noise by detecting the sensor signal for a certain period using the clock signal as described above.

上記説明では、P0端子〜P3端子からの入力によりハードラッチ信号を出力させる例について説明したが、例えば、P0端子〜P3端子からの入力を一度CPU304で受け付けた上で乱数を取得する方法もある。この場合には、ハードラッチ信号ではなく、ソフトラッチレジスタ3186から出力されたソフトラッチ信号により、乱数をラッチさせることになる。この場合、上記ノイズフィルタによる処理と同様の処理がCPU304により実行される。すなわち、P0端子〜P3端子からの入力が所定期間継続したか否かを判定し、これを満たす場合にP0端子〜P3端子からの入力が正しく行われたと判定する。その後、ソフトラッチ信号を出力するようにソフトラッチレジスタ3186を設定する。   In the above description, an example in which a hard latch signal is output by an input from the P0 terminal to the P3 terminal has been described. . In this case, the random number is latched not by the hard latch signal but by the soft latch signal output from the soft latch register 3186. In this case, the CPU 304 executes processing similar to the processing by the noise filter. That is, it is determined whether or not the input from the P0 terminal to the P3 terminal has continued for a predetermined period. Thereafter, the soft latch register 3186 is set so as to output a soft latch signal.

次に、図150を用いて、図148に示す乱数更新回路3183の詳細について説明する。同図は、図148に示す乱数更新回路3183の詳細を示す図である。   Next, details of the random number update circuit 3183 shown in FIG. 148 will be described with reference to FIG. This figure shows details of the random number update circuit 3183 shown in FIG.

図150(a)に示す乱数更新回路3183は、カウンタ回路3183aと、スタート値選択回路3183bと、最大値設定レジスタ3183cを備えている。なお、図148では、乱数更新回路3183に対して外部クロック信号および内部クロック信号のいずれかが乱数更新のための更新クロック信号として入力されることが示されているが、この図150に示す乱数更新回路3183には、さらにCPU304から最大値データが入力される。   A random number update circuit 3183 shown in FIG. 150A includes a counter circuit 3183a, a start value selection circuit 3183b, and a maximum value setting register 3183c. 148 shows that either the external clock signal or the internal clock signal is input to the random number update circuit 3183 as an update clock signal for updating the random number, the random number shown in FIG. Maximum value data is further input to the update circuit 3183 from the CPU 304.

カウンタ回路3183aからは、乱数(乱数データ)が出力される。この乱数の初期値は、スタート値選択回路3183bに設定されている。この初期値には、固定値(例えば0)、プログラム管理エリア内に記憶されているマイクロプロセッサ3000のIDナンバーを基にした値、および、乱数生成範囲内で抽選された値のいずれかが設定される。   A random number (random number data) is output from the counter circuit 3183a. The initial value of this random number is set in the start value selection circuit 3183b. The initial value is set to one of a fixed value (for example, 0), a value based on the ID number of the microprocessor 3000 stored in the program management area, and a value lottery within the random number generation range. Is done.

カウンタ回路3183aには、更新クロック信号の1クロック毎に1が加算されるカウンタが設けられており、このカウンタの値に、スタート値選択回路3183bから入力された乱数の初期値を加えた値を乱数として出力する。   The counter circuit 3183a is provided with a counter in which 1 is added for each clock of the update clock signal. A value obtained by adding the initial value of the random number input from the start value selection circuit 3183b to the value of this counter is provided. Output as a random number.

カウンタ回路3183aから出力される乱数の最大値は、最大値設定レジスタ3183cに設定されている。なお、乱数の最大値は、CPU304からの命令に従って最大値設定レジスタ3183cに設定される。図150(b)には、この最大値が設定されている16ビットのレジスタが示されている。CPU304から最大値を設定する命令がない場合の初期値は、FFFFH(65535)である。なお、この最大値設定レジスタ3183cの変わりに、例えば、ROM306のプログラム管理エリア内に最大値を設定する領域を設け、設定された最大値を参照する構成であってもよい。   The maximum value of the random number output from the counter circuit 3183a is set in the maximum value setting register 3183c. Note that the maximum value of the random number is set in the maximum value setting register 3183c in accordance with an instruction from the CPU 304. FIG. 150 (b) shows a 16-bit register in which this maximum value is set. The initial value when there is no instruction for setting the maximum value from the CPU 304 is FFFFH (65535). Instead of the maximum value setting register 3183c, for example, an area for setting a maximum value may be provided in the program management area of the ROM 306, and the set maximum value may be referred to.

カウンタ回路3183aは、出力する乱数が最大値を超えた場合、この最大値に1を加えた値を減算した上で、この値を乱数として出力する。例えば最大値が65535の場合において、初期値とカウンタの値を足した値が、65534、65535、65536、65537の順に更新されるとすると、出力される乱数は、65534、65535、0(65536−(65535+1))、1(65537−(65535+1))のようになる。すなわち、最大値を超えると出力される乱数が0に戻ることになる。   When the output random number exceeds the maximum value, the counter circuit 3183a subtracts a value obtained by adding 1 to the maximum value, and then outputs this value as a random number. For example, in the case where the maximum value is 65535, if the value obtained by adding the initial value and the counter value is updated in the order of 65534, 65535, 65536, 65537, the output random numbers are 65534, 65535, 0 (655536). (65535 + 1)), 1 (65537- (65535 + 1)). That is, when the maximum value is exceeded, the output random number returns to zero.

また、カウンタ回路3183aの内部に設けられたカウンタの値が、最大値レジスタ3183cに設定された最大値になると、このカウンタの値が0にクリアされるとともに、カウンタ回路3183aからスタート値選択回路3183bに乱数の出力が一巡したことを示す信号(一巡信号)が出力される。この一巡信号を受けたスタート値選択回路3183bでは、乱数の初期値が更新される。この際更新される初期値が、最大値設定レジスタ3183cに設定されている乱数の最大値を超えている場合、例えば、固定値を用いたり、一度現在の乱数の最大値を乗じてから設定可能な乱数生成範囲の最大値(65535)で除算した値を用いることにより、乱数の最大値を超えない値(乱数生成範囲内の値)が初期値として再設定される。無論、最初からこの再設定方法などを用いて、乱数生成範囲内の値が初期値として設定されるようにしてもよい。   When the value of the counter provided in the counter circuit 3183a reaches the maximum value set in the maximum value register 3183c, the counter value is cleared to 0, and the counter circuit 3183a to the start value selection circuit 3183b. A signal (circular signal) indicating that the output of the random number has been completed is output. In the start value selection circuit 3183b that has received this round signal, the initial value of the random number is updated. When the initial value updated at this time exceeds the maximum value of the random number set in the maximum value setting register 3183c, for example, a fixed value can be used, or it can be set after multiplying the current maximum value of the random number once. By using a value divided by the maximum value (65535) of the random number generation range, a value that does not exceed the maximum random number value (a value within the random number generation range) is reset as an initial value. Of course, a value within the random number generation range may be set as an initial value by using this resetting method from the beginning.

なお、本実施形態では、最大値設定レジスタ3183cに設定された最大値は、カウンタ回路3183aからの出力が一巡した時点で自動的に更新されるが、例えばCPU304からの更新命令が来た時点で更新されるようにしてもよい。   In the present embodiment, the maximum value set in the maximum value setting register 3183c is automatically updated when the output from the counter circuit 3183a completes a cycle, but for example, when an update command from the CPU 304 is received. It may be updated.

ここで、上記の乱数生成の範囲を図151および図152を用いて説明する。図151は、乱数生成範囲の最大値が設定されていない場合(デフォルトの状態)において出力される乱数の範囲を示す図である。また、図152は、図151とは異なる最大値が設定された場合に出力される乱数の範囲を示す図である。   Here, the range of the above random number generation will be described with reference to FIGS. 151 and 152. FIG. FIG. 151 is a diagram illustrating a range of random numbers output when the maximum value of the random number generation range is not set (default state). FIG. 152 is a diagram showing a range of random numbers output when a maximum value different from FIG. 151 is set.

まず、図151(a)ではn周期目(n−1回目の一巡信号が出力された直後)の状況について説明する。図151(a)には、0〜65535の乱数生成範囲が示されている。また、出力される乱数の初期値がスタート値(X)として示されている。   First, in FIG. 151 (a), the situation in the nth cycle (immediately after the (n-1) th round signal is output) will be described. FIG. 151 (a) shows a random number generation range of 0 to 65535. Further, the initial value of the output random number is shown as the start value (X).

乱数更新回路3183からは、更新クロックの1クロック毎に乱数が更新されて出力される。より具体的には、最初にスタート値(X)が出力され、その後1クロック毎に、X+1、X+2の順で更新された乱数が出力される。この乱数の値が乱数生成範囲の最大値である65535になると、上記説明した処理によって、次に出力される乱数は0に戻る。その後、1、2、の順で更新された乱数が出力され、X−1が出力された時点でこの乱数生成範囲を一巡したことになる。なお、このとき、乱数更新回路3183内のカウンタ回路3183aのカウンタの値は最大値と同じ値になっている。スタート値選択回路3183bに乱数の出力が一巡したことを示す信号(一巡信号)が出力される。   A random number is updated and output from the random number update circuit 3183 for each clock of the update clock. More specifically, the start value (X) is output first, and then the random numbers updated in the order of X + 1 and X + 2 are output every clock thereafter. When the value of the random number reaches 65535, which is the maximum value of the random number generation range, the random number output next is returned to 0 by the above-described processing. Thereafter, the random numbers updated in the order of 1, 2 are output, and when the X-1 is output, this random number generation range is completed. At this time, the counter value of the counter circuit 3183a in the random number update circuit 3183 is the same as the maximum value. The start value selection circuit 3183b outputs a signal (round signal) indicating that the random number output has rounded.

続いて1クロックが入力されると、乱数更新回路3183の出力はn+1周期目(n回目の一巡信号が出力された直後)に入る。このn+1周期目の状況について、図151(b)を用いて説明する。まず、乱数更新回路3183内のカウンタ回路3183aのカウンタの値は0にクリアされる。また、スタート値選択回路3183bでは、新たな初期値が設定される。図151(b)には、この新たな初期値がスタート値(X´)として示されている。この新たな初期値と、カウンタ回路3183aのカウンタの値により、上記説明した流れと同様の流れで乱数が出力される。   Subsequently, when one clock is input, the output of the random number update circuit 3183 enters the (n + 1) period (immediately after the nth round signal is output). The situation in the (n + 1) th period will be described with reference to FIG. 151 (b). First, the counter value of the counter circuit 3183a in the random number update circuit 3183 is cleared to zero. In the start value selection circuit 3183b, a new initial value is set. FIG. 151 (b) shows this new initial value as the start value (X ′). A random number is output in the same flow as the flow described above based on the new initial value and the counter value of the counter circuit 3183a.

次に、図152(a)では、図151に示す乱数生成範囲の最大値よりも小さい最大値が設定された場合のn周期目(n−1回目の一巡信号が出力された直後)の状況について説明する。図152(a)には、0〜65535のうち、設定された最大値によって図151(a)に示す乱数生成範囲よりも狭くなった乱数生成範囲が示されている。なお、出力されない乱数の範囲が左下がりのハッチングで示されている。また、出力される乱数の初期値がスタート値(Y)として示されている。   Next, in FIG. 152 (a), the situation of the nth cycle (immediately after the (n-1) th round signal is output) when the maximum value smaller than the maximum value of the random number generation range shown in FIG. 151 is set. Will be described. FIG. 152 (a) shows a random number generation range that is narrower than the random number generation range shown in FIG. 151 (a) by the set maximum value from 0 to 65535. Note that the range of random numbers that are not output is indicated by a left-down hatching. Further, the initial value of the output random number is shown as the start value (Y).

図151を用いて説明した状況と同様に、乱数更新回路3183からは、最初にスタート値(Y)が出力され、その後1クロック毎に、Y+1、Y+2の順で更新された乱数が出力される。この乱数の値が設定された最大値になると、上記説明した処理によって、次に出力される乱数は0に戻る。すなわち、左下がりのハッチングで示された範囲の乱数は出力されない。その後、1、2、の順で更新された乱数が出力され、Y−1が出力された時点でこの乱数生成範囲を一巡したことになる。なお、このとき、乱数更新回路3183内のカウンタ回路3183aのカウンタの値は設定された最大値と同じ値になっている。スタート値選択回路3183bに乱数の出力が一巡したことを示す信号(一巡信号)が出力される。   As in the situation described with reference to FIG. 151, the random number update circuit 3183 first outputs a start value (Y), and then outputs random numbers updated in order of Y + 1 and Y + 2 every clock. . When the value of the random number reaches the set maximum value, the random number output next is returned to 0 by the above-described processing. That is, random numbers in the range indicated by the left-down hatching are not output. Thereafter, the random numbers updated in the order of 1, 2 are output, and when the Y-1 is output, this random number generation range is completed. At this time, the counter value of the counter circuit 3183a in the random number update circuit 3183 is the same as the set maximum value. The start value selection circuit 3183b outputs a signal (round signal) indicating that the random number output has rounded.

続いて1クロックが入力されると、乱数更新回路3183の出力はn+1周期目(n回目の一巡信号が出力された直後)に入る。このn+1周期目の状況について、図152(b)を用いて説明する。図151(b)を用いて説明した場合と同様、乱数更新回路3183内のカウンタ回路3183aのカウンタの値は0にクリアされる。また、スタート値選択回路3183bでは、新たな初期値が設定される。図152(b)には、この新たな初期値がスタート値(Y´)として示されている。この新たな初期値と、カウンタ回路3183aのカウンタの値により、上記説明した流れと同様の流れで乱数が出力される。   Subsequently, when one clock is input, the output of the random number update circuit 3183 enters the (n + 1) period (immediately after the nth round signal is output). The situation in the (n + 1) th cycle will be described with reference to FIG. 152 (b). As in the case described with reference to FIG. 151 (b), the counter value of the counter circuit 3183 a in the random number update circuit 3183 is cleared to 0. In the start value selection circuit 3183b, a new initial value is set. In FIG. 152 (b), this new initial value is shown as the start value (Y ′). A random number is output in the same flow as the flow described above based on the new initial value and the counter value of the counter circuit 3183a.

なお、上記のように乱数生成チャンネルの最大値を適切に設定する以外に、例えば、ある乱数生成チャンネルでは乱数の最大値が65535であるが、別の乱数生成チャンネルでは乱数の最大値が255である、というように、チャンネル毎に乱数生成範囲を予め異ならせておいてもよい。この場合には、必要とされる乱数生成範囲に応じてチャンネルを選択すればよい。この場合には、最大値設定レジスタの容量削減や、最大値設定の処理負担を軽減することができる。さらに、予め設定可能な最大値を複数設定した上で、これらの中から適切な最大値を選択して設定するようにしても、最大値設定レジスタの容量削減や、最大値設定の処理負担を軽減することができる。   In addition to appropriately setting the maximum value of the random number generation channel as described above, for example, the maximum random number value is 65535 in one random number generation channel, but the maximum random number value is 255 in another random number generation channel. For example, the random number generation range may be different for each channel. In this case, the channel may be selected according to the required random number generation range. In this case, the capacity of the maximum value setting register can be reduced and the processing load for setting the maximum value can be reduced. Furthermore, even if a plurality of maximum values that can be set in advance are set and an appropriate maximum value is selected and set from these, it is possible to reduce the capacity of the maximum value setting register and to reduce the processing load for setting the maximum value. Can be reduced.

以上、乱数更新回路3183の乱数の出力について説明した。以下この乱数更新回路3183の変形例について図153を用いて説明する。同図は、最大値と最小値を設定した乱数生成範囲において、乱数を取得することができる範囲を示す図である。   The random number output from the random number update circuit 3183 has been described above. Hereinafter, a modification of the random number update circuit 3183 will be described with reference to FIG. This figure is a diagram showing a range in which random numbers can be acquired in a random number generation range in which a maximum value and a minimum value are set.

図150から図152の例では、乱数生成範囲の最大値を変更する例について説明したが、例えば、最小値を設定できるものであってもよい。さらに、最大値だけでなく最小値を設定するレジスタを用意し、図153(a)に示すように、最小値、最大値を設定し、乱数生成範囲を設定できるものであってもよい。加えて、図153(b)に示すように、複数の乱数生成範囲を設定できるものであってもよい。すなわち、出力される乱数の範囲を設定出来る構成であればよい。また、上記説明では、説明を分かり易くするため出力される乱数が1ずつ増加する例について説明したが、これ以外の乱数の更新方法であってもよい。   In the example of FIGS. 150 to 152, the example in which the maximum value of the random number generation range is changed has been described. Further, a register for setting not only the maximum value but also the minimum value may be prepared, and as shown in FIG. 153 (a), the minimum value and the maximum value may be set to set the random number generation range. In addition, as shown in FIG. 153 (b), a plurality of random number generation ranges may be set. That is, any configuration can be used as long as the range of the output random number can be set. Further, in the above description, the example in which the output random number increases by 1 has been described for easy understanding, but other random number update methods may be used.

以下、図154を用いて本実施形態の遊技台で使用される乱数と、その主な導出源について説明する。同図は、本実施形態の遊技台で使用される乱数の導出源を表で示す図である。なお、この図で示される各乱数は、後述のフローチャートで用いられる。   Hereinafter, random numbers used in the game machine of this embodiment and main derivation sources will be described with reference to FIG. FIG. 2 is a table showing random number derivation sources used in the game machine of this embodiment. Each random number shown in this figure is used in a flowchart described later.

まず、特図1当選乱数、特図2当選乱数、および普図当選乱数は、上記乱数生成回路318の乱数生成チャンネルCH1〜CH4によって生成される乱数が基になる。この値を必要に応じて適宜加工してこれらの乱数として使用する。   First, the special figure 1 winning random numbers, the special figure 2 winning random numbers, and the universal winning random numbers are based on random numbers generated by the random number generation channels CH1 to CH4 of the random number generation circuit 318. These values are processed as necessary and used as these random numbers.

大当り用特図乱数、小当り用特図乱数、およびハズレ用特図乱数は、後述する主制御部タイマ割込み処理において生成される。すなわちこれらの乱数は、所謂ソフトウェア乱数である。なお、これらの乱数を生成する際に用いられる初期値生成用乱数は、主制御部メイン処理および主制御部タイマ割込み処理で生成される。   The big hit special figure random number, the small hit special figure random number, and the lost special figure random number are generated in a main control unit timer interrupt process to be described later. That is, these random numbers are so-called software random numbers. Note that the initial value generating random numbers used when generating these random numbers are generated by the main control unit main process and the main control unit timer interrupt process.

特図変動時間決定用乱数、および普図変動時間決定用乱数は、カウンタ回路312の値を乱数として用いる。本実施形態のカウント回路312は、マイクロプロセッサ3000のシステムクロックの他、上記タイマ回路からのタイムアウト信号、メモリの読み書き信号、メモリリクエスト信号、外部入出力の信号等もカウンタの対象として用いることができる。このため、これらを組み合わせることで規則性のない値を導出させ、上記の乱数に使用している。演出用乱数は、主制御部メイン処理および主制御部タイマ割込み処理で生成される。   For the special figure fluctuation time determination random number and the normal figure fluctuation time determination random number, the value of the counter circuit 312 is used as a random number. In the count circuit 312 of this embodiment, in addition to the system clock of the microprocessor 3000, a timeout signal from the timer circuit, a memory read / write signal, a memory request signal, an external input / output signal, and the like can be used as counter targets. . Therefore, by combining these, a value having no regularity is derived and used for the above random number. The production random number is generated by the main control unit main process and the main control unit timer interrupt process.

次に、図155を用いて、図146に示す割込み制御回路3100に設けられた内部情報レジスタ3101の詳細について説明する。上述したように、内部情報レジスタ3101には、乱数生成回路318で乱数更新周期を決める外部クロック(カウントクロック)の周期の異常、および生成された乱数値の異常、さらに、直前に発生したユーザリセットのリセット要因の情報等が格納される。この内部レジスタ3101には、第1内部情報レジスタと第2内部情報レジスタと、第3内部情報レジスタとが用意されている。   Next, details of the internal information register 3101 provided in the interrupt control circuit 3100 shown in FIG. 146 will be described with reference to FIG. As described above, the internal information register 3101 has an external clock (count clock) cycle abnormality that determines the random number update cycle by the random number generation circuit 318, an abnormality of the generated random number value, and a user reset that occurred immediately before. The reset factor information and the like are stored. The internal register 3101 includes a first internal information register, a second internal information register, and a third internal information register.

図155は、割込み制御回路3100の内部レジスタ3101に用意された第1内部情報レジスタを説明するための図である。図155(a)には、第1内部情報レジスタのうち、乱数生成回路318の異常を示す情報が記憶される範囲が示されている。この範囲は8ビットで構成されており、図155(b)には、これらの各ビットがどのような情報を示すものかが表で示されている。   FIG. 155 is a diagram for explaining the first internal information register prepared in the internal register 3101 of the interrupt control circuit 3100. FIG. 155 (a) shows a range in which information indicating abnormality of the random number generation circuit 318 is stored in the first internal information register. This range is composed of 8 bits, and FIG. 155 (b) shows a table showing what information each bit represents.

CPU304は、後述するタイマ割込みが実行される度にこの第1内部情報レジスタの内容を確認する(図166のステップS3235a)。この内容は、異常が発生した場合に遊技の進行を止める等の処理を行うか否かの判定に用いられる。例えば、本実施形態では、乱数生成回路318で異常が検出されると、入賞受付処理が実行されないように構成されている(図166のステップS3235cおよび図167参照)。この他、球の打ち出しを行わないようにしたり、払出しを行わないようにしたり、あるいは、変動タイマの減算を行わないようにしてもよい。特に、乱数更新に異常があった場合、乱数更新回路3183に大電流が流れている状態(ラッチアップ状態)である可能性があるため、一度電源をオフにすることを報知するようにしてもよい。   The CPU 304 checks the contents of the first internal information register every time a timer interrupt described later is executed (step S3235a in FIG. 166). This content is used to determine whether or not to perform processing such as stopping the progress of a game when an abnormality occurs. For example, the present embodiment is configured such that the winning acceptance process is not executed when the random number generation circuit 318 detects an abnormality (see step S3235c in FIG. 166 and FIG. 167). In addition, the ball may not be launched, the payout may not be performed, or the variation timer may not be subtracted. In particular, when there is an abnormality in random number update, there is a possibility that a large current is flowing through the random number update circuit 3183 (latch-up state). Good.

ビット番号0は、乱数生成回路318の外部クロック(更新クロック)の異常を示すビットであり、0は異常なし、1は異常ありを示す。ビット番号1〜4は、乱数生成回路318で生成された乱数の異常を、各チャンネル毎に示すビットであり、0は異常なし、1は異常ありを示す。ビット番号5〜7は、不使用(0に固定)である。   Bit number 0 is a bit indicating an abnormality of the external clock (update clock) of the random number generation circuit 318. 0 indicates no abnormality and 1 indicates an abnormality. Bit numbers 1 to 4 are bits indicating an abnormality of the random number generated by the random number generation circuit 318 for each channel, where 0 indicates no abnormality and 1 indicates an abnormality. Bit numbers 5 to 7 are not used (fixed to 0).

第1内部情報レジスタの値が1である場合、CPU304から読み出されると0に設定(クリア)される。なお、内部情報レジスタはCPU304に一度に読み出されるため、第1内部情報レジスタが保持している値を0に設定(クリア)したい場合は、CPU304に第1内部情報レジスタの値を読み出した後に読み出した値を破棄すれば良い。また、上述の通り、システムリセットおよびユーザリセットのいずれかの処理が実行された場合に、この内部情報レジスタは、CPU304から読み出された場合と同様に各ビットは0に設定(クリア)されることとなる。   When the value of the first internal information register is 1, when read from the CPU 304, it is set (cleared) to 0. Since the internal information register is read by the CPU 304 at a time, if the value held in the first internal information register is set to 0 (cleared), the value is read after reading the value of the first internal information register to the CPU 304. You can discard the value. Further, as described above, when either system reset or user reset processing is executed, the internal information register is set (cleared) to 0 as in the case of reading from the CPU 304. It will be.

以上、乱数生成回路318の異常がどのように記憶されているかについて説明したが、この例と同様に上記リセット要因を示す情報(システムリセットおよびユーザリセットのうちのいずれのリセットが発生したのかを識別可能な情報)についても、第1内部情報レジスタに記憶されている。なお、上記説明では、乱数生成チャンネルの異常をビット番号1〜4によってそれぞれのチャンネル毎に表していたが、1つのビットによっていずれかのチャンネルで異常が起きたか否かを表すようにしてもよい(全てのチャンネルで共通にしてもよい)。なお、本実施形態では、内部情報レジスタ3101が割込み制御回路3100内に設けられているが、他の回路に設けられているものであってもよい。なお、割込み制御回路3100の内部レジスタ3101に用意された第2内部情報レジスタおよび第3内部情報レジスタについては後述する。   As described above, how the abnormality of the random number generation circuit 318 is stored has been described. As in this example, information indicating the reset factor (identifying which reset among the system reset and the user reset has occurred) Possible information) is also stored in the first internal information register. In the above description, the abnormality of the random number generation channel is represented for each channel by the bit numbers 1 to 4, but it may be represented by one bit whether an abnormality has occurred in any channel. (It may be common to all channels). In this embodiment, the internal information register 3101 is provided in the interrupt control circuit 3100, but may be provided in another circuit. The second internal information register and the third internal information register prepared in the internal register 3101 of the interrupt control circuit 3100 will be described later.

次に、図148に示す周波数監視回路3182における異常の検出例について、図156を用いて説明する。同図は、周波数監視回路3182における異常の検出例を示す図である。図156には、一番上からそれぞれ、正常時の動作、異常時の動作例1(異常時1)、異常時の動作例2(異常時2)が示されている。これらの例では、マイクロプロセッサ3000の内部クロックと、乱数生成回路318に入力される外部クロック(RCK)に加え、外部クロックの1周期に対する内部クロックの周期の比率が示されている。この検出動作では、外部クロックと内部クロックの周期の比率を監視し、この比率が変化した場合を異常として検出する。   Next, an example of abnormality detection in the frequency monitoring circuit 3182 shown in FIG. 148 will be described with reference to FIG. The figure shows an example of abnormality detection in the frequency monitoring circuit 3182. FIG. 156 shows, from the top, normal operation, abnormal operation example 1 (abnormal 1), and abnormal operation example 2 (abnormal 2), respectively. In these examples, in addition to the internal clock of the microprocessor 3000 and the external clock (RCK) input to the random number generation circuit 318, the ratio of the cycle of the internal clock to one cycle of the external clock is shown. In this detection operation, the ratio of the period between the external clock and the internal clock is monitored, and a case where this ratio changes is detected as an abnormality.

図156(a)に示す正常時の例では、外部クロックの1周期の間に内部クロックが2.5周期ある状態が継続している。すなわち、外部クロックと内部クロックの周期の比率が変化しないため、異常を示す情報は出力されない。   In the normal example shown in FIG. 156 (a), a state where the internal clock has 2.5 cycles continues for one cycle of the external clock. That is, since the ratio of the period between the external clock and the internal clock does not change, information indicating abnormality is not output.

次に、図156(b)に示す異常時の動作例1(異常時1)では、外部クロックの1周期の間に内部クロックが4.5周期ある状態が示されている。図156(a)に示す状態からこの図156(b)に示す状態になった場合には、この時点で異常を示す情報が出力される。   Next, operation example 1 (abnormal time 1) at the time of abnormality shown in FIG. 156 (b) shows a state in which the internal clock has 4.5 cycles in one cycle of the external clock. When the state shown in FIG. 156 (a) is changed to the state shown in FIG. 156 (b), information indicating abnormality is output at this point.

次に、図156(c)に示す異常時の動作例2(異常時2)の最初には、外部クロックの1周期の間に内部クロックが0.5周期ある状態が示されている。仮に、図156(a)に示す状態からこの図156(c)の最初の状態になった場合には、この時点で異常を示す情報が出力される。さらに、図156(c)には、外部クロックの1周期の間に内部クロックが0.5周期ある状態に続き、外部クロックの1周期の間に内部クロックが2.5周期ある状態が継続している。この周期の比率が変化した時点でも異常を示す情報が出力される。   Next, at the beginning of operation example 2 (abnormal time 2) at the time of abnormality shown in FIG. 156 (c), there is shown a state in which the internal clock has 0.5 periods in one period of the external clock. If the state shown in FIG. 156 (a) is changed to the first state shown in FIG. 156 (c), information indicating abnormality is output at this point. Further, in FIG. 156 (c), the state in which the internal clock is 0.5 cycles in one cycle of the external clock continues, and the state in which the internal clock is 2.5 cycles in one cycle of the external clock continues. ing. Information indicating abnormality is output even when the ratio of the period changes.

上記の例では、外部クロックと内部クロックのいずれか一方の周期が異常になると、異常を示す情報が出力されることになる。すなわち、内部クロックを乱数の更新クロックとして使用した場合でも、異常を検出することができる。なお、外部クロックと内部クロックの比率が同じであれば、双方の周波数が変更されても異常を示す情報が出力されない。この場合、例えばプログラム管理エリア内に外部クロック又は内部クロックの周波数を示す情報を記憶させておき、この情報を用いて外部クロック又は内部クロックの異常を検出させることも可能である。なお、更新クロックの異常を検出する方法は上述した方法に限らず、更新クロックの周期の異常を検出可能な方法であれば他の方法を採用しても良い。   In the above example, when one of the external clock and the internal clock becomes abnormal, information indicating abnormality is output. That is, even when the internal clock is used as a random number update clock, an abnormality can be detected. If the ratio between the external clock and the internal clock is the same, no information indicating abnormality is output even if both frequencies are changed. In this case, for example, information indicating the frequency of the external clock or the internal clock can be stored in the program management area, and the abnormality of the external clock or the internal clock can be detected using this information. The method for detecting an abnormality of the update clock is not limited to the above-described method, and other methods may be adopted as long as the abnormality of the update clock cycle can be detected.

続いて、図148に示す乱数監視回路3184における異常の検出例について、図157を用いて説明する。同図は、乱数監視回路3184における異常の検出例を示す図である。この検出例では、1回の乱数の更新毎に更新前後の乱数を比較し、同じ乱数が生成されていないか否かをチェックする。仮に同じ乱数が生成されている場合には、異常を示す情報が出力される。図157(a)の例では、更新前後で同じ乱数が生成されていないため、異常を示す情報は出力されない。これに対して、図157(b)の例では、更新の途中で同じ乱数が生成されており(乱数4が2回生成されている)、この時点(2回目の4が出力された時点)で異常を示す情報が出力される。なお、上記の例では、乱数が更新される度にチェックを行っているが、この乱数更新周期よりも長い所定の周期毎でチェックさせてもよい。   Next, an example of abnormality detection in the random number monitoring circuit 3184 illustrated in FIG. 148 will be described with reference to FIG. This figure is a diagram showing an example of detecting an abnormality in the random number monitoring circuit 3184. In this detection example, the random numbers before and after the update are compared every time the random number is updated, and it is checked whether or not the same random number is generated. If the same random number is generated, information indicating abnormality is output. In the example of FIG. 157 (a), since the same random number is not generated before and after the update, information indicating abnormality is not output. On the other hand, in the example of FIG. 157 (b), the same random number is generated in the middle of the update (random number 4 is generated twice), and at this point (second time point 4 is output) Will output information indicating anomalies. In the above example, the check is performed every time the random number is updated. However, the check may be performed every predetermined cycle longer than the random number update cycle.

上記説明したように乱数生成回路318では、周波数監視回路3182と乱数監視回路3184から異常を示す情報が内部情報レジスタ3101に対して出力される。また、内部情報レジスタ3101の値は、タイマ割込み毎にCPU304によって読み出される。   As described above, in the random number generation circuit 318, information indicating abnormality is output from the frequency monitoring circuit 3182 and the random number monitoring circuit 3184 to the internal information register 3101. Further, the value of the internal information register 3101 is read by the CPU 304 at every timer interruption.

このように周波数監視回路3182および乱数監視回路3184の双方を用いて乱数生成回路318の異常を監視することで、更新クロックの周波数に異常があるが、乱数の更新には異常がない異常状態(乱数監視回路3184のみでは検出できない異常状態)と、更新クロックの周波数に異常がないが、乱数の更新には異常がある異常状態の双方の異常状態を的確に把握することが可能になり、遊技制御の安定化を図ることができる。   By monitoring the abnormality of the random number generation circuit 318 using both the frequency monitoring circuit 3182 and the random number monitoring circuit 3184 as described above, there is an abnormality in the update clock frequency, but there is no abnormality in updating the random number ( An abnormal state that cannot be detected only by the random number monitoring circuit 3184) and an abnormal state in which the frequency of the update clock is normal but there is an abnormality in updating the random number can be accurately grasped. Control can be stabilized.

従来の遊技台では、遊技者に有利な抽選結果が導出されやすくなるように抽選に用いられる乱数に狙いを定めて不正が行われることがあり、遊技の公平性を担保することが困難になっている。しかし、本実施形態の遊技台によれば、上記の乱数生成回路318によって抽選に用いられる乱数の異常を把握したうえで対処することができるため、乱数の狙いうちを抑止して遊技の公平性を担保することができる。なお、周波数監視回路3182および乱数監視回路3184は内部情報レジスタ3101に記憶されている情報に関わらず継続してそれぞれ監視を行っている。   In conventional game machines, fraud may be made by targeting the random numbers used in the lottery so that it is easy to derive the lottery results advantageous to the player, making it difficult to ensure the fairness of the game. ing. However, according to the gaming machine of the present embodiment, the random number generation circuit 318 can deal with the abnormalities of the random numbers used in the lottery, so that the randomness of the random numbers is suppressed and the fairness of the game is suppressed. Can be secured. Note that the frequency monitoring circuit 3182 and the random number monitoring circuit 3184 continuously monitor regardless of the information stored in the internal information register 3101.

ここで、内部情報レジスタ3101の値が、乱数生成回路318により生成される乱数が一巡する周期(乱数生成範囲内の全ての値を各1回出力するのに必要な期間、以下、乱数一巡周期と称する)だけ保持され、その後クリアされる構成であった場合の問題点について図158を用いて説明する。同図は、乱数が一巡する周期とタイマ割込みの周期を比較した図である。図158の一番上には、一番下に示すタイマ割込み周期t4よりも長い乱数一巡周期t1が示されている。また、図158の上から二番目および三番目には、タイマ割込み周期t4よりも短い乱数一巡周期t2およびt3がそれぞれ示されている。   Here, the value of the internal information register 3101 is a cycle in which the random number generated by the random number generation circuit 318 makes a round (a period required to output all the values in the random number generation range once, hereinafter, a random cycle) ) Will be described with reference to FIG. 158. This figure is a comparison of the cycle of the random number and the timer interrupt cycle. A random number round cycle t1 longer than the timer interrupt cycle t4 shown at the bottom is shown at the top of FIG. Further, the second and third from the top in FIG. 158 show random number round cycles t2 and t3 shorter than the timer interrupt cycle t4, respectively.

上述したように内部情報レジスタ3101の内容はタイマ割込み毎に確認される。例えば乱数一巡周期が、図158に示す乱数一巡周期t1のようにタイマ割込み周期t4よりも長い場合、内部情報レジスタ3101に保持された値がクリアされる前にこの値を読み取ることができる。しかし、本実施形態では、乱数生成範囲の最大値を設定することができるため、これに従って乱数一巡周期が短くなってしまう事態が生じ得る。例えば乱数一巡周期が、図158に示す乱数一巡周期t2およびt3のようにタイマ割込み周期t4よりも短い場合、内部情報レジスタ3101に保持された値を読み取る前にこの値がクリアされる場合がある。すなわち、CPU304が異常を示す情報を取得することが出来なくなる場合がある。   As described above, the contents of the internal information register 3101 are confirmed for each timer interrupt. For example, when the random number round cycle is longer than the timer interrupt cycle t4 as in the random round cycle t1 shown in FIG. 158, this value can be read before the value held in the internal information register 3101 is cleared. However, in this embodiment, since the maximum value of the random number generation range can be set, there may occur a situation where the random number cycle period is shortened accordingly. For example, when the random number round cycle is shorter than the timer interrupt cycle t4 as in the random round cycles t2 and t3 shown in FIG. 158, this value may be cleared before reading the value held in the internal information register 3101. . That is, the CPU 304 may not be able to acquire information indicating abnormality.

本実施形態では、内部情報レジスタ3101の値が一旦セットされると、この値が読みとられるまでその値が保持される。すなわち、正常に戻ったか否かにかかわらずこの値が維持される。さらに、CPU304がこの値を読み取ると、読み取られた部分の値がクリアされるようになっている。このため、上記のように乱数一巡周期が変わってしまったとしても、内部情報レジスタ3101から異常を示す情報を取得することができる。なお、異常を示す値が読み取られた後に、異常が継続していれば再度異常を示す値がセットされる。
<主制御部メイン処理>
In this embodiment, once the value of the internal information register 3101 is set, the value is held until this value is read. That is, this value is maintained regardless of whether it has returned to normal. Further, when the CPU 304 reads this value, the value of the read portion is cleared. For this reason, even if the round cycle of the random number has changed as described above, information indicating abnormality can be acquired from the internal information register 3101. If the abnormality continues after the value indicating abnormality is read, the value indicating abnormality is set again.
<Main control unit main processing>

次に、図159を用いて、図75に示す主制御部300のCPU304が実行する主制御部メイン処理について説明する。なお、同図は主制御部メイン処理の流れを示すフローチャートである。   Next, the main control unit main process executed by the CPU 304 of the main control unit 300 shown in FIG. 75 will be described with reference to FIG. This figure is a flowchart showing the flow of main processing of the main control unit.

この主制御部メイン処理は上述のユーザモードにおける処理に相当し、システムリセットがかかった場合でも、ユーザリセットがかかった場合でも実行される処理である。図75に示す主制御部300のRAM308には、大当り用特図1乱数カウンタ、小当り用特図1乱数カウンタ、ハズレ用特図1乱数カウンタ、およびこれらのカウンタの特図2用のカウンタが設けられている。また、そのRAM308には、特図1の保留数、特図1当選乱数、大当り用特図1乱数、小当り用特図1乱数、ハズレ用特図1乱数、特図1当否判定結果、特図1決定結果、特図1変動時間、およびこれらの、保留数や乱数や結果の特図2用のものがそれぞれ記憶される。またRAM308には、当否判定(抽選)の開始を保留することができる最大数(この例では4つ)の領域に区分けされた保留記憶部が特図1と特図2で別々に用意されている。特図1の保留記憶部には、後述するように、特図1当選乱数、大当り用特図1乱数、小当り用特図1乱数、ハズレ用特図1乱数、および特図1変動時間決定用乱数の5つの乱数を1セットにしてこれら5つの乱数が入賞順(保留順)に1セットずつ1領域ごとに格納される。   This main control unit main process corresponds to the above-described process in the user mode, and is a process executed regardless of whether a system reset is applied or a user reset is applied. In the RAM 308 of the main control unit 300 shown in FIG. 75, there are a special jack 1 special random number counter, a small bonus special figure 1 random counter, a lost special figure 1 random number counter, and a special figure 2 counter of these counters. Is provided. In addition, the RAM 308 stores the number of holds shown in FIG. 1, the special figure 1 winning random number, the special jackpot special figure 1 random number, the small bonus special figure 1 random number, the lost special figure 1 random number, the special figure 1 hit determination result, FIG. 1 determination result, special figure 1 variation time, and the number of reservations, random numbers, and result for special figure 2 are stored. In addition, the RAM 308 has separate storage units that are divided into the maximum number of areas (four in this example) that can hold the start of the determination (lottery), separately for the special figure 1 and the special figure 2. Yes. As shown below, the reserved storage unit of Special Figure 1 determines Special Figure 1 winning random numbers, Special Bonus Figure 1 random numbers, Special Bonus Figure 1 random numbers, Loss Special Figure 1 random numbers, and Special Figure 1 variation time determination. One set of five random numbers for use is stored as a set in the winning order (holding order) for each area.

上述したように、図75に示す主制御部300には、電源が投入されると起動信号(リセット信号)を出力する起動信号出力回路(リセット信号出力回路)340を設けている。この起動信号を入力した基本回路302のCPU304は、リセット割込によりリセットスタートしてROM306に予め記憶している制御プログラムに従って図159に示す主制御部メイン処理を実行する。   As described above, the main control unit 300 shown in FIG. 75 is provided with the start signal output circuit (reset signal output circuit) 340 that outputs the start signal (reset signal) when the power is turned on. The CPU 304 of the basic circuit 302 to which this activation signal has been input performs reset start by a reset interrupt, and executes main control unit main processing shown in FIG. 159 in accordance with a control program stored in advance in the ROM 306.

ステップS3001では、初期設定1を行う。この初期設定1では、CPU304のスタックポインタ(SP)へのスタック初期値の設定(仮設定)、割込マスクの設定、I/O310の初期設定、RAM308に記憶する各種変数の初期設定等を行う。   In step S3001, initial setting 1 is performed. In this initial setting 1, the stack initial value is set to the stack pointer (SP) of the CPU 304 (temporary setting), the interrupt mask is set, the I / O 310 is initialized, various variables stored in the RAM 308 are initialized, and the like. .

ステップS3003では、低電圧信号がオンであるか否か、すなわち、電圧監視回路338が、電源制御部660が第2副制御部500を介して主制御部300に供給している電源の電圧値が所定の値(本実施形態では9V)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(CPU304が電源の遮断を検知した場合)には繰り返しこのステップS3003を実行し、低電圧信号がオフの場合(CPU304が電源の遮断を検知していない場合)にはステップS3005に進む。なお、電源が投入された直後で未だ上記所定の値(9V)に達しない場合にも、供給電圧がその所定の値以上になるまでステップS3003は繰り返し実行される。ステップS3005では、初期設定2を行う。   In step S3003, whether or not the low voltage signal is on, that is, the voltage value of the power supply that the voltage monitoring circuit 338 supplies to the main control unit 300 via the second sub control unit 500 by the power supply control unit 660. Is less than a predetermined value (9 V in this embodiment), it is monitored whether or not a low voltage signal indicating that the voltage has decreased is output. Then, when the low voltage signal is on (when the CPU 304 detects that the power supply is cut off), this step S3003 is repeatedly executed, and when the low voltage signal is off (when the CPU 304 does not detect that the power supply is cut off). Then, the process proceeds to step S3005. Even if the predetermined value (9 V) is not yet reached immediately after the power is turned on, step S3003 is repeatedly executed until the supply voltage becomes equal to or higher than the predetermined value. In step S3005, initial setting 2 is performed.

図160は、主制御部メイン処理における初期設定2の流れを示すフローチャートである。まず、ステップS3051では、カウンタ回路312に最大値や更新ソースを決める数値を設定する処理等、カウンタ回路312に関する設定処理を行う。なお、後述する主制御部タイマ割込処理を定期毎に実行するための周期を決める数値をタイマ回路311に設定する処理等、タイマ回路311に関する設定処理も併せて行う。ステップS3052では、第1副制御部400への出力ポートからクリア信号を出力する処理を行い、ステップS3053に進む。ステップS3053では乱数生成回路初期設定処理を行い、次いで、ステップS3054でRAM308への書き込みを許可する設定を行って、この初期設定2は終了になる。   FIG. 160 is a flowchart showing a flow of initial setting 2 in the main process of the main control unit. First, in step S3051, setting processing related to the counter circuit 312 is performed, such as processing for setting a maximum value or a numerical value for determining an update source in the counter circuit 312. Note that setting processing related to the timer circuit 311 is also performed, such as processing for setting a numerical value for determining a cycle for executing a main control unit timer interrupt processing, which will be described later, to the timer circuit 311 at regular intervals. In step S3052, a process of outputting a clear signal from the output port to the first sub control unit 400 is performed, and the process proceeds to step S3053. In step S3053, random number generation circuit initial setting processing is performed. Next, in step S3054, setting to permit writing to the RAM 308 is performed, and the initial setting 2 is completed.

図161は、ステップS3053における乱数生成回路初期設定処理の流れを示すフローチャートである。この乱数生成回路初期設定処理は、上述のユーザモードにおいて行われる、図148に示す乱数生成回路318の初期設定処理である。まず、乱数の取り得る範囲(乱数生成範囲)範囲の設定を行い(ステップS3053a)、ステップS3053bに進む。上述のごとく、図148に示す乱数生成回路318では、生成する乱数の最大幅は0〜65535であり、この最大幅が乱数生成範囲のデフォルトになり、ここでは、図150〜図153を用いて詳細に説明したように、その乱数生成範囲をデフォルトとは異なる範囲に設定することができる。図159に示す主制御部メイン処理は、リセット(システムリセットまたはユーザリセット)がかかる度に実行される処理であるため、乱数生成範囲の設定もリセットがかかる度に実行される。このようにすることで、図169、図170を用いて後述する乱数生成範囲の異常による問題を防止することができる。   FIG. 161 is a flowchart showing the flow of the random number generation circuit initial setting process in step S3053. This random number generation circuit initial setting process is an initial setting process of the random number generation circuit 318 shown in FIG. 148 performed in the above-described user mode. First, a range of random numbers (random number generation range) is set (step S3053a), and the process proceeds to step S3053b. As described above, in the random number generation circuit 318 shown in FIG. 148, the maximum width of the random number to be generated is 0 to 65535, and this maximum width is the default of the random number generation range. Here, FIGS. 150 to 153 are used. As described in detail, the random number generation range can be set to a range different from the default. Since the main process of the main control unit shown in FIG. 159 is a process that is executed every time reset (system reset or user reset) is performed, the setting of the random number generation range is also performed every time reset is performed. By doing in this way, the problem by abnormality of the random number generation range mentioned later using FIGS. 169 and 170 can be prevented.

ステップS3053bでは、図148に示す乱数レジスタ3188の読み出しを行うとともに、読み出した乱数を破棄する処理を行い、ステップS3053cに進む。この処理によって、乱数生成範囲のリセットがかかるごとに乱数レジスタ3188が乱数をラッチすることを許容する許容状態になる。この許容状態においては、仮に異常の可能性がある乱数が乱数レジスタに残っている場合でもすぐに乱数を更新させることができるため、異常の可能性がある乱数の使用を防止することができる。   In step S3053b, the random number register 3188 shown in FIG. 148 is read, and the read random number is discarded, and the process proceeds to step S3053c. By this processing, every time the random number generation range is reset, the random number register 3188 enters an allowable state that allows the random number to be latched. In this permissible state, even if a random number that has a possibility of abnormality remains in the random number register, the random number can be updated immediately, so that the use of a random number that has a possibility of abnormality can be prevented.

本実施形態では、乱数生成回路318では、特図当選乱数の元になる乱数と普図当選乱数とを生成するが、制御状態に応じて出力チャンネルが異なる。すなわち、特図当選乱数の元になる乱数は、非確率変動中(特図低確率状態)にはチャンネルCH1から出力され、確率変動中(特図高確率状態)にはチャンネルCH2から出力される。また、普図当選乱数は、普図低確率状態(非電サポ中)にはチャンネルCH3から出力され、普図高確率状態(電サポ中)にはチャンネルCH4から出力される。なお、乱数生成回路318は、特図当選乱数そのものを生成するものであってもよいし、特図当選乱数の元になる乱数を生成するものであってもよい。また、普図当選乱数そのものを生成するものであってもよいし、普図当選乱数の元になる乱数を生成するものであってもよい。ステップS3053cでは、これら4チャンネル総てのチャンネルについてステップS3053aとステップS3053bが実行されたか否かを判定し、全チャンネルについて終了していなければ、ステップS3053aに戻り、1チャンネルごとに未了のチャンネルについて処理を行う。なお、乱数生成範囲の設定は、状態に応じて使用されているチャンネルのみを実行してもよいし、乱数生成範囲を設定されるチャンネルのみ実行するようにしてもよい。一方、全チャンネルについて終了していれば、この乱数生成回路初期設定処理は終了になる。   In the present embodiment, the random number generation circuit 318 generates a random number that is the basis of the special figure winning random number and the universal winning random number, but the output channel differs depending on the control state. That is, the random number that is the basis of the special figure winning random number is output from the channel CH1 during non-probability fluctuation (special figure low probability state), and is output from the channel CH2 during probability fluctuation (special figure high probability state). . Further, the normal winning random number is output from the channel CH3 in the normal low probability state (during non-electric support) and is output from the channel CH4 in the normal high probability state (during electric support). Note that the random number generation circuit 318 may generate the special figure winning random number itself, or may generate a random number that is the basis of the special figure winning random number. Further, the normal winning random number itself may be generated, or the random number that is the basis of the normal winning random number may be generated. In step S3053c, it is determined whether or not step S3053a and step S3053b have been executed for all four channels. If all the channels have not been completed, the process returns to step S3053a for each unfinished channel. Process. Note that the setting of the random number generation range may be executed only for the channel used according to the state, or may be executed only for the channel for which the random number generation range is set. On the other hand, if all the channels have been completed, this random number generation circuit initial setting process is completed.

なお、主制御部のタイマ割込みはこの時点では禁止されており、乱数生成回路初期設定処理はタイマ割込み許可前に行っていることになるため、新たに乱数がラッチされたとしても各種抽選に使用されることはなく、抽選処理の安定化を図ることができる。   Note that the timer interrupt of the main control unit is prohibited at this point, and the random number generator initial setting process is performed before the timer interrupt is permitted. The lottery process can be stabilized.

ところで、本実施例では、システムリセットが発生した(乱数の更新が停止されている)場合、および例えばユーザリセットが発生した場合のようにユーザプログラムが最初から実行される(乱数の更新が行われている)場合のいずれの場合であっても必ず乱数回路初期化処理が実行されるように構成されている。必ずしもこのように構成する必要はないが、このように構成することで、ユーザプログラムの解析結果と乱数生成回路318の動作が合わなくなるため、基本回路302の動作の解析が困難になり、不正を防止することができる。従って、不正により基本回路302の動作が不安定にされることがなく、遊技制御の安定化を図ることができる。仮に、不正により基本回路302の動作が解析された場合、遊技者に有利な操作が行われてしまう虞があるが、上記の構成であればこのような不正が防止できるため、遊技制御の安定化を図ることができる。   By the way, in this embodiment, the user program is executed from the beginning (the random number is updated) when a system reset occurs (update of random numbers is stopped) and when a user reset occurs, for example. The random number circuit initialization process is always executed in any case. This configuration is not necessarily required. However, with this configuration, the analysis result of the user program and the operation of the random number generation circuit 318 do not match, which makes it difficult to analyze the operation of the basic circuit 302. Can be prevented. Therefore, the operation of the basic circuit 302 is not unstable due to fraud, and the game control can be stabilized. If the operation of the basic circuit 302 is analyzed by fraud, there is a possibility that an operation advantageous to the player may be performed. However, with the above configuration, such fraud can be prevented, so that game control is stable. Can be achieved.

さらに、乱数生成回路318が乱数更新を行うか否かに関わらず、CPU304に乱数生成回路初期設定処理を実行する指示を行わせた場合、ユーザリセットが実行された場合の処理を統一することができる。すなわち、ユーザリセット後に不安定な状態となった場合にも分岐処理を行わずにすむため、遊技制御の安定化を図ることができる。なお、上述した内容はユーザリセットがかかった場合について述べたが、システムリセットがかかった場合についても同様の効果を得ることができる。   Furthermore, regardless of whether or not the random number generation circuit 318 performs the random number update, if the CPU 304 is instructed to execute the random number generation circuit initial setting process, the process when the user reset is performed may be unified. it can. That is, even if the state becomes unstable after the user reset, it is not necessary to perform the branch process, so that the game control can be stabilized. In addition, although the above-mentioned content described the case where a user reset was applied, the same effect can be acquired also when a system reset is applied.

なお、上述した通り、本実施例では、システムリセットが発生した場合と、ユーザリセット等が発生した場合とで乱数生成回路初期設定処理の処理内容が同一となっているが、この処理内容をシステムリセットが発生した場合と、ユーザリセット等が発生した場合とで異ならせるようにしてもよい。具体的には、ユーザリセットが発生した場合には、最大値を設定する処理(最大値設定レジスタにROM306に記憶されている対応CHの最大値をライトする処理)を実行する一方で、ユーザリセット等が発生した時には、最大値を確認する処理(最大値設定レジスタの値をリードしてROM306に記憶されている対応するCHの最大値と比較する処理)を行うとともに、最大値が一致しなかった場合には所定の処理(例えば、遊技の進行を停止させる処理、外部に異常を示す信号を送信する処理、異常を報知する処理、異常が発生したことを記憶する処理など)を実行するように構成してもよい。なお、システムリセットが発生したのかユーザリセット等が発生したのかを識別方法としては、内部情報レジスタ(詳細は後述)に記憶されている情報を参照するようにすればよい。   As described above, in the present embodiment, the processing content of the random number generation circuit initial setting processing is the same when a system reset occurs and when a user reset occurs, but this processing content is You may make it differ by the case where reset generate | occur | produces and the case where user reset etc. generate | occur | produce. Specifically, when a user reset occurs, a process for setting the maximum value (a process for writing the maximum value of the corresponding CH stored in the ROM 306 in the maximum value setting register) is executed while the user reset is performed. When the error occurs, the maximum value is confirmed (the value of the maximum value setting register is read and compared with the maximum value of the corresponding CH stored in the ROM 306), and the maximum values do not match. In the event of a failure, a predetermined process (for example, a process for stopping the progress of a game, a process for transmitting a signal indicating an abnormality to the outside, a process for notifying an abnormality, a process for storing the occurrence of an abnormality, etc.) is executed. You may comprise. It should be noted that as a method for identifying whether a system reset or a user reset has occurred, information stored in an internal information register (details will be described later) may be referred to.

図159に示す主制御部メイン処理におけるステップS3007では、電源の遮断前(電断前)の状態に復帰するか否かの判定を行い、電断前の状態に復帰しない場合(主制御部300の基本回路302を初期状態にする場合)にはRWMクリア処理(ステップS3013)に進む。   In step S3007 in the main process of the main control unit shown in FIG. 159, it is determined whether or not to return to the state before power interruption (before power interruption). When the basic circuit 302 is set to the initial state, the process proceeds to the RWM clear process (step S3013).

具体的には、最初に、図2に示す電源基板182に設けたRAMクリアスイッチ180を遊技店の店員などが操作した場合に送信されるRAMクリア信号がオン(操作があったことを示す)であるか否か、すなわちRAMクリアが必要であるか否かを判定し、RAMクリア信号がオンの場合(RAMクリアが必要な場合)には、基本回路302を初期状態にすべくステップS3013に進む。一方、RAMクリア信号がオフの場合(RAMクリアが必要でない場合)には、RAM308に設けた電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、この電源ステータスの情報がサスペンドを示す情報であるか否かを判定する。そして、電源ステータスの情報がサスペンドを示す情報でない場合には、基本回路302を初期状態にすべくステップS3013に進み、電源ステータスの情報がサスペンドを示す情報である場合には、RAM308の所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出し、算出したチェックサムの結果が、電断前にRAM308に設定した値と一致するか否か(チェックサムの結果が正常であるか否か)を判定する。そして、チェックサムの結果が特定の値の場合(チェックサムの結果が正常である場合)には電断前の状態に復帰すべくステップS3009に進み、チェックサムの結果が特定の値以外である場合(チェックサムの結果が異常である場合)には、パチンコ機100を初期状態にすべくステップS3013に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS3013に進む。   Specifically, first, a RAM clear signal transmitted when a store clerk or the like of a game store operates the RAM clear switch 180 provided on the power supply board 182 shown in FIG. 2 (indicating that there has been an operation). If the RAM clear signal is on (RAM clear is necessary), the process goes to step S3013 to set the basic circuit 302 to the initial state. move on. On the other hand, when the RAM clear signal is OFF (when the RAM clear is not necessary), the power status information stored in the power status storage area provided in the RAM 308 is read, and the power status information is information indicating suspend. It is determined whether or not. If the power status information is not information indicating suspend, the process proceeds to step S3013 to set the basic circuit 302 to an initial state. If the power status information is information indicating suspend, a predetermined area of the RAM 308 is set. A checksum is calculated by adding all 1-byte data stored in (for example, all areas) to a 1-byte register whose initial value is 0. The result of the calculated checksum is It is determined whether or not the value matches the value set in the RAM 308 (whether or not the checksum result is normal). If the checksum result is a specific value (if the checksum result is normal), the process proceeds to step S3009 to return to the state before the power interruption, and the checksum result is other than the specific value. In the case (when the result of the checksum is abnormal), the process proceeds to step S3013 to set the pachinko machine 100 to the initial state. Similarly, if the power status information indicates information other than “suspend”, the process advances to step S3013.

ステップS3009では、データ書き戻し処理を行う。このデータ書き戻し処理では、電断時にRAM308に設けられたスタックポインタ退避領域に記憶しておいたスタックポインタの値を読み出し、スタックポインタに再設定(本設定)する。また、電断時にRAM308に設けられたレジスタ退避領域に記憶しておいた各レジスタの値を読み出し、各レジスタに再設定した後、割込許可の設定を行う。以降、CPU304が、再設定後のスタックポインタやレジスタに基づいて制御プログラムを実行する結果、パチンコ機100は電源断時の状態に復帰する。すなわち、電断直前にタイマ割込処理(後述)に分岐する直前に行った命令の次の命令から処理を再開する。また、図75に示す主制御部300における基本回路302に搭載されているRAM308には、送信情報記憶領域が設けられている。このステップS3009では、その送信情報記憶領域に、復電コマンドをセットする。この復電コマンドは、電源断時の状態に復帰したことを表すコマンドであり、後述する、主制御部300のタイマ割込処理におけるステップS231において、第1副制御部400へ送信される。   In step S3009, data write-back processing is performed. In this data write-back process, the value of the stack pointer stored in the stack pointer save area provided in the RAM 308 at the time of power interruption is read and reset to the stack pointer (this setting). In addition, the value of each register stored in the register save area provided in the RAM 308 at the time of power interruption is read out and reset in each register, and then the interrupt permission is set. Thereafter, as a result of the CPU 304 executing the control program based on the reset stack pointer and registers, the pachinko machine 100 returns to the state when the power is turned off. That is, the processing is resumed from the instruction next to the instruction executed immediately before branching to the timer interrupt process (described later) immediately before the power interruption. In addition, a transmission information storage area is provided in the RAM 308 mounted on the basic circuit 302 in the main control unit 300 shown in FIG. In step S3009, a power recovery command is set in the transmission information storage area. This power recovery command is a command indicating that the power has been restored to the state at the time of power-off, and is transmitted to the first sub-control unit 400 in step S231 in the timer interrupt process of the main control unit 300, which will be described later.

ステップS3011では、WDT3141を起動させる処理を行う。ここでは、WDT3141の起動許可及び初期値の設定等を行う。なお、本実施形態では、WDT3141に、初期値として32.8msに相当する数値を設定する。   In step S3011, processing for starting WDT 3141 is performed. Here, activation permission of WDT 3141, setting of an initial value, and the like are performed. In the present embodiment, a numerical value corresponding to 32.8 ms is set as an initial value in WDT 3141.

ステップS3013では、RWMクリア処理を行う。このRWMクリア処理では、RAM308の全ての記憶領域の初期化を行う。また、主制御部のタイマ割込み許可の設定、スタックポインタへのスタック初期値の設定(本設定)なども併せて行う。さらにここで、主制御部300のRAM308に設けられた送信情報記憶領域に正常復帰コマンドをセットする。この正常復帰コマンドは、主制御部300のRWMクリア処理(ステップS3013)が行われたことを表すコマンドであり、復電コマンドと同じく、主制御部300のタイマ割込処理におけるステップS231において、第1副制御部400へ送信される。ステップS3015では、ステップS3011と同様、WDT3141を起動させる処理を行う。   In step S3013, RWM clear processing is performed. In this RWM clear process, all storage areas in the RAM 308 are initialized. In addition, setting of timer interrupt permission of the main control unit, setting of the stack initial value to the stack pointer (this setting), etc. are also performed. Further, here, a normal return command is set in the transmission information storage area provided in the RAM 308 of the main control unit 300. This normal return command is a command indicating that the RWM clear process (step S3013) of the main control unit 300 has been performed. Like the power recovery command, in step S231 in the timer interrupt process of the main control unit 300, 1 is transmitted to the sub-control unit 400. In step S3015, similarly to step S3011, processing for starting WDT 3141 is performed.

なお、本実施例では、少なくともタイマ割込み許可の設定を行った後の主制御部メイン処理においてWDT3141のリスタートを行わず、後述する主制御部タイマ割込処理でのみWDT3141のリスタート(詳細は後述)を行うように構成するとともに、主制御部のタイマ割込み許可の設定後にWDT3141を起動させる処理を行うように構成している。このように構成することで、正常に主制御部のタイマ割込処理が実行されている場合にのみWDT3141のカウント値が初期設定値(本実施形態では32.8ms)を超えることなく(WDT3141割込が発生せずに)、その後の処理が行われるようになる。特に、主制御部メイン処理で乱数生成回路から乱数を取得(ラッチされた乱数の取得のみ、または乱数のラッチおよびラッチされた乱数の取得)する遊技台においては、主制御部に異常がある場合(主制御部タイマ割込処理が正常に実行されてない場合)に乱数が取得されてしまうことを防止することができる。   In the present embodiment, WDT 3141 is not restarted in the main control unit main process after at least setting of timer interrupt permission, and WDT 3141 is restarted only in the main control unit timer interrupt process described later (for details) And a process for starting the WDT 3141 after setting the timer interrupt permission of the main control unit. With this configuration, the count value of WDT 3141 does not exceed the initial set value (32.8 ms in this embodiment) only when the timer interrupt process of the main control unit is normally executed (WDT 3141%). And subsequent processing is performed. Especially when there is an abnormality in the main control unit in a game machine that acquires a random number from the random number generation circuit in the main process of the main control unit (only acquisition of the latched random number, or latching of the random number and acquisition of the latched random number) It is possible to prevent random numbers from being acquired (when the main control unit timer interrupt process is not normally executed).

ステップS3017では、基本乱数初期値更新処理を行う。ここにいう基本乱数とは、ソフトウェア乱数である、大当り用特図乱数、小当り用特図乱数、およびハズレ用特図乱数が相当する。なお、各乱数には特図1用の乱数と特図2用の乱数が存在するが、以降の説明では、特に断りを入れない限り両者を区別することなく単に特図として説明する。この基本乱数初期値更新処理では、大当り用特図乱数カウンタ、小当り用特図乱数カウンタ、およびハズレ用特図乱数カウンタそれぞれの初期値を生成するための初期値生成用乱数カウンタを更新する。各カウンタがRAM308に設けられている。なお、初期値生成用乱数カウンタは、後述するステップS204でも更新する。   In step S3017, basic random number initial value update processing is performed. Here, the basic random number corresponds to a big hit special figure random number, a small hit special figure random number, and a lost special figure random number, which are software random numbers. Note that each random number includes a random number for special figure 1 and a random number for special figure 2, but in the following description, unless otherwise noted, both will be described as a special figure without distinction. In this basic random number initial value updating process, the initial value generating random number counter for generating the initial values of the big hit special figure random number counter, the small hit special figure random number counter, and the lost special figure random number counter is updated. Each counter is provided in the RAM 308. The initial value generation random number counter is also updated in step S204 described later.

ステップS3019では演出乱数更新処理を行う。ここにいう演出乱数もソフトウェア乱数であって、この演出乱数は、演出を決定する元になる乱数のことであり、本実施形態では、後述する先読み予告を実行するか否かを抽選する際に用いられる乱数等が相当する。この演出乱数更新処理では、RAM308に設けられた演出乱数カウンタを更新する。なお、演出乱数カウンタは、後述するステップS211でも更新する。   In step S3019, effect random number update processing is performed. The effect random number here is also a software random number, and this effect random number is a random number from which the effect is determined. In the present embodiment, when the lottery is executed to determine whether or not to perform a prefetch notice described later. It corresponds to the random number used. In this effect random number update process, the effect random number counter provided in the RAM 308 is updated. The effect random number counter is also updated in step S211 described later.

主制御部300は、所定の周期ごとに開始するタイマ割込処理を行っている間を除いて、ステップS3017およびステップS3019の処理を繰り返し実行する。これらのステップS3017およびステップS3019は、主処理の一例に相当する。
<主制御部タイマ割込処理>
The main control unit 300 repeatedly executes the processes of step S3017 and step S3019 except during the timer interrupt process starting every predetermined cycle. These steps S3017 and S3019 correspond to an example of main processing.
<Main control unit timer interrupt processing>

次に、図162を用いて、主制御部300のCPU304が実行する主制御部タイマ割込処理について説明する。なお、同図は主制御部タイマ割込処理の流れを示すフローチャートである。   Next, the main control unit timer interrupt process executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of the main control unit timer interrupt process.

図75に示す主制御部300は、所定の周期(本実施形態では約4msに1回)でタイマ割込信号を発生するタイマ回路311を備えており、このタイマ割込信号を契機として主制御部タイマ割込処理を所定の周期で開始する。   The main control unit 300 shown in FIG. 75 includes a timer circuit 311 that generates a timer interrupt signal at a predetermined cycle (in this embodiment, about once every 4 ms), and the main control is triggered by this timer interrupt signal. The part timer interrupt process is started at a predetermined cycle.

ステップS3201では、タイマ割込スタート処理を行う。このタイマ割込スタート処理では、CPU304の各レジスタの値をスタック領域に一時的に退避する処理などを行う。ステップS3203では、WDT3141のカウント値が初期設定値(本実施形態では32.8ms)を超えてWDT3141割込が発生しないように(処理の異常を検出しないように)、WDT3141を定期的に(本実施形態では、主制御部タイマ割込の周期である約4msに1回)リスタートを行う。   In step S3201, timer interrupt start processing is performed. In this timer interrupt start process, a process of temporarily saving each register value of the CPU 304 to the stack area is performed. In step S3203, the WDT 3141 count value of the WDT 3141 exceeds the initial setting value (32.8 ms in the present embodiment) and the WDT 3141 interrupt does not occur (a process abnormality is not detected). In the embodiment, the restart is performed once every about 4 ms, which is the period of the main control unit timer interrupt.

ステップS3205では、入力ポート状態更新処理を行う。この入力ポート状態更新処理では、I/O310の入力ポートを介して、各種の球検出センサを含む図75に示す各種センサ320の検出信号を入力して検出信号の有無を監視し、RAM308に各種センサ320ごとに区画して設けた信号状態記憶領域に記憶する。球検出センサの検出信号を例にして説明すれば、前回のタイマ割込処理(約8ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた前回検出信号記憶領域から読み出し、この情報をRAM308に各々の球検出センサごとに区画して設けた前々回検出信号記憶領域に記憶し、前回のタイマ割込処理(約4ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた今回検出信号記憶領域から読み出し、この情報を上述の前回検出信号記憶領域に記憶する。また、今回検出した各々の球検出センサの検出信号を、上述の今回検出信号記憶領域に記憶する。   In step S3205, input port state update processing is performed. In this input port state update process, the detection signals of various sensors 320 shown in FIG. 75 including various ball detection sensors are input via the input port of the I / O 310 to monitor the presence or absence of the detection signals, and various kinds of data are stored in the RAM 308. The data is stored in a signal state storage area provided for each sensor 320. If the detection signal of the sphere detection sensor is described as an example, information on the presence or absence of the detection signal of each sphere detection sensor detected in the previous timer interruption process (about 8 ms before) is stored in the RAM 308 for each sphere detection sensor. This information is read out from the previous detection signal storage area partitioned and stored in the RAM 308 in the previous detection signal storage area partitioned for each sphere detection sensor, and the previous timer interrupt processing (about 4 ms before) ) Is read from the current detection signal storage area provided for each sphere detection sensor in the RAM 308, and this information is read out from the previous detection signal storage area described above. To remember. Further, the detection signal of each sphere detection sensor detected this time is stored in the above-described current detection signal storage area.

また、ステップS3205では、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域の各記憶領域に記憶した各々の球検出センサの検出信号の有無の情報を比較し、各々の球検出センサにおける過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致するか否かを判定する。一個の遊技球が一つの球検出センサを通過する間に、約4msという非常に短い間隔で起動を繰り返すこの主制御部タイマ割込処理は何回か起動する。このため、主制御部タイマ割込処理が起動する度に、上述のステップS3205では、同じ遊技球が同じ球検出センサを通過したことを表す検出信号を確認することになる。この結果、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域それぞれに、同じ遊技球が同じ球検出センサを通過したことを表す検出信号が記憶される。すなわち、遊技球が球検出センサを通過し始めたときには、前々回検出信号無し、前回検出信号有り、今回検出信号有りになる。本実施形態では、球検出センサの誤検出やノイズを考慮して、検出信号無しの後に検出信号が連続して2回記憶されている場合には、入賞があったと判定する。図75に示す主制御部300のROM306には、入賞判定パターン情報(本実施形態では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)が記憶されている。このステップS3205では、各々の球検出センサにおいて過去3回分の検出信号の有無の情報が、予め定めた入賞判定パターン情報(本実施形態では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)と一致した場合に、一般入賞口226、可変入賞口234、第1特図始動口230、および第2特図始動口232への入球、または普図始動口228の通過があったと判定する。すなわち、これらの入賞口234、230やこれらの始動口230、232、228への入賞があったと判定する。例えば、一般入賞口226への入球を検出する一般入賞口センサにおいて過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致した場合には、一般入賞口226へ入賞があったと判定し、以降の一般入賞口226への入賞に伴う処理を行うが、過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致しなかった場合には、以降の一般入賞口226への入賞に伴う処理を行わずに後続の処理に分岐する。なお、主制御部300のROM306には、入賞判定クリアパターン情報(本実施形態では、前々回検出信号有り、前回検出信号無し、今回検出信号無しであることを示す情報)が記憶されている。入賞が一度あったと判定した後は、各々の球検出センサにおいて過去3回分の検出信号の有無の情報が、その入賞判定クリアパターン情報に一致するまで入賞があったとは判定せず、入賞判定クリアパターン情報に一致すれば、次からは上記入賞判定パターン情報に一致するか否かの判定を行う。なお、本実施形態では、一般入賞口226、可変入賞口234、第1特図始動口230、第2特図始動口232、普図始動口228へ入賞があったか否かの判定として、前々回、前回および今回の検出信号が予め定められた入賞判定パターン情報と一致した否かを判定していたが、このような方法に限らず、例えば、前回および今回の検出信号が予め定められた入賞判定パターン情報(例えば、前回検出信号なし、今回検出信号あり(いわゆるアップエッジ))と一致したか否かを判定するように構成してもよい。すなわち、球検出センサからの検出信号の有無を監視し、この監視結果の履歴が予め定められたパターンと一致したか否かを判定するように構成すればよい。   In step S3205, the information on the presence / absence of the detection signal of each sphere detection sensor stored in each storage area of the detection signal storage area, the previous detection signal storage area, and the current detection signal storage area is compared. It is determined whether or not the information on the presence or absence of detection signals for the past three times in the ball detection sensor matches the winning determination pattern information. This main control unit timer interruption process that is repeatedly started at a very short interval of about 4 ms is started several times while one game ball passes through one ball detection sensor. For this reason, every time the main control unit timer interrupt process is activated, in step S3205 described above, a detection signal indicating that the same game ball has passed the same ball detection sensor is confirmed. As a result, a detection signal indicating that the same game ball has passed the same ball detection sensor is stored in each of the detection signal storage area, the previous detection signal storage area, and the current detection signal storage area. That is, when the game ball starts to pass through the ball detection sensor, there is no detection signal before, a previous detection signal, and a current detection signal. In the present embodiment, in consideration of erroneous detection of the sphere detection sensor and noise, it is determined that there is a prize when the detection signal is stored twice continuously after no detection signal. In the ROM 306 of the main control unit 300 shown in FIG. 75, winning determination pattern information (in this embodiment, information indicating that there is no previous detection signal, that there is a previous detection signal, and that there is a current detection signal) is stored. In this step S3205, information on the presence or absence of detection signals for the past three times in each sphere detection sensor is predetermined winning determination pattern information (in this embodiment, no previous detection signal, previous detection signal, current detection signal present). In the case of the general winning port 226, the variable winning port 234, the first special figure starting port 230, and the second special figure starting port 232, or the ordinary drawing starting port 228. Is determined to have passed. In other words, it is determined that there has been a winning at these winning ports 234, 230 and the starting ports 230, 232, 228. For example, when the information on the presence / absence of the detection signals for the past three matches with the above-described winning determination pattern information in the general winning opening sensor for detecting the winning at the general winning opening 226, there is a winning at the general winning opening 226. If the information on the presence / absence of detection signals for the past three times does not match the above-described winning determination pattern information, the subsequent general winnings are performed. The process branches to the subsequent process without performing the process associated with winning the prize to the mouth 226. Note that the ROM 306 of the main control unit 300 stores winning determination clear pattern information (in this embodiment, information indicating that there is a detection signal before the previous time, no previous detection signal, and no current detection signal). After it is determined that there has been a single win, it is not determined that there has been a win until the information on the presence or absence of detection signals for the past three times matches the winning determination clear pattern information in each ball detection sensor, and the winning determination is cleared. If it matches the pattern information, it is next determined whether or not it matches the winning determination pattern information. In the present embodiment, as a determination as to whether or not there has been a prize at the general prize opening 226, the variable prize opening 234, the first special figure start opening 230, the second special figure start opening 232, or the ordinary figure start opening 228, Although it has been determined whether or not the previous and current detection signals coincide with the predetermined winning determination pattern information, the present invention is not limited to such a method. For example, the previous and current detection signals are determined to be predetermined. You may comprise so that it may determine whether it corresponds with pattern information (For example, there is no last detection signal, this time detection signal exists (what is called up edge)). That is, it may be configured to monitor whether or not there is a detection signal from the sphere detection sensor and determine whether or not the history of the monitoring result matches a predetermined pattern.

ステップS3207およびステップS3209では、基本乱数初期値更新処理および基本乱数更新処理を行う。これらの基本乱数初期値更新処理および基本乱数更新処理では、上記ステップS3017で行った初期値生成用乱数カウンタの値の更新を行い、次に主制御部300で使用する、大当り用特図乱数、小当り用特図乱数、およびハズレ用特図乱数それぞれを生成するための乱数カウンタを更新する。例えば、大当り用特図乱数として取り得る数値範囲が0〜100とすると、RAM308に設けた大当り用特図乱数を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が101であれば0を元の乱数カウンタ記憶領域に記憶する。また、取得した値に1を加算した結果、乱数カウンタが一周していると判定した場合にはそれぞれの乱数カウンタに対応する初期値生成用乱数カウンタの値を取得し、乱数カウンタの記憶領域にセットする。例えば、0〜100の数値範囲で変動する大当り用特図乱数生成用の乱数カウンタから値を取得し、取得した値に1を加算した結果が、RAM308に設けた所定の初期値記憶領域に記憶している前回設定した初期値と等しい値(例えば7)である場合に、大当り用特図乱数生成用の乱数カウンタに対応する初期値生成用乱数カウンタから値を初期値として取得し、大当り用特図乱数生成用の乱数カウンタにセットすると共に、大当り用特図乱数生成用の乱数カウンタが次に1周したことを判定するために、今回設定した初期値を上述の初期値記憶領域に記憶しておく。なお、本実施形態では特図1に関する乱数を取得するためのカウンタと特図2に関する乱数を取得するためのカウンタとを別々に設けているが、同一のカウンタを用いてもよい。   In step S3207 and step S3209, a basic random number initial value update process and a basic random number update process are performed. In these basic random number initial value update processing and basic random number update processing, the value of the initial value generation random number counter performed in step S3017 is updated, and then the jackpot special figure random number used in the main control unit 300, The random number counter for generating the special figure random number for small hits and the special figure random number for lose is updated. For example, if the possible numerical range for the big hit special figure random number is 0 to 100, the value is acquired from the random number counter storage area for generating the big hit special figure random number provided in the RAM 308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 101, 0 is stored in the original random number counter storage area. If it is determined that the random number counter has made one round as a result of adding 1 to the acquired value, the value of the initial value generating random number counter corresponding to each random number counter is acquired and stored in the storage area of the random number counter. set. For example, a value is acquired from a random counter for generating a special jackpot random number for big hit that fluctuates in a numerical range of 0 to 100, and a result obtained by adding 1 to the acquired value is stored in a predetermined initial value storage area provided in the RAM 308. If the value is equal to the previously set initial value (for example, 7), the value is acquired as the initial value from the initial value generating random number counter corresponding to the random number counter for generating special jackpot random numbers, The initial value set this time is stored in the above-described initial value storage area in order to determine that the special counter random number counter for generating a big hit special round has been made next round. Keep it. In the present embodiment, the counter for acquiring the random number related to the special figure 1 and the counter for acquiring the random number related to the special figure 2 are separately provided, but the same counter may be used.

ステップS3211では、演出乱数更新処理を行う。この演出乱数更新処理では、上記ステップS3019と同様に、主制御部300で使用する演出用乱数を生成するための乱数カウンタを更新する。ステップS3213では、タイマ更新処理を行う。このタイマ更新処理では、普通図柄表示装置210に図柄を変動・停止表示する時間を計時するための普図表示図柄更新タイマ、第1特図表示装置212に図柄を変動・停止表示する時間を計時するための特図1表示図柄更新タイマ、第2特図表示装置214に図柄を変動・停止表示する時間を計時するための特図2表示図柄更新タイマ、所定の入賞演出時間、所定の開放時間、所定の閉鎖時間、所定の終了演出期間などを計時するためのタイマなどを含む各種タイマを更新する。   In step S3211, an effect random number update process is performed. In this effect random number update process, the random number counter for generating the effect random numbers used in the main control unit 300 is updated as in step S3019. In step S3213, timer update processing is performed. In this timer update processing, the normal symbol display symbol update timer for timing the time for the symbol to be changed / stopped on the normal symbol display device 210, and the time for the symbol to be changed / stopped to be displayed on the first special symbol display device 212 are timed. Special symbol 1 display symbol update timer for performing, special symbol 2 display symbol update timer for measuring the time for the symbol to be changed and stopped on the second special symbol display device 214, a predetermined winning effect time, a predetermined opening time Various timers including a timer for measuring a predetermined closing time, a predetermined end effect period, and the like are updated.

ステップS3215では、入賞口カウンタ更新処理を行う。この入賞口カウンタ更新処理では、入賞口234、230や始動口230、232、228に入賞があった場合に、RAM308に各入賞口ごと、あるいは各始動口ごとに設けた賞球数記憶領域の値を読み出し、1を加算して、元の賞球数記憶領域に設定する。   In step S3215, winning prize counter update processing is performed. In this winning opening counter update process, when winning holes 234, 230 and starting holes 230, 232, 228 are won, the RAM 308 stores the winning ball number storage area provided for each winning hole or for each starting hole. The value is read out, 1 is added, and the original prize ball number storage area is set.

また、ステップS3217では、入賞受付処理を行う。この入賞受付処理では、第1特図始動口230に入賞があり、且つ、保留している特図1変動遊技の数が所定数(本実施形態では4)未満である場合には、所定の始動情報を取得する。すなわち、保留数が所定数未満であれば、図75に示す乱数生成回路318から、特図1当選乱数の元になるハードウェア乱数を得、加工を施すことによって特図1当選乱数を取得する。この特図1当選乱数を取得する処理をより具体的に説明すると、乱数生成回路318の特図1に対応するチャンネルの乱数をラッチするためのラッチ信号を出力する処理(具体的には、ソフトラッチレジスタ3186の特図1のチャンネルに対応する領域に所定の値を書き込む処理)を実行するとともに、このラッチ信号によってラッチされた乱数を取得するためのリード信号を出力する処理(具体的には、乱数レジスタ3188のうちの特図1のチャンネルに対応する乱数レジスタに対してリード信号を出力する処理)を実行してラッチされている乱数を取得するとともに、取得した乱数を加工(例えば、ユーザプログラムで生成しているソフトウェア乱数を加算する処理)する処理である。なお、第2特図始動口232に入賞があった場合も同様の処理を実行する。なお、本実施形態では、乱数生成回路318から乱数を取得する方法として特図1および2に対応するチャンネルの乱数をラッチするためのラッチ信号を出力する処理を行った後にラッチした乱数を取得するリード信号を出力する方法を採用しているが、特図1および2に対応するチャンネルの乱数を直読みする処理(具体的には、乱数レジスタ3188の値を直接リードする処理)を実行して取得するようにしてもよい。さらに、本実施形態では、特図1および2のラッチされた乱数を取得するためのリード信号を出力する処理(乱数レジスタ3188の値を直接リードする処理とは異なる)を主制御部タイマ割込み処理において実行するように構成しているが、この処理に関しては上述した主制御部メイン処理において実行するように構成してもよく、この場合は、後述する特図関連抽選処理を合わせて主制御部メイン処理において実行するように構成すればよく、特図1および2に対応するチャンネルの乱数値を直読みする処理を実行する場合においては、特図関連抽選処理のみを主制御部メイン処理おいて実行するように構成すればよい。また、本実施形態では、特図1当選乱数および特図2当選乱数それぞれを、乱数生成回路318から取得した乱数を加工して導出しているが、このような場合に限らず、乱数生成回路318から取得した乱数を特図1当選乱数および特図2当選乱数としてもよい。また、RAM308に設けた乱数カウンタ記憶領域から、大当り用特図1乱数、小当り用特図1乱数、およびハズレ用特図1乱数を取得する。大当り用特図1乱数、小当り用特図1乱数、およびハズレ用特図1乱数は、RAM308に設けられたソフトウェア乱数カウンタから導出されたソフトウェア乱数を加工した値(ソフトウェア乱数の値+Rレジスタの値+1)である。さらに、図75に示すカウンタ回路312から特図1変動時間決定用乱数を取得する。図75に示す乱数生成回路318、カウンタ回路312、RAM308に設けられたソフトウェア乱数カウンタ、および乱数加工を施す主制御部300を併せたものが、始動情報を生成して導出するものであり、始動情報導出手段(第1の始動情報導出手段,第2の始動情報導出手段)の一例に相当する。ここで取得された各種乱数(始動情報)は、RAM308に設けた特図1の保留記憶部の、入賞順(保留順)に応じた空いている領域に、1セットの始動情報として記憶される。この特図1の保留記憶部は、第1特図始動口230(第1の始動領域)に遊技球が進入した場合に取得した始動情報を所定の第1上限個数(ここでは4個)まで記憶可能な第1の始動情報記憶手段に相当する。このとき各種乱数(始動情報)をRAM308に設けた一時領域に一旦記憶し、その一時領域に記憶された値を特図1の保留記憶部に記憶してもよく、この場合、一時領域を第1の始動情報記憶手段としてもよいし、特図1の保留記憶部および一時領域を第1の始動情報記憶手段としてもよい。また、主制御部300のCPU304は、RAM308に記憶されている特図1の保留数の値に1を加算し、特図1の保留数が1増加する。したがって、主制御部300のCPU304が保留手段の一例に相当する。また、特図2についても、特図1と同様に始動情報である各乱数を取得し、取得した乱数をRAM308に設けた特図2の保留記憶部に、1セットの始動情報として同様に記憶され、さらに、RAM308に記憶されている特図2の保留数の値に1を加算する。特図2の保留記憶部は、第2特図始動口232(第2の始動領域)に遊技球が進入した場合に取得した始動情報を所定の第2上限個数(ここでは4個)まで記憶可能な第2の始動情報記憶手段に相当する。このとき各種乱数(始動情報)をRAM308に設けた一時領域に一旦記憶し、その一時領域に記憶された値を特図2の保留記憶部に記憶してもよく、この場合一時領域を第2の始動情報記憶手段としてもよいし、特図2の保留記憶部および一時領域を第2の始動情報記憶手段としてもよい。   In step S3217, a winning acceptance process is performed. In this winning acceptance process, if there is a winning at the first special figure starting port 230 and the number of special figure 1 variable games on hold is less than a predetermined number (4 in this embodiment), a predetermined Get startup information. That is, if the number of holdings is less than the predetermined number, a hardware random number that is the basis of the special figure 1 winning random number is obtained from the random number generation circuit 318 shown in FIG. 75 and processed to obtain the special figure 1 winning random number. . More specifically, the process of obtaining the special figure 1 winning random number will be described. The process of outputting a latch signal for latching the random number of the channel corresponding to the special figure 1 of the random number generation circuit 318 (specifically, software A process of writing a predetermined value in an area corresponding to the channel of the special register 1 of the latch register 3186, and a process of outputting a read signal for acquiring a random number latched by this latch signal (specifically, The random number register 3188 executes a process of outputting a read signal to the random number register corresponding to the channel shown in FIG. 1 to obtain the latched random number, and processes the obtained random number (for example, the user Processing for adding software random numbers generated by the program). The same process is executed when a winning is made at the second special figure starting port 232. In this embodiment, as a method of acquiring a random number from the random number generation circuit 318, a latched random number is acquired after performing a process of outputting a latch signal for latching a random number of a channel corresponding to FIGS. The method of outputting the read signal is adopted, but the process of directly reading the random number of the channel corresponding to FIGS. 1 and 2 (specifically, the process of directly reading the value of the random number register 3188) is executed. You may make it acquire. Further, in the present embodiment, the main control unit timer interrupt process is performed by outputting a read signal for acquiring the latched random number shown in FIGS. 1 and 2 (different from the process of directly reading the value of the random number register 3188). However, this process may be executed in the main control unit main process described above. In this case, the main control unit is combined with a special drawing related lottery process described later. What is necessary is just to comprise so that it may be performed in a main process, and when performing the process which reads directly the random number value of the channel corresponding to special figure 1 and 2, only a special figure related lottery process is performed in the main control part main process What is necessary is just to comprise so that it may perform. In the present embodiment, the special figure 1 winning random numbers and the special figure 2 winning random numbers are derived by processing the random numbers acquired from the random number generating circuit 318. However, the present invention is not limited to this case, and the random number generating circuit The random numbers acquired from 318 may be special figure 1 winning random numbers and special figure 2 winning random numbers. Also, the big hit special figure 1 random number, the small hit special figure 1 random number, and the lost special figure 1 random number are acquired from a random number counter storage area provided in the RAM 308. Special jackpot special figure 1 random numbers, small hit special figure 1 random numbers, and lost special figure 1 random numbers are values obtained by processing software random numbers derived from software random number counters provided in the RAM 308 (software random number value + R register value). Value + 1). Further, the special figure 1 variation time determination random number is acquired from the counter circuit 312 shown in FIG. The combination of the random number generation circuit 318, the counter circuit 312 and the software random number counter provided in the RAM 308 and the main control unit 300 that performs random number processing shown in FIG. 75 generates and derives start information. This corresponds to an example of information deriving means (first starting information deriving means, second starting information deriving means). The various random numbers (starting information) acquired here are stored as a set of starting information in a vacant area corresponding to the winning order (holding order) of the holding storage unit of FIG. . The reserved storage unit of FIG. 1 stores the start information acquired when a game ball enters the first special figure start port 230 (first start area) up to a predetermined first upper limit number (here, four). This corresponds to the first start information storage means that can be stored. At this time, various random numbers (starting information) may be temporarily stored in a temporary area provided in the RAM 308, and the value stored in the temporary area may be stored in the holding storage unit of FIG. 1 may be used as the first start-up information storage unit, or the reserved storage unit and the temporary area in FIG. 1 may be used as the first start-up information storage unit. Further, the CPU 304 of the main control unit 300 adds 1 to the value of the number of holdings in FIG. 1 stored in the RAM 308, and the number of holdings in FIG. Therefore, the CPU 304 of the main control unit 300 corresponds to an example of a holding unit. As for special figure 2, each random number which is start information is acquired as in special figure 1, and the obtained random number is similarly stored as a set of start information in the holding storage unit of special figure 2 provided in RAM 308. Further, 1 is added to the value of the number of holdings in FIG. 2 stored in the RAM 308. The reserved storage unit of the special figure 2 stores the start information acquired when the game ball enters the second special figure start port 232 (second start area) up to a predetermined second upper limit number (here, four). This corresponds to a possible second starting information storage means. At this time, various random numbers (starting information) may be temporarily stored in a temporary area provided in the RAM 308, and the value stored in the temporary area may be stored in the holding storage unit of FIG. The starting information storage means may be used, or the holding storage unit and the temporary area of FIG. 2 may be used as the second starting information storage means.

また、普図始動口228を球が通過したことを検出し、且つ、保留している普図変動遊技の数が所定数(本実施形態では4)未満の場合には、そのタイミングで、図75に示す乱数生成回路318から普図当選乱数を所得し、RAM308に設けた特図用とは別の乱数記憶領域に記憶する。この乱数生成回路318から普図当選乱数を取得する点についても、さらに後述する。   In addition, when it is detected that a ball has passed through the general figure starting port 228 and the number of pending custom figure variable games is less than a predetermined number (4 in this embodiment), the timing is as follows. The random number winning random number generation circuit 318 shown in FIG. 75 is used to obtain the normal winning random number and store it in a random number storage area provided in the RAM 308 different from that for the special drawing. The point that the normal winning random number is acquired from the random number generation circuit 318 will also be described later.

また、この入賞受付処理では、所定の球検出センサにより、第1特図始動口230、第2特図始動口232、普図始動口228、または可変入賞口234の入賞(入球)を検出した場合に、第1副制御部400に送信すべき送信情報に、第1特図始動口230、第2特図始動口232、普図始動口228、および可変入賞口234の入賞(入球)の有無を示す入賞受付情報を設定する。なお、特図の始動情報にしても普図の始動情報にしても、保留数がそれぞれの所定数以上であれば始動情報を取得せずに、ステップS3219に進む。   In this winning acceptance process, a predetermined ball detection sensor detects a winning (winning) at the first special figure starting port 230, the second special figure starting port 232, the ordinary drawing starting port 228, or the variable winning port 234. In such a case, the transmission information to be transmitted to the first sub-control unit 400 includes the winnings of the first special figure starting port 230, the second special figure starting port 232, the general drawing starting port 228, and the variable winning port 234. ) Is set to receive winning information. It should be noted that, regardless of whether the start information of the special figure or the start information of the usual figure, if the number of holdings is equal to or more than the predetermined number, the start information is not acquired and the process proceeds to step S3219.

ステップS3219では、払出要求数送信処理を行う。図75に示す払出制御部600に出力する出力予定情報および払出要求情報は1バイトで構成しており、ビット7にストローブ情報(オンの場合、データをセットしていることを示す)、ビット6に電源投入情報(オンの場合、電源投入後一回目のコマンド送信であることを示す)、ビット4〜5に暗号化のための今回加工種別(0〜3)、およびビット0〜3に暗号化加工後の払出要求数を示すようにしている。   In step S3219, a payout request number transmission process is performed. The output schedule information and the payout request information output to the payout control unit 600 shown in FIG. 75 are composed of 1 byte, strobe information in bit 7 (indicating that data is set when on), bit 6 Power-on information (if turned on, indicates that this is the first command transmission after power-on), bits 4-5 indicate the current processing type for encryption (0-3), and bits 0-3 indicate encryption The number of payout requests after processing is shown.

ステップS3221では、普図状態更新処理を行う。この普図状態更新処理は、普図の状態に対応する複数の処理のうちの1つの処理を行う。例えば、普図変動表示の途中(上述する普図表示図柄更新タイマの値が1以上)における普図状態更新処理では、普通図柄表示装置210を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。この制御を行うことで、普通図柄表示装置210は普図の変動表示(普図変動遊技)を行う。   In step S3221, a normal state update process is performed. This normal state update process performs one of a plurality of processes corresponding to the normal state. For example, in the normal state update process in the middle of the normal symbol display (the above-described general symbol display symbol update timer value is 1 or more), the 7-segment LED constituting the normal symbol display device 210 is repeatedly turned on and off. Turns off drive control. By performing this control, the normal symbol display device 210 performs a usual fluctuation display (ordinary figure fluctuation game).

また、普図変動表示時間が経過したタイミング(普図表示図柄更新タイマの値が1から0になったタイミング)における普図状態更新処理では、当りフラグがオンの場合には、当り図柄の表示態様となるように普通図柄表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行い、当りフラグがオフの場合には、ハズレ図柄の表示態様となるように普通図柄表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行う。また、主制御部300のRAM308には、普図状態更新処理に限らず各種の処理において各種の設定を行う設定領域が用意されている。ここでは、上記点灯・消灯駆動制御を行うとともに、その設定領域に普図停止表示中であることを示す設定を行う。この制御を行うことで、普通図柄表示装置210は、当り図柄(図76(c)に示す普図A)およびハズレ図柄(図76(c)に示す普図B)いずれか一方の図柄の確定表示を行う。さらにその後、所定の停止表示期間(例えば500m秒間)、その表示を維持するためにRAM308に設けた普図停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により、確定表示された図柄が所定期間停止表示され、普図変動遊技の結果が遊技者に報知される。   Also, in the normal state update process at the timing when the normal symbol change display time has elapsed (the timing at which the value of the general symbol display symbol update timer has changed from 1 to 0), if the hit flag is on, the hit symbol is displayed. The normal symbol display device 210 is controlled so that the 7-segment LED constituting the normal symbol display device 210 is turned on / off, and when the hit flag is off, the normal symbol display device 210 is configured to display the lost symbol display mode. 7 segment LED on / off drive control is performed. Further, the RAM 308 of the main control unit 300 is provided with a setting area for performing various settings in various processes, not limited to the normal state update process. Here, the above-described lighting / extinguishing drive control is performed, and the setting area is set to indicate that the normal stop display is being performed. By performing this control, the normal symbol display device 210 determines the symbol of either the winning symbol (the common symbol A shown in FIG. 76 (c)) or the lost symbol (the common symbol B shown in FIG. 76 (c)). Display. Thereafter, information indicating the stop period is set in a storage area of a normal stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 msec). With this setting, the symbol that has been confirmed and displayed is stopped and displayed for a predetermined period, and the player is notified of the result of the normal game.

また、普図変動遊技の結果が当りであれば、後述するように、普図当りフラグがオンされる。この普図当りフラグがオンの場合には、所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)における普図状態更新処理では、RAM308の設定領域に普図作動中を設定するとともに、所定の開放期間(例えば2秒間)、第2特図始動口232の羽根部材2321の開閉駆動用のソレノイド(332)に、羽根部材2321を開放状態に保持する信号を出力するとともに、RAM308に設けた羽根開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。このようにして一対の羽根部材2321の開放制御を行う主制御部300のCPU304が、可変始動領域制御を行う可変始動領域制御手段の一例に相当する。一方、非電サポ状態であれば、RAM308の設定領域に普図非作動中を設定するとともに、第2特図始動口232の羽根部材2321の開閉駆動用のソレノイド(332)には、何ら信号を出力しない。こうすることで、羽根部材2321は閉じた状態のままになる。なお、羽根部材2321を閉じた状態に維持するための信号を必ず出力するようにしてもよい。   Further, if the result of the usual figure variable game is a hit, the usual figure hit flag is turned on as will be described later. When the usual figure hit flag is on, in the usual figure state update process at the timing when the predetermined stop display period ends (when the usual figure stop time management timer value changes from 1 to 0), The normal operation is set in the setting region, and the blade member 2321 is opened to the solenoid (332) for opening and closing the blade member 2321 of the second special figure starting port 232 for a predetermined opening period (for example, 2 seconds). And a signal indicating the open period is set in the storage area of the blade open time management timer provided in the RAM 308. The CPU 304 of the main control unit 300 that performs the opening control of the pair of blade members 2321 in this way corresponds to an example of a variable start region control unit that performs variable start region control. On the other hand, if it is in the non-electric support state, in the setting area of the RAM 308, the normal operation is not set, and no signal is sent to the solenoid (332) for opening and closing the blade member 2321 of the second special figure starting port 232. Is not output. By doing so, the blade member 2321 remains closed. Note that a signal for maintaining the blade member 2321 in the closed state may be output without fail.

また、電サポ状態であった場合には、所定の開放期間が終了したタイミング(羽根開放時間管理用タイマの値が1から0になったタイミング)で開始する処理では、所定の閉鎖期間(例えば0.1秒間)、羽根部材2321の開閉駆動用のソレノイド(332)に、羽根部材2321を閉鎖状態に保持する信号を出力するとともに、RAM308に設けた羽根閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。   In the case of the electric support state, in the process starting at the timing when the predetermined opening period ends (the timing when the value of the blade opening time management timer is changed from 1 to 0), the predetermined closing period (for example, 0.1 second), a signal for holding the blade member 2321 in a closed state is output to the solenoid (332) for opening and closing the blade member 2321, and the valve is closed in the storage area of the blade closing time management timer provided in the RAM 308. Set information indicating the period.

また、電サポ状態であった場合には、所定の閉鎖期間が終了したタイミング(羽根閉鎖時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理において、RAM308の設定領域に普図非作動中を設定する。さらに、普図変動遊技の結果がハズレであれば、後述するように、普図ハズレフラグがオンされる。この普図ハズレフラグがオンの場合には、上述した所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)における普図状態更新処理でも、RAM308の設定領域に普図非作動中を設定する。普図非作動中の場合における普図状態更新処理では、何もせずに次のステップS3223に移行するようにしている。続いて、ステップS3223では普図関連抽選処理を実行する。   In the case of the electric support state, in the normal state update process that starts at the timing when the predetermined closing period ends (the timing when the value of the blade closing time management timer changes from 1 to 0), In the setting area, set “Normal” inactive. Furthermore, if the result of the usual figure fluctuation game is a loss, the usual figure loss flag is turned on as will be described later. When the usual figure loss flag is on, even in the usual figure state update process at the timing when the above-described predetermined stop display period ends (when the value of the usual figure stop time management timer is changed from 1 to 0), In the setting area of the RAM 308, normal operation inactive is set. In the general state update process in the case where the general map is not in operation, nothing is done and the process proceeds to the next step S3223. Subsequently, in step S3223, a general drawing related lottery process is executed.

図163(a)は、普図関連抽選処理の流れを示すフローチャートである。図163(a)に示す普図関連抽選処理では、まず、普図保留情報があるか否かを判定する(ステップS3223a)。ここにいう普図保留情報とは、普図の保留数を指す。すなわち、ここでは、保留している普図変動遊技の数が1以上であるか否かを判定する。なお、普図の保留数をデータとして持っていなくとも、例えば、保留に対応した乱数(普図当選乱数)を普図保留情報として認識するようにしても良い。普図保留情報がなければ、この普図関連抽選処理は終了になり、普図保留情報があればステップS3223bに進む。ステップS3223bでは、普図変動遊技が行われているか否かを判定し、行われていればこの普図関連抽選処理は終了になり、行われていなければステップS3223cに進む。ステップS3223cでは、第2特図始動口232の開閉制御が行われているか否か(普図作動中か否か)を判定し、普図作動中であればこの普図関連抽選処理は終了になり、普図非作動中であればステップS3223dに進む。ステップS3223dでは、上述の乱数記憶領域に記憶している普図当選乱数に基づいた乱数抽選を行う。   FIG. 163 (a) is a flowchart showing the flow of the general drawing related lottery process. In the general drawing-related lottery process shown in FIG. 163 (a), first, it is determined whether or not there is general drawing hold information (step S3223a). Here, the general map hold information refers to the number of hold of the general map. In other words, here, it is determined whether or not the number of pending variable games is one or more. In addition, even if it does not have the usual number of reservations as data, for example, a random number corresponding to the reservation (a normal winning random number) may be recognized as the general reservation information. If there is no general map hold information, this general drawing related lottery process is terminated, and if there is general map hold information, the process proceeds to step S3223b. In step S3223b, it is determined whether or not the usual figure variable game is being performed. If it has been carried out, this drawing related lottery process is terminated, and if not, the process proceeds to step S3223c. In step S3223c, it is determined whether or not the opening / closing control of the second special figure starting port 232 is being performed (whether or not the normal map is in operation). If it is not normally operated, the process proceeds to step S3223d. In step S3223d, a random number lottery based on the regular winning random number stored in the random number storage area is performed.

図163(b)は、普図抽選テーブルを示す図である。このテーブルは、主制御部300のROM306に記憶されている。主制御部300のCPU304は、RAM308の乱数記憶領域から普図当選乱数を取り出し、時短フラグを参照し、時短フラグがオンであれば普図高確率状態(電サポ中)であるため、取得した普図当選乱数から普図高確率状態の普図当選データを引き、キャリーが発生した場合(普図当選乱数よりも普図当選データの値が大きい場合)は普図当選とし、キャリーが発生しなかった場合は普図ハズレになる。すなわち、普図当選乱数範囲は0〜9になる。普図高確率状態では、普図当選乱数は、図148に示す乱数生成回路318のチャンネルCH4から出力される。このチャンネルCH4には、図161に示す乱数生成回路初期設定処理における乱数生成範囲の設定(ステップS3053a)において0〜9の乱数生成範囲が設定されており、普図高確率状態の普図当選乱数の取り得る範囲は0〜9になる。したがって、普図高確率状態における普図当選確率は1/1になる。一方、時短フラグがオフであれば普図低確率状態(非電サポ中)であるため、取得した普図当選乱数から、普図高確率状態のデータと同じ普図低確率状態の普図当選データを引き、キャリーが発生した場合(普図当選乱数よりも普図当選データの値が大きい場合)は普図当選とし、キャリーが発生しなかった場合は普図ハズレになる。すなわち、普図低確率状態の場合でも普図当選乱数範囲は0〜9になる。普図低確率状態では、普図当選乱数は、図148に示す乱数生成回路318のチャンネルCH3から出力される。このチャンネルCH3には、乱数生成範囲の設定(ステップS3053a)において0〜999の乱数生成範囲が設定されており、普図低確率状態の普図当選乱数の取り得る範囲は0〜999になる。したがって、普図低確率状態における普図当選確率は1/100になる。   FIG. 163 (b) is a diagram showing a general drawing lottery table. This table is stored in the ROM 306 of the main control unit 300. The CPU 304 of the main control unit 300 takes out the normal winning random number from the random number storage area of the RAM 308, refers to the short time flag, and if the short time flag is on, it is in a high probability state (during electric support) Subtracting the high-probability common-plan winning data from the common-lot winning random number, if a carry occurs (if the value of the general-plan winning data is larger than the normal winning random number), it is determined to be a general winning and a carry occurs. If you don't, you will lose your usual figure. That is, the normal winning random number range is 0-9. In the normal high probability state, the normal winning random number is output from the channel CH4 of the random number generation circuit 318 shown in FIG. In this channel CH4, a random number generation range of 0 to 9 is set in the setting of the random number generation range (step S3053a) in the random number generation circuit initial setting process shown in FIG. 161. The range that can be taken is 0-9. Therefore, the probability of winning the normal drawing in the normal high probability state is 1/1. On the other hand, if the time flag is off, it is in the low probability state (non-powered support), so the winning symbol in the low probability state is the same as the data in the high probability state from the acquired random number. If the data is pulled and a carry occurs (when the value of the win-winning data is larger than the normal-winning random number), the win-winning is determined. If no carry occurs, the win-win is lost. That is, even in the normal figure low probability state, the normal figure winning random number range is 0-9. In the normal low probability state, the normal winning random number is output from the channel CH3 of the random number generation circuit 318 shown in FIG. In this channel CH3, a random number generation range of 0 to 999 is set in the setting of the random number generation range (step S3053a), and the range that the normal winning random number in the normal low probability state can take is 0 to 999. Therefore, the probability of winning the normal figure in the normal figure low probability state becomes 1/100.

本実施形態では、普図当選乱数の取り得る範囲(乱数生成範囲)を、デフォルトの0〜65535から0〜999に制限することで大当り確率を、きりのよい1/100にすることができる。また、普図当選データを、普図高確率状態と普図低確率状態で同じ値にすることができる。乱数生成範囲を制限せずに確率を決定することは開発工数の増大を招くとともに誤った確率設計の原因となってしまう場合がある。特に、一の契機に基づいて複数回の抽選を行う場合に煩雑さはより顕著になってしまう。よって、乱数生成範囲を制限することは開発工数を削減するとともに、抽選処理の安定化を図ることができるといえる。また、普図当選データを、普図高確率状態と普図低確率状態で共通化することも、開発工数を削減するとともに、抽選処理の安定化を図ることができるといえる。   In this embodiment, by limiting the range (random number generation range) that the normal winning random numbers can take from 0 to 65535, which is the default, 0 to 999, the big hit probability can be reduced to 1/100. In addition, the common figure winning data can be set to the same value in the common figure high probability state and the common figure low probability state. Determining the probability without limiting the random number generation range may lead to an increase in development man-hours and may cause erroneous probability design. In particular, the complexity becomes more noticeable when lottery is performed a plurality of times based on one opportunity. Therefore, limiting the random number generation range can reduce the development man-hours and stabilize the lottery process. In addition, it can be said that sharing the common figure winning data in the common figure high probability state and the common figure low probability state can reduce the development man-hours and stabilize the lottery process.

普図抽選に当選した場合にはRAM308に設けた当りフラグをオンに設定する。ハズレ(不当選)の場合には、当りフラグをオフに設定する。また、普図抽選の結果に関わらず、図75に示すカウンタ回路312から普図変動時間決定用乱数を取得し、取得した普図変動時間決定用乱数に基づいて複数の変動時間のうちから普図表示装置210に普図を変動表示する時間を1つ選択し、この変動表示時間を、普図変動表示時間として、RAM308に設けた普図変動時間記憶領域に記憶する。普図変動時間決定用乱数値を用いた抽選で複数の変動時間のうちから普図変動時間を1つ選択する主制御部300のCPU304が、抽選手段の一例に相当する。ここで、普図変動時間の抽選処理は、普図の当りか否かを抽選する当否判定とは異なる。なお、保留している普図変動遊技の数は、RAM308に設けた普図保留数記憶領域に記憶するようにしており、ステップS3223eを実行するたびに、保留している普図変動遊技の数から1を減算した値を、この普図保留数記憶領域に記憶し直すようにしている。また、カウンタ回路312からの普図変動時間決定用乱数の取得は、普図始動口228への入賞時に行ってもよい。   When the regular drawing lottery is won, the hit flag provided in the RAM 308 is set to ON. In case of losing (unfair), the winning flag is set to OFF. Regardless of the result of the general drawing lottery, the random number for determining the normal diagram variation time is acquired from the counter circuit 312 shown in FIG. One time for variably displaying the normal map on the figure display device 210 is selected, and this variable display time is stored as a normal map variable display time in the normal time variable time storage area provided in the RAM 308. The CPU 304 of the main control unit 300 that selects one common map change time from a plurality of change times by lottery using the random number for determining the normal map change time corresponds to an example of a lottery means. Here, the lottery process for the usual time fluctuation time is different from the determination of whether or not the lottery is successful. In addition, the number of pending general figure variable games is stored in the usual figure pending number storage area provided in the RAM 308. Each time step S3223e is executed, the number of pending custom figure variable games is stored. The value obtained by subtracting 1 from is re-stored in the usual figure number-of-holds storage area. In addition, the random number for determining the normal figure change time from the counter circuit 312 may be acquired when winning the universal figure start port 228.

ステップS3223eでは、上述の乱数記憶領域から、先の普図抽選に使用した普図当選乱数を消去し、この普図関連抽選処理は終了になる。続いて、特図先読み処理(ステップS3225)が実行される。この先読み処理では、まず、RAM308に設けられた特図1の保留記憶部内の特図1当選乱数を先読みするか、あるいは特図2の保留記憶部内の特図2当選乱数を先読みする。なお、ここでの先読みとは始動情報を当否判定(本抽選)の前に先に読むことを意味するが、以降の先読み処理では、先読みという言葉を、先(当否判定(本抽選)の結果)を読むという意味で使用することがある。このステップS3225では、後述する特図関連処理(ステップS3229)で用いる図165(a)に示す特図抽選テーブルの内容と同じ内容の事前判定用テーブルを用い、先読みした特図当選乱数に基づく当否判定の事前判定を行う。なお、特図関連処理では、特図抽選テーブルを用いて特図変動遊技の当否判定を改めて行い、ここでの判定結果は、あくまで事前判定の結果になる。当否判定の事前判定では、「大当り」という結果か、あるいは「大当り」以外という結果が導出され、「大当り」という結果の場合には、RAM308に設けられた特図1の保留記憶部内の大当り用特図1乱数を先読みするか、あるいは特図2の保留記憶部内の大当り用特図2乱数を先読みする。続いて、ステップS3229の特図関連処理で用いる図165(b)に示す停止図柄抽選テーブルの内容と同じ内容の事前判定用テーブルを用い、先読みした大当り用特図乱数に基づく特図の停止図柄の事前判定を行う。   In step S3223e, the common winning lottery used in the previous general drawing lottery is deleted from the random number storage area described above, and the common drawing related lottery processing is terminated. Subsequently, special figure prefetching processing (step S3225) is executed. In this prefetching process, first, the special figure 1 winning random number in the special memory 1 of FIG. 1 provided in the RAM 308 is prefetched, or the special figure 2 winning random number in the special memory 2 of FIG. 2 is prefetched. Note that the prefetching here means that the start information is read first before the success / failure determination (final lottery), but in the subsequent prefetching processing, the word “prefetching” is used as the result of the predecessor (prevention / correction (final lottery)). ) May be used to mean read. In this step S3225, a pre-judgment table having the same contents as the contents of the special figure lottery table shown in FIG. 165 (a) used in the special figure related process (step S3229) described later is used, and the validity based on the prefetched special figure winning random number Pre-determination is performed. In the special figure related process, the special figure lottery table is used again to determine whether or not the special figure variable game is successful, and the determination result here is only the result of the preliminary determination. In the pre-judgment determination, a result of “big hit” or a result other than “big hit” is derived, and in the case of a result of “big hit”, the big hit in the reserved storage unit of FIG. The special figure 1 random number is prefetched, or the big hit special figure 2 random number in the reserved storage unit of the special figure 2 is prefetched. Subsequently, using the pre-determination table having the same contents as the contents of the stop symbol lottery table shown in FIG. 165 (b) used in the special symbol related processing in step S3229, the special symbol stop symbol based on the pre-determined special jackpot special symbol random number. Make a prior judgment.

なお、特図関連処理では、停止図柄抽選テーブルを用いて特図の停止図柄の抽選を改めて行い、ここでの判定結果は、あくまで事前判定の結果になる。こうして、特図の停止図柄を事前判定すると、先読み予告の実行可否抽選を行う。この先読み予告は、特図関連抽選処理(ステップS3229)が実行される前、すなわち当否判定が行われる前に、当該特図関連抽選処理で行われる当否判定の結果が大当り(ここではより限定して15Rの大当り(15R特別大当りか15R大当り))になることを予告するための報知である。ここでの先読み予告には、停止図柄の事前判定結果が15Rの大当り図柄(特図Aまたは特図B)でなくても、15Rの大当りになるかのように偽りで予告する偽の先読み予告も含まれる。すなわち、先読み予告は、当否判定の結果が15R大当りになる可能性があることを表したり、遊技者に示唆する事前報知、あるいは当否判定の結果が15R大当りになることを遊技者に期待させる事前報知であるといえる。先読み予告の実行可否抽選を行うタイミングで、RAM308に設けられた演出乱数カウンタから演出乱数(例えば、取り得る範囲は0〜99)を取得し、取得した演出乱数に基づいて実行可否抽選を行う。なお、停止図柄の事前判定結果を第1副制御部400に送信し、この実行可否抽選は、第1副制御部400が行うようにしてもよい。   In the special symbol related process, the special symbol stop symbol lottery table is used again, and the special symbol stop symbol lottery is performed again, and the determination result here is a preliminary determination result. In this way, when the stop symbol of the special figure is determined in advance, a lottery for whether or not to perform the pre-reading notice is performed. This pre-reading notice indicates that the result of the success / failure determination performed in the special drawing-related lottery process before the special figure-related lottery process (step S3229) is executed, that is, before the determination of success / failure is performed. 15R big hit (15R special big hit or 15R big hit). The pre-reading notice here is a fake pre-reading notice that gives a false notice as if it was a big hit of 15R even if the pre-determined result of the stop symbol is not a big hit of 15R (Special Figure A or Special Figure B) Is also included. In other words, the pre-reading notice indicates that there is a possibility that the result of the success / failure determination will be a 15R jackpot, an advance notification that suggests to the player, or an advance notice that the player expects that the result of the success / failure determination will be a 15R jackpot. It can be said that it is information. An effect random number (for example, a possible range is 0 to 99) is acquired from an effect random number counter provided in the RAM 308 at the timing of performing the pre-reading notice execution availability lottery, and the execution availability lottery is performed based on the acquired effect random number. In addition, the prior determination result of the stop symbol may be transmitted to the first sub-control unit 400, and the first sub-control unit 400 may perform this execution availability lottery.

次に、特図1および特図2それぞれについての特図状態更新処理(ステップS3227)を行うが、最初に、特図2についての特図状態更新処理を行い、次いで、特図1についての特図状態更新処理を行う。特図2状態更新処理は、特図2の状態に応じて、次の8つの処理のうちの1つの処理を行う。例えば、特図2変動表示の途中(上述の特図2表示図柄更新タイマの値が1以上)における特図2状態更新処理では、第2特別図柄表示装置214を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。この制御を行うことで、第2特別図柄表示装置214は特図2の変動表示(特図2変動遊技)を行う。また、コマンド設定送信処理(ステップS3231)で一般コマンド回転開始設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶してから処理を終了する。   Next, the special figure state update process (step S3227) for each of the special figure 1 and the special figure 2 is performed. First, the special figure state update process for the special figure 2 is performed, and then the special figure state for the special figure 1 is performed. Perform figure state update processing. In the special figure 2 state update process, one of the following eight processes is performed according to the state of the special figure 2. For example, in the special figure 2 state update process in the middle of the special figure 2 fluctuation display (the value of the above-mentioned special figure 2 display symbol update timer is 1 or more), the 7-segment LED constituting the second special symbol display device 214 is turned on. Performs lighting / extinguishing drive control that repeatedly turns off. By performing this control, the second special symbol display device 214 performs the variable display of the special figure 2 (special figure 2 variable game). Further, predetermined transmission information indicating that the general command rotation start setting transmission process is executed in the command setting transmission process (step S3231) is additionally stored in the transmission information storage area described above, and the process ends.

また、主制御部300のRAM308には、15R大当りフラグ、2R大当りフラグ、第1小当りフラグ、第2小当りフラグ、第1ハズレフラグ、第2ハズレフラグ、確変フラグ、および時短フラグそれぞれのフラグが用意されている。特図2変動表示時間が経過したタイミング(特図2表示図柄更新タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、後述する特図関連抽選処理における特図決定結果(特図の停止図柄態様)に基づいて第2特図表示装置214を構成する7セグメントLEDの点灯・消灯駆動制御を行い、RAM308の設定領域に特図2停止表示中であることを表す設定を行う。この制御を行うことで、第2特別図柄表示装置214は、15R特別大当り図柄(特図A)、15R大当り図柄(特図B)、2R特別大当り図柄(特図C)、突然時短図柄(特図D)、隠れ確変図柄(特図E)、突然通常図柄(特図F)、第1小当り図柄(特図G)、第2小当り図柄(特図H)、第1ハズレ図柄(特図I)、および第2ハズレ図柄(特図J)のいずれか一つの図柄の確定表示を行う。さらにその後、所定の停止表示期間(例えば500m秒間)その表示を維持するためにRAM308に設けた特図2停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により、確定表示された特図2が所定期間停止表示され、特図2変動遊技の結果が遊技者に報知される。また、RAM308に設けられた電サポ回数記憶部に値がセットされている場合には、その値が1以上であれば、その時短回数から1を減算し、減算結果が1から0となった場合は、特図確率変動中でなければ、時短フラグをオフする。さらに、大当り遊技中や小当り遊技中にも、時短フラグをオフする。すなわち、主制御部300のCPU304は、大当り遊技状態中および小当り遊技状態中(第二の制御状態中)である場合に、非電サポ状態(第一の進入率制御状態)に移行させる。   In addition, the RAM 308 of the main control unit 300 includes 15R big hit flag, 2R big hit flag, first small hit flag, second small hit flag, first loss flag, second loss flag, probability change flag, and hourly flag. Is prepared. In the special figure 2 state update process starting at the timing when the special figure 2 variable display time has passed (the timing when the value of the special figure 2 display symbol update timer is changed from 1 to 0), the special figure in the special figure related lottery process to be described later Based on the determination result (stop pattern mode of the special figure), the 7 segment LED constituting the second special figure display device 214 is controlled to be turned on / off, and the special figure 2 stop display is being displayed in the setting area of the RAM 308. Set to represent. By carrying out this control, the second special symbol display device 214 has a 15R special jackpot symbol (special symbol A), a 15R jackpot symbol (special symbol B), a 2R special jackpot symbol (special symbol C), and a sudden time shortening symbol (special symbol). Figure D), hidden probability variation (special E), suddenly normal (special F), first small hit (special G), second small hit (special H), first loss (special) One of the symbols (Fig. I) and the second lost symbol (special symbol J) is confirmed and displayed. After that, information indicating the stop period is set in the storage area of the special figure 2 stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 milliseconds). With this setting, the specially displayed special figure 2 is stopped and displayed for a predetermined period, and the result of the special figure 2 variable game is notified to the player. Further, when a value is set in the electric support number storage unit provided in the RAM 308, if the value is 1 or more, 1 is subtracted from the shortest number of times, and the subtraction result becomes 1 to 0. In this case, if the special figure probability is not changing, the time reduction flag is turned off. Further, the hourly flag is turned off during the big hit game or the small hit game. That is, the CPU 304 of the main control unit 300 shifts to the non-electric support state (first entry rate control state) when the big hit gaming state and the small hit gaming state (second control state).

また、後述するコマンド設定送信処理(ステップS3231)で一般コマンド回転停止設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶するとともに、変動表示を停止する図柄が特図2であることを示す特図2識別情報を、後述するコマンドデータに含める情報としてRAM308に追加記憶してから処理を終了する。   In addition, a predetermined transmission information indicating that a general command rotation stop setting transmission process is executed in a command setting transmission process (step S3231) to be described later is additionally stored in the above-described transmission information storage area, and a pattern for stopping the variable display is displayed. Special figure 2 identification information indicating that it is special figure 2 is additionally stored in the RAM 308 as information to be included in command data, which will be described later, and the processing is terminated.

また、特図2変動遊技の結果が大当りであれば、大当りフラグがオンされる。この大当りフラグがオンの場合には、所定の停止表示期間が終了したタイミング(特図2停止時間管理用タイマの値が1から0になったタイミング)における特図2状態更新処理では、RAM308の設定領域に特図2作動中を設定するとともに、所定の入賞演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを開始することを遊技者に報知する画像を表示している期間待機するためにRAM308に設けた特図2待機時間管理用タイマの記憶領域に入賞演出期間を示す情報を設定する。また、コマンド設定送信処理(ステップS3231)で一般コマンド入賞演出設定送信処理を実行させるために上述の送信情報記憶領域に5Hを送信情報(コマンド種別)として追加記憶する。   If the result of the special figure 2 variable game is a big hit, the big hit flag is turned on. When the jackpot flag is on, in the special figure 2 state update process at the timing when the predetermined stop display period ends (the timing when the special figure 2 stop time management timer value changes from 1 to 0), the RAM 308 In the setting area, the special figure 2 is in operation and waits for a predetermined winning effect period (for example, 3 seconds), that is, a period during which an image for notifying the player that the big win by the decorative symbol display device 208 is started is displayed. Therefore, information indicating the winning effect period is set in the storage area of the special figure 2 standby time management timer provided in the RAM 308. Further, 5H is additionally stored as transmission information (command type) in the above-described transmission information storage area in order to execute the general command winning effect setting transmission process in the command setting transmission process (step S3231).

また、所定の入賞演出期間が終了したタイミング(特図2待機時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、所定の開放期間(例えば29秒間、または可変入賞口234に所定球数(例えば10球)の遊技球の入賞を検出するまで)可変入賞口234の扉部材2341の開閉駆動用のソレノイド(332)に、扉部材2341を開放状態に保持する信号を出力するとともに、RAM308に設けた扉開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。また、コマンド設定送信処理(ステップS3231)で一般コマンド大入賞口開放設定送信処理を実行させるために上述の送信情報記憶領域に7Hを送信情報(コマンド種別)として追加記憶する。   Further, in the special figure 2 state update process that starts at the timing when the predetermined winning effect period ends (the timing when the value of the special figure 2 standby time management timer changes from 1 to 0), a predetermined release period (for example, 29 seconds) Alternatively, the door member 2341 is opened to the solenoid (332) for opening and closing the door member 2341 of the variable prize opening 234 until a winning of a predetermined number of balls (for example, 10 balls) is detected at the variable prize opening 234. In addition to outputting a signal to be held at the same time, information indicating the opening period is set in the storage area of the door opening time management timer provided in the RAM 308. Further, 7H is additionally stored as transmission information (command type) in the above-described transmission information storage area in order to execute the general command big prize opening release setting transmission process in the command setting transmission process (step S3231).

また、所定の開放期間が終了したタイミング(扉開放時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、所定の閉鎖期間(例えば1.5秒間)可変入賞口234の扉部材2341の開閉駆動用のソレノイド(332)に、扉部材2341を閉鎖状態に保持する信号を出力するとともに、RAM308に設けた扉閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。また、コマンド設定送信処理(ステップS3231)で大入賞口閉鎖設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   In the special figure 2 state update process that starts at the timing when the predetermined opening period ends (the timing when the door opening time management timer value changes from 1 to 0), the predetermined closing period (for example, 1.5 seconds) A signal for holding the door member 2341 in a closed state is output to a solenoid (332) for opening and closing the door member 2341 of the variable prize opening 234, and a closing period is stored in a storage area of a door closing time management timer provided in the RAM 308. Set the information indicating. In addition, predetermined transmission information indicating that the special winning opening closing setting transmission process is executed in the command setting transmission process (step S3231) is additionally stored in the transmission information storage area.

また、この扉部材の開放・閉鎖制御を所定回数(本実施例では15ラウンドか2ラウンド)繰り返し、終了したタイミングで開始する特図2状態更新処理では、所定の終了演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを終了することを遊技者に報知する画像を表示している期間待機するように設定するためにRAM308に設けた演出待機時間管理用タイマの記憶領域に演出待機期間を示す情報を設定する。   In addition, in the special figure 2 state update process that starts at the timing when the door member opening / closing control is repeated a predetermined number of times (15 rounds or 2 rounds in this embodiment) and finished, a predetermined end effect period (eg, 3 seconds) In other words, the effect waiting period is stored in the storage area of the effect waiting time management timer provided in the RAM 308 in order to set to wait for a period during which an image for informing the player that the big hit by the decorative symbol display device 208 is to be ended is displayed. Set the information indicating.

以上説明したように、主制御部300のCPU304は、大当り遊技状態中に、可変入賞口234の扉部材2341の開閉状態の変化制御を行う可変入賞制御手段の一例に相当する。なお、主制御部300のROM306には、可変入賞口234の扉部材2341の開閉パターンが記憶されており、主制御部300のCPU304は、そのROM306から、特図変動遊技の当否判定に応じた開閉パターンを取得する。   As described above, the CPU 304 of the main control unit 300 corresponds to an example of variable winning control means for performing change control of the open / closed state of the door member 2341 of the variable winning opening 234 during the big hit gaming state. The ROM 306 of the main control unit 300 stores an opening / closing pattern of the door member 2341 of the variable prize opening 234, and the CPU 304 of the main control unit 300 responds to the determination of whether or not the special figure variable game is successful from the ROM 306. Get the open / close pattern.

また、主制御部300のCPU304は、特図決定結果が表す停止図柄態様に基づいて、大当り遊技の終了と同時に、RAM308に設けられた確変フラグや時短フラグをオンに設定する。すなわち、主制御部300のCPU304は、後述する特図抽選処理で特図決定結果が「特図A」や「特図C」である場合には確変フラグと時短フラグの双方をオンに設定する。また、特図決定結果が「特図E」である場合には確変フラグと時短フラグのうち確変フラグのみをオンに設定する。さらに、特図決定結果が「特図B」や「特図D」である場合には確変フラグと時短フラグのうち時短フラグのみをオンに設定するとともにRAM308に設けられた電サポ回数記憶部に電サポ回数100回をセットする。確変フラグがオンに設定されていると、特図高確率状態(確率変動中)であり、大当り遊技終了後に大当りに当選する確率が高くなっている状態(特図高確率状態)である。一方、確変フラグがオンに設定されていない(オフに設定されている)と、特図低確率状態である。したがって、確変フラグの設定状態は、当否判定(特図の抽選)の結果に影響を与える。また、時短フラグがオンに設定されていると電サポ状態であり、電チューが開きやすい(例えば当りやすい)、一回の当りに基づく開放時間が長い、一回の当りに基づく開放回数が多いなど可変始動領域制御が遊技者に有利になるように行われる。反対に、時短フラグがオフに設定されていると非電サポ状態であり、可変始動領域制御が遊技者に不利になるように行われる。したがって、時短フラグの設定状態は、可変始動領域制御にも影響を与える。よって、確変フラグおよび/または時短フラグの設定状態を表す情報は、遊技制御情報の一例に相当し、主制御部300のCPU304は遊技制御情報決定手段の一例に相当する。   Further, the CPU 304 of the main control unit 300 sets the probability variation flag and the time reduction flag provided in the RAM 308 to be on simultaneously with the end of the big hit game, based on the stop symbol form represented by the special figure determination result. That is, the CPU 304 of the main control unit 300 sets both the probability variation flag and the time reduction flag to ON when the special figure determination result is “special figure A” or “special figure C” in the special figure lottery process described later. . When the special figure determination result is “special figure E”, only the probability variation flag is set to ON among the probability variation flag and the time reduction flag. Furthermore, when the special figure determination result is “special figure B” or “special figure D”, only the short time flag is set to ON among the probability variation flag and the short time flag, and the electric support number storage unit provided in the RAM 308 is set. Set power support 100 times. When the probability variation flag is set to ON, it is in a special figure high probability state (during probability fluctuation), and is a state in which the probability of winning a big hit after the big hit game is high (a special figure high probability state). On the other hand, if the probability variation flag is not set to ON (set to OFF), it is a special figure low probability state. Therefore, the setting state of the probability variation flag affects the result of the determination of success / failure (special drawing lottery). In addition, when the time reduction flag is set to ON, it is in an electric support state, the electric chew is easy to open (for example, easy to hit), the opening time based on one hit is long, and the number of times of opening based on one hit is large. The variable starting area control is performed so as to be advantageous to the player. On the contrary, if the time reduction flag is set to OFF, it is in a non-electric support state, and the variable start area control is performed so as to be disadvantageous to the player. Therefore, the setting state of the time reduction flag also affects the variable start area control. Therefore, information indicating the setting state of the probability variation flag and / or the time reduction flag corresponds to an example of game control information, and the CPU 304 of the main control unit 300 corresponds to an example of game control information determination means.

さらに、コマンド設定送信処理(ステップS3231)で一般コマンド終了演出設定送信処理を実行させるために上述の送信情報記憶領域に6Hを送信情報(コマンド種別)として追加記憶する。   Further, 6H is additionally stored as transmission information (command type) in the above-described transmission information storage area in order to execute the general command end effect setting transmission process in the command setting transmission process (step S3231).

また、所定の終了演出期間が終了したタイミング(演出待機時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、RAM308の設定領域に特図2非作動中を設定する。さらに、特図2変動遊技の結果がハズレであれば、ハズレフラグがオンされる。このハズレフラグがオンの場合には、上述した所定の停止表示期間が終了したタイミング(特図2停止時間管理用タイマの値が1から0になったタイミング)における特図2状態更新処理でも、RAM308の設定領域に特図2非作動中を設定する。特図2非作動中の場合における特図2状態更新処理では、何もせずに次の処理に移行するようにしている。   In the special figure 2 state update process that starts at the timing when the predetermined end production period ends (the timing when the production standby time management timer value changes from 1 to 0), the special figure 2 is not activated in the setting area of the RAM 308. Set medium. Furthermore, if the result of the special figure 2 variable game is a loss, the loss flag is turned on. When the lost flag is on, even in the special figure 2 state update process at the timing when the predetermined stop display period described above ends (the timing when the special figure 2 stop time management timer value changes from 1 to 0), In the setting area of the RAM 308, special figure 2 inactive is set. In the special figure 2 state update process when the special figure 2 is not in operation, nothing is done and the process proceeds to the next process.

特図2状態更新処理が終了すると、特図1状態更新処理を行う。この特図1状態更新処理では、特図1の状態に応じて、上述の特図2状態更新処理で説明した各処理を行う。この特図1状態更新処理で行う各処理は、上述の特図2状態更新処理で説明した内容の「特図2」を「特図1」と読み替えた処理と同一であるため、その説明は省略する。なお、特図2状態更新処理と特図1状態更新処理の順番は逆でもよい。   When the special figure 2 state update process is completed, the special figure 1 state update process is performed. In the special figure 1 state update process, each process described in the special figure 2 state update process is performed according to the state of the special figure 1. Each process performed in the special figure 1 state update process is the same as the process in which “special figure 2” in the contents described in the special figure 2 state update process is replaced with “special figure 1”. Omitted. The order of the special figure 2 state update process and the special figure 1 state update process may be reversed.

ステップS3227における特図状態更新処理が終了すると、今度は、特図1および特図2それぞれについての特図関連抽選処理を行う。この特図関連抽選処理を実行する主制御部300のCPU304が当否判定手段の一例に相当する。主制御部300は、最初に特図2についての処理(特図2関連抽選処理)を行い、その後、特図1についての処理(特図1関連抽選処理)を行う。このように、主制御部300が特図2関連抽選処理を特図1関連抽選処理よりも先に行うことで、同じタイミングで、第1特図始動口230に遊技球が進入したことに基づいて始動情報を取得し、かつ第2特図始動口232に遊技球が進入したことに基づいて始動情報を取得した場合や、特図2変動遊技の開始条件と、特図1変動遊技の開始条件が同時に成立した場合や、特図2変動遊技の開始条件と特図1変動遊技の開始条件の両方が成立している場合でも、特図2変動遊技が先に変動中となるため、特図1変動遊技は変動を開始しない。すなわち、本実施形態のパチンコ機100は、特図2優先変動を行うものであり、第2特図始動口232への入賞に基づく抽選(特図2の当否判定)を、第1特図始動口230への入賞に基づく抽選(特図1の当否判定)よりも優先して行う。言い換えれば、本実施形態のパチンコ機100では、第1の特別始動領域に遊技球が進入した場合に第1の乱数記憶領域に乱数を最大保留数まで格納し、第2の特別始動領域に遊技球が入賞した場合に第2の乱数記憶領域に乱数を最大保留数まで格納する入賞記憶部と、前記第1の乱数記憶領域および前記第2の乱数記憶領域の両方に乱数が記憶されている場合に、前記第1の乱数記憶領域に前記乱数が記憶された時期および前記第2の乱数記憶領域に前記乱数が記憶された時期とは無関係に該第2の乱数記憶領域に記憶されている乱数に基づいて当否判定を行うとともに、前記第1の乱数記憶領域に乱数が記憶されておらず、かつ前記第2の乱数記憶領域に乱数が記憶されている場合には、該第2の乱数記憶領域に記憶されている乱数に基づいて当否判定を行い、前記第2の乱数記憶領域に乱数が記憶されておらず、かつ前記第1の乱数記憶領域に乱数が記憶されている場合には、該第1の乱数記憶領域に記憶されている乱数に基づいて当否判定を行う当否判定手段を備えている。また、第1特図表示装置212あるいは第2特図表示装置214による特図変動遊技の大当り判定の結果の報知は、主制御部300で行われ、第2特図始動口232への入賞に基づく当否判定の結果報知が、第1特図始動口230への入賞に基づく当否判定の結果報知よりも優先して行われ、当否判定が行われていない始動情報として、特図1の始動情報と特図2の始動情報のうちの特図1の始動情報のみが残っている状態で、特図2の始動情報が新たに記憶された場合には、新たに記憶された特図2の始動情報に基づく当否判定の結果の報知が、既に記憶されていた特図1の始動情報に基づく当否判定の結果の報知よりも先に行われる。また、始動情報を取得する始動情報取得手段は、第1の始動情報記憶手段および第2の始動情報記憶手段のうちの両方に始動情報が記憶されている場合には、該第2の始動情報記憶手段から始動情報を取得し、該第1の始動情報記憶手段および該第2の始動情報記憶手段のうちの一方に始動情報が記憶されている場合には、始動情報が記憶されている始動情報記憶手段から始動情報を取得するものである。なお、特図2状態更新処理に続いて先に特図2関連抽選処理を行い、それから、特図1状態更新処理を行い、その後、特図1関連抽選処理を行うようにしてもよい。   When the special figure state update process in step S3227 is completed, a special figure-related lottery process for each of special figure 1 and special figure 2 is performed. The CPU 304 of the main control unit 300 that executes the special figure related lottery process corresponds to an example of the determination unit. The main control unit 300 first performs the process for the special figure 2 (the special drawing 2 related lottery process), and then performs the process for the special figure 1 (the special figure 1 related lottery process). As described above, the main control unit 300 performs the special figure 2 related lottery process before the special figure 1 related lottery process, so that the game ball enters the first special figure start port 230 at the same timing. The start information is acquired and the start information is acquired based on the fact that the game ball has entered the second special figure start port 232, the special condition 2 variable game start conditions, and the special figure 1 variable game start. Even if the conditions are satisfied at the same time, or if both the special figure 2 variable game start condition and the special figure 1 variable game start condition are satisfied, the special figure 2 variable game is changing first. Figure 1 Floating game does not start to fluctuate. That is, the pachinko machine 100 according to the present embodiment performs special figure 2 priority fluctuation, and the lottery based on the winning at the second special figure start port 232 (determination of special figure 2) is determined as the first special figure start. This is prioritized over a lottery based on winning a prize in the mouth 230 (a determination of success / failure in FIG. 1). In other words, in the pachinko machine 100 of the present embodiment, when a game ball enters the first special start area, the random numbers are stored in the first random number storage area up to the maximum number of reservations, and the game is stored in the second special start area. When a ball wins, a random number is stored in both the first random number storage area and the first random number storage area, and the winning random number storage area that stores random numbers up to the maximum number of reservations in the second random number storage area In this case, the random number is stored in the second random number storage area regardless of the time when the random number is stored in the first random number storage area and the time when the random number is stored in the second random number storage area. If the random number is determined based on the random number, and the random number is not stored in the first random number storage area and the random number is stored in the second random number storage area, the second random number Based on random numbers stored in the storage area If the random number is not stored in the second random number storage area and the random number is stored in the first random number storage area, it is stored in the first random number storage area. In this case, a determination unit is provided for determining whether or not the image is correct based on the random number. In addition, the main control unit 300 notifies the result of the jackpot determination of the special figure variable game by the first special figure display device 212 or the second special figure display device 214, and wins a prize to the second special figure start port 232. Based on the determination result, the start information of FIG. 1 is used as the start information in which the determination result is not performed. In the state where only the start information of the special figure 1 of the start information of the special figure 2 remains, and the start information of the special figure 2 is newly stored, the newly stored start of the special figure 2 The notification of the result of the determination based on the information is performed prior to the notification of the result of the determination based on the startup information of FIG. Further, the start information acquisition means for acquiring start information, when start information is stored in both of the first start information storage means and the second start information storage means, the second start information When starting information is acquired from the storage means and the starting information is stored in one of the first starting information storing means and the second starting information storing means, the starting information is stored. The starting information is obtained from the information storage means. Note that the special figure 2 related lottery process may be performed first after the special figure 2 state update process, then the special figure 1 state update process may be performed, and then the special figure 1 related lottery process may be performed.

図164は、特図関連抽選処理の流れを示すフローチャートである。この図164に示す特図関連抽選処理では、特図1と特図2を区別しないで示しているが、先に特図2についてステップS3229a〜ステップS3229fまでの処理を行い、その後、特図1についてステップS3229a〜ステップS3229fまでの処理を行う。ここでは、特図2と特図1を区別しないで説明する。   FIG. 164 is a flowchart showing the flow of the special drawing related lottery process. In the special drawing related lottery process shown in FIG. 164, the special figure 1 and the special figure 2 are shown without being distinguished from each other. However, the special figure 2 is first processed from step S3229a to step S3229f, and then the special figure 1 is processed. The process from step S3229a to step S3229f is performed. Here, it demonstrates without distinguishing special figure 2 and special figure 1. FIG.

図164に示す特図関連抽選処理では、まず、特図保留情報があるか否かを判定する(ステップS3229a)。ここにい特図保留情報とは、特図の保留数を指す。すなわち、ここでは、保留している特図変動遊技の数が1以上であるか否かを判定する。なお、特図の保留数をデータとして持っていなくとも、例えば、保留に対応した乱数(特図当選乱数)を特図保留情報として認識するようにしても良い。特図保留情報がなければ、この特図関連抽選処理は終了になり、特図保留情報があればステップS3229bに進む。ステップS3229bでは、特図表示装置(212,214)が特図変動表示中であるか、または停止表示中であるか否かを判定し、いずれかの表示中である場合には、この特図関連抽選処理は終了になり、いずれの表示中でもない場合には、ステップS3229cに進む。ステップS3229cでは、特図作動中であるか否かを判定し、特図作動中であれば、この特図関連抽選処理は終了になり、特図非作動中であれば、ステップS3229dに進む。   In the special figure-related lottery process shown in FIG. 164, it is first determined whether or not there is special figure holding information (step S3229a). Here, special figure hold information refers to the number of special figure hold. That is, here, it is determined whether or not the number of special figure variable games that are on hold is one or more. For example, a random number corresponding to a hold (a special figure winning random number) may be recognized as the special figure hold information without having the number of special figure hold as data. If there is no special figure hold information, this special figure related lottery process is terminated, and if there is special figure hold information, the process proceeds to step S3229b. In step S3229b, it is determined whether or not the special figure display device (212, 214) is in the special figure variation display or in the stop display. The related lottery process ends, and if none of the displays is being displayed, the process proceeds to step S3229c. In step S3229c, it is determined whether or not the special figure is in operation. If the special figure is in operation, the special figure-related lottery process ends. If the special figure is inactive, the process proceeds to step S3229d.

ステップS3229dでは特図抽選処理を行う。ここではまず、RAM308に設けられた特図の保留記憶部から、最も過去に格納した始動情報である1セット分の乱数(特図当選乱数、大当り用特図乱数、小当り用特図乱数、ハズレ用特図乱数、および特図変動時間決定用乱数)を取り出し、その保留記憶部にまだ格納されている始動情報(乱数のセット)を、今記憶されている領域から隣の領域に移し替える。すなわち、最も過去に格納した始動情報を特図の保留記憶部から取り出し、さらに特図の保留記憶部に始動情報が格納されていれば、N番目に古い始動情報を特図2の保留記憶部におけるN−1番目に古い始動情報として設定したことになる。また、RAM308に記憶している保留数を1減算する。RAM308の特図の保留記憶部から1セット分の乱数(特図当選乱数、大当り用特図乱数、小当り用特図乱数、ハズレ用特図乱数、および特図変動時間決定用乱数)を取り出す処理を行う主制御部300のCPU304が、始動情報取得手段の一例に相当する。   In step S3229d, a special drawing lottery process is performed. Here, first, a special set of random numbers (special figure winning random number, big hit special figure random number, small hit special figure random number, Take out the special figure random number for losing and the random number for determining the special figure fluctuation time), and transfer the starting information (set of random numbers) still stored in the reserved storage part from the currently stored area to the next area . That is, if the starting information stored in the past is taken out from the reserved storage unit of the special figure and the starting information is stored in the reserved storage unit of the special figure, the Nth oldest starting information is stored in the reserved storage unit of the special figure 2 Is set as the (N-1) oldest starting information. Also, 1 is subtracted from the pending number stored in the RAM 308. One set of random numbers (special figure winning random number, big hit special figure random number, small hit special figure random number, lose special figure random number, and special figure variable time determination random number) are taken out from the special figure holding storage unit of the RAM 308. The CPU 304 of the main control unit 300 that performs processing corresponds to an example of the start information acquisition unit.

図165(a)は特図抽選テーブルを示す図である。このテーブルは、主制御部300のROM306に記憶されている。   FIG. 165 (a) shows a special drawing lottery table. This table is stored in the ROM 306 of the main control unit 300.

主制御部300のCPU304は、RAM308の保留記憶部から始動情報を取り出すと、確変フラグを参照し、確変フラグがオンであれば確率変動中(特図高確率状態)であるため、取得した特図当選乱数から確率変動中の特図大当り当選データを引き、キャリーが発生した場合(特図当選乱数よりも特図当選データの値が大きい場合)は特図大当りに当選とし、キャリーが発生しなかった場合は特図大当りには不当選になる。すなわち、特図大当り当選乱数範囲は0〜124になる。確率変動中では、特図当選乱数の元になる乱数は、図148に示す乱数生成回路318のチャンネルCH2から出力される。このチャンネルCH2には、図161に示す乱数生成回路初期設定処理における乱数生成範囲の設定(ステップS3053a)において0〜4999の乱数生成範囲が設定されており、確率変動中の特図当選乱数の取り得る範囲は0〜4999になる。したがって、確率変動中における特図大当りの当選確率は1/40になる。   When the CPU 304 of the main control unit 300 retrieves the start information from the holding storage unit of the RAM 308, the CPU 304 refers to the probability variation flag. If the probability variation flag is ON, the probability variation is in progress (the special figure high probability state). If the special figure jackpot winning data with probability fluctuation is subtracted from the figure winning random number and carry occurs (if the value of the special figure winning data is larger than the special figure winning random number), the special figure jackpot is won and the carry occurs If not, the special figure jackpot will not be selected. That is, the special figure big hit winning random number range is 0 to 124. During the probability variation, the random number that is the basis of the special figure winning random number is output from the channel CH2 of the random number generation circuit 318 shown in FIG. In the channel CH2, a random number generation range of 0 to 4999 is set in the setting of the random number generation range (step S3053a) in the random number generation circuit initial setting process shown in FIG. 161. The range obtained is 0-4999. Therefore, the winning probability of the special figure jackpot during the probability change is 1/40.

一方、確変フラグがオフであれば非確率変動中(特図低確率状態)であるため、取得した特図当選乱数から、確率変動中のデータと同じ非確率変動中の特図大当り当選データを引き、キャリーが発生した場合(特図当選乱数よりも特図当選データの値が大きい場合)は特図大当りに当選とし、キャリーが発生しなかった場合は特図大当りには不当選になる。すなわち、非確率変動中でも特図大当り当選乱数範囲は0〜124になる。非確率変動中では、特図当選乱数の元になる乱数は、図148に示す乱数生成回路318のチャンネルCH1から出力される。このチャンネルCH1には、乱数生成範囲の設定(ステップS3053a)において0〜49999の乱数生成範囲が設定されており、非確率変動中の特図当選乱数の取り得る範囲は0〜49999になる。したがって、非確率変動中における特図大当りの当選確率は1/400になる。   On the other hand, if the probability variation flag is off, it means that non-probability fluctuation is in progress (special figure low probability state). On the other hand, if a carry occurs (when the value of the special figure winning data is larger than the special figure winning random number), the special figure big hit is won, and if no carry occurs, the special figure big hit is not selected. That is, the special figure big hit winning random number range is 0 to 124 even during non-probability fluctuation. During non-probability fluctuation, the random number that is the basis of the special figure winning random number is output from the channel CH1 of the random number generation circuit 318 shown in FIG. In this channel CH1, a random number generation range of 0 to 49999 is set in the setting of the random number generation range (step S3053a), and the range that can be taken by the special figure winning random number during non-probability variation is 0 to 49999. Therefore, the winning probability of the special figure jackpot during non-probability fluctuation is 1/400.

本実施形態では、特図当選乱数の取り得る範囲(乱数生成範囲)を、デフォルトの0〜65535から0〜49999に制限することで大当り確率を、きりのよい1/400にすることができる。また、特図大当り当選データを、確率変動中と非確率変動中で同じ値にすることができる。乱数生成範囲を制限せずに確率を決定することは開発工数の増大を招くとともに誤った確率設計の原因となってしまう場合がある。特に、一の契機に基づいて複数回の抽選を行う場合に煩雑さはより顕著になってしまう。よって、乱数生成範囲を制限することは開発工数を削減するとともに、抽選処理の安定化を図ることができるといえる。また、特図大当り当選データを、確率変動中と非確率変動中で共通化することも、開発工数を削減するとともに、抽選処理の安定化を図ることができるといえる。   In the present embodiment, by limiting the range (random number generation range) that the special figure winning random number can take from the default 0 to 65535 to 0 to 49999, the jackpot probability can be reduced to 1/400. Further, the special figure big hit winning data can be set to the same value during the probability fluctuation and the non-probability fluctuation. Determining the probability without limiting the random number generation range may lead to an increase in development man-hours and may cause erroneous probability design. In particular, the complexity becomes more noticeable when lottery is performed a plurality of times based on one opportunity. Therefore, limiting the random number generation range can reduce the development man-hours and stabilize the lottery process. In addition, it can be said that sharing the special figure big hit winning data during the probability fluctuation and the non-probability fluctuation can reduce the development man-hours and stabilize the lottery process.

図165(a)では、特図大当りの抽選テーブルしか示していないが、特図小当りの当選データとして所定の値が用意されている。主制御部300のCPU304は、取得した特図当選乱数から特図大当り当選データを引き、キャリーが発生しなかった場合(特図当選乱数よりも特図当選データの値が小さい場合)には、今度は、特図大当り当選データを引いた値から特図小当り当選データを引き、ここでキャリーが発生した場合(特図当選乱数よりも特図小当り当選データの値が大きい場合)は特図小当りに当選とし、ここでもキャリーが発生しなかった場合はハズレになる。なお、ハズレの当選データを別途設けておいてもよい。こうして、特図の「大当り」、「小当り」、「ハズレ」が判定され、判定結果を特図当否判定結果として得る。なお、保留している特図変動遊技の数は、RAM308に設けた特図保留数記憶領域に記憶するようにしており、ステップS3229dを実行するたびに、保留している特図変動遊技の数から1を減算した値を、この特図保留数記憶領域に記憶し直すようにしている。   In FIG. 165 (a), only a lottery table for special figure big hit is shown, but a predetermined value is prepared as winning data for special figure big hit. The CPU 304 of the main control unit 300 subtracts the special figure big hit winning data from the acquired special figure winning random number, and when no carry occurs (when the value of the special figure winning data is smaller than the special figure winning random number), This time, if the special figure small win winning data is subtracted from the value obtained by subtracting the special figure big hit winning data, and a carry occurs here (if the special figure small winning data is larger than the special figure winning random number) If you win a small figure and no carry occurs, you will lose. It is also possible to separately provide lost winning data. In this way, the special chart “big hit”, “small hit”, and “losing” are determined, and the determination result is obtained as the special figure determination result. The number of special figure variable games that are held is stored in the special figure holding number storage area provided in the RAM 308, and the number of special figure variable games that are held each time step S3229d is executed. The value obtained by subtracting 1 from is re-stored in this special figure holding number storage area.

次いで、図164に示す特図関連抽選処理では、特図当否判定結果に基づいて特図の停止図柄をソフトウェア乱数を用いて抽選する(ステップS3229e)。図165(b)は、停止図柄抽選テーブルを示す図である。このテーブルも、主制御部300のROM306に記憶されている。この停止図柄抽選テーブルは、当否判定結果ごとに特図の停止図柄態様(図76(a)参照)に対応した図柄当選データが規定されている。また、同図(b)には、当選確率も示されている。   Next, in the special figure related lottery process shown in FIG. 164, a special figure stop symbol is drawn using software random numbers based on the special figure success / failure determination result (step S3229e). FIG. 165 (b) is a diagram showing a stop symbol lottery table. This table is also stored in the ROM 306 of the main control unit 300. In the stop symbol lottery table, symbol winning data corresponding to the stop symbol mode of the special symbol (see FIG. 76 (a)) is defined for each success / failure determination result. In FIG. 5B, the winning probability is also shown.

主制御部300のCPU304は、当否判定結果が大当りの場合であれば、RAM308の保留記憶部から先に取得した1セット分の乱数のうちの大当り用特図乱数(取り得る数値範囲は0〜99)から特図A、特図B、・・・特図Fの順序で各停止図柄に対応した図柄当選データを徐々に減算し、キャリーが発生した場合の停止図柄を特図決定結果とする。また、当否判定結果が小当りの場合であれば、RAM308の保留記憶部から先に取得した1セット分の乱数のうちの小当り用特図乱数(取り得る数値範囲は0〜99)から特図Gの図柄当選データを引き、キャリーが発生した場合は「特図G」に当選とし、キャリーが発生しなかった場合には、特図Gの図柄当選データを引いた値からさらに特図Hの図柄当選データを引き、ここではキャリーが発生するため「特図H」に当選とする。なお、特図Hの図柄当選データを引く前に、「特図H」に当選したと判定してもよい。このようにして、当否判定結果が小当りの場合には、特図決定結果として「特図G」または「特図H」を決定する。さらに、当否判定結果がハズレの場合であれば、RAM308の保留記憶部から先に取得した1セット分の乱数のうちのハズレ用特図乱数(取り得る数値範囲は0〜99)から特図Iの図柄当選データを引き、キャリーが発生した場合は「特図I」に当選とし、キャリーが発生しなかった場合には、特図Iの図柄当選データを引いた値からさらに特図Jの図柄当選データを引き、ここではキャリーが発生するため「特図J」に当選とする。なおここでも、特図Jの図柄当選データを引く前に、「特図J」に当選したと判定してもよい。このようにして、当否判定結果がハズレの場合には、特図決定結果として「特図I」または「特図J」を決定する。なお、第1副制御部400では、ここで決定された特図決定結果に応じた装飾図柄の組合せである停止図柄態様を決定する。   When the determination result is a big hit, the CPU 304 of the main control unit 300 determines a special jackpot random number for a big hit out of one set of random numbers previously acquired from the reserved storage unit of the RAM 308 (a possible numerical range is 0 to 0). 99) from special figure A, special figure B, ... special figure F, the symbol winning data corresponding to each stop symbol is gradually subtracted, and the stop symbol when a carry occurs is used as the special symbol determination result. . If the result of the determination is a small hit, a special hit random number for a small hit (a numerical range that can be taken is 0 to 99) out of one set of random numbers previously acquired from the reserved storage unit of the RAM 308. If the symbol winning data of Fig. G is drawn and a carry occurs, "Special Illustration G" is won, and if no carry occurs, the special drawing H is further subtracted from the value obtained by subtracting the symbol winning data of Special Illustration G. The symbol winning data is drawn, and since a carry occurs here, “Special Figure H” is won. Note that before drawing the symbol winning data of the special figure H, it may be determined that “Special figure H” has been won. In this way, when the determination result is a small hit, “special figure G” or “special figure H” is determined as the special figure determination result. Further, if the determination result is a loss, a special figure random number for loss (a possible numerical range is 0 to 99) out of one set of random numbers previously acquired from the storage unit of the RAM 308 will be special figure I. If a carry occurs, the special symbol I will be selected, and if no carry occurs, the special symbol J will be further subtracted from the value obtained by subtracting the special symbol I symbol winning data. The winning data is drawn, and here a carry occurs, so “Special Figure J” is won. Here, it may be determined that “Special Figure J” has been won before drawing the symbol winning data of Special Figure J. In this way, when the determination result is lost, “Special Figure I” or “Special Figure J” is determined as the special figure determination result. Note that the first sub-control unit 400 determines a stop symbol pattern that is a combination of decorative symbols according to the special symbol determination result determined here.

また、RAM308の保留記憶部から先に取得した1セット分の乱数のうちの特図変動時間決定用乱数(取り得る数値範囲は0〜255)を取得し、取得した特図変動時間決定用乱数を用いた抽選で、、特図決定結果に基づいて、複数の変動時間のうちから特図表示装置(212,214)に特図を変動表示する時間(特図変動時間)を1つ選択する。なお、第1副制御部400では、ここで決定された特図変動時間に応じた装飾図柄表示装置208の演出態様を決定する。特図変動時間決定用乱数値を用いた抽選で複数の変動時間のうちから特図変動時間を1つ選択する主制御部300のCPU304も、抽選手段の一例に相当する。ここで、特図変動時間の抽選処理は、特図の大当りか否かを抽選する当否判定とは異なり、特図の図柄を決定する抽選とも異なる、演出に関する抽選処理に相当する。すなわち、制御状態の変更とは無関係であって、賞球の払出にも無関係な抽選処理である。   Further, a special figure variation time determination random number (possible numerical range is 0 to 255) of the random numbers for one set previously acquired from the reserved storage unit of the RAM 308 is acquired, and the acquired special figure variation time determination random number is acquired. In the lottery using, based on the result of the special figure determination, one time (special figure fluctuation time) for displaying the special figure on the special figure display device (212, 214) is selected from a plurality of fluctuation times. . In addition, in the 1st sub control part 400, the production | presentation aspect of the decoration symbol display apparatus 208 according to the special figure change time determined here is determined. The CPU 304 of the main control unit 300 that selects one special figure fluctuation time from a plurality of fluctuation times by lottery using the special figure fluctuation time determination random number value also corresponds to an example of a lottery means. Here, the lottery process for the special figure variation time corresponds to the lottery process related to the production, which is different from the determination of whether or not the special figure is a big hit, and different from the lottery for determining the symbol of the special figure. That is, the lottery process is irrelevant to the change of the control state and is not related to the payout of the prize ball.

ステップS3229fでは、RAM308の保留記憶部から先に取得した1セット分の乱数を消去し、この特図関連抽選処理は終了になる。ステップS3229の特図関連抽選処理に続いて行われるステップS3231では、コマンド設定送信処理を行い、各種のコマンドが第1副制御部400に送信される。なお、第1副制御部400に送信する出力予定情報は本実施形態では16ビットで構成しており、ビット15はストローブ情報(オンの場合、データをセットしていることを示す)、ビット11〜14はコマンド種別(本実施形態では、基本コマンド、図柄変動開始コマンド、図柄変動停止コマンド、入賞演出開始コマンド、終了演出開始コマンド、当りラウンド数指定コマンド、復電コマンド、RAMクリアコマンド、特図保留増加コマンド、普図保留増加コマンドなどコマンドの種類を特定可能な情報)、ビット0〜10はコマンドデータ(コマンド種別に対応する所定の情報)で構成している。   In step S3229f, the one set of random numbers previously acquired from the reserved storage unit of the RAM 308 is erased, and the special drawing related lottery process ends. In step S3231, which is performed following the special figure-related lottery process in step S3229, a command setting transmission process is performed, and various commands are transmitted to the first sub-control unit 400. Note that the output schedule information transmitted to the first sub-control unit 400 is composed of 16 bits in the present embodiment, bit 15 is strobe information (indicating that data is set when ON), bit 11 -14 are command types (in this embodiment, basic command, symbol variation start command, symbol variation stop command, winning effect start command, end effect start command, per round number designation command, power recovery command, RAM clear command, special figure. Bits 0 to 10 are constituted by command data (predetermined information corresponding to the command type).

具体的には、ストローブ情報は上述のコマンド送信処理でオン、オフするようにしている。また、コマンド種別が図柄変動開始コマンドの場合であればコマンドデータに、特図停止図柄を表す情報、制御状態を表す情報(時短フラグおよび確変フラグの設定状態を表す情報)、特図変動時間を表す情報などを示す情報を含み、図柄変動停止コマンドの場合であれば、特図停止図柄を表す情報(特図決定結果)、制御状態を表す情報などを含み、入賞演出開始コマンドおよび終了演出開始コマンドの場合であれば、制御状態を表す情報などを含み、当りラウンド数指定コマンドの場合であれば制御状態を表す情報、当りラウンド数などを含むようにしている。コマンド種別が基本コマンドを示す場合は、コマンドデータにデバイス情報、第1特図始動口230への入賞の有無、第2特図始動口232への入賞の有無、可変入賞口234への入賞の有無などを含む。   Specifically, the strobe information is turned on and off in the command transmission process described above. If the command type is a symbol variation start command, the command data includes information indicating the special symbol stop symbol, information indicating the control state (information indicating the setting state of the time reduction flag and the probability variation flag), and the special symbol variation time. In the case of a symbol variation stop command, information indicating a special symbol stop symbol (result of determining a special symbol), information indicating a control state, and the like, a winning effect start command and an end effect start are included. In the case of a command, information indicating a control state is included, and in the case of a per-round number designation command, information indicating a control state, a per-round number, and the like are included. When the command type indicates a basic command, device information in the command data, presence / absence of winning at the first special figure starting port 230, presence / absence of winning at the second special figure starting port 232, winning of the variable winning port 234 Includes presence or absence.

また、上述の一般コマンド回転開始設定送信処理では、コマンドデータにRAM308に記憶している、特図停止図柄を表す情報(特図決定結果)、制御状態を表す情報、特図変動時間を表す情報、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。   In the general command rotation start setting transmission process described above, information representing the special figure stop symbol (special figure determination result), information representing the control state, and information representing the special figure variation time stored in the RAM 308 as command data. The information indicating the number of the first special figure variable game or the second special figure variable game that is on hold is set.

上述の一般コマンド回転停止設定送信処理では、コマンドデータにRAM308に記憶している、特図停止図柄を表す情報(特図決定結果)、制御状態を表す情報などを示す情報を設定する。上述の一般コマンド入賞演出開始設定送信処理では、コマンドデータに、RAM308に記憶している、入賞演出期間中に装飾図柄表示装置208・各種ランプ418・スピーカ120に出力する演出制御情報、制御状態を表す情報、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。入演出開始コマンドを受信した第1副制御部400は、その入演出開始コマンドに基づいて第2副制御部500に入賞演出制御コマンドを送信する。入賞演出制御コマンドを受信した第2副制御部500は、装飾図柄表示装置208に、大当り遊技が開始されることを遊技者に報知する画像を所定のオープニング演出期間(例えば3秒間)表示させ、大当り遊技が開始する。   In the general command rotation stop setting transmission process described above, information indicating the special figure stop symbol (special figure determination result), information indicating the control state, and the like stored in the RAM 308 is set in the command data. In the above-described general command winning effect start setting transmission process, the command data includes the effect control information and the control state that are stored in the RAM 308 and are output to the decorative symbol display device 208, various lamps 418, and the speaker 120 during the winning effect period. Information indicating the number of the first special figure variable game or the second special figure variable game that is held is set. The first sub control unit 400 that has received the winning effect start command transmits a winning effect control command to the second sub control unit 500 based on the winning effect start command. The second sub-control unit 500 that has received the winning effect control command causes the decorative symbol display device 208 to display an image for notifying the player that the big hit game is started for a predetermined opening effect period (for example, 3 seconds), The jackpot game starts.

上述の一般コマンド終了演出開始設定送信処理では、コマンドデータに、RAM308に記憶している、演出待機期間中に装飾図柄表示装置208・各種ランプ418・スピーカ120に出力する演出制御情報、制御状態を表す情報、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。終了演出開始コマンドを受信した第1副制御部400は、その終了演出開始コマンドに基づいて第2副制御部500に終了演出制御コマンドを送信する。終了演出制御コマンドを受信した第2副制御部500は、装飾図柄表示装置208に大当りを終了することを遊技者に報知する画像を所定の終了演出期間(例えば3秒間)表示させ、大当り遊技が終了する。   In the above-described general command end effect start setting transmission process, the command data includes the effect control information and the control state stored in the RAM 308 and output to the decorative symbol display device 208, various lamps 418, and the speaker 120 during the effect standby period. Information indicating the number of the first special figure variable game or the second special figure variable game that is held is set. The first sub control unit 400 that has received the end effect start command transmits an end effect control command to the second sub control unit 500 based on the end effect start command. Receiving the end effect control command, the second sub-control unit 500 causes the decorative symbol display device 208 to display an image for informing the player that the big hit is to be ended for a predetermined end effect period (for example, 3 seconds). finish.

上述の一般コマンド大入賞口開放設定送信処理では、コマンドデータに、RAM308に記憶している当りラウンド数、現在のラウンド数、制御状態を表す情報などを示す情報を設定する。上述の一般コマンド大入賞口閉鎖設定送信処理では、コマンドデータに、RAM308に記憶している現在のラウンド数、制御状態を表す情報、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。   In the general command big prize opening release transmission process described above, information indicating the number of winning rounds stored in the RAM 308, the current number of rounds, information indicating the control state, etc. is set in the command data. In the above-described general command big prize opening closing setting transmission process, the command data, the current round number stored in the RAM 308, information indicating the control state, the first special figure variation game or the second special figure variation held. Information indicating the number of games is set.

また、このステップS3231では一般コマンド特図保留増加処理も行われる。この一般コマンド特図保留増加処理では、特図保留増加コマンドのコマンドデータにRAM308の送信用情報記憶領域に記憶している特図識別情報(特図1または特図2を示す情報)、制御状態を表す情報、事前判定した特図1あるいは特図2の情報を設定する。   In step S3231, general command special figure hold increase processing is also performed. In this general command special figure hold increase processing, special figure identification information (information showing special figure 1 or special figure 2) stored in the transmission information storage area of the RAM 308 in the command data of the special figure hold increase command, the control state And information on the special figure 1 or the special figure 2 determined in advance.

さらに、このステップS3231では一般コマンド普図保留増加処理も行われる。この一般コマンド普図保留増加処理では、普図保留増加コマンドのコマンドデータに、制御状態を表す情報等を設定する。また、主制御部300から第1副制御部400には、普図絡みのコマンドとして、普図の変動表示が開始した(する)ことを表す普図変動開始コマンドも送信される。なお、主制御部300から第1副制御部400には、普図の変動表示が停止した(する)ことを表す普図変動停止コマンドや、一対の羽根部材2321が開放を開始した(する)ことを表す電チュー開放開始コマンドや、一対の羽根部材2321が閉鎖した(する)ことを表す電チュー閉鎖コマンドを送信するようにしてもよい。   Furthermore, in this step S3231, general command usual figure hold increase processing is also performed. In this general command usual figure hold increase process, information indicating a control state is set in the command data of the general figure hold increase command. In addition, the main control unit 300 also transmits to the first sub-control unit 400 a general map change start command indicating that the normal map display has started (or is) as a general command-related command. In addition, the main control unit 300 to the first sub control unit 400 start (do) the common figure change stop command indicating that the change display of the normal figure has stopped (do) or the pair of blade members 2321. An electric chew opening start command indicating that, or an electric chew closing command indicating that the pair of blade members 2321 are closed (to do) may be transmitted.

第1副制御部400では、受信した出力予定情報に含まれるコマンド種別により、主制御部300における遊技制御の変化に応じた演出制御の決定が可能になるとともに、出力予定情報に含まれているコマンドデータの情報に基づいて、演出制御内容を決定することができるようになる。また、第1副制御部400では、コマンドに含まれている当りラウンド数と現在のラウンド数に基づき、当り全ラウンドが終了するまでの残りラウンド数を取得する。   In the first sub-control unit 400, it is possible to determine the production control according to the change of the game control in the main control unit 300 by the command type included in the received output schedule information, and it is included in the output schedule information. Based on the information of the command data, the contents of effect control can be determined. In addition, the first sub-control unit 400 acquires the number of remaining rounds until all the rounds are completed based on the number of rounds included in the command and the current number of rounds.

また、このコマンド設定送信処理では、図75に示す払出制御部600にもコマンドを送信する。払出制御部600に出力する出力予定情報および払出要求情報は1バイトで構成しており、ビット7にストローブ情報(オンの場合、データをセットしていることを示す)、ビット6に電源投入情報(オンの場合、電源投入後一回目のコマンド送信であることを示す)、ビット4〜5に暗号化のための今回加工種別(0〜3)、およびビット0〜3に暗号化加工後の払出要求数を示すようにしている。   In this command setting transmission process, a command is also transmitted to the payout control unit 600 shown in FIG. The output schedule information and the payout request information output to the payout control unit 600 are composed of 1 byte, strobe information (indicating that data is set when turned on) in bit 7, and power-on information in bit 6. (In the case of ON, it indicates that this is the first command transmission after power-on), the current processing type (0-3) for encryption in bits 4-5, and the encrypted processing in bits 0-3 The number of payout requests is indicated.

次に、図162に示す主制御部タイマ割込処理では、外部出力信号設定処理(ステップS3233)を行う。この外部出力信号設定処理では、RAM308に記憶している遊技情報を、情報出力回路336を介してパチンコ機100とは別体の情報入力回路350に出力する。ステップS3235では、デバイス監視処理を行う。   Next, in the main control unit timer interrupt process shown in FIG. 162, an external output signal setting process (step S3233) is performed. In this external output signal setting process, the game information stored in the RAM 308 is output to the information input circuit 350 separate from the pachinko machine 100 via the information output circuit 336. In step S3235, device monitoring processing is performed.

図166は、デバイス監視処理の流れを示すフローチャートである。まず、ステップS3235aでは、内部情報レジスタ3101の情報を取得する。なお、このステップS3235aはタイマ割込み毎に実行されるため、内部情報レジスタ3101の情報はタイマ割込み毎に取得されることになる。   FIG. 166 is a flowchart showing the flow of device monitoring processing. First, in step S3235a, information in the internal information register 3101 is acquired. Since step S3235a is executed for each timer interrupt, the information in the internal information register 3101 is acquired for each timer interrupt.

ステップS3235bでは、ステップS3235aで取得した情報に基づいて、乱数生成回路318に異常があるか否かを判定する。なお、ここでの乱数生成回路の異常とは、周波数監視回路3182の異常および乱数監視回路3184の異常の双方を指す。ここで、異常があると判定された場合にはステップS3235cに進み、異常があると判定されなかった場合にはステップS3235eに進む。   In step S3235b, it is determined whether or not there is an abnormality in the random number generation circuit 318 based on the information acquired in step S3235a. Here, the abnormality of the random number generation circuit refers to both abnormality of the frequency monitoring circuit 3182 and abnormality of the random number monitoring circuit 3184. If it is determined that there is an abnormality, the process proceeds to step S3235c. If it is not determined that there is an abnormality, the process proceeds to step S3235e.

ステップS3235cでは、乱数生成回路異常フラグをオンに設定する。なお、このフラグはRAM308内に記憶されている。より具体的には、周波数監視回路3182の異常を示すフラグおよび乱数監視回路3184の異常を示すフラグがある。以下では、これらのフラグを総称して乱数生成回路異常フラグと称する場合がある。   In step S3235c, the random number generation circuit abnormality flag is set to ON. This flag is stored in the RAM 308. More specifically, there are a flag indicating abnormality of the frequency monitoring circuit 3182 and a flag indicating abnormality of the random number monitoring circuit 3184. Hereinafter, these flags may be collectively referred to as a random number generation circuit abnormality flag.

続いて実行されるステップS3235dでは、乱数生成回路異常フラグ設定コマンドの送信準備が実行され、ステップS3235eに進む。なお、この乱数生成回路異常フラグ設定コマンドは、周波数監視回路3182の異常か、乱数監視回路3184の異常か識別可能な情報を含むコマンドである。   Subsequently, in step S3235d to be executed, preparation for transmission of the random number generation circuit abnormality flag setting command is executed, and the process proceeds to step S3235e. The random number generation circuit abnormality flag setting command is a command including information that can identify whether the frequency monitoring circuit 3182 is abnormal or the random number monitoring circuit 3184 is abnormal.

ステップS3235eでは、その他デバイス監視処理が実行される。例えば、上述のステップS3205において信号状態記憶領域に記憶した各種センサの信号状態を読み出して、ガラス枠開放エラーの有無または下皿満タンエラーの有無などを監視し、ガラス枠開放エラーまたは下皿満タンエラーを検出した場合に、第1副制御部400に送信すべき送信情報に、ガラス枠開放エラーの有無または下皿満タンエラーの有無を示すデバイス情報を設定する。また、図4に示す各種ソレノイド332を駆動して第2特図始動口232や、可変入賞口234の開閉を制御したり、駆動回路324、326、330を介して普通図柄表示装置210、第1特図表示装置212、第2特図表示装置214、各種状態表示部328などに出力する表示データを、I/O310の出力ポートに設定する。また、払出要求数送信処理(ステップS3219)で設定した出力予定情報をI/O310の出力ポートを介して第1副制御部400に出力する。これらの処理が終了すると、このステップS3235のデバイス監視処理は終了になる。   In step S3235e, other device monitoring processing is executed. For example, the signal states of various sensors stored in the signal state storage area in step S3205 described above are read, and the presence or absence of a glass frame opening error or a lower pan full error is monitored. Device information indicating whether or not there is a glass frame open error or a lower pan full error is set in the transmission information to be transmitted to the first sub-control unit 400. Also, the various solenoids 332 shown in FIG. 4 are driven to control the opening / closing of the second special figure starting port 232 and the variable winning port 234, and the normal symbol display device 210, the first symbol is displayed via the driving circuits 324, 326, 330. Display data to be output to the first special figure display device 212, the second special figure display device 214, the various status display units 328, and the like is set in the output port of the I / O 310. Further, the output schedule information set in the payout request number transmission process (step S3219) is output to the first sub-control unit 400 via the output port of the I / O 310. When these processes are completed, the device monitoring process in step S3235 ends.

続いて実行されるステップS3237では、電源の遮断(電断)を検出したか否かを判定するために、低電圧信号がオンであるか否かを判定する。そして、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS3239に進み、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS3241に進む。   In the subsequent step S3237, it is determined whether or not the low voltage signal is ON in order to determine whether or not a power interruption (power interruption) has been detected. If the low-voltage signal is off (when power-off is not detected), the process proceeds to step S3239. If the low-voltage signal is on (when power-off is detected), the process proceeds to step S3241.

ステップS3239では、タイマ割込終了処理を行う。このタイマ割込終了処理では、ステップS3201で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割り込み許可の設定などを行い、その後、図159に示す主制御部メイン処理に復帰する。一方、ステップS3241では、復電時に電断時の状態に復帰するための電断時処理を行う。なお、本実施形態では、電源の遮断を判定する処理(ステップS3237)および電断処理(ステップS3241)を主制御部の割込み制御において実行しているが、必ずしも主制御部の割込み制御で行う必要はなく、低電圧信号の入力に基づいて強制割込みを発生させ、この強制割込みによって電断処理が実行されるように構成してもよい。ただし、このように強制割込みによって実行される電断処理では、本実施形態における電断処理(ステップS3241)の処理に加え、上述したタイマ割込み開始処理(S3201)において実行されるCPU304の各レジスタの値をスタック領域に一時的に退避する処理も同時に実行する必要がある。   In step S3239, a timer interrupt end process is performed. In this timer interrupt end process, the value of each register temporarily saved in step S3201 is set in each original register, interrupt permission is set, etc., and then the main control unit main process shown in FIG. Return. On the other hand, in step S3241, a power interruption process for returning to the power interruption state at the time of power recovery is performed. In the present embodiment, the process for determining the power interruption (step S3237) and the power interruption process (step S3241) are executed in the interrupt control of the main control unit, but it is not always necessary to perform the interrupt control in the main control unit. Instead, a forced interrupt may be generated based on the input of the low voltage signal, and the power interruption process may be executed by this forced interrupt. However, in the power interruption process executed by the forced interrupt in this way, in addition to the power interruption process (step S3241) in the present embodiment, each register of the CPU 304 executed in the timer interrupt start process (S3201) described above. The process of temporarily saving the value to the stack area must also be executed at the same time.

図201は、主制御部における電断時処理の流れを示すフローチャートである。   FIG. 201 is a flowchart illustrating a flow of power interruption processing in the main control unit.

この電断時処理では、まず、スタックポインタを復帰データとしてRAM308の所定の領域に退避し(ステップS3431)、次いで、RAM308に設けた電源ステータス記憶領域に記憶した電源ステータスをサスペンドを示す情報に更新する(ステップS3432)。続いて、RAM308の所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出し、算出したチェックサムの結果をRAM308に設定する(ステップS3433)。最後に、RAM308へのアクセスを禁止に設定し(ステップS3434)、この電断時処理は終了になり、やがてパチンコ機100は電断する。なお、電圧が完全に低下する前に復帰した場合には、図146に示すリセット制御回路314内に設けられたWDT3141がタイムアウトすることによってリセット制御回路314によりリセットがかかり設定されたリセット動作(ここではシステムリセット)が実行される。   In this power interruption process, first, the stack pointer is saved as a return data in a predetermined area of the RAM 308 (step S3431), and then the power status stored in the power status storage area provided in the RAM 308 is updated to information indicating suspend. (Step S3432). Subsequently, a checksum is calculated by adding all the 1-byte data stored in a predetermined area (for example, all areas) of the RAM 308 to a 1-byte register whose initial value is 0, and the calculated checksum Is set in the RAM 308 (step S3433). Finally, access to the RAM 308 is set to be prohibited (step S3434), and the process at the time of power interruption ends, and eventually the pachinko machine 100 is disconnected. If the voltage is restored before it completely drops, the reset control circuit 314 resets when the WDT 3141 provided in the reset control circuit 314 shown in FIG. System reset).

以上説明した主制御部タイマ割込み処理も、主処理の一例に相当する。   The main control unit timer interrupt process described above also corresponds to an example of the main process.

続いて、図162に示す入賞受付処理(ステップS3217)のうち、特図当選乱数および普図当選乱数を取得する処理について説明する。図167は、ステップS3217における入賞受付処理のうち、特図当選乱数および普図当選乱数を取得する処理の流れを示した図である。   Next, a process of acquiring the special winning random number and the normal winning random number in the winning acceptance process (step S3217) shown in FIG. 162 will be described. FIG. 167 is a diagram showing a flow of processing for obtaining a special winning random number and a normal winning random number in the winning acceptance processing in step S3217.

ステップS3217aでは、乱数生成回路異常フラグがオンに設定されているか否かを判定する。このフラグは、図166のステップS3235cで設定されるフラグであり、乱数更新用のクロックの周波数に異常があった場合や、図148に示す乱数更新回路3183で更新される乱数が正常に更新されなかった場合等に、対応するフラグがオンに設定される。このフラグがオンに設定されている場合には、この入賞受付処理は終了になり、異常がなかった場合にはステップS3217bに進む。   In step S3217a, it is determined whether or not the random number generation circuit abnormality flag is set to ON. This flag is a flag set in step S3235c in FIG. 166. When there is an abnormality in the frequency of the random number update clock, or the random number updated in the random number update circuit 3183 shown in FIG. 148 is updated normally. If not, the corresponding flag is set to ON. If this flag is set to ON, the winning acceptance process is terminated, and if there is no abnormality, the process proceeds to step S3217b.

ステップS3217bでは、第1特図始動口230に入賞したことを表す特図1の入球信号があり、且つ、保留している特図変動遊技の数が所定数(本実施形態では4)未満であるか否かを判定し、否定的な場合にはステップS3217fへ進み、肯定的な場合にはステップS3217cに進む。ステップS3217cでは、RAM308に用意された確変フラグを参照し、確率変動中(特図高確率状態)か否かを判定する。確変フラグがオフに設定されていれば、非確率変動中(特図低確率状態)であり、ステップS3217dが実行される。このステップS3217dでは、乱数生成回路318のチャンネルCH1の乱数レジスタから乱数を取得する。本実施形態では乱数をラッチする契機となる入球信号とは別に、CPUに同様の信号が送られ、CPUはその信号を受信したことに基づいて所定のチャンネル(ここではCH1)における信号に対応する乱数レジスタからラッチされている乱数を取得する。CPU304は、取得した乱数にRレジスタの値を加算し、さらに1を加えた値を特図1当選乱数として得、ステップS3217fに進む。なお、CPU304は、図161に示すステップS3053aにおいて設定された乱数生成範囲を認識しており、その乱数生成範囲に基づいて加算処理を行う。すなわち、加算した値が乱数生成範囲の最大値を超える場合には当該乱数生成範囲の最小値に残りの値を加算する。   In step S3217b, there is a special signal of FIG. 1 indicating that the first special figure starting port 230 has been won, and the number of special figure variable games held is less than a predetermined number (4 in this embodiment). If the result is negative, the process proceeds to step S3217f. If the result is positive, the process proceeds to step S3217c. In step S3217c, the probability variation flag prepared in the RAM 308 is referred to and it is determined whether or not the probability is changing (the special figure high probability state). If the probability variation flag is set to OFF, it means that non-probability variation is in progress (special figure low probability state), and step S3217d is executed. In step S3217d, a random number is acquired from the random number register of channel CH1 of the random number generation circuit 318. In the present embodiment, a similar signal is sent to the CPU separately from the incoming signal that triggers random number latching, and the CPU responds to a signal in a predetermined channel (here, CH1) based on the reception of the signal. Get the latched random number from the random number register. The CPU 304 adds the value of the R register to the acquired random number, and further obtains a value obtained by adding 1 as the special figure 1 winning random number, and proceeds to step S3217f. The CPU 304 recognizes the random number generation range set in step S3053a shown in FIG. 161, and performs addition processing based on the random number generation range. That is, when the added value exceeds the maximum value of the random number generation range, the remaining value is added to the minimum value of the random number generation range.

一方、確変フラグがオンに設定されていれば、確率変動中であり、ステップS3217eが実行される。このステップS3217eでは、乱数生成回路318のチャンネルCH2の乱数レジスタから乱数を取得し、ステップS3217dと同様に、CPU304は、取得した乱数にRレジスタの値を加算し、さらに1を加えた値を特図1当選乱数として得、ステップS3217fに進む。   On the other hand, if the probability change flag is set to ON, the probability is changing, and step S3217e is executed. In step S3217e, a random number is acquired from the random number register of channel CH2 of the random number generation circuit 318, and in the same manner as in step S3217d, the CPU 304 adds the value of the R register to the acquired random number and adds a value obtained by adding 1 to the special value. 1 is obtained as a winning random number, and the process proceeds to step S3217f.

ステップS3217fでは、第2特図始動口232に入賞したことを表す特図2の入球信号があり、且つ、保留している特図変動遊技の数が所定数(本実施形態では4)未満であるか否かを判定し、否定的な場合にはステップS3217jへ進み、肯定的な場合にはステップS3217gに進む。ステップS3217gでも、ステップS3217cと同様に、RAM308に用意された確変フラグを参照し、確変フラグがオフに設定されていれば(非確率変動中であれば)、乱数生成回路318のチャンネルCH1の乱数レジスタから乱数を取得し、ステップS3217dと同様に、CPU304は、取得した乱数にRレジスタの値を加算し、さらに1を加えた値を、ここでは特図2当選乱数として得(ステップS3217H)、ステップS3217jに進む。一方、確変フラグがオンに設定されていれば(確率変動中であれば)、乱数生成回路318のチャンネルCH2の乱数レジスタから乱数を取得し、同じくステップS3217dと同様に、CPU304は、取得した乱数にRレジスタの値を加算し、さらに1を加えた値を特図2当選乱数として得(ステップS3217i)、ステップS3217jに進む。   In step S3217f, there is a special signal of FIG. 2 indicating that the second special figure starting port 232 has been won, and the number of special figure variable games held is less than a predetermined number (4 in the present embodiment). If the result is negative, the process proceeds to step S3217j. If the result is positive, the process proceeds to step S3217g. Also in step S3217g, as in step S3217c, the probability variation flag prepared in the RAM 308 is referred to. The random number is acquired from the register, and similarly to step S3217d, the CPU 304 adds the value of the R register to the acquired random number, and further obtains a value obtained by adding 1 as a special figure 2 winning random number (step S3217H). The process proceeds to step S3217j. On the other hand, if the probability variation flag is set to ON (if the probability is changing), the random number is acquired from the random number register of the channel CH2 of the random number generation circuit 318, and similarly to step S3217d, the CPU 304 The value of the R register is added to the value, and a value obtained by adding 1 is obtained as the special figure 2 winning random number (step S3217i), and the process proceeds to step S3217j.

ステップS3217jでは、普図始動口228に入賞したことを表す普図の入球信号があり、且つ、保留している普図変動遊技の数が所定数(本実施形態では2)未満であるか否かを判定し、否定的な場合には入賞受付処理は終了になり、肯定的な場合にはステップS3217kに進む。ステップS3217kでは、RAM308に用意された時短フラグを参照し、時短フラグがオフに設定されていれば、普図低確率状態(非電サポ中)であり、ステップS3217lが実行される。ステップS3217lでは、乱数生成回路318のチャンネルCH3の乱数レジスタから普図当選乱数として乱数を取得し、この入賞受付処理は終了になる。一方、時短フラグがオンに設定されていれば、普図高確率状態(電サポ中)であり、ステップS3217mが実行される。ステップS3217mでは、乱数生成回路318のチャンネルCH4の乱数レジスタから普図当選乱数として乱数を取得し、入賞受付処理は終了になる。   In step S3217j, whether there is a general-purpose entrance signal indicating that a win has been made at the general-purpose start opening 228, and whether the number of general-purpose variable games held is less than a predetermined number (2 in this embodiment). If the answer is negative, the winning acceptance process is terminated. If the answer is affirmative, the process proceeds to step S3217k. In step S3217k, the time reduction flag prepared in the RAM 308 is referred to. If the time reduction flag is set to OFF, it is a normal low probability state (non-electric support), and step S3217l is executed. In step S32217l, a random number is acquired as a normal winning random number from the random number register of the channel CH3 of the random number generation circuit 318, and this winning acceptance process ends. On the other hand, if the time reduction flag is set to ON, it is a normal high probability state (during electric support), and step S3217m is executed. In step S3217m, a random number is acquired as a normal winning random number from the random number register of channel CH4 of the random number generation circuit 318, and the winning acceptance process is ended.

ここで、上記説明した内容を踏まえて、遊技台への電圧供給が低下した場合の動作について説明する。例えば大当り中の状態で停電などによって電源が切られた場合、再度電源投入によって遊技台が初期状態になると、遊技者にとって著しく不利益な状態になる。このような事態にならないよう、コンデンサに蓄えられた電力により遊技台の状態を保持する電断時処理(図162のステップS3241)が実行される。この電断時処理は、電源が切られた場合の他、静電気などの要因により供給電圧が一時的に低下した場合にも実行される。以下、電源が切られた場合(以下、電源オフと称する)の動作と、供給電圧が一時的に低下した場合(以下、瞬断と称する)の動作について、図168を用いて説明する。同図(a)は、電源オフの場合の動作を示す図であり、(b)は、瞬断の場合の動作を示す図である。   Here, based on the content described above, the operation when the voltage supply to the game machine is reduced will be described. For example, when the power is turned off due to a power failure or the like in a big hit state, when the game table is returned to the initial state by turning on the power again, the player becomes extremely disadvantageous. In order to prevent such a situation from occurring, a power interruption process (step S3241 in FIG. 162) for holding the state of the game machine with the electric power stored in the capacitor is executed. This power interruption process is executed not only when the power is turned off, but also when the supply voltage temporarily decreases due to factors such as static electricity. Hereinafter, an operation when the power is turned off (hereinafter referred to as “power off”) and an operation when the supply voltage is temporarily reduced (hereinafter referred to as “instantaneous interruption”) will be described with reference to FIG. FIG. 4A is a diagram showing an operation when the power is off, and FIG. 4B is a diagram showing an operation when there is an instantaneous interruption.

電源が切られた場合、電圧が供給されなくなる(電断発生)が、すぐに電圧は0にはならず、コンデンサに蓄えられた電力により供給電圧が徐々に降下する。供給電圧が所定の電圧(本実施形態では9V)まで効果すると電圧監視回路338から低電圧信号がCPU304に送信される。この信号を受信したことにより、主制御部タイマ割込み処理のステップS3237により電断が発生したと判定され、ステップS3241の電断時処理が実行される。図168(a)には、電断が発生してから供給電圧が9Vに降下するまで通常処理が実行され、供給電圧が9Vになった時点で電断時処理が開始されていることが示されている。この電断時処理により、RAM308の内部に遊技台の状態を示すデータが記憶される。なお、本実施形態では、この電断時処理の実行に必要な時間(主制御部電断時処理猶予時間)を十分確保することができるコンデンサが備えられている。その後、電断時処理が終了すると、そのまま待機状態になる。その後電源の供給が再開されない場合、電圧が0に落ちて遊技台の動作が停止する。   When the power is turned off, the voltage is not supplied (power interruption occurs), but the voltage does not immediately become 0, but the supply voltage gradually drops due to the electric power stored in the capacitor. When the supply voltage is effective up to a predetermined voltage (9 V in this embodiment), a low voltage signal is transmitted from the voltage monitoring circuit 338 to the CPU 304. By receiving this signal, it is determined that a power interruption has occurred in step S3237 of the main control unit timer interrupt process, and the power interruption process in step S3241 is executed. FIG. 168 (a) shows that the normal processing is executed until the supply voltage drops to 9V after the occurrence of the power interruption, and the power interruption processing is started when the supply voltage becomes 9V. Has been. By this power interruption process, data indicating the state of the game machine is stored in the RAM 308. In the present embodiment, a capacitor is provided that can sufficiently secure the time required for the execution of the power interruption process (main control section power interruption time delay). After that, when the process at the time of power interruption is completed, the apparatus is in a standby state as it is. Thereafter, when the supply of power is not resumed, the voltage drops to 0 and the operation of the game machine stops.

一方、瞬断の場合にも、電圧監視回路338から低電圧信号がCPU304に送信されることにより、上記電断時処理が実行された後、そのまま待機状態になる。図168(b)には、一時的な電圧降下により、電断時処理が開始されていることが示されている。ここで、電圧が動作電圧まで回復しても、待機状態が継続する。この待機状態が継続していると、主制御部300のリセット制御回路314のWDT3141がリスタートされず(図162のステップS3203が実行されない)、WDT3141がタイムアウトする。このことによりリセット制御回路314はシステムリセット信号を出力する。その後、図159に示す主制御部メイン処理が再開すると、電断時処理で記憶されていたデータに基づいてステップS3009のデータ書き戻し処理を含む復帰処理(ステップS3009〜ステップS3011)が実行される。図168(b)には、WDT3141のタイムアウトによるリセット信号が送信されたことにより、待機状態から復帰処理(リセット処理)に移っていることが示されている。この復帰処理により遊技台の状態が電断時処理前の状態に復帰する。なお、ここで、電断時処理で記憶されていたデータに不具合があった場合は、電断時処理前の状態に復帰できないと判定され、RAM308の内容がクリアされる(図159のステップS3013)。   On the other hand, even in the case of a momentary interruption, a low voltage signal is transmitted from the voltage monitoring circuit 338 to the CPU 304, so that the power interruption process is executed, and then a standby state is entered. FIG. 168 (b) shows that the power interruption process is started due to a temporary voltage drop. Here, even if the voltage recovers to the operating voltage, the standby state continues. If this standby state continues, WDT 3141 of reset control circuit 314 of main control unit 300 is not restarted (step S3203 of FIG. 162 is not executed), and WDT 3141 times out. As a result, the reset control circuit 314 outputs a system reset signal. Thereafter, when the main process of the main control unit shown in FIG. 159 is resumed, the return process (steps S3009 to S3011) including the data write-back process of step S3009 is executed based on the data stored in the process at the time of power interruption. . FIG. 168 (b) shows that the process is shifted from the standby state to the return process (reset process) due to the transmission of the reset signal due to the timeout of WDT 3141. By this return processing, the state of the gaming table is restored to the state before the processing at the time of power interruption. Here, if the data stored in the power interruption process is defective, it is determined that the state before the power interruption process cannot be restored, and the contents of the RAM 308 are cleared (step S3013 in FIG. 159). ).

次に、本実施形態の乱数生成回路318により、乱数の生成範囲を設定することの効果について説明し、その後問題点について説明する。上述したように本実施形態の遊技台が有する乱数生成回路318では、抽選結果の基になる乱数の生成範囲を設定することができる。この機能を利用して、遊技状態の設定が容易になる。   Next, the effect of setting a random number generation range by the random number generation circuit 318 of the present embodiment will be described, and then problems will be described. As described above, the random number generation circuit 318 included in the gaming machine of the present embodiment can set a random number generation range that is the basis of the lottery result. Using this function, the game state can be easily set.

まず、乱数生成範囲が0〜65535の場合について説明する。例えば、これらの乱数が当りかハズレのいずれかに対応している場合に、当選確率が1/400(0.25%)になるように設計しようとしたとする。生成される乱数は65536通りあるが、65536の1/400を計算すると163.84となり、整数にならない。仮にこの数字に近い164通りの乱数を当りに対応させた場合、厳密には1/400の当選確率にならない。   First, the case where the random number generation range is 0 to 65535 will be described. For example, when these random numbers correspond to either winning or losing, it is assumed that the winning probability is designed to be 1/400 (0.25%). There are 65536 random numbers to be generated, but when 1/400 of 65536 is calculated, it is 163.84, which is not an integer. If 164 random numbers close to this number are made to correspond to the win, strictly speaking, the winning probability is not 1/400.

ここで、上記の乱数生成範囲が0〜49999に設定されたとする。上記の場合と同様に当選確率が1/400(0.25%)になるようにするには、生成される乱数50000通りの1/400、すなわち125通りの値を当りに対応させればよい。例えば、50000通り乱数のうち0〜124までの値を当りに対応させ、それ以外の125〜49999の値をハズレに対応付けることで、当選確率を1/400にすることができる。すなわち、当選確率が設計値通り(例えば1/400)になるように、乱数生成範囲(例えば0〜49999)および当りに対応する乱数の範囲(例えば0〜124)をそれぞれ設定することができる。   Here, it is assumed that the random number generation range is set to 0-49999. In order to make the winning probability 1/400 (0.25%) as in the above case, it is only necessary to match 1/400 of the generated random numbers 50000, that is, 125 values. . For example, the winning probability can be reduced to 1/400 by associating the values of 0 to 124 out of 50000 random numbers and associating the other values of 125 to 49999 with the loss. That is, the random number generation range (for example, 0 to 49999) and the random number range (for example, 0 to 124) corresponding to the winning can be set so that the winning probability is as designed (for example, 1/400).

以上説明したように、乱数生成範囲を適切に設定することによって、所望の当選確率を設定することができる。これによって、例えば小当りに対応する乱数生成範囲を除外して大当りに対応する乱数生成範囲を残したり、あるいは大当りに対応する乱数生成範囲の半分に該当する乱数が生成されないようにすることも可能である。特に図153を用いて説明したような乱数生成範囲が設定できれば、最大値だけを設定する場合と比較して遊技台の設計が容易になる。このため、乱数生成範囲を設定することは、遊技台の設計において有用であると言える。   As described above, a desired winning probability can be set by appropriately setting the random number generation range. This makes it possible, for example, to exclude the random number generation range corresponding to the big hit and leave the random number generation range corresponding to the big hit, or to prevent the generation of random numbers corresponding to half of the random number generation range corresponding to the big hit. It is. In particular, if a random number generation range as described with reference to FIG. 153 can be set, it becomes easier to design a gaming machine than when only the maximum value is set. For this reason, it can be said that setting the random number generation range is useful in the design of a game machine.

次に、乱数生成範囲を異ならせることにより、当選確率を変更する方法について説明する。例えば、0〜49999の乱数生成範囲のうち、0〜124までの値を当りに対応させた状態から、乱数生成範囲の最大値を49999から249に変更したとする。この場合、0〜124までの値が当りに対応し、125〜249までの値がハズレに対応し、当選確率は1/2になる。すなわち、当り又はハズレに対応する値を固定したまま乱数生成範囲だけを異ならせることにより、当選確率を容易に変更することができる。なお、上記説明では、よりわかり易くするために、当りの範囲を偏らせた例について説明したが、当りの範囲が偏っていなくてもよい。   Next, a method for changing the winning probability by changing the random number generation range will be described. For example, suppose that the maximum value of the random number generation range is changed from 49999 to 249 from the state in which the values from 0 to 124 are matched in the random number generation range of 0 to 49999. In this case, values from 0 to 124 correspond to wins, values from 125 to 249 correspond to loses, and the winning probability is halved. That is, the winning probability can be easily changed by changing only the random number generation range while fixing the value corresponding to the winning or losing. In the above description, the example in which the hit range is biased has been described for easier understanding, but the hit range may not be biased.

生成された乱数に基づいて当りかハズレかを判定する方法として、これらの対応を定めたテーブルを用意しておき、これを使用する方法が考えられる。しかし、この方法で当選確率を変更しようとした場合、当選確率に対応するテーブルをそれぞれ用意しておき、遊技の状態に応じてこれらを使い分ける処理を実行させる必要がある。上記説明した方法では、当り又はハズレに対応する値を定めたテーブルが一つですむため、メモリの容量負担が少なくて済む。当然のことながら、テーブルを切り替える処理は不要である。   As a method for determining whether it is a hit or a loss based on the generated random number, a method in which a table that defines these correspondences is prepared and used can be considered. However, if the winning probability is to be changed by this method, it is necessary to prepare a table corresponding to the winning probability and execute a process for selectively using these according to the state of the game. In the above-described method, only one table that defines values corresponding to hits or misses is required, so that the memory capacity burden can be reduced. As a matter of course, the process of switching the table is unnecessary.

なお、本実施形態では、乱数生成範囲の異なる複数の乱数生成チャンネルを用意し、これらを使い分けることにより遊技中の当選確率を変更しているが、一つのチャンネルに対して適宜乱数生成範囲を変更する構成を用いて当選確率を変更させてもよい。また、本実施形態では、乱数を加工した上で抽選に用いる場合があるが、この場合、加工を考慮したうえで対応するテーブルを用意すればよい。   In this embodiment, a plurality of random number generation channels having different random number generation ranges are prepared, and the winning probability during the game is changed by using these channels properly. However, the random number generation range is appropriately changed for one channel. The winning probability may be changed by using a configuration to do so. In this embodiment, random numbers may be processed and used for lottery. In this case, a corresponding table may be prepared in consideration of processing.

ここで、図169を用いて、乱数生成範囲が意図せずに変更されてしまった場合の問題について説明する。同図は、乱数生成範囲の問題点を示す図である。例えば、静電気等の要因によって上述した瞬断が生じ、その後復帰処理(ユーザリセット)が実行されたとする。この場合、乱数生成回路318の内部レジスタは、そのまま復帰処理以前の状態が維持される。ところが、電圧の変化によって内部レジスタの情報が書き換わる可能性がある。これによって乱数生成範囲が意図せずに変更されると、当選確率が変わってしまうことになる。   Here, a problem when the random number generation range is changed unintentionally will be described with reference to FIG. The figure shows the problem of the random number generation range. For example, it is assumed that the above-described instantaneous interruption occurs due to factors such as static electricity, and then a return process (user reset) is performed. In this case, the internal register of the random number generation circuit 318 is maintained as it is before the return process. However, information in the internal register may be rewritten due to a change in voltage. If the random number generation range is changed unintentionally, the winning probability will change.

例えば、非確率変動状態において、図169(a)の上段に示すように、0〜49999の乱数生成範囲が設定されており、さらにこのうち0〜124(左下がりのハッチングで示す範囲)が当りに対応する乱数であるとする。この状態で静電気等の要因が生じ、乱数生成範囲が0〜250になったとする。この場合、当選確率が1/400から1/2になってしまうため、店側にとっては大きな損害になってしまう。   For example, in the non-stochastic fluctuation state, a random number generation range of 0 to 49999 is set as shown in the upper part of FIG. Is a random number corresponding to. It is assumed that a factor such as static electricity is generated in this state, and the random number generation range becomes 0 to 250. In this case, since the winning probability is reduced from 1/400 to 1/2, the store side is seriously damaged.

また、確率変動状態において、図169(b)の上段に示すように、0〜4999の乱数生成範囲が設定されており、さらにこのうち0〜124(左下がりのハッチングで示す範囲)が当りに対応する乱数であるとする。この状態で静電気等の要因が生じ、乱数生成範囲が0〜59999になったとする。この場合、当選確率が1/40から1/480になってしまうため、遊技者にとって著しく不利益になる。   Further, in the probability variation state, as shown in the upper part of FIG. 169 (b), a random number generation range of 0 to 4999 is set, and among these, 0 to 124 (range indicated by left-downward hatching) is the hit. Assume that the corresponding random number. It is assumed that a factor such as static electricity is generated in this state and the random number generation range becomes 0 to 59999. In this case, the winning probability is reduced from 1/40 to 1/480, which is extremely disadvantageous for the player.

上記の例で説明したように、乱数が生成される数値範囲を任意の数値範囲に制限する手法を用いて抽選処理を行うと、何らかの異常で制限した数値範囲が変化した場合に抽選処理の不安定化を招いてしまうという問題が生じる。   As explained in the above example, if lottery processing is performed using a method that limits the numerical range in which random numbers are generated to an arbitrary numerical range, the lottery processing will not be performed if the numerical range restricted due to some abnormality changes. There arises a problem that it leads to stabilization.

このような事態を防止するため、本実施形態の遊技台では、図161のステップS3053aにおいて、乱数生成範囲を復帰処理の要因が発生した直前の状態に設定し直す処理を実行させる。このように再度乱数生成範囲を設定し直すことによって、上記のような問題が生じないようにすることができる。すなわち、乱数が生成される数値範囲を任意の数値範囲に制限する手法を用いて抽選処理を行いつつも、抽選処理の不安定化を招くことを抑止することができる。   In order to prevent such a situation, in the gaming machine of the present embodiment, in step S3053a in FIG. 161, a process for resetting the random number generation range to a state immediately before the cause of the return process is executed. By resetting the random number generation range in this way, the above problem can be prevented from occurring. That is, it is possible to prevent the lottery process from becoming unstable while performing the lottery process using a method of limiting the numerical value range in which the random number is generated to an arbitrary numerical value range.

なお、本実施形態では、遊技台の起動時に乱数生成範囲が設定されるため、復帰処理の要因が発生した直前の状態が、初期状態と同じであるが、例えば、遊技中に乱数生成範囲を変更可能な構成の場合には、直前の状態に戻す処理が実行されればよい。   In this embodiment, since the random number generation range is set when the game machine is started, the state immediately before the cause of the return process is the same as the initial state. For example, the random number generation range is set during the game. In the case of a changeable configuration, a process for returning to the previous state may be executed.

また、本実施形態のように、乱数生成範囲が設定されていたチャンネルに対しては乱数生成範囲を設定し直すとともに、乱数生成範囲が設定されていないチャンネルに対しては乱数生成範囲を設定し直さない構成の場合、初期化されるチャンネルと初期化されないチャンネルが存在することになる。この場合、基本回路302の外部からチャンネルが初期化されたか否かがわからないため、不正を防止する効果がある。   In addition, as in this embodiment, the random number generation range is reset for a channel for which the random number generation range is set, and the random number generation range is set for a channel for which the random number generation range is not set. In the case of a configuration that is not corrected, there are channels that are initialized and channels that are not initialized. In this case, since it is not known whether the channel is initialized from the outside of the basic circuit 302, there is an effect of preventing fraud.

さらに、本実施形態の遊技台では、図161のステップS3053bにおいて、乱数レジスタ3188をラッチすることを許容する許容状態にしている。このようにすることで、乱数レジスタ3188にラッチされている乱数に異常があった場合に、この乱数が使用される頻度を下げることができる。この際乱数ラッチフラグレジスタ3189の内容は、乱数レジスタ3188が乱数をラッチすることが可能な状態であることを示す情報に書き換えられる。なお、本実施形態では、ユーザプログラムによって、乱数レジスタ3188を許容状態にすることと、乱数生成範囲の設定を同時に実行している(図160参照)が、ハードウェアを用いて許容状態にするようにしてもよい。なお、本実施形態の遊技台では乱数レジスタ3188が許容状態になっても新たに乱数をラッチするまでは乱数は残った状態になるが、可能であれば乱数レジスタ3188の値を所定の値に設定(例えば0に設定)するようにしてもよい。この場合には、異常の可能性がある乱数を使用させないようにすることができる。   Furthermore, in the gaming machine of this embodiment, the random number register 3188 is allowed to be latched in step S3053b in FIG. 161. In this way, when there is an abnormality in the random number latched in the random number register 3188, the frequency with which this random number is used can be lowered. At this time, the content of the random number latch flag register 3189 is rewritten with information indicating that the random number register 3188 is in a state in which the random number can be latched. In this embodiment, the random number register 3188 and the setting of the random number generation range are simultaneously executed by the user program (see FIG. 160). It may be. In the gaming machine of this embodiment, even if the random number register 3188 enters the permissible state, the random number remains until a new random number is latched, but if possible, the value of the random number register 3188 is set to a predetermined value. You may make it set (for example, set to 0). In this case, it is possible not to use random numbers that may be abnormal.

上記説明した再設定は、WDT3141によるユーザリセットが実行された場合には、そのユーザリセットが実行されてから、駆動電圧の判定(図159のステップS3003)を経て実行される(図160のステップS3053)。この判定処理に要する時間は電圧の供給具合に依存するため、一定ではない。このため再設定を反映した乱数が出力され始めるタイミングにランダム性を持たせることができ、不正防止に効果がある。なお上述した、CPU304からの更新命令が来た時点で乱数の最大値を更新する構成の場合にも、同様の効果がある。   When the user reset by the WDT 3141 is executed, the above-described resetting is executed through the drive voltage determination (step S3003 in FIG. 159) after the user reset is executed (step S3053 in FIG. 160). ). Since the time required for this determination process depends on the voltage supply, it is not constant. For this reason, it is possible to give randomness to the timing at which random numbers reflecting the resetting start to be output, which is effective in preventing fraud. Note that the same effect can be obtained in the above-described configuration in which the maximum random number is updated when an update command is received from the CPU 304.

なお、上記の説明では、電圧の変化によって生じる問題およびその対処法についての一例について説明したが、他にも例えば乱数生成回路318のスタート値選択回路3183b内の値が書き換わってしまう可能性もある。この場合、本来生成されるはずのない値が、乱数更新回路3183から出力されてしまう虞がある。このような問題に対しても、上記の乱数生成範囲の例と同様に、スタート値選択回路3183b内の値を復帰処理の要因が発生した直前の状態に設定し直す処理を実行させることにより、上記のような問題が生じないようにすることができる。また、乱数生成範囲に応じて、別途スタート値選択回路3183b内の値を設定し直すようにしてもよい。すなわち、乱数生成回路318で設定可能な値を必要に応じて適切に設定し直す処理を実行させることにより、電圧の変化により異常な動作を起こさないようにすることができる。   In the above description, an example of a problem caused by a change in voltage and a countermeasure for the problem has been described. However, for example, a value in the start value selection circuit 3183b of the random number generation circuit 318 may be rewritten. is there. In this case, a value that should not be generated may be output from the random number update circuit 3183. Also for such a problem, as in the example of the random number generation range described above, by executing a process of resetting the value in the start value selection circuit 3183b to the state immediately before the cause of the return process occurs, It is possible to prevent the above problems from occurring. In addition, the value in the start value selection circuit 3183b may be reset separately according to the random number generation range. That is, it is possible to prevent an abnormal operation from occurring due to a voltage change by executing a process of appropriately resetting a value that can be set by the random number generation circuit 318 as necessary.

また、電圧の変化以外にも、例えば、指定エリア外走行によって予期せぬ動作が生じた場合にも、上記のような問題が生じる虞がある。特に、指定エリア外走行の場合は、プログラムミス等によって同じ状況が再現される可能性が高く、電圧が変化した場合よりも不正をしやすくなる虞がある。従って、本実施形態では、指定エリア外走行が生じた場合でも、図161のステップS3053aおよびステップS3053bによる再設定を行うようにしている。   In addition to the change in voltage, for example, when an unexpected operation occurs due to traveling outside the specified area, the above-described problem may occur. In particular, when traveling outside the designated area, there is a high possibility that the same situation will be reproduced due to a program mistake or the like, and there is a risk that fraud will be easier than when the voltage changes. Therefore, in the present embodiment, even when traveling outside the designated area occurs, resetting is performed by step S3053a and step S3053b in FIG. 161.

ここで、上記説明を踏まえて、図159の主制御部メイン処理におけるWDT3141の起動開始のタイミング(ステップS3011、ステップS3015)について説明を補足する。通常WDTでは、プログラムの実行とは独立してカウントアップが行われている。この構成により、プログラムの実行に何らかの問題があっても、これに影響されずにリセット動作(ユーザリセット)を実行することができる。このため、WDTは初期設定時に起動(再起動)される必要がある。しかし、この起動タイミングによっては、問題が生じることがある。この問題について、図159におけるステップS3001の初期設定1の直後にWDTを起動する場合を例に挙げて説明する。   Here, based on the above description, a supplementary description will be given of the start timing (steps S3011 and S3015) of WDT 3141 in the main process of the main control unit in FIG. In normal WDT, counting up is performed independently of program execution. With this configuration, even if there is some problem in the execution of the program, the reset operation (user reset) can be executed without being affected by this. For this reason, WDT needs to be activated (reactivated) at the time of initial setting. However, there may be a problem depending on the start timing. This problem will be described with reference to an example in which WDT is started immediately after initial setting 1 in step S3001 in FIG.

ユーザリセットによってRAM308に復帰用のデータが記憶されている状態で、主制御部メイン処理が開始されたとする。まず、ステップS3001によって初期設定1が実行され、次いでWDTが起動する。次に、駆動電圧が十分確保されるまでステップS3003による待機処理が実行される。   Assume that the main process of the main control unit is started in a state where data for restoration is stored in the RAM 308 by the user reset. First, initial setting 1 is executed in step S3001, and then WDT is activated. Next, standby processing in step S3003 is executed until a sufficient drive voltage is secured.

例えば供給電圧の不安定に起因して上記のユーザリセットが実行された場合等に、この待機処理の実行時間が長くなる場合がある。ここで待機処理に時間がかかると、後のステップS3007やステップS3009の実行中にWDTがタイムアウトして、再度ユーザリセットが実行されてしまう場合がある。この場合、再度主制御部メイン処理が最初から実行されるため、RAM308に記憶されている復帰用のデータがレジスタに戻されるまでの処理時間が長くなってしまう。   For example, when the above-described user reset is executed due to instability of the supply voltage, the execution time of this standby process may become long. Here, if the standby process takes a long time, the WDT may time out during the subsequent execution of step S3007 or step S3009, and the user reset may be executed again. In this case, since the main control unit main process is executed again from the beginning, the processing time until the return data stored in the RAM 308 is returned to the register becomes long.

さらに、例えばステップS3009において、RAM308のデータをレジスタに戻すとともに、RAM308のデータを消去する処理が実行されている場合には、RAM308のデータの一部が消去されている状態でユーザリセットが実行される可能性もある。この場合には、再度主制御部メイン処理が最初から実行されても、RAM308の復帰用のデータは不完全なものであり、ステップS3007で復帰可能と判定されないことになる。仮にステップS3007で復帰可能と判定されてもステップS3009のデータ書き戻し処理で完全にユーザリセット前の状態に復帰させることができない。   Further, for example, in step S3009, when the data in the RAM 308 is returned to the register and the data in the RAM 308 is erased, the user reset is executed with a part of the data in the RAM 308 being erased. There is also a possibility. In this case, even if the main control unit main process is executed again from the beginning, the return data in the RAM 308 is incomplete, and it is not determined in step S3007 that the data can be returned. Even if it is determined in step S3007 that recovery is possible, the data write-back processing in step S3009 cannot completely return to the state before the user reset.

このような問題を回避するため、本実施形態では、WDT3141によるタイムアウトではシステムリセットを実行するようにしているが、本実施形態ではさらに、WDT3141によるタイムアウトでユーザリセットを実行してもよいように、駆動電圧の判定後から主制御部タイマ割込み処理が許可されるまでの間にWDT3141を起動するように構成している(ステップS3011、ステップS3015)。なお、上記構成は一例であり、ユーザリセット後に主制御部メイン処理が開始されてから、主制御部タイマ割込み処理が許可されるまでの間にWDT3141がタイムアウトしないように、WDT3141を起動させるようにすることが好ましい。また、ユーザリセットが行われてから、主制御部によって遊技の進行が開始される(本実施形態では、主制御部メイン処理のステップS3017〜ステップS3019が開始され、かつ、主制御部タイマ割込み処理が開始される)までの間に、WDT3141がタイムアウトしないように、WDT3141を起動させることが好ましい。特に、ユーザリセット後に遊技を復帰させるための処理(遊技の進行を開始可能にするための処理)に、液晶画像表示装置(装飾図柄表示装置)の初期設定処理を実行させるための待機処理が含まれる場合には、上記の問題がより生じやすくなるため、上記説明したタイミングでのWDT3141の起動がより効果的である。さらに、主制御部タイマ割込み処理の最初の処理において、WDT3141を起動させるようにしても、上記の問題を回避することができる。なお、上記説明ではユーザリセットが実行された場合を例に説明しているが、システムリセットが実行された場合であっても同様である。   In order to avoid such a problem, in this embodiment, a system reset is executed by a timeout by WDT 3141. However, in this embodiment, a user reset may be further executed by a timeout by WDT 3141. The WDT 3141 is configured to be activated after the determination of the drive voltage and before the main control unit timer interrupt process is permitted (steps S3011 and S3015). The above configuration is an example, and WDT 3141 is activated so that WDT 3141 does not time out after main control unit main processing is started after user reset and before main control unit timer interrupt processing is permitted. It is preferable to do. In addition, after the user reset is performed, the main control unit starts the progress of the game (in this embodiment, steps S3017 to S3019 of the main control unit main process are started, and the main control unit timer interrupt process is started) WDT 3141 is preferably activated so that WDT 3141 does not time out before In particular, the process for returning the game after the user reset (the process for enabling the progress of the game) includes a standby process for executing the initial setting process of the liquid crystal image display device (decorated symbol display device). In such a case, the above problem is more likely to occur, so that the WDT 3141 is activated more effectively at the timing described above. Furthermore, even if the WDT 3141 is activated in the first process of the main control unit timer interrupt process, the above problem can be avoided. In the above description, the case where the user reset is executed is described as an example, but the same applies to the case where the system reset is executed.

ここで、図170を用いて、図150で説明した乱数更新回路3183の変形例について説明する。同図は、図150で説明した乱数更新回路3183の変形例を示す図である。この図170(a)に示す乱数更新回路3183nは、図150で説明した乱数更新回路3183に、乱数列変更回路3183dを加えたものである。   Here, a modified example of the random number update circuit 3183 described with reference to FIG. 150 will be described with reference to FIG. This figure shows a modification of the random number update circuit 3183 described with reference to FIG. A random number update circuit 3183n shown in FIG. 170 (a) is obtained by adding a random number sequence change circuit 3183d to the random number update circuit 3183 described in FIG.

乱数列変更回路3183dは、予め内部に複数の乱数テーブルが設けられている。図170(b)には、65536個の乱数の並びを予め定めた複数の乱数列が示されている。これらの複数の乱数列を使用する際には、同じ乱数列を継続して使用するか、一つの乱数列を一周した時点で別の乱数列に変更するかを設定することができる。さらに、別の乱数列に変更する場合には、指示がなくても自動的に変更を行うか、あるいはその都度変更を指示するか否かを設定することができる。なお、カウンタ回路3183aから一巡信号を受けた時点で、一つの乱数列を一周したと判定される。   The random number sequence change circuit 3183d is provided with a plurality of random number tables in advance. FIG. 170 (b) shows a plurality of random number sequences in which an array of 65536 random numbers is predetermined. When using these plurality of random number sequences, it is possible to set whether to use the same random number sequence continuously or to change to another random number sequence when one random number sequence is made a round. Furthermore, when changing to another random number sequence, it is possible to set whether to change automatically even if there is no instruction, or whether to instruct a change each time. Note that when a round signal is received from the counter circuit 3183a, it is determined that one round of the random number sequence has been made.

乱数列変更回路3183d内で使用する乱数列が決定されると、カウンタ回路3183aから出力されるカウント値に従って、この乱数列から値が取り出される。この取り出された値が乱数として出力される。例えば図170(b)において、乱数列Bを使用することが決定した場合に、カウント値「5」が入力されると、乱数として「9806」が出力さ れる(図170(b)の太枠で示す部分参照)。   When the random number sequence to be used in the random number sequence changing circuit 3183d is determined, a value is extracted from this random number sequence according to the count value output from the counter circuit 3183a. This extracted value is output as a random number. For example, in FIG. 170 (b), when it is decided to use the random number sequence B, if a count value “5” is input, “9806” is output as a random number (the thick frame in FIG. 170 (b)). (See the part indicated by).

ここで、最大値設定レジスタ3183cに最大値が設定された場合における処理の例について説明する。図152では、最大値設定レジスタ3183cに設定された最大値に従ってカウント回路3183aから出力される値の範囲が変更される例について説明した。なお、この図152では、このカウント回路3183aから出力される値をそのまま乱数として用いていた。ここでは、カウント回路3183aから出力される値を乱数ではなくカウント値として用い、乱数列変更回路3183dに入力する。   Here, an example of processing when the maximum value is set in the maximum value setting register 3183c will be described. In FIG. 152, the example in which the range of values output from the count circuit 3183a is changed according to the maximum value set in the maximum value setting register 3183c has been described. In FIG. 152, the value output from the count circuit 3183a is used as a random number as it is. Here, the value output from the count circuit 3183a is used as a count value instead of a random number, and is input to the random number sequence change circuit 3183d.

例えば、最大値が9999に設定された場合、0〜9999のカウント値がカウント回路3183aから出力されることになる。ここで、乱数列変更回路3183dには、最大値設定レジスタ3183cから最大値データを取得させ、乱数列の値のうち最大値を超える値を削除して空いた部分を詰める処理を実行させる。この処理により0〜9999の値をランダムに並べた乱数列が用意されることになる。この乱数列を用いて上記カウント値に対応する値を乱数として出力させると、乱数生成範囲を0〜9999とする乱数を出力させることができる。なお、上記方法は一例であり、例えば、カウント値に対応する値を乱数列から参照したときに最大値を超えている場合には以降の値を順次参照し、参照された値が最大値を超えない値であればその値を出力する、というように他の方法を用いてもよい。   For example, when the maximum value is set to 9999, a count value of 0 to 9999 is output from the count circuit 3183a. Here, the random number sequence change circuit 3183d acquires the maximum value data from the maximum value setting register 3183c, and executes a process of deleting a value exceeding the maximum value from the values of the random number sequence and filling the empty portion. By this process, a random number sequence in which values 0 to 9999 are randomly arranged is prepared. When a value corresponding to the count value is output as a random number using this random number sequence, a random number having a random number generation range of 0 to 9999 can be output. Note that the above method is an example. For example, when a value corresponding to a count value is referred to from a random number sequence and the maximum value is exceeded, subsequent values are sequentially referred to, and the referenced value indicates the maximum value. Other methods may be used, such as outputting a value that does not exceed the value.

ここで、上記の乱数更新回路3183nを用いた場合における、乱数監視回路3184における異常の検出例について説明する。この場合には、1回の乱数の更新前後においてカウンタ回路3183aから出力されるカウント値の値を比較し、同じカウント値が出力されていないか否かをチェックする。仮に同じカウント値が出力された場合には、異常を示す情報が出力される。なお、チェックのタイミングについては、この乱数更新周期よりも長い所定の周期毎であってもよい。なお、乱数監視回路3184に乱数列変更回路3183dから出力される乱数を監視させてもよいが、上記したようにカウンタ回路3138aから出力されるカウント値を監視するようにすることで監視精度を高めるとともに、監視負担を低減することができる。   Here, an example of detecting an abnormality in the random number monitoring circuit 3184 when the random number update circuit 3183n is used will be described. In this case, the count value output from the counter circuit 3183a is compared before and after one random number update, and it is checked whether or not the same count value is output. If the same count value is output, information indicating abnormality is output. The check timing may be every predetermined cycle longer than the random number update cycle. The random number monitoring circuit 3184 may monitor the random number output from the random number sequence changing circuit 3183d. However, as described above, the monitoring accuracy is improved by monitoring the count value output from the counter circuit 3138a. At the same time, the monitoring burden can be reduced.

また、図148に示す乱数生成回路318において説明したことと同様に、乱数生成回路318の外部に乱数監視回路3183nを設けてもよく、また、乱数更新回路3183nの内部に乱数監視回路3184を設けてもよい。   As described in the random number generation circuit 318 shown in FIG. 148, a random number monitoring circuit 3183n may be provided outside the random number generation circuit 318, and a random number monitoring circuit 3184 is provided inside the random number update circuit 3183n. May be.

次に、図171を用いて、図75に示す払出制御部600が実行する払出制御部メイン処理について説明する。なお、同図は払出制御部メイン処理の流れを示すフローチャートである。   Next, a payout control unit main process executed by the payout control unit 600 shown in FIG. 75 will be described with reference to FIG. This figure is a flowchart showing the flow of the main process of the payout control unit.

図75に示す払出制御部600は、CPU、RAM、ROM、I/Oポート、および電圧監視回路を備えている。これらCPU、RAM、ROM、I/Oポートは一のマイクロコンピュータ(払出制御用マイクロコンピュータ)で構成されている。また、この払出制御用マイクロコンピュータは、本明細書における主制御用マイクロコンピュータと一部の機能が同じでもよく、例えば一部の機能(例えば乱数回路)を備えていなくてもよい。払出制御部600が備える電圧監視回路も、主制御部300が備える電圧監視回路と同じく、電源管理部650から払出制御部600に供給している電源の電圧値が所定の値(本実施形態では9V)未満である場合に電圧が低下したことを示す低電圧信号を払出制御部600のCPUに出力する。なお、主制御部300の電圧監視回路338から低電圧信号が出力されていても、この払出制御部600の電圧監視回路からは低電圧信号は出力されていないことはある。   75 includes a CPU, a RAM, a ROM, an I / O port, and a voltage monitoring circuit. These CPU, RAM, ROM, and I / O port are constituted by a single microcomputer (dispensing control microcomputer). In addition, the payout control microcomputer may have the same function as the main control microcomputer in this specification, and may not include a part of the function (for example, a random number circuit). Similarly to the voltage monitoring circuit provided in the main control unit 300, the voltage monitoring circuit provided in the payout control unit 600 has a predetermined voltage value (in this embodiment, the voltage value of the power supplied from the power management unit 650 to the payout control unit 600). If it is less than 9V), a low voltage signal indicating that the voltage has dropped is output to the CPU of the payout control unit 600. Even if a low voltage signal is output from the voltage monitoring circuit 338 of the main control unit 300, the low voltage signal may not be output from the voltage monitoring circuit of the payout control unit 600.

払出制御部600には、主制御部300のCPU304から電源投入情報を含めたコマンドが送信されてくる。このコマンドを受信したことに基づいて、払出制御部600のCPUは、払出制御部メイン処理を開始する。なお、主制御部300のCPU304から電源投入情報を含めたコマンドを受信する前に払出制御部メイン処理を開始してもよく、該コマンドを受信するまで所定の処理(例えば、後述するステップS3603〜ステップS3610)を実行せずにスキップするようにしてもよい。   A command including power-on information is transmitted from the CPU 304 of the main control unit 300 to the payout control unit 600. Based on the reception of this command, the CPU of the payout control unit 600 starts the payout control unit main process. The payout control unit main process may be started before receiving a command including power-on information from the CPU 304 of the main control unit 300, and a predetermined process (for example, step S3603 to be described later) is received until the command is received. You may make it skip, without performing step S3610).

まず、ステップS3501では、初期設定1を行う。この初期設定1では、払出制御部600のCPUのスタックポインタ(SP)へのスタック初期値の設定等を行う。ステップS3502では、払出制御部600の電圧監視回路から低電圧信号が出力されているか否か、すなわち低電圧信号がオンであるか否かを判定する。低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS3502の処理を繰り返し実行し、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS3503に進む。   First, in step S3501, initial setting 1 is performed. In the initial setting 1, the stack initial value is set in the stack pointer (SP) of the CPU of the payout control unit 600. In step S3502, it is determined whether or not a low voltage signal is output from the voltage monitoring circuit of the dispensing control unit 600, that is, whether or not the low voltage signal is on. If the low-voltage signal is on (when power-off is detected), the process of step S3502 is repeated. If the low-voltage signal is off (when power-off is not detected), the process proceeds to step S3503. move on.

ステップS3503では、初期設定2を行う。この初期設定2では、後述する払出制御部タイマ割り込み処理を定期毎に実行するための周期を決める数値をカウンタ・タイマに設定する処理、払出制御部600のRAMへの書き込みを許可する設定、I/Oポートの初期設定等を行う。   In step S3503, initial setting 2 is performed. In this initial setting 2, a process for setting a numerical value for determining a cycle for executing a payout control unit timer interrupt process, which will be described later, in the counter / timer, a setting for permitting the payout control unit 600 to write to the RAM, I Performs initial setting of / O port.

ステップS3504では、電源の遮断前(電断前)の状態に復帰するか否かの判定を行い、電断前の状態に復帰しない場合(パチンコ機100を初期状態にする場合)にはステップS3506に進み、電断前の状態に復帰する場合にはステップS3505に進む。具体的には、このステップS3504でも、主制御部300メイン処理のステップS3009と同様な処理が行われ、RAMクリアが必要な場合には、パチンコ機100を初期状態にすべくステップS3506に進む。一方、RAMクリアが必要でない場合には、払出制御部600のRAMから電源ステータスの情報を読み出し、電源ステータスの情報が、サスペンドを示す情報でない場合にはパチンコ機100を初期状態にすべくステップS3506に進み、サスペンドを示す情報である場合には払出制御部600のRAMについてチェックサムを実行し、チェックサムの結果が正常である場合には電断前の状態に復帰すべくステップS3505に進み、チェックサムの結果が異常である場合には、パチンコ機100を初期状態にすべくステップS3506に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS3506に進む。   In step S3504, it is determined whether or not to return to the state before power interruption (before power interruption). If the state before power interruption does not return (when the pachinko machine 100 is set to the initial state), step S3506 is determined. If the process returns to the state before the power interruption, the process proceeds to step S3505. Specifically, also in this step S3504, the same process as in step S3009 of the main process of the main control unit 300 is performed. If the RAM needs to be cleared, the process proceeds to step S3506 in order to set the pachinko machine 100 to the initial state. On the other hand, if the RAM clear is not necessary, the power status information is read from the RAM of the payout control unit 600. If the power status information is not the information indicating the suspend, the pachinko machine 100 is set to the initial state in step S3506. If the information indicates suspend, the checksum is executed on the RAM of the payout control unit 600. If the checksum result is normal, the flow advances to step S3505 to return to the state before power interruption. If the result of the checksum is abnormal, the process advances to step S3506 to set the pachinko machine 100 to the initial state. Similarly, when the power status information indicates information other than “suspend”, the process advances to step S3506.

ステップS3505では、復電時処理を行う。この復電時処理では、払出制御部600のRAMの記憶領域のうち、復電時にクリアすべき記憶領域(コマンドを格納するためのコマンドバッファ、エラー状態を記憶するためのエラーステータスなどを除く記憶領域)の初期化などを行う。   In step S3505, power recovery processing is performed. In this power recovery process, of the RAM storage area of the payout control unit 600, a storage area to be cleared upon power recovery (a command buffer for storing commands, a memory other than an error status for storing error status, etc.) Area) is initialized.

ステップS3506では、初期化処理を行う。この初期化処理では、割り込み禁止の設定、スタックポインタへのスタック初期値の設定、払出制御部600のRAMの所定の領域(例えば、全ての記憶領域)の初期化などを行う。   In step S3506, initialization processing is performed. In this initialization process, interrupt prohibition setting, stack initial value setting to the stack pointer, predetermined areas (for example, all storage areas) of the RAM of the payout control unit 600, and the like are performed.

ステップS3507では、初期設定3を行う。この初期設定3では、払出制御部600のRAMに設けたエラーステータス記憶領域に記憶したエラーステータスのうち、不正払出エラーと払出超過エラー以外の情報をクリアしたり、割り込み許可の設定などを行う。   In step S3507, initial setting 3 is performed. In the initial setting 3, information other than the illegal payout error and the payout excess error among the error statuses stored in the error status storage area provided in the RAM of the payout control unit 600 is cleared, interrupt permission is set, and the like.

ステップS3508では、主制御部300から入力したデータの中に未解析データがあるか無いかを判定し、未解析データがある場合にはステップS3509でコマンド解析処理を行い、未解析データがない場合にはステップS3510に進む。   In step S3508, it is determined whether or not there is unanalyzed data in the data input from the main control unit 300. If there is unanalyzed data, command analysis processing is performed in step S3509, and there is no unanalyzed data. Then, the process proceeds to step S3510.

ステップS3510では、ステップS3502と同じく、低電圧信号がオフであるか否かを監視し、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS3508に戻り、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS3511に進む。   In step S3510, as in step S3502, it is monitored whether or not the low voltage signal is off. If the low voltage signal is off (when power-off is not detected), the process returns to step S3508. If the signal is on (when power-off is detected), the process proceeds to step S3511.

ステップS3511では、電断時処理を行う。この電断時処理では、払出制御部600のRAMに設けたスタックポインタ退避領域に現在のスタックポインタの値を記憶し、上述の電源ステータス記憶領域にサスペンドを示す情報を設定する。また、払出制御部600のRAMの所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算し、チェックサム算出用数値記憶領域に記憶している値からその加算した結果を減算した値をチェックサム(電断時チェックサム)として算出し、算出した電断時チェックサムを上述のチェックサム算出用数値記憶領域に記憶し、払出制御部600のRAMへの書き込みを禁止する設定などを行う。なお、ステップS3511の後にステップS3502と同じく低電圧信号がオフであるか否かを監視する処理を行い、低電圧信号がオフの場合(電源の遮断を検知していない場合)には払出し制御部メイン処理の先頭(ステップS3501)に戻るようにしてもよい。
<払出制御部タイマ割り込み処理>
In step S3511, a power interruption process is performed. In this power interruption process, the current stack pointer value is stored in the stack pointer save area provided in the RAM of the payout control unit 600, and information indicating suspend is set in the power status storage area. Also, all the 1-byte data stored in a predetermined area (for example, all areas) of the RAM of the payout control unit 600 is added to a 1-byte register whose initial value is 0, and a numerical storage area for checksum calculation The value obtained by subtracting the result of addition from the value stored in is calculated as a checksum (checksum at power interruption), and the calculated checksum at power interruption is stored in the above-described numerical storage area for checksum calculation, A setting for prohibiting writing to the RAM of the payout control unit 600 is performed. Note that after step S3511, the process for monitoring whether or not the low voltage signal is off is performed as in step S3502, and when the low voltage signal is off (when the power supply is not shut off), the payout control unit You may make it return to the head (step S3501) of the main process.
<Discharge control unit timer interrupt processing>

次に、図172を用いて、払出制御部600のCPUが実行する払出制御部タイマ割り込み処理について説明する。なお、同図は払出制御部タイマ割り込み処理の流れを示すフローチャートである。   Next, with reference to FIG. 172, payout control unit timer interrupt processing executed by the CPU of the payout control unit 600 will be described. This figure is a flowchart showing the flow of the payout control unit timer interrupt process.

払出制御部600は、所定の周期(本実施形態では1msに1回)でタイマ割り込みを発生するカウンタ回路も備えており、このタイマ割り込みを契機として払出制御部タイマ割り込み処理を所定の周期で開始する。   The payout control unit 600 also includes a counter circuit that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 1 ms), and starts the payout control unit timer interrupt processing at a predetermined cycle triggered by this timer interrupt. To do.

ステップS3601では、タイマ割り込みスタート処理を行う。このタイマ割り込みスタート処理では、払出制御部600のCPUの各レジスタの値をスタック領域に一時的に退避する処理などを行う。払出制御部600には、ウォッチドッグタイマ(WDT)も用意されている。ステップS3602ではこのWDTのリスタートを行う。   In step S3601, timer interrupt start processing is performed. In the timer interrupt start process, a process of temporarily saving the value of each register of the CPU of the payout control unit 600 to the stack area is performed. The payout control unit 600 is also provided with a watch dog timer (WDT). In step S3602, the WDT is restarted.

ステップS3603では、入力ポート状態更新処理を行う。この入力ポート状態更新処理では、払出制御部600のI/Oポートの値を取得して、図75に示す払出センサ604等の状態などを検出する。ステップS3604では、タイマ更新処理を行う。このタイマ更新処理では、払出報知用LEDの点灯/消灯時間、図75に示す払出モータ602の駆動/非駆動時間などを計時するためのタイマなどを含む各種タイマを更新する。   In step S3603, input port state update processing is performed. In this input port state update process, the value of the I / O port of the payout control unit 600 is acquired to detect the state of the payout sensor 604 and the like shown in FIG. In step S3604, timer update processing is performed. In this timer update process, various timers are updated, including timers for timing the turn-on / off time of the payout notification LED, the drive / non-drive time of the payout motor 602 shown in FIG.

ステップS3605では、エラー監視処理を行う。払出制御部600のI/Oポートには、主制御部300から、下皿満タンエラー信号やガラス枠開放エラー信号等の各種のエラー信号が送られてくる。払出制御部600のRAMには、エラーステータス記憶領域や、遊技媒体貸出情報記憶領域や、払出完了数チェック記憶領域や、モータ駆動量記憶領域が設けられている。エラーステータス記憶領域には、各エラー信号に対応した情報が記憶される。このエラー監視処理では、各種のエラー信号がオンか否かを判定し、オンの場合には、エラーステータス記憶領域に対応したエラーを示す情報を記憶し、オフの場合には、エラーステータス記憶領域に対応したエラーの解除を示す情報を記憶する。また、主制御部300と払出制御部600との間の通信が可能かどうかを、主制御部からのコマンドが所定時間(例えば1000ms)継続して受信できないか否かで判定し、エラーステータス記憶領域に、通信可能な場合には通信可能であることを示す情報を、反対に通信不可能な場合には通信不可能であること(主制御通信エラー)を示す情報を記憶する。加えて、図75に示すカードユニット(CRユニット)608と払出制御部600との間の通信が可能かどうかについても、カードユニット608からの信号が所定時間(例えば1000ms)継続して受信できないか否かで判定し、エラーステータス記憶領域に、通信可能な場合には通信可能であることを示す情報を、反対に通信不可能な場合には通信不可能であること(CRユニット未接続エラー)を示す情報を記憶する。また、払出制御部600のI/Oポートには、エラー解除信号も送られてくる。このエラー監視処理では、エラー解除信号がオンであるか否かも判定し、エラー解除信号がオンである場合には、エラーステータス記憶領域に記憶している情報を初期化して、エラーを解除する。   In step S3605, an error monitoring process is performed. Various error signals such as a lower pan full error signal and a glass frame opening error signal are sent from the main control unit 300 to the I / O port of the payout control unit 600. The RAM of the payout control unit 600 is provided with an error status storage area, a game medium lending information storage area, a payout completion number check storage area, and a motor drive amount storage area. Information corresponding to each error signal is stored in the error status storage area. In this error monitoring process, it is determined whether or not various error signals are ON. If ON, information indicating an error corresponding to the error status storage area is stored. If OFF, the error status storage area is stored. The information indicating the cancellation of the error corresponding to is stored. Further, whether or not communication between the main control unit 300 and the payout control unit 600 is possible is determined based on whether or not a command from the main control unit can be received continuously for a predetermined time (for example, 1000 ms), and an error status is stored. If the communication is possible, information indicating that communication is possible is stored in the area, and if the communication is impossible, information indicating that communication is not possible (main control communication error) is stored. In addition, as to whether or not communication between the card unit (CR unit) 608 and the payout control unit 600 shown in FIG. 75 is possible, can the signal from the card unit 608 be continuously received for a predetermined time (for example, 1000 ms)? If the communication is possible in the error status storage area, information indicating that communication is possible is conversely impossible if communication is impossible (CR unit unconnected error) Is stored. In addition, an error release signal is also sent to the I / O port of the payout control unit 600. In this error monitoring process, it is also determined whether or not the error cancellation signal is on. If the error cancellation signal is on, the information stored in the error status storage area is initialized to cancel the error.

ステップS3606では、CRユニット通信処理を行う。このCRユニット通信処理では、図75に示すインターフェース部606から遊技媒体貸出信号を受信して遊技媒体貸出信号センサ信号がオンであるか否かを判定し、遊技媒体貸出信号がオンの場合(インターフェース部606からの球貸要求を入力した場合)には、RAMに設けた遊技媒体貸出情報記憶領域に遊技媒体の貸出要求があったことを示す情報を記憶する。   In step S3606, CR unit communication processing is performed. In this CR unit communication process, a game medium lending signal is received from the interface unit 606 shown in FIG. 75 to determine whether or not the game medium lending signal sensor signal is on. When the game medium lending signal is on (interface) When a ball lending request is input from the unit 606), information indicating that there is a game medium lending request is stored in the game medium lending information storage area provided in the RAM.

ステップS3607では、払出動作管理処理を行う。上述のエラーステータス記憶領域には、不正払出エラーの情報や払出超過エラーの情報も記憶されている。この払出動作管理処理では、エラーステータス記憶領域から不正払出エラーの情報、および払出超過エラーの情報を読み出し、いずれのエラーも発生していない場合には、図75に示す払出センサ604からの信号(以下、払出センサ信号と称する場合がある)に基づいて払出個数の監視を行う。すなわち、所定のエラーが発生している場合には払出モータ602の駆動停止、すなわち払出装置からの賞媒体(例えば遊技球)の払出を停止するようにしている。具体的には、払出センサ604の信号を検出して払出センサ信号がオンであるか否かを判定し、払出センサ信号がオンの場合(払出センサを球が通過した場合)には払出完了数チェックに1を加算して払出完了数チェック記憶領域に記憶する。また、賞球および貸出球の要求が無いときに払出センサ信号がオンになった場合には、上述のエラーステータス記憶領域に不正払出エラーを示す情報を記憶し、賞球数または貸出球数が各々の要求数を超え、その超過数が所定数以上になった場合には、上述のエラーステータス記憶領域に払出超過エラーを示す情報を記憶する。   In step S3607, a payout operation management process is performed. In the error status storage area described above, information on illegal payout errors and information on payout excess errors are also stored. In this payout operation management process, the information on the illegal payout error and the payout excess error information are read from the error status storage area, and if neither error has occurred, a signal from the payout sensor 604 shown in FIG. Hereinafter, the number of payouts is monitored based on the payout sensor signal. That is, when a predetermined error has occurred, the driving of the payout motor 602 is stopped, that is, the payout of a prize medium (for example, a game ball) from the payout device is stopped. Specifically, the signal of the payout sensor 604 is detected to determine whether or not the payout sensor signal is on. When the payout sensor signal is on (when the ball passes through the payout sensor), the number of payouts completed. 1 is added to the check and stored in the payout completion number check storage area. Further, when the payout sensor signal is turned on when there is no request for a winning ball or a lending ball, information indicating an illegal payout error is stored in the error status storage area, and the number of winning balls or the number of lending balls is When each request number is exceeded and the number exceeds the predetermined number, information indicating a payout excess error is stored in the error status storage area.

また、上述のエラーステータス記憶領域から、下皿満タンエラーを表す情報、不正払出エラーの情報、および払出超過エラーの情報を読み出し、いずれのエラーも発生していない場合に、払出開始監視処理、初期位置検索動作処理、通常払出動作処理、リトライ動作処理、逆回転動作処理のいずれかの処理を行う。   In addition, the information indicating the bottom full tank error, the information on the illegal payout error, and the information on the payout excess error are read from the error status storage area described above, and when any error has not occurred, the payout start monitoring process, the initial Any one of position search operation processing, normal payout operation processing, retry operation processing, and reverse rotation operation processing is performed.

上述のごとく、払出装置152は、払出モータ602によって回転可能に構成されたスプロケットを備えている。このスプロケットは、タンクレール154を通過して払出装置152内に流下した遊技球を一時的に滞留させると共に、払出モータ602を駆動して所定角度だけ回転することにより、一時的に滞留した遊技球を払出装置152の下方へ1個ずつ送り出す。払出開始監視処理では、貸出要求数、および賞球要求数が0であり、次賞球要求数が0以外の場合は、賞球要求数に次賞球要求数をセットし、次賞球要求数をクリアする。また、払出モータ602の位置が不確定の場合(動作モードが初期位置検索動作モードの場合)には、払出完了数チェックから1を減算して払出完了数チェック記憶領域に記憶し、払出モータ602の位置が確定している場合(動作モードが通常払出動作モードの場合)には、払出完了数チェックとして払出完了数チェック記憶領域に0を設定する。また、賞球要求数を、払出モータ602を駆動する量(モータ駆動量)に変換し、これをRAMに設けたモータ駆動量記憶領域に記憶すると共に、RAMに設けたモータ制御データテーブルを参照してモータ駆動量に対応するモータ駆動制御データを選択し、正転を示すモータ駆動制御データをI/Oポートを介して、払出モータ602を制御するモータ制御回路に出力する。これにより、モータ制御回路は払出モータ602のモータの励磁位置を所定回変化させてスプロケットを正方向に回転駆動する。   As described above, the payout device 152 includes a sprocket that is configured to be rotatable by the payout motor 602. This sprocket temporarily retains the game ball that has passed through the tank rail 154 and flowed down into the payout device 152, and also drives the payout motor 602 to rotate by a predetermined angle, thereby temporarily retaining the game ball. Are delivered one by one downward to the dispensing device 152. In the payout start monitoring process, when the number of lending requests and the number of requested prize balls are 0, and the number of requested next prize balls is other than 0, the number of requested next prize balls is set as the number of requested prize balls, and the next prize ball request Clear the number. When the position of the payout motor 602 is indefinite (when the operation mode is the initial position search operation mode), 1 is subtracted from the payout completion number check and stored in the payout completion number check storage area. When the position is fixed (when the operation mode is the normal payout operation mode), 0 is set in the payout completion number check storage area as a payout completion number check. Also, the requested number of winning balls is converted into an amount for driving the payout motor 602 (motor drive amount), and this is stored in the motor drive amount storage area provided in the RAM, and the motor control data table provided in the RAM is referred to. Then, motor drive control data corresponding to the motor drive amount is selected, and motor drive control data indicating normal rotation is output to the motor control circuit that controls the payout motor 602 via the I / O port. As a result, the motor control circuit changes the excitation position of the motor of the payout motor 602 a predetermined number of times to rotate the sprocket in the forward direction.

初期位置検索動作処理および通常払出動作処理では、払出モータ602の駆動終了後に、払出完了数チェック記憶領域から払出完了チェックを読み出し、払出完了チェックが0 の場合には、払出開始監視処理を実行する準備を行い、払出完了チェックが0以外の場合には、エラーステータス記憶領域に払出装置エラーを示す情報を設定すると共に、リトライ動作処理を実行する準備を行う。   In the initial position search operation process and the normal payout operation process, after the driving of the payout motor 602 is completed, the payout completion check is read from the payout completion number check storage area. When preparation is made and the payout completion check is other than 0, information indicating the payout device error is set in the error status storage area and preparation for executing the retry operation process is performed.

リトライ動作処理では、所定の時間が経過するのを待ち(リトライ動作開始待ちタイマが0になるのを待ち)、リトライ動作開始待ちタイマが0になった場合には、逆回転動作処理を実行する準備を行う。逆回転操作処理では、上述のモータ制御データテーブルを参照してモータ駆動量に対応するモータ駆動制御データを選択し、逆転を示すモータ駆動制御データをI/Oポートを介してモータ制御回路に出力する。これにより、モータ制御回路は払出モータ602の励磁位置を所定回変化させてスプロケットを逆回転駆動する。また、逆回転操作処理では、払出モータ602の駆動終了後に払出開始監視処理を実行する準備を行う。   In the retry operation process, wait for a predetermined time to elapse (wait for the retry operation start wait timer to become 0), and when the retry operation start wait timer becomes 0, execute the reverse rotation operation process. Make preparations. In the reverse rotation operation process, motor drive control data corresponding to the motor drive amount is selected with reference to the motor control data table described above, and motor drive control data indicating reverse rotation is output to the motor control circuit via the I / O port. To do. As a result, the motor control circuit changes the excitation position of the payout motor 602 a predetermined number of times to drive the sprocket in a reverse rotation. Further, in the reverse rotation operation process, preparation for executing the payout start monitoring process is performed after the driving of the payout motor 602 is completed.

ステップS3608では、払出モータ駆動監視処理を行う。この払出モータ駆動監視処理では、駆動開始監視処理、加速駆動処理、定速駆動処理、ブレーキ駆動処理、駆動終了処理のいずれかの処理を行う。   In step S3608, a payout motor drive monitoring process is performed. In the payout motor drive monitoring process, any one of a drive start monitoring process, an acceleration drive process, a constant speed drive process, a brake drive process, and a drive end process is performed.

駆動開始監視処理では、上述のエラーステータス記憶領域から下皿満タンエラーの情報、不正払出エラーの情報、および払出超過エラーの情報を読み出し、いずれのエラーも発生していない場合には、上述のモータ制御データテーブルを参照してモータ駆動量に対応するモータ駆動制御データを選択し、正転を示すモータ駆動制御データをI/Oポートを介してモータ制御回路に出力する。これにより、モータ制御回路は払出モータ602の励磁位置を所定回変化させスプロケットを正方向に回転駆動する。   In the drive start monitoring process, the information on the lower pan full tank error, the information on the illegal payout error, and the information on the payout excess error are read from the error status storage area described above. Motor control data corresponding to the motor drive amount is selected with reference to the control data table, and motor drive control data indicating normal rotation is output to the motor control circuit via the I / O port. As a result, the motor control circuit changes the excitation position of the dispensing motor 602 a predetermined number of times to rotate the sprocket in the forward direction.

加速駆動処理および定速駆動処理では、スプロケットの初期位置検索動作中、または、逆回転動作中の場合を除き、払出モータ602の励磁位置を16回変化させるごとに払出完了数チェックから1を減算して払出完了数チェック記憶領域に記憶する。また、更新後の払出完了数チェックが−4未満になった場合には、ブレーキ駆動処理を実行する準備を行う。さらに、上述の遊技媒体貸出情報記憶領域から遊技媒体貸出情報を読み出して、遊技媒体の貸出要求があったことを示す情報の有無を判定し、遊技媒体の貸出要求があったことを示す情報がある場合(賞球の払出中にインターフェース部606からの球貸要求を入力した場合)にも、ブレーキ駆動処理を実行する準備を行う。ブレーキ駆動処理では、所定の時間が経過するのを待ち(モータ駆動管理タイマが0になるのを待ち)、モータ駆動管理タイマが0になった場合には、駆動終了処理を実行する準備を行い、駆動終了処理では、モータ駆動の後処理を行う。   In the acceleration drive process and constant speed drive process, 1 is subtracted from the payout completion number check every time the excitation position of the payout motor 602 is changed 16 times, except during the initial position search operation of the sprocket or the reverse rotation operation. And stored in the payout completion number check storage area. When the updated payout completion number check is less than −4, preparation for executing the brake drive process is made. Further, the game medium lending information is read from the above-mentioned game medium lending information storage area, the presence / absence of information indicating that there is a request for lending a game medium is determined, and information indicating that there is a request for lending a game medium is present. In some cases (when a ball lending request is input from the interface unit 606 while paying out a prize ball), preparations for executing the brake driving process are made. In the brake drive process, it waits for a predetermined time to elapse (waits for the motor drive management timer to become 0), and when the motor drive management timer becomes 0, prepares to execute the drive end process In the drive end process, a post-process for driving the motor is performed.

ステップS3609では、外部出力信号設定処理を行う。この外部出力信号設定処理では、払出制御部600のRAMに記憶している遊技情報(例えば払出センサ信号を入力するたびに出力する賞球信号)を、情報出力回路(図示せず)を介してパチンコ機100とは別体の情報入力回路350に出力する。   In step S3609, external output signal setting processing is performed. In this external output signal setting process, game information stored in the RAM of the payout control unit 600 (for example, a prize ball signal output every time a payout sensor signal is input) is sent via an information output circuit (not shown). The information is output to an information input circuit 350 that is separate from the pachinko machine 100.

ステップS3610では、ポート出力処理を行う。このポート出力処理では、払出制御部600のI/Oポートから、図75に示す発射制御部630に発射を許可する発射許可信号を出力する。ただし、上述の主制御通信エラーやCRユニット未接続エラーが生じている場合には、発射許可信号を出力しない状態に設定する。したがって、主制御部300が電断し、払出制御部600には電力が供給されている状態では、上述のステップS3605において主制御通信エラーが認められ、このポート出力処理で、発射許可信号を出力しない状態に設定される。   In step S3610, port output processing is performed. In this port output process, a launch permission signal for permitting launch is output from the I / O port of the payout controller 600 to the launch controller 630 shown in FIG. However, when the above-mentioned main control communication error or CR unit non-connection error has occurred, a state is set in which the firing permission signal is not output. Therefore, in a state where the main control unit 300 is cut off and power is supplied to the payout control unit 600, a main control communication error is recognized in step S3605 described above, and a firing permission signal is output in this port output processing. It is set to the state that does not.

ステップS3611では、タイマ割り込みエンド処理を行う。このタイマ割り込みエンド処理では、ステップS3601で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割り込み許可の設定などを行い、払出制御部タイマ割り込み処理は終了になる。
<第2内部情報レジスタ>
In step S3611, timer interrupt end processing is performed. In this timer interrupt end process, the value of each register temporarily saved in step S3601 is set in each original register, interrupt permission is set, etc., and the payout control unit timer interrupt process ends.
<Second internal information register>

続いて、図155に第1内部情報レジスタを示した割込み制御回路3100の第2内部情報レジスタについて説明する。図173は、割込み制御回路3100の内部情報レジスタ3101に用意された第2内部情報レジスタを説明するための図である。   Next, the second internal information register of the interrupt control circuit 3100 whose first internal information register is shown in FIG. 155 will be described. FIG. 173 is a diagram for describing the second internal information register prepared in the internal information register 3101 of the interrupt control circuit 3100.

図173に示すように、第2内部情報レジスタは8ビットのレジスタであるが、7〜3ビット目は「0」が設定されたままであり、使用されていない。また、2〜0ビット目は、初期値は「0」である。   As shown in FIG. 173, the second internal information register is an 8-bit register, but the seventh to third bits remain set to “0” and are not used. The initial value of the 2nd to 0th bits is “0”.

本実施形態では、電源投入によって、電圧監視回路338からシステムリセット信号がリセット制御回路314に入力される。すると、リセット制御回路314からは、マイクロプロセッサ3000の内部の回路に対し内部バス3300を介して、システムリセット信号1が出力される。また、本実施形態では、WDT3141がタイムアウトになった場合には、リセット制御回路314からは、マイクロプロセッサ3000の内部の回路に対し内部バス3300を介して、WDTのタイムアウト信号が出力されたことを表すシステムリセット信号2が出力される。さらに、CPU304が所定の範囲以外のアドレスを参照(指定エリア外走行)した場合には、リセット制御回路314からは、マイクロプロセッサ3000の内部の回路に対し内部バス3300を介して、指定エリア外走行禁止信号が出力されたことを表すシステムリセット信号3が出力される。   In this embodiment, a system reset signal is input from the voltage monitoring circuit 338 to the reset control circuit 314 when the power is turned on. Then, the system reset signal 1 is output from the reset control circuit 314 to the internal circuit of the microprocessor 3000 via the internal bus 3300. In this embodiment, when the WDT 3141 times out, the reset control circuit 314 indicates that a WDT timeout signal has been output to the internal circuit of the microprocessor 3000 via the internal bus 3300. A system reset signal 2 is output. Further, when the CPU 304 refers to an address outside the predetermined range (running outside the designated area), the reset control circuit 314 runs outside the designated area via the internal bus 3300 to the circuit inside the microprocessor 3000. A system reset signal 3 indicating that the prohibit signal has been output is output.

割込み制御回路3100は、内部バス3300を介してシステムリセット信号1を取得すると、2ビット目に「1」を設定する。すなわち、第1内部情報レジスタの2ビット目は、直前に発生したリセット要因が電源投入によるリセットであることを示すビットに相当する。   When the interrupt control circuit 3100 acquires the system reset signal 1 via the internal bus 3300, it sets “1” to the second bit. That is, the second bit of the first internal information register corresponds to a bit indicating that the reset factor generated immediately before is a reset due to power-on.

また、割込み制御回路3100は、内部バス3300を介してシステムリセット信号2を取得すると、1ビット目に「1」を設定する。すなわち、第1内部情報レジスタの1ビット目は、直前に発生したリセット要因がWDT3141のタイムアウトであることを示すビットに相当する。   Further, when the interrupt control circuit 3100 acquires the system reset signal 2 via the internal bus 3300, it sets “1” to the first bit. That is, the first bit of the first internal information register corresponds to a bit indicating that the reset factor generated immediately before is a timeout of WDT 3141.

さらに、割込み制御回路3100は、内部バス3300を介してシステムリセット信号3を取得すると、0ビット目に「1」を設定する。すなわち、第1内部情報レジスタの0ビット目は、直前に発生したリセット要因がCPU304の指定エリア外走行であることを示すビットに相当する。各ビットの値は、CPU304がその値を読み取るとクリアされる(初期値の「0」になる)ようになっている。なお、この第2内部情報レジスタを、図155に示す第1内部情報レジスタで構成してもよい。
<第3内部情報レジスタ>
Furthermore, when the interrupt control circuit 3100 acquires the system reset signal 3 via the internal bus 3300, it sets “1” to the 0th bit. That is, the 0th bit of the first internal information register corresponds to a bit indicating that the reset factor generated immediately before is traveling outside the designated area of the CPU 304. The value of each bit is cleared when the CPU 304 reads the value (becomes the initial value “0”). The second internal information register may be configured by the first internal information register shown in FIG.
<Third internal information register>

図174は、割込み制御回路3100の内部情報レジスタ3101に用意された第3内部情報レジスタを説明するための図である。図174に示すように、第3内部情報レジスタも8ビットのレジスタであるが、7〜2ビット目は「0」が設定されたままであり、使用されていない。   FIG. 174 is a diagram for explaining a third internal information register prepared in the internal information register 3101 of the interrupt control circuit 3100. As shown in FIG. 174, the third internal information register is also an 8-bit register, but the seventh and second bits remain set to “0” and are not used.

図174に示す第3内部情報レジスタの1ビット目は、WDT3141がタイムアウトした場合に、ユーザリセット動作を行わせるか、あるいはシステムリセット動作を行わせるかを設定するためのビットである。ユーザリセット動作を行わせる場合には「0」を設定し、システムリセット動作を行わせる場合には「1」を設定する。   The first bit of the third internal information register shown in FIG. 174 is a bit for setting whether to perform a user reset operation or a system reset operation when the WDT 3141 times out. “0” is set when the user reset operation is performed, and “1” is set when the system reset operation is performed.

また、0ビット目は、CPU304の指定エリア外走行が生じた場合に、ユーザリセット動作を行わせるか、あるいはシステムリセット動作を行わせるかを設定するためのビットである。このビットでも、ユーザリセット動作を行わせる場合には「0」を設定し、システムリセット動作を行わせる場合には「1」を設定する。   The 0th bit is a bit for setting whether the user reset operation or the system reset operation is performed when the CPU 304 travels outside the designated area. In this bit, “0” is set when the user reset operation is performed, and “1” is set when the system reset operation is performed.

ここで説明した1ビット目と0ビット目それぞれに設定される値は、内蔵ROM306のプログラム管理エリアに記憶されている。プログラム管理エリアに記憶されているこれらの値は、図159に示す主制御部メイン処理における初期設定2(ステップS3007)において、プログラム管理エリアから呼び出され、1ビット目と0ビット目それぞれに設定される。本実施形態では、いずれのビットにもシステムリセット動作を行わせる「1」が設定される。なお、1ビット目にユーザリセット動作を行わせる「0」を設定し、0ビット目にシステムリセット動作を行わせる「1」を設定してもよい。また、1ビット目にシステムリセット動作を行わせる「1」を設定し、0ビット目にユーザリセット動作を行わせる「0」を設定してもよい。   The values set for the first bit and the 0th bit described here are stored in the program management area of the built-in ROM 306. These values stored in the program management area are called from the program management area in the initial setting 2 (step S3007) in the main process of the main control unit shown in FIG. 159, and are set in the first bit and the 0th bit, respectively. The In this embodiment, “1” is set to cause the system reset operation to be performed on any bit. Note that “0” for performing the user reset operation may be set in the first bit, and “1” for performing the system reset operation may be set in the 0th bit. Further, “1” for performing the system reset operation may be set in the first bit, and “0” for performing the user reset operation may be set in the 0th bit.

なお、この第3内部情報レジスタも、図155に示す第1内部情報レジスタの空きビット(未使用ビット)で構成してもよく、あるいは、上述の図173に示す第2内部情報レジスタの空きビット(未使用ビット)で構成してもよい。また、リセット発生時には、ROM306のプログラム管理エリアに記憶されたリセット動作設定データの値を直接参照するようにしてもよい。この場合、第3内部情報レジスタに値を設定する処理は行わなくてもよい。
<第4内部情報レジスタ>
This third internal information register may also be composed of the empty bits (unused bits) of the first internal information register shown in FIG. 155, or the empty bits of the second internal information register shown in FIG. (Unused bits) may be used. When a reset occurs, the value of the reset operation setting data stored in the program management area of the ROM 306 may be directly referred to. In this case, the process of setting a value in the third internal information register may not be performed.
<Fourth internal information register>

図175は、割込み制御回路3100の内部レジスタ3101に用意された第4内部情報レジスタを説明するための図である。図175に示すように、第4内部情報レジスタは8ビットのレジスタであるが、7〜2ビット目は「0」が設定されたままであり、使用されていない。   FIG. 175 is a view for explaining a fourth internal information register prepared in the internal register 3101 of the interrupt control circuit 3100. As shown in FIG. 175, the fourth internal information register is an 8-bit register, but the seventh and second bits remain set to “0” and are not used.

この第4内部情報レジスタの1ビット目は、乱数生成回路318の外部クロック(更新クロック)RCKの異常を示すビットである。更新クロックに異常がある場合には、第4内部情報レジスタの1ビット目から「1(異常あり)」の情報が読みだされ、更新クロックに異常がない場合には、第4内部情報レジスタの1ビット目から「0(異常なし)」の情報が読みだされる。   The first bit of the fourth internal information register is a bit indicating an abnormality in the external clock (update clock) RCK of the random number generation circuit 318. When there is an abnormality in the update clock, information of “1 (abnormal)” is read from the first bit of the fourth internal information register, and when there is no abnormality in the update clock, Information of “0 (no abnormality)” is read from the first bit.

また、0ビット目は、リセットが発生した場合に、直前のリセット要因がシステムリセット(電源投入によるリセット)であるか否かを示すためのビットである。割込み制御回路3100は、内部バス3300を介してシステムリセット信号1を取得すると、この0ビット目に「1」を設定する。直前のリセット要因がシステムリセットである場合には、第4内部情報レジスタの0ビット目から「1(システムリセット発生)」の情報が読みだされ、直前のリセット要因がシステムリセットでない場合(リセット要因がWDT3141のタイムアウトである場合、または、リセット要因がCPU304の指定エリア外走行である場合)には、第4内部情報レジスタの0ビット目から「0(システムリセット未発生)」の情報が読みだされる。
<その他の内部情報レジスタ>
The 0th bit is a bit for indicating whether or not the immediately preceding reset factor is a system reset (reset upon power-on) when a reset occurs. When the interrupt control circuit 3100 acquires the system reset signal 1 via the internal bus 3300, the interrupt control circuit 3100 sets “1” to the 0th bit. If the immediately preceding reset factor is a system reset, information “1 (system reset has occurred)” is read from the 0th bit of the fourth internal information register, and if the immediately preceding reset factor is not a system reset (reset factor Is the time-out of WDT 3141, or when the reset factor is running outside the designated area of CPU 304), the information of “0 (system reset has not occurred)” is read from the 0th bit of the fourth internal information register Is done.
<Other internal information registers>

また、図示は省略するが、マイクロプロセッサ3000は、WDT3141を制御するレジスタとして、スタートレジスタとクリアレジスタを備えている。スタートレジスタは、WDT3141の起動/停止を制御するための8ビット長のレジスタであり、WDT3141を起動するときには起動を指示する値(例えば、CCH)を設定し(書き込み)、WDT3141を停止するときには停止を指示する値(例えば、33H)を設定するように構成されている。   Although not shown, the microprocessor 3000 includes a start register and a clear register as registers for controlling the WDT 3141. The start register is an 8-bit register for controlling activation / deactivation of the WDT 3141. When the WDT 3141 is activated, a value (for example, CCH) instructing activation is set (written) and stopped when the WDT 3141 is deactivated. Is configured to set a value (for example, 33H).

また、このスタートレジスタは、リセット時にプログラム管理エリアに「ソフトウェアによる起動」を設定(選択)したときに有効となるレジスタであり、その場合、停止を指示する値(例えば、33H)が初期値として設定される。したがって、「ソフトウェアによる起動」を設定(選択)したときにWDT3141を起動するためには、遊技制御プログラムによって(手動で)起動を指示する値(例えば、CCH)を設定する必要がある。一方、リセット時に「ソフトウェアによる起動」を設定(選択)しなかったときは、スタートレジスタには、起動を指示する値(例えば、CCH)が遊技制御プログラムによらずに(自動的に)初期値として設定され、遊技制御プログラムによらずに(自動的に)WDT3141が起動される。   This start register is valid when “start by software” is set (selected) in the program management area at the time of resetting. In this case, a stop instruction value (for example, 33H) is set as an initial value. Is set. Therefore, in order to activate WDT 3141 when “activation by software” is set (selected), it is necessary to set a value (for example, CCH) instructing activation by the game control program (manually). On the other hand, when “activation by software” is not set (selected) at the time of resetting, a value (for example, CCH) instructing activation in the start register is an initial value (automatically) regardless of the game control program. The WDT 3141 is activated (automatically) without depending on the game control program.

クリアレジスタは、WDT3141のクリアとリスタートを制御するための8ビット長のレジスタであり、所定の第一の値(例えば、55H)を設定した後に、所定の第二の値(例えば、AAH)を設定したときにWDT3141がクリアされ、直後にリスタートされる。なお、クリアレジスタの値を読み込んだときは、所定の固定値(例えば、FFH)が読みだされる。   The clear register is an 8-bit register for controlling the clearing and restarting of the WDT 3141. After setting a predetermined first value (for example, 55H), a predetermined second value (for example, AAH) Is set, WDT 3141 is cleared and restarted immediately after. When the value of the clear register is read, a predetermined fixed value (for example, FFH) is read.

ここでもう一度、システムリセットの流れについて、乱数更新との関係を含めて説明する。図176は、システムリセットの流れを乱数更新との関係を含めて示す図である。これまで、静電気などの要因により瞬断が生じた場合に、WDT3141のタイムアウトによってリセット制御回路314からシステムリセット信号(ここではシステムリセット信号2)が出力され、リセット動作が行われることを説明した。また、WDT3141のタイムアウトに限らず、例えば、CPU304の指定エリア外走行が生じた場合などにも、リセット制御回路314からシステムリセット信号(ここではシステムリセット信号3)が出力され、リセット動作が行われる。このリセット動作では、遊技台はセキュリティモードに移行し、セキュリティチエック処理(図147に示すステップSH05)が実行される。   Here, the flow of system reset will be described again, including the relationship with random number update. FIG. 176 is a diagram illustrating the flow of system reset including the relationship with random number update. Up to now, it has been described that when a momentary interruption occurs due to factors such as static electricity, the reset control circuit 314 outputs a system reset signal (here, the system reset signal 2) due to the timeout of the WDT 3141, and the reset operation is performed. Further, not only the timeout of WDT 3141 but also, for example, when the CPU 304 runs out of the designated area, the system reset signal (here, system reset signal 3) is output from the reset control circuit 314, and the reset operation is performed. . In this reset operation, the gaming machine shifts to the security mode, and a security check process (step SH05 shown in FIG. 147) is executed.

WDT3141のタイムアウトやCPU304の指定エリア外走行は、遊技処理の正常な進行を妨げる異常の一例に相当する。また、システムリセット信号2およびシステムリセット信号3は復帰指示の一例に相当する。さらに、図147に示すリセット制御回路314は、上記異常を検出する異常検出部の一例に相当する。   The time-out of WDT 3141 and the running out of the designated area of CPU 304 correspond to an example of an abnormality that hinders normal progress of the game process. The system reset signal 2 and the system reset signal 3 correspond to an example of a return instruction. Furthermore, the reset control circuit 314 illustrated in FIG. 147 corresponds to an example of an abnormality detection unit that detects the abnormality.

なお、図176では、図示省略したが、セキュリティモードではまず、図147に示すステップSH03の第1内部回路初期化処理が実行され、CPU304のコアやタイマ回路311、カウンタ回路312、パラレル入力ポート3102、RAM308アクセスプロテクトレジスタ、割込み制御回路3100、乱数生成回路318を制御するレジスタといった内蔵レジスタの値が初期化される。なお、乱数生成回路318を制御するレジスタが初期化されることから、乱数更新範囲が再設定されるとともに、乱数値の初期値も再設定される。CPU304の指定エリア外走行が生じたときは特に、乱数更新範囲に何らかの影響が及ぼされている可能性があるため、乱数更新範囲の再設定を行うことが好ましい。   Although not shown in FIG. 176, in the security mode, first, the first internal circuit initialization process in step SH03 shown in FIG. 147 is executed, and the CPU 304 core, timer circuit 311, counter circuit 312 and parallel input port 3102 are executed. The values of built-in registers such as the RAM 308 access protect register, the interrupt control circuit 3100, and the register that controls the random number generation circuit 318 are initialized. Since the register that controls the random number generation circuit 318 is initialized, the random number update range is reset, and the initial value of the random number is also reset. In particular, when traveling outside the designated area of the CPU 304 occurs, it is preferable that the random number update range is reset because there is a possibility that the random number update range has some influence.

続いて、固定延長処理(ステップSH07)が行われ、この固定延長処理が終了すると、リセット制御回路314は、マイクロプロセッサ3000の外部にある周辺制御回路に対して、リセット出力端子(XRSTO端子)からリセット信号を出力する。すなわち、XRSTO端子からのリセット信号(リセット出力)は、固定延長処理の終了後(セキュリティモード中)に出力され、ユーザモードの開始とは異なるタイミングで出力される。   Subsequently, a fixed extension process (step SH07) is performed. When this fixed extension process is completed, the reset control circuit 314 sends a reset output terminal (XRSTO terminal) to the peripheral control circuit outside the microprocessor 3000. Output a reset signal. That is, the reset signal (reset output) from the XRSTO terminal is output after the end of the fixed extension process (during the security mode), and is output at a timing different from the start of the user mode.

次に、ランダム延長処理(ステップSH09)が行われ、遅延処理の時間が不定になる。ランダム延長処理が終了すると、遊技台はユーザモードに移行し、遊技制御用プログラム(ここでは主制御部メイン処理)が開始される。   Next, a random extension process (step SH09) is performed, and the delay process time becomes indefinite. When the random extension process is completed, the gaming machine shifts to the user mode, and a game control program (in this case, the main control unit main process) is started.

この遊技制御用プログラムでは、最初に、各種の初期設定(図159に示すステップS3001〜ステップS3015)が行われる。この初期設定では、図177(a)に示すように、上述の第4内部情報レジスタの1ビット目から「更新クロック異常を示すビット」の値を読み出した後に、読み出した値を汎用レジスタにセットする(書き込む)処理を実行する一方で、第4内部情報レジスタの0ビット目から「リセット要因がシステムリセットであるか否かを示すビット」を読み出す処理は実行するが、読み出した値を汎用レジスタにセットする(書き込む)処理を実行しないように構成している。   In this game control program, first, various initial settings (steps S3001 to S3015 shown in FIG. 159) are performed. In this initial setting, as shown in FIG. 177 (a), after reading the value of “bit indicating update clock abnormality” from the first bit of the fourth internal information register, the read value is set in the general-purpose register. On the other hand, while the process of reading (writing) is executed, the process of reading “the bit indicating whether or not the reset factor is a system reset” is executed from the 0th bit of the fourth internal information register. It is configured not to execute the process of setting (writing).

換言すると、同図(b)に示すように、マイクロプロセッサ3000は、第1の要因(例えば、乱数生成回路318の更新クロックの状態)に基づいて変化する内部情報レジスタのビット(例えば、第4内部情報レジスタのビット1)の値を読み出して、読み出した値を汎用レジスタにセットする(書き込む)一方で、第1の要因とは異なる第2の要因(例えば、リセット要因)に基づいて変化する内部情報レジスタのビット(例えば、第4内部情報レジスタのビット0)の値を読み出すが、読み出した値を汎用レジスタにセットしない(書き込まない)ように構成されている。   In other words, as shown in FIG. 7B, the microprocessor 3000 uses the bits (for example, the fourth information register) that change based on the first factor (for example, the state of the update clock of the random number generation circuit 318). While reading the value of bit 1) of the internal information register and setting (writing) the read value in the general-purpose register, it changes based on a second factor (for example, a reset factor) different from the first factor A value of the bit of the internal information register (for example, bit 0 of the fourth internal information register) is read, but the read value is not set (not written) in the general-purpose register.

初期設定を終えると、続いて、ソフトウェア乱数の更新処理(ステップS3017およびステップS3019)が行われ、次いで、最初に発生する大当りの乱数取得タイミングに到達する。ここで、最初に発生する大当りの乱数取得タイミングに乱数を不正に取得されると、強制的に大当りにされてしまうことがある。しかしながら、ランダム延長処理によって遅延処理の時間が不定になっているため、上述のリセット出力を不正にとらえて、最初に発生する大当りの乱数取得のタイミングを図ろうとしても、上記所定時間も不定になり、不正行為を防止することができる。   When the initial setting is completed, a software random number update process (steps S3017 and S3019) is performed, and then the first big hit random number acquisition timing is reached. Here, if a random number is illegally acquired at the first big hit random number acquisition timing, the big hit may be forced. However, since the time of delay processing is indefinite due to random extension processing, the above-mentioned predetermined time is also indefinite even if the above-mentioned reset output is caught illegally and an attempt is made to obtain the jackpot random number acquisition timing that occurs first. Therefore, cheating can be prevented.

図178は、上記図146に示すマイクロプロセッサ3000のリセット制御回路314の変形例を示した図である。この変形例に係るリセット回路1314は、図146に示すリセット制御回路314が備える指定エリア外走行禁止回路3142、ウォッチドックタイマ(WDT)3141に替えて、信号出力タイミング制御回路1314aを備えている。この信号出力タイミング制御回路1314aは、2つのリセット入力端子XSRST1、リセット入力端子XSRST2から入力するリセット入力信号に基づいて、リセット出力端子XRSTOから出力するリセット出力信号の出力タイミングを決定するための回路である。   FIG. 178 is a diagram showing a modification of the reset control circuit 314 of the microprocessor 3000 shown in FIG. The reset circuit 1314 according to this modification includes a signal output timing control circuit 1314a instead of the out-of-designated area travel prohibition circuit 3142 and the watchdog timer (WDT) 3141 included in the reset control circuit 314 shown in FIG. The signal output timing control circuit 1314a is a circuit for determining the output timing of the reset output signal output from the reset output terminal XRSTO based on the reset input signals input from the two reset input terminals XSRST1 and XSRST2. is there.

図179は、主制御部300と第1副制御部400とのうち主制御部300のみでWDT3141のタイムアウトが生じた場合の例を示すタイミングチャートである。図179に示すタイミングチャートでは、図の左から右に向かって時間(T)が経過していく。図の左端の状態では、主制御部300にも第1副制御部400にも12Vの電圧が供給され、主制御部300も第1副制御部400も通常処理を行っている。この例では、主制御部300は特図の変動表示を開始し、第1副制御部400は、主制御部300による特図変動表示の開始に合わせて、ここでは不図示の第2副制御部500を介して、装飾図柄表示装置208に装飾図柄の変動表示を開始させる。図179に示すタイミングチャートにおける(a)〜(g)の符号は、符号が記された位置のタイミングを示すものであり、図179の下方には、そのタイミングにおける装飾図柄表示装置208の様子が示されている。   FIG. 179 is a timing chart illustrating an example when a timeout of WDT 3141 occurs only in main controller 300 out of main controller 300 and first sub-controller 400. In the timing chart shown in FIG. 179, time (T) elapses from the left to the right in the figure. In the state at the left end of the figure, a voltage of 12 V is supplied to both the main control unit 300 and the first sub control unit 400, and both the main control unit 300 and the first sub control unit 400 perform normal processing. In this example, the main control unit 300 starts the special figure variation display, and the first sub control unit 400 performs the second sub control (not shown here) in accordance with the start of the special figure fluctuation display by the main control unit 300. Via the unit 500, the decorative symbol display device 208 starts the variable display of decorative symbols. The symbols (a) to (g) in the timing chart shown in FIG. 179 indicate the timing of the position where the symbol is written, and the state of the decorative symbol display device 208 at that timing is shown below the FIG. It is shown.

主制御部300が特図変動表示を開始して間もなく主制御部300では瞬断が生じ、一時的な電圧降下により、電断時処理が行われ、待機状態に移行する。図168(b)を用いて説明したように、待機状態では、主制御部300のWDT3141がリスタートされず、WDT3141がタイムアウトする。リセット制御回路314からは、WDT3141のタイムアウトに基づいてシステムリセット信号2が出力される。   Shortly after the main control unit 300 starts displaying the special figure fluctuation, an instantaneous interruption occurs in the main control unit 300, and a process at the time of power interruption is performed due to a temporary voltage drop, and a transition is made to a standby state. As described with reference to FIG. 168 (b), in the standby state, the WDT 3141 of the main control unit 300 is not restarted and the WDT 3141 times out. A system reset signal 2 is output from the reset control circuit 314 based on the timeout of the WDT 3141.

システムリセット信号2が出力されたことにより、主制御部300は、図147に示すリセット処理を開始する。主制御部300では、このリセット処理で、第1内部回路初期化処理(ステップSH03)が実行された後に、セキュリティチェック処理(ステップSH05)が実行される。そして、セキュリティチェック処理が終了してもユーザモード(図159に示す主制御部メイン処理)にはすぐには移行せず、遅延処理が行われ、リセット処理が継続する。この遅延処理では、図147に示す固定延長処理(ステップSH07)が実行される。なお、上述のごとく、固定延長処理が終了すると、リセット制御回路314は、マイクロプロセッサ3000の外部にある周辺制御回路に対して、リセット出力端子(XRSTO端子)からリセット信号を出力するが、このリセット信号は、第1副制御部400に送信されるものではない。さらに、遅延処置では、ランダム延長処理(ステップSH09)が実行され、最大30秒のランダム時間だけさらに、ユーザモードへの移行が遅延される。これらステップSH07およびステップSH09は、本発明にいう遅延処理の一例に相当する。   When the system reset signal 2 is output, the main control unit 300 starts the reset process shown in FIG. In the main control unit 300, after the first internal circuit initialization process (step SH03) is executed in this reset process, the security check process (step SH05) is executed. Then, even if the security check process ends, the user mode (main control unit main process shown in FIG. 159) is not immediately shifted to, but a delay process is performed and the reset process continues. In this delay process, the fixed extension process (step SH07) shown in FIG. 147 is executed. As described above, when the fixed extension process is completed, the reset control circuit 314 outputs a reset signal from the reset output terminal (XRSTO terminal) to the peripheral control circuit outside the microprocessor 3000. The signal is not transmitted to the first sub control unit 400. Further, in the delay process, a random extension process (step SH09) is executed, and the transition to the user mode is further delayed by a random time of a maximum of 30 seconds. These steps SH07 and SH09 correspond to an example of the delay processing referred to in the present invention.

また、上述のごとく、電断時処理が開始されてから所定時間(例えば、1000ms)が経過するまでに、図75に示す払出制御部600が主制御部300からのコマンドを受信できない場合には、発射制御部630への発射許可信号の出力を停止する。   Further, as described above, when the dispensing control unit 600 shown in FIG. 75 cannot receive a command from the main control unit 300 until a predetermined time (for example, 1000 ms) elapses after the power interruption process is started. Then, the output of the firing permission signal to the firing control unit 630 is stopped.

一方、この例では、主制御部300では瞬断が生じたものの、第1副制御部400には継続して12Vの電圧が供給されており、主制御部300が電断時処理やリセット処理を行っている間も、第1副制御部400は通常処理を継続する。この結果、演出実行手段は演出を続けており、装飾図柄表示装置208でも、装飾図柄の変動表示が継続されており、主制御部300が電断時処理を開始して間もない(b)のタイミングでは、左図柄表示領域208aで装飾図柄の停止表示が行われる(いわゆる左図柄停止)。また、(c)のタイミングでは、右図柄表示領域208cで装飾図柄の停止表示が行われ(いわゆる右図柄停止)、リーチ状態になる。続いて、(d)のタイミングでは、スペシャルリーチ(ここではいわゆるトリプルリーチ)に発展し、(e)のタイミングでは、リーチはずれ演出が一旦行われ、(f)のタイミングでは、装飾図柄の組合せ(ここでは「装飾5−装飾4−装飾5」)が揺れ変動している。第1副制御部400は、主制御部300から図柄変動停止コマンドが送られてきたことに基づいて、装飾図柄の組合せを完全停止させて確定停止を行う。ところが、主制御部300が電断時処理やリセット処理を行っている間は、第1副制御部400には主制御部300からコマンドが送信されない。   On the other hand, in this example, although the main control unit 300 has an instantaneous interruption, the first sub-control unit 400 is continuously supplied with a voltage of 12 V, and the main control unit 300 performs the power interruption process and the reset process. The first sub-control unit 400 continues normal processing even during the process. As a result, the effect executing means continues the effect, and the decorative symbol display device 208 continues to display the decorative symbol fluctuating, and it is shortly after the main control unit 300 starts the power interruption process (b). At this timing, the decorative symbol is stopped and displayed in the left symbol display area 208a (so-called left symbol stop). At the timing (c), the decorative symbol is stopped and displayed in the right symbol display area 208c (so-called right symbol stop), and the reach state is reached. Subsequently, at the timing of (d), it develops into a special reach (here, so-called triple reach), at the timing of (e), a reach-off effect is once performed, and at the timing of (f), a combination of decorative symbols ( Here, “decoration 5—decoration 4—decoration 5”) fluctuates and fluctuates. Based on the fact that the symbol variation stop command is sent from the main control unit 300, the first sub-control unit 400 completely stops the combination of the decorative symbols and performs the fixed stop. However, no command is transmitted from the main control unit 300 to the first sub-control unit 400 while the main control unit 300 is performing a power interruption process or a reset process.

この結果、特図の変動時間が経過しても揺れ変動が継続することになる。いつまでも続く揺れ変動を見た遊技者は、パチンコ機100が壊れたのではないかと不安に思い、遊技店の店員を呼ぶことが期待でき、遊技店員に瞬断やリセットが発生したことを知らせることができる場合がある。すなわち、従来の遊技台では、遊技中に静電気などによる瞬間的な電圧低下でリセットが発生した場合にリセット処理を行なう技術が考案されているが、リセット処理には僅かな時間しかかからないため、遊技店側がリセットの発生を把握できず、遊技台に安定した制御を行なわせることができなかったが、本実施形態の遊技台によれば、遊技制御の開始を遅延させることで、遊技者を介してリセットの発生を遊技店員が把握できる。また、リセットの発生を遊技店員が把握できるため、リセットの発生要因を排除する(例えば、遊技台裏の配線等を離す)などして遊技台に安定した制御を行なわせることができる。さらに、この例では、リーチはずれ演出が行われているが、リーチ当り演出が行われてから揺れ変動がいつも以上に継続した場合には、大当りを期待していた遊技者に対して、パチンコ機100が壊れ、有利な状態にならないように変化してしまったのではないかといった遊技者の不安を一層煽ることができ、遊技者に店員を呼び出させ、遊技店員に瞬断が発生したことを知らせることができる場合がある。   As a result, the fluctuation of the shaking continues even if the fluctuation time of the special figure elapses. Players who have seen fluctuations that continue to forever are worried that the pachinko machine 100 may have broken, and can expect to call a store clerk at the amusement store. May be possible. In other words, in the conventional game machine, a technique has been devised to perform a reset process when a reset occurs due to an instantaneous voltage drop due to static electricity or the like during the game, but the reset process takes only a short time. Although the store side could not grasp the occurrence of the reset and could not allow the game machine to perform stable control, according to the game machine of this embodiment, by delaying the start of game control, The game store clerk can grasp the occurrence of the reset. Further, since the game store clerk can grasp the occurrence of the reset, it is possible to cause the game machine to perform stable control by eliminating the cause of the occurrence of the reset (for example, by separating the wiring on the back of the game machine). Furthermore, in this example, the out-of-reach performance is performed, but if the fluctuation of fluctuation continues more than usual after the per-reach performance, the pachinko machine is expected for the player who expected the big hit. It is possible to further raise the player's anxiety that the 100 may have broken and changed so that it does not become an advantageous state, letting the player call the store clerk, that the game store clerk had a momentary break You may be able to inform.

また、リセット処理が行われている期間は、発射許可信号の出力が停止されており、発射装置110からの遊技球の発射ができない。そのため、装飾図柄表示装置208による表示は継続しているのに、図1に示す球発射ハンドル134をいくら操作しても遊技球が発射されず、遊技者は、パチンコ機100が壊れたのではないかと不安に思い、遊技店の店員を呼ぶことが期待でき、遊技店員に瞬断やリセットが発生したことを知らせることができる場合がある。すなわち、遅延処理中は発射を停止させることで、遊技者を介してリセットの発生を遊技店員が把握できる場合がある。   Further, during the period when the reset process is being performed, the output of the launch permission signal is stopped, and the game ball cannot be launched from the launch device 110. Therefore, although the display by the decorative symbol display device 208 continues, no matter how many times the ball launch handle 134 shown in FIG. 1 is operated, the game ball is not fired. I am worried that there may be a chance, I can expect to call a store clerk at the amusement store, and I may be able to inform the amusement store clerk that an interruption or reset has occurred. In other words, the game store clerk may be able to grasp the occurrence of the reset via the player by stopping the launch during the delay process.

さらに、XRSTO信号が立ち下がるタイミングで主制御部300の各回路(例えば、駆動回路324〜334)にクリア信号が出力され、電断時処理やリセット処理が行われている期間は、主制御部300が駆動する、普図表示装置210や、第1特図表示装置212や、第2特図表示装置214や、普図保留ランプ216や、第1特図保留ランプ218や、第2特図保留ランプ220や、高確中ランプ222等の遊技表示手段も表示されず、これらの非表示に気付いた、遊技者は、パチンコ機100が壊れたのではないかと不安に思い、遊技店の店員を呼ぶことが期待でき、遊技店員に瞬断やリセットが発生したことを知らせることができる場合がある。特に、普図保留ランプ216や、第1特図保留ランプ218や、第2特図保留ランプ220や、高確中ランプ222といった遊技者が獲得した権利に基づく状態を表示する表示器が、非表示になると、パチンコ機100が壊れて、こらまで獲得した権利が消滅してしまったのではないかといった遊技者の不安を一層煽ることができ、遊技者に店員を呼び出させ、遊技店員に瞬断やリセットが発生したことを知らせることができる場合がある。また、見方を変えれば、店員に遊技客に対してお詫びをする機会が与えられ、遊技客とのコミニュケーションが図れ、アットホームな遊技店を実現する手助けになる可能性がある。   Further, a clear signal is output to each circuit (for example, the drive circuits 324 to 334) of the main control unit 300 at a timing when the XRSTO signal falls, and the main control unit 300 is driven, the special figure display device 210, the first special figure display device 212, the second special figure display device 214, the universal figure hold lamp 216, the first special figure hold lamp 218, and the second special figure. The game display means such as the hold lamp 220 and the high-probability lamp 222 are also not displayed, and the player who noticed these non-displays is worried that the pachinko machine 100 is broken, and is a store clerk of the game store. Can be expected to inform the game clerk that a momentary interruption or reset has occurred. In particular, the display device for displaying the status based on the rights acquired by the player, such as the general figure hold lamp 216, the first special figure hold lamp 218, the second special figure hold lamp 220, and the high accuracy medium lamp 222, is not provided. When it is displayed, the pachinko machine 100 is broken and the player's anxiety that the acquired rights have been lost can be further exaggerated. It may be possible to notify that a disconnection or reset has occurred. Also, from a different perspective, the store clerk can be given an opportunity to apologize to the player, communicate with the player, and help to realize a cozy game store.

主制御部300では、ランダム延長処理(ステップSH09)が終了すると、ここで初めてユーザモードに移行し、通常処理(図159に示す主制御部メイン処理)が開始される。図159に示す主制御部メイン処理では、主制御部300への供給電圧が12Vまで復帰しているため、図160に示す初期設定2が行われ、第1副制御部400には、ここで初めてクリア信号が出力される(ステップS3052)。第1副制御部400は、クリア信号を受信すると各種の初期設定を行う。この初期設定で、装飾図柄表示装置208に初期設定時の画面(デフォルト画面)を表示させる。なお、WDT3141でタイムアウトが生じた場合にも、装飾図柄表示装置208にはデフォルト画面が表示される。図179に示す(g)のタイミングでは、装飾図柄表示装置208に「お待ち下さい。」という文字表示がなされている。すなわち、装飾図柄表示装置208の画面は、いつまでたっても終わらなかった揺れ変動から「お待ち下さい。」という文字表示の画面に切り替わり、この一連の表示を見ていた遊技者は、パチンコ機100が壊れたのではないかと不安に思い、遊技店の店員を呼ぶことが期待でき、遊技店員に瞬断が発生したことを知らせることができる場合がある。   In the main control unit 300, when the random extension process (step SH09) ends, the main control unit 300 first shifts to the user mode and starts the normal process (main control unit main process shown in FIG. 159). In the main process of the main control unit shown in FIG. 159, since the supply voltage to the main control unit 300 has returned to 12V, the initial setting 2 shown in FIG. 160 is performed. A clear signal is output for the first time (step S3052). The first sub-control unit 400 performs various initial settings when receiving the clear signal. With this initial setting, the initial design screen (default screen) is displayed on the decorative symbol display device 208. Note that the default screen is displayed on the decorative symbol display device 208 even when a timeout occurs in the WDT 3141. At the timing (g) shown in FIG. 179, the text “Please wait” is displayed on the decorative symbol display device 208. That is, the screen of the decorative symbol display device 208 is switched to a character display screen of “please wait” from the shaking fluctuation that has not been finished indefinitely. I am worried that it may have been, I can expect to call a store clerk at the amusement store, and may be able to inform the amusement store clerk that a momentary break has occurred.

なお、主制御部メイン処理が開始されると、主制御部300から払出制御部600にもコマンドが送信されるようになり、発射制御部630へ発射許可信号が出力されて、遊技球の発射ができるようになる。   When the main control unit main process is started, a command is transmitted from the main control unit 300 to the payout control unit 600, and a launch permission signal is output to the launch control unit 630, and the game ball is fired. Will be able to.

この例では、主制御部300がリセット処理から通常処理に移行するタイミングは、装飾図柄の組合せの揺れ変動中((f)のタイミング以降)であったが、揺れ変動前((f)のタイミングより前)であっても、装飾図柄表示装置208にはデフォルト画面が表示される。   In this example, the timing at which the main control unit 300 shifts from the reset process to the normal process is during the fluctuation fluctuation of the decorative symbol combination (after the timing (f)), but before the fluctuation fluctuation (timing (f). Even before, a default screen is displayed on the decorative symbol display device 208.

以上説明した図179では、WDT3141のタイムアウトが生じた場合の例であったが、CPU304の指定エリア外走行が生じた場合にも同様に、遊技者を介してリセットの発生を遊技店員が把握でき、遊技台に安定した制御を行なわせることができる。また、リセットがかかるようなその他の異常が生じた場合でも、システムリセット動作を行わせるようにしておけば、システムリセット中に遅延処理が実行され、遊技者を介してリセットの発生を遊技店員が把握でき、遊技台に安定した制御を行なわせることができる場合がある。   FIG. 179 described above is an example in the case where a timeout of WDT 3141 occurs. Similarly, when a run out of the designated area of CPU 304 occurs, the game store clerk can grasp the occurrence of reset via the player. Thus, it is possible to cause the game machine to perform stable control. In addition, even if other abnormalities such as resetting occur, if the system reset operation is performed, a delay process is executed during the system reset, and the game store clerk detects the occurrence of the reset via the player. In some cases, the game table can be grasped and stable control can be performed.

以上の説明では、『電源の遮断が検出されるまで繰り返し実行される主処理(例えば、ステップS3017、S3019、および主制御部タイマ割込み処理)を含む遊技に関する遊技処理を実行する遊技制御部(例えば、主制御部300)、および前記遊技制御部が前記遊技処理を実行中に該遊技処理の正常な進行を妨げる異常(例えば、WDT3141のタイムアウトやCPU304の指定エリア外走行)を検出したことに基づいて復帰指示(例えば、システムリセット信号2,3)を行う異常検出部(例えば、リセット制御回路314)が設けられた電気的制御手段(例えば、マイクロプロセッサ3000)を備え、前記遊技制御部(例えば、主制御部300)は、前記復帰指示に基づいて前記遊技処理の実行を中止するものであって、前記電気的制御手段(例えば、マイクロプロセッサ3000)は、前記遊技制御部が前記遊技処理の実行を開始するための復帰処理(例えば、システムリセット動作)を前記復帰指示に基づいて行い、該復帰処理を実行している最中に該遊技処理の開始を遅延させる遅延処理(例えば、ステップSH07,SH09)を実行するものであることを特徴とする遊技台。』についての説明がなされている。   In the above description, “a game control unit (for example, a game process related to a game including a main process (for example, steps S3017, S3019, and a main control unit timer interrupt process) repeatedly executed until power-off is detected (for example, , The main control unit 300), and the game control unit detecting an abnormality (for example, time-out of the WDT 3141 or running out of the designated area of the CPU 304) that prevents the game process from proceeding normally while the game process is being executed. Provided with an electrical control means (for example, a microprocessor 3000) provided with an abnormality detection unit (for example, a reset control circuit 314) for performing a return instruction (for example, system reset signals 2 and 3), and the game control unit (for example, The main control unit 300) stops the execution of the game process based on the return instruction, The electrical control means (for example, the microprocessor 3000) performs a return process (for example, a system reset operation) for the game control unit to start executing the game process based on the return instruction. A game machine characterized by executing a delay process (for example, steps SH07 and SH09) for delaying the start of the game process while the game is being executed. Is explained.

ここで、前記遊技処理の遊技処理プログラムを記憶した記憶部(例えば、内蔵ROM306)を備え、前記電気的制御手段は、前記遊技処理の実行を再開するための初期化処理(例えば、ステップSH03の第1内部回路初期化処理)を前記復帰指示に基づいて行うものであって、前記遊技制御部は、前記復帰指示に基づいて前記遊技処理の実行を中止し、前記初期化処理が行われた後、前記記憶部から前記遊技処理プログラムを順次読み出して前記遊技処理を再開するものであって、前記電気的制御手段は、前記初期化処理を完了してから前記遊技処理を開始するまでの間に、該遊技処理の開始時期を遅延させる遅延処理を実行するものであってもよい。すなわち、ここにいう復帰処理は、初期化処理と遅延処理を併せた処理になる。   Here, a storage unit (for example, a built-in ROM 306) that stores a game process program for the game process is provided, and the electrical control means performs an initialization process (for example, in step SH03) for resuming the execution of the game process. The first internal circuit initialization process) is performed based on the return instruction, and the game control unit suspends execution of the game process based on the return instruction, and the initialization process is performed. Thereafter, the game process program is sequentially read out from the storage unit and the game process is resumed, and the electrical control means is a period between the completion of the initialization process and the start of the game process. In addition, a delay process for delaying the start timing of the game process may be executed. That is, the return process here is a process that combines the initialization process and the delay process.

また、電源の遮断が検出されるまで繰り返し実行される主処理を含む遊技に関する遊技処理を実行する遊技制御手段と、前記遊技制御手段が前記遊技処理を実行中に該遊技処理の進行を妨げる異常を検出したことに基づいて復帰指示を行う異常検出手段とを備え、前記遊技制御手段は、前記復帰指示に基づいて前記遊技処理の実行を中止し、該遊技処理の実行を再開するための復帰処理を行うものであって、該復帰処理を実行している最中に該遊技処理の再開を遅延させる遅延処理を実行するものであることを特徴とする遊技台。の態様であってもよい。この態様によれば、前記電気的制御手段といった、ハードウェア処理とソフトウェア処理の双方を行うことができる手段に代えて、遊技制御手段といったソフトウェア処理のみを行う手段によって、上記復帰処理を行い、その復帰処理を実行している最中に上記遅延処理を実行する。なお、前記遊技処理の遊技処理プログラムを記憶した第1記憶部と、前記復帰処理の復帰プログラムを記憶した第2記憶部とを備え、前記遊技制御手段は、前記1記憶部から前記遊技処理プログラムを順次読み出して前記遊技処理を実行するものであって、前記電気的制御手段は、前記復帰プログラムにしたがって前記復帰処理を実行するものであってもよい。   Also, a game control means for executing a game process relating to a game including a main process that is repeatedly executed until power-off is detected, and an abnormality that prevents the progress of the game process while the game control means is executing the game process An abnormality detecting means for giving a return instruction based on the detection of the game, and the game control means stops the execution of the game process based on the return instruction and resumes the execution of the game process. A gaming machine that performs processing, and executes delay processing that delays resumption of the game processing during execution of the return processing. The aspect of this may be sufficient. According to this aspect, instead of the means that can perform both hardware processing and software processing such as the electrical control means, the return processing is performed by means that performs only software processing such as game control means, The delay process is executed while the return process is being executed. The game processing program includes a first storage unit storing a game processing program for the game process and a second storage unit storing a return program for the return process, and the game control unit is configured to receive the game processing program from the first storage unit. Are sequentially read out to execute the game process, and the electrical control means may execute the return process according to the return program.

この場合、安定した遊技制御を行うことができる場合がある。すなわち、遊技制御の開始を遅延させることで、遊技者を介してリセットの発生を遊技店員が把握できる場合がある。また、リセットの発生を遊技店員が把握できるため、リセットの発生要因(例えば、静電気を発する電気部品)を特定して対処する(例えば、遊技台裏の配線の配置等を見直す)ことができ、遊技台に安定した制御を行なわせることができる場合がある。また、復帰処理中は遊技処理が行われないため、リセット発生時に遊技領域を転動していた遊技球が復帰処理中に第1特図始動口230に進入したとしても進入に基づく処理が行われず、遊技者に不安を抱かせて遊技店員を呼び易くすることが出来る場合がある。また、遊技店員は、遊技球を第1特図始動口230などに手で入れることによって、遊技台の状態を確認することができる場合がある。また、復帰処理中は遊技処理が行われないため、本体104または前面枠扉106を開放したとしても開放に基づく処理が行われず、遊技店員が本体104または前面枠扉106を開放することで、遊技台の状態を確認することができる場合がある。   In this case, stable game control may be performed. In other words, by delaying the start of game control, the game store clerk may be able to grasp the occurrence of reset via the player. In addition, since the game store clerk can grasp the occurrence of the reset, it is possible to identify and deal with the cause of the reset (for example, an electrical component that generates static electricity) (for example, review the layout of the wiring behind the game table) In some cases, the game machine can be controlled stably. In addition, since the game process is not performed during the return process, the process based on the entry is performed even if the game ball rolling in the game area when the reset occurs enters the first special figure starting port 230 during the return process. In some cases, it is possible to make the game store clerk easy to call with anxiety. In addition, the game store clerk may be able to confirm the state of the game table by manually inserting the game ball into the first special figure starting port 230 or the like. In addition, since the game process is not performed during the return process, even if the main body 104 or the front frame door 106 is opened, the process based on the opening is not performed, and the game store clerk opens the main body 104 or the front frame door 106, You may be able to check the status of the game console.

また、これまでの説明において、『前記電気的制御手段(例えば、マイクロプロセッサ3000)は、異常が発生したか否かを判定するセキュリティチェック処理を前記復帰処理中に行う(例えば、ステップSH05のセキュリティチェック処理を行う)ものであることを特徴とする遊技台。』についても説明がなされている。   Further, in the above description, “the electrical control means (for example, the microprocessor 3000) performs a security check process for determining whether or not an abnormality has occurred during the return process (for example, the security in step SH05). A game machine characterized by a check process). Is also explained.

この場合、復帰処理中にセキュリティチェック処理も行うため、復帰処理が行われている間の時間を有効に活用することができるとともに、セキュリティを向上させることが出来る場合がある。   In this case, since the security check process is also performed during the return process, the time during which the return process is being performed can be used effectively and the security can be improved.

なお、前記異常検出部は、前記異常のうちの第1の異常(例えば、CPU304の指定エリア外走行)があったことに基づいて前記復帰指示のうちの第1の復帰指示(例えば、システムリセット信号)を出力し、前記異常のうちの第2の異常(例えば、WDT3141のタイムアウト)があったことに基づいて前記復帰指示のうちの第2の復帰指示(例えば、ユーザリセット信号)を出力し、前記電気的制御手段は、前記第1の復帰指示に基づいて前記復帰処理を実行している最中に前記遅延処理を実行し、前記第2の復帰指示に基づいて前記復帰処理を実行している最中に前記遅延処理を実行しないものであってもよい。   The abnormality detection unit detects a first return instruction (for example, a system reset) among the return instructions based on a first abnormality (for example, traveling outside the designated area of the CPU 304) among the abnormalities. Signal) and a second return instruction (for example, a user reset signal) of the return instructions based on the presence of a second abnormality (for example, timeout of WDT 3141) among the abnormalities. The electrical control means executes the delay process while executing the return process based on the first return instruction, and executes the return process based on the second return instruction. The delay process may not be executed during the operation.

この場合、異常の種類に応じて遊技処理が開始されるまでの時間が異なるため、遊技店員が異常の種類を判別することができる場合がある。   In this case, since the time until the game process is started differs depending on the type of abnormality, the game store clerk may be able to determine the type of abnormality.

また、前記第1の異常は、前記第2の異常よりも異常度が高いものであってもよい。   The first abnormality may have a higher degree of abnormality than the second abnormality.

この場合、異常度の高い第1の異常が発生したときに復帰処理で遅延処理が行われるため、遊技店員は異常度が高い異常に基づくリセットが発生したことを確認することができる場合がある。   In this case, since the delay process is performed in the return process when the first abnormality having a high degree of abnormality occurs, the game clerk may be able to confirm that a reset based on the abnormality having a high degree of abnormality has occurred. .

また、前記電気的制御手段は、前記第1の復帰指示に基づいて前記復帰処理を実行している最中に前記セキュリティチェック処理を実行し、前記第2の復帰指示に基づいて前記復帰処理を実行している最中に前記セキュリティチェック処理を実行しないものであってもよい。   Further, the electrical control means executes the security check process while executing the return process based on the first return instruction, and performs the return process based on the second return instruction. The security check process may not be executed during the execution.

なお、遊技領域に向けて遊技球を発射する発射手段(例えば、発射装置110)を備え、前記発射手段は、前記遅延処理が実行されている間は遊技球の発射を停止するものであってもよい。   In addition, a launching unit (e.g., launching device 110) that launches a game ball toward the game area is provided, and the launching unit stops launching the game ball while the delay process is being executed. Also good.

この場合、遊技者は、パチンコ機100が壊れたのではないかと不安に思い、遊技店の店員を呼ぶことが期待でき、遊技店員に瞬断やリセットが発生したことを知らせることができる場合がある。すなわち、遅延処理中は発射を停止させることで、遊技者を介してリセットの発生を遊技店員が把握できる場合がある。   In this case, the player is worried that the pachinko machine 100 may have broken, and can expect to call a store clerk at the amusement store, and may be able to notify the game store clerk that an instantaneous interruption or reset has occurred. is there. In other words, the game store clerk may be able to grasp the occurrence of the reset via the player by stopping the launch during the delay process.

また、前記遊技処理の遊技処理プログラムを記憶した記憶部(例えば、内蔵ROM306)を備え、前記遊技制御部(例えば、主制御部300)は、前記記憶部から前記遊技処理プログラムを読み出して前記遊技処理を実行するものであって、前記記憶部(例えば、内蔵ROM306)は、この記憶部に記憶された内容(例えば、ユーザプログラム)に基づいて得られる所定の認証情報(例えば、認証コード)を格納したものであり、前記電気的制御手段(例えば、マイクロプロセッサ3000)は、前記記憶部に記憶されている内容に基づいて前記認証情報を前記復帰処理中に取得し、取得した認証情報が該記憶部に格 納されている前記所定の認証情報に一致するか否かの判定を該復帰処理中に行う(例えば、ステップSH05のセキュリティチェック処理を行う)ものであってもよい。   In addition, a storage unit (for example, a built-in ROM 306) that stores a game processing program for the game processing is provided, and the game control unit (for example, the main control unit 300) reads the game processing program from the storage unit and stores the game The storage unit (for example, the built-in ROM 306) receives predetermined authentication information (for example, an authentication code) obtained based on the contents (for example, a user program) stored in the storage unit. The electrical control means (for example, the microprocessor 3000) acquires the authentication information during the return process based on the content stored in the storage unit, and the acquired authentication information is stored in the storage unit. It is determined during the restoration process whether or not it matches the predetermined authentication information stored in the storage unit (for example, the security in step SH05). A tee check processing is performed) may be one.

この場合、復帰処理中に所定の認証情報に一致するか否かの判定を行うため、復帰処理が行われている間の時間を有効に活用することができるとともに、セキュリティを向上させることが出来る場合がある。   In this case, since it is determined whether or not it matches the predetermined authentication information during the return process, the time during which the return process is performed can be used effectively and security can be improved. There is a case.

なお、前記電気的制御手段は、取得した認証情報が該記憶部に格納されている前記所定の認証情報に一致したことに基づいて、前記遅延処理を実行するものであってもよい。   The electrical control unit may execute the delay process based on the fact that the acquired authentication information matches the predetermined authentication information stored in the storage unit.

また、前記遊技制御部は、取得した認証情報が該記憶部に格納されている前記所定の認証情報に不一致であったことに基づいて、動作を停止するものであってもよい。   The game control unit may stop the operation based on the fact that the acquired authentication information does not match the predetermined authentication information stored in the storage unit.

また、前記電気的制御手段は、前記遊技処理の開始を、予め定まった時間遅延させる第一遅延処理(例えば、ステップSH07の固定延長処理)、および変更可能な時間遅延させる第二遅延処理(例えば、ステップSH09のランダム延長処理)のうち少なくともいずれか一方の処理を行うものであってもよい。   Further, the electrical control means is configured to delay the start of the gaming process by a predetermined time (for example, a fixed extension process at step SH07) and a second delay process (for example, a variable time delay). , Random extension process in step SH09) may be performed.

また、前記電気的制御手段は、前記遊技処理の開始を予め定まった時間遅延させる第一遅延処理を行った後で、外部に対してリセット指示(例えば、リセット出力端子(XRSTO端子)からリセット信号)を出力し、その後、該遊技処理の開始を変更可能な時間遅延させる第二遅延処理処理を行うものであってもよい。ここにいう変更可能時間とは、前記電気的制御手段の製造時や設定時に、複数の用意された時間の中から選択された時間であってもよいし、任意に変えられる時間であってもよい。   The electrical control means performs a first delay process for delaying the start of the game process for a predetermined time, and then performs a reset instruction (for example, a reset signal from a reset output terminal (XRSTO terminal)) to the outside. ), And then a second delay process that delays the start of the game process by a variable time may be performed. The changeable time here may be a time selected from a plurality of prepared times at the time of manufacture or setting of the electrical control means, or may be a time that can be arbitrarily changed. Good.

この場合、遊技処理の開始タイミングと外部に対してのリセット指示の出力タイミングとが異なるため、有利な乱数が取得可能な最初のタイミングを不正者が解析困難にすることができ、不正者の不正行為を防止することができる場合がある。   In this case, since the start timing of the game process and the output timing of the reset instruction to the outside are different, it is possible for an unauthorized person to make it difficult to analyze the initial timing at which an advantageous random number can be obtained. It may be possible to prevent the act.

また、前記遊技制御部は、前記遊技処理の中で、所定の数値範囲(例えば、乱数生成範囲)で数値を繰り返し更新し更新した数値を用いて所定の抽選処理(例えば、特図の当否判定)を実行するものであって、前記電気的制御手段は、前記復帰処理の中で、前記数値を初期化する(例えば、ステップSH03の第1内部回路初期化処理を実行する)ものであってもよい。   In addition, the game control unit may perform a predetermined lottery process (for example, determination of whether or not a special figure is appropriate) using a numerical value that is repeatedly updated and updated in a predetermined numerical range (for example, a random number generation range) in the gaming process. The electrical control means initializes the numerical value in the return process (for example, executes the first internal circuit initialization process in step SH03). Also good.

また、前記遊技制御部によって制御される遊技表示手段(例えば、普図表示装置210や、第1特図表示装置212や、第2特図表示装置214や、普図保留ランプ216や、第1特図保留ランプ218や、第2特図保留ランプ220や、高確中ランプ222)を備え、前記遊技表示手段は、前記遅延処理が実行されている間は非表示になるものであってもよい。   In addition, game display means controlled by the game control unit (for example, the common figure display device 210, the first special figure display device 212, the second special figure display device 214, the common figure holding lamp 216, the first A special figure holding lamp 218, a second special figure holding lamp 220, and a high-probability medium lamp 222), and the game display means is not displayed while the delay process is being executed. Good.

この場合、遊技表示手段の表示が行われるはずが行われないため、遊技者に不安を抱かせて遊技店員を呼び易くすることが出来る場合がある。また、遊技店員は、遊技球を第1始動口230などに手で入れることによって、遊技台の状態を確認することができる場合がある。   In this case, since the game display means should not be displayed, it may be possible to make the game store clerk easy to call with anxiety. In addition, the game store clerk may be able to check the state of the game table by putting the game ball into the first starting port 230 or the like by hand.

また、遊技球が進入可能な第1の状態と、該第1の状態より遊技球な進入困難な第2の状態とに変化可能な可変入賞手段(例えば、第2特図始動口232、可変入賞口234)を備え、前記可変入賞手段は、前記第1の状態の場合に前記復帰指示があったことに基づいて前記第2の状態に変化するものであってもよい。   In addition, variable winning means (for example, the second special figure starting port 232, variable) that can be changed between a first state in which a game ball can enter and a second state in which a game ball is difficult to enter than the first state. The variable winning means may change to the second state based on the return instruction in the first state.

この場合、可変入賞手段が第1の状態であるべきなのに第2の状態となるため、遊技者に不安を抱かせて遊技店員を呼び易くすることが出来る場合がある。また、遊技店員は、遊技球を第1始動口230などに手で入れることによって、遊技台の状態を確認することができる場合がある。なお、前記可変入賞手段は、前記第1の状態の場合に前記復帰指示があったことに基づいて該第1の状態を維持するものであってもよい。この場合、予め定められた所定時間(例えば、開放時間)以上第1の状態となるため、遊技者に不安を抱かせて遊技店員を呼び易くすることが出来る場合がある。   In this case, since the variable winning means should be in the first state but in the second state, the game store clerk may be able to be called easily by making the player uneasy. In addition, the game store clerk may be able to check the state of the game table by putting the game ball into the first starting port 230 or the like by hand. The variable winning means may maintain the first state based on the return instruction in the first state. In this case, since the first state is maintained for a predetermined time (for example, opening time) for a predetermined time, it may be possible to make the game store clerk easy to call with anxiety.

また、前記遊技制御部からの指示に基づいて演出を実行する演出実行手段(例えば、装飾図柄表示装置208)を備え、前記演出実行手段は、前記遅延処理が実行されている間も演出を継続するものであってもよい。ここで、前記演出実行手段は、前記遊技表示手段よりも大きな表示領域を有するものであってもよい。   In addition, an effect execution means (for example, a decorative symbol display device 208) that executes an effect based on an instruction from the game control unit is provided, and the effect execution means continues the effect while the delay process is being executed. You may do. Here, the effect executing means may have a larger display area than the game display means.

この場合、遅延処理中に遊技者を退屈させないようにすることができる場合がある。   In this case, it may be possible to prevent the player from being bored during the delay process.

また、前記電気的制御手段は、前記復帰指示に基づいて、第1復帰処理と第2復帰処理を選択的に実行するものであり、前記第1復帰処理の復帰動作を記憶した第1復帰動作記憶部と、前記第2復帰処理の復帰動作を記憶した第2復帰動作記憶部と、を備え、前記電気的制御手段は、前記第1復帰処理を選択した場合には前記第1復帰動作記憶部に記憶された復帰動作にしたがって前記第1復帰処理を実行し、前記第2復帰処理を選択した場合には前記第2復帰動作記憶部に記憶された復帰動作にしたがって前記第2復帰処理を実行するものであってもよい。     The electrical control means selectively executes a first return process and a second return process based on the return instruction, and stores a return operation of the first return process. A storage unit, and a second return operation storage unit that stores a return operation of the second return process, and the electrical control means stores the first return operation memory when the first return process is selected. The first return process is executed according to the return operation stored in the unit, and when the second return process is selected, the second return process is executed according to the return operation stored in the second return operation storage unit. It may be executed.

また、前記遊技制御部は、前記遊技処理の中で、所定の数値範囲で数値を繰り返し更新し更新した数値を用いて所定の抽選処理を実行するものであって、前記電気的制御手段は、前記復帰指示に基づいて、前記数値を初期化する第1復帰処理(例えば、ステップSH03の第1内部回路初期化処理)と、該数値を該復帰指示がなされる前の値に保持する第2復帰処理(例えば、ステップSH11の第2内部回路初期化処理)を選択的に実行するものであってもよい。   Further, the game control unit performs a predetermined lottery process using a numerical value that is repeatedly updated and updated within a predetermined numerical value range in the gaming process, and the electrical control means includes: Based on the return instruction, a first return process for initializing the numerical value (for example, a first internal circuit initialization process in step SH03) and a second value for holding the numerical value at a value before the return instruction is given. The return process (for example, the second internal circuit initialization process in step SH11) may be selectively executed.

また、本発明を所定数の遊技球を循環して使用する封入式遊技機に適用してもよい。また、主制御部300と副制御部400は双方向通信でもよいし、主制御部300と副制御部400の機能を備えた1つの制御部を代わりに設けてもよい。   Further, the present invention may be applied to an enclosed game machine that circulates and uses a predetermined number of game balls. In addition, the main control unit 300 and the sub control unit 400 may be bi-directional communication, or a single control unit having the functions of the main control unit 300 and the sub control unit 400 may be provided instead.

従来より、遊技台として、遊技盤の遊技領域に遊技球の落下の方向に変化を与える障害物や、遊技球が入賞可能な入賞口、始動口、可変入賞口などを設け、これらに遊技球が入賞すると賞球を払い出すなど遊技者に特典が与えられるようにした弾球遊技機(パチンコ機)が知られている。この弾球遊技機では、遊技球が始動口へ進入したことに基づいて当否判定の抽選処理を行い、当否判定の結果に応じて、可変入賞口を所定時間開放させる等、遊技者に有利な遊技状態を発生させるようにしている。   Conventionally, as a game stand, there are obstacles that change the direction of the fall of the game ball in the game area of the game board, a winning opening, a starting opening, a variable winning opening, etc. that can be used for winning the game ball. There is known a ball game machine (pachinko machine) that gives a player a privilege such as paying out a prize ball when winning a prize. This ball game machine is advantageous to the player by performing a lottery process for determining whether or not the game ball has entered the starting port and opening the variable prize opening for a predetermined time according to the result of the determination. A game state is generated.

また、メダル(遊技媒体)を投入してスタートレバーを操作することでリールを回転させるとともに、内部抽選によって役を内部決定し、ストップボタンを操作することでリールを停止させたときに、図柄表示窓上に内部決定に応じて予め定められた図柄の組み合わせが表示されると役が成立し、メダルの払い出しを伴う役が成立した場合には、規定数のメダルを払い出すなど遊技者に特典が与えられるようした回胴遊技機(スロットマシン)も知られている。   In addition, when the reel is rotated by inserting a medal (game medium) and operating the start lever, the winning combination is determined internally by internal lottery, and the reel is stopped by operating the stop button. If a combination of symbols that is determined in advance according to the internal decision is displayed on the window, a combination is established. Also known is a slot machine.

ところで、遊技店の営業中に、遊技台の電気系統に異常が発生し、遊技台の電源が遮断(電断)することがある。電源断した遊技台は、その後、遊技に支障がないように即座に自動的に復電する(電源が投入される)。このため、遊技台が電断したことに遊技店側がその場では気づかないことがある。また、遊技台のプログラムが想定外の動作をした場合等、何らかの異常が生じた場合には、一旦リセットがかかる。しかしながらリセットがかかるような異常が生じた場合でも、遊技に支障がないように即座に自動的に復帰する。   By the way, during the operation of the game store, an abnormality may occur in the electrical system of the game machine, and the power supply of the game machine may be cut off (power interruption). After the power is turned off, the game table is automatically restored immediately (power is turned on) so that the game is not hindered. For this reason, the game store may not be aware of the fact that the game stand has been disconnected. In addition, if any abnormality occurs, such as when the game machine program operates unexpectedly, a reset is temporarily applied. However, even if an abnormality that requires a reset occurs, the game automatically returns immediately so that there is no problem with the game.

遊技台の電気系統に異常が発生した原因や、リセットがかかるような異常が生じた原因としては、様々なことが考えられ、遊技店側としては電断が生じたことや、リセットがかかるような異常が生じたことを、その場で把握したい場合がある。   There are a variety of causes for abnormalities in the electrical system of the game console and the causes of abnormalities that may cause a reset. The game store may experience a power outage or be reset. There is a case where it is desired to grasp on the spot that an abnormal abnormality has occurred.

一方、上記遊技台によれば、電気系統の異常が発生したことや、リセットがかかるような異常が生じたことを、遊技店側がその場で把握する機会を生じさせやすい。また、遊技制御の開始を遅延させることで、遊技者を介してリセットの発生を遊技店員が把握でき、遊技店員がリセットの発生要因を特定して対処する(例えば、遊技台裏の配線の配置等を見直す)ことができ、遊技台に安定した制御を行なわせることができる場合がある。   On the other hand, according to the above-mentioned game machine, it is easy to give an opportunity for the game shop to grasp on the spot that an abnormality of the electric system has occurred or an abnormality that requires resetting. In addition, by delaying the start of the game control, the game store clerk can grasp the occurrence of the reset through the player, and the game store clerk identifies and deals with the cause of the reset (for example, the layout of the wiring behind the game table) Etc.), and may allow the game stand to perform stable control.

以下、これまで説明したことも含めて付記する。
(付記1)
In the following, we will add that we have explained so far.
(Appendix 1)

遊技に関する複数種類の処理を含む遊技制御を行う遊技制御手段と、   Game control means for performing game control including a plurality of types of processing relating to games;

前記遊技制御手段の処理の進行に関する異常を検出するとともに、該異常を検出した場合には前記遊技制御手段に復帰指示を行う異常検出手段と、   An abnormality detecting means for detecting an abnormality related to the progress of the process of the game control means and instructing a return to the game control means when the abnormality is detected;

前記遊技制御手段および前記異常検出手段に所定の電圧を供給する電圧供給手段と、を備えた遊技台であって、
前記遊技制御手段は、
A voltage supply means for supplying a predetermined voltage to the game control means and the abnormality detection means,
The game control means includes

前記異常検出手段から前記復帰指示を受けたことに基づいて行われる復帰処理と、該復帰処理の後に開始され、所定の終了条件が成立するまで繰り返し実行される主処理と、を行い、 Performing a return process performed based on receiving the return instruction from the abnormality detection means, and a main process that is started after the return process and repeatedly executed until a predetermined end condition is satisfied,

前記復帰処理は、前記遊技制御の開始を遅延させる遅延処理を含むことを特徴とする遊技台。
(付記2)
The game table characterized in that the return process includes a delay process for delaying the start of the game control.
(Appendix 2)

乱数を生成するものであって、該乱数が生成される数値範囲である乱数生成範囲を設定可能な乱数生成手段(乱数生成回路318等)と、   Random number generation means (random number generation circuit 318 or the like) for generating a random number and capable of setting a random number generation range that is a numerical range in which the random number is generated;

前記乱数生成手段により生成された乱数を用いる抽選処理を含む、遊技に関する複数種類の処理を行う遊技制御手段(CPU304等)と、   Game control means (CPU 304, etc.) for performing a plurality of types of processing related to games, including lottery processing using random numbers generated by the random number generation means;

前記遊技制御手段の処理の進行に関する異常があるか否かを検出する処理を実行するとともに、該異常を検出した場合には前記遊技制御手段の処理を特定の処理から再開させて前記遊技制御手段の処理を正常に復帰させるための復帰指示(システムリセット又はユーザリセット)を前記遊技制御手段に対して行う異常検出手段(リセット制御回路314等)と、を備え、
前記乱数生成手段は、
A process for detecting whether or not there is an abnormality related to the progress of the process of the game control means is executed, and when the abnormality is detected, the process of the game control means is restarted from a specific process and the game control means An abnormality detection means (such as a reset control circuit 314) for performing a return instruction (system reset or user reset) for normally returning the processing of the game control means,
The random number generation means includes

前記乱数生成範囲を設定するための乱数範囲設定指示を前記遊技制御手段から受けたことに基づいて前記乱数生成範囲を更新する生成範囲更新処理(図160のステップS3053)を実行するものであり、
前記遊技制御手段は、
Executing a generation range update process (step S3053 in FIG. 160) for updating the random number generation range based on receipt of a random number range setting instruction for setting the random number generation range from the game control means;
The game control means includes

前記異常検出手段から前記復帰指示を受けた際に、該復帰指示が行われる前に設定された前記乱数生成範囲と同じ数値範囲を前記乱数生成範囲として設定するための前記乱数範囲設定指示を前記乱数生成手段に対して行う(図160のステップS3053)ものであることを特徴とする遊技台(パチンコ機100やスロットマシン1100)。
(付記3)
付記2記載の遊技台であって、
前記異常検出手段は、
When receiving the return instruction from the abnormality detection means, the random number range setting instruction for setting the same numerical range as the random number generation range set before the return instruction is performed as the random number generation range. A game machine (pachinko machine 100 or slot machine 1100), characterized in that it is performed on the random number generation means (step S3053 in FIG. 160).
(Appendix 3)
A game machine according to appendix 2,
The abnormality detection means includes

所定の開始条件が成立したことに基づいて経過時間の計測を開始し、該経過時間が特定時間を超えたか否かを判定するとともに、該経過時間が特定時間を超えたと判定したことに基づいて前記遊技制御手段に復帰指示を行う(図146のWDT3141の説明参照)ものであることを特徴とする遊技台。
(付記4)
Based on the fact that the elapsed time starts to be measured based on the establishment of a predetermined start condition, whether or not the elapsed time exceeds a specific time, and that the elapsed time exceeds the specific time A game table characterized by instructing the game control means to return (see the description of WDT 3141 in FIG. 146).
(Appendix 4)

所定の数値範囲で所定の周期ごとに更新され、遊技に関する抽選に用いられる乱数を生成する乱数生成手段(乱数生成回路318等)と、   Random number generation means (random number generation circuit 318 or the like) that generates a random number that is updated at predetermined intervals within a predetermined numerical range and is used for a lottery concerning a game;

前記乱数の更新に関する異常を検出する更新異常検出手段(周波数監視回路3182と乱数監視回路3184)と、   Update abnormality detection means (frequency monitoring circuit 3182 and random number monitoring circuit 3184) for detecting an abnormality related to the update of the random number;

前記異常検出手段により前記異常が検出されたことに基づいて、所定条件が成立するまで前記異常検出手段により前記異常が検出されたことを示す異常検出情報を保持する異常検出情報保持手段(内部情報レジスタ3101)と、   An abnormality detection information holding unit (internal information) that holds abnormality detection information indicating that the abnormality is detected by the abnormality detection unit until a predetermined condition is satisfied based on detection of the abnormality by the abnormality detection unit. Register 3101),

所定のタイミングで前記異常検出情報保持手段を参照し、前記異常検出情報保持手段により前記異常検出情報が保持されていたことに基づいて、所定の異常対応処理を実行する異常対応処理手段(CPU304と図166のデバイス監視処理および入賞受付処理)と、を備えたことを特徴とする遊技台。
(付記5)
付記4記載の遊技台であって、
前記異常検出情報保持手段は、
Reference is made to the abnormality detection information holding means at a predetermined timing, and based on the fact that the abnormality detection information is held by the abnormality detection information holding means, the abnormality response processing means (CPU 304 and 166, a device monitoring process and a winning acceptance process in FIG. 166.
(Appendix 5)
A gaming machine according to appendix 4,
The abnormality detection information holding means is

前記異常検出情報を保持している状態において前記異常対応処理手段により参照されたことに基づいて、前記異常検出情報が消去されるものであること(内部情報レジスタの説明参照)を特徴とする遊技台。
<主制御部の第1変形例>
A game characterized in that the abnormality detection information is erased on the basis of being referenced by the abnormality handling processing means in the state of holding the abnormality detection information (refer to the explanation of the internal information register). Stand.
<First Modification of Main Control Unit>

図180(a)は、主制御部の構成の第1変形例を示した図である。この例では、CPU304は、リセット信号入力端子XSRSTを備え、このリセット信号入力端子XSRSTには、ランダム遅延回路317が接続されている。なお、端子名称の先頭に付した「X」の文字は、端子に入出力する信号がローアクティブであることを示しているが、ハイアクティブでもよいことは言うまでもない(以下同様)。   FIG. 180 (a) is a diagram illustrating a first modification of the configuration of the main control unit. In this example, the CPU 304 includes a reset signal input terminal XSRST, and a random delay circuit 317 is connected to the reset signal input terminal XSRST. Note that the letter “X” attached to the head of the terminal name indicates that the signal input to and output from the terminal is low active, but it goes without saying that the signal may be high active (the same applies hereinafter).

また、ランダム遅延回路317の入力端子には、電圧監視回路338が出力する低電圧信号と、WDT314が出力するWDT起動信号の2つが入力されている。電圧監視回路338は、電源制御部660から主制御部300に供給している電源の電圧値が所定の値(本実施形態では9V)未満である場合に電圧が低下したことを示す低電圧信号(例えば、Lレベルの信号)を出力する。また、WDT314は、WDTのタイムアウトによってWDT起動信号(例えば、Lレベルの信号)を出力する。   The random delay circuit 317 has two input terminals, a low voltage signal output from the voltage monitoring circuit 338 and a WDT activation signal output from the WDT 314. The voltage monitoring circuit 338 is a low voltage signal indicating that the voltage has dropped when the voltage value of the power source supplied from the power source control unit 660 to the main control unit 300 is less than a predetermined value (9 V in this embodiment). (For example, an L level signal) is output. Further, the WDT 314 outputs a WDT activation signal (for example, an L level signal) due to a timeout of the WDT.

ランダム遅延回路317は、電圧監視回路338が出力する低電圧信号、または、WDT314が出力するWDT起動信号を入力端子から入力した後、ランダムに選択した遅延時間の経過を待って、当該入力信号をCPU304のリセット信号入力端子XSRSTに向けて出力する。図80を用いて説明したように、CPU304は、リセット信号入力端子XSRSTに所定期間(例えば、システムクロックの4周期分の期間)以上のLレベルの信号が入力された後にHレベルの信号が入力された場合にシステムリセット(初期化)される。このため、この例では、CPU304は、電圧監視回路338が出力する低電圧信号、または、WDT314が出力するWDT起動信号のいずれかに遅延時間を付加した信号に基づいてシステムリセット(初期化)される。
<主制御部の第2変形例>
The random delay circuit 317 inputs the low voltage signal output from the voltage monitoring circuit 338 or the WDT activation signal output from the WDT 314 from the input terminal, waits for the delay time selected at random, and receives the input signal. It outputs toward the reset signal input terminal XSRST of the CPU 304. As described with reference to FIG. 80, the CPU 304 inputs an H level signal to the reset signal input terminal XSRST after an L level signal is input for a predetermined period (for example, a period of four cycles of the system clock) or more. System reset (initialization). Therefore, in this example, the CPU 304 is reset (initialized) based on a signal obtained by adding a delay time to either the low voltage signal output from the voltage monitoring circuit 338 or the WDT activation signal output from the WDT 314. The
<Second Modification of Main Control Unit>

図180(b)は主制御部の構成の第2変形例を示した図である。この例では、WDT314が出力するWDT起動信号を、ランダム遅延回路317を介さずにCPU304のリセット信号入力端子XSRSTに向けて直接、出力するように構成している。このため、この例では、CPU304は、電圧監視回路338が出力する低電圧信号の出力タイミングを遅延時間だけ遅延させた信号、または、WDT314が出力するWDT起動信号(遅延時間なし)に基づいてシステムリセット(初期化)される。   FIG. 180 (b) is a diagram showing a second modification of the configuration of the main control unit. In this example, the WDT activation signal output from the WDT 314 is directly output to the reset signal input terminal XSRST of the CPU 304 without going through the random delay circuit 317. Therefore, in this example, the CPU 304 performs a system operation based on a signal obtained by delaying the output timing of the low voltage signal output from the voltage monitoring circuit 338 by a delay time or a WDT activation signal (no delay time) output from the WDT 314. It is reset (initialized).

同図(c)は、上述のランダム遅延回路317、電圧監視回路338、およびWDT314を有して構成されたリセット回路の構成例を示した図である。この例では、CPU304を、(1)WDT314が出力するWDT起動信号(遅延時間なし)に基づいてシステムリセット、(2)WDT314が出力するWDT起動信号にランダム遅延回路317で選択した遅延時間だけ出力タイミングを遅延させた信号に基づいてシステムリセット、(3)WDT314が出力するWDT起動信号をリセット信号入力端子XSRSTに入力させずに低電圧信号のみに基づいてシステムリセット、の3つの状態のいずれかをCPU304が選択可能に構成している。また、ランダム遅延回路317によって付加される遅延時間の設定が可能で、WDT起動信号に付加する遅延時間と低電圧信号に付加する遅延時間を個別に設定可能に構成している。これらの選択や設定、WDT314のスタートやリセットは、例えば、CPU304のデータ入出力端子D0〜D7を介してリセット回路に内蔵したレジスタに設定値を書き込んだり、リセット回路の所定の入力端子に所定のレベルの信号(設定値に対応する信号)を入力したりすることで行われる。
<リセット回路の第1変形例>
FIG. 6C is a diagram showing a configuration example of a reset circuit configured to include the random delay circuit 317, the voltage monitoring circuit 338, and the WDT 314 described above. In this example, the CPU 304 outputs (1) a system reset based on the WDT activation signal (no delay time) output from the WDT 314, and (2) outputs the WDT activation signal output from the WDT 314 for the delay time selected by the random delay circuit 317. One of three states: system reset based on a signal with delayed timing, and (3) system reset based on only a low voltage signal without inputting the WDT activation signal output from the WDT 314 to the reset signal input terminal XSRST. Can be selected by the CPU 304. Further, the delay time added by the random delay circuit 317 can be set, and the delay time added to the WDT activation signal and the delay time added to the low voltage signal can be individually set. These selections and settings, WDT 314 start and reset, for example, write a set value to a register built in the reset circuit via the data input / output terminals D0 to D7 of the CPU 304, or set a predetermined value to a predetermined input terminal of the reset circuit. This is performed by inputting a level signal (a signal corresponding to a set value).
<First Modification of Reset Circuit>

図181(a)は、図180(c)に示すリセット回路の第1変形例を示した図である。この例では、リセット回路に内蔵された第一WDT314aとは別に、CPU304にも第二WDT314bを内蔵している。そして、CPU304は、リセット信号入力端子XSRSTに入力するリセット信号によってシステムリセット(外部リセット)を行うか、内蔵する第二WDT314bのタイムアウトによってシステムリセット(内部リセット)を行うか、の選択が可能なレジスタを備えている。
<リセット回路の第2変形例>
FIG. 181 (a) is a diagram showing a first modification of the reset circuit shown in FIG. 180 (c). In this example, apart from the first WDT 314a built in the reset circuit, the CPU 304 also incorporates a second WDT 314b. The CPU 304 can select whether to perform a system reset (external reset) by a reset signal input to the reset signal input terminal XSRST or to perform a system reset (internal reset) by a timeout of the built-in second WDT 314b. It has.
<Second Modification of Reset Circuit>

同図(b)は、図180(c)に示すリセット回路の第2変形例を示した図である。この例では、CPU304が、リセット回路に内蔵していたランダム遅延回路317を内蔵しているとともに、リセット信号出力端子XRSTOを備えている。そして、CPU304は、外部リセットに基づいてリセット信号出力端子XRSTOからリセット信号を出力するか、内部リセットに基づいてリセット信号出力端子XRSTOからリセット信号を出力するか、の選択が可能なレジスタを備えている。また、CPU304は、リセット信号出力端子XRSTOから出力するリセット信号に、ランダム遅延回路317が選択する遅延時間を付与するか否かの選択が可能なレジスタも備えており、また、外部リセットに基づくリセット信号の出力タイミングを遅延させるための遅延時間と、内部リセットに基づくリセット信号の出力タイミングを遅延させるための遅延時間を個別に設定可能に構成している。
<リセット回路の第3変形例>
FIG. 7B is a diagram showing a second modification of the reset circuit shown in FIG. In this example, the CPU 304 has a random delay circuit 317 built in the reset circuit and a reset signal output terminal XRSTO. The CPU 304 includes a register that can select whether to output a reset signal from the reset signal output terminal XRSTO based on an external reset or to output a reset signal from the reset signal output terminal XRSTO based on an internal reset. Yes. The CPU 304 also includes a register capable of selecting whether or not to add the delay time selected by the random delay circuit 317 to the reset signal output from the reset signal output terminal XRSTO, and reset based on an external reset. The delay time for delaying the output timing of the signal and the delay time for delaying the output timing of the reset signal based on the internal reset can be individually set.
<Third Modification of Reset Circuit>

図182(a)は、図180(c)に示すリセット回路の第3変形例を示した図である。この例では、電圧監視回路338から出力される低電圧信号の出力タイミングを遅延させる遅延時間を設定するための第1ランダム遅延回路317aと、WDTが出力するWDT起動信号の出力タイミングを遅延させる遅延時間を設定するための第2ランダム遅延回路317bと、を別に設けている。すなわち、この例では、CPU304を、(1)電圧監視回路338が出力する低電圧信号に、第1ランダム遅延回路317aで選択した遅延時間だけ出力タイミングを遅延させた信号に基づいてシステムリセット、(2)WDT314が出力するWDT起動信号に、第2ランダム遅延回路317bで選択した遅延時間だけ出力タイミングを遅延させた信号に基づいてシステムリセット、(3)WDT314が出力するWDT起動信号(遅延時間なし)に基づいてシステムリセット、の3つの状態のいずれかをCPU304が選択可能に構成している。また、低電圧信号やWDT起動信号の出力タイミングを遅延させるための各々の遅延時間を第1ランダム遅延回路317a、第2ランダム遅延回路317bによって個別に設定可能に構成している。これらの選択や設定、WDT314のスタートやリセットは、例えば、CPU304のデータ入出力端子D0〜D7を介してリセット回路に内蔵したレジスタに設定値を書き込んだり、リセット回路の所定の入力端子に所定のレベルの信号(設定値に対応する信号)を入力したりすることで行われる。   FIG. 182 (a) shows a third modification of the reset circuit shown in FIG. 180 (c). In this example, the first random delay circuit 317a for setting the delay time for delaying the output timing of the low voltage signal output from the voltage monitoring circuit 338, and the delay for delaying the output timing of the WDT activation signal output by the WDT. A second random delay circuit 317b for setting the time is provided separately. That is, in this example, the CPU 304 performs (1) system reset based on a signal obtained by delaying the output timing by the delay time selected by the first random delay circuit 317a to the low voltage signal output from the voltage monitoring circuit 338. 2) System reset based on a signal obtained by delaying the output timing by the delay time selected by the second random delay circuit 317b to the WDT activation signal output by the WDT 314. (3) WDT activation signal output by the WDT 314 (no delay time) ) Based on the system reset so that the CPU 304 can select one of the three states. Each delay time for delaying the output timing of the low voltage signal and the WDT activation signal can be individually set by the first random delay circuit 317a and the second random delay circuit 317b. These selections and settings, WDT 314 start and reset, for example, write a set value to a register built in the reset circuit via the data input / output terminals D0 to D7 of the CPU 304, or set a predetermined value to a predetermined input terminal of the reset circuit. This is performed by inputting a level signal (a signal corresponding to a set value).

<リセット信号出力端子の接続の一例>   <Example of reset signal output terminal connection>

図182(b)は、CPU304に接続される各種ICの一部を示した図である。この例では、CPU304は、リセットに関連する端子として、同図(a)に示す電圧監視回路338が出力する低電圧信号に基づいて生成されるリセット信号が入力されるリセット信号入力端子XSRST1と、同図(a)に示すWDT314が出力するWDT起動信号に基づいて生成されるリセット信号が入力されるリセット信号入力端子XSRST2と、リセット信号を出力するためのリセット信号出力端子XRSTOの3つの端子を備える。   FIG. 182 (b) is a diagram illustrating a part of various ICs connected to the CPU 304. In this example, the CPU 304 has a reset signal input terminal XSRST1 to which a reset signal generated based on a low voltage signal output from the voltage monitoring circuit 338 shown in FIG. The three terminals of the reset signal input terminal XSRST2 to which a reset signal generated based on the WDT activation signal output from the WDT 314 shown in FIG. 5A is input and the reset signal output terminal XRSTO for outputting the reset signal are provided. Prepare.

図80を用いて説明したように、CPU304は、リセット信号入力端子XSRST1(またはリセット信号入力端子XSRST2)に所定期間(例えば、システムクロックの4周期分の期間)以上のLレベルの信号が入力された後に、当該入力端子にHレベルの信号が入力された場合にシステムリセット(初期化)される。   As described with reference to FIG. 80, the CPU 304 receives an L level signal that is equal to or longer than a predetermined period (for example, a period corresponding to four cycles of the system clock) to the reset signal input terminal XSRST1 (or the reset signal input terminal XSRST2). After that, when an H level signal is input to the input terminal, the system is reset (initialized).

また、リセット信号出力端子XRSTOには、複数(この例では4つ)のIC11〜IC14の入力端子と、他の回路の入力端子が接続されている。ここで、IC11〜IC14や他の回路としては、例えば、アドレスデコーダやフリップフロップ等のロジックIC、図75に示される各種回路・IC・装置(例えば、乱数値生成回路、起動信号出力回路、駆動回路、音源IC、センサ回路、遮蔽装置、装飾図柄表示装置)を適用することができる。また、IC11〜IC14や他の回路の入力端子としては、回路全体を初期化するためのリセット信号が入力されるリセット端子や、回路の一部を初期化するための信号が入力されるCLR端子などを適用することができる。   The reset signal output terminal XRSTO is connected to input terminals of a plurality (four in this example) of IC11 to IC14 and input terminals of other circuits. Here, as IC11 to IC14 and other circuits, for example, a logic IC such as an address decoder and a flip-flop, various circuits / ICs / devices shown in FIG. 75 (for example, a random value generation circuit, a start signal output circuit, a drive) Circuit, sound source IC, sensor circuit, shielding device, decorative design display device) can be applied. In addition, as input terminals of IC11 to IC14 and other circuits, a reset terminal for inputting a reset signal for initializing the entire circuit, or a CLR terminal for inputting a signal for initializing a part of the circuit Etc. can be applied.

<リセット信号出力端子の接続の第1変形例>   <First Modification of Connection of Reset Signal Output Terminal>

図183は、図182(b)に示すリセット信号出力端子XRSTOの接続の第1変形例を示した図である。この例では、CPU304は、上述のリセット信号出力端子XRSTOをIC11の入力端子9に接続することに加えて、8本のデータ信号端子D0〜D7を、IC11のデータ信号入力端子1〜入力端子8の各々に接続している。また、IC11は、データ信号入力端子1〜入力端子8の各々に対応する出力端子1〜8を備えており、これらの出力端子1〜8を、図示しない第1副制御部400のCPU404の8本のデータ信号入力端子に接続している。すなわち、CPU304のデータ信号線が、IC11を介して第1副制御部400のCPU404に入力されており、CPU304と第1副制御部400のCPU404は、IC11を介して通信可能に構成されている。なお、CPU304とCPU404を、IC11に加えて(または替えて)、上述のIC12〜IC14の一部または全てを介して通信可能に構成してもよい。また、CPU304とCPU404を、これらのIC11〜IC14に加えて(または替えて)、中継基板を介して通信可能に構成してもよい。   FIG. 183 is a diagram showing a first modification of the connection of the reset signal output terminal XRSTO shown in FIG. 182 (b). In this example, in addition to connecting the reset signal output terminal XRSTO to the input terminal 9 of the IC 11, the CPU 304 includes eight data signal terminals D 0 to D 7, and the data signal input terminal 1 to the input terminal 8 of the IC 11. Connected to each of. The IC 11 includes output terminals 1 to 8 corresponding to the data signal input terminals 1 to 8, and these output terminals 1 to 8 are connected to the CPU 404 of the first sub-control unit 400 (not shown). It is connected to the data signal input terminal. That is, the data signal line of the CPU 304 is input to the CPU 404 of the first sub control unit 400 via the IC 11, and the CPU 304 and the CPU 404 of the first sub control unit 400 are configured to be able to communicate via the IC 11. . Note that the CPU 304 and the CPU 404 may be configured to be communicable via a part or all of the above-described IC12 to IC14 in addition to (or instead of) the IC11. Further, the CPU 304 and the CPU 404 may be configured to be communicable via a relay board in addition to (or instead of) these ICs 11 to 14.

<リセット信号出力端子の接続の第2変形例>   <Second Modification of Connection of Reset Signal Output Terminal>

図184は、図75を用いて説明した基本回路302と、この基本回路302に接続される各種ICの一部を示した図である。なお、ここでは、主制御部300の基本回路302について説明するが、主制御部300の基本回路302に替えて(または、加えて)第1副制御部400の基本回路402、第2副制御部500の基本回路502、その他の制御部(例えば、払出制御部600)の基本回路に相当する回路に適用することもできる。   FIG. 184 is a diagram illustrating the basic circuit 302 described with reference to FIG. 75 and a part of various ICs connected to the basic circuit 302. Although the basic circuit 302 of the main control unit 300 will be described here, the basic circuit 402 and the second sub control of the first sub control unit 400 are replaced with (or in addition to) the basic circuit 302 of the main control unit 300. The present invention can also be applied to the basic circuit 502 of the unit 500 and a circuit corresponding to the basic circuit of another control unit (for example, the payout control unit 600).

基本回路302は、リセットに関連する端子として、上述のリセット信号入力端子XSRSTとリセット信号出力端子XRSTOの2つの端子を備える。リセット信号入力端子XSRSTには、IC01(例えば、上述のリセット回路や電源監視回路)の出力端子が接続されており、図80を用いて説明したように、基本回路302のCPU304は、リセット信号入力端子XSRSTに所定期間(例えば、システムクロックの4周期分の期間)以上のLレベルの信号が入力された後にHレベルの信号が入力された場合にシステムリセット(初期化)される。   The basic circuit 302 includes two terminals, the reset signal input terminal XSRST and the reset signal output terminal XRSTO described above, as terminals related to reset. The reset signal input terminal XSRST is connected to an output terminal of IC01 (for example, the above-described reset circuit or power supply monitoring circuit). As described with reference to FIG. 80, the CPU 304 of the basic circuit 302 receives the reset signal input. The system is reset (initialized) when an H-level signal is input after an L-level signal having been input for a predetermined period (for example, a period of four cycles of the system clock) is input to the terminal XSRST.

また、リセット信号出力端子XRSTOには、複数(この例では4つ)のIC11〜IC14の入力端子と、他の回路の入力端子が接続されている。ここで、IC11〜IC14や他の回路としては、例えば、アドレスデコーダやフリップフロップ等のロジックIC、図75に示される各種回路・IC・装置(例えば、乱数値生成回路、起動信号出力回路、駆動回路、音源IC、センサ回路、遮蔽装置、装飾図柄表示装置)を適用することができる。また、IC11〜IC14や他の回路の入力端子としては、回路全体を初期化するためのリセット信号が入力されるリセット端子や、回路の一部を初期化するための信号が入力されるCLR端子などを適用することができる。
<固定延長時間とランダム延長時間>
The reset signal output terminal XRSTO is connected to input terminals of a plurality (four in this example) of IC11 to IC14 and input terminals of other circuits. Here, as IC11 to IC14 and other circuits, for example, a logic IC such as an address decoder and a flip-flop, various circuits / ICs / devices shown in FIG. 75 (for example, a random value generation circuit, a start signal output circuit, a drive) Circuit, sound source IC, sensor circuit, shielding device, decorative design display device) can be applied. In addition, as input terminals of IC11 to IC14 and other circuits, a reset terminal for inputting a reset signal for initializing the entire circuit, or a CLR terminal for inputting a signal for initializing a part of the circuit Etc. can be applied.
<Fixed extension time and random extension time>

次に、図185を用いて、システムリセット後に基本回路302によって実行される固定延長処理とランダム延長処理の時間設定について説明する。図80を用いて説明したように、CPU304は、セキュリティモードにおいてセキュリティチェック処理→固定延長処理→ランダム延長処理の順番で各々の処理を実行した後、ユーザモードに移行し、遊技制御用プログラムを実行するように構成されている。本実施形態では、固定延長処理の処理時間(固定延長時間)とランダム延長処理の処理時間(ランダム延長時間)の各々をCPU304に予め設定することによって、セキュリティモード(=セキュリティチェック処理+固定延長処理+ランダム延長処理)の時間を、設定した時間分だけ延長することが可能である。   Next, with reference to FIG. 185, the time setting for the fixed extension process and the random extension process executed by the basic circuit 302 after the system reset will be described. As described with reference to FIG. 80, in the security mode, the CPU 304 executes each processing in the order of security check processing → fixed extension processing → random extension processing, then shifts to the user mode and executes the game control program. Is configured to do. In this embodiment, the security mode (= security check process + fixed extension process) is set in advance in the CPU 304 for each of the fixed extension process time (fixed extension time) and the random extension process time (random extension time). + Random extension process) can be extended by the set time.

図185(a)は固定延長時間の設定例を示したものである。この例では、CPU304の所定記憶領域に、3ビット長の設定値データ000B〜111Bのいずれかを予め設定することによって、同図に示す時間だけ固定延長時間を延長できるように構成されている。なお、この例では、設定値データが111Bの場合を除き、固定延長時間は、「2の22乗×(1/SCLK)×設定値データ」の計算式によって算出される。   FIG. 185 (a) shows an example of setting the fixed extension time. In this example, the fixed extension time can be extended by the time shown in the figure by presetting any one of the 3-bit set value data 000B to 111B in a predetermined storage area of the CPU 304. In this example, except for the case where the set value data is 111B, the fixed extension time is calculated by a calculation formula of “2 to the 22nd power × (1 / SCLK) × set value data”.

例えば、設定値データを000Bに設定した場合には、システムクロックSCLKの周波数とは無関係に固定延長時間が0(延長しない)に設定され、設定値データを001Bに設定した場合、システムクロックSCLKの周波数が8MHzのときは固定延長時間が約525ms(=2の22乗×(1/8MHz)×1)に設定され、システムクロックSCLKの周波数が10MHzのときは固定延長時間が約420ms(=2の22乗×(1/10MHz)×1)に設定され、システムクロックSCLKの周波数が12MHzのときは固定延長時間が約350ms(=2の22乗×(1/12MHz)×1)に設定される。   For example, when the set value data is set to 000B, the fixed extension time is set to 0 (not extended) regardless of the frequency of the system clock SCLK, and when the set value data is set to 001B, the system clock SCLK When the frequency is 8 MHz, the fixed extension time is set to about 525 ms (= 2 to the power of 22 × (1/8 MHz) × 1), and when the frequency of the system clock SCLK is 10 MHz, the fixed extension time is about 420 ms (= 2). 22 × (1/10 MHz) × 1), and when the frequency of the system clock SCLK is 12 MHz, the fixed extension time is set to about 350 ms (= 2 to the 22nd power × (1/12 MHz) × 1). The

なお、この例では、固定延長時間をシステムクロックSCLKに基づいて算出する例を示したが、例えば、他の設定値(例えば、後述するランダム延長時間)などに基づいて算出してもよいし、システムクロックSCLKと他の設定値の両方に基づいて算出してもよい。また、システムクロックSCLKと固定延長時間を反比例の関係にする例を示したが、両者が比例関係にあってもよい。また、設定値データが111Bの場合には、システムクロックSCLKの周波数とは無関係に固定延長時間を共通の約30000msに設定する例を示したが、設定値データが111Bの場合も上述の計算式によって算出してもよいし、最大値を設定してもよい。また、設定値データのデータ長は3ビットに限定されず、延長時間の種類を増やしてもよい。また、固定延長時間に0を含めずに0より大きい時間に限定してもよい(CPU304が必ず固定延長処理を実行するものとしてもよい)。また、内部リセットと外部リセットで、異なる固定延長時間の設定を可能に構成してもよい。   In this example, the fixed extension time is calculated based on the system clock SCLK. However, for example, the fixed extension time may be calculated based on another set value (for example, a random extension time described later). The calculation may be based on both the system clock SCLK and other set values. Further, although an example in which the system clock SCLK and the fixed extension time are in an inversely proportional relationship has been shown, both may be in a proportional relationship. Further, in the case where the set value data is 111B, an example in which the fixed extension time is set to about 30000 ms in common regardless of the frequency of the system clock SCLK is shown. However, the above calculation formula is also used when the set value data is 111B. Or a maximum value may be set. Further, the data length of the set value data is not limited to 3 bits, and the type of extension time may be increased. Further, the fixed extension time may be limited to a time longer than 0 without including 0 (the CPU 304 may always execute the fixed extension process). Further, different fixed extension times may be set for the internal reset and the external reset.

図185(b)はランダム延長時間の設定例を示したものである。この例では、CPU304の所定記憶領域に、2ビット長の設定値データ00B〜11Bのいずれかを予め設定することによって、同図に示す時間だけランダム延長時間を延長することができるように構成されている。例えば、設定値データを00Bに設定した場合、システムクロックSCLKの周波数とは無関係にランダム延長時間が0(延長しない)に設定され、設定値データを01Bに設定した場合、システムクロックSCLKの周波数が8MHzのときはランダム延長時間が0〜0.5msのランダムな時間(CPU304のコアによってランダムに選択された時間)に設定され、システムクロックSCLKの周波数が10MHzのときはランダム延長時間が0〜0.4msのランダムな時間に設定され、システムクロックSCLKの周波数が12MHzのときはランダム延長時間が0〜0.3msのランダムな時間に設定される。   FIG. 185 (b) shows an example of setting the random extension time. In this example, the random extension time can be extended by the time shown in the figure by presetting any of the 2-bit length set value data 00B to 11B in a predetermined storage area of the CPU 304. ing. For example, when the set value data is set to 00B, the random extension time is set to 0 (not extended) regardless of the frequency of the system clock SCLK, and when the set value data is set to 01B, the frequency of the system clock SCLK is When the frequency is 8 MHz, the random extension time is set to a random time of 0 to 0.5 ms (a time randomly selected by the core of the CPU 304). When the frequency of the system clock SCLK is 10 MHz, the random extension time is 0 to 0. When the frequency of the system clock SCLK is 12 MHz, the random extension time is set to a random time of 0 to 0.3 ms.

なお、この例では、ランダム延長時間をシステムクロックSCLKによって変化させる例を示したが、異なるシステムクロックSCLK間で同一に設定してもよい。また、他の設定値(例えば、上述の固定延長時間)などに基づいて算出してもよいし、システムクロックSCLKと他の設定値の両方に基づいて算出してもよい。また、設定値データのデータ長は2ビットに限定されず、延長時間の種類を増やしてもよい。また、ランダム延長時間に0を含めずに0より大きい時間に限定してもよい(CPU304が必ずランダム延長処理を実行するものとしてもよい)。また、内部リセットと外部リセットで、異なるランダム延長時間の設定を可能に構成してもよい。また、固定延長時間とランダム延長時間の一方について基準クロックを可変とし、他方については基準クロックを固定に構成してもよい。
<WDTタイムアウト時間>
In this example, an example in which the random extension time is changed by the system clock SCLK is shown, but the same may be set between different system clocks SCLK. Further, it may be calculated based on other set values (for example, the above-described fixed extension time) or may be calculated based on both the system clock SCLK and other set values. Further, the data length of the set value data is not limited to 2 bits, and the type of extension time may be increased. Further, the random extension time may be limited to a time longer than 0 without including 0 (the CPU 304 may always execute the random extension process). Further, different random extension times may be set for the internal reset and the external reset. Further, the reference clock may be variable for one of the fixed extension time and the random extension time, and the reference clock may be fixed for the other.
<WDT timeout period>

次に、図186を用いて、WDT314のタイムアウト時間設定について説明する。なお、同図はWDT314のタイムアウト時間の設定例を示したものである。この例では、CPU304の所定記憶領域に、4ビット長の設定値データ0000B〜1000Bのいずれかを予め設定することによって、同図に示す時間だけタイムアウト時間を設定できるように構成されている。例えば、設定値データを0000Bに設定した場合には、システムクロックSCLKの周波数とは無関係にタイムアウト時間が禁止(WDTを使用しない)に設定され、設定値データを0001Bに設定した場合、システムクロックSCLKの周波数が8MHzのときはタイムアウト時間が約65msに設定され、システムクロックSCLKの周波数が10MHzのときはタイムアウト時間が約52msに設定され、システムクロックSCLKの周波数が12MHzのときはタイムアウト時間が約44msに設定される。   Next, the timeout time setting of the WDT 314 will be described with reference to FIG. This figure shows an example of setting the timeout time of WDT 314. In this example, the time-out time can be set for the time shown in the figure by presetting any one of 4-bit set value data 0000B to 1000B in a predetermined storage area of the CPU 304. For example, when the set value data is set to 0000B, the timeout time is set to be prohibited (WDT is not used) regardless of the frequency of the system clock SCLK, and when the set value data is set to 0001B, the system clock SCLK is set. When the frequency of the clock is 8 MHz, the timeout time is set to about 65 ms, when the frequency of the system clock SCLK is 10 MHz, the timeout time is set to about 52 ms, and when the frequency of the system clock SCLK is 12 MHz, the timeout time is about 44 ms. Set to

なお、この例では、タイムアウト時間をシステムクロックSCLKによって変化させる例を示したが、異なるシステムクロックSCLK間で同一に設定してもよい。また、他の設定値(例えば、上述の固定延長時間やランダム延長時間)などに基づいて算出してもよいし、システムクロックSCLKと他の設定値の両方に基づいて算出してもよい。また、設定値データのデータ長は4ビットに限定されず、タイムアウト時間の種類を増やしてもよい。また、タイムアウト時間が上述の固定延長時間よりも小さくなるように設定しているが、タイムアウト時間が上述の固定延長時間よりも大きくなるように設定してもよい。   In this example, the timeout time is changed according to the system clock SCLK. However, the same time may be set between different system clocks SCLK. Further, it may be calculated based on other set values (for example, the above-described fixed extension time or random extension time), or may be calculated based on both the system clock SCLK and other set values. Further, the data length of the set value data is not limited to 4 bits, and the types of timeout time may be increased. Further, although the timeout time is set to be smaller than the above-described fixed extension time, the timeout time may be set to be longer than the above-described fixed extension time.

<リセット出力信号とセキュリティモード>   <Reset output signal and security mode>

次に、上述のリセット出力端子XSRSTOの出力信号の変化と、セキュリティモードの状態変化との関係について説明する。図187(a)に示す例は、上記図80と同一の状態を示しており、リセット入力端子XSRSTに所定期間以上のLレベルの信号が入力された後にHレベルの信号が入力されたことによってセキュリティモードに移行している。そして、このセキュリティモードにおいて、最初にセキュリティチェック処理が実行され、次に、上述の固定延長時間の設定に応じた期間の経過を待つ固定延長処理が実行され、当該固定延長処理が終了したときにリセット出力端子XRSTOからHレベルの信号を出力し、その後、上述のランダム延長時間の設定に応じたランダムな期間の経過を待つランダム延長処理が終了した場合にユーザモードに移行し、遊技制御用プログラムの実行が開始されている。すなわち、この例では、固定延長処理の終了タイミング(=ランダム延長処理の開始タイミング)と、リセット出力端子XRSTOからHレベルの信号を出力するタイミングを一致させている。   Next, the relationship between the change in the output signal of the reset output terminal XSRSTO and the change in the security mode state will be described. The example shown in FIG. 187 (a) shows the same state as in FIG. 80, and when an H level signal is input to the reset input terminal XSRST after an L level signal of a predetermined period or longer is input. Transition to security mode. Then, in this security mode, the security check process is first executed, then the fixed extension process waiting for the elapse of a period according to the above-described setting of the fixed extension time is executed, and when the fixed extension process is completed A game control program that shifts to a user mode when a random extension process that outputs an H level signal from the reset output terminal XRSTO and then waits for the passage of a random period according to the setting of the above-described random extension time is completed. Execution has started. That is, in this example, the end timing of the fixed extension processing (= start timing of the random extension processing) is matched with the timing of outputting an H level signal from the reset output terminal XRSTO.

また、図187(b)に示す例は、固定延長処理が終了した後、所定時間が経過したときにリセット出力端子XRSTOからHレベルの信号を出力し、その後、ランダム延長処理が終了した場合にユーザモードに移行し、遊技制御用プログラムの実行が開始されている。すなわち、この例では、固定延長処理が終了した後、ランダム延長処理が終了してユーザモードに移行する前(遊技制御用プログラムの実行が開始される前)にリセット出力端子XRSTOからHレベルの信号を出力している。なお、所定時間(固定延長処理が終了してから、リセット出力端子XRSTOからHレベルの信号を出力するまでの時間)は、固定時間でもよいし可変時間でもよい。また、固定時間を採用した場合には、例えば、固定延長処理が終了してから、システムクロックSCLKが所定クロック(例えば、4クロック)経過した後のシステムクロックSCLK立上がりエッジ(または、立下りエッジ)までの時間を、所定時間に設定してもよい。また、可変時間を採用した場合には、システムリセットの度に所定時間をランダムな時間に変化させてもよい。   In the example shown in FIG. 187 (b), when a predetermined time has elapsed after the fixed extension process is completed, an H level signal is output from the reset output terminal XRSTO, and then the random extension process is completed. Transition to the user mode, the execution of the game control program is started. That is, in this example, after the fixed extension process is finished, before the random extension process is finished and before the transition to the user mode (before the execution of the game control program is started), an H level signal is output from the reset output terminal XRSTO. Is output. The predetermined time (the time from the end of the fixed extension process to the output of the H level signal from the reset output terminal XRSTO) may be a fixed time or a variable time. Further, when the fixed time is adopted, for example, the rising edge (or falling edge) of the system clock SCLK after a predetermined clock (for example, 4 clocks) has elapsed since the end of the fixed extension process. The time until may be set to a predetermined time. When variable time is adopted, the predetermined time may be changed to a random time each time the system is reset.

<ランダム延長時間を変化させる場合>   <When changing the random extension time>

図188(a)、(b)は、固定延長処理の終了タイミング(=ランダム延長処理の開始タイミング)と、リセット出力端子XRSTOからHレベルの信号を出力するタイミングが一致するが、ランダム延長時間が異なる例を示した図である。すなわち、同図(a)と(b)では、固定延長時間の設定値が同一(例えば、設定値=001B、SCLK=約8MHz)であるとともに、ランダム延長時間の設定値も同一(例えば、設定値=01B、SCLK=8MHz)であるが、同図(a)では、ランダム延長時間の数値範囲(例えば、0〜0.5ms)から時間A1(例えば、0.2ms)が選択されている一方で、同図(b)では、ランダム延長時間の数値範囲(例えば、0〜0.5ms)から、時間A1よりも長い時間A2(例えば、0.3ms)が選択されている。なお、この例では、ランダム延長時間の数値範囲として0〜0.5msを選択しているため、ランダム延長時間が0(ランダム延長時間無し)になる場合も含まれている。   188 (a) and 188 (b) show that the end timing of fixed extension processing (= start timing of random extension processing) coincides with the timing of outputting an H level signal from the reset output terminal XRSTO. It is the figure which showed the different example. That is, in FIGS. 9A and 9B, the set value of the fixed extension time is the same (for example, set value = 001B, SCLK = about 8 MHz), and the set value of the random extension time is also the same (for example, the set value). (Value = 01B, SCLK = 8 MHz) In FIG. 9A, the time A1 (for example, 0.2 ms) is selected from the numerical range of the random extension time (for example, 0 to 0.5 ms). In FIG. 5B, a time A2 (for example, 0.3 ms) longer than the time A1 is selected from the numerical range (for example, 0 to 0.5 ms) of the random extension time. In this example, since 0 to 0.5 ms is selected as the numerical range of the random extension time, the case where the random extension time becomes 0 (no random extension time) is also included.

このように、固定延長時間やランダム延長時間の設定が同じであってもランダム延長時間(A1、A2)を変化させることによって、リセット出力端子XRSTOのHレベル信号出力から、ユーザモードが開始されるまでの時間(A1、A2)を、システムリセットの度に変化させることができる。このため、リセット信号出力端子XRSTOに接続されたIC11〜IC14や他の回路にHレベルの信号を出力してから(IC11〜IC14や他の回路を起動したり初期化してから)、遊技制御用プログラムが実行されるまでの時間を変化させることができ、CPU304の各端子からの出力信号やCPU304の周辺ICの動作などを手掛かりにして遊技制御用プログラムの実行タイミング(例えば、当否判定の抽選タイミング)を把握するような不正行為を未然に防止できる場合がある。なお、この例では、ランダム延長時間の設定値を同一にしたが、両者のランダム延長時間の設定値を異ならせてもよい。
<固定延長時間を変化させる場合>
As described above, the user mode is started from the H level signal output of the reset output terminal XRSTO by changing the random extension time (A1, A2) even if the setting of the fixed extension time and the random extension time is the same. The time until (A1, A2) can be changed at every system reset. For this reason, after outputting an H level signal to IC11 to IC14 or other circuits connected to the reset signal output terminal XRSTO (after starting or initializing IC11 to IC14 or other circuits), for game control The time until the program is executed can be changed, and the execution timing of the game control program (for example, lottery timing for determination of success / failure) based on the output signals from the respective terminals of the CPU 304 and the operation of peripheral ICs of the CPU 304 ) Can be prevented in advance. In this example, the setting value of the random extension time is the same, but the setting value of the random extension time may be different.
<When changing the fixed extension time>

図188(c)、(d)は、固定延長処理の終了タイミング(=ランダム延長処理の開始タイミング)と、リセット出力端子XRSTOからHレベルの信号を出力するタイミングが一致するが、固定延長時間が異なる例を示した図である。すなわち、同図(c)と(d)では、ランダム延長時間の設定値データは同一(例えば、設定値=01B、SCLK=8MHz)であり、同図(a)および(b)でランダム延長時間の数値範囲(例えば、0〜0.5ms)から同一の時間A1(例えば、0.2ms)が設定される一方で、同図(c)では、固定延長時間を時間B1(例えば、設定値=001B、SCLK=8MHz、約525ms)、同図(d)では、固定延長時間を時間B1よりも長い時間B2(例えば、設定値=010B、SCLK=8MHz、約1050ms)に設定している(B1<B2)。   FIGS. 188 (c) and (d) show that the end timing of fixed extension processing (= start timing of random extension processing) coincides with the timing of outputting an H level signal from the reset output terminal XRSTO. It is the figure which showed the different example. That is, the setting value data of the random extension time is the same (for example, setting value = 01B, SCLK = 8 MHz) in FIGS. 10C and 10D, and the random extension time is shown in FIGS. While the same time A1 (for example, 0.2 ms) is set from a numerical range of (for example, 0 to 0.5 ms), in FIG. 5C, the fixed extension time is set to the time B1 (for example, set value = (001B, SCLK = 8 MHz, about 525 ms), in FIG. 4D, the fixed extension time is set to a time B2 longer than the time B1 (for example, set value = 010B, SCLK = 8 MHz, about 1050 ms) (B1). <B2).

このように、ランダム延長時間(A1)が同じであっても固定延長時間(B1、B2)を変化させることによって、固定延長処理が開始されてからユーザモードが開始されるまでの時間(C1、C2)を変化させることができる。このため、CPU304のシステムリセットから遊技制御用プログラムが実行されるまでの時間をシステムリセットの度に変化させることができ、CPU304のリセット入力端子XSRSTに入力するリセット信号などを手掛かりにして遊技制御用プログラムの実行タイミング(例えば、当否判定の抽選タイミング)を把握するような不正行為を未然に防止できる場合がある。なお、図180では、固定延長時間とランダム延長時間の一方を異ならせる例を示したが、両者が異なるようにすれば、遊技制御用プログラムの実行タイミングを把握するような不正行為を、より確実に防止できる場合がある。   Thus, by changing the fixed extension time (B1, B2) even if the random extension time (A1) is the same, the time from the start of the fixed extension process to the start of the user mode (C1, C2) can be varied. Therefore, the time from the system reset of the CPU 304 to the execution of the game control program can be changed each time the system is reset. In some cases, it is possible to prevent fraudulent acts such as grasping the execution timing of the program (for example, the lottery timing for determination of success / failure). Note that FIG. 180 shows an example in which one of the fixed extension time and the random extension time is made different. However, if both are made different, an illegal act of grasping the execution timing of the game control program is more reliably performed. There are cases where it can be prevented.

<固定延長処理を契機にリセット出力信号を変化させる場合>   <When changing the reset output signal triggered by fixed extension processing>

図189は、固定延長処理を契機にリセット出力信号を変化させる例を示した図である。この例では、固定延長処理の開始タイミング(=セキュリティチェック処理の終了タイミング)と、リセット出力端子XRSTOからHレベルの信号を出力するタイミングを一致させている。なお、固定延長処理を契機にリセット出力信号を変化させればよいため、例えば、固定延長処理の開始前(例えば、固定延長処理の開始タイミングから200ms前)にリセット出力信号を出力してもよいし、固定延長時間の設定値に応じて遅延時間を決定し、当該遅延時間の経過を待ってからリセット出力信号を出力してもよい。また、内部リセット(内蔵するWDTのタイムアウトに基づくリセット)か、外部リセット(XSRST端子への信号入力に基づくリセット)かを判別し、当該リセットの種類に応じてリセット出力信号の出力タイミングを決定してもよい。   FIG. 189 is a diagram illustrating an example in which the reset output signal is changed in response to the fixed extension process. In this example, the start timing of the fixed extension process (= end timing of the security check process) and the timing of outputting an H level signal from the reset output terminal XRSTO are matched. Since the reset output signal may be changed in response to the fixed extension process, for example, the reset output signal may be output before the start of the fixed extension process (for example, 200 ms before the start timing of the fixed extension process). The delay time may be determined according to the set value of the fixed extension time, and the reset output signal may be output after the delay time has elapsed. Also, it determines whether it is an internal reset (reset based on a built-in WDT timeout) or an external reset (reset based on a signal input to the XSRST terminal), and determines the output timing of the reset output signal according to the type of the reset. May be.

また、過去のリセットの種類を記憶する記憶手段を備え、当該記憶手段に記憶されたリセットの種類の履歴に基づいてリセット出力信号の出力タイミングを変化させてもよく、例えば、内部リセットが複数回連続した場合には、リセット出力信号の出力タイミングを前回よりも遅らせたり早めたりしてもよい。   Further, a storage unit that stores past reset types may be provided, and the output timing of the reset output signal may be changed based on the history of reset types stored in the storage unit. If it is continuous, the output timing of the reset output signal may be delayed or advanced from the previous time.

<他の出力信号とセキュリティモード>   <Other output signals and security mode>

図190は、CPU304から出力されるアドレス信号、データ信号、制御信号、およびリセット出力信号の変化と、セキュリティモードの状態変化を示した図である。この例では、CPU304は、固定延長処理が終了したとき(ランダム延長処理を開始したとき)にリセット出力端子XRSTOからHレベルの信号を出力するとともに、同じタイミングで外部のIC(例えば、ROM306、RAM308)との間でデータのリード(またはライト)を開始している。このため、この例では、リセット出力端子XRSTOからHレベルの信号を出力すると同時に、アドレス信号A0〜A15端子から16ビットのアドレス情報(この例では、0000H)の出力を開始し、制御信号XM1端子からアドレス情報のラッチタイミング(外部のICがアドレス情報を取り込むタイミング)を示す制御信号を出力し、続けて、データ信号D0〜D7端子から8ビットのデータ情報(この例では、オペコード)の出力を開始し、制御信号XM1端子からデータ情報のラッチタイミング(外部のICがデータ情報を取り込むタイミング)を示す制御信号を出力している。   FIG. 190 is a diagram illustrating changes in the address signal, data signal, control signal, and reset output signal output from the CPU 304, and changes in the security mode state. In this example, the CPU 304 outputs an H level signal from the reset output terminal XRSTO when the fixed extension process is completed (when the random extension process is started) and at the same timing, an external IC (for example, ROM 306, RAM 308). Data read (or write) has started. For this reason, in this example, an H level signal is output from the reset output terminal XRSTO, and at the same time, output of 16-bit address information (0000H in this example) is started from the address signals A0 to A15, and the control signal XM1 terminal A control signal indicating the latch timing of the address information (timing at which the external IC captures the address information) is output, and subsequently, 8-bit data information (opcode in this example) is output from the data signals D0 to D7 terminals. The control signal indicating the latch timing of the data information (the timing at which the external IC captures the data information) is output from the control signal XM1 terminal.

なお、この例では、リセット出力端子XRSTOからHレベルの信号を出力すると同時にアドレス信号と制御信号の出力を開始しているが、例えば、リセット出力よりも前にアドレス信号と制御信号の出力を開始してもよいし、リセット出力よりも後(例えば、セキュリティモードからユーザモードに移行した直後)にアドレス信号と制御信号の出力を開始してもよい。なお、XM1端子から出力する制御信号は、例えば、CPU304のマシンサイクルを示す出力信号でもよいし、メモリ空間やI/O空間へのリクエスト出力信号でもよいし、リードサイクルやライトサイクルを示す出力信号でもよい。   In this example, the output of the address signal and the control signal is started simultaneously with the output of the H level signal from the reset output terminal XRSTO. For example, the output of the address signal and the control signal is started before the reset output. Alternatively, the output of the address signal and the control signal may be started after the reset output (for example, immediately after shifting from the security mode to the user mode). The control signal output from the XM1 terminal may be, for example, an output signal indicating a machine cycle of the CPU 304, a request output signal to a memory space or an I / O space, or an output signal indicating a read cycle or a write cycle. But you can.

図191(a)は外部リセット後の他の出力信号の状態変化を示した図であり、同図(b)は内部リセット後の他の出力信号の状態変化を示した図である。この例では、外部リセットの場合には、ランダム延長処理よりも所定時間A1だけ前に、アドレス信号A0〜A15端子から16ビットのアドレス情報(この例では、0000H)の出力を開始し、制御信号XM1端子からアドレス情報のラッチタイミングを示す制御信号を出力している。一方、内部リセットの場合には、ランダム延長処理よりも所定時間A2(A2>A1)だけ前に、アドレス信号A0〜A15端子から16ビットのアドレス情報(この例では、0000H)の出力を開始し、制御信号XM1端子からアドレス情報のラッチタイミングを示す制御信号を出力している。すなわち、この例では、外部リセットと内部リセットで、アドレス信号A0〜A15端子の信号出力と、制御信号XM1端子の信号出力のタイミングを異ならせている。   FIG. 191 (a) is a diagram showing a state change of another output signal after an external reset, and FIG. 191 (b) is a diagram showing a state change of another output signal after an internal reset. In this example, in the case of an external reset, the output of 16-bit address information (0000H in this example) is started from the address signals A0 to A15 terminals by a predetermined time A1 before the random extension process, and the control signal A control signal indicating the latch timing of the address information is output from the XM1 terminal. On the other hand, in the case of an internal reset, output of 16-bit address information (0000H in this example) is started from the address signals A0 to A15 before a predetermined time A2 (A2> A1) before the random extension process. The control signal indicating the latch timing of the address information is output from the control signal XM1 terminal. That is, in this example, the signal output timing of the address signals A0 to A15 and the signal output of the control signal XM1 terminal are different between the external reset and the internal reset.

また、内部リセットの場合には、WDT314のタイムアウト直後に、アドレス信号A0〜A15端子から16ビットのアドレス情報(この例では、E000H)の出力を行うように構成し、外部リセット直後のアドレス情報(例えば、0000H)と異ならせている。なお、内部リセット直後に出力するアドレス情報と、外部リセット直後に出力するアドレス情報を同一に設定してもよい。   In the case of an internal reset, 16-bit address information (E000H in this example) is output from the address signals A0 to A15 immediately after the timeout of the WDT 314, and the address information immediately after the external reset ( For example, 0000H). Note that the address information output immediately after the internal reset and the address information output immediately after the external reset may be set to be the same.

図192(a)は外部リセット後の他の出力信号の状態変化の他の例を示した図であり、同図(b)は内部リセット後の他の出力信号の状態変化の他の例を示した図である。この例では、内部リセットの場合には、外部リセットのリセット解除時間B1よりも長い時間B2の経過を待って、内部リセットを解除するように設定している。なお、本構成と、上記図186を用いて説明した各構成を組み合わせて実現してもよい。   FIG. 192 (a) is a diagram showing another example of the state change of another output signal after the external reset, and FIG. 192 (b) is another example of the state change of another output signal after the internal reset. FIG. In this example, in the case of an internal reset, the internal reset is canceled after the elapse of a time B2 longer than the reset cancellation time B1 of the external reset. In addition, you may implement | achieve combining this structure and each structure demonstrated using the said FIG.

<セキュリティモードの開始タイミング>   <Start timing of security mode>

図193(a)は外部システムリセット後のセキュリティモードの開始タイミングの一例を示した図であり、同図(b)は内部システムリセット後のセキュリティモードの開始タイミングの一例を示した図である。この例では、外部システムリセットの場合には、当該外部システムリセットの要因が発生してから(例えば、リセット入力信号XSRSTの立下りエッジを検出してから)、時間C1(例えば、システムクロックSCLKの4クロック分の時間)が経過した後にセキュリティモードが開始されるように構成している。一方、内部システムリセットの場合には、内部リセットの要因が発生してから(例えば、WDTタイマがタイムアウトしてから)、時間C2(例えば、システムクロックSCLKの1クロック分の時間)が経過した後にセキュリティモードが開始されるように構成している。   FIG. 193 (a) is a diagram showing an example of the security mode start timing after the external system reset, and FIG. 193 (b) is a diagram showing an example of the security mode start timing after the internal system reset. In this example, in the case of an external system reset, after the cause of the external system reset occurs (for example, after the falling edge of the reset input signal XSRST is detected), the time C1 (for example, the system clock SCLK) The security mode is configured to start after a lapse of 4 clocks). On the other hand, in the case of an internal system reset, after the cause of the internal reset occurs (for example, after the WDT timer times out), the time C2 (for example, the time corresponding to one clock of the system clock SCLK) elapses. Security mode is configured to start.

なお、この例では、外部リセットの要因が発生してからセキュリティモードが開始されるまでの時間C1を、内部リセットの要因が発生してからセキュリティモードが開始されるまでの時間C2よりも長くしているが(C1>C2)、外部リセットの要因が発生してからセキュリティモードが開始されるまでの時間C1を、内部リセットの要因が発生してからセキュリティモードが開始されるまでの時間C2よりも短くしてもよい(C1<C2)。   In this example, the time C1 from the occurrence of the external reset factor to the start of the security mode is set longer than the time C2 from the occurrence of the internal reset factor to the start of the security mode. However, (C1> C2), the time C1 from the occurrence of the external reset factor to the start of the security mode is determined from the time C2 from the occurrence of the internal reset factor to the start of the security mode. May be shortened (C1 <C2).

また、上述の例では、セキュリティモードに含まれるランダム延長処理の実行時間(ランダム延長時間)や固定延長処理(固定延長時間)をリセットの要因によらずに自由に設定可能としたが、例えば、外部リセットと内部リセットで、ランダム延長時間の設定用レジスタと固定延長時間の設定用レジスタをそれぞれ一種類だけ備えるように構成し、外部リセットと内部リセットで、ランダム延長時間や固定延長時間を個別に設定することを禁止してもよい(共通の設定だけを許可してもよい)。   In the above example, the execution time of random extension processing (random extension time) and fixed extension processing (fixed extension time) included in the security mode can be freely set regardless of the reset factor. Configured to have only one random extension time setting register and one fixed extension time setting register for external reset and internal reset, and set random extension time and fixed extension time individually for external reset and internal reset. Setting may be prohibited (only common setting may be permitted).

図194は、本発明の基本概念を示した図である。本発明では、第1の事象に基づいて第2の事象を開始するときに、第1の事象が第1の要因に起因する場合と、第1の事象が第2の要因に起因する場合と、で第2の事象を開始するタイミングを異ならせることができる。   FIG. 194 is a diagram showing the basic concept of the present invention. In the present invention, when starting the second event based on the first event, the case where the first event is caused by the first factor and the case where the first event is caused by the second factor The timing for starting the second event can be varied.

例えば、上記図193を用いて説明したセキュリティモードの開始タイミングについて考えると、第1の事象(リセット)に基づいて第2の事象(セキュリティモード)を開始する場合に、第1の事象が第1の要因(外部システムリセット)に起因する場合と、第1の事象が第2の要因(内部システムリセット)に起因する場合と、で第2の事象(セキュリティモード)を開始するタイミングを異ならせることができる。このため、第1の要因(外部システムリセット)が発生してから第2の事象(セキュリティモード)が開始されるまでの時間C1を、第2の要因(内部システムリセット)が発生してから第2の事象(セキュリティモード)が開始されるまでの時間C2よりも長くしたり(C1>C2)、第1の要因(外部システムリセット)が発生してから第2の事象(セキュリティモード)が開始されるまでの時間C1を、第2の要因(内部システムリセット)が発生してから第2の事象(セキュリティモード)が開始されるまでの時間C2よりも短くすることができる。   For example, considering the start timing of the security mode described with reference to FIG. 193, when the second event (security mode) is started based on the first event (reset), the first event is the first event. The timing for starting the second event (security mode) differs depending on whether the first event is caused by an external system reset or if the first event is caused by a second factor (internal system reset). Can do. Therefore, the time C1 from the occurrence of the first factor (external system reset) to the start of the second event (security mode) is the same as the time C1 after the second factor (internal system reset) occurs. The second event (security mode) starts after the first event (external system reset) occurs or the time C2 is longer than the time C2 until the second event (security mode) starts (C1> C2) The time C1 until the second event (internal system reset) occurs can be made shorter than the time C2 until the second event (security mode) is started.

また、セキュリティモードを開始するタイミングを異ならせることができるため、その後に実行されるユーザモードを開始するタイミングも異ならせることも可能となる。例えば、第1の事象が第1の要因に起因する場合と、第1の事象が第2の要因に起因する場合と、でセキュリティモードの実行時間が同じであっても、セキュリティモードを開始するタイミングを異ならせれば、第1の事象が第1の要因に起因する場合と、第1の事象が第2の要因に起因する場合と、でユーザモードを開始するタイミングを異ならせることができる。   Moreover, since the timing which starts security mode can be varied, it is also possible to vary the timing which starts user mode performed after that. For example, the security mode is started even when the execution time of the security mode is the same between the case where the first event is caused by the first factor and the case where the first event is caused by the second factor. If the timing is different, the timing at which the user mode is started can be made different between the case where the first event is caused by the first factor and the case where the first event is caused by the second factor.

また、第1の事象が第1の要因に起因する場合と、第1の事象が第2の要因に起因する場合と、でセキュリティモードを開始するタイミングを異ならせなくても、セキュリティモードの実行時間を異ならせれば、第1の事象が第1の要因に起因する場合と、第1の事象が第2の要因に起因する場合と、でユーザモードを開始するタイミングを異ならせることができる。
<他の実施形態>
Also, the security mode can be executed without changing the timing of starting the security mode between the case where the first event is caused by the first factor and the case where the first event is caused by the second factor. If the times are different, the timing at which the user mode is started can be made different between the case where the first event is caused by the first factor and the case where the first event is caused by the second factor.
<Other embodiments>

次に、他の実施形態に係るパチンコ機について説明する。本実施形態に記載した複数の構成のうち、1つの構成に記載している内容を、他の構成に適用することでより遊技の幅を広げられる場合がある。   Next, a pachinko machine according to another embodiment will be described. In some cases, the contents described in one configuration among a plurality of configurations described in the present embodiment may be applied to other configurations to further widen the game.

例えば、図195(a)は、図2を用いて説明した電源基板182、払出基板170、および主基板156の接続例を示した図である。電源基板182は、RAMクリアスイッチ180と、このRAMクリアスイッチ180の操作が検出された場合に、検出信号を出力するための検出信号出力端子と、を備える。電源基板182のCPUは、RAMクリアスイッチ180の操作の有無を定期的に検出し、検出結果(例えば、操作ありの場合にはHレベルの信号、操作なしの場合にはLレベルの信号)を検出信号出力端子から払出基板170に向けて出力する。   For example, FIG. 195 (a) is a diagram showing a connection example of the power supply board 182, the payout board 170, and the main board 156 described with reference to FIG. The power supply board 182 includes a RAM clear switch 180 and a detection signal output terminal for outputting a detection signal when an operation of the RAM clear switch 180 is detected. The CPU of the power supply board 182 periodically detects whether or not the RAM clear switch 180 is operated, and outputs a detection result (for example, an H level signal when there is an operation and an L level signal when there is no operation). Output from the detection signal output terminal toward the dispensing substrate 170.

払出基板170は、電源基板182の検出信号出力端子に接続される検出信号入力端子と、この検出信号入力端子を介して取得したRAMクリアスイッチ180の操作情報を一時的に記憶するためのRAMクリアスイッチ操作情報一時憶手段171(例えば、RAM、CPUのレジスタ、フリップフロップ)と、このRAMクリアスイッチ操作情報一時憶手段171に記憶された操作情報を出力するための操作情報出力端子と、を備える。払出基板170のCPUは、電源投入後やシステムリセット後の初期処理などにおいて、検出信号入力端子に入力された信号を検出し、RAMクリアスイッチ180が操作されているか否かを示す操作情報(例えば、Hレベルの信号を検出した場合には操作ありを示す1の情報、Lレベルの信号を検出した場合には操作無しの情報を示す0の情報)をRAMクリアスイッチ操作情報一時憶手段171の所定記憶領域に記憶するとともに、当該操作情報に対応する情報(例えば、操作ありの操作情報の場合にはHレベルの信号、操作無しの操作情報の場合にはLレベルの信号)を操作情報出力端子から主基板156に向けて出力する。   The payout board 170 is a RAM clear for temporarily storing the detection signal input terminal connected to the detection signal output terminal of the power supply board 182 and the operation information of the RAM clear switch 180 acquired through the detection signal input terminal. Switch operation information temporary storage means 171 (for example, RAM, CPU register, flip-flop) and an operation information output terminal for outputting the operation information stored in the RAM clear switch operation information temporary storage means 171. . The CPU of the payout board 170 detects the signal input to the detection signal input terminal in the initial processing after power-on or system reset, and indicates operation information (for example, whether or not the RAM clear switch 180 is operated). When the H level signal is detected, the RAM clear switch operation information temporary storage 171 stores 1 information indicating that there is an operation and 0 information indicating that there is no operation when an L level signal is detected. The operation information is stored in a predetermined storage area and information corresponding to the operation information (for example, an H level signal in the case of operation information with an operation and an L level signal in the case of operation information without an operation) is output. Output from the terminal toward the main board 156.

主基板156は、払出基板170の操作情報出力端子に接続される操作情報入力端子(上述のI/O410)と、RAMクリアタイミング報知用LED155と、を備える。主基板156に搭載されたCPU304は、初期設定において、RAMクリアタイミング報知用LED155を点灯させた後に(RAMクリアが可能であることを報知した後に)、操作情報入力端子(I/O310)の入力信号を確認し、Hレベルの信号を検出した場合には、RAM308の所定領域の初期化(RAMクリア)を行う。   The main board 156 includes an operation information input terminal (the above-mentioned I / O 410) connected to the operation information output terminal of the payout board 170, and a RAM clear timing notification LED 155. The CPU 304 mounted on the main board 156 inputs the operation information input terminal (I / O 310) after turning on the RAM clear timing notification LED 155 in the initial setting (after notifying that the RAM can be cleared). When a signal is confirmed and an H level signal is detected, a predetermined area of the RAM 308 is initialized (RAM clear).

図196は、変形例に係る主制御部メイン処理の流れを示すフローチャートであり、上記図81に対応するフローチャートである。なお、図81に示すフローチャートと同一の部分については同一の符号を付し、その説明は省略する。また、図197は、主制御部メイン処理における初期設定2の流れを示すフローチャートである。   FIG. 196 is a flowchart showing the flow of the main process of the main control unit according to the modification, and is a flowchart corresponding to FIG. In addition, the same code | symbol is attached | subjected about the part same as the flowchart shown in FIG. 81, and the description is abbreviate | omitted. FIG. 197 is a flowchart showing the flow of initial setting 2 in the main process of the main control unit.

CPU304は、初期設定2のステップS128において、RAMクリアタイミング報知用LED155を点灯させた後に(RAMクリアが可能であることを報知した後に)、操作情報入力端子(I/O310)の入力信号を確認し、RAMクリアスイッチ180が操作されているか否かを示す操作情報(例えば、Hレベルの信号を検出した場合には操作ありを示す1の情報、Lレベルの信号を検出した場合には操作無しの情報を示す0の情報)をRAM308の所定記憶領域に記憶する。   In step S128 of the initial setting 2, the CPU 304 turns on the RAM clear timing notification LED 155 (after notifying that the RAM can be cleared), and then checks the input signal of the operation information input terminal (I / O 310). Operation information indicating whether or not the RAM clear switch 180 is operated (for example, 1 information indicating that there is an operation when an H level signal is detected, and no operation when an L level signal is detected) Is stored in a predetermined storage area of the RAM 308.

また、初期設定2の実行後のステップS109の判定処理では、最初に、RAM308に操作ありを示す1の情報が記憶されているか否かを判定し、該当する場合(RAMクリアが必要な場合)には、基本回路302を初期状態にすべくステップS113に進む。一方、操作なしを示す0の情報が記憶されている場合(RAMクリアが必要でない場合)には、RAM308に設けた電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、この電源ステータスの情報がサスペンドを示す情報であるか否かを判定する。そして、電源ステータスの情報がサスペンドを示す情報でない場合には、基本回路302を初期状態にすべくステップS113に進み、電源ステータスの情報がサスペンドを示す情報である場合には、RAM308の所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出し、算出したチェックサムの結果が特定の値(例えば0)であるか否か(チェックサムの結果が正常であるか否か)を判定する。そして、チェックサムの結果が特定の値(例えば0)の場合(チェックサムの結果が正常である場合)には電断前の状態に復帰すべくステップS111に進み、チェックサムの結果が特定の値(例えば0)以外である場合(チェックサムの結果が異常である場合)には、パチンコ機を初期状態にすべくステップS113に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS113に進む。   In the determination process in step S109 after the initial setting 2 is executed, first, it is determined whether or not 1 information indicating that there is an operation is stored in the RAM 308, and if applicable (when the RAM needs to be cleared). In step S113, the basic circuit 302 is initialized. On the other hand, when 0 information indicating no operation is stored (when RAM clear is not necessary), the power status information stored in the power status storage area provided in the RAM 308 is read, and the power status information is It is determined whether the information indicates suspend. If the power status information is not information indicating suspend, the process proceeds to step S113 to set the basic circuit 302 to an initial state. If the power status information is information indicating suspend, a predetermined area of the RAM 308 is set. A checksum is calculated by adding all the 1-byte data stored in (for example, all areas) to a 1-byte register whose initial value is 0, and the calculated checksum results in a specific value (for example, 0) (whether or not the checksum result is normal). When the checksum result is a specific value (eg, 0) (when the checksum result is normal), the process proceeds to step S111 to return to the state before the power interruption, and the checksum result is a specific value. If the value is other than 0 (for example, 0) (if the checksum result is abnormal), the process proceeds to step S113 to set the pachinko machine to an initial state. Similarly, when the power status information indicates information other than “suspend”, the process proceeds to step S113.

図195に戻って、同図(b)は、図195(a)に対応する従来の接続態様を示した図である。従来の接続態様では、主基板156において上述の固定延長時間として設定データ111B(約30秒)を設定した場合、セキュリティーモードが終了してユーザモードに移行し、遊技制御用プログラムが開始されるのは、最低でも約30秒後となる。このため、主基板156の遊技制御用プログラムにおいて操作情報入力端子(I/O410)に入力される信号を検出する構成を採用した場合、RAMクリアスイッチ180が最低でも約30秒以上操作され続けなければ、RAMクリアスイッチ180の操作の有無を検出することができない上に、外部からは、主基板156がRAMクリアスイッチ180の操作を検出するタイミングさえも知ることができない。   Returning to FIG. 195, FIG. 19 (b) is a diagram showing a conventional connection mode corresponding to FIG. 195 (a). In the conventional connection mode, when the setting data 111B (about 30 seconds) is set as the above-described fixed extension time on the main board 156, the security mode ends, the user mode is entered, and the game control program is started. Will be at least about 30 seconds later. For this reason, when the configuration for detecting the signal input to the operation information input terminal (I / O 410) is adopted in the game control program of the main board 156, the RAM clear switch 180 must be operated for at least about 30 seconds. For example, whether or not the RAM clear switch 180 is operated cannot be detected, and the timing at which the main board 156 detects the operation of the RAM clear switch 180 cannot be known from the outside.

これに対して、同図(a)に示す本実施形態に係る接続態様では、遊技店の店員などは、RAMクリアタイミング報知用LED155の点灯/消灯を確認することでRAMクリアが可能な状態か否かを即座に判断することができる。このため、RAMクリアタイミング報知用LED155の点灯を待ってRAMクリアスイッチ180を操作することで、確実にRAMクリアを行うことができる上に、RAMクリアスイッチ180を長時間に亘って操作し続けるような煩わしさからも解放され、利便性を高めることができる場合がある。また、RAMクリアタイミング報知用LED155の点灯前(CPU304の遊技制御用プログラムが開始される前に)にRAMクリアスイッチ180が操作されてしまった場合でも、払出基板170のCPUが起動していれば操作情報を払出基板170が記憶することが可能である。このため、主基板156は、払出基板170のRAMクリアスイッチ操作情報一時憶手段171に記憶された操作情報に基づいて、の遊技制御用プログラムの開始後にRAMクリアを確実に実行することができる場合がある。   On the other hand, in the connection mode according to the present embodiment shown in FIG. 6A, whether the store clerk or the like of the game shop can clear the RAM by confirming that the RAM clear timing notification LED 155 is turned on / off. It is possible to immediately determine whether or not. For this reason, the RAM clear switch 180 can be operated by waiting for the RAM clear timing notification LED 155 to be lit, and the RAM clear switch 180 can be operated for a long time. There is a case where it is freed from troublesomeness and convenience can be improved. Even if the RAM clear switch 180 is operated before the RAM clear timing notification LED 155 is turned on (before the game control program of the CPU 304 is started), the CPU of the payout board 170 is activated. The dispensing board 170 can store the operation information. Therefore, when the main board 156 can reliably execute the RAM clear after the start of the game control program based on the operation information stored in the RAM clear switch operation information temporary storage means 171 of the payout board 170. There is.

なお、本実施形態では、電源基板182、払出基板170、および主基板156の間の信号の入出力を入出力端子を介して行う例を示したが、例えば、通信線を介した制御コマンドの送受信によるものでもよい。また、RAMクリアスイッチ180は、電源基板182に配置される例に限定されず、例えば、払出基板170に配置してもよい。
<主制御部の他の命令>
In the present embodiment, an example in which input / output of signals between the power supply board 182, the payout board 170, and the main board 156 is performed via the input / output terminals is shown. It may be by transmission and reception. Further, the RAM clear switch 180 is not limited to the example arranged on the power supply board 182, and may be arranged on the payout board 170, for example.
<Other commands of main control unit>

次に、主制御部300が備える他の命令について説明する。なお、以降の説明において、「r」、「s」、「ss」、または「qq」は任意のレジスタを表す略号であり、「k」はTレジスタとペアになる下位アドレスを表す略号であり、「n」は8ビット長の数値(16進数)を表す略号であり、「mn」は16ビット長の数値(16進数)を表す略号であり、「( )」はカッコ内の値が示すアドレスのデータを表す略号である。
<他の命令/8ビットロード命令>
Next, other commands included in the main control unit 300 will be described. In the following description, “r”, “s”, “ss”, or “qq” is an abbreviation representing an arbitrary register, and “k” is an abbreviation representing a lower address paired with the T register. , “N” is an abbreviation representing an 8-bit numeric value (hexadecimal number), “mn” is an abbreviation representing a 16-bit numeric value (hexadecimal number), and “()” is a value in parentheses. An abbreviation for address data.
<Other instructions / 8-bit load instructions>

8ビットロード命令は、8ビット長のデータを所定記憶領域にロードする命令であり、例えば、LD命令、LDT命令、またはCLRT命令などが該当する。   The 8-bit load instruction is an instruction for loading 8-bit data into a predetermined storage area, and corresponds to, for example, an LD instruction, an LDT instruction, or a CLRT instruction.

例えば、(LD A,T)命令は、Tレジスタに記憶されたデータを、Aレジスタにロードする命令であり、(LD T,n)命令は、8ビット長の数値nを、Tレジスタにロードする命令である。   For example, the (LD A, T) instruction is an instruction for loading data stored in the T register into the A register, and the (LD T, n) instruction is for loading a numerical value n having an 8-bit length into the T register. It is an instruction to do.

(LDT A,(r))命令は、Tレジスタに記憶されたデータを上位バイト、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを下位バイトとするアドレスに記憶されたデータを、Aレジスタにロードする命令であり、(LDT A,(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを、Aレジスタにロードする命令であり、(LDT r,(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを、rで示されるレジスタ(B,C,D,E,H,L)にロードする命令である。   The (LDT A, (r)) instruction stores the data stored in the T register as the upper byte and the data stored in the register (A, B, C, D, E, H, L) indicated by r as the lower byte. (LDT A, (k)) instruction is an instruction for loading data stored in the T register into the upper byte, the register indicated by k. This is an instruction to load the data stored in the address having the data as the lower byte into the A register. The (LDT r, (k)) instruction is the register indicated by the upper byte, k, of the data stored in the T register. This is an instruction to load the data stored in the address having the data stored in the lower byte into the register (B, C, D, E, H, L) indicated by r.

(LDT (r),A)命令は、Aレジスタに記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを下位バイトとするアドレスにロードする命令であり、(LDT (k),A)命令は、Aレジスタに記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスにロードする命令であり、(LDT (k),r)命令は、rで示されるレジスタ(B,C,D,E,H,L)に記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスにロードする命令である。   The (LDT (r), A) instruction is the data stored in the A register, the data stored in the T register is the upper byte, and the registers (A, B, C, D, E, H, L indicated by r) (LDT (k), A) is an instruction to load data stored in the A register, data stored in the T register as upper bytes, This is an instruction to load the data stored in the register indicated by k into an address having a lower byte, and the (LDT (k), r) instruction is a register (B, C, D, E, H, This is an instruction to load data stored in L) into an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte.

(LDT (k),(ss))命令は、ssで示されるペアレジスタ(BC,DE,HL)に記憶されたデータが示すアドレスに記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスにロードする命令であり、(LDT (k),(HL+v))命令は、HLレジスタに記憶されたデータにvで示されるデータ(v=1〜7)を加算した加算結果が示すアドレスに記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスにロードする命令であり、(LDT (k),(HL+d))命令は、HLレジスタに記憶されたデータにdで示されるデータ(d=8〜127、−1〜−128)を加算した加算結果が示すアドレスに記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスにロードする命令であり、(LDT (ss),(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを、ssで示されるペアレジスタ(BC,DE,HL)に記憶されたデータが示すアドレスにロードする命令である。   The (LDT (k), (ss)) instruction is obtained by changing the data stored in the address indicated by the data stored in the pair register (BC, DE, HL) indicated by ss and the data stored in the T register. This is an instruction to load the data stored in the register indicated by byte k to the address having the lower byte, and the (LDT (k), (HL + v)) instruction is indicated by v in the data stored in the HL register. Data stored at the address indicated by the addition result of data (v = 1 to 7), the data stored in the T register as the upper byte, and the data stored in the register indicated by k as the lower byte The (LDT (k), (HL + d)) instruction is data indicated by d in the data stored in the HL register (d = 8 to 127, −1 to 128) is an instruction to load the data stored at the address indicated by the addition result of 128) into the address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. , (LDT (ss), (k)) instruction, the data stored in the address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte This is an instruction to load to the address indicated by the data stored in the indicated pair register (BC, DE, HL).

(LDT (HL+v),(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを、HLレジスタに記憶されたデータにvで示されるデータ(v=1〜7)を加算した加算結果が示すアドレスにロードする命令であり、(LDT (HL+d),(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを、HLレジスタに記憶されたデータにdで示されるデータ(d=8〜127、−1〜−128)を加算した加算結果が示すアドレスにロードする命令であり、(LDT (k),n)命令は、nで示される値を、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスにロードする命令である。   The (LDT (HL + v), (k)) instruction stores data stored in an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. This is an instruction to load the address indicated by the addition result obtained by adding the data indicated by v (v = 1 to 7) to the stored data, and the (LDT (HL + d), (k)) instruction is stored in the T register. The data stored in the address having the data stored in the register indicated by k as the upper byte, the data stored in the register indicated by k as the lower byte, and the data indicated by d in the data stored in the HL register (d = 8 to 127, − 1 to -128) is added to the address indicated by the addition result, and the (LDT (k), n) instruction is used to set the value indicated by n to the data stored in the T register. High byte data is an instruction to load the address of the lower byte data stored in the register indicated by k.

(CLRT (k))命令は、数値の0を、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスにロードする命令である。
<他の命令/16ビットロード命令>
The (CLRT (k)) instruction is an instruction to load a numerical value 0 to an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte.
<Other instructions / 16-bit load instructions>

16ビットロード命令は、16ビット長のデータを所定記憶領域にロードする命令であり、例えば、LDT命令、LDWT命令、CLR命令、CLRWT命令などが該当する。具体的には、(LDT BC,n)命令は、Tレジスタに記憶されたデータをBレジスタにロードし、かつ、nで示される数値をCレジスタにロードする命令であり、(LDT DE,n)命令は、Tレジスタに記憶されたデータをDレジスタにロードし、かつ、nで示される数値をEレジスタにロードする命令であり、(LDT HL,n)命令は、Tレジスタに記憶されたデータをHレジスタにロードし、かつ、nで示される数値をLレジスタにロードする命令である。   The 16-bit load instruction is an instruction for loading 16-bit data into a predetermined storage area, and corresponds to, for example, an LDT instruction, an LDWT instruction, a CLR instruction, a CLRWT instruction, and the like. Specifically, the (LDT BC, n) instruction is an instruction for loading data stored in the T register into the B register and loading a numerical value indicated by n into the C register, and (LDT DE, n ) Instruction is an instruction to load data stored in the T register into the D register and load a numerical value indicated by n into the E register, and the (LDT HL, n) instruction is stored in the T register. This is an instruction to load data into the H register and load a numerical value indicated by n into the L register.

(LDT IX,n)命令は、Tレジスタに記憶されたデータを16ビット長のIXレジスタの上位8ビットにロードし、かつ、nで示される数値を16ビット長のIXレジスタの下位8ビットにロードする命令であり、(LDT IY,n)命令は、Tレジスタに記憶されたデータを16ビット長のIYレジスタの上位バイトにロードし、かつ、nで示される数値を16ビット長のIYレジスタの下位バイトにロードする命令である。   The (LDT IX, n) instruction loads the data stored in the T register into the upper 8 bits of the 16-bit IX register, and sets the numerical value indicated by n to the lower 8 bits of the 16-bit IX register. The (LDT IY, n) instruction loads data stored in the T register into the upper byte of the 16-bit IY register, and the numerical value indicated by n is a 16-bit IY register. This is an instruction to load the lower byte of.

(LDT ss,(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを、ssで示されるペアレジスタ(BC,DE)の上位バイトにロードし、かつ、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに1を加算したアドレスに記憶されたデータを、ssで示されるペアレジスタ(BC,DE)の下位バイトにロードする命令である。   The (LDT ss, (k)) instruction is a pair indicated by ss with data stored at an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. Load the upper byte of the register (BC, DE) and store the data stored in the T register as the upper byte and the address stored in the register indicated by k as the lower byte plus 1 This is an instruction to load the read data into the lower byte of the pair register (BC, DE) indicated by ss.

(LDT qq,(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを、qqで示されるペアレジスタ(IX,IY)の上位バイトにロードし、かつ、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに1を加算したアドレスに記憶されたデータを、qqで示されるペアレジスタ(IX,IY)の下位バイトにロードする命令である。   The (LDT qq, (k)) instruction is a pair indicated by qq with data stored at an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. Load the upper byte of the register (IX, IY), store the data stored in the T register as the upper byte, and store the data stored in the register indicated by k as the lower byte. This is an instruction to load the read data into the lower byte of the pair register (IX, IY) indicated by qq.

(LDT HL,(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを、HLレジスタのLレジスタにロードし、かつTレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに1を加算したアドレスに記憶されたデータを、HLレジスタのHレジスタにロードする命令である。   The (LDT HL, (k)) instruction uses the data stored in the address stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. And the data stored in the address obtained by adding 1 to the address having the data stored in the T register as the upper byte, the data stored in the register indicated by k as the lower byte, and the H register of the HL register. Is an instruction to load.

(LDT (k),ss)命令は、ssで示されるペアレジスタ(BC,DE,HL)の下位バイトに記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスにロードし、かつssで示されるペアレジスタ(BC,DE,HL)の上位バイトに記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに1を加算したアドレスにロードする命令である。   The (LDT (k), ss) instruction is data stored in the lower byte of the pair register (BC, DE, HL) indicated by ss, data stored in the T register is higher byte, and register indicated by k The data stored in the upper byte of the pair register (BC, DE, HL) indicated by ss, the data stored in the T register as the upper byte, This is an instruction to load an address obtained by adding 1 to an address having the data stored in the register indicated by k as a lower byte.

(LDT (k),qq)命令は、qqで示されるペアレジスタ(IX,IY)の下位バイトに記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスにロードし、かつqqで示されるペアレジスタ(IX,IY)の上位バイトに記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに1を加算したアドレスにロードする命令である。   The (LDT (k), qq) instruction stores the data stored in the lower byte of the pair register (IX, IY) indicated by qq, the data stored in the T register as the upper byte, and the register indicated by k. The data stored in the upper byte of the pair register (IX, IY) indicated by qq, the data stored in the T register as the upper byte, and k This is an instruction to load an address obtained by adding 1 to an address having the data stored in the register as the lower byte.

(LDT (k),HL)命令は、Lレジスタに記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスにロードし、かつHレジスタに記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに1を加算したアドレスにロードする命令である。   The (LDT (k), HL) instruction loads data stored in the L register into an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. And an instruction to load data stored in the H register into an address obtained by adding 1 to an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. .

(LDWT (r),mn)命令は、Tレジスタに記憶されたデータを上位バイト、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを下位バイトとするアドレスにロードし、かつ16ビットの数値であるmn+1で示されるアドレスに記憶されたデータを、Tレジスタに記憶されたデータを上位バイト、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを下位バイトとするアドレスに1を加算したアドレスにロードする命令である。   The (LDWT (r), mn) instruction uses the data stored in the T register as the upper byte and the data stored in the register (A, B, C, D, E, H, L) indicated by r as the lower byte. The data stored in the address indicated by mn + 1, which is a 16-bit numerical value, the data stored in the T register as the upper byte, and the register indicated by r (A, B, C, D) , E, H, L) is an instruction to load an address obtained by adding 1 to an address having the data stored in the lower byte.

(CLR (ss))命令は、ssで示されるペアレジスタ(BC,DE)に数値の0を記憶する命令であり、(CLRW (ss))命令は、ssで示されるペアレジスタ(BC,DE,HL)に記憶されたデータが示すアドレスに数値の0を記憶するとともに、当該アドレスに1を加算したアドレスに数値の0を記憶する命令であり、(CLRW (qq))命令は、qqで示されるレジスタ(IX,IY)に記憶されたデータが示すアドレスに数値の0を記憶するとともに、当該アドレスに1を加算したアドレスに数値の0を記憶する命令であり、(CLRW (qq+d))命令は、qqで示されるレジスタ(IX,IY)に記憶されたデータにdで示されるデータ(d=8〜127、−1〜−128)を加算した加算結果が示すアドレスに、数値の0を記憶する命令である。   The (CLR (ss)) instruction is an instruction for storing a numerical value 0 in a pair register (BC, DE) indicated by ss, and the (CLRW (ss)) instruction is a pair register (BC, DE) indicated by ss. , HL) is an instruction that stores a numerical value 0 at the address indicated by the data stored in the data, and stores a numerical value 0 at an address obtained by adding 1 to the address. The (CLRW (qq)) instruction is qq This is an instruction for storing a numerical value 0 at an address indicated by data stored in the indicated register (IX, IY) and storing a numerical value 0 at an address obtained by adding 1 to the address, (CLRW (qq + d)) The instruction is an address indicated by an addition result obtained by adding data (d = 8 to 127, −1 to −128) indicated by d to data stored in the register (IX, IY) indicated by qq. In vinegar, it is an instruction to store the numeric 0.

(CLRT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに、数値の0を記憶する命令であり、(CLRWT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスにロードし、かつ、数値の0を、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに1を加算したアドレスに数値の0を記憶する命令である。   The (CLRT (k)) instruction is an instruction for storing a numerical value 0 at an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte, and (CLRWT (K)) The instruction loads the data stored in the T register to the upper byte, the data stored in the register indicated by k as the lower byte, and stores the numerical value 0 in the T register. This is an instruction for storing a numerical value of 0 at an address obtained by adding 1 to an address having the data stored as the upper byte and the data stored in the register indicated by k as the lower byte.

このように、ssで示されるレジスタ(BC,DE)や、qqで示されるレジスタ(IX,IY)は、(CLR (ss))命令、(CLRW (ss))命令、(CLRW (qq+d))命令のオペランドとして指定が可能である。一方、Tレジスタ(特殊レジスタ)は、CLRT命令またはCLRWT命令のオペランドとしてのみ指定が可能であることに加えて、オペランドの一部(本実施形態では、kで示されるアドレスの下位1バイト)は直値でのみ指定が可能である。このため、Tレジスタの値が予期せずに0にクリアされてしまったり、Tレジスタに予期しない値が記憶されてしまうような事態を未然に防止できる場合がある。
<他の命令/スタック操作命令>
As described above, the registers (BC, DE) indicated by ss and the registers (IX, IY) indicated by qq are (CLR (ss)) instruction, (CLRW (ss)) instruction, (CLRW (qq + d)). It can be specified as an instruction operand. On the other hand, the T register (special register) can be specified only as an operand of the CLRT instruction or the CLRWT instruction, and in addition, a part of the operand (the lower 1 byte of the address indicated by k in this embodiment) is It can only be specified as a direct value. For this reason, a situation in which the value of the T register is unexpectedly cleared to 0 or an unexpected value is stored in the T register may be prevented.
<Other instructions / stack manipulation instructions>

スタック操作命令は、スタック領域にデータを退避したり、スタック領域からデータを復帰したりするための命令であり、例えば、PUSH命令、POP命令などが該当する。   The stack operation instruction is an instruction for saving data in the stack area or restoring data from the stack area, and corresponds to, for example, a PUSH instruction, a POP instruction, and the like.

例えば、(PUSH ss)命令は、ssで示されるペアレジスタ(AF,BC,DE,HL)の上位バイトに記憶されたデータを、(SP(スタックポインタ)−1)で示されるアドレスに退避し、かつ、ssで示されるペアレジスタ(AF,BC,DE,HL)の下位バイトに記憶されたデータを、(SP−2)で示されるアドレスに退避した後に、SPから2を減算する命令である。また、(PUSH TI)命令は、Tレジスタに記憶されたデータを、(SP−1)で示されるアドレスに退避し、かつ、Iレジスタに記憶されたデータを、(SP−2)で示されるアドレスに退避した後に、SPから2を減算する命令である。また、(PUSH qq)命令は、qqで示されるペアレジスタ(IX,IY)の上位バイトに記憶されたデータを、(SP−1)で示されるアドレスに退避し、かつ、qqで示されるペアレジスタ(IX,IY)の下位バイトに記憶されたデータを、(SP−2)で示されるアドレスに退避した後に、SPから2を減算する命令である。   For example, the (PUSH ss) instruction saves the data stored in the upper byte of the pair register (AF, BC, DE, HL) indicated by ss to the address indicated by (SP (stack pointer) -1). An instruction that subtracts 2 from SP after saving the data stored in the lower byte of the pair register (AF, BC, DE, HL) indicated by ss to the address indicated by (SP-2). is there. The (PUSH TI) instruction saves the data stored in the T register to the address indicated by (SP-1), and the data stored in the I register is indicated by (SP-2). This instruction subtracts 2 from SP after saving to an address. The (PUSH qq) instruction saves the data stored in the upper byte of the pair register (IX, IY) indicated by qq to the address indicated by (SP-1), and the pair indicated by qq. This instruction subtracts 2 from SP after saving the data stored in the lower byte of the register (IX, IY) to the address indicated by (SP-2).

(PUSH ALL)命令は、全てのレジスタ(T,I,A,F,B,C,D,E,H,L,IXの上位バイト,IXの下位バイト,IYの上位バイト,IYの下位バイト)に記憶されたデータを、この順番で1バイトずつスタック領域に退避した後に、SPから14(レジスタの総数)を減算する命令である。また、(PUSH GPR)命令は、一部のレジスタ(A,F,B,C,D,E,H,L)に記憶されたデータを、この順番で1バイトずつスタック領域に退避した後に、SPから8を減算する命令である。   (PUSH ALL) instruction is for all registers (T, I, A, F, B, C, D, E, H, L, IX high byte, IX low byte, IY high byte, IY low byte This is an instruction for subtracting 14 (total number of registers) from SP after saving the data stored in () in the stack area byte by byte in this order. In addition, the (PUSH GPR) instruction saves data stored in some registers (A, F, B, C, D, E, H, L) one byte at a time in this order, This is an instruction to subtract 8 from SP.

(POP ss)命令は、SPで示されるアドレスに記憶されたデータを、ssで示されるペアレジスタ(AF,BC,DE,HL)の上位バイトに復帰し、かつ、(SP+1)で示されるアドレスに記憶されたデータを、ssで示されるペアレジスタ(AF,BC,DE,HL)の下位バイトに復帰した後に、SPに2を加算する命令である。また、(POP TI)命令は、SPで示されるアドレスに記憶されたデータを、Iレジスタに復帰し、かつ、(SP+1)で示されるアドレスに記憶されたデータを、Tレジスタに復帰した後に、SPに2を加算する命令である。また、(POP qq)命令は、SPで示されるアドレスに記憶されたデータを、qqで示されるペアレジスタ(IX,IY)の下位バイトに復帰し、かつ、(SP+1)で示されるアドレスに記憶されたデータを、qqで示されるペアレジスタ(IX,IY)の上位バイトに復帰した後に、SPに2を加算する命令である。   The (POP ss) instruction restores the data stored at the address indicated by SP to the upper byte of the pair register (AF, BC, DE, HL) indicated by ss and the address indicated by (SP + 1) This is an instruction to add 2 to SP after the data stored in is restored to the lower byte of the pair register (AF, BC, DE, HL) indicated by ss. The (POP TI) instruction returns the data stored at the address indicated by SP to the I register and returns the data stored at the address indicated by (SP + 1) to the T register. This is an instruction to add 2 to SP. The (POP qq) instruction restores the data stored at the address indicated by SP to the lower byte of the pair register (IX, IY) indicated by qq and stores it at the address indicated by (SP + 1). This is an instruction to add 2 to SP after the restored data is restored to the upper byte of the pair register (IX, IY) indicated by qq.

(POP ALL)命令は、SP、(SP+1)、…、(SP+12)、(SP+13)に記憶されたデータを、この順番で全てのレジスタ(IYの下位バイト,IYの上位バイト,IXの下位バイト,IXの上位バイト,L,H,E,D,C,B,F,A,I,T)に1バイトずつ復帰(IYの下位バイト←(SP)、IYの上位バイト←(SP+1)、…、I←(SP+12)、T←(SP+13))した後に、SPに14を加算する命令である。また、(POP GPR)命令は、SP、(SP+1)、…、(SP+6)、(SP+7)に記憶されたデータを、この順番で一部のレジスタ(L,H,E,D,C,B,F,A)に1バイトずつ復帰(L←(SP)、H←(SP+1)、…、F←(SP+6)、A←(SP+7))した後に、SPに8を加算する命令である。
<他の命令/算術論理演算命令>
The (POP ALL) instruction reads the data stored in SP, (SP + 1),..., (SP + 12), (SP + 13) in this order in all registers (lower byte of IY, upper byte of IY, lower byte of IX). , IX, upper byte, L, H, E, D, C, B, F, A, I, T) one byte at a time (lower byte of IY ← (SP), upper byte of IY ← (SP + 1), ..., I ← (SP + 12), T ← (SP + 13)), and then an instruction to add 14 to SP. In addition, the (POP GPR) instruction is used to store data stored in SP, (SP + 1),..., (SP + 6), (SP + 7) in this order in some registers (L, H, E, D, C, B). , F, A) is an instruction for adding 8 to SP after returning one byte at a time (L ← (SP), H ← (SP + 1),..., F ← (SP + 6), A ← (SP + 7)).
<Other instructions / arithmetic logic operation instructions>

算術論理演算命令は、各種の論理演算を行うための命令であり、例えば、ADD命令、SUB命令、ANDT命令、ORT命令、XORT命令、CPT命令、INC命令、INCT命令、INCWT命令、DEC命令、DECT命令、DECWT命令などが該当する。   The arithmetic logic operation instruction is an instruction for performing various logic operations. For example, an ADD instruction, a SUB instruction, an ANDT instruction, an ORT instruction, an XORT instruction, a CPT instruction, an INC instruction, an INCT instruction, an INCWT instruction, a DEC instruction, A DECT instruction, a DECWT instruction, and the like are applicable.

例えば、(ADD A,r)命令は、Aレジスタに記憶されたデータと、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを加算し、加算結果をAレジスタに記憶する命令であり、(ADDT r,(k))命令は、rで示されるレジスタ(B,C,D,E,H,L)に記憶されたデータと、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを加算し、加算結果をrで示されるレジスタ(B,C,D,E,H,L)に記憶する命令である。   For example, the (ADD A, r) instruction adds the data stored in the A register and the data stored in the register (A, B, C, D, E, H, L) indicated by r, and adds This is an instruction for storing the result in the A register. The (ADDT r, (k)) instruction stores the data stored in the register (B, C, D, E, H, L) indicated by r and the T register. The stored data is added to the upper byte, the data stored in the address having the data stored in the register indicated by k as the lower byte, and the addition result is added to the register (B, C, D, E, H, L).

例えば、(SUB r)命令は、Aレジスタに記憶されたデータから、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを減算し、減算結果をAレジスタに記憶する命令であり、(SUBT r,(k))命令は、rで示されるレジスタ(B,C,D,E,H,L)に記憶されたデータから、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを減算し、減算結果をrで示されるレジスタ(B,C,D,E,H,L)に記憶する命令である。   For example, the (SUB r) instruction subtracts the data stored in the register (A, B, C, D, E, H, L) indicated by r from the data stored in the A register. This is an instruction to be stored in the A register. The (SUBT r, (k)) instruction is stored in the T register from the data stored in the register (B, C, D, E, H, L) indicated by r. The data stored in the address having the data stored in the register indicated by k as the upper byte and the data stored in the register indicated by k as the lower byte are subtracted, and the subtraction result is indicated by the register (B, C, D, E, H, L) is an instruction to be stored.

例えば、(ANDT (k))命令は、Aレジスタに記憶されたデータと、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータと、の論理積(AND)を算出し、演算結果をAレジスタに記憶する命令であり、(ANDT r,(k))命令は、rで示されるレジスタ(B,C,D,E,H,L)に記憶されたデータと、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータと、の論理積(AND)を算出し、演算結果をrで示されるレジスタ(B,C,D,E,H,L)に記憶する命令である。   For example, the (ANDT (k)) instruction is stored in an address having the data stored in the A register, the data stored in the T register as the upper byte, and the data stored in the register indicated by k as the lower byte. Is an instruction that calculates a logical product (AND) of the data and stores the operation result in the A register. The (ANDT r, (k)) instruction is a register (B, C, D, E) indicated by r. , H, L) and the data stored in the address stored in the address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte ( AND), and the operation result is stored in a register (B, C, D, E, H, L) indicated by r.

(ORT (k))命令は、Aレジスタに記憶されたデータと、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータと、の論理和(OR)を算出し、演算結果をAレジスタに記憶する命令であり、(ORT r,(k))命令は、rで示されるレジスタ(B,C,D,E,H,L)に記憶されたデータと、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータと、の論理和(OR)を算出し、演算結果をrで示されるレジスタ(B,C,D,E,H,L)記憶する命令である。   The (ORT (k)) instruction is data stored in an address having the data stored in the A register, the data stored in the T register as the upper byte, and the data stored in the register indicated by k as the lower byte. And (ORT r, (k)) instructions are registers (B, C, D, E, H) indicated by r. , L) and the data stored at the address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte (OR) And the operation result is stored in a register (B, C, D, E, H, L) indicated by r.

(XORT (k))命令は、Aレジスタに記憶されたデータと、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータと、の排他的論理和(XOR)を算出し、演算結果をAレジスタに記憶する命令であり、(XORT r,(k))命令は、rで示されるレジスタ(B,C,D,E,H,L)に記憶されたデータと、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータと、の排他的論理和(XOR)を算出し、演算結果をrで示されるレジスタ(B,C,D,E,H,L)に記憶する命令である。   The (XORT (k)) instruction is data stored in an address having the data stored in the A register, the data stored in the T register as the upper byte, and the data stored in the register indicated by k as the lower byte. And an XORT r, (k) instruction is a register (B, C, D, E) indicated by r. , H, L) and the data stored in the address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. This is an instruction for calculating a sum (XOR) and storing the operation result in a register (B, C, D, E, H, L) indicated by r.

(CPT (k))命令は、Aレジスタに記憶されたデータから、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを減算し、演算結果がオーバーフローした場合に所定のフラグを1にセットする一方で、オーバーフローしなかった場合に所定のフラグを0にクリアするとともに、Sフラグ、Zフラグ、TZフラグ、Hフラグ、またはキャリーフラグ(Cフラグ)に記憶された値を0から1(または1から0)に変化させる命令である。(CPT r,(k))命令は、rで示されるレジスタ(B,C,D,E,H,L)に記憶されたデータから、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを減算し、演算結果がオーバーフローした場合に所定のフラグを1にセットする一方で、オーバーフローしなかった場合に所定のフラグを0にクリアするとともに、Sフラグ、Zフラグ、TZフラグ、Hフラグ、またはキャリーフラグ(Cフラグ)に記憶された値を0から1(または1から0)に変化させる命令である。   The (CPT (k)) instruction is the data stored in the address stored in the A register with the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. When the calculation result overflows, the predetermined flag is set to 1, while when the calculation result does not overflow, the predetermined flag is cleared to 0, and the S flag, Z flag, TZ flag, H flag, Alternatively, it is an instruction for changing the value stored in the carry flag (C flag) from 0 to 1 (or from 1 to 0). The (CPT r, (k)) instruction indicates the data stored in the T register from the data stored in the register (B, C, D, E, H, L) indicated by r by the upper byte, k. The data stored in the address stored in the register is subtracted from the data stored in the lower byte. When the operation result overflows, the predetermined flag is set to 1. On the other hand, when the overflow does not occur, the predetermined flag is set. This instruction clears the value to 0 and changes the value stored in the S flag, Z flag, TZ flag, H flag, or carry flag (C flag) from 0 to 1 (or from 1 to 0).

(INC T)命令は、Tレジスタに記憶されたデータに1を加算する命令であり、(INCT (r))命令は、Tレジスタに記憶されたデータを上位バイト、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを下位バイトとするアドレスに記憶されたデータに1を加算する命令であり、(INCT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータに1を加算する命令である。また、(INCWT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスと、当該アドレスに1を加算したアドレスに記憶された2バイト長のデータに1を加算する命令である。   The (INC T) instruction is an instruction for adding 1 to the data stored in the T register, and the (INCT (r)) instruction is used to store the data stored in the T register as an upper byte and a register (A , B, C, D, E, H, L) is an instruction for adding 1 to the data stored in the address having the lower byte as the data stored therein, and the (INCT (k)) instruction is stored in the T register. This is an instruction to add 1 to the data stored at the address having the stored data as the upper byte and the data stored in the register indicated by k as the lower byte. In addition, the (INCWT (k)) instruction stores the data stored in the T register as the upper byte, the address stored in the register indicated by k as the lower byte, and the address obtained by adding 1 to the address. This is an instruction for adding 1 to the 2-byte data.

(DEC T)命令は、Tレジスタに記憶されたデータから1を減算する命令であり、(DECT (r))命令は、Tレジスタに記憶されたデータを上位バイト、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを下位バイトとするアドレスに記憶されたデータから1を減算する命令であり、(DECT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータから1を減算する命令である。また、(INCWT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスと、当該アドレスに1を加算したアドレスに記憶された2バイト長のデータから1を減算する命令である。   The (DEC T) instruction is an instruction for subtracting 1 from the data stored in the T register, and the (DECT (r)) instruction is used to store the data stored in the T register in the upper byte, the register (A , B, C, D, E, H, L) is an instruction for subtracting 1 from the data stored in the address having the lower byte as the data stored therein, and the (DECT (k)) instruction is stored in the T register. This is an instruction for subtracting 1 from data stored at an address having stored data as an upper byte and data stored in a register indicated by k as a lower byte. In addition, the (INCWT (k)) instruction stores the data stored in the T register as the upper byte, the address stored in the register indicated by k as the lower byte, and the address obtained by adding 1 to the address. This is an instruction to subtract 1 from the 2-byte data.

<他の命令/ローテート シフト命令>   <Other instructions / Rotate shift instructions>

算術論理演算命令は、各種の論理演算を行うための命令であり、例えば、RLC命令、RLCT命令、RRC命令、RRCT命令、RL命令、RLT命令、RR命令、RRT命令、SLA命令、SLAT命令、SRA命令、SRAT命令、SRL命令、SRLT命令などが該当する。   Arithmetic logical operation instructions are instructions for performing various logical operations. For example, RLC instruction, RLCT instruction, RRC instruction, RRCT instruction, RL instruction, RLT instruction, RR instruction, RRT instruction, SLA instruction, SLAT instruction, An SRA instruction, SRAT instruction, SRL instruction, SRLT instruction, and the like are applicable.

例えば、(RLC r)命令は、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを左に(LSBからMSB側に)1ビットだけローテートし、MSBからシフトアウトされたビットをLSBとキャリーフラグに記憶する命令であり、(RLC (HL))命令は、HLレジスタに記憶されたデータを左に1ビットだけローテートし、MSBからシフトアウトされたビットをLSBとキャリーフラグに記憶する命令であり、(RLC (qq+d))命令は、qqで示されるレジスタ(IX,IY)に記憶されたデータにdで示されるデータ(d=8〜127、−1〜−128)を加算した加算結果が示すアドレスに記憶されたデータを左に1ビットだけローテートし、MSBからシフトアウトされたビットをLSBとキャリーフラグに記憶する命令であり、(RLCT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを左に1ビットだけローテートし、MSBからシフトアウトされたビットをLSBとキャリーフラグに記憶する命令である。   For example, the (RLC r) instruction rotates the data stored in the register (A, B, C, D, E, H, L) indicated by r by 1 bit to the left (from the LSB to the MSB side) This instruction stores the bits shifted out from the MSB in the LSB and the carry flag. The (RLC (HL)) instruction rotates the data stored in the HL register to the left by 1 bit and is shifted out from the MSB. The bit is stored in the LSB and the carry flag. The (RLC (qq + d)) instruction is data stored in the register (IX, IY) indicated by qq (d = 8 to 127, −1 to −128) is added, the data stored at the address indicated by the addition result is rotated left by 1 bit, and the bit shifted out from the MSB is LSB (RLCT (k)) instruction is data stored in an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. Is rotated to the left by 1 bit, and the bit shifted out from the MSB is stored in the LSB and carry flag.

(RRC r)命令は、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを右に(MSBからLSB側に)1ビットだけローテートし、LSBからシフトアウトされたビットをMSBとキャリーフラグに記憶する命令であり、(RRC (HL))命令は、HLレジスタに記憶されたデータを右に1ビットだけローテートし、LSBからシフトアウトされたビットをMSBとキャリーフラグに記憶する命令であり、(RRC (qq+d))命令は、qqで示されるレジスタ(IX,IY)に記憶されたデータにdで示されるデータ(d=8〜127、−1〜−128)を加算した加算結果が示すアドレスに記憶されたデータを右に1ビットだけローテートし、LSBからシフトアウトされたビットをMSBとキャリーフラグに記憶する命令であり、(RRCT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを右に1ビットだけローテートし、LSBからシフトアウトされたビットをMSBとキャリーフラグに記憶する命令である。   The (RRC r) instruction rotates the data stored in the register (A, B, C, D, E, H, L) indicated by r to the right (from the MSB to the LSB side) by 1 bit, and from the LSB This instruction stores the shifted out bits in the MSB and carry flag. The (RRC (HL)) instruction rotates the data stored in the HL register to the right by 1 bit, and shifts the bits shifted out from the LSB. This is an instruction stored in the MSB and carry flag, and the (RRC (qq + d)) instruction is data indicated by d (d = 8 to 127, −1) in data stored in the register (IX, IY) indicated by qq. The data stored at the address indicated by the addition result is rotated by 1 bit to the right, and the bit shifted out from the LSB is carried with the MSB. (RRCT (k)) instruction stores data stored in an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. This instruction rotates to the right by one bit and stores the bits shifted out from the LSB in the MSB and carry flag.

(RL r)命令は、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを左に(LSBからMSB側に)1ビットだけローテートし、キャリーフラグに記憶されていたビットをLSBに記憶し、MSBからシフトアウトされたビットをキャリーフラグに記憶する命令であり、(RL (HL))命令は、HLレジスタに記憶されたデータを左に1ビットだけローテートし、キャリーフラグに記憶されていたビットをLSBに記憶し、MSBからシフトアウトされたビットをキャリーフラグに記憶する命令であり、(RL (qq+d))命令は、qqで示されるレジスタ(IX,IY)に記憶されたデータにdで示されるデータ(d=8〜127、−1〜−128)を加算した加算結果が示すアドレスに記憶されたデータを左に1ビットだけローテートし、キャリーフラグに記憶されていたビットをLSBに記憶し、MSBからシフトアウトされたビットをキャリーフラグに記憶する命令であり、(RLT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを左に1ビットだけローテートし、キャリーフラグに記憶されていたビットをLSBに記憶し、MSBからシフトアウトされたビットをキャリーフラグに記憶する命令である。   The (RL r) instruction rotates the data stored in the register (A, B, C, D, E, H, L) indicated by r to the left (from the LSB to the MSB side) by 1 bit, and carries the carry flag. The bit stored in the LSB is stored in the LSB, and the bit shifted out from the MSB is stored in the carry flag. The (RL (HL)) instruction stores the data stored in the HL register 1 bit to the left. The bit stored in the carry flag is stored in the LSB, and the bit shifted out from the MSB is stored in the carry flag. The (RL (qq + d)) instruction is a register ( IX, IY) is stored in the address indicated by the addition result obtained by adding the data indicated by d (d = 8 to 127, −1 to −128). Is rotated to the left by 1 bit, the bit stored in the carry flag is stored in the LSB, and the bit shifted out from the MSB is stored in the carry flag. The (RLT (k)) instruction is Rotate the data stored in the address with the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte by one bit to the left, and change the bit stored in the carry flag. This is an instruction to store in the carry flag the bits that are stored in the LSB and shifted out from the MSB.

(RR r)命令は、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを右に(MSBからLSB側に)1ビットだけローテートし、キャリーフラグに記憶されていたビットをMSBに記憶し、LSBからシフトアウトされたビットをキャリーフラグに記憶する命令であり、(RR (HL))命令は、HLレジスタに記憶されたデータを右に1ビットだけローテートし、キャリーフラグに記憶されていたビットをMSBに記憶し、LSBからシフトアウトされたビットをキャリーフラグに記憶する命令であり、(RR (qq+d))命令は、qqで示されるレジスタ(IX,IY)に記憶されたデータにdで示されるデータ(d=8〜127、−1〜−128)を加算した加算結果が示すアドレスに記憶されたデータを右に1ビットだけローテートし、キャリーフラグに記憶されていたビットをMSBに記憶し、LSBからシフトアウトされたビットをキャリーフラグに記憶する命令であり、(RRT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを右に1ビットだけローテートし、キャリーフラグに記憶されていたビットをMSBに記憶し、LSBからシフトアウトされたビットをキャリーフラグに記憶する命令である。   The (RR r) instruction rotates the data stored in the register (A, B, C, D, E, H, L) indicated by r by 1 bit to the right (from the MSB to the LSB side), and carries the carry flag. The bit stored in the MSB is stored in the MSB, and the bit shifted out from the LSB is stored in the carry flag. The (RR (HL)) instruction stores the data stored in the HL register 1 bit to the right. Only the bit stored in the carry flag is stored in the MSB, and the bit shifted out from the LSB is stored in the carry flag. The (RR (qq + d)) instruction is a register ( IX, IY) is stored in the address indicated by the addition result obtained by adding the data indicated by d (d = 8 to 127, −1 to −128). Is rotated to the right by 1 bit, the bit stored in the carry flag is stored in the MSB, and the bit shifted out from the LSB is stored in the carry flag. The (RRT (k)) instruction is Rotate the data stored in the address with the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte by one bit to the right, and change the bit stored in the carry flag. This is an instruction to store in MSB the bit shifted out from LSB in the carry flag.

(SLA r)命令は、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを左に(LSBからMSB側に)1ビットだけシフトし、MSBからシフトアウトされたビットをキャリーフラグに記憶し、LSBに0を記憶する命令であり、(SLA (HL))命令は、HLレジスタに記憶されたデータを左に1ビットだけシフトし、MSBからシフトアウトされたビットをキャリーフラグに記憶し、LSBに0を記憶する命令であり、(SLA (qq+d))命令は、qqで示されるレジスタ(IX,IY)に記憶されたデータにdで示されるデータ(d=8〜127、−1〜−128)を加算した加算結果が示すアドレスに記憶されたデータを左に1ビットだけシフトし、MSBからシフトアウトされたビットをキャリーフラグに記憶し、LSBに0を記憶する命令であり、(SLAT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを左に1ビットだけシフトし、MSBからシフトアウトされたビットをキャリーフラグに記憶し、LSBに0を記憶する命令である。   The (SLA r) instruction shifts the data stored in the register (A, B, C, D, E, H, L) indicated by r by 1 bit to the left (from the LSB to the MSB side), and from the MSB. This instruction stores the shifted out bit in the carry flag and stores 0 in the LSB. The (SLA (HL)) instruction shifts the data stored in the HL register by 1 bit to the left and shifts from the MSB. This is an instruction for storing the out bit in the carry flag and storing 0 in the LSB. The (SLA (qq + d)) instruction is indicated by d in the data stored in the register (IX, IY) indicated by qq. Data stored at the address indicated by the addition result of data (d = 8 to 127, −1 to −128) is shifted left by 1 bit, and the bits shifted out from the MSB are keyed. The instruction is stored in the Lee flag and 0 is stored in the LSB. The (SLAT (k)) instruction uses the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. This is an instruction to shift the data stored in the address by 1 bit to the left, store the bit shifted out from the MSB in the carry flag, and store 0 in the LSB.

(SRA r)命令は、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを右に(MSBからLSB側に)1ビットだけシフトし、LSBからシフトアウトされたビットをキャリーフラグに記憶し、MSBに直前のMSBの値を記憶する命令であり、(SLA (HL))命令は、HLレジスタに記憶されたデータを右に1ビットだけシフトし、LSBからシフトアウトされたビットをキャリーフラグに記憶し、MSBに直前のMSBの値を記憶する命令であり、(SLA (qq+d))命令は、qqで示されるレジスタ(IX,IY)に記憶されたデータにdで示されるデータ(d=8〜127、−1〜−128)を加算した加算結果が示すアドレスに記憶されたデータを右に1ビットだけシフトし、LSBからシフトアウトされたビットをキャリーフラグに記憶し、MSBに直前のMSBの値を記憶する命令であり、(SLAT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを右に1ビットだけシフトし、LSBからシフトアウトされたビットをキャリーフラグに記憶し、MSBに直前のMSBの値を記憶する命令である。   The (SRAR) instruction shifts the data stored in the register (A, B, C, D, E, H, L) indicated by r to the right (from the MSB to the LSB side) by 1 bit, and from the LSB This is an instruction to store the shifted out bit in the carry flag and store the previous MSB value in the MSB. The (SLA (HL)) instruction shifts the data stored in the HL register by 1 bit to the right. , The bit shifted out from the LSB is stored in the carry flag, and the MSB value is stored in the MSB. The (SLA (qq + d)) instruction is stored in the register (IX, IY) indicated by qq. The data stored at the address indicated by the addition result obtained by adding the data indicated by d (d = 8 to 127, −1 to −128) to the generated data is shifted to the right by 1 bit, and from the LSB The bit stored in the carry flag is stored in the carry flag, and the value of the previous MSB is stored in the MSB. The (SLAT (k)) instruction stores the data stored in the T register in the upper byte, a register indicated by k. An instruction that shifts data stored in the address having the data stored in the lower byte by 1 bit to the right, stores the bit shifted out from the LSB in the carry flag, and stores the previous MSB value in the MSB It is.

(SRL r)命令は、rで示されるレジスタ(A,B,C,D,E,H,L)に記憶されたデータを右に(MSBからLSB側に)1ビットだけシフトし、LSBからシフトアウトされたビットをキャリーフラグに記憶し、MSBに0を記憶する命令であり、(SRL (HL))命令は、HLレジスタに記憶されたデータを右に1ビットだけシフトし、LSBからシフトアウトされたビットをキャリーフラグに記憶し、MSBに0を記憶する命令であり、(SRL (qq+d))命令は、qqで示されるレジスタ(IX,IY)に記憶されたデータにdで示されるデータ(d=8〜127、−1〜−128)を加算した加算結果が示すアドレスに記憶されたデータを右に1ビットだけシフトし、LSBからシフトアウトされたビットをキャリーフラグに記憶し、MSBに0を記憶する命令であり、(SRLT (k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを右に1ビットだけシフトし、LSBからシフトアウトされたビットをキャリーフラグに記憶し、MSBに0を記憶する命令である。
<他の命令/ビット操作命令>
The (SRL r) instruction shifts the data stored in the register (A, B, C, D, E, H, L) indicated by r by 1 bit to the right (from the MSB to the LSB side), and from the LSB This instruction stores the shifted-out bit in the carry flag and stores 0 in the MSB. The (SRL (HL)) instruction shifts the data stored in the HL register to the right by 1 bit and shifts from the LSB. This is an instruction to store the out bit in the carry flag and store 0 in the MSB. The (SRL (qq + d)) instruction is indicated by d in the data stored in the register (IX, IY) indicated by qq. The data stored at the address indicated by the addition result of data (d = 8 to 127, −1 to −128) is shifted to the right by 1 bit, and the bit shifted out from the LSB is captured. -An instruction to store in the flag and 0 in the MSB. The (SRLT (k)) instruction uses the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. This is an instruction to shift data stored in the address by 1 bit to the right, store the bit shifted out from the LSB in the carry flag, and store 0 in the MSB.
<Other instructions / bit manipulation instructions>

ビット操作命令は、ビット単位で各種の操作を行うための命令であり、例えば、BITT命令、SETT命令、REST命令などが該当する。   The bit operation instruction is an instruction for performing various operations in bit units, and corresponds to, for example, a BITT instruction, a SETT instruction, a REST instruction, and the like.

例えば、(BITT b,(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを反転して所定のフラグに記憶する命令であり、(SETT b,(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータに1をセットする命令であり、(REST b,(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータに0をセットする命令である。
<他の命令/演算&ジャンプ命令>
For example, the (BITT b, (k)) instruction inverts data stored at an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. The (SETT b, (k)) instruction is an instruction that sets the data stored in the T register to the upper byte and 1 stored in the data stored in the register indicated by k. The (REST b, (k)) instruction is an instruction to set 0 to data stored in an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. is there.
<Other instructions / arithmetic & jump instructions>

演算&ジャンプ命令は、演算と当該演算の演算結果に基づく分岐処理を行うための命令であり、例えば、JCPT命令や、JTT命令や、JBITT命令などが該当する。   The calculation & jump instruction is an instruction for performing a branch process based on the calculation and the calculation result of the calculation, and corresponds to, for example, a JCPT instruction, a JTT instruction, a JBITT instruction, or the like.

例えば、(JCPT Z,A、(k),e)命令は、Aレジスタに記憶されたデータから、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを減算し、Zフラグが1の場合にはeで示されるアドレスをPC(プログラムカウンタ)にロードし(eで示されるアドレスに分岐し)、Zフラグが0の場合には後続の命令を実行させる命令であり、(JCPT NZ,A、(k),e)命令は、Aレジスタに記憶されたデータから、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを減算し、Zフラグが0の場合にはeで示されるアドレスをPC(プログラムカウンタ)にロードし(eで示されるアドレスに分岐し)、Zフラグが1の場合には後続の命令を実行させる命令である。   For example, the instruction (JCPT Z, A, (k), e), from the data stored in the A register, the data stored in the T register is the upper byte, and the data stored in the register indicated by k is the lower byte. When the Z flag is 1, when the Z flag is 1, the address indicated by e is loaded into the PC (program counter) (branch to the address indicated by e), and the Z flag is 0 In this case, it is an instruction to execute a subsequent instruction. The instruction (JCPT NZ, A, (k), e) is obtained by changing the data stored in the T register from the data stored in the A register with the upper byte, k. The data stored in the address stored in the indicated register is subtracted from the address stored in the lower byte. If the Z flag is 0, the address indicated by e is set in the PC (program counter). It is an instruction to load (branch to an address indicated by e) and execute the subsequent instruction when the Z flag is 1.

(JCPT C,A、(k),e)命令は、Aレジスタに記憶されたデータから、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを下位バイトとするアドレスに記憶されたデータを減算し、キャリーフラグが1の場合にはeで示されるアドレスをPC(プログラムカウンタ)にロードし(eで示されるアドレスに分岐し)、キャリーフラグが0の場合には後続の命令を実行させる命令であり、(JCPT NC,A、(k),e)命令は、Aレジスタに記憶されたデータから、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータを減算し、キャリーフラグが0の場合にはeで示されるアドレスをPC(プログラムカウンタ)にロードし(eで示されるアドレスに分岐し)、キャリーフラグが1の場合には後続の命令を実行させる命令である。   In the (JCPT C, A, (k), e) instruction, from the data stored in the A register, the data stored in the T register is the upper byte, and the data stored in the register indicated by k is the lower byte. The data stored in the address having the data stored in the address as the lower byte is subtracted, and when the carry flag is 1, the address indicated by e is loaded into the PC (program counter) (to the address indicated by e) Branch), and when the carry flag is 0, it is an instruction for executing the subsequent instruction. The instruction (JCPT NC, A, (k), e) is stored in the T register from the data stored in the A register. When the carry flag is 0, the stored data is subtracted from the address where the stored data is the upper byte and the data stored in the register indicated by k is the lower byte. Is an instruction for loading the address indicated by e into the PC (program counter) (branching to the address indicated by e) and executing the subsequent instruction when the carry flag is 1.

(JCPT Z,(k),ss,e)命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスと、当該アドレスに1を加算したアドレスに記憶された2バイトのデータから、ssで示されるペアレジスタ(BC,DE)に記憶された2バイトのデータを減算し、Zフラグが1の場合にはeで示されるアドレスをPC(プログラムカウンタ)にロードし(eで示されるアドレスに分岐し)、Zフラグが0の場合には後続の命令を実行させる命令であり、(JCPT NZ,(k),ss,e)命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスと、当該アドレスに1を加算したアドレスに記憶された2バイトのデータから、ssで示されるペアレジスタ(BC,DE)に記憶された2バイトのデータを減算し、Zフラグが0の場合にはeで示されるアドレスをPC(プログラムカウンタ)にロードし(eで示されるアドレスに分岐し)、Zフラグが1の場合には後続の命令を実行させる命令である。   The instruction (JCPT Z, (k), ss, e) adds an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte, and 1 is added to the address. The 2-byte data stored in the pair register (BC, DE) indicated by ss is subtracted from the 2-byte data stored at the specified address, and when the Z flag is 1, the address indicated by e is set to PC. (Program counter) is an instruction to load (branch to an address indicated by e) and execute the subsequent instruction when the Z flag is 0. (JCPT NZ, (k), ss, e) The data stored in the T register is the upper byte, the data stored in the register indicated by k is the lower byte, and the address obtained by adding 1 to the address. The 2-byte data stored in the pair register (BC, DE) indicated by ss is subtracted from the 2-byte data, and when the Z flag is 0, the address indicated by e is loaded into the PC (program counter). (Branch to an address indicated by e), and when the Z flag is 1, this is an instruction for executing the subsequent instruction.

(JCPT C,(k),ss,e)命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスと、当該アドレスに1を加算したアドレスに記憶された2バイトのデータから、ssで示されるペアレジスタ(BC,DE)に記憶された2バイトのデータを減算し、キャリーフラグが1の場合にはeで示されるアドレスをPC(プログラムカウンタ)にロードし(eで示されるアドレスに分岐し)、キャリーフラグが0の場合には後続の命令を実行させる命令であり、(JCPT NC,(k),ss,e)命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスと、当該アドレスに1を加算したアドレスに記憶された2バイトのデータから、ssで示されるペアレジスタ(BC,DE)に記憶された2バイトのデータを減算し、キャリーフラグが0の場合にはeで示されるアドレスをPC(プログラムカウンタ)にロードし(eで示されるアドレスに分岐し)、キャリーフラグが1の場合には後続の命令を実行させる命令である。   The (JCPTC C, (k), ss, e) instruction adds an address having the data stored in the T register as the upper byte, the data stored in the register indicated by k as the lower byte, and 1 to the address. The 2-byte data stored in the pair register (BC, DE) indicated by ss is subtracted from the 2-byte data stored at the specified address, and when the carry flag is 1, the address indicated by e is set to PC. It is an instruction to load (program counter) (branch to the address indicated by e) and execute the subsequent instruction when the carry flag is 0. The (JCPT NC, (k), ss, e) instruction is , An address having the data stored in the T register as the upper byte, the data stored in the register indicated by k as the lower byte, and an address obtained by adding 1 to the address The 2-byte data stored in the pair register (BC, DE) indicated by ss is subtracted from the 2-byte data stored in, and when the carry flag is 0, the address indicated by e is set to PC (program This is an instruction to load the counter) (branch to an address indicated by e) and execute the subsequent instruction when the carry flag is 1.

(JTT Z,(k)e)命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータから、数値の0を減算し、Zフラグが1の場合にはeで示されるアドレスをPC(プログラムカウンタ)にロードし(eで示されるアドレスに分岐し)、Zフラグが0の場合には後続の命令を実行させる命令であり、(JTT NZ,(k)e)命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータから、数値の0を減算し、Zフラグが0の場合にはeで示されるアドレスをPC(プログラムカウンタ)にロードし(eで示されるアドレスに分岐し)、Zフラグが1の場合には後続の命令を実行させる命令である。   The (JTT Z, (k) e) instruction calculates the numerical value 0 from the data stored in the address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. When the Z flag is 1, the address indicated by e is loaded into the PC (program counter) (branch to the address indicated by e), and when the Z flag is 0, the subsequent instruction is executed. The (JTT NZ, (k) e) instruction is an instruction from data stored at an address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. The numerical value 0 is subtracted, and if the Z flag is 0, the address indicated by e is loaded into the PC (program counter) (branch to the address indicated by e), and if the Z flag is 1, This is an instruction for executing a subsequent instruction.

(JBITT Z,b,(k),e)命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータのうち、bで示されるビットの反転データをZフラグに記憶し、Zフラグが1の場合にはeで示されるアドレスをPC(プログラムカウンタ)にロードし(eで示されるアドレスに分岐し)、Zフラグが0の場合には後続の命令を実行させる命令であり、(JBITT NZ,b,(k),e)命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータのうち、bで示されるビットの反転データをZフラグに記憶し、Zフラグが0の場合にはeで示されるアドレスをPC(プログラムカウンタ)にロードし(eで示されるアドレスに分岐し)、Zフラグが1の場合には後続の命令を実行させる命令である。
<他の命令/演算&リターン命令>
The (JBITT Z, b, (k), e) instruction includes the data stored in the address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. The inverted data of the bit indicated by b is stored in the Z flag, and when the Z flag is 1, the address indicated by e is loaded into the PC (program counter) (branch to the address indicated by e), and the Z flag Is an instruction to execute the following instruction when 0 is 0, the (JBITT NZ, b, (k), e) instruction stores the data stored in the T register in the upper byte, the register indicated by k. Of the data stored in the address having the lower data as the lower byte, the inverted data of the bit indicated by b is stored in the Z flag, and when the Z flag is 0, the address indicated by e is set to PC Program counter) in the load branches to (address indicated by e), if Z flag is 1 is an instruction to execute the subsequent instruction.
<Other instructions / arithmetic & return instructions>

演算&リターン命令は、演算と当該演算の演算結果に基づく復帰処理を行うための命令であり、例えば、RTT命令などが該当する。   The operation & return instruction is an instruction for performing a return process based on the operation and the operation result of the operation, and corresponds to, for example, an RTT instruction.

例えば、(RTT Z、(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータから、数値の0を減算し、Zフラグが1の場合にはSPと(SP+1)に記憶されたアドレスをPC(プログラムカウンタ)にロードし(SPと(SP+1)で示されるアドレスに復帰し)、Zフラグが0の場合には後続の命令を実行させる命令であり、(RTT NZ、(k))命令は、Tレジスタに記憶されたデータを上位バイト、kで示されるレジスタに記憶されたデータを下位バイトとするアドレスに記憶されたデータから、数値の0を減算し、Zフラグが0の場合にはSPと(SP+1)に記憶されたアドレスをPC(プログラムカウンタ)にロードし(SPと(SP+1)で示されるアドレスに復帰し)、Zフラグが1の場合には後続の命令を実行させる命令である。
<他の命令/複合命令>
For example, the (RTT Z, (k)) instruction is a numerical value 0 from the data stored in the address having the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. When the Z flag is 1, the address stored in SP and (SP + 1) is loaded into the PC (program counter) (returned to the address indicated by SP and (SP + 1)), and the Z flag is 0. In the case of (1), an instruction to execute a subsequent instruction is executed. The (RTT NZ, (k)) instruction has the data stored in the T register as the upper byte and the data stored in the register indicated by k as the lower byte. The value 0 is subtracted from the data stored at the address to be loaded, and when the Z flag is 0, the address stored in SP and (SP + 1) is loaded into the PC (program counter). It returned to the address indicated by SP and (SP + 1)), if Z flag is 1 is an instruction to execute the subsequent instruction.
<Other instructions / Compound instructions>

複合命令は、複数の処理を一つにした命令であり、例えば、INCPLD命令、INCPWLD命令、DECPLD命令、DECPWLD命令などが該当する。   The compound instruction is an instruction in which a plurality of processes are combined, and includes, for example, an INCPLD instruction, an INCWLD instruction, a DECPLD instruction, and a DECPWLD instruction.

(INCPLD A,r)命令は、Aレジスタに記憶されたデータから、rで示されるレジスタ(B,C,D,E,H,L)に記憶されたデータを減算し、キャリーフラグが1の場合にAレジスタに記憶されたデータに1を加算し、キャリーフラグが0の場合にAレジスタに0を記憶する命令であり、(INCPLD (HL),r)命令は、HLレジスタに記憶されたデータが示すアドレスに記憶されたデータから、rで示されるレジスタ(B,C,D,E,H,L)に記憶されたデータを減算し、キャリーフラグが1の場合に、HLレジスタに記憶されたデータが示すアドレスに記憶されたデータに1を加算し、キャリーフラグが0の場合に、HLレジスタに記憶されたデータが示すアドレスに記憶されたデータに0を記憶する命令である。   The (INCPLD A, r) instruction subtracts the data stored in the register (B, C, D, E, H, L) indicated by r from the data stored in the A register, and the carry flag is 1. In this case, 1 is added to the data stored in the A register, and 0 is stored in the A register when the carry flag is 0. The (INCPLD (HL), r) instruction is stored in the HL register. The data stored in the register (B, C, D, E, H, L) indicated by r is subtracted from the data stored at the address indicated by the data, and stored in the HL register when the carry flag is 1. This instruction adds 1 to the data stored at the address indicated by the read data and stores 0 in the data stored at the address indicated by the data stored in the HL register when the carry flag is 0. .

(INCPLD A,n)命令は、Aレジスタに記憶されたデータから、数値nを減算し、キャリーフラグが1の場合にAレジスタに記憶されたデータに1を加算し、キャリーフラグが0の場合にAレジスタに0を記憶する命令であり、(INCPLD (HL),n)命令は、HLレジスタに記憶されたデータが示すアドレスに記憶されたデータから、数値nを減算し、キャリーフラグが1の場合に、HLレジスタに記憶されたデータが示すアドレスに記憶されたデータに1を加算し、キャリーフラグが0の場合に、HLレジスタに記憶されたデータが示すアドレスに記憶されたデータに0を記憶する命令である。   The (INCPLD A, n) instruction subtracts the numerical value n from the data stored in the A register, adds 1 to the data stored in the A register when the carry flag is 1, and the carry flag is 0 The (INCPLD (HL), n) instruction subtracts the numerical value n from the data stored at the address indicated by the data stored in the HL register, and the carry flag is 1. In this case, 1 is added to the data stored at the address indicated by the data stored in the HL register, and when the carry flag is 0, 0 is added to the data stored at the address indicated by the data stored in the HL register. Is an instruction to memorize.

(INCPLD HL,mn)命令は、HLレジスタに記憶されたデータから、数値mnを減算し、キャリーフラグが1の場合にHLレジスタに記憶されたデータに1を加算し、キャリーフラグが0の場合にHLレジスタに0を記憶する命令であり、(INCPWLD (HL),mn)命令は、HLレジスタに記憶されたデータが示すアドレスと、HLレジスタに記憶されたデータ+1が示すアドレスに記憶されたデータから、数値mnを減算し、キャリーフラグが1の場合に、HLレジスタに記憶されたデータが示すアドレスと、HLレジスタに記憶されたデータ+1が示すアドレスに記憶されたデータに1を加算し、キャリーフラグが0の場合に、HLレジスタに記憶されたデータが示すアドレスと、HLレジスタに記憶されたデータ+1が示すアドレスに記憶されたデータに0を記憶する命令である。   The (INCPLD HL, mn) instruction subtracts the numerical value mn from the data stored in the HL register, adds 1 to the data stored in the HL register when the carry flag is 1, and the carry flag is 0 The instruction (INCPWLD (HL), mn) is stored at the address indicated by the data stored in the HL register and at the address indicated by the data +1 stored in the HL register. The numerical value mn is subtracted from the data, and when the carry flag is 1, 1 is added to the data stored at the address indicated by the data stored in the HL register and the data indicated by the data +1 stored in the HL register. When the carry flag is 0, the address indicated by the data stored in the HL register and the data stored in the HL register + This is an instruction for storing 0 in the data stored at the address indicated by 1.

(DECPLD A,r)命令は、Aレジスタに記憶されたデータから1を減算し、キャリーフラグが1の場合に、rで示されるレジスタ(B,C,D,E,H,L)に記憶されたデータをAレジスタに記憶し、キャリーフラグが0の場合に、Aレジスタから1を減算す命令であり、(DECPLD (HL),r)命令は、HLレジスタに記憶されたデータが示すアドレスに記憶されたデータから、rで示されるレジスタ(B,C,D,E,H,L)に記憶されたデータを減算し、キャリーフラグが1の場合に、rで示されるレジスタ(B,C,D,E,H,L)に記憶されたデータを、HLレジスタに記憶されたデータが示すアドレスに記憶されたデータに記憶し、キャリーフラグが0の場合に、HLレジスタに記憶されたデータが示すアドレスに記憶されたデータから1を減算する命令である。   The (DECPLD A, r) instruction subtracts 1 from the data stored in the A register, and when the carry flag is 1, stores it in the register (B, C, D, E, H, L) indicated by r. The stored data is stored in the A register, and when the carry flag is 0, 1 is subtracted from the A register. The (DECPLD (HL), r) instruction is an address indicated by the data stored in the HL register. When the data stored in the register (B, C, D, E, H, L) indicated by r is subtracted from the data stored in, and the carry flag is 1, the register (B, C, D, E, H, L) is stored in the data stored at the address indicated by the data stored in the HL register, and stored in the HL register when the carry flag is 0. Data indicated by the data This instruction subtracts 1 from the data stored in the dress.

(DECPLD A,n)命令は、Aレジスタに記憶されたデータから、数値nを減算し、キャリーフラグが1の場合に、Aレジスタに数値nを記憶し、キャリーフラグが0の場合に、Aレジスタに記憶されたデータから1を減算する命令であり、(DECPLD (HL),n)命令は、HLレジスタに記憶されたデータが示すアドレスに記憶されたデータから、数値nを減算し、キャリーフラグが1の場合に、HLレジスタに記憶されたデータが示すアドレスに記憶されたデータに数値nを記憶し、キャリーフラグが0の場合に、HLレジスタに記憶されたデータが示すアドレスに記憶されたデータから1を減算する命令である。   The (DECPLD A, n) instruction subtracts the numerical value n from the data stored in the A register, stores the numerical value n in the A register when the carry flag is 1, and stores the numerical value n when the carry flag is 0. This is an instruction to subtract 1 from the data stored in the register. The (DECPLD (HL), n) instruction subtracts the numerical value n from the data stored at the address indicated by the data stored in the HL register, When the flag is 1, the numerical value n is stored in the data stored at the address indicated by the data stored in the HL register. When the carry flag is 0, the numerical value n is stored at the address indicated by the data stored in the HL register. This instruction subtracts 1 from the data.

(DECPLD HL,mn)命令は、HLレジスタに記憶されたデータから、数値mnを減算し、キャリーフラグが1の場合に、HLレジスタに数値mnを記憶し、キャリーフラグが0の場合に、HLレジスタに記憶されたデータから1を減算する命令であり、(DECPWLD (HL),mn)命令は、HLレジスタに記憶されたデータが示すアドレスと、HLレジスタに記憶されたデータ+1が示すアドレスに記憶されたデータから、数値mnを減算し、キャリーフラグが1の場合に、HLレジスタに記憶されたデータが示すアドレスと、HLレジスタに記憶されたデータ+1が示すアドレスに記憶されたデータに数値mnを記憶し、キャリーフラグが0の場合に、HLレジスタに記憶されたデータが示すアドレスと、HLレジスタに記憶されたデータ+1が示すアドレスに記憶されたデータから1を減算する命令である。   The (DECPLD HL, mn) instruction subtracts the numerical value mn from the data stored in the HL register, stores the numerical value mn in the HL register when the carry flag is 1, and outputs the HL when the carry flag is 0. This is an instruction to subtract 1 from the data stored in the register. The (DECPWLD (HL), mn) instruction is an address indicated by the data stored in the HL register and an address indicated by the data +1 stored in the HL register. When the numerical value mn is subtracted from the stored data and the carry flag is 1, the numerical value is stored in the data stored in the address indicated by the data stored in the HL register and the data stored in the address indicated by the data stored in the HL register + 1. When mn is stored and the carry flag is 0, the address indicated by the data stored in the HL register and the HL register This is an instruction to subtract 1 from the data stored at the address indicated by the stored data + 1.

例えば、上述の主制御部メイン処理の基本乱数初期値更新処理(ステップS115)において、Aレジスタに普図タイマ乱数値、数値nに普図タイマ乱数値の最大値(例えば、100)をそれぞれ記憶(ロード)した後に、(INCPLD A,n)命令を実行すれば、キャリーフラグが1の場合、すなわち、普図タイマ乱数値が最大値ではない場合には、普図タイマ乱数値に1を加算し、キャリーフラグが0の場合、すなわち、普図タイマ乱数値が最大値になった場合には、普図タイマ乱数値に0を記憶することができる。このため、(INCPLD A,n)命令だけで、普図タイマ乱数値の更新を容易に行うことができ、プログラム容量の削減や、処理速度の向上を図ることができる場合がある。   For example, in the basic random number initial value update process (step S115) of the main control unit main process described above, the normal timer random number value is stored in the A register, and the maximum value (for example, 100) of the normal timer random value is stored in the numerical value n. If (INCPLD A, n) instruction is executed after (loading), if the carry flag is 1, that is, if the usual timer random number is not the maximum value, 1 is added to the ordinary timer random value. When the carry flag is 0, that is, when the usual timer random number value reaches the maximum value, 0 can be stored in the ordinary timer random value. For this reason, the usual timer random number value can be easily updated by only the (INCPLD A, n) instruction, and the program capacity may be reduced and the processing speed may be improved.

また、上述の主制御部メイン処理の基本乱数初期値更新処理(ステップS115)において、Aレジスタに普図タイマ乱数値、数値nに普図タイマ乱数値の最大値(例えば、100)をそれぞれ記憶(ロード)した後に、(DECPLD A,n)命令を実行すれば、キャリーフラグが1の場合、すなわち、普図タイマ乱数値が負の値になった場合には、普図タイマ乱数値に普図タイマ乱数値の最大値を記憶し、キャリーフラグが0の場合、すなわち、普図タイマ乱数値が負の値ではない場合には、普図タイマ乱数値から1を減算することができる。このため、(DECPLD A,n)命令だけで、普図タイマ乱数値の更新を容易に行うことができ、プログラム容量の削減や、処理速度の向上を図ることができる場合がある。なお、この例では、Aレジスタのみで乱数値を更新する例を示したが、他のレジスタ(例えば、Rレジスタ)を併用したり、ハードウェア乱数値を併用してもよい。   Further, in the basic random number initial value updating process (step S115) of the main control unit main process described above, the normal timer random number value is stored in the A register, and the maximum value (for example, 100) of the normal timer random value is stored in the numerical value n. If the (DECPLD A, n) instruction is executed after (loading), if the carry flag is 1, that is, if the usual timer random number value becomes negative, the ordinary timer random number value is When the maximum value of the figure timer random value is stored and the carry flag is 0, that is, when the common timer random number is not a negative value, 1 can be subtracted from the common timer random value. For this reason, it is possible to easily update the regular timer random number value only with the (DECPLD A, n) instruction, and it may be possible to reduce the program capacity and improve the processing speed. In this example, the random number value is updated only by the A register. However, another register (for example, R register) may be used together, or a hardware random value may be used together.

以上説明したように、上記実施形態に係る遊技台は、CPU(例えば、CPU304)と、遊技制御プログラムが少なくとも記憶されているROM(例えば、ROM306)と、を少なくとも内蔵するマイクロプロセッサ(例えば、基本回路302)を備えた遊技台であって、前記遊技台は、パチンコ機またはスロットマシンであり、前記マイクロプロセッサは、少なくとも所定の出力端子(例えば、リセット出力端子XRSTO)を有し、前記マイクロプロセッサは、少なくともランダム延長機能(例えば、ランダム延長処理)を有し、前記ランダム延長機能は、前記遊技制御プログラムの実行開始タイミングをランダムに変化させることが可能なものであり、前記所定の出力端子からの出力は、少なくとも所定のタイミングで第一のレベルから該第一のレベル(例えば、ローレベルの信号)よりも高い第二のレベル(例えば、ハイレベルの信号)に変化するものであり、前記所定のタイミングは、前記ランダム延長機能の実行前である、ことを特徴とする遊技台である。   As described above, the gaming machine according to the above-described embodiment includes a microprocessor (for example, a basic) having at least a CPU (for example, the CPU 304) and a ROM (for example, the ROM 306) in which at least a game control program is stored. A game machine having a circuit 302), wherein the game machine is a pachinko machine or a slot machine, and the microprocessor has at least a predetermined output terminal (for example, a reset output terminal XRSTO), and the microprocessor Has at least a random extension function (for example, a random extension process), and the random extension function is capable of randomly changing the execution start timing of the game control program, from the predetermined output terminal Output of the first level at least at a predetermined timing. To a second level (for example, a high level signal) higher than the first level (for example, a low level signal), and the predetermined timing is before the execution of the random extension function. It is a game table characterized by that.

また、上記実施形態に係る遊技台は、CPU(例えば、CPU304)と、遊技制御プログラムを記憶するROM(例えば、ROM306)と、を少なくとも内蔵するマイクロプロセッサ(例えば、基本回路302)を備えた遊技台であって、前記マイクロプロセッサは、少なくとも所定の出力端子(例えば、リセット出力端子XRSTO)を有し、前記マイクロプロセッサは、前記所定の出力端子(例えば、リセット出力端子XRSTO)からの所定の信号出力(例えば、リセット出力信号出力)の立上りタイミングまたは立下りタイミング(例えば、ローレベル信号からハイレベル信号に変化させる立上りタイミング)を、前記遊技制御プログラムの実行開始前に行われるランダム遅延処理の開始前に実行可能である、ことを特徴とする遊技台である。   In addition, the gaming machine according to the above embodiment is a game including a microprocessor (for example, basic circuit 302) including at least a CPU (for example, CPU 304) and a ROM (for example, ROM 306) for storing a game control program. The microprocessor has at least a predetermined output terminal (for example, reset output terminal XRSTO), and the microprocessor has a predetermined signal from the predetermined output terminal (for example, reset output terminal XRSTO). Start of random delay processing that is performed before the start of execution of the game control program with respect to rising timing or falling timing of output (for example, reset output signal output) (for example, rising timing for changing from a low level signal to a high level signal) It is feasible before It is a skill base.

図198および図199は、本発明に係る所定の出力端子の信号出力の一例を説明するための図である。同図には、所定の出力端子の一例であるリセット出力端子XRSTOの出力信号の電圧変化と、本発明に係る第一のレベルであるか否かを判断するための基準電圧であるローレベルしきい値電圧VLと、本発明に係る第二のレベルであるか否かを判断するための基準電圧であるハイレベルしきい値電圧VHを示している。   198 and 199 are diagrams for explaining an example of signal output from a predetermined output terminal according to the present invention. In the figure, the voltage change of the output signal of the reset output terminal XRSTO which is an example of the predetermined output terminal and the low level which is a reference voltage for judging whether or not the first level according to the present invention is set. A threshold voltage VL and a high level threshold voltage VH, which is a reference voltage for determining whether or not the second level according to the present invention is present, are shown.

この例では、リセット出力端子XRSTOの出力信号の電圧がローレベルしきい値電圧VLよりも低い場合には第一のレベル(ローレベル)と規定し、リセット出力端子XRSTOから出力する電圧がハイレベルしきい値電圧VHよりも高い場合には第二のレベル(ハイレベル)と規定している。なお、この例では、ローレベルしきい値電圧VLとハイレベルしきい値電圧VHにヒステリシスを持たせているが、本発明はこれに限定されず、例えば、ローレベルしきい値電圧VLとハイレベルしきい値電圧VHを同一の電圧(例えば、ハイレベルの最高電圧が5V、ローレベルの最低電圧が0Vの場合に、両者の平均の2.5V)に設定してもよい。   In this example, when the voltage of the output signal of the reset output terminal XRSTO is lower than the low level threshold voltage VL, it is defined as the first level (low level), and the voltage output from the reset output terminal XRSTO is high level. When it is higher than the threshold voltage VH, it is defined as the second level (high level). In this example, hysteresis is given to the low-level threshold voltage VL and the high-level threshold voltage VH, but the present invention is not limited to this. For example, the low-level threshold voltage VL and the high-level threshold voltage VH The level threshold voltage VH may be set to the same voltage (for example, when the high voltage is 5V and the low voltage is 0V, the average of both is 2.5V).

図198(a)では、リセット出力端子XRSTOの出力信号の電圧を、ランダム延長処理の実行開始後に、第一のレベル(ローレベル)の電圧からローレベルしきい値電圧VLを超える電圧に変化させた後に、ランダム延長処理の実行中に、さらにハイレベルしきい値電圧VHを超える電圧に変化させて第二のレベル(ハイレベル)に変化させている。同図(b)では、リセット出力端子XRSTOの出力信号の電圧を、ランダム延長処理の実行開始とほぼ同時に、第一のレベル(ローレベル)の電圧からローレベルしきい値電圧VLを超える電圧に変化させた後に、ランダム延長処理の実行中に、さらにハイレベルしきい値電圧VHを超える電圧に変化させて第二のレベル(ハイレベル)に変化させている。   In FIG. 198 (a), the voltage of the output signal of the reset output terminal XRSTO is changed from the first level (low level) voltage to the voltage exceeding the low level threshold voltage VL after the execution of the random extension process is started. After that, during the execution of the random extension process, the voltage is further changed to a voltage exceeding the high level threshold voltage VH to be changed to the second level (high level). In FIG. 6B, the voltage of the output signal of the reset output terminal XRSTO is changed from the first level (low level) voltage to the voltage exceeding the low level threshold voltage VL almost simultaneously with the start of the random extension processing. After the change, during execution of the random extension process, the voltage is further changed to a voltage exceeding the high level threshold voltage VH to be changed to the second level (high level).

また、同図(c)では、リセット出力端子XRSTOの出力信号の電圧を、ランダム延長処理の実行開始前に、第一のレベル(ローレベル)の電圧からローレベルしきい値電圧VLを超える電圧に変化させた後に、ランダム延長処理の実行中に、ランダム延長処理の実行開始後に、さらにハイレベルしきい値電圧VHを超える電圧に変化させて第二のレベル(ハイレベル)に変化させている。同図(d)では、リセット出力端子XRSTOの出力信号の電圧を、ランダム延長処理の実行開始前に、第一のレベル(ローレベル)の電圧からローレベルしきい値電圧VLを超える電圧に変化させた後に、ランダム延長処理の実行開始とほぼ同時に、さらにハイレベルしきい値電圧VHを超える電圧に変化させて第二のレベル(ハイレベル)に変化させている。   In FIG. 8C, the voltage of the output signal of the reset output terminal XRSTO is changed from the first level (low level) voltage to the low level threshold voltage VL before the execution of the random extension process. Then, during the execution of the random extension process, after the start of the random extension process, the voltage is further changed to a voltage exceeding the high level threshold voltage VH and changed to the second level (high level). . In FIG. 4D, the voltage of the output signal of the reset output terminal XRSTO is changed from the first level (low level) voltage to the voltage exceeding the low level threshold voltage VL before the execution of the random extension process is started. Then, almost simultaneously with the start of execution of the random extension process, the voltage is further changed to a voltage exceeding the high level threshold voltage VH to be changed to the second level (high level).

一方、同図(e)では、リセット出力端子XRSTOの出力信号の電圧を、ランダム延長処理の実行開始前に、第一のレベル(ローレベル)の電圧からローレベルしきい値電圧VLを超える電圧に変化させた後に、ランダム延長処理の実行開始前に、さらにハイレベルしきい値電圧VHを超える電圧に変化させて第二のレベル(ハイレベル)に変化させている。図199(a)では、リセット出力端子XRSTOの出力信号の電圧を、ランダム延長処理の実行開始前、かつ、固定延長処理の実行終了後に、第一のレベル(ローレベル)の電圧からローレベルしきい値電圧VLを超える電圧に変化させた後に、ランダム延長処理の実行開始前、かつ、固定延長処理の実行終了後に、さらにハイレベルしきい値電圧VHを超える電圧に変化させて第二のレベル(ハイレベル)に変化させている。また、同図(b)では、リセット出力端子XRSTOの出力信号の電圧を、ランダム延長処理の実行開始前、かつ、固定延長処理の実行終了とほぼ同時に、第一のレベル(ローレベル)の電圧からローレベルしきい値電圧VLを超える電圧に変化させた後に、ランダム延長処理の実行開始前、かつ、固定延長処理の実行終了後に、さらにハイレベルしきい値電圧VHを超える電圧に変化させて第二のレベル(ハイレベル)に変化させている。   On the other hand, in FIG. 5E, the voltage of the output signal of the reset output terminal XRSTO is changed from the first level (low level) voltage to the low level threshold voltage VL before the execution of the random extension process is started. Then, before the execution of the random extension process is started, the voltage is further changed to a voltage exceeding the high level threshold voltage VH to be changed to the second level (high level). In FIG. 199 (a), the voltage of the output signal of the reset output terminal XRSTO is lowered from the first level (low level) voltage before the start of the random extension process and after the end of the fixed extension process. After changing to a voltage exceeding the threshold voltage VL, before starting the execution of the random extension process and after completing the fixed extension process, the voltage is further changed to a voltage exceeding the high level threshold voltage VH to the second level. (High level). In FIG. 5B, the voltage of the output signal of the reset output terminal XRSTO is set to the first level (low level) voltage before the start of the random extension process and almost simultaneously with the end of the fixed extension process. After changing from a low level threshold voltage VL to a voltage exceeding the low level threshold voltage VL, before starting the execution of the random extension process and after completing the fixed extension process, the voltage is further changed to a voltage exceeding the high level threshold voltage VH. The level is changed to the second level (high level).

また、前記マイクロプロセッサは、前記所定の出力端子(例えば、リセット出力端子XRSTO)からの所定の信号出力(例えば、リセット出力信号出力)を、前記遊技制御プログラムの実行開始前に行われるランダム遅延処理の終了前(または、ランダム遅延処理中)に実行可能であっても、同様の効果を得ることができる。   In addition, the microprocessor performs a random delay process in which a predetermined signal output (for example, reset output signal output) from the predetermined output terminal (for example, reset output terminal XRSTO) is performed before the execution of the game control program. Even if it can be executed before the end of (or during random delay processing), the same effect can be obtained.

上記実施形態に係る遊技台によれば、所定の信号出力のタイミングと遊技制御プログラムの実行開始タイミングをずらすことが可能なため、遊技制御処理の特定の処理(例えばソフト乱数の更新処理、初期値更新処理等)の狙い撃ちを防止することができる場合がある。   According to the gaming machine according to the above embodiment, it is possible to shift the timing of the predetermined signal output and the execution start timing of the game control program. In some cases, it is possible to prevent aiming of update processing and the like.

また、前記所定の出力端子はリセット信号を出力可能な端子であってもよい。このような構成とすれば、例えば、リセット信号を所定の電子部品に接続した場合、遊技制御前に電子部品が動作可能となり、不正な電波を送信した場合に電子部品が動作してしまうため、不正行為を発見しやすくなる場合がある。また、遊技制御プログラムの開始前に電子部品が動作可能なので、電子部品の作動開始タイミングと、遊技制御プログラムの実行開始タイミングとが異なると思わせることにより、遊技制御処理の特定の処理の狙い撃ちを防止することができる場合がある。   The predetermined output terminal may be a terminal capable of outputting a reset signal. With such a configuration, for example, when a reset signal is connected to a predetermined electronic component, the electronic component can operate before game control, and the electronic component operates when an unauthorized radio wave is transmitted. It may be easier to detect fraud. In addition, since electronic components can operate before the start of the game control program, by making the operation start timing of the electronic components different from the execution start timing of the game control program, it is possible to aim at specific processing of the game control processing. There are cases where it can be prevented.

また、少なくとも、セキュリティモードおよびユーザモードを備え、前記遊技制御プログラムは、前記ユーザモードで実行されるユーザプログラムであってもよい。   Further, at least a security mode and a user mode may be provided, and the game control program may be a user program executed in the user mode.

このような構成とすれば、所定の信号出力のタイミングとユーザプログラムの実行開始タイミングをずらすことが可能なため、遊技制御処理の特定の処理(例えばソフト乱数の更新処理、初期値更新処理等)の狙い撃ちを防止することができる場合がある。   With such a configuration, it is possible to shift the timing of the predetermined signal output and the execution start timing of the user program, so that specific processing of game control processing (for example, soft random number update processing, initial value update processing, etc.) In some cases, it is possible to prevent sniper shooting.

また、前記遊技制御プログラムの実行開始は、システムリセットおよびユーザリセットのうちの少なくともいずれか一方を受け付けた後でおこなわれるものであってもよい。   In addition, the execution start of the game control program may be performed after receiving at least one of a system reset and a user reset.

このような構成とすれば、システムリセットまたはユーザリセットの度に所定の信号出力のタイミングと遊技制御プログラムの実行開始タイミングをずらすことが可能なため、遊技制御処理の特定の処理(例えばソフト乱数の更新処理、初期値更新処理等)の狙い撃ちを防止することができる場合がある。   With such a configuration, it is possible to shift a predetermined signal output timing and a game control program execution start timing at each system reset or user reset. Update processing, initial value update processing, and the like) may be prevented.

また、少なくとも所定の入力端子を有する所定の電子部品(例えば、IC11〜IC14)を備え、前記所定の入力端子(例えば、リセット入力端子)は、前記所定の出力端子からの前記所定の信号を入力可能な端子であってもよい。   In addition, a predetermined electronic component (for example, IC11 to IC14) having at least a predetermined input terminal is provided, and the predetermined input terminal (for example, reset input terminal) inputs the predetermined signal from the predetermined output terminal. Possible terminals may be used.

このような構成とすれば、遊技制御プログラムの開始前に電子部品が動作可能なので、電子部品の作動開始タイミングと、遊技制御プログラムの実行開始タイミングとが異なると思わせることにより、遊技制御処理の特定の処理の狙い撃ちを防止することができる場合がある。   With such a configuration, the electronic component can be operated before the start of the game control program, so that the operation start timing of the electronic component and the execution start timing of the game control program are considered to be different. In some cases, it is possible to prevent a specific process from being aimed.

図200は、ユーザリセット時におけるシステムクロック信号、アドレス信号、データ信号、制御信号、およびリセット出力信号の変化を示した図である。上述のとおり、本実施形態のユーザリセットには、WDTのタイムアウトによるユーザリセットと、指定エリア外のアクセスによるユーザリセットの2種類があり、プログラム管理エリアの設定により、ユーザリセットを有効に設定している場合に機能する。   FIG. 200 is a diagram illustrating changes in the system clock signal, the address signal, the data signal, the control signal, and the reset output signal at the time of user reset. As described above, there are two types of user resets according to this embodiment: user reset due to timeout of WDT and user reset due to access outside the designated area. The user reset is set to be effective by setting the program management area. It works when there is.

WDTのタイムアウトによるユーザリセットは、WDTタイムアウト信号に基づいて発生するリセットであり、当該リセット中はアドレス信号として第一の固定値(例えば、E000H)を出力するように構成している。一方、指定エリア外のアクセスによるユーザリセットは、指定エリア外走行禁止信号に基づいて発生するリセットであり、当該リセット中はアドレス信号として第二の固定値(例えば、8000Hなど、E000H以外の値)を出力するように構成している。   A user reset due to a WDT timeout is a reset that occurs based on a WDT timeout signal, and is configured to output a first fixed value (for example, E000H) as an address signal during the reset. On the other hand, a user reset due to an access outside the designated area is a reset that occurs based on a travel prohibition signal outside the designated area. During the reset, a second fixed value (for example, a value other than E000H, such as 8000H) is used as an address signal. Is output.

ユーザリセットが発生すると、CPUコア、タイマ回路、演算回路、入出力ポート、通信回路、割込みコントローラなどが初期化され、リセットアドレス(0000H)よりユーザプログラム(遊技制御プログラム)の実行を開始し、起動されていたウォッチドッグタイマも制御プログラムによらずに(自動的に)クリア&リスタートされる。   When a user reset occurs, the CPU core, timer circuit, arithmetic circuit, input / output port, communication circuit, interrupt controller, etc. are initialized, and the execution of the user program (game control program) is started from the reset address (0000H). The watchdog timer that has been set is also cleared and restarted (automatically) regardless of the control program.

このように、前記マイクロプロセッサは、所定の条件が成立した場合(例えば、図186に示すタイムアウト時間が経過した場合)に、所定の信号(例えば、WDT起動信号(WDTタイムアウト信号)や、CPU内部の信号)を少なくとも発生させることが可能なウォッチドッグタイマ(例えば、WDT314、第一WDT314a、第二WDT314b)と、正当な指定エリア以外の記憶領域のコードが実行されたことに基づいて、指定エリア外走行禁止信号を少なくとも発生させることが可能な指定エリア外走行禁止回路(例えば、指定エリア外走行禁止回路3142)と、を少なくとも有し、前記指定エリア外走行禁止信号が発生してから前記所定のタイミングの間に開始されるセキュリティチェック中に、前記ウォッチドッグタイマのカウンタが停止している期間が少なくとも含まれていてもよい。   As described above, when the predetermined condition is satisfied (for example, when the time-out time shown in FIG. 186 elapses), the microprocessor performs a predetermined signal (for example, a WDT activation signal (WDT time-out signal)) A designated area based on the execution of a watchdog timer (for example, WDT 314, first WDT 314a, second WDT 314b) capable of generating at least a storage area code other than a legally designated area. At least an out-of-designated area travel prohibition circuit (for example, out-of-designated-area travel prohibition circuit 3142) that can generate an out-of-designated travel prohibition signal, and after the predetermined out-of-designated area travel prohibition signal is generated During the security check that is initiated during the timing of Period during which the counter is stopped may be included at least.

なお、本発明に係る「ウォッチドッグタイマのカウンタが停止している」には、カウンタが一時的に停止している場合、カウンタが初期値や0に設定された後にカウンタが一時的に停止している場合、カウンタのカウントは継続するが、カウンタがタイムアウトする前にカウンタをクリア&リスタートし続けることによってカウンタが実質的に停止する(タイムアウトさせない)場合、カウンタの値をセキュリティチェック時間の最大処理時間よりも長く設定し、セキュリティチェック中のタイムアウトを回避することによってカウンタが実質的に停止する(タイムアウトさせない)場合などが含まれる。また、「ウォッチドッグタイマのカウンタが停止している期間」には、指定エリア外走行禁止信号の発生から当該信号の発生直後までの期間、指定エリア外走行禁止信号の発生後からシステムクロックが所定クロック経過した後(例えば、指定エリア外走行禁止信号の発生後からシステムクロックの1クロック後の立ち下がりエッジまたは立ち上がりエッジまで)、リセット出力端子XRSTOの出力信号の立上りまでの期間の一部やすべてなども含まれる。また、WDTをマイコンに内蔵し、WDTタイムアウトが発生してから前記所定のタイミングの間に開始されるセキュリティチェック中に、WDT用カウンタが停止している期間が少なくとも含まれ、WDTをマイコンに内蔵し、指定エリア外走行禁止信号が発生してから前記所定のタイミングの間に開始されるセキュリティチェック中に、WDT用カウンタが停止している期間が少なくとも含まれる。   It should be noted that “the watchdog timer counter is stopped” according to the present invention means that when the counter is temporarily stopped, the counter temporarily stops after the counter is set to the initial value or 0. If the counter continues to count, but the counter is substantially stopped (does not time out) by continuing to clear and restart the counter before the counter times out, the counter value is set to the maximum security check time. This includes a case where the counter is substantially stopped (not timed out) by setting it longer than the processing time and avoiding a timeout during the security check. In addition, in the “period when the watchdog timer counter is stopped”, the system clock is set to a predetermined period from the occurrence of the out-of-designated area travel prohibition signal to the period from the occurrence of the out-of-designated area travel prohibition signal to immediately after the generation of the signal. After the clock has elapsed (for example, from the occurrence of the out-of-designated area travel prohibition signal to the falling edge or rising edge one clock after the system clock), part or all of the period from the rising edge of the output signal of the reset output terminal XRSTO Etc. are also included. Also, the WDT is built in the microcomputer, and at least the period during which the WDT counter is stopped is included in the security check that is started during the predetermined timing after the WDT timeout occurs, and the WDT is built in the microcomputer. In addition, at least a period during which the WDT counter is stopped is included in the security check that is started during the predetermined timing after the out-of-designated-area travel prohibition signal is generated.

このような構成とすれば、指定エリア外走行禁止信号に基づくリセット処理を行う際に、ウォッチドッグタイマのタイムアウトを制御プログラムによらずに(自動的に)停止させることができ、指定エリア外走行禁止信号に基づくリセット処理を迅速に行うことができる場合がある。   With such a configuration, when performing reset processing based on the travel prohibition signal outside the designated area, the watchdog timer time-out can be stopped (automatically) without depending on the control program. In some cases, the reset process based on the prohibition signal can be performed quickly.

また、本実施形態に係るパチンコ機100は、CPU(例えば、CPU304)と、遊技制御プログラムが少なくとも記憶されているROM(例えば、ROM306)と、を少なくとも備えた遊技台であって、前記遊技台は、パチンコ機またはスロットマシンであり、所定の条件が成立した場合(例えば、図186に示すタイムアウト時間が経過した場合)に、所定の信号(例えば、WDT起動信号(WDTタイムアウト信号)や、CPU内部の信号)を少なくとも発生させるウォッチドッグタイマ(例えば、WDT314、第一WDT314a、第二WDT314b)を備え、前記CPUは、前記所定の信号の発生を契機として前記遊技制御プログラムを所定のアドレス(例えば、図133に示す0000H番地)から実行可能であり、前記所定の信号の発生から前記遊技制御プログラムの実行開始までの時間を調整可能に構成されている、ことを特徴とする遊技台である。   Further, the pachinko machine 100 according to the present embodiment is a gaming machine including at least a CPU (for example, the CPU 304) and a ROM (for example, the ROM 306) in which at least a game control program is stored. Is a pachinko machine or a slot machine, and when a predetermined condition is satisfied (for example, when the timeout time shown in FIG. 186 elapses), a predetermined signal (for example, a WDT activation signal (WDT timeout signal) or CPU A watchdog timer (for example, WDT 314, first WDT 314a, second WDT 314b) that generates at least an internal signal), and the CPU triggers the game control program at a predetermined address (for example, the generation of the predetermined signal). , And can be executed from address 0000H shown in FIG. Are adjustably configured time from occurrence of a predetermined signal until the start of execution of the game control program, it is the amusement machine according to claim.

本実施形態に係るパチンコ機100によれば、遊技制御用プログラムが実行されるまでの時間を変化させることができ、遊技制御用プログラムの実行タイミング(例えば、当否判定の抽選タイミング)を把握するような不正行為を未然に防止でき、安定した遊技制御をおこなうことができる場合がある。   According to the pachinko machine 100 according to the present embodiment, the time until the game control program is executed can be changed, and the execution timing of the game control program (for example, the lottery timing for determination of success / failure) is grasped. In some cases, it is possible to prevent illegal acts and to perform stable game control.

なお、本発明に係るウォッチドッグタイマは、CPUと別体のもの、CPUに内蔵のもの、の両方を含み、前者の場合、リセット信号はウォッチドッグタイマからCPUに入力されるため信号線が外部に露出するが、後者の場合、リセット信号はCPU内部で配線されるため信号線は外部には露出しない。したがって、後者の場合には、WDTのタイムアウトに基づいてリセット信号が発生したか否か(CPUにリセットがかかったか否か)を隠蔽することができ、遊技制御用プログラムの実行タイミングを把握するような不正行為を、より確実に防止できる場合がある。   The watchdog timer according to the present invention includes both a CPU separate from the CPU and a built-in CPU. In the former case, the reset signal is input from the watchdog timer to the CPU, so the signal line is external. In the latter case, since the reset signal is wired inside the CPU, the signal line is not exposed to the outside. Therefore, in the latter case, it is possible to conceal whether or not the reset signal is generated based on the timeout of the WDT (whether or not the CPU is reset) and to grasp the execution timing of the game control program. In some cases, illegal acts can be prevented more reliably.

また、前記CPUと前記ROMを少なくとも内蔵するマイクロプロセッサ(例えば、基本回路302)を備え、前記マイクロプロセッサは、少なくとも所定の出力端子(例えば、リセット出力端子XRSTO)を有し、前記所定の出力端子は、少なくとも所定のタイミングで立ち上がることが可能なものであり、前記所定のタイミングは、前記遊技制御プログラムの実行開始前に行われるランダム遅延処理の開始前であってもよい。   The microprocessor further includes a microprocessor (for example, a basic circuit 302) including at least the CPU and the ROM, and the microprocessor has at least a predetermined output terminal (for example, a reset output terminal XRSTO), and the predetermined output terminal Can start at least at a predetermined timing, and the predetermined timing may be before the start of a random delay process performed before the execution of the game control program.

このような構成とすれば、所定の信号出力のタイミングと遊技制御プログラムの実行開始タイミングをずらすことが可能なため、遊技制御処理の特定の処理(例えばソフト乱数の更新処理、初期値更新処理等)の狙い撃ちを防止することができる場合がある。   With such a configuration, it is possible to shift the timing of the predetermined signal output and the execution start timing of the game control program, so that specific processing of game control processing (for example, soft random number update processing, initial value update processing, etc.) ) May be prevented.

また、前記CPUは、所定の出力端子(例えば、リセット出力端子XRSTO)からの信号(例えば、リセット出力信号出力)の出力の立上りタイミングまたは立下りタイミング(例えば、ローレベル信号からハイレベル信号に変化させる立上りタイミング)を、前記遊技制御プログラムの実行開始前に行われるランダム遅延処理の開始前に実行可能であってもよい。   Further, the CPU changes the rising timing or falling timing (for example, the low level signal to the high level signal) of the output of the signal (for example, the reset output signal output) from the predetermined output terminal (for example, the reset output terminal XRSTO). May be executed before the start of the random delay process performed before the execution of the game control program.

このような構成とすれば、遊技制御用プログラムが実行されるまでの時間を変化させながらも、リセット信号の発生から所定の信号の出力までの時間を一定にすることができ、安定した遊技制御をおこなうことができる場合がある。   With such a configuration, it is possible to make the time from the generation of the reset signal to the output of the predetermined signal constant while changing the time until the game control program is executed, and stable game control May be possible.

また、前記所定の出力端子はリセット信号を出力可能な端子であってもよい。このような構成とすれば、例えば、リセット信号を所定の電子部品に接続した場合、遊技制御前に電子部品が動作可能となり、不正な電波を送信した場合に電子部品が動作してしまうため、不正行為を発見しやすくなる場合がある。また、遊技制御プログラムの開始前に電子部品が動作可能なので、電子部品の作動開始タイミングと、遊技制御プログラムの実行開始タイミングとが異なると思わせることにより、遊技制御処理の特定の処理の狙い撃ちを防止することができる場合がある。   The predetermined output terminal may be a terminal capable of outputting a reset signal. With such a configuration, for example, when a reset signal is connected to a predetermined electronic component, the electronic component can operate before game control, and the electronic component operates when an unauthorized radio wave is transmitted. It may be easier to detect fraud. In addition, since electronic components can operate before the start of the game control program, by making the operation start timing of the electronic components different from the execution start timing of the game control program, it is possible to aim at specific processing of the game control processing. There are cases where it can be prevented.

また、少なくとも、セキュリティモードおよびユーザモードを備え、前記遊技制御プログラムは、前記ユーザモードで実行されるユーザプログラムであってもよい。   Further, at least a security mode and a user mode may be provided, and the game control program may be a user program executed in the user mode.

このような構成とすれば、所定の信号出力のタイミングとユーザプログラムの実行開始タイミングをずらすことが可能なため、遊技制御処理の特定の処理(例えばソフト乱数の更新処理、初期値更新処理等)の狙い撃ちを防止することができる場合がある。   With such a configuration, it is possible to shift the timing of the predetermined signal output and the execution start timing of the user program, so that specific processing of game control processing (for example, soft random number update processing, initial value update processing, etc.) In some cases, it is possible to prevent sniper shooting.

また、リセット要因を示す所定の情報(例えば、直前に発生したリセット要因がシステムリセットであるか否かを示す情報)が少なくともセットされるレジスタ(例えば、図175に示す第4内部情報レジスタ)を備え、前記遊技制御プログラムは、前記所定の情報に基づく処理(例えば、第4内部情報レジスタから読み出した情報を汎用レジスタに書き込む処理)を含まないように(実行しないように)構成してもよい。   In addition, a register (for example, the fourth internal information register shown in FIG. 175) in which at least predetermined information indicating a reset factor (for example, information indicating whether the reset factor generated immediately before is a system reset) is set The game control program may be configured not to include (do not execute) processing based on the predetermined information (for example, processing to write information read from the fourth internal information register to the general-purpose register). .

このような構成とすれば、故意にCPUのリセットを発生させて特定の処理(例えばソフト乱数の更新処理、初期値更新処理等)の実行タイミングなどを狙うような不正行為を防止できる場合がある。   With such a configuration, there is a case where it is possible to prevent an illegal act such as intentionally generating a reset of the CPU and aiming at an execution timing of a specific process (for example, a soft random number update process, an initial value update process, etc.). .

また、前記マイクロプロセッサは、前記ウォッチドッグタイマと、正当な指定エリア以外の記憶領域のコードが実行されたことに基づいて、指定エリア外走行禁止信号を少なくとも発生させることが可能な指定エリア外走行禁止回路(例えば、指定エリア外走行禁止回路3142)と、を少なくとも有し、前記指定エリア外走行禁止信号が発生してから前記所定のタイミングの間に開始されるセキュリティチェック中に、前記ウォッチドッグタイマのカウンタが停止している期間が少なくとも含まれていてもよい。   Further, the microprocessor travels outside the designated area capable of generating at least a running prohibition signal outside the designated area based on the execution of the watchdog timer and a code in a storage area other than the legitimate designated area. At least a prohibition circuit (for example, a travel prohibition circuit 3142 outside the designated area), and during the security check that is started during the predetermined timing after the travel prohibition signal outside the designated area is generated, At least a period during which the counter of the timer is stopped may be included.

このような構成とすれば、指定エリア外走行禁止信号に基づくリセット処理を行う際に、ウォッチドッグタイマのタイムアウトを制御プログラムによらずに(自動的に)停止させることができ、指定エリア外走行禁止信号に基づくリセット処理を迅速に行うことができる場合がある。   With such a configuration, when performing reset processing based on the travel prohibition signal outside the designated area, the watchdog timer time-out can be stopped (automatically) without depending on the control program. In some cases, the reset process based on the prohibition signal can be performed quickly.

また、本実施形態に係るパチンコ機100は、CPU(例えば、CPU304)と、遊技制御プログラムが少なくとも記憶されているROM(例えば、ROM306)と、を少なくとも備えた遊技台であって、前記遊技台は、パチンコ機またはスロットマシンであり、前記CPUは、少なくとも特定のレジスタ(例えば、Tレジスタ)を備え、前記遊技制御プログラムは、所定の処理(例えば、図102に示す特図1関連抽選処理)と、該所定の処理から呼び出される所定のサブ処理(例えば、図105のステップS1103の「保留数記憶領域(RWM領域のアドレスF040H)に記憶された保留数を、Aレジスタに転送する処理」)を少なくとも含み、前記所定の処理は、第一の処理と第二の処理(例えば、図102に示す、特別図柄乱数移行処理、特別図柄当り抽選処理、表示図柄抽選処理、特別図柄変動時間抽選処理、特別図柄変動時間設定処理、特別図柄保留内情報移行処理のうちの2つの処理である第一の処理と第二の処理)を少なくとも含み、前記所定のサブ処理は、前記第一の処理と前記第二の処理の両方から呼び出され、前記特定のレジスタを用いた処理は、前記所定のサブ処理で少なくとも実行可能であることを特徴とする遊技台である。   Further, the pachinko machine 100 according to the present embodiment is a gaming machine including at least a CPU (for example, the CPU 304) and a ROM (for example, the ROM 306) in which at least a game control program is stored. Is a pachinko machine or a slot machine, and the CPU includes at least a specific register (for example, a T register), and the game control program performs a predetermined process (for example, the special drawing 1 related lottery process shown in FIG. 102). And a predetermined sub-process called from the predetermined process (for example, “a process of transferring the number of holds stored in the number-of-holds storage area (address F040H of the RWM area) to the A register” in step S1103 in FIG. 105) The predetermined process includes a first process and a second process (for example, a special symbol shown in FIG. 102). The first process and the second process among the number transition process, the special symbol lottery process, the display symbol lottery process, the special symbol variation time lottery process, the special symbol variation time setting process, and the special symbol on-hold information migration process The predetermined sub-process is called from both the first process and the second process, and the process using the specific register is executed at least in the predetermined sub-process. It is a game stand characterized by being possible.

なお、本発明に係る第一の処理は、主制御部メイン処理(メインループ処理)から呼び出される処理(例えば、図81の主制御部メイン処理に示す各処理)、本発明に係る第二の処理は、主制御部タイマ割込処理(タイマ割込処理)から呼び出される処理(例えば、図85の主制御部タイマ割込処理に示す各処理)でもよく、本発明に係る所定のサブ処理は、これらの主制御部メイン処理から呼び出される処理と、主制御部タイマ割込処理から呼び出される処理の両方から呼び出されるものでもよい。   The first process according to the present invention is a process called from the main control section main process (main loop process) (for example, each process shown in the main control section main process of FIG. 81), and the second process according to the present invention. The process may be a process called from the main control unit timer interrupt process (timer interrupt process) (for example, each process shown in the main control unit timer interrupt process of FIG. 85), and the predetermined sub-process according to the present invention is These may be called from both the process called from the main control part main process and the process called from the main control part timer interrupt process.

本実施形態に係るパチンコ機100によれば、2つの異なる処理(第一の処理と第二の処理)から呼び出されるサブ処理において、共通の特定のレジスタを用いた処理を実行するため、遊技制御プログラムを簡素化することができ、プログラムのコード量を従来よりも減らすことができる上に、コーディングミスの発生を減少させることができ、安定した遊技制御を行うことができる場合がある。   According to the pachinko machine 100 according to the present embodiment, in the sub-process called from two different processes (the first process and the second process), the process using the common specific register is executed. The program can be simplified, the code amount of the program can be reduced as compared with the conventional case, the occurrence of coding errors can be reduced, and stable game control can be performed in some cases.

また、前記CPUは、所定の命令(例えば、図135に示すRST命令)を少なくとも実行可能であり、前記所定の命令は、該命令が実行された処理から、予め定められたアドレス(例えば、0008H、0010H、0018H、0020H、0028H、0030H、0038H、0040Hの8種類のアドレス)に配置された処理のみを呼出可能な命令であり、前記所定のサブ処理は、前記第一の処理と前記第二の処理の両方から前記所定の命令を用いて呼出可能な処理のうちの一つであってもよい。   The CPU can execute at least a predetermined instruction (for example, the RST instruction shown in FIG. 135). , 0010H, 0018H, 0020H, 0028H, 0030H, 0038H, and 0040H), and the predetermined sub-process includes the first process and the second process. It may be one of processes that can be called from both of the processes using the predetermined instruction.

このような構成とすれば、遊技制御プログラムの解析や改ざんが困難となるため、不正にサブ処理を読み出すプログラムを組み込んで不正な利益を得ようとする行為や、不正にRAMに記憶された内部情報を取得するような行為を未然に防止できる場合がある。   Such a configuration makes it difficult to analyze and falsify the game control program. Therefore, it is possible to obtain an illegal profit by incorporating a program for reading out the sub-processing illegally, or an internal operation stored in the RAM illegally. There are cases where an act of acquiring information can be prevented in advance.

また、前記CPUは、前記特定のレジスタに値をセットする機能のうち、ロード命令を受けたことに基づいて行われるもの以外のものとして、所定の値を初期値としてセットする機能(例えば、8ビットロード(転送)命令、16ビットロード(転送)命令、スタック操作命令(16ビットロード命令の一種)、複合命令など)を少なくとも有してもよい。   Further, the CPU sets a predetermined value as an initial value as a function other than a function that is performed based on receiving a load command among functions that set a value in the specific register (for example, 8 A bit load (transfer) instruction, a 16-bit load (transfer) instruction, a stack operation instruction (a kind of 16-bit load instruction), a compound instruction, and the like.

このような構成とすれば、遊技制御プログラムの設計の自由度を高めることができ、安定した遊技制御を行うことができる場合がある。   With such a configuration, the degree of freedom in designing the game control program can be increased, and stable game control can be performed in some cases.

また、演出制御を行う演出制御手段(例えば、第1副制御部400または第2副制御部500)を備え、前記CPUは、前記演出制御手段に搭載されず、遊技制御を行う遊技制御手段(例えば、主制御部300)にのみに搭載されていてもよい。また、演出制御を行う演出制御手段(例えば、第1副制御部400または第2副制御部500)と、払出制御を行う払出制御手段(例えば、払出制御部600)と、を備え、前記CPUは、前記演出制御手段に搭載されず、遊技制御を行う遊技制御手段(例えば、主制御部300)および前記払出制御手段のうちの少なくとも一方に搭載されていてもよい。   Further, it includes an effect control means (for example, the first sub-control unit 400 or the second sub-control part 500) for effect control, and the CPU is not mounted on the effect control means, and a game control means (game control means for performing game control). For example, it may be mounted only on the main control unit 300). Further, the CPU includes an effect control means (for example, the first sub-control unit 400 or the second sub-control part 500) for performing effect control, and a pay-out control means (for example, the pay-out control unit 600) for performing pay-out control. May be mounted on at least one of the game control means (for example, the main control unit 300) for performing game control and the payout control means, without being mounted on the effect control means.

このような構成とすれば、遊技制御プログラムの解析や改ざんを、より困難にすることができる場合がある。   With such a configuration, it may be possible to make analysis and alteration of the game control program more difficult.

また、前記CPUと前記ROMを少なくとも内蔵するマイクロプロセッサ(例えば、基本回路302)を備え、前記マイクロプロセッサは、少なくとも所定の出力端子(例えば、リセット出力端子XRSTO)を有し、前記所定の出力端子は、少なくとも所定のタイミング(例えば、ランダム延長機能の実行前)で立ち上がることが可能なものであり、前記マイクロプロセッサは、所定の条件が成立した場合(例えば、図186に示すタイムアウト時間が経過した場合)に、所定の信号(例えば、WDT起動信号(WDTタイムアウト信号)や、CPU内部の信号)を少なくとも発生させることが可能なウォッチドッグタイマ(例えば、WDT314、第一WDT314a、第二WDT314b)と、正当な指定エリア以外の記憶領域のコードが実行されたことに基づいて、指定エリア外走行禁止信号を少なくとも発生させることが可能な指定エリア外走行禁止回路(例えば、指定エリア外走行禁止回路3142)と、を少なくとも有し、前記指定エリア外走行禁止信号が発生してから前記所定のタイミングの間に開始されるセキュリティチェック中に、前記ウォッチドッグタイマのカウンタが停止している期間が少なくとも含まれていてもよい。   The microprocessor further includes a microprocessor (for example, a basic circuit 302) including at least the CPU and the ROM, and the microprocessor has at least a predetermined output terminal (for example, a reset output terminal XRSTO), and the predetermined output terminal Can be started up at least at a predetermined timing (for example, before the execution of the random extension function), and when the predetermined condition is satisfied (for example, the timeout time shown in FIG. 186 has elapsed) A watchdog timer (for example, WDT 314, first WDT 314a, second WDT 314b) capable of generating at least a predetermined signal (for example, a WDT activation signal (WDT timeout signal) or a signal inside the CPU) , Storage area code other than the legitimate designated area A non-designated area travel prohibition circuit (for example, a non-designated area travel prohibition circuit 3142) capable of generating at least a non-designated area travel prohibition signal based on the execution of The security check started during the predetermined timing after the outside travel prohibition signal is generated may include at least a period during which the watchdog timer counter is stopped.

このような構成とすれば、指定エリア外走行禁止信号に基づくリセット処理を行う際に、ウォッチドッグタイマのタイムアウトを制御プログラムによらずに(自動的に)停止させることができ、指定エリア外走行禁止信号に基づくリセット処理を迅速に行うことができる場合がある。   With such a configuration, when performing reset processing based on the travel prohibition signal outside the designated area, the watchdog timer time-out can be stopped (automatically) without depending on the control program. In some cases, the reset process based on the prohibition signal can be performed quickly.

また、所定の周期で数値を変化させる乱数回路と、所定の抽出条件が成立したことに基づいて前記乱数回路から数値を抽出し、少なくとも該数値に基づいて遊技に関する抽選を行う処理を含む遊技制御処理を行うためのCPUと、前記遊技制御処理の内容が予め記憶されているROMと、一時的にデータを記憶するためのRAMと、を含んで構成されたマイクロコンピューターを備え、前記CPUは、電源が遮断される場合に実行される処理であって、前記RAMの所定領域に当該処理が行われたことを示す所定のデータを記憶させる処理を含む電断時処理を行い、前記CPUは、前記所定のデータが記憶されている場合には、前記RAM領域を初期化する初期化処理を行うことなく前記遊技制御処理を復帰させることが可能である一方、前記所定のデータが記憶されていない場合には、該初期化処理を行うことなく前記遊技制御処理を復帰させることが不可能であり、前記マイクロコンピューターは、電源が投入された場合に入力される起動信号が入力されてから前記遊技制御処理が開始されるまでの時間の長さをランダムに変動させる時間変動処理を行う時間変動用回路、および正当な指定エリア以外の記憶領域のコードが実行されたことに基づいて指定エリア外走行禁止信号を発生させる指定エリア外走行禁止回路を、含んで構成され、前記CPUは、前記起動信号が入力されたことに基づいて実行されるシステムリセットの場合には、前記マイクロコンピューターによって、前記ROMが記憶している前記遊技制御処理の内容に異常がないかをチェックする処理および前記時間変動処理を含むセキュリティチェックが行われた後に、前記遊技制御処理を開始し、前記CPUは、前記指定エリア外走行禁止信号が発生したことに基づいて実行されるユーザリセットの場合には、前記マイクロコンピューターによって、前記セキュリティチェックが行われないことで、前記時間変動処理が行われず、前記遊技制御処理を開始し、前記システムリセットおよび前記ユーザリセットのいずれの場合であっても、前記CPUによって前記電断処理が行われず、前記所定領域に前記所定のデータが記憶されないことを特徴とする遊技台としてもよい。   Also, a game control including a random number circuit that changes a numerical value at a predetermined period, and a process of extracting a numerical value from the random number circuit based on the fact that a predetermined extraction condition is satisfied and performing a lottery regarding a game based on the numerical value And a microcomputer including a CPU for performing processing, a ROM in which the contents of the game control processing are stored in advance, and a RAM for temporarily storing data. A process that is executed when the power is shut off, and includes a process of storing predetermined data indicating that the process has been performed in a predetermined area of the RAM. When the predetermined data is stored, it is possible to return the game control process without performing an initialization process for initializing the RAM area. If the predetermined data is not stored, it is impossible to return the game control process without performing the initialization process, and the microcomputer is activated when the power is turned on. A time variation circuit for performing a time variation process for randomly varying the length of time from when a signal is input to when the game control process is started, and a code for a storage area other than a valid designated area are executed. A non-designated area running prohibition circuit for generating a non-designated area running prohibition signal based on the above, and in the case of a system reset that is executed based on the input of the start signal A process for checking whether the contents of the game control process stored in the ROM are abnormal by the microcomputer; and After the security check including the inter-process variation process is performed, the game control process is started, and in the case of a user reset that is executed based on the occurrence of the out-of-designated-area travel prohibition signal, the CPU Since the security check is not performed by the microcomputer, the time variation process is not performed, the game control process is started, and the CPU performs the game control process regardless of the system reset or the user reset. The game machine may be characterized in that no power interruption process is performed and the predetermined data is not stored in the predetermined area.

次に、図202を用いて、図141のステップS2101における初期設定処理の詳細について説明する。同図は、図141のステップS2101における初期設定処理のフローチャートである。   Next, details of the initial setting process in step S2101 of FIG. 141 will be described with reference to FIG. This figure is a flowchart of the initial setting process in step S2101 of FIG.

まず、最初に実行されるステップS2101aでは、初期設定1を行う。この初期設定1では、CPU1304のスタックポインタ(SP)へのスタック初期値の設定(仮設定)、割込マスクの設定、I/O1310の初期設定、RAM1308に記憶する各種変数の初期設定等を行う。   First, initial setting 1 is performed in step S2101a executed first. In this initial setting 1, a stack initial value is set to the stack pointer (SP) of the CPU 1304 (temporary setting), an interrupt mask is set, an I / O 1310 is initialized, various variables stored in the RAM 1308 are initialized, and the like. .

ステップS2101bでは、低電圧信号がオンであるか否か、すなわち、電圧監視回路1330が、主制御部1300に供給されている電源の電圧値が所定の値(本実施形態では9V)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(CPU1304が電源の遮断を検知した場合)には繰り返しこのステップS2101bを実行し、低電圧信号がオフの場合(CPU1304が電源の遮断を検知していない場合)にはステップS2101cに進む。なお、電源が投入された直後で未だ上記所定の値(9V)に達しない場合にも、供給電圧がその所定の値以上になるまでステップS2101bは繰り返し実行される。   In step S2101b, whether or not the low voltage signal is ON, that is, the voltage monitoring circuit 1330 has a voltage value of the power source supplied to the main control unit 1300 is less than a predetermined value (9 V in this embodiment). In this case, it is monitored whether or not a low voltage signal indicating that the voltage has dropped is output. Then, when the low voltage signal is on (when the CPU 1304 detects that the power is cut off), this step S2101b is repeatedly executed, and when the low voltage signal is off (when the CPU 1304 has not detected the power supply is cut off). Then, the process proceeds to step S2101c. Even if the predetermined value (9 V) is not yet reached immediately after the power is turned on, step S2101b is repeatedly executed until the supply voltage becomes equal to or higher than the predetermined value.

ステップS2101cでは、初期設定2を行う。この処理の詳細は、図160を用いて説明した内容と同様であるため、説明を省略する。   In step S2101c, initial setting 2 is performed. Details of this processing are the same as the contents described with reference to FIG.

ステップS2101dでは、設定キースイッチがオンであるか否か判定される。ここで、設定キースイッチとは、スロットマシン1100における遊技者の有利度(例えば1〜6まで6種類の有利度)を設定するためのスイッチである。このスイッチがオンである場合にはステップS2101iに進み、そうでない場合にはステップS2101eに進む。   In step S2101d, it is determined whether or not the setting key switch is on. Here, the setting key switch is a switch for setting the player's advantage (for example, six advantages from 1 to 6) in the slot machine 1100. If this switch is on, the process proceeds to step S2101i; otherwise, the process proceeds to step S2101e.

ステップS2101eでは、RAM1308に記憶されているデータに異常があるか否か判定される。ここで判定されるデータは、スロットマシン1100の電源が落されるかあるいは上述の瞬断によってRAM1308に退避されたデータである(図142のステップS2221参照)。すなわち、RAM1308にデータが確実に退避されているか否かが、このステップS2101eで判定される。なお、この処理の詳細は、図159のステップS3007において説明した内容と同様である。このデータに異常がある場合にはステップS2101kに進み、異常がない場合にはステップS2101fに進む。   In step S2101e, it is determined whether or not the data stored in the RAM 1308 is abnormal. The data determined here is data saved in the RAM 1308 by turning off the power of the slot machine 1100 or by the instantaneous interruption described above (see step S2221 in FIG. 142). That is, it is determined in this step S2101e whether or not the data is surely saved in the RAM 1308. The details of this process are the same as the contents described in step S3007 in FIG. If there is an abnormality in this data, the process proceeds to step S2101k, and if there is no abnormality, the process proceeds to step S2101f.

ステップS2101fでは、強制RWMクリアがON状態か否かを判定する。具体的には、電源が投入され、RWMクリアボタン(不図示)が長押し(例えば、5秒以上の押下)されたことに基づき、強制RWMクリアのON状態とする。そして、強制RWMクリアがON状態の場合はステップS2101jに移行し、OFF状態の場合はステップS2101gに進む。   In step S2101f, it is determined whether forced RWM clear is in an ON state. Specifically, when the power is turned on and a RWM clear button (not shown) is pressed long (for example, pressed for 5 seconds or more), the forced RWM clear is turned on. If the forced RWM clear is in the ON state, the process proceeds to step S2101j. If the forced RWM clear is in the OFF state, the process proceeds to step S2101g.

ステップS2101gでは、RAM1308に記憶されたデータをCPU1304のレジスタに書き戻し、レジスタの状態を電断処理が実行される直前の状態に復帰させる処理が実行される。なお、この処理の詳細は、図159のステップS3009において説明した内容と同様である。この処理の後ステップS2101hに進む。   In step S2101g, data stored in the RAM 1308 is written back to the register of the CPU 1304, and processing for restoring the state of the register to the state immediately before the power interruption processing is executed. The details of this process are the same as the contents described in step S3009 of FIG. After this process, the process proceeds to step S2101h.

ステップS2101hでは、WDT1314を起動させる処理を行う。ここでは、WDT1314の起動許可及び初期値の設定等を行う。なお、本実施形態では、WDT1314に、初期値として32.8msに相当する数値を設定する。その後、この初期設定処理を終了する。   In step S2101h, processing for starting the WDT 1314 is performed. Here, activation permission of WDT 1314, setting of an initial value, and the like are performed. In the present embodiment, a numerical value corresponding to 32.8 ms is set in the WDT 1314 as an initial value. Thereafter, the initial setting process is terminated.

ステップS2101dにおいて、設定キースイッチがオンの場合に進むステップS2101iでは、設定キーの状態に従って設定値変更処理が実行される。その後、ステップS2101jに進む。   In step S2101d, when the setting key switch is turned on, in step S2101i, the setting value changing process is executed according to the state of the setting key. Thereafter, the process proceeds to step S2101j.

ステップS2101jでは、RWMクリア処理を行う。この処理の詳細は、図159のステップS3103において説明した内容と同様である。この処理の後、ステップS2101hに進む。   In step S2101j, RWM clear processing is performed. The details of this process are the same as the contents described in step S3103 in FIG. After this process, the process proceeds to step S2101h.

ステップS2101eにおいて、RAM1308のデータに異常があると判定された場合に進むステップS2101kでは、RWMエラー処理を行う。このRWMエラー処理では、使用スタックエリアを除く全てのRAM(RWM)1308の記憶領域をクリアする準備などを行った後に、無限ループ状態に移行する。なお、この状態からは、電源を入れなおした後、設定キースイッチを操作することで遊技が開始できるようになる。   In step S2101k, which proceeds when it is determined in step S2101e that the data in the RAM 1308 is abnormal, RWM error processing is performed. In this RWM error processing, after making preparations for clearing the storage areas of all RAM (RWM) 1308 except for the used stack area, the process shifts to an infinite loop state. In this state, the game can be started by operating the setting key switch after the power is turned on again.

図203は、図146に示すタイマ回路311の構成を詳しく示したブロック図である。   FIG. 203 is a block diagram showing in detail the configuration of timer circuit 311 shown in FIG.

タイマ回路311は、8ビットのプログラマブルカウンタを3チャネル内蔵している。すなわち、図203に示すように、3つのタイマ回路(タイマ回路0〜2)が用意されている。各タイマ回路は、ダウンカウンタ回路であって、それぞれ独立した動作モードの設定が可能である。これら3つのタイマ回路の構成はいずれも同じであるため、ここではタイマ回路0を用いて説明する。   The timer circuit 311 has three channels of 8-bit programmable counters. That is, as shown in FIG. 203, three timer circuits (timer circuits 0 to 2) are prepared. Each timer circuit is a down-counter circuit, and an independent operation mode can be set. Since these three timer circuits have the same configuration, the description will be made using the timer circuit 0 here.

タイマ回路311は、プリスケーラレジスタ3111、制御レジスタ3112、カウンタ設定レシジスタ3113、およびカウンタレジスタ3114の4種類のレジスタと、プリスケーラ3115と、8ビットカウンタ3116を有する。   The timer circuit 311 includes four types of registers, a prescaler register 3111, a control register 3112, a counter setting register 3113, and a counter register 3114, a prescaler 3115, and an 8-bit counter 3116.

このタイマ回路311は、プリスケーラレジスタ3111で選択されたカウントクロックを8ビットカウンタ3116のクロック源とする。プリスケーラレジスタ3111は、8ビットカウンタ3116を動作させるためのクロック数を選択する8ビットのレジスタである。このプリスケーラレジスタ3111に、初期値である「00H」を設定した場合には、8ビットカウンタ3116を動作させるためのカウントクロックは停止になる。「01H」を設定した場合には、カウントクロックはシステムクロック(SCLK)になる。また、カウントクロックは、「02H」を設定した場合にはシステムクロック/2になり、「03H」を設定した場合にはシステムクロック/3になり、・・・「FEH」を設定した場合にはシステムクロック/254になり、「FFH」を設定した場合にはシステムクロック/255になる。   The timer circuit 311 uses the count clock selected by the prescaler register 3111 as a clock source for the 8-bit counter 3116. The prescaler register 3111 is an 8-bit register that selects the number of clocks for operating the 8-bit counter 3116. When the initial value “00H” is set in the prescaler register 3111, the count clock for operating the 8-bit counter 3116 is stopped. When “01H” is set, the count clock is the system clock (SCLK). The count clock is set to system clock / 2 when "02H" is set, becomes system clock / 3 when set to "03H", and so on when "FEH" is set. System clock / 254, and when “FFH” is set, system clock / 255.

制御レジスタ3112は、割込みフラグ3110のモニタ、割込みの許可や禁止、割込みフラグ3110のクリア、8ビットカウンタ3116の各種動作条件を設定する8ビットのレジスタである。   The control register 3112 is an 8-bit register for monitoring the interrupt flag 3110, enabling or disabling interrupts, clearing the interrupt flag 3110, and setting various operating conditions of the 8-bit counter 3116.

このタイマ回路311では、カウンタ設定レジスタ3113にカウント値を書き込むことによって、8ビットカウンタ3116のダウンカウントが開始される。カウンタ設定レジスタ3113は、8ビットカウンタ3116のカウント値を設定するレジスタである。なお、設定値に「00H」を書き込んだ場合は、8ビットカウンタ3116は動作しない。   In the timer circuit 311, the count value is written in the counter setting register 3113, so that the 8-bit counter 3116 starts to count down. The counter setting register 3113 is a register for setting the count value of the 8-bit counter 3116. When “00H” is written in the set value, the 8-bit counter 3116 does not operate.

カウンタレジスタ3114は、CPUレジスタリード信号の入力タイミングに合わせて8ビットカウンタ3116の値を読み出すためのレジスタである。   The counter register 3114 is a register for reading the value of the 8-bit counter 3116 in accordance with the input timing of the CPU register read signal.

8ビットカウンタ3116がタイムアウトすると、タイムアウト信号が8ビットカウンタ3116からカウンタ回路312に出力される。なお、割込みが許可されている場合には、割込みフラグ3110から割込み信号が割込み制御回路3100に出力される。また、8ビットの制御レジスタの0ビット目に、「0」を設定しておくと、ワンタイムモード(初期値)になり、タイムアウト発生後、8ビットカウンタ3116は動作を停止するが、「1」を設定しておくと、リピートモードになり、タイムアウト発生後も、8ビットカウンタ3116は継続して動作を行い、タイムアウト信号が定期的に出力される。   When the 8-bit counter 3116 times out, a timeout signal is output from the 8-bit counter 3116 to the counter circuit 312. If an interrupt is permitted, an interrupt signal is output from the interrupt flag 3110 to the interrupt control circuit 3100. If “0” is set in the 0th bit of the 8-bit control register, a one-time mode (initial value) is set. After a timeout occurs, the 8-bit counter 3116 stops operating, but “1 Is set to repeat mode, and even after a timeout occurs, the 8-bit counter 3116 continues to operate, and a timeout signal is periodically output.

以上説明した、各レジスタの設定値は、内蔵ROM306のプログラムデータエリアに記憶されている。プログラムデータエリアに記憶されている各設定値は、図159に示す主制御部メイン処理における初期設定2(ステップS3005)において、プログラムデータエリアから呼び出され、各レジスタに設定されるか、あるいは主制御部メイン処理や図162に示す主制御部割込処理において呼び出され、各レジスタに設定される。   The setting values of each register described above are stored in the program data area of the built-in ROM 306. Each set value stored in the program data area is called from the program data area and set in each register in the initial setting 2 (step S3005) in the main process of the main control unit shown in FIG. Is called in the main control process and the main control section interrupt process shown in FIG. 162 and set in each register.

図203に示すタイマ回路311では、プリスケーラレジスタ3111に、初期値の「00H」を設定しておくか、あるいはカウンタ設定レジスタ3113に「00H」を書き込んでおけば、8ビットカウンタ3116はダウンカウントを開始せず、タイムアウト信号は出力されない。   In the timer circuit 311 shown in FIG. 203, if the initial value “00H” is set in the prescaler register 3111 or “00H” is written in the counter setting register 3113, the 8-bit counter 3116 counts down. Does not start and no timeout signal is output.

図204は、図146に示すカウンタ回路312の構成を詳しく示したブロック図である。   FIG. 204 is a block diagram showing in detail the configuration of counter circuit 312 shown in FIG.

カウンタ回路312は、8ビットのプログラマブルカウンタを4チャネル内蔵している。すなわち、図204に示すように、4つのカウンタ回路(カウンタ回路0〜3)が用意されている。各カウンタ回路は、アップカウンタ回路であって、それぞれ独立した動作モードの設定が可能である。これら4つのカウンタ回路の構成はいずれも同じであるため、ここではカウンタ回路0を用いて説明する。   The counter circuit 312 has four channels of 8-bit programmable counters. That is, as shown in FIG. 204, four counter circuits (counter circuits 0 to 3) are prepared. Each counter circuit is an up-counter circuit, and an independent operation mode can be set. Since these four counter circuits have the same configuration, the counter circuit 0 will be described here.

カウンタ回路は、制御レジスタ3121、8ビットカウンタ3122、カウンタ設定レジスタ3123、およびカウンタレジスタ3124を有する。制御レジスタ3121は、内部バスを流れる各種の信号を取得可能であり、図204には、制御レジスタ3121が、8種類の信号を取得可能であることが示されている。これら8種類の信号は、システムクロック信号(SCLK)、図203に示すタイマ回路0〜2それぞれからのタイムアウト信号、CPUコアのメモリリクエスト信号(XMREQ信号)、CPUコアのライト信号(XWR信号)、CPUコアのIOリクエスト信号(XIORQ信号)、およびCPUコアの割込み要求応答信号(マスカブル割込みアクノリッジサイクル;XINTACK信号)である。制御レジスタ3121は、8ビットカウンタ3122を動作させるためのクロック源を選択する8ビットのレジスタである。すなわち、8本の信号線から入力されるいずれの信号をクロック源にするかを選択するものである。また、制御レジスタ3121は、8ビットカウンタ3122の許可や禁止を設定するレジスタでもある。   The counter circuit includes a control register 3121, an 8-bit counter 3122, a counter setting register 3123, and a counter register 3124. The control register 3121 can acquire various signals flowing through the internal bus, and FIG. 204 shows that the control register 3121 can acquire eight types of signals. These eight kinds of signals are a system clock signal (SCLK), a timeout signal from each of the timer circuits 0 to 2 shown in FIG. 203, a CPU core memory request signal (XMREQ signal), a CPU core write signal (XWR signal), CPU core IO request signal (XIORQ signal) and CPU core interrupt request response signal (maskable interrupt acknowledge cycle; XINTACK signal). The control register 3121 is an 8-bit register that selects a clock source for operating the 8-bit counter 3122. In other words, it selects which signal input from the eight signal lines is used as the clock source. The control register 3121 is also a register for setting permission / prohibition of the 8-bit counter 3122.

図205は、制御レジスタ3121を詳しく説明するための図である。   FIG. 205 is a diagram for explaining the control register 3121 in detail.

図205に示すように、制御レジスタ3121は8ビットのレジスタである。5〜7ビット目は「0」が設定されたままであり、使用されていない。   As shown in FIG. 205, the control register 3121 is an 8-bit register. In the fifth to seventh bits, “0” remains set and is not used.

4ビット目は8ビットカウンタ3122の許可や禁止を設定するビットである。この4ビット目に、初期値である「0」が設定されると8ビットカウンタ3122は動作を停止し、「1」が設定されると8ビットカウンタ3122は動作を開始する。   The fourth bit is a bit for setting permission / prohibition of the 8-bit counter 3122. When the initial value “0” is set in the fourth bit, the 8-bit counter 3122 stops operating, and when “1” is set, the 8-bit counter 3122 starts operating.

3ビット目は8ビットカウンタ3122のカスケード接続を設定するビットである。詳細は後述するが、カウンタ回路0の8ビットカウンタ3122と、カウンタ回路1の8ビットカウンタ3122はカスケード接続が可能であり、カウンタ回路2の8ビットカウンタ3122と、カウンタ回路3の8ビットカウンタ3122もカスケード接続が可能である。すなわち、カウンタ回路0の8ビットカウンタ3122と、カウンタ回路1の8ビットカウンタ3122が第1の組になっており、カウンタ回路2の8ビットカウンタ3122と、カウンタ回路3の8ビットカウンタ3122が第2の組になっている。同一組内で、いずれか一方の制御レジスタ3121の3ビット目に「1」が設定されると、カスケード接続が優先される。すなわち、他方の制御レジスタ3121の3ビット目に「0」が設定されていても、カスケード接続が設定され、「1」は「0」より優先される設定値である。   The third bit is a bit for setting the cascade connection of the 8-bit counter 3122. Although details will be described later, the 8-bit counter 3122 of the counter circuit 0 and the 8-bit counter 3122 of the counter circuit 1 can be cascaded, and the 8-bit counter 3122 of the counter circuit 2 and the 8-bit counter 3122 of the counter circuit 3 are connected. Cascade connection is also possible. That is, the 8-bit counter 3122 of the counter circuit 0 and the 8-bit counter 3122 of the counter circuit 1 are in the first set, and the 8-bit counter 3122 of the counter circuit 2 and the 8-bit counter 3122 of the counter circuit 3 are the first set. It is a set of two. When “1” is set in the third bit of one of the control registers 3121 in the same group, the cascade connection is prioritized. That is, even if “0” is set in the third bit of the other control register 3121, cascade connection is set, and “1” is a setting value that has priority over “0”.

2〜0ビット目は、8ビットカウンタ3122のクロック源を設定するビットである。すなわち、カウンタ回路312の更新源になる信号を設定するためのビットである。この2〜0ビット目に、初期値の「000」が設定されるとシステムクロック信号(SCLK)が8ビットカウンタ3122のクロック源になり、「001」が設定されるとタイマ回路0からのタイムアウト信号がクロック源になり、「010」が設定されるとタイマ回路1からのタイムアウト信号がクロック源になり、「011」が設定されるとタイマ回路2からのタイムアウト信号がクロック源になる。システムクロック信号(SCLK)は、制御レジスタ3121に定期的に入力される信号である。また、タイマ回路311をリピートモードに設定しておくと、タイムアウト信号が制御レジスタ3121に定期的に入力される。一方、メモリリクエスト信号(XMREQ信号)、ライト信号(XWR信号)、IOリクエスト信号(XIORQ信号)、割込み要求応答信号(XINTACK信号)は、制御レジスタ3121に不定期的に入力される信号である。2〜0ビット目に、「100」が設定されるとライト信号(XWR信号)が8ビットカウンタ3122のクロック源になり、「101」が設定されるとメモリリクエスト信号(XMREQ信号)がクロック源になり、「110」が設定されるとIOリクエスト信号(XIORQ信号)がクロック源になり、「111」が設定されると割込み要求応答信号(XINTACK信号)がクロック源になる。このクロック源を設定する設定値は、内蔵ROM306のプログラムデータエリアに記憶されており、図159に示す主制御部メイン処理における初期設定2(ステップS3005)において、プログラムデータエリアから呼び出され、制御レジスタ3121に設定される。なお、基本回路の内部的には、内蔵RAM308への信号は、メモリリクエスト信号(XMREQ信号)とIOリクエスト信号(XIORQ信号)とのうち、メモリマップド方式を採用した場合には、メモリリクエスト信号(XMREQ信号)が用いられ、IOマップド方式を採用した場合にはIOリクエスト信号(XIORQ信号)が用いられる。以上説明したように、制御レジスタ3121の2ビット目が、定期的に入力される信号をクロック源とした(第2の条件とした)場合には「0」であり、不定期的に入力される信号をクロック源とした(第1の条件とした)場合には「1」であり、所定ビット目の一例に相当する。こうしておくことで、開発者や設定者は、制御レジスタ3121の2ビット目を見るだけで、クロック源に定期に入力される信号が用いられているか否かを確認することができる。なお、制御レジスタ3121は、上記構成に限定されず、例えば、7ビット目が空きビット、6ビット目が8ビットカウンタ3122の許可や禁止を設定するビット(0:動作停止、1:動作開始(初期値))、5ビット目がCPUコアのマスカブル割込みアクノリッジサイクルで更新するかを設定するビット(0:更新する、1:更新しない(初期値))、4ビット目がCPUコアのXIORQ信号で更新するかを設定するビット(0:更新する、1:更新しない(初期値))、3ビット目がCPUコアのXMREQ信号で更新するかを設定するビット(0:更新する、1:更新しない(初期値))、2ビット目がCPUコアのXWR信号で更新するかを設定するビット(0:更新する、1:更新しない(初期値))、1〜0ビット目がどのタイマの信号で更新するかを設定するビット(00:タイマ回路0からのタイムアウト信号、01:タイマ回路1からのタイムアウト信号、10:タイマ回路2からのタイムアウト信号、11:未選択(初期値))、のように構成してもよく、5〜0ビットに全て1が書き込まれた場合に更新源としてシステムクロック信号(SCLK)が設定されるようにしてもよく、カウンタ回路1の制御レジスタ3121の1〜0ビット目が00の場合にはタイマ回路0からのタイムアウト信号に代えてカウンタ回路0の8ビットカウンタ3122のタイムアウト信号を更新源としてもよく、カウンタ回路3の制御レジスタ3121の1〜0ビット目が00の場合にはタイマ回路2からのタイムアウト信号に代えてカウンタ回路0の8ビットカウンタ3122のタイムアウト信号を更新源としてもよい。また、カウンタ回路0はSCLK、カウンタ回路1はXWR信号、カウンタ回路2はXMREQ信号、カウンタ回路3はXIORQ信号を更新源として自動的に起動されるものであってもよく、更新範囲を0〜255としてもよい(カウンタ設定レジスタ3123に初期値として255を設定してもよい)。この場合、電源立ち上げ時には、プログラムによって更新源やカウント値を設定するよりも前にカウント動作を行い、カウント動作中にプログラムによって更新源の設定(変更)やカウント値の設定(変更)を行うようにしてもよい。この場合、カウント動作中に更新源やカウント値を変更することで不正者による有利な値の取得を困難にできる場合がある。なお、カウンタ回路312は、更新源としてシステムクロック信号(SCLK)を設定した場合に、他の更新源(XWR信号、XMREQ信号、XIORQ信号、タイマ回路0のタイムアウト信号、タイマ回路1のタイムアウト信号、タイマ回路2のタイムアウト信号)を設定不可能であってもよい。換言すると、カウンタ回路は、複数の更新源のうちの第一の更新源を設定した場合に、第一の更新源を除く他の更新源を設定不可能であってもよい。   The 2nd to 0th bits are bits for setting the clock source of the 8-bit counter 3122. That is, it is a bit for setting a signal that becomes an update source of the counter circuit 312. When the initial value “000” is set in the 2nd to 0th bits, the system clock signal (SCLK) becomes the clock source of the 8-bit counter 3122, and when “001” is set, the time-out from the timer circuit 0 occurs. When the signal becomes a clock source and “010” is set, the timeout signal from the timer circuit 1 becomes the clock source, and when “011” is set, the timeout signal from the timer circuit 2 becomes the clock source. The system clock signal (SCLK) is a signal that is periodically input to the control register 3121. Further, when the timer circuit 311 is set to the repeat mode, a timeout signal is periodically input to the control register 3121. On the other hand, a memory request signal (XMREQ signal), a write signal (XWR signal), an IO request signal (XIORQ signal), and an interrupt request response signal (XINTACK signal) are signals that are irregularly input to the control register 3121. When “100” is set in the 2nd to 0th bits, the write signal (XWR signal) becomes the clock source of the 8-bit counter 3122, and when “101” is set, the memory request signal (XMREQ signal) becomes the clock source. When “110” is set, the IO request signal (XIORQ signal) becomes the clock source, and when “111” is set, the interrupt request response signal (XINTACK signal) becomes the clock source. The setting value for setting the clock source is stored in the program data area of the built-in ROM 306, and is called from the program data area in the initial setting 2 (step S3005) in the main process of the main control unit shown in FIG. 3121 is set. In the basic circuit, the signal to the built-in RAM 308 is the memory request signal when the memory mapped method is adopted among the memory request signal (XMREQ signal) and the IO request signal (XIORQ signal). (XMREQ signal) is used, and when the IO mapped method is adopted, an IO request signal (XIORQ signal) is used. As described above, the second bit of the control register 3121 is “0” when a signal that is periodically input is used as a clock source (second condition), and is input irregularly. 1 is used as a clock source (first condition), which corresponds to an example of a predetermined bit. In this way, the developer or the setter can check whether or not a signal periodically input to the clock source is used only by looking at the second bit of the control register 3121. The control register 3121 is not limited to the above configuration. For example, the 7th bit is an empty bit, and the 6th bit is a bit for setting permission / prohibition of the 8-bit counter 3122 (0: operation stop, 1: operation start ( (Initial value)) Bit that sets whether the fifth bit is updated in the maskable interrupt acknowledge cycle of the CPU core (0: update, 1: not update (initial value)), the fourth bit is the XIORQ signal of the CPU core Bit to set whether to update (0: update, 1: not update (initial value)) Bit to set whether the third bit is updated by the CPU core XMREQ signal (0: update, 1: not update) (Initial value)) Bit that sets whether the second bit is updated by the XWR signal of the CPU core (0: update, 1: not update (initial value)), 1st to 0th bit Bit to set whether to update with timer signal (00: timeout signal from timer circuit 0, 01: timeout signal from timer circuit 1, 10: timeout signal from timer circuit 2, 11: unselected (initial value) The system clock signal (SCLK) may be set as an update source when all 1s are written in the 5 to 0 bits, or the control register 3121 of the counter circuit 1 may be configured. When the 1st to 0th bits are 00, the time-out signal from the 8-bit counter 3122 of the counter circuit 0 may be used as the update source instead of the time-out signal from the timer circuit 0. When the 0th bit is 00, instead of the timeout signal from the timer circuit 2, the 8-bit counter of the counter circuit 0 The 122 time-out signal may be updated source. Further, the counter circuit 0 may be automatically started using the SCLK, the counter circuit 1 the XWR signal, the counter circuit 2 the XMREQ signal, and the counter circuit 3 using the XIORQ signal as an update source. 255 may be set (255 may be set as an initial value in the counter setting register 3123). In this case, when the power is turned on, the count operation is performed before the update source and the count value are set by the program, and the update source is set (changed) and the count value is set (changed) by the program during the count operation. You may do it. In this case, it may be difficult to obtain an advantageous value by an unauthorized person by changing the update source or the count value during the counting operation. Note that when the system clock signal (SCLK) is set as the update source, the counter circuit 312 has other update sources (XWR signal, XREQ signal, XIORQ signal, timer circuit 0 timeout signal, timer circuit 1 timeout signal, The time-out signal of the timer circuit 2 may not be settable. In other words, when the first update source among the plurality of update sources is set, the counter circuit may not be able to set other update sources other than the first update source.

また、カウンタ回路312は、更新源としてXWR信号、XMREQ信号、XIORQ信号、タイマ回路nのタイムアウト信号のうちの少なくとも2以上の更新源を設定可能であってもよい。換言すると、カウンタ回路は、複数の更新源のうちの第一の更新源を除く第二の更新源と第三の更新源を共に設定可能であってもよい。   Further, the counter circuit 312 may be capable of setting at least two update sources among the XWR signal, the XMREQ signal, the XIORQ signal, and the timeout signal of the timer circuit n as update sources. In other words, the counter circuit may be capable of setting both the second update source and the third update source excluding the first update source among the plurality of update sources.

また、カウンタ設定レジスタ3123は、アップカウンタ回路である8ビットカウンタ3122のカウント値(最大値)を設定する8ビットのレジスタである。本実施形態では、0〜255のカウント値を設定することができ、「255」を書き込んだ場合には、カウント値として最大値の255が設定される。この場合には0〜255が所定の数値範囲になる。なお、設定値に「00」を設定した場合には、8ビットカウンタの動作を停止するようにしてもよい。なお、各カウンタ回路は、ダウンカウンタ回路であってもよく、ダウンカウンタ回路である場合には、カウンタ設定レジスタ3123は、最小値を設定するレジスタになる。   The counter setting register 3123 is an 8-bit register that sets the count value (maximum value) of the 8-bit counter 3122 that is an up-counter circuit. In this embodiment, a count value from 0 to 255 can be set. When “255” is written, the maximum value 255 is set as the count value. In this case, 0 to 255 is a predetermined numerical range. When “00” is set as the set value, the operation of the 8-bit counter may be stopped. Each counter circuit may be a down counter circuit. In the case of a down counter circuit, the counter setting register 3123 is a register for setting a minimum value.

カウンタレジスタ3124は、CPUレジスタリード信号の入力タイミングに合わせて8ビットカウンタ3122の値を読み出すためのレジスタである。   The counter register 3124 is a register for reading the value of the 8-bit counter 3122 in accordance with the input timing of the CPU register read signal.

以上説明した、各レジスタの設定値は、内蔵ROM306のプログラムデータエリアに記憶されている。プログラム管理エリアに記憶されている各設定値は、図159に示す主制御部メイン処理における初期設定2(ステップS3005)において、プログラムデータエリアから呼び出され、各レジスタに設定されるか、あるいは主制御部メイン処理や図162に示す主制御部割込処理において呼び出され、各レジスタに設定される。カウンタ設定レジスタ3123にカウント値が書き込まれると、8ビットカウンタ3122の値が「00H」にクリアされ、その後、制御レジスタ3121の4ビット目に「1」が書き込まれると、選択されたクロック源で8ビットカウンタ3122のアップカウントが開始される。   The setting values of each register described above are stored in the program data area of the built-in ROM 306. Each set value stored in the program management area is called from the program data area and set in each register in the initial setting 2 (step S3005) in the main process of the main control unit shown in FIG. Is called in the main control process and the main control section interrupt process shown in FIG. 162 and set in each register. When the count value is written to the counter setting register 3123, the value of the 8-bit counter 3122 is cleared to “00H”. After that, when “1” is written to the fourth bit of the control register 3121, the selected clock source Up-counting of the 8-bit counter 3122 is started.

以上説明したカウンタ回路312は、数値更新手段の一例に相当する。なお、8ビットカウンタ3116の値をCPUレジスタリード信号の入力に応じて読み出す構成を示したが、これに限定されるものではなく、ハードラッチ乱数値レジスタとハードラッチ選択レジスタを備えてもよく、8ビットカウンタ3116の値をハードラッチ乱数値レジスタに常に入力するようにしてもよく、パラレル入力ポートを介してPI0〜PI5信号がそれぞれ入力されるハードラッチ選択レジスタからのラッチ信号がハードラッチ乱数値レジスタに入力された場合に値をラッチ(保持)するようにしてもよく、値のラッチによるセット信号と値の取得によるクリア信号が入力されるフラグレジスタを備えてもよい。また、この場合、ハードラッチ選択レジスタは、外部端子入力による8ビットカウンタ3116の値の取込み条件の設定(0:値を読み込まないと次の値をラッチしない(初期値)、1:値を読み込まなくても次の値をラッチ)、どの外部端子入力で8ビットカウンタ3116の値を取り込むかの設定(PI0〜PI5信号)を設定可能に構成してもよい。なお、他の構成において、乱数生成回路318や乱数回路5316で乱数を生成することに代えてカウンタ回路312で乱数を生成するようにしてもよい。   The counter circuit 312 described above corresponds to an example of a numerical value updating unit. In addition, although the structure which reads the value of the 8-bit counter 3116 according to the input of a CPU register read signal was shown, it is not limited to this, You may provide a hard latch random value register and a hard latch selection register, The value of the 8-bit counter 3116 may be always input to the hard latch random value register, and the latch signal from the hard latch selection register to which the PI0 to PI5 signals are input via the parallel input port is the hard latch random value. A value may be latched (held) when input to the register, or a flag register may be provided to which a set signal by value latch and a clear signal by value acquisition are input. In this case, the hard latch selection register sets an acquisition condition of the value of the 8-bit counter 3116 by external terminal input (0: If the value is not read, the next value is not latched (initial value), 1: the value is read. If not, the next value is latched), and the setting (PI0 to PI5 signal) regarding which external terminal input takes in the value of the 8-bit counter 3116 may be configured. In another configuration, the counter circuit 312 may generate random numbers instead of generating random numbers with the random number generation circuit 318 or the random number circuit 5316.

続いて、図78(a)に示すメモリマップ上における内蔵RAMエリアや内蔵レジスタエリアの読み込みや書き込みタイミングについて説明する。   Next, read and write timings for the internal RAM area and the internal register area on the memory map shown in FIG.

図206は、図78(a)に示すメモリマップ上における内蔵RAMエリアや内蔵レジスタエリアの読み込みや書き込みタイミングを説明するためのタイミングチャートである。   FIG. 206 is a timing chart for explaining the read and write timings of the internal RAM area and internal register area on the memory map shown in FIG.

図206では、図の左から右に向かって時間(T)が経過していく(以降のタイミングチャートにおいても同じ)。この図206に示すタイミングチャートには、上から順にシステムクロック出力信号(CLKO)、16本の信号線によって入出力されるアドレス入出力信号(A0〜A15)、メモリリクエスト信号(XMREQ)、読み込み時のリード信号(XRD)、読み込み時の内蔵RAMエリアや内蔵レジスタエリアからのデータ出力信号(D0〜D7)、書き込み時のライト信号(XWR)、および書き込み時の内蔵RAMエリアや内蔵レジスタエリアへのデータ出力信号(D0〜D7)が示されている。なお、破線はハイインピーダンス状態を表す。   In FIG. 206, time (T) elapses from the left to the right in the figure (the same applies to the subsequent timing charts). In the timing chart shown in FIG. 206, the system clock output signal (CLKO), the address input / output signals (A0 to A15) input / output via the 16 signal lines, the memory request signal (XMREQ), and the reading time are shown in order from the top. Read signal (XRD), data output signals (D0 to D7) from the internal RAM area and internal register area at the time of reading, write signals (XWR) at the time of writing, and the internal RAM area and internal register area at the time of writing Data output signals (D0 to D7) are shown. A broken line represents a high impedance state.

アドレス入出力信号(A0〜A15)は、図78(a)のメモリマップにおいて読み書きするアドレスを指定している。メモリリクエスト信号(XMREQ)がLレベルのときに読み書きが許可され、リード信号(XRD)がLレベルのときに読み込みが許可され、ライト信号(XWR)もLレベルのときに書き込みが許可される。したがって、メモリリクエスト信号(XMREQ)がLレベルかつリード信号(XRD)もLレベルのときに、アドレス入出力信号(A0〜A15)で指定されたアドレスを読み込むことができ、メモリリクエスト信号(XMREQ)がLレベルかつライト信号(XWR)もLレベルのときに、アドレス入出力信号(A0〜A15)で指定されたアドレスに書き込むことができるが、各信号では時間的ズレが生じている。しかも、クロック出力信号(CLKO)は定期的な信号であるのに対して、制御レジスタ3121に入力される、メモリリクエスト信号(XMREQ)やライト信号(XWR)は、プログラムに従って任意のタイミングで出力される不定期な信号であり、定期的なクロック出力信号(CLKO)に対して同期していないことがわかる。言い換えれば、メモリリクエスト信号(XMREQ)やライト信号(XWR)は、CPU304が内蔵メモリや内蔵レジスタとのやり取りのための命令(所定の命令)に基づいて不定期に出力する信号である。より詳細に説明すると、CPU304は、内蔵ROM306のデータの読み出し(例えば、LD A,(ROM_ADD01)命令)でメモリリクエスト信号(XMREQ)を出力し、内蔵RAM308とのデータの読み出しや書き込み(例えば、LD (RAM_ADD01),A命令)でメモリリクエスト信号(XMREQ)やライト信号(XWR)を出力する。上述のごとく、本実施形態では、これら不定期に発生するメモリリクエスト信号(XMREQ)やライト信号(XWR)をカウンタ回路312の更新ソースとして利用することができる。不定期に発生するメモリリクエスト信号(XMREQ)やライト信号(XWR)は所定の信号の一例に相当する。   The address input / output signals (A0 to A15) specify addresses to be read and written in the memory map of FIG. Reading / writing is permitted when the memory request signal (XMREQ) is at L level, reading is permitted when the read signal (XRD) is at L level, and writing is permitted when the write signal (XWR) is also at L level. Therefore, when the memory request signal (XMREQ) is at the L level and the read signal (XRD) is also at the L level, the address specified by the address input / output signals (A0 to A15) can be read, and the memory request signal (XMREQ) Can be written to the address specified by the address input / output signals (A0 to A15) when the write signal (XWR) is also at the L level, but there is a time shift in each signal. Moreover, while the clock output signal (CLKO) is a periodic signal, the memory request signal (XMREQ) and the write signal (XWR) input to the control register 3121 are output at an arbitrary timing according to the program. It can be seen that the signal is irregular and is not synchronized with the periodic clock output signal (CLKO). In other words, the memory request signal (XMREQ) and the write signal (XWR) are signals that the CPU 304 outputs irregularly based on an instruction (predetermined instruction) for exchanging with the internal memory or the internal register. More specifically, the CPU 304 outputs a memory request signal (XMREQ) by reading data from the built-in ROM 306 (for example, LDA, (ROM_ADD01) command), and reads / writes data from / to the built-in RAM 308 (for example, LD (RAM_ADD01), A command), a memory request signal (XMREQ) and a write signal (XWR) are output. As described above, in this embodiment, the memory request signal (XMREQ) and the write signal (XWR) that are generated irregularly can be used as the update source of the counter circuit 312. The memory request signal (XMREQ) and the write signal (XWR) that are generated irregularly correspond to an example of a predetermined signal.

続いて、図78(b)に示すI/Oマップ上における内蔵レジスタエリアの読み込みや書き込みタイミングについて説明する。   Next, the read / write timing of the built-in register area on the I / O map shown in FIG. 78 (b) will be described.

図207は、図78(b)に示すI/Oマップ上における内蔵レジスタエリアの読み込みや書き込みタイミングを説明するためのタイミングチャートである。   FIG. 207 is a timing chart for explaining the read / write timing of the built-in register area on the I / O map shown in FIG. 78 (b).

この図207に示すタイミングチャートでも、上から順に各信号が示されており、図206に示すメモリリクエスト信号(XMREQ)に代えてIOリクエスト信号(XIORQ)が示されている。なおここでも、破線はハイインピーダンス状態を表す。   Also in the timing chart shown in FIG. 207, each signal is shown in order from the top, and an IO request signal (XIORQ) is shown instead of the memory request signal (XMREQ) shown in FIG. Again, the dashed line represents the high impedance state.

また、アドレス入出力信号(A0〜A15)は、図78(b)のメモリマップにおいて読み書きするアドレスを指定している。IOリクエスト信号(XIORQ)がLレベルのときに読み書きが許可され、リード信号(XRD)がLレベルのときに読み込みが許可され、ライト信号(XWR)もLレベルのときに書き込みが許可される。したがって、IOリクエスト信号(XIORQ)がLレベルかつリード信号(XRD)もLレベルのときに、アドレス入出力信号(A0〜A15)で指定されたアドレスを読み込むことができ、IOリクエスト信号(XIORQ)がLレベルかつライト信号(XWR)もLレベルのときに、アドレス入出力信号(A0〜A15)で指定されたアドレスに書き込むことができるが、ここでも各信号では時間的ズレが生じている。しかも、制御レジスタ3121に入力される、IOリクエスト信号(XIORQ)やライト信号(XWR)も、プログラムに従って任意のタイミングで出力される不定期な信号であり、定期的なクロック出力信号(CLKO)に対して同期していないことがわかる。言い換えれば、IOリクエスト信号(XIORQ)も、CPU304が内蔵メモリや内蔵レジスタとのやり取りのための命令(所定の命令)に基づいて不定期に出力する信号である。より詳細に説明すると、CPU304は、IN命令やOUT命令の際にIOリクエスト信号(XIORQ)を出力する。上述のごとく、本実施形態では、これら不定期に発生するIOリクエスト信号(XIORQ)も   The address input / output signals (A0 to A15) specify addresses to be read and written in the memory map of FIG. 78 (b). Reading / writing is permitted when the IO request signal (XIORQ) is at L level, reading is permitted when the read signal (XRD) is at L level, and writing is permitted when the write signal (XWR) is also at L level. Therefore, when the IO request signal (XIORQ) is at the L level and the read signal (XRD) is also at the L level, the address specified by the address input / output signals (A0 to A15) can be read, and the IO request signal (XIORQ) Can be written to the address specified by the address input / output signals (A0 to A15) when the write signal (XWR) is also at the L level, but here again, there is a time shift in each signal. In addition, the IO request signal (XIORQ) and the write signal (XWR) input to the control register 3121 are also irregular signals that are output at arbitrary timings according to the program, and are generated as periodic clock output signals (CLKO). It can be seen that they are not synchronized. In other words, the IO request signal (XIORQ) is also a signal that the CPU 304 outputs irregularly based on an instruction (predetermined instruction) for exchange with the internal memory or the internal register. More specifically, the CPU 304 outputs an IO request signal (XIORQ) upon an IN command or an OUT command. As described above, in this embodiment, these irregularly generated IO request signals (XIORQ) are also generated.

カウンタ回路312の更新ソースとして利用することができる。不定期に発生するIOリクエスト信号(XIORQ)も所定の信号の一例に相当する。 The counter circuit 312 can be used as an update source. An IO request signal (XIORQ) that occurs irregularly also corresponds to an example of a predetermined signal.

図208は、図146に示すマイクロプロセッサ3000内部におけるカウンタ回路312への信号の流れを内部のみ示す図である。   FIG. 208 is a diagram showing only the signal flow to counter circuit 312 in microprocessor 3000 shown in FIG. 146.

この図208には、CPU304、マイクロプロセッサ3000に内蔵されたROM306(以下、単に内蔵ROM306と称する)、同じくマイクロプロセッサ3000に内蔵されたRAM308(以下、単に内蔵RAM308と称する)、タイマ回路311、カウンタ回路312、割込み制御回路3100、およびクロック回路320が内部バス3300を介して互いに接続されている様子が示されている。   208, a CPU 304, a ROM 306 built in the microprocessor 3000 (hereinafter simply referred to as a built-in ROM 306), a RAM 308 (hereinafter simply referred to as a built-in RAM 308) similarly built in the microprocessor 3000, a timer circuit 311, a counter A state in which the circuit 312, the interrupt control circuit 3100, and the clock circuit 320 are connected to each other via the internal bus 3300 is shown.

また、メモリマップド方式を採用した場合には、メモリリクエスト信号(XMREQ信号)が、CPU304から内蔵ROM306や内蔵RAM308に送られ、カウンタ回路312にも取得されることが示され、I/Oマップド方式を採用した場合には、IOリクエスト信号(XIORQ信号)が、CPU304から内蔵RAM308に送られ、カウンタ回路312にも取得されることが示されている。ライト信号(XWR信号)は、CPU304から内蔵RAM308に送られ、カウンタ回路312にも取得されることが示されている。なお、本実施形態では、カウンタ回路312の8ビットカウンタ3122のクロック源としてリード信号(XRD)は選択できないが、カウンタ回路312はリード信号(XRD)も取得可能であり、そのリード信号(XRD)をクロック源として利用してもよい。さらに、割込み制御回路3100からCPU304に送られる割込み要求信号(XINT信号)を受けてCPU304から割込み制御回路3100に割込み要求応答信号(XINTACK信号)が出力される。割込み要求信号は、定期的に出力されるものもあれば不定期に出力されるもの(例えばハードウェア割込み)もあり、割込み要求応答信号(XINTACK信号)は、結局のところ不定期に出力される信号になり、所定の信号の一例に相当する。図208では、この割込み要求応答信号(XINTACK信号)がカウンタ回路312に取得されることも示されている。また、タイマ回路311に含まれるタイマ回路0〜2それぞれからのタイムアウト信号は、カウンタ回路312に送られ、クロック回路320からはシステムクロック信号(SCLK)がカウンタ回路312に送られる。不定期に発生するメモリリクエスト信号(XMREQ)やライト信号(XWR)やIOリクエスト信号(XIORQ)や割込み要求応答信号(XINTACK信号)を出力するCPU304は、信号出力手段としての一機能を担っている。また、内蔵ROM306や内蔵RAM308は、記憶手段の一例に相当する。   Further, when the memory mapped method is adopted, it is shown that the memory request signal (XMREQ signal) is sent from the CPU 304 to the built-in ROM 306 or the built-in RAM 308 and also acquired by the counter circuit 312, and the I / O mapped signal is displayed. When the method is adopted, it is shown that an IO request signal (XIORQ signal) is sent from the CPU 304 to the built-in RAM 308 and also acquired by the counter circuit 312. It is shown that the write signal (XWR signal) is sent from the CPU 304 to the built-in RAM 308 and also acquired by the counter circuit 312. In this embodiment, the read signal (XRD) cannot be selected as the clock source of the 8-bit counter 3122 of the counter circuit 312, but the counter circuit 312 can also acquire the read signal (XRD), and the read signal (XRD) May be used as a clock source. Further, upon receiving an interrupt request signal (XINT signal) sent from the interrupt control circuit 3100 to the CPU 304, an interrupt request response signal (XINTACK signal) is output from the CPU 304 to the interrupt control circuit 3100. Some interrupt request signals are output periodically and others are output irregularly (for example, hardware interrupt), and the interrupt request response signal (XINTACK signal) is output irregularly after all. It becomes a signal and corresponds to an example of a predetermined signal. FIG. 208 also shows that this interrupt request response signal (XINTACK signal) is acquired by the counter circuit 312. Further, the time-out signal from each of the timer circuits 0 to 2 included in the timer circuit 311 is sent to the counter circuit 312, and the system clock signal (SCLK) is sent from the clock circuit 320 to the counter circuit 312. The CPU 304 that outputs a memory request signal (XMREQ), a write signal (XWR), an IO request signal (XIORQ), or an interrupt request response signal (XINTACK signal) that occurs irregularly has a function as a signal output means. . The built-in ROM 306 and the built-in RAM 308 correspond to an example of a storage unit.

図209は、カウンタ回路0を不定期な更新とする例を示した図である。   FIG. 209 is a diagram illustrating an example in which the counter circuit 0 is updated irregularly.

図209の上方には機能ブロック図が示され、下方にはソースコードが示されている(以下、図213まで同じ)。このソースコードでは、カウンタ回路0はPCC0で表され、カウンタ回路1はPCC1で表されている(以下、同じ)。カウンタ回路0のカウンタ設定レジスタ3123にも、カウンタ回路1のカウンタ設定レジスタ3123にも、カウント値として最大値の「255」が設定されている。また、カウンタ回路0の制御レジスタ3121には「00010101」が設定されており、4ビット目に動作開始を表す「1」が設定され、2〜0ビット目には、8ビットカウンタ3122のクロック源をメモリリクエスト信号(XMREQ信号)とする「101」が設定されている。一方、カウンタ回路1の制御レジスタ3121には「00010001」が設定されており、4ビット目に動作開始を表す「1」が設定され、2〜0ビット目には、8ビットカウンタ3122のクロック源をタイマ回路0からのタイムアウト信号とする「001」が設定されている。さらに、いずれの制御レジスタ3121にも、3ビット目にはカスケード接続未設定を表す「0」が設定されており、この例では、カウンタ回路0とカウンタ回路1はカスケード接続されていない。なお、図209に示すソースコードでは、タイマ回路0はPTC0で表されており、タイマ回路0のプリスケーラレジスタ3111で、システムクロックを1/240に分周し、タイマ回路0の8ビットカウンタ3116のクロック源にすることが設定されている。   The functional block diagram is shown in the upper part of FIG. 209, and the source code is shown in the lower part (the same applies to FIG. 213). In this source code, the counter circuit 0 is represented by PCC0, and the counter circuit 1 is represented by PCC1 (hereinafter the same). The maximum value “255” is set as the count value in both the counter setting register 3123 of the counter circuit 0 and the counter setting register 3123 of the counter circuit 1. Further, “00010101” is set in the control register 3121 of the counter circuit 0, “1” indicating the start of operation is set in the fourth bit, and the clock source of the 8-bit counter 3122 is set in the second to zeroth bits. Is set to “101”, which is a memory request signal (XMREQ signal). On the other hand, “00010001” is set in the control register 3121 of the counter circuit 1, “1” representing the start of operation is set in the fourth bit, and the clock source of the 8-bit counter 3122 is set in the second to zeroth bits. Is set to “001”, which is a time-out signal from the timer circuit 0. Further, “0” representing that cascade connection is not set is set in the third bit in any control register 3121. In this example, the counter circuit 0 and the counter circuit 1 are not cascade-connected. In the source code shown in FIG. 209, the timer circuit 0 is represented by PTC0, the system clock is divided by 1/240 by the prescaler register 3111 of the timer circuit 0, and the 8-bit counter 3116 of the timer circuit 0 is The clock source is set.

図209に示す例では、カウンタ回路0の8ビットカウンタ3122が不定期なメモリリクエスト信号(XMREQ信号)で更新される。一方、カウンタ回路1の8ビットカウンタ3122は定期的なタイマ回路0からのタイムアウト信号で更新される。   In the example shown in FIG. 209, the 8-bit counter 3122 of the counter circuit 0 is updated with an irregular memory request signal (XMREQ signal). On the other hand, the 8-bit counter 3122 of the counter circuit 1 is updated by a periodic timeout signal from the timer circuit 0.

各カウンタ回路312のカウンタレジスタ3124は、CPUレジスタリード信号の入力タイミングに合わせて8ビットカウンタ3122の値を読み出し、CPU304は、カウンタレジスタ3124が読み出した値を内部バスを介して取得する。この例では、カウント回路0のカウント値を、特図変動時間決定用乱数値として用いる。   The counter register 3124 of each counter circuit 312 reads the value of the 8-bit counter 3122 in accordance with the input timing of the CPU register read signal, and the CPU 304 acquires the value read by the counter register 3124 via the internal bus. In this example, the count value of the count circuit 0 is used as a random number value for determining the special figure fluctuation time.

図210は、カウンタ回路0をカウンタ回路1の更新ソースとする変形例1を示した図である。以下、図209に示す例との相違点を中心に説明し、図209に示す例と同じ点は説明を省略することがある。   FIG. 210 is a diagram illustrating a first modification in which the counter circuit 0 is the update source of the counter circuit 1. Hereinafter, differences from the example illustrated in FIG. 209 will be mainly described, and description of the same points as the example illustrated in FIG. 209 may be omitted.

図210に示すカウンタ回路0の制御レジスタ3121には「00011101」が設定されており、3ビット目にはカスケード接続の設定を表す「1」が設定されている。一方、カウンタ回路1の制御レジスタ3121には「00010001」が設定されており、3ビット目にはカスケード接続未設定を表す「0」が設定されている。上述のごとく、カウンタ回路0とカウンタ回路1の組では、いずれか一方の制御レジスタ3121の3ビット目に「1」が設定されていると、カスケード接続が設定される。したがって、図210に示すカウンタ回路0とカウンタ回路1はカスケード接続されている。制御レジスタ3121の3ビット目に「1」が設定されたカウンタ回路0は、0から255までカウントアップするカウンタ回路であり、カウント値が255に達し、さらにカウント値を1更新する場合には、カウンタ回路1に桁溢れ信号(特定信号)を送り、カウント値を0に戻す。カウンタ回路1は、定期的なタイマ回路0からのタイムアウト信号で更新されるが、カウンタ回路0からの桁溢れ信号によっても更新され、カウンタ回路1の更新ソースが複数となり、カウンタ回路1のランダム性が増す。しかも、カウンタ回路0は、不定期なメモリリクエスト信号(XMREQ信号)で更新されるカウンタ回路であるため、桁溢れ信号も不定期に送られてくる信号になる。なお、カウンタ回路1の更新ソースを不定期な更新ソース(例えば、XWR信号等)にすれば、ランダム性をより高めることができる。この例では、カウント回路1のカウント値を、特図変動時間決定用乱数値として用いる。   “00011101” is set in the control register 3121 of the counter circuit 0 shown in FIG. 210, and “1” representing the setting of cascade connection is set in the third bit. On the other hand, “00010001” is set in the control register 3121 of the counter circuit 1, and “0” indicating that the cascade connection is not set is set in the third bit. As described above, in the set of the counter circuit 0 and the counter circuit 1, when “1” is set in the third bit of one of the control registers 3121, cascade connection is set. Therefore, counter circuit 0 and counter circuit 1 shown in FIG. 210 are cascade-connected. The counter circuit 0 in which “1” is set in the third bit of the control register 3121 is a counter circuit that counts up from 0 to 255. When the count value reaches 255 and the count value is updated by 1, An overflow signal (specific signal) is sent to the counter circuit 1 to return the count value to zero. The counter circuit 1 is updated by a time-out signal from the timer circuit 0 periodically, but is also updated by an overflow signal from the counter circuit 0, the counter circuit 1 has a plurality of update sources, and the counter circuit 1 is random. Increase. Moreover, since the counter circuit 0 is a counter circuit that is updated by an irregular memory request signal (XMREQ signal), an overflow signal is also a signal that is irregularly transmitted. Note that if the update source of the counter circuit 1 is an irregular update source (for example, an XWR signal or the like), the randomness can be further improved. In this example, the count value of the count circuit 1 is used as a random number value for determining the special figure fluctuation time.

なお、この例では、「1」が設定された方のカウンタ回路から桁溢れ信号が出力されるが、これに限らず、桁溢れ信号を出力するカウンタ回路を予め定めておいてもよい。   In this example, an overflow signal is output from the counter circuit to which “1” is set. However, the present invention is not limited to this, and a counter circuit that outputs an overflow signal may be determined in advance.

図211は、カウンタ回路0とカウンタ回路1で2バイトカウンタとして機能させる変形例2を示した図である。以下、図210に示す例との相違点を中心に説明し、図210に示す例と同じ点は説明を省略することがある。   FIG. 211 is a diagram showing a second modification in which the counter circuit 0 and the counter circuit 1 function as a 2-byte counter. Hereinafter, differences from the example illustrated in FIG. 210 will be mainly described, and description of the same points as in the example illustrated in FIG. 210 may be omitted.

図211に示すカウンタ回路1の制御レジスタ3121には「00010010」が設定されており、2〜0ビット目には、8ビットカウンタ3122のクロック源をタイマ回路1からのタイムアウト信号とする「010」が設定されている。したがって、図211に示すカウンタ回路1の8ビットカウンタ3116は、タイマ回路1からのタイムアウト信号が入力されると更新される。さらに、図211に示すソースコードでは、タイマ回路1はPTC1で表されており、タイマ回路1のプリスケーラレジスタ3111には、タイマ回路1の8ビットカウンタ3116を動作させるためのカウントクロックを停止させる「0」が設定されている。このため、タイマ回路1の8ビットカウンタ3116からはタイムアウト信号は出力されず、カウンタ回路1は、クロック源としてタイマ回路1からのタイムアウト信号が設定されてはいるものの、そのタイムアウト信号をクロック源にしては更新されない。しかしながら、図210に示す例と同じく、カウンタ回路1には、カウンタ回路0から桁溢れ信号が送られ、カウンタ回路1は、この桁溢れ信号によって更新される。すなわち、カウンタ回路1は、カウンタ回路0からの桁溢れ信号のみをクロック源(更新源)にする。このように、タイマ回路1のカウントクロックを停止することで、実質的にカウンタ回路1の更新ソースをカウンタ回路0の桁溢れのみとすることができ、カウンタ回路0とカウンタ回路1のカウンタ値を用いて2バイトカウンタとして利用することができる。この例では、カウンタ回路0とカウンタ回路1の組によるカウント値を、特図変動時間決定用乱数値として用いる。   “00010010” is set in the control register 3121 of the counter circuit 1 shown in FIG. 211, and “010” is used as the time-out signal from the timer circuit 1 as the clock source of the 8-bit counter 3122 in the 2nd to 0th bits. Is set. Therefore, the 8-bit counter 3116 of the counter circuit 1 shown in FIG. 211 is updated when the time-out signal from the timer circuit 1 is input. Furthermore, in the source code shown in FIG. 211, the timer circuit 1 is represented by PTC1, and the prescaler register 3111 of the timer circuit 1 stops the count clock for operating the 8-bit counter 3116 of the timer circuit 1. “0” is set. For this reason, a time-out signal is not output from the 8-bit counter 3116 of the timer circuit 1, and although the time-out signal from the timer circuit 1 is set as a clock source, the counter circuit 1 uses the time-out signal as a clock source. Will not be updated. However, as in the example shown in FIG. 210, the counter circuit 1 is supplied with an overflow signal from the counter circuit 0, and the counter circuit 1 is updated by this overflow signal. That is, the counter circuit 1 uses only the overflow signal from the counter circuit 0 as a clock source (update source). Thus, by stopping the count clock of the timer circuit 1, the update source of the counter circuit 1 can be practically only overflow of the counter circuit 0, and the counter values of the counter circuit 0 and the counter circuit 1 can be changed. Can be used as a 2-byte counter. In this example, the count value obtained by the combination of the counter circuit 0 and the counter circuit 1 is used as the random number value for determining the special figure fluctuation time.

図212は、カウンタ回路0の更新ソースをカウンタ回路1の更新ソースとする変形例3を示した図である。以下、図210に示す例との相違点を中心に説明し、図210に示す例と同じ点は説明を省略することがある。   FIG. 212 is a diagram showing a third modification in which the update source of the counter circuit 0 is the update source of the counter circuit 1. Hereinafter, differences from the example illustrated in FIG. 210 will be mainly described, and description of the same points as in the example illustrated in FIG. 210 may be omitted.

図212に示すカウンタ回路0のカウンタ設定レジスタ3123には、カウント値として「0」が設定されており、カウンタ回路0の最大値は0になる。すなわち、カウンタ回路0では所定の数値範囲が1になる。この結果、メモリリクエスト信号(XMREQ信号)がカウンタ回路0に入力されるたびに桁溢れ信号がカウンタ回路1に出力され、カウンタ回路0の更新ソースをカウンタ回路1の更新ソースとしても扱うことができ、カウンタ回路1のランダム性が増す。また、カウンタ回路1の更新ソースを不定期な信号(例えば、XWR信号等)にすることで、ランダム性がさらに増す。この例でも、カウント回路1のカウント値を、特図変動時間決定用乱数値として用いる。   In the counter setting register 3123 of the counter circuit 0 shown in FIG. 212, “0” is set as the count value, and the maximum value of the counter circuit 0 is 0. That is, in the counter circuit 0, the predetermined numerical range is 1. As a result, every time a memory request signal (XMREQ signal) is input to the counter circuit 0, an overflow signal is output to the counter circuit 1, and the update source of the counter circuit 0 can be handled as the update source of the counter circuit 1. The randomness of the counter circuit 1 is increased. Further, the randomness is further increased by making the update source of the counter circuit 1 an irregular signal (for example, an XWR signal or the like). Also in this example, the count value of the count circuit 1 is used as a random number value for determining the special figure fluctuation time.

図213は、カウンタ回路0とカウンタ回路1を相互にカスケード接続する変形例4を示す図である。以下、図210に示す例との相違点を中心に説明し、図210に示す例と同じ点は説明を省略することがある。   FIG. 213 is a diagram illustrating a fourth modification in which the counter circuit 0 and the counter circuit 1 are cascade-connected to each other. Hereinafter, differences from the example illustrated in FIG. 210 will be mainly described, and description of the same points as in the example illustrated in FIG. 210 may be omitted.

図213に示すカウンタ回路0の制御レジスタ3121にも「00011101」が設定されており、3ビット目にはカスケード接続の設定を表す「1」が設定されている。また、図213に示すカウンタ回路1の制御レジスタ3121には「00011110」が設定されており、3ビット目にはカスケード接続の設定を表す「1」が設定され、2〜0ビット目には、不定期に入力されるライト信号(XWR信号)をクロック源とする「100」が設定されている。したがって、この例では、一組の組を構成する両カウンタ回路でカスケード接続の設定が行われており、互いに桁溢れ信号の送受信を行う。すなわち、カウンタ回路0では、カウント値が255に達し、さらにカウント値を1更新する場合には、カウンタ回路1にカウンタ回路0の桁溢れ信号を送り、カウンタ回路1でも、カウント値が255に達し、さらにカウント値を1更新する場合には、カウンタ回路0にカウンタ回路1の桁溢れ信号を送る。この結果、カウンタ回路0とカウンタ回路1がそれぞれ更新ソースが複数になり、両カウンタ回路のランダム性が増す。この例では、カウンタ回路0のカウント値を普図変動時間決定用乱数値として用い、カウント回路1のカウント値を特図変動時間決定用乱数値として用いる。   “00011101” is also set in the control register 3121 of the counter circuit 0 shown in FIG. 213, and “1” representing the cascade connection setting is set in the third bit. In addition, “00011110” is set in the control register 3121 of the counter circuit 1 shown in FIG. 213, “1” representing the setting of cascade connection is set in the third bit, and in the second to 0th bits, “100” is set with a write signal (XWR signal) input irregularly as a clock source. Therefore, in this example, the cascade connection is set by both counter circuits constituting a set, and an overflow signal is transmitted / received to / from each other. That is, in the counter circuit 0, when the count value reaches 255 and when the count value is further updated by 1, the overflow signal of the counter circuit 0 is sent to the counter circuit 1, and even in the counter circuit 1, the count value reaches 255. When the count value is further updated by 1, a counter overflow signal of the counter circuit 1 is sent to the counter circuit 0. As a result, the counter circuit 0 and the counter circuit 1 each have a plurality of update sources, and the randomness of both counter circuits increases. In this example, the count value of the counter circuit 0 is used as a random number value for determining a normal diagram variation time, and the count value of the count circuit 1 is used as a random value for determining a special diagram variation time.

以上説明したカウンタ回路312では、カウント値の更新にランダム性を持たせることができる。カウンタ回路312のカウント値は、普図変動時間決定用乱数値や特図変動時間決定用乱数値として用いられ、抽選処理のランダム性を高めることができる。   In the counter circuit 312 described above, the count value can be updated with randomness. The count value of the counter circuit 312 is used as a random number value for determining a normal figure variation time or a random value for determining a special figure variation time, and can improve the randomness of the lottery process.

続いて、他の実施形態について説明する。以下、既に述べた実施形態との相違点を中心に説明し、既に述べた実施形態と同じ点は説明を省略することがある。   Subsequently, another embodiment will be described. In the following, differences from the already described embodiment will be mainly described, and the same points as the already described embodiment may be omitted.

今まで説明した実施形態では、マイクロプロセッサ3000(基本回路)の内部における内蔵RAMエリアや内蔵レジスタエリアを対象にしていたが、本実施形態では、マイクロプロセッサ3000(基本回路)の外部における外部メモリや外部レジスタ、および外部の周辺機器や周辺回路を対象にする。   In the embodiment described so far, the built-in RAM area and the built-in register area in the microprocessor 3000 (basic circuit) are targeted. However, in the present embodiment, an external memory or the like outside the microprocessor 3000 (basic circuit) Target external registers and external peripherals and circuits.

図214は、マイクロプロセッサ3000(基本回路)の外部における外部メモリの読み込みや書き込みチップセレクトタイミングを説明するためのタイミングチャートである。   FIG. 214 is a timing chart for explaining external memory read / write chip select timing outside the microprocessor 3000 (basic circuit).

この図214に示すタイミングチャートには、上から順にシステムクロック出力信号(CLKO)、8本の信号線によって入出力されるアドレス入出力信号(A0〜A15)、メモリリクエスト信号(XMREQ)、読み込み時のリード信号(XRD)、読み込み時のチップセレクト信号(XCS0〜XCS13)、読み込み時の外部メモリからのデータ入力信号(D0〜D7)、書き込み時のライト信号(XWR)、書き込み時のチップセレクト信号(XCS0〜XCS13)、および書き込み時の外部メモリへのデータ出力信号(D0〜D7)が示されている。なお、破線はハイインピーダンス状態を表す。   In the timing chart shown in FIG. 214, the system clock output signal (CLKO), the address input / output signals (A0 to A15) input / output through the eight signal lines, the memory request signal (XMREQ), and the reading time are shown in order from the top. Read signal (XRD), read chip select signal (XCS0 to XCS13), read data input signal from external memory (D0 to D7), write write signal (XWR), write chip select signal (XCS0 to XCS13) and data output signals (D0 to D7) to the external memory at the time of writing are shown. A broken line represents a high impedance state.

読み込み時のチップセレクト信号(XCS0〜XCS13)によって読み込むべきチップセットが選択され、選択されたチップセットにおける読み込むべきアドレスがアドレス入出力信号(A0〜A15)によって指定される。また、書き込み時のチップセレクト信号(XCS0〜XCS13)によって書き込むべきチップセットが選択され、選択されたチップセットにおける書き込むべきアドレスがアドレス入出力信号(A0〜A15)によって指定される。また、メモリリクエスト信号(XMREQ)がLレベルのときに読み書きが許可され、読み込み時のリード信号(XRD)がLレベルのときに読み込みが許可され、書き込み時のライト信号(XWR)もLレベルのときに書き込みが許可される。したがって、メモリリクエスト信号(XMREQ)がLレベルかつリード信号(XRD)もLレベルのときに、選択されたチップセットから指定されたアドレスのデータを読み込むことができ、メモリリクエスト信号(XMREQ)がLレベルかつライト信号(XWR)もLレベルのときに、選択されたチップセットの指定されたアドレスにデータを書き込むことができるが、各信号では時間的ズレが生じている。しかも、クロック出力信号(CLKO)は定期的な信号であるのに対して、メモリリクエスト信号(XMREQ)やライト信号(XWR)は、プログラムに従って任意のタイミングで出力される不定期な信号、すなわち、外部メモリとのやり取りのために不定期に発生する信号であり、定期的なクロック出力信号(CLKO)に対して同期していないことがわかる。本実施形態でも、これら不定期に発生するメモリリクエスト信号(XMREQ)やライト信号(XWR)が制御レジスタ3121に入力され、これら不定期の信号をカウンタ回路312の更新ソースとして利用することができる。   A chip set to be read is selected by a chip select signal (XCS0 to XCS13) at the time of reading, and an address to be read in the selected chip set is designated by an address input / output signal (A0 to A15). A chip set to be written is selected by a chip select signal (XCS0 to XCS13) at the time of writing, and an address to be written in the selected chip set is designated by an address input / output signal (A0 to A15). Further, reading and writing are permitted when the memory request signal (XMREQ) is at L level, reading is permitted when the reading signal (XRD) at reading is L level, and writing signal (XWR) at writing is also L level. Sometimes writing is allowed. Therefore, when the memory request signal (XMREQ) is at the L level and the read signal (XRD) is also at the L level, the data at the designated address can be read from the selected chip set, and the memory request signal (XMREQ) is at the L level. When the level and the write signal (XWR) are also at the L level, data can be written to the designated address of the selected chip set, but there is a time shift in each signal. Moreover, while the clock output signal (CLKO) is a periodic signal, the memory request signal (XMREQ) and the write signal (XWR) are irregular signals that are output at an arbitrary timing according to a program, that is, It can be seen that this signal is generated irregularly for exchange with the external memory and is not synchronized with the periodic clock output signal (CLKO). Also in this embodiment, these irregularly generated memory request signals (XMREQ) and write signals (XWR) are input to the control register 3121, and these irregular signals can be used as the update source of the counter circuit 312.

続いて、マイクロプロセッサ3000(基本回路)の外部の周辺機器や周辺回路(外部I/O)に対する入出力について説明する。   Next, input / output to / from peripheral devices and peripheral circuits (external I / O) outside the microprocessor 3000 (basic circuit) will be described.

図215は、外部I/Oの読み込みや書き込みチップセレクトタイミングを説明するためのタイミングチャートである。   FIG. 215 is a timing chart for explaining external I / O read and write chip select timings.

この図215に示すタイミングチャートでも、上から順に各信号が示されており、図206に示すメモリリクエスト信号(XMREQ)に代えてIOリクエスト信号(XIORQ)が示されている。なおここでも、破線はハイインピーダンス状態を表す。   In the timing chart shown in FIG. 215, each signal is shown in order from the top, and an IO request signal (XIORQ) is shown instead of the memory request signal (XMREQ) shown in FIG. Again, the dashed line represents the high impedance state.

また、読み込み時のチップセレクト信号(XCS0〜XCS13)によって読み込むべきチップセットが選択され、選択されたチップセットにおける読み込むべきアドレスがアドレス入出力信号(A0〜A15)によって指定される。また、書き込み時のチップセレクト信号(XCS0〜XCS13)によって書き込むべきチップセットが選択され、選択されたチップセットにおける書き込むべきアドレスがアドレス入出力信号(A0〜A15)によって指定される。また、IOリクエスト信号(XIORQ)がLレベルのときに読み書きが許可され、読み込み時のリード信号(XRD)がLレベルのときに読み込みが許可され、書き込み時のライト信号(XWR)もLレベルのときに書き込みが許可される。したがって、IOリクエスト信号(XIORQ)がLレベルかつリード信号(XRD)もLレベルのときに、選択されたチップセットから指定されたアドレスのデータを読み込むことができ、IOリクエスト信号(XIORQ)がLレベルかつライト信号(XWR)もLレベルのときに、選択されたチップセットの指定されたアドレスにデータを書き込むことができるが、ここでも各信号では時間的ズレが生じている。しかも、クロック出力信号(CLKO)は定期的な信号であるのに対して、IOリクエスト信号(XIORQ)やライト信号(XWR)は、プログラムに従って任意のタイミングで出力される不定期な信号、すなわち、外部の周辺機器や周辺回路(外部I/O)とのやり取りのために不定期に発生する信号であり、定期的なクロック出力信号(CLKO)に対して同期していないことがわかる。第2実施形態でも、これら不定期に発生するIOリクエスト信号(XIORQ)やライト信号(XWR)が制御レジスタ3121に入力され、これら不定期の信号をカウンタ回路312の更新ソースとして利用することができる   A chip set to be read is selected by a chip select signal (XCS0 to XCS13) at the time of reading, and an address to be read in the selected chip set is designated by an address input / output signal (A0 to A15). A chip set to be written is selected by a chip select signal (XCS0 to XCS13) at the time of writing, and an address to be written in the selected chip set is designated by an address input / output signal (A0 to A15). In addition, reading and writing are permitted when the IO request signal (XIORQ) is at L level, reading is permitted when the reading signal (XRD) at reading is L level, and the writing signal (XWR) at writing is also L level. Sometimes writing is allowed. Therefore, when the IO request signal (XIORQ) is at the L level and the read signal (XRD) is also at the L level, the data at the designated address can be read from the selected chip set, and the IO request signal (XIORQ) is at the L level. When the level and the write signal (XWR) are also at the L level, data can be written to the designated address of the selected chip set, but here again, there is a time shift in each signal. Moreover, while the clock output signal (CLKO) is a periodic signal, the IO request signal (XIORQ) and the write signal (XWR) are irregular signals that are output at an arbitrary timing according to a program, that is, It can be seen that the signal is generated irregularly for exchange with an external peripheral device or peripheral circuit (external I / O) and is not synchronized with the periodic clock output signal (CLKO). Also in the second embodiment, these irregularly generated IO request signals (XIORQ) and write signals (XWR) are input to the control register 3121, and these irregular signals can be used as the update source of the counter circuit 312.

図216は、図146に示すマイクロプロセッサ3000内部におけるカウンタ回路312への信号の流れを内部のみ示す図である。   FIG. 216 is a diagram showing only the flow of signals to counter circuit 312 in microprocessor 3000 shown in FIG. 146.

この図216には、CPU304、タイマ回路311、カウンタ回路312、割込み制御回路3100、クロック回路320、外部バス制御回路3110、およびアドレスデコーダ回路3103が内部バス3300を介して互いに接続されている様子が示されている。また、図216には、その他回路4000も示されている。その他回路4000には、マイクロプロセッサ3000の外部の周辺機器や周辺回路(例えば、図75に示す主制御部300の各駆動回路324、326、330、334等)が相当する。   In FIG. 216, the CPU 304, timer circuit 311, counter circuit 312, interrupt control circuit 3100, clock circuit 320, external bus control circuit 3110, and address decoder circuit 3103 are connected to each other via the internal bus 3300. It is shown. FIG. 216 also shows other circuit 4000. The other circuit 4000 corresponds to a peripheral device or a peripheral circuit outside the microprocessor 3000 (for example, each drive circuit 324, 326, 330, 334, etc. of the main control unit 300 shown in FIG. 75).

また、メモリリクエスト信号(XMREQ信号)は、CPU304からその他回路4000の内蔵ROMや内蔵RAMに送られ、カウンタ回路312にも取得されることが示され、IOリクエスト信号(XIORQ信号)は、CPU304からその他回路4000の内蔵レジスタに送られ、カウンタ回路312にも取得されることが示されている。また、チップセレクト信号(XCS0〜XCS13)は、CPU304からその他回路4000の内蔵ROMや内蔵RAMや内蔵レジスタに送られ、カウンタ回路312にも取得されることが示されている。ライト信号(XWR信号)は、CPU304からその他回路4000の内蔵RAMや内蔵レジスタに送られ、カウンタ回路312にも取得されることが示されている。なお、本実施形態でも、カウンタ回路312の8ビットカウンタ3122のクロック源としては、先の実施形態と同じ信号が用いられ、リード信号(XRD)は選択できないが、カウンタ回路312はリード信号(XRD)も取得可能であり、そのリード信号(XRD)をクロック源として利用してもよい。さらに、不定期に出力される割込み要求応答信号(XINTACK信号)もカウンタ回路312に取得されることが示されている。また、タイマ回路311に含まれるタイマ回路0〜2それぞれからのタイムアウト信号は、カウンタ回路312に送られ、クロック回路320からはシステムクロック信号(SCLK)がカウンタ回路312に送られる。   In addition, the memory request signal (XMREQ signal) is sent from the CPU 304 to the built-in ROM or RAM of the other circuit 4000 and acquired by the counter circuit 312, and the IO request signal (XIORQ signal) is sent from the CPU 304. It is shown that it is sent to the internal register of the other circuit 4000 and also acquired by the counter circuit 312. In addition, it is shown that the chip select signals (XCS0 to XCS13) are sent from the CPU 304 to the built-in ROM, built-in RAM, and built-in register of the other circuit 4000 and acquired by the counter circuit 312. It is shown that the write signal (XWR signal) is sent from the CPU 304 to the built-in RAM or built-in register of the other circuit 4000 and also acquired by the counter circuit 312. In this embodiment as well, the same signal as in the previous embodiment is used as the clock source of the 8-bit counter 3122 of the counter circuit 312 and the read signal (XRD) cannot be selected. However, the counter circuit 312 has the read signal (XRD). ) Can also be obtained, and the read signal (XRD) may be used as a clock source. Further, it is shown that an interrupt request response signal (XINTACK signal) output irregularly is also acquired by the counter circuit 312. Further, the time-out signal from each of the timer circuits 0 to 2 included in the timer circuit 311 is sent to the counter circuit 312, and the system clock signal (SCLK) is sent from the clock circuit 320 to the counter circuit 312.

この第2実施形態においても、カウンタ回路312の更新にランダム性を持たせることができる。カウント回路312のカウント値は、普図変動時間決定用乱数値や特図変動時間決定用乱数値として用いられ、抽選処理のランダム性を高めることができる。   Also in the second embodiment, the updating of the counter circuit 312 can be given randomness. The count value of the count circuit 312 is used as a random number value for determining a normal figure variation time or a random number value for determining a special figure variation time, and can improve the randomness of the lottery process.

なお、以上説明した実施形態では、カウンタ回路312のカウント値を、普図変動時間決定用乱数値や特図変動時間決定用乱数値として用いているが、普図の当りや特図の大当りか否かを抽選する当否判定や、特図の図柄を決定する抽選に用いてもよい。すなわち、制御状態の変更に関係する抽選や、賞球の払出に関係する抽選に用いてもよい。あるいは、その他の演出に関する抽選処理(例えば、先読み予告の実行可否抽選)に用いてもよい。
<主制御部タイマ割込処理>の変形例
In the above-described embodiment, the count value of the counter circuit 312 is used as a random number value for determining a normal figure variation time or a random number value for determining a special figure variation time. You may use for the lottery which determines the success / failure determination which draws a lot, or the symbol of a special figure. That is, you may use for the lottery relevant to the change of a control state, or the lottery relevant to payout of a prize ball. Or you may use for the lottery process (For example, the lottery of the pre-reading notice execution possibility) regarding another production.
<Modification of main controller timer interrupt processing>

次に、図217を用いて、主制御部300のCPU304が実行する主制御部タイマ割込処理の変形例について説明する。なお、同図は主制御部タイマ割込処理の流れを示すフローチャートである。   Next, a modified example of the main control unit timer interrupt process executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of the main control unit timer interrupt process.

主制御部300は、所定の周期(本実施形態では約4msに1回)でタイマ割込信号を発生するカウンタタイマ312を備えており、このタイマ割込信号を契機として主制御部タイマ割込処理を所定の周期で開始する。   The main control unit 300 includes a counter timer 312 that generates a timer interrupt signal at a predetermined cycle (in this embodiment, about once every 4 ms), and the main control unit timer interrupt is triggered by this timer interrupt signal. The process is started at a predetermined cycle.

ステップS4201では、タイマ割込開始処理を行う。このタイマ割込開始処理では、CPU304の各レジスタの値をスタック領域に一時的に退避する処理などを行う。   In step S4201, timer interrupt start processing is performed. In this timer interrupt start process, a process of temporarily saving each register value of the CPU 304 to the stack area is performed.

ステップS4203では、WDT314のカウント値が初期設定値(本実施形態では32.8ms)を超えてWDT割込が発生しないように(処理の異常を検出しないように)、WDTを定期的に(本実施形態では、主制御部タイマ割込の周期である約4msに1回)リスタートを行う。   In step S4203, the WDT is counted periodically (to prevent detection of processing abnormality) so that the WDT 314 count value exceeds the initial setting value (32.8 ms in this embodiment) and a WDT interrupt does not occur. In the embodiment, the restart is performed once every about 4 ms, which is the period of the main control unit timer interrupt.

ステップS4205では、入力ポート状態更新処理を行う。この入力ポート状態更新処理では、I/O310の入力ポートを介して、上述の前面枠扉開放センサや内枠開放センサや下皿満タンセンサ、各種の球検出センサを含む各種センサ320の検出信号を入力して検出信号の有無を監視し、RAM308に各種センサ320ごとに区画して設けた信号状態記憶領域に記憶する。球検出センサの検出信号を例にして説明すれば、前回のタイマ割込処理(約4ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた前回検出信号記憶領域から読み出し、この情報をRAM308に各々の球検出センサごとに区画して設けた前々回検出信号記憶領域に記憶し、前回のタイマ割込処理(約4ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた今回検出信号記憶領域から読み出し、この情報を上述の前回検出信号記憶領域に記憶する。また、今回検出した各々の球検出センサの検出信号を、上述の今回検出信号記憶領域に記憶する。   In step S4205, input port state update processing is performed. In this input port state update process, the detection signals of various sensors 320 including the above-mentioned front frame door open sensor, inner frame open sensor, lower pan full sensor, and various ball detection sensors are input via the input port of the I / O 310. The input is monitored for the presence or absence of a detection signal, and stored in a signal state storage area provided for each of the various sensors 320 in the RAM 308. If the detection signal of the sphere detection sensor is described as an example, information on the presence or absence of the detection signal of each sphere detection sensor detected in the previous timer interruption process (about 4 ms before) is stored in the RAM 308 for each sphere detection sensor. This information is read out from the previous detection signal storage area partitioned and stored in the RAM 308 in the previous detection signal storage area partitioned for each sphere detection sensor, and the previous timer interrupt processing (about 4 ms before) ) Is read from the current detection signal storage area provided for each sphere detection sensor in the RAM 308, and this information is read out from the previous detection signal storage area described above. To remember. Further, the detection signal of each sphere detection sensor detected this time is stored in the above-described current detection signal storage area.

また、ステップS4205では、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域の各記憶領域に記憶した各々の球検出センサの検出信号の有無の情報を比較し、各々の球検出センサにおける過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致するか否かを判定する。一個の遊技球が一つの球検出センサを通過する間に、約4msという非常に短い間隔で起動を繰り返すこの主制御部タイマ割込処理は何回か起動する。このため、主制御部タイマ割込処理が起動する度に、上述のステップS4205では、同じ遊技球が同じ球検出センサを通過したことを表す検出信号を確認することになる。この結果、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域それぞれに、同じ遊技球が同じ球検出センサを通過したことを表す検出信号が記憶される。すなわち、遊技球が球検出センサを通過し始めたときには、前々回検出信号無し、前回検出信号有り、今回検出信号有りになる。本実施形態では、球検出センサの誤検出やノイズを考慮して、検出信号無しの後に検出信号が連続して2回記憶されている場合には、入賞があったと判定する。図75に示す主制御部300のROM306には、入賞判定パターン情報(本実施形態では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)が記憶されている。このステップS4205では、各々の球検出センサにおいて過去3回分の検出信号の有無の情報が、予め定めた入賞判定パターン情報(本実施形態では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)と一致した場合に、一般入賞口226、可変入賞口234、第1特図始動口230、および第2特図始動口232への入球、または普図始動口228の通過があったと判定する。すなわち、これらの入賞口226、234やこれらの始動口230、232、228への入賞があったと判定する。例えば、一般入賞口226への入球を検出する一般入賞口センサにおいて過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致した場合には、一般入賞口226へ入賞があったと判定し、以降の一般入賞口226への入賞に伴う処理を行うが、過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致しなかった場合には、以降の一般入賞口226への入賞に伴う処理を行わずに後続の処理に分岐する。なお、主制御部300のROM306には、入賞判定クリアパターン情報(本実施形態では、前々回検出信号有り、前回検出信号無し、今回検出信号無しであることを示す情報)が記憶されている。入賞が一度あったと判定した後は、各々の球検出センサにおいて過去3回分の検出信号の有無の情報が、その入賞判定クリアパターン情報に一致するまで入賞があったとは判定せず、入賞判定クリアパターン情報に一致すれば、次からは上記入賞判定パターン情報に一致するか否かの判定を行う。なお、本実施形態では、入賞口226、234や始動口230、232、228へ入賞があったか否かの判定として、前々回、前回および今回の検出信号が予め定められた入賞判定パターン情報と一致した否かを判定していたが、このような方法に限らず、例えば、前回および今回の検出信号が予め定められた入賞判定パターン情報(例えば、前回検出信号なし、今回検出信号あり(いわゆるアップエッジ))と一致したか否かを判定するように構成してもよい。すなわち、球検出センサからの検出信号の有無を監視し、この監視結果の履歴が予め定められたパターンと一致したか否かを判定するように構成すればよい。   In step S4205, the information on the presence / absence of the detection signal of each sphere detection sensor stored in each storage area of the detection signal storage area, the previous detection signal storage area, and the current detection signal storage area is compared. It is determined whether or not the information on the presence or absence of detection signals for the past three times in the ball detection sensor matches the winning determination pattern information. This main control unit timer interruption process that is repeatedly started at a very short interval of about 4 ms is started several times while one game ball passes through one ball detection sensor. For this reason, every time the main control unit timer interrupt process is activated, in step S4205 described above, a detection signal indicating that the same game ball has passed the same ball detection sensor is confirmed. As a result, a detection signal indicating that the same game ball has passed the same ball detection sensor is stored in each of the detection signal storage area, the previous detection signal storage area, and the current detection signal storage area. That is, when the game ball starts to pass through the ball detection sensor, there is no detection signal before, a previous detection signal, and a current detection signal. In the present embodiment, in consideration of erroneous detection of the sphere detection sensor and noise, it is determined that there is a prize when the detection signal is stored twice continuously after no detection signal. In the ROM 306 of the main control unit 300 shown in FIG. 75, winning determination pattern information (in this embodiment, information indicating that there is no previous detection signal, that there is a previous detection signal, and that there is a current detection signal) is stored. In this step S4205, information on the presence / absence of detection signals for the past three times in each sphere detection sensor is predetermined winning determination pattern information (in this embodiment, no previous detection signal, previous detection signal present, current detection signal present). In the case of the general winning port 226, the variable winning port 234, the first special figure starting port 230, and the second special figure starting port 232, or the ordinary drawing starting port 228. Is determined to have passed. In other words, it is determined that a prize has been awarded to the winning ports 226 and 234 and the starting ports 230, 232, and 228. For example, when the information on the presence / absence of the detection signals for the past three matches with the above-described winning determination pattern information in the general winning opening sensor for detecting the winning at the general winning opening 226, there is a winning at the general winning opening 226. If the information on the presence / absence of detection signals for the past three times does not match the above-described winning determination pattern information, the subsequent general winnings are performed. The process branches to the subsequent process without performing the process associated with winning the prize to the mouth 226. Note that the ROM 306 of the main control unit 300 stores winning determination clear pattern information (in this embodiment, information indicating that there is a detection signal before the previous time, no previous detection signal, and no current detection signal). After it is determined that there has been a single win, it is not determined that there has been a win until the information on the presence or absence of detection signals for the past three times matches the winning determination clear pattern information in each ball detection sensor, and the winning determination is cleared. If it matches the pattern information, it is next determined whether or not it matches the winning determination pattern information. In this embodiment, as a determination of whether or not there has been a winning at the winning ports 226 and 234 and the starting ports 230, 232, and 228, the previous and previous detection signals coincided with predetermined winning determination pattern information. However, the present invention is not limited to such a method. For example, winning determination pattern information (for example, no previous detection signal, current detection signal is present (so-called up-edge) )) May be determined. That is, it may be configured to monitor whether or not there is a detection signal from the sphere detection sensor and determine whether or not the history of the monitoring result matches a predetermined pattern.

ステップS4207およびステップS4209では、基本乱数初期値更新処理および基本乱数更新処理を行う。これらの基本乱数初期値更新処理および基本乱数更新処理では、上記ステップS115で行った初期値生成用乱数カウンタの値の更新を行い、次に主制御部300で使用する、普図当選乱数値を生成するためのカウンタと、特図1乱数値および特図2乱数値それぞれを加工するためのカウンタ(以下、特図当選乱数加工用カウンタ)を更新する。例えば、普図当選乱数値として取り得る数値範囲が0〜100とすると、RAM308に設けた普図当選乱数値を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が101であれば0を元の乱数カウンタ記憶領域に記憶する。また、取得した値に1を加算した結果、乱数カウンタが一周していると判定した場合にはそれぞれの乱数カウンタに対応する初期値生成用乱数カウンタの値を取得し、乱数カウンタの記憶領域にセットする。例えば、0〜100の数値範囲で変動する普図当選乱数値生成用の乱数カウンタから値を取得し、取得した値に1を加算した結果が、RAM308に設けた所定の初期値記憶領域に記憶している前回設定した初期値と等しい値(例えば7)である場合に、普図当選乱数値生成用の乱数カウンタに対応する初期値生成用乱数カウンタから値を初期値として取得し、普図当選乱数値生成用の乱数カウンタにセットすると共に、普図当選乱数値生成用の乱数カウンタが次に1周したことを判定するために、今回設定した初期値を上述の初期値記憶領域に記憶しておく。また、普図当選乱数値生成用の乱数カウンタが次に1周したことを判定するための上述の初期値記憶領域とは別に、特図乱数生成用の乱数カウンタが1周したことを判定するための初期値記憶領域をRAM308に設けている。なお、本実施形態では特図1の乱数値および特図2の乱数値を加工するためのカウンタを同一のカウンタとして設けたが、それぞれ異なるカウンタとしてもよい。   In step S4207 and step S4209, a basic random number initial value update process and a basic random number update process are performed. In these basic random number initial value update processing and basic random number update processing, the value of the initial value generation random number counter performed in step S115 is updated, and then the normal winning random number value used in the main control unit 300 is updated. A counter for generating and a counter for processing each of the special figure 1 random value and the special figure 2 random value (hereinafter, special figure winning random number processing counter) are updated. For example, if the range of values that can be taken as a random number value for a normal winning number is 0 to 100, a value is acquired from a random number counter storage area for generating a normal winning random number value provided in the RAM 308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 101, 0 is stored in the original random number counter storage area. If it is determined that the random number counter has made one round as a result of adding 1 to the acquired value, the value of the initial value generating random number counter corresponding to each random number counter is acquired and stored in the storage area of the random number counter. set. For example, a value is acquired from a random number counter for generating a regular winning random number that fluctuates in a numerical range of 0 to 100, and a result obtained by adding 1 to the acquired value is stored in a predetermined initial value storage area provided in the RAM 308. If the value is equal to the previously set initial value (for example, 7), the value is acquired as an initial value from the initial value generation random number counter corresponding to the random number counter for generating the random number for winning the normal number, The initial value set this time is stored in the above-described initial value storage area in order to determine that the random number counter for generating the winning random number value has made one round next time, in addition to setting it in the random number counter for generating the winning random value Keep it. Further, apart from the above-described initial value storage area for determining that the random number counter for generating the random number for winning the normal signal has made one round next, it is determined that the random number counter for generating the special figure random number has made one round. An initial value storage area is provided in the RAM 308. In the present embodiment, the counters for processing the random number values in FIG. 1 and the random number values in FIG. 2 are provided as the same counter, but different counters may be used.

ステップS4211では、演出乱数更新処理を行う。この演出乱数更新処理では、主制御部300で使用する演出用乱数値を生成するための乱数カウンタを更新する。   In step S4211, effect random number update processing is performed. In this effect random number update process, a random number counter for generating an effect random number used by the main control unit 300 is updated.

ステップS4213では、タイマ更新処理を行う。このタイマ更新処理では、普通図柄表示装置210に図柄を変動・停止表示する時間を計時するための普図表示図柄更新タイマ、第1特別図柄表示装置212に図柄を変動・停止表示する時間を計時するための特図1表示図柄更新タイマ、第2特図表示装置214に図柄を変動・停止表示する時間を計時するための特図2表示図柄更新タイマ、所定の入賞演出時間、所定の開放時間、所定の閉鎖時間、所定の終了演出期間などを計時するためのタイマなどを含む各種タイマを更新する。   In step S4213, timer update processing is performed. In this timer update process, the normal symbol display symbol update timer for timing the time for the symbol to be changed / stopped on the normal symbol display device 210, and the time for the symbol to be changed / stopped to be displayed on the first special symbol display device 212 are timed. Special symbol 1 display symbol update timer for performing, special symbol 2 display symbol update timer for measuring the time for the symbol to be changed and stopped on the second special symbol display device 214, a predetermined winning effect time, a predetermined opening time Various timers including a timer for measuring a predetermined closing time, a predetermined end effect period, and the like are updated.

ステップS4215では、入賞口カウンタ更新処理を行う。この入賞口カウンタ更新処理では、入賞口226、234や始動口230、232、228に入賞があった場合に、RAM308に各入賞口ごと、あるいは各始動口ごとに設けた賞球数記憶領域の値を読み出し、1を加算して、元の賞球数記憶領域に設定する。   In step S4215, a winning opening counter update process is performed. In this winning opening counter updating process, when winning holes 226, 234 and starting holes 230, 232, 228 are won, the RAM 308 stores the winning ball number storage area provided for each winning hole or for each starting hole. The value is read out, 1 is added, and the original prize ball number storage area is set.

また、ステップS4217では、入賞受付処理を行う。この入賞受付処理では、第1特図始動口230、第2特図始動口232、普図始動口228および可変入賞口234への入賞があったか否かを判定する。ここでは、ステップS4205における入賞判定パターン情報と一致するか否かの判定結果を用いて判定する。第1特図始動口230へ入賞があった場合、且つRAM308に設けた対応する保留数記憶領域が満タンでない場合には、乱数生成回路318の特図1に対応するチャンネルの乱数をラッチするためのラッチ信号を出力する処理(具体的には、ソフトラッチレジスタ3186の特図1のチャンネルに対応する領域に所定の値を書き込む処理)を実行するとともに、このラッチ信号によってラッチされた乱数を取得するためのリード信号を出力する処理(具体的には、乱数レジスタ3188のうちの特図1のチャンネルに対応する乱数レジスタに対してリード信号を出力する処理)を実行してラッチされている乱数を取得して対応する乱数値記憶領域に格納し、さらに、特図当選乱数加工用カウンタから値を取得して対応する乱数値記憶領域に格納する。第2特図始動口232へ入賞があった場合も第1特図始動口へ入賞があった場合と同様の処理を実行する。なお、本実施形態では、乱数生成回路318から乱数を取得する方法として特図1および2に対応するチャンネルの乱数をラッチするためのラッチ信号を出力する処理を行った後にラッチした乱数を取得するリード信号を出力する方法を採用しているが、特図1および2に対応するチャンネルの乱数を直読みする処理(具体的には、乱数レジスタ3188の値を直接リードする処理)を実行して取得するようにしてもよい。続いて普図始動口228へ入賞があった場合、且つRAM308に設けた対応する保留数記憶領域が満タンでない場合、普図当選乱数値生成用の乱数カウンタから値を普図当選乱数値として取得して対応する乱数値記憶領域に格納する。可変入賞口234へ入賞があった場合には、可変入賞口用の入賞記憶領域に、可変入賞口234に球が入球したことを示す情報を格納する。なお、本実施形態では、特図1および2のラッチされた乱数を取得するためのリード信号を出力する処理(乱数レジスタ3188の値を直接リードする処理とは異なる)を主制御部タイマ割込み処理において実行するように構成しているが、この処理に関しては上述した主制御部メイン処理において実行するように構成してもよく、この場合は、後述する特図関連抽選処理を合わせて主制御部メイン処理において実行するように構成すればよいく、特図1および2に対応するチャンネルの乱数値を直読みする処理を実行する場合においては、特図関連抽選処理のみを主制御部メイン処理おいて実行するように構成すればよい。   In step S4217, a winning acceptance process is performed. In this winning acceptance process, it is determined whether or not there has been a winning at the first special figure starting port 230, the second special figure starting port 232, the ordinary drawing starting port 228, and the variable winning port 234. Here, the determination is made using the determination result as to whether or not it matches the winning determination pattern information in step S4205. If there is a winning at the first special figure starting port 230 and the corresponding reserved number storage area provided in the RAM 308 is not full, the random number of the channel corresponding to the special figure 1 of the random number generation circuit 318 is latched. And a process for outputting a latch signal (specifically, a process for writing a predetermined value in an area corresponding to the channel of the special latch 1 of the soft latch register 3186) and a random number latched by the latch signal A process of outputting a read signal for acquisition (specifically, a process of outputting a read signal to the random number register corresponding to the channel in FIG. 1 in the random number register 3188) is executed and latched. The random number is acquired and stored in the corresponding random value storage area, and further, the value is acquired from the special figure winning random number processing counter and stored in the corresponding random value storage area. To. The same process as when there is a winning at the first special figure starting port is executed also when there is a winning at the second special figure starting port 232. In this embodiment, as a method of acquiring a random number from the random number generation circuit 318, a latched random number is acquired after performing a process of outputting a latch signal for latching a random number of a channel corresponding to FIGS. The method of outputting the read signal is adopted, but the process of directly reading the random number of the channel corresponding to FIGS. 1 and 2 (specifically, the process of directly reading the value of the random number register 3188) is executed. You may make it acquire. Subsequently, when a winning is made to the ordinary figure starting port 228, and the corresponding reserved number storage area provided in the RAM 308 is not full, the value from the random number counter for generating the ordinary figure winning random number value is set as the usual figure winning random number value. Acquire and store in the corresponding random value storage area. When there is a winning at the variable winning opening 234, information indicating that a ball has entered the variable winning opening 234 is stored in the winning storage area for the variable winning opening. In the present embodiment, the main controller timer interrupt processing is performed in accordance with the processing for outputting a read signal for acquiring the latched random number shown in FIGS. 1 and 2 (different from the processing for directly reading the value of the random number register 3188). However, this process may be executed in the main control unit main process described above. In this case, the main control unit is combined with a special drawing related lottery process described later. It is sufficient that the main process is executed. In the case where the process of directly reading the random number values of the channels corresponding to the special figures 1 and 2 is executed, only the special figure related lottery process is performed in the main process. And can be configured to execute.

ステップS4219では、払出要求数送信処理を行う。なお、払出制御部600に出力する出力予定情報および払出要求情報は、例えば1バイトで構成しており、ビット7にストローブ情報(オンの場合、データをセットしていることを示す)、ビット6に電源投入情報(オンの場合、電源投入後一回目のコマンド送信であることを示す)、ビット4〜5に暗号化のための今回加工種別(0〜3)、およびビット0〜3に暗号化加工後の払出要求数を示すようにしている。   In step S4219, a payout request number transmission process is performed. Note that the output schedule information and the payout request information output to the payout control unit 600 are composed of, for example, 1 byte, strobe information (indicating that data is set when ON), bit 6 Power-on information (if turned on, indicates that this is the first command transmission after power-on), bits 4-5 indicate the current processing type for encryption (0-3), and bits 0-3 indicate encryption The number of payout requests after processing is shown.

ステップS4221では、普図状態更新処理を行う。この普図状態更新処理は、普図の状態に対応する複数の処理のうちの1つの処理を行う。例えば、普図変動表示の途中(上述する普図表示図柄更新タイマの値が1以上)における普図状態更新処理では、普通図柄表示装置210を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。この制御を行うことで、普通図柄表示装置210は普図の変動表示(普図変動遊技)を行う。   In step S4221, a normal state update process is performed. This normal state update process performs one of a plurality of processes corresponding to the normal state. For example, in the normal state update process in the middle of the normal symbol display (the above-described general symbol display symbol update timer value is 1 or more), the 7-segment LED constituting the normal symbol display device 210 is repeatedly turned on and off. Turns off drive control. By performing this control, the normal symbol display device 210 performs a usual fluctuation display (ordinary figure fluctuation game).

また、普図変動表示時間が経過したタイミング(普図表示図柄更新タイマの値が1から0になったタイミング)における普図状態更新処理では、当りフラグがオンの場合には、当り図柄の表示態様となるように普通図柄表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行い、当りフラグがオフの場合には、外れ図柄の表示態様となるように普通図柄表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行う。また、主制御部300のRAM308には、普図状態更新処理に限らず各種の処理において各種の設定を行う設定領域が用意されている。ここでは、上記点灯・消灯駆動制御を行うとともに、その設定領域に普図停止表示中であることを示す設定を行う。この制御を行うことで、普通図柄表示装置210は、当り図柄(図76(c)に示す普図A)および外れ図柄(図76(c)に示す普図B)いずれか一方の図柄の確定表示を行う。さらにその後、所定の停止表示期間(例えば500m秒間)、その表示を維持するためにRAM308に設けた普図停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により、確定表示された図柄が所定期間停止表示され、普図変動遊技の結果が遊技者に報知される。   Also, in the normal state update process at the timing when the normal symbol change display time has elapsed (the timing at which the value of the general symbol display symbol update timer has changed from 1 to 0), if the hit flag is on, the hit symbol is displayed. The normal symbol display device 210 is controlled so that the 7-segment LED constituting the normal symbol display device 210 is turned on / off, and when the hit flag is off, the normal symbol display device 210 is configured to be in the off symbol display mode. 7 segment LED on / off drive control is performed. Further, the RAM 308 of the main control unit 300 is provided with a setting area for performing various settings in various processes, not limited to the normal state update process. Here, the above-described lighting / extinguishing drive control is performed, and the setting area is set to indicate that the normal stop display is being performed. By performing this control, the normal symbol display device 210 determines the symbol of either the winning symbol (general symbol A shown in FIG. 76 (c)) or the off symbol (general symbol B shown in FIG. 76 (c)). Display. Thereafter, information indicating the stop period is set in a storage area of a normal stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 msec). With this setting, the symbol that has been confirmed and displayed is stopped and displayed for a predetermined period, and the player is notified of the result of the normal game.

また、普図変動遊技の結果が当りであれば、後述するように、普図当りフラグがオンされる。この普図当りフラグがオンの場合には、所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)における普図状態更新処理では、RAM308の設定領域に普図作動中を設定するとともに、所定の開放期間(例えば2秒間)、第2特図始動口232の羽根部材232aの開閉駆動用のソレノイド(332)に、羽根部材232aを開放状態に保持する信号を出力するとともに、RAM308に設けた羽根開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。   Further, if the result of the usual figure variable game is a hit, the usual figure hit flag is turned on as will be described later. When the usual figure hit flag is on, in the usual figure state update process at the timing when the predetermined stop display period ends (when the usual figure stop time management timer value changes from 1 to 0), The normal operation is set in the setting area, and the blade member 232a is opened to a solenoid (332) for opening and closing the blade member 232a of the second special figure starting port 232 for a predetermined opening period (for example, 2 seconds). And a signal indicating the open period is set in the storage area of the blade open time management timer provided in the RAM 308.

また、所定の開放期間が終了したタイミング(羽根開放時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、所定の閉鎖期間(例えば500m秒間)、羽根部材の開閉駆動用のソレノイド332に、羽根部材を閉鎖状態に保持する信号を出力するとともに、RAM308に設けた羽根閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。   In the usual state update process that starts at the timing when the predetermined opening period ends (the timing when the value of the blade opening time management timer is changed from 1 to 0), the blade member has a predetermined closing period (for example, 500 milliseconds). A signal for holding the blade member in the closed state is output to the opening / closing drive solenoid 332, and information indicating the closing period is set in the storage area of the blade closing time management timer provided in the RAM 308.

また、所定の閉鎖期間が終了したタイミング(羽根閉鎖時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、RAM308の設定領域に普図非作動中を設定する。さらに、普図変動遊技の結果が外れであれば、後述するように、普図外れフラグがオンされる。この普図外れフラグがオンの場合には、上述した所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)における普図状態更新処理でも、RAM308の設定領域に普図非作動中を設定する。普図非作動中の場合における普図状態更新処理では、何もせずに次のステップS4223に移行するようにしている。   Further, in the normal state update process that starts at the timing when the predetermined closing period ends (when the value of the blade closing time management timer is changed from 1 to 0), the non-operating state is set in the setting area of the RAM 308. To do. Furthermore, if the result of the usual figure fluctuation game is out, the usual figure out flag is turned on as will be described later. When the off-normal flag is on, the normal state update process at the timing when the predetermined stop display period described above ends (the timing at which the normal stop time management timer value changes from 1 to 0) In the setting area of the RAM 308, normal operation inactive is set. In the normal state update process in the case where the normal is not operating, nothing is done and the process proceeds to the next step S4223.

ステップS4223では、普図関連抽選処理を行う。この普図関連抽選処理では、普図変動遊技および第2特図始動口232の開閉制御を行っておらず(普図の状態が非作動中)、且つ、保留している普図変動遊技の数が1以上である場合に、上述の乱数値記憶領域に記憶している普図当選乱数値に基づいた乱数抽選により普図変動遊技の結果を当選とするか、不当選とするかを決定する当り判定をおこない、当選とする場合にはRAM308に設けた当りフラグにオンを設定する。不当選の場合には、当りフラグにオフを設定する。また、当り判定の結果に関わらず、次に上述の普図タイマ乱数値生成用の乱数カウンタの値を普図タイマ乱数値として取得し、取得した普図タイマ乱数値に基づいて複数の変動時間のうちから普図表示装置210に普図を変動表示する時間を1つ選択し、この変動表示時間を、普図変動表示時間として、RAM308に設けた普図変動時間記憶領域に記憶する。なお、保留している普図変動遊技の数は、RAM308に設けた普図保留数記憶領域に記憶するようにしており、当り判定をするたびに、保留している普図変動遊技の数から1を減算した値を、この普図保留数記憶領域に記憶し直すようにしている。また当り判定に使用した乱数値を消去する。   In step S4223, a general drawing related lottery process is performed. In this general map-related lottery process, the open / close control of the general map variable game and the second special map start port 232 is not performed (the state of the general map is not in operation), and the pending general map variable game is not held. When the number is 1 or more, it is decided whether to win or not to win the result of the variable figure game by random lottery based on the random number value stored in the random number value storage area. When the winning judgment is made and the winning is made, the winning flag provided in the RAM 308 is set to ON. If unsuccessful, turn off the winning flag. Regardless of the result of the hit determination, next, the value of the random number counter for generating the normal figure timer random value is acquired as the normal figure timer random number value, and a plurality of fluctuation times are obtained based on the acquired general figure timer random number value. One time is selected for variably displaying the normal map on the general map display device 210, and this variable display time is stored as a normal map variable display time in a general map variable time storage area provided in the RAM 308. In addition, the number of pending general figure variable games is stored in the usual figure pending number storage area provided in the RAM 308, and from the number of pending custom figure variable games each time a hit determination is made. The value obtained by subtracting 1 is re-stored in the usual figure number-of-holds storage area. Also, the random number value used for the hit determination is deleted.

次いで、特図1および特図2それぞれについての特図状態更新処理を行うが、最初に、特図2についての特図状態更新処理(特図2状態更新処理)を行う(ステップS4225)。この特図2状態更新処理は、特図2の状態に応じて、次の8つの処理のうちの1つの処理を行う。例えば、特図2変動表示の途中(上述の特図2表示図柄更新タイマの値が1以上)における特図2状態更新処理では、第2特別図柄表示装置214を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。この制御を行うことで、第2特別図柄表示装置214は特図2の変動表示(特図2変動遊技)を行う。また、コマンド設定送信処理(ステップS4233)で回転開始設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶してから処理を終了する。   Subsequently, the special figure state update process for each of the special figure 1 and the special figure 2 is performed. First, the special figure state update process (the special figure 2 state update process) for the special figure 2 is performed (step S4225). In the special figure 2 state update process, one of the following eight processes is performed in accordance with the state of the special figure 2. For example, in the special figure 2 state update process in the middle of the special figure 2 fluctuation display (the value of the above-mentioned special figure 2 display symbol update timer is 1 or more), the 7-segment LED constituting the second special symbol display device 214 is turned on. Performs lighting / extinguishing drive control that repeatedly turns off. By performing this control, the second special symbol display device 214 performs the variable display of the special figure 2 (special figure 2 variable game). In addition, predetermined transmission information indicating that the rotation start setting transmission process is to be executed in the command setting transmission process (step S4233) is additionally stored in the transmission information storage area, and the process ends.

また、主制御部300のRAM308の当否判定結果記憶領域には、15R大当りフラグ、2R大当りフラグ、第1小当りフラグ、第2小当りフラグ、第1はずれフラグ、第2はずれフラグ、特図確率変動フラグ、および普図確率変動フラグそれぞれのフラグが用意されている。特図2変動表示時間が経過したタイミング(特図2表示図柄更新タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、15R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグもオンの場合には図76(a)に示す特図A、15R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグはオンの場合には特図B、2R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグもオンの場合には特図C、2R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグはオンの場合には特図D、2R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグはオンの場合には特図E、2R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグもオフの場合には特図F、第1小当りフラグがオンの場合には特図G、第2小当りフラグがオンの場合には特図H、第1はずれフラグがオンの場合には特図I、第2はずれフラグがオンの場合には特図Iそれぞれの態様となるように、第2特別図柄表示装置214を構成する7セグメントLEDの点灯・消灯駆動制御を行い、RAM308の設定領域に特図2停止表示中であることを表す設定を行う。この制御を行うことで、第2特別図柄表示装置214は、15R特別大当り図柄(特図A)、15R大当り図柄(特図B)、突然確変図柄(特図C)、突然時短図柄(特図D)、隠れ確変図柄(特図E)、突然通常図柄(特図F)、第1小当り図柄(特図G)、第2小当り図柄(特図H)、第1はずれ図柄(特図I)、および第2はずれ図柄(特図J)のいずれか一つの図柄の確定表示を行う。さらにその後、所定の停止表示期間(例えば500m秒間)その表示を維持するためにRAM308に設けた特図2停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により、確定表示された特図2が所定期間停止表示され、特図2変動遊技の結果が遊技者に報知される。また、RAM308に設けられた時短回数記憶部に記憶された時短回数が1以上であれば、その時短回数から1を減算し、減算結果が1から0となった場合は、特図確率変動中(詳細は後述)でなければ、時短フラグをオフする。さらに、大当り遊技中(特別遊技状態中)にも、時短フラグをオフする。   In addition, in the RAM 308 determination result storage area of the main controller 300, the 15R big hit flag, 2R big hit flag, first small hit flag, second small hit flag, first off flag, second off flag, special figure probability A flag for each of a variation flag and an ordinary probability variation flag is prepared. In the special figure 2 state update process starting at the timing when the special figure 2 fluctuation display time has elapsed (the timing when the special figure 2 display symbol update timer value has changed from 1 to 0), the 15R big hit flag is on, and the special figure probability fluctuation When the flag is also on and the normal figure probability fluctuation flag is on, the special figure A and 15R jackpot flag shown in FIG. 76 (a) are on, the special figure probability fluctuation flag is off, and the common figure probability fluctuation flag is on. When the special figure B, 2R big hit flag is on, the special figure probability fluctuation flag is on, and the general figure probability fluctuation flag is also on, the special figure C, 2R big hit flag is on, the special figure probability fluctuation flag is off, When the probability fluctuation flag is on, the special figure D, 2R jackpot flag is on, the special figure probability fluctuation flag is on, and when the common figure probability fluctuation flag is on, the special figure E, 2R jackpot flag is on, special chart Probability flag is off, normal When the probability variation flag is also off, special figure F, when the first small hit flag is on, special figure G, when the second small hit flag is on, special figure H, and the first off flag are on In such a case, the 7-segment LED constituting the second special symbol display device 214 is controlled to be turned on / off so that the special figure I and the second off flag are turned on, respectively, so that the special figure I is in the respective mode. A setting indicating that the special figure 2 stop display is in progress is made in the setting area of the RAM 308. By performing this control, the second special symbol display device 214 has a 15R special jackpot symbol (special symbol A), a 15R jackpot symbol (special symbol B), a sudden probability variation symbol (special symbol C), and a sudden time-short symbol symbol (special symbol). D), hidden probability variation (special E), suddenly normal (special F), first small hit (special G), second small hit (special H), first off symbol (special) Any one of the symbols I) and the second off-set symbol (special symbol J) is confirmed and displayed. After that, information indicating the stop period is set in the storage area of the special figure 2 stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 milliseconds). With this setting, the specially displayed special figure 2 is stopped and displayed for a predetermined period, and the result of the special figure 2 variable game is notified to the player. In addition, if the time reduction number stored in the time reduction number storage unit provided in the RAM 308 is 1 or more, 1 is subtracted from the time reduction number, and if the subtraction result becomes 1 to 0, the special figure probability is changing. If not (details will be described later), the time reduction flag is turned off. Further, the hourly flag is also turned off during the big hit game (in the special game state).

また、コマンド設定送信処理(ステップS4233)で回転停止設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶するとともに、変動表示を停止する図柄が特図2であることを示す特図2識別情報を、後述するコマンドデータに含める情報としてRAM308に追加記憶してから処理を終了する。   Further, the special transmission information indicating that the rotation stop setting transmission process is executed in the command setting transmission process (step S4233) is additionally stored in the above-described transmission information storage area, and the design for stopping the variable display is shown in FIG. The special figure 2 identification information indicating the presence is additionally stored in the RAM 308 as information to be included in command data, which will be described later, and the processing is terminated.

また、特図2変動遊技の結果が大当りであれば、後述するように、大当りフラグがオンされる。この大当りフラグがオンの場合には、所定の停止表示期間が終了したタイミング(特図2停止時間管理用タイマの値が1から0になったタイミング)における特図2状態更新処理では、RAM308の設定領域に特図2作動中を設定するとともに、所定の入賞演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを開始することを遊技者に報知する画像を表示している期間待機するためにRAM308に設けた特図2待機時間管理用タイマの記憶領域に入賞演出期間を示す情報を設定する。また、コマンド設定送信処理(ステップS4233)で入賞演出設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   If the result of the special figure 2 variable game is a big hit, the big hit flag is turned on as will be described later. When the jackpot flag is on, in the special figure 2 state update process at the timing when the predetermined stop display period ends (the timing when the special figure 2 stop time management timer value changes from 1 to 0), the RAM 308 In the setting area, the special figure 2 is in operation and waits for a predetermined winning effect period (for example, 3 seconds), that is, a period during which an image for notifying the player that the big win by the decorative symbol display device 208 is started is displayed. Therefore, information indicating the winning effect period is set in the storage area of the special figure 2 standby time management timer provided in the RAM 308. Further, predetermined transmission information indicating that the winning effect setting transmission process is executed in the command setting transmission process (step S4233) is additionally stored in the transmission information storage area.

また、所定の入賞演出期間が終了したタイミング(特図2待機時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、所定の開放期間(例えば29秒間、または可変入賞口234に所定球数(例えば10球)の遊技球の入賞を検出するまで)可変入賞口234の扉部材234aの開閉駆動用のソレノイド(332)に、扉部材234aを開放状態に保持する信号を出力するとともに、RAM308に設けた扉開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。また、コマンド設定送信処理(ステップS4233)で大入賞口開放設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   Further, in the special figure 2 state update process that starts at the timing when the predetermined winning effect period ends (the timing when the value of the special figure 2 standby time management timer changes from 1 to 0), a predetermined release period (for example, 29 seconds) Alternatively, the door member 234a is opened to the solenoid (332) for opening and closing the door member 234a of the variable prize opening 234 until a winning of a predetermined number of balls (for example, 10 balls) is detected at the variable prize opening 234. In addition to outputting a signal to be held at the same time, information indicating the opening period is set in the storage area of the door opening time management timer provided in the RAM 308. In addition, predetermined transmission information indicating that the special winning opening release setting transmission process is executed in the command setting transmission process (step S4233) is additionally stored in the transmission information storage area.

また、所定の開放期間が終了したタイミング(扉開放時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、所定の閉鎖期間(例えば1.5秒間)可変入賞口234の扉部材234aの開閉駆動用のソレノイド(332)に、扉部材234aを閉鎖状態に保持する信号を出力するとともに、RAM308に設けた扉閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。また、コマンド設定送信処理(ステップS4233)で大入賞口閉鎖設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   In the special figure 2 state update process that starts at the timing when the predetermined opening period ends (the timing when the door opening time management timer value changes from 1 to 0), the predetermined closing period (for example, 1.5 seconds) A signal for holding the door member 234a in a closed state is output to a solenoid (332) for opening and closing the door member 234a of the variable prize opening 234, and a closing period is stored in a storage area of a door closing time management timer provided in the RAM 308. Set the information indicating. In addition, predetermined transmission information indicating that the special winning opening closing setting transmission process is executed in the command setting transmission process (step S4233) is additionally stored in the transmission information storage area.

また、この扉部材の開放・閉鎖制御を所定回数(本実施例では15ラウンドか2ラウンド)繰り返し、終了したタイミングで開始する特図2状態更新処理では、所定の終了演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを終了することを遊技者に報知する画像を表示している期間待機するように設定するためにRAM308に設けた演出待機時間管理用タイマの記憶領域に演出待機期間を示す情報を設定する。また、普図確率変動フラグがオンに設定されていれば、この大当り遊技の終了と同時に、RAM308に設けられた時短回数記憶部に時短回数100回をセットするともに、RAM308に設けられた時短フラグをオンする。なお、その普図確率変動フラグがオフに設定されていれば、時短回数記憶部に時短回数をセットすることもなく、また時短フラグをオンすることもない。ここにいう時短とは、特図変動遊技における大当りを終了してから、次の大当りを開始するまでの時間を短くするため、パチンコ機が遊技者にとって有利な状態になることをいう。この時短フラグがオンに設定されていると、普図高確率状態である。普図高確率状態では普図低確率状態に比べて、普図変動遊技に大当りする可能性が高い。また、普図高確率状態の方が、普図低確率状態に比べて普図変動遊技の変動時間および特図変動遊技の変動時間は短くなる。さらに、普図高確率状態では普図低確率状態に比べて、第2特別始動口232の一対の羽根部材232aの1回の開放における開放時間が長くなりやすい。加えて、普図高確率状態では普図低確率状態に比べて、一対の羽根部材232aは多く開きやすい。また、上述のごとく、時短フラグは、大当り遊技中(特別遊技状態中)にはオフに設定される。したがって、大当り遊技中には、普図低確率状態が維持される。これは、大当り遊技中に普図高確率状態であると、大当り遊技中に可変入賞口234に所定の個数、遊技球が入球するまでの間に第2特図始動口232に多くの遊技球が入球し、大当り中に獲得することができる遊技球の数が多くなってしまい射幸性が高まってしまうという問題があり、これを解決するためのものである。   In addition, in the special figure 2 state update process that starts at the timing when the door member opening / closing control is repeated a predetermined number of times (15 rounds or 2 rounds in this embodiment) and finished, a predetermined end effect period (eg, 3 seconds) In other words, the effect waiting period is stored in the storage area of the effect waiting time management timer provided in the RAM 308 in order to set to wait for a period during which an image for informing the player that the big hit by the decorative symbol display device 208 is to be ended is displayed. Set the information indicating. Also, if the normal probability fluctuation flag is set to ON, at the same time as the end of the big hit game, the time reduction number 100 is set in the time reduction number storage unit provided in the RAM 308, and the time reduction flag provided in the RAM 308 is set. Turn on. If the usual time probability variation flag is set to OFF, the time reduction number is not set in the time reduction number storage unit, and the time reduction flag is not turned ON. The short time here means that the pachinko machine is in an advantageous state for the player in order to shorten the time from the end of the big hit in the special figure variable game to the start of the next big hit. If the short time flag is set to ON at this time, it is a normal high probability state. There is a higher probability of hitting a general-purpose variable game in the high-probability state than in the low-probability state. In addition, the fluctuation time of the normal figure variable game and the fluctuation time of the special figure variable game are shorter in the normal figure high probability state than in the normal figure low probability state. Further, in the normal high probability state, the opening time in one opening of the pair of blade members 232a of the second special start port 232 tends to be longer than in the normal low probability state. In addition, the pair of blade members 232a are more likely to open in the normal high probability state than in the normal low probability state. In addition, as described above, the hourly flag is set to off during the big hit game (in the special game state). Therefore, the normal low probability state is maintained during the big hit game. This is because if the game is in a high probability state during a big hit game, a large number of games will be placed in the second special figure starting port 232 until a predetermined number of game balls are entered during the big win game. There is a problem that a ball enters and the number of game balls that can be acquired during a big hit increases, resulting in an increase in euphoria. This is to solve this problem.

さらに、コマンド設定送信処理(ステップS4233)で終了演出設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   Further, predetermined transmission information indicating that the end effect setting transmission process is executed in the command setting transmission process (step S4233) is additionally stored in the above-described transmission information storage area.

また、所定の終了演出期間が終了したタイミング(演出待機時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、RAM308の設定領域に特図2非作動中を設定する。さらに、特図2変動遊技の結果が外れであれば、後述するように、はずれフラグがオンされる。このはずれフラグがオンの場合には、上述した所定の停止表示期間が終了したタイミング(特図2停止時間管理用タイマの値が1から0になったタイミング)における特図2状態更新処理でも、RAM308の設定領域に特図2非作動中を設定する。特図2非作動中の場合における特図2状態更新処理では、何もせずに次のステップS4227に移行するようにしている。   In the special figure 2 state update process that starts at the timing when the predetermined end production period ends (the timing when the production standby time management timer value changes from 1 to 0), the special figure 2 is not activated in the setting area of the RAM 308. Set medium. Further, if the result of the special figure 2 variable game is out of the way, the off flag is turned on as will be described later. In the case where the miss flag is on, even in the special figure 2 state update process at the timing when the predetermined stop display period described above ends (the timing when the special figure 2 stop time management timer value changes from 1 to 0), In the setting area of the RAM 308, special figure 2 inactive is set. In the special figure 2 state update process when the special figure 2 is not in operation, nothing is done and the process proceeds to the next step S4227.

続いて、特図1についての特図状態更新処理(特図1状態更新処理)を行う(ステップS4227)。この特図1状態更新処理では、特図1の状態に応じて、上述の特図2状態更新処理で説明した各処理を行う。この特図1状態更新処理で行う各処理は、上述の特図2状態更新処理で説明した内容の「特図2」を「特図1」と読み替えた処理と同一であるため、その説明は省略する。なお、特図2状態更新処理と特図1状態更新処理の順番は逆でもよいし、第1特図始動口230または第2特図始動口232への入賞順序(入球順序)にしたがって、入賞(入球)の早い特図に対応する特図状態更新処理を優先して実行してもよい。   Subsequently, special figure state update processing (special figure 1 state update process) for special figure 1 is performed (step S4227). In the special figure 1 state update process, each process described in the special figure 2 state update process is performed according to the state of the special figure 1. Each process performed in the special figure 1 state update process is the same as the process in which “special figure 2” in the contents described in the special figure 2 state update process is replaced with “special figure 1”. Omitted. In addition, the order of the special figure 2 state update process and the special figure 1 state update process may be reversed, and according to the winning order (the winning order) to the first special figure start port 230 or the second special figure start port 232, Special figure state update processing corresponding to a special figure with a fast winning (winning) may be executed with priority.

ステップS4225およびステップS4227における特図状態更新処理が終了すると、今度は、特図1および特図2それぞれについての特図関連抽選処理を行う。ここでも先に、特図2についての特図関連抽選処理(特図2関連抽選処理)を行い(ステップS4229)、その後で、特図1についての特図関連抽選処理(特図1関連抽選処理)を行う(ステップS4229)。より具体的には、特図1および特図2それぞれにおいて、乱数生成回路318から取得した乱数値を、特図当選乱数加工用カウンタから取得した乱数値を用いて加工(例えば、乱数生成回路318から取得した乱数値に対して特図当選乱数加工用カウンタから取得した乱数値を加算する処理)を行い、加工された乱数値を用いて抽選を行う。なお、本実施例では、特図1および特図2それぞれにおいて、乱数生成回路318から取得した乱数値を特図当選乱数加工用カウンタから取得した乱数値を用いて加工するように構成しているが、このような加工を行うことなく、乱数生成回路から取得した乱数値を直に使用して特図関連抽選処理を行うように構成してもよい。すなわち、乱数生成回路318から取得した乱数値を用いた特図関連抽選処理を行うように構成すればよい。これらの特図関連抽選処理についても、主制御部300が特図2関連抽選処理を特図1関連抽選処理よりも先に行うことで、特図2変動遊技の開始条件と、特図1変動遊技の開始条件が同時に成立した場合でも、特図2変動遊技が先に変動中となるため、特図1変動遊技は変動を開始しない。また、装飾図柄表示装置208による、特図変動遊技の大当り判定の結果の報知は、第1副制御部400によって行われ、第2特図始動口232への入賞に基づく抽選の抽選結果の報知が、第1特図始動口230への入賞に基づく抽選の抽選結果の報知よりも優先して行われる。   When the special figure state update process in step S4225 and step S4227 is completed, a special figure related lottery process for each of special figure 1 and special figure 2 is performed. Also here, the special figure related lottery process (special figure 2 related lottery process) for special figure 2 is performed first (step S4229), and then the special figure related lottery process for special figure 1 (special figure 1 related lottery process). ) Is performed (step S4229). More specifically, in each of FIG. 1 and FIG. 2, the random value acquired from the random number generation circuit 318 is processed using the random value acquired from the special figure winning random number processing counter (for example, the random number generation circuit 318). The random number value acquired from the special figure winning random number processing counter is added to the random number value acquired from (1), and a lottery is performed using the processed random number value. In this embodiment, in each of FIG. 1 and FIG. 2, the random number value acquired from the random number generation circuit 318 is processed using the random value acquired from the special figure winning random number processing counter. However, the special drawing related lottery process may be performed by directly using the random value acquired from the random number generation circuit without performing such processing. In other words, the special figure related lottery process using the random value acquired from the random number generation circuit 318 may be performed. Also for these special drawing related lottery processes, the main control unit 300 performs the special figure 2 related lottery processing before the special figure 1 related lottery processing, so that the special figure 2 variable game start condition and the special figure 1 fluctuation Even if the game start conditions are satisfied at the same time, since the special figure 2 variable game is changing first, the special figure 1 variable game does not start changing. Further, the notification of the result of the jackpot determination of the special figure variable game by the decorative symbol display device 208 is performed by the first sub-control unit 400, and the lottery result of the lottery based on the winning at the second special figure starting port 232 is notified. However, it is performed in preference to the notification of the lottery result of the lottery based on the winning at the first special figure starting port 230.

ステップS4233では、コマンド設定送信処理を行う。詳細は後述するが、このコマンド設定送信処理では、各種のコマンドを第1副制御部400に送信する処理を行う。なお、第1副制御部400では、主制御部300から受信した出力予定情報に含まれるコマンド種別により、主制御部300における遊技制御の変化に応じた演出制御の決定が可能になるとともに、出力予定情報に含まれているコマンドデータの情報に基づいて、演出制御内容を決定することができるようになる。   In step S4233, command setting transmission processing is performed. Although details will be described later, in the command setting transmission processing, processing for transmitting various commands to the first sub-control unit 400 is performed. In the first sub-control unit 400, it is possible to determine the presentation control according to the change of the game control in the main control unit 300 and the output by the command type included in the output schedule information received from the main control unit 300. Based on the command data information included in the schedule information, the contents of the effect control can be determined.

ステップS4235では、外部出力信号設定処理を行う。この外部出力信号設定処理では、RAM308に記憶している遊技情報を、情報出力回路336を介してパチンコ機100とは別体の情報入力回路350に出力する。   In step S4235, external output signal setting processing is performed. In this external output signal setting process, the game information stored in the RAM 308 is output to the information input circuit 350 separate from the pachinko machine 100 via the information output circuit 336.

ステップS4237では、デバイス監視処理を行う。このデバイス監視処理では、ステップS4205において信号状態記憶領域に記憶した各種センサの信号状態を読み出して、所定のエラーの有無、例えば前面枠扉開放エラーの有無または下皿満タンエラーの有無などを監視し、前面枠扉開放エラーまたは下皿満タンエラーを検出した場合に、第1副制御部400に送信すべき送信情報に、前面枠扉開放エラーの有無または下皿満タンエラーの有無を示すデバイス情報を設定する。また、各種ソレノイド332を駆動して第2特図始動口232や、可変入賞口234の開閉を制御したり、表示回路324、326、330を介して普通図柄表示装置210、第1特別図柄表示装置212、第2特別図柄表示装置214、各種状態表示部328などに出力する表示データを、I/O310の出力ポートに設定する。また、払出要求数送信処理(ステップS4219)で設定した出力予定情報を出力ポート(I/O310)を介して第1副制御部400に出力する。   In step S4237, device monitoring processing is performed. In this device monitoring process, the signal states of the various sensors stored in the signal state storage area in step S4205 are read, and the presence / absence of a predetermined error, for example, the presence / absence of a front frame door opening error or the bottom pan full error is monitored. When the front frame door opening error or the lower pan full error is detected, the transmission information to be transmitted to the first sub-control unit 400 includes device information indicating the presence or absence of the front frame door opening error or the lower pan full error. Set. Further, various solenoids 332 are driven to control the opening and closing of the second special figure starting port 232 and the variable prize opening 234, and the normal symbol display device 210 and the first special symbol display via the display circuits 324, 326 and 330. Display data to be output to the device 212, the second special symbol display device 214, the various status display units 328, and the like is set in the output port of the I / O 310. In addition, the output schedule information set in the payout request number transmission process (step S4219) is output to the first sub-control unit 400 via the output port (I / O 310).

ステップS4239では、低電圧信号がオンであるか否かを監視する。そして、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS4243に進み、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS4241に進む。   In step S4239, it is monitored whether or not the low voltage signal is on. If the low-voltage signal is on (when power-off is detected), the process proceeds to step S4243. If the low-voltage signal is off (when power-off is not detected), the process proceeds to step S4241.

ステップS4241では、タイマ割込終了処理を行う。このタイマ割込終了処理では、ステップS4201で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割込許可の設定などを行い、その後、主制御部メイン処理に復帰する。   In step S4241, timer interrupt end processing is performed. In this timer interrupt end process, the value of each register temporarily saved in step S4201 is set in each original register, interrupt permission is set, and the like, and then the process returns to the main control part main process.

一方、ステップS4243では、復電時に電断時の状態に復帰するための特定の変数やスタックポインタを復帰データとしてRAM308の所定の領域に退避し、入出力ポートの初期化等の電断処理を行い、その後、主制御部メイン処理に復帰する。
<第1副制御部400の処理>
On the other hand, in step S4243, a specific variable or stack pointer for returning to the power-off state at the time of power recovery is saved as a return data in a predetermined area of the RAM 308, and power-off processing such as initialization of input / output ports is performed. After that, the process returns to the main process of the main control unit.
<Processing of First Sub-Control Unit 400>

次に、図218を用いて、第1副制御部400の処理について説明する。なお、同図(a)は、第1副制御部400のCPU404が実行するメイン処理のフローチャートである。同図(b)は、第1副制御部400のストローブ割込み処理のフローチャートである。同図(c)は、第1副制御部400のタイマ変数更新割込処理のフローチャートである。同図(d)は、第1副制御部400の画像制御処理のフローチャートである。   Next, processing of the first sub control unit 400 will be described with reference to FIG. FIG. 5A is a flowchart of main processing executed by the CPU 404 of the first sub control unit 400. FIG. 5B is a flowchart of the strobe interrupt process of the first sub control unit 400. FIG. 6C is a flowchart of the timer variable update interrupt process of the first sub control unit 400. FIG. 4D is a flowchart of the image control process of the first sub control unit 400.

まず、同図(a)のステップS4301では、各種の初期設定を行う。電源投入が行われると、まずS4301で初期化処理が実行される。この初期化処理では、入出力ポートの初期設定や、RAM408内の記憶領域の初期化処理等を行う。   First, in step S4301 in FIG. 4A, various initial settings are performed. When the power is turned on, an initialization process is first executed in S4301. In this initialization processing, initialization of input / output ports, initialization processing of a storage area in the RAM 408, and the like are performed.

ステップS4303では、タイマ変数が10以上か否かを判定し、タイマ変数が10となるまでこの処理を繰り返し、タイマ変数が10以上となったときには、ステップS4305の処理に移行する。ステップS4305では、タイマ変数に0を代入する。   In step S4303, it is determined whether or not the timer variable is 10 or more, and this process is repeated until the timer variable becomes 10. When the timer variable becomes 10 or more, the process proceeds to step S4305. In step S4305, 0 is substituted into the timer variable.

ステップS4307では、コマンド処理を行う。第1副制御部400のCPU404は、主制御部300からコマンドを受信したか否かを判別する。   In step S4307, command processing is performed. The CPU 404 of the first sub control unit 400 determines whether a command has been received from the main control unit 300.

ステップS4309では、演出制御処理を行う。例えば、ステップS4307で新たなコマンドがあった場合には、このコマンドに対応する演出データをROM406から読み出す等の処理を行い、演出データの更新が必要な場合には演出データの更新処理を行う。   In step S4309, an effect control process is performed. For example, when there is a new command in step S4307, processing such as reading the effect data corresponding to this command from the ROM 406 is performed, and when the effect data needs to be updated, the effect data is updated.

ステップS4311では、チャンスボタンの押下を検出していた場合、ステップS4309で更新した演出データをチャンスボタンの押下に応じた演出データに変更する処理を行う。ステップS4313では、ステップS4309で読み出した演出データの中にVDP434への命令がある場合には、この命令をVDP434に出力する(詳細は後述)。   If it is detected in step S4311 that the chance button has been pressed, the effect data updated in step S4309 is changed to effect data corresponding to the press of the chance button. In step S4313, if there is a command to VDP 434 in the effect data read in step S4309, this command is output to VDP 434 (details will be described later).

ステップS4315では、ステップS4309で読み出した演出データの中に音源IC416への命令がある場合には、この命令を音源IC416に出力する。ステップS4317では、ステップS4309で読み出した演出データの中に各種ランプ418への命令がある場合には、この命令を駆動回路420に出力する。   In step S4315, if there is a command to the sound source IC 416 in the effect data read in step S4309, the command is output to the sound source IC 416. In step S4317, if there is a command to various lamps 418 in the effect data read in step S4309, this command is output to the drive circuit 420.

ステップS4319では、ステップS4309で読み出した演出データの中に遮蔽装置246への命令がある場合には、この命令を駆動回路432に出力する。ステップS4321では、ステップS4309で読み出した演出データの中に第2副制御部500に送信する制御コマンドがある場合には、この制御コマンドを出力する設定を行い、ステップS4303へ戻る。   In step S4319, if there is a command to the shielding device 246 in the effect data read in step S4309, this command is output to the drive circuit 432. In step S4321, if there is a control command to be transmitted to the second sub control unit 500 in the effect data read in step S4309, the control command is set to be output, and the process returns to step S4303.

次に、同図(b)を用いて、第1副制御部400のコマンド受信割込処理について説明する。このコマンド受信割込処理は、第1副制御部400が、主制御部300が出力するストローブ信号を検出した場合に実行する処理である。コマンド受信割込処理のステップS4401では、主制御部300が出力したコマンドを未処理コマンドとしてRAM408に設けたコマンド記憶領域に記憶する。   Next, the command reception interrupt process of the first sub-control unit 400 will be described using FIG. This command reception interrupt process is a process executed when the first sub-control unit 400 detects a strobe signal output from the main control unit 300. In step S4401 of the command reception interrupt process, the command output from the main control unit 300 is stored in the command storage area provided in the RAM 408 as an unprocessed command.

次に、同図(c)を用いて、第1副制御部400のCPU404によって実行する第1副制御部タイマ割込処理について説明する。第1副制御部400は、所定の周期(本実施例では2msに1回)でタイマ割込を発生するハードウェアタイマを備えており、このタイマ割込を契機として、タイマ割込処理を所定の周期で実行する。   Next, the first sub control unit timer interrupt process executed by the CPU 404 of the first sub control unit 400 will be described with reference to FIG. The first sub-control unit 400 includes a hardware timer that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 2 ms). Execute in the cycle.

第1副制御部タイマ割込処理のステップS4501では、第1副制御部メイン処理におけるステップS4303において説明したRAM408のタイマ変数記憶領域の値に、1を加算して元のタイマ変数記憶領域に記憶する。従って、ステップS4303において、タイマ変数の値が10以上と判定されるのは20ms毎(2ms×10)となる。   In step S4501 of the first sub control unit timer interrupt process, 1 is added to the value of the timer variable storage area of the RAM 408 described in step S4303 in the first sub control unit main process, and the result is stored in the original timer variable storage area. To do. Accordingly, in step S4303, the value of the timer variable is determined to be 10 or more every 20 ms (2 ms × 10).

第1副制御部タイマ割込処理のステップS4503では、ステップS4319で設定された第2副制御部500への制御コマンドの送信や、演出用乱数値の更新処理等を行う。   In step S4503 of the first sub control unit timer interrupt process, a control command is transmitted to the second sub control unit 500 set in step S4319, an effect random number value update process, and the like are performed.

次に、同図(d)を用いて、第1副制御部400のメイン処理におけるステップS4313の画像制御処理について説明する。同図は、画像制御処理の流れを示すフローチャートを示した図である。   Next, the image control process in step S4313 in the main process of the first sub-control unit 400 will be described with reference to FIG. FIG. 5 is a flowchart showing the flow of image control processing.

ステップS4601では、画像データの転送指示を行う。ここでは、CPU404は、まず、VRAM436の表示領域Aと表示領域Bの描画領域の指定をスワップする。これにより、描画領域に指定されていない表示領域に記憶された1フレームの画像が装飾図柄表示装置208に表示される。次に、CPU404は、VDP434のアトリビュートレジスタに、位置情報等テーブルに基づいてROM座標(ROM406の転送元アドレス)、VRAM座標(VRAM436の転送先アドレス)などを設定した後、ROM406からVRAM436への画像データの転送開始を指示する命令を設定する。VDP434は、アトリビュートレジスタに設定された命令に基づいて画像データをROM406からVRAM436に転送する。その後、VDP436は、転送終了割込信号をCPU404に対して出力する。   In step S4601, an image data transfer instruction is issued. Here, the CPU 404 first swaps the designation of the display areas A and B in the VRAM 436. As a result, an image of one frame stored in the display area not designated as the drawing area is displayed on the decorative design display device 208. Next, the CPU 404 sets ROM coordinates (transfer source address of the ROM 406), VRAM coordinates (transfer destination address of the VRAM 436) and the like in the attribute register of the VDP 434 based on the position information table and the like, and then the image from the ROM 406 to the VRAM 436. Set an instruction to start data transfer. The VDP 434 transfers the image data from the ROM 406 to the VRAM 436 based on the command set in the attribute register. Thereafter, the VDP 436 outputs a transfer end interrupt signal to the CPU 404.

ステップS4603では、VDP434からの転送終了割込信号が入力されたか否かを判定し、転送終了割込信号が入力された場合はステップS4605に進み、そうでない場合は転送終了割込信号が入力されるのを待つ。ステップS4605では、演出シナリオ構成テーブルおよびアトリビュートデータなどに基づいて、パラメータ設定を行う。ここでは、CPU404は、ステップS4601でVRAM436に転送した画像データに基づいてVRAM436の表示領域AまたはBに表示画像を形成するために、表示画像を構成する画像データの情報(VRAM436の座標軸、画像サイズ、VRAM座標(配置座標)など)をVDP434に指示する。VDP434はアトリビュートレジスタに格納された命令に基づいてアトリビュートに従ったパラメータ設定を行う。   In step S4603, it is determined whether or not a transfer end interrupt signal from VDP 434 is input. If a transfer end interrupt signal is input, the process proceeds to step S4605. If not, a transfer end interrupt signal is input. Wait for it. In step S4605, parameters are set based on the production scenario configuration table and attribute data. Here, in order to form a display image in the display area A or B of the VRAM 436 based on the image data transferred to the VRAM 436 in step S4601, the CPU 404 has information on the image data constituting the display image (coordinate axis and image size of the VRAM 436). , VRAM coordinates (arrangement coordinates, etc.) are instructed to the VDP 434. The VDP 434 sets parameters according to attributes based on instructions stored in the attribute register.

ステップS4607では、描画指示を行う。この描画指示では、CPU404は、VDP434に画像の描画開始を指示する。VDP434は、CPU404の指示に従ってフレームバッファにおける画像描画を開始する。   In step S4607, a drawing instruction is performed. In this drawing instruction, the CPU 404 instructs the VDP 434 to start drawing an image. The VDP 434 starts drawing an image in the frame buffer in accordance with an instruction from the CPU 404.

ステップS4609では、画像の描画終了に基づくVDP434からの生成終了割込み信号が入力されたか否かを判定し、生成終了割込み信号が入力された場合はステップS4611に進み、そうでない場合は生成終了割込み信号が入力されるのを待つ。ステップS4611では、RAM408の所定の領域に設定され、何シーンの画像を生成したかをカウントするシーン表示カウンタをインクリメント(+1)して処理を終了する。
<第2副制御部500の処理>
In step S4609, it is determined whether or not a generation end interrupt signal from the VDP 434 based on the end of image drawing has been input. If the generation end interrupt signal has been input, the process proceeds to step S4611. If not, the generation end interrupt signal is determined. Wait for input. In step S4611, a scene display counter that is set in a predetermined area of the RAM 408 and counts how many scene images have been generated is incremented (+1), and the process ends.
<Processing of Second Sub-Control Unit 500>

次に、図219を用いて、第2副制御部500の処理について説明する。なお、同図(a)は、第2副制御部500のCPU504が実行するメイン処理のフローチャートである。同図(b)は、第2副制御部500のコマンド受信割込処理のフローチャートである。同図(c)は、第2副制御部500のタイマ割込処理のフローチャートである。   Next, processing of the second sub control unit 500 will be described with reference to FIG. FIG. 6A is a flowchart of main processing executed by the CPU 504 of the second sub-control unit 500. FIG. 7B is a flowchart of command reception interrupt processing of the second sub control unit 500. FIG. 8C is a flowchart of the timer interrupt process of the second sub control unit 500.

まず、同図(a)のステップS4701では、各種の初期設定を行う。電源投入が行われると、まずS4701で初期化処理が実行される。この初期化処理では、入出力ポートの初期設定や、RAM508内の記憶領域の初期化処理等を行う。   First, in step S4701 of FIG. When the power is turned on, an initialization process is first executed in S4701. In this initialization processing, initial setting of input / output ports, initialization processing of a storage area in the RAM 508, and the like are performed.

ステップS4703では、タイマ変数が10以上か否かを判定し、タイマ変数が10となるまでこの処理を繰り返し、タイマ変数が10以上となったときには、ステップS4705の処理に移行する。   In step S4703, it is determined whether or not the timer variable is 10 or more. This process is repeated until the timer variable becomes 10, and when the timer variable becomes 10 or more, the process proceeds to step S4705.

ステップS4705では、タイマ変数に0を代入する。ステップS4707では、コマンド処理を行う。第2副制御部500のCPU504は、第1副制御部400のCPU404からコマンドを受信したか否かを判別する。ステップS4709では、演出制御処理を行う。例えば、S4707で新たなコマンドがあった場合には、このコマンドに対応する演出データをROM506から読み出す等の処理を行い、演出データの更新が必要な場合には演出データの更新処理を行う。   In step S4705, 0 is substituted into the timer variable. In step S4707, command processing is performed. The CPU 504 of the second sub control unit 500 determines whether a command has been received from the CPU 404 of the first sub control unit 400. In step S4709, effect control processing is performed. For example, if there is a new command in step S4707, the effect data corresponding to the command is read from the ROM 506, and if the effect data needs to be updated, the effect data is updated.

ステップS4711では、第1副制御部400からの遊技盤用ランプ532や遊技台枠用ランプ542への命令がある場合には、この命令をシリアル通信制御回路520に出力する。   In step S4711, if there is a command from the first sub control unit 400 to the game board lamp 532 or the game table frame lamp 542, the command is output to the serial communication control circuit 520.

ステップS4713では、第1副制御部400からの演出可動体224への命令がある場合には、この命令を駆動回路516に出力し、S4703に戻る。次に、同図(b)を用いて、第2副制御部500のコマンド受信割込処理について説明する。このコマンド受信割込処理は、第2副制御部500が、第1副制御部400が出力するストローブ信号を検出した場合に実行する処理である。コマンド受信割込処理のステップS4801では、第1副制御部400が出力したコマンドを未処理コマンドとしてRAM508に設けたコマンド記憶領域に記憶する。   In step S4713, if there is a command from the first sub-control unit 400 to the effect movable body 224, this command is output to the drive circuit 516, and the process returns to S4703. Next, the command reception interrupt process of the second sub control unit 500 will be described with reference to FIG. This command reception interrupt process is a process executed when the second sub control unit 500 detects the strobe signal output from the first sub control unit 400. In step S4801 of the command reception interrupt process, the command output from the first sub-control unit 400 is stored as an unprocessed command in a command storage area provided in the RAM 508.

次に、同図(c)を用いて、第2副制御部500のCPU504によって実行する第2副制御部タイマ割込処理について説明する。第2副制御部500は、所定の周期(本実施例では2msに1回)でタイマ割込を発生するハードウェアタイマを備えており、このタイマ割込を契機として、タイマ割込処理を所定の周期で実行する。   Next, the second sub control unit timer interrupt process executed by the CPU 504 of the second sub control unit 500 will be described with reference to FIG. The second sub-control unit 500 includes a hardware timer that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 2 ms), and a timer interrupt process is performed in response to this timer interrupt. Execute in the cycle.

第2副制御部タイマ割込処理のステップS4901では、第2副制御部メイン処理におけるステップS4703において説明したRAM508のタイマ変数記憶領域の値に、1を加算して元のタイマ変数記憶領域に記憶する。従って、ステップS4703において、タイマ変数の値が10以上と判定されるのは20ms毎(2ms×10)となる。第2副制御部タイマ割込処理のステップS4903では、演出用乱数値の更新処理等を行う。
<コマンド設定送信処理>
In step S4901 of the second sub control unit timer interrupt process, 1 is added to the value of the timer variable storage area of the RAM 508 described in step S4703 in the second sub control unit main process, and the result is stored in the original timer variable storage area. To do. Accordingly, in step S4703, the value of the timer variable is determined to be 10 or more every 20 ms (2 ms × 10). In step S4903 of the second sub-control unit timer interrupt process, an effect random number update process is performed.
<Command setting transmission processing>

次に、上述の主制御部タイマ割込処理におけるコマンド設定送信処理(ステップS4233)について説明する。図220は、コマンド設定送信処理の流れを示すフローチャートである。   Next, the command setting transmission process (step S4233) in the above-described main control unit timer interrupt process will be described. FIG. 220 is a flowchart showing the flow of command setting transmission processing.

このコマンド設定送信処理のステップS4233aでは、大当り中用コマンド送信処理を行う。詳細は後述するが、この大当り中用コマンド送信処理では、大当り遊技中に第1副制御部400に送信するコマンドの設定を行う。また、次のステップS4233bでは、その他のコマンド(例えば、基本コマンド、図柄変動開始コマンド、図柄変動停止コマンド、入賞演出開始コマンド、終了演出開始コマンド、復電コマンドなど)を設定するコマンド設定送信処理を行った後に、処理を終了する。
<大当り中用コマンド送信処理>
In step S4233a of the command setting transmission process, a big hit middle command transmission process is performed. Although details will be described later, in the jackpot medium command transmission processing, a command to be transmitted to the first sub-control unit 400 during the jackpot game is set. In the next step S4233b, command setting transmission processing for setting other commands (for example, basic command, symbol variation start command, symbol variation stop command, winning effect start command, end effect start command, power recovery command, etc.) is performed. After performing, the process is terminated.
<Big hit middle command transmission processing>

次に、上述のコマンド設定送信処理における大当り中用コマンド送信処理(ステップS4233a)について説明する。図221は、大当り中用コマンド送信処理の流れを示すフローチャートである。   Next, the jackpot medium command transmission process (step S4233a) in the command setting transmission process described above will be described. FIG. 221 is a flowchart showing the flow of the jackpot middle command transmission process.

この大当り中用コマンド送信処理のステップS5101では、RAM308に設けたコマンド格納領域をクリア(初期化)する。また、ステップS5102では、大当り遊技の進行状況(大当り遊技の開始時、ラウンド開始時、ラウンド終了時、大当り遊技の終了時など)や、大当り時の特図の種類などに基づいて、ROM306に予め記憶している複数種類のコマンドデータの中から、特定のコマンドデータを抽出する。また、抽出したコマンドデータが記憶されている記憶領域の先頭番地を、RAM308に設けた転送元番地記憶領域に転送元番地として設定(記憶)する。なお、ここでは、転送元番地を一時的に記憶する記憶手段としてRAM308を適用しているが、レジスタなどの他の記憶手段を適用してもよい(以下に説明する転送先番地や転送数なども同様である)。   In step S5101 of this jackpot middle command transmission process, the command storage area provided in the RAM 308 is cleared (initialized). Also, in step S5102, based on the progress status of the jackpot game (at the start of the jackpot game, at the start of the round, at the end of the round, at the end of the jackpot game, etc.), the type of special figure at the time of the jackpot game, etc. Specific command data is extracted from a plurality of types of stored command data. Further, the start address of the storage area in which the extracted command data is stored is set (stored) in the transfer source address storage area provided in the RAM 308 as the transfer source address. Here, the RAM 308 is applied as the storage means for temporarily storing the transfer source address, but other storage means such as a register may be applied (transfer destination address, transfer number, etc. described below). Is the same).

次に、ステップS5103では、コマンド格納領域の先頭番地を、RAM308に設けた転送先番地記憶領域に転送先番地として設定(記憶)し、ステップS5104では、コマンドデータのバイト数を、RAM308に設けた転送数記憶領域に転送数として設定(記憶)する。   In step S5103, the head address of the command storage area is set (stored) in the transfer destination address storage area provided in the RAM 308 as a transfer destination address. In step S5104, the number of bytes of command data is provided in the RAM 308. The transfer number is set (stored) in the transfer number storage area.

ステップS5105では、ブロック転送処理を行う。詳細は後述するが、このブロック転送処理では、転送元番地に設定された記憶領域に記憶されたデータを、転送先番地に設定された記憶領域に転送する処理等を行う。ステップS5106では、コマンド格納領域に転送されたコマンドを第1副制御部400に送信した後に処理を終了する。なお、コマンドを第1副制御部400に送信する処理は、上述の主制御部メイン処理で実行してもよい。
<ブロック転送処理>
In step S5105, block transfer processing is performed. Although details will be described later, in this block transfer process, a process of transferring data stored in a storage area set as a transfer source address to a storage area set as a transfer destination address is performed. In step S5106, after the command transferred to the command storage area is transmitted to the first sub-control unit 400, the process ends. Note that the process of transmitting the command to the first sub-control unit 400 may be executed by the main control unit main process described above.
<Block transfer processing>

次に、上述の大当り中用コマンド送信処理におけるブロック転送処理(ステップS5105)について説明する。図222は、ブロック転送処理の流れを示すフローチャートである。   Next, the block transfer process (step S5105) in the above-mentioned jackpot medium command transmission process will be described. FIG. 222 is a flowchart showing the flow of block transfer processing.

このブロック転送処理のステップS5201では、上述の転送数に応じて補正時間を設定する。詳細は、図227を用いて説明するが、例えば、転送数が1の場合には、転送数が1の場合に要するブロック転送処理の処理時間と、転送数が3の場合に要するブロック転送処理の処理時間との差を補正時間として設定し、転送数が2の場合には、転送数が2の場合に要するブロック転送処理の処理時間と、転送数が3の場合に要するブロック転送処理の処理時間との差を補正時間として設定する。   In step S5201 of this block transfer process, a correction time is set according to the number of transfers described above. Details will be described with reference to FIG. 227. For example, when the number of transfers is 1, the block transfer processing time required when the number of transfers is 1, and the block transfer processing required when the number of transfers is 3. When the transfer number is 2, when the transfer number is 2, the block transfer process time required when the transfer number is 2 and the block transfer process required when the transfer number is 3 are set. The difference from the processing time is set as the correction time.

ステップS5202では、コマンドデータのうち、上述の転送元番地が示す記憶領域に記憶されたデータを、コマンド格納領域のうち、上述の転送先番地が示す記憶領域に転送する。ステップS5203では、転送元番地を1つ加算し、ステップS5204では、転送先番地を1つ加算する。   In step S5202, the data stored in the storage area indicated by the above-mentioned transfer source address in the command data is transferred to the storage area indicated by the above-mentioned transfer destination address in the command storage area. In step S5203, one transfer source address is added. In step S5204, one transfer destination address is added.

また、ステップS5205では、転送数から1を減算し、ステップS5206では、減算後の転送数が0であるか否かを判定し、該当する場合(コマンドデータの転送が全て完了した場合)にはステップS5207に進み、該当しない場合(コマンドデータの転送が残っている場合)にはステップS5202に戻ってブロック転送処理を継続する。ステップS5207では、ステップS5201で設定した補正時間が経過するのを待ってから処理を終了する。
<コマンドテーブル>
In step S5205, 1 is subtracted from the transfer number. In step S5206, it is determined whether or not the transfer number after subtraction is 0. If this is the case (when all of the command data transfer has been completed). Proceeding to step S5207, if not applicable (if command data transfer remains), the process returns to step S5202 to continue block transfer processing. In step S5207, the process ends after waiting for the correction time set in step S5201 to elapse.
<Command table>

次に、ROM306に予め記憶されるコマンドテーブルについて説明する。図223(a)〜(d)は、大当り遊技中に参照されるコマンドテーブルの一例を示した図である。   Next, a command table stored in advance in the ROM 306 will be described. FIGS. 223 (a) to 223 (d) are diagrams showing an example of a command table referred to during the big hit game.

これらのコマンドテーブルは、ROM306に予め記憶されており、固定長(この例では、1バイト長)の先頭番地と、固定長(この例では、1バイト長)のバイト数と、可変長のコマンドデータ(この例では、1バイト長のコマンド識別子と、可変長のコマンドパラメータ)で構成される。   These command tables are pre-stored in the ROM 306, and have a fixed length (in this example, 1 byte length) start address, a fixed length (in this example, 1 byte length) number of bytes, and a variable length command. It consists of data (in this example, a 1-byte command identifier and a variable-length command parameter).

先頭番地は、コマンドデータのうち、1バイト目のコマンドデータ(この例では、コマンド識別子)が記憶されるROM306の番地を示しており、例えば、同図(a)に示す大当り開始コマンド1の1バイト目のコマンドデータ(11H)は、ROM306の番地100に記憶されていることを示している。また、バイト数は、コマンドデータのデータ長を示しており、例えば、同図(a)に示す大当り開始コマンド1のコマンドデータのデータ長は2バイトであることを示している。   The head address indicates the address of the ROM 306 in which command data (command identifier in this example) of the first byte is stored, for example, 1 of the jackpot start command 1 shown in FIG. The command data (11H) in the byte indicates that it is stored in the address 100 of the ROM 306. The number of bytes indicates the data length of the command data. For example, the data length of the command data of the jackpot start command 1 shown in FIG.

同図(a)は、大当り遊技の開始時に参照されるコマンドテーブルの一例である。このコマンドテーブルには、大当り遊技の開始時に送信される大当り開始コマンド1〜6の2バイト長のコマンドデータが規定され、コマンドデータの1バイト目に記憶されたコマンド識別子(11H)は、大当り開始コマンドであることを示している。また、コマンドデータの2バイト目には、大当り図柄識別用情報が記憶され、それぞれ、01Hは特図A、02Hは特図B、03Hは特図C、04Hは特図D、05Hは特図E、06Hは特図Fであることを示している。   FIG. 4A shows an example of a command table that is referred to when the big hit game is started. In this command table, command data having a 2-byte length of jackpot start commands 1 to 6 transmitted at the start of jackpot game is specified, and the command identifier (11H) stored in the first byte of the command data is the jackpot start Indicates a command. In the second byte of the command data, jackpot symbol identification information is stored. 01H is special figure A, 02H is special figure B, 03H is special figure C, 04H is special figure D, and 05H is special figure. E and 06H show that it is the special figure F.

同図(b)は、大当り遊技のラウンド開始時に参照されるコマンドテーブルの一例である。このコマンドテーブルには、大当り遊技のラウンド開始時に送信されるラウンド開始コマンド1〜29の3バイト長のコマンドデータが規定され、コマンドデータの1バイト目に記憶されたコマンド識別子(12H)は、ラウンド開始コマンドであることを示している。また、コマンドデータの2バイト目には、大当り図柄識別用情報が記憶され、それぞれ、01Hは特図A、02Hは特図B、03Hは特図C、04Hは特図D、05Hは特図E、06Hは特図Fであることを示している。また、コマンドデータの3バイト目には、ラウンド数識別用情報が記憶され、ラウンド数を16進数で示している。   FIG. 5B is an example of a command table that is referred to when a big hit game round starts. In this command table, command data having a 3-byte length of round start commands 1 to 29 transmitted at the start of a round of jackpot game is specified, and a command identifier (12H) stored in the first byte of the command data is a round Indicates a start command. In the second byte of the command data, jackpot symbol identification information is stored. 01H is special figure A, 02H is special figure B, 03H is special figure C, 04H is special figure D, and 05H is special figure. E and 06H show that it is the special figure F. In the third byte of the command data, information for identifying the number of rounds is stored, and the number of rounds is indicated by a hexadecimal number.

同図(c)は、大当り遊技のラウンド終了時に参照されるコマンドテーブルの一例である。このコマンドテーブルには、大当り遊技のラウンド終了時に送信されるラウンド終了コマンド1〜15の2バイト長のコマンドデータが規定され、コマンドデータの1バイト目に記憶されたコマンド識別子(13H)は、ラウンド終了コマンドであることを示している。また、コマンドデータの2バイト目には、ラウンド数識別用情報が記憶され、ラウンド数を16進数で示している。   FIG. 3C is an example of a command table that is referred to at the end of the round of the big hit game. This command table defines 2-byte length command data of round end commands 1 to 15 transmitted at the end of the round of the big hit game, and the command identifier (13H) stored in the first byte of the command data is round Indicates an end command. Further, the round number identification information is stored in the second byte of the command data, and the round number is represented by a hexadecimal number.

同図(d)は、大当り遊技の終了時に参照されるコマンドテーブルの一例である。このコマンドテーブルには、大当り遊技の終了時に送信される大当り終了コマンド1の1バイト長のコマンドデータが規定され、コマンドデータの1バイト目に記憶されたコマンド識別子(14H)は、大当り終了コマンドであることを示している。なお、この大当り終了コマンドはコマンドパラメータが無いコマンドである。
<本発明と従来技術との対比>
FIG. 4D is an example of a command table that is referred to at the end of the big hit game. This command table defines 1-byte command data of the jackpot end command 1 transmitted at the end of the jackpot game, and the command identifier (14H) stored in the first byte of the command data is the jackpot end command. It shows that there is. The jackpot end command is a command having no command parameter.
<Contrast of the present invention and the prior art>

次に、本発明と従来技術の違いについて説明する。図224は、本発明の特徴部分のみを抜き出して示したフローチャートである。   Next, the difference between the present invention and the prior art will be described. FIG. 224 is a flowchart showing only the characteristic part of the present invention.

同図に示すように、上述の大当り中用コマンド送信処理のうち、ステップS5104の処理(転送数に応じて補正時間を設定する処理)の直後から、ステップS5106の処理(コマンド送信処理)の直前までに実行されるブロック転送処理は、処理X、処理Y、処理Zの3つに分けて考えることができる。   As shown in the figure, in the above jackpot middle command transmission process, immediately after the process in step S5104 (a process for setting a correction time according to the number of transfers), immediately before the process in step S5106 (command transmission process). The block transfer processing executed until then can be divided into three, processing X, processing Y and processing Z.

処理Xは、ステップS5201の処理(転送数に応じて補正時間を設定する処理)の直後から、ステップS5206の処理(転送数が0であるか否かを判定し、判定結果に応じてステップS5202またはS5207にジャンプする処理:以下、条件分岐処理と称する場合がある)の直前までに実行される処理であり、ステップS5202〜S5205の複数の処理で構成される。処理Yは、ステップS5206の処理(条件分岐処理)の直前から、このステップS5206の処理(条件分岐処理)の直後までの処理、すなわち、ステップS5206の処理(条件分岐処理)で構成される。処理Zは、ステップS5206の処理(条件分岐処理)の直後から、ステップS5207の処理(補正時間待機処理)を少なくとも含み、ステップS5106の処理(コマンド送信処理)の直前までの処理で構成される。   In process X, immediately after the process in step S5201 (a process for setting the correction time according to the number of transfers), it is determined whether or not the process in step S5206 (the number of transfers is 0), and step S5202 is performed according to the determination result. Alternatively, the process is executed immediately before the process jumping to S5207 (hereinafter may be referred to as a conditional branch process), and includes a plurality of processes in steps S5202 to S5205. The process Y includes a process from immediately before the process of step S5206 (conditional branch process) to immediately after the process of step S5206 (conditional branch process), that is, the process of step S5206 (conditional branch process). The process Z includes at least the process of step S5207 (correction time waiting process) immediately after the process of step S5206 (conditional branch process) and immediately before the process of step S5106 (command transmission process).

図225(a)、(b)は、本発明の特徴部分を上記図224とは異なる視点で示したフローチャートである。同図(a)に示すように、上述の大当り中用コマンド送信処理は、ステップS5301〜S5305の処理に分けて考えることができる。具体的には、ステップS5301は、第1の処理の準備処理(条件設定処理)であり、例えば、上記図224のステップS5201の処理(転送数に応じて補正時間を設定する処理)などが該当する。   225 (a) and 225 (b) are flowcharts showing the characteristic part of the present invention from a viewpoint different from that in FIG. As shown in FIG. 5A, the above-mentioned jackpot middle command transmission process can be divided into the processes of steps S5301 to S5305. Specifically, step S5301 is the first process preparation process (condition setting process), for example, the process of step S5201 in FIG. 224 (a process of setting the correction time according to the number of transfers). To do.

また、ステップS5302は、第1の処理(条件分岐処理)であり、例えば、上記図224のステップS5206の処理(条件分岐処理)が該当する。ステップS5303は、第2の処理(第1の処理内容)であり、例えば、上記図224のステップS5202〜S5205の複数の処理(処理Xのうち、ステップS5206の処理(条件分岐処理)の後に実行される処理X)が該当する。   Step S5302 is the first process (conditional branch process), and corresponds to, for example, the process (conditional branch process) of step S5206 in FIG. 224 described above. Step S5303 is the second processing (first processing content), for example, executed after the processing of step S5206 (conditional branching processing) among the plurality of processing of processing S5202 to S5205 in FIG. Process X) to be performed corresponds.

また、ステップS5304は、第2の処理(第2の処理内容)であり、例えば、上記図224のステップS5207の処理(補正時間待機処理)を少なくとも含んだ、ステップS5106の処理(コマンド送信処理)の直前までの処理(処理Z)が該当する。なお、このステップS5304の第2の処理(第2の処理内容)には、同図(b)に示すように、条件分岐処理から第3の処理に分岐(ジャンプ)だけの処理も含まれ、演算命令、入出力命令、ロード命令のように、レジスタ、メモリ、スタック、I/Oなどを操作する命令には限定されない。   Step S5304 is the second processing (second processing content). For example, the processing in step S5106 (command transmission processing) including at least the processing in step S5207 (correction time standby processing) in FIG. 224 described above. This corresponds to the processing up to immediately before (processing Z). Note that the second process (second process content) in step S5304 includes a process of only a branch (jump) from the conditional branch process to the third process as shown in FIG. The present invention is not limited to instructions that operate on registers, memories, stacks, I / O, and the like, such as arithmetic instructions, input / output instructions, and load instructions.

また、第1の処理と第2の処理は、複数の命令(例えば、所定の条件を判断する第1の命令、条件が成立した場合に処理Aを実行する第2の命令、条件が成立しなかった場合に処理Bを実行する第3の命令)で構成する場合に限定されず、単一の命令(例えば、所定の条件を判断し、条件が成立した場合に処理Aを実行し、条件が成立しなかった場合に処理Bを実行する命令)で実行可能に構成してもよい。このように、一つの命令で第1の処理と第2の処理を実行可能とすれば、第1の処理と第2の処理に対応するプログラムコード量を削減することができたり、第1の処理と第2の処理を実行するために必要なステート数を削減できる場合がある。   Further, the first process and the second process include a plurality of instructions (for example, a first instruction for determining a predetermined condition, a second instruction for executing process A when the condition is satisfied, and a condition being satisfied. It is not limited to the case where it is configured with a third instruction that executes process B when there is no such condition, but a single instruction (for example, a predetermined condition is determined, and process A is executed when the condition is met, May be configured to be executable by an instruction that executes process B when the above is not established. As described above, if the first process and the second process can be executed with one instruction, the amount of program code corresponding to the first process and the second process can be reduced, In some cases, the number of states necessary for executing the process and the second process can be reduced.

さらに、単一の命令のバリエーションとして、例えば、所定の条件を判断し、条件が成立した場合に処理Bを実行し、条件が成立しなかった場合に処理Aを実行する命令を備えれば、所定の条件に応じて命令を使い分けることができ、プログラムを簡素化することができる場合がある。また、所定の演算を行い、演算結果が第1の結果の場合に処理Aを実行し、演算結果が第2の結果の場合に処理Bを実行する命令や、所定の演算を行い、演算結果が第1の結果の場合に処理Bを実行し、演算結果が第2の結果の場合に処理Aを実行する命令を備えれば、コーディングの利便性が高まり、プログラムの開発期間を短縮化できる場合がある。また、所定の条件を判断し、条件が成立した場合に処理Aに分岐し、条件が成立しなかった場合に処理Bに分岐する命令や、所定の演算を行い、演算結果が第1の結果の場合に処理Aに分岐し、演算結果が第2の結果の場合に処理Bに分岐する命令を備えてもよい。   Further, as a variation of a single instruction, for example, if a predetermined condition is determined, a process B is executed when the condition is satisfied, and a process A is executed when the condition is not satisfied. There are cases where instructions can be used properly according to predetermined conditions, and the program can be simplified. In addition, a predetermined calculation is performed, and the process A is executed when the calculation result is the first result, and the process B is executed when the calculation result is the second result. Is provided with an instruction for executing process B when the result is the first result and executing process A when the operation result is the second result, the convenience of coding is improved and the development period of the program can be shortened. There is a case. Further, a predetermined condition is judged, and if the condition is satisfied, the process branches to the process A. If the condition is not satisfied, the instruction branches to the process B, or a predetermined calculation is performed, and the calculation result is the first result. In this case, an instruction may be provided that branches to the process A and branches to the process B when the operation result is the second result.

また、ステップS5305は、第3の処理であり、例えば、上記図224のステップS5106の処理(コマンド送信処理)が該当する。なお、第3の処理の処理内容は特に限定されず、上述の第2の処理(第1の処理内容)および第2の処理(第2の処理内容)の直後に実行される処理であればよい。   Step S5305 is a third process, and corresponds to the process (command transmission process) of step S5106 in FIG. The processing content of the third processing is not particularly limited as long as it is a processing executed immediately after the second processing (first processing content) and the second processing (second processing content). Good.

一方、図226は、本発明の特徴部分に対応する従来技術の処理の流れを示したフローチャートであり、上記図224に対応するフローチャートである。この従来技術の処理を上記図224のフローチャートと同様に考えると、上述の大当り中コマンド送信処理に相当する処理のうち、ステップS5401の処理(転送数としてコマンドのバイト数を設定する処理)の直後から、ステップS5407の処理(コマンド送信処理)の直前までに実行される処理は、処理X´、処理Y´、処理Z´の3つに分けて考えることができる。   On the other hand, FIG. 226 is a flowchart showing the flow of processing of the prior art corresponding to the characteristic part of the present invention, and is a flowchart corresponding to FIG. 224 described above. If this prior art process is considered in the same way as the flowchart of FIG. 224, immediately after the process of step S5401 (a process of setting the number of bytes of a command as the number of transfers) in the process corresponding to the above-mentioned jackpot command transmission process. Thus, the process executed immediately before the process of step S5407 (command transmission process) can be divided into three processes, a process X ′, a process Y ′, and a process Z ′.

処理X´は、ステップS5401の処理(転送数としてコマンドのバイト数を設定する処理)の直後から、ステップS5406の処理(転送数が0であるか否かを判定し、判定結果に応じてステップS5402またはS5407にジャンプする処理:以下、条件分岐処理と称する場合がある)の直前までに実行される処理であり、ステップS5402〜S5405の複数の処理で構成される。処理Yは、ステップS5406の処理(条件分岐処理)の直前から、このステップS5406の処理(条件分岐処理)の直後までの処理、すなわち、ステップS5406の処理(条件分岐処理)で構成される。処理Zは、ステップS5406の処理(条件分岐処理)の直後から、ステップS5407の処理(コマンド送信処理)の直前までの処理で構成される。   The process X ′ determines whether or not the process of step S5406 (the number of transfers is 0) immediately after the process of step S5401 (process for setting the number of bytes of the command as the number of transfers), and performs a step according to the determination result. This process is executed immediately before the process jumping to S5402 or S5407 (hereinafter may be referred to as a conditional branch process), and includes a plurality of processes in steps S5402 to S5405. The process Y includes a process from immediately before the process of step S5406 (conditional branch process) to immediately after the process of step S5406 (conditional branch process), that is, the process of step S5406 (conditional branch process). The process Z includes a process from immediately after the process (conditional branch process) in step S5406 to immediately before the process (command transmission process) in step S5407.

図227(a)は、本発明に係る大当り中用コマンド送信処理においてブロック転送を行う場合の所要時間を示した図であり、同図(b)は、従来技術に係る大当り中用コマンド送信処理においてブロック転送を行う場合の所要時間を示した図である。   FIG. 227 (a) is a diagram showing the time required for performing block transfer in the jackpot medium command transmission processing according to the present invention, and FIG. 227 (b) shows the jackpot medium command transmission processing according to the prior art. It is the figure which showed the required time when performing block transfer in FIG.

同図(b)に示すように、従来技術に係る大当り中用コマンド送信処理では、ステップS5401において転送バイト数として1を設定した場合、第1の処理(処理Y´)のみを行うため、所要時間の合計は処理Y´(1回)の処理時間T1となる。また、ステップS5401において転送バイト数として2を設定した場合、第1の処理(処理Y´)を2回と、第2の処理(処理X´のうち、ステップS5406の処理(条件分岐処理)の後に実行される処理X´)を1回行うため、所要時間の合計は処理Y´(2回)の処理時間T1×2と処理X´(1回)の処理時間T2を合算した処理時間T1×2+T2となる。また、ステップS5401において転送バイト数として3を設定した場合、第1の処理(処理Y´)を3回と、第2の処理(処理X´のうち、ステップS5406の処理(条件分岐処理)の後に実行される処理X´)を2回行うため、所要時間の合計は処理Y´(1回)の処理時間T1×3と処理X´(2回)の処理時間T2×2を合算した処理時間T1×3+T2×2となる。   As shown in FIG. 5B, in the jackpot middle command transmission processing according to the prior art, when 1 is set as the number of transfer bytes in step S5401, only the first processing (processing Y ′) is performed. The total time is the processing time T1 of the processing Y ′ (one time). If 2 is set as the transfer byte count in step S5401, the first process (process Y ′) is performed twice and the second process (of process X ′, the process of step S5406 (conditional branch process)). Since the processing X ′) to be executed later is performed once, the total required time is the processing time T1 obtained by adding the processing time T1 × 2 of the processing Y ′ (twice) and the processing time T2 of the processing X ′ (one time). X2 + T2. If 3 is set as the transfer byte count in step S5401, the first process (process Y ′) is performed three times and the second process (of process X ′, the process of step S5406 (conditional branch process)). Since the processing X ′) to be executed later is performed twice, the total required time is the sum of the processing time T1 × 3 of the processing Y ′ (one time) and the processing time T2 × 2 of the processing X ′ (twice). Time T1 × 3 + T2 × 2 is obtained.

すなわち、従来技術に係る大当り中用コマンド送信処理では、転送バイト数によって処理時間が異なっている。このため、転送バイト数の違いによる処理時間の差を考慮した作業をしなければならず、作業が煩雑になり開発期間の短縮化が極めて困難である。   That is, in the jackpot medium command transmission processing according to the conventional technique, the processing time differs depending on the number of transfer bytes. For this reason, it is necessary to work in consideration of the difference in processing time due to the difference in the number of transfer bytes, and the work becomes complicated and it is extremely difficult to shorten the development period.

一方、本発明に係る大当り中用コマンド送信処理では、ステップS5104において転送バイト数として1を設定した場合、第1の処理(処理Y)と、第2の処理(処理Zに含まれる補正時間待機処理)を行うため、所要時間の合計は処理Y(1回)の処理時間T3と、処理Zに含まれる補正時間待機処理の処理時間T3×2+T4×2(2バイト分)を合算した処理時間T3×3+T4×2となる。また、ステップS5104において転送バイト数として2を設定した場合、第1の処理(処理Y)を2回と、第2の処理(処理Xのうち、ステップS5206の処理(条件分岐処理)の後に実行される処理X)を1回と、第2の処理(処理Zに含まれる補正時間待機処理)を行うため、所要時間の合計は処理Y(1回)の処理時間T3×2と、処理X(1回)の処理時間T4と、処理Zに含まれる補正時間待機処理の処理時間T3+T4(1バイト分)を合算した処理時間T3×3+T4×2となる。また、ステップS5104において転送バイト数として3を設定した場合、第1の処理(処理Y)を3回と、第2の処理(処理Xのうち、ステップS1206の処理(条件分岐処理)の後に実行される処理X)を2回行うため、所要時間の合計は処理Y(1回)の処理時間T3×3と、処理X(2回)の処理時間T4×2を合算した処理時間T3×3+T4×2となる。   On the other hand, in the jackpot middle command transmission process according to the present invention, when 1 is set as the number of transfer bytes in step S5104, the first process (process Y) and the second process (correction time waiting included in process Z) are set. Therefore, the total required time is the processing time T3 of the processing Y (once) and the processing time T3 × 2 + T4 × 2 (2 bytes) of the correction time standby processing included in the processing Z. T3 × 3 + T4 × 2. If 2 is set as the number of transfer bytes in step S5104, the first process (process Y) is executed twice and after the second process (of process X, step S5206 (conditional branch process)). Processing X) is performed once and the second processing (correction time standby processing included in the processing Z) is performed, the total required time is the processing time T3 × 2 of processing Y (one time), and processing X The processing time T3 × 3 + T4 × 2 is obtained by adding the processing time T4 of (one time) and the processing time T3 + T4 (one byte) of the correction time standby processing included in the processing Z. When 3 is set as the number of transfer bytes in step S5104, the first process (process Y) is executed three times and the second process (of process X, after the process of step S1206 (conditional branch process)). Since the processing X) is performed twice, the total required time is the processing time T3 × 3 + T4 obtained by adding the processing time T3 × 3 of the processing Y (once) and the processing time T4 × 2 of the processing X (twice). X2.

すなわち、本発明に係る大当り中用コマンド送信処理では、転送バイト数に関わらず処理時間が同一(T3×3+T4×2)となっている。このため、上述の従来技術の課題を解決することが可能であり、具体的には、転送バイト数の違いによる処理時間の差がなくなり、デバックやテストで確認しなければならないパターンが大幅に削減できるため、デバックやテストの作業時間を短縮することができる上に、処理時間の差を考慮する必要がなくなるため、プログラム設計を簡素化することができる。   That is, in the jackpot medium command transmission processing according to the present invention, the processing time is the same (T3 × 3 + T4 × 2) regardless of the number of transfer bytes. For this reason, it is possible to solve the above-mentioned problems of the prior art, specifically, there is no difference in processing time due to the difference in the number of transfer bytes, and the number of patterns that must be confirmed by debugging or testing is greatly reduced. Therefore, it is possible to shorten the time for debugging and testing, and it is not necessary to consider the difference in processing time, so that the program design can be simplified.

また、第1の処理と第2の処理に続く第3の処理の開始タイミング(第1の処理を開始する直前のタイミングを基準として、第3の処理が開始されるタイミング)を転送バイト数に関わらず同一にすることができるため、転送バイト数の違いによる第3の処理の開始タイミングの差がなくなり、デバックやテストで確認しなければならないパターンが大幅に削減できるため、デバックやテストの作業時間を短縮することができる上に、開始タイミングの差を考慮する必要がなくなるため、プログラム設計を簡素化することができる。   Also, the start timing of the third process following the first process and the second process (the timing at which the third process is started based on the timing immediately before the start of the first process) is used as the number of transfer bytes. Regardless, since it can be made the same, there is no difference in the start timing of the third process due to the difference in the number of transfer bytes, and the pattern that must be confirmed in the debug or test can be greatly reduced. In addition to being able to shorten the time, it is not necessary to consider the difference in start timing, so that the program design can be simplified.

なお、上記図224および154では、補正時間待機処理を第2の処理に含める例を示したが、補正時間待機処理は、第1の処理準備処理(条件設定処理)の直後から第3の処理の直前までに実行すればよく、図228(a)、(b)に示すように、補正時間待機処理を、補正時間待機処理配置位置1〜7で示される位置のいずれかに配置してもよい。
<割込み処理の処理時間>
In FIGS. 224 and 154, the example in which the correction time standby process is included in the second process is shown. However, the correction time standby process is the third process immediately after the first process preparation process (condition setting process). The correction time waiting process may be arranged at any of the positions indicated by the correction time waiting process arrangement positions 1 to 7 as shown in FIGS. 228 (a) and 228 (b). Good.
<Interrupt processing time>

次に、割込み処理の処理時間について説明する。図229(a)、(b)は割込み処理の流れを模式的に示した図である。割込み処理が複数の処理(例えば、処理1、処理2、処理3、・・・、処理X)で構成されている場合、各々の処理の処理時間は割込みタイミングによって異なるため、例えば、同図(a)に示す例では、割込みタイミング1に比べて、割込みタイミング2における処理1、処理2、処理3の処理時間が短くなっている結果、これらの処理の後に実行される処理Xの実行開始タイミングが、割込みタイミング1と割込みタイミング2で異なっている。また、同図(b)に示す例では、割込みタイミング1に比べて、割込みタイミング2における処理2処理時間が短くなっている結果、これらの処理の後に実行される処理Xの実行開始タイミングが、割込みタイミング1と割込みタイミング2で異なっている。   Next, the processing time for interrupt processing will be described. FIGS. 229 (a) and 229 (b) schematically show the flow of interrupt processing. If the interrupt process is composed of a plurality of processes (for example, process 1, process 2, process 3,..., Process X), the processing time of each process varies depending on the interrupt timing. In the example shown in a), as a result of the processing times of processing 1, processing 2, and processing 3 at interrupt timing 2 being shorter than interrupt timing 1, execution start timing of processing X executed after these processing However, the interrupt timing 1 and the interrupt timing 2 are different. Further, in the example shown in FIG. 5B, the processing start time of the process X executed after these processes is reduced as a result of the process 2 processing time at the interrupt timing 2 being shorter than the interrupt timing 1. There is a difference between interrupt timing 1 and interrupt timing 2.

このような割込み処理(例えば、上述の主制御部タイマ割込処理)を設計する場合、この割込み処理によって割り込まれる処理(例えば、上述の主制御部メイン処理)のリアルタイム性を確保するために、割込み処理の最大処理時間を考慮する必要がある。例えば、同図(a)、(b)の上段に示す割込みタイミング1が最大処理時間を示していると仮定すると、他の割込みタイミングでの処理が全て同図(a)、(b)の下段に示す割込みタイミング2のように、割込みタイミング1の最大処理時間以内に収まるかどうか、さらには、処理Xが同一のタイミングで実行開始できるかどうかなどを検証しなければならない。   When designing such an interrupt process (for example, the above-described main control unit timer interrupt process), in order to ensure the real-time property of the process interrupted by this interrupt process (for example, the above-described main control unit main process), It is necessary to consider the maximum processing time for interrupt processing. For example, assuming that the interrupt timing 1 shown in the upper part of FIGS. 10A and 10B indicates the maximum processing time, all processes at other interrupt timings are shown in the lower part of FIGS. It is necessary to verify whether or not the processing is within the maximum processing time of the interrupt timing 1, as in the interrupt timing 2 shown in FIG. 2, and whether or not the processing X can be started at the same timing.

上述のとおり、従来技術に係る大当り中用コマンド送信処理では、転送バイト数によって処理時間が異なっている。このため、このような処理を割込み処理に含めた場合には、デバッグやテストにおいて転送バイト数の違いによる処理時間の差を考慮した作業をしなければならず、作業が煩雑になり開発期間の短縮化が極めて困難である。   As described above, in the jackpot medium command transmission processing according to the conventional technique, the processing time differs depending on the number of transfer bytes. For this reason, when such processing is included in interrupt processing, it is necessary to work in consideration of the difference in processing time due to the difference in the number of transferred bytes in debugging and testing, and the work becomes complicated and the development period is reduced. Shortening is extremely difficult.

一方、本発明に係る大当り中用コマンド送信処理では、転送バイト数に関わらず処理時間が同一となっている。このため、このような処理を割込み処理に含めた場合でも、当該処理については処理時間の差を考慮する必要が無く、デバックやテストで確認しなければならないパターンが大幅に削減できるため、デバックやテストの作業時間を短縮することができる上に、処理時間の差を考慮する必要がなくなるため、プログラム設計を簡素化することができる。   On the other hand, in the jackpot medium command transmission processing according to the present invention, the processing time is the same regardless of the number of transfer bytes. For this reason, even when such processing is included in interrupt processing, there is no need to consider the difference in processing time for such processing, and the pattern that must be confirmed by debugging or testing can be greatly reduced. The test work time can be shortened, and the program design can be simplified because it is not necessary to consider the difference in processing time.

さらに、タイマ割込み処理は、通常、予め定めた所定の周期で実行できるように設計されるが、予期しない事象が発生した場合(例えば、割込み処理に含まれる処理の一部に想定以上の処理時間がかかってしまった場合や、優先順位の高い割込み処理によって想定以上の待ち時間が発生してしまった場合など)には、いわゆる揺らぎ(ジッター)が生じてしまうことがある。このような揺らぎが発生した場合、所定の周期で実行されるべき処理が実行できない事態が生じうるが、本発明によれば、割込み処理内の処理時間の統一を図ることができるため、このような時間の揺らぎを無くし、処理の実行開始タイミングを同一にすることができる場合がある。   Furthermore, the timer interrupt process is usually designed to be executed at a predetermined cycle, but when an unexpected event occurs (for example, a part of the process included in the interrupt process has a longer processing time than expected). In such a case, a so-called fluctuation (jitter) may occur in a case where a waiting time longer than expected occurs due to an interrupt process having a high priority. When such fluctuations occur, there may occur a situation in which processing that should be executed at a predetermined cycle cannot be performed. However, according to the present invention, it is possible to unify the processing time in the interrupt processing. In some cases, it is possible to eliminate fluctuations in time and to make the execution start timing of the process the same.

特に、パチンコ機100においては、上記ステップS4205の入力ポート状態更新処理(球検出センサの検出信号を入力して検出信号の有無を監視する処理)や、スロットマシン1100においては、ステップS2205の入力ポート状態更新処理(各種センサ1318のセンサ回路1320の検出信号を入力して検出信号の有無を監視する処理)や、ステップS2211のコマンド設定送信処理(各種モータに関する制御データを他の制御部に送信する処理)などの実行開始タイミングを割込みタイミングによらずに同一にすることが可能となるため、遊技制御の安定化を図ることができ、遊技の公平性を担保できる場合がある。
<コマンド設定送信処理>
In particular, in the pachinko machine 100, the input port state update process in step S4205 (a process for monitoring the presence or absence of a detection signal by inputting a detection signal of a sphere detection sensor), or in the slot machine 1100, in the input port in step S2205 State update processing (processing for inputting the detection signal of the sensor circuit 1320 of the various sensors 1318 and monitoring the presence / absence of the detection signal), command setting transmission processing of step S2211 (transmitting control data relating to various motors to other control units) It is possible to make the execution start timing of the processing) the same regardless of the interrupt timing, so that the game control can be stabilized and the fairness of the game can be ensured.
<Command setting transmission processing>

次に、上述の図142に示す主制御部タイマ割込処理におけるコマンド設定送信処理(ステップS2211)について説明する。図230は、コマンド設定送信処理の流れを示すフローチャートである。   Next, the command setting transmission process (step S2211) in the main control unit timer interrupt process shown in FIG. 142 will be described. FIG. 230 is a flowchart showing the flow of command setting transmission processing.

このコマンド設定送信処理のステップS2211aでは、RAM1308に設けたコマンド格納領域をクリア(初期化)する。また、ステップS2211bでは、遊技の進行状況(遊技開始時、レバー受付時、左リール停止時、中リール停止時、右リール停止時、全リール停止時ど)などに基づいて、ROM1306に予め記憶している複数種類のコマンドデータの中から、特定のコマンドデータを抽出する。また、抽出したコマンドデータが記憶されている記憶領域の先頭番地を、RAM1308に設けた転送元番地記憶領域に転送元番地として設定(記憶)する。なお、ここでは、転送元番地を一時的に記憶する記憶手段としてRAM1308を適用しているが、レジスタなどの他の記憶手段を適用してもよい(以下に説明する転送先番地や転送数なども同様である)。   In step S2211a of this command setting transmission process, the command storage area provided in the RAM 1308 is cleared (initialized). Further, in step S2211b, based on the progress of the game (when the game is started, when the lever is received, when the left reel is stopped, when the middle reel is stopped, when the right reel is stopped, when all the reels are stopped), it is stored in the ROM 1306 in advance. Specific command data is extracted from a plurality of types of command data. Further, the start address of the storage area in which the extracted command data is stored is set (stored) in the transfer source address storage area provided in the RAM 1308 as the transfer source address. Here, the RAM 1308 is applied as the storage means for temporarily storing the transfer source address, but other storage means such as a register may be applied (transfer destination address, transfer number, etc. described below). Is the same).

次に、ステップS2211cでは、コマンド格納領域の先頭番地を、RAM1308に設けた転送先番地記憶領域に転送先番地として設定(記憶)し、ステップS2211dでは、コマンドデータのバイト数を、RAM1308に設けた転送数記憶領域に転送数として設定(記憶)する。   Next, in step S2211c, the head address of the command storage area is set (stored) in the transfer destination address storage area provided in the RAM 1308 as a transfer destination address. In step S2211d, the number of bytes of command data is provided in the RAM 1308. The transfer number is set (stored) in the transfer number storage area.

ステップS2211eでは、ブロック転送処理を行う。なお、このブロック転送処理は、上記図222を用いて説明したブロック転送処理と同一であるため説明は省略する。ステップS2211fでは、コマンド格納領域に転送されたコマンドを第1副制御部1400に送信した後に処理を終了する。なお、コマンドを第1副制御部1400に送信する処理は、上述の主制御部メイン処理で実行してもよい。
<コマンドテーブル>
In step S2211e, block transfer processing is performed. The block transfer process is the same as the block transfer process described with reference to FIG. In step S2211f, after the command transferred to the command storage area is transmitted to the first sub-control unit 1400, the process ends. Note that the process of transmitting the command to the first sub control unit 1400 may be executed by the main control unit main process described above.
<Command table>

次に、ROM1306に予め記憶されるコマンドテーブルについて説明する。図231(a)〜(d)は、遊技中に参照されるコマンドテーブルの一例を示した図である。   Next, a command table stored in advance in the ROM 1306 will be described. FIGS. 231 (a) to (d) are diagrams showing an example of a command table referred to during a game.

これらコマンドテーブルは、ROM1306に予め記憶されており、固定長(この例では、1バイト長)の先頭番地と、固定長(この例では、1バイト長)のバイト数と、可変長のコマンドデータ(この例では、1バイト長のコマンド識別子と、可変長のコマンドパラメータ)で構成される。   These command tables are pre-stored in the ROM 1306, and have a fixed length (in this example, 1 byte length) head address, a fixed length (in this example, 1 byte length) number of bytes, and variable length command data. (In this example, it is composed of a 1-byte command identifier and a variable-length command parameter).

先頭番地は、コマンドデータのうち、1バイト目のコマンドデータ(この例では、コマンド識別子)が記憶されるROM1306の番地を示しており、例えば、同図(a)に示す遊技開始コマンド1の1バイト目のコマンドデータ(A1H)は、ROM1306の番地1000に記憶されていることを示している。また、バイト数は、コマンドデータのデータ長を示しており、例えば、同図(a)に示す遊技開始コマンド1のコマンドデータのデータ長は2バイトであることを示している。   The start address indicates the address of the ROM 1306 in which the command data of the first byte (command identifier in this example) is stored, for example, 1 of the game start command 1 shown in FIG. The command data (A1H) of the byte indicates that it is stored in the address 1000 of the ROM 1306. The number of bytes indicates the data length of the command data. For example, the data length of the command data of the game start command 1 shown in FIG.

同図(a)は、遊技開始時に参照されるコマンドテーブルの一例である。このコマンドテーブルには、遊技開始時に送信される遊技開始コマンド1〜2の2バイト長のコマンドデータが規定され、コマンドデータの1バイト目に記憶されたコマンド識別子(A1H)は、遊技開始コマンドであることを示している。また、コマンドデータの2バイト目には、再遊技識別用情報が記憶され、それぞれ、01Hは再遊技作動あり、02Hは再遊技作動無しであることを示している。   FIG. 6A shows an example of a command table that is referred to when the game is started. In this command table, command data having a 2-byte length of game start commands 1 and 2 transmitted at the start of the game is defined, and the command identifier (A1H) stored in the first byte of the command data is a game start command. It shows that there is. In addition, re-game identification information is stored in the second byte of the command data, and 01H indicates that the re-game operation is performed and 02H indicates that the re-game operation is not performed.

同図(b)は、レバー(スタートレバー1135)の受付時に参照されるコマンドテーブルの一例である。このコマンドテーブルには、レバー受付時に送信されるレバー受付コマンド1〜12の3バイト長のコマンドデータが規定され、コマンドデータの1バイト目に記憶されたコマンド識別子(A3H)は、レバー受付コマンドであることを示している。また、コマンドデータの2バイト目には、遊技状態識別用情報が記憶され、それぞれ、01Hは通常状態中、02HはBB中、03HはRB中、04Hはボーナス内部当選中であることを示している。また、コマンドデータの3バイト目には、当選役識別用情報が記憶され、それぞれ、01Hはハズレ、02Hは小役、03Hは再遊技役、04HはRB、05HはBBであることを示している。   FIG. 5B is an example of a command table that is referred to when a lever (start lever 1135) is received. In this command table, command data having a 3-byte length of lever reception commands 1 to 12 transmitted at the time of lever reception is defined, and the command identifier (A3H) stored in the first byte of the command data is the lever reception command. It shows that there is. The second byte of the command data stores game state identification information, indicating that 01H is in the normal state, 02H is in the BB, 03H is in the RB, and 04H is in the bonus internal winning. Yes. Also, in the third byte of the command data, winning combination identification information is stored, indicating that 01H is a loss, 02H is a small role, 03H is a replaying role, 04H is RB, and 05H is BB. Yes.

同図(c)は、左リール110の停止時に参照されるコマンドテーブルの一例である。このコマンドテーブルには、左リール110の停止時に送信される左リール停止コマンド1の1バイト長のコマンドデータが規定され、コマンドデータの1バイト目に記憶されたコマンド識別子(A4H)は、左リール停止コマンドであることを示している。なお、この左リール停止コマンドはコマンドパラメータが無いコマンドである。   FIG. 3C is an example of a command table that is referred to when the left reel 110 is stopped. This command table defines 1-byte command data of the left reel stop command 1 transmitted when the left reel 110 is stopped, and the command identifier (A4H) stored in the first byte of the command data is the left reel. Indicates a stop command. The left reel stop command is a command having no command parameter.

同図(d)は、中リール111の停止時に参照されるコマンドテーブルの一例である。このコマンドテーブルには、中リール111の停止時に送信される中リール停止コマンド1の1バイト長のコマンドデータが規定され、コマンドデータの1バイト目に記憶されたコマンド識別子(A5H)は、中リール停止コマンドであることを示している。なお、この中リール停止コマンドはコマンドパラメータが無いコマンドである。   FIG. 4D is an example of a command table that is referred to when the middle reel 111 is stopped. This command table defines 1-byte length command data of the middle reel stop command 1 transmitted when the middle reel 111 is stopped, and the command identifier (A5H) stored in the first byte of the command data is the middle reel. Indicates a stop command. The reel stop command is a command having no command parameter.

同図(e)は、右リール112の停止時に参照されるコマンドテーブルの一例である。このコマンドテーブルには、右リール112の停止時に送信される右リール停止コマンド1の1バイト長のコマンドデータが規定され、コマンドデータの1バイト目に記憶されたコマンド識別子(A6H)は、右リール停止コマンドであることを示している。なお、この右リール停止コマンドはコマンドパラメータが無いコマンドである。   FIG. 4E is an example of a command table that is referred to when the right reel 112 is stopped. This command table defines 1-byte length command data of the right reel stop command 1 transmitted when the right reel 112 is stopped, and the command identifier (A6H) stored in the first byte of the command data is the right reel. Indicates a stop command. The right reel stop command is a command having no command parameter.

同図(f)は、全リール停止時に参照されるコマンドテーブルの一例である。このコマンドテーブルには、全リール110〜112の停止時に送信される全リール停止コマンド1〜5の2バイト長のコマンドデータが規定され、コマンドデータの1バイト目に記憶されたコマンド識別子(A7H)は、全リール停止コマンドであることを示している。また、コマンドデータの2バイト目には、当選役識別用情報が記憶され、それぞれ、01Hはハズレ、02Hは小役、03Hは再遊技役、04HはRB、05HはBBであることを示している。   FIG. 5F is an example of a command table that is referred to when all reels are stopped. This command table defines 2-byte length command data of all reel stop commands 1 to 5 transmitted when all reels 110 to 112 are stopped, and a command identifier (A7H) stored in the first byte of the command data. Indicates an all-reel stop command. In addition, in the second byte of the command data, winning combination identifying information is stored, indicating that 01H is a loss, 02H is a small role, 03H is a replaying role, 04H is RB, and 05H is BB. Yes.

このようなスロットマシン1100の主制御部1300に対しても、次に説明する本発明の特徴点の一つ、複数、または全てを適用することができる。   One, a plurality, or all of the features of the present invention described below can be applied to the main control unit 1300 of the slot machine 1100 as well.

以上説明したように、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、遊技に関する複数の処理を実行する遊技制御手段(例えば、主制御部300(または主制御部1300)を備えた遊技台であって、前記遊技制御手段は、第一処理(例えば、図225(a)の第1の処理)、該第一処理の要求に応じて処理の内容が第一の内容および第二の内容のうちの一方の内容となる第二処理(例えば、図225(a)の第2の処理)、第三処理(例えば、図225(a)の第3の処理)の順に処理を実行し、前記第二処理の内容が前記第一の内容(例えば、図225(a)の第1の処理内容)および前記第二の内容(例えば、図225(a)の第2の処理内容)のうちいずれの場合であっても同一のタイミングで(例えば、図225(a)の第1の処理の準備処理(条件設定処理)の開始直前を基準として、第3の処理が開始されるタイミングが同一のタイミングで、または、図225(a)の第1の処理(条件分岐処理)の開始直前を基準として、第3の処理が開始されるタイミングが同一のタイミングで、など)前記第三処理の実行を開始することを特徴とする遊技台である。   As described above, the pachinko machine 100 (or the slot machine 1100) according to the present embodiment includes the game control means (for example, the main control unit 300 (or the main control unit 1300) that executes a plurality of processes related to the game. In the gaming machine, the game control means includes a first process (for example, the first process in FIG. 225 (a)), and the contents of the process in response to a request for the first process are the first contents and the second contents. The process is executed in the order of the second process (for example, the second process in FIG. 225 (a)) and the third process (for example, the third process in FIG. 225 (a)), which is one of the contents of The contents of the second process are the first contents (for example, the first process contents in FIG. 225 (a)) and the second contents (for example, the second process contents in FIG. 225 (a)). In any case, the same timing (for example, The timing at which the third process is started at the same timing, or the first process in FIG. 225 (a), with the timing immediately before the start of the first process preparation process (condition setting process) in FIG. 225 (a) as a reference. The game machine is characterized in that execution of the third process is started with the timing immediately before the start of the third process (conditional branch process) as the reference.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、第2の処理の内容が違っていても第2の処理の処理時間の差をなくすことができ、デバックやテストで確認しなければならないパターンが大幅に削減できるため、デバックやテストの作業時間を短縮することができる上に、処理時間の差を考慮する必要がなくなるため、プログラム設計を簡素化することができる場合がある。また、遊技制御手段において処理状況に応じた分岐処理を行いつつも、遊技制御の安定化を図ることができる場合がある。   According to the pachinko machine 100 (or slot machine 1100) according to the present embodiment, even if the contents of the second process are different, the difference in the processing time of the second process can be eliminated, and it can be confirmed by debugging or testing. Because the number of patterns that must be reduced can be greatly reduced, debugging and testing work time can be shortened, and there is no need to consider the difference in processing time, so the program design can be simplified. . In addition, the game control unit may be able to stabilize the game control while performing a branch process according to the processing status.

また、前記遊技制御手段は、前記第三処理として前記第二処理の内容に応じて第三の内容および第四の内容のうち一方の内容を実行し、前記第二処理において前記第一の内容を実行した場合には、前記第三処理として前記第三の内容を実行し、前記第二処理において前記第二の内容を実行した場合には、前記第三処理として前記第四の内容を実行してもよい。   Further, the game control means executes one of the third content and the fourth content according to the content of the second process as the third process, and the first content in the second process. Is executed, the third content is executed as the third processing, and when the second content is executed in the second processing, the fourth content is executed as the third processing. May be.

このような構成とすれば、分岐処理の結果、異なる処理が実行される場合においても遊技制御の安定化を図ることができる場合がある。   With such a configuration, game control may be stabilized even when different processing is executed as a result of branch processing.

なお、本実実施形態に係るパチンコ機100においては大当り中用コマンド送信処理を例に挙げ、本実施形態に係るスロットマシン1100においては、コマンド設定送信処理を例に挙げたが、このような処理に限らず、様々な処理や命令に適用可能である。
<主制御部の第2特殊命令>
In the pachinko machine 100 according to the present embodiment, the jackpot medium command transmission process is taken as an example, and in the slot machine 1100 according to the present embodiment, the command setting transmission process is taken as an example. The present invention can be applied to various processes and commands.
<Second special instruction of main control unit>

次に、主制御部300が備える第5特殊命令について説明する。図232は、主制御部300が備える第5特殊命令の一部と、その説明を示した図である。
<第5特殊命令/WARU命令>
Next, the fifth special instruction included in the main control unit 300 will be described. FIG. 232 is a diagram illustrating a part of the fifth special instruction included in the main control unit 300 and an explanation thereof.
<Fifth special instruction / WARU instruction>

第5特殊命令の一つである「WARU r、A、n(n:イミディエイト値)」命令は、第3オペランドが示す数値nで第2オペランドが示すAレジスタに記憶されたデータを除算し、除算結果の商を第1オペランドrが示すレジスタ(B、C、D、E、H、Lレジスタのいずれかのレジスタ)に格納し、除算結果の余りを第2オペランドが示すAレジスタに格納する命令である。また、除算結果の余りが0の場合にZフラグ、SZフラグが1にセットされ、除算結果の余りが0以外の場合にZフラグ、SZフラグが0にセットされる。また、除数が0の場合にCフラグが1にセットされ、かつ商と余りがFFH(2バイトの場合はFFFFH)となり、除数が0以外の場合にCフラグが0にセットされる。   The “WARRU r, A, n (n: immediate value)” instruction, which is one of the fifth special instructions, divides the data stored in the A register indicated by the second operand by the numerical value n indicated by the third operand, The quotient of the division result is stored in the register (any one of the B, C, D, E, H, and L registers) indicated by the first operand r, and the remainder of the division result is stored in the A register indicated by the second operand. It is an instruction. When the remainder of the division result is 0, the Z flag and the SZ flag are set to 1, and when the remainder of the division result is other than 0, the Z flag and the SZ flag are set to 0. Further, when the divisor is 0, the C flag is set to 1, the quotient and the remainder are FFH (FFFFH when 2 bytes are used), and when the divisor is other than 0, the C flag is set to 0.

また、「WARU A、r」命令は、第2オペランドが示すレジスタrに記憶されたデータで第1オペランドが示すAレジスタに記憶されたデータを除算し、除算結果の商を第1オペランドが示すAレジスタに格納し、除算結果の余りを第2オペランドが示すレジスタrに格納する命令である。また、「WARU ss、HL」命令は、第2オペランドが示すペアレジスタHLに記憶されたデータで第1オペランドが示すssレジスタ(BC、DEレジスタ)に記憶されたデータを除算し、除算結果の商を第1オペランドが示すssレジスタに格納し、除算結果の余りを第2オペランドが示すペアレジスタHLに格納する命令である。また、「WARU HL、ss」命令は、第2オペランドが示すペアレジスタss(BC、DEレジスタ)に記憶されたデータで第1オペランドが示すHLレジスタに記憶されたデータを除算し、除算結果の商を第1オペランドが示すHLレジスタに格納し、除算結果の余りを第2オペランドが示すペアレジスタssに格納する命令である。
<第5特殊命令/JP命令>
The “WARU A, r” instruction divides the data stored in the A register indicated by the first operand by the data stored in the register r indicated by the second operand, and the quotient of the division result is indicated by the first operand. This instruction is stored in the A register and the remainder of the division result is stored in the register r indicated by the second operand. The “WARU ss, HL” instruction divides the data stored in the ss register (BC, DE register) indicated by the first operand by the data stored in the pair register HL indicated by the second operand, This is an instruction for storing the quotient in the ss register indicated by the first operand and storing the remainder of the division result in the pair register HL indicated by the second operand. The “WARU HL, ss” instruction divides the data stored in the HL register indicated by the first operand by the data stored in the pair register ss (BC, DE register) indicated by the second operand, This is an instruction for storing the quotient in the HL register indicated by the first operand and storing the remainder of the division result in the pair register ss indicated by the second operand.
<Fifth special instruction / JP instruction>

第5特殊命令の一つである「JP SZ、mn命令」は、SZフラグが1の場合にmnが示すアドレスにジャンプし、SZフラグが0の場合に後続の処理を継続する命令であり、「JP NSZ、mn命令」は、SZフラグが0の場合にmnが示すアドレスにジャンプし、SZフラグが1の場合に後続の処理を継続する命令である。
<第5特殊命令/JR命令>
One of the fifth special instructions, “JP SZ, mn instruction”, is an instruction that jumps to the address indicated by mn when the SZ flag is 1, and continues the subsequent processing when the SZ flag is 0. The “JP NSZ, mn instruction” is an instruction that jumps to an address indicated by mn when the SZ flag is 0 and continues the subsequent processing when the SZ flag is 1.
<Fifth special instruction / JR instruction>

第5特殊命令の一つである「JR SZ、e命令」は、SZフラグが1の場合にプログラムカウンタPC+eが示すアドレスにジャンプし、SZフラグが0の場合に後続の処理を継続する命令であり、「JR NSZ、mn命令」は、SZフラグが0の場合にプログラムカウンタPC+eが示すアドレスにジャンプし、SZフラグが1の場合に後続の処理を継続する命令である。
<第5特殊命令/CALL命令>
“JR SZ, e instruction” which is one of the fifth special instructions is an instruction to jump to the address indicated by the program counter PC + e when the SZ flag is 1, and to continue the subsequent processing when the SZ flag is 0. The “JR NSZ, mn instruction” is an instruction that jumps to the address indicated by the program counter PC + e when the SZ flag is 0, and continues the subsequent processing when the SZ flag is 1.
<Fifth special instruction / CALL instruction>

第5特殊命令の一つである「CALL SZ、mn命令」は、SZフラグが1の場合に、プログラムカウンタPCに記憶された上位アドレスをスタックポインタSP−1が示すスタック領域に、また、プログラムカウンタPCに記憶された下位アドレスをスタックポインタSP−2が示すスタック領域にそれぞれストア(退避)した後、mnが示すアドレスにジャンプし、SZフラグが0の場合に後続の処理を継続する命令である。また、「CALL NSZ、mn命令」は、SZフラグが0の場合に、プログラムカウンタPCに記憶された上位アドレスをスタックポインタSP−1が示すスタック領域に、また、プログラムカウンタPCに記憶された下位アドレスをスタックポインタSP−2が示すスタック領域にそれぞれストア(退避)した後、mnが示すアドレスにジャンプし、SZフラグが1の場合に後続の処理を継続する命令である。
<第5特殊命令/RET命令>
One of the fifth special instructions, “CALL SZ, mn instruction”, when the SZ flag is 1, the upper address stored in the program counter PC is displayed in the stack area indicated by the stack pointer SP-1, and the program An instruction that stores (saves) the lower address stored in the counter PC in the stack area indicated by the stack pointer SP-2, jumps to the address indicated by mn, and continues the subsequent processing when the SZ flag is 0. is there. In addition, when the SZ flag is 0, the “CALL NSZ, mn instruction” indicates the upper address stored in the program counter PC in the stack area indicated by the stack pointer SP-1 and the lower address stored in the program counter PC. This is an instruction to store (save) the address in the stack area indicated by the stack pointer SP-2, jump to the address indicated by mn, and continue the subsequent processing when the SZ flag is 1.
<Fifth special instruction / RET instruction>

第5特殊命令の一つである「RET SZ命令」は、SZフラグが1の場合に、スタックポインタSPが示すスタック領域SPに記憶されたデータをプログラムカウンタPCの下位アドレスに、また、スタックポインタSPが示すスタック領域SP+1に記憶されたデータをプログラムカウンタPCの上位アドレスにそれぞれロード(復帰)した後にスタックポインタSPを2つ加算し、SZフラグが0の場合に後続の処理を継続する命令である。また、「RET NSZ命令」は、SZフラグが0の場合に、スタックポインタSPが示すスタック領域SPに記憶されたデータをプログラムカウンタPCの下位アドレスに、また、スタックポインタSPが示すスタック領域SP+1に記憶されたデータをプログラムカウンタPCの上位アドレスにそれぞれロード(復帰)した後にスタックポインタSPを2つ加算し、SZフラグが1の場合に後続の処理を継続する命令である。   When the SZ flag is 1, the “RET SZ instruction” which is one of the fifth special instructions uses the data stored in the stack area SP indicated by the stack pointer SP as the lower address of the program counter PC, and the stack pointer. An instruction that adds two stack pointers SP after loading (returning) the data stored in the stack area SP + 1 indicated by the SP to the upper address of the program counter PC, and continues the subsequent processing when the SZ flag is 0. is there. Further, when the SZ flag is 0, the “RET NSZ instruction” sets the data stored in the stack area SP indicated by the stack pointer SP to the lower address of the program counter PC and the stack area SP + 1 indicated by the stack pointer SP. This is an instruction to add two stack pointers SP after loading (returning) the stored data to the upper address of the program counter PC and to continue the subsequent processing when the SZ flag is 1.

<第5特殊命令/バイト数・ステート数>   <5th special instruction / number of bytes / number of states>

図233は、第5特殊命令のバイト数とステート数を比較した図である。同図に示すように、JP命令およびCALL命令は、Zフラグをオペランドとする命令と、SZフラグをオペランドとする命令でバイト数とステート数が異なっており、Zフラグをオペランドとする命令よりも、SZフラグをオペランドとする命令のほうがバイト数が1バイト、ステート数が4ステート多くなっている。一方、JR命令およびRET命令は、Zフラグをオペランドとする命令と、SZフラグをオペランドとする命令でバイト数とステート数が同じになっている。
<Zフラグ、SZフラグ>
FIG. 233 is a diagram comparing the number of bytes of the fifth special instruction with the number of states. As shown in the figure, the JP instruction and the CALL instruction are different in the number of bytes and the number of states between an instruction using the Z flag as an operand and an instruction using the SZ flag as an operand. The instruction having the SZ flag as an operand has 1 byte and 4 states. On the other hand, the JR instruction and the RET instruction are the same in the number of bytes and the number of states in the instruction using the Z flag as an operand and the instruction using the SZ flag as an operand.
<Z flag, SZ flag>

図234は、ZフラグやSZフラグを変化させる命令の一例を示した図である。主制御部300は、命令の実行後にZフラグとSZフラグを同じ値に変化させる命令と、命令の実行後にZフラグを変化させずにSZフラグを変化させる命令と、命令の実行後にZフラグを変化させてSZフラグを変化させない命令と、を備えている。例えば、第5特殊命令の一つであるWARU命令は、命令の実行後にZフラグとSZフラグを同じ値に変化させる命令の一つであり、特殊命令の一つであるINCTENSOU命令は、命令の実行後にZフラグを変化させずにSZフラグを変化させる命令の一つである。
<タイマ更新処理>
FIG. 234 is a diagram illustrating an example of an instruction for changing the Z flag or the SZ flag. The main control unit 300 changes the Z flag and the SZ flag to the same value after execution of the instruction, changes the SZ flag without changing the Z flag after execution of the instruction, and sets the Z flag after execution of the instruction. And an instruction that does not change the SZ flag. For example, the WARU instruction, which is one of the fifth special instructions, is one of the instructions that changes the Z flag and the SZ flag to the same value after the execution of the instruction, and the INCENSOU instruction, which is one of the special instructions, This is one of the instructions for changing the SZ flag without changing the Z flag after execution.
<Timer update processing>

次に、図235を用いて、上述の主制御部タイマ割込処理におけるタイマ更新処理(ステップS213)について説明する。なお、同図は、タイマ更新処理の流れを示すフローチャートである。   Next, a timer update process (step S213) in the above-described main control unit timer interrupt process will be described with reference to FIG. This figure is a flowchart showing the flow of timer update processing.

ステップS5501では、RAM308に設けた更新タイマ数(更新が必要なタイマの数)を取得し、ステップS5502では、更新の対象とするタイマ(更新対象タイマ)が記憶されているRAM308の記憶領域の先頭アドレスを設定する。また、ステップS5503では、更新対象タイマの値が0か0以外かを判定し、0以外の場合にはステップS5504に進み、0の場合にはステップS5505に進む。   In step S5501, the number of update timers (the number of timers that need to be updated) provided in the RAM 308 is acquired. In step S5502, the start of the storage area of the RAM 308 in which the timer to be updated (update target timer) is stored. Set the address. In step S5503, it is determined whether the value of the update target timer is 0 or other than 0. If it is not 0, the process proceeds to step S5504, and if it is 0, the process proceeds to step S5505.

ステップS5504では、更新対象タイマを更新し、ステップS5505では、未更新のタイマがあるか無いかを判定し、未更新のタイマがある場合にはステップS5503に戻って他のタイマの更新を継続し、未更新のタイマが無い場合には処理を終了する。   In step S5504, the update target timer is updated. In step S5505, it is determined whether there is an unupdated timer. If there is an unupdated timer, the process returns to step S5503 to continue updating other timers. If there is no unupdated timer, the process is terminated.

図236(a)は、本発明に係るタイマ更新処理のプログラムの一例を示した図であり、同図236(b)は、従来のタイマ更新処理のプログラムの一例を示した図である。   FIG. 236 (a) is a diagram showing an example of a timer update processing program according to the present invention, and FIG. 236 (b) is a diagram showing an example of a conventional timer update processing program.

従来のタイマ更新処理のプログラムでは、上記ステップS5503において更新対象タイマの値が0か0以外かを判定する場合、まず、プログラムの(1−3)で示す「LD A、(HL)」命令を実行することによって、HLレジスタで示されるアドレスに記憶された更新対象タイマの値を、Aレジスタにロード(格納)する。続いて、プログラムの(1−4)で示す「AND A」命令を実行することによって、Aが0の場合にはZフラグを変化させ、Aが0以外の場合にはZフラグを変化させないように構成し、次のプログラムの(1−5)で示す、Zフラグを第1オペランドとするJR命令で、Zフラグが変化している場合(Aが0の場合)には、JR命令の第2オペランドで示されるアドレスにジャンプし、Zフラグが変化していない場合(Aが0以外の場合)には、後続の処理(この例では、DEC命令)を実行するようにしている。   In the conventional timer update processing program, when it is determined in step S5503 whether the value of the update target timer is 0 or other than 0, first, an “LD A, (HL)” instruction indicated by (1-3) of the program is issued. By executing, the value of the update target timer stored at the address indicated by the HL register is loaded (stored) in the A register. Subsequently, by executing an “AND A” instruction indicated by (1-4) of the program, the Z flag is changed when A is 0, and the Z flag is not changed when A is other than 0. If the Z flag is changed (when A is 0) as shown in (1-5) of the next program and the Z flag is the first operand, the JR instruction When jumping to an address indicated by two operands and the Z flag has not changed (when A is other than 0), subsequent processing (in this example, a DEC instruction) is executed.

一方、本発明に係るタイマ更新処理のプログラムで同様の判定を行う場合、まず、従来のタイマ更新処理のプログラムと同様に、プログラムの(1−1)で示す「LD A、(HL)」命令を実行することによって、HLレジスタで示されるアドレスに記憶された更新対象タイマの値を、Aレジスタにロード(格納)する。ここで、LD命令(ロード命令)は、上記図233に示す通り、命令の実行後にZフラグを変化させずにSZフラグを変化させる命令の一つであるため、「LD A、(HL)」命令の実行後にはZフラグは変化しないが、SZフラグが変化する。続いて、本発明では、プログラムの(1−2)で示す、SZフラグを第1オペランドとするJR命令で、SZフラグが変化している場合には、JR命令の第2オペランドで示されるアドレスにジャンプし、SZフラグが変化していない場合には、後続の処理(この例では、DEC命令)を実行するようにしている。   On the other hand, when the same determination is made in the timer update processing program according to the present invention, first, as in the conventional timer update processing program, the “LD A, (HL)” instruction indicated by (1-1) of the program. , The value of the update target timer stored at the address indicated by the HL register is loaded (stored) in the A register. Here, as shown in FIG. 233, the LD instruction (load instruction) is one of the instructions for changing the SZ flag without changing the Z flag after the execution of the instruction. Therefore, “LD A, (HL)”. After execution of the instruction, the Z flag does not change, but the SZ flag changes. Subsequently, in the present invention, when the SZ flag is changed in the JR instruction indicated by (1-2) of the program and having the SZ flag as the first operand, the address indicated by the second operand of the JR instruction is changed. When the SZ flag has not changed, the subsequent processing (in this example, the DEC instruction) is executed.

すなわち、本発明に係るタイマ更新処理のプログラムでは、従来のタイマ更新処理のプログラムの(1−4)で示す「AND A」命令(Aレジスタの値が0か否かを確認する処理)が不要となる。このため、従来よりもプログラムのコード量を減らすことができる上に、処理速度を高めることができ、遊技制御を安定して行うことができる。
<表示図柄抽選処理>
In other words, the timer update processing program according to the present invention does not require the “AND A” instruction (processing for checking whether the value of the A register is 0) indicated by (1-4) in the conventional timer update processing program. It becomes. For this reason, the code amount of the program can be reduced as compared with the conventional method, the processing speed can be increased, and the game control can be performed stably.
<Display symbol lottery processing>

次に、図237を用いて、上述の特図1関連抽選処理における表示図柄抽選(ステップS1003)について説明する。なお、同図は、表示図柄抽選の流れを示すフローチャートである。   Next, the display symbol lottery (step S1003) in the above-described special figure 1 related lottery process will be described with reference to FIG. In addition, the figure is a flowchart which shows the flow of a display symbol lottery.

同図(a)に示す表示図柄抽選処理のステップS5601では、ROM306に設けた表示図柄抽選テーブルのアドレス(テーブルアドレス)を取得する。また、ステップS5602では、抽選準備処理を行い、ステップS5603では、抽選処理を行う。ステップS5604では、当り種別情報設定処理を行った後に処理を終了する。   In step S5601 of the display symbol lottery process shown in FIG. 5A, the address (table address) of the display symbol lottery table provided in the ROM 306 is acquired. In step S5602, lottery preparation processing is performed. In step S5603, lottery processing is performed. In step S5604, after the hit type information setting process is performed, the process ends.

また、同図(b)に示す抽選準備処理のステップS5611では、オフセット値を取得し、ステップS5612では、取得済みの表示図柄抽選テーブルのアドレスを1つ加算して更新する。ステップS5613では、データ選択処理を行い、ステップS5614では、データ選択処理の結果である取得値が0か0以外かを判定し、0の場合には処理を終了し、0以外の場合にはステップS5615に進む。ステップS5615では、抽選用乱数値を取得した後に処理を終了する。   Also, in step S5611 of the lottery preparation process shown in FIG. 5B, an offset value is acquired, and in step S5612, one address of the acquired display symbol lottery table is added and updated. In step S5613, a data selection process is performed. In step S5614, it is determined whether the acquired value, which is the result of the data selection process, is 0 or other than 0. If 0, the process ends. The process proceeds to S5615. In step S5615, after the random number for lottery is acquired, the process ends.

また、同図(c)に示すデータ選択処理のステップS5621では、テーブルアドレスにオフセット値を加算し、ステップS5622では、テーブルアドレスの値をAレジスタに転送する。また、ステップS5623では、Aレジスタの値を1つ減算し、ステップS5624では、テーブルアドレスの値をAレジスタに転送した後に処理を終了する。   In step S5621 of the data selection process shown in FIG. 5C, the offset value is added to the table address. In step S5622, the value of the table address is transferred to the A register. In step S5623, the value of the A register is decremented by 1. In step S5624, the process ends after transferring the table address value to the A register.

図238は、本発明に係る抽選準備処理のプログラムの一例を示した図である。本発明に係る抽選準備処理のプログラムでは、プログラムの(3−1)で示すRST命令を実行することによって、データ選択処理にジャンプし、このデータ選択処理のプログラムの(3−3)で示す「DEC A」命令を実行することによって、Aレジスタの値を1つ減算する。ここで、8ビットDEC命令は、上記図233に示す通り、命令の実行後にZフラグとSZフラグを同じ値に変化させる命令の一つであるため、「DEC A」命令の実行後にはZフラグとSZフラグが同じ値に変化する。   FIG. 238 is a diagram showing an example of a lottery preparation process program according to the present invention. In the lottery preparation process program according to the present invention, by executing the RST instruction indicated by (3-1) of the program, the program jumps to the data selection process, and the data selection process program indicated by (3-3) “ Decrement the A register value by one by executing the "DEC A" instruction. Here, as shown in FIG. 233, the 8-bit DEC instruction is one of instructions for changing the Z flag and the SZ flag to the same value after the execution of the instruction. Therefore, the Z flag is not used after the “DEC A” instruction is executed. And the SZ flag change to the same value.

続いて、プログラムの(3−4)で示す「LD A、(HL)」命令を実行することによって、テーブルアドレスの値をAレジスタに転送する。ここで、LD命令(ロード命令)は、上記図233に示す通り、命令の実行後にZフラグを変化させずにSZフラグを変化させる命令の一つであるため、「LD A、(HL)」命令の実行後にはZフラグは変化しないが、SZフラグが変化する。   Subsequently, the “LD A, (HL)” instruction indicated by (3-4) of the program is executed to transfer the value of the table address to the A register. Here, as shown in FIG. 233, the LD instruction (load instruction) is one of the instructions for changing the SZ flag without changing the Z flag after the execution of the instruction. Therefore, “LD A, (HL)”. After execution of the instruction, the Z flag does not change, but the SZ flag changes.

続いて、プログラムの(3−5)で示す「RET」命令を実行することによって、抽選準備処理のプログラムの(3−1)で示すRST命令の直後に戻り、(3−2)で示す「RET Z」命令を実行する。ここで、「RET Z命令」は、Zフラグが1の場合に、スタックポインタSPが示すスタック領域SPに記憶されたデータをプログラムカウンタPCの下位アドレスに、また、スタックポインタSPが示すスタック領域SP+1に記憶されたデータをプログラムカウンタPCの上位アドレスにそれぞれロード(復帰)した後にスタックポインタSPを2つ加算し、Zフラグが0の場合に後続の処理を継続する命令である。すなわち、(3−2)で示す「RET Z」命令では、(3−3)で示す「DEC A」命令の実行後には変化するが、次の(3−4)で示す「LD A、(HL)」命令の実行後には変化しないZフラグに応じて、表示図柄抽選処理に復帰する処理か、後続の処理を継続する処理のいずれかの処理を行う。
<抽選処理>
Subsequently, by executing the “RET” command indicated by (3-5) of the program, the program returns immediately after the RST command indicated by (3-1) of the lottery preparation process program. Execute the “RET Z” instruction. Here, the “RET Z instruction” indicates that when the Z flag is 1, the data stored in the stack area SP indicated by the stack pointer SP is set to the lower address of the program counter PC, and the stack area SP + 1 indicated by the stack pointer SP. Is stored in the upper address of the program counter PC, and two stack pointers SP are added. When the Z flag is 0, the subsequent processing is continued. That is, the “RET Z” instruction shown in (3-2) changes after the execution of the “DEC A” instruction shown in (3-3), but the “LD A, ( In response to the Z flag that does not change after execution of the “HL)” command, either the process of returning to the display symbol lottery process or the process of continuing the subsequent process is performed.
<Lottery processing>

次に、図239を用いて、上述の表示図柄抽選における抽選処理(ステップS5603)について説明する。なお、同図は、抽選処理の流れを示すフローチャートである。   Next, the lottery process (step S5603) in the above-described display symbol lottery will be described with reference to FIG. In addition, the figure is a flowchart which shows the flow of a lottery process.

ステップS5701では、表示図柄抽選用乱数値を取得し、ステップS5702では、ステップS5701で取得した乱数値を除算する。ステップS5703では、ROM308に記憶している抽選データアドレスを取得し、ステップS5704では、ステップS5703で取得した抽選データアドレスに除算結果の商を加算する。ステップS5705では、除算結果の余りをAレジスタに転送し、ステップS5706では、Aレジスタの値と2を比較する。   In step S5701, a random number for display symbol lottery is acquired, and in step S5702, the random value acquired in step S5701 is divided. In step S5703, the lottery data address stored in the ROM 308 is acquired. In step S5704, the quotient of the division result is added to the lottery data address acquired in step S5703. In step S5705, the remainder of the division result is transferred to the A register. In step S5706, the value of the A register is compared with 2.

ステップS5707では、Zフラグが1か0かを判定し、0の場合にはステップS5708に進み、1の場合にはステップS5714に進む。ステップS5708では、Aレジスタの値と1を比較し、ステップS5709では、Zフラグが1か0かを判定し、0の場合にはステップS5710に進み、1の場合にはステップS5712に進む。   In step S5707, it is determined whether the Z flag is 1 or 0. If it is 0, the process proceeds to step S5708. If it is 1, the process proceeds to step S5714. In step S5708, the value of the A register is compared with 1. In step S5709, it is determined whether the Z flag is 1 or 0. If it is 0, the process proceeds to step S5710. If it is 1, the process proceeds to step S5712.

ステップS5710では、抽選データアドレスの値をAレジスタに転送し、次のステップS5711では、抽選結果データをAレジスタにセットして処理を終了する。また、ステップS5712では、抽選データアドレスの値をAレジスタに転送し、次のステップS5713では、抽選結果データをAレジスタにセットして処理を終了する。また、ステップS5714では、抽選データアドレスの値をAレジスタに転送し、次のステップS5715では、抽選結果データをAレジスタにセットして処理を終了する。   In step S5710, the value of the lottery data address is transferred to the A register. In the next step S5711, the lottery result data is set in the A register, and the process ends. In step S5712, the value of the lottery data address is transferred to the A register. In the next step S5713, the lottery result data is set in the A register, and the process ends. In step S5714, the value of the lottery data address is transferred to the A register. In the next step S5715, the lottery result data is set in the A register, and the process ends.

図240は、本発明に係る抽選処理のプログラムの一例を示した図であり、図241は、従来の抽選処理のプログラムの一例を示した図である。   FIG. 240 is a diagram showing an example of a lottery processing program according to the present invention, and FIG. 241 is a diagram showing an example of a conventional lottery processing program.

本発明に係る抽選準備処理のプログラムでは、ROMエリアに記憶された抽選テーブルに示されるように、3つの抽選値N、M、L(N、M、Lは正の整数)に対して「N×6×6+M×6+L」の計算式からなる演算を施すことによって、1バイトのROMに対して3つの抽選値を対応付けして記憶している。このため、図241に示す、1バイトのROMに対して1つの抽選値を対応付けして記憶するような従来の抽選テーブルに比べ、メモリ容量を1/3に削減することができる。   In the lottery preparation processing program according to the present invention, as shown in the lottery table stored in the ROM area, “N” for three lottery values N, M, and L (N, M, and L are positive integers). By performing an operation consisting of a calculation formula of “× 6 × 6 + M × 6 + L”, three lottery values are associated with one-byte ROM and stored. Therefore, the memory capacity can be reduced to 1/3 compared to the conventional lottery table shown in FIG. 241, in which one lottery value is stored in association with one-byte ROM.

また、本発明に係る抽選準備処理のプログラムでは、1バイトのROMに対して3つの抽選値を対応付けして記憶した抽選テーブルから抽選値を取得するために、抽選値Lに対しては、(5−1)で示されるようにWARU命令を1回実行し、抽選値Mに対しては、(5−2)で示されるようにWARU命令を2回実行し、抽選値Nに対しては、(5−3)で示されるようにWARU命令を3回実行している。
<払出要求数送信処理>
In addition, in the lottery preparation program according to the present invention, in order to obtain a lottery value from a lottery table in which three lottery values are stored in association with a 1-byte ROM, As shown in (5-1), the WARU instruction is executed once, and for the lottery value M, the WARU instruction is executed twice as shown in (5-2). Executes the WARU instruction three times as indicated by (5-3).
<Transmission request number transmission processing>

次に、図242を用いて、上述の主制御部タイマ割込処理における払出要求数送信処理(ステップS219)について説明する。なお、同図は、払出要求数送信処理の流れを示すフローチャートである。   Next, with reference to FIG. 242, the payout request number transmission process (step S219) in the main control unit timer interrupt process described above will be described. This figure is a flowchart showing the flow of the payout request number transmission process.

ステップS5801では、払出要求があるか無いかを判定し、払出要求がある場合にはステップS5802に進み、払出要求が無い場合には処理を終了する。ステップS5802では、送信対象となる払出要求カウンタを1つ減算し、ステップS5803では、送信対象に応じた賞球数コマンドデータを取得し、ステップS5804では、払出制御部600に送信する賞球コマンドを設定する。   In step S5801, it is determined whether there is a payout request. If there is a payout request, the process proceeds to step S5802, and if there is no payout request, the process ends. In step S5802, the payout request counter to be transmitted is decremented by 1. In step S5803, prize ball number command data corresponding to the transmission object is acquired. In step S5804, a prize ball command to be transmitted to the payout control unit 600 is obtained. Set.

ステップS5805では、賞球数にメイン賞球数カウンタの値を加算し、ステップS5806では、賞球数を除算する。また、ステップS5807では、メイン賞球数カウンタを更新し、ステップS5808では、メイン賞球情報信号出力要求数を更新した後に処理を終了する。   In step S5805, the value of the main prize ball number counter is added to the number of prize balls, and in step S5806, the number of prize balls is divided. In step S5807, the main award ball number counter is updated, and in step S5808, the process ends after the main award ball information signal output request number is updated.

図243は、本発明に係る払出要求数送信処理のプログラムの一例を示した図である。このプログラムの(5−1)で示すLD命令では、メイン賞球数カウンタが記憶されているRAM308のアドレス(この例では、F060H)をHLレジスタに格納し、次の(5−2)で示すADD命令では、Aレジスタの値(賞球数)に、HLレジスタが示すアドレスに記憶されたメイン賞球カウンタの値(メイン賞球数)を加算している。   FIG. 243 is a diagram showing an example of a payout request number transmission processing program according to the present invention. In the LD instruction indicated by (5-1) in this program, the address of the RAM 308 (in this example, F060H) in which the main winning ball number counter is stored is stored in the HL register, and is indicated by the following (5-2). In the ADD instruction, the value of the main prize ball counter (number of main prize balls) stored at the address indicated by the HL register is added to the value of the A register (number of prize balls).

また、次の(5−3)で示すWARU命令では、第3オペランドが示す数値(この例では、10)で第2オペランドが示すAレジスタに記憶されたデータを除算し、除算結果の商を第1オペランドrが示すレジスタ(この例では、Cレジスタ)に格納し、除算結果の余りを第2オペランドが示すAレジスタに格納する。例えば、Aレジスタに記憶されたデータが23である場合、Cレジスタには、23(Aレジスタに記憶されたデータ)÷10(第3オペランドが示す数値)の除算の商である2がCレジスタに格納され、除算の余りである3がAレジスタに格納される。   In the next WARU instruction indicated by (5-3), the data stored in the A register indicated by the second operand is divided by the numerical value indicated by the third operand (in this example, 10), and the quotient of the division result is obtained. The result is stored in the register indicated by the first operand r (C register in this example), and the remainder of the division result is stored in the A register indicated by the second operand. For example, when the data stored in the A register is 23, the C register has 2 as the quotient of the division of 23 (data stored in the A register) / 10 (the numerical value indicated by the third operand). And 3 which is the remainder of division is stored in the A register.

また、次の(5−4)で示すLD命令では、Aレジスタに記憶されたデータ(除算の商。先の例では3)を、RAM308のアドレスF060Hに記憶されたメイン賞球カウンタに、次回の賞球数として格納し、次の(5−5)〜(5−8)に示す命令では、Cレジスタに記憶されたデータ(除算の余り。先の例では2)を、RAM308のアドレスF061Hに記憶されたメイン賞球情報信号出力要求数記憶領域に、メイン賞球情報信号出力要求数として格納する。   In the LD instruction shown in (5-4) below, the data stored in the A register (division quotient; 3 in the above example) is stored in the main prize ball counter stored in the address F060H of the RAM 308 next time. In the following instructions (5-5) to (5-8), the data stored in the C register (remainder of division; 2 in the previous example) is stored in the RAM 308 at the address F061H. Is stored as the main prize ball information signal output request count in the main prize ball information signal output request count storage area.

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、遊技制御を行うCPU(例えば、CPU304(または、CPU1304))を有する主制御部(例えば、主制御部300(または、主制御部1300))と、前記主制御部の遊技制御に基づいて遊技の演出制御を行う副制御部(例えば、第1副制御部400、第2副制御部500(または、第1副制御部1400、第2副制御部1500))と、を備えた遊技台であって、前記CPUは、第一のフラグと第二のフラグとを有するフラグレジスタと、前記第一のフラグと前記第二のフラグとを処理実行結果に基づいて同じ値に変化させる第一の処理と、処理実行結果に基づいて前記第一のフラグの値を変化させず前記第二のフラグの値を変化させる第二の処理と、を備え、前記第一の処理と前記第二の処理とを前記遊技制御において実行することを特徴とする遊技台である。   Further, the pachinko machine 100 (or slot machine 1100) according to the present embodiment has a main control unit (for example, the main control unit 300 (or main control) having a CPU (for example, the CPU 304 (or CPU 1304)) that performs game control. Unit 1300)) and a sub-control unit (for example, the first sub-control unit 400, the second sub-control unit 500 (or the first sub-control unit 1400) that controls the effect of the game based on the game control of the main control unit. , A second sub-control unit 1500)), wherein the CPU includes a flag register having a first flag and a second flag, the first flag, and the second flag. A first process for changing the flag to the same value based on the process execution result, and a second process for changing the value of the second flag without changing the value of the first flag based on the process execution result. processing The provided a gaming table, characterized in that the said second processing and the first processing is executed in the game controller.

例えば、本実施形態に係るパチンコ機100(またはスロットマシン1100)の主制御部は、図244に示すように、フラグAとフラグBとを有し、フラグAとフラグBとを処理実行結果に基づいて同じ値βに変化させる第一の処理と、処理実行結果に基づいてフラグAの値を変化させずフラグBの値をγに変化させる第二の処理と、を備え、前記第1の処理と前記第2の処理とを前記遊技制御において実行する。   For example, as shown in FIG. 244, the main control unit of the pachinko machine 100 (or slot machine 1100) according to the present embodiment has a flag A and a flag B, and uses the flag A and the flag B as processing execution results. And a second process for changing the value of the flag B to γ without changing the value of the flag A based on the process execution result. A process and the second process are executed in the game control.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、遊技の興趣を高めることを可能にしつつ、安定した遊技制御をおこなうことができる。すなわち、第二の処理実行後は第二の処理実行前の第一のフラグの値が保護されるため、その後の処理で第一のフラグの値を活用することができ、他のレジスタに第一のフラグの値を退避させる無駄な処理をする必要が無く、レジスタを占有せず且つプログラム容量を削減でき、遊技性を向上させるためのプログラムに容量を割り当てることができ、遊技の興趣を高めることが可能となる。また、プログラム容量を削減することでプログラムが見やすくなり、コーディングミスやバグの発生を抑制できる。また、第一の処理実行後は第一のフラグと第二のフラグが同じ値に変化するため、いずれかのフラグの値を用いて処理を実行したとしても同じ結果を得ることができ、状況に応じた適切な処理を選択してプログラムを記述することができ、プログラム容量や処理速度などを最適化することができる場合がある。   According to the pachinko machine 100 (or the slot machine 1100) according to the present embodiment, stable game control can be performed while making it possible to enhance the interest of the game. That is, since the value of the first flag before the execution of the second process is protected after the execution of the second process, the value of the first flag can be used in the subsequent process, and the value of the first flag is stored in another register. There is no need to perform useless processing to save the value of one flag, the register capacity is not occupied, the program capacity can be reduced, the capacity can be allocated to a program for improving the gameability, and the interest of the game is enhanced. It becomes possible. Also, by reducing the program capacity, it becomes easier to see the program, and coding errors and bugs can be suppressed. Also, since the first flag and the second flag change to the same value after the first process is executed, the same result can be obtained even if the process is executed using one of the flag values. A program can be described by selecting an appropriate process according to the program, and the program capacity, processing speed, and the like can be optimized.

また、前記CPUは、前記第一の処理において、処理実行結果が第一の値であることに基づいて前記第一のフラグと前記第二のフラグを第二の値に変化させ、処理実行結果が前記第一の値と異なることに基づいて前記第一のフラグと前記第二のフラグを前記第一の値に変化させ、前記第二の処理において、処理実行結果が前記第一の値であることに基づいて前記第二のフラグを前記第二の値に変化させ、処理実行結果が前記第一の値と異なることに基づいて前記第二のフラグを第一の値に変化させてもよい。   In the first process, the CPU changes the first flag and the second flag to a second value based on the fact that the process execution result is the first value, and the process execution result Is different from the first value, the first flag and the second flag are changed to the first value. In the second process, the process execution result is the first value. The second flag may be changed to the second value based on a certain thing, and the second flag may be changed to the first value based on a process execution result being different from the first value. Good.

このような構成とすれば、第一の処理実行後は第一のフラグと第二のフラグが処理実行結果に基づく同じ値に変化するため、いずれかのフラグの値を用いて処理を実行したとしても同じ結果を得ることができ、状況に応じた適切な処理を選択してプログラムを記述することができ、プログラム容量や処理速度などを最適化することができる場合がある。   With this configuration, after the first process is executed, the first flag and the second flag change to the same value based on the process execution result, so the process is executed using one of the flag values. However, the same result can be obtained, the program can be described by selecting an appropriate process according to the situation, and the program capacity and the processing speed can be optimized.

また、所定ビット長の特定レジスタを有し、前記CPUは、前記第一の処理において、処理実行結果を前記特定レジスタに格納し、前記特定レジスタの値が前記第一の値であることに基づいて前記第一のフラグと前記第二のフラグを前記第二の値に変化させ、前記特定レジスタの値が前記第一の値と異なることに基づいて前記第一のフラグと前記第二のフラグを前記第一の値に変化させ、前記第二の処理において、処理実行結果を前記特定レジスタに格納し、前記特定レジスタの値が前記第一の値であることに基づいて前記第二のフラグを前記第二の値に変化させ、前記特定レジスタの値が前記第一の値と異なることに基づいて前記第二のフラグを前記第一の値に変化させてもよい。   In addition, the CPU includes a specific register having a predetermined bit length, and the CPU stores a process execution result in the specific register in the first process, and the value of the specific register is the first value. The first flag and the second flag are changed to the second value, and the first flag and the second flag are changed based on the value of the specific register being different from the first value. In the second process, the process execution result is stored in the specific register, and the second flag is set based on the value of the specific register being the first value. May be changed to the second value, and the second flag may be changed to the first value based on the value of the specific register being different from the first value.

このような構成とすれば、第一の処理実行後は第一のフラグと第二のフラグが特定レジスタの値に基づく同じ値に変化するため、いずれかのフラグの値を用いて処理を実行したとしても同じ結果を得ることができ、状況に応じた適切な処理を選択してプログラムを記述することができ、プログラム容量や処理速度などを最適化することができる場合がある。   With this configuration, after the first process is executed, the first flag and the second flag change to the same value based on the value of the specific register, so the process is executed using either flag value. Even in such a case, the same result can be obtained, the program can be described by selecting an appropriate process according to the situation, and the program capacity and the processing speed can be optimized.

また、前記第一の処理の実行によって変化した前記第一のフラグの値に基づいて第一の処理を行う処理と、前記第一の処理の実行によって変化した前記第二のフラグの値に基づいて前記第一の処理と同じ処理を行う処理とを備えてもよい。   In addition, based on the value of the first flag changed by execution of the first process, based on the value of the second flag changed by execution of the first process And a process for performing the same process as the first process.

例えば、図245(a)に示すように、第一の処理(SUB命令)の実行によって変化した第一のフラグ(Zフラグ)の値に基づいて第一の処理(分岐処理)を行う第三の処理(ZフラグをオペランドとするJR命令)と、同図(b)に示すように、第一の処理(SUB命令)の実行によって変化した第二のフラグ(SZフラグ)の値に基づいて第一の処理と同じ処理(分岐処理)を行う第四の処理(SZフラグをオペランドとするJR命令)とを備えてもよい。   For example, as shown in FIG. 245 (a), a third process that performs the first process (branch process) based on the value of the first flag (Z flag) changed by the execution of the first process (SUB instruction). Based on the value of the second flag (SZ flag) changed by execution of the first process (SUB instruction) as shown in FIG. A fourth process (JR instruction using the SZ flag as an operand) for performing the same process (branch process) as the first process may be provided.

このような構成とすれば、異なるフラグの変化に基づいて同一の処理を実行することができ、処理に応じて第三の処理と第四の処理を使い分けることができる場合がある。特に、第三の処理と第四の処理のバイト数とステート数を同じにすれば、プログラムのチェックや、デバックやテストなどの作業が容易になる場合がある。   With such a configuration, the same process can be executed based on changes in different flags, and the third process and the fourth process can be used properly depending on the process. In particular, if the number of bytes and the number of states in the third process and the fourth process are made the same, operations such as program checking, debugging, and testing may be facilitated.

また、前記CPUは、前記第一のフラグの値を判定する第三の処理と、前記第二のフラグの値を判定する第四の処理と、を備え、前記第三の処理において、前記第一のフラグの値が前記第一の値または前記第二の値であるか否かを判定し、前記第四の処理において、前記第一のフラグの値が前記第一の値または前記第二の値であるか否かを判定してもよい。   Further, the CPU includes a third process for determining the value of the first flag and a fourth process for determining the value of the second flag. In the third process, It is determined whether the value of one flag is the first value or the second value. In the fourth process, the value of the first flag is the first value or the second value. It may be determined whether or not the value is.

このような構成とすれば、第一の処理実行後は第一のフラグの値と第二のフラグの値が同じとなるので、第一の処理実行後に第三の処理と第四の処理を使い分けることで、プログラムの容量や可読性を向上させることができる場合がある。また、第二の処理実行後は第二の処理実行前の第一のフラグの値が保護されるため、第三の処理で第一のフラグの値を活用することができ、他のレジスタに第一のフラグの値を退避させる無駄な処理をする必要が無く、レジスタを占有せず且つプログラム容量を削減でき、遊技性を向上させるためのプログラムに容量を割り当てることができ、遊技の興趣を高めることが可能となる。   With such a configuration, the value of the first flag and the value of the second flag are the same after execution of the first process, so the third process and the fourth process are performed after the execution of the first process. There are cases where the capacity and readability of the program can be improved by properly using it. In addition, since the value of the first flag before the execution of the second process is protected after the execution of the second process, the value of the first flag can be used in the third process, There is no need to perform wasteful processing for saving the value of the first flag, the register capacity is not occupied, the program capacity can be reduced, and the capacity can be allocated to a program for improving game play. It becomes possible to raise.

また、前記第二の処理実行後に前記第四の処理を実行すれば、第四の処理で第二の処理の実行結果を判定することができるので、第二の処理の実行結果を確認する処理(第一のフラグを変化させる処理)を省くことができ、プログラム容量を削減することができる場合がある。   In addition, if the fourth process is executed after the second process is executed, the execution result of the second process can be determined in the fourth process, so the process of confirming the execution result of the second process (Processing for changing the first flag) can be omitted, and the program capacity can be reduced in some cases.

また、前記CPUは、前記第三の処理または前記第四の処理において、前記判定結果が真である場合に所定のアドレスに移行してもよく、また、前記判定結果が真のときより偽の方が処理速度が速い場合、前記第三の処理と前記第四の処理のサイズ(バイト数)と速さ(ステート数)が同一であれば(例えば、JR命令、RET命令)、プログラムコード量や処理速度を気にすることなく処理を使い分けることができる場合がある。   In the third process or the fourth process, the CPU may shift to a predetermined address when the determination result is true, and may be more false than when the determination result is true. If the processing speed is faster, the size (number of bytes) and the speed (number of states) of the third process and the fourth process are the same (for example, JR instruction, RET instruction), and the amount of program code In some cases, it is possible to use different processes without worrying about the processing speed.

また、前記判定結果が真のときと偽のときとで処理速度が同じ場合、前記第三の処理のほうが前記第四の処理よりサイズと速さが小さくてもよい(例えば、JP命令)。また、前記第二の処理は、上記実施形態で示した処理に限定されず、例えば、ロード命令、16ビットのADD命令、INC命令、DEC命令、直値を入れるIN命令、Aレジスタ専用のローテートシフト命令などでもよい。   Further, when the processing speed is the same when the determination result is true and when it is false, the third process may be smaller in size and speed than the fourth process (for example, a JP instruction). The second processing is not limited to the processing shown in the above embodiment. For example, a load instruction, a 16-bit ADD instruction, an INC instruction, a DEC instruction, an IN instruction for inputting a direct value, and a rotation dedicated to the A register A shift instruction may be used.

また、前記CPUが前記第二の処理を実行した後の前記第一のフラグは、該第二の処理を実行する前の値を維持するものであってもよい。   Further, the first flag after the CPU executes the second process may maintain a value before the second process is executed.

また、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、遊技制御を行うCPU(例えば、CPU304(または、CPU1304))を有する主制御部(例えば、主制御部300(または、主制御部1300))と、前記主制御部の遊技制御に基づいて遊技の演出制御を行う副制御部(例えば、第1副制御部400、第2副制御部500(または、第1副制御部1400、第2副制御部1500))と、を備えた遊技台であって、前記CPUは、複数種類のフラグを備えた所定のフラグレジスタと複数のレジスタを有し、前記複数のレジスタのうちの第一のレジスタと第二のレジスタの少なくとも何れかに格納された値を所定の値で所定の演算を行い、前記演算の第一の結果を前記第一のレジスタに格納し、前記演算の第二の結果を前記第二のレジスタに格納し、前記演算の第二の結果である前記第二のレジスタに格納された値に基づいて前記複数種類のフラグのうちの特定のフラグの値を変化させる所定の処理を備え、該所定の処理を前記遊技制御において実行することを特徴とする遊技台である。   Further, the pachinko machine 100 (or slot machine 1100) according to the present embodiment has a main control unit (for example, the main control unit 300 (or main control) having a CPU (for example, the CPU 304 (or CPU 1304)) that performs game control. Unit 1300)) and a sub-control unit (for example, the first sub-control unit 400, the second sub-control unit 500 (or the first sub-control unit 1400) that controls the effect of the game based on the game control of the main control unit. , A second sub-control unit 1500)), wherein the CPU has a predetermined flag register having a plurality of types of flags and a plurality of registers, and among the plurality of registers, A predetermined operation is performed on the value stored in at least one of the first register and the second register with a predetermined value, the first result of the operation is stored in the first register, and the operation is performed. The second result is stored in the second register, and the value of the specific flag among the plurality of types of flags is based on the value stored in the second register that is the second result of the operation A gaming machine comprising a predetermined process for changing the game process and executing the predetermined process in the game control.

例えば、本実施形態に係るパチンコ機100(またはスロットマシン1100)は、図246に示すように、Zフラグと複数の記憶部1、記憶部2を有し、記憶部1と記憶部2の少なくとも何れかに格納された値7を所定の値3で除算を行い、除算結果の商2を前記記憶部1に格納し、除算結果の余り1を前記記憶部2に格納し、前記記憶部2に格納された値に基づいてZフラグを1から0に変化させる除算処理を備え、該除算処理を前記遊技制御において実行する。   For example, the pachinko machine 100 (or slot machine 1100) according to the present embodiment includes a Z flag, a plurality of storage units 1, and a storage unit 2, as shown in FIG. The value 7 stored in any one is divided by a predetermined value 3, the quotient 2 of the division result is stored in the storage unit 1, the remainder 1 of the division result is stored in the storage unit 2, and the storage unit 2 A division process for changing the Z flag from 1 to 0 based on the value stored in is provided, and the division process is executed in the game control.

本実施形態に係るパチンコ機100(またはスロットマシン1100)によれば、遊技の興趣を高めることを可能にしつつ、安定した遊技制御をおこなうことができる。すなわち、第二のレジスタに格納された値(第二の結果)に基づいて複数種類のフラグの何れかの値が変化するので、プログラムを注意して作成でき、コーディングミスやバグを抑制することができ、安定した遊技制御をおこなうことができる場合がある。また、第一の結果と第二の結果をそれぞれレジスタに格納するため、所定の処理後に2つの結果を利用してその他の処理を行うことができ、プログラム容量を削減することでプログラムが見やすくなり、コーディングミスやバグの発生を抑制できる場合がある。   According to the pachinko machine 100 (or the slot machine 1100) according to the present embodiment, stable game control can be performed while making it possible to enhance the interest of the game. That is, since the value of any of the multiple types of flags changes based on the value stored in the second register (second result), the program can be created with care and coding errors and bugs can be suppressed. May be able to perform stable game control. In addition, since the first result and the second result are stored in the respective registers, it is possible to perform other processes using the two results after a predetermined process, and the program is easy to see by reducing the program capacity. In some cases, coding errors and bugs can be suppressed.

また、前記所定の処理は、前記第二のレジスタに格納された値が第一の値であることに基づいて第二の値を前記フラグレジスタに格納し、前記第二のレジスタに格納された値が前記第一の値と異なることに基づいて前記複数種類のフラグのうちの前記特定のフラグの値を前記第一の値に変化させてもよい。   Further, the predetermined processing stores a second value in the flag register based on the fact that the value stored in the second register is the first value, and stores the second value in the second register. The value of the specific flag among the plurality of types of flags may be changed to the first value based on the fact that the value is different from the first value.

このような構成とすれば、第二のレジスタに格納された処理実行結果(第二の結果)に基づく値に基づいて特定のフラグの値が変化するので、プログラムを注意して作成でき、コーディングミスやバグを抑制することができ、安定した遊技制御をおこなうことができる場合がある。   With this configuration, the value of a specific flag changes based on the value based on the processing execution result (second result) stored in the second register, so the program can be created with care and coding In some cases, mistakes and bugs can be suppressed, and stable game control can be performed.

また、前記CPUは、前記所定の処理において、前記演算の第一の結果である前記第一のレジスタに格納された値に関わらずに前記演算の第二の結果である前記第二のレジスタに格納された値に基づいて前記複数種類のフラグのうちの特定のフラグの値を変化させてもよい。   In addition, in the predetermined process, the CPU stores the second register that is the second result of the operation regardless of the value stored in the first register that is the first result of the operation. A value of a specific flag among the plurality of types of flags may be changed based on a stored value.

また、前記所定の処理は、第一のオペランドが特定値の場合に、第二のオペランドと第三のオペランドで指定したレジスタを所定の値に変化させるとともに、前記所定の処理で変化する複数種類のフラグのうちの前記特定のフラグ以外のフラグを変化させる処理でもよい。   In addition, when the first operand is a specific value, the predetermined processing changes the register specified by the second operand and the third operand to a predetermined value, and a plurality of types that change by the predetermined processing. Of these flags, processing other than the specific flag may be changed.

例えば、図247(a)に示すWARU命令は、第一のオペランド(三番目のオペランド)が特定値(0)の場合に、第二のオペランド(一番目のオペランド)と第三のオペランド(二番目のオペランド)で指定したレジスタ(Cレジスタ、Aレジスタ)を所定の値(FFH)に変化させるとともに、前記所定の処理で変化する複数種類のフラグのうちの特定のフラグ以外のフラグ(Cフラグ)を変化させる処理でもよい。   For example, in the WARU instruction shown in FIG. 247 (a), when the first operand (third operand) is a specific value (0), the second operand (first operand) and the third operand (two The register (C register, A register) specified by the th operand) is changed to a predetermined value (FFH), and flags other than a specific flag (C flag) among the plurality of types of flags that change in the predetermined process ) May be changed.

このような構成とすれば、同図(b)に示すような2つの処理で実現するよりも、処理数を削減できるため、処理時間を早くすることができ、プログラムコード量も削減できる場合がある。また、指定した2つのレジスタに所定の値を1処理で格納することができ、プログラムの可読性を向上させることができる場合がある。   With such a configuration, since the number of processes can be reduced as compared with two processes as shown in FIG. 2B, the processing time can be shortened and the amount of program code can be reduced. is there. Moreover, a predetermined value can be stored in two designated registers in one process, and the readability of the program may be improved.

なお、Cフラグ(キャリーフラグ)は、足し算(例えば、ADD命令、INC命令)実行時の桁落ち、引き算(例えば、SUB命令、DEC命令)実行時の桁借り、ローテートシフト命令(例えば、RLCA命令)実行時のCフラグに入る値が1のときなどで値が1に変化するため、特定の処理(例えば、ADD命令、DEC命令、RLCA命令)と前記所定の処理(WARU命令)とではCフラグの変化条件が異なる。また、被除数を特定値(0)の除数で除算した場合、第一のレジスタおよび第二のレジスタの値における演算前の値がつぶされて(演算前の値に関わらず上書きして)同一の特定の値(FFH)になる。また、前記所定の値は、前記所定の処理の演算結果として、前記第二のオペランド(一番目のオペランド)と前記第三のオペランド(二番目のオペランド)で指定したレジスタ(Cレジスタ、Aレジスタ)に格納する値として取りえない値(除算の結果として、商と余りが取り得ない値(例えば、商と余りが両方ともFFH))であってもよい。   Note that the C flag (carry flag) is a carry-down at the time of execution of addition (for example, ADD instruction, INC instruction), a borrow at the time of execution of subtraction (for example, SUB instruction, DEC instruction), a rotate shift instruction (for example, RLCA instruction) ) Since the value changes to 1 when the value that enters the C flag at the time of execution is 1, C is not obtained in a specific process (for example, ADD instruction, DEC instruction, RLCA instruction) and the predetermined process (WARU instruction). The flag change conditions are different. In addition, when the dividend is divided by the divisor of the specific value (0), the values before the calculation in the values of the first register and the second register are crushed (overwritten regardless of the values before the calculation) and are the same. It becomes a specific value (FFH). The predetermined value is a register (C register, A register) specified by the second operand (first operand) and the third operand (second operand) as an operation result of the predetermined process. ) May be a value that cannot be taken as a value to be stored (a value in which a quotient and a remainder cannot be taken as a result of division (for example, both a quotient and a remainder are FFH)).

また、前記所定の処理は、最後に指定されるオペランドの値で最後から2番目に指定されるオペランドの値に対して前記所定の演算を行い、最初に指定されるオペランドである前記第一のレジスタに前記演算の第一の結果を格納し、最初から2番目に指定されるオペランドである前記第二のレジスタに前記演算の第二の結果を格納し、前記演算の第一の結果である前記第一のレジスタに格納された値に関わらずに前記演算の第二の結果である前記第二のレジスタに格納された値に基づいて前記複数種類のフラグの何れかの値を変化させるものであってもよい。   The predetermined processing is performed by performing the predetermined operation on the value of the operand specified second last from the value of the operand specified last, and the first specified as the first specified operand. The first result of the operation is stored in a register, the second result of the operation is stored in the second register, which is the second specified operand from the beginning, and is the first result of the operation Regardless of the value stored in the first register, the value of any of the plurality of types of flags is changed based on the value stored in the second register, which is the second result of the operation. It may be.

この場合、最初から2番目に指定されるオペランドである第二のレジスタの値に基づいて複数種類のフラグの何れかの値が変化するので、プログラムを注意して作成でき、コーディングミスやバグを抑制することができ、安定した遊技制御をおこなうことができる場合がある。   In this case, the value of any of the multiple types of flags changes based on the value of the second register that is the second specified operand from the beginning, so the program can be created with care and coding errors and bugs can be avoided. In some cases, the game can be suppressed and stable game control can be performed.

また、前記最後に指定するオペランドの値が前記所定の値であってもよい。この場合、プログラムの可読性を向上させることができる場合がある。   Further, the value of the operand specified last may be the predetermined value. In this case, the readability of the program may be improved.

また、プログラムデータおよび一時的なデータを記憶する記憶手段(例えば、ROM306、RAM308(またはROM1306、RAM1308))の所定のアドレスが示す領域に複数のデータを含み、前記CPUは、前記所定の処理を所定回数行って該所定回数に応じた前記複数のデータの何れかを取得するものであってもよい。   The CPU includes the plurality of data in an area indicated by a predetermined address of a storage unit (for example, ROM 306, RAM 308 (or ROM 1306, RAM 1308)) for storing program data and temporary data, and the CPU performs the predetermined process. It may be performed a predetermined number of times to acquire any of the plurality of data corresponding to the predetermined number of times.

この場合、プログラム容量を削減することでプログラムが見やすくなり、コーディングミスやバグの発生を抑制できる場合がある。   In this case, by reducing the program capacity, the program can be easily viewed, and coding errors and bugs can be suppressed.

また、前記CPUは、前記所定の処理を行った後、前記第一のレジスタに格納した値を前記記憶手段の第一の特定アドレスが示す領域に格納し、前記第二のレジスタに格納した値を前記第一の特定アドレスに隣接する第二の特定アドレスが示す領域に格納するものであってもよい。   The CPU stores the value stored in the first register in the area indicated by the first specific address of the storage means after performing the predetermined process, and stores the value stored in the second register. May be stored in an area indicated by a second specific address adjacent to the first specific address.

この場合、プログラムが見やすくなり、コーディングミスやバグの発生を抑制できる場合がある。   In this case, the program may be easier to see, and coding errors and bugs may be suppressed.

以下、図面を用いて、本発明の実施形態5に係るパチンコ機(遊技台)について詳細に説明する。
<全体構成>
Hereinafter, a pachinko machine (game table) according to Embodiment 5 of the present invention will be described in detail with reference to the drawings.
<Overall configuration>

まず、図248を用いて、パチンコ機5100の全体構成について説明する。なお、同図はパチンコ機5100を正面側(遊技者側)から見た外観斜視図である。   First, the overall configuration of the pachinko machine 5100 will be described with reference to FIG. In addition, the figure is the external appearance perspective view which looked at the pachinko machine 5100 from the front side (player side).

パチンコ機5100は、ガラス製または樹脂製の透明板部材5152および透明部材保持枠(ガラス枠)5154からなる扉部材5156の奥側に視認可能に配設した後述する遊技盤(盤面)5102を備えている。   The pachinko machine 5100 includes a later-described game board (board surface) 5102 that is visibly disposed behind a door member 5156 made of a transparent plate member 5152 made of glass or resin and a transparent member holding frame (glass frame) 5154. ing.

また、発射杆5138および発射槌5140の下方には、発射杆5138を制御して遊技領域5104に向けて球の発射強度の操作を行うための操作ハンドル5148を配設していると共に、貯留皿5144の下方には、貯留皿5144に貯留できない溢れ球を貯留するための下皿5150を設けている。   Further, below the launcher 5138 and the launcher 5140, an operation handle 5148 for controlling the launcher 5138 and operating the launch intensity of the ball toward the game area 5104 is disposed, and a storage dish Below 5144, a lower plate 5150 is provided to store overflow balls that cannot be stored in the storage plate 5144.

図249は、遊技盤5102を正面から見た略示正面図である。遊技盤5102には、外レール5106と内レール5108とを配設し、遊技球(以下、単に「球」と称する場合がある。)が転動可能な遊技領域5104を区画形成している。   FIG. 249 is a schematic front view of the game board 5102 viewed from the front. In the game board 5102, an outer rail 5106 and an inner rail 5108 are provided, and a game area 5104 in which a game ball (hereinafter may be simply referred to as “ball”) can roll is formed.

遊技領域5104の略中央には、演出装置5200を配設している。この演出装置5200には、略中央に横長の装飾図柄表示装置5110を配設し、その周囲に、普通図柄表示装置5112と、特別図柄表示装置5114と、普通図柄保留ランプ5116と、特別図柄保留ランプ5118と、高確中ランプ5120を配設している。なお、以下、普通図柄を「普図」、特別図柄を「特図」と称する場合がある。   An effect device 5200 is provided in the approximate center of the game area 5104. The effect device 5200 is provided with a horizontally-long decorative symbol display device 5110 substantially in the center, around which a normal symbol display device 5112, a special symbol display device 5114, a normal symbol hold lamp 5116, and a special symbol hold. A lamp 5118 and a high-probability medium lamp 5120 are provided. Hereinafter, the normal symbol may be referred to as “general symbol” and the special symbol may be referred to as “special symbol”.

演出装置5200は、可動部を動作して演出を行うものであり、詳細については後述する。装飾図柄表示装置5110は、装飾図柄ならびに演出に用いる様々な画像を表示するための表示装置であり、本実施例では液晶表示装置(Liquid Crystal Display)によって構成する。この装飾図柄表示装置5110は、左図柄表示領域5110a、中図柄表示領域5110b、右図柄表示領域5110cおよび演出表示領域5110dの4つの表示領域に分割し、左図柄表示領域5110a、中図柄表示領域5110bおよび左図柄表示領域5110cはそれぞれ異なった装飾図柄を表示し、演出表示領域5110dは演出に用いる画像を表示する。さらに、各表示領域5110a、5110b、5110c、5110dの位置や大きさは、装飾図柄表示装置5110の表示画面内で自由に変更することを可能としている。なお、装飾図柄表示装置5110は、液晶表示装置に代えて、ドットマトリクス表示装置、7セグメント表示装置、EL(ElectroLuminescence)表示装置、ドラム式表示装置、リーフ式表示装置等他の表示デバイスを採用してもよい。   The effect device 5200 performs an effect by operating a movable part, and details will be described later. The decorative symbol display device 5110 is a display device for displaying various images used for decorative symbols and effects. In the present embodiment, the decorative symbol display device 5110 is configured by a liquid crystal display device (Liquid Crystal Display). This decorative symbol display device 5110 is divided into four display areas, a left symbol display area 5110a, a middle symbol display area 5110b, a right symbol display area 5110c, and an effect display area 5110d, and a left symbol display area 5110a and a middle symbol display area 5110b. The left symbol display area 5110c displays different decorative symbols, and the effect display area 5110d displays an image used for the effect. Further, the positions and sizes of the display areas 5110a, 5110b, 5110c, and 5110d can be freely changed within the display screen of the decorative symbol display device 5110. The decorative symbol display device 5110 employs other display devices such as a dot matrix display device, a 7-segment display device, an EL (ElectroLuminescence) display device, a drum display device, and a leaf display device instead of the liquid crystal display device. May be.

普図表示装置5112は、普図の表示を行うための表示装置であり、本実施例では7セグメントLEDによって構成する。特図表示装置5114は、特図の表示を行うための表示装置であり、本実施例では7セグメントLEDによって構成する。   The common map display device 5112 is a display device for displaying a general map, and is configured by a 7-segment LED in this embodiment. The special figure display device 5114 is a display device for displaying a special figure, and is constituted by a 7-segment LED in this embodiment.

普図保留ランプ5116は、保留している普図変動遊技の数を示すためのランプであり、本実施例では、普図変動遊技を2つまで保留することを可能としている。特図保留ランプ5118は、保留している特図変動遊技の数を示すためのランプであり、本実施例では、特図変動遊技を4つまで保留することを可能としている。高確中ランプ5120は、遊技状態が高確率状態(後述する大当り遊技の当選確率を通常の確率よりも高く設定した遊技状態)であること、または高確率状態になることを示すためのランプであり、遊技状態を低確率状態(後述する大当り遊技の当選確率を通常の確率に設定した遊技状態)から高確率状態にする場合に点灯し、高確率状態から低確率状態にする場合に消灯する。   The general-purpose hold lamp 5116 is a lamp for indicating the number of general-purpose variable games that are on hold. In this embodiment, it is possible to hold up to two general-purpose variable games. The special figure hold lamp 5118 is a lamp for indicating the number of special figure variable games that are on hold. In this embodiment, up to four special figure variable games can be held. The high probability lamp 5120 is a lamp for indicating that the gaming state is a high probability state (a gaming state in which a winning probability of a big hit game described later is set higher than a normal probability) or a high probability state. Yes, when the game state is changed from a low probability state (a game state in which the winning probability of a big hit game described later is set to a normal probability) to a high probability state, and turned off when changing from a high probability state to a low probability state .

また、この演出装置5200の周囲には、一般入賞口5122と、普図始動口5124と、第1特図始動口5126と、第2特図始動口5128と、可変入賞口5130を配設している。一般入賞口5122は、本実施例では遊技盤5102に複数配設しており、この一般入賞口5122への入球を所定の球検出センサ(図示省略)が検出した場合(一般入賞口5122に入賞した場合)、後述する払出装置552を駆動し、所定の個数(本実施例では10個)の球を賞球として貯留皿5144に排出する。貯留皿5144に排出した球は遊技者が自由に取り出すことが可能であり、これらの構成により、入賞に基づいて賞球を遊技者に払い出すようにしている。なお、一般入賞口5122に入球した球は、パチンコ機5100の裏側に誘導した後、遊技島側に排出する。本実施例では、入賞の対価として遊技者に払い出す球を「賞球」、遊技者に貸し出す球を「貸球」と区別して呼ぶ場合があり、「賞球」と「貸球」を総称して「球(遊技球)」と呼ぶ。   In addition, a general prize opening 5122, a general drawing start opening 5124, a first special figure start opening 5126, a second special figure start opening 5128, and a variable winning opening 5130 are provided around the effect device 5200. ing. In this embodiment, a plurality of general winning holes 5122 are arranged on the game board 5102, and when a predetermined ball detection sensor (not shown) detects a ball entering the general winning holes 5122 (in the general winning holes 5122). In the case of winning a prize), a payout device 552 described later is driven to discharge a predetermined number (10 in this embodiment) of balls to the storage tray 5144 as prize balls. The player can freely take out the balls discharged to the storage tray 5144, and with these configurations, the player can pay out the prize balls to the player based on winning. The ball that has entered the general winning opening 5122 is guided to the back side of the pachinko machine 5100 and then discharged to the amusement island side. In this embodiment, a ball to be paid out to a player as a consideration for winning is sometimes referred to as a “prize ball”, and a ball lent to a player is sometimes referred to as “rental ball”. They are called “balls (game balls)”.

普図始動口5124は、ゲートやスルーチャッカーと呼ばれる、遊技領域の所定の領域を球が通過したか否かを判定するための装置で構成しており、本実施例では遊技盤5102の左側に1つ配設している。普図始動口5124を通過した球は一般入賞口5122に入球した球と違って、遊技島側に排出することはない。球が普図始動口5124を通過したことを所定の玉検出センサが検出した場合、パチンコ機5100は、普図表示装置5112による普図変動遊技を開始する。   The normal start port 5124 is constituted by a device called a gate or a through chucker for determining whether or not a ball has passed through a predetermined area of the game area, and in this embodiment, on the left side of the game board 5102. One is arranged. Unlike the ball that has entered the general winning opening 5122, the ball that has passed through the normal start opening 5124 is not discharged to the amusement island side. When a predetermined ball detection sensor detects that the ball has passed through the general-purpose start opening 5124, the pachinko machine 5100 starts a general-purpose variable game by the general-purpose display device 5112.

第1特図始動口5126は、本実施例では遊技盤5102の中央に1つだけ配設している。この第1特図始動口5126への入球を所定の球検出センサが検出した場合、後述する払出装置552を駆動し、所定の個数(本実施例では3個)の球を賞球として貯留皿5144に排出するとともに、特図表示装置5114による特図変動遊技を開始する。なお、第1特図始動口5126に入球した球は、パチンコ機5100の裏側に誘導した後、遊技島側に排出する。   In the present embodiment, only one first special figure starting port 5126 is disposed at the center of the game board 5102. When a predetermined ball detection sensor detects a ball entering the first special figure starting port 5126, a payout device 552 described later is driven to store a predetermined number (three in the present embodiment) of balls as prize balls. While discharging to the tray 5144, the special figure display game by the special figure display device 5114 is started. The ball that has entered the first special figure starting port 5126 is guided to the back side of the pachinko machine 5100 and then discharged to the amusement island side.

第2特図始動口5128は、電動チューリップ(電チュー)と呼ばれ、本実施例では第1特図始動口5126の真下に1つだけ配設している。この第2特図始動口5128は、左右に開閉自在な羽根を備え、羽根の閉鎖中は球の入球が不可能であり、普図変動遊技に当選し、普図表示装置5112が当り図柄を停止表示した場合に羽根が所定の時間間隔、所定の回数で開閉する。第2特図始動口5128への入球を所定の球検出センサが検出した場合、後述する払出装置552を駆動し、所定の個数(本実施例では5個)の球を賞球として後述する貯留皿5144に排出するとともに、特図表示装置5114による特図変動遊技を開始する。なお、第2特図始動口5128に入球した球は、パチンコ機5100の裏側に誘導した後、遊技島側に排出する。   The second special figure starting port 5128 is called an electric tulip (electric Chu), and in the present embodiment, only one second special figure starting port 5128 is disposed directly below the first special figure starting port 5126. The second special figure starting port 5128 has blades that can be opened and closed to the left and right. When the blades are closed, it is impossible to enter a ball, and the normal figure display device 5112 is won. Is stopped and displayed, the blades open and close at a predetermined time interval and a predetermined number of times. When a predetermined ball detection sensor detects a ball entering the second special figure starting port 5128, a payout device 552 described later is driven, and a predetermined number (5 in this embodiment) of balls is described later as a prize ball. While discharging to the storage tray 5144, the special figure display game by the special figure display device 5114 is started. The ball that has entered the second special figure starting port 5128 is guided to the back side of the pachinko machine 5100 and then discharged to the amusement island side.

可変入賞口5130は、大入賞口またはアタッカーと呼ばれ、本実施例では遊技盤5102の中央部下方に1つだけ配設している。この可変入賞口5130は、開閉自在な扉部材を備え、扉部材の閉鎖中は球の入球が不可能であり、特図変動遊技に当選し、特図表示装置5114が大当り図柄を停止表示した場合に扉部材が所定の時間間隔(例えば、開放時間29秒、閉鎖時間1.5秒)、所定の回数(例えば15回)で開閉する。可変入賞口5130への入球を所定の球検出センサが検出した場合、後述する払出装置552を駆動し、所定の個数(本実施例では15球)の球を賞球として貯留皿5144に排出する。なお、可変入賞口5130に入球した球は、パチンコ機5100の裏側に誘導した後、遊技島側に排出する。   The variable winning opening 5130 is called a big winning opening or an attacker, and in this embodiment, only one variable winning opening 5130 is arranged below the center of the game board 5102. This variable winning opening 5130 includes a door member that can be freely opened and closed. When the door member is closed, it is impossible to enter a ball, and the special figure display device 5114 stops and displays the big hit symbol. In this case, the door member opens and closes at a predetermined time interval (for example, an opening time of 29 seconds and a closing time of 1.5 seconds) and at a predetermined number of times (for example, 15 times). When a predetermined ball detection sensor detects a ball entering the variable winning port 5130, a payout device 552 described later is driven and a predetermined number (15 balls in this embodiment) of balls is discharged as a prize ball to the storage tray 5144. To do. The ball that entered the variable prize opening 5130 is guided to the back side of the pachinko machine 5100 and then discharged to the amusement island side.

さらに、これらの入賞口や始動口の近傍には、風車と呼ばれる円盤状の打球方向変換部材5132や、遊技釘5134を複数個、配設していると共に、内レール5108の最下部には、いずれの入賞口や始動口にも入賞しなかった球をパチンコ機5100の裏側に誘導した後、遊技島側に排出するためのアウト口5136を設けている。   Further, a plurality of disc-shaped hitting ball direction changing members 5132 and game nails 5134 called windmills are arranged in the vicinity of these winning openings and starting openings, and at the bottom of the inner rail 5108, An out port 5136 is provided for guiding a ball that has not won a prize or starting port to the back side of the pachinko machine 5100 and then discharging it to the game island side.

このパチンコ機5100は、遊技者が貯留皿5144に貯留している球を発射レール5142の発射位置に供給し、遊技者の操作ハンドル5148の操作量に応じた強度で発射モータ602を駆動し、発射杆5138および発射槌5140によって外レール5106、内レール5108を通過させて遊技領域5104に打ち出す。そして、遊技領域5104の上部に到達した球は、打球方向変換部材5132や遊技釘5134等によって進行方向を変えながら下方に落下し、入賞口(一般入賞口5122、可変入賞口5130)や始動口(第1特図始動口5126、第2特図始動口5128)に入賞するか、いずれの入賞口や始動口にも入賞することなく、または普図始動口5124を通過するのみでアウト口5136に到達する。
<演出装置>
This pachinko machine 5100 supplies the ball stored in the storage tray 5144 by the player to the launch position of the launch rail 5142, drives the launch motor 602 with strength according to the operation amount of the player's operation handle 5148, The launcher 5138 and the launcher 5140 are passed through the outer rail 5106 and the inner rail 5108 to launch into the game area 5104. Then, the ball that has reached the upper part of the game area 5104 falls downward while changing the traveling direction by the hitting direction changing member 5132, the game nail 5134, etc., and a winning opening (general winning opening 5122, variable winning opening 5130) or starting opening (First special figure starting port 5126, second special figure starting port 5128), winning out any winning port or starting port, or just passing through the normal drawing start port 5124, out port 5136 To reach.
<Director>

次に、パチンコ機5100の演出装置5200について説明する。この演出装置5200の前面側には、ワープ装置5230およびステージを配設し、演出装置5200の背面側には、装飾図柄表示装置5110および遮蔽手段5250を配設している。すなわち、演出装置5200において、装飾図柄表示装置5110および遮蔽手段5250は、ワープ装置5230およびステージの後方に位置することとなる。   Next, the rendering device 5200 of the pachinko machine 5100 will be described. A warp device 5230 and a stage are arranged on the front side of the effect device 5200, and a decorative symbol display device 5110 and a shielding means 5250 are arranged on the back side of the effect device 5200. That is, in the rendering device 5200, the decorative symbol display device 5110 and the shielding means 5250 are located behind the warp device 5230 and the stage.

ワープ装置5230は、演出装置5200の左上方に設けた入球口5232に入った遊技球を演出装置5200の前面下方の前面ステージ5234に排出し、さらに、前面ステージ5234に排出した遊技球が前面ステージ5234の中央部後方に設けた第2の入球口5236に入った場合は、遊技球を、第1特図始動口5126の上方である演出装置5200の下部中央に設けた排出口5238から第1特図始動口5126に向けて排出するものである。この排出口5238から排出した遊技球は特図始動口5126に入球しやすくなっている。   The warp device 5230 discharges the game ball that has entered the entrance 5232 provided at the upper left of the effect device 5200 to the front stage 5234 below the front surface of the effect device 5200, and the game ball discharged to the front stage 5234 is the front surface. When entering the second entrance 5236 provided at the back of the center of the stage 5234, the game ball is discharged from the exit 5238 provided at the lower center of the effect device 5200 above the first special figure starting port 5126. It is discharged toward the first special figure starting port 5126. The game ball discharged from the discharge port 5238 can easily enter the special figure start port 5126.

遮蔽手段5250は、格子状の左扉5250aおよび右扉5250bからなり、装飾図柄表示装置5110および前面ステージ5234の間に配設する。左扉5250aおよび右扉5250bの上部には、図示しない2つのプーリに巻き回したベルトをそれぞれ固定している。すなわち、左扉5250aおよび右扉5250bは、モータによりプーリを介して駆動するベルトの動作に伴って左右にそれぞれ移動する。遮蔽手段5250は、左右扉5250a、5250bを閉じた状態ではそれぞれの内側端部が重なり、遊技者が装飾図柄表示装置5110を視認し難いように遮蔽する。左右扉5250a、5250bを開いた状態ではそれぞれの内側端部が装飾図柄表示装置5110の表示画面の外側端部と若干重なるが、遊技者は装飾図柄表示装置5110の表示の全てを視認可能である。また、左右扉5250a、5250bは、それぞれ任意の位置で停止可能であり、例えば、表示した装飾図柄がどの装飾図柄であるかを遊技者が識別可能な程度に、装飾図柄の一部だけを遮蔽するようなことができる。なお、左右扉5250a、5250bは、格子の孔から後方の装飾図柄表示装置5110の一部を視認可能にしてもよいし、格子の孔の障子部分を半透明のレンズ体で塞ぎ、後方の装飾図柄表示装置5110による表示を漠然と遊技者に視認させるようにしてもよいし、格子の孔の障子部分を完全に塞ぎ(遮蔽し)、後方の装飾図柄表示装置5110を全く視認不可にしてもよい。   The shielding means 5250 includes a grid-like left door 5250a and right door 5250b, and is disposed between the decorative symbol display device 5110 and the front stage 5234. Belts wound around two pulleys (not shown) are fixed to the upper portions of the left door 5250a and the right door 5250b, respectively. That is, the left door 5250a and the right door 5250b move to the left and right in accordance with the operation of the belt driven by the motor via the pulley. When the left and right doors 5250a and 5250b are closed, the shielding means 5250 overlaps the inner ends of the doors so that it is difficult for the player to visually recognize the decorative symbol display device 5110. In the state where the left and right doors 5250a and 5250b are opened, the inner end portions thereof slightly overlap the outer end portion of the display screen of the decorative symbol display device 5110, but the player can visually recognize all of the displays on the decorative symbol display device 5110. . In addition, the left and right doors 5250a and 5250b can be stopped at arbitrary positions. For example, only a part of the decorative design is shielded so that the player can identify which decorative design the displayed decorative design is. You can do that. The left and right doors 5250a and 5250b may allow part of the decorative pattern display device 5110 behind the lattice hole to be visible, and the shoji part of the lattice hole is closed with a translucent lens body, The display by the symbol display device 5110 may be made vaguely visible to the player, or the shoji part of the holes in the lattice may be completely blocked (shielded), and the decorative symbol display device 5110 behind may be completely invisible. .

図250は、パチンコ機5100を背面側から見た外観斜視図である。パチンコ機5100の背面上部には、上方に開口した開口部を有し、球を一時的に貯留するための球タンク5152と、この球タンク5152の下方に位置し、球タンク5152の底部に形成した連通孔を通過して落下する球を背面右側に位置する払出装置5154に導くためのタンクレール5153とを配設している。   FIG. 250 is an external perspective view of the pachinko machine 5100 viewed from the back side. The upper part of the back surface of the pachinko machine 5100 has an opening that opens upward, a ball tank 5152 for temporarily storing the ball, and a ball tank 5152 that is positioned below the ball tank 5152 and formed at the bottom of the ball tank 5152. A tank rail 5153 for guiding a ball that has passed through the communicating hole and dropped to the dispensing device 5154 located on the right side of the back surface is provided.

払出装置5154は、筒状の部材からなり、その内部には、スプロケット5157と払出センサ5158とを備えている。スプロケット5157は、モータによって回転可能に構成されており、タンクレール5153を通過して払出装置5154内に落下した球を一時的に滞留させると共に、モータを駆動して所定角度だけ回転することにより、一時的に滞留した球を払出装置5154の下方へ1個ずつ送り出すように構成している。   The payout device 5154 is formed of a cylindrical member, and includes a sprocket 5157 and a payout sensor 5158 inside thereof. The sprocket 5157 is configured to be rotatable by a motor, and temporarily retains a sphere that has passed through the tank rail 5153 and dropped into the dispensing device 5154, and is rotated by a predetermined angle by driving the motor. The balls that have stayed temporarily are sent one by one downward to the payout device 5154.

払出センサ5158は、スプロケット5157が送り出した球の通過を検知するためのセンサであり、球が通過しているときにオンの信号を出力し、球が通過していないときはオフの信号を出力する。なお、この払出センサ5158を通過した球は、図示しない球レールを通過してパチンコ機5100の表側に配設した貯留皿5144に到達するように構成しており、パチンコ機5100は、この構成により遊技者に対して球の払い出しを行う。   The payout sensor 5158 is a sensor for detecting the passage of the sphere sent out by the sprocket 5157, and outputs an ON signal when the sphere is passing, and outputs an OFF signal when the sphere is not passing. To do. Note that the sphere that has passed through the payout sensor 5158 passes through a ball rail (not shown) and reaches a storage tray 5144 disposed on the front side of the pachinko machine 5100. The pachinko machine 5100 has this configuration. Pay out the ball to the player.

払出装置5154の左側には、後述する主制御部5300を構成する主基板5161と、後述する副制御部5400を構成するサブ基板5164とを配設している。また、これら主基板5161やサブ基板5164の下方には、後述する発射制御部5600を構成する発射基板5166と、後述する電源管理部5650を構成する電源基板5162と、後述する払出制御部5550を構成する払出基板5165と、この払出基板5165に接続したCRインターフェース部5163とを配設している。
<図柄の種類>
On the left side of the dispensing device 5154, a main board 5161 constituting a main control unit 5300 described later and a sub board 5164 constituting a sub control unit 5400 described later are arranged. Also, below the main board 5161 and the sub board 5164, a launch board 5166 that constitutes a launch control section 5600 described later, a power supply board 5162 that constitutes a power management section 5650 described later, and a payout control section 5550 described later. A payout board 5165 to be configured and a CR interface unit 5163 connected to the payout board 5165 are provided.
<Type of design>

次に、図251(a)〜(c)を用いて、パチンコ機5100の特図表示装置5114、装飾図柄表示装置5110、普図表示装置5112が停止表示する特図および普図の種類について説明する。   Next, with reference to FIGS. 251 (a) to 251 (c), explanation will be given on the special figure display device 5114, the decorative symbol display device 5110, and the special figure display device 5112 of the pachinko machine 5100 which are stopped and displayed, and the types of the common figure. To do.

同図(a)は特図の停止表示態様の一例を示したものである。本実施例の特図の停止表示態様には、大当り図柄である「特図1」と、特別大当り図柄である「特図2」と、外れ図柄である「特図3」の3種類がある。第1特図始動口5126または第2特図始動口5128に球が入賞したことを所定の球検出センサが検出したことを条件として特図変動遊技を開始した場合には、特図表示装置5114は、7個のセグメントの全点灯と、中央の1個のセグメントの点灯を繰り返す「特図の変動表示」を行う。そして、特図の変動開始前に決定した変動時間が経過すると、特図変動遊技の当選を報知する場合には「特図1」または「特図2」を停止表示し、特図変動遊技の外れを報知する場合には「特図3」を停止表示する。なお、図中の白抜きの部分が消灯するセグメントの場所を示し、黒塗りの部分が点灯するセグメントの場所を示している。   FIG. 4A shows an example of a special display stop display mode. There are three types of special display stop display modes of the present embodiment: “Special Figure 1” which is a jackpot symbol, “Special Figure 2” which is a special jackpot symbol, and “Special Figure 3” which is a missed symbol. . When the special figure variable game is started on the condition that a predetermined ball detection sensor detects that a ball has won the first special figure start port 5126 or the second special figure start port 5128, the special figure display device 5114 Performs “variable display of special figure” by repeating all lighting of seven segments and lighting of one central segment. Then, when the variation time determined before the start of the special figure elapses, in order to notify the winning of the special figure variable game, “Special Figure 1” or “Special Figure 2” is stopped and displayed. In the case of notifying the disconnection, “Special Figure 3” is stopped and displayed. In addition, the white part in a figure shows the location of the segment which turns off, and the black part shows the location of the segment which lights up.

同図(b)は装飾図柄の一例を示したものである。本実施例の装飾図柄には、「装飾1」〜「装飾10」の10種類がある。第1特図始動口5126または第2特図始動口5128に球が入賞したことを所定の球検出センサが検出したことを条件にして、装飾図柄表示装置5110の左図柄表示領域5110a、中図柄表示領域5110b、右図柄表示領域5110cの各図柄表示領域に、「装飾1」→「装飾2」→「装飾3」→・・・・「装飾9」→「装飾10」→「装飾1」→・・・の順番で表示を切り替える「装飾図柄の変動表示」を行う。そして、大当りを報知する場合には、図柄表示領域5110a〜5110cに大当りに対応する図柄組合せ(本実施例では、同一の数字の装飾図柄の組合せ(例えば、「装飾2−装飾2−装飾2」))を停止表示し、特別大当りを報知する場合には、特別大当りに対応する図柄組合せ(本実施例では、同一の奇数番号数字の装飾図柄の組合せ(例えば、「装飾1−装飾1−装飾1」))を停止表示する。なお、大当りに対応する図柄の組合せを停止表示した場合には、大当り遊技または特別大当り遊技を開始し、特別大当りに対応する図柄の組合せを停止表示した場合には、特別大当り遊技を開始する。また、外れを報知する場合には、図柄表示領域5110a〜5110cに大当りに対応する図柄組合せ以外の図柄組合せを停止表示した後で、保留している装飾図柄の変動表示があれば、その変動表示を開始する。   FIG. 2B shows an example of a decorative design. There are 10 types of decoration patterns of the present embodiment: “Decoration 1” to “Decoration 10”. The left symbol display area 5110a of the decorative symbol display device 5110, the middle symbol, on condition that a predetermined ball detection sensor has detected that a ball has won the first special symbol start port 5126 or the second special diagram start port 5128 In each of the symbol display areas of the display area 5110b and the right symbol display area 5110c, “decoration 1” → “decoration 2” → “decoration 3” →... “Decoration 9” → “decoration 10” → “decoration 1” → Perform “decorative symbol variation display” to switch the display in the order. When notifying the jackpot, a symbol combination corresponding to the jackpot in the symbol display areas 5110a to 5110c (in this embodiment, a combination of decorative symbols having the same number (for example, “decoration 2—decoration 2—decoration 2”). )) Is stopped and the special jackpot is notified, a combination of symbols corresponding to the special jackpot (in this embodiment, a combination of decorative symbols having the same odd number numbers (for example, “decoration 1-decoration 1-decoration”). 1 ”)) is stopped and displayed. When the symbol combination corresponding to the big hit is stopped and displayed, the big hit game or the special big hit game is started, and when the symbol combination corresponding to the special big hit is stopped and displayed, the special big hit game is started. In the case of notifying a detachment, if there is a variation display of a decorative symbol that is on hold after the symbol combination other than the symbol combination corresponding to the big hit is stopped and displayed in the symbol display areas 5110a to 5110c, the variation display is performed. To start.

同図(c)は普図の停止表示態様の一例を示したものである。本実施例の普図の停止表示態様には、当り図柄である「普図1」と、外れ図柄である「普図2」の2種類がある。普図始動口5124を球が通過したことを所定の球検出センサが検出したことを条件として普図表示遊技を開始した場合には、普図表示装置5112は、7個のセグメントの全点灯と、中央の1個のセグメントの点灯を繰り返す「普図の変動表示」を行う。そして、普図変動遊技の当選を報知する場合には「普図1」を停止表示し、普図変動遊技の外れを報知する場合には「普図2」を停止表示する。
<制御部>
FIG. 2C shows an example of a normal stop display mode. In the present embodiment, there are two types of stoppage display modes of the normal figure, “general figure 1” which is a winning symbol and “general figure 2” which is a missed symbol. In the case where a general-purpose display game is started on the condition that a predetermined ball detection sensor detects that a ball has passed through the general-purpose start opening 5124, the general-purpose display device 5112 displays that all seven segments are turned on. Then, the “variable display of the usual map” is performed by repeatedly turning on one central segment. Then, when notifying the winning of the common figure variable game, the “general figure 1” is stopped and displayed, and when notifying the usual figure variable game being lost, the “normal figure 2” is stopped and displayed.
<Control unit>

次に、図252を用いて、このパチンコ機5100の制御部の回路構成について詳細に説明する。なお、同図は制御部の回路ブロック図を示したものである。   Next, the circuit configuration of the control unit of the pachinko machine 5100 will be described in detail with reference to FIG. This figure shows a circuit block diagram of the control unit.

パチンコ機5100の制御部は、大別すると、遊技の中枢部分を制御する主制御部5300と、主制御部5300が送信するコマンド信号(以下、単に「コマンド」と呼ぶ)に応じて、主に演出の制御を行う副制御部5400と、主制御部5300が送信するコマンドに応じて、主に遊技球の払い出しに関する制御を行う払出制御部5550と、遊技球の発射制御を行う発射制御部5600と、パチンコ機5100に供給される電源を制御する電源管理部5650によって構成している。
<主制御部>
The control unit of the pachinko machine 5100 can be broadly classified according to a main control unit 5300 that controls the central part of the game and a command signal (hereinafter simply referred to as “command”) transmitted by the main control unit 5300. A sub-control unit 5400 that controls the production, a payout control unit 5550 that mainly performs control related to payout of the game ball in response to a command transmitted by the main control unit 5300, and a launch control unit 5600 that controls the launch of the game ball. And a power management unit 5650 for controlling power supplied to the pachinko machine 5100.
<Main control unit>

まず、パチンコ機5100の主制御部5300について説明する。主制御部5300は、主制御部5300の全体を制御する基本回路5302を備えており、この基本回路5302には、CPU5304と、制御プログラムや各種データを記憶するためのROM5306と、一時的にデータを記憶するためのRAM5308と、各種デバイスの入出力を制御するためのI/O5310と、時間や回数等を計測するためのカウンタタイマ5312と、WDT(ウォッチドッグタイマ)5313を搭載している。なお、ROM5306やRAM5308については他の記憶手段を用いてもよく、この点は後述する副制御部5400についても同様である。この基本回路5302のCPU5304は、水晶発振器5314bが出力する外部クロックをクロック回路5340(図253参照。詳細は後述)で所定の分周比(この例では、1/2)で分周したシステムクロックSCLKを、基本クロックとして入力して動作する。   First, the main control unit 5300 of the pachinko machine 5100 will be described. The main control unit 5300 includes a basic circuit 5302 that controls the entire main control unit 5300. The basic circuit 5302 includes a CPU 5304, a ROM 5306 for storing control programs and various data, and data temporarily. RAM 5308 for storing data, I / O 5310 for controlling input / output of various devices, a counter timer 5312 for measuring time and the number of times, and a WDT (watchdog timer) 5313 are mounted. Note that other storage means may be used for the ROM 5306 and the RAM 5308, and this is the same for the sub-control unit 5400 described later. The CPU 5304 of the basic circuit 5302 is a system clock obtained by dividing the external clock output from the crystal oscillator 5314b by a clock circuit 5340 (see FIG. 253, details will be described later) at a predetermined frequency division ratio (1/2 in this example). It operates by inputting SCLK as a basic clock.

また、基本回路5302には、水晶発振器5314aが出力する乱数用クロックRCKを受信する度に0〜65535の範囲で数値を変動させるハードウェア乱数カウンタとして使用しているカウンタ回路(乱数回路)5316を搭載している(詳細は後述する)。   Further, the basic circuit 5302 includes a counter circuit (random number circuit) 5316 used as a hardware random number counter that changes a numerical value in a range of 0 to 65535 every time the random number clock RCK output from the crystal oscillator 5314a is received. It is installed (details will be described later).

また、基本回路5302には、各始動口、入賞口の入り口および可変入賞口の内部に設けた球検出センサを含む各種センサ5318が出力する信号を受信し、増幅結果や基準電圧との比較結果を基本回路5302に出力するためのセンサ回路5320と、特図表示装置5114の表示制御を行うための表示回路5322と、普図表示装置5112の表示制御を行うための表示回路5324と、各種状態表示部5326(普図保留ランプ5116、特図保留ランプ5118、高確中ランプ5118等)の表示制御を行うための表示回路5328と、第2特図始動口5128や可変入賞口5130等を開閉駆動する各種ソレノイド5330を制御するためのソレノイド回路5332と、電源が投入されるとCPU5304に対して起動信号(リセット信号)を出力する起動信号出力回路(リセット信号出力回路)5338を接続している。   The basic circuit 5302 receives signals output from various sensors 5318 including a ball detection sensor provided inside each start opening, winning opening, and variable winning opening, and results of amplification and comparison with a reference voltage. Sensor circuit 5320 for outputting to the basic circuit 5302, a display circuit 5322 for performing display control of the special figure display device 5114, a display circuit 5324 for performing display control of the general-purpose display device 5112, and various states A display circuit 5328 for performing display control of a display unit 5326 (a normal figure holding lamp 5116, a special figure holding lamp 5118, a high accuracy medium lamp 5118, etc.), a second special figure starting port 5128, a variable winning port 5130, etc. are opened and closed. A solenoid circuit 5332 for controlling various solenoids 5330 to be driven and a start signal (reset) to the CPU 5304 when the power is turned on. Connecting the start signal output circuit (reset signal output circuit) 5338 for outputting the door signal).

なお、第1特図始動口5126に球が入賞したことを球検出センサ5318が検出した場合には、センサ回路5320は球を検出したことを示す信号をカウンタ回路5316に出力する。この信号を受信したカウンタ回路5316は、第1特図始動口5126に対応するカウンタのそのタイミングにおける値をラッチし、ラッチした値を、第1特図始動口5126に対応する内蔵のカウンタ値記憶用レジスタに記憶する。また、カウンタ回路5316は、第2特図始動口5128に球が入賞したことを示す信号を受信した場合も同様に、第2特図始動口5128に対応するカウンタのそのタイミングにおける値をラッチし、ラッチした値を、第2特図始動口5128に対応する内蔵のカウンタ値記憶用レジスタに記憶する。また、カウンタ回路5316は、普図始動口5124に球が入賞したことを示す信号を受信した場合も同様に、普図始動口5124に対応するカウンタのそのタイミングにおける値をラッチし、ラッチした値を、普図始動口5124に対応する内蔵のカウンタ値記憶用レジスタに記憶する。   When the ball detection sensor 5318 detects that a ball has won the first special figure starting port 5126, the sensor circuit 5320 outputs a signal indicating that the ball has been detected to the counter circuit 5316. Upon receiving this signal, the counter circuit 5316 latches the value of the counter corresponding to the first special figure starting port 5126 at that timing, and stores the latched value in the built-in counter value corresponding to the first special figure starting port 5126. Store in the register. Similarly, when the counter circuit 5316 receives a signal indicating that the second special figure starting port 5128 has won a ball, the counter circuit 5316 latches the value of the counter corresponding to the second special figure starting port 5128 at that timing. The latched value is stored in a built-in counter value storage register corresponding to the second special figure starting port 5128. Similarly, when the counter circuit 5316 receives a signal indicating that a ball has won a prize at the general start port 5124, the counter circuit 5316 latches the value at the timing of the counter corresponding to the general start port 5124, and the latched value. Is stored in a built-in counter value storage register corresponding to the normal start port 5124.

さらに、基本回路5302には、情報出力回路5334を接続しており、主制御部5300は、この情報出力回路5334を介して、外部のホールコンピュータ(図示省略)等が備える情報入力回路5652にパチンコ機5100の遊技情報(例えば、遊技状態)を出力する。   Further, an information output circuit 5334 is connected to the basic circuit 5302, and the main control unit 5300 pachinkos to an information input circuit 5562 provided in an external hall computer (not shown) or the like via the information output circuit 5334. The game information (for example, game state) of the machine 5100 is output.

また、主制御部5300は、副制御部5400にコマンドを送信するための出力インタフェースと、払出制御部5550にコマンドを送信するための出力インタフェースをそれぞれ備えており、この構成により、副制御部5400および払出制御部5550との通信を可能としている。なお、主制御部5300と副制御部5400および払出制御部550との情報通信は一方向の通信であり、主制御部5300は副制御部5400および払出制御部5550にコマンド等の信号を送信できるように構成しているが、副制御部5400および払出制御部5550からは主制御部5300にコマンド等の信号を送信できないように構成している。
<副制御部>
Further, the main control unit 5300 includes an output interface for transmitting a command to the sub control unit 5400 and an output interface for transmitting a command to the payout control unit 5550. With this configuration, the sub control unit 5400 is provided. Communication with the payout control unit 5550 is possible. Information communication between the main control unit 5300, the sub control unit 5400, and the payout control unit 550 is one-way communication, and the main control unit 5300 can transmit signals such as commands to the sub control unit 5400 and the payout control unit 5550. However, the sub-control unit 5400 and the payout control unit 5550 are configured such that signals such as commands cannot be transmitted to the main control unit 5300.
<Sub control unit>

次に、パチンコ機5100の副制御部5400について説明する。副制御部5400は、主に主制御部5300が送信したコマンド等に基づいて副制御部5400の全体を制御する基本回路5402を備えており、この基本回路5402には、CPU5404と、制御プログラムや各種データを記憶するためのROM5406と、一時的にデータを記憶するためのRAM5408と、各種デバイスの入出力を制御するためのI/O5410と、時間や回数等を計測するためのカウンタタイマ5412を搭載している。この基本回路5402のCPU5404は、水晶発振器5414が出力する所定周期のクロック信号をシステムクロックとして入力して動作する。   Next, the sub control unit 5400 of the pachinko machine 5100 will be described. The sub-control unit 5400 includes a basic circuit 5402 that controls the entire sub-control unit 5400 mainly based on commands transmitted from the main control unit 5300. The basic circuit 5402 includes a CPU 5404, a control program, ROM 5406 for storing various data, RAM 5408 for temporarily storing data, I / O 5410 for controlling input / output of various devices, and counter timer 5412 for measuring time and frequency It is installed. The CPU 5404 of the basic circuit 5402 operates by inputting a clock signal of a predetermined period output from the crystal oscillator 5414 as a system clock.

また、基本回路5402には、スピーカ5416(およびアンプ)の制御を行うための音源IC5418と、各種ランプ5420の制御を行うための表示回路5422と、演出装置5200の演出用可動体等を駆動する駆動装置であるソレノイドまたはモータ等が含まれる各種演出用駆動装置5424の制御を行うための演出用駆動装置制御回路5426と、装飾図柄表示装置(液晶表示装置)5110および遮蔽手段5250の制御を行うための副制御部5500と、チャンスボタン5146の押下を検出して信号を出力するチャンスボタン検出回路5380を接続している。   Further, the basic circuit 5402 drives a sound source IC 5418 for controlling the speaker 5416 (and an amplifier), a display circuit 5422 for controlling various lamps 5420, and a movable body for rendering of the rendering device 5200. An effect driving device control circuit 5426 for controlling various effect driving devices 5424 including a solenoid or a motor as a driving device, and a decorative symbol display device (liquid crystal display device) 5110 and a shielding means 5250 are controlled. The sub-control unit 5500 is connected to a chance button detection circuit 5380 that detects the pressing of the chance button 5146 and outputs a signal.

<払出制御部、発射制御部、電源管理部>   <Discharge control unit, launch control unit, power supply management unit>

次に、パチンコ機5100の払出制御部5550、発射制御部5600、電源管理部5650について説明する。払出制御部5550は、主に主制御部5300が送信したコマンド等の信号に基づいて払出装置5552を制御すると共に、払出センサ5554が出力する制御信号に基づいて賞球または貸球の払い出しが完了したか否かを検出すると共に、インタフェース部5556を介して、パチンコ機5100とは別体で設けられたカードユニット5654との通信を行う。   Next, the payout control unit 5550, the launch control unit 5600, and the power management unit 5650 of the pachinko machine 5100 will be described. The payout control unit 5550 controls the payout device 5552 mainly based on a signal such as a command transmitted from the main control unit 5300, and the payout of the winning ball or the rental ball is completed based on the control signal output from the payout sensor 5554. It is detected whether or not the card unit 5654 is provided separately from the pachinko machine 5100 through the interface unit 5556.

発射制御部5600は、払出制御部5550が出力する、発射許可または停止を指示する制御信号や、操作ハンドル5148内に設けた発射強度出力回路が出力する、遊技者による発射ハンドル5148の操作量に応じた発射強度を指示する制御信号に基づいて、発射杆5138および発射槌5140を駆動する発射モータ5602の制御や、貯留皿5144から発射レール5142に球を供給する球送り装置5604の制御を行う。   The launch control unit 5600 outputs the control signal output from the payout control unit 5550 to permit or stop the launch, and the operation amount of the launch handle 5148 by the player output from the launch intensity output circuit provided in the operation handle 5148. Based on the control signal instructing the corresponding launch intensity, the launch motor 5602 that drives the launcher 5138 and the launcher 5140 is controlled, and the ball feeder 5604 that supplies the balls from the storage tray 5144 to the launch rail 5142 is controlled. .

電源管理部5650は、パチンコ機5100に外部から供給される交流電源を直流化し、所定の電圧に変換して主制御部5300、副制御部5400等の各制御部や払出装置5552等の各装置に供給する。さらに、電源管理部5650は、外部からの電源が断たれた後も所定の部品(例えば主制御部5300のRAM5308等)に所定の期間(例えば10日間)電源を供給するための蓄電回路(例えばコンデンサ)を備えている。
<主制御部の基本回路>
The power management unit 5650 converts the AC power supplied from the outside to the pachinko machine 5100 into a direct current, converts it to a predetermined voltage, and controls each control unit such as the main control unit 5300 and the sub control unit 5400, and each device such as the payout device 5552. To supply. Further, the power management unit 5650 is a power storage circuit (for example, a power supply circuit for supplying power to a predetermined part (for example, the RAM 5308 of the main control unit 5300) for a predetermined period (for example, 10 days) even after the external power supply is cut off. Capacitor).
<Basic circuit of main control unit>

次に、図253を用いて、主制御部5300の基本回路5302について詳細に説明する。なお、同図は基本回路の内部構成図である。   Next, the basic circuit 5302 of the main control unit 5300 will be described in detail with reference to FIG. This figure shows the internal configuration of the basic circuit.

基本回路5302は、上述のCPU5304、ROM(内蔵ROM)5306、RAM(内蔵RAM)5308、カウンタタイマ5312(タイマ回路5312a、カウンタ回路5312b)、カウンタ回路(乱数回路)5316、I/O5310(外部バス制御回路5310a、WDT5313内蔵のリセット制御回路5310b、パラレル入力ポート5310c、アドレスデコード回路5310d)、に加えて、クロック回路5340などを備える。   The basic circuit 5302 includes the above-described CPU 5304, ROM (built-in ROM) 5306, RAM (built-in RAM) 5308, counter timer 5312 (timer circuit 5312a, counter circuit 5312b), counter circuit (random number circuit) 5316, I / O 5310 (external bus). In addition to the control circuit 5310a, the reset control circuit 5310b built in the WDT 5313, the parallel input port 5310c, and the address decoding circuit 5310d), a clock circuit 5340 and the like are provided.

クロック回路5340は、上述の水晶発振器5314b(以下、システム用水晶発振器5314bと称する場合がある)からEX端子を介して入力される外部クロックEX(この例では、24MHzのクロック)を所定の分周比(この例では、1/2)で分周し、分周後のシステムクロックSCLK(この例では、12MHzのクロック)をCPUコアや内部の各回路に供給する回路である。乱数回路5316は、詳細は後述するが、上述の水晶発振器5314a(以下、乱数用水晶発振器5314aと称する場合がある)からRCK端子を介して入力される乱数用クロックRCK(この例では、10MHzのクロック)に基づいてカウント値のカウントを行って乱数値を発生させるための回路である。なお、本実施例では、乱数用クロックRCKの周波数を、システムクロックSCLKの周波数(この例では、12MHz)未満であって、後述する主制御部タイマ割り込み処理の周期としてカウンタ・タイマ5312に設定する周期(この例では2ms)以上の周波数に設定している。   The clock circuit 5340 divides the external clock EX (24 MHz clock in this example) input from the above-described crystal oscillator 5314b (hereinafter sometimes referred to as the system crystal oscillator 5314b) via the EX terminal by a predetermined frequency division. This circuit divides the signal by a ratio (1/2 in this example) and supplies the divided system clock SCLK (12 MHz clock in this example) to the CPU core and internal circuits. The random number circuit 5316, which will be described in detail later, is a random number clock RCK (in this example, 10 MHz) that is input via the RCK terminal from the above-described crystal oscillator 5314a (hereinafter sometimes referred to as a random number crystal oscillator 5314a). This is a circuit for generating a random value by counting a count value based on a clock. In the present embodiment, the frequency of the random number clock RCK is less than the frequency of the system clock SCLK (in this example, 12 MHz), and is set in the counter / timer 5312 as a period of main control unit timer interrupt processing to be described later. The frequency is set to a period (2 ms in this example) or more.

図254は、基本回路5302に接続される乱数用水晶発振器5314aとシステム用水晶発振器5314bの配線パターンの一例を示した回路ブロック図である。   FIG. 254 is a circuit block diagram illustrating an example of a wiring pattern of the random number crystal oscillator 5314a and the system crystal oscillator 5314b connected to the basic circuit 5302.

本実施例では、基本回路5302とシステム用水晶発振器5314bを結ぶ信号線Lsの長さを、基本回路5302と乱数用水晶発振器5314aを結ぶ信号線Lrの長さよりも短く設定している(Lr>Ls)。このような構成により、システム用水晶発振器5314bを基本回路5302の近傍に配置することができ、且つ、基本回路5302とシステム用水晶発振器5314bを結ぶ信号線Lsの長さを短くすることができるため、システム用水晶発振器5314bから出力される外部クロックEXの信号を、安定して基本回路5302のクロック回路5340に供給することができるとともに、この外部クロックEXの信号に基づいて生成されるシステムクロックSCLKの信号も、安定してCPUコアや内部の各回路に供給することができる。   In this embodiment, the length of the signal line Ls connecting the basic circuit 5302 and the system crystal oscillator 5314b is set shorter than the length of the signal line Lr connecting the basic circuit 5302 and the random number crystal oscillator 5314a (Lr>). Ls). With this configuration, the system crystal oscillator 5314b can be disposed in the vicinity of the basic circuit 5302, and the length of the signal line Ls connecting the basic circuit 5302 and the system crystal oscillator 5314b can be shortened. The external clock EX signal output from the system crystal oscillator 5314b can be stably supplied to the clock circuit 5340 of the basic circuit 5302, and the system clock SCLK generated based on the external clock EX signal. These signals can also be stably supplied to the CPU core and internal circuits.

また、クロック信号の供給源と供給先を結ぶ信号線の長さは、クロック信号に外乱が加わらないようになるべく短く設定するのが一般的であるが、基本回路5302と乱数用水晶発振器5314aを結ぶ信号線Lrの長さを敢えて長めに設定し、信号線Lrを通る乱数用クロックRCKの信号が外乱の影響を受けやすいように構成することによって、乱数用クロックRCKの信号に基づいてカウント値のカウントを行う乱数回路5316のカウント値の更新タイミングにバラツキを与え、乱数回路5316が生成する乱数値のランダム性をさらに高めることができる。   In general, the length of the signal line connecting the supply source and the supply destination of the clock signal is set as short as possible so that no disturbance is applied to the clock signal. However, the basic circuit 5302 and the crystal oscillator for random number 5314a are provided. The length of the signal line Lr to be connected is set to be long and the signal of the random number clock RCK passing through the signal line Lr is configured to be easily affected by the disturbance, so that the count value is based on the signal of the random number clock RCK. The random number circuit 5316 that counts the random number circuit 5316 can vary in update timing, and the randomness of the random number value generated by the random number circuit 5316 can be further enhanced.

さらに、基本回路5302とシステム用水晶発振器5314bを結ぶ信号線Lsの長さと、基本回路5302と乱数用水晶発振器5314aを結ぶ信号線Lrの長さを異ならせることにより、基本回路5302近傍の部品の配置の自由度を高めることができる。
<乱数回路>
Further, by making the length of the signal line Ls connecting the basic circuit 5302 and the system crystal oscillator 5314b different from the length of the signal line Lr connecting the basic circuit 5302 and the random number crystal oscillator 5314a, the components in the vicinity of the basic circuit 5302 can be obtained. The degree of freedom of arrangement can be increased.
<Random number circuit>

次に、図255および図256を用いて、基本回路5302が備える乱数回路(カウンタ回路)5316について詳細に説明する。なお、図255は乱数回路の内部構成図であり、図256は乱数回路が備える周波数監視回路の内部構成図である。   Next, the random number circuit (counter circuit) 5316 included in the basic circuit 5302 will be described in detail with reference to FIGS. 255 and 256. 255 is an internal configuration diagram of the random number circuit, and FIG. 256 is an internal configuration diagram of the frequency monitoring circuit included in the random number circuit.

乱数回路5316は、乱数回路CH1〜CH4の4つの乱数回路を備える。なお、乱数回路CH2〜4の内部構成は、乱数回路CH1と同一であるため、図示は省略している。   The random number circuit 5316 includes four random number circuits, which are random number circuits CH1 to CH4. Since the internal configuration of the random number circuits CH2 to CH4 is the same as that of the random number circuit CH1, the illustration is omitted.

乱数回路CH1〜CH4は、乱数更新回路5316gに取り込まれた乱数値を格納するための乱数レジスタ5316bと、乱数レジスタ5316bに乱数値が取り込まれたことを示すための乱数ラッチフラグレジスタ5316cと、乱数割込みを制御するための乱数割込み制御レジスタ5316dと、乱数更新回路5316gにおいて乱数値が正常に更新されたかどうかを更新毎に監視し、更新に異常があった場合に乱数値異常信号を出力する乱数監視回路5316eと、この乱数監視回路5316eから乱数値異常信号が入力された場合に乱数値異常信号状態ビットを1にセットする内部情報レジスタ5316fと、を有して構成されている。なお、乱数監視回路5316eは、乱数更新回路5316gに内蔵してもよいし、乱数回路CH1〜CH4で共通に設けてもよい(共通に設ける場合には、CH1〜CH4が識別できるようにフラグを設けてもよいし、フラグを共通に設けてもよい)。   The random number circuits CH1 to CH4 include a random number register 5316b for storing the random number value fetched by the random number update circuit 5316g, a random number latch flag register 5316c for indicating that the random number value is fetched by the random number register 5316b, Random number interrupt control register 5316d for controlling an interrupt and random number update circuit 5316g monitor whether or not the random number value is normally updated, and outputs a random value abnormal signal when the update is abnormal The monitoring circuit 5316e and an internal information register 5316f that sets a random value abnormal signal state bit to 1 when a random value abnormal signal is input from the random number monitoring circuit 5316e are configured. Note that the random number monitoring circuit 5316e may be incorporated in the random number update circuit 5316g, or may be provided in common in the random number circuits CH1 to CH4 (when provided in common, a flag is set so that CH1 to CH4 can be identified). It may be provided, or a flag may be provided in common).

この乱数回路5316は、各チャネル毎に異なった乱数列を持つ2種類の16ビット乱数値を発生させることが可能であるとともに、ROM5306の所定領域に設けた乱数使用設定、乱数初期設定、乱数取込設定の内容を変更することによって、乱数回路CH1〜CH4の使用/未使用、初期値・乱数列変更方法の選択、乱数値の更新周期、乱数値の取り込み方法、割込条件などを変更することが可能である。本実施例では、P0端子は第1特図始動口5126に入球があった場合に出力される特図1始動口入球検出信号、P1端子は第2特図始動口5128に入球があった場合に出力される特図2始動口入球検出信号、P2端子は普図始動口5124に入球があった場合に出力される普図始動口入球検出信号がそれぞれ入力されるようにセンサ回路5320と接続されているが、これに限定されない。   The random number circuit 5316 can generate two types of 16-bit random numbers having different random number sequences for each channel, and use random number setting, random number initial setting, random number collection provided in a predetermined area of the ROM 5306. By changing the contents of the setting, the use / non-use of the random number circuits CH1 to CH4, the selection of the initial value / random number sequence changing method, the update period of the random value, the method of acquiring the random value, the interrupt condition, etc. are changed. It is possible. In this embodiment, the P0 terminal is a special figure 1 start opening detection signal that is output when a ball enters the first special figure start opening 5126, and the P1 terminal has a ball entering the second special figure start opening 5128. The special figure 2 entrance opening detection signal that is output when there is, and the P2 terminal receives the normal start entrance detection signal that is output when there is an entrance to the general start opening 5124. Is connected to the sensor circuit 5320, but is not limited thereto.

また、乱数回路CH1〜CH4は、周波数監視回路5316aを備えている。この周波数監視回路5316aは、図256に拡大して示すように、上述のクロック回路5340から出力されるシステムクロックSCLKが入力される平滑回路と、上述の水晶発振器5314aからRCK端子を介して入力される乱数用クロックRCKが入力される平滑回路と、平滑後のシステムクロックSCLKの周波数と乱数用クロックRCKの周波数を比較し、RCKの周波数がシステムクロックSCLKの周波数以下(RCK=<SCLK)である場合に、乱数用クロックRCKの周波数が異常になったと判定し内部情報レジスタのクロック信号状態ビットを1にセットする比較器と、を備えている。   The random number circuits CH1 to CH4 include a frequency monitoring circuit 5316a. As shown in an enlarged view in FIG. 256, the frequency monitoring circuit 5316a receives a smoothing circuit to which the system clock SCLK output from the clock circuit 5340 is input, and is input from the crystal oscillator 5314a through the RCK terminal. The smoothing circuit to which the random number clock RCK is input is compared with the frequency of the smoothed system clock SCLK and the frequency of the random number clock RCK. The frequency of RCK is equal to or lower than the frequency of the system clock SCLK (RCK = <SCLK) A comparator that determines that the frequency of the random number clock RCK has become abnormal and sets the clock signal status bit of the internal information register to 1.

主制御部5300のCPU5304は、所定のタイミングで、内部情報レジスタの乱数値異常信号状態ビットとクロック信号状態ビットを参照する。そして、乱数値異常信号状態ビットが1にセットされている場合(乱数更新回路5316gにおいて乱数値の更新に異常があった場合)には、乱数更新回路5316gに何らかの異常が発生したと判定し、乱数値異常信号状態ビットが0にセットされている場合には、乱数更新回路5316gが正常であると判定する。   The CPU 5304 of the main control unit 5300 refers to the random value abnormal signal status bit and the clock signal status bit of the internal information register at a predetermined timing. When the random value abnormal signal state bit is set to 1 (when there is an abnormality in updating the random value in the random number update circuit 5316g), it is determined that some abnormality has occurred in the random number update circuit 5316g, When the random value abnormal signal state bit is set to 0, it is determined that the random number update circuit 5316g is normal.

また、内部情報レジスタのクロック信号状態ビットが1にセットされている場合(乱数用クロックRCKの周波数がシステムクロックSCLKの周波数以下(RCK=<SCLK)である場合)には、乱数用クロックRCKに何らかの異常(例えば、乱数回路5316と水晶発振器5314aとを結ぶ配線パターンの断線)が発生したと判定し、内部情報レジスタのクロック信号状態ビットが0にセットされている場合(乱数用クロックRCKの周波数がシステムクロックSCLKの周波数より大きい(RCK>SCLK)場合)には、乱数用クロックRCKが正常であると判定する。   Further, when the clock signal status bit of the internal information register is set to 1 (when the frequency of the random number clock RCK is equal to or lower than the frequency of the system clock SCLK (RCK = <SCLK)), the random number clock RCK When it is determined that some abnormality (for example, disconnection of the wiring pattern connecting the random number circuit 5316 and the crystal oscillator 5314a) has occurred, and the clock signal status bit of the internal information register is set to 0 (the frequency of the random number clock RCK) Is larger than the frequency of the system clock SCLK (when RCK> SCLK), it is determined that the random number clock RCK is normal.

なお、本実施例では、乱数用クロックRCKの周波数がシステムクロックSCLKの周波数以下(RCK=<SCLK)である場合に乱数用クロックRCKの異常と判定しているが、本発明はこれに限定されず、例えば、異常と判定する閾値を複数種類設け、この複数種類の閾値の中から1つの閾値を選択可能に構成してもよい。また、システムクロックSCLKの周波数や、乱数用クロックRCKの周波数は、本実施例で示した数値に限定されるものではない。たとえば、所定の情報(たとえばROMに記憶された情報)に基づいて、RCK=<2×SCLK、RCK=<1/2×SCLKなど、異常の判定方式を設定できるようにしてもよい。なお、理想的には、12MHzのシステムクロックSCLKに対して、10MHzの乱数用クロックRCKが3MHz以下(システムクロックの1/4以下)の周波数になった場合に異常とすることが望ましい。
<主制御部メイン処理>
In this embodiment, when the frequency of the random number clock RCK is equal to or lower than the frequency of the system clock SCLK (RCK = <SCLK), it is determined that the random number clock RCK is abnormal. However, the present invention is not limited to this. Alternatively, for example, a plurality of types of threshold values for determining an abnormality may be provided, and one threshold value may be selected from the plurality of types of threshold values. Further, the frequency of the system clock SCLK and the frequency of the random number clock RCK are not limited to the numerical values shown in the present embodiment. For example, an abnormality determination method such as RCK = <2 × SCLK, RCK = <1/2 × SCLK, or the like may be set based on predetermined information (for example, information stored in the ROM). Ideally, it is desirable to make an abnormality when the 10 MHz random number clock RCK has a frequency of 3 MHz or less (1/4 or less of the system clock) with respect to the 12 MHz system clock SCLK.
<Main control unit main processing>

次に、図257を用いて、主制御部5300のCPU5304が実行する主制御部メイン処理について説明する。なお、同図は主制御部メイン処理の流れを示すフローチャートである。   Next, main control unit main processing executed by the CPU 5304 of the main control unit 5300 will be described with reference to FIG. This figure is a flowchart showing the flow of main processing of the main control unit.

上述したように、主制御部5300には、電源が投入されると起動信号(リセット信号)を出力する起動信号出力回路(リセット信号出力回路)5338を設けている。この起動信号を入力した基本回路5302のCPU5304は、リセット割り込みによりリセットスタートしてROM5306に予め記憶している制御プログラムに従って処理を実行する。   As described above, the main control unit 5300 is provided with the start signal output circuit (reset signal output circuit) 5338 that outputs the start signal (reset signal) when the power is turned on. The CPU 5304 of the basic circuit 5302 to which this activation signal has been input starts reset by a reset interrupt and executes processing according to a control program stored in advance in the ROM 5306.

ステップS6101では、初期設定1を行う。この初期設定1では、CPU5304のスタックポインタ(SP)へのスタック初期値の設定、割り込みマスクの設定、I/Oポート5310の初期設定、RAM5308に記憶する各種変数の初期設定、WDT5313への動作許可及び初期値の設定等を行う。なお、本実施例では、WDT5313に、初期値として32.8msに相当する数値を設定する。   In step S6101, initial setting 1 is performed. In this initial setting 1, the stack initial value is set in the stack pointer (SP) of the CPU 5304, the interrupt mask is set, the initial setting of the I / O port 5310, the initial setting of various variables stored in the RAM 5308, and the operation permission to the WDT 5313 is permitted. Set initial values. In the present embodiment, a numerical value corresponding to 32.8 ms is set in WDT 5313 as an initial value.

ステップS6102では、WDT5313のカウンタの値をクリアし、WDT5313による時間計測を再始動する。   In step S6102, the value of the WDT 5313 counter is cleared, and the time measurement by the WDT 5313 is restarted.

ステップS6103では、低電圧信号がオンであるか否か、すなわち、電圧監視回路5336が、電源管理部5650から主制御部5300に供給している電源の電圧値が所定の値(本実施例では9V)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(CPU5304が電源の遮断を検知した場合)にはステップS6102に戻り、低電圧信号がオフの場合(CPU5304が電源の遮断を検知していない場合)にはステップS6104に進む。   In step S6103, whether or not the low voltage signal is ON, that is, the voltage value of the power source that the voltage monitoring circuit 5336 supplies from the power source management unit 5650 to the main control unit 5300 is a predetermined value (in this embodiment). When the voltage is less than 9V), it is monitored whether or not a low voltage signal indicating that the voltage has decreased is output. If the low voltage signal is on (when the CPU 5304 has detected that the power has been cut off), the process returns to step S6102. If the low voltage signal is off (if the CPU 5304 has not detected that the power has been cut off), the step returns. The process proceeds to S6104.

ステップS6104では、初期設定2を行う。この初期設定2では、後述する主制御部タイマ割り込み処理を定期毎に実行するための周期を決める数値をカウンタ・タイマ5312に設定する処理、I/O5310の所定のポート(例えば試験用出力ポート、副制御部5400への出力ポート)からクリア信号を出力する処理、RAM5308への書き込みを許可する設定等を行う。   In step S6104, initial setting 2 is performed. In this initial setting 2, a process for setting a numerical value for determining a cycle for executing a main control unit timer interrupt process, which will be described later, in the counter timer 5312, a predetermined port of the I / O 5310 (for example, a test output port, Processing for outputting a clear signal from the output port to the sub control unit 5400, setting for permitting writing to the RAM 5308, and the like are performed.

ステップS6105では、電源の遮断前(電断前)の状態に復帰するか否かの判定を行い、電断前の状態に復帰しない場合(主制御部5300の基本回路5302を初期状態にする場合)にはステップS6107に進む。同様に電源ステータスの情報が「サスペンド(電断時処理が行われたことを示す情報)」以外の情報を示している場合にもステップS6108に進む。   In step S6105, it is determined whether or not to return to the state before power interruption (before power interruption), and the state before power interruption is not restored (when the basic circuit 5302 of the main controller 5300 is set to the initial state). ), The process proceeds to step S6107. Similarly, if the power status information indicates information other than “suspend (information indicating that power interruption processing has been performed)”, the process advances to step S6108.

具体的には、最初に、電源基板に設けた操作部を遊技店の店員などが操作した場合に送信されるRAMクリア信号がオン(操作があったことを示す)であるか否か、すなわちRAMクリアが必要であるか否かを判定し、RAMクリア信号がオンの場合(RAMクリアが必要な場合)には、基本回路5302を初期状態にすべくステップS6107に進む。一方、RAMクリア信号がオフの場合(RAMクリアが必要でない場合)は、RAM5308に設けた電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、この電源ステータスの情報がサスペンドを示す情報であるか否かを判定する。そして、電源ステータスの情報がサスペンドを示す情報でない場合には、基本回路5302を初期状態にすべくステップS6107に進み、電源ステータスの情報がサスペンドを示す情報である場合には、RAM5308の所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出し、算出したチェックサムの結果が特定の値(例えば0)であるか否か(チェックサムの結果が正常であるか否か)を判定する。そして、チェックサムの結果が特定の値(例えば0)の場合(チェックサムの結果が正常である場合)には電断前の状態に復帰すべくステップS6106に進み、チェックサムの結果が特定の値(例えば0)以外である場合(チェックサムの結果が異常である場合)には、パチンコ機5100を初期状態にすべくステップS6107に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS6107に進む。   Specifically, first, a RAM clear signal transmitted when a store clerk or the like of the game shop operates the operation unit provided on the power supply board is turned on (indicating that there is an operation), that is, It is determined whether or not the RAM clear is necessary. If the RAM clear signal is on (when the RAM clear is necessary), the process proceeds to step S6107 to set the basic circuit 5302 to an initial state. On the other hand, when the RAM clear signal is OFF (when the RAM clear is not necessary), the power status information stored in the power status storage area provided in the RAM 5308 is read, and whether the power status information is information indicating suspend. Determine whether or not. If the power status information is not information indicating suspend, the process advances to step S6107 to set the basic circuit 5302 to an initial state. If the power status information is information indicating suspend, a predetermined area of the RAM 5308 is displayed. A checksum is calculated by adding all the 1-byte data stored in (for example, all areas) to a 1-byte register whose initial value is 0, and the calculated checksum results in a specific value (for example, 0) (whether or not the checksum result is normal). If the checksum result is a specific value (eg, 0) (if the checksum result is normal), the process proceeds to step S6106 to return to the state before the power interruption, and the checksum result is a specific value. If the value is other than 0 (for example, 0) (if the checksum result is abnormal), the process advances to step S6107 to set the pachinko machine 5100 to an initial state. Similarly, if the power status information indicates information other than “suspend”, the process advances to step S 6107.

ステップS6106では、復電時処理を行う。この復電時処理では、電断時にRAM5308に設けられたスタックポインタ退避領域に記憶しておいたスタックポインタを読み出し、スタックポインタに再設定する。また、電断時にRAM5308に設けられたレジスタ退避領域に記憶しておいた各レジスタの値を読み出し、各レジスタに再設定した後、割り込み許可の設定を行う。以降、CPU5304が、再設定後のスタックポインタやレジスタに基づいて制御プログラムを実行する結果、パチンコ機5100は電源断時の状態に復帰する。すなわち、電断直前にタイマ割り込み処理(後述)に分岐する直前に行った(ステップS6108、ステップS6109内の所定の)命令の次の命令から処理を再開する。   In step S6106, power recovery processing is performed. In this power recovery process, the stack pointer stored in the stack pointer save area provided in the RAM 5308 at the time of power failure is read and reset to the stack pointer. In addition, the value of each register stored in the register save area provided in the RAM 5308 at the time of power interruption is read out and reset in each register, and then the interrupt permission is set. Thereafter, as a result of the CPU 5304 executing the control program based on the reset stack pointer and registers, the pachinko machine 5100 returns to the state when the power is turned off. That is, the processing is restarted from the instruction next to the instruction (predetermined in steps S6108 and S6109) performed immediately before branching to the timer interrupt processing (described later) immediately before the power interruption.

ステップS6107では、初期化処理を行う。この初期化処理では、割り込み禁止の設定、スタックポインタへのスタック初期値の設定、RAM5308の全ての記憶領域の初期化などを行う。   In step S6107, initialization processing is performed. In this initialization processing, interrupt prohibition setting, stack initial value setting to the stack pointer, initialization of all storage areas of the RAM 5308, and the like are performed.

ステップS6108では、割り込み禁止の設定を行った後、基本乱数更新処理を行う。この基本乱数更新処理では、普図タイマ乱数値、特図タイマ乱数値をそれぞれ生成するための2つの乱数カウンタを更新する。例えば、普図タイマ乱数値として取り得る数値範囲が0〜20とすると、RAM5308に設けた普図タイマ乱数値を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が21であれば0を元の乱数カウンタ記憶領域に記憶する。他の乱数カウンタもそれぞれ同様に更新する。また、この基本乱数更新処理の終了後に割り込み許可の設定を行ってステップS6109に進む。   In step S6108, after setting for prohibition of interruption, basic random number update processing is performed. In this basic random number update process, two random number counters for generating a normal figure timer random value and a special figure timer random value are updated. For example, if the range of values that can be taken as the normal timer random number value is 0 to 20, the value is acquired from the random number counter storage area for generating the normal timer random number value provided in the RAM 5308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 21, 0 is stored in the original random number counter storage area. The other random number counters are similarly updated. Further, after this basic random number update process is completed, interrupt permission is set, and the process advances to step S6109.

ステップS6109では、演出乱数更新処理を行う。この演出乱数更新処理では、主制御部5300で使用する演出用乱数値を生成するための乱数カウンタを更新する。   In step S6109, effect random number update processing is performed. In this effect random number update process, the random number counter for generating the effect random number used by the main control unit 5300 is updated.

主制御部5300は、所定の周期ごとに開始するタイマ割り込み処理を行っている間を除いて、ステップS6108およびS6109の処理を繰り返し実行する。
<主制御部タイマ割り込み処理>
The main control unit 5300 repeatedly executes the processes of steps S6108 and S6109 except during the timer interrupt process starting at predetermined intervals.
<Main controller timer interrupt processing>

次に、図258を用いて、主制御部5300のCPU5304が実行する主制御部タイマ割り込み処理について説明する。なお、同図は主制御部タイマ割り込み処理の流れを示すフローチャートである。   Next, the main control unit timer interrupt process executed by the CPU 5304 of the main control unit 5300 will be described with reference to FIG. This figure is a flowchart showing the flow of main controller timer interrupt processing.

主制御部5300は、所定の周期(本実施例では約2msに1回)でタイマ割り込み信号を発生するカウンタ・タイマ5312を備えており、このタイマ割り込み信号を契機として主制御部タイマ割り込み処理を所定の周期で開始する。   The main control unit 5300 includes a counter / timer 5312 that generates a timer interrupt signal at a predetermined cycle (about once every 2 ms in the present embodiment), and the main control unit timer interrupt processing is triggered by this timer interrupt signal. Start with a predetermined period.

ステップS6201では、タイマ割り込みスタート処理を行う。このタイマ割り込みスタート処理では、CPU5304の各レジスタの値をスタック領域に一時的に退避する処理などを行う。   In step S6201, timer interrupt start processing is performed. In the timer interrupt start process, a process of temporarily saving each register value of the CPU 5304 to the stack area is performed.

ステップS6202では、WDT5313のカウント値が初期設定値(本実施例では32.8ms)を超えてWDT割り込みが発生しないように(処理の異常を検出しないように)、WDTを定期的に(本実施例では、主制御部タイマ割り込みの周期である約2msに1回)リスタートを行う。   In step S6202, the count value of the WDT 5313 exceeds the initial setting value (32.8 ms in the present embodiment), so that a WDT interrupt is not generated (a process abnormality is not detected), and the WDT is periodically performed (this implementation is performed). In the example, the restart is performed once in about 2 ms which is the period of the main control unit timer interrupt.

ステップS6203では、入力ポート状態更新処理を行う。この入力ポート状態更新処理では、I/O5310の入力ポートを介して、上述のガラス枠5154が開放状態または閉鎖状態のいずれの状態であるかを検出するための開放センサ、上述の下皿5150が球で一杯になったか否かを検出するための下皿満タンセンサ、および複数の球検出センサを含む各種センサ5318の検出信号を入力して検出信号の有無を監視し、RAM5308に各種センサ5318ごとに区画して設けた信号状態記憶領域に記憶する。本実施例では、前々回のタイマ割り込み処理(約4ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM5308に各々の球検出センサごとに区画して設けた前回検出信号記憶領域から読み出し、この情報をRAM5308に各々の球検出センサごとに区画して設けた前々回検出信号記憶領域に記憶し、前回のタイマ割り込み処理(約2ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM5308に各々の球検出センサごとに区画して設けた今回検出信号記憶領域から読み出し、この情報を上述の前回検出信号記憶領域に記憶する。また、今回検出した各々の球検出センサの検出信号を、上述の今回検出信号記憶領域に記憶する。   In step S6203, input port state update processing is performed. In this input port state update process, an open sensor for detecting whether the above-mentioned glass frame 5154 is in an open state or a closed state via the input port of the I / O 5310, the above-described lower plate 5150 is provided. The detection signal of various sensors 5318 including a bottom plate full sensor for detecting whether or not the ball is full and a plurality of ball detection sensors are input to monitor the presence or absence of the detection signal. The signal state is stored in a signal state storage area. In this embodiment, information on the presence / absence of the detection signal of each sphere detection sensor detected in the timer interruption process of the last time (about 4 ms before) is stored in the RAM 5308 for each previous sphere detection sensor. This information is read from the area, and this information is stored in the RAM 5308 in the detection signal storage area provided in advance for each sphere detection sensor, and detected by the previous timer interrupt process (approximately 2 ms before). Information on the presence or absence of a signal is read from the current detection signal storage area provided in the RAM 5308 for each sphere detection sensor, and this information is stored in the previous detection signal storage area. Further, the detection signal of each sphere detection sensor detected this time is stored in the above-described current detection signal storage area.

ステップS6204およびステップS6205では、大当り種別用乱数更新処理および基本乱数更新処理を行う。これらの大当り種別用乱数更新処理および基本乱数更新処理では、次に主制御部5300で使用する大当り種別用乱数等を更新する。なお、更新の方法は上述のステップS6108およびS6109と同様である。   In step S6204 and step S6205, a jackpot type random number update process and a basic random number update process are performed. In these jackpot type random number update processing and basic random number update processing, the jackpot type random number used in the main control unit 5300 is updated next. The updating method is the same as that in steps S6108 and S6109 described above.

ステップS6206では、演出乱数更新処理を行う。この演出乱数更新処理では、主制御部5300で使用する演出用乱数値を生成するための乱数カウンタを更新する。   In step S6206, effect random number update processing is performed. In this effect random number update process, the random number counter for generating the effect random number used by the main control unit 5300 is updated.

ステップS6207では、タイマ更新処理を行う。このタイマ更新処理では、普通図柄表示装置5112に図柄を変動・停止表示する時間を計時するための普図表示図柄更新タイマ、特別図柄表示装置5114に図柄を変動・停止表示する時間を計時するための特図表示図柄更新タイマ、所定の入賞演出時間、所定の開放時間、所定の閉鎖時間、所定の終了演出期間などを計時するためのタイマなどを含む各種タイマを更新する。   In step S6207, timer update processing is performed. In this timer update process, a normal symbol display symbol update timer for timing the time for symbol change / stop display on the normal symbol display device 5112 and a special symbol display device 5114 for clocking time for symbol variation / stop display. Various timers including a special figure display symbol update timer, a timer for measuring a predetermined winning effect time, a predetermined opening time, a predetermined closing time, a predetermined end effect period, and the like are updated.

ステップS6208では、入賞口カウンタ更新処理を行う。この入賞口カウンタ更新処理では、入賞口(一般入賞口5122、第1、第2特図始動口5126、5128、および可変入賞口5130)に入賞(入球)があった場合に、RAM5308に各入賞口ごとに設けた賞球数記憶領域の値を読み出し、1を加算して、元の賞球数記憶領域に設定する。なお、乱数用クロックRCKが異常であっても入賞に対する賞球払出数の増加を制限する理由がないため、後述するステップS6209のように乱数用クロックRCKに異常がある場合でも特別な処理を行わないが、不正者に対する懲罰的な意味で乱数用クロックRCKに異常がある場合に賞球数を加算しない等の所定の処理を行ってもよい。また、次のステップS6209では、入賞受付処理を行う(詳細は後述する)。ステップS6210では、払出要求数送信処理を行う。なお、払出制御部550に出力する出力予定情報および払出要求情報は1バイトで構成しており、ビット7にストローブ情報(オンの場合、データをセットしていることを示す)、ビット6に電源投入情報(オンの場合、電源投入後一回目のコマンド送信であることを示す)、ビット4〜5に今回加工種別(0〜3)、およびビット0〜3に加工後の払出要求数を示すようにしている。   In step S6208, a winning opening counter update process is performed. In this winning opening counter updating process, when there is a winning (winning) in the winning opening (general winning opening 5122, first and second special figure starting openings 5126, 5128 and variable winning opening 5130), The value of the winning ball number storage area provided for each winning opening is read, and 1 is added to set the original winning ball number storage area. Note that even if the random number clock RCK is abnormal, there is no reason to limit the increase in the number of winning ball payouts for winning. Therefore, even when the random number clock RCK is abnormal as in step S6209 described later, special processing is performed. However, a predetermined process such as not adding the number of prize balls may be performed when there is an abnormality in the random number clock RCK in a punitive sense for an unauthorized person. In the next step S6209, a winning acceptance process is performed (details will be described later). In step S6210, a payout request number transmission process is performed. The output schedule information and the payout request information output to the payout control unit 550 are composed of 1 byte, strobe information in bit 7 (indicating that data is set when on), and power supply in bit 6 Input information (when ON, indicates that this is the first command transmission after power-on), bits 4-5 indicate the current processing type (0-3), and bits 0-3 indicate the number of payout requests after processing I am doing so.

ステップS6211では、普図状態更新処理を行う。この普図状態更新処理は、普図の状態に対応する複数の処理のうちの1つの処理を行う。例えば、普図変動中(後述する普図汎用タイマの値が1以上)における普図状態更新処理では、普図表示装置5112を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。   In step S6211, the normal state update process is performed. This normal state update process performs one of a plurality of processes corresponding to the normal state. For example, in a general diagram state update process during a normal map change (a general-purpose general-purpose timer value to be described later is 1 or more), on / off drive control that repeatedly turns on and off the 7-segment LED constituting the general map display device 5112 is performed. Do.

また、普図変動表示時間が経過したタイミング(普図表示図柄更新タイマの値が1から0になったタイミング)における普図状態更新処理では、当りフラグがオンの場合には、上述の普図1の態様となるように普図表示装置5112を構成する7セグメントLEDの点灯・消灯駆動制御を行い、当りフラグがオフの場合には、上述の普図2の態様となるように普図表示装置5112を構成する7セグメントLEDの点灯・消灯駆動制御を行うと共に、その後、所定の停止表示期間(例えば500m秒間)その表示を維持するためにRAM5308に設けた普図停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により普図の停止表示を行い、普図変動遊技の結果を遊技者に報知するようにしている。   Also, in the normal state update process at the timing when the normal map change display time has elapsed (the timing when the value of the general map display symbol update timer has changed from 1 to 0), if the hit flag is on, When the 7-segment LED constituting the universal display device 5112 is turned on / off so as to be in the first mode, and the hit flag is off, the normal diagram is displayed as in the above-described normal mode 2 The 7 segment LED constituting the device 5112 is controlled to be turned on / off, and then stored in a routine stop time management timer provided in the RAM 5308 to maintain the display for a predetermined stop display period (for example, 500 msec). Information indicating the stop period is set in the area. With this setting, the usual figure is stopped and the result of the usual figure variable game is notified to the player.

また、所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、当りフラグがオンの場合には、所定の開放期間(例えば2秒間)、第2特図始動口5128の羽根部材の開閉駆動用のソレノイド5330に、羽根部材を開放状態に保持する信号を出力するとともに、RAM5308に設けた羽根開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。   Further, in the normal state update process that starts at the timing when the predetermined stop display period ends (when the value of the normal stop time management timer value changes from 1 to 0), if the hit flag is on, the predetermined state is displayed. During the opening period (for example, 2 seconds), a signal for holding the blade member in an open state is output to the solenoid 5330 for opening / closing the blade member of the second special figure starting port 5128, and the blade opening time management provided in the RAM 5308 Information indicating the release period is set in the storage area of the timer.

また、所定の開放期間が終了したタイミング(羽根開放時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、所定の閉鎖期間(例えば500m秒間)、羽根部材の開閉駆動用のソレノイド5330に、羽根部材を閉鎖状態に保持する信号を出力するとともに、RAM5308に設けた羽根閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。   In the usual state update process that starts at the timing when the predetermined opening period ends (the timing when the value of the blade opening time management timer is changed from 1 to 0), the blade member has a predetermined closing period (for example, 500 milliseconds). A signal for holding the blade member in the closed state is output to the opening / closing drive solenoid 5330, and information indicating the closing period is set in the storage area of the blade closing time management timer provided in the RAM 5308.

また、所定の閉鎖期間を経過したタイミング(羽根閉鎖時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、普図の状態を非作動中に設定する。普図の状態が非作動中の場合における普図状態更新処理では、何もせずに次のステップS6212に移行するようにしている。   In the normal state update process that starts at the timing when a predetermined closing period has elapsed (the timing when the value of the blade closing time management timer changes from 1 to 0), the normal state is set to inactive. In the normal state update process when the normal state is inactive, the process proceeds to the next step S6212 without doing anything.

ステップS6212では、普図関連抽選処理を行う。この普図関連抽選処理では、普図変動遊技および第2特図始動口5128の開閉制御を行っておらず(普図の状態が非作動中)、且つ、保留している普図変動遊技の数が1以上である場合に、上述の乱数値記憶領域に記憶している普図当選乱数値に基づいた乱数抽選により普図変動遊技の結果を当選とするか、不当選とするかを決定する当り判定をおこない、当選とする場合にはRAM5308に設けた当りフラグにオンを設定する。不当選の場合には、当りフラグにオフを設定する。また、当り判定の結果に関わらず、次に上述の普図タイマ乱数値生成用の乱数カウンタの値を普図タイマ乱数値として取得し、取得した普図タイマ乱数値に基づいて複数の変動時間のうちから普図表示装置5112に普図を変動表示する時間を1つ選択し、この変動表示時間を、普図変動表示時間として、RAM5308に設けた普図変動時間記憶領域に記憶する。なお、保留している普図変動遊技の数は、RAM5308に設けた普図保留数記憶領域に記憶するようにしており、当り判定をするたびに、保留している普図変動遊技の数から1を減算した値を、この普図保留数記憶領域に記憶し直すようにしている。また当り判定に使用した乱数値を消去する。   In step S6212, a general drawing related lottery process is performed. In this general map-related lottery process, the open / close control of the general map variable game and the second special map start port 5128 is not performed (the state of the general map is inactive), and the pending general map variable game When the number is 1 or more, it is decided whether to win or not to win the result of the variable figure game by random lottery based on the random number value stored in the random number value storage area. If the winning judgment is made and the winning is made, the winning flag provided in the RAM 5308 is set to ON. If unsuccessful, turn off the winning flag. Regardless of the result of the hit determination, next, the value of the random number counter for generating the normal figure timer random value is acquired as the normal figure timer random number value, and a plurality of fluctuation times are obtained based on the acquired general figure timer random number value. One time for displaying the variable map on the general map display device 5112 is selected, and this variable display time is stored in the general map variable time storage area provided in the RAM 5308 as the normal map variable display time. In addition, the number of pending general figure variable games is stored in the common figure pending number storage area provided in the RAM 5308. Each time a hit determination is made, the number of pending custom figure variable games is calculated. The value obtained by subtracting 1 is re-stored in the usual figure number-of-holds storage area. Also, the random number value used for the hit determination is deleted.

ステップS6213では、特図状態更新処理を行う(詳細は後述する)。ステップS6214では、特図関連抽選処理を行う。この特図関連抽選処理では、特図変動遊技および可変入賞口5130の開閉制御を行っておらず(特図の状態が非作動中)、且つ、保留している特図変動遊技の数が1以上である場合に、大当り判定テーブル、高確率状態移行判定テーブル、タイマ番号決定テーブルなどを使用した各種抽選のうち、最初に大当り判定を行う。具体的には、ステップS6203で乱数値記憶領域に記憶した特図当選乱数値が、大当り判定テーブルの第1特図始動口用抽選データの数値範囲であるか否かを判定し、特図当選乱数値が第1特図始動口用抽選データの数値範囲である場合には、特図変動遊技の当選と判定してRAM5308に設けた大当りフラグの格納領域に大当りとなることを示す情報を設定する(ここで、大当りの情報をRAM5308に設定することを大当りフラグをオンに設定するという)。一方、特図当選乱数値が第1特図始動口用抽選データの数値範囲以外である場合には、特図変動遊技の外れと判定してRAM5308に設けた大当りフラグの格納領域に外れとなることを示す情報を設定する(ここで、外れの情報をRAM5308に設定することを大当りフラグをオフに設定するという)。なお、保留している特図変動遊技の数は、RAM5308に設けた特図保留数記憶領域に記憶するようにしており、当り判定をするたびに、保留している特図変動遊技の数から1を減算した値を、この特図保留数記憶領域に記憶し直すようにしている。また、当り判定に使用した乱数値を消去する。   In step S6213, special figure state update processing is performed (details will be described later). In step S6214, special drawing related lottery processing is performed. In this special drawing-related lottery process, the opening / closing control of the special drawing variable game and the variable prize opening 5130 is not performed (the state of the special drawing is inactive), and the number of the special drawing variable games held is 1 In the case described above, the jackpot determination is first performed among various lotteries using the jackpot determination table, the high probability state transition determination table, the timer number determination table, and the like. Specifically, it is determined whether or not the special figure winning random number value stored in the random value storage area in step S6203 is within the numerical range of the lottery data for the first special figure starting port in the jackpot determination table. When the random number value is within the numerical range of the lottery data for the first special figure start opening, information indicating that the special figure variable game is won and the big hit flag storage area provided in the RAM 5308 is a big hit is set. (Here, setting the jackpot information in the RAM 5308 is setting the jackpot flag to ON). On the other hand, when the special figure winning random number value is outside the numerical range of the first special figure starting port lottery data, it is determined that the special figure variable game is out of the game, and the big hit flag storage area provided in the RAM 5308 is out. (In this case, setting outlier information in the RAM 5308 is setting the jackpot flag off). Note that the number of special figure variable games that are on hold is stored in a special figure variable number storage area provided in the RAM 5308. Each time a hit determination is made, the number of special figure variable games that are held is determined. The value obtained by subtracting 1 is stored again in this special figure reservation number storage area. In addition, the random number value used for the hit determination is deleted.

大当りフラグにオンを設定した場合には、次に確変移行判定を行う。具体的には、大当り種別用乱数が、移行判定乱数の数値範囲であるか否かを判定し、特図乱数値が抽選データの数値範囲である場合には、RAM5308に設けた確変(確率変動)フラグの格納領域に、特別大当り遊技を開始することを示す情報を設定する。(ここで、特別大当り遊技開始の情報をRAM5308に設定することを確変フラグをオンに設定するという)。一方、大当り種別用乱数が抽選データの数値範囲以外である場合には、上述の確変フラグの格納領域に、大当り遊技を開始することを示す情報を設定する(ここで、大当り遊技開始の情報をRAM5308に設定することを確変フラグをオフに設定するという)。   If the big hit flag is set to ON, the probability variation transition determination is performed next. Specifically, it is determined whether or not the jackpot type random number is in the numerical range of the transition determination random number, and if the special figure random number value is in the numerical range of the lottery data, the probability variation (probability variation) provided in the RAM 5308 is determined. ) Information indicating that a special jackpot game is started is set in the flag storage area. (Here, setting the special big hit game start information in the RAM 5308 is referred to as setting the probability variation flag to ON). On the other hand, when the jackpot type random number is outside the numerical range of the lottery data, information indicating that the jackpot game is started is set in the storage area of the probability variation flag (here, the information on the start of the jackpot game is set). Setting the RAM 5308 is referred to as setting the probability variation flag to OFF).

大当り判定の結果に関わらず、次にタイマ番号を決定する処理を行う。具体的には、上述の特図タイマ乱数値生成用の乱数カウンタの値を特図タイマ乱数値として取得する。大当りフラグの値、および取得した特図タイマ乱数値を含むタイマ乱数の数値範囲に対応するタイマ番号を選択し、RAM5308に設けた所定のタイマ番号格納領域に記憶する。さらに、そのタイマ番号に対応する変動時間を、特図変動表示時間として、上述の特図表示図柄更新タイマに記憶し、コマンド設定送信処理(ステップS6215)で一般コマンド回転開始設定送信処理を実行させるために上述の送信情報記憶領域に01Hを送信情報(一般情報)として追加記憶してから処理を終了する。   Regardless of the result of the big hit determination, the process for determining the timer number is performed next. Specifically, the value of the random counter for generating the special figure timer random value described above is acquired as the special figure timer random value. A timer number corresponding to the value of the jackpot flag and the timer random number range including the acquired special figure timer random number value is selected and stored in a predetermined timer number storage area provided in the RAM 5308. Further, the fluctuation time corresponding to the timer number is stored as the special figure fluctuation display time in the special figure display symbol update timer described above, and the general command rotation start setting transmission process is executed in the command setting transmission process (step S6215). For this reason, 01H is additionally stored as transmission information (general information) in the transmission information storage area described above, and the process ends.

ステップS6215では、コマンド設定送信処理を行う。なお、副制御部5400および払出制御部550に送信する出力予定情報(コマンド)は16ビットで構成しており、ビット15はストローブ情報(オンの場合、データをセットしていることを示す)、ビット11〜14はコマンド種別(00Hの場合は基本コマンド、01Hの場合は図柄変動開始コマンド、04Hの場合は図柄変動停止コマンド、05Hの場合は入賞演出開始コマンド、06Hの場合は終了演出開始コマンド、07Hの場合は大当りラウンド数指定コマンド、0EHの場合は復電コマンド、0FHの場合はRAMクリアコマンド、10Hの場合は乱数クロック異常コマンドをそれぞれ示すなど、コマンドの種類を特定可能な情報)、ビット0〜10はコマンドデータ(コマンド種別に対応する所定の情報)で構成している。   In step S6215, command setting transmission processing is performed. The output schedule information (command) transmitted to the sub control unit 5400 and the payout control unit 550 is composed of 16 bits, and bit 15 is strobe information (indicating that data is set when ON), Bits 11 to 14 are command types (basic command for 00H, symbol change start command for 01H, symbol change stop command for 04H, winning effect start command for 05H, and end effect start command for 06H. In the case of 07H, a command for specifying the number of rounds of big hits, in the case of 0EH, a power recovery command, in the case of 0FH, a RAM clear command, and in the case of 10H, a random clock error command is indicated. Bits 0 to 10 are composed of command data (predetermined information corresponding to the command type).

具体的には、ストローブ情報はコマンド送信処理でオン、オフするようにしている。また、コマンド種別が図柄変動開始コマンドの場合であればコマンドデータに、大当りフラグの値、確変フラグの値、特図関連抽選処理で選択したタイマ番号などを示す情報を含み、図柄変動停止コマンドの場合であれば、大当りフラグの値、確変フラグの値などを含み、入賞演出コマンドおよび終了演出開始コマンドの場合であれば、確変フラグの値などを含み、大当りラウンド数指定コマンドの場合であれば確変フラグの値、大当りラウンド数などを含むようにしている。コマンド種別が基本コマンドを示す場合は、コマンドデータにデバイス情報、第1特図始動口5126への入賞の有無、第2特図始動口5128への入賞の有無、可変入賞口5130への入賞の有無などを含む。   Specifically, the strobe information is turned on and off by command transmission processing. If the command type is a symbol variation start command, the command data includes information indicating the value of the big hit flag, the probability variation flag, the timer number selected in the special symbol related lottery process, etc. If it is a case, it includes the value of the jackpot flag, the probability variation flag, etc. If it is a winning effect command and an end effect start command, it includes the value of the probability variation flag, etc. If it is a jackpot round number designation command The value of the probability variation flag, the number of big hit rounds, etc. are included. When the command type indicates a basic command, device information in the command data, presence / absence of winning in the first special figure starting port 5126, presence / absence of winning in the second special figure starting port 5128, winning in the variable winning port 5130 Includes presence or absence.

また、上述の一般コマンド回転開始設定送信処理では、コマンド種別に01H、コマンドデータにRAM5308に記憶している大当りフラグの値、確変フラグの値、特図関連抽選処理で選択したタイマ番号、保留している特図変動遊技の数などを示す情報を設定する。上述の一般コマンド回転停止設定送信処理では、コマンド種別に04H、コマンドデータにRAM5308に記憶している大当りフラグの値、確変フラグの値などを示す情報を設定する。上述の一般コマンド入賞演出設定送信処理では、コマンド種別に05H、コマンドデータにRAM5308に記憶している入賞演出期間中に装飾図柄表示装置5110・各種ランプ5420・スピーカ5416に出力する演出制御情報、確変フラグの値、保留している特図変動遊技の数などを示す情報を設定する。上述の一般コマンド終了演出設定送信処理では、コマンド種別に06H、コマンドデータにRAM5308に記憶している演出待機期間中に装飾図柄表示装置5110・各種ランプ5420・スピーカ5416に出力する演出制御情報、確変フラグの値、保留している特図変動遊技の数などを示す情報を設定する。上述の一般コマンド大入賞口開放設定送信処理では、コマンド種別に07H、コマンドデータにRAM5308に記憶している大当りラウンド数、確変フラグの値、保留している特図変動遊技の数などを示す情報を設定する。上述の一般コマンド大入賞口閉鎖設定送信処理では、コマンド種別に08H、コマンドデータにRAM5308に記憶している大当りラウンド数、確変フラグの値、保留している特図変動遊技の数などを示す情報を設定する。副制御部5400では、受信した出力予定情報に含まれるコマンド種別により、主制御部5300における遊技制御の変化に応じた演出制御の決定が可能になるとともに、出力予定情報に含まれているコマンドデータの情報に基づいて、演出制御内容を決定することができるようになる。   In the general command rotation start setting transmission process described above, the command type is 01H, the jackpot flag value stored in the RAM 5308 as the command data, the probability variation flag value, the timer number selected in the special drawing related lottery process, and the suspension. Information indicating the number of special figure variable games being set is set. In the general command rotation stop setting transmission process described above, information indicating the value of the jackpot flag, the value of the probability variation flag, etc. stored in the RAM 5308 is set as the command type and 04H as the command type. In the general command winning effect setting transmission process described above, the effect control information to be output to the decorative symbol display device 5110, various lamps 5420, and the speaker 5416 during the winning effect period stored in the RAM 5308 as the command type is 05H, and the probability change is performed. Information indicating the value of the flag, the number of special figure variable games that are held, and the like are set. In the above-described general command end effect setting transmission process, the effect control information output to the decorative symbol display device 5110, various lamps 5420, and the speaker 5416 during the effect waiting period stored in the RAM 5308 as the command type is 06H, and the probability change is performed. Information indicating the value of the flag, the number of special figure variable games that are held, and the like are set. In the general command big prize opening release setting transmission process described above, the information indicating the command type is 07H, the command data is the number of big hits stored in the RAM 5308, the value of the probability variation flag, the number of the special figure variable games held, etc. Set. In the above-mentioned general command big prize opening closing setting transmission process, information indicating the command type is 08H, the number of big hits stored in the RAM 5308 as the command data, the value of the probability variation flag, the number of the special figure variable games held, etc. Set. In the sub-control unit 5400, it is possible to determine the effect control according to the change in the game control in the main control unit 5300 by the command type included in the received output schedule information, and the command data included in the output schedule information Based on this information, the contents of the effect control can be determined.

ステップS6216では、外部出力信号設定処理を行う。この外部出力信号設定処理では、RAM5308に記憶している遊技情報を、情報出力回路5334を介してパチンコ機5100とは別体の情報入力回路5652に出力する。   In step S6216, an external output signal setting process is performed. In this external output signal setting process, the game information stored in the RAM 5308 is output to the information input circuit 5652 separate from the pachinko machine 5100 via the information output circuit 5334.

ステップS6217では、デバイス監視処理を行う。このデバイス監視処理では、ステップS6203において信号状態記憶領域に記憶した各種センサの信号状態を読み出して、ガラス枠開放エラーの有無または下皿満タンエラーの有無などを監視し、ガラス枠開放エラーまたは下皿満タンエラーを検出した場合に、副制御部5400に送信すべき送信情報に、ガラス枠開放エラーの有無または下皿満タンエラーの有無を示すデバイス情報を設定する。また、各種ソレノイド5330を駆動して第2特図始動口5128や、可変入賞口5130の開閉を制御したり、表示回路5322、5324、5328を介して普図表示装置5112、特図表示装置5114、各種状態表示部5326などに出力する表示データを、I/O5310の出力ポートに設定する。また、払出要求数送信処理(ステップS6210)で設定した出力予定情報を出力ポート5310を介して副制御部5400に出力する。   In step S6217, device monitoring processing is performed. In this device monitoring process, the signal states of the various sensors stored in the signal state storage area in step S6203 are read to monitor the presence / absence of a glass frame open error or a bottom pan full error, and the like. When a full tank error is detected, device information indicating whether or not there is a glass frame opening error or a lower pan full error is set in the transmission information to be transmitted to the sub-control unit 5400. Further, various solenoids 5330 are driven to control the opening and closing of the second special figure starting port 5128 and the variable prize opening 5130, and the general diagram display device 5112 and the special figure display device 5114 via the display circuits 5322, 5324, and 5328. The display data to be output to the various status display units 5326 and the like is set in the output port of the I / O 5310. Further, the output schedule information set in the payout request number transmission process (step S6210) is output to the sub-control unit 5400 via the output port 5310.

ステップS6218では、低電圧信号がオンであるか否かを監視する。そして、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS6220に進み、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS6219に進む。   In step S6218, it is monitored whether or not the low voltage signal is on. If the low voltage signal is on (when power-off is detected), the process proceeds to step S6220. If the low-voltage signal is off (when power-off is not detected), the process proceeds to step S6219.

ステップS6219では、タイマ割り込みエンド処理を行う。このタイマ割り込みエンド処理では、ステップS6201で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割り込み許可の設定などを行う。   In step S6219, timer interrupt end processing is performed. In this timer interrupt end process, the value of each register temporarily saved in step S6201 is set in each original register, or interrupt permission is set.

ステップS6220では、電源管理部5650から主制御部5300に供給している電源の電圧値を監視する電圧監視回路が、所定の値以下である場合に電圧が低下したことを示す電圧低下信号を出力しているか否か、すなわち電源の遮断を検知したか否かを監視し、電源の遮断を検知した場合には、復電時に電断時の状態に復帰するための特定の変数やスタックポインタを復帰データとしてRAM5308の所定の領域に退避し、入出力ポートの初期化等の電断処理を行う。また、電源ステータスを「サスペンド」に設定する。
<入賞受付処理>
In step S6220, the voltage monitoring circuit that monitors the voltage value of the power source supplied from the power management unit 5650 to the main control unit 5300 outputs a voltage decrease signal indicating that the voltage has decreased when the voltage value is equal to or lower than a predetermined value. Whether or not a power-off is detected. If a power-off is detected, a specific variable or stack pointer for returning to the power-off state at the time of power recovery is displayed. The return data is saved in a predetermined area of the RAM 5308, and power interruption processing such as initialization of the input / output port is performed. In addition, the power status is set to “suspend”.
<Prize acceptance process>

次に、図259を用いて、上述の主制御部タイマ割り込み処理における入賞受付処理について説明する。なお、同図は入賞受付処理の流れを示すフローチャートである。   Next, with reference to FIG. 259, the winning acceptance process in the main controller timer interrupt process described above will be described. This figure is a flowchart showing the flow of the winning acceptance process.

ステップS6301〜ステップS6303では、前々回第1特図始動口検出信号記憶領域、前回第1特図始動口検出信号記憶領域、および今回第1特図始動口検出信号記領域の各記憶領域に記憶した第1特図始動口球検出センサの検出信号の有無の情報を比較し、第1特図始動口球検出センサにおける過去3回分の検出信号の有無の情報が予め定めた入賞パターン情報と一致するか否かを判定する。そして、第1特図始動口球検出センサにおいて過去3回分の検出信号の有無の情報が、予め定めた入賞判定パターン情報(本実施例では、今回第1特図始動口検出信号がオン、前回第1特図始動口検出信号がオン、前々回第1特図始動口検出信号がオフであることを示す情報)と一致した場合に、第1特図始動口5126への入球があったと判定する。例えば、第1特図始動口球検出センサにおいて過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致した場合には、第1特図始動口5126への入球があったと判定し、以降の第1特図始動口5126への入球に伴う処理を行うが、過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致しなかった場合には、以降の第1特図始動口5126の入球に伴う処理を行わずに処理を終了する。   In steps S6301 to S6303, the first special figure start port detection signal storage area, the previous first special figure start port detection signal storage area, and the current first special figure start port detection signal storage area are stored in the respective storage areas. The information on the presence / absence of the detection signal of the first special figure starting mouth ball detection sensor is compared, and the information on the presence / absence of the detection signals for the past three times in the first special figure starting mouth ball detection sensor matches the predetermined winning pattern information. It is determined whether or not. In the first special figure starting mouth ball detection sensor, information on the presence or absence of detection signals for the past three times is predetermined winning determination pattern information (in the present embodiment, the first special figure starting mouth detection signal is turned on previously, When the first special figure starting port detection signal coincides with the information indicating that the first special figure starting port detection signal is off the previous time), it is determined that the first special figure starting port 5126 has entered the ball. To do. For example, when the information on the presence / absence of detection signals for the past three times matches the above-described winning determination pattern information in the first special figure start opening ball detection sensor, the first special figure start opening 5126 has been entered. After determining and performing the process associated with entering the first special figure starting port 5126, if the information on the presence / absence of detection signals for the past three times does not match the above-described winning determination pattern information, The process is terminated without performing the process associated with entering the first special figure starting port 5126.

ステップS6304では、上述の内部情報レジスタのクロック信号状態ビットを参照し、乱数用クロックの周波数に異常があるか無いかを判定する。そして、乱数用クロックの周波数に異常がある場合にはステップS6305の処理を実行することなくステップS6306に進み、乱数用クロックの周波数に異常がない場合には、ステップS6305に進む。   In step S6304, it is determined whether or not there is an abnormality in the frequency of the random number clock by referring to the clock signal status bit of the internal information register described above. If there is an abnormality in the frequency of the random number clock, the process proceeds to step S6306 without executing the process of step S6305. If there is no abnormality in the frequency of the random number clock, the process proceeds to step S6305.

ステップS6305では、カウンタ回路(乱数回路)5316から乱数を取得する。より具体的には、第1特図始動口5126に入賞があり、且つ、保留している特図変動遊技の数が4未満である場合には、第1特図始動口5126に対応するカウンタ回路5316の乱数値レジスタから取り出した値を特図当選乱数値として取得、または取り出した値に「所定の加工」を行なった値を特図当選乱数値として取得する。また、上述の特図乱数値生成用の乱数カウンタから取り出した値を特図乱数値として取得、または取り出した値に「所定の加工」を行なった値を特図乱数値として取得し、RAM5308に設けた乱数値記憶領域に特図当選乱数値と共に記憶する。   In step S 6305, a random number is acquired from the counter circuit (random number circuit) 5316. More specifically, when there is a prize at the first special figure start opening 5126 and the number of special figure variable games held is less than 4, the counter corresponding to the first special figure start opening 5126 is displayed. A value extracted from the random value register of the circuit 5316 is acquired as a special figure winning random value, or a value obtained by performing “predetermined processing” on the extracted value is acquired as a special figure winning random value. Further, the value extracted from the random number counter for generating the special figure random value described above is acquired as the special figure random number value, or the value obtained by performing “predetermined processing” on the extracted value is acquired as the special figure random number value. A special figure winning random number value is stored in a random value storage area provided.

ステップS6306〜ステップS6308では、前々回第2特図始動口検出信号記憶領域、前回第2特図始動口検出信号記憶領域、および今回第2特図始動口検出信号記領域の各記憶領域に記憶した第2特図始動口球検出センサの検出信号の有無の情報を比較し、第2特図始動口球検出センサにおける過去3回分の検出信号の有無の情報が予め定めた入賞パターン情報と一致するか否かを判定する。そして、第2特図始動口球検出センサにおいて過去3回分の検出信号の有無の情報が、予め定めた入賞判定パターン情報(本実施例では、今回第2特図始動口検出信号がオン、前回第2特図始動口検出信号がオン、前々回第2特図始動口検出信号がオフであることを示す情報)と一致した場合に、第2特図始動口5130への入球があったと判定する。例えば、第2特図始動口球検出センサにおいて過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致した場合には、第2特図始動口5128への入球があったと判定し、以降の第2特図始動口5128への入球に伴う処理を行うが、過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致しなかった場合には、以降の第2特図始動口5128の入球に伴う処理を行わずに処理を終了する。   In steps S6306 to S6308, the second special figure start port detection signal storage area, the previous second special figure start opening detection signal storage area, and the current second special figure start opening detection signal storage area are stored in the respective storage areas. The information on the presence / absence of the detection signal of the second special figure starting ball detecting sensor is compared, and the information on the presence / absence of the detection signals for the past three times in the second special figure starting ball detecting sensor coincides with the predetermined winning pattern information. It is determined whether or not. The information on the presence or absence of detection signals for the past three times in the second special figure starting mouth ball detection sensor is predetermined winning determination pattern information (in this embodiment, the second special figure starting mouth detection signal is turned on previously, When the second special figure start port detection signal coincides with the information indicating that the second special figure start port detection signal has been turned off two times before, it is determined that the second special figure start port 5130 has entered the ball. To do. For example, when the information on the presence / absence of detection signals for the past three times matches the above-described winning determination pattern information in the second special figure start opening ball detection sensor, the second special figure start opening 5128 has entered the ball. After determining and performing processing associated with entering the second special figure starting port 5128 after that, if the information on the presence or absence of the detection signals for the past three times does not match the above-described winning determination pattern information, The process is terminated without performing the process associated with entering the second special figure starting port 5128.

ステップS6309では、上述の内部情報レジスタのクロック信号状態ビットを参照し、乱数用クロックの周波数に異常があるか無いかを判定する。そして、乱数用クロックの周波数に異常がある場合にはステップS6310の処理を実行することなくステップS6311に進み、乱数用クロックの周波数に異常がない場合には、ステップS6310に進む。   In step S6309, it is determined whether there is an abnormality in the frequency of the random number clock by referring to the clock signal status bit of the internal information register. If there is an abnormality in the frequency of the random number clock, the process proceeds to step S6311 without executing the process of step S6310. If there is no abnormality in the frequency of the random number clock, the process proceeds to step S6310.

ステップS6310では、カウンタ回路(乱数回路)5316から乱数を取得する。より具体的には、第2特図始動口5128に入賞があり、且つ、保留している特図変動遊技の数が4未満である場合には、第2特図始動口5128に対応するカウンタ回路5316の乱数値レジスタから取り出した値を特図当選乱数値として取得、または取り出した値に「所定の加工」を行なった値を特図当選乱数値として取得する。また、上述の特図乱数値生成用の乱数カウンタから取り出した値を特図乱数値として取得、または取り出した値に「所定の加工」を行なった値を特図乱数値として取得し、RAM5308に設けた乱数値記憶領域に特図当選乱数値と共に記憶する。   In step S6310, a random number is acquired from the counter circuit (random number circuit) 5316. More specifically, if there is a prize at the second special figure start opening 5128 and the number of special figure variable games held is less than 4, the counter corresponding to the second special figure start opening 5128 is displayed. A value extracted from the random value register of the circuit 5316 is acquired as a special figure winning random value, or a value obtained by performing “predetermined processing” on the extracted value is acquired as a special figure winning random value. Further, the value extracted from the random number counter for generating the special figure random value described above is acquired as the special figure random number value, or the value obtained by performing “predetermined processing” on the extracted value is acquired as the special figure random number value. A special figure winning random number value is stored in a random value storage area provided.

ステップS6311〜ステップS6313では、前々回普図始動口検出信号記憶領域、前回普図始動口検出信号記憶領域、および今回普図始動口検出信号記領域の各記憶領域に記憶した普図始動口球検出センサの検出信号の有無の情報を比較し、普図始動口球検出センサにおける過去3回分の検出信号の有無の情報が予め定めた入賞パターン情報と一致するか否かを判定する。そして、普図始動口球検出センサにおいて過去3回分の検出信号の有無の情報が、予め定めた入賞判定パターン情報(本実施例では、今回普図始動口検出信号がオン、前回普図始動口検出信号がオン、前々回普図始動口検出信号がオフであることを示す情報)と一致した場合に、普図始動口5124を球が通過したと判定する。例えば、普図始動口球検出センサにおいて過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致した場合には、普図始動口5124の球の通過があったと判定し、以降の普図始動口5124の球の通過に伴う処理を行うが、過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致しなかった場合には、以降の普図始動口5124の球の通過に伴う処理を行わずに処理を終了する。   In step S6311 to step S6313, the general-purpose start-up ball detection stored in the respective memory areas of the previous-time general-purpose start-port detection signal storage area, the previous general-purpose start-port detection signal storage area, and the current general-purpose start-port detection signal storage area. The information on the presence / absence of the detection signal of the sensor is compared, and it is determined whether or not the information on the presence / absence of the detection signal for the past three times in the normal start ball detection sensor matches the predetermined winning pattern information. The information on the presence / absence of detection signals for the past three times in the general-purpose start-mouth detection sensor is pre-determined winning determination pattern information (in this embodiment, the current general-purpose start-point detection signal is on, When the detection signal coincides with the information indicating that the usual-time start opening detection signal is off the previous time), it is determined that the ball has passed through the normal start opening 5124. For example, when the information on the presence / absence of the detection signals for the past three times matches the above-described winning determination pattern information in the normal-use start mouth detection sensor, it is determined that the sphere of the normal-use start opening 5124 has passed, and thereafter When the information on the presence / absence of the detection signal for the past three times does not match the above-described winning determination pattern information, the subsequent general figure start opening 5124 is processed. The process is terminated without performing the process associated with the passage of the ball.

ステップS6314では、上述の内部情報レジスタのクロック信号状態ビットを参照し、乱数用クロックの周波数に異常があるか無いかを判定する。そして、乱数用クロックの周波数に異常がある場合にはステップS6315の処理を実行することなく処理を終了し、乱数用クロックの周波数に異常がない場合には、ステップS6315に進む。   In step S6314, it is determined whether or not there is an abnormality in the frequency of the random number clock by referring to the clock signal status bit of the internal information register. If there is an abnormality in the frequency of the random number clock, the process ends without executing the process of step S6315. If there is no abnormality in the frequency of the random number clock, the process proceeds to step S6315.

ステップS6315では、カウンタ回路(乱数回路)5316から乱数を取得する。より具体的には、普図始動口5124に入賞があり、且つ、保留している普図変動遊技の数が2未満である場合には、普図始動口5124に対応するカウンタ回路5316の乱数値レジスタから値を普図当選乱数値として取得する。また、上述の普図乱数値生成用の乱数カウンタから値を普図乱数値として取得し、RAM5308に設けた乱数値記憶領域に普図当選乱数値と共に記憶する。   In step S6315, a random number is acquired from the counter circuit (random number circuit) 5316. More specifically, if there is a win at the general-purpose start opening 5124 and the number of the variable-type variable games held is less than two, the counter circuit 5316 corresponding to the general-purpose start opening 5124 is disturbed. The value is acquired from the numeric register as a random number value for normal winning. Further, a value is acquired from the above-described random number counter for generating a normal random number value as a normal random number value, and stored in a random value storage area provided in the RAM 5308 together with the normal winning random number value.

なお、本実施例においては、CPU5304は、各種始動口検出信号に入力がオン→オンと、最低で1回の割込み周期分の期間(本実施例では2ms)を経なければカウンタ回路5316の乱数値レジスタの値をラッチしないように構成されている。一方、乱数値レジスタは、各種始動口検出信号が入力された場合のラッチ信号は、乱数用クロックRCKの4周期分のオンレベルの信号を経なければラッチが行われないようになっている。本実施例では乱数用クロックRCKは10MHzであるため、最大でも0.4μs+0.1μs=0.5μs未満でラッチは完了する。すなわち、上記ステップS6305などで乱数値レジスタから値を取得する前に各種始動口検出信号によるラッチは確実に終了しているように
構成されている。
<特図状態更新処理>
In this embodiment, the CPU 5304 does not disturb the counter circuit 5316 unless the input to various start port detection signals is turned on → on and a period of at least one interrupt cycle (2 ms in this embodiment) has passed. The numeric register value is not latched. On the other hand, in the random value register, the latch signal when various start port detection signals are input does not latch unless an on-level signal corresponding to four cycles of the random number clock RCK is passed. In this embodiment, since the random number clock RCK is 10 MHz, the latching is completed when the maximum is less than 0.4 μs + 0.1 μs = 0.5 μs. That is, the latch by the various start port detection signals is surely completed before the value is obtained from the random value register in step S6305 and the like.
It is configured.
<Special status update process>

次に、図260を用いて、上述の主制御部タイマ割り込み処理における特図状態更新処理について説明する。なお、同図は特図状態更新処理の流れを示すフローチャートである。   Next, referring to FIG. 260, the special figure state update process in the above-described main control unit timer interrupt process will be described. This figure is a flowchart showing the flow of special figure state update processing.

ステップS6401では、内部情報レジスタのクロック信号状態ビットを参照し、乱数用クロックの周波数に異常があるか無いかを判定する。そして、乱数用クロックの周波数に異常がある場合にはステップS6402〜S6409の処理を実行することなく、ステップS6410に進み、乱数用クロックの周波数に異常がない場合には、ステップS6402に進む。   In step S6401, it is determined whether or not there is an abnormality in the frequency of the random number clock by referring to the clock signal status bit of the internal information register. If there is an abnormality in the frequency of the random number clock, the process proceeds to step S6410 without executing the processing of steps S6402 to S6409. If there is no abnormality in the frequency of the random number clock, the process proceeds to step S6402.

ステップS6402では、特図変動中であるか否かを判定し、該当する場合にはステップS6403に進み、該当しない場合にはステップS6406に進む。ステップS6403では、特図表示装置5112を構成する7セグメントLEDが、前回は消灯であったか否かを判定し、前回が消灯の場合はステップS6405に進んで7セグメントLEDを点灯し、前回が点灯の場合はステップS6404に進んで7セグメントLEDを消灯する。これにより、7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。   In step S6402, it is determined whether or not the special figure is changing. If applicable, the process proceeds to step S6403, and if not, the process proceeds to step S6406. In step S6403, it is determined whether or not the 7-segment LED constituting the special figure display device 5112 was previously turned off. If the previous time is off, the process proceeds to step S6405 and the 7-segment LED is turned on. In this case, the process proceeds to step S6404 and the 7-segment LED is turned off. As a result, lighting / extinguishing drive control for repeatedly turning on and off the 7-segment LED is performed.

ステップS6406では、特図変動停止であるか否かを判定し、該当する場合にはステップS6407に進み、該当しない場合は処理を終了する。   In step S6406, it is determined whether or not it is a special figure fluctuation stop. If applicable, the process proceeds to step S6407, and if not, the process ends.

ステップS6407では、大当りフラグの情報に応じて特図を停止表示する。具体的には、大当りフラグがオンで確変フラグがオフの場合には特図表示装置5114に、上述の特図1、大当りフラグがオンで確変フラグがオンの場合には特図表示装置5114に、上述の特図2、大当りフラグがオフの場合には、上述の特図3の態様となるように特図表示装置5112を構成する7セグメントLEDの点灯・消灯駆動制御を行う。   In step S6407, the special figure is stopped and displayed according to the information of the big hit flag. Specifically, when the big hit flag is on and the probability change flag is off, the special figure display device 5114 is displayed. When the big hit flag is on and the probability change flag is on, the special figure display device 5114 is displayed. When the above-mentioned special figure 2 and the big hit flag are off, the 7-segment LED constituting the special figure display device 5112 is controlled to be turned on / off so as to be in the above-described special figure 3 mode.

ステップ408では、停止表示期間を設定する。具体的には、所定の停止表示期間(例えば500m秒間)、特図の表示を維持するためにRAM5308に設けた特図停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により特図の停止表示をおこない、特図変動遊技の結果を遊技者に報知するようにしている。   In step 408, a stop display period is set. Specifically, information indicating the stop period is set in a storage area of a special figure stop time management timer provided in the RAM 5308 for maintaining a special figure display for a predetermined stop display period (for example, 500 milliseconds). With this setting, the special figure is stopped and displayed, and the result of the special figure variable game is notified to the player.

ステップS6409では、停止コマンドの出力設定を行った後、処理を終了する。具体的には、コマンド設定送信処理(上記ステップS6215)で一般コマンド回転停止設定送信処理を実行させるために上述の送信情報記憶領域に02Hを送信情報(一般情報)として追加記憶する。   In step S6409, after setting the output of the stop command, the process ends. Specifically, 02H is additionally stored as transmission information (general information) in the above-described transmission information storage area in order to execute the general command rotation stop setting transmission process in the command setting transmission process (step S6215 above).

また、図示はしないが、所定の停止表示期間が終了したタイミング(特図停止時間管理用タイマの値が1から0になったタイミング)で開始する特図状態更新処理では、大当りフラグがオンの場合には、所定の入賞演出期間(例えば3秒間)すなわち装飾図柄表示装置5110による大当りを開始することを遊技者に報知する画像を表示している期間待機するためにRAM5308に設けた特図待機時間管理用タイマの記憶領域に入賞演出期間を示す情報を設定する。また、所定の入賞演出期間が終了したタイミング(特図待機時間管理用タイマの値が1から0になったタイミング)で開始する特図状態更新処理では、所定の開放期間(例えば29秒間、または可変入賞口5130に所定球数(例えば10球)の遊技球の入賞を検出するまで)可変入賞口5130の扉部材の開閉駆動用のソレノイド5330に、扉部材を開放状態に保持する信号を出力するとともに、RAM5308に設けた扉開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。また、所定の開放期間が終了したタイミング(扉開放時間管理用タイマの値が1から0になったタイミング)で開始する特図状態更新処理では、所定の閉鎖期間(例えば1.5秒間)可変入賞口5130の扉部材の開閉駆動用のソレノイド5330に、扉部材を閉鎖状態に保持する信号を出力するとともに、RAM5308に設けた扉閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。また、この扉部材の開放・閉鎖制御を所定回数(例えば15ラウンド)繰り返し、終了したタイミングで開始する特図状態更新処理では、所定の終了演出期間(例えば3秒間)すなわち装飾図柄表示装置5110による大当りを終了することを遊技者に報知する画像を表示している期間待機するように設定するためにRAM5308に設けた演出待機時間管理用タイマの記憶領域に演出待機期間を示す情報を設定する。また、所定の終了演出期間が終了したタイミング(演出待機時間管理用タイマの値が1から0になったタイミング)で開始する特図状態更新処理では、特図の状態を非作動中に設定する。   Although not shown, in the special figure state update process that starts at the timing when the predetermined stop display period ends (the value of the special figure stop time management timer changes from 1 to 0), the big hit flag is on. In this case, a special figure standby provided in the RAM 5308 for waiting for a predetermined winning effect period (for example, 3 seconds), that is, a period during which an image for informing the player that the big win by the decorative symbol display device 5110 is started is displayed. Information indicating the winning effect period is set in the storage area of the time management timer. Also, in the special figure state update process that starts at the timing when the predetermined winning effect period ends (the timing when the special figure standby time management timer value changes from 1 to 0), a predetermined release period (for example, 29 seconds or A signal for holding the door member in an open state is output to the solenoid 5330 for opening and closing the door member of the variable prize opening 5130 (until a winning of a game ball of a predetermined number of balls (for example, 10 balls) is detected in the variable prize opening 5130). At the same time, information indicating the opening period is set in the storage area of the door opening time management timer provided in the RAM 5308. In the special figure state update process that starts at the timing when the predetermined opening period ends (the timing when the door opening time management timer value changes from 1 to 0), the predetermined closing period (for example, 1.5 seconds) is variable. A signal for holding the door member in a closed state is output to the solenoid 5330 for opening and closing the door member of the winning opening 5130, and information indicating the closing period is set in the storage area of the door closing time management timer provided in the RAM 5308. To do. Further, in the special figure state update process which is repeated at predetermined timing (for example, 15 rounds) and this door member opening / closing control is repeated a predetermined number of times (for example, 15 rounds), a predetermined end effect period (for example, 3 seconds), that is, by the decorative symbol display device 5110 Information indicating the effect standby period is set in the storage area of the effect standby time management timer provided in the RAM 5308 in order to set to wait for a period during which an image for informing the player of the end of the big hit is displayed. Further, in the special figure state update process which starts at the timing when the predetermined end production period ends (the timing when the production standby time management timer value changes from 1 to 0), the special figure state is set to inactive. .

ステップS6410では、大当りフラグをオフ(ハズレ)に設定し、ステップS6411では、特図の変動を停止する。また、次のステップS6412では、コマンド設定送信処理(上記ステップS6215)で乱数用クロック異常による停止設定送信処理を実行させるために上述の送信情報記憶領域に10Hを送信情報(一般情報)として追加記憶して処理を終了する。なお、乱数用クロックRCKに異常があった場合は、特図または/および普図の表示を消してもよい。
<払出制御部メイン処理>
In step S6410, the big hit flag is set to off (lost), and in step S6411, the fluctuation of the special figure is stopped. In the next step S6412, 10H is additionally stored as transmission information (general information) in the transmission information storage area in order to execute the stop setting transmission process due to the random number clock abnormality in the command setting transmission process (step S6215). To finish the process. If there is an abnormality in the random number clock RCK, the special figure or / and usual figure display may be deleted.
<Payment control unit main process>

次に、図261を用いて、払出制御部5550が実行する払出制御部メイン処理について説明する。なお、同図は払出制御部メイン処理の流れを示すフローチャートである。   Next, the payout control unit main process executed by the payout control unit 5550 will be described with reference to FIG. This figure is a flowchart showing the flow of the main process of the payout control unit.

払出制御部5550には、電源が投入されるとリセット信号を出力するリセット信号出力回路を設けている。このリセット信号を入力した払出制御部5400のCPUは、リセット割り込みによりリセットスタートしてROMに予め記憶している制御プログラムに従って処理を実行する。   The payout control unit 5550 is provided with a reset signal output circuit that outputs a reset signal when the power is turned on. The CPU of the payout control unit 5400 to which this reset signal has been input starts reset by a reset interrupt and executes processing in accordance with a control program stored in advance in the ROM.

ステップS6501では、初期設定1を行う。この初期設定1では、CPUのスタックポインタ(SP)へのスタック初期値の設定等を行う。   In step S6501, initial setting 1 is performed. In the initial setting 1, a stack initial value is set in the stack pointer (SP) of the CPU.

ステップS6502では、低電圧信号がオンであるか否か、すなわち、電圧監視回路が、電源管理部5650から払出制御部5550に供給している電源の電圧値が所定の値(本実施例では9V)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS6502の処理を繰り返し実行し、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS6503に進む。   In step S6502, whether or not the low voltage signal is ON, that is, the voltage value of the power source that the voltage monitoring circuit supplies to the payout control unit 5550 from the power management unit 5650 is a predetermined value (9V in this embodiment). ), It is monitored whether or not a low voltage signal indicating that the voltage has dropped is output. If the low voltage signal is on (when power-off is detected), step S6502 is repeated. If the low voltage signal is off (when power-off is not detected), step S6502 is performed. The process proceeds to S6503.

ステップS6503では、初期設定2を行う。この初期設定2では、後述する払出制御部タイマ割り込み処理を定期毎に実行するための周期を決める数値をカウンタ・タイマに設定する処理、RAMへの書き込みを許可する設定、I/Oポートの初期設定等を行う。   In step S6503, initial setting 2 is performed. In this initial setting 2, processing for setting a numerical value for determining a cycle for executing a payout control unit timer interrupt processing, which will be described later, in the counter timer, setting for permitting writing to the RAM, initial setting of the I / O port Make settings.

ステップS6504では、電源の遮断前(電断前)の状態に復帰するか否かの判定を行い、電断前の状態に復帰しない場合(パチンコ機5100を初期状態にする場合)にはステップS6506に進み、電断前の状態に復帰する場合にはステップS6505に進む。   In step S6504, it is determined whether or not to return to the state before power interruption (before power interruption). If the state before power interruption does not return (when the pachinko machine 5100 is set to the initial state), step S6506 is performed. If the process returns to the state before the power interruption, the process proceeds to step S6505.

具体的には、最初に、電源基板に設けた操作部を遊技店の店員などが操作した場合に送信されるRAMクリア信号がオン(操作があったことを示す)であるか否か、すなわちRAMクリアが必要であるか否かを判定し、RAMクリア信号がオンの場合(RAMクリアが必要な場合)には、パチンコ機5100を初期状態にすべくステップS6506に進む。一方、RAMクリア信号がオフの場合(RAMクリアが必要でない場合)は、RAMに設けた電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、この電源ステータスの情報がサスペンドを示す情報であるか否かを判定する。そして、電源ステータスの情報がサスペンドを示す情報でない場合には、パチンコ機5100を初期状態にすべくステップS6506に進み、電源ステータスの情報がサスペンドを示す情報である場合には、RAMの所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出し、算出したチェックサムの結果が特定の値(例えば0)であるか否か(チェックサムの結果が正常であるか否か)を判定する。そして、チェックサムの結果が0の場合(チェックサムの結果が正常である場合)には電断前の状態に復帰すべくステップS6505に進み、チェックサムの結果が0以外である場合(チェックサムの結果が異常である場合)には、パチンコ機5100を初期状態にすべくステップS6506に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS6506に進む。   Specifically, first, a RAM clear signal transmitted when a store clerk or the like of the game shop operates the operation unit provided on the power supply board is turned on (indicating that there is an operation), that is, It is determined whether or not RAM clear is necessary. If the RAM clear signal is on (RAM clear is necessary), the process advances to step S6506 to set the pachinko machine 5100 to an initial state. On the other hand, when the RAM clear signal is OFF (when the RAM clear is not necessary), the power status information stored in the power status storage area provided in the RAM is read, and whether the power status information is information indicating suspend. Determine whether or not. If the power status information is not information indicating suspend, the process proceeds to step S6506 to set the pachinko machine 5100 to an initial state. If the power status information is information indicating suspend, a predetermined area of the RAM is stored. A checksum is calculated by adding all the 1-byte data stored in (for example, all areas) to a 1-byte register whose initial value is 0, and the calculated checksum results in a specific value (for example, 0) (whether or not the checksum result is normal). If the checksum result is 0 (if the checksum result is normal), the process advances to step S6505 to return to the state before the power interruption. If the checksum result is other than 0 (checksum) If the result is abnormal), the process advances to step S6506 to set the pachinko machine 5100 to an initial state. Similarly, if the power status information indicates information other than “suspend”, the process advances to step S6506.

ステップS6505では、復電時処理を行う。この復電時処理では、RAMの記憶領域のうち、復電時にクリアすべき記憶領域(コマンドを格納するためのコマンドバッファ、エラー状態を記憶するためのエラーステータスなどを除く記憶領域)の初期化などを行う。   In step S6505, power recovery processing is performed. In this power recovery process, initialization of the RAM storage area to be cleared upon power recovery (the command buffer for storing commands, the storage area excluding error status for storing error status, etc.) is initialized. And so on.

ステップS6506では、初期化処理を行う。この初期化処理では、割り込み禁止の設定、スタックポインタへのスタック初期値の設定、RAMの所定の領域(例えば、全ての記憶領域)の初期化などを行う。   In step S6506, initialization processing is performed. In this initialization process, interrupt prohibition setting, stack initial value setting to the stack pointer, predetermined areas (for example, all storage areas) of the RAM, and the like are performed.

ステップS6507では、初期設定3を行う。この初期設定3では、RAMに設けたエラーステータス記憶領域に記憶したエラーステータスのうち、不正払出エラーと払出超過エラー以外の情報をクリアしたり、割り込み許可の設定などを行う。   In step S6507, initial setting 3 is performed. In the initial setting 3, information other than the illegal payout error and the payout excess error among the error statuses stored in the error status storage area provided in the RAM is cleared, interrupt permission is set, and the like.

ステップS6508では、主制御部5300から入力したデータの中に未解析データがあるか無いかを判定し、未解析データがある場合にはステップS6509でコマンド解析処理を行い、未解析データがない場合にはステップS6510に進む。   In step S6508, it is determined whether or not there is unanalyzed data in the data input from the main control unit 5300. If there is unanalyzed data, command analysis processing is performed in step S6509, and there is no unanalyzed data. Then, the process proceeds to step S6510.

ステップS6510では、低電圧信号がオフであるか否かを監視し、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS6508に戻り、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS6511に進む。   In step S6510, it is monitored whether or not the low voltage signal is off. If the low voltage signal is off (when power-off is not detected), the process returns to step S6508, and the low voltage signal is on. In the case of detecting a power shutdown, the process proceeds to step S6511.

ステップS6511では、電断時処理を行う。この電断時処理では、RAMに設けたスタックポインタ退避領域に現在のスタックポインタの値を記憶し、上述の電源ステータス記憶領域にサスペンドを示す情報を設定する。また、RAMの所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算し、チェックサム算出用数値記憶領域に記憶している値からその加算した結果を減算した値をチェックサム(電断時チェックサム)として算出し、算出した電断時チェックサムを上述のチェックサム算出用数値記憶領域に記憶し、RAMへの書き込みを禁止する設定などを行う。   In step S6511, a power interruption process is performed. In the power interruption process, the current stack pointer value is stored in the stack pointer save area provided in the RAM, and information indicating suspend is set in the power status storage area. Further, all 1-byte data stored in a predetermined area (for example, all areas) of the RAM is added to a 1-byte register whose initial value is 0 and stored in a checksum calculation numerical storage area. The value obtained by subtracting the result of addition from the value is calculated as a checksum (checksum at power interruption), and the calculated checksum at power interruption is stored in the above-mentioned numerical storage area for checksum calculation, and written to the RAM. Perform prohibited settings.

ステップS6512では、低電圧信号がオンであるか否かを監視し、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS6512の処理を繰返し実行して低電圧信号がオフになるのを待ち、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS6501に戻り、払出制御部リセット割り込み処理を最初から開始する。
<払出制御部タイマ割り込み処理>
In step S6512, it is monitored whether or not the low voltage signal is on. When the low voltage signal is on (when power-off is detected), the process of step S6512 is repeatedly executed to turn off the low voltage signal. When the low-voltage signal is off (when power-off is not detected), the process returns to step S6501, and the payout control unit reset interrupt process is started from the beginning.
<Discharge control unit timer interrupt processing>

次に、図262(a)を用いて、払出制御部5550のCPUが実行する払出制御部タイマ割り込み処理について説明する。なお、同図は払出制御部タイマ割り込み処理の流れを示すフローチャートである。   Next, a payout control unit timer interrupt process executed by the CPU of the payout control unit 5550 will be described with reference to FIG. This figure is a flowchart showing the flow of the payout control unit timer interrupt process.

払出制御部5550は、所定の周期(本実施例では1msに1回)でタイマ割り込みを発生するカウンタ・タイマを備えており、このタイマ割り込みを契機として払出制御部タイマ割り込み処理を所定の周期で開始する。   The payout control unit 5550 includes a counter / timer that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 1 ms). With this timer interrupt, the payout control unit timer interrupt processing is performed at a predetermined cycle. Start.

ステップS6601では、タイマ割り込みスタート処理を行う。このタイマ割り込みスタート処理では、CPUの各レジスタの値をスタック領域に一時的に退避する処理などを行う。ステップS6602では、ポート入力管理処理を行う。このポート入力管理処理では、I/Oポートの値を取得して、各種センサの状態などを検出する。   In step S6601, timer interrupt start processing is performed. In this timer interrupt start process, a process of temporarily saving the value of each register of the CPU to the stack area is performed. In step S6602, port input management processing is performed. In this port input management process, the value of the I / O port is acquired and the state of various sensors is detected.

ステップS6603では、タイマ更新管理処理を行う。このタイマ更新管理処理では、払出報知用LEDの点灯/消灯時間、モータ駆動/非駆動時間などを計時するためのタイマなどを含む各種タイマを更新する。   In step S6603, timer update management processing is performed. In this timer update management process, various timers including timers for measuring the lighting / extinguishing time of the payout notification LED, motor driving / non-driving time, and the like are updated.

ステップS6604では、エラー管理処理を行う。このエラー管理処理では、主制御部5300から乱数クロック異常コマンドを受信しているか否かを判定し、該当する場合にはRAMに設けたエラーステータス記憶領域に乱数クロック異常を示す情報を記憶する。また、I/Oポートに入力する皿満杯信号を検出して皿満杯信号がオンであるか否かを判定し、皿満杯信号がオンの場合(下皿5150が球で一杯になっている場合)には、RAMに設けたエラーステータス記憶領域に皿満杯エラーを示す情報を記憶し、皿満杯信号がオフの場合(下皿5150に球を貯留する空きができた場合)には、エラーステータス記憶領域に皿満杯エラーの解除を示す情報を記憶する。また、主制御部5300と払出制御部5550との間の通信回線が断線などにより通信可能かどうかを検出し、通信可能な場合には、RAMに設けたエラーステータス記憶領域に通信可能であることを示す情報を、また通信不可能な場合には通信不可能であることを示す情報を記憶する。また、エラー管理処理では、I/Oポートに入力するエラー解除スイッチ信号を検出してエラー解除信号がオンであるか否かを判定し、エラー解除信号がオンである場合には、エラーステータス記憶領域に記憶している、乱数クロック異常を示す情報、不正払出エラーの情報、または、払出超過エラーの情報を初期化して、これらのエラーを解除する。   In step S6604, error management processing is performed. In this error management process, it is determined whether or not a random number clock abnormality command is received from the main control unit 5300, and if applicable, information indicating random number clock abnormality is stored in an error status storage area provided in the RAM. Also, a dish full signal input to the I / O port is detected to determine whether or not the dish full signal is on. When the dish full signal is on (when the lower plate 5150 is full of balls) ) Stores information indicating the dish full error in the error status storage area provided in the RAM, and when the dish full signal is OFF (when there is a free space for storing balls in the lower plate 5150), the error status Information indicating the release of the dish full error is stored in the storage area. Further, it is detected whether the communication line between the main control unit 5300 and the payout control unit 5550 is communicable due to disconnection or the like, and if communication is possible, it is possible to communicate with the error status storage area provided in the RAM. In addition, information indicating that communication is impossible is stored when communication is impossible. In the error management process, an error release switch signal input to the I / O port is detected to determine whether the error release signal is on. If the error release signal is on, an error status is stored. The information indicating the random number clock abnormality, the illegal payout error information, or the payout excess error information stored in the area is initialized, and these errors are canceled.

なお、乱数クロック異常を示す情報に関しては、他のエラーと異なりエラー解除スイッチ信号を検出した場合でもエラーが解除されないようにしてもよい。なぜなら、乱数クロック異常の場合は、エラーを復帰した場合に保留された特図の変動を行うとして、その特図抽選にかかる乱数の信頼性が極めて低いため、エラー解除で復帰させて変動後の遊技を行わせたくない場合があるためである。また、「複数の異常状態があり、第1の種類の異常状態は異常解除入力により異常状態を解除可能に設けられ、第2の種類の異常状態は異常解除入力により異常状態を解除不能に設けられ、第2の種類の異常状態は少なくとも乱数クロックの異常状態を含む」ことは、他の制御部やスロットマシンにも適用できる。この場合、「第2の種類の異常状態は、電源断時にもバックアップにより第2の種類の異常状態の記憶が保持されるようにし」てもよく、さらに「第2の種類の異常状態の記憶は、第2の種類の異常状態を含む複数の記憶情報の初期化により記憶を解除できるようにし」てもよく、さらに「複数の記憶情報は、遊技者の利益に関わる情報」を含んでもよく、さらに「遊技者の利益に関わる情報は乱数クロックに基づいて生成される乱数に基づいて抽選により決定される情報」であってもよい。これにより、乱数クロック異常を確実に報知できると共に、乱数クロックに異常があった場合に、乱数クロックにより基づいて抽選された利益を確実にクリアすることができるため、乱数クロック周波数の異常により遊技店が不利益を被ることを防止することができる。   Note that, regarding information indicating random clock anomaly, unlike other errors, the error may not be canceled even when an error cancellation switch signal is detected. Because, in the case of random clock anomaly, the special figure that is held when the error is restored is changed, and the reliability of the random number for the special figure lottery is very low. This is because there is a case where it is not desired to play a game. Also, “There are multiple abnormal states, the first type of abnormal state is provided so that the abnormal state can be canceled by an abnormal release input, and the second type of abnormal state is provided so that the abnormal state cannot be canceled by an abnormal release input. "The second type of abnormal state includes at least the abnormal state of the random number clock" can be applied to other control units and slot machines. In this case, “the second type of abnormal state may be stored in the second type of abnormal state by backup even when the power is turned off”, and further, “the second type of abnormal state is stored. "Can be released by initializing a plurality of stored information including the second type of abnormal state", and may further include "a plurality of stored information related to the interests of the player" Furthermore, “the information related to the player's profit may be information determined by lottery based on a random number generated based on a random number clock”. As a result, it is possible to reliably notify the abnormality of the random number clock, and when there is an abnormality in the random number clock, it is possible to reliably clear the profits drawn based on the random number clock. Can be prevented from suffering disadvantages.

ステップS6605では、CRユニット通信管理処理を行う。このCRユニット通信管理処理では、上述のエラーステータス記憶領域に乱数クロック異常を示す情報が記憶されているか否かを判定し、乱数クロック異常を示す情報が記憶されている場合には、遊技媒体の貸出を行わないようにする。また、CRユニットに対してカードを返却する信号を出力しないようにする。具体的には、遊技媒体の貸出処理を飛ばしたり、CRユニットの返却処理を飛ばしたりする。一方、乱数クロック異常を示す情報が記憶されていない場合には、インターフェース部5556から遊技媒体貸出信号を受信して遊技媒体貸出信号センサ信号がオンであるか否かを判定し、遊技媒体貸出信号がオンの場合(インターフェース部5556からの球貸要求を入力した場合)には、RAMに設けた遊技媒体貸出情報記憶領域に遊技媒体の貸出要求があったことを示す情報を記憶する。   In step S6605, CR unit communication management processing is performed. In this CR unit communication management process, it is determined whether or not information indicating random number clock abnormality is stored in the error status storage area described above, and if information indicating random number clock abnormality is stored, Avoid lending. Also, a signal for returning the card to the CR unit is not output. Specifically, the game media lending process is skipped, or the CR unit return process is skipped. On the other hand, when information indicating random clock anomaly is not stored, it is determined whether or not the game medium lending signal sensor signal is turned on by receiving the game medium lending signal from the interface unit 5556, and the game medium lending signal. Is turned on (when a ball lending request is input from the interface unit 5556), information indicating that there is a game medium lending request is stored in the game medium lending information storage area provided in the RAM.

ステップS6606では、払出管理処理を行う。この払出管理処理では、上述のエラーステータス記憶領域から、乱数クロック異常を示す情報、不正払出エラーの情報、および払出超過エラーの情報を読み出し、いずれのエラーも発生していない場合に、センサ回路を介して入力する払出センサの信号(以下、払出センサ信号と称する場合がある)に基づいて払出個数の監視を行う。すなわち、所定のエラー(ここでは、いずれかのエラー)が発生している場合にはモータの駆動、すなわち払出装置からの賞媒体(例えば遊技球)の払出を停止するようにしている。   In step S6606, a payout management process is performed. In this payout management process, the information indicating the random number clock abnormality, the information on the illegal payout error, and the information on the payout excess error are read from the above-described error status storage area. The number of payouts is monitored based on a payout sensor signal (hereinafter, sometimes referred to as a payout sensor signal) input via the terminal. That is, when a predetermined error (one of the errors in this case) has occurred, the driving of the motor, that is, the payout of a prize medium (for example, a game ball) from the payout device is stopped.

また、上述のエラーステータス記憶領域から、乱数クロック異常を示す情報、皿満杯エラーの情報、不正払出エラーの情報、および払出超過エラーの情報を読み出し、いずれのエラーも発生していない場合に、払出開始監視処理、初期位置検索動作処理、通常払出動作処理、リトライ動作処理、逆回転動作処理のいずれかの処理を行う。   Also, from the error status storage area described above, information indicating random clock error, dish full error information, illegal payout error information, and payout excess error information are read, and if any error has not occurred, payout One of start monitoring processing, initial position search operation processing, normal payout operation processing, retry operation processing, and reverse rotation operation processing is performed.

払出開始監視処理では、貸出要求数、および賞球要求数が0であり、次賞球要求数が0以外の場合は、賞球要求数に次賞球要求数をセットし、次賞球要求数をクリアする。また、スプロケットを駆動するモータの位置が不確定の場合(動作モードが初期位置検索動作モードの場合)には、払出完了数チェックから1を減算して払出完了数チェック記憶領域に記憶し、スプロケットを駆動するモータの位置が確定している場合(動作モードが通常払出動作モードの場合)には、払出完了数チェックとして払出完了数チェック記憶領域に0を設定する。また、賞球要求数を、スプロケットのモータを駆動する量(モータ駆動量)に変換し、これをRAMに設けたモータ駆動量記憶領域に記憶すると共に、RAMに設けたモータ制御データテーブルを参照してモータ駆動量に対応するモータ駆動制御データを選択し、正転を示すモータ駆動制御データをI/Oポートを介してモータ制御回路に出力する。これにより、モータ制御回路はスプロケットのモータの励磁位置を所定回変化してスプロケットを正方向に回転駆動する。   In the payout start monitoring process, when the number of lending requests and the number of requested prize balls are 0, and the number of requested next prize balls is other than 0, the number of requested next prize balls is set as the number of requested prize balls, and the next prize ball request Clear the number. If the position of the motor driving the sprocket is uncertain (when the operation mode is the initial position search operation mode), 1 is subtracted from the payout completion number check and stored in the payout completion number check storage area. When the position of the motor for driving is fixed (when the operation mode is the normal payout operation mode), 0 is set in the payout completion number check storage area as the payout completion number check. Also, the number of prize balls requested is converted into an amount for driving the motor of the sprocket (motor drive amount), which is stored in the motor drive amount storage area provided in the RAM, and the motor control data table provided in the RAM is referenced. Then, motor drive control data corresponding to the motor drive amount is selected, and motor drive control data indicating normal rotation is output to the motor control circuit via the I / O port. As a result, the motor control circuit changes the excitation position of the motor of the sprocket a predetermined number of times to rotate the sprocket in the forward direction.

初期位置検索動作処理および通常払出動作処理では、モータの駆動終了後に、払出完了数チェック記憶領域から払出完了チェックを読み出し、払出完了チェックが0の場合には、払出開始監視処理を実行する準備を行い、払出完了チェックが0以外の場合には、エラーステータス記憶領域に払出装置エラーを示す情報を設定すると共に、リトライ動作処理を実行する準備を行う。   In the initial position search operation process and the normal payout operation process, after the motor has been driven, a payout completion check is read from the payout completion number check storage area, and when the payout completion check is 0, preparation for executing the payout start monitoring process is performed. If the payout completion check is other than 0, information indicating the payout device error is set in the error status storage area, and preparation for executing the retry operation process is performed.

リトライ動作処理では、所定の時間が経過するのを待ち(リトライ動作開始待ちタイマが0になるのを待ち)、リトライ動作開始待ちタイマが0になった場合には、逆回転動作処理を実行する準備を行う。逆回転操作処理では、上述のモータ制御データテーブルを参照してモータ駆動量に対応するモータ駆動制御データを選択し、逆転を示すモータ駆動制御データをI/Oポートを介してモータ制御回路に出力する。これにより、モータ制御回路はスプロケットのモータの励磁位置を所定回変化してスプロケットを逆回転駆動する。また、逆回転操作処理では、モータの駆動終了後に払出開始監視処理を実行する準備を行う。   In the retry operation process, wait for a predetermined time to elapse (wait for the retry operation start wait timer to become 0), and when the retry operation start wait timer becomes 0, execute the reverse rotation operation process. Make preparations. In the reverse rotation operation process, motor drive control data corresponding to the motor drive amount is selected with reference to the motor control data table described above, and motor drive control data indicating reverse rotation is output to the motor control circuit via the I / O port. To do. As a result, the motor control circuit changes the excitation position of the motor of the sprocket a predetermined number of times to drive the sprocket in a reverse rotation. Further, in the reverse rotation operation process, preparation is made for executing the payout start monitoring process after the motor is driven.

ステップS6607では、モータ駆動管理処理を行う。このモータ駆動管理処理では、駆動開始監視処理、加速駆動処理、定速駆動処理、ブレーキ駆動処理、駆動終了処理のいずれかの処理を行う。   In step S6607, motor drive management processing is performed. In the motor drive management process, any one of a drive start monitoring process, an acceleration drive process, a constant speed drive process, a brake drive process, and a drive end process is performed.

駆動開始監視処理では、上述のエラーステータス記憶領域から、乱数クロック異常を示す情報、皿満杯エラーの情報、不正払出エラーの情報、および払出超過エラーの情報を読み出し、いずれのエラーも発生していない場合に、モータ制御データテーブルを参照してモータ駆動量に対応するモータ駆動制御データを選択し、正転を示すモータ駆動制御データをI/Oポートを介してモータ制御回路に出力する。これにより、モータ制御回路はスプロケットのモータの励磁位置を所定回変化してスプロケットを正方向に回転駆動する。   In the drive start monitoring process, information indicating a random clock error, dish full error information, illegal payout error information, and payout excess error information are read from the error status storage area described above, and no error has occurred. In this case, motor drive control data corresponding to the motor drive amount is selected with reference to the motor control data table, and motor drive control data indicating normal rotation is output to the motor control circuit via the I / O port. As a result, the motor control circuit changes the excitation position of the motor of the sprocket a predetermined number of times to rotate the sprocket in the forward direction.

加速駆動処理および定速駆動処理では、スプロケットが初期位置検索動作中、または、逆回転動作中の場合を除き、モータの励磁位置を16回変化させるごとに払出完了数チェックから1を減算して払出完了数チェック記憶領域に記憶する。また、更新後の払出完了数チェックが−4未満になった場合には、ブレーキ駆動処理を実行する準備を行う。さらに、上述の遊技媒体貸出情報記憶領域から遊技媒体貸出情報を読み出して、遊技媒体の貸出要求があったことを示す情報の有無を判定し、遊技媒体の貸出要求があったことを示す情報がある場合(賞球の払出中にインターフェース部5556からの球貸要求を入力した場合)にも、ブレーキ駆動処理を実行する準備を行う。   In the acceleration drive processing and constant speed drive processing, 1 is subtracted from the payout completion number check every time the motor excitation position is changed 16 times, except when the sprocket is in the initial position search operation or reverse rotation operation. Store in the payout completion number check storage area. When the updated payout completion number check is less than −4, preparation for executing the brake drive process is made. Further, the game medium lending information is read from the above-mentioned game medium lending information storage area, the presence / absence of information indicating that there is a request for lending a game medium is determined, and information indicating that there is a request for lending a game medium is present. In some cases (when a ball lending request is input from the interface unit 5556 during the payout of award balls), preparations for executing the brake driving process are made.

ブレーキ駆動処理では、所定の時間が経過するのを待ち(モータ駆動管理タイマが0になるのを待ち)、モータ駆動管理タイマが0になった場合には、駆動終了処理を実行する準備を行い、駆動終了処理では、モータ駆動の後処理を行う。   In the brake drive process, it waits for a predetermined time to elapse (waits for the motor drive management timer to become 0), and when the motor drive management timer becomes 0, prepares to execute the drive end process In the drive end process, a post-process for driving the motor is performed.

ステップS6608では、LED管理処理を行う。このLED管理処理では、エラーステータス記憶領域の乱数クロック異常を示す情報が異常を示している場合には、乱数用クロックの周波数に異常が発生していることを遊技者に報知するためのLEDを点灯させ、エラーステータス記憶領域の乱数クロック異常を示す情報が異常を示していない場合には、そのLEDを消灯させる。また、エラーステータス記憶領域の不正払出エラー情報が不正払出エラーが発生中であることを示している場合には、不正払出エラーが発生していることを遊技者に報知するためのLEDを点灯させるとともに、不正払出エラーが発生していないことを示している場合にはそのLEDを消灯させる。また、エラーステータス記憶領域の払出超過エラー情報が払出超過エラーが発生中であることを示している場合には、払出超過エラーが発生していることを遊技者に報知するためのLEDを点灯させるとともに、払出超過エラーが発生していないことを示している場合にはそのLEDを消灯させる。   In step S6608, an LED management process is performed. In this LED management process, when the information indicating the abnormality of the random number clock in the error status storage area indicates an abnormality, an LED for notifying the player that an abnormality has occurred in the frequency of the random number clock is provided. When the information indicating the abnormality of the random number clock in the error status storage area does not indicate abnormality, the LED is turned off. In addition, when the illegal payout error information in the error status storage area indicates that an illegal payout error is occurring, an LED for notifying the player that an illegal payout error has occurred is turned on. At the same time, if it indicates that an illegal payout error has not occurred, the LED is turned off. In addition, when the payout excess error information in the error status storage area indicates that a payout excess error is occurring, an LED for notifying the player that a payout excess error has occurred is turned on. At the same time, when it indicates that no payout excess error has occurred, the LED is turned off.

ステップS6609では、信号出力管理処理を行う。この信号出力管理処理では、RAMに記憶している遊技情報(例えば払出センサ信号を入力するたびに出力する賞球信号)を、情報出力回路(図示省略)を介してパチンコ機5100とは別体の情報入力回路(図示省略)に出力する。   In step S6609, signal output management processing is performed. In this signal output management process, game information stored in the RAM (for example, a prize ball signal output each time a payout sensor signal is input) is separated from the pachinko machine 5100 via an information output circuit (not shown). To the information input circuit (not shown).

ステップS6610では、タイマ割り込みエンド処理を行う。このタイマ割り込みエンド処理では、ステップS6601で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割り込み許可の設定などを行う。
<ストローブ割り込み処理>
In step S6610, timer interrupt end processing is performed. In this timer interrupt end process, the value of each register temporarily saved in step S6601 is set in each original register, or interrupt permission is set.
<Strobe interrupt processing>

次に、図262(b)を用いて、払出制御部5550のCPUが実行するストローブ割り込み処理について説明する。なお、同図はストローブ割り込み処理の流れを示すフローチャートである。   Next, strobe interrupt processing executed by the CPU of the payout control unit 5550 will be described with reference to FIG. This figure is a flowchart showing the flow of strobe interrupt processing.

払出制御部5550には主制御部5300が出力するストローブ信号が入力されており、主制御部5300が払出制御部5550に対してコマンドを送信すると、このストローブ信号が払出制御部5550に入力され、払出制御部5550のCPUにストローブ割り込みが通知される。   The payout control unit 5550 receives a strobe signal output from the main control unit 5300. When the main control unit 5300 transmits a command to the payout control unit 5550, the strobe signal is input to the payout control unit 5550. A strobe interrupt is notified to the CPU of the payout control unit 5550.

ストローブ割り込みを検出した払出制御部5550のCPUは、ストローブ割り込み処理を実行し、ステップS6701において主制御部5300から受信したコマンドをRAMの所定記憶領域に記憶する。
<副制御部メイン処理>
The CPU of the payout control unit 5550 that has detected the strobe interrupt executes the strobe interrupt process, and stores the command received from the main control unit 5300 in the predetermined storage area of the RAM in step S6701.
<Sub control section main processing>

次に、図263(a)を用いて、副制御部5400のCPU5404が実行する副制御部メイン処理について説明する。なお、同図は副制御部メイン処理の流れを示すフローチャートである。   Next, the sub-control unit main process executed by the CPU 5404 of the sub-control unit 5400 will be described with reference to FIG. This figure is a flowchart showing the flow of the main process of the sub control unit.

副制御部5400には、電源が投入されるとリセット信号を出力するリセット信号出力回路を設けている。このリセット信号を入力した基本回路5402のCPU5404は、リセット割り込みによりリセットスタートしてROM406に予め記憶した制御プログラムに従って処理を実行し、まず、ステップS6801で各種の初期設定を行う。この初期設定では、入出力ポートの初期設定や、各種変数の初期化等を行う。ステップS6802では、コマンド入力処理(詳細は後述)を行う。   The sub-control unit 5400 is provided with a reset signal output circuit that outputs a reset signal when the power is turned on. The CPU 5404 of the basic circuit 5402 to which this reset signal is input starts resetting by a reset interrupt and executes processing in accordance with a control program stored in advance in the ROM 406. First, various initial settings are performed in step S6801. In this initial setting, initial setting of input / output ports, initialization of various variables, and the like are performed. In step S6802, command input processing (details will be described later) is performed.

ステップS6803では、I/O5410の出力ポートを介して副制御部5500にコマンドを出力する。ステップS6804では、後述するタイマ変数記憶領域の値が10以上であるか否かを判定する。タイマ変数記憶領域の値が10以上である場合はステップS6805に進み、タイマ変数記憶領域の値が10未満である場合にはステップS6802に進む。ステップS6805では、タイマ変数記憶領域に0を格納する。   In step S6803, a command is output to the sub control unit 5500 via the output port of the I / O 5410. In step S6804, it is determined whether the value of a timer variable storage area described later is 10 or more. When the value of the timer variable storage area is 10 or more, the process proceeds to step S6805, and when the value of the timer variable storage area is less than 10, the process proceeds to step S6802. In step S6805, 0 is stored in the timer variable storage area.

ステップS6806では、演出データ更新処理を行う。この演出データ更新処理では、後述するコマンド記憶領域の内容を確認し、主制御部5300から乱数クロック異常コマンドを受信しているか否かを判断する。そして、乱数クロック異常コマンドを受信している場合には、装飾図柄表示装置5110、遮蔽手段5250、スピーカ5416、各種ランプ5420および演出装置5200の演出用可動体等によって乱数クロックが異常であることを外部に報知するための動作制御データの更新を行う。一方、乱数クロック異常コマンドを受信していない場合には、後述する変動パターン選択処理で記憶する変動番号、仮停止図柄の組合せ、および停止図柄の組合せの種別の更新を行うと共に、装飾図柄の変動表示を開始してからの経過時間に基づいて装飾図柄表示装置5110、遮蔽手段5250、スピーカ5416、各種ランプ5420および演出装置5200の演出用可動体等による演出を制御するための動作制御データの更新を行う。   In step S6806, effect data update processing is performed. In this effect data update process, the contents of a command storage area to be described later are confirmed, and it is determined whether or not a random number clock abnormality command is received from the main control unit 5300. If the random clock abnormality command is received, the random number clock is abnormal due to the decorative symbol display device 5110, the shielding means 5250, the speaker 5416, the various lamps 5420, the effect movable body of the effect device 5200, and the like. The operation control data for notification to the outside is updated. On the other hand, if the random clock abnormality command has not been received, the variation number stored in the variation pattern selection process described later, the temporary stop symbol combination, and the stop symbol combination type are updated and the decorative symbol variation Updating of the operation control data for controlling the effects by the decorative symbol display device 5110, the shielding means 5250, the speaker 5416, the various lamps 5420, the effect movable body of the effect device 5200, etc. based on the elapsed time since the display was started. I do.

ステップS6806では、決定された演出情報が示している態様で装飾図柄変動表示を行うように次回実行する上記ステップS6803の処理で副制御部5500に出力するコマンド(例えば左に装飾7を停止することを指示するコマンドや遮蔽手段5250を動作させるコマンド等)をRAM5408に設けた液晶コマンド格納領域に格納する等、後述するステップS6807、S6808、S6809によるスピーカ5416、各種ランプ5420、および演出用可動体を制御する準備を行う。また、所定の条件が成立している場合には所定の演出を実行するか否か、例えばチャンスボタンを用いた演出を行うか否か等の抽選を行う。   In step S 6806, a command to be output to the sub-control unit 5500 in the process of step S 6803 to be executed next time so as to display the decoration symbol variation display in the manner indicated by the determined presentation information (for example, stop the decoration 7 on the left). For example, a command for operating the shielding means 5250 and a command for operating the shielding means 5250) are stored in a liquid crystal command storage area provided in the RAM 5408, and a speaker 5416, various lamps 5420, and a movable body for production are described in steps S6807, S6808, and S6809 described later. Prepare to control. Further, when a predetermined condition is satisfied, a lottery such as whether or not to execute a predetermined effect, for example, whether or not to perform an effect using a chance button, is performed.

ステップS6807では、音出力処理を行う。この音出力処理では、上記ステップS6806で取得したスピーカ制御用の情報に含まれるスピーカ5416に出力する音声データをI/O5410の出力ポートに設定し、スピーカ5416の出力制御を音源IC5418に行わせる。例えば、上記ステップS6806で乱数クロックが異常であることを外部に報知するための動作制御データがセットされている場合には、乱数クロックが異常であることをスピーカ5416を用いて音声(例えば、警告音)で報知させる。   In step S6807, a sound output process is performed. In this sound output process, the audio data to be output to the speaker 5416 included in the speaker control information acquired in step S6806 is set in the output port of the I / O 5410, and the sound source IC 5418 performs output control of the speaker 5416. For example, if operation control data for notifying the outside that the random number clock is abnormal is set in step S6806, a sound (for example, a warning) is output using the speaker 5416 that the random number clock is abnormal. Sound).

ステップS6808では、ランプ制御処理を行う。このランプ制御処理では、上記ステップS6806で取得した各種ランプ制御用の情報に含まれる各種ランプ5420に出力するランプの点灯・消灯を示すデータ等をI/O5410の出力ポートに設定し、各種ランプ5420の点灯や消灯の制御を表示回路5422に行わせる。例えば、上記ステップ806で乱数クロックが異常であることを外部に報知するための動作制御データがセットされている場合には、乱数クロックが異常であることを各種ランプ5420を用いて光(例えば、点滅表示)で報知させる。   In step S6808, a lamp control process is performed. In this lamp control process, data indicating lighting / extinguishing of lamps output to the various lamps 5420 included in the information for controlling various lamps acquired in step S6806 is set in the output port of the I / O 5410, and various lamps 5420 are displayed. The display circuit 5422 is controlled to turn on and off. For example, when the operation control data for notifying the outside that the random number clock is abnormal is set in step 806, light (for example, using various lamps 5420) that the random number clock is abnormal is set. (Flashing display).

ステップS6809では、演出用駆動装置制御処理を行う。この演出用駆動装置制御処理では、上記ステップS6806で取得した演出用可動体の制御用の情報に含まれる動作タイミングを示すデータ等をI/O5410の出力ポートに設定し、演出用可動体等を駆動する各種演出用駆動装置5424の制御を演出用駆動装置制御回路5426に行わせる。例えば、上記ステップS6806で乱数クロックが異常であることを外部に報知するための動作制御データがセットされている場合には、乱数クロックが異常であることを演出用可動体を用いて動き(例えば、停止)で報知させる。   In step S6809, an effect driving device control process is performed. In this effect driving device control process, the data indicating the operation timing included in the control information for the effect movable body acquired in step S6806 is set in the output port of the I / O 5410, and the effect movable object etc. The production drive device control circuit 5426 controls the various production drive devices 5424 to be driven. For example, when the operation control data for notifying the outside that the random number clock is abnormal is set in the step S6806, the fact that the random number clock is abnormal is moved using the effect movable body (for example, , Stop).

副制御部5400は、後述するストローブ処理、チャンスボタン処理、または副制御部タイマ割り込み処理による中断を除いて、以降、ステップS6802〜S6809の処理を繰り返し実行する。
<コマンド入力処理>
Sub-control unit 5400 repeatedly executes the processes of steps S6802 to S6809, except for interruption by strobe processing, chance button processing, or sub-control unit timer interrupt processing described later.
<Command input processing>

次に、図263(b)を用いて、上記副制御部メイン処理におけるコマンド入力処理について説明する。同図はコマンド入力処理の流れを示すフローチャートである。   Next, a command input process in the sub-control unit main process will be described with reference to FIG. 263 (b). This figure is a flowchart showing the flow of command input processing.

ステップS6810では、後述するコマンド記憶領域の内容を確認し、未処理のコマンドが残っているか否かを判断する。そして、コマンド記憶領域に未処理のコマンドが残っている場合にはステップS6812に進み、コマンド記憶領域に未処理のコマンドが残っていない場合には処理を終了して副制御部メイン処理に復帰する。   In step S6810, the contents of a command storage area to be described later are confirmed, and it is determined whether or not an unprocessed command remains. If an unprocessed command remains in the command storage area, the process proceeds to step S6812. If an unprocessed command does not remain in the command storage area, the process ends and returns to the sub-control unit main process. .

図263(c)は変動パターン選択処理の流れを示すフローチャートであり、同図(d)は図柄停止処理の流れを示すフローチャートである。ステップS6821では、コマンド記憶領域に記憶している未処理コマンドのうちの次に処理するべき未処理コマンドの種類に基づいて、図263(c)に示す変動パターン選択処理(例えば未処理コマンドが上記図柄変動開始コマンドに基づいて実行する)や、同図(d)に示す図柄停止処理等を行う。未処理コマンドに基づく処理は他にも備えている。例えば、大当り中に可変入賞口5130の開放制御を開始するたびに主制御部5300が出力し、大当り開始後の可変入賞口5130の開放回数を示す情報を含むラウンド開始コマンドが未処理コマンドである場合に行うラウンド開始処理等である。その他の処理は、ここでは割愛する。   FIG. 263 (c) is a flowchart showing the flow of the variation pattern selection process, and FIG. 263 (d) is a flowchart showing the flow of the symbol stop process. In step S6821, based on the type of unprocessed command to be processed next among the unprocessed commands stored in the command storage area, the variation pattern selection process shown in FIG. This is executed based on the symbol variation start command), symbol stop processing shown in FIG. There are other processes based on unprocessed commands. For example, a round start command that is output by the main control unit 5300 each time the opening control of the variable winning opening 5130 is started during the big hit, and includes information indicating the number of opening of the variable winning opening 5130 after the big win starts is an unprocessed command. For example, a round start process performed in some cases. Other processing is omitted here.

変動パターン選択処理のステップS6821では、未処理コマンドに含まれている上記大当りフラグの値、確変フラグの値、およびタイマ番号を抽出し、RAM5408のそれぞれの記憶領域に記憶する。また、上述の変動番号選択テーブルや図柄決定テーブルを参照して演出データ(本実施例では変動番号、仮停止図柄・停止図柄の組合せ等)を選択し、これをRAM5408に設けた記憶領域に記憶した後、処理を終了する。   In step S6821 of the variation pattern selection process, the jackpot flag value, the probability variation flag value, and the timer number included in the unprocessed command are extracted and stored in the respective storage areas of the RAM 5408. Further, referring to the above-described variation number selection table and symbol determination table, effect data (in this embodiment, variation number, temporary stop symbol / stop symbol combination, etc.) is selected and stored in a storage area provided in the RAM 5408. After that, the process ends.

図柄停止処理のステップS6841では、上記図柄記憶領域に記憶している停止図柄の組合せを構成する3つの装飾図柄を装飾図柄表示装置5110の左、中、右図柄表示領域5110a〜5110cの3つの表示領域に表示するように設定して処理を終了する。また、上記ラウンド開始処理では未処理コマンドに含まれている上記大当り開始後の可変入賞口5130の開放回数を示す情報を抽出し、RAM5408の記憶領域に記憶する。
<ストローブ割り込み処理>
In step S6841 of the symbol stop process, the three decorative symbols constituting the combination of the stopped symbols stored in the symbol storage area are displayed in the three symbols on the left, middle, and right symbol display areas 5110a to 5110c of the decorative symbol display device 5110. The setting is made to display in the area, and the process ends. In the round start process, information indicating the number of times the variable winning opening 5130 is opened after the jackpot start included in the unprocessed command is extracted and stored in the storage area of the RAM 5408.
<Strobe interrupt processing>

次に、図263(e)を用いて、副制御部5400のストローブ割り込み処理について説明する。なお、同図はストローブ割り込み処理の流れを示すフローチャートである。   Next, the strobe interrupt process of the sub control unit 5400 will be described using FIG. 263 (e). This figure is a flowchart showing the flow of strobe interrupt processing.

このストローブ割り込み処理は、副制御部5400が、主制御部5300が出力するストローブ信号を検出した場合に実行する処理である。ストローブ割り込み処理のステップS6861では、主制御部5300が出力したコマンドを未処理コマンドとしてRAM5408に設けた上記コマンド記憶領域に記憶する。
<チャンスボタン割り込み処理>
This strobe interrupt process is a process executed when the sub control unit 5400 detects a strobe signal output from the main control unit 5300. In step S6861 of the strobe interrupt process, the command output from the main controller 5300 is stored as an unprocessed command in the command storage area provided in the RAM 5408.
<Chance button interrupt processing>

次に、図263(f)を用いて、副制御部5400のチャンスボタン割り込み処理について説明する。なお、同図はチャンスボタン割り込み処理の流れを示すフローチャートである。   Next, the chance button interrupt process of the sub-control unit 5400 will be described using FIG. 263 (f). This figure is a flowchart showing the flow of chance button interrupt processing.

このチャンスボタン割り込み処理は、副制御部5400がチャンスボタン検出回路5364によってチャンスボタン5146の操作を検出した場合に実行する処理である。   This chance button interruption process is a process executed when the sub control unit 5400 detects an operation of the chance button 5146 by the chance button detection circuit 5364.

チャンスボタン割り込み処理のステップS6881では、RAM5408の検知カウンタ記憶領域に記憶している、チャンスボタン5146の押下回数を計測するための検知カウンタから値を取得し、取得した値に1を加算してから元の検知カウンタ記憶領域に記憶する。
<変数更新割り込み処理>
In step S6881 of the chance button interrupt process, a value is acquired from the detection counter for measuring the number of times the chance button 5146 is pressed, which is stored in the detection counter storage area of the RAM 5408, and 1 is added to the acquired value. Store in the original detection counter storage area.
<Variable update interrupt processing>

次に、図263(g)を用いて、副制御部5400のCPU5404によって実行する変数更新割り込み処理について説明する。なお、同図は変数更新割り込み処理の流れを示すフローチャートである。   Next, variable update interrupt processing executed by the CPU 5404 of the sub control unit 5400 will be described with reference to FIG. 263 (g). This figure is a flowchart showing the flow of variable update interrupt processing.

副制御部5400は、所定の周期(本実施例では2msに1回)でタイマ割り込みを発生するハードウェアタイマを備えており、このタイマ割り込みを契機として、変数更新割り込み処理を所定の周期で実行する。   The sub-control unit 5400 includes a hardware timer that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 2 ms), and executes variable update interrupt processing at a predetermined cycle triggered by this timer interrupt. To do.

変数更新割り込み処理のステップS6901では、RAM5408のタイマ変数記憶領域の値に1を加算して元のタイマ変数記憶領域に記憶する。従って、ステップS6304において、タイマ変数の値が10以上と判定されるのは20ms毎(2ms×10)となる。
<基本回路302のパッケージ>
In step S6901 of the variable update interrupt process, 1 is added to the value of the timer variable storage area of the RAM 5408, and the result is stored in the original timer variable storage area. Accordingly, in step S6304, the value of the timer variable is determined to be 10 or more every 20 ms (2 ms × 10).
<Package of basic circuit 302>

次に、上述の主制御部5300の基本回路5302が搭載されるパッケージについて詳細に説明する。図264(a)は、基本回路5302が搭載されるパッケージ5680の外観斜視図であり、同図(b)は、パッケージ5680の視認非容易部の近傍を示す側面図である。   Next, a package in which the basic circuit 5302 of the main controller 5300 described above is mounted will be described in detail. FIG. 264 (a) is an external perspective view of a package 5680 on which the basic circuit 5302 is mounted, and FIG. 264 (b) is a side view showing the vicinity of a visually uneasy portion of the package 5680.

パッケージ5680の短手方向両側には、パッケージ5680の長手方向に沿って複数の端子5682が配置されているが、パッケージ(マイクロコンピュータ)5680は、端子5682を設けることで該端子5682によって、該マイクロコンピュータ5680の裏面における第一の領域(例えば、裏面下方の空間)、該裏面に対向する前記基板の表面における第二の領域(例えば、表面上方の空間)および前記裏面と前記表面との間の空間における第三の領域(例えば、ICソケットを介してマイクロコンピュータを基板に実装する場合には、ICソケットの表面や裏面近傍の空間を含む)のうちの少なくとも一つである特定の領域を視認困難にする視認非容易部5680aと、端子5682を設けないことによって、視認非容易部5680aよりも特定の領域を視認容易にする視認容易部5680bと、を有して構成されている。   A plurality of terminals 5682 are arranged along the longitudinal direction of the package 5680 on both sides of the package 5680 in the short side direction. The package (microcomputer) 5680 is provided with the terminals 5682, and the terminals 5682 are used to A first region on the back surface of the computer 5680 (for example, a space below the back surface), a second region on the surface of the substrate facing the back surface (for example, a space above the surface), and between the back surface and the surface A specific area that is at least one of the third areas in the space (for example, when the microcomputer is mounted on the substrate via the IC socket, includes the space near the front and back surfaces of the IC socket). By not providing the difficult-to-view part 5680a and the terminal 5682, the visually-not easy part 5 And it is configured with a, and viewing ease portion 5680b to facilitate viewing the particular area than 80a.

このような構成により、視認容易部5680bを通してパッケージ5680の一方側(例えば、表側)から他方側(例えば、裏側)を視認することが可能となるため、例えば、パッケージ5680の裏側や、パッケージ5680と基板(またはICソケット)の隙間などに不正な回路を後付けするような不正行為を容易に発見することができ、不正行為を未然に防止できる場合がある。   With such a configuration, the other side (for example, the back side) of the package 5680 can be visually recognized from the one side (for example, the front side) of the package 5680 through the easy-to-view part 5680b. In some cases, it is possible to easily find a fraudulent act such as attaching a fraudulent circuit to a gap between substrates (or IC sockets), and to prevent the fraudulent act.

特に、この例では視認容易部5680bを短手方向側面に設けているため、長手方向側面に設けた場合に比べ、パッケージ5680の裏側の中でも特に視認することが難しく、かつ不正部品などが取付し易い裏側中央近傍を間近で視認することが可能となり、より確実に不正行為を防止できる場合がある。さらに、視認容易部5680bを長手方向の中央部近傍に設けているため、長手方向の端部近傍に設けた場合に比べ、パッケージ5680の裏側の広い範囲をいろいろな角度から視認することが可能で、より確実に不正行為を防止できる場合がある。なお、視認容易部を長手方向側面にも設ければ、視認範囲をさらに広げることができ、より確実に不正行為を防止できる場合がある。
<パッケージの変形例>
In particular, in this example, the easy-to-view part 5680b is provided on the side surface in the short direction, so that it is particularly difficult to see the back side of the package 5680 compared to the case where it is provided on the side surface in the longitudinal direction. It is possible to visually recognize the vicinity of the center of the back side that is easy, and there are cases where fraud can be prevented more reliably. Furthermore, since the easy-to-view part 5680b is provided in the vicinity of the central part in the longitudinal direction, it is possible to visually recognize a wide range on the back side of the package 5680 from various angles as compared with the case where it is provided in the vicinity of the end part in the longitudinal direction. In some cases, fraud can be prevented more reliably. Note that if the easy-to-view part is also provided on the side surface in the longitudinal direction, the visible range can be further expanded, and illegal acts may be prevented more reliably.
<Package modification>

次に、パッケージ5700の変形例について説明する。図265(a)は、基本回路5302が搭載されるパッケージ5700の平面図であり、同図(b)は、パッケージ5700の端子と下側基板のみを抜き出して示す外観斜視図である。   Next, a modified example of the package 5700 will be described. FIG. 265 (a) is a plan view of a package 5700 on which the basic circuit 5302 is mounted, and FIG. 265 (b) is an external perspective view showing only the terminals of the package 5700 and the lower substrate.

パッケージ5700は、板状体の上側基板5702および下側基板5704と、これらの上側基板5702および下側基板5704の間に挟まれるように配置される基本回路(CPUコア)5302と、この基本回路5302の接続端子の各々にボンディングワイヤを介して接続される複数の端子(リードフレーム)5706と、を備えており、複数の端子5706が短手方向両側に長手方向に沿って配設されたDIP(Dual Inline Package)である。パッケージ5700の上側基板5702および下側基板5704の各々は、透明部材からなる視認容易部5702a、5704aと、非透明部材からなる視認非容易部5702b、5704bを、長手方向に交互に配置して構成されている。なお、上側基板5702における視認容易部5702aと下側基板5704における視認容易部5704aは、長手方向の同じ位置に積層され、上側基板5702における視認非容易部5702bと下側基板5704における視認非容易部5704bは、長手方向の同じ位置に積層されている。   The package 5700 includes a plate-like upper substrate 5702 and lower substrate 5704, a basic circuit (CPU core) 5302 disposed so as to be sandwiched between the upper substrate 5702 and lower substrate 5704, and the basic circuit. A plurality of terminals (lead frames) 5706 connected to each of the connection terminals 5302 via bonding wires, and the plurality of terminals 5706 are disposed along the longitudinal direction on both sides in the short direction. (Dual Inline Package). Each of the upper substrate 5702 and the lower substrate 5704 of the package 5700 is configured by alternately arranging easy-to-view parts 5702a and 5704a made of transparent members and non-viewable parts 5702b and 5704b made of non-transparent members in the longitudinal direction. Has been. The easy-to-view part 5702a on the upper substrate 5702 and the easy-to-view part 5704a on the lower substrate 5704 are stacked at the same position in the longitudinal direction, and the non-viewable part 5702b on the upper substrate 5702 and the non-viewable part on the lower substrate 5704 are stacked. 5704b is laminated | stacked on the same position of a longitudinal direction.

このような構成により、視認容易部5702a、5704aを通してパッケージ5700の一方側(例えば、表側)から他方側(例えば、裏側)を視認することが可能となるため、例えば、パッケージ5700の裏側や、パッケージ5700と基板(またはICソケット)の隙間などに不正な回路を後付けするような不正行為を容易に発見することができ、不正行為を未然に防止できる場合がある。   With such a configuration, the other side (for example, the back side) of the package 5700 can be visually recognized from the one side (for example, the front side) through the easy-to-view parts 5702a and 5704a. In some cases, it is possible to easily find a fraudulent act such as attaching a fraudulent circuit to the gap between the 5700 and the board (or IC socket), and to prevent the fraudulent act.

なお、視認容易部5702a、5704aは、パッケージ5700の裏側が視認可能な部材で構成されていればよく、例えば、全体が半透明部材で構成されていてもよく、また、少なくとも一部が透明部材や半透明部材で構成され、他の部位が非透明部材で構成されていてもよい。また、視認非容易部5702b、5704bは、パッケージ5700の裏側が視認不能または視認困難な部材で構成されていればよく、例えば、全体が視認不能または視認困難な半透明部材で構成されていてもよい。また、視認容易部5702a、5704aと視認非容易部5702b、5704bを、長手方向の同じ位置に交互に配置したが、例えば、視認容易部5702a、5704aのみでパッケージを形成してもよく、また、視認容易部5702a、5704aと視認非容易部5702b、5704bを、短手方向に交互に配置してもよい。
<パッケージの変形例/変形例1>
Note that the easy-to-view parts 5702a and 5704a only need to be made of a member that allows the back side of the package 5700 to be seen, for example, the whole may be made of a translucent member, and at least a part of the member is transparent. Or a semi-transparent member, and other parts may be formed of a non-transparent member. In addition, the non-viewable portions 5702b and 5704b may be formed of a member that is not visible or difficult to view on the back side of the package 5700. For example, the whole may not be visible or may be difficult to view. Good. Further, the easy-to-view parts 5702a and 5704a and the non-viewable parts 5702b and 5704b are alternately arranged at the same position in the longitudinal direction, but for example, the package may be formed by only the easy-to-view parts 5702a and 5704a. The easy-to-view parts 5702a and 5704a and the non-visible parts 5702b and 5704b may be alternately arranged in the short direction.
<Package Modification / Modification 1>

次に、パッケージ5700の変形例について説明する。図266(a)は変形例1に係るパッケージ5710の下側基板5714(5714a、5714b)の一部分を示す外観斜視図である。この変形例1に係るパッケージ5710の下側基板5714(図示はしないが上側基板も同様の構成である。以降の変形例も同じ)は、透明部材からなる視認容易部5714aと、非透明部材からなる視認非容易部5714bを長手方向に交互に配置している点はパッケージ5700と同様であるが、視認容易部5714aにおける端子5716の配置態様と、視認非容易部5714bにおける端子5716の配置態様を異ならせている。   Next, a modified example of the package 5700 will be described. FIG. 266 (a) is an external perspective view showing a part of the lower substrate 5714 (5714a, 5714b) of the package 5710 according to the first modification. The lower substrate 5714 of the package 5710 according to the first modified example (not shown but the upper substrate has the same configuration. The same applies to the following modified examples) includes a visible easy portion 5714a made of a transparent member and a non-transparent member. The visual non-easy parts 5714b are alternately arranged in the longitudinal direction in the same manner as the package 5700, but the arrangement mode of the terminals 5716 in the visual easy part 5714a and the arrangement mode of the terminals 5716 in the visual non-easy part 5714b are different. It is different.

具体的には、視認容易部5714aにおいては、視認容易部5714aの長手方向の長さL1に対して1つの端子5716を配置し、視認非容易部5714bにおいては、視認容易部5714aの長手方向の長さL1(この例では、視認容易部5714aの長手方向の長さL1と同じ長さ)に対して3つの端子5716を略等間隔に配置しており、視認非容易部5714bにおける端子5716の数(この例では3つ)よりも、視認容易部5714aにおける端子5716の数(この例では1つ)が少なくなるように構成している。   Specifically, in the easy-to-view part 5714a, one terminal 5716 is arranged with respect to the length L1 in the longitudinal direction of the easy-to-view part 5714a, and in the non-easy-to-view part 5714b, the longitudinal direction of the easy-to-view part 5714a. Three terminals 5716 are arranged at substantially equal intervals with respect to the length L1 (in this example, the same length as the length L1 in the longitudinal direction of the easy-to-view part 5714a), and the terminals 5716 in the non-viewable part 5714b The number of terminals 5716 (one in this example) in the easy-to-view part 5714a is smaller than the number (three in this example).

換言すれば、視認容易部5714aに配置された端子5716と、視認非容易部5714bに配置された端子5716のうち、最も視認容易部5714aに近い端子5716との間の距離L2と、視認非容易部5714bに配置された複数の端子5716の間の距離L3が異なっており、距離L3よりも距離L2が長くなるように構成している。   In other words, among the terminals 5716 arranged in the easy-to-view part 5714a and the terminals 5716 arranged in the non-viewable part 5714b, the distance L2 between the terminal 5716 closest to the easy-to-view part 5714a and the non-visible The distance L3 between the plurality of terminals 5716 arranged in the portion 5714b is different, and the distance L2 is longer than the distance L3.

このような構成により、端子5716の数が少ない(視認を妨げる部材が少ない)視認容易部5714aを通してパッケージ5710の一方側から他方側を確実に視認できるとともに、端子5716の数が多くても視認性に影響を与えない視認非容易部5714bに多くの端子5716を配置することができる場合がある。また、隣接する端子のノイズの影響を受けやすい信号線を、端子密度の低い視認容易部5714aに配置された端子5716に優先的に接続すれば、視認性を確保しながらも、同時に、ノイズなどに起因する誤作動を未然に防止できる場合がある。
<パッケージの変形例/変形例2>
With this configuration, the number of terminals 5716 is small (the number of members that hinder visual recognition) is easily visible from the one side of the package 5710 through the easy-to-view part 5714a, and visibility is high even when the number of terminals 5716 is large. In some cases, a large number of terminals 5716 can be arranged in the non-viewable portion 5714b that does not affect the visual recognition. In addition, if a signal line that is easily affected by noise of an adjacent terminal is preferentially connected to the terminal 5716 disposed in the easy-to-view part 5714a having a low terminal density, while ensuring visibility, noise or the like In some cases, it is possible to prevent malfunctions caused by the occurrence of a malfunction.
<Package Modification / Modification 2>

図266(b)は、変形例2に係るパッケージ5720の下側基板5724(5724a、5724b)の一部分を示す外観斜視図である。この変形例2に係るパッケージ5720の基板は、透明部材からなる視認容易部5724aと、非透明部材からなる視認非容易部5724bを長手方向に交互に配置している点はパッケージ5700と同様であるが、視認非容易部5724bには複数(この例では3つ)の端子5726を配置しているのに対して、視認容易部5724aには端子5726を1つも配置しないように構成している。   FIG. 266 (b) is an external perspective view showing a part of the lower substrate 5724 (5724a, 5724b) of the package 5720 according to the second modification. The substrate of the package 5720 according to Modification 2 is the same as the package 5700 in that the easy-to-view parts 5724a made of a transparent member and the non-visible parts 5724b made of a non-transparent member are alternately arranged in the longitudinal direction. However, a plurality (three in this example) of terminals 5726 are arranged in the visually unrecognizable part 5724b, whereas no terminal 5726 is arranged in the easily visible part 5724a.

このような構成により、視認容易部5724aにおける視認性をより一層確保でき、パッケージ5720の一方側から他方側を確実に視認できる場合がある。また、隣接する端子のノイズの影響を受けやすい複数の信号線を、視認容易部5724aの一方の側(例えば、同図の右側)の視認非容易部5724bの端子5726と、視認容易部5724aの他方の側(例えば、同図の左側)の視認非容易部5724bの端子5726と、に離間して接続すれば、視認性を確保しながらも、同時に、ノイズなどに起因する誤作動を未然に防止できる場合がある。
<パッケージの変形例/変形例3>
With such a configuration, visibility in the easy-to-view part 5724a can be further ensured, and the other side of the package 5720 can be reliably visually recognized in some cases. In addition, a plurality of signal lines that are easily affected by noise from adjacent terminals are connected to the terminal 5726 of the non-viewable portion 5724b on one side (for example, the right side of the drawing) 5724a and the easy-to-view portion 5724a. If it is separated and connected to the terminal 5726 of the non-viewable portion 5724b on the other side (for example, the left side of the figure), it is possible to prevent malfunction caused by noise or the like while ensuring visibility. Sometimes it can be prevented.
<Modification of Package / Modification 3>

図266(c)は、変形例3に係るパッケージ5730の下側基板5732(5732a、5732b)の一部分を示す外観斜視図である。この変形例3に係るパッケージ5730の基板は、非透明部材からなる視認非容易部5732bの一部に、透明部材からなる立方体形状の視認容易部5732aを形成するとともに、視認非容易部5732bには複数(この例では3つ)の端子5736を配置しているが、視認容易部5732aには端子5736を1つも配置しないように構成している。   FIG. 266 (c) is an external perspective view showing a part of the lower substrate 5732 (5732a, 5732b) of the package 5730 according to the third modification. In the substrate of the package 5730 according to the third modification, a cubic easy-to-view part 5732a made of a transparent member is formed in a part of the non-visible part 5732b made of a non-transparent member. A plurality (three in this example) of the terminals 5736 are arranged, but the easy-to-view part 5732a is configured not to arrange any of the terminals 5736.

このような構成により、視認容易部と視認非容易部を長手方向に交互に配置する場合に比べ、パッケージ5730の基板のコストを低減することができるとともに、視認容易部5732aを通してパッケージ5730の一方側から他方側を視認することができる。   With such a configuration, the cost of the substrate of the package 5730 can be reduced as compared with the case where the easy-to-view parts and the non-viewable parts are alternately arranged in the longitudinal direction, and one side of the package 5730 passes through the easy-to-view parts 5732a. The other side can be visually recognized.

なお、視認容易部5732aは、パッケージ5730の基板の短手方向両側に形成してもよいし、短手方向片側のみに形成してもよいが、両側に形成すれば、視認性をより高めることができる場合がある。また、視認容易部5732aの数は一つでもよいし、複数でもよいが、複数形成すれば、視認性をより高めることができる場合がある。
<パッケージの変形例/変形例4>
Note that the easy-to-view portions 5732a may be formed on both sides in the short direction of the substrate of the package 5730, or may be formed only on one side in the short direction, but if formed on both sides, the visibility is further improved. May be possible. In addition, the number of the easy-to-view parts 5732a may be one or plural, but if a plurality of easy-to-view parts 5732a are formed, the visibility may be further improved.
<Package Modification / Modification 4>

図266(d)は、変形例4に係るパッケージ5740の下側基板5742(5742a、5742b)の一部分を示す外観斜視図である。この変形例4に係るパッケージ5740の基板は、非透明部材からなる視認非容易部5742bの一部に、内方に窪んだ矩形状の切欠き部5742cを形成しており、切欠き部5742cを形成していない部位には複数(この例では3つ)の端子5746を配置しているが、切欠き部5742cには端子5746を1つも配置しないように構成している。   FIG. 266 (d) is an external perspective view showing a part of the lower substrate 5742 (5742a, 5742b) of the package 5740 according to the fourth modification. In the substrate of the package 5740 according to the fourth modification, a rectangular notch 5742c that is recessed inward is formed in a part of the visually uneasy part 5742b made of a non-transparent member, and the notch 5742c is A plurality (three in this example) of terminals 5746 are arranged in the part not formed, but no terminal 5746 is arranged in the notch 5742c.

このような構成により、視認容易部と視認非容易部を別部材で構成する場合に比べ、パッケージ5740の基板のコストを低減することができるとともに、切欠き部5742cを通してパッケージ5740の一方側から他方側を視認することができる。   With such a configuration, it is possible to reduce the cost of the substrate of the package 5740 and to reduce the cost of the package 5740 from one side to the other through the notch 5742c as compared with the case where the easy-to-view part and the non-visible part are configured by separate members. The side can be visually recognized.

なお、切欠き部5742cは、パッケージ5740の基板の短手方向両側に形成してもよいし、短手方向片側のみに形成してもよいが、両側に形成すれば、視認性をより高めることができる場合がある。また、切欠き部5742cの数は一つでもよいし、複数でもよいが、複数形成すれば、視認性をより高めることができる場合がある。   Note that the notch portions 5742c may be formed on both sides in the short direction of the substrate of the package 5740, or may be formed only on one side in the short direction, but if formed on both sides, the visibility is further improved. May be possible. Further, the number of the notch portions 5742c may be one or plural, but if a plurality of the notches 5742c are formed, the visibility may be further improved.

また、パッケージ5740に切欠き部5742cを形成することによってパッケージ5740の強度が低下し、例えば、基板やICソケットなどに実装された状態のパッケージ5740を取り外す際にパッケージ5740が破損しやすい状態(折れやすい状態)となるが、変形例4に係るパッケージ5740では、敢えてパッケージ5740の強度を低下させ、取り外しを困難にすることで、パッケージ5740が不正に取り外されて細工が施されるような不正行為を未然に防止できるように構成している。
<パッケージの変形例/変形例5>
In addition, the strength of the package 5740 is reduced by forming the notch 5742c in the package 5740. For example, when the package 5740 mounted on a substrate or an IC socket is removed, the package 5740 is easily damaged (broken). However, in the package 5740 according to the modified example 4, the package 5740 may be illegally removed and crafted by making it difficult to remove the package 5740 by reducing the strength of the package 5740. It is configured so that it can be prevented in advance.
<Package Modification / Modification 5>

図267(a)は、変形例5に係るパッケージ5750の外観斜視図である。この変形例5に係るパッケージ5750の基板は、全体が非透明部材で構成されている。また、平面視左側の一端部近傍と他端部近傍の各々に、内方に窪んだ矩形状の切欠き部5752を形成する一方で、平面視右側の中央近傍に、同形状の切欠き部5752を1つ形成し、3つの切欠き部5752には端子5756を1つも配置しないように構成している。   FIG. 267 (a) is an external perspective view of a package 5750 according to Modification 5. The substrate of the package 5750 according to the modification 5 is entirely composed of a non-transparent member. In addition, a rectangular cutout portion 5752 that is recessed inward is formed in each of the vicinity of one end portion and the other end portion on the left side in plan view, while the cutout portion having the same shape is formed in the vicinity of the center on the right side in plan view. One 5752 is formed, and no three terminals 5756 are arranged in the three notches 5752.

このような構成により、視認容易部と視認非容易部を別部材で構成する場合に比べ、パッケージ5752の基板のコストを低減することができるとともに、平面視左側に配置する切欠き部5752の数および配置場所と、平面視右側に配置する切欠き部5752の数および配置場所を異ならせているため、例えば、右側から視認できない場所を左側から視認することができる場合があり、一層、視認性を高めることができる場合がある。
<パッケージの変形例/変形例6>
With such a configuration, the cost of the substrate of the package 5752 can be reduced and the number of the notch portions 5752 arranged on the left side in a plan view can be reduced as compared with the case where the easy-to-view portion and the non-visible portion are configured as separate members. Since the number of the notch portions 5752 to be arranged on the right side in the plan view and the arrangement location are different from each other, for example, a place that cannot be seen from the right side may be visible from the left side. May be able to increase.
<Package Modification / Modification 6>

図267(b)は、変形例6に係るパッケージ5760の外観斜視図である。この変形例6に係るパッケージ5760の基板(上側基板5764、下側基板5762)は、全体が非透明部材で構成されている。また、パッケージ5760の長手方向中央近傍に、内方に窪んだ細径部5765を形成しており、上側基板5764と下側基板5762は、この細径部5765に向かって短手方向と厚み方向の外径が徐々に細くなる先細り形状とされている。また、細径部5765は、パッケージ5760全体の部位の中で最も厚みが薄く幅が狭い部位とされている。   FIG. 267 (b) is an external perspective view of a package 5760 according to Modification 6. The substrates of the package 5760 according to Modification 6 (upper substrate 5762 and lower substrate 5762) are entirely made of a non-transparent member. In addition, a narrow-diameter portion 5765 that is recessed inward is formed in the vicinity of the center in the longitudinal direction of the package 5760. The upper substrate 5762 and the lower substrate 5762 have a short side direction and a thickness direction toward the small-diameter portion 5765. The outer diameter of the taper is tapered. The small diameter portion 5765 is the thinnest and narrowest portion of the entire package 5760.

このような構成により、視認容易部と視認非容易部を別部材で構成する場合に比べ、パッケージ5760の基板のコストを低減することができるとともに、細径部5765の周囲の空間を通してパッケージ5760の一方側から他方側を様々な角度から視認でき、視認性を高めることができる場合がある。   With such a configuration, it is possible to reduce the cost of the substrate of the package 5760 and to reduce the cost of the package 5760 through the space around the small-diameter portion 5765 as compared with the case where the easy-to-view portion and the non-visible portion are configured as separate members. In some cases, the other side can be visually recognized from various angles, and visibility can be improved.

なお、細径部5765は、パッケージ5760の長手方向中央近傍以外の位置に形成してもよいし、複数形成してもよいが、細径部5765を複数形成すれば、視認性をより高めることができる場合がある。   Note that the small diameter portion 5765 may be formed at a position other than the vicinity of the center in the longitudinal direction of the package 5760, or a plurality of the small diameter portions 5765 may be formed. However, if a plurality of the small diameter portions 5765 are formed, the visibility is further improved. May be possible.

また、パッケージ5760に細径部5765を形成することによってパッケージ5760の強度が低下し、例えば、基板やICソケットなどに実装された状態のパッケージ5760を取り外す際にパッケージ5760が破損しやすい状態(折れやすい状態)となるが、変形例6に係るパッケージ5760では、敢えてパッケージ5760の強度を低下させ、取り外しを困難にすることで、パッケージ5760が不正に取り外されて細工が施されるような不正行為を未然に防止できるように構成している。
<パッケージの変形例/変形例7>
In addition, the strength of the package 5760 is reduced by forming the small diameter portion 5765 in the package 5760. For example, when the package 5760 mounted on a substrate or an IC socket is removed, the package 5760 is easily damaged (folded). However, in the package 5760 according to the modified example 6, the package 5760 is deliberately reduced in strength and difficult to remove, so that the package 5760 is illegally removed and crafted. It is configured so that it can be prevented in advance.
<Package Modification / Modification 7>

図267(c)は、変形例7に係るパッケージ5770の外観斜視図である。この変形例7に係るパッケージ5770の基板(上側基板5774、下側基板5772)は、全体が非透明部材で構成されている。また、平面視左側および右側の長手方向中央近傍に、上側基板5774と下側基板5772の間に挟まれて長手方向中央近傍に配置されている基本回路5302を跨ぐようにして、内方に窪んだ矩形状の切欠き部5775を対向するように形成し、切欠き部5775には端子5776を1つも配置しないように構成している。   FIG. 267 (c) is an external perspective view of a package 5770 according to Modification 7. The substrates (upper substrate 5774 and lower substrate 5772) of the package 5770 according to the modified example 7 are entirely made of a non-transparent member. Further, in the vicinity of the center in the longitudinal direction on the left side and the right side in plan view, the inner circuit 5302 is sandwiched between the upper substrate 5774 and the lower substrate 5772 so as to straddle the basic circuit 5302 disposed in the vicinity of the center in the longitudinal direction. The rectangular cutout portion 5775 is formed so as to be opposed to the cutout portion 5775 so that no terminal 5776 is disposed.

このような構成により、視認容易部と視認非容易部を別部材で構成する場合に比べ、パッケージ5770の基板のコストを低減することができるとともに、平面視左側および右側に配置された複数の切欠き部5775を通してパッケージ5770の一方側から他方側を様々な角度から視認でき、視認性を高めることができる場合がある。   With such a configuration, the cost of the substrate of the package 5770 can be reduced as compared with the case where the easy-to-view portion and the non-visible portion are configured as separate members, and a plurality of cutouts arranged on the left side and the right side in plan view. The other side of the package 5770 can be viewed from various angles through the notch 5775, and the visibility may be improved.

また、平面視左側および右側の長手方向の同じ位置に切欠き部5775を形成することによってパッケージ5770の強度が低下し、基板やICソケットなどに実装された状態のパッケージ5770を取り外す際にパッケージ5770が破損しやすい状態(折れやすい状態)となるが、変形例7に係るパッケージ5770では、敢えてパッケージ5770の強度を低下させ、取り外しを困難にすることで、パッケージ5770が不正に取り外されて細工が施されるような不正行為を未然に防止できるように構成している。
<パッケージの変形例/変形例8>
In addition, the strength of the package 5770 is reduced by forming the notch portion 5775 at the same position in the longitudinal direction on the left side and the right side in a plan view, and the package 5770 is removed when the package 5770 mounted on a substrate or an IC socket is removed. However, in the package 5770 according to the modified example 7, the strength of the package 5770 is deliberately lowered and the removal is difficult, so that the package 5770 is illegally removed and crafted. It is configured so that fraudulent acts that are performed can be prevented in advance.
<Package Modification / Modification 8>

図267(d)は、変形例8に係るパッケージ5780の外観斜視図である。この変形例8に係るパッケージ5780の基板の平面視右側の端部には、ラウンド加工されたラウンド部5780aを形成しており、このラウンド部5780aには端子5786を配置しない一方で、基板の平面視左側の端部には、ラウンド部5780aに相当するラウンド加工を施さずに端子5786を配置するように構成している。すなわち、変形例8に係るパッケージ5780では、基板の平面視右側に配置される端子5786の数よりも、パッケージ5780の基板の平面視左側に配置される端子5786の数が多くなるように構成している。   FIG. 267 (d) is an external perspective view of a package 5780 according to Modification 8. A rounded portion 5780a is formed at the right end of the substrate of the package 5780 according to the modified example 8 in a plan view, and the terminal 5786 is not disposed in the round portion 5780a. The terminal 5786 is arranged at the end on the left side without being subjected to round processing corresponding to the round portion 5780a. That is, the package 5780 according to the modified example 8 is configured such that the number of terminals 5786 arranged on the left side of the substrate 5780 in plan view is larger than the number of terminals 5786 arranged on the right side of the substrate in plan view. ing.

このような構成により、ラウンド部5780aの有無を手掛かりにパッケージ5780の向きを容易に確認することが可能となり、ICソケットへの逆挿しなどを未然に防止することができる上に、ラウンド部5780aによって形成される空間を通してパッケージ5780の一方側から他方側を視認できる場合がある。なお、変形例8に係るパッケージ5780では、上述の変形例7に係るパッケージ5770のように切欠き部5775を形成していないが、ラウンド部5780aに加えて(または替えて)、同一形状(または異なる形状)の切欠き部を形成してもよい。すなわち、他の実施例に係るパッケージの構成のうち、一つ、複数、または全ての構成を本実施例に適用してもよい(他の実施例についても同様)。
<パッケージのその他の変形例>
With such a configuration, the orientation of the package 5780 can be easily confirmed with the presence or absence of the round portion 5780a as a clue, and the reverse insertion into the IC socket can be prevented in advance. In some cases, the other side of the package 5780 can be visually recognized through the formed space. The package 5780 according to the modified example 8 does not have the notch 5775 as the package 5770 according to the modified example 7 described above. However, in addition to (or in place of) the round part 5780a, the same shape (or You may form a notch part of a different shape. That is, one, a plurality, or all of the configurations of the packages according to other embodiments may be applied to this embodiment (the same applies to other embodiments).
<Other variations of package>

図268(a)、(b)は、スリット状の切欠き部を形成したパッケージの一例を示した外観斜視図である。同図(a)に示すパッケージには、隣接する端子の間にスリット状の切欠き部を複数(この例では、3つ)形成しており、同図(b)に示すパッケージには、隣接する端子の間にスリット状の切欠き部を1つ形成している。このような構成によっても、切欠き部を通してパッケージの下方の空間を視認することができる。   FIGS. 268 (a) and (b) are external perspective views showing an example of a package in which a slit-like cutout is formed. In the package shown in FIG. 6A, a plurality of slit-shaped notches are formed between adjacent terminals (three in this example), and the package shown in FIG. One slit-shaped notch is formed between the terminals to be connected. Even with such a configuration, it is possible to visually recognize the space below the package through the notch.

また、図269(a)は、円弧状の切欠き部を形成したパッケージの一例を示した外観斜視図である。上述の例では、同図(b)に示すように、パッケージに矩形状の切欠き部を設けたが、この場合、切欠き部の加工が容易となる上に、パッケージの外形は矩形状であることが多いため、切欠き部を設けてもデザイン上で違和感を与えることが少ない。一方、同図(a)、(c)に示すような円弧状の切欠き部を設けた場合、デザイン性を高めることができる上に、切欠き部を他の部位に比べて目立たせることができるため、パッケージを検査する際などに注目を集めやすい場合がある。   FIG. 269 (a) is an external perspective view showing an example of a package in which an arcuate cutout is formed. In the above example, as shown in FIG. 5B, the package is provided with a rectangular cutout. However, in this case, the cutout is easily processed and the package has a rectangular outer shape. Since there are many cases, even if a notch is provided, there is little discomfort in the design. On the other hand, when an arc-shaped notch as shown in FIGS. 4A and 4C is provided, the design can be improved and the notch can be made more conspicuous than other parts. Because of this, it may be easy to attract attention when inspecting a package.

また、図270(a)は、切欠き部の上面に、型番などを表すシールが貼付されたパッケージの一例を示した外観斜視図である。この例では、同図(b)に示すように、パッケージをICソケットや基板などから取り外そうとして切欠き部を中心としてパッケージが折れ曲がった場合などに、同図(c)に示すように、その痕跡がシールに残るように構成しているため、パッケージの取り外しが行われた否かを即座に判定できる場合がある。なお、型番などを切欠き部の上面に直接、印字(印刷)してもよく、この場合、パッケージをICソケットや基板などから取り外そうとして切欠き部を中心としてパッケージが折れ曲がったときに、印字部分の文字の形状が崩れたり、塗装が落ちたりすることにより、不正行為の痕跡を確実に残すことができる場合がある。   FIG. 270 (a) is an external perspective view showing an example of a package in which a seal indicating a model number or the like is attached to the upper surface of the notch. In this example, as shown in the same figure (b), as shown in the same figure (c), when the package is bent around the notch portion so as to be removed from the IC socket or the substrate, as shown in the same figure (b). Since the trace remains on the seal, it may be possible to immediately determine whether or not the package has been removed. Note that the model number may be printed (printed) directly on the upper surface of the notch. In this case, when the package is bent around the notch to remove the package from the IC socket or the substrate, In some cases, the marks of the fraudulent acts can be reliably left by the shape of the characters in the printed portion being broken or the paint being dropped.

また、図271(a)〜(g)は、パッケージの形状の変形例を示した図であり、同図(a)〜(e)は変形例に係るパッケージの平面図、同図(f)〜(g)は変形例に係るパッケージを長手方向から見た側面図である。   FIGS. 271 (a) to 271 (g) are diagrams showing modifications of the shape of the package. FIGS. 271 (a) to (e) are plan views of the package according to the modification, and FIG. (G) is the side view which looked at the package concerning a modification from the longitudinal direction.

例えば、同図(a)に示すように、パッケージの長手方向中央近傍の両側に、内方に窪んだ平面視三角形状の切欠き部を形成してもよいし、同図(b)に示すように、同図(a)の切欠き部に加えて、パッケージの底面に内方に窪んだ矩形状の切欠き部を形成してもよい。また、同図(c)に示すように、パッケージの長手方向端部近傍の両側に、内方に窪んだ平面視三角形状の切欠き部を形成してもよいし、同図(d)に示すように、パッケージの長手方向一方側の端部近傍に、内方に窪んだ平面視三角形状の切欠き部を形成する一方で、長手方向他方側の端部近傍に、同形状の切欠き部を形成してもよい。   For example, as shown in FIG. 5A, a notch having a triangular shape in plan view that is recessed inward may be formed on both sides in the vicinity of the center in the longitudinal direction of the package, or as shown in FIG. As described above, in addition to the notch portion shown in FIG. 5A, a rectangular notch portion recessed inward may be formed on the bottom surface of the package. Further, as shown in FIG. 6C, a notch having a triangular shape in plan view that is recessed inward may be formed on both sides in the vicinity of the longitudinal end portion of the package. As shown, a notch having a triangular shape in plan view that is recessed inward is formed in the vicinity of one end in the longitudinal direction of the package, while a notch having the same shape is formed in the vicinity of the other end in the longitudinal direction. A part may be formed.

また、同図(e)に示すように、パッケージの長手方向一方側の端部近傍に、内方に窪んだ平面視三角形状の切欠き部を長手方向に複数並べて形成する一方で、長手方向他方側の端部近傍に、同形状の切欠き部を長手方向に複数並べて形成してもよい。さらに、同図(f)に示すように、パッケージの厚み方向の片面に、内方に窪んだ切欠き部を形成してもよいし、同図(g)に示すように、パッケージの厚み方向の両面に、内方に窪んだ切欠き部を形成してもよい。
<ICソケット>
Further, as shown in FIG. 5E, in the vicinity of the end portion on one side in the longitudinal direction of the package, a plurality of notches having a triangular shape in plan view recessed inward are formed side by side in the longitudinal direction. A plurality of notch portions having the same shape may be formed in the longitudinal direction in the vicinity of the other end portion. Furthermore, as shown in FIG. 5 (f), a notch part recessed inward may be formed on one surface in the thickness direction of the package, or as shown in FIG. You may form the notch part hollow inwardly on both surfaces.
<IC socket>

次に、上述の変形例4に係るパッケージ5740が実装されるICソケットの一例について説明する。図272(a)は、ICソケット5850の外観斜視図であり、同図(b)は、ICソケット5850にパッケージ5740を実装した状態を示す外観斜視図である。   Next, an example of an IC socket on which the package 5740 according to Modification 4 described above is mounted will be described. FIG. 272 (a) is an external perspective view of the IC socket 5850, and FIG. 272 (b) is an external perspective view showing a state in which the package 5740 is mounted on the IC socket 5850.

ICソケット5850は、矩形状の3つの開口部5852aが形成された板状体のベース5852と、このベース5852の長手方向両側に配置された複数のソケット端子5854と、を有して構成されている。ベース5852の長手方向両側には、パッケージ5740の端子5746に相当する位置に、この端子5746を挿入・固定するための円筒形状の複数のコネクト部5852bが形成され、このコネクト部5852bの各々からは、パッケージ5740の実装面とは反対方向に向けて棒状のソケット端子5854が突出形成されている。このような構成により、パッケージ5740をICソケット5850に実装した場合(パッケージ5740の端子5746を、ICソケット5850のコネクト部5852bに挿入・固定した場合)に、パッケージ5740の端子5746と、ICソケット5850のソケット端子5854が電気的に接続される。   The IC socket 5850 has a plate-shaped base 5852 in which three rectangular openings 5852a are formed, and a plurality of socket terminals 5854 arranged on both sides in the longitudinal direction of the base 5852. Yes. On both sides in the longitudinal direction of the base 5852, a plurality of cylindrical connecting portions 5852b for inserting and fixing the terminals 5746 are formed at positions corresponding to the terminals 5746 of the package 5740. From each of the connecting portions 5852b, A rod-shaped socket terminal 5854 is formed so as to protrude in the direction opposite to the mounting surface of the package 5740. With such a configuration, when the package 5740 is mounted on the IC socket 5850 (when the terminal 5746 of the package 5740 is inserted and fixed to the connecting portion 5852b of the IC socket 5850), the terminal 5746 of the package 5740 and the IC socket 5850 are mounted. The socket terminal 5854 is electrically connected.

また、ICソケット5850の開口部5852aの一つは、パッケージ5740の切欠き部5742cに相当する位置に形成されており、パッケージ5740をICソケット5850に実装した場合でも、切欠き部5742cを通してパッケージ5740の一方側から他方側(例えば、パッケージ5740の正面視上側から下側のみならず、パッケージ5740の正面視斜め上側からパッケージ5740の下方空間の一部)を視認することができる。   One of the openings 5852a of the IC socket 5850 is formed at a position corresponding to the notch 5742c of the package 5740. Even when the package 5740 is mounted on the IC socket 5850, the package 5740 is passed through the notch 5742c. From one side of the package 5740 to the other side (for example, a part of the space below the package 5740 from the diagonally upper side of the package 5740 as well as the lower side of the package 5740 when viewed from the front).

特に、ICソケット5850のソケット端子5854は、ICソケット5850を基板に実装した場合に、ベース5852を基板から所定高さに浮かせて保持するだけの長さを有しているため、ソケット端子5854の側方からパッケージ5740の下側の空間を視認することができることに加えて、切欠き部5742cを通した視認性をより高めることができる場合がある。また、パッケージ5740をICソケット5850に実装した場合に、パッケージ5740の端子5746が、パッケージ5740をICソケット5850の実装面から所定高さに浮かせて保持するだけの長さを有していれば、パッケージ5740の端子5746の側方からパッケージ5740の下側の空間を視認することができることに加えて、切欠き部5742cを通した視認性をより高めることができる場合がある。
<パッケージの端子>
In particular, the socket terminal 5854 of the IC socket 5850 has a length sufficient to float and hold the base 5852 at a predetermined height from the substrate when the IC socket 5850 is mounted on the substrate. In addition to being able to visually recognize the space below the package 5740 from the side, the visibility through the notch 5742c may be further improved. Further, when the package 5740 is mounted on the IC socket 5850, if the terminal 5746 of the package 5740 has a length sufficient to float and hold the package 5740 from the mounting surface of the IC socket 5850, In addition to being able to visually recognize the space below the package 5740 from the side of the terminal 5746 of the package 5740, the visibility through the notch 5742c may be further improved.
<Package terminals>

次に、変形例9に係るパッケージ5790の主要な端子について説明する。図273は、パッケージ5790の端子配置例を示す平面図である。なお、詳細は後述するが、同図における○(丸印)は、パッケージ5790が実装されるICソケットのソケット端子の位置(または、パッケージ5790がICソケットを介さずに基板に実装される場合には、基板のランドの位置)を示している。   Next, main terminals of the package 5790 according to Modification 9 will be described. FIG. 273 is a plan view illustrating an example of terminal arrangement of the package 5790. Although details will be described later, a circle (circle) in the figure indicates the position of the socket terminal of the IC socket on which the package 5790 is mounted (or when the package 5790 is mounted on the substrate without the IC socket). Indicates the position of the land of the substrate).

同図に示すように、パッケージ5790の平面視左側には、端子番号1〜35の35個の端子を上から下に向かって一列に配置し、パッケージ5790の平面視右側には、端子番号36〜71の36個の端子を下から上に向かって一列に配置しているパッケージ5790の端子番号1〜端子番号17の領域には、16本のアドレスバスA15〜A0のうちの8本の上位アドレスバスA15〜A8が配置されている。これらの上位アドレスバスA15〜A8は、それぞれ端子番号15、13、11、9、7、5、3、1に配置されており、端子番号15から端子番号1にかけて一つ置きに配置されている。また、端子番号1〜端子番号17の領域には、2つのグランド電位端子VSS5、VSS1が配置されており、グランド電位端子VSS5は端子番号1〜端子番号17の領域の中央近傍(端子番号11)に、また、グランド電位端子VSS1は端子番号18に最も近い位置(端子番号17)に、それぞれ配置されている。   As shown in the figure, on the left side of the package 5790 in plan view, 35 terminals having terminal numbers 1 to 35 are arranged in a line from top to bottom, and on the right side of the package 5790 in plan view, terminal number 36 In the area of terminal number 1 to terminal number 17 of the package 5790 in which 36 terminals of .about.71 are arranged in a line from the bottom to the top, eight of the 16 address buses A15 to A0 Address buses A15 to A8 are arranged. These upper address buses A15 to A8 are arranged at terminal numbers 15, 13, 11, 9, 7, 5, 3, 1, respectively, and are arranged every other terminal number 15 to terminal number 1. . Also, two ground potential terminals VSS5 and VSS1 are arranged in the region of terminal numbers 1 to 17, and the ground potential terminal VSS5 is near the center of the region of terminal numbers 1 to 17 (terminal number 11). In addition, the ground potential terminal VSS1 is disposed at a position closest to the terminal number 18 (terminal number 17).

また、パッケージ5790の端子番号54〜端子番号71の領域には、16本のアドレスバスA15〜A0のうちの8本の下位アドレスバスA7〜A0が配置されている。これらの上位アドレスバスA7〜A0は、それぞれ端子番号55、57、59、61、63、65、67、69に配置されており、端子番号55から端子番号69にかけて一つ置きに配置されている。また、端子番号54〜端子番号71の領域には、2つのグランド電位端子VSS4、VSS3が配置されており、グランド電位端子VSS4は端子番号53から最も遠い位置(端子番号71)に、また、グランド電位端子VSS3は端子番号53に最も近い位置(端子番号54)に、それぞれ配置されている。   Also, eight lower address buses A7 to A0 of the 16 address buses A15 to A0 are arranged in the region of terminal number 54 to terminal number 71 of the package 5790. These upper address buses A7 to A0 are arranged at terminal numbers 55, 57, 59, 61, 63, 65, 67 and 69, respectively, and are arranged every other terminal number 55 to terminal number 69. . In addition, two ground potential terminals VSS4 and VSS3 are arranged in the region of terminal number 54 to terminal number 71. The ground potential terminal VSS4 is located farthest from the terminal number 53 (terminal number 71). The potential terminal VSS3 is disposed at a position closest to the terminal number 53 (terminal number 54).

また、パッケージ5790の端子番号18〜端子番号35の領域には、正電源端子VDD1と、内蔵RAMのバックアップ用電源端子VBBと、グランド電位端子VSS2が配置されており、正電源端子VDD1は端子番号17から2番目に近い位置(端子番号19)に、また、バックアップ用電源端子VBB1はVDD1の隣、すなわち端子番号17から3番目に近い位置(端子番号20)に、また、グランド電位端子VSS2は端子番号17から最も遠い位置(端子番号35)に、それぞれ配置されている。さらに、パッケージ5790の端子番号17に最も近い位置(端子番号18)には、クロック入力端子EXが配置されている。   In the region of terminal number 18 to terminal number 35 of the package 5790, a positive power supply terminal VDD1, a backup power supply terminal VBB for the built-in RAM, and a ground potential terminal VSS2 are arranged. The positive power supply terminal VDD1 is a terminal number. 17 is the second closest position (terminal number 19), the backup power supply terminal VBB1 is next to VDD1, that is, the third closest position from terminal number 17 (terminal number 20), and the ground potential terminal VSS2 is They are arranged at positions farthest from the terminal number 17 (terminal number 35). Further, a clock input terminal EX is arranged at a position (terminal number 18) closest to the terminal number 17 of the package 5790.

また、パッケージ5790の端子番号36〜端子番号53の領域には、正電源端子VDD25、VDD2と、グランド電位端子VSS6が配置されており、正電源端子VDD25は端子番号54に最も近い位置(端子番号53)に、また、正電源端子VDD2はVDD25の隣、すなわち端子番号54に2番目に近い位置(端子番号52)に、また、グランド電位端子VSS6は端子番号36〜端子番号53の領域の中央近傍(端子番号44)に、それぞれ配置されている。さらに、パッケージ5790の端子番号54から遠い端子番号36から端子番号43には、8本のデータ入出力バスD7〜D0が配置されている。
<ICソケットの変形例/変形例1>
Further, positive power supply terminals VDD25 and VDD2 and a ground potential terminal VSS6 are arranged in the region of terminal numbers 36 to 53 of the package 5790. The positive power supply terminal VDD25 is located closest to the terminal number 54 (terminal number). 53), the positive power supply terminal VDD2 is next to VDD25, that is, the position closest to the terminal number 54 (terminal number 52), and the ground potential terminal VSS6 is the center of the region of the terminal numbers 36 to 53. It is arranged in the vicinity (terminal number 44). Further, eight data input / output buses D7 to D0 are arranged from terminal number 36 to terminal number 43 far from the terminal number 54 of the package 5790.
<Modified example of IC socket / Modified example 1>

次に、ICソケットの変形例について説明する。図274(a)は変形例1に係るICソケット5860の外観斜視図であり、同図(b)は、ICソケット5860にパッケージ5740を実装した状態を示す外観斜視図である。   Next, a modified example of the IC socket will be described. FIG. 274 (a) is an external perspective view of an IC socket 5860 according to Modification 1. FIG. 274 (b) is an external perspective view showing a state in which a package 5740 is mounted on the IC socket 5860.

変形例1に係るソケット5860は、上述のソケット5850が有する開口部5852aを備えていない点が異なっている。このような開口部5852aを備えないソケット5860にパッケージ5740を実装した場合でも、パッケージ5740が切欠き部5742cを備えているため、切欠き部5742cを通してパッケージ5740の一方側から他方側を視認することができる。   The socket 5860 according to Modification 1 is different in that the opening 5852a of the socket 5850 described above is not provided. Even when the package 5740 is mounted on the socket 5860 that does not include the opening 5852a, the package 5740 includes the notch portion 5742c, so that the other side of the package 5740 can be visually recognized through the notch portion 5742c. Can do.

特に、パッケージ5740の端子5746が、パッケージ5740をICソケット5860に実装した場合に、パッケージ5740をICソケット5860から所定高さに浮かせて保持するだけの長さを有していれば、パッケージ5740の端子5746の側方からパッケージ5740の下側空間を視認することができることに加えて、切欠き部5742cを通した視認性をより高めることができる場合がある。一方、パッケージ5740とICソケット5860との間に形成される空間は、電子部品が配置できるほどの高さを有していないため、視認性を確保しながらも、同時に、不正な電子部品の取り付けなどを難しくしている。
<ICソケットの変形例/変形例2>
In particular, if the terminal 5746 of the package 5740 has a length enough to float and hold the package 5740 from the IC socket 5860 when the package 5740 is mounted on the IC socket 5860, In addition to being able to visually recognize the lower space of the package 5740 from the side of the terminal 5746, the visibility through the notch 5742c may be further improved. On the other hand, the space formed between the package 5740 and the IC socket 5860 does not have a height high enough to allow electronic components to be placed. Making it difficult.
<Modified example of IC socket / Modified example 2>

次に、ICソケットの変形例について説明する。図275(a)は変形例2に係るICソケット5870の外観斜視図であり、同図(b)は、ICソケット5870のソケット端子が実装される基板の平面図である。   Next, a modified example of the IC socket will be described. FIG. 275 (a) is an external perspective view of an IC socket 5870 according to Modification 2. FIG. 275 (b) is a plan view of a substrate on which the socket terminal of the IC socket 5870 is mounted.

変形例2に係るICソケット5870は、ベース5872に対するソケット端子5874の配置態様が上述のICソケット5850、5860と異なっている。具体的には、ICソケット5870では、パッケージの端子が挿入されるコネクト部5872bが長手方向全域に亘って略等間隔に直線状に配置されているのに対して、各々のコネクト部5872bから突出形成されるソケット端子5874が長手方向全域に亘って千鳥状に配置されている。また、同図(b)に示すように、ICソケット5870が実装される基板5878には、ICソケット5870のソケット端子5874の配置態様に合わせてランド5878aが千鳥状に配置・形成されている。
<コネクト部とソケット端子>
The IC socket 5870 according to the modified example 2 is different from the above-described IC sockets 5850 and 5860 in the manner of arrangement of the socket terminals 5874 with respect to the base 5872. Specifically, in the IC socket 5870, the connecting portions 5872b into which the terminals of the package are inserted are arranged linearly at substantially equal intervals over the entire length direction, but project from each connecting portion 5872b. The formed socket terminals 5874 are arranged in a staggered manner over the entire longitudinal direction. Further, as shown in FIG. 4B, lands 5878a are arranged and formed in a staggered manner on the substrate 5878 on which the IC socket 5870 is mounted in accordance with the arrangement mode of the socket terminals 5874 of the IC socket 5870.
<Connect part and socket terminal>

図276(a)は、図275(a)におけるA−A線に沿った断面を模式的に示した図であり、図276(b)は、図275(a)におけるB−B線に沿った断面を模式的に示した図である。図276(a)に示すように、複数のソケット端子5874のうち、ICソケット5870の短手方向内側に突出するソケット端子5874は、コネクト部5872bの軸心Laから短手方向内側方向に所定距離L8だけ離れた位置にある軸心Lbを有し、ICソケット5870の短手方向外側端面から所定距離L9だけ離れた位置に配置されている。一方、図276(b)に示すように、複数のソケット端子5874のうち、ICソケット5870の短手方向外側に突出するソケット端子5874は、コネクト部5872bの軸心Laから短手方向外側方向に所定距離L8だけ離れた位置にある軸心Lcを有し、ICソケット5870の短手方向外側端面から所定距離L10(L10<L9)だけ離れた位置に配置されている。   FIG. 276 (a) is a diagram schematically showing a cross section along line AA in FIG. 275 (a), and FIG. 276 (b) is along line BB in FIG. 275 (a). FIG. As shown in FIG. 276 (a), of the plurality of socket terminals 5874, the socket terminal 5874 protruding inward in the short direction of the IC socket 5870 has a predetermined distance inward in the short direction from the axial center La of the connecting portion 5872b. The shaft center Lb is located at a position separated by L8, and is disposed at a position separated by a predetermined distance L9 from the outer end surface in the short direction of the IC socket 5870. On the other hand, as shown in FIG. 276 (b), among the plurality of socket terminals 5874, the socket terminal 5874 protruding outward in the short direction of the IC socket 5870 is outward in the short direction from the axial center La of the connecting portion 5872b. The shaft center Lc is located at a position separated by a predetermined distance L8, and is disposed at a position separated by a predetermined distance L10 (L10 <L9) from the lateral direction outer end face of the IC socket 5870.

また、この例では、コネクト部5872bの長さとソケット端子5874の長さは、ICソケット5870全体で同一長さとされている。すなわち、ICソケット5870を基板に実装し、ICソケット5870にパッケージを実装した場合に、パッケージの端子とコネクタ部5872bとの接点と、ソケット端子5874と基板の接点の2つの接点間の距離は、ICソケット5870全体でほぼ同一長さになるように構成されている。   In this example, the length of the connecting portion 5872b and the length of the socket terminal 5874 are the same for the entire IC socket 5870. That is, when the IC socket 5870 is mounted on the substrate and the package is mounted on the IC socket 5870, the distance between the contact between the package terminal and the connector portion 5872b and the contact between the socket terminal 5874 and the contact of the substrate is as follows: The entire IC socket 5870 is configured to have substantially the same length.

<コネクト部とソケット端子の変形例/変形例1>   <Modification example of connection part and socket terminal / Modification example 1>

図277(a)、(b)は、変形例1に係るコネクト部とソケット端子の断面を模式的に示した図であり、それぞれ図276(a)、(b)に相当する図である。変形例1に係るコネクト部には、図277(a)に示す第1コネクト部5880と、同図(b)に示す第2コネクト部5882の2種類があり、互いに形状が異なっている。なお、図示は省略するが、この例では、パッケージの端子が挿入される第1コネクト部5880、第2コネクト部5882がICソケットの長手方向全域に亘って略等間隔に直線状に配置されているのに対して、第1コネクト部5880、第2コネクト部5882から突出形成されるソケット端子5884がICソケットの長手方向全域に亘って千鳥状に配置されている。   FIGS. 277 (a) and (b) are diagrams schematically showing a cross section of the connection portion and the socket terminal according to the first modification, and corresponding to FIGS. 276 (a) and (b), respectively. There are two types of connect portions according to the first modification, namely, a first connect portion 5880 shown in FIG. 277 (a) and a second connect portion 5882 shown in FIG. Although illustration is omitted, in this example, the first connect portion 5880 and the second connect portion 5882 into which the terminals of the package are inserted are linearly arranged at substantially equal intervals over the entire length direction of the IC socket. On the other hand, the socket terminals 5884 that protrude from the first connect portion 5880 and the second connect portion 5882 are arranged in a staggered manner over the entire longitudinal direction of the IC socket.

第1コネクト部5880は、軸心Ldに沿ってICソケットの表面から裏面まで真っ直ぐに延びる直線形状からなる。また、第2コネクト部5882は、軸心Ldに沿ってICソケットの表面から裏面に向かって真っ直ぐに延びる第1直線部と、この第1直線部を基端として裏面に向かって斜めに延びる屈曲部と、この屈曲部を基端として軸心Ldとは異なる軸心Leに沿ってICソケットの裏面まで真っ直ぐに延びる第2直線部と、によって構成されている。一方、ソケット端子5884の長さは全て同一長さとされており、第1コネクタ部5880に接続されるソケット端子5884は、第1コネクタ部5880と同じ軸心Ld上に第1コネクタ部5880を基端として延出形成され、第2コネクタ部5882に接続されるソケット端子5884は、第2コネクタ部5882の第2直線部と同じ軸心Le上に第2コネクタ部5882の第2直線部を基端として延出形成されている。   The first connection portion 5880 has a linear shape extending straight from the front surface to the back surface of the IC socket along the axis Ld. The second connecting portion 5882 includes a first straight portion extending straight from the front surface to the back surface of the IC socket along the axis Ld, and a bend extending obliquely toward the back surface using the first straight portion as a base end. And a second straight portion extending straight to the back surface of the IC socket along an axis Le different from the axis Ld with the bent portion as a base end. On the other hand, the lengths of the socket terminals 5884 are all the same, and the socket terminal 584 connected to the first connector portion 5880 is based on the first connector portion 5880 on the same axis Ld as the first connector portion 5880. A socket terminal 5884 extending as an end and connected to the second connector portion 5882 is based on the second straight portion of the second connector portion 5882 on the same axis Le as the second straight portion of the second connector portion 5882. It is extended and formed as an end.

したがって、この例では、第1コネクト部5880の長さL11とソケット端子5884の長さの合計は、第2コネクト部5882の長さL12(L12>L11)とソケット端子5884の長さの合計よりも短くなっている。すなわち、このような構成を備えるICソケットを基板に実装し、ICソケットにパッケージを実装した場合に、パッケージの端子と第1コネクタ部5880との接点と、ソケット端子5884と基板の接点の2つの接点間の距離は、パッケージの端子と第2コネクタ部5882との接点と、ソケット端子5884と基板の接点の2つの接点間の距離よりも短くなるように構成されている。   Therefore, in this example, the total length L11 of the first connecting portion 5880 and the length of the socket terminal 5884 is greater than the total length L12 of the second connecting portion 5882 (L12> L11) and the length of the socket terminal 5884. Is also shorter. That is, when an IC socket having such a configuration is mounted on a substrate and the package is mounted on the IC socket, two terminals, a contact between the package terminal and the first connector portion 5880, and a contact between the socket terminal 5884 and the substrate, are provided. The distance between the contacts is configured to be shorter than the distance between the contact between the package terminal and the second connector portion 5882 and the contact between the socket terminal 5884 and the substrate contact.

<コネクト部とソケット端子の変形例/変形例2>   <Modified example of connection part and socket terminal / Modified example 2>

図278(a)〜(d)は、変形例2に係るコネクト部とソケット端子の断面を模式的に示した図である。同図(a)、(b)に示す第1コネクト部5892、第2コネクト部5893は、ICソケットの表面から裏面に向かって真っ直ぐに延びる直線部と、この直線部を基端として裏面まで斜めに延びる屈曲部と、によって構成されており、同図(a)に示す第1コネクト部5892と同図(b)に示す第2コネクト部5893で屈曲部の屈曲方向を反対にしている。なお、図示は省略するが、この例では、パッケージの端子が挿入される第1コネクト部5892、第2コネクト部5893の各々の直線部が、ICソケットの長手方向全域に亘って略等間隔に直線状に配置されているのに対して、第1コネクト部5892、第2コネクト部5893の各々の屈曲部を基端として突出形成されるソケット端子5894が、ICソケットの長手方向全域に亘って千鳥状に配置されている。   FIGS. 278 (a) to 278 (d) are diagrams schematically showing a cross section of the connection portion and the socket terminal according to the second modification. The first connect portion 5892 and the second connect portion 5893 shown in FIGS. 5A and 5B are a straight portion extending straight from the front surface of the IC socket toward the back surface, and slanting from the straight portion to the back surface. The first connecting portion 5892 shown in FIG. 5A and the second connecting portion 5893 shown in FIG. 5B are reversed in the bending direction of the bending portion. Although illustration is omitted, in this example, the straight portions of the first connect portion 5892 and the second connect portion 5893 into which the terminals of the package are inserted are substantially equally spaced over the entire longitudinal direction of the IC socket. In contrast to the linear arrangement, the socket terminals 5894 that are formed so as to protrude from the bent portions of the first connecting portion 5892 and the second connecting portion 5893 are extended over the entire longitudinal direction of the IC socket. Arranged in a staggered pattern.

一方、同図(c)、(d)に示すコネクト部5895は、ICソケットの表面から裏面まで真っ直ぐに延びる直線形状からなる。また、第1ソケット端子5896と第2ソケット端子5897は、コネクト部5895を基端として斜めに延びる屈曲部と、この屈曲部を基端としてICソケットの厚み方向に真っ直ぐに延びる直線部と、によって構成されており、同図(c)に示す第1ソケット端子5896と同図(d)に示す第2ソケット端子5897で屈曲部の屈曲方向を反対にしている。なお、図示は省略するが、この例では、パッケージの端子が挿入されるコネクト部5895が、ICソケットの長手方向全域に亘って略等間隔に直線状に配置されているのに対して、第1ソケット端子5896と第2ソケット端子5897が、ICソケットの長手方向全域に亘って千鳥状に配置されている。
<ICソケットの変形例/変形例3>
On the other hand, the connecting portion 5895 shown in FIGS. 5C and 5D has a linear shape extending straight from the front surface to the back surface of the IC socket. Further, the first socket terminal 5896 and the second socket terminal 5897 are formed by a bent portion extending obliquely with the connection portion 5895 as a base end, and a straight portion extending straight in the thickness direction of the IC socket with the bent portion as a base end. The first socket terminal 5896 shown in FIG. 3C and the second socket terminal 5897 shown in FIG. Although illustration is omitted, in this example, the connection portion 5895 into which the terminal of the package is inserted is linearly arranged at substantially equal intervals over the entire longitudinal direction of the IC socket. The 1 socket terminal 5896 and the 2nd socket terminal 5897 are arrange | positioned in the zigzag form over the longitudinal direction whole region of IC socket.
<Modified example of IC socket / Modified example 3>

図279(a)は変形例3に係るICソケット5900の外観斜視図である。上述のICソケット5850では、実装されるパッケージ5740の切欠き部5742cに相当する位置に開口部を形成したが、この例のように、実装されるパッケージ5740の切欠き部5742cに相当する位置に、ICソケット5900の両側をつなぐ補強部材5900aを設けてもよい。また、上述のICソケット5850では、パッケージ5740の切欠き部5742cに相当する位置に、コネクト部やソケット端子を配置しないように構成したが、この例のように、パッケージ5740の切欠き部5742cに相当する位置に、コネクト部5900bやソケット端子5900cを配置してもよい。このような構成とすれば、パッケージの一方側から他方側の視認性を確保しつつ、ICソケットの強度を高めたり、ソケット端子の本数を増やしたりすることができる場合がある。また、コネクト部5900bやソケット端子5900cを配置することによって、パッケージ5740とICソケット5900との間に電子部品などを挿入して取り付けることが困難となるため、不正行為を未然に防止できる場合がある。
<ICソケットの変形例/変形例4>
FIG. 279 (a) is an external perspective view of an IC socket 5900 according to the third modification. In the above-described IC socket 5850, the opening is formed at a position corresponding to the notch 5742c of the package 5740 to be mounted. However, as in this example, the opening is formed at a position corresponding to the notch 5742c of the package 5740 to be mounted. A reinforcing member 5900a that connects both sides of the IC socket 5900 may be provided. Further, in the above-described IC socket 5850, the connection portion and the socket terminal are not arranged at the position corresponding to the notch portion 5742c of the package 5740. However, as in this example, the notch portion 5742c of the package 5740 has the notch portion 5742c. You may arrange | position the connection part 5900b and the socket terminal 5900c in the corresponding position. With such a configuration, it may be possible to increase the strength of the IC socket or increase the number of socket terminals while ensuring visibility from one side of the package to the other. In addition, by arranging the connection portion 5900b and the socket terminal 5900c, it becomes difficult to insert and attach electronic components between the package 5740 and the IC socket 5900, so that illegal actions may be prevented in advance. .
<Modified example of IC socket / Modified example 4>

図279(b)は変形例4に係るICソケット5910の外観斜視図である。この例のように、実装されるパッケージ5740の切欠き部5742cに相当する位置に、切欠き部5742cの形状や大きさに合わせた凹部5910aを形成してもよい。このような構成とすれば、パッケージの切欠き部だけでなくICソケット5910の凹部5910aを通してパッケージの一方側から他方側を視認でき、視認性を高めることができる場合がある。
<ICソケットの変形例/変形例5>
FIG. 279 (b) is an external perspective view of an IC socket 5910 according to Modification 4. As in this example, a recess 5910a may be formed at a position corresponding to the notch 5742c of the package 5740 to be mounted in accordance with the shape and size of the notch 5742c. With such a configuration, there is a case where not only the notch portion of the package but also the other side of the package can be visually recognized through the concave portion 5910a of the IC socket 5910, and visibility can be improved.
<Modified example of IC socket / Modified example 5>

図279(c)は変形例5に係るICソケット5920の外観斜視図である。この例のように、パッケージ5740の切欠き部5742cに相当する位置に、切欠き部5742cの形状や大きさに合わせた(例えば、切欠き部5742cに嵌合する形状で透明部材からなる)凸部5920aを形成してもよい。このような構成とすれば、凸部5920aによってパッケージとの間に隙間を作らないようにすることで、パッケージの裏に不正器具などが設置されることを未然に防止できる場合があり、特に、凸部5920aを透明部材や半透明部材で構成すれば、凸部5920aを通してパッケージの一方側から他方側を視認でき、不正器具などが設置されたことを容易に発見できる場合がある。なお、ICパッケージの形状は、同図(a)〜(c)に示すように、パッケージの形状に合わせた形状に限定されず、例えば、ICパッケージが実装される基板の形状に合わせた形状(例えば、基板が凸部を備える場合に、この凸部と相補的形状を有する凹部を備えるICソケットなど)としてもよい。   FIG. 279 (c) is an external perspective view of an IC socket 5920 according to Modification 5. As shown in this example, a convex corresponding to the shape and size of the notch 5742c (for example, a shape that fits into the notch 5742c and made of a transparent member) is provided at a position corresponding to the notch 5742c of the package 5740. A portion 5920a may be formed. With such a configuration, it may be possible to prevent unauthorized equipment from being installed on the back of the package by preventing the convex portion 5920a from creating a gap with the package, If the convex portion 5920a is formed of a transparent member or a semi-transparent member, the other side of the package can be visually recognized through the convex portion 5920a, and it may be easy to find that an unauthorized device or the like has been installed. The shape of the IC package is not limited to the shape matched to the shape of the package as shown in FIGS. 1A to 1C. For example, the shape matched to the shape of the substrate on which the IC package is mounted ( For example, when the substrate includes a convex portion, an IC socket including a concave portion having a shape complementary to the convex portion may be used.

また、図280(a)、(b)は、ICソケットを基板に実装した例を示した外観斜視図である。同図(a)に示す例では、ICソケット5930の厚みを、基板5932に実装されている、その他の電子部品の厚みよりも薄くしている。このような構成とすれば、ICソケット5930にパッケージを実装した場合でも、他の電子部品によってパッケージを見ずらくし、パッケージの存在を分かりにくくすることができるため、パッケージに対する不正行為を防止できる場合がある。また、上述の視認容易部や切欠き部が配置される、ICソケットの短手方向には、電子部品を配置しないように構成しているため、視認容易部や切欠き部を介して、ICソケットに実装されたパッケージの裏側などを確実に視認できる場合がある。   FIGS. 280 (a) and 280 (b) are external perspective views showing an example in which an IC socket is mounted on a substrate. In the example shown in FIG. 5A, the thickness of the IC socket 5930 is made thinner than the thickness of other electronic components mounted on the substrate 5932. With such a configuration, even when the package is mounted on the IC socket 5930, it is possible to prevent the package from being obscured by other electronic components and to obscure the existence of the package. There is. In addition, since the electronic parts are not arranged in the short direction of the IC socket in which the above-described easy-to-view part and the notch part are arranged, the IC is provided via the easy-to-view part and the notch part. In some cases, the back side of the package mounted on the socket can be reliably seen.

また、同図(b)に示す例では、ICソケット5940の厚みを、ICソケット5940の長手方向一方側の基板5942上に実装されている複数の電子部品5944の厚みよりも厚くしている。このような構成とすれば、ICソケット5940の長手方向一方側からICソケット5940を観察した場合に、ICソケット5940の存在が確認し易くなるため、パッケージの実装や取り外しが容易となり、作業性を高めることができる場合がある。また、同図(a)の例に比べて、パッケージの熱を基板5942外部に逃がしやすくなるため、熱に起因する不具合を未然に防止できる場合がある。なお、この例では、電子部品5944の配置場所をICソケット5940の長手方向一方側としたが、長手方向両側でもよいし、長手方向以外の方向でもよい。   Further, in the example shown in FIG. 5B, the thickness of the IC socket 5940 is made larger than the thickness of the plurality of electronic components 5944 mounted on the substrate 5942 on one side of the IC socket 5940 in the longitudinal direction. With such a configuration, when the IC socket 5940 is observed from one side in the longitudinal direction of the IC socket 5940, the presence of the IC socket 5940 can be easily confirmed. There are cases where it can be increased. Further, compared to the example of FIG. 5A, the heat of the package is easily released to the outside of the substrate 5942, so that a defect due to the heat may be prevented in advance. In this example, the electronic component 5944 is disposed on one side in the longitudinal direction of the IC socket 5940, but may be on both sides in the longitudinal direction or in a direction other than the longitudinal direction.

また、ICソケット5940の長手方向のうち、ICソケット5940の延長上には、電子部品を配置しないことが好ましい。このような構成とすれば、ICソケットの長手方向から、ICソケットに実装されたパッケージの裏側などを視認できる場合がある。   Further, it is preferable that no electronic component is disposed on the extension of the IC socket 5940 in the longitudinal direction of the IC socket 5940. With such a configuration, the back side of the package mounted on the IC socket may be visible from the longitudinal direction of the IC socket.

また、同図(c)に示すように、基板5950の表面を覆う透明部材からなる上ケース5953と、基板5950の裏面を覆う下ケース5954を備える場合、上ケース5953における、基板5950に実装されたICソケット5951やパッケージ5952が配置される位置に、ICソケット5951やパッケージ5952に向かって凹んだ凹部5953aを形成してもよい。このような構成とすれば、上ケース5953によって基板5950が保護されているような場合でも、ICソケット5951やパッケージ5952の裏側を確実に視認できる場合がある。
<配線パターン>
Further, as shown in FIG. 6C, when an upper case 5953 made of a transparent member covering the surface of the substrate 5950 and a lower case 5954 covering the back surface of the substrate 5950 are provided, the upper case 5953 is mounted on the substrate 5950. A recessed portion 5953a that is recessed toward the IC socket 5951 or the package 5952 may be formed at a position where the IC socket 5951 or the package 5952 is disposed. With such a structure, even when the substrate 5950 is protected by the upper case 5953, the back side of the IC socket 5951 or the package 5952 may be reliably visible.
<Wiring pattern>

次に、上述のICソケットが実装される基板の配線パターンについて説明する。図281(a)は、ICソケットが実装されるランドと、これらのランドと乱数用水晶発振器5314aおよびシステム用水晶発振器5314bを接続する信号線の一例を示した図であり、同図(b)は、ランド近傍の部分拡大図である。また、図282は、ICソケットの外縁を説明するための図である。   Next, the wiring pattern of the substrate on which the above IC socket is mounted will be described. FIG. 281 (a) is a diagram showing an example of lands on which an IC socket is mounted and signal lines connecting these lands to the random number crystal oscillator 5314a and the system crystal oscillator 5314b. These are the elements on larger scale near the land. FIG. 282 is a view for explaining the outer edge of the IC socket.

この例では、基板1002上に、ICソケットが実装される(ICソケットのソケット端子が接続される)複数のランド6004a、6004b(一部のみ図示)が形成されているとともに、ICソケットの実装部から所定の距離を置いて、乱数用水晶発振器5314aとシステム用水晶発振器5314bが実装されている。ランド6004a、6004bは、基板6002に実装されるICソケットのソケット端子に対応して配置されており、この例では、ICソケットが基板6002に実装された場合のICソケットの外縁を表す外縁ラインOLから所定距離L21だけ離れた位置を中心とする円形状の外側ランド6004aと、外縁ラインOLから所定距離L22(L22>L21)だけ離れた位置を中心とする円形状の内側ランド6004bの2種類がある。   In this example, a plurality of lands 6004a and 6004b (only part of which are shown) on which an IC socket is mounted (to which a socket terminal of an IC socket is connected) are formed on a substrate 1002, and an IC socket mounting portion is formed. A random crystal oscillator 5314a and a system crystal oscillator 5314b are mounted at a predetermined distance from. The lands 6004a and 6004b are arranged corresponding to the socket terminals of the IC socket mounted on the board 6002, and in this example, the outer edge line OL representing the outer edge of the IC socket when the IC socket is mounted on the board 6002 is used. There are two types, a circular outer land 6004a centered at a position separated from the outer edge line OL by a predetermined distance L21 and a circular inner land 6004b centered at a position separated from the outer edge line OL by a predetermined distance L22 (L22> L21). is there.

ここで、「ICソケットの外縁」とは、図282に示すように、基板6002に実装された状態におけるICソケット6001の短手方向外側の面6001aを含む仮想平面VPをいい、この仮想平面VPと基板6002の表面とが交わって形成される線が、上述の外縁ラインOLである。   Here, the “outer edge of the IC socket” means a virtual plane VP including a surface 6001a on the outer side in the short direction of the IC socket 6001 in a state of being mounted on the substrate 6002, as shown in FIG. A line formed by the intersection of the surface of the substrate 6002 with the substrate 6002 is the outer edge line OL described above.

システム用水晶発振器5314bは、第1信号線6006を介して外側ランド6004aに接続され、乱数用水晶発振器5314aは、第2信号線6008を介して内側ランド6004bに接続されている。第1信号線6006の長さは、システム用水晶発振器5314bの外部クロックEX端子から外縁ラインOLまでの距離L20と、外縁ラインOLから外側ランド6004a(この例では、ICソケットのコネクト部を介してパッケージのEX端子に接続されるランド)の中心までの距離L21を足した数値となり、第2信号線6008の長さは、乱数用水晶発振器5314aの乱数用クロックRCK端子から外縁ラインOLまでの距離L20と、外縁ラインOLから内側ランド6004b(この例では、ICソケットのコネクト部を介してパッケージのRCK端子に接続されるランド)の中心までの距離L22を足した数値となる。すなわち、この例では、第1信号線6006の長さ(L20+L21)よりも、第2信号線6008の長さ(L20+L22)を長くしている。さらに、この例では、外側ランド6004aからパッケージのEX端子までの距離よりも、内側ランド6004bからパッケージのRCK端子までの距離が近くなるように、すなわち、内側ランド6004bからパッケージのRCK端子を通って入力する乱数用クロックRCKの信号が、パッケージから発生するノイズなどの影響を受けやすいように設定している。   The system crystal oscillator 5314b is connected to the outer land 6004a via the first signal line 6006, and the random crystal oscillator 5314a is connected to the inner land 6004b via the second signal line 6008. The length of the first signal line 6006 is determined by the distance L20 from the external clock EX terminal of the system crystal oscillator 5314b to the outer edge line OL, and the outer land 6004a from the outer edge line OL (in this example, via the connecting portion of the IC socket). The value is obtained by adding the distance L21 to the center of the land connected to the EX terminal of the package, and the length of the second signal line 6008 is the distance from the random number clock RCK terminal of the random number crystal oscillator 5314a to the outer edge line OL. It is a numerical value obtained by adding L20 and the distance L22 from the outer edge line OL to the center of the inner land 6004b (in this example, the land connected to the RCK terminal of the package via the connecting portion of the IC socket). That is, in this example, the length (L20 + L22) of the second signal line 6008 is longer than the length (L20 + L21) of the first signal line 6006. Further, in this example, the distance from the inner land 6004b to the package RCK terminal is closer than the distance from the outer land 6004a to the package EX terminal, that is, from the inner land 6004b to the package RCK terminal. The input random number clock signal RCK is set so as to be easily affected by noise generated from the package.

また、図283は、基板6002を側方から見た側面図である。第1信号線6006は、平板状の基板表面に沿ってシステム用水晶発振器5314bとICソケットを高低差なく真っ直ぐに接続しており、第2信号線6008は、平板状の基板表面に沿って乱数用水晶発振器5314aとICソケットを高低差無く真っ直ぐに接続している。   FIG. 283 is a side view of the substrate 6002 as viewed from the side. The first signal line 6006 connects the system crystal oscillator 5314b and the IC socket straight along the flat substrate surface without any difference in height, and the second signal line 6008 is a random number along the flat substrate surface. The crystal oscillator 5314a and the IC socket are connected straight without any difference in height.

このような構成により、システム用水晶発振器5314bをパッケージ(基本回路5302)の近傍に配置することができ、且つ、パッケージとシステム用水晶発振器5314bを結ぶ第1信号線6006の長さを短くすることができるため、システム用水晶発振器5314bから出力される外部クロックEXの信号を、安定して基本回路5302のクロック回路5340に供給することができるとともに、この外部クロックEXの信号に基づいて生成されるシステムクロックSCLKの信号も、安定してCPUコアや内部の各回路に供給することができる。   With such a configuration, the system crystal oscillator 5314b can be disposed in the vicinity of the package (basic circuit 5302), and the length of the first signal line 6006 connecting the package and the system crystal oscillator 5314b can be shortened. Therefore, the external clock EX signal output from the system crystal oscillator 5314b can be stably supplied to the clock circuit 5340 of the basic circuit 5302, and is generated based on the external clock EX signal. The signal of the system clock SCLK can also be stably supplied to the CPU core and internal circuits.

また、クロック信号の供給源と供給先を結ぶ信号線の長さは、クロック信号に外乱が加わらないようになるべく短く設定するのが一般的であるが、基本回路5302と乱数用水晶発振器5314aを結ぶ第2信号線6008の長さを敢えて長めに設定し、第2信号線6008を通る乱数用クロックRCKの信号が外乱の影響を受けやすいように構成することによって、乱数用クロックRCKの信号に基づいてカウント値のカウントを行う乱数回路5316のカウント値の更新タイミングにバラツキを与え、乱数回路5316が生成する乱数値のランダム性をさらに高めることができる。   In general, the length of the signal line connecting the supply source and the supply destination of the clock signal is set as short as possible so that no disturbance is applied to the clock signal. However, the basic circuit 5302 and the crystal oscillator for random number 5314a are provided. The length of the second signal line 6008 to be connected is set to be long, and the signal of the random number clock RCK passing through the second signal line 6008 is configured to be easily affected by the disturbance, whereby the signal of the random number clock RCK is changed. Based on this, the random number circuit 5316 that counts the count value can be varied in the update timing of the count value, and the randomness of the random value generated by the random number circuit 5316 can be further improved.

特に、第1信号線6006のうち、ICソケットによって隠れない部位(システム用水晶発振器5314bの外部クロックEX端子から外縁ラインOLまでの信号線)と、第2信号線6008のうち、ICソケットによって隠れない部位(乱数用水晶発振器5314aの乱数用クロックRCK端子から外縁ラインOLまでの信号線)は同じ長さに設定されているため、一見しただけでは第2信号線6008の長さが長めに設定されていることを把握することができない。このため、不正行為者が不正行為を行う可能性が高まるおそれがあるが、乱数用クロックRCKの信号の異常を検出することができるため、不正行為を確実に発見できる。
<配線パターンの変形例/変形例1>
In particular, the portion of the first signal line 6006 that is not hidden by the IC socket (the signal line from the external clock EX terminal of the system crystal oscillator 5314b to the outer edge line OL) and the second signal line 6008 that is hidden by the IC socket. Since no part (the signal line from the random number clock RCK terminal of the random number crystal oscillator 5314a to the outer edge line OL) is set to the same length, the length of the second signal line 6008 is set to be longer at first glance. I can't figure out what is being done. For this reason, there is a possibility that a fraudulent person may increase the possibility of fraud. However, since the abnormality of the signal of the random number clock RCK can be detected, the fraudulent act can be reliably detected.
<Modification Example of Wiring Pattern / Modification Example 1>

図284は、変形例1に係る配線パターンを示した図である。この例では、基板6012上に、ICソケットが実装される外側ランド6014a、内側ランド6014b(一部のみ図示)が形成されているとともに、(乱数用水晶発振器5314aを兼ねる)システム用水晶発振器5314bが実装されている。   FIG. 284 is a diagram illustrating a wiring pattern according to the first modification. In this example, an outer land 6014a and an inner land 6014b (only part of which are shown) on which an IC socket is mounted are formed on a substrate 6012, and a system crystal oscillator 5314b (also serving as a random number crystal oscillator 5314a) is formed. Has been implemented.

システム用水晶発振器5314bは、第1信号線6016を介して外側ランド6014aに接続されるとともに、第2信号線6018を介して内側ランド6014bに接続される。第1信号線6016の長さは、システム用水晶発振器5314bの外部クロックEX端子から外縁ラインOLまでの距離L30と、外縁ラインOLから外側ランド6014a(この例では、ICソケットのコネクト部を介してパッケージのRCK端子に接続されるランド)の中心までの距離L31を足した数値となり、第2信号線6018の長さは、システム用水晶発振器5314bの外部クロックEX端子から外縁ラインOLまでの距離L32(L32>L30)と、外縁ラインOLから内側ランド6014b(この例では、ICソケットのコネクト部を介してパッケージのRCK端子に接続されるランド)の中心までの距離L33(L33>L31)を足した数値となる。すなわち、この例では、第1信号線6016の長さ(L30+L31)よりも、第2信号線6018の長さ(L32+L33)を長くしている。   The system crystal oscillator 5314b is connected to the outer land 6014a via the first signal line 6016 and is connected to the inner land 6014b via the second signal line 6018. The length of the first signal line 6016 is determined by the distance L30 from the external clock EX terminal of the system crystal oscillator 5314b to the outer edge line OL, and the outer land 6014a from the outer edge line OL (in this example, via the connecting portion of the IC socket). The value is obtained by adding the distance L31 to the center of the land) connected to the RCK terminal of the package, and the length of the second signal line 6018 is the distance L32 from the external clock EX terminal of the system crystal oscillator 5314b to the outer edge line OL. (L32> L30) and a distance L33 (L33> L31) from the outer edge line OL to the center of the inner land 6014b (in this example, the land connected to the RCK terminal of the package via the connecting portion of the IC socket) It becomes the numerical value. That is, in this example, the length (L32 + L33) of the second signal line 6018 is longer than the length (L30 + L31) of the first signal line 6016.

このような構成により、システム用水晶発振器5314bをパッケージ(基本回路5302)の近傍に配置することができ、且つ、パッケージとシステム用水晶発振器5314bを結ぶ第1信号線6016の長さを短くすることができるため、システム用水晶発振器5314bから出力される外部クロックEXの信号を、安定して基本回路5302のクロック回路5340に供給することができるとともに、この外部クロックEXの信号に基づいて生成されるシステムクロックSCLKの信号も、安定してCPUコアや内部の各回路に供給することができる。   With such a configuration, the system crystal oscillator 5314b can be disposed in the vicinity of the package (basic circuit 5302), and the length of the first signal line 6016 connecting the package and the system crystal oscillator 5314b can be shortened. Therefore, the external clock EX signal output from the system crystal oscillator 5314b can be stably supplied to the clock circuit 5340 of the basic circuit 5302, and is generated based on the external clock EX signal. The signal of the system clock SCLK can also be stably supplied to the CPU core and internal circuits.

また、クロック信号の供給源と供給先を結ぶ信号線の長さは、クロック信号に外乱が加わらないようになるべく短く設定するのが一般的であるが、第2信号線6018の長さを敢えて長めに設定し、第2信号線6018を通る乱数用クロックRCKの信号が外乱の影響を受けやすいように構成することによって、乱数用クロックRCKの信号に基づいてカウント値のカウントを行う乱数回路5316のカウント値の更新タイミングにバラツキを与え、乱数回路5316が生成する乱数値のランダム性をさらに高めることができる。   In general, the length of the signal line connecting the supply source and the supply destination of the clock signal is set as short as possible so that no disturbance is applied to the clock signal, but the length of the second signal line 6018 is deliberately set. A random number circuit 5316 that counts the count value based on the signal of the random number clock RCK by setting the length longer and configuring the signal of the random number clock RCK passing through the second signal line 6018 to be easily affected by the disturbance. Thus, the randomness of the random number generated by the random number circuit 5316 can be further improved.

また、第1信号線6016と第2信号線6018の一部を共有化することによって、配線パターンを簡素化できる場合がある。   In some cases, the wiring pattern can be simplified by sharing a part of the first signal line 6016 and the second signal line 6018.

<配線パターンの変形例/変形例2、3>   <Modification Example of Wiring Pattern / Modification Examples 2 and 3>

図285(a)は、変形例2に係る配線パターンを示した図である。この例は、上記図281(a)に示した配線パターンと略同一であるが、システム用水晶発振器5314bが接続される外側ランド6004aと、乱数用水晶発振器5314aが接続される内側ランド6004bとの間に、2つの外側ランド6004aを配置している。そして、一方の外側ランド6004aをパッケージの第1の電源端子(例えば、上述の正電源端子VDD1)に接続し、他方の外側ランド6004aをパッケージの第2の電源端子(例えば、上述のバックアップ用電源端子VBB)に接続する点が異なっている。   FIG. 285A is a diagram illustrating a wiring pattern according to the second modification. This example is substantially the same as the wiring pattern shown in FIG. 281 (a), but the outer land 6004a to which the system crystal oscillator 5314b is connected and the inner land 6004b to which the random number crystal oscillator 5314a is connected. Two outer lands 6004a are arranged between them. One outer land 6004a is connected to a first power supply terminal (for example, the above-described positive power supply terminal VDD1) of the package, and the other outer land 6004a is connected to a second power supply terminal (for example, the above-described backup power supply). The connection is different from the terminal VBB).

一方、同図(b)は、変形例3に係る配線パターンを示した図である。この例は、同図(a)に示した配線パターンと類似しているが、パッケージの第1の電源端子に接続された外側ランド6004aからの電源線6033を、スルーホールを介して基板6032の裏面に配線し、パッケージの第2の電源端子に接続された外側ランド6004aからの電源線6034を、基板6032の表面に乱数値水晶発振器5314aの近傍を通して配線している。   On the other hand, FIG. 5B is a diagram showing a wiring pattern according to the third modification. This example is similar to the wiring pattern shown in FIG. 5A, but the power line 6033 from the outer land 6004a connected to the first power terminal of the package is connected to the substrate 6032 through the through hole. A power supply line 6034 from the outer land 6004a connected to the second power supply terminal of the package is wired on the back surface of the substrate 6032 through the vicinity of the random value crystal oscillator 5314a.

このような構成により、第1信号線6006を通る外部クロックEXの信号が電源線による影響を受けにくくすることができ、システム用水晶発振器5314bから出力される外部クロックEXの信号を、安定して基本回路5302のクロック回路5340に供給することができるとともに、この外部クロックEXの信号に基づいて生成されるシステムクロックSCLKの信号も、安定してCPUコアや内部の各回路に供給することができる。   With such a configuration, the signal of the external clock EX passing through the first signal line 6006 can be made less affected by the power supply line, and the signal of the external clock EX output from the system crystal oscillator 5314b can be stabilized. In addition to being able to be supplied to the clock circuit 5340 of the basic circuit 5302, the signal of the system clock SCLK generated based on the signal of the external clock EX can also be stably supplied to the CPU core and internal circuits. .

また、第2信号線6008の近傍に電源線6034を配線して第2信号線6008を通る乱数用クロックRCKの信号が外乱の影響を受けやすいように構成することによって、乱数用クロックRCKの信号に基づいてカウント値のカウントを行う乱数回路5316のカウント値の更新タイミングにバラツキを与え、乱数回路5316が生成する乱数値のランダム性をさらに高めることができる。
<配線パターンの変形例/変形例4>
Further, by arranging a power supply line 6034 in the vicinity of the second signal line 6008 so that the signal of the random number clock RCK passing through the second signal line 6008 is easily influenced by disturbance, the signal of the random number clock RCK Thus, the random number circuit 5316 that counts the count value can be varied in the update timing of the count value, and the randomness of the random value generated by the random number circuit 5316 can be further improved.
<Modification Example of Wiring Pattern / Modification Example 4>

図286は、変形例4に係る配線パターンを示した図である。この例では、システム用水晶発振器5314bが接続されるランド6044bの上側に配置されたランド6044aが、パッケージのグランド端子(例えば、上述のグランド電位端子VSS1)に接続されているとともに、システム用水晶発振器5314bが接続されるランド6044bの下側に配置されたランド6044cが、パッケージの第1の電源端子(例えば、上述の正電源端子VDD1)に接続されている。また、乱数用水晶発振器5314aが接続されるランド6044eの上側に配置されたランド6044dが、パッケージの第2の電源端子(例えば、上述のバックアップ用電源端子VBB)に接続されているとともに、乱数用水晶発振器5314aが接続されるランド6044eの下側に配置されたランド6044fが、パッケージの制御信号線(例えば、チップセレクト端子)に接続されている。   FIG. 286 is a diagram illustrating a wiring pattern according to the fourth modification. In this example, the land 6044a disposed above the land 6044b to which the system crystal oscillator 5314b is connected is connected to the ground terminal of the package (for example, the above-described ground potential terminal VSS1), and the system crystal oscillator A land 6044c disposed below the land 6044b to which 5314b is connected is connected to a first power supply terminal (for example, the above-described positive power supply terminal VDD1) of the package. In addition, a land 6044d disposed above the land 6044e to which the random number crystal oscillator 5314a is connected is connected to the second power supply terminal of the package (for example, the above-described backup power supply terminal VBB), and for the random number. A land 6044f disposed below the land 6044e to which the crystal oscillator 5314a is connected is connected to a control signal line (for example, a chip select terminal) of the package.

このように、第1信号線6006の近傍に信号の変化が少ない線(電源線、グランド線)を配置することで、第1信号線6006を通る外部クロックEXの信号が影響を受けにくくすることができ、システム用水晶発振器5314bから出力される外部クロックEXの信号を、安定して基本回路5302のクロック回路5340に供給することができるとともに、この外部クロックEXの信号に基づいて生成されるシステムクロックSCLKの信号も、安定してCPUコアや内部の各回路に供給することができる。   Thus, by arranging a line (power supply line, ground line) with little signal change in the vicinity of the first signal line 6006, the signal of the external clock EX passing through the first signal line 6006 is less affected. The external clock EX signal output from the system crystal oscillator 5314b can be stably supplied to the clock circuit 5340 of the basic circuit 5302, and the system is generated based on the external clock EX signal. The signal of the clock SCLK can also be stably supplied to the CPU core and internal circuits.

また、第2信号線6008の近傍に信号の変化が多い線(制御信号線)を配置することで、第2信号線6008を通る乱数用クロックRCKの信号が外乱の影響を受けやすいように構成することによって、乱数用クロックRCKの信号に基づいてカウント値のカウントを行う乱数回路5316のカウント値の更新タイミングにバラツキを与え、乱数回路5316が生成する乱数値のランダム性をさらに高めることができる。
<配線パターンの変形例/変形例5>
Further, by arranging a line (control signal line) with a large signal change in the vicinity of the second signal line 6008, the signal of the random number clock RCK passing through the second signal line 6008 is easily affected by disturbance. By doing so, the count value update timing of the random number circuit 5316 that counts the count value based on the signal of the random number clock RCK can be varied, and the randomness of the random value generated by the random number circuit 5316 can be further enhanced. .
<Modification of wiring pattern / Modification 5>

図287(a)は、変形例5に係る配線パターンを示した図である。この例では、基板上の外縁ラインOLから所定距離L41だけ離れた位置に、3つのランド6040a、6040b、6040cが配置され、ランド6040aがグランド線6042に接続され、ランド6040bがシステム用水晶発振器のシステムクロック線6044に接続され、ランド6040cが電源線6046に接続されている。また、グランド線6042が接続されたランド6040aの外縁と、システムクロック線6044が接続されたランド6040bの外縁との間の距離W1と、システムクロック線6044が接続されたランド6040bの外縁と、電源線6046が接続されたランド6040cの外縁との間の距離W1が同一距離とされている。   FIG. 287 (a) is a diagram illustrating a wiring pattern according to the fifth modification. In this example, three lands 6040a, 6040b, 6040c are arranged at a position separated by a predetermined distance L41 from the outer edge line OL on the substrate, the land 6040a is connected to the ground line 6042, and the land 6040b is connected to the system crystal oscillator. The system clock line 6044 is connected, and the land 6040 c is connected to the power supply line 6046. Further, a distance W1 between the outer edge of the land 6040a to which the ground line 6042 is connected and the outer edge of the land 6040b to which the system clock line 6044 is connected, the outer edge of the land 6040b to which the system clock line 6044 is connected, and a power source The distance W1 between the outer edge of the land 6040c to which the line 6046 is connected is the same distance.

これに対して、同図(b)に示す例では、基板上の外縁ラインOLから所定距離L41だけ離れた位置に、グランド線6042が接続されたランド6040aと、電源線6046が接続されたランド6040cが配置され、基板上の外縁ラインOLから所定距離L42(L42>L41)だけ離れた位置に、システムクロック線6044が接続されたランド6040bが配置されている。また、ランド6040bをランド6040a、6040cよりも外縁ラインOLから離れた位置に配置することによって、グランド線6042が接続されたランド6040aの外縁と、システムクロック線6044の外縁との間の距離W2と、システムクロック線6044の外縁と、電源線が接続されたランド6040cの外縁との間の距離W2の両方を、同図(a)に示す距離W1よりも長くしている。   On the other hand, in the example shown in FIG. 5B, the land 6040a to which the ground line 6042 is connected and the land to which the power line 6046 is connected are separated from the outer edge line OL on the substrate by a predetermined distance L41. 6040c is disposed, and a land 6040b to which the system clock line 6044 is connected is disposed at a position separated from the outer edge line OL on the substrate by a predetermined distance L42 (L42> L41). Further, by disposing the land 6040b farther from the outer edge line OL than the lands 6040a and 6040c, the distance W2 between the outer edge of the land 6040a to which the ground line 6042 is connected and the outer edge of the system clock line 6044 is Both the distance W2 between the outer edge of the system clock line 6044 and the outer edge of the land 6040c to which the power supply line is connected are longer than the distance W1 shown in FIG.

また、同図(c)に示す例では、基板上の外縁ラインOLから所定距離L42だけ離れた位置に、グランド線6042が接続されたランド6040aと、電源線6046が接続されたランド6040cが配置され、基板上の外縁ラインOLから所定距離L41(L41<L42)だけ離れた位置に、システムクロック線6044が接続されたランド6040bが配置されている。また、ランド6040a、6040cをランド6040bよりも外縁ラインOLから離れた位置に配置することによって、グランド線6042の外縁と、システムクロック線6044が接続されたランド6040bの外縁との間の距離W2と、システムクロック線6044が接続されたランド6040bと、電源線6046の外縁との間の距離W2の両方を、同図(a)に示す距離Laよりも長くしている。   Further, in the example shown in FIG. 5C, a land 6040a to which the ground line 6042 is connected and a land 6040c to which the power line 6046 is connected are arranged at a predetermined distance L42 from the outer edge line OL on the substrate. The land 6040b to which the system clock line 6044 is connected is disposed at a position separated from the outer edge line OL on the substrate by a predetermined distance L41 (L41 <L42). Further, by disposing the lands 6040a and 6040c at positions farther from the outer edge line OL than the land 6040b, a distance W2 between the outer edge of the ground line 6042 and the outer edge of the land 6040b to which the system clock line 6044 is connected. Both the distance W2 between the land 6040b to which the system clock line 6044 is connected and the outer edge of the power supply line 6046 are longer than the distance La shown in FIG.

同図(b)、(c)に示す構成によれば、システムクロック線6044を、グランド線6042や電源線6046から、ランドの膨らみに相当する距離だけ離れた位置に配置することができ、システムクロック線6044を通る外部クロックEXの信号が影響を受けにくくすることができ、システム用水晶発振器5314bから出力される外部クロックEXの信号を、安定して基本回路5302のクロック回路5340に供給することができるとともに、この外部クロックEXの信号に基づいて生成されるシステムクロックSCLKの信号も、安定してCPUコアや内部の各回路に供給することができる。また、この例では、グランド線6042の外縁と、システムクロック線6044が接続されたランド6040bの外縁との間の距離と、システムクロック線6044が接続されたランド6040bと、電源線6046の外縁との間の距離を同じ距離W2としたが、例えば、一方を他方よりも長くしてもよい。
<配線パターンの変形例/変形例6>
According to the configuration shown in FIGS. 5B and 5C, the system clock line 6044 can be disposed at a position away from the ground line 6042 and the power supply line 6046 by a distance corresponding to the swelling of the land. The signal of the external clock EX passing through the clock line 6044 can be hardly affected, and the signal of the external clock EX output from the system crystal oscillator 5314b is stably supplied to the clock circuit 5340 of the basic circuit 5302. In addition, the signal of the system clock SCLK generated based on the signal of the external clock EX can be stably supplied to the CPU core and internal circuits. In this example, the distance between the outer edge of the ground line 6042 and the outer edge of the land 6040b to which the system clock line 6044 is connected, the land 6040b to which the system clock line 6044 is connected, and the outer edge of the power supply line 6046 However, for example, one may be longer than the other.
<Modification Example of Wiring Pattern / Modification Example 6>

図288は、変形例6に係る配線パターンを示した図である。この例では、基板上の外縁ラインOLから所定距離L51だけ離れた位置に、2つのランド6050a、6050bが配置され、基板上の外縁ラインOLから所定距離L52(L52>L51)だけ離れた位置に、1つのランド6050cが配置されている。また、ランド6050aはシステム用水晶発振器5314bの外部クロックEX端子に接続されており、両者を接続する信号線は屈曲されずに直線形状とされている。一方、ランド6050cは乱数用水晶発振器5314bの乱数用クロックRCK端子に接続されており、両者を接続する信号線は途中で屈曲されている。   FIG. 288 is a diagram illustrating a wiring pattern according to the sixth modification. In this example, two lands 6050a and 6050b are arranged at a position away from the outer edge line OL on the substrate by a predetermined distance L51, and at a position away from the outer edge line OL on the board by a predetermined distance L52 (L52> L51). One land 6050c is arranged. The land 6050a is connected to the external clock EX terminal of the system crystal oscillator 5314b, and the signal line connecting the two is not bent but is linear. On the other hand, the land 6050c is connected to the random number clock RCK terminal of the random number crystal oscillator 5314b, and the signal line connecting both is bent halfway.

このような構成により、システム用水晶発振器5314bをパッケージ(基本回路5302)の近傍に配置することができ、且つ、パッケージとシステム用水晶発振器5314bを結ぶ第1信号線6052の長さを短くすることができるため、システム用水晶発振器5314bから出力される外部クロックEXの信号を、安定して基本回路5302のクロック回路5340に供給することができるとともに、この外部クロックEXの信号に基づいて生成されるシステムクロックSCLKの信号も、安定してCPUコアや内部の各回路に供給することができる。   With this configuration, the system crystal oscillator 5314b can be disposed in the vicinity of the package (basic circuit 5302), and the length of the first signal line 6052 connecting the package and the system crystal oscillator 5314b can be shortened. Therefore, the external clock EX signal output from the system crystal oscillator 5314b can be stably supplied to the clock circuit 5340 of the basic circuit 5302, and is generated based on the external clock EX signal. The signal of the system clock SCLK can also be stably supplied to the CPU core and internal circuits.

また、クロック信号の供給源と供給先を結ぶ信号線の長さは、クロック信号に外乱が加わらないようになるべく短く設定するのが一般的であるが、基本回路5302と乱数用水晶発振器5314aを結ぶ第2信号線6054の長さを敢えて長めに設定し、第2信号線6054を通る乱数用クロックRCKの信号が外乱の影響を受けやすいように構成することによって、乱数用クロックRCKの信号に基づいてカウント値のカウントを行う乱数回路5316のカウント値の更新タイミングにバラツキを与え、乱数回路5316が生成する乱数値のランダム性をさらに高めることができる。
<基板>
In general, the length of the signal line connecting the supply source and the supply destination of the clock signal is set as short as possible so that no disturbance is applied to the clock signal. However, the basic circuit 5302 and the crystal oscillator for random number 5314a are provided. The length of the second signal line 6054 to be connected is set to be long, and the signal of the random number clock RCK passing through the second signal line 6054 is configured to be easily affected by the disturbance, whereby the signal of the random number clock RCK is changed. Based on this, the random number circuit 5316 that counts the count value can be varied in the update timing of the count value, and the randomness of the random value generated by the random number circuit 5316 can be further improved.
<Board>

図289は、上述のICソケットを実装する基板の平面図である。同図に示す基板6050は、ICソケットのソケット端子を実装するための複数のランド6052を有する矩形状のICソケット実装部6054を4つ備えるとともに、このICソケット実装部6054の周囲をグランド領域6056としている。また、複数のランド6052のうち、パッケージのグランド端子に接続される2つのランド6052aは、信号線などを介することなく、直接、グランド領域6056と連通されている。なお、本実施形態に係る基板は、部品面でもよく、ハンダ面でもよい。   FIG. 289 is a plan view of a substrate on which the above-described IC socket is mounted. The substrate 6050 shown in the figure includes four rectangular IC socket mounting portions 6054 having a plurality of lands 6052 for mounting IC socket socket terminals, and a ground region 6056 around the IC socket mounting portion 6054. It is said. Of the plurality of lands 6052, two lands 6052a connected to the ground terminal of the package are directly connected to the ground region 6056 without passing through a signal line or the like. Note that the substrate according to the present embodiment may be a component surface or a solder surface.

このような構成により、基板とランドを接続するグランド線を従来よりも削減できる場合がある上に、回路変更などによってグランド電位が取りたい場合にグランド電位を取りやすくすることができ、利便性を高めることができる場合がある。
<基板の変形例/変形例1>
With such a configuration, there are cases where the number of ground lines connecting the substrate and the land can be reduced as compared to the conventional case, and in addition, when it is desired to obtain the ground potential by changing the circuit, the ground potential can be easily obtained. There are cases where it can be increased.
<Variation of substrate / Variation 1>

図290は、変形例1に係る基板の平面図である。同図に示す基板6060は、ICソケットのソケット端子を実装するための複数のランド6062を有する4つのICソケット実装部6064を備えるとともに、基板6060に実装されるICソケットの一方側から他方側を跨ぐようにして電源領域6068が配置されている。また、複数のランド6062のうち、パッケージの電源端子にされる2つのランド6062aは、信号線などを介することなく、直接、電源領域6068と連通されている。   FIG. 290 is a plan view of the substrate according to the first modification. The substrate 6060 shown in the figure includes four IC socket mounting portions 6064 having a plurality of lands 6062 for mounting the socket terminals of the IC socket, and the other side from the one side of the IC socket mounted on the substrate 6060. A power supply region 6068 is arranged so as to straddle. Further, of the plurality of lands 6062, two lands 6062a used as power supply terminals of the package are directly communicated with the power supply region 6068 without using a signal line or the like.

このような構成により、基板とランドを接続する電源線を従来よりも削減できる場合がある上に、回路変更などによって電源が取りたい場合に電源を取りやすくすることができ、利便性を高めることができる場合がある。
<基板の変形例/変形例2>
With such a configuration, the power line connecting the board and the land may be reduced as compared to the conventional case, and in addition, when it is desired to take a power source by changing the circuit, the power source can be easily taken and the convenience is improved. May be possible.
<Variation of substrate / Variation 2>

図291は、変形例2に係る基板の平面図である。同図に示す基板6070は、ICソケットのソケット端子を実装するための複数のランド6072を有する矩形状の4つのICソケット実装部6074を備えているとともに、これらのICソケット実装部6074の各々には、複数(この例では4つ)のランド6072が千鳥状に配置されている。また、この例では、複数のランド6072のうち、ICソケットの外側に配置されたソケット端子に対応するランドのみを、基板6070に実装された電子部品などに接続し、内側に配置されたランドは、電子部品などに接続せずに未使用としている。なお、この例では、ランドが千鳥状に配置された実装部を4つ備えたが、4つの実装部のうちの一つ、複数、または全ての実装部においてランドを千鳥状に配置してもよく、また、実装部の数も4つに限定されない。   FIG. 291 is a plan view of a substrate according to the second modification. The substrate 6070 shown in the figure includes four rectangular IC socket mounting portions 6074 having a plurality of lands 6072 for mounting IC socket socket terminals, and each of these IC socket mounting portions 6074 is provided. A plurality (four in this example) of lands 6072 are arranged in a staggered manner. Further, in this example, of the plurality of lands 6072, only the lands corresponding to the socket terminals arranged outside the IC socket are connected to the electronic components mounted on the substrate 6070, and the lands arranged inside are It is unused without being connected to electronic parts. In this example, there are four mounting portions in which the lands are arranged in a staggered pattern. However, the lands may be arranged in a staggered pattern in one, a plurality, or all of the four mounting units. Also, the number of mounting parts is not limited to four.

このような構成により、隣接する信号線の間に所定の距離を設けることができ、他の信号線によるノイズなどの影響を減らすことができる上に、回路設計が容易になる場合がある。
<基板の変形例/変形例3>
With such a configuration, a predetermined distance can be provided between adjacent signal lines, the influence of noise and the like caused by other signal lines can be reduced, and circuit design can be facilitated.
<Modification Example of Substrate / Modification Example 3>

図292は、変形例3に係る基板の平面図である。同図に示す基板6080は、ICソケットのソケット端子を実装するための複数(この例では16)のランド6082を備えており、これらのランド6082が千鳥状に配置されている。また、この例では、複数のランド6082のうち、ICソケットの外側に配置されたソケット端子に対応するランドのみを、基板6080に実装された電子部品などに接続し、内側に配置されたランドは、電子部品などに接続せずに未使用としている。また、この例では、基板6080の全ての領域のうち、複数のランド6082と、電子部品などへの配線を除いた領域をグランド領域6084としている。   FIG. 292 is a plan view of a substrate according to the third modification. A substrate 6080 shown in the figure includes a plurality of (16 in this example) lands 6082 for mounting socket terminals of IC sockets, and these lands 6082 are arranged in a staggered manner. In this example, among the lands 6082, only lands corresponding to socket terminals arranged outside the IC socket are connected to electronic components mounted on the substrate 6080, and the lands arranged inside are It is unused without being connected to electronic parts. Further, in this example, a region excluding a plurality of lands 6082 and wirings for electronic components among all the regions of the substrate 6080 is a ground region 6084.

このような構成により、基板とランドを接続するグランド線を従来よりも削減できる場合がある上に、回路変更などによってグランド電位が取りたい場合にグランド電位を取りやすくすることができ、利便性を高めることができる場合がある。また、隣接する信号線の間に所定の距離を設けることができ、他の信号線によるノイズなどの影響を減らすことができる上に、回路設計が容易になる場合がある。   With such a configuration, there are cases where the number of ground lines connecting the substrate and the land can be reduced as compared to the conventional case, and in addition, when it is desired to obtain the ground potential by changing the circuit, the ground potential can be easily obtained. There are cases where it can be increased. In addition, a predetermined distance can be provided between adjacent signal lines, and the influence of noise and the like caused by other signal lines can be reduced, and circuit design can be facilitated.

以上説明したように、本実施形態に係るパチンコ機5100は、遊技制御を行う遊技制御用のマイクロコンピュータ(例えば、図264(a)に示すパッケージ5680)が設けられた基板を有する主制御手段(例えば、主制御部5300)と、前記主制御手段の遊技制御に基づいて遊技の演出制御を行う副制御手段(例えば、第1副制御部5400)と、を備えた遊技台であって、前記マイクロコンピュータは、端子(例えば、端子5682)を設けることで該端子によって、該マイクロコンピュータの裏面における第一の領域、該裏面に対向する前記基板の表面における第二の領域および前記裏面と前記表面との間の空間における第三の領域のうちの少なくとも一つである特定の領域を視認困難にする視認非容易部(例えば、視認非容易部5680a)と、前記端子を設けないことによって、前記視認非容易部よりも前記特定の領域を視認容易にする視認容易部(例えば、視認容易部680b)と、を有して構成されていることを特徴とする遊技台である。   As described above, the pachinko machine 5100 according to the present embodiment has a main control means having a board provided with a game control microcomputer (for example, the package 5680 shown in FIG. 264 (a)) for performing game control. For example, a gaming machine comprising a main control unit 5300) and sub-control means (for example, a first sub-control unit 5400) that performs game effect control based on the game control of the main control means, The microcomputer is provided with a terminal (for example, a terminal 5682), whereby the first region on the back surface of the microcomputer, the second region on the surface of the substrate facing the back surface, and the back surface and the front surface by the terminal. A non-viewable part that makes it difficult to visually recognize a specific region that is at least one of the third regions in the space between 5680a) and an easy-to-view part (for example, easy-to-view part 680b) that makes the specific region easier to see than the non-viewable part by not providing the terminal. It is a game stand characterized by.

換言すれば、前記マイクロコンピュータは、端子を設けることで該端子によって視認困難となる範囲を有する視認非容易部と、前記端子を設けないことで前記非視認容易部よりも視認困難となる範囲が狭くなる視認容易部と、を有して構成されていることを特徴とする遊技台である。なお、本発明に係る「視認困難」とは、特定の領域を完全に見ることができない場合(視認が不可能な場合)に限定されず、視認容易部に比べて特定の領域が僅かに視認し難い状態も含む概念である。一方、本発明に係る「視認容易」とは、特定の領域を全て見ることができる場合に限定されず、視認非容易部に比べて特定の領域が僅かに視認し易い状態も含む概念である。また、本発明に係る「特定の領域」は、マイクロコンピュータの端子の表面や、マイクロコンピュータの端子と基板間を接続するためのICソケットの表面などを含む概念である。   In other words, the microcomputer has a non-viewable part having a range that is difficult to visually recognize by providing the terminal, and a range that is more difficult to view than the non-visible part by not providing the terminal. It is a gaming machine characterized by having an easily visible portion that narrows. The “difficult to see” according to the present invention is not limited to the case where the specific area cannot be completely seen (when visual recognition is impossible), and the specific area is slightly visible compared to the easy-to-view part. It is a concept that includes difficult situations. On the other hand, the “easy visual recognition” according to the present invention is not limited to the case where all the specific area can be seen, and is a concept including a state where the specific area is slightly easier to visually recognize than the non-visually easy part. . Further, the “specific region” according to the present invention is a concept including the surface of a microcomputer terminal and the surface of an IC socket for connecting the terminal of the microcomputer and a substrate.

本実施形態に係るパチンコ機5100によれば、視認容易部を通して遊技制御用マイクロコンピュータの裏側近傍の特定の領域を視認することができ、マイクロコンピュータの裏側などに不正部品を取り付けるような不正行為を未然に防止することができる場合がある。また、視認非容易部によって特定の領域の存在をメーカやパチンコ店以外の人には知られ難くする一方で、視認容易部によってメーカやパチンコ店の人には特定の領域に不正部品が設けられていないかどうかを確認しやすくすることができ、不正改造を防止できる場合がある。   According to the pachinko machine 5100 according to the present embodiment, a specific area in the vicinity of the back side of the game control microcomputer can be visually recognized through the easy-to-view part, and illegal activities such as attaching illegal parts to the back side of the microcomputer or the like can be performed. In some cases, this can be prevented. In addition, it is difficult for people other than manufacturers and pachinko stores to know the presence of a specific area due to the non-easy-to-view part, while illegal parts are provided in specific areas for those at the manufacturer and pachinko shop by the easy-to-view part. It may be easier to check whether or not it has been tampered with and may prevent unauthorized modification.

また、前記視認非容易部における端子は、前記マイクロコンピュータの短手方向両側にのみ設けられていてもよい(例えば、図267(b)に示すパッケージ5760、図267(c)に示すパッケージ5770などを参照)。   Further, the terminals in the visually unrecognizable part may be provided only on both sides in the short direction of the microcomputer (for example, a package 5760 shown in FIG. 267 (b), a package 5770 shown in FIG. 267 (c), etc. See).

このような構成とすれば、短手方向両側の視認容易部を通して遊技制御用マイクロコンピュータの裏側近傍の特定の領域を様々な角度から視認することができるため、さらに不正部品などを見つけることが容易となる場合がある。   With this configuration, a specific area near the back side of the game control microcomputer can be viewed from various angles through the easy-to-view parts on both sides in the short direction, making it easier to find unauthorized parts. It may become.

また、前記視認容易部(例えば、図266(c)に示す視認非容易部5732a、図266(d)に示す切欠き部5742c、図268(a)、(b)に示すスリット、図267(d)に示すラウンド部5780a、図269(a)に示す円弧状の切欠き部)が、前記遊技制御用マイクロコンピュータの短手方向片側に設けられていてもよい。   Further, the easy-to-view part (for example, the non-viewable part 5732a shown in FIG. 266 (c), the notch part 5742c shown in FIG. 266 (d), the slit shown in FIGS. 268 (a) and (b), FIG. A round portion 5780a shown in d) and an arc-shaped cutout portion shown in FIG. 269 (a) may be provided on one side in the short direction of the gaming control microcomputer.

このような構成とすれば、短手方向片側の視認容易部を通して遊技制御用マイクロコンピュータの裏側近傍の特定の領域を視認することができるため、さらに不正部品などを見つけることが容易となる場合がある。   With such a configuration, it is possible to visually recognize a specific area in the vicinity of the back side of the gaming control microcomputer through the easy-to-view part on one side in the short direction. is there.

また、前記遊技制御用マイクロコンピュータには長手方向に沿って複数の端子が配置され、前記視認容易部(例えば、図267(b)に示す細径部5765、図267(c)に示す切欠き部5775、図267(a)、(b)に示すスリット)が、前記端子間に設けられていてもよい。   The game control microcomputer has a plurality of terminals arranged along the longitudinal direction, and the easy-to-view part (for example, the small diameter part 5765 shown in FIG. 267 (b) and the notch shown in FIG. 267 (c)). Part 5775 and slits shown in FIGS. 267 (a) and 267 (b) may be provided between the terminals.

このような構成とすれば、多くの端子を配置することが可能でありながら、端子間の視認容易部を通して遊技制御用マイクロコンピュータの裏側近傍の特定の領域を視認することができるため、さらに不正部品などを見つけることが容易となる場合がある。   With such a configuration, although it is possible to arrange a large number of terminals, it is possible to visually recognize a specific area near the back side of the gaming control microcomputer through the easy-to-view parts between the terminals. It may be easier to find parts.

また、前記視認容易部(例えば、図267(b)に示す細径部5765、図267(c)に示す切欠き部5775、図271(a)〜(c)に示す平面視三角形状の切欠き部)が、前記短手方向両側に対向して設けられていてもよい。   Further, the easy-to-view part (for example, a narrow-diameter part 5765 shown in FIG. 267 (b), a notch part 5775 shown in FIG. 267 (c), and a triangular cut-out in plan view shown in FIGS. 271 (a) to (c). (A notch portion) may be provided opposite to both sides in the lateral direction.

このような構成とすれば、対向配置された視認容易部を通して遊技制御用マイクロコンピュータの裏側を視認することができるため、さらに不正部品などを見つけることが容易となる場合がある。   With such a configuration, it is possible to visually recognize the back side of the game control microcomputer through the facing easy-to-view parts, so that it may be easier to find unauthorized parts.

なお、上記実施形態においては、遊技球を遊技媒体としたパチンコ機の例を示したが、本発明はこれに限定されるものではなく、例えば、以下に説明するような、メダル(コイン)を遊技媒体としたスロットマシンなどにも適用可能である。
<全体構成>
In the above embodiment, an example of a pachinko machine using a game ball as a game medium has been shown. However, the present invention is not limited to this, and for example, a medal (coin) as described below is used. The present invention can also be applied to a slot machine used as a game medium.
<Overall configuration>

まず、図293を用いて、他の例に係るスロットマシン6100の全体構成について説明する。なお、同図はスロットマシン6100の外観斜視図を示したものである。   First, the overall configuration of a slot machine 6100 according to another example will be described with reference to FIG. This figure shows an external perspective view of the slot machine 6100.

スロットマシン6100は、略箱状の本体6101と、この本体6101の前面開口部に取り付けられた前面扉6102とを有して構成されている。スロットマシン6100の本体6101の中央内部には、外周面に複数種類の図柄が所定コマ数だけ配置されたリールが3個(左リール6110、中リール6111、右リール6112)収納され、スロットマシン6100の内部で回転できるように構成されている。各図柄は帯状部材に等間隔で適当数印刷され、この帯状部材が所定の円形枠材に貼り付けられて各リール6110乃至6112が構成されている。リール6110乃至6112上の図柄は、遊技者から見ると、図柄表示窓6113から縦方向に概ね3つ表示され、合計9つの図柄が見えるようになっている。そして、各リール6110乃至6112を回転させることにより、遊技者から見える図柄の組み合せが変動することとなる。なお、本実施例1では、3個のリールをスロットマシン6100の中央内部に備えているが、リールの数やリールの設置位置はこれに限定されるものではない。   The slot machine 6100 includes a substantially box-shaped main body 6101 and a front door 6102 attached to the front opening of the main body 6101. Inside the center of the main body 6101 of the slot machine 6100, three reels (a left reel 6110, a middle reel 6111, and a right reel 6112) having a plurality of types of symbols arranged on the outer peripheral surface are stored. It is configured to be able to rotate inside. Each symbol is printed on the belt-like member at an appropriate interval, and this reel-like member is affixed to a predetermined circular frame member to constitute the reels 6110 to 6112. When viewed from the player, the symbols on the reels 6110 to 6112 are displayed approximately three in the vertical direction from the symbol display window 6113 so that a total of nine symbols can be seen. Then, by rotating each of the reels 6110 to 6112, the combination of symbols that can be seen by the player varies. In the first embodiment, three reels are provided in the center of the slot machine 6100. However, the number of reels and the installation position of the reels are not limited to this.

また、図柄表示窓6113の外枠には、点滅や点灯などの点灯制御によって、後述する有効ラインや入賞ラインを報知するためのライン表示LED(図示省略)が配置されている。   In addition, a line display LED (not shown) for notifying an effective line and a winning line, which will be described later, is arranged on the outer frame of the symbol display window 6113 by lighting control such as blinking and lighting.

さらに、スロットマシン6100内部において各々のリール6110乃至6112の近傍には、投光部と受光部からなる光学式センサ(図示省略)が設けられており、この光学式センサの投光部と受光部の間を、リールに設けられた一定の長さの遮光片が通過するように構成されている。このセンサの検出結果に基づいてリール上の図柄の回転方向の位置を判断し、目的とする図柄が入賞ライン6114上に表示されるようにリール6110乃至6112を停止させる。   Further, in the slot machine 6100, an optical sensor (not shown) including a light projecting unit and a light receiving unit is provided in the vicinity of each reel 6110 to 6112. The light projecting unit and the light receiving unit of the optical sensor. A light-shielding piece of a certain length provided on the reel passes between them. Based on the detection result of this sensor, the position of the symbol in the rotation direction on the reel is determined, and the reels 6110 to 6112 are stopped so that the target symbol is displayed on the winning line 6114.

入賞ライン表示ランプ6120は、有効となる入賞ラインを示すランプである。有効となる入賞ラインは、スロットマシン6100に投入されたメダルの数によって予め定まっている。5本の入賞ライン6114のうち、例えば、メダルが1枚投入された場合、中段の水平入賞ラインが有効となり、メダルが2枚投入された場合、上段水平入賞ラインと下段水平入賞ラインが追加された3本が有効となり、メダルが3枚投入された場合、右下り入賞ラインと右上り入賞ラインが追加された5本が入賞ラインとして有効になる。なお、入賞ライン114の数については5本に限定されるものではない。   The winning line display lamp 6120 is a lamp indicating an effective winning line. An effective winning line is determined in advance by the number of medals inserted into the slot machine 6100. Of the five winning lines 6114, for example, when one medal is inserted, the middle horizontal winning line is valid, and when two medals are inserted, the upper horizontal winning line and the lower horizontal winning line are added. When three medals are inserted and three medals are inserted, the five added with the right-down winning line and the upper-right winning line become effective as the winning line. Note that the number of winning lines 114 is not limited to five.

スタートランプ6121は、リール6110乃至6112が回転することができる状態にあることを遊技者に知らせるランプである。再遊技ランプ6122は、前回の遊技において入賞役の一つである再遊技役に入賞した場合に、今回の遊技が再遊技可能であること(メダルの投入が不要であること)を遊技者に知らせるランプである。告知ランプ6123は、内部抽選において、特定の入賞役(例えば、BB(ビッグボーナス)やRB(レギュラーボーナス)等のボーナス)に内部当選していることを遊技者に知らせるランプである。メダル投入ランプ6124は、メダルの投入が可能であることを知らせるランプである。払出枚数表示器6125は、何らかの入賞役に入賞した結果、遊技者に払出されるメダルの枚数を表示するための表示器である。遊技回数表示器6126は、メダル投入時のエラー表示や、ビッグボーナスゲーム中(BBゲーム中)の遊技回数、所定の入賞役の入賞回数等を表示するための表示器である。貯留枚数表示器6127は、スロットマシン6100に電子的に貯留されているメダルの枚数を表示するための表示器である。リールパネルランプ6128は、演出用のランプである。   The start lamp 6121 is a lamp that informs the player that the reels 6110 to 6112 are in a state of being able to rotate. The replay lamp 6122 indicates to the player that the current game can be replayed (the medal insertion is not required) when a replay game that is one of the winning games in the previous game is won. It is a lamp to inform. The notification lamp 6123 is a lamp for notifying the player that a specific winning combination (for example, a bonus such as BB (Big Bonus) or RB (Regular Bonus)) is won internally in the internal lottery. The medal insertion lamp 6124 is a lamp notifying that a medal can be inserted. The payout number display 6125 is a display for displaying the number of medals to be paid out to the player as a result of winning a winning combination. The number-of-games display 6126 is an indicator for displaying an error display when a medal is inserted, the number of games during the big bonus game (in the BB game), the number of winnings of a predetermined winning combination, and the like. The stored number display 6127 is a display for displaying the number of medals stored electronically in the slot machine 6100. The reel panel lamp 6128 is an effect lamp.

メダル投入ボタン6130、6131は、スロットマシン6100に電子的に貯留されているメダルを所定の枚数分投入するためのボタンである。本実施例1においては、メダル投入ボタン6130が押下される毎に1枚ずつ最大3枚まで投入され、メダル投入ボタン6131が押下されると3枚投入されるようになっている。メダル投入口6134は、遊技を開始するに当たって遊技者がメダルを投入するための投入口である。すなわち、メダルの投入は、メダル投入ボタン6130又は6131により電子的に投入することもできるし、メダル投入口6134から実際のメダルを投入することもできる。精算ボタン6132は、スロットマシン6100に電子的に貯留されたメダル及びベットされたメダルを精算し、メダル払出口6155よりメダル受皿6156に排出するためのボタンである。メダル返却ボタン6133は、投入されたメダルが詰まった場合に押下してメダルを取り除くためのボタンである。   The medal insertion buttons 6130 and 6131 are buttons for inserting a predetermined number of medals stored electronically in the slot machine 6100. In the first embodiment, every time the medal insertion button 6130 is pressed, a maximum of three are inserted one by one, and when the medal insertion button 6131 is pressed, three are inserted. The medal slot 6134 is an slot for the player to insert a medal when starting a game. In other words, medals can be inserted electronically with the medal insertion button 6130 or 6131, or an actual medal can be inserted through the medal insertion slot 6134. The payment button 6132 is a button for adjusting the medals stored electronically in the slot machine 6100 and the bet medals and discharging them to the medal tray 6156 from the medal payout opening 6155. The medal return button 6133 is a button that is pressed to remove a medal when the inserted medal is clogged.

スタートレバー6135は、遊技の開始操作を行うためのレバー型のスイッチである。即ち、メダル投入口6134に所望する枚数のメダルを投入して、スタートレバー6135を操作すると、これを契機としてリール6110乃至6112が回転し、遊技が開始される。ストップボタン6137乃至6139は、スタートレバー6135の操作によって回転を開始したリール6110乃至6112に対する停止操作を行うためのボタンであり、各リール6110乃至6112に対応して設けられている。そして、いずれかのストップボタン6137乃至6139を操作すると対応するいずれかのリール6110乃至6112が停止することになる。   The start lever 6135 is a lever-type switch for performing a game start operation. That is, when a desired number of medals are inserted into the medal insertion slot 6134 and the start lever 6135 is operated, the reels 6110 to 6112 are rotated as a trigger, and the game is started. The stop buttons 6137 to 6139 are buttons for performing a stop operation on the reels 6110 to 6112 that have started rotating by the operation of the start lever 6135, and are provided corresponding to the reels 6110 to 6112. When any one of the stop buttons 6137 to 6139 is operated, any one of the corresponding reels 6110 to 6112 is stopped.

ドアキー孔6140は、スロットマシン6100の前面扉6102のロックを解除するためのキーを挿入する孔である。メダル払出口6155は、メダルを払出すための払出口である。メダル受皿6156は、メダル払出口6155から払出されたメダルを溜めるための器である。なお、メダル受皿6156は、本実施例1では発光可能な受皿を採用している。   Door key hole 6140 is a hole into which a key for unlocking front door 6102 of slot machine 6100 is inserted. The medal payout exit 6155 is a payout exit for paying out medals. The medal tray 6156 is a container for collecting medals paid out from the medal payout opening 6155. The medal tray 6156 employs a tray that can emit light in the first embodiment.

上部ランプ6150、サイドランプ6151、中央ランプ6152、腰部ランプ6153、下部ランプ6154は、遊技を盛り上げるための装飾用のランプである。演出装置6190は、例えば開閉自在な扉装置(シャッター)6163が前面に取り付けられた液晶表示装置を含み、この演出装置6190には、例えば小役告知等の各種の情報が表示される。音孔6160は、スロットマシン6100内部に設けられているスピーカの音を外部に出力するための孔である。タイトルパネル6162には、スロットマシン6100を装飾するための図柄が描かれる。
<主制御部300>
The upper lamp 6150, the side lamp 6151, the center lamp 6152, the waist lamp 6153, and the lower lamp 6154 are decorative lamps for exciting games. The effect device 6190 includes, for example, a liquid crystal display device on which a door device (shutter) 6163 that can be opened and closed is attached to the front surface. Various information such as a small role notification is displayed on the effect device 6190. The sound hole 6160 is a hole for outputting the sound of a speaker provided inside the slot machine 6100 to the outside. On the title panel 6162, a design for decorating the slot machine 6100 is drawn.
<Main control unit 300>

次に、図294および図295を用いて、このスロットマシン6100の制御部の回路構成について詳細に説明する。   Next, the circuit configuration of the control unit of the slot machine 6100 will be described in detail with reference to FIGS. 294 and 295.

スロットマシン6100の制御部は、大別すると、遊技の中枢部分を制御する主制御部6300と、主制御部6300より送信されたコマンドに応じて各種機器を制御する副制御部6400と、副制御部6400より送信されたコマンドに応じて液晶表示装置6157や扉装置6163を制御する扉・液晶画面表示制御部6490によって構成されている。
<主制御部>
The control unit of the slot machine 6100 can be broadly divided into a main control unit 6300 that controls the central part of the game, a sub control unit 6400 that controls various devices according to commands transmitted from the main control unit 6300, and a sub control. The door / liquid crystal screen display control unit 6490 controls the liquid crystal display device 6157 and the door device 6163 according to the command transmitted from the unit 6400.
<Main control unit>

まず、図294を用いて、スロットマシン6100の主制御部6300について説明する。なお、同図は主制御部6300の回路ブロック図を示したものである。   First, the main control unit 6300 of the slot machine 6100 will be described with reference to FIG. The figure shows a circuit block diagram of the main control unit 6300.

主制御部6300は、主制御部6300の全体を制御するための演算処理装置であるCPU6310や、CPU6310が各ICや各回路と信号の送受信を行うためのデータバス及びアドレスバスを備え、その他、以下に述べる構成を有する。クロック補正回路6314は、水晶発振器6311から発振されたクロックを分周してCPU6310に供給する回路である。例えば、水晶発振器6311の周波数が12MHzの場合に、分周後のクロックは6MHzとなる。CPU6310は、クロック補正回路6314により分周されたクロックをシステムクロックとして受け入れて動作する。   The main control unit 6300 includes a CPU 6310 that is an arithmetic processing unit for controlling the entire main control unit 6300, a data bus and an address bus for the CPU 6310 to transmit and receive signals to and from each IC and each circuit, It has the structure described below. The clock correction circuit 6314 is a circuit that divides the clock oscillated from the crystal oscillator 6311 and supplies it to the CPU 6310. For example, when the frequency of the crystal oscillator 6311 is 12 MHz, the divided clock is 6 MHz. The CPU 6310 operates by receiving the clock divided by the clock correction circuit 6314 as the system clock.

また、CPU6310には、センサやスイッチの状態を常時監視するためのタイマ割り込み処理の周期やモータの駆動パルスの送信周期を設定するためのタイマ回路6315がバスを介して接続されている。CPU6310は、電源が投入されると、データバスを介してROM6312の所定エリアに格納された分周用のデータをタイマ回路6315に送信する。タイマ回路6315は、受信した分周用のデータを基に割り込み時間を決定し、この割り込み時間ごとに、割り込み要求をCPU6310に送信する。CPU6310は、この割込み要求を契機に、各センサ等の監視や駆動パルスの送信を実行する。例えば、CPU6310のシステムクロックを6MHz、タイマ回路6315の分周値を1/256、ROM6312の分周用のデータを44に設定した場合、この割り込みの基準時間は、256×44÷6MHz=1.877msとなる。   The CPU 6310 is connected to a timer circuit 6315 for setting a timer interrupt processing cycle for constantly monitoring the sensor and switch states and a motor drive pulse transmission cycle via a bus. When the power is turned on, the CPU 6310 transmits the frequency dividing data stored in the predetermined area of the ROM 6312 to the timer circuit 6315 via the data bus. The timer circuit 6315 determines an interrupt time based on the received frequency division data, and transmits an interrupt request to the CPU 6310 for each interrupt time. In response to this interrupt request, the CPU 6310 executes monitoring of each sensor and transmission of drive pulses. For example, when the system clock of the CPU 6310 is set to 6 MHz, the frequency division value of the timer circuit 6315 is set to 1/256, and the frequency division data of the ROM 6312 is set to 44, the reference time for this interrupt is 256 × 44 ÷ 6 MHz = 1. 877 ms.

さらに、CPU6310には、各ICを制御するためのプログラム、入賞役の内部抽選時に用いる抽選データ、リールの停止位置等の各種データを記憶しているROM6312や、一時的なデータを保存するためのRAM6313が接続されている。これらのROM6312やRAM6313については他の記憶手段を用いてもよく、この点は後述する副制御部6400においても同様である。また、CPU6310には、外部の信号を受信するための入力インタフェース6360が接続され、割込み時間ごとに入力インタフェース6360を介して、スタートレバーセンサ6321、ストップボタンセンサ6322、メダル投入ボタンセンサ6323、精算スイッチセンサ6324、メダル払い出しセンサ6326、電源判定回路6327の状態を検出し、各センサを監視している。   Further, the CPU 6310 stores a ROM 6312 for storing various data such as a program for controlling each IC, lottery data used in the internal lottery of a winning combination, and a reel stop position, and for storing temporary data. A RAM 6313 is connected. Other storage means may be used for these ROM 6312 and RAM 6313, and this point is the same in the sub-control unit 6400 described later. Further, an input interface 6360 for receiving an external signal is connected to the CPU 6310, and a start lever sensor 6321, a stop button sensor 6322, a medal insertion button sensor 6323, a checkout switch via the input interface 6360 every interrupt time. The state of the sensor 6324, the medal payout sensor 6326, and the power supply determination circuit 6327 is detected, and each sensor is monitored.

メダル投入センサ6320は、メダル投入口6134に投入されたメダルを検出するためのセンサである。スタートレバーセンサ6321はスタートレバー6135の操作を検出するためのセンサである。ストップボタンセンサ6322はストップボタン6137乃至6139のいずれかが押された場合、どのストップボタンが押されたかを検出するためのセンサである。メダル投入ボタンセンサ6323はメダル投入ボタン6130、6131のいずれかが押下された場合、どのメダル投入ボタンが押されたかを検出するためのセンサである。精算スイッチセンサ6324は、精算ボタン6132に設けられており、精算ボタン6132が一回押されると、貯留されているメダル及びベットされているメダルが精算されて払い出されることになる。メダル払い出しセンサ6326は、払い出されるメダルを検出するためのセンサである。電源判定回路6327は、スロットマシン6100に供給される電源の遮断を検出するための回路である。   The medal insertion sensor 6320 is a sensor for detecting a medal inserted into the medal insertion slot 6134. The start lever sensor 6321 is a sensor for detecting the operation of the start lever 6135. The stop button sensor 6322 is a sensor for detecting which stop button is pressed when any one of the stop buttons 6137 to 6139 is pressed. The medal insertion button sensor 6323 is a sensor for detecting which medal insertion button is pressed when any of the medal insertion buttons 6130 and 6131 is pressed. The settlement switch sensor 6324 is provided on the settlement button 6132, and when the settlement button 6132 is pressed once, the stored medals and the bet medals are settled and paid out. The medal payout sensor 6326 is a sensor for detecting a medal to be paid out. The power determination circuit 6327 is a circuit for detecting the interruption of the power supplied to the slot machine 6100.

CPU6310には、更に、入力インタフェース6361、出力インタフェース6370、6371がアドレスデコード回路6350を介してアドレスバスに接続されている。CPU6310は、これらのインタフェースを介して外部のデバイスと信号の送受信を行っている。入力インタフェース6361には、インデックスセンサ6325が接続されている。インデックスセンサ6325は、各リール6110乃至6112の取付台の所定位置に設置されており、リール6110乃至6112に設けた遮光片がこのインデックスセンサ6325を通過するたびにハイレベルになる。CPU6310は、この信号を検出すると、リールが1回転したものと判断し、リールの回転位置情報をゼロにリセットする。出力インタフェース6370には、リールを駆動させるためのモータを制御するリールモータ駆動部6330と、ホッパー(バケットにたまっているメダルをメダル払出口6155から払出すための装置。)のモータを駆動するためのホッパーモータ駆動部6331と、遊技ランプ6340(具体的には、入賞ライン表示ランプ6120、スタートランプ6121、再遊技ランプ6122、告知ランプ6123、メダル投入ランプ6124等)と、7セグメント(SEG)表示器6341(払出枚数表示器6125、遊技情報表示器6126、貯留枚数表示器6127等)が接続されている。   Further, an input interface 6361 and output interfaces 6370 and 6371 are connected to the CPU 6310 via the address decode circuit 6350 to the address bus. The CPU 6310 transmits and receives signals to and from external devices via these interfaces. An index sensor 6325 is connected to the input interface 6361. The index sensor 6325 is installed at a predetermined position on the mounting base of each of the reels 6110 to 6112, and becomes high level each time the light shielding piece provided on the reels 6110 to 6112 passes through the index sensor 6325. When detecting this signal, the CPU 6310 determines that the reel has rotated once, and resets the rotational position information of the reel to zero. The output interface 6370 has a reel motor driving unit 6330 that controls a motor for driving the reel and a motor for a hopper (a device for paying out medals accumulated in the bucket from the medal payout opening 6155). Hopper motor drive unit 6331, a game lamp 6340 (specifically, a winning line display lamp 6120, a start lamp 6121, a re-game lamp 6122, a notification lamp 6123, a medal insertion lamp 6124, etc.), and a 7 segment (SEG) display A device 6341 (a payout number display 6125, a game information display 6126, a stored number display 6127, etc.) is connected.

また、CPU6310には、乱数発生回路6317がデータバスを介して接続されている。乱数発生回路6317は、水晶発振器6311及び水晶発振器6316から発振されるクロックに基づいて、一定の範囲内で値をインクリメントし、そのカウント値をCPU6310に出力することのできるインクリメントカウンタであり、後述する入賞役の内部抽選をはじめ各種抽選処理に使用される。   In addition, a random number generation circuit 6317 is connected to the CPU 6310 via a data bus. The random number generation circuit 6317 is an increment counter capable of incrementing a value within a certain range based on the clocks oscillated from the crystal oscillator 6311 and the crystal oscillator 6316 and outputting the count value to the CPU 6310, which will be described later. Used for various lottery processes, including internal lottery for winning positions.

また、図示はしないが、主制御部6300は、クロック補正回路6314から入力するシステムクロックの周波数と乱数発生回路6317に入力する乱数用クロックの周波数を比較し、乱数用クロックの周波数がシステムクロック以下の周波数である場合に、内部情報レジスタのクロック信号状態ビットを1にセットする周波数発生回路を備えている。主制御部6300のCPU6310は、内部情報レジスタのクロック信号状態ビットが1にセットされている場合(乱数用クロックの周波数がシステムクロックの周波数以下である場合)には、乱数用クロックに何らかの異常(例えば、乱数発生回路6317と水晶発振器6316とを結ぶ配線パターンの断線)が発生したと判定し、内部情報レジスタのクロック信号状態ビットが0にセットされている場合(乱数用クロックの周波数がシステムクロックの周波数未満である場合)には、乱数用クロックが正常であると判定する。また、図示はしないが、主制御部6300は、外部の照合機と接続し、チップの照合(チップの真贋についてのチェック)を行う照合用ブロックブロックを備える。また、乱数発生回路6317から水晶発振器6316までの第1信号線が、クロック補正回路6314から水晶発振器6311までの第2信号線よりも長くなるように配線している。   Although not shown, the main control unit 6300 compares the frequency of the system clock input from the clock correction circuit 6314 with the frequency of the random number clock input to the random number generation circuit 6317, and the frequency of the random number clock is equal to or lower than the system clock. A frequency generation circuit for setting the clock signal status bit of the internal information register to 1 at the same frequency. When the clock signal status bit of the internal information register is set to 1 (when the frequency of the random number clock is equal to or lower than the frequency of the system clock), the CPU 6310 of the main control unit 6300 has some abnormality in the random number clock ( For example, when it is determined that the wiring pattern connecting the random number generation circuit 6317 and the crystal oscillator 6316 is broken, and the clock signal status bit of the internal information register is set to 0 (the frequency of the random number clock is the system clock) If the frequency is less than the frequency of the random number), it is determined that the random number clock is normal. Although not shown, the main control unit 6300 includes a collation block block that is connected to an external collator and performs chip collation (check for chip authenticity). Further, the first signal line from the random number generation circuit 6317 to the crystal oscillator 6316 is wired to be longer than the second signal line from the clock correction circuit 6314 to the crystal oscillator 6311.

CPU6310のデータバスには、副制御部6400にコマンドを送信するための出力インタフェース6371が接続されている。主制御部6300と副制御部6400との情報通信は一方向の通信であり、主制御部6300は副制御部6400へコマンドを送信するが、副制御部6400から主制御部6300へ何らかのコマンド等を送信することはできない。
<副制御部400>
An output interface 6371 for transmitting a command to the sub control unit 6400 is connected to the data bus of the CPU 6310. The information communication between the main control unit 6300 and the sub control unit 6400 is one-way communication, and the main control unit 6300 transmits a command to the sub control unit 6400, but any command or the like from the sub control unit 6400 to the main control unit 6300 Cannot be sent.
<Sub-control unit 400>

次に、図295を用いて、スロットマシン6100の副制御部6400について説明する。なお、同図は副制御部6400の回路ブロック図を示したものである。   Next, the sub control unit 6400 of the slot machine 6100 will be described with reference to FIG. This figure shows a circuit block diagram of the sub-control unit 6400.

副制御部6400は、主制御部6300より送信された主制御コマンド等に基づいて副制御部6400の全体を制御する演算処理装置であるCPU6410や、CPU6410が各IC、各回路と信号の送受信を行うためのデータバス及びアドレスバスを備え、以下に述べる構成を有する。クロック補正回路6414は、水晶発振器6411から発振されたクロックを補正し、補正後のクロックをシステムクロックとしてCPU6410に供給する回路である。   The sub-control unit 6400 is a CPU 6410 that is an arithmetic processing unit that controls the entire sub-control unit 6400 based on a main control command or the like transmitted from the main control unit 6300, and the CPU 6410 transmits and receives signals to and from each IC and each circuit. It has a data bus and an address bus for performing, and has a configuration described below. The clock correction circuit 6414 is a circuit that corrects the clock oscillated from the crystal oscillator 6411 and supplies the corrected clock to the CPU 6410 as a system clock.

また、CPU6410にはタイマ回路6415がバスを介して接続されている。CPU6410は、所定のタイミングでデータバスを介してROM6412の所定エリアに格納された分周用のデータをタイマ回路6415に送信する。タイマ回路6415は、受信した分周用のデータを基に割り込み時間を決定し、この割り込み時間ごとに、割り込み要求をCPU6410に送信する。CPU6410は、この割込み要求のタイミングをもとに、各ICや各回路を制御する。   In addition, a timer circuit 6415 is connected to the CPU 6410 via a bus. The CPU 6410 transmits the frequency dividing data stored in the predetermined area of the ROM 6412 to the timer circuit 6415 via the data bus at a predetermined timing. The timer circuit 6415 determines an interrupt time based on the received frequency division data, and transmits an interrupt request to the CPU 6410 for each interrupt time. The CPU 6410 controls each IC and each circuit based on the interrupt request timing.

また、CPU6410には、副制御部6400の全体を制御するための命令及びデータ、ライン表示LEDの点灯パターンや各種表示器を制御するためのデータが記憶されたROM6412や、データ等を一時的に保存するためのRAM6413が各バスを介して接続されている。   Further, the CPU 6410 temporarily stores a ROM 6412 in which commands and data for controlling the entire sub-control unit 6400, lighting patterns of line display LEDs, data for controlling various indicators, and data are stored. A RAM 6413 for saving is connected via each bus.

さらに、CPU6410には、外部の信号を送受信するための入出力インタフェース6460が接続されており、入出力インタフェース6460には、図柄表示窓6113の外枠に配設され、点滅や点灯などの点灯制御によって有効ラインや入賞ラインを報知するためのライン表示LED6420、前面扉6102の開閉を検出するための扉センサ6421、RAM6413のデータをクリアにするためのリセットスイッチ6422が接続されている。   Further, an input / output interface 6460 for transmitting and receiving external signals is connected to the CPU 6410. The input / output interface 6460 is disposed on the outer frame of the symbol display window 6113 and controls lighting such as blinking and lighting. Are connected to a line display LED 6420 for informing an active line or a winning line, a door sensor 6421 for detecting opening / closing of the front door 6102, and a reset switch 6422 for clearing data in the RAM 6413.

CPU6410には、データバスを介して主制御部6300から主制御コマンドを受信するための入力インタフェース6461が接続されており、入力インタフェース6461を介して受信したコマンドに基づいて、遊技全体を盛り上げる演出処理等が実行される。また、CPU6410のデータバスとアドレスバスには、音源IC6480が接続されている。音源IC6480は、CPU6410からの命令に応じて音声の制御を行う。また、音源IC6480には、音声データが記憶されたROM6481が接続されており、音源IC6480は、ROM6481から取得した音声データをアンプ6482で増幅させてスピーカ6483から出力する。CPU6410には、主制御部6300と同様に、外部ICを選択するためのアドレスデコード回路6450が接続されており、アドレスデコード回路6450には、主制御部6300からのコマンドを受信するための入力インタフェース6461、時計IC6423、7セグメント表示器6440への信号を出力するための出力インタフェース6472等が接続されている。   An input interface 6461 for receiving a main control command from the main control unit 6300 is connected to the CPU 6410 via a data bus, and an effect process for exciting the whole game based on the command received via the input interface 6461 Etc. are executed. A sound source IC 6480 is connected to the data bus and address bus of the CPU 6410. The sound source IC 6480 controls sound in accordance with a command from the CPU 6410. The sound source IC 6480 is connected to a ROM 6481 in which sound data is stored. The sound source IC 6480 amplifies the sound data acquired from the ROM 6481 by the amplifier 6482 and outputs the sound data from the speaker 6483. Similarly to the main control unit 6300, the CPU 6410 is connected to an address decode circuit 6450 for selecting an external IC. The address decode circuit 6450 has an input interface for receiving a command from the main control unit 6300. 6461, a clock IC 6423, an output interface 6472 for outputting a signal to the 7-segment display 6440, and the like are connected.

時計IC6423が接続されていることで、CPU6410は、現在時刻を取得することが可能である。7セグメント表示器6440は、スロットマシン6100の内部に設けられており、たとえば副制御部6400に設定された所定の情報を遊技店の係員等が確認できるようになっている。更に、出力インタフェース6470には、デマルチプレクサ6419が接続されている。デマルチプレクサ6419は、出力インタフェース6470から送信された信号を各表示部等に分配する。即ち、デマルチプレクサ6419は、CPU6410から受信されたデータに応じて上部ランプ6150、サイドランプ6151、中央ランプ6152、腰部ランプ6153、下部ランプ6154、リールパネルランプ6128、タイトルパネルランプ6170、払出口ストロボ6171を制御する。タイトルパネルランプ6170は、タイトルパネル6162を照明するランプであり、払出口ストロボ6171は、メダル払い出し口6155の内側に設置されたストロボタイプのランプである。なお、CPU4610は、扉・液晶画面制御部6490への信号送信は、デマルチプレクサ6419を介して実施する。扉・液晶画面制御部6490は、液晶表示装置6157及び扉装置6163を制御する制御部である。
<メイン処理>
By connecting the clock IC 6423, the CPU 6410 can acquire the current time. The 7-segment display 6440 is provided inside the slot machine 6100 so that, for example, predetermined information set in the sub-control unit 6400 can be confirmed by an attendant of a game store. Further, a demultiplexer 6419 is connected to the output interface 6470. The demultiplexer 6419 distributes the signal transmitted from the output interface 6470 to each display unit and the like. That is, the demultiplexer 6419 receives the upper lamp 6150, the side lamp 6151, the center lamp 6152, the waist lamp 6153, the lower lamp 6154, the reel panel lamp 6128, the title panel lamp 6170, the payout exit strobe 6171 according to the data received from the CPU 6410. To control. The title panel lamp 6170 is a lamp that illuminates the title panel 6162, and the payout exit strobe 6171 is a strobe type lamp installed inside the medal payout opening 6155. Note that the CPU 4610 performs signal transmission to the door / liquid crystal screen control unit 6490 via the demultiplexer 6419. The door / liquid crystal screen control unit 6490 is a control unit that controls the liquid crystal display device 6157 and the door device 6163.
<Main processing>

次に、図296を用いて、主制御部6300のメイン処理について説明する。なお、同図は、主制御部6300のメイン処理の流れを示すフローチャートである。   Next, the main process of the main control unit 6300 will be described with reference to FIG. This figure is a flowchart showing the flow of main processing of the main control unit 6300.

遊技の基本的制御は、主制御部6300のMainCPU6310が中心になって行い、電源断等を検知しないかぎり、MainCPU6310が同図のメイン処理を繰り返し実行する。   Basic control of the game is performed mainly by the Main CPU 6310 of the main control unit 6300, and the Main CPU 6310 repeatedly executes the main processing of FIG.

ステップS7101では、初期設定1を行う。この初期設定1では、CPU6310のスタックポインタ(SP)へのスタック初期値の設定、割り込みマスクの設定、RAM6313に記憶する各種変数の初期設定、ウォッチドックタイマ(WDT)への動作許可及び初期値の設定等を行う。ステップS7102では、WDTのカウンタの値をクリアし、WDTによる時間計測を再始動する。   In step S7101, initial setting 1 is performed. In the initial setting 1, the stack initial value is set in the stack pointer (SP) of the CPU 6310, the interrupt mask is set, the initial settings of various variables stored in the RAM 6313, the operation permission to the watchdog timer (WDT), and the initial value are set. Make settings. In step S7102, the value of the WDT counter is cleared, and the time measurement by WDT is restarted.

ステップS7103では、低電圧信号がオンであるか否か、すなわち、電圧判定回路6327が、主制御部6300に供給している電源の電圧値が所定の値(本実施例では9V)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(CPU6310が電源の遮断を検知した場合)にはステップS7102に戻り、低電圧信号がオフの場合(CPU6310が電源の遮断を検知していない場合)にはステップS7104に進む。   In step S7103, whether or not the low voltage signal is ON, that is, the voltage value of the power source supplied to the main control unit 6300 by the voltage determination circuit 6327 is less than a predetermined value (9 V in this embodiment). In this case, it is monitored whether or not a low voltage signal indicating that the voltage has dropped is output. If the low voltage signal is on (when the CPU 6310 detects that the power supply has been cut off), the process returns to step S7102, and if the low voltage signal is off (if the CPU 6310 has not detected that the power supply has been cut off), the step is performed. The process proceeds to S7104.

ステップS7104では、初期設定2を行う。この初期設定2では、後述するタイマ割り込み処理を定期毎に実行するための周期を決める数値をタイマ回路6315に設定する処理、RAM6313の書き込みを許可する設定等を行う。   In step S7104, initial setting 2 is performed. In the initial setting 2, processing for setting a numerical value for determining a cycle for executing timer interrupt processing to be described later at regular intervals in the timer circuit 6315, setting for permitting writing to the RAM 6313, and the like are performed.

ステップ1105では、設定キーセンサの状態に基づいて設定キーを受け付けているか否かを判断する。そして、設定キーを受け付けている場合にはステップS7106の設定変更処理に進み、設定キーを受け付けていない場合にはステップS7107に進む。   In step 1105, it is determined whether a setting key is accepted based on the state of the setting key sensor. If a setting key has been received, the process proceeds to a setting change process in step S7106. If a setting key has not been received, the process proceeds to step S7107.

ステップS7106では、設定変更処理を行う。この設定変更処理では、最初に、機能限定ウェイトの設定を解除すると共に、割込み許可の設定を行った後、設定値の変更を行う。   In step S7106, a setting change process is performed. In this setting change process, first, the setting of the function-restricted wait is canceled, the interrupt permission is set, and then the set value is changed.

ステップS7107では、電断前(電源の遮断前)の状態に復帰するか否かを判断する。そして、電断前の状態に復帰する場合にはステップS7108に進み、そうでない場合にはステップS7110に進む。   In step S7107, it is determined whether or not to return to the state before power interruption (before power supply interruption). And when returning to the state before power interruption, it progresses to step S7108, and when that is not right, it progresses to step S7110.

ステップS7108では、(後述する)タイマ割込み処理において割込み機能を所定時間ウェイトさせるべく、機能限定ウェイトの設定を行った後(RAM6313の所定記憶領域に機能限定中であることを示す情報を記憶した後)、ステップS7109では、スタックポインタに、電断時に記憶したスタックポインタを再設定するなど、復電時の処理を行って処理を終了する。   In step S7108, after setting a function-restricted wait to wait for an interrupt function for a predetermined time in a timer interrupt process (described later) (after storing information indicating that the function is limited in a predetermined storage area of the RAM 6313). In step S7109, processing at power recovery is performed, for example, the stack pointer stored at the time of power interruption is reset in the stack pointer, and the processing ends.

ステップS7110では、遊技メダル投入処理を行う。詳細は後述するが、この遊技メダル投入処理では、機能限定ウェイトの設定を解除すると共に、割込み許可の設定を行った後、メダル投入に関する処理を行う。   In step S7110, game medal insertion processing is performed. Although details will be described later, in this game medal insertion process, the setting of the function-limited weight is canceled and the interrupt permission is set, and then a process related to medal insertion is performed.

ステップS7111では、遊技のスタート操作に関する処理を行う。ここでは、スタートレバーセンサ6321の状態に基づいてスタートレバー6135が操作されたか否かのチェックを行い、スタート操作されたと判断した場合は、投入されたメダル枚数を確定する。ステップS7112では、乱数取得処理を行う(詳細は後述する)。ステップS7113では、ステップS7112で取得した乱数値と、ROM6312に格納した抽選データを用いて、入賞役の内部抽選を行う。   In step S7111, a process related to the game start operation is performed. Here, it is checked whether or not the start lever 6135 has been operated based on the state of the start lever sensor 6321. If it is determined that the start operation has been performed, the number of inserted medals is determined. In step S7112, a random number acquisition process is performed (details will be described later). In step S7113, an internal lottery of a winning combination is performed using the random number acquired in step S7112 and the lottery data stored in the ROM 6312.

ステップS7114では、リール回転開始処理により、全リール6110〜6112の回転を開始する。この際、ステップS7113の内部抽選の結果等に基づき、リール6110〜6112の停止位置を規定したリール停止制御テーブルを選択する。   In step S7114, all reels 6110-6112 are started to rotate by the reel rotation start process. At this time, a reel stop control table that defines the stop positions of the reels 6110 to 6112 is selected based on the result of the internal lottery in step S7113.

ステップS7115では、ストップボタンセンサ6322の状態に基づいてストップボタン6137〜6139が操作されたか否かのチェックを行い、ストップボタン6137〜6139が操作されたと判断した場合は、ステップS7114で選択したリール停止制御テーブルに基づいて、押されたストップボタン6137〜6139に対応するリール6110〜6112の回転を停止する。そして、インデックスセンサ6325の状態に基づいて全リール6110〜6112が停止したか否かを判定し、全リール6110〜6112が停止した場合にはステップS7116に進み、そうでない場合にはストップボタン6137〜6139が操作され全リール6110〜6112が停止するのを待つ。   In step S7115, it is checked whether or not the stop buttons 6137 to 6139 are operated based on the state of the stop button sensor 6322. If it is determined that the stop buttons 6137 to 6139 are operated, the reel stop selected in step S7114 is performed. Based on the control table, the reels 6110 to 6112 corresponding to the pressed stop buttons 6137 to 6139 stop rotating. Based on the state of the index sensor 6325, it is determined whether or not all the reels 6110 to 6112 are stopped. If all the reels 6110 to 6112 are stopped, the process proceeds to step S7116. It waits for 6139 to be operated to stop all reels 6110-6112.

ステップS7116では、ストップボタン6137〜6139が押されることによって停止した全リール6110〜6112の図柄の入賞判定を行う。ここでは、有効化された入賞ライン6114上に、内部当選した役またはフラグ持越し中の役に対応する図柄組合せが揃った(表示された)場合にその役に入賞したと判定する。ステップS7117では、メダル払出処理を行う。このメダル払出処理では、払い出しのある何らかの役に入賞していれば、その役に対応する枚数のメダルを払い出す。ステップS7118では、遊技を終了するための制御や、遊技状態を移行するための制御を行う。例えば、BB入賞やRB入賞の場合に次回からBB遊技またはRB遊技が開始できるように準備し、それらの最終遊技では、次回から通常遊技が開始できるように準備する。   In step S7116, the winning determination of the symbols of all reels 6110-6112 stopped by pressing the stop buttons 6137-6139 is performed. Here, it is determined that a winning combination has been won when the symbol combination corresponding to the winning combination or flag-carrying winning combination is aligned (displayed) on the activated winning line 6114. In step S7117, medal payout processing is performed. In this medal payout process, if a winning combination is awarded, the number of medals corresponding to the winning combination is paid out. In step S7118, control for ending the game and control for shifting the game state are performed. For example, in the case of BB winning or RB winning, preparation is made so that the BB game or RB game can be started from the next time, and in those final games, preparation is made so that the normal game can be started from the next time.

以上により1遊技が終了し、以降、このメイン処理を繰り返すことにより遊技が進行することになる。
<遊技メダル投入処理>
Thus, one game is completed, and thereafter, the game proceeds by repeating this main process.
<Game medal insertion process>

次に、図297を用いて、上記メイン処理における遊技メダル投入処理について説明する。なお、同図は遊技メダル投入処理の流れを示すフローチャートである。   Next, the game medal insertion process in the main process will be described with reference to FIG. This figure is a flowchart showing the flow of game medal insertion processing.

ステップS7301では、内部情報レジスタのクロック信号状態ビットを参照し、クロック信号状態ビットが1にセットされているか否かを判定する。そして、クロック信号状態ビットが1にセットされている場合(乱数用クロックRCKに異常がある場合)はステップS7302に進み、そうでない場合はステップS7303に進む。   In step S7301, the clock signal status bit in the internal information register is referenced to determine whether or not the clock signal status bit is set to 1. If the clock signal status bit is set to 1 (if there is an abnormality in the random number clock RCK), the process proceeds to step S7302, and if not, the process proceeds to step S7303.

ステップS7302では、乱数用クロックRCKに異常がある旨の情報を他の制御部(例えば、副制御部6400)に送信するために、乱数用クロックの異常による停止コマンドの出力設定をした後、処理を終了する。なお、この乱数用クロックの異常による停止コマンドを受信した副制御部6400は、乱数用クロックの異常を、液晶表示装置6157による表示、スピーカ6484による音声、扉装置(可動物)6163による動きなどによって報知する。   In step S7302, in order to send information indicating that there is an abnormality in the random number clock RCK to another control unit (for example, the sub control unit 6400), after setting the output of the stop command due to the abnormality in the random number clock, the processing Exit. The sub-control unit 6400 that has received the stop command due to the abnormality of the random number clock indicates the abnormality of the random number clock by displaying on the liquid crystal display device 6157, sound by the speaker 6484, movement by the door device (movable object) 6163, and the like. Inform.

ステップS7303では、遊技メダルの投入の有無を確認し、遊技メダルが投入された場合にはステップS7304に進んで賭け枚数増加処理を行い、遊技メダルが投入されていない場合にはステップS7305に進む。   In step S7303, it is confirmed whether or not a game medal has been inserted. If a game medal has been inserted, the process proceeds to step S7304 to perform a bet number increasing process, and if no game medal has been inserted, the process proceeds to step S7305.

ステップS7305では、精算ボタンの操作の有無を確認し、精算ボタンの操作があった場合にはステップS7306に進んで遊技媒体の精算処理を行い、精算ボタンの操作が無かった場合にはステップS7307に進む。   In step S7305, it is confirmed whether or not the settlement button has been operated. If the settlement button has been operated, the process proceeds to step S7306 to perform a game media settlement process, and if there is no settlement button operation, the process proceeds to step S7307. move on.

ステップS7307では、遊技メダルの賭け枚数が0より大きいか否かを判定し、該当する場合にはステップS7308に進み、該当しない場合にはステップS7301に戻る。   In step S7307, it is determined whether or not the number of game medals bet is greater than 0. If yes, the process proceeds to step S7308; otherwise, the process returns to step S7301.

ステップS7308では、スタート操作の有無を確認し、スタート操作があった場合には処理を終了し、スタート操作が無い場合にはステップS7301に戻る。
<乱数取得処理>
In step S7308, it is confirmed whether or not there is a start operation. If there is a start operation, the process ends. If there is no start operation, the process returns to step S7301.
<Random number acquisition processing>

次に、図298を用いて、上記メイン処理における乱数取得処理について説明する。なお、同図は乱数取得処理の流れを示すフローチャートである。   Next, the random number acquisition process in the main process will be described with reference to FIG. This figure is a flowchart showing the flow of random number acquisition processing.

ステップS7401では、内部情報レジスタのクロック信号状態ビットを参照し、クロック信号状態ビットが1にセットされているか否かを判定する。そして、クロック信号状態ビットが1にセットされている場合(乱数用クロックRCKに異常がある場合)はステップS7402に進み、そうでない場合はステップS7403に進む。   In step S7401, it is determined whether or not the clock signal status bit is set by referring to the clock signal status bit of the internal information register. If the clock signal status bit is set to 1 (when the random number clock RCK is abnormal), the process proceeds to step S7402; otherwise, the process proceeds to step S7403.

ステップS7402では、乱数用クロックRCKに異常がある旨の情報を他の制御部(例えば、副制御部6400)に送信するために、乱数用クロックの異常による停止コマンドの出力設定をした後、処理を終了する。なお、この乱数用クロックの異常による停止コマンドを受信した副制御部6400は、乱数用クロックの異常を、液晶表示装置6157による表示、スピーカ6484による音声、扉装置(可動物)6163による動きなどによって報知する。次のステップS7403では、乱数発生回路6317から乱数を取得した後に、処理を終了する。
<タイマ割込み処理>
In step S7402, in order to send information indicating that there is an abnormality in the random number clock RCK to another control unit (for example, the sub control unit 6400), after setting the output of the stop command due to the abnormality in the random number clock, the process Exit. The sub-control unit 6400 that has received the stop command due to the abnormality of the random number clock indicates the abnormality of the random number clock by displaying on the liquid crystal display device 6157, sound by the speaker 6484, movement by the door device (movable object) 6163, and the like. Inform. In the next step S7403, after the random number is acquired from the random number generation circuit 6317, the process is terminated.
<Timer interrupt processing>

次に、図299を用いて、主制御部6300のMainCPU6310が実行するタイマ割込み処理について説明する。なお、同図はタイマ割込み処理の流れを示すフローチャートである。   Next, a timer interrupt process executed by the Main CPU 6310 of the main control unit 6300 will be described with reference to FIG. This figure is a flowchart showing the flow of timer interrupt processing.

MainCPU6310は、所定の周期(本実施例では約1.504msに1回)でタイマ割込みを発生させるハードウェアタイマを備えており、タイマ割込み処理を、タイマ割込みを契機として所定の周期で実行する。   The Main CPU 6310 includes a hardware timer that generates a timer interrupt at a predetermined cycle (in this embodiment, approximately once every 1.504 ms), and executes timer interrupt processing at a predetermined cycle triggered by the timer interrupt.

ステップS7201では、MainCPU6310の各レジスタをスタックに退避する。ステップS7202では、入力ポートの値を取得して、各種センサ(メダル投入センサ6320、スタートレバーセンサ6321、ストップボタンセンサ6322、メダル払出センサ6326など)の状態を検出する。より具体的には、メダル投入センサ6320、スタートレバーセンサ6321、ストップボタンセンサ6322、メダル払出センサ6326などの複数のセンサが出力する信号を入力し、これら複数のセンサからの出力がそれぞれオンかオフかを判定する。   In step S7201, each register of the Main CPU 6310 is saved on the stack. In step S7202, the value of the input port is acquired and the states of various sensors (medal insertion sensor 6320, start lever sensor 6321, stop button sensor 6322, medal payout sensor 6326, etc.) are detected. More specifically, signals output from a plurality of sensors such as a medal insertion sensor 6320, a start lever sensor 6321, a stop button sensor 6322, and a medal payout sensor 6326 are input, and outputs from the plurality of sensors are turned on or off, respectively. Determine whether.

ステップS7203では、割込み機能が限定中であるか否か、すなわち、上記メイン処理において機能限定ウェイトを設定しているか否か(RAM6313の所定記憶領域に機能限定中であることを示す情報を記憶しているか否か)を判断する。そして、割込み機能が限定中である場合(機能限定ウェイトを設定している場合)にはステップS7204〜S7208の処理を行うことなくステップS7209に進み、割込み機能が限定中でない場合(機能限定ウェイトを設定していない場合)にはステップS7204に進む。   In step S7203, whether or not the interrupt function is limited, that is, whether or not a function limit weight is set in the main process (information indicating that the function is limited is stored in the predetermined storage area of the RAM 6313). Or not). If the interrupt function is limited (when a function-limited wait is set), the process proceeds to step S7209 without performing the processing of steps S7204 to S7208. If the interrupt function is not limited (a function-limited wait is set). If not set), the process advances to step S7204.

ステップS7204では、遊技メダル投入受付処理を行う。詳細は後述するが、この遊技メダル投入受付処理では、現在の遊技状態や、一遊技に必要な規定メダル数などに基づいて、遊技メダルの投入に関する処理を行う。   In step S7204, game medal insertion acceptance processing is performed. Although details will be described later, in this game medal insertion acceptance process, processing related to the insertion of game medals is performed based on the current gaming state, the prescribed number of medals required for one game, and the like.

ステップS7205では、リール6110〜6112の回転制御や停止制御などのリール制御処理を行い、ステップS7206では、その他の処理を行う。ステップS7207では、遊技ランプ6340(上部ランプ6150、サイドランプ6151、中央ランプ6152、腰部ランプ6153、下部ランプ6154、受皿ランプ6156など)に出力するデータの更新を行う。   In step S7205, reel control processing such as rotation control and stop control of the reels 6110-6112 is performed, and in step S7206, other processing is performed. In step S7207, data output to the game lamp 6340 (upper lamp 6150, side lamp 6151, center lamp 6152, waist lamp 6153, lower lamp 6154, saucer lamp 6156, etc.) is updated.

ステップS7208では、常時エラー監視処理を行う。この常時エラー監視処理では、上記ステップ1202で検出したメダル払出センサ6326などの状態に基づいて、ホッパーなどのエラーの監視と、エラーの検出情報の更新を行う。   In step S7208, an error monitoring process is always performed. In this constant error monitoring process, based on the state of the medal payout sensor 6326 detected in step 1202, errors such as a hopper are monitored and error detection information is updated.

ステップS7209では、集中端子板信号設定処理を行う。この集中端子板信号設定処理では、RAM6313に記憶したセキュリティ状態情報などに基づいて状態複合信号を生成し、シリアル出力する。また、RAM6313に記憶したメダル投入情報などに基づいてメダル投入信号、メダル払出信号、外部信号1〜4を生成し、パラレル出力する。   In step S7209, a concentrated terminal board signal setting process is performed. In this concentrated terminal board signal setting process, a state composite signal is generated based on the security state information stored in the RAM 6313 and serially output. Further, a medal insertion signal, a medal payout signal, and external signals 1 to 4 are generated based on medal insertion information stored in the RAM 6313 and are output in parallel.

ステップS7210では、7SEG表示器6341に出力するデータの設定を行い、ステップS7211では、リールモータ制御部6330やホッパーモータ制御部6331などに出力するデータの設定を行う。また、内部情報レジスタのクロック信号状態ビットを参照し、内部情報レジスタのクロック信号状態ビットが1にセットされている場合(乱数用クロックの周波数がシステムクロックの周波数以下である場合)には、乱数用クロックに何らかの異常(例えば、乱数発生回路6317と水晶発振器6316とを結ぶ配線パターンの断線)が発生したと判定し、7SEG表示器6341を用いてエラーを示す情報を表示する。一方、内部情報レジスタのクロック信号状態ビットが0にセットされている場合(乱数用クロックの周波数がシステムクロックの周波数未満である場合)には、乱数用クロックが正常であると判定し、次のステップS7212に進む。   In step S7210, data to be output to the 7SEG display 6341 is set. In step S7211, data to be output to the reel motor control unit 6330 and the hopper motor control unit 6331 is set. In addition, referring to the clock signal status bit of the internal information register and when the clock signal status bit of the internal information register is set to 1 (when the frequency of the random number clock is equal to or lower than the frequency of the system clock), the random number It is determined that some abnormality (for example, disconnection of the wiring pattern connecting the random number generation circuit 6317 and the crystal oscillator 6316) has occurred in the clock for use, and information indicating the error is displayed using the 7SEG display 6341. On the other hand, when the clock signal status bit of the internal information register is set to 0 (when the frequency of the random number clock is less than the frequency of the system clock), it is determined that the random number clock is normal, and the next The process proceeds to step S7212.

ステップS7212では、副制御部6400に制御コマンドを出力し、ステップS7213では、RAM6313に記憶している各種のカウンタタイマ(例えば、上述のセキュリティ信号出力待機タイマなど)を更新する。   In step S7212, a control command is output to the sub-control unit 6400, and in step S7213, various counter timers (for example, the above-described security signal output standby timer) stored in the RAM 6313 are updated.

ステップS7214では、上述の電圧低下信号がオンであるか否か、すなわち、スロットマシン6100に所定の電圧が供給されているか否かを判断する。そして、電圧低下信号がオンである場合(スロットマシン6100に所定の電圧が供給されていない場合)にはステップS7217に進み、電圧低下信号がオフである場合(スロットマシン6100に所定の電圧が供給されている場合)にはステップS7215に進む。   In step S7214, it is determined whether or not the voltage drop signal is on, that is, whether or not a predetermined voltage is supplied to the slot machine 6100. If the voltage drop signal is on (when a predetermined voltage is not supplied to the slot machine 6100), the process proceeds to step S7217. If the voltage drop signal is off (a predetermined voltage is supplied to the slot machine 6100). If yes, the process proceeds to step S7215.

ステップS7215では、ステップS7201で退避したレジスタを復帰し、ステップS7216では、割込みを許可する設定を行う。   In step S7215, the register saved in step S7201 is restored, and in step S7216, an interrupt is set to be permitted.

ステップS7217〜S7220では、電断処理を行う。より具体的には、ステップS7217では、現在のスタックポインタを保存し、ステップS7218では、電源ステータスを「電断」に更新する。また、ステップS7219では、RAM6313に記憶した値を用いてチェックサムを計算・設定し、ステップS7220では、RAM6313の書き込みを禁止に設定した後、無限ループとなる。   In steps S7217 to S7220, a power interruption process is performed. More specifically, in step S7217, the current stack pointer is saved, and in step S7218, the power status is updated to “power failure”. In step S7219, a checksum is calculated and set using the value stored in the RAM 6313. In step S7220, writing to the RAM 6313 is prohibited, and an infinite loop is entered.

このようなスロットマシン6100のCPU6310やCPU6410(のパッケージ)に上述の本発明を適用すれば、視認容易部を通して遊技制御用マイクロコンピュータの裏側を視認することができ、マイクロコンピュータの裏側などに不正部品を取り付けるような不正行為を未然に防止することができる場合がある。   If the above-described present invention is applied to the CPU 6310 and the CPU 6410 (package) of such a slot machine 6100, the back side of the game control microcomputer can be visually recognized through the easy-to-view part, and illegal parts are placed on the back side of the microcomputer. It may be possible to prevent fraudulent activities such as attaching

なお、本発明に係る遊技台は、上記実施形態に係るパチンコ機やスロットマシンに限定されず、例えば、封入式遊技機に適用することもできる。また、主制御部、第1副制御部、および第2副制御部をワンチップで構成してもよいし、主制御部と第1副制御部で双方向の通信が可能に構成してもよい。また、主制御部と第1副制御部で双方向の通信を可能とする一方で、第1副制御部から第2副制御部への通信は一方向の通信としてもよい。   Note that the gaming machine according to the present invention is not limited to the pachinko machine and the slot machine according to the above-described embodiment, and can be applied to, for example, an enclosed gaming machine. In addition, the main control unit, the first sub control unit, and the second sub control unit may be configured as a single chip, or the main control unit and the first sub control unit may be configured to allow bidirectional communication. Good. Moreover, while enabling bidirectional communication between the main control unit and the first sub control unit, communication from the first sub control unit to the second sub control unit may be one-way communication.

また、本発明の実施の形態に記載された作用および効果は、本発明から生じる最も好適な作用および効果を列挙したに過ぎず、本発明による作用および効果は、本発明の実施の形態に記載されたものに限定されるものではない。また、実施例に記載した複数の構成のうち、1つの構成に記載している内容を、他の構成に適用することでより遊技の幅を広げられる場合がある。
<実施形態6>
Further, the actions and effects described in the embodiments of the present invention only list the most preferable actions and effects resulting from the present invention, and the actions and effects according to the present invention are described in the embodiments of the present invention. It is not limited to what was done. In addition, in some cases, the content described in one configuration among a plurality of configurations described in the embodiments may be applied to other configurations to further widen the game.
<Embodiment 6>

以下、図面を用いて、本発明の実施形態6に係るパチンコ機(遊技台)について詳細に説明する。   Hereinafter, a pachinko machine (game table) according to Embodiment 6 of the present invention will be described in detail with reference to the drawings.

図300は、図2を用いて説明した電源基板182、払出基板170、および主基板156間の電源供給例を示している。図300(a)に示す例では、各種電気的遊技機器に電源を供給する電源制御部660を備える電源基板182から電源ラインpl01と電源ラインpl02とが引き出され、電源ラインpl01と電源ラインpl02が共に、遊技球の払出に関する制御処理を行う払出制御部600を備える払出基板(払出制御基板)170に接続されている。電源投入後に一定時間経過したら電源ラインpl01にはDC(直流)12Vの電圧が印加され、電源ラインpl02にはDC12Vと異なる直流電圧が印加される。払出基板170からは電源ラインpl03が引き出され、電源ラインpl03は、遊技全般の制御処理を行う主制御部300を構成する主基板(主制御基板)156に接続されている。電源ラインpl03は払出基板170内で電源ラインpl01に接続されている。従って、電源投入後に一定時間経過したら主基板156には払出基板170を介して電源基板182からDC12Vの電圧が供給される。なお、これらの電圧値は一例であって、駆動する回路によってこれらと異なる電圧値の電圧を印加するようにしてももちろんよい。   FIG. 300 shows an example of power supply among the power supply board 182, the payout board 170, and the main board 156 described with reference to FIG. In the example shown in FIG. 300 (a), the power supply line pl01 and the power supply line pl02 are drawn from the power supply board 182 including the power supply control unit 660 that supplies power to various electrical gaming machines, and the power supply line pl01 and the power supply line pl02 are extracted. Both are connected to a payout board (payout control board) 170 including a payout control unit 600 that performs control processing related to payout of game balls. When a certain time elapses after the power is turned on, a DC (direct current) voltage of 12V is applied to the power supply line pl01, and a direct current voltage different from DC12V is applied to the power supply line pl02. A power supply line pl03 is drawn from the payout board 170, and the power supply line pl03 is connected to a main board (main control board) 156 that constitutes the main control unit 300 that performs control processing of the entire game. The power supply line pl03 is connected to the power supply line pl01 in the payout board 170. Accordingly, when a predetermined time has elapsed after the power is turned on, a voltage of DC 12 V is supplied to the main board 156 from the power supply board 182 through the payout board 170. Note that these voltage values are merely examples, and it is of course possible to apply voltages having different voltage values depending on the circuit to be driven.

図300(b)に示す例では、電源基板182から電源ラインpl04と電源ラインpl05、および電源ラインpl06が引き出されている。電源ラインpl04は主基板156に接続されている。電源ラインpl05と電源ラインpl06は共に、払出基板170に接続されている。電源投入後に一定時間経過したら電源ラインpl04と電源ラインpl05にはDC12Vの電圧が印加され、電源ラインpl06にはDC12Vと異なる直流電圧が印加される。つまり、電源投入後に一定時間経過したら主基板156には払出基板170を介さずに、電源基板182から直接にDC12Vの電圧が供給される。   In the example shown in FIG. 300B, the power supply line pl04, the power supply line pl05, and the power supply line pl06 are drawn from the power supply board 182. The power supply line pl04 is connected to the main board 156. Both the power supply line pl05 and the power supply line pl06 are connected to the payout board 170. When a certain time elapses after the power is turned on, a DC12V voltage is applied to the power supply line pl04 and the power supply line pl05, and a DC voltage different from DC12V is applied to the power supply line pl06. That is, when a certain time has elapsed after the power is turned on, a voltage of DC 12 V is directly supplied from the power supply board 182 to the main board 156 without going through the payout board 170.

図300(c)に示す例では、電源基板182から電源ラインpl07、電源ラインpl08、電源ラインpl09、および電源ラインpl10が引き出されている。電源ラインpl07と電源ラインpl08は主基板156に接続されている。電源ラインpl09と電源ラインpl10は共に、払出基板170に接続されている。電源投入後に一定時間経過したら電源ラインpl07と電源ラインpl09にはDC12Vの電圧が印加され、電源ラインpl08にはDC5Vの電圧が印加され、電源ラインpl10にはDC5V/12Vとは異なる直流電圧が印加される。つまり、電源投入後に一定時間経過したら主基板156には払出基板170を介さずに、電源基板182から直接にDC5VとDC12Vの2種類の電圧が供給される。   In the example shown in FIG. 300C, the power supply line pl07, the power supply line pl08, the power supply line pl09, and the power supply line pl10 are drawn from the power supply board 182. The power supply line pl07 and the power supply line pl08 are connected to the main board 156. Both the power supply line pl09 and the power supply line pl10 are connected to the payout board 170. When a certain time has elapsed after power-on, a DC12V voltage is applied to the power supply line pl07 and the power supply line pl09, a DC5V voltage is applied to the power supply line pl08, and a DC voltage different from DC5V / 12V is applied to the power supply line pl10. Is done. That is, when a predetermined time has elapsed after the power is turned on, two types of voltages, DC5V and DC12V, are directly supplied to the main board 156 from the power supply board 182 without passing through the payout board 170.

図301は、主基板156内の電源供給例を示している。本例では図300(a)に示す構成を用いて説明する。払出基板170から引き出された電源ラインpl03は主基板156内に引き込まれて、DC−DCコンバータ7001の入力端子に接続されている。DC−DCコンバータ7001は電源ラインpl03に印加されたDC12Vの電圧をDC5Vに変換する機能を有している。DC−DCコンバータ7001で生成されたDC5Vの電圧は電源ラインpl11に印加される。   FIG. 301 shows an example of power supply in the main board 156. This example will be described using the configuration shown in FIG. The power supply line pl03 drawn from the payout board 170 is drawn into the main board 156 and connected to the input terminal of the DC-DC converter 7001. The DC-DC converter 7001 has a function of converting DC12V voltage applied to the power supply line pl03 into DC5V. The voltage of DC5V generated by the DC-DC converter 7001 is applied to the power supply line pl11.

電源ラインpl11には複数の分岐ラインが接続されており、所定の分岐ラインがリセットIC7003の電源端子Aに接続されている。電源投入後に一定時間経過したら電源端子AにDC5Vの電圧が駆動電圧として印加され、これによりリセットIC7003が駆動される。また、電源ラインpl11から分岐した別の分岐ラインがマイコン(CPU)304の電源端子Fに接続されている。電源投入後に一定時間経過したら電源端子FにDC5Vの電圧がマイコン304の駆動電圧として印加される。なお、リセットIC7003とマイコン304の駆動電圧は同じでなく異なっていてもよい。また、リセットIC7003やマイコン304の駆動電圧の電圧値自体と電源ラインpl11に印加される電圧の電圧値が同じでなく異なっているようにいてもよい。   A plurality of branch lines are connected to the power supply line pl11, and a predetermined branch line is connected to the power supply terminal A of the reset IC 7003. When a certain period of time has elapsed after the power is turned on, a voltage of DC 5 V is applied as a drive voltage to the power supply terminal A, thereby driving the reset IC 7003. Further, another branch line branched from the power supply line pl11 is connected to the power supply terminal F of the microcomputer (CPU) 304. When a certain time elapses after the power is turned on, a voltage of DC 5 V is applied to the power terminal F as a driving voltage for the microcomputer 304. Note that the drive voltages of the reset IC 7003 and the microcomputer 304 are not the same and may be different. Further, the voltage value itself of the drive voltage of the reset IC 7003 or the microcomputer 304 may be different from the voltage value of the voltage applied to the power supply line pl11.

リセットIC7003の信号入力端子Bは別の分岐ラインを介して電源ラインpl11に接続されている。リセットIC7003は、信号入力端子Bの端子電圧をモニタして、マイコン304の端子Fに印加されるマイコン304の駆動電圧の状態を把握するようになっている。一方、リセットIC7003の信号入力端子Cは所定の分岐ラインを介して電源ラインpl03に接続されている。リセットIC7003は、信号入力端子Cの端子電圧をモニタして、電源ラインpl03に印加されている電圧の状態を把握するようになっている。   The signal input terminal B of the reset IC 7003 is connected to the power supply line pl11 through another branch line. The reset IC 7003 monitors the terminal voltage of the signal input terminal B and grasps the state of the driving voltage of the microcomputer 304 applied to the terminal F of the microcomputer 304. On the other hand, the signal input terminal C of the reset IC 7003 is connected to the power supply line pl03 via a predetermined branch line. The reset IC 7003 monitors the terminal voltage of the signal input terminal C and grasps the state of the voltage applied to the power supply line pl03.

リセットIC7003には少なくとも2つの信号出力端子D、Eが設けられている。信号出力端子Dからはリセット信号(起動信号)が出力され、信号出力端子Eからは低電圧信号が出力される。リセットIC7003は、信号入力端子Bの端子電圧がマイコン304の動作保証電圧(例えば、4.5V)を超えていないと判断したら、信号出力端子Dに出力しているリセット信号をネゲート(無効)状態にする。一方、信号入力端子Bの端子電圧がマイコン304の動作保証電圧を超えたと判断したら、信号出力端子Dに出力しているリセット信号をアサート(有効)状態にする。つまり、信号入力端子Bの端子電圧がマイコン304の動作保証電圧(例えば、4.5V)を超えていない場合に、信号出力端子Dに出力されているリセット信号がネゲート状態になり、信号入力端子Bの端子電圧がマイコン304の動作保証電圧を超えた場合には、信号出力端子Dに出力されているリセット信号がアサート状態になる。なお、リセットIC7003の端子の数は任意であり図示のものは一例示であり、説明に必要な端子を図示しているだけであって、端子の数、配置位置は図示のものと同じでもよいし同じでなくてもよい。   The reset IC 7003 is provided with at least two signal output terminals D and E. A reset signal (start signal) is output from the signal output terminal D, and a low voltage signal is output from the signal output terminal E. If the reset IC 7003 determines that the terminal voltage of the signal input terminal B does not exceed the operation guarantee voltage (for example, 4.5V) of the microcomputer 304, the reset IC 7003 negates the reset signal output to the signal output terminal D. To. On the other hand, if it is determined that the terminal voltage of the signal input terminal B has exceeded the operation guarantee voltage of the microcomputer 304, the reset signal output to the signal output terminal D is asserted (valid). That is, when the terminal voltage of the signal input terminal B does not exceed the operation guarantee voltage (for example, 4.5 V) of the microcomputer 304, the reset signal output to the signal output terminal D becomes a negated state, and the signal input terminal When the terminal voltage of B exceeds the operation guarantee voltage of the microcomputer 304, the reset signal output to the signal output terminal D is asserted. Note that the number of terminals of the reset IC 7003 is arbitrary, and the illustrated one is only an example, and only the terminals necessary for the description are illustrated, and the number and arrangement positions of the terminals may be the same as those illustrated. And it doesn't have to be the same.

リセットIC7003の信号出力端子Dは、信号ラインpl12を介してマイコン304の信号入力端子Gに接続されている。信号入力端子Gはシステムリセット(XSRST)端子として用いられている。このため、信号ラインpl12に出力されているリセット信号がアサート状態になると、マイコン304はセキュリティモードに移行する。このように、リセットIC7003は、信号出力端子Dがリセット信号出力端子として機能して図75に示す起動信号出力回路340としての役割を果たしている。   The signal output terminal D of the reset IC 7003 is connected to the signal input terminal G of the microcomputer 304 via the signal line pl12. The signal input terminal G is used as a system reset (XSRST) terminal. For this reason, when the reset signal output to the signal line pl12 is asserted, the microcomputer 304 shifts to the security mode. Thus, the reset IC 7003 functions as the start signal output circuit 340 shown in FIG. 75 with the signal output terminal D functioning as a reset signal output terminal.

リセットIC7003は、信号入力端子Cの端子電圧が所定の電圧値(例えば、9V)を超えていないと判断したら、信号出力端子Eに出力している低電圧信号をアサート状態にする。一方、信号入力端子Cの端子電圧が所定の電圧値を超えたと判断したら、信号出力端子Eに出力している低電圧信号をネゲート状態にする。   When the reset IC 7003 determines that the terminal voltage of the signal input terminal C does not exceed a predetermined voltage value (for example, 9 V), the reset IC 7003 asserts the low voltage signal output to the signal output terminal E. On the other hand, when it is determined that the terminal voltage of the signal input terminal C exceeds a predetermined voltage value, the low voltage signal output to the signal output terminal E is negated.

リセットIC7003の信号出力端子Eは、信号ラインpl13を介してマイコン304の信号入力端子Hに接続されている。信号入力端子Hはデータ端子D0〜D7のいずれか1つのデータ端子として用いられている。例えば、マイコン304は、信号ラインpl13に出力されている低電圧信号がネゲート状態になるまで、例えば図81のステップS103とステップS105の処理を繰り返す。このように、リセットIC7003は、信号出力端子Eが定電圧信号出力端子として機能して図75に示す電圧監視回路338としての役割を果たしている。   The signal output terminal E of the reset IC 7003 is connected to the signal input terminal H of the microcomputer 304 via the signal line pl13. The signal input terminal H is used as one of the data terminals D0 to D7. For example, the microcomputer 304 repeats the processing of step S103 and step S105 of FIG. 81, for example, until the low voltage signal output to the signal line pl13 is negated. As described above, the reset IC 7003 functions as the voltage monitoring circuit 338 shown in FIG. 75, with the signal output terminal E functioning as a constant voltage signal output terminal.

この例では信号ラインpl13上の低電圧信号がアサート状態からネゲート状態(あるいはその逆)になるときの信号入力端子Cの所定の閾値電圧値を9Vとしているがこれに限られない。例えば図85に示す主制御部タイマ割込処理のステップS239およびステップS243における電断検出から電断処理に要する期間中にマイコン304が電断処理を継続できる電圧が電源端子Fに印加されていればよい。DC−DCコンバータ7001から電源ラインpl11に出力されるDC5V電圧は、DC−DCコンバータ7001に入力する電源ラインpl03のDC12V電圧が7V程度に低下する辺りから徐々に低下を始める。そこで、信号入力端子Cの端子電圧が所定の電圧値(例えば、9V)未満になると、信号出力端子Eに出力している低電圧信号をネゲート状態からアサート状態にするようにしている。所定の電圧値として例えば9Vを用いれば、電源ラインpl11の電圧が徐々に低下しても主制御部タイマ割込処理のステップS239およびステップS243における電断検出から電断処理に要する期間中にマイコン304が動作を継続できる。   In this example, the predetermined threshold voltage value of the signal input terminal C when the low voltage signal on the signal line pl13 changes from the asserted state to the negated state (or vice versa) is set to 9V, but is not limited thereto. For example, the voltage at which the microcomputer 304 can continue the power interruption process is applied to the power supply terminal F during the period required from the power interruption detection to the power interruption process in steps S239 and S243 of the main control unit timer interruption process shown in FIG. That's fine. The DC5V voltage output from the DC-DC converter 7001 to the power supply line pl11 starts to gradually decrease around the time when the DC12V voltage of the power supply line pl03 input to the DC-DC converter 7001 decreases to about 7V. Therefore, when the terminal voltage of the signal input terminal C becomes less than a predetermined voltage value (for example, 9 V), the low voltage signal output to the signal output terminal E is changed from the negated state to the asserted state. If, for example, 9V is used as the predetermined voltage value, even if the voltage of the power supply line pl11 gradually decreases, the microcomputer during the period required for the power interruption process from the power interruption detection in steps S239 and S243 of the main control unit timer interrupt process 304 can continue to operate.

図302は、電源基板182と主基板156内の電源供給例を示している。図301に示す電源供給構成と比較して説明すると、図301で主基板156内に配置されていたDC−DCコンバータ7001とリセットIC7003が、図302に示す構成では電源基板182上に配置されている。これにより、電源ラインpl11と信号ラインpl12およびpl13は電源基板182および主基板156の間を跨いで配線されている。このような構成によれば、DC5V、DC12V、およびその他の電圧値の電源を電源基板182で全て供給可能になるので、主基板156や払出基板170に電源供給用回路を設ける必要がなくなり、基板上の回路レイアウトに余裕を持たせることができる場合がある。   FIG. 302 shows an example of power supply in the power supply board 182 and the main board 156. When compared with the power supply configuration shown in FIG. 301, the DC-DC converter 7001 and the reset IC 7003 arranged in the main substrate 156 in FIG. 301 are arranged on the power supply substrate 182 in the configuration shown in FIG. Yes. Thereby, the power supply line pl11 and the signal lines pl12 and pl13 are wired across the power supply board 182 and the main board 156. According to such a configuration, it becomes possible to supply all the power of DC5V, DC12V, and other voltage values with the power supply board 182, and therefore it is not necessary to provide a power supply circuit on the main board 156 or the payout board 170. In some cases, there is a margin in the above circuit layout.

図303は、主基板156内の電源供給例を示している。図303(a)は、CPU304の外部マスカブル割込み端子XINTと外部ノンマスカブル割込み端子XNMIに電源ラインpl11の分岐ラインを接続して、両端子XINTおよびXNMIにDC5Vの電圧を常時印加している状態を示している。こうすることにより、両端子XINTおよびXNMIに入力する割込み信号は常にネゲート状態を維持するため、割込み端子による外部割込みを使用しない場合には、ノイズ等による誤動作を確実に防止することができる。図303(b)に示す構成は、図301に示す構成におけるCPU304の端子Hが外部ノンマスカブル割込み端子XNMIとして機能している場合を例示している。なお、割込み端子の符号のXは、ローアクティブを示しておりL信号が入力されてアサート状態となるが、ハイアクティブでアサート状態になる回路の場合はL信号(例えば、0V)を常に入力させるようにする。   FIG. 303 shows an example of power supply in the main board 156. FIG. 303A shows a state in which the branch line of the power supply line pl11 is connected to the external maskable interrupt terminal XINT and the external non-maskable interrupt terminal XNMI of the CPU 304, and a DC5V voltage is constantly applied to both terminals XINT and XNMI. ing. By doing so, the interrupt signals input to both terminals XINT and XNMI always maintain a negated state, so that malfunction due to noise or the like can be reliably prevented when an external interrupt by the interrupt terminal is not used. The configuration shown in FIG. 303B illustrates a case where the terminal H of the CPU 304 in the configuration shown in FIG. 301 functions as an external non-maskable interrupt terminal XNMI. Note that the symbol X of the interrupt terminal indicates low active and the L signal is input to be in an asserted state, but in the case of a circuit that is in a high active and asserted state, the L signal (for example, 0 V) is always input. Like that.

図304は、パチンコ機100の電源投入後の起動処理のタイムチャートである。図中左から右に向かって時間の経過を表している。図下段から中段に示す動作モード、XRSTO端子、およびXSRST端子は図80に示すものと同一である。図中段から上段に向かっては低電圧信号、マイコン電圧、および監視電圧を示している。低電圧信号は、例えば図301に示すリセットIC7003の端子Eから信号ラインpl13を介してCPU304の端子H(所定のD端子)に出力される信号である。マイコン電圧は、例えば図301に示すCPU304の電源端子Fに印加される電源ラインpl11上の電圧レベルを示している。監視電圧は、リセットIC7003の信号入力端子Cに入力する電源ラインpl03に印加された電圧である。   FIG. 304 is a time chart of the startup process after the pachinko machine 100 is turned on. It shows the passage of time from left to right in the figure. The operation mode, the XRSTO terminal, and the XSRST terminal shown from the lower stage to the middle stage in the figure are the same as those shown in FIG. A low voltage signal, a microcomputer voltage, and a monitoring voltage are shown from the middle to the top. The low voltage signal is, for example, a signal output from the terminal E of the reset IC 7003 shown in FIG. 301 to the terminal H (predetermined D terminal) of the CPU 304 via the signal line pl13. The microcomputer voltage indicates a voltage level on the power supply line pl11 applied to the power supply terminal F of the CPU 304 shown in FIG. 301, for example. The monitoring voltage is a voltage applied to the power supply line pl03 input to the signal input terminal C of the reset IC 7003.

図304に示すように、電源投入後、システムリセット信号がアサート状態になりXSRST端子の信号レベルがHになった時刻T−XSRSTで、監視電圧は例えば約7V、マイコン電圧は例えば約4.5Vになっている。システムリセット信号がアサート状態になるとセキュリティモードに移行し、セキュリティチェック処理に続きランダム延長処理が実行される。本例ではセキュリティチェックが終了した後でランダム延長処理が開始する前にXRSTO端子のリセット信号がアサート状態になる。ランダム延長処理の終了後にユーザモードに移行し、遊技制御用プログラムが実行されて主制御部メイン処理が開始される。   As shown in FIG. 304, after the power is turned on, at time T-XSRST when the system reset signal is asserted and the signal level of the XSRST terminal becomes H, the monitoring voltage is about 7 V, for example, and the microcomputer voltage is about 4.5 V, for example. It has become. When the system reset signal is asserted, the mode shifts to the security mode, and the random extension process is executed following the security check process. In this example, after the security check is completed and before the random extension process starts, the reset signal at the XRSTO terminal is asserted. After the random extension process is completed, the process shifts to the user mode, the game control program is executed, and the main control part main process is started.

電源投入後に監視電圧は所定の電圧値まで徐々に上昇する。それに伴いマイコン電圧も上昇し、システムリセット信号出力直後にほぼ5Vの電源電圧が得られる。監視電圧はその後も上昇し破線で示す閾値電圧レベル(下限電圧であり、例えば9V)Sを超えた時刻T−低電圧で低電圧信号がアサート状態からネゲート状態となる。さらに所定時間経過すると監視電圧は所定の電圧値(CPU304の動作電圧値以上、電源ラインの上限電圧未満の所定の電圧)としてほぼ12Vとなる。本例ではWDT314を自動起動させておりユーザモード開始直後からWDT314が自動起動される。その後、主制御部メイン処理のステップS103でWDT314のクリア&リスタート処理が繰り返し実行される。図304ではWDT314の起動直後の最初のWDTクリア&リスタートを例示している。   The monitor voltage gradually rises to a predetermined voltage value after the power is turned on. Along with this, the microcomputer voltage also rises, and a power supply voltage of approximately 5 V can be obtained immediately after the system reset signal is output. The monitoring voltage continues to rise, and the low voltage signal changes from the asserted state to the negated state at time T-low voltage when the threshold voltage level (lower limit voltage, for example, 9 V) S indicated by the broken line is exceeded. Further, when a predetermined time elapses, the monitoring voltage becomes approximately 12 V as a predetermined voltage value (a predetermined voltage that is equal to or higher than the operating voltage value of the CPU 304 and lower than the upper limit voltage of the power supply line). In this example, the WDT 314 is automatically activated, and the WDT 314 is automatically activated immediately after the start of the user mode. Thereafter, the clear & restart process of the WDT 314 is repeatedly executed in step S103 of the main control part main process. In FIG. 304, the first WDT clear & restart immediately after the start of the WDT 314 is illustrated.

図305は、図304の破線の楕円Oで囲んだ範囲を拡大した監視電圧(電源ラインpl03に印加されている電圧)を示している。図305(a)、(b)は図中左から右に向かって時間の経過を表している。縦方向は監視電圧の電圧値が7V〜12Vまでを1V刻みで示している。図305(a)は監視電圧の理想的な上昇を示している。図305(b)はWDT314のクリア&リスタートにより生じる問題を説明する図である。図305(a)に示すように理想的には時刻T1で監視電圧が閾値電圧(9V)を超え、その後監視電圧がさらに上昇する途中で主制御部300の最初のタイマ割込処理が開始される。監視電圧は時刻Tですでに閾値電圧を超えているためリセットICの端子Eから出力される低電圧信号は最初のタイマ割込処理が開始時点ですでにネゲート状態になっている。このため最初の主制御部タイマ割込処理での電断検出の判断処理(ステップS239)では電断状態は検出されない。   FIG. 305 shows the monitoring voltage (voltage applied to the power supply line pl03) in which the range surrounded by the broken line ellipse O in FIG. 304 is enlarged. 305 (a) and 305 (b) show the passage of time from the left to the right in the figure. In the vertical direction, the voltage value of the monitoring voltage is shown in 1V increments from 7V to 12V. FIG. 305 (a) shows an ideal rise in the monitoring voltage. FIG. 305 (b) is a diagram for explaining a problem caused by clearing and restarting the WDT 314. As shown in FIG. 305 (a), ideally, at the time T1, the monitoring voltage exceeds the threshold voltage (9V), and then the first timer interrupt process of the main control unit 300 is started while the monitoring voltage further increases. The Since the monitoring voltage has already exceeded the threshold voltage at time T, the low voltage signal output from the terminal E of the reset IC is already negated when the first timer interrupt process starts. For this reason, the power interruption state is not detected in the power interruption detection determination process (step S239) in the first main control unit timer interruption process.

一方、図305(b)はWDT314が自動起動した後に、主制御部メイン処理のステップS103で実行されるWDT314のクリア&リスタートが繰り返し実行されている状態を示している。図305(b)に示すようにWDT314のクリア&リスタート処理が発生する度に電源ラインpl03に印加された電圧に電圧降下(ノイズ)現象が生じている。このWDT314のクリア&リスタートの繰り返し処理が電源ラインpl03に印加される電圧が上昇を始める初期の段階から行われると、電圧降下の積み重ねが多くなるため、監視電圧が最初に閾値電圧を超える時刻T2が図305(a)に示す時刻T1より遅くなってしまう。このように、WDT314のクリア&リスタートの繰り返しが電源ラインpl03の印加電圧を所定電圧にまで上昇させるのを遅らせてしまい、主制御部メイン処理の処理時間が無用に長くなってしまうという問題を有している。   On the other hand, FIG. 305 (b) shows a state in which the clear & restart of WDT 314 executed in step S103 of the main control unit main process is repeatedly executed after the WDT 314 is automatically activated. As shown in FIG. 305 (b), a voltage drop (noise) phenomenon occurs in the voltage applied to the power supply line pl03 every time the clear & restart process of the WDT 314 occurs. If this repeated process of clearing and restarting WDT 314 is performed from the initial stage when the voltage applied to the power supply line pl03 starts to rise, the accumulation of voltage drops increases, so the time when the monitored voltage first exceeds the threshold voltage T2 is later than time T1 shown in FIG. In this way, repeated clearing and restarting of the WDT 314 delays raising the applied voltage of the power supply line pl03 to a predetermined voltage, and the processing time of the main control unit main processing becomes unnecessarily long. Have.

さらに、時刻T2で監視電圧が閾値を超えてリセットIC7003の信号出力端子Eの低電圧信号はアサート状態からネゲート状態になっても、初回の主制御部タイマ割込処理におけるWDTクリア&リスタートにより監視電圧に電圧降下が生じると、主制御部タイマ割込み処理の電断検出の判断処理(ステップS239)の時点で、再び監視電圧が閾値レベル未満に低下してリセットIC7003の信号出力端子Eの低電圧信号がネゲート状態からアサート状態に戻ってしまう。こうなると、最初の主制御部タイマ割込処理の電断検出の判断処理(ステップS239)で電断状態と判断されてしまうため、電断処理(ステップS243)が実行されてしまう場合が生じ得る。   Further, even if the monitoring voltage exceeds the threshold at time T2 and the low voltage signal at the signal output terminal E of the reset IC 7003 changes from the asserted state to the negated state, the first main control unit timer interrupt processing causes the WDT clear & restart. When a voltage drop occurs in the monitoring voltage, at the time of the power interruption detection determination process (step S239) of the main control unit timer interruption process, the monitoring voltage again falls below the threshold level and the signal output terminal E of the reset IC 7003 is low. The voltage signal returns from the negated state to the asserted state. In this case, since the power interruption detection determination process (step S239) of the first main control unit timer interruption process is determined as a power interruption state, the power interruption process (step S243) may be executed. .

上記問題点を解決するには、少なくとも、WDT314の最初のクリア&リスタート処理が、監視電圧が閾値電圧レベルSを超えて低電圧信号がアサート状態からネゲート状態に変化した時刻T−低電圧より後に実行されるようにすればよい。WDT314の最初のクリア&リスタート処理が時刻T−低電圧より確実に後になるようにするには、WDT314の起動(手動起動または自動起動)を時刻T−低電圧より後に開始すればよい。WDT314の起動は最先でユーザモードの開始時点になるので、ユーザモード開始時点より以前に時刻T−低電圧が到来すればよい。   In order to solve the above problem, at least the first clear & restart process of WDT 314 is based on the time T-low voltage when the monitoring voltage exceeds the threshold voltage level S and the low voltage signal changes from the asserted state to the negated state. It may be executed later. In order to ensure that the first clearing and restarting process of WDT 314 is later than time T-low voltage, WDT 314 activation (manual activation or automatic activation) may be started after time T-low voltage. Since the WDT 314 is activated at the earliest time when the user mode starts, the time T-low voltage may arrive before the user mode starts.

図306は、ユーザモード開始時点より以前に時刻T−低電圧を到来させて、WDT314の最初のクリア&リスタート処理が時刻T−低電圧より後に実行されるようにしたWDTの駆動方法(その1)を示している。図306は図304と同様のパチンコ機100の電源投入後の起動処理のタイムチャートである。図中左から右に向かって時間の経過を表している。図306の構成は図304と同一であるので同一構成についての説明は省略する。   FIG. 306 shows a WDT driving method in which the time T-low voltage arrives before the start of the user mode and the first clear & restart process of the WDT 314 is executed after the time T-low voltage. 1). FIG. 306 is a time chart of the startup process after power-on of the pachinko machine 100 similar to FIG. It shows the passage of time from left to right in the figure. Since the configuration in FIG. 306 is the same as that in FIG. 304, description of the same configuration is omitted.

ユーザモード開始時点より以前に時刻T−低電圧を到来させるにはセキュリティモード期間中に時刻T−低電圧を到来させるようにする。セキュリティモード期間中に時刻T−低電圧を到来させるには、予めセキュリティモード期間に要する時間を把握しておく。また、実験やシミュレーションにより得た監視電圧の電圧上昇プロファイルに基づき電源投入から時刻T−低電圧までに要する時間を把握しておく。これに基づき、電源投入から時刻T−XSRSTまでの時間とセキュリティモード期間の時間の合計が、電源投入から時刻T−低電圧までの時間より長くなるように時刻T−XSRSTを決める。なお本例では、セキュリティモード期間内にランダム延長処理が含まれている。従って、セキュリティモード期間中に確実に時刻T−低電圧を到来させるには、電源投入から時刻T−XSRSTまでの時間とセキュリティチェック処理に要する時間の合計が、電源投入から時刻T−低電圧までの時間より長くなるように時刻T−XSRSTを決める。   In order to make the time T-low voltage arrive before the user mode start time, the time T-low voltage is made to arrive during the security mode. In order to arrive at the time T-low voltage during the security mode period, the time required for the security mode period is grasped in advance. In addition, the time required from turning on the power to time T-low voltage is grasped based on the voltage rise profile of the monitoring voltage obtained by experiments and simulations. Based on this, the time T-XSRST is determined so that the sum of the time from power-on to time T-XSRST and the time in the security mode period is longer than the time from power-on to time T-low voltage. In this example, random extension processing is included in the security mode period. Therefore, in order to ensure that the time T-low voltage arrives during the security mode period, the sum of the time from power-on to time T-XSRST and the time required for the security check process is from power-on to time T-low voltage. The time T-XSRST is determined so as to be longer than the time.

また、マイコン電圧の上昇途中に時刻T−XSRSTを設定する場合には、リセットIC7003の信号入力端子Bの端子電圧のレベルを判断する閾値電圧をマイコン304の動作保証電圧(例えば、4.5V)より高い電圧(例えば4.8V)に設定する。また、図306に示すように、マイコン電圧がDC5Vで安定した状態で時刻T−XSRSTが到来するようにする場合には、リセットIC7003の信号入力端子Bの端子電圧のレベルを判断する閾値電圧を例えば4.8〜5.0Vのいずれかに設定すると共に、閾値電圧に到達してから時刻T−XSRSTになるまでの期間だけシステムリセット信号をアサート状態にする時期を遅延させる遅延処理を施すようにする。   Further, when the time T-XSRST is set during the rise of the microcomputer voltage, the threshold voltage for determining the level of the terminal voltage of the signal input terminal B of the reset IC 7003 is set as the operation guarantee voltage (for example, 4.5 V) of the microcomputer 304. Set to a higher voltage (eg, 4.8V). As shown in FIG. 306, when the time T-XSRST arrives while the microcomputer voltage is stable at DC 5 V, the threshold voltage for determining the level of the terminal voltage at the signal input terminal B of the reset IC 7003 is set. For example, the delay time is set to any value between 4.8 and 5.0 V, and a delay process is performed to delay the time when the system reset signal is asserted only during the period from the time when the threshold voltage is reached until the time T-XSRST. To.

なお、電源ラインpl11からの分岐ラインの途中で分圧して目標値DC5Vよりかなり低い電圧をリセットIC7003の信号入力端子Bに印加するようにしてもよい。例えば、閾値電圧を約1.22Vに設定して、信号入力端子Bの端子電圧が約1.22Vになるとシステムリセット信号が出力されるように構成してもよい。つまり、マイコン304には動作保証電圧以上の電圧が印加されている場合には、信号入力端子Bに約1.22Vの電圧が印加される。   The voltage may be divided in the middle of the branch line from the power supply line pl11 and a voltage considerably lower than the target value DC5V may be applied to the signal input terminal B of the reset IC 7003. For example, the threshold voltage may be set to about 1.22V, and the system reset signal may be output when the terminal voltage of the signal input terminal B reaches about 1.22V. That is, when a voltage higher than the operation guarantee voltage is applied to the microcomputer 304, a voltage of about 1.22 V is applied to the signal input terminal B.

このように、リセットIC7003から出力されるリセット信号がアサート状態になる時期を従来に比して遅延させることにより、図305を用いて説明した問題を生じることなく安定してパチンコ機100の起動処理を行うことができる。   In this way, by delaying the timing at which the reset signal output from the reset IC 7003 is in an asserted state as compared with the conventional case, the startup process of the pachinko machine 100 can be stably performed without causing the problem described with reference to FIG. It can be performed.

図307は、ユーザモード開始時点より以前に時刻T−低電圧を到来させて、WDT314の最初のクリア&リスタート処理が時刻T−低電圧より後に実行されるようにしたWDTの駆動方法(その2)を示している。図307は図304と同様のパチンコ機100の電源投入後の起動処理のタイムチャートである。図中左から右に向かって時間の経過を表している。図307の構成は図304と同一であるので同一構成についての説明は省略する。   FIG. 307 shows a WDT driving method in which the time T-low voltage arrives before the user mode start time and the first clear & restart process of the WDT 314 is executed after the time T-low voltage. 2). FIG. 307 is a time chart of the start-up process after power-on of the pachinko machine 100 similar to FIG. It shows the passage of time from left to right in the figure. Since the configuration in FIG. 307 is the same as that in FIG. 304, description of the same configuration is omitted.

ユーザモード開始時点より以前に時刻T−低電圧を到来させるにはセキュリティモード期間中に時刻T−低電圧を到来させるために、予めセキュリティモード期間に要する時間を把握しておく。また、実験やシミュレーションにより得た監視電圧の電圧上昇プロファイルに基づき電源投入から時刻T−低電圧までに要する時間を把握しておく。これに基づき、電源投入から時刻T−XSRSTまでの時間とセキュリティモード期間の時間の合計が、電源投入から時刻T−低電圧までの時間より長くなるようにセキュリティモード期間の時間を決める。   In order to make the time T-low voltage arrive before the user mode start time, in order to make the time T-low voltage arrive during the security mode period, the time required for the security mode period is grasped in advance. In addition, the time required from turning on the power to time T-low voltage is grasped based on the voltage rise profile of the monitoring voltage obtained by experiments and simulations. Based on this, the time of the security mode period is determined so that the sum of the time from power-on to time T-XSRST and the time of the security mode period is longer than the time from power-on to time T-low voltage.

また、実験やシミュレーションによりマイコン電圧の電圧上昇プロファイルを把握しておき、マイコン電圧の上昇中に時刻T−XSRSTが到来するようにさせる場合には、リセットIC7003の信号入力端子Bの端子電圧のレベルを判断する閾値電圧をマイコン304の動作保証電圧(例えば、4.5V)より高い電圧(例えば4.8V)に設定する。また、図306に示すように、マイコン電圧がDC5Vで安定した状態で時刻T−XSRSTが到来するようにする場合には、リセットIC7003の信号入力端子Bの端子電圧のレベルを判断する閾値電圧を例えば4.8〜5.0Vのいずれかに設定すると共に、閾値電圧に到達してから時刻T−XSRSTになるまでの期間だけシステムリセット信号をアサート状態にする時期を遅延させる遅延処理を施すようにする。   Further, when the voltage rise profile of the microcomputer voltage is grasped by experiment or simulation so that the time T-XSRST arrives while the microcomputer voltage is rising, the level of the terminal voltage of the signal input terminal B of the reset IC 7003 Is set to a voltage (for example, 4.8V) higher than the operation guarantee voltage (for example, 4.5V) of the microcomputer 304. As shown in FIG. 306, when the time T-XSRST arrives while the microcomputer voltage is stable at DC 5 V, the threshold voltage for determining the level of the terminal voltage at the signal input terminal B of the reset IC 7003 is set. For example, the delay time is set to any value between 4.8 and 5.0 V, and a delay process is performed to delay the time when the system reset signal is asserted only during the period from the time when the threshold voltage is reached until the time T-XSRST. To.

このようにして決めた電源投入から時刻T−XSRSTまでの時間とセキュリティモードに要する時間の合計が、電源投入から時刻T−低電圧までの時間より長くなるようにセキュリティモード内での固定延長処理に要する時間を決める。固定延長処理に要する時間は対応する数値をプログラム管理エリアに予め設定しておく。なお本例では、セキュリティモード期間内にランダム延長処理が含まれている。従って、セキュリティモード期間中に確実に時刻T−低電圧を到来させるには、電源投入から時刻T−XSRSTまでの時間とセキュリティチェック処理に要する時間と、固定延長処理の時間との合計が、電源投入から時刻T−低電圧までの時間より長くなるように、例えば図185(a)に示すテーブルに基づいて固定延長処理の時間を決める。   Fixed extension processing in the security mode so that the total time required from the power-on to time T-XSRST and the time required for the security mode is longer than the time from power-on to time T-low voltage. Decide how long it will take. For the time required for the fixed extension process, a corresponding numerical value is set in advance in the program management area. In this example, random extension processing is included in the security mode period. Therefore, in order to ensure that the time T-low voltage arrives during the security mode period, the sum of the time from power-on to time T-XSRST, the time required for the security check process, and the time for the fixed extension process is For example, the fixed extension processing time is determined based on the table shown in FIG. 185 (a) so as to be longer than the time from turning on to time T-low voltage.

このように、固定延長処理に要する時間を調節することにより、図305を用いて説明した問題を生じることなく安定してパチンコ機100の起動処理を行うことができる。固定延長処理に要する時間を調節するだけで、リセットIC7003や周辺回路に設計変更を加える必要が生じないので低コストで容易に安定してパチンコ機100の起動処理を行うことができる。   In this way, by adjusting the time required for the fixing and extending process, the pachinko machine 100 can be stably started without causing the problem described with reference to FIG. By simply adjusting the time required for the fixing and extending process, it is not necessary to make a design change to the reset IC 7003 or the peripheral circuit, so the start-up process of the pachinko machine 100 can be easily and stably performed at a low cost.

また、WDT314の最初のクリア&リスタート処理を時刻T−低電圧より確実に後にする方法として、ユーザモード開始後に時刻T−低電圧が到来するようにしてもよい。この場合は、遊技制御用プログラムにおいて、時刻T−低電圧の到来を判断し、時刻T−低電圧が到来したと判断したら、WDT314を手動起動する。   Further, as a method of reliably performing the initial clearing and restarting process of the WDT 314 after the time T-low voltage, the time T-low voltage may arrive after the start of the user mode. In this case, in the game control program, it is determined that time T-low voltage has arrived. If it is determined that time T-low voltage has arrived, WDT 314 is manually activated.

図308は、ユーザモード開始時点より後に時刻T−低電圧を到来させて、WDT314の最初のクリア&リスタート処理が時刻T−低電圧より後に実行されるようにしたWDTの駆動方法(その3)を示している。図308は図304と同様のパチンコ機100の電源投入後の起動処理のタイムチャートである。図中左から右に向かって時間の経過を表している。図308の構成は図304と同一であるので同一構成についての説明は省略する。   308 shows a WDT driving method in which the time T-low voltage arrives after the start of the user mode and the first clear & restart process of the WDT 314 is executed after the time T-low voltage (part 3). ). FIG. 308 is a time chart of the startup process after power-on of the pachinko machine 100 similar to FIG. It shows the passage of time from left to right in the figure. Since the configuration in FIG. 308 is the same as that in FIG. 304, the description of the same configuration is omitted.

ユーザモード開始時点より後に時刻T−低電圧を到来させるにはセキュリティモード以降に時刻T−低電圧を到来させるようにする。セキュリティモード以降に時刻T−低電圧を到来させるには、予めセキュリティモード期間に要する時間を把握しておく。また、実験やシミュレーションにより得た監視電圧の電圧上昇プロファイルに基づき電源投入から時刻T−低電圧までに要する時間を把握しておく。これに基づき、電源投入から時刻T−XSRSTまでの時間とセキュリティモード期間の時間の合計が、電源投入から時刻T−低電圧までの時間より短くなるように、時刻T−XSRSTとセキュリティモード期間の時間のいずれか一方または両方を決める。なお本例では、セキュリティモード期間内にランダム延長処理が含まれている。従って、セキュリティモード期間の後に確実に時刻T−低電圧を到来させるには、電源投入から時刻T−XSRSTまでの時間と、セキュリティチェック処理に要する時間と、固定延長処理の時間と、ランダム延長処理の最大時間との合計が、電源投入から時刻T−低電圧までの時間より短くなるように、時刻T−XSRSTまでの時間、セキュリティチェック処理に要する時間、固定延長処理の時間、ランダム延長処理の最大時間を決める。   In order to make the time T-low voltage arrive after the user mode start time, the time T-low voltage is made to arrive after the security mode. In order to make the time T-low voltage arrive after the security mode, the time required for the security mode period is grasped in advance. In addition, the time required from turning on the power to time T-low voltage is grasped based on the voltage rise profile of the monitoring voltage obtained by experiments and simulations. Based on this, the time T-XSRST and the security mode period are set so that the sum of the time from the power-on to the time T-XSRST and the time of the security mode period is shorter than the time from the power-on to the time T-low voltage. Decide on one or both of the times. In this example, random extension processing is included in the security mode period. Therefore, to ensure that the time T-low voltage arrives after the security mode period, the time from power-on to the time T-XSRST, the time required for the security check process, the time for the fixed extension process, and the random extension process Time to time T-XSRST, time required for security check processing, time for fixed extension processing, time for random extension processing, so that the total with the maximum time of power is shorter than the time from power-on to time T-low voltage Determine the maximum time.

また、マイコン電圧の電圧上昇プロファイルを把握しておき、マイコン電圧の上昇中に時刻T−XSRSTが到来するように、リセットIC7003の信号入力端子Bの端子電圧のレベルを判断する閾値電圧をマイコン304の動作保証電圧(例えば、4.5V)より高い電圧(例えば4.8V)に設定する。   Further, the microcomputer 304 grasps the voltage rise profile of the microcomputer voltage, and sets the threshold voltage for judging the level of the terminal voltage of the signal input terminal B of the reset IC 7003 so that the time T-XSRST arrives while the microcomputer voltage is rising. Is set to a voltage (for example, 4.8 V) higher than the operation guarantee voltage (for example, 4.5 V).

上記観点に基づき、時刻T−XSRSTまでの時間、セキュリティチェック処理に要する時間、固定延長処理の時間、ランダム延長処理の最大時間を調整することにより、主制御部300のメイン処理の開始後で主制御部300のタイマ割込み処理への移行を許可する最初の割込み許可前に、時刻T−低電圧を到来させ、且つWDT314を手動起動することができる。   Based on the above viewpoint, by adjusting the time until time T-XSRST, the time required for security check processing, the time for fixed extension processing, and the maximum time for random extension processing, the main control unit 300 starts main processing after the main processing starts. Prior to the first interrupt permitting the transition to the timer interrupt process of the control unit 300, the time T-low voltage can be reached and the WDT 314 can be manually activated.

遊技制御用プログラムには、低電圧信号がネゲート状態になっているか否かを判断する処理(1)を追加し、低電圧信号がネゲート状態になったらWDT314を手動起動する処理(2)を付加しておく。こうすることにより、図305を用いて説明した問題を生じることなく安定してパチンコ機100の起動処理を行うことができる。   In the game control program, a process (1) for determining whether or not a low voltage signal is in a negated state is added, and a process (2) for manually starting WDT 314 when the low voltage signal is in a negated state is added. Keep it. By doing so, it is possible to stably start the pachinko machine 100 without causing the problem described with reference to FIG.

また、パチンコ機100の電源投入後の起動処理のタイムチャートが図304に示すように既知の場合には、遊技制御用プログラムに上記(1)、(2)の処理を追加するだけで、図305を用いて説明した問題を生じることなく安定してパチンコ機100の起動処理を行うことができる。   In addition, when the time chart of the startup process after power-on of the pachinko machine 100 is known as shown in FIG. 304, the process of (1) and (2) above is simply added to the game control program. The start-up process of the pachinko machine 100 can be performed stably without causing the problem described with reference to 305.

<主制御部メイン処理と主制御部タイマ割込処理>   <Main control unit main processing and main control unit timer interrupt processing>

次に、図309および図310を用いて、主制御部300のCPU304が実行する主制御部メイン処理と主制御部タイマ割込処理について説明する。図309は主制御部メイン処理の流れを示すフローチャートであって、図81に示す主制御部メイン処理とほぼ同様のフローで構成されている。図310は主制御部タイマ割込処理の流れを示すフローチャートであって、図85に示す主制御部タイマ割込処理とほぼ同様のフローで構成されている。図309および図310において、図81および図85に示す処理と同一の処理には同一のステップ番号を付してその説明は省略する。   Next, main control unit main processing and main control unit timer interrupt processing executed by the CPU 304 of the main control unit 300 will be described with reference to FIGS. 309 and 310. FIG. 309 is a flowchart showing the flow of the main process of the main control unit, and the flow is substantially the same as the main process of the main control unit shown in FIG. FIG. 310 is a flowchart showing the flow of the main control unit timer interrupt process, and is composed of substantially the same flow as the main control unit timer interrupt process shown in FIG. In FIG. 309 and FIG. 310, the same processes as those shown in FIG. 81 and FIG.

まず、図310に示す制御部タイマ割込処理では、図85に示す処理と同様に、タイマ割込開始処理(ステップS201)からデバイス監視処理(ステップS237)までが順次実行される。次いでステップS239では、低電圧信号がオン(アサート状態)であるか否かを監視する。そして、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS243に進み、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS241に進む。ステップS241では、タイマ割込終了処理を行う。このタイマ割込終了処理では、ステップS201で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割込許可の設定などを行い、その後、図309に示す主制御部メイン処理に復帰する。   First, in the control unit timer interrupt process shown in FIG. 310, the timer interrupt start process (step S201) to the device monitoring process (step S237) are sequentially executed as in the process shown in FIG. Next, in step S239, it is monitored whether or not the low voltage signal is on (asserted). Then, when the low voltage signal is on (when power supply cutoff is detected), the process proceeds to step S243, and when the low voltage signal is off (when power supply cutoff is not detected), the process proceeds to step S241. In step S241, timer interrupt end processing is performed. In this timer interrupt end process, the value of each register temporarily saved in step S201 is set in each original register, interrupt permission is set, etc., and then main control unit main process shown in FIG. Return to.

一方、ステップS243では、復電時に電断時の状態に復帰するための特定の変数やスタックポインタを復帰データとしてRAM308の所定の領域に退避し、入出力ポートの初期化等の電断処理を行う。また、WDT314を手動起動させている場合はステップS243でWDT314を停止させるようにしてもよい。   On the other hand, in step S243, a specific variable or stack pointer for returning to the power-off state at the time of power recovery is saved in a predetermined area of the RAM 308 as return data, and power-off processing such as initialization of input / output ports is performed. Do. If the WDT 314 is manually activated, the WDT 314 may be stopped in step S243.

次いで、ステップS244では、低電圧信号がオンであるか否か、すなわち、電圧監視回路338が、電源制御部660から主制御部300に供給している電源の電圧値が所定の値(本実施形態では9V)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(CPU304が電源の遮断を検知した場合)には低電圧信号を出力しているか否かを監視する処理を繰り返し、低電圧信号がオフの場合(CPU304が電源の遮断を検知していない場合)には図309に示す主制御部メイン処理の初期設定1(ステップS101)に移行し、主制御部メイン処理を続行する。WDT314を手動起動させている場合において、ステップS243でWDT314を停止させている場合には、WDTタイムアウトによるリセット処理への移行をさせずに、ステップS244の処理を繰り返すことができる。例えば特図変動遊技中に、ステップS243での電断処理中にWDT314を一時停止して、低電圧で安定した場合(ステップS244を無限ループした場合)になると、副制御部400側は特図変動遊技の終了を示すコマンドを受信できないので、いつまでも特図変動遊技中の状態や揺れ変動の状態となる。   Next, in step S244, whether or not the low voltage signal is ON, that is, the voltage value of the power supply that the voltage monitoring circuit 338 supplies from the power supply control unit 660 to the main control unit 300 is a predetermined value (this embodiment). When the voltage is less than 9V), it is monitored whether or not a low voltage signal indicating that the voltage has decreased is output. When the low voltage signal is on (when the CPU 304 detects that the power supply is cut off), the process of monitoring whether or not the low voltage signal is output is repeated, and when the low voltage signal is off (the CPU 304 is powered off) If no shutoff is detected), the process proceeds to initial setting 1 (step S101) of the main control part main process shown in FIG. 309, and the main control part main process is continued. When the WDT 314 is manually activated and the WDT 314 is stopped in step S243, the process of step S244 can be repeated without shifting to the reset process due to the WDT timeout. For example, during the special figure variation game, when the WDT 314 is temporarily stopped during the power interruption process in step S243 and the voltage becomes stable at a low voltage (when the step S244 is infinitely looped), the sub-control unit 400 side displays the special figure. Since the command indicating the end of the variable game cannot be received, the state during the special figure variable game or the state of the fluctuation of the swing is indefinite.

また、この構成にすることにより、図191(b)に示すようなWDT314のタイムアウト直後にアドレス信号A0〜A15端子から出力される16ビットのアドレス情報(例えば、E000H)を出力しないようにすることができる。これにより不正者による不正使用を防止することができる場合がある。また、この構成によればセキュリティモードを省略してユーザモードから処理を開始できるのでパチンコ機100の起動を早くすることができる場合がある。なお、ステップS244から主制御部メイン処理への移行先はステップS101に限る必要はない。例えば、ステップS101〜S105の処理を省略して、ステップS244からステップS107の初期設定2から実行するようにしてももちろんよい。
<主制御部タイマ割込処理>
In addition, with this configuration, 16-bit address information (for example, E000H) output from the address signals A0 to A15 terminals immediately after the timeout of the WDT 314 as shown in FIG. 191 (b) is not output. Can do. This may prevent unauthorized use by unauthorized persons. In addition, according to this configuration, the security mode can be omitted and the process can be started from the user mode, so that the pachinko machine 100 can be started quickly. Note that the transition destination from step S244 to the main control unit main process need not be limited to step S101. For example, the processing of steps S101 to S105 may be omitted, and the process may be executed from the initial setting 2 of steps S244 to S107.
<Main control unit timer interrupt processing>

次に、図311を用いて、主制御部300のCPU304が実行する主制御部タイマ割込処理の変形例について説明する。図311(a)は本変形例に係る主制御部タイマ割込処理の流れを示すフローチャートである。本変形例に係る主制御部タイマ割込処理の流れは、図81に示すタイマ割込開始処理(ステップS201)からタイマ割込終了処理(ステップS241)までの処理において、電断検出の判断処理(ステップS239)と電断処理(ステップS243)とが省かれている点に特徴を有している。図311において、図81に示す処理と同一の処理には同一のステップ番号を付してその説明は省略する。   Next, a modified example of the main control unit timer interrupt process executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. FIG. 311 (a) is a flowchart showing the flow of the main control unit timer interrupt process according to this modification. The flow of the main control unit timer interrupt process according to the present modification is the determination process of power interruption detection in the process from the timer interrupt start process (step S201) to the timer interrupt end process (step S241) shown in FIG. This is characterized in that (Step S239) and the power interruption process (Step S243) are omitted. In FIG. 311, the same processes as those shown in FIG. 81 are denoted by the same step numbers and description thereof is omitted.

図311(b)は主制御部300のCPU304でのノンマスカブル割込(NMI)処理の流れを示すフローチャートである。ノンマスカブル割込みは、CPU304が割込み禁止状態でも無条件に受け付けられる割込みである。ノンマスカブル割込みはXNMI端子に入力する割込み信号をアサート状態(本例では、ローレベル)にすることにより実行される。本変形例では、ノンマスカブル割込みが発生すると電断処理(ステップS243)を実行する。このように主制御部300のCPU304が実行する主制御部タイマ割込処理から電断処理を分離し、ノンマスカブル割込みの発生を条件に電断処理を行うようにしている。こうすることにより、安定した遊技制御を行うことができる。なお、NMI処理の電断処理(ステップS243)の後に図310の低電圧状態判定処理(ステップS244)を追加してもよい。NMI処理中にタイマ割込みがあった場合は、NMI処理終了後にタイマ割込処理に移行するようにしてもよい。
<主制御部メイン処理>
FIG. 311 (b) is a flowchart showing a flow of non-maskable interrupt (NMI) processing in the CPU 304 of the main control unit 300. The non-maskable interrupt is an interrupt that is unconditionally accepted even when the CPU 304 is in an interrupt disabled state. The non-maskable interrupt is executed by setting an interrupt signal input to the XNMI terminal to an asserted state (low level in this example). In this modified example, when a non-maskable interrupt occurs, the power interruption process (step S243) is executed. In this way, the power interruption process is separated from the main control part timer interrupt process executed by the CPU 304 of the main control part 300, and the power interruption process is performed on condition that a non-maskable interrupt occurs. By doing so, stable game control can be performed. Note that the low voltage state determination process (step S244) of FIG. 310 may be added after the power interruption process (step S243) of the NMI process. If there is a timer interrupt during the NMI process, the process may be shifted to the timer interrupt process after the NMI process ends.
<Main control unit main processing>

次に、図312を用いて、主制御部300のCPU304が実行する主制御部メイン処理の変形例について説明する。なお、同図は主制御部メイン処理の流れを示すフローチャートである。   Next, a modified example of the main process of the main control unit executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of main processing of the main control unit.

上述したように、主制御部300には、電源が投入されると起動信号(リセット信号)を出力する起動信号出力回路(リセット信号出力回路)340を設けている。この起動信号を入力した基本回路302のCPU304は、リセット割込によりリセットスタートしてROM306に予め記憶している制御プログラムに従って図312に示す主制御部メイン処理を実行する。   As described above, the main control unit 300 is provided with the start signal output circuit (reset signal output circuit) 340 that outputs the start signal (reset signal) when the power is turned on. The CPU 304 of the basic circuit 302 to which this activation signal has been input resets by a reset interrupt and executes a main control unit main process shown in FIG. 312 according to a control program stored in advance in the ROM 306.

ステップS8101では、初期設定1を行う。この初期設定1では、CPU304のスタックポインタ(SP)へのスタック初期値の設定(仮設定)、割込マスクの設定、I/O310の初期設定、RAM308に記憶する各種変数の初期設定、WDT314への動作許可及び初期値の設定等を行う。なお、本実施形態では、WDT314に、初期値として32.8msに相当する数値を設定する。   In step S8101, initial setting 1 is performed. In this initial setting 1, setting of a stack initial value (temporary setting) to the stack pointer (SP) of the CPU 304, setting of an interrupt mask, initial setting of the I / O 310, initial setting of various variables stored in the RAM 308, to the WDT 314 The operation is permitted and the initial value is set. In the present embodiment, a numerical value corresponding to 32.8 ms is set in WDT 314 as an initial value.

ステップS8103では、低電圧信号がオンであるか否か、すなわち、電圧監視回路338が、電源制御部660から主制御部300に供給している電源の電圧値が所定の値(本実施形態では9V)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(CPU304が電源の遮断を検知した場合)にはステップS8103の処理を繰り返し実行し、低電圧信号がオフの場合(CPU304が電源の遮断を検知していない場合)にはステップS8107に進む。なお、電源が投入された直後で未だ上記所定の値(9V)に達しない場合にも、供給電圧がその所定の値以上になるまで、ステップS8103の処理を繰り返し実行する。   In step S8103, whether or not the low voltage signal is on, that is, the voltage value of the power source supplied from the power source control unit 660 to the main control unit 300 by the voltage monitoring circuit 338 is a predetermined value (in the present embodiment). When the voltage is less than 9V), it is monitored whether or not a low voltage signal indicating that the voltage has decreased is output. If the low voltage signal is on (when the CPU 304 detects that the power supply has been cut off), the processing of step S8103 is repeated, and if the low voltage signal is off (if the CPU 304 has not detected the power supply being cut off). ) Proceeds to step S8107. Even when the predetermined value (9 V) is not yet reached immediately after the power is turned on, the process of step S8103 is repeatedly executed until the supply voltage becomes equal to or higher than the predetermined value.

ステップS8105では、初期設定2を行う。この初期設定2では、後述する主制御部タイマ割込処理を定期毎に実行するための周期を決める数値をカウンタタイマ312に設定する処理、I/O310の所定の出力ポート(例えば試験用出力ポート、第1副制御部400への出力ポート)からクリア信号を出力する処理、RAM308への書き込みを許可する設定等を行う。   In step S8105, initial setting 2 is performed. In this initial setting 2, a process for setting a numerical value for determining a cycle for executing a main control unit timer interrupt process, which will be described later, in the counter timer 312, a predetermined output port of the I / O 310 (for example, a test output port) , A process for outputting a clear signal from the output port to the first sub-control unit 400, a setting for permitting writing to the RAM 308, and the like.

ステップS8107では、電源の遮断前(電断前)の状態に復帰するか否かの判定を行い、電断前の状態に復帰しない場合(主制御部300の基本回路302を初期状態にする場合)には初期化処理(ステップS8115)に進む。   In step S8107, it is determined whether or not to return to the state before the power interruption (before the power interruption), and the state before the power interruption is not restored (when the basic circuit 302 of the main control unit 300 is set to the initial state). ) Proceeds to initialization processing (step S8115).

具体的には、最初に、電源基板に設けたRWMクリアスイッチ180を遊技店の店員などが操作した場合に送信されるRAMクリア信号がオン(操作があったことを示す)であるか否か、すなわちRAMクリアが必要であるか否かを判定し、RAMクリア信号がオンの場合(RAMクリアが必要な場合)には、基本回路302を初期状態にすべくステップS8115に進む。一方、RAMクリア信号がオフの場合(RAMクリアが必要でない場合)には、RAM308に設けた電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、この電源ステータスの情報がサスペンドを示す情報であるか否かを判定する。そして、電源ステータスの情報がサスペンドを示す情報でない場合には、基本回路302を初期状態にすべくステップS8115に進み、電源ステータスの情報がサスペンドを示す情報である場合には、RAM308の所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出し、算出したチェックサムの結果が特定の値(例えば0)であるか否か(チェックサムの結果が正常であるか否か)を判定する。そして、チェックサムの結果が特定の値(例えば0)の場合(チェックサムの結果が正常である場合)には、その後の処理を遅延させるべくステップS8109に進んでから、電断前の状態に復帰すべくステップS8111に進む。チェックサムの結果が特定の値(例えば0)以外である場合(チェックサムの結果が異常である場合)には、パチンコ機100を初期状態にすべくステップS8115に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS8115に進む。   Specifically, first, a RAM clear signal transmitted when a store clerk or the like of an amusement store operates the RWM clear switch 180 provided on the power supply board is turned on (indicates that there has been an operation). That is, it is determined whether or not the RAM clear is necessary. If the RAM clear signal is ON (the RAM clear is necessary), the process proceeds to step S8115 to set the basic circuit 302 to the initial state. On the other hand, when the RAM clear signal is OFF (when the RAM clear is not necessary), the power status information stored in the power status storage area provided in the RAM 308 is read, and the power status information is information indicating suspend. It is determined whether or not. If the power status information is not information indicating suspend, the process proceeds to step S8115 to set the basic circuit 302 to an initial state. If the power status information is information indicating suspend, a predetermined area of the RAM 308 is set. A checksum is calculated by adding all the 1-byte data stored in (for example, all areas) to a 1-byte register whose initial value is 0, and the calculated checksum results in a specific value (for example, 0) (whether or not the checksum result is normal). If the result of the checksum is a specific value (for example, 0) (if the result of the checksum is normal), the process proceeds to step S8109 to delay the subsequent processing, and then the state before power interruption is established. Proceed to step S8111 to return. If the checksum result is other than a specific value (for example, 0) (if the checksum result is abnormal), the process advances to step S8115 to set the pachinko machine 100 to the initial state. Similarly, if the power status information indicates information other than “suspend”, the process advances to step S8115.

ステップS8109では、遅延処理を実行する(詳細は後述)。   In step S8109, a delay process is executed (details will be described later).

ステップS8111では、復電時処理を行う。この復電時処理では、電断時にRAM308に設けられたスタックポインタ退避領域に記憶しておいたスタックポインタの値を読み出し、スタックポインタに再設定(本設定)する。また、電断時にRAM308に設けられたレジスタ退避領域に記憶しておいた各レジスタの値を読み出し、各レジスタに再設定した後、割込許可の設定を行う。以降、CPU304が、再設定後のスタックポインタやレジスタに基づいて制御プログラムを実行する結果、パチンコ機100は電源断時の状態に復帰する。すなわち、電断直前にタイマ割込処理(後述)に分岐する直前に行った(ステップS8121内の所定の)命令の次の命令から処理を再開する。また、図75に示す主制御部300における基本回路302に搭載されているRAM308には、送信情報記憶領域が設けられている。このステップS8111では、その送信情報記憶領域に、復電コマンドをセットする。この復電コマンドは、電源断時の状態に復帰したことを表すコマンドであり、後述する、主制御部300のタイマ割込処理におけるステップS8233において、第1副制御部400へ送信される。   In step S8111, power recovery processing is performed. In this power recovery process, the value of the stack pointer stored in the stack pointer save area provided in the RAM 308 at the time of power failure is read out and reset to the stack pointer (this setting). In addition, the value of each register stored in the register save area provided in the RAM 308 at the time of power interruption is read out and reset in each register, and then the interrupt permission is set. Thereafter, as a result of the CPU 304 executing the control program based on the reset stack pointer and registers, the pachinko machine 100 returns to the state when the power is turned off. That is, the processing is resumed from the instruction next to the instruction (predetermined in step S8121) performed immediately before branching to the timer interrupt process (described later) immediately before the power interruption. In addition, a transmission information storage area is provided in the RAM 308 mounted on the basic circuit 302 in the main control unit 300 shown in FIG. In step S8111, a power recovery command is set in the transmission information storage area. This power recovery command is a command indicating that the power has been restored to the state at the time of power-off, and is transmitted to the first sub-control unit 400 in step S8233 in the timer interrupt process of the main control unit 300, which will be described later.

ステップS8113では、WDT314による時間計測を開始する。   In step S8113, time measurement by the WDT 314 is started.

ステップS8115では、初期化処理を行う。この初期化処理では、割込禁止の設定、スタックポインタへのスタック初期値の設定(本設定)、RAM308の全ての記憶領域の初期化などを行う。さらにここで、主制御部300のRAM308に設けられた送信情報記憶領域に正常復帰コマンドをセットする。この正常復帰コマンドは、主制御部300の初期化処理(ステップS8115)が行われたことを表すコマンドであり、復電コマンドと同じく、主制御部300のタイマ割込処理におけるステップS8233において、第1副制御部400へ送信される。   In step S8115, initialization processing is performed. In this initialization process, interrupt prohibition setting, stack initial value setting to the stack pointer (this setting), initialization of all storage areas of the RAM 308, and the like are performed. Further, here, a normal return command is set in the transmission information storage area provided in the RAM 308 of the main control unit 300. This normal return command is a command indicating that the initialization process (step S8115) of the main control unit 300 has been performed, and in the same way as the power recovery command, in step S8233 in the timer interrupt process of the main control unit 300, 1 is transmitted to the sub-control unit 400.

ステップS8117では、遅延処理を実行する(詳細は後述)。   In step S8117, delay processing is executed (details will be described later).

ステップS8119では、WDT314のカウンタの値をクリアし、WDT314による時間計測を開始する。   In step S8119, the counter value of WDT 314 is cleared, and time measurement by WDT 314 is started.

ステップS8121では、割込禁止の設定を行った後、基本乱数初期値更新処理を行う。この基本乱数初期値更新処理では、普図当選乱数カウンタ、および特図乱数値カウンタの初期値をそれぞれ生成するための2つの初期値生成用乱数カウンタと、普図タイマ乱数値、および特図タイマ乱数値それぞれを生成するための2つの乱数カウンタを更新する。例えば、普図タイマ乱数値として取り得る数値範囲が0〜100とすると、RAM308に設けた普図タイマ乱数値を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が101であれば0を元の乱数カウンタ記憶領域に記憶する。他の初期値生成用乱数カウンタ、乱数カウンタもそれぞれ同様に更新する。なお、初期値生成用乱数カウンタは、後述するステップS8207でも更新する。なお、ステップS8121では、基本乱数初期値更新処理の他に後述する基本乱数更新処理を行ってもよいし、基本乱数更新処理のみを行ってもよい。   In step S8121, the basic random number initial value update process is performed after setting the interrupt prohibition. In this basic random number initial value update process, two initial value generation random number counters for generating the initial values of the ordinary figure winning random number counter and the special figure random value counter, the ordinary figure timer random number value, and the special figure timer, respectively. Two random number counters for generating each random value are updated. For example, if the range of values that can be taken as a normal timer random number value is 0 to 100, a value is acquired from a random number counter storage area for generating a normal timer random value provided in the RAM 308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 101, 0 is stored in the original random number counter storage area. Other initial value generation random number counters and random number counters are similarly updated. Note that the initial value generation random number counter is also updated in step S8207 described later. In step S8121, in addition to the basic random number initial value updating process, a basic random number updating process described later may be performed, or only the basic random number updating process may be performed.

主制御部300は、所定の周期ごとに開始するタイマ割込処理を行っている間を除いて、ステップS8121の処理を繰り返し実行する。
<遅延処理>
The main control unit 300 repeatedly executes the process of step S8121 except during the timer interrupt process starting at predetermined intervals.
<Delay processing>

次に、図313を用いて、主制御部300のCPU304が実行する遅延処理について説明する。なお、同図は主制御部メイン処理における遅延処理の流れを示すフローチャートである。   Next, delay processing executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of delay processing in the main processing of the main control unit.

ステップS8131では、I/Oの所定の出力ポートからクリア信号を送信する処理を実行する。   In step S811, processing for transmitting a clear signal from a predetermined output port of I / O is executed.

ステップS8133では、第1副制御部400の起動を待つ周期を決める副制御部起動待ちカウンタを初期設定(例えば90を設定)する。   In step S 8133, a sub control unit activation wait counter that determines a cycle for waiting for activation of the first sub control unit 400 is initialized (for example, 90 is set).

ステップS8135では、割込み機能限定カウンタを初期設定(例えば250を設定)する。割込み機能限定カウンタは、4ms毎のタイマ割込み処理で減算される。   In step S8135, an interrupt function limited counter is initialized (for example, 250 is set). The interrupt function limited counter is subtracted by timer interrupt processing every 4 ms.

ステップS8137では、基本乱数初期値更新処理を実行する(詳細は後述)。なお、ステップS8137では、基本乱数初期値更新処理の他に後述する基本乱数更新処理を行ってもよいし、基本乱数更新処理のみを行ってもよい。   In step S8137, a basic random number initial value update process is executed (details will be described later). In step S8137, in addition to the basic random number initial value updating process, a basic random number updating process described later may be performed, or only the basic random number updating process may be performed.

ステップS8139では、コマンド送信処理を行い、各種のコマンドが第1副制御部400に送信される。   In step S8139, command transmission processing is performed, and various commands are transmitted to the first sub-control unit 400.

ステップS8141では、割込み機能限定カウンタが0であるか否かの判定を行い、割込み機能限定カウンタが0以外の場合、ステップS8137の処理に戻る。一方、割込み機能限定カウンタが0の場合、すなわち、ステップS8135において割込み機能限定カウンタに250が設定され、4ms毎のタイマ割込み処理で減算されて1000ms=1秒経過した場合、ステップS8143に進む。   In step S8141, it is determined whether or not the interrupt function limit counter is 0. If the interrupt function limit counter is other than 0, the process returns to step S8137. On the other hand, if the interrupt function limit counter is 0, that is, if 250 is set in the interrupt function limit counter in step S8135 and is subtracted by the timer interrupt process every 4 ms and 1000 ms = 1 second has passed, the process proceeds to step S8143.

ステップS8143では、副制御部起動待ちカウンタを1減算する。   In step S8143, the sub-control unit activation wait counter is decremented by 1.

ステップS8145では、副制御部起動待ちカウンタが0であるか否かの判定を行い、副制御部起動待ちカウンタが0以外の場合、ステップS8135に戻る。一方、副制御部起動待ちカウンタが0の場合、すなわち、ステップS8133において副制御部起動待ちカウンタに90が設定され、90秒経過した場合、ステップS8147に進む。   In step S8145, it is determined whether or not the sub control unit activation wait counter is 0. If the sub control unit activation wait counter is other than 0, the process returns to step S8135. On the other hand, if the sub-control unit activation wait counter is 0, ie, 90 is set in the sub-control unit activation wait counter in step S8133 and 90 seconds have elapsed, the process proceeds to step S8147.

ステップS8147では、その他の処理を実行する。
<主制御部タイマ割込処理>
In step S8147, other processing is executed.
<Main control unit timer interrupt processing>

次に、図314を用いて、主制御部300のCPU304が実行する主制御部タイマ割込処理について説明する。なお、同図は主制御部タイマ割込処理の流れを示すフローチャートである。   Next, the main control unit timer interrupt process executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of the main control unit timer interrupt process.

主制御部300は、所定の周期(本実施形態では約2msに1回)でタイマ割込信号を発生するカウンタタイマ312を備えており、このタイマ割込信号を契機として主制御部タイマ割込処理を所定の周期で開始する。   The main control unit 300 includes a counter timer 312 that generates a timer interrupt signal at a predetermined cycle (in this embodiment, about once every 2 ms), and the main control unit timer interrupt is triggered by this timer interrupt signal. The process is started at a predetermined cycle.

ステップS8201では、タイマ割込開始処理を行う。このタイマ割込開始処理では、CPU304の各レジスタの値をスタック領域に一時的に退避する処理などを行う。   In step S8201, timer interrupt start processing is performed. In this timer interrupt start process, a process of temporarily saving each register value of the CPU 304 to the stack area is performed.

ステップS8203では、WDT314のカウント値が初期設定値(本実施形態では32.8ms)を超えてWDT割込が発生しないように(処理の異常を検出しないように)、WDTを定期的に(本実施形態では、主制御部タイマ割込の周期である約2msに1回)クリア&リスタートを行う。   In step S8203, the WDT is periodically updated (so that the count value of the WDT 314 exceeds the initial setting value (32.8 ms in the present embodiment) and no WDT interruption occurs (so as not to detect a processing abnormality). In the embodiment, clear and restart are performed once every about 2 ms which is the period of the main control unit timer interrupt.

ステップS8205では、入力ポート状態更新処理を行う。この入力ポート状態更新処理では、I/O310の入力ポートを介して、上述の前面枠扉開放センサや内枠開放センサや下皿満タンセンサ、各種の球検出センサを含む各種センサ320の検出信号を入力して検出信号の有無を監視し、RAM308に各種センサ320ごとに区画して設けた信号状態記憶領域に記憶する。球検出センサの検出信号を例にして説明すれば、前々回のタイマ割込処理(約4ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた前回検出信号記憶領域から読み出し、この情報をRAM308に各々の球検出センサごとに区画して設けた前々回検出信号記憶領域に記憶し、前回のタイマ割込処理(約2ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた今回検出信号記憶領域から読み出し、この情報を上述の前回検出信号記憶領域に記憶する。また、今回検出した各々の球検出センサの検出信号を、上述の今回検出信号記憶領域に記憶する。   In step S8205, input port state update processing is performed. In this input port state update process, the detection signals of various sensors 320 including the above-mentioned front frame door open sensor, inner frame open sensor, lower pan full sensor, and various ball detection sensors are input via the input port of the I / O 310. The input is monitored for the presence or absence of a detection signal, and stored in a signal state storage area provided for each of the various sensors 320 in the RAM 308. If the detection signal of the sphere detection sensor is described as an example, information on the presence / absence of the detection signal of each sphere detection sensor detected in the timer interruption process (about 4 ms before) is stored in the RAM 308 for each sphere detection sensor. This information is read out from the previous detection signal storage area partitioned and stored in the RAM 308 in the previous detection signal storage area partitioned for each sphere detection sensor, and the previous timer interrupt processing (about 2 ms before) ) Is read from the current detection signal storage area provided for each sphere detection sensor in the RAM 308, and this information is read out from the previous detection signal storage area described above. To remember. Further, the detection signal of each sphere detection sensor detected this time is stored in the above-described current detection signal storage area.

また、ステップS8205では、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域の各記憶領域に記憶した各々の球検出センサの検出信号の有無の情報を比較し、各々の球検出センサにおける過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致するか否かを判定する。一個の遊技球が一つの球検出センサを通過する間に、約2msという非常に短い間隔で起動を繰り返すこの主制御部タイマ割込処理は何回か起動する。このため、主制御部タイマ割込処理が起動する度に、上述のステップS8205では、同じ遊技球が同じ球検出センサを通過したことを表す検出信号を確認することになる。この結果、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域それぞれに、同じ遊技球が同じ球検出センサを通過したことを表す検出信号が記憶される。すなわち、遊技球が球検出センサを通過し始めたときには、前々回検出信号無し、前回検出信号有り、今回検出信号有りになる。本実施形態では、球検出センサの誤検出やノイズを考慮して、検出信号無しの後に検出信号が連続して2回記憶されている場合には、入賞があったと判定する。図75に示す主制御部300のROM306には、入賞判定パターン情報(本実施形態では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)が記憶されている。このステップS8205では、各々の球検出センサにおいて過去3回分の検出信号の有無の情報が、予め定めた入賞判定パターン情報(本実施形態では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)と一致した場合に、一般入賞口226、可変入賞口234、第1特図始動口230、および第2特図始動口232への入球、または普図始動口228の通過があったと判定する。すなわち、これらの入賞口226、234やこれらの始動口230、232、228への入賞があったと判定する。例えば、一般入賞口226への入球を検出する一般入賞口センサにおいて過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致した場合には、一般入賞口226へ入賞があったと判定し、以降の一般入賞口226への入賞に伴う処理を行うが、過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致しなかった場合には、以降の一般入賞口226への入賞に伴う処理を行わずに後続の処理に分岐する。なお、主制御部300のROM306には、入賞判定クリアパターン情報(本実施形態では、前々回検出信号有り、前回検出信号無し、今回検出信号無しであることを示す情報)が記憶されている。入賞が一度あったと判定した後は、各々の球検出センサにおいて過去3回分の検出信号の有無の情報が、その入賞判定クリアパターン情報に一致するまで入賞があったとは判定せず、入賞判定クリアパターン情報に一致すれば、次からは上記入賞判定パターン情報に一致するか否かの判定を行う。   In step S8205, the information on the presence / absence of the detection signal of each sphere detection sensor stored in each storage area of the detection signal storage area, the previous detection signal storage area, and the current detection signal storage area is compared. It is determined whether or not the information on the presence or absence of detection signals for the past three times in the ball detection sensor matches the winning determination pattern information. This main control unit timer interrupt process that is repeatedly started at a very short interval of about 2 ms while one game ball passes one ball detection sensor is started several times. For this reason, every time the main control unit timer interruption process is activated, in step S8205 described above, a detection signal indicating that the same game ball has passed the same ball detection sensor is confirmed. As a result, a detection signal indicating that the same game ball has passed the same ball detection sensor is stored in each of the detection signal storage area, the previous detection signal storage area, and the current detection signal storage area. That is, when the game ball starts to pass through the ball detection sensor, there is no detection signal before, a previous detection signal, and a current detection signal. In the present embodiment, in consideration of erroneous detection of the sphere detection sensor and noise, it is determined that there is a prize when the detection signal is stored twice continuously after no detection signal. In the ROM 306 of the main control unit 300 shown in FIG. 75, winning determination pattern information (in this embodiment, information indicating that there is no previous detection signal, that there is a previous detection signal, and that there is a current detection signal) is stored. In this step S8205, information on the presence or absence of detection signals for the past three times in each sphere detection sensor is predetermined winning determination pattern information (in this embodiment, no previous detection signal, previous detection signal present, current detection signal present). In the case of the general winning port 226, the variable winning port 234, the first special figure starting port 230, and the second special figure starting port 232, or the ordinary drawing starting port 228. Is determined to have passed. In other words, it is determined that a prize has been awarded to the winning ports 226 and 234 and the starting ports 230, 232, and 228. For example, when the information on the presence / absence of the detection signals for the past three matches with the above-described winning determination pattern information in the general winning opening sensor for detecting the winning at the general winning opening 226, there is a winning at the general winning opening 226. If the information on the presence / absence of detection signals for the past three times does not match the above-described winning determination pattern information, the subsequent general winnings are performed. The process branches to the subsequent process without performing the process associated with winning the prize to the mouth 226. Note that the ROM 306 of the main control unit 300 stores winning determination clear pattern information (in this embodiment, information indicating that there is a detection signal before the previous time, no previous detection signal, and no current detection signal). After it is determined that there has been a single win, it is not determined that there has been a win until the information on the presence or absence of detection signals for the past three times matches the winning determination clear pattern information in each ball detection sensor, and the winning determination is cleared. If it matches the pattern information, it is next determined whether or not it matches the winning determination pattern information.

ステップS8207およびステップS8209では、基本乱数初期値更新処理および基本乱数更新処理を行う。これらの基本乱数初期値更新処理および基本乱数更新処理では、上記ステップS8115で行った初期値生成用乱数カウンタの値の更新を行い、次に主制御部300で使用する、普図当選乱数値、特図1乱数値、および特図2乱数値をそれぞれ生成するための2つの乱数カウンタを更新する。例えば、普図当選乱数値として取り得る数値範囲が0〜100とすると、RAM308に設けた普図当選乱数値を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が101であれば0を元の乱数カウンタ記憶領域に記憶する。また、取得した値に1を加算した結果、乱数カウンタが一周していると判定した場合にはそれぞれの乱数カウンタに対応する初期値生成用乱数カウンタの値を取得し、乱数カウンタの記憶領域にセットする。例えば、0〜100の数値範囲で変動する普図当選乱数値生成用の乱数カウンタから値を取得し、取得した値に1を加算した結果が、RAM308に設けた所定の初期値記憶領域に記憶している前回設定した初期値と等しい値(例えば7)である場合に、普図当選乱数値生成用の乱数カウンタに対応する初期値生成用乱数カウンタから値を初期値として取得し、普図当選乱数値生成用の乱数カウンタにセットすると共に、普図当選乱数値生成用の乱数カウンタが次に1周したことを判定するために、今回設定した初期値を上述の初期値記憶領域に記憶しておく。また、普図当選乱数値生成用の乱数カウンタが次に1周したことを判定するための上述の初期値記憶領域とは別に、特図乱数生成用の乱数カウンタが1周したことを判定するための初期値記憶領域をRAM308に設けている。なお、本実施形態では特図1の乱数値を取得するためのカウンタと特図2の乱数値を取得するためのカウンタとを別に設けたが、同一のカウンタを用いてもよい。   In step S8207 and step S8209, basic random number initial value update processing and basic random number update processing are performed. In these basic random number initial value update processing and basic random number update processing, the value of the initial value generation random number counter performed in step S8115 is updated, and then the normal winning random number value used in the main control unit 300, Two random number counters for generating the special figure 1 random value and the special figure 2 random value are updated. For example, if the range of values that can be taken as a random number value for a normal winning number is 0 to 100, a value is acquired from a random number counter storage area for generating a normal winning random number value provided in the RAM 308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 101, 0 is stored in the original random number counter storage area. If it is determined that the random number counter has made one round as a result of adding 1 to the acquired value, the value of the initial value generating random number counter corresponding to each random number counter is acquired and stored in the storage area of the random number counter. set. For example, a value is acquired from a random number counter for generating a regular winning random number that fluctuates in a numerical range of 0 to 100, and a result obtained by adding 1 to the acquired value is stored in a predetermined initial value storage area provided in the RAM 308. If the value is equal to the previously set initial value (for example, 7), the value is acquired as an initial value from the initial value generation random number counter corresponding to the random number counter for generating the random number for winning the normal number, The initial value set this time is stored in the above-described initial value storage area in order to determine that the random number counter for generating the winning random number value has made one round next time, in addition to setting it in the random number counter for generating the winning random value Keep it. Further, apart from the above-described initial value storage area for determining that the random number counter for generating the random number for winning the normal signal has made one round next, it is determined that the random number counter for generating the special figure random number has made one round. An initial value storage area is provided in the RAM 308. In the present embodiment, the counter for acquiring the random number value of FIG. 1 and the counter for acquiring the random value of FIG. 2 are separately provided, but the same counter may be used.

ステップS8211では、演出乱数更新処理を行う。この演出乱数更新処理では、主制御部300で使用する演出用乱数値を生成するための乱数カウンタを更新する。   In step S8211, effect random number update processing is performed. In this effect random number update process, a random number counter for generating an effect random number used by the main control unit 300 is updated.

ステップS8212では、割込み機能限定カウンタが0であるか否かの判定を行い、割込み機能限定カウンタが0以外の場合、ステップS8213に進む。一方、割込み機能限定カウンタが0の場合、ステップS8214に進む。   In step S8212, it is determined whether or not the interrupt function limitation counter is 0. If the interrupt function limitation counter is other than 0, the process proceeds to step S8213. On the other hand, if the interrupt function limit counter is 0, the process advances to step S8214.

ステップS8213では、割込み機能限定カウンタを1減算し、その後、ステップS8239に進む。   In step S8213, the interrupt function limitation counter is decremented by 1, and then the process proceeds to step S8239.

ステップS8214では、特定異常検出フラグ(詳しくは後述する。)がONであるか否かの判定を行い、特定異常検出フラグがONの場合、ステップS8239に進む。一方、特定異常検出フラグがOFFの場合、ステップS8215に進む。   In step S8214, it is determined whether or not a specific abnormality detection flag (described later in detail) is ON. If the specific abnormality detection flag is ON, the process proceeds to step S8239. On the other hand, if the specific abnormality detection flag is OFF, the process proceeds to step S8215.

ステップS8215では、タイマ更新処理を行う。このタイマ更新処理では、普通図柄表示装置210に図柄を変動・停止表示する時間を計時するための普図表示図柄更新タイマ、第1特別図柄表示装置212に図柄を変動・停止表示する時間を計時するための特図1表示図柄更新タイマ、第2特図表示装置214に図柄を変動・停止表示する時間を計時するための特図2表示図柄更新タイマ、所定の入賞演出時間、所定の開放時間、所定の閉鎖時間、所定の終了演出期間などを計時するためのタイマなどを含む各種タイマを更新する。   In step S8215, timer update processing is performed. In this timer update process, the normal symbol display symbol update timer for timing the time for the symbol to be changed / stopped on the normal symbol display device 210, and the time for the symbol to be changed / stopped to be displayed on the first special symbol display device 212 are timed. Special symbol 1 display symbol update timer for performing, special symbol 2 display symbol update timer for measuring the time for the symbol to be changed and stopped on the second special symbol display device 214, a predetermined winning effect time, a predetermined opening time Various timers including a timer for measuring a predetermined closing time, a predetermined end effect period, and the like are updated.

ステップS8216では、入賞口カウンタ更新処理を行う。この入賞口カウンタ更新処理では、入賞口226、234や始動口230、232、228に入賞があった場合に、RAM308に各入賞口ごと、あるいは各始動口ごとに設けた賞球数記憶領域の値を読み出し、1を加算して、元の賞球数記憶領域に設定する。   In step S 8216, winning prize counter update processing is performed. In this winning opening counter updating process, when winning holes 226, 234 and starting holes 230, 232, 228 are won, the RAM 308 stores the winning ball number storage area provided for each winning hole or for each starting hole. The value is read out, 1 is added, and the original prize ball number storage area is set.

また、ステップS8217では、入賞受付処理を行う。この入賞受付処理では、第1特図始動口230、第2特図始動口232、普図始動口228および可変入賞口234への入賞があったか否かを判定する。ここでは、ステップS8203における入賞判定パターン情報と一致するか否かの判定結果を用いて判定する。第1特図始動口230へ入賞があった場合且つRAM308に設けた対応する保留数記憶領域が満タンでない場合、カウンタ回路318の当選用カウンタ値記憶用レジスタから値を特図1当選乱数値として取得するとともに特図1乱数値生成用の乱数カウンタから値を特図1乱数値として取得して対応する乱数値記憶領域に格納する。第2特図始動口232へ入賞があった場合且つRAM308に設けた対応する保留数記憶領域が満タンでない場合、カウンタ回路318の当選用カウンタ値記憶用レジスタから値を特図2当選乱数値として取得するとともに特図2乱数値生成用の乱数カウンタから値を特図2乱数値として取得して対応する乱数値記憶領域に格納する。普図始動口228へ入賞があった場合且つRAM308に設けた対応する保留数記憶領域が満タンでない場合、普図当選乱数値生成用の乱数カウンタから値を普図当選乱数値として取得して対応する乱数値記憶領域に格納する。可変入賞口234へ入賞があった場合には、可変入賞口用の入賞記憶領域に、可変入賞口234に球が入球したことを示す情報を格納する。   In step S8217, a winning acceptance process is performed. In this winning acceptance process, it is determined whether or not there has been a winning at the first special figure starting port 230, the second special figure starting port 232, the ordinary drawing starting port 228, and the variable winning port 234. Here, the determination is made using the determination result of whether or not it matches the winning determination pattern information in step S8203. When a winning is made at the first special figure starting port 230 and the corresponding reserved number storage area provided in the RAM 308 is not full, the value is stored in the special counter value storage register of the counter circuit 318. And a value from the random number counter for generating the special figure 1 random value as a special figure 1 random value and storing it in the corresponding random value storage area. When a winning is made to the second special figure starting port 232 and the corresponding reserved number storage area provided in the RAM 308 is not full, the value is sent from the winning counter value storage register of the counter circuit 318 to the special figure 2 winning random number value. And a value from the random number counter for generating the special figure 2 random value as a special figure 2 random value and storing it in the corresponding random value storage area. If there is a win at the general figure starting port 228 and the corresponding reserved number storage area provided in the RAM 308 is not full, the value is obtained as a normal figure winning random number value from the random number counter for generating the normal figure winning random number value. Store in the corresponding random value storage area. When there is a winning at the variable winning opening 234, information indicating that a ball has entered the variable winning opening 234 is stored in the winning storage area for the variable winning opening.

ステップS8219では、払出要求数送信処理を行う。なお、払出制御部600に出力する出力予定情報および払出要求情報は、例えば1バイトで構成しており、ビット7にストローブ情報(オンの場合、データをセットしていることを示す)、ビット6に電源投入情報(オンの場合、電源投入後一回目のコマンド送信であることを示す)、ビット4〜5に暗号化のための今回加工種別(0〜3)、およびビット0〜3に暗号化加工後の払出要求数を示すようにしている。   In step S8219, a payout request number transmission process is performed. Note that the output schedule information and the payout request information output to the payout control unit 600 are composed of, for example, 1 byte, strobe information (indicating that data is set when ON), bit 6 Power-on information (if turned on, indicates that this is the first command transmission after power-on), bits 4-5 indicate the current processing type for encryption (0-3), and bits 0-3 indicate encryption The number of payout requests after processing is shown.

ステップS8221では、普図状態更新処理を行う。この普図状態更新処理は、普図の状態に対応する複数の処理のうちの1つの処理を行う。例えば、普図変動表示の途中(上述する普図表示図柄更新タイマの値が1以上)における普図状態更新処理では、普通図柄表示装置210を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。この制御を行うことで、普通図柄表示装置210は普図の変動表示(普図変動遊技)を行う。   In step S8221, a normal state update process is performed. This normal state update process performs one of a plurality of processes corresponding to the normal state. For example, in the normal state update process in the middle of the normal symbol display (the above-described general symbol display symbol update timer value is 1 or more), the 7-segment LED constituting the normal symbol display device 210 is repeatedly turned on and off. Turns off drive control. By performing this control, the normal symbol display device 210 performs a usual fluctuation display (ordinary figure fluctuation game).

また、普図変動表示時間が経過したタイミング(普図表示図柄更新タイマの値が1から0になったタイミング)における普図状態更新処理では、当りフラグがオンの場合には、当り図柄の表示態様となるように普通図柄表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行い、当りフラグがオフの場合には、外れ図柄の表示態様となるように普通図柄表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行う。また、主制御部300のRAM308には、普図状態更新処理に限らず各種の処理において各種の設定を行う設定領域が用意されている。ここでは、上記点灯・消灯駆動制御を行うとともに、その設定領域に普図停止表示中であることを示す設定を行う。この制御を行うことで、普通図柄表示装置210は、当り図柄(図76(c)に示す普図A)および外れ図柄(図76(c)に示す普図B)いずれか一方の図柄の確定表示を行う。さらにその後、所定の停止表示期間(例えば500m秒間)、その表示を維持するためにRAM308に設けた普図停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により、確定表示された図柄が所定期間停止表示され、普図変動遊技の結果が遊技者に報知される。   Also, in the normal state update process at the timing when the normal symbol change display time has elapsed (the timing at which the value of the general symbol display symbol update timer has changed from 1 to 0), if the hit flag is on, the hit symbol is displayed. The normal symbol display device 210 is controlled so that the 7-segment LED constituting the normal symbol display device 210 is turned on / off, and when the hit flag is off, the normal symbol display device 210 is configured to be in the off symbol display mode. 7 segment LED on / off drive control is performed. Further, the RAM 308 of the main control unit 300 is provided with a setting area for performing various settings in various processes, not limited to the normal state update process. Here, the above-described lighting / extinguishing drive control is performed, and the setting area is set to indicate that the normal stop display is being performed. By performing this control, the normal symbol display device 210 determines the symbol of either the winning symbol (general symbol A shown in FIG. 76 (c)) or the off symbol (general symbol B shown in FIG. 76 (c)). Display. Thereafter, information indicating the stop period is set in a storage area of a normal stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 msec). With this setting, the symbol that has been confirmed and displayed is stopped and displayed for a predetermined period, and the player is notified of the result of the normal game.

また、普図変動遊技の結果が当りであれば、後述するように、普図当りフラグがオンされる。この普図当りフラグがオンの場合には、所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)における普図状態更新処理では、RAM308の設定領域に普図作動中を設定するとともに、所定の開放期間(例えば2秒間)、第2特図始動口232の羽根部材232aの開閉駆動用のソレノイド(332)に、羽根部材232aを開放状態に保持する信号を出力するとともに、RAM308に設けた羽根開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。   Further, if the result of the usual figure variable game is a hit, the usual figure hit flag is turned on as will be described later. When the usual figure hit flag is on, in the usual figure state update process at the timing when the predetermined stop display period ends (when the usual figure stop time management timer value changes from 1 to 0), The normal operation is set in the setting area, and the blade member 232a is opened to a solenoid (332) for opening and closing the blade member 232a of the second special figure starting port 232 for a predetermined opening period (for example, 2 seconds). And a signal indicating the open period is set in the storage area of the blade open time management timer provided in the RAM 308.

また、所定の開放期間が終了したタイミング(羽根開放時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、所定の閉鎖期間(例えば500m秒間)、羽根部材の開閉駆動用のソレノイド332に、羽根部材を閉鎖状態に保持する信号を出力するとともに、RAM308に設けた羽根閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。   In the usual state update process that starts at the timing when the predetermined opening period ends (the timing when the value of the blade opening time management timer is changed from 1 to 0), the blade member has a predetermined closing period (for example, 500 milliseconds). A signal for holding the blade member in the closed state is output to the opening / closing drive solenoid 332, and information indicating the closing period is set in the storage area of the blade closing time management timer provided in the RAM 308.

また、所定の閉鎖期間が終了したタイミング(羽根閉鎖時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、RAM308の設定領域に普図非作動中を設定する。さらに、普図変動遊技の結果が外れであれば、後述するように、普図外れフラグがオンされる。この普図外れフラグがオンの場合には、上述した所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)における普図状態更新処理でも、RAM308の設定領域に普図非作動中を設定する。普図非作動中の場合における普図状態更新処理では、何もせずに次のステップS8223に移行するようにしている。   Further, in the normal state update process that starts at the timing when the predetermined closing period ends (when the value of the blade closing time management timer is changed from 1 to 0), the non-operating state is set in the setting area of the RAM 308. To do. Furthermore, if the result of the usual figure fluctuation game is out, the usual figure out flag is turned on as will be described later. When the off-normal flag is on, the normal state update process at the timing when the predetermined stop display period described above ends (the timing at which the normal stop time management timer value changes from 1 to 0) In the setting area of the RAM 308, normal operation inactive is set. In the general state update process in the case where the general map is not in operation, nothing is done and the process proceeds to the next step S8223.

ステップS8223では、普図関連抽選処理を行う。この普図関連抽選処理では、普図変動遊技および第2特図始動口232の開閉制御を行っておらず(普図の状態が非作動中)、且つ、保留している普図変動遊技の数が1以上である場合に、上述の乱数値記憶領域に記憶している普図当選乱数値に基づいた乱数抽選により普図変動遊技の結果を当選とするか、不当選とするかを決定する当り判定をおこない、当選とする場合にはRAM308に設けた当りフラグにオンを設定する。不当選の場合には、当りフラグにオフを設定する。また、当り判定の結果に関わらず、次に上述の普図タイマ乱数値生成用の乱数カウンタの値を普図タイマ乱数値として取得し、取得した普図タイマ乱数値に基づいて複数の変動時間のうちから普図表示装置210に普図を変動表示する時間を1つ選択し、この変動表示時間を、普図変動表示時間として、RAM308に設けた普図変動時間記憶領域に記憶する。なお、保留している普図変動遊技の数は、RAM308に設けた普図保留数記憶領域に記憶するようにしており、当り判定をするたびに、保留している普図変動遊技の数から1を減算した値を、この普図保留数記憶領域に記憶し直すようにしている。また当り判定に使用した乱数値を消去する。   In step S8223, a general drawing related lottery process is performed. In this general map-related lottery process, the open / close control of the general map variable game and the second special map start port 232 is not performed (the state of the general map is not in operation), and the pending general map variable game is not held. When the number is 1 or more, it is decided whether to win or not to win the result of the variable figure game by random lottery based on the random number value stored in the random number value storage area. When the winning judgment is made and the winning is made, the winning flag provided in the RAM 308 is set to ON. If unsuccessful, turn off the winning flag. Regardless of the result of the hit determination, next, the value of the random number counter for generating the normal figure timer random value is acquired as the normal figure timer random number value, and a plurality of fluctuation times are obtained based on the acquired general figure timer random number value. One time is selected for variably displaying the normal map on the general map display device 210, and this variable display time is stored as a normal map variable display time in a general map variable time storage area provided in the RAM 308. In addition, the number of pending general figure variable games is stored in the usual figure pending number storage area provided in the RAM 308, and from the number of pending custom figure variable games each time a hit determination is made. The value obtained by subtracting 1 is re-stored in the usual figure number-of-holds storage area. Also, the random number value used for the hit determination is deleted.

次いで、特図1および特図2それぞれについての特図状態更新処理を行うが、最初に、特図2についての特図状態更新処理(特図2状態更新処理)を行う(ステップS8225)。この特図2状態更新処理は、特図2の状態に応じて、次の8つの処理のうちの1つの処理を行う。例えば、特図2変動表示の途中(上述の特図2表示図柄更新タイマの値が1以上)における特図2状態更新処理では、第2特別図柄表示装置214を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。この制御を行うことで、第2特別図柄表示装置214は特図2の変動表示(特図2変動遊技)を行う。   Next, the special figure state update process for each of the special figure 1 and the special figure 2 is performed. First, the special figure state update process (the special figure 2 state update process) for the special figure 2 is performed (step S8225). In the special figure 2 state update process, one of the following eight processes is performed in accordance with the state of the special figure 2. For example, in the special figure 2 state update process in the middle of the special figure 2 fluctuation display (the value of the above-mentioned special figure 2 display symbol update timer is 1 or more), the 7-segment LED constituting the second special symbol display device 214 is turned on. Performs lighting / extinguishing drive control that repeatedly turns off. By performing this control, the second special symbol display device 214 performs the variable display of the special figure 2 (special figure 2 variable game).

また、コマンド設定送信処理(ステップS8233)で回転開始設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶してから処理を終了する。   Further, predetermined transmission information indicating that the rotation start setting transmission process is to be executed in the command setting transmission process (step S8233) is additionally stored in the above-described transmission information storage area, and then the process ends.

また、主制御部300のRAM308には、15R大当りフラグ、2R大当りフラグ、第1小当りフラグ、第2小当りフラグ、第1はずれフラグ、第2はずれフラグ、特図確率変動フラグ、および普図確率変動フラグそれぞれのフラグが用意されている。特図2変動表示時間が経過したタイミング(特図2表示図柄更新タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、15R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグもオンの場合には図76(a)に示す特図A、15R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグはオンの場合には特図B、2R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグもオンの場合には特図C、2R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグはオンの場合には特図D、2R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグはオンの場合には特図E、2R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグもオフの場合には特図F、第1小当りフラグがオンの場合には特図G、第2小当りフラグがオンの場合には特図H、第1はずれフラグがオンの場合には特図I、第2はずれフラグがオンの場合には特図Iそれぞれの態様となるように、第2特別図柄表示装置214を構成する7セグメントLEDの点灯・消灯駆動制御を行い、RAM308の設定領域に特図2停止表示中であることを表す設定を行う。この制御を行うことで、第2特別図柄表示装置214は、15R特別大当り図柄(特図A)、15R大当り図柄(特図B)、突然確変図柄(特図C)、突然時短図柄(特図D)、隠れ確変図柄(特図E)、突然通常図柄(特図F)、第1小当り図柄(特図G)、第2小当り図柄(特図H)、第1はずれ図柄(特図I)、および第2はずれ図柄(特図J)のいずれか一つの図柄の確定表示を行う。さらにその後、所定の停止表示期間(例えば500m秒間)その表示を維持するためにRAM308に設けた特図2停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により、確定表示された特図2が所定期間停止表示され、特図2変動遊技の結果が遊技者に報知される。また、RAM308に設けられた時短回数記憶部に記憶された時短回数が1以上であれば、その時短回数から1を減算し、減算結果が1から0となった場合は、特図確率変動中(詳細は後述)でなければ、時短フラグをオフする。さらに、大当り遊技中(特別遊技状態中)にも、時短フラグをオフする。   Further, the RAM 308 of the main control unit 300 includes a 15R big hit flag, a 2R big hit flag, a first small hit flag, a second small hit flag, a first off flag, a second off flag, a special figure probability variation flag, and a normal figure. A flag for each probability variation flag is prepared. In the special figure 2 state update process starting at the timing when the special figure 2 fluctuation display time has elapsed (the timing when the special figure 2 display symbol update timer value has changed from 1 to 0), the 15R big hit flag is on, and the special figure probability fluctuation When the flag is also on and the normal figure probability fluctuation flag is on, the special figure A and 15R jackpot flag shown in FIG. 76 (a) are on, the special figure probability fluctuation flag is off, and the common figure probability fluctuation flag is on. When the special figure B, 2R big hit flag is on, the special figure probability fluctuation flag is on, and the general figure probability fluctuation flag is also on, the special figure C, 2R big hit flag is on, the special figure probability fluctuation flag is off, When the probability fluctuation flag is on, the special figure D, 2R jackpot flag is on, the special figure probability fluctuation flag is on, and when the common figure probability fluctuation flag is on, the special figure E, 2R jackpot flag is on, special chart Probability flag is off, normal When the probability variation flag is also off, special figure F, when the first small hit flag is on, special figure G, when the second small hit flag is on, special figure H, and the first off flag are on In such a case, the 7-segment LED constituting the second special symbol display device 214 is controlled to be turned on / off so that the special figure I and the second off flag are turned on, respectively, so that the special figure I is in the respective mode. A setting indicating that the special figure 2 stop display is in progress is made in the setting area of the RAM 308. By performing this control, the second special symbol display device 214 has a 15R special jackpot symbol (special symbol A), a 15R jackpot symbol (special symbol B), a sudden probability variation symbol (special symbol C), and a sudden time-short symbol symbol (special symbol). D), hidden probability variation (special E), suddenly normal (special F), first small hit (special G), second small hit (special H), first off symbol (special) Any one of the symbols I) and the second off-set symbol (special symbol J) is confirmed and displayed. After that, information indicating the stop period is set in the storage area of the special figure 2 stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 milliseconds). With this setting, the specially displayed special figure 2 is stopped and displayed for a predetermined period, and the result of the special figure 2 variable game is notified to the player. In addition, if the time reduction number stored in the time reduction number storage unit provided in the RAM 308 is 1 or more, 1 is subtracted from the time reduction number, and if the subtraction result becomes 1 to 0, the special figure probability is changing. If not (details will be described later), the time reduction flag is turned off. Further, the hourly flag is also turned off during the big hit game (in the special game state).

また、コマンド設定送信処理(ステップS8233)で回転停止設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶するとともに、変動表示を停止する図柄が特図2であることを示す特図2識別情報を、後述するコマンドデータに含める情報としてRAM308に追加記憶してから処理を終了する。   Further, the special transmission information indicating that the rotation stop setting transmission process is executed in the command setting transmission process (step S8233) is additionally stored in the above-described transmission information storage area, and the design for stopping the variable display is shown in FIG. The special figure 2 identification information indicating the presence is additionally stored in the RAM 308 as information to be included in command data, which will be described later, and the processing is terminated.

また、特図2変動遊技の結果が大当りであれば、後述するように、大当りフラグがオンされる。この大当りフラグがオンの場合には、所定の停止表示期間が終了したタイミング(特図2停止時間管理用タイマの値が1から0になったタイミング)における特図2状態更新処理では、RAM308の設定領域に特図2作動中を設定するとともに、所定の入賞演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを開始することを遊技者に報知する画像を表示している期間待機するためにRAM308に設けた特図2待機時間管理用タイマの記憶領域に入賞演出期間を示す情報を設定する。また、コマンド設定送信処理(ステップS8233)で入賞演出設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   If the result of the special figure 2 variable game is a big hit, the big hit flag is turned on as will be described later. When the jackpot flag is on, in the special figure 2 state update process at the timing when the predetermined stop display period ends (the timing when the special figure 2 stop time management timer value changes from 1 to 0), the RAM 308 In the setting area, the special figure 2 is in operation and waits for a predetermined winning effect period (for example, 3 seconds), that is, a period during which an image for notifying the player that the big win by the decorative symbol display device 208 is started is displayed. Therefore, information indicating the winning effect period is set in the storage area of the special figure 2 standby time management timer provided in the RAM 308. In addition, predetermined transmission information indicating that the winning effect setting transmission process is executed in the command setting transmission process (step S8233) is additionally stored in the transmission information storage area.

また、所定の入賞演出期間が終了したタイミング(特図2待機時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、所定の開放期間(例えば29秒間、または可変入賞口234に所定球数(例えば10球)の遊技球の入賞を検出するまで)可変入賞口234の扉部材234aの開閉駆動用のソレノイド(332)に、扉部材234aを開放状態に保持する信号を出力するとともに、RAM308に設けた扉開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。また、コマンド設定送信処理(ステップS8233)で大入賞口開放設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   Further, in the special figure 2 state update process that starts at the timing when the predetermined winning effect period ends (the timing when the value of the special figure 2 standby time management timer changes from 1 to 0), a predetermined release period (for example, 29 seconds) Alternatively, the door member 234a is opened to the solenoid (332) for opening and closing the door member 234a of the variable prize opening 234 until a winning of a predetermined number of balls (for example, 10 balls) is detected at the variable prize opening 234. In addition to outputting a signal to be held at the same time, information indicating the opening period is set in the storage area of the door opening time management timer provided in the RAM 308. In addition, predetermined transmission information indicating that the special winning opening release setting transmission process is executed in the command setting transmission process (step S8233) is additionally stored in the transmission information storage area.

また、所定の開放期間が終了したタイミング(扉開放時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、所定の閉鎖期間(例えば1.5秒間)可変入賞口234の扉部材234aの開閉駆動用のソレノイド(332)に、扉部材234aを閉鎖状態に保持する信号を出力するとともに、RAM308に設けた扉閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。また、コマンド設定送信処理(ステップS8233)で大入賞口閉鎖設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   In the special figure 2 state update process that starts at the timing when the predetermined opening period ends (the timing when the door opening time management timer value changes from 1 to 0), the predetermined closing period (for example, 1.5 seconds) A signal for holding the door member 234a in a closed state is output to a solenoid (332) for opening and closing the door member 234a of the variable prize opening 234, and a closing period is stored in a storage area of a door closing time management timer provided in the RAM 308. Set the information indicating. In addition, predetermined transmission information indicating that the special winning opening closing setting transmission process is executed in the command setting transmission process (step S8233) is additionally stored in the transmission information storage area.

また、この扉部材の開放・閉鎖制御を所定回数(本実施例では15ラウンドか2ラウンド)繰り返し、終了したタイミングで開始する特図2状態更新処理では、所定の終了演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを終了することを遊技者に報知する画像を表示している期間待機するように設定するためにRAM308に設けた演出待機時間管理用タイマの記憶領域に演出待機期間を示す情報を設定する。また、普図確率変動フラグがオンに設定されていれば、この大当り遊技の終了と同時に、RAM308に設けられた時短回数記憶部に時短回数100回をセットするともに、RAM308に設けられた時短フラグをオンする。なお、その普図確率変動フラグがオフに設定されていれば、時短回数記憶部に時短回数をセットすることもなく、また時短フラグをオンすることもない。ここにいう時短とは、特図変動遊技における大当りを終了してから、次の大当りを開始するまでの時間を短くするため、パチンコ機が遊技者にとって有利な状態になることをいう。この時短フラグがオンに設定されていると、普図高確率状態である。普図高確率状態では普図低確率状態に比べて、普図変動遊技に大当りする可能性が高い。また、普図高確率状態の方が、普図低確率状態に比べて普図変動遊技の変動時間および特図変動遊技の変動時間は短くなる。さらに、普図高確率状態では普図低確率状態に比べて、第2特別始動口232の一対の羽根部材232aの1回の開放における開放時間が長くなりやすい。加えて、普図高確率状態では普図低確率状態に比べて、一対の羽根部材232aは多く開きやすい。また、上述のごとく、時短フラグは、大当り遊技中(特別遊技状態中)にはオフに設定される。したがって、大当り遊技中には、普図低確率状態が維持される。これは、大当り遊技中に普図高確率状態であると、大当り遊技中に可変入賞口234に所定の個数、遊技球が入球するまでの間に第2特図始動口232に多くの遊技球が入球し、大当り中に獲得することができる遊技球の数が多くなってしまい射幸性が高まってしまうという問題があり、これを解決するためのものである。   In addition, in the special figure 2 state update process that starts at the timing when the door member opening / closing control is repeated a predetermined number of times (15 rounds or 2 rounds in this embodiment) and finished, a predetermined end effect period (eg, 3 seconds) In other words, the effect waiting period is stored in the storage area of the effect waiting time management timer provided in the RAM 308 in order to set to wait for a period during which an image for informing the player that the big hit by the decorative symbol display device 208 is to be ended is displayed. Set the information indicating. Also, if the normal probability fluctuation flag is set to ON, at the same time as the end of the big hit game, the time reduction number 100 is set in the time reduction number storage unit provided in the RAM 308, and the time reduction flag provided in the RAM 308 is set. Turn on. If the usual time probability variation flag is set to OFF, the time reduction number is not set in the time reduction number storage unit, and the time reduction flag is not turned ON. The short time here means that the pachinko machine is in an advantageous state for the player in order to shorten the time from the end of the big hit in the special figure variable game to the start of the next big hit. If the short time flag is set to ON at this time, it is a normal high probability state. There is a higher probability of hitting a general-purpose variable game in the high-probability state than in the low-probability state. In addition, the fluctuation time of the normal figure variable game and the fluctuation time of the special figure variable game are shorter in the normal figure high probability state than in the normal figure low probability state. Further, in the normal high probability state, the opening time in one opening of the pair of blade members 232a of the second special start port 232 tends to be longer than in the normal low probability state. In addition, the pair of blade members 232a are more likely to open in the normal high probability state than in the normal low probability state. In addition, as described above, the hourly flag is set to off during the big hit game (in the special game state). Therefore, the normal low probability state is maintained during the big hit game. This is because if the game is in a high probability state during a big hit game, a large number of games will be placed in the second special figure starting port 232 until a predetermined number of game balls are entered during the big win game. There is a problem that a ball enters and the number of game balls that can be acquired during a big hit increases, resulting in an increase in euphoria. This is to solve this problem.

さらに、コマンド設定送信処理(ステップS8233)で終了演出設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   Further, predetermined transmission information indicating that the end effect setting transmission process is executed in the command setting transmission process (step S8233) is additionally stored in the transmission information storage area.

また、所定の終了演出期間が終了したタイミング(演出待機時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、RAM308の設定領域に特図2非作動中を設定する。さらに、特図2変動遊技の結果が外れであれば、後述するように、はずれフラグがオンされる。このはずれフラグがオンの場合には、上述した所定の停止表示期間が終了したタイミング(特図2停止時間管理用タイマの値が1から0になったタイミング)における特図2状態更新処理でも、RAM308の設定領域に特図2非作動中を設定する。特図2非作動中の場合における特図2状態更新処理では、何もせずに次のステップS8227に移行するようにしている。   In the special figure 2 state update process that starts at the timing when the predetermined end production period ends (the timing when the production standby time management timer value changes from 1 to 0), the special figure 2 is not activated in the setting area of the RAM 308. Set medium. Further, if the result of the special figure 2 variable game is out of the way, the off flag is turned on as will be described later. In the case where the miss flag is on, even in the special figure 2 state update process at the timing when the predetermined stop display period described above ends (the timing when the special figure 2 stop time management timer value changes from 1 to 0), In the setting area of the RAM 308, special figure 2 inactive is set. In the special figure 2 state update process when the special figure 2 is not in operation, nothing is done and the process proceeds to the next step S8227.

続いて、特図1についての特図状態更新処理(特図1状態更新処理)を行う(ステップS8227)。この特図1状態更新処理では、特図1の状態に応じて、上述の特図2状態更新処理で説明した各処理を行う。この特図1状態更新処理で行う各処理は、上述の特図2状態更新処理で説明した内容の「特図2」を「特図1」と読み替えた処理と同一であるため、その説明は省略する。なお、特図2状態更新処理と特図1状態更新処理の順番は逆でもよい。   Subsequently, special figure state update processing (special figure 1 state update process) for special figure 1 is performed (step S8227). In the special figure 1 state update process, each process described in the special figure 2 state update process is performed according to the state of the special figure 1. Each process performed in the special figure 1 state update process is the same as the process in which “special figure 2” in the contents described in the special figure 2 state update process is replaced with “special figure 1”. Omitted. The order of the special figure 2 state update process and the special figure 1 state update process may be reversed.

ステップS8225およびステップS8227における特図状態更新処理が終了すると、今度は、特図1および特図2それぞれについての特図関連抽選処理を行う。ここでも先に、特図2についての特図関連抽選処理(特図2関連抽選処理)を行い(ステップS8229)、その後で、特図1についての特図関連抽選処理(特図1関連抽選処理)を行う(ステップS8231)。これらの特図関連抽選処理についても、主制御部300が特図2関連抽選処理を特図1関連抽選処理よりも先に行うことで、特図2変動遊技の開始条件と、特図1変動遊技の開始条件が同時に成立した場合でも、特図2変動遊技が先に変動中となるため、特図1変動遊技は変動を開始しない。また、装飾図柄表示装置208による、特図変動遊技の大当り判定の結果の報知は、第1副制御部400によって行われ、第2特図始動口232への入賞に基づく抽選の抽選結果の報知が、第1特図始動口230への入賞に基づく抽選の抽選結果の報知よりも優先して行われる。   When the special figure state update process in step S8225 and step S8227 is completed, a special figure related lottery process for each of special figure 1 and special figure 2 is performed. Also here, the special figure related lottery process (special figure 2 related lottery process) for special figure 2 is performed first (step S8229), and then the special figure related lottery process for special figure 1 (special figure 1 related lottery process). ) Is performed (step S8231). Also for these special drawing related lottery processes, the main control unit 300 performs the special figure 2 related lottery processing before the special figure 1 related lottery processing, so that the special figure 2 variable game start condition and the special figure 1 fluctuation Even if the game start conditions are satisfied at the same time, since the special figure 2 variable game is changing first, the special figure 1 variable game does not start changing. Further, the notification of the result of the jackpot determination of the special figure variable game by the decorative symbol display device 208 is performed by the first sub-control unit 400, and the lottery result of the lottery based on the winning at the second special figure starting port 232 is notified. However, it is performed in preference to the notification of the lottery result of the lottery based on the winning at the first special figure starting port 230.

ステップS8232では、デバイス監視処理を実行する(詳細は後述)。   In step S8232, device monitoring processing is executed (details will be described later).

ステップS8233では、コマンド設定送信処理を行い、各種のコマンド(例えば、ステップS8232のデバイス監視処理で特定異常があった場合は、特定異常を示す信号)が第1副制御部400に送信される。なお、第1副制御部400に送信する出力予定情報は例えば16ビットで構成しており、ビット15はストローブ情報(オンの場合、データをセットしていることを示す)、ビット11〜14はコマンド種別(本実施形態では、基本コマンド、図柄変動開始コマンド、図柄変動停止コマンド、入賞演出開始コマンド、終了演出開始コマンド、大当りラウンド数指定コマンド、復電コマンド、FRAM(登録商標)クリアコマンドなどコマンドの種類を特定可能な情報)、ビット0〜10はコマンドデータ(コマンド種別に対応する所定の情報)で構成している。   In step S8233, command setting transmission processing is performed, and various commands (for example, a signal indicating a specific abnormality when there is a specific abnormality in the device monitoring process in step S8232) are transmitted to the first sub-control unit 400. The output schedule information to be transmitted to the first sub-control unit 400 is composed of 16 bits, for example, bit 15 is strobe information (indicating that data is set when ON), bits 11 to 14 are Command type (in this embodiment, commands such as basic command, symbol variation start command, symbol variation stop command, winning effect start command, end effect start command, jackpot round number designation command, power recovery command, FRAM (registered trademark) clear command, etc. Bits 0 to 10 are composed of command data (predetermined information corresponding to the command type).

具体的には、ストローブ情報は上述のコマンド送信処理でオン、オフするようにしている。また、コマンド種別が図柄変動開始コマンドの場合であればコマンドデータに、15R大当りフラグや2R大当りフラグの値、特図確率変動フラグの値、特図関連抽選処理で選択したタイマ番号などを示す情報を含み、図柄変動停止コマンドの場合であれば、15R大当りフラグや2R大当りフラグの値、特図確率変動フラグの値などを含み、入賞演出コマンドおよび終了演出開始コマンドの場合であれば、特図確率変動フラグの値などを含み、大当りラウンド数指定コマンドの場合であれば特図確率変動フラグの値、大当りラウンド数などを含むようにしている。コマンド種別が基本コマンドを示す場合は、コマンドデータにデバイス情報、第1特図始動口230への入賞の有無、第2特図始動口232への入賞の有無、可変入賞口234への入賞の有無などを含む。   Specifically, the strobe information is turned on and off in the command transmission process described above. If the command type is a symbol variation start command, the command data includes information such as the value of the 15R jackpot flag or 2R jackpot flag, the value of the special figure probability variation flag, the timer number selected in the special figure related lottery process, and the like. In the case of the symbol variation stop command, the value of the 15R jackpot flag, the 2R jackpot flag, the value of the special figure probability variation flag, and the like are included. In the case of a jackpot round number designation command, the value of the special variation probability flag, the number of jackpot rounds, and the like are included. When the command type indicates a basic command, device information in the command data, presence / absence of winning at the first special figure starting port 230, presence / absence of winning at the second special figure starting port 232, winning of the variable winning port 234 Includes presence or absence.

また、上述の回転開始設定送信処理では、コマンドデータにRAM308に記憶している、15R大当りフラグや2R大当りフラグの値、特図確率変動フラグの値、特図1関連抽選処理および特図2関連抽選処理で選択したタイマ番号、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の回転停止設定送信処理では、コマンドデータにRAM308に記憶している、15R大当りフラグや2R大当りフラグの値、特図確率変動フラグの値などを示す情報を設定する。上述の入賞演出設定送信処理では、コマンドデータに、RAM308に記憶している、入賞演出期間中に装飾図柄表示装置208・各種ランプ418・スピーカ120に出力する演出制御情報、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の終了演出設定送信処理では、コマンドデータに、RAM308に記憶している、演出待機期間中に装飾図柄表示装置208・各種ランプ418・スピーカ120に出力する演出制御情報、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の大入賞口開放設定送信処理では、コマンドデータにRAM308に記憶している大当りラウンド数、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の大入賞口閉鎖設定送信処理では、コマンドデータにRAM308に記憶している大当りラウンド数、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。また、このステップS8233では一般コマンド特図保留増加処理も行われる。この一般コマンド特図保留増加処理では、コマンドデータにRAM308の送信用情報記憶領域に記憶している特図識別情報(特図1または特図2を示す情報)、予告情報(事前予告情報、偽事前予告情報、または事前予告無情報のいずれか)を設定する。   In the rotation start setting transmission process described above, the value of the 15R big hit flag or 2R big hit flag, the value of the special figure probability variation flag, the special figure 1 related lottery process, and the special figure 2 related are stored in the RAM 308 as command data. Information indicating the timer number selected in the lottery process, the number of the first special figure variable game or the second special figure variable game held, etc. is set. In the rotation stop setting transmission process described above, information indicating the value of the 15R big hit flag, the value of the 2R big hit flag, the value of the special figure probability variation flag, etc. stored in the RAM 308 is set in the command data. In the winning effect setting transmission process described above, the command control data stored in the RAM 308, the effect control information output to the decorative symbol display device 208, various lamps 418, and the speaker 120 during the winning effect period, the special figure probability variation flag Information indicating the value, the number of the first special figure variable game or the second special figure variable game being held, etc. is set. In the above-described end effect setting transmission process, the command control data stored in the RAM 308, the effect control information output to the decorative symbol display device 208, various lamps 418, and the speaker 120 during the effect standby period, the special figure probability variation flag Information indicating the value, the number of the first special figure variable game or the second special figure variable game being held, etc. is set. In the above-described large winning opening release setting transmission process, the number of big hits stored in the RAM 308 in the command data, the value of the special figure probability variation flag, the pending first special figure variation game or the second special figure variation game is stored. Set information such as number. In the above-mentioned big winning opening closing setting transmission process, the number of big hits stored in the RAM 308 in the command data, the value of the special figure probability variation flag, the pending first special figure variation game or the second special figure variation game is stored. Set information such as number. In step S8233, general command special figure hold increase processing is also performed. In this general command special figure pending increase process, special figure identification information (information showing special figure 1 or special figure 2) stored in the transmission information storage area of the RAM 308, command notice information (preliminary notice information, false) Set either advance notice information or no advance notice information).

第1副制御部400では、受信した出力予定情報に含まれるコマンド種別により、主制御部300における遊技制御の変化に応じた演出制御の決定が可能になるとともに、出力予定情報に含まれているコマンドデータの情報に基づいて、演出制御内容を決定することができるようになる。   In the first sub-control unit 400, it is possible to determine the production control according to the change of the game control in the main control unit 300 by the command type included in the received output schedule information, and it is included in the output schedule information. Based on the information of the command data, the contents of effect control can be determined.

ステップS8235では、外部出力信号設定処理を行う。具体的には、外部端子板信号や試射試験信号などを設定する。また、ステップS8232のデバイス監視処理で特定異常があった場合は、特定異常を示す信号を設定する。この外部出力信号設定処理では、RAM308に記憶している遊技情報を、情報出力回路336を介してパチンコ機100とは別体の情報入力回路350に出力する。   In step S8235, external output signal setting processing is performed. Specifically, an external terminal board signal, a test fire test signal, and the like are set. If there is a specific abnormality in the device monitoring process in step S8232, a signal indicating the specific abnormality is set. In this external output signal setting process, the game information stored in the RAM 308 is output to the information input circuit 350 separate from the pachinko machine 100 via the information output circuit 336.

ステップS8239では、低電圧信号がオンであるか否かを監視する。そして、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS8243に進み、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS8241に進む。   In step S8239, it is monitored whether or not the low voltage signal is on. If the low-voltage signal is on (when power-off is detected), the process proceeds to step S8243. If the low-voltage signal is off (when power-off is not detected), the process proceeds to step S8241.

ステップS8241では、タイマ割込終了処理を行う。このタイマ割込終了処理では、ステップS8201で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割込許可の設定などを行い、その後、図312に示す主制御部メイン処理に復帰する。   In step S8241, timer interrupt end processing is performed. In this timer interrupt end process, the value of each register temporarily saved in step S8201 is set in each original register, interrupt permission is set, etc., and then main control unit main process shown in FIG. 312 is performed. Return to.

一方、ステップS8243では、復電時に電断時の状態に復帰するための特定の変数やスタックポインタを復帰データとしてRAM308の所定の領域に退避し、入出力ポートの初期化等の電断処理を行い、その後、上述の主制御部メイン処理に復帰する。   On the other hand, in step S8243, a specific variable or stack pointer for returning to the power-off state at the time of power recovery is saved as a return data in a predetermined area of the RAM 308, and power-off processing such as initialization of input / output ports is performed. Then, the process returns to the main process of the main control unit described above.

なお、デバイス監視処理(ステップS8232)で監視するエラーとしては、次に示すようなものが考えられる。   The following errors can be considered as errors monitored in the device monitoring process (step S8232).

エラー種別として、下受け皿満タンエラー(下皿満タンエラー)、払出装置エラー、払出超過エラー、不正払出エラー、払出個数スイッチエラー、主制御通信エラー、CRユニット未接続エラー、CRユニット通信エラー、磁気異常エラー、外部クロック異常エラー、磁界異常エラー、スイッチレベル異常エラー、枠開放エラー(前面枠扉開放エラー)、スイッチ未接続エラー、衝撃センサエラーなどがある。なお、これらのエラーうち、下受け皿満タンエラー等は、遊技機内に封入された遊技球を循環使用する封入式遊技機には適用されない。   The error types are: tray full tank error (bottom full tank error), payout device error, payout excess error, payout error, payout number switch error, main control communication error, CR unit disconnected error, CR unit communication error, magnetic error Error, external clock error, magnetic field error, switch level error, frame open error (front frame door open error), switch disconnection error, shock sensor error, etc. Of these errors, the underfill full tank error or the like is not applied to an enclosed game machine that circulates and uses game balls enclosed in the game machine.

下受け皿満タンエラーとは、下皿満タンスイッチ信号のオン状態が、メイン基板の所定の入力ポートによってタイマ割り込みでオンを1回読み込んだとき(オフ状態からオン状態に切り換わるとき)にメインから払出に出力されるものである。   The bottom pan full tank error is when the on state of the bottom pan full switch signal is read from the main when the timer interrupt is read once by the predetermined input port of the main board (when switching from the off state to the on state). It is output for payout.

払出装置エラーとは、払出モータが払出要求数分の駆動を終了後(実際は+ブレーキ期間+無励磁期間経過後)の次の割り込み内で、払出数(払出個数スイッチのカウント数)が払出要求数よりも少ない場合に払出装置エラーの発生を検知するものである。1個ずつ遊技球を払い出すリトライ処理が完了することにより、当該エラー状態が解除される。   The payout device error means that the payout number (count number of the payout number switch) is the payout request within the next interrupt after the payout motor finishes driving the number of payout requests (actually + brake period + non-excitation period has elapsed). When the number is smaller than the number, the occurrence of a payout device error is detected. When the retry process of paying out the game balls one by one is completed, the error state is canceled.

払出超過エラーとは、払出要求数に対して実際に払い出された遊技球が10個多く検知されたとき払出動作を停止するものである。この払出超過エラーは、エラー解除スイッチ168によって解除するエラーであり、エラー解除スイッチ168を操作するか、RAMクリアスイッチ180による初期化(RAMクリア)によって当該エラー状態が解除される。   The payout excess error is to stop the payout operation when ten game balls actually paid out with respect to the payout request number are detected. This payout excess error is an error to be canceled by the error cancel switch 168, and the error state is canceled by operating the error cancel switch 168 or by initialization (RAM clear) by the RAM clear switch 180.

不正払出エラーとは、払出要求が発生していない状態で遊技球の払出を検知(払出個数スイッチがカウント)したとき払出動作を停止するものである。この不正払出エラーは、エラー解除スイッチ168によって解除するエラーであり、エラー解除スイッチ168を操作するか、RAMクリアスイッチ180による初期化(RAMクリア)によって当該エラー状態が解除される。   The illegal payout error is to stop the payout operation when the payout of the game ball is detected (the payout number switch is counted) in a state where no payout request is generated. This illegal payout error is an error to be canceled by the error cancel switch 168, and the error state is canceled by operating the error cancel switch 168 or by initialization (RAM clear) by the RAM clear switch 180.

払出個数スイッチエラーとは、払出基板170に制御される遊技球の払出個数スイッチ(不図示)のエラーであり、払出個数スイッチの接続異常を検知したとき(メイン基板は関係なし)払出動作を停止するものである。この払出個数スイッチエラーは、エラー解除スイッチ168によって解除するエラーであり、スイッチの接続が正しいか確認した後、エラー解除スイッチ168を操作するか、RAMクリアスイッチ180による初期化(RAMクリア)によって当該エラー状態が解除される。   The payout number switch error is an error of the payout number switch (not shown) of the game ball controlled by the payout board 170, and stops the payout operation when an abnormal connection of the payout number switch is detected (regardless of the main board). To do. This payout number switch error is an error to be canceled by the error cancel switch 168. After confirming whether the switch is connected correctly, the error cancel switch 168 is operated, or the RAM clear switch 180 is initialized (RAM clear). The error state is released.

主制御通信エラーとは、主制御接続確認信号のオフ状態を検知した場合、または主制御動作確認信号のオン状態を2割り込み継続して検知した場合に発生するエラーであり、メイン基板からのコマンド受信が不能になるものである。但し、払出要求数が残存している場合は、その分までは払い出す。主制御接続確認信号のオン状態を検知した場合で、かつ、主制御動作確認信号のオフ状態を2割り込み継続して検知した場合に当該エラー状態が解除される。   The main control communication error is an error that occurs when the main control connection confirmation signal OFF state is detected or when the main control operation confirmation signal ON state is detected continuously for two interrupts. Reception is impossible. However, if the number of payout requests remains, the payout is made up to that amount. When the ON state of the main control connection confirmation signal is detected, and when the OFF state of the main control operation confirmation signal is detected continuously for two interrupts, the error state is canceled.

CRユニット未接続エラーとは、CRユニット未接続エラーが解除状態のときに、CRユニット接続信号(VL信号)のオフ状態を検知し、16ms継続した場合に発生するものであり、貸出停止(賞球の払出には影響なし)となるものである。CRユニット接続信号のON状態を検知し、16ms継続した場合に当該エラー状態が解除される。なお、エラー解除した後、CRユニットREADY信号(BRDY信号)およびCRユニット貸出要求完了確認信号(BRQ信号)がオフ状態となるまでCRユニットとの通信が無効状態になる。   The CR unit unconnected error occurs when the CR unit connection signal (VL signal) is off when the CR unit unconnected error is released and continues for 16 ms. There is no effect on the payout of the ball). When the ON state of the CR unit connection signal is detected and continued for 16 ms, the error state is canceled. After the error is released, communication with the CR unit is disabled until the CR unit READY signal (BRDY signal) and the CR unit lending request completion confirmation signal (BRQ signal) are turned off.

ここで、CRユニットとインタフェースの接続信号関係について説明する。各種信号が、CRユニットからインタフェースを介して払出基板へと伝達される場合、CRユニット接続信号とは、CRユニット内の+18V電源からなるVL信号である。CRユニットREADY信号とは、CRユニットが貸し出しの処理中であることを伝達するBRDY信号である。CRユニット貸出要求確認信号とは、CRユニットが基本単位分25個の貸出要求と貸出指示を伝達するBRQ信号である。   Here, the connection signal relationship between the CR unit and the interface will be described. When various signals are transmitted from the CR unit to the payout board via the interface, the CR unit connection signal is a VL signal composed of a + 18V power source in the CR unit. The CR unit READY signal is a BRDY signal that conveys that the CR unit is being lent. The CR unit lending request confirmation signal is a BRQ signal for transmitting 25 lending requests and lending instructions for the basic unit.

CRユニット通信エラーとは、貸出要求発生前にBRQ信号のオン状態を検知した場合に発生するものである(なお、他の条件もあるが、ここでは特に関係がないため割愛する)。遊技機側から通信異常を通知した後、BRDY信号およびBRQ信号をオフ状態にすることで当該エラー状態が解除される。   The CR unit communication error occurs when the ON state of the BRQ signal is detected before the lending request is generated (although there are other conditions, they are omitted because they are not particularly related here). After notifying the communication abnormality from the gaming machine side, the error state is canceled by turning off the BRDY signal and the BRQ signal.

磁気異常エラーとは、所定量を超える磁力を検出したとき主制御動作を停止するものである。外部クロック異常エラーとは、乱数更新用クロックに異常を検出した場合に発生するエラーである。磁界異常エラーとは、所定量を超える磁界を検出した場合に発生するエラーである。   The magnetic abnormality error is to stop the main control operation when a magnetic force exceeding a predetermined amount is detected. The external clock error is an error that occurs when an error is detected in the random number update clock. The magnetic field abnormality error is an error that occurs when a magnetic field exceeding a predetermined amount is detected.

スイッチレベル異常エラーとは、入賞スイッチを検出し、1s継続した場合に発生するエラーである。枠開放エラーとは、ガラス枠または内枠の開放を検出した場合に発生するエラーである。スイッチ未接続エラーとは、入賞スイッチ(不図示)のエラーであり、入賞スイッチの接続異常を検出した場合に発生するエラーである。   The switch level abnormality error is an error that occurs when a winning switch is detected and continued for 1 second. The frame opening error is an error that occurs when the opening of the glass frame or the inner frame is detected. The switch non-connection error is an error of a winning switch (not shown), and is an error that occurs when an abnormal connection of a winning switch is detected.

衝撃センサエラーとは、衝撃センサが所定量を超える衝撃を検出したとき電源断まで継続してエラーを報知するものである。
<デバイス監視処理>
The impact sensor error is an error notification that continues until the power is turned off when the impact sensor detects an impact exceeding a predetermined amount.
<Device monitoring processing>

次に、図315を用いて、主制御部300のCPU304が実行するデバイス監視処理について説明する。なお、同図は主制御部タイマ割込処理におけるデバイス監視処理の流れを示すフローチャートである。   Next, device monitoring processing executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of device monitoring processing in the main control unit timer interrupt processing.

ステップS8251では、上述のエラーの有無を示すデバイス情報を初期設定する。   In step S8251, device information indicating the presence / absence of the error is initialized.

ステップS8253では、信号状態記憶領域に記憶した各種センサの信号状態を読み出して、上述のエラーの有無を監視し、当該エラーを検出した場合に、ステップS8255に進む。一方、上述のエラーを検出しなかった場合には、当該デバイス監視処理を終了する。   In step S8253, the signal states of various sensors stored in the signal state storage area are read, the presence or absence of the above-described error is monitored, and if the error is detected, the process proceeds to step S8255. On the other hand, if the above error is not detected, the device monitoring process is terminated.

ステップS8255では、第1副制御部400に送信すべき送信情報に、ステップS8253で検出したエラーを示す異常情報(デバイス情報)を設定する。   In step S8255, abnormality information (device information) indicating the error detected in step S8253 is set in the transmission information to be transmitted to the first sub-control unit 400.

ステップS8257では、ステップS8255で設定した異常情報の中に、特定異常情報があるか否かを判定し、特定異常情報がある場合に、ステップS8257に進む。一方、特定異常情報がない場合に、ステップS8261に進む。なお、特定異常情報は、上述のエラーについての異常情報の中から、予め設定されている1つまたは複数のエラーの異常情報のことである。例えば、磁気異常エラーの異常情報を特定異常情報として予め設定しておいてもよい。   In step S8257, it is determined whether or not there is specific abnormality information in the abnormality information set in step S8255. If there is specific abnormality information, the process proceeds to step S8257. On the other hand, if there is no specific abnormality information, the process proceeds to step S8261. The specific abnormality information is abnormality information of one or a plurality of errors set in advance from the above-described abnormality information regarding errors. For example, abnormality information of a magnetic abnormality error may be set in advance as specific abnormality information.

ステップS8259では、特定異常検出フラグをオンにする。   In step S8259, the specific abnormality detection flag is turned on.

ステップS8261では、デバイスコマンド送信要求を設定する。   In step S8261, a device command transmission request is set.

次に、以上説明した実施形態7によるパチンコ機100の特徴的構成について説明する。   Next, a characteristic configuration of the pachinko machine 100 according to the seventh embodiment described above will be described.

(1)本実施の形態によるパチンコ機100は、 (1) The pachinko machine 100 according to the present embodiment

遊技に関する複数種類の遊技制御処理それぞれを、メイン制御(例えば、主制御部メイン処理)および所定の割込み周期ごとに行われる割込み制御(例えば、主制御部タイマ割込処理)のうちの、少なくともいずれか一方の制御において実行する遊技制御手段(たとえば、主制御部300、ユーザプログラム)と、   Each of the plurality of types of game control processes related to the game is performed by at least one of main control (for example, main control unit main process) and interrupt control (for example, main control unit timer interrupt process) performed at every predetermined interrupt cycle. Game control means (for example, main control unit 300, user program) executed in one of the controls,

前記遊技制御手段からの開始指示(例えば、自動起動処理または手動起動処理)を受けたことに基づいて経過時間の計測を開始し、該経過時間が特定時間(例えば、プログラム管理エリアに設定したタイムアウト時間)を超えたか否かを判定するとともに、該経過時間が特定時間を超えたと判定したことに基づいて前記遊技制御手段に対して復帰指示(例えば、内部バスへのタイムアウト信号の出力)を行い、前記遊技制御手段から初期化指示(例えば、リスタート指示)を受けたことに基づいて該経過時間を初期化する復帰指示手段(例えば、WDT314)と、   Measurement of elapsed time is started based on receiving a start instruction (for example, automatic start processing or manual start processing) from the game control means, and the elapsed time is set to a specific time (for example, a timeout set in the program management area) Time), and a return instruction (for example, output of a time-out signal to the internal bus) is given to the game control means based on the determination that the elapsed time has exceeded a specific time. A return instruction means (for example, WDT 314) for initializing the elapsed time based on receiving an initialization instruction (for example, a restart instruction) from the game control means;

監視している電源ライン(例えば、電源ラインpl03)の電圧(例えば、DC12V)が下限電圧(例えば、DC9V)よりも低下した場合に、前記遊技制御手段に出力する低電圧信号をアサート状態にし、前記電源ラインの電圧が下限電圧よりも高くなった場合に、前記低電圧信号をネゲート状態にすることが可能な電圧監視手段(例えば、リセットIC7003)と
を備えた遊技台であって、
When the voltage (for example, DC12V) of the monitored power supply line (for example, power supply line pl03) is lower than the lower limit voltage (for example, DC9V), the low voltage signal output to the game control means is asserted, A gaming machine comprising voltage monitoring means (for example, a reset IC 7003) capable of negating the low voltage signal when the voltage of the power line becomes higher than a lower limit voltage,

前記開始指示は、前記低電圧信号が前記アサート状態から前記ネゲート状態に変化した後に発せられることを特徴とする。   The start instruction is issued after the low voltage signal is changed from the asserted state to the negated state.

当該構成を備えたパチンコ機100によれば、電源監視信号としての低電圧信号がアサート状態からネゲート状態に変化した後にWDTが起動される。例えば、監視電圧が9V以上になったら電源監視信号がネゲート状態になる。また、監視電圧が9V未満になったら電源監視信号がアサート状態になる。低電圧信号がアサート状態からネゲート状態に変化した後にWDTが起動されるには、具体的には、(1)回路によってリセットICからリセット信号が出力されるタイミングを遅らせる、(2)固定延長機能の使用、(3)WDT手動起動が挙げられる。   According to the pachinko machine 100 having the configuration, the WDT is activated after the low voltage signal as the power supply monitoring signal changes from the asserted state to the negated state. For example, when the monitoring voltage becomes 9V or higher, the power supply monitoring signal is negated. When the monitoring voltage becomes less than 9V, the power supply monitoring signal is asserted. To start WDT after the low-voltage signal changes from the asserted state to the negated state, specifically, (1) delay the timing at which the reset signal is output from the reset IC by the circuit, (2) fixed extension function (3) WDT manual activation.

従来は電源投入直後にWDTを起動し、電圧が安定するまでループ処理を行っていた。そして、そのループ処理内でWDTクリア&リスタートを繰り返し行っていた。この場合、電圧が安定するまで定期的にWDTクリア&リスタートの信号が出力されるので、該信号出力タイミングを基準にして特定処理の実行時期を判別しやすくなるという問題があった。また、電圧が安定する前にWDTクリア&リスタートを繰り返し行っていたので、ノイズの影響によって電圧が安定するまでの時間が長くなってしまうという問題があった。   Conventionally, the WDT is started immediately after the power is turned on, and loop processing is performed until the voltage is stabilized. And WDT clear & restart was repeatedly performed in the loop processing. In this case, since a WDT clear & restart signal is periodically output until the voltage becomes stable, there is a problem that it is easy to determine the execution time of the specific process with reference to the signal output timing. In addition, since WDT clear & restart is repeatedly performed before the voltage is stabilized, there is a problem that the time until the voltage is stabilized becomes long due to the influence of noise.

本発明によれば、電圧安定までの時間を短縮、WDTクリア&リスタートの信号で特定処理の実行時期のを判別し難くできる場合がある。   According to the present invention, it may be possible to shorten the time until the voltage stabilizes, and to make it difficult to determine the execution timing of the specific process using the WDT clear & restart signal.

また、WDTタイムアウトの場合はシステムリセット動作をさせることにより、特定処理の実行時期を更に判別困難にできる場合があり、ユーザプログラムの解析困難にできる場合がある。   In the case of a WDT timeout, by performing a system reset operation, it may be difficult to determine the execution time of the specific process, and it may be difficult to analyze the user program.

また、WDTを手動起動させた場合において、電断処理が発生した場合にも、電断処理中にWDTを停止させないようにしてもよい。主制御部のタイマ割込み制御処理では低電圧信号を検出すると電断処理が実行される。この場合はパチンコ機の電気系統に異常が発生していることが考えられる。このときにWDTの残存タイマの値が短くなっていると直ちにタイムアウト信号が出力されてシステムリセットがかかってしまうおそれがある。電断処理前にWDTを一時停止させるのが普通であるが、停電などの通常の電圧降下の場合はWDTに悪影響はほとんどなく、不正行為の場合には一時的に高い電圧がかけられるケースがありWDTに悪影響がある。つまり普通の遊技者には電断処理が完了するようにして、不正行為者には電断処理が完了しないようにするため、WDTを停止させないようにしてもよい。また、瞬停(9V未満に電圧が低下してすぐに9V以上に復活する状態)の場合であってもWDTを停止させないようにしてもよい。   In addition, when the WDT is manually activated and the power interruption process occurs, the WDT may not be stopped during the power interruption process. In the timer interrupt control process of the main control unit, the power interruption process is executed when a low voltage signal is detected. In this case, an abnormality may have occurred in the electrical system of the pachinko machine. At this time, if the value of the remaining timer of the WDT is shortened, a timeout signal may be immediately output and the system may be reset. It is normal to temporarily stop the WDT before power interruption processing, but in the case of a normal voltage drop such as a power failure, there is almost no adverse effect on the WDT, and in the case of fraudulent acts, a high voltage can be temporarily applied. Yes, WDT has an adverse effect. That is, the WDT may not be stopped so that the normal player can complete the power interruption process and the unauthorized person can prevent the power interruption process from completing. Also, WDT may not be stopped even in the case of momentary power failure (a state where the voltage drops below 9V and immediately recovers to 9V or higher).

また、磁界検知信号、磁気検知信号、電波検知信号、振動検知信号等が所定の端子に入力されている場合であってもWDTの起動を開始させ、さらにWDTのクリア&リスタートを実行するようにしてもよい。これらの検知信号に基づくエラー報知処理を行うよりも前に、WDTタイムアウトによって異常が発生していることを確認できる場合がある(特にエラー報知処理をタイマ割込み処理内で実行する場合に有効であり、さらに場合によってはタイマ割込み移行前に気づける場合がある。   Further, even when a magnetic field detection signal, a magnetic detection signal, a radio wave detection signal, a vibration detection signal, or the like is input to a predetermined terminal, the start of WDT is started, and further, the clear & restart of WDT is executed. It may be. Before performing error notification processing based on these detection signals, it may be possible to confirm that an abnormality has occurred due to WDT timeout (especially effective when error notification processing is executed within timer interrupt processing). In some cases, it may be noticed before the timer interrupt transition.

払出制御部600にカードユニット(CRユニット)608が接続されていない状態であってもWDTの手動起動をすることにより、遊技機に異常が発生していることを確認できる場合がある。   Even when the card unit (CR unit) 608 is not connected to the payout control unit 600, it may be possible to confirm that an abnormality has occurred in the gaming machine by manually starting the WDT.

電断処理後に監視電圧が9Vに復帰した場合にWDT手動起動を再度行う(電断処理ではWDTを停止させない)ようにしてもよい。WDTのタイムアウト信号によるシステムリセット処理をさせないのでA0〜A15のアドレスバスにモニタ信号(E000H)が出力されず所定のアドレスに復帰したことを判別し難くすることができる場合がある。   When the monitoring voltage returns to 9V after the power interruption process, WDT manual activation may be performed again (WDT is not stopped by the power interruption process). Since the system reset process by the time-out signal of WDT is not performed, it may be difficult to determine that the monitor signal (E000H) is not output to the address buses A0 to A15 and the address has been returned to a predetermined address.

また、電源投入後の最初のモジュール(スタックポインタを設定など)とは異なるモジュールで、WDTを起動させるようにしてもよい。こうすることにより、ユーザプログラムの解析を困難にできる場合がある。   Alternatively, the WDT may be activated by a module different from the first module after the power is turned on (such as setting the stack pointer). This may make it difficult to analyze the user program.

WDT手動起動とWDTクリア&リスタートの位置は、例えば以下のタイミングが挙げられる。   Examples of the positions of WDT manual activation and WDT clear & restart include the following timings.

(a)電源投入後の低電圧信号出力判定ループ処理より前、当該処理中、または当該処理より後、のいずれか。 (A) Either before the low voltage signal output determination loop processing after power-on, during the processing, or after the processing.

(b)内蔵レジスタに所定のデータを設定する処理より前、当該処理中、または当該処理より後、のいずれか。 (B) Either before the process of setting predetermined data in the built-in register, during the process, or after the process.

(c)電源ステータスを参照する処理(分岐する処理)より前、当該処理中、または当該処理より後、のいずれか。 (C) Either before the process of referring to the power status (the process of branching), during the process, or after the process.

(d)チェックSUMのループ処理より前、当該処理中、または当該処理より後、のいずれか。 (D) Either before the check SUM loop process, during the process, or after the process.

(e)内蔵RAMアクセス許可より前、当該処理中、または当該処理より後、のいずれか。 (E) Either before the access to the built-in RAM, during the process, or after the process.

(f)復帰起動または初期起動より前、当該処理中、または当該処理より後、のいずれか。 (F) Either before return start or initial start, during the process, or after the process.

(g)割込み許可より前、当該処理中、または当該処理より後、のいずれか。 (G) Either before the interrupt permission, during the process, or after the process.

(h)副制御部の起動待ちより前、当該処理中、または当該処理より後、のいずれか。 (H) Either before waiting for activation of the sub-control unit, during the process, or after the process.

(i)ソフト乱数の更新開始より前、当該処理中、または当該処理より後、のいずれか。 (I) Either before the start of updating the soft random number, during the process, or after the process.

(j)サブへの通信確認コマンド(サブ起動開始コマンド、完了コマンド)、払出への通信確認コマンドなどのコマンド送出より前、当該処理中、または当該処理より後、のいずれか。 (J) Either before sending a command such as a sub-communication confirmation command (sub-start start command, completion command) or a communication confirmation command for payout, during the processing, or after the processing.

(k)乱数最大値設定処理より前、当該処理中、または当該処理より後、のいずれか。
(2)上記パチンコ機100であって、
(K) Either before the random number maximum value setting process, during the process, or after the process.
(2) The pachinko machine 100,

前記開始指示は、前記メイン制御から前記割込み制御への移行を許可する最初の割込み許可前に発せられることを特徴とする。
(3)上記パチンコ機100であって、
The start instruction is issued before permitting the first interrupt permitting the transition from the main control to the interrupt control.
(3) The pachinko machine 100,

前記遊技制御手段を少なくとも有するマイクロプロセッサを備え、
前記マイクロプロセッサは、
A microprocessor having at least the game control means;
The microprocessor is

少なくとも、前記復帰指示手段によって、前記経過時間が前記特定時間を超えたと判定された場合には、セキュリティチェックが行われるとともに、該セキュリティチェックの後に前記遊技制御が行われるユーザモードへ移行するまでの時間をランダムに変動させるランダム延長処理が少なくとも行われる、セキュリティモードに滞在した後、該ユーザモードへ移行するものであることを特徴とする。   At least, when it is determined by the return instruction means that the elapsed time has exceeded the specific time, a security check is performed and a transition is made to the user mode in which the game control is performed after the security check. At least a random extension process for randomly changing the time is performed, and the user mode is entered after staying in the security mode.

当該構成を備えたパチンコ機100によれば、ユーザモードに移行する前にランダム延長処理を実行するので、遊技制御プログラムの実行開始タイミングをずらすことが可能なため、遊技制御処理の特定の処理(例えばソフト乱数の更新処理、初期値更新処理等)の実行時期を判別困難にでき、これらの特定の処理の狙い撃ちを防止することができる場合がある。   According to the pachinko machine 100 having such a configuration, since the random extension process is executed before shifting to the user mode, it is possible to shift the execution start timing of the game control program. For example, it may be difficult to determine the execution time of a soft random number update process, an initial value update process, and the like, and it may be possible to prevent the aim of these specific processes.

(4)上記パチンコ機100であって、前記ランダム延長処理の開始前に、前記マイクロプロセッサの所定の出力端子から所定の信号が出力されることを特徴とする。 (4) The pachinko machine 100 is characterized in that a predetermined signal is output from a predetermined output terminal of the microprocessor before the random extension process is started.

(5)上記パチンコ機100であって、前記所定の端子は、前記マイクロプロセッサ以外の外部機器に対してリセット信号を出力可能なリセット端子であることを特徴とする。 (5) In the pachinko machine 100, the predetermined terminal is a reset terminal capable of outputting a reset signal to an external device other than the microprocessor.

当該構成を備えたパチンコ機100によれば、ランダム延長処理の前に外部機器に対してリセット信号を出力し、ランダム延長処理の後に遊技制御プログラムの実行を開始することができるので、遊技制御処理の特定の処理(例えばソフト乱数の更新処理、初期値更新処理等)の実行時期を判別困難にでき、これらの特定の処理の狙い撃ちを防止することができる場合がある。   According to the pachinko machine 100 having this configuration, a reset signal can be output to the external device before the random extension process, and the execution of the game control program can be started after the random extension process. In some cases, it is difficult to determine the execution timing of the specific processing (for example, soft random number update processing, initial value update processing, etc.), and the aim of these specific processing can be prevented.

(6)上記パチンコ機100であって、前記遊技制御手段から送出されるコマンドに基づいて演出制御を行う副制御手段を有することを特徴とする。 (6) The pachinko machine 100 is characterized by having sub-control means for performing effect control based on a command sent from the game control means.

当該構成を備えたパチンコ機100によれば、電源投入後、WDT手動起動開始前に電断した場合において、主制御部300がメイン処理に復帰して各種処理終了後のタイマ割込み処理内の所定の処理実行時に払出制御部600に対して復帰コマンドを送信する構成の場合、かつ払出制御部600はこのコマンドを受信しないと発射許可しない構成の場合は、遊技球の発射ができないことで遊技機に異常が発生していることを確認できる場合がある。
<実施形態7>
According to the pachinko machine 100 having the above configuration, when power is turned off and before the WDT manual activation is started, the main control unit 300 returns to the main process and the predetermined process in the timer interrupt process after the completion of various processes. In the case of a configuration in which a return command is transmitted to the payout control unit 600 at the time of execution of the process, and in a configuration in which the payout control unit 600 does not permit launching without receiving this command, the gaming machine cannot be fired. It may be possible to confirm that an abnormality has occurred.
<Embodiment 7>

以下、図面を用いて、本発明の実施形態7に係るパチンコ機(遊技台)について詳細に説明する。   Hereinafter, a pachinko machine (game table) according to Embodiment 7 of the present invention will be described in detail with reference to the drawings.

図316は、乱数生成回路から16ビット乱数値をRAM308に取込む手順を示している。図の右側には後程説明する実施形態8に係る図341に示す16ビット乱数回路9000の乱数生成回路9006で更新される16ビット乱数値が図の上から下に進む時系列で行表示されている。各行の左側は16ビット乱数値の上位バイトを示し、右側は下位バイトを示している。上から下に向かって16ビット乱数値が順次更新されている状態を示している。本例では乱数値の最大値が設定されていないので、16ビット乱数値が順次更新されて0〜65535(十進数)まで更新される。図の中央にはマイコンの内蔵レジスタのうち乱数値取込みに関連するレジスタとして、上から順に、乱数値ソフトラッチレジスタ、ソフトラッチ乱数値レジスタ(下位)、ソフトラッチ乱数値レジスタ(上位)、乱数ソフトラッチフラグレジスタが示されている。図の左側には、RAM308内で連続した2つの所定アドレスの記憶領域に格納されるデータを示している。   FIG. 316 shows a procedure for taking a 16-bit random value from the random number generation circuit into the RAM 308. On the right side of the figure, 16-bit random numbers updated by the random number generation circuit 9006 of the 16-bit random number circuit 9000 shown in FIG. 341 according to the eighth embodiment which will be described later are displayed in a row in time series from the top to the bottom of the figure. Yes. The left side of each row shows the upper byte of the 16-bit random number value, and the right side shows the lower byte. A 16-bit random number value is sequentially updated from top to bottom. In this example, since the maximum value of the random number value is not set, the 16-bit random value is sequentially updated to 0 to 65535 (decimal number). In the middle of the figure, as the registers related to fetching random values among the built-in registers of the microcomputer, from the top, the random value soft latch register, soft latch random value register (lower), soft latch random value register (upper), random software A latch flag register is shown. On the left side of the figure, data stored in a storage area of two consecutive predetermined addresses in the RAM 308 is shown.

図316に示す乱数値取込みでは、ユーザプログラムにより内部レジスタの乱数ソフトラッチレジスタに対し「1」が書き込まれる(矢印(1)参照)。これにより、所定のソフトラッチ乱数値レジスタにラッチ信号が出力されて、乱数生成回路9006から入力されている16ビット乱数値がラッチされる((2)参照))。ラッチ処理では、ラッチされた16ビット乱数値の下位8ビットがソフトラッチ乱数値レジスタ(下位)に取り込まれ(矢印(3)参照)、次いで、上位8ビットがソフトラッチ乱数値レジスタ(上位)に取り込まれる(矢印(4)参照)。乱数値がソフトラッチ乱数値レジスタに取り込まれると、乱数ソフトラッチフラグレジスタの対応ビットに「1」がセットされる(矢印(5)参照)。次いで、乱数ソフトラッチフラグレジスタの対応ビットに「1」がセットされたら、ユーザプログラム内の第一の命令によりソフトラッチ乱数値レジスタ(下位)の値をRAM308内の所定アドレスの記憶領域に当否判定乱数(下位)として記憶し(矢印(6)参照)、次いで第二の命令によりソフトラッチ乱数値レジスタ(上位)の値をRAM308内の所定アドレスの次のアドレスの記憶領域に当否判定乱数(上位)として記憶する(矢印(7)参照)。なお、ソフトラッチ乱数値レジスタの値をRAM308内の所定アドレスの記憶領域に記憶したら乱数ソフトラッチフラグレジスタの対応ビットに「0」がセットされる(矢印(8)参照)。   In the random value fetching shown in FIG. 316, “1” is written to the random number soft latch register of the internal register by the user program (see arrow (1)). As a result, a latch signal is output to a predetermined soft latch random value register, and the 16-bit random value input from the random number generation circuit 9006 is latched (see (2)). In the latch process, the lower 8 bits of the latched 16-bit random number value are taken into the soft latch random value register (lower) (see arrow (3)), and then the upper 8 bits are stored in the soft latch random value register (upper). Is taken in (see arrow (4)). When the random number value is taken into the soft latch random value register, “1” is set to the corresponding bit of the random number soft latch flag register (see arrow (5)). Next, when “1” is set to the corresponding bit of the random number soft latch flag register, the first instruction in the user program determines whether the value of the soft latch random number register (lower) is stored in the storage area of the RAM 308 at a predetermined address. Random number (lower order) is stored (see arrow (6)), and then the value of the soft latch random value register (upper order) is determined in the storage area of the address next to the predetermined address in the RAM 308 by the second instruction. ) (See arrow (7)). When the value of the soft latch random value register is stored in the storage area of the predetermined address in the RAM 308, “0” is set to the corresponding bit of the random number soft latch flag register (see arrow (8)).

図317も、乱数生成回路9006から16ビット乱数値をRAM308に取込む手順を示している。図317内の構成要素の配置は図316と同様なのでその説明は省略する。本例では乱数値の最大値が100に設定されている。このため、16ビット乱数値が順次更新されて0〜100(十進数)まで更新される。   FIG. 317 also shows a procedure for taking a 16-bit random number value from the random number generation circuit 9006 into the RAM 308. The arrangement of the components in FIG. 317 is the same as that in FIG. In this example, the maximum random value is set to 100. For this reason, the 16-bit random number value is sequentially updated and updated from 0 to 100 (decimal number).

図317に示す乱数値取込みでは、図316の場合と同様に、ユーザプログラムにより内部レジスタの乱数ソフトラッチレジスタに対し「1」が書き込まれる(矢印(1)参照)。これにより、所定のソフトラッチ乱数値レジスタにラッチ信号が出力されて、乱数生成回路9006から入力されている16ビット乱数値がラッチされる((2)参照))。ラッチ処理では、ラッチされた16ビット乱数値の下位8ビットがソフトラッチ乱数値レジスタ(下位)に取り込まれ(矢印(3)参照)、次いで、上位8ビットがソフトラッチ乱数値レジスタ(上位)に取り込まれる(矢印(4)参照)。乱数値がソフトラッチ乱数値レジスタに取り込まれると、乱数ソフトラッチフラグレジスタの対応ビットに「1」がセットされる(矢印(5)参照)。次いで、乱数ソフトラッチフラグレジスタの対応ビットに「1」がセットされたことを条件に、ユーザプログラム内の第一の命令によりソフトラッチ乱数値レジスタ(下位)の値をRAM308内の所定アドレスの記憶領域に当否判定乱数(下位)として記憶し(矢印(6)参照)、次いで第二の命令によりソフトラッチ乱数値レジスタ(上位)の値をRAM308内の所定アドレスの次のアドレスの記憶領域に当否判定乱数(上位)として記憶する(矢印(7)参照)。なお、ソフトラッチ乱数値レジスタの値をRAM308内の所定アドレスの記憶領域に記憶したら乱数ソフトラッチフラグレジスタの対応ビットに「0」がセットされる(矢印(8)参照)。このように、乱数値の最大値が256未満で上位バイトが常に0であるためデータ取込みが不要な場合であっても、上位8ビットも一緒に取り込むようにユーザプログラムを組んでいる。   In the random number fetching shown in FIG. 317, as in the case of FIG. 316, “1” is written into the random number soft latch register of the internal register by the user program (see arrow (1)). As a result, a latch signal is output to a predetermined soft latch random value register, and the 16-bit random value input from the random number generation circuit 9006 is latched (see (2)). In the latch process, the lower 8 bits of the latched 16-bit random number value are taken into the soft latch random value register (lower) (see arrow (3)), and then the upper 8 bits are stored in the soft latch random value register (upper). Is taken in (see arrow (4)). When the random number value is taken into the soft latch random value register, “1” is set to the corresponding bit of the random number soft latch flag register (see arrow (5)). Next, on condition that the corresponding bit of the random number soft latch flag register is set to “1”, the value of the soft latch random number register (lower order) is stored in a predetermined address in the RAM 308 by the first instruction in the user program. The result is stored as a random number (lower) in the area (see arrow (6)), and then the value of the soft latch random value register (upper) is determined in the storage area of the address next to the predetermined address in the RAM 308 by the second instruction. Stored as a decision random number (upper order) (see arrow (7)). When the value of the soft latch random value register is stored in the storage area of the predetermined address in the RAM 308, “0” is set to the corresponding bit of the random number soft latch flag register (see arrow (8)). In this way, the user program is set up so that the upper 8 bits are taken together even when data fetching is unnecessary because the maximum random number is less than 256 and the upper byte is always 0.

図318(a)は、図316および図317に示す乱数取込み(取得)手順において実行される乱数取得判定処理を示すフローチャートである。この処理は、例えば、主制御部タイマ割込処理の入賞受付処理(ステップS217)で実行される。同一の割込み内で特図1乱数値や、特図2乱数値、普図乱数値など複数ラッチする場合は、入賞受付処理(ステップS217)内でこの乱数取得判定処理を複数回繰り返す。特図1始動口230や、特図2始動口232、普図始動口228の球検出センサから読み取ったデータが入賞判定パターンに一致する場合に、本処理に移行する。1つの割込み内で例えば特図1乱数値と特図2乱数値をラッチする場合において、同時成立の場合は例えば特図2乱数値を先にラッチして、次の割込みで特図1乱数値をラッチするようにしてもよい。また、同時成立の場合は、1割込み内で特図1乱数値と特図2乱数値とをラッチするようにしてもよい。つまり、同時成立の場合に特図1乱数値と特図2乱数値とを別割込みでラッチすることはないようにしてもよい。   FIG. 318 (a) is a flowchart showing a random number acquisition determination process executed in the random number acquisition (acquisition) procedure shown in FIGS. 316 and 317. This process is executed, for example, in a winning acceptance process (step S217) of the main control unit timer interrupt process. When a plurality of special figure 1 random values, special figure 2 random values, ordinary figure random values, etc. are latched within the same interrupt, this random number acquisition determination process is repeated a plurality of times in the winning acceptance process (step S217). When the data read from the ball detection sensors of the special figure 1 starting port 230, the special figure 2 starting port 232, and the general figure starting port 228 matches the winning determination pattern, the process proceeds to this processing. For example, when latching the special figure 1 random value and the special figure 2 random value within one interrupt, if it is established simultaneously, for example, the special figure 2 random value is latched first, and the special figure 1 random value is obtained at the next interrupt. May be latched. In the case of simultaneous establishment, the special figure 1 random value and the special figure 2 random value may be latched within one interrupt. That is, in the case of simultaneous establishment, the special figure 1 random value and the special figure 2 random value may not be latched by separate interrupts.

乱数取得判定処理において、主制御部300は、まず、ラッチ条件が成立しているか否かを判断する(ステップS9001)。ラッチ条件としては、対象(特図1、特図2、あるいは普図)を特定し、特定した対象の現在の保留個数を取得し、該保留個数が最大でないかを判定することが挙げられる。保留個数が最大であればラッチ条件が成立せず、保留個数が最大未満であればラッチ条件が成立する。保留個数以外にも他のラッチ条件が含まれてもよい。他のラッチ条件として、例えば、エラー状態であるか否かをラッチ条件の一部に含ませてもよい。さらに、他のラッチ条件として、遊技機における常識的な条件が全て含まれるようにしてももちろんよい。   In the random number acquisition determination process, the main control unit 300 first determines whether a latch condition is satisfied (step S9001). Examples of the latch condition include specifying a target (Special Figure 1, Special Figure 2, or Common Chart), obtaining the current number of reserved objects of the specified object, and determining whether the number of reserved objects is not the maximum. The latch condition is not satisfied if the number of holds is maximum, and the latch condition is satisfied if the number of holds is less than the maximum. Other latch conditions may be included in addition to the reserved number. As another latch condition, for example, whether or not an error state occurs may be included in a part of the latch condition. Further, as a matter of course, all other common conditions in the gaming machine may be included as other latch conditions.

主制御部300は、ステップS9001でラッチ条件が成立すると判断したら、ステップS9002に移行して、所定の乱数値をラッチする。ラッチ条件が不成立であると判断したらステップS9002を省略して乱数取得判定処理を終了する。   If the main control unit 300 determines in step S9001 that the latch condition is satisfied, the main control unit 300 proceeds to step S9002 and latches a predetermined random value. If it is determined that the latch condition is not satisfied, step S9002 is omitted and the random number acquisition determination process is terminated.

図318(b)は、図316および図317に示す乱数取込み(取得)手順において実行される乱数取得処理を示すフローチャートである。この処理は、例えば、主制御部タイマ割込処理の入賞受付処理(ステップS217)で実行される。同一割込み処理内で複数ラッチする場合(特図1乱数値や、特図2乱数値、普図乱数値等)は、ステップS217内でこの乱数取得処理を所定回数繰り返す。   FIG. 318 (b) is a flowchart showing random number acquisition processing executed in the random number acquisition (acquisition) procedure shown in FIGS. 316 and 317. This process is executed, for example, in a winning acceptance process (step S217) of the main control unit timer interrupt process. When multiple latches are performed within the same interrupt process (such as special figure 1 random value, special figure 2 random value, ordinary figure random value, etc.), this random number acquisition process is repeated a predetermined number of times in step S217.

乱数取得処理において、主制御部300は、まず、乱数取得条件が成立しているか否かを判断する(ステップS9003)。乱数取得条件としては、対象(特図1、特図2、あるいは普図)を特定し、特定した対象に対応する乱数ソフトラッチフラグレジスタの所定ビットに「1」がセットされているか否かを判定する。   In the random number acquisition process, the main control unit 300 first determines whether or not a random number acquisition condition is satisfied (step S9003). As a random number acquisition condition, a target (special figure 1, special figure 2, or general figure) is specified, and whether or not “1” is set in a predetermined bit of a random number soft latch flag register corresponding to the specified target. judge.

主制御部300は、ステップS9003で乱数取得条件が成立すると判断したら、ステップS9004に移行して、所定の乱数値を取得する。乱数取得条件が不成立であると判断したらステップS9004を省略して乱数取得処理を終了する。ステップS9004では、内蔵レジスタからの乱数取得とともに、このタイミングでソフト乱数を取得するようにしてもよい。そして、内蔵レジスタから取得した乱数にソフト乱数を加算して当否判定用乱数を生成するようにしてもよい。   When determining that the random number acquisition condition is satisfied in step S9003, the main control unit 300 proceeds to step S9004 and acquires a predetermined random value. If it is determined that the random number acquisition condition is not satisfied, step S9004 is omitted and the random number acquisition process is terminated. In step S9004, along with the random number acquisition from the built-in register, the soft random number may be acquired at this timing. Then, a random number for determination of success / failure may be generated by adding a soft random number to the random number acquired from the built-in register.

図319(a)は、図316および図317に示す乱数取込み(取得)手順において実行される図318(a)に示す乱数取得判定処理をより詳細に説明するフローチャートである。主制御部300は、まず、特図1始動口230や、特図2始動口232、普図始動口228の球検出センサから読み取ったデータが入賞判定パターンに一致するか否かを判定する(ステップS9005)。球検出センサから読み取ったデータが入賞判定パターンに一致する場合はステップS9006に移行し、一致しない場合は乱数取得判定処理を終了する。球検出センサから読み取ったデータが入賞判定パターンに一致する場合は、主制御部300は、ラッチ条件を満たしているか否かを判断するため、保留個数が非満タン状態であるか否かを判断する(ステップS9006)。保留個数が非満タン状態である場合はステップS9007に移行し、満タン状態である場合は乱数取得判定処理を終了する。   FIG. 319 (a) is a flowchart for explaining in more detail the random number acquisition determination process shown in FIG. 318 (a) executed in the random number acquisition (acquisition) procedure shown in FIGS. 316 and 317. First, the main control unit 300 determines whether or not the data read from the ball detection sensors of the special figure 1 starting port 230, the special figure 2 starting port 232, and the general figure starting port 228 matches the winning determination pattern ( Step S9005). If the data read from the ball detection sensor matches the winning determination pattern, the process proceeds to step S9006, and if not, the random number acquisition determination process ends. When the data read from the ball detection sensor matches the winning determination pattern, the main control unit 300 determines whether or not the pending number is in a non-full state in order to determine whether or not the latch condition is satisfied. (Step S9006). If the number of reserves is not full, the process proceeds to step S9007, and if it is full, the random number acquisition determination process ends.

主制御部300は、保留個数が非満タン状態である場合はステップS9007に移行し、乱数ソフトラッチレジスタの所定ビットに「1」をセットする。これにより、図316または図317に示す矢印(1)で示す処理が実行され、所定のソフトラッチ乱数値レジスタにラッチ信号が出力される。   If the reserved number is not full, the main control unit 300 moves to step S9007 and sets “1” to a predetermined bit of the random number soft latch register. As a result, the process indicated by the arrow (1) shown in FIG. 316 or 317 is executed, and a latch signal is output to a predetermined soft latch random number value register.

次いで、ステップS9008において、乱数ソフトラッチフラグレジスタの所定ビットが「0」であるか否かが判断され、乱数ソフトラッチフラグレジスタの所定ビットが「0」であればステップS9008に移行し、所定ビットが「0」でなければ乱数取得判定処理を終了する。   Next, in step S9008, it is determined whether or not the predetermined bit of the random number soft latch flag register is “0”. If the predetermined bit of the random number soft latch flag register is “0”, the process proceeds to step S9008 and the predetermined bit is set. If “0” is not “0”, the random number acquisition determination process ends.

乱数ソフトラッチフラグレジスタの所定ビットが「0」であれば、ステップS9010において、乱数生成回路9006から入力されている16ビット乱数値が所定のソフトラッチ乱数値レジスタにラッチされる(図316または図317に示す矢印(3)および(4)参照)。   If the predetermined bit of the random number soft latch flag register is “0”, in step S9010, the 16-bit random number value input from the random number generation circuit 9006 is latched in the predetermined soft latch random number value register (FIG. 316 or FIG. (See arrows (3) and (4) shown at 317).

次いで、ステップS9011で乱数ソフトラッチフラグレジスタの所定ビットに「1」がセットされて(図316または図317に示す矢印(5)参照)、乱数取得判定処理が終了する。   Next, in step S9011, “1” is set to a predetermined bit of the random number soft latch flag register (see arrow (5) shown in FIG. 316 or FIG. 317), and the random number acquisition determination process ends.

図319(b)は、図316および図317に示す乱数取込み(取得)手順において実行される図318(b)に示す乱数取得処理をより詳細に説明するフローチャートである。主制御部300は、乱数ソフトラッチフラグレジスタの所定ビットが「1」であるか否かを判断する(ステップS9012)。所定ビットが「1」であればステップS9013に移行し、所定ビットが「1」でなければ乱数取得処理を終了する。   FIG. 319 (b) is a flowchart for explaining in more detail the random number acquisition process shown in FIG. 318 (b) executed in the random number acquisition (acquisition) procedure shown in FIGS. 316 and 317. The main control unit 300 determines whether or not the predetermined bit of the random number soft latch flag register is “1” (step S9012). If the predetermined bit is “1”, the process proceeds to step S9013. If the predetermined bit is not “1”, the random number acquisition process ends.

乱数ソフトラッチフラグレジスタの所定ビットが「1」であれば、ステップS9013において、乱数ソフトラッチ乱数値レジスタ(下位)から16ビット乱数値の下位バイトをRAM308内の所定アドレスの記憶領域に当否判定乱数(下位)としてリード(読み込み)する(図316または図317に示す矢印(6)参照)。次いで、ステップS9014において、乱数ソフトラッチ乱数値レジスタ(上位)から16ビット乱数値の上位バイトをRAM308内の所定アドレスの次のアドレスの記憶領域に当否判定乱数(上位)としてリードする(図316または図317に示す矢印(7)参照)。次いで、ステップS9015において、16ビット乱数値の上位バイトをRAM308内の所定アドレスの次のアドレスの記憶領域にリードしたことに基づいて、乱数ソフトラッチフラグレジスタの対応ビットに「0」がセットされる(図316または図317に示す矢印(8)参照)。   If the predetermined bit of the random number soft latch flag register is “1”, in step S9013, the lower byte of the 16-bit random number value from the random number soft latch random value register (lower order) is determined to be a random number determination random number in the storage area of the predetermined address in the RAM 308. Read (read) as (lower) (see arrow (6) shown in FIG. 316 or 317). Next, in step S9014, the upper byte of the 16-bit random number value is read from the random number soft latch random number register (upper) as a pass / fail determination random number (upper) to the storage area of the address next to the predetermined address in the RAM 308 (FIG. Arrow (7) shown in FIG. 317). Next, in step S9015, “0” is set to the corresponding bit of the random number soft latch flag register based on reading the upper byte of the 16-bit random number value into the storage area of the address next to the predetermined address in the RAM 308. (See arrow (8) shown in FIG. 316 or FIG. 317).

図320は、所定のソフトラッチ乱数値レジスタに乱数生成回路9006から逐次入力される16ビット乱数値を直接取込む方法を示している。図316に示す乱数値取込みでは、ユーザプログラムに記述した第三の命令によりソフトラッチ乱数値レジスタから16ビット乱数値を直接取込むことができる。第三の命令を用いることにより、マイコン内蔵レジスタ内の乱数値取込みに関連するレジスタのうち、乱数ソフトラッチレジスタと乱数ソフトラッチフラグレジスタは不必要となる。   FIG. 320 shows a method of directly fetching a 16-bit random number value sequentially input from the random number generation circuit 9006 into a predetermined soft latch random number value register. In the random value acquisition shown in FIG. 316, a 16-bit random value can be directly acquired from the soft latch random value register by a third instruction described in the user program. By using the third instruction, the random number soft latch register and the random number soft latch flag register among the registers related to fetching the random number value in the microcomputer built-in register become unnecessary.

第三の命令だけで、乱数ソフトラッチ乱数値レジスタ(下位)から16ビット乱数値の下位バイトをRAM308内の所定アドレスの記憶領域に当否判定乱数(下位)として読み込み、続いて、乱数ソフトラッチ乱数値レジスタ(上位)から16ビット乱数値の上位バイトをRAM308内の所定アドレスの次のアドレスの記憶領域に当否判定乱数(上位)として読み込むことができる(矢印(A)参照)。後程プログラムコードを用いて説明するが、第三の命令で下位のレジスタを指定するだけで上位のレジスタに格納されている値も取り込むことができる。機械語からは上位アドレスの判別が不能になるため、不正者によるコード解析を困難にすることができる。   Only with the third instruction, the lower byte of the 16-bit random number value is read from the random number soft latch random value register (lower order) into the storage area of the predetermined address in the RAM 308 as a validity determination random number (lower order), and then the random number soft latch disturbance The upper byte of the 16-bit random number value can be read from the numerical register (upper) as a pass / fail judgment random number (upper) into the storage area of the address next to the predetermined address in the RAM 308 (see arrow (A)). As will be described later with reference to the program code, the value stored in the upper register can be fetched only by designating the lower register with the third instruction. Since it is impossible to distinguish the upper address from the machine language, it is possible to make code analysis by an unauthorized person difficult.

図316や図317に示す乱数値取込み方法では、16ビット乱数値の上位バイトをRAM308内の所定アドレスの次のアドレスの記憶領域に読み込んだことに基づいて、乱数ソフトラッチフラグレジスタの対応ビットに「0」がセットされるが、本例の直接取込み方法では、乱数ソフトラッチフラグレジスタの対応ビットは元々「0」であり、本処理の後にも「0」が維持されている。このため、第三の命令の実行後に同一のソフトラッチ乱数値レジスタから第一の命令と第二の命令を使って乱数値を取り出す場合にも、図319(a)の乱数取得判定処理のステップS9008をそのまま適用できる。   In the random number value fetching method shown in FIGS. 316 and 317, the upper byte of the 16-bit random value is read into the storage area of the address next to the predetermined address in the RAM 308, and the corresponding bit of the random number soft latch flag register is set. Although “0” is set, in the direct capture method of this example, the corresponding bit of the random number soft latch flag register is originally “0”, and “0” is maintained after this processing. Therefore, even when a random number value is extracted from the same soft latch random number register using the first instruction and the second instruction after execution of the third instruction, the steps of the random number acquisition determination process in FIG. S9008 can be applied as it is.

図321は、図320に示す乱数直接取込みにおいて実行される乱数取得判定/取得処理を示すフローチャートである。この処理は、例えば、主制御部タイマ割込処理の入賞受付処理(ステップS217)で実行される。同一の割込み内で特図1乱数値や、特図2乱数値、普図乱数値など複数の乱数値を直接取得する場合は、入賞受付処理(ステップS217)内でこの乱数取得判定/取得処理を複数回繰り返す。特図1始動口230や、特図2始動口232、普図始動口228の球検出センサから読み取ったデータが入賞判定パターンに一致する場合に、本処理に移行する。1つの割込み内で例えば特図1乱数値と特図2乱数値を直接取得する場合において、同時成立の場合は例えば特図2乱数値を先に取得して、次の割込みで特図1乱数値を取得するようにしてもよい。また、同時成立の場合は、1割込み内で特図1乱数値と特図2乱数値とを直接取得するようにしてもよい。つまり、同時成立の場合に特図1乱数値と特図2乱数値とを別割込みで直接取得することはないようにしてもよい。   FIG. 321 is a flowchart showing the random number acquisition determination / acquisition process executed in the direct random number acquisition shown in FIG. This process is executed, for example, in a winning acceptance process (step S217) of the main control unit timer interrupt process. When directly acquiring a plurality of random values such as special figure 1 random value, special figure 2 random value, ordinary figure random value within the same interrupt, this random number acquisition determination / acquisition process in the winning acceptance process (step S217) Repeat several times. When the data read from the ball detection sensors of the special figure 1 starting port 230, the special figure 2 starting port 232, and the general figure starting port 228 matches the winning determination pattern, the process proceeds to this processing. For example, in the case where the special figure 1 random value and the special figure 2 random value are directly acquired within one interrupt, for example, the special figure 2 random value is acquired first, and the special interrupt is obtained in the next interrupt. A numerical value may be acquired. In the case of simultaneous establishment, the special figure 1 random value and the special figure 2 random value may be directly acquired within one interrupt. That is, in the case of simultaneous establishment, the special figure 1 random value and the special figure 2 random value may not be directly acquired by separate interrupts.

乱数取得判定/取得処理において、主制御部300は、まず、乱数取得条件が成立しているか否かを判断する(ステップS9016)。乱数取得条件としては、対象(特図1、特図2、あるいは普図)を特定し、特定した対象の現在の保留個数を取得し、該保留個数が最大でないかを判定することが挙げられる。保留個数が最大であれば乱数取得条件が成立せず、保留個数が最大未満であれば乱数取得条件が成立する。保留個数以外にも他の乱数取得条件が含まれてもよい。他の乱数取得条件として、例えば、エラー状態であるか否かを乱数取得条件の一部に含ませてもよい。さらに、他の乱数取得条件として、遊技機における常識的な条件が全て含まれるようにしてももちろんよい。   In the random number acquisition determination / acquisition process, the main control unit 300 first determines whether or not a random number acquisition condition is satisfied (step S9016). The random number acquisition condition includes specifying a target (Special Figure 1, Special Figure 2, or Common Chart), acquiring the current number of reserved objects of the specified object, and determining whether the number of reserved objects is not the maximum. . If the reserved number is maximum, the random number acquisition condition is not satisfied, and if the reserved number is less than the maximum, the random number acquisition condition is satisfied. Other random number acquisition conditions may be included besides the reserved number. As another random number acquisition condition, for example, whether or not an error state exists may be included in a part of the random number acquisition condition. Furthermore, as a matter of course, all the common-sense conditions for gaming machines may be included as other random number acquisition conditions.

主制御部300は、ステップS9016で乱数取得条件が成立すると判断したら、ステップS9017に移行して、所定の乱数値を直接取得する。ステップS9017では、内蔵レジスタからの乱数直接取得とともに、このタイミングでソフト乱数を取得するようにしてもよい。そして、内蔵レジスタから取得した乱数にソフト乱数を加算して当否判定用乱数を生成するようにしてもよい。乱数取得条件が不成立であると判断したらステップS9017を省略して乱数取得判定/取得処理を終了する。   If the main control unit 300 determines in step S9016 that the random number acquisition condition is satisfied, the main control unit 300 proceeds to step S9017 and directly acquires a predetermined random number value. In step S9017, a soft random number may be acquired at this timing as well as directly acquiring a random number from the built-in register. Then, a random number for determination of success / failure may be generated by adding a soft random number to the random number acquired from the built-in register. If it is determined that the random number acquisition condition is not satisfied, step S9017 is omitted and the random number acquisition determination / acquisition process is terminated.

この乱数取得判定/取得処理においては、第一の命令と第二の命令とを用いる乱数取得の場合に必須であった、特定した対象に対応する乱数ソフトラッチフラグレジスタの所定ビットに「1」がセットされているか否かを判定する処理が不要となる。   In this random number acquisition determination / acquisition process, “1” is set to a predetermined bit of the random number soft latch flag register corresponding to the specified target, which is essential in the case of random number acquisition using the first instruction and the second instruction. The process of determining whether or not is set is not necessary.

図322(a)、(b)は、図320に示す乱数直接取込み(取得)手順において実行される図321に示す乱数取得判定/取得処理をより詳細に説明するフローチャートである。図322(a)は乱数取得判定処理を示している。主制御部300は、まず、特図1始動口230や、特図2始動口232、普図始動口228の球検出センサから読み取ったデータが入賞判定パターンに一致するか否かを判定する(ステップS9018)。球検出センサから読み取ったデータが入賞判定パターンに一致する場合はステップS9019に移行し、一致しない場合は乱数取得判定処理を終了する。球検出センサから読み取ったデータが入賞判定パターンに一致する場合は、主制御部300は、乱数取得条件を満たしているか否かを判断するため、保留個数が非満タン状態であるか否かを判断する(ステップS9019)。保留個数が非満タン状態である場合はステップS9020に移行し、満タン状態である場合は乱数取得判定処理を終了する。   FIGS. 322 (a) and (b) are flowcharts illustrating the random number acquisition determination / acquisition process shown in FIG. 321 executed in the random number direct acquisition (acquisition) procedure shown in FIG. 320 in more detail. FIG. 322 (a) shows random number acquisition determination processing. First, the main control unit 300 determines whether or not the data read from the ball detection sensors of the special figure 1 starting port 230, the special figure 2 starting port 232, and the general figure starting port 228 matches the winning determination pattern ( Step S9018). If the data read from the ball detection sensor matches the winning determination pattern, the process proceeds to step S9019. If the data does not match, the random number acquisition determination process ends. When the data read from the ball detection sensor matches the winning determination pattern, the main control unit 300 determines whether or not the reserved number is in a non-full state in order to determine whether or not the random number acquisition condition is satisfied. Judgment is made (step S9019). If the reserved number is not full, the process proceeds to step S9020, and if it is full, the random number acquisition determination process ends.

主制御部300は、保留個数が非満タン状態である場合は乱数取得条件を満たしているものとしてステップS9020に移行し、所定のフラグをオンに設定する。所定のフラグは、マイコン内蔵のレジスタではなく、ユーザプログラムによるRAM308内の所定領域に設定している。   If the reserved number is not full, the main control unit 300 determines that the random number acquisition condition is satisfied and proceeds to step S9020 to set a predetermined flag to ON. The predetermined flag is set not in a microcomputer built-in register but in a predetermined area in the RAM 308 by the user program.

図322(b)は、乱数取得処理を示している。主制御部300は、所定のフラグがオンか否かを判断する(ステップS9021)。所定のフラグがオンであればステップS9022に移行し、所定のフラグがオンでなければ乱数取得処理を終了する。   FIG. 322 (b) shows random number acquisition processing. The main control unit 300 determines whether or not a predetermined flag is on (step S9021). If the predetermined flag is on, the process proceeds to step S9022, and if the predetermined flag is not on, the random number acquisition process is terminated.

所定のフラグがオンであれば、ステップS9022において、ソフトラッチ乱数値レジスタから乱数値をリードする。具体的には、乱数ソフトラッチ乱数値レジスタ(下位)から16ビット乱数値の下位バイトをRAM308内の所定アドレスの記憶領域に当否判定乱数(下位)としてリードし、続いて乱数ソフトラッチ乱数値レジスタ(上位)から16ビット乱数値の上位バイトをRAM308内の所定アドレスの次のアドレスの記憶領域に当否判定乱数(上位)としてリードする(図320の矢印A参照)。次いで、ステップS9023において、16ビット乱数値の上位バイトをRAM308内の所定アドレスの次のアドレスの記憶領域にリードしたことに基づいて、所定のフラグをオフに設定する。   If the predetermined flag is ON, in step S9022, the random value is read from the soft latch random value register. Specifically, the lower byte of the 16-bit random number value is read from the random number soft latch random number value register (lower order) to the storage area of the predetermined address in the RAM 308 as a validity determination random number (lower order), and then the random number soft latch random number value register The upper byte of the 16-bit random number value from (upper) is read as a success / failure determination random number (upper) in the storage area of the address next to the predetermined address in the RAM 308 (see arrow A in FIG. 320). Next, in step S9023, based on the fact that the upper byte of the 16-bit random number value has been read into the storage area of the address next to the predetermined address in the RAM 308, the predetermined flag is set to OFF.

図323は、図316や図317に示した乱数値取込みの手順を記述したプログラムコードの一例を示している。ラッチ条件(例えば、保留非満タンを少なくとも含む条件)が成立すると、コード中のROMエリアに記述されているように、乱数ソフトラッチレジスタに「1」をセットする。また、別モジュールで乱数ソフトラッチフラグレジスタの値を取得して、取得した値を「1」と比較し、取得した値が「1」であれば、モジュール「moRNDGET」にジャンプする。モジュール「moRNDGET」では、ソフトラッチ乱数値レジスタ(下位)のアドレスを取得し、取得したアドレスに格納されたソフトラッチ乱数値レジスタ(下位)の値を取得し、取得したソフトラッチ乱数値レジスタ(下位)の値をRAMに読み込む。次いで、ソフトラッチ乱数値レジスタ(上位)のアドレスを取得し、取得したアドレスに格納されたソフトラッチ乱数値レジスタ(上位)の値を取得し、取得したソフトラッチ乱数値レジスタ(上位)の値をRAMに読み込む。   FIG. 323 shows an example of a program code describing the procedure for fetching the random number values shown in FIG. 316 and FIG. When a latch condition (for example, a condition including at least a pending non-full tank) is satisfied, “1” is set in the random number soft latch register as described in the ROM area in the code. Further, the value of the random number soft latch flag register is acquired by another module, and the acquired value is compared with “1”. If the acquired value is “1”, the process jumps to the module “moRNDGET”. The module “moRNDGET” acquires the address of the soft latch random value register (lower), acquires the value of the soft latch random value register (lower) stored in the acquired address, and acquires the acquired soft latch random value register (lower) ) Value is read into the RAM. Next, the address of the soft latch random value register (upper) is obtained, the value of the soft latch random value register (upper) stored in the obtained address is obtained, and the value of the obtained soft latch random value register (upper) is obtained. Read into RAM.

図324は、図320に示した乱数値直接取込みの手順を記述したプログラムコードの一例を示している。図中取消線で示すコードは図323に比して不要となったコードを示している。乱数取得条件(例えば、保留非満タンを少なくとも含む条件)が成立すると、コード中のROMエリアに記述されているモジュール「moRNDGET」にジャンプする。モジュール「moRNDGET」では、LDW命令(第三の命令)により、ラッチ処理をせずに、また、ペアレジスタ(HL)を介さずに一命令でRAM308に16ビット乱数値を読み込みことができる。なお、図320および図324に示す例において、直接RAM308に乱数値を取り込むのではなく一旦ペアレジスタをに乱数値を取り込んで、ペアレジスタを介してRAM308に乱数値を取り込むようにしてもよい。   FIG. 324 shows an example of a program code describing the procedure of direct fetching of the random value shown in FIG. The code indicated by the strikethrough in the figure indicates a code that is no longer necessary as compared with FIG. When a random number acquisition condition (for example, a condition including at least a pending non-full tank) is satisfied, the process jumps to the module “moRNDGET” described in the ROM area in the code. In the module “moRNDGET”, a 16-bit random value can be read into the RAM 308 with a single instruction without performing latch processing or via the pair register (HL) by an LDW instruction (third instruction). In the example shown in FIGS. 320 and 324, the random number value may not be directly taken into the RAM 308 but may be once taken into the pair register and the random value may be taken into the RAM 308 via the pair register.

(LDW (RANSU0_L),RANSU_REG0_L)命令は、RANSU_REG0_Lの値をRANSU0_Lで示されるアドレスの記憶領域にロードし、RANSU_REG0_Hの値をRANSU0_Lで示されるアドレスの次のアドレスであるRANSU0_Hで示されるアドレスの記憶領域にロードする命令である。   The (LDW (RANSU0_L), RANSU_REG0_L) instruction loads the value of RANSU_REG0_L to the storage area of the address indicated by RANSU0_L, and the value of RANSU_REG0_H is the address of the RANSU0_H that is the next address of the address indicated by RANSU0_L. Is an instruction to load.

このように、第三の命令を用いた乱数値直接取込みによれば、第一の命令及び第二の命令を用いた乱数値取込みに比してプログラムが簡素になり作成が容易になる。さらに、図325を用いて第三の命令を用いることの利点について説明する。   Thus, according to the random value direct fetch using the third command, the program becomes simpler and easier to create than the random value fetch using the first command and the second command. Further, the advantage of using the third instruction will be described with reference to FIG.

図325(a)および(b)は、第一の命令および第二の命令を用いた場合の処理の流れの一部を示している。 図325(c)および(d)は、第三の命令を用いた場合の処理の流れの一部を示している。図325(a)および(b)は、第一の命令および第二の命令を用いた場合の処理の流れを示している。   FIGS. 325 (a) and (b) show a part of the flow of processing when the first instruction and the second instruction are used. 325 (c) and (d) show a part of the flow of processing when the third instruction is used. FIGS. 325 (a) and (b) show the flow of processing when the first instruction and the second instruction are used.

第一の命令および第二の命令を用いた乱数値取得の流れは、乱数ソフトラッチレジスタに「1」をセットし、ソフトラッチ乱数値レジスタに乱数が取り込まれ、乱数ソフトラッチフラグレジスタにフラグがセットされ、該フラグを参照し、フラグが立っている場合にRAMに乱数を取得し、該フラグをクリアする。図325(a)に示す例では、リード許可条件が成立してリードを許可する処理において、ラッチ信号およびラッチ完了信号(セット信号)が出力される。次いで、乱数リード処理において、リード完了信号(クリア信号)が出力される。この場合、ラッチ信号の出力からラッチ完了信号あるいはリード完了信号のタイミングで乱数取得処理の実行時期が推測され易い。   For the flow of random number acquisition using the first instruction and the second instruction, “1” is set in the random number soft latch register, the random number is taken into the soft latch random value register, and the flag is set in the random number soft latch flag register. It is set, and the flag is referred to. When the flag is set, a random number is acquired in the RAM and the flag is cleared. In the example shown in FIG. 325 (a), a latch signal and a latch completion signal (set signal) are output in the process of permitting reading when the read permission condition is satisfied. Next, in the random number read process, a read completion signal (clear signal) is output. In this case, the execution timing of the random number acquisition process is easily estimated from the output of the latch signal at the timing of the latch completion signal or the read completion signal.

これに対し、第三の命令を用いた乱数値取得では、ユーザプログラム上のフラグを用いており、乱数ソフトラッチレジスタと乱数ソフトラッチフラグレジスタを用いないため、これらに値をセットする処理は行われない。このため、図325(c)に示すように、リード許可条件が成立してリードを許可する処理において、RAM内に設定したフラグが変化するだけでラッチ信号およびラッチ完了信号は出力されず、乱数リード処理において、リード完了信号(クリア信号)だけが出力される。このように、ラッチ信号が出力されず、リード完了信号だけが出力されるので乱数取得処理の実行時期を推測するのを困難にすることができる。   On the other hand, the random number acquisition using the third instruction uses a flag on the user program and does not use the random number soft latch register and the random number soft latch flag register. I will not. For this reason, as shown in FIG. 325 (c), in the process of permitting the read when the read permission condition is satisfied, the latch signal and the latch completion signal are not output only by changing the flag set in the RAM, and the random number. In the read process, only a read completion signal (clear signal) is output. Thus, since the latch signal is not output and only the read completion signal is output, it is difficult to estimate the execution time of the random number acquisition process.

図325(b)に示す例も第一の命令および第二の命令を用いた乱数値取得である。リード許可条件が成立してリードを許可する処理において、ラッチ信号およびラッチ完了信号(セット信号)が出力される。次いで、1または複数のプログラムモジュールによる処理を経て、乱数リード処理が行われる。乱数リード処理において、リード完了信号が出力される。この場合、ラッチ信号やラッチ完了信号の出力からリード完了信号の出力までの間隔を長くすることができるため、乱数取得処理の実行時期の推測を困難にすることができる場合がある。   The example shown in FIG. 325 (b) is also random number acquisition using the first instruction and the second instruction. In the process of permitting reading when the read permission condition is satisfied, a latch signal and a latch completion signal (set signal) are output. Next, random number read processing is performed through processing by one or a plurality of program modules. In the random number read process, a read completion signal is output. In this case, since the interval from the output of the latch signal or the latch completion signal to the output of the read completion signal can be increased, it may be difficult to estimate the execution time of the random number acquisition process.

図325(d)に示す例は第三の命令を用いた乱数値取得である。リード許可条件が成立してリードを許可する処理において、ラッチ信号およびラッチ完了信号は出力されない。次いで、1または複数のプログラムモジュールによる処理を経て、乱数リード処理が行われる。乱数リード処理において、リード完了信号が出力される。この場合も、ラッチ信号が出力されず、リード完了信号だけが出力され、さらにリードを許可する処理からリード完了信号の出力までの間隔を長くすることができるため、乱数取得処理の実行時期を推測するのを困難にすることができる。また、リードを許可する処理では、特図1、特図2、あるいは普図の1または複数の乱数値の取得を許可することができる。また、他の乱数(例えば、ソフト乱数)を当該処理で取得するようにしてもよい。また、乱数リード処理では、特図1、特図2、あるいは普図の1または複数の乱数値を取得することができる。他の乱数(例えば、ソフト乱数)を当該処理で取得するようにしてもよい。
<主制御部のデータテーブル>
The example shown in FIG. 325 (d) is random number acquisition using a third instruction. In the process of permitting reading when the read permission condition is satisfied, the latch signal and the latch completion signal are not output. Next, random number read processing is performed through processing by one or a plurality of program modules. In the random number read process, a read completion signal is output. Also in this case, the latch signal is not output, only the read completion signal is output, and the interval between the read permission process and the read completion signal output can be increased, so the execution time of the random number acquisition process is estimated. Can be difficult to do. Further, in the process of permitting reading, it is possible to permit acquisition of one or a plurality of random values in the special figure 1, the special figure 2, or the usual figure. Further, other random numbers (for example, soft random numbers) may be acquired by this processing. Further, in the random number read process, one or a plurality of random values of special figure 1, special figure 2, or ordinary figure can be acquired. Other random numbers (for example, soft random numbers) may be acquired by this processing.
<Data table of main control unit>

次に、図326を用いて、パチンコ機100の主制御部300のROM306が記憶しているデータテーブルについて説明する。なお、同図(a)は大当り判定テーブルの一例を、同図(b)は高確率状態移行判定テーブルの一例を、同図(c)はタイマ番号決定テーブルの一例を、それぞれ示した図である。   Next, a data table stored in the ROM 306 of the main control unit 300 of the pachinko machine 100 will be described with reference to FIG. FIG. 4A shows an example of a jackpot determination table, FIG. 4B shows an example of a high probability state transition determination table, and FIG. 4C shows an example of a timer number determination table. is there.

図326(a)に示す大当り判定テーブルは、RAM308に設けた遊技状態格納領域に記憶している情報(以下、単に遊技情報と称する。)の種類と、第1特図始動口230に球が入賞したことを所定の球検出センサが検出した場合に使用する抽選データ(第1特図始動口用抽選データ)と、第2特図始動口232に球が入賞したことを所定の球検出センサが検出した場合に使用する抽選データ(第2特図始動口用抽選データ)と、を対応付けて記憶したデータテーブルである。主制御部300の基本回路302は、これらの情報を用いて特図変動遊技を当選(大当り)とするか、不当選(外れ)とするかの決定、すなわち大当り判定を行う。なお、遊技情報は、特図変動遊技を所定の低確率で当選と判定する低確率状態を示す情報、および低確率よりも高い高確率で特図変動遊技を当選と判定する高確率状態を示す情報などを含むが、以下、これらを単に低確率状態および高確率状態と称する。また、遊技状態格納領域に記憶する情報には別の情報もあるが、これらの情報については後述する。   In the jackpot determination table shown in FIG. 326 (a), the type of information stored in the gaming state storage area provided in the RAM 308 (hereinafter simply referred to as gaming information), and the first special figure starting port 230 has a ball. Lottery data (first special figure start port lottery data) used when a predetermined ball detection sensor detects winning, and a predetermined ball detection sensor that a ball has won the second special figure start port 232 This is a data table in which lottery data (second special figure starting port lottery data) used in the case of being detected is stored in association with each other. The basic circuit 302 of the main control unit 300 uses these pieces of information to determine whether the special figure variation game is won (big hit) or wrong (miss), that is, a big hit determination. The game information indicates information indicating a low probability state in which the special figure variable game is determined to be won with a predetermined low probability, and indicates a high probability state in which the special figure variable game is determined to be a winning with a high probability higher than the low probability. Hereinafter, these are simply referred to as a low probability state and a high probability state. Further, the information stored in the game state storage area includes other information, which will be described later.

第1特図始動口用抽選データは、第1特図始動口230に球が入賞したことを所定の球検出センサが検出した場合に開始する特図変動遊技の結果を決定するために使用する抽選データである。例えば、遊技状態が低確率状態の場合、取得した特図当選乱数値(乱数値については後述する)が10001〜10187であるときは、特図変動遊技の当選と判定する。一方、取得した特図当選乱数値が10001〜10187以外の数値である場合には、特図変動遊技の外れと判定する。なお、本実施例では、特図当選乱数値の取り得る数値範囲は0〜65535(数値範囲の大きさは65536)、低確率状態における第1特図始動口用抽選データが示す数値範囲は10001〜10187(数値範囲の大きさは187)であるから、低確率状態の第1特図始動口230への球の入賞に基づく特図変動遊技の当選確率は、約1/350.4(=187/65536)である。これに対して、高確率状態における第1特図始動口用抽選データが示す数値範囲は30001〜31310(数値範囲の大きさは1310)であるから、高確率状態の第1特図始動口230への球の入賞に基づく特図変動遊技の当選確率は約1/50.0(=1310/65536)であり、第1特図始動口230への球の入賞に基づく特図変動遊技の当選確率は、低確率状態よりも高確率状態の方が高くなるように設定している。   The lottery data for the first special figure starting port is used to determine the result of the special figure variable game that starts when a predetermined ball detection sensor detects that a ball has won the first special figure starting port 230. It is lottery data. For example, when the gaming state is in a low probability state, if the acquired special figure winning random number value (the random number value will be described later) is 10001 to 10187, it is determined that the special figure variable game is won. On the other hand, when the acquired special figure winning random number is a numerical value other than 10001 to 10187, it is determined that the special figure variable game is out of play. In this embodiment, the numerical value range that the special figure winning random number value can take is 0 to 65535 (the numerical value range is 65536), and the numerical value range indicated by the lottery data for the first special figure starting port in the low probability state is 10001. -10187 (the size of the numerical range is 187), the winning probability of the special figure variable game based on the winning of the ball to the first special figure starting port 230 in the low probability state is about 1 / 350.4 (= 187/65536). On the other hand, since the numerical range indicated by the lottery data for the first special figure starting port in the high probability state is 30001 to 13310 (the numerical range is 1310), the first special figure starting port 230 in the high probability state. The winning probability of the special figure variable game based on the winning of the special ball is about 1 / 50.0 (= 1310/65536), and the winning of the special figure variable game based on the winning of the ball to the first special figure starting port 230 is won. The probability is set so that the high probability state is higher than the low probability state.

第2特図始動口用抽選データは、第2特図始動口232に球が入賞したことを所定の球検出センサが検出した場合に開始する特図変動遊技の結果を決定するために使用する抽選データである。例えば、遊技状態が低確率状態の場合、取得した特図当選乱数値が20001〜20187であるときには、特図変動遊技の当選と判定する。一方、取得した特図当選乱数値が20001〜20187以外の数値である場合には、特図変動遊技の外れと判定する。なお、本実施例では、特図当選乱数値の取り得る数値範囲は0〜65535(数値範囲の大きさは65536)、低確率状態における第2特図始動口用抽選データが示す数値範囲は20001〜20187(数値範囲の大きさは187)であるから、低確率状態の第2特図始動口128への球の入賞に基づく特図変動遊技の当選確率は、約1/350.4(=187/65536)である。これに対して、高確率状態における第2特図始動口用抽選データが示す数値範囲は40001〜41310(数値範囲の大きさは1310)であるから、高確率状態の第2特図始動口232への球の入賞に基づく特図変動遊技の当選確率は約1/50.0(=1310/65536)であり、第2特図始動口232への球の入賞に基づく特図変動遊技の当選確率は、低確率状態よりも高確率状態の方が高くなるように設定している。   The lottery data for the second special figure starting port is used to determine the result of the special figure variable game that starts when a predetermined ball detection sensor detects that a ball has won the second special figure starting port 232. It is lottery data. For example, when the gaming state is a low probability state and the acquired special figure winning random number value is 20001 to 20187, it is determined that the special figure variable game is won. On the other hand, when the acquired special figure winning random number is a numerical value other than 20001 to 20187, it is determined that the special figure variable game is out of play. In this embodiment, the numerical value range that the special figure winning random number value can take is 0 to 65535 (the numerical value range is 65536), and the numerical value range indicated by the lottery data for the second special figure starting port in the low probability state is 20001. Since it is ˜20187 (the size of the numerical range is 187), the winning probability of the special figure variable game based on the winning of the ball to the second special figure starting port 128 in the low probability state is about 1 / 350.4 (= 187/65536). On the other hand, since the numerical range indicated by the lottery data for the second special figure starting port in the high probability state is 40001 to 41310 (the numerical range is 1310), the second special figure starting port 232 in the high probability state. The winning probability of the special figure variable game based on the winning of the special ball is about 1 / 50.0 (= 1310/65536), and the winning of the special figure variable game based on the winning of the ball at the second special figure starting port 232 is won. The probability is set so that the high probability state is higher than the low probability state.

図326(b)に示す高確率状態移行判定テーブルは、上述の大当り判定の結果、大当りと判定した場合に使用する抽選データを記憶したデータテーブルである。主制御部300の基本回路302は、これらの情報を用いて特図変動遊技の終了後に大当り遊技を開始するか、または特別大当り遊技を開始するかの判定、すなわち確変移行判定を行う。例えば、取得した特図乱数値(乱数値については後述する)が11〜74の数値である場合には、特図変動遊技の終了後に特別大当り遊技を開始する。一方、取得した特図乱数値が11〜74の数値以外である場合には、特図変動遊技の終了後に大当り遊技を開始する。なお、本実施例では、特図乱数値の取り得る数値範囲は0〜127(数値範囲の大きさは128)、抽選データの移行判定乱数の範囲は11〜74(数値範囲の大きさは64)であるから、大当り判定の結果が当選である場合に確変移行判定の結果を当選にする確率、すなわち特別大当りを開始する確率は1/2(=64/128)である。   The high-probability state transition determination table shown in FIG. 326 (b) is a data table that stores lottery data used when it is determined that the jackpot is determined as a result of the jackpot determination. The basic circuit 302 of the main control unit 300 uses these pieces of information to determine whether to start a big hit game or a special big hit game after the end of the special figure variable game, that is, to determine the probability change transition. For example, if the acquired special figure random number value (random number will be described later) is a numerical value of 11 to 74, the special jackpot game is started after the special figure variable game is completed. On the other hand, when the acquired special figure random number value is other than the numerical values of 11 to 74, the big hit game is started after the special figure variable game is completed. In the present embodiment, the range of numerical values that can be taken by the special figure random number value is 0 to 127 (the size of the numerical range is 128), and the range of random numbers for determining the migration of the lottery data is 11 to 74 (the size of the numerical range is 64). Therefore, when the result of the jackpot determination is winning, the probability of winning the result of the probability change transition determination, that is, the probability of starting the special jackpot is 1/2 (= 64/128).

図326(c)に示すタイマ番号決定テーブルは、特図表示装置212、214による特図の変動表示を開始してから停止表示をするまでの変動時間を示すタイマ番号を決定するための抽選に使用する抽選データを記憶したデータテーブルである。主制御部300の基本回路302は、これらの情報と、上述の大当り判定結果(後述する大当りフラグの値)および後述するタイマ乱数の値に基づいて、タイマ番号を決定する。そして、決定したタイマ番号に対応する変動時間を、特図表示図柄更新タイマ(図327(c)参照)の初期値として設定する。   The timer number determination table shown in FIG. 326 (c) is a lottery for determining a timer number indicating a change time from when the special figure display devices 212 and 214 start displaying the special figure to the stop display. It is a data table which memorize | stored the lottery data to be used. The basic circuit 302 of the main control unit 300 determines a timer number based on this information, the above-described jackpot determination result (a value of a jackpot flag described later) and a timer random number described later. Then, the variation time corresponding to the determined timer number is set as the initial value of the special figure display symbol update timer (see FIG. 327 (c)).

なお、本実施例では、特図タイマ乱数値(乱数値については後述する)の取り得る数値範囲は0〜65535(数値範囲の大きさは65536)、上述の大当り判定結果が不当選の場合は、タイマ1のタイマ乱数の範囲は0〜60235(数値範囲の大きさは60236)であるから、タイマ番号としてタイマ1(変動時間5秒)を選択する確率は60236/65536である。また、タイマ番号として、タイマ2(変動時間10秒)を選択する確率は4250/65536、タイマ3(変動時間20秒)を選択する確率は800/65536、タイマ3(変動時間40秒)を選択する確率は250/65536である。一方、大当り判定結果が当選の場合は、タイマ2のタイマ乱数の範囲は0〜15535(数値範囲の大きさは15536)であるから、タイマ番号としてタイマ2(変動時間10秒)を選択する確率は15535/65536である。また、タイマ番号として、タイマ3(変動時間20秒)を選択する確率は9000/65536、タイマ4(変動時間40秒)を選択する確率は38000/65536、タイマ5(変動時間50秒)を選択する確率は3000/65536である。   In the present embodiment, the numerical value range that can be taken by the special figure timer random number value (random number will be described later) is 0 to 65535 (the size of the numerical value range is 65536). Since the range of the timer random number of timer 1 is 0 to 60235 (the size of the numerical range is 60236), the probability of selecting timer 1 (fluctuation time 5 seconds) as the timer number is 60236/65536. As the timer number, the probability of selecting timer 2 (variation time 10 seconds) is 4250/65536, the probability of selecting timer 3 (variation time 20 seconds) is 800/65536, and timer 3 (variation time 40 seconds) is selected. The probability of doing is 250/65536. On the other hand, when the big hit determination result is winning, the range of the timer random number of timer 2 is 0 to 15535 (the numerical range is 15536), so the probability of selecting timer 2 (variation time 10 seconds) as the timer number Is 15535/65536. As the timer number, the probability of selecting timer 3 (variation time 20 seconds) is 9000/65536, the probability of selecting timer 4 (variation time 40 seconds) is 38000/65536, and timer 5 (variation time 50 seconds) is selected. The probability of doing is 3000/65536.

次に、図327(a)〜(d)を用いて、パチンコ機100の主制御部300のROM306が記憶しているデータテーブルについて説明する。なお、同図(a)は払出要求数テーブルの一例を、同図(b)は払出加工テーブルの一例を、同図(c)はタイマ制御データテーブルの一例を、同図(d)はジャンプテーブルの一例をそれぞれ示した図である。   Next, a data table stored in the ROM 306 of the main control unit 300 of the pachinko machine 100 will be described with reference to FIGS. 327 (a) to (d). 2A is an example of a payout request number table, FIG. 2B is an example of a payout processing table, FIG. 2C is an example of a timer control data table, and FIG. 2D is a jump. It is the figure which showed an example of the table, respectively.

図327(a)に示す払出要求数テーブルは、パチンコ機100が賞球として遊技者に払い出す賞球数を記憶したデータテーブルである。詳細は後述するが、主制御部300は、この払出要求数テーブルを用いて払出制御部600に出力する払出要求数を選択し、払出要求数に加工を施した後、払出制御部600に出力する。例えば、第1特図始動口230への入球を所定の球検出センサが検出した場合には、主制御部300は、払出要求数として3を選択し、払出要求数に加工を施した後、払出制御部600に出力する。第2特図始動口232、一般入賞口226、または可変入賞口234への入球を所定の球検出センサが検出した場合も同様にして、主制御部300は、払出制御部600に払出要求数として4、10、または15をそれぞれ選択し、払出要求数に加工を施した後、払出制御部600に出力する。なお、詳細は後述するが、払出要求数を入力した払出制御部600は、主制御部300が加工を施した払出要求数の加工を解除して払出要求数を取得した後、払出装置152を駆動し、本実施例では、第1特図始動口230への入球では3個の球を、第2特図始動口232への入球では4個の球を、一般入賞口226への入球では10個の球を、可変入賞口234への入球では15個の球を、それぞれ賞球として貯留皿126に排出する。   The payout request number table shown in FIG. 327 (a) is a data table that stores the number of prize balls to be paid out to the player by the pachinko machine 100 as prize balls. Although details will be described later, the main control unit 300 selects the number of payout requests to be output to the payout control unit 600 using this payout request number table, processes the number of payout requests, and then outputs it to the payout control unit 600. To do. For example, when a predetermined ball detection sensor detects a ball entering the first special figure starting port 230, the main control unit 300 selects 3 as the number of payout requests, and after processing the number of payout requests , Output to the payout control unit 600. Similarly, when a predetermined ball detection sensor detects a ball entering the second special figure starting port 232, the general winning port 226, or the variable winning port 234, the main control unit 300 issues a payout request to the payout control unit 600. The number is selected as 4, 10, or 15, respectively, and after processing the number of payout requests, it is output to the payout control unit 600. Although the details will be described later, the payout control unit 600 that has input the payout request number cancels the processing of the payout request number processed by the main control unit 300 and acquires the payout request number, In this embodiment, three balls are entered into the first special figure starting port 230, four balls are entered into the second special figure starting port 232, and four balls are entered into the general winning port 226. Ten balls are discharged to the storage tray 126 as winning balls, and ten balls are discharged to the variable winning opening 234.

図327(b)に示す払出加工テーブルは、主制御部300が払出制御部600に出力する払出要求数を加工するために用いるデータテーブルである。詳細は後述するが、主制御部300は、この払出加工テーブルを用いて払出制御部600に出力する払出要求数を加工する。例えば、加工種別が0の場合には、主制御部300は、払出要求数と、加工データの00H(数値の後ろのHは数値が16進数であることを示す。以下同じ)を用いて、払出要求数に加工を施す。加工種別が1、2、または3の場合も同様にして、主制御部300は、払出要求数と、加工データの13H、2EH、または39Hを用いて、払出要求数に加工を施す。なお、加工データのビット0〜4はマスクの情報を示し、ビット5、6は加工種別の情報を示している。   The payout processing table shown in FIG. 327 (b) is a data table used for processing the number of payout requests that the main control unit 300 outputs to the payout control unit 600. Although details will be described later, the main control unit 300 processes the number of payout requests to be output to the payout control unit 600 using the payout processing table. For example, when the processing type is 0, the main control unit 300 uses the number of payout requests and 00H of the processing data (H after the numerical value indicates that the numerical value is a hexadecimal number. The same applies hereinafter) Process the number of payout requests. Similarly, when the processing type is 1, 2, or 3, the main control unit 300 processes the payout request number using the payout request number and the processing data 13H, 2EH, or 39H. In addition, bits 0 to 4 of the processing data indicate mask information, and bits 5 and 6 indicate processing type information.

図327(c)に示すタイマ制御データテーブルは、主制御部300が各種のタイマを更新するために用いるデータテーブルである。詳細は後述するが、主制御部300は、このタイマ制御データテーブルを用いて、更新周期の異なる複数種類のタイマ(この例では、約2ms毎に更新するタイマ1〜9の9種類のタイマと、約10ms毎に更新するタイマ10の1種類のタイマ)を更新する。   The timer control data table shown in FIG. 327 (c) is a data table used by the main control unit 300 to update various timers. Although details will be described later, the main control unit 300 uses the timer control data table to provide a plurality of types of timers having different update periods (in this example, nine types of timers 1 to 9 updated about every 2 ms) , One type of timer 10 that is updated approximately every 10 ms).

図327(d)に示すジャンプテーブルは、主制御部300のコマンド設定送信処理(詳細は後述)における複数種類の送信処理を識別するためにRAM308に設けた送信情報記憶領域の送信情報に含んでいる一般情報と、コマンド設定送信処理における各送信処理の先頭アドレスを記憶したデータテーブルである。詳細は後述するが、主制御部300は、このジャンプテーブルを用いて、一般情報からジャンプ先を選択し、選択したジャンプ先の処理を実行する。例えば、一般情報が01Hの場合には、主制御部300は、ジャンプ先として一般コマンド回転開始設定送信処理を選択し、この一般コマンド回転開始設定送信処理を実行する。他の一般情報も同様にして、一般情報が02Hの場合には一般コマンド回転停止設定送信処理を選択・実行し、一般情報が04Hの場合には一般コマンド入賞演出設定送信処理を選択・実行し、一般情報が08Hの場合には一般コマンド終了演出設定送信処理を選択・実行し、一般情報が10Hの場合には一般コマンド大入賞口開放設定送信処理を選択・実行し、一般情報が20Hの場合には一般コマンド大入賞口閉鎖設定送信処理を選択・実行する。これら処理の実行後に、送信情報記憶領域の送信情報を初期化し、ステップS9317の外部出力信号設定処理に処理を移行させる。
<払出制御部のデータテーブル>
The jump table shown in FIG. 327 (d) is included in the transmission information in the transmission information storage area provided in the RAM 308 to identify a plurality of types of transmission processes in the command setting transmission process (details will be described later) of the main control unit 300. This is a data table storing general information and the start address of each transmission process in the command setting transmission process. Although details will be described later, the main control unit 300 uses the jump table to select a jump destination from the general information, and executes processing of the selected jump destination. For example, when the general information is 01H, the main control unit 300 selects the general command rotation start setting transmission process as the jump destination, and executes this general command rotation start setting transmission process. Similarly, for other general information, when the general information is 02H, the general command rotation stop setting transmission process is selected and executed, and when the general information is 04H, the general command winning effect setting transmission process is selected and executed. When the general information is 08H, the general command end effect setting transmission process is selected and executed. When the general information is 10H, the general command big prize opening release transmission process is selected and executed, and the general information is 20H. In this case, the general command big prize opening closing setting transmission process is selected and executed. After executing these processes, the transmission information in the transmission information storage area is initialized, and the process proceeds to the external output signal setting process in step S9317.
<Data table of payout control unit>

次に、図327(e)を用いて、パチンコ機100の払出制御部600のROMが記憶しているデータテーブルについて説明する。なお、同図(e)は復元データテーブルの一例を示した図である。   Next, a data table stored in the ROM of the payout control unit 600 of the pachinko machine 100 will be described using FIG. 327 (e). FIG. 5E shows an example of the restoration data table.

図327(e)に示す復元データテーブルは払出制御部600が主制御部300から入力した、加工を施した払出要求数の加工を解除するために用いるデータテーブルである。詳細は後述するが、払出制御部600は、この復元データテーブルを用いて主制御部300から入力した、加工を施した払出要求数の加工を解除する。例えば、加工種別が0の場合には、払出制御部600は、主制御部300から入力した払出要求数と、加工データの00Hを用いて、払出要求数の加工を解除する。加工種別が1、2、または3の場合も同様にして、払出制御部600は、主制御部300から入力した払出要求数と、加工データの03H、0EH、または09Hを用いて、払出要求数の加工を解除する。
<主制御部リセット割り込み処理>
The restored data table shown in FIG. 327 (e) is a data table used for canceling processing of the number of payout requests processed by the payout control unit 600 input from the main control unit 300. Although details will be described later, the payout control unit 600 cancels the processing of the processed payout request number input from the main control unit 300 using the restored data table. For example, when the processing type is 0, the payout control unit 600 cancels processing of the payout request number using the payout request number input from the main control unit 300 and 00H of the processing data. Similarly, when the processing type is 1, 2, or 3, the payout control unit 600 uses the payout request number input from the main control unit 300 and the processing data of 03H, 0EH, or 09H to output the payout request number. Cancel the processing.
<Main control unit reset interrupt processing>

次に、図328を用いて、主制御部300のCPU304が実行する主制御部リセット割り込み処理について説明する。なお、同図は主制御部リセット割り込み処理の流れを示すフローチャートである。   Next, a main control unit reset interrupt process executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of main controller reset interrupt processing.

上述したように、主制御部300には、電源が投入されると起動信号(リセット信号)を出力する起動信号出力回路(リセット信号出力回路)340を設けている。この起動信号を入力した基本回路302のCPU304は、リセット割り込みによりリセットスタートしてROM306に予め記憶している制御プログラムに従って処理を実行する。   As described above, the main control unit 300 is provided with the start signal output circuit (reset signal output circuit) 340 that outputs the start signal (reset signal) when the power is turned on. The CPU 304 of the basic circuit 302 to which this activation signal has been input starts reset by a reset interrupt and executes processing in accordance with a control program stored in advance in the ROM 306.

ステップS9101では、初期設定1を行う。この初期設定1では、CPU304のスタックポインタ(SP)へのスタック初期値の設定、割り込みマスクの設定、I/Oポート310の初期設定、RAM308に記憶する各種変数の初期設定、WDT314への初期値の設定等を行う。なお、本実施例では、WDT314に、初期値として32.8msに相当する数値を設定する。   In step S9101, initial setting 1 is performed. In the initial setting 1, the stack initial value is set in the stack pointer (SP) of the CPU 304, the interrupt mask is set, the initial setting of the I / O port 310, the initial setting of various variables stored in the RAM 308, and the initial value in the WDT 314. Set up. In this embodiment, a numerical value corresponding to 32.8 ms is set as an initial value in WDT 314.

ステップS9102では、WDT314のリセットを行い、WDT314による時間計測を再始動する。   In step S9102, the WDT 314 is reset and the time measurement by the WDT 314 is restarted.

ステップS9103では、低電圧信号がオンであるか否か、すなわち、電圧監視回路338が、電源制御部660から主制御部300に供給している電源の電圧値が所定の値(本実施例では9V)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(CPU304が電源の遮断を検知した場合)にはステップS9102に戻り、低電圧信号がオフの場合(CPU304が電源の遮断を検知していない場合)にはステップS9104に進む。   In step S9103, whether or not the low voltage signal is ON, that is, the voltage value of the power source supplied from the power source control unit 660 to the main control unit 300 by the voltage monitoring circuit 338 is a predetermined value (in this embodiment, When the voltage is less than 9V), it is monitored whether or not a low voltage signal indicating that the voltage has decreased is output. Then, if the low voltage signal is on (when the CPU 304 detects that the power is cut off), the process returns to step S9102, and if the low voltage signal is off (if the CPU 304 does not detect that the power is cut off), the step is performed. The process proceeds to S9104.

ステップS9104では、初期設定2を行う。この初期設定2では、後述する主制御部タイマ割り込み処理を定期毎に実行するための周期を決める数値をカウンタ・タイマ312に設定する処理、I/O310の所定のポート(例えば試験用出力ポート、演出制御部への出力ポート)からクリア信号を出力する処理、RAM308への書き込みを許可する設定等を行う。   In step S9104, initial setting 2 is performed. In this initial setting 2, a process for setting a numerical value for determining a cycle for executing a main control unit timer interrupt process, which will be described later, to the counter / timer 312, a predetermined port of the I / O 310 (for example, a test output port, A process for outputting a clear signal from the output port to the effect control unit, a setting for permitting writing to the RAM 308, and the like are performed.

ステップS9105では、電源の遮断前(電断前)の状態に復帰するか否かの判定を行い、電断前の状態に復帰しない場合(主制御部300の基本回路302を初期状態にする場合)にはステップS9108に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS9108に進む。   In step S9105, it is determined whether or not to return to the state before the power interruption (before power interruption), and the state before the power interruption is not restored (when the basic circuit 302 of the main control unit 300 is set to the initial state). ), The process proceeds to step S9108. Similarly, if the power status information indicates information other than “suspend”, the process advances to step S9108.

具体的には、最初に、電源基板に設けた操作部を遊技店の店員などが操作した場合に送信されるRAMクリア信号がオン(操作があったことを示す)であるか否か、すなわちRAMクリアが必要であるか否かを判定し、RAMクリア信号がオンの場合(RAMクリアが必要な場合)には、基本回路302を初期状態にすべくステップS9108に進む。一方、RAMクリア信号がオフの場合(RAMクリアが必要でない場合)は、RAM308に設けた電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、この電源ステータスの情報がサスペンドを示す情報であるか否かを判定する。そして、電源ステータスの情報がサスペンドを示す情報でない場合には、基本回路302を初期状態にすべくステップS9108に進み、電源ステータスの情報がサスペンドを示す情報である場合には、RAM308の所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出し、算出したチェックサムの結果が特定の値(例えば0)であるか否か(チェックサムの結果が正常であるか否か)を判定する。そして、チェックサムの結果が特定の値(例えば0)の場合(チェックサムの結果が正常である場合)には電断前の状態に復帰すべくステップS9106に進み、チェックサムの結果が特定の値(例えば0)以外である場合(チェックサムの結果が異常である場合)には、パチンコ機100を初期状態にすべくステップS9108に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS9108に進む。   Specifically, first, a RAM clear signal transmitted when a store clerk or the like of the game shop operates the operation unit provided on the power supply board is turned on (indicating that there is an operation), that is, It is determined whether or not RAM clear is necessary, and if the RAM clear signal is on (RAM clear is necessary), the process advances to step S9108 to set the basic circuit 302 to the initial state. On the other hand, when the RAM clear signal is OFF (when the RAM clear is not necessary), the power status information stored in the power status storage area provided in the RAM 308 is read, and whether the power status information is information indicating suspend. Determine whether or not. If the power status information is not information indicating suspend, the process advances to step S9108 to set the basic circuit 302 to an initial state. If the power status information is information indicating suspend, a predetermined area of the RAM 308 is set. A checksum is calculated by adding all the 1-byte data stored in (for example, all areas) to a 1-byte register whose initial value is 0, and the calculated checksum results in a specific value (for example, 0) (whether or not the checksum result is normal). If the checksum result is a specific value (for example, 0) (if the checksum result is normal), the process proceeds to step S9106 to return to the state before the power interruption, and the checksum result is a specific value. If the value is other than 0 (for example, 0) (if the result of the checksum is abnormal), the process advances to step S9108 to set the pachinko machine 100 to the initial state. Similarly, if the power status information indicates information other than “suspend”, the process advances to step S9108.

ステップS9106では、機能限定ウェイト処理を行う(詳細は後述する)。   In step S9106, function-limited weight processing is performed (details will be described later).

ステップS9107では、復電時処理を行う。この復電時処理では、電断時にRAM308に設けられたスタックポインタ退避領域に記憶しておいたスタックポインタを読み出し、スタックポインタに再設定する。また、電断時にRAM308に設けられたレジスタ退避領域に記憶しておいた各レジスタの値を読み出し、各レジスタに再設定した後、割り込み許可の設定を行う。以降、CPU304が、再設定後のスタックポインタやレジスタに基づいて制御プログラムを実行する結果、パチンコ機100は電源断時の状態に復帰する。すなわち、電断直前にタイマ割り込み処理(後述)に分岐する直前に行った(ステップS9110、ステップS9111内の所定の)命令の次の命令から処理を再開する。   In step S9107, power recovery processing is performed. In this power recovery process, the stack pointer stored in the stack pointer save area provided in the RAM 308 at the time of power failure is read and reset to the stack pointer. In addition, the value of each register stored in the register save area provided in the RAM 308 at the time of power interruption is read out, reset to each register, and then the interrupt permission is set. Thereafter, as a result of the CPU 304 executing the control program based on the reset stack pointer and registers, the pachinko machine 100 returns to the state when the power is turned off. That is, the processing is resumed from the instruction next to the instruction (predetermined in steps S9110 and S9111) performed immediately before branching to the timer interrupt processing (described later) immediately before the power interruption.

ステップS9108では、初期化処理を行う。この初期化処理では、割り込み禁止の設定、スタックポインタへのスタック初期値の設定、RAM308の全ての記憶領域の初期化などを行う。   In step S9108, initialization processing is performed. In this initialization processing, interrupt prohibition setting, stack initial value setting to the stack pointer, initialization of all storage areas of the RAM 308, and the like are performed.

ステップS9109では、機能限定ウェイト処理を行う(詳細は後述する)。   In step S9109, function-limited weight processing is performed (details will be described later).

ステップS9110では、割り込み禁止の設定を行った後、基本乱数初期値更新処理を行う。この基本乱数初期値更新処理では、普図当選乱数カウンタ、および特図乱数値カウンタの初期値をそれぞれ生成するための2つの初期値生成用乱数カウンタと、普図タイマ乱数値、特図タイマ乱数値をそれぞれ生成するための2つの乱数カウンタを更新する。例えば、普図タイマ乱数値として取り得る数値範囲が0〜20とすると、RAM308に設けた普図タイマ乱数値を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が21であれば0を元の乱数カウンタ記憶領域に記憶する。他の初期値生成用乱数カウンタ、乱数カウンタもそれぞれ同様に更新する。また、この基本乱数初期値更新処理の終了後に割り込み許可の設定を行ってステップS9111に進む。   In step S9110, after setting for interrupt inhibition, basic random number initial value update processing is performed. In this basic random number initial value update process, two initial value generation random number counters for generating the initial values of the normal figure winning random number counter and the special figure random value counter, the normal figure timer random number value, and the special figure timer random number counter, respectively. Two random number counters for generating numerical values are updated. For example, if the range of values that can be taken as normal timer random numbers is 0 to 20, a value is acquired from a random number counter storage area for generating a normal timer random value provided in the RAM 308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 21, 0 is stored in the original random number counter storage area. Other initial value generation random number counters and random number counters are similarly updated. Further, after this basic random number initial value update process is completed, an interrupt permission is set, and the process proceeds to step S9111.

ステップS9111では、演出乱数更新処理を行う。この演出乱数更新処理では、主制御部300で使用する演出用乱数値を生成するための乱数カウンタを更新する。   In step S9111, effect random number update processing is performed. In this effect random number update process, a random number counter for generating an effect random number used by the main control unit 300 is updated.

主制御部300は、所定の周期ごとに開始するタイマ割り込み処理を行っている間を除いて、ステップS9110およびステップS9111の処理を繰り返し実行する。
<機能限定ウェイト処理>
The main control unit 300 repeatedly executes the processes of step S9110 and step S9111 except during the timer interrupt process starting at predetermined intervals.
<Function-limited weight processing>

次に、図329を用いて、上述の主制御部リセット割り込み処理における機能限定ウェイト処理(ステップS9106、ステップS9109)について説明する。なお、同図は機能限定ウェイト処理の流れを示すフローチャートである。   Next, the function limited wait process (steps S9106 and S9109) in the above-described main control unit reset interrupt process will be described with reference to FIG. This figure is a flowchart showing the flow of function-limited weight processing.

ステップS9201では、上述の電源ステータス記憶領域に記憶した電源ステータスの情報に機能限定状態を示す情報を設定すると共に、RAM308に設けた機能限定タイマ記憶領域に機能限定タイマの値として所定の数値(本実施例では3)を設定する。   In step S9201, information indicating the function limited state is set in the power status information stored in the power status storage area described above, and a predetermined numerical value (this value is set in the function limited timer storage area provided in the RAM 308). In the embodiment, 3) is set.

ステップS9202では、機能限定状態終了条件が成立しているか否か(本実施例では、上述の機能限定タイマ記憶領域から機能限定タイマの値を読み出し、機能限定タイマの値が0になっているか否か)を判定する。そして、機能限定状態終了条件が成立している場合(本実施例では、機能限定タイマが0である場合)はステップS9203に進み、機能限定状態終了条件が成立していない場合(本実施例では、機能限定タイマが0でない場合)はステップS9202の処理を繰り返し実行し、機能限定状態終了条件が成立するのを待つ(本実施例では、機能限定タイマが0になるのを待つ)。   In step S9202, whether or not a function limited state end condition is satisfied (in this embodiment, the value of the function limited timer is read from the function limited timer storage area described above and the value of the function limited timer is 0 or not). )). If the function limited state end condition is satisfied (in this embodiment, the function limited timer is 0), the process proceeds to step S9203, and if the function limited state end condition is not satisfied (in this embodiment, When the function limitation timer is not 0), the process of step S9202 is repeatedly executed to wait for the function limitation state end condition to be satisfied (in this embodiment, the function limitation timer waits for the function limitation timer to become 0).

ステップS9203では、上述の電源ステータス記憶領域に電源ステータスとして正常状態を示す情報を設定すると共に、RAM308に設けた加工種別記憶領域に、後述する加工種別の初期値を設定する。
<主制御部タイマ割り込み処理>
In step S9203, information indicating a normal state is set as the power status in the above-described power status storage area, and an initial value of a machining type described later is set in the machining type storage area provided in the RAM 308.
<Main controller timer interrupt processing>

次に、図330を用いて、主制御部300のCPU304が実行する主制御部タイマ割り込み処理について説明する。なお、同図は主制御部タイマ割り込み処理の流れを示すフローチャートである。   Next, main control unit timer interrupt processing executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of main controller timer interrupt processing.

主制御部300は、所定の周期(本実施例では約2msに1回)でタイマ割り込み信号を発生するカウンタ・タイマ312を備えており、このタイマ割り込み信号を契機として主制御部タイマ割り込み処理を所定の周期で開始する。   The main control unit 300 includes a counter / timer 312 that generates a timer interrupt signal at a predetermined cycle (in this embodiment, about once every 2 ms), and the main control unit timer interrupt processing is triggered by this timer interrupt signal. Start with a predetermined period.

ステップS9301では、タイマ割り込みスタート処理を行う。このタイマ割り込みスタート処理では、CPU304の各レジスタの値をスタック領域に一時的に退避する処理などを行う。   In step S9301, timer interrupt start processing is performed. In this timer interrupt start process, a process of temporarily saving the value of each register of the CPU 304 to the stack area is performed.

ステップS9302では、WDT314のカウント値が初期設定値(本実施例では32.8ms)を超えてWDT割り込みが発生しないように(処理の異常を検出しないように)、WDTを定期的に(本実施例では、主制御部タイマ割り込みの周期である約2msに1回)クリア&リスタートを行う。   In step S9302, the count value of WDT 314 exceeds the initial setting value (32.8 ms in the present embodiment), so that WDT interruption does not occur (so as not to detect abnormal processing), and WDT is periodically performed (this implementation). In the example, clear & restart is performed once in about 2 ms, which is the main controller timer interrupt cycle.

ステップS9303では、入力ポート状態更新処理を行う。この入力ポート状態更新処理では、I/O310の入力ポートを介して、上述のガラス枠開放センサ、前枠開放センサ、下皿満タンセンサ、複数の球検出センサを含む各種センサ320の検出信号を入力して検出信号の有無を監視し、RAM308に各種センサ320ごとに区画して設けた信号状態記憶領域に記憶する。本実施例では、前々回のタイマ割り込み処理(約4ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた前回検出信号記憶領域から読み出し、この情報をRAM308に各々の球検出センサごとに区画して設けた前々回検出信号記憶領域に記憶し、前回のタイマ割り込み処理(約2ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた今回検出信号記憶領域から読み出し、この情報を上述の前回検出信号記憶領域に記憶する。また、今回検出した各々の球検出センサの検出信号を、上述の今回検出信号記憶領域に記憶する。   In step S9303, input port state update processing is performed. In this input port state update process, detection signals from various sensors 320 including the glass frame opening sensor, the front frame opening sensor, the lower pan full sensor, and a plurality of ball detection sensors are input via the input port of the I / O 310. Then, the presence or absence of the detection signal is monitored and stored in the signal state storage area provided for each of the various sensors 320 in the RAM 308. In this embodiment, information on the presence or absence of the detection signal of each sphere detection sensor detected in the timer interruption process of the last time (about 4 ms before) is stored in the RAM 308 for each previous sphere detection sensor. This information is read from the area, and this information is stored in the RAM 308 in the detection signal storage area provided in advance for each sphere detection sensor, and the detection of each sphere detection sensor detected by the previous timer interruption process (about 2 ms before). Information on the presence or absence of a signal is read from the current detection signal storage area provided in the RAM 308 for each sphere detection sensor, and this information is stored in the previous detection signal storage area. Further, the detection signal of each sphere detection sensor detected this time is stored in the above-described current detection signal storage area.

また、ステップS9303では、上述の前々回検出信号記領域、前回検出信号記領域、および今回検出信号記領域の各記憶領域に記憶した各々の球検出センサの検出信号の有無の情報を比較し、各々の球検出センサにおける過去3回分の検出信号の有無の情報が一致するか否かを判定する。そして、各々の球検出センサにおいて過去3回分の検出信号の有無の情報が、予め定めた入賞判定パターン情報(本実施例では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)と一致した場合に、入賞口(一般入賞口226、可変入賞口234)や始動口(第1特図始動口230、第2特図始動口232)への入球、または普図始動口228の通過があったと判定する。例えば、一般入賞口226への入球を検出する球検出センサにおいて過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致した場合には、一般入賞口226へ入球したと判定し、以降の一般入賞口226への入球に伴う処理を行うが、過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致しなかった場合には、以降の一般入賞口226への入球に伴う処理を行わずに後続の処理に分岐する。   In step S9303, the information on the presence / absence of the detection signal of each sphere detection sensor stored in each storage area of the detection signal recording area, the previous detection signal recording area, and the current detection signal recording area is compared, It is determined whether or not the information on the presence / absence of detection signals for the past three times in the sphere detection sensor of the two sphere detection sensors matches. The information on the presence or absence of detection signals for the past three times in each sphere detection sensor is predetermined winning determination pattern information (in this embodiment, no previous detection signal, previous detection signal, this time detection signal) In the case of a match to the winning opening (general winning opening 226, variable winning opening 234) or starting opening (first special figure starting opening 230, second special drawing starting opening 232), or It is determined that the starting port 228 has passed. For example, if the information on the presence or absence of detection signals for the past three matches with the above-described winning determination pattern information in the ball detection sensor that detects the winning at the general winning opening 226, the player has entered the general winning opening 226. After determining and performing processing associated with entering the general winning opening 226 after that, if the information on the presence or absence of the detection signals for the past three times does not match the above-described winning determination pattern information, the subsequent general winning The process branches to the subsequent process without performing the process associated with entering the mouth 226.

ステップS9304およびステップS9305では、基本乱数初期値更新処理および基本乱数更新処理を行う。これらの基本乱数初期値更新処理および基本乱数更新処理では、上記ステップS9110で行った初期値生成用乱数カウンタの値の更新を行い、次に主制御部300で使用する普図当選乱数値および特図乱数値をそれぞれ生成するための2つの乱数カウンタを更新する。例えば、普図当選乱数値として取り得る数値範囲が0〜100とすると、RAM308に設けた普図当選乱数値を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が101であれば0を元の乱数カウンタ記憶領域に記憶する。また、取得した値に1を加算した結果、乱数カウンタが一周していると判定した場合にはそれぞれの乱数カウンタに対応する初期値生成用乱数カウンタの値を取得し、乱数カウンタの記憶領域にセットする。例えば、0〜100の数値範囲で変動する普図当選乱数値生成用の乱数カウンタから値を取得し、取得した値に1を加算した結果が、RAM308に設けた所定の初期値記憶領域に記憶している前回設定した初期値と等しい値(例えば7)である場合に、普図当選乱数値生成用の乱数カウンタに対応する初期値生成用乱数カウンタから値を初期値として取得し、普図当選乱数値生成用の乱数カウンタにセットすると共に、普図当選乱数値生成用の乱数カウンタが次に1周したことを判定するために、今回設定した初期値を上述の初期値記憶領域に記憶しておく。なお、普図当選乱数値生成用の乱数カウンタが次に1周したことを判定するための上述の初期値記憶領域とは別に、特図乱数生成用の乱数カウンタが1周したことを判定するための初期値記憶領域をRAM308に設けている。   In step S9304 and step S9305, basic random number initial value update processing and basic random number update processing are performed. In these basic random number initial value update processing and basic random number update processing, the value of the initial value generation random number counter performed in step S9110 is updated, and then the normal winning random number value and special value used in the main control unit 300 are updated. The two random number counters for generating the figure random number values are updated. For example, if the range of values that can be taken as a random number value for a normal winning number is 0 to 100, a value is acquired from a random number counter storage area for generating a normal winning random number value provided in the RAM 308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 101, 0 is stored in the original random number counter storage area. If it is determined that the random number counter has made one round as a result of adding 1 to the acquired value, the value of the initial value generating random number counter corresponding to each random number counter is acquired and stored in the storage area of the random number counter. set. For example, a value is acquired from a random number counter for generating a regular winning random number that fluctuates in a numerical range of 0 to 100, and a result obtained by adding 1 to the acquired value is stored in a predetermined initial value storage area provided in the RAM 308. If the value is equal to the previously set initial value (for example, 7), the value is acquired as an initial value from the initial value generation random number counter corresponding to the random number counter for generating the random number for winning the normal number, The initial value set this time is stored in the above-described initial value storage area in order to determine that the random number counter for generating the winning random number value has made one round next time, in addition to setting it in the random number counter for generating the winning random value Keep it. In addition to the above-described initial value storage area for determining that the random number counter for generating the regular-winning random number next makes one round, it is determined that the random number counter for generating the special figure random number has made one round. An initial value storage area is provided in the RAM 308.

ステップS9306では、演出乱数更新処理を行う。この演出乱数更新処理では、主制御部300で使用する演出用乱数値を生成するための乱数カウンタを更新する。   In step S9306, effect random number update processing is performed. In this effect random number update process, a random number counter for generating an effect random number used by the main control unit 300 is updated.

ステップS9307では、上述の電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、読み出した電源ステータスの情報が機能限定状態を示す情報であるか否かを判定する。そして、電源ステータスの情報が機能限定状態を示す情報の場合には、後続のステップS9308〜ステップS9317の処理を行うことなくステップS9318に進み、そうでない場合にはステップS9308に進む。   In step S9307, the power status information stored in the power status storage area is read, and it is determined whether or not the read power status information is information indicating a function limited state. If the power status information is information indicating a function limited state, the process proceeds to step S9318 without performing the subsequent processes in steps S9308 to S9317, and otherwise proceeds to step S9308.

ステップS9308では、タイマ更新処理を行う。詳細は後述するが、このタイマ更新処理では、普通図柄表示装置210に図柄を変動・停止表示する時間を計時するための普図表示図柄更新タイマ、特別図柄表示装置212、214に図柄を変動・停止表示する時間を計時するための特図表示図柄更新タイマ、所定の入賞演出時間、所定の開放時間、所定の閉鎖時間、所定の終了演出期間などを計時するためのタイマなどを含む各種タイマを更新する。   In step S9308, timer update processing is performed. Although details will be described later, in this timer update process, the normal symbol display device 210, 214 is used to measure the time for the normal symbol display device 210 to display the time when the symbol is changed or stopped. Various timers including a special figure display symbol update timer for timing the stop display time, a timer for timing a predetermined winning effect time, a predetermined opening time, a predetermined closing time, a predetermined end effect period, etc. Update.

ステップS9309では、入賞口カウンタ更新処理を行う。この入賞口カウンタ更新処理では、入賞口(一般入賞口226、第1、第2特図始動口230、232、および可変入賞口234)に入賞(入球)があった場合に、RAM308に各入賞口ごとに設けた賞球数記憶領域の値を読み出し、1を加算して、元の賞球数記憶領域に設定する。   In step S9309, winning prize counter updating processing is performed. In this winning opening counter updating process, when there is a winning (winning) in the winning opening (general winning opening 226, first and second special figure starting openings 230, 232, and variable winning opening 234), The value of the winning ball number storage area provided for each winning opening is read, and 1 is added to set the original winning ball number storage area.

また、ステップS9310では、入賞受付処理を行う。この入賞受付処理では、第1、第2特図始動口230、232に入賞があり、且つ、保留している特図変動遊技の数が4未満である場合には、入賞した始動口に対応するカウンタ回路318のカウンタ値記憶用レジスタから値を特図当選乱数値として取得する。また、上述の特図乱数値生成用の乱数カウンタから値を特図乱数値として取得し、RAM308に設けた乱数値記憶領域に特図当選乱数値と共に記憶する。また、普図始動口228を球が通過したことを検出し、且つ、保留している普図変動遊技の数が2未満の場合には、そのタイミングにおける普図当選乱数値生成用の乱数カウンタの値を普図当選乱数値として取得し、RAM308に設けた上述の特図用とは別の乱数値記憶領域に記憶する。また、この入賞受付処理では、所定の球検出センサにより第1、第2特図始動口230、232、普図始動口228、または可変入賞口234の入賞(入球)を検出した場合に、第1副制御部400に送信すべき送信情報に、第1、第2特図始動口230、232、普図始動口228、および可変入賞口234の入賞(入球)の有無を示す入賞受付情報を設定する。   In step S9310, a winning acceptance process is performed. In this winning acceptance process, if the first and second special figure starting ports 230 and 232 have won a prize and the number of special figure variable games held is less than four, the winning starting port corresponds to The value is acquired from the counter value storage register of the counter circuit 318 to be a special figure winning random number value. In addition, a value is acquired as a special figure random value from the random number counter for generating the special figure random value described above, and stored in a random value storage area provided in the RAM 308 together with the special figure winning random number value. In addition, when it is detected that the ball has passed through the general chart start opening 228 and the number of the general chart variable games held is less than two, a random number counter for generating a regular figure winning random number value at that timing Is obtained as a random number value for normal winning, and is stored in a random number value storage area provided in the RAM 308 different from that for the above special figure. Further, in this winning acceptance process, when a predetermined ball detection sensor detects a winning (winning) of the first, second special figure starting port 230, 232, the ordinary drawing starting port 228, or the variable winning port 234, A winning acceptance indicating whether or not the first and second special figure starting ports 230 and 232, the ordinary drawing starting port 228, and the variable winning port 234 have won (entered) in the transmission information to be transmitted to the first sub-control unit 400. Set the information.

ステップS9311では、払出要求数送信処理を行う(詳細は後述する)。なお、払出制御部600に出力する出力予定情報および払出要求情報は1バイトで構成しており、ビット7にストローブ情報(オンの場合、データをセットしていることを示す)、ビット6に電源投入情報(オンの場合、電源投入後一回目のコマンド送信であることを示す)、ビット4〜5に今回加工種別(0〜3)、およびビット0〜3に加工後の払出要求数を示すようにしている。   In step S9311, a payout request number transmission process is performed (details will be described later). The output schedule information and the payout request information output to the payout control unit 600 are composed of 1 byte, strobe information in bit 7 (indicating that data is set when on), and power supply in bit 6. Input information (when ON, indicates that this is the first command transmission after power-on), bits 4-5 indicate the current processing type (0-3), and bits 0-3 indicate the number of payout requests after processing I am doing so.

ステップS9312では、普図状態更新処理を行う。この普図状態更新処理は、普図の状態に対応する複数の処理のうちの1つの処理を行う。例えば、普図変動中(後述する普図汎用タイマの値が1以上)における普図状態更新処理では、普図表示装置112を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。   In step S9312, a normal state update process is performed. This normal state update process performs one of a plurality of processes corresponding to the normal state. For example, in a general diagram state update process during a normal map change (a general-purpose general-purpose timer value to be described later is 1 or more), on / off drive control for repeatedly turning on and off the 7-segment LED constituting the general map display device 112 is performed. Do.

また、普図変動表示時間が経過したタイミング(普図表示図柄更新タイマの値が1から0になったタイミング)における普図状態更新処理では、当りフラグがオンの場合には、図76(c)に示す普図Aの態様となるように普図表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行い、当りフラグがオフの場合には、図76(c)に示す普図Bの態様となるように普図表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行うと共に、その後、所定の停止表示期間(例えば500m秒間)その表示を維持するためにRAM308に設けた普図停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により普図の停止表示を行い、普図変動遊技の結果を遊技者に報知するようにしている。   Further, in the general chart state update process at the timing when the normal map change display time has elapsed (the timing when the value of the general map display symbol update timer has changed from 1 to 0), when the hit flag is on, FIG. When the 7-segment LED constituting the general map display device 210 is turned on / off so as to be in the form of the general map A shown in FIG. The 7-segment LED constituting the ordinary display device 210 is controlled to be turned on / off so as to be in the mode B, and thereafter provided in the RAM 308 to maintain the display for a predetermined stop display period (for example, 500 msec). In addition, information indicating the stop period is set in the storage area of the normal stop time management timer. With this setting, the usual figure is stopped and the result of the usual figure variable game is notified to the player.

また、所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、当りフラグがオンの場合には、所定の開放期間(例えば2秒間)、第2特図始動口232の羽根部材の開閉駆動用のソレノイド332に、羽根部材を開放状態に保持する信号を出力するとともに、RAM308に設けた羽根開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。   Further, in the normal state update process that starts at the timing when the predetermined stop display period ends (when the value of the normal stop time management timer value changes from 1 to 0), if the hit flag is on, the predetermined state is displayed. During the opening period (for example, 2 seconds), a signal for holding the blade member in the open state is output to the solenoid 332 for opening and closing the blade member of the second special-purpose start port 232, and the blade opening time management provided in the RAM 308 is performed. Information indicating the release period is set in the storage area of the timer.

また、所定の開放期間が終了したタイミング(羽根開放時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、所定の閉鎖期間(例えば500m秒間)、羽根部材の開閉駆動用のソレノイド332に、羽根部材を閉鎖状態に保持する信号を出力するとともに、RAM308に設けた羽根閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。   In the usual state update process that starts at the timing when the predetermined opening period ends (the timing when the value of the blade opening time management timer is changed from 1 to 0), the blade member has a predetermined closing period (for example, 500 milliseconds). A signal for holding the blade member in the closed state is output to the opening / closing drive solenoid 332, and information indicating the closing period is set in the storage area of the blade closing time management timer provided in the RAM 308.

また、所定の閉鎖期間を経過したタイミング(羽根閉鎖時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、普図の状態を非作動中に設定する。普図の状態が非作動中の場合における普図状態更新処理では、何もせずに次のステップS9313に移行するようにしている。   In the normal state update process that starts at the timing when a predetermined closing period has elapsed (the timing when the value of the blade closing time management timer changes from 1 to 0), the normal state is set to inactive. In the normal state update process when the normal state is inactive, the process proceeds to the next step S9313 without doing anything.

ステップS9313では、普図関連抽選処理を行う。この普図関連抽選処理では、普図変動遊技および第2特図始動口232の開閉制御を行っておらず(普図の状態が非作動中)、且つ、保留している普図変動遊技の数が1以上である場合に、上述の乱数値記憶領域に記憶している普図当選乱数値に基づいた乱数抽選により普図変動遊技の結果を当選とするか、不当選とするかを決定する当り判定をおこない、当選とする場合にはRAM308に設けた当りフラグにオンを設定する。不当選の場合には、当りフラグにオフを設定する。また、当り判定の結果に関わらず、次に上述の普図タイマ乱数値生成用の乱数カウンタの値を普図タイマ乱数値として取得し、取得した普図タイマ乱数値に基づいて複数の変動時間のうちから普図表示装置210に普図を変動表示する時間を1つ選択し、この変動表示時間を、普図変動表示時間として、RAM308に設けた普図変動時間記憶領域に記憶する。なお、保留している普図変動遊技の数は、RAM308に設けた普図保留数記憶領域に記憶するようにしており、当り判定をするたびに、保留している普図変動遊技の数から1を減算した値を、この普図保留数記憶領域に記憶し直すようにしている。また当り判定に使用した乱数値を消去する。   In step S9313, a general drawing related lottery process is performed. In this general map-related lottery process, the open / close control of the general map variable game and the second special map start port 232 is not performed (the state of the general map is not in operation), and the pending general map variable game is not held. When the number is 1 or more, it is decided whether to win or not to win the result of the variable figure game by random lottery based on the random number value stored in the random number value storage area. When the winning judgment is made and the winning is made, the winning flag provided in the RAM 308 is set to ON. If unsuccessful, turn off the winning flag. Regardless of the result of the hit determination, next, the value of the random number counter for generating the normal figure timer random value is acquired as the normal figure timer random number value, and a plurality of fluctuation times are obtained based on the acquired general figure timer random number value. One time is selected for variably displaying the normal map on the general map display device 210, and this variable display time is stored as a normal map variable display time in a general map variable time storage area provided in the RAM 308. In addition, the number of pending general figure variable games is stored in the usual figure pending number storage area provided in the RAM 308, and from the number of pending custom figure variable games each time a hit determination is made. The value obtained by subtracting 1 is re-stored in the usual figure number-of-holds storage area. Also, the random number value used for the hit determination is deleted.

ステップS9314では、特図状態更新処理を行う。この特図状態更新処理は、特図の状態に応じて、次の8つの処理のうちの1つの処理を行う。例えば、特図変動中(後述する特図汎用タイマの値が1以上)における特図状態更新処理では、特図表示装置212、214を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。   In step S9314, special figure state update processing is performed. In the special figure state update process, one of the following eight processes is performed according to the state of the special figure. For example, in special figure state update processing during special figure fluctuation (the value of a special figure general-purpose timer to be described later is 1 or more), lighting / extinguishing driving that repeatedly turns on and off the 7-segment LEDs constituting the special figure display devices 212 and 214 Take control.

また、特図変動表示時間が経過したタイミング(特図表示図柄更新タイマの値が1から0になったタイミング)で開始する特図状態更新処理では、大当りフラグがオンで確変フラグがオンの場合には特図表示装置212、214に図76(a)に示す特図A等、大当りフラグがオンで確変フラグがオフの場合には特図表示装置212、214に図76(a)に示す特図B等、大当りフラグがオフの場合には、図3(a)に示す特図I等の態様となるように特図表示装置212、214を構成する7セグメントLEDの点灯・消灯駆動制御を行うと共に、その後、所定の停止表示期間(例えば500m秒間)その表示を維持するためにRAM308に設けた特図停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により特図の停止表示をおこない、特図変動遊技の結果を遊技者に報知するようにしている。また、コマンド設定送信処理(ステップS9316)で一般コマンド回転停止設定送信処理を実行させるために上述の送信情報記憶領域に02Hを送信情報(一般情報)として追加記憶する。   Also, in the special figure state update process that starts at the timing when the special figure change display time has elapsed (when the special figure display symbol update timer value changes from 1 to 0), the big hit flag is on and the probability variation flag is on When the big hit flag is on and the probability variation flag is off, such as the special figure A shown in FIG. 76 (a) in the special figure display devices 212 and 214, the special figure display devices 212 and 214 shown in FIG. 76 (a). When the big hit flag is off, such as special figure B, the 7 segment LED constituting the special figure display devices 212, 214 is controlled to be turned on / off so that the special figure I shown in FIG. After that, information indicating the stop period is set in the storage area of the special figure stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 msec). With this setting, the special figure is stopped and displayed, and the result of the special figure variable game is notified to the player. In addition, 02H is additionally stored as transmission information (general information) in the transmission information storage area described above in order to execute the general command rotation stop setting transmission process in the command setting transmission process (step S9316).

また、所定の停止表示期間が終了したタイミング(特図停止時間管理用タイマの値が1から0になったタイミング)で開始する特図状態更新処理では、大当りフラグがオンの場合には、所定の入賞演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを開始することを遊技者に報知する画像を表示している期間待機するためにRAM308に設けた特図待機時間管理用タイマの記憶領域に入賞演出期間を示す情報を設定する。また、コマンド設定送信処理(ステップS9316)で一般コマンド入賞演出設定送信処理を実行させるために上述の送信情報記憶領域に04Hを送信情報(一般情報)として追加記憶する。   Also, in the special figure state update process that starts at the timing when the predetermined stop display period ends (when the value of the special figure stop time management timer changes from 1 to 0), if the big hit flag is on, a predetermined A special figure waiting time management timer provided in the RAM 308 for waiting for a period during which an image for notifying the player that a big hit by the decorative symbol display device 208 is started, that is, a bonus winning period (for example, 3 seconds) is displayed. Information indicating the winning effect period is set in the storage area. Further, 04H is additionally stored as transmission information (general information) in the transmission information storage area described above in order to execute the general command winning effect setting transmission process in the command setting transmission process (step S9316).

また、所定の入賞演出期間が終了したタイミング(特図待機時間管理用タイマの値が1から0になったタイミング)で開始する特図状態更新処理では、所定の開放期間(例えば29秒間、または可変入賞口234に所定球数(例えば10球)の遊技球の入賞を検出するまで)可変入賞口234の扉部材の開閉駆動用のソレノイド332に、扉部材を開放状態に保持する信号を出力するとともに、RAM308に設けた扉開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。また、コマンド設定送信処理(ステップS9316)で一般コマンド大入賞口開放設定送信処理を実行させるために上述の送信情報記憶領域に10Hを送信情報(一般情報)として追加記憶する。   Also, in the special figure state update process that starts at the timing when the predetermined winning effect period ends (the timing when the special figure standby time management timer value changes from 1 to 0), a predetermined release period (for example, 29 seconds or A signal for holding the door member in an open state is output to the solenoid 332 for opening / closing the door member of the variable prize opening 234 until a winning of a predetermined number of game balls (for example, 10 balls) is detected at the variable prize opening 234. At the same time, information indicating the opening period is set in the storage area of the door opening time management timer provided in the RAM 308. Further, 10H is additionally stored as transmission information (general information) in the above-described transmission information storage area in order to execute the general command big prize opening release setting transmission process in the command setting transmission process (step S9316).

また、所定の開放期間が終了したタイミング(扉開放時間管理用タイマの値が1から0になったタイミング)で開始する特図状態更新処理では、所定の閉鎖期間(例えば1.5秒間)可変入賞口234の扉部材の開閉駆動用のソレノイド332に、扉部材を閉鎖状態に保持する信号を出力するとともに、RAM308に設けた扉閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。また、コマンド設定送信処理(ステップS9316)で一般コマンド大入賞口閉鎖設定送信処理を実行させるために上述の送信情報記憶領域に20Hを送信情報(一般情報)として追加記憶する。   In the special figure state update process that starts at the timing when the predetermined opening period ends (the timing when the door opening time management timer value changes from 1 to 0), the predetermined closing period (for example, 1.5 seconds) is variable. A signal for holding the door member in a closed state is output to the solenoid 332 for opening and closing the door member of the winning opening 234, and information indicating the closing period is set in the storage area of the door closing time management timer provided in the RAM 308. To do. Further, 20H is additionally stored as transmission information (general information) in the above-described transmission information storage area in order to execute the general command big prize opening closing setting transmission process in the command setting transmission process (step S9316).

また、この扉部材の開放・閉鎖制御を所定回数(例えば15ラウンド)繰り返し、終了したタイミングで開始する特図状態更新処理では、所定の終了演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを終了することを遊技者に報知する画像を表示している期間待機するように設定するためにRAM308に設けた演出待機時間管理用タイマの記憶領域に演出待機期間を示す情報を設定する。また、コマンド設定送信処理(ステップS9316)で一般コマンド終了演出設定送信処理を実行させるために上述の送信情報記憶領域に08Hを送信情報(一般情報)として追加記憶する。   Further, in the special figure state update process that is repeated at a predetermined timing (for example, 15 rounds) by repeating the opening / closing control of the door member a predetermined number of times (for example, for 3 seconds), that is, by the decorative symbol display device 208. Information indicating the effect standby period is set in the storage area of the effect standby time management timer provided in the RAM 308 in order to set to wait for a period during which an image for informing the player that the big hit is to be ended is displayed. Further, 08H is additionally stored as transmission information (general information) in the above-described transmission information storage area in order to execute the general command end effect setting transmission process in the command setting transmission process (step S9316).

また、所定の終了演出期間が終了したタイミング(演出待機時間管理用タイマの値が1から0になったタイミング)で開始する特図状態更新処理では、特図の状態を非作動中に設定する。特図の状態が非作動中の場合における特図状態更新処理では、何もせずに次のステップS9315に移行するようにしている。   Further, in the special figure state update process which starts at the timing when the predetermined end production period ends (the timing when the production standby time management timer value changes from 1 to 0), the special figure state is set to inactive. . In the special figure state update process when the special figure is in a non-operating state, nothing is done and the process proceeds to the next step S9315.

ステップS9315では、特図関連抽選処理を行う。この特図関連抽選処理では、特図変動遊技および可変入賞口234の開閉制御を行っておらず(特図の状態が非作動中)、且つ、保留している特図変動遊技の数が1以上である場合に、上述の図326(a)の大当り判定テーブル、同図(b)の高確率状態移行判定テーブル、同図(c)のタイマ番号決定テーブルなどを使用した各種抽選のうち、最初に大当り判定を行う。具体的には、ステップS9203で乱数値記憶領域に記憶した特図当選乱数値が、図326(a)に示す大当り判定テーブルの第1特図始動口用抽選データの数値範囲であるか否かを判定し、特図当選乱数値が第1特図始動口用抽選データの数値範囲である場合には、特図変動遊技の当選と判定してRAM308に設けた大当りフラグの格納領域に大当りとなることを示す情報を設定する(ここで、大当りの情報をRAM308に設定することを大当りフラグをオンに設定するという)。一方、特図当選乱数値が第1特図始動口用抽選データの数値範囲以外である場合には、特図変動遊技の外れと判定してRAM308に設けた大当りフラグの格納領域に外れとなることを示す情報を設定する(ここで、外れの情報をRAM308に設定することを大当りフラグをオフに設定するという)。なお、保留している特図変動遊技の数は、RAM308に設けた特図保留数記憶領域に記憶するようにしており、当り判定をするたびに、保留している特図変動遊技の数から1を減算した値を、この特図保留数記憶領域に記憶し直すようにしている。また、当り判定に使用した乱数値を消去する。   In step S9315, special drawing related lottery processing is performed. In this special drawing-related lottery process, the opening / closing control of the special figure variable game and the variable winning opening 234 is not performed (the state of the special figure is inactive), and the number of special figure variable games held is one. In the case of the above, among the various lotteries using the jackpot determination table of FIG. 326 (a), the high probability state transition determination table of FIG. (B), the timer number determination table of FIG. First, a big hit judgment is performed. Specifically, whether or not the special figure winning random number value stored in the random value storage area in step S9203 is within the numerical range of the first special figure starting port lottery data in the jackpot determination table shown in FIG. 326 (a). If the special figure winning random number value is within the numerical range of the lottery data for the first special figure starting port, it is determined that the special figure variable game is won and the big hit flag storage area provided in the RAM 308 (Here, setting the jackpot information in the RAM 308 is setting the jackpot flag to ON). On the other hand, when the special figure winning random number value is outside the numerical range of the first special figure starting port lottery data, it is determined that the special figure variable game is out and the big hit flag storage area provided in the RAM 308 is out. (In this case, setting outlier information in the RAM 308 is setting the jackpot flag off). Note that the number of special figure variable games held is stored in the special figure hold number storage area provided in the RAM 308. Each time a hit determination is made, the number of special figure variable games held is determined. The value obtained by subtracting 1 is stored again in this special figure reservation number storage area. In addition, the random number value used for the hit determination is deleted.

具体例としては、遊技状態が低確率状態であり、第1特図始動口230への球入賞の検出に基づいて取得した特図当選乱数値が10100の場合は大当りフラグをオンに設定し、特図当選乱数値が10200の場合は大当りフラグをオフに設定する。また、第2特図始動口232への球入賞の検出に基づいて取得した特図当選乱数値が20100の場合は大当りフラグをオンに設定し、特図当選乱数値が20200の場合は大当りフラグをオフに設定する。   As a specific example, when the gaming state is a low probability state, and the special figure winning random number value acquired based on the detection of the ball winning to the first special figure starting port 230 is 10100, the jackpot flag is set to ON, When the special figure winning random number is 10200, the jackpot flag is set to OFF. Further, when the special figure winning random number acquired based on the detection of the ball winning at the second special figure starting port 232 is 20100, the big hit flag is set to ON, and when the special figure winning random number is 20200, the big hit flag is set. Set to off.

大当りフラグにオンを設定した場合には、次に確変移行判定を行う。具体的には、ステップS9203で乱数値記憶領域に記憶した特図乱数値が、図326(b)に示す移行判定乱数の数値範囲であるか否かを判定し、特図乱数値が抽選データの数値範囲である場合には、RAM308に設けた確変(確率変動)フラグの格納領域に、特別大当り遊技を開始することを示す情報を設定する。(ここで、特別大当り遊技開始の情報をRAM308に設定することを確変フラグをオンに設定するという)。一方、特図乱数値が抽選データの数値範囲以外である場合には、上述の確変フラグの格納領域に、大当り遊技を開始することを示す情報を設定する(ここで、大当り遊技開始の情報をRAM308に設定することを確変フラグをオフに設定するという)。例えば、取得した特図乱数値が20の場合には確変フラグをオンに設定する。一方、取得した特図乱数値が特図乱数値が80の場合には確変フラグをオフに設定する。   If the big hit flag is set to ON, the probability variation transition determination is performed next. Specifically, it is determined whether or not the special figure random number value stored in the random value storage area in step S9203 is within the numerical range of the transition determination random number shown in FIG. 326 (b), and the special figure random number value is the lottery data. Is set in the storage area of the probability variation (probability variation) flag provided in the RAM 308, information indicating that a special big hit game is started. (Here, setting the special jackpot game start information in the RAM 308 is referred to as setting the probability variation flag to ON). On the other hand, when the special figure random number value is outside the numerical range of the lottery data, information indicating that the big hit game is started is set in the above-described probability variation flag storage area (where the big hit game start information is set). Setting in the RAM 308 is referred to as setting the probability variation flag off). For example, if the acquired special figure random number value is 20, the probability variation flag is set to ON. On the other hand, when the acquired special figure random value is 80, the probability variation flag is set to OFF.

大当り判定の結果に関わらず、次にタイマ番号を決定する処理を行う。具体的には、上述の特図タイマ乱数値生成用の乱数カウンタの値を特図タイマ乱数値として取得する。大当りフラグの値、および取得した特図タイマ乱数値を含む図326(c)に示すタイマ乱数の数値範囲に対応するタイマ番号を選択し、RAM308に設けた所定のタイマ番号格納領域に記憶する。さらに、そのタイマ番号に対応する変動時間を、特図変動表示時間として、上述の特図表示図柄更新タイマに記憶し、コマンド設定送信処理(ステップS9316)で一般コマンド回転開始設定送信処理を実行させるために上述の送信情報記憶領域に01Hを送信情報(一般情報)として追加記憶してから処理を終了する。   Regardless of the result of the big hit determination, the process for determining the timer number is performed next. Specifically, the value of the random counter for generating the special figure timer random value described above is acquired as the special figure timer random value. A timer number corresponding to the numerical value range of the timer random number shown in FIG. 326 (c) including the value of the big hit flag and the acquired special figure timer random number value is selected and stored in a predetermined timer number storage area provided in the RAM 308. Further, the fluctuation time corresponding to the timer number is stored as the special figure fluctuation display time in the special figure display symbol update timer, and the general command rotation start setting transmission process is executed in the command setting transmission process (step S9316). For this reason, 01H is additionally stored as transmission information (general information) in the transmission information storage area described above, and the process ends.

例えば、大当りフラグがオフで、取得した特図タイマ乱数値が50000の場合には、特図タイマ乱数値は0〜60235の範囲であることから、タイマ番号決定テーブルのそれらの条件に対応する1行目に記憶しているタイマ番号を示すタイマ1、および変動時間を示す5を選択し、RAM308に設けたそれぞれの記憶領域に記憶する。一方、大当りフラグがオンで、取得した特図タイマ乱数値が64000の場合には、特図タイマ乱数値は0〜15535の範囲ではないことからタイマ2は選択せず、15536〜24535ではないことからタイマ3は選択せず、24536〜62535ではないことからタイマ4は選択しないが、62536〜65535の範囲内であることから、タイマ番号決定テーブルのそれらの条件に対応する8行目に記憶しているタイマ番号を示すタイマ5、および変動時間を示す50を選択し、RAM308に設けたそれぞれの記憶領域に記憶する。なお、割り込み処理の開始周期である2msを考慮して、選択した変動時間の値に500(1000ms/2ms)を掛けた値を変動時間記憶領域にセットする。例えば、変動時間が5秒の場合には、変動時間記憶領域には2500の値を初期値としてセットし、ステップS9308のタイマ更新処理を実行する度に、この変動時間記憶領域の値を1だけ減算するようにすることで、割り込み処理の実行回数により時間の経過を計測できるようにしている。また、複数回(例えば5回)のタイマ割込処理の実行ごと(例えば2ms周期)に変動時間記憶領域の値を減算する場合には、変動時間が10秒の場合であれば、10秒が10000msであることから周期(2ms×5)で割り算して1000を変動時間記憶領域に設定する。   For example, when the big hit flag is off and the acquired special figure timer random number value is 50000, the special figure timer random number value is in the range of 0 to 60235, so 1 corresponding to those conditions of the timer number determination table. The timer 1 indicating the timer number stored in the line and 5 indicating the variation time are selected and stored in the respective storage areas provided in the RAM 308. On the other hand, when the big hit flag is on and the acquired special figure timer random number value is 64000, the special figure timer random number value is not in the range of 0 to 15535, so the timer 2 is not selected and it is not 15536 to 24535. Timer 3 is not selected, and timer 4 is not selected because it is not 24536 to 62535. However, since it is within the range of 62536 to 65535, it is stored in the eighth line corresponding to those conditions in the timer number determination table. The timer 5 indicating the timer number and the variable time 50 are selected and stored in the respective storage areas provided in the RAM 308. In consideration of 2 ms which is the start cycle of the interrupt processing, a value obtained by multiplying the selected variation time value by 500 (1000 ms / 2 ms) is set in the variation time storage area. For example, when the variation time is 5 seconds, a value of 2500 is set as an initial value in the variation time storage area, and the value of the variation time storage area is set to 1 each time the timer update process in step S9308 is executed. By subtracting, the passage of time can be measured by the number of execution times of interrupt processing. Further, when the value of the variable time storage area is subtracted every time (for example, five times) the timer interrupt process is executed (for example, 2 ms cycle), if the variable time is 10 seconds, 10 seconds is required. Since it is 10000 ms, dividing by the period (2 ms × 5) sets 1000 to the variable time storage area.

ステップS9316では、コマンド設定送信処理を行う(詳細は後述する)。なお、演出制御部350に送信する出力予定情報は16ビットで構成しており、ビット15はストローブ情報(オンの場合、データをセットしていることを示す)、ビット11〜14はコマンド種別(00Hの場合は基本コマンド、01Hの場合は図柄変動開始コマンド、04Hの場合は図柄変動停止コマンド、05Hの場合は入賞演出開始コマンド、06Hの場合は終了演出開始コマンド、07Hの場合は大当りラウンド数指定コマンド、0EHの場合は復電コマンド、0FHの場合はRAMクリアコマンドをそれぞれ示すなどコマンドの種類を特定可能な情報)、ビット0〜10はコマンドデータ(コマンド種別に対応する所定の情報)で構成している。   In step S9316, command setting transmission processing is performed (details will be described later). The output schedule information to be transmitted to the effect control unit 350 is composed of 16 bits, bit 15 is strobe information (indicating that data is set when ON), bits 11 to 14 are command types ( 00H is a basic command, 01H is a symbol change start command, 04H is a symbol change stop command, 05H is a winning effect start command, 06H is an end effect start command, and 07H is a big hit number of rounds. Designated command, information that can specify the type of command such as a power recovery command in the case of 0EH and a RAM clear command in the case of 0FH), and bits 0 to 10 are command data (predetermined information corresponding to the command type) It is composed.

具体的には、ストローブ情報は上述のコマンド送信処理でオン、オフするようにしている。また、コマンド種別が図柄変動開始コマンドの場合であればコマンドデータに、大当りフラグの値、確変フラグの値、特図関連抽選処理で選択したタイマ番号などを示す情報を含み、図柄変動停止コマンドの場合であれば、大当りフラグの値、確変フラグの値などを含み、入賞演出コマンドおよび終了演出開始コマンドの場合であれば、確変フラグの値などを含み、大当りラウンド数指定コマンドの場合であれば確変フラグの値、大当りラウンド数などを含むようにしている。コマンド種別が基本コマンドを示す場合は、コマンドデータにデバイス情報、第1特図始動口230への入賞の有無、第2特図始動口232への入賞の有無、可変入賞口234への入賞の有無などを含む。   Specifically, the strobe information is turned on and off in the command transmission process described above. If the command type is a symbol variation start command, the command data includes information indicating the value of the big hit flag, the probability variation flag, the timer number selected in the special symbol related lottery process, etc. If it is a case, it includes the value of the jackpot flag, the probability variation flag, etc. If it is a winning effect command and an end effect start command, it includes the value of the probability variation flag, etc. If it is a jackpot round number designation command The value of the probability variation flag, the number of big hit rounds, etc. are included. When the command type indicates a basic command, device information in the command data, presence / absence of winning at the first special figure starting port 230, presence / absence of winning at the second special figure starting port 232, winning of the variable winning port 234 Includes presence or absence.

また、上述の一般コマンド回転開始設定送信処理では、コマンド種別に01H、コマンドデータにRAM308に記憶している大当りフラグの値、確変フラグの値、特図関連抽選処理で選択したタイマ番号、保留している特図変動遊技の数などを示す情報を設定する。上述の一般コマンド回転停止設定送信処理では、コマンド種別に04H、コマンドデータにRAM308に記憶している大当りフラグの値、確変フラグの値などを示す情報を設定する。上述の一般コマンド入賞演出設定送信処理では、コマンド種別に05H、コマンドデータにRAM308に記憶している入賞演出期間中に装飾図柄表示装置208・各種ランプ418・スピーカ120に出力する演出制御情報、確変フラグの値、保留している特図変動遊技の数などを示す情報を設定する。上述の一般コマンド終了演出設定送信処理では、コマンド種別に06H、コマンドデータにRAM308に記憶している演出待機期間中に装飾図柄表示装置208・各種ランプ418・スピーカ120に出力する演出制御情報、確変フラグの値、保留している特図変動遊技の数などを示す情報を設定する。上述の一般コマンド大入賞口開放設定送信処理では、コマンド種別に07H、コマンドデータにRAM308に記憶している大当りラウンド数、確変フラグの値、保留している特図変動遊技の数などを示す情報を設定する。上述の一般コマンド大入賞口閉鎖設定送信処理では、コマンド種別に08H、コマンドデータにRAM308に記憶している大当りラウンド数、確変フラグの値、保留している特図変動遊技の数などを示す情報を設定する。第1副制御部400では、受信した出力予定情報に含まれるコマンド種別により、主制御部300における遊技制御の変化に応じた演出制御の決定が可能になるとともに、出力予定情報に含まれているコマンドデータの情報に基づいて、演出制御内容を決定することができるようになる。   In the general command rotation start setting transmission process described above, the command type is 01H, the jackpot flag value stored in the RAM 308 as the command data, the probability variation flag value, the timer number selected in the special drawing related lottery process, the pending Information indicating the number of special figure variable games being set is set. In the general command rotation stop setting transmission process described above, 04H is set as the command type, and information indicating the value of the jackpot flag, the value of the probability variation flag, etc. stored in the RAM 308 is set as the command data. In the above-described general command winning effect setting transmission process, the effect control information to be output to the decorative symbol display device 208, the various lamps 418, and the speaker 120 during the winning effect period stored in the RAM 308 as command type and 05H, Information indicating the value of the flag, the number of special figure variable games that are held, and the like are set. In the above-mentioned general command end effect setting transmission process, the effect control information to be output to the decorative symbol display device 208, various lamps 418, and the speaker 120 during the effect standby period stored in the RAM 308 as the command type and the command type Information indicating the value of the flag, the number of special figure variable games that are held, and the like are set. In the general command big prize opening release transmission process described above, information indicating 07H for the command type, the number of big hits stored in the RAM 308 for the command data, the value of the probability variation flag, the number of the special figure variation games held, etc. Set. In the above-described general command big prize closing setting transmission process, information indicating the command type is 08H, the number of big hits stored in the RAM 308 as command data, the value of probability variation flag, the number of special figure variable games held, etc. Set. In the first sub-control unit 400, it is possible to determine the production control according to the change of the game control in the main control unit 300 by the command type included in the received output schedule information, and it is included in the output schedule information. Based on the information of the command data, the contents of effect control can be determined.

ステップS9317では、外部出力信号設定処理を行う。この外部出力信号設定処理では、RAM308に記憶している遊技情報を、情報出力回路334を介してパチンコ機100とは別体の情報入力回路350に出力する。   In step S9317, an external output signal setting process is performed. In this external output signal setting process, the game information stored in the RAM 308 is output to the information input circuit 350 separate from the pachinko machine 100 via the information output circuit 334.

ステップS9318では、機能限定状態終了条件が成立しているか否か(本実施例では、上述の機能限定タイマ記憶領域から機能限定タイマの値を読み出して1を減算し、減算後の機能限定タイマの値が0になっているか否か)を判定する。そして、機能限定状態終了条件が成立している場合(本実施例では、減算後の機能限定タイマが0である場合)はステップS9319に進み、機能限定状態終了条件が成立していない場合(本実施例では、減算後の機能限定タイマが0でない場合)はステップS9319の処理を行うことなくステップS9321に進む。なお、本実施例では、上述の機能限定ウェイト処理において機能限定タイマの初期値として3を設定しているため、機能限定ウェイト処理において初期値を設定し、且つ、主制御部タイマ割り込みの割り込みを許可してから、最大で約6ms(=約2ms(主制御部タイマ割り込みの周期)×3)後、最小で約4ms(=約2ms(主制御部タイマ割り込みの周期)×2)後に機能限定タイマの減算結果が0になる(機能限定を解除する)。   In step S9318, whether or not the function limitation state termination condition is satisfied (in this embodiment, the value of the function limitation timer is read from the function limitation timer storage area described above, and 1 is subtracted. Whether or not the value is 0). If the function limited state end condition is satisfied (in this embodiment, the function limited timer after subtraction is 0), the process proceeds to step S9319, and the function limited state end condition is not satisfied (this In the embodiment, if the function limitation timer after subtraction is not 0), the process proceeds to step S9321 without performing the process of step S9319. In this embodiment, since 3 is set as the initial value of the function limited timer in the above function limited wait process, the initial value is set in the function limited wait process, and the main control unit timer interrupt is interrupted. After enabling, the function is limited to a maximum of about 6 ms (= about 2 ms (main control unit timer interrupt cycle) × 3) and a minimum of about 4 ms (= about 2 ms (main control unit timer interrupt cycle) × 2). The timer subtraction result becomes 0 (function limitation is canceled).

ステップS9319では、電源ステータス、チェックサムなど所定の電断情報などを用いて、電断前の状態に復帰したこと、さらに入力ポートの履歴情報の更新が正常に終了したことを示す復帰コマンドを第1副制御部400に送信する復帰コマンド設定送信処理を行う(詳細は後述する)。また、その処理に続いて、後述する基本コマンド設定送信処理を実行して、遊技の進行状況を示す様々な情報を含んだ基本コマンドを送信するようにしている。   In step S9319, using a predetermined power interruption information such as a power status and checksum, a return command indicating that the state before the power interruption has been restored and that the update of the history information of the input port has been normally completed is issued. A return command setting transmission process to be transmitted to the first sub-control unit 400 is performed (details will be described later). Further, following the process, a basic command setting transmission process, which will be described later, is executed to transmit a basic command including various information indicating the progress of the game.

ステップS9320では、デバイス監視処理を行う。このデバイス監視処理では、ステップS9303において信号状態記憶領域に記憶した各種センサの信号状態を読み出して、ガラス枠開放エラーの有無、前枠開放エラーの有無、または下皿満タンエラーの有無などを監視し、ガラス枠開放エラー、前枠開放エラー、または下皿満タンエラーを検出した場合に、演出制御部350に送信すべき送信情報に、ガラス枠開放エラーの有無、前枠開放エラーの有無、下皿満タンエラーの有無を示すデバイス情報を設定する。また、各種ソレノイド332を駆動して第2特図始動口232や、可変入賞口234の開閉を制御したり、表示回路を介して普図表示装置210、特図表示装置212、214、各種状態表示部328などに出力する表示データを、I/O310の出力ポートに設定する。また、後述の払出要求数送信処理(ステップS9311)のステップS9415で設定した出力予定情報を出力ポート310を介して第1副制御部400に出力する。   In step S9320, device monitoring processing is performed. In this device monitoring process, the signal states of various sensors stored in the signal state storage area in step S9303 are read to monitor whether there is a glass frame opening error, a front frame opening error, or a lower pan full error. When the glass frame open error, front frame open error, or lower pan full error is detected, the transmission information to be transmitted to the production control unit 350 includes the glass frame open error, the front frame open error, the lower pan Set device information that indicates whether a full error has occurred. Further, various solenoids 332 are driven to control the opening and closing of the second special figure starting port 232 and the variable prize opening 234, and the general diagram display device 210, special figure display devices 212 and 214, various states via the display circuit. Display data to be output to the display unit 328 or the like is set in the output port of the I / O 310. Further, the output schedule information set in step S9415 of the payout request number transmission process (step S9311) described later is output to the first sub control unit 400 via the output port 310.

ステップS9321では、低電圧信号がオンであるか否かを監視する。そして、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS9323に進み、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS9322に進む。   In step S9321, it is monitored whether the low voltage signal is on. If the low-voltage signal is on (when power-off is detected), the process proceeds to step S9323. If the low-voltage signal is off (when power-off is not detected), the process proceeds to step S9322.

ステップS9322では、タイマ割り込みエンド処理を行う。このタイマ割り込みエンド処理では、ステップS9301で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割り込み許可の設定などを行う。   In step S9322, timer interrupt end processing is performed. In this timer interrupt end process, the value of each register temporarily saved in step S9301 is set in each original register, or interrupt permission is set.

ステップS9323では、上述の電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、読み出した電源ステータスの情報が正常状態を示す情報であるか否かを判定する。そして、電源ステータスの情報が正常状態を示す情報の場合にはステップS9325に進み、そうでない場合にはステップS9324に進む。   In step S9323, the power status information stored in the power status storage area is read, and it is determined whether or not the read power status information is information indicating a normal state. If the power status information is information indicating a normal state, the process proceeds to step S9325; otherwise, the process proceeds to step S9324.

ステップS9324では、電断時処理1を行う。この電断時処理1では、上述のスタックポインタ退避領域に現在のスタックポインタの値を記憶し、上述の電源ステータス記憶領域にサスペンドを示す情報を設定する。また、RAM308の所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算し、チェックサム算出用数値記憶領域に記憶している値からその加算した結果を減算した値をチェックサム(電断時チェックサム)として算出し、算出した電断時チェックサムを上述のチェックサム算出用数値記憶領域に記憶し、RAM308への書き込みを禁止する設定を行った後、無限ループとなる。   In step S9324, power interruption process 1 is performed. In the power interruption process 1, the current stack pointer value is stored in the stack pointer save area, and information indicating suspend is set in the power status storage area. Further, all 1-byte data stored in a predetermined area (for example, all areas) of the RAM 308 is added to a 1-byte register whose initial value is 0, and is stored in the checksum calculation numerical storage area. A value obtained by subtracting the addition result from the value is calculated as a checksum (power failure checksum), the calculated power failure checksum is stored in the above-described checksum calculation numerical value storage area, and writing to the RAM 308 is performed. After setting to prohibit, it becomes an infinite loop.

ステップS9325では、電断時処理2を行う。この電断時処理2では、上述のスタックポインタ退避領域に現在のスタックポインタの値を記憶することなく、上述の電源ステータス記憶領域にサスペンドを示す情報を設定する。また、RAM308に記憶している数値を読み出してチェックサム(電断時チェックサム)を算出し、算出した電断時チェックサムを上述のチェックサム算出用数値記憶領域に記憶し、RAM308への書き込みを禁止する設定を行った後、無限ループとなる。
<払出要求数送信処理>
In step S9325, power interruption process 2 is performed. In the power interruption process 2, information indicating suspend is set in the power status storage area without storing the current stack pointer value in the stack pointer save area. Also, the numerical value stored in the RAM 308 is read to calculate a checksum (power interruption checksum), the calculated power interruption checksum is stored in the above-described checksum calculation numerical value storage area, and written to the RAM 308. After setting to prohibit, it becomes an infinite loop.
<Transmission request number transmission processing>

次に、図331を用いて、上述の主制御部タイマ割り込み処理における払出要求数送信処理(ステップS9311)について説明する。なお、同図は払出要求数送信処理の流れを示すフローチャートである。   Next, the payout request number transmission process (step S9311) in the above-described main control unit timer interrupt process will be described with reference to FIG. This figure is a flowchart showing the flow of the payout request number transmission process.

ステップS9401では、RAM308に設けた払出要求数記憶領域に払出要求数として0を設定する。   In step S9401, 0 is set as the number of payout requests in the payout request number storage area provided in the RAM 308.

ステップS9402では、RAM308に設けた出力予定情報記憶領域から出力予定情報(I/Oポート310から出力する予定の情報)を読み出し、出力予定情報に情報が設定されているか否かを判定する。そして、出力予定情報に情報が設定されている場合にはステップS9415に進み、出力予定情報に情報が設定されていない場合にはステップS9403に進む。   In step S9402, the output schedule information (information scheduled to be output from the I / O port 310) is read from the output schedule information storage area provided in the RAM 308, and it is determined whether information is set in the output schedule information. If information is set in the output schedule information, the process proceeds to step S9415. If information is not set in the output schedule information, the process proceeds to step S9403.

ステップS9403では、電源投入後の最初の送信処理か否かを示す情報をRAM308に設けた所定の記憶領域から読み出して、電源投入後の最初の送信処理か否かを判定する。そして、電源投入後の最初の送信処理の場合にはステップS9412に進み、そうでない場合はステップS9404に進む。   In step S9403, information indicating whether or not it is the first transmission process after power-on is read from a predetermined storage area provided in the RAM 308, and it is determined whether or not it is the first transmission process after power-on. In the case of the first transmission process after power-on, the process proceeds to step S9412. Otherwise, the process proceeds to step S9404.

ステップS9404では、最初に、入賞により賞球の払出しを行う各入賞口(本実施例では、一般入賞口226、第1、第2特図始動口230、232、および可変入賞口234)を、処理対象として順次選択する。次に、各処理対象に対応してRAM308に設けられた払出カウンタ記憶領域から、各処理対象の払出カウンタの値を読み出し、払出カウンタの値が0であるか否かを判定する。そして、処理対象の払出カウンタが0の場合はステップS9405に進み、処理対象の払出カウンタが0以外の場合はステップS9406に進む。   In step S9404, first, each winning opening for paying out the winning ball by winning (in this embodiment, the general winning opening 226, the first and second special figure starting openings 230, 232, and the variable winning opening 234) Select sequentially for processing. Next, the value of the payout counter of each processing object is read from the payout counter storage area provided in the RAM 308 corresponding to each processing object, and it is determined whether or not the value of the payout counter is 0. If the processing target payout counter is 0, the process proceeds to step S9405. If the processing target payout counter is other than 0, the process proceeds to step S9406.

ステップS9405では、全ての処理対象の払出カウンタの処理が終了したか否かを判定する。そして、全ての処理対象の払出カウンタの処理が終了した場合には主制御部タイマ割り込み処理に復帰し、全ての処理対象の払出カウンタの処理が終了していない場合はステップS9404に戻り、残りの処理対象の払出カウンタの処理を継続する。   In step S9405, it is determined whether or not the processing of all the payout counters to be processed has been completed. When processing of all processing target payout counters is completed, the process returns to the main control unit timer interrupt processing. When processing of all processing target payout counters is not completed, the process returns to step S9404, and the remaining Continue processing the payout counter to be processed.

ステップS9406では、上述の払出カウンタ記憶領域から処理対象の払出カウンタの値を読み出して1を減算した後、減算後の値を新たな払出カウンタの値として元の払出カウンタ記憶領域に記憶する。   In step S9406, the value of the payout counter to be processed is read out from the payout counter storage area described above, and 1 is subtracted. Then, the value after subtraction is stored in the original payout counter storage area as a new payout counter value.

ステップS9407では、上述の図327(a)の払出要求数テーブルを参照し、処理対象に対応する払出要求情報(払出要求数)を取得して、RAM308の所定記憶領域に記憶する。例えば、処理対象が第1特図始動口230の場合には、払出要求数として払出要求テーブルの1行目のデータ、すなわち3を選択する。他の処理対象も同様にして、処理対象が第2特図始動口232の場合には払出要求テーブルの2行目のデータである4を、処理対象が一般入賞口226の場合には払出要求テーブルの3行目のデータである10を、処理対象が可変入賞口234の場合には払出要求テーブルの4行目のデータである15をそれぞれ選択する。   In step S9407, referring to the above-mentioned payout request number table of FIG. 327 (a), payout request information (number of payout requests) corresponding to the processing target is acquired and stored in a predetermined storage area of the RAM 308. For example, when the processing target is the first special figure starting port 230, the data of the first row of the payout request table, that is, 3 is selected as the number of payout requests. Similarly for other processing targets, if the processing target is the second special figure starting port 232, 4 is the data in the second row of the payout request table, and if the processing target is the general winning port 226, the payout request 10 is selected as the data in the third row of the table, and 15 is selected as the data in the fourth row of the payout request table when the processing target is the variable winning opening 234.

ステップS9408では、ハードウェア乱数カウンタとして使用している、基本回路302に設けている1または2の値をランダムに出力する乱数生成回路(図示せず)から取得した乱数値と、前回の送信に使用した加工種別(前回加工種別)に基づいて(過去の加工種別の履歴に基づいて)、新しい加工種別(今回加工種別)を選択する。具体的には、RAM308に設けた前回加工種別記憶領域から前回の送信時に選択し、記憶した前回加工種別を読み出し、この前回加工種別に、取得した乱数値を加算する。そして、加算結果が4未満の場合には加算結果をRAM308に設けた今回加工種別記憶領域に今回加工種別として記憶し、加算結果が4以上の場合には加算結果から4を減算し、この減算結果を今回加工種別記憶領域に今回加工種別として記憶する。   In step S9408, a random number value obtained from a random number generation circuit (not shown) that is used as a hardware random number counter and is randomly output from the value 1 or 2 provided in the basic circuit 302, and the previous transmission. Based on the used processing type (previous processing type) (based on the past processing type history), a new processing type (current processing type) is selected. Specifically, the previous processing type selected and stored from the previous processing type storage area provided in the RAM 308 is read, and the stored previous processing type is read, and the acquired random number value is added to the previous processing type. When the addition result is less than 4, the addition result is stored as the current machining type in the current machining type storage area provided in the RAM 308. When the addition result is 4 or more, 4 is subtracted from the addition result. The result is stored in the current processing type storage area as the current processing type.

ステップS9409では、ステップS9408で今回加工種別記憶領域に記憶した今回加工種別を読み出すと共に、上述の図327(b)の払出加工テーブルを参照して、今回加工種別に対応する加工データを選択する。例えば、今回加工種別が0の場合には、加工データとして払出加工テーブルの1行目のデータ、すなわち00Hを選択する。他の加工データも同様にして、今回加工種別が1の場合には払出加工テーブルの2行目のデータである13Hを、今回加工種別が2の場合には払出加工テーブルの3行目のデータである2EHを、今回加工種別が3の場合には払出加工テーブルの4行目のデータである39Hをそれぞれ選択する。   In step S9409, the current machining type stored in the current machining type storage area in step S9408 is read, and the machining data corresponding to the current machining type is selected with reference to the above-described payout machining table in FIG. 327 (b). For example, when the current processing type is 0, the first row of data in the payout processing table, that is, 00H is selected as the processing data. Similarly for other machining data, if the current machining type is 1, 13H, which is the data in the second row of the payout machining table, and if the current machining type is 2, the data in the third row of the payout machining table. 2EH is selected, and if the current processing type is 3, 39H that is data in the fourth row of the payout processing table is selected.

ステップS9410では、ステップS9408で今回加工種別記憶領域に記憶した今回加工種別を読み出して払出要求情報に追加する。   In step S9410, the current machining type stored in the current machining type storage area in step S9408 is read and added to the payout request information.

ステップS9411では、ステップS9409で選択した加工データを用いて払出要求情報を加工する。本実施例では、払出要求数と加工データの排他的論理和(EXOR)を算出し、その算出結果を、加工後の払出要求数として払出要求情報に設定する。例えば、払出要求数が3(00000011B(数値の後ろのBは数値が2進数であることを示す。以下同じ))、加工データが00H(00000000B)の場合、払出要求数と加工データの排他的論理和は3であるから、加工後の払出要求数は3である。また、払出要求数が3、加工データが13H(00010011B)の場合、払出要求数と加工データの排他的論理和は10H(00010000B)であるから、加工後の払出要求数は10Hであり、払出要求数が3、加工データが2EH(00101110B)の場合、払出要求数と加工データの排他的論理和は2DH(00101100B)であるから、加工後の払出要求数は2DHであり、払出要求数が3、加工データが39H(00111001B)の場合、払出要求数と加工データの排他的論理和は3AH(00111010B)であるから、加工後の払出要求数は3AHである。   In step S9411, the payout request information is processed using the processing data selected in step S9409. In this embodiment, the exclusive OR (EXOR) of the number of payout requests and the processed data is calculated, and the calculation result is set in the payout request information as the number of payout requests after processing. For example, when the number of payout requests is 3 (00000011B (B after the numerical value indicates that the numerical value is a binary number; the same applies hereinafter)) and the processing data is 00H (00000000B), the number of payout requests and the processing data are exclusive. Since the logical sum is 3, the number of payout requests after processing is 3. In addition, when the number of payout requests is 3 and the processing data is 13H (00010011B), the exclusive OR of the number of payout requests and the processing data is 10H (00010000B), so the number of payout requests after processing is 10H and the payout When the number of requests is 3 and the processing data is 2EH (00101110B), the exclusive OR of the number of payout requests and the processing data is 2DH (00101100B), so the number of payout requests after processing is 2DH, and the number of payout requests is 3. When the machining data is 39H (00111001B), the exclusive OR of the number of payout requests and the machining data is 3 AH (00111010B), so the number of payout requests after machining is 3 AH.

ステップS9412では、払出要求情報に初期化情報(後述する電源投入情報のビットにオン)をセットする。   In step S9412, initialization information (ON in a bit of power-on information described later) is set in the payout request information.

ステップS9413では、ステップS9411またはステップS9412で設定した払出要求情報をI/Oポート310から払出制御部600に出力する。   In step S9413, the payout request information set in step S9411 or step S9412 is output from the I / O port 310 to the payout control unit 600.

ステップS9414では、払出要求情報にストローブ情報を追加する。   In step S9414, strobe information is added to the payout request information.

ステップS9415では、払出要求情報を、RAM308に設けた出力予定情報記憶領域に出力予定情報として記憶する。ステップS9401で払出要求情報をクリアした場合には、後続のデバイス監視処理(ステップS9302)において、全てオフを示す情報をI/Oポート310から払出制御部600に出力する。また、ステップS9414でストローブ情報を追加した場合には、後続のデバイス監視処理(ステップS9302)において、ストローブ情報を追加した払出要求情報をI/Oポート310から払出制御部600に出力する。   In step S9415, the payout request information is stored as output schedule information in an output schedule information storage area provided in the RAM 308. When the payout request information is cleared in step S9401, information indicating all off is output from the I / O port 310 to the payout control unit 600 in the subsequent device monitoring process (step S9302). If strobe information is added in step S9414, the payout request information with the added strobe information is output from the I / O port 310 to the payout control unit 600 in the subsequent device monitoring process (step S9302).

この払出要求数送信処理のステップS9413の処理ではストローブ情報を含まず、払出要求情報を含む信号をI/Oポート310から払出制御部600に出力する。この払出要求数送信処理ではRAM308に設けた出力予定情報に記憶領域の出力予定情報にストローブ情報、および払出要求情報を記憶させたところで処理を終了し、この出力予定情報をI/Oポート310から信号として出力することはしない。次にデバイス監視処理(ステップS9320)でストローブ情報、および払出要求情報、すなわち出力予定情報を含む信号をI/Oポート310から払出制御部600に出力する。これにより払出制御部600の基本回路が入力しているストローブ信号も立ち下がる。さらに次に実行されるタイマ割り込み処理における払出要求数送信処理で、上述の出力予定情報記憶領域を初期化(全信号オフとなる情報を記憶)し、この全オフとなった出力予定情報をI/Oポート310から信号として出力することはしない。次に実行するデバイス監視処理(ステップS9320)で全信号オフとすることを示す出力予定情報を含む信号をI/Oポート310から払出制御部600に出力する。ここでストローブ情報もオフにしていることから払出制御部600の基本回路が入力しているストローブ信号も立ち上がる。
<タイマ更新処理>
In the process of step S9413 of the payout request number transmission process, a signal including the payout request information is output from the I / O port 310 to the payout control unit 600 without including the strobe information. In the payout request number transmission process, the process is terminated when the output schedule information provided in the RAM 308 stores the strobe information and the payout request information in the output schedule information in the storage area, and the output schedule information is sent from the I / O port 310. It is not output as a signal. Next, in the device monitoring process (step S9320), a signal including strobe information and payout request information, that is, output schedule information, is output from the I / O port 310 to the payout control unit 600. As a result, the strobe signal input by the basic circuit of the payout control unit 600 also falls. Further, in the payout request number transmission process in the timer interruption process to be executed next, the above-described output schedule information storage area is initialized (information that turns off all signals), and the output schedule information that has been turned off is stored as I / O port 310 does not output as a signal. In the device monitoring process to be executed next (step S9320), a signal including output schedule information indicating that all signals are turned off is output from the I / O port 310 to the payout control unit 600. Since the strobe information is also turned off here, the strobe signal input by the basic circuit of the payout control unit 600 also rises.
<Timer update processing>

次に、図332を用いて、上述の主制御部タイマ割り込み処理におけるタイマ更新処理(ステップS9308)について説明する。なお、同図はタイマ更新処理の流れを示すフローチャートである。なお、後述する普図汎用タイマは、上述の普図表示図柄更新タイマ、普図停止時間管理用タイマ、羽根開放時間管理用タイマ、羽根閉鎖時間管理用タイマを兼用した1つのタイマであり、特図汎用タイマは、上述の特図表示図柄更新タイマ、特図停止時間管理用タイマ、特図待機時間管理用タイマ、扉開放時間管理用タイマ、扉開放時間管理用タイマ、扉閉鎖時間管理用タイマ、および演出待機時間管理用タイマを兼用した1つのタイマである。   Next, the timer update process (step S9308) in the main control unit timer interrupt process described above will be described with reference to FIG. This figure is a flowchart showing the flow of timer update processing. The general-purpose general-purpose timer described later is a single timer that combines the above-described general-purpose display symbol update timer, general-purpose stop time management timer, blade opening time management timer, and blade closing time management timer. The general-purpose timer is the above-mentioned special figure display symbol update timer, special figure stop time management timer, special figure standby time management timer, door opening time management timer, door opening time management timer, door closing time management timer , And a timer that also serves as a production standby time management timer.

ステップS9501では、上述の図327(c)のタイマ制御データテーブルを参照して、タイマ種類数、タイマ個数、および処理対象のタイマを取得する。本実施例では、タイマ種類数としてタイマ制御データテーブルの1行目のデータである2、タイマ個数としてタイマ制御データテーブルの2行目のデータである9、処理対象のタイマとしてタイマ1(特図表示図柄更新タイマ)をそれぞれ取得する。   In step S9501, the number of types of timers, the number of timers, and the processing target timer are acquired with reference to the timer control data table in FIG. In this embodiment, the number of timer types is 2, which is data in the first row of the timer control data table, the number of timers is 9, which is data in the second row of the timer control data table, and the timer to be processed is timer 1 (special figure). Display symbol update timer).

ステップS9502では、処理対象のタイマに対応してRAM308に設けたタイマ値記憶領域からタイマ値を読み出して、そのタイマ値が0であるか否かを判定し、タイマ値が0でない場合はステップS9503でタイマ値から1を減算し、減算結果を元のタイマ値記憶領域に記憶する。一方、タイマ値が0の場合はステップS9503の処理を飛ばしてステップS9504に進む。   In step S9502, the timer value is read from the timer value storage area provided in the RAM 308 corresponding to the timer to be processed, and it is determined whether or not the timer value is 0. If the timer value is not 0, step S9503 is determined. 1 is subtracted from the timer value, and the subtraction result is stored in the original timer value storage area. On the other hand, if the timer value is 0, the process of step S9503 is skipped and the process proceeds to step S9504.

ステップS9504では、タイマ個数(本実施例では9)から1を減算し、ステップS9505では、減算後のタイマ個数が0であるか否かを判定する。そして、減算後のタイマ個数が0の場合にはステップS9507に進み、減算後のタイマ個数が0でない場合はステップS9506に進む。   In step S9504, 1 is subtracted from the number of timers (9 in this embodiment), and in step S9505, it is determined whether or not the number of timers after subtraction is zero. If the number of timers after subtraction is 0, the process proceeds to step S9507. If the number of timers after subtraction is not 0, the process proceeds to step S9506.

ステップS9506では、処理対象とするタイマを更新し、次の処理対象のタイマのタイマ値を減算すべくステップS9502に戻る。本実施例では、処理対象のタイマを、タイマ制御データテーブルの3行目に格納アドレスを記憶した特図表示図柄更新タイマ→タイマ制御データテーブルの4行目に格納アドレスを記憶した普図表示図柄更新タイマ→・・・タイマ制御データテーブルの10行目に格納アドレスを記憶した普図汎用タイマ→タイマ制御データテーブルの11行目に格納アドレスを記憶した10.08msタイマの順で更新する。   In step S9506, the timer to be processed is updated, and the process returns to step S9502 to subtract the timer value of the next timer to be processed. In the present embodiment, the processing target timer is a special-figure display design update timer in which the storage address is stored in the third row of the timer control data table. Update timer →... General-purpose timer with storage address stored in line 10 of timer control data table → 1008 ms timer with storage address stored in line 11 of timer control data table.

ステップS9507では、タイマ種類数(本実施例では初期値は2)から1を減算し、ステップS9508では、減算後のタイマ種類数が0であるか否かを判定する。そして、減算後のタイマ種類が0の場合にはタイマ割り込み処理に復帰し、減算後のタイマ種類が0でない場合はステップS9509に進む。   In step S9507, 1 is subtracted from the number of timer types (in this embodiment, the initial value is 2). In step S9508, it is determined whether the number of timer types after subtraction is zero. If the timer type after subtraction is 0, the process returns to timer interrupt processing. If the timer type after subtraction is not 0, the process proceeds to step S9509.

ステップS9509では、処理対象のタイマ(本実施例では、タイマ制御データテーブルの11行目に格納アドレスを記憶した10.08msタイマ)に対応してRAM308に設けたタイマ値記憶領域からタイマ値を読み出して、そのタイマ値が0であるか否かを判定し、タイマ値が0でない場合はタイマ割り込み処理に復帰し、タイマ値が0の場合はステップS9510に進む。   In step S9509, the timer value is read from the timer value storage area provided in the RAM 308 corresponding to the processing target timer (in this embodiment, the 10.08 ms timer storing the storage address in the eleventh row of the timer control data table). Whether or not the timer value is 0 is determined. If the timer value is not 0, the process returns to the timer interrupt process. If the timer value is 0, the process proceeds to step S9510.

ステップS9510では、タイマ制御データテーブルからタイマ値の初期値(本実施例では、タイマ制御データテーブルの12行目のタイマ更新周期に対応する数値の5)を取得し、取得した初期値を処理対象のタイマに設定する。   In step S9510, the initial value of the timer value (in this embodiment, the numerical value 5 corresponding to the timer update period on the 12th line of the timer control data table) is acquired from the timer control data table, and the acquired initial value is processed. Set the timer.

ステップS9511では、タイマ制御データテーブルからタイマ個数を取得し(本実施例では、タイマ個数としてタイマ制御データテーブルの13行目のデータである1を取得し)、処理対象のタイマを次のタイマ(本実施例では、タイマ制御データテーブルの14行目に格納アドレスを記憶した特図汎用タイマ)に更新した後、更新後のタイマのタイマ値を減算すべくステップS9502に戻る。   In step S9511, the number of timers is acquired from the timer control data table (in this embodiment, 1 as data in the 13th row of the timer control data table is acquired as the number of timers), and the timer to be processed is set to the next timer ( In this embodiment, after updating to the special-purpose general-purpose timer storing the storage address in the 14th line of the timer control data table, the process returns to step S9502 to subtract the timer value of the updated timer.

このような構成により、本実施例では、タイマ制御データテーブルの14行目に対応するタイマは約10ms(約2ms(主制御部タイマ割り込みの割り込み周期)×5(タイマ制御データテーブルの12行目のタイマ更新周期))毎に更新し、タイマ制御データテーブルの3〜11行目に対応するタイマは約2ms(主制御部タイマ割り込みの割り込み周期)ごとに更新する。なお、タイマ制御データテーブルの14行目に対応するタイマを更新する条件となるタイマ(ここではタイマ制御データテーブルの11行目に対応するタイマ)は適宜箇所で初期化しておく必要がある。本実施例では、このタイマに対応する特図表示図柄更新タイマの初期化は、特図変動表示時間として、上述の特図関連抽選処理(ステップS9315)の特図表示図柄更新タイマにタイマ番号に対応する変動時間を記憶するのと同時期(同一割り込み)に行うのが最適である。
<コマンド設定送信処理>
With this configuration, in this embodiment, the timer corresponding to the 14th row of the timer control data table is about 10 ms (about 2 ms (interrupt cycle of the main control unit timer interrupt)) × 5 (the 12th row of the timer control data table). The timer corresponding to the 3rd to 11th lines of the timer control data table is updated about every 2 ms (interrupt period of the main control unit timer interrupt). Note that a timer that is a condition for updating the timer corresponding to the 14th row of the timer control data table (here, the timer corresponding to the 11th row of the timer control data table) needs to be initialized at an appropriate place. In the present embodiment, the special figure display symbol update timer corresponding to this timer is initialized with the timer number in the special figure display symbol update timer of the above-mentioned special figure related lottery process (step S9315) as the special figure fluctuation display time. It is best to do this at the same time (same interrupt) as storing the corresponding variation time.
<Command setting transmission processing>

次に、図333を用いて、上述の主制御部タイマ割り込み処理におけるコマンド設定送信処理(ステップS9316)について説明する。なお、同図はコマンド設定送信処理の流れを示すフローチャートである。   Next, the command setting transmission process (step S9316) in the main control unit timer interrupt process described above will be described with reference to FIG. This figure is a flowchart showing the flow of command setting transmission processing.

ステップS9601では、第1副制御部400に送信すべき送信情報に、上述の入賞受付情報、デバイス情報などの汎用情報が含まれているか否かを判定し、送信情報に汎用情報が含まれている場合にはステップS9602で基本コマンド設定送信処理(詳細は後述する)を行い、送信情報に汎用情報が含まれていない場合にはステップS9603に進む。   In step S9601, it is determined whether or not the transmission information to be transmitted to the first sub-control unit 400 includes general information such as the above-described winning acceptance information and device information. The transmission information includes the general information. If YES in step S9602, basic command setting transmission processing (details will be described later) is performed. If transmission information does not include general-purpose information, the process advances to step S9603.

ステップS9603では、第1副制御部400に送信すべき情報があるか無いか(送信情報記憶領域に送信情報がセットされているかどうか)を判定し、送信すべき情報がある場合にはステップS9604に進み、そうでない場合は主制御部タイマ割り込み処理に戻る。   In step S9603, it is determined whether there is information to be transmitted to the first sub-control unit 400 (whether transmission information is set in the transmission information storage area). If there is information to be transmitted, step S9604 is determined. If not, return to the main controller timer interrupt process.

ステップS9604では、上述の図327(d)のジャンプテーブルを参照し、RAM308に設けた送信情報記憶領域に記憶した送信情報に基づいてジャンプ先アドレスを選択する。例えば、送信情報が01Hの場合には、ジャンプ先アドレスとして、ジャンプテーブルの1行目の一般コマンド回転開始設定送信処理(の先頭アドレス)を選択する。送信情報が01H以外の場合も同様にして、送信情報が02Hの場合には、ジャンプテーブルの2行目の一般コマンド回転停止設定送信処理(の先頭アドレス)を、送信情報が04Hの場合には、ジャンプテーブルの3行目の一般コマンド入賞演出設定送信処理(の先頭アドレス)を、送信情報が08Hの場合には、ジャンプテーブルの4行目の一般コマンド終了演出設定送信処理(の先頭アドレス)を、送信情報が10Hの場合には、ジャンプテーブルの5行目の一般コマンド大入賞口開放設定送信処理(の先頭アドレス)を、送信情報が20Hの場合には、ジャンプテーブルの6行目の一般コマンド大入賞口閉鎖設定送信処理(の先頭アドレス)を選択する。各処理の処理内容は後述する。   In step S9604, the jump destination address is selected based on the transmission information stored in the transmission information storage area provided in the RAM 308 with reference to the jump table shown in FIG. For example, when the transmission information is 01H, the general command rotation start setting transmission process (first address) in the first row of the jump table is selected as the jump destination address. Similarly, when the transmission information is other than 01H, when the transmission information is 02H, the general command rotation stop setting transmission processing (first address) of the second row of the jump table is performed, and when the transmission information is 04H. The general command winning effect setting transmission process (first address) of the third row of the jump table. When the transmission information is 08H, the general command end effect setting transmission process (first address) of the fourth line of the jump table. When the transmission information is 10H, the general command big prize opening release setting transmission process (first address) of the fifth line of the jump table is performed (the start address). When the transmission information is 20H, the sixth line of the jump table is Select the general command special winning opening closing setting transmission process (first address). The processing contents of each processing will be described later.

ステップS9605では、ステップS9604で選択したジャンプ先アドレスをPC(プログラムカウンタ)に設定してジャンプ先アドレスに処理を移し、ジャンプ先アドレス以降に記憶した制御プログラムに従って各種の処理を行う。ジャンプ先での処理が終了すると一旦コマンド設定送信処理に復帰し、直ちに主制御部タイマ割り込み処理に復帰するようにしている。
<基本コマンド設定送信処理>
In step S9605, the jump destination address selected in step S9604 is set in the PC (program counter), the processing is transferred to the jump destination address, and various processes are performed according to the control program stored after the jump destination address. When the process at the jump destination is completed, the process once returns to the command setting transmission process and immediately returns to the main control unit timer interrupt process.
<Basic command setting transmission processing>

次に、図334を用いて、上述のコマンド設定送信処理における基本コマンド設定送信処理(ステップS9602)について説明する。なお、同図は基本コマンド設定送信処理の流れを示すフローチャートである。   Next, the basic command setting transmission process (step S9602) in the above-described command setting transmission process will be described with reference to FIG. This figure is a flowchart showing the flow of basic command setting transmission processing.

ステップS9701では、第1副制御部400に送信すべき基本コマンド情報を、出力予定情報に設定する。   In step S9701, basic command information to be transmitted to the first sub-control unit 400 is set as output schedule information.

ステップS9702およびステップS9703では、上述の汎用情報に含まれる入賞受付情報およびデバイス情報を、出力予定情報に含める。   In steps S9702 and S9703, the winning acceptance information and the device information included in the above-described general-purpose information are included in the output schedule information.

ステップS9704では、コマンド送信処理(詳細は後述する)を行ってから、送信情報記憶領域の送信情報より汎用情報を削除し、処理を終了する。なお、本実施例1では、可変入賞装置内に遊技媒体が進入したことなどを示す情報を含む上述の入賞受付情報と、前面枠扉106の開閉状態などを示す情報を含む上述のデバイス情報と、を同時に第1副制御部400に送信する。なお、始動口や可変入賞装置内に遊技媒体が進入したことなどを示す情報を含む上述の入賞受付情報を先に第1副制御部400に送信し、同一割り込み内で前面枠扉106の開閉状態などを示す情報を含む上述のデバイス情報を第1副制御部400に送信するようにしてもよい。また、逆に前面枠扉106の開閉状態などを示す情報を先に第1副制御部400に送信し、同一割り込み内で始動口や可変入賞装置内に遊技媒体が進入したことなどを示す情報を含む上述の入賞受付情報を先に第1副制御部400に送信するようにしてもよい。
<コマンド送信処理>
In step S 9704, command transmission processing (details will be described later) is performed, and then general-purpose information is deleted from the transmission information in the transmission information storage area, and the processing ends. In the first embodiment, the above-described winning acceptance information including information indicating that a game medium has entered the variable winning device, and the above-described device information including information indicating the open / closed state of the front frame door 106, etc. Are transmitted to the first sub-control unit 400 at the same time. The above-described winning acceptance information including information indicating that a game medium has entered the start opening and the variable winning device is first transmitted to the first sub-control unit 400, and the front frame door 106 is opened and closed within the same interruption. The above-described device information including information indicating the state and the like may be transmitted to the first sub control unit 400. Conversely, information indicating the open / closed state of the front frame door 106 is transmitted to the first sub-control unit 400 first, and information indicating that a game medium has entered the start port or variable winning device within the same interrupt. The above-described winning acceptance information including “” may be transmitted to the first sub-control unit 400 first.
<Command transmission processing>

次に、図335を用いて、上述のコマンド設定送信処理におけるコマンド送信処理(ステップS9704)について説明する。なお、同図はコマンド送信処理の流れを示すフローチャートである。   Next, the command transmission process (step S9704) in the command setting transmission process described above will be described with reference to FIG. This figure is a flowchart showing the flow of command transmission processing.

ステップS9801では、上述の出力予定情報記憶領域に記憶した出力予定情報を読み出して、この出力予定情報のデータをI/Oポート310から第1副制御部400に出力する。   In step S9801, the output schedule information stored in the output schedule information storage area described above is read, and the data of the output schedule information is output from the I / O port 310 to the first sub-control unit 400.

ステップS9802では、データ保持前時間を設定し、ステップS9803では、ステップS9802で設定したデータ保持前時間を減算し、データ保持前時間が0になったか否か(データ保持前時間が経過したか否か)を判定する。そして、データ保持前時間が経過している場合にはステップS9804に進み、データ保持前時間が経過していない場合にはステップS9803においてデータ保持前時間が経過するのを待つ。   In step S9802, the pre-data retention time is set, and in step S9803, the pre-data retention time set in step S9802 is subtracted to determine whether the pre-data retention time has become 0 (whether the pre-data retention time has elapsed). )). If the pre-data retention time has elapsed, the process advances to step S9804. If the pre-data retention time has not elapsed, the process waits for the pre-data retention time to elapse in step S9803.

ステップS9804では、出力予定情報にストローブ情報を追加して出力ポート310から第1副制御部400に出力する。   In step S9804, strobe information is added to the output schedule information and output from the output port 310 to the first sub-control unit 400.

ステップS9805では、データ保持前時間を設定し、ステップS9806では、ステップS9805で設定したデータ保持時間を減算し、データ保持時間が0になったか否か(データ保持時間が経過したか否か)を判定する。そして、データ保持時間が経過している場合にはステップS9807に進み、データ保持時間が経過していない場合にはステップS9806においてデータ保持時間が経過するのを待つ。   In step S9805, the pre-data retention time is set, and in step S9806, the data retention time set in step S9805 is subtracted to determine whether the data retention time has become 0 (whether the data retention time has elapsed). judge. If the data retention time has elapsed, the process proceeds to step S9807. If the data retention time has not elapsed, the process waits for the data retention time to elapse in step S9806.

ステップS9807では、出力予定情報記憶領域に記憶した出力予定情報をクリアし、ステップS9808では、出力予定情報記憶領域に記憶した出力予定情報を読み出して、この出力予定情報をI/Oポート310から出力する。   In step S 9807, the output schedule information stored in the output schedule information storage area is cleared. In step S 9808, the output schedule information stored in the output schedule information storage area is read, and this output schedule information is output from the I / O port 310. To do.

コマンド設定送信処理(ステップS9316)の開始時における送信情報に汎用情報が含まれている場合にはまず、基本コマンド設定送信処理から分岐したコマンド送信処理のステップS9801でストローブ情報を含まず、汎用情報を含む信号を出力ポート310を介して第1副制御部400に出力し、所定期間後に開始するステップS9804でストローブ情報、および汎用情報を含む信号を出力ポート310を介して第1副制御部400に出力する。これにより第1副制御部400の基本回路402が入力しているストローブ信号も立ち下がる。さらに所定期間後にステップS9808で全信号がオフである信号を出力ポート310を介して第1副制御部400に出力するようにしている。ここでストローブ情報もオフにしていることから第1副制御部400の基本回路402が入力しているストローブ信号も立ち上がる。次にステップS9605からジャンプした先の処理から分岐したコマンド送信処理のステップS9801でストローブ情報を含まず、一般情報を含む信号を出力ポート310を介して第1副制御部400に出力し、所定期間後に開始するステップS9804でストローブ情報、および一般情報を含む信号を出力ポート310を介して第1副制御部400に出力する。これにより第1副制御部400の基本回路402が入力しているストローブ信号も立ち下がる。さらに所定期間後にステップS9808で全信号がオフである信号を出力ポート310を介して第1副制御部400に出力するようにしている。ここでストローブ情報もオフにしていることから第1副制御部400の基本回路402が入力しているストローブ信号も立ち上がる。   When the general information is included in the transmission information at the start of the command setting transmission process (step S9316), first, the general information does not include the strobe information in step S9801 of the command transmission process branched from the basic command setting transmission process. Is output to the first sub-control unit 400 via the output port 310, and the signal including the strobe information and the general-purpose information is output via the output port 310 to the first sub-control unit 400 in step S9804 starting after a predetermined period. Output to. As a result, the strobe signal input to the basic circuit 402 of the first sub-control unit 400 also falls. Further, after a predetermined period, in step S9808, a signal in which all signals are OFF is output to the first sub-control unit 400 via the output port 310. Since the strobe information is also turned off here, the strobe signal input to the basic circuit 402 of the first sub-control unit 400 also rises. Next, in step S9801 of the command transmission process branched from the previous process jumped from step S9605, a signal including general information and not including strobe information is output to the first sub-control unit 400 via the output port 310, for a predetermined period. In step S9804 that starts later, a signal including strobe information and general information is output to the first sub-control unit 400 via the output port 310. As a result, the strobe signal input to the basic circuit 402 of the first sub-control unit 400 also falls. Further, after a predetermined period, in step S9808, a signal in which all signals are OFF is output to the first sub-control unit 400 via the output port 310. Since the strobe information is also turned off here, the strobe signal input to the basic circuit 402 of the first sub-control unit 400 also rises.

一方、コマンド設定送信処理(ステップS9316)の開始時における送信情報に汎用情報が含まれていない場合には汎用情報を出力せず、ステップS9605からジャンプした先の処理から分岐したコマンド送信処理のステップS9801でストローブ情報を含まず、一般情報を含む信号を出力ポート310を介して第1副制御部400に出力し、所定期間後に開始するステップS9804でストローブ情報、および一般情報を含む信号を出力ポート310を介して第1副制御部400に出力する。これにより第1副制御部400の基本回路402が入力しているストローブ信号も立ち下がる。さらに所定期間後にステップS9808で全信号がオフである信号を出力ポート310を介して第1副制御部400に出力するようにしている。ここでストローブ情報もオフにしていることから第1副制御部400の基本回路402が入力しているストローブ信号も立ち上がる。
<復帰コマンド設定送信処理>
On the other hand, if the general information is not included in the transmission information at the start of the command setting transmission process (step S9316), the general information is not output, and the step of the command transmission process branched from the previous process jumped from step S9605 In step S9801, a signal that does not include strobe information but includes general information is output to the first sub-control unit 400 via the output port 310, and a signal that includes strobe information and general information is output in step S9804 that starts after a predetermined period. The data is output to the first sub-control unit 400 via 310. As a result, the strobe signal input to the basic circuit 402 of the first sub-control unit 400 also falls. Further, after a predetermined period, in step S9808, a signal in which all signals are OFF is output to the first sub-control unit 400 via the output port 310. Since the strobe information is also turned off here, the strobe signal input to the basic circuit 402 of the first sub-control unit 400 also rises.
<Return command setting transmission processing>

次に、図336を用いて、上述の主制御部タイマ割り込み処理における復帰コマンド設定送信処理(ステップS9319)について説明する。なお、同図は復帰コマンド設定送信処理の流れを示すフローチャートである。   Next, the return command setting transmission process (step S9319) in the above-described main control unit timer interrupt process will be described with reference to FIG. This figure is a flowchart showing the flow of return command setting transmission processing.

ステップS9901では、復電時であるか否かを判定し、復電時であればステップS9902に進み、そうでなければステップS9903に進む。   In step S9901, it is determined whether or not the power is restored. If the power is restored, the process proceeds to step S9902, and if not, the process proceeds to step S9903.

ステップS9902では、出力予定情報記憶領域に記憶した出力予定情報に復電を示す情報を設定してステップS9904に進む。   In step S9902, information indicating power recovery is set in the output schedule information stored in the output schedule information storage area, and the flow advances to step S9904.

ステップS9903では、出力予定情報記憶領域に記憶した出力予定情報にRAMクリアを示す情報を設定してステップS9913に進む。   In step S9903, information indicating RAM clear is set in the output schedule information stored in the output schedule information storage area, and the process proceeds to step S9913.

ステップS9904では、大当りの表示確定後であるか否かを判定し、大当りの表示後確定後でなければステップS9905に進み、大当りの表示後確定後であればステップS9909に進む。   In step S9904, it is determined whether or not the display of the jackpot has been confirmed. If it has not been confirmed after the display of the jackpot, the process proceeds to step S9905. If the display has been confirmed after the display of the jackpot, the process proceeds to step S9909.

ステップS9905〜ステップS9908では、出力予定情報記憶領域に記憶した出力予定情報に、遊技状態、特図作動状態、特図抽選結果、保留している特図変動遊技の数および確変抽選結果を追加する。本実施例では、現在の遊技状態に基づいて、通常状態を示す情報、時短状態を示す情報、確変状態を示す情報のいずれかを遊技状態として追加する。また、特図変動遊技が作動している場合には、特図作動状態として作動中を示す情報を追加し、特図変動遊技が作動していない場合には、特図作動状態として停止中を示す情報を追加する。また、大当りフラグをオンに設定している場合には、特図抽選結果として大当りを示す情報を追加し、大当りフラグをオフに設定している場合には、特図抽選結果としてハズレを示す情報を追加する。また、確変フラグをオンに設定している場合には、確変抽選結果として確変を示す情報を追加し、確変フラグをオフに設定している場合には、確変抽選結果としてハズレを示す情報を追加する。   In steps S9905 to S9908, the game state, the special figure operating state, the special figure lottery result, the number of the special figure variable games held and the probability variation lottery result are added to the output schedule information stored in the output schedule information storage area. . In this embodiment, based on the current gaming state, any one of information indicating the normal state, information indicating the short time state, and information indicating the probability variation state is added as the gaming state. Also, when the special figure variable game is operating, information indicating that the special figure is operating is added, and when the special figure variable game is not operating, the special figure operating state is being stopped. Add information to indicate. In addition, when the big hit flag is set on, information indicating a big hit is added as a special figure lottery result, and when the big hit flag is set off, information indicating a loss as a special figure lottery result Add If the probability variation flag is set to ON, information indicating probability variation is added as a probability variation lottery result. If the probability variation flag is set to OFF, information indicating loss is added as a probability variation lottery result. To do.

ステップS9909〜ステップS9912では、出力予定情報記憶領域に記憶した出力予定情報に、大当り中か否かを示す情報、特図保留数情報、大入賞口開放回数、確変フラグの値および大入賞口開閉状態を追加する。本実施例では、大当りフラグをオンに設定している場合には大当りを示す情報を追加する。また、特図保留数情報として、特図遊技の保留数(本実施例では0〜4)に対応する保留数データを追加する。また、大入賞口開放回数として、可変入賞口234を開放する回数を示す情報を追加する。また、可変入賞口234が開放中の場合には、大入賞口開閉状態として可変入賞口234が開放中であることを示す情報を追加し、可変入賞口234が閉鎖中の場合には、大入賞口開閉状態として大入賞口が閉鎖中であることを示す情報を追加する。   In steps S9909 to S9912, the output schedule information stored in the output schedule information storage area includes information indicating whether or not a big hit is being made, special figure holding number information, number of times of winning a prize opening, the value of a probability change flag, and opening / closing of a prize opening Add state. In this embodiment, when the big hit flag is set to ON, information indicating the big hit is added. Further, as the special figure hold number information, the hold number data corresponding to the special figure game hold number (0 to 4 in this embodiment) is added. In addition, information indicating the number of times the variable prize opening 234 is opened is added as the number of times of opening the big prize opening. Further, when the variable prize opening 234 is open, information indicating that the variable prize opening 234 is open is added as the large prize opening / closing state, and when the variable prize opening 234 is closed, the large prize opening 234 is closed. Information indicating that the big prize opening is closed as the prize opening / closing state is added.

ステップS9913では、上述のコマンド送信処理を行う。
<払出制御部リセット割り込み処理>
In step S9913, the above-described command transmission process is performed.
<Discharge control unit reset interrupt processing>

次に、図337を用いて、払出制御部600のCPUが実行する払出制御部リセット割り込み処理について説明する。なお、同図は払出制御部リセット割り込み処理の流れを示すフローチャートである。   Next, a payout control unit reset interrupt process executed by the CPU of the payout control unit 600 will be described with reference to FIG. This figure is a flowchart showing the flow of the payout control unit reset interrupt process.

払出制御部600には、電源が投入されるとリセット信号を出力するリセット信号出力回路を設けている。このリセット信号を入力した基本回路のCPUは、リセット割り込みによりリセットスタートしてROMに予め記憶している制御プログラムに従って処理を実行する。   The payout control unit 600 is provided with a reset signal output circuit that outputs a reset signal when the power is turned on. The CPU of the basic circuit to which this reset signal is input starts reset by a reset interrupt and executes processing in accordance with a control program stored in advance in the ROM.

ステップS11001では、初期設定1を行う。この初期設定1では、CPUのスタックポインタ(SP)へのスタック初期値の設定等を行う。   In step S11001, initial setting 1 is performed. In the initial setting 1, a stack initial value is set in the stack pointer (SP) of the CPU.

ステップS11002では、低電圧信号がオンであるか否か、すなわち、電圧監視回路が、電源制御部660から払出制御部600に供給している電源の電圧値が所定の値(本実施例では9V)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS11001の処理を繰り返し実行し、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS11003に進む。   In step S11002, whether or not the low voltage signal is ON, that is, the voltage value of the power supply that the voltage monitoring circuit supplies from the power supply control unit 660 to the payout control unit 600 is a predetermined value (9V in this embodiment). ), It is monitored whether or not a low voltage signal indicating that the voltage has dropped is output. If the low voltage signal is on (when power-off is detected), step S11001 is repeatedly executed. If the low-voltage signal is off (when power-off is not detected), step S11001 is performed. The process proceeds to S11003.

ステップS11003では、初期設定2を行う。この初期設定2では、後述する払出制御部タイマ割り込み処理を定期毎に実行するための周期を決める数値をカウンタ・タイマに設定する処理、RAMへの書き込みを許可する設定、I/Oポートの初期設定等を行う。   In step S11003, initial setting 2 is performed. In this initial setting 2, processing for setting a numerical value for determining a cycle for executing a payout control unit timer interrupt processing, which will be described later, in the counter timer, setting for permitting writing to the RAM, initial setting of the I / O port Make settings.

ステップS11004では、電源の遮断前(電断前)の状態に復帰するか否かの判定を行い、電断前の状態に復帰しない場合(パチンコ機100を初期状態にする場合)にはステップS11006に進み、電断前の状態に復帰する場合にはステップS11005に進む。   In step S11004, it is determined whether or not to return to the state before the power interruption (before the power interruption). If the state before the power interruption is not restored (when the pachinko machine 100 is set to the initial state), step S11006 is executed. If the process returns to the state before the power interruption, the process proceeds to step S11005.

具体的には、最初に、電源基板に設けた操作部を遊技店の店員などが操作した場合に送信されるRAMクリア信号がオン(操作があったことを示す)であるか否か、すなわちRAMクリアが必要であるか否かを判定し、RAMクリア信号がオンの場合(RAMクリアが必要な場合)には、パチンコ機100を初期状態にすべくステップS11006に進む。一方、RAMクリア信号がオフの場合(RAMクリアが必要でない場合)は、RAM408に設けた電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、この電源ステータスの情報がサスペンドを示す情報であるか否かを判定する。そして、電源ステータスの情報がサスペンドを示す情報でない場合には、パチンコ機100を初期状態にすべくステップS11006に進み、電源ステータスの情報がサスペンドを示す情報である場合には、RAMの所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出し、算出したチェックサムの結果が特定の値(例えば0)であるか否か(チェックサムの結果が正常であるか否か)を判定する。そして、チェックサムの結果が0の場合(チェックサムの結果が正常である場合)には電断前の状態に復帰すべくステップS11005に進み、チェックサムの結果が0以外である場合(チェックサムの結果が異常である場合)には、パチンコ機100を初期状態にすべくステップS11006に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS11006に進む。   Specifically, first, a RAM clear signal transmitted when a store clerk or the like of the game shop operates the operation unit provided on the power supply board is turned on (indicating that there is an operation), that is, It is determined whether or not the RAM clear is necessary. If the RAM clear signal is on (when the RAM clear is necessary), the process proceeds to step S11006 to set the pachinko machine 100 to the initial state. On the other hand, when the RAM clear signal is OFF (when the RAM clear is not necessary), the power status information stored in the power status storage area provided in the RAM 408 is read, and the power status information is information indicating suspend. Determine whether or not. If the power status information is not information indicating suspend, the process advances to step S11006 to set the pachinko machine 100 to an initial state. If the power status information is information indicating suspend, a predetermined area of the RAM is stored. A checksum is calculated by adding all the 1-byte data stored in (for example, all areas) to a 1-byte register whose initial value is 0, and the calculated checksum results in a specific value (for example, 0) (whether or not the checksum result is normal). If the checksum result is 0 (if the checksum result is normal), the process proceeds to step S11005 to return to the state before the power interruption. If the checksum result is other than 0 (checksum) If the result is abnormal), the process proceeds to step S11006 to set the pachinko machine 100 to the initial state. Similarly, if the power status information indicates information other than “suspend”, the process advances to step S11006.

ステップS11005では、復電時処理を行う。この復電時処理では、RAMの記憶領域のうち、復電時にクリアすべき記憶領域(コマンドを格納するためのコマンドバッファ、エラー状態を記憶するためのエラーステータスなどを除く記憶領域)の初期化などを行う。   In step S11005, power recovery processing is performed. In this power recovery process, initialization of the RAM storage area to be cleared upon power recovery (the command buffer for storing commands, the storage area excluding error status for storing error status, etc.) is initialized. And so on.

ステップS11006では、初期化処理を行う。この初期化処理では、割り込み禁止の設定、スタックポインタへのスタック初期値の設定、RAMの所定の領域(例えば、全ての記憶領域)の初期化などを行う。   In step S11006, initialization processing is performed. In this initialization process, interrupt prohibition setting, stack initial value setting to the stack pointer, predetermined areas (for example, all storage areas) of the RAM, and the like are performed.

ステップS11007では、初期設定3を行う。この初期設定3では、RAMに設けたエラーステータス記憶領域に記憶したエラーステータスのうち、不正払出エラーと払出超過エラー以外の情報をクリアしたり、割り込み許可の設定などを行う。   In step S11007, initial setting 3 is performed. In the initial setting 3, information other than the illegal payout error and the payout excess error among the error statuses stored in the error status storage area provided in the RAM is cleared, interrupt permission is set, and the like.

ステップS11008では、主制御部300から入力したデータの中に未解析データがあるか無いかを判定し、未解析データがある場合にはステップS11009でコマンド解析処理(詳細は後述する)を行い、未解析データがない場合にはステップS11010に進む。   In step S11008, it is determined whether or not there is unanalyzed data in the data input from the main control unit 300. If there is unanalyzed data, command analysis processing (details will be described later) is performed in step S11009. If there is no unanalyzed data, the process proceeds to step S11010.

ステップS11010では、低電圧信号がオフであるか否かを監視し、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS11008に戻り、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS11011に進む。   In step S11010, it is monitored whether or not the low voltage signal is off. If the low voltage signal is off (when power-off is not detected), the process returns to step S11008, and the low voltage signal is on. In the case of detecting a power shutdown, the process proceeds to step S11011.

ステップS11011では、電断時処理を行う。この電断時処理では、RAMに設けたスタックポインタ退避領域に現在のスタックポインタの値を記憶し、上述の電源ステータス記憶領域にサスペンドを示す情報を設定する。また、RAMの所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算し、チェックサム算出用数値記憶領域に記憶している値からその加算した結果を減算した値をチェックサム(電断時チェックサム)として算出し、算出した電断時チェックサムを上述のチェックサム算出用数値記憶領域に記憶し、RAMへの書き込みを禁止する設定などを行う。   In step S11011, a power interruption process is performed. In the power interruption process, the current stack pointer value is stored in the stack pointer save area provided in the RAM, and information indicating suspend is set in the power status storage area. Further, all 1-byte data stored in a predetermined area (for example, all areas) of the RAM is added to a 1-byte register whose initial value is 0 and stored in a checksum calculation numerical storage area. The value obtained by subtracting the result of addition from the value is calculated as a checksum (checksum at power interruption), and the calculated checksum at power interruption is stored in the above-mentioned numerical storage area for checksum calculation, and written to the RAM. Perform prohibited settings.

ステップS11012では、低電圧信号がオンであるか否かを監視し、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS11012の処理を繰返し実行して低電圧信号がオフになるのを待ち、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS11001に戻り、払出制御部リセット割り込み処理を最初から開始する。すなわち、このステップS11012では、ステップS11010で低電圧信号を入力した後(電源の遮断を検知した後)で、この低電圧信号の出力が停止したことを検知した場合(電源の復帰を検知した場合)に払出制御回路を初期化する初期化処理を行う。
<コマンド解析処理>
In step S11012, it is monitored whether or not the low voltage signal is on. If the low voltage signal is on (when power-off is detected), the process of step S11012 is repeatedly executed to turn off the low voltage signal. When the low voltage signal is off (when power-off is not detected), the process returns to step S11001, and the payout control unit reset interrupt process is started from the beginning. That is, in step S11012, after the low voltage signal is input in step S11010 (after the power supply is detected to be shut off), it is detected that the output of the low voltage signal is stopped (when the power supply is detected to be restored). ) Performs an initialization process for initializing the payout control circuit.
<Command analysis processing>

次に、図338を用いて、上述の払出制御部リセット割り込み処理におけるコマンド解析処理(ステップS11009)について説明する。なお、同図はコマンド解析処理の流れを示すフローチャートである。   Next, the command analysis process (step S11009) in the above-described payout control unit reset interrupt process will be described with reference to FIG. This figure is a flowchart showing the flow of command analysis processing.

ステップS11101では、RAMに設けた賞球数記憶領域に未解析データとして記憶した賞球数(払出要求数)と、RAMに設けた今回加工種別記憶領域に未解析データとして記憶した加工種別を取得する。   In step S11101, the number of award balls (the number of payout requests) stored as unanalyzed data in the award ball number storage area provided in the RAM and the processing type stored as unanalyzed data in the current process type storage area provided in the RAM are acquired. To do.

ステップS11102では、ステップS11101で取得した今回加工種別、およびRAMに設けた前回加工種別記憶領域から取得した、コマンド解析処理で前回に使用した前回加工種別の両者を比較する。そして、今回加工種別と前回加工種別が同一であるか否かを判定し、両者が同一の場合は処理を終了し、両者が異なる場合はステップS11103に進む。   In step S11102, the current machining type acquired in step S11101 and the previous machining type used last time in the command analysis process acquired from the previous machining type storage area provided in the RAM are compared. Then, it is determined whether or not the current machining type and the previous machining type are the same. If both are the same, the process ends. If both are different, the process proceeds to step S11103.

ステップS11103では、今回加工種別の値を、前回加工種別として前回加工種別記憶領域に記憶する。   In step S11103, the value of the current machining type is stored in the previous machining type storage area as the previous machining type.

ステップS11104では、上述の図327(e)の復元データテーブルを参照し、今回加工種別に基づいて復元データを選択した後、復元データを用いて賞球数の加工を解除する。本実施例では、加工された賞球数と復元データの排他的論理和(EXOR)を算出し、その算出結果の下位4ビットを賞球数として賞球数記憶領域に記憶する。例えば、加工された賞球数が3(00000011B)、復元データが00H(00000000B)の場合、排他的論理和の算出結果は03H(00000011B)であるから、賞球数はその下位4ビットの3である。また、加工された賞球数が10H(00010000B)、復元データが03H(00000011B)の場合、排他的論理和の算出結果は13H(00010011B)であるから、賞球数はその下位4ビットの3であり、加工された賞球数が2DH(00101100B)、復元データが0EH(00001110B)の場合、排他的論理和の算出結果は23H(00100011B)であるから、賞球数はその下位4ビットの3であり、加工された賞球数が3AH(00111010B)、復元データが09H(00001001B)の場合、排他的論理和の算出結果は33H(00110011B)であるから、賞球数はその下位4ビットの3である。   In step S11104, the restoration data table of FIG. 327 (e) described above is referred to, and restoration data is selected based on the current machining type, and then the processing of the number of winning balls is canceled using the restoration data. In this embodiment, the exclusive OR (EXOR) of the processed prize ball number and the restored data is calculated, and the lower 4 bits of the calculation result are stored in the prize ball number storage area as the prize ball number. For example, when the number of processed prize balls is 3 (00000011B) and the restoration data is 00H (00000000B), the result of calculating the exclusive OR is 03H (00000011B), so the number of prize balls is 3 in the lower 4 bits. It is. Further, when the processed number of prize balls is 10H (00010000B) and the restoration data is 03H (00000011B), the calculation result of the exclusive OR is 13H (00010011B), so the number of prize balls is 3 in the lower 4 bits. When the number of processed prize balls is 2DH (00101100B) and the restoration data is 0EH (000011110B), the calculation result of the exclusive OR is 23H (00100011B), so the number of prize balls is the lower 4 bits. 3. When the processed number of prize balls is 3AH (00111010B) and the restoration data is 09H (00000101B), the calculation result of the exclusive OR is 33H (00110011B), so the number of prize balls is the lower 4 bits. Of 3.

ステップS11105では、RAMに設けた次賞球要求数記憶領域に記憶した次賞球要求数に、ステップS11104で取得した賞球数を加算して処理を終了する。
<コマンド受信割り込み処理>
In step S11105, the number of prize balls acquired in step S11104 is added to the number of next prize ball requests stored in the next prize ball demand number storage area provided in the RAM, and the process is terminated.
<Command reception interrupt processing>

次に、図339を用いて、払出制御部600のCPUが実行するコマンド受信割り込み処理について説明する。なお、同図はコマンド受信割り込み処理の流れを示すフローチャートである。   Next, a command reception interrupt process executed by the CPU of the payout control unit 600 will be described with reference to FIG. This figure is a flowchart showing the flow of command reception interrupt processing.

払出制御部600は、主制御部300が出力するストローブ信号の立ち下がりエッジを検出した場合に、このコマンド受信割り込み処理を実行する。主制御部300でストローブ情報を含めた払出要求信号を出力すると、それまでHighレベルを保持していた払出制御部600のストローブ信号がLowレベルに立ち下がるような回路構成にしている。   When the payout control unit 600 detects the falling edge of the strobe signal output from the main control unit 300, the payout control unit 600 executes the command reception interrupt process. When the main control unit 300 outputs the payout request signal including the strobe information, the circuit configuration is such that the strobe signal of the payout control unit 600 that has held the High level until then falls to the Low level.

ステップS11201では、受信割り込みスタート処理を行う。この受信割り込みスタート処理では、CPUの各レジスタの値をスタック領域に一時的に退避する処理などを行う。   In step S11201, reception interrupt start processing is performed. In this reception interrupt start process, a process of temporarily saving the value of each register of the CPU to the stack area is performed.

ステップS11202では、主制御部300から入力する払出要求情報をI/Oポートから入力し、ステップS11203では、払出要求情報があるか無いかを判定する。そして、払出要求情報がある場合にはステップS11204に進み、払出要求情報が無い場合にはステップS11209に進む。   In step S 11202, payout request information input from the main control unit 300 is input from the I / O port. In step S 11203, it is determined whether there is payout request information. If there is payout request information, the process proceeds to step S11204. If there is no payout request information, the process proceeds to step S11209.

ステップS11204では、払出要求情報のストローブ情報があるか無いか(オンかオフか)を判定し、ストローブ情報がある場合にはステップS11205に進み、ストローブ情報が無い場合にはステップS11209に進む。   In step S11204, it is determined whether or not the strobe information of the payout request information is present (ON or OFF). If there is strobe information, the process proceeds to step S11205, and if there is no strobe information, the process proceeds to step S11209.

ステップS11205では、ステップS11202で入力した払出要求情報から加工種別を取得する。   In step S11205, the processing type is acquired from the payout request information input in step S11202.

ステップS11206では、払出要求情報に初期化情報があるか無いか(オンかオフか)を判定する。そして、初期化情報がある場合にはステップS11208に進み、初期化情報が無い場合にはステップS11207に進む。   In step S11206, it is determined whether the payout request information includes initialization information (ON or OFF). If initialization information is present, the process proceeds to step S11208. If initialization information is not present, the process proceeds to step S11207.

ステップS11207では、払出要求情報から賞球数を取得し、上述の賞球数記憶領域に記憶するとともに、RAMに設けた今回加工種別記憶領域に、払出要求情報から取得した加工種別を未解析データとして記憶する。   In step S11207, the number of prize balls is acquired from the payout request information, stored in the above-mentioned prize ball number storage area, and the processing type acquired from the payout request information is stored in the current processing type storage area provided in the RAM as unanalyzed data. Remember as.

ステップS11208では、ステップS11205で取得した加工種別を、上述の前回加工種別記憶領域に記憶する。   In step S11208, the machining type acquired in step S11205 is stored in the previous machining type storage area.

ステップS11209では、受信割り込みエンド処理を行う。この受信割り込みエンド処理は、ステップS11201で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割り込み許可の設定などを行う。
<払出制御部タイマ割り込み処理>
In step S11209, reception interrupt end processing is performed. In this reception interrupt end process, the value of each register temporarily saved in step S11201 is set in each original register, or interrupt permission is set.
<Discharge control unit timer interrupt processing>

次に、図340を用いて、払出制御部600のCPUが実行する払出制御部タイマ割り込み処理について説明する。なお、同図は払出制御部タイマ割り込み処理の流れを示すフローチャートである。   Next, a payout control unit timer interrupt process executed by the CPU of the payout control unit 600 will be described with reference to FIG. This figure is a flowchart showing the flow of the payout control unit timer interrupt process.

払出制御部600は、所定の周期(本実施例では1msに1回)でタイマ割り込みを発生するカウンタ・タイマ412を備えており、このタイマ割り込みを契機として払出制御部タイマ割り込み処理を所定の周期で開始する。   The payout control unit 600 includes a counter / timer 412 that generates a timer interrupt at a predetermined cycle (in this embodiment, once every 1 ms). With this timer interrupt as a trigger, the payout control unit timer interrupt processing is performed at a predetermined cycle. Start with.

ステップS11301では、タイマ割り込みスタート処理を行う。このタイマ割り込みスタート処理では、CPUの各レジスタの値をスタック領域に一時的に退避する処理などを行う。   In step S11301, timer interrupt start processing is performed. In this timer interrupt start process, a process of temporarily saving the value of each register of the CPU to the stack area is performed.

ステップS11302では、ポート入力管理処理を行う。このポート入力管理処理では、I/Oポートの値を取得して、各種センサの状態などを検出する。   In step S11302, port input management processing is performed. In this port input management process, the value of the I / O port is acquired and the state of various sensors is detected.

ステップS11303では、タイマ更新管理処理を行う。このタイマ更新管理処理では、払出報知用LEDの点灯/消灯時間、モータ駆動/非駆動時間などを計時するためのタイマなどを含む各種タイマを更新する。   In step S11303, timer update management processing is performed. In this timer update management process, various timers including timers for measuring the lighting / extinguishing time of the payout notification LED, motor driving / non-driving time, and the like are updated.

ステップS11304では、エラー管理処理を行う。このエラー管理処理では、I/Oポートに入力する皿満杯信号を検出して皿満杯信号がオンであるか否かを判定し、皿満杯信号がオンの場合(下皿126が球で一杯になっている場合)には、RAMに設けたエラーステータス記憶領域に皿満杯エラーを示す情報を記憶し、皿満杯信号がオフの場合(下皿150に球を貯留する空きができた場合)には、エラーステータス記憶領域に皿満杯エラーの解除を示す情報を記憶する。また、主制御部300と払出制御部600との間の通信回線が断線などにより通信可能かどうかを検出し、通信可能な場合には、RAMに設けたエラーステータス記憶領域に通信可能であることを示す情報を、また通信不可能な場合には通信不可能であることを示す情報を記憶する。また、エラー管理処理では、I/Oポートに入力するエラー解除スイッチ信号を検出してエラー解除信号がオンであるか否かを判定し、エラー解除信号がオンである場合には、エラーステータス記憶領域に記憶している不正払出エラーの情報、または、払出超過エラーの情報を初期化して、これらのエラーを解除する。   In step S11304, error management processing is performed. In this error management process, a dish full signal input to the I / O port is detected to determine whether or not the dish full signal is on. If the dish full signal is on (the lower plate 126 is full of balls). In the error status storage area provided in the RAM, the information indicating the dish full error is stored, and the dish full signal is OFF (when the lower plate 150 has an empty space for storing balls). Stores information indicating the release of the full plate error in the error status storage area. Further, it is detected whether the communication line between the main control unit 300 and the payout control unit 600 is communicable due to disconnection or the like, and if communication is possible, it is possible to communicate with the error status storage area provided in the RAM. In addition, information indicating that communication is impossible is stored when communication is impossible. In the error management process, an error release switch signal input to the I / O port is detected to determine whether the error release signal is on. If the error release signal is on, an error status is stored. The information on the illegal payout error or the payout excess error stored in the area is initialized, and these errors are canceled.

ステップS11305では、CRユニット通信管理処理を行う。このCRユニット通信管理処理では、CRインターフェース部606から遊技媒体貸出信号を受信して遊技媒体貸出信号センサ信号がオンであるか否かを判定し、遊技媒体貸出信号がオンの場合(CRインターフェース部606からの球貸要求を入力した場合)には、RAMに設けた遊技媒体貸出情報記憶領域に遊技媒体の貸出要求があったことを示す情報を記憶する。   In step S11305, CR unit communication management processing is performed. In this CR unit communication management process, a game medium lending signal is received from the CR interface unit 606, and it is determined whether or not the game medium lending signal sensor signal is on. If the game medium lending signal is on (CR interface unit) When a ball lending request from 606 is input), information indicating that there is a game medium lending request is stored in the game medium lending information storage area provided in the RAM.

ステップS11306では、払出管理処理を行う。この払出管理処理では、上述のエラーステータス記憶領域から不正払出エラーの情報、および払出超過エラーの情報を読み出し、いずれのエラーも発生していない場合に、センサ回路を介して入力する払出センサ604の信号(以下、払出センサ信号と称する場合がある)に基づいて払出個数の監視を行う。すなわち、所定のエラー(ここでは、いずれかのエラー)が発生している場合にはモータの駆動、すなわち払出装置からの賞媒体(例えば遊技球)の払出を停止するようにしている。具体的には、払出センサ604の信号を検出して払出センサ信号がオンであるか否かを判定し、払出センサ信号がオンの場合(払出センサを球が通過した場合)には払出完了数チェックに1を加算して払出完了数チェック記憶領域に記憶する。また、賞球および貸出球の要求が無いときに払出センサ信号がオンになった場合には、上述のエラーステータス記憶領域に不正払出エラーを示す情報を設定し、賞球数または貸出球数が各々の要求数を超え、その超過数が所定数以上になった場合には、上述のエラーステータス記憶領域に払出超過エラーを示す情報を設定する。   In step S11306, a payout management process is performed. In this payout management process, the information of the illegal payout error and the payout excess error information are read from the error status storage area described above, and when no error has occurred, the payout sensor 604 input via the sensor circuit. The number of payouts is monitored based on a signal (hereinafter sometimes referred to as a payout sensor signal). That is, when a predetermined error (one of the errors in this case) has occurred, the driving of the motor, that is, the payout of a prize medium (for example, a game ball) from the payout device is stopped. Specifically, the signal of the payout sensor 604 is detected to determine whether or not the payout sensor signal is on. When the payout sensor signal is on (when the ball passes through the payout sensor), the number of payouts completed. 1 is added to the check and stored in the payout completion number check storage area. If the payout sensor signal is turned on when there is no request for a winning ball or a lending ball, information indicating an unauthorized payout error is set in the error status storage area, and the number of winning balls or the number of lending balls is When the number of requests exceeds each number and the number exceeds the predetermined number, information indicating a payout excess error is set in the error status storage area.

また、上述のエラーステータス記憶領域から皿満杯エラーの情報、不正払出エラーの情報、および払出超過エラーの情報を読み出し、いずれのエラーも発生していない場合に、払出開始監視処理、初期位置検索動作処理、通常払出動作処理、リトライ動作処理、逆回転動作処理のいずれかの処理を行う。   Also, the dish full error information, the illegal payout error information, and the payout excess error information are read from the error status storage area described above, and when any error has not occurred, the payout start monitoring process, the initial position search operation One of processing, normal payout operation processing, retry operation processing, and reverse rotation operation processing is performed.

払出開始監視処理では、貸出要求数、および賞球要求数が0であり、次賞球要求数が0以外の場合は、賞球要求数に次賞球要求数をセットし、次賞球要求数をクリアする。また、スプロケットを駆動する払出モータ602の位置が不確定の場合(動作モードが初期位置検索動作モードの場合)には、払出完了数チェックから1を減算して払出完了数チェック記憶領域に記憶し、スプロケットを駆動する払出モータ602の位置が確定している場合(動作モードが通常払出動作モードの場合)には、払出完了数チェックとして払出完了数チェック記憶領域に0を設定する。また、賞球要求数を、スプロケットの払出モータ602を駆動する量(モータ駆動量)に変換し、これをRAMに設けたモータ駆動量記憶領域に記憶すると共に、RAMに設けたモータ制御データテーブルを参照してモータ駆動量に対応するモータ駆動制御データを選択し、正転を示すモータ駆動制御データをI/Oポートを介してモータ制御回路に出力する。これにより、モータ制御回路はスプロケットのモータの励磁位置を所定回変化してスプロケットを正方向に回転駆動する。   In the payout start monitoring process, when the number of lending requests and the number of requested prize balls are 0, and the number of requested next prize balls is other than 0, the number of requested next prize balls is set as the number of requested prize balls, and the next prize ball request Clear the number. If the position of the payout motor 602 that drives the sprocket is uncertain (when the operation mode is the initial position search operation mode), 1 is subtracted from the payout completion number check and stored in the payout completion number check storage area. When the position of the payout motor 602 for driving the sprocket is fixed (when the operation mode is the normal payout operation mode), 0 is set in the payout completion number check storage area as a payout completion number check. Also, the number of requested prize balls is converted into an amount (motor drive amount) for driving the sprocket payout motor 602, which is stored in a motor drive amount storage area provided in the RAM, and a motor control data table provided in the RAM. , The motor drive control data corresponding to the motor drive amount is selected, and the motor drive control data indicating normal rotation is output to the motor control circuit via the I / O port. As a result, the motor control circuit changes the excitation position of the motor of the sprocket a predetermined number of times to rotate the sprocket in the forward direction.

初期位置検索動作処理および通常払出動作処理では、モータの駆動終了後に、払出完了数チェック記憶領域から払出完了チェックを読み出し、払出完了チェックが0の場合には、払出開始監視処理を実行する準備を行い、払出完了チェックが0以外の場合には、エラーステータス記憶領域に払出装置エラーを示す情報を設定すると共に、リトライ動作処理を実行する準備を行う。   In the initial position search operation process and the normal payout operation process, after the motor has been driven, a payout completion check is read from the payout completion number check storage area, and when the payout completion check is 0, preparation for executing the payout start monitoring process is performed. If the payout completion check is other than 0, information indicating the payout device error is set in the error status storage area, and preparation for executing the retry operation process is performed.

リトライ動作処理では、所定の時間が経過するのを待ち(リトライ動作開始待ちタイマが0になるのを待ち)、リトライ動作開始待ちタイマが0になった場合には、逆回転動作処理を実行する準備を行う。逆回転操作処理では、上述のモータ制御データテーブルを参照してモータ駆動量に対応するモータ駆動制御データを選択し、逆転を示すモータ駆動制御データをI/Oポートを介してモータ制御回路に出力する。これにより、モータ制御回路はスプロケットの払出モータ602の励磁位置を所定回変化してスプロケットを逆回転駆動する。また、逆回転操作処理では、モータの駆動終了後に払出開始監視処理を実行する準備を行う。   In the retry operation process, wait for a predetermined time to elapse (wait for the retry operation start wait timer to become 0), and when the retry operation start wait timer becomes 0, execute the reverse rotation operation process. Make preparations. In the reverse rotation operation process, motor drive control data corresponding to the motor drive amount is selected with reference to the motor control data table described above, and motor drive control data indicating reverse rotation is output to the motor control circuit via the I / O port. To do. Thus, the motor control circuit changes the excitation position of the sprocket delivery motor 602 a predetermined number of times to drive the sprocket in a reverse rotation. Further, in the reverse rotation operation process, preparation is made for executing the payout start monitoring process after the motor is driven.

ステップS11307では、モータ駆動管理処理を行う。このモータ駆動管理処理では、駆動開始監視処理、加速駆動処理、定速駆動処理、ブレーキ駆動処理、駆動終了処理のいずれかの処理を行う。   In step S11307, motor drive management processing is performed. In the motor drive management process, any one of a drive start monitoring process, an acceleration drive process, a constant speed drive process, a brake drive process, and a drive end process is performed.

駆動開始監視処理では、上述のエラーステータス記憶領域から皿満杯エラーの情報、不正払出エラーの情報、および払出超過エラーの情報を読み出し、いずれのエラーも発生していない場合に、上述のモータ制御データテーブルを参照してモータ駆動量に対応するモータ駆動制御データを選択し、正転を示すモータ駆動制御データをI/Oポートを介してモータ制御回路に出力する。これにより、モータ制御回路はスプロケットの払出モータ602の励磁位置を所定回変化してスプロケットを正方向に回転駆動する。   In the drive start monitoring process, the dish full error information, the illegal payout error information, and the payout excess error information are read from the error status storage area described above. Motor drive control data corresponding to the motor drive amount is selected with reference to the table, and motor drive control data indicating normal rotation is output to the motor control circuit via the I / O port. As a result, the motor control circuit changes the excitation position of the sprocket delivery motor 602 a predetermined number of times to rotate the sprocket in the forward direction.

加速駆動処理および定速駆動処理では、スプロケットが初期位置検索動作中、または、逆回転動作中の場合を除き、モータの励磁位置を16回変化させるごとに払出完了数チェックから1を減算して払出完了数チェック記憶領域に記憶する。また、更新後の払出完了数チェックが−4未満になった場合には、ブレーキ駆動処理を実行する準備を行う。さらに、上述の遊技媒体貸出情報記憶領域から遊技媒体貸出情報を読み出して、遊技媒体の貸出要求があったことを示す情報の有無を判定し、遊技媒体の貸出要求があったことを示す情報がある場合(賞球の払出中にCRインターフェース部606からの球貸要求を入力した場合)にも、ブレーキ駆動処理を実行する準備を行う。   In the acceleration drive processing and constant speed drive processing, 1 is subtracted from the payout completion number check every time the motor excitation position is changed 16 times, except when the sprocket is in the initial position search operation or reverse rotation operation. Store in the payout completion number check storage area. When the updated payout completion number check is less than −4, preparation for executing the brake drive process is made. Further, the game medium lending information is read from the above-mentioned game medium lending information storage area, the presence / absence of information indicating that there is a request for lending a game medium is determined, and information indicating that there is a request for lending a game medium is present. In some cases (when a ball lending request is input from the CR interface unit 606 while paying out a prize ball), preparations for executing the brake driving process are made.

ブレーキ駆動処理では、所定の時間が経過するのを待ち(モータ駆動管理タイマが0になるのを待ち)、モータ駆動管理タイマが0になった場合には、駆動終了処理を実行する準備を行い、駆動終了処理では、モータ駆動の後処理を行う。   In the brake drive process, it waits for a predetermined time to elapse (waits for the motor drive management timer to become 0), and when the motor drive management timer becomes 0, prepares to execute the drive end process In the drive end process, a post-process for driving the motor is performed.

ステップS11308では、LED管理処理を行う。このLED管理処理では、エラーステータス記憶領域の不正払出エラー情報が不正払出エラーが発生中であることを示している場合には、不正払出エラーが発生していることを遊技者に報知するためのLEDを点灯させるとともに、不正払出エラーが発生していないことを示している場合にはそのLEDを消灯させる。また、エラーステータス記憶領域の払出超過エラー情報が払出超過エラーが発生中であることを示している場合には、払出超過エラーが発生していることを遊技者に報知するためのLEDを点灯させるとともに、払出超過エラーが発生していないことを示している場合にはそのLEDを消灯させる。   In step S11308, LED management processing is performed. In this LED management process, when the illegal payout error information in the error status storage area indicates that an illegal payout error is occurring, the player is notified that an illegal payout error has occurred. The LED is turned on, and when it indicates that an illegal payout error has not occurred, the LED is turned off. In addition, when the payout excess error information in the error status storage area indicates that a payout excess error is occurring, an LED for notifying the player that a payout excess error has occurred is turned on. At the same time, when it indicates that no payout excess error has occurred, the LED is turned off.

ステップS11309では、信号出力管理処理を行う。この信号出力管理処理では、RAMに記憶している遊技情報(例えば払出センサ信号を入力するたびに出力する賞球信号)を、情報出力回路(図示せず)を介してパチンコ機100とは別体の情報入力回路350に出力する。   In step S11309, signal output management processing is performed. In this signal output management process, game information stored in the RAM (for example, a prize ball signal output each time a payout sensor signal is input) is separated from the pachinko machine 100 via an information output circuit (not shown). The information is output to the body information input circuit 350.

ステップS11310では、タイマ割り込みエンド処理を行う。このタイマ割り込みエンド処理では、ステップS11301で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割り込み許可の設定などを行う。   In step S11310, timer interrupt end processing is performed. In this timer interrupt end process, the value of each register temporarily saved in step S11301 is set in each original register, or interrupt permission is set.

以上説明したように、本実施例1に係るパチンコ機100は、遊技媒体を所定の遊技領域124内で転動させる遊技の制御用に動作するCPU304を含む制御回路(本実施例では基本回路)302と、CPU304による演算結果を記憶する演算記憶部(本実施例ではRAM)308と、起動信号を制御回路302に出力する起動信号出力回路340と、特定の周期で定期信号を制御回路302に出力する定期信号出力回路(本実施例ではカウンタ・タイマ)312と、遊技領域124内の所定の位置を遊技媒体が通過した場合に、検出信号を出力する検出回路(本実施例では球検出センサ)と、を備え、定期信号を入力した場合に開始する複数の定期処理(本実施例では主制御部タイマ割り込み処理内の各処理)と、複数の定期処理のうちの一つの処理であり、検出回路からの検出信号の有無を監視し、演算記憶部308に記憶する検出監視処理(本実施例では入力ポート状態更新処理)と、複数回の検出監視処理における監視結果に基づいて、遊技領域124内の所定の位置を遊技媒体が通過したと判定する通過判定処理と、所定の時期(本実施例では電源投入後)から特定の周期ごとに開始させた複数回の検出監視処理における監視結果を演算記憶部308に記憶するまで、通過判定処理による判定結果を用いる処理を行わずに後続の処理に分岐させる処理と、を制御回路302に含むことを特徴とする、遊技台である。   As described above, the pachinko machine 100 according to the first embodiment includes a control circuit (a basic circuit in this embodiment) including a CPU 304 that operates for controlling a game in which a game medium rolls within a predetermined game area 124. 302, a calculation storage unit (RAM in this embodiment) 308 that stores the calculation result by the CPU 304, a start signal output circuit 340 that outputs a start signal to the control circuit 302, and a periodic signal to the control circuit 302 at a specific cycle. A periodic signal output circuit (counter / timer in this embodiment) 312 to be output and a detection circuit (ball detection sensor in this embodiment) that outputs a detection signal when the game medium passes through a predetermined position in the game area 124. ), And a plurality of periodic processes (in this embodiment, each process in the main control unit timer interrupt process) that starts when a periodic signal is input, and a plurality of periodic processes A detection monitoring process (in this embodiment, an input port state update process) that monitors the presence / absence of a detection signal from the detection circuit and stores it in the operation storage unit 308, and a monitoring in a plurality of detection monitoring processes Based on the result, a pass determination process for determining that the game medium has passed through a predetermined position in the game area 124, and a plurality of times started at predetermined intervals from a predetermined time (after power-on in this embodiment). The control circuit 302 includes a process of branching to a subsequent process without performing a process using the determination result of the passage determination process until the monitoring result in the detection monitoring process is stored in the arithmetic storage unit 308. , A game table.

換言すれば、本実施例1に係るパチンコ機100は、遊技動作用のプログラムを記憶するプログラム記憶部(本実施例ではROM)306、および起動信号を入力した場合に前記プログラムを読み出して動作するCPU304を含む制御回路302と、CPU304による演算結果を記憶する演算記憶部308と、起動信号を制御回路302に出力する起動信号出力回路338と、特定の周期で定期信号を制御回路302に出力する定期信号出力回路312と、遊技領域124内の所定の位置を遊技媒体が通過した場合に、検出信号を出力する検出回路と、を備え、定期信号を入力した場合に開始する複数の定期処理と、複数の定期処理のうちの一つの処理であり、検出回路からの検出信号の有無を監視し、演算記憶部308に記憶する検出監視処理と、複数回の検出監視処理における監視結果に基づいて、遊技領域124内の所定の位置を遊技媒体が通過したと判定する通過判定処理と、所定の時期から特定の周期ごとに開始させた複数回の検出監視処理における監視結果を演算記憶部308に記憶するまで、通過判定処理による判定結果を用いる処理を行わずに後続の処理に分岐させる処理と、を前記プログラムに含むことを特徴とする、遊技台である。   In other words, the pachinko machine 100 according to the first embodiment operates by reading a program storage unit (ROM in this embodiment) 306 that stores a game operation program, and the program when an activation signal is input. A control circuit 302 including a CPU 304, a calculation storage unit 308 that stores a calculation result by the CPU 304, a start signal output circuit 338 that outputs a start signal to the control circuit 302, and a periodic signal that is output at a specific cycle to the control circuit 302. A periodic signal output circuit 312, and a detection circuit that outputs a detection signal when the game medium passes through a predetermined position in the game area 124, and a plurality of periodic processes that are started when the periodic signal is input; , Which is one of a plurality of periodic processes, monitors the presence or absence of a detection signal from the detection circuit, and stores it in the operation storage unit 308 And a pass determination process for determining that the game medium has passed through a predetermined position in the game area 124 based on the monitoring results in the visual processing and the plurality of detection monitoring processes, and starting at predetermined intervals from a predetermined time. The program includes a process of branching to a subsequent process without performing a process using the determination result of the passage determination process until the monitoring result in the plurality of detection monitoring processes is stored in the calculation storage unit 308. It is a game stand.

本実施例1に係るパチンコ機100によれば、遊技の進行中の電源異常による電断・復電が原因の誤動作の発生を防ぐことができる場合があり、また、遊技台にノイズを印加して制御回路を暴走させ、不当な利益を得るような不正行為を未然に防止することができる場合がある。検出監視処理における監視結果を演算記憶部に記憶するまで、通過判定処理による判定結果を用いる処理を行わないように構成しているので、所定の時期から通過判定処理による判定結果を用いる処理の開始までの期間を最短にできるとともに、通過判定に必要な情報は、確実に所定の時期からの情報を使用することができるので、遊技台に電源が投入されているにも関わらず、遊技制御を行っていない期間を最低限にして、遊技を中断している遊技者の不快感および遊技台の稼動の低下を減少することが可能になる場合がある。また品質の高い情報を用いた遊技制御を行うことができる場合がある。   According to the pachinko machine 100 according to the first embodiment, it may be possible to prevent the occurrence of malfunction due to power interruption / recovery due to power failure while the game is in progress, and noise may be applied to the game table. In some cases, it is possible to prevent fraudulent acts that would cause the control circuit to run away and obtain an unfair advantage. Since the process using the determination result by the passage determination process is not performed until the monitoring result in the detection monitoring process is stored in the calculation storage unit, the process using the determination result by the passage determination process is started from a predetermined time. It is possible to minimize the period until the time is passed, and the information necessary for the passage determination can be used reliably from the predetermined time, so the game control can be performed even though the power is turned on. It may be possible to minimize the discomfort of the player who is interrupting the game and the decrease in the operation of the game table by minimizing the period during which the game is not performed. In some cases, game control using high-quality information can be performed.

また、起動信号を入力した場合に、遊技媒体を所定の遊技領域内で転動させる遊技の制御用に動作するCPUを含む制御回路と、前記CPUによる演算結果を記憶する演算記憶部と、前記起動信号を前記制御回路に出力する起動信号出力回路と、特定の周期で定期信号を前記制御回路に出力する定期信号出力回路と、前記遊技領域内の所定の位置を遊技媒体が通過した場合に、検出信号を出力する検出回路と、を備え、前記定期信号を入力した場合に開始する複数の定期処理と、前記複数の定期処理のうちの一つの処理であり、前記検出回路からの検出信号の有無を監視し、前記演算記憶部に記憶する検出監視処理と、複数回の前記検出監視処理における監視結果に基づいて、前記遊技領域内の所定の位置を遊技媒体が通過したと判定する通過判定処理と、前記起動信号を入力してから、前記特定の周期ごとに開始させた前記複数回の前記検出監視処理における監視結果を前記演算記憶部に記憶するまで、前記通過判定処理による判定結果を用いる処理を行わずに後続の処理に分岐させる処理と、を前記制御回路に含む構成とすれば、検出監視処理における監視結果を演算記憶部に記憶するまで、通過判定処理による判定結果を用いる処理を行わないように構成しているので、起動信号を入力した時期から通過判定処理による判定結果を用いる処理の開始までの期間を最短にできるとともに、通過判定に必要な情報は、確実に起動信号を入力した時期からの情報を使用することができるので、遊技台に電源が投入されているにも関わらず、遊技制御を行っていない期間を最低限にして、遊技を中断している遊技者の不快感および遊技台の稼動の低下を減少することが可能になる場合がある。また品質の高い情報を用いた遊技制御をおこなうことができる場合がある。   In addition, when an activation signal is input, a control circuit including a CPU that operates to control a game that rolls a game medium within a predetermined game area, an arithmetic storage unit that stores a calculation result by the CPU, An activation signal output circuit for outputting an activation signal to the control circuit, a periodic signal output circuit for outputting a periodic signal to the control circuit at a specific period, and when a game medium passes through a predetermined position in the gaming area. A detection circuit that outputs a detection signal, a plurality of periodic processes that start when the periodic signal is input, and one of the plurality of periodic processes, the detection signal from the detection circuit The presence / absence of a game medium is monitored, and based on the detection monitoring process stored in the calculation storage unit and the monitoring results in the plurality of detection monitoring processes, it is determined that the game medium has passed a predetermined position in the game area. The determination result by the passage determination process until the monitoring result in the plurality of times of the detection monitoring process started every predetermined period after the determination process and the activation signal are input are stored in the calculation storage unit If the control circuit includes a process for branching to a subsequent process without performing the process using the process, the determination result by the passage determination process is used until the monitoring result in the detection monitoring process is stored in the calculation storage unit. Since it is configured not to perform processing, the period from the time when the activation signal is input to the start of processing using the determination result of the passage determination processing can be minimized, and the information necessary for passage determination is reliably activated. Since the information from the time when the signal is input can be used, the period when the game control is not performed even though the power is turned on to the game machine is minimized. , It may become possible to reduce the decrease in discomfort and the game machine operation of a player who has interrupted the game. In some cases, game control using high-quality information can be performed.

また、電源回路(本実施例では電源制御部)660から制御回路302に供給している電圧が特定の値未満である場合に、低電圧信号を出力する電圧監視回路338と、電源回路660からCPU304への電力供給を停止している期間中も演算記憶部308に電力を供給するバックアップ電源回路(本実施例では蓄電装置)と、を更に備え、所定の時期(本実施例では電源投入後)から、複数の定期処理を開始させた回数が特定の回数に到達するまでの期間中に低電圧信号を入力した場合に、制御回路302の設定のうちの所定の第1の情報を演算記憶部308に記憶する第1の電断時処理(本実施例では電断時処理1)と、起動信号を入力してから、複数の定期処理を開始させた回数が特定の回数に到達した後に低電圧信号を入力した場合に、制御回路302の設定のうちの第1の情報とは別の第2の情報を演算記憶部308に記憶する第2の電断時処理(本実施例では電断時処理2)と、起動信号を入力した場合に、第1電断時処理または第2の電断時処理が記憶させた情報に基づいて、制御回路302の設定の一部を更新する復電時処理と、を制御回路302に含むように構成すれば、動作が安定する前に記憶した信頼性の低い情報に基づいて遊技制御を行うことがなく、遊技の進行中の電源異常による電断・復電が原因の誤動作の発生をより確実に防ぐことができる場合がある。所定の条件が成立しているかどうかによって、異なる電断時処理のうちの1つを実行するように構成しているので、柔軟性の高い遊技制御を行うことができる。例えば遊技状態が第1の状態(例えば大当り中、エラー発生中など)には所定の電断時処理(例えばRAM308の全ての領域に関するチェックサムの取得、電源ステータスの格納の実行、スタックポインタへのレジスタ退避)を行い、遊技状態が第2の状態(例えば図柄の変動開始を一切保留しておらず、図柄の変動を行っていない状態で、なおかつ入賞口への入賞の記憶が全くない)の場合には、該所定の電断時処理を実行しない、または一部の電断時処理を省略するようにできる。こうすることで、不要な場合には電断時処理を素早く終了することが出来るようになり、供給される電力が不安定な中での制御部、特に基本回路の動作を少なくすることで、遊技台が予測していない動作を行うといった不具合(例えば暴走、RAM破壊)をより抑制することができる場合がある。ここで所定の条件の成立として、上述の起動信号を入力してから、上述の複数の定期処理を開始させた回数が特定の回数に到達した後に前記低電圧信号を入力した場合を適用するのが好適である。   When the voltage supplied from the power supply circuit (power supply control unit in this embodiment) 660 to the control circuit 302 is less than a specific value, the voltage monitoring circuit 338 that outputs a low voltage signal and the power supply circuit 660 A backup power supply circuit (power storage device in this embodiment) that supplies power to the arithmetic storage unit 308 even during a period in which power supply to the CPU 304 is stopped is further provided, and at a predetermined time (after power on in this embodiment) ) To calculate and store predetermined first information of the setting of the control circuit 302 when a low voltage signal is input during a period until the number of times that a plurality of periodic processes are started reaches a specific number of times. After the first power interruption process (power interruption process 1 in this embodiment) stored in the unit 308 and the activation signal are input, and the number of times that a plurality of periodic processes are started reaches a specific number. When a low voltage signal is input In addition, a second power-off process (second power-off process 2 in this embodiment) that stores second information different from the first information in the setting of the control circuit 302 in the arithmetic storage unit 308; When the activation signal is input, the power recovery process for updating a part of the setting of the control circuit 302 based on the information stored in the first power interruption process or the second power interruption process is controlled. If it is configured to be included in the circuit 302, game control is not performed based on low-reliability information stored before the operation is stabilized, and power failure and power recovery due to power failure during the game are the cause. In some cases, malfunctions can be prevented more reliably. Since one of different power interruption processes is executed depending on whether or not a predetermined condition is established, highly flexible game control can be performed. For example, when the gaming state is the first state (for example, during a big hit, an error has occurred, etc.), predetermined power-off processing (for example, acquisition of checksums for all areas of the RAM 308, execution of power supply status storage, stack pointer access) The game state is in the second state (for example, the start of symbol variation is not held at all, the symbol variation is not performed, and there is no memorization of winning at the winning opening) In some cases, the predetermined interruption process may not be executed, or a part of the interruption process may be omitted. By doing this, when it is unnecessary, it becomes possible to quickly end the process at the time of power interruption, and by reducing the operation of the control unit, particularly the basic circuit, while the supplied power is unstable, In some cases, it is possible to further suppress problems such as a game table performing an operation that is not predicted (for example, runaway or RAM destruction). Here, as the establishment of the predetermined condition, the case where the low voltage signal is input after the start signal is input and the number of times the plurality of periodic processes are started reaches a specific number is applied. Is preferred.

なお、上述の実施例における各種記憶領域は必ずしもRAMに設ける必要はなく、例えば、情報を一時的に記憶すれば足りるような場合には各制御部のCPUのレジスタなどに記憶してもよい。   Note that the various storage areas in the above-described embodiments are not necessarily provided in the RAM. For example, when it is sufficient to temporarily store information, the storage areas may be stored in a CPU register of each control unit.

また、遊技状態格納領域には、単一の情報を記憶可能なだけではなく、複数の遊技状態に関する情報を並列的に記憶可能に構成してもよい。すなわち、複数単位の記憶領域により構成してもよい。   Further, the gaming state storage area may be configured not only to be able to store single information but also to be able to store information related to a plurality of gaming states in parallel. In other words, it may be configured by a plurality of storage areas.

また、処理は1つの命令、複数の一連の命令、および一連ではない複数の命令などを示し、サブルーチン全体、分岐から復帰までの一連の命令に限定しているものではない。   The processing indicates one instruction, a plurality of series of instructions, a plurality of non-series instructions, and the like, and is not limited to the whole subroutine or a series of instructions from branch to return.

また、ステップS9101では、WDT314の初期値として32.8msに相当する数値を設定したが、WDT314に設定する初期値はこれに限定されるものではない。また、ステップS9104では、主制御部タイマ割り込みの割り込み周期として約2msに相当する数値を設定し、ステップS11003では、払出制御部タイマ割り込みの割り込み周期として約2msに相当する数値を設定したが、タイマ割り込みの周期はこれに限定されるものではない。   In step S9101, a numerical value corresponding to 32.8 ms is set as the initial value of WDT 314, but the initial value set in WDT 314 is not limited to this. In step S9104, a numerical value corresponding to about 2 ms is set as the interrupt period of the main control unit timer interrupt. In step S11003, a numerical value corresponding to about 2 ms is set as the interrupt period of the payout control unit timer interrupt. The interrupt cycle is not limited to this.

また、ステップS9201では、機能限定タイマの初期値として3を設定したが、本発明はこれに限定されず、例えば、主制御部タイマ割り込みの周期を1msに設定し、機能限定タイマの初期値として6を設定すれば、機能限定ウェイト処理において初期値を設定し、且つ、主制御部タイマ割り込みの割り込みを許可してから、最大で6ms(=1ms(主制御部タイマ割り込みの周期)×6)後、最小で5ms(=1ms(主制御部タイマ割り込みの周期)×5)後に機能限定を解除することになり、機能限定解除の時間の誤差(ゆらぎ)を小さくすることができる。   In step S9201, 3 is set as the initial value of the function limited timer. However, the present invention is not limited to this. For example, the main control unit timer interrupt period is set to 1 ms, and the initial value of the function limited timer is set. If 6 is set, the initial value is set in the function-limited wait processing, and the main control unit timer interrupt is permitted, and then 6 ms at the maximum (= 1 ms (main control unit timer interrupt cycle) × 6) After that, the function limitation is canceled after a minimum of 5 ms (= 1 ms (main control unit timer interruption period) × 5), and the error (fluctuation) in the function limitation cancellation time can be reduced.

また、ステップS9303の入力ポート状態更新処理では、複数回の監視結果に基づいて、遊技領域124内の所定の位置を遊技媒体が通過したと判定するように構成したが、本発明はこれに限定されず、この判定処理を行わなくてもよい。この場合、上述の実施例では、ステップS9307において制御状態を機能限定状態であると判定すれば、入力ポート状態更新処理による判定結果を用いる処理を行わずに後続の処理に分岐させることができる。   Further, in the input port state update process in step S9303, the game medium is determined to have passed through a predetermined position in the game area 124 based on a plurality of monitoring results. However, the present invention is not limited to this. This determination process may not be performed. In this case, in the above-described embodiment, if it is determined in step S9307 that the control state is the function limited state, the process can be branched to the subsequent process without performing the process using the determination result by the input port state update process.

また、ステップS9310の入賞受付処理では、前々回検出信号記領域、前回検出信号記領域、および今回検出信号記領域の各記憶領域に記憶した各々の球検出センサの検出信号の有無の情報を比較し、各々の球検出センサにおける過去3回分の検出信号の有無の情報が一致するか否かを判定したが、いずれかの検出信号の有無の情報をマスクしてもよく、例えば、前回検出信号記領域、および今回検出信号記領域の各記憶領域に記憶した各々の球検出センサの検出信号の有無の情報を比較し、各々の球検出センサにおける過去2回分の検出信号の有無の情報が一致するか否かを判定してもよい。   Further, in the winning acceptance process in step S9310, the information on the presence / absence of the detection signal of each sphere detection sensor stored in each storage area of the detection signal recording area, the previous detection signal recording area, and the current detection signal recording area is compared. It is determined whether or not the information on the presence / absence of the detection signals for the past three times in each sphere detection sensor matches, but the information on the presence / absence of any of the detection signals may be masked. The information on the presence / absence of the detection signal of each sphere detection sensor stored in each storage area of the area and the current detection signal recording area is compared, and the information on the presence / absence of the detection signal for the past two times in each sphere detection sensor matches. It may be determined whether or not.

また、主制御部タイマ割り込み処理では、ステップS9307において制御状態が機能限定状態ではないと判定するまで、入力ポート状態更新処理による判定結果を用いる処理を行わずに後続の処理に分岐させるように構成したが、スキップする処理はステップS9308〜ステップS9317の処理に限定されるものではなく、例えば、制御状態が機能限定状態の場合にステップS9317の外部出力信号設定処理を行ってもよい。   The main control unit timer interrupt process is configured to branch to the subsequent process without performing the process using the determination result of the input port state update process until it is determined in step S9307 that the control state is not the function limited state. However, the skipping process is not limited to the process of steps S9308 to S9317. For example, when the control state is the function limited state, the external output signal setting process of step S9317 may be performed.

また、ステップS9411では、払出要求数と加工データの排他的論理和(EXOR)を算出することで払出要求情報を加工を行ったが、例えば、払出要求数と加工データの論理積(AND)や論理和(OR)を算出することで払出要求情報を加工を行ってもよく、この場合、払出制御部では否定論理積(NAND)や否定論理和(NOR)を用いて加工の解除を行えばよい。   In step S9411, the payout request information is processed by calculating the exclusive OR (EXOR) of the payout request number and the processed data. For example, the logical product (AND) of the payout request number and the processed data is calculated. The payout request information may be processed by calculating a logical sum (OR). In this case, if the payout control unit cancels the processing using a negative logical product (NAND) or a negative logical sum (NOR), Good.

また、タイマ更新処理では、タイマ1〜タイマ9の9種類のタイマを約2ms毎に更新し、タイマ10を約10ms毎に更新したが、本発明はこれに限定されず、例えば、タイマ制御データテーブルの12行目のタイマ更新周期を10に設定すれば、タイマ1〜タイマ9の9種類のタイマを約2ms毎に更新し、タイマ10を約20ms毎に更新することができる。また、タイマ制御データテーブルの2行目のタイマ個数を5に設定し、その次にタイマ1〜5の格納アドレスを記憶し、その次にタイマ更新周期として5、タイマ個数として5を記憶し、その次にタイマ6〜10の格納アドレスを記憶すれば、タイマ1〜タイマ5の5種類のタイマを約2ms毎に更新し、タイマ6〜10の5種類のタイマを約10ms毎に更新することもできる。   In the timer update process, nine types of timers 1 to 9 are updated about every 2 ms, and the timer 10 is updated about every 10 ms. However, the present invention is not limited to this, for example, timer control data If the timer update cycle of the 12th row of the table is set to 10, nine types of timers 1 to 9 can be updated about every 2 ms, and the timer 10 can be updated about every 20 ms. Also, the number of timers in the second row of the timer control data table is set to 5, then the storage addresses of timers 1 to 5 are stored, then 5 is stored as the timer update period, 5 is stored as the number of timers, Next, if the storage addresses of timers 6 to 10 are stored, the five types of timers 1 to 5 are updated about every 2 ms, and the five types of timers 6 to 10 are updated about every 10 ms. You can also.

また、実施例では、電源回路660から遊技制御回路302に供給している電圧が特定の値未満である場合に、第1の低電圧信号を出力する第1の電圧監視回路338と、電源回路660から払出制御回路600に供給している電圧が特定の値未満である場合に、第2の低電圧信号を出力する第2の電圧監視回路の2つの電圧監視回路を設けたが、本発明はこれに限定されず、電源回路660から遊技制御回路302および払出制御回路402に供給している電圧の両者を1つの電圧監視回路で監視し、第1の低電圧信号または/および第2の低電圧信号を出力するように構成してもよい。   In the embodiment, when the voltage supplied from the power supply circuit 660 to the game control circuit 302 is less than a specific value, the first voltage monitoring circuit 338 that outputs the first low voltage signal, and the power supply circuit The two voltage monitoring circuits of the second voltage monitoring circuit that outputs the second low voltage signal when the voltage supplied from the 660 to the payout control circuit 600 is less than a specific value are provided. However, the present invention is not limited to this. Both the voltages supplied from the power supply circuit 660 to the game control circuit 302 and the payout control circuit 402 are monitored by one voltage monitoring circuit, and the first low voltage signal or / and the second You may comprise so that a low voltage signal may be output.

また、実施例では、主制御部300に電圧監視回路338を1つだけ設け、また払出制御部600に電圧監視回路を1つだけ設けているが、これに限定されず、所定の制御部(主制御部300、払出制御部600など)に電圧監視回路を複数設け、それら複数の電圧監視回路のそれぞれが別々の電力線を監視し、これら複数の電力線のうちの1、複数または全部の電力線の電圧値が所定の値未満になったことを検出した場合に、低電圧信号を該所定の制御部に設けた基本回路に出力するようにしてもよい。このように構成することで、所定の制御部による制御を確実におこなうことができ、遊技台が予測していない動作を行うといった不具合(例えば暴走、RAM破壊)を抑制することができる場合がある。ここで複数の電力線のうち1、複数または全部の電力線が同じ電圧で電力を配電するようにしてもよいし、全てが別の値の電圧となるように電力を配電するようにしてもよい。   In the embodiment, only one voltage monitoring circuit 338 is provided in the main control unit 300 and only one voltage monitoring circuit is provided in the payout control unit 600. However, the present invention is not limited to this, and a predetermined control unit ( The main control unit 300, the payout control unit 600, etc.) are provided with a plurality of voltage monitoring circuits, and each of the plurality of voltage monitoring circuits monitors a separate power line, and one, a plurality, or all of the power lines of the plurality of power lines are monitored. When it is detected that the voltage value is less than a predetermined value, a low voltage signal may be output to a basic circuit provided in the predetermined control unit. By configuring in this way, it is possible to reliably perform control by a predetermined control unit, and to suppress a malfunction (for example, runaway, RAM destruction) such as an operation that the game machine does not predict. . Here, one, a plurality, or all of the plurality of power lines may distribute power at the same voltage, or the power may be distributed so that all have different values of voltage.

また、実施例では、所定の制御部(主制御部300、払出制御部600)の基本回路(302、402)で動作する処理のうち、遊技制御の開始を待機させる処理(ステップS9103、ステップS11002)が遊技制御の開始を待機させる条件としている低電圧信号がオンであること、および遊技制御を終了させる処理を実行するかどうかの判定処理(ステップS9323、ステップS11010)で、該遊技制御を終了させる処理を実行する条件としている低電圧信号がオンであることの2つに関して、同一の低電圧信号を用いているが、これに限定されない。例えば、所定の制御部の所定の電力線を複数の電圧監視回路で監視し、第1の監視回路は第1の電圧値よりもその所定の電力線の電圧値が低い場合に第1の低電圧信号を、また複数の電圧監視回路のうち第1の電圧監視回路とは別の第2の電圧監視回路は第1の電圧値とは別の第2の電圧値よりもその所定の電力線の電圧値が低い場合に第2の低電圧信号を、それぞれ所定の制御部の基本回路に出力するように構成し、上述の遊技制御の開始を待機させる条件を第1の低電圧信号がオン(第1の電圧監視回路が第1の低電圧信号を出力している状態)であること、また上述の該遊技制御を終了させる処理を実行する条件を第2の低電圧信号がオン(第2の電圧監視回路が第2の低電圧信号を出力している状態)であること、などとそれぞれの条件を異ならせても良い。この場合第1の監視回路と第2の監視回路は同一基体内に集積するように構成してもよい。これらの場合、第1の電圧値と第2の電圧値との関係は、第1の電圧値を第2の電圧値よりも高くして適用した場合であれば、遊技制御の開始を所定の制御部に供給される電力の電圧値が充分に高い電圧値になるまで待機するので、所定の制御部、特に基本回路が不安定な動作を実行することをより確実に防止することができ、また遊技台が予測していない動作をおこなうといった不具合(例えば暴走、RAM破壊)を抑制することができる場合があるとともに、遊技制御を終了させる処理の実行は、所定の制御部に供給される電力の電圧値が第1の電圧値よりも低い第2の電圧値になるまで遊技制御を継続するので、制御期間を長く継続でき、また、遊技制御の終了処理から所定の制御部、特に基本回路の電源が完全に遮断されるまでの期間を短くすることができ、所定の制御部、特に基本回路が不安定な動作を実行することをより確実に防止することができ、また遊技台が予測していない動作をおこなうといった不具合(例えば暴走、RAM破壊)をより抑制することができる場合がある。逆に第2の電圧値を第1の電圧値よりも高くして適用した場合であれば、遊技台に電源供給を開始してから遊技制御の開始を迅速におこなうことができる場合があるとともに、遊技制御を終了させる処理の実行は、所定の制御部に供給される電力の電圧値が遊技制御の終了処理から所定の制御部、特に基本回路の電源が完全に遮断されるまでの期間を充分に長く維持することができるので、電断時の所定の制御部、特に基本回路の制御状態を確実に保存することができる場合がある。   In the embodiment, among the processes that operate in the basic circuit (302, 402) of the predetermined control unit (main control unit 300, payout control unit 600), the process of waiting for the start of game control (step S9103, step S11002). ) Finishes the game control in the determination processing (step S9323, step S11010) whether the low voltage signal, which is a condition for waiting for the start of the game control, is ON and whether to execute the process for ending the game control. The same low voltage signal is used for the two that the low voltage signal, which is a condition for executing the processing, is ON, but is not limited thereto. For example, a predetermined power line of a predetermined control unit is monitored by a plurality of voltage monitoring circuits, and the first monitoring circuit detects the first low voltage signal when the voltage value of the predetermined power line is lower than the first voltage value. In addition, the second voltage monitoring circuit different from the first voltage monitoring circuit among the plurality of voltage monitoring circuits has a voltage value of the predetermined power line higher than the second voltage value different from the first voltage value. The second low voltage signal is output to the basic circuit of each predetermined control unit when the signal is low, and the first low voltage signal is turned on (the first The second low voltage signal is turned on (second voltage) under the condition that the above-described processing for terminating the game control is executed (the second voltage monitor circuit is in a state in which the voltage monitoring circuit of FIG. The monitoring circuit is outputting the second low voltage signal), and the like. Matter may be different. In this case, the first monitoring circuit and the second monitoring circuit may be integrated in the same substrate. In these cases, if the relationship between the first voltage value and the second voltage value is applied when the first voltage value is set higher than the second voltage value, the start of the game control is predetermined. Since it waits until the voltage value of the electric power supplied to the control unit becomes a sufficiently high voltage value, it can more reliably prevent the predetermined control unit, particularly the basic circuit, from performing an unstable operation, In addition, in some cases, it is possible to suppress problems such as a game table performing an operation that is not predicted (for example, runaway or RAM destruction), and the execution of the process for ending the game control is performed by power supplied to a predetermined control unit. Since the game control is continued until the voltage value of the second becomes a second voltage value lower than the first voltage value, the control period can be continued for a long time, and a predetermined control unit, particularly a basic circuit, can be started from the end process of the game control. Period until power is completely shut down Can prevent the predetermined control unit, particularly the basic circuit, from performing an unstable operation more reliably, and can cause a malfunction (for example, runaway) , RAM destruction) may be further suppressed. Conversely, if the second voltage value is applied higher than the first voltage value, the game control may be started quickly after the power supply to the game machine is started. The execution of the process for ending the game control takes a period of time until the voltage value of the power supplied to the predetermined control unit is completely shut off from the game control end process to the predetermined control unit, particularly the power supply of the basic circuit. Since it can be maintained for a sufficiently long time, the control state of a predetermined control unit, particularly the basic circuit, at the time of power interruption may be reliably preserved.

また、実施例に挙げた払出制御部リセット割り込み処理などについては、遊技制御の終了処理の後でさらに電圧を監視し、所定の低電圧信号がオフになると所定の処理(例では起動信号を入力してから最初に開始する処理)に移行するように構成しているが、この所定の処理に移行する条件を上述の遊技制御を終了させる処理を実行する条件で使用している第2の低電圧信号がオフ(第2の電圧監視回路が第2の低電圧信号を出力していない状態)としてもよい。所定の制御部への電力供給が断たれた場合であれば、遊技制御を終了させる処理を実行する条件で使用している第2の低電圧信号がオンになった後で、遊技制御を終了させる処理を実行するので、さらに電圧は低下しているはずであるにも関わらず電圧値が下がっていない、または上昇している場合には、ノイズ、電力の不安定な変動などが原因で第2の低電圧信号を基本回路は入力し、遊技制御を終了させる処理を実行させた可能性が高い。そのような場合を考えるとこの構成は所定の処理に早く移行することができるので、ノイズ、電力の不安定な供給が原因で遊技を中断する期間を少なくすることができ、遊技を中断している遊技者の不快感および遊技台の稼動の低下を減少することが可能になる場合がある。またこの場合、所定の処理に移行する条件として、上述の遊技制御の開始を待機させる条件で使用している第1の低電圧信号がオフになった場合を適用しても同様の効果を得られる場合がある。   In addition, for the payout control unit reset interrupt processing described in the embodiment, the voltage is further monitored after the end processing of the game control, and when the predetermined low voltage signal is turned off, the predetermined processing (in the example, the activation signal is input) To the first start process after that), the second process is used in which the condition for shifting to the predetermined process is used as the condition for executing the process for ending the game control described above. The voltage signal may be off (a state in which the second voltage monitoring circuit does not output the second low voltage signal). If the power supply to the predetermined control unit is cut off, the game control is terminated after the second low voltage signal used in the condition for executing the process for terminating the game control is turned on. If the voltage value has not decreased or has increased even though the voltage should have further decreased, the noise may be unstable due to unstable fluctuations in power. There is a high possibility that the basic circuit inputs the low voltage signal of 2 and executes the process of ending the game control. Considering such a case, since this configuration can quickly shift to a predetermined process, the period of interruption of the game due to unstable supply of noise and power can be reduced, and the game can be interrupted. It may be possible to reduce the discomfort of existing players and the decline in operation of the gaming table. In this case, the same effect can be obtained by applying the case where the first low voltage signal used in the condition of waiting for the start of the game control is turned off as the condition for shifting to the predetermined process. May be.

また、上述の複数の電圧監視回路のうち第1・第2の電圧監視回路とは別の第3の電圧監視回路を設け、その第3の電圧監視回路は第1・第2の電圧値とは別の第3の電圧値よりもその所定の電力線の電圧値が低い場合に第3の低電圧信号を、それぞれ所定の制御部の基本回路に出力するように構成し、上述の所定の処理に移行する条件として、上述の第3の低電圧信号がオフ(第3の電圧監視回路が第3の低電圧信号を出力していない状態)にである場合としてもよい。このように構成することで各条件に応じた電圧値を適宜設定することができる場合があり、所定の制御部、特に基本回路が不安定な動作を実行することをより確実に防止することができ、また遊技台が予測していない動作を行うといった不具合(例えば暴走、RAM破壊)を抑制することができる場合がある。この場合第3の電圧値を第2の電圧値よりも低く設定することで、遊技制御を終了させる処理の実行で減少する電力を加味した最適な形式とすることができる場合がある。   Also, a third voltage monitoring circuit different from the first and second voltage monitoring circuits among the plurality of voltage monitoring circuits described above is provided, and the third voltage monitoring circuit includes the first and second voltage values. Is configured to output a third low voltage signal to a basic circuit of a predetermined control unit when the voltage value of the predetermined power line is lower than another third voltage value, respectively. The above-described third low voltage signal may be turned off (a state where the third voltage monitoring circuit is not outputting the third low voltage signal). With this configuration, the voltage value according to each condition may be set as appropriate, and it is possible to more reliably prevent the predetermined control unit, particularly the basic circuit, from performing an unstable operation. In addition, there may be a case where a malfunction (for example, runaway or RAM destruction) in which an operation that is not predicted by the game machine is performed can be suppressed. In this case, by setting the third voltage value lower than the second voltage value, it may be possible to obtain an optimal format that takes into account the power that is reduced by the execution of the process for terminating the game control.

また、電圧監視回路(336、426)、第1〜第3の電圧監視回路を主制御部および払出制御部の両方に備える例を挙げたが、これに限定されず、主制御部に低電圧信号を出力する電圧監視回路および払出制御部に低電圧信号を出力する電圧監視回路を主制御部、払出制御部、または電源管理部のいずれか1つに設けても良く、1つの電圧監視回路が主制御部および払出制御部の両方に低電圧信号を出力するように構成し、この電圧監視回路を主制御部、払出制御部、または電源管理部のいずれか1つに設けても良い。   Moreover, although the example which equips both the main control part and the payout control part with the voltage monitoring circuit (336, 426) and the 1st-3rd voltage monitoring circuit was given, it is not limited to this, A low voltage is applied to the main control part. A voltage monitoring circuit that outputs a signal and a voltage monitoring circuit that outputs a low voltage signal to the payout control unit may be provided in any one of the main control unit, the payout control unit, or the power supply management unit. May be configured to output a low voltage signal to both the main control unit and the payout control unit, and this voltage monitoring circuit may be provided in any one of the main control unit, the payout control unit, or the power supply management unit.

また、各々の球検出センサにおける過去3回分の検出信号の有無の情報が予め定めた入賞判定パターン情報(実施例では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)と一致した場合にその球検出センサに対応する入賞口などへの入賞と判定するとともに、機能限定状態を継続する期間の長さをこの過去の検出信号の有無の情報の個数分に対応させる例を挙げたがこれに限定されず、機能限定状態を継続する期間の長さをこの過去の検出信号の有無の情報の個数分よりも長くするようにしてもよい。また、入賞判定パターンも予め定めていればどのようなものでもよく、各々の球検出センサにおける過去2回分の検出信号の有無の情報が予め定めた入賞判定パターン情報(例えば、前回検出信号無し、今回検出信号有りであることを示す情報)と一致した場合にその球検出センサに対応する入賞口などへの入賞と判定するようにしても良いし、各々の球検出センサにおける過去4回分の検出信号の有無の情報が予め定めた入賞判定パターン情報(例えば、3回前検出信号無し、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)と一致した場合にその球検出センサに対応する入賞口などへの入賞と判定するようにしても良い。また複数の球検出センサの全てがオフ(通過非検出)の場合にオンに設定し、1つでもオン(通過検出)の場合にオフに設定するフラグをRAM308に設け、このフラグがオンに設定されたタイマ割り込み処理の次回以降の所定回数(例えば、1回、2回)、連続してオン(通過検出)を出力した球検出センサ(上述複数の球検出センサに含まれるもの)に対応する入賞口などへの入賞があったと判定するようにしてもよい。   In addition, information on the presence or absence of detection signals for the past three times in each sphere detection sensor is pre-determined winning determination pattern information (in the embodiment, indicates that there is no previous detection signal, there is a previous detection signal, and there is a current detection signal). Information), it is determined that the winning slot corresponding to the ball detection sensor is awarded, and the length of the period during which the function limited state is continued corresponds to the number of information on the presence or absence of the past detection signal. However, the present invention is not limited to this, and the length of the period during which the function limited state is continued may be made longer than the number of pieces of information on the presence / absence of the past detection signals. The winning determination pattern may be anything as long as it is determined in advance, and information on the presence or absence of detection signals for the past two times in each ball detection sensor is predetermined winning determination pattern information (for example, no previous detection signal, If it coincides with information indicating that there is a detection signal this time), it may be determined that a prize is received at a prize opening corresponding to the ball detection sensor, or the detection of the past four times by each ball detection sensor. When the signal presence / absence information matches predetermined winning determination pattern information (for example, information indicating that there is no detection signal three times before, no detection signal two times before, presence of the previous detection signal, presence of the current detection signal) You may make it determine with the winning to the winning opening etc. corresponding to a ball | bowl detection sensor. In addition, a flag is set in the RAM 308 to turn on when all of the plurality of sphere detection sensors are off (pass non-detection) and set to off when at least one is on (pass detection), and this flag is set to on. Corresponding to the sphere detection sensor (included in the above-mentioned plurality of sphere detection sensors) that has output ON (passage detection) continuously for a predetermined number of times (for example, once or twice) after the next time of the timer interrupt processing that has been performed. It may be determined that there has been a prize at a prize opening or the like.

また、入賞判定パターン情報と一致しているかどうかの判定に使用する検出信号の有無の情報を生成するための過去の所定回数分(例えば過去3回分)の検出結果が、今回の検出結果を含んでいるようにしてもよい。   In addition, the detection results for the past predetermined number of times (for example, the past three times) for generating information on the presence / absence of the detection signal used for determining whether or not the winning determination pattern information is coincident include the current detection result. You may make it come out.

また、払出制御部リセット割り込み処理(図337)では、低電圧信号がオンになった場合に電断時処理に移行し、その後低電圧信号がオフに変化した場合に、所定の処理(このフローでは初期設定1)に処理を移行し、さらに低電圧信号がオフになるまで所定の制御(このフローでは払出制御、復電制御)に移行しないように待機している。通常、電源オフなどにより電力の供給が停止した場合には、その後なだらかに電力(電圧)が低下していくような回路構成にしているが、この低下していく際に電圧値は波打ちながら低下していく場合があり、低電圧信号がオンとオフを繰り返す現象が発生する場合がある。そのため、この払出制御部リセット割り込み処理のように、電断時処理のあとで低電圧信号がオフになった場合に、直ちに所定の制御(このフローでは払出制御、復電制御)に移行しないように、ステップS11002で低電圧信号がオフになるまで制御の進行を待機させることで、所定の制御部(例えば払出制御部600)、特に基本回路402が不安定な動作を実行することをより確実に防止することができ、また遊技台が予測していない動作を行うといった不具合(例えば暴走、RAM408の破壊)を抑制することができる場合がある。このような処理を他の制御部(例えば主制御部300、第1副制御部400)に適用するようにしてもよい。   Further, in the payout control unit reset interrupt process (FIG. 337), when the low voltage signal is turned on, the process proceeds to a power interruption process, and when the low voltage signal is subsequently turned off, a predetermined process (this flow) Then, the process shifts to the initial setting 1), and further waits not to shift to predetermined control (payout control, power recovery control in this flow) until the low voltage signal is turned off. Normally, when power supply is stopped due to power off or the like, the circuit configuration is such that the power (voltage) gradually decreases after that, but the voltage value decreases while undulating. In some cases, a phenomenon in which the low voltage signal repeats on and off may occur. For this reason, when the low voltage signal is turned off after the power interruption process, as in the payout control unit reset interrupt process, the control is not immediately shifted to the predetermined control (payout control and power recovery control in this flow). In addition, by waiting for the progress of control until the low voltage signal is turned off in step S11002, it is more certain that a predetermined control unit (for example, the payout control unit 600), particularly the basic circuit 402, performs an unstable operation. In some cases, it is possible to prevent a malfunction (for example, runaway or destruction of the RAM 408) that the game table performs an operation that is not predicted. Such processing may be applied to other control units (for example, the main control unit 300 and the first sub control unit 400).

また、各々の球検出センサにおける過去3回分の検出信号の有無の情報が予め定めた入賞判定パターン情報(例では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)と一致した場合にその球検出センサに対応する入賞口などへの入賞と判定するとともに、機能限定状態を継続する期間の長さをこの過去の検出信号の有無の情報の個数分に対応させる例を挙げたが、さらに所定の装置(例えばガラス枠151)の状態(例えば開放状態、閉鎖状態)を確認するために、該所定の装置が第1の状態(例えば開放状態)である場合にオン信号を出力し、第1の状態とは別の第2の状態(例えば閉鎖状態)の場合にオフ信号を出力する所定の検出装置を備えて、所定の回数(例えば2回)分の検出装置からの信号の有無(オン、オフ)の情報が予め定めた入賞判定パターン情報(例えば、前回検出信号有り、回検出信号有りであることを示す情報)と一致した場合にその所定の装置の状態が第1の状態と判定し、一致しなかった場合には第2の状態と判定するようにしてもよい。このように第1の検出装置からの第1の回数分の信号に基づく第1の判定と、第2の検出装置からの第2の回数分の信号に基づく第2の判定と、について第1の回数と第2の回数が異なる場合には、第1の回数と第2の回数とのうち一方に対応する回数に対応する期間に亘って、この第1の判定および第2の判定をおこなわない期間限定処理を継続するようにしても良い。例えば第1の回数の方が第2の回数よりも多い場合には、第1の回数に対応する期間に亘って、この第1の判定および第2の判定をおこなわない期間限定処理を継続するようにしても良いし、第2の回数に対応する期間に亘って、この第1および第2の判定をおこなわない第1の期間限定処理と、該第1の期間限定処理の終了から第1の判定処理をおこなわずに、第2の判定をおこなう第2の期間限定処理を継続するようにしてもよい。例えば第1の判定として上述の入賞口などへの球通過判定を適用し、第2の判定としてガラス枠151の上述の状態判定を適用すると、電源投入から2回のタイマ割り込み処理では上述の球通過判定および上述のガラス枠151の状態判定の両方をおこなわず、3回目のタイマ割り込み処理では上述の球通過判定をおこなわず、上述のガラス枠151の状態判定はおこない、4回目移行のタイマ割り込み処理では上述の球通過判定および上述のガラス枠151の状態判定の両方の判定をおこなうようにしてもよい。こうすることで処理時間を短縮することができ、処理の負荷を低減させられる場合がある。   Also, information on the presence or absence of detection signals for the past three times in each sphere detection sensor is predetermined winning determination pattern information (in the example, information indicating that there is no previous detection signal, there is a previous detection signal, and there is a current detection signal). ), It is determined that a prize is received at a prize opening corresponding to the ball detection sensor, and the length of the period during which the function limited state is continued is made to correspond to the number of pieces of information on the presence / absence of the past detection signal. Although an example was given, when the predetermined device is in the first state (for example, open state) in order to confirm the state (for example, open state, closed state) of the predetermined device (for example, glass frame 151). A predetermined detection device that outputs an ON signal and outputs an OFF signal in the case of a second state (for example, a closed state) different from the first state is provided for a predetermined number of times (for example, two times). Signal from the device When the presence / absence (on / off) information matches predetermined winning determination pattern information (for example, information indicating that the previous detection signal is present and the time detection signal is present), the state of the predetermined device is the first The state may be determined, and if they do not match, the second state may be determined. As described above, the first determination based on the first number of signals from the first detection device and the second determination based on the second number of signals from the second detection device are the first. When the number of times is different from the second number, the first determination and the second determination are performed over a period corresponding to the number corresponding to one of the first number and the second number. It is also possible to continue the limited period processing. For example, when the first number is greater than the second number, the period-limited process in which the first determination and the second determination are not performed is continued over a period corresponding to the first number. Alternatively, the first time-limited process in which the first and second determinations are not performed over the period corresponding to the second number of times, and the first time-limited process after the end of the first time-limited process. The second time-limited process for performing the second determination may be continued without performing the determination process. For example, when the above-described determination of the state of the glass frame 151 is applied as the second determination and the above-described state determination of the glass frame 151 is applied as the second determination, the above-described ball is detected in the timer interruption processing twice from power-on. Both the passage determination and the state determination of the glass frame 151 are not performed. In the third timer interruption process, the above-described ball passage determination is not performed, the state determination of the glass frame 151 is performed, and the timer interruption for the fourth transition is performed. In the processing, both the above-described ball passage determination and the above-described glass frame 151 state determination may be performed. By doing so, the processing time can be shortened, and the processing load may be reduced.

また、実施例では、払出制御部600のRAMのエラーステータス記憶領域に記憶している各装置のエラー情報(例えば皿満杯エラーを示す情報など)のうち、所定のエラーが発生していることを示す情報がオンの場合には、払出用スプロケットを回転させるためのモータの駆動、すなわち払出装置からの賞媒体(例えば遊技球)の払出を停止するようにするとともに、所定の期間(例えば上述のモータ駆動中)主制御部300から受信した払出要求情報に含まれている賞球数を次賞球要求数に加算・記憶しておき、該所定の期間の終了後に、その次賞球要求数分の賞球を連続的に払い出すように、払出用スプロケットを回転させるためのモータを駆動するようにしているが、このような構成とすることで、遊技中は常に皿を満杯(球抜きレバーを操作しない)にしておくことで皿満杯エラーをわざと発生させて払出を停止し、かつ賞球数を次賞球要求数に加算・記憶しておき、遊技の終了時に球抜きレバーを操作して皿満杯エラーを解消させて、全ての賞球を一度に払出させるようなことをする遊技者に対しても、払出用スプロケットを回転させるためのモータの駆動が従来の機械のような間欠的なものではなく、連続的に払出する構成であることから払出時間を短縮でき、遊技者を待たせる時間を減少させられるとともに、待ち時間が長い場合に生じる遊技者のイライラ感・不快感を減らすことができる場合がある。   Further, in the embodiment, it is determined that a predetermined error has occurred among the error information (for example, information indicating a dish full error) of each device stored in the error status storage area of the RAM of the payout control unit 600. When the information shown is on, the driving of the motor for rotating the payout sprocket, that is, the payout of the award medium (for example, a game ball) from the payout device is stopped, and for a predetermined period (for example, the above-mentioned During motor driving) The number of prize balls included in the payout request information received from the main control unit 300 is added to and stored in the number of next prize ball requests, and after the predetermined period, the number of next prize ball requests The motor for rotating the sprocket for payout is driven so as to continuously pay out the award balls for the minute, but with this configuration, the dish is always full during the game (ball removal Les ) Is not operated), a dish full error is intentionally generated to stop paying out, and the number of prize balls is added to and stored in the next prize ball request number, and the ball removal lever is operated at the end of the game. Even for players who are trying to solve the dish full error and pay out all the prize balls at once, the drive of the motor for rotating the payout sprocket is intermittent as in conventional machines. The payout time can be shortened because it is a structure that pays out continuously, and the time that the player waits can be reduced, and the player's irritation and discomfort that occurs when the waiting time is long can be reduced. There are cases where it can be reduced.

また、基本コマンドに、遊技情報(特図抽選状態が低確率なのか、高確率なのか、特図変動時間短縮状態か通常状態か、第2始動口開放時間延長状態か通常状態かなど)を含めるようにしてもよく、復帰コマンド、基本コマンドなどに、大当りフラグの値、確変フラグの値を含めるようにしてもよい。   In addition, game information (whether the special drawing lottery state is low probability or high probability, whether the special drawing variation time shortened state or normal state, second start opening open time extended state or normal state, etc.) is included in the basic command It may be included, and the value of the jackpot flag and the probability variation flag may be included in the return command, basic command, and the like.

また、本実施例における普通図柄変動遊技は、普図始動口228に球が入賞したことを所定の球検出センサが検出した場合に、ステップS9310の入賞受付処理で、普図当選乱数値を取得し、取得した値をRAM308の所定の記憶領域に記憶するところから開始し、ステップS9313の普図関連抽選処理でRAM308の所定の記憶領域に記憶している乱数カウンタの値を普図タイマ乱数値として取得し、RAM308の所定の記憶領域に記憶してある普図当選乱数値に基づいて当否判定し、その判定結果と取得した普図タイマ乱数値に基づいて普図の変動時間の決定をおこない、その変動時間の間に亘って普図を変動表示し、さらに前述の当否判定結果に基づいて決定した普図1または普図2の停止表示を行って終了する。   Further, in the normal symbol variation game in the present embodiment, when a predetermined ball detection sensor detects that a ball has won at the general diagram start port 228, a winning random number value is acquired in the winning acceptance process at step S9310. Then, starting from storing the acquired value in a predetermined storage area of the RAM 308, the random number counter value stored in the predetermined storage area of the RAM 308 in the general drawing related lottery process of step S9313 As a result, a determination is made on the basis of the common figure winning random number value stored in a predetermined storage area of the RAM 308, and the fluctuation time of the common figure is determined based on the determination result and the acquired common figure timer random number value. The normal map is variably displayed over the change time, and the stop display of the general map 1 or the general map 2 determined based on the above-described determination result is terminated.

また、本実施例における特別図柄変動遊技は、第1特図始動口230または第2特図始動口232に球が入賞したことを所定の球検出センサが検出した場合に、ステップS9310の入賞受付処理で、特図当選乱数値および特図乱数値を取得し、取得した値をRAM308の所定の記憶領域にそれぞれ記憶するところから開始し、ステップS9315の特図抽選処理でRAM308の所定の記憶領域に記憶している乱数カウンタの値を特図タイマ乱数値として取得し、RAM308の所定の記憶領域に記憶してある特図当選乱数値に基づいて当否判定し、RAM308の所定の記憶領域に記憶してある特図乱数値に基づいて確変の当否判定をおこない、当否判定結果、確変の当否判定結果、および取得した特図タイマ乱数値などに基づいて特図の変動時間を決定し、その変動時間の間に亘って特図を変動表示し、さらに前述の当否判定結果および確変の当否判定結果に基づいて決定した特図A、特図Bまたは特図C等の停止表示を行って終了する。   In the special symbol variation game in this embodiment, when a predetermined ball detection sensor detects that a ball has won at the first special figure starting port 230 or the second special figure starting port 232, the winning acceptance in step S9310 is accepted. In the process, the special figure winning random number value and the special figure random number value are acquired, and the acquired values are respectively stored in the predetermined storage area of the RAM 308, and the predetermined storage area of the RAM 308 in the special figure lottery process in step S9315. Is acquired as a special figure timer random number value, and a determination is made based on a special figure winning random number value stored in a predetermined storage area of the RAM 308, and the result is stored in a predetermined storage area of the RAM 308. The probability change is determined based on the special figure random number, and the result is determined based on the result of the determination, the result of the probability change, and the acquired special figure timer random value. Special figure A, special figure B, or special figure C determined based on the above-described determination result and the determination result of probability change. Etc. and stop display.

また、本実施例における入賞には、遊技盤200に設けた入賞口や始動口に球が入球した場合のほか、遊技盤200に設けた通過領域を球が通過した場合(例えば、普図始動口124を球が通過した場合)も含まれる。また、始動口は、必ずしも本実施例で示される位置に設ける必要は無く、例えば、特定の入賞口内の特定の領域を始動口として機能させてもよい。   Further, in the winning in the present embodiment, in addition to the case where a ball enters the winning opening and the start opening provided in the game board 200, the case where the ball passes through a passing area provided in the game board 200 (for example, a normal figure) (When a ball passes through the start port 124). In addition, the start port does not necessarily have to be provided at the position shown in the present embodiment. For example, a specific area in a specific winning opening may be made to function as the start port.

また、可変入賞口234は、球が入賞不可能な閉状態と、入賞可能な開状態の2種類の開閉状態に変化するものに限定されず、球が入賞可能な第1の開状態と、第1の開状態よりも入賞が容易な第2の開状態の2種類の開状態に変化するものも含まれる。   The variable winning opening 234 is not limited to two types of open / closed states, that is, a closed state in which a ball cannot be won and an open state in which a prize can be won, and a first open state in which a ball can win, What changes into two types of open states of the 2nd open state in which a winning is easier than a 1st open state is also contained.

また、本実施例では、大当りに対応する図柄組合せ(大当り図柄組合せ)を装飾図柄表示装置208に停止表示した場合に大当り遊技の開始となるが、大当り遊技の開始条件はこれに限定されるものではない。したがって、例えば、大当り図柄組合せを停止表示した後で、盤面の特定のゲートを遊技球が通過した場合、大当り図柄組合せを停止表示した後で、盤面の特定の入賞口に遊技球が通過した場合、大当り図柄組合せを停止表示した後で、大入賞口(可変入賞口)以外の入賞口内の特定の領域を遊技球が通過した場合、特定の入賞口に遊技球が入賞したことを条件に開放した大入賞口(可変入賞口)内の特定の領域を遊技球が通過した場合、などを大当り遊技の開始条件としてもよい。   Further, in this embodiment, when the symbol combination corresponding to the jackpot (the jackpot symbol combination) is stopped and displayed on the decorative symbol display device 208, the jackpot game is started. However, the condition for starting the jackpot game is limited to this. is not. Therefore, for example, when a game ball passes through a specific gate on the board after displaying the jackpot symbol combination stopped, or when a game ball passes through a specific winning hole on the board after displaying the jackpot symbol combination stopped After the winning combination is stopped and displayed, if the game ball passes through a specific area in the winning opening other than the big winning opening (variable winning opening), it will be released on condition that the gaming ball has won the specific winning opening. If the game ball passes through a specific area in the big winning opening (variable winning opening), the starting condition for the big hit game may be used.

また、本実施例における特図は、特図表示装置212、214が変動表示および停止表示する図柄全てを示しており、変動表示する図柄のみ、または、停止表示する図柄のみを示すものではない。さらに、本実施例における普図や装飾図柄も同様に、普図表示装置210や装飾図柄表示装置208が変動表示および停止表示する図柄全てを示しており、変動表示する図柄のみ、または、停止表示する図柄のみを示するものではない。   In addition, the special figure in the present embodiment shows all the symbols that the special figure display devices 212 and 214 display to change and stop, and does not show only the symbols to be changed and only the symbols to be stopped. In addition, the common symbols and decorative symbols in the present embodiment also show all symbols that the variable symbol display device 210 and the decorative symbol display device 208 display in a variable manner and stop display. It does not indicate only the symbol to be used.

また、大当りフラグおよび確変フラグの両方がオンの場合には上述の特図A等、大当りフラグがオンで確変フラグがオフの場合には上述の特図B等、大当りフラグおよび確変フラグの両方がオフの場合には上述の特図I等を停止表示するようにしたが、確変フラグの値によらず大当りフラグがオンの場合には上述の特図B等、大当りフラグがオフの場合には特図C等を停止表示し、確変フラグがオンの場合には高確中ランプ222を点灯させるようにしてもよい。もちろん、大当りフラグがオンで確変フラグがオフの場合に停止表示する特図の停止態様を1または複数種類、大当りフラグおよび確変フラグの両方がオンの場合に停止表示する特図の停止態様を1または複数種類、および大当りフラグおよび確変フラグの両方がオフの場合に停止表示する特図の停止態様を1または複数種類用意しておいてもよい。このように確変移行判定の結果を特図表示装置212、214が報知するようにしてもよい。   Also, when both the big hit flag and the probability variation flag are on, the above special figure A and the like, and when the big hit flag is on and the probability variation flag is off, both the big hit flag and the probability variation flag, such as the above special figure B, are displayed. In the case of off, the above special figure I and the like are stopped and displayed. However, when the big hit flag is on regardless of the value of the probability variation flag, when the big hit flag is off, such as the above special figure B. The special figure C or the like may be stopped and displayed, and when the probability variation flag is on, the high-probability medium lamp 222 may be turned on. Of course, there is one or more types of stoppages for the special figure that is displayed when the big hit flag is on and the probability change flag is off, and one type of stoppage for the special figure that is displayed when both the big hit flag and the probability change flag are on. Alternatively, one or a plurality of types of stop modes of a special figure that are stopped and displayed when both of the plurality of types and the big hit flag and the probability variation flag are off may be prepared. Thus, the special figure display devices 212 and 214 may notify the result of the probability change transition determination.

なお、遊技状態として高確率状態、低確率状態、大当り状態の3つを例示したが、これら以外にも、第2特別始動口232に設けた羽根の開放継続時間が所定の時間である通常開放状態と、その所定の時間よりも長い開放延長状態と、を設け、この2つの状態についても遊技状態に含めてもよい。また、普図表示装置210の変動時間を所定の変動時間とする通常変動状態(普図)と、該所定の変動時間よりも短い変動時間とする短縮変動状態(普図)と、を設け、この2つの状態についても遊技状態に含めてもよい。また、特図表示装置212、214の変動時間を所定の変動時間とする通常変動状態(特図)と、該所定の変動時間よりも短い変動時間とする短縮変動状態(特図)と、を設け、この2つの状態についても遊技状態に含めてもよい。また、普図変動遊技の結果を当選とするか否かの抽選における当選確率を所定の確率とする低確率状態(普図)と該所定の確率よりも高い高確率状態(普図)とを設け、この2つの状態についても遊技状態に含めてもよいし、これら複数の状態を複合して発生させるようにしてもよい。例えば、上述の特図1で大当りした場合には大当りの終了後に特図の変動開始および停止を所定回数(例えば50回)繰り返すまでの間、高確率状態、高確率状態(普図)、開放延長状態、短縮変動状態(普図)、短縮変動状態(特図)の5つの状態を複合して遊技者に有利な状態を発生させ、その所定回数の経過、または上述の特図2を停止表示しての大当りが終了した場合には、次に大当りを開始するまでの間、低確率状態、低確率状態(普図)、通常開放状態、通常変動状態(普図)、通常変動状態(特図)の5つの状態を複合して遊技者に不利な状態を発生させ、上述の特図1で大当りした場合には大当りの終了後に次に大当りを開始するまでの間、高確率状態、高確率状態(普図)、開放延長状態、短縮変動状態(普図)、短縮変動状態(特図)の5つの状態を複合して遊技者に最も有利な状態発生させるようにしてもよい。   In addition, although the three states of the high probability state, the low probability state, and the big hit state are illustrated as the gaming state, in addition to these, the normal opening in which the opening duration of the blade provided in the second special start port 232 is a predetermined time A state and an open extended state longer than the predetermined time may be provided, and these two states may be included in the gaming state. In addition, a normal fluctuation state (normal figure) in which the fluctuation time of the normal diagram display device 210 is a predetermined fluctuation time and a shortened fluctuation state (normal figure) in which the fluctuation time is shorter than the predetermined fluctuation time are provided, These two states may also be included in the gaming state. Further, a normal fluctuation state (special figure) in which the fluctuation time of the special figure display devices 212 and 214 is a predetermined fluctuation time, and a shortened fluctuation state (special figure) in which the fluctuation time is shorter than the predetermined fluctuation time. These two states may also be included in the gaming state. In addition, a low probability state (normal figure) having a predetermined probability as a winning probability in a lottery to determine whether or not to win the result of the normal figure variable game and a high probability state (normal figure) higher than the predetermined probability These two states may also be included in the gaming state, or a plurality of these states may be generated in combination. For example, in the case of a big hit in the above-mentioned special figure 1, the high probability state, high probability state (common figure), open until the special figure starts and stops a predetermined number of times (for example, 50 times) after the big hit ends. Combining the five states of the extended state, shortened variation state (common figure), and shortened variation state (special drawing) to generate a state advantageous to the player, the predetermined number of times has elapsed, or the above-mentioned special figure 2 is stopped. When the big hit is displayed, the low probability state, low probability state (normal figure), normal open state, normal fluctuation state (normal figure), normal fluctuation state (until the next big hit starts When the big hit in the above-mentioned special figure 1 is generated, the high probability state until the next big hit is started after the big hit is completed. High probability state (common figure), open extended state, shortened variation state (normal diagram), shortened variation The five states of state (special symbol) may be caused to the most favorable conditions occur to the player in combination.

また、確変フラグがオンであり、装飾図柄表示装置208に装飾2−装飾2−装飾2など大当り終了後に確率変動となることを確定的に報知しない大当り図柄の組合せを停止表示した場合には、大当り開始前、大当り中、大当り終了後のいずれかのタイミングで確変となること、または確変となったことを装飾図柄表示装置208による特定の画像表示で報知する場合には、その特定の画像表示で報知すること、報知する特定画像の種類、報知するタイミングなどのうち1、複数又は全部に基づいて、演出のパターンを選択するようにしてもよい。ここで確変となること、または確変となったことの特定の画像による報知は、装飾図柄表示装置208に装飾2−装飾2−装飾2など大当り終了後に確率変動となることを確定的に報知しない大当り図柄の組合せを停止表示したが、大当り終了後に確変となることを昇格、確変、または確率変動などといった文字情報を含んだ画像を装飾図柄表示装置208などに表示することなどにより確定的に報知することを示している(これを昇格演出と呼ぶ)。   In addition, when the probability variation flag is ON and the combination of jackpot symbols that do not definitely notify the probability variation after the jackpot is finished, such as decoration 2-decoration 2-decoration 2, etc., are stopped and displayed on the decoration symbol display device 208. When the probability change occurs at any timing before the big hit, during the big hit, or after the big hit, or when it is notified by a specific image display by the decorative symbol display device 208, the specific image display The effect pattern may be selected based on one, a plurality, or all of the notification, the type of the specific image to be notified, the notification timing, and the like. Here, the notification by the specific image of the probability change or the probability change is not surely notified to the decorative symbol display device 208 that the probability change after the big hit such as the decoration 2-decoration 2-decoration 2 is ended. The combination of jackpot symbols is stopped and displayed, but the fact that it will become probable after the jackpot ends is displayed by displaying on the decorative symbol display device 208 an image containing character information such as promotion, probability change, or probability variation. (This is called a promotion effect).

また、上述の実施例では、特図表示装置212、214に特図1または特図2を停止表示した場合に、大当り遊技または特別大当り遊技を開始すると記載したが、特図表示装置212、214に特図1または特図2を停止表示した場合に確変フラグが示す値によらず大当り遊技を開始し、その大当り終了後に遊技状態を高確状態にするようにしてもよいし、特図表示装置212、214に特図1または特図2を停止表示した場合に確変フラグがオンの場合には大当り遊技中に可変入賞口234を15回開閉(15ラウンドの大当り)し、確変フラグがオフの場合には大当り遊技中に可変入賞口234を5回開閉(5ラウンドの大当り)するようにしてもよい。   Further, in the above-described embodiment, it is described that the special hit game or the special big hit game is started when the special figure 1 or the special figure 2 is stopped and displayed on the special figure display devices 212 and 214. When the special figure 1 or the special figure 2 is stopped and displayed, the big hit game is started regardless of the value indicated by the probability change flag, and after the big hit, the game state may be changed to the high probability state. If the probability change flag is on when the special figure 1 or special figure 2 is stopped on the devices 212 and 214, the variable prize opening 234 is opened and closed 15 times (15 rounds big hit) during the big hit game, and the probability variation flag is turned off. In this case, the variable prize opening 234 may be opened and closed five times (5 rounds of big hit) during the big hit game.

また、上述の実施例では、第1始動口用抽選データと第2始動口用抽選データを別データとした例を示したが、これに限定されず、第1始動口に遊技球が入賞したことを検出した場合、および第2始動口に遊技球が入賞したことを検出した場合に行う大当り判定の両方で、単一の所定の抽選データを参照するようにしてもよい。   In the above-described embodiment, the first start lottery data and the second start port lottery data are shown as separate data. However, the present invention is not limited to this, and a game ball is won at the first start port. It is also possible to refer to a single predetermined lottery data both in the case of detecting this and in the big hit determination that is performed when it is detected that a game ball has won the second starting port.

また、上述の実施例においては、遊技台として、遊技球を遊技媒体としたパチンコ機の例を示したが、本発明に係る遊技台はこれに限定されるものではなく、例えば、メダル(コイン)を遊技媒体としたパチスロ機(スロットマシン)などにも適用可能である。   Further, in the above-described embodiment, an example of a pachinko machine using a game ball as a game medium is shown as a game table, but the game table according to the present invention is not limited to this, for example, a medal (coin It can also be applied to a pachislot machine (slot machine) using a game medium as a game medium.

さらに、本発明は、前述のパチスロ機やパチンコ遊技機等の実機の他、これらのパチスロ機等の実機の動作を家庭用ゲーム機用として擬似的に実行するようなゲームプログラムにおいても、本発明を適用してゲームを実行することができる。その場合、ゲームプログラムを記録する記録媒体は、DVD−ROM、CD−ROM、FD(フレキシブルディスク)、その他任意の記録媒体を利用できる。   Furthermore, the present invention is not limited to the above-described actual machines such as pachislot machines and pachinko machines, but also to game programs that execute the operation of actual machines such as pachislot machines for home game machines in a pseudo manner. Can be applied to run the game. In that case, a DVD-ROM, CD-ROM, FD (flexible disk), or any other recording medium can be used as a recording medium for recording the game program.

以上、本発明の実施例を説明したが、発明の実施の形態に記載された、作用及び効果は、本発明から生じる最も好適な作用及び効果を列挙したに過ぎず、本発明による作用及び効果は、本発明の実施の形態に記載されたものに限定されるものではない。   As mentioned above, although the Example of this invention was described, the effect | action and effect which were described in embodiment of this invention only enumerated the most suitable effect | action and effect which arise from this invention, The effect | action and effect by this invention Is not limited to those described in the embodiment of the present invention.

次に、以上説明した実施形態7によるパチンコ機100の特徴的構成について説明する。   Next, a characteristic configuration of the pachinko machine 100 according to the seventh embodiment described above will be described.

(1)本実施の形態によるパチンコ機100は、 (1) The pachinko machine 100 according to the present embodiment

16ビット乱数を少なくとも生成可能な乱数生成手段と、   Random number generating means capable of generating at least a 16-bit random number;

前記16ビット乱数を少なくとも記憶可能な記憶手段と、   Storage means capable of storing at least the 16-bit random number;

複数の遊技制御処理のそれぞれを、メイン制御および割込み周期ごとに行われる割込み制御のうちの、少なくともいずれかの制御において実行可能な遊技制御手段と、
を備えた遊技台であって、
Game control means capable of executing each of the plurality of game control processes in at least one of main control and interrupt control performed for each interrupt cycle;
A game machine equipped with

前記遊技制御手段は、前記16ビット乱数を一命令で前記記憶手段に転送可能であり、   The game control means can transfer the 16-bit random number to the storage means with a single command,

前記乱数生成手段の特定フラグは前記命令の実行前後で変化しないこと
を特徴とする。
The specific flag of the random number generation means does not change before and after execution of the instruction.

ハード乱数取得の流れの一例として、「ラッチレジスタに値をセット→乱数値レジスタに乱数が取り込まれる→ラッチフラグレジスタにフラグがセットされる→該フラグを参照し、フラグが立っている場合に乱数を取得→フラグクリア」がある。この場合、ラッチ信号の出力からラッチ完了信号(セット信号)あるいはリード完了信号(クリア信号)のタイミングで乱数取得処理の実行時期が推測され易いという課題があるが、上記構成を備えたパチンコ機100によれば、16ビット乱数を一命令で転送可能であり、マイコン内の特定フラグは該命令実行前後で変化しないため、特定の処理の実行時期を判別困難にでき、これらの特定の処理の狙い撃ちを防止することができる場合がある。なお、特定フラグは例えば、乱数ソフトラッチフラグレジスタの所定のビットのことである。   As an example of the flow of hard random number acquisition, “Set value to latch register → Random value is fetched to random value register → Flag is set to latch flag register → Random number when flag is set and flag is set There is "get flag → clear flag". In this case, there is a problem that it is easy to guess the execution timing of the random number acquisition process at the timing of the latch completion signal (set signal) or the read completion signal (clear signal) from the output of the latch signal, but the pachinko machine 100 having the above-described configuration. The 16-bit random number can be transferred with one instruction, and the specific flag in the microcomputer does not change before and after the execution of the instruction, making it difficult to determine the execution time of the specific process. Can be prevented. The specific flag is, for example, a predetermined bit of a random number soft latch flag register.

16ビット乱数は複数の番地(レジスタ)に跨って格納され、一命令で下位バイトのレジスタを指定するだけでリード可能である。当否判定乱数は16ビット乱数で、必ずこの一命令で乱数を取得するようにしてもよい。また、16ビット乱数のみをこの一命令で取得し、当否判定乱数が8ビット乱数の場合は他の命令で取得するようにしてもよい。   A 16-bit random number is stored across a plurality of addresses (registers), and can be read simply by specifying a lower byte register with one instruction. The validity determination random number is a 16-bit random number, and the random number may always be acquired with this one command. Alternatively, only a 16-bit random number may be acquired with this one instruction, and if the success / failure determination random number is an 8-bit random number, it may be acquired with another instruction.

乱数リードを許可する処理(従来はラッチ信号が出力されていたが、本実施形態ではいわゆるプログラム上のフラグを立てるだけなので信号出力はない)と、乱数をリードする処理(リード信号出力あり)を別モジュールで実行するようにしてもよい。従来はラッチ信号出力のタイミングから乱数をリードする処理を推測し易かったが、本実施形態では推測困難にできる場合がある。   Processing for permitting random number reading (previously, a latch signal was output, but in this embodiment, there is no signal output because only a so-called program flag is set), and processing for reading random numbers (with read signal output) It may be executed by a separate module. Conventionally, it has been easy to guess the process of reading a random number from the timing of latch signal output, but in this embodiment, it may be difficult to guess.

さらに、乱数リードを許可する処理とリードする処理の間に別の処理があり、この別の処理の実行時間は種々の判定処理があるので可変とすることができる。処理の推測をより困難にできる場合がある。   Furthermore, there is another process between the process of permitting random number reading and the process of reading, and the execution time of this different process can be made variable because there are various determination processes. Processing inference can be made more difficult.

リードを許可する処理は一割込み内で複数回(特図1、特図2、普図の組合せ)実行可能としてもよい。さらに一のモジュール内で実行可能としてもよい。一のモジュールは、主制御部タイマ割込み処理の例えば入力ポート状態更新処理(ステップS205)であってもよい。リードを許可する処理が一割込み内で実行される回数は可変なので乱数をリードする処理の実行時期を推測困難にできる場合がある。   The process of permitting the read may be executed a plurality of times (combination of special figure 1, special figure 2, and common figure) within one interrupt. Further, it may be executable in one module. One module may be, for example, an input port state update process (step S205) of the main control unit timer interrupt process. Since the number of times a process that permits read is executed within one interrupt is variable, it may be difficult to estimate the execution time of a process that reads a random number.

乱数をリードする処理も一割込み内で複数回実行可能としてもよい。この場合の複数回数には、特図1、特図2、普図の組合せだけに限らず、ハード乱数(16ビット乱数生成回路で生成される乱数)とソフト乱数(ユーザプログラムより生成される乱数)の組合せでもよい。さらにこれらのリード処理を一のモジュール内で実行可能としてもよい。例えば、入賞判定パターンに一致した場合に乱数をリードする処理を一モジュール内で繰り返し行うようにしてもよい。あるいは、別モジュールにして、さらに別の処理(別のモジュール)が挟まれているようにしてもよい。モジュールの先頭アドレスはRST命令に対応するアドレスとは異なっていてもよいし、一致していてもよい。   The process of reading the random number may be executed a plurality of times within one interrupt. The multiple times in this case are not limited to the combination of special figure 1, special figure 2, and ordinary figure, but also a hard random number (random number generated by a 16-bit random number generation circuit) and a soft random number (random number generated by a user program). ). Further, these read processes may be executed in one module. For example, the process of reading a random number when it matches the winning determination pattern may be repeated in one module. Alternatively, another module may be used so that another process (another module) is sandwiched between them. The start address of the module may be different from or coincide with the address corresponding to the RST instruction.

乱数の取込方法は3種類ある。上述の通り、ソフトウエアによる取込みとして、ソフトラッチ乱数値レジスタの下位バイトを読み込み、続いて上位バイトをリードした場合にソフトラッチフラグレジスタをリセットする取込み方法がある。また、一命令である第三の命令を用いてソフトラッチ乱数値レジスタの下位、上位バイトをRAMに直接取込み、ソフトラッチフラグレジスタの状態に変更を加えない取込み方法がある。さらに、外部端子入力による乱数取込みも行うことができる。   There are three types of random number acquisition methods. As described above, there is a capturing method in which the lower byte of the soft latch random value register is read and then the soft latch flag register is reset when the upper byte is read. In addition, there is a fetching method in which the lower and upper bytes of the soft latch random value register are directly fetched into the RAM using a third instruction, which is one instruction, and the state of the soft latch flag register is not changed. Furthermore, it is possible to take in random numbers by inputting external terminals.

また、16ビット乱数にソフト乱数を組み合わせたり、さらに初期値更新乱数を組み合わせたりしてもよい。あるいは、これらを組み合わせなくてもよい。例えば、変動時間決定用乱数にハード乱数を使う場合、この乱数をペアレジスタに取り込まず直接にRAMに読み込むようにしてもよい。逆に当否判定乱数は必ずペアレジスタに取り込むようにしてもよい。   Further, a soft random number may be combined with a 16-bit random number, or an initial value update random number may be combined. Or these may not be combined. For example, when a hard random number is used as the random time for determining the variation time, this random number may be directly read into the RAM without being taken into the pair register. Conversely, the success / failure determination random number may be always taken into the pair register.

また、最大値設定しない乱数生成回路と最大値設定をする乱数生成回路があり、電源投入後に自動で起動する乱数生成回路もある。また、手動起動させる乱数生成回路もある。磁界検知信号、磁気検知信号、電波検知信号、振動検知信号等が所定の端子に入力されている場合であっても乱数の最大値設定を実行して乱数生成回路を起動させるようにしてもよい。   In addition, there are a random number generation circuit that does not set a maximum value and a random number generation circuit that sets a maximum value, and there is also a random number generation circuit that starts automatically after power-on. There is also a random number generation circuit that is manually activated. Even when a magnetic field detection signal, a magnetic detection signal, a radio wave detection signal, a vibration detection signal, or the like is input to a predetermined terminal, the random number generation circuit may be activated to start the random number generation circuit. .

機能限定タイマの構成として、乱数を取得して抽選を行う処理は主制御部タイマ割込み処理で行い、機能限定タイマを作動させている間は主制御部タイマ割込み処理に移行するが抽選処理には移行しないようにしてもよい。この場合でもハード乱数は更新されている。乱数を取得して抽選を行う処理は主制御部タイマ割込み処理で実行し、機能限定タイマ作動中は主制御部タイマ割込み処理の一部のみを実行する。抽選取得しないのに最大値設定で乱数生成回路を起動しておくことにより処理を推測困難にできる場合がある。   As a function limited timer configuration, random number acquisition and lottery processing is performed by the main control unit timer interrupt process, and while the function limited timer is operating, the process shifts to the main control unit timer interrupt process. It may not be transferred. Even in this case, the hard random number is updated. The process of acquiring a random number and performing the lottery is executed by the main controller timer interrupt process, and only a part of the main controller timer interrupt process is executed while the function limited timer is operating. Even if the lottery is not acquired, the process may be difficult to guess by starting the random number generation circuit with the maximum value setting.

また、複数の乱数の起動タイミングを異ならせるようにしてもよい。また、最大値が大きいものが常に最初に起動されるようにしてもよい。電源投入後の最初のモジュール(スタックポインタを設定する処理など)とは異なるモジュールで、乱数値の最大値を設定するようにしてもよい。WDT起動後に所定の乱数生成回路に最大値を設定して起動させるようにしてもよい。   Further, the activation timings of a plurality of random numbers may be varied. Also, the one with the largest maximum value may always be activated first. The maximum value of the random number value may be set by a module different from the first module after the power is turned on (such as processing for setting the stack pointer). After WDT is activated, a predetermined random number generation circuit may be set to a maximum value and activated.

乱数最大値設定処理の位置は、例えば以下のタイミングが挙げられる。   The position of the random number maximum value setting process includes, for example, the following timing.

(a)電源投入後の低電圧信号出力判定ループ処理より前、当該処理中、または当該処理より後、のいずれか。 (A) Either before the low voltage signal output determination loop processing after power-on, during the processing, or after the processing.

(b)内蔵レジスタに所定のデータを設定する処理より前、当該処理中、または当該処理より後、のいずれか。 (B) Either before the process of setting predetermined data in the built-in register, during the process, or after the process.

(c)電源ステータスを参照する処理(分岐する処理)より前、当該処理中、または当該処理より後、のいずれか。 (C) Either before the process of referring to the power status (the process of branching), during the process, or after the process.

(d)チェックSUMのループ処理より前、当該処理中、または当該処理より後、のいずれか。 (D) Either before the check SUM loop process, during the process, or after the process.

(e)内蔵RAMアクセス許可より前、当該処理中、または当該処理より後、のいずれか。 (E) Either before the access to the built-in RAM, during the process, or after the process.

(f)復帰起動または初期起動より前、当該処理中、または当該処理より後、のいずれか。 (F) Either before return start or initial start, during the process, or after the process.

(g)割り込み許可より前、当該処理中、または当該処理より後、のいずれか。 (G) Either before enabling the interrupt, during the process, or after the process.

(h)サブ起動待ちより前、当該処理中、または当該処理より後、のいずれか。 (H) Either before waiting for sub-activation, during the process, or after the process.

(i)ソフト乱数の更新開始より前、当該処理中、または当該処理より後、のいずれか。 (I) Either before the start of updating the soft random number, during the process, or after the process.

(j)サブへの通信確認コマンド(サブ起動開始コマンド、完了コマンド)、払出への通信確認コマンドなどのコマンド送出より前、当該処理中、または当該処理より後、のいずれか。 (J) Either before sending a command such as a sub-communication confirmation command (sub-start start command, completion command) or a communication confirmation command for payout, during the processing, or after the processing.

(k)WDT手動起動より前、当該処理中、または当該処理より後、のいずれか。
(2)上記パチンコ機100であって、
(K) Either before WDT manual activation, during the process, or after the process.
(2) The pachinko machine 100,

前記遊技制御手段を少なくとも有するマイクロプロセッサを備え、
前記マイクロプロセッサは、
A microprocessor having at least the game control means;
The microprocessor is

少なくとも、セキュリティチェックを行うことが可能なものであり、該セキュリティチェックの後に前記遊技制御が行われるユーザモードへ移行するまでの時間をランダムに変動させるランダム延長処理が少なくとも行われる、セキュリティモードに滞在した後、該ユーザモードへ移行するものであることを特徴とする。   Stay in security mode, at least a security check is possible, and at least a random extension process that randomly changes the time until the transition to the user mode in which the game control is performed after the security check is performed Then, the mode is shifted to the user mode.

当該構成を備えたパチンコ機100によれば、ユーザモードに移行する前にランダム延長処理を実行するので、遊技制御プログラムの実行開始タイミングをずらすことが可能なため、遊技制御処理の特定の処理(例えばソフト乱数の更新処理、初期値更新処理等)の実行時期を判別困難にでき、これらの特定の処理の狙い撃ちを防止することができる場合がある。   According to the pachinko machine 100 having such a configuration, since the random extension process is executed before shifting to the user mode, it is possible to shift the execution start timing of the game control program. For example, it may be difficult to determine the execution time of a soft random number update process, an initial value update process, and the like, and it may be possible to prevent the aim of these specific processes.

(3)上記パチンコ機100であって、前記ランダム延長処理の開始前に、前記マイクロプロセッサの所定の出力端子から所定の信号が出力されることを特徴とする。 (3) The pachinko machine 100 is characterized in that a predetermined signal is output from a predetermined output terminal of the microprocessor before the random extension process is started.

(4)上記パチンコ機100であって、前記所定の端子は、前記マイクロプロセッサ以外の外部機器に対してリセット信号を出力可能なリセット端子であることを特徴とする。 (4) In the pachinko machine 100, the predetermined terminal is a reset terminal capable of outputting a reset signal to an external device other than the microprocessor.

当該構成を備えたパチンコ機100によれば、ランダム延長処理の前に外部機器に対してリセット信号を出力し、ランダム延長処理の後に遊技制御プログラムの実行を開始することができるので、遊技制御処理の特定の処理(例えばソフト乱数の更新処理、初期値更新処理等)の実行時期を判別困難にでき、これらの特定の処理の狙い撃ちを防止することができる場合がある。   According to the pachinko machine 100 having this configuration, a reset signal can be output to the external device before the random extension process, and the execution of the game control program can be started after the random extension process. In some cases, it is difficult to determine the execution timing of the specific processing (for example, soft random number update processing, initial value update processing, etc.), and the aim of these specific processing can be prevented.

(5)上記パチンコ機100であって、前記遊技制御手段から送出されるコマンドに基づいて演出制御を行う副制御手段を有することを特徴とする。
<実施形態8>
(5) The pachinko machine 100 is characterized by having sub-control means for performing effect control based on a command sent from the game control means.
<Eighth embodiment>

以下、図面を用いて、本発明の実施形態8に係るパチンコ機(遊技台)について詳細に説明する。従来、乱数を用いて遊技制御を行う遊技台が知られている。しかし、不正者によって遊技台を解析されて不正に利益を得られる不正行為が行われてしまうという問題があった。
<乱数回路>
Hereinafter, a pachinko machine (game table) according to Embodiment 8 of the present invention will be described in detail with reference to the drawings. 2. Description of the Related Art Conventionally, game machines that perform game control using random numbers are known. However, there has been a problem that a fraudulent act in which a gaming machine is analyzed by an unauthorized person and profits can be obtained illegally.
<Random number circuit>

まず、図341を用いて、本実施形態に係る遊技台に用いられる16ビット乱数回路について説明する。図341は、16ビット乱数回路の内部構成図である。   First, a 16-bit random number circuit used in the game machine according to the present embodiment will be described with reference to FIG. FIG. 341 is an internal block diagram of a 16-bit random number circuit.

16ビット乱数回路9000は、それぞれ異なる乱数を生成する4つの乱数生成チャンネルCH0〜CH3を備えている。乱数生成チャンネルCH0〜CH3は、それぞれ個別に16ビット乱数を発生させることができる。なお、各チャンネル回路の内部構成は同一であるため、図341では、1つの乱数生成チャンネルCH0を示し、残りの乱数生成チャンネルCH1〜CH3については、図示を簡略化している。以下の説明では、この乱数生成チャンネルCH0を中心に16ビット乱数回路9000について説明する。   The 16-bit random number circuit 9000 includes four random number generation channels CH0 to CH3 that generate different random numbers. The random number generation channels CH0 to CH3 can individually generate 16-bit random numbers. Since the internal configuration of each channel circuit is the same, FIG. 341 shows one random number generation channel CH0, and the remaining random number generation channels CH1 to CH3 are simplified in illustration. In the following description, the 16-bit random number circuit 9000 will be described focusing on the random number generation channel CH0.

プログラム管理エリア内の16ビット乱数初期値設定部9002には、RCK端子からの外部クロック信号9004aと内部システムクロック9004bのうち、いずれのクロック信号を乱数生成回路9006で使用するかを決めるクロック選択情報が、プログラム管理エリア内の情報に基づいて設定される。RCK端子からの外部クロック信号9004aと内部システムクロック9004bとは、乱数生成回路9006の手前に設けられたマルチプレクサに入力される。16ビット乱数初期値設定部9002が上記クロック選択情報に従って更新クロック選択信号をこのマルチプレクサに入力することにより、この更新クロック選択信号によって選択されたクロック信号が乱数生成回路9006に入力されるようになっている。なお、外部クロック信号9004aが選択されている場合、所定の分周比(この例では、1/2)で分周されたクロック信号が乱数生成回路9006に入力される。なお、分周されたクロック信号が、内部システムクロック9004bよりも低い周波数でない場合には使用することができない。なお、本実施形態では、外部クロック信号9004aが選択されているものとして説明を続ける。   In the 16-bit random number initial value setting unit 9002 in the program management area, clock selection information for determining which clock signal to use in the random number generation circuit 9006 out of the external clock signal 9004a and the internal system clock 9004b from the RCK terminal. Is set based on information in the program management area. The external clock signal 9004a and the internal system clock 9004b from the RCK terminal are input to a multiplexer provided in front of the random number generation circuit 9006. When the 16-bit random number initial value setting unit 9002 inputs an update clock selection signal to the multiplexer according to the clock selection information, the clock signal selected by the update clock selection signal is input to the random number generation circuit 9006. ing. Note that when the external clock signal 9004a is selected, a clock signal divided by a predetermined frequency division ratio (1/2 in this example) is input to the random number generation circuit 9006. Note that the frequency-divided clock signal cannot be used when the frequency is not lower than that of the internal system clock 9004b. In the present embodiment, the description will be continued assuming that the external clock signal 9004a is selected.

乱数生成回路9006による乱数値更新を開始する起動方法は、最大値設定信号による起動又はユーザモード起動信号9008による起動の2つの方法から選択することができる。最大値設定で起動を選択した場合には、生成される乱数値の最大値が最大値設定レジスタ9010に設定された後、乱数生成回路9006が起動される。ユーザモード起動信号9008による起動を選択すると、ユーザモード移行で自動的に乱数生成回路9006が起動され、最大値の設定をすることができないようになっている。乱数値の最大値は、乱数生成チャンネルCH0〜CH3でそれぞれ個別に設定することができる。   The activation method for starting the random number value update by the random number generation circuit 9006 can be selected from two methods: activation by the maximum value setting signal or activation by the user mode activation signal 9008. When activation is selected in the maximum value setting, the maximum value of the generated random number value is set in the maximum value setting register 9010, and then the random number generation circuit 9006 is activated. When the activation by the user mode activation signal 9008 is selected, the random number generation circuit 9006 is automatically activated by the transition to the user mode, and the maximum value cannot be set. The maximum value of the random number value can be set individually for each of the random number generation channels CH0 to CH3.

16ビット乱数初期値設定部9002には、いずれの方法で乱数生成回路9006を起動するかを決める選択情報が、プログラム管理エリア内の情報に基づいて設定される。最大値設定で起動する起動信号又はユーザモード起動9008で起動する起動信号とが乱数生成回路9006の手前に設けられたマルチプレクサに入力される。16ビット乱数初期値設定部9002が上記クロック選択情報に従っていずれの起動信号を選択するかの選択信号をこのマルチプレクサに入力することにより、選択された起動信号で乱数生成回路9006が起動するようになっている。   In the 16-bit random number initial value setting unit 9002, selection information for determining which method to activate the random number generation circuit 9006 is set based on information in the program management area. The activation signal activated at the maximum value setting or the activation signal activated at the user mode activation 9008 is input to a multiplexer provided in front of the random number generation circuit 9006. The 16-bit random number initial value setting unit 9002 inputs a selection signal to select which start signal according to the clock selection information to the multiplexer, so that the random number generation circuit 9006 is started by the selected start signal. ing.

乱数生成回路9006は、16ビット乱数初期値設定部9002によって選択されたクロック信号が入力され、このクロック信号の周期に従って乱数を更新する。乱数生成回路9006には、更新クロック信号の1クロック毎に1が加算され、乱数が更新されるようになっている。16ビット乱数回路9000の乱数生成回路9006では、0から65535までの乱数を生成することができる。   The random number generation circuit 9006 receives the clock signal selected by the 16-bit random number initial value setting unit 9002 and updates the random number according to the cycle of the clock signal. In the random number generation circuit 9006, 1 is added for each clock of the update clock signal so that the random number is updated. The random number generation circuit 9006 of the 16-bit random number circuit 9000 can generate random numbers from 0 to 65535.

また、乱数生成回路9006には、更新監視回路(不図示)が設けられている。乱数生成回路9006が更新した乱数の値は、更新監視回路に入力される。更新監視回路は、乱数値の入力に基づいて、乱数が正常に更新されているか否かを監視する。乱数の更新に異常がある場合、この乱数の更新に異常があることを示す情報を、リセットコントローラ9060に送信する。   The random number generation circuit 9006 is provided with an update monitoring circuit (not shown). The random number value updated by the random number generation circuit 9006 is input to the update monitoring circuit. The update monitoring circuit monitors whether the random number is normally updated based on the input of the random value. If there is an abnormality in updating the random number, information indicating that there is an abnormality in updating the random number is transmitted to the reset controller 9060.

乱数生成回路9006の1周目からの乱数スタート値は、例えば、「0001H」、「システムリッセット毎の変更値」又は「IDナンバーを基にした値」のいずれかに、16ビット乱数初期値設定部9002によって設定される。乱数スタート値が「0001H」に設定されると、乱数生成回路9006の起動時(更新開始時)のスタート値が0001Hに設定される。また、乱数スタート値が「システムリセット毎の変更値」に設定されると、乱数生成回路9006の起動時(更新開始時)のスタート値がシステムリッセット毎に変動する値に設定される。また、乱数スタート値が「IDナンバーを基にした値」に設定されると、乱数生成回路9006の起動時(更新開始時)のスタート値がチップ個別に異なる値に設定される。   The random number start value from the first round of the random number generation circuit 9006 is set to, for example, “0001H”, “change value for each system reset”, or “value based on ID number”, 16-bit random number initial value setting Set by the unit 9002. When the random number start value is set to “0001H”, the start value when the random number generation circuit 9006 is activated (at the start of update) is set to 0001H. Further, when the random number start value is set to “change value for each system reset”, the start value at the time of starting the random number generation circuit 9006 (at the start of update) is set to a value that varies for each system reset. Further, when the random number start value is set to “value based on the ID number”, the start value when the random number generation circuit 9006 is activated (at the start of update) is set to a different value for each chip.

乱数スタート値選択回路9012には、16ビット乱数初期値設定部9002からいずれの乱数スタート値で乱数生成回路9006が乱数更新を開始するか設定する信号が入力される。乱数スタート値選択回路9012は、入力された信号に基づいて、乱数生成回路9006に選択された乱数スタート値を出力する。乱数生成回路9006は、入力された乱数スタート値から乱数更新を開始する。   The random number start value selection circuit 9012 receives a signal for setting which random number start value the random number generation circuit 9006 starts to update the random number from the 16-bit random number initial value setting unit 9002. The random number start value selection circuit 9012 outputs the selected random number start value to the random number generation circuit 9006 based on the input signal. The random number generation circuit 9006 starts updating the random number from the input random number start value.

乱数生成回路9006が生成する乱数列は、所定の数値範囲(例えば、0〜65535)で更新される。16ビット乱数回路9000では、この乱数列の並びを変更することができる。乱数列の変更方法は、ソフトウェアによる変更、2周目から自動的に変更または1周目から自動的に変更のいずれかを選択することができる。ソフトウェアによる変更を選択した場合には、ユーザプログラムにより乱数列が変更される。また、この場合には、乱数生成回路9006が生成する乱数値が一巡し、次の周期の開始後から乱数列が変更される。なお、乱数列変更選択回路9016が乱数生成回路9006から乱数一巡信号を受けた時点で、一つの乱数列を一周したと判定される。   The random number sequence generated by the random number generation circuit 9006 is updated in a predetermined numerical range (for example, 0 to 65535). In the 16-bit random number circuit 9000, the arrangement of the random number sequence can be changed. As a method for changing the random number sequence, it is possible to select either a change by software, an automatic change from the second round, or an automatic change from the first round. When the change by software is selected, the random number sequence is changed by the user program. In this case, the random number generated by the random number generation circuit 9006 makes a round, and the random number sequence is changed after the start of the next cycle. Note that when the random number sequence change selection circuit 9016 receives a round-trip signal from the random number generation circuit 9006, it is determined that one random number sequence has been made a round.

ソフトウェアによる変更を選択した場合にのみ有効な乱数列変更レジスタ9014が設けられている。乱数列変更レジスタ9014は、乱数生成回路9006が生成した乱数列の並びを変更するために設けられている。   A random number sequence change register 9014 that is effective only when the change by software is selected is provided. The random number sequence change register 9014 is provided to change the arrangement of the random number sequence generated by the random number generation circuit 9006.

乱数列変更選択回路9016には、16ビット乱数初期値設定部9002により乱数列を変更するか否かの選択信号が入力される。乱数列変更選択回路9016は、入力された選択信号に基づいて、乱数列の変更を行うか否か選択する。乱数列を変更しない場合には、乱数列変更選択回路9016は、「変更せず」という信号を選択し、乱数列変更回路9018に出力する。乱数列を変更する場合には、乱数列変更選択回路9016は、いずれの変更方法で乱数列を変更するかという信号を乱数列変更回路9018に出力する。ソフトウェアによる変更が選択された場合には、乱数列変更選択回路9016は、乱数列変更レジスタ9014からの信号に基づいて、乱数列変更回路9018に乱数列の変更情報を出力する。   A selection signal indicating whether or not to change the random number sequence is input to the random number sequence change selection circuit 9016 by the 16-bit random number initial value setting unit 9002. The random number sequence change selection circuit 9016 selects whether or not to change the random number sequence based on the input selection signal. When the random number sequence is not changed, the random number sequence change selection circuit 9016 selects the signal “not changed” and outputs the signal to the random number sequence change circuit 9018. When changing the random number sequence, the random number sequence change selection circuit 9016 outputs a signal indicating which change method is used to change the random number sequence to the random number sequence change circuit 9018. When the change by software is selected, the random number sequence change selection circuit 9016 outputs the change information of the random number sequence to the random number sequence change circuit 9018 based on the signal from the random number sequence change register 9014.

乱数列変更回路9018は、乱数列を変更する場合には、乱数生成回路9006が生成した乱数列を変更し、変更後の乱数列を最大値比較回路9020に出力し、乱数列を変更しない場合には、乱数生成回路9006が生成した乱数列をそのまま最大値比較回路9020に出力する。   When changing the random number sequence, the random number sequence change circuit 9018 changes the random number sequence generated by the random number generation circuit 9006, outputs the changed random number sequence to the maximum value comparison circuit 9020, and does not change the random number sequence The random number sequence generated by the random number generation circuit 9006 is output to the maximum value comparison circuit 9020 as it is.

最大値を設定して乱数生成回路9006を起動した場合には、最大値設定レジスタ9010に設定された最大値が格納されている。最大値設定レジスタ9010に最大値が設定さている場合には、最大値比較回路9020は、入力される乱数値と最大値との比較を行う。最大値比較回路9020は、当該乱数値が最大値以下であると判断すると、後述するハードラッチ乱数値レジスタおよびソフトラッチ乱数値レジスタに乱数値を出力し、当該乱数値が最大値より大きいと判断すると、ハードラッチ乱数値レジスタおよびソフトラッチ乱数値レジスタに乱数値を出力しないようになっている。   When the maximum value is set and the random number generation circuit 9006 is activated, the maximum value set in the maximum value setting register 9010 is stored. When the maximum value is set in the maximum value setting register 9010, the maximum value comparison circuit 9020 compares the input random number value with the maximum value. When the maximum value comparison circuit 9020 determines that the random number value is less than or equal to the maximum value, it outputs a random value to a hard latch random value register and a soft latch random value register, which will be described later, and determines that the random value is greater than the maximum value. Then, no random number value is output to the hard latch random value register and the soft latch random value register.

16ビット乱数回路9000には、乱数生成チャンネルCH0用のハードラッチ選択レジスタとして、CH0ハードラッチ選択レジスタ9022a、9022bの2つのレジスタが設けられている。また、乱数生成チャネルCH1〜CH3用のハードラッチ選択レジスタとして、CH1ハードラッチ選択レジスタ9024、CH2ハードラッチ選択レジスタ9026、CH3ハードラッチ選択レジスタ9028がそれぞれ設けられている。これらのハードラッチ選択レジスタには、パラレル入力ポートを介してPI0〜PI5信号がそれぞれ入力される。各ハードラッチ選択レジスタは、PI0〜PI5信号の入力に基づいて、対応するハードラッチ乱数値レジスタにラッチ信号を出力する。   The 16-bit random number circuit 9000 is provided with two registers, CH0 hard latch selection registers 9022a and 9022b, as hard latch selection registers for the random number generation channel CH0. Further, a CH1 hard latch selection register 9024, a CH2 hard latch selection register 9026, and a CH3 hard latch selection register 9028 are provided as the hard latch selection registers for the random number generation channels CH1 to CH3, respectively. The PI0 to PI5 signals are input to these hard latch selection registers via the parallel input ports, respectively. Each hard latch selection register outputs a latch signal to the corresponding hard latch random value register based on the input of the PI0 to PI5 signals.

ソフトラッチ選択レジスタ9030には、後述するソフトラッチ乱数値レジスタ9040〜9046のそれぞれが乱数をラッチすることを示す情報がCPU304からの指示によって適宜選択される。この情報が、ラッチ信号としてソフトラッチ乱数値レジスタ9040〜9046のそれぞれに出力される。   In the soft latch selection register 9030, information indicating that each of soft latch random number registers 9040 to 9046 described later latches random numbers is appropriately selected according to an instruction from the CPU 304. This information is output to each of the soft latch random value registers 9040 to 9046 as a latch signal.

乱数生成チャンネルCH0用のハードラッチ乱数値レジスタとして、CH0ハードラッチ乱数値レジスタ9032a、9032b、9032c、9032dの4つのレジスタが設けられている。乱数生成チャンネルCH1用のハードラッチ乱数値レジスタとして、乱数生成チャンネルCH1ハードラッチ乱数値レジスタ9034a、9034bの2つのレジスタが設けられている。乱数生成チャンネルCH2用のハードラッチ乱数値レジスタとして、CH2ハードラッチ乱数値レジスタ9036a、9036bの2つのレジスタが設けられている。乱数生成チャンネルCH3用のハードラッチ乱数値レジスタとして、CH3ハードラッチ乱数値レジスタ9038a、9038bの2つのレジスタが設けられている。   Four registers, CH0 hard latch random number registers 9032a, 9032b, 9032c, and 9032d, are provided as hard latch random number registers for the random number generation channel CH0. As the hard latch random number value registers for the random number generation channel CH1, two registers, the random number generation channel CH1 hard latch random number value registers 9034a and 9034b, are provided. Two registers, CH2 hard latch random number registers 9036a and 9036b, are provided as hard latch random number registers for the random number generation channel CH2. Two registers, CH3 hard latch random number registers 9038a and 9038b, are provided as hard latch random number registers for the random number generation channel CH3.

これらのハードラッチ乱数値レジスタ9032a〜9032d、9034a〜9034b、9036a〜9036b、9038a〜9038bには、3つの信号が入力される。1つ目の信号は、対応する乱数生成チャンネルの乱数発生回路により生成された乱数を表す信号である。2つ目の信号は、ハードラッチ選択レジスタから出力された乱数ラッチ信号(ハードラッチ信号)である。3つ目の信号は、乱数の読み取りを示すリード信号である。   These hard latch random number value registers 9032a to 9032d, 9034a to 9034b, 9036a to 9036b, and 9038a to 9038b receive three signals. The first signal is a signal representing a random number generated by the random number generation circuit of the corresponding random number generation channel. The second signal is a random number latch signal (hard latch signal) output from the hard latch selection register. The third signal is a read signal indicating random number reading.

ハードラッチ乱数値レジスタ9032a〜9032d、9034a〜9034b、9036a〜9036b、9038a〜9038bには、対応する乱数生成チャンネルの乱数発生回路によって更新された乱数を示す信号が常に入力されている。ここで、ラッチ信号が入力されると、この入力タイミングにおける乱数がハードラッチ乱数値レジスタ内にラッチ(保持)される。このとき、ハードラッチ乱数値レジスタからは、乱数がラッチされていることを示すセット信号が、ハードラッチフラグレジスタ9048a、9048bに出力される。このときCPU304は、ラッチされている乱数を取得することができる。なお、CPU304により乱数が取得されると、ハードラッチ乱数値レジスタにリード信号が入力される。この信号により新たなラッチ信号が入力された場合に乱数をラッチすることを許容する許容状態となる。換言すれば、一度乱数をラッチすると、リード信号が入力されるまで新たに乱数をラッチすることができない非許容状態となる。なお、リード信号が入力されてもラッチされている乱数は保持し続けるため、CPU304はラッチされている同一のタイミングでラッチされた乱数を何度でも取得することができる。このように構成することで乱数ラッチ信号を出力するセンサ回路におけるチャタリングの影響を押さえることができる。なお、リード信号が入力されたことを示すクリア信号がハードラッチフラグレジスタ9048a、9048bに出力される。また、図341に示すように、ハードラッチ乱数値レジスタが複数あることにより、同じ乱数生成回路から生成された乱数を様々なタイミングで取得することができる。   The hard latch random number value registers 9032a to 9032d, 9034a to 9034b, 9036a to 9036b, and 9038a to 9038b always receive a signal indicating the random number updated by the random number generation circuit of the corresponding random number generation channel. Here, when a latch signal is input, a random number at this input timing is latched (held) in the hard latch random number value register. At this time, a set signal indicating that the random number is latched is output from the hard latch random number value register to the hard latch flag registers 9048a and 9048b. At this time, the CPU 304 can acquire the latched random number. When a random number is acquired by the CPU 304, a read signal is input to the hard latch random number value register. When a new latch signal is input by this signal, an allowable state is entered in which random numbers are allowed to be latched. In other words, once the random number is latched, it becomes an unacceptable state in which the random number cannot be newly latched until the read signal is inputted. Note that since the latched random number is held even when a read signal is input, the CPU 304 can acquire the latched random number any number of times at the same latched timing. With this configuration, the influence of chattering in the sensor circuit that outputs the random number latch signal can be suppressed. A clear signal indicating that a read signal has been input is output to the hard latch flag registers 9048a and 9048b. As shown in FIG. 341, since there are a plurality of hard latch random number value registers, random numbers generated from the same random number generation circuit can be acquired at various timings.

ハードラッチフラグレジスタ9048a、9048bには、ハードラッチ乱数値レジスタに乱数がラッチされているか否かを示す情報が記憶される。なお、ハードラッチフラグレジスタ9048a、9048bは、ハードラッチ乱数レジスタにラッチされた乱数(16ビット乱数の全てまたは一部)が読み出されたときに自動的にクリアされるように構成してもよいし、CPU304によってクリアするように構成してもよい。   The hard latch flag registers 9048a and 9048b store information indicating whether or not a random number is latched in the hard latch random number value register. Note that the hard latch flag registers 9048a and 9048b may be configured to be automatically cleared when the random numbers (all or part of the 16-bit random numbers) latched in the hard latch random number registers are read. However, it may be configured to be cleared by the CPU 304.

割込み制御レジスタ9052a、9052bには、ハードラッチ乱数値レジスタに乱数が保持された際に割込み制御回路に割込みを発生させるか否かを示す情報が設定される。この情報はハードラッチ乱数値レジスタ毎に設定することができる。例えば、第1特図始動口230への入球により乱数生成チャンネルCH1の乱数がラッチされた場合には、割込みを発生させ、第2特図始動口232への入球により乱数生成チャンネルCH2の乱数がラッチされた場合には、割込みを発生させない、というような設定をすることができる。   In the interrupt control registers 9052a and 9052b, information indicating whether or not to generate an interrupt in the interrupt control circuit when a random number is held in the hard latch random number value register is set. This information can be set for each hard latch random value register. For example, when the random number of the random number generation channel CH1 is latched by entering the first special figure starting port 230, an interrupt is generated, and by entering the second special figure starting port 232, the random number generating channel CH2 If a random number is latched, it can be set such that no interrupt is generated.

また、乱数生成チャンネルCH0〜CH3用のソフトラッチ乱数値レジスタとして、CH0ソフトラッチ乱数値レジスタ9040、CH1ソフトラッチ乱数値レジスタ9042、CH2ソフトラッチ乱数値レジスタ9044、CH3ソフトラッチ乱数値レジスタ9046が乱数生成チャンネルCH0〜CH3に対してそれぞれ1つずつ設けられている。   Further, as the soft latch random value registers for the random number generation channels CH0 to CH3, the CH0 soft latch random value register 9040, the CH1 soft latch random value register 9042, the CH2 soft latch random value register 9044, and the CH3 soft latch random value register 9046 are random numbers. One is provided for each of the generation channels CH0 to CH3.

これらのソフトラッチ乱数値レジスタ9040〜9046には、3つの信号が入力される。1つ目の信号は、対応する乱数生成チャンネルの乱数発生回路により生成された乱数を表す信号である。2つ目の信号は、ソフトラッチ選択レジスタ9030から出力された乱数ラッチ信号(ソフトラッチ信号)である。3つ目の信号は、乱数の読み取りを示すリード信号である。   Three signals are input to these soft latch random value registers 9040 to 9046. The first signal is a signal representing a random number generated by the random number generation circuit of the corresponding random number generation channel. The second signal is a random number latch signal (soft latch signal) output from the soft latch selection register 9030. The third signal is a read signal indicating random number reading.

ソフトラッチ乱数値レジスタ9040〜9046には、対応する乱数生成チャンネルの乱数発生回路によって更新された乱数を示す信号が常に入力されている。ここで、ラッチ信号が入力されると、この入力タイミングにおける乱数がソフトラッチ乱数値レジスタ内にラッチ(保持)される。このとき、ソフトラッチ乱数値レジスタからは、乱数がラッチされていることを示すセット信号が、ソフトラッチフラグレジスタ9050に出力される。このときCPU304は、ラッチされている乱数を取得することができる。なお、CPU304により乱数が取得されると、ソフトラッチ乱数値レジスタにリード信号が入力される。この信号により新たなラッチ信号が入力された場合に乱数をラッチすることを許容する許容状態となる。換言すれば、一度乱数をラッチすると、リード信号が入力されるまで新たに乱数をラッチすることができない非許容状態となる。なお、リード信号が入力されてもラッチされている乱数は保持し続けるため、CPU304はラッチされている同一のタイミングでラッチされた乱数を何度でも取得することができる。このように構成することで乱数ラッチ信号を出力するセンサ回路におけるチャタリングの影響を押さえることができる。なお、リード信号が入力されたことを示すクリア信号がソフトラッチフラグレジスタ9050に出力される。   The soft latch random number value registers 9040 to 9046 always receive a signal indicating the random number updated by the random number generation circuit of the corresponding random number generation channel. Here, when a latch signal is input, a random number at this input timing is latched (held) in the soft latch random number value register. At this time, a set signal indicating that the random number is latched is output from the soft latch random number value register to the soft latch flag register 9050. At this time, the CPU 304 can acquire the latched random number. When a random number is acquired by the CPU 304, a read signal is input to the soft latch random number value register. When a new latch signal is input by this signal, an allowable state is entered in which random numbers are allowed to be latched. In other words, once the random number is latched, it becomes an unacceptable state in which the random number cannot be newly latched until the read signal is inputted. Note that since the latched random number is held even when a read signal is input, the CPU 304 can acquire the latched random number any number of times at the same latched timing. With this configuration, the influence of chattering in the sensor circuit that outputs the random number latch signal can be suppressed. Note that a clear signal indicating that a read signal has been input is output to the soft latch flag register 9050.

ソフトラッチフラグレジスタ9050には、ソフトラッチ乱数値レジスタ9040〜9046に乱数がラッチされているか否かを示す情報が記憶される。なお、ソフトラッチフラグレジスタ9050は、ソフトラッチ乱数レジスタ9040〜9046にラッチされた乱数(16ビット乱数の全てまたは一部)が読み出されたときに自動的にクリアされるように構成してもよいし、CPU304によってクリアするように構成してもよい。   The soft latch flag register 9050 stores information indicating whether or not random numbers are latched in the soft latch random value registers 9040 to 9046. The soft latch flag register 9050 may be configured to be automatically cleared when random numbers (all or a part of 16-bit random numbers) latched in the soft latch random number registers 9040 to 9046 are read. It may be configured to be cleared by the CPU 304.

割込みコントローラ9070は、外部入力や内部状態の変化に応じて適宜処理を実行させるために割込みを発生させる。この割込み処理には、例えば外部からの入力(センサによる信号)を受け付けた場合に実行する処理がある。   The interrupt controller 9070 generates an interrupt in order to appropriately execute processing according to an external input or a change in an internal state. This interrupt process includes, for example, a process executed when an external input (signal from a sensor) is received.

上記説明した16ビット乱数生成回路9000を用いて、本実施形態では、普図始動口282、第1特図始動口230、第2特図始動口232のそれぞれに入球したタイミングで乱数を取得する。なお、任意のタイミングでCPU304に乱数を取得させるように、プログラムを実行させることもできる。さらに異なる乱数生成チャンネルを使用してそれぞれ独立の乱数を取得し、それぞれのチャンネル毎に乱数生成範囲の最大値を設定することができる。   In the present embodiment, using the 16-bit random number generation circuit 9000 described above, random numbers are acquired at the timing of entering each of the normal map start port 282, the first special map start port 230, and the second special map start port 232. To do. Note that the program can be executed so that the CPU 304 can acquire a random number at an arbitrary timing. Further, independent random numbers can be acquired using different random number generation channels, and the maximum value of the random number generation range can be set for each channel.

なお、本実施形態では、個別のチャンネルに対して乱数生成範囲を変更することができ、設定されていない場合には所定の最大値(例えば65535)が適用される例について説明したが、これ以外に例えば、乱数生成範囲を変更する場合に全てのチャンネルに対して乱数生成範囲を設定することを必要とする構成であってもよい。   In the present embodiment, the example in which the random number generation range can be changed for each individual channel and a predetermined maximum value (for example, 65535) is applied when the range is not set has been described. For example, when changing the random number generation range, the configuration may be required to set the random number generation range for all channels.

なお、普図始動口282に入球したタイミングで取得された乱数は、後述する普図当選乱数として用いられる。また、第1特図始動口230に入球したタイミングで取得された乱数は、加工(例えば、乱数生成回路とは異なる回路(例えば、基本回路302やカウンタ回路312)でカウントアップ(ダウン)される値を乱数に加算(減算)する処理など)されて、後述する特図1当選乱数として用いられる。さらに、第2特図始動口232に入球したタイミングで取得された乱数は、加工されて、後述する特図2当選乱数として用いられる。   In addition, the random number acquired at the timing of entering the general figure starting port 282 is used as a general figure winning random number described later. In addition, the random number acquired at the timing of entering the first special figure starting port 230 is counted up (down) by processing (for example, a circuit different from the random number generation circuit (for example, the basic circuit 302 or the counter circuit 312)). The value is added (subtracted) to the random number, etc.) and used as a special figure 1 winning random number described later. Furthermore, the random number acquired at the timing of entering the second special figure starting port 232 is processed and used as a special figure 2 winning random number described later.

なお、乱数の加工は、第1特図始動口230および第2特図始動口232に入球したタイミングで取得される乱数に限らず、他の契機(例えば、普図始動口282へに入球したタイミングなど)によって取得される乱数に対して行ってもよい。さらに、上述した乱数生成範囲の最大値を設定する場合においては、設定した最大値に応じた加工(例えば、この最大値を超えない値を乱数に加算する処理など)すれば良い。   The random number processing is not limited to the random number acquired at the timing of entering the first special figure starting port 230 and the second special figure starting port 232, but other triggers (for example, entering the normal figure starting port 282). You may perform with respect to the random number acquired by a ball timing etc.). Furthermore, when the maximum value of the random number generation range described above is set, processing corresponding to the set maximum value (for example, a process of adding a value not exceeding the maximum value to the random number) may be performed.

また、乱数の加工は必ずしも行う必要はないが、乱数の加工を行うことは乱数の狙いうちの防止に有効に働く。例えば加工した後の乱数が更新されたか否かをCPU304によって監視した場合、乱数生成回路318内での乱数の更新が正常に行われているか否かを正確に判断することができない。このように、乱数を加工する場合には、上述の乱数監視回路3184による乱数の更新の監視がより有効に働くこととなる。   In addition, although it is not always necessary to perform random number processing, it is effective to prevent random numbers from being processed. For example, when the CPU 304 monitors whether or not the processed random number has been updated, it cannot be accurately determined whether or not the random number update in the random number generation circuit 318 is normally performed. Thus, when processing random numbers, monitoring of update of random numbers by the random number monitoring circuit 3184 described above works more effectively.

図342は、8ビット乱数回路10000の内部構成図である。図342に示すように、8ビット乱数回路10000は、それぞれ異なる乱数を生成する4つの乱数生成チャンネルCH0〜CH3を備えている。乱数生成チャンネルCH0〜CH3は、それぞれ個別に8ビット乱数(0〜256)を発生させることができる。なお、各チャンネル回路の内部構成は同一であるため、図342では、1つの乱数生成チャンネルCH0を示し、残りの乱数生成チャンネルCH1〜CH3については、図示を簡略化している。なお、8ビット乱数回路10000については、図341に示す16ビット乱数回路9000とほぼ同様であるため、詳細な説明を省略する。
<主制御部メイン処理>
FIG. 342 is an internal block diagram of the 8-bit random number circuit 10000. As shown in FIG. 342, the 8-bit random number circuit 10000 includes four random number generation channels CH0 to CH3 that generate different random numbers. The random number generation channels CH0 to CH3 can individually generate 8-bit random numbers (0 to 256). Since the internal configuration of each channel circuit is the same, FIG. 342 shows one random number generation channel CH0, and the remaining random number generation channels CH1 to CH3 are simplified in illustration. The 8-bit random number circuit 10000 is substantially the same as the 16-bit random number circuit 9000 shown in FIG.
<Main control unit main processing>

次に、図343を用いて、主制御部300のCPU304が実行する主制御部メイン処理について説明する。なお、同図は主制御部メイン処理の流れを示すフローチャートである。   Next, main control unit main processing executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of main processing of the main control unit.

上述したように、主制御部300には、電源が投入されると起動信号(リセット信号)を出力する起動信号出力回路(リセット信号出力回路)340を設けている。この起動信号を入力した基本回路302のCPU304は、リセット割込によりリセットスタートしてROM306に予め記憶している制御プログラムに従って図343に示す主制御部メイン処理を実行する。   As described above, the main control unit 300 is provided with the start signal output circuit (reset signal output circuit) 340 that outputs the start signal (reset signal) when the power is turned on. The CPU 304 of the basic circuit 302 to which this activation signal has been input performs reset start by a reset interrupt and executes main control unit main processing shown in FIG. 343 in accordance with a control program stored in advance in the ROM 306.

まず、主制御部メイン処理では、図343(a)に示す、プログラム起動設定処理を行う。プログラム起動設定処理のステップS15101では、スタックポインタ設定を行う。このスタックポインタ設定では、CPU304のスタックポインタ(SP)へのスタック初期値の設定(仮設定)を行う。   First, in the main control unit main process, a program activation setting process shown in FIG. 343 (a) is performed. In step S15101 of the program activation setting process, a stack pointer is set. In this stack pointer setting, the stack initial value is set (temporary setting) to the stack pointer (SP) of the CPU 304.

次いで、図343(b)に示す、電源投入時処理を行う。電源投入時処理のステップS15103では、低電圧信号がオンであるか否か、すなわち、電圧監視回路338が、電源制御部660から主制御部300に供給している電源の電圧値が所定の値(本実施形態では9V)未満である場合に電圧が低下したことを示す低電圧信号を出力しているか否かを監視する。そして、低電圧信号がオンの場合(CPU304が電源の遮断を検知した場合)にはステップS15103の処理を繰り返し実行し、低電圧信号がオフの場合(CPU304が電源の遮断を検知していない場合)にはステップS15105に進む。なお、電源が投入された直後で未だ上記所定の値(9V)に達しない場合にも、供給電圧がその所定の値以上になるまで、ステップS15103の処理を繰り返し実行する。   Next, the power-on process shown in FIG. 343 (b) is performed. In step S15103 of the power-on process, whether or not the low voltage signal is on, that is, the voltage value of the power supplied from the power control unit 660 to the main control unit 300 by the voltage monitoring circuit 338 is a predetermined value. It is monitored whether or not a low voltage signal indicating that the voltage has decreased when the voltage is less than (9 V in this embodiment). If the low voltage signal is on (when the CPU 304 detects that the power supply has been cut off), the processing of step S15103 is repeated, and if the low voltage signal is off (if the CPU 304 has not detected the power supply being cut off). ) Proceeds to step S15105. Even when the predetermined value (9 V) is not yet reached immediately after the power is turned on, the process of step S15103 is repeatedly executed until the supply voltage becomes equal to or higher than the predetermined value.

ステップS15105では、初期設定2を実行する(詳細は後述)。   In step S15105, initial setting 2 is executed (details will be described later).

ステップS15107では、電断前(電源の遮断前)の状態に復帰するか否かの判定を行い、電断前の状態に復帰しない場合(主制御部300の基本回路302を初期状態にする場合)には初期化処理(ステップS15113)に進む。   In step S15107, it is determined whether or not to return to the state before the power interruption (before the power is turned off), and the state before the power interruption is not restored (when the basic circuit 302 of the main control unit 300 is set to the initial state). ) Proceeds to an initialization process (step S15113).

具体的には、最初に、電源基板に設けたRWMクリアスイッチ180を遊技店の店員などが操作した場合に送信されるRAMクリア信号がオン(操作があったことを示す)であるか否か、すなわちRAMクリアが必要であるか否かを判定し、RAMクリア信号がオンの場合(RAMクリアが必要な場合)には、基本回路302を初期状態にすべくステップS15113に進む。一方、RAMクリア信号がオフの場合(RAMクリアが必要でない場合)には、RAM308に設けた電源ステータス記憶領域に記憶した電源ステータスの情報を読み出し、この電源ステータスの情報がサスペンドを示す情報であるか否かを判定する。そして、電源ステータスの情報がサスペンドを示す情報でない場合には、基本回路302を初期状態にすべくステップS15113に進み、電源ステータスの情報がサスペンドを示す情報である場合には、RAM308の所定の領域(例えば全ての領域)に記憶している1バイトデータを初期値が0である1バイト構成のレジスタに全て加算することによりチェックサムを算出し、算出したチェックサムの結果が特定の値(例えば0)であるか否か(チェックサムの結果が正常であるか否か)を判定する。そして、チェックサムの結果が特定の値(例えば0)の場合(チェックサムの結果が正常である場合)には、電断前の状態に復帰すべくステップS15109に進んでから、その後の処理を遅延させるべくステップS15111に進む。チェックサムの結果が特定の値(例えば0)以外である場合(チェックサムの結果が異常である場合)には、パチンコ機100を初期状態にすべくステップS15113に進む。同様に電源ステータスの情報が「サスペンド」以外の情報を示している場合にもステップS15113に進む。   Specifically, first, a RAM clear signal transmitted when a store clerk or the like of an amusement store operates the RWM clear switch 180 provided on the power supply board is turned on (indicates that there has been an operation). That is, it is determined whether or not the RAM clear is necessary. If the RAM clear signal is on (when the RAM clear is necessary), the process proceeds to step S15113 to set the basic circuit 302 to the initial state. On the other hand, when the RAM clear signal is OFF (when the RAM clear is not necessary), the power status information stored in the power status storage area provided in the RAM 308 is read, and the power status information is information indicating suspend. It is determined whether or not. If the power status information is not information indicating suspend, the process proceeds to step S15113 to set the basic circuit 302 to an initial state. If the power status information is information indicating suspend, a predetermined area of the RAM 308 is set. A checksum is calculated by adding all the 1-byte data stored in (for example, all areas) to a 1-byte register whose initial value is 0, and the calculated checksum results in a specific value (for example, 0) (whether or not the checksum result is normal). If the result of the checksum is a specific value (for example, 0) (if the result of the checksum is normal), the process proceeds to step S15109 to return to the state before the power interruption, and the subsequent processing is performed. In order to delay, it progresses to step S15111. If the checksum result is other than a specific value (for example, 0) (if the checksum result is abnormal), the process advances to step S15113 to set the pachinko machine 100 to the initial state. Similarly, if the power status information indicates information other than “suspend”, the process advances to step S15113.

ステップS15109では、復帰処理(復電時処理)を行う。この復帰処理では、電断時にRAM308に設けられたスタックポインタ退避領域に記憶しておいたスタックポインタの値を読み出し、スタックポインタに再設定(本設定)する。また、電断時にRAM308に設けられたレジスタ退避領域に記憶しておいた各レジスタの値を読み出し、各レジスタに再設定した後、割込許可の設定を行う。以降、CPU304が、再設定後のスタックポインタやレジスタに基づいて制御プログラムを実行する結果、パチンコ機100は電源断時の状態に復帰する。すなわち、電断直前にタイマ割込処理(後述)に分岐する直前に行った(ステップS15117〜S15121のいずれか)命令の次の命令から処理を再開する。また、図75に示す主制御部300における基本回路302に搭載されているRAM308には、送信情報記憶領域が設けられている。このステップS15109では、その送信情報記憶領域に、復電コマンドをセットする。この復電コマンドは、電源断時の状態に復帰したことを表すコマンドであり、後述する、主制御部300のタイマ割込処理におけるステップS15233において、第1副制御部400へ送信される。   In step S15109, a recovery process (power recovery process) is performed. In this restoration processing, the value of the stack pointer stored in the stack pointer save area provided in the RAM 308 at the time of power interruption is read and reset (main setting) to the stack pointer. In addition, the value of each register stored in the register save area provided in the RAM 308 at the time of power interruption is read out and reset in each register, and then the interrupt permission is set. Thereafter, as a result of the CPU 304 executing the control program based on the reset stack pointer and registers, the pachinko machine 100 returns to the state when the power is turned off. That is, the processing is restarted from the instruction next to the instruction that was performed immediately before branching to the timer interrupt processing (described later) immediately before power interruption (any of steps S15117 to S15121). In addition, a transmission information storage area is provided in the RAM 308 mounted on the basic circuit 302 in the main control unit 300 shown in FIG. In step S15109, a power recovery command is set in the transmission information storage area. This power recovery command is a command indicating that the power has been restored to the state at the time of power-off, and is transmitted to the first sub-control unit 400 in step S15233 in the timer interrupt process of the main control unit 300 described later.

ステップS15111では、遅延処理を実行する(詳細は後述)。   In step S15111, a delay process is executed (details will be described later).

ステップS15113では、初期化処理を行う。この初期化処理では、割込禁止の設定、スタックポインタへのスタック初期値の設定(本設定)、RAM308の全ての記憶領域の初期化などを行う。さらにここで、主制御部300のRAM308に設けられた送信情報記憶領域に正常復帰コマンドをセットする。この正常復帰コマンドは、主制御部300の初期化処理(ステップS15113)が行われたことを表すコマンドであり、復電コマンドと同じく、主制御部300のタイマ割込処理におけるステップS15233において、第1副制御部400へ送信される。   In step S15113, initialization processing is performed. In this initialization process, interrupt prohibition setting, stack initial value setting to the stack pointer (this setting), initialization of all storage areas of the RAM 308, and the like are performed. Further, here, a normal return command is set in the transmission information storage area provided in the RAM 308 of the main control unit 300. This normal return command is a command indicating that the initialization process (step S15113) of the main control unit 300 has been performed, and in the same way as the power recovery command, in step S15233 in the timer interrupt process of the main control unit 300, 1 is transmitted to the sub-control unit 400.

ステップS15115では、遅延処理を実行する(詳細は後述)。   In step S15115, delay processing is executed (details will be described later).

ステップS15117では、割込禁止の設定を行った後、基本乱数初期値更新処理を行う。この基本乱数初期値更新処理では、普図当選乱数カウンタ、および特図乱数値カウンタの初期値をそれぞれ生成するための2つの初期値生成用乱数カウンタと、普図タイマ乱数値、および特図タイマ乱数値それぞれを生成するための2つの乱数カウンタを更新する。例えば、普図タイマ乱数値として取り得る数値範囲が0〜100とすると、RAM308に設けた普図タイマ乱数値を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が101であれば0を元の乱数カウンタ記憶領域に記憶する。他の初期値生成用乱数カウンタ、乱数カウンタもそれぞれ同様に更新する。なお、初期値生成用乱数カウンタは、後述するステップS15207でも更新する。なお、ステップS15117では、基本乱数初期値更新処理の他に後述する基本乱数更新処理を行ってもよいし、基本乱数更新処理のみを行ってもよい。   In step S15117, after setting for prohibition of interruption, basic random number initial value update processing is performed. In this basic random number initial value update process, two initial value generation random number counters for generating the initial values of the ordinary figure winning random number counter and the special figure random value counter, the ordinary figure timer random number value, and the special figure timer, respectively. Two random number counters for generating each random value are updated. For example, if the range of values that can be taken as a normal timer random number value is 0 to 100, a value is acquired from a random number counter storage area for generating a normal timer random value provided in the RAM 308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 101, 0 is stored in the original random number counter storage area. Other initial value generation random number counters and random number counters are similarly updated. Note that the initial value generation random number counter is also updated in step S15207, which will be described later. In step S15117, in addition to the basic random number initial value update process, a basic random number update process described later may be performed, or only the basic random number update process may be performed.

ステップS15119では、コマンド送信処理を行い、各種のコマンドが第1副制御部400に送信される。   In step S15119, command transmission processing is performed, and various commands are transmitted to the first sub-control unit 400.

ステップS15121では、割り込み許可の設定を行った後、その他判定乱数更新処理を行う。この判定乱数では、特図変動時間決定用乱数、普図変動時間決定用乱数を生成するための乱数カウンタが更新される。   In step S15121, after setting interrupt permission, other determination random number update processing is performed. In this determination random number, the random number counter for generating the special figure variation time determination random number and the common figure variation time determination random number is updated.

主制御部300は、所定の周期ごとに開始するタイマ割込処理を行っている間を除いて、ステップS15117〜S15121の処理を繰り返し実行する。
<初期設定2>
The main control unit 300 repeatedly executes the processes of steps S15117 to S15121 except during a timer interrupt process that starts every predetermined period.
<Initial setting 2>

次に、図343(c)を用いて、主制御部300のCPU304が実行する初期設定2について説明する。なお、同図は主制御部メイン処理の電源投入時処理における初期設定2の流れを示すフローチャートである。   Next, the initial setting 2 executed by the CPU 304 of the main control unit 300 will be described using FIG. 343 (c). This figure is a flowchart showing a flow of initial setting 2 in the power-on process of the main process of the main control unit.

ステップS15131では、WDTを起動させる処理を行う。ここでは、WDTの起動許可及び初期値の設定等を行う。なお、本実施形態では、WDTに、初期値として32.8msに相当する数値を設定する。   In step S15131, processing for starting WDT is performed. Here, WDT activation permission, initial value setting, and the like are performed. In the present embodiment, a numerical value corresponding to 32.8 ms is set as the initial value in WDT.

ステップS15133では、乱数生成回路初期設定処理を行い、最大値設定で起動される乱数生成チャンネルの乱数生成回路が起動される。最大値設定レジスタに生成する乱数値の最大値を設定した後、乱数生成回路が起動される。起動された乱数生成回路は、所定の初期値から最大値までの範囲内で乱数値の更新を開始する。   In step S15133, random number generation circuit initial setting processing is performed, and the random number generation circuit of the random number generation channel activated by the maximum value setting is activated. After setting the maximum random number value to be generated in the maximum value setting register, the random number generation circuit is activated. The activated random number generation circuit starts updating the random number value within a range from a predetermined initial value to a maximum value.

ステップS15135では、後述する主制御部タイマ割込処理を定期毎に実行するための周期を決める数値をタイマ回路に設定する処理を行う。   In step S15135, a process for setting a numerical value for determining a cycle for executing a main control unit timer interrupt process, which will be described later, to the timer circuit is performed.

ステップS15137では、その他の設定処理を行う。その他の設定処理後に、初期設定2を終了する。   In step S15137, other setting processing is performed. After other setting processing, the initial setting 2 is terminated.

初期設定2で行われるステップS15131〜S15137の各処理の順番は任意に設定することができる。なお、初期設定2で行う処理の一部または全部を、ステップS15101で行うようにしてもよい。
<遅延処理>
The order of the processes in steps S15131 to S15137 performed in the initial setting 2 can be arbitrarily set. Note that part or all of the processing performed in the initial setting 2 may be performed in step S15101.
<Delay processing>

次に、図344を用いて、主制御部300のCPU304が実行する遅延処理について説明する。なお、同図は主制御部メイン処理における遅延処理の流れを示すフローチャートである。   Next, delay processing executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of delay processing in the main processing of the main control unit.

ステップS15141では、I/Oの所定の出力ポートからクリア信号を送信する処理を実行する。   In step S15141, processing for transmitting a clear signal from a predetermined output port of I / O is executed.

ステップS15143では、第1副制御部400の起動を待つ周期を決める副制御部起動待ちカウンタを初期設定(例えば90を設定)する。   In step S15143, a sub-control unit activation wait counter that determines a cycle for waiting for activation of the first sub-control unit 400 is initialized (for example, 90 is set).

ステップS15145では、割込み機能限定カウンタを初期設定(例えば250を設定)する。割込み機能限定カウンタは、4ms毎のタイマ割込み処理で減算される。   In step S15145, the interrupt function limited counter is initialized (for example, 250 is set). The interrupt function limited counter is subtracted by timer interrupt processing every 4 ms.

ステップS15147では、基本乱数初期値更新処理を実行する(詳細は後述)。なお、ステップS15147では、基本乱数初期値更新処理の他に後述する基本乱数更新処理を行ってもよいし、基本乱数更新処理のみを行ってもよい。   In step S15147, basic random number initial value update processing is executed (details will be described later). In step S15147, in addition to the basic random number initial value updating process, a basic random number updating process described later may be performed, or only the basic random number updating process may be performed.

ステップS15149では、コマンド送信処理を行い、各種のコマンドが第1副制御部400に送信される。   In step S15149, command transmission processing is performed, and various commands are transmitted to the first sub-control unit 400.

ステップS15151では、割込み機能限定カウンタが0であるか否かの判定を行い、割込み機能限定カウンタが0以外の場合、ステップS15147の処理に戻る。一方、割込み機能限定カウンタが0の場合、すなわち、ステップS15145において割込み機能限定カウンタに250が設定され、4ms毎のタイマ割込み処理で減算されて1000ms=1秒経過した場合、ステップS15153に進む。   In step S15151, it is determined whether or not the interrupt function limit counter is 0. If the interrupt function limit counter is other than 0, the process returns to step S15147. On the other hand, if the interrupt function limit counter is 0, that is, if 250 is set in the interrupt function limit counter in step S15145 and is subtracted by the timer interrupt process every 4 ms and 1000 ms = 1 second has passed, the process proceeds to step S15153.

ステップS15153では、副制御部起動待ちカウンタを1減算する。   In step S15153, the sub-control unit activation waiting counter is decremented by 1.

ステップS15155では、副制御部起動待ちカウンタが0であるか否かの判定を行い、副制御部起動待ちカウンタが0以外の場合、ステップS15145に戻る。一方、副制御部起動待ちカウンタが0の場合、すなわち、ステップS15143において副制御部起動待ちカウンタに90が設定され、90秒経過した場合、ステップS15157に進む。   In step S15155, it is determined whether or not the sub control unit activation wait counter is 0. If the sub control unit activation wait counter is other than 0, the process returns to step S15145. On the other hand, if the sub-control unit activation wait counter is 0, that is, 90 is set in the sub-control unit activation wait counter in step S15143 and 90 seconds have elapsed, the process proceeds to step S15157.

ステップS15157では、その他の処理を実行する。
<主制御部タイマ割込処理>
In step S15157, other processing is executed.
<Main control unit timer interrupt processing>

次に、図345を用いて、主制御部300のCPU304が実行する主制御部タイマ割込処理について説明する。なお、同図は主制御部タイマ割込処理の流れを示すフローチャートである。   Next, the main control unit timer interrupt process executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of the main control unit timer interrupt process.

主制御部300は、所定の周期(本実施形態では約2msに1回)でタイマ割込信号を発生するカウンタタイマ312を備えており、このタイマ割込信号を契機として主制御部タイマ割込処理を所定の周期で開始する。   The main control unit 300 includes a counter timer 312 that generates a timer interrupt signal at a predetermined cycle (in this embodiment, about once every 2 ms), and the main control unit timer interrupt is triggered by this timer interrupt signal. The process is started at a predetermined cycle.

ステップS15201では、タイマ割込開始処理を行う。このタイマ割込開始処理では、CPU304の各レジスタの値をスタック領域に一時的に退避する処理などを行う。   In step S15201, a timer interrupt start process is performed. In this timer interrupt start process, a process of temporarily saving each register value of the CPU 304 to the stack area is performed.

ステップS15203では、WDT314のカウント値が初期設定値(本実施形態では32.8ms)を超えてWDT割込が発生しないように(処理の異常を検出しないように)、WDTを定期的に(本実施形態では、主制御部タイマ割込の周期である約2msに1回)リスタートを行う。   In step S15203, the WDT 314 is periodically updated (so that the WDT interrupt does not occur (so as not to detect a processing abnormality) because the count value of the WDT 314 exceeds the initial setting value (32.8 ms in this embodiment). In the embodiment, the restart is performed once every about 2 ms, which is the period of the main control unit timer interrupt.

ステップS15205では、入力ポート状態更新処理を行う。この入力ポート状態更新処理では、I/O310の入力ポートを介して、上述の前面枠扉開放センサや内枠開放センサや下皿満タンセンサ、各種の球検出センサを含む各種センサ320の検出信号を入力して検出信号の有無を監視し、RAM308に各種センサ320ごとに区画して設けた信号状態記憶領域に記憶する。球検出センサの検出信号を例にして説明すれば、前々回のタイマ割込処理(約4ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた前回検出信号記憶領域から読み出し、この情報をRAM308に各々の球検出センサごとに区画して設けた前々回検出信号記憶領域に記憶し、前回のタイマ割込処理(約2ms前)で検出した各々の球検出センサの検出信号の有無の情報を、RAM308に各々の球検出センサごとに区画して設けた今回検出信号記憶領域から読み出し、この情報を上述の前回検出信号記憶領域に記憶する。また、今回検出した各々の球検出センサの検出信号を、上述の今回検出信号記憶領域に記憶する。   In step S15205, input port state update processing is performed. In this input port state update process, the detection signals of various sensors 320 including the above-mentioned front frame door open sensor, inner frame open sensor, lower pan full sensor, and various ball detection sensors are input via the input port of the I / O 310. The input is monitored for the presence or absence of a detection signal, and stored in a signal state storage area provided for each of the various sensors 320 in the RAM 308. If the detection signal of the sphere detection sensor is described as an example, information on the presence / absence of the detection signal of each sphere detection sensor detected in the timer interruption process (about 4 ms before) is stored in the RAM 308 for each sphere detection sensor. This information is read out from the previous detection signal storage area partitioned and stored in the RAM 308 in the previous detection signal storage area partitioned for each sphere detection sensor, and the previous timer interrupt processing (about 2 ms before) ) Is read from the current detection signal storage area provided for each sphere detection sensor in the RAM 308, and this information is read out from the previous detection signal storage area described above. To remember. Further, the detection signal of each sphere detection sensor detected this time is stored in the above-described current detection signal storage area.

また、ステップS15205では、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域の各記憶領域に記憶した各々の球検出センサの検出信号の有無の情報を比較し、各々の球検出センサにおける過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致するか否かを判定する。一個の遊技球が一つの球検出センサを通過する間に、約2msという非常に短い間隔で起動を繰り返すこの主制御部タイマ割込処理は何回か起動する。このため、主制御部タイマ割込処理が起動する度に、上述のステップS15205では、同じ遊技球が同じ球検出センサを通過したことを表す検出信号を確認することになる。この結果、上述の前々回検出信号記憶領域、前回検出信号記憶領域、および今回検出信号記領域それぞれに、同じ遊技球が同じ球検出センサを通過したことを表す検出信号が記憶される。すなわち、遊技球が球検出センサを通過し始めたときには、前々回検出信号無し、前回検出信号有り、今回検出信号有りになる。本実施形態では、球検出センサの誤検出やノイズを考慮して、検出信号無しの後に検出信号が連続して2回記憶されている場合には、入賞があったと判定する。図75に示す主制御部300のROM306には、入賞判定パターン情報(本実施形態では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)が記憶されている。このステップS15205では、各々の球検出センサにおいて過去3回分の検出信号の有無の情報が、予め定めた入賞判定パターン情報(本実施形態では、前々回検出信号無し、前回検出信号有り、今回検出信号有りであることを示す情報)と一致した場合に、一般入賞口226、可変入賞口234、第1特図始動口230、および第2特図始動口232への入球、または普図始動口228の通過があったと判定する。すなわち、これらの入賞口226、234やこれらの始動口230、232、228への入賞があったと判定する。例えば、一般入賞口226への入球を検出する一般入賞口センサにおいて過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致した場合には、一般入賞口226へ入賞があったと判定し、以降の一般入賞口226への入賞に伴う処理を行うが、過去3回分の検出信号の有無の情報が上述の入賞判定パターン情報と一致しなかった場合には、以降の一般入賞口226への入賞に伴う処理を行わずに後続の処理に分岐する。なお、主制御部300のROM306には、入賞判定クリアパターン情報(本実施形態では、前々回検出信号有り、前回検出信号無し、今回検出信号無しであることを示す情報)が記憶されている。入賞が一度あったと判定した後は、各々の球検出センサにおいて過去3回分の検出信号の有無の情報が、その入賞判定クリアパターン情報に一致するまで入賞があったとは判定せず、入賞判定クリアパターン情報に一致すれば、次からは上記入賞判定パターン情報に一致するか否かの判定を行う。   In step S15205, the information on the presence / absence of the detection signal of each sphere detection sensor stored in each storage area of the detection signal storage area, the previous detection signal storage area, and the current detection signal storage area is compared. It is determined whether or not the information on the presence or absence of detection signals for the past three times in the ball detection sensor matches the winning determination pattern information. This main control unit timer interrupt process that is repeatedly started at a very short interval of about 2 ms while one game ball passes one ball detection sensor is started several times. For this reason, every time the main control unit timer interrupt process is activated, in step S15205 described above, a detection signal indicating that the same game ball has passed the same ball detection sensor is confirmed. As a result, a detection signal indicating that the same game ball has passed the same ball detection sensor is stored in each of the detection signal storage area, the previous detection signal storage area, and the current detection signal storage area. That is, when the game ball starts to pass through the ball detection sensor, there is no detection signal before, a previous detection signal, and a current detection signal. In the present embodiment, in consideration of erroneous detection of the sphere detection sensor and noise, it is determined that there is a prize when the detection signal is stored twice continuously after no detection signal. In the ROM 306 of the main control unit 300 shown in FIG. 75, winning determination pattern information (in this embodiment, information indicating that there is no previous detection signal, that there is a previous detection signal, and that there is a current detection signal) is stored. In this step S15205, information on the presence or absence of detection signals for the past three times in each sphere detection sensor is predetermined winning determination pattern information (in this embodiment, no previous detection signal, previous detection signal, current detection signal present). In the case of the general winning port 226, the variable winning port 234, the first special figure starting port 230, and the second special figure starting port 232, or the ordinary drawing starting port 228. Is determined to have passed. In other words, it is determined that a prize has been awarded to the winning ports 226 and 234 and the starting ports 230, 232, and 228. For example, when the information on the presence / absence of the detection signals for the past three matches with the above-described winning determination pattern information in the general winning opening sensor for detecting the winning at the general winning opening 226, there is a winning at the general winning opening 226. If the information on the presence / absence of detection signals for the past three times does not match the above-described winning determination pattern information, the subsequent general winnings are performed. The process branches to the subsequent process without performing the process associated with winning the prize to the mouth 226. Note that the ROM 306 of the main control unit 300 stores winning determination clear pattern information (in this embodiment, information indicating that there is a detection signal before the previous time, no previous detection signal, and no current detection signal). After it is determined that there has been a single win, it is not determined that there has been a win until the information on the presence or absence of detection signals for the past three times matches the winning determination clear pattern information in each ball detection sensor, and the winning determination is cleared. If it matches the pattern information, it is next determined whether or not it matches the winning determination pattern information.

ステップS15207およびステップS15209では、基本乱数初期値更新処理および基本乱数更新処理を行う。これらの基本乱数初期値更新処理および基本乱数更新処理では、上記ステップS15117で行った初期値生成用乱数カウンタの値の更新を行い、次に主制御部300で使用する、普図当選乱数値、特図1乱数値、および特図2乱数値をそれぞれ生成するための2つの乱数カウンタを更新する。例えば、普図当選乱数値として取り得る数値範囲が0〜100とすると、RAM308に設けた普図当選乱数値を生成するための乱数カウンタ記憶領域から値を取得し、取得した値に1を加算してから元の乱数カウンタ記憶領域に記憶する。このとき、取得した値に1を加算した結果が101であれば0を元の乱数カウンタ記憶領域に記憶する。また、取得した値に1を加算した結果、乱数カウンタが一周していると判定した場合にはそれぞれの乱数カウンタに対応する初期値生成用乱数カウンタの値を取得し、乱数カウンタの記憶領域にセットする。例えば、0〜100の数値範囲で変動する普図当選乱数値生成用の乱数カウンタから値を取得し、取得した値に1を加算した結果が、RAM308に設けた所定の初期値記憶領域に記憶している前回設定した初期値と等しい値(例えば7)である場合に、普図当選乱数値生成用の乱数カウンタに対応する初期値生成用乱数カウンタから値を初期値として取得し、普図当選乱数値生成用の乱数カウンタにセットすると共に、普図当選乱数値生成用の乱数カウンタが次に1周したことを判定するために、今回設定した初期値を上述の初期値記憶領域に記憶しておく。また、普図当選乱数値生成用の乱数カウンタが次に1周したことを判定するための上述の初期値記憶領域とは別に、特図乱数生成用の乱数カウンタが1周したことを判定するための初期値記憶領域をRAM308に設けている。なお、本実施形態では特図1の乱数値を取得するためのカウンタと特図2の乱数値を取得するためのカウンタとを別に設けたが、同一のカウンタを用いてもよい。   In steps S15207 and S15209, a basic random number initial value update process and a basic random number update process are performed. In these basic random number initial value update processing and basic random number update processing, the value of the initial value generation random number counter performed in the above step S15117 is updated, and then the normal winning random number value used in the main control unit 300, Two random number counters for generating the special figure 1 random value and the special figure 2 random value are updated. For example, if the range of values that can be taken as a random number value for a normal winning number is 0 to 100, a value is acquired from a random number counter storage area for generating a normal winning random number value provided in the RAM 308, and 1 is added to the acquired value. Then, it is stored in the original random number counter storage area. At this time, if the result of adding 1 to the acquired value is 101, 0 is stored in the original random number counter storage area. If it is determined that the random number counter has made one round as a result of adding 1 to the acquired value, the value of the initial value generating random number counter corresponding to each random number counter is acquired and stored in the storage area of the random number counter. set. For example, a value is acquired from a random number counter for generating a regular winning random number that fluctuates in a numerical range of 0 to 100, and a result obtained by adding 1 to the acquired value is stored in a predetermined initial value storage area provided in the RAM 308. If the value is equal to the previously set initial value (for example, 7), the value is acquired as an initial value from the initial value generation random number counter corresponding to the random number counter for generating the random number for winning the normal number, The initial value set this time is stored in the above-described initial value storage area in order to determine that the random number counter for generating the winning random number value has made one round next time, in addition to setting it in the random number counter for generating the winning random value Keep it. Further, apart from the above-described initial value storage area for determining that the random number counter for generating the random number for winning the normal signal has made one round next, it is determined that the random number counter for generating the special figure random number has made one round. An initial value storage area is provided in the RAM 308. In the present embodiment, the counter for acquiring the random number value of FIG. 1 and the counter for acquiring the random value of FIG. 2 are separately provided, but the same counter may be used.

ステップS15211では、演出乱数更新処理を行う。この演出乱数更新処理では、主制御部300で使用する演出用乱数値を生成するための乱数カウンタを更新する。   In step S15211, effect random number update processing is performed. In this effect random number update process, a random number counter for generating an effect random number used by the main control unit 300 is updated.

ステップS15212では、割込み機能限定カウンタが0であるか否かの判定を行い、割込み機能限定カウンタが0以外の場合、ステップS15213に進む。一方、割込み機能限定カウンタが0の場合、ステップS15214に進む。   In step S15212, it is determined whether or not the interrupt function limitation counter is 0. If the interrupt function limitation counter is other than 0, the process proceeds to step S15213. On the other hand, if the interrupt function limit counter is 0, the process advances to step S15214.

ステップS15213では、割込み機能限定カウンタを1減算し、その後、ステップS15239に進む。   In step S15213, the interrupt function limitation counter is decremented by 1, and then the process proceeds to step S15239.

ステップS15214では、特定異常検出フラグ(詳しくは後述する。)がONであるか否かの判定を行い、特定異常検出フラグがONの場合、ステップS15239に進む。一方、特定異常検出フラグがOFFの場合、ステップS15215に進む。   In step S15214, it is determined whether or not a specific abnormality detection flag (described later in detail) is ON. If the specific abnormality detection flag is ON, the process proceeds to step S15239. On the other hand, if the specific abnormality detection flag is OFF, the process proceeds to step S15215.

ステップS15215では、タイマ更新処理を行う。このタイマ更新処理では、普通図柄表示装置210に図柄を変動・停止表示する時間を計時するための普図表示図柄更新タイマ、第1特別図柄表示装置212に図柄を変動・停止表示する時間を計時するための特図1表示図柄更新タイマ、第2特図表示装置214に図柄を変動・停止表示する時間を計時するための特図2表示図柄更新タイマ、所定の入賞演出時間、所定の開放時間、所定の閉鎖時間、所定の終了演出期間などを計時するためのタイマなどを含む各種タイマを更新する。   In step S15215, timer update processing is performed. In this timer update process, the normal symbol display symbol update timer for timing the time for the symbol to be changed / stopped on the normal symbol display device 210, and the time for the symbol to be changed / stopped to be displayed on the first special symbol display device 212 are timed. Special symbol 1 display symbol update timer for performing, special symbol 2 display symbol update timer for measuring the time for the symbol to be changed and stopped on the second special symbol display device 214, a predetermined winning effect time, a predetermined opening time Various timers including a timer for measuring a predetermined closing time, a predetermined end effect period, and the like are updated.

ステップS15216では、入賞口カウンタ更新処理を行う。この入賞口カウンタ更新処理では、入賞口226、234や始動口230、232、228に入賞があった場合に、RAM308に各入賞口ごと、あるいは各始動口ごとに設けた賞球数記憶領域の値を読み出し、1を加算して、元の賞球数記憶領域に設定する。   In step S15216, winning prize counter updating processing is performed. In this winning opening counter updating process, when winning holes 226, 234 and starting holes 230, 232, 228 are won, the RAM 308 stores the winning ball number storage area provided for each winning hole or for each starting hole. The value is read out, 1 is added, and the original prize ball number storage area is set.

また、ステップS15217では、入賞受付処理を行う。この入賞受付処理では、第1特図始動口230、第2特図始動口232、普図始動口228および可変入賞口234への入賞があったか否かを判定する。ここでは、ステップS15205における入賞判定パターン情報と一致するか否かの判定結果を用いて判定する。第1特図始動口230へ入賞があった場合且つRAM308に設けた対応する保留数記憶領域が満タンでない場合、カウンタ回路318の当選用カウンタ値記憶用レジスタから値を特図1当選乱数値として取得するとともに特図1乱数値生成用の乱数カウンタから値を特図1乱数値として取得して対応する乱数値記憶領域に格納する。第2特図始動口232へ入賞があった場合且つRAM308に設けた対応する保留数記憶領域が満タンでない場合、カウンタ回路318の当選用カウンタ値記憶用レジスタから値を特図2当選乱数値として取得するとともに特図2乱数値生成用の乱数カウンタから値を特図2乱数値として取得して対応する乱数値記憶領域に格納する。普図始動口228へ入賞があった場合且つRAM308に設けた対応する保留数記憶領域が満タンでない場合、普図当選乱数値生成用の乱数カウンタから値を普図当選乱数値として取得して対応する乱数値記憶領域に格納する。可変入賞口234へ入賞があった場合には、可変入賞口用の入賞記憶領域に、可変入賞口234に球が入球したことを示す情報を格納する。   In step S15217, a winning acceptance process is performed. In this winning acceptance process, it is determined whether or not there has been a winning at the first special figure starting port 230, the second special figure starting port 232, the ordinary drawing starting port 228, and the variable winning port 234. Here, the determination is made using the determination result of whether or not it matches the winning determination pattern information in step S15205. When a winning is made at the first special figure starting port 230 and the corresponding reserved number storage area provided in the RAM 308 is not full, the value is stored in the special counter value storage register of the counter circuit 318. And a value from the random number counter for generating the special figure 1 random value as a special figure 1 random value and storing it in the corresponding random value storage area. When a winning is made to the second special figure starting port 232 and the corresponding reserved number storage area provided in the RAM 308 is not full, the value is sent from the winning counter value storage register of the counter circuit 318 to the special figure 2 winning random number value. And a value from the random number counter for generating the special figure 2 random value as a special figure 2 random value and storing it in the corresponding random value storage area. If there is a win at the general figure starting port 228 and the corresponding reserved number storage area provided in the RAM 308 is not full, the value is obtained as a normal figure winning random number value from the random number counter for generating the normal figure winning random number value. Store in the corresponding random value storage area. When there is a winning at the variable winning opening 234, information indicating that a ball has entered the variable winning opening 234 is stored in the winning storage area for the variable winning opening.

ステップS15219では、払出要求数送信処理を行う。なお、払出制御部600に出力する出力予定情報および払出要求情報は、例えば1バイトで構成しており、ビット7にストローブ情報(オンの場合、データをセットしていることを示す)、ビット6に電源投入情報(オンの場合、電源投入後一回目のコマンド送信であることを示す)、ビット4〜5に暗号化のための今回加工種別(0〜3)、およびビット0〜3に暗号化加工後の払出要求数を示すようにしている。   In step S15219, a payout request number transmission process is performed. Note that the output schedule information and the payout request information output to the payout control unit 600 are composed of, for example, 1 byte, strobe information (indicating that data is set when ON), bit 6 Power-on information (if turned on, indicates that this is the first command transmission after power-on), bits 4-5 indicate the current processing type for encryption (0-3), and bits 0-3 indicate encryption The number of payout requests after processing is shown.

ステップS15221では、普図状態更新処理を行う。この普図状態更新処理は、普図の状態に対応する複数の処理のうちの1つの処理を行う。例えば、普図変動表示の途中(上述する普図表示図柄更新タイマの値が1以上)における普図状態更新処理では、普通図柄表示装置210を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。この制御を行うことで、普通図柄表示装置210は普図の変動表示(普図変動遊技)を行う。   In step S15221, a normal state update process is performed. This normal state update process performs one of a plurality of processes corresponding to the normal state. For example, in the normal state update process in the middle of the normal symbol display (the above-described general symbol display symbol update timer value is 1 or more), the 7-segment LED constituting the normal symbol display device 210 is repeatedly turned on and off. Turns off drive control. By performing this control, the normal symbol display device 210 performs a usual fluctuation display (ordinary figure fluctuation game).

また、普図変動表示時間が経過したタイミング(普図表示図柄更新タイマの値が1から0になったタイミング)における普図状態更新処理では、当りフラグがオンの場合には、当り図柄の表示態様となるように普通図柄表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行い、当りフラグがオフの場合には、外れ図柄の表示態様となるように普通図柄表示装置210を構成する7セグメントLEDの点灯・消灯駆動制御を行う。また、主制御部300のRAM308には、普図状態更新処理に限らず各種の処理において各種の設定を行う設定領域が用意されている。ここでは、上記点灯・消灯駆動制御を行うとともに、その設定領域に普図停止表示中であることを示す設定を行う。この制御を行うことで、普通図柄表示装置210は、当り図柄(図76(c)に示す普図A)および外れ図柄(図76(c)に示す普図B)いずれか一方の図柄の確定表示を行う。さらにその後、所定の停止表示期間(例えば500m秒間)、その表示を維持するためにRAM308に設けた普図停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により、確定表示された図柄が所定期間停止表示され、普図変動遊技の結果が遊技者に報知される。   Also, in the normal state update process at the timing when the normal symbol change display time has elapsed (the timing at which the value of the general symbol display symbol update timer has changed from 1 to 0), if the hit flag is on, the hit symbol is displayed. The normal symbol display device 210 is controlled so that the 7-segment LED constituting the normal symbol display device 210 is turned on / off, and when the hit flag is off, the normal symbol display device 210 is configured to be in the off symbol display mode. 7 segment LED on / off drive control is performed. Further, the RAM 308 of the main control unit 300 is provided with a setting area for performing various settings in various processes, not limited to the normal state update process. Here, the above-described lighting / extinguishing drive control is performed, and the setting area is set to indicate that the normal stop display is being performed. By performing this control, the normal symbol display device 210 determines the symbol of either the winning symbol (general symbol A shown in FIG. 76 (c)) or the off symbol (general symbol B shown in FIG. 76 (c)). Display. Thereafter, information indicating the stop period is set in a storage area of a normal stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 msec). With this setting, the symbol that has been confirmed and displayed is stopped and displayed for a predetermined period, and the player is notified of the result of the normal game.

また、普図変動遊技の結果が当りであれば、後述するように、普図当りフラグがオンされる。この普図当りフラグがオンの場合には、所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)における普図状態更新処理では、RAM308の設定領域に普図作動中を設定するとともに、所定の開放期間(例えば2秒間)、第2特図始動口232の羽根部材232aの開閉駆動用のソレノイド(332)に、羽根部材232aを開放状態に保持する信号を出力するとともに、RAM308に設けた羽根開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。   Further, if the result of the usual figure variable game is a hit, the usual figure hit flag is turned on as will be described later. When the usual figure hit flag is on, in the usual figure state update process at the timing when the predetermined stop display period ends (when the usual figure stop time management timer value changes from 1 to 0), The normal operation is set in the setting area, and the blade member 232a is opened to a solenoid (332) for opening and closing the blade member 232a of the second special figure starting port 232 for a predetermined opening period (for example, 2 seconds). And a signal indicating the open period is set in the storage area of the blade open time management timer provided in the RAM 308.

また、所定の開放期間が終了したタイミング(羽根開放時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、所定の閉鎖期間(例えば500m秒間)、羽根部材の開閉駆動用のソレノイド332に、羽根部材を閉鎖状態に保持する信号を出力するとともに、RAM308に設けた羽根閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。   In the usual state update process that starts at the timing when the predetermined opening period ends (the timing when the value of the blade opening time management timer is changed from 1 to 0), the blade member has a predetermined closing period (for example, 500 milliseconds). A signal for holding the blade member in the closed state is output to the opening / closing drive solenoid 332, and information indicating the closing period is set in the storage area of the blade closing time management timer provided in the RAM 308.

また、所定の閉鎖期間が終了したタイミング(羽根閉鎖時間管理用タイマの値が1から0になったタイミング)で開始する普図状態更新処理では、RAM308の設定領域に普図非作動中を設定する。さらに、普図変動遊技の結果が外れであれば、後述するように、普図外れフラグがオンされる。この普図外れフラグがオンの場合には、上述した所定の停止表示期間が終了したタイミング(普図停止時間管理用タイマの値が1から0になったタイミング)における普図状態更新処理でも、RAM308の設定領域に普図非作動中を設定する。普図非作動中の場合における普図状態更新処理では、何もせずに次のステップS15223に移行するようにしている。   Further, in the normal state update process that starts at the timing when the predetermined closing period ends (when the value of the blade closing time management timer is changed from 1 to 0), the non-operating state is set in the setting area of the RAM 308. To do. Furthermore, if the result of the usual figure fluctuation game is out, the usual figure out flag is turned on as will be described later. When the off-normal flag is on, the normal state update process at the timing when the predetermined stop display period described above ends (the timing at which the normal stop time management timer value changes from 1 to 0) In the setting area of the RAM 308, normal operation inactive is set. In the normal state update process in the case where the normal is not operating, nothing is done and the process proceeds to the next step S15223.

ステップS15223では、普図関連抽選処理を行う。この普図関連抽選処理では、普図変動遊技および第2特図始動口232の開閉制御を行っておらず(普図の状態が非作動中)、且つ、保留している普図変動遊技の数が1以上である場合に、上述の乱数値記憶領域に記憶している普図当選乱数値に基づいた乱数抽選により普図変動遊技の結果を当選とするか、不当選とするかを決定する当り判定をおこない、当選とする場合にはRAM308に設けた当りフラグにオンを設定する。不当選の場合には、当りフラグにオフを設定する。また、当り判定の結果に関わらず、次に上述の普図タイマ乱数値生成用の乱数カウンタの値を普図タイマ乱数値として取得し、取得した普図タイマ乱数値に基づいて複数の変動時間のうちから普図表示装置210に普図を変動表示する時間を1つ選択し、この変動表示時間を、普図変動表示時間として、RAM308に設けた普図変動時間記憶領域に記憶する。なお、保留している普図変動遊技の数は、RAM308に設けた普図保留数記憶領域に記憶するようにしており、当り判定をするたびに、保留している普図変動遊技の数から1を減算した値を、この普図保留数記憶領域に記憶し直すようにしている。また当り判定に使用した乱数値を消去する。   In step S15223, a general drawing related lottery process is performed. In this general map-related lottery process, the open / close control of the general map variable game and the second special map start port 232 is not performed (the state of the general map is not in operation), and the pending general map variable game is not held. When the number is 1 or more, it is decided whether to win or not to win the result of the variable figure game by random lottery based on the random number value stored in the random number value storage area. When the winning judgment is made and the winning is made, the winning flag provided in the RAM 308 is set to ON. If unsuccessful, turn off the winning flag. Regardless of the result of the hit determination, next, the value of the random number counter for generating the normal figure timer random value is acquired as the normal figure timer random number value, and a plurality of fluctuation times are obtained based on the acquired general figure timer random number value. One time is selected for variably displaying the normal map on the general map display device 210, and this variable display time is stored as a normal map variable display time in a general map variable time storage area provided in the RAM 308. In addition, the number of pending general figure variable games is stored in the usual figure pending number storage area provided in the RAM 308, and from the number of pending custom figure variable games each time a hit determination is made. The value obtained by subtracting 1 is re-stored in the usual figure number-of-holds storage area. Also, the random number value used for the hit determination is deleted.

ステップS15224では、特図先読み処理を行う。この先読み処理では、まず、RAM308に設けられた特図1の保留記憶部内の特図1当選乱数を先読みするか、あるいは特図2の保留記憶部内の特図2当選乱数を先読みする。なお、ここでの先読みとは始動情報を当否判定(本抽選)の前に先に読むことを意味するが、以降の先読み処理では、先読みという言葉を、先(当否判定(本抽選)の結果)を読むという意味で使用することがある。このステップS15224では、後述する特図2関連抽選処理、特図1関連抽選処理(ステップS15229、ステップS15231)で用いる特図抽選テーブルの内容と同じ内容の事前判定用テーブルを用い、先読みした特図当選乱数に基づく当否判定の事前判定を行う。なお、特図2関連抽選処理、特図1関連抽選処理では、特図抽選テーブルを用いて特図変動遊技の当否判定を改めて行い、ここでの判定結果は、あくまで事前判定の結果になる。当否判定の事前判定では、「大当り」という結果か、あるいは「大当り」以外という結果が導出され、「大当り」という結果の場合には、RAM308に設けられた特図1の保留記憶部内の大当り用特図1乱数を先読みするか、あるいは特図2の保留記憶部内の大当り用特図2乱数を先読みする。続いて、特図2関連抽選処理、特図1関連抽選処理(ステップS15229、ステップS15231)の特図関連処理で用いる停止図柄抽選テーブルの内容と同じ内容の事前判定用テーブルを用い、先読みした大当り用特図乱数に基づく特図の停止図柄の事前判定を行う。   In step S15224, special figure prefetch processing is performed. In this prefetching process, first, the special figure 1 winning random number in the special memory 1 of FIG. 1 provided in the RAM 308 is prefetched, or the special figure 2 winning random number in the special memory 2 of FIG. 2 is prefetched. Note that the prefetching here means that the start information is read first before the success / failure determination (final lottery), but in the subsequent prefetching processing, the word “prefetching” is used as the result of the predecessor (prevention / correction (final lottery)). ) May be used to mean read. In this step S15224, the pre-determined special figure is used by using a preliminary determination table having the same contents as the special figure lottery table used in the special figure 2 related lottery process and the special figure 1 related lottery process (steps S15229 and S15231) described later. Pre-judgment based on the winning random number is performed. In the special figure 2 related lottery process and special figure 1 related lottery process, the special figure lottery table is used to determine whether the special figure variable game is successful or not, and the determination result here is the result of the preliminary determination only. In the pre-judgment determination, a result of “big hit” or a result other than “big hit” is derived, and in the case of a result of “big hit”, the big hit in the reserved storage unit of FIG. The special figure 1 random number is prefetched, or the big hit special figure 2 random number in the reserved storage unit of the special figure 2 is prefetched. Subsequently, using a pre-determination table having the same contents as the contents of the stop symbol lottery table used in the special figure related process of the special figure 2 related lottery process and the special figure 1 related lottery process (steps S15229 and S15231), Pre-determining the stop pattern of the special figure based on the special figure random number.

なお、特図2関連抽選処理、特図1関連抽選処理では、停止図柄抽選テーブルを用いて特図の停止図柄の抽選を改めて行い、ここでの判定結果は、あくまで事前判定の結果になる。こうして、特図の停止図柄を事前判定すると、先読み予告の実行可否抽選を行う。この先読み予告は、特図2関連抽選処理、特図1関連抽選処理(ステップS15229、ステップS15231)が実行される前、すなわち当否判定が行われる前に、特図2関連抽選処理、特図1関連抽選処理で行われる当否判定の結果が大当り(ここではより限定して15Rの大当り(15R特別大当りか15R大当り))になることを予告するための報知である。ここでの先読み予告には、停止図柄の事前判定結果が15Rの大当り図柄(特図Aまたは特図B)でなくても、15Rの大当りになるかのように偽りで予告する偽の先読み予告も含まれる。すなわち、先読み予告は、当否判定の結果が15R大当りになる可能性があることを表したり、遊技者に示唆する事前報知、あるいは当否判定の結果が15R大当りになることを遊技者に期待させる事前報知であるといえる。先読み予告の実行可否抽選を行うタイミングで、RAM308に設けられた演出乱数カウンタから演出乱数(例えば、取り得る範囲は0〜99)を取得し、取得した演出乱数に基づいて実行可否抽選を行う。なお、停止図柄の事前判定結果を第1副制御部400に送信し、この実行可否抽選は、第1副制御部400が行うようにしてもよい。   In the special figure 2 related lottery process and the special figure 1 related lottery process, the stop symbol lottery table is used to perform lottery of the special symbol stop symbol again, and the determination result here is only the result of prior determination. In this way, when the stop symbol of the special figure is determined in advance, a lottery for whether or not to perform the pre-reading notice is performed. This pre-reading notice is executed before the special figure 2 related lottery process and the special figure 1 related lottery process (steps S15229 and S15231) are executed, that is, before the determination of whether or not the special figure 2 is performed. This is a notification for notifying that the result of the success / failure determination performed in the related lottery process will be a big hit (here, more limited to 15R big hit (15R special big hit or 15R big hit)). The pre-reading notice here is a fake pre-reading notice that gives a false notice as if it was a big hit of 15R even if the pre-determined result of the stop symbol is not a big hit of 15R (Special Figure A or Special Figure B) Is also included. In other words, the pre-reading notice indicates that there is a possibility that the result of the success / failure determination will be a 15R jackpot, an advance notification that suggests to the player, or an advance notice that the player expects that the result of the success / failure determination will be a 15R jackpot. It can be said that it is information. An effect random number (for example, a possible range is 0 to 99) is acquired from an effect random number counter provided in the RAM 308 at the timing of performing the pre-reading notice execution availability lottery, and the execution availability lottery is performed based on the acquired effect random number. In addition, the prior determination result of the stop symbol may be transmitted to the first sub-control unit 400, and the first sub-control unit 400 may perform this execution availability lottery.

次いで、特図1および特図2それぞれについての特図状態更新処理を行うが、最初に、特図2についての特図状態更新処理(特図2状態更新処理)を行う(ステップS15225)。この特図2状態更新処理は、特図2の状態に応じて、次の8つの処理のうちの1つの処理を行う。例えば、特図2変動表示の途中(上述の特図2表示図柄更新タイマの値が1以上)における特図2状態更新処理では、第2特別図柄表示装置214を構成する7セグメントLEDの点灯と消灯を繰り返す点灯・消灯駆動制御を行う。この制御を行うことで、第2特別図柄表示装置214は特図2の変動表示(特図2変動遊技)を行う。   Next, the special figure state update process for each of the special figure 1 and the special figure 2 is performed. First, the special figure state update process (the special figure 2 state update process) for the special figure 2 is performed (step S15225). In the special figure 2 state update process, one of the following eight processes is performed in accordance with the state of the special figure 2. For example, in the special figure 2 state update process in the middle of the special figure 2 fluctuation display (the value of the above-mentioned special figure 2 display symbol update timer is 1 or more), the 7-segment LED constituting the second special symbol display device 214 is turned on. Performs lighting / extinguishing drive control that repeatedly turns off. By performing this control, the second special symbol display device 214 performs the variable display of the special figure 2 (special figure 2 variable game).

また、コマンド設定送信処理(ステップS15233)で回転開始設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶してから処理を終了する。   In addition, predetermined transmission information indicating that the rotation start setting transmission process is to be executed in the command setting transmission process (step S15233) is additionally stored in the transmission information storage area, and the process ends.

また、主制御部300のRAM308には、15R大当りフラグ、2R大当りフラグ、第1小当りフラグ、第2小当りフラグ、第1はずれフラグ、第2はずれフラグ、特図確率変動フラグ、および普図確率変動フラグそれぞれのフラグが用意されている。特図2変動表示時間が経過したタイミング(特図2表示図柄更新タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、15R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグもオンの場合には図76(a)に示す特図A、15R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグはオンの場合には特図B、2R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグもオンの場合には特図C、2R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグはオンの場合には特図D、2R大当りフラグはオン、特図確率変動フラグもオン、普図確率変動フラグはオンの場合には特図E、2R大当りフラグはオン、特図確率変動フラグはオフ、普図確率変動フラグもオフの場合には特図F、第1小当りフラグがオンの場合には特図G、第2小当りフラグがオンの場合には特図H、第1はずれフラグがオンの場合には特図I、第2はずれフラグがオンの場合には特図Iそれぞれの態様となるように、第2特別図柄表示装置214を構成する7セグメントLEDの点灯・消灯駆動制御を行い、RAM308の設定領域に特図2停止表示中であることを表す設定を行う。この制御を行うことで、第2特別図柄表示装置214は、15R特別大当り図柄(特図A)、15R大当り図柄(特図B)、突然確変図柄(特図C)、突然時短図柄(特図D)、隠れ確変図柄(特図E)、突然通常図柄(特図F)、第1小当り図柄(特図G)、第2小当り図柄(特図H)、第1はずれ図柄(特図I)、および第2はずれ図柄(特図J)のいずれか一つの図柄の確定表示を行う。さらにその後、所定の停止表示期間(例えば500m秒間)その表示を維持するためにRAM308に設けた特図2停止時間管理用タイマの記憶領域に停止期間を示す情報を設定する。この設定により、確定表示された特図2が所定期間停止表示され、特図2変動遊技の結果が遊技者に報知される。また、RAM308に設けられた時短回数記憶部に記憶された時短回数が1以上であれば、その時短回数から1を減算し、減算結果が1から0となった場合は、特図確率変動中(詳細は後述)でなければ、時短フラグをオフする。さらに、大当り遊技中(特別遊技状態中)にも、時短フラグをオフする。   Further, the RAM 308 of the main control unit 300 includes a 15R big hit flag, a 2R big hit flag, a first small hit flag, a second small hit flag, a first off flag, a second off flag, a special figure probability variation flag, and a normal figure. A flag for each probability variation flag is prepared. In the special figure 2 state update process starting at the timing when the special figure 2 fluctuation display time has elapsed (the timing when the special figure 2 display symbol update timer value has changed from 1 to 0), the 15R big hit flag is on, and the special figure probability fluctuation When the flag is also on and the normal figure probability fluctuation flag is on, the special figure A and 15R jackpot flag shown in FIG. 76 (a) are on, the special figure probability fluctuation flag is off, and the common figure probability fluctuation flag is on. When the special figure B, 2R big hit flag is on, the special figure probability fluctuation flag is on, and the general figure probability fluctuation flag is also on, the special figure C, 2R big hit flag is on, the special figure probability fluctuation flag is off, When the probability fluctuation flag is on, the special figure D, 2R jackpot flag is on, the special figure probability fluctuation flag is on, and when the common figure probability fluctuation flag is on, the special figure E, 2R jackpot flag is on, special chart Probability flag is off, normal When the probability variation flag is also off, special figure F, when the first small hit flag is on, special figure G, when the second small hit flag is on, special figure H, and the first off flag are on In such a case, the 7-segment LED constituting the second special symbol display device 214 is controlled to be turned on / off so that the special figure I and the second off flag are turned on, respectively, so that the special figure I is in the respective mode. A setting indicating that the special figure 2 stop display is in progress is made in the setting area of the RAM 308. By performing this control, the second special symbol display device 214 has a 15R special jackpot symbol (special symbol A), a 15R jackpot symbol (special symbol B), a sudden probability variation symbol (special symbol C), and a sudden time-short symbol symbol (special symbol). D), hidden probability variation (special E), suddenly normal (special F), first small hit (special G), second small hit (special H), first off symbol (special) Any one of the symbols I) and the second off-set symbol (special symbol J) is confirmed and displayed. After that, information indicating the stop period is set in the storage area of the special figure 2 stop time management timer provided in the RAM 308 in order to maintain the display for a predetermined stop display period (for example, 500 milliseconds). With this setting, the specially displayed special figure 2 is stopped and displayed for a predetermined period, and the result of the special figure 2 variable game is notified to the player. In addition, if the time reduction number stored in the time reduction number storage unit provided in the RAM 308 is 1 or more, 1 is subtracted from the time reduction number, and if the subtraction result becomes 1 to 0, the special figure probability is changing. If not (details will be described later), the time reduction flag is turned off. Further, the hourly flag is also turned off during the big hit game (in the special game state).

また、コマンド設定送信処理(ステップS15233)で回転停止設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶するとともに、変動表示を停止する図柄が特図2であることを示す特図2識別情報を、後述するコマンドデータに含める情報としてRAM308に追加記憶してから処理を終了する。   Further, the special transmission information indicating that the rotation stop setting transmission process is executed in the command setting transmission process (step S15233) is additionally stored in the above-described transmission information storage area, and the design for stopping the variable display is shown in FIG. The special figure 2 identification information indicating the presence is additionally stored in the RAM 308 as information to be included in command data, which will be described later, and the processing is terminated.

また、特図2変動遊技の結果が大当りであれば、後述するように、大当りフラグがオンされる。この大当りフラグがオンの場合には、所定の停止表示期間が終了したタイミング(特図2停止時間管理用タイマの値が1から0になったタイミング)における特図2状態更新処理では、RAM308の設定領域に特図2作動中を設定するとともに、所定の入賞演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを開始することを遊技者に報知する画像を表示している期間待機するためにRAM308に設けた特図2待機時間管理用タイマの記憶領域に入賞演出期間を示す情報を設定する。また、コマンド設定送信処理(ステップS15233)で入賞演出設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   If the result of the special figure 2 variable game is a big hit, the big hit flag is turned on as will be described later. When the jackpot flag is on, in the special figure 2 state update process at the timing when the predetermined stop display period ends (the timing when the special figure 2 stop time management timer value changes from 1 to 0), the RAM 308 In the setting area, the special figure 2 is in operation and waits for a predetermined winning effect period (for example, 3 seconds), that is, a period during which an image for notifying the player that the big win by the decorative symbol display device 208 is started is displayed. Therefore, information indicating the winning effect period is set in the storage area of the special figure 2 standby time management timer provided in the RAM 308. Further, predetermined transmission information indicating that the winning effect setting transmission process is executed in the command setting transmission process (step S15233) is additionally stored in the transmission information storage area.

また、所定の入賞演出期間が終了したタイミング(特図2待機時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、所定の開放期間(例えば29秒間、または可変入賞口234に所定球数(例えば10球)の遊技球の入賞を検出するまで)可変入賞口234の扉部材234aの開閉駆動用のソレノイド(332)に、扉部材234aを開放状態に保持する信号を出力するとともに、RAM308に設けた扉開放時間管理用タイマの記憶領域に開放期間を示す情報を設定する。また、コマンド設定送信処理(ステップS15233)で大入賞口開放設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   Further, in the special figure 2 state update process that starts at the timing when the predetermined winning effect period ends (the timing when the value of the special figure 2 standby time management timer changes from 1 to 0), a predetermined release period (for example, 29 seconds) Alternatively, the door member 234a is opened to the solenoid (332) for opening and closing the door member 234a of the variable prize opening 234 until a winning of a predetermined number of balls (for example, 10 balls) is detected at the variable prize opening 234. In addition to outputting a signal to be held at the same time, information indicating the opening period is set in the storage area of the door opening time management timer provided in the RAM 308. In addition, predetermined transmission information indicating that the special winning opening release setting transmission process is executed in the command setting transmission process (step S15233) is additionally stored in the transmission information storage area.

また、所定の開放期間が終了したタイミング(扉開放時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、所定の閉鎖期間(例えば1.5秒間)可変入賞口234の扉部材234aの開閉駆動用のソレノイド(332)に、扉部材234aを閉鎖状態に保持する信号を出力するとともに、RAM308に設けた扉閉鎖時間管理用タイマの記憶領域に閉鎖期間を示す情報を設定する。また、コマンド設定送信処理(ステップS15233)で大入賞口閉鎖設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   In the special figure 2 state update process that starts at the timing when the predetermined opening period ends (the timing when the door opening time management timer value changes from 1 to 0), the predetermined closing period (for example, 1.5 seconds) A signal for holding the door member 234a in a closed state is output to a solenoid (332) for opening and closing the door member 234a of the variable prize opening 234, and a closing period is stored in a storage area of a door closing time management timer provided in the RAM 308. Set the information indicating. In addition, predetermined transmission information indicating that the special winning opening closing setting transmission process is executed in the command setting transmission process (step S15233) is additionally stored in the transmission information storage area.

また、この扉部材の開放・閉鎖制御を所定回数(本実施例では15ラウンドか2ラウンド)繰り返し、終了したタイミングで開始する特図2状態更新処理では、所定の終了演出期間(例えば3秒間)すなわち装飾図柄表示装置208による大当りを終了することを遊技者に報知する画像を表示している期間待機するように設定するためにRAM308に設けた演出待機時間管理用タイマの記憶領域に演出待機期間を示す情報を設定する。また、普図確率変動フラグがオンに設定されていれば、この大当り遊技の終了と同時に、RAM308に設けられた時短回数記憶部に時短回数100回をセットするともに、RAM308に設けられた時短フラグをオンする。なお、その普図確率変動フラグがオフに設定されていれば、時短回数記憶部に時短回数をセットすることもなく、また時短フラグをオンすることもない。ここにいう時短とは、特図変動遊技における大当りを終了してから、次の大当りを開始するまでの時間を短くするため、パチンコ機が遊技者にとって有利な状態になることをいう。この時短フラグがオンに設定されていると、普図高確率状態である。普図高確率状態では普図低確率状態に比べて、普図変動遊技に大当りする可能性が高い。また、普図高確率状態の方が、普図低確率状態に比べて普図変動遊技の変動時間および特図変動遊技の変動時間は短くなる。さらに、普図高確率状態では普図低確率状態に比べて、第2特別始動口232の一対の羽根部材232aの1回の開放における開放時間が長くなりやすい。加えて、普図高確率状態では普図低確率状態に比べて、一対の羽根部材232aは多く開きやすい。また、上述のごとく、時短フラグは、大当り遊技中(特別遊技状態中)にはオフに設定される。したがって、大当り遊技中には、普図低確率状態が維持される。これは、大当り遊技中に普図高確率状態であると、大当り遊技中に可変入賞口234に所定の個数、遊技球が入球するまでの間に第2特図始動口232に多くの遊技球が入球し、大当り中に獲得することができる遊技球の数が多くなってしまい射幸性が高まってしまうという問題があり、これを解決するためのものである。   In addition, in the special figure 2 state update process that starts at the timing when the door member opening / closing control is repeated a predetermined number of times (15 rounds or 2 rounds in this embodiment) and finished, a predetermined end effect period (eg, 3 seconds) In other words, the effect waiting period is stored in the storage area of the effect waiting time management timer provided in the RAM 308 in order to set to wait for a period during which an image for informing the player that the big hit by the decorative symbol display device 208 is to be ended is displayed. Set the information indicating. Also, if the normal probability fluctuation flag is set to ON, at the same time as the end of the big hit game, the time reduction number 100 is set in the time reduction number storage unit provided in the RAM 308, and the time reduction flag provided in the RAM 308 is set. Turn on. If the usual time probability variation flag is set to OFF, the time reduction number is not set in the time reduction number storage unit, and the time reduction flag is not turned ON. The short time here means that the pachinko machine is in an advantageous state for the player in order to shorten the time from the end of the big hit in the special figure variable game to the start of the next big hit. If the short time flag is set to ON at this time, it is a normal high probability state. There is a higher probability of hitting a general-purpose variable game in the high-probability state than in the low-probability state. In addition, the fluctuation time of the normal figure variable game and the fluctuation time of the special figure variable game are shorter in the normal figure high probability state than in the normal figure low probability state. Further, in the normal high probability state, the opening time in one opening of the pair of blade members 232a of the second special start port 232 tends to be longer than in the normal low probability state. In addition, the pair of blade members 232a are more likely to open in the normal high probability state than in the normal low probability state. In addition, as described above, the hourly flag is set to off during the big hit game (in the special game state). Therefore, the normal low probability state is maintained during the big hit game. This is because if the game is in a high probability state during a big hit game, a large number of games will be placed in the second special figure starting port 232 until a predetermined number of game balls are entered during the big win game. There is a problem that a ball enters and the number of game balls that can be acquired during a big hit increases, resulting in an increase in euphoria. This is to solve this problem.

さらに、コマンド設定送信処理(ステップS15233)で終了演出設定送信処理を実行させることを示す所定の送信情報を上述の送信情報記憶領域に追加記憶する。   Further, predetermined transmission information indicating that the end effect setting transmission process is executed in the command setting transmission process (step S15233) is additionally stored in the transmission information storage area.

また、所定の終了演出期間が終了したタイミング(演出待機時間管理用タイマの値が1から0になったタイミング)で開始する特図2状態更新処理では、RAM308の設定領域に特図2非作動中を設定する。さらに、特図2変動遊技の結果が外れであれば、後述するように、はずれフラグがオンされる。このはずれフラグがオンの場合には、上述した所定の停止表示期間が終了したタイミング(特図2停止時間管理用タイマの値が1から0になったタイミング)における特図2状態更新処理でも、RAM308の設定領域に特図2非作動中を設定する。特図2非作動中の場合における特図2状態更新処理では、何もせずに次のステップS15227に移行するようにしている。   In the special figure 2 state update process that starts at the timing when the predetermined end production period ends (the timing when the production standby time management timer value changes from 1 to 0), the special figure 2 is not activated in the setting area of the RAM 308. Set medium. Further, if the result of the special figure 2 variable game is out of the way, the off flag is turned on as will be described later. In the case where the miss flag is on, even in the special figure 2 state update process at the timing when the predetermined stop display period described above ends (the timing when the special figure 2 stop time management timer value changes from 1 to 0), In the setting area of the RAM 308, special figure 2 inactive is set. In the special figure 2 state update process when the special figure 2 is not in operation, nothing is done and the process proceeds to the next step S15227.

続いて、特図1についての特図状態更新処理(特図1状態更新処理)を行う(ステップS15227)。この特図1状態更新処理では、特図1の状態に応じて、上述の特図2状態更新処理で説明した各処理を行う。この特図1状態更新処理で行う各処理は、上述の特図2状態更新処理で説明した内容の「特図2」を「特図1」と読み替えた処理と同一であるため、その説明は省略する。なお、特図2状態更新処理と特図1状態更新処理の順番は逆でもよい。   Subsequently, special figure state update processing (special figure 1 state update process) for special figure 1 is performed (step S15227). In the special figure 1 state update process, each process described in the special figure 2 state update process is performed according to the state of the special figure 1. Each process performed in the special figure 1 state update process is the same as the process in which “special figure 2” in the contents described in the special figure 2 state update process is replaced with “special figure 1”. Omitted. The order of the special figure 2 state update process and the special figure 1 state update process may be reversed.

ステップS15225およびステップS15227における特図状態更新処理が終了すると、今度は、特図1および特図2それぞれについての特図関連抽選処理を行う。ここでも先に、特図2についての特図関連抽選処理(特図2関連抽選処理)を行い(ステップS15229)、その後で、特図1についての特図関連抽選処理(特図1関連抽選処理)を行う(ステップS15231)。これらの特図関連抽選処理についても、主制御部300が特図2関連抽選処理を特図1関連抽選処理よりも先に行うことで、特図2変動遊技の開始条件と、特図1変動遊技の開始条件が同時に成立した場合でも、特図2変動遊技が先に変動中となるため、特図1変動遊技は変動を開始しない。また、装飾図柄表示装置208による、特図変動遊技の大当り判定の結果の報知は、第1副制御部400によって行われ、第2特図始動口232への入賞に基づく抽選の抽選結果の報知が、第1特図始動口230への入賞に基づく抽選の抽選結果の報知よりも優先して行われる。   When the special figure state update process in step S15225 and step S15227 is completed, a special figure related lottery process for each of special figure 1 and special figure 2 is performed. Also here, the special figure related lottery process for special figure 2 (the special figure 2 related lottery process) is performed first (step S15229), and then the special figure related lottery process for the special figure 1 (special figure 1 related lottery process). ) Is performed (step S15231). Also for these special drawing related lottery processes, the main control unit 300 performs the special figure 2 related lottery processing before the special figure 1 related lottery processing, so that the special figure 2 variable game start condition and the special figure 1 fluctuation Even if the game start conditions are satisfied at the same time, since the special figure 2 variable game is changing first, the special figure 1 variable game does not start changing. Further, the notification of the result of the jackpot determination of the special figure variable game by the decorative symbol display device 208 is performed by the first sub-control unit 400, and the lottery result of the lottery based on the winning at the second special figure starting port 232 is notified. However, it is performed in preference to the notification of the lottery result of the lottery based on the winning at the first special figure starting port 230.

ステップS15232では、デバイス監視処理を実行する(詳細は後述)。   In step S15232, device monitoring processing is executed (details will be described later).

ステップS15233では、コマンド設定送信処理を行い、各種のコマンド(例えば、ステップS15232のデバイス監視処理で特定異常があった場合は、特定異常を示す信号)が第1副制御部400に送信される。なお、第1副制御部400に送信する出力予定情報は例えば16ビットで構成しており、ビット15はストローブ情報(オンの場合、データをセットしていることを示す)、ビット11〜14はコマンド種別(本実施形態では、基本コマンド、図柄変動開始コマンド、図柄変動停止コマンド、入賞演出開始コマンド、終了演出開始コマンド、大当りラウンド数指定コマンド、復電コマンド、FRAM(登録商標)クリアコマンドなどコマンドの種類を特定可能な情報)、ビット0〜10はコマンドデータ(コマンド種別に対応する所定の情報)で構成している。   In step S15233, command setting transmission processing is performed, and various commands (for example, a signal indicating a specific abnormality when there is a specific abnormality in the device monitoring process in step S15232) are transmitted to the first sub-control unit 400. The output schedule information to be transmitted to the first sub-control unit 400 is composed of 16 bits, for example, bit 15 is strobe information (indicating that data is set when ON), bits 11 to 14 are Command type (in this embodiment, commands such as basic command, symbol variation start command, symbol variation stop command, winning effect start command, end effect start command, jackpot round number designation command, power recovery command, FRAM (registered trademark) clear command, etc. Bits 0 to 10 are composed of command data (predetermined information corresponding to the command type).

具体的には、ストローブ情報は上述のコマンド送信処理でオン、オフするようにしている。また、コマンド種別が図柄変動開始コマンドの場合であればコマンドデータに、15R大当りフラグや2R大当りフラグの値、特図確率変動フラグの値、特図関連抽選処理で選択したタイマ番号などを示す情報を含み、図柄変動停止コマンドの場合であれば、15R大当りフラグや2R大当りフラグの値、特図確率変動フラグの値などを含み、入賞演出コマンドおよび終了演出開始コマンドの場合であれば、特図確率変動フラグの値などを含み、大当りラウンド数指定コマンドの場合であれば特図確率変動フラグの値、大当りラウンド数などを含むようにしている。コマンド種別が基本コマンドを示す場合は、コマンドデータにデバイス情報、第1特図始動口230への入賞の有無、第2特図始動口232への入賞の有無、可変入賞口234への入賞の有無などを含む。   Specifically, the strobe information is turned on and off in the command transmission process described above. If the command type is a symbol variation start command, the command data includes information such as the value of the 15R jackpot flag or 2R jackpot flag, the value of the special figure probability variation flag, the timer number selected in the special figure related lottery process, and the like. In the case of the symbol variation stop command, the value of the 15R jackpot flag, the 2R jackpot flag, the value of the special figure probability variation flag, and the like are included. In the case of a jackpot round number designation command, the value of the special variation probability flag, the number of jackpot rounds, and the like are included. When the command type indicates a basic command, device information in the command data, presence / absence of winning at the first special figure starting port 230, presence / absence of winning at the second special figure starting port 232, winning of the variable winning port 234 Includes presence or absence.

また、上述の回転開始設定送信処理では、コマンドデータにRAM308に記憶している、15R大当りフラグや2R大当りフラグの値、特図確率変動フラグの値、特図1関連抽選処理および特図2関連抽選処理で選択したタイマ番号、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の回転停止設定送信処理では、コマンドデータにRAM308に記憶している、15R大当りフラグや2R大当りフラグの値、特図確率変動フラグの値などを示す情報を設定する。上述の入賞演出設定送信処理では、コマンドデータに、RAM308に記憶している、入賞演出期間中に装飾図柄表示装置208・各種ランプ418・スピーカ120に出力する演出制御情報、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の終了演出設定送信処理では、コマンドデータに、RAM308に記憶している、演出待機期間中に装飾図柄表示装置208・各種ランプ418・スピーカ120に出力する演出制御情報、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の大入賞口開放設定送信処理では、コマンドデータにRAM308に記憶している大当りラウンド数、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。上述の大入賞口閉鎖設定送信処理では、コマンドデータにRAM308に記憶している大当りラウンド数、特図確率変動フラグの値、保留している第1特図変動遊技または第2特図変動遊技の数などを示す情報を設定する。また、このステップS15233では一般コマンド特図保留増加処理も行われる。この一般コマンド特図保留増加処理では、コマンドデータにRAM308の送信用情報記憶領域に記憶している特図識別情報(特図1または特図2を示す情報)、予告情報(事前予告情報、偽事前予告情報、または事前予告無情報のいずれか)を設定する。   In the rotation start setting transmission process described above, the value of the 15R big hit flag or 2R big hit flag, the value of the special figure probability variation flag, the special figure 1 related lottery process, and the special figure 2 related are stored in the RAM 308 as command data. Information indicating the timer number selected in the lottery process, the number of the first special figure variable game or the second special figure variable game held, etc. is set. In the rotation stop setting transmission process described above, information indicating the value of the 15R big hit flag, the value of the 2R big hit flag, the value of the special figure probability variation flag, etc. stored in the RAM 308 is set in the command data. In the winning effect setting transmission process described above, the command control data stored in the RAM 308, the effect control information output to the decorative symbol display device 208, various lamps 418, and the speaker 120 during the winning effect period, the special figure probability variation flag Information indicating the value, the number of the first special figure variable game or the second special figure variable game being held, etc. is set. In the above-described end effect setting transmission process, the command control data stored in the RAM 308, the effect control information output to the decorative symbol display device 208, various lamps 418, and the speaker 120 during the effect standby period, the special figure probability variation flag Information indicating the value, the number of the first special figure variable game or the second special figure variable game being held, etc. is set. In the above-described large winning opening release setting transmission process, the number of big hits stored in the RAM 308 in the command data, the value of the special figure probability variation flag, the pending first special figure variation game or the second special figure variation game is stored. Set information such as number. In the above-mentioned big winning opening closing setting transmission process, the number of big hits stored in the RAM 308 in the command data, the value of the special figure probability variation flag, the pending first special figure variation game or the second special figure variation game is stored. Set information such as number. In step S15233, general command special figure hold increase processing is also performed. In this general command special figure pending increase process, special figure identification information (information showing special figure 1 or special figure 2) stored in the transmission information storage area of the RAM 308, command notice information (preliminary notice information, false) Set either advance notice information or no advance notice information).

第1副制御部400では、受信した出力予定情報に含まれるコマンド種別により、主制御部300における遊技制御の変化に応じた演出制御の決定が可能になるとともに、出力予定情報に含まれているコマンドデータの情報に基づいて、演出制御内容を決定することができるようになる。   In the first sub-control unit 400, it is possible to determine the production control according to the change of the game control in the main control unit 300 by the command type included in the received output schedule information, and it is included in the output schedule information. Based on the information of the command data, the contents of effect control can be determined.

ステップS15235では、外部出力信号設定処理を行う。具体的には、外部端子板信号や試射試験信号などを設定する。また、ステップS15232のデバイス監視処理で特定異常があった場合は、特定異常を示す信号を設定する。この外部出力信号設定処理では、RAM308に記憶している遊技情報を、情報出力回路336を介してパチンコ機100とは別体の情報入力回路350に出力する。   In step S15235, an external output signal setting process is performed. Specifically, an external terminal board signal, a test fire test signal, and the like are set. If there is a specific abnormality in the device monitoring process in step S15232, a signal indicating the specific abnormality is set. In this external output signal setting process, the game information stored in the RAM 308 is output to the information input circuit 350 separate from the pachinko machine 100 via the information output circuit 336.

ステップS15239では、低電圧信号がオンであるか否かを監視する。そして、低電圧信号がオンの場合(電源の遮断を検知した場合)にはステップS15243に進み、低電圧信号がオフの場合(電源の遮断を検知していない場合)にはステップS15241に進む。   In step S15239, it is monitored whether the low voltage signal is on. Then, if the low voltage signal is on (when power supply shutoff is detected), the process proceeds to step S15243. If the low voltage signal is off (power supply shutoff is not detected), the process proceeds to step S15241.

ステップS15241では、タイマ割込終了処理を行う。このタイマ割込終了処理では、ステップS15201で一時的に退避した各レジスタの値を元の各レジスタに設定したり、割込許可の設定などを行い、その後、図343に示す主制御部メイン処理に復帰する。   In step S15241, timer interrupt end processing is performed. In this timer interrupt end process, the value of each register temporarily saved in step S15201 is set in each original register, interrupt permission is set, etc., and then main control unit main process shown in FIG. 343 is performed. Return to.

一方、ステップS15243では、復電時に電断時の状態に復帰するための特定の変数やスタックポインタを復帰データとしてRAM308の所定の領域に退避し、入出力ポートの初期化等の電断処理を行い、その後、上述の主制御部メイン処理に復帰する。   On the other hand, in step S15243, a specific variable or stack pointer for returning to the power-off state at the time of power recovery is saved as a return data in a predetermined area of the RAM 308, and power-off processing such as initialization of input / output ports is performed. Then, the process returns to the main process of the main control unit described above.

なお、デバイス監視処理(ステップS15232)で監視するエラーとしては、次に示すようなものが考えられる。   The following errors can be considered as errors monitored in the device monitoring process (step S15232).

エラー種別として、下受け皿満タンエラー(下皿満タンエラー)、払出装置エラー、払出超過エラー、不正払出エラー、払出個数スイッチエラー、主制御通信エラー、CRユニット未接続エラー、CRユニット通信エラー、磁気異常エラー、外部クロック異常エラー、磁界異常エラー、スイッチレベル異常エラー、枠開放エラー(前面枠扉開放エラー)、スイッチ未接続エラー、衝撃センサエラーなどがある。   The error types are: tray full tank error (bottom full tank error), payout device error, payout excess error, payout error, payout number switch error, main control communication error, CR unit disconnected error, CR unit communication error, magnetic error Error, external clock error, magnetic field error, switch level error, frame open error (front frame door open error), switch disconnection error, shock sensor error, etc.

下受け皿満タンエラーとは、下皿満タンスイッチ信号のオン状態が、メイン基板の所定の入力ポートによってタイマ割り込みでオンを1回読み込んだとき(オフ状態からオン状態に切り換わるとき)にメインから払出に出力されるものである。   The bottom pan full tank error is when the on state of the bottom pan full switch signal is read from the main when the timer interrupt is read once by the predetermined input port of the main board (when switching from the off state to the on state). It is output for payout.

払出装置エラーとは、払出モータが払出要求数分の駆動を終了後(実際は+ブレーキ期間+無励磁期間経過後)の次の割り込み内で、払出数(払出個数スイッチのカウント数)が払出要求数よりも少ない場合に払出装置エラーの発生を検知するものである。1個ずつ遊技球を払い出すリトライ処理が完了することにより、当該エラー状態が解除される。   The payout device error means that the payout number (count number of the payout number switch) is the payout request within the next interrupt after the payout motor finishes driving the number of payout requests (actually + brake period + non-excitation period has elapsed). When the number is smaller than the number, the occurrence of a payout device error is detected. When the retry process of paying out the game balls one by one is completed, the error state is canceled.

払出超過エラーとは、払出要求数に対して実際に払い出された遊技球が10個多く検知されたとき払出動作を停止するものである。この払出超過エラーは、エラー解除スイッチ168によって解除するエラーであり、エラー解除スイッチ168を操作するか、RAMクリアスイッチ180による初期化(RAMクリア)によって当該エラー状態が解除される。   The payout excess error is to stop the payout operation when ten game balls actually paid out with respect to the payout request number are detected. This payout excess error is an error to be canceled by the error cancel switch 168, and the error state is canceled by operating the error cancel switch 168 or by initialization (RAM clear) by the RAM clear switch 180.

不正払出エラーとは、払出要求が発生していない状態で遊技球の払出を検知(払出個数スイッチがカウント)したとき払出動作を停止するものである。この不正払出エラーは、エラー解除スイッチ168によって解除するエラーであり、エラー解除スイッチ168を操作するか、RAMクリアスイッチ180による初期化(RAMクリア)によって当該エラー状態が解除される。   The illegal payout error is to stop the payout operation when the payout of the game ball is detected (the payout number switch is counted) in a state where no payout request is generated. This illegal payout error is an error to be canceled by the error cancel switch 168, and the error state is canceled by operating the error cancel switch 168 or by initialization (RAM clear) by the RAM clear switch 180.

払出個数スイッチエラーとは、払出基板170に制御される遊技球の払出個数スイッチ(不図示)のエラーであり、払出個数スイッチの接続異常を検知したとき(メイン基板は関係なし)払出動作を停止するものである。この払出個数スイッチエラーは、エラー解除スイッチ168によって解除するエラーであり、スイッチの接続が正しいか確認した後、エラー解除スイッチ168を操作するか、RAMクリアスイッチ180による初期化(RAMクリア)によって当該エラー状態が解除される。   The payout number switch error is an error of the payout number switch (not shown) of the game ball controlled by the payout board 170, and stops the payout operation when an abnormal connection of the payout number switch is detected (regardless of the main board). To do. This payout number switch error is an error to be canceled by the error cancel switch 168. After confirming whether the switch is connected correctly, the error cancel switch 168 is operated, or the RAM clear switch 180 is initialized (RAM clear). The error state is released.

主制御通信エラーとは、主制御接続確認信号のオフ状態を検知した場合、または主制御動作確認信号のオン状態を2割り込み継続して検知した場合に発生するエラーであり、メイン基板からのコマンド受信が不能になるものである。但し、払出要求数が残存している場合は、その分までは払い出す。主制御接続確認信号のオン状態を検知した場合で、かつ、主制御動作確認信号のオフ状態を2割り込み継続して検知した場合に当該エラー状態が解除される。   The main control communication error is an error that occurs when the main control connection confirmation signal OFF state is detected or when the main control operation confirmation signal ON state is detected continuously for two interrupts. Reception is impossible. However, if the number of payout requests remains, the payout is made up to that amount. When the ON state of the main control connection confirmation signal is detected, and when the OFF state of the main control operation confirmation signal is detected continuously for two interrupts, the error state is canceled.

CRユニット未接続エラーとは、CRユニット未接続エラーが解除状態のときに、CRユニット接続信号(VL信号)のオフ状態を検知し、16ms継続した場合に発生するものであり、貸出停止(賞球の払出には影響なし)となるものである。CRユニット接続信号のON状態を検知し、16ms継続した場合に当該エラー状態が解除される。なお、エラー解除した後、CRユニットREADY信号(BRDY信号)およびCRユニット貸出要求完了確認信号(BRQ信号)がオフ状態となるまでCRユニットとの通信が無効状態になる。   The CR unit unconnected error occurs when the CR unit connection signal (VL signal) is off when the CR unit unconnected error is released and continues for 16 ms. There is no effect on the payout of the ball). When the ON state of the CR unit connection signal is detected and continued for 16 ms, the error state is canceled. After the error is released, communication with the CR unit is disabled until the CR unit READY signal (BRDY signal) and the CR unit lending request completion confirmation signal (BRQ signal) are turned off.

ここで、CRユニットとインタフェースの接続信号関係について説明する。各種信号が、CRユニットからインタフェースを介して払出基板へと伝達される場合、CRユニット接続信号とは、CRユニット内の+18V電源からなるVL信号である。CRユニットREADY信号とは、CRユニットが貸し出しの処理中であることを伝達するBRDY信号である。CRユニット貸出要求確認信号とは、CRユニットが基本単位分25個の貸出要求と貸出指示を伝達するBRQ信号である。   Here, the connection signal relationship between the CR unit and the interface will be described. When various signals are transmitted from the CR unit to the payout board via the interface, the CR unit connection signal is a VL signal composed of a + 18V power source in the CR unit. The CR unit READY signal is a BRDY signal that conveys that the CR unit is being lent. The CR unit lending request confirmation signal is a BRQ signal for transmitting 25 lending requests and lending instructions for the basic unit.

CRユニット通信エラーとは、貸出要求発生前にBRQ信号のオン状態を検知した場合に発生するものである(なお、他の条件もあるが、ここでは特に関係がないため割愛する)。遊技機側から通信異常を通知した後、BRDY信号およびBRQ信号をオフ状態にすることで当該エラー状態が解除される。   The CR unit communication error occurs when the ON state of the BRQ signal is detected before the lending request is generated (although there are other conditions, they are omitted because they are not particularly related here). After notifying the communication abnormality from the gaming machine side, the error state is canceled by turning off the BRDY signal and the BRQ signal.

磁気異常エラーとは、所定量を超える磁力を検出したとき主制御動作を停止するものである。外部クロック異常エラーとは、乱数更新用クロックに異常を検出した場合に発生するエラーである。磁界異常エラーとは、所定量を超える磁界を検出した場合に発生するエラーである。   The magnetic abnormality error is to stop the main control operation when a magnetic force exceeding a predetermined amount is detected. The external clock error is an error that occurs when an error is detected in the random number update clock. The magnetic field abnormality error is an error that occurs when a magnetic field exceeding a predetermined amount is detected.

スイッチレベル異常エラーとは、入賞スイッチを検出し、1s継続した場合に発生するエラーである。枠開放エラーとは、ガラス枠または内枠の開放を検出した場合に発生するエラーである。スイッチ未接続エラーとは、入賞スイッチ(不図示)のエラーであり、入賞スイッチの接続異常を検出した場合に発生するエラーである。   The switch level abnormality error is an error that occurs when a winning switch is detected and continued for 1 second. The frame opening error is an error that occurs when the opening of the glass frame or the inner frame is detected. The switch non-connection error is an error of a winning switch (not shown), and is an error that occurs when an abnormal connection of a winning switch is detected.

衝撃センサエラーとは、衝撃センサが所定量を超える衝撃を検出したとき電源断まで継続してエラーを報知するものである。
<デバイス監視処理>
The impact sensor error is an error notification that continues until the power is turned off when the impact sensor detects an impact exceeding a predetermined amount.
<Device monitoring processing>

次に、図346を用いて、主制御部300のCPU304が実行するデバイス監視処理について説明する。なお、同図は主制御部タイマ割込処理におけるデバイス監視処理の流れを示すフローチャートである。   Next, device monitoring processing executed by the CPU 304 of the main control unit 300 will be described with reference to FIG. This figure is a flowchart showing the flow of device monitoring processing in the main control unit timer interrupt processing.

ステップS15251では、上述のエラーの有無を示すデバイス情報を初期設定する。   In step S15251, device information indicating the presence / absence of the error is initialized.

ステップS15253では、信号状態記憶領域に記憶した各種センサの信号状態を読み出して、上述のエラーの有無を監視し、当該エラーを検出した場合に、ステップS15255に進む。一方、上述のエラーを検出しなかった場合には、当該デバイス監視処理を終了する。   In step S15253, the signal states of the various sensors stored in the signal state storage area are read, the presence / absence of the error is monitored, and if the error is detected, the process proceeds to step S15255. On the other hand, if the above error is not detected, the device monitoring process is terminated.

ステップS15255では、第1副制御部400に送信すべき送信情報に、ステップS15253で検出したエラーを示す異常情報(デバイス情報)を設定する。   In step S15255, abnormality information (device information) indicating the error detected in step S15253 is set in the transmission information to be transmitted to the first sub-control unit 400.

ステップS15257では、ステップS15255で設定した異常情報の中に、特定異常情報があるか否かを判定し、特定異常情報がある場合に、ステップS15259に進む。一方、特定異常情報がない場合に、ステップS15261に進む。なお、特定異常情報は、上述のエラーについての異常情報の中から、予め設定されている1つまたは複数のエラーの異常情報のことである。例えば、磁気異常エラーの異常情報を特定異常情報として予め設定しておいてもよい。   In step S15257, it is determined whether there is specific abnormality information in the abnormality information set in step S15255. If there is specific abnormality information, the process proceeds to step S15259. On the other hand, if there is no specific abnormality information, the process proceeds to step S15261. The specific abnormality information is abnormality information of one or a plurality of errors set in advance from the above-described abnormality information regarding errors. For example, abnormality information of a magnetic abnormality error may be set in advance as specific abnormality information.

ステップS15259では、特定異常検出フラグをオンにする。   In step S15259, the specific abnormality detection flag is turned on.

ステップS15261では、デバイスコマンド送信要求を設定する。   In step S15261, a device command transmission request is set.

次に、図347を用いて本実施形態の遊技台で使用される乱数と、その主な導出源について説明する。同図は、本実施形態の遊技台で使用される乱数の導出源を表で示す図である。   Next, with reference to FIG. 347, a random number used in the game machine of this embodiment and its main derivation source will be described. FIG. 2 is a table showing random number derivation sources used in the game machine of this embodiment.

特図1当選乱数は、16ビット乱数回路CHで生成されハードラッチ乱数値レジスタ0でラッチされた乱数値と16ビット乱数回路CH1で生成されソフトラッチ乱数値レジスタでラッチされた乱数値とを合成したものが基になる。これらの乱数値が生成される乱数生成回路は、外部クロック信号に基づいて更新される。また、生成される乱数値の最大値設定は無しに設定されている。   Special figure 1 winning random numbers are generated by combining the random value generated by the 16-bit random number circuit CH and latched by the hard latch random number register 0 and the random value generated by the 16-bit random number circuit CH1 and latched by the soft latch random number register. The basis is The random number generation circuit for generating these random number values is updated based on the external clock signal. In addition, the maximum value setting of the generated random number value is set to none.

特図2当選乱数は、16ビット乱数回路CH0で生成されハードラッチ乱数値レジスタ1でラッチされた乱数値と16ビット乱数回路CH2で生成されソフトラッチ乱数値レジスタでラッチされた乱数値とが合成されたものが基になる。これらの乱数値が生成される乱数生成回路は、外部クロック信号に基づいて更新される。また、生成される乱数値の最大値設定は無しに設定されている。   Special figure 2 winning random numbers are composed of a random value generated by the 16-bit random number circuit CH0 and latched by the hard latch random number register 1 and a random value generated by the 16-bit random number circuit CH2 and latched by the soft latch random number register. Is the basis. The random number generation circuit for generating these random number values is updated based on the external clock signal. In addition, the maximum value setting of the generated random number value is set to none.

特図1当選乱数と特図2当選乱数とでは、同じ乱数生成チャンネルを使用し、ハードラッチするハードラッチ乱数値レジスタを特図1当選乱数と特図2当選乱数とで異ならせてもよい。またソフトラッチする乱数生成チャンネルを特図1当選乱数と特図2当選乱数とで異ならせてもよい。   In the special figure 1 winning random number and the special figure 2 winning random number, the same random number generation channel may be used, and the hard latch random value register for hard latching may be different between the special figure 1 winning random number and the special figure 2 winning random number. Also, the random number generation channel for soft latching may be different between the special figure 1 winning random number and the special figure 2 winning random number.

表示図柄乱数は、16ビット乱数回路CH3で生成されハードラッチ乱数値レジスタ0でラッチされた乱数値が基になる。当該乱数値が生成される乱数生成回路は、外部クロック信号に基づいて更新される。また、生成される乱数値の最大値設定は有り(例えば、0〜199)に設定されている。   The display symbol random number is based on the random number value generated by the 16-bit random number circuit CH3 and latched by the hard latch random number register 0. The random number generation circuit that generates the random number value is updated based on the external clock signal. In addition, the maximum value of the generated random number is set to be present (for example, 0 to 199).

普図当選乱数は、8ビット乱数回路CH0で生成されハードラッチ乱数値レジスタ0でラッチされた乱数値が基になる。当該乱数値が生成される乱数生成回路は、外部クロック信号に基づいて更新される。また、生成される乱数値の最大値設定は無しに設定されている。   The usual winning random number is based on the random number value generated by the 8-bit random number circuit CH0 and latched by the hard latch random number register 0. The random number generation circuit that generates the random number value is updated based on the external clock signal. In addition, the maximum value setting of the generated random number value is set to none.

大当り用特図乱数、小当り用特図乱数、およびはずれ用特図乱数は、上述の主制御部タイマ割込み処理において生成される。すなわちこれらの乱数は、所謂ソフトウェア乱数である。なお、これらの乱数を生成する際に用いられる初期値生成用乱数は、主制御部メイン処理および主制御部タイマ割込み処理で生成される。なお、大当り用特図乱数、小当り用特図乱数、およびはずれ用特図乱数は、ハードラッチされた乱数を用いてもよい。   The big hit special figure random number, the small hit special figure random number, and the special figure random number for loss are generated in the above-described main control unit timer interrupt processing. That is, these random numbers are so-called software random numbers. Note that the initial value generating random numbers used when generating these random numbers are generated by the main control unit main process and the main control unit timer interrupt process. The big hit special figure random numbers, the small hit special figure random numbers, and the special figure random numbers for loss may be hard latched random numbers.

特図変動時間決定用乱数、および普図変動時間決定用乱数は、カウンタ回路312の値を乱数として用いる。本実施形態のカウント回路312は、マイクロプロセッサ3000のシステムクロックの他、上記タイマ回路からのタイムアウト信号、メモリの読み書き信号、メモリリクエスト信号、外部入出力の信号等もカウンタの対象として用いることができる。このため、これらを組み合わせることで規則性のない値を導出させ、上記の乱数に使用している。演出用乱数は、主制御部メイン処理および主制御部タイマ割込み処理で生成される。   For the special figure fluctuation time determination random number and the normal figure fluctuation time determination random number, the value of the counter circuit 312 is used as a random number. In the count circuit 312 of this embodiment, in addition to the system clock of the microprocessor 3000, a timeout signal from the timer circuit, a memory read / write signal, a memory request signal, an external input / output signal, and the like can be used as counter targets. . Therefore, by combining these, a value having no regularity is derived and used for the above random number. The production random number is generated by the main control unit main process and the main control unit timer interrupt process.

次に、図348を用いて本実施形態の遊技台(スロットマシン)で使用される乱数と、その主な導出源について説明する。同図は、本実施形態の遊技台で使用される乱数の導出源を表で示す図である。   Next, random numbers used in the game machine (slot machine) of this embodiment and main derivation sources will be described with reference to FIG. FIG. 2 is a table showing random number derivation sources used in the game machine of this embodiment.

役抽選乱数は、16ビット乱数回路CH0で生成されソフトラッチ乱数値レジスタでラッチされた乱数値が基になる。当該乱数値が生成される乱数生成回路は、内部クロック信号に基づいて更新される。また、生成される乱数値の最大値設定は無しに設定されている。   The role lottery random number is based on a random value generated by the 16-bit random number circuit CH0 and latched by the soft latch random value register. The random number generation circuit for generating the random number value is updated based on the internal clock signal. In addition, the maximum value setting of the generated random number value is set to none.

演出抽選乱数は、16ビット乱数回路CH1で生成されソフトラッチ乱数値レジスタでラッチされた乱数値が基になる。当該乱数値が生成される乱数生成回路は、内部クロック信号に基づいて更新される。また、生成される乱数値の最大値設定は無しに設定されている。   The effect lottery random number is based on a random value generated by the 16-bit random number circuit CH1 and latched by the soft latch random value register. The random number generation circuit for generating the random number value is updated based on the internal clock signal. In addition, the maximum value setting of the generated random number value is set to none.

左リール遅延時間抽選乱数は、8ビット乱数回路CH0で生成されソフトラッチ乱数値レジスタでラッチされた乱数値が基になる。当該乱数値が生成される乱数生成回路は、内部クロック信号に基づいて更新される。また、生成される乱数値の最大値設定は有りに設定されている。   The left reel delay time lottery random number is based on the random number value generated by the 8-bit random number circuit CH0 and latched by the soft latch random number value register. The random number generation circuit for generating the random number value is updated based on the internal clock signal. In addition, the maximum value setting of the generated random value is set to “Yes”.

中リール遅延時間抽選乱数は、8ビット乱数回路CH1で生成されソフトラッチ乱数値レジスタでラッチされた乱数値が基になる。当該乱数値が生成される乱数生成回路は、内部クロック信号に基づいて更新される。また、生成される乱数値の最大値設定は有りに設定されている。   The medium reel delay time lottery random number is based on the random number value generated by the 8-bit random number circuit CH1 and latched by the soft latch random number value register. The random number generation circuit for generating the random number value is updated based on the internal clock signal. In addition, the maximum value setting of the generated random value is set to “Yes”.

右リール遅延時間抽選乱数は、8ビット乱数回路CH2で生成されソフトラッチ乱数値レジスタでラッチされた乱数値が基になる。当該乱数値が生成される乱数生成回路は、内部クロック信号に基づいて更新される。また、生成される乱数値の最大値設定は有りに設定されている。   The right reel delay time lottery random number is based on the random number value generated by the 8-bit random number circuit CH2 and latched by the soft latch random number value register. The random number generation circuit for generating the random number value is updated based on the internal clock signal. In addition, the maximum value setting of the generated random value is set to “Yes”.

スロットマシンでは、外部クロック信号に基づいて乱数生成回路を更新しないため、最大値設定前に取り込まれた乱数のリード処理を行わないようにしてもよい。   In the slot machine, since the random number generation circuit is not updated based on the external clock signal, the read processing of the random number fetched before setting the maximum value may not be performed.

次に、以上説明した実施形態8によるパチンコ機100の特徴的構成について再度図341乃至図348を参照しつつ説明する。   Next, a characteristic configuration of the pachinko machine 100 according to the eighth embodiment described above will be described with reference to FIGS. 341 to 348 again.

(1)本実施の形態によるパチンコ機100は、 (1) The pachinko machine 100 according to the present embodiment

乱数を少なくとも導出可能な乱数回路(例えば、16ビット乱数回路9000、8ビット乱数回路10000)と、   A random number circuit capable of deriving at least a random number (for example, a 16-bit random number circuit 9000, an 8-bit random number circuit 10000),

複数の遊技制御処理のそれぞれを、メイン制御(例えば、主制御部メイン処理)および割込み周期ごとに行われる割込み制御(例えば、主制御部タイマ割込み処理)のうちの、少なくともいずれかの制御において実行可能な遊技制御手段(例えば、主制御部300)と、
を備えた遊技台であって、
Each of the plurality of game control processes is executed in at least one of main control (for example, main control unit main process) and interrupt control (for example, main control unit timer interrupt process) performed for each interrupt cycle. Possible game control means (for example, the main control unit 300);
A game machine equipped with

前記乱数回路は、第一の数値範囲内で更新される第一の乱数(例えば、最大値設定で起動される乱数生成回路が生成する乱数値)を導出可能なものであり、   The random number circuit is capable of deriving a first random number that is updated within a first numerical range (for example, a random value generated by a random number generation circuit that is activated by setting a maximum value),

前記乱数回路は、第二の数値範囲内で更新される第二の乱数(例えば、ユーザモード起動で起動される乱数生成回路が生成する乱数値)を導出可能なものであり、   The random number circuit is capable of deriving a second random number that is updated within a second numerical range (for example, a random number value generated by a random number generation circuit activated by user mode activation),

前記第一の乱数の起動時期と前記第二の乱数の起動時期(例えば、乱数生成チャンネルCH0〜CH3の乱数生成回路の起動時期)は異なるものであること
を特徴とする。
The start time of the first random number is different from the start time of the second random number (for example, the start time of the random number generation circuit of the random number generation channels CH0 to CH3).

当該構成を備えたパチンコ機100によれば、第一の乱数と第二の乱数とを生成する乱数生成回路の起動時期が異なるため、不正者による2つの乱数生成回路の起動時期の解析を困難にすることができ、安定した遊技制御を行うことができる場合がある。
(2)上記パチンコ機100であって、
According to the pachinko machine 100 having the configuration, since the start times of the random number generation circuits that generate the first random number and the second random number are different, it is difficult to analyze the start times of the two random number generation circuits by an unauthorized person. In some cases, stable game control can be performed.
(2) The pachinko machine 100,

第一の処理(例えば、主制御部メイン処理のステップS15103)を前記遊技制御処理は少なくとも含むものであり、   The game control process includes at least a first process (for example, step S15103 of the main control unit main process),

前記第一の乱数の起動時期と前記第二の乱数の起動時期のうちの一方は、前記第一の処理よりも後であること
を特徴とする。
One of the start time of the first random number and the start time of the second random number is after the first process.

当該構成を備えたパチンコ機100によれば、第一の乱数または第二の乱数を生成する乱数生成回路の起動時期が第一の処理後であるため、不正者による不正をより困難することができ、安定した遊技制御を行うことができる場合がある。
(3)上記パチンコ機100であって、
According to the pachinko machine 100 having the configuration, since the start time of the random number generation circuit that generates the first random number or the second random number is after the first process, it is possible to make fraud by an unauthorized person more difficult. In some cases, stable game control can be performed.
(3) The pachinko machine 100,

前記第一の処理は、制御の進行を保留可能なものであり、   In the first process, the progress of control can be suspended,

前記第一の処理は、制御進行条件が成立した場合に(例えば、主制御部メイン処理のステップS15103のYes)、前記保留を解除可能なものであり、   The first process can release the hold when the control progress condition is satisfied (for example, Yes in step S15103 of the main control unit main process),

前記制御進行条件は、第一の信号が第一の状態から第二の状態に変化した場合に成立するものであること
を特徴とする。
The control progress condition is established when the first signal changes from the first state to the second state.

当該構成を備えたパチンコ機100によれば、第一の信号の状態の変化時期に応じて乱数生成回路の起動時期が変化するため、不正者による不正をより困難にでき、安定した遊技制御を行うことができる場合がある。
(4)上記パチンコ機100であって、
According to the pachinko machine 100 having such a configuration, since the activation time of the random number generation circuit changes according to the change time of the state of the first signal, fraud by an unauthorized person can be made more difficult and stable game control can be performed. There are cases where it can be done.
(4) The pachinko machine 100,

前記乱数回路に前記数値範囲の設定を指示可能な第二の処理(例えば、主制御部メイン処理のステップS15133)と、   A second process capable of instructing the random number circuit to set the numerical range (for example, step S15133 of the main control unit main process);

前記乱数回路によって導出された乱数を取得可能な第三の処理(例えば、主制御部タイマ割込処理のステップS15217)と、   A third process capable of acquiring a random number derived by the random number circuit (for example, step S15217 of the main control unit timer interrupt process);

前記第三の処理によって取得された乱数に基づく判定を実行可能な第四の処理(例えば、主制御部タイマ割込処理のステップS15223、ステップS15229、ステップS15231)と、を前記遊技制御処理は少なくとも含むものであり、   The game control process includes at least a fourth process (for example, step S15223, step S15229, step S15231 of the main control unit timer interrupt process) capable of executing a determination based on the random number acquired by the third process. Including

前記第一の数値範囲は、前記第二の処理によって設定されるものであり、   The first numerical range is set by the second process,

前記第二の数値範囲は、前記第二の処理によらずに設定されるものであり、   The second numerical range is set regardless of the second processing,

前記第一の数値範囲が設定された場合に、前記第一の乱数の起動が開始可能なものであること
を特徴とする。
When the first numerical range is set, the activation of the first random number can be started.

当該構成を備えたパチンコ機100によれば、数値範囲設定後に乱数生成回路を起動(更新を開始)するので数値範囲外の数値を更新することがなく、安定した遊技制御を行うことができる場合がある。   According to the pachinko machine 100 having such a configuration, the random number generation circuit is activated (starts updating) after the numerical value range is set, so that stable game control can be performed without updating numerical values outside the numerical value range. There is.

第一の処理は、1又は複数の命令であってもよい。   The first process may be one or a plurality of instructions.

第一の処理は、分岐命令であってもよい。   The first process may be a branch instruction.

第一の乱数の更新周期と第二の乱数の更新周期が同じであってもよい。   The update cycle of the first random number and the update cycle of the second random number may be the same.

第一の乱数と第二の乱数が同一の乱数回路(チャネル)で生成されるものであってもよい。   The first random number and the second random number may be generated by the same random number circuit (channel).

第一の乱数の起動時期が、第二の乱数の起動時期よりも後であってもよい。   The start time of the first random number may be later than the start time of the second random number.

第一の乱数の起動時期は、第二の乱数が更新を複数回行った後であってもよい。   The start time of the first random number may be after the second random number has been updated a plurality of times.

第一の数値範囲は、第二の数値範囲よりも小さいものであってもよい。   The first numerical range may be smaller than the second numerical range.

第二の乱数の起動時期は、プログラムの開始時期と同時またはプログラムの開始時期よりも前であってもよい。   The start time of the second random number may be simultaneous with the start time of the program or before the start time of the program.

第一の乱数と第二の乱数のうち、一方は遊技者の利益に関わるものであってもよく、他方は遊技者の利益に関わらないものであってもよい。   One of the first random number and the second random number may be related to the player's profit, and the other may not be related to the player's profit.

第一の乱数と第二の乱数は遊技者の利益に関わるものであってもよく、第一の乱数と第二の乱数のうちの一方は直接的に遊技者の利益に関わるものであってもよく、他方は間接的に遊技者の利益に関わるものであってもよい。   The first random number and the second random number may be related to the player's interest, and one of the first random number and the second random number is directly related to the player's interest. The other may be indirectly related to the player's interests.

第一の乱数と第二の乱数は、遊技者の利益に関わるものであってもよい。   The first random number and the second random number may relate to the player's interest.

第一の乱数と第二の乱数は、遊技者の利益に関わらないものであってもよい。   The first random number and the second random number may be unrelated to the player's interest.

第一の乱数の起動時期は、スタックポインタの設定の後、直後、前、または直前の何れかであってもよい。   The start time of the first random number may be any one immediately after, before, or immediately after setting the stack pointer.

第一の乱数の起動時期は、ジャンプ処理の後、直後、前、または直前の何れかであってもよい。   The start time of the first random number may be immediately after, immediately before, or just before the jump process.

第一の乱数の起動時期は、第一の処理の後、直後、前、または直前の何れかであってもよい。   The start time of the first random number may be any of immediately after, immediately before, or immediately before the first process.

第一の乱数の起動時期は、カウンタ回路設定処理の後、直後、前、または直前の何れかであってもよい。   The start time of the first random number may be immediately after, before, or immediately after the counter circuit setting process.

第一の乱数の起動時期は、クリア信号出力処理の後、直後、前、または直前の何れかであってもよい。   The start time of the first random number may be immediately after, before, or immediately after the clear signal output process.

前記乱数回路は、第三の数値範囲内で更新される第三の乱数を導出可能なものであり、第三の数値範囲は、前記第二の処理によって設定されるものであり、第一の数値範囲と第三の数値範囲の設定値を少なくとも記憶可能な記憶手段を備え、第一の数値範囲と第三の数値範囲の設定は、記憶手段に記憶された設定値が格納されるアドレスの小さいものから設定されるものであってもよい。   The random number circuit is capable of deriving a third random number that is updated within a third numerical range, and the third numerical range is set by the second process, A storage means capable of storing at least the setting values of the numerical value range and the third numerical value range is provided. It may be set from a small one.

第二の乱数は遊技者の利益に関わるものであってもよく、第一の乱数は間接的に遊技者の利益に関わるものであってもよく、第三の乱数は遊技者の利益に関わらないものであってもよい。   The second random number may be related to the player's interest, the first random number may be indirectly related to the player's interest, and the third random number may be related to the player's interest. It may not be.

第三の乱数の起動時期は、第一の乱数の起動時期の後、直後、前、または直前の何れかであってもよい。   The start time of the third random number may be any one of the start time of the first random number, immediately after, before, or immediately before.

乱数回路は、複数の乱数回路を含み、複数の乱数回路はそれぞれ、ハードラッチ乱数値レジスタとソフトラッチ乱数値レジスタを有してもよい。   The random number circuit may include a plurality of random number circuits, and each of the plurality of random number circuits may include a hard latch random number value register and a soft latch random number value register.

複数の乱数回路は、16ビット乱数回路と8ビット乱数回路を含んでもよい。   The plurality of random number circuits may include a 16-bit random number circuit and an 8-bit random number circuit.

16ビット乱数回路は、ハードラッチ乱数値レジスタを複数有してもよい。   The 16-bit random number circuit may include a plurality of hard latch random number value registers.

8ビット乱数回路は、ハードラッチ乱数値レジスタを一つのみ有してもよい。   The 8-bit random number circuit may have only one hard latch random number value register.

16ビット乱数回路は、第一の数のハードラッチ乱数値レジスタを有する第一の16ビット乱数回路と、第一の数よりも小さい第二の数のハードラッチ乱数値レジスタを有する第二の16ビット乱数回路を含んでもよい。   The 16-bit random number circuit has a first 16-bit random number circuit having a first number of hard latch random number value registers and a second 16-bit random number circuit having a second number of hard latch random number value registers smaller than the first number. A bit random number circuit may be included.

16ビット乱数回路は、ソフトラッチ乱数値レジスタを一つのみ有してもよい。   The 16-bit random number circuit may have only one soft latch random value register.

8ビット乱数回路は、ソフトラッチ乱数値レジスタを一つのみ有してもよい。   The 8-bit random number circuit may have only one soft latch random value register.

16ビット乱数回路の数値範囲と8ビット乱数回路の数値範囲を設定する場合、16ビット乱数回路の数値範囲を8ビット乱数回路の数値範囲よりも先に設定してもよい。   When setting the numerical range of the 16-bit random number circuit and the numerical range of the 8-bit random number circuit, the numerical range of the 16-bit random number circuit may be set before the numerical range of the 8-bit random number circuit.

16ビット乱数回路の数値範囲と8ビット乱数回路の数値範囲を設定する場合、8ビット乱数回路の数値範囲を16ビット乱数回路の数値範囲よりも先に設定してもよい。   When setting the numerical range of the 16-bit random number circuit and the numerical range of the 8-bit random number circuit, the numerical range of the 8-bit random number circuit may be set before the numerical range of the 16-bit random number circuit.

第一の乱数の起動時期は、払出制御手段が初期設定処理を行っている間であってもよい。   The start time of the first random number may be while the payout control means is performing the initial setting process.

第一の乱数の起動時期は、払出制御手段が主制御手段からの信号を待っている間であってもよい。   The start time of the first random number may be while the payout control means is waiting for a signal from the main control means.

第一の乱数の起動時期は、副制御手段が起動処理を行っている間であってもよい。   The start time of the first random number may be during the start process of the sub control means.

第一の乱数の起動時期は、画像表示制御手段が画像表示手段に表示する表示データを展開している間であってもよい。   The start time of the first random number may be while the display data displayed on the image display means is developed by the image display control means.

乱数回路は、複数のチャネル(第一のチャネル、第一のチャネルを含む)を備え、チャネル毎に乱数の更新が可能であり、チャネル毎に乱数値を発生させることが可能であり、チャネル毎に起動することが可能であり、チャネル毎に発生させる数値範囲の設定が可能である。   The random number circuit includes a plurality of channels (including a first channel and a first channel), can update a random number for each channel, and can generate a random value for each channel. The numerical value range generated for each channel can be set.

「第一の数値範囲の第一の乱数値」は、「第一の最小値以上であり、かつ第一の最大値以下である第一の乱数値」であってもよい。   The “first random value in the first numerical range” may be “a first random value that is not less than the first minimum value and not more than the first maximum value”.

「第二の数値範囲の第二の乱数値」は、「第二の最小値以上であり、かつ第二の最大値以下である第二の乱数値」であってもよい。
<実施形態9>
The “second random value in the second numerical range” may be “a second random value that is greater than or equal to the second minimum value and less than or equal to the second maximum value”.
<Ninth Embodiment>

次に、上述の実施形態6の主制御部5300の基本回路5302が搭載されるパッケージのさらに他の変形例としての実施形態9について詳細に説明する。図349(a)は、基本回路5302が搭載されるパッケージ10100aおよびパッケージ10100bの平面図である。パッケージ10100aは、ほぼ直方体形状を有し、短手方向両側には、パッケージ10100aの長手方向に沿って複数の端子が配置されている。パッケージ10100bはパッケージ10100aと同一形状を備えている。パッケージ10100aおよびパッケージ10100bの内部にそれぞれ設けられているICは異なる機能を奏するように用いられ、組合わせることにより基本回路5302を構成できるようになっている。パッケージ10100aの平面視中央には四角柱状の凸部10101aが形成され、パッケージ10100bの平面視中央には四角柱状の凸部10101bが形成されている。   Next, a ninth embodiment will be described in detail as still another modified example of the package in which the basic circuit 5302 of the main control unit 5300 according to the sixth embodiment is mounted. FIG. 349 (a) is a plan view of the package 10100a and the package 10100b on which the basic circuit 5302 is mounted. The package 10100a has a substantially rectangular parallelepiped shape, and a plurality of terminals are arranged along the longitudinal direction of the package 10100a on both sides in the lateral direction. The package 10100b has the same shape as the package 10100a. ICs provided inside the package 10100a and the package 10100b are used so as to exhibit different functions, and the basic circuit 5302 can be configured by combining them. A square columnar convex portion 10101a is formed at the center of the package 10100a in plan view, and a square columnar convex portion 10101b is formed at the center of the package 10100b in plan view.

同図(b)は、パッケージ10100aおよびパッケージ10100bを接続部材10100cを用いて接続した形状を示す平面図である。同図(c)は、同側面図である。また、同図(d)は、同斜視図である。接続部材10100cは平板棒状の細長い直方体形状を有している。接続部材10100cの薄板部両端側には四角柱状の突起10101aまたは突起10101bを嵌め込むことができる凹部10101cがそれぞれ設けられている。接続部材10100cの短手方向の長さは、パッケージ10100aおよびパッケージ10100bの短手方向の長さより短い。   FIG. 5B is a plan view showing a shape in which the package 10100a and the package 10100b are connected using the connection member 10100c. FIG. 3C is a side view thereof. FIG. 4D is a perspective view thereof. The connecting member 10100c has an elongated rectangular parallelepiped shape that is a flat bar shape. Concave portions 10101c into which the rectangular columnar protrusions 10101a or 10101b can be fitted are provided on both ends of the thin plate portion of the connection member 10100c. The length in the short direction of the connecting member 10100c is shorter than the length in the short direction of the package 10100a and the package 10100b.

同図(b)、(c)および(d)は、接続部材10100cの2つの凹部10101cにパッケージ10100aおよびパッケージ10100bの凸部10101aおよび凸部10101bがそれぞれ嵌め込まれて、パッケージ10100aおよびパッケージ10100bの複数の端子の配設方向を長手方向に揃えて一体化した状態を示している。このように2つのパッケージ10100aおよびパッケージ10100bを接続部材10100cで接続して一体化することにより、基板上で近接させて2つのパッケージ10100aおよびパッケージ10100bを容易に配置することができる場合がある。   FIGS. 5B, 5C, and 5D show a plurality of packages 10100a and 10100b in which the projecting portions 10101a and 10101b of the package 10100a and the package 10100b are fitted in the two recesses 10101c of the connecting member 10100c, respectively. The terminal arrangement direction is aligned in the longitudinal direction and integrated. Thus, by connecting and integrating the two packages 10100a and 10100b with the connection member 10100c, the two packages 10100a and 10100b may be easily arranged close to each other on the substrate.

図350(a)は、基本回路5302が搭載されるパッケージ10120aおよびパッケージ10120bを接続配線部10120cで接続した形状を示す平面図である。同図(b)は、同側面図である。同図(c)は、同斜視図である。パッケージ10120aは、ほぼ直方体形状を有し、短手方向両側には、パッケージ10120aの長手方向に沿って複数の端子が配置されている。パッケージ10120bはパッケージ10120aと同一形状を備えている。パッケージ10120aおよびパッケージ10120bの内部にそれぞれ設けられているICは異なる機能を奏するように用いられ、組合わせることにより基本回路5302を構成できるようになっている。   FIG. 350A is a plan view showing a shape in which the package 10120a and the package 10120b on which the basic circuit 5302 is mounted are connected by the connection wiring portion 10120c. FIG. 2B is a side view of the same. FIG. 2C is a perspective view thereof. The package 10120a has a substantially rectangular parallelepiped shape, and a plurality of terminals are arranged along the longitudinal direction of the package 10120a on both sides in the lateral direction. The package 10120b has the same shape as the package 10120a. The ICs provided inside the package 10120a and the package 10120b are used to perform different functions, and the basic circuit 5302 can be configured by combining them.

パッケージ10120b内の回路は、複数の配線が内蔵された不透明の接続配線部10120cを介してパッケージ10120a内の回路と電気的に接続できるようになっている。接続配線部10120cは可撓性を備えた配線基板を有し、配線基板上で並列する複数の配線を有している。接続配線部10120cの両配線端部がパッケージ10120aおよびパッケージ10120bの短手側の側面部中央に設けられた端子部にそれぞれ接続されている。接続配線部10120cの複数の配線の延伸方向にほぼ直交し、複数の配線が連設されている方向の長さは、パッケージ10120aおよびパッケージ10120bの短手方向の長さより短い。上述の図349に示すパッケージ10100aおよびパッケージ10100bは互いに電気的に直接的に接続される構成になっていないが、図350に示すパッケージ10120aおよびパッケージ10120bは接続配線部10120cを介して互いに電気的に直接的に接続される構成になっている。パッケージ10120aおよびパッケージ10120bを組み合わせてマイコンとして用いることも可能であり、入出力端子が余らないように組み合わせることによりセキュリティ性を向上させることができる場合がある。   A circuit in the package 10120b can be electrically connected to a circuit in the package 10120a through an opaque connection wiring portion 10120c in which a plurality of wirings are incorporated. The connection wiring part 10120c has a flexible wiring board, and has a plurality of wirings arranged in parallel on the wiring board. Both wiring end portions of the connection wiring portion 10120c are connected to terminal portions provided at the center of the side surface portion on the short side of the package 10120a and the package 10120b, respectively. The length in the direction in which the plurality of wirings are arranged in a row substantially perpendicular to the extending direction of the plurality of wirings in the connection wiring portion 10120c is shorter than the length in the short direction of the package 10120a and the package 10120b. Although the package 10100a and the package 10100b illustrated in FIG. 349 are not directly connected to each other, the package 10120a and the package 10120b illustrated in FIG. 350 are electrically connected to each other via the connection wiring portion 10120c. It is configured to be directly connected. The package 10120a and the package 10120b can be combined and used as a microcomputer, and there are cases where the security can be improved by combining the package 10120a and the package 10120b so that the input / output terminals do not remain.

図351は、図349(b)、(c)、(d)に示すパッケージ10100aおよびパッケージ10100bを接続部材10100cで一体化して収容ケース10103で覆った状態を示す図である。図351(a)は平面図、(b)は側面図、(c)は斜視図である。収容ケース10103は上ケース10103aと下ケース10103bとに分離可能である。収容ケース10103は例えば不透明な絶縁性樹脂で成型されている。上ケース10103aと下ケース10103bとを組み合わせた状態で全体として収容ケース10103は薄い直方体形状を呈している。上ケース10103aと下ケース10103bとでパッケージ10100aおよびパッケージ10100b、接続部材10100cを挟み込むことにより、パッケージ10100aおよびパッケージ10100bの複数の端子だけが突出してその他の部材が収容ケース10103内に収容された一体化パッケージ10100を得ることができる。このように収容ケース10103でパッケージ10100aおよびパッケージ10100b、接続部材10100cを覆うことにより、パッケージ10100aおよびパッケージ10100b、接続部材10100cが分離してしまうことを未然に防ぐことができる場合がある。   FIG. 351 is a diagram illustrating a state in which the package 10100a and the package 10100b illustrated in FIGS. 349 (b), 349, and (d) are integrated with the connection member 10100c and covered with the housing case 10103. FIG. 351 (a) is a plan view, (b) is a side view, and (c) is a perspective view. The storage case 10103 can be separated into an upper case 10103a and a lower case 10103b. The housing case 10103 is molded from, for example, an opaque insulating resin. In a state where the upper case 10103a and the lower case 10103b are combined, the housing case 10103 as a whole has a thin rectangular parallelepiped shape. When the package 10100a, the package 10100b, and the connection member 10100c are sandwiched between the upper case 10103a and the lower case 10103b, only a plurality of terminals of the package 10100a and the package 10100b protrude and other members are accommodated in the accommodation case 10103. A package 10100 can be obtained. By covering the package 10100a, the package 10100b, and the connection member 10100c with the housing case 10103 in this manner, it may be possible to prevent the package 10100a, the package 10100b, and the connection member 10100c from separating.

図352は、図350(a)、(b)、(c)に示すパッケージ10120aおよびパッケージ10120bを接続配線部10120cで一体化して収容ケース10104で覆った状態を示す図である。図352(a)は平面図、(b)は側面図、(c)は斜視図である。収容ケース10104は上ケース10104aと下ケース10104bとに分離可能である。収容ケース10104は例えば不透明な絶縁性樹脂で形成されている。上ケース10104aと下ケース10104bとを組み合わせた状態で全体として収容ケース10103は3つの薄い直方体形状をつなぎ合わせた形状を呈している。具体的には、収容ケース10104は、パッケージ10120aの外形に倣うように形成された箱状の第一領域Aと、パッケージ10120bの外形に倣うように形成された箱状の第三領域Cと、第一領域Aと第三領域Cを接続して接続配線部10120cを収容する第二領域Bとで構成されている。上ケース10104aと下ケース10104bとでパッケージ10120a、10120bおよび接続配線部10120cを挟み込むことにより、パッケージ10120aおよびパッケージ10120bの複数の端子だけがケース10104の第一側面および第一側面に対向する第二側面から突出してその他の部材が収容ケース10104内に収容された一体化パッケージ10120を得ることができる。収容ケース10104の短手方向の長さ(第一側面と第二側面との距離)に関し、第一領域Aと第三領域Cはほぼ同じ長さであり、第二領域Bは第一領域Aより短い長さを有している。このように収容ケース10104でパッケージ10120a、10120bおよび接続配線部10120cを覆うことにより、パッケージ10120aおよびパッケージ10120b、接続配線部10120cが分離してしまうことを未然に防ぐことができる場合がある。   FIG. 352 is a diagram showing a state in which the package 10120a and the package 10120b shown in FIGS. 350 (a), (b), and (c) are integrated by the connection wiring portion 10120c and covered with the housing case 10104. FIG. 352 (a) is a plan view, (b) is a side view, and (c) is a perspective view. The storage case 10104 can be separated into an upper case 10104a and a lower case 10104b. The housing case 10104 is made of, for example, an opaque insulating resin. The storage case 10103 as a whole in a state where the upper case 10104a and the lower case 10104b are combined has a shape obtained by connecting three thin rectangular parallelepiped shapes. Specifically, the storage case 10104 includes a box-shaped first region A formed so as to follow the outer shape of the package 10120a, and a box-shaped third region C formed so as to follow the outer shape of the package 10120b. The first region A and the third region C are connected to each other and the second region B that accommodates the connection wiring portion 10120c is formed. By sandwiching the packages 10120a, 10120b and the connection wiring portion 10120c between the upper case 10104a and the lower case 10104b, only the plurality of terminals of the package 10120a and the package 10120b are opposite to the first side surface and the first side surface of the case 10104. It is possible to obtain an integrated package 10120 that protrudes from the housing and in which other members are housed in the housing case 10104. Regarding the length of the storage case 10104 in the short side direction (distance between the first side surface and the second side surface), the first region A and the third region C are substantially the same length, and the second region B is the first region A. It has a shorter length. By covering the packages 10120a, 10120b and the connection wiring portion 10120c with the housing case 10104 in this manner, it may be possible to prevent the package 10120a, the package 10120b, and the connection wiring portion 10120c from separating.

また、一体化パッケージ10120は2つのパッケージ10120aとパッケージ10120bとを接続配線部10120cで電気的に接続しているため、接続配線部10120cを介して不正な電子部品を接続する不正行為が行われてしまうことが想定される。不正な電子部品は発見を困難にするため一体化パッケージ10120の裏面側に装着される可能性が高い。このため、図351に示すような全体で直方体形状の収容ケース10103よりも、図352に示すような中央部の幅が狭い収容ケース10104の形状の方が一体化パッケージ10120の裏面側を観察し易いので好適である。第二領域Bの短手方向の幅が第一及び第三領域A、Cの短手方向の幅より狭いことにより収容ケース10104中央部にできた凹部を利用して観察することにより、一体化パッケージ10120の裏側や、一体化パッケージ10120と基板(またはICソケット)の隙間などに不正な回路を後付けするような不正行為を容易に発見することができ、不正行為を未然に防止できる場合がある。   Further, since the integrated package 10120 electrically connects the two packages 10120a and 10120b with the connection wiring portion 10120c, an illegal act of connecting an unauthorized electronic component through the connection wiring portion 10120c is performed. It is assumed that An unauthorized electronic component is likely to be mounted on the back side of the integrated package 10120 in order to make it difficult to find. For this reason, the shape of the housing case 10104 with the narrow width at the center as shown in FIG. 352 observes the back side of the integrated package 10120 as compared to the housing case 10103 having a rectangular parallelepiped shape as shown in FIG. Since it is easy, it is suitable. The second region B is integrated by observing using the concave portion formed in the central portion of the housing case 10104 because the width in the short direction of the second region B is narrower than the width in the short direction of the first and third regions A and C. In some cases, it is possible to easily find a fraudulent act such as attaching a fraudulent circuit to the back side of the package 10120 or the gap between the integrated package 10120 and the substrate (or IC socket), and prevent the fraudulent act. .

次に、以上説明した実施形態9によるパチンコ機100の特徴的構成について説明する。   Next, a characteristic configuration of the pachinko machine 100 according to the ninth embodiment described above will be described.

(1)本実施の形態によるパチンコ機100は、 (1) The pachinko machine 100 according to the present embodiment

遊技制御を行うマイクロコンピュータを備えた遊技台であって、   A gaming machine equipped with a microcomputer for controlling the game,

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記マイクロコンピュータは、DIP型のパッケージ(例えば、一体化パッケージ10120)に収容され、   The microcomputer is housed in a DIP type package (for example, an integrated package 10120),

前記パッケージは、第一領域(例えば、第一領域A)、第二領域(例えば、第二領域B)、および第三領域(例えば、第三領域C)がこの順に一体的に設けられており、   The package is integrally provided with a first region (for example, first region A), a second region (for example, second region B), and a third region (for example, third region C) in this order. ,

前記第一領域および前記第三領域の第一側面、および該第一側面に対向する第二側面の各々に複数の端子が設けられており、   A plurality of terminals are provided on each of the first side surface of the first region and the third region, and the second side surface facing the first side surface,

前記第二領域の前記第一側面および前記第二側面には端子が設けられておらず、   No terminals are provided on the first side surface and the second side surface of the second region,

前記第二領域の前記第一側面および前記第二側面間の幅は、前記第一領域の前記第一側面および前記第二側面間の幅より短いこと
を特徴とする。
The width between the first side surface and the second side surface of the second region is shorter than the width between the first side surface and the second side surface of the first region.

当該構成を備えたパチンコ機100によれば、不正な回路を後付けするような不正行為を容易に発見することができ、不正行為を未然に防止できる場合がある。
<実施形態10>
According to the pachinko machine 100 having such a configuration, it is possible to easily find a fraudulent act that retrofits a fraudulent circuit and prevent the fraudulent act in advance.
<Embodiment 10>

以下、図面を用いて、本発明の実施形態10に係るパチンコ機(遊技台)について詳細に説明する。   Hereinafter, a pachinko machine (game table) according to Embodiment 10 of the present invention will be described in detail with reference to the drawings.

図353は、特図始動口ポートの状態と乱数取得との関係を示している。同図(a)、(b)は、I/O310の特図始動口ポートに出力される特図始動口(ここでは例えば特図2始動口232とする)の球検出センサの検出信号を示している。横軸は時間の経過を示し、縦軸は信号レベルを示している。また、図中(1)〜(4)に示す時点は、主制御部300でのタイマ割込み処理の開始タイミングを示している。本例では、タイマ割込みの周期は4msであるものとする。また、図中破線の枠で示す領域は、乱数がラッチまたは取得される時期A、B、Cを示している。時期Aは、例えば16ビット乱数回路9000で生成された乱数が所定のソフトラッチ乱数値レジスタ(例えば、CH0ソフトラッチ乱数値レジスタ9040)にラッチされてタイマ割込み処理で乱数値(以下、ハード乱数(ソフトラッチ)と称する)が取得される時期を示している。時期Bは、ユーザプログラムで生成しているソフトウェア乱数(以下、ソフト乱数と称する)を取得する時期を示している。時期Cは、16ビット乱数回路9000の所定のハードラッチ乱数値レジスタ(例えば、CH0ハードラッチ乱数値レジスタ(0)9032a)に乱数値(以下、ハード乱数(ハードラッチ)と称する)がラッチされる時期を示している。これらの時期A、B、Cはそれぞれラッチや取得の時期が変動したり不定であったりするので時間的に幅を持って示している。   FIG. 353 shows the relationship between the state of the special figure start port and the acquisition of random numbers. (A), (b) shows the detection signal of the ball detection sensor of the special figure start port (here, for example, special figure 2 start port 232) output to the special figure start port of I / O 310. ing. The horizontal axis indicates the passage of time, and the vertical axis indicates the signal level. Moreover, the time points shown in (1) to (4) in the figure indicate the start timing of the timer interrupt process in the main control unit 300. In this example, the timer interrupt cycle is assumed to be 4 ms. In addition, regions indicated by broken lines in the figure indicate times A, B, and C at which random numbers are latched or acquired. At time A, for example, a random number generated by a 16-bit random number circuit 9000 is latched in a predetermined soft latch random number value register (for example, CH0 soft latch random value register 9040), and a random number value (hereinafter referred to as a hard random number (hereinafter referred to as a hard random number) (Referred to as "soft latch"). Time B indicates a time when a software random number generated by the user program (hereinafter referred to as a soft random number) is acquired. At time C, a random value (hereinafter referred to as a hard random number (hard latch)) is latched in a predetermined hard latch random value register (for example, CH0 hard latch random value register (0) 9032a) of the 16-bit random number circuit 9000. Indicates the time. These timings A, B, and C are shown with a time width because the timing of latching and acquisition fluctuates or is indefinite.

図353(a)に示す例では、時点(1)での特図始動口ポートの状態はオフ、続く時点(2)での特図始動口ポートの状態はオン、続く時点(3)での特図始動口ポートの状態もオンであるため(以下、オフ−オン−オンのように略称する場合がある)、入力ポート状態更新処理(ステップS205)において、過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致すると判定される。これにより、時点(3)で開始されたタイマ割込み処理の入賞受付処理(ステップS217)において、特図2始動口232への入賞があったと判定される。主制御部300は、時点(3)を含む時期Aで16ビット乱数回路9000の所定のソフトラッチ乱数値レジスタからハード乱数(ソフトラッチ)を取得するとともに、時点(3)を含む時期Bでソフト乱数を取得する。次いで、ハード乱数(ソフトラッチ)にソフト乱数を加算する等の乱数の加工処理を実行する。加工された乱数値は当否判定用乱数として特図2関連抽選処理(ステップS229)で使用される。   In the example shown in FIG. 353 (a), the state of the special figure start port at the time point (1) is off, the state of the special figure start port at the subsequent time point (2) is on, and the state at the subsequent time point (3). Since the state of the special figure start port is also on (hereinafter, sometimes abbreviated as “off-on-on”), in the input port state update process (step S205), the presence / absence of detection signals for the past three times is checked. It is determined that the information matches the winning determination pattern information. As a result, it is determined that there has been a prize at the special figure 2 starting port 232 in the prize acceptance process (step S217) of the timer interrupt process started at the time (3). The main control unit 300 acquires a hard random number (soft latch) from a predetermined soft latch random value register of the 16-bit random number circuit 9000 at time A including time (3), and softens at time B including time (3). Get a random number. Next, random number processing such as adding a soft random number to a hard random number (soft latch) is executed. The processed random number value is used in the special drawing 2 related lottery process (step S229) as a random number for determination of success / failure.

図353(a)の右方に示すテーブルは乱数取得タイミングをまとめたものであり、左から順に、時期、取得タイミング、乱数の種類を示している。図353(a)に示す例では、取得タイミングが時点(3)を含む時期Aでハード乱数(ソフトラッチ)が取得され、取得タイミングが時点(3)を含む時期Bでソフト乱数が取得される。なお、厳密には、入賞受付処理(ステップS217)は時点(3)から所定期間後になる。また、入賞受付処理の前に種々の判定処理があるのでハード乱数(ソフトラッチ)のラッチ時期やソフト乱数の取得時期をランダムに変化させることができる場合がある。また、乱数取得は時期(4)で実行してもよい。この場合は、入賞判定パターン情報として、オン−オン−オフ(あるいは、オン−オン−オン−オフ)の情報を用い、時期(4)で開始されたタイマ割込み処理の入力ポート状態更新処理(ステップS205)で、過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致すると判定される。また、時点(4)で開始されたタイマ割込み処理の入賞受付処理(ステップS217)で特図2始動口232への入賞があったと判定されて乱数取得が実行される。こうすることにより、乱数取得の時期をさらに変動させることができる場合がある。また、入賞判定から乱数取得までの期間を乱数列が一巡する周期よりも確実に長くすることができる。なお、過去2回分の検出信号の有無の情報として例えばオフ−オンを入賞判定パターン情報とする場合には、時点(1)での特図始動口ポートの状態はオフ、続く時点(2)での特図始動口ポートの状態がオンなので時期(2)で開始されたタイマ割込み処理で乱数取得を実行することができる。   The table shown on the right side of FIG. 353 (a) summarizes the random number acquisition timing, and shows the timing, the acquisition timing, and the type of random number in order from the left. In the example shown in FIG. 353 (a), a hard random number (soft latch) is acquired at time A when the acquisition timing includes the time point (3), and a soft random number is acquired at time B when the acquisition timing includes the time point (3). . Strictly speaking, the winning acceptance process (step S217) is after a predetermined period from the time point (3). In addition, since there are various determination processes before the winning acceptance process, the hard random number (soft latch) latch time and the soft random number acquisition time may be changed randomly. The random number acquisition may be executed at time (4). In this case, on-on-off (or on-on-on-off) information is used as the winning determination pattern information, and the input port state update process (step step) of the timer interrupt process started at time (4) In S205), it is determined that the information on the presence / absence of detection signals for the past three matches with the winning determination pattern information. In addition, it is determined in the winning acceptance process (step S217) of the timer interrupt process started at time (4) that the special figure 2 starting port 232 has been won, and random number acquisition is executed. By doing so, there are cases where the timing of random number acquisition can be further varied. Further, the period from winning determination to random number acquisition can be surely made longer than the cycle of the random number sequence. Note that, for example, when off-on is used as the winning determination pattern information as information on the presence / absence of detection signals for the past two times, the state of the special drawing start port at the time point (1) is off, and at the subsequent time point (2). Since the state of the special figure start port of is ON, random number acquisition can be executed by the timer interrupt processing started at the time (2).

次に、図353(b)に示す例について説明する。例えば、図341に示す乱数回路9000は、外部端子入力による乱数取込みができるようになっている。16ビット乱数回路9000では予め入力ポート制御レジスタで設定した期間以上のアクティブ信号が入力されると所定のハードラッチ乱数値レジスタに乱数値がラッチされるようになっている。このため、特図始動口ポートの状態を示す信号を乱数回路9000の外部端子入力に入力することにより、ハード乱数(ハードラッチ)を取得することができる。   Next, the example shown in FIG. 353 (b) will be described. For example, the random number circuit 9000 shown in FIG. 341 can receive a random number by inputting an external terminal. In the 16-bit random number circuit 9000, a random number value is latched in a predetermined hard latch random number value register when an active signal longer than the period set in the input port control register is input. For this reason, a hard random number (hard latch) can be acquired by inputting a signal indicating the state of the special figure start port to the external terminal input of the random number circuit 9000.

図353(b)に示すように時点(1)と時点(2)の間で特図始動口ポートの状態がオフからオンに変化すると、時期Cでハード乱数(ハードラッチ)がラッチされる。より具体的には、特図始動口ポートの状態がオフからオンに変化する波形の立ち上がりエッジから数μs後にハードラッチが実行される。つまり、球検出センサを通過してから所定期間後にハードラッチが行われる。   As shown in FIG. 353 (b), when the state of the special view start port changes from OFF to ON between time (1) and time (2), a hard random number (hard latch) is latched at time C. More specifically, the hard latch is executed several μs after the rising edge of the waveform in which the state of the special figure start port changes from OFF to ON. That is, hard latching is performed after a predetermined period after passing through the sphere detection sensor.

次いで、時点(1)での特図始動口ポートの状態はオフ、続く時点(2)での特図始動口ポートの状態はオン、続く時点(3)での特図始動口ポートの状態はオンであるため、時点(3)での入力ポート状態更新処理(ステップS205)において、過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致すると判定される。これにより、時点(3)で開始されたタイマ割込み処理の入賞受付処理(ステップS217)において、特図2始動口232への入賞があったと判定される。主制御部300は、時点(3)を含む時期Aで16ビット乱数回路9000の所定のソフトラッチ乱数値レジスタからハード乱数(ソフトラッチ)を取得するとともに、予め時期Cでラッチされていたハード乱数(ハードラッチ)を取得する。次いで、ハード乱数(ソフトラッチ)にハード乱数(ハードラッチ)を加算する等の乱数の加工処理を実行する。加工された乱数値は当否判定用乱数として特図2関連抽選処理(ステップS229)で使用される。   Next, the state of the special drawing start port at the time (1) is off, the state of the special drawing start port at the subsequent time (2) is on, and the state of the special drawing start port at the subsequent time (3) is Since it is ON, in the input port state update process (step S205) at the time point (3), it is determined that the information on the presence / absence of detection signals for the past three matches the winning determination pattern information. As a result, it is determined that there has been a prize at the special figure 2 starting port 232 in the prize acceptance process (step S217) of the timer interrupt process started at the time (3). The main control unit 300 acquires a hard random number (soft latch) from a predetermined soft latch random value register of the 16-bit random number circuit 9000 at time A including time (3), and hard random numbers previously latched at time C Get (hard latch). Next, random number processing such as adding a hard random number (hard latch) to the hard random number (soft latch) is executed. The processed random number value is used in the special drawing 2 related lottery process (step S229) as a random number for determination of success / failure.

図353(b)の右方に示すテーブルは乱数取得タイミングをまとめたものであり、左から順に、時期、取得タイミング、乱数の種類を示している。図353(b)に示す例では、取得タイミングが時点(3)を含む時期Aでハード乱数(ソフトラッチ)および時期Cでラッチされたハード乱数(ハードラッチ)が取得される。なお、厳密には、入賞受付処理(ステップS217)は時点(3)から所定期間後になる。また、ハードラッチは入賞のタイミングに依存しており、主制御部300のタイマ割込み処理とは無関係に発生する。つまりハード乱数(ハードラッチ)をラッチするタイミングは偶発的なものなので、ユーザプログラムの開始位置からラッチの時期を特定することはできない場合がある。また、入賞受付処理の前に種々の判定処理があるのでハード乱数(ソフトラッチ)のラッチ時期をランダムに変化させることができる場合がある。また、上述のように乱数取得を時期(4)で開始されるタイマ割込み処理で実行してもよい。こうすることにより、乱数取得の時期をさらに変動させることができる場合がある。また、入賞判定から乱数取得までの期間を乱数列が一巡する周期よりも確実に長くすることができる。なお、上述のように入賞判定パターン情報を変更して、時点(1)での特図始動口ポートの状態はオフ、続く時点(2)での特図始動口ポートの状態はオンで入賞と判定して時期(2)で開始されるタイマ割込み処理で乱数取得を実行することもできる。なお、過去複数回分の検出信号の有無の情報が入賞判定パターン情報と一致しないと判定された場合は、ハードラッチに係るハード乱数は取込まない。   The table shown on the right side of FIG. 353 (b) summarizes the random number acquisition timing, and shows the timing, the acquisition timing, and the type of random number in order from the left. In the example shown in FIG. 353 (b), a hard random number (soft latch) and a hard random number (hard latch) latched at time C are acquired at time A when the acquisition timing includes time (3). Strictly speaking, the winning acceptance process (step S217) is after a predetermined period from the time point (3). Further, the hard latch depends on the winning timing and is generated regardless of the timer interrupt processing of the main control unit 300. That is, since the timing for latching a hard random number (hard latch) is accidental, it may not be possible to specify the latch timing from the start position of the user program. In addition, since there are various determination processes before the winning acceptance process, the latch time of the hard random number (soft latch) may be changed randomly. Further, as described above, the random number acquisition may be executed by the timer interruption process started at the time (4). By doing so, there are cases where the timing of random number acquisition can be further varied. Further, the period from winning determination to random number acquisition can be surely made longer than the cycle of the random number sequence. As described above, the winning determination pattern information is changed, and the state of the special figure start port at the time point (1) is off, and the state of the special figure start port at the next time point (2) is on and the prize is received. It is also possible to execute random number acquisition by timer interruption processing that is started at time (2) after determination. If it is determined that the information on the presence / absence of detection signals for a plurality of past times does not match the winning determination pattern information, the hard random number related to the hard latch is not captured.

図354は、図353(b)に示すものと同様だが、ハード乱数のハードラッチのタイミングがずれた場合について示している。ノイズフィルタ3185の設定や、特図2始動口232への入球のタイミングによっては、ハードラッチのタイミングは特図始動口ポートの波形の立ち上りエッジおよびタイマ割込み処理の開始時点(2)より後の時刻tになる場合がある。つまり、タイマ割込みタイミングが特図始動口ポートの波形の立ち上りエッジとハードラッチのタイミング(時刻t)とで挟まれている。   FIG. 354 is similar to that shown in FIG. 353 (b), but shows a case where the hard latch timing of the hard random number is shifted. Depending on the setting of the noise filter 3185 and the timing of entering the special figure 2 starting port 232, the timing of the hard latch is after the rising edge of the waveform of the special figure starting port and the start time (2) of the timer interrupt process. There may be a time t. That is, the timer interrupt timing is sandwiched between the rising edge of the waveform of the special figure start port and the hard latch timing (time t).

また、図354は、時点(4)で開始されるタイマ割込み処理でハード乱数をソフトラッチする場合を示している。16ビット乱数値(0〜65535)が一巡する周期は、例えば内部システムクロック(例えば、10MHz)を用いた場合、約6.6msとなる。一方、時点(2)近傍の時刻tでハード乱数(ハードラッチ)がラッチされ、それよりほぼ2割込み分の時間経過後の時点(4)以降でハード乱数(ソフトラッチ)がラッチされるので、ハードラッチとソフトラッチの間隔を最短でも2割込み分(約8ms)程度あけることができる。このため、ハードラッチによるハード乱数のラッチ後に確実に乱数列を一巡させた後にソフトラッチによるハード乱数をラッチすることができる。つまり、乱数取得の時期のランダム性を増大させることができる。時点(4)で開始されるタイマ割込み処理で入賞判定処理を可能にするには、入賞判定パターン情報を前々回がオン、前回がオン、今回がオフとすればよい。こうすることにより、時点(2)での特図始動口ポートの状態はオン、続く時点(3)での特図始動口ポートの状態はオン、続く時点(4)での特図始動口ポートの状態はオフであるため、時点(4)で開始されるタイマ割込み処理の入力ポート状態更新処理(ステップS205)において、過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致すると判定される。16ビット乱数回路9000に最大値設定をした場合には、確実に乱数列を一巡以上させることができるようになる場合がある。また、確実に乱数列を一巡させたい場合や、2割込みでソフトラッチをしたい場合等では、最大値を低く設定することにより実現できる。   FIG. 354 shows a case where the hard random number is soft latched by the timer interrupt process started at time (4). For example, when the internal system clock (for example, 10 MHz) is used, the cycle for which the 16-bit random number value (0 to 65535) makes a round is approximately 6.6 ms. On the other hand, the hard random number (hard latch) is latched at time t near the time point (2), and the hard random number (soft latch) is latched after time point (4) after the elapse of about two interrupts. The interval between the hard latch and the soft latch can be as short as 2 interrupts (about 8 ms). For this reason, it is possible to latch the hard random number by the soft latch after surely making a round of the random number sequence after latching the hard random number by the hard latch. That is, the randomness at the time of random number acquisition can be increased. In order to enable the winning determination process by the timer interruption process started at the time (4), the winning determination pattern information may be turned on the previous time, turned on the previous time, and turned off this time. By doing so, the state of the special figure start port at the time point (2) is on, the state of the special figure start port at the next time point (3) is on, and the special figure start port at the subsequent time point (4) In the input port state update process (step S205) of the timer interrupt process started at time (4), it is determined that the information on the presence / absence of detection signals for the past three matches the winning determination pattern information. Is done. When the maximum value is set in the 16-bit random number circuit 9000, there are cases where the random number sequence can be surely made one or more rounds. Further, when it is desired to make a round of the random number sequence, or when soft latching is to be performed with two interrupts, it can be realized by setting the maximum value low.

図353および図354に示した乱数取込みにおけるソフト乱数の取込みは、ソフトラッチに代えて実施形態7で図317等を用いて説明した第三の命令を用いた乱数値直接取込みを用いてもよい。また、上記実施形態では、ハードラッチの設定において、ラッチした乱数値をリードしなくても次のラッチを受け付けるようにしているが、ラッチした乱数値をリードしないと次のラッチを受け付ない設定にしてももちろんよい。この場合には、過去3回分の検出信号の有無の情報が入賞判定パターン情報と一致しないと判定された場合であってもハードラッチに係るハード乱数を一旦取込み、次いで当該乱数を破棄するようにすればよい。   In the random number fetching shown in FIGS. 353 and 354, the soft random number fetching may use direct random number fetching using the third instruction described in the seventh embodiment with reference to FIG. 317 or the like instead of the soft latch. . Further, in the above embodiment, in setting the hard latch, the next latch is accepted without reading the latched random value. However, if the latched random value is not read, the next latch is not accepted. But of course. In this case, even if it is determined that the information on the presence / absence of the detection signals for the past three times does not match the winning determination pattern information, the hard random number related to the hard latch is once fetched and then the random number is discarded. do it.

また、上記実施形態では、ハードラッチとソフトラッチの組合せによる乱数値を用いるものとして当否判定用乱数を例に挙げたが、例えば、図柄決定用乱数にはハードラッチとソフトラッチの組合せによる乱数値は使わないようにしてもよい。   In the above-described embodiment, the random number for determining whether or not to use is determined as an example of using a random value based on a combination of a hard latch and a soft latch. For example, a random number for determining a symbol is a random value based on a combination of a hard latch and a soft latch. May not be used.

また、上記実施形態では、16ビット乱数回路9000に最大値設定をしない場合で説明したが、最大値設定をしてもよい。また、8ビット乱数回路10000に対し上記と同様にして8ビット乱数を取得するようにしてもよい。さらに、16ビット乱数回路9000と8ビット乱数回路10000を組合わせて上記と同様にして乱数を取得するようにしてもよい。またさらに、ハードラッチとソフトラッチの組合せにさらにソフト乱数を組合わせたり、他の数値を組合わせたりしてももちろんよい。また、ハードラッチと別のハードラッチとを組合せてもよい。また、上記実施形態では、図341に示す16ビット乱数回路9000を用いた乱数値取得を例に挙げたが、図355に示すカウンタ回路312を用いた乱数値取得でハードラッチやソフトラッチを行わせるようにしてもよい。   In the above embodiment, the maximum value is not set in the 16-bit random number circuit 9000. However, the maximum value may be set. Further, an 8-bit random number may be acquired from the 8-bit random number circuit 10000 in the same manner as described above. Furthermore, a 16-bit random number circuit 9000 and an 8-bit random number circuit 10000 may be combined to acquire a random number in the same manner as described above. Furthermore, a combination of a hard latch and a soft latch may be combined with a soft random number, or another numerical value may be combined. Further, a hard latch and another hard latch may be combined. In the above-described embodiment, the random value acquisition using the 16-bit random number circuit 9000 shown in FIG. 341 is taken as an example. However, the hard latch and the soft latch are performed by the random value acquisition using the counter circuit 312 shown in FIG. You may make it let.

また、遊技球が球検出センサを通過するタイミングとハードラッチのタイミングが、別々の割込み周期になる場合がある。例えば上述のように1回目の割込みによる4ms間に遊技球が球検出センサを通過し、次の割込みによる4ms間にハードラッチが行われる場合がある。なお、ハードラッチによりハードラッチ乱数値レジスタに乱数値がラッチされるとラッチフラグレジスタに「1」がセットされる。このとき、すでに開始されている割込み処理での例えば特図関連抽選処理等でハード乱数(ハードラッチ)をCPUコアレジスタやRAMへ転送する場合があるが、次の割込み処理での特図関連抽選処理等でハード乱数(ハードラッチ)を転送する場合ももちろんある。ハード乱数(ハードラッチ)が取得されるとラッチフラグレジスタに「0」がセットされる。ハード乱数(ソフトラッチ)は、割込み処理での入力ポート状態更新処理等で実行され、ソフトラッチ選択レジスタに「1」がセットされると、所定のソフトラッチ乱数値レジスタに乱数値がラッチされるとともにソフトラッチフラグレジスタに「1」がセットされる。次いで、特図関連抽選処理等で、ハード乱数値(ソフトラッチ)がCPUコアレジスタやRAMの所定領域に書き込まれる。また、ソフトラッチフラグレジスタが「0」にセットされる(クリアされる)。   Also, the timing at which the game ball passes the ball detection sensor and the hard latch timing may be different interrupt cycles. For example, as described above, there is a case where the game ball passes the ball detection sensor in 4 ms due to the first interruption and a hard latch is performed in 4 ms due to the next interruption. When a random value is latched in the hard latch random value register by the hard latch, “1” is set in the latch flag register. At this time, for example, a hard random number (hard latch) may be transferred to the CPU core register or RAM in the special drawing related lottery processing in the interrupt processing that has already been started. Of course, a hard random number (hard latch) may be transferred by processing or the like. When a hard random number (hard latch) is acquired, “0” is set in the latch flag register. The hard random number (soft latch) is executed by an input port state update process or the like in the interrupt process. When “1” is set in the soft latch selection register, the random value is latched in a predetermined soft latch random value register. At the same time, “1” is set in the soft latch flag register. Next, a hard random value (soft latch) is written in a predetermined area of the CPU core register or RAM by a special drawing related lottery process or the like. Further, the soft latch flag register is set to “0” (cleared).

なお、特図関連抽選処理において、取得した乱数値に基づいて特図停止図柄を決定し、例えば、大当たり遊技のラウンド数を決定したり、大当たり遊技後の遊技状態を確変状態や通常状態にするかを決定しているが、それらの決定において別々の乱数を用いてもよい。また、種々の組合せが可能であり、例えば、特図停止図柄が決まると遊技状態だけは決まるようにしてもよいし、特図停止図柄が決まるとラウンド数だけは決まるようにしてもよい。   In the special drawing related lottery process, the special figure stop symbol is determined based on the acquired random number value, for example, the number of rounds of the jackpot game is determined, or the game state after the jackpot game is changed to a probable state or a normal state. However, different random numbers may be used in the determination. Various combinations are possible. For example, when the special figure stop symbol is determined, only the gaming state may be determined, or when the special symbol stop symbol is determined, only the number of rounds may be determined.

次に、以上説明した実施形態10によるパチンコ機100の特徴的構成について説明する。   Next, a characteristic configuration of the pachinko machine 100 according to the tenth embodiment described above will be described.

(1)本実施の形態によるパチンコ機100は、 (1) The pachinko machine 100 according to the present embodiment

所定の数値範囲内で更新される乱数を導出する乱数生成手段(例えば、16ビット乱数回路9000、8ビット乱数回路10000)と、   Random number generating means (for example, a 16-bit random number circuit 9000, an 8-bit random number circuit 10000) for deriving a random number to be updated within a predetermined numerical range;

複数の遊技制御処理のそれぞれを、メイン制御(例えば、主制御部メイン処理)および割込み周期ごとに行われる割込み制御(例えば、主制御部タイマ割り込み処理)のうちの、少なくともいずれかの制御において実行可能な遊技制御手段(例えば、主制御部300)と
を備えた遊技台であって、
前記乱数生成手段は、
Each of the plurality of game control processes is executed in at least one of main control (for example, main control unit main process) and interrupt control (for example, main control unit timer interrupt process) performed for each interrupt cycle. A game table equipped with possible game control means (for example, main control unit 300),
The random number generation means includes

外部端子入力に入力された信号に基づいてラッチされた第一の乱数(例えば、ハード乱数(ハードラッチ))を生成可能であり、前記遊技制御手段の制御に基づいて第二の乱数(例えば、ハード乱数(ソフトラッチ)や、乱数値直接取込みにより取得されるハード乱数)を生成可能であり、
前記遊技制御手段は、
A first random number latched based on a signal input to the external terminal input (for example, a hard random number (hard latch)) can be generated, and a second random number (for example, based on the control of the game control means) Hard random numbers (soft latches) and hard random numbers obtained by directly fetching random numbers can be generated.
The game control means includes

前記第一の乱数がラッチされるタイミングと異なるタイミングで前記第二のハード乱数を取得可能であり、   The second hard random number can be obtained at a timing different from the timing at which the first random number is latched,

取得した前記第一の乱数と前記第二の乱数とを組み合わせて所定の乱数を生成すること
を特徴とする。
A predetermined random number is generated by combining the acquired first random number and the second random number.

従来はユーザプログラムでチャタリングの除去を制御できるソフトラッチで取得した乱数を使っていた。ラッチしたハード乱数を無駄にしないため、所定の入賞判定パターン情報を利用してハード乱数のラッチが行えるのが望ましい。しかしながら、回路内部にラッチ信号が出力されるので、このラッチ信号を手がかりに不正者に乱数の解析や当否判定のタイミングが把握されてしまうおそれがある。そこで、ハード乱数のラッチ後に、ユーザプログラムで更新するソフト乱数を組み合わせて使うことにより、少なくとも乱数の解析を困難にしていた。しかしながら、ソフト乱数を取得するタイミングはハード乱数のラッチのタイミングに近いのと、ソフト乱数の乱数更新周期が長いので解読されやすいという課題を有している。ハード乱数のラッチ時期とソフト乱数の取得時期とが近いのが問題であれば、ソフト乱数を取るタイミングを、例えば特図始動口ポートに入力される信号の立ち上がりエッジに同期させればよいとも考えられる。しかしながら、ソフト乱数の更新周期が長いので解読されやすいという課題は相変わらず残る。   Conventionally, a random number acquired by a soft latch that can control chattering removal by a user program has been used. In order not to waste the latched hard random number, it is desirable that the hard random number can be latched using predetermined winning determination pattern information. However, since a latch signal is output inside the circuit, there is a possibility that an unauthorized person can grasp the timing of analyzing a random number or determining whether or not it is correct by using this latch signal. Thus, after latching hard random numbers, it is difficult to analyze random numbers at least by using a combination of soft random numbers updated by the user program. However, there is a problem that the timing for obtaining the soft random number is close to the timing for latching the hard random number and that the random number update cycle of the soft random number is long, so that it is easy to decipher. If it is a problem that the hard random number latch time is close to the soft random number acquisition time, the timing for obtaining the soft random number may be synchronized with, for example, the rising edge of the signal input to the special figure start port. It is done. However, since the soft random number update period is long, the problem remains that it is easy to decipher.

そこで、本実施形態では、ソフト乱数を組み合わせるのではなく、ハードラッチのハード乱数を取得するようにして、別の方法で取得したハード乱数を組み合わせて例えば当否判定用の乱数を生成するようにする。上記パチンコ機によれば、ハードラッチによるハード乱数とは異なるハード乱数を、ハードラッチのタイミングとは異なるタイミングで取得し、取得されたハード乱数(ハードラッチ)とハードラッチ以外で取得したハード乱数を組み合わせるようにした。これにより、ソフト乱数ではタイマ割込み基準で処理の実行タイミングが把握されるおそれがあったのに対し、ハードラッチでは偶発的でラッチのタイミングが不定なので特定され難くすることができる場合がある。
(2)上記パチンコ機100であって、
Therefore, in the present embodiment, instead of combining soft random numbers, a hard random number for hard latch is acquired, and a hard random number acquired by another method is combined to generate, for example, a random number for determination of success / failure. . According to the above pachinko machine, a hard random number that is different from the hard random number by the hard latch is acquired at a timing different from the timing of the hard latch, and the acquired hard random number (hard latch) and the hard random number acquired by other than the hard latch are obtained. I tried to combine them. As a result, there is a possibility that the execution timing of the process may be grasped on the basis of the timer interrupt in the soft random number, but it may be difficult to identify the hard latch because it is accidental and the latch timing is indefinite.
(2) The pachinko machine 100,

前記遊技制御手段を少なくとも有するマイクロプロセッサを備え、
前記マイクロプロセッサは、
A microprocessor having at least the game control means;
The microprocessor is

少なくとも、セキュリティチェックを行うことが可能なものであり、該セキュリティチェックの後に前記遊技制御が行われるユーザモードへ移行するまでの時間をランダムに変動させるランダム延長処理が少なくとも行われる、セキュリティモードに滞在した後、該ユーザモードへ移行するものであることを特徴とする。   Stay in security mode, at least a security check is possible, and at least a random extension process that randomly changes the time until the transition to the user mode in which the game control is performed after the security check is performed Then, the mode is shifted to the user mode.

当該構成を備えたパチンコ機100によれば、ユーザモードに移行する前にランダム延長処理を実行するので、遊技制御プログラムの実行開始タイミングをずらすことが可能なため、遊技制御処理の特定の処理(例えばソフト乱数の更新処理、初期値更新処理等)の実行時期を判別困難にでき、これらの特定の処理の狙い撃ちを防止することができる場合がある。   According to the pachinko machine 100 having such a configuration, since the random extension process is executed before shifting to the user mode, it is possible to shift the execution start timing of the game control program. For example, it may be difficult to determine the execution time of a soft random number update process, an initial value update process, and the like, and it may be possible to prevent the aim of these specific processes.

(3)上記パチンコ機100であって、前記ランダム延長処理の開始前に、前記マイクロプロセッサの所定の出力端子から所定の信号が出力されることを特徴とする。 (3) The pachinko machine 100 is characterized in that a predetermined signal is output from a predetermined output terminal of the microprocessor before the random extension process is started.

(4)上記パチンコ機100であって、前記所定の端子は、前記マイクロプロセッサ以外の外部機器に対してリセット信号を出力可能なリセット端子であることを特徴とする。 (4) In the pachinko machine 100, the predetermined terminal is a reset terminal capable of outputting a reset signal to an external device other than the microprocessor.

当該構成を備えたパチンコ機100によれば、ランダム延長処理の前に外部機器に対してリセット信号を出力し、ランダム延長処理の後に遊技制御プログラムの実行を開始することができるので、遊技制御処理の特定の処理(例えばソフト乱数の更新処理、初期値更新処理等)の実行時期を判別困難にでき、これらの特定の処理の狙い撃ちを防止することができる場合がある。   According to the pachinko machine 100 having this configuration, a reset signal can be output to the external device before the random extension process, and the execution of the game control program can be started after the random extension process. In some cases, it is difficult to determine the execution timing of the specific processing (for example, soft random number update processing, initial value update processing, etc.), and the aim of these specific processing can be prevented.

(5)上記パチンコ機100であって、前記遊技制御手段から送出されるコマンドに基づいて演出制御を行う副制御手段を有することを特徴とする。
<実施形態8の変形例>
(5) The pachinko machine 100 is characterized by having sub-control means for performing effect control based on a command sent from the game control means.
<Modification of Embodiment 8>

次に、図355を用いて、実施形態8の変形例に係るパチンコ機(遊技台)に用いられるカウンタ回路312について説明する。図355は、カウンタ回路312を示すブロック図である。   Next, a counter circuit 312 used in a pachinko machine (game table) according to a modification of the eighth embodiment will be described with reference to FIG. FIG. 355 is a block diagram showing the counter circuit 312.

カウンタ回路312は、8ビットのプログラマブルカウンタを4チャネル内蔵している。すなわち、図355に示すように、4つのカウンタ回路(カウンタ回路0〜3)が用意されている。各カウンタ回路は、アップカウンタ回路であって、それぞれ独立した動作モードの設定が可能である。これら4つのカウンタ回路の構成はいずれも同じであるため、ここではカウンタ回路0を用いて説明する。   The counter circuit 312 has four channels of 8-bit programmable counters. That is, as shown in FIG. 355, four counter circuits (counter circuits 0 to 3) are prepared. Each counter circuit is an up-counter circuit, and an independent operation mode can be set. Since these four counter circuits have the same configuration, the counter circuit 0 will be described here.

カウンタ回路は、制御レジスタ3121、8ビットカウンタ3122、カウンタ設定レジスタ3123、およびカウンタレジスタ3124を有する。制御レジスタ3121は、内部バスを流れる各種の信号を取得可能であり、図355には、制御レジスタ3121が、8種類の信号を取得可能であることが示されている。これら8種類の信号は、システムクロック信号(SCLK)、図203に示すタイマ回路0〜2それぞれからのタイムアウト信号、CPUコアのメモリリクエスト信号(XMREQ信号)、CPUコアのライト信号(XWR信号)、CPUコアのIOリクエスト信号(XIORQ信号)、およびCPUコアの割込み要求応答信号(マスカブル割込みアクノリッジサイクル;XINTACK信号)である。制御レジスタ3121は、8ビットカウンタ3122を動作させるためのクロック源を選択する8ビットのレジスタである。すなわち、8本の信号線から入力されるいずれの信号をクロック源にするかを選択するものである。また、制御レジスタ3121は、8ビットカウンタ3122の許可や禁止を設定するレジスタでもある。   The counter circuit includes a control register 3121, an 8-bit counter 3122, a counter setting register 3123, and a counter register 3124. The control register 3121 can acquire various signals flowing through the internal bus, and FIG. 355 shows that the control register 3121 can acquire eight types of signals. These eight kinds of signals are a system clock signal (SCLK), a timeout signal from each of the timer circuits 0 to 2 shown in FIG. 203, a CPU core memory request signal (XMREQ signal), a CPU core write signal (XWR signal), CPU core IO request signal (XIORQ signal) and CPU core interrupt request response signal (maskable interrupt acknowledge cycle; XINTACK signal). The control register 3121 is an 8-bit register that selects a clock source for operating the 8-bit counter 3122. In other words, it selects which signal input from the eight signal lines is used as the clock source. The control register 3121 is also a register for setting permission / prohibition of the 8-bit counter 3122.

また、カウンタ回路312は、更新源としてXWR信号、XMREQ信号、XIORQ信号、タイマ回路nのタイムアウト信号のうちの少なくとも2以上の更新源を設定可能であってもよい。換言すると、カウンタ回路は、複数の更新源のうちの第一の更新源を除く第二の更新源と第三の更新源を共に設定可能であってもよい。   Further, the counter circuit 312 may be capable of setting at least two update sources among the XWR signal, the XMREQ signal, the XIORQ signal, and the timeout signal of the timer circuit n as update sources. In other words, the counter circuit may be capable of setting both the second update source and the third update source excluding the first update source among the plurality of update sources.

制御レジスタ3121の詳細な構成については、図205に示す例と同じであるので説明を省略する。   The detailed configuration of the control register 3121 is the same as the example shown in FIG.

また、カウンタ設定レジスタ3123は、アップカウンタ回路である8ビットカウンタ3122のカウント値(最大値)を設定する8ビットのレジスタである。本実施形態では、0〜255のカウント値を設定することができ、「255」を書き込んだ場合には、カウント値として最大値の255が設定される。この場合には0〜255が所定の数値範囲になる。なお、設定値に「00」を設定した場合には、8ビットカウンタの動作を停止するようにしてもよい。なお、各カウンタ回路は、ダウンカウンタ回路であってもよく、ダウンカウンタ回路である場合には、カウンタ設定レジスタ3123は、最小値を設定するレジスタになる。   The counter setting register 3123 is an 8-bit register that sets the count value (maximum value) of the 8-bit counter 3122 that is an up-counter circuit. In this embodiment, a count value from 0 to 255 can be set. When “255” is written, the maximum value 255 is set as the count value. In this case, 0 to 255 is a predetermined numerical range. When “00” is set as the set value, the operation of the 8-bit counter may be stopped. Each counter circuit may be a down counter circuit. In the case of a down counter circuit, the counter setting register 3123 is a register for setting a minimum value.

カウンタレジスタ3124は、CPUレジスタリード信号の入力タイミングに合わせて8ビットカウンタ3122の値を読み出すためのレジスタである。   The counter register 3124 is a register for reading the value of the 8-bit counter 3122 in accordance with the input timing of the CPU register read signal.

以上説明した、各レジスタの設定値は、内蔵ROM306のプログラムデータエリアに記憶されている。プログラム管理エリアに記憶されている各設定値は、図343に示す主制御部メイン処理における初期設定2(ステップS15105)において、プログラムデータエリアから呼び出され、各レジスタに設定されるか、あるいは主制御部メイン処理や図345に示す主制御部割込処理において呼び出され、各レジスタに設定される。カウンタ設定レジスタ3123にカウント値が書き込まれると、8ビットカウンタ3122の値が「00H」にクリアされ、その後、制御レジスタ3121の4ビット目に「1」が書き込まれると、選択されたクロック源で8ビットカウンタ3122のアップカウントが開始される。   The setting values of each register described above are stored in the program data area of the built-in ROM 306. Each set value stored in the program management area is called from the program data area and set in each register in the initial setting 2 (step S15105) in the main process of the main control unit shown in FIG. 343, or is set in the main control. This is called in the main part processing and main control unit interruption processing shown in FIG. 345, and is set in each register. When the count value is written to the counter setting register 3123, the value of the 8-bit counter 3122 is cleared to “00H”. After that, when “1” is written to the fourth bit of the control register 3121, the selected clock source Up-counting of the 8-bit counter 3122 is started.

カウンタ回路312には、カウンタ回路0、1用のハードラッチ選択レジスタとして、CH0,1ハードラッチ選択レジスタ9022、9024が設けられている。図355では、CH0,1ハードラッチ選択レジスタ9022、9024を1つにまとめて図示している。また、カウンタ回路2、3用のハードラッチ選択レジスタとして、CH2,3ハードラッチ選択レジスタ9026、9028が設けられている。図355では、CH2,3ハードラッチ選択レジスタ9026、9028を1つにまとめて図示している。これらのハードラッチ選択レジスタ9022、9024、9026、9028には、パラレル入力ポートを介してPI0〜PI5信号がそれぞれ入力される。各ハードラッチ選択レジスタは、PI0〜PI5信号の入力に基づいて、対応するハードラッチ乱数値レジスタにラッチ信号を出力する。   The counter circuit 312 is provided with CH0,1 hard latch selection registers 9022, 9024 as hard latch selection registers for the counter circuits 0,1. In FIG. 355, the CH0,1 hard latch selection registers 9022 and 9024 are shown together. Further, CH2, 3 hard latch selection registers 9026, 9028 are provided as hard latch selection registers for the counter circuits 2, 3. In FIG. 355, the CH2, 3 hard latch selection registers 9026 and 9028 are shown together. These hard latch selection registers 9022, 9024, 9026, and 9028 are inputted with PI0 to PI5 signals via the parallel input ports, respectively. Each hard latch selection register outputs a latch signal to the corresponding hard latch random value register based on the input of the PI0 to PI5 signals.

カウンタ回路0用のハードラッチ乱数値レジスタとして、CH0ハードラッチ乱数値レジスタ9032aが設けられている。また、カウンタ回路1用のハードラッチ乱数値レジスタとして、CH1ハードラッチ乱数値レジスタ9034aが設けられている。また、カウンタ回路2用のハードラッチ乱数値レジスタとして、CH2ハードラッチ乱数値レジスタ9036aが設けられている。また、カウンタ回路3用のハードラッチ乱数値レジスタとして、CH3ハードラッチ乱数値レジスタ9038aが設けられている。   A CH0 hard latch random value register 9032a is provided as a hard latch random value register for the counter circuit 0. Further, as a hard latch random value register for the counter circuit 1, a CH1 hard latch random value register 9034a is provided. Further, a CH2 hard latch random value register 9036a is provided as a hard latch random value register for the counter circuit 2. A CH3 hard latch random value register 9038a is provided as a hard latch random value register for the counter circuit 3.

これらのハードラッチ乱数値レジスタ9032a、9034a、9036a、9038aには、3つの信号が入力される。1つ目の信号は、対応するカウンタ回路0〜3の8ビットカウンタにより生成された乱数を表す信号である。2つ目の信号は、ハードラッチ選択レジスタ9022、9024、9026、9028からそれぞれ出力された乱数ラッチ信号(ハードラッチ信号)である。3つ目の信号は、乱数の読み取りを示すリード信号である。   Three signals are input to these hard latch random number value registers 9032a, 9034a, 9036a, and 9038a. The first signal is a signal representing a random number generated by the 8-bit counter of the corresponding counter circuit 0-3. The second signal is a random number latch signal (hard latch signal) output from each of the hard latch selection registers 9022, 9024, 9026, and 9028. The third signal is a read signal indicating random number reading.

ハードラッチ乱数値レジスタ9032a、9034a、9036a、9038aには、対応するカウンタ回路0〜3の8ビットカウンタにより生成された乱数を表す信号が常に入力されている。ここで、ラッチ信号が入力されると、この入力タイミングにおける乱数がハードラッチ乱数値レジスタ内にラッチ(保持)される。このとき、ハードラッチ乱数値レジスタからは、乱数がラッチされていることを示すセット信号が、ハードラッチフラグレジスタ9048a、9048bに出力される。このときCPU304は、ラッチされている乱数を取得することができる。なお、CPU304により乱数が取得されると、ハードラッチ乱数値レジスタにリード信号が入力される。この信号により新たなラッチ信号が入力された場合に乱数をラッチすることを許容する許容状態となる。換言すれば、一度乱数をラッチすると、リード信号が入力されるまで新たに乱数をラッチすることができない非許容状態となる。なお、リード信号が入力されてもラッチされている乱数は保持し続けるため、CPU304はラッチされている同一のタイミングでラッチされた乱数を何度でも取得することができる。このように構成することで乱数ラッチ信号を出力するセンサ回路におけるチャタリングの影響を押さえることができる。なお、リード信号が入力されたことを示すクリア信号がハードラッチフラグレジスタ9048a、9048bに出力される。   The hard latch random number value registers 9032a, 9034a, 9036a, and 9038a are always input with signals representing random numbers generated by the 8-bit counters of the corresponding counter circuits 0 to 3. Here, when a latch signal is input, a random number at this input timing is latched (held) in the hard latch random number value register. At this time, a set signal indicating that the random number is latched is output from the hard latch random number value register to the hard latch flag registers 9048a and 9048b. At this time, the CPU 304 can acquire the latched random number. When a random number is acquired by the CPU 304, a read signal is input to the hard latch random number value register. When a new latch signal is input by this signal, an allowable state is entered in which random numbers are allowed to be latched. In other words, once the random number is latched, it becomes an unacceptable state in which the random number cannot be newly latched until the read signal is inputted. Note that since the latched random number is held even when a read signal is input, the CPU 304 can acquire the latched random number any number of times at the same latched timing. With this configuration, the influence of chattering in the sensor circuit that outputs the random number latch signal can be suppressed. A clear signal indicating that a read signal has been input is output to the hard latch flag registers 9048a and 9048b.

ハードラッチフラグレジスタ9048a、9048bには、ハードラッチ乱数値レジスタに乱数がラッチされているか否かを示す情報が記憶される。なお、ハードラッチフラグレジスタ9048a、9048bは、ハードラッチ乱数レジスタにラッチされた乱数(8ビット乱数の全てまたは一部)が読み出されたときに自動的にクリアされるように構成してもよいし、CPU304によってクリアするように構成してもよい。   The hard latch flag registers 9048a and 9048b store information indicating whether or not a random number is latched in the hard latch random number value register. Note that the hard latch flag registers 9048a and 9048b may be configured to be automatically cleared when random numbers (all or part of 8-bit random numbers) latched in the hard latch random number registers are read. However, it may be configured to be cleared by the CPU 304.

本変形例によるカウンタ回路312のカウンタ回路0〜3に設けられている8ビットカウンタの起動時期は、カウント値を設定しない場合と、カウンタ値を設定する場合とで異ならせることができる。カウンタ値を設定しない場合の8ビットカウンタは、主制御部メイン処理のプログラム起動設定処理中に起動される。また、カウンタ値を設定する場合の9ビットカウンタは、主制御部メイン処理の初期設定2(ステップS15105)内でカウント値を設定した後に起動される。カウンタ回路0〜3の8ビットカウンタの起動時期はそれぞれ個別に設定することができる。   The activation timing of the 8-bit counters provided in the counter circuits 0 to 3 of the counter circuit 312 according to this modification can be different depending on whether the count value is not set or when the counter value is set. The 8-bit counter when the counter value is not set is activated during the program activation setting process of the main control unit main process. The 9-bit counter for setting the counter value is started after setting the count value in the initial setting 2 (step S15105) of the main control unit main process. The starting times of the 8-bit counters of the counter circuits 0 to 3 can be set individually.

以上説明したカウンタ回路312は、数値更新手段の一例に相当する。   The counter circuit 312 described above corresponds to an example of a numerical value updating unit.

本変形例によるパチンコ機100で用いられるカウンタ回路312の8ビットカウンタは、ハード乱数カウンタである。   The 8-bit counter of the counter circuit 312 used in the pachinko machine 100 according to this modification is a hard random number counter.

ハード乱数カウンタは、内部システムクロック(SCLK)または外部クロック(RCK)で更新される。   The hard random number counter is updated by the internal system clock (SCLK) or the external clock (RCK).

ハード乱数カウンタの更新周期は、ソフト乱数の更新周期よりも短い。   The update cycle of the hard random number counter is shorter than the update cycle of the soft random number.

ハード乱数カウンタの更新周期は、割込み処理の割込み周期よりも短い。   The update cycle of the hard random number counter is shorter than the interrupt cycle of the interrupt process.

ハード乱数カウンタの更新時期は、プログラム処理に依存しないが、最大値設定時は更新開始時期(起動時期)のみがプログラム処理に依存する   The update time of the hard random number counter does not depend on the program processing, but only the update start time (startup time) depends on the program processing when the maximum value is set.

なお、ソフト乱数カウンタは、プログラム処理内の更新処理毎に更新される。   The soft random number counter is updated every update process in the program process.

ソフト乱数の更新時期は、プログラム処理に依存する。   The update time of the soft random number depends on the program processing.

次に、以上説明した実施形態8の変形例によるパチンコ機100の特徴的構成について再度図355を参照しつつ説明する。   Next, a characteristic configuration of the pachinko machine 100 according to the modified example of the eighth embodiment described above will be described with reference to FIG. 355 again.

(1)本実施の形態によるパチンコ機100は、 (1) The pachinko machine 100 according to the present embodiment

乱数を少なくとも導出可能なハード乱数カウンタ(例えば、8ビットカウンタ3122)と、   A hard random number counter capable of deriving at least a random number (for example, an 8-bit counter 3122);

複数の遊技制御処理のそれぞれを、メイン制御(例えば、主制御部メイン処理)および割込み周期ごとに行われる割込み制御(例えば、主制御部タイマ割込処理)のうちの、少なくともいずれかの制御において実行可能な遊技制御手段(例えば、主制御部300)と、を備えた遊技台であって、   Each of the plurality of game control processes is performed in at least one of main control (for example, main control unit main process) and interrupt control (for example, main control unit timer interrupt process) performed for each interrupt cycle. A game table including an executable game control means (for example, the main control unit 300),

前記ハード乱数カウンタは、第一の数値範囲内で更新される第一の乱数(例えば、最大値設定で起動される乱数生成回路が生成する乱数値)を導出可能なものであり、   The hard random number counter is capable of deriving a first random number that is updated within a first numerical range (for example, a random value generated by a random number generation circuit that is activated by setting a maximum value),

前記ハード乱数カウンタは、第二の数値範囲内で更新される第二の乱数(例えば、ユーザモード起動で起動される乱数生成回路が生成する乱数値)を導出可能なものであり、   The hard random number counter is capable of deriving a second random number that is updated within a second numerical range (for example, a random number value generated by a random number generation circuit activated by user mode activation),

前記第一の乱数の起動時期と前記第二の乱数の起動時期(例えば、カウンタ回路0〜3の8ビットカウンタの起動時期)は異なるものであること
を特徴とする
The start time of the first random number is different from the start time of the second random number (for example, the start time of the 8-bit counter of the counter circuits 0 to 3).

当該構成を備えたパチンコ機100によれば、2つのハード乱数カウンタの起動時期が異なるため、不正者による2つの乱数の解析を困難にでき、安定した遊技制御を行うことができる場合がある。
(2)上記パチンコ機100であって、
According to the pachinko machine 100 having such a configuration, since the start times of the two hard random number counters are different, it may be difficult for an unauthorized person to analyze the two random numbers, and stable game control may be performed.
(2) The pachinko machine 100,

第一の処理(例えば、主制御部メイン処理のステップS15103)を前記遊技制御処理は少なくとも含むものであり、   The game control process includes at least a first process (for example, step S15103 of the main control unit main process),

前記第一の乱数の起動時期と前記第二の乱数の起動時期のうちの一方は、前記第一の処理よりも後であること
を特徴とする
One of the start time of the first random number and the start time of the second random number is after the first process.

当該構成を備えたパチンコ機100によれば、ハード乱数カウンタの起動時期が第一の処理後であるため、不正者による不正をより困難にでき、安定した遊技制御を行うことができる場合がある。
(3)上記パチンコ機100であって、
According to the pachinko machine 100 having such a configuration, since the hard random number counter is activated after the first processing, it is possible that fraud by an unauthorized person can be made more difficult and stable game control can be performed. .
(3) The pachinko machine 100,

前記第一の処理は、制御の進行を保留可能なものであり、   In the first process, the progress of control can be suspended,

前記第一の処理は、制御進行条件が成立した場合に(例えば、主制御部メイン処理のステップS15103のYes)、前記保留を解除可能なものであり、   The first process can release the hold when the control progress condition is satisfied (for example, Yes in step S15103 of the main control unit main process),

前記制御進行条件は、第一の信号が第一の状態から第二の状態に変化した場合に成立するものであること
を特徴とする。
The control progress condition is established when the first signal changes from the first state to the second state.

当該構成を備えたパチンコ機100によれば、第一の信号の状態の変化時期に応じて起動時期が変化するため、不正者による不正をより困難にでき、安定した遊技制御を行うことができる場合がある。
(4)上記パチンコ機100であって、
According to the pachinko machine 100 having such a configuration, the activation time changes in accordance with the change timing of the state of the first signal, so that fraud by an unauthorized person can be made more difficult and stable game control can be performed. There is a case.
(4) The pachinko machine 100,

前記ハード乱数カウンタに前記数値範囲の設定を指示可能な第二の処理(例えば、主制御部メイン処理のステップS15133)と、   A second process capable of instructing the hard random number counter to set the numerical range (for example, step S15133 of the main control unit main process);

前記ハード乱数カウンタによって導出された乱数を取得可能な第三の処理(例えば、主制御部タイマ割込処理のステップS15217)と、   A third process capable of acquiring a random number derived by the hard random number counter (for example, step S15217 of the main control unit timer interrupt process);

前記第三の処理によって取得された乱数に基づく判定を実行可能な第四の処理(例えば、主制御部タイマ割込処理のステップS15223、ステップS15229、ステップS15231)と、を前記遊技制御処理は少なくとも含むものであり、   The game control process includes at least a fourth process (for example, step S15223, step S15229, step S15231 of the main control unit timer interrupt process) capable of executing a determination based on the random number acquired by the third process. Including

前記第一の数値範囲は、前記第二の処理によって設定されるものであり、   The first numerical range is set by the second process,

前記第二の数値範囲は、前記第二の処理によらずに設定されるものであり、   The second numerical range is set regardless of the second processing,

前記第一の数値範囲が設定された場合に、前記第一の乱数の起動が開始可能なものであること
を特徴とする。
When the first numerical range is set, the activation of the first random number can be started.

当該構成を備えたパチンコ機100によれば、数値範囲設定後に更新するので数値範囲外の数値を更新することがなく、安定した遊技制御を行うことができる場合がある。   According to the pachinko machine 100 having such a configuration, since it is updated after the numerical value range is set, there is a case in which stable game control can be performed without updating numerical values outside the numerical value range.

以上説明した本願発明によるパチンコ機100における上述の<第4特殊命令/RST命令>についての特徴的構成について以下に付記する。
(付記1)
A characteristic configuration of the above-described <fourth special instruction / RST instruction> in the pachinko machine 100 according to the present invention described above will be additionally described below.
(Appendix 1)

CPUを内蔵するマイクロコンピュータを備えた遊技台であって、   A game machine having a microcomputer with a built-in CPU,

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記CPUは、特定のジャンプ命令を受け付けたことに基づいて、ジャンプ先アドレス   The CPU determines a jump destination address based on receiving a specific jump instruction.

に記憶されている命令を受け付けるように構成されており、 Is configured to accept instructions stored in

前記特定のジャンプ命令には、アドレス情報が含められているものであり、   The specific jump instruction includes address information,

前記アドレス情報として特定のアドレス情報が含められている場合には、前記ジャンプ   If specific address information is included as the address information, the jump

先アドレスは、当該アドレス情報と特定の値を乗算した場合に得られる値と一致しない所 The destination address does not match the value obtained when the address information is multiplied by a specific value.

定の値により示される所定のアドレスとなるものであり、 A predetermined address indicated by a fixed value,

前記アドレス情報として前記特定のアドレス情報とは異なるアドレス情報が含められて   The address information includes address information different from the specific address information.

いる場合には、前記ジャンプ先アドレスは、当該アドレス情報と前記特定の値を乗算した The jump destination address is obtained by multiplying the address information by the specific value.

場合に得られる値と一致する値により示されるアドレスとなるものである、
ことを特徴とする遊技台。
(付記2)
付記1に記載の遊技台において、
The address indicated by the value that matches the value obtained in the case,
A game stand characterized by that.
(Appendix 2)
In the game stand described in Appendix 1,

前記特定のアドレス情報が0であることから、前記CPUは、前記特定のジャンプ命令   Since the specific address information is 0, the CPU executes the specific jump instruction.

の次に0番地に記憶されている命令を受け付けることが禁止されているものである、
ことを特徴とする遊技台。
(付記3)
It is prohibited to accept the instruction stored at address 0 after
A game stand characterized by that.
(Appendix 3)

付記1または2に記載の遊技台であって、   A game machine according to appendix 1 or 2,

前記CPUは、少なくとも特定のレジスタを備え、   The CPU includes at least a specific register,

前記CPUは、前記特定のレジスタに値をセットする機能のうち、ロード命令を受けた   The CPU has received a load instruction among the functions for setting a value in the specific register.

ことに基づいて行われるものとしては、直値により値をセットする機能のみを有すること
を特徴とする遊技台。
(付記4)
付記3に記載の遊技台であって、
What is performed based on the above is a gaming table having only a function of setting a value by a direct value.
(Appendix 4)
A game machine as set forth in appendix 3,

前記CPUは、前記特定のレジスタに値をセットする機能のうち、前記ロード命令を受   The CPU receives the load instruction among the functions for setting a value in the specific register.

けたことに基づいて行われるもの以外のものとして、所定の値を初期値としてセットする Set a predetermined value as the initial value, other than what is done based on

機能を少なくとも有することを特徴とする遊技台。
(付記5)
A game stand having at least a function.
(Appendix 5)

付記1〜4のいずれかに記載の遊技台であって、
遊技制御を行う遊技制御手段と、
The game stand according to any one of appendices 1 to 4,
Game control means for performing game control;

演出制御を行う演出制御手段と、を備え、   Production control means for performing production control,

前記CPUを内蔵した前記マイクロコンピュータは、前記演出制御手段に搭載されず、   The microcomputer incorporating the CPU is not mounted on the effect control means,

前記遊技制御手段にのみ搭載されることを特徴とする遊技台。
(付記6)
A game table mounted only on the game control means.
(Appendix 6)

付記1〜4のいずれかに記載の遊技台であって、
遊技制御を行う遊技制御手段と、
演出制御を行う演出制御手段と、
The game stand according to any one of appendices 1 to 4,
Game control means for performing game control;
Production control means for performing production control;

払出制御を行う払出制御手段と、を備え、   A payout control means for performing payout control,

前記CPUを内蔵した前記マイクロコンピュータは、前記演出制御手段に搭載されず、   The microcomputer incorporating the CPU is not mounted on the effect control means,

前記遊技制御手段および前記払出制御手段のうちの少なくとも一方に搭載されることを特
徴とする遊技台。
(付記7)
A game table mounted on at least one of the game control means and the payout control means.
(Appendix 7)

CPUを少なくとも内蔵するマイクロコンピュータを備えた遊技台であって、   A game machine equipped with a microcomputer including at least a CPU,

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記CPUは、第一のジャンプ命令を受け付けたことに基づいて、第一のジャンプ先ア   The CPU receives the first jump command and then receives the first jump instruction.

ドレスに記憶されている命令を受け付けることが可能なものであり、 It is possible to accept instructions stored in the dress,

前記CPUは、第二のジャンプ命令を受け付けたことに基づいて、第二のジャンプ先ア   The CPU receives the second jump command and then receives the second jump instruction.

ドレスに記憶されている命令を受け付けることが可能なものであり、 It is possible to accept instructions stored in the dress,

前記第一のジャンプ命令には、3ビットの第一の識別情報が少なくとも含まれており、   The first jump instruction includes at least 3-bit first identification information;

前記第二のジャンプ命令には、3ビットの第二の識別情報が少なくとも含まれており、   The second jump instruction includes at least 3-bit second identification information;

前記第一のジャンプ先アドレスは、第一の値により示されるアドレスであり、   The first jump destination address is an address indicated by a first value;

前記第二のジャンプ先アドレスは、第二の値により示されるアドレスであり、   The second jump destination address is an address indicated by a second value,

前記第一の値は、前記第一の識別情報の8倍の値であり、   The first value is eight times the first identification information,

前記第二の値は、前記第二の識別情報の8倍の値とは異なり、3ビットで示すことが可   The second value can be represented by 3 bits, unlike the value of 8 times the second identification information.

能な最大値を1だけ超えた値の8倍の値である、
ことを特徴とする遊技台。
(付記8)
付記7に記載の遊技台であって、
前記第二の識別情報は0である、
ことを特徴とする遊技台。
(付記9)
Is eight times the value that exceeds the maximum
A game stand characterized by that.
(Appendix 8)
The game stand according to appendix 7,
The second identification information is 0.
A game stand characterized by that.
(Appendix 9)

付記7または8に記載の遊技台であって、   A gaming machine according to appendix 7 or 8, wherein

前記第一の識別情報は1から7のいずれかの値である、
ことを特徴とする遊技台。
(付記10)
付記9に記載の遊技台であって、
The first identification information is a value from 1 to 7,
A game stand characterized by that.
(Appendix 10)
A gaming machine according to appendix 9, wherein

前記第二のジャンプ先アドレスは、前記第一の識別情報の最大値である7を1だけ超え   The second jump destination address exceeds the maximum value 7 of the first identification information by 1

た値である8の8倍の値である64である、
ことを特徴とする遊技台。
(付記11)
64, which is 8 times the value of 8,
A game stand characterized by that.
(Appendix 11)

請求項7乃至10のいずれかに記載の遊技台であって、   It is a game stand in any one of Claims 7 thru | or 10, Comprising:

前記CPUは、前記第一のジャンプ命令および前記第二のジャンプ命令とは異なるジャ   The CPU is different from the first jump instruction and the second jump instruction.

ンプ命令を受け付けることも可能なものである、
ことを特徴とする遊技台。
It is also possible to accept
A game stand characterized by that.

以下、図356および図357を用いて、本発明の実施形態に係るパチンコ機(遊技台)について説明する。図356は、CPU304によって実行される処理A〜処理Dを示している。処理A(例えば、定期割り込み処理、メインループ等)は、ROM306のアドレスA〜アドレスBまでの間に記憶された処理であり、処理a1、先頭アドレスがアドレスCである処理を呼び出すことが指定された呼出命令A(例えば、RST命令等)、処理a2、先頭アドレスがアドレスEである処理を呼び出すことが指定された呼出命令A(例えば、RST命令等)、処理a3、先頭アドレスがアドレスFである処理を呼び出すことが指定された呼出命令B(例えば、EXESUB命令等)、および処理a4の順で各処理・各命令がCPU304によって実行されることを示している。   Hereinafter, a pachinko machine (game table) according to an embodiment of the present invention will be described with reference to FIGS. 356 and 357. FIG. 356 shows processing A to processing D executed by the CPU 304. Process A (for example, periodic interrupt process, main loop, etc.) is a process stored between address A and address B of ROM 306, and is designated to call process a1 and process whose head address is address C. Call instruction A (for example, RST instruction), process a2, call instruction A (for example, RST instruction) designated to call a process whose head address is address E, process a3, head address is address F This indicates that the CPU 304 executes each process and each instruction in the order of the call instruction B (for example, the EXEBUS instruction) designated to call a certain process and the process a4.

処理B(例えば、データ処理1等)は、ROM306のアドレスC〜アドレスDまでの間に記憶された処理であり、処理b1、先頭アドレスがアドレスFである処理を呼び出すことが指定された呼出命令B(例えば、EXESUB命令等)、NOP処理(例えば、一つのNOP命令)、処理b2、および処理Cの順で各処理・各命令がCPU304によって実行されることを示している。   Process B (for example, data process 1 etc.) is a process stored between address C and address D of ROM 306, and a call instruction designated to call process b1 and process whose head address is address F It shows that each process and each instruction is executed by the CPU 304 in the order of B (for example, EXESUB instruction), NOP process (for example, one NOP instruction), process b2, and process C.

処理C(例えば、データ処理2等)は、ROM306のアドレスE〜アドレスDまでの間に記憶された処理である。   The process C (for example, the data process 2) is a process stored between the addresses E to D of the ROM 306.

処理D(例えば、データ処理3等)は、ROM306のアドレスF〜アドレスGまでの間に記憶された処理である。   The process D (for example, the data process 3) is a process stored between the address F and the address G of the ROM 306.

図356および図357における"命令"は、一つの命令操作部(オペコード)と当該命令操作部に基づいてCPU304が動作する際に必要な数のオペランド部(オペランド)からなるCPU304が受け付け可能な単一セットの指示を指す用語である。   In FIG. 356 and FIG. 357, an “instruction” is a single instruction operation unit (opcode) and a single unit that can be received by the CPU 304 including the number of operand units (operands) necessary for the CPU 304 to operate based on the instruction operation unit. A term that refers to a set of instructions.

図356および図357における"処理"は、データ処理を指す用語であり、一つの命令から構成されるものや複数の命令から構成されるもの、入力データ等によってCPUによって実行される命令の数が変化するものを含むものである。   “Processing” in FIGS. 356 and 357 is a term indicating data processing. The number of instructions executed by the CPU according to input data or the like is composed of one instruction or a plurality of instructions. Includes things that change.

CPU304は、RST命令(図136等参照)を受け付けた場合に、予め定められた複数のアドレス(例えば、08H、10H、18H、20H、28H、30H、38H、40Hの8つのアドレス等)のうちの当該RST命令のオペランド部で示されるアドレスを先頭アドレスとする処理を実行するものであり、CPU304は、当該処理の実行を終了(例えばRET命令により復帰)した場合は、当該RST命令の次に記憶されている命令を読み出して実行するように構成されている。   When the CPU 304 accepts an RST command (see FIG. 136, etc.), the CPU 304 out of a plurality of predetermined addresses (for example, eight addresses 08H, 10H, 18H, 20H, 28H, 30H, 38H, 40H, etc.) When the CPU 304 finishes executing the process (for example, returns by a RET instruction), the CPU 304 executes the process next to the RST instruction. It is configured to read and execute stored instructions.

CPU304は、EXESUB命令(図25〜図28等を参照)を受け付けた場合に、予め定められたアドレス範囲(例えば0000H〜11FFHの4キロバイト)のうちの当該EXESUB命令のオペランド部で示されるアドレスを先頭アドレスとする処理を実行するものであり、CPU304は、当該処理の実行を終了(例えばRET命令により復帰)した場合は、当該EXESUB命令の次に記憶されている命令を読み出して実行するように構成されている。   When the CPU 304 accepts the EXESUB instruction (see FIGS. 25 to 28, etc.), the CPU 304 sets the address indicated by the operand part of the EXEBUS instruction within a predetermined address range (for example, 4 kilobytes of 0000H to 11FFH). When the CPU 304 finishes executing the process (for example, returns by a RET instruction), the CPU 304 reads and executes the instruction stored next to the EXEBUS instruction. It is configured.

これらの構成によりCPU304は、処理a1、先頭アドレスがアドレスCである処理を呼び出すことが指定された呼出命令A(例えば、RST命令等)、処理b1、先頭アドレスがアドレスFである処理を呼び出すことが指定された呼出命令B(例えば、EXESUB命令等)、NOP処理、処理b2、処理C、処理a2、先頭アドレスがアドレスEである処理を呼び出すことが指定された呼出命令A(例えば、RST命令等)、処理C、処理a3、先頭アドレスがアドレスFである処理を呼び出すことが指定された呼出命令B(例えば、EXESUB命令等)、処理D、および処理a4の順で各処理・各命令を実行する。   With these configurations, the CPU 304 calls process a1, a call instruction A (for example, an RST instruction) designated to call a process whose start address is address C, process b1, and a process whose start address is address F. Call instruction B (for example, EXESUB instruction), NOP process, process b2, process C, process a2, and call instruction A (for example, RST instruction) designated to call the process whose top address is address E Etc.), process C, process a3, call instruction B designated to call the process whose head address is address F (for example, EXESUB instruction, etc.), process D, and process a4 in the order of process a4. Run.

ここでNOP処理は、NOP命令を少なくとも含む処理であり、一つのNOP命令のみから構成されるもの、複数のNOP命令のみから構成されるもの、一または複数のNOP命令と一または複数の他の命令によって構成されたもの等を適用してもよい。   Here, the NOP process is a process including at least a NOP instruction, and is composed of only one NOP instruction, composed of only a plurality of NOP instructions, one or a plurality of NOP instructions and one or a plurality of other You may apply what was comprised by the command.

CPU304は、NOP命令を受け付けた場合には、何もせずに、またはNOP命令を受け付けた場合特有の動作をせずにNOP命令時間の経過後に当該NOP命令の次に記憶されている命令を読み出して実行するように構成されている。またNOP命令はオペランド部を必要とせず、所定のステート数(例えば4ステート)、所定の命令長(例えば1バイト)で構成されている。   When the CPU 304 accepts a NOP instruction, the CPU 304 reads the instruction stored next to the NOP instruction after the elapse of the NOP instruction time without performing any operation or performing a specific operation when the NOP instruction is accepted. Configured to run. The NOP instruction does not require an operand part, and is configured with a predetermined number of states (for example, 4 states) and a predetermined instruction length (for example, 1 byte).

しかし図356で示される処理は、遊技機(スロットマシン、ぱちんこ機、遊技媒体封入式のスロットマシン、遊技媒体封入式のぱちんこ機等)にとっては、NOP処理が不正者によって他の不正処理に置き換えられてしまうといった非常に大きな問題を有している。ROM306に記憶されている情報が点検者にとって確認しがたい数値(命令を示す数値、すなわち命令操作部・オブジェクト部を構成する数値)情報で構成されていることも不正者に不正利用される要因になっている。   However, for the gaming machine (slot machine, pachinko machine, game media enclosing slot machine, game media enclosing pachinko machine, etc.), the NOP process is replaced by another unauthorized process by an unauthorized person. It has a very big problem. The reason why information stored in the ROM 306 is composed of numerical information (numerical values indicating commands, that is, numerical values constituting the command operation unit / object unit) that is difficult for the inspector to confirm It has become.

例えばROM306のアドレスHから始まる領域に不正処理を記憶する改造が不正者によって行われ、かつNOP処理を特定の呼出処理(不正な処理)に置き換える改造が不正者によって行われてしまったとする。ここで特定の呼出処理は、当該アドレスHから始まる処理を呼び出すための呼び出し処理だとする。このような改造が行われると、CPU304は処理Bの実行時に不正者による改造によって記憶された不正処理を呼び出し、実行してしまうことになる。ここでは、正規の遊技機に取り付けられていたROM306の記憶内容を記憶し直す改造を例示したが、不正者によっては、正規の遊技機に取り付けられていたROM306を上述のような特定の呼出処理・不正処理が記憶された不正なROMに交換する手口や、正規の遊技機に取り付けられていたマイクロプロセッサ3000(ROM306を含む(例えば内蔵する)もの)を不正なマイクロプロセッサ(上述のような特定の呼出処理・不正処理が記憶された不正なROMを内蔵するもの)に交換する手口なども使われる。   For example, it is assumed that a modification that stores unauthorized processing in an area starting from the address H of the ROM 306 is performed by an unauthorized person, and a modification that replaces the NOP process with a specific calling process (unauthorized process) is performed by the unauthorized person. Here, it is assumed that the specific calling process is a calling process for calling a process starting from the address H. When such modification is performed, the CPU 304 calls and executes the illegal process stored by the modification by the unauthorized person when the process B is executed. Here, the modification of re-storing the storage contents of the ROM 306 attached to the regular gaming machine is illustrated, but depending on the unauthorized person, the ROM 306 attached to the regular gaming machine may be subjected to a specific calling process as described above. -A technique for exchanging an illegal ROM in which illegal processing is stored, or a microprocessor 3000 (including (for example, incorporating) ROM 306) attached to a legitimate gaming machine is an illegal microprocessor (as described above). It is also possible to use a technique such as exchanging for an illegal ROM in which the call processing / illegal processing is stored.

また不正処理は、不正な入力(例えばマイクロプロセッサに入力される所定の信号を監視し、当該信号の変化パターンが特定の変化パターンである場合にオンと判定される信号)があった場合に、所定の不正RAM設定処理(例えばRAM308の遊技状態を示すフラグ(ぱちんこ機の場合の大当りフラグ、ぱちんこ機の場合の確変フラグ、スロットマシンの場合のBB・RB中かどうかを示すフラグ等)に、不正者の都合のよい状態を示す値(ぱちんこ機の場合の大当り中であることを示す値、ぱちんこ機の場合の確変中であることを示す値、スロットマシンの場合のBB・RB中であることを示す値等)を設定する)を行うような処理が一般的だが、これに限らず、単に時間を費やすだけの処理など不正者による様々な処理のうちの一つまたは複数である場合があり得る。   In addition, the fraud processing is performed when there is a fraudulent input (for example, a signal that is monitored when a predetermined signal is input to the microprocessor and is determined to be on when the change pattern of the signal is a specific change pattern) Predetermined illegal RAM setting processing (for example, a flag indicating the gaming state of the RAM 308 (a jackpot flag in the case of a pachinko machine, a probability change flag in the case of a pachinko machine, a flag indicating whether the BB / RB is in the case of a slot machine, etc.) A value indicating the convenient state of an unauthorized person (a value indicating a big hit in the case of a pachinko machine, a value indicating a probability change in the case of a pachinko machine, or a BB / RB in the case of a slot machine) In general, this is not limited to this, but it is one of various processes by unauthorized persons, such as a process that simply spends time. Others may be a plurality.

そこで、このNOP処理を使わずに遊技制御を実現したものを図357に示す。   Therefore, FIG. 357 shows a game control realized without using this NOP process.

図357は、CPU304によって実行される処理A〜処理Dを示している。図357における処理・命令のうち図356と同じ処理・命令は、同じ名称としている。   FIG. 357 shows processing A to processing D executed by the CPU 304. Of the processes / instructions in FIG. 357, the same processes / instructions as in FIG. 356 have the same names.

図357の処理A(例えば、定期割り込み処理、メインループ等)は、ROM306のアドレスA〜アドレスBまでの間に記憶された処理であり、処理a1、先頭アドレスがアドレスCである処理を呼び出すことが指定された呼出命令A(例えば、RST命令等)、処理a2、先頭アドレスがアドレスEである処理を呼び出すことが指定された呼出命令A(例えば、RST命令等)、処理a3、先頭アドレスがアドレスFである処理を呼び出すことが指定された呼出命令B(例えば、EXESUB命令等)、および処理a4の順で各処理・各命令がCPU304によって実行されることを示している。   The process A (for example, periodic interrupt process, main loop, etc.) in FIG. 357 is a process stored between the addresses A to B of the ROM 306, and calls the process a1 and the process whose head address is the address C. Call instruction A (for example, RST instruction), process a2, call instruction A (for example, RST instruction) specified to call the process whose head address is address E, process a3, and head address is This indicates that the CPU 304 executes each process and each instruction in the order of the call instruction B (for example, the EXESUB instruction) designated to call the process at the address F and the process a4.

処理B(例えば、データ処理1等)は、ROM306のアドレスC〜アドレスDまでの間に記憶された処理であり、処理b1、先頭アドレスがアドレスFである処理を呼び出すことが指定された呼出命令C(例えば、CALL命令等)、処理b2、および処理Cの順で各処理・各命令がCPU304によって実行されることを示している。   Process B (for example, data process 1 etc.) is a process stored between address C and address D of ROM 306, and a call instruction designated to call process b1 and process whose head address is address F It is shown that each process and each instruction is executed by the CPU 304 in the order of C (for example, CALL instruction), process b2, and process C.

処理C(例えば、データ処理2等)は、ROM306のアドレスE〜アドレスDまでの間に記憶された処理である。   The process C (for example, the data process 2) is a process stored between the addresses E to D of the ROM 306.

処理D(例えば、データ処理3等)は、ROM306のアドレスF〜アドレスGまでの間に記憶された処理である。   The process D (for example, the data process 3) is a process stored between the address F and the address G of the ROM 306.

CPU304は、CALL命令を受け付けた場合に、当該CALL命令のオペランド部で示されるアドレスを先頭アドレスとする処理を実行するものであり、CPU304は、当該処理の実行を終了(例えばRET命令により復帰)した場合は、当該CALL命令の次に記憶されている命令を読み出して実行するように構成されている。   When the CPU 304 accepts a CALL instruction, the CPU 304 executes a process using the address indicated by the operand part of the CALL instruction as a head address, and the CPU 304 ends the execution of the process (for example, returns by a RET instruction). In this case, the instruction stored next to the CALL instruction is read and executed.

これらの構成によりCPU304は、処理a1、先頭アドレスがアドレスCである処理を呼び出すことが指定された呼出命令A(例えば、RST命令等)、処理b1、先頭アドレスがアドレスFである処理を呼び出すことが指定された呼出命令C(例えば、CALL命令等)、処理b2、処理C、処理a2、先頭アドレスがアドレスEである処理を呼び出すことが指定された呼出命令A(例えば、RST命令等)、処理C、処理a3、先頭アドレスがアドレスFである処理を呼び出すことが指定された呼出命令B(例えば、EXESUB命令等)、処理D、および処理a4の順で各処理・各命令を実行する。   With these configurations, the CPU 304 calls process a1, a call instruction A (for example, an RST instruction) designated to call a process whose start address is address C, process b1, and a process whose start address is address F. Call instruction C (eg, CALL instruction), process b2, process C, process a2, and call instruction A (eg, RST instruction) designated to call the process whose head address is address E, Each process / instruction is executed in the order of process C, process a3, call instruction B designated to call the process whose head address is address F (for example, EXESUB instruction), process D, and process a4.

EXESUB命令およびCALL命令の両方の処理は、処理Dを呼び出すことが可能な処理であるが、EXESUB命令のサイズは2バイト、ステート数は13であり、一方CALL命令のサイズは3バイト、ステート数は16であり、処理Dの先頭アドレスであるアドレスFが予め定められたアドレス範囲内であれば、CALL命令を用いる場合よりもEXESUB命令を用いる場合の方が、サイズ的なメリット、ステート数(処理速度)的なメリットを有することになる。   The processing of both the EXESUB instruction and the CALL instruction is a process capable of calling the process D, but the size of the EXEBUS instruction is 2 bytes and the number of states is 13, while the size of the CALL instruction is 3 bytes and the number of states. If the address F, which is the start address of the processing D, is within a predetermined address range, the size advantage and the number of states (when using the EXESUB instruction than when using the CALL instruction) (Processing speed).

しかし、RST命令が上述のとおり予め定められた複数のアドレスのいずれかのアドレスしか呼び出せないことにより、第一の処理(ここではアドレスCからアドレスEに記憶されたNOP以外の複数の命令)のサイズが所定のサイズ(例えば、7バイト、7バイト以下等)である場合は、第二の処理(ここでは処理C)を単独で呼び出したり、当該第二の処理を含む第三の処理(ここでは処理B(第一の処理および第二の処理の両方からなる処理))を呼び出したりすることがNOP処理を含めなければできなくなってしまう。   However, since the RST instruction can call only one of a plurality of predetermined addresses as described above, the first process (here, a plurality of instructions other than the NOP stored from the address C to the address E) is performed. When the size is a predetermined size (for example, 7 bytes, 7 bytes or less, etc.), the second process (here, process C) is called alone, or the third process including the second process (here) Then, it is impossible to call the process B (process consisting of both the first process and the second process) unless the NOP process is included.

そこで第一の処理では呼出命令B(ここではEXESUB命令)を用いず、代わりに呼出命令C(ここではCALL命令)を用いることで、サイズ・ステート数の両面で不利(サイズ的に大きいことで不利、処理速度的に遅いことで不利)にはなるが、当該第一の処理をアドレスC(例えば20H)からアドレスE(例えば28H)の間に収めることができる、すなわち当該第一の処理のサイズをNOP処理を用いずに8バイトにすることができるので、不正者が不正な処理を当該NOP処理と置き換えるようなことを防止でき、不正に強い遊技制御プログラムをROM306に記憶することが可能となる。   Therefore, the first process does not use the call instruction B (here, the EXEBUS instruction), but instead uses the call instruction C (here, the CALL instruction), which is disadvantageous in terms of both size and number of states (because the size is large) Although it is disadvantageous and disadvantageous due to slow processing speed, the first process can be accommodated between address C (for example, 20H) and address E (for example, 28H). Since the size can be set to 8 bytes without using the NOP process, it is possible to prevent an unauthorized person from replacing the illegal process with the NOP process, and an illegally strong game control program can be stored in the ROM 306. It becomes.

ここでは図356と図357を用いて、呼出命令Bの代わりに、命令(処理)のサイズ・命令の処理時間は異なるが処理の結果が当該呼出命令Bと同じとなる呼出命令Cを用いることで、NOP処理を使わない例を示したが、これに限定されず、第二の命令の代わりに、命令(処理)のサイズ・命令の処理時間は異なるが処理の結果が当該第二の命令と同じとなる第一の命令を用いることで、NOP処理を使わないような処理であればよい。ここでは第二の命令と第一の命令の例として、EXESUB命令とCALL命令を示したが、その他の例としては、JR命令とJP命令、RST命令とEXESUB命令、RST命令とCALL命令などマイクロプロセッサ3000が受け付け可能な命令のうちの「第二の命令」と「命令(処理)のサイズ・命令の処理時間は異なるが処理の結果が当該第二の命令と同じとなる第一の命令」を適用するようにすればよい。ここでは第一・第二の命令の例として分岐命令を示したが、第一・第二の命令の両方を転送命令、サーチ命令、算術演算処理命令、論理演算処理命令、汎用算術機能、MPU制御命令、ローテイト命令、シフト命令、ビット処理命令、ジャンプ命令、コール命令、シフト命令、および入出力命令のうちのいずれかの命令としてもよい。また「第一の複数の命令のサイズの合計・処理時間の合計」と「複数の命令のサイズの合計・複数の命令の処理時間の合計は異なるが処理の結果が当該第一の複数の命令と同じとなる第二の複数の命令」に適用してもよいし、「第二の命令のサイズ・処理時間」と「複数の命令のサイズの合計・複数の命令の処理時間の合計は異なるが処理の結果が当該第二の命令と同じとなる第二の複数の命令」に適用してもよいし、「第一の複数の命令のサイズの合計・処理時間の合計」と「命令のサイズ・命令の処理時間は異なるが処理の結果が当該第一の複数の命令と同じとなる第一の命令」に適用してもよい。ここで第一の複数の命令に含まれる命令および第二の複数の命令に含まれる命令は、マイクロプロセッサ3000が受け付け可能な命令であれば、どのような命令を適用してもよい。また「命令のサイズ・処理時間が異なる」または「命令のサイズの合計・処理時間の合計が異なる」と記載してきたが、少なくとも「命令のサイズ」または「命令のサイズの合計」と置き換えても同様の効果が得られる。第一の命令が実行された後のフラグレジスタの値と第二の命令のフラグレジスタの値については、同一であっても同様の効果が得られる場合がある。もちろん第一の命令が実行された後のフラグレジスタの値と第二の命令のフラグレジスタの値については、異なっていても同様の効果が得られる場合がある。   Here, using FIG. 356 and FIG. 357, instead of the call instruction B, use the call instruction C having the same processing result as the call instruction B, although the instruction (processing) size and instruction processing time are different. However, the present invention is not limited to this example, and instead of the second instruction, the size of the instruction (processing) and the processing time of the instruction are different, but the processing result is the second instruction. Any processing that does not use the NOP processing by using the same first instruction as that described above may be used. Here, as an example of the second instruction and the first instruction, the EXESUB instruction and the CALL instruction are shown. However, as other examples, a JR instruction and a JP instruction, an RST instruction and an EXESUB instruction, an RST instruction and a CALL instruction, etc. Of the instructions that can be accepted by the processor 3000, the “second instruction” and the “first instruction whose processing result is the same as the second instruction although the instruction (processing) size and instruction processing time are different” Should be applied. Here, branch instructions are shown as examples of the first and second instructions. However, both the first and second instructions are transferred instructions, search instructions, arithmetic operation processing instructions, logical operation processing instructions, general arithmetic functions, MPU The instruction may be any one of a control instruction, a rotate instruction, a shift instruction, a bit processing instruction, a jump instruction, a call instruction, a shift instruction, and an input / output instruction. In addition, “total of the size of the first plurality of instructions / total processing time” and “total of the sizes of the plurality of instructions / total processing time of the plurality of instructions are different, but the processing result is the first plurality of instructions” May be applied to “second multiple instructions that are the same as”, or “second instruction size / processing time” and “total of multiple instruction sizes / total processing time of multiple instructions are different” May be applied to the “second plurality of instructions whose processing result is the same as the second instruction” or “the total of the sizes of the first plurality of instructions and the total processing time” and “the instruction It may be applied to a “first instruction whose size and instruction processing time is different but whose processing result is the same as the first plurality of instructions”. Here, the instructions included in the first plurality of instructions and the instructions included in the second plurality of instructions may be any instructions as long as the microprocessor 3000 can accept them. Also, “Instruction size / processing time is different” or “Total instruction size / total processing time is different” has been described, but it can be replaced with at least “instruction size” or “total instruction size”. Similar effects can be obtained. The same effect may be obtained even if the value of the flag register after the first instruction is executed and the value of the flag register of the second instruction are the same. Of course, the same effect may be obtained even if the value of the flag register after execution of the first instruction is different from the value of the flag register of the second instruction.

なお、「処理Bを構成する複数の命令」のうち「処理Cを構成する複数の命令」以外の命令(図357の場合であれば、処理b1を構成する一または複数の命令、b2を構成する一または複数の命令、および呼出命令C)にNOP命令が含まれていてもよく、NOP命令が含まれていたとしても呼出命令CによりNOP命令の数が減少しているので、不正がし難くなるという効果を奏する場合がある。   Of the “plurality of instructions constituting process B”, other than the “plurality of instructions constituting process C” (in the case of FIG. 357, one or more instructions constituting process b1, b2 One or a plurality of instructions and a call instruction C) may include a NOP instruction, and even if a NOP instruction is included, the number of NOP instructions is reduced by the call instruction C. There may be an effect that it becomes difficult.

NOP命令は上述の「処理Bを構成する複数の命令」のうち「処理Cを構成する複数の命令」以外の命令に一切含まれていなくてもよく、またROM306に記憶され、CPU304によって実行される全ての命令をNOP以外の命令としてもよい。   The NOP instruction may not be included in any instruction other than “a plurality of instructions constituting process C” among the above “a plurality of instructions constituting process B”, and is stored in ROM 306 and executed by CPU 304. All instructions may be instructions other than NOP.

ここで不正者による不正行為に利用される命令としてNOP命令を例示してきたが、"LD A,A"のようなCPUによって受け付けられ実行されても、当該実行の前後で何もかわらないような処理をNOP命令と同様に考えるようにしてもよい。   Here, the NOP instruction has been exemplified as an instruction used for an illegal act by an unauthorized person. However, even if it is accepted and executed by a CPU such as “LD A, A”, nothing happens before and after the execution. The processing may be considered in the same way as a NOP instruction.

またアドレスEからアドレスCを差し引いた値は、処理Bのサイズから処理Cのサイズを差し引いた値としてもよい場合がある。アドレスEからアドレスCを差し引いた値よりも、処理Bのサイズから処理Cのサイズを差し引いた値の方が小さくてもよい場合がある。   The value obtained by subtracting the address C from the address E may be a value obtained by subtracting the size of the process C from the size of the process B in some cases. The value obtained by subtracting the size of the process C from the size of the process B may be smaller than the value obtained by subtracting the address C from the address E.

図357について、処理a1、処理a2、処理a3、処理a4、処理b1、処理b2、および処理Dのうちの一または複数の処理を省略するようにしてもよい。また呼出命令Bについても省略してもよい。   In FIG. 357, one or more of the processing a1, processing a2, processing a3, processing a4, processing b1, processing b2, and processing D may be omitted. The call instruction B may also be omitted.

同一の処理(サブルーチン)の複数の命令に、先頭アドレスがアドレスCである処理Bを呼び出すことが指定された呼出命令Aと、アドレスEである処理Cを呼び出すことが指定された呼出命令Aと、が含まれていなくても、処理Aにおける複数の命令に先頭アドレスがアドレスCである処理Bを呼び出すことが指定された呼出命令Aが含まれ、処理Aとは別の処理Eにおける複数の命令に先頭アドレスがアドレスEである処理Cを呼び出すことが指定された呼出命令Aが含まれていてもよい。   A call instruction A that is designated to call a process B whose start address is an address C and a call instruction A that is designated to call a process C that is an address E to a plurality of instructions of the same process (subroutine) , The call instruction A specified to call the process B whose start address is the address C is included in the plurality of instructions in the process A, and a plurality of instructions in the process E different from the process A are included. The instruction may include a call instruction A that is designated to call the process C having the head address of the address E.

処理のサイズについては、当該処理から他の処理を呼び出す呼出命令のサイズは含むようにしてもよく、当該呼出命令によって呼び出された処理のサイズは含まないものとしてもよい。   As for the size of the process, the size of the call instruction for calling another process from the process may be included, and the size of the process called by the call instruction may not be included.

処理のステート数(処理時間)については、当該処理から他の処理を呼び出す呼出命令のステート数(処理時間)は含むようにしてもよく、また当該呼出命令によって呼び出された処理のステート数(処理時間)も含むようにしてもよい。   Regarding the number of processing states (processing time), the number of states (processing time) of a calling instruction that calls another processing from the processing may be included, and the number of processing states (processing time) called by the calling instruction. May also be included.

第一の命令(例えばCALL命令)は、ROM306に記憶された全ての遊技制御プログラムのうち、上述の呼出命令Aから呼び出されるサブルーチン内にのみ用いられるように構成されていてもよい。もちろん上述の呼出命令Aによって当該サブルーチンが呼び出されてから終了するまでの間にだけ用いられるように構成されていてもよく、例えば当該サブルーチンから呼び出されるサブルーチン内にのみ用いられているように構成されていてもよい。また上述の呼出命令Aから呼び出されるサブルーチン以外で用いられていてもよい   The first instruction (for example, CALL instruction) may be configured to be used only in a subroutine called from the above-described call instruction A among all the game control programs stored in the ROM 306. Of course, it may be configured to be used only during the period from when the subroutine is called by the call instruction A described above until it is terminated, for example, it may be configured to be used only within a subroutine called from the subroutine. It may be. Further, it may be used other than a subroutine called from the above-described calling instruction A.

第二の命令(例えばEXESUB命令)は、ROM306に記憶された全ての遊技制御プログラムのうち、上述の呼出命令Aから呼び出されるサブルーチン内にのみ用いられるように構成されていてもよい。もちろん上述の呼出命令Aによって当該サブルーチンが呼び出されてから終了するまでの間にだけ用いられるように構成されていてもよく、例えば当該サブルーチンから呼び出されるサブルーチン内にのみ用いられているように構成されていてもよい。また上述の呼出命令Aから呼び出されるサブルーチン以外で用いられていてもよい   The second instruction (for example, the EXESUB instruction) may be configured to be used only in the subroutine called from the above-described call instruction A among all the game control programs stored in the ROM 306. Of course, it may be configured to be used only during the period from when the subroutine is called by the call instruction A described above until it is terminated, for example, it may be configured to be used only within a subroutine called from the subroutine. It may be. Further, it may be used other than a subroutine called from the above-described calling instruction A.

なお、本実施例で例示した命令として他の実施例で例示した命令を適用してもよいし、逆に他の実施例で例示した命令の一形態として本実施例で例示した命令を適用してもよい。例えば第一、第二の呼出命令のうちの少なくとも一方の命令に、他の実施例で例示した"RST 40H"を適用しても良いし、第一、第二の呼出命令のうちの少なくとも一方の命令に、他の実施例で例示した「"RST 40H"以外の7つのRST命令のいずれか」を適用してもよい。
これらを包含するように記載すると、
Note that the instructions illustrated in the other embodiments may be applied as the instructions illustrated in the present embodiment, and conversely, the instructions illustrated in the present embodiment may be applied as a form of the instructions illustrated in the other embodiments. May be. For example, “RST 40H” exemplified in another embodiment may be applied to at least one of the first and second calling instructions, or at least one of the first and second calling instructions. In this instruction, “any of seven RST instructions other than“ RST 40H ”” exemplified in another embodiment may be applied.
When describing to include these,

CPUを内蔵するマイクロプロセッサを備えた遊技台Aであって、   A gaming table A having a microprocessor with a built-in CPU,

上述の遊技台Aは、ぱちんこ機またはスロットマシンであり、   The above-mentioned game machine A is a pachinko machine or a slot machine,

上述のCPUは、第一の命令(例えばCALL命令)を受け付けた場合に第一の動作を少なくとも実行可能なものであり、   The above-described CPU can execute at least a first operation when a first instruction (for example, a CALL instruction) is received,

上述のCPUは、第二の命令(例えばEXESUB命令)を受け付けた場合に第二の動作を少なくとも実行可能なものであり、   The above-described CPU can execute at least the second operation when receiving a second instruction (for example, the EXESUB instruction),

上述の第一の命令のサイズは、上述の第二の命令のサイズよりも大きいものであり、   The size of the first instruction is larger than the size of the second instruction,

上述のCPUは、第一の呼出命令(例えば、"RST 38H"、図135における命令コード"FFH"の命令等)を受け付けた場合に、第一のサブルーチンに含まれる第一の複数の命令を少なくとも受付可能なものであり、   When the above-described CPU receives a first call instruction (for example, an instruction of “RST 38H”, an instruction code “FFH” in FIG. 135, etc.), the CPU receives the first plurality of instructions included in the first subroutine. It ’s at least acceptable.

上述のCPUは、第二の呼出命令(例えば、"RST 40H"、図135における命令コード"C7H"の命令等)を受け付けた場合に、第二のサブルーチンに含まれる第二の複数の処理を少なくとも受付可能なものであり、   When the above-described CPU receives a second call instruction (for example, an instruction of “RST 40H”, an instruction code “C7H” in FIG. 135, etc.), the CPU executes the second plurality of processes included in the second subroutine. It ’s at least acceptable.

上述の第一の複数の命令は、第三の複数の命令および上述の第二の複数の命令から構成されたものである、   The first plurality of instructions is composed of a third plurality of instructions and the second plurality of instructions.

ことを特徴とする遊技台A。なお、この記載の一部の構成を省略してもよいし、複数の構成を省略してもよい。また命令コードの値は一例であり、他の値であってもよい。
遊技台Aについて、
A gaming table A characterized by that. Note that a part of the configuration described here may be omitted, or a plurality of configurations may be omitted. Further, the value of the instruction code is an example and may be another value.
About Amusement stand A

上述のCPUは、NOP命令を受け付けた場合に、当該NOP命令の次の命令を受け付けるものであり、   When the above-mentioned CPU accepts a NOP instruction, it accepts an instruction next to the NOP instruction.

上述の第三の複数の命令は、NOP命令を含まず、上述の第一の命令を少なくとも含むものであってもよい。
遊技台Aについて、
The third plurality of instructions described above may not include the NOP instruction but may include at least the first instruction described above.
About Amusement stand A

上述のCPUは、NOP命令を受け付けた場合に、当該NOP命令を受け付けた場合にのみ実行される動作は行わず、上述の次の命令を受け付けるものであってもよい。
遊技台Aについて、
When the above-described CPU receives a NOP command, the CPU may receive the above-mentioned next command without performing an operation that is executed only when the NOP command is received.
About Amusement stand A

上述の第二のサブルーチンの先頭アドレス(例えば40H等)から上述の第一のサブルーチンの先頭アドレス(例えば38H等)を引いた値(ここでは8バイト)は、上述の第三の複数の命令のサイズを示す値と等しいものであってもよい。
遊技台Aについて、
The value obtained by subtracting the start address (for example, 38H) of the first subroutine from the start address (for example, 40H) of the second subroutine is 8 bytes in this case. It may be equal to a value indicating the size.
About Amusement stand A

上述のCPUは、呼出命令を受け付けた場合に、当該呼出命令によって指定されたアドレスから始まるサブルーチンに含まれる複数の命令を少なくとも実行可能なものであり、当該複数の命令のうちの最後のRET命令を受け付けた場合に、当該呼出命令の次の命令を受け付けて少なくとも実行可能なものであってもよい。
遊技台Aについて、
When the CPU receives a call instruction, the CPU can execute at least a plurality of instructions included in a subroutine starting from an address specified by the call instruction, and the last RET instruction of the plurality of instructions If it is received, the instruction next to the call instruction may be received and at least executable.
About Amusement stand A

上述のCPUは、呼出命令を受け付けた場合に、当該呼出命令によって指定されたアドレスから始まるサブルーチンに含まれる複数の命令を少なくとも実行可能なものであり、当該複数の命令のうちの最後のRET命令を受け付けた場合に、当該呼出命令の次の命令を受け付けて少なくとも実行可能なものであってもよい。
遊技台Aについて、
When the CPU receives a call instruction, the CPU can execute at least a plurality of instructions included in a subroutine starting from an address specified by the call instruction, and the last RET instruction of the plurality of instructions If it is received, the instruction next to the call instruction may be received and at least executable.
About Amusement stand A

上述の第二の複数の命令における最後の命令を、上述のRET命令としてもよい、
遊技台Aについて、
The last instruction in the second plurality of instructions may be the RET instruction described above.
About Amusement stand A

上述の第一の複数の命令における最後の命令を、上述のRET命令としてもよい、   The last instruction in the first plurality of instructions may be the RET instruction described above.

上述の第一の複数の命令には、上述のRET命令が一つのみ含まれているものとしてもよい。
遊技台Aについて、
The first plurality of instructions may include only one RET instruction.
About Amusement stand A

上述の第二の複数の命令は、上述の第三の複数の命令に続いてROMに記憶されたものであり、   The second plurality of instructions are stored in the ROM following the third plurality of instructions,

上述の第三の複数の命令には、上述の第二のサブルーチンを呼び出す呼出命令が含まれていないものとしてもよい。   The third plurality of instructions described above may not include a call instruction for calling the second subroutine described above.

第二のサブルーチンの先頭アドレスとして40H、第一のサブルーチンの先頭アドレスとして38H等、第二のサブルーチンの先頭アドレスから第一のサブルーチンの先頭アドレスを引いた値が08H(8バイト)となる例を示したが、これに限定されず、第二のサブルーチンの先頭アドレスとして38H、第一のサブルーチンの先頭アドレスとして018H等としてもよい。第一のサブルーチンの先頭アドレスをRST命令で呼び出せるアドレスのうちのいずれかとしてもよいし、第二のサブルーチンの先頭アドレスをRST命令で呼び出せるアドレスのうちのいずれかとしてもよい。   An example in which the value obtained by subtracting the head address of the first subroutine from the head address of the second subroutine is 08H (8 bytes), such as 40H as the head address of the second subroutine and 38H as the head address of the first subroutine. Although shown, it is not limited to this, 38H may be used as the head address of the second subroutine, 018H may be used as the head address of the first subroutine, and the like. The head address of the first subroutine may be any address that can be called by the RST instruction, and the head address of the second subroutine may be any address that can be called by the RST instruction.

なお、第一、第二の呼出命令のうちの少なくとも一方の命令に、他の実施例で例示した"RST 40H"(第二のジャンプ命令)を適用しても良いし、第一、第二の呼出命令のうちの少なくとも一方の命令に、他の実施例で例示した「"RST 40H"以外の7つのRST命令のいずれか(第一のジャンプ命令)」を適用してもよい。例えば、第一の呼出命令に第二のジャンプ命令を適用し、第二の呼出命令に第一のジャンプ命令を適用してもよい。第一、第二の呼出命令やRST命令に限らず、本実施例で例示した命令として他の実施例で例示した命令を適用してもよいし、逆に他の実施例で例示した命令の一形態として本実施例で例示した命令を適用してもよい。   Note that "RST 40H" (second jump instruction) exemplified in the other embodiments may be applied to at least one of the first and second calling instructions, or the first and second instructions. The “any one of the seven RST instructions other than“ RST 40H ”(first jump instruction)” exemplified in another embodiment may be applied to at least one of the call instructions. For example, the second jump instruction may be applied to the first call instruction, and the first jump instruction may be applied to the second call instruction. Not limited to the first and second calling instructions and the RST instruction, the instructions exemplified in the other embodiments may be applied as the instructions exemplified in the present embodiment, and conversely, the instructions exemplified in the other embodiments may be applied. The instructions exemplified in this embodiment may be applied as one form.

上記実施形態では、内蔵デバイスが出力する割込みベクタとIレジスタとで作成したジャンプ先アドレスのデータとその次のアドレスのデータとを用いて割込み要求が発生した場合の処理の先頭アドレスを決めることを説明した。また、<第4特殊命令/RST命令>の項では、図135および図136を用いてRST命令について説明した。さらに、ここではそれらに関連する事項について図358および図359を用いて説明する。   In the above embodiment, it is possible to determine the start address of processing when an interrupt request is generated using the data of the jump destination address created by the interrupt vector output from the built-in device and the I register and the data of the next address. explained. In the section of <4th special instruction / RST instruction>, the RST instruction has been described with reference to FIGS. 135 and 136. Further, here, matters related to them will be described with reference to FIGS. 358 and 359.

まず、内蔵デバイスが出力する割込みベクタとIレジスタとで作成される割込み要求発生時のジャンプ先アドレスの決め方について説明する。Iレジスタは電源投入後に操作していないので00Hになっている。つまりジャンプ先アドレスの上位バイトは「00H」になっている。   First, a description will be given of how to determine a jump destination address when an interrupt request is generated by an interrupt vector output from an internal device and an I register. The I register is 00H because it is not operated after the power is turned on. That is, the upper byte of the jump destination address is “00H”.

図358は割込み初期設定レジスタの設定例を示している。割込み初期設定レジスタはプログラム管理エリア内の所定位置に設定される。図358に示すように、割込み初期設定レジスタのビット7〜4には、割込みベクタの上位4ビットが設定される。割込みベクタの上位4ビットはユーザが任意に決められる値である。以下、割込みベクタの上位4ビットを「XH」と表記する。ビット3はノンマスカブル割込み中の多重受付の禁止・許可をするためにあり、多重受付禁止の場合は「0」をセットし、多重受付許可の場合は「1」をセットする。ビット2〜0はマスカブル割込み要因の優先度の組合せを設定する。割込み要因にはタイマ回路のチャネル0のタイムアウトによる割込み(PT0I)やその他種々の割込み要因(図示の通り7個の割込み要因)がある。本例では、タイマ回路のチャネル0(例えば、図203のタイマ回路0)による割込み(PT0I)のみを有効にするものとする。なお、他の割込みを無効にしていれば、いずれの設定値でも問題ないが設定ミスを考慮してタイマ回路が優先されている。タイマ回路のチャネル0のタイムアウトによる割込み(PT0I)は図示の通り、00H〜02Hのいずれかが選択可能である。タイマ回路以外の割込みを無効にしているのであれば、00H〜02Hのいずれでもよいが、デフォルトの00Hから他の値に変えるとコーディングミスにつながる可能性があるので00Hを設定することが好ましい。このため、多重受付禁止としてビット3に「0」を設定した場合は割込みベクタの下位4ビットは0000Bとなり、多重受付許可としてビット3に「1」を設定した場合は割込みベクタの下位4ビットは1000Bとなる。これにより、割込みベクタの下位4ビットの設定値が16進数で0Hまたは8Hとなるのでコーディングや、チェックがし易くなる場合がある。遊技制御を安定して行うためにも割込みベクタの下位4ビットは0000Bか1000Bにするのが好ましい。こうすることにより、ジャンプ先アドレスの下位バイトは「X0H」または「X8H」になり、ジャンプ先アドレスは、「00X0H」または「00X8H」となる。なお、Iレジスタにデータを設定する場合には、「XXX0H」や「XXX8H」も設定可能である。   FIG. 358 shows a setting example of the interrupt initial setting register. The interrupt initial setting register is set at a predetermined position in the program management area. As shown in FIG. 358, the upper 4 bits of the interrupt vector are set in bits 7 to 4 of the interrupt initial setting register. The upper 4 bits of the interrupt vector are values arbitrarily determined by the user. Hereinafter, the upper 4 bits of the interrupt vector are expressed as “XH”. Bit 3 is for prohibiting / permitting multiple reception during non-maskable interrupts. When multiple reception is prohibited, “0” is set, and when multiple reception is permitted, “1” is set. Bits 2 to 0 set the priority combination of maskable interrupt factors. Interrupt factors include an interrupt due to timeout of channel 0 of the timer circuit (PT0I) and various other interrupt factors (seven interrupt factors as shown). In this example, it is assumed that only the interrupt (PT0I) by channel 0 of the timer circuit (for example, timer circuit 0 in FIG. 203) is enabled. If other interrupts are disabled, there is no problem with any set value, but the timer circuit is given priority in consideration of setting mistakes. As shown in the figure, the timer circuit channel 0 timeout interrupt (PT0I) can be selected from 00H to 02H. If interrupts other than the timer circuit are invalidated, any of 00H to 02H may be used. However, it is preferable to set 00H because changing from the default 00H to another value may lead to a coding error. Therefore, when “0” is set in bit 3 for prohibiting multiple acceptance, the lower 4 bits of the interrupt vector are 0000B, and when “1” is set for bit 3 for enabling multiple acceptance, the lower 4 bits of the interrupt vector are 1000B. As a result, the setting value of the lower 4 bits of the interrupt vector is 0H or 8H in hexadecimal, which may facilitate coding and checking. In order to perform game control stably, the lower 4 bits of the interrupt vector are preferably set to 0000B or 1000B. As a result, the lower byte of the jump destination address becomes “X0H” or “X8H”, and the jump destination address becomes “00X0H” or “00X8H”. When data is set in the I register, “XXX0H” or “XXX8H” can also be set.

ところで、RST命令では8種類のアドレス(0008H、0010H、0018H、0020H、0028H、0030H、0038H、0040H)だけにジャンプすることが可能となっている。つまり、(RST 40H)命令以外のRST命令で組み込めるモジュールの容量は8バイト未満であることが望ましい。仮に、ジャンプ先アドレスが0008Hから8バイトを超える大きさのモジュールを組み込むと次のジャンプ先アドレスの0010HのRST命令が実質的に使えなくなる。そこで、8バイトを超える大きさのモジュールを(RST 40H)命令により「0040H」がジャンプ先アドレスとなる領域に配置する場合がある。なお、RST 40Hで呼び出すモジュールのサイズが8バイトを超えるものを前提で説明するが、RST 40Hで呼び出すモジュールのサイズが8バイト未満であってももちろんよい。また、RST命令の8種類の各アドレスで呼び出すモジュールは、全てが8バイト丁度であってもよいし、全てが8バイト未満であってもよいし、また、一部のみが8バイト丁度であってもよいし、一部のみ8バイト未満であってもよい。また、RST 40Hで呼び出すモジュールのサイズのみが、8バイト丁度であってもよいし、8バイト未満であってもよい。このように、RST08〜40で呼び出すモジュールは8バイトでなくてもよく、一部を8バイト超にして一部を8バイト未満にしてもよい。あるいは、8バイト超のモジュールは、アドレスが「0038H」で用いてもよく、あるいは、「0040H」を超えないようにしてもよい。   By the way, it is possible to jump to only 8 types of addresses (0008H, 0010H, 0018H, 0020H, 0028H, 0030H, 0038H, 0040H) in the RST instruction. That is, the capacity of a module that can be incorporated by an RST instruction other than the (RST 40H) instruction is preferably less than 8 bytes. If a module having a jump destination address larger than 8 bytes from 0008H is incorporated, the 0010H RST instruction of the next jump destination address becomes substantially unusable. Therefore, a module having a size exceeding 8 bytes may be arranged in an area where “0040H” is a jump destination address by an (RST 40H) instruction. Note that the description will be made on the assumption that the size of the module called by the RST 40H exceeds 8 bytes, but the size of the module called by the RST 40H may naturally be less than 8 bytes. In addition, all the modules called at each of the eight types of addresses of the RST instruction may be exactly 8 bytes, all may be less than 8 bytes, or only some may be exactly 8 bytes. Alternatively, only a part may be less than 8 bytes. Also, only the size of the module called by RST 40H may be just 8 bytes or less than 8 bytes. As described above, the modules called in RST08 to 40 need not be 8 bytes, and some may be more than 8 bytes and some may be less than 8 bytes. Alternatively, a module having more than 8 bytes may be used with an address “0038H” or may not exceed “0040H”.

図359は、ROM領域内のアドレス0040Hからの一部領域を示している。同図(a)は、アドレス「0040H」をRST命令のジャンプ先アドレスとし、「0050H」を割込み要求発生時のジャンプ先アドレスとした場合を例示している。この場合には、8バイトを超える大きさのモジュールAが配置でき、残りは余り領域Bとなっている。本例で余り領域は、図356に示すNOP処理に相当している。同図(b)は、モジュールAの次のアドレスから他のモジュールB(例えば、EXESUB命令等によって呼び出されるモジュールである。なお、このモジュール内では、2バイトのジャンプ命令に代えてあえて3バイトのジャンプ命令を使用したりしてもよい)を組み込んで余り領域Dを余り領域Bより小さくしている。同図(c)は、「0060H」を割込み要求発生時のジャンプ先アドレスとした場合を例示している。この場合にはモジュールAの次のアドレスからモジュールAよりサイズの大きな他のモジュールEを組み込むことができる。また、余り領域Fが生じている。このように、割込み要求発生時のジャンプ先アドレスを調整することにより、アドレス0040Hから割込み要求発生時のジャンプ先アドレスまでのメモリ領域を有効に使うことができる場合がある。   FIG. 359 shows a partial area from the address 0040H in the ROM area. FIG. 6A illustrates a case where the address “0040H” is the jump destination address of the RST instruction and “0050H” is the jump destination address when the interrupt request is generated. In this case, a module A having a size exceeding 8 bytes can be arranged, and the remainder is a remaining area B. In this example, the surplus area corresponds to the NOP process shown in FIG. FIG. 5B shows a module that is called from the next address of module A by another module B (for example, an EXESUB instruction, etc. In this module, a 3-byte jump instruction is used instead of a 2-byte jump instruction. The jump area may be used), and the remainder area D is made smaller than the remainder area B. FIG. 6C illustrates a case where “0060H” is used as a jump destination address when an interrupt request is generated. In this case, another module E having a size larger than that of the module A can be incorporated from the next address of the module A. Moreover, the remainder area | region F has arisen. In this way, by adjusting the jump destination address when an interrupt request is generated, the memory area from the address 0040H to the jump destination address when an interrupt request is generated may be used effectively.

また、余り領域を現実的に0にするのは困難を伴うので、不正者による不正使用を極力排除するために、余り領域のサイズを例えば5バイトから1〜3バイト程度に小さくすることで、実質的に不正プログラムの挿入を困難にしている。[0]また、割込みベクタテーブルのアドレス(本例では0050H)よりも前に、RST命令で呼び出されるモジュールの他、複数のモジュールから読み出されるモジュールを配置することで、プログラムソースのチェックが容易に行えるようになる場合がある。いわゆる共通モジュールをチェックする場合は、0008Hから割込みベクタテーブルのアドレス(本例では0050H)の間をチェックすればよい。   In addition, since it is difficult to actually set the remaining area to 0, in order to eliminate unauthorized use by unauthorized persons as much as possible, by reducing the size of the remaining area from, for example, 5 bytes to 1 to 3 bytes, This effectively makes it difficult to insert malicious programs. [0] In addition to the module called by the RST instruction before the address of the interrupt vector table (0050H in this example), the module read from a plurality of modules can be arranged to easily check the program source. You may be able to do it. When checking a so-called common module, it is sufficient to check between 0008H and the address of the interrupt vector table (0050H in this example).

次に、上記実施形態9の変形例について図360を用いて説明する。同図(a)は、上記実施形態9の一体化パッケージ10120を示しており、同図(b)、(c)はその変形例を示している。同図(a)に示すように、一体化パッケージ10120は、端子のない中央部の幅x2が端子のある両側の幅x1より狭くなっている。同図(b)に示す一体化パッケージ10120は、端子のない中央部の幅x2が端子のある両側の幅x1より狭くなっている点は同図(a)のものと同じだが、さらに、パッケージ10120a側の角部に切欠き部が形成されており、幅x1、x2と同方向に測った切欠き部近傍を含む幅x3は、幅x1より短く、幅x2より長くなっている。同図(c)に示す一体化パッケージ10120は、パッケージ10120a側の角部に切欠き部が形成されており、幅x1、x2と同方向に測った切欠き部近傍の幅x3は、幅x1より短く、幅x2より長くなっている点は同図(b)のものと同じだが、さらに、パッケージ10120a先端面に凹部が形成されており、幅x1に直交する長手方向の幅に関して、凹部も切欠き部も含まない領域の幅y1に対し、凹部を含む領域の幅y2は幅y1より短くなっている。また、切欠き部近傍を含む幅y3も幅y1より短くなっている。   Next, a modification of the ninth embodiment will be described with reference to FIG. The figure (a) has shown the integrated package 10120 of the said Embodiment 9, The figure (b), (c) has shown the modification. As shown in FIG. 6A, in the integrated package 10120, the width x2 of the central portion without terminals is narrower than the width x1 of both sides with terminals. The integrated package 10120 shown in FIG. 5B is the same as that shown in FIG. 5A in that the width x2 of the central portion without terminals is narrower than the width x1 of both sides with terminals. A notch is formed at a corner on the 10120a side, and a width x3 including the vicinity of the notch measured in the same direction as the widths x1 and x2 is shorter than the width x1 and longer than the width x2. The integrated package 10120 shown in FIG. 6C has a notch formed at the corner on the package 10120a side, and the width x3 in the vicinity of the notch measured in the same direction as the widths x1 and x2 is the width x1. The point which is shorter and longer than the width x2 is the same as that of FIG. 5B, but further, a recess is formed on the front end surface of the package 10120a, and the recess is also related to the longitudinal width orthogonal to the width x1. The width y2 of the region including the recess is shorter than the width y1 with respect to the width y1 of the region not including the notch. Further, the width y3 including the vicinity of the notch is also shorter than the width y1.

なお、本発明に係る遊技台は、封入式パチンコ機やメダルレススロットマシンに適用することもできる。また、主制御部、第1副制御部、および第2副制御部をワンチップで構成してもよいし、主制御部と第1副制御部で双方向の通信が可能に構成してもよい。また、主制御部と第1副制御部で双方向の通信を可能とする一方で、第1副制御部から第2副制御部への通信は一方向の通信としてもよい。   The game machine according to the present invention can also be applied to a sealed pachinko machine or a medalless slot machine. In addition, the main control unit, the first sub control unit, and the second sub control unit may be configured as a single chip, or the main control unit and the first sub control unit may be configured to allow bidirectional communication. Good. Moreover, while enabling bidirectional communication between the main control unit and the first sub control unit, communication from the first sub control unit to the second sub control unit may be one-way communication.

また、本発明の実施の形態に記載された作用および効果は、本発明から生じる最も好適な作用および効果を列挙したに過ぎず、本発明による作用および効果は、本発明の実施の形態に記載されたものに限定されるものではない。また、実施形態に記載した複数の構成のうち、1つの構成に記載している内容を、他の構成に適用することでより遊技の幅を広げられる場合がある。したがって、例えば、WDTに基づくリセットに関する記載において、WDTタイムアウト信号(WDT起動信号)を指定エリア外走行禁止信号に読み替えて適用してもよい。   Further, the actions and effects described in the embodiments of the present invention only list the most preferable actions and effects resulting from the present invention, and the actions and effects according to the present invention are described in the embodiments of the present invention. It is not limited to what was done. Further, in some cases, the contents described in one configuration among the plurality of configurations described in the embodiments may be applied to other configurations to further widen the game. Therefore, for example, in the description related to the reset based on WDT, the WDT timeout signal (WDT activation signal) may be replaced with the out-of-designated area travel prohibition signal.

上記実施形態に基づく本発明は以下のように記述することもできる。
<付記A>
<付記A1>
CPUと、
The present invention based on the above embodiment can also be described as follows.
<Appendix A>
<Appendix A1>
CPU,

16ビットの乱数値を少なくとも発生可能な乱数回路と、   A random number circuit capable of generating at least a 16-bit random number value;

前記CPUを少なくとも搭載したマイクロプロセッサと、   A microprocessor equipped with at least the CPU;

取り込み条件の成立があった場合に、前記乱数値を少なくとも取り込み可能な乱数値レジスタと、
を少なくとも備えた遊技台であって、
A random value register capable of capturing at least the random number value when a capture condition is satisfied;
A game machine equipped with at least

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記マイクロプロセッサは、前記乱数回路を少なくとも内蔵するものであり   The microprocessor includes at least the random number circuit.

前記乱数回路は、複数のレジスタによって少なくとも制御されるものであり、   The random number circuit is at least controlled by a plurality of registers,

前記乱数値レジスタは、前記複数のレジスタのうちの少なくとも一つのレジスタであり、   The random value register is at least one of the plurality of registers;

前記CPUは、乱数値格納条件の成立があった場合に、前記乱数値レジスタに取り込まれている前記乱数値をレジスタペアに少なくとも格納可能なものであり、   The CPU is capable of storing at least the random value stored in the random value register in a register pair when a random value storage condition is satisfied,

前記レジスタペアは、前記CPUの汎用レジスタである第一および第二のレジスタの組み合わせによって少なくとも構成されるものであり、   The register pair is constituted at least by a combination of first and second registers that are general-purpose registers of the CPU,

前記CPUは、16ビットロード命令を少なくとも受け付け可能なものであり、   The CPU is capable of accepting at least a 16-bit load instruction;

前記乱数値格納条件は、前記CPUが前記16ビットロード命令を受け付けたことを少なくとも含むものである、
ことを特徴とする遊技台。
The random value storage condition includes at least that the CPU has received the 16-bit load instruction.
A game stand characterized by that.

付記A1に記載の遊技台において、「CPU」は、「CPUコア」を示すものとしてもよい。「乱数回路」が発生する乱数は擬似乱数であってもよい(上記実施形態における8ビット乱数および16ビット乱数は、8ビット擬似乱数、16ビット擬似乱数としてもよい)。
<付記A2>
付記A1に記載の遊技台であって、
In the gaming machine described in Appendix A1, “CPU” may indicate “CPU core”. The random number generated by the “random number circuit” may be a pseudo-random number (the 8-bit random number and the 16-bit random number in the above embodiment may be an 8-bit pseudo-random number or a 16-bit pseudo-random number).
<Appendix A2>
A game machine as set forth in Appendix A1,

前記マイクロプロセッサは、遊技制御プログラムが少なくとも記憶されているROMを少なくとも内蔵するものであり、   The microprocessor includes at least a ROM storing at least a game control program;

前記マイクロプロセッサは、少なくともランダム延長機能を有し、   The microprocessor has at least a random extension function;

前記ランダム延長機能は、前記遊技制御プログラムの実行開始タイミングをランダムに変化させることが可能なものである、
ことを特徴とする遊技台。
<付記A3>
付記A2に記載の遊技台であって、
The random extension function is capable of randomly changing the execution start timing of the game control program.
A game stand characterized by that.
<Appendix A3>
A game machine as set forth in Appendix A2,

前記マイクロプロセッサは、信号出力端子を少なくとも備えるものであり、   The microprocessor includes at least a signal output terminal,

前記信号出力端子からの出力は、少なくとも特定のタイミングで第一のレベルから該第一のレベルよりも高い第二のレベルに変化するものであり、   The output from the signal output terminal changes from a first level to a second level higher than the first level at least at a specific timing,

前記特定のタイミングは、前記ランダム延長機能の実行前である、
ことを特徴とする遊技台。
<付記A4>
The specific timing is before execution of the random extension function.
A game stand characterized by that.
<Appendix A4>

付記A2またはA3に記載の遊技台であって、   A game machine according to appendix A2 or A3,

少なくとも、セキュリティモードおよびユーザモードを備え、   At least with security mode and user mode,

前記遊技制御プログラムは、前記ユーザモードで実行されるユーザプログラムである、
ことを特徴とする遊技台。
<付記A5>
The game control program is a user program executed in the user mode.
A game stand characterized by that.
<Appendix A5>

付記A2からA4のいずれか一項に記載の遊技台であって、   The game stand according to any one of appendices A2 to A4,

前記遊技制御プログラムの実行開始は、システムリセットおよびユーザリセットのうちの少なくともいずれか一方を受け付けた後でおこなわれるものである、
ことを特徴とする遊技台。
<付記B>
<付記B1>
The execution start of the game control program is performed after receiving at least one of system reset and user reset.
A game stand characterized by that.
<Appendix B>
<Appendix B1>

乱数値を用いた制御を少なくとも実行可能な遊技制御手段と、   Game control means capable of executing at least control using random values;

前記乱数値を少なくとも発生可能な第一の乱数手段と、   First random number means capable of generating at least the random number value;

前記乱数値を少なくとも発生可能な第二の乱数手段と、
を少なくとも備えた遊技台であって、
A second random number means capable of generating at least the random value;
A game machine equipped with at least

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記第一の乱数手段は、第一の数値範囲から第一の乱数値を少なくとも発生可能なものであり、   The first random number means is capable of generating at least a first random value from a first numerical range,

前記第二の乱数手段は、第二の数値範囲から第二の乱数値を少なくとも発生可能なものであり、   The second random number means can generate at least a second random value from a second numerical range,

前記第一の乱数手段の更新開始時期は、前記第二の乱数手段の更新開始時期とは異なるものである、
ことを特徴とする遊技台
<付記B2>
付記B1に記載の遊技台であって、
The update start time of the first random number means is different from the update start time of the second random number means.
Game table <Appendix B2>
A gaming machine as set forth in Appendix B1,

第一の処理を少なくとも前記遊技制御は含むものであり、   The game control includes at least a first process,

前記第一の乱数手段の更新開始時期は、前記遊技制御手段による前記第一の処理の実行よりも後である、
ことを特徴とする遊技台。
<付記B3>
付記B2に記載の遊技台であって、
The update start time of the first random number means is after execution of the first process by the game control means,
A game stand characterized by that.
<Appendix B3>
A gaming machine as set forth in Appendix B2,

前記第二の乱数手段の更新開始時期は、前記遊技制御手段による前記第一の処理の実行よりも前である、
ことを特徴とする遊技台。
<付記B4>
The update start time of the second random number means is before the execution of the first process by the game control means,
A game stand characterized by that.
<Appendix B4>

付記B2またはB3に記載の遊技台であって、   A gaming table according to appendix B2 or B3,

前記第一の処理は、該第一の処理よりも後に実行される第二の処理の実行時期を変化させることが可能なものである、
ことを特徴とする遊技台。
<付記B5>
The first process is capable of changing the execution timing of the second process executed after the first process.
A game stand characterized by that.
<Appendix B5>

付記B1〜B4の何れかに記載の遊技台であって、   A gaming table according to any one of appendices B1 to B4,

前記第一の乱数手段と前記第二の乱数手段の少なくとも何れかに前記数値範囲の設定を少なくとも指示可能な第三の処理と、   A third process capable of at least instructing at least one of the first random number means and the second random number means to set the numerical range;

前記第一の乱数手段と前記第二の乱数手段の少なくとも何れかによって導出された値を少なくとも取得可能な第四の処理と、   A fourth process capable of obtaining at least a value derived by at least one of the first random number means and the second random number means;

前記第四の処理によって取得された値に基づく判定を少なくとも実行可能な第五の処理と、を少なくとも前記遊技制御は含むものであり、   The game control includes at least a fifth process capable of executing at least a determination based on the value acquired by the fourth process,

前記第一の数値範囲は、前記第三の処理によって設定されるものであり、   The first numerical range is set by the third process,

前記第二の数値範囲は、前記第三の処理によらずに設定されるものであり、   The second numerical range is set regardless of the third process,

前記第一の数値範囲が設定された場合に、前記第一の乱数手段の更新が開始可能であることを特徴とする遊技台。   The game machine, wherein the first random number means can be updated when the first numerical range is set.

なお、本件の「第一の乱数手段」は、ソフトウェアによる乱数カウンタにより構成されていてもよい。また、本件の「第二の乱数手段」は、ソフトウェアによる乱数カウンタにより構成されていてもよい。
<付記C>
<付記C1>
CPUと、
The “first random number means” in this case may be constituted by a random number counter by software. In addition, the “second random number means” in this case may be configured by a software-based random number counter.
<Appendix C>
<Appendix C1>
CPU,

乱数値を少なくとも発生可能な乱数回路と、   A random number circuit capable of generating at least a random value;

前記乱数値を用いた制御を少なくとも実行可能な遊技制御手段と、   Game control means capable of executing at least control using the random number value;

前記CPUを少なくとも搭載したマイクロプロセッサと、
を少なくとも備えた遊技台であって、
A microprocessor equipped with at least the CPU;
A game machine equipped with at least

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記マイクロプロセッサは、前記乱数回路を少なくとも内蔵するものであり   The microprocessor includes at least the random number circuit.

前記乱数回路の第一のチャネルは、第一の数値範囲から第一の乱数値を少なくとも発生可能なものであり、   The first channel of the random number circuit is capable of generating at least a first random value from a first numerical range;

前記乱数回路の第二のチャネルは、第二の数値範囲から第二の乱数値を少なくとも発生可能なものであり、   The second channel of the random number circuit is capable of generating at least a second random value from a second numerical range;

前記第一のチャネルの更新開始時期は、前記第二のチャネルの更新開始時期とは異なるものである、
ことを特徴とする遊技台。
<付記C2>
付記C1に記載の遊技台であって、
The update start time of the first channel is different from the update start time of the second channel.
A game stand characterized by that.
<Appendix C2>
A gaming machine as set forth in Appendix C1,

第一の処理を少なくとも前記遊技制御は含むものであり、   The game control includes at least a first process,

前記第一のチャネルの更新開始時期は、前記遊技制御手段による前記第一の処理の実行よりも後である、
ことを特徴とする遊技台。
<付記C3>
付記C2に記載の遊技台であって、
The update start time of the first channel is after execution of the first process by the game control means,
A game stand characterized by that.
<Appendix C3>
A gaming machine as set forth in Appendix C2,

前記第二のチャネルの更新開始時期は、前記遊技制御手段による前記第一の処理の実行よりも前である、
ことを特徴とする遊技台。
<付記C4>
The update start time of the second channel is before execution of the first process by the game control means.
A game stand characterized by that.
<Appendix C4>

付記C2またはC3に記載の遊技台であって、   A gaming table according to appendix C2 or C3,

前記第一の処理は、該第一の処理よりも後に実行される第二の処理の実行時期を変化させることが可能なものである、
ことを特徴とする遊技台。
<付記C5>
The first process is capable of changing the execution timing of the second process executed after the first process.
A game stand characterized by that.
<Appendix C5>

付記C1〜C4の何れかに記載の遊技台であって、   A gaming machine according to any one of appendices C1 to C4,

前記乱数回路に前記数値範囲の設定を少なくとも指示可能な第三の処理と、   A third process capable of at least instructing the random number circuit to set the numerical range;

前記乱数回路によって導出された値を少なくとも取得可能な第四の処理と、   A fourth process capable of obtaining at least the value derived by the random number circuit;

前記第四の処理によって取得された値に基づく判定を少なくとも実行可能な第五の処理と、を少なくとも前記遊技制御は含むものであり、   The game control includes at least a fifth process capable of executing at least a determination based on the value acquired by the fourth process,

前記第一の数値範囲は、前記第三の処理によって設定されるものであり、   The first numerical range is set by the third process,

前記第二の数値範囲は、前記第三の処理によらずに設定されるものであり、   The second numerical range is set regardless of the third process,

前記第一の数値範囲が設定された場合に、前記第一のチャネルの更新が開始可能であることを特徴とする遊技台。
<付記D>
<付記D1>
The game machine, wherein the first channel update can be started when the first numerical range is set.
<Appendix D>
<Appendix D1>

ウォッチドッグタイマが少なくとも内蔵されたマイクロプロセッサと、   A microprocessor with at least a built-in watchdog timer;

低電圧信号出力条件の成立があった場合に、低電圧信号を少なくとも出力可能な電圧監視手段と、
を備えた遊技台であって、
Voltage monitoring means capable of outputting at least a low voltage signal when a low voltage signal output condition is satisfied;
A game machine equipped with

前記低電圧信号出力条件は、監視している電源ラインの電圧が基準電圧よりも低いことを少なくとも含むものであり、   The low voltage signal output condition includes at least that the voltage of the power supply line being monitored is lower than a reference voltage,

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記ウォッチドッグタイマは、起動条件の成立があった場合に、少なくとも起動可能なものであり、   The watchdog timer can be started at least when a start condition is established,

前記ウォッチドッグタイマは、前記電圧監視手段による前記低電圧信号の出力が停止された後で、起動されるものである、
ことを特徴とする遊技台。
<付記D2>
付記D1に記載の遊技台であって、
The watchdog timer is started after the output of the low voltage signal by the voltage monitoring means is stopped.
A game stand characterized by that.
<Appendix D2>
A game machine as set forth in Appendix D1,

前記マイクロプロセッサは、遊技制御プログラムが少なくとも記憶されているROMを少なくとも備え、   The microprocessor includes at least a ROM storing at least a game control program,

前記マイクロプロセッサは、少なくともランダム延長機能を有し、   The microprocessor has at least a random extension function;

前記ランダム延長機能は、前記遊技制御プログラムの実行開始タイミングをランダムに変化させることが可能なものである、
ことを特徴とする遊技台。
<付記D3>
付記D2に記載の遊技台であって、
The random extension function is capable of randomly changing the execution start timing of the game control program.
A game stand characterized by that.
<Appendix D3>
A game machine according to appendix D2,

前記マイクロプロセッサは、信号出力端子を少なくとも備え、   The microprocessor includes at least a signal output terminal,

前記信号出力端子からの出力は、少なくとも特定のタイミングで第一のレベルから該第一のレベルよりも高い第二のレベルに変化するものであり、   The output from the signal output terminal changes from a first level to a second level higher than the first level at least at a specific timing,

前記特定のタイミングは、前記ランダム延長機能の実行前である、
ことを特徴とする遊技台。
<付記D4>
The specific timing is before execution of the random extension function.
A game stand characterized by that.
<Appendix D4>

付記D2またはD3に記載の遊技台であって、   A gaming machine according to appendix D2 or D3,

少なくとも、セキュリティモードおよびユーザモードを備え、   At least with security mode and user mode,

前記遊技制御プログラムは、前記ユーザモードで実行されるユーザプログラムである、
ことを特徴とする遊技台。
<付記D5>
The game control program is a user program executed in the user mode.
A game stand characterized by that.
<Appendix D5>

付記D2からD4のいずれか一項に記載の遊技台であって、   The game stand according to any one of appendices D2 to D4,

前記遊技制御プログラムの実行開始は、システムリセットおよびユーザリセットのうちの少なくともいずれか一方を受け付けた後でおこなわれるものである、
ことを特徴とする遊技台。
<付記E>
<付記E1>
The execution start of the game control program is performed after receiving at least one of system reset and user reset.
A game stand characterized by that.
<Appendix E>
<Appendix E1>

マイクロプロセッサを備えた遊技台であって、   A gaming machine with a microprocessor,

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記マイクロプロセッサのパッケージは、DIPパッケージであり、   The microprocessor package is a DIP package;

前記パッケージは、第一の領域と第二の領域を少なくとも含んで構成されたものであり、   The package includes at least a first region and a second region,

前記第二の領域の幅は、前記第一の領域の幅より狭いこと
を特徴とする遊技台。
<付記E2>
付記E1に記載の遊技台であって、
The game machine characterized in that the width of the second area is narrower than the width of the first area.
<Appendix E2>
A gaming machine as set forth in Appendix E1,

前記第一の領域の幅(x1)と前記第二の領域の幅(x2)は、前記第一の領域から前記第二の領域に続く方向に直交する方向の幅であること
を特徴とする遊技台。
<付記E3>
The width (x1) of the first region and the width (x2) of the second region are widths in a direction perpendicular to the direction from the first region to the second region. Amusement stand.
<Appendix E3>

付記E1またはE2に記載の遊技台であって、   A game machine according to appendix E1 or E2,

前記第一の領域の第一の側面、および該第一の側面に対向する第二の側面の各々に複数の端子が設けられており、   A plurality of terminals are provided on each of the first side surface of the first region and the second side surface facing the first side surface,

前記第二の領域の前記第一の側面および前記第二の側面には端子が設けられていないこと
を特徴とする遊技台。
<付記E4>
The game table according to claim 1, wherein terminals are not provided on the first side surface and the second side surface of the second region.
<Appendix E4>

付記E1からE3のいずれか一項に記載の遊技台であって、   The game stand according to any one of appendices E1 to E3,

前記パッケージは、前記第一の領域、前記第二の領域および第三の領域を少なくとも含んで構成されたものであり、   The package is configured to include at least the first region, the second region, and a third region,

前記第二の領域の幅は、前記第三の領域の幅より狭いこと
を特徴とする遊技台。
<付記E5>
付記E4に記載の遊技台であって、
The game machine characterized in that the width of the second area is narrower than the width of the third area.
<Appendix E5>
A gaming machine as set forth in Appendix E4,

前記第二の領域は、前記第一の領域および前記第二の領域の間に設けられていること
を特徴とする遊技台。
<付記F>
<付記F1>
The game machine characterized in that the second area is provided between the first area and the second area.
<Appendix F>
<Appendix F1>

遊技制御を少なくとも実行可能な遊技制御手段と、
を備えた遊技台であって、
Game control means capable of executing at least game control;
A game machine equipped with

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記遊技制御手段は、第一の数値取得条件の成立があった場合に、前記第一の数値を少なくとも取得可能なものであり、   The game control means can acquire at least the first numerical value when the first numerical value acquisition condition is satisfied,

前記遊技制御手段は、第二の数値取得条件の成立があった場合に、前記第二の数値を少なくとも取得可能なものである、
ことを特徴とする遊技台。
<付記F2>
付記F1に記載の遊技台であって、
The game control means can acquire at least the second numerical value when the second numerical value acquisition condition is satisfied.
A game stand characterized by that.
<Appendix F2>
A gaming machine as set forth in Appendix F1,

前記遊技制御手段は、当否判定条件の成立があった場合に、当否判定処理を少なくとも実行可能なものであり、   The game control means is capable of executing at least a success / failure determination process when a failure / notification condition is established,

前記当否判定処理は、前記第一の数値および前記第二の数値を少なくとも用いて実行されるものである、
ことを特徴とする遊技台。
<付記F3>
The success / failure determination process is executed using at least the first numerical value and the second numerical value.
A game stand characterized by that.
<Appendix F3>

付記F1またはF2に記載の遊技台であって、   A gaming machine according to appendix F1 or F2,

クロックを少なくとも生成可能なクロック生成回路と、   A clock generation circuit capable of generating at least a clock; and

前記クロックの入力に応じて乱数値を少なくとも更新可能な乱数値更新回路と、   A random value updating circuit capable of at least updating a random value according to the input of the clock;

取り込み条件の成立があった場合に、前記乱数値を少なくとも取り込み可能な乱数値レジスタと、
を備え、
A random value register capable of capturing at least the random number value when a capture condition is satisfied;
With

前記第一の数値および前記第二の数値のうちの少なくとも一方は、前記乱数値レジスタに取り込まれた前記乱数値である、
ことを特徴とする遊技台。
<付記F4>
付記F3に記載の遊技台であって、
At least one of the first numerical value and the second numerical value is the random number value taken into the random value register,
A game stand characterized by that.
<Appendix F4>
A gaming machine as set forth in Appendix F3,

前記乱数値は、16ビット乱数である、
ことを特徴とする遊技台。
<付記F5>
The random value is a 16-bit random number.
A game stand characterized by that.
<Appendix F5>

付記F1からF4のいずれか一項に記載の遊技台であって、   The game stand according to any one of appendices F1 to F4,

前記遊技制御手段は、遊技制御処理を少なくとも実行可能な主制御マイクロプロセッサを少なくとも含むものである、
ことを特徴とする遊技台。
<付記G>
<付記G1>
所定のセンサと、
The game control means includes at least a main control microprocessor capable of executing at least a game control process.
A game stand characterized by that.
<Appendix G>
<Appendix G1>
A given sensor;

制御プログラムデータで示される命令に基づいて複数の遊技制御処理を実行するCPUと、   A CPU that executes a plurality of game control processes based on instructions indicated by the control program data;

所定の数値範囲内で数値を更新するとともに、該数値を前記CPUへ送信可能に構成された乱数回路と、   A random number circuit configured to update a numerical value within a predetermined numerical range and transmit the numerical value to the CPU;

制御プログラムデータを記憶したROMと、を備え、
前記乱数回路は、
A ROM storing control program data,
The random number circuit includes:

保持指示を受けたことに基づいて更新されている前記数値を保持し、   Holds the numerical value that has been updated based on receiving the hold instruction,

送信指示を受けたことに基づいて保持されている該数値を送信するものであり、
前記CPUは、
The numerical value held based on receiving the transmission instruction is transmitted,
The CPU

前記複数の遊技制御処理それぞれをメイン制御および所定の周期ごとに実行される割込み制御のうちの少なくともいずれか一方の制御において実行し、   Each of the plurality of game control processes is executed in at least one of main control and interrupt control executed every predetermined cycle,

前記所定のセンサから出力される信号を監視する処理、該所定のセンサの監視結果の履歴が予め定められた所定のパターンと一致した否かを判定する第一の判定処理、および該第一の判定処理によって該所定のセンサの監視結果の履歴が該所定のパターンと一致したことに基づいて前記乱数回路に対して前記保持指示を行う処理を該割込み制御において実行し、   A process for monitoring a signal output from the predetermined sensor, a first determination process for determining whether a history of monitoring results of the predetermined sensor matches a predetermined pattern, and the first In the interrupt control, a process of performing the holding instruction to the random number circuit based on the fact that the monitoring result history of the predetermined sensor matches the predetermined pattern by the determination process,

該乱数回路に対して前記送信指示を行う処理を該メイン制御または該割込み制御において実行し、   The main control or the interrupt control performs a process of giving the transmission instruction to the random number circuit,

該乱数回路から送信された前記数値を用いた当否判定処理を該メイン制御または該割込み制御において実行し、   The main control or the interrupt control is executed in the main control or the interrupt control using the numerical value transmitted from the random number circuit.

演算処理、該演算処理の結果を用いて所定の条件が成立したか否かを判定する第二の判定処理、該第二の判定処理の判定結果に応じた処理に分岐させる分岐処理、および該分岐処理によって分岐された先の処理である分岐先処理を、少なくとも該割込み制御において実行し、   A calculation process, a second determination process for determining whether or not a predetermined condition is satisfied using a result of the calculation process, a branch process for branching to a process according to the determination result of the second determination process, and the A branch destination process that is a process branched by the branch process is executed at least in the interrupt control,

前記制御プログラムデータで示される単一の命令である特定の命令に基づいて、該演算処理、該第二の判定処理および該分岐処理を実行し、   Based on a specific instruction that is a single instruction indicated by the control program data, the arithmetic processing, the second determination processing, and the branch processing are executed,

該特定の命令に基づく処理に要する時間を同一にすることで、該第二の判定処理によって該所定の条件が成立したと判定された場合、および該判定処理によって該所定の条件が成立したと判定されなかった場合のいずれの場合であっても、同一のタイミングで該分岐先処理の実行を開始するものであることを特徴とする遊技台。
<付記G2>
所定のセンサと、
When it is determined that the predetermined condition is satisfied by the second determination process by making the time required for the process based on the specific instruction the same, and when the predetermined condition is satisfied by the determination process A game machine characterized by starting execution of the branch destination process at the same timing in any case where the determination is not made.
<Appendix G2>
A given sensor;

制御プログラムデータで示される命令に基づいて複数の遊技制御処理を実行するCPUと   A CPU for executing a plurality of game control processes based on instructions indicated by the control program data;

所定の数値範囲内で数値を更新するとともに、該数値を前記CPUへ送信可能に構成された乱数回路と、   A random number circuit configured to update a numerical value within a predetermined numerical range and transmit the numerical value to the CPU;

前記制御プログラムデータを記憶したROMと、を備え、
前記乱数回路は、
A ROM storing the control program data,
The random number circuit includes:

送信指示を受けたことに基づいて更新されている前記数値を送信するものであり、
前記CPUは、
The numerical value updated based on receiving the transmission instruction is transmitted,
The CPU

前記複数の遊技制御処理それぞれをメイン制御および所定の周期ごとに実行される割込み制御のうちの少なくともいずれか一方の制御において実行し、   Each of the plurality of game control processes is executed in at least one of main control and interrupt control executed every predetermined cycle,

前記所定のセンサから出力される信号を監視する処理、該所定のセンサの監視結果の履歴が予め定められた所定のパターンと一致した否かを判定する第一の判定処理、該第一の判定処理によって該所定のセンサの監視結果の履歴が該所定のパターンと一致したことに基づいて前記乱数回路に対して前記送信指示を行う処理を、該割込み制御において実行し、   A process for monitoring a signal output from the predetermined sensor, a first determination process for determining whether or not a history of monitoring results of the predetermined sensor matches a predetermined pattern, the first determination A process for performing the transmission instruction to the random number circuit based on the fact that the monitoring result history of the predetermined sensor matches the predetermined pattern by the process is executed in the interrupt control,

該乱数回路から送信された前記数値を用いた当否判定処理を該メイン制御または該割込み制御において実行し、   The main control or the interrupt control is executed in the main control or the interrupt control using the numerical value transmitted from the random number circuit.

演算処理、該演算処理の結果を用いて所定の条件が成立したか否かを判定する第二の判定処理、該第二の判定処理の判定結果に応じた処理に分岐させる分岐処理、および該分岐処理によって分岐された先の処理である分岐先処理を、少なくとも該割込み制御において実行し、   A calculation process, a second determination process for determining whether or not a predetermined condition is satisfied using a result of the calculation process, a branch process for branching to a process according to the determination result of the second determination process, and the A branch destination process that is a process branched by the branch process is executed at least in the interrupt control,

前記制御プログラムデータで示される単一の命令である特定の命令に基づいて、該演算処理、該第二の判定処理および該分岐処理を実行し、   Based on a specific instruction that is a single instruction indicated by the control program data, the arithmetic processing, the second determination processing, and the branch processing are executed,

該特定の命令に基づく処理に要する時間を同一にすることで、該第二の判定処理によって該所定の条件が成立したと判定された場合、および該判定処理によって該所定の条件が成立したと判定されなかった場合のいずれの場合であっても、同一のタイミングで該分岐先処理の実行を開始するものであることを特徴とする遊技台。
<付記H>
<付記H1>
When it is determined that the predetermined condition is satisfied by the second determination process by making the time required for the process based on the specific instruction the same, and when the predetermined condition is satisfied by the determination process A game machine characterized by starting execution of the branch destination process at the same timing in any case where the determination is not made.
<Appendix H>
<Appendix H1>

複数の遊技制御処理を実行するCPUと、   A CPU for executing a plurality of game control processes;

所定の数値範囲内で数値を更新するとともに、該数値を前記CPUへ送信可能に構成された乱数回路と、を備え、
前記乱数回路は、
A random number circuit configured to update a numerical value within a predetermined numerical value range and transmit the numerical value to the CPU,
The random number circuit includes:

前記所定の数値範囲を設定可能に構成され、   The predetermined numerical range is configured to be settable,

更新範囲設定指示を受けたことに基づいて該所定の数値範囲を設定し、   Set the predetermined numerical range based on receiving the update range setting instruction,

保持指示を受けたことに基づいて更新されている前記数値を保持し、   Holds the numerical value that has been updated based on receiving the hold instruction,

送信指示を受けたことに基づいて保持されている該数値を送信するものであり、
前記CPUは、
The numerical value held based on receiving the transmission instruction is transmitted,
The CPU

前記複数の遊技制御処理それぞれをメイン制御および所定の周期ごとに実行される割込み制御のうちの少なくともいずれか一方の制御において実行し、   Each of the plurality of game control processes is executed in at least one of main control and interrupt control executed every predetermined cycle,

前記乱数回路に対して前記保持指示を行う処理を該割込み制御において実行し、   In the interrupt control, a process for giving the holding instruction to the random number circuit is executed.

該乱数回路に対して前記送信指示を行う処理を該メイン制御または該割込み制御において実行し、   The main control or the interrupt control performs a process of giving the transmission instruction to the random number circuit,

該乱数回路から送信された前記数値を用いた当否判定処理を該メイン制御または該割込み制御において実行し、   The main control or the interrupt control is executed in the main control or the interrupt control using the numerical value transmitted from the random number circuit.

該複数の遊技制御処理が最初から実行される場合において、該乱数回路に対して前記更新範囲設定指示を行う処理、および該割込み制御を許可する処理それぞれを、該メイン制御において実行し、   When the plurality of game control processes are executed from the beginning, the main control performs the process of instructing the update range setting instruction to the random number circuit and the process of permitting the interrupt control.

該割込み制御が禁止されている状態において該乱数回路に対して該更新範囲設定指示を行う処理を実行し、   In a state where the interrupt control is prohibited, a process for instructing the update range setting to the random number circuit is executed,

該乱数回路に対して該更新範囲設定指示を行う処理を実行した後に該割込み制御を許可する処理を実行するものであることを特徴とする遊技台。
<付記H2>
A game machine characterized by executing processing for permitting the interrupt control after executing processing for instructing the update range to the random number circuit.
<Appendix H2>

複数の遊技制御処理を実行するCPUと、   A CPU for executing a plurality of game control processes;

所定の数値範囲内で数値を更新するとともに、該数値を前記CPUへ送信可能に構成された乱数回路と、を備え、
前記乱数回路は、
A random number circuit configured to update a numerical value within a predetermined numerical value range and transmit the numerical value to the CPU,
The random number circuit includes:

前記所定の数値範囲を設定可能に構成され、   The predetermined numerical range is configured to be settable,

更新範囲設定指示を受けたことに基づいて該所定の数値範囲を設定し、   Set the predetermined numerical range based on receiving the update range setting instruction,

送信指示を受けたことに基づいて更新されている前記数値を送信するものであり、
前記CPUは、
The numerical value updated based on receiving the transmission instruction is transmitted,
The CPU

前記複数の遊技制御処理それぞれをメイン制御および所定の周期ごとに実行される割込み制御のうちの少なくともいずれか一方の制御において実行し、   Each of the plurality of game control processes is executed in at least one of main control and interrupt control executed every predetermined cycle,

前記乱数回路に対して前記送信指示を行う処理を該割込み制御において実行し、   In the interrupt control, a process for instructing the transmission to the random number circuit is performed.

該乱数回路から送信された前記数値を用いた当否判定処理を該メイン制御または該割込み制御において実行し、   The main control or the interrupt control is executed in the main control or the interrupt control using the numerical value transmitted from the random number circuit.

該複数の遊技制御処理が最初から実行される場合において、該乱数回路に対して前記更新範囲設定指示を行う処理、および該割込み制御を許可する処理それぞれを、該メイン制御において実行し、   When the plurality of game control processes are executed from the beginning, the main control performs the process of instructing the update range setting instruction to the random number circuit and the process of permitting the interrupt control.

該割込み制御が禁止されている状態において該乱数回路に対して該更新範囲設定指示を行う処理を実行し、   In a state where the interrupt control is prohibited, a process for instructing the update range setting to the random number circuit is executed,

該乱数回路に対して該更新範囲設定指示を行う処理を実行した後に該割込み制御を許可する処理を実行するものであることを特徴とする遊技台。
<付記H3>
A game machine characterized by executing processing for permitting the interrupt control after executing processing for instructing the update range to the random number circuit.
<Appendix H3>

付記H1またはH2に記載の遊技台であって、   A gaming machine according to appendix H1 or H2,

前記複数の遊技制御処理を正常に復帰させるためのリセット回路を備え、
前記リセット回路は、
A reset circuit for normally returning the plurality of game control processes;
The reset circuit is

前記複数の遊技制御処理の進行に関する異常が発生したか否かを判定するとともに、該判定によって該異常が発生したと判定されたことに基づいて復帰指示を前記CPUに対して行うものであり、
前記CPUは、
It is determined whether or not an abnormality relating to the progress of the plurality of game control processes has occurred, and a return instruction is given to the CPU based on the determination that the abnormality has occurred.
The CPU

前記復帰指示を受けた場合において前記複数の遊技制御処理を最初から実行するものであることを特徴とする遊技台。
<付記H4>
付記H3に記載の遊技台であって、
A gaming table characterized by executing the plurality of gaming control processes from the beginning when receiving the return instruction.
<Appendix H4>
A gaming machine as set forth in Appendix H3,

前記CPU、前記乱数回路および前記リセット回路を少なくとも有するマイクロプロセッサを備え、
前記マイクロプロセッサは、
A microprocessor having at least the CPU, the random number circuit, and the reset circuit;
The microprocessor is

少なくとも前記リセット回路によって前記異常が発生したと判定されたことに基づいて、セキュリティチェックが行われるセキュリティモードに所定の期間に亘り滞在した後、前記CPUによって前記複数の遊技制御処理が実行されるユーザモードへ移行するものであることを特徴とする遊技台。
<付記I>
<付記I1>
A user who executes the plurality of game control processes by the CPU after staying in a security mode in which a security check is performed for a predetermined period based on at least the determination that the abnormality has occurred by the reset circuit A game table characterized by transitioning to a mode.
<Appendix I>
<Appendix I1>

複数の遊技制御処理を実行するCPUと、   A CPU for executing a plurality of game control processes;

前記複数の遊技制御処理を正常に復帰させるためのリセット回路と、   A reset circuit for normally returning the plurality of game control processes;

遊技に関するデータを記憶するRWMと、備え、
前記RWMは、
RWM that stores data related to games, and
The RWM is

前記複数の遊技制御処理を正常に復帰させるための復帰データを記憶し、   Storing return data for normally returning the plurality of game control processes;

電源ステータスの情報を記憶する所定の記憶領域を有するものであり、
前記リセット回路は、
It has a predetermined storage area for storing power status information,
The reset circuit is

開始指示を受けたことに基づいて経過時間の計測を開始し、   Start measuring elapsed time based on receiving the start instruction,

再開始指示を受けたことに基づいて計測している該経過時間を初期化するとともに、初期化された該経過時間の計測を再び開始し、   Initializing the elapsed time being measured based on receiving the restart instruction, and restarting the measurement of the elapsed time initialized,

該経過時間が予め定められた所定の時間となったか否かを判定し、   It is determined whether the elapsed time has reached a predetermined time,

該経過時間が該所定の時間となったと判定したことに基づいて前記CPUに対して復帰指示を行うものであり、
前記CPUは、
Instructing the CPU to return based on the determination that the elapsed time has reached the predetermined time,
The CPU

前記複数の遊技制御処理それぞれをメイン制御および所定の周期ごとに実行される割込み制御のうちの少なくともいずれか一方の制御において実行し、   Each of the plurality of game control processes is executed in at least one of main control and interrupt control executed every predetermined cycle,

電源が遮断される場合において該電源が遮断されることを示す所定のデータを前記所定の記憶領域に記憶させる処理を実行し、   Executing a process of storing predetermined data indicating that the power supply is cut off in the predetermined storage area when the power supply is cut off;

前記復帰指示を受けた場合には該所定のデータを該所定の記憶領域に記憶させる処理を実行せず、   When the return instruction is received, the process of storing the predetermined data in the predetermined storage area is not executed,

該電源が投入された場合または前記復帰指示を受けた場合において該複数の遊技制御処理を最初から実行し、   When the power is turned on or when the return instruction is received, the plurality of game control processes are executed from the beginning,

該複数の遊技制御処理を最初から実行する場合において該所定の記憶領域に該所定のデータが記憶されているか否かを判定する判定処理を実行し、   A determination process for determining whether or not the predetermined data is stored in the predetermined storage area when the plurality of game control processes are executed from the beginning;

該判定処理によって該所定の記憶領域に該所定のデータが記憶されていると判定された場合には、前記復帰データを用いた復帰処理を実行することが可能であり   When it is determined by the determination process that the predetermined data is stored in the predetermined storage area, a return process using the return data can be executed.

該判定処理によって該所定の記憶領域に該所定のデータが記憶されていないと判定された場合には、該復帰処理を実行することが不可能であり、   If it is determined by the determination process that the predetermined data is not stored in the predetermined storage area, it is impossible to execute the return process;

前記再開始指示を行う処理を前記割込み制御において実行し、   The process for performing the restart instruction is executed in the interrupt control,

少なくとも該復帰処理を実行した後であり、かつ最初の該割込み制御が実行される前に、前記リセット回路に対して前記開始指示を行う処理を実行するものであることを特徴とする遊技台。
<付記I2>
付記I1に記載の遊技台であって、
A game machine characterized by executing a process of giving the start instruction to the reset circuit at least after the return process is executed and before the first interrupt control is executed.
<Appendix I2>
A gaming machine as set forth in Appendix I1,

前記CPU、前記リセット回路および前記RWMを少なくとも有するマイクロプロセッサを備え、
前記マイクロプロセッサは、
A microprocessor having at least the CPU, the reset circuit, and the RWM;
The microprocessor is

少なくとも前記リセット回路によって前記経過時間が前記所定の時間となったと判定されたことに基づいて、セキュリティチェックが行われるセキュリティモードに所定の期間に亘り滞在した後、前記CPUによって前記複数の遊技制御処理が実行されるユーザモードへ移行するものであることを特徴とする遊技台。
<付記I3>
The plurality of game control processes are performed by the CPU after staying in a security mode in which a security check is performed for a predetermined period based on at least the reset circuit determining that the elapsed time has reached the predetermined time. A game table that shifts to a user mode in which is executed.
<Appendix I3>

複数の遊技制御処理を実行するCPUと、   A CPU for executing a plurality of game control processes;

前記複数の遊技制御処理を正常に復帰させるためのリセット回路と、   A reset circuit for normally returning the plurality of game control processes;

遊技に関するデータを記憶するRWMと、備え、
前記RWMは、
RWM that stores data related to games, and
The RWM is

前記複数の遊技制御処理を正常に復帰させるための復帰データを記憶し、   Storing return data for normally returning the plurality of game control processes;

電源ステータスの情報を記憶する所定の記憶領域を有するものであり、   It has a predetermined storage area for storing power status information,

前記リセット回路は、開始指示を受けたことに基づいて経過時間の計測を開始し、   The reset circuit starts measuring elapsed time based on receiving a start instruction,

再開始指示を受けたことに基づいて計測している該経過時間を初期化するとともに、初期化された該経過時間の計測を再び開始し、   Initializing the elapsed time being measured based on receiving the restart instruction, and restarting the measurement of the elapsed time initialized,

該経過時間が予め定められた所定の時間となったか否かを判定し、   It is determined whether the elapsed time has reached a predetermined time,

該経過時間が該所定の時間となったと判定したことに基づいて前記CPUに対して復帰指示を行うものであり、
前記CPUは、
Instructing the CPU to return based on the determination that the elapsed time has reached the predetermined time,
The CPU

前記複数の遊技制御処理それぞれをメイン制御および所定の周期ごとに実行される割込み制御のうちの少なくともいずれか一方の制御において実行し、   Each of the plurality of game control processes is executed in at least one of main control and interrupt control executed every predetermined cycle,

電源が遮断される場合において該電源が遮断されることを示す所定のデータを前記所定の記憶領域に記憶させる処理を実行し、   Executing a process of storing predetermined data indicating that the power supply is cut off in the predetermined storage area when the power supply is cut off;

前記復帰指示を受けた場合には該所定のデータを該所定の記憶領域に記憶させる処理を実行せず、   When the return instruction is received, the process of storing the predetermined data in the predetermined storage area is not executed,

該電源が投入された場合または前記復帰指示を受けた場合において該複数の遊技制御処理を最初から実行し、   When the power is turned on or when the return instruction is received, the plurality of game control processes are executed from the beginning,

該複数の遊技制御処理を最初から実行する場合において該所定の記憶領域に該所定のデータが記憶されているか否かを判定する判定処理を実行し、   A determination process for determining whether or not the predetermined data is stored in the predetermined storage area when the plurality of game control processes are executed from the beginning;

該判定処理によって該所定の記憶領域に該所定のデータが記憶されていると判定された場合には、前記復帰データを用いた復帰処理を実行することが可能であり、   If it is determined by the determination process that the predetermined data is stored in the predetermined storage area, a return process using the return data can be executed.

該判定処理によって該所定の記憶領域に該所定のデータが記憶されていないと判定された場合には、前記復帰データを初期化する初期化処理を実行し、   If it is determined by the determination process that the predetermined data is not stored in the predetermined storage area, an initialization process for initializing the return data is executed,

前記再開始指示を行う処理を前記割込み制御において実行し、   The process for performing the restart instruction is executed in the interrupt control,

少なくとも該初期化処理を実行した後であり、かつ最初の該割込み制御が実行される前に、前記リセット回路に対して前記開始指示を行う処理を実行するものであることを特徴とする遊技台。
<付記J>
<付記J1>
A game machine characterized by executing a process of giving the start instruction to the reset circuit at least after the initialization process is executed and before the first interrupt control is executed. .
<Appendix J>
<Appendix J1>

CPUを有し、遊技制御を行う遊技制御手段を備えた遊技台であって、   A game machine having a CPU and game control means for controlling game,

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記CPUは、マイクロコンピュータに内蔵され、   The CPU is built in a microcomputer,

前記CPUは、少なくとも特定レジスタを備え、   The CPU includes at least a specific register,

前記CPUは、前記特定レジスタに値をセットする機能のうち、ロード命令を受けたことに基づいて行われるものとしては、直値により値をセットする機能のみを有することを特徴とする遊技台。
<付記J2>
付記J1に記載の遊技台であって、
Among the functions for setting a value in the specific register, the CPU has only a function for setting a value based on a direct value as a function that is performed based on receiving a load instruction.
<Appendix J2>
A game machine as set forth in Appendix J1,

前記CPUは、前記特定レジスタに値をセットする機能のうち、ロード命令を受けたことに基づいて行われるもの以外のものとして、所定の値を初期値としてセットする機能を少なくとも有することを特徴とする遊技台。
<付記J3>
The CPU has at least a function of setting a predetermined value as an initial value as a function other than that performed based on receiving a load command among the functions of setting a value in the specific register. To play.
<Appendix J3>

付記J1またはJ2に記載の遊技台であって、
演出制御を行う演出制御手段を備え、
A gaming machine according to appendix J1 or J2,
Providing production control means for performing production control,

前記CPUを内蔵した前記マイクロコンピュータは、前記演出制御手段に搭載されず、前記遊技制御手段にのみ搭載されることを特徴とする遊技台。
<付記J4>
The gaming machine according to claim 1, wherein the microcomputer incorporating the CPU is not mounted on the effect control means but only on the game control means.
<Appendix J4>

付記J1またはJ2に記載の遊技台であって、
演出制御を行う演出制御手段と、
A gaming machine according to appendix J1 or J2,
Production control means for performing production control;

払出制御を行う払出制御手段と、を備え、   A payout control means for performing payout control,

前記CPUを内蔵した前記マイクロコンピュータは、前記演出制御手段に搭載されず、前記遊技制御手段および前記払出制御手段のうちの少なくとも一方に搭載されることを特徴とする遊技台。
<付記K>
<付記K1>
CPUと、
The gaming machine according to claim 1, wherein the microcomputer incorporating the CPU is not mounted on the effect control means but is mounted on at least one of the game control means and the payout control means.
<Appendix K>
<Appendix K1>
CPU,

遊技制御プログラムが記憶されたROMと、
データを一時記憶可能なRAMと、
ROM storing a game control program;
RAM that can temporarily store data;

を内蔵するマイクロコンピュータを備えた遊技台であって、 A game machine equipped with a microcomputer incorporating

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記CPUは、少なくとも特定のレジスタを有し、   The CPU has at least a specific register,

前記RAMの先頭アドレスの上位バイトは、前記ROMの先頭アドレスの上位バイトよりも大きく、   The upper byte of the start address of the RAM is larger than the upper byte of the start address of the ROM,

前記CPUは、前記特定のレジスタに値をセットする機能のうち、ロード命令を受けたことに基づいて行われるものとしては、直値により値をセットする機能のみを有し、   Among the functions for setting a value in the specific register, the CPU has only a function for setting a value based on a direct value, as performed based on receiving a load instruction,

前記CPUは、前記特定のレジスタに値をセットする機能のうち、前記ロード命令を受けたことに基づいて行われるもの以外のものとしては、前記RAMの先頭アドレスの上位バイトと同じ値を初期値としてセットする機能を少なくとも有する、
ことを特徴とする遊技台。
<付記K2>
付記K1に記載の遊技台であって、
The CPU sets the value in the specific register other than that performed based on receiving the load instruction, and the initial value is the same value as the upper byte of the top address of the RAM. Having at least a function to set as,
A game stand characterized by that.
<Appendix K2>
The game stand according to appendix K1,

前記マイクロコンピュータは、リセット信号を入力してから、前記CPUによる前記遊技制御プログラムの実行が開始されるまでの間に、該遊技制御プログラムの認証を行うセキュリティチェックを少なくとも実行するセキュリティモードに移行可能であり、   The microcomputer can shift to a security mode in which at least a security check for authenticating the game control program is executed after the reset signal is input and before the execution of the game control program by the CPU is started. And

該セキュリティモードの時間は、ランダムな時間分の延長が可能である、
ことを特徴とする遊技台。
<付記K3>
付記K2に記載の遊技台であって、
The time of the security mode can be extended for a random time.
A game stand characterized by that.
<Appendix K3>
A game machine as set forth in Appendix K2,

前記初期値のセットは、前記CPUが前記遊技制御プログラムの実行開始前に該遊技制御プログラムによらずに行うものであることを特徴とする遊技台。
<付記K4>
The gaming machine is characterized in that the initial value is set by the CPU without depending on the game control program before the execution of the game control program is started.
<Appendix K4>

付記K2またはK3に記載の遊技台であって、   A game stand according to appendix K2 or K3,

前記遊技制御プログラムの実行開始は、前記リセット信号の入力によるシステムリセットおよびユーザーリセットのうちの少なくともいずれか一方を受け付けた後で行われることを特徴とする遊技台。
<付記K5>
The game machine is characterized in that execution of the game control program is performed after receiving at least one of a system reset and a user reset by inputting the reset signal.
<Appendix K5>

付記K2〜K4のいずれかに記載の遊技台であって、   The game stand according to any one of appendices K2 to K4,

少なくとも、前記セキュリティモードと、ユーザーモードを備え、   At least the security mode and the user mode,

前記遊技制御プログラムは、前記ユーザーモードで実行されるユーザープログラムであることを特徴とする遊技台。
<付記K6>
The gaming machine, wherein the game control program is a user program executed in the user mode.
<Appendix K6>

付記K1〜K5のいずれかに記載の遊技台であって、
遊技制御を行う遊技制御手段と、
The game stand according to any one of appendices K1 to K5,
Game control means for performing game control;

演出制御を行う演出制御手段と、を備え、   Production control means for performing production control,

前記マイクロコンピュータは、前記演出制御手段に搭載されず、前記遊技制御手段にのみ搭載されることを特徴とする遊技台。
<付記K7>
The gaming machine is characterized in that the microcomputer is not mounted on the effect control means but only on the game control means.
<Appendix K7>

付記K1〜K5のいずれかに記載の遊技台であって、
遊技制御を行う遊技制御手段と、
演出制御を行う演出制御手段と、
The game stand according to any one of appendices K1 to K5,
Game control means for performing game control;
Production control means for performing production control;

払出制御を行う払出制御手段と、を備え、   A payout control means for performing payout control,

前記マイクロコンピュータは、前記演出制御手段に搭載されず、前記遊技制御手段および前記払出制御手段のうちの少なくとも一方に搭載されることを特徴とする遊技台。
<付記L>
<付記L1>
The gaming machine is characterized in that the microcomputer is mounted on at least one of the game control means and the payout control means without being mounted on the effect control means.
<Appendix L>
<Appendix L1>

複数のアドレスそれぞれで示される記憶領域に制御プログラムデータおよび該制御プログラムデータに基づいて参照される参照データを含む複数種類のデータを記憶したROMと、   ROM storing a plurality of types of data including control program data and reference data referenced based on the control program data in a storage area indicated by each of a plurality of addresses;

前記ROMに記憶された前記制御プログラムデータおよび前記参照データに基づいて所定の周期毎に実行される割込み処理を含む複数種類の遊技制御処理を実行するCPUと、
を備え、
前記ROMは、
A CPU for executing a plurality of types of game control processes including an interrupt process executed at predetermined intervals based on the control program data and the reference data stored in the ROM;
With
The ROM is

1又は複数の前記制御プログラムデータであって、前記CPUが実行する複数種類の命令それぞれに対応した命令データと、   Instruction data corresponding to each of a plurality of types of instructions executed by the CPU;

1又は複数の前記制御プログラムデータであって、前記CPUが該命令を実行するために必要な補足データと、を記憶し、   One or a plurality of the control program data, and the CPU stores supplemental data necessary for the CPU to execute the instructions,

前記命令データであって、特定のアドレスを識別可能にする特定識別情報の一部である第1の識別情報を示す第1のアドレスデータおよび該第1のアドレスデータと異なる別データで構成され、該特定のアドレスで示される記憶領域に記憶されたデータを前記CPUに読み込ませる特定命令に対応した特定命令データと、   The command data is composed of first address data indicating first identification information which is a part of specific identification information enabling identification of a specific address, and different data different from the first address data, Specific instruction data corresponding to a specific instruction for causing the CPU to read data stored in the storage area indicated by the specific address;

前記補足データであって、前記特定識別情報から前記第1の識別情報を除いた情報である第2の識別情報を示す第2のアドレスデータで構成され、前記CPUが該特定命令を実行するために必要な特定補足データと、を前記割込み処理で実行される命令に対応するように記憶し、   The supplementary data is composed of second address data indicating second identification information, which is information obtained by removing the first identification information from the specific identification information, and the CPU executes the specific instruction. Specific supplementary data necessary for the interrupt processing is stored so as to correspond to the instruction executed in the interrupt processing,

前記特定命令の実行により前記CPUが読み込み可能な特定の記憶領域に全ての前記制御プログラムデータを記憶し、   Storing all of the control program data in a specific storage area readable by the CPU by execution of the specific instruction;

全ての制御プログラムデータが記憶された前記特定の記憶領域とは異なる記憶領域に、前記参照データを記憶していることを特徴とする遊技台。
<付記M>
<付記M1>
A game table, wherein the reference data is stored in a storage area different from the specific storage area in which all control program data is stored.
<Appendix M>
<Appendix M1>

少なくとも第一から第四のレジスタを備え、上位レジスタおよび下位レジスタからなるレジスタペアを用いた処理を実行可能であるCPUと、   A CPU including at least first to fourth registers, and capable of executing processing using a register pair including an upper register and a lower register;

遊技制御プログラムを記憶するROMと、を内蔵するマイクロコンピュータを備えた遊技台であって、   A gaming machine including a ROM that stores a game control program and a microcomputer incorporating the ROM,

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記CPUは、第一の命令と第二の命令を含む複数の命令を実行可能であり、   The CPU is capable of executing a plurality of instructions including a first instruction and a second instruction,

少なくとも前記第一のレジスタと前記第二のレジスタの二つのレジスタの組み合わせは、前記レジスタペアのうちの所定のレジスタペアであり、   The combination of at least two of the first register and the second register is a predetermined register pair of the register pair,

前記第三のレジスタと前記第四のレジスタの少なくともいずれかは、前記上位レジスタであり、   At least one of the third register and the fourth register is the upper register,

前記第一の命令が実行されたことに基づいて、前記所定のレジスタペアに格納された値によって示される第一のアドレスが示す領域に格納された第一の値が前記第四のレジスタにセットされ、該第一のアドレスと連続する第二のアドレスが示す領域に格納された第二の値が前記第三のレジスタにセットされ、該所定のレジスタペアの値が該第二のアドレスと連続するアドレスを示す値になり、   Based on the execution of the first instruction, the first value stored in the area indicated by the first address indicated by the value stored in the predetermined register pair is set in the fourth register. The second value stored in the area indicated by the second address continuous with the first address is set in the third register, and the value of the predetermined register pair is continuous with the second address. Value indicating the address to be

前記第二の命令が実行されたことに基づいて、前記所定のレジスタペアに格納された値によって示される第一のアドレスと連続する第二のアドレスが示す領域に格納された第二の値が前記第四のレジスタにセットされ、該第二のアドレスと連続する第三のアドレスが示す領域に格納された第三の値が前記第三のレジスタにセットされ、該所定のレジスタペアの値が該第三のアドレスを示す値になり、   Based on the execution of the second instruction, the second value stored in the area indicated by the second address continuous with the first address indicated by the value stored in the predetermined register pair is A third value set in the fourth register and stored in an area indicated by a third address that is continuous with the second address is set in the third register, and the value of the predetermined register pair is A value indicating the third address,

前記CPUは、前記レジスタペアとは異なる前記第三のレジスタと前記第四のレジスタの二つのレジスタの組み合わせに前記ROMに格納された値を一命令でセットすることが可能であるとともに、前記所定のレジスタペアの値を変化させる所定の機能としては、前記第一の命令を受けたことに基づいて値をセットする第一の機能と前記第二の命令を受けたことに基づいて値をセットする第二の機能の二つを少なくとも有し、   The CPU can set the value stored in the ROM in a combination of two registers, the third register and the fourth register, which are different from the register pair, with one instruction. As a predetermined function for changing the value of the register pair, the first function for setting a value based on receiving the first instruction and the value based on receiving the second instruction are set. Having at least two of the second functions to

前記CPUは、少なくとも特定レジスタを備え、   The CPU includes at least a specific register,

前記CPUは、前記特定レジスタに値をセットする機能のうち、ロード命令を受けたことに基づいて行われるものとしては、直値により値をセットする機能のみを有する、
ことを特徴とする遊技台。
<付記M2>
付記M1に記載の遊技台であって、
Among the functions for setting a value in the specific register, the CPU has only a function for setting a value by a direct value as a function that is performed based on receiving a load instruction.
A game stand characterized by that.
<Appendix M2>
A gaming machine as set forth in Appendix M1,

前記レジスタペアは、スタック領域に16ビットの値をセットするプッシュ命令において用いられることが可能な二つのレジスタの組み合わせであることを特徴とする遊技台。
<付記M3>
2. The game table according to claim 1, wherein the register pair is a combination of two registers that can be used in a push instruction for setting a 16-bit value in a stack area.
<Appendix M3>

付記M1またはM2に記載の遊技台であって、   A gaming machine as set forth in Appendix M1 or M2,

前記CPUは、前記特定レジスタに値をセットする機能のうち、前記ロード命令を受けたことに基づいて行われるもの以外のものとして、所定の値を初期値としてセットする機能を少なくとも有することを特徴とする遊技台。
<付記M4>
The CPU has at least a function of setting a predetermined value as an initial value as a function other than that performed based on receiving the load instruction among functions for setting a value in the specific register. A game table.
<Appendix M4>

付記M1〜M3のいずれかに記載の遊技台であって、
演出制御を行う演出制御手段を備え、
A gaming machine according to any one of appendices M1 to M3,
Providing production control means for performing production control,

前記CPUを内蔵した前記マイクロコンピュータは、前記演出制御手段に搭載されず、前記遊技制御手段にのみ搭載されることを特徴とする遊技台。
<付記M5>
The gaming machine according to claim 1, wherein the microcomputer incorporating the CPU is not mounted on the effect control means but only on the game control means.
<Appendix M5>

付記M1〜M3のいずれかに記載の遊技台であって、
演出制御を行う演出制御手段と、
A gaming machine according to any one of appendices M1 to M3,
Production control means for performing production control;

払出制御を行う払出制御手段と、を備え、   A payout control means for performing payout control,

前記CPUを内蔵した前記マイクロコンピュータは、前記演出制御手段に搭載されず、前記遊技制御手段および前記払出制御手段のうちの少なくとも一方に搭載されることを特徴とする遊技台。
<付記N>
<付記N1>
The gaming machine according to claim 1, wherein the microcomputer incorporating the CPU is not mounted on the effect control means but is mounted on at least one of the game control means and the payout control means.
<Appendix N>
<Appendix N1>

8ビット長の値を記憶可能な第一から第三のレジスタを少なくとも備えるCPUを備え、   A CPU including at least first to third registers capable of storing an 8-bit value;

前記CPUは、16ビット長の値を記憶可能な第四のレジスタを少なくとも備え、   The CPU includes at least a fourth register capable of storing a 16-bit value.

前記CPUは、前記第一のレジスタおよび前記第二のレジスタからなるレジスタペアを用いた処理を実行可能であり、   The CPU can execute processing using a register pair including the first register and the second register;

前記CPUを内蔵するマイクロコンピュータを備えた遊技台であって、   A game machine comprising a microcomputer incorporating the CPU,

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記CPUは、前記第四のレジスタの値に前記第三のレジスタの値を加算して該第四のレジスタに加算結果をセットすることが可能な第一の命令を実行可能であり、   The CPU can execute a first instruction that can add the value of the third register to the value of the fourth register and set the addition result in the fourth register;

前記第一の命令は、前記レジスタペアの値に前記第三のレジスタの値を加算して該レジスタペアに加算結果をセットすることが可能であり、   The first instruction can add the value of the third register to the value of the register pair and set the addition result in the register pair;

前記CPUは、前記レジスタペアの値から前記第三のレジスタの値を減算して該レジスタペアに減算結果をセットする第二の命令を実行可能であり、   The CPU can execute a second instruction that subtracts the value of the third register from the value of the register pair and sets the subtraction result in the register pair;

前記CPUにおける前記16ビット長の前記レジスタペアに対して前記8ビット長の値を加減算する機能は、前記第一の命令および前記第二の命令の両方によって実現されるが、前記CPUにおける前記16ビット長の前記第四のレジスタに対して前記8ビット長の値を加算する機能は、前記第一の命令によって少なくとも実現され、   The function of adding / subtracting the 8-bit value to / from the 16-bit register pair in the CPU is realized by both the first instruction and the second instruction. The function of adding the 8-bit value to the fourth register having a bit length is realized at least by the first instruction,

前記CPUは、少なくとも特定レジスタを備え、   The CPU includes at least a specific register,

前記CPUは、前記特定レジスタに値をセットする機能のうち、ロード命令を受けたことに基づいて行われるものとしては、直値により値をセットする機能のみを有する、
ことを特徴とする遊技台。
<付記N2>
付記N1に記載の遊技台であって、
Among the functions for setting a value in the specific register, the CPU has only a function for setting a value by a direct value as a function that is performed based on receiving a load instruction.
A game stand characterized by that.
<Appendix N2>
A gaming machine as set forth in Appendix N1,

前記レジスタペアは、スタック領域に16ビットの値をセットするプッシュ命令において用いられることが可能な二つのレジスタの組み合わせであることを特徴とする遊技台。
<付記N3>
2. The game table according to claim 1, wherein the register pair is a combination of two registers that can be used in a push instruction for setting a 16-bit value in a stack area.
<Appendix N3>

付記N1またはN2に記載の遊技台であって、   A gaming table according to appendix N1 or N2,

前記CPUは、前記特定レジスタに値をセットする機能のうち、前記ロード命令を受けたことに基づいて行われるもの以外のものとして、所定の値を初期値としてセットする機能を少なくとも有することを特徴とする遊技台。
<付記N4>
The CPU has at least a function of setting a predetermined value as an initial value as a function other than that performed based on receiving the load instruction among functions for setting a value in the specific register. A game table.
<Appendix N4>

付記N1〜N3のいずれかに記載の遊技台であって、
演出制御を行う演出制御手段を備え、
The game stand according to any one of appendices N1 to N3,
Providing production control means for performing production control,

前記CPUを内蔵した前記マイクロコンピュータは、前記演出制御手段に搭載されず、前記遊技制御手段にのみ搭載されることを特徴とする遊技台。
<付記N5>
The gaming machine according to claim 1, wherein the microcomputer incorporating the CPU is not mounted on the effect control means but only on the game control means.
<Appendix N5>

付記N1〜N3のいずれかに記載の遊技台であって、
演出制御を行う演出制御手段と、
The game stand according to any one of appendices N1 to N3,
Production control means for performing production control;

払出制御を行う払出制御手段と、を備え、   A payout control means for performing payout control,

前記CPUを内蔵した前記マイクロコンピュータは、前記演出制御手段に搭載されず、前記遊技制御手段および前記払出制御手段のうちの少なくとも一方に搭載されることを特徴とする遊技台。
<付記O>
<付記O1>
The gaming machine according to claim 1, wherein the microcomputer incorporating the CPU is not mounted on the effect control means but is mounted on at least one of the game control means and the payout control means.
<Appendix O>
<Appendix O1>

制御プログラムデータを記憶したROMと、   ROM storing control program data;

前記制御プログラムデータで示される命令に基づいて、遊技に関する複数の処理それぞれをメイン制御および所定の周期ごとに実行される割込み制御の少なくともいずれか一方で実行するCPUと、を備えた遊技台であって、
前記CPUは、
And a CPU that executes at least one of main control and interrupt control executed at predetermined intervals based on an instruction indicated by the control program data. And
The CPU

少なくとも前記割込み制御において、演算処理、該演算処理の結果を用いて所定条件の成立を判定する判定処理、該判定処理の判定結果に応じた処理に分岐させる分岐処理、該分岐処理によって分岐された先の処理である分岐先処理、の順に処理を実行し、前記制御プログラムデータで示される単一の命令である特定命令に基づいて、前記演算処理、前記判定処理および前記分岐処理を実行し、   At least in the interrupt control, a calculation process, a determination process for determining whether a predetermined condition is satisfied using a result of the calculation process, a branch process for branching to a process according to the determination result of the determination process, and a branch is performed by the branch process The processing is executed in the order of the branch destination processing that is the previous processing, and based on the specific instruction that is a single instruction indicated by the control program data, the arithmetic processing, the determination processing, and the branch processing are executed.

前記特定命令に基づく処理に要する時間を同一にすることで、前記判定処理によって前記所定条件が成立したと判定された場合、および前記判定手段によって前記所定条件が成立したと判定されなかった場合のいずれの場合であっても、同一のタイミングで前記分岐先処理の実行を開始する、
ことを特徴とする遊技台。
<付記O2>
付記O1に記載の遊技台であって、
When it is determined that the predetermined condition is satisfied by the determination process by making the time required for the process based on the specific command the same, and when the predetermined condition is not determined by the determination unit In any case, the execution of the branch destination process is started at the same timing.
A game stand characterized by that.
<Appendix O2>
A gaming machine as set forth in Appendix O1,

遊技媒体を検出する検出センサを備え、
前記CPUは、
A detection sensor for detecting a game medium;
The CPU

前記割込み制御において、前記検出センサの状態を監視する検出センサ監視処理、該検出センサ監視処理の監視結果に基づく所定の処理、の順に処理を実行する、
ことを特徴とする遊技台。
<付記P>
<付記P1>
In the interrupt control, processing is performed in the order of detection sensor monitoring processing for monitoring the state of the detection sensor, and predetermined processing based on the monitoring result of the detection sensor monitoring processing.
A game stand characterized by that.
<Appendix P>
<Appendix P1>

遊技制御を行うマイクロコンピュータを備えた遊技台であって、   A gaming machine equipped with a microcomputer for controlling the game,

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記マイクロコンピュータは、第一の側面、および該第一の側面に対向する第二の側面の各々に複数の端子が設けられたDIP型のパッケージに収容され、   The microcomputer is housed in a DIP-type package in which a plurality of terminals are provided on each of the first side surface and the second side surface facing the first side surface,

前記パッケージは、非透明部材からなり、   The package is made of a non-transparent member,

前記パッケージは、二本の端子が第一の隙間を空けて設けられた第一の部位を有し、   The package has a first portion in which two terminals are provided with a first gap,

前記パッケージは、二本の端子を前記第一の隙間よりも広い第二の隙間を空けて設け、該第二の隙間に前記端子が設けられていないことによって前記第一の部位よりも特定の領域を視認容易にする第二の部位を有し、   In the package, two terminals are provided with a second gap wider than the first gap, and the terminal is not provided in the second gap, so that the package is more specific than the first part. Having a second part that facilitates visual recognition of the area;

前記特定の領域には、前記パッケージの裏面における第一の領域、該裏面に対向する基板の表面における第二の領域、および前記裏面と前記表面との間の空間における第三の領域のうちの少なくとも一つが含まれ、   The specific region includes a first region on the back surface of the package, a second region on the surface of the substrate facing the back surface, and a third region in the space between the back surface and the surface. At least one included

前記パッケージにおける前記第一の側面および前記第二の側面の少なくとも一方に、前記第二の部位が配置されるとともに、   The second portion is disposed on at least one of the first side surface and the second side surface of the package,

前記パッケージにおける前記第一の側面の端部または前記第二の側面の端部の一方に、前記端子を設けない切欠き部を形成することによって、前記第一の部位よりも前記特定の領域を視認容易にする第三の部位が配置されている、
ことを特徴とする遊技台。
<付記P2>
付記P1に記載の遊技台であって、
By forming a notch not provided with the terminal at one of the end of the first side surface or the end of the second side surface of the package, the specific region is made more than the first part. A third part is provided to facilitate visual recognition,
A game stand characterized by that.
<Appendix P2>
A game machine as set forth in Appendix P1,

前記第一の側面の長手方向中央部または/および前記第二の側面の長手方向中央部に、前記第二の部位が配置されている、
ことを特徴とする遊技台。
<付記P3>
The second part is disposed in the longitudinal center portion of the first side surface and / or the longitudinal center portion of the second side surface,
A game stand characterized by that.
<Appendix P3>

付記P1またはP2に記載の遊技台であって、   A game machine as set forth in Appendix P1 or P2,

前記第一の側面と前記第二の側面の両方に、前記第二の部位が配置されている、
ことを特徴とする遊技台。
<付記P4>
付記P3に記載の遊技台であって、
The second part is disposed on both the first side surface and the second side surface,
A game stand characterized by that.
<Appendix P4>
A game machine as set forth in Appendix P3,

前記第一の側面と前記第二の側面の両方に、前記第二の部位が対向して配置されている、
ことを特徴とする遊技台。
<付記Q>
<付記Q1>
The second part is disposed opposite to both the first side surface and the second side surface,
A game stand characterized by that.
<Appendix Q>
<Appendix Q1>

所定の数値範囲内で更新される数値を導出するものであって、該所定の数値範囲を設定可能な乱数生成手段と、   Random number generation means for deriving a numerical value to be updated within a predetermined numerical range, and capable of setting the predetermined numerical range;

前記所定の数値範囲を設定するための指示を前記乱数生成手段に対して行う数値範囲設定処理、前記乱数生成手段によって導出された数値を取得する数値取得処理、および該数値取得処理によって取得された数値に基づく抽選処理を少なくとも含む、遊技制御処理それぞれを、メイン制御および所定の割込み周期ごとに行われる割込み制御のうちの、少なくともいずれか一方の制御において行う遊技制御手段と、   The numerical value range setting process for instructing the random number generation means to set the predetermined numerical range, the numerical value acquisition process for acquiring the numerical value derived by the random number generation means, and the numerical value acquisition process Game control means for performing each game control process including at least a lottery process based on a numerical value in at least one of the main control and interrupt control performed every predetermined interrupt cycle;

前記遊技制御処理の進行に関する異常を検出する処理を実行するとともに、該異常を検出した場合には、前記遊技制御手段に前記遊技制御処理を最初から行わせて前記遊技制御処理を正常に復帰させるための復帰指示を行う、異常検出手段と、を備え、
前記遊技制御手段は、
A process for detecting an abnormality related to the progress of the game control process is executed, and when the abnormality is detected, the game control unit is caused to perform the game control process from the beginning to return the game control process to normal. An abnormality detection means for performing a return instruction for
The game control means includes

前記数値範囲設定処理、および前記遊技制御処理であって前記割込み制御を許可する割込み許可処理を、前記メイン制御において行い、   The main control performs an interrupt permission process for permitting the interrupt control in the numerical value range setting process and the game control process,

前記数値取得処理を、前記割込み制御において行い、   The numerical value acquisition process is performed in the interrupt control,

前記メイン制御おいて、前記数値範囲設定処理が行われた後に、前記割込み許可処理を行い、   In the main control, after the numerical value range setting process is performed, the interrupt permission process is performed,

少なくとも前記復帰指示を受けた場合には、前記割込み制御が禁止されている割込み禁止状態において前記数値範囲設定処理を行うものであることを特徴とする遊技台。
<付記Q2>
付記Q1に記載の遊技台であって、
At least when the return instruction is received, the numerical range setting process is performed in an interrupt prohibited state in which the interrupt control is prohibited.
<Appendix Q2>
A game machine as set forth in Appendix Q1,

前記乱数生成手段、前記遊技制御手段、および前記異常検出手段を少なくとも有する、マイクロプロセッサを備え、
前記マイクロプロセッサは、
A microprocessor having at least the random number generation means, the game control means, and the abnormality detection means;
The microprocessor is

少なくとも前記異常検出手段によって前記異常が検出された場合には、セキュリティチェックが行われるセキュリティモードに所定期間に亘り滞在した後、前記遊技制御手段によって前記遊技制御処理が行われるユーザモードへ移行するものであることを特徴とする遊技台。
<付記Q3>
At least when the abnormality is detected by the abnormality detection means, after staying in a security mode in which a security check is performed for a predetermined period, the game control means shifts to a user mode in which the game control processing is performed. A game stand characterized by being.
<Appendix Q3>

付記Q1またはQ2に記載の遊技台であって、
前記マイクロプロセッサは、
A game machine according to appendix Q1 or Q2,
The microprocessor is

遊技に関する情報を一時的に記憶するRAMと、   RAM for temporarily storing information related to the game;

電源が投入されたことに基づいて、前記遊技制御手段に前記遊技制御処理を最初から行わせるための起動指示を行う起動指示手段と、を備え、
前記遊技制御手段は、
An activation instruction means for giving an activation instruction for causing the game control means to perform the game control process from the beginning based on power-on,
The game control means includes

前記遊技制御処理であり、かつ電源が遮断される場合に実行される処理であって、前記RAMの所定領域に当該処理が行われたことを示す所定のデータを記憶させる処理を含む電断時処理を行い、   When the power is cut off, including the game control process and a process executed when the power is turned off, and storing predetermined data indicating that the process has been performed in a predetermined area of the RAM Process,

前記遊技制御処理を最初から行う場合において、前記所定のデータが記憶されている場合には、前記遊技制御処理であり、かつ前記RAMの領域であって前記乱数生成手段によって導出された数値を記憶する領域が少なくとも初期化される初期化処理を行うことなく前記遊技制御処理を復帰させることが可能なものである一方、前記遊技制御処理を最初から行う場合において、前記所定のデータが記憶されていない場合には、該初期化処理を行うことなく前記遊技制御処理を復帰させることが不可能なものであり、   In the case where the game control process is performed from the beginning, if the predetermined data is stored, the game control process is performed, and the numerical value derived from the random number generation means is stored in the RAM area The game control process can be restored without performing an initialization process in which the area to be initialized is at least initialized. On the other hand, when the game control process is performed from the beginning, the predetermined data is stored If not, it is impossible to return the game control process without performing the initialization process,

前記復帰指示を受けた場合には、前記電断時処理を行わないものであることを特徴とする遊技台。
<付記R>
<付記R1>
CPUと、
The game machine characterized in that when the return instruction is received, the power interruption process is not performed.
<Appendix R>
<Appendix R1>
CPU,

遊技制御プログラムを少なくとも記憶するROMと、   A ROM for storing at least a game control program;

を少なくとも内蔵するマイクロコンピュータを備えた遊技台であって、 A game machine equipped with a microcomputer incorporating at least

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記CPUは、所定のフラグを少なくとも有するフラグレジスタを少なくとも有し、   The CPU has at least a flag register having at least a predetermined flag,

前記CPUは、所定の命令を少なくとも実行可能であり、   The CPU is capable of executing at least a predetermined instruction;

前記遊技制御プログラムは、メイン処理と、タイマ割込によって起動される割込処理と、該割込処理の実行中に自身以外の処理から少なくとも呼び出される複数のサブ処理を少なくとも含み、   The game control program includes at least a main process, an interrupt process activated by a timer interrupt, and a plurality of sub-processes called at least from processes other than itself during execution of the interrupt process,

前記複数のサブ処理は、第一のサブ処理と第二のサブ処理を少なくとも含み、   The plurality of sub-processes include at least a first sub-process and a second sub-process,

前記所定の命令は、前記第二のサブ処理で少なくとも実行され、   The predetermined instruction is executed at least in the second sub-process,

前記所定の命令は、所定の移行条件が成立した場合には、該命令を実行した前記第二のサブ処理から前記第一のサブ処理に移行させることが可能で、かつ、所定の変化条件が成立した場合には、該命令の実行に基づいて前記所定のフラグをセットまたはクリアすることが少なくとも可能な命令であり、   If the predetermined transition condition is satisfied, the predetermined instruction can be transferred from the second sub-process that executed the instruction to the first sub-process, and the predetermined change condition is If established, the instruction is at least capable of setting or clearing the predetermined flag based on execution of the instruction;

前記CPUは、前記所定の命令の実行後の前記第一のサブ処理または前記第二のサブ処理において、前記所定の命令の実行に基づいてセットまたはクリアされた前記所定のフラグを参照しない処理と、前記所定の命令以外の命令の実行に基づいてセットまたはクリアされた前記所定のフラグを参照する処理を実行する、
ことを特徴とする遊技台。
<付記R2>
付記R1に記載の遊技台であって、
The CPU does not refer to the predetermined flag set or cleared based on the execution of the predetermined instruction in the first sub-process or the second sub-process after execution of the predetermined instruction. , Executing a process referring to the predetermined flag set or cleared based on execution of an instruction other than the predetermined instruction.
A game stand characterized by that.
<Appendix R2>
A game machine as set forth in Appendix R1,

前記CPUは、前記フラグレジスタと所定のレジスタを少なくとも有し、   The CPU has at least the flag register and a predetermined register,

前記所定の移行条件が成立した場合とは、前記所定のレジスタが所定の条件を満たす場合である、
ことを特徴とする遊技台。
<付記R3>
付記R2に記載の遊技台であって、
The case where the predetermined transition condition is satisfied is a case where the predetermined register satisfies a predetermined condition.
A game stand characterized by that.
<Appendix R3>
A game machine as set forth in Appendix R2,

前記所定の命令以外の命令には、算術論理演算命令が少なくとも含まれ、   The instruction other than the predetermined instruction includes at least an arithmetic logic operation instruction,

前記所定の変化条件が成立した場合とは、前記所定のレジスタを用いた前記算術論理演算命令が実行されたときに、該算術論理演算命令の実行後の前記所定のレジスタが前記所定の条件を満たす場合であり、   When the predetermined change condition is satisfied, when the arithmetic logic operation instruction using the predetermined register is executed, the predetermined register after execution of the arithmetic logic operation instruction satisfies the predetermined condition. If you meet

前記所定の移行条件が成立した場合とは、前記所定のレジスタを用いた算術論理演算命令が実行されたときに、該算術論理演算命令の実行後の前記所定のレジスタが前記所定の条件を満たした結果、前記所定のフラグがセットまたはクリアされた場合である、
ことを特徴とする遊技台。
<付記R4>
The case where the predetermined transition condition is satisfied means that when an arithmetic logic operation instruction using the predetermined register is executed, the predetermined register after the execution of the arithmetic logic operation instruction satisfies the predetermined condition. As a result, the predetermined flag is set or cleared.
A game stand characterized by that.
<Appendix R4>

付記R1〜R3のいずれかに記載の遊技台であって、   The game stand according to any one of appendices R1 to R3,

前記CPUは、前記所定の命令の実行に基づいてセットまたはクリアされた前記所定のフラグを参照しないで分岐先を決定する分岐処理と、前記所定の命令以外の命令の実行に基づいてセットまたはクリアされた前記所定のフラグを参照して分岐先を決定する分岐処理を実行する、
ことを特徴とする遊技台。
<付記R5>
The CPU determines a branch destination without referring to the predetermined flag set or cleared based on execution of the predetermined instruction, and sets or clears based on execution of an instruction other than the predetermined instruction A branch process for determining a branch destination with reference to the predetermined flag,
A game stand characterized by that.
<Appendix R5>

付記R1〜R4のいずれかに記載の遊技台であって、   A gaming machine according to any one of appendices R1 to R4,

前記CPUは、前記所定の命令の実行に基づいてセットまたはクリアされた前記所定のフラグを参照しない処理を行った後に、前記所定の命令以外の命令の実行に基づいて変化した前記所定のフラグを参照する処理を続けて行う、
ことを特徴とする遊技台。
<付記R6>
The CPU performs processing that does not refer to the predetermined flag that is set or cleared based on execution of the predetermined instruction, and then changes the predetermined flag changed based on execution of an instruction other than the predetermined instruction. Continue to refer to the process,
A game stand characterized by that.
<Appendix R6>

付記R1〜R5のいずれかに記載の遊技台であって、   The game stand according to any one of appendices R1 to R5,

前記第二のサブ処理は、前記第一のサブ処理から呼び出される処理である、
ことを特徴とする遊技台。
<付記R7>
The second sub-process is a process called from the first sub-process.
A game stand characterized by that.
<Appendix R7>

付記R1〜R6のいずれかに記載の遊技台であって、   The game stand according to any one of appendices R1 to R6,

前記所定のフラグは、ゼロフラグである、
ことを特徴とする遊技台。
<付記S>
<付記S1>
The predetermined flag is a zero flag.
A game stand characterized by that.
<Appendix S>
<Appendix S1>

CPUを少なくとも内蔵するマイクロコンピュータを備えた遊技台であって、   A game machine equipped with a microcomputer including at least a CPU,

前記遊技台は、ぱちんこ機またはスロットマシンであり、   The game table is a pachinko machine or a slot machine,

前記CPUは、第一のジャンプ命令を受け付けたことに基づいて、第一のジャンプ先アドレスに記憶されている命令を受け付けることが可能なものであり、   The CPU is capable of accepting an instruction stored in a first jump destination address based on accepting a first jump instruction;

前記CPUは、第二のジャンプ命令を受け付けたことに基づいて、第二のジャンプ先アドレスに記憶されている命令を受け付けることが可能なものであり、   The CPU is capable of accepting an instruction stored in a second jump destination address based on accepting a second jump instruction,

前記第一のジャンプ命令には、3ビットの第一の識別情報が少なくとも含まれており、   The first jump instruction includes at least 3-bit first identification information;

前記第二のジャンプ命令には、3ビットの第二の識別情報が少なくとも含まれており、   The second jump instruction includes at least 3-bit second identification information;

前記第一のジャンプ先アドレスは、第一の値により示されるアドレスであり、   The first jump destination address is an address indicated by a first value;

前記第二のジャンプ先アドレスは、第二の値により示されるアドレスであり、   The second jump destination address is an address indicated by a second value,

前記第一の値は、前記第一の識別情報の8倍の値であり、   The first value is eight times the first identification information,

前記第二の値は、前記第二の識別情報の8倍の値とは異なり、3ビットで示すことが可能な最大値を1だけ超えた値の8倍の値である、
ことを特徴とする遊技台。
<付記S2>
付記S1に記載の遊技台であって、
前記第二の識別情報は0である、
ことを特徴とする遊技台。
<付記S3>
Unlike the value eight times that of the second identification information, the second value is a value that is eight times the value that exceeds the maximum value that can be indicated by 3 bits by 1.
A game stand characterized by that.
<Appendix S2>
A gaming machine according to appendix S1,
The second identification information is 0.
A game stand characterized by that.
<Appendix S3>

付記S1またはS2に記載の遊技台であって、   A game machine as set forth in appendix S1 or S2,

前記第一の識別情報は1から7のいずれかの値である、
ことを特徴とする遊技台。
<付記S4>
付記S3に記載の遊技台であって、
The first identification information is a value from 1 to 7,
A game stand characterized by that.
<Appendix S4>
A game machine as set forth in Appendix S3,

前記第二のジャンプ先アドレスは、前記第一の識別情報の最大値である7を1だけ超えた値である8の8倍の値である64である、
ことを特徴とする遊技台。
<付記S5>
The second jump destination address is 64, which is a value 8 times 8 that is a value that exceeds the maximum value 7 of the first identification information by 1.
A game stand characterized by that.
<Appendix S5>

付記S1乃至S4のいずれかに記載の遊技台であって、   The game stand according to any one of appendices S1 to S4,

前記CPUは、前記第一のジャンプ命令および前記第二のジャンプ命令とは異なるジャンプ命令を受け付けることも可能なものである、
ことを特徴とする遊技台。
<付記T>
<付記T1>
The CPU is also capable of accepting a jump instruction different from the first jump instruction and the second jump instruction.
A game stand characterized by that.
<Appendix T>
<Appendix T1>

遊技に関する複数種類の遊技制御処理それぞれを、メイン制御および所定の割込み周期ごとに行われる割込み制御のうちの、少なくともいずれか一方の制御において実行する遊技制御手段と、   Game control means for executing each of a plurality of types of game control processes related to a game in at least one of main control and interrupt control performed every predetermined interrupt cycle;

遊技を復帰させるための復帰情報を含む遊技に関する情報を記憶する記憶手段と、   Storage means for storing information about the game including return information for returning the game;

開始指示を受けたことに基づいて経過時間の計測を開始し、該経過時間が特定時間を超えたか否かを判定するとともに、該経過時間が特定時間を超えたと判定したことに基づいて前記遊技制御手段に対して復帰指示を行い、前記遊技制御手段から初期化指示を受けたことに基づいて該経過時間を初期化する復帰指示手段と、を備えた遊技台であって、
前記記憶手段は、
Measurement of elapsed time is started based on receiving the start instruction, it is determined whether or not the elapsed time exceeds a specified time, and the game is determined based on determining that the elapsed time exceeds a specified time A return instruction means for giving a return instruction to the control means and initializing the elapsed time based on receiving an initialization instruction from the game control means,
The storage means

電源ステータスの情報を記憶する電源ステータス記憶領域を有し、
前記遊技制御手段は、
A power status storage area for storing power status information;
The game control means includes

前記メイン制御において、第一の処理を実行するとともに、該第一の処理の後に、繰り返し実行される第二の処理を実行し、   In the main control, the first process is executed, and after the first process, a second process that is repeatedly executed is executed.

前記割込み制御において、第三の処理を実行し、   In the interrupt control, a third process is executed,

電源が投入された場合、および前記復帰指示手段から前記復帰指示を受けた場合に、前記第一の処理の実行を開始し、   When the power is turned on and when the return instruction is received from the return instruction means, the execution of the first process is started,

前記第三の処理において、電源が遮断される場合に、電源の遮断に関する所定のデータを前記電源ステータス記憶領域に記憶させる処理を含む電断時処理を実行し、   In the third process, when the power is shut off, a power interruption process including a process of storing predetermined data relating to the power shutdown in the power status storage area is executed.

前記第一の処理において、前記電源ステータス記憶領域に前記所定のデータが記憶されている場合には、前記復帰情報に基づいて前記第二の処理へ復帰させるための復帰処理を実行することが可能であり、   In the first process, when the predetermined data is stored in the power status storage area, a return process for returning to the second process can be executed based on the return information. And

前記第一の処理において、前記電源ステータス記憶領域に前記所定のデータが記憶されていない場合には、前記復帰処理を実行することが不可能なものであり、   In the first process, if the predetermined data is not stored in the power status storage area, it is impossible to execute the return process,

この遊技台は、前記復帰指示手段から前記復帰指示を受けた場合には、前記電断時処理が行われないことで、前記電源ステータス記憶領域に前記所定のデータが記憶されず、
前記遊技制御手段は、
In this gaming machine, when the return instruction is received from the return instruction means, the predetermined data is not stored in the power status storage area because the power interruption process is not performed.
The game control means includes

前記第一処理において、前記復帰処理を実行した後に、前記開始指示を前記復帰指示手段に対して行う処理を実行するものであることを特徴とする遊技台。
<付記T2>
付記T1に記載の遊技台であって、
In the first process, after the return process is executed, the game machine is configured to execute a process of giving the start instruction to the return instruction means.
<Appendix T2>
A game machine as set forth in Appendix T1,

前記遊技制御手段、前記記憶手段、および前記復帰指示手段を、少なくとも有する、マイクロプロセッサを備え、
前記マイクロプロセッサは、
A microprocessor having at least the game control means, the storage means, and the return instruction means;
The microprocessor is

少なくとも、前記復帰指示手段によって、前記経過時間が前記特定時間を超えたと判定された場合には、セキュリティチェックが行われるとともに、該セキュリティチェックの後に前記遊技制御が行われるユーザモードへ移行するまでの時間をランダムに変動させるランダム延長が少なくとも行われる、セキュリティモードに滞在した後、該ユーザモードへ移行するものであることを特徴とする遊技台。   At least, when it is determined by the return instruction means that the elapsed time has exceeded the specific time, a security check is performed and a transition to a user mode in which the game control is performed after the security check A game table, wherein at least a random extension for randomly varying the time is performed, and the user mode is entered after staying in the security mode.

なお、上記実施例においては、封入式のパチンコ機100の例を示したが、これに限るものではなく、例えば、メダルを使用せずに電子データのやり取りのみ行うスロットマシンであってもよい。この場合、遊技媒体は、メダルに相当する電子化したデータを含むものであり、遊技媒体の投入は、所定の外部装置(電子貯留装置)から、電子化したデータを入力することを含むものであり、遊技媒体の払出は、所定の外部装置(電子貯留装置)へ、電子化したデータを出力することを含むものである。また、遊技球(例えば、パチンコ玉)を遊技媒体としたスロットマシンにも適用可能である。
更に本発明を、アレンジボール遊技機、じゃん球遊技機、ピンボールマシン、に適用してもよい。また、本発明を、遊技媒体の投入を契機として遊技可能となる遊技機(例えば、カジノマシン、ビデオゲームマシン)、遊技媒体自体を遊技に使用する遊技機(例えば、メダル落としゲーム機)に適用してもよい。ここで、「遊技媒体の投入」とは「賭ける」を意味し、「ベット」とも同意である。「遊技媒体の投入」は、「通貨の投入」や「電子マネーの投入」を含む。カジノマシンとは、通貨の投入により遊技が開始可能となり、抽選結果が当選の場合に、該当選結果に対応付けられて設定された図柄が停止し、遊技者に特典となる払出しを行う、カジノマシンである。
In the above-described embodiment, an example of the enclosed pachinko machine 100 has been described. However, the present invention is not limited to this. For example, a slot machine that only exchanges electronic data without using medals may be used. In this case, the game medium includes computerized data corresponding to medals, and the insertion of the game medium includes inputting the computerized data from a predetermined external device (electronic storage device). Yes, the payout of game media includes outputting the digitized data to a predetermined external device (electronic storage device). Further, the present invention can also be applied to a slot machine using game balls (for example, pachinko balls) as game media.
Furthermore, the present invention may be applied to an arrangement ball game machine, a ball ball game machine, and a pinball machine. In addition, the present invention is applied to a gaming machine (for example, a casino machine or a video game machine) that can be played when a gaming medium is inserted, and a gaming machine (for example, a medal dropping game machine) that uses the gaming medium itself for a game. May be. Here, “inserting game media” means “betting”, and “bet” is also agreed. “Input of game media” includes “input of currency” and “input of electronic money”. A casino machine is a casino in which a game can be started by inserting a currency, and when a lottery result is won, a symbol set in association with the corresponding selection result is stopped, and a payout as a bonus to a player is performed. Machine.

また、本発明の実施の形態に記載された作用および効果は、本発明から生じる最も好適な作用および効果を列挙したに過ぎず、本発明による作用および効果は、本発明の実施の形態に記載されたものに限定されるものではない。また、実施例に記載した複数の構成のうち、1つの構成に記載している内容を、他の構成に適用することでより遊技の幅を広げられる場合がある。   Further, the actions and effects described in the embodiments of the present invention only list the most preferable actions and effects resulting from the present invention, and the actions and effects according to the present invention are described in the embodiments of the present invention. It is not limited to what was done. In addition, in some cases, the content described in one configuration among a plurality of configurations described in the embodiments may be applied to other configurations to further widen the game.

本発明に係る遊技台は、回胴遊技機(スロットマシン)や弾球遊技機(パチンコ機)などに代表される遊技台に適用することができる。   The game machine according to the present invention can be applied to game machines represented by a spinning machine (slot machine), a ball game machine (pachinko machine), and the like.

100 パチンコ機
102 外枠
104 内枠
140 球貸ボタン
142 返却ボタン
144 切替ボタン
300 主制御部
400 第1副制御部
500 第2副制御部
600 球数制御部
610 遊技媒体経路
612 球磨き装置
614 揚上装置
616 球送り装置
622 発射装置
620 管理装置
640 球数表示部
680 球数UI部
652 計数ボタン
654 入力操作部
656 画像表示部
DESCRIPTION OF SYMBOLS 100 Pachinko machine 102 Outer frame 104 Inner frame 140 Ball lending button 142 Return button 144 Switch button 300 Main control part 400 1st sub-control part 500 2nd sub-control part 600 Number-of-balls control part 610 Game medium path 612 Ball polisher 614 Lifting Upper device 616 Ball feeding device 622 Launching device 620 Management device 640 Ball number display unit 680 Ball number UI unit 652 Count button 654 Input operation unit 656 Image display unit

Claims (5)

マイクロプロセッサを少なくとも備えた遊技台であって、  A gaming machine having at least a microprocessor,
前記遊技台は、ぱちんこ機またはスロットマシンであり、  The game table is a pachinko machine or a slot machine,
前記マイクロプロセッサは、CPUが少なくとも搭載されたものであり、  The microprocessor has at least a CPU mounted thereon,
前記CPUは、第一の命令を受け付けた場合に、第一の演算を少なくとも実行可能なものであり、  The CPU is capable of executing at least a first calculation when receiving a first command;
前記CPUは、第二の命令を受け付けた場合に、第二の演算を少なくとも実行可能なものであり、  The CPU is capable of executing at least a second operation when receiving a second command;
前記CPUは、前記第一の演算の結果を第一のレジスタに少なくともセットするものであり、  The CPU sets at least a result of the first operation in a first register;
前記CPUは、前記第二の演算の結果を第二のレジスタに少なくともセットするものであり、  The CPU sets at least a result of the second operation in a second register;
前記第一のレジスタとは、前記第一の命令において指定されたレジスタのことであり、  The first register is a register designated in the first instruction,
前記第二のレジスタとは、前記第二の命令において指定されたレジスタのことであり、  The second register is a register designated in the second instruction,
前記CPUは、フラグレジスタが少なくとも搭載されたものであり、  The CPU is equipped with at least a flag register,
前記フラグレジスタにおける第一のビットは、第一のゼロフラグとして少なくとも機能するものであり、  The first bit in the flag register functions at least as a first zero flag;
前記フラグレジスタにおける第二のビットは、第二のゼロフラグとして少なくとも機能するものであり、  The second bit in the flag register serves at least as a second zero flag;
前記第一のゼロフラグは、前記第一の演算の結果がゼロの場合に、少なくともオン状態になるものであり、  The first zero flag is at least turned on when the result of the first calculation is zero,
前記第一のゼロフラグは、前記第一の演算の結果がゼロ以外の場合に、少なくともオフ状態になるものであり、  The first zero flag is at least in an off state when the result of the first calculation is non-zero,
前記第一のゼロフラグは、前記第二の演算の結果がゼロの場合に、少なくともオン状態になるものであり、  The first zero flag is at least turned on when the result of the second calculation is zero,
前記第一のゼロフラグは、前記第二の演算の結果がゼロ以外の場合に、少なくともオフ状態になるものであり、  The first zero flag is at least turned off when the result of the second calculation is non-zero,
前記第二のゼロフラグは、前記第一の演算の結果がゼロの場合に、少なくともオン状態になるものであり、  The second zero flag is at least turned on when the result of the first calculation is zero,
前記第二のゼロフラグは、前記第一の演算の結果がゼロ以外の場合に、少なくともオフ状態になるものであり、  The second zero flag is at least turned off when the result of the first calculation is non-zero,
前記第二のゼロフラグは、前記第二の演算の前後で状態が変化されないものであり、  The second zero flag is a state whose state is not changed before and after the second calculation,
前記CPUは、第三の命令を受け付けた場合に、前記第一のゼロフラグが前記オン状態であることを条件に、第一のアドレスに記憶されている命令を、該第三の命令の次に受け付ける動作を少なくとも実行するものであり、  When the CPU receives the third instruction, the CPU stores the instruction stored at the first address after the third instruction on the condition that the first zero flag is in the ON state. At least perform the operation to accept,
前記CPUは、第四の命令を受け付けた場合に、前記第二のゼロフラグが前記オン状態であることを条件に、第二のアドレスに記憶されている命令を、該第四の命令の次に受け付ける動作を少なくとも実行するものであり、  When the CPU receives the fourth instruction, the CPU stores the instruction stored at the second address next to the fourth instruction on the condition that the second zero flag is in the ON state. At least perform the operation to accept,
前記第一のアドレスとは、前記第三の命令において指定されたアドレスのことであり、  The first address is an address designated in the third instruction,
前記第二のアドレスとは、前記第四の命令において指定されたアドレスのことである、  The second address is an address designated in the fourth instruction.
ことを特徴とする遊技台。A game stand characterized by that.
請求項1に記載の遊技台であって、
前記第一の演算は、前記第一の命令において指定されたレジスタの値から1を減じるものであり、
前記第二の演算は、前記第二の命令において指定されたレジスタの値から1を減じるものである、
ことを特徴とする遊技台。
The game stand according to claim 1,
The first operation is to subtract 1 from the value of the register specified in the first instruction,
The second operation is to subtract 1 from the value of the register specified in the second instruction.
A game stand characterized by that.
請求項1または請求項2に記載の遊技台であって、
前記第三の命令は、第一の相対アドレスを含んで構成されるJR命令であり、
前記第四の命令は、第二の相対アドレスを含んで構成されるJR命令である、
ことを特徴とする遊技台。
The game stand according to claim 1 or 2,
The third instruction is a JR instruction configured to include a first relative address,
The fourth instruction is a JR instruction including a second relative address.
A game stand characterized by that.
請求項1乃至請求項3のいずれか一項に記載の遊技台であって、
前記第一および第二の命令は、オペコードを含んで構成されるものであり、
前記第一および第二の命令は、オペランドを含んで構成されるものであり、
前記第一の命令のオペコードは、8ビットデクリメント命令を示すものであり、
前記第一の命令のオペランドは、8ビットの値を格納可能な8ビットのレジスタを示すものであり、
前記第二の命令のオペコードは、16ビットデクリメント命令を示すものであり、
前記第二の命令のオペランドは、16ビットの値を格納可能な16ビットのレジスタを示すものである、
ことを特徴とする遊技台。
It is a game stand as described in any one of Claims 1 thru | or 3, Comprising:
The first and second instructions are configured to include an operation code,
The first and second instructions are configured to include operands;
The opcode of the first instruction indicates an 8-bit decrement instruction,
The operand of the first instruction indicates an 8-bit register capable of storing an 8-bit value;
The opcode of the second instruction indicates a 16-bit decrement instruction,
The operand of the second instruction indicates a 16-bit register capable of storing a 16-bit value.
A game stand characterized by that.
請求項4に記載の遊技台であって、
前記16ビットのレジスタは、ペアレジスタである場合を少なくとも含むものであり、
前記ペアレジスタは、8ビットのレジスタ二つによって構成されるものである、
ことを特徴とする遊技台。
The game table according to claim 4,
The 16-bit register includes at least the case of being a pair register,
The pair register is composed of two 8-bit registers.
A game stand characterized by that.
JP2012170679A 2012-07-31 2012-07-31 Amusement stand Active JP5514872B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012170679A JP5514872B2 (en) 2012-07-31 2012-07-31 Amusement stand

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012170679A JP5514872B2 (en) 2012-07-31 2012-07-31 Amusement stand

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2014071400A Division JP5764232B2 (en) 2014-03-31 2014-03-31 Amusement stand

Publications (2)

Publication Number Publication Date
JP2014030460A JP2014030460A (en) 2014-02-20
JP5514872B2 true JP5514872B2 (en) 2014-06-04

Family

ID=50280791

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012170679A Active JP5514872B2 (en) 2012-07-31 2012-07-31 Amusement stand

Country Status (1)

Country Link
JP (1) JP5514872B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018094101A (en) * 2016-12-14 2018-06-21 株式会社ソフイア Game machine
JP2018094100A (en) * 2016-12-14 2018-06-21 株式会社ソフイア Game machine
JP2020025759A (en) * 2018-08-13 2020-02-20 株式会社ソフイア Game machine

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6288836B2 (en) * 2013-07-18 2018-03-07 株式会社藤商事 Game machine
JP6288834B2 (en) * 2013-07-18 2018-03-07 株式会社藤商事 Game machine
JP6288835B2 (en) * 2013-07-18 2018-03-07 株式会社藤商事 Game machine
JP6355943B2 (en) * 2013-07-18 2018-07-11 株式会社藤商事 Game machine

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4405959B2 (en) * 2005-11-30 2010-01-27 株式会社藤商事 Game machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018094101A (en) * 2016-12-14 2018-06-21 株式会社ソフイア Game machine
JP2018094100A (en) * 2016-12-14 2018-06-21 株式会社ソフイア Game machine
JP2020025759A (en) * 2018-08-13 2020-02-20 株式会社ソフイア Game machine

Also Published As

Publication number Publication date
JP2014030460A (en) 2014-02-20

Similar Documents

Publication Publication Date Title
JP5514872B2 (en) Amusement stand
JP6115883B2 (en) Amusement stand
JP5425277B2 (en) Amusement stand
JP5719330B2 (en) Amusement stand
JP6102011B2 (en) Amusement stand
JP5764232B2 (en) Amusement stand
JP6226339B2 (en) Amusement stand
JP5953465B2 (en) Amusement stand
JP5643977B2 (en) Amusement stand
JP5719812B2 (en) Amusement stand
JP6344726B2 (en) Amusement stand
JP2015033619A (en) Game machine
JP5651908B2 (en) Amusement stand
JP2014030457A (en) Game machine
JP5643978B2 (en) Amusement stand
JP5643976B2 (en) Amusement stand
JP2014124281A (en) Game table
JP6115881B2 (en) Amusement stand
JP6142187B2 (en) Amusement stand
JP5915959B2 (en) Amusement stand
JP5915877B2 (en) Amusement stand
JP6145795B2 (en) Amusement stand
JP6145802B2 (en) Amusement stand
JP2015042275A (en) Game machine
JP5747277B2 (en) Amusement stand

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131119

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140331

R150 Certificate of patent or registration of utility model

Ref document number: 5514872

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250