about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-09-26 02:28:51 +0800
committerptitSeb <sebastien.chev@gmail.com>2023-09-26 02:28:51 +0800
commitb6633aa3062d5d6c7616bacf22815e606b181841 (patch)
tree66b2daa824ab5c1e97b237ecdeaaf66234723551 /src
parentc8651fb1f3afb18688b00e78ed0a6b2b1bd16c59 (diff)
downloadbox64-b6633aa3062d5d6c7616bacf22815e606b181841.tar.gz
box64-b6633aa3062d5d6c7616bacf22815e606b181841.zip
Ignore 2E CS prefix on LOCK opcodes (helps StardewValley on Ubuntu 20.04/AmpereAltra machine)
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64runf0.c2
1 files changed, 2 insertions, 0 deletions
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)