[pypy-svn] r62490 - in pypy/trunk/pypy/lang/gameboy: . debug

tverwaes at codespeak.net tverwaes at codespeak.net
Tue Mar 3 18:51:10 CET 2009


Author: tverwaes
Date: Tue Mar  3 18:51:10 2009
New Revision: 62490

Modified:
   pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py
   pypy/trunk/pypy/lang/gameboy/video.py
Log:
fixing writing start in VRAM_B to take overlap into account. McDonaldland now
shows up nicely!


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	Tue Mar  3 18:51:10 2009
@@ -13,7 +13,7 @@
 
 ROM_PATH    = str(py.magic.autopath().dirpath().dirpath())+"/rom"
 # filename    = ROM_PATH + "/rom9/rom9.gb"
-filename = "/home/tverwaes/roms/KirbysDreamLand.gb"
+filename = "/home/tverwaes/roms/McDonaldland.gb"
 SOCKET_PORT = 55682
 
 skip_count   = 22545

Modified: pypy/trunk/pypy/lang/gameboy/video.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/video.py	(original)
+++ pypy/trunk/pypy/lang/gameboy/video.py	Tue Mar  3 18:51:10 2009
@@ -83,7 +83,7 @@
         if tile_index < TILE_DATA_SIZE:
             return self.tile_data_0[tile_index]
         else:
-            return self.tile_data_1[tile_index - TILE_DATA_SIZE]
+            return self.tile_data_1[tile_index - TILE_DATA_SIZE / 2]
 
     def select_tile_group_for(self, address):
         tile_map_index = address - TILE_MAP_ADDR #) >> 1



More information about the Pypy-commit mailing list