From: Lukas Krickl Date: Sun, 21 Sep 2025 06:34:22 +0000 (+0200) Subject: debug: Added jp to hl for debug routine X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=82e81df5925d8470543fbd4e5e71adc7bff5d8bf;p=gbrg%2F.git debug: Added jp to hl for debug routine --- 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