summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/crshrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/crshrace.c')
-rw-r--r--src/mame/drivers/crshrace.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mame/drivers/crshrace.c b/src/mame/drivers/crshrace.c
index 093f063313b..6bde5ca5c61 100644
--- a/src/mame/drivers/crshrace.c
+++ b/src/mame/drivers/crshrace.c
@@ -237,10 +237,7 @@ static ADDRESS_MAP_START( sound_io_map, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE(0x00, 0x00) AM_WRITE(crshrace_sh_bankswitch_w)
AM_RANGE(0x04, 0x04) AM_READWRITE(soundlatch_r, pending_command_clear_w)
- AM_RANGE(0x08, 0x08) AM_READWRITE(ym2610_status_port_0_a_r, ym2610_control_port_0_a_w)
- AM_RANGE(0x09, 0x09) AM_WRITE(ym2610_data_port_0_a_w)
- AM_RANGE(0x0a, 0x0a) AM_READWRITE(ym2610_status_port_0_b_r, ym2610_control_port_0_b_w)
- AM_RANGE(0x0b, 0x0b) AM_WRITE(ym2610_data_port_0_b_w)
+ AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE(SOUND, "ym", ym2610_r, ym2610_w)
ADDRESS_MAP_END
@@ -436,9 +433,9 @@ GFXDECODE_END
-static void irqhandler(running_machine *machine, int irq)
+static void irqhandler(const device_config *device, int irq)
{
- cpu_set_input_line(machine->cpu[1],0,irq ? ASSERT_LINE : CLEAR_LINE);
+ cpu_set_input_line(device->machine->cpu[1],0,irq ? ASSERT_LINE : CLEAR_LINE);
}
static const ym2610_interface ym2610_config =