public static void Main() { Application.SetCompatibleTextRenderingDefault(false); using (TinerasNES tinerasNES = new TinerasNES()) { Application.EnableVisualStyles(); tinerasNES.Show(); while (tinerasNES.Created) { int updateForm = 0; Application.DoEvents(); while (tinerasNES.bolRunGame) { tinerasNES.runGame(); if (updateForm++ >= 1000) { Application.DoEvents(); updateForm = 0; } } } } }
// Memory Map Constructor public MemoryMap(Registers refReg, Input refInput, TinerasNES refTn, Mappers refMappers) { registers = refReg; input = refInput; tn = refTn; mappers = refMappers; }
// VisualDebugger Class Constructor public VisualDebugger(TinerasNES tinerasNESRef) { tinerasNES = tinerasNESRef; vd = new VDRender(tinerasNES, this); this.Size = new Size(530, 520); this.Show(); }
// Memory Map Constructor public MemoryMap(Registers refReg, Input refInput, TinerasNES refTn, Mappers refMappers) { registers = refReg; input = refInput; tn = refTn; mappers = refMappers; //memCPU[0x2000] = 0x00; //memCPU[0x2002] = 0x10; //memCPU[0x07DC] = 0xFF; }
public GameRender(TinerasNES formObject) { tinerasNES = formObject; InitializeGame(); }
public VDRender(TinerasNES tinerasNESRef, VisualDebugger vdRef) { tinerasNES = tinerasNESRef; vdb = vdRef; InitializeGame(); }
public PPU(MemoryMap memoryRef, TinerasNES tnRef) { memory = memoryRef; tn = tnRef; }