Mercurial > lcfOS
comparison 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 |
comparison
equal
deleted
inserted
replaced
380:67a584582aee | 381:6df89163e114 |
---|---|
1 module memory; | 1 module memory; |
2 | 2 |
3 import arch; | 3 import arch; |
4 import io; | |
4 | 5 |
5 var int ptr; | 6 var int ptr; |
6 | 7 |
7 function void init() | 8 function void init() |
8 { | 9 { |
9 arch.init(); | 10 ptr = 0; |
11 io.print2("ptr = ", ptr); | |
10 // TODO | 12 // TODO |
11 } | 13 } |
12 | 14 |
13 function u8* Alloc(int size) | 15 function u8* Alloc(int size) |
14 { | 16 { |