摘要 |
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; an operation processing means for performing operation processing; 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 flag register for storing a result of operation by the operation processing means. The game control program includes a calling routine, a first called routine called by the calling routine, and a second called routine called by a prescribed interruption signal. The operation processing means stores a return address in the stack area and starts processing without storing the flag register when the first called routine is called, and it stores the return address and the flag register in the stack area and starts processing when the second called routine is called. |