summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author briantro <briantro@users.noreply.github.com>2017-02-11 00:54:49 -0600
committer briantro <briantro@users.noreply.github.com>2017-02-11 00:54:49 -0600
commit63ebe1b684180636e39e54985631aa264a6b394f (patch)
treee17754503559ba33d816e003880de535aeb4ca88 /src
parentbc695d75da77abc29f2b404e0dfb8afbb3fea2ca (diff)
freekick.cpp: Fills in dipswitchs for Omega - NW
NOTE: Does NOT change the working state of game at all!
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/freekick.cpp121
1 files changed, 101 insertions, 20 deletions
diff --git a/src/mame/drivers/freekick.cpp b/src/mame/drivers/freekick.cpp
index a6135c56f48..61d48c5036e 100644
--- a/src/mame/drivers/freekick.cpp
+++ b/src/mame/drivers/freekick.cpp
@@ -181,7 +181,17 @@ static ADDRESS_MAP_START( omega_map, AS_PROGRAM, 8, freekick_state )
AM_RANGE(0xd000, 0xd7ff) AM_RAM AM_SHARE("videoram") // from gigas, just to have a region
AM_RANGE(0xd800, 0xd8ff) AM_RAM AM_SHARE("spriteram") // from gigas, just to have a region
AM_RANGE(0xd900, 0xdfff) AM_RAM
+ AM_RANGE(0xe000, 0xe000) AM_READ_PORT("IN0") AM_WRITE(flipscreen_w)
+ AM_RANGE(0xe002, 0xe003) AM_WRITE(coin_w)
AM_RANGE(0xe004, 0xe004) AM_WRITE(nmi_enable_w)
+ AM_RANGE(0xe005, 0xe005) AM_WRITENOP
+ AM_RANGE(0xe800, 0xe800) AM_READ_PORT("IN1")
+ AM_RANGE(0xf000, 0xf000) AM_READ_PORT("DSW1") AM_WRITENOP //bankswitch ?
+ AM_RANGE(0xf800, 0xf800) AM_READ_PORT("DSW2")
+ AM_RANGE(0xfc00, 0xfc00) AM_DEVWRITE("sn1", sn76489a_device, write)
+ AM_RANGE(0xfc01, 0xfc01) AM_DEVWRITE("sn2", sn76489a_device, write)
+ AM_RANGE(0xfc02, 0xfc02) AM_DEVWRITE("sn3", sn76489a_device, write)
+ AM_RANGE(0xfc03, 0xfc03) AM_DEVWRITE("sn4", sn76489a_device, write)
ADDRESS_MAP_END
static ADDRESS_MAP_START( pbillrd_map, AS_PROGRAM, 8, freekick_state )
@@ -248,6 +258,12 @@ static ADDRESS_MAP_START( gigas_map, AS_PROGRAM, 8, freekick_state )
AM_RANGE(0xfc03, 0xfc03) AM_DEVWRITE("sn4", sn76489a_device, write)
ADDRESS_MAP_END
+static ADDRESS_MAP_START( omega_io_map, AS_IO, 8, freekick_state )
+ ADDRESS_MAP_GLOBAL_MASK(0xff)
+ AM_RANGE(0x00, 0x00) AM_READWRITE(spinner_r, spinner_select_w)
+ AM_RANGE(0x01, 0x01) AM_READ_PORT("DSW3")
+ADDRESS_MAP_END
+
static ADDRESS_MAP_START( gigas_io_map, AS_IO, 8, freekick_state )
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE(0x00, 0x00) AM_READWRITE(spinner_r, spinner_select_w)
@@ -276,35 +292,99 @@ ADDRESS_MAP_END
*************************************/
static INPUT_PORTS_START( omega )
+ PORT_START("IN0")
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
+ PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
+ PORT_BIT( 0x3c, IP_ACTIVE_LOW, IPT_UNUSED )
+ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
+
+ PORT_START("IN1")
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
+ PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
+ PORT_BIT( 0x3c, IP_ACTIVE_LOW, IPT_UNUSED )
+ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
+
+ PORT_START("IN2")
+ PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(15) PORT_REVERSE
+
+ PORT_START("IN3")
+ PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(30) PORT_KEYDELTA(15) PORT_REVERSE PORT_COCKTAIL
+
PORT_START("DSW1")
- PORT_DIPUNKNOWN_DIPLOC(0x01, 0x00, "DSW1:1")
- PORT_DIPUNKNOWN_DIPLOC(0x02, 0x00, "DSW1:2")
- PORT_DIPUNKNOWN_DIPLOC(0x04, 0x00, "DSW1:3")
- PORT_DIPUNKNOWN_DIPLOC(0x08, 0x00, "DSW1:4")
- PORT_DIPUNKNOWN_DIPLOC(0x10, 0x00, "DSW1:5")
- PORT_DIPUNKNOWN_DIPLOC(0x20, 0x00, "DSW1:6")
- PORT_DIPUNKNOWN_DIPLOC(0x40, 0x00, "DSW1:7")
- PORT_DIPUNKNOWN_DIPLOC(0x80, 0x00, "DSW1:8")
+ PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1")
+ PORT_DIPSETTING( 0x01, "3" )
+ PORT_DIPSETTING( 0x00, "5" )
+ PORT_DIPNAME( 0x06, 0x06, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:2,3") /* NOT verified, using values from Gigas MK2 */
+ PORT_DIPSETTING( 0x06, "20000 & 60000, Every 60000 Points" )
+ PORT_DIPSETTING( 0x02, "20000 & 60000 Points" )
+ PORT_DIPSETTING( 0x04, "30000 & 90000, Every 90000 Points" )
+ PORT_DIPSETTING( 0x00, "Only 20000 Points" )
+ PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:4,5") /* NOT verified, using values from Gigas MK2 */
+ PORT_DIPSETTING( 0x18, DEF_STR( Easy ) )
+ PORT_DIPSETTING( 0x10, DEF_STR( Normal ) )
+ PORT_DIPSETTING( 0x08, DEF_STR( Hard ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
+ PORT_DIPNAME( 0x20, 0x20, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:6")
+ PORT_DIPSETTING( 0x00, DEF_STR( No ) )
+ PORT_DIPSETTING( 0x20, DEF_STR( Yes ) )
+ PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:7")
+ PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
+ PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) )
+ PORT_DIPNAME( 0x80, 0x00, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:8")
+ PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x80, DEF_STR( On ) )
- PORT_START("DSW2")
- PORT_DIPUNKNOWN_DIPLOC(0x01, 0x00, "DSW2:1")
- PORT_DIPUNKNOWN_DIPLOC(0x02, 0x00, "DSW2:2")
- PORT_DIPUNKNOWN_DIPLOC(0x04, 0x00, "DSW2:3")
- PORT_DIPUNKNOWN_DIPLOC(0x08, 0x00, "DSW2:4")
- PORT_DIPUNKNOWN_DIPLOC(0x10, 0x00, "DSW2:5")
- PORT_DIPUNKNOWN_DIPLOC(0x20, 0x00, "DSW2:6")
- PORT_DIPUNKNOWN_DIPLOC(0x40, 0x00, "DSW2:7")
- PORT_DIPUNKNOWN_DIPLOC(0x80, 0x00, "DSW2:8")
+ PORT_MODIFY("DSW2")
+ PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:1,2,3,4")
+ PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) )
+ PORT_DIPSETTING( 0x0e, DEF_STR( 3C_1C ) )
+ PORT_DIPSETTING( 0x05, DEF_STR( 2C_1C ) )
+ PORT_DIPSETTING( 0x06, DEF_STR( 3C_2C ) )
+ PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) )
+ PORT_DIPSETTING( 0x0a, DEF_STR( 3C_4C ) )
+ PORT_DIPSETTING( 0x09, DEF_STR( 2C_3C ) )
+ PORT_DIPSETTING( 0x02, "3 Coins/5 Credits" )
+ PORT_DIPSETTING( 0x07, DEF_STR( 1C_2C ) )
+ PORT_DIPSETTING( 0x01, DEF_STR( 2C_5C ) )
+ PORT_DIPSETTING( 0x0b, DEF_STR( 1C_3C ) )
+ PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C ) )
+ PORT_DIPSETTING( 0x0d, DEF_STR( 1C_5C ) )
+ PORT_DIPSETTING( 0x0c, "1 Coin/10 Credits" )
+ PORT_DIPSETTING( 0x04, "1 Coin/25 Credits" )
+ PORT_DIPSETTING( 0x08, "1 Coin/50 Credits" )
+ PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:5,6,7,8")
+ PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) )
+ PORT_DIPSETTING( 0xe0, DEF_STR( 3C_1C ) )
+ PORT_DIPSETTING( 0x50, DEF_STR( 2C_1C ) )
+ PORT_DIPSETTING( 0x60, DEF_STR( 3C_2C ) )
+ PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) )
+ PORT_DIPSETTING( 0xa0, DEF_STR( 3C_4C ) )
+ PORT_DIPSETTING( 0x90, DEF_STR( 2C_3C ) )
+ PORT_DIPSETTING( 0x20, "3 Coins/5 Credits" )
+ PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) )
+ PORT_DIPSETTING( 0x10, DEF_STR( 2C_5C ) )
+ PORT_DIPSETTING( 0xb0, DEF_STR( 1C_3C ) )
+ PORT_DIPSETTING( 0x30, DEF_STR( 1C_4C ) )
+ PORT_DIPSETTING( 0xd0, DEF_STR( 1C_5C ) )
+ PORT_DIPSETTING( 0xc0, "1 Coin/10 Credits" )
+ PORT_DIPSETTING( 0x40, "1 Coin/25 Credits" )
+ PORT_DIPSETTING( 0x80, "1 Coin/50 Credits" )
PORT_START("DSW3")
- PORT_DIPUNKNOWN_DIPLOC(0x01, 0x00, "DSW3:1")
- PORT_DIPUNKNOWN_DIPLOC(0x02, 0x00, "DSW3:2")
+ PORT_DIPUNKNOWN_DIPLOC(0x01, 0x00, "DSW3:1") /* Prints "NORMAL" & "EMPTY" to title screen */
+ PORT_DIPNAME( 0x02, 0x02, "Invulnerability" ) PORT_DIPLOCATION("DSW3:2") /* Ball always bounces up, player never dies */
+ PORT_DIPSETTING( 0x02, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPUNKNOWN_DIPLOC(0x04, 0x00, "DSW3:3")
PORT_DIPUNKNOWN_DIPLOC(0x08, 0x00, "DSW3:4")
PORT_DIPUNKNOWN_DIPLOC(0x10, 0x00, "DSW3:5")
PORT_DIPUNKNOWN_DIPLOC(0x20, 0x00, "DSW3:6")
PORT_DIPUNKNOWN_DIPLOC(0x40, 0x00, "DSW3:7")
- PORT_DIPUNKNOWN_DIPLOC(0x80, 0x00, "DSW3:8")
+ PORT_DIPNAME( 0x80, 0x80, "Prise Version") PORT_DIPLOCATION("DSW3:8")
+ PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x00, DEF_STR( On ) )
INPUT_PORTS_END
static INPUT_PORTS_START( pbillrd )
@@ -662,6 +742,7 @@ MACHINE_RESET_MEMBER(freekick_state,oigas)
static MACHINE_CONFIG_START( omega, freekick_state )
MCFG_CPU_ADD("maincpu", Z80, XTAL_18_432MHz/6) // unknown divisor
MCFG_CPU_PROGRAM_MAP(omega_map)
+ MCFG_CPU_IO_MAP(omega_io_map)
MCFG_CPU_DECRYPTED_OPCODES_MAP(decrypted_opcodes_map)
// video hardware