From 0a457f8167333d03fcc5d8406da2123f2fb2f3c3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 5 Jun 2017 00:32:40 +0200 Subject: [PATCH] Fixed the AT keyboard input port operation, fixes the Password cleared by jumper message on the Award 430VX PCI. --- src/keyboard_at.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keyboard_at.c b/src/keyboard_at.c index 06fba2399..fbd9c02e1 100644 --- a/src/keyboard_at.c +++ b/src/keyboard_at.c @@ -645,7 +645,8 @@ bad_command: break; case 0xc0: /*Read input port*/ - keyboard_at_adddata((keyboard_at.input_port & 0xfc) | 0x84 | fdc_ps1_525()); + keyboard_at_adddata(keyboard_at.input_port | 4 | fdc_ps1_525()); + keyboard_at.input_port = ((keyboard_at.input_port + 1) & 3) | (keyboard_at.input_port & 0xfc) | fdc_ps1_525(); break; case 0xc1: /*Copy bits 0 to 3 of input port to status bits 4 to 7*/