Home / Expert Answers / Computer Science / hint-use-x-0-x1-as-arguments-and-x-2-as-return-value-according-to-the-convention-for-procedure-c-pa827

(Solved): Hint: Use X_(0),X1 as arguments and X 2 as return value, according to the convention for procedure c ...



Hint: Use X_(0),X1 as arguments and X 2 as return value, according to the convention for procedure calling. Ex: If the values of X19 and X20 are initialized in the simulator as: the result is stored in X21: Code given: ADDI X28, XZR, #1000 // Assume Stack memory starts at 1000. Do not modify. // Procedure Main (Do not modify) Main: ADD X0, XZR, X19 ADD X1, XZR, X20 BL Sum ADD X21, X20, X19 ADD X21, X21, X2 B End // Procedure Sum Sum: // Type your code here. // Procedure Dif (Do not modify) Dif: SUB X2, X1, X0 BR X30 End:



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe