about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run6764.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/x64run6764.c b/src/emu/x64run6764.c
index e8d22ea9..af83db93 100644
--- a/src/emu/x64run6764.c
+++ b/src/emu/x64run6764.c
@@ -52,6 +52,11 @@ uintptr_t Run6764(x64emu_t *emu, rex_t rex, int rep, int seg, uintptr_t addr)
         opcode = F8;
     }
 
+    while (opcode >= 0x40 && opcode <= 0x4f) {
+        rex.rex = opcode;
+        opcode = F8;
+    }
+
     switch(opcode) {
 
         case 0x89:                      /* MOV FS:Ed, Gd */