diff options
Diffstat (limited to 'src/mame/drivers/wico.cpp')
-rw-r--r-- | src/mame/drivers/wico.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/mame/drivers/wico.cpp b/src/mame/drivers/wico.cpp index 5a0c1d248cb..1ed154b7c08 100644 --- a/src/mame/drivers/wico.cpp +++ b/src/mame/drivers/wico.cpp @@ -440,12 +440,15 @@ void wico_state::machine_reset() } -MACHINE_CONFIG_START(wico_state::wico) +void wico_state::wico(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("ccpu", MC6809E, XTAL(10'000'000) / 8) // MC68A09EP @ U51 - MCFG_DEVICE_PROGRAM_MAP(ccpu_map) - MCFG_DEVICE_ADD("hcpu", MC6809E, XTAL(10'000'000) / 8) // MC68A09EP @ U24 - MCFG_DEVICE_PROGRAM_MAP(hcpu_map) + MC6809E(config, m_ccpu, XTAL(10'000'000) / 8); // MC68A09EP @ U51 + m_ccpu->set_addrmap(AS_PROGRAM, &wico_state::ccpu_map); + + MC6809E(config, m_hcpu, XTAL(10'000'000) / 8); // MC68A09EP @ U24 + m_hcpu->set_addrmap(AS_PROGRAM, &wico_state::hcpu_map); + TIMER(config, "irq").configure_periodic(FUNC(wico_state::irq_housekeeping), attotime::from_hz(120)); // zero crossing TIMER(config, "firq").configure_periodic(FUNC(wico_state::firq_housekeeping), attotime::from_hz(750)); // time generator NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); @@ -456,9 +459,8 @@ MACHINE_CONFIG_START(wico_state::wico) /* Sound */ genpin_audio(config); SPEAKER(config, "mono").front_center(); - MCFG_DEVICE_ADD("sn76494", SN76494, XTAL(10'000'000) / 64) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) -MACHINE_CONFIG_END + SN76494(config, "sn76494", XTAL(10'000'000) / 64).add_route(ALL_OUTPUTS, "mono", 0.75); +} /*------------------------------------------------------------------- / Af-Tor (1984) |