From 4ee83be7b5b5e239653dda36f23c71c9ad6f83ca Mon Sep 17 00:00:00 2001 From: SarahW Date: Sun, 15 Mar 2020 14:54:54 +0000 Subject: [PATCH] Don't add keyboard waitstates on AT or XT Model 286. Fixes POST of these machines at 6 MHz. --- src/keyboard_at.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/keyboard_at.c b/src/keyboard_at.c index 5643797..8fcb279 100644 --- a/src/keyboard_at.c +++ b/src/keyboard_at.c @@ -675,8 +675,9 @@ 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 (romset != ROM_IBMAT && romset != ROM_IBMXT286) + cycles -= ISA_CYCLES(8); // if (port != 0x61) pclog("keyboard_at : read %04X ", port); if (romset == ROM_XI8088 && port == 0x63) port = 0x61;