summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/hd61830.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2017-07-01 12:11:28 +0200
committer Olivier Galibert <galibert@pobox.com>2017-07-03 08:03:57 +0200
commitcbbbd07484c736eae2069b294ec666f231e64bff (patch)
treeb94a690f0ab10635eb6d11837425744208c7e8a4 /src/devices/video/hd61830.cpp
parentcb1930f6e6a6b460577f01207888eab402469e9f (diff)
dimemory: Lift the cap on the number of address spaces per device [O. Galibert]
Diffstat (limited to 'src/devices/video/hd61830.cpp')
-rw-r--r--src/devices/video/hd61830.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/devices/video/hd61830.cpp b/src/devices/video/hd61830.cpp
index f235b1b3d12..fcde5279b28 100644
--- a/src/devices/video/hd61830.cpp
+++ b/src/devices/video/hd61830.cpp
@@ -25,7 +25,7 @@ const device_type HD61830B = HD61830;
// default address map
-static ADDRESS_MAP_START( hd61830, AS_0, 8, hd61830_device )
+static ADDRESS_MAP_START( hd61830, 0, 8, hd61830_device )
AM_RANGE(0x0000, 0xffff) AM_RAM
ADDRESS_MAP_END
@@ -148,9 +148,11 @@ void hd61830_device::device_timer(emu_timer &timer, device_timer_id id, int para
// any address spaces owned by this device
//-------------------------------------------------
-const address_space_config *hd61830_device::memory_space_config(address_spacenum spacenum) const
+std::vector<std::pair<int, const address_space_config *>> hd61830_device::memory_space_config() const
{
- return (spacenum == AS_0) ? &m_space_config : nullptr;
+ return std::vector<std::pair<int, const address_space_config *>> {
+ std::make_pair(0, &m_space_config)
+ };
}