Previous 15994 Revisions Next

r5443 Sunday 16th August, 2009 at 10:57:18 UTC by Barry Rodewald
[NEC765] Corrected image used in some commands. [PCW] Reverted previous change.
[src/mess/drivers]pcw.c
[src/mess/machine]nec765.c

src/mess/machine/nec765.c
r5442r5443
18261826      "Lock"                  /* [14] */
18271827   };
18281828
1829   const device_config *img = current_image(device);
1829   const device_config *img;
18301830   const char *cmd = NULL;
18311831   chrn_id id;
18321832
r5442r5443
18621862
18631863      case 0x04:  /* sense drive status */
18641864         nec765_setup_drive_and_side(device);
1865
1865         img = current_image(device);
1866         
18661867         fdc->nec765_status[3] = fdc->drive | (fdc->side<<2);
18671868
18681869         if (img)
r5442r5443
19001901
19011902      case 0x0a:      /* read id */
19021903         nec765_setup_drive_and_side(device);
1903
1904         img = current_image(device);
1905         
19041906         fdc->nec765_status[0] = fdc->drive | (fdc->side<<2);
19051907         fdc->nec765_status[1] = 0;
19061908         fdc->nec765_status[2] = 0;
r5442r5443
20502052      case 0x02:
20512053         /* read a track */
20522054         nec765_setup_drive_and_side(device);
2053
2055         img = current_image(device);
20542056         fdc->nec765_status[0] = fdc->drive | (fdc->side<<2);
20552057         fdc->nec765_status[1] = 0;
20562058         fdc->nec765_status[2] = 0;
src/mess/drivers/pcw.c
r5442r5443
371371
372372static WRITE8_HANDLER(pcw_bank_select_w)
373373{
374   LOG(("BANK: %2x %x\n",offset, data));
374   //LOG(("BANK: %2x %x\n",offset, data));
375375   pcw_banks[offset] = data;
376376
377377   pcw_update_mem(space->machine, offset, data);
r5442r5443
531531      {
532532         floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 1);
533533         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);
536536      }
537537      break;
538538
r5442r5443
541541      {
542542         floppy_drive_set_motor_state(image_from_devtype_and_index(space->machine, IO_FLOPPY, 0), 0);
543543         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);
546546      }
547547      break;
548548

Previous 15994 Revisions Next


© 1998-2018 The MESS Team