diff options
author | 2018-02-01 10:04:01 +0100 | |
---|---|---|
committer | 2018-02-12 10:04:52 +0100 | |
commit | c5219643162cb7d2a8688425a09008d28c8e2437 (patch) | |
tree | f2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/pipbug.cpp | |
parent | 09b6ce46873b38de9030a3c0378ff327f17af881 (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/pipbug.cpp')
-rw-r--r-- | src/mame/drivers/pipbug.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/pipbug.cpp b/src/mame/drivers/pipbug.cpp index 955fc3066c2..b0464148490 100644 --- a/src/mame/drivers/pipbug.cpp +++ b/src/mame/drivers/pipbug.cpp @@ -59,6 +59,8 @@ public: required_device<cpu_device> m_maincpu; DECLARE_QUICKLOAD_LOAD_MEMBER( pipbug ); void pipbug(machine_config &config); + void pipbug_data(address_map &map); + void pipbug_mem(address_map &map); }; WRITE8_MEMBER( pipbug_state::pipbug_ctrl_w ) @@ -66,13 +68,13 @@ WRITE8_MEMBER( pipbug_state::pipbug_ctrl_w ) // 0x80 is written here - not connected in the baby 2650 } -static ADDRESS_MAP_START(pipbug_mem, AS_PROGRAM, 8, pipbug_state) +ADDRESS_MAP_START(pipbug_state::pipbug_mem) ADDRESS_MAP_UNMAP_HIGH AM_RANGE( 0x0000, 0x03ff) AM_ROM AM_RANGE( 0x0400, 0x7fff) AM_RAM ADDRESS_MAP_END -static ADDRESS_MAP_START(pipbug_data, AS_DATA, 8, pipbug_state) +ADDRESS_MAP_START(pipbug_state::pipbug_data) // ADDRESS_MAP_UNMAP_HIGH AM_RANGE(S2650_CTRL_PORT, S2650_CTRL_PORT) AM_WRITE(pipbug_ctrl_w) ADDRESS_MAP_END |