3 ms·
Comparisons between unsigned bytes can be done natively with JC, JNC and JZ, JNZ instructions. Things are more complicated with signed comparisons as there is n
by elvis70 2y ago
Comparisons between unsigned bytes can be done natively with JC, JNC and JZ, JNZ instructions. Things are more complicated with signed comparisons as there is no overflow flag. It is possible but requires more instructions.
- rep_lodsb 2y agoInterestingly, while the 8086 and '186 had all the different jump instructions for signed and unsigned comparison, its microcode was limited to an 8080-like set of carry/zero flag tests. This made the BOUND instruction quite complicated and inefficient.