Effectively, if you’re checking of A>B, the computer will do A-B, and throw away the result. What it cares about are the *registers* after the operation.t
Registers are essentially flags that get set after every instruction, and they can be used by subsequent instructions. For example, one of those registers will be the Zero register. That is set if the final result is exactly 0. Another one will be the Sign register, which is set if the result is negative.
Those registers are all done via the actual circuitry in the CPU using logical AND, OR, XOR, and NOT gates. They’re effectively created as a side effect of the calculation the CPU is doing.
Latest Answers