Solving some bugs with the memory accessor

This commit is contained in:
AnonymusRaccoon
2020-02-07 13:49:48 +01:00
parent 6cc5cd5c3a
commit b4ffaad0a8
3 changed files with 14 additions and 17 deletions

View File

@@ -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)