src/mess/machine/nec765.c
| r5442 | r5443 | |
| 1826 | 1826 | "Lock" /* [14] */ |
| 1827 | 1827 | }; |
| 1828 | 1828 | |
| 1829 | | const device_config *img = current_image(device); |
| 1829 | const device_config *img; |
| 1830 | 1830 | const char *cmd = NULL; |
| 1831 | 1831 | chrn_id id; |
| 1832 | 1832 | |
| r5442 | r5443 | |
| 1862 | 1862 | |
| 1863 | 1863 | case 0x04: /* sense drive status */ |
| 1864 | 1864 | nec765_setup_drive_and_side(device); |
| 1865 | | |
| 1865 | img = current_image(device); |
| 1866 | |
| 1866 | 1867 | fdc->nec765_status[3] = fdc->drive | (fdc->side<<2); |
| 1867 | 1868 | |
| 1868 | 1869 | if (img) |
| r5442 | r5443 | |
| 1900 | 1901 | |
| 1901 | 1902 | case 0x0a: /* read id */ |
| 1902 | 1903 | nec765_setup_drive_and_side(device); |
| 1903 | | |
| 1904 | img = current_image(device); |
| 1905 | |
| 1904 | 1906 | fdc->nec765_status[0] = fdc->drive | (fdc->side<<2); |
| 1905 | 1907 | fdc->nec765_status[1] = 0; |
| 1906 | 1908 | fdc->nec765_status[2] = 0; |
| r5442 | r5443 | |
| 2050 | 2052 | case 0x02: |
| 2051 | 2053 | /* read a track */ |
| 2052 | 2054 | nec765_setup_drive_and_side(device); |
| 2053 | | |
| 2055 | img = current_image(device); |
| 2054 | 2056 | fdc->nec765_status[0] = fdc->drive | (fdc->side<<2); |
| 2055 | 2057 | fdc->nec765_status[1] = 0; |
| 2056 | 2058 | fdc->nec765_status[2] = 0; |
src/mess/drivers/pcw.c
| r5442 | r5443 | |
| 371 | 371 | |
| 372 | 372 | static WRITE8_HANDLER(pcw_bank_select_w) |
| 373 | 373 | { |
| 374 | | LOG(("BANK: %2x %x\n",offset, data)); |
| 374 | //LOG(("BANK: %2x %x\n",offset, data)); |
| 375 | 375 | pcw_banks[offset] = data; |
| 376 | 376 | |
| 377 | 377 | pcw_update_mem(space->machine, offset, data); |
| r5442 | r5443 | |
| 531 | 531 | { |
| 532 | 532 | floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 1); |
| 533 | 533 | floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 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 | floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 1,1); |
| 535 | floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 1), 1,1); |
| 536 | 536 | } |
| 537 | 537 | break; |
| 538 | 538 | |
| r5442 | r5443 | |
| 541 | 541 | { |
| 542 | 542 | floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 0); |
| 543 | 543 | floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 1), 0); |
| 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 | floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 0,1); |
| 545 | floppy_drive_set_ready_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 1), 0,1); |
| 546 | 546 | } |
| 547 | 547 | break; |
| 548 | 548 | |