getmemtype
memmap[i].type = getmemtype(md);
if (getmemtype(md) != BIM_Memory)
if (getmemtype(md) == BIM_Reserved)
memtype = getmemtype(md);