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/sh4robot.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/sh4robot.cpp')
-rw-r--r-- | src/mame/drivers/sh4robot.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/sh4robot.cpp b/src/mame/drivers/sh4robot.cpp index e5c6ed0ece0..8d3776e4f8a 100644 --- a/src/mame/drivers/sh4robot.cpp +++ b/src/mame/drivers/sh4robot.cpp @@ -42,12 +42,14 @@ public: { } void sh4robot(machine_config &config); + void io_map(address_map &map); + void mem_map(address_map &map); private: required_device<cpu_device> m_maincpu; }; -static ADDRESS_MAP_START( mem_map, AS_PROGRAM, 64, sh4robot_state ) +ADDRESS_MAP_START(sh4robot_state::mem_map) ADDRESS_MAP_UNMAP_HIGH AM_RANGE(0x00000000, 0x00000fff) AM_ROM AM_RANGE(0x08000000, 0x08ffffff) AM_RAM // SDRAM 1 @@ -55,7 +57,7 @@ static ADDRESS_MAP_START( mem_map, AS_PROGRAM, 64, sh4robot_state ) AM_RANGE(0xa0000000, 0xa0000fff) AM_ROM AM_REGION("maincpu", 0) ADDRESS_MAP_END -static ADDRESS_MAP_START( io_map, AS_IO, 64, sh4robot_state ) +ADDRESS_MAP_START(sh4robot_state::io_map) ADDRESS_MAP_UNMAP_HIGH ADDRESS_MAP_END |