File: memory.c

package info (click to toggle)
invaders 1.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 176 kB
  • ctags: 192
  • sloc: ansic: 678; sh: 70; makefile: 39; asm: 28
file content (12 lines) | stat: -rw-r--r-- 168 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
#include "memory.h"

static uint8 *nextfree = (uint8*) 0x200000;

void *malloc (uint32 amount)
{
  void *retval = nextfree;

  nextfree += amount;

  return retval;
};