Ejemplo n.º 1
0
        public DebugFunctions(DebuggerForm main)
        {
            m_mainForm = main;

            m_Z80ViewForm           = new Z80ViewForm(GameBoy.Cpu);
            m_Z80ViewForm.MdiParent = m_mainForm;

            m_ramForm           = new RamViewForm(GameBoy.Ram);
            m_ramForm.MdiParent = m_mainForm;

            m_instForm           = new InstructionForm(GameBoy.Cpu, GameBoy.Ram);
            m_instForm.MdiParent = m_mainForm;

            m_codeForm           = new CodeView3Form();
            m_codeForm.MdiParent = m_mainForm;

            m_speedForm           = new SpeedForm();
            m_speedForm.MdiParent = m_mainForm;

            m_bgTileMapForm           = new BgTileMapForm(GameBoy.Ram);
            m_bgTileMapForm.MdiParent = m_mainForm;

            m_serialForm           = new SerialForm();
            m_serialForm.MdiParent = m_mainForm;

            m_callstackForm           = new CallstackForm();
            m_callstackForm.MdiParent = m_mainForm;

            m_interruptsForm           = new InterruptsForm();
            m_interruptsForm.MdiParent = m_mainForm;

            m_bDoRefresh = true;
            m_IsInit     = true;
        }
Ejemplo n.º 2
0
        private void Search()
        {
            String s = textBox_gotoLine.Text;

            this.Close();
            if (m_parentForm is CodeView3Form)
            {
                CodeView3Form form = m_parentForm as CodeView3Form;
                try
                {
                    //ushort line = (ushort)Convert.ToInt32(s, 16);
                    //form.HighligthLine( s );
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Search error " + ex);
                }
            }
            //this.Dispose();
        }