about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-26 08:34:34 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-26 08:34:34 +0100
commit065d91cf9bdb075f9f0ed04af6256f8f04adc37e (patch)
tree850810b75761fc87dd53676c1c56e64cabb9098d
parentacceb3155ae4ef3699352ac14888074da144c62c (diff)
downloadbox64-065d91cf9bdb075f9f0ed04af6256f8f04adc37e.tar.gz
box64-065d91cf9bdb075f9f0ed04af6256f8f04adc37e.zip
Added 66 8B opcode (was already in dynarec)
-rw-r--r--src/emu/x64run66.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/emu/x64run66.c b/src/emu/x64run66.c
index 73eb5417..8f93e27f 100644
--- a/src/emu/x64run66.c
+++ b/src/emu/x64run66.c
@@ -209,7 +209,20 @@ int Run66(x64emu_t *emu, rex_t rex, int rep)
         nextop = F8;

         GETEW(0);

         GETGW;

-        EW->word[0] = GW->word[0];

+        if(rex.w)

+            EW->q[0] = GW->q[0];

+        else

+            EW->word[0] = GW->word[0];

+        break;

+

+    case 0x8B:                              /* MOV Gw,Ew */

+        nextop = F8;

+        GETEW(0);

+        GETGW;

+        if(rex.w)

+            GW->q[0] = EW->q[0];

+        else

+            GW->word[0] = EW->word[0];

         break;

 

     case 0x90:                              /* NOP */