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
Get step-by-step solutions from verified subject matter experts
