Fortunately most CPUS have ones-complement so the result is
Err... "Two's complement." Nngh! Anyway, the basic idea is to think of minus for unsigned integers as ~x + 1, not as a operation using negative integers. Then it makes sense.
Fortunately most CPUS have ones-complement so the result is
Err... "Two's complement." Nngh! Anyway, the basic idea is to think of minus for unsigned integers as ~x + 1, not as a operation using negative integers. Then it makes sense.