摘要 |
PROBLEM TO BE SOLVED: To provide a game machine having a reduced amount of code of a game control program.SOLUTION: A game machine including a game control device includes: a game control program memory unit for storing a game control program; a calculation processing unit for executing required calculation processing using the game control program; a register for storing data upon performing the calculation processing; and an update information memory unit for storing information updated by the calculation processing unit. A stack area is set in the update information memory unit, the register contains a stack pointer for addressing the stack area, and the calculation processing unit includes a unique value setting unit executing an instruction set in a reset address of the game control program upon generation of a predetermined start signal, and setting a unique address value to the stack pointer before execution of the instruction set in the reset address of the game control program by the calculation processing unit upon generation of the start signal. |