src/mess/machine/wd17xx.c
| r5747 | r5748 | |
| 397 | 397 | UINT8 step_counter; |
| 398 | 398 | wd17xx_t *w = get_safe_token(device); |
| 399 | 399 | |
| 400 | | if (w->current_drive >= 1) |
| 400 | if (w->current_drive >= floppy_get_count(device->machine)) |
| 401 | 401 | return; |
| 402 | 402 | |
| 403 | 403 | step_counter = 255; |
| r5747 | r5748 | |
| 1735 | 1735 | |
| 1736 | 1736 | for (i = 0; i < 4; i++) |
| 1737 | 1737 | { |
| 1738 | | const device_config *img = devtag_get_device(device->machine,w->intf->floppy_drive_tags[w->current_drive]); |
| 1739 | | if (img!=NULL) { |
| 1740 | | floppy_drive_set_controller(img,device); |
| 1741 | | floppy_drive_set_index_pulse_callback(img, wd17xx_index_pulse_callback); |
| 1742 | | floppy_drive_set_rpm( img, 300.); |
| 1738 | if(w->intf->floppy_drive_tags[i]!=NULL) { |
| 1739 | const device_config *img = devtag_get_device(device->machine,w->intf->floppy_drive_tags[i]); |
| 1740 | if (img!=NULL) { |
| 1741 | floppy_drive_set_controller(img,device); |
| 1742 | floppy_drive_set_index_pulse_callback(img, wd17xx_index_pulse_callback); |
| 1743 | floppy_drive_set_rpm( img, 300.); |
| 1744 | } |
| 1743 | 1745 | } |
| 1744 | 1746 | } |
| 1745 | 1747 | |
src/mess/machine/nec765.c
| r5747 | r5748 | |
| 2201 | 2201 | are checked or only the drive selected with the drive select bits?? */ |
| 2202 | 2202 | |
| 2203 | 2203 | a_drive_is_ready = 0; |
| 2204 | | for (i = 0; i < 2; i++) |
| 2204 | for (i = 0; i < 4; i++) |
| 2205 | 2205 | { |
| 2206 | | if (fdc->intf->floppy_drive_tags[i]!=NULL) { |
| 2207 | | if(devtag_get_device(device->machine,fdc->intf->floppy_drive_tags[i])) { |
| 2206 | if (fdc->intf->floppy_drive_tags[i]!=NULL) { |
| 2207 | if (image_exists(devtag_get_device(device->machine,fdc->intf->floppy_drive_tags[i]))) { |
| 2208 | 2208 | a_drive_is_ready = 1; |
| 2209 | 2209 | break; |
| 2210 | 2210 | } |
| r5747 | r5748 | |
| 2322 | 2322 | { |
| 2323 | 2323 | int i; |
| 2324 | 2324 | nec765_t *fdc = get_safe_token(device); |
| 2325 | | for (i = 0; i < 2; i++) { |
| 2325 | for (i = 0; i < 4; i++) { |
| 2326 | 2326 | if (fdc->intf->floppy_drive_tags[i]!=NULL) { |
| 2327 | 2327 | const device_config *img = devtag_get_device(device->machine,fdc->intf->floppy_drive_tags[i]); |
| 2328 | 2328 | floppy_drive_set_controller(img, device); |
src/mess/drivers/svi318.c
| r5747 | r5748 | |
| 271 | 271 | CASSETTE_PLAY |
| 272 | 272 | }; |
| 273 | 273 | |
| 274 | static const floppy_config svi318_floppy_config = |
| 275 | { |
| 276 | FLOPPY_DRIVE_DS_80, |
| 277 | FLOPPY_OPTIONS_NAME(svi318) |
| 278 | }; |
| 279 | |
| 274 | 280 | static MACHINE_DRIVER_START( svi318_cartslot ) |
| 275 | 281 | MDRV_CARTSLOT_ADD("cart") |
| 276 | 282 | MDRV_CARTSLOT_EXTENSION_LIST("rom") |
| r5747 | r5748 | |
| 318 | 324 | MDRV_CASSETTE_ADD( "cassette", svi318_cassette_config ) |
| 319 | 325 | |
| 320 | 326 | MDRV_WD179X_ADD("wd179x", svi_wd17xx_interface ) |
| 327 | |
| 328 | MDRV_FLOPPY_2_DRIVES_ADD(svi318_floppy_config) |
| 321 | 329 | |
| 322 | 330 | MDRV_IMPORT_FROM( svi318_cartslot ) |
| 323 | 331 | MACHINE_DRIVER_END |
| r5747 | r5748 | |
| 346 | 354 | NULL |
| 347 | 355 | }; |
| 348 | 356 | |
| 349 | | static const floppy_config svi318_floppy_config = |
| 350 | | { |
| 351 | | FLOPPY_DRIVE_DS_80, |
| 352 | | FLOPPY_OPTIONS_NAME(svi318) |
| 353 | | }; |
| 354 | | |
| 355 | 357 | static MACHINE_DRIVER_START( svi328_806 ) |
| 356 | 358 | /* Basic machine hardware */ |
| 357 | 359 | MDRV_CPU_ADD( "maincpu", Z80, 3579545 ) /* 3.579545 MHz */ |