From 56de2512aed974cf782a7c21972400ff0b2a77b4 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 25 Nov 2020 23:34:30 -0500 Subject: [PATCH] Adds a further safety assert. --- Machines/Apple/AppleIIgs/MemoryMap.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Machines/Apple/AppleIIgs/MemoryMap.hpp b/Machines/Apple/AppleIIgs/MemoryMap.hpp index 4d8dda0f8..e47441032 100644 --- a/Machines/Apple/AppleIIgs/MemoryMap.hpp +++ b/Machines/Apple/AppleIIgs/MemoryMap.hpp @@ -359,6 +359,7 @@ class MemoryMap { // Affects bank $00 only, and should be a single region. auto ®ion = 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.