mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-07 11:45:07 +00:00
fixing unit tests compil
This commit is contained in:
@@ -113,6 +113,10 @@ add_executable(unit_tests EXCLUDE_FROM_ALL
|
|||||||
sources/APU/DSP/Envelope.cpp
|
sources/APU/DSP/Envelope.cpp
|
||||||
sources/APU/DSP/Timer.cpp
|
sources/APU/DSP/Timer.cpp
|
||||||
sources/APU/DSP/BRR.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
|
# include criterion & coverage
|
||||||
|
|||||||
+2
-2
@@ -205,7 +205,7 @@ namespace ComSquare::PPU
|
|||||||
|
|
||||||
uint8_t PPU::read(uint24_t addr)
|
uint8_t PPU::read(uint24_t addr)
|
||||||
{
|
{
|
||||||
return 0;
|
//return 0;
|
||||||
switch (addr) {
|
switch (addr) {
|
||||||
case PpuRegisters::mpyl:
|
case PpuRegisters::mpyl:
|
||||||
return this->_registers._mpy.mpyl;
|
return this->_registers._mpy.mpyl;
|
||||||
@@ -250,7 +250,7 @@ namespace ComSquare::PPU
|
|||||||
|
|
||||||
void PPU::write(uint24_t addr, uint8_t data)
|
void PPU::write(uint24_t addr, uint8_t data)
|
||||||
{
|
{
|
||||||
return;
|
//return;
|
||||||
switch (addr) {
|
switch (addr) {
|
||||||
case PpuRegisters::inidisp:
|
case PpuRegisters::inidisp:
|
||||||
this->_registers._inidisp.raw = data;
|
this->_registers._inidisp.raw = data;
|
||||||
|
|||||||
+1
-1
@@ -196,6 +196,6 @@ namespace ComSquare
|
|||||||
this->_tileViewer->focus();
|
this->_tileViewer->focus();
|
||||||
else
|
else
|
||||||
this->_tileViewer = std::make_unique<Debugger::TileViewer>(*this, *this->ppu);
|
this->_tileViewer = std::make_unique<Debugger::TileViewer>(*this, *this->ppu);
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user