Mercurial > lcfOS
diff kernel/kernel.c3 @ 353:b8ad45b3a573
Started with strings
author | Windel Bouwman |
---|---|
date | Sun, 09 Mar 2014 18:49:10 +0100 |
parents | 899ae3aea803 |
children | 5477e499b039 |
line wrap: on
line diff
--- a/kernel/kernel.c3 Sun Mar 09 11:55:55 2014 +0100 +++ b/kernel/kernel.c3 Sun Mar 09 18:49:10 2014 +0100 @@ -8,8 +8,9 @@ // Main entry point of the kernel: function void start() { - arch.init() + arch.init(); + print("Welcome to lcfos!"); process.init(); //memory:init(); @@ -20,6 +21,29 @@ while(true) {} } +function int strlen(string txt) +{ + +} + +function int getchar(string txt, int index) +{ + if (index < strlen(txt)) + { + } +} + +function void print(string txt) +{ + var int i; + i = 0; + + while (i < strlen(txt)) + { + arch.putc(getchar(txt, i)); + i = i + 1; + } +} function void panic() {