From 05fda0c6b9631e24bd1e097aed711ade5719717e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 2 Mar 2026 22:43:09 +0100 Subject: debug: Add general debugging counter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- include/debug.s | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/debug.s') 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 -- cgit v1.2.3