Previous 199869 Revisions Next

r36374 Wednesday 11th March, 2015 at 09:51:53 UTC by Vasantha Crabb
Quick look at goldstar inputs
[src/mame/drivers]goldstar.c
[src/mame/includes]goldstar.h

trunk/src/mame/drivers/goldstar.c
r244885r244886
783783ADDRESS_MAP_END
784784
785785
786WRITE8_MEMBER(goldstar_state::lucky8_outport_w)
786WRITE8_MEMBER(goldstar_state::lucky8_lamps_w)
787787{
788788   /* lamps */
789789   output_set_lamp_value(0, (data >> 1) & 1);  /* D-UP Lamp */
r244885r244886
792792   output_set_lamp_value(3, (data >> 4) & 1);  /* INFO Lamp */
793793   output_set_lamp_value(4, (data >> 5) & 1);  /* START Lamp */
794794
795//  popmessage("lucky8_outb850_w %02x\n", data);
795//  popmessage("lucky8_lamps_w %02x\n", data);
796796
797797}
798798
r244885r244886
813813   AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)    /* Input/Output Ports */
814814   AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE("aysnd", ay8910_device, data_r, data_w)
815815   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)
817817   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_device, write)    /* sound */
818818   AM_RANGE(0xf800, 0xffff) AM_RAM
819819ADDRESS_MAP_END
r244885r244886
880880   AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)    /* Input Port */
881881   AM_RANGE(0xb830, 0xb830) AM_WRITENOP                                                /* no ay8910 */
882882   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)
884884   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_device, write)                /* sound */
885885   AM_RANGE(0xf800, 0xffff) AM_RAM
886886ADDRESS_MAP_END
r244885r244886
940940   AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)    /* Input/Output Ports */
941941   AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE("aysnd", ay8910_device, data_r, data_w)
942942   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)
944944   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_device, write)                /* sound */
945945//  AM_RANGE(0xc000, 0xc003) AM_DEVREADWRITE("ppi8255_3", i8255_device, read, write)    /* Other PPI initialized? */
946946   AM_RANGE(0xd000, 0xefff) AM_ROM
r244885r244886
12341234   PORT_DIPSETTING(    0x10, "C-Type" )
12351235   PORT_DIPSETTING(    0x00, "D-Type" )
12361236   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" )
12391239   PORT_DIPNAME( 0x40, 0x40, "Reel Speed" )              PORT_DIPLOCATION("DSW4:7")
12401240   PORT_DIPSETTING(    0x40, DEF_STR( Low ) )
12411241   PORT_DIPSETTING(    0x00, DEF_STR( High ) )
r244885r244886
17811781   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
17821782   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
17831783   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")
17891787
17901788   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")
17921790   PORT_DIPSETTING(    0x01, "Gettoni" )
17931791   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")
17951793   PORT_DIPSETTING(    0x02, "Active Low" )
17961794   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")
17981796   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
17991797   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")
18011799   PORT_DIPSETTING(    0x08, "Loss" )
18021800   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 */
18041802   PORT_DIPSETTING(    0x10, "60%" )
18051803   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 */
18071805   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
18081806   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 */
18101808   PORT_DIPSETTING(    0xc0, "8 Bet" )
18111809   PORT_DIPSETTING(    0x80, "16 Bet" )
18121810   PORT_DIPSETTING(    0x40, "32 Bet" )
r244885r244886
18191817   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
18201818
18211819   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%" )
18311829   PORT_DIPNAME( 0x18, 0x00, "Hopper Limit" )          PORT_DIPLOCATION("DSW2:4,5" )
18321830   PORT_DIPSETTING(    0x18, "300" )
18331831   PORT_DIPSETTING(    0x10, "500" )
r244885r244886
18431841   PORT_DIPSETTING(    0x80, "Unlimited" )
18441842   PORT_DIPSETTING(    0x00, "Limited" )
18451843
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? */
18471845   PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_A ) )       PORT_DIPLOCATION("DSW3:1,2" )
18481846   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
18491847   PORT_DIPSETTING(    0x04, "1 Coin/20 Credits" )
r244885r244886
18551853   PORT_DIPSETTING(    0x80, DEF_STR( 1C_5C ) )
18561854   PORT_DIPSETTING(    0xc0, "1 Coin/10 Credits" )
18571855
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 */
18721861   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
18731862   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 */
18811866   PORT_DIPSETTING(    0x80, "1 Ticket/100" )
18821867   PORT_DIPSETTING(    0x00, "Pay All" )
18831868
r244885r244886
19241909   /* '7' In Double Up Game not checked */
19251910   /* Double Up Game Pay Rate OK */
19261911   /* 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 */
19281913   PORT_DIPSETTING(    0xc0, "8" )
19291914   PORT_DIPSETTING(    0x80, "16" )
19301915   PORT_DIPSETTING(    0x40, "32" )
trunk/src/mame/includes/goldstar.h
r244885r244886
2121
2222   DECLARE_WRITE8_MEMBER(protection_w);
2323   DECLARE_READ8_MEMBER(protection_r);
24   DECLARE_WRITE8_MEMBER(lucky8_outport_w);
24   DECLARE_WRITE8_MEMBER(lucky8_lamps_w);
2525   DECLARE_WRITE8_MEMBER(ncb3_port81_w);
2626   DECLARE_WRITE8_MEMBER(goldstar_lamps_w);
2727   DECLARE_WRITE8_MEMBER(cb3_lamps_w);


Previous 199869 Revisions Next


© 1997-2024 The MAME Team