mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-21 06:35:10 +00:00
Adding const qualifiers to the IMemory and adding error messages in the memory viewer
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
namespace ComSquare::Memory
|
||||
{
|
||||
uint24_t AMemory::getRelativeAddress(uint24_t addr)
|
||||
uint24_t AMemory::getRelativeAddress(uint24_t addr) const
|
||||
{
|
||||
return addr - this->_start;
|
||||
}
|
||||
@@ -17,22 +17,22 @@ namespace ComSquare::Memory
|
||||
this->_end = end;
|
||||
}
|
||||
|
||||
bool AMemory::hasMemoryAt(uint24_t addr)
|
||||
bool AMemory::hasMemoryAt(uint24_t addr) const
|
||||
{
|
||||
return this->_start <= addr && addr <= this->_end;
|
||||
}
|
||||
|
||||
bool AMemory::isMirror()
|
||||
bool AMemory::isMirror() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
std::shared_ptr<IMemory> AMemory::getMirrored()
|
||||
std::shared_ptr<IMemory> AMemory::getMirrored() const
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::string AMemory::getValueName(uint24_t)
|
||||
std::string AMemory::getValueName(uint24_t) const
|
||||
{
|
||||
return "???";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user