summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/actfancr.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2016-05-20 07:24:06 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2016-05-20 07:24:06 +0200
commit6711db7107329da894754887ec4ab426945455cb (patch)
tree659303ba9a1fbd0a244dbe637fa9794f03fe0128 /src/mame/drivers/actfancr.cpp
parentec1f9b948c496535c89eaa70e65f38ae6ab34f10 (diff)
More gen_latch (nw)
Diffstat (limited to 'src/mame/drivers/actfancr.cpp')
-rw-r--r--src/mame/drivers/actfancr.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mame/drivers/actfancr.cpp b/src/mame/drivers/actfancr.cpp
index 6ce12f09413..3f24105bcff 100644
--- a/src/mame/drivers/actfancr.cpp
+++ b/src/mame/drivers/actfancr.cpp
@@ -55,7 +55,7 @@ READ8_MEMBER(actfancr_state::triothep_control_r)
WRITE8_MEMBER(actfancr_state::actfancr_sound_w)
{
- soundlatch_byte_w(space, 0, data & 0xff);
+ m_soundlatch->write(space, 0, data & 0xff);
m_audiocpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
}
@@ -117,7 +117,7 @@ static ADDRESS_MAP_START( dec0_s_map, AS_PROGRAM, 8, actfancr_state )
AM_RANGE(0x0000, 0x07ff) AM_RAM
AM_RANGE(0x0800, 0x0801) AM_DEVWRITE("ym1", ym2203_device, write)
AM_RANGE(0x1000, 0x1001) AM_DEVWRITE("ym2", ym3812_device, write)
- AM_RANGE(0x3000, 0x3000) AM_READ(soundlatch_byte_r)
+ AM_RANGE(0x3000, 0x3000) AM_DEVREAD("soundlatch", generic_latch_8_device, read)
AM_RANGE(0x3800, 0x3800) AM_DEVREADWRITE("oki", okim6295_device, read, write)
AM_RANGE(0x4000, 0xffff) AM_ROM
ADDRESS_MAP_END
@@ -325,6 +325,8 @@ static MACHINE_CONFIG_START( actfancr, actfancr_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
+ MCFG_GENERIC_LATCH_8_ADD("soundlatch")
+
MCFG_SOUND_ADD("ym1", YM2203, 1500000)
MCFG_SOUND_ROUTE(0, "mono", 0.90)
MCFG_SOUND_ROUTE(1, "mono", 0.90)
@@ -380,6 +382,8 @@ static MACHINE_CONFIG_START( triothep, actfancr_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
+ MCFG_GENERIC_LATCH_8_ADD("soundlatch")
+
MCFG_SOUND_ADD("ym1", YM2203, XTAL_12MHz/8) /* verified on pcb */
MCFG_SOUND_ROUTE(0, "mono", 0.90)
MCFG_SOUND_ROUTE(1, "mono", 0.90)