summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2023-10-19 11:37:00 -0400
committer AJR <ajrhacker@users.noreply.github.com>2023-10-19 11:37:00 -0400
commit4dfc36ae47d77207045f218fbc11bfbbe32744ab (patch)
tree80994478d62614c509cad4f13cb5d1d7611e84e5 /src/devices
parentc662f2ec6bcb25e340dea637461c6ac7ab04465e (diff)
pokey: Latch current value of keyboard count when registering presses in non-debounce mode. Fixes start button not responding in a5200:pitfall.
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/sound/pokey.cpp2
1 files changed, 1 insertions, 1 deletions
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)
{