示例#1
0
        private void SelectCurrentOpcode()
        {
            int index = assemblies.FindIndex(o => o.Address == CPU.Registers.PC);

            disassembler.SelectedIndices.Add(index);
            disassembler.EnsureVisible(index);
            StackView.Invalidate();
            StackView.SelectedIndices.Add(65534 - CPU.Registers.SP);
            StackView.EnsureVisible(65534 - CPU.Registers.SP);
            hexBox1.Invalidate();
        }