~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/mame/drivers/gberet.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
        KONAMI8_SYSTEM_UNK
223
223
 
224
224
        PORT_START("DSW1")
225
 
        KONAMI_COINAGE(DEF_STR( Free_Play ), "No Coin B")
 
225
        KONAMI_COINAGE_LOC(DEF_STR( Free_Play ), "No Coin B", SW1)
226
226
        /* "No Coin B" = coins produce sound, but no effect on coin counter */
227
227
 
228
228
        PORT_START("DSW2")
229
 
        PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) )
 
229
        PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) )            PORT_DIPLOCATION("SW2:1,2")
230
230
        PORT_DIPSETTING(    0x03, "2" )
231
 
        PORT_DIPSETTING(    0x02, "3" )
 
231
        PORT_DIPSETTING(    0x02, "3" )         // factory default
232
232
        PORT_DIPSETTING(    0x01, "5" )
233
233
        PORT_DIPSETTING(    0x00, "7" )
234
 
        PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) )
 
234
        PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) )          PORT_DIPLOCATION("SW2:3")
235
235
        PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
236
236
        PORT_DIPSETTING(    0x04, DEF_STR( Cocktail ) )
237
 
        PORT_DIPNAME( 0x18, 0x08, DEF_STR( Bonus_Life ) )
238
 
        PORT_DIPSETTING(    0x18, "30K 70K 70K+" )
239
 
        PORT_DIPSETTING(    0x10, "40K 80K 80K+" )
240
 
        PORT_DIPSETTING(    0x08, "50K 100K 100K+" )
241
 
        PORT_DIPSETTING(    0x00, "50K 200K 200K+" )
242
 
        PORT_DIPNAME( 0x60, 0x40, DEF_STR( Difficulty ) )
 
237
        PORT_DIPNAME( 0x18, 0x08, DEF_STR( Bonus_Life ) )       PORT_DIPLOCATION("SW2:4,5")
 
238
        PORT_DIPSETTING(    0x18, "30K, 70K, Every 70K" )
 
239
        PORT_DIPSETTING(    0x10, "40K, 80K, Every 80K" )               // Japanese default
 
240
        PORT_DIPSETTING(    0x08, "50K, 100K, Every 100K" )             // US default
 
241
        PORT_DIPSETTING(    0x00, "50K, 200K, Every 200K" )
 
242
        PORT_DIPNAME( 0x60, 0x40, DEF_STR( Difficulty ) )       PORT_DIPLOCATION("SW2:6,7")
243
243
        PORT_DIPSETTING(    0x60, DEF_STR( Easy ) )
244
 
        PORT_DIPSETTING(    0x40, DEF_STR( Normal ) )
 
244
        PORT_DIPSETTING(    0x40, DEF_STR( Normal ) )                   // factory default
245
245
        PORT_DIPSETTING(    0x20, DEF_STR( Difficult ) )
246
246
        PORT_DIPSETTING(    0x00, DEF_STR( Very_Difficult ) )
247
 
        PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) )
 
247
        PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) )      PORT_DIPLOCATION("SW2:8")
248
248
        PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
249
249
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
250
250
 
251
251
        PORT_START("DSW3")
252
 
        PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) )
 
252
        PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) )      PORT_DIPLOCATION("SW3:1")
253
253
        PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
254
254
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
255
 
        PORT_DIPNAME( 0x02, 0x02, "Upright Controls" )
 
255
        PORT_DIPNAME( 0x02, 0x02, "Upright Controls" )          PORT_DIPLOCATION("SW3:2")
256
256
        PORT_DIPSETTING(    0x02, DEF_STR( Single ) )
257
257
        PORT_DIPSETTING(    0x00, DEF_STR( Dual ) )
258
 
        PORT_BIT( 0x0c, IP_ACTIVE_LOW, IPT_UNUSED )
 
258
        PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW3:3" )            /* Listed as "Unused" */
 
259
        PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW3:4" )            /* Listed as "Unused" */
259
260
INPUT_PORTS_END
260
261
 
