summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/segaybd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/segaybd.cpp')
-rw-r--r--src/mame/drivers/segaybd.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/segaybd.cpp b/src/mame/drivers/segaybd.cpp
index 51e0a9e4d1c..c28e78354c4 100644
--- a/src/mame/drivers/segaybd.cpp
+++ b/src/mame/drivers/segaybd.cpp
@@ -1292,15 +1292,15 @@ MACHINE_CONFIG_START(segaybd_state::yboard)
MCFG_MB3773_ADD("watchdog") // IC95
- MCFG_DEVICE_ADD("io", SEGA_315_5296, MASTER_CLOCK/8)
- MCFG_315_5296_IN_PORTA_CB(IOPORT("P1"))
- MCFG_315_5296_IN_PORTB_CB(IOPORT("GENERAL"))
- MCFG_315_5296_IN_PORTC_CB(IOPORT("LIMITSW"))
- MCFG_315_5296_OUT_PORTD_CB(WRITE8(*this, segaybd_state, output1_w))
- MCFG_315_5296_OUT_PORTE_CB(WRITE8(*this, segaybd_state, misc_output_w))
- MCFG_315_5296_IN_PORTF_CB(IOPORT("DSW"))
- MCFG_315_5296_IN_PORTG_CB(IOPORT("COINAGE"))
- MCFG_315_5296_OUT_PORTH_CB(WRITE8(*this, segaybd_state, output2_w))
+ sega_315_5296_device &io(SEGA_315_5296(config, "io", MASTER_CLOCK/8));
+ io.in_pa_callback().set_ioport("P1");
+ io.in_pb_callback().set_ioport("GENERAL");
+ io.in_pc_callback().set_ioport("LIMITSW");
+ io.out_pd_callback().set(FUNC(segaybd_state::output1_w));
+ io.out_pe_callback().set(FUNC(segaybd_state::misc_output_w));
+ io.in_pf_callback().set_ioport("DSW");
+ io.in_pg_callback().set_ioport("COINAGE");
+ io.out_ph_callback().set(FUNC(segaybd_state::output2_w));
// FMCS and CKOT connect to CS and OSC IN on MSM6253 below
MCFG_DEVICE_ADD("adc", MSM6253, 0)