trunk/src/mame/drivers/goldstar.c
| r244885 | r244886 | |
| 783 | 783 | ADDRESS_MAP_END |
| 784 | 784 | |
| 785 | 785 | |
| 786 | | WRITE8_MEMBER(goldstar_state::lucky8_outport_w) |
| 786 | WRITE8_MEMBER(goldstar_state::lucky8_lamps_w) |
| 787 | 787 | { |
| 788 | 788 | /* lamps */ |
| 789 | 789 | output_set_lamp_value(0, (data >> 1) & 1); /* D-UP Lamp */ |
| r244885 | r244886 | |
| 792 | 792 | output_set_lamp_value(3, (data >> 4) & 1); /* INFO Lamp */ |
| 793 | 793 | output_set_lamp_value(4, (data >> 5) & 1); /* START Lamp */ |
| 794 | 794 | |
| 795 | | // popmessage("lucky8_outb850_w %02x\n", data); |
| 795 | // popmessage("lucky8_lamps_w %02x\n", data); |
| 796 | 796 | |
| 797 | 797 | } |
| 798 | 798 | |
| r244885 | r244886 | |
| 813 | 813 | AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write) /* Input/Output Ports */ |
| 814 | 814 | AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE("aysnd", ay8910_device, data_r, data_w) |
| 815 | 815 | AM_RANGE(0xb840, 0xb840) AM_DEVWRITE("aysnd", ay8910_device, address_w) /* no sound... only use both ports for DSWs */ |
| 816 | | AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_outport_w) |
| 816 | AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_lamps_w) |
| 817 | 817 | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_device, write) /* sound */ |
| 818 | 818 | AM_RANGE(0xf800, 0xffff) AM_RAM |
| 819 | 819 | ADDRESS_MAP_END |
| r244885 | r244886 | |
| 880 | 880 | AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write) /* Input Port */ |
| 881 | 881 | AM_RANGE(0xb830, 0xb830) AM_WRITENOP /* no ay8910 */ |
| 882 | 882 | AM_RANGE(0xb840, 0xb840) AM_WRITENOP /* no ay8910 */ |
| 883 | | AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_outport_w) |
| 883 | AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_lamps_w) |
| 884 | 884 | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_device, write) /* sound */ |
| 885 | 885 | AM_RANGE(0xf800, 0xffff) AM_RAM |
| 886 | 886 | ADDRESS_MAP_END |
| r244885 | r244886 | |
| 940 | 940 | AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write) /* Input/Output Ports */ |
| 941 | 941 | AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE("aysnd", ay8910_device, data_r, data_w) |
| 942 | 942 | AM_RANGE(0xb840, 0xb840) AM_DEVWRITE("aysnd", ay8910_device, address_w) /* no sound... only use both ports for DSWs */ |
| 943 | | AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_outport_w) |
| 943 | AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_lamps_w) |
| 944 | 944 | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_device, write) /* sound */ |
| 945 | 945 | // AM_RANGE(0xc000, 0xc003) AM_DEVREADWRITE("ppi8255_3", i8255_device, read, write) /* Other PPI initialized? */ |
| 946 | 946 | AM_RANGE(0xd000, 0xefff) AM_ROM |
| r244885 | r244886 | |
| 1234 | 1234 | PORT_DIPSETTING( 0x10, "C-Type" ) |
| 1235 | 1235 | PORT_DIPSETTING( 0x00, "D-Type" ) |
| 1236 | 1236 | PORT_DIPNAME( 0x20, 0x20, "Min. Bet For Bonus Play" ) PORT_DIPLOCATION("DSW4:6") |
| 1237 | | PORT_DIPSETTING( 0x00, "8 Bet" ) |
| 1238 | | PORT_DIPSETTING( 0x20, "16 Bet" ) |
| 1237 | PORT_DIPSETTING( 0x00, "8" ) |
| 1238 | PORT_DIPSETTING( 0x20, "16" ) |
| 1239 | 1239 | PORT_DIPNAME( 0x40, 0x40, "Reel Speed" ) PORT_DIPLOCATION("DSW4:7") |
| 1240 | 1240 | PORT_DIPSETTING( 0x40, DEF_STR( Low ) ) |
| 1241 | 1241 | PORT_DIPSETTING( 0x00, DEF_STR( High ) ) |
| r244885 | r244886 | |
| 1781 | 1781 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1782 | 1782 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1783 | 1783 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1784 | | /* this is not a coin, not sure what it is */ |
| 1785 | | /* maybe it's used to buy tickets. Will check soon. */ |
| 1786 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_W) PORT_NAME("Collect") |
| 1787 | | PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW ) |
| 1788 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_F1) PORT_NAME("Statistics") |
| 1784 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_8_PAD) PORT_NAME("Hopper") /* hopper empty */ |
| 1785 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_SERVICE ) PORT_NAME("Settings") |
| 1786 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Stats") |
| 1789 | 1787 | |
| 1790 | 1788 | PORT_START("DSW1") |
| 1791 | | PORT_DIPNAME( 0x01, 0x00, "Game Style" ) PORT_DIPLOCATION("DSW1:1") |
| 1789 | PORT_DIPNAME( 0x01, 0x00, "Game Style" ) PORT_DIPLOCATION("DSW1:1") |
| 1792 | 1790 | PORT_DIPSETTING( 0x01, "Gettoni" ) |
| 1793 | 1791 | PORT_DIPSETTING( 0x00, "Ticket" ) |
| 1794 | | PORT_DIPNAME( 0x02, 0x02, "Hopper Out" ) PORT_DIPLOCATION("DSW1:2" ) |
| 1792 | PORT_DIPNAME( 0x02, 0x02, "Hopper Out" ) PORT_DIPLOCATION("DSW1:2") |
| 1795 | 1793 | PORT_DIPSETTING( 0x02, "Active Low" ) |
| 1796 | 1794 | PORT_DIPSETTING( 0x00, "Active High" ) |
| 1797 | | PORT_DIPNAME( 0x04, 0x04, "Payout Automatic" ) PORT_DIPLOCATION("DSW1:3" ) |
| 1795 | PORT_DIPNAME( 0x04, 0x04, "Payout Automatic" ) PORT_DIPLOCATION("DSW1:3") |
| 1798 | 1796 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1799 | 1797 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1800 | | PORT_DIPNAME( 0x08, 0x00, "W-Up '7'" ) PORT_DIPLOCATION("DSW1:4" ) |
| 1798 | PORT_DIPNAME( 0x08, 0x00, "'7' In Double Up Game" ) PORT_DIPLOCATION("DSW1:4") |
| 1801 | 1799 | PORT_DIPSETTING( 0x08, "Loss" ) |
| 1802 | 1800 | PORT_DIPSETTING( 0x00, "Even" ) |
| 1803 | | PORT_DIPNAME( 0x10, 0x10, "W-Up Pay Rate" ) PORT_DIPLOCATION("DSW1:5" ) |
| 1801 | PORT_DIPNAME( 0x10, 0x10, "Double Up Game Pay Rate" ) PORT_DIPLOCATION("DSW1:5") /* OK */ |
| 1804 | 1802 | PORT_DIPSETTING( 0x10, "60%" ) |
| 1805 | 1803 | PORT_DIPSETTING( 0x00, "70%" ) |
| 1806 | | PORT_DIPNAME( 0x20, 0x20, "W-Up Game" ) PORT_DIPLOCATION("DSW1:6" ) |
| 1804 | PORT_DIPNAME( 0x20, 0x20, "Double Up Game" ) PORT_DIPLOCATION("DSW1:6") /* OK */ |
| 1807 | 1805 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1808 | 1806 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| 1809 | | PORT_DIPNAME( 0xc0, 0x00, "Bet Max" ) PORT_DIPLOCATION("DSW1:7,8" ) |
| 1807 | PORT_DIPNAME( 0xc0, 0x00, "Bet Max" ) PORT_DIPLOCATION("DSW1:7,8") /* OK */ |
| 1810 | 1808 | PORT_DIPSETTING( 0xc0, "8 Bet" ) |
| 1811 | 1809 | PORT_DIPSETTING( 0x80, "16 Bet" ) |
| 1812 | 1810 | PORT_DIPSETTING( 0x40, "32 Bet" ) |
| r244885 | r244886 | |
| 1819 | 1817 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1820 | 1818 | |
| 1821 | 1819 | PORT_START("DSW2") |
| 1822 | | PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" ) PORT_DIPLOCATION("DSW2:1,2,3" ) |
| 1823 | | PORT_DIPSETTING( 0x00, "75 %" ) |
| 1824 | | PORT_DIPSETTING( 0x01, "70 %" ) |
| 1825 | | PORT_DIPSETTING( 0x02, "65 %" ) |
| 1826 | | PORT_DIPSETTING( 0x03, "60 %" ) |
| 1827 | | PORT_DIPSETTING( 0x04, "55 %" ) |
| 1828 | | PORT_DIPSETTING( 0x05, "50 %" ) |
| 1829 | | PORT_DIPSETTING( 0x06, "45 %" ) |
| 1830 | | PORT_DIPSETTING( 0x07, "40 %" ) |
| 1820 | PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" ) PORT_DIPLOCATION("DSW2:1,2,3" ) /* Does this work? Settings screen always shows "28F3%". */ |
| 1821 | PORT_DIPSETTING( 0x00, "75%" ) |
| 1822 | PORT_DIPSETTING( 0x01, "70%" ) |
| 1823 | PORT_DIPSETTING( 0x02, "65%" ) |
| 1824 | PORT_DIPSETTING( 0x03, "60%" ) |
| 1825 | PORT_DIPSETTING( 0x04, "55%" ) |
| 1826 | PORT_DIPSETTING( 0x05, "50%" ) |
| 1827 | PORT_DIPSETTING( 0x06, "45%" ) |
| 1828 | PORT_DIPSETTING( 0x07, "40%" ) |
| 1831 | 1829 | PORT_DIPNAME( 0x18, 0x00, "Hopper Limit" ) PORT_DIPLOCATION("DSW2:4,5" ) |
| 1832 | 1830 | PORT_DIPSETTING( 0x18, "300" ) |
| 1833 | 1831 | PORT_DIPSETTING( 0x10, "500" ) |
| r244885 | r244886 | |
| 1843 | 1841 | PORT_DIPSETTING( 0x80, "Unlimited" ) |
| 1844 | 1842 | PORT_DIPSETTING( 0x00, "Limited" ) |
| 1845 | 1843 | |
| 1846 | | PORT_START("DSW3") |
| 1844 | PORT_START("DSW3") /* Neither of these work. Does the manual say this is what they do, or is it just nonsense? */ |
| 1847 | 1845 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DSW3:1,2" ) |
| 1848 | 1846 | PORT_DIPSETTING( 0x00, "1 Coin/10 Credits" ) |
| 1849 | 1847 | PORT_DIPSETTING( 0x04, "1 Coin/20 Credits" ) |
| r244885 | r244886 | |
| 1855 | 1853 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_5C ) ) |
| 1856 | 1854 | PORT_DIPSETTING( 0xc0, "1 Coin/10 Credits" ) |
| 1857 | 1855 | |
| 1858 | | PORT_START("DSW4") |
| 1859 | | PORT_DIPNAME( 0x07, 0x06, "Credit Limit" ) PORT_DIPLOCATION("DSW4:1,2,3" ) |
| 1860 | | PORT_DIPSETTING( 0x07, "5000" ) |
| 1861 | | PORT_DIPSETTING( 0x06, "10000" ) |
| 1862 | | PORT_DIPSETTING( 0x05, "20000" ) |
| 1863 | | PORT_DIPSETTING( 0x04, "30000" ) |
| 1864 | | PORT_DIPSETTING( 0x03, "40000" ) |
| 1865 | | PORT_DIPSETTING( 0x02, "50000" ) |
| 1866 | | PORT_DIPSETTING( 0x01, "100000" ) |
| 1867 | | PORT_DIPSETTING( 0x00, "Unlimited" ) |
| 1868 | | PORT_DIPNAME( 0x08, 0x00, "Display Credit Limit" ) PORT_DIPLOCATION("DSW4:4" ) |
| 1869 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 1870 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1871 | | PORT_DIPNAME( 0x10, 0x10, "Type of Coin D" ) PORT_DIPLOCATION("DSW4:5" ) |
| 1856 | PORT_INCLUDE( cmv4_dsw4 ) |
| 1857 | PORT_MODIFY("DSW4") |
| 1858 | /* Credit Limit OK */ |
| 1859 | /* Display Of Payout Limit OK */ |
| 1860 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW4:5") /* not checked */ |
| 1872 | 1861 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 1873 | 1862 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1874 | | PORT_DIPNAME( 0x20, 0x00, "Bonus Play Min Bet" ) PORT_DIPLOCATION("DSW4:6" ) |
| 1875 | | PORT_DIPSETTING( 0x20, "16 Bet" ) |
| 1876 | | PORT_DIPSETTING( 0x00, "8 Bet" ) |
| 1877 | | PORT_DIPNAME( 0x40, 0x00, "Reel Speed" ) PORT_DIPLOCATION("DSW4:7" ) |
| 1878 | | PORT_DIPSETTING( 0x40, DEF_STR( Low ) ) |
| 1879 | | PORT_DIPSETTING( 0x00, DEF_STR( High ) ) |
| 1880 | | PORT_DIPNAME( 0x80, 0x00, "Ticket Payment" ) PORT_DIPLOCATION("DSW4:8" ) |
| 1863 | /* Min. Bet For Bonus Play OK */ |
| 1864 | /* Reel Speed OK */ |
| 1865 | PORT_DIPNAME( 0x80, 0x00, "Ticket Payment" ) PORT_DIPLOCATION("DSW4:8") /* not checked */ |
| 1881 | 1866 | PORT_DIPSETTING( 0x80, "1 Ticket/100" ) |
| 1882 | 1867 | PORT_DIPSETTING( 0x00, "Pay All" ) |
| 1883 | 1868 | |
| r244885 | r244886 | |
| 1924 | 1909 | /* '7' In Double Up Game not checked */ |
| 1925 | 1910 | /* Double Up Game Pay Rate OK */ |
| 1926 | 1911 | /* Double Up Game OK */ |
| 1927 | | PORT_DIPNAME( 0xc0, 0xc0, "Bet Max" ) PORT_DIPLOCATION("DSW1:7,8") |
| 1912 | PORT_DIPNAME( 0xc0, 0xc0, "Bet Max" ) PORT_DIPLOCATION("DSW1:7,8") /* OK */ |
| 1928 | 1913 | PORT_DIPSETTING( 0xc0, "8" ) |
| 1929 | 1914 | PORT_DIPSETTING( 0x80, "16" ) |
| 1930 | 1915 | PORT_DIPSETTING( 0x40, "32" ) |