annotate cos/hello/liblcfos.c @ 203:ca1ea402f6a1

Added some arm instructions
author Windel Bouwman
date Sat, 15 Jun 2013 19:13:05 +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