Start with the program in answer_3.asm Change it so that the MIPS code is the translation of (assuming that x is stored in $50, y is stored in $s1 and a is stored in $s2) – C Code: int main() { int x = 1, y = 2; a = myfun 1(x,y); a = myfun2(a); int myfun1(int x, int y) { return x + y; int myfun2(int a) { return 2*a; Attach your answer as the MIPS code file. 1. include “macros.asm” .data .text main: addi $80, $0, 1 addi $s1, $0, 2 jal myfun done myfun: add $v0, $51, $50 jr $ra Show transcribed image text Start with the program in answer_3.asm Change it so that the MIPS code is the translation of (assuming that x is stored in $50, y is stored in $s1 and a is stored in $s2) – C Code: int main() { int x = 1, y = 2; a = myfun 1(x,y); a = myfun2(a); int myfun1(int x, int y) { return x + y; int myfun2(int a) { return 2*a; Attach your answer as the MIPS code file.
1. include “macros.asm” .data .text main: addi $80, $0, 1 addi $s1, $0, 2 jal myfun done myfun: add $v0, $51, $50 jr $ra
Expert Answer
Answer to Start with the program in answer_3.asm Change it so that the MIPS code is the translation of (assuming that x is stored …