From 3a40e3bbec2acafbbeee9e21144afbd0a7f490b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Sat, 9 Mar 2013 09:31:57 +0000 Subject: [PATCH] (MESS) fixed uninitialized memory in src/mess/drivers/pc9801.c (nw) --- src/mess/drivers/pc9801.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mess/drivers/pc9801.c b/src/mess/drivers/pc9801.c index 9b7c8053807..f4f9f6222b6 100644 --- a/src/mess/drivers/pc9801.c +++ b/src/mess/drivers/pc9801.c @@ -3413,6 +3413,7 @@ MACHINE_START_MEMBER(pc9801_state,pc9821) MACHINE_RESET_MEMBER(pc9801_state,pc9801_common) { + memset(m_tvram, 0, sizeof(UINT8) * 0x4000); /* this looks like to be some kind of backup ram, system will boot with green colors otherwise */ { int i; @@ -3478,6 +3479,7 @@ MACHINE_RESET_MEMBER(pc9801_state,pc9801rs) m_access_ctrl = 0; m_keyb_press = 0xff; // temp kludge, for PC-9821 booting // m_has_opna = machine().root_device().ioport("SOUND_CONFIG")->read() & 1; + memset(m_work_ram, 0, sizeof(UINT8) * 0xa0000); } MACHINE_RESET_MEMBER(pc9801_state,pc9821)