Пример #1
0
        private void bIntr_Click(object sender, RoutedEventArgs e)
        {
            WindowIntr my = new WindowIntr();
            bool?      b  = my.ShowDialog();

            if (b == true)
            {
                //Window closed by OK
                //You can access the address entered by string s = my.tbAdd.Text;

                CCC  = CCC + 18;
                inte = false;

                //Push pc onto stack
                SP.DCX();
                m[SP.DEC16].DEC8 = PC.HB.DEC8;

                SP.DCX();
                m[SP.DEC16].DEC8 = PC.LB.DEC8;

                //Branch
                PC.DEC16 = (ushort)Int32.Parse(my.tbAdd.Text, NumberStyles.HexNumber);

                UpdateInterrupt();
                UpdateAll();
                tbLI.Text     = "INTR";
                tbLIMenu.Text = "INTR";
            }
            else
            {
                //Window closed by canceling
            }
        }
        private void bIntr_Click(object sender, RoutedEventArgs e)
        {
            WindowIntr my = new WindowIntr();
            bool? b = my.ShowDialog();
            if (b == true)
            {
                //Window closed by OK
                //You can access the address entered by string s = my.tbAdd.Text;

                CCC = CCC + 18;
                inte = false;

                //Push pc onto stack
                SP.DCX();
                m[SP.DEC16].DEC8 = PC.HB.DEC8;

                SP.DCX();
                m[SP.DEC16].DEC8 = PC.LB.DEC8;

                //Branch
                PC.DEC16 = (ushort)Int32.Parse(my.tbAdd.Text, NumberStyles.HexNumber);

                UpdateInterrupt();
                UpdateAll();
                tbLI.Text = "INTR";
                tbLIMenu.Text = "INTR";
            }
            else
            {
                //Window closed by canceling
            }
        }