Fixed word pushes onto the stack in cpu/x86seg.c, fixes Windows 3.0 on 386SX, closes #1128.

This commit is contained in:
OBattler
2020-11-27 02:59:56 +01:00
parent 7c78fa4672
commit 1df797dfda

View File

@@ -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);