The last migration was deleted because it does not fit into the target space. This will be the fifth bit.
If he performed the same addition, but, for example, with 8-bit storage, it would look like this:
00000100 11111101 -------- 00000001
In this situation, we will also stick to the "unused" transfer.
We must consider this method to make the complement with two compliments correct, but all this is good, because it is the easiest way to treat carriers when you have limited storage. In any case, we get the correct result: *
x86 processors store such an extra carry in the carry flag (CF), which can be tested using specific instructions.
Magnus hoff
source share