view 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 source

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);
    }
}