about summary refs log tree commit diff stats
path: root/subx/019syscalls.cc
diff options
context:
space:
mode:
Diffstat (limited to 'subx/019syscalls.cc')
-rw-r--r--subx/019syscalls.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/subx/019syscalls.cc b/subx/019syscalls.cc
index 96c11ee0..b83b92db 100644
--- a/subx/019syscalls.cc
+++ b/subx/019syscalls.cc
@@ -14,6 +14,11 @@ case 0xcd: {  // int imm8 (software interrupt)
 void process_int80() {
   switch (Reg[EAX].u) {
   case 1:
+    cerr << "result: " << NUM(Mem.at(0x08048000)) << '\n';
     exit(Reg[EBX].u);
+    break;
+  case 3:
+    read(/*file descriptor*/Reg[EBX].u, /*memory buffer*/&Mem.at(Reg[ECX].u), /*size*/Reg[EDX].u);
+    break;
   }
 }