diff options
Diffstat (limited to 'src/mame/drivers/compis.cpp')
-rw-r--r-- | src/mame/drivers/compis.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/compis.cpp b/src/mame/drivers/compis.cpp index 5306646ef6e..ce70b1e4a79 100644 --- a/src/mame/drivers/compis.cpp +++ b/src/mame/drivers/compis.cpp @@ -421,7 +421,7 @@ void compis_state::compis2_mem(address_map &map) void compis_state::compis_io(address_map &map) { map.unmap_value_high(); - map(0x0000, 0x0007) /* PCS0 */ .mirror(0x78).rw(I8255_TAG, FUNC(i8255_device::read), FUNC(i8255_device::write)).umask16(0xff00); + map(0x0000, 0x0007) /* PCS0 */ .mirror(0x78).rw(m_ppi, FUNC(i8255_device::read), FUNC(i8255_device::write)).umask16(0xff00); map(0x0080, 0x0087) /* PCS1 */ .mirror(0x78).rw(I8253_TAG, FUNC(pit8253_device::read), FUNC(pit8253_device::write)).umask16(0x00ff); map(0x0100, 0x011f) /* PCS2 */ .mirror(0x60).rw(MM58174A_TAG, FUNC(mm58274c_device::read), FUNC(mm58274c_device::write)).umask16(0x00ff); map(0x0180, 0x01ff) /* PCS3 */ .rw(GRAPHICS_TAG, FUNC(compis_graphics_slot_device::pcs3_r), FUNC(compis_graphics_slot_device::pcs3_w)); @@ -774,10 +774,10 @@ MACHINE_CONFIG_START(compis_state::compis) MCFG_PIT8253_CLK2(15.36_MHz_XTAL/8) MCFG_PIT8253_OUT2_HANDLER(WRITELINE(*this, compis_state, tmr5_w)) - MCFG_DEVICE_ADD(I8255_TAG, I8255, 0) - MCFG_I8255_OUT_PORTA_CB(WRITE8("cent_data_out", output_latch_device, bus_w)) - MCFG_I8255_IN_PORTB_CB(READ8(*this, compis_state, ppi_pb_r)) - MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, compis_state, ppi_pc_w)) + I8255(config, m_ppi); + m_ppi->out_pa_callback().set("cent_data_out", FUNC(output_latch_device::bus_w)); + m_ppi->in_pb_callback().set(FUNC(compis_state::ppi_pb_r)); + m_ppi->out_pc_callback().set(FUNC(compis_state::ppi_pc_w)); I8251(config, m_uart, 0); m_uart->txd_handler().set(COMPIS_KEYBOARD_TAG, FUNC(compis_keyboard_device::si_w)); |