mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-25 16:31:42 +00:00
Fix test.
This commit is contained in:
parent
5f00d29297
commit
177e741bca
@ -275,11 +275,10 @@ namespace {
|
||||
|
||||
int physical = physicalStart;
|
||||
for(int logical = logicalStart; logical < logicalEnd; logical++) {
|
||||
const auto ®ion = self->_memoryMap.regions[self->_memoryMap.region_map[logical]];
|
||||
const auto ®ion = self->_memoryMap.region(logical);
|
||||
|
||||
// Don't worry about IO pages here; they'll be compared shortly.
|
||||
if(!(region.flags & MemoryMap::Region::IsIO)) {
|
||||
const auto ®ion = self->_memoryMap.regions[self->_memoryMap.region_map[logical]];
|
||||
applyTest(logical, physical, region);
|
||||
|
||||
if(*stop) {
|
||||
@ -367,8 +366,7 @@ namespace {
|
||||
int logical = 0;
|
||||
for(NSNumber *next in test[@"shadowed"]) {
|
||||
while(logical < [next intValue]) {
|
||||
[[maybe_unused]] const auto ®ion =
|
||||
self->_memoryMap.regions[self->_memoryMap.region_map[logical]];
|
||||
const auto ®ion = _memoryMap.region(logical);
|
||||
const bool isShadowed = _memoryMap.is_shadowed(region, logical << 8);
|
||||
|
||||
XCTAssertEqual(
|
||||
@ -386,8 +384,7 @@ namespace {
|
||||
logical = 0;
|
||||
for(NSNumber *next in test[@"io"]) {
|
||||
while(logical < [next intValue]) {
|
||||
const auto ®ion =
|
||||
self->_memoryMap.regions[self->_memoryMap.region_map[logical]];
|
||||
const auto ®ion = self->_memoryMap.region(logical);
|
||||
|
||||
// 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.
|
||||
|
Loading…
Reference in New Issue
Block a user