src/mess/machine/nec765.c
| r5084 | r5085 | |
| 71 | 71 | /* state of nec765 FDD READY input */ |
| 72 | 72 | #define NEC765_FDD_READY 0x040 |
| 73 | 73 | |
| 74 | #define NEC765_MF 0x40 |
| 75 | |
| 74 | 76 | #define NEC765_RESET 0x080 |
| 75 | 77 | |
| 76 | 78 | typedef struct _nec765_t nec765_t; |
| r5084 | r5085 | |
| 353 | 355 | |
| 354 | 356 | if (!(fdc->nec765_flags & NEC765_DMA_MODE)) |
| 355 | 357 | { |
| 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 | } |
| 358 | 368 | } |
| 359 | 369 | else |
| 360 | 370 | { |