Explain the TEST instruction
TEST instruction performs the AND operation. The difference is that AND instruction changes the destination operand whereas TEST instruction doesn't. A TEST only affects the condition of the flag register which designates the result of the test.