Fix for zac2650.c problems in debug builds regression test run. (nw)

This commit is contained in:
Ivan Vangelista 2014-03-15 15:29:28 +00:00
parent 129364210b
commit d38034fc17
3 changed files with 10 additions and 4 deletions

View File

@ -193,6 +193,12 @@ PALETTE_INIT_MEMBER(zac2650_state, zac2650)
palette.set_pen_color(3,rgb_t::black);
}
static const s2636_interface s2636_config =
{
0x100,
0, 0
};
/************************************************************************************************
Video is slightly odd on these zac boards
@ -258,7 +264,7 @@ static MACHINE_CONFIG_START( tinvader, zac2650_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("s2636snd", S2636, 0)
MCFG_S2636_ADD("s2636", s2636_config)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
MACHINE_CONFIG_END

View File

@ -8,7 +8,7 @@ public:
m_videoram(*this, "videoram"),
m_s2636_0_ram(*this, "s2636_0_ram"),
m_maincpu(*this, "maincpu"),
m_s2636_sound(*this, "s2636snd"),
m_s2636(*this, "s2636"),
m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"),
m_palette(*this, "palette") { }
@ -17,7 +17,7 @@ public:
required_shared_ptr<UINT8> m_s2636_0_ram;
required_device<cpu_device> m_maincpu;
required_device<s2636_device> m_s2636_sound;
required_device<s2636_device> m_s2636;
required_device<gfxdecode_device> m_gfxdecode;
required_device<screen_device> m_screen;
required_device<palette_device> m_palette;

View File

@ -34,7 +34,7 @@ WRITE8_MEMBER(zac2650_state::zac_s2636_w)
m_gfxdecode->gfx(2)->mark_dirty(offset/8);
if (offset == 0xc7)
{
m_s2636_sound->soundport_w(0, data);
m_s2636->soundport_w(0, data);
}
}