diff options
author | Olivier Galibert <galibert@pobox.com> | 2020-11-27 09:09:58 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2020-11-27 09:10:12 +0100 |
commit | ad0f09e8f8fd17dca8baf20c228c9416d4e734a2 (patch) | |
tree | 0b32ea6b0f67948ffd04712b8adf76bb8776fcc8 | |
parent | a7740d448b9e9b9a8cc312f6eef2b8dc4417a531 (diff) |
Fix wangpc, incorrect memory size allocation. Also remove a use-before-init in pic8259
-rw-r--r-- | src/devices/bus/wangpc/mvc.cpp | 6 | ||||
-rw-r--r-- | src/devices/machine/pic8259.cpp | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/devices/bus/wangpc/mvc.cpp b/src/devices/bus/wangpc/mvc.cpp index 9455ba23463..12aae997900 100644 --- a/src/devices/bus/wangpc/mvc.cpp +++ b/src/devices/bus/wangpc/mvc.cpp @@ -186,9 +186,9 @@ wangpc_mvc_device::wangpc_mvc_device(const machine_config &mconfig, const char * device_t(mconfig, WANGPC_MVC, tag, owner, clock), device_wangpcbus_card_interface(mconfig, *this), m_crtc(*this, MC6845_TAG), - m_video_ram(*this, "video_ram", VIDEO_RAM_SIZE, ENDIANNESS_LITTLE), - m_char_ram(*this, "char_ram", CHAR_RAM_SIZE, ENDIANNESS_LITTLE), - m_bitmap_ram(*this, "bitmap_ram", BITMAP_RAM_SIZE, ENDIANNESS_LITTLE), + m_video_ram(*this, "video_ram", VIDEO_RAM_SIZE*2, ENDIANNESS_LITTLE), + m_char_ram(*this, "char_ram", CHAR_RAM_SIZE*2, ENDIANNESS_LITTLE), + m_bitmap_ram(*this, "bitmap_ram", BITMAP_RAM_SIZE*2, ENDIANNESS_LITTLE), m_option(0), m_irq(CLEAR_LINE) { diff --git a/src/devices/machine/pic8259.cpp b/src/devices/machine/pic8259.cpp index 3866b4e4163..d5104413691 100644 --- a/src/devices/machine/pic8259.cpp +++ b/src/devices/machine/pic8259.cpp @@ -425,6 +425,8 @@ void pic8259_device::device_start() save_item(NAME(m_is_x86)); save_item(NAME(m_current_level)); save_item(NAME(m_inta_sequence)); + + m_inta_sequence = 0; } |