Question: The assembly code on the right partially implements the C function shown on the left. Fill in the missing instruction to correctly implement the function

The assembly code on the right partially implements the C function shown on the left. Fill in the missing instruction to correctly implement the function on the left. int a; int foo() { int rval; if (a >1); return rvall foo: movl cmpl je movl shrt push call imull a, Sebx $0, Sebx L3 Sebx, Seax Seax Seax foo Sebx, %eax L2 imp } } .L3: movl .L2: ret $1, Seax
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
