摘要 |
PROBLEM TO BE SOLVED: To provide a game machine which eliminates troubles in the generation of the random numbers used in the game machine without the blocking of the processing of updating the counts of the counter for extracting the random numbers otherwise caused by the processing based on the interruption. SOLUTION: In the main routine, the random number updating processing for updating the counts of the counter for generating the random numbers for display and the random number updating processing for the decision of the initial values for updating the counts of the counter for generating the random numbers for decision of the initial values are executed after the setting of the interruption forbidden state and thereafter, the processing of setting the interruption permitted state is executed repeatedly. In this manner, the counter updating processing of the counter is executed in the random number updating processing for display and the random number updating processing for the decision of the initial values under the interruption forbidden state. Thus, while the numerical value updating processing is executed, no maskable interruption such as timer interruption is applied to enable the execution of the numerical value updating processing without being suspended by the interruption processing. COPYRIGHT: (C)2006,JPO&NCIPI
|