public bool LoadProgramFile(string filePath) { if (cartridge != null) { bus.RemoveComponent(cartridge); } cartridge = new Cartridge(filePath, bus); bus.AddComponent(cartridge, new BusAddressRange(0x4020, 0xFFFF)); ppu.SetCartridge(cartridge); return(true); }
public void SetCartridge(Cartridge cart) { cartridge = cart; patternTableDisplay[0].DataChanged(); patternTableDisplay[1].DataChanged(); }