1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Remove card pages from the equation.

This commit is contained in:
Thomas Harte 2022-06-29 14:51:50 -04:00
parent 48e8bfbb0e
commit beb4993548

View File

@ -399,7 +399,12 @@ namespace {
while(logical < [next intValue]) {
const auto &region =
self->_memoryMap.regions[self->_memoryMap.region_map[logical]];
const bool isIO = region.flags & MemoryMap::Region::IsIO;
// This emulator marks card pages as IO because it uses IO to mean
// "anything that isn't the built-in RAM". Just don't test card pages.
const bool isIO =
region.flags & MemoryMap::Region::IsIO &&
(((logical & 0xff) < 0xc1) || ((logical & 0xff) > 0xcf));
XCTAssertEqual(
isIO,