about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-25 15:34:55 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-25 15:34:55 -0700
commit95fbb9bfdc5691a7f22a20196eba4a9a95f473de (patch)
tree807baa701142a1a67ad500613005cf11f1d1b454
parent00c2ca083e004e9fdf3176f3362fd3b1091370ae (diff)
downloadmu-95fbb9bfdc5691a7f22a20196eba4a9a95f473de.tar.gz
4407 - error message on unimplemented syscalls
Fixes #9.
-rw-r--r--subx/019syscalls.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/subx/019syscalls.cc b/subx/019syscalls.cc
index ec28515b..77a8d698 100644
--- a/subx/019syscalls.cc
+++ b/subx/019syscalls.cc
@@ -26,6 +26,8 @@ void process_int80() {
   case 4:
     Reg[EAX].i = write(/*file descriptor*/Reg[EBX].u, /*memory buffer*/mem_addr_u8(Reg[ECX].u), /*size*/Reg[EDX].u);
     break;
+  default:
+    raise << HEXWORD << EIP << ": unimplemented syscall " << Reg[EAX].u << '\n' << end();
   }
 }