about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-04-21 11:44:11 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-04-21 11:44:11 +0200
commit102e6a1f616ad96c5a34a90f39af259c6d261e05 (patch)
tree97648e4ea834875dc6c94e2fe8e6d3eded9ba289 /src
parent460e6c517d38be6f8b300a2f8356d3cab058fcc6 (diff)
downloadbox64-102e6a1f616ad96c5a34a90f39af259c6d261e05.tar.gz
box64-102e6a1f616ad96c5a34a90f39af259c6d261e05.zip
[INTERP] Fixed EXTRQ opcode
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run660f.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c
index 557b34a9..12ba752a 100644
--- a/src/emu/x64run660f.c
+++ b/src/emu/x64run660f.c
@@ -1706,8 +1706,8 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr)
             #endif

         } else {

             GETEX(2);

-            tmp8u = F8&0x3f;

             tmp8s = F8&0x3f;

+            tmp8u = F8&0x3f;

             EX->q[0]>>=tmp8u;

             EX->q[0]&=((1<<(tmp8s+1))-1);

         }

@@ -1722,8 +1722,8 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr)
         } else {

             GETGX;

             GETEX(2);

-            tmp8u = GX->ub[0]&0x3f;

-            tmp8s = GX->ub[1]&0x3f;

+            tmp8s = GX->ub[0]&0x3f;

+            tmp8u = GX->ub[1]&0x3f;

             EX->q[0]>>=tmp8u;

             EX->q[0]&=((1<<(tmp8s+1))-1);

         }