subject

Given the following C code and assumptions, write the x86 assembly code for the calling function and the subroutine. Assume that variable a is allocated to register %rbx, variable b is allocated to register %rcx, variable min is allocated to register %rdx, variable z is allocated to register %rbx, and finally all input and output parameters are allocated according to the conventions used in x86 assembly. Preserve only those registers that must be preserved across the subroutine call. int subroutine (int x, int y) { int z; z=x+y; if (x < y) return (x); else return (z); } void main (void) { int a, b, min; min = subroutine (a, b) }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
What is the biggest difference between section breaks and regular page breaks
Answers: 1
You know the right answer?
Given the following C code and assumptions, write the x86 assembly code for the calling function and...
Questions
question
Mathematics, 30.10.2019 18:31
question
Mathematics, 30.10.2019 18:31
Questions on the website: 13722367