Previous 15994 Revisions Next

r5085 Friday 26th June, 2009 at 10:15:26 UTC by Curt Coder
[NEC765] Fixed interrupt timing in FM/MFM modes.
[src/mess/machine]nec765.c

src/mess/machine/nec765.c
r5084r5085
7171/* state of nec765 FDD READY input */
7272#define NEC765_FDD_READY 0x040
7373
74#define NEC765_MF   0x40
75
7476#define NEC765_RESET 0x080
7577
7678typedef struct _nec765_t nec765_t;
r5084r5085
353355
354356      if (!(fdc->nec765_flags & NEC765_DMA_MODE))
355357      {
356         /* for pcw */
357         timer_reset(fdc->timer, ATTOTIME_IN_USEC(27));
358         if (fdc->nec765_command_bytes[0] & NEC765_MF)
359         {
360            /* MFM */
361            timer_reset(fdc->timer, ATTOTIME_IN_USEC(13));
362         }
363         else
364         {
365            /* FM */
366            timer_reset(fdc->timer, ATTOTIME_IN_USEC(27));
367         }
358368      }
359369      else
360370      {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team