![]() |
Routines |
| Prev: 52091 | Up: Map | Next: 52165 |
|
Used by the routine at StartGame.
Checks whether the player has died. If so, a new life is started (or the game is over if there are no lives left).
The routine also checks that the instruction at 52189 has not been changed, which is part of the copy protection. The computer is reset if it has been.
|
||||
| CheckPlayerDead | 52140 | LD A,(48270) | Return if the player is still alive. | |
| 52143 | AND A | |||
| 52144 | RET NZ | |||
|
See Infinite Lives.
|
||||
| 52145 | LD A,(52189) | Fetch the opcode of the instruction at 52189, and reset the computer by jumping to BuildRandomTable_Reset unless it is 53 (DEC (HL)). | ||
| 52148 | CP 53 | |||
| 52150 | JP NZ,BuildRandomTable_Reset | |||
| 52153 | LD A,(48077) | Fetch the number of lives left and jump to StartNewLife to start a new life if there are none. | ||
| 52156 | AND A | |||
| 52157 | JR Z,StartNewLife | |||
| 52159 | LD DE,51257 | Play the tune for losing a life. | ||
| 52162 | CALL PlayMusic | |||
| Prev: 52091 | Up: Map | Next: 52165 |