示例#1
0
 public DebuggerPanel(M_Base _Machine)
 {
     InitDebuggerPanel(_Machine, null);
 }
示例#2
0
 public DebuggerPanel(M_Base _Machine, DebuggerModule_Base mod)
 {
     InitDebuggerPanel(_Machine, mod);
 }
示例#3
0
        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;
        }
示例#4
0
 protected virtual void InitDebuggerForm(M_Base m, DebuggerModule_Base md)
 {
     InitializeComponent();
     debuggerPanel_main.machine = m;
     debuggerPanel_main.module = md;
 }
示例#5
0
 public DebuggerForm(M_Base m, DebuggerModule_Base md)
 {
     InitDebuggerForm(m, md);
 }
        public void Init(M_Base _machine, consoleRef _Console)
        {
            machine = _machine;
            cpu = machine.cpu;
            programMemory = machine.programMemory;
            workingMemory = machine.workingMemory;
            video = machine.video;
            display = machine.display;

            console = _Console;
            OnInit(new EventArgs());
        }
示例#7
0
 protected virtual M_Base LoadMachine(M_Base val)
 {
     UnloadMachine();
     machine = val;
     display = val.display;
     pnl_display.Controls.Add(display);
     display.Dock = DockStyle.Fill;
     //OnResize(new EventArgs());
     return val;
 }