I've run across an example my professor made which made me question my understanding of the bset
and bclr
assembly commands.
If I do this:
bset BITS,80
am I performing an AND or an OR operation between the two? My reference guide says that bset
does this:
M <= M + mask
Is +
an OR or an AND operator? bclr
is the same command but performs the operation with the complement of the mask.