The high bit does not need to be masked.
Yes, that's true, though I felt the specs were a little bit lacking (hence my request for more examples), which is why I played it safe and showed how to do the masking too.
In reply to Re^3: Flipping partial bits
by haukex
in thread Flipping partial bits
by rickss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |