diff options
author | 2018-02-01 10:04:01 +0100 | |
---|---|---|
committer | 2018-02-12 10:04:52 +0100 | |
commit | c5219643162cb7d2a8688425a09008d28c8e2437 (patch) | |
tree | f2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/devices/video/msm6255.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/devices/video/msm6255.cpp')
-rw-r--r-- | src/devices/video/msm6255.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/video/msm6255.cpp b/src/devices/video/msm6255.cpp index 1f546630e27..4513327160a 100644 --- a/src/devices/video/msm6255.cpp +++ b/src/devices/video/msm6255.cpp @@ -54,13 +54,13 @@ DEFINE_DEVICE_TYPE(MSM6255, msm6255_device, "msm6255", "Oki MSM6255 LCD Controller") // I/O map -DEVICE_ADDRESS_MAP_START( map, 8, msm6255_device ) +ADDRESS_MAP_START(msm6255_device::map) AM_RANGE(0x00, 0x00) AM_READWRITE(dr_r, dr_w) AM_RANGE(0x01, 0x01) AM_READWRITE(ir_r, ir_w) ADDRESS_MAP_END // default address map -static ADDRESS_MAP_START( msm6255, 0, 8, msm6255_device ) +ADDRESS_MAP_START(msm6255_device::msm6255) AM_RANGE(0x00000, 0xfffff) AM_RAM ADDRESS_MAP_END @@ -78,7 +78,7 @@ msm6255_device::msm6255_device(const machine_config &mconfig, const char *tag, d device_t(mconfig, MSM6255, tag, owner, clock), device_memory_interface(mconfig, *this), device_video_interface(mconfig, *this), - m_space_config("videoram", ENDIANNESS_LITTLE, 8, 20, 0, nullptr, *ADDRESS_MAP_NAME(msm6255)), + m_space_config("videoram", ENDIANNESS_LITTLE, 8, 20, 0, address_map_constructor(), address_map_constructor(FUNC(msm6255_device::msm6255), this)), m_cursor(0) { } |