Beispiel #1
0
        public static void Copy()
        {
            int c;

            while ((c = (ptFlag ? PaperTape.Read() : Keyboard.Read())) != -1)
            {
                Printer.Write(c);
            }
        }
Beispiel #2
0
        public static void Copy()
        {
            int c;

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