static void TestAssemblyWriter() { using (var aw = new AssemblyWriter() { Indentation = " ", IndentInstructions = true, IndentDirectives = false, }) { aw.WriteLine("This is a comment."); aw.WriteLine("As is this."); aw.WriteLine(AssemblyLine.Label("TEST", -1)); aw.WriteLine(AssemblyLine.Instruction("add", new[] { "r1", "r2", "r2" }, -1)); Console.WriteLine(aw); } }