Which is the easiest way to detect overflow? I can imagine a construct of ifs, but this is quite inefficient. Is there a bitwise mask you can operate on the operands to predict the result? If so, how did you obtain it? I'm working on ADC and got everything (including the carry, which is just set to one if the result exceeds 0xFF) sorted except for the V-flag, which is giving me headaches.
Thanks for the help so far, it's appreciated
Thanks for the help so far, it's appreciated