~ubuntu-branches/ubuntu/raring/mame/raring-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include "sound/2151intf.h"
32
32
#include "sound/segapcm.h"
33
33
#include "video/segaic16.h"
 
34
#include "includes/segaipt.h"
34
35
 
35
36
#include "pdrift.lh"
36
37
 
518
519
        PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
519
520
 
520
521
        PORT_START("DSW")
521
 
        PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:1")
522
 
        PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
523
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
524
 
        PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:2")
525
 
        PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
526
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
527
 
        PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:3")
528
 
        PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
529
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
530
 
        PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:4")
531
 
        PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
532
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
533
 
        PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:5")
534
 
        PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
535
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
536
 
        PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:6")
537
 
        PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
538
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
539
 
        PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:7")
540
 
        PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
541
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
542
 
        PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWB:8")
543
 
        PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
544
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 
522
        PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SWB:1" )
 
523
        PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SWB:2" )
 
524
        PORT_DIPUNUSED_DIPLOC( 0x04, IP_ACTIVE_LOW, "SWB:3" )
 
525
        PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SWB:4" )
 
526
        PORT_DIPUNUSED_DIPLOC( 0x10, IP_ACTIVE_LOW, "SWB:5" )
 
527
        PORT_DIPUNUSED_DIPLOC( 0x20, IP_ACTIVE_LOW, "SWB:6" )
 
528
        PORT_DIPUNUSED_DIPLOC( 0x40, IP_ACTIVE_LOW, "SWB:7" )
 
529
        PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_LOW, "SWB:8" )
545
530
 
546
531
        PORT_START("COINAGE")
547
 
        PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:1,2,3,4")
548
 
        PORT_DIPSETTING(    0x07, DEF_STR( 4C_1C ) )
549
 
        PORT_DIPSETTING(    0x08, DEF_STR( 3C_1C ) )
550
 
        PORT_DIPSETTING(    0x09, DEF_STR( 2C_1C ) )
551
 
        PORT_DIPSETTING(    0x05, "2 Coins/1 Credit 5/3 6/4" )
552
 
        PORT_DIPSETTING(    0x04, "2 Coins/1 Credit 4/3" )
553
 
        PORT_DIPSETTING(    0x0f, DEF_STR( 1C_1C ) )
554
 
        PORT_DIPSETTING(    0x01, "1 Coin/1 Credit 2/3" )
555
 
        PORT_DIPSETTING(    0x02, "1 Coin/1 Credit 4/5" )
556
 
        PORT_DIPSETTING(    0x03, "1 Coin/1 Credit 5/6" )
557
 
        PORT_DIPSETTING(    0x06, DEF_STR( 2C_3C ) )
558
 
        PORT_DIPSETTING(    0x0e, DEF_STR( 1C_2C ) )
559
 
        PORT_DIPSETTING(    0x0d, DEF_STR( 1C_3C ) )
560
 
        PORT_DIPSETTING(    0x0c, DEF_STR( 1C_4C ) )
561
 
        PORT_DIPSETTING(    0x0b, DEF_STR( 1C_5C ) )
562
 
        PORT_DIPSETTING(    0x0a, DEF_STR( 1C_6C ) )
563
 
        PORT_DIPSETTING(    0x00, "Free Play (if Coin B too) or 1/1" )
564
 
        PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SWA:5,6,7,8")
565
 
        PORT_DIPSETTING(    0x70, DEF_STR( 4C_1C ) )
566
 
        PORT_DIPSETTING(    0x80, DEF_STR( 3C_1C ) )
567
 
        PORT_DIPSETTING(    0x90, DEF_STR( 2C_1C ) )
568
 
        PORT_DIPSETTING(    0x50, "2 Coins/1 Credit 5/3 6/4" )
569
 
        PORT_DIPSETTING(    0x40, "2 Coins/1 Credit 4/3" )
570
 
        PORT_DIPSETTING(    0xf0, DEF_STR( 1C_1C ) )
571
 
        PORT_DIPSETTING(    0x10, "1 Coin/1 Credit 2/3" )
572
 
        PORT_DIPSETTING(    0x20, "1 Coin/1 Credit 4/5" )
573
 
        PORT_DIPSETTING(    0x30, "1 Coin/1 Credit 5/6" )
574
 
        PORT_DIPSETTING(    0x60, DEF_STR( 2C_3C ) )
