From 014326476f5285ada5d3d8fbcdd98846dbf28243 Mon Sep 17 00:00:00 2001 From: ripsaw8080 Date: Mon, 4 Feb 2019 15:09:56 +0000 Subject: [PATCH] CMOS equipment list startup display mode bits differ from BIOS on EGA/VGA; fixes Sauro. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4186 --- src/ints/bios.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ints/bios.cpp b/src/ints/bios.cpp index ce9b90b0..ef906283 100644 --- a/src/ints/bios.cpp +++ b/src/ints/bios.cpp @@ -1283,6 +1283,7 @@ public: // Gameport config |= 0x1000; mem_writew(BIOS_CONFIGURATION,config); + if (IS_EGAVGA_ARCH) config &= ~0x30; //EGA/VGA startup display mode differs in CMOS CMOS_SetRegister(0x14,(Bit8u)(config&0xff)); //Should be updated on changes /* Setup extended memory size */ IO_Write(0x70,0x30); @@ -1337,6 +1338,7 @@ void BIOS_SetComPorts(Bit16u baseaddr[]) { equipmentword &= (~0x0E00); equipmentword |= (portcount << 9); mem_writew(BIOS_CONFIGURATION,equipmentword); + if (IS_EGAVGA_ARCH) equipmentword &= ~0x30; //EGA/VGA startup display mode differs in CMOS CMOS_SetRegister(0x14,(Bit8u)(equipmentword&0xff)); //Should be updated on changes }