src/mess/machine/applefdc.c
| r9569 | r9570 | |
| 62 | 62 | { |
| 63 | 63 | APPLEFDC_APPLE2, /* classic Apple II disk controller (pre-IWM) */ |
| 64 | 64 | APPLEFDC_IWM, /* Integrated Woz Machine */ |
| 65 | | APPLEFDC_SWIM /* Steve Woz Integrated Machine (NYI) */ |
| 65 | APPLEFDC_SWIM /* Sander/Woz Integrated Machine */ |
| 66 | 66 | } applefdc_t; |
| 67 | 67 | |
| 68 | 68 | |
| r9569 | r9570 | |
| 308 | 308 | else |
| 309 | 309 | { |
| 310 | 310 | /* |
| 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 | */ |
| 315 | 315 | if (LOG_APPLEFDC) |
| 316 | 316 | { |
| 317 | 317 | if ((fdc->mode & IWM_MODE_LATCHMODE) == 0x00) |
| r9569 | r9570 | |
| 361 | 361 | else if (!iwm_enable2(device)) |
| 362 | 362 | { |
| 363 | 363 | /* |
| 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 | */ |
| 368 | 368 | if (LOG_APPLEFDC) |
| 369 | 369 | { |
| 370 | 370 | if ((fdc->mode & IWM_MODE_LATCHMODE) == 0) |
| r9569 | r9570 | |
| 534 | 534 | break; |
| 535 | 535 | |
| 536 | 536 | case APPLEFDC_SWIM: |
| 537 | | fatalerror("NYI"); |
| 537 | if ((offset & 1) == 0) |
| 538 | result = applefdc_read_reg(device, fdc->lines & (IWM_Q6 | IWM_Q7)); |
| 538 | 539 | break; |
| 539 | 540 | } |
| 540 | 541 | return result; |
| r9569 | r9570 | |
| 584 | 585 | break; |
| 585 | 586 | |
| 586 | 587 | case APPLEFDC_SWIM: |
| 587 | | fatalerror("NYI"); |
| 588 | if (offset & 1) |
| 589 | applefdc_write_reg(device, data); |
| 588 | 590 | break; |
| 589 | 591 | } |
| 590 | 592 | } |