diff options
Diffstat (limited to 'src/mame/drivers/peyper.cpp')
-rw-r--r-- | src/mame/drivers/peyper.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mame/drivers/peyper.cpp b/src/mame/drivers/peyper.cpp index f3dc37a2f57..c81928a9184 100644 --- a/src/mame/drivers/peyper.cpp +++ b/src/mame/drivers/peyper.cpp @@ -601,13 +601,12 @@ void peyper_state::machine_reset() } -void peyper_state::peyper(machine_config &config) -{ +MACHINE_CONFIG_START(peyper_state::peyper) /* basic machine hardware */ - Z80(config, m_maincpu, 2'500'000); - m_maincpu->set_addrmap(AS_PROGRAM, &peyper_state::peyper_map); - m_maincpu->set_addrmap(AS_IO, &peyper_state::peyper_io); - m_maincpu->set_periodic_int(FUNC(peyper_state::irq0_line_hold), attotime::from_hz(1250)); + MCFG_DEVICE_ADD("maincpu", Z80, 2'500'000) + MCFG_DEVICE_PROGRAM_MAP(peyper_map) + MCFG_DEVICE_IO_MAP(peyper_io) + MCFG_DEVICE_PERIODIC_INT_DRIVER(peyper_state, irq0_line_hold, 1250) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); /* video hardware */ @@ -632,7 +631,7 @@ void peyper_state::peyper(machine_config &config) kbdc.in_rl_callback().set(FUNC(peyper_state::sw_r)); // kbd RL lines kbdc.in_shift_callback().set_constant(1); // Shift key kbdc.in_ctrl_callback().set_constant(1); -} +MACHINE_CONFIG_END // Not allowed to set up an array all at once, so we have this mess void peyper_state::init_peyper() |