summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-04-27 14:49:57 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-04-27 14:49:57 +0000
commitf781c3cd548fece287b34c97a5dbb5c470619bab (patch)
treecd4636f4986a3574baee5f62a389fbb7ab05a5d8
parent0aa88c365822b1bd6bcf487226f222e703de4d18 (diff)
fixed usage of uninitialized members in scudsp_cpu_device (nw)
-rw-r--r--src/emu/cpu/scudsp/scudsp.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/emu/cpu/scudsp/scudsp.c b/src/emu/cpu/scudsp/scudsp.c
index df90e10a299..1efc67983ff 100644
--- a/src/emu/cpu/scudsp/scudsp.c
+++ b/src/emu/cpu/scudsp/scudsp.c
@@ -909,6 +909,28 @@ void scudsp_cpu_device::execute_run()
void scudsp_cpu_device::device_start()
{
+ m_pc = 0;
+ m_flags = 0;
+ m_delay = 0;
+ m_top = 0;
+ m_lop = 0;
+ memset(&m_rx, 0x00, sizeof(m_rx));
+ m_mul = 0;
+ memset(&m_ry, 0x00, sizeof(m_ry));
+ m_alu = 0;
+ memset(&m_ph, 0x00, sizeof(m_ph));
+ memset(&m_pl, 0x00, sizeof(m_pl));
+ memset(&m_ach, 0x00, sizeof(m_ach));
+ memset(&m_acl, 0x00, sizeof(m_acl));
+ m_ra0 = 0;
+ m_wa0 = 0;
+ m_ra = 0;
+ m_ct0 = 0;
+ m_ct1 = 0;
+ m_ct2 = 0;
+ m_ct3 = 0;
+ memset(&m_dma, 0x00, sizeof(m_dma));
+
m_program = &space(AS_PROGRAM);
m_data = &space(AS_DATA);