src/mess/image.c
| r4910 | r4911 | |
| 1 | 1 | /**************************************************************************** |
| 2 | 2 | |
| 3 | | image.c |
| 3 | image.c |
| 4 | 4 | |
| 5 | | Code for handling devices/software images |
| 5 | Code for handling devices/software images |
| 6 | 6 | |
| 7 | | The UI can call image_load and image_unload to associate and disassociate |
| 8 | | with disk images on disk. In fact, devices that unmount on their own (like |
| 9 | | Mac floppy drives) may call this from within a driver. |
| 7 | The UI can call image_load and image_unload to associate and disassociate |
| 8 | with disk images on disk. In fact, devices that unmount on their own (like |
| 9 | Mac floppy drives) may call this from within a driver. |
| 10 | 10 | |
| 11 | 11 | ****************************************************************************/ |
| 12 | 12 | |
| r4910 | r4911 | |
| 33 | 33 | typedef struct _image_slot_data image_slot_data; |
| 34 | 34 | struct _image_slot_data |
| 35 | 35 | { |
| 36 | | /* variables that persist across image mounts */ |
| 37 | | object_pool *mempool; |
| 38 | | const device_config *dev; |
| 39 | | image_device_info info; |
| 36 | /* variables that persist across image mounts */ |
| 37 | object_pool *mempool; |
| 38 | const device_config *dev; |
| 39 | image_device_info info; |
| 40 | 40 | |
| 41 | | /* creation info */ |
| 42 | | const option_guide *create_option_guide; |
| 43 | | image_device_format *formatlist; |
| 41 | /* creation info */ |
| 42 | const option_guide *create_option_guide; |
| 43 | image_device_format *formatlist; |
| 44 | 44 | |
| 45 | | /* callbacks */ |
| 46 | | device_image_load_func load; |
| 47 | | device_image_create_func create; |
| 48 | | device_image_unload_func unload; |
| 49 | | device_image_verify_func verify; |
| 45 | /* callbacks */ |
| 46 | device_image_load_func load; |
| 47 | device_image_create_func create; |
| 48 | device_image_unload_func unload; |
| 49 | device_image_verify_func verify; |
| 50 | 50 | |
| 51 | | /* error related info */ |
| 52 | | image_error_t err; |
| 53 | | char *err_message; |
| 51 | /* error related info */ |
| 52 | image_error_t err; |
| 53 | char *err_message; |
| 54 | 54 | |
| 55 | | /* variables that are only non-zero when an image is mounted */ |
| 56 | | core_file *file; |
| 57 | | astring *name; |
| 58 | | char *dir; |
| 59 | | char *hash; |
| 60 | | char *basename_noext; |
| 55 | /* variables that are only non-zero when an image is mounted */ |
| 56 | core_file *file; |
| 57 | astring *name; |
| 58 | char *dir; |
| 59 | char *hash; |
| 60 | char *basename_noext; |
| 61 | 61 | |
| 62 | | /* flags */ |
| 63 | | unsigned int writeable : 1; |
| 64 | | unsigned int created : 1; |
| 65 | | unsigned int is_loading : 1; |
| 62 | /* flags */ |
| 63 | unsigned int writeable : 1; |
| 64 | unsigned int created : 1; |
| 65 | unsigned int is_loading : 1; |
| 66 | 66 | |
| 67 | | /* info read from the hash file */ |
| 68 | | char *longname; |
| 69 | | char *manufacturer; |
| 70 | | char *year; |
| 71 | | char *playable; |
| 72 | | char *pcb; |
| 73 | | char *extrainfo; |
| 67 | /* info read from the hash file */ |
| 68 | char *longname; |
| 69 | char *manufacturer; |
| 70 | char *year; |
| 71 | char *playable; |
| 72 | char *pcb; |
| 73 | char *extrainfo; |
| 74 | 74 | |
| 75 | | /* working directory; persists across mounts */ |
| 76 | | astring *working_directory; |
| 75 | /* working directory; persists across mounts */ |
| 76 | astring *working_directory; |
| 77 | 77 | |
| 78 | | /* special - used when creating */ |
| 79 | | int create_format; |
| 80 | | option_resolution *create_args; |
| 78 | /* special - used when creating */ |
| 79 | int create_format; |
| 80 | option_resolution *create_args; |
| 81 | 81 | |
| 82 | | /* pointer */ |
| 83 | | void *ptr; |
| 82 | /* pointer */ |
| 83 | void *ptr; |
| 84 | 84 | }; |
| 85 | 85 | |
| 86 | 86 | |
| 87 | 87 | |
| 88 | 88 | struct _images_private |
| 89 | 89 | { |
| 90 | | int slot_count; |
| 91 | | image_slot_data slots[1]; |
| 90 | int slot_count; |
| 91 | image_slot_data slots[1]; |
| 92 | 92 | }; |
| 93 | 93 | |
| 94 | 94 | |
| r4910 | r4911 | |
| 110 | 110 | |
| 111 | 111 | /*------------------------------------------------- |
| 112 | 112 | device_get_info_int_offline - return an integer |
| 113 | | state value from an allocated device; can be |
| 114 | | called offline |
| 113 | state value from an allocated device; can be |
| 114 | called offline |
| 115 | 115 | -------------------------------------------------*/ |
| 116 | 116 | |
| 117 | 117 | INLINE INT64 device_get_info_int_offline(const device_config *device, UINT32 state) |
| 118 | 118 | { |
| 119 | | deviceinfo info; |
| 119 | deviceinfo info; |
| 120 | 120 | |
| 121 | | assert(device != NULL); |
| 122 | | assert(device->type != NULL); |
| 123 | | assert(state >= DEVINFO_INT_FIRST && state <= DEVINFO_INT_LAST); |
| 121 | assert(device != NULL); |
| 122 | assert(device->type != NULL); |
| 123 | assert(state >= DEVINFO_INT_FIRST && state <= DEVINFO_INT_LAST); |
| 124 | 124 | |
| 125 | | /* retrieve the value */ |
| 126 | | info.i = 0; |
| 127 | | (*device->type)(device, state, &info); |
| 128 | | return info.i; |
| 125 | /* retrieve the value */ |
| 126 | info.i = 0; |
| 127 | (*device->type)(device, state, &info); |
| 128 | return info.i; |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | |
| 132 | 132 | |
| 133 | 133 | /*------------------------------------------------- |
| 134 | 134 | device_get_info_fct_offline - return an integer |
| 135 | | state value from an allocated device; can be |
| 136 | | called offline |
| 135 | state value from an allocated device; can be |
| 136 | called offline |
| 137 | 137 | -------------------------------------------------*/ |
| 138 | 138 | |
| 139 | 139 | INLINE genf *device_get_info_fct_offline(const device_config *device, UINT32 state) |
| 140 | 140 | { |
| 141 | | deviceinfo info; |
| 141 | deviceinfo info; |
| 142 | 142 | |
| 143 | | assert(device != NULL); |
| 144 | | assert(device->type != NULL); |
| 145 | | assert(state >= DEVINFO_FCT_FIRST && state <= DEVINFO_FCT_LAST); |
| 143 | assert(device != NULL); |
| 144 | assert(device->type != NULL); |
| 145 | assert(state >= DEVINFO_FCT_FIRST && state <= DEVINFO_FCT_LAST); |
| 146 | 146 | |
| 147 | | /* retrieve the value */ |
| 148 | | info.f = 0; |
| 149 | | (*device->type)(device, state, &info); |
| 150 | | return info.f; |
| 147 | /* retrieve the value */ |
| 148 | info.f = 0; |
| 149 | (*device->type)(device, state, &info); |
| 150 | return info.f; |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | |
| r4910 | r4911 | |
| 162 | 162 | |
| 163 | 163 | static void memory_error(const char *message) |
| 164 | 164 | { |
| 165 | | fatalerror("%s", message); |
| 165 | fatalerror("%s", message); |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | |
| r4910 | r4911 | |
| 173 | 173 | |
| 174 | 174 | void image_init(running_machine *machine) |
| 175 | 175 | { |
| 176 | | int count, indx, format_count, i; |
| 177 | | const device_config *dev; |
| 178 | | size_t private_size; |
| 179 | | image_slot_data *slot; |
| 180 | | image_device_format **formatptr; |
| 181 | | image_device_format *format; |
| 176 | int count, indx, format_count, i; |
| 177 | const device_config *dev; |
| 178 | size_t private_size; |
| 179 | image_slot_data *slot; |
| 180 | image_device_format **formatptr; |
| 181 | image_device_format *format; |
| 182 | 182 | |
| 183 | | /* sanity checks */ |
| 184 | | assert(DEVINFO_FCT_IMAGE_FIRST > DEVINFO_FCT_FIRST); |
| 185 | | assert(DEVINFO_FCT_IMAGE_LAST < DEVINFO_FCT_DEVICE_SPECIFIC); |
| 183 | /* sanity checks */ |
| 184 | assert(DEVINFO_FCT_IMAGE_FIRST > DEVINFO_FCT_FIRST); |
| 185 | assert(DEVINFO_FCT_IMAGE_LAST < DEVINFO_FCT_DEVICE_SPECIFIC); |
| 186 | 186 | |
| 187 | | /* first count all images, and identify multiply defined devices */ |
| 188 | | count = image_device_count(machine->config); |
| 187 | /* first count all images, and identify multiply defined devices */ |
| 188 | count = image_device_count(machine->config); |
| 189 | 189 | |
| 190 | | /* allocate the private structure */ |
| 191 | | private_size = sizeof(*machine->images_data) + ((count - 1) |
| 192 | | * sizeof(machine->images_data->slots[0])); |
| 193 | | machine->images_data = (images_private *) auto_alloc_array_clear(machine, char, private_size); |
| 194 | | memset(machine->images_data, '\0', private_size); |
| 190 | /* allocate the private structure */ |
| 191 | private_size = sizeof(*machine->images_data) + ((count - 1) |
| 192 | * sizeof(machine->images_data->slots[0])); |
| 193 | machine->images_data = (images_private *) auto_alloc_array_clear(machine, char, private_size); |
| 194 | memset(machine->images_data, '\0', private_size); |
| 195 | 195 | |
| 196 | | /* some setup */ |
| 197 | | machine->images_data->slot_count = count; |
| 196 | /* some setup */ |
| 197 | machine->images_data->slot_count = count; |
| 198 | 198 | |
| 199 | | /* initialize the devices */ |
| 200 | | indx = 0; |
| 201 | | for (dev = image_device_first(machine->config); dev != NULL; dev = image_device_next(dev)) |
| 202 | | { |
| 203 | | slot = &machine->images_data->slots[indx]; |
| 199 | /* initialize the devices */ |
| 200 | indx = 0; |
| 201 | for (dev = image_device_first(machine->config); dev != NULL; dev = image_device_next(dev)) |
| 202 | { |
| 203 | slot = &machine->images_data->slots[indx]; |
| 204 | 204 | |
| 205 | | /* create a memory pool, and allocated strings */ |
| 206 | | slot->mempool = pool_alloc(memory_error); |
| 207 | | slot->name = astring_alloc(); |
| 208 | | slot->working_directory = astring_alloc(); |
| 205 | /* create a memory pool, and allocated strings */ |
| 206 | slot->mempool = pool_alloc(memory_error); |
| 207 | slot->name = astring_alloc(); |
| 208 | slot->working_directory = astring_alloc(); |
| 209 | 209 | |
| 210 | | /* clear error message */ |
| 211 | | slot->err_message = NULL; |
| 210 | /* clear error message */ |
| 211 | slot->err_message = NULL; |
| 212 | 212 | |
| 213 | | /* setup the device */ |
| 214 | | slot->dev = dev; |
| 215 | | slot->info = image_device_getinfo(machine->config, dev); |
| 213 | /* setup the device */ |
| 214 | slot->dev = dev; |
| 215 | slot->info = image_device_getinfo(machine->config, dev); |
| 216 | 216 | |
| 217 | | /* callbacks */ |
| 218 | | slot->load = (device_image_load_func) device_get_info_fct(slot->dev, DEVINFO_FCT_IMAGE_LOAD); |
| 219 | | slot->create = (device_image_create_func) device_get_info_fct(slot->dev, DEVINFO_FCT_IMAGE_CREATE); |
| 220 | | slot->unload = (device_image_unload_func) device_get_info_fct(slot->dev, DEVINFO_FCT_IMAGE_UNLOAD); |
| 221 | | slot->verify = (device_image_verify_func) device_get_info_fct(slot->dev, DEVINFO_FCT_IMAGE_VERIFY); |
| 217 | /* callbacks */ |
| 218 | slot->load = (device_image_load_func) device_get_info_fct(slot->dev, DEVINFO_FCT_IMAGE_LOAD); |
| 219 | slot->create = (device_image_create_func) device_get_info_fct(slot->dev, DEVINFO_FCT_IMAGE_CREATE); |
| 220 | slot->unload = (device_image_unload_func) device_get_info_fct(slot->dev, DEVINFO_FCT_IMAGE_UNLOAD); |
| 221 | slot->verify = (device_image_verify_func) device_get_info_fct(slot->dev, DEVINFO_FCT_IMAGE_VERIFY); |
| 222 | 222 | |
| 223 | | /* creation option guide */ |
| 224 | | slot->create_option_guide = (const option_guide *) device_get_info_ptr(slot->dev, DEVINFO_PTR_IMAGE_CREATE_OPTGUIDE); |
| 223 | /* creation option guide */ |
| 224 | slot->create_option_guide = (const option_guide *) device_get_info_ptr(slot->dev, DEVINFO_PTR_IMAGE_CREATE_OPTGUIDE); |
| 225 | 225 | |
| 226 | | /* creation formats */ |
| 227 | | format_count = device_get_info_int(slot->dev, DEVINFO_INT_IMAGE_CREATE_OPTCOUNT); |
| 228 | | formatptr = &slot->formatlist; |
| 229 | | for (i = 0; i < format_count; i++) |
| 230 | | { |
| 231 | | /* allocate a new format */ |
| 232 | | format = auto_alloc_clear(machine, image_device_format); |
| 226 | /* creation formats */ |
| 227 | format_count = device_get_info_int(slot->dev, DEVINFO_INT_IMAGE_CREATE_OPTCOUNT); |
| 228 | formatptr = &slot->formatlist; |
| 229 | for (i = 0; i < format_count; i++) |
| 230 | { |
| 231 | /* allocate a new format */ |
| 232 | format = auto_alloc_clear(machine, image_device_format); |
| 233 | 233 | |
| 234 | | /* populate it */ |
| 235 | | format->index = i; |
| 236 | | format->name = auto_strdup(machine, device_get_info_string(slot->dev, DEVINFO_STR_IMAGE_CREATE_OPTNAME + i)); |
| 237 | | format->description = auto_strdup(machine, device_get_info_string(slot->dev, DEVINFO_STR_IMAGE_CREATE_OPTDESC + i)); |
| 238 | | format->extensions = auto_strdup(machine, device_get_info_string(slot->dev, DEVINFO_STR_IMAGE_CREATE_OPTEXTS + i)); |
| 239 | | format->optspec = device_get_info_ptr(slot->dev, DEVINFO_PTR_IMAGE_CREATE_OPTSPEC + i); |
| 234 | /* populate it */ |
| 235 | format->index = i; |
| 236 | format->name = auto_strdup(machine, device_get_info_string(slot->dev, DEVINFO_STR_IMAGE_CREATE_OPTNAME + i)); |
| 237 | format->description = auto_strdup(machine, device_get_info_string(slot->dev, DEVINFO_STR_IMAGE_CREATE_OPTDESC + i)); |
| 238 | format->extensions = auto_strdup(machine, device_get_info_string(slot->dev, DEVINFO_STR_IMAGE_CREATE_OPTEXTS + i)); |
| 239 | format->optspec = device_get_info_ptr(slot->dev, DEVINFO_PTR_IMAGE_CREATE_OPTSPEC + i); |
| 240 | 240 | |
| 241 | | /* and append it to the list */ |
| 242 | | *formatptr = format; |
| 243 | | formatptr = &format->next; |
| 244 | | } |
| 241 | /* and append it to the list */ |
| 242 | *formatptr = format; |
| 243 | formatptr = &format->next; |
| 244 | } |
| 245 | 245 | |
| 246 | | indx++; |
| 247 | | } |
| 246 | indx++; |
| 247 | } |
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | |
| 251 | 251 | |
| 252 | 252 | /*------------------------------------------------- |
| 253 | 253 | image_unload_all - unload all images and |
| 254 | | extract options |
| 254 | extract options |
| 255 | 255 | -------------------------------------------------*/ |
| 256 | 256 | |
| 257 | 257 | void image_unload_all(running_machine *machine) |
| 258 | 258 | { |
| 259 | | int i; |
| 260 | | image_slot_data *slot; |
| 259 | int i; |
| 260 | image_slot_data *slot; |
| 261 | 261 | |
| 262 | | if (machine->images_data != NULL) |
| 263 | | { |
| 264 | | /* extract the options */ |
| 265 | | mess_options_extract(machine); |
| 262 | if (machine->images_data != NULL) |
| 263 | { |
| 264 | /* extract the options */ |
| 265 | mess_options_extract(machine); |
| 266 | 266 | |
| 267 | | for (i = 0; i < machine->images_data->slot_count; i++) |
| 268 | | { |
| 269 | | /* identify the image slot */ |
| 270 | | slot = &machine->images_data->slots[i]; |
| 267 | for (i = 0; i < machine->images_data->slot_count; i++) |
| 268 | { |
| 269 | /* identify the image slot */ |
| 270 | slot = &machine->images_data->slots[i]; |
| 271 | 271 | |
| 272 | | /* unload this image */ |
| 273 | | image_unload_internal(slot); |
| 272 | /* unload this image */ |
| 273 | image_unload_internal(slot); |
| 274 | 274 | |
| 275 | | /* free the memory pool */ |
| 276 | | pool_free(slot->mempool); |
| 277 | | slot->mempool = NULL; |
| 275 | /* free the memory pool */ |
| 276 | pool_free(slot->mempool); |
| 277 | slot->mempool = NULL; |
| 278 | 278 | |
| 279 | | /* free the allocated strings */ |
| 280 | | astring_free(slot->name); |
| 281 | | astring_free(slot->working_directory); |
| 282 | | slot->name = NULL; |
| 283 | | slot->working_directory = NULL; |
| 284 | | } |
| 279 | /* free the allocated strings */ |
| 280 | astring_free(slot->name); |
| 281 | astring_free(slot->working_directory); |
| 282 | slot->name = NULL; |
| 283 | slot->working_directory = NULL; |
| 284 | } |
| 285 | 285 | |
| 286 | | machine->images_data = NULL; |
| 287 | | } |
| 286 | machine->images_data = NULL; |
| 287 | } |
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | |
| r4910 | r4911 | |
| 295 | 295 | |
| 296 | 296 | /*------------------------------------------------- |
| 297 | 297 | is_image_device - determines if a particular |
| 298 | | device supports images or not |
| 298 | device supports images or not |
| 299 | 299 | -------------------------------------------------*/ |
| 300 | 300 | |
| 301 | 301 | static int is_image_device(const device_config *device) |
| 302 | 302 | { |
| 303 | | return (device->type == MESS_DEVICE) |
| 304 | | || (device_get_info_int_offline(device, DEVINFO_INT_IMAGE_READABLE) != 0) |
| 305 | | || (device_get_info_int_offline(device, DEVINFO_INT_IMAGE_WRITEABLE) != 0); |
| 303 | return (device->type == MESS_DEVICE) |
| 304 | || (device_get_info_int_offline(device, DEVINFO_INT_IMAGE_READABLE) != 0) |
| 305 | || (device_get_info_int_offline(device, DEVINFO_INT_IMAGE_WRITEABLE) != 0); |
| 306 | 306 | } |
| 307 | 307 | |
| 308 | 308 | |
| 309 | 309 | |
| 310 | 310 | /*------------------------------------------------- |
| 311 | 311 | image_device_first - return the first device in |
| 312 | | the list that supports images |
| 312 | the list that supports images |
| 313 | 313 | -------------------------------------------------*/ |
| 314 | 314 | |
| 315 | 315 | const device_config *image_device_first(const machine_config *config) |
| 316 | 316 | { |
| 317 | | const device_config *device = device_list_first(config->devicelist, DEVICE_TYPE_WILDCARD); |
| 318 | | while((device != NULL) && !is_image_device(device)) |
| 319 | | { |
| 320 | | device = device_list_next(device, DEVICE_TYPE_WILDCARD); |
| 321 | | } |
| 322 | | return device; |
| 317 | const device_config *device = device_list_first(config->devicelist, DEVICE_TYPE_WILDCARD); |
| 318 | while((device != NULL) && !is_image_device(device)) |
| 319 | { |
| 320 | device = device_list_next(device, DEVICE_TYPE_WILDCARD); |
| 321 | } |
| 322 | return device; |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | |
| 326 | 326 | |
| 327 | 327 | /*------------------------------------------------- |
| 328 | 328 | image_device_next - return the next device in |
| 329 | | the list that supports images |
| 329 | the list that supports images |
| 330 | 330 | -------------------------------------------------*/ |
| 331 | 331 | |
| 332 | 332 | const device_config *image_device_next(const device_config *prevdevice) |
| 333 | 333 | { |
| 334 | | const device_config *device = device_list_next(prevdevice, DEVICE_TYPE_WILDCARD); |
| 335 | | while((device != NULL) && !is_image_device(device)) |
| 336 | | { |
| 337 | | device = device_list_next(device, DEVICE_TYPE_WILDCARD); |
| 338 | | } |
| 339 | | return device; |
| 334 | const device_config *device = device_list_next(prevdevice, DEVICE_TYPE_WILDCARD); |
| 335 | while((device != NULL) && !is_image_device(device)) |
| 336 | { |
| 337 | device = device_list_next(device, DEVICE_TYPE_WILDCARD); |
| 338 | } |
| 339 | return device; |
| 340 | 340 | } |
| 341 | 341 | |
| 342 | 342 | |
| 343 | 343 | |
| 344 | 344 | /*------------------------------------------------- |
| 345 | 345 | image_device_count - counts the number of |
| 346 | | devices that support images |
| 346 | devices that support images |
| 347 | 347 | -------------------------------------------------*/ |
| 348 | 348 | |
| 349 | 349 | int image_device_count(const machine_config *config) |
| 350 | 350 | { |
| 351 | | int count = 0; |
| 352 | | const device_config *device; |
| 353 | | for (device = image_device_first(config); device != NULL; device = image_device_next(device)) |
| 354 | | { |
| 355 | | count++; |
| 356 | | } |
| 357 | | return count; |
| 351 | int count = 0; |
| 352 | const device_config *device; |
| 353 | for (device = image_device_first(config); device != NULL; device = image_device_next(device)) |
| 354 | { |
| 355 | count++; |
| 356 | } |
| 357 | return count; |
| 358 | 358 | } |
| 359 | 359 | |
| 360 | 360 | |
| r4910 | r4911 | |
| 365 | 365 | |
| 366 | 366 | /*------------------------------------------------- |
| 367 | 367 | get_device_name - retrieves the name of a |
| 368 | | device |
| 368 | device |
| 369 | 369 | -------------------------------------------------*/ |
| 370 | 370 | |
| 371 | 371 | static void get_device_name(const device_config *device, char *buffer, size_t buffer_len) |
| 372 | 372 | { |
| 373 | | const char *name = NULL; |
| 374 | | device_get_name_func get_name; |
| 375 | | |
| 376 | | if (name == NULL) |
| 377 | | { |
| 378 | | /* first try a get_name function */ |
| 379 | | get_name = (device_get_name_func) device_get_info_fct_offline(device, DEVINFO_FCT_GET_NAME); |
| 380 | | if (get_name != NULL) |
| 381 | | name = get_name(device, buffer, buffer_len); |
| 382 | | } |
| 373 | const char *name = NULL; |
| 374 | device_get_name_func get_name; |
| 383 | 375 | |
| 384 | | if (name == NULL) |
| 385 | | { |
| 386 | | /* next try DEVINFO_STR_NAME */ |
| 387 | | name = device_get_info_string(device, DEVINFO_STR_NAME); |
| 388 | | } |
| 376 | if (name == NULL) |
| 377 | { |
| 378 | /* first try a get_name function */ |
| 379 | get_name = (device_get_name_func) device_get_info_fct_offline(device, DEVINFO_FCT_GET_NAME); |
| 380 | if (get_name != NULL) |
| 381 | name = get_name(device, buffer, buffer_len); |
| 382 | } |
| 389 | 383 | |
| 390 | | /* make sure that the name is put into the buffer */ |
| 391 | | if (name != buffer) |
| 392 | | snprintf(buffer, buffer_len, "%s", (name != NULL) ? name : ""); |
| 384 | if (name == NULL) |
| 385 | { |
| 386 | /* next try DEVINFO_STR_NAME */ |
| 387 | name = device_get_info_string(device, DEVINFO_STR_NAME); |
| 388 | } |
| 389 | |
| 390 | /* make sure that the name is put into the buffer */ |
| 391 | if (name != buffer) |
| 392 | snprintf(buffer, buffer_len, "%s", (name != NULL) ? name : ""); |
| 393 | 393 | } |
| 394 | 394 | |
| 395 | 395 | |
| 396 | 396 | |
| 397 | 397 | /*------------------------------------------------- |
| 398 | 398 | get_device_file_extensions - retrieves the file |
| 399 | | extensions used by a device |
| 399 | extensions used by a device |
| 400 | 400 | -------------------------------------------------*/ |
| 401 | 401 | |
| 402 | 402 | static void get_device_file_extensions(const device_config *device, |
| 403 | | char *buffer, size_t buffer_len) |
| 403 | char *buffer, size_t buffer_len) |
| 404 | 404 | { |
| 405 | | const char *file_extensions; |
| 406 | | char *s; |
| 405 | const char *file_extensions; |
| 406 | char *s; |
| 407 | 407 | |
| 408 | | /* be pedantic - we need room for a string list */ |
| 409 | | assert(buffer_len > 0); |
| 410 | | buffer_len--; |
| 408 | /* be pedantic - we need room for a string list */ |
| 409 | assert(buffer_len > 0); |
| 410 | buffer_len--; |
| 411 | 411 | |
| 412 | | /* copy the string */ |
| 413 | | file_extensions = device_get_info_string(device, DEVINFO_STR_IMAGE_FILE_EXTENSIONS); |
| 414 | | snprintf(buffer, buffer_len, "%s", (file_extensions != NULL) ? file_extensions : ""); |
| 412 | /* copy the string */ |
| 413 | file_extensions = device_get_info_string(device, DEVINFO_STR_IMAGE_FILE_EXTENSIONS); |
| 414 | snprintf(buffer, buffer_len, "%s", (file_extensions != NULL) ? file_extensions : ""); |
| 415 | 415 | |
| 416 | | /* convert the comma delimited list to a NUL delimited list */ |
| 417 | | s = buffer; |
| 418 | | while((s = strchr(s, ',')) != NULL) |
| 419 | | *(s++) = '\0'; |
| 416 | /* convert the comma delimited list to a NUL delimited list */ |
| 417 | s = buffer; |
| 418 | while((s = strchr(s, ',')) != NULL) |
| 419 | *(s++) = '\0'; |
| 420 | 420 | } |
| 421 | 421 | |
| 422 | 422 | |
| 423 | 423 | |
| 424 | 424 | /*------------------------------------------------- |
| 425 | 425 | get_device_instance_name - retrieves the device |
| 426 | | instance name or brief instance name |
| 426 | instance name or brief instance name |
| 427 | 427 | -------------------------------------------------*/ |
| 428 | 428 | |
| 429 | 429 | static void get_device_instance_name(const machine_config *config, const device_config *device, |
| 430 | | char *buffer, size_t buffer_len, iodevice_t type, UINT32 state, const char *(*get_dev_typename)(iodevice_t)) |
| 430 | char *buffer, size_t buffer_len, iodevice_t type, UINT32 state, const char *(*get_dev_typename)(iodevice_t)) |
| 431 | 431 | { |
| 432 | | const char *result; |
| 433 | | const device_config *that_device; |
| 434 | | int count, index; |
| 432 | const char *result; |
| 433 | const device_config *that_device; |
| 434 | int count, index; |
| 435 | 435 | |
| 436 | | /* retrieve info about the device instance */ |
| 437 | | result = device_get_info_string(device, state); |
| 438 | | if ((result != NULL) && (result[0] != '\0')) |
| 439 | | { |
| 440 | | /* we got info directly */ |
| 441 | | snprintf(buffer, buffer_len, "%s", result); |
| 442 | | } |
| 443 | | else |
| 444 | | { |
| 445 | | /* not specified? default to device names based on the device type */ |
| 446 | | result = get_dev_typename(type); |
| 436 | /* retrieve info about the device instance */ |
| 437 | result = device_get_info_string(device, state); |
| 438 | if ((result != NULL) && (result[0] != '\0')) |
| 439 | { |
| 440 | /* we got info directly */ |
| 441 | snprintf(buffer, buffer_len, "%s", result); |
| 442 | } |
| 443 | else |
| 444 | { |
| 445 | /* not specified? default to device names based on the device type */ |
| 446 | result = get_dev_typename(type); |
| 447 | 447 | |
| 448 | | /* are there multiple devices of the same type */ |
| 449 | | count = 0; |
| 450 | | index = -1; |
| 451 | | for (that_device = image_device_first(config); that_device != NULL; that_device = image_device_next(that_device)) |
| 452 | | { |
| 453 | | if (device == that_device) |
| 454 | | index = count; |
| 455 | | if (device_get_info_int_offline(that_device, DEVINFO_INT_IMAGE_TYPE) == type) |
| 456 | | count++; |
| 457 | | } |
| 448 | /* are there multiple devices of the same type */ |
| 449 | count = 0; |
| 450 | index = -1; |
| 451 | for (that_device = image_device_first(config); that_device != NULL; that_device = image_device_next(that_device)) |
| 452 | { |
| 453 | if (device == that_device) |
| 454 | index = count; |
| 455 | if (device_get_info_int_offline(that_device, DEVINFO_INT_IMAGE_TYPE) == type) |
| 456 | count++; |
| 457 | } |
| 458 | 458 | |
| 459 | | /* need to number if there is more than one device */ |
| 460 | | if (count > 1) |
| 461 | | snprintf(buffer, buffer_len, "%s%d", result, index + 1); |
| 462 | | else |
| 463 | | snprintf(buffer, buffer_len, "%s", result); |
| 464 | | } |
| 459 | /* need to number if there is more than one device */ |
| 460 | if (count > 1) |
| 461 | snprintf(buffer, buffer_len, "%s%d", result, index + 1); |
| 462 | else |
| 463 | snprintf(buffer, buffer_len, "%s", result); |
| 464 | } |
| 465 | 465 | } |
| 466 | 466 | |
| 467 | 467 | |
| 468 | 468 | |
| 469 | 469 | /*------------------------------------------------- |
| 470 | 470 | image_device_getinfo - returns info on a device; |
| 471 | | can be called by front end code |
| 471 | can be called by front end code |
| 472 | 472 | -------------------------------------------------*/ |
| 473 | 473 | |
| 474 | 474 | image_device_info image_device_getinfo(const machine_config *config, const device_config *device) |
| 475 | 475 | { |
| 476 | | const device_config *this_device; |
| 477 | | image_device_info info; |
| 478 | | int found; |
| 476 | const device_config *this_device; |
| 477 | image_device_info info; |
| 478 | int found; |
| 479 | 479 | |
| 480 | | /* sanity checks */ |
| 481 | | assert((device->machine == NULL) || (device->machine->config == config)); |
| 482 | | if (device->machine == NULL) |
| 483 | | { |
| 484 | | found = FALSE; |
| 485 | | for (this_device = image_device_first(config); this_device != NULL; this_device = image_device_next(this_device)) |
| 486 | | { |
| 487 | | if (this_device == device) |
| 488 | | found = TRUE; |
| 489 | | } |
| 490 | | assert(found); |
| 491 | | } |
| 480 | /* sanity checks */ |
| 481 | assert((device->machine == NULL) || (device->machine->config == config)); |
| 482 | if (device->machine == NULL) |
| 483 | { |
| 484 | found = FALSE; |
| 485 | for (this_device = image_device_first(config); this_device != NULL; this_device = image_device_next(this_device)) |
| 486 | { |
| 487 | if (this_device == device) |
| 488 | found = TRUE; |
| 489 | } |
| 490 | assert(found); |
| 491 | } |
| 492 | 492 | |
| 493 | | /* clear return value */ |
| 494 | | memset(&info, 0, sizeof(info)); |
| 493 | /* clear return value */ |
| 494 | memset(&info, 0, sizeof(info)); |
| 495 | 495 | |
| 496 | | /* retrieve type */ |
| 497 | | info.type = (iodevice_t) (int) device_get_info_int_offline(device, DEVINFO_INT_IMAGE_TYPE); |
| 496 | /* retrieve type */ |
| 497 | info.type = (iodevice_t) (int) device_get_info_int_offline(device, DEVINFO_INT_IMAGE_TYPE); |
| 498 | 498 | |
| 499 | | /* retrieve flags */ |
| 500 | | info.readable = device_get_info_int_offline(device, DEVINFO_INT_IMAGE_READABLE) ? 1 : 0; |
| 501 | | info.writeable = device_get_info_int_offline(device, DEVINFO_INT_IMAGE_WRITEABLE) ? 1 : 0; |
| 502 | | info.creatable = device_get_info_int_offline(device, DEVINFO_INT_IMAGE_CREATABLE) ? 1 : 0; |
| 503 | | info.must_be_loaded = device_get_info_int_offline(device, DEVINFO_INT_IMAGE_MUST_BE_LOADED) ? 1 : 0; |
| 504 | | info.reset_on_load = device_get_info_int_offline(device, DEVINFO_INT_IMAGE_RESET_ON_LOAD) ? 1 : 0; |
| 505 | | info.has_partial_hash = device_get_info_fct_offline(device, DEVINFO_FCT_IMAGE_PARTIAL_HASH) ? 1 : 0; |
| 499 | /* retrieve flags */ |
| 500 | info.readable = device_get_info_int_offline(device, DEVINFO_INT_IMAGE_READABLE) ? 1 : 0; |
| 501 | info.writeable = device_get_info_int_offline(device, DEVINFO_INT_IMAGE_WRITEABLE) ? 1 : 0; |
| 502 | info.creatable = device_get_info_int_offline(device, DEVINFO_INT_IMAGE_CREATABLE) ? 1 : 0; |
| 503 | info.must_be_loaded = device_get_info_int_offline(device, DEVINFO_INT_IMAGE_MUST_BE_LOADED) ? 1 : 0; |
| 504 | info.reset_on_load = device_get_info_int_offline(device, DEVINFO_INT_IMAGE_RESET_ON_LOAD) ? 1 : 0; |
| 505 | info.has_partial_hash = device_get_info_fct_offline(device, DEVINFO_FCT_IMAGE_PARTIAL_HASH) ? 1 : 0; |
| 506 | 506 | |
| 507 | | /* retrieve name */ |
| 508 | | get_device_name(device, info.name, ARRAY_LENGTH(info.name)); |
| 507 | /* retrieve name */ |
| 508 | get_device_name(device, info.name, ARRAY_LENGTH(info.name)); |
| 509 | 509 | |
| 510 | | /* retrieve file extensions */ |
| 511 | | get_device_file_extensions(device, info.file_extensions, ARRAY_LENGTH(info.file_extensions)); |
| 510 | /* retrieve file extensions */ |
| 511 | get_device_file_extensions(device, info.file_extensions, ARRAY_LENGTH(info.file_extensions)); |
| 512 | 512 | |
| 513 | | /* retrieve instance name */ |
| 514 | | get_device_instance_name(config, device, info.instance_name, ARRAY_LENGTH(info.instance_name), |
| 515 | | info.type, DEVINFO_STR_IMAGE_INSTANCE_NAME, device_typename); |
| 513 | /* retrieve instance name */ |
| 514 | get_device_instance_name(config, device, info.instance_name, ARRAY_LENGTH(info.instance_name), |
| 515 | info.type, DEVINFO_STR_IMAGE_INSTANCE_NAME, device_typename); |
| 516 | 516 | |
| 517 | | /* retrieve brief instance name */ |
| 518 | | get_device_instance_name(config, device, info.brief_instance_name, ARRAY_LENGTH(info.brief_instance_name), |
| 519 | | info.type, DEVINFO_STR_IMAGE_BRIEF_INSTANCE_NAME, device_brieftypename); |
| 517 | /* retrieve brief instance name */ |
| 518 | get_device_instance_name(config, device, info.brief_instance_name, ARRAY_LENGTH(info.brief_instance_name), |
| 519 | info.type, DEVINFO_STR_IMAGE_BRIEF_INSTANCE_NAME, device_brieftypename); |
| 520 | 520 | |
| 521 | | return info; |
| 521 | return info; |
| 522 | 522 | } |
| 523 | 523 | |
| 524 | 524 | |
| 525 | 525 | |
| 526 | 526 | /*------------------------------------------------- |
| 527 | 527 | image_device_uses_file_extension - checks to |
| 528 | | see if a particular devices uses a certain |
| 529 | | file extension |
| 528 | see if a particular devices uses a certain |
| 529 | file extension |
| 530 | 530 | -------------------------------------------------*/ |
| 531 | 531 | |
| 532 | 532 | int image_device_uses_file_extension(const device_config *device, const char *file_extension) |
| 533 | 533 | { |
| 534 | | int result = FALSE; |
| 535 | | const char *s; |
| 536 | | char file_extension_list[256]; |
| 537 | | |
| 538 | | /* skip initial period, if present */ |
| 539 | | if (file_extension[0] == '.') |
| 540 | | file_extension++; |
| 534 | int result = FALSE; |
| 535 | const char *s; |
| 536 | char file_extension_list[256]; |
| 541 | 537 | |
| 542 | | /* retrieve file extension list */ |
| 543 | | get_device_file_extensions(device, file_extension_list, ARRAY_LENGTH(file_extension_list)); |
| 538 | /* skip initial period, if present */ |
| 539 | if (file_extension[0] == '.') |
| 540 | file_extension++; |
| 544 | 541 | |
| 545 | | /* find the extensions */ |
| 546 | | s = file_extension_list; |
| 547 | | while(!result && (*s != '\0')) |
| 548 | | { |
| 549 | | if (!mame_stricmp(s, file_extension)) |
| 550 | | { |
| 551 | | result = TRUE; |
| 552 | | break; |
| 553 | | } |
| 554 | | s += strlen(s) + 1; |
| 555 | | } |
| 556 | | return result; |
| 542 | /* retrieve file extension list */ |
| 543 | get_device_file_extensions(device, file_extension_list, ARRAY_LENGTH(file_extension_list)); |
| 544 | |
| 545 | /* find the extensions */ |
| 546 | s = file_extension_list; |
| 547 | while(!result && (*s != '\0')) |
| 548 | { |
| 549 | if (!mame_stricmp(s, file_extension)) |
| 550 | { |
| 551 | result = TRUE; |
| 552 | break; |
| 553 | } |
| 554 | s += strlen(s) + 1; |
| 555 | } |
| 556 | return result; |
| 557 | 557 | } |
| 558 | 558 | |
| 559 | 559 | |
| 560 | 560 | |
| 561 | 561 | /*------------------------------------------------- |
| 562 | 562 | image_device_compute_hash - compute a hash, |
| 563 | | using this device's partial hash if appropriate |
| 563 | using this device's partial hash if appropriate |
| 564 | 564 | -------------------------------------------------*/ |
| 565 | 565 | |
| 566 | 566 | void image_device_compute_hash(char *dest, const device_config *device, |
| 567 | | const void *data, size_t length, unsigned int functions) |
| 567 | const void *data, size_t length, unsigned int functions) |
| 568 | 568 | { |
| 569 | | device_image_partialhash_func partialhash; |
| 569 | device_image_partialhash_func partialhash; |
| 570 | 570 | |
| 571 | | /* retrieve the partial hash func */ |
| 572 | | partialhash = (device_image_partialhash_func) device_get_info_fct_offline(device, DEVINFO_FCT_IMAGE_PARTIAL_HASH); |
| 571 | /* retrieve the partial hash func */ |
| 572 | partialhash = (device_image_partialhash_func) device_get_info_fct_offline(device, DEVINFO_FCT_IMAGE_PARTIAL_HASH); |
| 573 | 573 | |
| 574 | | /* compute the hash */ |
| 575 | | if (partialhash != NULL) |
| 576 | | partialhash(dest, data, length, functions); |
| 577 | | else |
| 578 | | hash_compute(dest, data, length, functions); |
| 574 | /* compute the hash */ |
| 575 | if (partialhash != NULL) |
| 576 | partialhash(dest, data, length, functions); |
| 577 | else |
| 578 | hash_compute(dest, data, length, functions); |
| 579 | 579 | } |
| 580 | 580 | |
| 581 | 581 | |
| r4910 | r4911 | |
| 586 | 586 | |
| 587 | 587 | /*------------------------------------------------- |
| 588 | 588 | image_device_get_creation_option_guide - accesses |
| 589 | | the creation option guide |
| 589 | the creation option guide |
| 590 | 590 | -------------------------------------------------*/ |
| 591 | 591 | |
| 592 | 592 | const option_guide *image_device_get_creation_option_guide(const device_config *device) |
| 593 | 593 | { |
| 594 | | image_slot_data *slot = find_image_slot(device); |
| 595 | | return slot->create_option_guide; |
| 594 | image_slot_data *slot = find_image_slot(device); |
| 595 | return slot->create_option_guide; |
| 596 | 596 | } |
| 597 | 597 | |
| 598 | 598 | |
| 599 | 599 | |
| 600 | 600 | /*------------------------------------------------- |
| 601 | 601 | image_device_get_creatable_formats - accesses |
| 602 | | the image formats available for image creation |
| 602 | the image formats available for image creation |
| 603 | 603 | -------------------------------------------------*/ |
| 604 | 604 | |
| 605 | 605 | const image_device_format *image_device_get_creatable_formats(const device_config *device) |
| 606 | 606 | { |
| 607 | | image_slot_data *slot = find_image_slot(device); |
| 608 | | return slot->formatlist; |
| 607 | image_slot_data *slot = find_image_slot(device); |
| 608 | return slot->formatlist; |
| 609 | 609 | } |
| 610 | 610 | |
| 611 | 611 | |
| 612 | 612 | |
| 613 | 613 | /*------------------------------------------------- |
| 614 | 614 | image_device_get_indexed_creatable_format - |
| 615 | | accesses a specific image format available for |
| 616 | | image creation by index |
| 615 | accesses a specific image format available for |
| 616 | image creation by index |
| 617 | 617 | -------------------------------------------------*/ |
| 618 | 618 | |
| 619 | 619 | const image_device_format *image_device_get_indexed_creatable_format(const device_config *device, int index) |
| 620 | 620 | { |
| 621 | | const image_device_format *format = image_device_get_creatable_formats(device); |
| 622 | | while(index-- && (format != NULL)) |
| 623 | | format = format->next; |
| 624 | | return format; |
| 621 | const image_device_format *format = image_device_get_creatable_formats(device); |
| 622 | while(index-- && (format != NULL)) |
| 623 | format = format->next; |
| 624 | return format; |
| 625 | 625 | } |
| 626 | 626 | |
| 627 | 627 | |
| 628 | 628 | |
| 629 | 629 | /*------------------------------------------------- |
| 630 | 630 | image_device_get_named_creatable_format - |
| 631 | | accesses a specific image format available for |
| 632 | | image creation by name |
| 631 | accesses a specific image format available for |
| 632 | image creation by name |
| 633 | 633 | -------------------------------------------------*/ |
| 634 | 634 | |
| 635 | 635 | const image_device_format *image_device_get_named_creatable_format(const device_config *device, const char *format_name) |
| 636 | 636 | { |
| 637 | | const image_device_format *format = image_device_get_creatable_formats(device); |
| 638 | | while((format != NULL) && strcmp(format->name, format_name)) |
| 639 | | format = format->next; |
| 640 | | return format; |
| 637 | const image_device_format *format = image_device_get_creatable_formats(device); |
| 638 | while((format != NULL) && strcmp(format->name, format_name)) |
| 639 | format = format->next; |
| 640 | return format; |
| 641 | 641 | } |
| 642 | 642 | |
| 643 | 643 | |
| r4910 | r4911 | |
| 648 | 648 | |
| 649 | 649 | /*------------------------------------------------- |
| 650 | 650 | set_image_filename - specifies the filename of |
| 651 | | an image |
| 651 | an image |
| 652 | 652 | -------------------------------------------------*/ |
| 653 | 653 | |
| 654 | 654 | static image_error_t set_image_filename(image_slot_data *image, const char *filename) |
| 655 | 655 | { |
| 656 | | astring_cpyc(image->name, filename); |
| 657 | | zippath_parent(image->working_directory, filename); |
| 658 | | return IMAGE_ERROR_SUCCESS; |
| 656 | astring_cpyc(image->name, filename); |
| 657 | zippath_parent(image->working_directory, filename); |
| 658 | return IMAGE_ERROR_SUCCESS; |
| 659 | 659 | } |
| 660 | 660 | |
| 661 | 661 | |
| 662 | 662 | |
| 663 | 663 | /*------------------------------------------------- |
| 664 | 664 | is_loaded - quick check to determine whether an |
| 665 | | image is loaded |
| 665 | image is loaded |
| 666 | 666 | -------------------------------------------------*/ |
| 667 | 667 | |
| 668 | 668 | static int is_loaded(image_slot_data *image) |
| 669 | 669 | { |
| 670 | | return (image->file != NULL) || (image->ptr != NULL); |
| 670 | return (image->file != NULL) || (image->ptr != NULL); |
| 671 | 671 | } |
| 672 | 672 | |
| 673 | 673 | |
| 674 | 674 | |
| 675 | 675 | /*------------------------------------------------- |
| 676 | 676 | load_image_by_path - loads an image with a |
| 677 | | specific path |
| 677 | specific path |
| 678 | 678 | -------------------------------------------------*/ |
| 679 | 679 | |
| 680 | 680 | static image_error_t load_image_by_path(image_slot_data *image, UINT32 open_flags, const char *path) |
| 681 | 681 | { |
| 682 | | file_error filerr = FILERR_NOT_FOUND; |
| 683 | | image_error_t err = IMAGE_ERROR_FILENOTFOUND; |
| 684 | | astring *revised_path = astring_alloc(); |
| 682 | file_error filerr = FILERR_NOT_FOUND; |
| 683 | image_error_t err = IMAGE_ERROR_FILENOTFOUND; |
| 684 | astring *revised_path = astring_alloc(); |
| 685 | 685 | |
| 686 | | /* attempt to read the file */ |
| 687 | | filerr = zippath_fopen(path, open_flags, &image->file, revised_path); |
| 686 | /* attempt to read the file */ |
| 687 | filerr = zippath_fopen(path, open_flags, &image->file, revised_path); |
| 688 | 688 | |
| 689 | | /* did the open succeed? */ |
| 690 | | switch(filerr) |
| 691 | | { |
| 692 | | case FILERR_NONE: |
| 693 | | /* success! */ |
| 694 | | image->writeable = (open_flags & OPEN_FLAG_WRITE) ? 1 : 0; |
| 695 | | image->created = (open_flags & OPEN_FLAG_CREATE) ? 1 : 0; |
| 696 | | err = IMAGE_ERROR_SUCCESS; |
| 697 | | break; |
| 689 | /* did the open succeed? */ |
| 690 | switch(filerr) |
| 691 | { |
| 692 | case FILERR_NONE: |
| 693 | /* success! */ |
| 694 | image->writeable = (open_flags & OPEN_FLAG_WRITE) ? 1 : 0; |
| 695 | image->created = (open_flags & OPEN_FLAG_CREATE) ? 1 : 0; |
| 696 | err = IMAGE_ERROR_SUCCESS; |
| 697 | break; |
| 698 | 698 | |
| 699 | | case FILERR_NOT_FOUND: |
| 700 | | case FILERR_ACCESS_DENIED: |
| 701 | | /* file not found (or otherwise cannot open); continue */ |
| 702 | | err = IMAGE_ERROR_FILENOTFOUND; |
| 703 | | break; |
| 699 | case FILERR_NOT_FOUND: |
| 700 | case FILERR_ACCESS_DENIED: |
| 701 | /* file not found (or otherwise cannot open); continue */ |
| 702 | err = IMAGE_ERROR_FILENOTFOUND; |
| 703 | break; |
| 704 | 704 | |
| 705 | | case FILERR_OUT_OF_MEMORY: |
| 706 | | /* out of memory */ |
| 707 | | err = IMAGE_ERROR_OUTOFMEMORY; |
| 708 | | break; |
| 705 | case FILERR_OUT_OF_MEMORY: |
| 706 | /* out of memory */ |
| 707 | err = IMAGE_ERROR_OUTOFMEMORY; |
| 708 | break; |
| 709 | 709 | |
| 710 | | case FILERR_ALREADY_OPEN: |
| 711 | | /* this shouldn't happen */ |
| 712 | | err = IMAGE_ERROR_ALREADYOPEN; |
| 713 | | break; |
| 710 | case FILERR_ALREADY_OPEN: |
| 711 | /* this shouldn't happen */ |
| 712 | err = IMAGE_ERROR_ALREADYOPEN; |
| 713 | break; |
| 714 | 714 | |
| 715 | | case FILERR_FAILURE: |
| 716 | | case FILERR_TOO_MANY_FILES: |
| 717 | | case FILERR_INVALID_DATA: |
| 718 | | default: |
| 719 | | /* other errors */ |
| 720 | | err = IMAGE_ERROR_INTERNAL; |
| 721 | | break; |
| 722 | | } |
| 715 | case FILERR_FAILURE: |
| 716 | case FILERR_TOO_MANY_FILES: |
| 717 | case FILERR_INVALID_DATA: |
| 718 | default: |
| 719 | /* other errors */ |
| 720 | err = IMAGE_ERROR_INTERNAL; |
| 721 | break; |
| 722 | } |
| 723 | 723 | |
| 724 | | /* if successful, set the file name */ |
| 725 | | if (filerr == FILERR_NONE) |
| 726 | | set_image_filename(image, astring_c(revised_path)); |
| 724 | /* if successful, set the file name */ |
| 725 | if (filerr == FILERR_NONE) |
| 726 | set_image_filename(image, astring_c(revised_path)); |
| 727 | 727 | |
| 728 | | astring_free(revised_path); |
| 729 | | return err; |
| 728 | astring_free(revised_path); |
| 729 | return err; |
| 730 | 730 | } |
| 731 | 731 | |
| 732 | 732 | |
| 733 | 733 | |
| 734 | 734 | /*------------------------------------------------- |
| 735 | 735 | determine_open_plan - determines which open |
| 736 | | flags to use, and in what order |
| 736 | flags to use, and in what order |
| 737 | 737 | -------------------------------------------------*/ |
| 738 | 738 | |
| 739 | 739 | static void determine_open_plan(image_slot_data *image, int is_create, UINT32 *open_plan) |
| 740 | 740 | { |
| 741 | | int i = 0; |
| 741 | int i = 0; |
| 742 | 742 | |
| 743 | | /* emit flags */ |
| 744 | | if (!is_create && image->info.readable && image->info.writeable) |
| 745 | | open_plan[i++] = OPEN_FLAG_READ | OPEN_FLAG_WRITE; |
| 746 | | if (!is_create && !image->info.readable && image->info.writeable) |
| 747 | | open_plan[i++] = OPEN_FLAG_WRITE; |
| 748 | | if (!is_create && image->info.readable) |
| 749 | | open_plan[i++] = OPEN_FLAG_READ; |
| 750 | | if (image->info.writeable && image->info.creatable) |
| 751 | | open_plan[i++] = OPEN_FLAG_READ | OPEN_FLAG_WRITE | OPEN_FLAG_CREATE; |
| 752 | | open_plan[i] = 0; |
| 743 | /* emit flags */ |
| 744 | if (!is_create && image->info.readable && image->info.writeable) |
| 745 | open_plan[i++] = OPEN_FLAG_READ | OPEN_FLAG_WRITE; |
| 746 | if (!is_create && !image->info.readable && image->info.writeable) |
| 747 | open_plan[i++] = OPEN_FLAG_WRITE; |
| 748 | if (!is_create && image->info.readable) |
| 749 | open_plan[i++] = OPEN_FLAG_READ; |
| 750 | if (image->info.writeable && image->info.creatable) |
| 751 | open_plan[i++] = OPEN_FLAG_READ | OPEN_FLAG_WRITE | OPEN_FLAG_CREATE; |
| 752 | open_plan[i] = 0; |
| 753 | 753 | } |
| 754 | 754 | |
| 755 | 755 | |
| 756 | 756 | |
| 757 | 757 | /*------------------------------------------------- |
| 758 | 758 | find_image_slot - locates the slot for an |
| 759 | | image |
| 759 | image |
| 760 | 760 | -------------------------------------------------*/ |
| 761 | 761 | |
| 762 | 762 | static image_slot_data *find_image_slot(const device_config *image) |
| 763 | 763 | { |
| 764 | | int i; |
| 765 | | images_private *images_data = image->machine->images_data; |
| 764 | int i; |
| 765 | images_private *images_data = image->machine->images_data; |
| 766 | 766 | |
| 767 | | for (i = 0; i < images_data->slot_count; i++) |
| 768 | | { |
| 769 | | if (images_data->slots[i].dev == image) |
| 770 | | { |
| 771 | | return &images_data->slots[i]; |
| 772 | | } |
| 773 | | } |
| 774 | | return NULL; |
| 767 | for (i = 0; i < images_data->slot_count; i++) |
| 768 | { |
| 769 | if (images_data->slots[i].dev == image) |
| 770 | { |
| 771 | return &images_data->slots[i]; |
| 772 | } |
| 773 | } |
| 774 | return NULL; |
| 775 | 775 | } |
| 776 | 776 | |
| 777 | 777 | |
| r4910 | r4911 | |
| 781 | 781 | -------------------------------------------------*/ |
| 782 | 782 | |
| 783 | 783 | static int image_load_internal(const device_config *image, const char *path, |
| 784 | | int is_create, int create_format, option_resolution *create_args) |
| 784 | int is_create, int create_format, option_resolution *create_args) |
| 785 | 785 | { |
| 786 | | running_machine *machine = image->machine; |
| 787 | | image_error_t err; |
| 788 | | const void *buffer; |
| 789 | | UINT32 open_plan[4]; |
| 790 | | int i; |
| 791 | | image_slot_data *slot = find_image_slot(image); |
| 786 | running_machine *machine = image->machine; |
| 787 | image_error_t err; |
| 788 | const void *buffer; |
| 789 | UINT32 open_plan[4]; |
| 790 | int i; |
| 791 | image_slot_data *slot = find_image_slot(image); |
| 792 | 792 | |
| 793 | | /* sanity checks */ |
| 794 | | assert_always(image != NULL, "image_load(): image is NULL"); |
| 795 | | assert_always(path != NULL, "image_load(): path is NULL"); |
| 793 | /* sanity checks */ |
| 794 | assert_always(image != NULL, "image_load(): image is NULL"); |
| 795 | assert_always(path != NULL, "image_load(): path is NULL"); |
| 796 | 796 | |
| 797 | | /* first unload the image */ |
| 798 | | image_unload(image); |
| 797 | /* first unload the image */ |
| 798 | image_unload(image); |
| 799 | 799 | |
| 800 | | /* clear any possible error messages */ |
| 801 | | image_clear_error(slot); |
| 800 | /* clear any possible error messages */ |
| 801 | image_clear_error(slot); |
| 802 | 802 | |
| 803 | | /* we are now loading */ |
| 804 | | slot->is_loading = 1; |
| 803 | /* we are now loading */ |
| 804 | slot->is_loading = 1; |
| 805 | 805 | |
| 806 | | /* record the filename */ |
| 807 | | slot->err = set_image_filename(slot, path); |
| 808 | | if (slot->err) |
| 809 | | goto done; |
| 806 | /* record the filename */ |
| 807 | slot->err = set_image_filename(slot, path); |
| 808 | if (slot->err) |
| 809 | goto done; |
| 810 | 810 | |
| 811 | | /* do we need to reset the CPU? */ |
| 812 | | if ((attotime_compare(timer_get_time(machine), attotime_zero) > 0) && slot->info.reset_on_load) |
| 813 | | mame_schedule_hard_reset(machine); |
| 811 | /* do we need to reset the CPU? */ |
| 812 | if ((attotime_compare(timer_get_time(machine), attotime_zero) > 0) && slot->info.reset_on_load) |
| 813 | mame_schedule_hard_reset(machine); |
| 814 | 814 | |
| 815 | | /* determine open plan */ |
| 816 | | determine_open_plan(slot, is_create, open_plan); |
| 815 | /* determine open plan */ |
| 816 | determine_open_plan(slot, is_create, open_plan); |
| 817 | 817 | |
| 818 | | /* attempt to open the file in various ways */ |
| 819 | | for (i = 0; !slot->file && open_plan[i]; i++) |
| 820 | | { |
| 821 | | /* open the file */ |
| 822 | | slot->err = load_image_by_path(slot, open_plan[i], path); |
| 823 | | if (slot->err && (slot->err != IMAGE_ERROR_FILENOTFOUND)) |
| 824 | | goto done; |
| 825 | | } |
| 818 | /* attempt to open the file in various ways */ |
| 819 | for (i = 0; !slot->file && open_plan[i]; i++) |
| 820 | { |
| 821 | /* open the file */ |
| 822 | slot->err = load_image_by_path(slot, open_plan[i], path); |
| 823 | if (slot->err && (slot->err != IMAGE_ERROR_FILENOTFOUND)) |
| 824 | goto done; |
| 825 | } |
| 826 | 826 | |
| 827 | | /* did we fail to find the file? */ |
| 828 | | if (!is_loaded(slot)) |
| 829 | | { |
| 830 | | slot->err = IMAGE_ERROR_FILENOTFOUND; |
| 831 | | goto done; |
| 832 | | } |
| 827 | /* did we fail to find the file? */ |
| 828 | if (!is_loaded(slot)) |
| 829 | { |
| 830 | slot->err = IMAGE_ERROR_FILENOTFOUND; |
| 831 | goto done; |
| 832 | } |
| 833 | 833 | |
| 834 | | /* if applicable, call device verify */ |
| 835 | | if ((slot->verify != NULL) && !image_has_been_created(image)) |
| 836 | | { |
| 837 | | /* access the memory */ |
| 838 | | buffer = image_ptr(image); |
| 839 | | if (!buffer) |
| 840 | | { |
| 841 | | slot->err = IMAGE_ERROR_OUTOFMEMORY; |
| 842 | | goto done; |
| 843 | | } |
| 834 | /* if applicable, call device verify */ |
| 835 | if ((slot->verify != NULL) && !image_has_been_created(image)) |
| 836 | { |
| 837 | /* access the memory */ |
| 838 | buffer = image_ptr(image); |
| 839 | if (!buffer) |
| 840 | { |
| 841 | slot->err = IMAGE_ERROR_OUTOFMEMORY; |
| 842 | goto done; |
| 843 | } |
| 844 | 844 | |
| 845 | | /* verify the file */ |
| 846 | | err = (*slot->verify)(buffer, core_fsize(slot->file)); |
| 847 | | if (err) |
| 848 | | { |
| 849 | | slot->err = IMAGE_ERROR_INVALIDIMAGE; |
| 850 | | goto done; |
| 851 | | } |
| 852 | | } |
| 845 | /* verify the file */ |
| 846 | err = (*slot->verify)(buffer, core_fsize(slot->file)); |
| 847 | if (err) |
| 848 | { |
| 849 | slot->err = IMAGE_ERROR_INVALIDIMAGE; |
| 850 | goto done; |
| 851 | } |
| 852 | } |
| 853 | 853 | |
| 854 | | /* call device load or create */ |
| 855 | | if (image->token != NULL) |
| 856 | | { |
| 857 | | slot->create_format = create_format; |
| 858 | | slot->create_args = create_args; |
| 854 | /* call device load or create */ |
| 855 | if (image->token != NULL) |
| 856 | { |
| 857 | slot->create_format = create_format; |
| 858 | slot->create_args = create_args; |
| 859 | 859 | |
| 860 | | err = image_finish_load(image); |
| 861 | | if (err) |
| 862 | | goto done; |
| 863 | | } |
| 860 | err = image_finish_load(image); |
| 861 | if (err) |
| 862 | goto done; |
| 863 | } |
| 864 | 864 | |
| 865 | | /* success! */ |
| 865 | /* success! */ |
| 866 | 866 | |
| 867 | 867 | done: |
| 868 | | if (slot->err) |
| 869 | | image_clear(slot); |
| 870 | | return slot->err ? INIT_FAIL : INIT_PASS; |
| 868 | if (slot->err) |
| 869 | image_clear(slot); |
| 870 | return slot->err ? INIT_FAIL : INIT_PASS; |
| 871 | 871 | } |
| 872 | 872 | |
| 873 | 873 | |
| r4910 | r4911 | |
| 878 | 878 | |
| 879 | 879 | int image_load(const device_config *image, const char *path) |
| 880 | 880 | { |
| 881 | | return image_load_internal(image, path, FALSE, 0, NULL); |
| 881 | return image_load_internal(image, path, FALSE, 0, NULL); |
| 882 | 882 | } |
| 883 | 883 | |
| 884 | 884 | |
| 885 | 885 | |
| 886 | 886 | /*------------------------------------------------- |
| 887 | 887 | image_finish_load - special call - only use |
| 888 | | from core |
| 888 | from core |
| 889 | 889 | -------------------------------------------------*/ |
| 890 | 890 | |
| 891 | 891 | int image_finish_load(const device_config *device) |
| 892 | 892 | { |
| 893 | | int err = INIT_PASS; |
| 893 | int err = INIT_PASS; |
| 894 | 894 | |
| 895 | | image_slot_data *slot = find_image_slot(device); |
| 895 | image_slot_data *slot = find_image_slot(device); |
| 896 | 896 | |
| 897 | | if (slot->is_loading) |
| 898 | | { |
| 899 | | if (image_has_been_created(device) && (slot->create != NULL)) |
| 900 | | { |
| 901 | | err = (*slot->create)(device, slot->create_format, slot->create_args); |
| 902 | | if (err) |
| 903 | | { |
| 904 | | if (!slot->err) |
| 905 | | slot->err = IMAGE_ERROR_UNSPECIFIED; |
| 906 | | } |
| 907 | | } |
| 908 | | else if (slot->load != NULL) |
| 909 | | { |
| 910 | | /* using device load */ |
| 911 | | err = (*slot->load)(device); |
| 912 | | if (err) |
| 913 | | { |
| 914 | | if (!slot->err) |
| 915 | | slot->err = IMAGE_ERROR_UNSPECIFIED; |
| 916 | | } |
| 917 | | } |
| 918 | | } |
| 897 | if (slot->is_loading) |
| 898 | { |
| 899 | if (image_has_been_created(device) && (slot->create != NULL)) |
| 900 | { |
| 901 | err = (*slot->create)(device, slot->create_format, slot->create_args); |
| 902 | if (err) |
| 903 | { |
| 904 | if (!slot->err) |
| 905 | slot->err = IMAGE_ERROR_UNSPECIFIED; |
| 906 | } |
| 907 | } |
| 908 | else if (slot->load != NULL) |
| 909 | { |
| 910 | /* using device load */ |
| 911 | err = (*slot->load)(device); |
| 912 | if (err) |
| 913 | { |
| 914 | if (!slot->err) |
| 915 | slot->err = IMAGE_ERROR_UNSPECIFIED; |
| 916 | } |
| 917 | } |
| 918 | } |
| 919 | 919 | |
| 920 | | slot->is_loading = 0; |
| 921 | | slot->create_format = 0; |
| 922 | | slot->create_args = NULL; |
| 923 | | return err; |
| 920 | slot->is_loading = 0; |
| 921 | slot->create_format = 0; |
| 922 | slot->create_args = NULL; |
| 923 | return err; |
| 924 | 924 | } |
| 925 | 925 | |
| 926 | 926 | |
| r4910 | r4911 | |
| 931 | 931 | |
| 932 | 932 | int image_create(const device_config *image, const char *path, const image_device_format *create_format, option_resolution *create_args) |
| 933 | 933 | { |
| 934 | | int format_index = (create_format != NULL) ? create_format->index : 0; |
| 935 | | return image_load_internal(image, path, TRUE, format_index, create_args); |
| 934 | int format_index = (create_format != NULL) ? create_format->index : 0; |
| 935 | return image_load_internal(image, path, TRUE, format_index, create_args); |
| 936 | 936 | } |
| 937 | 937 | |
| 938 | 938 | |
| 939 | 939 | |
| 940 | 940 | /*------------------------------------------------- |
| 941 | 941 | image_clear - clear all internal data pertaining |
| 942 | | to an image |
| 942 | to an image |
| 943 | 943 | -------------------------------------------------*/ |
| 944 | 944 | |
| 945 | 945 | static void image_clear(image_slot_data *image) |
| 946 | 946 | { |
| 947 | | if (image->file) |
| 948 | | { |
| 949 | | core_fclose(image->file); |
| 950 | | image->file = NULL; |
| 951 | | } |
| 947 | if (image->file) |
| 948 | { |
| 949 | core_fclose(image->file); |
| 950 | image->file = NULL; |
| 951 | } |
| 952 | 952 | |
| 953 | | astring_cpyc(image->name, ""); |
| 953 | astring_cpyc(image->name, ""); |
| 954 | 954 | |
| 955 | | image->writeable = 0; |
| 956 | | image->created = 0; |
| 957 | | image->is_loading = 0; |
| 958 | | image->dir = NULL; |
| 959 | | image->hash = NULL; |
| 960 | | image->longname = NULL; |
| 961 | | image->manufacturer = NULL; |
| 962 | | image->year = NULL; |
| 963 | | image->playable = NULL; |
| 964 | | image->extrainfo = NULL; |
| 965 | | image->basename_noext = NULL; |
| 966 | | image->ptr = NULL; |
| 955 | image->writeable = 0; |
| 956 | image->created = 0; |
| 957 | image->is_loading = 0; |
| 958 | image->dir = NULL; |
| 959 | image->hash = NULL; |
| 960 | image->longname = NULL; |
| 961 | image->manufacturer = NULL; |
| 962 | image->year = NULL; |
| 963 | image->playable = NULL; |
| 964 | image->extrainfo = NULL; |
| 965 | image->basename_noext = NULL; |
| 966 | image->ptr = NULL; |
| 967 | 967 | } |
| 968 | 968 | |
| 969 | 969 | |
| 970 | 970 | |
| 971 | 971 | /*------------------------------------------------- |
| 972 | 972 | image_unload_internal - internal call to unload |
| 973 | | images |
| 973 | images |
| 974 | 974 | -------------------------------------------------*/ |
| 975 | 975 | |
| 976 | 976 | static void image_unload_internal(image_slot_data *slot) |
| 977 | 977 | { |
| 978 | | /* is there an actual image loaded? */ |
| 979 | | if (is_loaded(slot)) |
| 980 | | { |
| 981 | | /* call the unload function */ |
| 982 | | if (slot->unload != NULL) |
| 983 | | slot->unload(slot->dev); |
| 984 | | } |
| 978 | /* is there an actual image loaded? */ |
| 979 | if (is_loaded(slot)) |
| 980 | { |
| 981 | /* call the unload function */ |
| 982 | if (slot->unload != NULL) |
| 983 | slot->unload(slot->dev); |
| 984 | } |
| 985 | 985 | |
| 986 | | image_clear(slot); |
| 987 | | image_clear_error(slot); |
| 986 | image_clear(slot); |
| 987 | image_clear_error(slot); |
| 988 | 988 | } |
| 989 | 989 | |
| 990 | 990 | |
| r4910 | r4911 | |
| 995 | 995 | |
| 996 | 996 | void image_unload(const device_config *image) |
| 997 | 997 | { |
| 998 | | image_slot_data *slot = find_image_slot(image); |
| 999 | | image_unload_internal(slot); |
| 998 | image_slot_data *slot = find_image_slot(image); |
| 999 | image_unload_internal(slot); |
| 1000 | 1000 | } |
| 1001 | 1001 | |
| 1002 | 1002 | |
| r4910 | r4911 | |
| 1007 | 1007 | |
| 1008 | 1008 | /*------------------------------------------------- |
| 1009 | 1009 | image_clear_error - clear out any specified |
| 1010 | | error |
| 1010 | error |
| 1011 | 1011 | -------------------------------------------------*/ |
| 1012 | 1012 | |
| 1013 | 1013 | static void image_clear_error(image_slot_data *image) |
| 1014 | 1014 | { |
| 1015 | | image->err = IMAGE_ERROR_SUCCESS; |
| 1016 | | if (image->err_message != NULL) |
| 1017 | | { |
| 1018 | | image_freeptr(image->dev, image->err_message); |
| 1019 | | image->err_message = NULL; |
| 1020 | | } |
| 1015 | image->err = IMAGE_ERROR_SUCCESS; |
| 1016 | if (image->err_message != NULL) |
| 1017 | { |
| 1018 | image_freeptr(image->dev, image->err_message); |
| 1019 | image->err_message = NULL; |
| 1020 | } |
| 1021 | 1021 | } |
| 1022 | 1022 | |
| 1023 | 1023 | |
| 1024 | 1024 | |
| 1025 | 1025 | /*------------------------------------------------- |
| 1026 | 1026 | image_error - returns the error text for an image |
| 1027 | | error |
| 1027 | error |
| 1028 | 1028 | -------------------------------------------------*/ |
| 1029 | 1029 | |
| 1030 | 1030 | const char *image_error(const device_config *image) |
| 1031 | 1031 | { |
| 1032 | | static const char *const messages[] = |
| 1033 | | { |
| 1034 | | NULL, |
| 1035 | | "Internal error", |
| 1036 | | "Unsupported operation", |
| 1037 | | "Out of memory", |
| 1038 | | "File not found", |
| 1039 | | "Invalid image", |
| 1040 | | "File already open", |
| 1041 | | "Unspecified error" |
| 1042 | | }; |
| 1032 | static const char *const messages[] = |
| 1033 | { |
| 1034 | NULL, |
| 1035 | "Internal error", |
| 1036 | "Unsupported operation", |
| 1037 | "Out of memory", |
| 1038 | "File not found", |
| 1039 | "Invalid image", |
| 1040 | "File already open", |
| 1041 | "Unspecified error" |
| 1042 | }; |
| 1043 | 1043 | |
| 1044 | | image_slot_data *slot = find_image_slot(image); |
| 1045 | | return slot->err_message ? slot->err_message : messages[slot->err]; |
| 1044 | image_slot_data *slot = find_image_slot(image); |
| 1045 | return slot->err_message ? slot->err_message : messages[slot->err]; |
| 1046 | 1046 | } |
| 1047 | 1047 | |
| 1048 | 1048 | |
| r4910 | r4911 | |
| 1053 | 1053 | |
| 1054 | 1054 | void image_seterror(const device_config *image, image_error_t err, const char *message) |
| 1055 | 1055 | { |
| 1056 | | image_slot_data *slot = find_image_slot(image); |
| 1056 | image_slot_data *slot = find_image_slot(image); |
| 1057 | 1057 | |
| 1058 | | image_clear_error(slot); |
| 1059 | | slot->err = err; |
| 1060 | | if (message != NULL) |
| 1061 | | { |
| 1062 | | slot->err_message = image_strdup(image, message); |
| 1063 | | } |
| 1058 | image_clear_error(slot); |
| 1059 | slot->err = err; |
| 1060 | if (message != NULL) |
| 1061 | { |
| 1062 | slot->err_message = image_strdup(image, message); |
| 1063 | } |
| 1064 | 1064 | } |
| 1065 | 1065 | |
| 1066 | 1066 | |
| 1067 | 1067 | |
| 1068 | 1068 | /*------------------------------------------------- |
| 1069 | 1069 | image_message - used to display a message while |
| 1070 | | loading |
| 1070 | loading |
| 1071 | 1071 | -------------------------------------------------*/ |
| 1072 | 1072 | |
| 1073 | 1073 | void image_message(const device_config *device, const char *format, ...) |
| 1074 | 1074 | { |
| 1075 | | image_slot_data *slot; |
| 1076 | | va_list args; |
| 1077 | | char buffer[256]; |
| 1075 | image_slot_data *slot; |
| 1076 | va_list args; |
| 1077 | char buffer[256]; |
| 1078 | 1078 | |
| 1079 | | /* sanity checks */ |
| 1080 | | slot = find_image_slot(device); |
| 1081 | | assert(is_loaded(slot) || slot->is_loading); |
| 1079 | /* sanity checks */ |
| 1080 | slot = find_image_slot(device); |
| 1081 | assert(is_loaded(slot) || slot->is_loading); |
| 1082 | 1082 | |
| 1083 | | /* format the message */ |
| 1084 | | va_start(args, format); |
| 1085 | | vsnprintf(buffer, ARRAY_LENGTH(buffer), format, args); |
| 1086 | | va_end(args); |
| 1083 | /* format the message */ |
| 1084 | va_start(args, format); |
| 1085 | vsnprintf(buffer, ARRAY_LENGTH(buffer), format, args); |
| 1086 | va_end(args); |
| 1087 | 1087 | |
| 1088 | | /* display the popup for a standard amount of time */ |
| 1089 | | ui_popup_time(5, "%s: %s", |
| 1090 | | image_basename(device), |
| 1091 | | buffer); |
| 1088 | /* display the popup for a standard amount of time */ |
| 1089 | ui_popup_time(5, "%s: %s", |
| 1090 | image_basename(device), |
| 1091 | buffer); |
| 1092 | 1092 | } |
| 1093 | 1093 | |
| 1094 | 1094 | |
| r4910 | r4911 | |
| 1102 | 1102 | |
| 1103 | 1103 | static int read_hash_config(const char *sysname, image_slot_data *image) |
| 1104 | 1104 | { |
| 1105 | | hash_file *hashfile = NULL; |
| 1106 | | const hash_info *info = NULL; |
| 1105 | hash_file *hashfile = NULL; |
| 1106 | const hash_info *info = NULL; |
| 1107 | 1107 | |
| 1108 | | /* open the hash file */ |
| 1109 | | hashfile = hashfile_open(sysname, FALSE, NULL); |
| 1110 | | if (!hashfile) |
| 1111 | | goto done; |
| 1108 | /* open the hash file */ |
| 1109 | hashfile = hashfile_open(sysname, FALSE, NULL); |
| 1110 | if (!hashfile) |
| 1111 | goto done; |
| 1112 | 1112 | |
| 1113 | | /* look up this entry in the hash file */ |
| 1114 | | info = hashfile_lookup(hashfile, image->hash); |
| 1115 | | if (!info) |
| 1116 | | goto done; |
| 1113 | /* look up this entry in the hash file */ |
| 1114 | info = hashfile_lookup(hashfile, image->hash); |
| 1115 | if (!info) |
| 1116 | goto done; |
| 1117 | 1117 | |
| 1118 | | /* copy the relevant entries */ |
| 1119 | | image->longname = info->longname ? image_strdup(image->dev, info->longname) : NULL; |
| 1120 | | image->manufacturer = info->manufacturer ? image_strdup(image->dev, info->manufacturer) : NULL; |
| 1121 | | image->year = info->year ? image_strdup(image->dev, info->year) : NULL; |
| 1122 | | image->playable = info->playable ? image_strdup(image->dev, info->playable) : NULL; |
| 1123 | | image->pcb = info->pcb ? image_strdup(image->dev, info->pcb) : NULL; |
| 1124 | | image->extrainfo = info->extrainfo ? image_strdup(image->dev, info->extrainfo) : NULL; |
| 1118 | /* copy the relevant entries */ |
| 1119 | image->longname = info->longname ? image_strdup(image->dev, info->longname) : NULL; |
| 1120 | image->manufacturer = info->manufacturer ? image_strdup(image->dev, info->manufacturer) : NULL; |
| 1121 | image->year = info->year ? image_strdup(image->dev, info->year) : NULL; |
| 1122 | image->playable = info->playable ? image_strdup(image->dev, info->playable) : NULL; |
| 1123 | image->pcb = info->pcb ? image_strdup(image->dev, info->pcb) : NULL; |
| 1124 | image->extrainfo = info->extrainfo ? image_strdup(image->dev, info->extrainfo) : NULL; |
| 1125 | 1125 | |
| 1126 | 1126 | done: |
| 1127 | | if (hashfile != NULL) |
| 1128 | | hashfile_close(hashfile); |
| 1129 | | return !hashfile || !info; |
| 1127 | if (hashfile != NULL) |
| 1128 | hashfile_close(hashfile); |
| 1129 | return !hashfile || !info; |
| 1130 | 1130 | } |
| 1131 | 1131 | |
| 1132 | 1132 | |
| 1133 | 1133 | |
| 1134 | 1134 | static void run_hash(const device_config *image, |
| 1135 | | void (*partialhash)(char *, const unsigned char *, unsigned long, unsigned int), |
| 1136 | | char *dest, unsigned int hash_functions) |
| 1135 | void (*partialhash)(char *, const unsigned char *, unsigned long, unsigned int), |
| 1136 | char *dest, unsigned int hash_functions) |
| 1137 | 1137 | { |
| 1138 | | UINT32 size; |
| 1139 | | UINT8 *buf = NULL; |
| 1138 | UINT32 size; |
| 1139 | UINT8 *buf = NULL; |
| 1140 | 1140 | |
| 1141 | | *dest = '\0'; |
| 1142 | | size = (UINT32) image_length(image); |
| 1141 | *dest = '\0'; |
| 1142 | size = (UINT32) image_length(image); |
| 1143 | 1143 | |
| 1144 | | buf = alloc_array_or_die(UINT8, size); |
| 1144 | buf = alloc_array_or_die(UINT8, size); |
| 1145 | 1145 | |
| 1146 | | /* read the file */ |
| 1147 | | image_fseek(image, 0, SEEK_SET); |
| 1148 | | image_fread(image, buf, size); |
| 1146 | /* read the file */ |
| 1147 | image_fseek(image, 0, SEEK_SET); |
| 1148 | image_fread(image, buf, size); |
| 1149 | 1149 | |
| 1150 | | if (partialhash) |
| 1151 | | partialhash(dest, buf, size, hash_functions); |
| 1152 | | else |
| 1153 | | hash_compute(dest, buf, size, hash_functions); |
| 1150 | if (partialhash) |
| 1151 | partialhash(dest, buf, size, hash_functions); |
| 1152 | else |
| 1153 | hash_compute(dest, buf, size, hash_functions); |
| 1154 | 1154 | |
| 1155 | | /* cleanup */ |
| 1156 | | free(buf); |
| 1157 | | image_fseek(image, 0, SEEK_SET); |
| 1155 | /* cleanup */ |
| 1156 | free(buf); |
| 1157 | image_fseek(image, 0, SEEK_SET); |
| 1158 | 1158 | } |
| 1159 | 1159 | |
| 1160 | 1160 | |
| 1161 | 1161 | |
| 1162 | 1162 | static int image_checkhash(image_slot_data *image) |
| 1163 | 1163 | { |
| 1164 | | const game_driver *drv; |
| 1165 | | char hash_string[HASH_BUF_SIZE]; |
| 1166 | | device_image_partialhash_func partialhash; |
| 1167 | | int rc; |
| 1164 | const game_driver *drv; |
| 1165 | char hash_string[HASH_BUF_SIZE]; |
| 1166 | device_image_partialhash_func partialhash; |
| 1167 | int rc; |
| 1168 | 1168 | |
| 1169 | | /* this call should not be made when the image is not loaded */ |
| 1170 | | assert(is_loaded(image)); |
| 1169 | /* this call should not be made when the image is not loaded */ |
| 1170 | assert(is_loaded(image)); |
| 1171 | 1171 | |
| 1172 | | /* only calculate CRC if it hasn't been calculated, and the open_mode is read only */ |
| 1173 | | if (!image->hash && !image->writeable && !image->created) |
| 1174 | | { |
| 1175 | | /* do not cause a linear read of 600 megs please */ |
| 1176 | | /* TODO: use SHA/MD5 in the CHD header as the hash */ |
| 1177 | | if (image->info.type == IO_CDROM) |
| 1178 | | return FALSE; |
| 1172 | /* only calculate CRC if it hasn't been calculated, and the open_mode is read only */ |
| 1173 | if (!image->hash && !image->writeable && !image->created) |
| 1174 | { |
| 1175 | /* do not cause a linear read of 600 megs please */ |
| 1176 | /* TODO: use SHA/MD5 in the CHD header as the hash */ |
| 1177 | if (image->info.type == IO_CDROM) |
| 1178 | return FALSE; |
| 1179 | 1179 | |
| 1180 | | /* retrieve the partial hash func */ |
| 1181 | | partialhash = (device_image_partialhash_func) device_get_info_fct_offline(image->dev, DEVINFO_FCT_IMAGE_PARTIAL_HASH); |
| 1180 | /* retrieve the partial hash func */ |
| 1181 | partialhash = (device_image_partialhash_func) device_get_info_fct_offline(image->dev, DEVINFO_FCT_IMAGE_PARTIAL_HASH); |
| 1182 | 1182 | |
| 1183 | | run_hash(image->dev, partialhash, hash_string, HASH_CRC | HASH_MD5 | HASH_SHA1); |
| 1183 | run_hash(image->dev, partialhash, hash_string, HASH_CRC | HASH_MD5 | HASH_SHA1); |
| 1184 | 1184 | |
| 1185 | | image->hash = image_strdup(image->dev, hash_string); |
| 1185 | image->hash = image_strdup(image->dev, hash_string); |
| 1186 | 1186 | |
| 1187 | | /* now read the hash file */ |
| 1188 | | drv = image->dev->machine->gamedrv; |
| 1189 | | do |
| 1190 | | { |
| 1191 | | rc = read_hash_config(drv->name, image); |
| 1192 | | drv = mess_next_compatible_driver(drv); |
| 1193 | | } |
| 1194 | | while(rc && (drv != NULL)); |
| 1195 | | } |
| 1196 | | return TRUE; |
| 1187 | /* now read the hash file */ |
| 1188 | drv = image->dev->machine->gamedrv; |
| 1189 | do |
| 1190 | { |
| 1191 | rc = read_hash_config(drv->name, image); |
| 1192 | drv = mess_next_compatible_driver(drv); |
| 1193 | } |
| 1194 | while(rc && (drv != NULL)); |
| 1195 | } |
| 1196 | return TRUE; |
| 1197 | 1197 | } |
| 1198 | 1198 | |
| 1199 | 1199 | |
| r4910 | r4911 | |
| 1210 | 1210 | |
| 1211 | 1211 | int image_exists(const device_config *image) |
| 1212 | 1212 | { |
| 1213 | | return image_filename(image) != NULL; |
| 1213 | return image_filename(image) != NULL; |
| 1214 | 1214 | } |
| 1215 | 1215 | |
| 1216 | 1216 | |
| r4910 | r4911 | |
| 1221 | 1221 | |
| 1222 | 1222 | int image_slotexists(const device_config *image) |
| 1223 | 1223 | { |
| 1224 | | return TRUE; |
| 1224 | return TRUE; |
| 1225 | 1225 | } |
| 1226 | 1226 | |
| 1227 | 1227 | |
| r4910 | r4911 | |
| 1232 | 1232 | |
| 1233 | 1233 | const char *image_filename(const device_config *image) |
| 1234 | 1234 | { |
| 1235 | | image_slot_data *slot = find_image_slot(image); |
| 1236 | | const char *name = astring_c(slot->name); |
| 1237 | | return (name[0] != '\0') ? name : NULL; |
| 1235 | image_slot_data *slot = find_image_slot(image); |
| 1236 | const char *name = astring_c(slot->name); |
| 1237 | return (name[0] != '\0') ? name : NULL; |
| 1238 | 1238 | } |
| 1239 | 1239 | |
| 1240 | 1240 | |
| r4910 | r4911 | |
| 1245 | 1245 | |
| 1246 | 1246 | const char *image_basename(const device_config *image) |
| 1247 | 1247 | { |
| 1248 | | return osd_basename((char *) image_filename(image)); |
| 1248 | return osd_basename((char *) image_filename(image)); |
| 1249 | 1249 | } |
| 1250 | 1250 | |
| 1251 | 1251 | |
| r4910 | r4911 | |
| 1256 | 1256 | |
| 1257 | 1257 | const char *image_basename_noext(const device_config *image) |
| 1258 | 1258 | { |
| 1259 | | const char *s; |
| 1260 | | char *ext; |
| 1261 | | image_slot_data *slot = find_image_slot(image); |
| 1259 | const char *s; |
| 1260 | char *ext; |
| 1261 | image_slot_data *slot = find_image_slot(image); |
| 1262 | 1262 | |
| 1263 | | if (!slot->basename_noext) |
| 1264 | | { |
| 1265 | | s = image_basename(image); |
| 1266 | | if (s) |
| 1267 | | { |
| 1268 | | slot->basename_noext = image_strdup(image, s); |
| 1269 | | ext = strrchr(slot->basename_noext, '.'); |
| 1270 | | if (ext) |
| 1271 | | *ext = '\0'; |
| 1272 | | } |
| 1273 | | } |
| 1274 | | return slot->basename_noext; |
| 1263 | if (!slot->basename_noext) |
| 1264 | { |
| 1265 | s = image_basename(image); |
| 1266 | if (s) |
| 1267 | { |
| 1268 | slot->basename_noext = image_strdup(image, s); |
| 1269 | ext = strrchr(slot->basename_noext, '.'); |
| 1270 | if (ext) |
| 1271 | *ext = '\0'; |
| 1272 | } |
| 1273 | } |
| 1274 | return slot->basename_noext; |
| 1275 | 1275 | } |
| 1276 | 1276 | |
| 1277 | 1277 | |
| r4910 | r4911 | |
| 1282 | 1282 | |
| 1283 | 1283 | const char *image_filetype(const device_config *image) |
| 1284 | 1284 | { |
| 1285 | | const char *s; |
| 1286 | | s = image_filename(image); |
| 1287 | | if (s != NULL) |
| 1288 | | s = strrchr(s, '.'); |
| 1289 | | return s ? s+1 : NULL; |
| 1285 | const char *s; |
| 1286 | s = image_filename(image); |
| 1287 | if (s != NULL) |
| 1288 | s = strrchr(s, '.'); |
| 1289 | return s ? s+1 : NULL; |
| 1290 | 1290 | } |
| 1291 | 1291 | |
| 1292 | 1292 | |
| r4910 | r4911 | |
| 1297 | 1297 | |
| 1298 | 1298 | const char *image_filedir(const device_config *image) |
| 1299 | 1299 | { |
| 1300 | | image_slot_data *slot = find_image_slot(image); |
| 1301 | | return slot->dir; |
| 1300 | image_slot_data *slot = find_image_slot(image); |
| 1301 | return slot->dir; |
| 1302 | 1302 | } |
| 1303 | 1303 | |
| 1304 | 1304 | |
| r4910 | r4911 | |
| 1309 | 1309 | |
| 1310 | 1310 | core_file *image_core_file(const device_config *image) |
| 1311 | 1311 | { |
| 1312 | | image_slot_data *slot = find_image_slot(image); |
| 1313 | | return slot->file; |
| 1312 | image_slot_data *slot = find_image_slot(image); |
| 1313 | return slot->file; |
| 1314 | 1314 | } |
| 1315 | 1315 | |
| 1316 | 1316 | |
| r4910 | r4911 | |
| 1321 | 1321 | |
| 1322 | 1322 | const char *image_typename_id(const device_config *image) |
| 1323 | 1323 | { |
| 1324 | | static char buffer[64]; |
| 1325 | | get_device_name(image, buffer, ARRAY_LENGTH(buffer)); |
| 1326 | | return buffer; |
| 1324 | static char buffer[64]; |
| 1325 | get_device_name(image, buffer, ARRAY_LENGTH(buffer)); |
| 1326 | return buffer; |
| 1327 | 1327 | } |
| 1328 | 1328 | |
| 1329 | 1329 | |
| r4910 | r4911 | |
| 1334 | 1334 | |
| 1335 | 1335 | static void check_for_file(image_slot_data *image) |
| 1336 | 1336 | { |
| 1337 | | assert_always(image->file != NULL, "Illegal operation on unmounted image"); |
| 1337 | assert_always(image->file != NULL, "Illegal operation on unmounted image"); |
| 1338 | 1338 | } |
| 1339 | 1339 | |
| 1340 | 1340 | |
| r4910 | r4911 | |
| 1345 | 1345 | |
| 1346 | 1346 | UINT64 image_length(const device_config *image) |
| 1347 | 1347 | { |
| 1348 | | image_slot_data *slot = find_image_slot(image); |
| 1349 | | check_for_file(slot); |
| 1350 | | return core_fsize(slot->file); |
| 1348 | image_slot_data *slot = find_image_slot(image); |
| 1349 | check_for_file(slot); |
| 1350 | return core_fsize(slot->file); |
| 1351 | 1351 | } |
| 1352 | 1352 | |
| 1353 | 1353 | |
| r4910 | r4911 | |
| 1358 | 1358 | |
| 1359 | 1359 | const char *image_hash(const device_config *image) |
| 1360 | 1360 | { |
| 1361 | | image_slot_data *slot = find_image_slot(image); |
| 1362 | | image_checkhash(slot); |
| 1363 | | return slot->hash; |
| 1361 | image_slot_data *slot = find_image_slot(image); |
| 1362 | image_checkhash(slot); |
| 1363 | return slot->hash; |
| 1364 | 1364 | } |
| 1365 | 1365 | |
| 1366 | 1366 | |
| r4910 | r4911 | |
| 1371 | 1371 | |
| 1372 | 1372 | UINT32 image_crc(const device_config *image) |
| 1373 | 1373 | { |
| 1374 | | const char *hash_string; |
| 1375 | | UINT32 crc = 0; |
| 1374 | const char *hash_string; |
| 1375 | UINT32 crc = 0; |
| 1376 | 1376 | |
| 1377 | | hash_string = image_hash(image); |
| 1378 | | if (hash_string != NULL) |
| 1379 | | crc = hash_data_extract_crc32(hash_string); |
| 1377 | hash_string = image_hash(image); |
| 1378 | if (hash_string != NULL) |
| 1379 | crc = hash_data_extract_crc32(hash_string); |
| 1380 | 1380 | |
| 1381 | | return crc; |
| 1381 | return crc; |
| 1382 | 1382 | } |
| 1383 | 1383 | |
| 1384 | 1384 | |
| r4910 | r4911 | |
| 1389 | 1389 | |
| 1390 | 1390 | int image_is_writable(const device_config *image) |
| 1391 | 1391 | { |
| 1392 | | image_slot_data *slot = find_image_slot(image); |
| 1393 | | return slot->writeable; |
| 1392 | image_slot_data *slot = find_image_slot(image); |
| 1393 | return slot->writeable; |
| 1394 | 1394 | } |
| 1395 | 1395 | |
| 1396 | 1396 | |
| r4910 | r4911 | |
| 1401 | 1401 | |
| 1402 | 1402 | int image_has_been_created(const device_config *image) |
| 1403 | 1403 | { |
| 1404 | | image_slot_data *slot = find_image_slot(image); |
| 1405 | | return slot->created; |
| 1404 | image_slot_data *slot = find_image_slot(image); |
| 1405 | return slot->created; |
| 1406 | 1406 | } |
| 1407 | 1407 | |
| 1408 | 1408 | |
| r4910 | r4911 | |
| 1413 | 1413 | |
| 1414 | 1414 | void image_make_readonly(const device_config *image) |
| 1415 | 1415 | { |
| 1416 | | image_slot_data *slot = find_image_slot(image); |
| 1417 | | slot->writeable = 0; |
| 1416 | image_slot_data *slot = find_image_slot(image); |
| 1417 | slot->writeable = 0; |
| 1418 | 1418 | } |
| 1419 | 1419 | |
| 1420 | 1420 | |
| r4910 | r4911 | |
| 1425 | 1425 | |
| 1426 | 1426 | UINT32 image_fread(const device_config *image, void *buffer, UINT32 length) |
| 1427 | 1427 | { |
| 1428 | | image_slot_data *slot = find_image_slot(image); |
| 1429 | | check_for_file(slot); |
| 1430 | | return core_fread(slot->file, buffer, length); |
| 1428 | image_slot_data *slot = find_image_slot(image); |
| 1429 | check_for_file(slot); |
| 1430 | return core_fread(slot->file, buffer, length); |
| 1431 | 1431 | } |
| 1432 | 1432 | |
| 1433 | 1433 | |
| r4910 | r4911 | |
| 1438 | 1438 | |
| 1439 | 1439 | UINT32 image_fwrite(const device_config *image, const void *buffer, UINT32 length) |
| 1440 | 1440 | { |
| 1441 | | image_slot_data *slot = find_image_slot(image); |
| 1442 | | check_for_file(slot); |
| 1443 | | return core_fwrite(slot->file, buffer, length); |
| 1441 | image_slot_data *slot = find_image_slot(image); |
| 1442 | check_for_file(slot); |
| 1443 | return core_fwrite(slot->file, buffer, length); |
| 1444 | 1444 | } |
| 1445 | 1445 | |
| 1446 | 1446 | |
| r4910 | r4911 | |
| 1451 | 1451 | |
| 1452 | 1452 | int image_fseek(const device_config *image, INT64 offset, int whence) |
| 1453 | 1453 | { |
| 1454 | | image_slot_data *slot = find_image_slot(image); |
| 1455 | | check_for_file(slot); |
| 1456 | | return core_fseek(slot->file, offset, whence); |
| 1454 | image_slot_data *slot = find_image_slot(image); |
| 1455 | check_for_file(slot); |
| 1456 | return core_fseek(slot->file, offset, whence); |
| 1457 | 1457 | } |
| 1458 | 1458 | |
| 1459 | 1459 | |
| r4910 | r4911 | |
| 1464 | 1464 | |
| 1465 | 1465 | UINT64 image_ftell(const device_config *image) |
| 1466 | 1466 | { |
| 1467 | | image_slot_data *slot = find_image_slot(image); |
| 1468 | | check_for_file(slot); |
| 1469 | | return core_ftell(slot->file); |
| 1467 | image_slot_data *slot = find_image_slot(image); |
| 1468 | check_for_file(slot); |
| 1469 | return core_ftell(slot->file); |
| 1470 | 1470 | } |
| 1471 | 1471 | |
| 1472 | 1472 | |
| r4910 | r4911 | |
| 1477 | 1477 | |
| 1478 | 1478 | int image_fgetc(const device_config *image) |
| 1479 | 1479 | { |
| 1480 | | char ch; |
| 1481 | | if (image_fread(image, &ch, 1) != 1) |
| 1482 | | ch = '\0'; |
| 1483 | | return ch; |
| 1480 | char ch; |
| 1481 | if (image_fread(image, &ch, 1) != 1) |
| 1482 | ch = '\0'; |
| 1483 | return ch; |
| 1484 | 1484 | } |
| 1485 | 1485 | |
| 1486 | 1486 | |
| 1487 | 1487 | |
| 1488 | 1488 | /*------------------------------------------------- |
| 1489 | image_fgets |
| 1490 | -------------------------------------------------*/ |
| 1491 | |
| 1492 | char *image_fgets(const device_config *image, char *buffer, UINT32 length) |
| 1493 | { |
| 1494 | image_slot_data *slot = find_image_slot(image); |
| 1495 | check_for_file(slot); |
| 1496 | return core_fgets(buffer, length, slot->file); |
| 1497 | } |
| 1498 | |
| 1499 | |
| 1500 | |
| 1501 | /*------------------------------------------------- |
| 1489 | 1502 | image_feof |
| 1490 | 1503 | -------------------------------------------------*/ |
| 1491 | 1504 | |
| 1492 | 1505 | int image_feof(const device_config *image) |
| 1493 | 1506 | { |
| 1494 | | image_slot_data *slot = find_image_slot(image); |
| 1495 | | check_for_file(slot); |
| 1496 | | return core_feof(slot->file); |
| 1507 | image_slot_data *slot = find_image_slot(image); |
| 1508 | check_for_file(slot); |
| 1509 | return core_feof(slot->file); |
| 1497 | 1510 | } |
| 1498 | 1511 | |
| 1499 | 1512 | |
| r4910 | r4911 | |
| 1504 | 1517 | |
| 1505 | 1518 | void *image_ptr(const device_config *image) |
| 1506 | 1519 | { |
| 1507 | | image_slot_data *slot = find_image_slot(image); |
| 1508 | | check_for_file(slot); |
| 1509 | | return (void *) core_fbuffer(slot->file); |
| 1520 | image_slot_data *slot = find_image_slot(image); |
| 1521 | check_for_file(slot); |
| 1522 | return (void *) core_fbuffer(slot->file); |
| 1510 | 1523 | } |
| 1511 | 1524 | |
| 1512 | 1525 | |
| r4910 | r4911 | |
| 1517 | 1530 | |
| 1518 | 1531 | /*------------------------------------------------- |
| 1519 | 1532 | try_change_working_directory - tries to change |
| 1520 | | the working directory, but only if the directory |
| 1521 | | actually exists |
| 1533 | the working directory, but only if the directory |
| 1534 | actually exists |
| 1522 | 1535 | -------------------------------------------------*/ |
| 1523 | 1536 | |
| 1524 | 1537 | static int try_change_working_directory(image_slot_data *image, const char *subdir) |
| 1525 | 1538 | { |
| 1526 | | osd_directory *directory; |
| 1527 | | const osd_directory_entry *entry; |
| 1528 | | int success = FALSE; |
| 1529 | | int done = FALSE; |
| 1539 | osd_directory *directory; |
| 1540 | const osd_directory_entry *entry; |
| 1541 | int success = FALSE; |
| 1542 | int done = FALSE; |
| 1530 | 1543 | |
| 1531 | | directory = osd_opendir(astring_c(image->working_directory)); |
| 1532 | | if (directory != NULL) |
| 1533 | | { |
| 1534 | | while(!done && (entry = osd_readdir(directory)) != NULL) |
| 1535 | | { |
| 1536 | | if (!mame_stricmp(subdir, entry->name)) |
| 1537 | | { |
| 1538 | | done = TRUE; |
| 1539 | | success = entry->type == ENTTYPE_DIR; |
| 1540 | | } |
| 1541 | | } |
| 1544 | directory = osd_opendir(astring_c(image->working_directory)); |
| 1545 | if (directory != NULL) |
| 1546 | { |
| 1547 | while(!done && (entry = osd_readdir(directory)) != NULL) |
| 1548 | { |
| 1549 | if (!mame_stricmp(subdir, entry->name)) |
| 1550 | { |
| 1551 | done = TRUE; |
| 1552 | success = entry->type == ENTTYPE_DIR; |
| 1553 | } |
| 1554 | } |
| 1542 | 1555 | |
| 1543 | | osd_closedir(directory); |
| 1544 | | } |
| 1556 | osd_closedir(directory); |
| 1557 | } |
| 1545 | 1558 | |
| 1546 | | /* did we successfully identify the directory? */ |
| 1547 | | if (success) |
| 1548 | | zippath_combine(image->working_directory, astring_c(image->working_directory), subdir); |
| 1559 | /* did we successfully identify the directory? */ |
| 1560 | if (success) |
| 1561 | zippath_combine(image->working_directory, astring_c(image->working_directory), subdir); |
| 1549 | 1562 | |
| 1550 | | return success; |
| 1563 | return success; |
| 1551 | 1564 | } |
| 1552 | 1565 | |
| 1553 | 1566 | |
| 1554 | 1567 | |
| 1555 | 1568 | /*------------------------------------------------- |
| 1556 | 1569 | setup_working_directory - sets up the working |
| 1557 | | directory according to a few defaults |
| 1570 | directory according to a few defaults |
| 1558 | 1571 | -------------------------------------------------*/ |
| 1559 | 1572 | |
| 1560 | 1573 | static void setup_working_directory(image_slot_data *image) |
| 1561 | 1574 | { |
| 1562 | | char mess_directory[1024]; |
| 1563 | | const game_driver *gamedrv; |
| 1575 | char mess_directory[1024]; |
| 1576 | const game_driver *gamedrv; |
| 1564 | 1577 | |
| 1565 | | /* first set up the working directory to be the MESS directory */ |
| 1566 | | osd_get_emulator_directory(mess_directory, ARRAY_LENGTH(mess_directory)); |
| 1567 | | astring_cpyc(image->working_directory, mess_directory); |
| 1578 | /* first set up the working directory to be the MESS directory */ |
| 1579 | osd_get_emulator_directory(mess_directory, ARRAY_LENGTH(mess_directory)); |
| 1580 | astring_cpyc(image->working_directory, mess_directory); |
| 1568 | 1581 | |
| 1569 | | /* now try browsing down to "software" */ |
| 1570 | | if (try_change_working_directory(image, "software")) |
| 1571 | | { |
| 1572 | | /* now down to a directory for this computer */ |
| 1573 | | gamedrv = image->dev->machine->gamedrv; |
| 1574 | | while(gamedrv && !try_change_working_directory(image, gamedrv->name)) |
| 1575 | | { |
| 1576 | | gamedrv = mess_next_compatible_driver(gamedrv); |
| 1577 | | } |
| 1578 | | } |
| 1582 | /* now try browsing down to "software" */ |
| 1583 | if (try_change_working_directory(image, "software")) |
| 1584 | { |
| 1585 | /* now down to a directory for this computer */ |
| 1586 | gamedrv = image->dev->machine->gamedrv; |
| 1587 | while(gamedrv && !try_change_working_directory(image, gamedrv->name)) |
| 1588 | { |
| 1589 | gamedrv = mess_next_compatible_driver(gamedrv); |
| 1590 | } |
| 1591 | } |
| 1579 | 1592 | } |
| 1580 | 1593 | |
| 1581 | 1594 | |
| 1582 | 1595 | |
| 1583 | 1596 | /*------------------------------------------------- |
| 1584 | 1597 | image_working_directory - returns the working |
| 1585 | | directory to use for this image; this is |
| 1586 | | valid even if not mounted |
| 1598 | directory to use for this image; this is |
| 1599 | valid even if not mounted |
| 1587 | 1600 | -------------------------------------------------*/ |
| 1588 | 1601 | |
| 1589 | 1602 | const char *image_working_directory(const device_config *image) |
| 1590 | 1603 | { |
| 1591 | | image_slot_data *slot = find_image_slot(image); |
| 1604 | image_slot_data *slot = find_image_slot(image); |
| 1592 | 1605 | |
| 1593 | | /* check to see if we've never initialized the working directory */ |
| 1594 | | if (astring_len(slot->working_directory) == 0) |
| 1595 | | setup_working_directory(slot); |
| 1606 | /* check to see if we've never initialized the working directory */ |
| 1607 | if (astring_len(slot->working_directory) == 0) |
| 1608 | setup_working_directory(slot); |
| 1596 | 1609 | |
| 1597 | | return astring_c(slot->working_directory); |
| 1610 | return astring_c(slot->working_directory); |
| 1598 | 1611 | } |
| 1599 | 1612 | |
| 1600 | 1613 | |
| 1601 | 1614 | |
| 1602 | 1615 | /*------------------------------------------------- |
| 1603 | 1616 | image_set_working_directory - sets the working |
| 1604 | | directory to use for this image |
| 1617 | directory to use for this image |
| 1605 | 1618 | -------------------------------------------------*/ |
| 1606 | 1619 | |
| 1607 | 1620 | void image_set_working_directory(const device_config *image, const char *working_directory) |
| 1608 | 1621 | { |
| 1609 | | image_slot_data *slot = find_image_slot(image); |
| 1610 | | astring_cpyc(slot->working_directory, (working_directory != NULL) ? working_directory : ""); |
| 1622 | image_slot_data *slot = find_image_slot(image); |
| 1623 | astring_cpyc(slot->working_directory, (working_directory != NULL) ? working_directory : ""); |
| 1611 | 1624 | } |
| 1612 | 1625 | |
| 1613 | 1626 | |
| r4910 | r4911 | |
| 1622 | 1635 | |
| 1623 | 1636 | void *image_malloc(const device_config *image, size_t size) |
| 1624 | 1637 | { |
| 1625 | | return image_realloc(image, NULL, size); |
| 1638 | return image_realloc(image, NULL, size); |
| 1626 | 1639 | } |
| 1627 | 1640 | |
| 1628 | 1641 | |
| 1629 | 1642 | |
| 1630 | 1643 | void *image_realloc(const device_config *image, void *ptr, size_t size) |
| 1631 | 1644 | { |
| 1632 | | image_slot_data *slot = find_image_slot(image); |
| 1645 | image_slot_data *slot = find_image_slot(image); |
| 1633 | 1646 | |
| 1634 | | /* sanity checks */ |
| 1635 | | assert(is_loaded(slot) || slot->is_loading); |
| 1647 | /* sanity checks */ |
| 1648 | assert(is_loaded(slot) || slot->is_loading); |
| 1636 | 1649 | |
| 1637 | | return pool_realloc(slot->mempool, ptr, size); |
| 1650 | return pool_realloc(slot->mempool, ptr, size); |
| 1638 | 1651 | } |
| 1639 | 1652 | |
| 1640 | 1653 | |
| 1641 | 1654 | |
| 1642 | 1655 | char *image_strdup(const device_config *image, const char *src) |
| 1643 | 1656 | { |
| 1644 | | image_slot_data *slot = find_image_slot(image); |
| 1657 | image_slot_data *slot = find_image_slot(image); |
| 1645 | 1658 | |
| 1646 | | /* sanity checks */ |
| 1647 | | assert(is_loaded(slot) || slot->is_loading); |
| 1659 | /* sanity checks */ |
| 1660 | assert(is_loaded(slot) || slot->is_loading); |
| 1648 | 1661 | |
| 1649 | | return pool_strdup(slot->mempool, src); |
| 1662 | return pool_strdup(slot->mempool, src); |
| 1650 | 1663 | } |
| 1651 | 1664 | |
| 1652 | 1665 | |
| 1653 | 1666 | |
| 1654 | 1667 | void image_freeptr(const device_config *image, void *ptr) |
| 1655 | 1668 | { |
| 1656 | | /* should really do something better here */ |
| 1657 | | image_realloc(image, ptr, 0); |
| 1669 | /* should really do something better here */ |
| 1670 | image_realloc(image, ptr, 0); |
| 1658 | 1671 | } |
| 1659 | 1672 | |
| 1660 | 1673 | |
| r4910 | r4911 | |
| 1672 | 1685 | |
| 1673 | 1686 | const char *image_longname(const device_config *device) |
| 1674 | 1687 | { |
| 1675 | | image_slot_data *slot = find_image_slot(device); |
| 1676 | | image_checkhash(slot); |
| 1677 | | return slot->longname; |
| 1688 | image_slot_data *slot = find_image_slot(device); |
| 1689 | image_checkhash(slot); |
| 1690 | return slot->longname; |
| 1678 | 1691 | } |
| 1679 | 1692 | |
| 1680 | 1693 | |
| r4910 | r4911 | |
| 1685 | 1698 | |
| 1686 | 1699 | const char *image_manufacturer(const device_config *device) |
| 1687 | 1700 | { |
| 1688 | | image_slot_data *slot = find_image_slot(device); |
| 1689 | | image_checkhash(slot); |
| 1690 | | return slot->manufacturer; |
| 1701 | image_slot_data *slot = find_image_slot(device); |
| 1702 | image_checkhash(slot); |
| 1703 | return slot->manufacturer; |
| 1691 | 1704 | } |
| 1692 | 1705 | |
| 1693 | 1706 | |
| r4910 | r4911 | |
| 1698 | 1711 | |
| 1699 | 1712 | const char *image_year(const device_config *device) |
| 1700 | 1713 | { |
| 1701 | | image_slot_data *slot = find_image_slot(device); |
| 1702 | | image_checkhash(slot); |
| 1703 | | return slot->year; |
| 1714 | image_slot_data *slot = find_image_slot(device); |
| 1715 | image_checkhash(slot); |
| 1716 | return slot->year; |
| 1704 | 1717 | } |
| 1705 | 1718 | |
| 1706 | 1719 | |
| r4910 | r4911 | |
| 1711 | 1724 | |
| 1712 | 1725 | const char *image_playable(const device_config *device) |
| 1713 | 1726 | { |
| 1714 | | image_slot_data *slot = find_image_slot(device); |
| 1715 | | image_checkhash(slot); |
| 1716 | | return slot->playable; |
| 1727 | image_slot_data *slot = find_image_slot(device); |
| 1728 | image_checkhash(slot); |
| 1729 | return slot->playable; |
| 1717 | 1730 | } |
| 1718 | 1731 | |
| 1719 | 1732 | |
| r4910 | r4911 | |
| 1724 | 1737 | |
| 1725 | 1738 | const char *image_pcb(const device_config *device) |
| 1726 | 1739 | { |
| 1727 | | image_slot_data *slot = find_image_slot(device); |
| 1728 | | image_checkhash(slot); |
| 1729 | | return slot->pcb; |
| 1740 | image_slot_data *slot = find_image_slot(device); |
| 1741 | image_checkhash(slot); |
| 1742 | return slot->pcb; |
| 1730 | 1743 | } |
| 1731 | 1744 | |
| 1732 | 1745 | |
| r4910 | r4911 | |
| 1737 | 1750 | |
| 1738 | 1751 | const char *image_extrainfo(const device_config *device) |
| 1739 | 1752 | { |
| 1740 | | image_slot_data *slot = find_image_slot(device); |
| 1741 | | image_checkhash(slot); |
| 1742 | | return slot->extrainfo; |
| 1753 | image_slot_data *slot = find_image_slot(device); |
| 1754 | image_checkhash(slot); |
| 1755 | return slot->extrainfo; |
| 1743 | 1756 | } |
| 1744 | 1757 | |
| 1745 | 1758 | |
| r4910 | r4911 | |
| 1753 | 1766 | |
| 1754 | 1767 | /*------------------------------------------------- |
| 1755 | 1768 | open_battery_file_by_name - opens the battery backed |
| 1756 | | NVRAM file for an image |
| 1769 | NVRAM file for an image |
| 1757 | 1770 | -------------------------------------------------*/ |
| 1758 | 1771 | |
| 1759 | 1772 | static file_error open_battery_file_by_name(const char *filename, UINT32 openflags, mame_file **file) |
| 1760 | 1773 | { |
| 1761 | | file_error filerr; |
| 1762 | | filerr = mame_fopen(SEARCHPATH_NVRAM, filename, openflags, file); |
| 1763 | | return filerr; |
| 1774 | file_error filerr; |
| 1775 | filerr = mame_fopen(SEARCHPATH_NVRAM, filename, openflags, file); |
| 1776 | return filerr; |
| 1764 | 1777 | } |
| 1765 | 1778 | |
| 1766 | 1779 | /*------------------------------------------------- |
| 1767 | 1780 | image_battery_load_by_name - retrieves the battery |
| 1768 | | backed RAM for an image. A filename may be supplied |
| 1769 | | to the function. |
| 1781 | backed RAM for an image. A filename may be supplied |
| 1782 | to the function. |
| 1770 | 1783 | -------------------------------------------------*/ |
| 1771 | 1784 | |
| 1772 | 1785 | void image_battery_load_by_name(const char *filename, void *buffer, int length) |
| 1773 | 1786 | { |
| 1774 | | file_error filerr; |
| 1775 | | mame_file *file; |
| 1776 | | int bytes_read = 0; |
| 1787 | file_error filerr; |
| 1788 | mame_file *file; |
| 1789 | int bytes_read = 0; |
| 1777 | 1790 | |
| 1778 | | assert_always(buffer && (length > 0), "Must specify sensical buffer/length"); |
| 1791 | assert_always(buffer && (length > 0), "Must specify sensical buffer/length"); |
| 1779 | 1792 | |
| 1780 | | /* try to open the battery file and read it in, if possible */ |
| 1781 | | filerr = open_battery_file_by_name(filename, OPEN_FLAG_READ, &file); |
| 1782 | | if (filerr == FILERR_NONE) |
| 1783 | | { |
| 1784 | | bytes_read = mame_fread(file, buffer, length); |
| 1785 | | mame_fclose(file); |
| 1786 | | } |
| 1793 | /* try to open the battery file and read it in, if possible */ |
| 1794 | filerr = open_battery_file_by_name(filename, OPEN_FLAG_READ, &file); |
| 1795 | if (filerr == FILERR_NONE) |
| 1796 | { |
| 1797 | bytes_read = mame_fread(file, buffer, length); |
| 1798 | mame_fclose(file); |
| 1799 | } |
| 1787 | 1800 | |
| 1788 | | /* fill remaining bytes (if necessary) */ |
| 1789 | | memset(((char *) buffer) + bytes_read, '\0', length - bytes_read); |
| 1801 | /* fill remaining bytes (if necessary) */ |
| 1802 | memset(((char *) buffer) + bytes_read, '\0', length - bytes_read); |
| 1790 | 1803 | } |
| 1791 | 1804 | |
| 1792 | 1805 | |
| 1793 | 1806 | /*------------------------------------------------- |
| 1794 | 1807 | image_battery_load - retrieves the battery |
| 1795 | | backed RAM for an image. The file name is |
| 1796 | | created from the machine driver name and the |
| 1797 | | image name. |
| 1808 | backed RAM for an image. The file name is |
| 1809 | created from the machine driver name and the |
| 1810 | image name. |
| 1798 | 1811 | -------------------------------------------------*/ |
| 1799 | 1812 | |
| 1800 | 1813 | void image_battery_load(const device_config *image, void *buffer, int length) |
| 1801 | 1814 | { |
| 1802 | | char *basename_noext; |
| 1803 | | astring *fname; |
| 1815 | char *basename_noext; |
| 1816 | astring *fname; |
| 1804 | 1817 | |
| 1805 | | basename_noext = strip_extension(image_basename(image)); |
| 1806 | | if (!basename_noext) |
| 1807 | | fatalerror("FILERR_OUT_OF_MEMORY"); |
| 1818 | basename_noext = strip_extension(image_basename(image)); |
| 1819 | if (!basename_noext) |
| 1820 | fatalerror("FILERR_OUT_OF_MEMORY"); |
| 1808 | 1821 | |
| 1809 | | fname = astring_assemble_4(astring_alloc(), image->machine->gamedrv->name, PATH_SEPARATOR, basename_noext, ".nv"); |
| 1822 | fname = astring_assemble_4(astring_alloc(), image->machine->gamedrv->name, PATH_SEPARATOR, basename_noext, ".nv"); |
| 1810 | 1823 | |
| 1811 | | image_battery_load_by_name(astring_c(fname), buffer, length); |
| 1812 | | astring_free(fname); |
| 1813 | | free(basename_noext); |
| 1824 | image_battery_load_by_name(astring_c(fname), buffer, length); |
| 1825 | astring_free(fname); |
| 1826 | free(basename_noext); |
| 1814 | 1827 | } |
| 1815 | 1828 | |
| 1816 | 1829 | |
| 1817 | 1830 | /*------------------------------------------------- |
| 1818 | 1831 | image_battery_save_by_name - stores the battery |
| 1819 | | backed RAM for an image. A filename may be supplied |
| 1820 | | to the function. |
| 1832 | backed RAM for an image. A filename may be supplied |
| 1833 | to the function. |
| 1821 | 1834 | -------------------------------------------------*/ |
| 1822 | 1835 | void image_battery_save_by_name(const char *filename, const void *buffer, int length) |
| 1823 | 1836 | { |
| 1824 | | file_error filerr; |
| 1825 | | mame_file *file; |
| 1837 | file_error filerr; |
| 1838 | mame_file *file; |
| 1826 | 1839 | |
| 1827 | | assert_always(buffer && (length > 0), "Must specify sensical buffer/length"); |
| 1840 | assert_always(buffer && (length > 0), "Must specify sensical buffer/length"); |
| 1828 | 1841 | |
| 1829 | | /* try to open the battery file and write it out, if possible */ |
| 1830 | | filerr = open_battery_file_by_name(filename, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS, &file); |
| 1831 | | if (filerr == FILERR_NONE) |
| 1832 | | { |
| 1833 | | mame_fwrite(file, buffer, length); |
| 1834 | | mame_fclose(file); |
| 1835 | | } |
| 1842 | /* try to open the battery file and write it out, if possible */ |
| 1843 | filerr = open_battery_file_by_name(filename, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS, &file); |
| 1844 | if (filerr == FILERR_NONE) |
| 1845 | { |
| 1846 | mame_fwrite(file, buffer, length); |
| 1847 | mame_fclose(file); |
| 1848 | } |
| 1836 | 1849 | } |
| 1837 | 1850 | |
| 1838 | 1851 | /*------------------------------------------------- |
| 1839 | 1852 | image_battery_save - stores the battery |
| 1840 | | backed RAM for an image. The file name is |
| 1841 | | created from the machine driver name and the |
| 1842 | | image name. |
| 1853 | backed RAM for an image. The file name is |
| 1854 | created from the machine driver name and the |
| 1855 | image name. |
| 1843 | 1856 | -------------------------------------------------*/ |
| 1844 | 1857 | |
| 1845 | 1858 | void image_battery_save(const device_config *image, const void *buffer, int length) |
| 1846 | 1859 | { |
| 1847 | | astring *fname; |
| 1848 | | char *basename_noext; |
| 1860 | astring *fname; |
| 1861 | char *basename_noext; |
| 1849 | 1862 | |
| 1850 | | basename_noext = strip_extension(image_basename(image)); |
| 1851 | | if (!basename_noext) |
| 1852 | | fatalerror("FILERR_OUT_OF_MEMORY"); |
| 1863 | basename_noext = strip_extension(image_basename(image)); |
| 1864 | if (!basename_noext) |
| 1865 | fatalerror("FILERR_OUT_OF_MEMORY"); |
| 1853 | 1866 | |
| 1854 | | fname = astring_assemble_4(astring_alloc(), image->machine->gamedrv->name, PATH_SEPARATOR, basename_noext, ".nv"); |
| 1867 | fname = astring_assemble_4(astring_alloc(), image->machine->gamedrv->name, PATH_SEPARATOR, basename_noext, ".nv"); |
| 1855 | 1868 | |
| 1856 | | image_battery_save_by_name(astring_c(fname), buffer, length); |
| 1857 | | astring_free(fname); |
| 1858 | | free(basename_noext); |
| 1869 | image_battery_save_by_name(astring_c(fname), buffer, length); |
| 1870 | astring_free(fname); |
| 1871 | free(basename_noext); |
| 1859 | 1872 | } |
| 1860 | 1873 | |
| 1861 | 1874 | |
| r4910 | r4911 | |
| 1868 | 1881 | |
| 1869 | 1882 | int image_absolute_index(const device_config *image) |
| 1870 | 1883 | { |
| 1871 | | image_slot_data *slot = find_image_slot(image); |
| 1872 | | return slot - image->machine->images_data->slots; |
| 1884 | image_slot_data *slot = find_image_slot(image); |
| 1885 | return slot - image->machine->images_data->slots; |
| 1873 | 1886 | } |
| 1874 | 1887 | |
| 1875 | 1888 | |
| 1876 | 1889 | |
| 1877 | 1890 | const device_config *image_from_absolute_index(running_machine *machine, int absolute_index) |
| 1878 | 1891 | { |
| 1879 | | return machine->images_data->slots[absolute_index].dev; |
| 1892 | return machine->images_data->slots[absolute_index].dev; |
| 1880 | 1893 | } |
src/mess/messdriv.c
| r4910 | r4911 | |
| 36 | 36 | |
| 37 | 37 | /****************CONSOLES****************************************************/ |
| 38 | 38 | |
| 39 | | /* 3DO */ |
| 40 | | DRIVER( 3do ) /* 3DO consoles */ |
| 41 | | DRIVER( 3do_pal ) |
| 39 | /* 3DO */ |
| 40 | DRIVER( 3do ) /* 3DO consoles */ |
| 41 | DRIVER( 3do_pal ) |
| 42 | 42 | |
| 43 | | /* ATARI */ |
| 44 | | DRIVER( a2600 ) /* Atari 2600 */ |
| 45 | | DRIVER( a2600p ) /* Atari 2600 PAL */ |
| 46 | | DRIVER( a5200 ) /* Atari 5200 */ |
| 47 | | DRIVER( a7800 ) /* Atari 7800 NTSC */ |
| 48 | | DRIVER( a7800p ) /* Atari 7800 PAL */ |
| 49 | | DRIVER( lynx ) /* Atari Lynx Handheld */ |
| 50 | | DRIVER( lynx2 ) /* Atari Lynx II Handheld redesigned, no additions */ |
| 51 | | DRIVER( jaguar ) /* Atari Jaguar */ |
| 52 | | DRIVER( jaguarcd ) /* Atari Jaguar CD */ |
| 43 | /* ATARI */ |
| 44 | DRIVER( a2600 ) /* Atari 2600 */ |
| 45 | DRIVER( a2600p ) /* Atari 2600 PAL */ |
| 46 | DRIVER( a5200 ) /* Atari 5200 */ |
| 47 | DRIVER( a7800 ) /* Atari 7800 NTSC */ |
| 48 | DRIVER( a7800p ) /* Atari 7800 PAL */ |
| 49 | DRIVER( lynx ) /* Atari Lynx Handheld */ |
| 50 | DRIVER( lynx2 ) /* Atari Lynx II Handheld redesigned, no additions */ |
| 51 | DRIVER( jaguar ) /* Atari Jaguar */ |
| 52 | DRIVER( jaguarcd ) /* Atari Jaguar CD */ |
| 53 | 53 | |
| 54 | | /* NINTENDO */ |
| 55 | | DRIVER( nes ) /* Nintendo Entertainment System */ |
| 56 | | DRIVER( nespal ) /* Nintendo Entertainment System */ |
| 57 | | DRIVER( m82 ) /* Nintendo M82 Display Unit */ |
| 58 | | DRIVER( famicom ) |
| 59 | | DRIVER( famitwin ) /* Sharp Famicom Twin System */ |
| 60 | | DRIVER( drpcjr ) /* Bung Doctor PC Jr */ |
| 61 | | DRIVER( dendy ) /* Dendy Classic russian famiclone */ |
| 62 | | DRIVER( gameboy ) /* Nintendo Game Boy Handheld */ |
| 63 | | DRIVER( supergb ) /* Nintendo Super Game Boy SNES Cartridge */ |
| 64 | | DRIVER( gbpocket ) /* Nintendo Game Boy Pocket Handheld */ |
| 65 | | DRIVER( gblight ) /* Nintendo Game Boy Light Handheld */ |
| 66 | | DRIVER( gbcolor ) /* Nintendo Game Boy Color Handheld */ |
| 67 | | DRIVER( snes ) /* Nintendo Super Nintendo NTSC */ |
| 68 | | DRIVER( snespal ) /* Nintendo Super Nintendo PAL */ |
| 69 | | DRIVER( sfcbox ) /* Nintendo Super Famicom Box */ |
| 70 | | DRIVER( n64 ) /* Nintendo N64 */ |
| 71 | | DRIVER( pokemini ) /* Nintendo Pokemon Mini */ |
| 54 | /* NINTENDO */ |
| 55 | DRIVER( nes ) /* Nintendo Entertainment System */ |
| 56 | DRIVER( nespal ) /* Nintendo Entertainment System */ |
| 57 | DRIVER( m82 ) /* Nintendo M82 Display Unit */ |
| 58 | DRIVER( famicom ) |
| 59 | DRIVER( famitwin ) /* Sharp Famicom Twin System */ |
| 60 | DRIVER( drpcjr ) /* Bung Doctor PC Jr */ |
| 61 | DRIVER( dendy ) /* Dendy Classic russian famiclone */ |
| 62 | DRIVER( gameboy ) /* Nintendo Game Boy Handheld */ |
| 63 | DRIVER( supergb ) /* Nintendo Super Game Boy SNES Cartridge */ |
| 64 | DRIVER( gbpocket ) /* Nintendo Game Boy Pocket Handheld */ |
| 65 | DRIVER( gblight ) /* Nintendo Game Boy Light Handheld */ |
| 66 | DRIVER( gbcolor ) /* Nintendo Game Boy Color Handheld */ |
| 67 | DRIVER( snes ) /* Nintendo Super Nintendo NTSC */ |
| 68 | DRIVER( snespal ) /* Nintendo Super Nintendo PAL */ |
| 69 | DRIVER( sfcbox ) /* Nintendo Super Famicom Box */ |
| 70 | DRIVER( n64 ) /* Nintendo N64 */ |
| 71 | DRIVER( pokemini ) /* Nintendo Pokemon Mini */ |
| 72 | 72 | |
| 73 | | DRIVER( megaduck ) /* Megaduck */ |
| 73 | DRIVER( megaduck ) /* Megaduck */ |
| 74 | 74 | |
| 75 | | /* SEGA */ |
| 76 | | DRIVER( sg1000 ) /* Sega SG-1000 (Japan) */ |
| 77 | | DRIVER( sg1000m2 ) /* Sega SG-1000 Mark II (Japan) */ |
| 78 | | DRIVER( sc3000 ) /* Sega SC-3000 (Japan) */ |
| 79 | | DRIVER( sc3000h ) /* Sega SC-3000H (Japan) */ |
| 80 | | DRIVER( sf7000 ) /* Sega SC-3000 w/ SF-7000 (Japan) */ |
| 81 | | // DRIVER( omv1000 ) /* Tsukuda Original Othello Multivision FG-1000 */ |
| 82 | | // DRIVER( omv2000 ) /* Tsukuda Original Othello Multivision FG-2000 */ |
| 75 | /* SEGA */ |
| 76 | DRIVER( sg1000 ) /* Sega SG-1000 (Japan) */ |
| 77 | DRIVER( sg1000m2 ) /* Sega SG-1000 Mark II (Japan) */ |
| 78 | DRIVER( sc3000 ) /* Sega SC-3000 (Japan) */ |
| 79 | DRIVER( sc3000h ) /* Sega SC-3000H (Japan) */ |
| 80 | DRIVER( sf7000 ) /* Sega SC-3000 w/ SF-7000 (Japan) */ |
| 81 | // DRIVER( omv1000 ) /* Tsukuda Original Othello Multivision FG-1000 */ |
| 82 | // DRIVER( omv2000 ) /* Tsukuda Original Othello Multivision FG-2000 */ |
| 83 | 83 | |
| 84 | | DRIVER( gamegear ) /* Sega GameGear */ |
| 85 | | DRIVER( gamegeaj ) /* Sega GameGear (Japan) */ |
| 86 | | DRIVER( sms ) /* Sega Master System II (NTSC) */ |
| 87 | | DRIVER( sms1 ) /* Sega Master System I (NTSC) */ |
| 88 | | DRIVER( sms1pal ) /* Sega Master System I (PAL) */ |
| 89 | | DRIVER( smspal ) /* Sega Master System II (PAL) */ |
| 90 | | DRIVER( smsj ) /* Sega Master System (Japan) with FM Chip */ |
| 91 | | DRIVER( sg1000m3 ) /* Sega SG-1000 Mark III (Japan) */ |
| 92 | | DRIVER( sms2kr ) /* Samsung Gam*Boy II (Korea) */ |
| 93 | | DRIVER( smssdisp ) /* Sega Master System Store Display Unit */ |
| 84 | DRIVER( gamegear ) /* Sega GameGear */ |
| 85 | DRIVER( gamegeaj ) /* Sega GameGear (Japan) */ |
| 86 | DRIVER( sms ) /* Sega Master System II (NTSC) */ |
| 87 | DRIVER( sms1 ) /* Sega Master System I (NTSC) */ |
| 88 | DRIVER( sms1pal ) /* Sega Master System I (PAL) */ |
| 89 | DRIVER( smspal ) /* Sega Master System II (PAL) */ |
| 90 | DRIVER( smsj ) /* Sega Master System (Japan) with FM Chip */ |
| 91 | DRIVER( sg1000m3 ) /* Sega SG-1000 Mark III (Japan) */ |
| 92 | DRIVER( sms2kr ) /* Samsung Gam*Boy II (Korea) */ |
| 93 | DRIVER( smssdisp ) /* Sega Master System Store Display Unit */ |
| 94 | 94 | |
| 95 | | DRIVER( megadrij ) /* 1988 Sega Mega Drive (Japan) */ |
| 96 | | DRIVER( genesis ) /* 1989 Sega Genesis (USA) */ |
| 97 | | DRIVER( gensvp ) /* 1993 Sega Genesis (USA w/SVP chip) */ |
| 98 | | DRIVER( megadriv ) /* 1990 Sega Mega Drive (Europe) */ |
| 99 | | DRIVER( pico ) /* 1994 Sega Pico (Europe) */ |
| 100 | | DRIVER( picou ) /* 1994 Sega Pico (USA) */ |
| 101 | | DRIVER( picoj ) /* 1993 Sega Pico (Japan) */ |
| 102 | | DRIVER( megacd ) /* 1993 Sega Mega-CD (Europe) */ |
| 103 | | DRIVER( megacdj ) /* 1991 Sega Mega-CD (Japan) */ |
| 104 | | DRIVER( segacd ) /* 1992 Sega Sega CD (USA) */ |
| 105 | | DRIVER( 32x ) /* 1994 Sega 32X (USA) */ |
| 106 | | DRIVER( 32x_scd ) /* 1994 Sega Sega CD (USA w/32X addon) */ |
| 95 | DRIVER( megadrij ) /* 1988 Sega Mega Drive (Japan) */ |
| 96 | DRIVER( genesis ) /* 1989 Sega Genesis (USA) */ |
| 97 | DRIVER( gensvp ) /* 1993 Sega Genesis (USA w/SVP chip) */ |
| 98 | DRIVER( megadriv ) /* 1990 Sega Mega Drive (Europe) */ |
| 99 | DRIVER( pico ) /* 1994 Sega Pico (Europe) */ |
| 100 | DRIVER( picou ) /* 1994 Sega Pico (USA) */ |
| 101 | DRIVER( picoj ) /* 1993 Sega Pico (Japan) */ |
| 102 | DRIVER( megacd ) /* 1993 Sega Mega-CD (Europe) */ |
| 103 | DRIVER( megacdj ) /* 1991 Sega Mega-CD (Japan) */ |
| 104 | DRIVER( segacd ) /* 1992 Sega Sega CD (USA) */ |
| 105 | DRIVER( 32x ) /* 1994 Sega 32X (USA) */ |
| 106 | DRIVER( 32x_scd ) /* 1994 Sega Sega CD (USA w/32X addon) */ |
| 107 | 107 | |
| 108 | | DRIVER( saturnjp ) /* 1994 Sega Saturn (Japan) */ |
| 109 | | DRIVER( saturn ) /* 1995 Sega Saturn (USA) */ |
| 110 | | DRIVER( saturneu ) /* 1995 Sega Saturn (Europe) */ |
| 111 | | DRIVER( vsaturn ) /* JVC V-Saturn */ |
| 112 | | DRIVER( hisaturn ) /* Hitachi HiSaturn */ |
| 108 | DRIVER( saturnjp ) /* 1994 Sega Saturn (Japan) */ |
| 109 | DRIVER( saturn ) /* 1995 Sega Saturn (USA) */ |
| 110 | DRIVER( saturneu ) /* 1995 Sega Saturn (Europe) */ |
| 111 | DRIVER( vsaturn ) /* JVC V-Saturn */ |
| 112 | DRIVER( hisaturn ) /* Hitachi HiSaturn */ |
| 113 | 113 | |
| 114 | | DRIVER( dcjp ) /* 1998 Sega Dreamcast (Japan) */ |
| 115 | | DRIVER( dc ) /* 1999 Sega Dreamcast (USA) */ |
| 116 | | DRIVER( dceu ) /* 1999 Sega Dreamcast (Europe) */ |
| 117 | | DRIVER( dcdev ) /* 1998 Sega HKT-0120 Sega Dreamcast Development Box */ |
| 114 | DRIVER( dcjp ) /* 1998 Sega Dreamcast (Japan) */ |
| 115 | DRIVER( dc ) /* 1999 Sega Dreamcast (USA) */ |
| 116 | DRIVER( dceu ) /* 1999 Sega Dreamcast (Europe) */ |
| 117 | DRIVER( dcdev ) /* 1998 Sega HKT-0120 Sega Dreamcast Development Box */ |
| 118 | 118 | |
| 119 | | /* Sony */ |
| 120 | | DRIVER( psj ) /* 1994 Sony PlayStation (Japan) */ |
| 121 | | DRIVER( psu ) /* 1995 Sony PlayStation (USA) */ |
| 122 | | DRIVER( pse ) /* 1995 Sony PlayStation (Europe) */ |
| 123 | | DRIVER( psa ) /* 1995 Sony PlayStation (Asia-Pacific) */ |
| 124 | | DRIVER( pockstat ) /* 1999 Sony PocketStation */ |
| 119 | /* Sony */ |
| 120 | DRIVER( psj ) /* 1994 Sony PlayStation (Japan) */ |
| 121 | DRIVER( psu ) /* 1995 Sony PlayStation (USA) */ |
| 122 | DRIVER( pse ) /* 1995 Sony PlayStation (Europe) */ |
| 123 | DRIVER( psa ) /* 1995 Sony PlayStation (Asia-Pacific) */ |
| 124 | DRIVER( pockstat ) /* 1999 Sony PocketStation */ |
| 125 | 125 | |
| 126 | | /* BALLY */ |
| 127 | | DRIVER( astrocde ) /* Bally Astrocade */ |
| 128 | | DRIVER( astrocdw ) /* Bally Astrocade (white case) */ |
| 126 | /* BALLY */ |
| 127 | DRIVER( astrocde ) /* Bally Astrocade */ |
| 128 | DRIVER( astrocdw ) /* Bally Astrocade (white case) */ |
| 129 | 129 | |
| 130 | | /* RCA */ |
| 131 | | DRIVER( vip ) /* 1977 Cosmac VIP VP-711 */ |
| 132 | | DRIVER( vp111 ) /* 1977 Cosmac VIP VP-111 */ |
| 133 | | DRIVER( studio2 ) /* 1977 Studio II */ |
| 134 | | DRIVER( visicom ) |
| 135 | | // DRIVER( mpt02s ) |
| 136 | | // DRIVER( mpt02h ) |
| 137 | | // DRIVER( mtc9016 ) /* 1978 Mustang 9016 Telespiel Computer */ |
| 138 | | // DRIVER( shmc1200 ) |
| 130 | /* RCA */ |
| 131 | DRIVER( vip ) /* 1977 Cosmac VIP VP-711 */ |
| 132 | DRIVER( vp111 ) /* 1977 Cosmac VIP VP-111 */ |
| 133 | DRIVER( studio2 ) /* 1977 Studio II */ |
| 134 | DRIVER( visicom ) |
| 135 | // DRIVER( mpt02s ) |
| 136 | // DRIVER( mpt02h ) |
| 137 | // DRIVER( mtc9016 ) /* 1978 Mustang 9016 Telespiel Computer */ |
| 138 | // DRIVER( shmc1200 ) |
| 139 | 139 | |
| 140 | | /* FAIRCHILD */ |
| 141 | | DRIVER( channelf ) /* Fairchild Channel F VES - 1976 */ |
| 142 | | DRIVER( sabavdpl ) /* SABA Videoplay - 1977 (PAL) */ |
| 143 | | DRIVER( luxorves ) /* Luxor Video Entertainment System (PAL) */ |
| 144 | | DRIVER( channlf2 ) /* Fairchild Channel F II - 1978 */ |
| 145 | | DRIVER( sabavpl2 ) /* SABA Videoplay 2 (PAL) */ |
| 146 | | DRIVER( luxorvec ) /* Luxor Video Entertainment Computer (PAL) */ |
| 147 | | DRIVER( itttelma ) /* ITT Tele-Match Processor (PAL) */ |
| 148 | | DRIVER( ingtelma ) /* Ingelen Tele-Match Processor (PAL) */ |
| 140 | /* FAIRCHILD */ |
| 141 | DRIVER( channelf ) /* Fairchild Channel F VES - 1976 */ |
| 142 | DRIVER( sabavdpl ) /* SABA Videoplay - 1977 (PAL) */ |
| 143 | DRIVER( luxorves ) /* Luxor Video Entertainment System (PAL) */ |
| 144 | DRIVER( channlf2 ) /* Fairchild Channel F II - 1978 */ |
| 145 | DRIVER( sabavpl2 ) /* SABA Videoplay 2 (PAL) */ |
| 146 | DRIVER( luxorvec ) /* Luxor Video Entertainment Computer (PAL) */ |
| 147 | DRIVER( itttelma ) /* ITT Tele-Match Processor (PAL) */ |
| 148 | DRIVER( ingtelma ) /* Ingelen Tele-Match Processor (PAL) */ |
| 149 | 149 | |
| 150 | | /* COLECO */ |
| 151 | | DRIVER( coleco ) /* ColecoVision (Original BIOS) */ |
| 152 | | DRIVER( colecoa ) /* ColecoVision (Thick Characters) */ |
| 153 | | DRIVER( colecob ) /* Spectravideo SVI-603 Coleco Game Adapter */ |
| 154 | | DRIVER( czz50 ) /* Bit Corporation Chuang Zao Zhe 50 */ |
| 155 | | DRIVER( dina ) /* Telegames Dina */ |
| 156 | | DRIVER( prsarcde ) /* Telegames Personal Arcade */ |
| 157 | | DRIVER( adam ) /* Coleco Adam */ |
| 150 | /* COLECO */ |
| 151 | DRIVER( coleco ) /* ColecoVision (Original BIOS) */ |
| 152 | DRIVER( colecoa ) /* ColecoVision (Thick Characters) */ |
| 153 | DRIVER( colecob ) /* Spectravideo SVI-603 Coleco Game Adapter */ |
| 154 | DRIVER( czz50 ) /* Bit Corporation Chuang Zao Zhe 50 */ |
| 155 | DRIVER( dina ) /* Telegames Dina */ |
| 156 | DRIVER( prsarcde ) /* Telegames Personal Arcade */ |
| 157 | DRIVER( adam ) /* Coleco Adam */ |
| 158 | 158 | |
| 159 | | /* NEC */ |
| 160 | | DRIVER( pce ) /* PC/Engine NEC 1987-1993 */ |
| 161 | | DRIVER( tg16 ) /* Turbo Grafix-16 NEC 1989-1993 */ |
| 162 | | DRIVER( sgx ) /* SuperGrafX NEC 1989 */ |
| 163 | | DRIVER( pcfx ) /* PC-FX NEC 1994 */ |
| 159 | /* NEC */ |
| 160 | DRIVER( pce ) /* PC/Engine NEC 1987-1993 */ |
| 161 | DRIVER( tg16 ) /* Turbo Grafix-16 NEC 1989-1993 */ |
| 162 | DRIVER( sgx ) /* SuperGrafX NEC 1989 */ |
| 163 | DRIVER( pcfx ) /* PC-FX NEC 1994 */ |
| 164 | 164 | |
| 165 | | DRIVER( arcadia ) /* Emerson Arcadia 2001 */ |
| 166 | | DRIVER( vcg ) /* Palladium Video-Computer-Game */ |
| 165 | DRIVER( arcadia ) /* Emerson Arcadia 2001 */ |
| 166 | DRIVER( vcg ) /* Palladium Video-Computer-Game */ |
| 167 | 167 | |
| 168 | | /* GCE */ |
| 169 | | DRIVER( vectrex ) /* General Consumer Electric Vectrex - 1982-1984 */ |
| 170 | | /* (aka Milton-Bradley Vectrex) */ |
| 171 | | DRIVER( raaspec ) /* RA+A Spectrum - Modified Vectrex */ |
| 168 | /* GCE */ |
| 169 | DRIVER( vectrex ) /* General Consumer Electric Vectrex - 1982-1984 */ |
| 170 | /* (aka Milton-Bradley Vectrex) */ |
| 171 | DRIVER( raaspec ) /* RA+A Spectrum - Modified Vectrex */ |
| 172 | 172 | |
| 173 | | /* MATTEL */ |
| 174 | | DRIVER( intv ) /* Mattel Intellivision - 1979 AKA INTV */ |
| 175 | | DRIVER( intvsrs ) /* Intellivision (Sears License) - 19?? */ |
| 173 | /* MATTEL */ |
| 174 | DRIVER( intv ) /* Mattel Intellivision - 1979 AKA INTV */ |
| 175 | DRIVER( intvsrs ) /* Intellivision (Sears License) - 19?? */ |
| 176 | 176 | |
| 177 | | /* ENTEX */ |
| 178 | | DRIVER( advision ) /* Adventurevision */ |
| 177 | /* ENTEX */ |
| 178 | DRIVER( advision ) /* Adventurevision */ |
| 179 | 179 | |
| 180 | | /* CAPCOM */ |
| 181 | | DRIVER( sfach ) /* CPS Changer (Street Fighter Alpha) */ |
| 182 | | DRIVER( sfzbch ) /* CPS Changer (Street Fighter ZERO Brazil) */ |
| 183 | | DRIVER( sfzch ) /* CPS Changer (Street Fighter ZERO) */ |
| 184 | | DRIVER( wofch ) /* CPS Changer (Tenchi Wo Kurau II) */ |
| 180 | /* CAPCOM */ |
| 181 | DRIVER( sfach ) /* CPS Changer (Street Fighter Alpha) */ |
| 182 | DRIVER( sfzbch ) /* CPS Changer (Street Fighter ZERO Brazil) */ |
| 183 | DRIVER( sfzch ) /* CPS Changer (Street Fighter ZERO) */ |
| 184 | DRIVER( wofch ) /* CPS Changer (Tenchi Wo Kurau II) */ |
| 185 | 185 | |
| 186 | | /* MAGNAVOX */ |
| 187 | | DRIVER( odyssey2 ) /* Magnavox Odyssey 2 - 1978-1983 */ |
| 186 | /* MAGNAVOX */ |
| 187 | DRIVER( odyssey2 ) /* Magnavox Odyssey 2 - 1978-1983 */ |
| 188 | 188 | |
| 189 | | /* Hartung, Watara, ...*/ |
| 190 | | DRIVER( gmaster ) /* Hartung Gamemaster */ |
| 189 | /* Hartung, Watara, ...*/ |
| 190 | DRIVER( gmaster ) /* Hartung Gamemaster */ |
| 191 | 191 | |
| 192 | | /* WATARA */ |
| 193 | | DRIVER( svision ) /* Supervision Handheld */ |
| 194 | | DRIVER( svisions ) |
| 195 | | DRIVER( svisionp ) |
| 196 | | DRIVER( svisionn ) |
| 197 | | DRIVER( tvlinkp ) |
| 192 | /* WATARA */ |
| 193 | DRIVER( svision ) /* Supervision Handheld */ |
| 194 | DRIVER( svisions ) |
| 195 | DRIVER( svisionp ) |
| 196 | DRIVER( svisionn ) |
| 197 | DRIVER( tvlinkp ) |
| 198 | 198 | |
| 199 | | /* INTERTON */ |
| 200 | | DRIVER( vc4000 ) /* Interton vc4000 */ |
| 199 | /* INTERTON */ |
| 200 | DRIVER( vc4000 ) /* Interton vc4000 */ |
| 201 | 201 | |
| 202 | | /* BANDAI */ |
| 203 | | DRIVER( wswan ) /* Bandai WonderSwan Handheld */ |
| 204 | | DRIVER( wscolor ) /* Bandai WonderSwan Color Handheld */ |
| 202 | /* BANDAI */ |
| 203 | DRIVER( wswan ) /* Bandai WonderSwan Handheld */ |
| 204 | DRIVER( wscolor ) /* Bandai WonderSwan Color Handheld */ |
| 205 | 205 | |
| 206 | | /* EPOCH */ |
| 207 | | DRIVER( gamepock ) /* Epoch Game Pocket Computer */ |
| 206 | /* EPOCH */ |
| 207 | DRIVER( gamepock ) /* Epoch Game Pocket Computer */ |
| 208 | 208 | |
| 209 | | /* KOEI */ |
| 210 | | DRIVER( pasogo ) /* KOEI PasoGo */ |
| 209 | /* KOEI */ |
| 210 | DRIVER( pasogo ) /* KOEI PasoGo */ |
| 211 | 211 | |
| 212 | | /* SNK */ |
| 213 | | DRIVER( ngp ) /* NeoGeo Pocket */ |
| 214 | | DRIVER( ngpc ) /* NeoGeo Pocket Color */ |
| 215 | | DRIVER( aes ) /* NeoGeo AES */ |
| 216 | | DRIVER( neocd ) /* NeoGeo CD */ |
| 217 | | DRIVER( neocdz ) /* NeoGeo CDZ */ |
| 212 | /* SNK */ |
| 213 | DRIVER( ngp ) /* NeoGeo Pocket */ |
| 214 | DRIVER( ngpc ) /* NeoGeo Pocket Color */ |
| 215 | DRIVER( aes ) /* NeoGeo AES */ |
| 216 | DRIVER( neocd ) /* NeoGeo CD */ |
| 217 | DRIVER( neocdz ) /* NeoGeo CDZ */ |
| 218 | 218 | |
| 219 | | /* Philips */ |
| 220 | | DRIVER( cdi ) /* Philips CD-i */ |
| 219 | /* Philips */ |
| 220 | DRIVER( cdi ) /* Philips CD-i */ |
| 221 | 221 | |
| 222 | 222 | /****************COMPUTERS***************************************************/ |
| 223 | 223 | /* ACORN */ |
| 224 | | DRIVER( acrnsys1 ) /* 1979 Acorn System 1 (Microcomputer Kit) */ |
| 225 | | DRIVER( atom ) /* 1979 Acorn Atom */ |
| 226 | | DRIVER( atomeb ) /* 1979 Acorn Atom */ |
| 227 | | DRIVER( bbca ) /* 1981 BBC Micro Model A */ |
| 228 | | DRIVER( bbcb ) /* 1981 BBC Micro Model B */ |
| 229 | | DRIVER( bbcbp ) /* 198? BBC Micro Model B+ 64K */ |
| 230 | | DRIVER( bbcbp128 ) /* 198? BBC Micro Model B+ 128K */ |
| 231 | | DRIVER( bbcm) /* 198? BBC Master */ |
| 232 | | DRIVER( bbcbc ) /* 1985 BBC Bridge Companion */ |
| 233 | | DRIVER( electron ) /* 1983 Acorn Electron */ |
| 234 | | DRIVER( a310 ) /* 1988 Acorn Archimedes 310 */ |
| 235 | | DRIVER( a6809 ) |
| 224 | DRIVER( acrnsys1 ) /* 1979 Acorn System 1 (Microcomputer Kit) */ |
| 225 | DRIVER( atom ) /* 1979 Acorn Atom */ |
| 226 | DRIVER( atomeb ) /* 1979 Acorn Atom */ |
| 227 | DRIVER( bbca ) /* 1981 BBC Micro Model A */ |
| 228 | DRIVER( bbcb ) /* 1981 BBC Micro Model B */ |
| 229 | DRIVER( bbcbp ) /* 198? BBC Micro Model B+ 64K */ |
| 230 | DRIVER( bbcbp128 ) /* 198? BBC Micro Model B+ 128K */ |
| 231 | DRIVER( bbcm) /* 198? BBC Master */ |
| 232 | DRIVER( bbcbc ) /* 1985 BBC Bridge Companion */ |
| 233 | DRIVER( electron ) /* 1983 Acorn Electron */ |
| 234 | DRIVER( a310 ) /* 1988 Acorn Archimedes 310 */ |
| 235 | DRIVER( a6809 ) |
| 236 | 236 | |
| 237 | | /* CAMBRIDGE COMPUTERS */ |
| 238 | | DRIVER( z88 ) /* */ |
| 237 | /* CAMBRIDGE COMPUTERS */ |
| 238 | DRIVER( z88 ) /* */ |
| 239 | 239 | |
| 240 | | /* AMSTRAD */ |
| 241 | | DRIVER( cpc464 ) /* Amstrad (Schneider in Germany) 1984 */ |
| 242 | | DRIVER( cpc664 ) /* Amstrad (Schneider in Germany) 1985 */ |
| 243 | | DRIVER( cpc6128 ) /* Amstrad (Schneider in Germany) 1985 */ |
| 244 | | DRIVER( cpc6128s ) /* Amstrad (Schneider in Germany) 1985 */ |
| 245 | | DRIVER( cpc6128f ) /* Amstrad (Schneider in Germany) 1985 (AZERTY) */ |
| 246 | | DRIVER( cpc464p ) /* Amstrad CPC464 Plus - 1990 */ |
| 247 | | DRIVER( cpc6128p ) /* Amstrad CPC6128 Plus - 1990 */ |
| 248 | | DRIVER( gx4000 ) /* Amstrad GX4000 - 1990 */ |
| 249 | | DRIVER( kccomp ) /* VEB KC compact */ |
| 250 | | DRIVER( al520ex ) /* Patisonic Aleste 520EX (1993) */ |
| 251 | | DRIVER( pcw8256 ) /* 198? PCW8256 */ |
| 252 | | DRIVER( pcw8512 ) /* 198? PCW8512 */ |
| 253 | | DRIVER( pcw9256 ) /* 198? PCW9256 */ |
| 254 | | DRIVER( pcw9512 ) /* 198? PCW9512 (+) */ |
| 255 | | DRIVER( pcw10 ) /* 198? PCW10 */ |
| 256 | | DRIVER( pcw16 ) /* 1995 PCW16 */ |
| 257 | | DRIVER( nc100 ) /* 1992 NC100 */ |
| 258 | | DRIVER( nc150 ) /* 1992 NC150 */ |
| 259 | | DRIVER( nc200 ) /* 1993 NC200 */ |
| 240 | /* AMSTRAD */ |
| 241 | DRIVER( cpc464 ) /* Amstrad (Schneider in Germany) 1984 */ |
| 242 | DRIVER( cpc664 ) /* Amstrad (Schneider in Germany) 1985 */ |
| 243 | DRIVER( cpc6128 ) /* Amstrad (Schneider in Germany) 1985 */ |
| 244 | DRIVER( cpc6128s ) /* Amstrad (Schneider in Germany) 1985 */ |
| 245 | DRIVER( cpc6128f ) /* Amstrad (Schneider in Germany) 1985 (AZERTY) */ |
| 246 | DRIVER( cpc464p ) /* Amstrad CPC464 Plus - 1990 */ |
| 247 | DRIVER( cpc6128p ) /* Amstrad CPC6128 Plus - 1990 */ |
| 248 | DRIVER( gx4000 ) /* Amstrad GX4000 - 1990 */ |
| 249 | DRIVER( kccomp ) /* VEB KC compact */ |
| 250 | DRIVER( al520ex ) /* Patisonic Aleste 520EX (1993) */ |
| 251 | DRIVER( pcw8256 ) /* 198? PCW8256 */ |
| 252 | DRIVER( pcw8512 ) /* 198? PCW8512 */ |
| 253 | DRIVER( pcw9256 ) /* 198? PCW9256 */ |
| 254 | DRIVER( pcw9512 ) /* 198? PCW9512 (+) */ |
| 255 | DRIVER( pcw10 ) /* 198? PCW10 */ |
| 256 | DRIVER( pcw16 ) /* 1995 PCW16 */ |
| 257 | DRIVER( nc100 ) /* 1992 NC100 */ |
| 258 | DRIVER( nc150 ) /* 1992 NC150 */ |
| 259 | DRIVER( nc200 ) /* 1993 NC200 */ |
| 260 | 260 | |
| 261 | | /* APPLE */ |
| 262 | | DRIVER( apple1 ) /* Jul 1976 Apple 1 */ |
| 263 | | DRIVER( apple2 ) /* Apr 1977 Apple ][ */ |
| 264 | | DRIVER( apple2p ) /* Jun 1979 Apple ][+ */ |
| 265 | | DRIVER( prav82 ) /* Pravetz 82 */ |
| 266 | | DRIVER( prav8m ) /* Pravetz 8M */ |
| 267 | | DRIVER( apple2jp ) /* ??? ???? Apple ][j+ */ |
| 268 | | DRIVER( apple2e ) /* Jan 1983 Apple //e */ |
| 269 | | DRIVER( mprof3 ) /* Microprofessor III */ |
| 270 | | DRIVER( apple2ee ) /* Mar 1985 Apple //e Enhanced */ |
| 271 | | DRIVER( apple2ep ) /* Jan 1987 Apple //e Platinum */ |
| 272 | | DRIVER( apple2c ) /* Apr 1984 Apple //c */ |
| 273 | | DRIVER( prav8c ) /* Pravetz 8C */ |
| 274 | | DRIVER( apple2c0 ) /* ??? 1985 Apple //c (3.5 ROM) */ |
| 275 | | DRIVER( apple2c3 ) /* Sep 1986 Apple //c (Original Mem. Exp.) */ |
| 276 | | DRIVER( apple2c4 ) /* ??? 198? Apple //c (rev 4) */ |
| 277 | | DRIVER( apple2cp ) /* Sep 1988 Apple //c+ */ |
| 278 | | DRIVER( apple2gsr0 ) /* Sep 1986 Apple IIgs ROM00 */ |
| 279 | | DRIVER( apple2gsr1 ) /* Sep 1987 Apple IIgs ROM01 */ |
| 280 | | DRIVER( apple2gs ) /* Aug 1989 Apple IIgs ROM03 */ |
| 281 | | DRIVER( apple2gsr3p ) /* ??? 198? Apple IIgs ROM03 prototype */ |
| 282 | | DRIVER( apple2gsr3lp ) /* ??? 1989 Apple IIgs ROM03 late? prototype */ |
| 283 | | DRIVER( apple3 ) /* May 1980 Apple /// */ |
| 284 | | /* Dec 1983 Apple ///+ */ |
| 285 | | DRIVER( ace100 ) /* ??? 1982 Franklin Ace 100 */ |
| 286 | | DRIVER( laser128 ) /* ??? 1987 Laser 128 */ |
| 287 | | DRIVER( las128ex ) /* ??? 1987 Laser 128 EX */ |
| 288 | | DRIVER( las3000 ) /* ??? 1983 Laser 3000 */ |
| 289 | | DRIVER( ivelultr ) /* Ivasim Ivel Ultra */ |
| 290 | | DRIVER( agat7 ) /* Agat-7 */ |
| 291 | | DRIVER( agat9 ) /* Agat-9 */ |
| 261 | /* APPLE */ |
| 262 | DRIVER( apple1 ) /* Jul 1976 Apple 1 */ |
| 263 | DRIVER( apple2 ) /* Apr 1977 Apple ][ */ |
| 264 | DRIVER( apple2p ) /* Jun 1979 Apple ][+ */ |
| 265 | DRIVER( prav82 ) /* Pravetz 82 */ |
| 266 | DRIVER( prav8m ) /* Pravetz 8M */ |
| 267 | DRIVER( apple2jp ) /* ??? ???? Apple ][j+ */ |
| 268 | DRIVER( apple2e ) /* Jan 1983 Apple //e */ |
| 269 | DRIVER( mprof3 ) /* Microprofessor III */ |
| 270 | DRIVER( apple2ee ) /* Mar 1985 Apple //e Enhanced */ |
| 271 | DRIVER( apple2ep ) /* Jan 1987 Apple //e Platinum */ |
| 272 | DRIVER( apple2c ) /* Apr 1984 Apple //c */ |
| 273 | DRIVER( prav8c ) /* Pravetz 8C */ |
| 274 | DRIVER( apple2c0 ) /* ??? 1985 Apple //c (3.5 ROM) */ |
| 275 | DRIVER( apple2c3 ) /* Sep 1986 Apple //c (Original Mem. Exp.) */ |
| 276 | DRIVER( apple2c4 ) /* ??? 198? Apple //c (rev 4) */ |
| 277 | DRIVER( apple2cp ) /* Sep 1988 Apple //c+ */ |
| 278 | DRIVER( apple2gsr0 ) /* Sep 1986 Apple IIgs ROM00 */ |
| 279 | DRIVER( apple2gsr1 ) /* Sep 1987 Apple IIgs ROM01 */ |
| 280 | DRIVER( apple2gs ) /* Aug 1989 Apple IIgs ROM03 */ |
| 281 | DRIVER( apple2gsr3p ) /* ??? 198? Apple IIgs ROM03 prototype */ |
| 282 | DRIVER( apple2gsr3lp ) /* ??? 1989 Apple IIgs ROM03 late? prototype */ |
| 283 | DRIVER( apple3 ) /* May 1980 Apple /// */ |
| 284 | /* Dec 1983 Apple ///+ */ |
| 285 | DRIVER( ace100 ) /* ??? 1982 Franklin Ace 100 */ |
| 286 | DRIVER( laser128 ) /* ??? 1987 Laser 128 */ |
| 287 | DRIVER( las128ex ) /* ??? 1987 Laser 128 EX */ |
| 288 | DRIVER( las3000 ) /* ??? 1983 Laser 3000 */ |
| 289 | DRIVER( ivelultr ) /* Ivasim Ivel Ultra */ |
| 290 | DRIVER( agat7 ) /* Agat-7 */ |
| 291 | DRIVER( agat9 ) /* Agat-9 */ |
| 292 | 292 | |
| 293 | 293 | /* |
| 294 | | * Lisa January 1983 |
| 295 | | * Lisa 2 January 1984 |
| 296 | | * Macintosh XL January 1985 |
| 294 | * Lisa January 1983 |
| 295 | * Lisa 2 January 1984 |
| 296 | * Macintosh XL January 1985 |
| 297 | 297 | */ |
| 298 | | DRIVER( lisa ) /* 1983 Apple Lisa */ |
| 299 | | DRIVER( lisa2 ) /* 1984 Apple Lisa 2 */ |
| 300 | | DRIVER( lisa210 ) /* 1984 Apple Lisa 2/10 */ |
| 301 | | DRIVER( macxl ) /* 1985 Apple Macintosh XL */ |
| 298 | DRIVER( lisa ) /* 1983 Apple Lisa */ |
| 299 | DRIVER( lisa2 ) /* 1984 Apple Lisa 2 */ |
| 300 | DRIVER( lisa210 ) /* 1984 Apple Lisa 2/10 */ |
| 301 | DRIVER( macxl ) /* 1985 Apple Macintosh XL */ |
| 302 | 302 | /* |
| 303 | | * Macintosh January 1984 |
| 304 | | * Macintosh 512k July? 1984 |
| 305 | | * Macintosh 512ke April 1986 |
| 306 | | * Macintosh Plus January 1986 |
| 307 | | * Macintosh SE March 1987 |
| 308 | | * Macintosh II March 1987 |
| 303 | * Macintosh January 1984 |
| 304 | * Macintosh 512k July? 1984 |
| 305 | * Macintosh 512ke April 1986 |
| 306 | * Macintosh Plus January 1986 |
| 307 | * Macintosh SE March 1987 |
| 308 | * Macintosh II March 1987 |
| 309 | 309 | */ |
| 310 | | DRIVER( mac128k ) /* 1984 Apple Macintosh */ |
| 311 | | DRIVER( mac512k ) /* 1985 Apple Macintosh 512k */ |
| 312 | | DRIVER( mac512ke ) /* 1986 Apple Macintosh 512ke */ |
| 313 | | DRIVER( macplus ) /* 1986 Apple Macintosh Plus */ |
| 314 | | DRIVER( macse ) /* 1987 Apple Macintosh SE */ |
| 315 | | DRIVER( macclasc ) /* 1990 Apple Macintosh Classic */ |
| 316 | | // DRIVER( maclc ) /* 1990 Apple Macintosh LC */ |
| 310 | DRIVER( mac128k ) /* 1984 Apple Macintosh */ |
| 311 | DRIVER( mac512k ) /* 1985 Apple Macintosh 512k */ |
| 312 | DRIVER( mac512ke ) /* 1986 Apple Macintosh 512ke */ |
| 313 | DRIVER( macplus ) /* 1986 Apple Macintosh Plus */ |
| 314 | DRIVER( macse ) /* 1987 Apple Macintosh SE */ |
| 315 | DRIVER( macclasc ) /* 1990 Apple Macintosh Classic */ |
| 316 | // DRIVER( maclc ) /* 1990 Apple Macintosh LC */ |
| 317 | 317 | |
| 318 | | /* ATARI */ |
| 319 | | DRIVER( a400 ) /* 1979 Atari 400 */ |
| 320 | | DRIVER( a400pal ) /* 1979 Atari 400 PAL */ |
| 321 | | DRIVER( a800 ) /* 1979 Atari 800 */ |
| 322 | | DRIVER( a800pal ) /* 1979 Atari 800 PAL */ |
| 323 | | DRIVER( a1200xl ) /* 1982 Atari 1200 XL */ |
| 324 | | DRIVER( a600xl ) /* 1983 Atari 600 XL */ |
| 325 | | DRIVER( a800xl ) /* 1983 Atari 800 XL */ |
| 326 | | DRIVER( a65xe ) /* 1986 Atari 65 XE (XL Extended) */ |
| 327 | | DRIVER( a65xea ) /* 1986? Atari 65 XE Arabic */ |
| 328 | | DRIVER( a130xe ) /* 1986 Atari 130 XE */ |
| 329 | | DRIVER( a800xe ) /* 1986 Atari 800 XE */ |
| 330 | | DRIVER( xegs ) /* 1987 Atari XE Game System */ |
| 331 | | DRIVER( atarist ) /* Atari ST */ |
| 332 | | DRIVER( megast ) /* Atari Mega ST */ |
| 333 | | // DRIVER( stacy ) /* Atari STacy */ |
| 334 | | DRIVER( atariste ) /* Atari STe */ |
| 335 | | DRIVER( stbook ) /* Atari STBook */ |
| 336 | | DRIVER( megaste ) /* Atari Mega STe */ |
| 337 | | // DRIVER( stpad ) /* Atari STPad (prototype) */ |
| 338 | | // DRIVER( tt030 ) /* Atari TT030 */ |
| 339 | | // DRIVER( fx1 ) /* Atari FX-1 (prototype) */ |
| 340 | | // DRIVER( falcon ) /* Atari Falcon030 */ |
| 341 | | // DRIVER( falcon40 ) /* Atari Falcon040 (prototype) */ |
| 318 | /* ATARI */ |
| 319 | DRIVER( a400 ) /* 1979 Atari 400 */ |
| 320 | DRIVER( a400pal ) /* 1979 Atari 400 PAL */ |
| 321 | DRIVER( a800 ) /* 1979 Atari 800 */ |
| 322 | DRIVER( a800pal ) /* 1979 Atari 800 PAL */ |
| 323 | DRIVER( a1200xl ) /* 1982 Atari 1200 XL */ |
| 324 | DRIVER( a600xl ) /* 1983 Atari 600 XL */ |
| 325 | DRIVER( a800xl ) /* 1983 Atari 800 XL */ |
| 326 | DRIVER( a65xe ) /* 1986 Atari 65 XE (XL Extended) */ |
| 327 | DRIVER( a65xea ) /* 1986? Atari 65 XE Arabic */ |
| 328 | DRIVER( a130xe ) /* 1986 Atari 130 XE */ |
| 329 | DRIVER( a800xe ) /* 1986 Atari 800 XE */ |
| 330 | DRIVER( xegs ) /* 1987 Atari XE Game System */ |
| 331 | DRIVER( atarist ) /* Atari ST */ |
| 332 | DRIVER( megast ) /* Atari Mega ST */ |
| 333 | // DRIVER( stacy ) /* Atari STacy */ |
| 334 | DRIVER( atariste ) /* Atari STe */ |
| 335 | DRIVER( stbook ) /* Atari STBook */ |
| 336 | DRIVER( megaste ) /* Atari Mega STe */ |
| 337 | // DRIVER( stpad ) /* Atari STPad (prototype) */ |
| 338 | // DRIVER( tt030 ) /* Atari TT030 */ |
| 339 | // DRIVER( fx1 ) /* Atari FX-1 (prototype) */ |
| 340 | // DRIVER( falcon ) /* Atari Falcon030 */ |
| 341 | // DRIVER( falcon40 ) /* Atari Falcon040 (prototype) */ |
| 342 | 342 | |
| 343 | | /* COMMODORE */ |
| 344 | | DRIVER( kim1 ) /* Commodore (MOS) KIM-1 1975 */ |
| 345 | | DRIVER( sym1 ) /* Synertek SYM-1 */ |
| 346 | | DRIVER( aim65 ) /* Rockwell AIM65 */ |
| 343 | /* COMMODORE */ |
| 344 | DRIVER( kim1 ) /* Commodore (MOS) KIM-1 1975 */ |
| 345 | DRIVER( sym1 ) /* Synertek SYM-1 */ |
| 346 | DRIVER( aim65 ) /* Rockwell AIM65 */ |
| 347 | 347 | |
| 348 | | DRIVER( pet2001 ) /* PET 2001 */ |
| 349 | | DRIVER( pet2001n ) /* PET 2001-N */ |
| 350 | | DRIVER( pet2001b ) /* PET 2001-B */ |
| 351 | | DRIVER( cbm30 ) /* CBM 30xx */ |
| 352 | | DRIVER( cbm30b ) /* CBM 30xx (Business keyboard) */ |
| 353 | | DRIVER( cbm30nor ) /* CBM 30xx (Norway, Business keyboard) */ |
| 354 | | DRIVER( pet40on ) /* PET 40xx (Basic 4, no CRTC, Normal keyboard) */ |
| 355 | | DRIVER( pet40ob ) /* PET 40xx (Basic 4, no CRTC, Business keyboard) */ |
| 356 | | DRIVER( pet40n ) /* PET 40xx (Basic 4, CRTC 60Hz, 40 columns) */ |
| 357 | | DRIVER( pet40b ) /* PET 40xx (Basic 4, CRTC 60Hz, 80 columns) */ |
| 358 | | DRIVER( cbm40o ) /* CBM 40xx (Basic 4, no CRTC, Normal keyboard) */ |
| 359 | | DRIVER( cbm40ob ) /* CBM 40xx (Basic 4, no CRTC, Business keyboard) */ |
| 360 | | DRIVER( cbm40n ) /* CBM 40xx (Basic 4, CRTC 50Hz, 40 columns) */ |
| 361 | | DRIVER( cbm40b ) /* CBM 40xx (Basic 4, CRTC 50Hz, 80 columns) */ |
| 362 | | DRIVER( pet80 ) /* PET 80xx (Basic 4, CRTC 60Hz, 80 columns) */ |
| 363 | | DRIVER( cbm80 ) /* CBM 80xx (Basic 4, CRTC 50Hz, 80 columns) */ |
| 364 | | DRIVER( cbm80ger ) /* CBM 80xx (Germany, Basic 4, CRTC 50Hz, 80 cols) */ |
| 365 | | DRIVER( cbm80hun ) /* CBM 80xx (Hungary, Basic 4, CRTC 50Hz, 80 cols) */ |
| 366 | | DRIVER( cbm80swe ) /* CBM 80xx (Sweden, Basic 4, CRTC 50Hz, 80 cols) */ |
| 367 | | DRIVER( cbm8296 ) /* CBM 8296 (Basic 4, CRTC 50Hz, 80 columns) */ |
| 368 | | DRIVER( cbm8296d ) /* CBM 8296D */ |
| 369 | | DRIVER( superpet ) /* SuperPET */ |
| 370 | | DRIVER( sp9000 ) /* CBM SP9000 / MiniMainFrame 9000 */ |
| 371 | | DRIVER( mmf9000s ) /* MiniMainFrame 9000 (Sweden) */ |
| 348 | DRIVER( pet2001 ) /* PET 2001 */ |
| 349 | DRIVER( pet2001n ) /* PET 2001-N */ |
| 350 | DRIVER( pet2001b ) /* PET 2001-B */ |
| 351 | DRIVER( cbm30 ) /* CBM 30xx */ |
| 352 | DRIVER( cbm30b ) /* CBM 30xx (Business keyboard) */ |
| 353 | DRIVER( cbm30nor ) /* CBM 30xx (Norway, Business keyboard) */ |
| 354 | DRIVER( pet40on ) /* PET 40xx (Basic 4, no CRTC, Normal keyboard) */ |
| 355 | DRIVER( pet40ob ) /* PET 40xx (Basic 4, no CRTC, Business keyboard) */ |
| 356 | DRIVER( pet40n ) /* PET 40xx (Basic 4, CRTC 60Hz, 40 columns) */ |
| 357 | DRIVER( pet40b ) /* PET 40xx (Basic 4, CRTC 60Hz, 80 columns) */ |
| 358 | DRIVER( cbm40o ) /* CBM 40xx (Basic 4, no CRTC, Normal keyboard) */ |
| 359 | DRIVER( cbm40ob ) /* CBM 40xx (Basic 4, no CRTC, Business keyboard) */ |
| 360 | DRIVER( cbm40n ) /* CBM 40xx (Basic 4, CRTC 50Hz, 40 columns) */ |
| 361 | DRIVER( cbm40b ) /* CBM 40xx (Basic 4, CRTC 50Hz, 80 columns) */ |
| 362 | DRIVER( pet80 ) /* PET 80xx (Basic 4, CRTC 60Hz, 80 columns) */ |
| 363 | DRIVER( cbm80 ) /* CBM 80xx (Basic 4, CRTC 50Hz, 80 columns) */ |
| 364 | DRIVER( cbm80ger ) /* CBM 80xx (Germany, Basic 4, CRTC 50Hz, 80 cols) */ |
| 365 | DRIVER( cbm80hun ) /* CBM 80xx (Hungary, Basic 4, CRTC 50Hz, 80 cols) */ |
| 366 | DRIVER( cbm80swe ) /* CBM 80xx (Sweden, Basic 4, CRTC 50Hz, 80 cols) */ |
| 367 | DRIVER( cbm8296 ) /* CBM 8296 (Basic 4, CRTC 50Hz, 80 columns) */ |
| 368 | DRIVER( cbm8296d ) /* CBM 8296D */ |
| 369 | DRIVER( superpet ) /* SuperPET */ |
| 370 | DRIVER( sp9000 ) /* CBM SP9000 / MiniMainFrame 9000 */ |
| 371 | DRIVER( mmf9000s ) /* MiniMainFrame 9000 (Sweden) */ |
| 372 | 372 | |
| 373 | | DRIVER( vic1001 ) /* Commodore VIC-1001 (Japan) */ |
| 374 | | DRIVER( vic20 ) /* Commodore VIC 20 (NTSC) */ |
| 375 | | DRIVER( vic20cr ) /* Commodore VIC 20CR (NTSC) */ |
| 376 | | DRIVER( vic20i ) /* Commodore VIC 20 (NTSC, IEEE488 Interface) */ |
| 377 | | DRIVER( vic20v ) /* Commodore VIC 20 (NTSC, VC1540) */ |
| 378 | | DRIVER( vic20pal ) /* Commodore VIC 20 (PAL) */ |
| 379 | | DRIVER( vic20crp ) /* Commodore VIC 20CR (PAL) */ |
| 380 | | DRIVER( vic20plv ) /* Commodore VIC 20 (PAL, VC1540) */ |
| 381 | | DRIVER( vc20 ) /* Commodore VIC 20 (PAL, Germany) */ |
| 382 | | DRIVER( vc20v ) /* Commodore VIC 20 (PAL, VC1540) */ |
| 383 | | DRIVER( vic20swe ) /* Commodore VIC 20 (Swedish Expanson Kit) */ |
| 373 | DRIVER( vic1001 ) /* Commodore VIC-1001 (Japan) */ |
| 374 | DRIVER( vic20 ) /* Commodore VIC 20 (NTSC) */ |
| 375 | DRIVER( vic20cr ) /* Commodore VIC 20CR (NTSC) */ |
| 376 | DRIVER( vic20i ) /* Commodore VIC 20 (NTSC, IEEE488 Interface) */ |
| 377 | DRIVER( vic20v ) /* Commodore VIC 20 (NTSC, VC1540) */ |
| 378 | DRIVER( vic20pal ) /* Commodore VIC 20 (PAL) */ |
| 379 | DRIVER( vic20crp ) /* Commodore VIC 20CR (PAL) */ |
| 380 | DRIVER( vic20plv ) /* Commodore VIC 20 (PAL, VC1540) */ |
| 381 | DRIVER( vc20 ) /* Commodore VIC 20 (PAL, Germany) */ |
| 382 | DRIVER( vc20v ) /* Commodore VIC 20 (PAL, VC1540) */ |
| 383 | DRIVER( vic20swe ) /* Commodore VIC 20 (Swedish Expanson Kit) */ |
| 384 | 384 | |
| 385 | | DRIVER( max ) /* Commodore Max Machine (Japan) */ |
| 386 | | DRIVER( c64 ) /* Commodore 64 (NTSC) */ |
| 387 | | DRIVER( c64pal ) /* Commodore 64 (PAL) */ |
| 388 | | DRIVER( c64jpn ) /* Commodore 64 (Japan) */ |
| 389 | | DRIVER( c64swe ) /* Commodore 64 (Sweden) */ |
| 390 | | DRIVER( vic64s ) /* Commodore VIC 64S (Sweden) */ |
| 391 | | DRIVER( pet64 ) /* Commodore PET 64 */ |
| 392 | | DRIVER( cbm4064 ) /* Commodore CBM 4064 */ |
| 393 | | DRIVER( edu64 ) /* Commodore Educator 64 */ |
| 394 | | DRIVER( sx64 ) /* Commodore SX-64 Executive Machine (PAL) */ |
| 395 | | DRIVER( vip64 ) /* Commodore VIP64 (SX64, PAL, Swedish) */ |
| 396 | | // DRIVER( dx64 ) /* Commodore DX-64 - Prototype */ |
| 397 | | DRIVER( c64c ) /* Commodore 64C (NTSC) */ |
| 398 | | DRIVER( c64cpal ) /* Commodore 64C (PAL) */ |
| 399 | | DRIVER( c64g ) /* Commodore 64G (PAL) */ |
| 400 | | DRIVER( c64gs ) /* Commodore 64 Games System */ |
| 385 | DRIVER( max ) /* Commodore Max Machine (Japan) */ |
| 386 | DRIVER( c64 ) /* Commodore 64 (NTSC) */ |
| 387 | DRIVER( c64pal ) /* Commodore 64 (PAL) */ |
| 388 | DRIVER( c64jpn ) /* Commodore 64 (Japan) */ |
| 389 | DRIVER( c64swe ) /* Commodore 64 (Sweden) */ |
| 390 | DRIVER( vic64s ) /* Commodore VIC 64S (Sweden) */ |
| 391 | DRIVER( pet64 ) /* Commodore PET 64 */ |
| 392 | DRIVER( cbm4064 ) /* Commodore CBM 4064 */ |
| 393 | DRIVER( edu64 ) /* Commodore Educator 64 */ |
| 394 | DRIVER( sx64 ) /* Commodore SX-64 Executive Machine (PAL) */ |
| 395 | DRIVER( vip64 ) /* Commodore VIP64 (SX64, PAL, Swedish) */ |
| 396 | // DRIVER( dx64 ) /* Commodore DX-64 - Prototype */ |
| 397 | DRIVER( c64c ) /* Commodore 64C (NTSC) */ |
| 398 | DRIVER( c64cpal ) /* Commodore 64C (PAL) */ |
| 399 | DRIVER( c64g ) /* Commodore 64G (PAL) */ |
| 400 | DRIVER( c64gs ) /* Commodore 64 Games System */ |
| 401 | 401 | |
| 402 | | DRIVER( b500 ) /* Commodore B500 */ |
| 403 | | DRIVER( b128 ) /* Commodore B128 */ |
| 404 | | DRIVER( b256 ) /* Commodore B256 */ |
| 405 | | DRIVER( cbm610 ) /* Commodore CBM 610 */ |
| 406 | | DRIVER( cbm620 ) /* Commodore CBM 620 */ |
| 407 | | DRIVER( cbm620hu ) /* Commodore CBM 620 (Hungary) */ |
| 408 | | DRIVER( b128hp ) /* Commodore B128HP */ |
| 409 | | DRIVER( b256hp ) /* Commodore B256HP */ |
| 410 | | DRIVER( bx256hp ) /* Commodore BX256HP */ |
| 411 | | DRIVER( cbm710 ) /* Commodore CBM 710 */ |
| 412 | | DRIVER( cbm720 ) /* Commodore CBM 720 */ |
| 413 | | DRIVER( cbm720se ) /* Commodore CBM 720 (Sweden / Finland) */ |
| 414 | | DRIVER( p500 ) /* Commodore P500 (proto, a.k.a. C128-40, PET-II) */ |
| 402 | DRIVER( b500 ) /* Commodore B500 */ |
| 403 | DRIVER( b128 ) /* Commodore B128 */ |
| 404 | DRIVER( b256 ) /* Commodore B256 */ |
| 405 | DRIVER( cbm610 ) /* Commodore CBM 610 */ |
| 406 | DRIVER( cbm620 ) /* Commodore CBM 620 */ |
| 407 | DRIVER( cbm620hu ) /* Commodore CBM 620 (Hungary) */ |
| 408 | DRIVER( b128hp ) /* Commodore B128HP */ |
| 409 | DRIVER( b256hp ) /* Commodore B256HP */ |
| 410 | DRIVER( bx256hp ) /* Commodore BX256HP */ |
| 411 | DRIVER( cbm710 ) /* Commodore CBM 710 */ |
| 412 | DRIVER( cbm720 ) /* Commodore CBM 720 */ |
| 413 | DRIVER( cbm720se ) /* Commodore CBM 720 (Sweden / Finland) */ |
| 414 | DRIVER( p500 ) /* Commodore P500 (proto, a.k.a. C128-40, PET-II) */ |
| 415 | 415 | |
| 416 | | DRIVER( c16 ) /* Commodore 16 */ |
| 417 | | DRIVER( c16c ) /* Commodore 16 c1551 */ |
| 418 | | DRIVER( c16v ) /* Commodore 16 vc1541 */ |
| 419 | | DRIVER( c16hun ) /* Commodore 16 Novotrade (Hungarian Character Set) */ |
| 420 | | DRIVER( c116 ) /* Commodore 116 */ |
| 421 | | DRIVER( c116c ) /* Commodore 116 c1551 */ |
| 422 | | DRIVER( c116v ) /* Commodore 116 vc1541 */ |
| 423 | | DRIVER( plus4 ) /* Commodore +4 */ |
| 424 | | DRIVER( plus4c ) /* Commodore +4 c1551 */ |
| 425 | | DRIVER( plus4v ) /* Commodore +4 vc1541 */ |
| 426 | | DRIVER( c232 ) /* Commodore 232 - Prototype */ |
| 427 | | DRIVER( c264 ) /* Commodore 264 - Prototype */ |
| 428 | | DRIVER( c364 ) /* Commodore V364 - Prototype */ |
| 416 | DRIVER( c16 ) /* Commodore 16 */ |
| 417 | DRIVER( c16c ) /* Commodore 16 c1551 */ |
| 418 | DRIVER( c16v ) /* Commodore 16 vc1541 */ |
| 419 | DRIVER( c16hun ) /* Commodore 16 Novotrade (Hungarian Character Set) */ |
| 420 | DRIVER( c116 ) /* Commodore 116 */ |
| 421 | DRIVER( c116c ) /* Commodore 116 c1551 */ |
| 422 | DRIVER( c116v ) /* Commodore 116 vc1541 */ |
| 423 | DRIVER( plus4 ) /* Commodore +4 */ |
| 424 | DRIVER( plus4c ) /* Commodore +4 c1551 */ |
| 425 | DRIVER( plus4v ) /* Commodore +4 vc1541 */ |
| 426 | DRIVER( c232 ) /* Commodore 232 - Prototype */ |
| 427 | DRIVER( c264 ) /* Commodore 264 - Prototype */ |
| 428 | DRIVER( c364 ) /* Commodore V364 - Prototype */ |
| 429 | 429 | |
| 430 | | DRIVER( c128 ) /* Commodore 128 - NTSC */ |
| 431 | | DRIVER( c128cr ) /* Commodore 128CR - NTSC (proto?) */ |
| 432 | | DRIVER( c128sfi ) /* Commodore 128 - PAL (Swedish / Finnish) */ |
| 433 | | DRIVER( c128fino ) /* Commodore 128 - PAL (Finnish, Unconfirmed dumps) */ |
| 434 | | DRIVER( c128fra ) /* Commodore 128 - PAL (French) */ |
| 435 | | DRIVER( c128ger ) /* Commodore 128 - PAL (German) */ |
| 436 | | DRIVER( c128nor ) /* Commodore 128 - PAL (Norwegian) */ |
| 437 | | DRIVER( c128d ) /* Commodore 128D - PAL */ |
| 438 | | DRIVER( c128dpr ) /* Commodore 128D - NTSC (proto) */ |
| 439 | | DRIVER( c128dcr ) /* Commodore 128DCR - NTSC */ |
| 440 | | DRIVER( c128drde ) /* Commodore 128DCR - PAL (German) */ |
| 441 | | DRIVER( c128drit ) /* Commodore 128DCR - PAL (Italian) */ |
| 442 | | DRIVER( c128drsw ) /* Commodore 128DCR - PAL (Swedish) */ |
| 443 | | DRIVER( c128d81 ) /* Commodore 128D/81 */ |
| 430 | DRIVER( c128 ) /* Commodore 128 - NTSC */ |
| 431 | DRIVER( c128cr ) /* Commodore 128CR - NTSC (proto?) */ |
| 432 | DRIVER( c128sfi ) /* Commodore 128 - PAL (Swedish / Finnish) */ |
| 433 | DRIVER( c128fino ) /* Commodore 128 - PAL (Finnish, Unconfirmed dumps) */ |
| 434 | DRIVER( c128fra ) /* Commodore 128 - PAL (French) */ |
| 435 | DRIVER( c128ger ) /* Commodore 128 - PAL (German) */ |
| 436 | DRIVER( c128nor ) /* Commodore 128 - PAL (Norwegian) */ |
| 437 | DRIVER( c128d ) /* Commodore 128D - PAL */ |
| 438 | DRIVER( c128dpr ) /* Commodore 128D - NTSC (proto) */ |
| 439 | DRIVER( c128dcr ) /* Commodore 128DCR - NTSC */ |
| 440 | DRIVER( c128drde ) /* Commodore 128DCR - PAL (German) */ |
| 441 | DRIVER( c128drit ) /* Commodore 128DCR - PAL (Italian) */ |
| 442 | DRIVER( c128drsw ) /* Commodore 128DCR - PAL (Swedish) */ |
| 443 | DRIVER( c128d81 ) /* Commodore 128D/81 */ |
| 444 | 444 | |
| 445 | | DRIVER( a500n ) /* Commodore Amiga 500 - NTSC */ |
| 446 | | DRIVER( a500p ) /* Commodore Amiga 500 - PAL */ |
| 447 | | DRIVER( a1000n ) /* Commodore Amiga 1000 - NTSC */ |
| 448 | | DRIVER( a1000p ) /* Commodore Amiga 1000 - PAL */ |
| 449 | | DRIVER( cdtv ) /* Commodore CDTV */ |
| 450 | | DRIVER( a1200n ) /* Commodore Amiga 1200 - NTSC */ |
| 451 | | DRIVER( a1200p ) /* Commodore Amiga 1200 - PAL */ |
| 452 | | DRIVER( cd32 ) /* Commodore Amiga CD32 */ |
| 445 | DRIVER( a500n ) /* Commodore Amiga 500 - NTSC */ |
| 446 | DRIVER( a500p ) /* Commodore Amiga 500 - PAL */ |
| 447 | DRIVER( a1000n ) /* Commodore Amiga 1000 - NTSC */ |
| 448 | DRIVER( a1000p ) /* Commodore Amiga 1000 - PAL */ |
| 449 | DRIVER( cdtv ) /* Commodore CDTV */ |
| 450 | DRIVER( a1200n ) /* Commodore Amiga 1200 - NTSC */ |
| 451 | DRIVER( a1200p ) /* Commodore Amiga 1200 - PAL */ |
| 452 | DRIVER( cd32 ) /* Commodore Amiga CD32 */ |
| 453 | 453 | |
| 454 | | DRIVER( c65 ) /* 1991 C65 / C64DX (Prototype, NTSC) */ |
| 455 | | DRIVER( c64dx ) /* 1991 C65 / C64DX (Prototype, German PAL) */ |
| 454 | DRIVER( c65 ) /* 1991 C65 / C64DX (Prototype, NTSC) */ |
| 455 | DRIVER( c64dx ) /* 1991 C65 / C64DX (Prototype, German PAL) */ |
| 456 | 456 | |
| 457 | | /* EPSON */ |
| 458 | | DRIVER( px4 ) /* 1985 Epson PX-4 */ |
| 459 | | DRIVER( px4p ) /* 1985 Epson PX-4+ */ |
| 460 | | DRIVER( px8 ) |
| 461 | | DRIVER( qx10 ) |
| 457 | /* EPSON */ |
| 458 | DRIVER( px4 ) /* 1985 Epson PX-4 */ |
| 459 | DRIVER( px4p ) /* 1985 Epson PX-4+ */ |
| 460 | DRIVER( px8 ) |
| 461 | DRIVER( qx10 ) |
| 462 | 462 | |
| 463 | | /* IBM PC & Clones */ |
| 464 | | DRIVER( ibm5150 ) /* 1981 IBM 5150 */ |
| 465 | | DRIVER( dgone ) /* 1984 Data General/One */ |
| 466 | | DRIVER( pcmda ) /* 1987 PC with MDA */ |
| 467 | | DRIVER( pcherc ) /* 1987 PC with Hercules (for testing hercules) */ |
| 468 | | DRIVER( pc ) /* 1987 PC with CGA */ |
| 469 | | DRIVER( bondwell ) /* 1985 Bondwell (CGA) */ |
| 470 | | DRIVER( europc ) /* 1988 Schneider Euro PC (CGA or Hercules) */ |
| 463 | /* IBM PC & Clones */ |
| 464 | DRIVER( ibm5150 ) /* 1981 IBM 5150 */ |
| 465 | DRIVER( dgone ) /* 1984 Data General/One */ |
| 466 | DRIVER( pcmda ) /* 1987 PC with MDA */ |
| 467 | DRIVER( pcherc ) /* 1987 PC with Hercules (for testing hercules) */ |
| 468 | DRIVER( pc ) /* 1987 PC with CGA */ |
| 469 | DRIVER( bondwell ) /* 1985 Bondwell (CGA) */ |
| 470 | DRIVER( europc ) /* 1988 Schneider Euro PC (CGA or Hercules) */ |
| 471 | 471 | |
| 472 | | /* pc junior */ |
| 473 | | DRIVER( ibmpcjr ) /* 1984 IBM PC Jr */ |
| 474 | | DRIVER( t1000hx ) /* 1987 Tandy 1000HX (similiar to PCJr) */ |
| 475 | | DRIVER( t1000sx ) /* 1987 Tandy 1000SX (similiar to PCJr) */ |
| 472 | /* pc junior */ |
| 473 | DRIVER( ibmpcjr ) /* 1984 IBM PC Jr */ |
| 474 | DRIVER( t1000hx ) /* 1987 Tandy 1000HX (similiar to PCJr) */ |
| 475 | DRIVER( t1000sx ) /* 1987 Tandy 1000SX (similiar to PCJr) */ |
| 476 | 476 | |
| 477 | | /* xt */ |
| 478 | | DRIVER( ibm5160 ) /* 1982 IBM XT 5160 */ |
| 479 | | DRIVER( ibm5162 ) /* 1986 IBM XT 5162 (XT w/80286) */ |
| 480 | | DRIVER( pc200 ) /* 1988 Sinclair PC200 */ |
| 481 | | DRIVER( pc20 ) /* 1988 Amstrad PC20 */ |
| 482 | | DRIVER( ppc512 ) /* 1987 Amstrad PPC512 */ |
| 483 | | DRIVER( ppc640 ) /* 1987 Amstrad PPC640 */ |
| 484 | | DRIVER( pc1512 ) /* 1986 Amstrad PC1512 v1 (CGA compatible) */ |
| 485 | | DRIVER( pc1512v2 ) /* 1986 Amstrad PC1512 v2 (CGA compatible) */ |
| 486 | | DRIVER( pc1640 ) /* 1987 Amstrad PC1640 (EGA compatible) */ |
| 477 | /* xt */ |
| 478 | DRIVER( ibm5160 ) /* 1982 IBM XT 5160 */ |
| 479 | DRIVER( ibm5162 ) /* 1986 IBM XT 5162 (XT w/80286) */ |
| 480 | DRIVER( pc200 ) /* 1988 Sinclair PC200 */ |
| 481 | DRIVER( pc20 ) /* 1988 Amstrad PC20 */ |
| 482 | DRIVER( ppc512 ) /* 1987 Amstrad PPC512 */ |
| 483 | DRIVER( ppc640 ) /* 1987 Amstrad PPC640 */ |
| 484 | DRIVER( pc1512 ) /* 1986 Amstrad PC1512 v1 (CGA compatible) */ |
| 485 | DRIVER( pc1512v2 ) /* 1986 Amstrad PC1512 v2 (CGA compatible) */ |
| 486 | DRIVER( pc1640 ) /* 1987 Amstrad PC1640 (EGA compatible) */ |
| 487 | 487 | |
| 488 | | DRIVER( xtvga ) /* 198? PC-XT (VGA, MF2 Keyboard) */ |
| 488 | DRIVER( xtvga ) /* 198? PC-XT (VGA, MF2 Keyboard) */ |
| 489 | 489 | |
| 490 | | /* at */ |
| 491 | | DRIVER( ibm5170 ) /* 1984 IBM PC/AT 5170, original 6 MHz model */ |
| 492 | | DRIVER( ibm5170a ) /* 1985 IBM PC/AT 5170, enhanced 8 MHz model */ |
| 493 | | DRIVER( i8530286 ) /* 1988 IBM PS2 Model 30 286 (VGA) */ |
| 494 | | DRIVER( at ) /* 1987 AMI Bios and Diagnostics */ |
| 495 | | DRIVER( atvga ) /* 19?? AT VGA */ |
| 496 | | DRIVER( neat ) /* 1989 New Enhanced AT chipset, AMI BIOS */ |
| 497 | | DRIVER( at386 ) /* 19?? IBM AT 386 */ |
| 498 | | DRIVER( at486 ) /* 19?? IBM AT 486 */ |
| 499 | | DRIVER( at586 ) /* 19?? AT 586 */ |
| 490 | /* at */ |
| 491 | DRIVER( ibm5170 ) /* 1984 IBM PC/AT 5170, original 6 MHz model */ |
| 492 | DRIVER( ibm5170a ) /* 1985 IBM PC/AT 5170, enhanced 8 MHz model */ |
| 493 | DRIVER( i8530286 ) /* 1988 IBM PS2 Model 30 286 (VGA) */ |
| 494 | DRIVER( at ) /* 1987 AMI Bios and Diagnostics */ |
| 495 | DRIVER( atvga ) /* 19?? AT VGA */ |
| 496 | DRIVER( neat ) /* 1989 New Enhanced AT chipset, AMI BIOS */ |
| 497 | DRIVER( at386 ) /* 19?? IBM AT 386 */ |
| 498 | DRIVER( at486 ) /* 19?? IBM AT 486 */ |
| 499 | DRIVER( at586 ) /* 19?? AT 586 */ |
| 500 | 500 | |
| 501 | | /* PALM */ |
| 502 | | DRIVER( pilot1k ) /* Pilot 1000 */ |
| 503 | | DRIVER( pilot5k ) /* Pilot 5000 */ |
| 504 | | DRIVER( palmpers ) /* Palm Pilot Personal */ |
| 505 | | DRIVER( palmpro ) /* Palm Pilot Professional */ |
| 506 | | DRIVER( palmiii ) /* Palm III */ |
| 507 | | DRIVER( palmiiic) /* Palm IIIc */ |
| 508 | | DRIVER( palmv ) /* Palm V */ |
| 509 | | DRIVER( palmvx ) /* Palm Vx */ |
| 510 | | DRIVER( palmm100 ) /* Palm m100 */ |
| 511 | | DRIVER( palmm130 ) /* Palm m130 */ |
| 512 | | DRIVER( palmm505 ) /* Palm m505 */ |
| 513 | | DRIVER( palmm515 ) /* Palm m515 */ |
| 514 | | DRIVER( visor ) /* Palm Visor Edge */ |
| 515 | | DRIVER( spt1500 ) /* Symbol SPT 1500 */ |
| 516 | | DRIVER( spt1700 ) /* Symbol SPT 1700 */ |
| 517 | | DRIVER( spt1740 ) /* Symbol SPT 1740 */ |
| 518 | | |
| 501 | /* PALM */ |
| 502 | DRIVER( pilot1k ) /* Pilot 1000 */ |
| 503 | DRIVER( pilot5k ) /* Pilot 5000 */ |
| 504 | DRIVER( palmpers ) /* Palm Pilot Personal */ |
| 505 | DRIVER( palmpro ) /* Palm Pilot Professional */ |
| 506 | DRIVER( palmiii ) /* Palm III */ |
| 507 | DRIVER( palmiiic) /* Palm IIIc */ |
| 508 | DRIVER( palmv ) /* Palm V */ |
| 509 | DRIVER( palmvx ) /* Palm Vx */ |
| 510 | DRIVER( palmm100 ) /* Palm m100 */ |
| 511 | DRIVER( palmm130 ) /* Palm m130 */ |
| 512 | DRIVER( palmm505 ) /* Palm m505 */ |
| 513 | DRIVER( palmm515 ) /* Palm m515 */ |
| 514 | DRIVER( visor ) /* Palm Visor Edge */ |
| 515 | DRIVER( spt1500 ) /* Symbol SPT 1500 */ |
| 516 | DRIVER( spt1700 ) /* Symbol SPT 1700 */ |
| 517 | DRIVER( spt1740 ) /* Symbol SPT 1740 */ |
| 519 | 518 | |
| 520 | | /* OSBORNE */ |
| 521 | | DRIVER( osborne1 ) /* 1981 Osborne-1 */ |
| 522 | 519 | |
| 523 | | /* SINCLAIR RESEARCH */ |
| 524 | | DRIVER( zx80 ) /* 1980 Sinclair ZX-80 */ |
| 525 | | DRIVER( zx81 ) /* 1981 Sinclair ZX-81 */ |
| 526 | | DRIVER( ts1000 ) /* 1982 Timex Sinclair 1000 */ |
| 527 | | DRIVER( ts1500 ) /* Timex Sinclair 1500 */ |
| 528 | | DRIVER( ringo470 ) /* Ringo 470 */ |
| 529 | | DRIVER( pc8300 ) /* Your Computer - PC8300 */ |
| 530 | | DRIVER( pow3000 ) /* Creon Enterprises - Power 3000 */ |
| 531 | | DRIVER( lambda ) /* Lambda 8300 */ |
| 532 | | DRIVER( tk85 ) /* Microdigital TK85 */ |
| 520 | /* OSBORNE */ |
| 521 | DRIVER( osborne1 ) /* 1981 Osborne-1 */ |
| 533 | 522 | |
| 534 | | DRIVER( spectrum )/* 1982 ZX Spectrum */ |
| 535 | | DRIVER( spec80k ) /* 1987 ZX Spectrum 80k */ |
| 536 | | DRIVER( specide ) /* 1995 ZX Spectrum IDE */ |
| 537 | | DRIVER( inves ) /* 1986 Inves Spectrum 48K+ */ |
| 538 | | DRIVER( tk90x ) /* 1985 TK90x Color Computer */ |
| 539 | | DRIVER( tk95 ) /* 1986 TK95 Color Computer */ |
| 540 | | DRIVER( tc2048 ) /* 198? TC2048 */ |
| 541 | | DRIVER( ts2068 ) /* 1983 TS2068 */ |
| 542 | | DRIVER( uk2086 ) /* 1986 UK2086 */ |
| 523 | /* SINCLAIR RESEARCH */ |
| 524 | DRIVER( zx80 ) /* 1980 Sinclair ZX-80 */ |
| 525 | DRIVER( zx81 ) /* 1981 Sinclair ZX-81 */ |
| 526 | DRIVER( ts1000 ) /* 1982 Timex Sinclair 1000 */ |
| 527 | DRIVER( ts1500 ) /* Timex Sinclair 1500 */ |
| 528 | DRIVER( ringo470 ) /* Ringo 470 */ |
| 529 | DRIVER( pc8300 ) /* Your Computer - PC8300 */ |
| 530 | DRIVER( pow3000 ) /* Creon Enterprises - Power 3000 */ |
| 531 | DRIVER( lambda ) /* Lambda 8300 */ |
| 532 | DRIVER( tk85 ) /* Microdigital TK85 */ |
| 543 | 533 | |
| 544 | | DRIVER( spec128 ) /* 1986 ZX Spectrum 128 */ |
| 545 | | DRIVER( specpls2 ) /* 1986 ZX Spectrum +2 */ |
| 546 | | DRIVER( specpl2a ) /* 1987 ZX Spectrum +2a */ |
| 547 | | DRIVER( specpls3 ) /* 1987 ZX Spectrum +3 */ |
| 548 | | DRIVER( specpl3e ) /* 2000 ZX Spectrum +3e */ |
| 549 | | DRIVER( sp3e8bit ) /* 2002 ZX Spectrum +3e 8bit IDE */ |
| 550 | | DRIVER( sp3ezcf ) /* 2002 ZX Spectrum +3e ZXCF */ |
| 551 | | DRIVER( sp3eata ) /* 2002 ZX Spectrum +3e ZXATASP */ |
| 552 | | DRIVER( scorpion ) |
| 553 | | DRIVER( pentagon ) |
| 534 | DRIVER( spectrum )/* 1982 ZX Spectrum */ |
| 535 | DRIVER( spec80k ) /* 1987 ZX Spectrum 80k */ |
| 536 | DRIVER( specide ) /* 1995 ZX Spectrum IDE */ |
| 537 | DRIVER( inves ) /* 1986 Inves Spectrum 48K+ */ |
| 538 | DRIVER( tk90x ) /* 1985 TK90x Color Computer */ |
| 539 | DRIVER( tk95 ) /* 1986 TK95 Color Computer */ |
| 540 | DRIVER( tc2048 ) /* 198? TC2048 */ |
| 541 | DRIVER( ts2068 ) /* 1983 TS2068 */ |
| 542 | DRIVER( uk2086 ) /* 1986 UK2086 */ |
| 554 | 543 | |
| 555 | | DRIVER( ql ) /* 1984 Sinclair QL (UK) */ |
| 556 | | DRIVER( ql_us ) /* 1984 Sinclair QL (USA) */ |
| 557 | | DRIVER( ql_es ) /* 1984 Sinclair QL (Spain) */ |
| 558 | | DRIVER( ql_fr ) /* 1984 Sinclair QL (France) */ |
| 559 | | DRIVER( ql_de ) /* 1984 Sinclair QL (Germany) */ |
| 560 | | DRIVER( ql_it ) /* 1984 Sinclair QL (Italy) */ |
| 561 | | DRIVER( ql_se ) /* 1984 Sinclair QL (Sweden) */ |
| 562 | | DRIVER( ql_dk ) /* 1984 Sinclair QL (Denmark) */ |
| 563 | | DRIVER( ql_gr ) /* 1984 Sinclair QL (Greece) */ |
| 564 | | // DRIVER( tonto ) |
| 565 | | // DRIVER( megaopd ) |
| 544 | DRIVER( spec128 ) /* 1986 ZX Spectrum 128 */ |
| 545 | DRIVER( specpls2 ) /* 1986 ZX Spectrum +2 */ |
| 546 | DRIVER( specpl2a ) /* 1987 ZX Spectrum +2a */ |
| 547 | DRIVER( specpls3 ) /* 1987 ZX Spectrum +3 */ |
| 548 | DRIVER( specpl3e ) /* 2000 ZX Spectrum +3e */ |
| 549 | DRIVER( sp3e8bit ) /* 2002 ZX Spectrum +3e 8bit IDE */ |
| 550 | DRIVER( sp3ezcf ) /* 2002 ZX Spectrum +3e ZXCF */ |
| 551 | DRIVER( sp3eata ) /* 2002 ZX Spectrum +3e ZXATASP */ |
| 552 | DRIVER( scorpion ) |
| 553 | DRIVER( pentagon ) |
| 566 | 554 | |
| 567 | | /* SHARP */ |
| 568 | | DRIVER( pc1245 ) /* Pocket Computer 1245 */ |
| 569 | | DRIVER( pc1250 ) /* Pocket Computer 1250 */ |
| 570 | | DRIVER( pc1251 ) /* Pocket Computer 1251 */ |
| 571 | | DRIVER( pc1255 ) /* Pocket Computer 1255 */ |
| 572 | | DRIVER( trs80pc3 ) /* Tandy TRS80 PC-3 */ |
| 573 | | DRIVER( pc1260 ) /* Pocket Computer 1260 */ |
| 574 | | DRIVER( pc1261 ) /* Pocket Computer 1261 */ |
| 575 | | DRIVER( pc1401 ) /* Pocket Computer 1401 */ |
| 576 | | DRIVER( pc1402 ) /* Pocket Computer 1402 */ |
| 577 | | DRIVER( pc1350 ) /* Pocket Computer 1350 */ |
| 578 | | DRIVER( pc1403 ) /* Pocket Computer 1403 */ |
| 579 | | DRIVER( pc1403h ) /* Pocket Computer 1403H */ |
| 555 | DRIVER( ql ) /* 1984 Sinclair QL (UK) */ |
| 556 | DRIVER( ql_us ) /* 1984 Sinclair QL (USA) */ |
| 557 | DRIVER( ql_es ) /* 1984 Sinclair QL (Spain) */ |
| 558 | DRIVER( ql_fr ) /* 1984 Sinclair QL (France) */ |
| 559 | DRIVER( ql_de ) /* 1984 Sinclair QL (Germany) */ |
| 560 | DRIVER( ql_it ) /* 1984 Sinclair QL (Italy) */ |
| 561 | DRIVER( ql_se ) /* 1984 Sinclair QL (Sweden) */ |
| 562 | DRIVER( ql_dk ) /* 1984 Sinclair QL (Denmark) */ |
| 563 | DRIVER( ql_gr ) /* 1984 Sinclair QL (Greece) */ |
| 564 | // DRIVER( tonto ) |
| 565 | // DRIVER( megaopd ) |
| 580 | 566 | |
| 581 | | DRIVER( mz700 ) /* 1982 Sharp MZ700 */ |
| 582 | | DRIVER( mz700j ) /* 1982 Sharp MZ700 Japan */ |
| 583 | | DRIVER( mz800 ) /* 1984 Sharp MZ800 */ |
| 584 | | DRIVER( mz1500 ) /* 1984 Sharp MZ1500 */ |
| 585 | | DRIVER( mz2500 ) /* 1985 Sharp MZ2500 */ |
| 567 | /* SHARP */ |
| 568 | DRIVER( pc1245 ) /* Pocket Computer 1245 */ |
| 569 | DRIVER( pc1250 ) /* Pocket Computer 1250 */ |
| 570 | DRIVER( pc1251 ) /* Pocket Computer 1251 */ |
| 571 | DRIVER( pc1255 ) /* Pocket Computer 1255 */ |
| 572 | DRIVER( trs80pc3 ) /* Tandy TRS80 PC-3 */ |
| 573 | DRIVER( pc1260 ) /* Pocket Computer 1260 */ |
| 574 | DRIVER( pc1261 ) /* Pocket Computer 1261 */ |
| 575 | DRIVER( pc1401 ) /* Pocket Computer 1401 */ |
| 576 | DRIVER( pc1402 ) /* Pocket Computer 1402 */ |
| 577 | DRIVER( pc1350 ) /* Pocket Computer 1350 */ |
| 578 | DRIVER( pc1403 ) /* Pocket Computer 1403 */ |
| 579 | DRIVER( pc1403h ) /* Pocket Computer 1403H */ |
| 586 | 580 | |
| 587 | | DRIVER( mz80kj ) /* 1979 Sharp MZ80K */ |
| 588 | | DRIVER( mz80k ) /* 1979 Sharp MZ80K */ |
| 589 | | DRIVER( mz80a ) /* 1982 Sharp MZ80A */ |
| 590 | | DRIVER( mz80b ) /* 1981 Sharp MZ80B */ |
| 581 | DRIVER( mz700 ) /* 1982 Sharp MZ700 */ |
| 582 | DRIVER( mz700j ) /* 1982 Sharp MZ700 Japan */ |
| 583 | DRIVER( mz800 ) /* 1984 Sharp MZ800 */ |
| 584 | DRIVER( mz1500 ) /* 1984 Sharp MZ1500 */ |
| 585 | DRIVER( mz2500 ) /* 1985 Sharp MZ2500 */ |
| 591 | 586 | |
| 592 | | DRIVER( x1 ) /* 1982 Sharp X1 */ |
| 593 | | DRIVER( x1ck ) /* 1984 Sharp X1Ck */ |
| 594 | | DRIVER( x1turbo ) /* 1984 Sharp X1 Turbo */ |
| 595 | | DRIVER( x1turboz ) /* 1986 Sharp X1 TurboZ */ |
| 587 | DRIVER( mz80kj ) /* 1979 Sharp MZ80K */ |
| 588 | DRIVER( mz80k ) /* 1979 Sharp MZ80K */ |
| 589 | DRIVER( mz80a ) /* 1982 Sharp MZ80A */ |
| 590 | DRIVER( mz80b ) /* 1981 Sharp MZ80B */ |
| 596 | 591 | |
| 597 | | DRIVER( x68000 ) /* Sharp X68000 (1987) */ |
| 592 | DRIVER( x1 ) /* 1982 Sharp X1 */ |
| 593 | DRIVER( x1ck ) /* 1984 Sharp X1Ck */ |
| 594 | DRIVER( x1turbo ) /* 1984 Sharp X1 Turbo */ |
| 595 | DRIVER( x1turboz ) /* 1986 Sharp X1 TurboZ */ |
| 598 | 596 | |
| 599 | | /* SILICON GRAPHICS */ |
| 600 | | DRIVER( ip204415 ) /* IP20 Indigo2 */ |
| 601 | | DRIVER( ip225015 ) |
| 602 | | DRIVER( ip224613 ) |
| 603 | | DRIVER( ip244415 ) |
| 597 | DRIVER( x68000 ) /* Sharp X68000 (1987) */ |
| 604 | 598 | |
| 605 | | /* TEXAS INSTRUMENTS */ |
| 606 | | DRIVER( ti990_10 ) /* 1975 TI 990/10 */ |
| 607 | | DRIVER( ti990_4 ) /* 1976 TI 990/4 */ |
| 608 | | DRIVER( 990189 ) /* 1978 TM 990/189 */ |
| 609 | | DRIVER( 990189v ) /* 1980 TM 990/189 with Color Video Board */ |
| 599 | /* SILICON GRAPHICS */ |
| 600 | DRIVER( ip204415 ) /* IP20 Indigo2 */ |
| 601 | DRIVER( ip225015 ) |
| 602 | DRIVER( ip224613 ) |
| 603 | DRIVER( ip244415 ) |
| 610 | 604 | |
| 611 | | DRIVER( ti99_224 ) /* 1983 TI 99/2 (24kb ROMs) */ |
| 612 | | DRIVER( ti99_232 ) /* 1983 TI 99/2 (32kb ROMs) */ |
| 613 | | DRIVER( ti99_4 ) /* 1979 TI-99/4 */ |
| 614 | | DRIVER( ti99_4e ) /* 1980 TI-99/4 with 50Hz video */ |
| 615 | | DRIVER( ti99_4a ) /* 1981 TI-99/4A */ |
| 616 | | DRIVER( ti99_4ae ) /* 1981 TI-99/4A with 50Hz video */ |
| 617 | | DRIVER( ti99_4ev) /* 1994 TI-99/4A with EVPC video card */ |
| 618 | | DRIVER( ti99_8 ) /* 1983 TI-99/8 */ |
| 619 | | DRIVER( ti99_8e ) /* 1983 TI-99/8 with 50Hz video */ |
| 605 | /* TEXAS INSTRUMENTS */ |
| 606 | DRIVER( ti990_10 ) /* 1975 TI 990/10 */ |
| 607 | DRIVER( ti990_4 ) /* 1976 TI 990/4 */ |
| 608 | DRIVER( 990189 ) /* 1978 TM 990/189 */ |
| 609 | DRIVER( 990189v ) /* 1980 TM 990/189 with Color Video Board */ |
| 620 | 610 | |
| 621 | | /* TI 99 clones */ |
| 622 | | DRIVER( tutor) /* 1983? Tomy Tutor */ |
| 623 | | DRIVER( geneve ) /* 1987? Myarc Geneve 9640 */ |
| 624 | | DRIVER( genmod ) /* 199?? Myarc Geneve 9640 */ |
| 625 | | DRIVER( ti99_4p ) /* 1996 SNUG 99/4P (a.k.a. SGCPU) */ |
| 611 | DRIVER( ti99_224 ) /* 1983 TI 99/2 (24kb ROMs) */ |
| 612 | DRIVER( ti99_232 ) /* 1983 TI 99/2 (32kb ROMs) */ |
| 613 | DRIVER( ti99_4 ) /* 1979 TI-99/4 */ |
| 614 | DRIVER( ti99_4e ) /* 1980 TI-99/4 with 50Hz video */ |
| 615 | DRIVER( ti99_4a ) /* 1981 TI-99/4A */ |
| 616 | DRIVER( ti99_4ae ) /* 1981 TI-99/4A with 50Hz video */ |
| 617 | DRIVER( ti99_4ev) /* 1994 TI-99/4A with EVPC video card */ |
| 618 | DRIVER( ti99_8 ) /* 1983 TI-99/8 */ |
| 619 | DRIVER( ti99_8e ) /* 1983 TI-99/8 with 50Hz video */ |
| 626 | 620 | |
| 627 | | DRIVER( avigo ) /* */ |
| 621 | /* TI 99 clones */ |
| 622 | DRIVER( tutor) /* 1983? Tomy Tutor */ |
| 623 | DRIVER( geneve ) /* 1987? Myarc Geneve 9640 */ |
| 624 | DRIVER( genmod ) /* 199?? Myarc Geneve 9640 */ |
| 625 | DRIVER( ti99_4p ) /* 1996 SNUG 99/4P (a.k.a. SGCPU) */ |
| 628 | 626 | |
| 629 | | /* TEXAS INSTRUMENTS CALCULATORS */ |
| 630 | | DRIVER( ti73 ) /* 1990 TI-73 */ |
| 631 | | DRIVER( ti81 ) /* 1990 TI-81 (Z80 2 MHz) */ |
| 632 | | DRIVER( ti85 ) /* 1992 TI-85 (Z80 6 MHz) */ |
| 633 | | DRIVER( ti82 ) /* 1993 TI-82 (Z80 6 MHz) */ |
| 634 | | DRIVER( ti83 ) /* 1996 TI-83 (Z80 6 MHz) */ |
| 635 | | DRIVER( ti86 ) /* 1997 TI-86 (Z80 6 MHz) */ |
| 636 | | DRIVER( ti83p ) /* 1999 TI-83 Plus (Z80 6 MHz) */ |
| 637 | | DRIVER( ti83pse ) /* 2001 TI-83 Plus Silver Edition */ |
| 638 | | // DRIVER( ti84p ) /* 2004 TI-84 Plus */ |
| 639 | | DRIVER( ti84pse ) /* 2004 TI-84 Plus Silver Edition */ |
| 640 | | DRIVER( ti89 ) /* 1998 TI-89 */ |
| 641 | | DRIVER( ti92 ) /* 1995 TI-92 */ |
| 642 | | DRIVER( ti92p ) /* 1999 TI-92 Plus */ |
| 627 | DRIVER( avigo ) /* */ |
| 643 | 628 | |
| 644 | | /* NEC */ |
| 629 | /* TEXAS INSTRUMENTS CALCULATORS */ |
| 630 | DRIVER( ti73 ) /* 1990 TI-73 */ |
| 631 | DRIVER( ti81 ) /* 1990 TI-81 (Z80 2 MHz) */ |
| 632 | DRIVER( ti85 ) /* 1992 TI-85 (Z80 6 MHz) */ |
| 633 | DRIVER( ti82 ) /* 1993 TI-82 (Z80 6 MHz) */ |
| 634 | DRIVER( ti83 ) /* 1996 TI-83 (Z80 6 MHz) */ |
| 635 | DRIVER( ti86 ) /* 1997 TI-86 (Z80 6 MHz) */ |
| 636 | DRIVER( ti83p ) /* 1999 TI-83 Plus (Z80 6 MHz) */ |
| 637 | DRIVER( ti83pse ) /* 2001 TI-83 Plus Silver Edition */ |
| 638 | // DRIVER( ti84p ) /* 2004 TI-84 Plus */ |
| 639 | DRIVER( ti84pse ) /* 2004 TI-84 Plus Silver Edition */ |
| 640 | DRIVER( ti89 ) /* 1998 TI-89 */ |
| 641 | DRIVER( ti92 ) /* 1995 TI-92 */ |
| 642 | DRIVER( ti92p ) /* 1999 TI-92 Plus */ |
| 643 | |
| 644 | /* NEC */ |
| 645 | 645 | DRIVER( pc6001 ) |
| 646 | | DRIVER( pc6001a ) |
| 647 | | DRIVER( pc6001m2 ) |
| 648 | | DRIVER( pc6001sr ) |
| 649 | | DRIVER( pc6600 ) |
| 650 | | DRIVER( pc6600sr ) |
| 651 | | DRIVER( pc8001 ) /* PC-8001 */ |
| 652 | | DRIVER( pc8001m2 ) /* PC-8001mkII */ |
| 653 | | DRIVER( pc8801 ) /* PC-8801 */ |
| 654 | | DRIVER( pc88m2 ) /* PC-8801mkII (Low res display, VSYNC 15 kHz) */ |
| 655 | | DRIVER( pc88m2sl ) /* PC-8801mkIISR (Low res display, VSYNC 15 kHz) */ |
| 656 | | DRIVER( pc88m2sh ) /* PC-8801mkIISR (High res display, VSYNC 24 kHz) */ |
| 657 | | DRIVER( pc88m2fr ) /* PC-8801mkIIFR (High res display, VSYNC 24 kHz) */ |
| 658 | | DRIVER( pc88m2mr ) /* PC-8801mkIIMR (High res display, VSYNC 24 kHz) */ |
| 659 | | DRIVER( pc8801mh ) /* PC-8801MH (High res display, VSYNC 24 kHz) */ |
| 660 | | DRIVER( pc8801fa ) /* PC-8801FA (High res display, VSYNC 24 kHz) */ |
| 661 | | DRIVER( pc8801ma ) /* PC-8801MA (High res display, VSYNC 24 kHz) */ |
| 662 | | DRIVER( pc8801ma2 ) /* PC-8801MA2 (High res display, VSYNC 24 kHz) */ |
| 663 | | DRIVER( pc8801mc ) /* PC-8801MC (High res display, VSYNC 24 kHz) */ |
| 664 | | DRIVER( pc88va ) /* PC-88 VA */ |
| 665 | | DRIVER( pc9801 ) /* PC-9801 */ |
| 666 | | DRIVER( pc9821 ) /* PC-9821 */ |
| 646 | DRIVER( pc6001a ) |
| 647 | DRIVER( pc6001m2 ) |
| 648 | DRIVER( pc6001sr ) |
| 649 | DRIVER( pc6600 ) |
| 650 | DRIVER( pc6600sr ) |
| 651 | DRIVER( pc8001 ) /* PC-8001 */ |
| 652 | DRIVER( pc8001m2 ) /* PC-8001mkII */ |
| 653 | DRIVER( pc8801 ) /* PC-8801 */ |
| 654 | DRIVER( pc88m2 ) /* PC-8801mkII (Low res display, VSYNC 15 kHz) */ |
| 655 | DRIVER( pc88m2sl ) /* PC-8801mkIISR (Low res display, VSYNC 15 kHz) */ |
| 656 | DRIVER( pc88m2sh ) /* PC-8801mkIISR (High res display, VSYNC 24 kHz) */ |
| 657 | DRIVER( pc88m2fr ) /* PC-8801mkIIFR (High res display, VSYNC 24 kHz) */ |
| 658 | DRIVER( pc88m2mr ) /* PC-8801mkIIMR (High res display, VSYNC 24 kHz) */ |
| 659 | DRIVER( pc8801mh ) /* PC-8801MH (High res display, VSYNC 24 kHz) */ |
| 660 | DRIVER( pc8801fa ) /* PC-8801FA (High res display, VSYNC 24 kHz) */ |
| 661 | DRIVER( pc8801ma ) /* PC-8801MA (High res display, VSYNC 24 kHz) */ |
| 662 | DRIVER( pc8801ma2 ) /* PC-8801MA2 (High res display, VSYNC 24 kHz) */ |
| 663 | DRIVER( pc8801mc ) /* PC-8801MC (High res display, VSYNC 24 kHz) */ |
| 664 | DRIVER( pc88va ) /* PC-88 VA */ |
| 665 | DRIVER( pc9801 ) /* PC-9801 */ |
| 666 | DRIVER( pc9821 ) /* PC-9821 */ |
| 667 | 667 | |
| 668 | | /* CANTAB */ |
| 669 | | DRIVER( jupiter ) /* Jupiter Ace */ |
| 668 | /* CANTAB */ |
| 669 | DRIVER( jupiter ) /* Jupiter Ace */ |
| 670 | 670 | |
| 671 | | /* SORD */ |
| 672 | | DRIVER( sordm5 ) |
| 673 | | DRIVER( srdm5fd5 ) |
| 671 | /* SORD */ |
| 672 | DRIVER( sordm5 ) |
| 673 | DRIVER( srdm5fd5 ) |
| 674 | 674 | |
| 675 | | /* APF Electronics Inc. */ |
| 676 | | DRIVER( apfm1000 ) |
| 677 | | DRIVER( apfimag ) |
| 675 | /* APF Electronics Inc. */ |
| 676 | DRIVER( apfm1000 ) |
| 677 | DRIVER( apfimag ) |
| 678 | 678 | |
| 679 | | /* Tatung */ |
| 680 | | DRIVER( einstein ) |
| 681 | | DRIVER( einstei2 ) |
| 679 | /* Tatung */ |
| 680 | DRIVER( einstein ) |
| 681 | DRIVER( einstei2 ) |
| 682 | 682 | |
| 683 | | /* INTELLIGENT SOFTWARE */ |
| 684 | | DRIVER( ep64 ) /* Enterprise 64 */ |
| 685 | | DRIVER( ep128 ) /* Enterprise 128 */ |
| 686 | | DRIVER( phc64 ) /* Hegener & Glaser Mephisto PHC 64 */ |
| 683 | /* INTELLIGENT SOFTWARE */ |
| 684 | DRIVER( ep64 ) /* Enterprise 64 */ |
| 685 | DRIVER( ep128 ) /* Enterprise 128 */ |
| 686 | DRIVER( phc64 ) /* Hegener & Glaser Mephisto PHC 64 */ |
| 687 | 687 | |
| 688 | | /* NON LINEAR SYSTEMS */ |
| 689 | | DRIVER( kaypro2x ) /* Kaypro 2 - 2/84 */ |
| 690 | | DRIVER( kayproii ) /* Kaypro II - 2/83 */ |
| 691 | | DRIVER( kaypro4 ) /* Kaypro 4 - 4/83 */ |
| 692 | | DRIVER( kaypro10 ) /* Kaypro 10 */ |
| 693 | | DRIVER( omni2 ) /* Omni II */ |
| 688 | /* NON LINEAR SYSTEMS */ |
| 689 | DRIVER( kaypro2x ) /* Kaypro 2 - 2/84 */ |
| 690 | DRIVER( kayproii ) /* Kaypro II - 2/83 */ |
| 691 | DRIVER( kaypro4 ) /* Kaypro 4 - 4/83 */ |
| 692 | DRIVER( kaypro10 ) /* Kaypro 10 */ |
| 693 | DRIVER( omni2 ) /* Omni II */ |
| 694 | 694 | |
| 695 | | /* VEB MIKROELEKTRONIK */ |
| 696 | | /* KC compact is partial CPC compatible */ |
| 697 | | DRIVER( kc85_4 ) /* VEB KC 85/4 */ |
| 698 | | DRIVER( kc85_3 ) /* VEB KC 85/3 */ |
| 699 | | DRIVER( kc85_4d ) /* VEB KC 85/4 with disk interface */ |
| 700 | | DRIVER( mc8020 ) /* MC 80.2x */ |
| 701 | | DRIVER( mc8030 ) /* MC 80.3x */ |
| 695 | /* VEB MIKROELEKTRONIK */ |
| 696 | /* KC compact is partial CPC compatible */ |
| 697 | DRIVER( kc85_4 ) /* VEB KC 85/4 */ |
| 698 | DRIVER( kc85_3 ) /* VEB KC 85/3 */ |
| 699 | DRIVER( kc85_4d ) /* VEB KC 85/4 with disk interface */ |
| 700 | DRIVER( mc8020 ) /* MC 80.2x */ |
| 701 | DRIVER( mc8030 ) /* MC 80.3x */ |
| 702 | 702 | |
| 703 | 703 | |
| 704 | | /* MICROBEE SYSTEMS */ |
| 705 | | DRIVER( mbee ) /* Microbee 16 Standard or Plus */ |
| 706 | | DRIVER( mbeeic ) /* Microbee 32 IC */ |
| 707 | | DRIVER( mbeepc ) /* Microbee 32 PC */ |
| 708 | | DRIVER( mbeepc85 ) /* Microbee 32 PC85 */ |
| 709 | | DRIVER( mbeeppc ) /* Microbee 32 PPC85 */ |
| 710 | | DRIVER( mbee56 ) /* Microbee 56K (CP/M) */ |
| 711 | | DRIVER( mbee64 ) /* Microbee 64K (CP/M) */ |
| 704 | /* MICROBEE SYSTEMS */ |
| 705 | DRIVER( mbee ) /* Microbee 16 Standard or Plus */ |
| 706 | DRIVER( mbeeic ) /* Microbee 32 IC */ |
| 707 | DRIVER( mbeepc ) /* Microbee 32 PC */ |
| 708 | DRIVER( mbeepc85 ) /* Microbee 32 PC85 */ |
| 709 | DRIVER( mbeeppc ) /* Microbee 32 PPC85 */ |
| 710 | DRIVER( mbee56 ) /* Microbee 56K (CP/M) */ |
| 711 | DRIVER( mbee64 ) /* Microbee 64K (CP/M) */ |
| 712 | 712 | |
| 713 | | /* TANDY RADIO SHACK */ |
| 714 | | DRIVER( trs80 ) /* TRS-80 Model I - Level I BASIC */ |
| 715 | | DRIVER( trs80l2 ) /* TRS-80 Model I - Level II BASIC */ |
| 716 | | DRIVER( sys80 ) /* EACA System 80 */ |
| 717 | | DRIVER( lnw80 ) /* LNW Research LNW-80 */ |
| 718 | | DRIVER( trs80m3 ) /* TRS-80 Model III - Radio Shack/Tandy */ |
| 719 | | DRIVER( trs80m4 ) |
| 720 | | DRIVER( trs80m4p ) |
| 721 | | DRIVER( ht1080z ) /* Hradstechnika Szvetkezet HT-1080Z */ |
| 722 | | DRIVER( ht1080z2 ) /* Hradstechnika Szvetkezet HT-1080Z Series II */ |
| 723 | | DRIVER( ht108064 ) /* Hradstechnika Szvetkezet HT-1080Z/64 */ |
| 724 | | DRIVER( radionic ) /* Radionic */ |
| 713 | /* TANDY RADIO SHACK */ |
| 714 | DRIVER( trs80 ) /* TRS-80 Model I - Level I BASIC */ |
| 715 | DRIVER( trs80l2 ) /* TRS-80 Model I - Level II BASIC */ |
| 716 | DRIVER( sys80 ) /* EACA System 80 */ |
| 717 | DRIVER( lnw80 ) /* LNW Research LNW-80 */ |
| 718 | DRIVER( trs80m3 ) /* TRS-80 Model III - Radio Shack/Tandy */ |
| 719 | DRIVER( trs80m4 ) |
| 720 | DRIVER( trs80m4p ) |
| 721 | DRIVER( ht1080z ) /* Hradstechnika Szvetkezet HT-1080Z */ |
| 722 | DRIVER( ht1080z2 ) /* Hradstechnika Szvetkezet HT-1080Z Series II */ |
| 723 | DRIVER( ht108064 ) /* Hradstechnika Szvetkezet HT-1080Z/64 */ |
| 724 | DRIVER( radionic ) /* Radionic */ |
| 725 | 725 | |
| 726 | | DRIVER( coco ) /* Color Computer */ |
| 727 | | DRIVER( cocoe ) /* Color Computer (Extended BASIC 1.0) */ |
| 728 | | DRIVER( coco2 ) /* Color Computer 2 */ |
| 729 | | DRIVER( coco2b ) /* Color Computer 2B (uses M6847T1 video chip) */ |
| 730 | | DRIVER( coco3 ) /* Color Computer 3 (NTSC) */ |
| 731 | | DRIVER( coco3p ) /* Color Computer 3 (PAL) */ |
| 732 | | DRIVER( coco3h ) /* Hacked Color Computer 3 (6309) */ |
| 733 | | DRIVER( dragon32 ) /* Dragon 32 */ |
| 734 | | DRIVER( dragon64 ) /* Dragon 64 */ |
| 735 | | DRIVER( d64plus ) /* Dragon 64 + Compusense Plus addon */ |
| 736 | | DRIVER( dgnalpha ) /* Dragon Alpha */ |
| 737 | | DRIVER( dgnbeta ) /* Dragon Beta */ |
| 738 | | DRIVER( tanodr64 ) /* Tano Dragon 64 (NTSC) */ |
| 739 | | DRIVER( cp400 ) /* Prologica CP400 */ |
| 740 | | DRIVER( mc10 ) /* MC-10 */ |
| 741 | | DRIVER( alice ) /* Matra & Hachette Ordinateur Alice */ |
| 726 | DRIVER( coco ) /* Color Computer */ |
| 727 | DRIVER( cocoe ) /* Color Computer (Extended BASIC 1.0) */ |
| 728 | DRIVER( coco2 ) /* Color Computer 2 */ |
| 729 | DRIVER( coco2b ) /* Color Computer 2B (uses M6847T1 video chip) */ |
| 730 | DRIVER( coco3 ) /* Color Computer 3 (NTSC) */ |
| 731 | DRIVER( coco3p ) /* Color Computer 3 (PAL) */ |
| 732 | DRIVER( coco3h ) /* Hacked Color Computer 3 (6309) */ |
| 733 | DRIVER( dragon32 ) /* Dragon 32 */ |
| 734 | DRIVER( dragon64 ) /* Dragon 64 */ |
| 735 | DRIVER( d64plus ) /* Dragon 64 + Compusense Plus addon */ |
| 736 | DRIVER( dgnalpha ) /* Dragon Alpha */ |
| 737 | DRIVER( dgnbeta ) /* Dragon Beta */ |
| 738 | DRIVER( tanodr64 ) /* Tano Dragon 64 (NTSC) */ |
| 739 | DRIVER( cp400 ) /* Prologica CP400 */ |
| 740 | DRIVER( mc10 ) /* MC-10 */ |
| 741 | DRIVER( alice ) /* Matra & Hachette Ordinateur Alice */ |
| 742 | 742 | |
| 743 | | /* EACA */ |
| 744 | | DRIVER( cgenie ) /* Colour Genie EG2000 */ |
| 745 | | /* system 80 trs80 compatible */ |
| 743 | /* EACA */ |
| 744 | DRIVER( cgenie ) /* Colour Genie EG2000 */ |
| 745 | /* system 80 trs80 compatible */ |
| 746 | 746 | |
| 747 | | /* VIDEO TECHNOLOGY */ |
| 748 | | DRIVER( crvision ) /* 1981 creatiVision */ |
| 749 | | DRIVER( fnvision ) /* 1983 FunVision */ |
| 750 | | DRIVER( crvisioj ) |
| 751 | | DRIVER( wizzard ) |
| 752 | | DRIVER( rameses ) |
| 753 | | DRIVER( vz2000 ) |
| 754 | | DRIVER( crvisio2 ) |
| 755 | | DRIVER( laser110 ) /* 1983 Laser 110 */ |
| 756 | | DRIVER( las110de ) /* 1983 Sanyo Laser 110 (Germany) */ |
| 757 | | DRIVER( laser200 ) /* 1983 Laser 200 (color version of 110) */ |
| 758 | | // DRIVER( vz200de ) /* 1983 VZ-200 (Germany) */ |
| 759 | | DRIVER( fellow ) /* 1983 Salora Fellow (Finland) */ |
| 760 | | DRIVER( tx8000 ) /* 1983 Texet TX-8000 (U.K.) */ |
| 761 | | DRIVER( laser210 ) /* 1984 Laser 210 (200 with more memory) */ |
| 762 | | DRIVER( las210de ) /* 1984 Sanyo Laser 210 (Germany) */ |
| 763 | | DRIVER( vz200 ) /* 1984 Dick Smith Electronics VZ-200 */ |
| 764 | | DRIVER( laser310 ) /* 1984 Laser 310 (210 with diff. keyboard and RAM) */ |
| 765 | | DRIVER( vz300 ) /* 1984 Dick Smith Electronics VZ-300 */ |
| 766 | | DRIVER( laser350 ) /* 1984? Laser 350 */ |
| 767 | | DRIVER( laser500 ) /* 1984? Laser 500 */ |
| 768 | | DRIVER( laser700 ) /* 1984? Laser 700 */ |
| 769 | | DRIVER( socrates ) /* 1988 Socrates Educational Video System */ |
| 770 | | DRIVER( socratfc ) /* 1988 Socrates SAITOUT */ |
| 747 | /* VIDEO TECHNOLOGY */ |
| 748 | DRIVER( crvision ) /* 1981 creatiVision */ |
| 749 | DRIVER( fnvision ) /* 1983 FunVision */ |
| 750 | DRIVER( crvisioj ) |
| 751 | DRIVER( wizzard ) |
| 752 | DRIVER( rameses ) |
| 753 | DRIVER( vz2000 ) |
| 754 | DRIVER( crvisio2 ) |
| 755 | DRIVER( laser110 ) /* 1983 Laser 110 */ |
| 756 | DRIVER( las110de ) /* 1983 Sanyo Laser 110 (Germany) */ |
| 757 | DRIVER( laser200 ) /* 1983 Laser 200 (color version of 110) */ |
| 758 | // DRIVER( vz200de ) /* 1983 VZ-200 (Germany) */ |
| 759 | DRIVER( fellow ) /* 1983 Salora Fellow (Finland) */ |
| 760 | DRIVER( tx8000 ) /* 1983 Texet TX-8000 (U.K.) */ |
| 761 | DRIVER( laser210 ) /* 1984 Laser 210 (200 with more memory) */ |
| 762 | DRIVER( las210de ) /* 1984 Sanyo Laser 210 (Germany) */ |
| 763 | DRIVER( vz200 ) /* 1984 Dick Smith Electronics VZ-200 */ |
| 764 | DRIVER( laser310 ) /* 1984 Laser 310 (210 with diff. keyboard and RAM) */ |
| 765 | DRIVER( vz300 ) /* 1984 Dick Smith Electronics VZ-300 */ |
| 766 | DRIVER( laser350 ) /* 1984? Laser 350 */ |
| 767 | DRIVER( laser500 ) /* 1984? Laser 500 */ |
| 768 | DRIVER( laser700 ) /* 1984? Laser 700 */ |
| 769 | DRIVER( socrates ) /* 1988 Socrates Educational Video System */ |
| 770 | DRIVER( socratfc ) /* 1988 Socrates SAITOUT */ |
| 771 | 771 | |
| 772 | | /* TANGERINE */ |
| 773 | | DRIVER( microtan ) /* 1979 Microtan 65 */ |
| 772 | /* TANGERINE */ |
| 773 | DRIVER( microtan ) /* 1979 Microtan 65 */ |
| 774 | 774 | |
| 775 | | DRIVER( oric1 ) /* 1983 Oric 1 */ |
| 776 | | DRIVER( orica ) /* 1984 Oric Atmos */ |
| 777 | | DRIVER( prav8d ) /* 1985 Pravetz 8D */ |
| 778 | | DRIVER( prav8dd ) /* 1989 Pravetz 8D (Disk ROM) */ |
| 779 | | DRIVER( telstrat ) /* ??? Oric Telestrat/Stratos */ |
| 775 | DRIVER( oric1 ) /* 1983 Oric 1 */ |
| 776 | DRIVER( orica ) /* 1984 Oric Atmos */ |
| 777 | DRIVER( prav8d ) /* 1985 Pravetz 8D */ |
| 778 | DRIVER( prav8dd ) /* 1989 Pravetz 8D (Disk ROM) */ |
| 779 | DRIVER( telstrat ) /* ??? Oric Telestrat/Stratos */ |
| 780 | 780 | |
| 781 | | /* PHILIPS */ |
| 782 | | DRIVER( p2000t ) /* 1980 P2000T */ |
| 783 | | DRIVER( p2000m ) /* 1980 P2000M */ |
| 784 | | DRIVER( videopac ) /* 1979 Videopac G7000/C52 */ |
| 785 | | DRIVER( g7400 ) /* 1983 Videopac Plus G7400 */ |
| 786 | | DRIVER( vg5k ) /* 1984 VG-5000 */ |
| 781 | /* PHILIPS */ |
| 782 | DRIVER( p2000t ) /* 1980 P2000T */ |
| 783 | DRIVER( p2000m ) /* 1980 P2000M */ |
| 784 | DRIVER( videopac ) /* 1979 Videopac G7000/C52 */ |
| 785 | DRIVER( g7400 ) /* 1983 Videopac Plus G7400 */ |
| 786 | DRIVER( vg5k ) /* 1984 VG-5000 */ |
| 787 | 787 | |
| 788 | | /* COMPUKIT */ |
| 789 | | DRIVER( uk101 ) |
| 788 | /* COMPUKIT */ |
| 789 | DRIVER( uk101 ) |
| 790 | 790 | |
| 791 | | /* OHIO SCIENTIFIC */ |
| 792 | | DRIVER( sb2m600b ) |
| 793 | | DRIVER( c1p ) |
| 794 | | DRIVER( c1pmf ) |
| 791 | /* OHIO SCIENTIFIC */ |
| 792 | DRIVER( sb2m600b ) |
| 793 | DRIVER( c1p ) |
| 794 | DRIVER( c1pmf ) |
| 795 | 795 | |
| 796 | | /* ASCII & MICROSOFT */ |
| 797 | | DRIVER( msx ) /* 1983 MSX */ |
| 798 | | DRIVER( ax170 ) |
| 799 | | DRIVER( canonv10 ) |
| 800 | | DRIVER( canonv20 ) |
| 801 | | DRIVER( dpc100 ) /* 1984 MSX Korea */ |
| 802 | | DRIVER( dpc180 ) /* 1984 MSX Korea */ |
| 803 | | DRIVER( dpc200 ) /* 1984 MSX Korea */ |
| 804 | | DRIVER( gsfc200 ) |
| 805 | | DRIVER( expert10 ) /* 1983 MSX Brazil */ |
| 806 | | DRIVER( expert11 ) /* 1984 MSX Brazil */ |
| 807 | | DRIVER( expert13 ) /* 1984 MSX Brazil */ |
| 808 | | DRIVER( expertdp ) /* 1985 MSX Brazil */ |
| 809 | | DRIVER( expertpl ) /* 1984 MSX Brazil */ |
| 810 | | DRIVER( jvchc7gb ) |
| 811 | | DRIVER( mlf80 ) |
| 812 | | DRIVER( mlfx1 ) |
| 813 | | DRIVER( cf1200 ) /* 1984 MSX Japan */ |
| 814 | | DRIVER( cf2000 ) /* 1983 MSX Japan */ |
| 815 | | DRIVER( cf2700 ) /* 1984 MSX Japan */ |
| 816 | | DRIVER( cf3000 ) /* 1984 MSX Japan */ |
| 817 | | DRIVER( cf3300 ) /* 1985 MSX Japan */ |
| 818 | | DRIVER( fs1300 ) /* 1985 MSX Japan */ |
| 819 | | DRIVER( fs4000 ) /* 1985 MSX Japan */ |
| 820 | | DRIVER( nms801 ) |
| 821 | | DRIVER( vg8000 ) |
| 822 | | DRIVER( vg8010 ) |
| 823 | | DRIVER( vg8010f ) |
| 824 | | DRIVER( vg802000 ) |
| 825 | | DRIVER( vg802020 ) /* 1985 MSX */ |
| 826 | | DRIVER( piopx7 ) |
| 827 | | DRIVER( mpc100 ) |
| 828 | | DRIVER( hotbit11 ) /* 1985 MSX Brazil */ |
| 829 | | DRIVER( hotbit12 ) /* 1985 MSX Brazil */ |
| 830 | | DRIVER( hotbi13b ) /* 1985 MSX Brazil */ |
| 831 | | DRIVER( hotbi13p ) /* 1985 MSX Brazil */ |
| 832 | | DRIVER( hotbit20 ) /* 1986 MSX2 Brazil */ |
| 833 | | DRIVER( hb10p ) |
| 834 | | DRIVER( hb20p ) |
| 835 | | DRIVER( hb201 ) /* 1985 MSX Japan */ |
| 836 | | DRIVER( hb201p ) /* 1985 MSX */ |
| 837 | | DRIVER( hb501p ) /* 1984 MSX */ |
| 838 | | DRIVER( hb55d ) /* 1983 MSX Germany */ |
| 839 | | DRIVER( hb55p ) /* 1983 MSX */ |
| 840 | | DRIVER( hb75d ) /* 1983 MSX Germany */ |
| 841 | | DRIVER( hb75p ) /* 1983 MSX */ |
| 842 | | DRIVER( svi728 ) /* 1985 MSX */ |
| 843 | | DRIVER( svi738 ) /* 1985 MSX */ |
| 844 | | DRIVER( svi738sw ) /* 1985 MSX */ |
| 845 | | DRIVER( tadpc200 ) |
| 846 | | DRIVER( tadpc20a ) |
| 847 | | DRIVER( hx10 ) /* 1984 MSX */ |
| 848 | | DRIVER( hx10s ) /* 1984 MSX */ |
| 849 | | DRIVER( hx20 ) /* 1984 MSX */ |
| 850 | | DRIVER( cx5m ) |
| 851 | | DRIVER( cx5m128 ) |
| 852 | | DRIVER( cx5m2 ) |
| 853 | | DRIVER( yis303 ) |
| 854 | | DRIVER( yis503 ) |
| 855 | | DRIVER( yis503ii ) |
| 856 | | DRIVER( y503iir ) |
| 857 | | DRIVER( y503iir2 ) |
| 858 | | DRIVER( yis503m ) |
| 859 | | DRIVER( yc64 ) |
| 860 | | DRIVER( bruc100 ) |
| 796 | /* ASCII & MICROSOFT */ |
| 797 | DRIVER( msx ) /* 1983 MSX */ |
| 798 | DRIVER( ax170 ) |
| 799 | DRIVER( canonv10 ) |
| 800 | DRIVER( canonv20 ) |
| 801 | DRIVER( dpc100 ) /* 1984 MSX Korea */ |
| 802 | DRIVER( dpc180 ) /* 1984 MSX Korea */ |
| 803 | DRIVER( dpc200 ) /* 1984 MSX Korea */ |
| 804 | DRIVER( gsfc200 ) |
| 805 | DRIVER( expert10 ) /* 1983 MSX Brazil */ |
| 806 | DRIVER( expert11 ) /* 1984 MSX Brazil */ |
| 807 | DRIVER( expert13 ) /* 1984 MSX Brazil */ |
| 808 | DRIVER( expertdp ) /* 1985 MSX Brazil */ |
| 809 | DRIVER( expertpl ) /* 1984 MSX Brazil */ |
| 810 | DRIVER( jvchc7gb ) |
| 811 | DRIVER( mlf80 ) |
| 812 | DRIVER( mlfx1 ) |
| 813 | DRIVER( cf1200 ) /* 1984 MSX Japan */ |
| 814 | DRIVER( cf2000 ) /* 1983 MSX Japan */ |
| 815 | DRIVER( cf2700 ) /* 1984 MSX Japan */ |
| 816 | DRIVER( cf3000 ) /* 1984 MSX Japan */ |
| 817 | DRIVER( cf3300 ) /* 1985 MSX Japan */ |
| 818 | DRIVER( fs1300 ) /* 1985 MSX Japan */ |
| 819 | DRIVER( fs4000 ) /* 1985 MSX Japan */ |
| 820 | DRIVER( nms801 ) |
| 821 | DRIVER( vg8000 ) |
| 822 | DRIVER( vg8010 ) |
| 823 | DRIVER( vg8010f ) |
| 824 | DRIVER( vg802000 ) |
| 825 | DRIVER( vg802020 ) /* 1985 MSX */ |
| 826 | DRIVER( piopx7 ) |
| 827 | DRIVER( mpc100 ) |
| 828 | DRIVER( hotbit11 ) /* 1985 MSX Brazil */ |
| 829 | DRIVER( hotbit12 ) /* 1985 MSX Brazil */ |
| 830 | DRIVER( hotbi13b ) /* 1985 MSX Brazil */ |
| 831 | DRIVER( hotbi13p ) /* 1985 MSX Brazil */ |
| 832 | DRIVER( hotbit20 ) /* 1986 MSX2 Brazil */ |
| 833 | DRIVER( hb10p ) |
| 834 | DRIVER( hb20p ) |
| 835 | DRIVER( hb201 ) /* 1985 MSX Japan */ |
| 836 | DRIVER( hb201p ) /* 1985 MSX */ |
| 837 | DRIVER( hb501p ) /* 1984 MSX */ |
| 838 | DRIVER( hb55d ) /* 1983 MSX Germany */ |
| 839 | DRIVER( hb55p ) /* 1983 MSX */ |
| 840 | DRIVER( hb75d ) /* 1983 MSX Germany */ |
| 841 | DRIVER( hb75p ) /* 1983 MSX */ |
| 842 | DRIVER( svi728 ) /* 1985 MSX */ |
| 843 | DRIVER( svi738 ) /* 1985 MSX */ |
| 844 | DRIVER( svi738sw ) /* 1985 MSX */ |
| 845 | DRIVER( tadpc200 ) |
| 846 | DRIVER( tadpc20a ) |
| 847 | DRIVER( hx10 ) /* 1984 MSX */ |
| 848 | DRIVER( hx10s ) /* 1984 MSX */ |
| 849 | DRIVER( hx20 ) /* 1984 MSX */ |
| 850 | DRIVER( cx5m ) |
| 851 | DRIVER( cx5m128 ) |
| 852 | DRIVER( cx5m2 ) |
| 853 | DRIVER( yis303 ) |
| 854 | DRIVER( yis503 ) |
| 855 | DRIVER( yis503ii ) |
| 856 | DRIVER( y503iir ) |
| 857 | DRIVER( y503iir2 ) |
| 858 | DRIVER( yis503m ) |
| 859 | DRIVER( yc64 ) |
| 860 | DRIVER( bruc100 ) |
| 861 | 861 | |
| 862 | 862 | |
| 863 | | DRIVER( msx2 ) /* 1985 MSX2 */ |
| 864 | | DRIVER( ax350 ) |
| 865 | | DRIVER( ax370 ) |
| 866 | | DRIVER( hbf9p ) /* 1985 MSX2 */ |
| 867 | | DRIVER( hbf9s ) /* 1985 MSX2 */ |
| 868 | | DRIVER( hbf500p ) /* 1985 MSX2 */ |
| 869 | | DRIVER( hbf700d ) /* 1985 MSX2 Germany */ |
| 870 | | DRIVER( hbf700f ) /* 1985 MSX2 */ |
| 871 | | DRIVER( hbf700p ) /* 1985 MSX2 */ |
| 872 | | DRIVER( hbf700s ) /* 1985 MSX2 Spain */ |
| 873 | | DRIVER( hbg900ap ) /* 1986 MSX2 */ |
| 874 | | DRIVER( hbg900p ) /* 1986 MSX2 */ |
| 875 | | DRIVER( nms8220 ) /* 1986 MSX2 */ |
| 876 | | DRIVER( nms8220a ) /* 1986 MSX2 */ |
| 877 | | DRIVER( vg8230 ) /* 1986 MSX2 */ |
| 878 | | DRIVER( vg8235 ) /* 1986 MSX2 */ |
| 879 | | DRIVER( vg8235f) /* 1986 MSX2 */ |
| 880 | | DRIVER( vg8240) /* 1986 MSX2 */ |
| 881 | | DRIVER( nms8245 ) /* 1986 MSX2 */ |
| 882 | | DRIVER( nms8245f) /* 1986 MSX2 */ |
| 883 | | DRIVER( nms8250 ) /* 1986 MSX2 */ |
| 884 | | DRIVER( nms8255 ) /* 1986 MSX2 */ |
| 885 | | DRIVER( nms8280 ) /* 1986 MSX2 */ |
| 886 | | DRIVER( nms8280g) /* 1986 MSX2 */ |
| 887 | | DRIVER( tpc310) /* 1986 MSX2 */ |
| 888 | | DRIVER( hx23) /* 1986 MSX2 */ |
| 889 | | DRIVER( hx23f) /* 1986 MSX2 */ |
| 890 | | DRIVER( cx7m) /* 1986 MSX2 */ |
| 891 | | DRIVER( cx7m128) /* 1986 MSX2 */ |
| 892 | | DRIVER( fs5500 ) /* 1985 MSX2 Japan */ |
| 893 | | DRIVER( fs4500 ) /* 1986 MSX2 Japan */ |
| 894 | | DRIVER( fs4700 ) /* 1986 MSX2 Japan */ |
| 895 | | DRIVER( fs5000 ) /* 1986 MSX2 Japan */ |
| 896 | | DRIVER( fs4600 ) /* 1986 MSX2 Japan */ |
| 897 | | DRIVER( fsa1 ) /* 1986 MSX2 Japan */ |
| 898 | | DRIVER( fsa1a ) /* 1986 MSX2 Japan */ |
| 899 | | DRIVER( fsa1mk2 ) /* 1987 MSX2 Japan */ |
| 900 | | DRIVER( fsa1f ) /* 1987 MSX2 Japan */ |
| 901 | | DRIVER( fsa1fm ) /* 1988 MSX2 Japan */ |
| 902 | | DRIVER( hbf500 ) /* 1986 MSX2 Japan */ |
| 903 | | DRIVER( hbf900 ) /* 1986 MSX2 Japan */ |
| 904 | | DRIVER( hbf900a ) /* 1986 MSX2 Japan */ |
| 905 | | DRIVER( hbf1 ) /* 1986 MSX2 Japan */ |
| 906 | | DRIVER( hbf12 ) /* 1987 MSX2 Japan */ |
| 907 | | DRIVER( hbf1xd ) /* 1987 MSX2 Japan */ |
| 908 | | DRIVER( hbf1xdm2 ) /* 1988 MSX2 Japan */ |
| 909 | | DRIVER( phc23 ) /* 1986 MSX2 Japan */ |
| 910 | | DRIVER( cpc300 ) /* 1986 MSX2 Korea */ |
| 911 | | DRIVER( cpc300e ) /* 1986 MSX2 Korea */ |
| 912 | | DRIVER( cpc400 ) /* 1986 MSX2 Korea */ |
| 913 | | DRIVER( cpc400s ) /* 1986 MSX2 Korea */ |
| 914 | | DRIVER( expert20 )/* 1986 MSX2 Korea */ |
| 863 | DRIVER( msx2 ) /* 1985 MSX2 */ |
| 864 | DRIVER( ax350 ) |
| 865 | DRIVER( ax370 ) |
| 866 | DRIVER( hbf9p ) /* 1985 MSX2 */ |
| 867 | DRIVER( hbf9s ) /* 1985 MSX2 */ |
| 868 | DRIVER( hbf500p ) /* 1985 MSX2 */ |
| 869 | DRIVER( hbf700d ) /* 1985 MSX2 Germany */ |
| 870 | DRIVER( hbf700f ) /* 1985 MSX2 */ |
| 871 | DRIVER( hbf700p ) /* 1985 MSX2 */ |
| 872 | DRIVER( hbf700s ) /* 1985 MSX2 Spain */ |
| 873 | DRIVER( hbg900ap ) /* 1986 MSX2 */ |
| 874 | DRIVER( hbg900p ) /* 1986 MSX2 */ |
| 875 | DRIVER( nms8220 ) /* 1986 MSX2 */ |
| 876 | DRIVER( nms8220a ) /* 1986 MSX2 */ |
| 877 | DRIVER( vg8230 ) /* 1986 MSX2 */ |
| 878 | DRIVER( vg8235 ) /* 1986 MSX2 */ |
| 879 | DRIVER( vg8235f) /* 1986 MSX2 */ |
| 880 | DRIVER( vg8240) /* 1986 MSX2 */ |
| 881 | DRIVER( nms8245 ) /* 1986 MSX2 */ |
| 882 | DRIVER( nms8245f) /* 1986 MSX2 */ |
| 883 | DRIVER( nms8250 ) /* 1986 MSX2 */ |
| 884 | DRIVER( nms8255 ) /* 1986 MSX2 */ |
| 885 | DRIVER( nms8280 ) /* 1986 MSX2 */ |
| 886 | DRIVER( nms8280g) /* 1986 MSX2 */ |
| 887 | DRIVER( tpc310) /* 1986 MSX2 */ |
| 888 | DRIVER( hx23) /* 1986 MSX2 */ |
| 889 | DRIVER( hx23f) /* 1986 MSX2 */ |
| 890 | DRIVER( cx7m) /* 1986 MSX2 */ |
| 891 | DRIVER( cx7m128) /* 1986 MSX2 */ |
| 892 | DRIVER( fs5500 ) /* 1985 MSX2 Japan */ |
| 893 | DRIVER( fs4500 ) /* 1986 MSX2 Japan */ |
| 894 | DRIVER( fs4700 ) /* 1986 MSX2 Japan */ |
| 895 | DRIVER( fs5000 ) /* 1986 MSX2 Japan */ |
| 896 | DRIVER( fs4600 ) /* 1986 MSX2 Japan */ |
| 897 | DRIVER( fsa1 ) /* 1986 MSX2 Japan */ |
| 898 | DRIVER( fsa1a ) /* 1986 MSX2 Japan */ |
| 899 | DRIVER( fsa1mk2 ) /* 1987 MSX2 Japan */ |
| 900 | DRIVER( fsa1f ) /* 1987 MSX2 Japan */ |
| 901 | DRIVER( fsa1fm ) /* 1988 MSX2 Japan */ |
| 902 | DRIVER( hbf500 ) /* 1986 MSX2 Japan */ |
| 903 | DRIVER( hbf900 ) /* 1986 MSX2 Japan */ |
| 904 | DRIVER( hbf900a ) /* 1986 MSX2 Japan */ |
| 905 | DRIVER( hbf1 ) /* 1986 MSX2 Japan */ |
| 906 | DRIVER( hbf12 ) /* 1987 MSX2 Japan */ |
| 907 | DRIVER( hbf1xd ) /* 1987 MSX2 Japan */ |
| 908 | DRIVER( hbf1xdm2 ) /* 1988 MSX2 Japan */ |
| 909 | DRIVER( phc23 ) /* 1986 MSX2 Japan */ |
| 910 | DRIVER( cpc300 ) /* 1986 MSX2 Korea */ |
| 911 | DRIVER( cpc300e ) /* 1986 MSX2 Korea */ |
| 912 | DRIVER( cpc400 ) /* 1986 MSX2 Korea */ |
| 913 | DRIVER( cpc400s ) /* 1986 MSX2 Korea */ |
| 914 | DRIVER( expert20 )/* 1986 MSX2 Korea */ |
| 915 | 915 | |
| 916 | | DRIVER( msx2p ) /* 1988 MSX2+ Japan */ |
| 917 | | DRIVER( fsa1fx ) /* 1988 MSX2+ Japan */ |
| 918 | | DRIVER( fsa1wx ) /* 1988 MSX2+ Japan */ |
| 919 | | DRIVER( fsa1wxa ) /* 1988 MSX2+ Japan */ |
| 920 | | DRIVER( fsa1wsx ) /* 1989 MSX2+ Japan */ |
| 921 | | DRIVER( hbf1xdj ) /* 1988 MSX2+ Japan */ |
| 922 | | DRIVER( hbf1xv ) /* 1989 MSX2+ Japan */ |
| 923 | | DRIVER( phc70fd ) /* 1988 MSX2+ Japan */ |
| 924 | | DRIVER( phc70fd2 ) /* 1988 MSX2+ Japan */ |
| 925 | | DRIVER( phc35j ) /* 1989 MSX2+ Japan */ |
| 916 | DRIVER( msx2p ) /* 1988 MSX2+ Japan */ |
| 917 | DRIVER( fsa1fx ) /* 1988 MSX2+ Japan */ |
| 918 | DRIVER( fsa1wx ) /* 1988 MSX2+ Japan */ |
| 919 | DRIVER( fsa1wxa ) /* 1988 MSX2+ Japan */ |
| 920 | DRIVER( fsa1wsx ) /* 1989 MSX2+ Japan */ |
| 921 | DRIVER( hbf1xdj ) /* 1988 MSX2+ Japan */ |
| 922 | DRIVER( hbf1xv ) /* 1989 MSX2+ Japan */ |
| 923 | DRIVER( phc70fd ) /* 1988 MSX2+ Japan */ |
| 924 | DRIVER( phc70fd2 ) /* 1988 MSX2+ Japan */ |
| 925 | DRIVER( phc35j ) /* 1989 MSX2+ Japan */ |
| 926 | 926 | |
| 927 | 927 | |
| 928 | | /* NASCOM MICROCOMPUTERS */ |
| 929 | | DRIVER( nascom1 ) /* 1978 Nascom 1 */ |
| 930 | | DRIVER( nascom2 ) /* 1979 Nascom 2 */ |
| 928 | /* NASCOM MICROCOMPUTERS */ |
| 929 | DRIVER( nascom1 ) /* 1978 Nascom 1 */ |
| 930 | DRIVER( nascom2 ) /* 1979 Nascom 2 */ |
| 931 | 931 | |
| 932 | | /* MILES GORDON TECHNOLOGY */ |
| 933 | | DRIVER( samcoupe ) /* 1989 Sam Coupe */ |
| 932 | /* MILES GORDON TECHNOLOGY */ |
| 933 | DRIVER( samcoupe ) /* 1989 Sam Coupe */ |
| 934 | 934 | |
| 935 | | /* MOTOROLA */ |
| 936 | | DRIVER( mekd2 ) /* 1977 Motorola Evaluation Kit */ |
| 935 | /* MOTOROLA */ |
| 936 | DRIVER( mekd2 ) /* 1977 Motorola Evaluation Kit */ |
| 937 | 937 | |
| 938 | | /* DEC */ |
| 939 | | DRIVER( pdp1 ) /* 1961 DEC PDP1 */ |
| 938 | /* DEC */ |
| 939 | DRIVER( pdp1 ) /* 1961 DEC PDP1 */ |
| 940 | 940 | |
| 941 | | /* MEMOTECH */ |
| 942 | | DRIVER( mtx512 ) /* 1983 Memotech MTX 512 */ |
| 943 | | DRIVER( mtx500 ) /* 1983 Memotech MTX 500 */ |
| 944 | | DRIVER( rs128 ) /* 1984 Memotech RS 128 */ |
| 941 | /* MEMOTECH */ |
| 942 | DRIVER( mtx512 ) /* 1983 Memotech MTX 512 */ |
| 943 | DRIVER( mtx500 ) /* 1983 Memotech MTX 500 */ |
| 944 | DRIVER( rs128 ) /* 1984 Memotech RS 128 */ |
| 945 | 945 | |
| 946 | | /* MATTEL */ |
| 947 | | DRIVER( intvkbd ) /* 1981 - Mattel Intellivision Keyboard Component */ |
| 948 | | /* (Test marketed, later recalled) */ |
| 949 | | DRIVER( aquarius ) /* 1983 Aquarius */ |
| 950 | | // DRIVER( aquariu2 ) /* 1984 Aquarius II */ |
| 946 | /* MATTEL */ |
| 947 | DRIVER( intvkbd ) /* 1981 - Mattel Intellivision Keyboard Component */ |
| 948 | /* (Test marketed, later recalled) */ |
| 949 | DRIVER( aquarius ) /* 1983 Aquarius */ |
| 950 | // DRIVER( aquariu2 ) /* 1984 Aquarius II */ |
| 951 | 951 | |
| 952 | | /*EXIDY INC */ |
| 953 | | DRIVER( exidy ) /* Sorcerer */ |
| 954 | | DRIVER( exidyd ) /* Sorcerer (cassette only) */ |
| 952 | /*EXIDY INC */ |
| 953 | DRIVER( exidy ) /* Sorcerer */ |
| 954 | DRIVER( exidyd ) /* Sorcerer (cassette only) */ |
| 955 | 955 | |
| 956 | | /* GALAKSIJA */ |
| 957 | | DRIVER( galaxy ) |
| 958 | | DRIVER( galaxyp ) |
| 956 | /* GALAKSIJA */ |
| 957 | DRIVER( galaxy ) |
| 958 | DRIVER( galaxyp ) |
| 959 | 959 | |
| 960 | | /* Lviv/L'vov */ |
| 961 | | DRIVER( lviv ) /* Lviv/L'vov */ |
| 960 | /* Lviv/L'vov */ |
| 961 | DRIVER( lviv ) /* Lviv/L'vov */ |
| 962 | 962 | |
| 963 | | /* Tesla */ |
| 964 | | DRIVER( pmd851 ) /* PMD-85.1 */ |
| 965 | | DRIVER( pmd852 ) /* PMD-85.2 */ |
| 966 | | DRIVER( pmd852a ) /* PMD-85.2A */ |
| 967 | | DRIVER( pmd852b ) /* PMD-85.2B */ |
| 968 | | DRIVER( pmd853 ) /* PMD-85.3 */ |
| 963 | /* Tesla */ |
| 964 | DRIVER( pmd851 ) /* PMD-85.1 */ |
| 965 | DRIVER( pmd852 ) /* PMD-85.2 */ |
| 966 | DRIVER( pmd852a ) /* PMD-85.2A */ |
| 967 | DRIVER( pmd852b ) /* PMD-85.2B */ |
| 968 | DRIVER( pmd853 ) /* PMD-85.3 */ |
| 969 | 969 | |
| 970 | | /* Didaktik */ |
| 971 | | DRIVER( alfa ) /* Alfa (PMD-85.1 clone) */ |
| 970 | /* Didaktik */ |
| 971 | DRIVER( alfa ) /* Alfa (PMD-85.1 clone) */ |
| 972 | 972 | |
| 973 | | /* Statny */ |
| 974 | | DRIVER( mato ) /* Mato (PMD-85.2 clone) */ |
| 973 | /* Statny */ |
| 974 | DRIVER( mato ) /* Mato (PMD-85.2 clone) */ |
| 975 | 975 | |
| 976 | | /* Zbrojovka Brno */ |
| 977 | | DRIVER( c2717 ) /* Consul 2717 (PMD-85.2 clone) */ |
| 976 | /* Zbrojovka Brno */ |
| 977 | DRIVER( c2717 ) /* Consul 2717 (PMD-85.2 clone) */ |
| 978 | 978 | |
| 979 | | /* Microkey */ |
| 980 | | DRIVER( primoa32 ) /* Primo A-32 */ |
| 981 | | DRIVER( primoa48 ) /* Primo A-48 */ |
| 982 | | DRIVER( primoa64 ) /* Primo A-64 */ |
| 983 | | DRIVER( primob32 ) /* Primo B-32 */ |
| 984 | | DRIVER( primob48 ) /* Primo B-48 */ |
| 985 | | DRIVER( primob64 ) /* Primo B-64 */ |
| 986 | | DRIVER( primoc64 ) /* Primo C-64 */ |
| 979 | /* Microkey */ |
| 980 | DRIVER( primoa32 ) /* Primo A-32 */ |
| 981 | DRIVER( primoa48 ) /* Primo A-48 */ |
| 982 | DRIVER( primoa64 ) /* Primo A-64 */ |
| 983 | DRIVER( primob32 ) /* Primo B-32 */ |
| 984 | DRIVER( primob48 ) /* Primo B-48 */ |
| 985 | DRIVER( primob64 ) /* Primo B-64 */ |
| 986 | DRIVER( primoc64 ) /* Primo C-64 */ |
| 987 | 987 | |
| 988 | | /* Team Concepts */ |
| 989 | | /* CPU not known, else should be easy, look into drivers/comquest.c */ |
| 990 | | DRIVER( comquest ) /* Comquest Plus German */ |
| 988 | /* Team Concepts */ |
| 989 | /* CPU not known, else should be easy, look into drivers/comquest.c */ |
| 990 | DRIVER( comquest ) /* Comquest Plus German */ |
| 991 | 991 | |
| 992 | | /* Hewlett Packard */ |
| 993 | | DRIVER( hp38g ) |
| 994 | | DRIVER( hp39g ) |
| 995 | | DRIVER( hp48s ) /* HP 48S */ |
| 996 | | DRIVER( hp48sx ) /* HP 48SX */ |
| 997 | | DRIVER( hp48g ) /* HP 48G */ |
| 998 | | DRIVER( hp48gx ) /* HP 48GX */ |
| 999 | | DRIVER( hp48gp ) /* HP 48G+ */ |
| 1000 | | DRIVER( hp49g ) |
| 992 | /* Hewlett Packard */ |
| 993 | DRIVER( hp38g ) |
| 994 | DRIVER( hp39g ) |
| 995 | DRIVER( hp48s ) /* HP 48S */ |
| 996 | DRIVER( hp48sx ) /* HP 48SX */ |
| 997 | DRIVER( hp48g ) /* HP 48G */ |
| 998 | DRIVER( hp48gx ) /* HP 48GX */ |
| 999 | DRIVER( hp48gp ) /* HP 48G+ */ |
| 1000 | DRIVER( hp49g ) |
| 1001 | 1001 | |
| 1002 | | /* SpectraVideo */ |
| 1003 | | DRIVER( svi318 ) /* SVI-318 (PAL) */ |
| 1004 | | DRIVER( svi318n ) /* SVI-318 (NTSC) */ |
| 1005 | | DRIVER( svi328 ) /* SVI-328 (PAL) */ |
| 1006 | | DRIVER( svi328n ) /* SVI-328 (NTSC) */ |
| 1007 | | DRIVER( sv328p80 ) /* SVI-328 (PAL) + SVI-806 80 column card */ |
| 1008 | | DRIVER( sv328n80 ) /* SVI-328 (NTSC) + SVI-806 80 column card */ |
| 1002 | /* SpectraVideo */ |
| 1003 | DRIVER( svi318 ) /* SVI-318 (PAL) */ |
| 1004 | DRIVER( svi318n ) /* SVI-318 (NTSC) */ |
| 1005 | DRIVER( svi328 ) /* SVI-328 (PAL) */ |
| 1006 | DRIVER( svi328n ) /* SVI-328 (NTSC) */ |
| 1007 | DRIVER( sv328p80 ) /* SVI-328 (PAL) + SVI-806 80 column card */ |
| 1008 | DRIVER( sv328n80 ) /* SVI-328 (NTSC) + SVI-806 80 column card */ |
| 1009 | 1009 | |
| 1010 | | /* Andrew Donald Booth (this is the name of the designer, not a company) */ |
| 1011 | | // DRIVER( apexc53 ) /* 1951(?) APEXC: All-Purpose Electronic X-ray Computer */ |
| 1012 | | DRIVER( apexc ) /* 1955(?) APEXC: All-Purpose Electronic X-ray Computer */ |
| 1010 | /* Andrew Donald Booth (this is the name of the designer, not a company) */ |
| 1011 | // DRIVER( apexc53 ) /* 1951(?) APEXC: All-Purpose Electronic X-ray Computer */ |
| 1012 | DRIVER( apexc ) /* 1955(?) APEXC: All-Purpose Electronic X-ray Computer */ |
| 1013 | 1013 | |
| 1014 | | /* Corvus */ |
| 1015 | | DRIVER(concept) /* 1982 Corvus Concept */ |
| 1014 | /* Corvus */ |
| 1015 | DRIVER(concept) /* 1982 Corvus Concept */ |
| 1016 | 1016 | |
| 1017 | | /* DAI */ |
| 1018 | | DRIVER(dai) /* DAI */ |
| 1017 | /* DAI */ |
| 1018 | DRIVER(dai) /* DAI */ |
| 1019 | 1019 | |
| 1020 | | /* Telenova */ |
| 1021 | | DRIVER(compis) /* 1985 Telenova Compis */ |
| 1020 | /* Telenova */ |
| 1021 | DRIVER(compis) /* 1985 Telenova Compis */ |
| 1022 | 1022 | |
| 1023 | | /* Multitech */ |
| 1024 | | DRIVER(mpf1) /* 1979 Multitech Micro Professor 1 */ |
| 1025 | | DRIVER(mpf1b) /* 1979 Multitech Micro Professor 1B */ |
| 1023 | /* Multitech */ |
| 1024 | DRIVER(mpf1) /* 1979 Multitech Micro Professor 1 */ |
| 1025 | DRIVER(mpf1b) /* 1979 Multitech Micro Professor 1B */ |
| 1026 | 1026 | |
| 1027 | | /* Telercas Oy */ |
| 1028 | | // DRIVER(tmc1800) |
| 1029 | | DRIVER(tmc2000) |
| 1030 | | DRIVER(tmc2000e) |
| 1031 | | // DRIVER(tmc600s1) |
| 1032 | | DRIVER(tmc600s2) |
| 1027 | /* Telercas Oy */ |
| 1028 | // DRIVER(tmc1800) |
| 1029 | DRIVER(tmc2000) |
| 1030 | DRIVER(tmc2000e) |
| 1031 | // DRIVER(tmc600s1) |
| 1032 | DRIVER(tmc600s2) |
| 1033 | 1033 | |
| 1034 | | /* OSCOM Oy */ |
| 1035 | | // DRIVER(osc1000b) |
| 1036 | | DRIVER(oscnano) |
| 1034 | /* OSCOM Oy */ |
| 1035 | // DRIVER(osc1000b) |
| 1036 | DRIVER(oscnano) |
| 1037 | 1037 | |
| 1038 | | /* MIT */ |
| 1039 | | DRIVER( tx0_64kw ) /* April 1956 MIT TX-0 (64kw RAM) */ |
| 1040 | | DRIVER( tx0_8kw ) /* 1962 MIT TX-0 (8kw RAM) */ |
| 1038 | /* MIT */ |
| 1039 | DRIVER( tx0_64kw ) /* April 1956 MIT TX-0 (64kw RAM) */ |
| 1040 | DRIVER( tx0_8kw ) /* 1962 MIT TX-0 (8kw RAM) */ |
| 1041 | 1041 | |
| 1042 | | /* Luxor Datorer AB */ |
| 1043 | | DRIVER( abc80 ) |
| 1044 | | // DRIVER( abc80h ) |
| 1045 | | DRIVER( abc802 ) |
| 1046 | | DRIVER( abc800m ) |
| 1047 | | DRIVER( abc800c ) |
| 1048 | | DRIVER( abc806 ) |
| 1042 | /* Luxor Datorer AB */ |
| 1043 | DRIVER( abc80 ) |
| 1044 | // DRIVER( abc80h ) |
| 1045 | DRIVER( abc802 ) |
| 1046 | DRIVER( abc800m ) |
| 1047 | DRIVER( abc800c ) |
| 1048 | DRIVER( abc806 ) |
| 1049 | 1049 | |
| 1050 | | /* Be Incorporated */ |
| 1051 | | DRIVER( bebox ) /* BeBox Dual603-66 */ |
| 1052 | | DRIVER( bebox2 ) /* BeBox Dual603-133 */ |
| 1050 | /* Be Incorporated */ |
| 1051 | DRIVER( bebox ) /* BeBox Dual603-66 */ |
| 1052 | DRIVER( bebox2 ) /* BeBox Dual603-133 */ |
| 1053 | 1053 | |
| 1054 | | /* Tiger Electronics */ |
| 1055 | | DRIVER( gamecom ) /* Tiger Game.com */ |
| 1054 | /* Tiger Electronics */ |
| 1055 | DRIVER( gamecom ) /* Tiger Game.com */ |
| 1056 | 1056 | |
| 1057 | | /* Thomson */ |
| 1058 | | DRIVER( t9000 ) /* 1980 Thomson T9000 (TO7 prototype) */ |
| 1059 | | DRIVER( to7 ) /* 1982 Thomson TO7 */ |
| 1060 | | DRIVER( to770 ) /* 1984 Thomson TO7/70 */ |
| 1061 | | DRIVER( to770a ) /* 198? Thomson TO7/70 arabic version */ |
| 1062 | | DRIVER( mo5 ) /* 1984 Thomson MO5 */ |
| 1063 | | DRIVER( mo5e ) /* 1986 Thomson MO5E (export version) */ |
| 1064 | | DRIVER( to9 ) /* 1985 Thomson T09 */ |
| 1065 | | DRIVER( to8 ) /* 1986 Thomson T08 */ |
| 1066 | | DRIVER( to8d ) /* 1987 Thomson T08D */ |
| 1067 | | DRIVER( to9p ) /* 1986 Thomson T09+ */ |
| 1068 | | DRIVER( mo6 ) /* 1986 Thomson MO6 */ |
| 1069 | | DRIVER( mo5nr ) /* 1986 Thomson MO5 NR */ |
| 1070 | | DRIVER( pro128 ) /* 1986 Olivetti Prodest PC 128 */ |
| 1057 | /* Thomson */ |
| 1058 | DRIVER( t9000 ) /* 1980 Thomson T9000 (TO7 prototype) */ |
| 1059 | DRIVER( to7 ) /* 1982 Thomson TO7 */ |
| 1060 | DRIVER( to770 ) /* 1984 Thomson TO7/70 */ |
| 1061 | DRIVER( to770a ) /* 198? Thomson TO7/70 arabic version */ |
| 1062 | DRIVER( mo5 ) /* 1984 Thomson MO5 */ |
| 1063 | DRIVER( mo5e ) /* 1986 Thomson MO5E (export version) */ |
| 1064 | DRIVER( to9 ) /* 1985 Thomson T09 */ |
| 1065 | DRIVER( to8 ) /* 1986 Thomson T08 */ |
| 1066 | DRIVER( to8d ) /* 1987 Thomson T08D */ |
| 1067 | DRIVER( to9p ) /* 1986 Thomson T09+ */ |
| 1068 | DRIVER( mo6 ) /* 1986 Thomson MO6 */ |
| 1069 | DRIVER( mo5nr ) /* 1986 Thomson MO5 NR */ |
| 1070 | DRIVER( pro128 ) /* 1986 Olivetti Prodest PC 128 */ |
| 1071 | 1071 | |
| 1072 | | /* Cybiko, Inc. */ |
| 1073 | | DRIVER( cybikov1 ) /* Cybiko Wireless Intertainment System - Classic V1 */ |
| 1074 | | DRIVER( cybikov2 ) /* Cybiko Wireless Intertainment System - Classic V2 */ |
| 1075 | | DRIVER( cybikoxt ) /* Cybiko Wireless Intertainment System - Xtreme */ |
| 1072 | /* Cybiko, Inc. */ |
| 1073 | DRIVER( cybikov1 ) /* Cybiko Wireless Intertainment System - Classic V1 */ |
| 1074 | DRIVER( cybikov2 ) /* Cybiko Wireless Intertainment System - Classic V2 */ |
| 1075 | DRIVER( cybikoxt ) /* Cybiko Wireless Intertainment System - Xtreme */ |
| 1076 | 1076 | |
| 1077 | | /* Dick Smith */ |
| 1078 | | DRIVER( super80 ) |
| 1079 | | DRIVER( super80d ) |
| 1080 | | DRIVER( super80e ) |
| 1081 | | DRIVER( super80m ) |
| 1082 | | DRIVER( super80r ) |
| 1083 | | DRIVER( super80v ) |
| 1077 | /* Dick Smith */ |
| 1078 | DRIVER( super80 ) |
| 1079 | DRIVER( super80d ) |
| 1080 | DRIVER( super80e ) |
| 1081 | DRIVER( super80m ) |
| 1082 | DRIVER( super80r ) |
| 1083 | DRIVER( super80v ) |
| 1084 | 1084 | |
| 1085 | | /* Galeb */ |
| 1086 | | DRIVER( galeb ) |
| 1085 | /* Galeb */ |
| 1086 | DRIVER( galeb ) |
| 1087 | 1087 | |
| 1088 | | /* Orao */ |
| 1089 | | DRIVER( orao ) |
| 1090 | | DRIVER( orao103 ) |
| 1088 | /* Orao */ |
| 1089 | DRIVER( orao ) |
| 1090 | DRIVER( orao103 ) |
| 1091 | 1091 | |
| 1092 | | /* UT-88 */ |
| 1093 | | DRIVER( ut88 ) |
| 1094 | | DRIVER( ut88mini ) |
| 1092 | /* UT-88 */ |
| 1093 | DRIVER( ut88 ) |
| 1094 | DRIVER( ut88mini ) |
| 1095 | 1095 | |
| 1096 | | /* Mikro-80 */ |
| 1097 | | DRIVER( mikro80 ) |
| 1098 | | DRIVER( radio99 ) |
| 1096 | /* Mikro-80 */ |
| 1097 | DRIVER( mikro80 ) |
| 1098 | DRIVER( radio99 ) |
| 1099 | 1099 | |
| 1100 | | /* Specialist */ |
| 1101 | | DRIVER( special ) |
| 1102 | | DRIVER( specialp ) |
| 1103 | | DRIVER( lik ) |
| 1104 | | DRIVER( erik ) |
| 1105 | | DRIVER( specimx ) |
| 1100 | /* Specialist */ |
| 1101 | DRIVER( special ) |
| 1102 | DRIVER( specialp ) |
| 1103 | DRIVER( lik ) |
| 1104 | DRIVER( erik ) |
| 1105 | DRIVER( specimx ) |
| 1106 | 1106 | |
| 1107 | | /* Orion */ |
| 1108 | | DRIVER( orion128 ) |
| 1109 | | DRIVER( orionms ) |
| 1110 | | DRIVER( orionz80 ) |
| 1111 | | DRIVER( orionide ) |
| 1112 | | DRIVER( orionzms ) |
| 1113 | | DRIVER( orionidm ) |
| 1114 | | DRIVER( orionpro ) |
| 1107 | /* Orion */ |
| 1108 | DRIVER( orion128 ) |
| 1109 | DRIVER( orionms ) |
| 1110 | DRIVER( orionz80 ) |
| 1111 | DRIVER( orionide ) |
| 1112 | DRIVER( orionzms ) |
| 1113 | DRIVER( orionidm ) |
| 1114 | DRIVER( orionpro ) |
| 1115 | 1115 | |
| 1116 | | /* BK */ |
| 1117 | | DRIVER( bk0010 ) |
| 1118 | | DRIVER( bk001001 ) |
| 1119 | | DRIVER( bk0010fd ) |
| 1120 | | DRIVER( bk0011m ) |
| 1116 | /* BK */ |
| 1117 | DRIVER( bk0010 ) |
| 1118 | DRIVER( bk001001 ) |
| 1119 | DRIVER( bk0010fd ) |
| 1120 | DRIVER( bk0011m ) |
| 1121 | 1121 | |
| 1122 | | /* Bashkiria-2M */ |
| 1123 | | DRIVER( b2m ) |
| 1124 | | DRIVER( b2mrom ) |
| 1122 | /* Bashkiria-2M */ |
| 1123 | DRIVER( b2m ) |
| 1124 | DRIVER( b2mrom ) |
| 1125 | 1125 | |
| 1126 | | /* Radio-86RK */ |
| 1127 | | DRIVER( radio86 ) |
| 1128 | | DRIVER( radio16 ) |
| 1129 | | DRIVER( radio4k ) |
| 1130 | | DRIVER( rk7007 ) |
| 1131 | | DRIVER( rk700716 ) |
| 1132 | | DRIVER( radiorom ) |
| 1133 | | DRIVER( radioram ) |
| 1134 | | DRIVER( spektr01 ) |
| 1135 | | DRIVER( apogee ) |
| 1136 | | DRIVER( mikrosha ) |
| 1137 | | DRIVER( partner ) |
| 1126 | /* Radio-86RK */ |
| 1127 | DRIVER( radio86 ) |
| 1128 | DRIVER( radio16 ) |
| 1129 | DRIVER( radio4k ) |
| 1130 | DRIVER( rk7007 ) |
| 1131 | DRIVER( rk700716 ) |
| 1132 | DRIVER( radiorom ) |
| 1133 | DRIVER( radioram ) |
| 1134 | DRIVER( spektr01 ) |
| 1135 | DRIVER( apogee ) |
| 1136 | DRIVER( mikrosha ) |
| 1137 | DRIVER( partner ) |
| 1138 | 1138 | |
| 1139 | | /* Homelab */ |
| 1140 | | DRIVER (homelab2) |
| 1141 | | DRIVER (homelab3) |
| 1142 | | DRIVER (homelab4) |
| 1143 | | DRIVER (brailab4) |
| 1139 | /* Homelab */ |
| 1140 | DRIVER (homelab2) |
| 1141 | DRIVER (homelab3) |
| 1142 | DRIVER (homelab4) |
| 1143 | DRIVER (brailab4) |
| 1144 | 1144 | |
| 1145 | | /* Irisha */ |
| 1146 | | DRIVER (irisha) |
| 1145 | /* Irisha */ |
| 1146 | DRIVER (irisha) |
| 1147 | 1147 | |
| 1148 | | /* PK-8020 */ |
| 1149 | | DRIVER (korvet) |
| 1148 | /* PK-8020 */ |
| 1149 | DRIVER (korvet) |
| 1150 | 1150 | |
| 1151 | | /* Vector-06c */ |
| 1152 | | DRIVER (vector06) |
| 1151 | /* Vector-06c */ |
| 1152 | DRIVER (vector06) |
| 1153 | 1153 | |
| 1154 | | /* Robotron 1715 */ |
| 1155 | | DRIVER (rt1715) |
| 1156 | | DRIVER (rt1715w) |
| 1157 | | |
| 1158 | | /* Z1013 */ |
| 1159 | | DRIVER (z1013) |
| 1160 | | DRIVER (z1013a2) |
| 1161 | | DRIVER (z1013k76) |
| 1162 | | DRIVER (z1013s60) |
| 1163 | | DRIVER (z1013k69) |
| 1164 | | |
| 1165 | | /* LLC */ |
| 1166 | | DRIVER (llc1) |
| 1167 | | DRIVER (llc2) |
| 1154 | /* Robotron 1715 */ |
| 1155 | DRIVER (rt1715) |
| 1156 | DRIVER (rt1715w) |
| 1168 | 1157 | |
| 1169 | | /* PP-01 */ |
| 1170 | | DRIVER (pp01) |
| 1158 | /* Z1013 */ |
| 1159 | DRIVER (z1013) |
| 1160 | DRIVER (z1013a2) |
| 1161 | DRIVER (z1013k76) |
| 1162 | DRIVER (z1013s60) |
| 1163 | DRIVER (z1013k69) |
| 1171 | 1164 | |
| 1172 | | /* Ondra */ |
| 1173 | | DRIVER (ondrat) |
| 1174 | | DRIVER (ondrav) |
| 1165 | /* LLC */ |
| 1166 | DRIVER (llc1) |
| 1167 | DRIVER (llc2) |
| 1175 | 1168 | |
| 1176 | | /* SAPI-1 */ |
| 1177 | | DRIVER (sapi1) |
| 1169 | /* PP-01 */ |
| 1170 | DRIVER (pp01) |
| 1178 | 1171 | |
| 1172 | /* Ondra */ |
| 1173 | DRIVER (ondrat) |
| 1174 | DRIVER (ondrav) |
| 1175 | |
| 1176 | /* SAPI-1 */ |
| 1177 | DRIVER (sapi1) |
| 1178 | |
| 1179 | 1179 | /* Spectrum clones */ |
| 1180 | 1180 | |
| 1181 | 1181 | /* ICE-Felix */ |
| 1182 | | DRIVER( hc85 ) /* 1985 HC-85 */ |
| 1183 | | DRIVER( hc90 ) /* 1990 HC-90 */ |
| 1184 | | DRIVER( hc91 ) /* 1991 HC-91 */ |
| 1185 | | DRIVER( hc128 ) /* 1991 HC-128 */ |
| 1186 | | DRIVER( hc2000 ) /* 1992 HC-2000 */ |
| 1182 | DRIVER( hc85 ) /* 1985 HC-85 */ |
| 1183 | DRIVER( hc90 ) /* 1990 HC-90 */ |
| 1184 | DRIVER( hc91 ) /* 1991 HC-91 */ |
| 1185 | DRIVER( hc128 ) /* 1991 HC-128 */ |
| 1186 | DRIVER( hc2000 ) /* 1992 HC-2000 */ |
| 1187 | 1187 | |
| 1188 | | DRIVER( cip01 ) /* 1987 CIP-01 */ |
| 1189 | | DRIVER( cip03 ) /* 1988 CIP-03 */ |
| 1190 | | DRIVER( jet ) /* 1990 JET */ |
| 1188 | DRIVER( cip01 ) /* 1987 CIP-01 */ |
| 1189 | DRIVER( cip03 ) /* 1988 CIP-03 */ |
| 1190 | DRIVER( jet ) /* 1990 JET */ |
| 1191 | 1191 | |
| 1192 | 1192 | /* Didaktik Skalica */ |
| 1193 | | DRIVER( dgama87) /* 1987 Didaktik Gama 87 */ |
| 1194 | | DRIVER( dgama88) /* 1988 Didaktik Gama 88 */ |
| 1195 | | DRIVER( dgama89) /* 1989 Didaktik Gama 89 */ |
| 1196 | | DRIVER( didakt90) /* 1990 Didaktik Skalica 90 */ |
| 1197 | | DRIVER( didakm91) /* 1991 Didaktik M 91 */ |
| 1198 | | DRIVER( didaktk) /* 1992 Didaktik Kompakt */ |
| 1199 | | DRIVER( didakm93) /* 1993 Didaktik M 93 */ |
| 1193 | DRIVER( dgama87) /* 1987 Didaktik Gama 87 */ |
| 1194 | DRIVER( dgama88) /* 1988 Didaktik Gama 88 */ |
| 1195 | DRIVER( dgama89) /* 1989 Didaktik Gama 89 */ |
| 1196 | DRIVER( didakt90) /* 1990 Didaktik Skalica 90 */ |
| 1197 | DRIVER( didakm91) /* 1991 Didaktik M 91 */ |
| 1198 | DRIVER( didaktk) /* 1992 Didaktik Kompakt */ |
| 1199 | DRIVER( didakm93) /* 1993 Didaktik M 93 */ |
| 1200 | 1200 | |
| 1201 | | DRIVER( mistrum ) /* 1988 Mistrum */ |
| 1201 | DRIVER( mistrum ) /* 1988 Mistrum */ |
| 1202 | 1202 | |
| 1203 | | /* Russian clones */ |
| 1204 | | DRIVER( blitz ) /* 1990 Blic */ |
| 1205 | | DRIVER( byte ) /* 1990 Byte */ |
| 1206 | | DRIVER( orizon ) /* 199? Orizon-Micro */ |
| 1207 | | DRIVER( quorum48 ) /* 1993 Kvorum 48K */ |
| 1208 | | DRIVER( magic6 ) /* 1993 Magic 6 */ |
| 1209 | | DRIVER( compani1 ) /* 1990 Kompanion 1 */ |
| 1203 | /* Russian clones */ |
| 1204 | DRIVER( blitz ) /* 1990 Blic */ |
| 1205 | DRIVER( byte ) /* 1990 Byte */ |
| 1206 | DRIVER( orizon ) /* 199? Orizon-Micro */ |
| 1207 | DRIVER( quorum48 ) /* 1993 Kvorum 48K */ |
| 1208 | DRIVER( magic6 ) /* 1993 Magic 6 */ |
| 1209 | DRIVER( compani1 ) /* 1990 Kompanion 1 */ |
| 1210 | 1210 | |
| 1211 | | /* Kramer */ |
| 1212 | | DRIVER(kramermc) /* 1987 Kramer MC */ |
| 1211 | /* Kramer */ |
| 1212 | DRIVER(kramermc) /* 1987 Kramer MC */ |
| 1213 | 1213 | |
| 1214 | | /* AC1 */ |
| 1215 | | DRIVER(ac1) /* 1984 Amateurcomputer AC1 */ |
| 1216 | | DRIVER(ac1_32) /* 1984 Amateurcomputer AC1 (32 lines) */ |
| 1217 | | DRIVER(ac1scch) /* 1984 Amateurcomputer AC1 SCCH */ |
| 1214 | /* AC1 */ |
| 1215 | DRIVER(ac1) /* 1984 Amateurcomputer AC1 */ |
| 1216 | DRIVER(ac1_32) /* 1984 Amateurcomputer AC1 (32 lines) */ |
| 1217 | DRIVER(ac1scch) /* 1984 Amateurcomputer AC1 SCCH */ |
| 1218 | 1218 | |
| 1219 | | DRIVER( pcm ) /* PC/M Mugler */ |
| 1220 | | |
| 1221 | | /* DEC VT100 */ |
| 1222 | | DRIVER(vt100) |
| 1223 | | |
| 1224 | | /* Ei Nis */ |
| 1225 | | DRIVER(pecom64) |
| 1219 | DRIVER( pcm ) /* PC/M Mugler */ |
| 1226 | 1220 | |
| 1227 | | /* Samsung SPC-1000 */ |
| 1228 | | DRIVER(spc1000) |
| 1221 | /* DEC VT100 */ |
| 1222 | DRIVER(vt100) |
| 1229 | 1223 | |
| 1230 | | /* PolyMorphic Systems */ |
| 1231 | | DRIVER( poly88 ) |
| 1232 | | DRIVER( poly8813 ) |
| 1233 | | |
| 1234 | | /* Bondwell */ |
| 1235 | | DRIVER( bw2 ) |
| 1224 | /* Ei Nis */ |
| 1225 | DRIVER(pecom64) |
| 1236 | 1226 | |
| 1237 | | /* Exeltel */ |
| 1238 | | DRIVER( exl100 ) |
| 1239 | | // DRIVER( exeltel ) |
| 1227 | /* Samsung SPC-1000 */ |
| 1228 | DRIVER(spc1000) |
| 1240 | 1229 | |
| 1241 | | /* Comx World Operations Ltd */ |
| 1242 | | DRIVER( comx35p ) |
| 1243 | | DRIVER( comx35n ) |
| 1244 | | // DRIVER( comxpl80 ) |
| 1230 | /* PolyMorphic Systems */ |
| 1231 | DRIVER( poly88 ) |
| 1232 | DRIVER( poly8813 ) |
| 1245 | 1233 | |
| 1246 | | /* Grundy Business Systems Ltd */ |
| 1247 | | DRIVER( newbrain ) |
| 1248 | | DRIVER( newbraie ) |
| 1249 | | DRIVER( newbraia ) |
| 1250 | | DRIVER( newbraim ) |
| 1234 | /* Bondwell */ |
| 1235 | DRIVER( bw2 ) |
| 1251 | 1236 | |
| 1252 | | /* Nokia Data */ |
| 1253 | | DRIVER( mm1m6 ) |
| 1254 | | DRIVER( mm1m7 ) |
| 1237 | /* Exeltel */ |
| 1238 | DRIVER( exl100 ) |
| 1239 | // DRIVER( exeltel ) |
| 1255 | 1240 | |
| 1256 | | /* Nuova Elettronica */ |
| 1257 | | DRIVER( z80ne ) /* 1980 - Z80NE */ |
| 1258 | | DRIVER( z80net ) /* 1980 - Z80NE + LX388 Video Interface */ |
| 1259 | | DRIVER( z80netb ) /* 1980 - Z80NE + LX388 Video Interface + 16Kb BASIC */ |
| 1241 | /* Comx World Operations Ltd */ |
| 1242 | DRIVER( comx35p ) |
| 1243 | DRIVER( comx35n ) |
| 1244 | // DRIVER( comxpl80 ) |
| 1260 | 1245 | |
| 1261 | | /* Talking Electronics Magazine */ |
| 1262 | | DRIVER( tec1 ) /* Talking Electronics Computer */ |
| 1246 | /* Grundy Business Systems Ltd */ |
| 1247 | DRIVER( newbrain ) |
| 1248 | DRIVER( newbraie ) |
| 1249 | DRIVER( newbraia ) |
| 1250 | DRIVER( newbraim ) |
| 1263 | 1251 | |
| 1264 | | /* Kyocera (and clones) */ |
| 1265 | | DRIVER( kc85 ) |
| 1266 | | DRIVER( olivm10 ) |
| 1267 | | // DRIVER( olivm10m ) |
| 1268 | | DRIVER( trsm100 ) |
| 1269 | | DRIVER( tandy102 ) |
| 1270 | | DRIVER( tandy200 ) |
| 1271 | | // DRIVER( npc8201 ) |
| 1272 | | DRIVER( npc8201a ) |
| 1273 | | // DRIVER( npc8300 ) |
| 1274 | | // DRIVER( pc8401 ) |
| 1275 | | DRIVER( pc8500 ) |
| 1252 | /* Nokia Data */ |
| 1253 | DRIVER( mm1m6 ) |
| 1254 | DRIVER( mm1m7 ) |
| 1276 | 1255 | |
| 1277 | | /* Nakajima manufactured eletronic typewriters */ |
| 1278 | | DRIVER( drwrt200 ) /* 199? NTS DreamWriter T200 */ |
| 1279 | | DRIVER( drwrt400 ) /* 1996 NTS DreamWriter T400 */ |
| 1280 | | DRIVER( wales210 ) /* 199? Walther ES-210 (German) */ |
| 1281 | | DRIVER( dator3k ) /* 199? Dator 3000 (Spanish) */ |
| 1256 | /* Nuova Elettronica */ |
| 1257 | DRIVER( z80ne ) /* 1980 - Z80NE */ |
| 1258 | DRIVER( z80net ) /* 1980 - Z80NE + LX388 Video Interface */ |
| 1259 | DRIVER( z80netb ) /* 1980 - Z80NE + LX388 Video Interface + 16Kb BASIC */ |
| 1282 | 1260 | |
| 1283 | | /* Fujitsu */ |
| 1284 | | DRIVER( fm7 ) |
| 1285 | | DRIVER( fm77av ) |
| 1286 | | DRIVER( fm7740sx ) |
| 1287 | | DRIVER( fmtowns ) /* 1989 Fujitsu FM-Towns */ |
| 1288 | | DRIVER( fmtownsa ) |
| 1289 | | DRIVER( fmtmarty ) /* 1993 Fujitsu FM-Towns Marty */ |
| 1261 | /* Talking Electronics Magazine */ |
| 1262 | DRIVER( tec1 ) /* Talking Electronics Computer */ |
| 1290 | 1263 | |
| 1291 | | /* Camputers */ |
| 1292 | | DRIVER( camplynx ) |
| 1293 | | DRIVER( camply96 ) |
| 1294 | | DRIVER( camply128 ) |
| 1264 | /* Kyocera (and clones) */ |
| 1265 | DRIVER( kc85 ) |
| 1266 | DRIVER( olivm10 ) |
| 1267 | // DRIVER( olivm10m ) |
| 1268 | DRIVER( trsm100 ) |
| 1269 | DRIVER( tandy102 ) |
| 1270 | DRIVER( tandy200 ) |
| 1271 | // DRIVER( npc8201 ) |
| 1272 | DRIVER( npc8201a ) |
| 1273 | // DRIVER( npc8300 ) |
| 1274 | // DRIVER( pc8401 ) |
| 1275 | DRIVER( pc8500 ) |
| 1295 | 1276 | |
| 1296 | | /* Votrax */ |
| 1297 | | DRIVER( votrtnt ) /* 1980 Votrax Type-'N-Talk */ |
| 1298 | | DRIVER( votrpss ) /* 1982 Votrax Personal Speech System */ |
| 1277 | /* Nakajima manufactured eletronic typewriters */ |
| 1278 | DRIVER( drwrt200 ) /* 199? NTS DreamWriter T200 */ |
| 1279 | DRIVER( drwrt400 ) /* 1996 NTS DreamWriter T400 */ |
| 1280 | DRIVER( wales210 ) /* 199? Walther ES-210 (German) */ |
| 1281 | DRIVER( dator3k ) /* 199? Dator 3000 (Spanish) */ |
| 1299 | 1282 | |
| 1283 | /* Fujitsu */ |
| 1284 | DRIVER( fm7 ) |
| 1285 | DRIVER( fm77av ) |
| 1286 | DRIVER( fm7740sx ) |
| 1287 | DRIVER( fmtowns ) /* 1989 Fujitsu FM-Towns */ |
| 1288 | DRIVER( fmtownsa ) |
| 1289 | DRIVER( fmtmarty ) /* 1993 Fujitsu FM-Towns Marty */ |
| 1290 | |
| 1291 | /* Camputers */ |
| 1292 | DRIVER( camplynx ) |
| 1293 | DRIVER( camply96 ) |
| 1294 | DRIVER( camply128 ) |
| 1295 | |
| 1296 | /* Votrax */ |
| 1297 | DRIVER( votrtnt ) /* 1980 Votrax Type-'N-Talk */ |
| 1298 | DRIVER( votrpss ) /* 1982 Votrax Personal Speech System */ |
| 1299 | |
| 1300 | 1300 | /****************Games*******************************************************/ |
| 1301 | | /* Computer Electronic */ |
| 1302 | | DRIVER( mk1 ) /* Chess Champion MK I */ |
| 1303 | | /* Quelle International */ |
| 1304 | | DRIVER( mk2 ) /* Chess Champion MK II */ |
| 1301 | /* Computer Electronic */ |
| 1302 | DRIVER( mk1 ) /* Chess Champion MK I */ |
| 1303 | /* Quelle International */ |
| 1304 | DRIVER( mk2 ) /* Chess Champion MK II */ |
| 1305 | 1305 | |
| 1306 | | /* Novag */ |
| 1307 | | DRIVER( ssystem3 ) /* Chess Champion Super System III / MK III */ |
| 1306 | /* Novag */ |
| 1307 | DRIVER( ssystem3 ) /* Chess Champion Super System III / MK III */ |
| 1308 | 1308 | |
| 1309 | | /* Hegener & Glaser Munich */ |
| 1310 | | // DRIVER( mephisto ) /* Mephisto */ |
| 1311 | | DRIVER( mm4 ) /* Mephisto 4 */ |
| 1312 | | DRIVER( mm5 ) /* Mephisto 5.1 ROM */ |
| 1313 | | DRIVER( mm50 ) /* Mephisto 5.0 ROM */ |
| 1314 | | DRIVER( rebel5 ) /* Mephisto 5 */ |
| 1315 | | DRIVER( glasgow ) /* Glasgow */ |
| 1316 | | DRIVER( amsterd ) /* Amsterdam */ |
| 1317 | | DRIVER( dallas ) /* Dallas */ |
| 1318 | | DRIVER( dallas16 ) /* Dallas */ |
| 1319 | | DRIVER( dallas32 ) /* Dallas */ |
| 1320 | | DRIVER( roma ) /* Roma */ |
| 1321 | | DRIVER( roma32 ) /* Roma */ |
| 1309 | /* Hegener & Glaser Munich */ |
| 1310 | // DRIVER( mephisto ) /* Mephisto */ |
| 1311 | DRIVER( mm4 ) /* Mephisto 4 */ |
| 1312 | DRIVER( mm5 ) /* Mephisto 5.1 ROM */ |
| 1313 | DRIVER( mm50 ) /* Mephisto 5.0 ROM */ |
| 1314 | DRIVER( rebel5 ) /* Mephisto 5 */ |
| 1315 | DRIVER( glasgow ) /* Glasgow */ |
| 1316 | DRIVER( amsterd ) /* Amsterdam */ |
| 1317 | DRIVER( dallas ) /* Dallas */ |
| 1318 | DRIVER( dallas16 ) /* Dallas */ |
| 1319 | DRIVER( dallas32 ) /* Dallas */ |
| 1320 | DRIVER( roma ) /* Roma */ |
| 1321 | DRIVER( roma32 ) /* Roma */ |
| 1322 | 1322 | |
| 1323 | 1323 | /*********** Misc ***********************************************************/ |
| 1324 | 1324 | |
| 1325 | | DRIVER( ex800 ) |
| 1325 | DRIVER( ex800 ) |
| 1326 | DRIVER( ssem ) /* Manchester Small-Scale Experimental Machine, "Baby" */ |
| 1326 | 1327 | |
| 1327 | 1328 | /*********** To sort (mostly skeleton drivers) ******************************/ |
| 1328 | 1329 | |
| 1329 | | DRIVER( a5105 ) |
| 1330 | | DRIVER( bcs3 ) |
| 1331 | | DRIVER( bcs3a ) |
| 1332 | | DRIVER( bcs3b ) |
| 1333 | | DRIVER( bcs3c ) |
| 1334 | | DRIVER( bob85 ) |
| 1335 | | DRIVER( c80 ) |
| 1336 | | DRIVER( mc1000 ) |
| 1337 | | DRIVER( vk100 ) |
| 1338 | | DRIVER( d6809 ) |
| 1339 | | DRIVER( mk90 ) |
| 1340 | | DRIVER( elwro800 ) |
| 1341 | | DRIVER( fk1 ) |
| 1342 | | DRIVER( et3400 ) |
| 1343 | | DRIVER( huebler ) |
| 1344 | | DRIVER( interact ) |
| 1345 | | DRIVER( sc80 ) |
| 1346 | | DRIVER( lc80 ) |
| 1347 | | DRIVER( jr200 ) |
| 1348 | | DRIVER( h8 ) |
| 1349 | | DRIVER( h19 ) |
| 1350 | | DRIVER( h89 ) |
| 1351 | | DRIVER( hec2hrp ) |
| 1352 | | DRIVER( hec2hrx ) |
| 1353 | | DRIVER( hector1 ) |
| 1354 | | DRIVER( poly880 ) |
| 1355 | | DRIVER( sc1 ) |
| 1356 | | DRIVER( sc2 ) |
| 1357 | | DRIVER( chessmst ) |
| 1358 | | DRIVER( sys2900 ) |
| 1359 | | DRIVER( pmi80 ) |
| 1360 | | DRIVER( tiki100 ) |
| 1361 | | DRIVER( vcs80 ) |
| 1362 | | DRIVER( v1050 ) |
| 1363 | | DRIVER( xerox820 ) |
| 1364 | | DRIVER( xor100 ) |
| 1365 | | DRIVER( iq151 ) |
| 1366 | | DRIVER( ply601 ) |
| 1367 | | DRIVER( ply601a ) |
| 1368 | | DRIVER( m20 ) |
| 1369 | | DRIVER( m40 ) |
| 1370 | | DRIVER( nanos ) |
| 1371 | | DRIVER( a5120 ) |
| 1372 | | DRIVER( a5130 ) |
| 1373 | | DRIVER( beehive ) |
| 1374 | | DRIVER( uts20 ) |
| 1375 | | DRIVER( uknc ) |
| 1376 | | DRIVER( zx97) |
| 1377 | | DRIVER( x07) |
| 1378 | | DRIVER( vesta) |
| 1379 | | DRIVER( hobby) |
| 1380 | | DRIVER( unior) |
| 1381 | | DRIVER( vec1200) |
| 1382 | | DRIVER( pk6128c) |
| 1330 | DRIVER( a5105 ) |
| 1331 | DRIVER( bcs3 ) |
| 1332 | DRIVER( bcs3a ) |
| 1333 | DRIVER( bcs3b ) |
| 1334 | DRIVER( bcs3c ) |
| 1335 | DRIVER( bob85 ) |
| 1336 | DRIVER( c80 ) |
| 1337 | DRIVER( mc1000 ) |
| 1338 | DRIVER( vk100 ) |
| 1339 | DRIVER( d6809 ) |
| 1340 | DRIVER( mk90 ) |
| 1341 | DRIVER( elwro800 ) |
| 1342 | DRIVER( fk1 ) |
| 1343 | DRIVER( et3400 ) |
| 1344 | DRIVER( huebler ) |
| 1345 | DRIVER( interact ) |
| 1346 | DRIVER( sc80 ) |
| 1347 | DRIVER( lc80 ) |
| 1348 | DRIVER( jr200 ) |
| 1349 | DRIVER( h8 ) |
| 1350 | DRIVER( h19 ) |
| 1351 | DRIVER( h89 ) |
| 1352 | DRIVER( hec2hrp ) |
| 1353 | DRIVER( hec2hrx ) |
| 1354 | DRIVER( hector1 ) |
| 1355 | DRIVER( poly880 ) |
| 1356 | DRIVER( sc1 ) |
| 1357 | DRIVER( sc2 ) |
| 1358 | DRIVER( chessmst ) |
| 1359 | DRIVER( sys2900 ) |
| 1360 | DRIVER( pmi80 ) |
| 1361 | DRIVER( tiki100 ) |
| 1362 | DRIVER( vcs80 ) |
| 1363 | DRIVER( v1050 ) |
| 1364 | DRIVER( xerox820 ) |
| 1365 | DRIVER( xor100 ) |
| 1366 | DRIVER( iq151 ) |
| 1367 | DRIVER( ply601 ) |
| 1368 | DRIVER( ply601a ) |
| 1369 | DRIVER( m20 ) |
| 1370 | DRIVER( m40 ) |
| 1371 | DRIVER( nanos ) |
| 1372 | DRIVER( a5120 ) |
| 1373 | DRIVER( a5130 ) |
| 1374 | DRIVER( beehive ) |
| 1375 | DRIVER( uts20 ) |
| 1376 | DRIVER( uknc ) |
| 1377 | DRIVER( zx97) |
| 1378 | DRIVER( x07) |
| 1379 | DRIVER( vesta) |
| 1380 | DRIVER( hobby) |
| 1381 | DRIVER( unior) |
| 1382 | DRIVER( vec1200) |
| 1383 | DRIVER( pk6128c) |
| 1383 | 1384 | |
| 1384 | 1385 | #endif /* DRIVER_RECURSIVE */ |
src/mess/drivers/ssem.c
| r0 | r4911 | |
| 1 | /* |
| 2 | Manchester Small-Scale Experimental Machine (SSEM) |
| 3 | |
| 4 | Driver by MooglyGuy |
| 5 | */ |
| 6 | |
| 7 | #include "driver.h" |
| 8 | #include "cpu/ssem/ssem.h" |
| 9 | #include "devices/cartslot.h" |
| 10 | #include <stdarg.h> |
| 11 | |
| 12 | static UINT8 *store; |
| 13 | static UINT8 store_line = 0; |
| 14 | |
| 15 | /****************************************************\ |
| 16 | * General helper functions * |
| 17 | \****************************************************/ |
| 18 | |
| 19 | // The SSEM stores its data, visually, with the leftmost bit corresponding to the least significant bit. |
| 20 | // The de facto snapshot format for other SSEM simulators stores the data physically in that format as well. |
| 21 | // Therefore, in MESS, every 32-bit word has its bits reversed, too, and as a result the values must be |
| 22 | // un-reversed before being used. |
| 23 | INLINE UINT32 reverse(UINT32 v) |
| 24 | { |
| 25 | // Taken from http://www-graphics.stanford.edu/~seander/bithacks.html#ReverseParallel |
| 26 | // swap odd and even bits |
| 27 | v = ((v >> 1) & 0x55555555) | ((v & 0x55555555) << 1); |
| 28 | // swap consecutive pairs |
| 29 | v = ((v >> 2) & 0x33333333) | ((v & 0x33333333) << 2); |
| 30 | // swap nibbles ... |
| 31 | v = ((v >> 4) & 0x0F0F0F0F) | ((v & 0x0F0F0F0F) << 4); |
| 32 | // swap bytes |
| 33 | v = ((v >> 8) & 0x00FF00FF) | ((v & 0x00FF00FF) << 8); |
| 34 | // swap 2-byte long pairs |
| 35 | v = ( v >> 16 ) | ( v << 16); |
| 36 | |
| 37 | return v; |
| 38 | } |
| 39 | |
| 40 | /****************************************************\ |
| 41 | * Address map * |
| 42 | \****************************************************/ |
| 43 | |
| 44 | static ADDRESS_MAP_START( ssem_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 45 | AM_RANGE(0x00, 0x7f) AM_RAM AM_BASE(&store)// Primary store |
| 46 | ADDRESS_MAP_END |
| 47 | |
| 48 | /****************************************************\ |
| 49 | * Input ports and front panel handling * |
| 50 | \****************************************************/ |
| 51 | |
| 52 | enum |
| 53 | { |
| 54 | // Bit-edit buttons |
| 55 | PANEL_BIT0, PANEL_BIT1, PANEL_BIT2, PANEL_BIT3, PANEL_BIT4, PANEL_BIT5, PANEL_BIT6, PANEL_BIT7, |
| 56 | PANEL_BIT8, PANEL_BIT9, PANEL_BIT10, PANEL_BIT11, PANEL_BIT12, PANEL_BIT13, PANEL_BIT14, PANEL_BIT15, |
| 57 | PANEL_BIT16, PANEL_BIT17, PANEL_BIT18, PANEL_BIT19, PANEL_BIT20, PANEL_BIT21, PANEL_BIT22, PANEL_BIT23, |
| 58 | PANEL_BIT24, PANEL_BIT25, PANEL_BIT26, PANEL_BIT27, PANEL_BIT28, PANEL_BIT29, PANEL_BIT30, PANEL_BIT31, |
| 59 | |
| 60 | // Page up, page down |
| 61 | PANEL_PGUP, PANEL_PGDN, |
| 62 | |
| 63 | // Line up, line down |
| 64 | PANEL_LNUP, PANEL_LNDN, |
| 65 | |
| 66 | // Halt |
| 67 | PANEL_HALT, |
| 68 | }; |
| 69 | |
| 70 | static INPUT_CHANGED( panel_check ) |
| 71 | { |
| 72 | UINT8 edit0_state = input_port_read(field->port->machine, "EDIT0"); |
| 73 | UINT8 edit1_state = input_port_read(field->port->machine, "EDIT1"); |
| 74 | UINT8 edit2_state = input_port_read(field->port->machine, "EDIT2"); |
| 75 | UINT8 edit3_state = input_port_read(field->port->machine, "EDIT3"); |
| 76 | UINT8 misc_state = input_port_read(field->port->machine, "MISC"); |
| 77 | const device_config *ssem_cpu = devtag_get_device(field->port->machine, "maincpu"); |
| 78 | |
| 79 | switch( (int)(FPTR)param ) |
| 80 | { |
| 81 | case PANEL_BIT0: |
| 82 | if(edit0_state & 0x01) store[(store_line << 2) | 0] ^= 0x80; |
| 83 | break; |
| 84 | case PANEL_BIT1: |
| 85 | if(edit0_state & 0x02) store[(store_line << 2) | 0] ^= 0x40; |
| 86 | break; |
| 87 | case PANEL_BIT2: |
| 88 | if(edit0_state & 0x04) store[(store_line << 2) | 0] ^= 0x20; |
| 89 | break; |
| 90 | case PANEL_BIT3: |
| 91 | if(edit0_state & 0x08) store[(store_line << 2) | 0] ^= 0x10; |
| 92 | break; |
| 93 | case PANEL_BIT4: |
| 94 | if(edit0_state & 0x10) store[(store_line << 2) | 0] ^= 0x08; |
| 95 | break; |
| 96 | case PANEL_BIT5: |
| 97 | if(edit0_state & 0x20) store[(store_line << 2) | 0] ^= 0x04; |
| 98 | break; |
| 99 | case PANEL_BIT6: |
| 100 | if(edit0_state & 0x40) store[(store_line << 2) | 0] ^= 0x02; |
| 101 | break; |
| 102 | case PANEL_BIT7: |
| 103 | if(edit0_state & 0x80) store[(store_line << 2) | 0] ^= 0x01; |
| 104 | break; |
| 105 | case PANEL_BIT8: |
| 106 | if(edit1_state & 0x01) store[(store_line << 2) | 1] ^= 0x80; |
| 107 | break; |
| 108 | case PANEL_BIT9: |
| 109 | if(edit1_state & 0x02) store[(store_line << 2) | 1] ^= 0x40; |
| 110 | break; |
| 111 | case PANEL_BIT10: |
| 112 | if(edit1_state & 0x04) store[(store_line << 2) | 1] ^= 0x20; |
| 113 | break; |
| 114 | case PANEL_BIT11: |
| 115 | if(edit1_state & 0x08) store[(store_line << 2) | 1] ^= 0x10; |
| 116 | break; |
| 117 | case PANEL_BIT12: |
| 118 | if(edit1_state & 0x10) store[(store_line << 2) | 1] ^= 0x08; |
| 119 | break; |
| 120 | case PANEL_BIT13: |
| 121 | if(edit1_state & 0x20) store[(store_line << 2) | 1] ^= 0x04; |
| 122 | break; |
| 123 | case PANEL_BIT14: |
| 124 | if(edit1_state & 0x40) store[(store_line << 2) | 1] ^= 0x02; |
| 125 | break; |
| 126 | case PANEL_BIT15: |
| 127 | if(edit1_state & 0x80) store[(store_line << 2) | 1] ^= 0x01; |
| 128 | break; |
| 129 | case PANEL_BIT16: |
| 130 | if(edit2_state & 0x01) store[(store_line << 2) | 2] ^= 0x80; |
| 131 | break; |
| 132 | case PANEL_BIT17: |
| 133 | if(edit2_state & 0x02) store[(store_line << 2) | 2] ^= 0x40; |
| 134 | break; |
| 135 | case PANEL_BIT18: |
| 136 | if(edit2_state & 0x04) store[(store_line << 2) | 2] ^= 0x20; |
| 137 | break; |
| 138 | case PANEL_BIT19: |
| 139 | if(edit2_state & 0x08) store[(store_line << 2) | 2] ^= 0x10; |
| 140 | break; |
| 141 | case PANEL_BIT20: |
| 142 | if(edit2_state & 0x10) store[(store_line << 2) | 2] ^= 0x08; |
| 143 | break; |
| 144 | case PANEL_BIT21: |
| 145 | if(edit2_state & 0x20) store[(store_line << 2) | 2] ^= 0x04; |
| 146 | break; |
| 147 | case PANEL_BIT22: |
| 148 | if(edit2_state & 0x40) store[(store_line << 2) | 2] ^= 0x02; |
| 149 | break; |
| 150 | case PANEL_BIT23: |
| 151 | if(edit2_state & 0x80) store[(store_line << 2) | 2] ^= 0x01; |
| 152 | break; |
| 153 | case PANEL_BIT24: |
| 154 | if(edit3_state & 0x01) store[(store_line << 2) | 3] ^= 0x80; |
| 155 | break; |
| 156 | case PANEL_BIT25: |
| 157 | if(edit3_state & 0x02) store[(store_line << 2) | 3] ^= 0x40; |
| 158 | break; |
| 159 | case PANEL_BIT26: |
| 160 | if(edit3_state & 0x04) store[(store_line << 2) | 3] ^= 0x20; |
| 161 | break; |
| 162 | case PANEL_BIT27: |
| 163 | if(edit3_state & 0x08) store[(store_line << 2) | 3] ^= 0x10; |
| 164 | break; |
| 165 | case PANEL_BIT28: |
| 166 | if(edit3_state & 0x10) store[(store_line << 2) | 3] ^= 0x08; |
| 167 | break; |
| 168 | case PANEL_BIT29: |
| 169 | if(edit3_state & 0x20) store[(store_line << 2) | 3] ^= 0x04; |
| 170 | break; |
| 171 | case PANEL_BIT30: |
| 172 | if(edit3_state & 0x40) store[(store_line << 2) | 3] ^= 0x02; |
| 173 | break; |
| 174 | case PANEL_BIT31: |
| 175 | if(edit3_state & 0x80) store[(store_line << 2) | 3] ^= 0x01; |
| 176 | break; |
| 177 | case PANEL_LNUP: |
| 178 | if(misc_state & 0x01) |
| 179 | { |
| 180 | store_line--; |
| 181 | } |
| 182 | break; |
| 183 | case PANEL_LNDN: |
| 184 | if(misc_state & 0x02) |
| 185 | { |
| 186 | store_line++; |
| 187 | } |
| 188 | break; |
| 189 | case PANEL_HALT: |
| 190 | if(misc_state & 0x04) |
| 191 | { |
| 192 | cpu_set_reg(ssem_cpu, SSEM_HALT, 1 - cpu_get_reg(ssem_cpu, SSEM_HALT)); |
| 193 | } |
| 194 | break; |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | static INPUT_PORTS_START( ssem ) |
| 199 | PORT_START("EDIT0") |
| 200 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 0") PORT_CODE(KEYCODE_1) PORT_CHANGED(panel_check, (void*)PANEL_BIT0) |
| 201 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 1") PORT_CODE(KEYCODE_2) PORT_CHANGED(panel_check, (void*)PANEL_BIT1) |
| 202 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 2") PORT_CODE(KEYCODE_3) PORT_CHANGED(panel_check, (void*)PANEL_BIT2) |
| 203 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 3") PORT_CODE(KEYCODE_4) PORT_CHANGED(panel_check, (void*)PANEL_BIT3) |
| 204 | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 4") PORT_CODE(KEYCODE_5) PORT_CHANGED(panel_check, (void*)PANEL_BIT4) |
| 205 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 5") PORT_CODE(KEYCODE_6) PORT_CHANGED(panel_check, (void*)PANEL_BIT5) |
| 206 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 6") PORT_CODE(KEYCODE_7) PORT_CHANGED(panel_check, (void*)PANEL_BIT6) |
| 207 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 7") PORT_CODE(KEYCODE_8) PORT_CHANGED(panel_check, (void*)PANEL_BIT7) |
| 208 | |
| 209 | PORT_START("EDIT1") |
| 210 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 8") PORT_CODE(KEYCODE_Q) PORT_CHANGED(panel_check, (void*)PANEL_BIT8) |
| 211 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 9") PORT_CODE(KEYCODE_W) PORT_CHANGED(panel_check, (void*)PANEL_BIT9) |
| 212 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 10") PORT_CODE(KEYCODE_E) PORT_CHANGED(panel_check, (void*)PANEL_BIT10) |
| 213 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 11") PORT_CODE(KEYCODE_R) PORT_CHANGED(panel_check, (void*)PANEL_BIT11) |
| 214 | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 12") PORT_CODE(KEYCODE_T) PORT_CHANGED(panel_check, (void*)PANEL_BIT12) |
| 215 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 13") PORT_CODE(KEYCODE_Y) PORT_CHANGED(panel_check, (void*)PANEL_BIT13) |
| 216 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 14") PORT_CODE(KEYCODE_U) PORT_CHANGED(panel_check, (void*)PANEL_BIT14) |
| 217 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 15") PORT_CODE(KEYCODE_I) PORT_CHANGED(panel_check, (void*)PANEL_BIT15) |
| 218 | |
| 219 | PORT_START("EDIT2") |
| 220 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 16") PORT_CODE(KEYCODE_A) PORT_CHANGED(panel_check, (void*)PANEL_BIT16) |
| 221 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 17") PORT_CODE(KEYCODE_S) PORT_CHANGED(panel_check, (void*)PANEL_BIT17) |
| 222 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 18") PORT_CODE(KEYCODE_D) PORT_CHANGED(panel_check, (void*)PANEL_BIT18) |
| 223 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 19") PORT_CODE(KEYCODE_F) PORT_CHANGED(panel_check, (void*)PANEL_BIT19) |
| 224 | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 20") PORT_CODE(KEYCODE_G) PORT_CHANGED(panel_check, (void*)PANEL_BIT20) |
| 225 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 21") PORT_CODE(KEYCODE_H) PORT_CHANGED(panel_check, (void*)PANEL_BIT21) |
| 226 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 22") PORT_CODE(KEYCODE_J) PORT_CHANGED(panel_check, (void*)PANEL_BIT22) |
| 227 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 23") PORT_CODE(KEYCODE_K) PORT_CHANGED(panel_check, (void*)PANEL_BIT23) |
| 228 | |
| 229 | PORT_START("EDIT3") |
| 230 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 24") PORT_CODE(KEYCODE_Z) PORT_CHANGED(panel_check, (void*)PANEL_BIT24) |
| 231 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 25") PORT_CODE(KEYCODE_X) PORT_CHANGED(panel_check, (void*)PANEL_BIT25) |
| 232 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 26") PORT_CODE(KEYCODE_C) PORT_CHANGED(panel_check, (void*)PANEL_BIT26) |
| 233 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 27") PORT_CODE(KEYCODE_V) PORT_CHANGED(panel_check, (void*)PANEL_BIT27) |
| 234 | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 28") PORT_CODE(KEYCODE_B) PORT_CHANGED(panel_check, (void*)PANEL_BIT28) |
| 235 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 29") PORT_CODE(KEYCODE_N) PORT_CHANGED(panel_check, (void*)PANEL_BIT29) |
| 236 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 30") PORT_CODE(KEYCODE_M) PORT_CHANGED(panel_check, (void*)PANEL_BIT30) |
| 237 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Bit 31") PORT_CODE(KEYCODE_COMMA) PORT_CHANGED(panel_check, (void*)PANEL_BIT31) |
| 238 | |
| 239 | PORT_START("MISC") |
| 240 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Line Up") PORT_CODE(KEYCODE_UP) PORT_CHANGED(panel_check, (void*)PANEL_LNUP) |
| 241 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Line Down") PORT_CODE(KEYCODE_DOWN) PORT_CHANGED(panel_check, (void*)PANEL_LNDN) |
| 242 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Halt") PORT_CHANGED(panel_check, (void*)PANEL_HALT) |
| 243 | PORT_BIT(0xf8, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 244 | INPUT_PORTS_END |
| 245 | |
| 246 | /****************************************************\ |
| 247 | * Video hardware * |
| 248 | \****************************************************/ |
| 249 | |
| 250 | static const UINT8 char_glyphs[0x80][8] = |
| 251 | { |
| 252 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 253 | { 0x00, 0x00, 0x10, 0x38, 0x10, 0x00, 0x00, 0x00 }, |
| 254 | { 0x38, 0x7c, 0xfe, 0xfe, 0xfe, 0x7c, 0x38, 0x00 }, |
| 255 | { 0xff, 0xff, 0xef, 0xc7, 0xef, 0xff, 0xff, 0xff }, |
| 256 | { 0xc7, 0x83, 0x01, 0x01, 0x01, 0x83, 0xc7, 0xff }, |
| 257 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 258 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 259 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 260 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 261 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 262 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 263 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 264 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 265 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 266 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 267 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 268 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 269 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 270 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 271 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 272 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 273 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 274 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 275 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 276 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 277 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 278 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 279 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 280 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 281 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 282 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 283 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 284 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 285 | { 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, 0x18, 0x00 }, |
| 286 | { 0x66, 0x66, 0xcc, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 287 | { 0x6c, 0x6c, 0xfe, 0x6c, 0xfe, 0x6c, 0x6c, 0x00 }, |
| 288 | { 0x18, 0x3e, 0x60, 0x3c, 0x06, 0x7c, 0x18, 0x00 }, |
| 289 | { 0xc6, 0xcc, 0x18, 0x30, 0x60, 0xc6, 0x86, 0x00 }, |
| 290 | { 0x78, 0xcc, 0x78, 0x70, 0xce, 0xcc, 0x7e, 0x00 }, |
| 291 | { 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 292 | { 0x0c, 0x18, 0x30, 0x30, 0x30, 0x18, 0x0c, 0x00 }, |
| 293 | { 0x30, 0x18, 0x0c, 0x0c, 0x0c, 0x18, 0x30, 0x00 }, |
| 294 | { 0x00, 0x66, 0x3c, 0xff, 0x3c, 0x66, 0x00, 0x00 }, |
| 295 | { 0x00, 0x18, 0x18, 0x7e, 0x18, 0x18, 0x00, 0x00 }, |
| 296 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x30 }, |
| 297 | { 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x00 }, |
| 298 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00 }, |
| 299 | { 0x02, 0x06, 0x0c, 0x18, 0x30, 0x60, 0xc0, 0x00 }, |
| 300 | { 0x3c, 0x66, 0x76, 0x7e, 0x6e, 0x66, 0x3c, 0x00 }, |
| 301 | { 0x18, 0x38, 0x18, 0x18, 0x18, 0x18, 0x3c, 0x00 }, |
| 302 | { 0x3c, 0x66, 0x06, 0x0c, 0x30, 0x60, 0x7e, 0x00 }, |
| 303 | { 0x3c, 0x66, 0x06, 0x0c, 0x06, 0x66, 0x3c, 0x00 }, |
| 304 | { 0x66, 0x66, 0x66, 0x7e, 0x06, 0x06, 0x06, 0x00 }, |
| 305 | { 0x7e, 0x60, 0x7c, 0x06, 0x06, 0x66, 0x3c, 0x00 }, |
| 306 | { 0x3c, 0x66, 0x60, 0x7c, 0x66, 0x66, 0x3c, 0x00 }, |
| 307 | { 0x7e, 0x66, 0x06, 0x0c, 0x18, 0x18, 0x18, 0x00 }, |
| 308 | { 0x3c, 0x66, 0x66, 0x3c, 0x66, 0x66, 0x3c, 0x00 }, |
| 309 | { 0x3c, 0x66, 0x66, 0x3e, 0x06, 0x66, 0x3c, 0x00 }, |
| 310 | { 0x00, 0x18, 0x18, 0x00, 0x00, 0x18, 0x18, 0x00 }, |
| 311 | { 0x00, 0x18, 0x18, 0x00, 0x00, 0x18, 0x18, 0x30 }, |
| 312 | { 0x0c, 0x18, 0x30, 0x60, 0x30, 0x18, 0x0c, 0x00 }, |
| 313 | { 0x00, 0x00, 0x7e, 0x00, 0x7e, 0x00, 0x00, 0x00 }, |
| 314 | { 0x30, 0x18, 0x0c, 0x06, 0x0c, 0x18, 0x30, 0x00 }, |
| 315 | { 0x3c, 0x66, 0x06, 0x0c, 0x18, 0x00, 0x18, 0x00 }, |
| 316 | { 0x3c, 0x66, 0x6e, 0x6e, 0x60, 0x66, 0x3c, 0x00 }, |
| 317 | { 0x3c, 0x66, 0x66, 0x7e, 0x66, 0x66, 0x66, 0x00 }, |
| 318 | { 0x7c, 0x66, 0x66, 0x7c, 0x66, 0x66, 0x7c, 0x00 }, |
| 319 | { 0x3c, 0x66, 0x60, 0x60, 0x60, 0x66, 0x3c, 0x00 }, |
| 320 | { 0x7c, 0x66, 0x66, 0x66, 0x66, 0x66, 0x7c, 0x00 }, |
| 321 | { 0x7e, 0x60, 0x60, 0x78, 0x60, 0x60, 0x7e, 0x00 }, |
| 322 | { 0x7e, 0x60, 0x60, 0x78, 0x60, 0x60, 0x60, 0x00 }, |
| 323 | { 0x3c, 0x66, 0x60, 0x6e, 0x66, 0x66, 0x3c, 0x00 }, |
| 324 | { 0x66, 0x66, 0x66, 0x7e, 0x66, 0x66, 0x66, 0x00 }, |
| 325 | { 0x3c, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c, 0x00 }, |
| 326 | { 0x06, 0x06, 0x06, 0x06, 0x66, 0x66, 0x3c, 0x00 }, |
| 327 | { 0x66, 0x6c, 0x78, 0x70, 0x78, 0x6c, 0x66, 0x00 }, |
| 328 | { 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x7e, 0x00 }, |
| 329 | { 0xc6, 0xee, 0xfe, 0xfe, 0xd6, 0xc6, 0xc6, 0x00 }, |
| 330 | { 0x66, 0x76, 0x7e, 0x7e, 0x6e, 0x66, 0x66, 0x00 }, |
| 331 | { 0x3c, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3c, 0x00 }, |
| 332 | { 0x7c, 0x66, 0x66, 0x7c, 0x60, 0x60, 0x60, 0x00 }, |
| 333 | { 0x3c, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3c, 0x06 }, |
| 334 | { 0x7c, 0x66, 0x66, 0x7c, 0x66, 0x66, 0x66, 0x00 }, |
| 335 | { 0x3c, 0x66, 0x60, 0x3c, 0x06, 0x66, 0x3c, 0x00 }, |
| 336 | { 0x7e, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00 }, |
| 337 | { 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3c, 0x00 }, |
| 338 | { 0x66, 0x66, 0x66, 0x66, 0x66, 0x3c, 0x18, 0x00 }, |
| 339 | { 0xc6, 0xc6, 0xd6, 0xfe, 0xfe, 0xee, 0xc6, 0x00 }, |
| 340 | { 0x66, 0x66, 0x3c, 0x18, 0x3c, 0x66, 0x66, 0x00 }, |
| 341 | { 0x66, 0x66, 0x66, 0x3c, 0x18, 0x18, 0x18, 0x00 }, |
| 342 | { 0x7e, 0x06, 0x0c, 0x18, 0x30, 0x60, 0x7e, 0x00 }, |
| 343 | { 0x3c, 0x30, 0x30, 0x30, 0x30, 0x30, 0x3c, 0x00 }, |
| 344 | { 0x80, 0xc0, 0x60, 0x30, 0x18, 0x0c, 0x06, 0x00 }, |
| 345 | { 0x3c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x3c, 0x00 }, |
| 346 | { 0x10, 0x38, 0x6c, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 347 | { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f }, |
| 348 | { 0x30, 0x18, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00 }, |
| 349 | { 0x3c, 0x66, 0x66, 0x7e, 0x66, 0x66, 0x66, 0x00 }, |
| 350 | { 0x7c, 0x66, 0x66, 0x7c, 0x66, 0x66, 0x7c, 0x00 }, |
| 351 | { 0x3c, 0x66, 0x60, 0x60, 0x60, 0x66, 0x3c, 0x00 }, |
| 352 | { 0x7c, 0x66, 0x66, 0x66, 0x66, 0x66, 0x7c, 0x00 }, |
| 353 | { 0x7e, 0x60, 0x60, 0x78, 0x60, 0x60, 0x7e, 0x00 }, |
| 354 | { 0x7e, 0x60, 0x60, 0x78, 0x60, 0x60, 0x60, 0x00 }, |
| 355 | { 0x3c, 0x66, 0x60, 0x6e, 0x66, 0x66, 0x3c, 0x00 }, |
| 356 | { 0x66, 0x66, 0x66, 0x7e, 0x66, 0x66, 0x66, 0x00 }, |
| 357 | { 0x3c, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c, 0x00 }, |
| 358 | { 0x06, 0x06, 0x06, 0x06, 0x66, 0x66, 0x3c, 0x00 }, |
| 359 | { 0x66, 0x6c, 0x78, 0x70, 0x78, 0x6c, 0x66, 0x00 }, |
| 360 | { 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x7e, 0x00 }, |
| 361 | { 0xc6, 0xee, 0xfe, 0xfe, 0xd6, 0xc6, 0xc6, 0x00 }, |
| 362 | { 0x66, 0x76, 0x7e, 0x7e, 0x6e, 0x66, 0x66, 0x00 }, |
| 363 | { 0x3c, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3c, 0x00 }, |
| 364 | { 0x7c, 0x66, 0x66, 0x7c, 0x60, 0x60, 0x60, 0x00 }, |
| 365 | { 0x3c, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3c, 0x06 }, |
| 366 | { 0x7c, 0x66, 0x66, 0x7c, 0x66, 0x66, 0x66, 0x00 }, |
| 367 | { 0x3c, 0x66, 0x60, 0x3c, 0x06, 0x66, 0x3c, 0x00 }, |
| 368 | { 0x7e, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00 }, |
| 369 | { 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3c, 0x00 }, |
| 370 | { 0x66, 0x66, 0x66, 0x66, 0x66, 0x3c, 0x18, 0x00 }, |
| 371 | { 0xc6, 0xc6, 0xd6, 0xfe, 0xfe, 0xee, 0xc6, 0x00 }, |
| 372 | { 0x66, 0x66, 0x3c, 0x18, 0x3c, 0x66, 0x66, 0x00 }, |
| 373 | { 0x66, 0x66, 0x66, 0x3c, 0x18, 0x18, 0x18, 0x00 }, |
| 374 | { 0x7e, 0x06, 0x0c, 0x18, 0x30, 0x60, 0x7e, 0x00 }, |
| 375 | { 0x0c, 0x18, 0x18, 0x30, 0x18, 0x18, 0x0c, 0x00 }, |
| 376 | { 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00 }, |
| 377 | { 0x30, 0x18, 0x18, 0x0c, 0x18, 0x18, 0x30, 0x00 }, |
| 378 | { 0x00, 0x00, 0x76, 0xdc, 0x00, 0x00, 0x00, 0x00 }, |
| 379 | { 0xff, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0xff }, |
| 380 | }; |
| 381 | |
| 382 | static void glyph_print(running_machine *machine, bitmap_t *bitmap, INT32 x, INT32 y, const char *msg, ...) |
| 383 | { |
| 384 | va_list arg_list; |
| 385 | char buf[32768]; |
| 386 | INT32 index = 0; |
| 387 | const device_config *screen = video_screen_first(machine->config); |
| 388 | rectangle visarea = *video_screen_get_visible_area(screen); |
| 389 | |
| 390 | va_start( arg_list, msg ); |
| 391 | vsprintf( buf, msg, arg_list ); |
| 392 | va_end( arg_list ); |
| 393 | |
| 394 | for(index = 0; index < strlen(buf) && index < 32768; index++) |
| 395 | { |
| 396 | UINT8 cur = (UINT8)buf[index]; |
| 397 | if(cur < 0x80) |
| 398 | { |
| 399 | INT32 line = 0; |
| 400 | for(line = 0; line < 8; line++) |
| 401 | { |
| 402 | UINT32 *d = BITMAP_ADDR32(bitmap, y + line, 0); |
| 403 | INT32 bit = 0; |
| 404 | for(bit = 0; bit < 8; bit++) |
| 405 | { |
| 406 | if(char_glyphs[cur][line] & (1 << (7 - bit))) |
| 407 | { |
| 408 | d[x+bit] = 0xffffffff; |
| 409 | } |
| 410 | else |
| 411 | { |
| 412 | d[x+bit] = 0; |
| 413 | } |
| 414 | } |
| 415 | } |
| 416 | } |
| 417 | |
| 418 | x += 8; |
| 419 | if(x >= visarea.max_x) |
| 420 | { |
| 421 | x = 0; |
| 422 | y += 8; |
| 423 | if(y >= visarea.max_y) |
| 424 | { |
| 425 | y = 0; |
| 426 | } |
| 427 | } |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | static VIDEO_UPDATE( ssem ) |
| 432 | { |
| 433 | UINT32 line = 0; |
| 434 | const device_config *ssem_cpu = devtag_get_device(screen->machine, "maincpu"); |
| 435 | UINT32 accum = cpu_get_reg(ssem_cpu, SSEM_A); |
| 436 | UINT32 bit = 0; |
| 437 | UINT32 word = 0; |
| 438 | |
| 439 | for(line = 0; line < 32; line++) |
| 440 | { |
| 441 | word = (store[(line << 2) | 0] << 24) | |
| 442 | (store[(line << 2) | 1] << 16) | |
| 443 | (store[(line << 2) | 2] << 8) | |
| 444 | (store[(line << 2) | 3] << 0); |
| 445 | for(bit = 0; bit < 32; bit++) |
| 446 | { |
| 447 | if(word & (1 << (31 - bit))) |
| 448 | { |
| 449 | glyph_print(screen->machine, bitmap, bit << 3, line << 3, "%c", line == store_line ? 4 : 2); |
| 450 | } |
| 451 | else |
| 452 | { |
| 453 | glyph_print(screen->machine, bitmap, bit << 3, line << 3, "%c", line == store_line ? 3 : 1); |
| 454 | } |
| 455 | } |
| 456 | } |
| 457 | |
| 458 | for(bit = 0; bit < 32; bit++) |
| 459 | { |
| 460 | if(accum & (1 << bit)) |
| 461 | { |
| 462 | glyph_print(screen->machine, bitmap, bit << 3, 264, "%c", 2); |
| 463 | } |
| 464 | else |
| 465 | { |
| 466 | glyph_print(screen->machine, bitmap, bit << 3, 264, "%c", 1); |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | word = reverse((store[(store_line << 2) | 0] << 24) | |
| 471 | (store[(store_line << 2) | 1] << 16) | |
| 472 | (store[(store_line << 2) | 2] << 8) | |
| 473 | (store[(store_line << 2) | 3] << 0)); |
| 474 | glyph_print(screen->machine, bitmap, 0, 272, "LINE:%02d VALUE:%08x HALT:%d", store_line, word, cpu_get_reg(ssem_cpu, SSEM_HALT)); |
| 475 | return 0; |
| 476 | } |
| 477 | |
| 478 | /****************************************************\ |
| 479 | * Image helper functions * |
| 480 | \****************************************************/ |
| 481 | |
| 482 | static void strlower(char *buf) |
| 483 | { |
| 484 | if(buf) |
| 485 | { |
| 486 | int i = 0; |
| 487 | for(i = 0; i < strlen(buf); i++) |
| 488 | { |
| 489 | if(buf[i] >= 'A' && buf[i] <= 'Z') |
| 490 | { |
| 491 | buf[i] |= 0x20; |
| 492 | } |
| 493 | } |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | /****************************************************\ |
| 498 | * Image loading * |
| 499 | \****************************************************/ |
| 500 | |
| 501 | static DEVICE_IMAGE_LOAD(ssem_store) |
| 502 | { |
| 503 | const char* image_name = image_filename(image); |
| 504 | char image_ext[5] = { 0 }; |
| 505 | char image_line[100] = { 0 }; |
| 506 | char token_buf[100] = { 0 }; |
| 507 | int num_lines = 0; |
| 508 | int i = 0; |
| 509 | |
| 510 | // Isolate file extension and convert to lower-case |
| 511 | memcpy(image_ext, image_name + (strlen(image_name) - 4), 5); |
| 512 | strlower(image_ext); |
| 513 | |
| 514 | image_fgets(image, image_line, 99); |
| 515 | sscanf(image_line, "%d", &num_lines); |
| 516 | |
| 517 | if(num_lines) |
| 518 | { |
| 519 | for(i = 0; i < num_lines; i++) |
| 520 | { |
| 521 | UINT32 line = 0; |
| 522 | image_fgets(image, image_line, 99); |
| 523 | |
| 524 | // Isolate and convert 4-digit decimal address |
| 525 | memcpy(token_buf, image_line, 4); |
| 526 | token_buf[4] = '\0'; |
| 527 | sscanf(token_buf, "%04d", &line); |
| 528 | |
| 529 | if(strcmp(image_ext, ".snp") == 0) |
| 530 | { |
| 531 | UINT32 word = 0; |
| 532 | int b = 0; |
| 533 | |
| 534 | // Parse a line such as: 0000:00000110101001000100000100000100 |
| 535 | for(b = 0; b < 32; b++) |
| 536 | { |
| 537 | if(image_line[5 + b] == '1') |
| 538 | { |
| 539 | word |= 1 << (31 - b); |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | store[(line << 2) + 0] = (word >> 24) & 0x000000ff; |
| 544 | store[(line << 2) + 1] = (word >> 16) & 0x000000ff; |
| 545 | store[(line << 2) + 2] = (word >> 8) & 0x000000ff; |
| 546 | store[(line << 2) + 3] = (word >> 0) & 0x000000ff; |
| 547 | } |
| 548 | else if(strcmp(image_ext, ".asm") == 0) |
| 549 | { |
| 550 | char op_buf[4] = { 0 }; |
| 551 | INT32 value = 0; |
| 552 | UINT32 unsigned_value = 0; |
| 553 | UINT32 word = 0; |
| 554 | |
| 555 | // Isolate the opcode and convert to lower-case |
| 556 | memcpy(op_buf, image_line + 5, 3); |
| 557 | op_buf[3] = '\0'; |
| 558 | strlower(op_buf); |
| 559 | |
| 560 | // Isolate the value |
| 561 | sscanf(image_line + 9, "%d", &value); |
| 562 | unsigned_value = reverse((UINT32)value); |
| 563 | |
| 564 | if(strcmp(op_buf, "num") == 0) |
| 565 | { |
| 566 | word = unsigned_value; |
| 567 | } |
| 568 | else if(strcmp(op_buf, "jmp") == 0) |
| 569 | { |
| 570 | word = 0x00000000 | unsigned_value ; |
| 571 | } |
| 572 | else if(strcmp(op_buf, "jrp") == 0) |
| 573 | { |
| 574 | word = 0x00040000 | unsigned_value; |
| 575 | } |
| 576 | else if(strcmp(op_buf, "ldn") == 0) |
| 577 | { |
| 578 | word = 0x00020000 | unsigned_value; |
| 579 | } |
| 580 | else if(strcmp(op_buf, "sto") == 0) |
| 581 | { |
| 582 | word = 0x00060000 | unsigned_value; |
| 583 | } |
| 584 | else if(strcmp(op_buf, "sub") == 0) |
| 585 | { |
| 586 | word = 0x00010000 | unsigned_value; |
| 587 | } |
| 588 | else if(strcmp(op_buf, "cmp") == 0) |
| 589 | { |
| 590 | word = 0x00030000 | unsigned_value; |
| 591 | } |
| 592 | else if(strcmp(op_buf, "stp") == 0) |
| 593 | { |
| 594 | word = 0x00070000 | unsigned_value; |
| 595 | } |
| 596 | |
| 597 | store[(line << 2) + 0] = (word >> 24) & 0x000000ff; |
| 598 | store[(line << 2) + 1] = (word >> 16) & 0x000000ff; |
| 599 | store[(line << 2) + 2] = (word >> 8) & 0x000000ff; |
| 600 | store[(line << 2) + 3] = (word >> 0) & 0x000000ff; |
| 601 | } |
| 602 | } |
| 603 | } |
| 604 | |
| 605 | return INIT_PASS; |
| 606 | } |
| 607 | |
| 608 | /****************************************************\ |
| 609 | * Machine definition * |
| 610 | \****************************************************/ |
| 611 | |
| 612 | static MACHINE_RESET( ssem ) |
| 613 | { |
| 614 | store_line = 0; |
| 615 | } |
| 616 | |
| 617 | static MACHINE_DRIVER_START( ssem ) |
| 618 | /* basic machine hardware */ |
| 619 | MDRV_CPU_ADD("maincpu", SSEM, 700) |
| 620 | MDRV_CPU_PROGRAM_MAP(ssem_map) |
| 621 | |
| 622 | MDRV_MACHINE_RESET(ssem) |
| 623 | |
| 624 | /* video hardware */ |
| 625 | MDRV_SCREEN_ADD("screen", RASTER) |
| 626 | MDRV_SCREEN_REFRESH_RATE(50) |
| 627 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 628 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 629 | MDRV_SCREEN_SIZE(256, 280) |
| 630 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 279) |
| 631 | MDRV_PALETTE_LENGTH(2) |
| 632 | MDRV_PALETTE_INIT(black_and_white) |
| 633 | |
| 634 | MDRV_VIDEO_START(generic_bitmapped) |
| 635 | MDRV_VIDEO_UPDATE(ssem) |
| 636 | |
| 637 | /* cartridge */ |
| 638 | MDRV_CARTSLOT_ADD("cart") |
| 639 | MDRV_CARTSLOT_EXTENSION_LIST("snp,asm") |
| 640 | MDRV_CARTSLOT_MANDATORY |
| 641 | MDRV_CARTSLOT_LOAD(ssem_store) |
| 642 | MACHINE_DRIVER_END |
| 643 | |
| 644 | ROM_START( ssem ) |
| 645 | ROM_REGION( 0x80, "maincpu",0 ) /* Main Store */ |
| 646 | ROM_FILL( 0x0000, 0x80, 0x00 ) |
| 647 | ROM_END |
| 648 | |
| 649 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 650 | COMP(1948, ssem, 0, 0, ssem, ssem, 0, 0, "Manchester University", "Small-Scale Experimental Machine (SSEM), 'Baby'", GAME_NO_SOUND ) |