annotate kernel/memory.c3 @ 283:c9781c73e7e2

Added first kernel files
author Windel Bouwman
date Fri, 15 Nov 2013 12:26:50 +0100
parents
children 6aa721e7b10b
rev   line source
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
1 module memory;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
2 import process;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
3
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
4 uint8_t* ptr;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
5
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
6 func uint8_t* Alloc(int size)
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
7 {
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
8 ptr += size;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
9 return ptr;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
10 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
11
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
12