View Single Post
Old 05 August 2021, 13:16   #18
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,632
Quote:
Originally Posted by meynaf View Post
Try this then :
Code:
 move.l #$00007fff,a0
 move.l #$0000ffff,a1
 add.w a0,a1			; a1=00017ffe
Hm. Well, source is unsigned so this doesn't really test it. But move.l #$ffff7fff,a0 gives the same result, so I'm convinced.

adda.w sign extends source and performs a full 32-bit add.
Photon is offline  
 
Page generated in 0.04302 seconds with 11 queries