261
262
static INPUT_PORTS_START( gberetb )
262
 
        PORT_START("P1")
263
 
        KONAMI8_MONO_B12_UNK                                    // button 1 = knife, button 2 = shoot
 
263
        PORT_INCLUDE(gberet)
264
264
 
265
 
        PORT_START("P2")
 
265
        PORT_MODIFY("P2")
266
266
        PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
267
267
 
268
 
        PORT_START("SYSTEM")
 
268
        PORT_MODIFY("SYSTEM")
269
269
        PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
270
270
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 )
271
271
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 )
272
272
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
273
273
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
274
274
 
275
 
        PORT_START("DSW1")
276
 
        KONAMI_COINAGE(DEF_STR( Free_Play ), "No Coin B")
277
 
        /* "No Coin B" = coins produce sound, but no effect on coin counter */
278
 
 
279
 
        PORT_START("DSW2")
280
 
        PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) )
281
 
        PORT_DIPSETTING(    0x03, "2" )
282
 
        PORT_DIPSETTING(    0x02, "3" )
283
 
        PORT_DIPSETTING(    0x01, "5" )
284
 
        PORT_DIPSETTING(    0x00, "7" )
285
 
        PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) )
286
 
        PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
287
 
        PORT_DIPSETTING(    0x04, DEF_STR( Cocktail ) )
288
 
        PORT_DIPNAME( 0x18, 0x08, DEF_STR( Bonus_Life ) )
289
 
        PORT_DIPSETTING(    0x18, "30K 70K 70K+" )
290
 
        PORT_DIPSETTING(    0x10, "40K 80K 80K+" )
291
 
        PORT_DIPSETTING(    0x08, "50K 100K 100K+" )
292
 
        PORT_DIPSETTING(    0x00, "50K 200K 200K+" )
293
 
        PORT_DIPNAME( 0x60, 0x40, DEF_STR( Difficulty ) )
294
 
        PORT_DIPSETTING(    0x60, DEF_STR( Easy ) )
295
 
        PORT_DIPSETTING(    0x40, DEF_STR( Normal ) )
296
 
        PORT_DIPSETTING(    0x20, DEF_STR( Difficult ) )
297
 
        PORT_DIPSETTING(    0x00, DEF_STR( Very_Difficult ) )
298
 
        PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) )
299
 
        PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
300
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 
275
        PORT_MODIFY("DSW3")
 
276
        PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
301
277
INPUT_PORTS_END
302
278
 
303
279
static INPUT_PORTS_START( mrgoemon )
304
 
        PORT_START("P1")
305
 
        KONAMI8_MONO_B12_UNK
306
 
 
307
 
        PORT_START("P2")
308
 
        KONAMI8_COCKTAIL_B12_UNK
309
 
 
310
 
        PORT_START("SYSTEM")
311
 
        KONAMI8_SYSTEM_UNK
312
 
 
313
 
        PORT_START("DSW1")
314
 
        KONAMI_COINAGE(DEF_STR( Free_Play ), "No Coin B")
315
 
        /* "No Coin B" = coins produce sound, but no effect on coin counter */
316
 
 
317
 
        PORT_START("DSW2")
318
 
        PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) )
319
 
        PORT_DIPSETTING(    0x03, "2" )
320
 
        PORT_DIPSETTING(    0x02, "3" )
321
 
        PORT_DIPSETTING(    0x01, "5" )
322
 
        PORT_DIPSETTING(    0x00, "7" )
323
 
        PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) )
324
 
        PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
325
 
        PORT_DIPSETTING(    0x04, DEF_STR( Cocktail ) )
326
 
        PORT_DIPNAME( 0x18, 0x08, DEF_STR( Bonus_Life ) )
327
 
        PORT_DIPSETTING(    0x18, "20K 60K+" )
328
 
        PORT_DIPSETTING(    0x10, "30K 70K+" )
329
 
        PORT_DIPSETTING(    0x08, "40K 80K+" )
