src/mess/machine/cbmserb.c
| r3155 | r3156 | |
| 140 | 140 | return 0; |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | static DEVICE_IMAGE_UNLOAD( cbm_drive ) |
| 144 | { |
| 145 | int id = image_index_in_device(image); |
| 143 | 146 | |
| 147 | cbm_drive[id].drive = 0; |
| 148 | cbm_drive[id].image = NULL; |
| 149 | } |
| 144 | 150 | |
| 151 | |
| 145 | 152 | static void c1551_write_data (CBM_Drive * c1551, int data) |
| 146 | 153 | { |
| 147 | 154 | c1551->i.iec.datain = data; |
| r3155 | r3156 | |
| 421 | 428 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(cbm_drive); break; |
| 422 | 429 | case MESS_DEVINFO_PTR_STOP: info->stop = DEVICE_STOP_NAME(cbm_drive); break; |
| 423 | 430 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(cbm_drive); break; |
| 431 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(cbm_drive); break; |
| 424 | 432 | |
| 425 | 433 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 426 | 434 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "d64"); break; |