about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-06-24 17:58:40 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-06-24 17:58:40 +0200
commit0ce5f34f8c14f517b262a1e9331ddeeaa00380de (patch)
tree84b1efb74fb928886bf5a482063ff9a379994ba3 /src
parent579ae99d1b96f44709a4b4396d59d3e15bda26f7 (diff)
downloadbox64-0ce5f34f8c14f517b262a1e9331ddeeaa00380de.tar.gz
box64-0ce5f34f8c14f517b262a1e9331ddeeaa00380de.zip
[INTERPRETER] Added 32bits F1 opcode
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emu/x64run.c b/src/emu/x64run.c
index e56a0431..9d28ae27 100644
--- a/src/emu/x64run.c
+++ b/src/emu/x64run.c
@@ -1871,6 +1871,16 @@ x64emurun:
             }
             #endif
             break;
+        case 0xF1:                      /* INT1 */
+            if(!rex.is32bits) {
+                unimp = 1;
+                goto fini;
+            }
+            emu->old_ip = R_RIP;
+            #ifndef TEST_INTERPRETER
+            emit_signal(emu, SIGSEGV, (void*)R_RIP, 128);
+            #endif
+            break;
 
         case 0xF4:                      /* HLT */
             // this is a privilege opcode...