摘要 |
PROBLEM TO BE SOLVED: To reduce the amount of code in a game control program.SOLUTION: A game machine provided with a game controller includes: a game control program storage means for storing a game control program; an operation processing means for performing required operation processing by the game control program; a register for storing data during the operation processing; and an update information storage means for storing information to be updated by the operation processing means. In the update information storage means, a stack area is set. The register includes a stack pointer for designating an address of the stack area. The operation processing means is provided with a unique value setting means which executes a command set to a reset address of the game control program when a predetermined start signal is generated, and sets a unique address value to the stack pointer before the operation processing means executes the command set to the reset address of the game control program. |