summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
Diffstat (limited to 'asm')
-rw-r--r--asm/int_syscall_handler.asm10
1 files changed, 10 insertions, 0 deletions
diff --git a/asm/int_syscall_handler.asm b/asm/int_syscall_handler.asm
index e607ff5..37bc71a 100644
--- a/asm/int_syscall_handler.asm
+++ b/asm/int_syscall_handler.asm
@@ -3,6 +3,8 @@ global int_syscall_handler
[extern example_syscall]
[extern example_syscall_2]
+[extern syscall_outbyte]
+
[bits 32]
int_syscall_handler:
@@ -18,6 +20,9 @@ int_syscall_handler:
cmp eax, 20
je call_example_syscall_2
+ cmp eax, 61
+ je call_outbyte
+
done:
pop ebx
@@ -39,3 +44,8 @@ call_example_syscall:
call_example_syscall_2
call example_syscall_2
jmp done
+
+call_outbyte
+ call syscall_outbyte
+ jmp done
+