From 4e9400bfcad9e15d4432f70ce192bea410f4e5be Mon Sep 17 00:00:00 2001 From: SarahW Date: Tue, 16 Aug 2016 18:37:34 +0100 Subject: [PATCH] IBM PC now has correct memory size switch settings implemented - should now boot correctly on configurations other than 640kb. --- src/keyboard_xt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keyboard_xt.c b/src/keyboard_xt.c index 3ddd82b..af62d61 100644 --- a/src/keyboard_xt.c +++ b/src/keyboard_xt.c @@ -137,9 +137,9 @@ uint8_t keyboard_xt_read(uint16_t port, void *priv) if (romset == ROM_IBMPC) { if (keyboard_xt.pb & 0x04) - temp = 0x02; + temp = ((mem_size-64) / 32) & 0xf; else - temp = 0x01; + temp = ((mem_size-64) / 32) >> 4; } else {