This code is about to find maximum element from an array i want to convert this code into MIPS assembly code can anyone help me...Or just tell me how to initialize an array in M
convert to mips
addi $t1, $0, 99
addi $t4, $0, 9
add $t3, $t2, $t1
sub $t3, $t3, $t4
loop: lw $s1, 0($t2)
lw $s2, 0($t3)
slt $s3, $s1, $s2
beq $s3, $0, label1
sub $s4, $s2, $s1
sw $s4,0($t3)
j label2
label1:
sub $s4, $s1, $s2
sw $s4,0($t3)
label2:
addi $t2, $t2, 4
addi $t3, $t3, 4
subi $t1, $t1,1
beq $t1, $0, loop