Previous 15994 Revisions Next

r763 Monday 30th July, 2007 at 16:04:57 UTC by Wilbert Pol
[GAMEBOY] Fixed hard reset from crashing the driver. (bug #1138)
[docs]messnew.txt
[src/mess/machine]gb.c

src/mess/machine/gb.c
r762r763
244244
245245MACHINE_RESET( gb )
246246{
247        gb_init();
247   gb_init();
248248
249249   gb_video_init();
250250
251        /* Enable BIOS rom */
252        memory_set_bankptr(5, memory_region(REGION_CPU1) );
253        memory_set_bankptr(10, ROMMap[ROMBank00] + 0x0100 );
251   /* Enable BIOS rom */
252   memory_set_bankptr(5, memory_region(REGION_CPU1) );
253   memory_set_bankptr(10, ROMMap[ROMBank00] + 0x0100 );
254254}
255255
256256MACHINE_RESET( sgb )
r762r763
264264   memory_set_bankptr(5, ROMMap[ROMBank00] ? ROMMap[ROMBank00] : gb_dummy_rom_bank );
265265   memory_set_bankptr(10, ROMMap[ROMBank00] ? ROMMap[ROMBank00] + 0x0100 : gb_dummy_rom_bank + 0x0100 );
266266
267   if ( sgb_tile_data == NULL ) {
268      sgb_tile_data = auto_malloc( 0x2000 );
269   }
267   sgb_tile_data = auto_malloc( 0x2000 );
270268   memset( sgb_tile_data, 0, 0x2000 );
271269
272270   /* Initialize the Sound Registers */
r762r763
12881286{
12891287   int I;
12901288
1291   if ( gb_dummy_rom_bank == NULL ) {
1292      gb_dummy_rom_bank = auto_malloc( 0x4000 );
1293      memset( gb_dummy_rom_bank, 0xFF, 0x4000 );
1294   }
1289   gb_dummy_rom_bank = auto_malloc( 0x4000 );
1290   memset( gb_dummy_rom_bank, 0xFF, 0x4000 );
12951291
1296   if ( gb_dummy_ram_bank == NULL ) {
1297      gb_dummy_ram_bank = auto_malloc( 0x2000 );
1298      memset( gb_dummy_ram_bank, 0x00, 0x2000 );
1299   }
1292   gb_dummy_ram_bank = auto_malloc( 0x2000 );
1293   memset( gb_dummy_ram_bank, 0x00, 0x2000 );
13001294
13011295   for(I = 0; I < MAX_ROMBANK; I++) {
13021296      ROMMap[I] = gb_dummy_rom_bank;
docs/messnew.txt
r762r763
2929- [COCO] Fixed writing when extending the lengths of a VHD file.  (bug #1320)
3030  [Nate Woods]
3131
32- [GAMEBOY] Fixed hard reset from crashing the driver.  (bug #1138) [Wilbert Pol]
33
3234- [SMS/GG] Updated sms drivers to use the SMSIII sound core. Updated gamegear
3335  drivers to use the GAMEGEAR sound core.  (bug #1272)
3436

Previous 15994 Revisions Next


© 1998-2018 The MESS Team