about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-11-23 18:21:21 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-11-23 18:21:21 +0100
commitea8d7255463a32d495a08ee8f3cc8c6db11727cf (patch)
treed05e5cbb43aef13bfc527aae325c49136ad34714 /src
parentcfffbcc5be06d4147d41e70a5b0d382e1b0dd6f1 (diff)
downloadbox64-ea8d7255463a32d495a08ee8f3cc8c6db11727cf.tar.gz
box64-ea8d7255463a32d495a08ee8f3cc8c6db11727cf.zip
[INTERPRETER] LES/LDS are valid only if next byte has high bit not set
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/x64run.c b/src/emu/x64run.c
index 6548f6b3..312eac33 100644
--- a/src/emu/x64run.c
+++ b/src/emu/x64run.c
@@ -1356,7 +1356,7 @@ x64emurun:
             STEP2
             break;
         case 0xC4:                      /* LES Gd,Ed */
-            if(rex.is32bits) {
+            if(rex.is32bits && !(PK(0)&0x80)) {
                 nextop = F8;
                 GETED(0);
                 GETGD;
@@ -1369,7 +1369,7 @@ x64emurun:
             }
             break;
         case 0xC5:                      /* LDS Gd,Ed */
-            if(rex.is32bits) {
+            if(rex.is32bits && !(PK(0)&0x80)) {
                 nextop = F8;
                 GETED(0);
                 GETGD;