•TEST reg/mem, reg/imm
•
•Computes bit-wise
logical AND between both operands and
sets flags (including ZF) according to the computed result (which is discarded)
•
•TEST EDX, EDX
•TEST EDX, 1
•
•Suppose EDX contains 4 (100bin)
•100bin AND 100bin = 100bin != 0 (ZF is cleared)
•Suppose EDX contains 0 (0bin)
•0bin AND 1bin = 0bin == 0 (ZF is set)
•