diff options
| author | 2025-11-24 15:09:52 +0100 | |
|---|---|---|
| committer | 2025-11-24 15:09:52 +0100 | |
| commit | cfc40e5e253fb2992ed94df1f4ce9a19e2db9d5e (patch) | |
| tree | 79d9cb5375f7bd766ef293e02ccb0df65b12ac96 | |
| parent | 5162043bd73a00299ac1c722aab4c4746a16b91a (diff) | |
seta/seta2.cpp: hookup input, sound and NVRAM to blnctry
| -rw-r--r-- | src/mame/seta/seta2.cpp | 48 |
1 files changed, 46 insertions, 2 deletions
diff --git a/src/mame/seta/seta2.cpp b/src/mame/seta/seta2.cpp index a4529cd9a24..e187e37ddb7 100644 --- a/src/mame/seta/seta2.cpp +++ b/src/mame/seta/seta2.cpp @@ -472,7 +472,12 @@ void seta2_state::namcostr_map(address_map &map) { map(0x000000, 0x07ffff).rom(); map(0x200000, 0x21ffff).ram(); // RAM + map(0x300000, 0x3003ff).ram().share("nvram"); + map(0x400000, 0x400001).portr("DSW"); + map(0x400002, 0x400003).portr("SYSTEM"); map(0x400006, 0x400007).r("watchdog", FUNC(watchdog_timer_device::reset16_r)).nopw(); + map(0x500001, 0x500001).rw(m_oki, FUNC(okim9810_device::read_status), FUNC(okim9810_device::write_command)); + map(0x500003, 0x500003).w(m_oki, FUNC(okim9810_device::write_tmp_register)); map(0x800000, 0x83ffff).ram().share(m_spriteram); // Sprites map(0x840000, 0x84ffff).ram().w(m_palette, FUNC(palette_device::write16)).share("palette"); // Palette map(0x860000, 0x86003f).ram().w(FUNC(seta2_state::vregs_w)).share(m_vregs); // Video Registers @@ -2199,6 +2204,43 @@ static INPUT_PORTS_START( funcube ) PORT_DIPSETTING( 0x00800000, DEF_STR( On ) ) INPUT_PORTS_END +static INPUT_PORTS_START( blnctry ) + PORT_START("DSW") + PORT_SERVICE( 0x01, IP_ACTIVE_LOW) + PORT_DIPNAME( 0x02, 0x02, "DSW" ) + PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) + PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) + PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) + PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) + PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) + PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) + PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) + + PORT_START("SYSTEM") + PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) + PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_SERVICE1 ) + PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Test Button") + PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) + PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Left Button") + PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Right Button") + PORT_BIT( 0xffc0, IP_ACTIVE_LOW, IPT_UNUSED ) +INPUT_PORTS_END + + /*************************************************************************** @@ -2515,6 +2557,8 @@ void seta2_state::namcostr(machine_config &config) WATCHDOG_TIMER(config, "watchdog"); + NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); + // video hardware SCREEN(config, m_screen, SCREEN_TYPE_RASTER); m_screen->set_refresh_hz(60); @@ -4454,9 +4498,9 @@ GAME( 2000, penbros, 0, penbros, penbros, seta2_state, empty_init, GAME( 2000, ablast, penbros, penbros, penbros, seta2_state, empty_init, ROT0, "Subsino", "Hong Tian Lei (A-Blast) (Japan)", MACHINE_NO_COCKTAIL ) // 轟天雷/Hōng tiān léi GAME( 2000, ablastb, penbros, ablastb, penbros, seta2_state, empty_init, ROT0, "bootleg", "Hong Tian Lei (A-Blast) (bootleg)", MACHINE_NO_COCKTAIL | MACHINE_NOT_WORKING | MACHINE_IMPERFECT_SOUND ) // at least "tilemap sprite" scrolly flag differs, FPGA instead of x1-010 -GAME( 1998, blnctry, 0, namcostr, funcube, seta2_state, empty_init, ROT0, "Namco", "Balance Try (Japan, ver 1.00)", MACHINE_NO_COCKTAIL | MACHINE_NOT_WORKING ) +GAME( 1999, blnctry, 0, namcostr, blnctry, seta2_state, empty_init, ROT0, "Namco", "Balance Try (Japan, ver 1.00)", MACHINE_NO_COCKTAIL | MACHINE_NOT_WORKING ) // sets 1999/02/01 in NVRAM -GAME( 2000, namcostr, 0, namcostr, funcube, seta2_state, init_namcostr, ROT0, "Namco", "Namco Stars", MACHINE_NO_COCKTAIL | MACHINE_NOT_WORKING ) +GAME( 2000, namcostr, 0, namcostr, blnctry, seta2_state, init_namcostr, ROT0, "Namco", "Namco Stars", MACHINE_NO_COCKTAIL | MACHINE_NOT_WORKING ) GAME( 2000, deerhunt, 0, samshoot, deerhunt, seta2_state, empty_init, ROT0, "Sammy USA Corporation", "Deer Hunting USA V4.3", MACHINE_NO_COCKTAIL | MACHINE_IMPERFECT_GRAPHICS ) GAME( 2000, deerhunta, deerhunt, samshoot, deerhunt, seta2_state, empty_init, ROT0, "Sammy USA Corporation", "Deer Hunting USA V4.2", MACHINE_NO_COCKTAIL | MACHINE_IMPERFECT_GRAPHICS ) |
