stardot / MatrixBrandy

Matrix Brandy BASIC VI for Linux, Windows, MacOSX
http://brandy.matrixnetwork.co.uk/
44 stars 8 forks source link

Add Basalt-style dynamic memory allocator #75

Closed soruk42 closed 3 years ago

soruk42 commented 3 years ago

Basalt for RISC OS extends DIM to allocate Dynamic Memory Areas. In Matrix Brandy this can be a wrapper for malloc() and friends.

Syntax: DIM HIMEM a% 4095: REM claim DIM HIMEM a% 512: REM resize DIM HIMEM a% -1: REM release

soruk42 commented 3 years ago

This was easier to implement than I had imagined!