#pragma once #include #include #include #include "Assembly.h" class Memory { public: Memory() noexcept; void apply(AssemblyContext ctx); constexpr static std::size_t size = 10 * 1024; private: std::array content; std::vector read(std::size_t len, std::size_t off) const; bool write(const std::vector data, std::size_t off); };