new MemoryMap architecture

starting to working of voices and so on BRR, Envelopes, Gauss and Timers as they use each others
This commit is contained in:
Melefo
2021-02-04 00:06:39 +01:00
parent 61ef40e968
commit b0fb1e3351
13 changed files with 429 additions and 54 deletions

View File

@@ -19,10 +19,9 @@ namespace ComSquare
cartridge(new Cartridge::Cartridge(romPath)),
wram(new Ram::Ram(16384, WRam, "WRam")),
sram(new Ram::Ram(this->cartridge->header.sramSize, SRam, "SRam")),
apuRam(new APU::MemoryMap()),
cpu(new CPU::CPU(this->_bus, cartridge->header)),
ppu(new PPU::PPU(renderer)),
apu(new APU::APU(this->apuRam, renderer))
apu(new APU::APU(renderer))
{
this->_bus->mapComponents(*this);
}