From de363647a85b18820cc81c1e4d7f4d459a7ed47f Mon Sep 17 00:00:00 2001 From: AJR Date: Sat, 18 Mar 2023 20:06:12 -0400 Subject: mc68hc11: Fix WAI handling for now --- src/devices/cpu/mc68hc11/mc68hc11.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/cpu/mc68hc11/mc68hc11.cpp b/src/devices/cpu/mc68hc11/mc68hc11.cpp index 253927ed71c..948f00cd273 100644 --- a/src/devices/cpu/mc68hc11/mc68hc11.cpp +++ b/src/devices/cpu/mc68hc11/mc68hc11.cpp @@ -1177,8 +1177,8 @@ void mc68hc11_cpu_device::check_irq_lines() m_ccr |= CC_I; //irq taken, mask the flag if (level < 0x06) m_ccr |= CC_X; - if(m_wait_state == 1) { m_wait_state = level == 0 ? 0 : 2; } - if(m_stop_state == 1) { m_stop_state = 2; } + if(m_wait_state == 1) { m_wait_state = 0; } + if(m_stop_state == 1) { m_stop_state = 0; } if (level < 0x05 || (level == 0x06 && BIT(m_option, 5))) set_irq_state(level, false); // auto-ack edge-triggered IRQ } -- cgit v1.2.3