Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

12. (Truel/ False): The USES operator only generates PUSH instructions, so you m

ID: 3911972 • Letter: 1

Question

12. (Truel/ False): The USES operator only generates PUSH instructions, so you must code instructions yourself 13. (True/ False): The register list in the USES directive must use commas to separate register names. 14. Which statement(s) in the ArraySum procedure (Section 5.2.5) would have to be modified so it could accumulate an array of 16-bit words? Create such a version of ArraySum and test it. 15. What will be the final value in EAX after these instructions execute? push 5 push 6 pop eax pop eax 16. Which statement is true about what will happen when the example code runs? 1: main PROC 2: push 10 3: push 20 4: call Ex2Sub 5: pop eax 6: INVOKE ExitProcess, 0 7: main ENDP 8: 9: Ex2Sub PROC 10: pop eax 11: ret 12: Ex2Sub ENDP a. b. c. d. EAX will equal 10 on line 6 The program will halt with a runtime error on line 10 EAX will equal 20 on line 6 The program will halt with a runtime error on Line 11

Explanation / Answer

Please Note: You have posted more than one Question. I have answered 2 questions. Please Post Separate for other Questions.

Q12) The USES operator only generates PUSH instructions, so you must code instructions yourself.

Answer)

USES operator generates PUSH as well as POP instructions. Thus the above statement is FALSE.

Q13) The register list in the USES directive must use commas to separate the register names.

Answer)

False, The register list in the USES directive does not use commas to separate the register names.

Example:

ArraySum PROC USES si cx