mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-30 07:55:01 +00:00
Adds a further safety assert.
This commit is contained in:
parent
cdc2311045
commit
56de2512ae
@ -359,6 +359,7 @@ class MemoryMap {
|
|||||||
// Affects bank $00 only, and should be a single region.
|
// Affects bank $00 only, and should be a single region.
|
||||||
auto ®ion = regions[region_map[0]];
|
auto ®ion = regions[region_map[0]];
|
||||||
region.read = region.write = auxiliary_switches_.zero_state() ? &ram_base[0x10000] : ram_base;
|
region.read = region.write = auxiliary_switches_.zero_state() ? &ram_base[0x10000] : ram_base;
|
||||||
|
assert(region_map[0x0000]+1 == region_map[0x0002]);
|
||||||
|
|
||||||
// Switching to or from auxiliary RAM potentially affects the language
|
// Switching to or from auxiliary RAM potentially affects the language
|
||||||
// and regular card areas.
|
// and regular card areas.
|
||||||
|
Loading…
Reference in New Issue
Block a user