about summary refs log tree commit diff stats
path: root/src/emu
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-07-05 10:25:09 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-07-05 10:25:09 +0200
commitabcb12f9ed9b154bcd3594686d7209b7dc3523ac (patch)
treef642feb7c0687f20551d687ed090afb465d8a8df /src/emu
parent283a4dda20b0dc54c70eaa9bb876a8510b603bb6 (diff)
downloadbox64-abcb12f9ed9b154bcd3594686d7209b7dc3523ac.tar.gz
box64-abcb12f9ed9b154bcd3594686d7209b7dc3523ac.zip
Added 0F C3 opcode ([DYNAREC] too) (for #20)
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/x64run0f.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index 81167450..8bb36279 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -1156,8 +1156,20 @@ int Run0F(x64emu_t *emu, rex_t rex)
                 GX->ud[i]=(tmp8s)?0xffffffff:0;

             }

             break;

-

-        case 0xC4:                       /* PINSRW Gm,Ew,Ib */

+        case 0xC3:                      /* MOVNTI Ed, Gd */

+            nextop = F8;

+            GETED(0);

+            GETGD;

+            if(rex.w)

+                ED->q[0] = GD->q[0];

+            else {

+                if(MODREG)

+                    ED->q[0] = GD->dword[0];

+                else

+                    ED->dword[0] = GD->dword[0];

+            }

+            break;

+        case 0xC4:                      /* PINSRW Gm,Ew,Ib */

             nextop = F8;

             GETED(0);

             GETGM;