From: Toni Wilen Date: Fri, 19 May 2023 18:55:15 +0000 (+0300) Subject: Debugger sprite output update X-Git-Tag: 5.0.0~29 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=6b4f15af0e31e24b90c88920bf2c3f408733a544;p=francis%2Fwinuae.git Debugger sprite output update --- 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; + } } }