5. Each of the following lines of code generates an error message when we invoke
ID: 3737158 • Letter: 5
Question
5. Each of the following lines of code generates an error message when we invoke the assembler. Select the only one answer that is to explain the reason why is wrong. 10 points Page 184 to 186 (1). ex $0x89AB. (%edi) A. Cannot use %edi, as destination register B. Cannot use %ed, as source operand. C. Cannot use %edias address register D. Cannot use SOx89AB as source oper Ans A. Cannot use %eax register in UAX-family instructions B. Cannot use % pas address register C. Cannot use % rsp.register in 0 X-family instructions. D. Mismatch between instruction suffix and register ID Ans A. Cannot have source be memory reference B. Cannot have both source and destination be memory references C. Cannot have destination be memory reference D. Cannot use %tax as memory reference Ans A. Source operand incorrect size B. Cannot have both source and destination be registers C. Cannot use %ecx register in ax-family instructions D. Destination operand incorrect size Ans A. Cannot have immediate as destination B. Cannot have register as source C. Cannot have immediate as source D. Cannot have register as destination. AnsExplanation / Answer
1) edi stands for destination index register and it cannot be used as source operand
Hence ans is b
2) rsp is stack pointer and it cannot be used as storage register
Hence ans is B
3) R in command implies reference.
Whivh is not allowed in mov command
Ans is B
4) D
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.