about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-08-09 21:28:35 -0700
committerKartik Agaram <vc@akkartik.com>2018-08-09 21:28:35 -0700
commitf2889b002ab36e13ac5771cf33635ec35cfc3b34 (patch)
treefeeff663ebfa2c24424e2d33e02acb81b3145402 /subx
parent5852bb94373c7b8dddd7c4b0b5a105b2d769d4ac (diff)
downloadmu-f2889b002ab36e13ac5771cf33635ec35cfc3b34.tar.gz
4498
Diffstat (limited to 'subx')
-rw-r--r--subx/010---vm.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/subx/010---vm.cc b/subx/010---vm.cc
index c467255b..5bdd1dd1 100644
--- a/subx/010---vm.cc
+++ b/subx/010---vm.cc
@@ -165,6 +165,24 @@ void run_one_instruction() {
       exit(1);
     }
     break;
+  case 0xf2:
+    switch(op2 = next()) {
+    // End Two-Byte Opcodes Starting With f2
+    case 0x0f:
+      switch(op3 = next()) {
+      // End Three-Byte Opcodes Starting With f2 0f
+      default:
+        cerr << "unrecognized third opcode after f2 0f: " << HEXBYTE << NUM(op3) << '\n';
+        DUMP("");
+        exit(1);
+      }
+      break;
+    default:
+      cerr << "unrecognized second opcode after f2: " << HEXBYTE << NUM(op2) << '\n';
+      DUMP("");
+      exit(1);
+    }
+    break;
   case 0xf3:
     switch(op2 = next()) {
     // End Two-Byte Opcodes Starting With f3