public void InitializeEngine() { myCartridge = new NesCartridge(); my6502 = new ProcessorNes6502(this); myMapper = new Mapper(this, myCartridge); myPpu = new Ppu(this); myJoypad = new Joypad(); scratchRam = new byte[4][]; scratchRam[0] = new byte[0x800]; scratchRam[1] = new byte[0x800]; scratchRam[2] = new byte[0x800]; scratchRam[3] = new byte[0x800]; saveRam = new byte[0x2000]; isSaveRamReadOnly = false; isDebugging = false; isQuitting = false; isPaused = false; hasQuit = false; fixBackgroundChange = false; fixSpriteHit = false; fixScrollOffset1 = false; fixScrollOffset2 = false; fixScrollOffset3 = false; }
public VideoNes(Ppu thePPU) { //Initialize video emulation framework myPPU = thePPU; //END Initialize video emulation framework }