From 82e81df5925d8470543fbd4e5e71adc7bff5d8bf Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sun, 21 Sep 2025 08:34:22 +0200 Subject: [PATCH] debug: Added jp to hl for debug routine --- src/debug.s | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/debug.s b/src/debug.s index 953b5e6..45fa789 100644 --- a/src/debug.s +++ b/src/debug.s @@ -13,8 +13,21 @@ dbg_init: ; keys: ; down + select: cycle next debug function dbg_update: - call dbg_rect_draw - ret + ld a, [dbg_fn] + add a, a ; * 2 for table offset + + ld hl, debug_routines + ld d, 0 + ld e, a + add hl, de + + ld a, [hl+] + ld d, a + ld a, [hl] + ld h, a + ld l, d + + jp hl ; draws a marker obj at ; the edge of a rectangle -- 2.30.2