trunk/src/emu/bus/abcbus/abc890.c
| r26151 | r26152 | |
| 77 | 77 | //------------------------------------------------- |
| 78 | 78 | |
| 79 | 79 | static MACHINE_CONFIG_FRAGMENT( abc850 ) |
| 80 | | MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "fast") |
| 81 | | MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("fast", abc850_fast) |
| 80 | MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "abc850fdd") |
| 82 | 81 | MCFG_ABCBUS_SLOT_ADD("io2", abcbus_cards, "xebec") |
| 83 | 82 | MCFG_DEVICE_CARD_DEFAULT_BIOS("xebec", "ro202") |
| 84 | 83 | MCFG_ABCBUS_SLOT_ADD("io3", abcbus_cards, NULL) |
| r26151 | r26152 | |
| 105 | 104 | //------------------------------------------------- |
| 106 | 105 | |
| 107 | 106 | static MACHINE_CONFIG_FRAGMENT( abc852 ) |
| 108 | | MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "fast") |
| 109 | | MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("fast", abc850_fast) |
| 107 | MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "abc850fdd") |
| 110 | 108 | MCFG_ABCBUS_SLOT_ADD("io2", abcbus_cards, "xebec") |
| 111 | 109 | MCFG_DEVICE_CARD_DEFAULT_BIOS("xebec", "basf6185") |
| 112 | 110 | MCFG_ABCBUS_SLOT_ADD("io3", abcbus_cards, NULL) |
| r26151 | r26152 | |
| 133 | 131 | //------------------------------------------------- |
| 134 | 132 | |
| 135 | 133 | static MACHINE_CONFIG_FRAGMENT( abc856 ) |
| 136 | | MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "fast") |
| 137 | | MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("fast", abc850_fast) |
| 134 | MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "abc850fdd") |
| 138 | 135 | MCFG_ABCBUS_SLOT_ADD("io2", abcbus_cards, "xebec") |
| 139 | 136 | MCFG_DEVICE_CARD_DEFAULT_BIOS("xebec", "micr1325") |
| 140 | 137 | MCFG_ABCBUS_SLOT_ADD("io3", abcbus_cards, NULL) |
trunk/src/emu/bus/abcbus/lux21046.c
| r26151 | r26152 | |
| 101 | 101 | const device_type ABC832 = &device_creator<abc832_device>; |
| 102 | 102 | const device_type ABC834 = &device_creator<abc834_device>; |
| 103 | 103 | const device_type ABC838 = &device_creator<abc838_device>; |
| 104 | const device_type ABC850_FLOPPY = &device_creator<abc850_floppy_device>; |
| 104 | 105 | |
| 105 | 106 | |
| 106 | 107 | //------------------------------------------------- |
| r26151 | r26152 | |
| 317 | 318 | |
| 318 | 319 | |
| 319 | 320 | //------------------------------------------------- |
| 321 | // MACHINE_CONFIG( abc850 ) |
| 322 | //------------------------------------------------- |
| 323 | |
| 324 | static MACHINE_CONFIG_DERIVED( abc850, luxor_55_21046 ) |
| 325 | MCFG_DEVICE_MODIFY(SAB1793_TAG":1") |
| 326 | MCFG_DEVICE_SLOT_INTERFACE(abc_floppies, NULL, false) |
| 327 | MACHINE_CONFIG_END |
| 328 | |
| 329 | |
| 330 | //------------------------------------------------- |
| 320 | 331 | // machine_config_additions - device-specific |
| 321 | 332 | // machine configurations |
| 322 | 333 | //------------------------------------------------- |
| r26151 | r26152 | |
| 331 | 342 | return MACHINE_CONFIG_NAME( abc838 ); |
| 332 | 343 | } |
| 333 | 344 | |
| 345 | machine_config_constructor abc850_floppy_device::device_mconfig_additions() const |
| 346 | { |
| 347 | return MACHINE_CONFIG_NAME( abc850 ); |
| 348 | } |
| 334 | 349 | |
| 350 | |
| 335 | 351 | //------------------------------------------------- |
| 336 | 352 | // INPUT_PORTS( luxor_55_21046 ) |
| 337 | 353 | //------------------------------------------------- |
| r26151 | r26152 | |
| 599 | 615 | |
| 600 | 616 | |
| 601 | 617 | //------------------------------------------------- |
| 618 | // INPUT_PORTS( abc850 ) |
| 619 | //------------------------------------------------- |
| 620 | |
| 621 | INPUT_PORTS_START( abc850 ) |
| 622 | PORT_START("SW1") |
| 623 | PORT_DIPNAME( 0x01, 0x01, "Drive 0 Sides" ) PORT_DIPLOCATION("SW1:1") |
| 624 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 625 | PORT_DIPSETTING( 0x01, "Double" ) |
| 626 | PORT_DIPNAME( 0x02, 0x02, "Drive 1 Sides" ) PORT_DIPLOCATION("SW1:2") |
| 627 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 628 | PORT_DIPSETTING( 0x02, "Double" ) |
| 629 | PORT_DIPNAME( 0x04, 0x04, "Drive 0 Tracks" ) PORT_DIPLOCATION("SW1:3") |
| 630 | PORT_DIPSETTING( 0x00, "40" ) |
| 631 | PORT_DIPSETTING( 0x04, "80" ) |
| 632 | PORT_DIPNAME( 0x08, 0x08, "Drive 1 Tracks" ) PORT_DIPLOCATION("SW1:4") |
| 633 | PORT_DIPSETTING( 0x00, "40" ) |
| 634 | PORT_DIPSETTING( 0x08, "80" ) |
| 635 | |
| 636 | PORT_START("SW2") |
| 637 | PORT_DIPNAME( 0x0f, 0x02, "Drive Type" ) PORT_DIPLOCATION("SW2:1,2,3,4") |
| 638 | PORT_DIPSETTING( 0x01, "TEAC FD55F" ) |
| 639 | PORT_DIPSETTING( 0x02, "BASF 6138" ) |
| 640 | |
| 641 | PORT_START("SW3") |
| 642 | PORT_DIPNAME( 0x7f, 0x2c, "Card Address" ) PORT_DIPLOCATION("SW3:1,2,3,4,5,6,7") |
| 643 | PORT_DIPSETTING( 0x2c, "44" ) |
| 644 | |
| 645 | PORT_START("S1") // also S3,S5 |
| 646 | PORT_DIPNAME( 0x01, 0x01, "Interface Type" ) |
| 647 | PORT_DIPSETTING( 0x00, "ABC 1600" ) |
| 648 | PORT_DIPSETTING( 0x01, "ABC 80/800/802/806" ) |
| 649 | |
| 650 | PORT_START("S6") |
| 651 | PORT_DIPNAME( 0x01, 0x01, "RAM Size" ) |
| 652 | PORT_DIPSETTING( 0x00, "2 KB" ) |
| 653 | PORT_DIPSETTING( 0x01, "8 KB" ) |
| 654 | |
| 655 | PORT_START("S8") |
| 656 | PORT_DIPNAME( 0x01, 0x01, "Drive Type" ) |
| 657 | PORT_DIPSETTING( 0x00, "8\"" ) |
| 658 | PORT_DIPSETTING( 0x01, "5.25\"" ) |
| 659 | |
| 660 | PORT_START("S9") |
| 661 | PORT_DIPNAME( 0x01, 0x01, "RDY Pin" ) |
| 662 | PORT_DIPSETTING( 0x00, "P2-6 (8\")" ) |
| 663 | PORT_DIPSETTING( 0x01, "P2-34 (5.25\")" ) |
| 664 | INPUT_PORTS_END |
| 665 | |
| 666 | |
| 667 | //------------------------------------------------- |
| 602 | 668 | // input_ports - device-specific input ports |
| 603 | 669 | //------------------------------------------------- |
| 604 | 670 | |
| r26151 | r26152 | |
| 627 | 693 | return INPUT_PORTS_NAME( abc838 ); |
| 628 | 694 | } |
| 629 | 695 | |
| 696 | ioport_constructor abc850_floppy_device::device_input_ports() const |
| 697 | { |
| 698 | return INPUT_PORTS_NAME( abc850 ); |
| 699 | } |
| 630 | 700 | |
| 631 | 701 | |
| 702 | |
| 632 | 703 | //************************************************************************** |
| 633 | 704 | // LIVE DEVICE |
| 634 | 705 | //************************************************************************** |
| r26151 | r26152 | |
| 697 | 768 | { |
| 698 | 769 | } |
| 699 | 770 | |
| 771 | abc850_floppy_device::abc850_floppy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 772 | : luxor_55_21046_device(mconfig, ABC850_FLOPPY, "ABC 850 floppy", tag, owner, clock, "lux21046", __FILE__) |
| 773 | { |
| 774 | } |
| 700 | 775 | |
| 776 | |
| 701 | 777 | //------------------------------------------------- |
| 702 | 778 | // device_start - device-specific startup |
| 703 | 779 | //------------------------------------------------- |
| r26151 | r26152 | |
| 1057 | 1133 | |
| 1058 | 1134 | return data ^ 0xff; |
| 1059 | 1135 | } |
| 1060 | | |
| 1061 | | |
| 1062 | | |
| 1063 | | //************************************************************************** |
| 1064 | | // LUXOR 55 21046 DEVICE INPUT DEFAULTS |
| 1065 | | //************************************************************************** |
| 1066 | | |
| 1067 | | //------------------------------------------------- |
| 1068 | | // DEVICE_INPUT_DEFAULTS( abc850_fast ) |
| 1069 | | //------------------------------------------------- |
| 1070 | | |
| 1071 | | DEVICE_INPUT_DEFAULTS_START( abc850_fast ) |
| 1072 | | DEVICE_INPUT_DEFAULTS("SW1", 0x0f, 0x0f) |
| 1073 | | DEVICE_INPUT_DEFAULTS("SW2", 0x0f, DRIVE_BASF_6138) |
| 1074 | | DEVICE_INPUT_DEFAULTS("SW3", 0x7f, ADDRESS_ABC832) |
| 1075 | | DEVICE_INPUT_DEFAULTS_END |