MACHINE_DRIVER_END static void megaduck_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { /* cartslot */ switch(state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ case DEVINFO_INT_COUNT: info->i = 1; break; case DEVINFO_INT_MUST_BE_LOADED: info->i = 1; break; /* --- the following bits of info are returned as pointers to data or functions --- */ case DEVINFO_PTR_LOAD: info->load = device_load_megaduck_cart; break; /* --- the following bits of info are returned as NULL-terminated strings --- */ case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; default: cartslot_device_getinfo(devclass, state, info); break; } }
/* Total Memory Size: 64k Internal RAM, 64k Expansion RAM, 32k SmartWriter ROM, 8k OS7, 32k Cartridge, 32k Extra Lineal virtual memory map: 0x00000, 0x07fff -> Lower Internal RAM 0x08000, 0x0ffff -> Upper Internal RAM 0x10000, 0x17fff -> Lower Expansion RAM 0x18000, 0x1ffff -> Upper Expansion RAM 0x20000, 0x27fff -> SmartWriter ROM 0x28000, 0x2ffff -> Cartridge 0x30000, 0x31fff -> OS7 ROM (ColecoVision ROM) 0x32000, 0x39fff -> EOS ROM 0x3A000, 0x41fff -> Used to Write Protect ROMs 0x42000, 0x47fff -> Low unused EOS ROM */ ROM_START (adam) ROM_REGION( 0x42000, REGION_CPU1, 0) ROM_LOAD ("wp.rom", 0x20000, 0x8000, CRC(58d86a2a) SHA1(d4aec4efe1431e56fe52d83baf9118542c525255)) ROM_LOAD ("os7.rom", 0x30000, 0x2000, CRC(3aa93ef3) SHA1(45bedc4cbdeac66c7df59e9e599195c778d86a92)) ROM_LOAD ("eos.rom", 0x38000, 0x2000, CRC(05a37a34) SHA1(ad3c20ef444f10af7ae8eb75c81e500d9b1bba3d)) ROM_CART_LOAD(0, "rom\0col\0bin\0", 0x28000, 0x8000, ROM_NOMIRROR | ROM_OPTIONAL) //ROM_REGION( 0x10000, REGION_CPU2, 0) //ROM_LOAD ("master68.rom", 0x0100, 0x0E4, CRC(619a47b8)) /* Replacement 6801 Master ROM */ ROM_END static void adam_cartslot_getinfo(struct IODevice *dev) { /* cartslot */ cartslot_device_getinfo(dev); dev->imgverify = adam_cart_verify; }
static void svi318_cartslot_getinfo(struct IODevice *dev) { /* cartslot */ cartslot_device_getinfo(dev); dev->count = 1; dev->file_extensions = "rom\0"; dev->load = device_load_svi318_cart; dev->unload = device_unload_svi318_cart; }
ROM_END static void jupiter_cartslot_getinfo(struct IODevice *dev) { /* cartslot */ cartslot_device_getinfo(dev); dev->count = 1; dev->file_extensions = "ace\0"; dev->load = device_load_jupiter_ace; }
/* space filled with key icons by mekd2_init_driver */ ROM_END static void mekd2_cartslot_getinfo(struct IODevice *dev) { /* cartslot */ cartslot_device_getinfo(dev); dev->count = 1; dev->file_extensions = "d2\0"; dev->load = device_load_mekd2_cart; }
SYSTEM_CONFIG_END static void famicom_cartslot_getinfo(struct IODevice *dev) { /* cartslot */ cartslot_device_getinfo(dev); dev->count = 1; dev->file_extensions = "nes\0"; dev->load = device_load_nes_cart; dev->partialhash = nes_partialhash; }
MACHINE_DRIVER_END static void wswan_cartslot_getinfo(struct IODevice *dev) { /* cartslot */ cartslot_device_getinfo(dev); dev->count = 1; dev->file_extensions = "ws\0wsc\0"; dev->must_be_loaded = 1; dev->load = device_load_wswan_cart; }
MACHINE_DRIVER_END static void nes_cartslot_getinfo(struct IODevice *dev) { /* cartslot */ cartslot_device_getinfo(dev); dev->count = 1; dev->file_extensions = "nes\0"; dev->must_be_loaded = 1; dev->load = device_load_nes_cart; dev->partialhash = nes_partialhash; }
ROM_END static void coleco_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { /* cartslot */ switch(state) { /* --- the following bits of info are returned as pointers to data or functions --- */ case DEVINFO_PTR_VERIFY: info->imgverify = coleco_cart_verify; break; default: cartslot_device_getinfo(devclass, state, info); break; } }
static void studio2_cartslot_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { switch( state ) { case DEVINFO_INT_COUNT: info->i = 1; break; case DEVINFO_PTR_LOAD: info->load = device_load_studio2_cart; break; case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "st2"); break; default: cartslot_device_getinfo( devclass, state, info ); break; } }
void cbmcartslot_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { switch(state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ case DEVINFO_INT_COUNT: info->i = 2; break; /* --- the following bits of info are returned as NULL-terminated strings --- */ case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "crt"); break; /* --- the following bits of info are returned as pointers to data or functions --- */ case DEVINFO_PTR_INIT: info->init = device_init_cbm_rom; break; case DEVINFO_PTR_LOAD: info->load = device_load_cbm_rom; break; case DEVINFO_PTR_UNLOAD: info->unload = device_unload_cbm_rom; break; default: cartslot_device_getinfo(devclass, state, info); } }
SYSTEM_CONFIG_END static void famicom_cartslot_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { /* cartslot */ switch(state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ case DEVINFO_INT_COUNT: info->i = 1; break; /* --- the following bits of info are returned as pointers to data or functions --- */ case DEVINFO_PTR_LOAD: info->load = device_load_nes_cart; break; case DEVINFO_PTR_PARTIAL_HASH: info->partialhash = nes_partialhash; break; /* --- the following bits of info are returned as NULL-terminated strings --- */ case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "nes"); break; default: cartslot_device_getinfo(devclass, state, info); break; } }
MACHINE_DRIVER_END static void gamecom_cartslot_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { switch( state ) { case DEVINFO_INT_COUNT: info->i = 1; break; case DEVINFO_PTR_INIT: info->init = device_init_gamecom_cart; break; case DEVINFO_PTR_LOAD: info->load = device_load_gamecom_cart; break; case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "bin"); break; default: cartslot_device_getinfo( devclass, state, info ); break; } }
static void primo_cartslot_getinfo(struct IODevice *dev) { /* cartslot */ cartslot_device_getinfo(dev); dev->name = device_name_cartslot_primo; }