| Prev: 90E0 | Up: Map | Next: 9122 |
9109: Add a life to the current player.
|
Increments the current player's life count, prints the updated lives display, and triggers the bonus life sound. Switches to channel 2 (main screen) for printing, then restores channel 1 (upper screen) for the caller.
|
||||
| add_life | 9109 | PUSH AF | Increment lives and print updated display on main screen. | |
| 910A | CALL ld_lives | |||
| 910D | INC (HL) | |||
| 910E | LD A,$02 | |||
| 9110 | CALL $1601 | |||
| 9113 | CALL print_lives | |||
| 9116 | LD HL,($9283) | |||
| 9119 | SET 4,(HL) | Trigger bonus life sound, restore upper screen channel. | ||
| 911B | LD A,$01 | |||
| 911D | CALL $1601 | |||
| 9120 | POP AF | |||
| 9121 | RET | |||
| Prev: 90E0 | Up: Map | Next: 9122 |