TEST instruction in pseudo-code
•
Note: details not relevant to ZF are omitted
•
•
TEMP := OPERAND1 AND OPERAND2
•
IF TEMP = 0 THEN
•
ZF := 1
•
ELSE
•
ZF := 0
•
•