mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-24 15:18:44 +00:00
Cleaning up the memory bus and adding exception handling in the put pixel
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user