From 1df797dfda3e2f64b5a8215ae6a1682780be9eea Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 27 Nov 2020 02:59:56 +0100 Subject: [PATCH] Fixed word pushes onto the stack in cpu/x86seg.c, fixes Windows 3.0 on 386SX, closes #1128. --- src/cpu/x86seg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/x86seg.c b/src/cpu/x86seg.c index b15e4bd46..64ea5dd6f 100644 --- a/src/cpu/x86seg.c +++ b/src/cpu/x86seg.c @@ -808,8 +808,8 @@ void PUSHL(uint32_t v) { if (cpu_16bitbus) { - PUSHW(v & 0xffff); PUSHW(v >> 16); + PUSHW(v & 0xffff); } else { if (stack32) { writememl(ss, ESP - 4, v);