public AudioProcessingUnit(IntPtr handle, NesEmulator NesEmu, SystemBus systemBus)
 {
     _Nes = NesEmu;
     _systemBus = systemBus;
     InitDirectSound(handle);
     _handle = handle;
 }
 public PictureProcessingUnit(NesEmulator theEngine, SystemBus systemBus)
 {
     _bus = systemBus;
     myEngine = theEngine;
     nameTables = new byte[0x2000];
     spriteRam = new byte[0x100];
     RestartPPU();
 }
Beispiel #3
0
 /// <summary>
 /// The main cpu of the nes
 /// </summary>
 /// <param name="NesEmu">The current nes machine</param>
 public Cpu6502(NesEmulator NesEmu, SystemBus bus)
 {
     _bus = bus;
     _NesEmu = NesEmu;
     a_register = 0;
     x_index_register = 0;
     y_index_register = 0;
     sp_register = 0xff;
 }
 public SystemOrchestration(AudioProcessingUnit apu,
                     PictureProcessingUnit ppu,
                     SystemBus bus,
                     Cpu6502 cpu,
                     NesEmulator emulator)
 {
     _apu = apu;
     _ppu = ppu;
     _cpu = cpu;
     _systemBus = bus;
     _emulator = emulator;
 }
Beispiel #5
0
 public Mapper4(Mappers Maps, SystemBus bus)
 { 
     Map = Maps;
     _bus = bus;
 }
Beispiel #6
0
 public NesEmulator()
 {
     memoryWatchLocations = new HashSet<Int32>();
     _joypad1 = new Joypad();
     _joypad2 = new Joypad();
     systemBus = new SystemBus(this);
     myAPU = new AudioProcessingUnit(WrenCore.WindowHandle, this, systemBus);
 }
Beispiel #7
0
 public Chn_DMC(NesEmulator NesEmu, SystemBus bus)
 {
     _Nes = NesEmu;
     _bus = bus;
 }
Beispiel #8
0
 public Mappers(NesEmulator theEngine, ref Cart theCartridge, SystemBus bus)
 {
     _bus = bus;
     myEngine = theEngine;
     mapperCartridge = theCartridge;
     current_prg_rom_page = new uint[8];
     current_chr_rom_page = new uint[8];
 }