diff --git a/CMakeLists.txt b/CMakeLists.txt index f57a054..09d4aca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,7 +60,10 @@ add_executable(unit_tests tests/CPU/Math/testADC.cpp tests/CPU/testStore.cpp sources/CPU/Instructions/InternalInstruction.cpp - tests/CPU/testInternal.cpp) + tests/CPU/testInternal.cpp + sources/Ram/ExtendedRam.cpp + sources/Ram/ExtendedRam.hpp +) # include criterion & coverage target_link_libraries(unit_tests criterion -lgcov) @@ -112,7 +115,11 @@ add_executable(ComSquare sources/Exceptions/InvalidOpcode.hpp sources/CPU/Instructions/Interrupts.cpp sources/CPU/Instructions/MathematicalOperations.cpp - sources/CPU/Instructions/MemoryInstructions.cpp sources/CPU/Instructions/InternalInstruction.cpp sources/Ram/ExtendedRam.cpp sources/Ram/ExtendedRam.hpp) + sources/CPU/Instructions/MemoryInstructions.cpp + sources/CPU/Instructions/InternalInstruction.cpp + sources/Ram/ExtendedRam.cpp + sources/Ram/ExtendedRam.hpp +) target_link_libraries(ComSquare sfml-graphics diff --git a/sources/PPU/PPU.cpp b/sources/PPU/PPU.cpp index 4afa46f..ab655f8 100644 --- a/sources/PPU/PPU.cpp +++ b/sources/PPU/PPU.cpp @@ -203,8 +203,6 @@ namespace ComSquare::PPU _vram(64000), _oamram(544), _cgram(512) - _renderer(renderer), - _bus(std::move(bus)) { this->_isLowByte = true; //_vram = new uint16_t[32000];