Integer overflow: Difference between revisions
m
→8-Bit Overflow
(→{{header|Lua}}: added Lua solution) |
Puppydrum64 (talk | contribs) m (→8-Bit Overflow) |
||
Line 133:
=={{header|6502 Assembly}}==
===8-Bit Overflow===
Signed overflow (crossing the 7F-80 boundary) is detected by the CPU's overflow flag <code>V</code>.
Unsigned overflow
The following instructions allow for branching based on the state of these flags:
|