Previous 15994 Revisions Next

r9570 Saturday 13th November, 2010 at 20:50:14 UTC by R. Belmont
[MAC] Don't fatalerror if FDC type is SWIM
[src/mess/machine]applefdc.c

src/mess/machine/applefdc.c
r9569r9570
6262{
6363   APPLEFDC_APPLE2,   /* classic Apple II disk controller (pre-IWM) */
6464   APPLEFDC_IWM,      /* Integrated Woz Machine */
65   APPLEFDC_SWIM      /* Steve Woz Integrated Machine (NYI) */
65   APPLEFDC_SWIM      /* Sander/Woz Integrated Machine */
6666} applefdc_t;
6767
6868
r9569r9570
308308         else
309309         {
310310            /*
311                 * Right now, this function assumes latch mode; which is always used for
312                 * 3.5 inch drives.  Eventually we should check to see if latch mode is
313                 * off
314                 */
311                       * Right now, this function assumes latch mode; which is always used for
312                       * 3.5 inch drives.  Eventually we should check to see if latch mode is
313                       * off
314                       */
315315            if (LOG_APPLEFDC)
316316            {
317317               if ((fdc->mode & IWM_MODE_LATCHMODE) == 0x00)
r9569r9570
361361         else if (!iwm_enable2(device))
362362         {
363363            /*
364                 * Right now, this function assumes latch mode; which is always used for
365                 * 3.5 inch drives.  Eventually we should check to see if latch mode is
366                 * off
367                 */
364                       * Right now, this function assumes latch mode; which is always used for
365                       * 3.5 inch drives.  Eventually we should check to see if latch mode is
366                       * off
367                       */
368368            if (LOG_APPLEFDC)
369369            {
370370               if ((fdc->mode & IWM_MODE_LATCHMODE) == 0)
r9569r9570
534534         break;
535535
536536      case APPLEFDC_SWIM:
537         fatalerror("NYI");
537         if ((offset & 1) == 0)
538            result = applefdc_read_reg(device, fdc->lines & (IWM_Q6 | IWM_Q7));
538539         break;
539540   }
540541   return result;
r9569r9570
584585         break;
585586
586587      case APPLEFDC_SWIM:
587         fatalerror("NYI");
588         if (offset & 1)
589            applefdc_write_reg(device, data);
588590         break;
589591   }
590592}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team