Previous 199869 Revisions Next

r31514 Tuesday 5th August, 2014 at 02:25:20 UTC by Barry Rodewald
amstrad: bit 0 is not used in selecting the FDD motor control, fixes disk access under SymbOS.
[src/mess/machine]amstrad.c

trunk/src/mess/machine/amstrad.c
r31513r31514
20752075
20762076            switch (b8b0)
20772077            {
2078            case 0x00: {
2079               /* FDC Motor Control - Bit 0 defines the state of the FDD motor:
2080                * "1" the FDD motor will be active.
2081                * "0" the FDD motor will be in-active.*/
2082               floppy_image_device *floppy;
2083               floppy = machine().device<floppy_connector>(":upd765:0")->get_device();
2084               if(floppy)
2085                  floppy->mon_w(!BIT(data, 0));
2086               floppy = machine().device<floppy_connector>(":upd765:1")->get_device();
2087               if(floppy)
2088                  floppy->mon_w(!BIT(data, 0));
2089               break;
2090            }
2078            case 0x00:
2079            case 0x01:
2080               {
2081                  /* FDC Motor Control - Bit 0 defines the state of the FDD motor:
2082                   * "1" the FDD motor will be active.
2083                   * "0" the FDD motor will be in-active.*/
2084                  floppy_image_device *floppy;
2085                  floppy = machine().device<floppy_connector>(":upd765:0")->get_device();
2086                  if(floppy)
2087                     floppy->mon_w(!BIT(data, 0));
2088                  floppy = machine().device<floppy_connector>(":upd765:1")->get_device();
2089                  if(floppy)
2090                     floppy->mon_w(!BIT(data, 0));
2091                  break;
2092               }
20912093
20922094            case 0x03: /* Write Data register of FDC */
20932095               m_fdc->fifo_w(space, 0,data);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team