view kernel/memory.c3 @ 315:084cccaa5deb

Added console and screen
author Windel Bouwman
date Sat, 21 Dec 2013 10:03:01 +0100
parents 6753763d3bec
children
line wrap: on
line source

module memory;

import process;

var int ptr;

function u8* Alloc(int size)
{
    ptr = ptr + size;
    return cast<u8*>(ptr);
}