1. Method one: Clear all nonessential bits and compare the remaining ones with
the mask value:
and AL,00000111b
cmp AL,00000111b
je Target
Method two: Use the boolean rule that a^b^c == ~(~a v ~b
v ~c)
not AL
test AL,00000111b
jz Target
2. test AL,00000111b
jnz Target
3.
and BL,10001111b
4.
or CL,00011000b