aboutsummaryrefslogtreecommitdiff
path: root/include/debug.s
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-03-02 22:43:09 +0100
committerMiquel Sabaté Solà <mssola@mssola.com>2026-03-02 22:43:09 +0100
commit05fda0c6b9631e24bd1e097aed711ade5719717e (patch)
treeeb7efcd67c3f36707c35338fa194d3d64750de41 /include/debug.s
parent8ffad74ae370c0125c62b56ba23d8d74d48a4b3d (diff)
downloadjetpac.nes-05fda0c6b9631e24bd1e097aed711ade5719717e.tar.gz
jetpac.nes-05fda0c6b9631e24bd1e097aed711ade5719717e.zip
debug: Add general debugging counter
This counter is useful to account for certain numbers in hot spots. This way, and with a memory viewer or a debugger, you can directly tell whenever something is off. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'include/debug.s')
-rw-r--r--include/debug.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/debug.s b/include/debug.s
index fc29bef..a7dbdfa 100644
--- a/include/debug.s
+++ b/include/debug.s
@@ -2,4 +2,7 @@
.scope Debug
;; Counter for frame drops. Only touched when PARTIAL is defined.
zp_frame_drops = $90 ; asan:ignore
+
+ ;; General purpose counter.
+ zp_counter = $91 ; asan:ignore
.endscope