src/mess/machine/conkort.c
| r9095 | r9096 | |
| 51 | 51 | CON1 - ABC bus connector |
| 52 | 52 | CON2 - 25-pin D sub floppy connector (AMP4284) |
| 53 | 53 | SW1 - Disk drive type (SS/DS, SD/DD) |
| 54 | | S1 - |
| 54 | S1 - ABC bus card address bit 0 |
| 55 | 55 | S2 - |
| 56 | 56 | S3 - |
| 57 | 57 | S4 - |
| r9095 | r9096 | |
| 60 | 60 | S7 - |
| 61 | 61 | S8 - |
| 62 | 62 | S9 - |
| 63 | | LD1 - |
| 63 | LD1 - LED |
| 64 | 64 | |
| 65 | 65 | PCB Layout |
| 66 | 66 | ---------- |
| r9095 | r9096 | |
| 170 | 170 | 0704: rr a |
| 171 | 171 | 0706: call $073F |
| 172 | 172 | |
| 173 | | - DS/DD SS/DS jumpers |
| 174 | | - S1-S5 jumpers |
| 173 | - S2-S5 jumpers |
| 174 | - ABC80 ERR 48 on boot |
| 175 | - side select makes controller go crazy and try to WRITE_TRK |
| 175 | 176 | |
| 176 | 177 | Fast Controller |
| 177 | 178 | --------------- |
| 179 | - controller reads a couple of sectors on boot, bails out, and starts to STEP_OUT ad infinitum |
| 178 | 180 | - Z80 DMA reset command is broken (it keeps resetting A/B port addresses) |
| 179 | 181 | - status bit 0 (busy) ? |
| 182 | - 2KB RAM option |
| 183 | - some SW2 options make controller try to WRITE_TRK |
| 180 | 184 | |
| 181 | 185 | */ |
| 182 | 186 | |
| r9095 | r9096 | |
| 218 | 222 | int fdc_irq; /* floppy interrupt */ |
| 219 | 223 | int fdc_drq; /* floppy data request */ |
| 220 | 224 | int wait_enable; /* wait enable */ |
| 225 | int sel0; /* drive select 0 */ |
| 226 | int sel1; /* drive select 1 */ |
| 221 | 227 | |
| 222 | 228 | /* devices */ |
| 223 | 229 | running_device *bus; |
| r9095 | r9096 | |
| 282 | 288 | WRITE8_DEVICE_HANDLER( luxor_55_10828_cs_w ) |
| 283 | 289 | { |
| 284 | 290 | slow_t *conkort = get_safe_token_slow(device); |
| 291 | UINT8 address = 0x2c | BIT(input_port_read(device->machine, "luxor_55_10828:S1"), 0); |
| 285 | 292 | |
| 286 | | conkort->cs = (data == 0x2d); // TODO: bit 0 of this is configurable with S1 |
| 293 | conkort->cs = (data == address); |
| 287 | 294 | } |
| 288 | 295 | |
| 289 | 296 | READ8_DEVICE_HANDLER( luxor_55_10828_inp_r ) |
| r9095 | r9096 | |
| 385 | 392 | if (BIT(data, 0)) wd17xx_set_drive(device, 0); |
| 386 | 393 | if (BIT(data, 1)) wd17xx_set_drive(device, 1); |
| 387 | 394 | // if (BIT(data, 2)) wd17xx_set_drive(device, 2); |
| 395 | conkort->sel0 = BIT(data, 0); |
| 396 | conkort->sel1 = BIT(data, 1); |
| 388 | 397 | |
| 389 | 398 | /* motor enable */ |
| 390 | 399 | floppy_mon_w(conkort->image0, BIT(data, 3)); |
| r9095 | r9096 | |
| 393 | 402 | floppy_drive_set_ready_state(conkort->image1, 1, 1); |
| 394 | 403 | |
| 395 | 404 | /* disk side selection */ |
| 396 | | // wd17xx_set_side(device, BIT(data, 4)); |
| 405 | //wd17xx_set_side(device, BIT(data, 4)); |
| 397 | 406 | |
| 398 | 407 | /* wait enable */ |
| 399 | 408 | conkort->wait_enable = BIT(data, 6); |
| 400 | 409 | |
| 401 | 410 | /* FDC master reset */ |
| 402 | 411 | wd17xx_mr_w(device, BIT(data, 7)); |
| 403 | | |
| 404 | | logerror("CTRL %02x\n", data); |
| 405 | 412 | } |
| 406 | 413 | |
| 407 | 414 | static WRITE8_DEVICE_HANDLER( slow_status_w ) |
| r9095 | r9096 | |
| 481 | 488 | { |
| 482 | 489 | fast_t *conkort = get_safe_token_fast(device); |
| 483 | 490 | |
| 484 | | conkort->cs = (data == input_port_read(device->machine, "abc830:SW3")); |
| 491 | conkort->cs = (data == input_port_read(device->machine, "luxor_55_21046:SW3")); |
| 485 | 492 | } |
| 486 | 493 | |
| 487 | 494 | READ8_DEVICE_HANDLER( luxor_55_21046_stat_r ) |
| r9095 | r9096 | |
| 557 | 564 | |
| 558 | 565 | static READ8_DEVICE_HANDLER( fast_3d_r ) |
| 559 | 566 | { |
| 560 | | /* |
| 561 | | |
| 562 | | bit description |
| 563 | | |
| 564 | | 0 |
| 565 | | 1 |
| 566 | | 2 |
| 567 | | 3 |
| 568 | | 4 |
| 569 | | 5 |
| 570 | | 6 |
| 571 | | 7 |
| 572 | | |
| 573 | | */ |
| 574 | | |
| 575 | 567 | fast_t *conkort = get_safe_token_fast(device->owner()); |
| 576 | 568 | |
| 577 | 569 | conkort->busy = 0; |
| 578 | | logerror("3d read %02x\n", conkort->data_in); |
| 570 | |
| 579 | 571 | return conkort->data_in; |
| 580 | 572 | } |
| 581 | 573 | |
| 582 | 574 | static WRITE8_DEVICE_HANDLER( fast_4d_w ) |
| 583 | 575 | { |
| 584 | | /* |
| 585 | | |
| 586 | | bit description |
| 587 | | |
| 588 | | 0 |
| 589 | | 1 |
| 590 | | 2 |
| 591 | | 3 |
| 592 | | 4 |
| 593 | | 5 |
| 594 | | 6 |
| 595 | | 7 |
| 596 | | |
| 597 | | */ |
| 598 | | |
| 599 | 576 | fast_t *conkort = get_safe_token_fast(device->owner()); |
| 600 | 577 | |
| 601 | 578 | conkort->busy = 0; |
| 602 | | logerror("4d write %02x\n", data); |
| 579 | |
| 603 | 580 | conkort->data_out = data; |
| 604 | 581 | } |
| 605 | 582 | |
| r9095 | r9096 | |
| 698 | 675 | 0 3A.8 (busy) |
| 699 | 676 | 1 50-pin floppy connector pin 10, not used |
| 700 | 677 | 2 3A.12 (SW2) |
| 701 | | 3 ? |
| 678 | 3 ? GND |
| 702 | 679 | 4 SW1-1 |
| 703 | 680 | 5 SW1-2 |
| 704 | 681 | 6 SW1-3 |
| r9095 | r9096 | |
| 714 | 691 | data |= (conkort->busy & BIT(conkort->status, 0)); |
| 715 | 692 | |
| 716 | 693 | /* SW1 */ |
| 717 | | UINT8 sw1 = input_port_read(device->machine, "abc830:SW1") & 0x0f; |
| 694 | UINT8 sw1 = input_port_read(device->machine, "luxor_55_21046:SW1") & 0x0f; |
| 718 | 695 | |
| 719 | 696 | data |= sw1 << 4; |
| 720 | 697 | |
| 721 | 698 | /* SW2 */ |
| 722 | | UINT8 sw2 = input_port_read(device->machine, "abc830:SW2") & 0x0f; |
| 699 | UINT8 sw2 = input_port_read(device->machine, "luxor_55_21046:SW2") & 0x0f; |
| 723 | 700 | |
| 724 | 701 | int sw2_1 = BIT(offset, 8) & BIT(sw2, 0); |
| 725 | 702 | int sw2_2 = BIT(offset, 9) & BIT(sw2, 1); |
| r9095 | r9096 | |
| 738 | 715 | |
| 739 | 716 | static ADDRESS_MAP_START( slow_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 740 | 717 | ADDRESS_MAP_GLOBAL_MASK(0x1fff) |
| 741 | | AM_RANGE(0x0000, 0x07ff) AM_MIRROR(0x0800) AM_ROM AM_REGION("abc830:abc830", 0) |
| 718 | AM_RANGE(0x0000, 0x07ff) AM_MIRROR(0x0800) AM_ROM AM_REGION("luxor_55_10828:abc830", 0) |
| 742 | 719 | AM_RANGE(0x1000, 0x13ff) AM_MIRROR(0x0c00) AM_RAM |
| 743 | 720 | ADDRESS_MAP_END |
| 744 | 721 | |
| r9095 | r9096 | |
| 755 | 732 | static ADDRESS_MAP_START( fast_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 756 | 733 | ADDRESS_MAP_UNMAP_HIGH |
| 757 | 734 | ADDRESS_MAP_GLOBAL_MASK(0x3fff) |
| 758 | | AM_RANGE(0x0000, 0x1fff) AM_ROM AM_REGION("abc830:conkort", 0) // TODO , 0x2000 |
| 735 | AM_RANGE(0x0000, 0x1fff) AM_ROM AM_REGION("luxor_55_21046:conkort", 0x2000) |
| 759 | 736 | AM_RANGE(0x2000, 0x3fff) AM_RAM |
| 760 | 737 | ADDRESS_MAP_END |
| 761 | 738 | |
| r9095 | r9096 | |
| 776 | 753 | |
| 777 | 754 | INPUT_PORTS_START( luxor_55_10828 ) |
| 778 | 755 | PORT_START("luxor_55_10828:SW1") |
| 779 | | PORT_DIPNAME( 0x01, 0x00, "Drive 0 Sided" ) PORT_DIPLOCATION("SW1:1") |
| 780 | | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 781 | | PORT_DIPSETTING( 0x01, "Double" ) |
| 782 | | PORT_DIPNAME( 0x02, 0x00, "Drive 1 Sided" ) PORT_DIPLOCATION("SW1:2") |
| 783 | | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 784 | | PORT_DIPSETTING( 0x02, "Double" ) |
| 756 | PORT_DIPNAME( 0x01, 0x01, "Drive 0 Sided" ) PORT_DIPLOCATION("SW1:1") |
| 757 | PORT_DIPSETTING( 0x01, DEF_STR( Single ) ) |
| 758 | PORT_DIPSETTING( 0x00, "Double" ) |
| 759 | PORT_DIPNAME( 0x02, 0x02, "Drive 1 Sided" ) PORT_DIPLOCATION("SW1:2") |
| 760 | PORT_DIPSETTING( 0x02, DEF_STR( Single ) ) |
| 761 | PORT_DIPSETTING( 0x00, "Double" ) |
| 785 | 762 | PORT_DIPNAME( 0x04, 0x00, "Drive 0 Density" ) PORT_DIPLOCATION("SW1:3") |
| 786 | | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 787 | | PORT_DIPSETTING( 0x04, "Double" ) |
| 763 | PORT_DIPSETTING( 0x04, DEF_STR( Single ) ) |
| 764 | PORT_DIPSETTING( 0x00, "Double" ) |
| 788 | 765 | PORT_DIPNAME( 0x08, 0x00, "Drive 1 Density" ) PORT_DIPLOCATION("SW1:4") |
| 789 | | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 790 | | PORT_DIPSETTING( 0x08, "Double" ) |
| 766 | PORT_DIPSETTING( 0x08, DEF_STR( Single ) ) |
| 767 | PORT_DIPSETTING( 0x00, "Double" ) |
| 768 | |
| 769 | PORT_START("luxor_55_10828:S1") |
| 770 | PORT_DIPNAME( 0x01, 0x01, "Card Address" ) PORT_DIPLOCATION("S1:1") |
| 771 | PORT_DIPSETTING( 0x00, "44" ) |
| 772 | PORT_DIPSETTING( 0x01, "45" ) |
| 791 | 773 | INPUT_PORTS_END |
| 792 | 774 | |
| 793 | 775 | INPUT_PORTS_START( luxor_55_21046 ) |
| 794 | | PORT_START("abc830:SW1") |
| 776 | PORT_START("luxor_55_21046:SW1") |
| 795 | 777 | // ABC 838 |
| 796 | | PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:1,2,3,4") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2e) |
| 797 | | PORT_DIPSETTING( 0x00, DEF_STR( Unused ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2e) |
| 778 | PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:1,2,3,4") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2e) |
| 779 | PORT_DIPSETTING( 0x00, DEF_STR( Unused ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2e) |
| 798 | 780 | // ABC 830 |
| 799 | | PORT_DIPNAME( 0x01, 0x00, "Drive 0 Sided" ) PORT_DIPLOCATION("SW1:1") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 800 | | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 801 | | PORT_DIPSETTING( 0x01, "Double" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 802 | | PORT_DIPNAME( 0x02, 0x00, "Drive 1 Sided" ) PORT_DIPLOCATION("SW1:2") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 803 | | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 804 | | PORT_DIPSETTING( 0x02, "Double" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 805 | | PORT_DIPNAME( 0x04, 0x00, "Drive 0 Density" ) PORT_DIPLOCATION("SW1:3") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 806 | | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 807 | | PORT_DIPSETTING( 0x04, "Double" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 808 | | PORT_DIPNAME( 0x08, 0x00, "Drive 1 Density" ) PORT_DIPLOCATION("SW1:4") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 809 | | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 810 | | PORT_DIPSETTING( 0x08, "Double" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 781 | PORT_DIPNAME( 0x01, 0x00, "Drive 0 Sided" ) PORT_DIPLOCATION("SW1:1") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 782 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 783 | PORT_DIPSETTING( 0x01, "Double" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 784 | PORT_DIPNAME( 0x02, 0x00, "Drive 1 Sided" ) PORT_DIPLOCATION("SW1:2") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 785 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 786 | PORT_DIPSETTING( 0x02, "Double" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 787 | PORT_DIPNAME( 0x04, 0x00, "Drive 0 Density" ) PORT_DIPLOCATION("SW1:3") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 788 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 789 | PORT_DIPSETTING( 0x04, "Double" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 790 | PORT_DIPNAME( 0x08, 0x00, "Drive 1 Density" ) PORT_DIPLOCATION("SW1:4") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 791 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 792 | PORT_DIPSETTING( 0x08, "Double" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) |
| 811 | 793 | // ABC 832/834/850 |
| 812 | | PORT_DIPNAME( 0x01, 0x01, "Drive 0 Sided" ) PORT_DIPLOCATION("SW1:1") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 813 | | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 814 | | PORT_DIPSETTING( 0x01, "Double" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 815 | | PORT_DIPNAME( 0x02, 0x02, "Drive 1 Sided" ) PORT_DIPLOCATION("SW1:2") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 816 | | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 817 | | PORT_DIPSETTING( 0x02, "Double" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 818 | | PORT_DIPNAME( 0x04, 0x00, "Drive 0 Tracks" ) PORT_DIPLOCATION("SW1:3") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 819 | | PORT_DIPSETTING( 0x00, "80" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 820 | | PORT_DIPSETTING( 0x04, "40" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 821 | | PORT_DIPNAME( 0x08, 0x00, "Drive 1 Tracks" ) PORT_DIPLOCATION("SW1:4") PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 822 | | PORT_DIPSETTING( 0x00, "80" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 823 | | PORT_DIPSETTING( 0x08, "40" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 794 | PORT_DIPNAME( 0x01, 0x01, "Drive 0 Sided" ) PORT_DIPLOCATION("SW1:1") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 795 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 796 | PORT_DIPSETTING( 0x01, "Double" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 797 | PORT_DIPNAME( 0x02, 0x02, "Drive 1 Sided" ) PORT_DIPLOCATION("SW1:2") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 798 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 799 | PORT_DIPSETTING( 0x02, "Double" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 800 | PORT_DIPNAME( 0x04, 0x00, "Drive 0 Tracks" ) PORT_DIPLOCATION("SW1:3") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 801 | PORT_DIPSETTING( 0x00, "80" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 802 | PORT_DIPSETTING( 0x04, "40" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 803 | PORT_DIPNAME( 0x08, 0x00, "Drive 1 Tracks" ) PORT_DIPLOCATION("SW1:4") PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 804 | PORT_DIPSETTING( 0x00, "80" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 805 | PORT_DIPSETTING( 0x08, "40" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) |
| 824 | 806 | |
| 825 | | PORT_START("abc830:SW2") |
| 807 | PORT_START("luxor_55_21046:SW2") |
| 826 | 808 | PORT_DIPNAME( 0x0f, 0x0b, "Drive Type" ) PORT_DIPLOCATION("SW2:1,2,3,4") |
| 827 | | PORT_DIPSETTING( 0x0e, "TEAC FD55F (ABC 834)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 230 7802-01 |
| 828 | | PORT_DIPSETTING( 0x0d, "BASF 6138 (ABC 850)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 230 8440-15 |
| 829 | | PORT_DIPSETTING( 0x0c, "Micropolis 1015F (ABC 832)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 190 9711-15 |
| 830 | | PORT_DIPSETTING( 0x0b, "BASF 6118 (ABC 832)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 190 9711-16 |
| 831 | | PORT_DIPSETTING( 0x0a, "Micropolis 1115F (ABC 832)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 190 9711-17 |
| 832 | | PORT_DIPSETTING( 0x07, "BASF 6106/08 (ABC 830)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) // 190 9206-16 |
| 833 | | PORT_DIPSETTING( 0x06, "MPI 51 (ABC 830)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) // 190 9206-16 |
| 834 | | PORT_DIPSETTING( 0x01, "BASF 6105 (ABC 838)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2e) |
| 835 | | PORT_DIPSETTING( 0x00, "BASF 6106 (ABC 838)" ) PORT_CONDITION("abc830:SW3", 0x7f, PORTCOND_EQUALS, 0x2e) // 230 8838-15 |
| 809 | PORT_DIPSETTING( 0x0e, "TEAC FD55F (ABC 834)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 230 7802-01 |
| 810 | PORT_DIPSETTING( 0x0d, "BASF 6138 (ABC 850)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 230 8440-15 |
| 811 | PORT_DIPSETTING( 0x0c, "Micropolis 1015F (ABC 832)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 190 9711-15 |
| 812 | PORT_DIPSETTING( 0x0b, "BASF 6118 (ABC 832)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 190 9711-16 |
| 813 | PORT_DIPSETTING( 0x0a, "Micropolis 1115F (ABC 832)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2c) // 190 9711-17 |
| 814 | PORT_DIPSETTING( 0x07, "BASF 6106/08 (ABC 830)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) // 190 9206-16 |
| 815 | PORT_DIPSETTING( 0x06, "MPI 51 (ABC 830)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2d) // 190 9206-16 |
| 816 | PORT_DIPSETTING( 0x01, "BASF 6105 (ABC 838)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2e) |
| 817 | PORT_DIPSETTING( 0x00, "BASF 6106 (ABC 838)" ) PORT_CONDITION("luxor_55_21046:SW3", 0x7f, PORTCOND_EQUALS, 0x2e) // 230 8838-15 |
| 836 | 818 | |
| 837 | | PORT_START("abc830:SW3") |
| 819 | PORT_START("luxor_55_21046:SW3") |
| 838 | 820 | PORT_DIPNAME( 0x7f, 0x2c, "Card Address" ) PORT_DIPLOCATION("SW3:1,2,3,4,5,6,7") |
| 839 | 821 | PORT_DIPSETTING( 0x2c, "44 (ABC 832/834/850)" ) |
| 840 | 822 | PORT_DIPSETTING( 0x2d, "45 (ABC 830)" ) |
| 841 | 823 | PORT_DIPSETTING( 0x2e, "46 (ABC 838)" ) |
| 824 | |
| 825 | PORT_START("luxor_55_21046:S6") |
| 826 | PORT_DIPNAME( 0x01, 0x01, "RAM Size" ) PORT_DIPLOCATION("S6:1") |
| 827 | PORT_DIPSETTING( 0x00, "2 KB" ) |
| 828 | PORT_DIPSETTING( 0x01, "8 KB" ) |
| 829 | |
| 830 | PORT_START("luxor_55_21046:S8") |
| 831 | PORT_DIPNAME( 0x01, 0x01, "Drive Type" ) PORT_DIPLOCATION("S8:1") |
| 832 | PORT_DIPSETTING( 0x00, "8\"" ) |
| 833 | PORT_DIPSETTING( 0x01, "5.25\"" ) |
| 834 | |
| 835 | PORT_START("luxor_55_21046:S9") |
| 836 | PORT_DIPNAME( 0x01, 0x01, "RDY Pin" ) PORT_DIPLOCATION("S9:1") |
| 837 | PORT_DIPSETTING( 0x00, "P2-6 (8\")" ) |
| 838 | PORT_DIPSETTING( 0x01, "P2-34 (5.25\")" ) |
| 842 | 839 | INPUT_PORTS_END |
| 843 | 840 | |
| 844 | 841 | /* Z80 PIO */ |
| r9095 | r9096 | |
| 876 | 873 | |
| 877 | 874 | slow_t *conkort = get_safe_token_slow(device->owner()); |
| 878 | 875 | |
| 879 | | UINT8 data = 4; |
| 876 | UINT8 data = 0x04; |
| 880 | 877 | |
| 881 | 878 | /* single/double sided drive */ |
| 882 | | // data |= 0x01; |
| 879 | UINT8 sw1 = input_port_read(device->machine, "luxor_55_10828:SW1") & 0x0f; |
| 880 | int ds0 = conkort->sel0 ? BIT(sw1, 0) : 1; |
| 881 | int ds1 = conkort->sel1 ? BIT(sw1, 1) : 1; |
| 882 | data |= !(ds0 & ds1); |
| 883 | 883 | |
| 884 | 884 | /* single/double density drive */ |
| 885 | | data |= 0x02; |
| 885 | int dd0 = conkort->sel0 ? BIT(sw1, 2) : 1; |
| 886 | int dd1 = conkort->sel1 ? BIT(sw1, 3) : 1; |
| 887 | data |= !(dd0 & dd1) << 1; |
| 886 | 888 | |
| 887 | 889 | /* radial/binary drive select */ |
| 888 | 890 | data |= 0x10; |
| r9095 | r9096 | |
| 1131 | 1133 | ROM_END |
| 1132 | 1134 | |
| 1133 | 1135 | ROM_START( luxor_55_21046 ) |
| 1134 | | ROM_REGION( 0x10000, "conkort", ROMREGION_LOADBYNAME ) |
| 1135 | | ROM_LOAD( "fast108.6cd", 0x0000, 0x2000, CRC(229764cb) SHA1(a2e2f6f49c31b827efc62f894de9a770b65d109d) ) // Luxor v1.08 |
| 1136 | | ROM_LOAD( "fast207.6cd", 0x0000, 0x2000, CRC(86622f52) SHA1(61ad271de53152c1640c0b364fce46d1b0b4c7e2) ) // DIAB v2.07 |
| 1137 | | 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 |
| 1136 | ROM_REGION( 0x4000, "conkort", ROMREGION_LOADBYNAME ) // A13 is always high |
| 1137 | ROM_LOAD( "fast108.6cd", 0x2000, 0x2000, CRC(229764cb) SHA1(a2e2f6f49c31b827efc62f894de9a770b65d109d) ) // Luxor v1.08 |
| 1138 | ROM_LOAD( "fast207.6cd", 0x2000, 0x2000, CRC(86622f52) SHA1(61ad271de53152c1640c0b364fce46d1b0b4c7e2) ) // DIAB v2.07 |
| 1139 | ROM_LOAD( "cntr 1.07 6490318-07.6cd", 0x0000, 0x4000, CRC(db8c1c0e) SHA1(8bccd5bc72124984de529ee058df779f06d2c1d5) ) // PROM v1.07, Art N/O 6490318-07. Luxor Styrkort Art. N/O 55 21046-41. Date 1985-07-03 |
| 1138 | 1140 | ROM_END |
| 1139 | 1141 | |
| 1140 | 1142 | ROM_START( myab_turbo_kontroller ) |
| r9095 | r9096 | |
| 1186 | 1188 | state_save_register_device_item(device, 0, conkort->fdc_irq); |
| 1187 | 1189 | state_save_register_device_item(device, 0, conkort->fdc_drq); |
| 1188 | 1190 | state_save_register_device_item(device, 0, conkort->wait_enable); |
| 1191 | state_save_register_device_item(device, 0, conkort->sel0); |
| 1192 | state_save_register_device_item(device, 0, conkort->sel1); |
| 1189 | 1193 | |
| 1190 | 1194 | /* patch out protection checks */ |
| 1191 | 1195 | UINT8 *rom = device->subregion("abc830")->base(); |
| r9095 | r9096 | |
| 1259 | 1263 | conkort->image0 = device->subdevice(FLOPPY_0); |
| 1260 | 1264 | conkort->image1 = device->subdevice(FLOPPY_1); |
| 1261 | 1265 | |
| 1266 | conkort->dma_irq = 0; |
| 1262 | 1267 | conkort->fdc_irq = 0; |
| 1263 | 1268 | conkort->busy = 0; |
| 1264 | 1269 | |
| r9095 | r9096 | |
| 1268 | 1273 | state_save_register_device_item(device, 0, conkort->data_in); |
| 1269 | 1274 | state_save_register_device_item(device, 0, conkort->data_out); |
| 1270 | 1275 | state_save_register_device_item(device, 0, conkort->fdc_irq); |
| 1276 | state_save_register_device_item(device, 0, conkort->dma_irq); |
| 1277 | state_save_register_device_item(device, 0, conkort->busy); |
| 1271 | 1278 | } |
| 1272 | 1279 | |
| 1273 | 1280 | /*------------------------------------------------- |