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/mos6566.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/mos6566.cpp')
-rw-r--r-- | src/devices/video/mos6566.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/video/mos6566.cpp b/src/devices/video/mos6566.cpp index e2d2101ccc9..75997c84d27 100644 --- a/src/devices/video/mos6566.cpp +++ b/src/devices/video/mos6566.cpp @@ -225,11 +225,11 @@ DEFINE_DEVICE_TYPE(MOS8566, mos8566_device, "mos8566", "MOS 8566 VIC-II") // default address maps -static ADDRESS_MAP_START( mos6566_videoram_map, 0, 8, mos6566_device ) +ADDRESS_MAP_START(mos6566_device::mos6566_videoram_map) AM_RANGE(0x0000, 0x3fff) AM_RAM ADDRESS_MAP_END -static ADDRESS_MAP_START( mos6566_colorram_map, 1, 8, mos6566_device ) +ADDRESS_MAP_START(mos6566_device::mos6566_colorram_map) AM_RANGE(0x000, 0x3ff) AM_RAM ADDRESS_MAP_END @@ -585,8 +585,8 @@ mos6566_device::mos6566_device(const machine_config &mconfig, device_type type, device_execute_interface(mconfig, *this), m_icount(0), m_variant(variant), - m_videoram_space_config("videoram", ENDIANNESS_LITTLE, 8, 14, 0, nullptr, *ADDRESS_MAP_NAME(mos6566_videoram_map)), - m_colorram_space_config("colorram", ENDIANNESS_LITTLE, 8, 10, 0, nullptr, *ADDRESS_MAP_NAME(mos6566_colorram_map)), + m_videoram_space_config("videoram", ENDIANNESS_LITTLE, 8, 14, 0, address_map_constructor(), address_map_constructor(FUNC(mos6566_device::mos6566_videoram_map), this)), + m_colorram_space_config("colorram", ENDIANNESS_LITTLE, 8, 10, 0, address_map_constructor(), address_map_constructor(FUNC(mos6566_device::mos6566_colorram_map), this)), m_write_irq(*this), m_write_ba(*this), m_write_aec(*this), |