annotate kernel/memory.c3 @ 353:b8ad45b3a573

Started with strings
author Windel Bouwman
date Sun, 09 Mar 2014 18:49:10 +0100
parents 6753763d3bec
children
rev   line source
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
1 module memory;
293
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 283
diff changeset
2
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
3 import process;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
4
301
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 296
diff changeset
5 var int ptr;
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
6
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 293
diff changeset
7 function u8* Alloc(int size)
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
8 {
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 293
diff changeset
9 ptr = ptr + size;
301
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 296
diff changeset
10 return cast<u8*>(ptr);
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
11 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
12
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
13