Mercurial > lcfOS
view kernel/src/memory.c3 @ 381:6df89163e114
Fix section and ldr pseudo instruction
author | Windel Bouwman |
---|---|
date | Sat, 26 Apr 2014 17:41:56 +0200 |
parents | 9667d78ba79e |
children | 2ec730e45ea1 |
line wrap: on
line source
module memory; import arch; import io; var int ptr; function void init() { ptr = 0; io.print2("ptr = ", ptr); // TODO } function u8* Alloc(int size) { ptr = ptr + size; return cast<u8*>(ptr); }