From b6633aa3062d5d6c7616bacf22815e606b181841 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 26 Sep 2023 02:28:51 +0800 Subject: Ignore 2E CS prefix on LOCK opcodes (helps StardewValley on Ubuntu 20.04/AmpereAltra machine) --- src/emu/x64runf0.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/emu/x64runf0.c b/src/emu/x64runf0.c index e1dbacea..e0225f57 100644 --- a/src/emu/x64runf0.c +++ b/src/emu/x64runf0.c @@ -48,6 +48,8 @@ uintptr_t RunF0(x64emu_t *emu, rex_t rex, uintptr_t addr) #endif opcode = F8; + while(opcode==0x2E) // ignoring CS: prefix + opcode = F8; // REX prefix before the F0 are ignored rex.rex = 0; if(!rex.is32bits) -- cgit 1.4.1