From e35907e54e0863a807ae3445ed68615e4d03f294 Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 25 Feb 2020 16:21:27 -0500 Subject: i8279: Fix accidentally uncovered crash in turbo (nw) This device emulation is anything but robust. --- src/devices/machine/i8279.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/devices/machine/i8279.cpp b/src/devices/machine/i8279.cpp index c030bae7b1d..12f2a7cd6dd 100644 --- a/src/devices/machine/i8279.cpp +++ b/src/devices/machine/i8279.cpp @@ -277,6 +277,10 @@ void i8279_device::timer_mainloop() bool ctrl_key = 1; bool strobe_pulse = 0; + // hack to prevent infinite loops + if (decoded && m_scanner == 0) + m_scanner = 1; + // keyboard // type 0 = kbd, 2-key lockout // type 1 = kdb, n-key -- cgit v1.2.3