Exercise 8.2.1. Limitations of Operand Usage.
add %eax, $8
- Incorrect. Destination cannot be a constant.
add %eax, (%ebx)
- Correct!
add (%eax), %ebx
- Correct!
add (%eax), (%ebx)
- Incorrect.
add (%eax, %ebx, 10), %ecx
- Incorrect. Only 1, 2, 4, and 8 are options for scaling factor.
Which of the following are valid x86 instructions? Select ALL that apply.