summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/nwk-tr.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2013-04-11 08:40:07 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2013-04-11 08:40:07 +0000
commit415ccecb5fd028715c8f2aec1c73d8ce5d687c60 (patch)
tree796d20642e80e8c6a2401d8413463a6368ecdc9f /src/mame/drivers/nwk-tr.c
parent3d0285d974554a921fc13c5e2000945af9b4757c (diff)
changed machine().device("audiocpu") with m_maincpu (nw)
Diffstat (limited to 'src/mame/drivers/nwk-tr.c')
-rw-r--r--src/mame/drivers/nwk-tr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/nwk-tr.c b/src/mame/drivers/nwk-tr.c
index ade0dcf6e9b..07d4e838f76 100644
--- a/src/mame/drivers/nwk-tr.c
+++ b/src/mame/drivers/nwk-tr.c
@@ -232,7 +232,8 @@ public:
nwktr_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_work_ram(*this, "work_ram"),
- m_maincpu(*this, "maincpu") { }
+ m_maincpu(*this, "maincpu"),
+ m_audiocpu(*this, "audiocpu") { }
UINT8 m_led_reg0;
UINT8 m_led_reg1;
@@ -259,6 +260,7 @@ public:
TIMER_CALLBACK_MEMBER(irq_off);
void lanc2_init();
required_device<cpu_device> m_maincpu;
+ required_device<cpu_device> m_audiocpu;
};
@@ -515,7 +517,7 @@ WRITE32_MEMBER(nwktr_state::lanc2_w)
TIMER_CALLBACK_MEMBER(nwktr_state::irq_off)
{
- machine().device("audiocpu")->execute().set_input_line(param, CLEAR_LINE);
+ m_audiocpu->set_input_line(param, CLEAR_LINE);
}
void nwktr_state::machine_start()