Previous 15994 Revisions Next

r1354 Friday 30th November, 2007 at 16:06:46 UTC by Wilbert Pol
[GBPOCKET] Added VRAM initialization code to set part of the VRAM to the correct values.
[src/mess/machine]gb.c

src/mess/machine/gb.c
r1353r1354
301301   gb_sound_w(0x15,0xF3);
302302   gb_sound_w(0x14,0x77);
303303
304   /* Initialize part of VRAM. This code must be deleted when we have added the bios dump */
305   {
306      int i;
307      for( i = 1; i < 0x0D; i++ ) {
308         gb_vram[ 0x1903 + i ] = i;
309         gb_vram[ 0x1923 + i ] = i + 0x0C;
310      }
311      gb_vram[ 0x1910 ] = 0x19;
312   }
313
304314   /* Enable BIOS rom if we have one */
305315   memory_set_bankptr(5, ROMMap[ROMBank00] ? ROMMap[ROMBank00] : gb_dummy_rom_bank );
306316   memory_set_bankptr(10, ROMMap[ROMBank00] ? ROMMap[ROMBank00] + 0x0100 : gb_dummy_rom_bank + 0x0100);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team