From 2fe3eedc1a562493165fc6523409c7b77180904f Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 12 Oct 2025 22:38:43 +0200 Subject: Don't handle frame drops unless PARTIAL is set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes commit 6e274fb50251 ("partial: Account for frame drops") in the sense that the accounting of frame drops should _never_ affect production binaries. Even if the two instructions would've never been reached if PARTIAL=0, they would still be included in the final binary, which is not necessary. Signed-off-by: Miquel Sabaté Solà --- src/vectors.s | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/vectors.s b/src/vectors.s index 77ce0bc..af343a7 100644 --- a/src/vectors.s +++ b/src/vectors.s @@ -155,9 +155,13 @@ @end: rti + + ;; If we are on a dev environment, account for any frame drops. +.ifdef PARTIAL @account_for_frame_drop: inc Debug::zp_frame_drops rti +.endif .endproc ;; Unused. -- cgit v1.2.3