'Get the base address of a memory region.
:param str region: ID of the memory region
:return: Address of the memory region
:rtype: int'

def _region_base(self, region):

    if (region == 'global'):
        region_base_addr = 0
    elif region.startswith('stack_'):
        region_base_addr = self._stack_region_map.absolutize(region, 0)
    else:
        region_base_addr = self._generic_region_map.absolutize(region, 0)
    return region_base_addr
