SYSTEM_CONFIG_END static void zx81_cassette_getinfo(struct IODevice *dev) { /* cassette */ cassette_device_getinfo(dev, zx81_p_format, &zx81_cassette_options, CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED); dev->count = 1; }
ROM_END static void kc85_cassette_getinfo(struct IODevice *dev) { /* cassette */ cassette_device_getinfo(dev, NULL, NULL, (cassette_state) -1); dev->count = 1; }
ROM_END static void mz700_cassette_getinfo(struct IODevice *dev) { /* cassette */ cassette_device_getinfo(dev, mz700_cassette_formats, NULL, (cassette_state) -1); dev->count = 1; }
ROM_END static void dai_cassette_getinfo(struct IODevice *dev) { /* cassette */ cassette_device_getinfo(dev, NULL, &dai_cassette_options, CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED); dev->count = 1; }
static void tmc600_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { /* cassette */ switch(state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ case DEVINFO_INT_COUNT: info->i = 1; break; default: cassette_device_getinfo(devclass, state, info); break; } }
static void vtech1_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { /* cassette */ 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_CASSETTE_FORMATS: info->p = (void *) vtech1_cassette_formats; break; default: cassette_device_getinfo(devclass, state, info); break; } }
MACHINE_DRIVER_END static void electron_cassette_getinfo( const device_class *devclass, UINT32 state, union devinfo *info ) { switch( state ) { case DEVINFO_INT_COUNT: info->i = 1; break; case DEVINFO_PTR_CASSETTE_FORMATS: info->p = (void *)uef_cassette_formats; break; default: cassette_device_getinfo( devclass, state, info ); break; } }
static void bbc_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { /* cassette */ 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 NULL-terminated strings --- */ case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "wav"); break; /* --- the following bits of info are returned as 64-bit signed integers --- */ case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED; break; default: cassette_device_getinfo(devclass, state, info); break; } }
static void zx80_cassette_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) { /* cassette */ 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_CASSETTE_FORMATS: info->p = (void *) zx80_o_format; break; case DEVINFO_PTR_CASSETTE_OPTIONS: info->p = (void *) &zx81_cassette_options; break; /* --- the following bits of info are returned as 64-bit signed integers --- */ case DEVINFO_INT_CASSETTE_DEFAULT_STATE: info->i = CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED; break; default: cassette_device_getinfo(devclass, state, info); break; } }
/*TMS5220 ROM space*/ ROM_REGION(0x8000, region_speech_rom, 0) ROM_LOAD_OPTIONAL("spchrom.bin", 0x0000, 0x8000, CRC(58b155f7)) /* system speech ROM */ ROM_END #define rom_ti99_4e rom_ti99_4 #define rom_ti99_4ae rom_ti99_4a /* a TI99 console only had one cartridge slot, but cutting the ROMs * in 3 files seems to be the only way to handle cartridges until I use * a headered format. * Note that there sometimes was a speech ROM slot in the speech synthesizer, * and you could plug quite a lot of GROMs in the side port. Neither of these * are emulated. */ static void ti99_4_cassette_getinfo(struct IODevice *dev) { /* cassette */ cassette_device_getinfo(dev, NULL, NULL, (cassette_state) -1); dev->count = 2; }
static void svi318_cassette_getinfo(struct IODevice *dev) { /* cassette */ cassette_device_getinfo(dev, svi_cassette_formats, NULL, (cassette_state) -1); dev->count = 1; }
static void primo_cassette_getinfo(struct IODevice *dev) { /* cassette */ cassette_device_getinfo(dev, primo_ptp_format, &primo_cassette_options, CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED); dev->count = 1; }
static void exidy_cassette_getinfo(struct IODevice *dev) { /* cassette */ cassette_device_getinfo(dev, NULL, NULL, (cassette_state) -1); dev->count = 2; }