about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-04 17:56:39 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-04 17:56:39 +0100
commitd8551567ed2041b54f6f7f3b88b819c0fe90d693 (patch)
treeca0929c8ab5395aa3f47e841288e099026833cc5 /src
parent004c360720c0acd50fb6b6a3211df53d0a193e93 (diff)
downloadbox64-d8551567ed2041b54f6f7f3b88b819c0fe90d693.tar.gz
box64-d8551567ed2041b54f6f7f3b88b819c0fe90d693.zip
Added C3 RET opcode
Diffstat (limited to 'src')
-rwxr-xr-xsrc/emu/x64run.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/x64run.c b/src/emu/x64run.c
index 9421c249..abd60cd1 100755
--- a/src/emu/x64run.c
+++ b/src/emu/x64run.c
@@ -357,6 +357,11 @@ x64emurun:
                 GD->dword[0] = (uint32_t)(uintptr_t)ED;
             break;
 
+        case 0xC3:                      /* RET */
+            R_RIP = Pop(emu);
+            STEP
+            break;
+
         case 0xCC:                      /* INT 3 */
             x64Int3(emu);
             if(emu->quit) goto fini;