summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-04-02 08:24:20 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-04-02 08:24:20 +0000
commit3fd1755ae27ea89831fc003940e55efc6e73d1e9 (patch)
tree7f151c57dfba7a59bba557137e6a10b88e43b2d6
parent2a9d6c09bfaea29ad1c218535ed638de2418467d (diff)
From: RansAckeR
Subject: fix for 01623 Also changed apb COIN3 to SERVICE1. -- From: RansAckeR [mailto:RansAckeR@pandora.be] Subject: blueprnt.c dips Added dip locations -- Also fixed compile error in namcona1.c.
-rw-r--r--src/mame/drivers/atarisy2.c10
-rw-r--r--src/mame/drivers/blueprnt.c109
-rw-r--r--src/mame/video/namcona1.c2
3 files changed, 51 insertions, 70 deletions
diff --git a/src/mame/drivers/atarisy2.c b/src/mame/drivers/atarisy2.c
index 1266ff6beae..397ab9fd729 100644
--- a/src/mame/drivers/atarisy2.c
+++ b/src/mame/drivers/atarisy2.c
@@ -906,6 +906,11 @@ INPUT_PORTS_END
static INPUT_PORTS_START( ssprint )
PORT_INCLUDE( paperboy )
+ PORT_MODIFY("1840")
+ PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 )
+ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3 )
+
PORT_MODIFY("1800")
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START3 )
@@ -965,6 +970,8 @@ static INPUT_PORTS_START( csprint )
PORT_MODIFY("1840")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED )
+ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_MODIFY("1800")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
@@ -988,6 +995,9 @@ INPUT_PORTS_END
static INPUT_PORTS_START( apb )
PORT_INCLUDE( paperboy )
+ PORT_MODIFY("1840")
+ PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE1 )
+
PORT_MODIFY("1800")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
diff --git a/src/mame/drivers/blueprnt.c b/src/mame/drivers/blueprnt.c
index de527c0e826..676b1b86ca9 100644
--- a/src/mame/drivers/blueprnt.c
+++ b/src/mame/drivers/blueprnt.c
@@ -48,6 +48,10 @@ write:
- the cross hatch pattern test in service mode is too fast, each phase
should take 15 seconds according to the service manual
+
+ DIP locations verified for:
+ - blueprnt (manual)
+
*/
#include "driver.h"
@@ -122,7 +126,7 @@ ADDRESS_MAP_END
/* Input Ports */
static INPUT_PORTS_START( blueprnt )
- PORT_START_TAG("PORT 0")
+ PORT_START_TAG("IN0")
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT )
@@ -132,7 +136,7 @@ static INPUT_PORTS_START( blueprnt )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY
- PORT_START_TAG("PORT 1")
+ PORT_START_TAG("IN1")
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
PORT_SERVICE( 0x04, IP_ACTIVE_HIGH )
@@ -143,115 +147,82 @@ static INPUT_PORTS_START( blueprnt )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL
PORT_START_TAG("DILSW1")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
- PORT_DIPNAME( 0x06, 0x02, DEF_STR( Bonus_Life ) )
+ PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "DILSW1:1" ) /* Listed as "Unused" */
+ PORT_DIPNAME( 0x06, 0x02, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DILSW1:2,3")
PORT_DIPSETTING( 0x00, "20K" )
PORT_DIPSETTING( 0x02, "30K" )
PORT_DIPSETTING( 0x04, "40K" )
PORT_DIPSETTING( 0x06, "50K" )
- PORT_DIPNAME( 0x08, 0x00, DEF_STR( Free_Play ) )
+ PORT_DIPNAME( 0x08, 0x00, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("DILSW1:4")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x08, DEF_STR( On ) )
- PORT_DIPNAME( 0x10, 0x00, "Maze Monster Appears In" )
+ PORT_DIPNAME( 0x10, 0x00, "Maze Monster Appears In" ) PORT_DIPLOCATION("DILSW1:5")
PORT_DIPSETTING( 0x00, "2nd Maze" )
PORT_DIPSETTING( 0x10, "3rd Maze" )
- PORT_DIPNAME( 0x20, 0x00, DEF_STR( Coin_A ) )
+ PORT_DIPNAME( 0x20, 0x00, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DILSW1:6")
PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )
- PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_B ) )
+ PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DILSW1:7") /* Listed as "Unused" */
PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) )
PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) )
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
+ PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "DILSW1:8" ) /* Listed as "Unused" */
PORT_START_TAG("DILSW2")
- PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) )
+ PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("DILSW2:1,2")
PORT_DIPSETTING( 0x00, "2" )
PORT_DIPSETTING( 0x01, "3" )
PORT_DIPSETTING( 0x02, "4" )
PORT_DIPSETTING( 0x03, "5" )
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
- PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) )
+ PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "DILSW2:3" ) /* Listed as "Unused" */
+ PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DILSW2:4")
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) )
- PORT_DIPNAME( 0x30, 0x10, DEF_STR( Difficulty ) )
+ PORT_DIPNAME( 0x30, 0x10, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DILSW2:5,6")
PORT_DIPSETTING( 0x00, "Level 1" )
PORT_DIPSETTING( 0x10, "Level 2" )
PORT_DIPSETTING( 0x20, "Level 3" )
PORT_DIPSETTING( 0x30, "Level 4" )
- PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED )
+ PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "DILSW2:7" ) /* Listed as "Unused" */
+ PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "DILSW2:8" ) /* Listed as "Unused" */
INPUT_PORTS_END
static INPUT_PORTS_START( saturn )
- PORT_START_TAG("IN0")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
- PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 )
+ PORT_INCLUDE( blueprnt )
+
+ PORT_MODIFY("IN0")
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 )
- PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 )
- PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY
- PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY
- PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY
- PORT_START_TAG("IN1")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 )
- PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
+ PORT_MODIFY("IN1")
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL
- PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL
- PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
- PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
- PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL
- PORT_START_TAG("DSW0")
- PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x01, DEF_STR( On ) )
- PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) )
+ PORT_MODIFY("DILSW1")
+ PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "DILSW1:1" )
+ PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DILSW1:2")
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) )
- PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x04, DEF_STR( On ) )
- PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x08, DEF_STR( On ) )
- PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x10, DEF_STR( On ) )
- PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x20, DEF_STR( On ) )
- PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Lives ) )
+ PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x04, "DILSW1:3" )
+ PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "DILSW1:4" )
+ PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "DILSW1:5" )
+ PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "DILSW1:6" )
+ PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("DILSW1:7,8")
PORT_DIPSETTING( 0x00, "3" )
PORT_DIPSETTING( 0x40, "4" )
PORT_DIPSETTING( 0x80, "5" )
PORT_DIPSETTING( 0xc0, "6" )
- PORT_START_TAG("DSW1")
- PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x01, DEF_STR( On ) )
- PORT_DIPNAME( 0x02, 0x00, DEF_STR( Coinage ) )
+ PORT_MODIFY("DILSW2")
+ PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "DILSW2:1" )
+ PORT_DIPNAME( 0x02, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("DILSW2:2")
PORT_DIPSETTING( 0x02, "A 2/1 B 1/3" )
PORT_DIPSETTING( 0x00, "A 1/1 B 1/6" )
- PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) )
+ PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("DILSW2:3")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x04, DEF_STR( On ) )
- PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x08, DEF_STR( On ) )
- PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x10, DEF_STR( On ) )
- PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x20, DEF_STR( On ) )
- PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x40, DEF_STR( On ) )
- PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x80, DEF_STR( On ) )
+ PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "DILSW2:4" )
+ PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "DILSW2:5" )
+ PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "DILSW2:6" )
+ PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x40, "DILSW2:7" )
+ PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "DILSW2:8" )
INPUT_PORTS_END
/* Graphics Layouts */
diff --git a/src/mame/video/namcona1.c b/src/mame/video/namcona1.c
index 2fc82c0e6a5..c6491dbca58 100644
--- a/src/mame/video/namcona1.c
+++ b/src/mame/video/namcona1.c
@@ -405,7 +405,7 @@ static void pdraw_tile(running_machine *machine,
int c = source[x_index>>16];
/* render a shadow only if the sprites color is $F (8bpp) or $FF (4bpp) */
- if( bShadow && ((gfx_region == 0 && color == 0x0f) || (gfx_region == 1 && color == 0xff)/*)*/)
+ if( bShadow && ((gfx_region == 0 && color == 0x0f) || (gfx_region == 1 && color == 0xff)))
{
pen_t *palette_shadow_table = machine->shadow_table;
dest[x] = palette_shadow_table[dest[x]];