1
0
Fork 0

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
This commit is contained in:
ripsaw8080 2018-05-30 12:52:17 +00:00
parent 5bb10db88b
commit f9ac735c98

View file

@ -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"));