summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/tp84.c
diff options
context:
space:
mode:
authorGravatarGravatar Scott Stone <tafoid@users.noreply.github.com>2012-08-23 13:27:45 +0000
committerGravatarGravatar Scott Stone <tafoid@users.noreply.github.com>2012-08-23 13:27:45 +0000
commite1cd97408c570afcc62fcd299667ec40a2cc4049 (patch) (github)
tree9a45cf04e5c390f5f4a51254c41b8920c567cdad /src/mame/drivers/tp84.c
parent7d5c6e56647fb0423442e3a3a601627df8db6adf (diff)
downloadmame-e1cd97408c570afcc62fcd299667ec40a2cc4049.tar.bz2
mame-e1cd97408c570afcc62fcd299667ec40a2cc4049.zip
Continuing new device implementation for SN76496 and clones - mrdo.c, pachifev.c, tp84.c [Osso]
Diffstat (limited to 'src/mame/drivers/tp84.c')
-rw-r--r--src/mame/drivers/tp84.c32
1 files changed, 26 insertions, 6 deletions
diff --git a/src/mame/drivers/tp84.c b/src/mame/drivers/tp84.c
index f7607c93361..65595c38644 100644
--- a/src/mame/drivers/tp84.c
+++ b/src/mame/drivers/tp84.c
@@ -193,9 +193,9 @@ static ADDRESS_MAP_START( audio_map, AS_PROGRAM, 8, tp84_state )
AM_RANGE(0x8000, 0x8000) AM_READ(tp84_sh_timer_r)
AM_RANGE(0xa000, 0xa1ff) AM_WRITE(tp84_filter_w)
AM_RANGE(0xc000, 0xc000) AM_WRITENOP
- AM_RANGE(0xc001, 0xc001) AM_DEVWRITE_LEGACY("sn1", sn76496_w)
- AM_RANGE(0xc003, 0xc003) AM_DEVWRITE_LEGACY("sn2", sn76496_w)
- AM_RANGE(0xc004, 0xc004) AM_DEVWRITE_LEGACY("sn3", sn76496_w)
+ AM_RANGE(0xc001, 0xc001) AM_DEVWRITE("y2404_1", y2404_new_device, write)
+ AM_RANGE(0xc003, 0xc003) AM_DEVWRITE("y2404_2", y2404_new_device, write)
+ AM_RANGE(0xc004, 0xc004) AM_DEVWRITE("y2404_3", y2404_new_device, write)
ADDRESS_MAP_END
@@ -288,6 +288,23 @@ static INTERRUPT_GEN( sub_vblank_irq )
}
+/*************************************
+ *
+ * Sound interface
+ *
+ *************************************/
+
+
+//-------------------------------------------------
+// sn76496_config psg_intf
+//-------------------------------------------------
+
+static const sn76496_config psg_intf =
+{
+ DEVCB_NULL
+};
+
+
static MACHINE_CONFIG_START( tp84, tp84_state )
/* basic machine hardware */
@@ -324,14 +341,17 @@ static MACHINE_CONFIG_START( tp84, tp84_state )
/* audio hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("sn1", Y2404, XTAL_14_31818MHz/8) /* verified on pcb */
+ MCFG_SOUND_ADD("y2404_1", Y2404_NEW, XTAL_14_31818MHz/8) /* verified on pcb */
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter1", 0.75)
+ MCFG_SOUND_CONFIG(psg_intf)
- MCFG_SOUND_ADD("sn2", Y2404, XTAL_14_31818MHz/8) /* verified on pcb */
+ MCFG_SOUND_ADD("y2404_2", Y2404_NEW, XTAL_14_31818MHz/8) /* verified on pcb */
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter2", 0.75)
+ MCFG_SOUND_CONFIG(psg_intf)
- MCFG_SOUND_ADD("sn3", Y2404, XTAL_14_31818MHz/8) /* verified on pcb */
+ MCFG_SOUND_ADD("y2404_3", Y2404_NEW, XTAL_14_31818MHz/8) /* verified on pcb */
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter3", 0.75)
+ MCFG_SOUND_CONFIG(psg_intf)
MCFG_SOUND_ADD("filter1", FILTER_RC, 0)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)