This device negates its input. When a number is negated, it is subtracted from 1 more than the highest possible number that the input can take.
In this case, the highest number that the input can take is 7F. Add 1 and you get 80. Then, you subtract the input from 80.
Say that the value of the input is 2, and the highest number that the input can take is 7. First, add 1 to 7, which is 8. Then, subtract 2 from 8, which is 6. The answer is 6.
The simplest way to negate a binary number is to invert all of its bits, and then add 1 to it. That's how this negator works. As you can see, I simplified the logic circuit so it is faster and cheaper.
|