annotate kernel/memory.c3 @ 289:bd2593de3ff8

Semifix burn2
author Windel Bouwman
date Thu, 21 Nov 2013 15:46:50 +0100
parents c9781c73e7e2
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