Consider the following assembly code: mov 8x8(Sebp),Seax mov (%eax),%eax mov exc
ID: 3707190 • Letter: C
Question
Consider the following assembly code: mov 8x8(Sebp),Seax mov (%eax),%eax mov exc (%ebp),%eax mov (Seax),Seax add %eax,%edx mov ex8 (%ebp),%eax mov %edx,(%eax) | lf 0x8 (%ebp) and 0xc (%ebp) assembly code above? refer to the function arguments a and b respectively, which one of the following choices represent the C equivalent of the void func(int* a, int* b) f int tmpb return void func(int* a, int* b) a*a*b; return void func(int a, int" b) return; void func(int* a, int* b) return; void func(int* a, int* b) return;Explanation / Answer
Answer : (b)
Explanation: We load *a and *b into %end and %eax . Then both are added. And then the function returns
Thanks, PLEASE UPVOTE if its helpful
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.