Example #1
0
        protected void PrintSchedule()
        {
            AssemblyGenerator asmg = new AssemblyGenerator(registerAssignment);

            for (int i = 0; i < schedule.Steps; i++) {

                textWriter.Write("[" + i + "] ");

                InstructionNode[] istep = schedule[i];

                for (int j = 0; j < istep.Length; j++) {

                    InstructionNode inode = istep[j];

                    if (inode != null) {
                        textWriter.Write(asmg.GetAssembly(inode));
                        textWriter.Write(" | ");
                    } else {
                        textWriter.Write(" | ");
                    }
                }

                textWriter.WriteLine();
            }

            textWriter.WriteLine();
        }