| Previous | 15994 Revisions | Next |
| r12883 Sunday 18th September, 2011 at 14:53:18 UTC by Curt Coder |
|---|
| [WD17XX] Fixed side 0 select. (nw) |
| [src/emu/machine] | wd17xx.c |
| [src/mess/drivers] | abc1600.c |
| r12882 | r12883 | |
|---|---|---|
| 1010 | 1010 | { |
| 1011 | 1011 | wd1770_state *w = get_safe_token(device); |
| 1012 | 1012 | |
| 1013 | if (wd17xx_has_side_select(device)) | |
| 1014 | wd17xx_set_side(device, (command & FDC_SIDE_CMP_T) ? 1 : 0); | |
| 1015 | ||
| 1013 | 1016 | if (command & FDC_SIDE_CMP_T) |
| 1014 | { | |
| 1015 | 1017 | w->head = (command & FDC_SIDE_CMP_S) ? 1 : 0; |
| 1016 | ||
| 1017 | if (wd17xx_has_side_select(device)) | |
| 1018 | wd17xx_set_side(device, w->head); | |
| 1019 | } | |
| 1020 | 1018 | else |
| 1021 | { | |
| 1022 | 1019 | w->head = ~0; |
| 1023 | } | |
| 1024 | 1020 | } |
| 1025 | 1021 | |
| 1026 | 1022 | /* read a sector */ |
| r12882 | r12883 | |
|---|---|---|
| 18 | 18 | - short/long reset (RSTBUT) |
| 19 | 19 | - SCC interrupt |
| 20 | 20 | - CIO (interrupt controller) |
| 21 | ||
| 22 | Task 15 BOOTE 1 MAGIC 1 | |
| 23 | Task 0 Segment 0 : 10 | |
| 24 | Z8536 '15b' Unimplemented write 20 to register 8 | |
| 25 | Task 0 BOOTE 1 MAGIC 1 | |
| 26 | Reset caused by the watchdog!!! | |
| 27 | ||
| 21 | 28 | - RTC |
| 22 | 29 | - NVRAM |
| 23 | 30 | - hard disk (Xebec S1410) |
| r12882 | r12883 | |
| 842 | 849 | |
| 843 | 850 | m_cause = (dmamap & 0x1f) << 3; |
| 844 | 851 | |
| 852 | logerror("virtual addr %06x\n", ((dmamap & 0x1f) << 16) | offset); | |
| 853 | ||
| 845 | 854 | return ((dmamap & 0x1f) << 16) | offset; |
| 846 | 855 | } |
| 847 | 856 |
| Previous | 15994 Revisions | Next |