From 606bd95503e3c3caf61c90f48271c41651bdc937 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 20 Mar 2026 15:16:35 +0100 Subject: Push the value from Over::handle() to the stack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Setting 'Globals::zp_tmp0' with it is potentially dangerous given how volatile this temporary memory address is. Signed-off-by: Miquel Sabaté Solà --- src/jetpac.s | 4 ++-- 1 file 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 -- cgit v1.2.3