Integer overflow: Difference between revisions
m
→{{header|68000 Assembly}}
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) |
||
Line 156:
SUB.B #1,D0 ;WILL SET THE OVERFLOW FLAG SINCE AT BYTE LENGTH WE CROSSED FROM 80 TO 7F</lang>
Like the 6502, the 68000
* <code>TRAPV</code> will call an exception handler if the overflow flag is set, otherwise it will do nothing.
* <code>DBVS Dn</code> will loop a section of code until the overflow flag is set or the chosen data register is decremented to 0xFFFF, whichever occurs first.
|