about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-04 12:00:04 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-04 12:00:04 +0100
commit2101c52e2d14878a793622b712e8be8c6b2eb530 (patch)
treee335aa2f7ce835a6f449ac667a6c7715a2b09d3d /src
parentabb74f7f760050186127f33ef9bb708e7b62526f (diff)
downloadbox64-2101c52e2d14878a793622b712e8be8c6b2eb530.tar.gz
box64-2101c52e2d14878a793622b712e8be8c6b2eb530.zip
Added REX 8D LEA opcode
Diffstat (limited to 'src')
-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 66db0709..d25ba332 100755
--- a/src/emu/x64run.c
+++ b/src/emu/x64run.c
@@ -243,6 +243,16 @@ x64emurun:
                 ED->dword[0] = GD->dword[0];
             break;
 
+        case 0x8D:                      /* LEA Gd,M */
+            nextop = F8;
+            GETED;
+            GETGD;
+            if(rex.w)
+                GD->q[0] = (uint64_t)ED;
+            else
+                GD->dword[0] = (uint32_t)ED;
+            break;
+
         default:
             unimp = 1;
             goto fini;