summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/twincobr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/twincobr.c')
-rw-r--r--src/mame/drivers/twincobr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mame/drivers/twincobr.c b/src/mame/drivers/twincobr.c
index d4fd41af7bf..80eaf2f9702 100644
--- a/src/mame/drivers/twincobr.c
+++ b/src/mame/drivers/twincobr.c
@@ -237,8 +237,7 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( sound_io_map, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x00, 0x00) AM_READWRITE(ym3812_status_port_0_r, ym3812_control_port_0_w)
- AM_RANGE(0x01, 0x01) AM_WRITE(ym3812_write_port_0_w)
+ AM_RANGE(0x00, 0x01) AM_DEVREADWRITE(SOUND, "ym", ym3812_r, ym3812_w)
AM_RANGE(0x10, 0x10) AM_READ_PORT("SYSTEM") /* Twin Cobra - Coin/Start */
AM_RANGE(0x20, 0x20) AM_WRITE(twincobr_coin_w) /* Twin Cobra coin count-lockout */
AM_RANGE(0x40, 0x40) AM_READ_PORT("DSWA")
@@ -689,9 +688,9 @@ GFXDECODE_END
/* handler called by the 3812 emulator when the internal timers cause an IRQ */
-static void irqhandler(running_machine *machine, int linestate)
+static void irqhandler(const device_config *device, int linestate)
{
- cpu_set_input_line(machine->cpu[1],0,linestate);
+ cpu_set_input_line(device->machine->cpu[1],0,linestate);
}
static const ym3812_interface ym3812_config =