Please explain each and every line and this is a C code so please be sure to read the requirement and answer this question Convert this code to LEGv8, making valid assumptions about registers and...


Please explain each and every line and this is a C code so please be sure to read the requirement and answer this question


Convert this code to LEGv8, making valid assumptions about registers and register use. Note that brackets and global variable declarations are not affecting the addresses of the instructions in memory.thank you



int f, g, y //global 64-bit variables



int sum (int a, int b) { // at memory address X0+1000.



return (a +b)



}



int main (void)    // at memory address X0 + 800



{



f=2; g=3;



y= sum (f, g);



return y;



}



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here