mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-11 15:30:52 +00:00
Ensure proper register hits.
This commit is contained in:
parent
5adc656066
commit
1f7700edac
@ -251,9 +251,10 @@ namespace {
|
||||
const uint8_t shadow = [test[@"shadow"] integerValue];
|
||||
const uint8_t state = [test[@"state"] integerValue];
|
||||
|
||||
_memoryMap.access(0x56 + highRes, false);
|
||||
_memoryMap.access(0x80 + lcw, false);
|
||||
_memoryMap.access(0x00 + store80, false);
|
||||
_memoryMap.access(0xc056 + highRes, false);
|
||||
_memoryMap.access(0xc080 + lcw, false);
|
||||
_memoryMap.access(0xc080 + lcw, false);
|
||||
_memoryMap.access(0xc000 + store80, false);
|
||||
_memoryMap.set_shadow_register(shadow);
|
||||
_memoryMap.set_state_register(state);
|
||||
|
||||
@ -274,11 +275,14 @@ namespace {
|
||||
const auto ®ion = _memoryMap.regions[_memoryMap.region_map[logical]];
|
||||
|
||||
XCTAssert(region.read != nullptr);
|
||||
XCTAssert(®ion.read[logical << 8] == &_ram[physical << 8],
|
||||
|
||||
auto foundPhysical = int(®ion.read[logical << 8] - _ram.data()) >> 8;
|
||||
|
||||
XCTAssert(physical == foundPhysical,
|
||||
@"Physical page %04x should be mapped to logical %04x; is instead %04x",
|
||||
physical,
|
||||
logical,
|
||||
int(®ion.read[logical << 8] - _ram.data()) >> 8);
|
||||
foundPhysical);
|
||||
|
||||
if(physical != physicalEnd) ++physical;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user