summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-08-24 00:07:38 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-08-24 00:07:38 -0400
commit9c798ba67a4a39a99167e3c1c087471d1f2b06ee (patch)
treeedc993908fde6c3ca623696a4423e74d4ad61a6d
parentedb29923e8d2fc1608b273014a49072e33ec135a (diff)
bigkarnk: Soundlatch modernization (nw)
-rw-r--r--src/mame/drivers/gaelco.cpp9
-rw-r--r--src/mame/includes/gaelco.h2
2 files changed, 2 insertions, 9 deletions
diff --git a/src/mame/drivers/gaelco.cpp b/src/mame/drivers/gaelco.cpp
index beb71c477b1..8d1597abc90 100644
--- a/src/mame/drivers/gaelco.cpp
+++ b/src/mame/drivers/gaelco.cpp
@@ -39,12 +39,6 @@ Year Game PCB NOTES
*
*************************************/
-WRITE8_MEMBER(gaelco_state::bigkarnk_sound_command_w)
-{
- m_soundlatch->write(space, 0, data);
- m_audiocpu->set_input_line(M6809_FIRQ_LINE, HOLD_LINE);
-}
-
WRITE_LINE_MEMBER(gaelco_state::coin1_lockout_w)
{
machine().bookkeeping().coin_lockout_w(0, state);
@@ -127,7 +121,7 @@ static ADDRESS_MAP_START( bigkarnk_map, AS_PROGRAM, 16, gaelco_state )
AM_RANGE(0x700006, 0x700007) AM_READ_PORT("P2")
AM_RANGE(0x700008, 0x700009) AM_READ_PORT("SERVICE")
AM_RANGE(0x70000a, 0x70000b) AM_SELECT(0x000070) AM_DEVWRITE8_MOD("outlatch", ls259_device, write_d0, rshift<3>, 0x00ff)
- AM_RANGE(0x70000e, 0x70000f) AM_WRITE8(bigkarnk_sound_command_w, 0x00ff) /* Triggers a FIRQ on the sound CPU */
+ AM_RANGE(0x70000e, 0x70000f) AM_DEVWRITE8("soundlatch", generic_latch_8_device, write, 0x00ff) /* Triggers a FIRQ on the sound CPU */
AM_RANGE(0xff8000, 0xffffff) AM_RAM /* Work RAM */
ADDRESS_MAP_END
@@ -543,6 +537,7 @@ static MACHINE_CONFIG_START( bigkarnk )
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
+ MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", M6809_FIRQ_LINE))
MCFG_SOUND_ADD("ymsnd", YM3812, 3580000)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
diff --git a/src/mame/includes/gaelco.h b/src/mame/includes/gaelco.h
index e2ad6ffe86f..3093f7a2cc0 100644
--- a/src/mame/includes/gaelco.h
+++ b/src/mame/includes/gaelco.h
@@ -39,8 +39,6 @@ public:
/* video-related */
tilemap_t *m_tilemap[2];
- DECLARE_WRITE8_MEMBER(bigkarnk_sound_command_w);
- DECLARE_WRITE8_MEMBER(output_latch_w);
DECLARE_WRITE_LINE_MEMBER(coin1_lockout_w);
DECLARE_WRITE_LINE_MEMBER(coin2_lockout_w);
DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);