Пример #1
0
        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);
        }
Пример #2
0
 public void SetCartridge(Cartridge cart)
 {
     cartridge = cart;
     patternTableDisplay[0].DataChanged();
     patternTableDisplay[1].DataChanged();
 }