diff options
Diffstat (limited to 'src/mame/audio/dkong.cpp')
-rw-r--r-- | src/mame/audio/dkong.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mame/audio/dkong.cpp b/src/mame/audio/dkong.cpp index 6c468c05db7..0b0dbfdbf15 100644 --- a/src/mame/audio/dkong.cpp +++ b/src/mame/audio/dkong.cpp @@ -5,7 +5,6 @@ #include "cpu/mcs48/mcs48.h" #include "sound/discrete.h" -#include "sound/tms5110.h" #include "speaker.h" @@ -1199,11 +1198,10 @@ Addresses found at @0x510, cpu2 */ -WRITE8_MEMBER(dkong_state::M58817_command_w) +WRITE8_MEMBER(dkong_state::m58817_command_w) { - m58817_device *m58817 = machine().device<m58817_device>("tms"); - m58817->ctl_w(space, 0, data & 0x0f); - m58817->pdc_w((data>>4) & 0x01); + m_m58817->ctl_w(space, 0, data & 0x0f); + m_m58817->pdc_w((data>>4) & 0x01); /* FIXME 0x20 is CS */ } @@ -1232,7 +1230,6 @@ READ8_MEMBER(dkong_state::dkong_voice_status_r) READ8_MEMBER(dkong_state::dkong_tune_r) { - latch8_device *m_ls175_3d = machine().device<latch8_device>("ls175.3d"); uint8_t page = m_dev_vp2->read(space, 0) & 0x47; if ( page & 0x40 ) @@ -1371,7 +1368,7 @@ MACHINE_CONFIG_START(dkong_state::radarscp1_audio) MCFG_DEVICE_MODIFY("soundcpu") MCFG_DEVICE_IO_MAP(radarscp1_sound_io_map) MCFG_MCS48_PORT_P1_IN_CB(READ8("virtual_p1", latch8_device, read)) - MCFG_MCS48_PORT_P1_OUT_CB(WRITE8(*this, dkong_state, M58817_command_w)) + MCFG_MCS48_PORT_P1_OUT_CB(WRITE8(*this, dkong_state, m58817_command_w)) MCFG_MCS48_PORT_P2_IN_CB(NOOP) /* virtual_p2 is not read -see memory map-, all bits are output bits */ |