mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-19 13:45:11 +00:00
Adding internal registers for the CPU
This commit is contained in:
@@ -7,13 +7,13 @@
|
||||
|
||||
namespace ComSquare
|
||||
{
|
||||
void IMemory::setMemoryRegion(uint32_t start, uint32_t end)
|
||||
void IMemory::setMemoryRegion(uint24_t start, uint24_t end)
|
||||
{
|
||||
this->_start = start;
|
||||
this->_end = end;
|
||||
}
|
||||
|
||||
bool IMemory::hasMemoryAt(uint32_t addr)
|
||||
bool IMemory::hasMemoryAt(uint24_t addr)
|
||||
{
|
||||
return this->_start <= addr && addr <= this->_end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user