Overflow and Carry flags on Z80
The bits of the result are obtained from the truncated sum of unsigned integers. The add instruction doesn’t care about the sign here nor does it care about your own interpretation of the integers as signed or unsigned. It just adds as if the numbers were unsigned. The carry flag (or borrow in case of … Read more