mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-03-11 20:34:17 +00:00
Page:
Memory Manager
Pages
32 Bit Integers
CATalog files
COPY files
Chat Client Server
Command Line & System Environment (CMDSYS)
Command Line Argument Parsing
Console I O
DELete fles
DHGR RGB Image Converter
DHGR SPRite EDitor
Double Hires Graphics
Double Lo Res Graphics
Double Lo Res Test
Fiber Threads
File I O
Game Port SPI I O
Game Port SPI SD FAT
Game Port Wiring
HTTP Server
Hello World
Hi Res Graphics
Hi Res Test
Home
Installation Guide
Joystick and Buzz
Lo Res Graphics Library
Long Jump
Memory Manager
Music Player
Music Sequencer
NEWDIR
Network I O
PLASM compiler
PLASMA Byte Codes
PLASMA JIT Compiler Implementation
Porting Guide
REName files
ROGUE
RPN Calculator
Rod's Colors
SANE Floating Point
Sieve
System Library
TYPE file
Trivial FTP Daemon
Variable assignment and addressing explained
ZIPCHIP
Zero Page Usage (Apple IIe 64K )
code text Editor
Clone
9
Memory Manager
David Schmidt edited this page 2017-12-15 22:26:42 -05:00
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
Home
Environment:
Command Line & System Environment