diff options
Diffstat (limited to 'src/mame/drivers/galastrm.cpp')
-rw-r--r-- | src/mame/drivers/galastrm.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/galastrm.cpp b/src/mame/drivers/galastrm.cpp index 1f66067c340..ee01322e53f 100644 --- a/src/mame/drivers/galastrm.cpp +++ b/src/mame/drivers/galastrm.cpp @@ -213,14 +213,14 @@ MACHINE_CONFIG_START(galastrm_state::galastrm) MCFG_ADC0808_IN0_CB(IOPORT("STICKX")) MCFG_ADC0808_IN1_CB(IOPORT("STICKY")) - MCFG_DEVICE_ADD("tc0510nio", TC0510NIO, 0) - MCFG_TC0510NIO_READ_2_CB(IOPORT("IN0")) - MCFG_TC0510NIO_READ_3_CB(IOPORT("IN1")) - MCFG_TC0510NIO_WRITE_3_CB(WRITELINE("eeprom", eeprom_serial_93cxx_device, clk_write)) MCFG_DEVCB_BIT(5) - MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("eeprom", eeprom_serial_93cxx_device, di_write)) MCFG_DEVCB_BIT(6) - MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("eeprom", eeprom_serial_93cxx_device, cs_write)) MCFG_DEVCB_BIT(4) - MCFG_TC0510NIO_WRITE_4_CB(WRITE8(*this, galastrm_state, coin_word_w)) - MCFG_TC0510NIO_READ_7_CB(IOPORT("IN2")) + tc0510nio_device &tc0510nio(TC0510NIO(config, "tc0510nio", 0)); + tc0510nio.read_2_callback().set_ioport("IN0"); + tc0510nio.read_3_callback().set_ioport("IN1"); + tc0510nio.write_3_callback().set("eeprom", FUNC(eeprom_serial_93cxx_device::clk_write)).bit(5); + tc0510nio.write_3_callback().append("eeprom", FUNC(eeprom_serial_93cxx_device::di_write)).bit(6); + tc0510nio.write_3_callback().append("eeprom", FUNC(eeprom_serial_93cxx_device::cs_write)).bit(4); + tc0510nio.write_4_callback().set(FUNC(galastrm_state::coin_word_w)); + tc0510nio.read_7_callback().set_ioport("IN2"); /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) |