Question: in MARS please!! ( Show that it works ) 1 . Write the code for the printInt function under the printInt label to make the

in MARS please!! (Show that it works)
1. Write the code for the printInt function under the printInt label to make the program work to print the following
```
Looping:, loop counter is: 0
Looping:, loop counter is: 1
Looping:, loop counter is: 2
Looping:, loop counter is: 3
Looping:, loop counter is: 4
```
Starting code. Finish the function.
```
.data
string1: .asciiz "Looping:, loop counter is: "
string2: .asciiz "
"
.text
li $s0,0
li $s1,5
loopstart:
beq $s0, $s1, loopend
move $a0, $s0 #function args go in a0 to a3
jal printInt #then call our function
addi $s0, $s0,1
j loopstart
loopend:
li $v0,10
syscall
printInt:
#new code goes here
```
in MARS please!! ( Show that it works ) 1 . Write

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 Programming Questions!