Fixed MDA/CGA switch on Xi8088. Patch from EluanCM.

This commit is contained in:
SarahW 2018-02-28 21:27:14 +00:00
commit 8d7a6c03eb

View file

@ -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;