view kernel/memory.c3 @ 353:b8ad45b3a573

Started with strings
author Windel Bouwman
date Sun, 09 Mar 2014 18:49:10 +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);
}