i know that if we do,
mov al, 101b
test al, 100b
if the number is even it will set the zero flag to 1, and if it is odd it resets the flag to 0.
but what i dont understand is that if it checks the number is even or not why it requires two operands?
it should be like
test al
I also know that test is similar to and operation its just that it does not change the first operand but question remains the same that
How it know if number is even or odd by performing AND?