Previous 15994 Revisions Next

r3434 Saturday 11th October, 2008 at 19:19:42 UTC by Justin Kerk
[A7800] Allow running without cartridge now that there's an NTSC BIOS with a built-in game
[src/mess/drivers]a7800.c

src/mess/drivers/a7800.c
r3433r3434
351351    ROM_LOAD ("7800pal.rom", 0xc000, 0x4000, CRC(d5b61170) SHA1(5a140136a16d1d83e4ff32a19409ca376a8df874))
352352ROM_END
353353
354static void a7800_ntsc_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
354static void a7800_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
355355{
356356   /* cartslot */
357357   switch(state)
358358   {
359359      /* --- the following bits of info are returned as 64-bit signed integers --- */
360360      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
361      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
361      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 0; break;
362362
363363      /* --- the following bits of info are returned as pointers to data or functions --- */
364364      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(a7800_cart); break;
r3433r3434
372372   }
373373}
374374
375static SYSTEM_CONFIG_START(a7800_ntsc)
376   CONFIG_DEVICE(a7800_ntsc_cartslot_getinfo)
375static SYSTEM_CONFIG_START(a7800)
376   CONFIG_DEVICE(a7800_cartslot_getinfo)
377377SYSTEM_CONFIG_END
378378
379static void a7800_pal_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
380{
381   /* cartslot */
382   switch(state)
383   {
384      /* --- the following bits of info are returned as 64-bit signed integers --- */
385      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 0; break;
386      default:                              a7800_ntsc_cartslot_getinfo( devclass, state, info); break;
387   }
388}
389
390static SYSTEM_CONFIG_START(a7800_pal)
391   CONFIG_DEVICE(a7800_pal_cartslot_getinfo)
392SYSTEM_CONFIG_END
393
394379/***************************************************************************
395380
396381  Game driver(s)
r3433r3434
398383***************************************************************************/
399384
400385/*    YEAR  NAME      PARENT    COMPAT  MACHINE     INPUT     INIT          CONFIG      COMPANY   FULLNAME */
401CONS( 1986, a7800,    0,        0,      a7800_ntsc,   a7800,    a7800_ntsc,   a7800_ntsc,   "Atari",  "Atari 7800 NTSC" , 0)
402CONS( 1986, a7800p,   a7800,    0,      a7800_pal,   a7800,    a7800_pal,   a7800_pal,   "Atari",  "Atari 7800 PAL" , 0)
386CONS( 1986, a7800,    0,        0,      a7800_ntsc,   a7800,    a7800_ntsc,   a7800,      "Atari",  "Atari 7800 NTSC" , 0)
387CONS( 1986, a7800p,   a7800,    0,      a7800_pal,   a7800,    a7800_pal,   a7800,      "Atari",  "Atari 7800 PAL" , 0)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team