Пример #1
0
Файл: Bus.cs Проект: icaroNZ/Nes
 public Bus()
 {
     _cpu = new CPU6502();
     _ppu = new PPU2c02();
     _cpu.ConnectBus(this);
     // Ram 2Kb
     CpuRam = new byte[2048];
     for (var i = 0; i < CpuRam.Length - 1; i++)
     {
         CpuRam[i] = 0;
     }
 }
Пример #2
0
        public NESCore()
        {
            isROMLoaded = false;

            _cpu = new CPU6502();
            _ppu = new PPU2C02();

            // Connect the Cpu and bus
            _cpu.ConnectBus(this);

            _cpuRam = new byte[totalMemoryInBytes];
            for (int i = 0; i < totalMemoryInBytes; i++)
            {
                _cpuRam[i] = 0x00;
            }
        }