Files
ComSquare/sources/Memory/IMemory.cpp

35 lines
522 B
C++

//
// Created by anonymus-raccoon on 1/23/20.
//
#include "IMemory.hpp"
#include <algorithm>
namespace ComSquare::Memory
{
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;
}
bool IMemory::isMirror()
{
return false;
}
std::shared_ptr<IMemory> IMemory::getMirrored()
{
return nullptr;
}
}