Question: Please show work Given the following function written in C programming language and the partially completed equivalent Assembly code given on the answer page. Complete
Given the following function written in C programming language and the partially completed equivalent Assembly code given on the answer page. Complete the assembly language code given on answer page. Please use only the answer sheet and write in the space provided. int retumPercentagc(int number, int percentage) { int k; k =(int) (number percentage)/100; retum(k) } Solution : Please use only the space provided for your answer..globl _ return Percentage _ retumPercentage: pushl cbp movl esp. ebp movl 8(%cbp). %ebx movl 12(%ebp), %ecx movl 16(%ebp).%edx//Continue solution here popl %ebp ret
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
