about summary refs log tree commit diff stats
path: root/src/emu
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-26 21:40:39 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-26 21:40:39 +0100
commit1a750182d625a80d4f89fa9f046a447f0cd50aed (patch)
tree35df9e016873a727a2dc40244f47ce758b90d5f9 /src/emu
parent03a69053a63b73614b80543ad4bdb3d5a878c9fe (diff)
downloadbox64-1a750182d625a80d4f89fa9f046a447f0cd50aed.tar.gz
box64-1a750182d625a80d4f89fa9f046a447f0cd50aed.zip
[DYNAREC] Added some more 66 0F opcodes, plus a few small bug fixes
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/x64run660f.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c
index a6d6acd5..7227f6f0 100644
--- a/src/emu/x64run660f.c
+++ b/src/emu/x64run660f.c
@@ -862,14 +862,14 @@ int Run660F(x64emu_t *emu, rex_t rex)
 

     case 0xC4:  /* PINSRW Gx,Ew,Ib */

         nextop = F8;

-        GETED(0);

+        GETED(1);

         GETGX;

         tmp8u = F8;

         GX->uw[tmp8u&7] = ED->word[0];   // only low 16bits

         break;

     case 0xC5:  /* PEXTRW Gw,Ex,Ib */

         nextop = F8;

-        GETEX(0);

+        GETEX(1);

         GETGD;

         tmp8u = F8;

         GD->dword[0] = EX->uw[tmp8u&7];  // 16bits extract, 0 extended