Previous 15994 Revisions Next

r5970 Monday 5th October, 2009 at 09:47:45 UTC by Robbbert
[SNES] 1. Fixed fatal error when loading a second cart in newui/messui.
2. Fixed FILERR OUT OF MEMORY error when unloading a cart.
3. Cart is no longer mandatory.
4. sfcbox given the same game status as the others.
[src/mess/drivers]snes.c
[src/mess/machine]snescart.c

src/mess/machine/snescart.c
r5969r5970
212212
213213MACHINE_START( snes_mess )
214214{
215   snes_ram = memory_region(machine, "maincpu");
215216   add_exit_callback(machine, snes_machine_stop);
216217   MACHINE_START_CALL(snes);
217218}
r5969r5970
346347   unsigned char *ROM;
347348   int length;
348349
349   memory_region_alloc(machine, "maincpu", 0x1000000, 0);
350
351350   snes_ram = memory_region(machine, "maincpu");
352351   memset( snes_ram, 0, 0x1000000 );
353352
r5969r5970
809808MACHINE_DRIVER_START( snes_cartslot )
810809   MDRV_CARTSLOT_ADD("cart")
811810   MDRV_CARTSLOT_EXTENSION_LIST("smc,sfc,fig,swc")
812   MDRV_CARTSLOT_MANDATORY
811   MDRV_CARTSLOT_NOT_MANDATORY
813812   MDRV_CARTSLOT_LOAD(snes_cart)
814813MACHINE_DRIVER_END
src/mess/drivers/snes.c
r5969r5970
274274***************************************************************************/
275275
276276ROM_START(snes)
277   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
277278   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
278279   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
279280   ROM_REGION( 0x1000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
r5969r5970
283284ROM_END
284285
285286ROM_START(snessfx)
287   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
286288   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
287289   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
288290   ROM_REGION( 0x1000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
r5969r5970
291293ROM_END
292294
293295ROM_START(snespal)
296   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
294297   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
295298   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
296299   ROM_REGION( 0x1000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
r5969r5970
300303ROM_END
301304
302305ROM_START(snespsfx)
306   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
303307   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
304308   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
305309   ROM_REGION( 0x1000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
r5969r5970
308312ROM_END
309313
310314ROM_START(sfcbox)
315   ROM_REGION( 0x1000000, "maincpu", ROMREGION_ERASE00 )
311316   /* atm, we only load these here, but we don't really emulate anything */
312317   ROM_REGION( 0x10000, "grom", 0 )
313318   ROM_LOAD( "grom1-1.bin", 0x0000, 0x8000, CRC(333bf9a7) SHA1(5d0cd9ca29e5580c3eebe9f136839987c879f979) )
r5969r5970
334339CONS( 1989, snessfx, snes,   0,      snessfx, snes,  0,    0,   "Nintendo", "Super Nintendo Entertainment System / Super Famicom (NTSC), SuperFX", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
335340CONS( 1991, snespal, snes,   0,      snespal, snes,  0,    0,   "Nintendo", "Super Nintendo Entertainment System (PAL)",  GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
336341CONS( 1991, snespsfx,snes,   0,      snespsfx,snes,  0,    0,   "Nintendo", "Super Nintendo Entertainment System (PAL), SuperFX",  GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
337CONS( 199?, sfcbox,  snes,   0,      snes,    snes,  0,    0,   "Nintendo", "Super Famicom Box (NTSC)", GAME_NOT_WORKING )
342CONS( 199?, sfcbox,  snes,   0,      snes,    snes,  0,    0,   "Nintendo", "Super Famicom Box (NTSC)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team