Previous 15994 Revisions Next

r5442 Sunday 16th August, 2009 at 00:31:12 UTC by Barry Rodewald
[PCW] Fixed drive ready state.
[src/mess/drivers]pcw.c

src/mess/drivers/pcw.c
r5441r5442
361361   data = pcw_get_sys_status(space->machine);
362362   /* clear int counter */
363363   pcw_interrupt_counter = 0;
364   /* check interrupts */
365   pcw_update_irqs(space->machine);
364366   /* return data */
365367   LOG(("SYS: IRQ counter read, returning %02x\n",data));
366368   return data;
r5441r5442
529531      {
530532         floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 1);
531533         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);
534536      }
535537      break;
536538
r5441r5442
539541      {
540542         floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 0);
541543         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);
544546      }
545547      break;
546548

Previous 15994 Revisions Next


© 1998-2018 The MESS Team