Integer overflow: Difference between revisions

m
Line 2,680:
add 1
jp pe,ErrorHandler ;pe = parity even, but in this case it represents overflow set</lang>
 
Like other CPUs, the Z80 has no way of knowing whether a value is intended to be signed or unsigned, and unless you explicitly have a jump, call, or return based on overflow after a calculation, the CPU '''will continue with the wrong result.'''
 
===Game Boy===
1,489

edits