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(); }
/// <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; }
public Mapper4(Mappers Maps, SystemBus bus) { Map = Maps; _bus = bus; }
public NesEmulator() { memoryWatchLocations = new HashSet<Int32>(); _joypad1 = new Joypad(); _joypad2 = new Joypad(); systemBus = new SystemBus(this); myAPU = new AudioProcessingUnit(WrenCore.WindowHandle, this, systemBus); }
public Chn_DMC(NesEmulator NesEmu, SystemBus bus) { _Nes = NesEmu; _bus = bus; }
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]; }