void InvalidInstruction(InvalidInstructionEventArgs eventArgs)
{
if (InvokeRequired)
Invoke(new Action(() => InvalidInstruction(eventArgs)));
else
{
pictureBox1.Visible = true;
warningLabel.Text = "Invalid instruction at 0x" + eventArgs.Address.ToString("X4") +
": 0x" + eventArgs.Instruction.ToString("X4");
warningLabel.Visible = true;
if (breakOnInvalidInstructionToolStripMenuItem.Checked)
ResetLayout();
}
}