summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ksayakyu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ksayakyu.c')
-rw-r--r--src/mame/drivers/ksayakyu.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/mame/drivers/ksayakyu.c b/src/mame/drivers/ksayakyu.c
index f32a831be37..2973d2c2527 100644
--- a/src/mame/drivers/ksayakyu.c
+++ b/src/mame/drivers/ksayakyu.c
@@ -126,11 +126,9 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( soundcpu_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0x0000, 0x7fff) AM_ROM
AM_RANGE(0x8000, 0x83ff) AM_RAM
- AM_RANGE(0xa001, 0xa001) AM_READ(ay8910_read_port_0_r)
- AM_RANGE(0xa002, 0xa002) AM_WRITE(ay8910_write_port_0_w)
- AM_RANGE(0xa003, 0xa003) AM_WRITE(ay8910_control_port_0_w)
- AM_RANGE(0xa006, 0xa006) AM_WRITE(ay8910_write_port_1_w)
- AM_RANGE(0xa007, 0xa007) AM_WRITE(ay8910_control_port_1_w)
+ AM_RANGE(0xa001, 0xa001) AM_DEVREAD(SOUND, "ay1", ay8910_r)
+ AM_RANGE(0xa002, 0xa003) AM_DEVWRITE(SOUND, "ay1", ay8910_data_address_w)
+ AM_RANGE(0xa006, 0xa006) AM_DEVWRITE(SOUND, "ay2", ay8910_data_address_w)
AM_RANGE(0xa008, 0xa008) AM_WRITE(SMH_NOP)
AM_RANGE(0xa00c, 0xa00c) AM_WRITE(tomaincpu_w)
AM_RANGE(0xa010, 0xa010) AM_WRITE(SMH_NOP)
@@ -174,7 +172,7 @@ static INPUT_PORTS_START( ksayakyu )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN1 )
INPUT_PORTS_END
-static WRITE8_HANDLER(dummy_w)
+static WRITE8_DEVICE_HANDLER(dummy_w)
{
//DAC ? communication with main cpu ?
}
@@ -183,20 +181,20 @@ static const ay8910_interface ay8910_interface_1 =
{
AY8910_LEGACY_OUTPUT,
AY8910_DEFAULT_LOADS,
- soundlatch_r,
- NULL,
- NULL,
- dummy_w
+ DEVCB_MEMORY_HANDLER("audio", PROGRAM, soundlatch_r),
+ DEVCB_NULL,
+ DEVCB_NULL,
+ DEVCB_HANDLER(dummy_w)
};
static const ay8910_interface ay8910_interface_2 =
{
AY8910_LEGACY_OUTPUT,
AY8910_DEFAULT_LOADS,
- NULL,
- NULL,
- dummy_w,
- dummy_w
+ DEVCB_NULL,
+ DEVCB_NULL,
+ DEVCB_HANDLER(dummy_w),
+ DEVCB_HANDLER(dummy_w)
};
static const gfx_layout charlayout =