namcos2.cpp : Fix finallap boot

This commit is contained in:
cam900 2018-07-18 17:45:32 +09:00 committed by Vas Crabb
parent 13c663f17a
commit 44c0f12433
3 changed files with 15 additions and 1 deletions

View File

@ -602,7 +602,7 @@ void namcos2_state::namcos2_68k_default_cpu_board_am(address_map &map)
map(0x200000, 0x3fffff).rom().region("data_rom", 0);
map(0x400000, 0x41ffff).rw(FUNC(namcos2_state::c123_tilemap_videoram_r), FUNC(namcos2_state::c123_tilemap_videoram_w));
map(0x420000, 0x42003f).rw(FUNC(namcos2_state::c123_tilemap_control_r), FUNC(namcos2_state::c123_tilemap_control_w));
map(0x440000, 0x44ffff).rw(m_c116, FUNC(namco_c116_device::read), FUNC(namco_c116_device::write)).umask16(0x00ff).cswidth(16);
map(0x440000, 0x44ffff).r(FUNC(namcos2_state::c116_r)).w(m_c116, FUNC(namco_c116_device::write)).umask16(0x00ff).cswidth(16);
map(0x460000, 0x460fff).mirror(0xf000).rw(FUNC(namcos2_state::dpram_word_r), FUNC(namcos2_state::dpram_word_w));
map(0x480000, 0x483fff).rw(m_sci, FUNC(namco_c139_device::ram_r), FUNC(namco_c139_device::ram_w));
map(0x4a0000, 0x4a000f).m(m_sci, FUNC(namco_c139_device::regs_map));

View File

@ -368,6 +368,7 @@ private:
TILE_GET_INFO_MEMBER( roz_tile_info );
DECLARE_READ8_MEMBER( c116_r );
DECLARE_WRITE16_MEMBER( rozram_word_w );
DECLARE_READ16_MEMBER( gfx_ctrl_r );
DECLARE_WRITE16_MEMBER( gfx_ctrl_w );

View File

@ -290,6 +290,19 @@ WRITE16_MEMBER( namcos2_state::rozram_word_w )
/**************************************************************************/
READ8_MEMBER( namcos2_state::c116_r )
{
if( (offset&0x1800) == 0x1800 )
{
/* palette register */
offset &= 0x180f;
/* registers 6,7: unmapped? */
if (offset > 0x180b) return 0xff; // fix for finallap boot
}
return m_c116->read(space,offset,mem_mask);
}
/**************************************************************************/
void namcos2_state::draw_sprite_init()