summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/pitnrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pitnrun.c')
-rw-r--r--src/mame/drivers/pitnrun.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mame/drivers/pitnrun.c b/src/mame/drivers/pitnrun.c
index 2a74d13d0aa..4a24c79c18c 100644
--- a/src/mame/drivers/pitnrun.c
+++ b/src/mame/drivers/pitnrun.c
@@ -131,10 +131,9 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( sound_io_map, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE(0x00, 0x00) AM_WRITE(soundlatch_clear_w)
- AM_RANGE(0x8c, 0x8c) AM_WRITE(ay8910_control_port_1_w)
- AM_RANGE(0x8d, 0x8d) AM_WRITE(ay8910_write_port_1_w)
- AM_RANGE(0x8e, 0x8e) AM_WRITE(ay8910_control_port_0_w)
- AM_RANGE(0x8f, 0x8f) AM_READWRITE(ay8910_read_port_0_r, ay8910_write_port_0_w)
+ AM_RANGE(0x8c, 0x8d) AM_DEVWRITE(SOUND, "ay2", ay8910_address_data_w)
+ AM_RANGE(0x8e, 0x8f) AM_DEVWRITE(SOUND, "ay1", ay8910_address_data_w)
+ AM_RANGE(0x8f, 0x8f) AM_DEVREAD(SOUND, "ay1", ay8910_r)
AM_RANGE(0x90, 0x96) AM_WRITE(SMH_NOP)
AM_RANGE(0x97, 0x97) AM_WRITE(SMH_NOP)
AM_RANGE(0x98, 0x98) AM_WRITE(SMH_NOP)
@@ -241,10 +240,10 @@ static const ay8910_interface ay8910_config =
{
AY8910_LEGACY_OUTPUT,
AY8910_DEFAULT_LOADS,
- soundlatch_r,
- soundlatch_r,
- NULL,
- NULL
+ DEVCB_MEMORY_HANDLER("audio", PROGRAM, soundlatch_r),
+ DEVCB_MEMORY_HANDLER("audio", PROGRAM, soundlatch_r),
+ DEVCB_NULL,
+ DEVCB_NULL
};
static GFXDECODE_START( pitnrun )