diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2013-04-12 09:26:32 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2013-04-12 09:26:32 +0000 |
commit | 1d40fe6824a3a57df60daaefa3b84feb9986d7a9 (patch) | |
tree | aa279a2c0badf53cf71094190fd98f820bec2d4f /src/mame/drivers/meyc8088.c | |
parent | 2938d4c348f4891590af3ce11f707947b83ad05d (diff) |
dac_device tag lookup cleanup (nw)
Diffstat (limited to 'src/mame/drivers/meyc8088.c')
-rw-r--r-- | src/mame/drivers/meyc8088.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/meyc8088.c b/src/mame/drivers/meyc8088.c index 68ff8c1375b..863da881b78 100644 --- a/src/mame/drivers/meyc8088.c +++ b/src/mame/drivers/meyc8088.c @@ -40,12 +40,14 @@ public: : driver_device(mconfig, type, tag), m_maincpu(*this,"maincpu"), m_vram(*this, "vram"), - m_heartbeat(*this, "heartbeat") + m_heartbeat(*this, "heartbeat"), + m_dac(*this, "dac") { } required_device<cpu_device> m_maincpu; required_shared_ptr<UINT8> m_vram; required_device<timer_device> m_heartbeat; + required_device<dac_device> m_dac; UINT8 m_status; UINT8 m_common; @@ -276,7 +278,7 @@ WRITE8_MEMBER(meyc8088_state::meyc8088_common_w) WRITE_LINE_MEMBER(meyc8088_state::meyc8088_sound_out) { - machine().device<dac_device>("dac")->write_signed8(state ? 0x7f : 0); + m_dac->write_signed8(state ? 0x7f : 0); } |