diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-20 15:16:35 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-20 15:16:35 +0100 |
| commit | 606bd95503e3c3caf61c90f48271c41651bdc937 (patch) | |
| tree | 31a2887e08f87d46aaa051a1e5a872633a6dda05 /src/jetpac.s | |
| parent | 8f7b8ce3335404badc276445d899372839cdde71 (diff) | |
| download | jetpac.nes-606bd95503e3c3caf61c90f48271c41651bdc937.tar.gz jetpac.nes-606bd95503e3c3caf61c90f48271c41651bdc937.zip | |
Push the value from Over::handle() to the stack
Setting 'Globals::zp_tmp0' with it is potentially dangerous given how
volatile this temporary memory address is.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src/jetpac.s')
| -rw-r--r-- | src/jetpac.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jetpac.s b/src/jetpac.s index f6a53a9..f99c8b0 100644 --- a/src/jetpac.s +++ b/src/jetpac.s @@ -230,7 +230,7 @@ ;; which effectively means to just sit and wait until for the right player ;; input. jsr Over::handle - sta Globals::zp_tmp0 + pha ;; Wait for the PPU to render the screen. @set_flags_over: @@ -242,7 +242,7 @@ bmi @wait_for_render_over ;; Can the player start over? - lda Globals::zp_tmp0 + pla beq @main_game_loop ;; We will skip the initialization of the assets so to avoid writing into |
