|
ComSquare
|
Container of all the components of the SNES. More...
#include <SNES.hpp>
Public Member Functions | |
| SNES (Renderer::IRenderer &renderer) | |
| Create all the components using a common memory bus for all of them. More... | |
| SNES (const std::string &ramPath, Renderer::IRenderer &renderer) | |
| Create all the components using a common memory bus for all of them and load a rom. More... | |
| SNES (const SNES &)=delete | |
| A SNES is not copyable. More... | |
| SNES & | operator= (const SNES &)=delete |
| A SNES can't be assigned. More... | |
| ~SNES ()=default | |
| A default destructor. More... | |
| void | update () |
| Call this function to update all the components. More... | |
| void | loadRom (const std::string &path) |
| Load the rom at the given path. More... | |
Public Attributes | |
| Memory::MemoryBus | bus |
| The memory bus that map addresses to components. More... | |
| Cartridge::Cartridge | cartridge |
| Cartridge containing instructions (ROM). More... | |
| Ram::Ram | wram |
| Work Ram shared by all the components. More... | |
| Ram::Ram | sram |
| Save Ram residing inside the Cartridge in a real SNES. More... | |
| CPU::CPU | cpu |
| Central Processing Unit of the SNES. More... | |
| PPU::PPU | ppu |
| Picture Processing Unit of the SNES. More... | |
| APU::APU | apu |
| Audio Processing Unit if the SNES. More... | |
Container of all the components of the SNES.
|
explicit |
Create all the components using a common memory bus for all of them.
| renderer | The renderer to use. |
| ComSquare::SNES::SNES | ( | const std::string & | ramPath, |
| Renderer::IRenderer & | renderer | ||
| ) |
Create all the components using a common memory bus for all of them and load a rom.
| ramPath | The rom to load. |
| renderer | The renderer to use. |
|
default |
A default destructor.
| void ComSquare::SNES::loadRom | ( | const std::string & | path | ) |
Load the rom at the given path.
| rom | The path of the rom. |
| InvalidRomException | If the rom is invalid, this exception is thrown. |
| void ComSquare::SNES::update | ( | ) |
Call this function to update all the components.
| Memory::MemoryBus ComSquare::SNES::bus |
The memory bus that map addresses to components.
| Cartridge::Cartridge ComSquare::SNES::cartridge |
Cartridge containing instructions (ROM).
1.8.17