system.c
void *AllocateHighMemory(System *sys, size_t size)
{
    size = (size + ALIGN_MASK) & ~ALIGN_MASK;
    if (sys->nextHigh - size < sys->nextLow)
        Abort(sys, "insufficient memory");
    sys->nextHigh -= size;
    if (sys->heapSize - (sys->nextHigh - sys->nextLow) > sys->maxHeapUsed)
        sys->maxHeapUsed = sys->heapSize - (sys->nextHigh - sys->nextLow);
    return sys->nextHigh;
}
/* AllocateHighMemory - allocate high memory from the heap */
allocate high memory from the heap
allocate high memory from the heap
void *AllocateHighMemory(System *sys, size_t size)
{
    size = (size + ALIGN_MASK) & ~ALIGN_MASK;
    if (sys->nextHigh - size < sys->nextLow)
        Abort(sys, "insufficient memory");
    sys->nextHigh -= size;
    if (sys->heapSize - (sys->nextHigh - sys->nextLow) > sys->maxHeapUsed)
        sys->maxHeapUsed = sys->heapSize - (sys->nextHigh - sys->nextLow);
    return sys->nextHigh;
}
void * AllocateHighMemory ( System * sys , size_t size ) { size = ( size + ALIGN_MASK ) & ~ ALIGN_MASK ; if ( sys -> nextHigh - size < sys -> nextLow ) Abort ( sys , " " ) ; sys -> nextHigh -= size ; if ( sys -> heapSize - ( sys -> nextHigh - sys -> nextLow ) > sys -> maxHeapUsed ) sys -> maxHeapUsed = sys -> heapSize - ( sys -> nextHigh - sys -> nextLow ) ; return sys -> nextHigh ; }
AllocateHighMemory - allocate high memory from the heap
AllocateHighMemory - allocate high memory from the heap