Chapter 6 (Conditional Processing) – Assessment
True-False
Please indicate whether each statement is True (T) or False (F).
1. For any two integers n and m, ((n XOR m) XOR m) produces n.
2. The destination operand of the OR instruction cannot be a memory operand.
3. The TEST instruction always alters the destination operand.
4. XORing an operand with 1 always causes the Zero flag to be set.
5. The XOR instruction can be used to generate the two’s complement of an integer.
6. ANDing an operand with 1 sets the zero flag if the operand was originally an even number.
7. The Parity flag indicates whether the lowest byte of a destination operand has an even number of 1
bits.
8. The XOR instruction inverts each bit in a destination operand.
9. The JAE instruction jumps if the (unsigned) first operand is greater than or equal to the (unsigned)
second operand.
10. The JBE instruction is used when comparing unsigned integers.
11. The JO instruction is used after an operation involving signed integers.
12. The JECXZ instruction jumps to a target label when the CX register is equal to zero.
13. The OR instruction can be used to find the intersection of two bit-mapped sets.
14. With unsigned operands, the CMP instruction sets the Carry flag when the destination operand is
less than the source operand.
15. With signed operands, the CMP instruction makes the Sign flag equal to the Overflow flag when
the destination operand is less than the source operand.