From ee103457fa9a7a48f0782efcafbc526fbde7a803 Mon Sep 17 00:00:00 2001 From: SarahW Date: Sat, 7 Mar 2020 14:36:30 +0000 Subject: [PATCH] Add waitstates to AT keyboard read. Fixes keyboard detection on Advanced/EV & ZP. --- src/keyboard_at.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/keyboard_at.c b/src/keyboard_at.c index 7ef516f..c298da7 100644 --- a/src/keyboard_at.c +++ b/src/keyboard_at.c @@ -663,6 +663,8 @@ void keyboard_at_write(uint16_t port, uint8_t val, void *priv) uint8_t keyboard_at_read(uint16_t port, void *priv) { uint8_t temp = 0xff; + + cycles -= ISA_CYCLES(8); // if (port != 0x61) pclog("keyboard_at : read %04X ", port); if (romset == ROM_XI8088 && port == 0x63) port = 0x61;