summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/coleco.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/coleco.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/coleco.c')
-rw-r--r--src/mess/drivers/coleco.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/mess/drivers/coleco.c b/src/mess/drivers/coleco.c
index dbe7f080b1d..e6062f74cac 100644
--- a/src/mess/drivers/coleco.c
+++ b/src/mess/drivers/coleco.c
@@ -99,7 +99,7 @@ static ADDRESS_MAP_START( coleco_io_map, AS_IO, 8, coleco_state )
AM_RANGE(0xa0, 0xa0) AM_MIRROR(0x1e) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write)
AM_RANGE(0xa1, 0xa1) AM_MIRROR(0x1e) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write)
AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x1f) AM_WRITE(paddle_on_w)
- AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1f) AM_DEVWRITE_LEGACY("sn76489a", sn76496_w)
+ AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1f) AM_DEVWRITE("sn76489a", sn76489a_new_device, write)
AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1d) AM_READ(paddle_1_r)
AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x1d) AM_READ(paddle_2_r)
ADDRESS_MAP_END
@@ -116,7 +116,7 @@ static ADDRESS_MAP_START( czz50_io_map, AS_IO, 8, coleco_state )
AM_RANGE(0xa0, 0xa0) AM_MIRROR(0x1e) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write)
AM_RANGE(0xa1, 0xa1) AM_MIRROR(0x1e) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write)
AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x1f) AM_WRITE(paddle_on_w)
- AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1f) AM_DEVWRITE_LEGACY("sn76489a", sn76496_w)
+ AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1f) AM_DEVWRITE("sn76489a", sn76489a_new_device, write)
AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1d) AM_READ(paddle_1_r)
AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x1d) AM_READ(paddle_2_r)
ADDRESS_MAP_END
@@ -248,6 +248,17 @@ static TMS9928A_INTERFACE(coleco_tms9928a_interface)
DEVCB_LINE(coleco_vdp_interrupt)
};
+
+//-------------------------------------------------
+// sn76496_config psg_intf
+//-------------------------------------------------
+
+static const sn76496_config psg_intf =
+{
+ DEVCB_NULL
+};
+
+
void coleco_state::machine_start()
{
// init paddles
@@ -319,8 +330,9 @@ static MACHINE_CONFIG_START( coleco, coleco_state )
// sound hardware
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("sn76489a", SN76489A, XTAL_7_15909MHz/2) /* 3.579545 MHz */
+ MCFG_SOUND_ADD("sn76489a", SN76489A_NEW, XTAL_7_15909MHz/2) /* 3.579545 MHz */
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
+ MCFG_SOUND_CONFIG(psg_intf)
/* cartridge */
MCFG_CARTSLOT_ADD("cart")
@@ -347,8 +359,9 @@ static MACHINE_CONFIG_START( czz50, coleco_state )
// sound hardware
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("sn76489a", SN76489A, XTAL_7_15909MHz/2) // ???
+ MCFG_SOUND_ADD("sn76489a", SN76489A_NEW, XTAL_7_15909MHz/2) // ???
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
+ MCFG_SOUND_CONFIG(psg_intf)
/* cartridge */
MCFG_CARTSLOT_ADD("cart")