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
+25
View File
@@ -0,0 +1,25 @@
//
// Created by anonymus-raccoon on 1/23/20.
//
#include "IMemory.hpp"
#include <algorithm>
namespace ComSquare
{
void IMemory::setMemoryRegion(uint32_t start, uint32_t end)
{
this->_start = start;
this->_end = end;
}
bool IMemory::hasMemorydAt(uint32_t addr)
{
return this->_start <= addr && addr <= this->_end;
}
uint32_t IMemory::getStart()
{
return this->_start;
}
}