summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ampscarp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ampscarp.cpp')
-rw-r--r--src/mame/drivers/ampscarp.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/drivers/ampscarp.cpp b/src/mame/drivers/ampscarp.cpp
index 05b72db1734..f9ca05e3442 100644
--- a/src/mame/drivers/ampscarp.cpp
+++ b/src/mame/drivers/ampscarp.cpp
@@ -37,10 +37,11 @@ void ampscarp_state::mem_map(address_map &map)
static INPUT_PORTS_START( ampscarp )
INPUT_PORTS_END
-MACHINE_CONFIG_START(ampscarp_state::ampscarp)
- MCFG_DEVICE_ADD("maincpu", MC68HC11, 8'000'000) // type and clock unknown
- MCFG_DEVICE_PROGRAM_MAP(mem_map)
-MACHINE_CONFIG_END
+void ampscarp_state::ampscarp(machine_config &config)
+{
+ MC68HC11(config, m_maincpu, 8'000'000); // type and clock unknown
+ m_maincpu->set_addrmap(AS_PROGRAM, &ampscarp_state::mem_map);
+}
ROM_START( ampscarp )
ROM_REGION( 0x20000, "maincpu", 0 )