summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/looping.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/looping.cpp')
-rw-r--r--src/mame/drivers/looping.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/looping.cpp b/src/mame/drivers/looping.cpp
index 7ccf5fdfad5..56cdd2ca1b3 100644
--- a/src/mame/drivers/looping.cpp
+++ b/src/mame/drivers/looping.cpp
@@ -634,13 +634,13 @@ MACHINE_CONFIG_START(looping_state::looping)
m_audiocpu->set_addrmap(AS_PROGRAM, &looping_state::looping_sound_map);
m_audiocpu->set_addrmap(AS_IO, &looping_state::looping_sound_io_map);
- MCFG_DEVICE_ADD("mcu", COP420, COP_CLOCK)
- MCFG_COP400_CONFIG( COP400_CKI_DIVISOR_16, COP400_CKO_OSCILLATOR_OUTPUT, false )
- MCFG_COP400_WRITE_L_CB(WRITE8(*this, looping_state, cop_l_w))
- MCFG_COP400_READ_L_CB(READ8(*this, looping_state, cop_unk_r))
- MCFG_COP400_READ_G_CB(READ8(*this, looping_state, cop_unk_r))
- MCFG_COP400_READ_IN_CB(READ8(*this, looping_state, cop_unk_r))
- MCFG_COP400_READ_SI_CB(READLINE(*this, looping_state, cop_serial_r))
+ cop420_cpu_device &cop(COP420(config, "mcu", COP_CLOCK));
+ cop.set_config(COP400_CKI_DIVISOR_16, COP400_CKO_OSCILLATOR_OUTPUT, false);
+ cop.write_l().set(FUNC(looping_state::cop_l_w));
+ cop.read_l().set(FUNC(looping_state::cop_unk_r));
+ cop.read_g().set(FUNC(looping_state::cop_unk_r));
+ cop.read_in().set(FUNC(looping_state::cop_unk_r));
+ cop.read_si().set(FUNC(looping_state::cop_serial_r));
ls259_device &mainlatch(LS259(config, "mainlatch")); // C9 on CPU board
// Q0 = A16