.data #text strings used for output. newLine and inPrompt are used multiple times. inPrompt: .asciiz "Enter a number> " initTxt: .asciiz "This program will find the smallest number you enter.\nHow many numbers would you like to compare? " newLine: .asciiz "\n" retVal: .asciiz "The smallest number is: " .text main: li $v0, 4 la $a0, initTxt syscall li $v0, 5 syscall move $s5, $v0 addi $s0, $0, 1000 inloop: jal s_newline li $v0, 4 la $a0, inPrompt syscall li $v0, 5 syscall move $s1, $v0 addi $s5, $s5, -1 blt $s1, $s0, less ret: bne $s5, $0, inloop ending: li $v0, 4 la $a0, retVal syscall li $v0, 1 move $a0, $s0 syscall li $v0, 10 syscall less: move $s0, $s1 j ret s_newline: li $v0, 4 la $a0, newLine syscall jr $ra