public bool GetCharacter()
        {
            char x, Mask;

            num  = InputOutputDriver.Read((char)5);
            Mask = Utility.BinaryToChar("00010000");
            x    = (char)(num & Mask);

            return(x == Mask);
        }
        public char GetNumber()
        {
            char x, Mask;

            do
            {
                num  = InputOutputDriver.Read((char)5);
                Mask = Utility.BinaryToChar("00010000");
                x    = (char)(num & Mask);
            } while (x != Mask);

            while ((InputOutputDriver.Read((char)5) & Mask) != 0)
            {
            }
            ;

            Mask = Utility.BinaryToChar("00001111");
            num  = (char)(num & Mask);
            return(mapping(num));
        }
예제 #3
0
 private char InData()
 {
     return(InputOutputDriver.Read((char)3));
 }
예제 #4
0
 char InData()
 {
     return(InputOutputDriver.Read((char)4));
 }