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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:30, Cheflulu5727
Write a function named printfloatrepresentation(float number) that will print the floating point representation of a number using the format given below. (sign bit) exponent in binary (assumed bit).significandfor example if the number passed an argument is 71 yourprogram should print (0) 10000101 (1).00011100000000000000000similarl y if the number passed to the function as argument is -71 the program should print (1) 10000101 (1).00011100000000000000000
Answers: 3
image
Computers and Technology, 23.06.2019 04:00, terrell31
Write a method that takes in an array of point2d objects, and then analyzes the dataset to find points that are close together. be sure to review the point2d api. in your method, if the distance between any pair of points is less than 10, display the distance and the (x, y)s of each point. for example, "the distance between (3,5) and (8,9) is 6.40312." the complete api for the point2d adt may be viewed at ~pf/sedgewick-wayne/algs4/documenta tion/point2d. html (links to an external site.)links to an external site.. try to write your program directly from the api - do not review the adt's source code.
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, lucywood2024
What is the biggest difference between section breaks and regular page breaks
Answers: 1
image
Computers and Technology, 24.06.2019 00:30, sethhdoty
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. obfuscate: to make something so confusing that it is difficult to understand.
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 in other subjects:

Konu
Chemistry, 29.01.2021 23:20
Konu
Mathematics, 29.01.2021 23:20
Konu
Mathematics, 29.01.2021 23:20