Creating a common CPU class

This commit is contained in:
AnonymusRaccoon
2020-02-05 16:15:45 +01:00
parent 52f1d9fe6e
commit d86b09dbb6
4 changed files with 30 additions and 3 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
#include "../Memory/IMemory.hpp"
#include "../Memory/MemoryBus.hpp"
#include "../Models/Ints.hpp"
#include "CommonCpu.hpp"
namespace ComSquare::CPU
{
@@ -174,7 +175,7 @@ namespace ComSquare::CPU
};
//! @brief The main CPU
class CPU : public Memory::IMemory {
class CPU : public CommonCPU, public Memory::IMemory {
private:
//! @brief All the registers of the CPU
Registers _registers{};