aboutsummaryrefslogtreecommitdiff
path: root/src/vectors.s
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2025-10-12 22:38:43 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2025-10-12 22:38:43 +0200
commit2fe3eedc1a562493165fc6523409c7b77180904f (patch)
treeb8931fa43ecea71c8237fbad4bfefdda21b20553 /src/vectors.s
parentdf763e6d73cb3e7afa5aa84fbc75aed6c87b3599 (diff)
downloadjetpac.nes-2fe3eedc1a562493165fc6523409c7b77180904f.tar.gz
jetpac.nes-2fe3eedc1a562493165fc6523409c7b77180904f.zip
Don't handle frame drops unless PARTIAL is set
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à <mssola@mssola.com>
Diffstat (limited to 'src/vectors.s')
-rw-r--r--src/vectors.s4
1 files changed, 4 insertions, 0 deletions
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.