src/mess/machine/pc_fdc.c
| r5745 | r5746 | |
| 268 | 268 | int selected_drive; |
| 269 | 269 | int floppy_count; |
| 270 | 270 | |
| 271 | | floppy_count = 4;//device_count(machine, IO_FLOPPY); |
| 271 | floppy_count = floppy_get_count(machine); |
| 272 | 272 | |
| 273 | 273 | if (floppy_count > (fdc->digital_output_register & 0x03)) |
| 274 | 274 | floppy_drive_set_ready_state(floppy_get_device(machine, fdc->digital_output_register & 0x03), 1, 0); |
| r5745 | r5746 | |
| 375 | 375 | { |
| 376 | 376 | int floppy_count; |
| 377 | 377 | |
| 378 | | floppy_count = 4;//device_count(machine, IO_FLOPPY); |
| 378 | floppy_count = floppy_get_count(machine); |
| 379 | 379 | |
| 380 | 380 | /* set floppy drive motor state */ |
| 381 | 381 | if (floppy_count > 0) |
src/mess/devices/flopdrv.c
| r5745 | r5746 | |
| 822 | 822 | return drive; |
| 823 | 823 | } |
| 824 | 824 | |
| 825 | int floppy_get_count(running_machine *machine) |
| 826 | { |
| 827 | int cnt = 0; |
| 828 | if (devtag_get_device(machine,FLOPPY_0)) cnt++; |
| 829 | if (devtag_get_device(machine,FLOPPY_1)) cnt++; |
| 830 | if (devtag_get_device(machine,FLOPPY_2)) cnt++; |
| 831 | if (devtag_get_device(machine,FLOPPY_3)) cnt++; |
| 832 | return cnt; |
| 833 | } |
| 825 | 834 | /************************************* |
| 826 | 835 | * |
| 827 | 836 | * Device specification function |