summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/m5.cpp
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-09-03 20:48:47 +0200
committer mooglyguy <therealmogminer@gmail.com>2018-09-03 20:51:58 +0200
commit11fa365606e26ec551cc4f9746b3d51b3d8ebbcf (patch)
treea000962004b7f0698af15ed4f819ee09f863bb0d /src/mame/drivers/m5.cpp
parent21cca10414b4b0b86aad4926fba47f7b9d8e51b6 (diff)
-i8255: Removed MCFG, nw
Diffstat (limited to 'src/mame/drivers/m5.cpp')
-rw-r--r--src/mame/drivers/m5.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/m5.cpp b/src/mame/drivers/m5.cpp
index 2ca3d4818f0..e0548bcf06e 100644
--- a/src/mame/drivers/m5.cpp
+++ b/src/mame/drivers/m5.cpp
@@ -1436,12 +1436,12 @@ MACHINE_CONFIG_START(m5_state::m5)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
MCFG_CASSETTE_INTERFACE("m5_cass")
- MCFG_DEVICE_ADD(I8255A_TAG, I8255, 0)
- MCFG_I8255_IN_PORTA_CB(READ8(*this, m5_state, ppi_pa_r))
- MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, m5_state, ppi_pa_w))
- MCFG_I8255_OUT_PORTB_CB(WRITE8(*this, m5_state, ppi_pb_w))
- MCFG_I8255_IN_PORTC_CB(READ8(*this, m5_state, ppi_pc_r))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, m5_state, ppi_pc_w))
+ I8255(config, m_ppi);
+ m_ppi->in_pa_callback().set(FUNC(m5_state::ppi_pa_r));
+ m_ppi->out_pa_callback().set(FUNC(m5_state::ppi_pa_w));
+ m_ppi->out_pb_callback().set(FUNC(m5_state::ppi_pb_w));
+ m_ppi->in_pc_callback().set(FUNC(m5_state::ppi_pc_r));
+ m_ppi->out_pc_callback().set(FUNC(m5_state::ppi_pc_w));
MCFG_UPD765A_ADD(UPD765_TAG, true, true)
MCFG_UPD765_INTRQ_CALLBACK(INPUTLINE(Z80_FD5_TAG, INPUT_LINE_IRQ0))