[Solved]Write Legv8 Assembly Code Call Procedure Following Prototype Long Long Int Myprocedure Lon Q37174811

Write the LEGv8 assembly code to call a procedure with the following prototype: long long int my_procedure(long long int a, long long int b, long long int c); Before the call, the values to be passed in are in X19, X20 and X21 and after the call, the return value should be moved from where it is returned to X22. Just do the basic call, don’t worry about storing values of registers X19-X22 on the stack. Instruction Description Copy the value of ‘a’ into the appropriate procedure parameter register. Copy the value of ‘b’ into the appropriate procedure parameter register. Copy the value of ‘c’ into the appropriate procedure parameter register. Make the call to ‘my_procedure Copy the returned value into the appropriate register. Show transcribed image text Write the LEGv8 assembly code to call a procedure with the following prototype: long long int my_procedure(long long int a, long long int b, long long int c); Before the call, the values to be passed in are in X19, X20 and X21 and after the call, the return value should be moved from where it is returned to X22. Just do the basic call, don’t worry about storing values of registers X19-X22 on the stack. Instruction Description Copy the value of ‘a’ into the appropriate procedure parameter register. Copy the value of ‘b’ into the appropriate procedure parameter register. Copy the value of ‘c’ into the appropriate procedure parameter register. Make the call to ‘my_procedure Copy the returned value into the appropriate register.
Expert Answer
Answer to Write the LEGv8 assembly code to call a procedure with the following prototype: long long int my_procedure(long long int… . . .
OR

