摘要 |
PROBLEM TO BE SOLVED: To provide a game machine which eliminates troubles in generating random numbers used in a game machine without blocking the processing to update counts of a counter for extracting a random number by processing based on an interruption. SOLUTION: In a main routine, random number updating processing for deciding an initial value for updating counts of a counter to generate random numbers for deciding the initial value after setting an interruption prohibited state and processing for setting an interruption permitted state are carried out repeatedly. The counter updating processing of the counter in the random number updating processing for deciding the initial value is carried out in the interruption prohibited state. Thus, while numerical updating processing is carried out, a maskable interruption such as a timer interruption is not applied to carry out the numerical updating processing without being suspended by the interruption processing. COPYRIGHT: (C)2006,JPO&NCIPI
|