diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2025-10-12 22:38:43 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2025-10-12 22:38:43 +0200 |
| commit | 2fe3eedc1a562493165fc6523409c7b77180904f (patch) | |
| tree | b8931fa43ecea71c8237fbad4bfefdda21b20553 | |
| parent | df763e6d73cb3e7afa5aa84fbc75aed6c87b3599 (diff) | |
| download | jetpac.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>
| -rw-r--r-- | src/vectors.s | 4 |
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. |
