Exemple #1
0
        private void update_instructions()
        {
            ReadInstructions    = new Instruction[ReadData.Length];
            WriteInstructions   = new Instruction[WriteData.Length];
            InitialInstructions = new Instruction[InitData.Length];

            for (int i = 0; i < ReadData.Length; i++)
            {
                ReadInstructions[i] = new Instruction(ReadData.ElementAt(i), Variables);
            }

            for (int i = 0; i < WriteData.Length; i++)
            {
                WriteInstructions[i] = new Instruction(WriteData.ElementAt(i), Variables);
            }

            for (int i = 0; i < InitData.Length; i++)
            {
                InitialInstructions[i] = new Instruction(InitData.ElementAt(i), Variables);
            }
        }