summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-21 02:27:48 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-21 02:27:48 -0400
commitd205197fe000f59f378156639bffd04bce6ecfc3 (patch)
tree2fae7f56eda102dfbeb856ac65400ed84267f745 /src/mame/machine
parent5844d38beba702c9e27d7e52f42845c4ff62ca52 (diff)
mhavoc.cpp: Use device finder for TMS5220 (nw)
Diffstat (limited to 'src/mame/machine')
-rw-r--r--src/mame/machine/mhavoc.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mame/machine/mhavoc.cpp b/src/mame/machine/mhavoc.cpp
index 3c075767ed9..23183d12f55 100644
--- a/src/mame/machine/mhavoc.cpp
+++ b/src/mame/machine/mhavoc.cpp
@@ -7,7 +7,6 @@
***************************************************************************/
#include "emu.h"
-#include "sound/tms5220.h"
#include "cpu/m6502/m6502.h"
#include "includes/mhavoc.h"
@@ -207,8 +206,7 @@ WRITE8_MEMBER(mhavoc_state::mhavoc_rom_banksel_w)
CUSTOM_INPUT_MEMBER(mhavoc_state::tms5220_r)
{
- tms5220_device *tms5220 = machine().device<tms5220_device>("tms");
- return tms5220->readyq_r() ? 1 : 0;
+ return m_tms->readyq_r() ? 1 : 0;
}
CUSTOM_INPUT_MEMBER(mhavoc_state::mhavoc_bit67_r)
@@ -316,8 +314,7 @@ WRITE8_MEMBER(mhavoc_state::mhavocrv_speech_data_w)
WRITE8_MEMBER(mhavoc_state::mhavocrv_speech_strobe_w)
{
- tms5220_device *tms5220 = machine().device<tms5220_device>("tms");
- tms5220->data_w(space, 0, m_speech_write_buffer);
+ m_tms->data_w(space, 0, m_speech_write_buffer);
}
/*************************************