diff kernel/io.c3 @ 355:c2ddc8a36f5e

Enabled optimization
author Windel Bouwman
date Fri, 14 Mar 2014 10:30:13 +0100
parents
children 52492b304adf
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/kernel/io.c3	Fri Mar 14 10:30:13 2014 +0100
@@ -0,0 +1,24 @@
+module io;
+import arch;
+
+function void print(string txt)
+{
+    var int i;
+    i = 0;
+
+    while (i < txt->len)
+    {
+        arch.putc(cast<int>(txt->txt[i]));
+        i = i + 1;
+    }
+}
+
+function void print_int(int i)
+{
+    // int txt[20];
+    while (i != 0)
+    {
+        arch.putc(1);
+    }
+}
+