Question: Need to complete the program to print out an array in MIPS. Any help is appreciated. Have the code in both the compiler and in

#complete the program below to print the array of mbers on the screen complete the program in the places where "WRITE CODE" is mentioned # 4 lines of code need to be written to complete the program .data list1: .word 10, 22, 45, 30, 60 size: .word 5 str: ascii "Array in MIPS " . text Main: la Sal, str li $v0, 4 print string WWRITE CODE HERE beg la sti, listi 5 1w $53, size 6 7 print numbers 8 print list: -9 data 20 space: .asci "in" line between numbers 21 text 22 li SE2, Dloop counter 24 25 printing_loop: 26 $12, 93, exit check it all umbers in the are printed 27 2e RITE CODE MERE 29 li Svo, 1 30 syscall 31 32 la Cal, space 33 11 v0.4 34 syscall 35 36 addi , 03, 37 WRITE CODE 38 WWRITE CODEERE 39 ext: 42 11 VO, 10 42 Byscall 43 44 WER OF ROGRAM 45 Demo-Program3. Assembly.txt.Notepad File Edit Format View Help il complete the program below to print the array of numbers on the screen complete the program in the places where "WRITE CODE" is mentioned *# 4 lines of code need to be written to complete the program .data listi: .word 10, 22, 45, 80, 60 size: word str: .asciiz "Array in MIPS " .text main: la $ae, str li $ve, 4 #print string ##WRITE CODE HERE la lw $t1, listi $t3, size ##print numbers print list: .data space: .asciiz " " #new-line between numbers text li $t2, @ #loop counter printing loop: beg $t2, $t3, exit #check if all numbers in the array are printed ##WRITE CODE HERE li $ve, 1 syscall la $a, space li $ve, 4 syscall addi $t2, St2, 1 ##WRITE CODE HERE #WRITE CODE HERE exit: $va, 10 li syscall # END OF PROGRAM
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
