comparison kernel/io.c3 @ 355:c2ddc8a36f5e

Enabled optimization
author Windel Bouwman
date Fri, 14 Mar 2014 10:30:13 +0100
parents
children 52492b304adf
comparison
equal deleted inserted replaced
354:5477e499b039 355:c2ddc8a36f5e
1 module io;
2 import arch;
3
4 function void print(string txt)
5 {
6 var int i;
7 i = 0;
8
9 while (i < txt->len)
10 {
11 arch.putc(cast<int>(txt->txt[i]));
12 i = i + 1;
13 }
14 }
15
16 function void print_int(int i)
17 {
18 // int txt[20];
19 while (i != 0)
20 {
21 arch.putc(1);
22 }
23 }
24