摘要 |
PROBLEM TO BE SOLVED: To provide a game machine whose amount of code in a game control program is reduced.SOLUTION: A game machine comprises: game control program storage means; operation processing means for performing operation processing; a register for storing data during the operation processing; and 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 source routine, a first calling destination routine called by the calling source routine, and a second calling destination 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 calling destination routine is called, and it stores the return address and the flag register in the stack area and starts processing when the second calling destination routine is called. |