diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-25 15:34:55 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-25 15:34:55 -0700 |
commit | 95fbb9bfdc5691a7f22a20196eba4a9a95f473de (patch) | |
tree | 807baa701142a1a67ad500613005cf11f1d1b454 /subx | |
parent | 00c2ca083e004e9fdf3176f3362fd3b1091370ae (diff) | |
download | mu-95fbb9bfdc5691a7f22a20196eba4a9a95f473de.tar.gz |
4407 - error message on unimplemented syscalls
Fixes #9.
Diffstat (limited to 'subx')
-rw-r--r-- | subx/019syscalls.cc | 2 |
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(); } } |