Exemplo n.º 1
0
 private void IsLoaded(object sender, RoutedEventArgs e)
 {
     for (int i = 0; i < size; i++)
     {
         reg[i] = new Register.Memory();
     }
     setAll();
 }
Exemplo n.º 2
0
        private void offsetbutton_Click(object sender, RoutedEventArgs e)
        {
            if (offset.Text == "")
            {
            }
            int      bit   = Convert.ToInt32(offset.Text);
            Register bufer = new Register();

            for (int i = 0; i < size; i++)
            {
                bufer[i] = new Register.Memory();
            }


            for (int i = 0; i < size; i++)
            {
                bufer[(i + bit) % size] = reg[i];
            }
            reg = bufer;
            setAll();
        }