From 225fae73b4799f712f5befd6a36a431ca6fe9023 Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 29 Aug 2017 01:09:43 -0400 Subject: dynablstb: Soundlatch modernization (nw) --- src/mame/drivers/m90.cpp | 14 ++++---------- src/mame/includes/m90.h | 1 - 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/mame/drivers/m90.cpp b/src/mame/drivers/m90.cpp index 0d8ce4ac891..2899f17ee40 100644 --- a/src/mame/drivers/m90.cpp +++ b/src/mame/drivers/m90.cpp @@ -58,15 +58,6 @@ WRITE16_MEMBER(m90_state::quizf1_bankswitch_w) membank("bank1")->set_entry(data & 0xf); } -WRITE16_MEMBER(m90_state::dynablsb_sound_command_w) -{ - if (ACCESSING_BITS_0_7) - { - m_soundlatch->write(space, offset, data); - m_soundcpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE); - } -} - #ifdef UNUSED_FUNCTION WRITE16_MEMBER(m90_state::unknown_w) { @@ -114,7 +105,7 @@ static ADDRESS_MAP_START( m90_main_cpu_io_map, AS_IO, 16, m90_state ) ADDRESS_MAP_END static ADDRESS_MAP_START( dynablsb_main_cpu_io_map, AS_IO, 16, m90_state ) - AM_RANGE(0x00, 0x01) AM_WRITE(dynablsb_sound_command_w) + AM_RANGE(0x00, 0x01) AM_DEVWRITE8("soundlatch", generic_latch_8_device, write, 0x00ff) AM_RANGE(0x00, 0x01) AM_READ_PORT("P1_P2") AM_RANGE(0x02, 0x03) AM_WRITE(m90_coincounter_w) AM_RANGE(0x02, 0x03) AM_READ_PORT("SYSTEM") @@ -852,6 +843,9 @@ static MACHINE_CONFIG_DERIVED( dynablsb, m90 ) MCFG_DEVICE_REMOVE("m72") + MCFG_DEVICE_MODIFY("soundlatch") + MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) + MCFG_SOUND_MODIFY("ymsnd") MCFG_YM2151_IRQ_HANDLER(NOOP) /* this bootleg polls the YM2151 instead of taking interrupts from it */ MACHINE_CONFIG_END diff --git a/src/mame/includes/m90.h b/src/mame/includes/m90.h index 35706a30e25..3e60a5a56b1 100644 --- a/src/mame/includes/m90.h +++ b/src/mame/includes/m90.h @@ -35,7 +35,6 @@ public: uint8_t m_last_pf2; DECLARE_WRITE16_MEMBER(m90_coincounter_w); DECLARE_WRITE16_MEMBER(quizf1_bankswitch_w); - DECLARE_WRITE16_MEMBER(dynablsb_sound_command_w); DECLARE_WRITE16_MEMBER(m90_video_control_w); DECLARE_WRITE16_MEMBER(m90_video_w); DECLARE_DRIVER_INIT(bomblord); -- cgit v1.2.3