summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/hcd62121/hcd62121.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/hcd62121/hcd62121.cpp')
-rw-r--r--src/devices/cpu/hcd62121/hcd62121.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/cpu/hcd62121/hcd62121.cpp b/src/devices/cpu/hcd62121/hcd62121.cpp
index f45ebdbe03d..692297048c0 100644
--- a/src/devices/cpu/hcd62121/hcd62121.cpp
+++ b/src/devices/cpu/hcd62121/hcd62121.cpp
@@ -32,15 +32,15 @@ const device_type HCD62121 = &device_creator<hcd62121_cpu_device>;
hcd62121_cpu_device::hcd62121_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: cpu_device(mconfig, HCD62121, "Hitachi HCD62121", tag, owner, clock, "hcd62121", __FILE__)
, m_program_config("program", ENDIANNESS_BIG, 8, 24, 0)
- , m_io_config("io", ENDIANNESS_BIG, 8, 8, 0)
- , m_sp(0)
+ , m_io_config("io", ENDIANNESS_BIG, 8, 8, 0), m_prev_pc(0)
+ , m_sp(0)
, m_ip(0)
, m_dsize(0)
, m_cseg(0)
, m_dseg(0)
, m_sseg(0)
, m_f(0)
- , m_lar(0)
+ , m_lar(0), m_program(nullptr), m_io(nullptr), m_icount(0)
{
}
@@ -493,9 +493,9 @@ void hcd62121_cpu_device::device_reset()
m_f = 0;
m_dsize = 0;
- for( int i = 0; i < 0x80; i++ )
+ for(auto & elem : m_reg)
{
- m_reg[i] = 0;
+ elem = 0;
}
}