From: Robert Pengelly Date: Thu, 22 Oct 2026 17:55:18 +0000 (+0100) Subject: Fix 32-bit POP instruction handling X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=ebd36a3f379ef0c5707fb9b019fd287212854c92;p=dosemu.git Fix 32-bit POP instruction handling --- diff --git a/cpu.c b/cpu.c index cdbcbc9..b8d0872 100644 --- a/cpu.c +++ b/cpu.c @@ -3843,9 +3843,16 @@ fetch_instruction: } rm = decode_rm_operand (cpu, modrm); - value = pop16 (cpu); - operand_write16 (cpu, &rm, value); + if (cpu->has_operand_override) { + operand_write32 (cpu, &rm, pop32 (cpu)); + } else { + + value = pop16 (cpu); + operand_write16 (cpu, &rm, value); + + } + break; }