summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cdi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cdi.cpp')
-rw-r--r--src/mame/drivers/cdi.cpp46
1 files changed, 22 insertions, 24 deletions
diff --git a/src/mame/drivers/cdi.cpp b/src/mame/drivers/cdi.cpp
index 5bf11a65c8a..00c987e9332 100644
--- a/src/mame/drivers/cdi.cpp
+++ b/src/mame/drivers/cdi.cpp
@@ -930,39 +930,37 @@ READ8_MEMBER( cdi_state::quizard_mcu_p1_r )
return machine().rand();
}
-MACHINE_CONFIG_START(cdi_state::quizard1)
+void cdi_state::quizard1(machine_config &config)
+{
quizard(config);
- MCFG_MACHINE_RESET_OVERRIDE(cdi_state, quizard1 )
-
- MCFG_DEVICE_ADD("mcu", I8751, 8000000)
- MCFG_MCS51_PORT_P1_IN_CB(READ8(*this, cdi_state, quizard_mcu_p1_r))
-// MCFG_DEVICE_VBLANK_INT_DRIVER("screen", cdi_state, irq0_line_pulse)
+ MCFG_MACHINE_RESET_OVERRIDE(cdi_state, quizard1)
-MACHINE_CONFIG_END
+ i8751_device &mcu(I8751(config, "mcu", 8000000));
+ mcu.port_in_cb<1>().set(FUNC(cdi_state::quizard_mcu_p1_r));
+// mcu.set_vblank_int("screen", FUNC(cdi_state::irq0_line_pulse));
+}
-MACHINE_CONFIG_START(cdi_state::quizard2)
+void cdi_state::quizard2(machine_config &config)
+{
quizard(config);
- MCFG_MACHINE_RESET_OVERRIDE(cdi_state, quizard2 )
-MACHINE_CONFIG_END
+ MCFG_MACHINE_RESET_OVERRIDE(cdi_state, quizard2)
+}
-MACHINE_CONFIG_START(cdi_state::quizard3)
+void cdi_state::quizard3(machine_config &config)
+{
quizard(config);
- MCFG_MACHINE_RESET_OVERRIDE(cdi_state, quizard3 )
-MACHINE_CONFIG_END
+ MCFG_MACHINE_RESET_OVERRIDE(cdi_state, quizard3)
+}
-MACHINE_CONFIG_START(cdi_state::quizard4)
+void cdi_state::quizard4(machine_config &config)
+{
quizard(config);
- MCFG_MACHINE_RESET_OVERRIDE(cdi_state, quizard4 )
-
- MCFG_DEVICE_ADD("mcu", I8751, 8000000)
- MCFG_MCS51_PORT_P1_IN_CB(READ8(*this, cdi_state, quizard_mcu_p1_r))
-// MCFG_DEVICE_VBLANK_INT_DRIVER("screen", cdi_state, irq0_line_pulse)
-
-MACHINE_CONFIG_END
-
-
-
+ MCFG_MACHINE_RESET_OVERRIDE(cdi_state, quizard4)
+ i8751_device &mcu(I8751(config, "mcu", 8000000));
+ mcu.port_in_cb<1>().set(FUNC(cdi_state::quizard_mcu_p1_r));
+// mcu.set_vblank_int("screen", FUNC(cdi_state::irq0_line_pulse));
+}
/*************************
* Rom Load *