330
 
        PORT_DIPSETTING(    0x00, "50K 90K+" )
331
 
        PORT_DIPNAME( 0x60, 0x40, DEF_STR( Difficulty ) )
332
 
        PORT_DIPSETTING(    0x60, DEF_STR( Easy ) )
333
 
        PORT_DIPSETTING(    0x40, DEF_STR( Normal ) )
334
 
        PORT_DIPSETTING(    0x20, DEF_STR( Difficult ) )
335
 
        PORT_DIPSETTING(    0x00, DEF_STR( Very_Difficult ) )
336
 
        PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) )
337
 
        PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
338
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
339
 
 
340
 
        PORT_START("DSW3")
341
 
        PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) )
342
 
        PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
343
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
344
 
        PORT_DIPNAME( 0x02, 0x02, "Upright Controls" )
345
 
        PORT_DIPSETTING(    0x02, DEF_STR( Single ) )
346
 
        PORT_DIPSETTING(    0x00, DEF_STR( Dual ) )
347
 
        PORT_SERVICE( 0x04, IP_ACTIVE_LOW )
348
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
 
280
        PORT_INCLUDE(gberet)
 
281
 
 
282
        PORT_MODIFY("DSW2")
 
283
        PORT_DIPNAME( 0x18, 0x18, DEF_STR( Bonus_Life ) )       PORT_DIPLOCATION("SW2:4,5")
 
284
        PORT_DIPSETTING(    0x18, "20K, Every 60K" )    // factory default
 
285
        PORT_DIPSETTING(    0x10, "30K, Every 70K" )
 
286
        PORT_DIPSETTING(    0x08, "40K, Every 80K" )
 
287
        PORT_DIPSETTING(    0x00, "50K, Every 90K" )
 
288
 
 
289
        PORT_MODIFY("DSW3")
 
290
        PORT_SERVICE_DIPLOC(   0x04, IP_ACTIVE_LOW, "SW3:3" )
349
291
INPUT_PORTS_END
350
292
 
351
293
/* Graphics Layouts */
480
422
        ROM_LOAD( "577l02.8c",    0x4000, 0x4000, CRC(240836a5) SHA1(b76f3789f152198bf8a9a366378d664e683c6c9d) )
481
423
        ROM_LOAD( "577l01.7c",    0x8000, 0x4000, CRC(41fa3e1f) SHA1(90d1463e16b0f52c01078be044ce3672d4acebff) )
482
424
 
483
 
        ROM_REGION( 0x04000, "gfx1", ROMREGION_DISPOSE )
 
425
        ROM_REGION( 0x04000, "gfx1", 0 )
484
426
        ROM_LOAD( "577l07.3f",    0x00000, 0x4000, CRC(4da7bd1b) SHA1(54adba9ae086852902d78ab36039498aae50d7a9) )
485
427
 
486
 
        ROM_REGION( 0x10000, "gfx2", ROMREGION_DISPOSE )
 
428
        ROM_REGION( 0x10000, "gfx2", 0 )
487
429
        ROM_LOAD( "577l06.5e",    0x00000, 0x4000, CRC(0f1cb0ca) SHA1(094004e70c05df8cd486d0854c258fa766e2925d) )
488
430
        ROM_LOAD( "577l05.4e",    0x04000, 0x4000, CRC(523a8b66) SHA1(5f2bcf2b702fe05f8a022b6284cb2d0a5b5f222f) )
489
431
        ROM_LOAD( "577l08.4f",    0x08000, 0x4000, CRC(883933a4) SHA1(b565842edf09feeb2c4ac44ad58331757586b6aa) )
501
443
        ROM_LOAD( "577h02.8c",    0x4000, 0x4000, CRC(b5802806) SHA1(0e4698ecfb9eda916703165ea5d55516fdef5fe4) )
502
444
        ROM_LOAD( "577h01.7c",    0x8000, 0x4000, CRC(da7c8f3d) SHA1(eb61eedee169f67db93407ad0fe8a195089b7e3a) )
503
445
 
