summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/cosmac/cosmac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/cosmac/cosmac.cpp')
-rw-r--r--src/devices/cpu/cosmac/cosmac.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/cpu/cosmac/cosmac.cpp b/src/devices/cpu/cosmac/cosmac.cpp
index 6398be4f64e..64e20182c45 100644
--- a/src/devices/cpu/cosmac/cosmac.cpp
+++ b/src/devices/cpu/cosmac/cosmac.cpp
@@ -391,7 +391,9 @@ void cosmac_device::device_reset()
set_q_flag(0);
m_df = 0;
m_p = 0;
- rand_memory(m_r, sizeof(m_r));
+
+ for (int i = 0; i < ARRAY_LENGTH(m_r); i++)
+ m_r[i] = machine().rand() & 0xffff;
}