From ebd36a3f379ef0c5707fb9b019fd287212854c92 Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Thu, 22 Oct 2026 18:55:18 +0100 Subject: [PATCH] Fix 32-bit POP instruction handling --- cpu.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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; } -- 2.34.1