stupid sprite limit bug fixed
authornotaz <notasas@gmail.com>
Mon, 14 Jul 2008 14:59:49 +0000 (14:59 +0000)
committernotaz <notasas@gmail.com>
Mon, 14 Jul 2008 14:59:49 +0000 (14:59 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@544 be3aeb3a-fb24-0410-a615-afba39da0efa

Pico/Draw.c
Pico/VideoPort.c

index c076624..d3d80ff 100644 (file)
@@ -958,7 +958,7 @@ void PrepareSprites(int full)
   {\r
     int pack;\r
     // updates: tilecode, sx\r
-    for (u=0; u < max_lines && (pack = *pd); u++, pd+=2)\r
+    for (u=0; u < max_sprites && (pack = *pd); u++, pd+=2)\r
     {\r
       unsigned int *sprite;\r
       int code2, sx, sy, height;\r
@@ -1010,7 +1010,7 @@ found:;
     for (u = 0; u < max_lines; u++)\r
       *((int *)&HighLnSpr[u][0]) = 0;\r
 \r
-    for (u = 0; u < max_lines; u++)\r
+    for (u = 0; u < max_sprites; u++)\r
     {\r
       unsigned int *sprite;\r
       int code, code2, sx, sy, hv, height, width;\r
index 7852b25..3663732 100644 (file)
@@ -364,7 +364,8 @@ PICO_INTERNAL_ASM void PicoVideoWrite(unsigned int a,unsigned short d)
           SekCyclesBurn(32); // penalty // 488/12-8\r
           if (SekCycleCnt>=SekCycleAim) SekEndRun(0);\r
         }\r
-        elprintf(EL_ASVDP, "VDP data write: %04x {%i} #%i @ %06x", d, Pico.video.type, pvid->lwrite_cnt, SekPc);\r
+        elprintf(EL_ASVDP, "VDP data write: %04x [%06x] {%i} #%i @ %06x", d, Pico.video.addr,\r
+                 Pico.video.type, pvid->lwrite_cnt, SekPc);\r
       }\r
       VideoWrite(d);\r
     }\r
@@ -410,6 +411,7 @@ PICO_INTERNAL_ASM void PicoVideoWrite(unsigned int a,unsigned short d)
             update_irq = 1;\r
             break;\r
           case 0x05:\r
+            //elprintf(EL_STATUS, "spritep moved to %04x", (unsigned)(Pico.video.reg[5]&0x7f) << 9);\r
             if (d^dold) rendstatus |= PDRAW_SPRITES_MOVED;\r
             break;\r
           case 0x0c:\r