Q: MIPs assembly sorting floating-point I am new in this language this MIPs code is to takes seven 32 bit single precision floating point input  without using floating point instructions the code give error for (addi)
#$s0 = array base address, $s1 = n, $s2 = m
main:
addi    $sp, $sp, -16       
sw  $ra, 12($sp)        
sw  $s0, 8($sp)         
sw  $s1, 4($sp)         
sw  $s2, 0($sp)         
    

    addi    $t7, $0, 18         
    sw  $t7, 0($s0)     
    addi    $t7, $0, 64         
    sw  $t7, 4($s0)     
    addi    $t7, $0, 12         
    sw  $t7, 8($s0)     
    addi    $t7, $0, 51         
    sw  $t7, 12($s0)        
    addi    $t7, $0, 76         
    sw  $t7, 16($s0)        
    addi    $t7, $0, 28         
    sw  $t7, 20($s0)        
    addi    $t7, $0, 16         
    sw  $t7, 24($s0)        

    addi    $s1, $0, 0          
    addi    $s2, $0, 0          
    addi    $t7, $0, 7          
    addi    $t2, $0, 6          

outerFor:
slt     $t6, $s1, $t7        
beq     $t6, $0, exitOuterFor   


nestedFor:
slt     $t6, $s2, $t2        
beq     $t6, $0, exitNestedFor  

sll     $t0, $s2, 2         
add     $t0, $t6, $s0       
lw  $t5, 0($t0)         
lw  $t4, 4($t0)         

slt     $t3, $s4, $t5          
beq     $t3, $0, exitIf     

#call swap
addi $a0, $t4, 0            
addi $a1, $t5, 0            
addi $a2, $t0, 0            
jal swap

exitIf:

addi    $s2, $s2, 1         
    j   nestedFor           

exitNestedFor:  

addi    $s1, $s1, 1         
    j   outerFor            

exitOuterFor:

sw  $s2, 0($sp)         
sw  $s1, 4($sp)         
sw  $s0, 8($sp)         
sw  $ra, 12($sp)        
addi    $sp, $sp, -16       
jr  $ra             
    

swap:   
#swap A[j], A[j+1]
    sw  $a1, 0($a2)         
    sw  $a0, 4($a2)         
    jr  $ra             

