ComSquare
SNES.hpp
Go to the documentation of this file.
1 //
2 // Created by anonymus-raccoon on 1/27/20.
3 //
4 
5 #ifndef COMSQUARE_SNES_HPP
6 #define COMSQUARE_SNES_HPP
7 
8 #include "Memory/MemoryBus.hpp"
9 #include "CPU/CPU.hpp"
10 #include "Cartridge/Cartridge.hpp"
11 #include "Ram/Ram.hpp"
12 #include "PPU/PPU.hpp"
13 #include "APU/APU.hpp"
14 
15 namespace ComSquare
16 {
18  struct SNES {
19  public:
20  std::shared_ptr<CPU::CPU> cpu;
21  std::shared_ptr<PPU::PPU> ppu;
22  std::shared_ptr<APU::APU> apu;
23  std::shared_ptr<Cartridge::Cartridge> cartridge;
24  std::shared_ptr<Ram::Ram> wram;
26  SNES(const std::shared_ptr<Memory::MemoryBus> &bus, const std::string &ramPath);
27  };
28 }
29 
30 #endif //COMSQUARE_SNES_HPP
MemoryBus.hpp
CPU.hpp
ComSquare::SNES::cpu
std::shared_ptr< CPU::CPU > cpu
Definition: SNES.hpp:20
Cartridge.hpp
ComSquare::SNES
Container of all the components of the SNES.
Definition: SNES.hpp:18
ComSquare::SNES::ppu
std::shared_ptr< PPU::PPU > ppu
Definition: SNES.hpp:21
APU.hpp
ComSquare::SNES::SNES
SNES(const std::shared_ptr< Memory::MemoryBus > &bus, const std::string &ramPath)
Create all the components using a common memory bus for all of them.
Definition: SNES.cpp:9
ComSquare::SNES::apu
std::shared_ptr< APU::APU > apu
Definition: SNES.hpp:22
ComSquare::SNES::cartridge
std::shared_ptr< Cartridge::Cartridge > cartridge
Definition: SNES.hpp:23
Ram.hpp
ComSquare::SNES::wram
std::shared_ptr< Ram::Ram > wram
Definition: SNES.hpp:24
ComSquare
Definition: APU.cpp:9
PPU.hpp