mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-19 21:55:11 +00:00
Solving some bugs with the memory accessor
This commit is contained in:
@@ -53,7 +53,7 @@ namespace ComSquare::Memory
|
||||
|
||||
uint24_t IRectangleMemory::getStart()
|
||||
{
|
||||
return this->_startBank + this->_startPage;
|
||||
return (this->_startBank << 16u) + this->_startPage;
|
||||
}
|
||||
|
||||
void IRectangleMemory::setMemoryRegion(uint8_t startBank, uint8_t endBank, uint16_t startPage, uint16_t endPage)
|
||||
|
||||
Reference in New Issue
Block a user