summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/apricotp.c
diff options
context:
space:
mode:
author Scott Stone <tafoid@users.noreply.github.com>2012-08-29 18:04:27 +0000
committer Scott Stone <tafoid@users.noreply.github.com>2012-08-29 18:04:27 +0000
commitd01ca818997cd94860b424b9c147c07983ebc1ac (patch)
treea2358cd211a413968466dab23c0796279c51b5ee /src/mess/drivers/apricotp.c
parentc844f955075bada83b4eea4d509ba08a38fec883 (diff)
(MESS) Continuing new device implementation for SN76496 and clones - apricot.c, apricotp.c, coleco.c, m5.c, mz700.c, pc.c, pv2000.c, rx78.c, sms.c, tutor.c [Osso]
Diffstat (limited to 'src/mess/drivers/apricotp.c')
-rw-r--r--src/mess/drivers/apricotp.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/mess/drivers/apricotp.c b/src/mess/drivers/apricotp.c
index 01b782750e2..cc09df9bbc6 100644
--- a/src/mess/drivers/apricotp.c
+++ b/src/mess/drivers/apricotp.c
@@ -318,7 +318,7 @@ static ADDRESS_MAP_START( fp_io, AS_IO, 16, fp_state )
AM_RANGE(0x020, 0x021) AM_DEVWRITE8(CENTRONICS_TAG, centronics_device, write, 0x00ff)
AM_RANGE(0x022, 0x023) AM_WRITE8(pint_clr_w, 0x00ff)
AM_RANGE(0x024, 0x025) AM_READ8(prtr_snd_r, 0x00ff)
- AM_RANGE(0x026, 0x027) AM_DEVWRITE8_LEGACY(SN76489AN_TAG, sn76496_w, 0x00ff)
+ AM_RANGE(0x026, 0x027) AM_DEVWRITE8(SN76489AN_TAG, sn76489a_new_device, write, 0x00ff)
AM_RANGE(0x028, 0x029) AM_WRITE8(contrast_w, 0x00ff)
AM_RANGE(0x02a, 0x02b) AM_WRITE8(palette_w, 0x00ff)
AM_RANGE(0x02e, 0x02f) AM_WRITE(video_w)
@@ -529,6 +529,22 @@ static const centronics_interface centronics_intf =
};
+/*************************************
+ *
+ * Sound interface
+ *
+ *************************************/
+
+
+//-------------------------------------------------
+// sn76496_config psg_intf
+//-------------------------------------------------
+
+static const sn76496_config psg_intf =
+{
+ DEVCB_NULL
+};
+
//**************************************************************************
// MACHINE INITIALIZATION
@@ -601,7 +617,8 @@ static MACHINE_CONFIG_START( fp, fp_state )
// sound hardware
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD(SN76489AN_TAG, SN76489A, 2000000)
+ MCFG_SOUND_ADD(SN76489AN_TAG, SN76489A_NEW, 2000000)
+ MCFG_SOUND_CONFIG(psg_intf)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
/* Devices */