Ejemplo n.º 1
0
        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;
                        }
                    }
                }
            }
        }
Ejemplo n.º 2
0
 // Memory Map Constructor
 public MemoryMap(Registers refReg, Input refInput, TinerasNES refTn, Mappers refMappers)
 {
     registers = refReg;
     input     = refInput;
     tn        = refTn;
     mappers   = refMappers;
 }
Ejemplo n.º 3
0
        // VisualDebugger Class Constructor
        public VisualDebugger(TinerasNES tinerasNESRef)
        {
            tinerasNES = tinerasNESRef;
            vd         = new VDRender(tinerasNES, this);

            this.Size = new Size(530, 520);
            this.Show();
        }
Ejemplo n.º 4
0
        // 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;
        }
Ejemplo n.º 5
0
 public GameRender(TinerasNES formObject)
 {
     tinerasNES = formObject;
     InitializeGame();
 }
Ejemplo n.º 6
0
 public VDRender(TinerasNES tinerasNESRef, VisualDebugger vdRef)
 {
     tinerasNES = tinerasNESRef;
     vdb        = vdRef;
     InitializeGame();
 }
Ejemplo n.º 7
0
 public PPU(MemoryMap memoryRef, TinerasNES tnRef)
 {
     memory = memoryRef;
     tn     = tnRef;
 }