summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/xxmissio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/xxmissio.c')
-rw-r--r--src/mame/drivers/xxmissio.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/src/mame/drivers/xxmissio.c b/src/mame/drivers/xxmissio.c
index 72157105d14..4d247909568 100644
--- a/src/mame/drivers/xxmissio.c
+++ b/src/mame/drivers/xxmissio.c
@@ -253,26 +253,6 @@ GFXDECODE_END
/****************************************************************************/
-static const ay8910_interface ay8910_config_1 =
-{
- AY8910_LEGACY_OUTPUT,
- AY8910_DEFAULT_LOADS,
- DEVCB_INPUT_PORT("DSW1"),
- DEVCB_INPUT_PORT("DSW2"),
- DEVCB_NULL,
- DEVCB_NULL
-};
-
-static const ay8910_interface ay8910_config_2 =
-{
- AY8910_LEGACY_OUTPUT,
- AY8910_DEFAULT_LOADS,
- DEVCB_NULL,
- DEVCB_NULL,
- DEVCB_DRIVER_MEMBER(xxmissio_state, xxmissio_scroll_x_w),
- DEVCB_DRIVER_MEMBER(xxmissio_state, xxmissio_scroll_y_w)
-};
-
static MACHINE_CONFIG_START( xxmissio, xxmissio_state )
/* basic machine hardware */
@@ -305,14 +285,16 @@ static MACHINE_CONFIG_START( xxmissio, xxmissio_state )
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("ym1", YM2203, 12000000/8)
- MCFG_YM2203_AY8910_INTF(&ay8910_config_1)
+ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1"))
+ MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW2"))
MCFG_SOUND_ROUTE(0, "mono", 0.15)
MCFG_SOUND_ROUTE(1, "mono", 0.15)
MCFG_SOUND_ROUTE(2, "mono", 0.15)
MCFG_SOUND_ROUTE(3, "mono", 0.40)
MCFG_SOUND_ADD("ym2", YM2203, 12000000/8)
- MCFG_YM2203_AY8910_INTF(&ay8910_config_2)
+ MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(xxmissio_state, xxmissio_scroll_x_w))
+ MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(xxmissio_state, xxmissio_scroll_y_w))
MCFG_SOUND_ROUTE(0, "mono", 0.15)
MCFG_SOUND_ROUTE(1, "mono", 0.15)
MCFG_SOUND_ROUTE(2, "mono", 0.15)