src/mess/machine/conkort.c
| r9068 | r9069 | |
| 65 | 65 | PCB Layout |
| 66 | 66 | ---------- |
| 67 | 67 | |
| 68 | | 55 21046-03 |
| 68 | 55 11046-03 |
| 69 | 69 | |
| 70 | 70 | |-----------------------------------| |
| 71 | 71 | | LD1 SW1 CON2 | |
| 72 | 72 | | | |
| 73 | | | CON3 S9 | |
| 74 | | | S8 | |
| 73 | | CON3 S8 | |
| 74 | | S9 | |
| 75 | 75 | | LS240 LS174 7406 7406 | |
| 76 | 76 | | | |
| 77 | 77 | | LS174 FDC9229 LS107 LS266 | |
| r9068 | r9069 | |
| 176 | 176 | |
| 177 | 177 | Fast Controller |
| 178 | 178 | --------------- |
| 179 | - drive select |
| 180 | - side select |
| 181 | - motor on |
| 182 | - Z80 NMI |
| 183 | - FDC INTRQ |
| 179 | 184 | - CPU is in HALT waiting for the FDC interrupt after commands |
| 180 | 185 | |
| 181 | 186 | */ |
| r9068 | r9069 | |
| 200 | 205 | #define Z80PIO_TAG "3a" |
| 201 | 206 | #define FD1791_TAG "7a" |
| 202 | 207 | |
| 203 | | #define Z80DMA_TAG "z80dma" |
| 204 | | #define SAB1793_TAG "sab1793" |
| 208 | //#define Z80_TAG "5ab" |
| 209 | #define Z80DMA_TAG "6ab" |
| 210 | #define SAB1793_TAG "7ab" |
| 211 | #define FDC9229_TAG "8b" |
| 205 | 212 | |
| 206 | 213 | /*************************************************************************** |
| 207 | 214 | TYPE DEFINITIONS |
| r9068 | r9069 | |
| 555 | 562 | conkort->status = data; |
| 556 | 563 | } |
| 557 | 564 | |
| 565 | static WRITE8_DEVICE_HANDLER( fast_fdc_ctrl_w ) |
| 566 | { |
| 567 | /* |
| 568 | |
| 569 | bit description |
| 570 | |
| 571 | 0 FD1793 _MR |
| 572 | 1 FD1793 _DDEN, FDC9229 DENS |
| 573 | 2 FDC9229 MINI |
| 574 | 3 ? |
| 575 | 4 FDC9229 P2 |
| 576 | 5 FDC9229 P1 |
| 577 | 6 |
| 578 | 7 |
| 579 | |
| 580 | FDC9229 P0 is grounded |
| 581 | |
| 582 | */ |
| 583 | |
| 584 | /* master reset */ |
| 585 | wd17xx_mr_w(device, BIT(data, 0)); |
| 586 | |
| 587 | /* density select */ |
| 588 | wd17xx_dden_w(device, BIT(data, 1)); |
| 589 | |
| 590 | logerror("0x30 %02x\n", data); |
| 591 | } |
| 592 | |
| 593 | static WRITE8_DEVICE_HANDLER( fast_other_w ) |
| 594 | { |
| 595 | /* |
| 596 | |
| 597 | bit description |
| 598 | |
| 599 | 0 |
| 600 | 1 |
| 601 | 2 |
| 602 | 3 |
| 603 | 4 |
| 604 | 5 |
| 605 | 6 |
| 606 | 7 |
| 607 | |
| 608 | this has to be drive/side select |
| 609 | |
| 610 | */ |
| 611 | logerror("0x40 %02x\n", data); |
| 612 | } |
| 613 | |
| 558 | 614 | /* Memory Maps */ |
| 559 | 615 | |
| 560 | 616 | // Slow Controller |
| r9068 | r9069 | |
| 585 | 641 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x0f) AM_DEVREAD(SAB1793_TAG, fast_data_r) |
| 586 | 642 | AM_RANGE(0x10, 0x10) AM_MIRROR(0x0f) AM_DEVWRITE(SAB1793_TAG, fast_data_w) |
| 587 | 643 | AM_RANGE(0x20, 0x20) AM_MIRROR(0x0f) AM_DEVWRITE(SAB1793_TAG, fast_status_w) |
| 588 | | // AM_RANGE(0x30, 0x30) AM_MIRROR(0x0f) AM_DEVWRITE() |
| 589 | | // AM_RANGE(0x40, 0x40) AM_MIRROR(0x0f) AM_DEVWRITE() |
| 644 | AM_RANGE(0x30, 0x30) AM_MIRROR(0x0f) AM_DEVWRITE(SAB1793_TAG, fast_fdc_ctrl_w) |
| 645 | AM_RANGE(0x40, 0x40) AM_MIRROR(0x0f) AM_DEVWRITE(SAB1793_TAG, fast_other_w) |
| 590 | 646 | AM_RANGE(0x50, 0x50) AM_MIRROR(0x0f) AM_READ_PORT("SW1") |
| 591 | 647 | AM_RANGE(0x60, 0x63) AM_MIRROR(0x0c) AM_DEVREAD(SAB1793_TAG, wd17xx_r) |
| 592 | 648 | AM_RANGE(0x70, 0x73) AM_MIRROR(0x0c) AM_DEVWRITE(SAB1793_TAG, wd17xx_w) |
| r9068 | r9069 | |
| 857 | 913 | |
| 858 | 914 | /* FD1793 */ |
| 859 | 915 | |
| 916 | static WRITE_LINE_DEVICE_HANDLER( fast_fd1793_intrq_w ) |
| 917 | { |
| 918 | fast_t *conkort = get_safe_token_fast(device->owner()); |
| 919 | |
| 920 | //if (INTRQ enabled) |
| 921 | { |
| 922 | cpu_set_input_line(conkort->cpu, INPUT_LINE_NMI, state); |
| 923 | } |
| 924 | } |
| 925 | |
| 860 | 926 | static const wd17xx_interface fast_wd17xx_interface = |
| 861 | 927 | { |
| 862 | 928 | DEVCB_NULL, |
| 863 | | DEVCB_NULL, // TODO connect me! |
| 929 | DEVCB_LINE(fast_fd1793_intrq_w), |
| 864 | 930 | DEVCB_DEVICE_LINE(Z80DMA_TAG, z80dma_rdy_w), |
| 865 | 931 | { FLOPPY_0, FLOPPY_1, NULL, NULL } |
| 866 | 932 | }; |
| r9068 | r9069 | |
| 872 | 938 | DEVCB_NULL, |
| 873 | 939 | DEVCB_NULL, |
| 874 | 940 | DEVCB_NULL, |
| 875 | | FLOPPY_STANDARD_5_25_DSHD, |
| 941 | FLOPPY_STANDARD_5_25_DSHD, // FIXME |
| 876 | 942 | FLOPPY_OPTIONS_NAME(abc80), |
| 877 | 943 | NULL |
| 878 | 944 | }; |
| r9068 | r9069 | |
| 922 | 988 | |
| 923 | 989 | ROM_START( luxor_55_21046 ) |
| 924 | 990 | ROM_REGION( 0x10000, "conkort", ROMREGION_LOADBYNAME ) |
| 925 | | ROM_LOAD( "fast108.bin", 0x0000, 0x2000, CRC(229764cb) SHA1(a2e2f6f49c31b827efc62f894de9a770b65d109d) ) // Luxor v1.08 |
| 926 | | ROM_LOAD( "fast207.bin", 0x0000, 0x2000, CRC(86622f52) SHA1(61ad271de53152c1640c0b364fce46d1b0b4c7e2) ) // DIAB v2.07 |
| 927 | | ROM_LOAD( "6490318-07.bin", 0x0000, 0x2000, CRC(06ae1fe8) SHA1(ad1d9d0c192539af70cb95223263915a09693ef8) ) // PROM v1.07, Art N/O 6490318-07. Luxor Styrkort Art. N/O 55 21046-41. Date 1985-07-03 |
| 991 | ROM_LOAD( "fast108.6cd", 0x0000, 0x2000, CRC(229764cb) SHA1(a2e2f6f49c31b827efc62f894de9a770b65d109d) ) // Luxor v1.08 |
| 992 | ROM_LOAD( "fast207.6cd", 0x0000, 0x2000, CRC(86622f52) SHA1(61ad271de53152c1640c0b364fce46d1b0b4c7e2) ) // DIAB v2.07 |
| 993 | ROM_LOAD( "cntr 1.07 6490318-07.6cd", 0x0000, 0x2000, CRC(06ae1fe8) SHA1(ad1d9d0c192539af70cb95223263915a09693ef8) ) // PROM v1.07, Art N/O 6490318-07. Luxor Styrkort Art. N/O 55 21046-41. Date 1985-07-03 |
| 928 | 994 | ROM_END |
| 929 | 995 | |
| 930 | 996 | ROM_START( myab_turbo_kontroller ) |