annotate cos/hello/liblcfos.c @ 215:c1ccb1cb4cef

Major changes in c3 frontend
author Windel Bouwman
date Fri, 05 Jul 2013 13:00:03 +0200
parents a1c9c2158e99
children
rev   line source
38
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
1
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
2 /* Defines all system calls */
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
3
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
4 #include "liblcfos.h"
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
5
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
6 /* Exit program system call */
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
7 void exit()
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
8 {
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
9 //syscall(EXIT);
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
10 }
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
11
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
12 /* Print string to screen */
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
13 void print_string(char *str)
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
14 {
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
15 // TODO:
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
16 // syscall(WRITESTR, str);
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
17 if (str[0] == 0)
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
18 {
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
19 return;
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
20 }
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
21 }
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
22
a1c9c2158e99 Directory cleanup
windel
parents:
diff changeset
23