mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
fixed uninitialized memory in src/emu/video/huc6270.c (nw)
This commit is contained in:
parent
4bbf6267e5
commit
ecce1e39a6
@ -817,6 +817,7 @@ void huc6270_device::device_start()
|
||||
assert( ! m_irq_changed.isnull() );
|
||||
|
||||
m_vram = (UINT16 *)machine().memory().region_alloc( tag(), vram_size, 1, ENDIANNESS_LITTLE )->base();
|
||||
memset(m_vram, 0, vram_size);
|
||||
m_vram_mask = ( vram_size >> 1 ) - 1;
|
||||
}
|
||||
|
||||
@ -854,6 +855,7 @@ void huc6270_device::device_reset()
|
||||
m_hsync = 0;
|
||||
m_vsync = 0;
|
||||
m_dma_enabled = 0;
|
||||
m_byr_latched = 0;
|
||||
|
||||
memset(m_sat, 0, sizeof(m_sat));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user