summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/sothello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sothello.cpp')
-rw-r--r--src/mame/drivers/sothello.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mame/drivers/sothello.cpp b/src/mame/drivers/sothello.cpp
index 30956b73eb0..a02039dd890 100644
--- a/src/mame/drivers/sothello.cpp
+++ b/src/mame/drivers/sothello.cpp
@@ -354,21 +354,21 @@ void sothello_state::machine_reset()
m_msm_data = 0;
}
-MACHINE_CONFIG_START(sothello_state::sothello)
-
+void sothello_state::sothello(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", Z80, XTAL(21'477'272) / 6)
- MCFG_DEVICE_PROGRAM_MAP(maincpu_mem_map)
- MCFG_DEVICE_IO_MAP(maincpu_io_map)
+ Z80(config, m_maincpu, XTAL(21'477'272) / 6);
+ m_maincpu->set_addrmap(AS_PROGRAM, &sothello_state::maincpu_mem_map);
+ m_maincpu->set_addrmap(AS_IO, &sothello_state::maincpu_io_map);
- MCFG_DEVICE_ADD("soundcpu", Z80, XTAL(21'477'272) / 6)
- MCFG_DEVICE_PROGRAM_MAP(soundcpu_mem_map)
- MCFG_DEVICE_IO_MAP(soundcpu_io_map)
+ Z80(config, m_soundcpu, XTAL(21'477'272) / 6);
+ m_soundcpu->set_addrmap(AS_PROGRAM, &sothello_state::soundcpu_mem_map);
+ m_soundcpu->set_addrmap(AS_IO, &sothello_state::soundcpu_io_map);
- MCFG_DEVICE_ADD("subcpu", MC6809, XTAL(8'000'000)) // divided by 4 internally
- MCFG_DEVICE_PROGRAM_MAP(subcpu_mem_map)
+ MC6809(config, m_subcpu, XTAL(8'000'000)); // divided by 4 internally
+ m_subcpu->set_addrmap(AS_PROGRAM, &sothello_state::subcpu_mem_map);
- MCFG_QUANTUM_TIME(attotime::from_hz(600))
+ config.m_minimum_quantum = attotime::from_hz(600);
/* video hardware */
v9938_device &v9938(V9938(config, "v9938", XTAL(21'477'272)));
@@ -391,11 +391,11 @@ MACHINE_CONFIG_START(sothello_state::sothello)
ymsnd.add_route(2, "mono", 0.25);
ymsnd.add_route(3, "mono", 0.50);
- MCFG_DEVICE_ADD("msm", MSM5205, XTAL(384'000))
- MCFG_MSM5205_VCLK_CB(WRITELINE(*this, sothello_state, adpcm_int)) /* interrupt function */
- MCFG_MSM5205_PRESCALER_SELECTOR(S48_4B) /* changed on the fly */
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
-MACHINE_CONFIG_END
+ MSM5205(config, m_msm, XTAL(384'000));
+ m_msm->vck_legacy_callback().set(FUNC(sothello_state::adpcm_int)); /* interrupt function */
+ m_msm->set_prescaler_selector(msm5205_device::S48_4B); /* changed on the fly */
+ m_msm->add_route(ALL_OUTPUTS, "mono", 1.0);
+}
/***************************************************************************