504
 
        ROM_REGION( 0x04000, "gfx1", ROMREGION_DISPOSE )
 
446
        ROM_REGION( 0x04000, "gfx1", 0 )
505
447
        ROM_LOAD( "577h07.3f",    0x00000, 0x4000, CRC(03f9815f) SHA1(209c76fd36d1b5672992c55e24d3cf77d4c5a0aa) )
506
448
 
507
 
        ROM_REGION( 0x10000, "gfx2", ROMREGION_DISPOSE )
 
449
        ROM_REGION( 0x10000, "gfx2", 0 )
508
450
        ROM_LOAD( "577l06.5e",    0x00000, 0x4000, CRC(0f1cb0ca) SHA1(094004e70c05df8cd486d0854c258fa766e2925d) )
509
451
        ROM_LOAD( "577h05.4e",    0x04000, 0x4000, CRC(9d028e8f) SHA1(4faa47152a6c1da0024bb03fbcf7baf0540e891e) )
510
452
        ROM_LOAD( "577l08.4f",    0x08000, 0x4000, CRC(883933a4) SHA1(b565842edf09feeb2c4ac44ad58331757586b6aa) )
521
463
        ROM_LOAD( "2-ic82.10g",   0x0000, 0x8000, CRC(6d6fb494) SHA1(0d01c86ed7a8962ee3e1056a8d41584ad1406f0f) )
522
464
        ROM_LOAD( "3-ic81.10f",   0x8000, 0x4000, CRC(f1520a0a) SHA1(227b2d2e1fc0e81ae02e663a3089e7399612e3cf) )
523
465
 
524
 
        ROM_REGION( 0x04000, "gfx1", ROMREGION_DISPOSE )
 
466
        ROM_REGION( 0x04000, "gfx1", 0 )
525
467
        ROM_LOAD( "1-ic92.12c",   0x00000, 0x4000, CRC(b0189c87) SHA1(29202978b07bf059b88bf206d8fafc80e0cdb6dc) )
526
468
 
527
 
        ROM_REGION( 0x10000, "gfx2", ROMREGION_DISPOSE )
 
469
        ROM_REGION( 0x10000, "gfx2", 0 )
528
470
        ROM_LOAD( "7-1c8.2b",     0x00000, 0x4000, CRC(86334522) SHA1(f2907d136dbfdb92cbd550524b4453755f6244b6) )
529
471
        ROM_LOAD( "6-ic9.2c",     0x04000, 0x4000, CRC(bda50d3e) SHA1(c6f5a15270a69464e977926d056b31dcec8b41c3) )
530
472
        ROM_LOAD( "5-ic10.2d",    0x08000, 0x4000, CRC(6a7b3881) SHA1(795bfb1fbc11ceac687b15e98574feb650e2f674) )
542
484
        ROM_LOAD( "621d02.12c",   0x08000, 0x4000, CRC(c3337a97) SHA1(6fd5f365b2624a37f252c202cd97877705b4a6c2) )
543
485
        ROM_CONTINUE(             0x10000, 0x4000 )
544
486
 
545
 
        ROM_REGION( 0x04000, "gfx1", ROMREGION_DISPOSE )
 
487
        ROM_REGION( 0x04000, "gfx1", 0 )
546
488
        ROM_LOAD( "621a05.6d",    0x00000, 0x4000, CRC(f0a6dfc5) SHA1(395024ebfff550b0da393096483196fb1152a077) )
547
489
 
548
 
        ROM_REGION( 0x10000, "gfx2", ROMREGION_DISPOSE )
 
490
        ROM_REGION( 0x10000, "gfx2", 0 )
549
491
        ROM_LOAD( "621d03.4d",    0x00000, 0x8000, CRC(66f2b973) SHA1(7e906f258a5f4928f9615c6ea176efbca659b3a7) )
550
492
        ROM_LOAD( "621d04.5d",    0x08000, 0x8000, CRC(47df6301) SHA1(e675c070e46993d3453c2ddadc49ec8b84cec854) )
551
493