Help for this page

Select Code to Download


  1. or download this
    C 7654 3210
      1110 1111 =  0xEF = decimal 239
    ...
    1 1101 1110 left shift one showing carry
    
      1101 1110 result without carry = 0xDE = 222
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
       }
       return $bit;
    }
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    
    printf ("%X\n", $input<<1 & $mask);
    # prints DE which means 222 in decimal
    
  4. or download this
    printf ("%X\n", 0xEF<<1 & 0xFF);
    # prints DE which means 222 in decimal