Skip to content
David Schmidt edited this page Dec 16, 2017 · 9 revisions

The Memory Manager Library provides a handle based memory manager with backing store. It automatically searches for the best backing store device: RAM disk, then hard disk, then floppy disk.

Compatibility: II, ///

Usage: include "inc/memmgr.plh"

Values:

//
// Max size of a memory block
//
const MAX_MEMBLK_SIZE = $2000

Functions:

//
// Utility Functions
//
sweep()#0
brk(addr)
sbrk(size)
//
// Memory Handle Functions
//
hmemNew(size)
hmemLock(hmem)
hmemUnlock(hmem)#0
hmemRef(hmem)#0
hmemDel(hmem)#0
hmemFre(lptr)

Source Code: memmgr.pla

Sample Source: memtest.pla

Clone this wiki locally