Splitting the debug window of the component to allow quick change of a component

This commit is contained in:
Anonymus Raccoon
2020-03-20 16:41:45 +01:00
parent acf2807dc6
commit ea19186269
18 changed files with 407 additions and 248 deletions
+9 -10
View File
@@ -10,6 +10,15 @@
namespace ComSquare::PPU
{
PPU::PPU(Renderer::IRenderer &renderer):
_renderer(renderer),
_vram(65536),
_oamram(544),
_cgram(512)
{
this->_isLowByte = true;
}
uint8_t PPU::read(uint24_t addr)
{
switch (addr) {
@@ -235,14 +244,4 @@ namespace ComSquare::PPU
}
this->_renderer.drawScreen();
}
PPU::PPU(const std::shared_ptr<Memory::MemoryBus> &bus, Renderer::IRenderer &renderer):
_renderer(renderer),
_bus(std::move(bus)),
_vram(65536),
_oamram(544),
_cgram(512)
{
this->_isLowByte = true;
}
}