Skip to content

Commit

Permalink
4407 - error message on unimplemented syscalls
Browse files Browse the repository at this point in the history
Fixes #9.
  • Loading branch information
akkartik committed Jul 25, 2018
1 parent 00c2ca0 commit 95fbb9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions subx/019syscalls.cc
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit 95fbb9b

Please sign in to comment.