575
 
        PORT_DIPSETTING(    0xe0, DEF_STR( 1C_2C ) )
576
 
        PORT_DIPSETTING(    0xd0, DEF_STR( 1C_3C ) )
577
 
        PORT_DIPSETTING(    0xc0, DEF_STR( 1C_4C ) )
578
 
        PORT_DIPSETTING(    0xb0, DEF_STR( 1C_5C ) )
579
 
        PORT_DIPSETTING(    0xa0, DEF_STR( 1C_6C ) )
580
 
        PORT_DIPSETTING(    0x00, "Free Play (if Coin A too) or 1/1" )
 
532
        SEGA_COINAGE_LOC(SWA)
581
533
 
582
534
        PORT_START("PORTH")
583
535
        PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
814
766
        PORT_DIPNAME( 0x04, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:3")
815
767
        PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
816
768
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
817
 
    PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) PORT_DIPLOCATION("SWB:4")
818
 
        PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
819
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 
769
        PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SWB:4" )
820
770
        PORT_DIPNAME( 0x10, 0x00, "Initial Credit" ) PORT_DIPLOCATION("SWB:5")
821
771
        PORT_DIPSETTING(    0x00, "1" )
822
772
        PORT_DIPSETTING(    0x10, "2" )
843
793
        PORT_DIPNAME( 0x04, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:3")
844
794
        PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
845
795
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
846
 
    PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) ) PORT_DIPLOCATION("SWB:4")
847
 
        PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
848
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 
796
        PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SWB:4" )
849
797
        PORT_DIPNAME( 0x10, 0x00, "Initial Credit" ) PORT_DIPLOCATION("SWB:5")
850
798
        PORT_DIPSETTING(    0x00, "1" )
851
799
        PORT_DIPSETTING(    0x10, "2" )
1080
1028
        ROM_LOAD16_BYTE( "epr-11874.80",   0x000001, 0x20000, CRC(5301fd79) SHA1(60a751c168d519cd45a9575e138514d580bce9b6) )
1081
1029
 
1082
1030
        ROM_REGION( 0x040000, "suby", 0 ) // Y
1083
 
        ROM_LOAD16_BYTE( "epr-11816.54",   0x000000, 0x20000, CRC(317dd0c2) SHA1(7f1c7dcfb111385e2a94912975c2f9bfe78445ac) )
1084
 
        ROM_LOAD16_BYTE( "epr-11815.53",   0x000001, 0x20000, CRC(f1fb22f1) SHA1(da3ce521b0a19b391913c35af34084d29edceca7) )
 
1031
        ROM_LOAD16_BYTE( "epr-11816b.54",   0x000000, 0x20000, CRC(317dd0c2) SHA1(7f1c7dcfb111385e2a94912975c2f9bfe78445ac) )
 
1032
        ROM_LOAD16_BYTE( "epr-11815b.53",   0x000001, 0x20000, CRC(f1fb22f1) SHA1(da3ce521b0a19b391913c35af34084d29edceca7) )
1085
1033
 
1086
1034
        ROM_REGION16_BE( 0x080000, "gfx2", 0 )
1087
1035
        ROM_LOAD16_BYTE( "mpr-11467.16",   0x000000, 0x20000, CRC(6e60e736) SHA1(73086744cb2fe1ce162f851cb879755c21819b33) )
2256
2204
 *
2257
2205
 *************************************/
2258
2206
 
2259
 
GAME( 1988, gforce2,   0,       yboard, gforce2,  gforce2, ROT0, "Sega", "Galaxy Force 2" , GAME_SUPPORTS_SAVE )
2260
 
GAME( 1988, gforce2j,  gforce2, yboard, gforce2,  gforce2, ROT0, "Sega", "Galaxy Force 2 (Japan)" , GAME_SUPPORTS_SAVE )
2261
 
GAME( 1988, gforce2ja, gforce2, yboard, gforce2,  gforce2, ROT0, "Sega", "Galaxy Force 2 (Japan, Rev A)" , GAME_SUPPORTS_SAVE )
2262
 
GAME( 1990, gloc,      0,       yboard, gloc,     gloc, ROT0, "Sega", "G-LOC Air Battle (US)" , GAME_SUPPORTS_SAVE )
2263
 
