how memory map
add segment entry