summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/bbusters.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/bbusters.c')
-rw-r--r--src/mame/drivers/bbusters.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/mame/drivers/bbusters.c b/src/mame/drivers/bbusters.c
index a335f1b8605..0be0ebc6fef 100644
--- a/src/mame/drivers/bbusters.c
+++ b/src/mame/drivers/bbusters.c
@@ -378,19 +378,13 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( sound_portmap, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x00, 0x00) AM_READWRITE(ym2610_status_port_0_a_r, ym2610_control_port_0_a_w)
- AM_RANGE(0x01, 0x01) AM_WRITE(ym2610_data_port_0_a_w)
- AM_RANGE(0x02, 0x02) AM_READWRITE(ym2610_status_port_0_b_r, ym2610_control_port_0_b_w)
- AM_RANGE(0x03, 0x03) AM_WRITE(ym2610_data_port_0_b_w)
+ AM_RANGE(0x00, 0x03) AM_DEVREADWRITE(SOUND, "ym", ym2610_r, ym2610_w)
AM_RANGE(0xc0, 0xc1) AM_WRITE(SMH_NOP) /* -> Main CPU */
ADDRESS_MAP_END
static ADDRESS_MAP_START( sounda_portmap, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x00, 0x00) AM_READWRITE(ym2608_status_port_0_a_r, ym2608_control_port_0_a_w)
- AM_RANGE(0x01, 0x01) AM_WRITE(ym2608_data_port_0_a_w)
- AM_RANGE(0x02, 0x02) AM_READWRITE(ym2608_status_port_0_b_r, ym2608_control_port_0_b_w)
- AM_RANGE(0x03, 0x03) AM_WRITE(ym2608_data_port_0_b_w)
+ AM_RANGE(0x00, 0x03) AM_DEVREADWRITE(SOUND, "ym", ym2608_r, ym2608_w)
AM_RANGE(0xc0, 0xc1) AM_WRITE(SMH_NOP) /* -> Main CPU */
ADDRESS_MAP_END
@@ -626,9 +620,9 @@ GFXDECODE_END
/******************************************************************************/
-static void sound_irq( running_machine *machine, int irq )
+static void sound_irq( 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 ym2608_interface ym2608_config =
@@ -636,7 +630,7 @@ static const ym2608_interface ym2608_config =
{
AY8910_LEGACY_OUTPUT | AY8910_SINGLE_OUTPUT,
AY8910_DEFAULT_LOADS,
- NULL, NULL, NULL, NULL
+ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL
},
sound_irq
};