diff options
| author | 2013-05-19 18:43:41 +0000 | |
|---|---|---|
| committer | 2013-05-19 18:43:41 +0000 | |
| commit | 46c6b98571ffd8a521ea4624f23a26b98ba35611 (patch) | |
| tree | ead7254acdbce53e129c3f7f75def266764a31e3 | |
| parent | 20cfe5cdefa314b8bb23478e845d9a97681892ce (diff) | |
- input/DIP bugs fixed in several drivers [Sonikos]
(note to Sonikos: 02650 will stay open, and 03673 won't be fixed until namcos10.c runs)
| -rw-r--r-- | src/mame/drivers/atarisy1.c | 7 | ||||
| -rw-r--r-- | src/mame/drivers/cps1.c | 16 | ||||
| -rw-r--r-- | src/mame/drivers/dooyong.c | 9 | ||||
| -rw-r--r-- | src/mame/drivers/kaneko16.c | 6 | ||||
| -rw-r--r-- | src/mame/drivers/leland.c | 18 | ||||
| -rw-r--r-- | src/mame/drivers/limenko.c | 8 | ||||
| -rw-r--r-- | src/mame/drivers/namcos1.c | 9 | ||||
| -rw-r--r-- | src/mame/drivers/tank8.c | 32 |
8 files changed, 64 insertions, 41 deletions
diff --git a/src/mame/drivers/atarisy1.c b/src/mame/drivers/atarisy1.c index 37d1a4a1c45..1ba48132883 100644 --- a/src/mame/drivers/atarisy1.c +++ b/src/mame/drivers/atarisy1.c @@ -650,10 +650,11 @@ static INPUT_PORTS_START( roadrunn ) PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("F60000") /* F60000 */ + /* Note that "P1 Button 1' and 'P2 Start' both act as "Hop' Buttons" in game" */ PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Left Hop/P1 Start") - PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME("Right Hop/P2 Start") - PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Unused Button 1") - PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Unused Button 2") + PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Right Hop/P2 Start") + PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_VBLANK("screen") PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_SERVICE( 0x0040, IP_ACTIVE_LOW ) diff --git a/src/mame/drivers/cps1.c b/src/mame/drivers/cps1.c index e5eaf5241af..66761429dc8 100644 --- a/src/mame/drivers/cps1.c +++ b/src/mame/drivers/cps1.c @@ -713,14 +713,14 @@ ADDRESS_MAP_END #define CPS1_DIFFICULTY_1(diploc) \ PORT_DIPNAME( 0x07, 0x04, DEF_STR( Difficulty ) ) PORT_DIPLOCATION(diploc ":1,2,3") \ - PORT_DIPSETTING( 0x07, "1 (Easiest)" ) \ - PORT_DIPSETTING( 0x06, "2" ) \ - PORT_DIPSETTING( 0x05, "3" ) \ - PORT_DIPSETTING( 0x04, "4 (Normal)" ) \ - PORT_DIPSETTING( 0x03, "5" ) \ - PORT_DIPSETTING( 0x02, "6" ) \ - PORT_DIPSETTING( 0x01, "7" ) \ - PORT_DIPSETTING( 0x00, "8 (Hardest)" ) + PORT_DIPSETTING( 0x07, "0 (Easiest)" ) \ + PORT_DIPSETTING( 0x06, "1" ) \ + PORT_DIPSETTING( 0x05, "2" ) \ + PORT_DIPSETTING( 0x04, "3 (Normal)" ) \ + PORT_DIPSETTING( 0x03, "4" ) \ + PORT_DIPSETTING( 0x02, "5" ) \ + PORT_DIPSETTING( 0x01, "6" ) \ + PORT_DIPSETTING( 0x00, "7 (Hardest)" ) #define CPS1_DIFFICULTY_2(diploc) \ PORT_DIPNAME( 0x07, 0x07, DEF_STR( Difficulty ) ) PORT_DIPLOCATION(diploc ":1,2,3") \ diff --git a/src/mame/drivers/dooyong.c b/src/mame/drivers/dooyong.c index 294cd14b5d4..a8fdf6eb132 100644 --- a/src/mame/drivers/dooyong.c +++ b/src/mame/drivers/dooyong.c @@ -512,8 +512,8 @@ static INPUT_PORTS_START( lastday ) PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_TILT ) /* maybe, but I'm not sure */ PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE1 ) - PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) - PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) INPUT_PORTS_END static INPUT_PORTS_START( gulfstrm ) @@ -615,6 +615,11 @@ INPUT_PORTS_END static INPUT_PORTS_START( superx ) PORT_INCLUDE( dooyongm68_generic ) + + PORT_MODIFY("DSW") /* In documentation this switch enables "service mode" but it never had any effect in game */ + PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SWA:1") + PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) INPUT_PORTS_END static INPUT_PORTS_START( popbingo ) diff --git a/src/mame/drivers/kaneko16.c b/src/mame/drivers/kaneko16.c index 9b9b32f1a65..2d587058b76 100644 --- a/src/mame/drivers/kaneko16.c +++ b/src/mame/drivers/kaneko16.c @@ -1021,9 +1021,9 @@ static INPUT_PORTS_START( bloodwar ) PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_START("DSW1") /* from the MCU - $10497e.b <- $208000.b */ - PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") - PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x0100, DEF_STR( On ) ) + PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1") + PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) PORT_SERVICE_DIPLOC( 0x0200, IP_ACTIVE_LOW, "SW1:2" ) PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:3") PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) diff --git a/src/mame/drivers/leland.c b/src/mame/drivers/leland.c index 7393b62d968..d511ea08871 100644 --- a/src/mame/drivers/leland.c +++ b/src/mame/drivers/leland.c @@ -625,8 +625,22 @@ static INPUT_PORTS_START( offroadt2p ) PORT_MODIFY("IN0") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) - PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) - PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3 ) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 ) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) + + PORT_MODIFY("IN1") + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) + + PORT_MODIFY("AN1") + PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) + PORT_MODIFY("AN2") /* Analog pedal 2 */ + PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(2) + PORT_MODIFY("AN4") + PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) + PORT_MODIFY("AN5") /* Analog wheel 2 */ + PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(2) INPUT_PORTS_END diff --git a/src/mame/drivers/limenko.c b/src/mame/drivers/limenko.c index 3e0633f3d24..ce9b5b46874 100644 --- a/src/mame/drivers/limenko.c +++ b/src/mame/drivers/limenko.c @@ -619,8 +619,8 @@ static INPUT_PORTS_START( sb2003 ) PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) - PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) - PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) + PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) + PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_BIT( 0xff00ffff, IP_ACTIVE_LOW, IPT_UNUSED ) @@ -630,8 +630,8 @@ static INPUT_PORTS_START( sb2003 ) PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) - PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) - PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) + PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) + PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2) PORT_BIT( 0xff00ffff, IP_ACTIVE_LOW, IPT_UNUSED ) diff --git a/src/mame/drivers/namcos1.c b/src/mame/drivers/namcos1.c index 9d77ecbd67f..6d2a5824251 100644 --- a/src/mame/drivers/namcos1.c +++ b/src/mame/drivers/namcos1.c @@ -818,15 +818,18 @@ static INPUT_PORTS_START( bakutotu ) PORT_INCLUDE( ns1 ) PORT_MODIFY( "DIPSW" ) + PORT_DIPNAME( 0x40, 0x40, "Invincibility (Cheat)") PORT_DIPLOCATION("SW:2") + PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_DIPNAME( 0x20, 0x20, "Show Coordinates" ) PORT_DIPLOCATION("SW:3") PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x10, 0x10, "Level Selection" ) PORT_DIPLOCATION("SW:4") + PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_DIPNAME( 0x08, 0x08, "Sprite Viewer" ) PORT_DIPLOCATION("SW:5") PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) ) - PORT_DIPNAME( 0x04, 0x04, "Invincibility (Cheat)") PORT_DIPLOCATION("SW:6") - PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_DIPNAME( 0x01, 0x01, "Freeze" ) PORT_DIPLOCATION("SW:8") PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) ) diff --git a/src/mame/drivers/tank8.c b/src/mame/drivers/tank8.c index 28e18fd2943..2c541fdb993 100644 --- a/src/mame/drivers/tank8.c +++ b/src/mame/drivers/tank8.c @@ -211,25 +211,25 @@ static INPUT_PORTS_START( tank8 ) PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(8) - /* play time is 4351 + N * 640 frames */ + /* play time setting according to documents */ PORT_START("DSW1") PORT_DIPNAME( 0x0f, 0x08, "Play Time" ) - PORT_DIPSETTING( 0x0f, "73 seconds" ) - PORT_DIPSETTING( 0x0e, "83 seconds" ) - PORT_DIPSETTING( 0x0d, "94 seconds" ) - PORT_DIPSETTING( 0x0c, "105 seconds" ) - PORT_DIPSETTING( 0x0b, "115 seconds" ) - PORT_DIPSETTING( 0x0a, "126 seconds" ) - PORT_DIPSETTING( 0x09, "137 seconds" ) - PORT_DIPSETTING( 0x08, "147 seconds" ) - PORT_DIPSETTING( 0x07, "158 seconds" ) - PORT_DIPSETTING( 0x06, "169 seconds" ) - PORT_DIPSETTING( 0x05, "179 seconds" ) + PORT_DIPSETTING( 0x0f, "60 seconds" ) + PORT_DIPSETTING( 0x07, "70 seconds" ) + PORT_DIPSETTING( 0x0b, "80 seconds" ) + PORT_DIPSETTING( 0x03, "90 seconds" ) + PORT_DIPSETTING( 0x0d, "100 seconds" ) + PORT_DIPSETTING( 0x05, "110 seconds" ) + PORT_DIPSETTING( 0x09, "120 seconds" ) + PORT_DIPSETTING( 0x01, "130 seconds" ) + PORT_DIPSETTING( 0x0e, "140 seconds" ) + PORT_DIPSETTING( 0x06, "150 seconds" ) + PORT_DIPSETTING( 0x0a, "160 seconds" ) + PORT_DIPSETTING( 0x02, "170 seconds" ) + PORT_DIPSETTING( 0x0c, "180 seconds" ) PORT_DIPSETTING( 0x04, "190 seconds" ) - PORT_DIPSETTING( 0x03, "201 seconds" ) - PORT_DIPSETTING( 0x02, "211 seconds" ) - PORT_DIPSETTING( 0x01, "222 seconds" ) - PORT_DIPSETTING( 0x00, "233 seconds" ) + PORT_DIPSETTING( 0x08, "200 seconds" ) + PORT_DIPSETTING( 0x00, "210 seconds" ) PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("DSW2") |
