src/mess/drivers/pcw.c
| r5441 | r5442 | |
| 361 | 361 | data = pcw_get_sys_status(space->machine); |
| 362 | 362 | /* clear int counter */ |
| 363 | 363 | pcw_interrupt_counter = 0; |
| 364 | /* check interrupts */ |
| 365 | pcw_update_irqs(space->machine); |
| 364 | 366 | /* return data */ |
| 365 | 367 | LOG(("SYS: IRQ counter read, returning %02x\n",data)); |
| 366 | 368 | return data; |
| r5441 | r5442 | |
| 529 | 531 | { |
| 530 | 532 | floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 1); |
| 531 | 533 | floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 1), 1); |
| 532 | | floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 1,1); |
| 533 | | floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 1), 1,1); |
| 534 | floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 1,0); |
| 535 | floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 1), 1,0); |
| 534 | 536 | } |
| 535 | 537 | break; |
| 536 | 538 | |
| r5441 | r5442 | |
| 539 | 541 | { |
| 540 | 542 | floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 0); |
| 541 | 543 | floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 1), 0); |
| 542 | | floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 1,1); |
| 543 | | floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 1), 1,1); |
| 544 | floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 0,0); |
| 545 | floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 1), 0,0); |
| 544 | 546 | } |
| 545 | 547 | break; |
| 546 | 548 | |