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 $s 1 and a is stored in $s2) C Code: int main({ int x = 1, y = 2; a = myfun1(x,y); a = myfun2(a): int myfun1(int x, int y){ return x + y; int myfun2int a) { return 2″a: Attach your answer as the MIPS code file. Upload Choose a File answer_3 – Notepad File Edit Format View Help .include “macros.asm” data .text main: addi $50, $0, 1 addi $51, $0, 2 jal my fun done my fun: add $v0, $51, $s 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 $s 1 and a is stored in $s2) C Code: int main({ int x = 1, y = 2; a = myfun1(x,y); a = myfun2(a): int myfun1(int x, int y){ return x + y; int myfun2int a) { return 2″a: Attach your answer as the MIPS code file. Upload Choose a File
answer_3 – Notepad File Edit Format View Help .include “macros.asm” data .text main: addi $50, $0, 1 addi $51, $0, 2 jal my fun done my fun: add $v0, $51, $s 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 …