diff options
Diffstat (limited to 'src/devices/bus/isa/pc1640_iga.cpp')
-rw-r--r-- | src/devices/bus/isa/pc1640_iga.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/devices/bus/isa/pc1640_iga.cpp b/src/devices/bus/isa/pc1640_iga.cpp index 83accf6794c..04ef54c2d42 100644 --- a/src/devices/bus/isa/pc1640_iga.cpp +++ b/src/devices/bus/isa/pc1640_iga.cpp @@ -95,17 +95,13 @@ void isa8_pc1640_iga_device::device_start() } /* Install 256KB Video ram on our EGA card */ - m_vram = machine().memory().region_alloc(subtag("vram").c_str(), 256 * 1024, 1, ENDIANNESS_LITTLE); + m_vram = make_unique_clear<uint8_t[]>(256 * 1024); - m_videoram = m_vram->base(); + m_videoram = m_vram.get(); m_plane[0] = m_videoram + 0x00000; - memset(m_plane[0], 0, sizeof(uint8_t) * 0x10000); m_plane[1] = m_videoram + 0x10000; - memset(m_plane[1], 0, sizeof(uint8_t) * 0x10000); m_plane[2] = m_videoram + 0x20000; - memset(m_plane[2], 0, sizeof(uint8_t) * 0x10000); m_plane[3] = m_videoram + 0x30000; - memset(m_plane[3], 0, sizeof(uint8_t) * 0x10000); m_crtc_ega = subdevice<crtc_ega_device>(EGA_CRTC_NAME); |