Cleaning up the memory bus and adding exception handling in the put pixel

This commit is contained in:
AnonymusRaccoon
2020-02-05 14:17:36 +01:00
parent e921306dcc
commit a0e6119841
9 changed files with 38 additions and 24 deletions
+7 -5
View File
@@ -14,13 +14,9 @@ namespace ComSquare::Memory
this->setMemoryRegion(startBank, endBank, startPage, endPage);
}
std::shared_ptr<IMemory> RectangleShadow::createShadow(std::shared_ptr<IRectangleMemory> initial, uint8_t startBank, uint8_t endBank, uint16_t startPage, uint16_t endPage)
{
return static_cast<std::shared_ptr<IMemory>>(new RectangleShadow(std::move(initial), startBank, endBank, startPage, endPage));
}
uint8_t RectangleShadow::read_internal(uint24_t addr)
{
// TODO implement read/write bank offset.
return this->_initial->read_internal(addr);
}
@@ -28,4 +24,10 @@ namespace ComSquare::Memory
{
this->_initial->write_internal(addr, data);
}
RectangleShadow *RectangleShadow::setBankOffset(uint8_t bankOffset)
{
this->_bankOffset = bankOffset;
return this;
}
}