From: Robert Pengelly Date: Thu, 29 Oct 2026 20:24:09 +0000 (+0000) Subject: Fix EMM386 and OPTi audio detection X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=fc29225ae564439f26aa0d729675cc2cbe6bb52b;p=dosemu.git Fix EMM386 and OPTi audio detection --- diff --git a/cpu.c b/cpu.c index f0e09ec..a6d4fa3 100644 --- a/cpu.c +++ b/cpu.c @@ -1743,7 +1743,7 @@ static int io_absent_sound_port (uint16_t port) { } if ((port >= 0x788 && port <= 0x78B) || (port >= 0xB88 && port <= 0xB8B) || - (port >= 0xF88 && port <= 0xF8B) || (port >= 0x1388 && port <= 0x138B) || + (port >= 0xF88 && port <= 0xF8F) || (port >= 0x1388 && port <= 0x138B) || (port >= 0x1788 && port <= 0x178B) || (port >= 0x1B88 && port <= 0x1B8B)) { return 1; } diff --git a/interrupts.c b/interrupts.c index 5ff82c9..d3adf6c 100644 --- a/interrupts.c +++ b/interrupts.c @@ -12270,6 +12270,10 @@ void native_interrupt (CPU8086 *cpu, uint8_t interrupt_number) { case 0x67: + if (cpu->regs[REG_AX] == 0xFFA5) { + break; /* EMM386 installation check: not installed */ + } + if (cpu->regs[REG_AX] == 0xDE00) { cpu->regs[REG_AX] = 0x8400; } else {