public static void Copy() { int c; while ((c = (ptFlag ? PaperTape.Read() : Keyboard.Read())) != -1) { Printer.Write(c); } }
public static void Copy() { int c; while ((c = (ptFlag ? PaperTape.Read() : Keyboard.Read())) != -1) { if (punchFlag) { PaperTape.Punch(c); } else { Printer.Write(c); } } }