about summary refs log tree commit diff stats
path: root/src/emu/x64run.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-04 11:35:56 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-04 11:35:56 +0100
commit2aa303bb024fe68ae78dcd489010a3713aa4ae95 (patch)
tree2ef23d5281275077a321c18e506e55c38232bb70 /src/emu/x64run.c
parent9613868aa403ff5b06ebfea925ee986f5198b354 (diff)
downloadbox64-2aa303bb024fe68ae78dcd489010a3713aa4ae95.tar.gz
box64-2aa303bb024fe68ae78dcd489010a3713aa4ae95.zip
Fix REX handling and added REX 89 opcode
Diffstat (limited to 'src/emu/x64run.c')
-rwxr-xr-xsrc/emu/x64run.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emu/x64run.c b/src/emu/x64run.c
index 482c9518..b3ccd541 100755
--- a/src/emu/x64run.c
+++ b/src/emu/x64run.c
@@ -168,6 +168,16 @@ x64emurun:
             --R_RIP;
             break;
 
+        case 0x89:                    /* MOV Ed,Gd */
+            nextop = F8;
+            GETED;
+            GETGD;
+            if(rex.w)
+                ED->q[0] = GD->q[0];
+            else
+                ED->dword[0] = GD->dword[0];
+            break;
+
         default:
             unimp = 1;
             goto fini;