Browse Source

Emulator: Add ProcessingUnit base class

master
Riyyi 2 years ago
parent
commit
0d35476da0
  1. 4
      src/apu.h
  2. 4
      src/cpu.h
  3. 4
      src/ppu.h
  4. 16
      src/processingunit.cpp
  5. 14
      src/processingunit.h

4
src/apu.h

@ -7,7 +7,9 @@
#pragma once
class APU {
#include "processingunit.h"
class APU : public ProcessingUnit {
public:
APU();
virtual ~APU();

4
src/cpu.h

@ -7,7 +7,9 @@
#pragma once
class CPU {
#include "processingunit.h"
class CPU final : public ProcessingUnit {
public:
CPU();
virtual ~CPU();

4
src/ppu.h

@ -7,7 +7,9 @@
#pragma once
class PPU {
#include "processingunit.h"
class PPU final : public ProcessingUnit {
public:
PPU();
virtual ~PPU();

16
src/processingunit.cpp

@ -0,0 +1,16 @@
/*
* Copyright (C) 2022 Riyyi
* Copyright (C) 2022 Th3FrankXD
*
* SPDX-License-Identifier: MIT
*/
#include "processingunit.h"
ProcessingUnit::ProcessingUnit()
{
}
ProcessingUnit::~ProcessingUnit()
{
}

14
src/processingunit.h

@ -0,0 +1,14 @@
/*
* Copyright (C) 2022 Riyyi
* Copyright (C) 2022 Th3FrankXD
*
* SPDX-License-Identifier: MIT
*/
#pragma once
class ProcessingUnit {
public:
ProcessingUnit();
virtual ~ProcessingUnit();
};
Loading…
Cancel
Save