Chapter 7 (Integer Arithmetic) – Assessment
True-False
Please indicate whether each statement is True (T) or False (F).
1. The SAR instruction is suitable for signed integers.
2. The ROR instruction is only suitable for signed integers.
3. The SAR and SHR instructions perform the same operation.
4. The MUL instruction sets the Overflow flag if the upper half of the product is not equal to zero.
5. The MUL instruction sets the Carry flag if the upper half of the product is not equal to zero.
6. When the MUL BL instruction executes, the upper half of the product ends up in the AH register.
7. When the MUL BX instruction executes, the 32-bit product ends into the EAX register.
8. The destination operand of the IMUL instruction may be a memory operand.
9. The DIV instruction generates a divide overflow condition when the remainder is too large to fit
into the destination operand.
10. RDX will equal 1 after the following instructions have executed.
mov rax,0FFFF0000FFFF0000h
mov rbx,2
mul rbx
11. The binary value of AL after the following instructions have executed is 00001101.
mov al,01101011b
shr al,2
12. The binary value of AL after the following instructions have executed is 11101101.
mov al, 01101011b
rol al,2
13. The binary value of AL after the following instructions have executed is 11100010.
mov al,11000101b
sar al,1