Jump to content

Gotchas: Difference between revisions

m
Line 124:
 
MOVE.W #$7FFF,D0 ;D0 = $12347FFF
ADD.W #1,D0 ;D0 = $12348000
TRAPV ;the above operation set the overflow flag, so this instruction will call the signed overflow handler.
;Even though the entire register didn't overflow, the portion we were operating on did, so that counts.</lang>
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.