projects
/
dosemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41631e3
)
Fix 32-bit POP instruction handling
author
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 22 Oct 2026 17:55:18 +0000
(18:55 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 22 Oct 2026 17:55:18 +0000
(18:55 +0100)
cpu.c
patch
|
blob
|
history
diff --git
a/cpu.c
b/cpu.c
index cdbcbc9841c1b38756c40972d2ded59b4326135e..b8d0872d32a080c3a01f6b2d88265059c3ffc5b3 100644
(file)
--- 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;
}