Fragmentation demo of heap memory manager in banked ram

These files might not work on the most current version of the Commander X16, or these may be held over from the previous forum. To find previous versions of the emulator, so you can test old programs, please visit Our GitHub Page
Post Reply
User avatar
svenvandevelde
Posts: 488
Joined: Wed Dec 23, 2020 6:30 am
Location: Belgium, Antwerpen

Fragmentation demo of heap memory manager in banked ram

Post by svenvandevelde »


A demo showing a heap memory manager being functional, dynamically allocating and freeing memory blocks of various sizes in banked memory of the CX16.



Optimized logic. Now this little demo also shows the allocated memory and the free memory on the heap. Total memory free is not shown yet ... 


Attachments
Fragmentation demo of heap memory manager in banked ram
Fragmentation demo of heap memory manager in banked ram
Schermafbeelding 2021-12-26 070330.png (89.2 KiB) Viewed 448 times
cx16-heap-fragmentation1.prg
Fragmentation demo of heap memory manager in banked ram
(22.82 KiB) Downloaded 88 times
KICKC home page by Jesper Gravgaard.
My KICKC alpha with Commander X16 extensions.
Post Reply