If you want to check for differences between two variables, then the best way is to use exclusive OR.
E.g. DM[2] = INPUT[1] ^ DM[1]
DM[2] will only become zero if INPUT[1] and DM[1] are identical. Otherwise the bit that is ON indicate the differences between the two variables. This method does not depend on the order in which the bits are turned ON.
Unsigned integer is not supported. However, you may assign them to 32-bit integer and mask out the upper bits so that you can compare them.
E.g. DM[1] = &H9000 ' this is a negative number
A = DM[1] & &HFFFF ' this will mask out the upper 16-bit of extended sign so that A = &H00009000 instead of &HFFFF9000