1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-29 00:29:34 +00:00

Adds a further safety assert.

This commit is contained in:
Thomas Harte 2020-11-25 23:34:30 -05:00
parent cdc2311045
commit 56de2512ae

View File

@ -359,6 +359,7 @@ class MemoryMap {
// Affects bank $00 only, and should be a single region.
auto &region = regions[region_map[0]];
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
// and regular card areas.