diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-02 22:43:09 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-02 22:43:09 +0100 |
| commit | 05fda0c6b9631e24bd1e097aed711ade5719717e (patch) | |
| tree | eb7efcd67c3f36707c35338fa194d3d64750de41 | |
| parent | 8ffad74ae370c0125c62b56ba23d8d74d48a4b3d (diff) | |
| download | jetpac.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>
| -rw-r--r-- | include/debug.s | 3 |
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 |
