![]() |
Routines |
| Prev: C9A5 | Up: Map | Next: CA1D |
|
Used by the routine at StartLife.
Puts the player back as it was when it entered the room (see PlayerCopy), and takes a life off. If there are no lives left the game is over.
|
||||
|
Restore the player and take a life.
|
||||
| LoseLife | CA07 | LD HL,$CA1D | Point HL at PlayerCopy. | |
| CA0A | LD DE,$5B88 | Point DE at PlayerBottomObject. | ||
| CA0D | PUSH DE | Point IX at PlayerBottomObject (using the stack). | ||
| CA0E | POP IX | |||
| CA10 | LD BC,$0040 | Set BC to 0040. | ||
| CA13 | LDIR | Copy the player back. | ||
| CA15 | LD HL,$5B1A | Point HL at Lives. | ||
|
See Infinite Lives.
|
||||
| CA18 | DEC (HL) | Decrement it. | ||
| CA19 | JP M,GameOver | Jump to GameOver if the sign flag is set. | ||
| CA1C | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: C9A5 | Up: Map | Next: CA1D |