本文整理汇总了C++中address_space::unmap方法的典型用法代码示例。如果您正苦于以下问题:C++ address_space::unmap方法的具体用法?C++ address_space::unmap怎么用?C++ address_space::unmap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类address_space
的用法示例。
在下文中一共展示了address_space::unmap方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: emu_fatalerror
address_map::address_map(const address_space &space, offs_t start, offs_t end, int bits, UINT64 unitmask, device_t &device, address_map_delegate submap_delegate)
: m_spacenum(space.spacenum()),
m_databits(space.data_width()),
m_unmapval(space.unmap()),
m_globalmask(space.bytemask())
{
address_map_entry *e;
switch(m_databits) {
case 8:
e = add(device, start, end, (address_map_entry8 *)NULL);
break;
case 16:
e = add(device, start, end, (address_map_entry16 *)NULL);
break;
case 32:
e = add(device, start, end, (address_map_entry32 *)NULL);
break;
case 64:
e = add(device, start, end, (address_map_entry64 *)NULL);
break;
default:
throw emu_fatalerror("Trying to dynamically map a device on a space with a corrupt databits width");
}
e->set_submap(DEVICE_SELF, submap_delegate, bits, unitmask);
}
示例2:
address_map::address_map(const address_space &space, offs_t start, offs_t end, int bits, u64 unitmask, device_t &device, address_map_delegate submap_delegate)
: m_spacenum(space.spacenum()),
m_device(&device),
m_databits(space.data_width()),
m_unmapval(space.unmap()),
m_globalmask(space.bytemask())
{
range(start, end).set_submap(DEVICE_SELF, submap_delegate, bits, unitmask);
}