1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-28 21:49:27 +00:00

Fix bool combination.

This commit is contained in:
Thomas Harte 2024-04-22 22:06:09 -04:00
parent f86e9fe086
commit c485097eed

View File

@ -78,7 +78,7 @@ class MemoryMap {
const auto physical = physical_address(region, address); const auto physical = physical_address(region, address);
assert(physical <= 0xff'ffff); assert(physical <= 0xff'ffff);
return shadow_pages_[(physical >> 10) & 127] & shadow_banks_[physical >> 17]; return shadow_pages_[(physical >> 10) & 127] && shadow_banks_[physical >> 17];
} }
void write(const Region &region, uint32_t address, uint8_t value) { void write(const Region &region, uint32_t address, uint8_t value) {
if(!region.write) { if(!region.write) {