summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/wpc_an.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-02-01 10:04:01 +0100
committer Olivier Galibert <galibert@pobox.com>2018-02-12 10:04:52 +0100
commitc5219643162cb7d2a8688425a09008d28c8e2437 (patch)
treef2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/wpc_an.cpp
parent09b6ce46873b38de9030a3c0378ff327f17af881 (diff)
API change: Memory maps are now methods of the owner class [O. Galibert]
Also, a lot more freedom happened, that's going to be more visible soon.
Diffstat (limited to 'src/mame/drivers/wpc_an.cpp')
-rw-r--r--src/mame/drivers/wpc_an.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/drivers/wpc_an.cpp b/src/mame/drivers/wpc_an.cpp
index 9f517cca4e2..3872b2e2a2c 100644
--- a/src/mame/drivers/wpc_an.cpp
+++ b/src/mame/drivers/wpc_an.cpp
@@ -33,6 +33,7 @@ public:
void wpc_an_dd(machine_config &config);
void wpc_an(machine_config &config);
void wpc_an_base(machine_config &config);
+ void wpc_an_map(address_map &map);
protected:
// devices
@@ -70,7 +71,7 @@ private:
};
-static ADDRESS_MAP_START( wpc_an_map, AS_PROGRAM, 8, wpc_an_state )
+ADDRESS_MAP_START(wpc_an_state::wpc_an_map)
AM_RANGE(0x0000, 0x2fff) AM_READWRITE(ram_r,ram_w)
AM_RANGE(0x3000, 0x3faf) AM_RAM
AM_RANGE(0x3fb0, 0x3fff) AM_DEVREADWRITE("wpc",wpc_device,read,write) // WPC device