summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/sg1000.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sg1000.cpp')
-rw-r--r--src/mame/drivers/sg1000.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/sg1000.cpp b/src/mame/drivers/sg1000.cpp
index c427823a80a..5b4b29f1c78 100644
--- a/src/mame/drivers/sg1000.cpp
+++ b/src/mame/drivers/sg1000.cpp
@@ -636,10 +636,10 @@ MACHINE_CONFIG_START(sf7000_state::sf7000)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
/* devices */
- MCFG_DEVICE_ADD(UPD9255_1_TAG, I8255, 0)
- MCFG_I8255_IN_PORTA_CB(READ8(*this, sf7000_state, ppi_pa_r))
- MCFG_I8255_OUT_PORTB_CB(WRITE8("cent_data_out", output_latch_device, bus_w))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, sf7000_state, ppi_pc_w))
+ i8255_device &ppi(I8255(config, UPD9255_1_TAG));
+ ppi.in_pa_callback().set(FUNC(sf7000_state::ppi_pa_r));
+ ppi.out_pb_callback().set("cent_data_out", FUNC(output_latch_device::bus_w));
+ ppi.out_pc_callback().set(FUNC(sf7000_state::ppi_pc_w));
i8251_device &upd8251(I8251(config, UPD8251_TAG, 0));
upd8251.txd_handler().set(RS232_TAG, FUNC(rs232_port_device::write_txd));