Previous 199869 Revisions Next

r36364 Tuesday 10th March, 2015 at 17:08:56 UTC by Vasantha Crabb
Fix chry10/chrygld regression
Check DIP switches for chrygld/chry10/ncb3/cb3a and make corrections
Factor out even more common DIPs
[src/mame/drivers]goldstar.c
[src/mame/includes]goldstar.h

trunk/src/mame/drivers/goldstar.c
r244875r244876
11341134   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Stats")
11351135INPUT_PORTS_END
11361136
1137static INPUT_PORTS_START( cmv4_dsw2 )
1138   PORT_START("DSW2")
1139   PORT_DIPNAME( 0x07, 0x07, "Main Game Pay Rate" )        PORT_DIPLOCATION("DSW2:1,2,3")
1140   PORT_DIPSETTING(    0x07, "1 (Lowest)" )
1141   PORT_DIPSETTING(    0x06, "2" )
1142   PORT_DIPSETTING(    0x05, "3" )
1143   PORT_DIPSETTING(    0x04, "4" )
1144   PORT_DIPSETTING(    0x03, "5" )
1145   PORT_DIPSETTING(    0x02, "6" )
1146   PORT_DIPSETTING(    0x01, "7" )
1147   PORT_DIPSETTING(    0x00, "8 (Highest)" )
1148   PORT_DIPNAME( 0x18, 0x18, "Hopper Limit" )              PORT_DIPLOCATION("DSW2:4,5")
1149   PORT_DIPSETTING(    0x18, "300" )
1150   PORT_DIPSETTING(    0x10, "500" )
1151   PORT_DIPSETTING(    0x08, "1000" )
1152   PORT_DIPSETTING(    0x00, "Unlimited" )
1153   PORT_DIPNAME( 0x20, 0x02, "100+ Odds Sound" )           PORT_DIPLOCATION("DSW2:6")
1154   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1155   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
1156   PORT_DIPNAME( 0x40, 0x40, "Key In Type" )               PORT_DIPLOCATION("DSW2:7")
1157   PORT_DIPSETTING(    0x40, "A-Type" )
1158   PORT_DIPSETTING(    0x00, "B-Type" )
1159   PORT_DIPNAME( 0x80, 0x00, "Center Super 7 Bet Limit" )  PORT_DIPLOCATION("DSW2:8")
1160   PORT_DIPSETTING(    0x80, "Unlimited" )
1161   PORT_DIPSETTING(    0x00, "Limited" )
1162INPUT_PORTS_END
1163
11371164static INPUT_PORTS_START( cmv4_dsw3 )
11381165   PORT_START("DSW3")
11391166   PORT_DIPNAME( 0x03, 0x03, "Key In Rate" ) PORT_DIPLOCATION("DSW3:1,2")
r244875r244876
11681195
11691196static INPUT_PORTS_START( cmv4_dsw4 )
11701197   PORT_START("DSW4")
1171   PORT_DIPNAME( 0x07, 0x06, "Credit Limit" )            PORT_DIPLOCATION("DSW4:1,2,3")
1198   PORT_DIPNAME( 0x07, 0x07, "Credit Limit" )            PORT_DIPLOCATION("DSW4:1,2,3")
11721199   PORT_DIPSETTING(    0x07, "5,000" )
11731200   PORT_DIPSETTING(    0x06, "10,000" )
11741201   PORT_DIPSETTING(    0x05, "20,000" )
r244875r244876
11841211   PORT_DIPSETTING(    0x10, "C-Type" )
11851212   PORT_DIPSETTING(    0x00, "D-Type" )
11861213   PORT_DIPNAME( 0x20, 0x20, "Min. Bet For Bonus Play" ) PORT_DIPLOCATION("DSW4:6")
1187   PORT_DIPSETTING(    0x20, "16 Bet" )
11881214   PORT_DIPSETTING(    0x00, "8 Bet" )
1215   PORT_DIPSETTING(    0x20, "16 Bet" )
11891216   PORT_DIPNAME( 0x40, 0x40, "Reel Speed" )              PORT_DIPLOCATION("DSW4:7")
11901217   PORT_DIPSETTING(    0x40, DEF_STR( Low ) )
11911218   PORT_DIPSETTING(    0x00, DEF_STR( High ) )
r244875r244876
11961223
11971224INPUT_PORTS_START( cmv4_dsw5 )
11981225   PORT_START("DSW5")
1199   PORT_DIPNAME( 0x01, 0x00, "Display Of Doll On Demo" )          PORT_DIPLOCATION("DSW5:1")
1226   PORT_DIPNAME( 0x01, 0x01, "Display Of Doll On Demo" )          PORT_DIPLOCATION("DSW5:1")
12001227   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
12011228   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
12021229   PORT_DIPNAME( 0x06, 0x06, "Coin In Limit" )                    PORT_DIPLOCATION("DSW5:2,3")
r244875r244876
12091236   PORT_DIPSETTING(    0x10, "9-5-1" )
12101237   PORT_DIPSETTING(    0x08, "6-3-1" )
12111238   PORT_DIPSETTING(    0x00, "3-2-1" )
1212   PORT_DIPNAME( 0x20, 0x00, "Display Of Doll At All Fr. Bonus" ) PORT_DIPLOCATION("DSW5:6")
1239   PORT_DIPNAME( 0x20, 0x20, "Display Of Doll At All Fr. Bonus" ) PORT_DIPLOCATION("DSW5:6")
12131240   PORT_DIPSETTING(    0x20, DEF_STR( Low ) )
12141241   PORT_DIPSETTING(    0x00, DEF_STR( High ) )
12151242   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) )                  PORT_DIPLOCATION("DSW5:7")
r244875r244876
12211248INPUT_PORTS_END
12221249
12231250
1251static INPUT_PORTS_START( cb3_dsw3 )
1252   PORT_INCLUDE( cmv4_dsw3 )
1253   PORT_MODIFY("DSW3")
1254   PORT_DIPNAME( 0x03, 0x03, "Key In Rate" )   PORT_DIPLOCATION("DSW3:1,2")
1255   PORT_DIPSETTING(    0x00, DEF_STR( 1C_5C ) )        PORT_CONDITION("DSW2",0x40,EQUALS,0x40) /* A-Type */
1256   PORT_DIPSETTING(    0x01, "1 Coin/10 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
1257   PORT_DIPSETTING(    0x02, "1 Coin/25 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
1258   PORT_DIPSETTING(    0x03, "1 Coin/50 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
1259   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00) /* B-Type */
1260   PORT_DIPSETTING(    0x01, "1 Coin/20 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
1261   PORT_DIPSETTING(    0x02, "1 Coin/50 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
1262   PORT_DIPSETTING(    0x03, "1 Coin/100 Credits" )    PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
1263   PORT_DIPNAME( 0x30, 0x30, "Coin D Rate" )   PORT_DIPLOCATION("DSW3:5,6")
1264   PORT_DIPSETTING(    0x30, DEF_STR( 5C_1C ) )        PORT_CONDITION("DSW4",0x10,EQUALS,0x10) /* C-Type */
1265   PORT_DIPSETTING(    0x20, DEF_STR( 2C_1C ) )        PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
1266   PORT_DIPSETTING(    0x10, DEF_STR( 1C_1C ) )        PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
1267   PORT_DIPSETTING(    0x00, DEF_STR( 1C_2C ) )        PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
1268   PORT_DIPSETTING(    0x00, "1 Ticket/5 Credits" )    PORT_CONDITION("DSW4",0x10,EQUALS,0x00) /* D-Type */
1269   PORT_DIPSETTING(    0x10, "1 Ticket/10 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
1270   PORT_DIPSETTING(    0x20, "1 Ticket/25 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
1271   PORT_DIPSETTING(    0x30, "1 Ticket/50 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
1272INPUT_PORTS_END
1273
1274static INPUT_PORTS_START( cb3_dsw4 )
1275   PORT_INCLUDE( cmv4_dsw4 )
1276   PORT_MODIFY("DSW4")
1277   PORT_DIPNAME( 0x10, 0x10, "Coin D Type" )   PORT_DIPLOCATION("DSW4:5")
1278   PORT_DIPSETTING(    0x10, "C-Type (Tokens)" )
1279   PORT_DIPSETTING(    0x00, "D-Type (Tickets)" )
1280   PORT_DIPNAME( 0x80, 0x80, "Coin A Mode" )   PORT_DIPLOCATION("DSW4:8")
1281   PORT_DIPSETTING(    0x80, "Unexchange" )
1282   PORT_DIPSETTING(    0x00, "Exchange" )
1283INPUT_PORTS_END
1284
1285static INPUT_PORTS_START( cb3_dsw5 )
1286   PORT_START("DSW5")
1287   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )   PORT_DIPLOCATION("DSW5:1")      /* not checked */
1288   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
1289   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1290   PORT_DIPNAME( 0x06, 0x06, "Coin In Limit" )     PORT_DIPLOCATION("DSW5:2,3")    /* not working */
1291   PORT_DIPSETTING(    0x06, "1,000" )
1292   PORT_DIPSETTING(    0x04, "5,000" )
1293   PORT_DIPSETTING(    0x02, "10,000" )
1294   PORT_DIPSETTING(    0x00, "20,000" )
1295   PORT_DIPNAME( 0x18, 0x10, "Coin Out Rate" )     PORT_DIPLOCATION("DSW5:4,5")    /* not checked */
1296   PORT_DIPSETTING(    0x00, "100 Credits / 1 Pulse" )
1297   PORT_DIPSETTING(    0x08, "100 Credits / 5 Pulses" )
1298   PORT_DIPSETTING(    0x10, "100 Credits / 10 Pulses" )
1299   PORT_DIPSETTING(    0x18, "100 Credits / 100 Pulses" )
1300   PORT_DIPNAME( 0x20, 0x20, "W-Up Girl" )         PORT_DIPLOCATION("DSW5:6")      /* not working */
1301   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
1302   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1303   PORT_DIPNAME( 0xc0, 0xc0, "Coin In Rate" )      PORT_DIPLOCATION("DSW5:7,8")    /* not checked */
1304   PORT_DIPSETTING(    0xc0, "100 Credits / 1 Pulse" )
1305   PORT_DIPSETTING(    0x40, "100 Credits / 5 Pulses" )
1306   PORT_DIPSETTING(    0x80, "100 Credits / 10 Pulses" )
1307   PORT_DIPSETTING(    0x00, "100 Credits / 100 Pulses" )
1308INPUT_PORTS_END
1309
1310
12241311static INPUT_PORTS_START( cmv801 )
12251312   PORT_INCLUDE( cmv4_player )
12261313
r244875r244876
12531340   PORT_DIPSETTING(    0x80, "64" )
12541341   PORT_DIPSETTING(    0xc0, "96" )
12551342
1256   PORT_START("DSW2")
1343   PORT_INCLUDE( cmv4_dsw2 )
1344   PORT_MODIFY("DSW2")
12571345   PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
12581346   PORT_DIPSETTING(    0x07, "35%" )
12591347   PORT_DIPSETTING(    0x06, "40%" )
r244875r244876
12631351   PORT_DIPSETTING(    0x02, "60%" )
12641352   PORT_DIPSETTING(    0x01, "65%" )
12651353   PORT_DIPSETTING(    0x00, "70%" )
1266   PORT_DIPNAME( 0x18, 0x00, "Hopper Limit" )          PORT_DIPLOCATION("DSW2:4,5")    /* OK */
1267   PORT_DIPSETTING(    0x18, "300" )
1268   PORT_DIPSETTING(    0x10, "500" )
1269   PORT_DIPSETTING(    0x08, "1000" )
1270   PORT_DIPSETTING(    0x00, "Unlimited" )
1271   PORT_DIPNAME( 0x20, 0x00, "100 Odds Sound" )        PORT_DIPLOCATION("DSW2:6")  /* not checked */
1272   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1273   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
1274   PORT_DIPNAME( 0x40, 0x40, "Key-In Type" )           PORT_DIPLOCATION("DSW2:7")  /* OK */
1275   PORT_DIPSETTING(    0x40, "A-Type" )
1276   PORT_DIPSETTING(    0x00, "B-Type" )
1277   PORT_DIPNAME( 0x80, 0x00, "Center Super 7 Bet Limit" )  PORT_DIPLOCATION("DSW2:8")  /* related with DSW 4-6 */
1278   PORT_DIPSETTING(    0x80, "Unlimited" )
1279   PORT_DIPSETTING(    0x00, "Limited" )
1354   /* Hopper Limit OK */
1355   /* 100+ Odds Sound not checked */
1356   /* Key In Type OK */
1357   /* Center Super 7 Bet Limit related with Min. Bet For Bonus Play (DSW4-6) */
12801358
12811359   PORT_INCLUDE( cmv4_dsw3 )   /* all OK */
12821360
r244875r244876
13231401   PORT_DIPSETTING(    0x80, "32" )
13241402   PORT_DIPSETTING(    0xc0, "64" )
13251403
1326   PORT_START("DSW2")
1327   PORT_DIPNAME( 0x07, 0x03, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
1404   PORT_INCLUDE( cmv4_dsw2 )
1405   PORT_MODIFY("DSW2")
1406   PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
13281407   PORT_DIPSETTING(    0x07, "30%" )
13291408   PORT_DIPSETTING(    0x06, "38%" )
13301409   PORT_DIPSETTING(    0x05, "46%" )
r244875r244876
13331412   PORT_DIPSETTING(    0x02, "70%" )
13341413   PORT_DIPSETTING(    0x01, "78%" )
13351414   PORT_DIPSETTING(    0x00, "86%" )
1336   PORT_DIPNAME( 0x18, 0x00, "Hopper Limit" )          PORT_DIPLOCATION("DSW2:4,5")    /* OK */
1337   PORT_DIPSETTING(    0x18, "300" )
1338   PORT_DIPSETTING(    0x10, "500" )
1339   PORT_DIPSETTING(    0x08, "1000" )
1340   PORT_DIPSETTING(    0x00, "Unlimited" )
1341   PORT_DIPNAME( 0x20, 0x00, "100 Odds Sound" )        PORT_DIPLOCATION("DSW2:6")  /* not checked */
1342   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1343   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
1344   PORT_DIPNAME( 0x40, 0x40, "Key-In Type" )           PORT_DIPLOCATION("DSW2:7")  /* OK */
1345   PORT_DIPSETTING(    0x40, "A-Type" )
1346   PORT_DIPSETTING(    0x00, "B-Type" )
1347   PORT_DIPNAME( 0x80, 0x00, "Center Super 7 Bet Limit" )  PORT_DIPLOCATION("DSW2:8")  /* related with DSW 4-6 */
1348   PORT_DIPSETTING(    0x80, "Unlimited" )
1349   PORT_DIPSETTING(    0x00, "Limited" )
1415   /* Hopper Limit OK */
1416   /* 100+ Odds Sound not checked */
1417   /* Key In Type OK */
1418   /* Center Super 7 Bet Limit related with Min. Bet For Bonus Play (DSW4-6) */
13501419
13511420   PORT_INCLUDE( cmv4_dsw3 )   /* all OK */
13521421
r244875r244876
14011470   PORT_DIPSETTING(    0x80, "32" )
14021471   PORT_DIPSETTING(    0xc0, "64" )
14031472
1404   PORT_START("DSW2")
1405   PORT_DIPNAME( 0x07, 0x03, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
1473   PORT_INCLUDE( cmv4_dsw2 )
1474   PORT_MODIFY("DSW2")
1475   PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
14061476   PORT_DIPSETTING(    0x07, "45%" )
14071477   PORT_DIPSETTING(    0x06, "50%" )
14081478   PORT_DIPSETTING(    0x05, "55%" )
r244875r244876
14111481   PORT_DIPSETTING(    0x02, "70%" )
14121482   PORT_DIPSETTING(    0x01, "75%" )
14131483   PORT_DIPSETTING(    0x00, "80%" )
1414   PORT_DIPNAME( 0x18, 0x00, "Hopper Limit" )          PORT_DIPLOCATION("DSW2:4,5")    /* OK */
1415   PORT_DIPSETTING(    0x18, "300" )
1416   PORT_DIPSETTING(    0x10, "500" )
1417   PORT_DIPSETTING(    0x08, "1000" )
1418   PORT_DIPSETTING(    0x00, "Unlimited" )
1419   PORT_DIPNAME( 0x20, 0x00, "100 Odds Sound" )        PORT_DIPLOCATION("DSW2:6")  /* not checked */
1420   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1421   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
1422   PORT_DIPNAME( 0x40, 0x40, "Key-In Type" )           PORT_DIPLOCATION("DSW2:7")  /* OK */
1423   PORT_DIPSETTING(    0x40, "A-Type" )
1424   PORT_DIPSETTING(    0x00, "B-Type" )
1425   PORT_DIPNAME( 0x80, 0x00, "Center Super 7 Bet Limit" )  PORT_DIPLOCATION("DSW2:8")  /* related with DSW 4-6 */
1426   PORT_DIPSETTING(    0x80, "Unlimited" )
1427   PORT_DIPSETTING(    0x00, "Limited" )
1484   /* Hopper Limit OK */
1485   /* 100+ Odds Sound not checked */
1486   /* Key In Type OK */
1487   /* Center Super 7 Bet Limit related with Min. Bet For Bonus Play (DSW4-6) */
14281488
14291489   PORT_INCLUDE( cmv4_dsw3 )   /* all OK */
14301490
r244875r244876
14791539   PORT_DIPSETTING(    0x80, "32" )
14801540   PORT_DIPSETTING(    0xc0, "64" )
14811541
1482   PORT_START("DSW2")
1483   PORT_DIPNAME( 0x07, 0x03, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
1542   PORT_INCLUDE( cmv4_dsw2 )
1543   PORT_MODIFY("DSW2")
1544   PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
14841545   PORT_DIPSETTING(    0x07, "55%" )
14851546   PORT_DIPSETTING(    0x06, "60%" )
14861547   PORT_DIPSETTING(    0x05, "65%" )
r244875r244876
14891550   PORT_DIPSETTING(    0x02, "80%" )
14901551   PORT_DIPSETTING(    0x01, "85%" )
14911552   PORT_DIPSETTING(    0x00, "90%" )
1492   PORT_DIPNAME( 0x18, 0x00, "Hopper Limit" )          PORT_DIPLOCATION("DSW2:4,5")    /* OK */
1493   PORT_DIPSETTING(    0x18, "300" )
1494   PORT_DIPSETTING(    0x10, "500" )
1495   PORT_DIPSETTING(    0x08, "1000" )
1496   PORT_DIPSETTING(    0x00, "Unlimited" )
1497   PORT_DIPNAME( 0x20, 0x00, "100 Odds Sound" )        PORT_DIPLOCATION("DSW2:6")  /* not checked */
1498   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1499   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
1500   PORT_DIPNAME( 0x40, 0x40, "Key-In Type" )           PORT_DIPLOCATION("DSW2:7")  /* OK */
1501   PORT_DIPSETTING(    0x40, "A-Type" )
1502   PORT_DIPSETTING(    0x00, "B-Type" )
1503   PORT_DIPNAME( 0x80, 0x00, "Center Super 7 Bet Limit" )  PORT_DIPLOCATION("DSW2:8")  /* related with DSW 4-6 */
1504   PORT_DIPSETTING(    0x80, "Unlimited" )
1505   PORT_DIPSETTING(    0x00, "Limited" )
1553   /* Hopper Limit OK */
1554   /* 100+ Odds Sound not checked */
1555   /* Key In Type OK */
1556   /* Center Super 7 Bet Limit related with Min. Bet For Bonus Play (DSW4-6) */
15061557
15071558   PORT_INCLUDE( cmv4_dsw3 )   /* all OK */
15081559
r244875r244876
15571608   PORT_DIPSETTING(    0x80, "32" )
15581609   PORT_DIPSETTING(    0xc0, "64" )
15591610
1560   PORT_START("DSW2")
1561   PORT_DIPNAME( 0x07, 0x03, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
1611   PORT_INCLUDE( cmv4_dsw2 )
1612   PORT_MODIFY("DSW2")
1613   PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
15621614   PORT_DIPSETTING(    0x07, "55%" )
15631615   PORT_DIPSETTING(    0x06, "60%" )
15641616   PORT_DIPSETTING(    0x05, "65%" )
r244875r244876
15671619   PORT_DIPSETTING(    0x02, "80%" )
15681620   PORT_DIPSETTING(    0x01, "85%" )
15691621   PORT_DIPSETTING(    0x00, "90%" )
1570   PORT_DIPNAME( 0x18, 0x00, "Hopper Limit" )          PORT_DIPLOCATION("DSW2:4,5")    /* OK */
1571   PORT_DIPSETTING(    0x18, "300" )
1572   PORT_DIPSETTING(    0x10, "500" )
1573   PORT_DIPSETTING(    0x08, "1000" )
1574   PORT_DIPSETTING(    0x00, "Unlimited" )
1575   PORT_DIPNAME( 0x20, 0x00, "100 Odds Sound" )        PORT_DIPLOCATION("DSW2:6")  /* not checked */
1576   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1577   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
1578   PORT_DIPNAME( 0x40, 0x40, "Key-In Type" )           PORT_DIPLOCATION("DSW2:7")  /* OK */
1579   PORT_DIPSETTING(    0x40, "A-Type" )
1580   PORT_DIPSETTING(    0x00, "B-Type" )
1581   PORT_DIPNAME( 0x80, 0x00, "Center Super 7 Bet Limit" )  PORT_DIPLOCATION("DSW2:8")  /* related with DSW 4-6 */
1582   PORT_DIPSETTING(    0x80, "Unlimited" )
1583   PORT_DIPSETTING(    0x00, "Limited" )
1622   /* Hopper Limit OK */
1623   /* 100+ Odds Sound not checked */
1624   /* Key In Type OK */
1625   /* Center Super 7 Bet Limit related with Min. Bet For Bonus Play (DSW4-6) */
15841626
15851627   PORT_INCLUDE( cmv4_dsw3 )   /* all OK */
15861628
r244875r244876
16351677   PORT_DIPSETTING(    0x80, "32" )
16361678   PORT_DIPSETTING(    0xc0, "64" )
16371679
1638   PORT_START("DSW2")
1639   PORT_DIPNAME( 0x07, 0x03, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
1680   PORT_INCLUDE( cmv4_dsw2 )
1681   PORT_MODIFY("DSW2")
1682   PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
16401683   PORT_DIPSETTING(    0x07, "45%" )
16411684   PORT_DIPSETTING(    0x06, "50%" )
16421685   PORT_DIPSETTING(    0x05, "55%" )
r244875r244876
16451688   PORT_DIPSETTING(    0x02, "70%" )
16461689   PORT_DIPSETTING(    0x01, "75%" )
16471690   PORT_DIPSETTING(    0x00, "80%" )
1648   PORT_DIPNAME( 0x18, 0x00, "Hopper Limit" )          PORT_DIPLOCATION("DSW2:4,5")    /* OK */
1649   PORT_DIPSETTING(    0x18, "300" )
1650   PORT_DIPSETTING(    0x10, "500" )
1651   PORT_DIPSETTING(    0x08, "1000" )
1652   PORT_DIPSETTING(    0x00, "Unlimited" )
1653   PORT_DIPNAME( 0x20, 0x00, "100 Odds Sound" )        PORT_DIPLOCATION("DSW2:6")  /* not checked */
1654   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1655   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
1656   PORT_DIPNAME( 0x40, 0x40, "Key-In Type" )           PORT_DIPLOCATION("DSW2:7")  /* OK */
1657   PORT_DIPSETTING(    0x40, "A-Type" )
1658   PORT_DIPSETTING(    0x00, "B-Type" )
1659   PORT_DIPNAME( 0x80, 0x00, "Center Super 7 Bet Limit" )  PORT_DIPLOCATION("DSW2:8")  /* related with DSW 4-6 */
1660   PORT_DIPSETTING(    0x80, "Unlimited" )
1661   PORT_DIPSETTING(    0x00, "Limited" )
1691   /* Hopper Limit OK */
1692   /* 100+ Odds Sound not checked */
1693   /* Key In Type OK */
1694   /* Center Super 7 Bet Limit related with Min. Bet For Bonus Play (DSW4-6) */
16621695
16631696   PORT_INCLUDE( cmv4_dsw3 )   /* all OK */
16641697
r244875r244876
18581891   PORT_DIPSETTING(    0x40, "32" )
18591892   PORT_DIPSETTING(    0x00, "50" )
18601893
1861   PORT_START("DSW2")
1862   PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")
1894   PORT_INCLUDE( cmv4_dsw2 )
1895   PORT_MODIFY("DSW2")
1896   PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
18631897   PORT_DIPSETTING(    0x00, "55%" )
18641898   PORT_DIPSETTING(    0x01, "60%" )
18651899   PORT_DIPSETTING(    0x02, "65%" )
r244875r244876
18681902   PORT_DIPSETTING(    0x05, "80%" )
18691903   PORT_DIPSETTING(    0x06, "85%" )
18701904   PORT_DIPSETTING(    0x07, "90%" )
1871   PORT_DIPNAME( 0x18, 0x00, "Hopper Limit" )          PORT_DIPLOCATION("DSW2:4,5")
1872   PORT_DIPSETTING(    0x18, "300" )
1873   PORT_DIPSETTING(    0x10, "500" )
1874   PORT_DIPSETTING(    0x08, "1000" )
1875   PORT_DIPSETTING(    0x00, "Unlimited" )
1876   PORT_DIPNAME( 0x20, 0x00, "100 Odds Sound" )        PORT_DIPLOCATION("DSW2:6")
1877   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1878   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
1879   PORT_DIPNAME( 0x40, 0x00, "Key-In Type" )           PORT_DIPLOCATION("DSW2:7")
1880   PORT_DIPSETTING(    0x40, "B-Type" )
1881   PORT_DIPSETTING(    0x00, "A-Type" )
1882   PORT_DIPNAME( 0x80, 0x00, "Center Super 7 Bet Limit" )  PORT_DIPLOCATION("DSW2:8")  /* related with DSW 4-6 */
1883   PORT_DIPSETTING(    0x80, "Unlimited" )
1884   PORT_DIPSETTING(    0x00, "Limited" )
1905   /* Hopper limit not checked */
1906   /* 100+ Odds Sound not checked */
1907   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )      PORT_DIPLOCATION("DSW2:7")      /* normally Key In Type but doesn't affect rate for this game */
1908   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
1909   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1910   /* Center Super 7 Bet Limit related with Min. Bet For Bonus Play (DSW4-6) */
18851911
1886   PORT_START("DSW3")  /* some of these could be wrong */
1887   PORT_DIPNAME( 0x03, 0x03, "Key In Rate" ) PORT_DIPLOCATION("DSW3:1,2")
1888   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00) // A-Type
1889   PORT_DIPSETTING(    0x01, "1 Coin/20 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
1890   PORT_DIPSETTING(    0x02, "1 Coin/50 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
1891   PORT_DIPSETTING(    0x03, "1 Coin/100 Credits" )    PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
1892   PORT_DIPSETTING(    0x00, DEF_STR( 1C_5C ) )        PORT_CONDITION("DSW2",0x40,EQUALS,0x40) // B-Type
1893   PORT_DIPSETTING(    0x01, "1 Coin/10 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
1894   PORT_DIPSETTING(    0x02, "1 Coin/25 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
1895   PORT_DIPSETTING(    0x03, "1 Coin/50 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
1896   PORT_DIPNAME( 0x0c, 0x0c, "Coin A Rate" ) PORT_DIPLOCATION("DSW3:3,4")
1912   PORT_START("DSW3")
1913   PORT_DIPNAME( 0x03, 0x03, "Key In Rate" ) PORT_DIPLOCATION("DSW3:1,2")      /* OK */
18971914   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
1915   PORT_DIPSETTING(    0x01, "1 Coin/20 Credits" )
1916   PORT_DIPSETTING(    0x02, "1 Coin/50 Credits" )
1917   PORT_DIPSETTING(    0x03, "1 Coin/100 Credits" )
1918   PORT_DIPNAME( 0x0c, 0x0c, "Coin A Rate" ) PORT_DIPLOCATION("DSW3:3,4")      /* OK - unused value also produces 1C/10C */
1919   PORT_DIPSETTING(    0x0c, "1 Coin/10 Credits" )
18981920   PORT_DIPSETTING(    0x04, "1 Coin/20 Credits" )
18991921   PORT_DIPSETTING(    0x08, "1 Coin/50 Credits" )
1900   PORT_DIPSETTING(    0x0c, "1 Coin/10 Credits" )
1901   PORT_DIPNAME( 0x30, 0x30, "Coin D Rate" ) PORT_DIPLOCATION("DSW3:5,6")
1902   PORT_DIPSETTING(    0x30, DEF_STR( 5C_1C ) )                PORT_CONDITION("DSW4",0x10,EQUALS,0x10) // C-Type
1903   PORT_DIPSETTING(    0x20, DEF_STR( 2C_1C ) )                PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
1904   PORT_DIPSETTING(    0x10, DEF_STR( 1C_1C ) )                PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
1905   PORT_DIPSETTING(    0x00, DEF_STR( 1C_2C ) )                PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
1906   PORT_DIPSETTING(    0x30, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00) // D-Type
1907   PORT_DIPSETTING(    0x20, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
1908   PORT_DIPSETTING(    0x10, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
1909   PORT_DIPSETTING(    0x00, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
1910   PORT_DIPNAME( 0xc0, 0xc0, "Coin C Rate" ) PORT_DIPLOCATION("DSW3:7,8")
1922   PORT_DIPNAME( 0x30, 0x30, "Coin D Rate" )   PORT_DIPLOCATION("DSW3:5,6")    /* OK */
1923   PORT_DIPSETTING(    0x30, DEF_STR( 5C_1C ) )        PORT_CONDITION("DSW4",0x10,EQUALS,0x10) /* C-Type */
1924   PORT_DIPSETTING(    0x20, DEF_STR( 2C_1C ) )        PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
1925   PORT_DIPSETTING(    0x10, DEF_STR( 1C_1C ) )        PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
1926   PORT_DIPSETTING(    0x00, DEF_STR( 1C_2C ) )        PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
1927   PORT_DIPSETTING(    0x00, "1 Ticket/5 Credits" )    PORT_CONDITION("DSW4",0x10,EQUALS,0x00) /* D-Type */
1928   PORT_DIPSETTING(    0x10, "1 Ticket/10 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
1929   PORT_DIPSETTING(    0x20, "1 Ticket/20 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
1930   PORT_DIPSETTING(    0x30, "1 Ticket/50 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
1931   PORT_DIPNAME( 0xc0, 0xc0, "Coin C Rate" ) PORT_DIPLOCATION("DSW3:7,8")      /* OK */
19111932   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
19121933   PORT_DIPSETTING(    0x40, DEF_STR( 1C_2C ) )
19131934   PORT_DIPSETTING(    0x80, DEF_STR( 1C_5C ) )
19141935   PORT_DIPSETTING(    0xc0, "1 Coin/10 Credits" )
19151936
1916   PORT_START("DSW4")
1917   PORT_DIPNAME( 0x07, 0x06, "Credit Limit" )              PORT_DIPLOCATION("DSW4:1,2,3")
1918   PORT_DIPSETTING(    0x07, "5,000" )
1919   PORT_DIPSETTING(    0x06, "10,000" )
1920   PORT_DIPSETTING(    0x05, "20,000" )
1921   PORT_DIPSETTING(    0x04, "30,000" )
1922   PORT_DIPSETTING(    0x03, "40,000" )
1923   PORT_DIPSETTING(    0x02, "50,000" )
1924   PORT_DIPSETTING(    0x01, "100,000" )
1925   PORT_DIPSETTING(    0x00, "Unlimited" )
1926   PORT_DIPNAME( 0x08, 0x00, "Display Of Credit Limit" )   PORT_DIPLOCATION("DSW4:4")
1927   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
1928   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1929   PORT_DIPNAME( 0x10, 0x10, "Type Of Coin D" )            PORT_DIPLOCATION("DSW4:5")
1930   PORT_DIPSETTING(    0x10, "D-Type (Tokens)" )
1931   PORT_DIPSETTING(    0x00, "C-Type (Ticket)" )
1932   PORT_DIPNAME( 0x20, 0x00, "Bonus Play Min.Bet" )        PORT_DIPLOCATION("DSW4:6")
1933   PORT_DIPSETTING(    0x20, "16 Bet" )
1934   PORT_DIPSETTING(    0x00, "8 Bet" )
1935   PORT_DIPNAME( 0x40, 0x00, "Reel Speed" )                PORT_DIPLOCATION("DSW4:7")
1936   PORT_DIPSETTING(    0x40, DEF_STR( Low ) )
1937   PORT_DIPSETTING(    0x00, DEF_STR( High ) )
1938   PORT_DIPNAME( 0x80, 0x80, "Coin A Mode" )               PORT_DIPLOCATION("DSW4:8")
1939   PORT_DIPSETTING(    0x80, "Unexchange" )
1940   PORT_DIPSETTING(    0x00, "Exchange" )
1937   PORT_INCLUDE( cb3_dsw4 )    /* all OK */
19411938
1942   /* DSW5 is not connected yet. Where the hell is connected? */
1943   PORT_START("DSW5")
1944   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )       PORT_DIPLOCATION("DSW5:1")
1945   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
1946   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1947   PORT_DIPNAME( 0x06, 0x00, "Coin In Limit" )         PORT_DIPLOCATION("DSW5:2,3")
1948   PORT_DIPSETTING(    0x06, "1000" )
1949   PORT_DIPSETTING(    0x04, "5000" )
1950   PORT_DIPSETTING(    0x02, "10000" )
1951   PORT_DIPSETTING(    0x00, "20000" )
1952   PORT_DIPNAME( 0x18, 0x10, "Coin Out Rate" )         PORT_DIPLOCATION("DSW5:4,5")
1953   PORT_DIPSETTING(    0x00, "100 Credits / 1 Pulse" )
1954   PORT_DIPSETTING(    0x08, "100 Credits / 5 Pulses" )
1955   PORT_DIPSETTING(    0x10, "100 Credits / 10 Pulses" )
1956   PORT_DIPSETTING(    0x18, "100 Credits / 100 Pulses" )
1957   PORT_DIPNAME( 0x20, 0x00, "W-UP Girl" )             PORT_DIPLOCATION("DSW5:6")
1958   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
1959   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1960   PORT_DIPNAME( 0xc0, 0x40, "Coin In Rate" )          PORT_DIPLOCATION("DSW5:7,8")
1961   PORT_DIPSETTING(    0xc0, "100 Credits / 1 Pulse" )
1962   PORT_DIPSETTING(    0x40, "100 Credits / 5 Pulses" )
1963   PORT_DIPSETTING(    0x80, "100 Credits / 10 Pulses" )
1964   PORT_DIPSETTING(    0x00, "100 Credits / 100 Pulses" )
1939   PORT_INCLUDE( cb3_dsw5 )    /* DSW5 is not connected yet. Where the hell is connected? */
19651940INPUT_PORTS_END
19661941
19671942// dip switches from manual, values & inputs are a guess from cmasterb
r244875r244876
25242499   PORT_DIPSETTING(    0x40, "32" )
25252500   PORT_DIPSETTING(    0x00, "64" )
25262501
2527   PORT_START("DSW2")
2528   PORT_DIPNAME( 0x07, 0x04, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
2502   PORT_INCLUDE( cmv4_dsw2 )
2503   PORT_MODIFY("DSW2")
2504   PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
25292505   PORT_DIPSETTING(    0x00, "40%" )
25302506   PORT_DIPSETTING(    0x01, "45%" )
25312507   PORT_DIPSETTING(    0x02, "50%" )
r244875r244876
25342510   PORT_DIPSETTING(    0x05, "65%" )
25352511   PORT_DIPSETTING(    0x06, "70%" )
25362512   PORT_DIPSETTING(    0x07, "80%" )
2537   PORT_DIPNAME( 0x18, 0x00, "Hopper Limit" )          PORT_DIPLOCATION("DSW2:4,5")
2538   PORT_DIPSETTING(    0x18, "300" )
2539   PORT_DIPSETTING(    0x10, "500" )
2540   PORT_DIPSETTING(    0x08, "1000" )
2541   PORT_DIPSETTING(    0x00, "Unlimited" )
2542   PORT_DIPNAME( 0x20, 0x00, "100 Odds Sound" )        PORT_DIPLOCATION("DSW2:6")
2543   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
2544   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
2545   PORT_DIPNAME( 0x40, 0x00, "Key-In Type" )           PORT_DIPLOCATION("DSW2:7")  /* OK */
2546   PORT_DIPSETTING(    0x40, "B-Type" )
2547   PORT_DIPSETTING(    0x00, "A-Type" )
2548   PORT_DIPNAME( 0x80, 0x00, "Center Super 7 Bet Limit" )  PORT_DIPLOCATION("DSW2:8")  /* related with DSW 4-6 */
2549   PORT_DIPSETTING(    0x80, "Unlimited" )
2550   PORT_DIPSETTING(    0x00, "Limited" )
2513   /* Hopper Limit not checked */
2514   /* 100+ Odds Sound not checked */
2515   /* Key In Type OK - note that definition of A-Type and B-Type are reversed compared to cmv4 */
2516   /* Center Super 7 Bet Limit related with Min. Bet For Bonus Play (DSW4-6) */
25512517
2552   PORT_START("DSW3")  /* seems ok */
2518   PORT_START("DSW3")
25532519   PORT_DIPNAME( 0x03, 0x03, "Key In Rate" ) PORT_DIPLOCATION("DSW3:1,2")  /* OK */
2554   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00) // A-Type
2555   PORT_DIPSETTING(    0x01, "1 Coin/20 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
2556   PORT_DIPSETTING(    0x02, "1 Coin/50 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
2557   PORT_DIPSETTING(    0x03, "1 Coin/100 Credits" )    PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
2558   PORT_DIPSETTING(    0x00, DEF_STR( 1C_5C ) )        PORT_CONDITION("DSW2",0x40,EQUALS,0x40) // B-Type
2520   PORT_DIPSETTING(    0x00, DEF_STR( 1C_5C ) )        PORT_CONDITION("DSW2",0x40,EQUALS,0x40) /* A-Type */
25592521   PORT_DIPSETTING(    0x01, "1 Coin/10 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
25602522   PORT_DIPSETTING(    0x02, "1 Coin/25 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
25612523   PORT_DIPSETTING(    0x03, "1 Coin/50 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
2524   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00) /* B-Type */
2525   PORT_DIPSETTING(    0x01, "1 Coin/20 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
2526   PORT_DIPSETTING(    0x02, "1 Coin/50 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
2527   PORT_DIPSETTING(    0x03, "1 Coin/100 Credits" )    PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
25622528   PORT_DIPNAME( 0x0c, 0x0c, "Coin A Rate" ) PORT_DIPLOCATION("DSW3:3,4")  /* OK */
25632529   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
25642530   PORT_DIPSETTING(    0x04, "1 Coin/20 Credits" )
25652531   PORT_DIPSETTING(    0x08, "1 Coin/50 Credits" )
25662532   PORT_DIPSETTING(    0x0c, "1 Coin/100 Credits" )
25672533   PORT_DIPNAME( 0x30, 0x30, "Coin D Rate" ) PORT_DIPLOCATION("DSW3:5,6")  /* OK */
2568   PORT_DIPSETTING(    0x30, "5 Coin/10 Credits" )             PORT_CONDITION("DSW4",0x10,EQUALS,0x10) // C-Type
2569   PORT_DIPSETTING(    0x20, "2 Coin/10 Credits" )             PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
2570   PORT_DIPSETTING(    0x10, "1 Coin/10 Credits" )             PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
2571   PORT_DIPSETTING(    0x00, "1 Coin/20 Credits" )             PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
2572   PORT_DIPSETTING(    0x00, "1 Ticket/Coin / 50 Credits" )    PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
2573   PORT_DIPSETTING(    0x10, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
2574   PORT_DIPSETTING(    0x20, "1 Ticket/Coin / 200 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
2575   PORT_DIPSETTING(    0x30, "1 Ticket/Coin / 500 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00) // D-Type
2534   PORT_DIPSETTING(    0x30, DEF_STR( 5C_1C ) )        PORT_CONDITION("DSW4",0x10,EQUALS,0x10) /* C-Type */
2535   PORT_DIPSETTING(    0x20, "2 Coins/10 Credits" )    PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
2536   PORT_DIPSETTING(    0x10, "1 Coin/10 Credits" )     PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
2537   PORT_DIPSETTING(    0x00, "1 Coin/20 Credits" )     PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
2538   PORT_DIPSETTING(    0x00, "1 Ticket/50 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00) /* D-Type */
2539   PORT_DIPSETTING(    0x10, "1 Ticket/100 Credits" )  PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
2540   PORT_DIPSETTING(    0x20, "1 Ticket/200 Credits" )  PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
2541   PORT_DIPSETTING(    0x30, "1 Ticket/500 Credits" )  PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
25762542   PORT_DIPNAME( 0xc0, 0xc0, "Coin C Rate" ) PORT_DIPLOCATION("DSW3:7,8")  /* OK */
25772543   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
25782544   PORT_DIPSETTING(    0x40, "1 Coin/20 Credits" )
25792545   PORT_DIPSETTING(    0x80, "1 Coin/50 Credits" )
25802546   PORT_DIPSETTING(    0xc0, "1 Coin/100 Credits" )
25812547
2582   PORT_START("DSW4")
2583   PORT_DIPNAME( 0x07, 0x06, "Credit Limit" )              PORT_DIPLOCATION("DSW4:1,2,3")  /* OK */
2584   PORT_DIPSETTING(    0x07, "5,000" )
2585   PORT_DIPSETTING(    0x06, "10,000" )
2586   PORT_DIPSETTING(    0x05, "20,000" )
2587   PORT_DIPSETTING(    0x04, "30,000" )
2588   PORT_DIPSETTING(    0x03, "40,000" )
2589   PORT_DIPSETTING(    0x02, "50,000" )
2590   PORT_DIPSETTING(    0x01, "100,000" )
2591   PORT_DIPSETTING(    0x00, "Unlimited" )
2592   PORT_DIPNAME( 0x08, 0x00, "Display Of Credit Limit" )   PORT_DIPLOCATION("DSW4:4")  /* OK */
2593   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
2594   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2595   PORT_DIPNAME( 0x10, 0x10, "Type Of Coin D" )            PORT_DIPLOCATION("DSW4:5")  /* OK */
2596   PORT_DIPSETTING(    0x10, "D-Type (Tokens)" )
2597   PORT_DIPSETTING(    0x00, "C-Type (Ticket)" )
2598   PORT_DIPNAME( 0x20, 0x00, "Bonus Play Min.Bet" )        PORT_DIPLOCATION("DSW4:6")  /* OK */
2599   PORT_DIPSETTING(    0x20, "16 Bet" )
2600   PORT_DIPSETTING(    0x00, "8 Bet" )
2601   PORT_DIPNAME( 0x40, 0x00, "Reel Speed" )                PORT_DIPLOCATION("DSW4:7")  /* OK */
2602   PORT_DIPSETTING(    0x40, DEF_STR( Low ) )
2603   PORT_DIPSETTING(    0x00, DEF_STR( High ) )
2604   PORT_DIPNAME( 0x80, 0x80, "Coin A Mode" )               PORT_DIPLOCATION("DSW4:8")  /* OK */
2605   PORT_DIPSETTING(    0x80, "Unexchange" )
2606   PORT_DIPSETTING(    0x00, "Exchange" )
2548   PORT_INCLUDE( cb3_dsw4 )    /* all OK */
26072549
2608   PORT_START("DSW5")
2609   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )       PORT_DIPLOCATION("DSW5:1")
2610   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
2611   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2612   PORT_DIPNAME( 0x06, 0x00, "Coin In Limit" )         PORT_DIPLOCATION("DSW5:2,3")
2613   PORT_DIPSETTING(    0x06, "1000" )
2614   PORT_DIPSETTING(    0x04, "5000" )
2615   PORT_DIPSETTING(    0x02, "10000" )
2616   PORT_DIPSETTING(    0x00, "20000" )
2617   PORT_DIPNAME( 0x18, 0x10, "Coin Out Rate" )         PORT_DIPLOCATION("DSW5:4,5")
2618   PORT_DIPSETTING(    0x00, "100 Credits / 1 Pulse" )
2619   PORT_DIPSETTING(    0x08, "100 Credits / 5 Pulses" )
2620   PORT_DIPSETTING(    0x10, "100 Credits / 10 Pulses" )
2621   PORT_DIPSETTING(    0x18, "100 Credits / 100 Pulses" )
2622   PORT_DIPNAME( 0x20, 0x00, "W-UP Girl" )             PORT_DIPLOCATION("DSW5:6")
2623   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
2624   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2625   PORT_DIPNAME( 0xc0, 0x40, "Coin In Rate" )          PORT_DIPLOCATION("DSW5:7,8")
2626   PORT_DIPSETTING(    0xc0, "100 Credits / 1 Pulse" )
2627   PORT_DIPSETTING(    0x40, "100 Credits / 5 Pulses" )
2628   PORT_DIPSETTING(    0x80, "100 Credits / 10 Pulses" )
2629   PORT_DIPSETTING(    0x00, "100 Credits / 100 Pulses" )
2550   PORT_INCLUDE( cb3_dsw5 )
2551   /* DSW5-1 not checked */
2552   /* Coin In Limit not working */
2553   /* Coin Out Rate not checked */
2554   /* W-Up Girl not working */
2555   /* Coin In Rate not checked */
26302556INPUT_PORTS_END
26312557
26322558static INPUT_PORTS_START( ncb3 )
r244875r244876
26802606   PORT_DIPSETTING(    0x40, "32" )
26812607   PORT_DIPSETTING(    0x00, "64" )
26822608
2683   PORT_START("DSW2")
2684   PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")
2609   PORT_INCLUDE( cmv4_dsw2 )
2610   PORT_MODIFY("DSW2")
2611   PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")  /* OK */
26852612   PORT_DIPSETTING(    0x00, "55%" )
26862613   PORT_DIPSETTING(    0x01, "60%" )
26872614   PORT_DIPSETTING(    0x02, "65%" )
r244875r244876
26902617   PORT_DIPSETTING(    0x05, "80%" )
26912618   PORT_DIPSETTING(    0x06, "85%" )
26922619   PORT_DIPSETTING(    0x07, "90%" )
2693   PORT_DIPNAME( 0x18, 0x00, "Hopper Limit" )          PORT_DIPLOCATION("DSW2:4,5")
2694   PORT_DIPSETTING(    0x18, "300" )
2695   PORT_DIPSETTING(    0x10, "500" )
2696   PORT_DIPSETTING(    0x08, "1000" )
2697   PORT_DIPSETTING(    0x00, "Unlimited" )
2698   PORT_DIPNAME( 0x20, 0x00, "100 Odds Sound" )        PORT_DIPLOCATION("DSW2:6")
2699   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
2700   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
2701   PORT_DIPNAME( 0x40, 0x00, "Key-In Type" )           PORT_DIPLOCATION("DSW2:7")
2702   PORT_DIPSETTING(    0x40, "B-Type" )
2703   PORT_DIPSETTING(    0x00, "A-Type" )
2704   PORT_DIPNAME( 0x80, 0x00, "Center Super 7 Bet Limit" )  PORT_DIPLOCATION("DSW2:8")  /* related with DSW 4-6 */
2705   PORT_DIPSETTING(    0x80, "Unlimited" )
2706   PORT_DIPSETTING(    0x00, "Limited" )
2620   /* Hopper Limit not checked */
2621   /* 100+ Odds Sound not checked */
2622   /* Key In Type OK - note that definition of A-Type and B-Type are reversed compared to cmv4 */
2623   /* Center Super 7 Bet Limit related with Min. Bet For Bonus Play (DSW4-6) */
27072624
2708   PORT_START("DSW3")  /* some of these are wrong */
2709   PORT_DIPNAME( 0x03, 0x03, "Key In Rate" ) PORT_DIPLOCATION("DSW3:1,2")
2710   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00) // A-Type
2711   PORT_DIPSETTING(    0x01, "1 Coin/20 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
2712   PORT_DIPSETTING(    0x02, "1 Coin/50 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
2713   PORT_DIPSETTING(    0x03, "1 Coin/100 Credits" )    PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
2714   PORT_DIPSETTING(    0x00, DEF_STR( 1C_5C ) )        PORT_CONDITION("DSW2",0x40,EQUALS,0x40) // B-Type
2715   PORT_DIPSETTING(    0x01, "1 Coin/10 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
2716   PORT_DIPSETTING(    0x02, "1 Coin/25 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
2717   PORT_DIPSETTING(    0x03, "1 Coin/50 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
2718   PORT_DIPNAME( 0x0c, 0x0c, "Coin A Rate" ) PORT_DIPLOCATION("DSW3:3,4")
2719   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
2720   PORT_DIPSETTING(    0x04, DEF_STR( 1C_2C ) )
2721   PORT_DIPSETTING(    0x08, DEF_STR( 1C_5C ) )
2722   PORT_DIPSETTING(    0x0c, "1 Coin/10 Credits" )
2723   PORT_DIPNAME( 0x30, 0x30, "Coin D Rate" ) PORT_DIPLOCATION("DSW3:5,6")
2724   PORT_DIPSETTING(    0x30, DEF_STR( 5C_1C ) )                PORT_CONDITION("DSW4",0x10,EQUALS,0x10) // C-Type
2725   PORT_DIPSETTING(    0x20, DEF_STR( 2C_1C ) )                PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
2726   PORT_DIPSETTING(    0x10, DEF_STR( 1C_1C ) )                PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
2727   PORT_DIPSETTING(    0x00, DEF_STR( 1C_2C ) )                PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
2728   PORT_DIPSETTING(    0x30, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00) // D-Type
2729   PORT_DIPSETTING(    0x20, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
2730   PORT_DIPSETTING(    0x10, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
2731   PORT_DIPSETTING(    0x00, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
2732   PORT_DIPNAME( 0xc0, 0xc0, "Coin C Rate" ) PORT_DIPLOCATION("DSW3:7,8")
2733   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
2734   PORT_DIPSETTING(    0x40, DEF_STR( 1C_2C ) )
2735   PORT_DIPSETTING(    0x80, DEF_STR( 1C_5C ) )
2736   PORT_DIPSETTING(    0xc0, "1 Coin/10 Credits" )
2625   PORT_INCLUDE( cb3_dsw3 )    /* all OK */
27372626
2738   PORT_START("DSW4")
2739   PORT_DIPNAME( 0x07, 0x06, "Credit Limit" )              PORT_DIPLOCATION("DSW4:1,2,3")
2740   PORT_DIPSETTING(    0x07, "5,000" )
2741   PORT_DIPSETTING(    0x06, "10,000" )
2742   PORT_DIPSETTING(    0x05, "20,000" )
2743   PORT_DIPSETTING(    0x04, "30,000" )
2744   PORT_DIPSETTING(    0x03, "40,000" )
2745   PORT_DIPSETTING(    0x02, "50,000" )
2746   PORT_DIPSETTING(    0x01, "100,000" )
2747   PORT_DIPSETTING(    0x00, "Unlimited" )
2748   PORT_DIPNAME( 0x08, 0x00, "Display Of Credit Limit" )   PORT_DIPLOCATION("DSW4:4")
2749   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
2750   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2751   PORT_DIPNAME( 0x10, 0x10, "Type Of Coin D" )            PORT_DIPLOCATION("DSW4:5")
2752   PORT_DIPSETTING(    0x10, "D-Type (Tokens)" )
2753   PORT_DIPSETTING(    0x00, "C-Type (Ticket)" )
2754   PORT_DIPNAME( 0x20, 0x00, "Bonus Play Min.Bet" )        PORT_DIPLOCATION("DSW4:6")
2755   PORT_DIPSETTING(    0x20, "16 Bet" )
2756   PORT_DIPSETTING(    0x00, "8 Bet" )
2757   PORT_DIPNAME( 0x40, 0x00, "Reel Speed" )                PORT_DIPLOCATION("DSW4:7")
2758   PORT_DIPSETTING(    0x40, DEF_STR( Low ) )
2759   PORT_DIPSETTING(    0x00, DEF_STR( High ) )
2760   PORT_DIPNAME( 0x80, 0x80, "Coin A Mode" )               PORT_DIPLOCATION("DSW4:8")
2761   PORT_DIPSETTING(    0x80, "Unexchange" )
2762   PORT_DIPSETTING(    0x00, "Exchange" )
2627   PORT_INCLUDE( cb3_dsw4 )    /* all OK */
27632628
2764   PORT_START("DSW5")
2765   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )       PORT_DIPLOCATION("DSW5:1")
2766   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
2767   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2768   PORT_DIPNAME( 0x06, 0x00, "Coin In Limit" )         PORT_DIPLOCATION("DSW5:2,3")
2769   PORT_DIPSETTING(    0x06, "1000" )
2770   PORT_DIPSETTING(    0x04, "5000" )
2771   PORT_DIPSETTING(    0x02, "10000" )
2772   PORT_DIPSETTING(    0x00, "20000" )
2773   PORT_DIPNAME( 0x18, 0x10, "Coin Out Rate" )         PORT_DIPLOCATION("DSW5:4,5")
2774   PORT_DIPSETTING(    0x00, "100 Credits / 1 Pulse" )
2775   PORT_DIPSETTING(    0x08, "100 Credits / 5 Pulses" )
2776   PORT_DIPSETTING(    0x10, "100 Credits / 10 Pulses" )
2777   PORT_DIPSETTING(    0x18, "100 Credits / 100 Pulses" )
2778   PORT_DIPNAME( 0x20, 0x00, "W-UP Girl" )             PORT_DIPLOCATION("DSW5:6")
2779   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
2780   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2781   PORT_DIPNAME( 0xc0, 0x40, "Coin In Rate" )          PORT_DIPLOCATION("DSW5:7,8")
2782   PORT_DIPSETTING(    0xc0, "100 Credits / 1 Pulse" )
2783   PORT_DIPSETTING(    0x40, "100 Credits / 5 Pulses" )
2784   PORT_DIPSETTING(    0x80, "100 Credits / 10 Pulses" )
2785   PORT_DIPSETTING(    0x00, "100 Credits / 100 Pulses" )
2629   PORT_INCLUDE( cb3_dsw5 )
2630   /* DSW5-1 not checked */
2631   /* Coin In Limit not working */
2632   /* Coin Out Rate not checked */
2633   /* W-Up Girl not working */
2634   /* Coin In Rate not checked */
27862635INPUT_PORTS_END
27872636
27882637static INPUT_PORTS_START( cb3a )
2789   PORT_START("IN0")
2790   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
2791   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
2792   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_X) PORT_NAME("P1 - Stop 2 / Big / Bonus Game / Switch Controls")
2793   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CODE(KEYCODE_B) PORT_NAME("P1 - Blue Bet / D-UP / Card 3")
2794   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_Z) PORT_NAME("P1 - Stop 1 / Take")
2795   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_CODE(KEYCODE_V) PORT_NAME("P1 - Red Bet / Card 2")
2796   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CODE(KEYCODE_C) PORT_NAME("P1 - Stop 3 / Small / Info / Card 1")
2797   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_CODE(KEYCODE_N) PORT_NAME("P1 - Start / Stop All / Card 4")
2638   PORT_INCLUDE( ncb3 )
27982639
2799   PORT_INCLUDE( cmv4_coins )
2800
2801   PORT_INCLUDE( cmv4_service )
2802
2803   PORT_START("IN3")
2804   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
2805   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
2806   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON8 )  PORT_CODE(KEYCODE_S) PORT_NAME("P2 - Stop 2 / Big / Bonus Game / Switch Controls")
2807   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_CODE(KEYCODE_G) PORT_NAME("P2 - Blue Bet / D-UP / Card 3")
2808   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON7 )  PORT_CODE(KEYCODE_A) PORT_NAME("P2 - Stop 1 / Take")
2809   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON10 ) PORT_CODE(KEYCODE_F) PORT_NAME("P2 - Red Bet / Card 2")
2810   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON9 )  PORT_CODE(KEYCODE_D) PORT_NAME("P2 - Stop 3 / Small / Info / Card 1")
2811   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON12 ) PORT_CODE(KEYCODE_H) PORT_NAME("P2 - Start / Stop All / Card 4")
2812
2813   /* to check DIP switches... */
2814   PORT_START("DSW1")
2815   PORT_DIPNAME( 0x01, 0x01, "Game Style" )        PORT_DIPLOCATION("DSW1:1")
2816   PORT_DIPSETTING(    0x01, "Tokens" )
2817   PORT_DIPSETTING(    0x00, "Ticket" )
2818   PORT_DIPNAME( 0x02, 0x02, "Hopper Out Switch" ) PORT_DIPLOCATION("DSW1:2")
2819   PORT_DIPSETTING(    0x02, "Active Low" )
2820   PORT_DIPSETTING(    0x00, "Active High" )
2821   PORT_DIPNAME( 0x04, 0x04, "Payout Mode" )       PORT_DIPLOCATION("DSW1:3")
2822   PORT_DIPSETTING(    0x04, "Payout Switch" )
2823   PORT_DIPSETTING(    0x00, "Automatic" )
2824   PORT_DIPNAME( 0x08, 0x00, "W-UP '7'" )          PORT_DIPLOCATION("DSW1:4")
2825   PORT_DIPSETTING(    0x08, "Loss" )
2826   PORT_DIPSETTING(    0x00, "Even" )
2827   PORT_DIPNAME( 0x10, 0x10, "W-UP Pay Rate" )     PORT_DIPLOCATION("DSW1:5")
2640   PORT_MODIFY("DSW1")
2641   PORT_DIPNAME( 0x10, 0x10, "W-Up Pay Rate" )     PORT_DIPLOCATION("DSW1:5")  /* OK */
28282642   PORT_DIPSETTING(    0x00, "50%" )
28292643   PORT_DIPSETTING(    0x10, "80%" )
2830   PORT_DIPNAME( 0x20, 0x20, "W-UP Game" )         PORT_DIPLOCATION("DSW1:6")
2831   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
2832   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
2833   PORT_DIPNAME( 0xc0, 0x00, "Bet Max" )           PORT_DIPLOCATION("DSW1:7,8")
2834   PORT_DIPSETTING(    0xc0, "8" )
2835   PORT_DIPSETTING(    0x80, "16" )
2836   PORT_DIPSETTING(    0x40, "32" )
2837   PORT_DIPSETTING(    0x00, "64" )
2838
2839   PORT_START("DSW2")
2840   PORT_DIPNAME( 0x07, 0x00, "Main Game Pay Rate" )    PORT_DIPLOCATION("DSW2:1,2,3")
2841   PORT_DIPSETTING(    0x00, "55%" )
2842   PORT_DIPSETTING(    0x01, "60%" )
2843   PORT_DIPSETTING(    0x02, "65%" )
2844   PORT_DIPSETTING(    0x03, "70%" )
2845   PORT_DIPSETTING(    0x04, "75%" )
2846   PORT_DIPSETTING(    0x05, "80%" )
2847   PORT_DIPSETTING(    0x06, "85%" )
2848   PORT_DIPSETTING(    0x07, "90%" )
2849   PORT_DIPNAME( 0x18, 0x00, "Hopper Limit" )          PORT_DIPLOCATION("DSW2:4,5")
2850   PORT_DIPSETTING(    0x18, "300" )
2851   PORT_DIPSETTING(    0x10, "500" )
2852   PORT_DIPSETTING(    0x08, "1000" )
2853   PORT_DIPSETTING(    0x00, "Unlimited" )
2854   PORT_DIPNAME( 0x20, 0x00, "100 Odds Sound" )        PORT_DIPLOCATION("DSW2:6")
2855   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
2856   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
2857   PORT_DIPNAME( 0x40, 0x00, "Key-In Type" )           PORT_DIPLOCATION("DSW2:7")
2858   PORT_DIPSETTING(    0x40, "B-Type" )
2859   PORT_DIPSETTING(    0x00, "A-Type" )
2860   PORT_DIPNAME( 0x80, 0x00, "Center Super 7 Bet Limit" )  PORT_DIPLOCATION("DSW2:8")  /* related with DSW 4-6 */
2861   PORT_DIPSETTING(    0x80, "Unlimited" )
2862   PORT_DIPSETTING(    0x00, "Limited" )
2863
2864   PORT_START("DSW3")  /* some of these are wrong */
2865   PORT_DIPNAME( 0x03, 0x03, "Key In Rate" ) PORT_DIPLOCATION("DSW3:1,2")
2866   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00) // A-Type
2867   PORT_DIPSETTING(    0x01, "1 Coin/20 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
2868   PORT_DIPSETTING(    0x02, "1 Coin/50 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
2869   PORT_DIPSETTING(    0x03, "1 Coin/100 Credits" )    PORT_CONDITION("DSW2",0x40,EQUALS,0x00)
2870   PORT_DIPSETTING(    0x00, DEF_STR( 1C_5C ) )        PORT_CONDITION("DSW2",0x40,EQUALS,0x40) // B-Type
2871   PORT_DIPSETTING(    0x01, "1 Coin/10 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
2872   PORT_DIPSETTING(    0x02, "1 Coin/25 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
2873   PORT_DIPSETTING(    0x03, "1 Coin/50 Credits" )     PORT_CONDITION("DSW2",0x40,EQUALS,0x40)
2874   PORT_DIPNAME( 0x0c, 0x0c, "Coin A Rate" ) PORT_DIPLOCATION("DSW3:3,4")
2875   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
2876   PORT_DIPSETTING(    0x04, DEF_STR( 1C_2C ) )
2877   PORT_DIPSETTING(    0x08, DEF_STR( 1C_5C ) )
2878   PORT_DIPSETTING(    0x0c, "1 Coin/10 Credits" )
2879   PORT_DIPNAME( 0x30, 0x30, "Coin D Rate" ) PORT_DIPLOCATION("DSW3:5,6")
2880   PORT_DIPSETTING(    0x30, DEF_STR( 5C_1C ) )                PORT_CONDITION("DSW4",0x10,EQUALS,0x10) // C-Type
2881   PORT_DIPSETTING(    0x20, DEF_STR( 2C_1C ) )                PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
2882   PORT_DIPSETTING(    0x10, DEF_STR( 1C_1C ) )                PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
2883   PORT_DIPSETTING(    0x00, DEF_STR( 1C_2C ) )                PORT_CONDITION("DSW4",0x10,EQUALS,0x10)
2884   PORT_DIPSETTING(    0x30, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00) // D-Type
2885   PORT_DIPSETTING(    0x20, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
2886   PORT_DIPSETTING(    0x10, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
2887   PORT_DIPSETTING(    0x00, "1 Ticket/Coin / 100 Credits" )   PORT_CONDITION("DSW4",0x10,EQUALS,0x00)
2888   PORT_DIPNAME( 0xc0, 0xc0, "Coin C Rate" ) PORT_DIPLOCATION("DSW3:7,8")
2889   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
2890   PORT_DIPSETTING(    0x40, DEF_STR( 1C_2C ) )
2891   PORT_DIPSETTING(    0x80, DEF_STR( 1C_5C ) )
2892   PORT_DIPSETTING(    0xc0, "1 Coin/10 Credits" )
2893
2894   PORT_START("DSW4")
2895   PORT_DIPNAME( 0x07, 0x06, "Credit Limit" )              PORT_DIPLOCATION("DSW4:1,2,3")
2896   PORT_DIPSETTING(    0x07, "5,000" )
2897   PORT_DIPSETTING(    0x06, "10,000" )
2898   PORT_DIPSETTING(    0x05, "20,000" )
2899   PORT_DIPSETTING(    0x04, "30,000" )
2900   PORT_DIPSETTING(    0x03, "40,000" )
2901   PORT_DIPSETTING(    0x02, "50,000" )
2902   PORT_DIPSETTING(    0x01, "100,000" )
2903   PORT_DIPSETTING(    0x00, "Unlimited" )
2904   PORT_DIPNAME( 0x08, 0x00, "Display Of Credit Limit" )   PORT_DIPLOCATION("DSW4:4")
2905   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
2906   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2907   PORT_DIPNAME( 0x10, 0x10, "Type Of Coin D" )            PORT_DIPLOCATION("DSW4:5")
2908   PORT_DIPSETTING(    0x10, "D-Type (Tokens)" )
2909   PORT_DIPSETTING(    0x00, "C-Type (Ticket)" )
2910   PORT_DIPNAME( 0x20, 0x00, "Bonus Play Min.Bet" )        PORT_DIPLOCATION("DSW4:6")
2911   PORT_DIPSETTING(    0x20, "16 Bet" )
2912   PORT_DIPSETTING(    0x00, "8 Bet" )
2913   PORT_DIPNAME( 0x40, 0x00, "Reel Speed" )                PORT_DIPLOCATION("DSW4:7")
2914   PORT_DIPSETTING(    0x40, DEF_STR( Low ) )
2915   PORT_DIPSETTING(    0x00, DEF_STR( High ) )
2916   PORT_DIPNAME( 0x80, 0x80, "Coin A Mode" )               PORT_DIPLOCATION("DSW4:8")
2917   PORT_DIPSETTING(    0x80, "Unexchange" )
2918   PORT_DIPSETTING(    0x00, "Exchange" )
2919
2920   PORT_START("DSW5")
2921   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )       PORT_DIPLOCATION("DSW5:1")
2922   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
2923   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2924   PORT_DIPNAME( 0x06, 0x00, "Coin In Limit" )         PORT_DIPLOCATION("DSW5:2,3")
2925   PORT_DIPSETTING(    0x06, "1000" )
2926   PORT_DIPSETTING(    0x04, "5000" )
2927   PORT_DIPSETTING(    0x02, "10000" )
2928   PORT_DIPSETTING(    0x00, "20000" )
2929   PORT_DIPNAME( 0x18, 0x10, "Coin Out Rate" )         PORT_DIPLOCATION("DSW5:4,5")
2930   PORT_DIPSETTING(    0x00, "100 Credits / 1 Pulse" )
2931   PORT_DIPSETTING(    0x08, "100 Credits / 5 Pulses" )
2932   PORT_DIPSETTING(    0x10, "100 Credits / 10 Pulses" )
2933   PORT_DIPSETTING(    0x18, "100 Credits / 100 Pulses" )
2934   PORT_DIPNAME( 0x20, 0x00, "W-UP Girl" )             PORT_DIPLOCATION("DSW5:6")
2935   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
2936   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2937   PORT_DIPNAME( 0xc0, 0x40, "Coin In Rate" )          PORT_DIPLOCATION("DSW5:7,8")
2938   PORT_DIPSETTING(    0xc0, "100 Credits / 1 Pulse" )
2939   PORT_DIPSETTING(    0x40, "100 Credits / 5 Pulses" )
2940   PORT_DIPSETTING(    0x80, "100 Credits / 10 Pulses" )
2941   PORT_DIPSETTING(    0x00, "100 Credits / 100 Pulses" )
29422644INPUT_PORTS_END
29432645
29442646static INPUT_PORTS_START( lucky8 )
r244875r244876
64826184   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER )         PORT_CODE(KEYCODE_L) PORT_NAME("Hidden switch for Tetris")
64836185   PORT_BIT( 0x0c, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) PORT_NAME("Coin B") /* Coin Service (tied to PPI u34 PB3 to also coin Tetris game) */
64846186   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_IMPULSE(2) PORT_NAME("Coin D")
6485   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(2) PORT_NAME("Coin B")
6187   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(2) PORT_NAME("Coin C")
64866188   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_KEYIN )
64876189   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) PORT_NAME("Coin A")
64886190
6489   PORT_START("IN2")
6191   PORT_INCLUDE( cmv4_service )
6192   PORT_MODIFY("IN2")
64906193   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* Tied to GND and to the hidden switch that change games. (PC0+GND) -+-> (PB0|PB1) */
6491   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
6492   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
6493   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
6494   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_KEYOUT )  PORT_NAME("Key Out / Attendant")
6495   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
6496   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_SERVICE ) PORT_NAME("Settings")
6497   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK )    PORT_NAME("Stats")
64986194
64996195   PORT_START("DSW1")
65006196   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )  PORT_DIPLOCATION("DSW1:!1")  /* OK */
r244875r244876
73777073}
73787074
73797075
7380static MACHINE_CONFIG_START( chrygld, goldstar_state )
7076static MACHINE_CONFIG_START( chrygld, cb3_state )
73817077
73827078   /* basic machine hardware */
73837079   MCFG_CPU_ADD("maincpu", Z80, CPU_CLOCK)
r244875r244876
1276412460
1276512461// this block swapping is the same for chry10, chrygld and cb3
1276612462//  the underlying bitswaps / xors are different however
12767void goldstar_state::do_blockswaps(UINT8* ROM)
12463void cb3_state::do_blockswaps(UINT8* ROM)
1276812464{
1276912465   int A;
1277012466
r244875r244876
1279212488   }
1279312489}
1279412490
12795void goldstar_state::dump_to_file( UINT8* ROM)
12491void cb3_state::dump_to_file( UINT8* ROM)
1279612492{
1279712493   #if 0
1279812494   {
r244875r244876
1280912505   #endif
1281012506}
1281112507
12812UINT8 cb3_state::decrypt(UINT8 cipherText, UINT16 address)
12508UINT8 cb3_state::cb3_decrypt(UINT8 cipherText, UINT16 address)
1281312509{
1281412510   int idx;
1281512511   UINT8 output;
r244875r244876
1282612522   return output ^ sbox[idx];
1282712523}
1282812524
12829UINT8 chrygld_state::chry10_decrypt(UINT8 cipherText)
12525UINT8 cb3_state::chry10_decrypt(UINT8 cipherText)
1283012526{
1283112527   return cipherText ^ (BIT(cipherText, 4) << 3) ^ (BIT(cipherText, 1) << 5) ^ (BIT(cipherText, 6) << 7);
1283212528}
1283312529
12834DRIVER_INIT_MEMBER(chrygld_state, chry10)
12530DRIVER_INIT_MEMBER(cb3_state, chry10)
1283512531{
1283612532   UINT8 *ROM = memregion("maincpu")->base();
1283712533   int size = memregion("maincpu")->bytes();
r244875r244876
1286512561
1286612562   for (i = start; i < size; i++)
1286712563   {
12868      ROM[i] = decrypt(ROM[i], i);
12564      ROM[i] = cb3_decrypt(ROM[i], i);
1286912565   }
1287012566
1287112567   do_blockswaps(ROM);
r244875r244876
1287312569}
1287412570
1287512571
12876DRIVER_INIT_MEMBER(chrygld_state, chrygld)
12572DRIVER_INIT_MEMBER(cb3_state, chrygld)
1287712573{
1287812574   int A;
1287912575   UINT8 *ROM = memregion("maincpu")->base();
r244875r244876
1337113067GAMEL( 199?, goldstar,  0,        goldstar, goldstar, goldstar_state, goldstar,  ROT0, "IGS",               "Golden Star",                                 0,                 layout_goldstar )
1337213068GAMEL( 199?, goldstbl,  goldstar, goldstbl, goldstar, driver_device,  0,         ROT0, "IGS",               "Golden Star (Blue version)",                  0,                 layout_goldstar )
1337313069GAME(  199?, moonlght,  goldstar, moonlght, goldstar, driver_device,  0,         ROT0, "bootleg",           "Moon Light (bootleg of Golden Star)",         0 )
13374GAME(  199?, chrygld,   0,        chrygld,  chrygld,  chrygld_state,  chrygld,   ROT0, "bootleg",           "Cherry Gold I",                               0 )
13375GAME(  199?, chry10,    0,        chrygld,  chry10,   chrygld_state,  chry10,    ROT0, "bootleg",           "Cherry 10 (bootleg with PIC16F84)",           0 )
13070GAME(  199?, chrygld,   0,        chrygld,  chrygld,  cb3_state,      chrygld,   ROT0, "bootleg",           "Cherry Gold I",                               0 )
13071GAME(  199?, chry10,    0,        chrygld,  chry10,   cb3_state,      chry10,    ROT0, "bootleg",           "Cherry 10 (bootleg with PIC16F84)",           0 )
1337613072GAME(  199?, goldfrui,  goldstar, goldfrui, goldstar, driver_device,  0,         ROT0, "bootleg",           "Gold Fruit",                                  0 )                  // maybe fullname should be 'Gold Fruit (main 40%)'
1337713073GAME(  2001, super9,    goldstar, super9,   goldstar, goldstar_state, super9,    ROT0, "Playmark",          "Super Nove (Playmark)",                       GAME_NOT_WORKING )   // need to decode gfx and see the program loops/reset...
1337813074GAME(  2001, wcherry,   0,        wcherry,  chrygld,  goldstar_state, wcherry,   ROT0, "bootleg",           "Win Cherry (ver 0.16 - 19990219)",            GAME_NOT_WORKING )
trunk/src/mame/includes/goldstar.h
r244875r244876
5454   TILE_GET_INFO_MEMBER(get_goldstar_reel2_tile_info);
5555   TILE_GET_INFO_MEMBER(get_goldstar_reel3_tile_info);
5656
57   void do_blockswaps(UINT8* ROM);
58   void dump_to_file(UINT8* ROM);
59
6057   int m_dataoffset;
6158
6259   required_shared_ptr<UINT8> m_fg_vidram;
r244875r244876
195192   DECLARE_DRIVER_INIT(cb3);
196193   DECLARE_DRIVER_INIT(cb3e);
197194   DECLARE_DRIVER_INIT(cherrys);
198
199protected:
200   UINT8 decrypt(UINT8 cipherText, UINT16 address);
201};
202
203
204class chrygld_state : public goldstar_state
205{
206public:
207   chrygld_state(const machine_config &mconfig, device_type type, const char *tag) :
208      goldstar_state(mconfig, type, tag)
209   {
210   }
211
212195   DECLARE_DRIVER_INIT(chrygld);
213196   DECLARE_DRIVER_INIT(chry10);
214197
215198protected:
199   void do_blockswaps(UINT8* ROM);
200   void dump_to_file(UINT8* ROM);
201
202   UINT8 cb3_decrypt(UINT8 cipherText, UINT16 address);
216203   UINT8 chry10_decrypt(UINT8 cipherText);
217204};
218205


Previous 199869 Revisions Next


© 1997-2024 The MAME Team