COMP 2033, Spring 2018 Homew ork 3 Instructor: De. Ahmed Abdelmoamen Ahmed De:04
ID: 3700927 • Letter: C
Question
COMP 2033, Spring 2018 Homew ork 3 Instructor: De. Ahmed Abdelmoamen Ahmed De:04 05/2018 at 11 55 PM (shap) Marks: 100 points 1. fle 2. Please include a readrnc file that has 6) your natie und ?udent lD; and (ii)dctailed Must roccive instructor's approval in advance if an alternative time and method of Solve each of the following problems. To receive full marks on your documentation, you Upload your asm files to eCourse in a z instructions on how to run your programs submission becomes nocessary, shold have excellent ?nternal docwnentation4Le-appropriate con ments, but also choice of variable names), as well as excellent extemal documentation (ie, in the readme xt file a described previously). 1. 160 points) Using the String Reverse program as a starting point [find thisasm file uploaded on eCourse a) Modify the program so the user can input a tring ccntaining between 1 and S0 charactens b) iinputs a list of 32-bit inegers from the uset, and hen Modify the ptogram so displays the integers in reverse oeder 2. 140 points] Write a program that does the Sollowing Assigns integer values to EAX·EBX, ECX, EDx. ESL and EDI Uses PUSHAD to pash the gen al-purpose registers the stack Using a loop. your program should pop each imeg? from the stack and display a. b. c. on the screcnExplanation / Answer
1) question is not clear. Characters are too small.
2) here, is second question answer.
A.
Mov EAX , 10
Mov EBX , 11
Mov ECX, 12
Mov EDX,13
Mov ESI,14
Mov EDI,15
B. PUSHAD
Pushad is same as below operation :
PUSH EAX
PUSH EBX
PUSH ECX
PUSH EDX
PUSH ESI
PUSH EDI
C.
.code
Call loop
Loop:
Int 21h ;
Pop ECX ;
End loop
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.