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

« back to all changes in this revision

Viewing changes to src/mame/drivers/toypop.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:
44
44
WRITE16_HANDLER( toypop_merged_background_w );
45
45
WRITE8_HANDLER( toypop_palettebank_w );
46
46
WRITE16_HANDLER( toypop_flipscreen_w );
47
 
WRITE16_HANDLER( liblrabl_flipscreen_w );
48
47
VIDEO_START( toypop );
49
48
VIDEO_UPDATE( toypop );
50
49
PALETTE_INIT( toypop );
352
351
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
353
352
 
354
353
        PORT_START("DSW1")      /* 56XX #1 pins 22-29 */
355
 
        PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
 
354
        /* default setting: all OFF */
 
355
        PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWA:8,7")
356
356
        PORT_DIPSETTING(    0x02, "1" )
357
357
        PORT_DIPSETTING(    0x00, "2" )
358
358
        PORT_DIPSETTING(    0x03, "3" )
359
359
        PORT_DIPSETTING(    0x01, "5" )
360
 
        // TODO: bonus scores are different for 5 lives
361
 
        PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Bonus_Life ) )
362
 
        PORT_DIPSETTING(    0x04, "40k 120k and every 120k" )
363
 
        PORT_DIPSETTING(    0x1c, "40k 120k 200k 400k..." )
364
 
        PORT_DIPSETTING(    0x10, "40k 120k 200k" )
365
 
        PORT_DIPSETTING(    0x0c, "40k 140k 250k 400k..." )
366
 
        PORT_DIPSETTING(    0x18, "40k 150k and every 150k" )
367
 
        PORT_DIPSETTING(    0x14, "50k 150k 300k 500k..." )
368
 
        PORT_DIPSETTING(    0x08, "50k 150k 300k" )
 
360
        PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SWA:6,5,4")
 
361
        // bonus scores for common
 
362
        PORT_DIPSETTING(    0x1c, "40k 120k 200k 400k 600k 1m" )
 
363
        PORT_DIPSETTING(    0x0c, "40k 140k 250k 400k 700k 1m" )
 
364
        // bonus scores for 1, 2 or 3 lives
 
365
        PORT_DIPSETTING(    0x14, "50k 150k 300k 500k 700k 1m" ) PORT_CONDITION("DSW1", 0x03, PORTCOND_NOTEQUALS, 0x01)
 
366
        PORT_DIPSETTING(    0x04, "40k 120k and every 120k" )    PORT_CONDITION("DSW1", 0x03, PORTCOND_NOTEQUALS, 0x01)
 
367
        PORT_DIPSETTING(    0x18, "40k 150k and every 150k" )    PORT_CONDITION("DSW1", 0x03, PORTCOND_NOTEQUALS, 0x01)
 
368
        PORT_DIPSETTING(    0x08, "50k 150k 300k" )              PORT_CONDITION("DSW1", 0x03, PORTCOND_NOTEQUALS, 0x01)
 
369
        PORT_DIPSETTING(    0x10, "40k 120k 200k" )              PORT_CONDITION("DSW1", 0x03, PORTCOND_NOTEQUALS, 0x01)
 
370
        // bonus scores for 5 lives
 
371
        PORT_DIPSETTING(    0x14, "40k 120k" )                   PORT_CONDITION("DSW1", 0x03, PORTCOND_EQUALS, 0x01)
 
372
        PORT_DIPSETTING(    0x04, "50k 150k" )                   PORT_CONDITION("DSW1", 0x03, PORTCOND_EQUALS, 0x01)
 
373
        PORT_DIPSETTING(    0x18, "50k 150k and every 150k" )    PORT_CONDITION("DSW1", 0x03, PORTCOND_EQUALS, 0x01)
 
374
        PORT_DIPSETTING(    0x08, "60k 200k and every 200k" )    PORT_CONDITION("DSW1", 0x03, PORTCOND_EQUALS, 0x01)
 
375
        PORT_DIPSETTING(    0x10, "50k" )                        PORT_CONDITION("DSW1", 0x03, PORTCOND_EQUALS, 0x01)
 
376
        // bonus scores for common
369
377
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )
370
 
        PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) )
 
378
        PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:3,2,1")
371
379
        PORT_DIPSETTING(    0x80, DEF_STR( 3C_1C ) )
372
380
        PORT_DIPSETTING(    0xc0, DEF_STR( 2C_1C ) )
373
381
        PORT_DIPSETTING(    0x00, DEF_STR( 3C_2C ) )
378
386
        PORT_DIPSETTING(    0x20, DEF_STR( 1C_6C ) )
379
387
 
