From 9c4907d078f0cc040f016d67113c6869faa5dee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Mon, 31 Mar 2008 14:43:34 +0000 Subject: [PATCH] some vga bioses scramble the high part of ax for int10/ah=1a (fixes Gizmos&Gadgets graphics card detection) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3136 --- src/ints/int10.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ints/int10.cpp b/src/ints/int10.cpp index 3e053d62..2261354e 100644 --- a/src/ints/int10.cpp +++ b/src/ints/int10.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: int10.cpp,v 1.50 2008-03-14 18:16:34 c2woody Exp $ */ +/* $Id: int10.cpp,v 1.51 2008-03-31 14:43:34 c2woody Exp $ */ #include "dosbox.h" #include "mem.h" @@ -426,7 +426,7 @@ graphics_chars: else reg_bx=dccentry; } else reg_bx=0xffff; } else reg_bx=0xffff; - reg_al=0x1A; + reg_ax=0x1A; // high part destroyed or zeroed depending on BIOS } else if (reg_al==1) { // set dcc Bit8u newidx=0xff; // walk the tables... @@ -450,7 +450,7 @@ graphics_chars: } real_writeb(BIOSMEM_SEG,BIOSMEM_DCC_INDEX,newidx); - reg_al=0x1A; + reg_ax=0x1A; // high part destroyed or zeroed depending on BIOS } break; case 0x1B: /* functionality State Information */