- 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
- or download this
#!/usr/bin/perl -w
use strict;
...
}
return $bit;
}
- or download this
#!/usr/bin/perl -w
use strict;
...
printf ("%X\n", $input<<1 & $mask);
# prints DE which means 222 in decimal
- or download this
printf ("%X\n", 0xEF<<1 & 0xFF);
# prints DE which means 222 in decimal