Z80 Assembly 55: Memory Mapping and Allocation (Keeping RAM Organized)

The Challenge of Fragmented Memory In a simple Z80 OS, as programs are loaded and unloaded, the $64$ KB of RAM becomes fragmented (broken into small pieces of free and used memory). The OS kernel must have a fast way to find a contiguous block of free memory when a new program needs to be loaded. The Free List (Simple Allocation) The most common technique is the Free List, a simple linked list (Part 33) that tracks all available blocks of memory. ...

September 27, 2025