PDP11 doesn't provide an AND instruction – just XOR. What is the usual PDP-11 assembly code to implement an AND, i.e. the PDP-11 assembler equivalent of the C code a & b please?
What I'm looking for in particular is the PDP-11 assembly equivalent to the C code if (a == (a & b))… my ‘bit twiddling’ is very rusty. The variable a is a set of ‘requirements’, with each bit meaning a specific capability is required, while b is the set of capabilities available. As long as b has at least the same bits set as a, then the condition is satisfied. If it has more, then the check should also pass. However if at least one bit set in a isn't set in b then the condition is not satisfied.