summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/spartanxtec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/spartanxtec.cpp')
-rw-r--r--src/mame/drivers/spartanxtec.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mame/drivers/spartanxtec.cpp b/src/mame/drivers/spartanxtec.cpp
index 857fbfd1cc9..d118c30ae5b 100644
--- a/src/mame/drivers/spartanxtec.cpp
+++ b/src/mame/drivers/spartanxtec.cpp
@@ -65,7 +65,6 @@ public:
tilemap_t* m_bg_tilemap;
DECLARE_WRITE8_MEMBER(kungfum_tileram_w);
TILE_GET_INFO_MEMBER(get_kungfum_bg_tile_info);
- DECLARE_WRITE8_MEMBER(spartanxtec_soundlatch_w);
DECLARE_WRITE8_MEMBER(a801_w);
DECLARE_WRITE8_MEMBER(sound_irq_ack);
DECLARE_WRITE8_MEMBER(irq_ack);
@@ -163,12 +162,6 @@ uint32_t spartanxtec_state::screen_update_spartanxtec(screen_device &screen, bit
-WRITE8_MEMBER(spartanxtec_state::spartanxtec_soundlatch_w)
-{
- m_soundlatch->write(space, 0, data);
- m_audiocpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
-}
-
WRITE8_MEMBER(spartanxtec_state::a801_w)
{
if (data != 0xf0) printf("a801_w %02x\n", data);
@@ -184,7 +177,7 @@ static ADDRESS_MAP_START( spartanxtec_map, AS_PROGRAM, 8, spartanxtec_state )
AM_RANGE(0x0000, 0x7fff) AM_ROM
AM_RANGE(0xc400, 0xc7ff) AM_RAM AM_SHARE("spriteram")
- AM_RANGE(0x8000, 0x8000) AM_WRITE(spartanxtec_soundlatch_w)
+ AM_RANGE(0x8000, 0x8000) AM_DEVWRITE("soundlatch", generic_latch_8_device, write)
AM_RANGE(0x8100, 0x8100) AM_READ_PORT("DSW1")
AM_RANGE(0x8101, 0x8101) AM_READ_PORT("DSW2")
@@ -388,6 +381,7 @@ static MACHINE_CONFIG_START( spartanxtec )
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
+ MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI))
MCFG_SOUND_ADD("ay1", AY8912, 1000000)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)