Bitwise logical instructions are available: AND, OR, EOR and NOT.
For example, the instruction
ANDI.B #%00000001,D0masks the bits D0[7:1], leaving the least significant bit D0[0] unchanged. This type of operation is useful when the value of a single bit is important.