summaryrefslogtreecommitdiff
path: root/asm/int_syscall_handler.asm
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-10-20 18:54:18 +0200
committerMichal Idziorek <m.i@gmx.at>2014-10-20 18:54:18 +0200
commit813272cd88cc6c0a1dfbb121d2130fc849042c8a (patch)
tree61b8ede4a5c191c491621f0185d3a442ff5407dd /asm/int_syscall_handler.asm
parent2f6fe94d436347c4d886407dbfd44b6ac1aa41fa (diff)
1st userspace programm and partial newlib support!
Diffstat (limited to 'asm/int_syscall_handler.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
+