From f9ac735c985ad0e35914e629397f3e070d0230a4 Mon Sep 17 00:00:00 2001 From: ripsaw8080 Date: Wed, 30 May 2018 12:52:17 +0000 Subject: [PATCH] Be less specific about the jump instruction when identifying a video BIOS. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4110 --- src/dos/dos_programs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dos/dos_programs.cpp b/src/dos/dos_programs.cpp index f09b55dc..bb442481 100644 --- a/src/dos/dos_programs.cpp +++ b/src/dos/dos_programs.cpp @@ -908,7 +908,7 @@ public: /* try to identify ROM type */ PhysPt rom_base = 0; if (data_read >= 0x4000 && rom_buffer[0] == 0x55 && rom_buffer[1] == 0xaa && - rom_buffer[3] == 0xeb && strncmp((char*)(&rom_buffer[0x1e]), "IBM", 3) == 0) { + (rom_buffer[3] & 0xfc) == 0xe8 && strncmp((char*)(&rom_buffer[0x1e]), "IBM", 3) == 0) { if (!IS_EGAVGA_ARCH) { WriteOut(MSG_Get("PROGRAM_LOADROM_INCOMPATIBLE"));