NotEnoughLives
by kappatechy
Game: SMW
Description: Keep Mario between 2 and 5 lives
!cur_lives = $7E0DBE !player_mode = $7e0071 !coin_count = $7E0DBF ; For debugging ; If > 5 lives, set lives to 3 LDA !cur_lives CMP #$05 BCS setlives ; Run the rest only if Mario's dying LDA !player_mode CMP #$9 BNE end ; Oh no! Mario's lives are about to hit 0! ; This runs when Mario's dropping from 2 to 1 as well... ; But if run only when dropping from 1 to 0, it triggers Game Over ; Not sure there's a workaround to that LDA !cur_lives CMP #$01 BCS end setlives: LDA #$02 STA !cur_lives end: RTLback to listings