diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-05-21 01:00:41 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-05-21 01:00:41 -0400 |
commit | 3ac6d70be07a146be55661e93eb9eb239b9a8c2e (patch) | |
tree | 943e5ddea7400b82ce874a29f7f2953b69a4b27d | |
parent | a7e16f686b983228d0e9e828d08683b4db6ff3f7 (diff) |
Even more output_finder fixes (nw)
-rw-r--r-- | src/mame/drivers/goldnpkr.cpp | 8 | ||||
-rw-r--r-- | src/mame/drivers/smsmcorp.cpp | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/mame/drivers/goldnpkr.cpp b/src/mame/drivers/goldnpkr.cpp index 4a2bf06c6c4..47669df6513 100644 --- a/src/mame/drivers/goldnpkr.cpp +++ b/src/mame/drivers/goldnpkr.cpp @@ -1302,6 +1302,7 @@ public: m_colorram(*this, "colorram"), m_maincpu(*this, "maincpu"), m_discrete(*this, "discrete"), + m_ay8910(*this, "ay8910"), m_gfxdecode(*this, "gfxdecode"), m_palette(*this, "palette"), m_lamp(*this, "lamp%u", 0U) @@ -1388,6 +1389,7 @@ protected: required_device<cpu_device> m_maincpu; optional_device<discrete_device> m_discrete; + optional_device<ay8910_device> m_ay8910; required_device<gfxdecode_device> m_gfxdecode; required_device<palette_device> m_palette; output_finder<5> m_lamp; @@ -1701,11 +1703,11 @@ WRITE8_MEMBER(goldnpkr_state::wcfalcon_snd_w) { if (wcfalcon_flag == 0) { - machine().device<ay8910_device>("ay8910")->data_address_w(space, 0, data); + m_ay8910->data_address_w(space, 0, data); } 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; @@ -4283,6 +4285,8 @@ DISCRETE_SOUND_END MACHINE_START_MEMBER(goldnpkr_state, mondial) { + m_lamp.resolve(); + uint8_t *ROM = memregion("maincpu")->base(); membank("bank1")->configure_entries(0, 2, &ROM[0], 0x4000); } diff --git a/src/mame/drivers/smsmcorp.cpp b/src/mame/drivers/smsmcorp.cpp index b3d81843332..9d7bb60df2f 100644 --- a/src/mame/drivers/smsmcorp.cpp +++ b/src/mame/drivers/smsmcorp.cpp @@ -539,6 +539,7 @@ void smsmfg_state::machine_start() MACHINE_START_MEMBER(smsmfg_state,sureshot) { + m_lamp.resolve(); save_item(NAME(m_communication_port_status)); save_item(NAME(m_communication_port)); } |