コード例 #1
0
ファイル: DebuggerPanel.cs プロジェクト: erin100280/Emunator
 public DebuggerPanel(M_Base _Machine, DebuggerModule_Base mod)
 {
     InitDebuggerPanel(_Machine, mod);
 }
コード例 #2
0
ファイル: DebuggerPanel.cs プロジェクト: erin100280/Emunator
        protected virtual void InitDebuggerPanel(M_Base _Machine
		                                         , DebuggerModule_Base mod)
        {
            InitializeComponent();
            hexBox_memory_program.CurrentLineChanged
                            += hexBox_memory_program_CurrentLineChanged;
            hexBox_memory_program.CurrentPositionInLineChanged
                            += hexBox_memory_program_CurrentLineChanged;

            hexBox_memory_program.VScrollBarVisible = true;
            hexBox_memory_program.StringViewVisible = true;
            hexBox_memory_program.LineInfoVisible = true;
            hexBox_memory_program.HexCasing = HexCasing.Upper;
            hexBox_memory_program.GroupSeparatorVisible = true;
            hexBox_memory_program.ColumnInfoVisible = true;

            hexBox_memory_video.VScrollBarVisible = true;
            hexBox_memory_video.StringViewVisible = true;
            hexBox_memory_video.LineInfoVisible = true;
            hexBox_memory_video.HexCasing = HexCasing.Upper;
            hexBox_memory_video.GroupSeparatorVisible = true;
            hexBox_memory_video.ColumnInfoVisible = true;

            hexBox_memory_working.VScrollBarVisible = true;
            hexBox_memory_working.StringViewVisible = true;
            hexBox_memory_working.LineInfoVisible = true;
            hexBox_memory_working.HexCasing = HexCasing.Upper;
            hexBox_memory_working.GroupSeparatorVisible = true;
            hexBox_memory_working.ColumnInfoVisible = true;

            machine = _Machine;
            module = mod;
        }
コード例 #3
0
ファイル: DebuggerForm.cs プロジェクト: erin100280/Emunator
 public DebuggerForm(M_Base m, DebuggerModule_Base md)
 {
     InitDebuggerForm(m, md);
 }
コード例 #4
0
ファイル: DebuggerForm.cs プロジェクト: erin100280/Emunator
 protected virtual void InitDebuggerForm(M_Base m, DebuggerModule_Base md)
 {
     InitializeComponent();
     debuggerPanel_main.machine = m;
     debuggerPanel_main.module = md;
 }
コード例 #5
0
ファイル: theMainControl.cs プロジェクト: erin100280/Emunator
        protected virtual void RunDebugger_test6502()
        {
            displaySizeMode dsm = displaySizeMode.original;

            machine.Pause();

            _debuggerModule = new DebuggerModule_6502();
            _debuggerForm = new DebuggerForm(machine, _debuggerModule);

            if(ParentForm != null)
                ParentForm.Visible = false;

            if(machine.display != null) {
                dsm = machine.display.displaySizeMode;
                machine.display.displaySizeMode = displaySizeMode.original;
            }

            if(machine.cpu != null)
                machine.cpu.DBG = machine.cpu.DBG_SHOW_COMMAND = true;

            _debuggerForm.ShowDialog();
            machine.Pause();

            if(ParentForm != null)
                ParentForm.Visible = true;

            if(machine.display != null) {
                if(machine.display.Parent != null)
                    machine.display.Parent.Controls.Remove(machine.display);
                pnl_display.Controls.Add(machine.display);
                machine.display.displaySizeMode = dsm;
                machine.display.Refresh();
            }

            if(machine.keyboard != null)
                settings.main.inputHandler.mainHandler = machine.keyboard;
            else
                settings.main.inputHandler.mainHandler = null;

            settings.main.inputHandler.altHandler = this;
            //machine_Chip8.cpu_Chip8.SetDoCycle(DoCycleMode.Main);
        }