From 8f655ccc0d5cda187826196a3046f4b7277c534c Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Fri, 22 Aug 2003 08:09:39 +0000 Subject: [PATCH] Reset the CPU Window on mode set Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1193 --- src/ints/int10_modes.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ints/int10_modes.cpp b/src/ints/int10_modes.cpp index b716e043..0a990b1f 100644 --- a/src/ints/int10_modes.cpp +++ b/src/ints/int10_modes.cpp @@ -434,8 +434,11 @@ dac_text16: IO_Write(0x3df,0x80); //Enter 32k mode and banks on 0 break; } + /* Setup the CPU Window */ + IO_Write(0x3d4,0x6a); + IO_Write(0x3d5,0); + /* Setup some remaining S3 registers */ - IO_Write(0x3d4,0x31);IO_Write(0x3d5,0x9); //Enable banked memory and 256k+ access IO_Write(0x3d4,0x58);IO_Write(0x3d5,0x3); //Enable 8 mb of linear addressing IO_Write(0x3d4,0x38);IO_Write(0x3d5,0x48); //Register lock 1