wm: teppich

ref: 40dcd63f5b1583af346e7d241211b2bf7026638a
dir: /include/mem.h/

View raw version
#pragma once
#define MEM_MAX 1024
#define BLOCKSIZE 64
#define MEM_BEG 0x200000
#define MEM_END 0xF00000

#define FREE 0
#define TAKEN 1

uint8 memap[MEM_MAX * 1024 / BLOCKSIZE];

int _malloc(uint16 size);
void* malloc(uint16 size);
int free(void* mem);