View Single Post
Old 26 February 2018, 08:31   #13
meynaf
son of 68k
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 45
Posts: 3,187
Operators in vasm, as well as in phxass, use longwords regardless of instruction size. I guess most assemblers will do the same.
This behaviour is perfectly normal.

You can use exclusive or to perform the "~" operation on a word (this is for phxass, i don't know if vasm uses the same character for eor) :
Code:
NF_SUBSECTOR = $8000
 and.w #NF_SUBSECTOR^$ffff,d0
But instead of all this, you could do :
Code:
NB_SUBSECTOR = 15
 bclr #NB_SUBSECTOR,d0
meynaf is online now  
 
Page generated in 0.04286 seconds with 11 queries