380
388
        PORT_START("DSW2")      /* 56XX #1 pins 30-33 and 38-41 */
381
 
        PORT_DIPNAME( 0x01, 0x01, "Freeze" )
 
389
        PORT_DIPNAME( 0x01, 0x01, "Freeze" ) PORT_DIPLOCATION("SWB:8")
382
390
        PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
383
391
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
384
 
        PORT_DIPNAME( 0x02, 0x02, "Rack Test" )
 
392
        PORT_DIPNAME( 0x02, 0x02, "Rack Test" ) PORT_DIPLOCATION("SWB:7")
385
393
        PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
386
394
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
387
 
        PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) )
 
395
        PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:6")
388
396
        PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
389
397
        PORT_DIPSETTING(    0x04, DEF_STR( On ) )
390
 
        PORT_DIPNAME( 0x18, 0x18, DEF_STR( Coin_B ) )
 
398
        PORT_DIPNAME( 0x18, 0x18, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SWB:5,4")
391
399
        PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
392
400
        PORT_DIPSETTING(    0x18, DEF_STR( 1C_1C ) )
393
401
        PORT_DIPSETTING(    0x08, DEF_STR( 1C_5C ) )
394
402
        PORT_DIPSETTING(    0x10, DEF_STR( 1C_7C ) )
395
 
        PORT_DIPNAME( 0x20, 0x20, "Practice" )
 
403
        PORT_DIPNAME( 0x20, 0x20, "Practice" ) PORT_DIPLOCATION("SWB:3")
396
404
        PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
397
405
        PORT_DIPSETTING(    0x20, DEF_STR( On ) )
398
 
        PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) )
 
406
        PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:2,1")
399
407
        PORT_DIPSETTING(    0xc0, "A" )
400
408
        PORT_DIPSETTING(    0x40, "B" )
401
409
        PORT_DIPSETTING(    0x80, "C" )
442
450
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
443
451
 
444
452
        PORT_START("DSW1")      /* 56XX #1 pins 22-29 */
445
 
        PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
 
453
        /* default setting: all OFF */
 
454
        PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWA:8,7")
446
455
        PORT_DIPSETTING(    0x02, "1" )
447
456
        PORT_DIPSETTING(    0x01, "2" )
448
457
        PORT_DIPSETTING(    0x03, "3" )
449
458
        PORT_DIPSETTING(    0x00, "5" )
450
 
        PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) )
 
459
        PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SWA:6,5")
451
460
        PORT_DIPSETTING(    0x00, DEF_STR( 3C_1C ) )
452
461
        PORT_DIPSETTING(    0x04, DEF_STR( 2C_1C ) )
453
462
        PORT_DIPSETTING(    0x0c, DEF_STR( 1C_1C ) )
454
463
        PORT_DIPSETTING(    0x08, DEF_STR( 1C_2C ) )
455
 
        PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) )
 
464
        PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:4,3")
456
465
        PORT_DIPSETTING(    0x00, DEF_STR( 3C_1C ) )
457
466
        PORT_DIPSETTING(    0x10, DEF_STR( 2C_1C ) )
458
467
        PORT_DIPSETTING(    0x30, DEF_STR( 1C_1C ) )
459
468
        PORT_DIPSETTING(    0x20, DEF_STR( 1C_2C ) )
460
 
        PORT_DIPNAME( 0x40, 0x00, DEF_STR( Flip_Screen ) )
 
469
        PORT_DIPNAME( 0x40, 0x00, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SWA:2")
461
470
        PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
462
471
        PORT_DIPSETTING(    0x40, DEF_STR( On ) )
463
 
        PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
 
472
        PORT_SERVICE_DIPLOC( 0x80, 0x80, "SWA:1" )
464
473
 
465
474
        PORT_START("DSW2")      /* 56XX #1 pins 30-33 and 38-41 */
466
 
        PORT_DIPNAME( 0x01, 0x01, "Freeze" )
 
475
        PORT_DIPNAME( 0x01, 0x01, "Freeze" ) PORT_DIPLOCATION("SWB:8")
467
476
        PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
468
477
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
469
 
        PORT_DIPNAME( 0x02, 0x02, DEF_STR( Level_Select ) )
 
478
        PORT_DIPNAME( 0x02, 0x02, DEF_STR( Level_Select ) ) PORT_DIPLOCATION("SWB:7")
470
479
        PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
471
480
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
472
 
        PORT_DIPNAME( 0x04, 0x04, "2 Players Game" )
 
481
        PORT_DIPNAME( 0x04, 0x04, "2 Players Game" ) PORT_DIPLOCATION("SWB:6")
473
482
        PORT_DIPSETTING(    0x00, "1 Credit" )
474
483
        PORT_DIPSETTING(    0x04, "2 Credits" )
475
 
        PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) )
 
