@@ -472,7 +472,12 @@ void seta2_state::namcostr_map(address_map &map)
472472{
473473 map (0x000000 , 0x07ffff ).rom ();
474474 map (0x200000 , 0x21ffff ).ram (); // RAM
475+ map (0x300000 , 0x3003ff ).ram ().share (" nvram" );
476+ map (0x400000 , 0x400001 ).portr (" DSW" );
477+ map (0x400002 , 0x400003 ).portr (" SYSTEM" );
475478 map (0x400006 , 0x400007 ).r (" watchdog" , FUNC (watchdog_timer_device::reset16_r)).nopw ();
479+ map (0x500001 , 0x500001 ).rw (m_oki, FUNC (okim9810_device::read_status), FUNC (okim9810_device::write_command));
480+ map (0x500003 , 0x500003 ).w (m_oki, FUNC (okim9810_device::write_tmp_register));
476481 map (0x800000 , 0x83ffff ).ram ().share (m_spriteram); // Sprites
477482 map (0x840000 , 0x84ffff ).ram ().w (m_palette, FUNC (palette_device::write16)).share (" palette" ); // Palette
478483 map (0x860000 , 0x86003f ).ram ().w (FUNC (seta2_state::vregs_w)).share (m_vregs); // Video Registers
@@ -2199,6 +2204,43 @@ static INPUT_PORTS_START( funcube )
21992204 PORT_DIPSETTING( 0x00800000 , DEF_STR( On ) )
22002205INPUT_PORTS_END
22012206
2207+ static INPUT_PORTS_START( blnctry )
2208+ PORT_START(" DSW" )
2209+ PORT_SERVICE( 0x01 , IP_ACTIVE_LOW)
2210+ PORT_DIPNAME( 0x02 , 0x02 , " DSW" )
2211+ PORT_DIPSETTING( 0x02 , DEF_STR( Off ) )
2212+ PORT_DIPSETTING( 0x00 , DEF_STR( On ) )
2213+ PORT_DIPNAME( 0x04 , 0x04 , DEF_STR( Unknown ) )
2214+ PORT_DIPSETTING( 0x04 , DEF_STR( Off ) )
2215+ PORT_DIPSETTING( 0x00 , DEF_STR( On ) )
2216+ PORT_DIPNAME( 0x08 , 0x08 , DEF_STR( Unknown ) )
2217+ PORT_DIPSETTING( 0x08 , DEF_STR( Off ) )
2218+ PORT_DIPSETTING( 0x00 , DEF_STR( On ) )
2219+ PORT_DIPNAME( 0x10 , 0x10 , DEF_STR( Unknown ) )
2220+ PORT_DIPSETTING( 0x10 , DEF_STR( Off ) )
2221+ PORT_DIPSETTING( 0x00 , DEF_STR( On ) )
2222+ PORT_DIPNAME( 0x20 , 0x20 , DEF_STR( Unknown ) )
2223+ PORT_DIPSETTING( 0x20 , DEF_STR( Off ) )
2224+ PORT_DIPSETTING( 0x00 , DEF_STR( On ) )
2225+ PORT_DIPNAME( 0x40 , 0x40 , DEF_STR( Unknown ) )
2226+ PORT_DIPSETTING( 0x40 , DEF_STR( Off ) )
2227+ PORT_DIPSETTING( 0x00 , DEF_STR( On ) )
2228+ PORT_DIPNAME( 0x80 , 0x80 , DEF_STR( Unknown ) )
2229+ PORT_DIPSETTING( 0x80 , DEF_STR( Off ) )
2230+ PORT_DIPSETTING( 0x00 , DEF_STR( On ) )
2231+ PORT_BIT( 0xff00 , IP_ACTIVE_LOW, IPT_UNUSED )
2232+
2233+ PORT_START(" SYSTEM" )
2234+ PORT_BIT( 0x0001 , IP_ACTIVE_LOW, IPT_COIN1 )
2235+ PORT_BIT( 0x0002 , IP_ACTIVE_LOW, IPT_SERVICE1 )
2236+ PORT_BIT( 0x0004 , IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME(" Test Button" )
2237+ PORT_BIT( 0x0008 , IP_ACTIVE_LOW, IPT_START1 )
2238+ PORT_BIT( 0x0010 , IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME(" Left Button" )
2239+ PORT_BIT( 0x0020 , IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME(" Right Button" )
2240+ PORT_BIT( 0xffc0 , IP_ACTIVE_LOW, IPT_UNUSED )
2241+ INPUT_PORTS_END
2242+
2243+
22022244
22032245/* **************************************************************************
22042246
@@ -2515,6 +2557,8 @@ void seta2_state::namcostr(machine_config &config)
25152557
25162558 WATCHDOG_TIMER (config, " watchdog" );
25172559
2560+ NVRAM (config, " nvram" , nvram_device::DEFAULT_ALL_0);
2561+
25182562 // video hardware
25192563 SCREEN (config, m_screen, SCREEN_TYPE_RASTER);
25202564 m_screen->set_refresh_hz (60 );
@@ -4454,9 +4498,9 @@ GAME( 2000, penbros, 0, penbros, penbros, seta2_state, empty_init,
44544498GAME( 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
44554499GAME( 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
44564500
4457- GAME( 1998 , blnctry, 0 , namcostr, funcube , seta2_state, empty_init, ROT0, " Namco" , " Balance Try (Japan, ver 1.00)" , MACHINE_NO_COCKTAIL | MACHINE_NOT_WORKING )
4501+ 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
44584502
4459- GAME( 2000 , namcostr, 0 , namcostr, funcube , seta2_state, init_namcostr, ROT0, " Namco" , " Namco Stars" , MACHINE_NO_COCKTAIL | MACHINE_NOT_WORKING )
4503+ GAME( 2000 , namcostr, 0 , namcostr, blnctry , seta2_state, init_namcostr, ROT0, " Namco" , " Namco Stars" , MACHINE_NO_COCKTAIL | MACHINE_NOT_WORKING )
44604504
44614505GAME( 2000 , deerhunt, 0 , samshoot, deerhunt, seta2_state, empty_init, ROT0, " Sammy USA Corporation" , " Deer Hunting USA V4.3" , MACHINE_NO_COCKTAIL | MACHINE_IMPERFECT_GRAPHICS )
44624506GAME( 2000 , deerhunta, deerhunt, samshoot, deerhunt, seta2_state, empty_init, ROT0, " Sammy USA Corporation" , " Deer Hunting USA V4.2" , MACHINE_NO_COCKTAIL | MACHINE_IMPERFECT_GRAPHICS )
0 commit comments