Question: Write a MIPS assembly language subroutine called GetSum that accepts four user input integers from the console in SPIM and stores the sum of all

Write a MIPS assembly language subroutine called GetSum that accepts four user input integers from the console in SPIM and stores the sum of all four numbers in register $v0

I started some of it so if you can use some of what I already wrote. must use native instructions DO NOT use pseudo instructions will thumbs down.

.globl main

.text

main:

jal GetSum

add $0,$0,$0

jal GetSum

add $0,$0,$0

jal GetSum

add $0,$0,$0

addi $v0, $0, 10

syscall

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!