![]() |
Routines |
| Prev: 52379 | Up: Map | Next: 52551 |
|
Used by the routine at 51943.
|
||||
| Flash_Lives | 52507 | LD B,10 | Short pause. | |
| 52509 | CALL Halt_Loop | |||
| 52512 | LD HL,52313 | Point to Lives. Set a counter for 5 times and stash it. | ||
| 52515 | LD B,5 | |||
| Flash_Lives_Loop | 52517 | PUSH BC | ||
| 52518 | DEC (HL) | Decrease the number of lives by one, stash the lives memory location and draw the decreased life images. | ||
| 52519 | PUSH HL | |||
| 52520 | CALL Life_Images | |||
| 52523 | LD B,16 | Short pause. | ||
| 52525 | CALL Halt_Loop | |||
| 52528 | POP HL | Grab the lives memory location, increase it by one, stash the location again and draw the now increased life images (i.e. what they were on entry to the routine). | ||
| 52529 | INC (HL) | |||
| 52530 | PUSH HL | |||
| 52531 | CALL Life_Images | |||
| 52534 | LD B,16 | Short pause. | ||
| 52536 | CALL Halt_Loop | |||
| 52539 | POP HL | |||
| 52540 | POP BC | Loop back until the counter is zero. | ||
| 52541 | DJNZ Flash_Lives_Loop | |||
| 52543 | LD A,(HL) | Finally decrease lives by one and if they are not zero jump to Prep_Display_Phase_1. | ||
| 52544 | DEC A | |||
| 52545 | LD (HL),A | |||
| 52546 | JP NZ,Prep_Display_Phase_1 | |||
| 52549 | SCF | Set the carry flag and return. | ||
| 52550 | RET | |||
| Prev: 52379 | Up: Map | Next: 52551 |