[pypy-svn] r60227 - pypy/trunk/pypy/lang/gameboy/debug

cami at codespeak.net cami at codespeak.net
Sat Nov 29 13:04:36 CET 2008


Author: cami
Date: Sat Nov 29 13:04:34 2008
New Revision: 60227

Modified:
   pypy/trunk/pypy/lang/gameboy/debug/debug_comparator.py
   pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py
Log:
removed video palette test since we use different colors now


Modified: pypy/trunk/pypy/lang/gameboy/debug/debug_comparator.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/debug/debug_comparator.py	(original)
+++ pypy/trunk/pypy/lang/gameboy/debug/debug_comparator.py	Sat Nov 29 13:04:34 2008
@@ -30,6 +30,7 @@
 
     def __init__(self, debug_connection):
         self.debug_connection = debug_connection
+        self.memory_check_skip = 5
         
     
     def compare(self, data):
@@ -38,7 +39,7 @@
     def compare_memory(self, name, expected, new):
         self.print_compare(name+" length", len(expected), len(new))
         if len(expected) != len(new): return
-        for address in range(0, len(expected), 1):
+        for address in range(0, len(expected), self.memory_check_skip):
             self.print_compare(name+" value at "+hex(address), \
                     expected[address], new[address])
     
@@ -277,7 +278,7 @@
             ("oam",     self.video.oam,     "oam"),
             ("line",    self.video.line,    "line"),
             ("objects", self.video.objects, "objects"),
-            ("palette", self.video.palette, "palette")
+            #("palette", self.video.palette, "palette")
         ]
         self.compare_memory_set(cmp, data, label="video");
     

Modified: pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py	(original)
+++ pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py	Sat Nov 29 13:04:34 2008
@@ -13,10 +13,10 @@
 
 ROM_PATH    = str(py.magic.autopath().dirpath().dirpath())+"/rom"
 filename    = ROM_PATH + "/rom9/rom9.gb"
-SOCKET_PORT = 55680
-skipExecs   = 9999999
-# skipExecs   = 22545
-# skipExecs   = 2700
+SOCKET_PORT = 55682
+skipExecs   = 999999
+#skipExecs   = 22545
+#skipExecs   = 2700
 # skipExecs   = 0
 
 # ------------------------------------------------------------------------------



More information about the Pypy-commit mailing list