annotate cos/hello/liblcfos.c @ 150:4ae0e02599de

Added type check start and analyze phase
author Windel Bouwman
date Fri, 01 Mar 2013 16:53:22 +0100
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