summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-08-29 01:09:43 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-08-29 01:09:43 -0400
commit225fae73b4799f712f5befd6a36a431ca6fe9023 (patch)
treee73d284390270b6a80a8fa873be43732e848a7e6
parent0af9923f26e5a3669547e28270de5d844322d471 (diff)
dynablstb: Soundlatch modernization (nw)
-rw-r--r--src/mame/drivers/m90.cpp14
-rw-r--r--src/mame/includes/m90.h1
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);