Beispiel #1
0
 // Memory window Go To handler
 private void goToToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form Goto = new dlgGoto();
     if (Goto.ShowDialog() == DialogResult.Cancel)
         return;
     hexBox1.ScrollByteIntoView(dlgGoto.addr);
     hexBox1.Select(dlgGoto.addr, 1);
 }
Beispiel #2
0
 private void addBreakToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form SetBreak = new dlgGoto();
     SetBreak.Text = "Set Break on";
     if (SetBreak.ShowDialog() == DialogResult.Cancel) return;
     if (Breakpoints.ContainsKey(dlgGoto.addr) == false)
     {
         int index = lbDisasm.TopIndex;
         int selIndex = lbDisasm.SelectedIndex;
         GotoPC(dlgGoto.addr);
         Breakpoints.Add(dlgGoto.addr, lbDisasm.SelectedIndex);
         lbDisasm.SelectedIndex = selIndex;
         lbDisasm.TopIndex = index;
     }
 }
Beispiel #3
0
 // Disassm window Go To handler
 private void goToMenuItemAsm_Click(object sender, EventArgs e)
 {
     Form Goto = new dlgGoto();
     if (Goto.ShowDialog() == DialogResult.Cancel) return;
     GotoPC(dlgGoto.addr);
 }