>Which value must I give to the new constant (%FLAG7): 48 OR 64? The latter is an >integral power of 2 (2^6), so - given the discussion here - I tend to prefer 64.
????
This is a trick question, right?
Ok, I'll bite anyway... you want %FLAG7 = EXP2(n) where 'n' is the (0-based) bit number you want "on" when %FLAG7 is to be "true."
(Hint: if %flag7=48 more than one bit will have to be set which will screw up EVERYTHING!).
BTW.. just forget about that 'integral power of two' crap I posted!. Use the boolean operators only!
More hints
(Are you sensing a pattern yet?)
MCM
????
This is a trick question, right?
Ok, I'll bite anyway... you want %FLAG7 = EXP2(n) where 'n' is the (0-based) bit number you want "on" when %FLAG7 is to be "true."
(Hint: if %flag7=48 more than one bit will have to be set which will screw up EVERYTHING!).
BTW.. just forget about that 'integral power of two' crap I posted!. Use the boolean operators only!
More hints
Code:
%FLAG0 = &b1 %FLAG1 = &b10 %FLAG2 = &b100 %FLAG3 = &b1000 %FLAG4 = &b10000 .....
MCM
Comment