summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/devcpu.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-06-09 15:32:01 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-06-09 15:32:01 +0000
commitebdc4525f96f465a61acb76c728de48b3a89800c (patch)
tree93331b1f0dbf2646d6308550f774588a414b4197 /src/emu/devcpu.c
parentd4e1e8c26622305f4ad0d2c7a58a9f8e3262d370 (diff)
Tweak to s2650 IRQ cycle handling to fix gcc codegen bug.
Added asserts to catch other unexpected situations.
Diffstat (limited to 'src/emu/devcpu.c')
-rw-r--r--src/emu/devcpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/devcpu.c b/src/emu/devcpu.c
index 2bf5d32b0cf..9f9a4d752aa 100644
--- a/src/emu/devcpu.c
+++ b/src/emu/devcpu.c
@@ -312,6 +312,8 @@ void cpu_device::device_start()
// get our icount pointer
m_icount = reinterpret_cast<int *>(get_legacy_runtime_ptr(CPUINFO_PTR_INSTRUCTION_COUNTER));
+ assert(m_icount != 0);
+ *m_icount = 0;
}