diff --git a/CMakeLists.txt b/CMakeLists.txt index 924bd4f..3354293 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,6 +113,10 @@ add_executable(unit_tests EXCLUDE_FROM_ALL sources/APU/DSP/Envelope.cpp sources/APU/DSP/Timer.cpp sources/APU/DSP/BRR.cpp + sources/PPU/PPUUtils.cpp + sources/PPU/Tile.hpp + sources/PPU/TileRenderer.cpp + sources/PPU/TileRenderer.hpp ) # include criterion & coverage diff --git a/sources/PPU/PPU.cpp b/sources/PPU/PPU.cpp index 3557ed1..16872dd 100644 --- a/sources/PPU/PPU.cpp +++ b/sources/PPU/PPU.cpp @@ -205,7 +205,7 @@ namespace ComSquare::PPU uint8_t PPU::read(uint24_t addr) { - return 0; + //return 0; switch (addr) { case PpuRegisters::mpyl: return this->_registers._mpy.mpyl; @@ -250,7 +250,7 @@ namespace ComSquare::PPU void PPU::write(uint24_t addr, uint8_t data) { - return; + //return; switch (addr) { case PpuRegisters::inidisp: this->_registers._inidisp.raw = data; diff --git a/sources/SNES.cpp b/sources/SNES.cpp index e52d9fa..51c8bd6 100644 --- a/sources/SNES.cpp +++ b/sources/SNES.cpp @@ -196,6 +196,6 @@ namespace ComSquare this->_tileViewer->focus(); else this->_tileViewer = std::make_unique(*this, *this->ppu); - } #endif + } }