test can be used for the fastest 'is it a zero?' check
- 2. Assembly Language
- from Low-Level Programming: C, Assembly, and Program Execution on Intel® 64 Architecture
- Publisher: Apress
- Released: June 2017
The TEST instruction performs a logical AND of two operands and sets the SF, ZF, and PF flags according to the results. The flags can then be tested by the conditional jump or loop instructions or the SETcc instructions. The TEST instruction differs from the AND instruction in that it does not alter either of the operands.
Share this highlighthttp://www.safaribooksonline.com/a/low-level-programming-c/13006152/