My code correctly manages to compile and it does find the lowest positive integers, but it can't seem to detect negative signs correctly. I think maybe I need to be using a signed command but I can't find whihc one may need to be changed. Any ideas?
.data
prompt1: .asciiz "Enter an integer: "
prompt2: .asciiz "Enter an integer: "
prompt3: .asciiz "Enter an integer: "
smallest: .asciiz "\nThe smallest integer is: "
.text
li $v0, 4
la $a0, prompt1
syscall
li $v0, 5
syscall
move $t0,$v0
li $v0, 4
la $a0, prompt2
syscall
li $v0, 5
syscall
move $t1,$v0
li $v0, 4
la $a0, prompt3
syscall
li $v0, 5
syscall
move $t2,$v0
blt $t1, $t0, Num1
move $t1, $t0
Num1:
blt $t2, $t1, Num2
move $t2, $t1
Num2:
li $v0, 4
la $a0, smallest
syscall
li $v0, 1
move $a0, $t1
syscall
li $v0, 10
syscall