summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ambush.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ambush.c')
-rw-r--r--src/mame/drivers/ambush.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/ambush.c b/src/mame/drivers/ambush.c
index f17861ac88a..5a158c7e052 100644
--- a/src/mame/drivers/ambush.c
+++ b/src/mame/drivers/ambush.c
@@ -75,10 +75,10 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( main_portmap, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x00, 0x00) AM_READWRITE(ay8910_read_port_0_r, ay8910_control_port_0_w)
- AM_RANGE(0x01, 0x01) AM_WRITE(ay8910_write_port_0_w)
- AM_RANGE(0x80, 0x80) AM_READWRITE(ay8910_read_port_1_r, ay8910_control_port_1_w)
- AM_RANGE(0x81, 0x81) AM_WRITE(ay8910_write_port_1_w)
+ AM_RANGE(0x00, 0x00) AM_DEVREADWRITE(SOUND, "ay1", ay8910_r, ay8910_address_w)
+ AM_RANGE(0x01, 0x01) AM_DEVWRITE(SOUND, "ay1", ay8910_data_w)
+ AM_RANGE(0x80, 0x80) AM_DEVREADWRITE(SOUND, "ay2", ay8910_r, ay8910_address_w)
+ AM_RANGE(0x81, 0x81) AM_DEVWRITE(SOUND, "ay2", ay8910_data_w)
ADDRESS_MAP_END
@@ -179,20 +179,20 @@ static const ay8910_interface ay8910_interface_1 =
{
AY8910_LEGACY_OUTPUT,
AY8910_DEFAULT_LOADS,
- input_port_0_r,
- NULL,
- NULL,
- NULL
+ DEVCB_INPUT_PORT("SYSTEM"),
+ DEVCB_NULL,
+ DEVCB_NULL,
+ DEVCB_NULL
};
static const ay8910_interface ay8910_interface_2 =
{
AY8910_LEGACY_OUTPUT,
AY8910_DEFAULT_LOADS,
- input_port_1_r,
- NULL,
- NULL,
- NULL
+ DEVCB_INPUT_PORT("INPUTS"),
+ DEVCB_NULL,
+ DEVCB_NULL,
+ DEVCB_NULL
};