summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/pushman.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pushman.c')
-rw-r--r--src/mame/drivers/pushman.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mame/drivers/pushman.c b/src/mame/drivers/pushman.c
index dcb20612313..73ece8aa310 100644
--- a/src/mame/drivers/pushman.c
+++ b/src/mame/drivers/pushman.c
@@ -195,10 +195,8 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( sound_io_map, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x00, 0x00) AM_WRITE(ym2203_control_port_0_w)
- AM_RANGE(0x01, 0x01) AM_WRITE(ym2203_write_port_0_w)
- AM_RANGE(0x80, 0x80) AM_WRITE(ym2203_control_port_1_w)
- AM_RANGE(0x81, 0x81) AM_WRITE(ym2203_write_port_1_w)
+ AM_RANGE(0x00, 0x01) AM_DEVWRITE(SOUND, "ym1", ym2203_w)
+ AM_RANGE(0x80, 0x81) AM_DEVWRITE(SOUND, "ym2", ym2203_w)
ADDRESS_MAP_END
static ADDRESS_MAP_START( bballs_readmem, ADDRESS_SPACE_PROGRAM, 16 )
@@ -433,9 +431,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 ym2203_interface ym2203_config =
@@ -443,7 +441,7 @@ static const ym2203_interface ym2203_config =
{
AY8910_LEGACY_OUTPUT,
AY8910_DEFAULT_LOADS,
- NULL, NULL, NULL, NULL,
+ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL,
},
irqhandler
};