From 90b8163d5465adcaa3e56c6c30f3060ace85a71e Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 15 Jun 2021 17:44:39 -0400 Subject: [PATCH] Add exposition. --- Machines/Enterprise/Enterprise.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Machines/Enterprise/Enterprise.cpp b/Machines/Enterprise/Enterprise.cpp index 5896c881b..c9a0151ab 100644 --- a/Machines/Enterprise/Enterprise.cpp +++ b/Machines/Enterprise/Enterprise.cpp @@ -207,6 +207,10 @@ class ConcreteMachine: return; } + // Of whatever size of RAM I've declared above, use only the final portion. + // This correlated with Nick always having been handed the final 64kb and, + // at least while the RAM is the first thing declared above, does a little + // to benefit data locality. Albeit not in a useful sense. if(offset >= min_ram_slot_) { const auto ram_floor = 4194304 - ram_.size(); const size_t address = offset * 0x4000 - ram_floor;