diff --git a/Machines/Enterprise/Enterprise.cpp b/Machines/Enterprise/Enterprise.cpp index 7a7ef88a6..83e37e91d 100644 --- a/Machines/Enterprise/Enterprise.cpp +++ b/Machines/Enterprise/Enterprise.cpp @@ -208,9 +208,9 @@ class ConcreteMachine: private: // MARK: - Memory layout - std::array ram_; + std::array ram_; std::array exos_; - const uint8_t min_ram_slot_ = 0xff - 16 + 1; + const uint8_t min_ram_slot_ = uint8_t(0x100 - (ram_.size() / 0x4000)); const uint8_t *read_pointers_[4] = {nullptr, nullptr, nullptr, nullptr}; uint8_t *write_pointers_[4] = {nullptr, nullptr, nullptr, nullptr};