File: memory.c

package info (click to toggle)
invaders 1.0.0-19
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 324 kB
  • sloc: ansic: 2,231; sh: 56; asm: 28; makefile: 17
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;
};