From 4057f50057575e2a2d4edee15a42babee419aa8a Mon Sep 17 00:00:00 2001 From: Dean Beeler Date: Tue, 4 Nov 2003 03:40:22 +0000 Subject: [PATCH] Added port hack to Gravis to aid in GUS detection Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1396 --- src/hardware/adlib.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hardware/adlib.cpp b/src/hardware/adlib.cpp index 41db8d02..d1de1322 100644 --- a/src/hardware/adlib.cpp +++ b/src/hardware/adlib.cpp @@ -109,6 +109,10 @@ static Bit8u read_p388(Bit32u port) { static void write_p388(Bit32u port,Bit8u val) { regsel=val; + + // The following writes this value to ultrasounds equivalent register. + // I don't know of any other way to do this + IO_Write(0x248,val); } static void write_p389(Bit32u port,Bit8u val) {