Previous 199869 Revisions Next

r21971 Tuesday 19th March, 2013 at 23:14:46 UTC by Brian Troha
shangha3.c: Added dipswitch locations to Shanghai III, Hebereke no Ponpoon and Blocken. [Brian Troha]
[src/mame/drivers]shangha3.c

trunk/src/mame/drivers/shangha3.c
r21970r21971
212212   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
213213   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_VBLANK("screen")
214214
215   PORT_START("DSW1")
216   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
217   PORT_DIPSETTING(    0x01, DEF_STR( Easy ) )
218   PORT_DIPSETTING(    0x03, DEF_STR( Normal ) )
219   PORT_DIPSETTING(    0x02, DEF_STR( Hard ) )
220   PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )
221   PORT_DIPNAME( 0x0c, 0x0c, "Base Time" )
222   PORT_DIPSETTING(    0x04, "70 sec" )
223   PORT_DIPSETTING(    0x0c, "80 sec" )
224   PORT_DIPSETTING(    0x08, "90 sec" )
225   PORT_DIPSETTING(    0x00, "100 sec" )
226   PORT_DIPNAME( 0x30, 0x30, "Additional Time" )
227   PORT_DIPSETTING(    0x10, "4 sec" )
228   PORT_DIPSETTING(    0x30, "5 sec" )
229   PORT_DIPSETTING(    0x20, "6 sec" )
230   PORT_DIPSETTING(    0x00, "7 sec" )
231   PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) )
232   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
233   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
234   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) )
235   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
236   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
237
238   PORT_START("DSW2")
239   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) )
215   PORT_START("DSW1") /* Dipswitch locations assigned as per service mode */
216   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) )      PORT_DIPLOCATION("SWA:1,2,3")
240217   PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
241218   PORT_DIPSETTING(    0x04, DEF_STR( 4C_1C ) )
242219   PORT_DIPSETTING(    0x02, DEF_STR( 3C_1C ) )
r21970r21971
245222   PORT_DIPSETTING(    0x03, DEF_STR( 1C_2C ) )
246223   PORT_DIPSETTING(    0x05, DEF_STR( 1C_3C ) )
247224   PORT_DIPSETTING(    0x01, DEF_STR( 1C_4C ) )
248   PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) )
225   PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) )      PORT_DIPLOCATION("SWA:4,5,6")
249226   PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
250227   PORT_DIPSETTING(    0x20, DEF_STR( 4C_1C ) )
251228   PORT_DIPSETTING(    0x10, DEF_STR( 3C_1C ) )
r21970r21971
254231   PORT_DIPSETTING(    0x18, DEF_STR( 1C_2C ) )
255232   PORT_DIPSETTING(    0x28, DEF_STR( 1C_3C ) )
256233   PORT_DIPSETTING(    0x08, DEF_STR( 1C_4C ) )
257   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
234   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )      PORT_DIPLOCATION("SWA:7")
258235   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
259236   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
260   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
237   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )      PORT_DIPLOCATION("SWA:8")
261238   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
262239   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
240
241   PORT_START("DSW2") /* Dipswitch locations assigned as per service mode */
242   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )   PORT_DIPLOCATION("SWB:1,2")
243   PORT_DIPSETTING(    0x01, DEF_STR( Easy ) )
244   PORT_DIPSETTING(    0x03, DEF_STR( Normal ) )
245   PORT_DIPSETTING(    0x02, DEF_STR( Hard ) )
246   PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )
247   PORT_DIPNAME( 0x0c, 0x0c, "Base Time" )         PORT_DIPLOCATION("SWB:3,4")
248   PORT_DIPSETTING(    0x04, "70 sec" )
249   PORT_DIPSETTING(    0x0c, "80 sec" )
250   PORT_DIPSETTING(    0x08, "90 sec" )
251   PORT_DIPSETTING(    0x00, "100 sec" )
252   PORT_DIPNAME( 0x30, 0x30, "Additional Time" )      PORT_DIPLOCATION("SWB:5,6")
253   PORT_DIPSETTING(    0x10, "4 sec" )
254   PORT_DIPSETTING(    0x30, "5 sec" )
255   PORT_DIPSETTING(    0x20, "6 sec" )
256   PORT_DIPSETTING(    0x00, "7 sec" )
257   PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) )   PORT_DIPLOCATION("SWB:7")
258   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
259   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
260   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) )   PORT_DIPLOCATION("SWB:8")
261   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
262   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
263263INPUT_PORTS_END
264264
265265static INPUT_PORTS_START( heberpop )
r21970r21971
291291   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
292292   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
293293
294   PORT_START("DSW")
295   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) )
294   PORT_START("DSW") /* Dipswitch locations assigned as per service mode */
295   PORT_DIPNAME( 0x0003, 0x0003, DEF_STR( Difficulty ) )      PORT_DIPLOCATION("SW1:1,2")
296296   PORT_DIPSETTING(      0x0002, DEF_STR( Very_Easy) )
297297   PORT_DIPSETTING(      0x0001, DEF_STR( Easy ) )
298298   PORT_DIPSETTING(      0x0003, DEF_STR( Normal ) )
299299   PORT_DIPSETTING(      0x0000, DEF_STR( Hard ) )
300   PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) )
300   PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) )      PORT_DIPLOCATION("SW1:3")
301301   PORT_DIPSETTING(      0x0004, DEF_STR( Off ) )
302302   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
303   PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) )
303   PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) )      PORT_DIPLOCATION("SW1:4")
304304   PORT_DIPSETTING(      0x0008, DEF_STR( Off ) )
305305   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
306   PORT_DIPNAME( 0x0010, 0x0010, "Allow Diagonal Moves" )
306   PORT_DIPNAME( 0x0010, 0x0010, "Allow Diagonal Moves" )      PORT_DIPLOCATION("SW1:5")
307307   PORT_DIPSETTING(      0x0000, DEF_STR( No ) )
308308   PORT_DIPSETTING(      0x0010, DEF_STR( Yes ) )
309   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) )
309   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) )      PORT_DIPLOCATION("SW1:6")
310310   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
311311   PORT_DIPSETTING(      0x0020, DEF_STR( On ) )
312   PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) )
312   PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) )      PORT_DIPLOCATION("SW1:7")
313313   PORT_DIPSETTING(      0x0040, DEF_STR( Off ) )
314314   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
315   PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) )
315   PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) )      PORT_DIPLOCATION("SW1:8")
316316   PORT_DIPSETTING(      0x0080, DEF_STR( Off ) )
317317   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
318   PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) )
318   PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) )      PORT_DIPLOCATION("SW2:1,2,3")
319319   PORT_DIPSETTING(      0x0000, DEF_STR( 5C_1C ) )
320320   PORT_DIPSETTING(      0x0400, DEF_STR( 4C_1C ) )
321321   PORT_DIPSETTING(      0x0200, DEF_STR( 3C_1C ) )
r21970r21971
324324   PORT_DIPSETTING(      0x0300, DEF_STR( 1C_2C ) )
325325   PORT_DIPSETTING(      0x0500, DEF_STR( 1C_3C ) )
326326   PORT_DIPSETTING(      0x0100, DEF_STR( 1C_4C ) )
327   PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) )
327   PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) )      PORT_DIPLOCATION("SW2:4,5,6")
328328   PORT_DIPSETTING(      0x0000, DEF_STR( 5C_1C ) )
329329   PORT_DIPSETTING(      0x2000, DEF_STR( 4C_1C ) )
330330   PORT_DIPSETTING(      0x1000, DEF_STR( 3C_1C ) )
r21970r21971
333333   PORT_DIPSETTING(      0x1800, DEF_STR( 1C_2C ) )
334334   PORT_DIPSETTING(      0x2800, DEF_STR( 1C_3C ) )
335335   PORT_DIPSETTING(      0x0800, DEF_STR( 1C_4C ) )
336   PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) )
336   PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) )      PORT_DIPLOCATION("SW2:7")
337337   PORT_DIPSETTING(      0x4000, DEF_STR( Off ) )
338338   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
339   PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) )
339   PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) )      PORT_DIPLOCATION("SW2:8")
340340   PORT_DIPSETTING(      0x8000, DEF_STR( Off ) )
341341   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
342342INPUT_PORTS_END
r21970r21971
370370   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
371371   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
372372
373   PORT_START("DSW")
374   PORT_SERVICE( 0x0001, IP_ACTIVE_LOW )
375   PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Difficulty ) )
373   PORT_START("DSW") /* Dipswitch locations assigned as per service mode */
374   PORT_SERVICE_DIPLOC(  0x0001, IP_ACTIVE_LOW, "SW1:1" )
375   PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Difficulty ) )      PORT_DIPLOCATION("SW1:2,3")
376376   PORT_DIPSETTING(      0x0004, DEF_STR( Easy ) )
377377   PORT_DIPSETTING(      0x0006, DEF_STR( Normal ) )
378378   PORT_DIPSETTING(      0x0002, DEF_STR( Hard ) )
379379   PORT_DIPSETTING(      0x0000, DEF_STR( Very_Hard ) )
380   PORT_DIPNAME( 0x0008, 0x0008, "Game Type" )
380   PORT_DIPNAME( 0x0008, 0x0008, "Game Type" )         PORT_DIPLOCATION("SW1:4")
381381   PORT_DIPSETTING(      0x0008, "A" )
382382   PORT_DIPSETTING(      0x0000, "B" )
383   PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Players ) )
383   PORT_DIPNAME( 0x0030, 0x0030, DEF_STR( Players ) )      PORT_DIPLOCATION("SW1:5,6")
384384   PORT_DIPSETTING(      0x0030, "1" )
385385   PORT_DIPSETTING(      0x0020, "2" )
386386   PORT_DIPSETTING(      0x0010, "3" )
387387   PORT_DIPSETTING(      0x0000, "4" )
388   PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Demo_Sounds ) )
388   PORT_DIPNAME( 0x0040, 0x0000, DEF_STR( Demo_Sounds ) )      PORT_DIPLOCATION("SW1:7")
389389   PORT_DIPSETTING(      0x0040, DEF_STR( Off ) )
390390   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
391   PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) )
391   PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) )      PORT_DIPLOCATION("SW1:8")
392392   PORT_DIPSETTING(      0x0080, DEF_STR( Off ) )
393393   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
394   PORT_DIPNAME( 0x0f00, 0x0f00, DEF_STR( Coin_A ) )
394   PORT_DIPNAME( 0x0f00, 0x0f00, DEF_STR( Coin_A ) )      PORT_DIPLOCATION("SW2:1,2,3,4")
395395   PORT_DIPSETTING(      0x0200, DEF_STR( 4C_1C ) )
396396   PORT_DIPSETTING(      0x0500, DEF_STR( 3C_1C ) )
397397   PORT_DIPSETTING(      0x0800, DEF_STR( 2C_1C ) )
r21970r21971
408408   PORT_DIPSETTING(      0x0a00, DEF_STR( 1C_6C ) )
409409   PORT_DIPSETTING(      0x0900, DEF_STR( 1C_7C ) )
410410   PORT_DIPSETTING(      0x0000, DEF_STR( Free_Play ) )
411   PORT_DIPNAME( 0xf000, 0xf000, DEF_STR( Coin_B ) )
411   PORT_DIPNAME( 0xf000, 0xf000, DEF_STR( Coin_B ) )      PORT_DIPLOCATION("SW2:5,6,7,8")
412412   PORT_DIPSETTING(      0x2000, DEF_STR( 4C_1C ) )
413413   PORT_DIPSETTING(      0x5000, DEF_STR( 3C_1C ) )
414414   PORT_DIPSETTING(      0x8000, DEF_STR( 2C_1C ) )
r21970r21971
452452{
453453   AY8910_LEGACY_OUTPUT,
454454   AY8910_DEFAULT_LOADS,
455   DEVCB_INPUT_PORT("DSW1"),
455456   DEVCB_INPUT_PORT("DSW2"),
456   DEVCB_INPUT_PORT("DSW1"),
457457   DEVCB_NULL,
458458   DEVCB_NULL
459459};

Previous 199869 Revisions Next


© 1997-2024 The MAME Team