// // Created by anonymus-raccoon on 1/23/20. // #ifndef COMSQUARE_MEMORYBUS_HPP #define COMSQUARE_MEMORYBUS_HPP #include #include #include #include "IMemory.hpp" namespace ComSquare { class MemoryBus { private: std::vector> _memoryAccessors; std::shared_ptr getAccessor(uint32_t addr); uint8_t _openbus; public: uint8_t read(uint32_t addr); void write(uint32_t addr, uint8_t data); }; } #endif //COMSQUARE_MEMORYBUS_HPP