摘要 |
PROBLEM TO BE SOLVED: To restart a game from the condition at the moment of a power shutdown to match the timing of the return of the power source by storing necessary data in case a sudden power shutdown such as a power failure occurs while achieving the secure storage of the necessary data when stored. SOLUTION: In an interruption processing for power failure, firstly, a CPU sets the inhibition of interruption. Then, all of output ports are turned off and if necessary, the content of the respective registers is housed into a backup RAM area. A power shutdown flag is set up. Furthermore, a proper initial value is set for a backup check data region in the backup RAM area, exclusive ORing is performed between the initial value and the data in the backup RAM area sequentially, and the final arithmetic value is set for a backup parity area. Thereafter, the access to the RAM is inhibited. Then, the CPU issues a halt order (HALT order). COPYRIGHT: (C)2009,JPO&INPIT
|