Files
ComSquare/sources/Memory/IMemory.cpp
2020-01-28 11:48:13 +01:00

25 lines
391 B
C++

//
// Created by anonymus-raccoon on 1/23/20.
//
#include "IMemory.hpp"
#include <algorithm>
namespace ComSquare
{
void IMemory::setMemoryRegion(uint24_t start, uint24_t end)
{
this->_start = start;
this->_end = end;
}
bool IMemory::hasMemoryAt(uint24_t addr)
{
return this->_start <= addr && addr <= this->_end;
}
uint32_t IMemory::getStart()
{
return this->_start;
}
}