summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/jeutel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/jeutel.cpp')
-rw-r--r--src/mame/drivers/jeutel.cpp31
1 files changed, 14 insertions, 17 deletions
diff --git a/src/mame/drivers/jeutel.cpp b/src/mame/drivers/jeutel.cpp
index 37877d8feb3..175737bc586 100644
--- a/src/mame/drivers/jeutel.cpp
+++ b/src/mame/drivers/jeutel.cpp
@@ -198,18 +198,15 @@ void jeutel_state::init_jeutel()
{
}
-void jeutel_state::jeutel(machine_config &config)
-{
+MACHINE_CONFIG_START(jeutel_state::jeutel)
/* basic machine hardware */
- Z80(config, m_maincpu, 3300000);
- m_maincpu->set_addrmap(AS_PROGRAM, &jeutel_state::jeutel_map);
-
- Z80(config, m_cpu2, 3300000);
- m_cpu2->set_addrmap(AS_PROGRAM, &jeutel_state::jeutel_cpu2);
-
- z80_device &cpu3(Z80(config, "cpu3", 3300000));
- cpu3.set_addrmap(AS_PROGRAM, &jeutel_state::jeutel_cpu3);
- cpu3.set_addrmap(AS_IO, &jeutel_state::jeutel_cpu3_io);
+ MCFG_DEVICE_ADD("maincpu", Z80, 3300000)
+ MCFG_DEVICE_PROGRAM_MAP(jeutel_map)
+ MCFG_DEVICE_ADD("cpu2", Z80, 3300000)
+ MCFG_DEVICE_PROGRAM_MAP(jeutel_cpu2)
+ MCFG_DEVICE_ADD("cpu3", Z80, 3300000)
+ MCFG_DEVICE_PROGRAM_MAP(jeutel_cpu3)
+ MCFG_DEVICE_IO_MAP(jeutel_cpu3_io)
/* Video */
config.set_default_layout(layout_jeutel);
@@ -225,10 +222,10 @@ void jeutel_state::jeutel(machine_config &config)
aysnd.port_b_read_callback().set(FUNC(jeutel_state::portb_r));
aysnd.add_route(ALL_OUTPUTS, "mono", 0.40);
- TMS5110A(config, m_tms, 640000);
- //m_tms->m0().set("tmsprom", FUNC(tmsprom_device::m0_w));
- //m_tms->data().set("tmsprom", FUNC(tmsprom_device::data_r));
- m_tms->add_route(ALL_OUTPUTS, "mono", 1.0);
+ MCFG_DEVICE_ADD("tms", TMS5110A, 640000)
+ //MCFG_TMS5110_M0_CB(WRITELINE("tmsprom", tmsprom_device, m0_w))
+ //MCFG_TMS5110_DATA_CB(READLINE("tmsprom", tmsprom_device, data_r))
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
/* Devices */
i8255_device &ppi0(I8255A(config, "ppi8255_0"));
@@ -255,8 +252,8 @@ void jeutel_state::jeutel(machine_config &config)
//ppi2.in_pc_callback().set_ioport("EXTRA");
//ppi2.out_pc_callback().set(FUNC(jeutel_state::ppi2c_w));
- TIMER(config, "timer_a").configure_periodic(FUNC(jeutel_state::timer_a), attotime::from_hz(120));
-}
+ MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_a", jeutel_state, timer_a, attotime::from_hz(120))
+MACHINE_CONFIG_END
/*--------------------------------
/ Le King