public NesEngine(TvFormat tvFormat, PaletteFormat plFormat) { AutoSaveSram = true; Debug.WriteLine(this, "Initializeing the nes emulation engine...", DebugStatus.None); TvFormat = tvFormat; //Initialize Engine Memory = new Memory.Memory(this); Cpu = new Cpu(Memory, tvFormat, this); Cpu.PauseToggle += CpuPauseToggle; Ppu = new Ppu(tvFormat, plFormat, this); Debug.WriteLine(this, "Nes initialized ok.", DebugStatus.Cool); }
public Map(Memory memory, NesEngine engine) { Engine = engine; Cartridge = new Cartridge(memory); }