GAME( 1990, glocr360,  gloc,    yboard, glocr360, r360, ROT0, "Sega", "G-LOC R360", GAME_SUPPORTS_SAVE )
2264
 
GAMEL(1988, pdrift,    0,       yboard, pdrift,   pdrift, ROT0, "Sega", "Power Drift (World, Rev A)", GAME_SUPPORTS_SAVE, layout_pdrift )
2265
 
GAMEL(1988, pdrifta,   pdrift,  yboard, pdrift,   pdrift, ROT0, "Sega", "Power Drift (World)", GAME_SUPPORTS_SAVE, layout_pdrift )
2266
 
GAMEL(1988, pdrifte,   pdrift,  yboard, pdrifte,  pdrift, ROT0, "Sega", "Power Drift (World, Earlier)", GAME_SUPPORTS_SAVE, layout_pdrift )
2267
 
GAMEL(1988, pdriftj,   pdrift,  yboard, pdriftj,  pdrift, ROT0, "Sega", "Power Drift (Japan)", GAME_SUPPORTS_SAVE, layout_pdrift )
2268
 
GAME( 1991, rchase,    0,       yboard, rchase,   rchase, ROT0, "Sega", "Rail Chase (World)", GAME_SUPPORTS_SAVE )
2269
 
GAME( 1991, rchasej,   rchase,  yboard, rchase,   rchase, ROT0, "Sega", "Rail Chase (Japan)", GAME_SUPPORTS_SAVE )
2270
 
GAME( 1991, strkfgtr,  0,       yboard, strkfgtr, gloc, ROT0, "Sega", "Strike Fighter (Japan)", GAME_SUPPORTS_SAVE )
 
2207
//    YEAR, NAME,      PARENT,  MACHINE,INPUT,    INIT,    MONITOR,COMPANY,FULLNAME,FLAGS,                                     LAYOUT
 
2208
GAME( 1988, gforce2,   0,       yboard, gforce2,  gforce2, ROT0,   "Sega", "Galaxy Force 2", GAME_SUPPORTS_SAVE )
 
2209
GAME( 1988, gforce2j,  gforce2, yboard, gforce2,  gforce2, ROT0,   "Sega", "Galaxy Force 2 (Japan)", GAME_SUPPORTS_SAVE )
 
2210
GAME( 1988, gforce2ja, gforce2, yboard, gforce2,  gforce2, ROT0,   "Sega", "Galaxy Force 2 (Japan, Rev A)", GAME_SUPPORTS_SAVE )
 
2211
GAME( 1990, gloc,      0,       yboard, gloc,     gloc,    ROT0,   "Sega", "G-LOC Air Battle (US)", GAME_SUPPORTS_SAVE )
 
2212
GAME( 1990, glocr360,  gloc,    yboard, glocr360, r360,    ROT0,   "Sega", "G-LOC R360", GAME_SUPPORTS_SAVE )
 
2213
GAMEL(1988, pdrift,    0,       yboard, pdrift,   pdrift,  ROT0,   "Sega", "Power Drift (World, Rev A)", GAME_SUPPORTS_SAVE,   layout_pdrift )
 
2214
GAMEL(1988, pdrifta,   pdrift,  yboard, pdrift,   pdrift,  ROT0,   "Sega", "Power Drift (World)", GAME_SUPPORTS_SAVE,          layout_pdrift )
 
2215
GAMEL(1988, pdrifte,   pdrift,  yboard, pdrifte,  pdrift,  ROT0,   "Sega", "Power Drift (World, Earlier)", GAME_SUPPORTS_SAVE, layout_pdrift )
 
2216
GAMEL(1988, pdriftj,   pdrift,  yboard, pdriftj,  pdrift,  ROT0,   "Sega", "Power Drift (Japan)", GAME_SUPPORTS_SAVE,          layout_pdrift )
 
2217
GAME( 1991, rchase,    0,       yboard, rchase,   rchase,  ROT0,   "Sega", "Rail Chase (World)", GAME_SUPPORTS_SAVE )
 
2218
GAME( 1991, rchasej,   rchase,  yboard, rchase,   rchase,  ROT0,   "Sega", "Rail Chase (Japan)", GAME_SUPPORTS_SAVE )
 
2219
GAME( 1991, strkfgtr,  0,       yboard, strkfgtr, gloc,    ROT0,   "Sega", "Strike Fighter (Japan)", GAME_SUPPORTS_SAVE )