Exemplo n.º 1
0
        public void resetGame()
        {
            registers = new Registers();
            input     = new Input();
            mappers   = new Mappers();
            memory    = new MemoryMap(registers, input, this, mappers);
            ppu       = new PPU(memory, this);
            cpu       = new CPU(memory, input, ppu, registers);


            strDebugFull = new string[debugLinesMax];

            //pnlGame = new Panel();
            gameRender = new GameRender(this);

            intTotalInstrucions = 0;
            //bolEnableDebugStepping = true;
            bolStartFrame = true;
            bolReset      = true;

            setVideoSize(intCurrentSize);

            // Reset debugger if it exists
            if (vdb != null)
            {
                vdb.Close();

                vdb = new VisualDebugger(this);
                ppu.bolDrawNameTable = true;
            }
        }
Exemplo n.º 2
0
        public void showHideDebugToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Control c in this.Controls)
            {
                c.Visible = !c.Visible;
            }

            if (btnStartRom.Visible)
            {
                this.MinimumSize = new Size(0, 0);
                this.MaximumSize = new Size(0, 0);
            }
            else
            {
                setVideoSize(intCurrentSize);
            }

            menuStrip1.Visible = true;
            pnlGame.Visible    = true;

            vdb = new VisualDebugger(this);
            ppu.bolDrawNameTable = true;
        }
Exemplo n.º 3
0
 public VDRender(TinerasNES tinerasNESRef, VisualDebugger vdRef)
 {
     tinerasNES = tinerasNESRef;
     vdb        = vdRef;
     InitializeGame();
 }