I have a decimal, say 8, which is 1000 in binary. What I want to do is to NOT the sequence so it becomes 0111 and then get 7. Now the manual way is to just convert 8 to binary and then XOR with 1111 to get 0111. Then finally converting 0111 to 7. I was wondering if there was a way to skip the conversion and directly go from 8 to 7?