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 11:20
The kurt vonnegut commencement speech, the neiman-marcus chocolate chip cookie recipe, and the get-well emails to the dying boy are examples of select one: a. social engineering b. hoax emails c. email viruses d. worms
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Describir textbook icon_person mira los dibujos y describe lo que está pasando. usa los verbos de la lista.
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
In vista and windows 7, the appearance and personalization option allows you to change the
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Write a grading program for a class with the following grading policies: a. there are two quizzes, each graded on the basis of 10 points. b. there is one midterm exam and one final exam, each graded on the basis of 100 points. c. the final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (do not forget to normalize the quiz scores. they should be converted to a percentage before they are averaged in.) any grade of 90 or more is an a, any grade of 80 or more (but less than 90) is a b, any grade of 70 or more (but less than 80) is a c, any grade of 60 or more (but less than 70) is a d, and any grade below 60 is an f. the program will read in the student’s scores and output the student’s record, which consists of two quiz and two exam scores as well as the student’s average numeric score for the entire course and final letter grade. define and use a structure for the student reco
Answers: 2
You know the right answer?
Given the following C code and assumptions, write the x86 assembly code for the calling function and...
Questions
question
Physics, 12.02.2021 02:10
question
Mathematics, 12.02.2021 02:10
question
Mathematics, 12.02.2021 02:10
question
Mathematics, 12.02.2021 02:10
question
Mathematics, 12.02.2021 02:10
question
Mathematics, 12.02.2021 02:10
question
English, 12.02.2021 02:10
Questions on the website: 13722363