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 Mapper(NesEngine theEngine, NesCartridge theCartridge) { myEngine = theEngine; mapperCartridge = theCartridge; currentPrgRomPage = new uint[8]; currentChrRomPage = new uint[8]; //timerIrqEnabled; }
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; }