c assembly implementation of memory manager for later work on simple OS kernel implementation