Creating the base of the Memory Bus

This commit is contained in:
AnonymusRaccoon
2020-01-23 19:28:40 +01:00
parent 644e334789
commit 01ad5b6f30
5 changed files with 122 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
//
// Created by anonymus-raccoon on 1/23/20.
//
#ifndef COMSQUARE_MEMORYBUS_HPP
#define COMSQUARE_MEMORYBUS_HPP
#include <cstdint>
#include <vector>
#include "IMemory.hpp"
namespace ComSquare
{
class MemoryBus {
private:
std::vector<IMemory> _memoryAccessors;
IMemory * 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