4
If I have a sum of two unsigned numbers (1 byte each) in an Assembly without carry flag, how do I know if I have overflow?
Edit: the architecture in question is Neander
Solution: I found a way to do this. First check the most significant bits (msb) of the numbers to be summed.
Se ambos forem 1, teremos overflow.
Senão, se apenas um deles for 1 e o msb do resultado for 0, teremos overflow
It gets hard without knowing the CPU.
– user1084
So, it’s Neander architecture
– Victor O. Costa