From 6b4f15af0e31e24b90c88920bf2c3f408733a544 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 19 May 2023 21:55:15 +0300 Subject: [PATCH] Debugger sprite output update --- debug.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/debug.cpp b/debug.cpp index 4e158ae7..00aebc0f 100644 --- a/debug.cpp +++ b/debug.cpp @@ -6049,7 +6049,7 @@ static void debug_sprite (TCHAR **inptr) int ecs, sh10; int y, i; TCHAR tmp[80]; - int max = 2; + int max = 14; addr2 = 0; ignore_ws(inptr); @@ -6106,6 +6106,11 @@ static void debug_sprite (TCHAR **inptr) if (ypose < ypos) ypose += 256; + if (ecs_agnus) { + ypos = ypos_ecs; + ypose = ypose_ecs; + } + for (y = ypos; y < ypose; y++) { int x; addr += size * 4; @@ -6174,8 +6179,10 @@ static void debug_sprite (TCHAR **inptr) if (get_word_debug (addr) == 0 && get_word_debug (addr + size * 4) == 0) break; max--; - if (max <= 0) + if (max <= 0) { + console_out_f(_T("Max sprite count reached.\n")); break; + } } } -- 2.47.3