summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hotblock.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/hotblock.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/hotblock.cpp')
-rw-r--r--src/mame/drivers/hotblock.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/hotblock.cpp b/src/mame/drivers/hotblock.cpp
index a0492d23028..0358e90b5b4 100644
--- a/src/mame/drivers/hotblock.cpp
+++ b/src/mame/drivers/hotblock.cpp
@@ -78,6 +78,8 @@ public:
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void hotblock(machine_config &config);
+ void hotblock_io(address_map &map);
+ void hotblock_map(address_map &map);
};
@@ -128,13 +130,13 @@ WRITE8_MEMBER(hotblock_state::video_write)
}
}
-static ADDRESS_MAP_START( hotblock_map, AS_PROGRAM, 8, hotblock_state )
+ADDRESS_MAP_START(hotblock_state::hotblock_map)
AM_RANGE(0x00000, 0x0ffff) AM_RAM
AM_RANGE(0x10000, 0x1ffff) AM_READWRITE(video_read, video_write) AM_SHARE("vram")
AM_RANGE(0x20000, 0xfffff) AM_ROM
ADDRESS_MAP_END
-static ADDRESS_MAP_START( hotblock_io, AS_IO, 8, hotblock_state )
+ADDRESS_MAP_START(hotblock_state::hotblock_io)
AM_RANGE(0x0000, 0x0000) AM_WRITE(port0_w)
AM_RANGE(0x0004, 0x0004) AM_READWRITE(port4_r, port4_w)
AM_RANGE(0x8000, 0x8001) AM_DEVWRITE("aysnd", ym2149_device, address_data_w)