about summary refs log tree commit diff stats
path: root/src/emu
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-07-09 23:57:16 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-07-09 23:57:16 +0200
commita2ca22972c71eaac9c38bbae2709954b1e311d8d (patch)
tree160a11fd8fd99bb2d5ae0aa93e982ce71191e418 /src/emu
parentb05c449dd0460deb4d2007cd24cb03c82db2ebaf (diff)
downloadbox64-a2ca22972c71eaac9c38bbae2709954b1e311d8d.tar.gz
box64-a2ca22972c71eaac9c38bbae2709954b1e311d8d.zip
Added C2 opcode (for #44)
Diffstat (limited to 'src/emu')
-rwxr-xr-xsrc/emu/x64run.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/emu/x64run.c b/src/emu/x64run.c
index d3431c87..2566009e 100755
--- a/src/emu/x64run.c
+++ b/src/emu/x64run.c
@@ -1007,7 +1007,12 @@ x64emurun:
                     }
             }
             break;
-
+        case 0xC2:                      /* RETN Iw */
+            tmp16u = F16;
+            R_RIP = Pop(emu);
+            R_RSP += tmp16u;
+            STEP
+            break;
         case 0xC3:                      /* RET */
             R_RIP = Pop(emu);
             STEP