src/mess/drivers/x68k.c
| r4631 | r4632 | |
| 689 | 689 | { |
| 690 | 690 | if(port == 1) |
| 691 | 691 | { |
| 692 | UINT8 porta = input_port_read(device->machine,"md3b") & 0xff; |
| 693 | UINT8 portb = (input_port_read(device->machine,"md3b") >> 8) & 0xff; |
| 692 | 694 | if(x68k_sys.mdctrl.mux1 & 0x10) |
| 693 | 695 | { |
| 694 | | return input_port_read(device->machine,"md3b_0") | 0x90; |
| 696 | return porta | 0x90; |
| 695 | 697 | } |
| 696 | 698 | else |
| 697 | 699 | { |
| 698 | | return (input_port_read(device->machine,"md3b_1") & 0x60) | |
| 699 | | (input_port_read(device->machine,"md3b_0") & 0x03) | 0x90; |
| 700 | return (portb & 0x60) | (porta & 0x03) | 0x90; |
| 700 | 701 | } |
| 701 | 702 | } |
| 702 | 703 | if(port == 2) |
| 703 | 704 | { |
| 705 | UINT8 porta = (input_port_read(device->machine,"md3b") >> 16) & 0xff; |
| 706 | UINT8 portb = (input_port_read(device->machine,"md3b") >> 24) & 0xff; |
| 704 | 707 | if(x68k_sys.mdctrl.mux2 & 0x20) |
| 705 | 708 | { |
| 706 | | return input_port_read(device->machine,"md3b_2") | 0x90; |
| 709 | return porta | 0x90; |
| 707 | 710 | } |
| 708 | 711 | else |
| 709 | 712 | { |
| 710 | | return (input_port_read(device->machine,"md3b_3") & 0x60) | |
| 711 | | (input_port_read(device->machine,"md3b_2") & 0x03) | 0x90; |
| 713 | return (portb & 0x60) | (porta & 0x03) | 0x90; |
| 712 | 714 | } |
| 713 | 715 | } |
| 714 | 716 | return 0xff; |
| r4631 | r4632 | |
| 735 | 737 | { |
| 736 | 738 | if(port == 1) |
| 737 | 739 | { |
| 740 | UINT8 porta = input_port_read(device->machine,"md6b") & 0xff; |
| 741 | UINT8 portb = (input_port_read(device->machine,"md6b") >> 8) & 0xff; |
| 742 | UINT8 extra = input_port_read(device->machine,"md6b_extra") & 0x0f; |
| 743 | |
| 738 | 744 | switch(x68k_sys.mdctrl.seq1) |
| 739 | 745 | { |
| 740 | 746 | case 1: |
| 741 | 747 | default: |
| 742 | 748 | if(x68k_sys.mdctrl.mux1 & 0x10) |
| 743 | 749 | { |
| 744 | | return input_port_read(device->machine,"md6b_0") | 0x90; |
| 750 | return porta | 0x90; |
| 745 | 751 | } |
| 746 | 752 | else |
| 747 | 753 | { |
| 748 | | return (input_port_read(device->machine,"md6b_1") & 0x60) | |
| 749 | | (input_port_read(device->machine,"md6b_0") & 0x03) | 0x90; |
| 754 | return (portb & 0x60) | (porta & 0x03) | 0x90; |
| 750 | 755 | } |
| 751 | 756 | case 2: |
| 752 | 757 | if(x68k_sys.mdctrl.mux1 & 0x10) |
| 753 | 758 | { |
| 754 | | return input_port_read(device->machine,"md6b_0") | 0x90; |
| 759 | return porta | 0x90; |
| 755 | 760 | } |
| 756 | 761 | else |
| 757 | 762 | { |
| 758 | | return (input_port_read(device->machine,"md6b_1") & 0x60) | 0x90; |
| 763 | return (portb & 0x60) | 0x90; |
| 759 | 764 | } |
| 760 | 765 | case 3: |
| 761 | 766 | if(x68k_sys.mdctrl.mux1 & 0x10) |
| 762 | 767 | { |
| 763 | | return (input_port_read(device->machine,"md6b_0") & 0x60) | (input_port_read(device->machine,"md6b_4") & 0x0f) | 0x90; |
| 768 | return (porta & 0x60) | (extra & 0x0f) | 0x90; |
| 764 | 769 | } |
| 765 | 770 | else |
| 766 | 771 | { |
| 767 | | return (input_port_read(device->machine,"md6b_1") & 0x60) | 0x9f; |
| 772 | return (portb & 0x60) | 0x9f; |
| 768 | 773 | } |
| 769 | 774 | } |
| 770 | 775 | } |
| 771 | 776 | if(port == 2) |
| 772 | 777 | { |
| 778 | UINT8 porta = (input_port_read(device->machine,"md6b") >> 16) & 0xff; |
| 779 | UINT8 portb = (input_port_read(device->machine,"md6b") >> 24) & 0xff; |
| 780 | UINT8 extra = (input_port_read(device->machine,"md6b_extra") >> 4) & 0x0f; |
| 781 | |
| 773 | 782 | switch(x68k_sys.mdctrl.seq2) |
| 774 | 783 | { |
| 775 | 784 | case 1: |
| 776 | 785 | default: |
| 777 | 786 | if(x68k_sys.mdctrl.mux2 & 0x20) |
| 778 | 787 | { |
| 779 | | return input_port_read(device->machine,"md6b_2") | 0x90; |
| 788 | return porta | 0x90; |
| 780 | 789 | } |
| 781 | 790 | else |
| 782 | 791 | { |
| 783 | | return (input_port_read(device->machine,"md6b_3") & 0x60) | |
| 784 | | (input_port_read(device->machine,"md6b_2") & 0x03) | 0x90; |
| 792 | return (portb & 0x60) | (porta & 0x03) | 0x90; |
| 785 | 793 | } |
| 786 | 794 | case 2: |
| 787 | 795 | if(x68k_sys.mdctrl.mux2 & 0x20) |
| 788 | 796 | { |
| 789 | | return input_port_read(device->machine,"md6b_2") | 0x90; |
| 797 | return porta | 0x90; |
| 790 | 798 | } |
| 791 | 799 | else |
| 792 | 800 | { |
| 793 | | return (input_port_read(device->machine,"md6b_3") & 0x60) | 0x90; |
| 801 | return (portb & 0x60) | 0x90; |
| 794 | 802 | } |
| 795 | 803 | case 3: |
| 796 | 804 | if(x68k_sys.mdctrl.mux2 & 0x20) |
| 797 | 805 | { |
| 798 | | return (input_port_read(device->machine,"md6b_2") & 0x60) | (input_port_read(device->machine,"md6b_5") & 0x0f) | 0x90; |
| 806 | return (porta & 0x60) | (extra & 0x0f) | 0x90; |
| 799 | 807 | } |
| 800 | 808 | else |
| 801 | 809 | { |
| 802 | | return (input_port_read(device->machine,"md6b_3") & 0x60) | 0x9f; |
| 810 | return (portb & 0x60) | 0x9f; |
| 803 | 811 | } |
| 804 | 812 | } |
| 805 | 813 | } |
| r4631 | r4632 | |
| 1880 | 1888 | PORT_CATEGORY_ITEM(0x00,"Standard 2-button MSX/FM-Towns joystick",20) |
| 1881 | 1889 | PORT_CATEGORY_ITEM(0x10,"3-button Megadrive gamepad",21) |
| 1882 | 1890 | PORT_CATEGORY_ITEM(0x20,"6-button Megadrive gamepad",22) |
| 1891 | // TODO: XPD-1LR (Dual D-pad) support |
| 1883 | 1892 | // TODO: Sharp Cyber Stick (CZ-8NJ2) support |
| 1884 | 1893 | |
| 1885 | 1894 | PORT_START( "joy1" ) |
| r4631 | r4632 | |
| 2047 | 2056 | PORT_START("mouse3") // Y-axis |
| 2048 | 2057 | PORT_BIT( 0xff, 0x00, IPT_MOUSE_Y) PORT_SENSITIVITY(100) PORT_KEYDELTA(0) PORT_PLAYER(1) |
| 2049 | 2058 | |
| 2050 | | PORT_START("md3b_0") |
| 2051 | | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("MD Pad 1 Up") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(11) |
| 2052 | | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("MD Pad 1 Down") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(11) |
| 2053 | | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_NAME("MD Pad 1 Left") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(11) |
| 2054 | | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_NAME("MD Pad 1 Right") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(11) |
| 2055 | | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2056 | | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 B Button") PORT_CATEGORY(11) |
| 2057 | | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 C Button") PORT_CATEGORY(11) |
| 2058 | | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2059 | // 3-button Megadrive gamepad |
| 2060 | PORT_START("md3b") |
| 2061 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("MD Pad 1 Up") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(11) |
| 2062 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("MD Pad 1 Down") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(11) |
| 2063 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_NAME("MD Pad 1 Left") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(11) |
| 2064 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_NAME("MD Pad 1 Right") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(11) |
| 2065 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2066 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 B Button") PORT_CATEGORY(11) |
| 2067 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 C Button") PORT_CATEGORY(11) |
| 2068 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2059 | 2069 | |
| 2060 | | PORT_START("md3b_1") |
| 2061 | | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2062 | | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2063 | | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2064 | | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2065 | | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2066 | | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 A Button") PORT_CATEGORY(11) |
| 2067 | | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_START ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 Start Button") PORT_CATEGORY(11) |
| 2068 | | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2070 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2071 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2072 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2073 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2074 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2075 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 A Button") PORT_CATEGORY(11) |
| 2076 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_START ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 Start Button") PORT_CATEGORY(11) |
| 2077 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(11) |
| 2069 | 2078 | |
| 2070 | | PORT_START("md3b_2") |
| 2071 | | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("MD Pad 2 Up") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(21) |
| 2072 | | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("MD Pad 2 Down") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(21) |
| 2073 | | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_NAME("MD Pad 2 Left") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(21) |
| 2074 | | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_NAME("MD Pad 2 Right") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(21) |
| 2075 | | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2076 | | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 B Button") PORT_CATEGORY(21) |
| 2077 | | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 C Button") PORT_CATEGORY(21) |
| 2078 | | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2079 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("MD Pad 2 Up") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(21) |
| 2080 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("MD Pad 2 Down") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(21) |
| 2081 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_NAME("MD Pad 2 Left") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(21) |
| 2082 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_NAME("MD Pad 2 Right") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(21) |
| 2083 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2084 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 B Button") PORT_CATEGORY(21) |
| 2085 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 C Button") PORT_CATEGORY(21) |
| 2086 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2079 | 2087 | |
| 2080 | | PORT_START("md3b_3") |
| 2081 | | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2082 | | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2083 | | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2084 | | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2085 | | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2086 | | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 A Button") PORT_CATEGORY(21) |
| 2087 | | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_START ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 Start Button") PORT_CATEGORY(21) |
| 2088 | | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2088 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2089 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2090 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2091 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2092 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2093 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 A Button") PORT_CATEGORY(21) |
| 2094 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_START ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 Start Button") PORT_CATEGORY(21) |
| 2095 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(21) |
| 2089 | 2096 | |
| 2090 | | PORT_START("md6b_0") |
| 2091 | | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("MD Pad 1 Up") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(12) |
| 2092 | | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("MD Pad 1 Down") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(12) |
| 2093 | | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_NAME("MD Pad 1 Left") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(12) |
| 2094 | | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_NAME("MD Pad 1 Right") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(12) |
| 2095 | | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2096 | | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 B Button") PORT_CATEGORY(12) |
| 2097 | | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 C Button") PORT_CATEGORY(12) |
| 2098 | | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2097 | // 6-button Megadrive gamepad |
| 2098 | PORT_START("md6b") |
| 2099 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("MD Pad 1 Up") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(12) |
| 2100 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("MD Pad 1 Down") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(12) |
| 2101 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_NAME("MD Pad 1 Left") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(12) |
| 2102 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_NAME("MD Pad 1 Right") PORT_8WAY PORT_PLAYER(1) PORT_CATEGORY(12) |
| 2103 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2104 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 B Button") PORT_CATEGORY(12) |
| 2105 | PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 C Button") PORT_CATEGORY(12) |
| 2106 | PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2099 | 2107 | |
| 2100 | | PORT_START("md6b_1") |
| 2101 | | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2102 | | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2103 | | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2104 | | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2105 | | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2106 | | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 A Button") PORT_CATEGORY(12) |
| 2107 | | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_START ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 Start Button") PORT_CATEGORY(12) |
| 2108 | | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2108 | PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2109 | PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2110 | PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2111 | PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2112 | PORT_BIT( 0x00001000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2113 | PORT_BIT( 0x00002000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 A Button") PORT_CATEGORY(12) |
| 2114 | PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_START ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 Start Button") PORT_CATEGORY(12) |
| 2115 | PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(12) |
| 2109 | 2116 | |
| 2110 | | PORT_START("md6b_2") |
| 2111 | | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("MD Pad 2 Up") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(22) |
| 2112 | | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("MD Pad 2 Down") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(22) |
| 2113 | | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_NAME("MD Pad 2 Left") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(22) |
| 2114 | | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_NAME("MD Pad 2 Right") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(22) |
| 2115 | | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2116 | | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 B Button") PORT_CATEGORY(22) |
| 2117 | | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 C Button") PORT_CATEGORY(22) |
| 2118 | | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2117 | PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("MD Pad 2 Up") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(22) |
| 2118 | PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("MD Pad 2 Down") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(22) |
| 2119 | PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_NAME("MD Pad 2 Left") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(22) |
| 2120 | PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_NAME("MD Pad 2 Right") PORT_8WAY PORT_PLAYER(2) PORT_CATEGORY(22) |
| 2121 | PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2122 | PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 B Button") PORT_CATEGORY(22) |
| 2123 | PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 C Button") PORT_CATEGORY(22) |
| 2124 | PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2119 | 2125 | |
| 2120 | | PORT_START("md6b_3") |
| 2121 | | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2122 | | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2123 | | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2124 | | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2125 | | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2126 | | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 A Button") PORT_CATEGORY(22) |
| 2127 | | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_START ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 Start Button") PORT_CATEGORY(22) |
| 2128 | | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2126 | PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2127 | PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2128 | PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2129 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2130 | PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2131 | PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 A Button") PORT_CATEGORY(22) |
| 2132 | PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_START ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 Start Button") PORT_CATEGORY(22) |
| 2133 | PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CATEGORY(22) |
| 2129 | 2134 | |
| 2130 | 2135 | // extra inputs |
| 2131 | | PORT_START("md6b_4") |
| 2136 | PORT_START("md6b_extra") |
| 2132 | 2137 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 Z Button") PORT_CATEGORY(12) |
| 2133 | 2138 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 Y Button") PORT_CATEGORY(12) |
| 2134 | 2139 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 X Button") PORT_CATEGORY(12) |
| 2135 | 2140 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_PLAYER(1) PORT_NAME("MD Pad 1 Mode Button") PORT_CATEGORY(12) |
| 2136 | 2141 | |
| 2137 | | PORT_START("md6b_5") |
| 2138 | | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 Z Button") PORT_CATEGORY(22) |
| 2139 | | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 Y Button") PORT_CATEGORY(22) |
| 2140 | | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 X Button") PORT_CATEGORY(22) |
| 2141 | | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 Mode Button") PORT_CATEGORY(22) |
| 2142 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 Z Button") PORT_CATEGORY(22) |
| 2143 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 Y Button") PORT_CATEGORY(22) |
| 2144 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 X Button") PORT_CATEGORY(22) |
| 2145 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_PLAYER(2) PORT_NAME("MD Pad 2 Mode Button") PORT_CATEGORY(22) |
| 2142 | 2146 | |
| 2143 | 2147 | INPUT_PORTS_END |
| 2144 | 2148 | |