Even more output_finder fixes (nw)

This commit is contained in:
AJR 2018-05-21 01:00:41 -04:00
parent a7e16f686b
commit 3ac6d70be0
2 changed files with 7 additions and 2 deletions

View File

@ -1302,6 +1302,7 @@ public:
m_colorram(*this, "colorram"), m_colorram(*this, "colorram"),
m_maincpu(*this, "maincpu"), m_maincpu(*this, "maincpu"),
m_discrete(*this, "discrete"), m_discrete(*this, "discrete"),
m_ay8910(*this, "ay8910"),
m_gfxdecode(*this, "gfxdecode"), m_gfxdecode(*this, "gfxdecode"),
m_palette(*this, "palette"), m_palette(*this, "palette"),
m_lamp(*this, "lamp%u", 0U) m_lamp(*this, "lamp%u", 0U)
@ -1388,6 +1389,7 @@ protected:
required_device<cpu_device> m_maincpu; required_device<cpu_device> m_maincpu;
optional_device<discrete_device> m_discrete; optional_device<discrete_device> m_discrete;
optional_device<ay8910_device> m_ay8910;
required_device<gfxdecode_device> m_gfxdecode; required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette; required_device<palette_device> m_palette;
output_finder<5> m_lamp; output_finder<5> m_lamp;
@ -1701,11 +1703,11 @@ WRITE8_MEMBER(goldnpkr_state::wcfalcon_snd_w)
{ {
if (wcfalcon_flag == 0) if (wcfalcon_flag == 0)
{ {
machine().device<ay8910_device>("ay8910")->data_address_w(space, 0, data); m_ay8910->data_address_w(space, 0, data);
} }
else else
{ {
machine().device<ay8910_device>("ay8910")->data_address_w(space, 1, data); m_ay8910->data_address_w(space, 1, data);
} }
wcfalcon_flag = wcfalcon_flag ^ 1; wcfalcon_flag = wcfalcon_flag ^ 1;
@ -4283,6 +4285,8 @@ DISCRETE_SOUND_END
MACHINE_START_MEMBER(goldnpkr_state, mondial) MACHINE_START_MEMBER(goldnpkr_state, mondial)
{ {
m_lamp.resolve();
uint8_t *ROM = memregion("maincpu")->base(); uint8_t *ROM = memregion("maincpu")->base();
membank("bank1")->configure_entries(0, 2, &ROM[0], 0x4000); membank("bank1")->configure_entries(0, 2, &ROM[0], 0x4000);
} }

View File

@ -539,6 +539,7 @@ void smsmfg_state::machine_start()
MACHINE_START_MEMBER(smsmfg_state,sureshot) MACHINE_START_MEMBER(smsmfg_state,sureshot)
{ {
m_lamp.resolve();
save_item(NAME(m_communication_port_status)); save_item(NAME(m_communication_port_status));
save_item(NAME(m_communication_port)); save_item(NAME(m_communication_port));
} }