nitrologic / skid30

Acid Software's Amiga game Skidmarks turns 30
7 stars 1 forks source link

AllocMem(d0/d1) -198(a6) #6

Open nitrologic opened 11 months ago

nitrologic commented 11 months ago

Expand the ACID500 exec with memory allocation service.

Add allocation heaps to chipmem and fastmem address spaces.

Display block usage on a memory map in monitor.

nitrologic commented 11 months ago

A shit simple implementation (note note) for class acid68000:

int heapPointer = 0x60000;

// TODO - round size to page boundary

int allocate(int size, int bits) {
    int p = heapPointer;
    heapPointer += size;
    return p;
}