Inject SPC700 to APU, add APU and PPU observers

This commit is contained in:
scawful
2023-08-24 22:54:52 -04:00
parent 1cc0c45e79
commit 453a2575f4
6 changed files with 100 additions and 42 deletions

View File

@@ -6,6 +6,7 @@
#include "app/emu/cpu.h"
#include "app/emu/dbg.h"
#include "app/emu/ppu.h"
#include "app/emu/spc700.h"
#include "app/rom.h"
namespace yaze {
@@ -104,10 +105,11 @@ class SNES : public DMA {
// Components of the SNES
MemoryImpl memory_;
Clock clock_;
AudioRAM audio_ram_;
CPU cpu{memory_, clock_};
PPU ppu{memory_, clock_};
APU apu{memory_, clock_};
APU apu{memory_, audio_ram_, clock_};
// Helper classes
ROMInfo rom_info_;