From 8d7a6c03eb19e944a5b878482a88cdfb3ab15ca9 Mon Sep 17 00:00:00 2001 From: SarahW Date: Wed, 28 Feb 2018 21:27:14 +0000 Subject: [PATCH] Fixed MDA/CGA switch on Xi8088. Patch from EluanCM. --- src/keyboard_at.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/keyboard_at.c b/src/keyboard_at.c index 4cc899c..c2e8de8 100644 --- a/src/keyboard_at.c +++ b/src/keyboard_at.c @@ -604,7 +604,10 @@ void keyboard_at_reset() keyboard_at.mem[0] = 0x11; keyboard_at.wantirq = 0; keyboard_at.output_port = 0xcf; - keyboard_at.input_port = (video_is_mda()) ? 0xf0 : 0xb0; + if (romset == ROM_XI8088) + keyboard_at.input_port = (video_is_mda()) ? 0xb0 : 0xf0; + else + keyboard_at.input_port = (video_is_mda()) ? 0xf0 : 0xb0; keyboard_at.out_new = -1; keyboard_at.last_irq = 0;