src/mess/drivers/a7800.c
| r3433 | r3434 | |
| 351 | 351 | ROM_LOAD ("7800pal.rom", 0xc000, 0x4000, CRC(d5b61170) SHA1(5a140136a16d1d83e4ff32a19409ca376a8df874)) |
| 352 | 352 | ROM_END |
| 353 | 353 | |
| 354 | | static void a7800_ntsc_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 354 | static void a7800_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 355 | 355 | { |
| 356 | 356 | /* cartslot */ |
| 357 | 357 | switch(state) |
| 358 | 358 | { |
| 359 | 359 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 360 | 360 | 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; |
| 362 | 362 | |
| 363 | 363 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 364 | 364 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(a7800_cart); break; |
| r3433 | r3434 | |
| 372 | 372 | } |
| 373 | 373 | } |
| 374 | 374 | |
| 375 | | static SYSTEM_CONFIG_START(a7800_ntsc) |
| 376 | | CONFIG_DEVICE(a7800_ntsc_cartslot_getinfo) |
| 375 | static SYSTEM_CONFIG_START(a7800) |
| 376 | CONFIG_DEVICE(a7800_cartslot_getinfo) |
| 377 | 377 | SYSTEM_CONFIG_END |
| 378 | 378 | |
| 379 | | static 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 | | |
| 390 | | static SYSTEM_CONFIG_START(a7800_pal) |
| 391 | | CONFIG_DEVICE(a7800_pal_cartslot_getinfo) |
| 392 | | SYSTEM_CONFIG_END |
| 393 | | |
| 394 | 379 | /*************************************************************************** |
| 395 | 380 | |
| 396 | 381 | Game driver(s) |
| r3433 | r3434 | |
| 398 | 383 | ***************************************************************************/ |
| 399 | 384 | |
| 400 | 385 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 401 | | CONS( 1986, a7800, 0, 0, a7800_ntsc, a7800, a7800_ntsc, a7800_ntsc, "Atari", "Atari 7800 NTSC" , 0) |
| 402 | | CONS( 1986, a7800p, a7800, 0, a7800_pal, a7800, a7800_pal, a7800_pal, "Atari", "Atari 7800 PAL" , 0) |
| 386 | CONS( 1986, a7800, 0, 0, a7800_ntsc, a7800, a7800_ntsc, a7800, "Atari", "Atari 7800 NTSC" , 0) |
| 387 | CONS( 1986, a7800p, a7800, 0, a7800_pal, a7800, a7800_pal, a7800, "Atari", "Atari 7800 PAL" , 0) |