Previous 15994 Revisions Next

r9390 Friday 15th October, 2010 at 11:26:18 UTC by Angelo Salese
[Mega CD]: added RF5C164 sound using RF5C68 core, doesn't sync up correctly on SegaCD, but otherwise sounds reasonable. Maybe the clock is wrong.
[src/mame/drivers]megadriv.c

src/mame/drivers/megadriv.c
r9389r9390
274274#ifdef MESS
275275#include "devices/chd_cd.h"
276276#endif
277#include "sound/rf5c68.h"
277278
278279#define MEGADRIV_VDP_VRAM(address) megadrive_vdp_vram[(address)&0x7fff]
279280
r9389r9390
55725573
55735574   AM_RANGE(0xfe0000, 0xfe3fff) AM_RAM // backup RAM, odd bytes only!
55745575
5575   AM_RANGE(0xff0000, 0xff7fff) AM_RAM // PCM, RF5C164
5576   AM_RANGE(0xff0000, 0xff001f) AM_DEVWRITE8("rfsnd", rf5c68_w, 0x00ff)  // PCM, RF5C164
5577   AM_RANGE(0xff2000, 0xff3fff) AM_DEVREADWRITE8("rfsnd", rf5c68_mem_r, rf5c68_mem_w,0x00ff)  // PCM, RF5C164
5578   
5579   
55765580   AM_RANGE(0xff8000 ,0xff8001) AM_READWRITE(segacd_sub_led_ready_r, segacd_sub_led_ready_w)
55775581   AM_RANGE(0xff8002 ,0xff8003) AM_READWRITE(segacd_sub_memory_mode_r, segacd_sub_memory_mode_w)
55785582
r9389r9390
85428546   MDRV_SOUND_ROUTE( 0, "lspeaker", 1.00 )
85438547   MDRV_SOUND_ROUTE( 1, "rspeaker", 1.00 )
85448548
8549   MDRV_SOUND_ADD("rfsnd", RF5C68, SEGACD_CLOCK) // RF5C164!
8550   MDRV_SOUND_ROUTE( 0, "lspeaker", 0.25 )
8551   MDRV_SOUND_ROUTE( 1, "rspeaker", 0.25 )
8552
85458553   #ifdef MESS
85468554   MDRV_CDROM_ADD( "cdrom" )
85478555   #endif
r9389r9390
85568564   MDRV_SOUND_ROUTE( 0, "lspeaker", 1.00 )
85578565   MDRV_SOUND_ROUTE( 1, "rspeaker", 1.00 )
85588566
8567   MDRV_SOUND_ADD("rfsnd", RF5C68, SEGACD_CLOCK) // RF5C164
8568   MDRV_SOUND_ROUTE( 0, "lspeaker", 0.25 )
8569   MDRV_SOUND_ROUTE( 1, "rspeaker", 0.25 )
8570
85598571   #ifdef MESS
85608572   MDRV_CDROM_ADD( "cdrom" )
85618573   #endif

Previous 15994 Revisions Next


© 1998-2018 The MESS Team