Question: 1 . Copy the unannotated calc.s ( generated in question # 1 ) into calcnew.s and modify it so that it returns x + 5
Copy the unannotated calc.s generated in question # into calcnew.s and modify it so that it returns x y z
Do not use the leal instruction. Use the operand imull instruction with immediate addressing. In addition to changing the code, you should modify all occurrences of calc to calcnew in the file calcnew.s
After making your modifications, make sure your file compiles using:
cc c calcnew.s
Copy calcnew.s into calcnew.stxt and annotate it Then turn in the file
calcnew.stxt
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
