]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Debugger sprite output update
authorToni Wilen <twilen@winuae.net>
Fri, 19 May 2023 18:55:15 +0000 (21:55 +0300)
committerToni Wilen <twilen@winuae.net>
Fri, 19 May 2023 18:55:15 +0000 (21:55 +0300)
debug.cpp

index 4e158ae75a2e2dc83dd4d936af318b7d1c15ebc6..00aebc0f1f821ee692241fcbf36bfd8a3f9c7ddd 100644 (file)
--- 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;
+               }
        }
 
 }