Implemented address readback position registers in rf5c68 sound core [Angelo Salese]

This commit is contained in:
Angelo Salese 2011-02-12 21:05:47 +00:00
parent 5f3c7b756a
commit 84a312758a
3 changed files with 9 additions and 0 deletions

View File

@ -161,6 +161,13 @@ static DEVICE_START( rf5c68 )
/* RF5C68 write register */
/************************************************/
READ8_DEVICE_HANDLER( rf5c68_r )
{
rf5c68_state *chip = get_safe_token(device);
return (chip->chan[(offset & 0x1c) >> 2].addr) >> ((offset & 3) >> 8);
}
WRITE8_DEVICE_HANDLER( rf5c68_w )
{
rf5c68_state *chip = get_safe_token(device);

View File

@ -10,6 +10,7 @@
#include "devlegcy.h"
/******************************************/
READ8_DEVICE_HANDLER( rf5c68_r );
WRITE8_DEVICE_HANDLER( rf5c68_w );
READ8_DEVICE_HANDLER( rf5c68_mem_r );

View File

@ -6421,6 +6421,7 @@ static ADDRESS_MAP_START( segacd_map, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0xfe0000, 0xfe3fff) AM_RAM // backup RAM, odd bytes only!
AM_RANGE(0xff0000, 0xff001f) AM_DEVWRITE8("rfsnd", rf5c68_w, 0x00ff) // PCM, RF5C164
AM_RANGE(0xff0020, 0xff003f) AM_DEVREAD8("rfsnd", rf5c68_r, 0xffff)
AM_RANGE(0xff2000, 0xff3fff) AM_DEVREADWRITE8("rfsnd", rf5c68_mem_r, rf5c68_mem_w,0x00ff) // PCM, RF5C164