Mercurial > lcfOS
comparison kernel/memory.c3 @ 296:9417caea2eb3
Directorized some backend files
author | Windel Bouwman |
---|---|
date | Sun, 01 Dec 2013 13:36:58 +0100 |
parents | 6aa721e7b10b |
children | 6753763d3bec |
comparison
equal
deleted
inserted
replaced
295:917eab04b8b7 | 296:9417caea2eb3 |
---|---|
1 module memory; | 1 module memory; |
2 | 2 |
3 import process; | 3 import process; |
4 | 4 |
5 var uint8_t* ptr; | 5 var u8* ptr; |
6 | 6 |
7 function uint8_t* Alloc(int size) | 7 function u8* Alloc(int size) |
8 { | 8 { |
9 ptr += size; | 9 ptr = ptr + size; |
10 return ptr; | 10 return ptr; |
11 } | 11 } |
12 | 12 |
13 | 13 |