diff options
Diffstat (limited to 'src/devices/video/hd66421.cpp')
-rw-r--r-- | src/devices/video/hd66421.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/devices/video/hd66421.cpp b/src/devices/video/hd66421.cpp index 63283f498b0..bb03b80252e 100644 --- a/src/devices/video/hd66421.cpp +++ b/src/devices/video/hd66421.cpp @@ -74,7 +74,8 @@ DEFINE_DEVICE_TYPE(HD66421, hd66421_device, "hd66421", "Hitachi HD66421 LCD Cont // default address map void hd66421_device::hd66421(address_map &map) { - map(0x0000, HD66421_RAM_SIZE).ram(); + if (!has_configured_map(0)) + map(0x0000, HD66421_RAM_SIZE).ram(); } //------------------------------------------------- @@ -125,7 +126,7 @@ inline void hd66421_device::writebyte(offs_t address, uint8_t data) hd66421_device::hd66421_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, HD66421, tag, owner, clock) , device_memory_interface(mconfig, *this) - , m_space_config("videoram", ENDIANNESS_LITTLE, 8, 17, 0, address_map_constructor(), address_map_constructor(FUNC(hd66421_device::hd66421), this)) + , m_space_config("videoram", ENDIANNESS_LITTLE, 8, 17, 0, address_map_constructor(FUNC(hd66421_device::hd66421), this)) , m_cmd(0) , m_x(0) , m_y(0) |