From a7390ec3c92fc776a947cfbbd6d0126148bdd672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Sun, 10 Mar 2013 21:25:08 +0000 Subject: [PATCH] [COSMAC] R registers are supposed to contain random data on start-up (nw) --- src/emu/cpu/cosmac/cosmac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emu/cpu/cosmac/cosmac.c b/src/emu/cpu/cosmac/cosmac.c index 83035d84225..a556f09259a 100644 --- a/src/emu/cpu/cosmac/cosmac.c +++ b/src/emu/cpu/cosmac/cosmac.c @@ -10,6 +10,7 @@ #include "emu.h" #include "debugger.h" #include "cosmac.h" +#include "coreutil.h" /* @@ -307,7 +308,7 @@ void cosmac_device::device_reset() m_ie = 0; m_q = 0; m_df = 0; - memset(m_r, 0, sizeof(m_r)); + rand_memory(m_r, sizeof(m_r)); }