summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/pc9801_26.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/pc9801_26.c')
-rw-r--r--src/mess/machine/pc9801_26.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mess/machine/pc9801_26.c b/src/mess/machine/pc9801_26.c
index a63f7103358..9b3bb88b158 100644
--- a/src/mess/machine/pc9801_26.c
+++ b/src/mess/machine/pc9801_26.c
@@ -43,21 +43,14 @@ WRITE_LINE_MEMBER(pc9801_26_device::pc9801_sound_irq)
machine().device<pic8259_device>(":pic8259_slave")->ir4_w(state);
}
-static const ay8910_interface ay8910_config =
-{
- AY8910_LEGACY_OUTPUT,
- AY8910_DEFAULT_LOADS,
- DEVCB_DEVICE_MEMBER(DEVICE_SELF_OWNER, pc9801_26_device,opn_porta_r),
- DEVCB_NULL,//(pc9801_state,opn_portb_r),
- DEVCB_NULL,//(pc9801_state,opn_porta_w),
- DEVCB_DEVICE_MEMBER(DEVICE_SELF_OWNER, pc9801_26_device,opn_portb_w),
-};
-
static MACHINE_CONFIG_FRAGMENT( pc9801_26_config )
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("opn", YM2203, MAIN_CLOCK_X1*2) // unknown clock / divider
MCFG_YM2203_IRQ_HANDLER(WRITELINE(pc9801_26_device, pc9801_sound_irq))
- MCFG_YM2203_AY8910_INTF(&ay8910_config)
+ MCFG_AY8910_PORT_A_READ_CB(READ8(pc9801_26_device, opn_porta_r))
+ //MCFG_AY8910_PORT_B_READ_CB(READ8(pc9801_state, opn_portb_r))
+ //MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(pc9801_state, opn_porta_w))
+ MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(pc9801_26_device, opn_portb_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
MACHINE_CONFIG_END