summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/drivers/testcpu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/drivers/testcpu.cpp')
-rw-r--r--src/emu/drivers/testcpu.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/emu/drivers/testcpu.cpp b/src/emu/drivers/testcpu.cpp
index 6493471df4c..b622528d02e 100644
--- a/src/emu/drivers/testcpu.cpp
+++ b/src/emu/drivers/testcpu.cpp
@@ -178,10 +178,11 @@ private:
// ADDRESS MAPS
//**************************************************************************
-ADDRESS_MAP_START(testcpu_state::ppc_mem)
- AM_RANGE(RAM_BASE, RAM_BASE+7) AM_RAM AM_SHARE("ram")
- AM_RANGE(0x00000000, 0xffffffff) AM_READWRITE(general_r, general_w)
-ADDRESS_MAP_END
+void testcpu_state::ppc_mem(address_map &map)
+{
+ map(RAM_BASE, RAM_BASE+7).ram().share("ram");
+ map(0x00000000, 0xffffffff).rw(this, FUNC(testcpu_state::general_r), FUNC(testcpu_state::general_w));
+}