3 ms·
> So, why not just cover that flaw by adding a carry/overflow flag. Actually, why not just have a single generic 1-bit flag? You could still have cmp + branch
by camel-cdr 3mo ago
> So, why not just cover that flaw by adding a carry/overflow flag.
Actually, why not just have a single generic 1-bit flag?
You could still have cmp + branch, but now you put the comparison type into the cmp. This gives you a larger branch range again.
A flag setting add/sub could also simply set that flag on carry.
cmov works, some form of ccmp also works.