I was wondering how the test instruction works, I know it does almost the same thing as and. Does the test instruction take a value you give it and tell you if that bit is set like:
test ax, 2 - would this test ax to see if the second byte is set like 00000010 since, 00000010 in binary is equivalent to 2?
like wise would this test for 3:
test ax, 3 - testing to see if 00000011 is set?
-In short does the test instruction see if the binary value that makes up the number you give it is set within the first operand?
-If I am incorrect can someone explain it to me please.