From 4dfc36ae47d77207045f218fbc11bfbbe32744ab Mon Sep 17 00:00:00 2001 From: AJR Date: Thu, 19 Oct 2023 11:37:00 -0400 Subject: pokey: Latch current value of keyboard count when registering presses in non-debounce mode. Fixes start button not responding in a5200:pitfall. --- src/devices/sound/pokey.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/sound/pokey.cpp b/src/devices/sound/pokey.cpp index c0fcd9f87f6..35f389fcd58 100644 --- a/src/devices/sound/pokey.cpp +++ b/src/devices/sound/pokey.cpp @@ -505,7 +505,7 @@ void pokey_device::step_keyboard() { if (ret & 1) { - m_KBCODE = m_kbd_latch; + m_KBCODE = (m_SKCTL & SK_DEBOUNCE) ? m_kbd_latch : (m_kbd_latch & 0xc0) | m_kbd_cnt; m_SKSTAT |= SK_KEYBD; if (m_IRQEN & IRQ_KEYBD) { -- cgit v1.2.3