annotate user/hello.c3 @ 384:94f5b719ad0b

Small refactor
author Windel Bouwman
date Sun, 27 Apr 2014 17:50:25 +0200
parents 04cf4d26a3bc
children 6ae782a085e0
rev   line source
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
1 module hello;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
2 import lib;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
3
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
4 /*
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
5 Demo program running in userspace.
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
6 */
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
7
311
ff665880a6b0 Added testcase for kernel and userspace
Windel Bouwman
parents: 283
diff changeset
8 function void start()
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
9 {
313
04cf4d26a3bc Added constant function
Windel Bouwman
parents: 311
diff changeset
10 lib.print(9); // 'Hello space');
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
11 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
12