484
        PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:5")
476
485
        PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
477
486
        PORT_DIPSETTING(    0x08, DEF_STR( On ) )
478
 
        PORT_DIPNAME( 0x10, 0x10, "Entering" )  // ???
 
487
        PORT_DIPNAME( 0x10, 0x10, "Entering" ) PORT_DIPLOCATION("SWB:4")        // buy in
479
488
        PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
480
489
        PORT_DIPSETTING(    0x10, DEF_STR( On ) )
481
 
        PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) )
 
490
        PORT_DIPNAME( 0x60, 0x60, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:3,2")
482
491
        PORT_DIPSETTING(    0x40, DEF_STR( Easy ) )
483
492
        PORT_DIPSETTING(    0x60, DEF_STR( Normal ) )
484
493
        PORT_DIPSETTING(    0x20, DEF_STR( Hard ) )
485
494
        PORT_DIPSETTING(    0x00, DEF_STR( Very_Hard ) )
486
 
        PORT_DIPNAME( 0x80, 0x80, DEF_STR( Bonus_Life ) )
 
495
        PORT_DIPNAME( 0x80, 0x80, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SWB:1")
487
496
        PORT_DIPSETTING(    0x80, "Every 15000 points" )
488
497
        PORT_DIPSETTING(    0x00, "Every 20000 points" )
489
498
 
609
618
        ROM_LOAD16_BYTE("10c.rom",   0x0001, 0x4000, CRC(09ce209b) SHA1(2ed46d6592f8227bac8ab54963d9a300706ade47) )
610
619
 
611
620
        /* temporary space for graphics (disposed after conversion) */
612
 
        ROM_REGION( 0x2000, "gfx1", ROMREGION_DISPOSE )
 
621
        ROM_REGION( 0x2000, "gfx1", 0 )
613
622
        ROM_LOAD( "5p.rom",   0x0000, 0x2000, CRC(3b4937f0) SHA1(06d9de576f1c2262c34aeb91054e68c9298af688) )    /* characters */
614
623
 
615
 
        ROM_REGION( 0x4000, "gfx2", ROMREGION_DISPOSE )
 
624
        ROM_REGION( 0x4000, "gfx2", 0 )
616
625
        ROM_LOAD( "9t.rom",   0x0000, 0x4000, CRC(a88e24ca) SHA1(eada133579f19de09255084dcdc386311606a335) )    /* sprites */
617
626
 
618
627
        ROM_REGION( 0x0600, "proms", 0 )        /* color proms */
639
648
        ROM_LOAD16_BYTE("tp1-5.10c", 0x0001, 0x4000, CRC(37de8786) SHA1(710365e34c05d01815844c414518f93234b6160b) )
640
649
 
641
650
        /* temporary space for graphics (disposed after conversion) */
642
 
        ROM_REGION( 0x2000, "gfx1", ROMREGION_DISPOSE )
 
651
        ROM_REGION( 0x2000, "gfx1", 0 )
643
652
        ROM_LOAD( "tp1-7.5p", 0x0000, 0x2000, CRC(95076f9e) SHA1(1e3d32b21f6d46591ec3921aba51f672d64a9023) )    /* characters */
644
653
 
645
 
        ROM_REGION( 0x4000, "gfx2", ROMREGION_DISPOSE )
 
654
        ROM_REGION( 0x4000, "gfx2", 0 )
646
655
        ROM_LOAD( "tp1-6.9t", 0x0000, 0x4000, CRC(481ffeaf) SHA1(c51735ad3a1dbb46ad414408b54554e9223b2219) )    /* sprites */
647
656
 
648
657
        ROM_REGION( 0x0600, "proms", 0 )        /* color proms */
653
662
        ROM_LOAD( "tp1-5.2p", 0x0400, 0x0200, CRC(4d77fa5a) SHA1(2438910314b23ecafb553230244f3931861ad2da) )    /* sprites */
654
663
 
655
664
        ROM_REGION( 0x0100, "namco", 0 )        /* sound prom */
656
 
        ROM_LOAD( "lr1-4.3d", 0x0000, 0x0100, CRC(16a9166a) SHA1(847cbaf7c88616576c410177e066ae1d792ac0ba) )
 
665
        ROM_LOAD( "tp1-6.3d", 0x0000, 0x0100, CRC(16a9166a) SHA1(847cbaf7c88616576c410177e066ae1d792ac0ba) )
657
666
ROM_END
658
667
 
659
668