summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/rcasino.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/rcasino.c')
-rw-r--r--src/mame/drivers/rcasino.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mame/drivers/rcasino.c b/src/mame/drivers/rcasino.c
index fda007fa2f5..8c923d74ec4 100644
--- a/src/mame/drivers/rcasino.c
+++ b/src/mame/drivers/rcasino.c
@@ -178,9 +178,8 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( rcasino_io_map, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x01, 0x01) AM_READ(ay8910_read_port_0_r)
- AM_RANGE(0x02, 0x02) AM_WRITE(ay8910_write_port_0_w)
- AM_RANGE(0x03, 0x03) AM_WRITE(ay8910_control_port_0_w)
+ AM_RANGE(0x01, 0x01) AM_DEVREAD(SOUND, "ay", ay8910_r)
+ AM_RANGE(0x02, 0x03) AM_DEVWRITE(SOUND, "ay", ay8910_data_address_w)
AM_RANGE(0x10, 0x10) AM_READ_PORT("IN0") AM_WRITE(rcasino_port_10_w)
// AM_RANGE(0x11, 0x11) AM_READ_PORT("IN1") AM_WRITE(rcasino_port_11_w)
AM_RANGE(0x11, 0x11) AM_READWRITE(rcasino_port_11_r, rcasino_port_11_w)
@@ -288,10 +287,10 @@ static const ay8910_interface ay8910_config =
{
AY8910_LEGACY_OUTPUT,
AY8910_DEFAULT_LOADS,
- input_port_2_r, // DSW1
- input_port_3_r, // DSW2
- 0,
- 0
+ DEVCB_INPUT_PORT("DSW1"),
+ DEVCB_INPUT_PORT("DSW2"),
+ DEVCB_NULL,
+ DEVCB_NULL
};
static MACHINE_DRIVER_START( rcasino )