From: Robert Pengelly Date: Fri, 23 Oct 2026 08:03:13 +0000 (+0100) Subject: Implement WAIT (0x9B) opcode support X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=56187112a265a871105be78a56e3cb56ec5c7903;p=dosemu.git Implement WAIT (0x9B) opcode support --- diff --git a/cpu.c b/cpu.c index eb9d789..086ee31 100644 --- a/cpu.c +++ b/cpu.c @@ -4260,6 +4260,26 @@ fetch_instruction: } + case 0x9B: /* WAIT / FWAIT */ + + if ((cpu->cr0 & 0x0000000AUL) == 0x0000000AUL) { + + cpu->ip = (uint32_t) old_ip; + + if (cpu->cr0 & 1) { + + if (cpu_protected_interrupt (cpu, 7) != 0) { + return -1; + } + + } else { + handle_interrupt (cpu, 7); + } + + } + + break; + case 0x9C: /* PUSHF (Push Flags onto Stack) */ if (cpu->has_operand_override) {